diff --git a/.github/workflows/pregenerate.yml b/.github/workflows/pregenerate.yml index 2f94cb7efd1..f356b087140 100644 --- a/.github/workflows/pregenerate.yml +++ b/.github/workflows/pregenerate.yml @@ -36,6 +36,10 @@ jobs: run: ./wpilibj/generate_hids.py && ./wpilibc/generate_hids.py && ./wpilibNewCommands/generate_hids.py - name: Run PWM Controllers run: ./wpilibj/generate_pwm_motor_controllers.py && ./wpilibc/generate_pwm_motor_controllers.py + - name: Run imgui gl3w + run: ./thirdparty/imgui_suite/generate_gl3w.py + - name: Run imgui fonts + run: ./thirdparty/imgui_suite/generate_fonts.sh - name: Add untracked files to index so they count as changes run: git add -A - name: Check output diff --git a/.github/workflows/upstream-utils.yml b/.github/workflows/upstream-utils.yml index b173070568c..aa45fd8717d 100644 --- a/.github/workflows/upstream-utils.yml +++ b/.github/workflows/upstream-utils.yml @@ -45,11 +45,31 @@ jobs: cd upstream_utils ./gcem.py clone ./gcem.py copy-upstream-to-thirdparty + - name: Run gl3w.py + run: | + cd upstream_utils + ./gl3w.py clone + ./gl3w.py copy-upstream-to-thirdparty + - name: Run glfw.py + run: | + cd upstream_utils + ./glfw.py clone + ./glfw.py copy-upstream-to-thirdparty - name: Run googletest.py run: | cd upstream_utils ./googletest.py clone ./googletest.py copy-upstream-to-thirdparty + - name: Run imgui.py + run: | + cd upstream_utils + ./imgui.py clone + ./imgui.py copy-upstream-to-thirdparty + - name: Run implot.py + run: | + cd upstream_utils + ./implot.py clone + ./implot.py copy-upstream-to-thirdparty - name: Run json.py run: | cd upstream_utils @@ -90,6 +110,11 @@ jobs: cd upstream_utils ./sleipnir.py clone ./sleipnir.py copy-upstream-to-thirdparty + - name: Run stb.py + run: | + cd upstream_utils + ./stb.py clone + ./stb.py copy-upstream-to-thirdparty - name: Add untracked files to index so they count as changes run: git add -A - name: Check output diff --git a/CMakeLists.txt b/CMakeLists.txt index 62380f11862..a40b68b503f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,7 @@ endif() if(WITH_GUI) add_subdirectory(fieldImages) - add_subdirectory(imgui) + add_subdirectory(thirdparty/imgui_suite) add_subdirectory(wpigui) add_subdirectory(glass) add_subdirectory(outlineviewer) diff --git a/cscore/build.gradle b/cscore/build.gradle index 5549eac29da..1cb49a2c939 100644 --- a/cscore/build.gradle +++ b/cscore/build.gradle @@ -186,8 +186,6 @@ nativeUtils.exportsConfigs { } } -apply from: "${rootDir}/shared/imgui.gradle" - model { components { examplesMap.each { key, value -> @@ -200,7 +198,7 @@ model { lib project: ':wpinet', library: 'wpinet', linkage: 'shared' lib project: ':wpigui', library: 'wpigui', linkage: 'static' lib library: 'cscore', linkage: 'shared' - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' if (it.targetPlatform.name == nativeUtils.wpi.platforms.roborio) { it.buildable = false return diff --git a/datalogtool/build.gradle b/datalogtool/build.gradle index e1006387a9f..96f3c85d1d9 100644 --- a/datalogtool/build.gradle +++ b/datalogtool/build.gradle @@ -25,7 +25,6 @@ def wpilibVersionFileInput = file("src/main/generate/WPILibVersion.cpp.in") def wpilibVersionFileOutput = file("$buildDir/generated/main/cpp/WPILibVersion.cpp") apply from: "${rootDir}/shared/libssh.gradle" -apply from: "${rootDir}/shared/imgui.gradle" task generateCppVersion() { description = 'Generates the wpilib version class' @@ -102,7 +101,8 @@ model { lib project: ':glass', library: 'glass', linkage: 'static' lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' lib project: ':wpigui', library: 'wpigui', linkage: 'static' - nativeUtils.useRequiredLibrary(it, 'imgui', 'libssh') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' + nativeUtils.useRequiredLibrary(it, 'libssh') if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' it.linker.args << 'ws2_32.lib' << 'advapi32.lib' << 'crypt32.lib' << 'user32.lib' diff --git a/glass/build.gradle b/glass/build.gradle index 73239363e5b..31d1da38961 100644 --- a/glass/build.gradle +++ b/glass/build.gradle @@ -24,8 +24,6 @@ apply from: "${rootDir}/shared/config.gradle" def wpilibVersionFileInput = file("src/app/generate/WPILibVersion.cpp.in") def wpilibVersionFileOutput = file("$buildDir/generated/app/cpp/WPILibVersion.cpp") -apply from: "${rootDir}/shared/imgui.gradle" - task generateCppVersion() { description = 'Generates the wpilib version class' group = 'WPILib' @@ -112,7 +110,7 @@ model { lib project: ':wpimath', library: 'wpimath', linkage: 'shared' lib project: ':wpigui', library: 'wpigui', linkage: 'static' lib project: ':fieldImages', library: 'fieldImages', linkage: 'shared' - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' } appendDebugPathToBinaries(binaries) } @@ -142,7 +140,7 @@ model { lib project: ':wpimath', library: 'wpimath', linkage: 'shared' lib project: ':wpigui', library: 'wpigui', linkage: 'static' lib project: ':fieldImages', library: 'fieldImages', linkage: 'shared' - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' } appendDebugPathToBinaries(binaries) } @@ -181,7 +179,7 @@ model { lib project: ':wpigui', library: 'wpigui', linkage: 'static' lib project: ':fieldImages', library: 'fieldImages', linkage: 'static' nativeUtils.useRequiredLibrary(it, 'opencv_static') - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' it.linker.args << '/DELAYLOAD:MF.dll' << '/DELAYLOAD:MFReadWrite.dll' << '/DELAYLOAD:MFPlat.dll' << '/delay:nobind' diff --git a/imgui/.styleguide b/imgui/.styleguide deleted file mode 100644 index 054020f7fd4..00000000000 --- a/imgui/.styleguide +++ /dev/null @@ -1,8 +0,0 @@ -cppHeaderFileInclude { - \.h$ - \.inc$ -} - -cppSrcFileInclude { - \.cpp$ -} diff --git a/imgui/CMakeLists.txt b/imgui/CMakeLists.txt deleted file mode 100644 index 04a6a3aeb92..00000000000 --- a/imgui/CMakeLists.txt +++ /dev/null @@ -1,111 +0,0 @@ -include(FetchContent) -include(LinkMacOSGUI) - -fetchcontent_declare( - glfw3 - GIT_REPOSITORY https://github.com/glfw/glfw.git - GIT_TAG 6b57e08bb0078c9834889eab871bac2368198c15 -) -fetchcontent_declare( - gl3w - GIT_REPOSITORY https://github.com/skaslev/gl3w - GIT_TAG 5f8d7fd191ba22ff2b60c1106d7135bb9a335533 -) -fetchcontent_declare( - imgui - GIT_REPOSITORY https://github.com/ocornut/imgui.git - # docking branch - GIT_TAG 64b1e448d20c9be9275af731c34b4c7bf14a8e95 -) -fetchcontent_declare( - implot - GIT_REPOSITORY https://github.com/epezent/implot.git - # v0.16 - GIT_TAG 18c72431f8265e2b0b5378a3a73d8a883b2175ff -) -fetchcontent_declare( - fonts - URL https://github.com/wpilibsuite/thirdparty-fonts/releases/download/v0.2/fonts.zip - URL_HASH SHA256=cedf365657fab0770e11f72d49e4f0f889f564d2e635a4d214029d0ab6bcd324 -) -fetchcontent_declare( - stb - GIT_REPOSITORY https://github.com/nothings/stb.git - GIT_TAG c9064e317699d2e495f36ba4f9ac037e88ee371a -) - -fetchcontent_makeavailable(imgui implot fonts stb) - -# Add glfw directly to our build. -fetchcontent_getproperties(glfw3) -if(NOT glfw3_POPULATED) - fetchcontent_populate(glfw3) - set(SAVE_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) - set(BUILD_SHARED_LIBS OFF) - set(GLFW_INSTALL OFF) - add_subdirectory(${glfw3_SOURCE_DIR} ${glfw3_BINARY_DIR} EXCLUDE_FROM_ALL) - set_property(TARGET glfw PROPERTY POSITION_INDEPENDENT_CODE ON) - set(BUILD_SHARED_LIBS ${SAVE_BUILD_SHARED_LIBS}) - export(TARGETS glfw FILE glfw.cmake NAMESPACE glfw::) -endif() - -# Don't use gl3w CMakeLists.txt due to https://github.com/skaslev/gl3w/issues/66 -fetchcontent_getproperties(gl3w) -if(NOT gl3w_POPULATED) - fetchcontent_populate(gl3w) -endif() -if(NOT EXISTS "${gl3w_BINARY_DIR}/src/gl3w.c") - find_package(Python COMPONENTS Interpreter Development REQUIRED) - execute_process( - COMMAND "${Python_EXECUTABLE}" ${gl3w_SOURCE_DIR}/gl3w_gen.py "--root=${gl3w_BINARY_DIR}" - WORKING_DIRECTORY ${gl3w_BINARY_DIR} - ) -endif() - -# Add imgui directly to our build. -file(GLOB imgui_sources ${imgui_SOURCE_DIR}/*.cpp ${imgui_SOURCE_DIR}/misc/cpp/*.cpp) -file(GLOB implot_sources ${implot_SOURCE_DIR}/*.cpp) -file(GLOB fonts_sources ${fonts_SOURCE_DIR}/src/*.cpp) -set(imgui_all_sources - ${imgui_sources} - ${implot_sources} - ${imgui_SOURCE_DIR}/backends/imgui_impl_glfw.cpp - ${imgui_SOURCE_DIR}/backends/imgui_impl_opengl3.cpp - ${gl3w_BINARY_DIR}/src/gl3w.c - ${fonts_sources} - src/stb_image.cpp -) -if(MSVC) - add_library(imgui STATIC ${imgui_all_sources}) -else() - add_library(imgui ${imgui_all_sources}) -endif() -target_compile_definitions(imgui PUBLIC IMGUI_IMPL_OPENGL_LOADER_GL3W) -if(MSVC) - target_sources(imgui PRIVATE ${imgui_SOURCE_DIR}/backends/imgui_impl_dx11.cpp) -elseif(APPLE) - target_compile_options(imgui PRIVATE -fobjc-arc) - wpilib_link_macos_gui(imgui) - target_sources(imgui PRIVATE ${imgui_SOURCE_DIR}/backends/imgui_impl_metal.mm) -else() - #target_sources(imgui PRIVATE ${imgui_SOURCE_DIR}/backends/imgui_impl_opengl3.cpp) -endif() -target_link_libraries(imgui PUBLIC glfw) -target_include_directories( - imgui - PUBLIC - "$" - "$" - "$" - "$" - "$" - "$" - "$" - PRIVATE "$" -) - -set_property(TARGET imgui PROPERTY POSITION_INDEPENDENT_CODE ON) -target_compile_features(imgui PUBLIC cxx_std_20) - -install(TARGETS imgui EXPORT imgui) -export(TARGETS imgui FILE imgui.cmake NAMESPACE imgui::) diff --git a/imgui/src/stb_image.cpp b/imgui/src/stb_image.cpp deleted file mode 100644 index 92a60b19e01..00000000000 --- a/imgui/src/stb_image.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -#define STBI_WINDOWS_UTF8 -#define STB_IMAGE_IMPLEMENTATION -#include "stb_image.h" diff --git a/outlineviewer/build.gradle b/outlineviewer/build.gradle index 94324a6c0af..31261324eef 100644 --- a/outlineviewer/build.gradle +++ b/outlineviewer/build.gradle @@ -24,8 +24,6 @@ apply from: "${rootDir}/shared/config.gradle" def wpilibVersionFileInput = file("src/main/generate/WPILibVersion.cpp.in") def wpilibVersionFileOutput = file("$buildDir/generated/main/cpp/WPILibVersion.cpp") -apply from: "${rootDir}/shared/imgui.gradle" - task generateCppVersion() { description = 'Generates the wpilib version class' group = 'WPILib' @@ -104,7 +102,7 @@ model { lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' lib project: ':wpigui', library: 'wpigui', linkage: 'static' lib project: ':fieldImages', library: 'fieldImages', linkage: 'static' - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' } else if (it.targetPlatform.operatingSystem.isMacOsX()) { diff --git a/roborioteamnumbersetter/build.gradle b/roborioteamnumbersetter/build.gradle index ae9f9ccfb49..344dfc96053 100644 --- a/roborioteamnumbersetter/build.gradle +++ b/roborioteamnumbersetter/build.gradle @@ -25,7 +25,6 @@ def wpilibVersionFileInput = file("src/main/generate/WPILibVersion.cpp.in") def wpilibVersionFileOutput = file("$buildDir/generated/main/cpp/WPILibVersion.cpp") apply from: "${rootDir}/shared/libssh.gradle" -apply from: "${rootDir}/shared/imgui.gradle" task generateCppVersion() { description = 'Generates the wpilib version class' @@ -103,7 +102,8 @@ model { lib project: ':wpinet', library: 'wpinet', linkage: 'static' lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' lib project: ':wpigui', library: 'wpigui', linkage: 'static' - nativeUtils.useRequiredLibrary(it, 'imgui', 'libssh') + nativeUtils.useRequiredLibrary(it, 'libssh') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' it.linker.args << 'ws2_32.lib' << 'advapi32.lib' << 'crypt32.lib' << 'user32.lib' diff --git a/settings.gradle b/settings.gradle index 1f24507fb39..298d00149f1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -61,6 +61,7 @@ include 'processstarter' include 'epilogue-processor' include 'epilogue-runtime' include 'thirdparty:googletest' +include 'thirdparty:imgui_suite' buildCache { def cred = { diff --git a/shared/imgui.gradle b/shared/imgui.gradle deleted file mode 100644 index 5ffdc52156e..00000000000 --- a/shared/imgui.gradle +++ /dev/null @@ -1,13 +0,0 @@ -nativeUtils { - nativeDependencyContainer { - imgui(getNativeDependencyTypeClass('WPIStaticMavenDependency')) { - groupId = "edu.wpi.first.thirdparty.frc2024" - artifactId = "imgui" - headerClassifier = "headers" - sourceClassifier = "sources" - ext = "zip" - version = '1.89.9-1' - targetPlatforms.addAll(nativeUtils.wpi.platforms.allPlatforms) - } - } -} diff --git a/simulation/halsim_gui/build.gradle b/simulation/halsim_gui/build.gradle index 72bcd22b70f..031cc775a8f 100644 --- a/simulation/halsim_gui/build.gradle +++ b/simulation/halsim_gui/build.gradle @@ -20,8 +20,6 @@ apply from: "${rootDir}/shared/googletest.gradle" apply from: "${rootDir}/shared/plugins/setupBuild.gradle" -apply from: "${rootDir}/shared/imgui.gradle" - model { binaries { all { @@ -33,7 +31,7 @@ model { lib project: ':wpinet', library: 'wpinet', linkage: 'shared' lib project: ':wpiutil', library: 'wpiutil', linkage: 'shared' lib project: ':fieldImages', library: 'fieldImages', linkage: 'static' - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' if (it.targetPlatform.name == nativeUtils.wpi.platforms.roborio) { it.buildable = false return diff --git a/sysid/build.gradle b/sysid/build.gradle index 88cc509efc5..3890a7bb36c 100644 --- a/sysid/build.gradle +++ b/sysid/build.gradle @@ -25,8 +25,6 @@ apply from: "${rootDir}/shared/config.gradle" def wpilibVersionFileInput = file("src/main/generate/WPILibVersion.cpp.in") def wpilibVersionFileOutput = file("$buildDir/generated/main/cpp/WPILibVersion.cpp") -apply from: "${rootDir}/shared/imgui.gradle" - task generateCppVersion() { description = 'Generates the wpilib version class' group = 'WPILib' @@ -105,7 +103,7 @@ model { lib project: ':wpimath', library: 'wpimath', linkage: 'static' lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' lib project: ':wpigui', library: 'wpigui', linkage: 'static' - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' it.linker.args << '/DELAYLOAD:MF.dll' << '/DELAYLOAD:MFReadWrite.dll' << '/DELAYLOAD:MFPlat.dll' << '/delay:nobind' @@ -147,7 +145,7 @@ model { lib project: ':wpimath', library: 'wpimath', linkage: 'static' lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' lib project: ':wpigui', library: 'wpigui', linkage: 'static' - nativeUtils.useRequiredLibrary(it, 'imgui') + lib project: ':thirdparty:imgui_suite', library: 'imgui', linkage: 'static' if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' it.linker.args << '/DELAYLOAD:MF.dll' << '/DELAYLOAD:MFReadWrite.dll' << '/DELAYLOAD:MFPlat.dll' << '/delay:nobind' diff --git a/thirdparty/imgui_suite/CMakeLists.txt b/thirdparty/imgui_suite/CMakeLists.txt new file mode 100644 index 00000000000..3361bcd9fce --- /dev/null +++ b/thirdparty/imgui_suite/CMakeLists.txt @@ -0,0 +1,61 @@ + + +include(LinkMacOSGUI) + +set(SAVE_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) +set(BUILD_SHARED_LIBS OFF) +set(GLFW_INSTALL OFF) +add_subdirectory("glfw") +set_property(TARGET glfw PROPERTY POSITION_INDEPENDENT_CODE ON) +set(BUILD_SHARED_LIBS ${SAVE_BUILD_SHARED_LIBS}) +export(TARGETS glfw FILE glfw.cmake NAMESPACE glfw::) + +# Add imgui directly to our build. +file(GLOB imgui_sources imgui/cpp/*.cpp imgui/cpp/misc/cpp/*.cpp) +file(GLOB implot_sources implot/cpp/*.cpp) +file(GLOB fonts_sources generated/fonts/src/*.cpp) +set(imgui_all_sources + ${imgui_sources} + ${implot_sources} + ${fonts_sources} + imgui/cpp/backends/imgui_impl_glfw.cpp + imgui/cpp/backends/imgui_impl_opengl3.cpp + generated/gl3w/src/gl3w.c + stb/cpp/stb_image.cpp +) +if(MSVC) + add_library(imgui STATIC ${imgui_all_sources}) +else() + add_library(imgui ${imgui_all_sources}) +endif() +target_compile_definitions(imgui PUBLIC IMGUI_IMPL_OPENGL_LOADER_GL3W) +if(MSVC) + target_sources(imgui PRIVATE imgui/cpp/backends/imgui_impl_dx11.cpp) +else() + if(APPLE) + target_compile_options(imgui PRIVATE -fobjc-arc) + wpilib_link_macos_gui(imgui) + target_sources(imgui PRIVATE imgui/cpp/backends/imgui_impl_metal.mm) + else() + #target_sources(imgui PRIVATE imgui/cpp/backends/imgui_impl_opengl3.cpp) + endif() +endif() +target_link_libraries(imgui PUBLIC glfw) +target_include_directories( + imgui + PUBLIC + "$" + "$" + "$" + "$" + "$" + "$" + "$" + PRIVATE "$" +) + +set_property(TARGET imgui PROPERTY POSITION_INDEPENDENT_CODE ON) +target_compile_features(imgui PUBLIC cxx_std_20) + +install(TARGETS imgui EXPORT imgui) +export(TARGETS imgui FILE imgui.cmake NAMESPACE imgui::) diff --git a/thirdparty/imgui_suite/build.gradle b/thirdparty/imgui_suite/build.gradle new file mode 100644 index 00000000000..f5753c844e4 --- /dev/null +++ b/thirdparty/imgui_suite/build.gradle @@ -0,0 +1,166 @@ +import org.gradle.internal.os.OperatingSystem + +if (project.hasProperty('onlylinuxathena')) { + return; +} + +apply plugin: 'c' +apply plugin: 'cpp' +apply plugin: 'visual-studio' +apply plugin: 'edu.wpi.first.NativeUtils' + +if (OperatingSystem.current().isMacOsX()) { + apply plugin: 'objective-c' + apply plugin: 'objective-cpp' +} + +apply from: "${rootDir}/shared/config.gradle" + +nativeUtils.platformConfigs.named('osxuniversal') { + it.objcCompiler.args.remove('-fobjc-weak') + it.objcCompiler.args.remove('-fobjc-arc') + it.objcppCompiler.args.remove('-fobjc-weak') + it.objcppCompiler.args.remove('-fobjc-arc') +} + +model { + + components { + imgui(NativeLibrarySpec) { + sources { + cpp { + source { + srcDirs 'imgui/cpp', 'generated/fonts/src', 'stb/cpp', 'implot/cpp', 'imgui/cpp/misc/cpp' + include '*.cpp', 'backends/imgui_impl_glfw.cpp', 'backends/imgui_impl_opengl3.cpp', 'backends/imgui_impl_opengl2.cpp' + } + exportedHeaders { + srcDirs 'imgui/include', 'generated/fonts/include', 'stb/include', 'implot/include', 'generated/gl3w/include', 'glfw/include', 'imgui/include/misc/cpp', 'imgui/include/backends' + include '*.h', 'backends/imgui_impl_glfw.h', 'backends/imgui_impl_opengl3.h', 'backends/imgui_impl_opengl2.h' + } + } + c { + source { + srcDirs 'generated/gl3w/src', 'glfw/src' + include 'gl3w.c', 'context.c', 'init.c', 'input.c', 'monitor.c', 'platform.c', 'vulkan.c', 'window.c', 'egl_context.c', 'osmesa_context.c', 'null_init.c', 'null_monitor.c', 'null_window.c', 'null_joystick.c' + } + exportedHeaders { + srcDirs 'generated/gl3w/include', 'glfw/include' + include '*.h' + } + } + } + binaries.all { + if (toolChain in VisualCpp) { + cppCompiler.args '-D_UNICODE', '-DUNICODE', '-DWIN32', '-D_WIN32', '-DSTRICT', '-DWIN32_LEAN_AND_MEAN', '-D_HAS_EXCEPTIONS=1' + } else { + cppCompiler.args '-Wshadow', '-fexceptions', '-Wno-missing-field-initializers' + } + if (it in SharedLibraryBinarySpec) { + it.cCompiler.define '_GLFW_BUILD_DLL' + if (!it.targetPlatform.operatingSystem.isWindows()) { + it.linker.args << '-fvisibility=hidden' + } + } + if (it.targetPlatform.operatingSystem.isWindows()) { + it.cCompiler.define '_GLFW_WIN32' + linker.args << 'kernel32.lib' << 'Gdi32.lib' << 'User32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib' + it.sources { + imguiWindowsCpp(CppSourceSet) { + source { + srcDirs 'imgui' + include 'cpp/backends/imgui_impl_dx11.cpp' + } + exportedHeaders { + srcDirs 'imgui/include', 'imgui/include/backends' + include '*.h', 'backends/imgui_impl_dx11.h' + } + } + glfw3WindowsC(CSourceSet) { + source { + srcDirs 'glfw/src' + includes = [ + 'win32_init.c', + 'win32_joystick.c', + 'win32_module.c', + 'win32_monitor.c', + 'win32_time.c', + 'win32_thread.c', + 'win32_window.c', + 'wgl_context.c', + ] + } + } + } + } else if (it.targetPlatform.operatingSystem.isMacOsX()) { + it.cCompiler.args << '-fno-common' + it.cCompiler.define '_GLFW_COCOA' + it.objcCompiler.define '_GLFW_COCOA' + it.objcppCompiler.args << '-fobjc-arc' + it.linker.args << '-framework' << 'Metal' << '-framework' << 'MetalKit' << '-framework' << 'Cocoa' << '-framework' << 'IOKit' << '-framework' << 'CoreFoundation' << '-framework' << 'CoreVideo' << '-framework' << 'QuartzCore' + it.sources { + imguiMacObjectiveCpp(ObjectiveCppSourceSet) { + source { + srcDirs 'imgui' + include 'cpp/backends/imgui_impl_metal.mm' + } + exportedHeaders { + srcDirs 'imgui/include', 'imgui/include/backends' + include '*.h', 'backends/imgui_impl_metal.h' + } + } + glfw3MacC(CSourceSet) { + source { + srcDirs 'glfw/src' + includes = [ + 'cocoa_time.c', + 'posix_module.c', + 'posix_thread.c', + ] + } + } + glfw3MacObjC(ObjectiveCSourceSet) { + source { + srcDirs 'glfw/src' + includes = [ + 'cocoa_init.m', + 'cocoa_joystick.m', + 'cocoa_monitor.m', + 'cocoa_window.m', + 'nsgl_context.m', + ] + } + } + } + } else { + it.cCompiler.define '_GLFW_X11' + it.linker.args << '-lrt' + it.sources { + glfw3LinuxC(CSourceSet) { + source { + srcDirs 'glfw/src' + includes = [ + 'x11_init.c', + 'x11_monitor.c', + 'x11_window.c', + 'xkb_unicode.c', + 'posix_module.c', + 'posix_poll.c', + 'posix_time.c', + 'posix_thread.c', + 'glx_context.c', + 'linux_joystick.c', + ] + } + } + } + } + } + binaries.withType(SharedLibraryBinarySpec) { + buildable = false + } + appendDebugPathToBinaries(binaries) + } + } +} + +apply from: 'publish.gradle' diff --git a/thirdparty/imgui_suite/generate_fonts.sh b/thirdparty/imgui_suite/generate_fonts.sh new file mode 100755 index 00000000000..0af7bf0db4c --- /dev/null +++ b/thirdparty/imgui_suite/generate_fonts.sh @@ -0,0 +1,84 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +mkdir -p $DIR/generated +cd $DIR/generated + +# Versions +IMGUI_COMMIT=74f7ac04a166c77ef1cbbbebff51e5bfc4fcfa5d +ICONFONTCPPHEADERS_COMMIT=acd3728de3ee4e2461f8958154bb2dc46f958723 +DROID_COMMIT=d3817c246c6e3da7531fa1fbb0b0fca271aae7fb +PROGGYFONTS_VERSION=1.1.5 +FONTAWESOME_VERSION=6.2.0 +FIRACODE_VERSION=6.2 + +mkdir download +pushd download +# Download compressor +wget https://github.com/ocornut/imgui/raw/${IMGUI_COMMIT}/misc/fonts/binary_to_compressed_c.cpp + +# Download fonts +wget -O proggyfonts.zip https://github.com/bluescan/proggyfonts/archive/refs/tags/v${PROGGYFONTS_VERSION}.zip +wget https://github.com/FortAwesome/Font-Awesome/releases/download/${FONTAWESOME_VERSION}/fontawesome-free-${FONTAWESOME_VERSION}-web.zip +wget -O droid-fonts.zip https://github.com/grays/droid-fonts/archive/${DROID_COMMIT}.zip +wget -O fira-code.zip https://github.com/tonsky/FiraCode/releases/download/${FIRACODE_VERSION}/Fira_Code_v${FIRACODE_VERSION}.zip + +# Download C++ icon font header +wget https://github.com/juliettef/IconFontCppHeaders/raw/${ICONFONTCPPHEADERS_COMMIT}/IconsFontAwesome6.h + +popd + +# Extract fonts +rm -rf extract +mkdir extract +pushd extract +unzip ../download/proggyfonts.zip +unzip ../download/fontawesome-free-${FONTAWESOME_VERSION}-web.zip +unzip ../download/droid-fonts.zip +mkdir fira-code +pushd fira-code +unzip ../../download/fira-code.zip +popd +popd + +rm -rf fonts +mkdir -p fonts/src +mkdir -p fonts/include + +# Copy C++ icon font header +cp -p download/IconsFontAwesome6.h fonts/include/ + +# Copy license files +cp -p extract/proggyfonts-${PROGGYFONTS_VERSION}/LICENSE fonts/LICENSE-proggyfonts.txt +cp -p extract/fontawesome-free-${FONTAWESOME_VERSION}-web/LICENSE.txt fonts/LICENSE-fontawesome.txt +cp -p extract/droid-fonts-${DROID_COMMIT}/droid/NOTICE fonts/LICENSE-droid.txt + +# Build C versions +g++ -o imgui_font_bin2c download/binary_to_compressed_c.cpp +./imgui_font_bin2c "extract/proggyfonts-${PROGGYFONTS_VERSION}/ProggyDotted/ProggyDotted Regular.ttf" ProggyDotted > fonts/src/ProggyDotted.inc +./imgui_font_bin2c "extract/fontawesome-free-${FONTAWESOME_VERSION}-web/webfonts/fa-regular-400.ttf" FontAwesomeRegular > fonts/src/FontAwesomeRegular.inc +./imgui_font_bin2c "extract/fontawesome-free-${FONTAWESOME_VERSION}-web/webfonts/fa-solid-900.ttf" FontAwesomeSolid > fonts/src/FontAwesomeSolid.inc +./imgui_font_bin2c "extract/droid-fonts-${DROID_COMMIT}/droid/DroidSans.ttf" DroidSans > fonts/src/DroidSans.inc +./imgui_font_bin2c "extract/fira-code/ttf/FiraCode-Retina.ttf" FiraCodeRetina > fonts/src/FiraCodeRetina.inc + +# Generate C wrapper source/headers +for font in ProggyDotted FontAwesomeRegular FontAwesomeSolid DroidSans FiraCodeRetina +do +cat >fonts/src/imgui_${font}.cpp <AddFontFromMemoryCompressedTTF(${font}_compressed_data, ${font}_compressed_size, size_pixels, font_cfg, glyph_ranges); +} +END + +cat >fonts/include/imgui_${font}.h <" // U+003e +#define ICON_FA_GREATER_THAN_EQUAL "\xef\x94\xb2" // U+f532 +#define ICON_FA_GRIP "\xef\x96\x8d" // U+f58d +#define ICON_FA_GRIP_LINES "\xef\x9e\xa4" // U+f7a4 +#define ICON_FA_GRIP_LINES_VERTICAL "\xef\x9e\xa5" // U+f7a5 +#define ICON_FA_GRIP_VERTICAL "\xef\x96\x8e" // U+f58e +#define ICON_FA_GROUP_ARROWS_ROTATE "\xee\x93\xb6" // U+e4f6 +#define ICON_FA_GUARANI_SIGN "\xee\x86\x9a" // U+e19a +#define ICON_FA_GUITAR "\xef\x9e\xa6" // U+f7a6 +#define ICON_FA_GUN "\xee\x86\x9b" // U+e19b +#define ICON_FA_H "H" // U+0048 +#define ICON_FA_HAMMER "\xef\x9b\xa3" // U+f6e3 +#define ICON_FA_HAMSA "\xef\x99\xa5" // U+f665 +#define ICON_FA_HAND "\xef\x89\x96" // U+f256 +#define ICON_FA_HAND_BACK_FIST "\xef\x89\x95" // U+f255 +#define ICON_FA_HAND_DOTS "\xef\x91\xa1" // U+f461 +#define ICON_FA_HAND_FIST "\xef\x9b\x9e" // U+f6de +#define ICON_FA_HAND_HOLDING "\xef\x92\xbd" // U+f4bd +#define ICON_FA_HAND_HOLDING_DOLLAR "\xef\x93\x80" // U+f4c0 +#define ICON_FA_HAND_HOLDING_DROPLET "\xef\x93\x81" // U+f4c1 +#define ICON_FA_HAND_HOLDING_HAND "\xee\x93\xb7" // U+e4f7 +#define ICON_FA_HAND_HOLDING_HEART "\xef\x92\xbe" // U+f4be +#define ICON_FA_HAND_HOLDING_MEDICAL "\xee\x81\x9c" // U+e05c +#define ICON_FA_HAND_LIZARD "\xef\x89\x98" // U+f258 +#define ICON_FA_HAND_MIDDLE_FINGER "\xef\xa0\x86" // U+f806 +#define ICON_FA_HAND_PEACE "\xef\x89\x9b" // U+f25b +#define ICON_FA_HAND_POINT_DOWN "\xef\x82\xa7" // U+f0a7 +#define ICON_FA_HAND_POINT_LEFT "\xef\x82\xa5" // U+f0a5 +#define ICON_FA_HAND_POINT_RIGHT "\xef\x82\xa4" // U+f0a4 +#define ICON_FA_HAND_POINT_UP "\xef\x82\xa6" // U+f0a6 +#define ICON_FA_HAND_POINTER "\xef\x89\x9a" // U+f25a +#define ICON_FA_HAND_SCISSORS "\xef\x89\x97" // U+f257 +#define ICON_FA_HAND_SPARKLES "\xee\x81\x9d" // U+e05d +#define ICON_FA_HAND_SPOCK "\xef\x89\x99" // U+f259 +#define ICON_FA_HANDCUFFS "\xee\x93\xb8" // U+e4f8 +#define ICON_FA_HANDS "\xef\x8a\xa7" // U+f2a7 +#define ICON_FA_HANDS_ASL_INTERPRETING "\xef\x8a\xa3" // U+f2a3 +#define ICON_FA_HANDS_BOUND "\xee\x93\xb9" // U+e4f9 +#define ICON_FA_HANDS_BUBBLES "\xee\x81\x9e" // U+e05e +#define ICON_FA_HANDS_CLAPPING "\xee\x86\xa8" // U+e1a8 +#define ICON_FA_HANDS_HOLDING "\xef\x93\x82" // U+f4c2 +#define ICON_FA_HANDS_HOLDING_CHILD "\xee\x93\xba" // U+e4fa +#define ICON_FA_HANDS_HOLDING_CIRCLE "\xee\x93\xbb" // U+e4fb +#define ICON_FA_HANDS_PRAYING "\xef\x9a\x84" // U+f684 +#define ICON_FA_HANDSHAKE "\xef\x8a\xb5" // U+f2b5 +#define ICON_FA_HANDSHAKE_ANGLE "\xef\x93\x84" // U+f4c4 +#define ICON_FA_HANDSHAKE_SIMPLE "\xef\x93\x86" // U+f4c6 +#define ICON_FA_HANDSHAKE_SIMPLE_SLASH "\xee\x81\x9f" // U+e05f +#define ICON_FA_HANDSHAKE_SLASH "\xee\x81\xa0" // U+e060 +#define ICON_FA_HANUKIAH "\xef\x9b\xa6" // U+f6e6 +#define ICON_FA_HARD_DRIVE "\xef\x82\xa0" // U+f0a0 +#define ICON_FA_HASHTAG "#" // U+0023 +#define ICON_FA_HAT_COWBOY "\xef\xa3\x80" // U+f8c0 +#define ICON_FA_HAT_COWBOY_SIDE "\xef\xa3\x81" // U+f8c1 +#define ICON_FA_HAT_WIZARD "\xef\x9b\xa8" // U+f6e8 +#define ICON_FA_HEAD_SIDE_COUGH "\xee\x81\xa1" // U+e061 +#define ICON_FA_HEAD_SIDE_COUGH_SLASH "\xee\x81\xa2" // U+e062 +#define ICON_FA_HEAD_SIDE_MASK "\xee\x81\xa3" // U+e063 +#define ICON_FA_HEAD_SIDE_VIRUS "\xee\x81\xa4" // U+e064 +#define ICON_FA_HEADING "\xef\x87\x9c" // U+f1dc +#define ICON_FA_HEADPHONES "\xef\x80\xa5" // U+f025 +#define ICON_FA_HEADPHONES_SIMPLE "\xef\x96\x8f" // U+f58f +#define ICON_FA_HEADSET "\xef\x96\x90" // U+f590 +#define ICON_FA_HEART "\xef\x80\x84" // U+f004 +#define ICON_FA_HEART_CIRCLE_BOLT "\xee\x93\xbc" // U+e4fc +#define ICON_FA_HEART_CIRCLE_CHECK "\xee\x93\xbd" // U+e4fd +#define ICON_FA_HEART_CIRCLE_EXCLAMATION "\xee\x93\xbe" // U+e4fe +#define ICON_FA_HEART_CIRCLE_MINUS "\xee\x93\xbf" // U+e4ff +#define ICON_FA_HEART_CIRCLE_PLUS "\xee\x94\x80" // U+e500 +#define ICON_FA_HEART_CIRCLE_XMARK "\xee\x94\x81" // U+e501 +#define ICON_FA_HEART_CRACK "\xef\x9e\xa9" // U+f7a9 +#define ICON_FA_HEART_PULSE "\xef\x88\x9e" // U+f21e +#define ICON_FA_HELICOPTER "\xef\x94\xb3" // U+f533 +#define ICON_FA_HELICOPTER_SYMBOL "\xee\x94\x82" // U+e502 +#define ICON_FA_HELMET_SAFETY "\xef\xa0\x87" // U+f807 +#define ICON_FA_HELMET_UN "\xee\x94\x83" // U+e503 +#define ICON_FA_HIGHLIGHTER "\xef\x96\x91" // U+f591 +#define ICON_FA_HILL_AVALANCHE "\xee\x94\x87" // U+e507 +#define ICON_FA_HILL_ROCKSLIDE "\xee\x94\x88" // U+e508 +#define ICON_FA_HIPPO "\xef\x9b\xad" // U+f6ed +#define ICON_FA_HOCKEY_PUCK "\xef\x91\x93" // U+f453 +#define ICON_FA_HOLLY_BERRY "\xef\x9e\xaa" // U+f7aa +#define ICON_FA_HORSE "\xef\x9b\xb0" // U+f6f0 +#define ICON_FA_HORSE_HEAD "\xef\x9e\xab" // U+f7ab +#define ICON_FA_HOSPITAL "\xef\x83\xb8" // U+f0f8 +#define ICON_FA_HOSPITAL_USER "\xef\xa0\x8d" // U+f80d +#define ICON_FA_HOT_TUB_PERSON "\xef\x96\x93" // U+f593 +#define ICON_FA_HOTDOG "\xef\xa0\x8f" // U+f80f +#define ICON_FA_HOTEL "\xef\x96\x94" // U+f594 +#define ICON_FA_HOURGLASS "\xef\x89\x94" // U+f254 +#define ICON_FA_HOURGLASS_END "\xef\x89\x93" // U+f253 +#define ICON_FA_HOURGLASS_HALF "\xef\x89\x92" // U+f252 +#define ICON_FA_HOURGLASS_START "\xef\x89\x91" // U+f251 +#define ICON_FA_HOUSE "\xef\x80\x95" // U+f015 +#define ICON_FA_HOUSE_CHIMNEY "\xee\x8e\xaf" // U+e3af +#define ICON_FA_HOUSE_CHIMNEY_CRACK "\xef\x9b\xb1" // U+f6f1 +#define ICON_FA_HOUSE_CHIMNEY_MEDICAL "\xef\x9f\xb2" // U+f7f2 +#define ICON_FA_HOUSE_CHIMNEY_USER "\xee\x81\xa5" // U+e065 +#define ICON_FA_HOUSE_CHIMNEY_WINDOW "\xee\x80\x8d" // U+e00d +#define ICON_FA_HOUSE_CIRCLE_CHECK "\xee\x94\x89" // U+e509 +#define ICON_FA_HOUSE_CIRCLE_EXCLAMATION "\xee\x94\x8a" // U+e50a +#define ICON_FA_HOUSE_CIRCLE_XMARK "\xee\x94\x8b" // U+e50b +#define ICON_FA_HOUSE_CRACK "\xee\x8e\xb1" // U+e3b1 +#define ICON_FA_HOUSE_FIRE "\xee\x94\x8c" // U+e50c +#define ICON_FA_HOUSE_FLAG "\xee\x94\x8d" // U+e50d +#define ICON_FA_HOUSE_FLOOD_WATER "\xee\x94\x8e" // U+e50e +#define ICON_FA_HOUSE_FLOOD_WATER_CIRCLE_ARROW_RIGHT "\xee\x94\x8f" // U+e50f +#define ICON_FA_HOUSE_LAPTOP "\xee\x81\xa6" // U+e066 +#define ICON_FA_HOUSE_LOCK "\xee\x94\x90" // U+e510 +#define ICON_FA_HOUSE_MEDICAL "\xee\x8e\xb2" // U+e3b2 +#define ICON_FA_HOUSE_MEDICAL_CIRCLE_CHECK "\xee\x94\x91" // U+e511 +#define ICON_FA_HOUSE_MEDICAL_CIRCLE_EXCLAMATION "\xee\x94\x92" // U+e512 +#define ICON_FA_HOUSE_MEDICAL_CIRCLE_XMARK "\xee\x94\x93" // U+e513 +#define ICON_FA_HOUSE_MEDICAL_FLAG "\xee\x94\x94" // U+e514 +#define ICON_FA_HOUSE_SIGNAL "\xee\x80\x92" // U+e012 +#define ICON_FA_HOUSE_TSUNAMI "\xee\x94\x95" // U+e515 +#define ICON_FA_HOUSE_USER "\xee\x86\xb0" // U+e1b0 +#define ICON_FA_HRYVNIA_SIGN "\xef\x9b\xb2" // U+f6f2 +#define ICON_FA_HURRICANE "\xef\x9d\x91" // U+f751 +#define ICON_FA_I "I" // U+0049 +#define ICON_FA_I_CURSOR "\xef\x89\x86" // U+f246 +#define ICON_FA_ICE_CREAM "\xef\xa0\x90" // U+f810 +#define ICON_FA_ICICLES "\xef\x9e\xad" // U+f7ad +#define ICON_FA_ICONS "\xef\xa1\xad" // U+f86d +#define ICON_FA_ID_BADGE "\xef\x8b\x81" // U+f2c1 +#define ICON_FA_ID_CARD "\xef\x8b\x82" // U+f2c2 +#define ICON_FA_ID_CARD_CLIP "\xef\x91\xbf" // U+f47f +#define ICON_FA_IGLOO "\xef\x9e\xae" // U+f7ae +#define ICON_FA_IMAGE "\xef\x80\xbe" // U+f03e +#define ICON_FA_IMAGE_PORTRAIT "\xef\x8f\xa0" // U+f3e0 +#define ICON_FA_IMAGES "\xef\x8c\x82" // U+f302 +#define ICON_FA_INBOX "\xef\x80\x9c" // U+f01c +#define ICON_FA_INDENT "\xef\x80\xbc" // U+f03c +#define ICON_FA_INDIAN_RUPEE_SIGN "\xee\x86\xbc" // U+e1bc +#define ICON_FA_INDUSTRY "\xef\x89\xb5" // U+f275 +#define ICON_FA_INFINITY "\xef\x94\xb4" // U+f534 +#define ICON_FA_INFO "\xef\x84\xa9" // U+f129 +#define ICON_FA_ITALIC "\xef\x80\xb3" // U+f033 +#define ICON_FA_J "J" // U+004a +#define ICON_FA_JAR "\xee\x94\x96" // U+e516 +#define ICON_FA_JAR_WHEAT "\xee\x94\x97" // U+e517 +#define ICON_FA_JEDI "\xef\x99\xa9" // U+f669 +#define ICON_FA_JET_FIGHTER "\xef\x83\xbb" // U+f0fb +#define ICON_FA_JET_FIGHTER_UP "\xee\x94\x98" // U+e518 +#define ICON_FA_JOINT "\xef\x96\x95" // U+f595 +#define ICON_FA_JUG_DETERGENT "\xee\x94\x99" // U+e519 +#define ICON_FA_K "K" // U+004b +#define ICON_FA_KAABA "\xef\x99\xab" // U+f66b +#define ICON_FA_KEY "\xef\x82\x84" // U+f084 +#define ICON_FA_KEYBOARD "\xef\x84\x9c" // U+f11c +#define ICON_FA_KHANDA "\xef\x99\xad" // U+f66d +#define ICON_FA_KIP_SIGN "\xee\x87\x84" // U+e1c4 +#define ICON_FA_KIT_MEDICAL "\xef\x91\xb9" // U+f479 +#define ICON_FA_KITCHEN_SET "\xee\x94\x9a" // U+e51a +#define ICON_FA_KIWI_BIRD "\xef\x94\xb5" // U+f535 +#define ICON_FA_L "L" // U+004c +#define ICON_FA_LAND_MINE_ON "\xee\x94\x9b" // U+e51b +#define ICON_FA_LANDMARK "\xef\x99\xaf" // U+f66f +#define ICON_FA_LANDMARK_DOME "\xef\x9d\x92" // U+f752 +#define ICON_FA_LANDMARK_FLAG "\xee\x94\x9c" // U+e51c +#define ICON_FA_LANGUAGE "\xef\x86\xab" // U+f1ab +#define ICON_FA_LAPTOP "\xef\x84\x89" // U+f109 +#define ICON_FA_LAPTOP_CODE "\xef\x97\xbc" // U+f5fc +#define ICON_FA_LAPTOP_FILE "\xee\x94\x9d" // U+e51d +#define ICON_FA_LAPTOP_MEDICAL "\xef\xa0\x92" // U+f812 +#define ICON_FA_LARI_SIGN "\xee\x87\x88" // U+e1c8 +#define ICON_FA_LAYER_GROUP "\xef\x97\xbd" // U+f5fd +#define ICON_FA_LEAF "\xef\x81\xac" // U+f06c +#define ICON_FA_LEFT_LONG "\xef\x8c\x8a" // U+f30a +#define ICON_FA_LEFT_RIGHT "\xef\x8c\xb7" // U+f337 +#define ICON_FA_LEMON "\xef\x82\x94" // U+f094 +#define ICON_FA_LESS_THAN "<" // U+003c +#define ICON_FA_LESS_THAN_EQUAL "\xef\x94\xb7" // U+f537 +#define ICON_FA_LIFE_RING "\xef\x87\x8d" // U+f1cd +#define ICON_FA_LIGHTBULB "\xef\x83\xab" // U+f0eb +#define ICON_FA_LINES_LEANING "\xee\x94\x9e" // U+e51e +#define ICON_FA_LINK "\xef\x83\x81" // U+f0c1 +#define ICON_FA_LINK_SLASH "\xef\x84\xa7" // U+f127 +#define ICON_FA_LIRA_SIGN "\xef\x86\x95" // U+f195 +#define ICON_FA_LIST "\xef\x80\xba" // U+f03a +#define ICON_FA_LIST_CHECK "\xef\x82\xae" // U+f0ae +#define ICON_FA_LIST_OL "\xef\x83\x8b" // U+f0cb +#define ICON_FA_LIST_UL "\xef\x83\x8a" // U+f0ca +#define ICON_FA_LITECOIN_SIGN "\xee\x87\x93" // U+e1d3 +#define ICON_FA_LOCATION_ARROW "\xef\x84\xa4" // U+f124 +#define ICON_FA_LOCATION_CROSSHAIRS "\xef\x98\x81" // U+f601 +#define ICON_FA_LOCATION_DOT "\xef\x8f\x85" // U+f3c5 +#define ICON_FA_LOCATION_PIN "\xef\x81\x81" // U+f041 +#define ICON_FA_LOCATION_PIN_LOCK "\xee\x94\x9f" // U+e51f +#define ICON_FA_LOCK "\xef\x80\xa3" // U+f023 +#define ICON_FA_LOCK_OPEN "\xef\x8f\x81" // U+f3c1 +#define ICON_FA_LOCUST "\xee\x94\xa0" // U+e520 +#define ICON_FA_LUNGS "\xef\x98\x84" // U+f604 +#define ICON_FA_LUNGS_VIRUS "\xee\x81\xa7" // U+e067 +#define ICON_FA_M "M" // U+004d +#define ICON_FA_MAGNET "\xef\x81\xb6" // U+f076 +#define ICON_FA_MAGNIFYING_GLASS "\xef\x80\x82" // U+f002 +#define ICON_FA_MAGNIFYING_GLASS_ARROW_RIGHT "\xee\x94\xa1" // U+e521 +#define ICON_FA_MAGNIFYING_GLASS_CHART "\xee\x94\xa2" // U+e522 +#define ICON_FA_MAGNIFYING_GLASS_DOLLAR "\xef\x9a\x88" // U+f688 +#define ICON_FA_MAGNIFYING_GLASS_LOCATION "\xef\x9a\x89" // U+f689 +#define ICON_FA_MAGNIFYING_GLASS_MINUS "\xef\x80\x90" // U+f010 +#define ICON_FA_MAGNIFYING_GLASS_PLUS "\xef\x80\x8e" // U+f00e +#define ICON_FA_MANAT_SIGN "\xee\x87\x95" // U+e1d5 +#define ICON_FA_MAP "\xef\x89\xb9" // U+f279 +#define ICON_FA_MAP_LOCATION "\xef\x96\x9f" // U+f59f +#define ICON_FA_MAP_LOCATION_DOT "\xef\x96\xa0" // U+f5a0 +#define ICON_FA_MAP_PIN "\xef\x89\xb6" // U+f276 +#define ICON_FA_MARKER "\xef\x96\xa1" // U+f5a1 +#define ICON_FA_MARS "\xef\x88\xa2" // U+f222 +#define ICON_FA_MARS_AND_VENUS "\xef\x88\xa4" // U+f224 +#define ICON_FA_MARS_AND_VENUS_BURST "\xee\x94\xa3" // U+e523 +#define ICON_FA_MARS_DOUBLE "\xef\x88\xa7" // U+f227 +#define ICON_FA_MARS_STROKE "\xef\x88\xa9" // U+f229 +#define ICON_FA_MARS_STROKE_RIGHT "\xef\x88\xab" // U+f22b +#define ICON_FA_MARS_STROKE_UP "\xef\x88\xaa" // U+f22a +#define ICON_FA_MARTINI_GLASS "\xef\x95\xbb" // U+f57b +#define ICON_FA_MARTINI_GLASS_CITRUS "\xef\x95\xa1" // U+f561 +#define ICON_FA_MARTINI_GLASS_EMPTY "\xef\x80\x80" // U+f000 +#define ICON_FA_MASK "\xef\x9b\xba" // U+f6fa +#define ICON_FA_MASK_FACE "\xee\x87\x97" // U+e1d7 +#define ICON_FA_MASK_VENTILATOR "\xee\x94\xa4" // U+e524 +#define ICON_FA_MASKS_THEATER "\xef\x98\xb0" // U+f630 +#define ICON_FA_MATTRESS_PILLOW "\xee\x94\xa5" // U+e525 +#define ICON_FA_MAXIMIZE "\xef\x8c\x9e" // U+f31e +#define ICON_FA_MEDAL "\xef\x96\xa2" // U+f5a2 +#define ICON_FA_MEMORY "\xef\x94\xb8" // U+f538 +#define ICON_FA_MENORAH "\xef\x99\xb6" // U+f676 +#define ICON_FA_MERCURY "\xef\x88\xa3" // U+f223 +#define ICON_FA_MESSAGE "\xef\x89\xba" // U+f27a +#define ICON_FA_METEOR "\xef\x9d\x93" // U+f753 +#define ICON_FA_MICROCHIP "\xef\x8b\x9b" // U+f2db +#define ICON_FA_MICROPHONE "\xef\x84\xb0" // U+f130 +#define ICON_FA_MICROPHONE_LINES "\xef\x8f\x89" // U+f3c9 +#define ICON_FA_MICROPHONE_LINES_SLASH "\xef\x94\xb9" // U+f539 +#define ICON_FA_MICROPHONE_SLASH "\xef\x84\xb1" // U+f131 +#define ICON_FA_MICROSCOPE "\xef\x98\x90" // U+f610 +#define ICON_FA_MILL_SIGN "\xee\x87\xad" // U+e1ed +#define ICON_FA_MINIMIZE "\xef\x9e\x8c" // U+f78c +#define ICON_FA_MINUS "\xef\x81\xa8" // U+f068 +#define ICON_FA_MITTEN "\xef\x9e\xb5" // U+f7b5 +#define ICON_FA_MOBILE "\xef\x8f\x8e" // U+f3ce +#define ICON_FA_MOBILE_BUTTON "\xef\x84\x8b" // U+f10b +#define ICON_FA_MOBILE_RETRO "\xee\x94\xa7" // U+e527 +#define ICON_FA_MOBILE_SCREEN "\xef\x8f\x8f" // U+f3cf +#define ICON_FA_MOBILE_SCREEN_BUTTON "\xef\x8f\x8d" // U+f3cd +#define ICON_FA_MONEY_BILL "\xef\x83\x96" // U+f0d6 +#define ICON_FA_MONEY_BILL_1 "\xef\x8f\x91" // U+f3d1 +#define ICON_FA_MONEY_BILL_1_WAVE "\xef\x94\xbb" // U+f53b +#define ICON_FA_MONEY_BILL_TRANSFER "\xee\x94\xa8" // U+e528 +#define ICON_FA_MONEY_BILL_TREND_UP "\xee\x94\xa9" // U+e529 +#define ICON_FA_MONEY_BILL_WAVE "\xef\x94\xba" // U+f53a +#define ICON_FA_MONEY_BILL_WHEAT "\xee\x94\xaa" // U+e52a +#define ICON_FA_MONEY_BILLS "\xee\x87\xb3" // U+e1f3 +#define ICON_FA_MONEY_CHECK "\xef\x94\xbc" // U+f53c +#define ICON_FA_MONEY_CHECK_DOLLAR "\xef\x94\xbd" // U+f53d +#define ICON_FA_MONUMENT "\xef\x96\xa6" // U+f5a6 +#define ICON_FA_MOON "\xef\x86\x86" // U+f186 +#define ICON_FA_MORTAR_PESTLE "\xef\x96\xa7" // U+f5a7 +#define ICON_FA_MOSQUE "\xef\x99\xb8" // U+f678 +#define ICON_FA_MOSQUITO "\xee\x94\xab" // U+e52b +#define ICON_FA_MOSQUITO_NET "\xee\x94\xac" // U+e52c +#define ICON_FA_MOTORCYCLE "\xef\x88\x9c" // U+f21c +#define ICON_FA_MOUND "\xee\x94\xad" // U+e52d +#define ICON_FA_MOUNTAIN "\xef\x9b\xbc" // U+f6fc +#define ICON_FA_MOUNTAIN_CITY "\xee\x94\xae" // U+e52e +#define ICON_FA_MOUNTAIN_SUN "\xee\x94\xaf" // U+e52f +#define ICON_FA_MUG_HOT "\xef\x9e\xb6" // U+f7b6 +#define ICON_FA_MUG_SAUCER "\xef\x83\xb4" // U+f0f4 +#define ICON_FA_MUSIC "\xef\x80\x81" // U+f001 +#define ICON_FA_N "N" // U+004e +#define ICON_FA_NAIRA_SIGN "\xee\x87\xb6" // U+e1f6 +#define ICON_FA_NETWORK_WIRED "\xef\x9b\xbf" // U+f6ff +#define ICON_FA_NEUTER "\xef\x88\xac" // U+f22c +#define ICON_FA_NEWSPAPER "\xef\x87\xaa" // U+f1ea +#define ICON_FA_NOT_EQUAL "\xef\x94\xbe" // U+f53e +#define ICON_FA_NOTE_STICKY "\xef\x89\x89" // U+f249 +#define ICON_FA_NOTES_MEDICAL "\xef\x92\x81" // U+f481 +#define ICON_FA_O "O" // U+004f +#define ICON_FA_OBJECT_GROUP "\xef\x89\x87" // U+f247 +#define ICON_FA_OBJECT_UNGROUP "\xef\x89\x88" // U+f248 +#define ICON_FA_OIL_CAN "\xef\x98\x93" // U+f613 +#define ICON_FA_OIL_WELL "\xee\x94\xb2" // U+e532 +#define ICON_FA_OM "\xef\x99\xb9" // U+f679 +#define ICON_FA_OTTER "\xef\x9c\x80" // U+f700 +#define ICON_FA_OUTDENT "\xef\x80\xbb" // U+f03b +#define ICON_FA_P "P" // U+0050 +#define ICON_FA_PAGER "\xef\xa0\x95" // U+f815 +#define ICON_FA_PAINT_ROLLER "\xef\x96\xaa" // U+f5aa +#define ICON_FA_PAINTBRUSH "\xef\x87\xbc" // U+f1fc +#define ICON_FA_PALETTE "\xef\x94\xbf" // U+f53f +#define ICON_FA_PALLET "\xef\x92\x82" // U+f482 +#define ICON_FA_PANORAMA "\xee\x88\x89" // U+e209 +#define ICON_FA_PAPER_PLANE "\xef\x87\x98" // U+f1d8 +#define ICON_FA_PAPERCLIP "\xef\x83\x86" // U+f0c6 +#define ICON_FA_PARACHUTE_BOX "\xef\x93\x8d" // U+f4cd +#define ICON_FA_PARAGRAPH "\xef\x87\x9d" // U+f1dd +#define ICON_FA_PASSPORT "\xef\x96\xab" // U+f5ab +#define ICON_FA_PASTE "\xef\x83\xaa" // U+f0ea +#define ICON_FA_PAUSE "\xef\x81\x8c" // U+f04c +#define ICON_FA_PAW "\xef\x86\xb0" // U+f1b0 +#define ICON_FA_PEACE "\xef\x99\xbc" // U+f67c +#define ICON_FA_PEN "\xef\x8c\x84" // U+f304 +#define ICON_FA_PEN_CLIP "\xef\x8c\x85" // U+f305 +#define ICON_FA_PEN_FANCY "\xef\x96\xac" // U+f5ac +#define ICON_FA_PEN_NIB "\xef\x96\xad" // U+f5ad +#define ICON_FA_PEN_RULER "\xef\x96\xae" // U+f5ae +#define ICON_FA_PEN_TO_SQUARE "\xef\x81\x84" // U+f044 +#define ICON_FA_PENCIL "\xef\x8c\x83" // U+f303 +#define ICON_FA_PEOPLE_ARROWS "\xee\x81\xa8" // U+e068 +#define ICON_FA_PEOPLE_CARRY_BOX "\xef\x93\x8e" // U+f4ce +#define ICON_FA_PEOPLE_GROUP "\xee\x94\xb3" // U+e533 +#define ICON_FA_PEOPLE_LINE "\xee\x94\xb4" // U+e534 +#define ICON_FA_PEOPLE_PULLING "\xee\x94\xb5" // U+e535 +#define ICON_FA_PEOPLE_ROBBERY "\xee\x94\xb6" // U+e536 +#define ICON_FA_PEOPLE_ROOF "\xee\x94\xb7" // U+e537 +#define ICON_FA_PEPPER_HOT "\xef\xa0\x96" // U+f816 +#define ICON_FA_PERCENT "%" // U+0025 +#define ICON_FA_PERSON "\xef\x86\x83" // U+f183 +#define ICON_FA_PERSON_ARROW_DOWN_TO_LINE "\xee\x94\xb8" // U+e538 +#define ICON_FA_PERSON_ARROW_UP_FROM_LINE "\xee\x94\xb9" // U+e539 +#define ICON_FA_PERSON_BIKING "\xef\xa1\x8a" // U+f84a +#define ICON_FA_PERSON_BOOTH "\xef\x9d\x96" // U+f756 +#define ICON_FA_PERSON_BREASTFEEDING "\xee\x94\xba" // U+e53a +#define ICON_FA_PERSON_BURST "\xee\x94\xbb" // U+e53b +#define ICON_FA_PERSON_CANE "\xee\x94\xbc" // U+e53c +#define ICON_FA_PERSON_CHALKBOARD "\xee\x94\xbd" // U+e53d +#define ICON_FA_PERSON_CIRCLE_CHECK "\xee\x94\xbe" // U+e53e +#define ICON_FA_PERSON_CIRCLE_EXCLAMATION "\xee\x94\xbf" // U+e53f +#define ICON_FA_PERSON_CIRCLE_MINUS "\xee\x95\x80" // U+e540 +#define ICON_FA_PERSON_CIRCLE_PLUS "\xee\x95\x81" // U+e541 +#define ICON_FA_PERSON_CIRCLE_QUESTION "\xee\x95\x82" // U+e542 +#define ICON_FA_PERSON_CIRCLE_XMARK "\xee\x95\x83" // U+e543 +#define ICON_FA_PERSON_DIGGING "\xef\xa1\x9e" // U+f85e +#define ICON_FA_PERSON_DOTS_FROM_LINE "\xef\x91\xb0" // U+f470 +#define ICON_FA_PERSON_DRESS "\xef\x86\x82" // U+f182 +#define ICON_FA_PERSON_DRESS_BURST "\xee\x95\x84" // U+e544 +#define ICON_FA_PERSON_DROWNING "\xee\x95\x85" // U+e545 +#define ICON_FA_PERSON_FALLING "\xee\x95\x86" // U+e546 +#define ICON_FA_PERSON_FALLING_BURST "\xee\x95\x87" // U+e547 +#define ICON_FA_PERSON_HALF_DRESS "\xee\x95\x88" // U+e548 +#define ICON_FA_PERSON_HARASSING "\xee\x95\x89" // U+e549 +#define ICON_FA_PERSON_HIKING "\xef\x9b\xac" // U+f6ec +#define ICON_FA_PERSON_MILITARY_POINTING "\xee\x95\x8a" // U+e54a +#define ICON_FA_PERSON_MILITARY_RIFLE "\xee\x95\x8b" // U+e54b +#define ICON_FA_PERSON_MILITARY_TO_PERSON "\xee\x95\x8c" // U+e54c +#define ICON_FA_PERSON_PRAYING "\xef\x9a\x83" // U+f683 +#define ICON_FA_PERSON_PREGNANT "\xee\x8c\x9e" // U+e31e +#define ICON_FA_PERSON_RAYS "\xee\x95\x8d" // U+e54d +#define ICON_FA_PERSON_RIFLE "\xee\x95\x8e" // U+e54e +#define ICON_FA_PERSON_RUNNING "\xef\x9c\x8c" // U+f70c +#define ICON_FA_PERSON_SHELTER "\xee\x95\x8f" // U+e54f +#define ICON_FA_PERSON_SKATING "\xef\x9f\x85" // U+f7c5 +#define ICON_FA_PERSON_SKIING "\xef\x9f\x89" // U+f7c9 +#define ICON_FA_PERSON_SKIING_NORDIC "\xef\x9f\x8a" // U+f7ca +#define ICON_FA_PERSON_SNOWBOARDING "\xef\x9f\x8e" // U+f7ce +#define ICON_FA_PERSON_SWIMMING "\xef\x97\x84" // U+f5c4 +#define ICON_FA_PERSON_THROUGH_WINDOW "\xee\x96\xa9" // U+e5a9 +#define ICON_FA_PERSON_WALKING "\xef\x95\x94" // U+f554 +#define ICON_FA_PERSON_WALKING_ARROW_LOOP_LEFT "\xee\x95\x91" // U+e551 +#define ICON_FA_PERSON_WALKING_ARROW_RIGHT "\xee\x95\x92" // U+e552 +#define ICON_FA_PERSON_WALKING_DASHED_LINE_ARROW_RIGHT "\xee\x95\x93" // U+e553 +#define ICON_FA_PERSON_WALKING_LUGGAGE "\xee\x95\x94" // U+e554 +#define ICON_FA_PERSON_WALKING_WITH_CANE "\xef\x8a\x9d" // U+f29d +#define ICON_FA_PESETA_SIGN "\xee\x88\xa1" // U+e221 +#define ICON_FA_PESO_SIGN "\xee\x88\xa2" // U+e222 +#define ICON_FA_PHONE "\xef\x82\x95" // U+f095 +#define ICON_FA_PHONE_FLIP "\xef\xa1\xb9" // U+f879 +#define ICON_FA_PHONE_SLASH "\xef\x8f\x9d" // U+f3dd +#define ICON_FA_PHONE_VOLUME "\xef\x8a\xa0" // U+f2a0 +#define ICON_FA_PHOTO_FILM "\xef\xa1\xbc" // U+f87c +#define ICON_FA_PIGGY_BANK "\xef\x93\x93" // U+f4d3 +#define ICON_FA_PILLS "\xef\x92\x84" // U+f484 +#define ICON_FA_PIZZA_SLICE "\xef\xa0\x98" // U+f818 +#define ICON_FA_PLACE_OF_WORSHIP "\xef\x99\xbf" // U+f67f +#define ICON_FA_PLANE "\xef\x81\xb2" // U+f072 +#define ICON_FA_PLANE_ARRIVAL "\xef\x96\xaf" // U+f5af +#define ICON_FA_PLANE_CIRCLE_CHECK "\xee\x95\x95" // U+e555 +#define ICON_FA_PLANE_CIRCLE_EXCLAMATION "\xee\x95\x96" // U+e556 +#define ICON_FA_PLANE_CIRCLE_XMARK "\xee\x95\x97" // U+e557 +#define ICON_FA_PLANE_DEPARTURE "\xef\x96\xb0" // U+f5b0 +#define ICON_FA_PLANE_LOCK "\xee\x95\x98" // U+e558 +#define ICON_FA_PLANE_SLASH "\xee\x81\xa9" // U+e069 +#define ICON_FA_PLANE_UP "\xee\x88\xad" // U+e22d +#define ICON_FA_PLANT_WILT "\xee\x96\xaa" // U+e5aa +#define ICON_FA_PLATE_WHEAT "\xee\x95\x9a" // U+e55a +#define ICON_FA_PLAY "\xef\x81\x8b" // U+f04b +#define ICON_FA_PLUG "\xef\x87\xa6" // U+f1e6 +#define ICON_FA_PLUG_CIRCLE_BOLT "\xee\x95\x9b" // U+e55b +#define ICON_FA_PLUG_CIRCLE_CHECK "\xee\x95\x9c" // U+e55c +#define ICON_FA_PLUG_CIRCLE_EXCLAMATION "\xee\x95\x9d" // U+e55d +#define ICON_FA_PLUG_CIRCLE_MINUS "\xee\x95\x9e" // U+e55e +#define ICON_FA_PLUG_CIRCLE_PLUS "\xee\x95\x9f" // U+e55f +#define ICON_FA_PLUG_CIRCLE_XMARK "\xee\x95\xa0" // U+e560 +#define ICON_FA_PLUS "+" // U+002b +#define ICON_FA_PLUS_MINUS "\xee\x90\xbc" // U+e43c +#define ICON_FA_PODCAST "\xef\x8b\x8e" // U+f2ce +#define ICON_FA_POO "\xef\x8b\xbe" // U+f2fe +#define ICON_FA_POO_STORM "\xef\x9d\x9a" // U+f75a +#define ICON_FA_POOP "\xef\x98\x99" // U+f619 +#define ICON_FA_POWER_OFF "\xef\x80\x91" // U+f011 +#define ICON_FA_PRESCRIPTION "\xef\x96\xb1" // U+f5b1 +#define ICON_FA_PRESCRIPTION_BOTTLE "\xef\x92\x85" // U+f485 +#define ICON_FA_PRESCRIPTION_BOTTLE_MEDICAL "\xef\x92\x86" // U+f486 +#define ICON_FA_PRINT "\xef\x80\xaf" // U+f02f +#define ICON_FA_PUMP_MEDICAL "\xee\x81\xaa" // U+e06a +#define ICON_FA_PUMP_SOAP "\xee\x81\xab" // U+e06b +#define ICON_FA_PUZZLE_PIECE "\xef\x84\xae" // U+f12e +#define ICON_FA_Q "Q" // U+0051 +#define ICON_FA_QRCODE "\xef\x80\xa9" // U+f029 +#define ICON_FA_QUESTION "?" // U+003f +#define ICON_FA_QUOTE_LEFT "\xef\x84\x8d" // U+f10d +#define ICON_FA_QUOTE_RIGHT "\xef\x84\x8e" // U+f10e +#define ICON_FA_R "R" // U+0052 +#define ICON_FA_RADIATION "\xef\x9e\xb9" // U+f7b9 +#define ICON_FA_RADIO "\xef\xa3\x97" // U+f8d7 +#define ICON_FA_RAINBOW "\xef\x9d\x9b" // U+f75b +#define ICON_FA_RANKING_STAR "\xee\x95\xa1" // U+e561 +#define ICON_FA_RECEIPT "\xef\x95\x83" // U+f543 +#define ICON_FA_RECORD_VINYL "\xef\xa3\x99" // U+f8d9 +#define ICON_FA_RECTANGLE_AD "\xef\x99\x81" // U+f641 +#define ICON_FA_RECTANGLE_LIST "\xef\x80\xa2" // U+f022 +#define ICON_FA_RECTANGLE_XMARK "\xef\x90\x90" // U+f410 +#define ICON_FA_RECYCLE "\xef\x86\xb8" // U+f1b8 +#define ICON_FA_REGISTERED "\xef\x89\x9d" // U+f25d +#define ICON_FA_REPEAT "\xef\x8d\xa3" // U+f363 +#define ICON_FA_REPLY "\xef\x8f\xa5" // U+f3e5 +#define ICON_FA_REPLY_ALL "\xef\x84\xa2" // U+f122 +#define ICON_FA_REPUBLICAN "\xef\x9d\x9e" // U+f75e +#define ICON_FA_RESTROOM "\xef\x9e\xbd" // U+f7bd +#define ICON_FA_RETWEET "\xef\x81\xb9" // U+f079 +#define ICON_FA_RIBBON "\xef\x93\x96" // U+f4d6 +#define ICON_FA_RIGHT_FROM_BRACKET "\xef\x8b\xb5" // U+f2f5 +#define ICON_FA_RIGHT_LEFT "\xef\x8d\xa2" // U+f362 +#define ICON_FA_RIGHT_LONG "\xef\x8c\x8b" // U+f30b +#define ICON_FA_RIGHT_TO_BRACKET "\xef\x8b\xb6" // U+f2f6 +#define ICON_FA_RING "\xef\x9c\x8b" // U+f70b +#define ICON_FA_ROAD "\xef\x80\x98" // U+f018 +#define ICON_FA_ROAD_BARRIER "\xee\x95\xa2" // U+e562 +#define ICON_FA_ROAD_BRIDGE "\xee\x95\xa3" // U+e563 +#define ICON_FA_ROAD_CIRCLE_CHECK "\xee\x95\xa4" // U+e564 +#define ICON_FA_ROAD_CIRCLE_EXCLAMATION "\xee\x95\xa5" // U+e565 +#define ICON_FA_ROAD_CIRCLE_XMARK "\xee\x95\xa6" // U+e566 +#define ICON_FA_ROAD_LOCK "\xee\x95\xa7" // U+e567 +#define ICON_FA_ROAD_SPIKES "\xee\x95\xa8" // U+e568 +#define ICON_FA_ROBOT "\xef\x95\x84" // U+f544 +#define ICON_FA_ROCKET "\xef\x84\xb5" // U+f135 +#define ICON_FA_ROTATE "\xef\x8b\xb1" // U+f2f1 +#define ICON_FA_ROTATE_LEFT "\xef\x8b\xaa" // U+f2ea +#define ICON_FA_ROTATE_RIGHT "\xef\x8b\xb9" // U+f2f9 +#define ICON_FA_ROUTE "\xef\x93\x97" // U+f4d7 +#define ICON_FA_RSS "\xef\x82\x9e" // U+f09e +#define ICON_FA_RUBLE_SIGN "\xef\x85\x98" // U+f158 +#define ICON_FA_RUG "\xee\x95\xa9" // U+e569 +#define ICON_FA_RULER "\xef\x95\x85" // U+f545 +#define ICON_FA_RULER_COMBINED "\xef\x95\x86" // U+f546 +#define ICON_FA_RULER_HORIZONTAL "\xef\x95\x87" // U+f547 +#define ICON_FA_RULER_VERTICAL "\xef\x95\x88" // U+f548 +#define ICON_FA_RUPEE_SIGN "\xef\x85\x96" // U+f156 +#define ICON_FA_RUPIAH_SIGN "\xee\x88\xbd" // U+e23d +#define ICON_FA_S "S" // U+0053 +#define ICON_FA_SACK_DOLLAR "\xef\xa0\x9d" // U+f81d +#define ICON_FA_SACK_XMARK "\xee\x95\xaa" // U+e56a +#define ICON_FA_SAILBOAT "\xee\x91\x85" // U+e445 +#define ICON_FA_SATELLITE "\xef\x9e\xbf" // U+f7bf +#define ICON_FA_SATELLITE_DISH "\xef\x9f\x80" // U+f7c0 +#define ICON_FA_SCALE_BALANCED "\xef\x89\x8e" // U+f24e +#define ICON_FA_SCALE_UNBALANCED "\xef\x94\x95" // U+f515 +#define ICON_FA_SCALE_UNBALANCED_FLIP "\xef\x94\x96" // U+f516 +#define ICON_FA_SCHOOL "\xef\x95\x89" // U+f549 +#define ICON_FA_SCHOOL_CIRCLE_CHECK "\xee\x95\xab" // U+e56b +#define ICON_FA_SCHOOL_CIRCLE_EXCLAMATION "\xee\x95\xac" // U+e56c +#define ICON_FA_SCHOOL_CIRCLE_XMARK "\xee\x95\xad" // U+e56d +#define ICON_FA_SCHOOL_FLAG "\xee\x95\xae" // U+e56e +#define ICON_FA_SCHOOL_LOCK "\xee\x95\xaf" // U+e56f +#define ICON_FA_SCISSORS "\xef\x83\x84" // U+f0c4 +#define ICON_FA_SCREWDRIVER "\xef\x95\x8a" // U+f54a +#define ICON_FA_SCREWDRIVER_WRENCH "\xef\x9f\x99" // U+f7d9 +#define ICON_FA_SCROLL "\xef\x9c\x8e" // U+f70e +#define ICON_FA_SCROLL_TORAH "\xef\x9a\xa0" // U+f6a0 +#define ICON_FA_SD_CARD "\xef\x9f\x82" // U+f7c2 +#define ICON_FA_SECTION "\xee\x91\x87" // U+e447 +#define ICON_FA_SEEDLING "\xef\x93\x98" // U+f4d8 +#define ICON_FA_SERVER "\xef\x88\xb3" // U+f233 +#define ICON_FA_SHAPES "\xef\x98\x9f" // U+f61f +#define ICON_FA_SHARE "\xef\x81\xa4" // U+f064 +#define ICON_FA_SHARE_FROM_SQUARE "\xef\x85\x8d" // U+f14d +#define ICON_FA_SHARE_NODES "\xef\x87\xa0" // U+f1e0 +#define ICON_FA_SHEET_PLASTIC "\xee\x95\xb1" // U+e571 +#define ICON_FA_SHEKEL_SIGN "\xef\x88\x8b" // U+f20b +#define ICON_FA_SHIELD "\xef\x84\xb2" // U+f132 +#define ICON_FA_SHIELD_CAT "\xee\x95\xb2" // U+e572 +#define ICON_FA_SHIELD_DOG "\xee\x95\xb3" // U+e573 +#define ICON_FA_SHIELD_HALVED "\xef\x8f\xad" // U+f3ed +#define ICON_FA_SHIELD_HEART "\xee\x95\xb4" // U+e574 +#define ICON_FA_SHIELD_VIRUS "\xee\x81\xac" // U+e06c +#define ICON_FA_SHIP "\xef\x88\x9a" // U+f21a +#define ICON_FA_SHIRT "\xef\x95\x93" // U+f553 +#define ICON_FA_SHOE_PRINTS "\xef\x95\x8b" // U+f54b +#define ICON_FA_SHOP "\xef\x95\x8f" // U+f54f +#define ICON_FA_SHOP_LOCK "\xee\x92\xa5" // U+e4a5 +#define ICON_FA_SHOP_SLASH "\xee\x81\xb0" // U+e070 +#define ICON_FA_SHOWER "\xef\x8b\x8c" // U+f2cc +#define ICON_FA_SHRIMP "\xee\x91\x88" // U+e448 +#define ICON_FA_SHUFFLE "\xef\x81\xb4" // U+f074 +#define ICON_FA_SHUTTLE_SPACE "\xef\x86\x97" // U+f197 +#define ICON_FA_SIGN_HANGING "\xef\x93\x99" // U+f4d9 +#define ICON_FA_SIGNAL "\xef\x80\x92" // U+f012 +#define ICON_FA_SIGNATURE "\xef\x96\xb7" // U+f5b7 +#define ICON_FA_SIGNS_POST "\xef\x89\xb7" // U+f277 +#define ICON_FA_SIM_CARD "\xef\x9f\x84" // U+f7c4 +#define ICON_FA_SINK "\xee\x81\xad" // U+e06d +#define ICON_FA_SITEMAP "\xef\x83\xa8" // U+f0e8 +#define ICON_FA_SKULL "\xef\x95\x8c" // U+f54c +#define ICON_FA_SKULL_CROSSBONES "\xef\x9c\x94" // U+f714 +#define ICON_FA_SLASH "\xef\x9c\x95" // U+f715 +#define ICON_FA_SLEIGH "\xef\x9f\x8c" // U+f7cc +#define ICON_FA_SLIDERS "\xef\x87\x9e" // U+f1de +#define ICON_FA_SMOG "\xef\x9d\x9f" // U+f75f +#define ICON_FA_SMOKING "\xef\x92\x8d" // U+f48d +#define ICON_FA_SNOWFLAKE "\xef\x8b\x9c" // U+f2dc +#define ICON_FA_SNOWMAN "\xef\x9f\x90" // U+f7d0 +#define ICON_FA_SNOWPLOW "\xef\x9f\x92" // U+f7d2 +#define ICON_FA_SOAP "\xee\x81\xae" // U+e06e +#define ICON_FA_SOCKS "\xef\x9a\x96" // U+f696 +#define ICON_FA_SOLAR_PANEL "\xef\x96\xba" // U+f5ba +#define ICON_FA_SORT "\xef\x83\x9c" // U+f0dc +#define ICON_FA_SORT_DOWN "\xef\x83\x9d" // U+f0dd +#define ICON_FA_SORT_UP "\xef\x83\x9e" // U+f0de +#define ICON_FA_SPA "\xef\x96\xbb" // U+f5bb +#define ICON_FA_SPAGHETTI_MONSTER_FLYING "\xef\x99\xbb" // U+f67b +#define ICON_FA_SPELL_CHECK "\xef\xa2\x91" // U+f891 +#define ICON_FA_SPIDER "\xef\x9c\x97" // U+f717 +#define ICON_FA_SPINNER "\xef\x84\x90" // U+f110 +#define ICON_FA_SPLOTCH "\xef\x96\xbc" // U+f5bc +#define ICON_FA_SPOON "\xef\x8b\xa5" // U+f2e5 +#define ICON_FA_SPRAY_CAN "\xef\x96\xbd" // U+f5bd +#define ICON_FA_SPRAY_CAN_SPARKLES "\xef\x97\x90" // U+f5d0 +#define ICON_FA_SQUARE "\xef\x83\x88" // U+f0c8 +#define ICON_FA_SQUARE_ARROW_UP_RIGHT "\xef\x85\x8c" // U+f14c +#define ICON_FA_SQUARE_CARET_DOWN "\xef\x85\x90" // U+f150 +#define ICON_FA_SQUARE_CARET_LEFT "\xef\x86\x91" // U+f191 +#define ICON_FA_SQUARE_CARET_RIGHT "\xef\x85\x92" // U+f152 +#define ICON_FA_SQUARE_CARET_UP "\xef\x85\x91" // U+f151 +#define ICON_FA_SQUARE_CHECK "\xef\x85\x8a" // U+f14a +#define ICON_FA_SQUARE_ENVELOPE "\xef\x86\x99" // U+f199 +#define ICON_FA_SQUARE_FULL "\xef\x91\x9c" // U+f45c +#define ICON_FA_SQUARE_H "\xef\x83\xbd" // U+f0fd +#define ICON_FA_SQUARE_MINUS "\xef\x85\x86" // U+f146 +#define ICON_FA_SQUARE_NFI "\xee\x95\xb6" // U+e576 +#define ICON_FA_SQUARE_PARKING "\xef\x95\x80" // U+f540 +#define ICON_FA_SQUARE_PEN "\xef\x85\x8b" // U+f14b +#define ICON_FA_SQUARE_PERSON_CONFINED "\xee\x95\xb7" // U+e577 +#define ICON_FA_SQUARE_PHONE "\xef\x82\x98" // U+f098 +#define ICON_FA_SQUARE_PHONE_FLIP "\xef\xa1\xbb" // U+f87b +#define ICON_FA_SQUARE_PLUS "\xef\x83\xbe" // U+f0fe +#define ICON_FA_SQUARE_POLL_HORIZONTAL "\xef\x9a\x82" // U+f682 +#define ICON_FA_SQUARE_POLL_VERTICAL "\xef\x9a\x81" // U+f681 +#define ICON_FA_SQUARE_ROOT_VARIABLE "\xef\x9a\x98" // U+f698 +#define ICON_FA_SQUARE_RSS "\xef\x85\x83" // U+f143 +#define ICON_FA_SQUARE_SHARE_NODES "\xef\x87\xa1" // U+f1e1 +#define ICON_FA_SQUARE_UP_RIGHT "\xef\x8d\xa0" // U+f360 +#define ICON_FA_SQUARE_VIRUS "\xee\x95\xb8" // U+e578 +#define ICON_FA_SQUARE_XMARK "\xef\x8b\x93" // U+f2d3 +#define ICON_FA_STAFF_SNAKE "\xee\x95\xb9" // U+e579 +#define ICON_FA_STAIRS "\xee\x8a\x89" // U+e289 +#define ICON_FA_STAMP "\xef\x96\xbf" // U+f5bf +#define ICON_FA_STAPLER "\xee\x96\xaf" // U+e5af +#define ICON_FA_STAR "\xef\x80\x85" // U+f005 +#define ICON_FA_STAR_AND_CRESCENT "\xef\x9a\x99" // U+f699 +#define ICON_FA_STAR_HALF "\xef\x82\x89" // U+f089 +#define ICON_FA_STAR_HALF_STROKE "\xef\x97\x80" // U+f5c0 +#define ICON_FA_STAR_OF_DAVID "\xef\x9a\x9a" // U+f69a +#define ICON_FA_STAR_OF_LIFE "\xef\x98\xa1" // U+f621 +#define ICON_FA_STERLING_SIGN "\xef\x85\x94" // U+f154 +#define ICON_FA_STETHOSCOPE "\xef\x83\xb1" // U+f0f1 +#define ICON_FA_STOP "\xef\x81\x8d" // U+f04d +#define ICON_FA_STOPWATCH "\xef\x8b\xb2" // U+f2f2 +#define ICON_FA_STOPWATCH_20 "\xee\x81\xaf" // U+e06f +#define ICON_FA_STORE "\xef\x95\x8e" // U+f54e +#define ICON_FA_STORE_SLASH "\xee\x81\xb1" // U+e071 +#define ICON_FA_STREET_VIEW "\xef\x88\x9d" // U+f21d +#define ICON_FA_STRIKETHROUGH "\xef\x83\x8c" // U+f0cc +#define ICON_FA_STROOPWAFEL "\xef\x95\x91" // U+f551 +#define ICON_FA_SUBSCRIPT "\xef\x84\xac" // U+f12c +#define ICON_FA_SUITCASE "\xef\x83\xb2" // U+f0f2 +#define ICON_FA_SUITCASE_MEDICAL "\xef\x83\xba" // U+f0fa +#define ICON_FA_SUITCASE_ROLLING "\xef\x97\x81" // U+f5c1 +#define ICON_FA_SUN "\xef\x86\x85" // U+f185 +#define ICON_FA_SUN_PLANT_WILT "\xee\x95\xba" // U+e57a +#define ICON_FA_SUPERSCRIPT "\xef\x84\xab" // U+f12b +#define ICON_FA_SWATCHBOOK "\xef\x97\x83" // U+f5c3 +#define ICON_FA_SYNAGOGUE "\xef\x9a\x9b" // U+f69b +#define ICON_FA_SYRINGE "\xef\x92\x8e" // U+f48e +#define ICON_FA_T "T" // U+0054 +#define ICON_FA_TABLE "\xef\x83\x8e" // U+f0ce +#define ICON_FA_TABLE_CELLS "\xef\x80\x8a" // U+f00a +#define ICON_FA_TABLE_CELLS_LARGE "\xef\x80\x89" // U+f009 +#define ICON_FA_TABLE_COLUMNS "\xef\x83\x9b" // U+f0db +#define ICON_FA_TABLE_LIST "\xef\x80\x8b" // U+f00b +#define ICON_FA_TABLE_TENNIS_PADDLE_BALL "\xef\x91\x9d" // U+f45d +#define ICON_FA_TABLET "\xef\x8f\xbb" // U+f3fb +#define ICON_FA_TABLET_BUTTON "\xef\x84\x8a" // U+f10a +#define ICON_FA_TABLET_SCREEN_BUTTON "\xef\x8f\xba" // U+f3fa +#define ICON_FA_TABLETS "\xef\x92\x90" // U+f490 +#define ICON_FA_TACHOGRAPH_DIGITAL "\xef\x95\xa6" // U+f566 +#define ICON_FA_TAG "\xef\x80\xab" // U+f02b +#define ICON_FA_TAGS "\xef\x80\xac" // U+f02c +#define ICON_FA_TAPE "\xef\x93\x9b" // U+f4db +#define ICON_FA_TARP "\xee\x95\xbb" // U+e57b +#define ICON_FA_TARP_DROPLET "\xee\x95\xbc" // U+e57c +#define ICON_FA_TAXI "\xef\x86\xba" // U+f1ba +#define ICON_FA_TEETH "\xef\x98\xae" // U+f62e +#define ICON_FA_TEETH_OPEN "\xef\x98\xaf" // U+f62f +#define ICON_FA_TEMPERATURE_ARROW_DOWN "\xee\x80\xbf" // U+e03f +#define ICON_FA_TEMPERATURE_ARROW_UP "\xee\x81\x80" // U+e040 +#define ICON_FA_TEMPERATURE_EMPTY "\xef\x8b\x8b" // U+f2cb +#define ICON_FA_TEMPERATURE_FULL "\xef\x8b\x87" // U+f2c7 +#define ICON_FA_TEMPERATURE_HALF "\xef\x8b\x89" // U+f2c9 +#define ICON_FA_TEMPERATURE_HIGH "\xef\x9d\xa9" // U+f769 +#define ICON_FA_TEMPERATURE_LOW "\xef\x9d\xab" // U+f76b +#define ICON_FA_TEMPERATURE_QUARTER "\xef\x8b\x8a" // U+f2ca +#define ICON_FA_TEMPERATURE_THREE_QUARTERS "\xef\x8b\x88" // U+f2c8 +#define ICON_FA_TENGE_SIGN "\xef\x9f\x97" // U+f7d7 +#define ICON_FA_TENT "\xee\x95\xbd" // U+e57d +#define ICON_FA_TENT_ARROW_DOWN_TO_LINE "\xee\x95\xbe" // U+e57e +#define ICON_FA_TENT_ARROW_LEFT_RIGHT "\xee\x95\xbf" // U+e57f +#define ICON_FA_TENT_ARROW_TURN_LEFT "\xee\x96\x80" // U+e580 +#define ICON_FA_TENT_ARROWS_DOWN "\xee\x96\x81" // U+e581 +#define ICON_FA_TENTS "\xee\x96\x82" // U+e582 +#define ICON_FA_TERMINAL "\xef\x84\xa0" // U+f120 +#define ICON_FA_TEXT_HEIGHT "\xef\x80\xb4" // U+f034 +#define ICON_FA_TEXT_SLASH "\xef\xa1\xbd" // U+f87d +#define ICON_FA_TEXT_WIDTH "\xef\x80\xb5" // U+f035 +#define ICON_FA_THERMOMETER "\xef\x92\x91" // U+f491 +#define ICON_FA_THUMBS_DOWN "\xef\x85\xa5" // U+f165 +#define ICON_FA_THUMBS_UP "\xef\x85\xa4" // U+f164 +#define ICON_FA_THUMBTACK "\xef\x82\x8d" // U+f08d +#define ICON_FA_TICKET "\xef\x85\x85" // U+f145 +#define ICON_FA_TICKET_SIMPLE "\xef\x8f\xbf" // U+f3ff +#define ICON_FA_TIMELINE "\xee\x8a\x9c" // U+e29c +#define ICON_FA_TOGGLE_OFF "\xef\x88\x84" // U+f204 +#define ICON_FA_TOGGLE_ON "\xef\x88\x85" // U+f205 +#define ICON_FA_TOILET "\xef\x9f\x98" // U+f7d8 +#define ICON_FA_TOILET_PAPER "\xef\x9c\x9e" // U+f71e +#define ICON_FA_TOILET_PAPER_SLASH "\xee\x81\xb2" // U+e072 +#define ICON_FA_TOILET_PORTABLE "\xee\x96\x83" // U+e583 +#define ICON_FA_TOILETS_PORTABLE "\xee\x96\x84" // U+e584 +#define ICON_FA_TOOLBOX "\xef\x95\x92" // U+f552 +#define ICON_FA_TOOTH "\xef\x97\x89" // U+f5c9 +#define ICON_FA_TORII_GATE "\xef\x9a\xa1" // U+f6a1 +#define ICON_FA_TORNADO "\xef\x9d\xaf" // U+f76f +#define ICON_FA_TOWER_BROADCAST "\xef\x94\x99" // U+f519 +#define ICON_FA_TOWER_CELL "\xee\x96\x85" // U+e585 +#define ICON_FA_TOWER_OBSERVATION "\xee\x96\x86" // U+e586 +#define ICON_FA_TRACTOR "\xef\x9c\xa2" // U+f722 +#define ICON_FA_TRADEMARK "\xef\x89\x9c" // U+f25c +#define ICON_FA_TRAFFIC_LIGHT "\xef\x98\xb7" // U+f637 +#define ICON_FA_TRAILER "\xee\x81\x81" // U+e041 +#define ICON_FA_TRAIN "\xef\x88\xb8" // U+f238 +#define ICON_FA_TRAIN_SUBWAY "\xef\x88\xb9" // U+f239 +#define ICON_FA_TRAIN_TRAM "\xee\x96\xb4" // U+e5b4 +#define ICON_FA_TRANSGENDER "\xef\x88\xa5" // U+f225 +#define ICON_FA_TRASH "\xef\x87\xb8" // U+f1f8 +#define ICON_FA_TRASH_ARROW_UP "\xef\xa0\xa9" // U+f829 +#define ICON_FA_TRASH_CAN "\xef\x8b\xad" // U+f2ed +#define ICON_FA_TRASH_CAN_ARROW_UP "\xef\xa0\xaa" // U+f82a +#define ICON_FA_TREE "\xef\x86\xbb" // U+f1bb +#define ICON_FA_TREE_CITY "\xee\x96\x87" // U+e587 +#define ICON_FA_TRIANGLE_EXCLAMATION "\xef\x81\xb1" // U+f071 +#define ICON_FA_TROPHY "\xef\x82\x91" // U+f091 +#define ICON_FA_TROWEL "\xee\x96\x89" // U+e589 +#define ICON_FA_TROWEL_BRICKS "\xee\x96\x8a" // U+e58a +#define ICON_FA_TRUCK "\xef\x83\x91" // U+f0d1 +#define ICON_FA_TRUCK_ARROW_RIGHT "\xee\x96\x8b" // U+e58b +#define ICON_FA_TRUCK_DROPLET "\xee\x96\x8c" // U+e58c +#define ICON_FA_TRUCK_FAST "\xef\x92\x8b" // U+f48b +#define ICON_FA_TRUCK_FIELD "\xee\x96\x8d" // U+e58d +#define ICON_FA_TRUCK_FIELD_UN "\xee\x96\x8e" // U+e58e +#define ICON_FA_TRUCK_FRONT "\xee\x8a\xb7" // U+e2b7 +#define ICON_FA_TRUCK_MEDICAL "\xef\x83\xb9" // U+f0f9 +#define ICON_FA_TRUCK_MONSTER "\xef\x98\xbb" // U+f63b +#define ICON_FA_TRUCK_MOVING "\xef\x93\x9f" // U+f4df +#define ICON_FA_TRUCK_PICKUP "\xef\x98\xbc" // U+f63c +#define ICON_FA_TRUCK_PLANE "\xee\x96\x8f" // U+e58f +#define ICON_FA_TRUCK_RAMP_BOX "\xef\x93\x9e" // U+f4de +#define ICON_FA_TTY "\xef\x87\xa4" // U+f1e4 +#define ICON_FA_TURKISH_LIRA_SIGN "\xee\x8a\xbb" // U+e2bb +#define ICON_FA_TURN_DOWN "\xef\x8e\xbe" // U+f3be +#define ICON_FA_TURN_UP "\xef\x8e\xbf" // U+f3bf +#define ICON_FA_TV "\xef\x89\xac" // U+f26c +#define ICON_FA_U "U" // U+0055 +#define ICON_FA_UMBRELLA "\xef\x83\xa9" // U+f0e9 +#define ICON_FA_UMBRELLA_BEACH "\xef\x97\x8a" // U+f5ca +#define ICON_FA_UNDERLINE "\xef\x83\x8d" // U+f0cd +#define ICON_FA_UNIVERSAL_ACCESS "\xef\x8a\x9a" // U+f29a +#define ICON_FA_UNLOCK "\xef\x82\x9c" // U+f09c +#define ICON_FA_UNLOCK_KEYHOLE "\xef\x84\xbe" // U+f13e +#define ICON_FA_UP_DOWN "\xef\x8c\xb8" // U+f338 +#define ICON_FA_UP_DOWN_LEFT_RIGHT "\xef\x82\xb2" // U+f0b2 +#define ICON_FA_UP_LONG "\xef\x8c\x8c" // U+f30c +#define ICON_FA_UP_RIGHT_AND_DOWN_LEFT_FROM_CENTER "\xef\x90\xa4" // U+f424 +#define ICON_FA_UP_RIGHT_FROM_SQUARE "\xef\x8d\x9d" // U+f35d +#define ICON_FA_UPLOAD "\xef\x82\x93" // U+f093 +#define ICON_FA_USER "\xef\x80\x87" // U+f007 +#define ICON_FA_USER_ASTRONAUT "\xef\x93\xbb" // U+f4fb +#define ICON_FA_USER_CHECK "\xef\x93\xbc" // U+f4fc +#define ICON_FA_USER_CLOCK "\xef\x93\xbd" // U+f4fd +#define ICON_FA_USER_DOCTOR "\xef\x83\xb0" // U+f0f0 +#define ICON_FA_USER_GEAR "\xef\x93\xbe" // U+f4fe +#define ICON_FA_USER_GRADUATE "\xef\x94\x81" // U+f501 +#define ICON_FA_USER_GROUP "\xef\x94\x80" // U+f500 +#define ICON_FA_USER_INJURED "\xef\x9c\xa8" // U+f728 +#define ICON_FA_USER_LARGE "\xef\x90\x86" // U+f406 +#define ICON_FA_USER_LARGE_SLASH "\xef\x93\xba" // U+f4fa +#define ICON_FA_USER_LOCK "\xef\x94\x82" // U+f502 +#define ICON_FA_USER_MINUS "\xef\x94\x83" // U+f503 +#define ICON_FA_USER_NINJA "\xef\x94\x84" // U+f504 +#define ICON_FA_USER_NURSE "\xef\xa0\xaf" // U+f82f +#define ICON_FA_USER_PEN "\xef\x93\xbf" // U+f4ff +#define ICON_FA_USER_PLUS "\xef\x88\xb4" // U+f234 +#define ICON_FA_USER_SECRET "\xef\x88\x9b" // U+f21b +#define ICON_FA_USER_SHIELD "\xef\x94\x85" // U+f505 +#define ICON_FA_USER_SLASH "\xef\x94\x86" // U+f506 +#define ICON_FA_USER_TAG "\xef\x94\x87" // U+f507 +#define ICON_FA_USER_TIE "\xef\x94\x88" // U+f508 +#define ICON_FA_USER_XMARK "\xef\x88\xb5" // U+f235 +#define ICON_FA_USERS "\xef\x83\x80" // U+f0c0 +#define ICON_FA_USERS_BETWEEN_LINES "\xee\x96\x91" // U+e591 +#define ICON_FA_USERS_GEAR "\xef\x94\x89" // U+f509 +#define ICON_FA_USERS_LINE "\xee\x96\x92" // U+e592 +#define ICON_FA_USERS_RAYS "\xee\x96\x93" // U+e593 +#define ICON_FA_USERS_RECTANGLE "\xee\x96\x94" // U+e594 +#define ICON_FA_USERS_SLASH "\xee\x81\xb3" // U+e073 +#define ICON_FA_USERS_VIEWFINDER "\xee\x96\x95" // U+e595 +#define ICON_FA_UTENSILS "\xef\x8b\xa7" // U+f2e7 +#define ICON_FA_V "V" // U+0056 +#define ICON_FA_VAN_SHUTTLE "\xef\x96\xb6" // U+f5b6 +#define ICON_FA_VAULT "\xee\x8b\x85" // U+e2c5 +#define ICON_FA_VECTOR_SQUARE "\xef\x97\x8b" // U+f5cb +#define ICON_FA_VENUS "\xef\x88\xa1" // U+f221 +#define ICON_FA_VENUS_DOUBLE "\xef\x88\xa6" // U+f226 +#define ICON_FA_VENUS_MARS "\xef\x88\xa8" // U+f228 +#define ICON_FA_VEST "\xee\x82\x85" // U+e085 +#define ICON_FA_VEST_PATCHES "\xee\x82\x86" // U+e086 +#define ICON_FA_VIAL "\xef\x92\x92" // U+f492 +#define ICON_FA_VIAL_CIRCLE_CHECK "\xee\x96\x96" // U+e596 +#define ICON_FA_VIAL_VIRUS "\xee\x96\x97" // U+e597 +#define ICON_FA_VIALS "\xef\x92\x93" // U+f493 +#define ICON_FA_VIDEO "\xef\x80\xbd" // U+f03d +#define ICON_FA_VIDEO_SLASH "\xef\x93\xa2" // U+f4e2 +#define ICON_FA_VIHARA "\xef\x9a\xa7" // U+f6a7 +#define ICON_FA_VIRUS "\xee\x81\xb4" // U+e074 +#define ICON_FA_VIRUS_COVID "\xee\x92\xa8" // U+e4a8 +#define ICON_FA_VIRUS_COVID_SLASH "\xee\x92\xa9" // U+e4a9 +#define ICON_FA_VIRUS_SLASH "\xee\x81\xb5" // U+e075 +#define ICON_FA_VIRUSES "\xee\x81\xb6" // U+e076 +#define ICON_FA_VOICEMAIL "\xef\xa2\x97" // U+f897 +#define ICON_FA_VOLCANO "\xef\x9d\xb0" // U+f770 +#define ICON_FA_VOLLEYBALL "\xef\x91\x9f" // U+f45f +#define ICON_FA_VOLUME_HIGH "\xef\x80\xa8" // U+f028 +#define ICON_FA_VOLUME_LOW "\xef\x80\xa7" // U+f027 +#define ICON_FA_VOLUME_OFF "\xef\x80\xa6" // U+f026 +#define ICON_FA_VOLUME_XMARK "\xef\x9a\xa9" // U+f6a9 +#define ICON_FA_VR_CARDBOARD "\xef\x9c\xa9" // U+f729 +#define ICON_FA_W "W" // U+0057 +#define ICON_FA_WALKIE_TALKIE "\xef\xa3\xaf" // U+f8ef +#define ICON_FA_WALLET "\xef\x95\x95" // U+f555 +#define ICON_FA_WAND_MAGIC "\xef\x83\x90" // U+f0d0 +#define ICON_FA_WAND_MAGIC_SPARKLES "\xee\x8b\x8a" // U+e2ca +#define ICON_FA_WAND_SPARKLES "\xef\x9c\xab" // U+f72b +#define ICON_FA_WAREHOUSE "\xef\x92\x94" // U+f494 +#define ICON_FA_WATER "\xef\x9d\xb3" // U+f773 +#define ICON_FA_WATER_LADDER "\xef\x97\x85" // U+f5c5 +#define ICON_FA_WAVE_SQUARE "\xef\xa0\xbe" // U+f83e +#define ICON_FA_WEIGHT_HANGING "\xef\x97\x8d" // U+f5cd +#define ICON_FA_WEIGHT_SCALE "\xef\x92\x96" // U+f496 +#define ICON_FA_WHEAT_AWN "\xee\x8b\x8d" // U+e2cd +#define ICON_FA_WHEAT_AWN_CIRCLE_EXCLAMATION "\xee\x96\x98" // U+e598 +#define ICON_FA_WHEELCHAIR "\xef\x86\x93" // U+f193 +#define ICON_FA_WHEELCHAIR_MOVE "\xee\x8b\x8e" // U+e2ce +#define ICON_FA_WHISKEY_GLASS "\xef\x9e\xa0" // U+f7a0 +#define ICON_FA_WIFI "\xef\x87\xab" // U+f1eb +#define ICON_FA_WIND "\xef\x9c\xae" // U+f72e +#define ICON_FA_WINDOW_MAXIMIZE "\xef\x8b\x90" // U+f2d0 +#define ICON_FA_WINDOW_MINIMIZE "\xef\x8b\x91" // U+f2d1 +#define ICON_FA_WINDOW_RESTORE "\xef\x8b\x92" // U+f2d2 +#define ICON_FA_WINE_BOTTLE "\xef\x9c\xaf" // U+f72f +#define ICON_FA_WINE_GLASS "\xef\x93\xa3" // U+f4e3 +#define ICON_FA_WINE_GLASS_EMPTY "\xef\x97\x8e" // U+f5ce +#define ICON_FA_WON_SIGN "\xef\x85\x99" // U+f159 +#define ICON_FA_WORM "\xee\x96\x99" // U+e599 +#define ICON_FA_WRENCH "\xef\x82\xad" // U+f0ad +#define ICON_FA_X "X" // U+0058 +#define ICON_FA_X_RAY "\xef\x92\x97" // U+f497 +#define ICON_FA_XMARK "\xef\x80\x8d" // U+f00d +#define ICON_FA_XMARKS_LINES "\xee\x96\x9a" // U+e59a +#define ICON_FA_Y "Y" // U+0059 +#define ICON_FA_YEN_SIGN "\xef\x85\x97" // U+f157 +#define ICON_FA_YIN_YANG "\xef\x9a\xad" // U+f6ad +#define ICON_FA_Z "Z" // U+005a diff --git a/thirdparty/imgui_suite/generated/fonts/include/imgui_DroidSans.h b/thirdparty/imgui_suite/generated/fonts/include/imgui_DroidSans.h new file mode 100644 index 00000000000..a120b294af2 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/include/imgui_DroidSans.h @@ -0,0 +1,5 @@ +#pragma once +#include "imgui.h" +namespace ImGui { +ImFont* AddFontDroidSans(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg = nullptr, const ImWchar* glyph_ranges = nullptr); +} diff --git a/thirdparty/imgui_suite/generated/fonts/include/imgui_FiraCodeRetina.h b/thirdparty/imgui_suite/generated/fonts/include/imgui_FiraCodeRetina.h new file mode 100644 index 00000000000..0694a8e2765 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/include/imgui_FiraCodeRetina.h @@ -0,0 +1,5 @@ +#pragma once +#include "imgui.h" +namespace ImGui { +ImFont* AddFontFiraCodeRetina(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg = nullptr, const ImWchar* glyph_ranges = nullptr); +} diff --git a/thirdparty/imgui_suite/generated/fonts/include/imgui_FontAwesomeRegular.h b/thirdparty/imgui_suite/generated/fonts/include/imgui_FontAwesomeRegular.h new file mode 100644 index 00000000000..075ca53484d --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/include/imgui_FontAwesomeRegular.h @@ -0,0 +1,5 @@ +#pragma once +#include "imgui.h" +namespace ImGui { +ImFont* AddFontFontAwesomeRegular(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg = nullptr, const ImWchar* glyph_ranges = nullptr); +} diff --git a/thirdparty/imgui_suite/generated/fonts/include/imgui_FontAwesomeSolid.h b/thirdparty/imgui_suite/generated/fonts/include/imgui_FontAwesomeSolid.h new file mode 100644 index 00000000000..60b210bc02e --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/include/imgui_FontAwesomeSolid.h @@ -0,0 +1,5 @@ +#pragma once +#include "imgui.h" +namespace ImGui { +ImFont* AddFontFontAwesomeSolid(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg = nullptr, const ImWchar* glyph_ranges = nullptr); +} diff --git a/thirdparty/imgui_suite/generated/fonts/include/imgui_ProggyDotted.h b/thirdparty/imgui_suite/generated/fonts/include/imgui_ProggyDotted.h new file mode 100644 index 00000000000..a493b0b17c0 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/include/imgui_ProggyDotted.h @@ -0,0 +1,5 @@ +#pragma once +#include "imgui.h" +namespace ImGui { +ImFont* AddFontProggyDotted(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg = nullptr, const ImWchar* glyph_ranges = nullptr); +} diff --git a/thirdparty/imgui_suite/generated/fonts/src/DroidSans.inc b/thirdparty/imgui_suite/generated/fonts/src/DroidSans.inc new file mode 100644 index 00000000000..6fc401b911c --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/DroidSans.inc @@ -0,0 +1,2806 @@ +// File: 'extract/droid-fonts-d3817c246c6e3da7531fa1fbb0b0fca271aae7fb/droid/DroidSans.ttf' (190044 bytes) +// Exported using binary_to_compressed_c.cpp +static const unsigned int DroidSans_compressed_size = 134331; +static const unsigned int DroidSans_compressed_data[134332/4] = +{ + 0x0000bc57, 0x00000000, 0x5ce60200, 0x00000400, 0x00010025, 0x82130000, 0x00042e04, 0x45444730, 0x03260046, 0x3d020087, 0x28158220, 0x4f50471e, + 0xa2bd9453, 0x300f82f0, 0xa8000040, 0x555347fa, 0x74916c42, 0xe602008f, 0x271f823c, 0x53544c20, 0xb99bc948, 0x10312b82, 0x0300001c, 0x2f534f86, + 0x95cba032, 0x0100008b, 0x3c1f82b8, 0x616d6360, 0xd411ce70, 0x560000a2, 0x07000078, 0x7476639e, 0x3e7e3920, 0x6800004c, 0x2c23820c, 0x677066fc, + 0x23d3736d, 0x5e0000b0, 0x281f8218, 0x73616705, 0x00040070, 0x206f8207, 0x083f8214, 0x6c670c28, 0xbec56679, 0x0000963f, 0x01001071, 0x64681ea8, + 0x0eef786d, 0x0000abfa, 0x0000a413, 0x6568d442, 0xfdea6461, 0x4b826f87, 0x2f823c20, 0x82683621, 0x530c2210, 0x211b8209, 0x0f827401, 0x6d68242b, + 0xcbd27874, 0x0000272e, 0x2d5f8202, 0x6f6c040e, 0xfa926163, 0x00004c29, 0x6f82086a, 0x616d0628, 0x2a067078, 0x3f828502, 0x2f829820, 0x6e203208, + 0xb5656d61, 0x00569058, 0x00301902, 0x70a20600, 0xd874736f, 0x0027a950, 0x00d41f02, 0x703f1d00, 0x82706572, 0x001321dc, 0x00206500, 0x00ec0200, + 0x82358201, 0x73592b03, 0x0f5fc3c8, 0x1900f53c, 0x00830008, 0x339ac122, 0x002c0683, 0x3d0953c5, 0xd5fd89fb, 0x62085a09, 0x06221082, 0x2f820200, + 0x33820283, 0xfe6d072d, 0x0900001d, 0xfe89fb64, 0x845a09a2, 0x86198349, 0x80032103, 0x03291183, 0x00a00082, 0x007a0016, 0x25398205, 0x002f0010, + 0x8a82005a, 0x00390123, 0x241d8203, 0x01990403, 0x23198290, 0x059a0508, 0x01216e82, 0x2507851e, 0x6600d003, 0x2782f201, 0x06060b30, 0x02040803, + 0x00e00402, 0x0040ef02, 0x5a825b20, 0x03822820, 0x41310025, 0x82004353, 0xfdff2f10, 0x14fe1f06, 0x6d078400, 0x0020e301, 0x1b839f01, 0x054a0423, + 0x260782b6, 0x04020020, 0x84c100cd, 0x00142311, 0x03830200, 0x9300273e, 0x85003703, 0x33002b05, 0x7b006804, 0x66009a06, 0x6d009e05, 0x8500cf01, + 0x52006802, 0x3d200382, 0x52201782, 0x66260382, 0x3f000002, 0x13829302, 0x93002526, 0x1400fc02, 0x62201382, 0xb2200382, 0x60200382, 0x17202386, + 0x83200782, 0x71200382, 0x5a200382, 0x6a200382, 0x02200383, 0x25222f83, 0x0b823f00, 0x03876620, 0x00680335, 0x00ee0625, 0x00dd046d, 0x00f80400, + 0x00d304c7, 0x8279057d, 0x00392807, 0x00ee03c7, 0x828505c7, 0x009c240f, 0x82b602c7, 0xff2b246f, 0x85a20448, 0xf6062117, 0xd5201b82, 0xf0230382, + 0x82047d00, 0xee05211f, 0xb8200782, 0x27303782, 0x27046800, 0x96051400, 0x8b04b800, 0x12070000, 0x60209f82, 0x37205b82, 0x50200382, 0x6d224382, + 0xb382a400, 0x6d021722, 0x4236e782, 0x4a032900, 0x9e04fcff, 0x3f048901, 0xb0045e00, 0xb403ae00, 0x07827100, 0x4804713a, 0xa2027100, 0x25041d00, + 0xb6042500, 0x1202ae00, 0x1202a000, 0xf803bcff, 0xae240b84, 0xae002b07, 0x04211783, 0x202f849e, 0x213383ae, 0x3f823103, 0x5a009c22, 0x2120ab82, + 0xa4261b82, 0x0000d503, 0x7f82f805, 0x23000028, 0x0a00e903, 0x7f828703, 0x3d00d528, 0xe9016804, 0x7f82d502, 0x66006822, 0x23077b41, 0xbc006804, + 0x44200382, 0x7b200382, 0x1d200382, 0x03232383, 0x827900e3, 0x06332b9b, 0x026400a8, 0x034400a6, 0x7f4100e5, 0x00932205, 0x26138352, 0xfaff0004, + 0x83006d03, 0x8266202f, 0x8231201f, 0x841f2003, 0x00c124cb, 0x823d05ae, 0x002526bf, 0x00a40193, 0x24178223, 0x00cd023f, 0x243f8242, 0x00e50554, + 0x2003823f, 0x2803822c, 0x0068031f, 0x00dd0444, 0x29039300, 0xfeffd106, 0x7d00d304, 0x8b413904, 0x82078705, 0x823e20db, 0x82522003, 0x82112003, + 0x05402503, 0x052f0079, 0x23068741, 0x7d00f005, 0xc782038b, 0x0f848d20, 0xb8009623, 0x21038a05, 0x73823704, 0x57829c20, 0xae00d126, 0x5e003f04, + 0x06290393, 0x035e00aa, 0x047100b4, 0x27038d48, 0xdeff1202, 0xae001202, 0xbd200782, 0xee240382, 0x6f009e04, 0x20088741, 0x8b2b829e, 0x00682203, + 0x201f8266, 0x201f8273, 0x27038ba4, 0x0a00e903, 0xae00b004, 0xff830784, 0x078f8383, 0x7f84fb82, 0xf7820796, 0x4382c720, 0x07827120, 0x07832f20, + 0x82390421, 0x9eab83cf, 0x85052707, 0x25047d00, 0x07982500, 0x47829c20, 0xae00b62e, 0x00009c05, 0x1200b604, 0xf5ffb602, 0xa324e782, 0x3d00b602, + 0xeb200782, 0x30200782, 0xde200782, 0x52240782, 0x44001202, 0xae240786, 0x5200e104, 0xa0245782, 0x48ff2b02, 0xbc261f82, 0xc700a204, 0xe382f803, + 0xee220383, 0x2b82c700, 0x8503ab21, 0x86662007, 0x84ae2007, 0x82662007, 0x00ee2223, 0x2233821d, 0x86d505f6, 0x22078f7b, 0x88ffff46, 0x82f0201b, + 0x009e23bf, 0x078e0571, 0x001f0724, 0xff83077d, 0x7782b820, 0xae003123, 0x20078504, 0x28078660, 0x00270472, 0x009c0368, 0x20079a5a, 0x20cb8214, + 0x8c1f8221, 0x96052707, 0xb604b800, 0x07a7a400, 0x0012072f, 0x00f80514, 0x00370414, 0x00e90300, 0x2707830a, 0x52005004, 0x52008703, 0x0221078f, + 0x23a7824c, 0x04cb0068, 0x2706fb41, 0xfeffd106, 0x5e00aa06, 0x7320db86, 0x9e23ab88, 0x83040201, 0x01752203, 0x2407821b, 0x00120221, 0x240782a0, + 0x007b016d, 0x2217841f, 0x82df009e, 0x82f82007, 0x04143203, 0x02e9ffdd, 0x04930025, 0x06e7ffc9, 0x03e7ff17, 0x240782b2, 0x05e7ff42, 0x26078254, + 0x02e7ff4a, 0x84e4ff9e, 0x44f8206f, 0x042705c7, 0x0425008b, 0x83c70039, 0x9c05219b, 0x2105cf44, 0xab82b602, 0x1382a220, 0x00008b22, 0x2307e744, + 0x52003f04, 0x05219783, 0x82178287, 0x42042327, 0x9f824e00, 0x0625e784, 0x04680023, 0x822b8260, 0x20238207, 0x203f824e, 0x30f78440, 0x037100b0, + 0x045a00a0, 0x02ae00b6, 0x04a4009e, 0x820382b8, 0xd1042213, 0x05fb4200, 0x6f009e22, 0x03231f83, 0x837100a4, 0x87042323, 0x27837100, 0x00f80329, + 0xff1704ae, 0x82c104f2, 0x00232207, 0x271f8400, 0x0571009e, 0x0419000a, 0x0f844782, 0x5b82b420, 0x12009822, 0x05215383, 0x283f8296, 0x05ecff31, + 0x06a400ec, 0x20438406, 0x826b8415, 0x83078333, 0x25e38313, 0x1400a005, 0xe345ee03, 0x20bb8205, 0x20a78268, 0x2a038252, 0xff2b0240, 0x00480748, + 0x82750700, 0x202382ff, 0x22fb8304, 0x841900ae, 0x44dd20eb, 0x2f41062b, 0x33052306, 0x4b830e00, 0x0085062b, 0x005c0404, 0x00d50548, 0x830383c9, + 0x5a052233, 0x052f4100, 0x41064741, 0xd322082b, 0x6f827d00, 0x82041421, 0x072b4153, 0x829a0521, 0x0048266b, 0x00fa07a6, 0x250383c7, 0x14003d05, + 0x5b419606, 0x00c12406, 0x821d083b, 0x82b8200b, 0x3f2008ef, 0x8f045e00, 0x89047500, 0x3303ae00, 0x6004ae00, 0x48042900, 0xc3057100, 0xae030400, + 0xe9044400, 0x03821382, 0xae26d782, 0x10005e04, 0x0f85be05, 0xfb830420, 0x0b82c120, 0x5346b020, 0x87033105, 0xe9032900, 0x93050a00, 0x00047100, + 0xd1042300, 0xac301b82, 0xf4069a00, 0x0407ae00, 0x6d05ae00, 0xfe052900, 0x67831382, 0x3700b224, 0x0b827906, 0x27823f20, 0x04236b82, 0x831200b6, + 0xb403277b, 0x9c037100, 0x8b465a00, 0x02ee2a06, 0x06bcff12, 0x06100083, 0x832b82e5, 0x41ee2023, 0x778206d7, 0xc7208f82, 0x0f433383, 0x43078f07, + 0x0023081f, 0x86085200, 0x4a032703, 0x6601fcff, 0x03831700, 0x00000223, 0x2407823f, 0x00e70219, 0x29038317, 0x3f008103, 0x7b00e303, 0x0382f803, + 0x96000236, 0x93006f06, 0x66005a09, 0x8500cf01, 0x85003703, 0x52004e02, 0x032f0383, 0x019300f6, 0x02a0fe0a, 0x046a00f8, 0x82600068, 0x06442403, + 0x82960000, 0x063f2c07, 0x048d0068, 0x07770000, 0x82c700e7, 0x05252ceb, 0x044e00f0, 0x066600f4, 0x8253000e, 0x82332003, 0x824f2003, 0x04712a03, + 0x046200a6, 0x0529008b, 0x322782ee, 0x044a000c, 0x04660068, 0x05250064, 0x037700a8, 0x84100019, 0x8713830f, 0x00aa2603, 0x00b4046d, 0x2a03841d, + 0x02cf009e, 0x04bcff12, 0x82870100, 0x826f2003, 0x027d2403, 0x822500a6, 0x820c2003, 0x863b2003, 0x472f200b, 0x2120062f, 0x00248f82, 0x00000008, + 0x02290787, 0x020000ab, 0x01000000, 0x20138255, 0x200b8268, 0x200b8225, 0x2010829a, 0x860382cd, 0x00082302, 0x03835400, 0x01376783, 0x04170066, + 0x040a00cd, 0x06000052, 0x061200a0, 0x07c700f6, 0x44ae002b, 0x422e0853, 0xaa02d3fe, 0x33037300, 0x56079300, 0x03831d00, 0x7d34f782, 0x7100aa04, + 0xb800f405, 0xa4002f05, 0x8ffc0000, 0x48fd0000, 0x46200782, 0x04200782, 0x31220382, 0xfb823904, 0xc900d53c, 0x71004804, 0xae00e904, 0x7d00db07, + 0x00006f06, 0x14002505, 0x1400dd04, 0x1f822707, 0xae00b622, 0x002a3f82, 0x0a006404, 0xc7002907, 0x0f821206, 0x1f827f20, 0x0f82f020, 0x0f828b20, + 0x8782a220, 0x39005e2e, 0x1700ae03, 0x68002306, 0xa400ec05, 0x9b427b84, 0x03002205, 0x21e382dd, 0x078400c1, 0x00640931, 0x0058087d, 0x003f0671, + 0x0019057d, 0x82b20771, 0x8250206f, 0x20778607, 0x07074704, 0x6800df24, 0x97827504, 0xf4009e26, 0xe1019e04, 0x07290383, 0x072900e9, 0x052900a6, + 0x201782e7, 0x327382fc, 0x042f009c, 0x04120089, 0x04c7009c, 0x03ae00b0, 0x822f00ee, 0x051222ff, 0x260f8200, 0x06ae0008, 0x820400e9, 0x0404248f, + 0x8248005c, 0x0544229b, 0x2017820a, 0x2037824a, 0x200782a2, 0x2607842b, 0x00f8032f, 0x82440512, 0x82d120cb, 0x00cd2457, 0x82fa04e5, 0x005c2837, + 0x00ac05e5, 0x824408ae, 0x82b820db, 0x00ec26eb, 0x00f2047d, 0x289b8871, 0x03140027, 0x04290087, 0x20d38237, 0x87db82d5, 0x82d32007, 0x003d280b, + 0x00890623, 0x828b0514, 0x0048274f, 0x00bc04a6, 0x0783059a, 0x0784ac20, 0x8204c721, 0x77062757, 0x1d053d00, 0x07873300, 0x00b60229, 0x00850652, + 0x82c30504, 0x824a2003, 0x822d209b, 0x826a2073, 0x0071244b, 0x829c0510, 0x82e92093, 0x82cb200f, 0x87f38207, 0x0607274b, 0xd105c700, 0x3b83ae00, + 0x46070342, 0x04200f5f, 0x21062348, 0xbb828f05, 0x66004822, 0x6b870787, 0x84071741, 0x00b82707, 0x00d5051b, 0x6b8304c9, 0x7b470787, 0x0ad3410e, + 0xb2033b2c, 0xae043700, 0xe9031900, 0x078f0a00, 0x1b44a387, 0x96062107, 0xfe20ab82, 0x21099f41, 0xdb82c304, 0x23002f24, 0x07826004, 0x07820020, + 0x89009c2c, 0x7100b004, 0x8900f406, 0x0782fe06, 0x00fc2e08, 0x0046064e, 0x00c50450, 0x0010044e, 0x00a40750, 0x00a40600, 0x00e50710, 0x002f07c7, + 0x00c305ae, 0x00e1047d, 0x00810571, 0x00120514, 0x26bf8229, 0x00ae036f, 0x825a055c, 0x005e224f, 0x0f0f4110, 0x12200f8e, 0x5e200f8e, 0x7b490fb0, + 0x3904271e, 0x48042700, 0xab491200, 0xb6022717, 0x12025200, 0x07866200, 0xe3489e20, 0x200f8e0f, 0x490f8e33, 0xaa200d13, 0x8f062349, 0x073b4907, + 0xdb481783, 0x060f440f, 0x97071744, 0x08bb4507, 0x200ae348, 0x05d34a03, 0x00007128, 0x0000dbfb, 0x07826afc, 0x07858920, 0x8264fc21, 0x8a732007, + 0x01642603, 0x003100a4, 0x2d018210, 0x01820300, 0x281a0101, 0x0a010118, 0x04822b01, 0x01160b25, 0x880b0514, 0x14142100, 0x3d080a82, 0x22260b1c, + 0x12010b14, 0x1519150b, 0x191c1415, 0x161e1322, 0x17151b1b, 0x12261010, 0x20010501, 0x0b110101, 0x2a150b1c, 0x0c0c2e19, 0x2e180c0a, 0x120b0b15, + 0x192e0b2a, 0x12161a0b, 0x06821819, 0x44822820, 0x15180b2e, 0x27140401, 0x0104010b, 0x11110b10, 0x14294d82, 0x270a1101, 0x1c0a0101, 0x21008426, + 0x89821401, 0x82190121, 0x190b2200, 0x22008322, 0x8215220b, 0x13262300, 0x00841116, 0x821c1621, 0x0c15210d, 0x15210082, 0x2309832e, 0x2e150b15, + 0x16240082, 0x1126160b, 0x14210183, 0x8301851c, 0x1501216b, 0x0b210187, 0x82018519, 0x192e2233, 0x2801870c, 0x0c151715, 0x140a0a15, 0x2401840c, + 0x190c1424, 0x2401832e, 0x222e1918, 0x23018315, 0x1216282a, 0x1b210183, 0x2101862a, 0x01821b0b, 0x03874383, 0x260b1025, 0x84122616, 0x0b302c00, + 0x16011126, 0x2a1b1522, 0x83240101, 0x080383c3, 0x1514265b, 0x0d150c2d, 0x22261615, 0x12011719, 0x15192215, 0x11191c19, 0x20131522, 0x1019261b, + 0x26192219, 0x162e160b, 0x160c0b12, 0x2e161615, 0x2d0a1617, 0x15181812, 0x18181318, 0x13191201, 0x12161813, 0x01181215, 0x1b14190e, 0x28151919, + 0x30150e19, 0x22132615, 0x18011f19, 0x21108212, 0xa7821c10, 0x14132708, 0x1019301b, 0x19191415, 0x16191017, 0x14111624, 0x15161419, 0x19191a19, + 0x1913160a, 0x1c0b1215, 0x1a191619, 0x1f821216, 0x11191836, 0x2e151119, 0x0c2a1c14, 0x18180c0c, 0x12160a2e, 0x0b100117, 0x26210183, 0x23af8316, + 0x15191515, 0x19200382, 0x14310082, 0x1919182b, 0x0b19010c, 0x010b110b, 0x22192a01, 0x29338201, 0x1e17260c, 0x1701012b, 0x00820b17, 0x14141922, + 0x01222082, 0x00851101, 0x2e20f385, 0x012a0685, 0x11150c01, 0x181c1816, 0x10821126, 0x22141422, 0x1985f782, 0x1915192c, 0x2620171d, 0x181c0101, + 0x93821618, 0x1a011428, 0x15221319, 0x01821618, 0x1514012a, 0x181d0119, 0x240d1c14, 0x2e282c82, 0x01191601, 0x120b1317, 0x19251582, 0x151a1219, + 0x229d8201, 0x82180b0a, 0x2e192997, 0x14131219, 0x26191b1c, 0x19330182, 0x13152a19, 0x19121416, 0x0a160a18, 0x19181916, 0x82181820, 0x19182332, + 0xcb821214, 0x82112621, 0x01162182, 0x1522d682, 0x45821815, 0x82111221, 0x411920dc, 0x162305e0, 0x83163011, 0x2c3b8201, 0x12181014, 0x10011614, + 0x170b131a, 0x23628215, 0x27181716, 0x1324aa82, 0x101a1217, 0x42065a42, 0x058b0560, 0x85096042, 0x0c192309, 0x59850c19, 0x15250591, 0x192e152e, + 0x2101871c, 0x01831626, 0x12410b20, 0x20058505, 0x35008300, 0x03000013, 0x04070684, 0x02020300, 0x05030402, 0x02020104, 0x0b820303, 0x03200582, + 0x11830086, 0x1a820320, 0x04040427, 0x04040303, 0x201a8202, 0x850b8205, 0x0305210d, 0x03212e84, 0x21198202, 0x06830403, 0x02201f82, 0x02231f84, + 0x83040203, 0x82148215, 0x2050870a, 0x20088205, 0x82358302, 0x04042338, 0x39840102, 0x52832783, 0x82040521, 0x847e8415, 0x88628260, 0x85088468, + 0x82022037, 0x871f8d00, 0x8207823f, 0x860d8584, 0x8b0682bd, 0x863a8215, 0x847c8202, 0x859b8293, 0x845285a1, 0x228b84ba, 0x83020405, 0x84478801, + 0x85248528, 0x84ad8505, 0x0302241f, 0x82050304, 0x820c843a, 0x0301214e, 0x3d820082, 0x05030526, 0x04020504, 0x03208183, 0x03227082, 0x9c870504, + 0x06030623, 0x82358304, 0x851e8a24, 0x824c82f1, 0x06052228, 0x22678202, 0x82050306, 0x21b3820e, 0x08820606, 0x40821082, 0x06821283, 0x0325aa85, + 0x04030604, 0x201d8204, 0x20058206, 0x82008204, 0x820420d5, 0x82032011, 0x820d8242, 0x82052087, 0x06062406, 0x82030504, 0x82032072, 0x82032074, + 0x0505234d, 0x57830304, 0x25820520, 0x0627c784, 0x01010206, 0x82020102, 0x0203233d, 0x08820706, 0x01030222, 0x05240c82, 0x06030503, 0x05204182, + 0x7d840082, 0x3b824184, 0x03040422, 0x200a2442, 0x23cf8203, 0x03010202, 0x00224482, 0x4b820600, 0x35820420, 0x02213683, 0x827a8202, 0x83002038, + 0x20718200, 0x824c8404, 0x8281823c, 0x8403200b, 0x21af825c, 0x18820703, 0x82050621, 0x82248204, 0x060621b4, 0x03202382, 0x02250382, 0x05050304, + 0x82148503, 0x8204200f, 0x82248200, 0x056b4118, 0x11821d82, 0xca830283, 0x72820220, 0x11852a82, 0x02050522, 0x3d841784, 0x31832783, 0x420ac041, + 0x6384052a, 0x03050625, 0x84030402, 0x0506229e, 0x84bb8305, 0x840520b5, 0x8b328ae7, 0x897f850a, 0x0a964205, 0x16873196, 0x04213385, 0x2e008700, + 0x07010101, 0x04000409, 0x05030202, 0x82050604, 0x04042148, 0xed860482, 0x02203583, 0x0320c983, 0x23063a41, 0x02040505, 0x82055e41, 0x050426ed, + 0x04040605, 0x066c4304, 0x8205f841, 0x0204233c, 0x00820406, 0xd6820320, 0x04060423, 0x20068204, 0x84158302, 0x06042313, 0x1f830302, 0x0304032e, + 0x05040403, 0x02030102, 0x05050503, 0x06820383, 0x04203784, 0x05200083, 0x61820085, 0x8406fb41, 0x84062015, 0x42ec9396, 0x6d43054b, 0x410d8307, + 0x1b850907, 0x57430585, 0x20058305, 0x43938505, 0x0583057f, 0x05202085, 0x04220686, 0xbb430606, 0x05ac4108, 0x0421c482, 0x824b8b02, 0x84648221, + 0x0402221c, 0x21308205, 0x61430405, 0x04022305, 0x00820401, 0x84020521, 0x020624be, 0x82030405, 0x2259821a, 0x82060504, 0x230b8240, 0x04060404, + 0x82054942, 0x8204208a, 0x03032200, 0x82098504, 0x82778407, 0x0206211f, 0x06211882, 0x057a4304, 0x07070222, 0x03204386, 0x58826a82, 0x05204b83, + 0x05294a86, 0x05080805, 0x07040406, 0x82008204, 0x43062041, 0x6a820b83, 0xa3430420, 0x06032405, 0x45040404, 0x06240534, 0x04030406, 0x06200b82, + 0x16820084, 0x03070726, 0x01020101, 0x27051e42, 0x03020806, 0x01030202, 0x6c832282, 0x67820720, 0x00820520, 0x04207583, 0x04208f86, 0x02200082, + 0x30850382, 0x7a820320, 0x0202072b, 0x01020401, 0x07000001, 0x23098207, 0x06060604, 0x0221ec82, 0x21068403, 0x00830004, 0x84050421, 0x06042389, + 0x03820505, 0x07040622, 0x27820f86, 0x82090421, 0x2032820c, 0x05424106, 0xee840420, 0x1485ce87, 0x03040322, 0x20057e41, 0x82278207, 0x83032026, + 0x0404211e, 0x57820d82, 0x84415084, 0x08c14105, 0xea820885, 0x45841f85, 0x8609c041, 0x201b8268, 0x87a38203, 0x82b5840d, 0x41072053, 0x718605a9, + 0x09893589, 0x058a7d85, 0x1e420220, 0x8533930d, 0x20338613, 0x26008700, 0x08010101, 0x4300050a, 0x07270583, 0x02020206, 0x46020404, 0x2a86059c, + 0x11820220, 0x0524e983, 0x04040505, 0x0226d082, 0x06080405, 0xa3820506, 0x08200d82, 0x2e825582, 0x22071d41, 0x82050403, 0x0802212e, 0x05212b82, + 0x22148303, 0x82040406, 0x420320dd, 0x0b8205ef, 0x03070522, 0x07201082, 0x2482f184, 0x03202c82, 0x06204582, 0x06230383, 0x46070606, 0x0d820985, + 0x17850282, 0x8205fb41, 0x8207203d, 0x82042003, 0x0202214b, 0x210da343, 0x41820405, 0xf6880382, 0x860bb843, 0x8321821b, 0x040221b3, 0x05200186, + 0x05204782, 0x10884f82, 0x1e820620, 0x06860382, 0x07070524, 0x01830305, 0x20086441, 0x20b48203, 0x831d8703, 0x06082407, 0x85040404, 0x82022072, + 0x07072264, 0x05254306, 0x05020523, 0x22808201, 0x85020605, 0x82022051, 0x04062317, 0x03830605, 0x06223382, 0x27820506, 0x0f830620, 0x3d820420, + 0x2a820220, 0x38840420, 0x85040221, 0x82528407, 0x213f82ae, 0x07820505, 0x04231583, 0x82080802, 0x233b8437, 0x04080406, 0x06220882, 0x0e840608, + 0x1d826484, 0x05050723, 0x243a8208, 0x04040305, 0x08a34306, 0x0d845882, 0x8308a343, 0x0202211e, 0x2306d143, 0x06080304, 0xc7820183, 0x43080821, + 0x0b820683, 0x09060328, 0x02020302, 0x4a840104, 0x67826e82, 0xb2836b82, 0x06204f82, 0x04201582, 0x66466082, 0x832f8206, 0x04083b02, 0x01020308, + 0x01020204, 0x08080000, 0x04050102, 0x06080807, 0x03030604, 0x38820707, 0x83000521, 0x318a8300, 0x05050608, 0x04060607, 0x06060507, 0x04040708, + 0x1e820606, 0x04060426, 0x0506080a, 0xfd848b83, 0x08050522, 0x05200e82, 0x04250082, 0x08040503, 0x416f8206, 0xec850569, 0x06070622, 0x82072942, + 0x820c8267, 0x07052128, 0x2a820182, 0x20058c43, 0x82118206, 0x82062036, 0x07072258, 0x83058204, 0x820420c5, 0x09c04100, 0x23092c42, 0x06070304, + 0x2906c142, 0x06080705, 0x08040406, 0x55840907, 0x05203982, 0x91055a42, 0x13834305, 0x099b5d89, 0x12413985, 0x82002005, 0x02023400, 0x050c0902, + 0x02020500, 0x08050604, 0x03030206, 0x46020506, 0xe742059c, 0x02022106, 0xdc830882, 0xd8820520, 0x0321a082, 0x830c8205, 0x20ed82f0, 0x22b18206, + 0x82030305, 0x20238312, 0x20d68205, 0x212e8205, 0x0d820802, 0x69820520, 0x82050521, 0x20dd8232, 0x84158303, 0x07052713, 0x03050504, 0x6d420507, + 0x02062805, 0x05040402, 0x43080707, 0x0620056b, 0x38833784, 0x07200f82, 0x05220083, 0x00830607, 0x05218986, 0x05fa4108, 0x83430220, 0x20188708, + 0x45f28505, 0x06200901, 0x83831988, 0x47091041, 0x06220907, 0xd8840304, 0x22058343, 0x43020403, 0xdb830883, 0x09050723, 0x0dc84408, 0xc241ce82, + 0x0506210c, 0x49068944, 0x0e820503, 0x2f460820, 0x05022107, 0x05285983, 0x07060206, 0x08070805, 0x9f825982, 0x07060527, 0x08060504, 0x21d28206, + 0xef840505, 0x06040722, 0x82068343, 0x05042110, 0x23823485, 0x21058343, 0x83430606, 0x273a8305, 0x03040405, 0x05060909, 0x05201382, 0x0820cf83, + 0x05250982, 0x07060807, 0x274a8606, 0x07080806, 0x09050507, 0x22056341, 0x83040605, 0x84062008, 0x8404200d, 0x82082040, 0x0405222c, 0x059b4407, + 0x02020224, 0x0a820808, 0x83433c82, 0x22298205, 0x48040909, 0x0334085f, 0x04020b06, 0x01040303, 0x08050504, 0x09050705, 0x08060708, 0x7f850082, + 0x84030721, 0x0606235c, 0xea440204, 0x09052509, 0x02030905, 0x0227f882, 0x09000001, 0x82020209, 0x080829aa, 0x03070506, 0x07090904, 0x00208282, + 0x07820083, 0x07080528, 0x06080506, 0x07820606, 0x05230382, 0x83060604, 0x0506221e, 0x2326820c, 0x07080708, 0x5682fd82, 0xee830520, 0x8382a285, + 0x26820620, 0x06240c84, 0x06050606, 0x5c448f84, 0x04062105, 0x07214c82, 0x83158407, 0x080421ca, 0x4f850a82, 0x76451882, 0x08082205, 0x20c38205, + 0x82748207, 0x0604215a, 0xe0413f82, 0x07ac4305, 0x05050624, 0x76840704, 0x05200982, 0x0726e682, 0x070a0505, 0x29830809, 0x5a421982, 0x11534306, + 0x840a6142, 0x0204230a, 0x59850204, 0x3d910591, 0x00206b82, 0x022f0087, 0x0c0a0202, 0x03050006, 0x06060402, 0x43020708, 0x04200683, 0x02216189, + 0x05834302, 0x43060621, 0x04211783, 0x82cf8303, 0x158343e1, 0x16820420, 0x85020321, 0x08062650, 0x03050504, 0x21118208, 0x98820404, 0x22068343, + 0x84060407, 0x42092000, 0x1b820636, 0x83430620, 0x08ac4433, 0x83430520, 0x82f28222, 0x06944393, 0x83430420, 0x06072207, 0x36834305, 0x07080923, + 0x055c4305, 0x02060322, 0x8343ce84, 0x20e98208, 0x0e834305, 0x08060822, 0x22268343, 0x43060507, 0x08820583, 0x00820620, 0x83430e82, 0x20f2820a, + 0x22148208, 0x82070a0a, 0x430a2006, 0x07241a83, 0x08040507, 0x21198343, 0x83430a0a, 0x0c09210a, 0x230a8343, 0x07090508, 0x23078343, 0x05060607, + 0x20088343, 0x0b834306, 0x0a050a2d, 0x06020303, 0x00010203, 0x430a0a00, 0x08200883, 0x20108343, 0x2043820a, 0x23038309, 0x0a060808, 0x83439383, + 0x210c8207, 0x1d82080a, 0x23050b42, 0x05060a0a, 0x05256c82, 0x05060405, 0x0c834308, 0x0a06072a, 0x06060708, 0x06040404, 0x05210183, 0x1e834308, + 0x83430920, 0x05a14316, 0x06050622, 0x08216382, 0x43678307, 0x08210a83, 0x21128209, 0x83430507, 0x0e0b3068, 0x03060007, 0x06070503, 0x03030809, + 0x4e060603, 0x0620059b, 0x11830086, 0x0a050634, 0x08070707, 0x08080506, 0x05070303, 0x0609080a, 0x0d820709, 0x06090724, 0x2e820707, 0x0620c982, + 0x04280383, 0x02020606, 0x060a0205, 0x04200082, 0x83072747, 0x82448408, 0x090627e3, 0x04060504, 0x04820609, 0x06060427, 0x04020307, 0x22538204, + 0x84070508, 0x07092200, 0x20008206, 0x22008203, 0x83090808, 0x09062200, 0x84008208, 0x22188215, 0x83050a06, 0x82022005, 0x889b8600, 0x06072106, + 0x3f430184, 0x06082206, 0x20198808, 0x450b8206, 0x058305ed, 0x2709fe4d, 0x02030507, 0x05050507, 0x0382ae82, 0x02050322, 0x08212486, 0x82db8206, + 0x0a0a2303, 0x01830407, 0x2007c244, 0x21c68205, 0x49890405, 0x08202782, 0xb0437382, 0x82022005, 0x0a09237e, 0x2c820609, 0x06060622, 0x29068343, + 0x09070307, 0x09080904, 0x9b840704, 0x03090828, 0x080a0707, 0x9b820905, 0x82070521, 0x820f8264, 0x0572422f, 0xaa4a0520, 0x20408305, 0x82718408, + 0x04082268, 0x2bbc8506, 0x03030607, 0x080a0a03, 0x07080607, 0x09224b84, 0x09820806, 0x82080a21, 0x0507214a, 0x0829ab82, 0x080b0b08, 0x0c070709, + 0x20318207, 0x20268204, 0x20488305, 0x05b14307, 0xa3430620, 0x08082805, 0x06090506, 0x82040606, 0x020221f2, 0x0520ab82, 0x04212382, 0x20438209, + 0x23588209, 0x050b0b06, 0x2c060747, 0x09050505, 0x0305030d, 0x04010603, 0x265c8206, 0x090b0609, 0x82090709, 0x07062100, 0x96842983, 0x06070625, + 0x82020606, 0x85042003, 0x0b062400, 0x43040b06, 0x0b2e0783, 0x0702020b, 0x0a0a0807, 0x04090607, 0x6b820a04, 0x00070822, 0x8a830083, 0xb9840b20, + 0x0a060723, 0x82218308, 0x09082193, 0x08241682, 0x090b0e06, 0x1d826882, 0x55820520, 0x82060621, 0x2b0784d0, 0x06070405, 0x05060809, 0x05070607, + 0x072d0182, 0x07090608, 0x07090a0b, 0x06050507, 0x21858407, 0x4982090a, 0xa3824282, 0x82030721, 0x4114820b, 0x0a2205a5, 0x21830307, 0x850a0921, + 0x4a4583c5, 0xe04105ee, 0x06d24405, 0x06233982, 0x83080904, 0x82062067, 0x0a092800, 0x06060909, 0x820b090a, 0x0708212e, 0x67847784, 0x05900720, + 0x840a6142, 0x0203230a, 0x59850203, 0x90840591, 0xa7820720, 0x4b850384, 0x47000621, 0x0c210a07, 0x0583430f, 0x0a07082b, 0x04040308, 0x04030707, + 0x20058203, 0x21008607, 0x08820303, 0x23068343, 0x04080806, 0x0b21d882, 0x20f08309, 0x20508207, 0x281b820b, 0x06040404, 0x07070705, 0x25398206, + 0x03030706, 0x15830306, 0x06040728, 0x09050704, 0x06820506, 0x15820420, 0x06274d84, 0x06040a07, 0x820a0407, 0x0404262f, 0x03080707, 0x233b8202, + 0x05090909, 0x07231d84, 0x8206070a, 0x204f8200, 0x05824304, 0x08206582, 0x1c850082, 0x0b210582, 0x82048206, 0x8892844b, 0x059c4115, 0x28410e84, + 0x41ec8306, 0x37430933, 0x82af8208, 0x82dd83d9, 0x06072103, 0x6d824582, 0x0625ae82, 0x06040603, 0x236c8203, 0x08070907, 0x09230685, 0x430b0b07, + 0x7c410583, 0x83042008, 0x0746410f, 0x0b210783, 0x85798209, 0x8203201e, 0x820a207d, 0x820d820f, 0x07032209, 0x238d8402, 0x06090703, 0x8343dc82, + 0x82088208, 0x08092123, 0x66821c83, 0x82059c43, 0x24468214, 0x07070506, 0x21048204, 0xa4820606, 0x10820620, 0x1a833983, 0x06200782, 0x04221a82, + 0x3a820b03, 0x07211b82, 0x056e4207, 0x0b21a982, 0x294a8708, 0x0b0b0808, 0x07070a08, 0x0082070c, 0x82060521, 0x82268276, 0x230d82cc, 0x09050506, + 0x1f824082, 0x06070922, 0x07222282, 0xf8820605, 0xdd820320, 0x05226d83, 0x0183090b, 0x0c211482, 0x0b83430c, 0x05030f2f, 0x02060404, 0x0a070704, + 0x0d060a07, 0x0583430a, 0x08070725, 0x41070708, 0x072207ac, 0x83430307, 0x060c2d0a, 0x0203040c, 0x01020307, 0x0c0c0000, 0x07210982, 0x24638209, + 0x05040907, 0x22b8820b, 0x83000809, 0x09062300, 0x0d820707, 0x0a230384, 0x8207070a, 0x09062b03, 0x08070909, 0x0e050805, 0x1782090d, 0xa5820b20, + 0x82070621, 0x820c2000, 0x20068209, 0x23a58207, 0x07090a07, 0x0721f482, 0x26058206, 0x09070807, 0x830b0c08, 0x45072011, 0x06220570, 0x4082080a, + 0x0a261782, 0x04080a08, 0xa1410909, 0x090b2309, 0x00820704, 0x060b0a24, 0x01830907, 0x41830920, 0x0f840984, 0x2106d543, 0x63820805, 0x82090a21, + 0x825f8267, 0x215b849e, 0x7f830a0b, 0x0621ad82, 0x09664208, 0x9443098e, 0x0304220f, 0x06434204, 0x09876389, 0xb7840820, 0x4705f044, 0xbd820561, + 0x00870020, 0x0202022e, 0x0008100d, 0x05040307, 0x090b0708, 0x43078343, 0xf2420614, 0x23058205, 0x08080b06, 0x062beb82, 0x03050909, 0x090b0608, + 0x820a070a, 0x0709229d, 0x231b820b, 0x07040504, 0x08203c82, 0x0426af82, 0x03030807, 0x2c830306, 0x0605082a, 0x0a060804, 0x05060607, 0xd4436f82, + 0x08062c06, 0x0706050b, 0x06070b04, 0x82050507, 0x03032850, 0x0a060505, 0x82060a0a, 0x2202825d, 0x8207080b, 0x82052000, 0x09092100, 0x0a201582, + 0x09206582, 0x07210082, 0x21178407, 0x83430707, 0x822f8509, 0x210883da, 0x7a820806, 0x07200b82, 0x83076d43, 0x093141ec, 0x22081241, 0x51080908, + 0x05830567, 0x03060822, 0x0621c982, 0x09834306, 0x38821e82, 0x0a080922, 0x0c230184, 0x8305080c, 0x0d834301, 0x83074641, 0x820b2007, 0x850720dc, + 0x8204201e, 0x0b0b26a1, 0x0607080a, 0x22878208, 0x83020803, 0x03082996, 0x0a060a08, 0x08040a09, 0x0929be84, 0x0808050a, 0x0a07090b, 0x829a8309, + 0x050a22da, 0x20b08207, 0x822a8204, 0x080624c0, 0x82060408, 0x85062045, 0x8208200e, 0x040b211f, 0x0b220b82, 0x15820a07, 0x03050526, 0x080a0c0c, + 0x0821a182, 0x220e8208, 0x8209070b, 0x090b2180, 0x0e824a82, 0x09070a2a, 0x090d0d09, 0x0d08080b, 0x072b0d82, 0x09070705, 0x06080806, 0x82080907, + 0x05062400, 0x43070906, 0x062406a3, 0x0807070b, 0x27078343, 0x08060608, 0x0a0b0506, 0xc4820183, 0x050d0d23, 0x08674f02, 0x43100921, 0x4a820583, + 0x0d247f83, 0x0a080a0a, 0x08200082, 0x83435282, 0x06ac410c, 0x0505053f, 0x0d070d07, 0x07020304, 0x00010303, 0x030d0d00, 0x0b070802, 0x07080b0b, + 0x0b05040a, 0x213d820b, 0x00830009, 0x0709072c, 0x080a0d08, 0x08090c08, 0xbc820c07, 0x070a0c25, 0x820a0a06, 0x08062510, 0x0a0e0f06, 0x1d821b82, + 0x07080628, 0x0d080808, 0xd1410a0c, 0x82052005, 0x07092149, 0x7c441483, 0x0a082405, 0x820b0d09, 0x07062233, 0x24b68205, 0x0b070706, 0x05944109, + 0x0b090b25, 0x820b0509, 0x820920f4, 0x821283a6, 0x2442830e, 0x07070b0b, 0x2001820a, 0x2045820b, 0x411a8407, 0x2c4205e0, 0x05072409, 0x82060a0b, + 0x07072567, 0x0c0b0807, 0x0723ae82, 0x820d0b0d, 0x080923a3, 0xdf430607, 0x09d84305, 0x92430989, 0x0507240e, 0x85030503, 0x83059159, 0x090a218e, + 0xb7840187, 0x00080622, 0x03380087, 0x110e0303, 0x04070008, 0x08090604, 0x04030a0c, 0x04080804, 0x08050405, 0x11830088, 0x0c060826, 0x0a080909, + 0x0a28cc82, 0x07080305, 0x080b0a0c, 0x20055348, 0x2393820d, 0x07040504, 0x28050443, 0x08070408, 0x04070404, 0x213c830d, 0xd6820705, 0xa9820a20, + 0x04200883, 0x08215682, 0x25e38208, 0x0807050c, 0x2f820c05, 0x0805052e, 0x03040908, 0x0a070505, 0x09060a0a, 0x0c200084, 0x22088343, 0x830b0a0a, + 0x0b082100, 0x0a211c82, 0x82398307, 0x0c072148, 0x9e820982, 0x4d850420, 0x0722a188, 0x67430708, 0x07204105, 0x41080a21, 0x188205c0, 0x0a211282, + 0x82018607, 0x09675115, 0x03080823, 0x826e8304, 0x040725ae, 0x04070507, 0x20063941, 0x83d9820a, 0x0d0c21dd, 0x41068343, 0xc682076b, 0x41050721, + 0x0d210b5e, 0x851a820a, 0x08042872, 0x0c0c0709, 0x8507080b, 0x030822a0, 0x29008208, 0x0b080409, 0x0b090b06, 0x9d830904, 0x0b0a0827, 0x0c090805, + 0x20d2820a, 0x82278208, 0x050b2262, 0x203d8207, 0x82298204, 0x82062007, 0x820720d7, 0x08072107, 0x43055a49, 0x0d261083, 0x08080a0d, 0x6882090a, + 0x0b070925, 0x830a0a08, 0x820b204b, 0x08072212, 0x2616820b, 0x0c090d0d, 0x820f0809, 0x82b5824f, 0x82082023, 0x821c8209, 0x07052106, 0x22058343, + 0x82080b09, 0x08082937, 0x04070705, 0x0c0c0404, 0x08248382, 0x0a0d0607, 0x07260183, 0x0e0e0707, 0x00820306, 0x06060636, 0x0c060707, 0x04060311, + 0x05020704, 0x080c0808, 0x0a0e070b, 0x0b24c582, 0x09080b0b, 0x08217f82, 0x8215820a, 0x84082057, 0x4f0720b0, 0x053605e6, 0x0e070e07, 0x08020405, + 0x00010304, 0x040e0e00, 0x0b080803, 0xa9820d0c, 0x0d060523, 0x43eb820d, 0x0a300683, 0x0b0d0808, 0x0a0d0809, 0x0a0c0709, 0x0c0d0909, 0x0a209382, + 0x07255782, 0x0f110709, 0x221b820b, 0x44080b0d, 0x0e21053b, 0x26be840d, 0x09050708, 0x840a0b08, 0x83072014, 0x820a2005, 0x0c0f210d, 0x07221183, + 0x00820705, 0x49824083, 0x17820820, 0x21058343, 0x45450809, 0x08092605, 0x09050a0c, 0x23688207, 0x0b08070c, 0x09210183, 0x062d4708, 0x08200d84, + 0x9f460d83, 0x05072505, 0x05070b0c, 0x08300f84, 0x0b0c0c0c, 0x0c0d0708, 0x080a0c0e, 0x0708090a, 0x46057041, 0x092111d9, 0x085a4a07, 0x07253884, + 0x05040508, 0x91598504, 0x204b8205, 0x05724808, 0x51420583, 0x0c834305, 0x09120f30, 0x04040800, 0x0c080a07, 0x0505040b, 0x4c820808, 0x20069846, + 0x21008208, 0x04820404, 0x0a0d062f, 0x080a090a, 0x060b0a08, 0x0d070904, 0x824a840b, 0x090e2856, 0x06050808, 0x84060805, 0x820820ab, 0x2b48822a, + 0x09080d04, 0x07060909, 0x0b070805, 0x200e8343, 0x05834309, 0x052eb682, 0x0a080905, 0x05050304, 0x0b0b0b07, 0x00840a06, 0xba450d20, 0x06062305, + 0x14820a06, 0x08200282, 0x4d820684, 0x00840820, 0x83430d20, 0x206e8208, 0x20008209, 0x21308408, 0xbb820907, 0x0a080a22, 0x8208474a, 0x841884aa, + 0x43082034, 0x0b230737, 0x51080b08, 0x042108b5, 0x20f28209, 0x439d8209, 0x39410883, 0x820a2005, 0x83092006, 0x0e0d21dd, 0x4105d64b, 0x07210530, + 0x05914307, 0x210b5e41, 0xc6820b0e, 0x20058041, 0x26648204, 0x090b0d0d, 0x82090707, 0x09042299, 0x2a9b8203, 0x09040a09, 0x0a0c070c, 0x830a040c, + 0x23ca8281, 0x0d0a0906, 0x0b204082, 0x62829b83, 0x08060b29, 0x04080709, 0x82090908, 0x080728c0, 0x07070409, 0x82070808, 0x220e8239, 0x82080b08, + 0x20de8238, 0x2a09820c, 0x06060709, 0x0b0f0e04, 0x820b0909, 0x0a0823d9, 0x4c820c08, 0x0d0b0924, 0x12820b0b, 0x0b090822, 0x0e261682, 0x0a0d0a0e, + 0x7c821009, 0x08060824, 0x48830b08, 0x60823883, 0x83070721, 0x0d0d2a0d, 0x07080b0a, 0x0808080c, 0x05834306, 0x83430d20, 0x0b0e2105, 0xc4820183, + 0x430f0f21, 0x08200783, 0x12222782, 0x83430704, 0x080c2308, 0x83430c0f, 0x0a092305, 0x5c82090b, 0x45820620, 0x0922b482, 0x08820409, 0x33068343, + 0x0f080f08, 0x08030405, 0x00020304, 0x040f0f00, 0x0c080903, 0x08257382, 0x0e06050c, 0x433d820e, 0x08220583, 0x4c82080b, 0x0d090a2e, 0x0d080a0b, + 0x0e090a0a, 0x0b07080c, 0x092b5482, 0x12070907, 0x0d090b10, 0x820c0f0c, 0x225c830b, 0x840b0e0f, 0x06082463, 0x820c080a, 0x820920ba, 0x070928ca, + 0x080b090a, 0x82100a0c, 0x0709213f, 0x21057941, 0x99420709, 0x26178205, 0x06090c09, 0x430a0b0c, 0x08200570, 0x0b206182, 0x06823b82, 0x84080d21, + 0x82458312, 0x200b836e, 0x43918309, 0x0a250757, 0x0d060808, 0x06c1420b, 0x0e0e0925, 0x82090c0e, 0x20f384a4, 0x462f830a, 0x118511d5, 0x86080246, + 0x04062308, 0x67430406, 0x20098e09, 0x07564208, 0xb9861783, 0x07470020, 0x1410220a, 0x0583430a, 0x0b0d092a, 0x09050504, 0x04050409, 0x20069846, + 0x21008209, 0x04820404, 0x0b0e0725, 0x820b0a0b, 0x060b26cc, 0x0e080904, 0x204a820c, 0x270d820a, 0x08090e0a, 0x05060509, 0x0920cf82, 0x09280982, + 0x04090804, 0x0e040804, 0x09273182, 0x09050706, 0x82080c08, 0x060921e1, 0x12831582, 0x0d212282, 0x32308206, 0x0907080d, 0x09090606, 0x0603040a, + 0x0c0c0806, 0x840b070c, 0x0a0e2200, 0x20008208, 0x21008206, 0x10840c0b, 0x05840920, 0x0a090822, 0x09223d84, 0x9085080e, 0x85040421, 0x2105860f, + 0x64440908, 0x086d4306, 0x480b0921, 0x0584059f, 0x82083743, 0x09834315, 0x82080a21, 0x826d8245, 0x040827ae, 0x04080608, 0x0183090c, 0x820c0b21, + 0x24dd8225, 0x0a0f0e09, 0x48018306, 0x0521087c, 0x41018208, 0x0e210b5a, 0x843e820c, 0x05082161, 0x0e213482, 0x2074820e, 0x43a08407, 0x0b340583, + 0x070c0a04, 0x050d0b0d, 0x0a080b0b, 0x0b0b0908, 0x0e0a0906, 0x0b305e82, 0x08080909, 0x0b0d090d, 0x07090806, 0x09090509, 0x07261c82, 0x05090907, + 0x18820808, 0xeb460920, 0x080b2905, 0x09050c0c, 0x080c0909, 0x06283c83, 0x0f0f0406, 0x0b0a090b, 0x4b827f82, 0x0c090e22, 0x0e214782, 0x2e0e820b, + 0x0d0a080a, 0x100a0b09, 0x0a0d0b10, 0x820a100a, 0x09062531, 0x09070b09, 0x0b219782, 0x82008209, 0x080b25be, 0x0e0e0909, 0x0821d882, 0x2710820d, + 0x04070806, 0x0e0e0404, 0x08236a83, 0x830c0e06, 0x08082501, 0x07101008, 0x2a060747, 0x0c070808, 0x05070414, 0x82020805, 0x090d284a, 0x0d10080d, + 0x820c0a0b, 0x0a092300, 0x5c820a0b, 0x47821582, 0x0a090923, 0x20378204, 0x2e008506, 0x10081008, 0x09030405, 0x00020304, 0x82101000, 0x0c092109, + 0x09217382, 0x0683430d, 0x83000a21, 0x0c082700, 0x0d100909, 0xb982090b, 0x0c0e0929, 0x0e0f090b, 0x820d0709, 0x22c48207, 0x82111308, 0x100d2217, + 0x830b820d, 0x0f10215d, 0x08822b82, 0x0b060827, 0x090b0e08, 0x2e788207, 0x0b080908, 0x0c090b0a, 0x0d0d110b, 0x41080a0a, 0x092e0598, 0x0b0b0d08, + 0x0b090a0a, 0x0d0a0d09, 0x5983060a, 0x2005a341, 0x2065820a, 0x220a8306, 0x82080e0e, 0x825c821d, 0x82092045, 0x840c2081, 0x090b210d, 0x27085b43, + 0x0d060809, 0x0a06080c, 0x09245f82, 0x0f0e0e09, 0x10238282, 0x820e100e, 0x4e0a203b, 0x4f4305a2, 0x833f860e, 0x43038b2e, 0x33831c83, 0xf84b0a20, + 0x820b2005, 0x820820ba, 0x05964400, 0x00820020, 0x0303032e, 0x000a1411, 0x07040409, 0x0c0e090b, 0x20188343, 0x2a41820f, 0x0c09090c, 0x0a05060c, + 0x820d0f08, 0x820b20f0, 0x0f0a2b0d, 0x050a0909, 0x07090506, 0xd382090a, 0x43060921, 0x0f2a0583, 0x0a0a0a09, 0x09060806, 0x83430d08, 0x0e0a370e, + 0x05090806, 0x0907090e, 0x090a0606, 0x0603040b, 0x0d0d0806, 0x2f82070d, 0x0e220282, 0x0082090a, 0x00820620, 0x14820c20, 0x09210282, 0x05fb410d, + 0x82108343, 0x820a206e, 0x059c4300, 0x7a830820, 0x56411182, 0x0a0c2208, 0x8231860c, 0x0c09224e, 0x22018608, 0x43090c09, 0x0b240983, 0x0a040508, + 0x210b8343, 0x0183090d, 0x04820b20, 0xdd820a20, 0x0f0f0a24, 0x0183060b, 0x2108cc43, 0x01820906, 0x8505a843, 0x0d0f2105, 0xc9411b82, 0x82052005, + 0x0e0e2688, 0x08090a0d, 0x2287820a, 0x84030a04, 0x0a0429cf, 0x0b0d080d, 0x0b0a050d, 0x0a251e82, 0x0a060d0c, 0x2033820a, 0x289b840d, 0x0d0e090e, + 0x080a0906, 0x833a8209, 0x09082b43, 0x0908050a, 0x0a080809, 0xcf820a0b, 0x0c21aa82, 0x211a820d, 0x09820d09, 0x06090a28, 0x100f0506, 0xd6820a0c, + 0x0b294b82, 0x0d0a0e09, 0x0f0b0a0d, 0x2d4a820c, 0x0e0a090a, 0x110b0c09, 0x0b0e0b11, 0x6883120a, 0x82090621, 0x844982f1, 0x080a2238, 0x2efd8208, + 0x0f0f0909, 0x08090c0b, 0x0909090e, 0x43080806, 0x07220983, 0x01830d0f, 0x1121c782, 0x09834311, 0x430f0621, 0x0e230b83, 0x820e1209, 0x820d20c5, + 0x0c0a2272, 0x205c820b, 0x05814307, 0x040a0a22, 0x0806ac41, 0x06060620, 0x11091109, 0x09030406, 0x00020305, 0x04111100, 0x0d0a0a03, 0x090a0f0f, + 0x1007060d, 0xb7820d10, 0x00830020, 0x092acd82, 0x0a0b0e11, 0x090a0c0f, 0xb5820c0f, 0x93820e20, 0x0a0d0c22, 0x1427f183, 0x0f0a0d12, 0x820e110d, + 0x0a09260b, 0x10110a0a, 0x8206830e, 0x22ee82fa, 0x43080a0c, 0x0b270533, 0x0d090c0a, 0x820f120b, 0x47082043, 0x092f0519, 0x0c0c0d08, 0x0c090b0a, + 0x0e0a0e09, 0x820e060a, 0x220c83a1, 0x820b090c, 0x0a062761, 0x0e090a09, 0x7782090e, 0x0e090d22, 0x0a224582, 0x0b830d08, 0x820d0a21, 0x09b04501, + 0x36820920, 0x2b820920, 0x0a08092c, 0x100f0f0a, 0x10090b0d, 0x2e82110e, 0x840b0d21, 0x08c74d77, 0x8309d14d, 0x0c064609, 0x06230c82, 0x4b040604, + 0x059105da, 0x9f820c20, 0x870a0c21, 0x05524201, 0x43059644, 0x12300683, 0x09000b16, 0x0c070405, 0x040d0f0a, 0x0a0a0505, 0x14434c82, 0x820a2006, + 0x04042100, 0x08330482, 0x0b0b0b10, 0x0c090a0c, 0x0a05060d, 0x0d0d1009, 0x820b0d0b, 0x100a21da, 0x05238d82, 0x820a0507, 0x080b222f, 0x3706820b, + 0x0905050b, 0x0a0b1005, 0x09070b0b, 0x0d0a0b06, 0x06080a09, 0x050a060a, 0x0a204483, 0x0f252c82, 0x060a0a06, 0x26ed820f, 0x0b0a0606, 0x8204040c, + 0x0d0d2206, 0x05734a0d, 0x0b0f0b23, 0x4300820a, 0x0a200a83, 0x0d231b82, 0x840b090d, 0x0a0a2417, 0x820a080f, 0x82052000, 0x860a2000, 0x0b0a2111, + 0x60440082, 0x07f14608, 0x0c0b0c22, 0x2f821f87, 0xb383fa87, 0x725d0620, 0x0a0b2708, 0x090a0505, 0xae820909, 0x06220382, 0x1e830509, 0x02820382, + 0x820d0a21, 0x10102301, 0x0183070b, 0x21086a41, 0x01820906, 0xfd822486, 0x100b0d22, 0xf643dc82, 0x82052006, 0x0f0f2282, 0x844f820d, 0x058343a0, + 0x0b040b28, 0x0c0e080e, 0xbe82060e, 0x820a0b21, 0x0a0621ca, 0x07823382, 0x27820b20, 0x0e0a0e25, 0x8209060d, 0x821d82b0, 0x0808371c, 0x09060a0b, + 0x08090b09, 0x080b0c0a, 0x0d0b080a, 0x060d0c0a, 0x07820a0b, 0x0b0a0d28, 0x05060609, 0x08821110, 0xed830d20, 0x0e0a0c22, 0x0a244482, 0x0d0d100c, + 0x09210f82, 0x270d820b, 0x0c12120c, 0x130b0b0f, 0x0a214982, 0x256a8207, 0x090b0b08, 0x3e820e0a, 0x08080b39, 0x0b090d0a, 0x0c10100b, 0x0f080a0e, + 0x070b0a0a, 0x05050908, 0x82100f05, 0x090b2420, 0x830d1007, 0x0a093901, 0x07121209, 0x03040303, 0x08060606, 0x150f0708, 0x06060704, 0x0a070209, + 0x0e266a82, 0x0d0e1309, 0x00820e0b, 0x60828d82, 0x20053045, 0x2000820b, 0x0a834305, 0x09122008, 0x03050612, 0x0204050a, 0x12120000, 0x0a0b0305, + 0x0b10100f, 0x07060e0a, 0x0a0d1111, 0x83000c0d, 0x820a2000, 0x0e1228c2, 0x0d100b0c, 0x82100a0b, 0x82112007, 0x0c0e2393, 0x00830a0d, 0x0d131628, + 0x120e110a, 0x03500b0e, 0x11122105, 0x0b202382, 0x0725c682, 0x0d0e090b, 0x2414830a, 0x0c090a09, 0x2889820b, 0x0d0f130c, 0x09080b0c, 0x827e8208, + 0x0d0f2313, 0x17830b0d, 0x0f0c0f2b, 0x0d0e060c, 0x0a0c0a0c, 0x8226820d, 0x060e2365, 0x87820a0b, 0x820a0f21, 0x0a0d2777, 0x080a0d0e, 0x1a83080a, + 0x83052343, 0x820b2068, 0x0b0c261f, 0x0e0f070a, 0x2d678209, 0x0b0b090a, 0x0f101110, 0x0f12090b, 0x25821013, 0x080a0c23, 0x095c420c, 0x3646098e, + 0x23058905, 0x05060506, 0x86117d43, 0x21908211, 0x01870c0d, 0x2105d443, 0x0087000b, 0x04040429, 0x000b1713, 0x8204050a, 0x0d10246e, 0x43060604, + 0x0c361683, 0x0a0d0c0c, 0x060e0d09, 0x110a0b05, 0x0e0b0e0e, 0x0e0a0a0c, 0x8382110b, 0x06070624, 0xcd82080a, 0x83430920, 0x82112008, 0x080b2c0d, + 0x0a0b0609, 0x080a0a0e, 0x43070a07, 0x0a380783, 0x0a07100b, 0x0a10060a, 0x06060a08, 0x040c0b0b, 0x0a070604, 0x080e0e0e, 0x02825d82, 0x430c1021, + 0x0d200783, 0x02821482, 0x0e221b83, 0x83430a0e, 0x09102107, 0x43178343, 0x09210667, 0x2001840c, 0x41f2820d, 0x0641091c, 0x820a2006, 0x430b20b3, + 0x0b240d83, 0x050a0909, 0x06220184, 0x1e83050a, 0x0d0b0e22, 0xb5820682, 0x110a0e25, 0x83080c11, 0x08fc4401, 0x820a0621, 0x85248501, 0x0e112105, + 0x08206383, 0x0826cb82, 0x0a0c0a05, 0x0f821010, 0x820b0921, 0x0b052200, 0x82058204, 0x0e0b2bdd, 0x0f0d0f09, 0x0a0c0c06, 0xca820a0b, 0x0c0b0622, + 0x0e213382, 0x830c820e, 0x060e2262, 0x0983430a, 0x0a0b0924, 0x26820906, 0x0c0a0928, 0x090a090b, 0x2f840d0b, 0x0e0b0a24, 0x5b820d0a, 0x0506062a, + 0x0b0d1211, 0x0b0c0e0b, 0x1020e983, 0x0b231c82, 0x820e110d, 0x325a824a, 0x0c0e0a0e, 0x100c1212, 0x0c140c0c, 0x070a0a0a, 0x430e0a0b, 0x09210983, + 0x2d408209, 0x11110b0b, 0x090a0f0d, 0x0b0a0a0f, 0x83430907, 0x080a2309, 0x01830e11, 0x13303582, 0x03030813, 0x07070304, 0x07080807, 0x0804170f, + 0x26088343, 0x0e130a0f, 0x820e0c0e, 0x437f8200, 0x0c230983, 0x45050b0c, 0x06260630, 0x130a0606, 0x8343130a, 0x13132f08, 0x0a0b0305, 0x0c111110, + 0x08060f0a, 0xa0831212, 0x00830020, 0x0b26f582, 0x0b0c0f13, 0x03820e11, 0x0d0e0f26, 0x080a1113, 0x0a215782, 0x2501820b, 0x0b0e1416, 0x1d820f12, + 0x0b0c0922, 0x13220082, 0x05820e12, 0x090b0b29, 0x100a0c07, 0x82080a0e, 0x0b092ee7, 0x0e0b0d09, 0x140c0f0b, 0x0c0c0e10, 0x06984109, 0x0d100a25, + 0x840c0b0d, 0x0c0f2517, 0x0d0e1006, 0x0e20ef82, 0x61820e82, 0x0c060e23, 0x213d820a, 0x77820a10, 0x45840e20, 0x83090a21, 0x828f821a, 0x090c2111, + 0x28051b4a, 0x070a0b0c, 0x07090f10, 0x32cd820b, 0x11110b0b, 0x090b0f11, 0x11141013, 0x0c0d0a0e, 0x460d080a, 0x624208bd, 0x430f8806, 0x59851383, + 0x0b200592, 0x0c207782, 0x2105f84b, 0x39850c0e, 0x350c8343, 0x000c1814, 0x0805050a, 0x0e110b0d, 0x0b060605, 0x0506050b, 0x00880b07, 0x82050521, + 0x1109380a, 0x0e0c0c0d, 0x0d0e0a0b, 0x0a0b0607, 0x0c100e11, 0x0b0b0c10, 0x82120c0d, 0x8206201b, 0x0c082e12, 0x0c090c0b, 0x0c0b070a, 0x050a0505, + 0x280d8213, 0x0709080c, 0x0a0f0a0c, 0x21dd820a, 0x44840b07, 0x090b0b3b, 0x0a07110c, 0x0a11060b, 0x07070b09, 0x050d0c0c, 0x0a070704, 0x090f0f0f, + 0x2000840d, 0x20538211, 0x2419820b, 0x0e0e0707, 0x21008310, 0x1783100b, 0x840c0b21, 0x0b0b2217, 0x08834311, 0x11860b20, 0x0c201a82, 0x2107f944, + 0x81430b0d, 0x090c2505, 0x0c0e0c0e, 0x83056041, 0x20fe8205, 0x2503830b, 0x0c0d0c0d, 0x01870507, 0x060a0d26, 0x0a0a0b05, 0x410a8343, 0x0e230523, + 0x830b100c, 0x12122301, 0x0183080c, 0x21080c4c, 0x01820b07, 0x8209cc44, 0x820f20fb, 0x311e855d, 0x0b0d0b06, 0x0b101111, 0x0c0c090b, 0x0c050c0b, + 0x00820c04, 0x0d050d29, 0x0d11090f, 0x820d0611, 0x0b0b2a13, 0x0b07100d, 0x0b0e110c, 0x240e8210, 0x0b0f0b0b, 0x220f830f, 0x82060c08, 0x0b0b2f29, + 0x0b0c0908, 0x0c0a0a06, 0x0d0b090a, 0x4682090c, 0x0f0a0d24, 0x3782060f, 0xba820f20, 0x070b0c2b, 0x13130607, 0x0d0c0b0e, 0x825f820d, 0x0e0b276a, + 0x110d0b0e, 0x0e83100d, 0x0b0f0c2d, 0x13130d0d, 0x0d0c100d, 0x820b0c15, 0x0b2d084a, 0x0c080f0a, 0x0e0b0a0c, 0x0c0c0b0c, 0x0f0a0909, 0x110c0c0a, + 0x0b100e11, 0x0a0b1109, 0x0909080c, 0x11050505, 0x0a0a0c11, 0x1208090c, 0x2601830f, 0x140a0a0b, 0x82040814, 0x08083900, 0x080a0a08, 0x0805170f, + 0x030a0606, 0x0f0b0b07, 0x140a100b, 0x0f0c100f, 0x0c220082, 0x60820e0c, 0x82080e21, 0x0b0b2164, 0x0523b682, 0x520a0a0a, 0x210806b2, 0x140a140a, + 0x0b030507, 0x00020405, 0x05141400, 0x110b0c04, 0x0b0d1311, 0x12080710, 0x0f0b1012, 0x0083000d, 0x0a0e0b24, 0xb482130c, 0x0d0e123d, 0x0f0f120b, + 0x0b11130d, 0x100f0f08, 0x0c0a0c0b, 0x1015180a, 0x1310120c, 0x83090c10, 0x140c24b6, 0x830c0e13, 0x080a2700, 0x0f110a0c, 0x7882080b, 0x0a0b0a2e, + 0x0c0d0c0d, 0x11150e0f, 0x090c0c0f, 0x20052752, 0x211d820b, 0x17830d0d, 0x100d1027, 0x0f11070d, 0x0872460d, 0x070e1122, 0x11240c83, 0x0f0a0b11, + 0x45830182, 0x0e090b22, 0xe041c382, 0x090d2105, 0x25055543, 0x080b0c0d, 0x67831010, 0x0c0a0b25, 0x8212120c, 0x13092827, 0x0f121311, 0x550e0e0b, + 0xfc4805aa, 0x420b890b, 0x09850960, 0x07050723, 0x91598505, 0x21b78405, 0x01860f0d, 0x1a482f85, 0x82002005, 0x04043800, 0x0d1a1504, 0x06050b00, + 0x110c0e08, 0x0606040f, 0x07060c0c, 0x880c0806, 0x22118300, 0x8212090c, 0x0b0e2ce8, 0x080f0e0a, 0x120a0c06, 0x820c0f0f, 0x0f0a2dec, 0x0c0b130c, + 0x0608060b, 0x0b0c090b, 0x0b20d182, 0x82088343, 0x0908273d, 0x100b0c07, 0x06820b0b, 0x050c0722, 0x13825682, 0x110c0a27, 0x070c0a07, 0x252f8211, + 0x0c0c0707, 0x8343060e, 0x0d12220d, 0x2000820b, 0x21008208, 0x00840f0e, 0x05850c20, 0x71430c20, 0x0a122106, 0x0b211e82, 0x82008205, 0x2202894b, + 0x410b0c0b, 0x0a20061a, 0x2205f346, 0x860e0c0e, 0x432f8331, 0xb3820783, 0xdd540c20, 0x24058305, 0x05060b0d, 0x0b83430c, 0x0f221e83, 0x06850e0c, + 0x1422d982, 0x0183080d, 0x23056443, 0x070a090b, 0x1d870183, 0x13220783, 0x79820c10, 0x20830920, 0x0d0c0627, 0x0f12120b, 0x21d7820c, 0x83430c0c, + 0x0d062908, 0x0e100a10, 0x0d0d0611, 0x0b272782, 0x0c080f0f, 0x820f120d, 0x0b0c2607, 0x0b100c0a, 0x250f8210, 0x060c090c, 0x1e820c0c, 0x0c090925, + 0x820a060c, 0x0c0a2426, 0x820a0c0d, 0x820f2016, 0x201a821f, 0x822f820c, 0x080829dc, 0x0f141306, 0x0d0f0c0c, 0x0e222c82, 0x4483120b, 0x0f120e27, + 0x0d0c0f0f, 0x284a820a, 0x14140e0f, 0x0d0d110e, 0x24498215, 0x0b0c080b, 0x214d820f, 0x2f820c0a, 0x0a0c0c26, 0x0b0f0b09, 0x2d068343, 0x0b0b120a, + 0x090a080c, 0x11050505, 0x6d820c12, 0x13080a23, 0x25018310, 0x150b0b0c, 0x83430915, 0x12092308, 0x83430419, 0x0c0c2a05, 0x0b110c10, 0x0d0f1115, + 0x20008210, 0x8352840c, 0x0c0c21b6, 0x0c225382, 0x30450b05, 0x07220805, 0x150b0707, 0x0507150b, 0x04060c04, 0x15000002, 0x0d040515, 0x1312110c, + 0x07100b0d, 0x0f131308, 0x8343100c, 0x318a8206, 0x0c0d1114, 0x0b0d0f13, 0x0d0e0f12, 0x090b1114, 0xa7821010, 0x0b0c0b28, 0x0d10161a, 0x1d821113, + 0x0c0d0a22, 0x15220082, 0x05821014, 0x0820bf82, 0x0b352a83, 0x0c0b0d09, 0x0e0a0c0a, 0x110c0f0d, 0x1012160e, 0x0a0a0d0d, 0x23848209, 0x110b0b0b, + 0x0e204882, 0x11249982, 0x080e110e, 0x0b205582, 0x0f250c83, 0x120c0e0c, 0x823b820f, 0x0b12233d, 0x01820f0b, 0x0b0f1225, 0x410a0b09, 0x0d2309c0, + 0x830b0c0a, 0x0c0e2601, 0x1011080b, 0x202b820a, 0x29d4820b, 0x10121212, 0x12140a0c, 0x42821215, 0x090b0e24, 0x81430c0e, 0x460d2015, 0x088708a3, + 0x08050823, 0x915d8905, 0x05f64b09, 0x77850583, 0x270c8343, 0x000d1a16, 0x0806060b, 0x0422b583, 0x83430707, 0x0d132115, 0x0b28ff83, 0x06080f0f, + 0x10130b0d, 0xda824a83, 0x0c130d38, 0x08070c0c, 0x0d090c07, 0x0d0a0d0c, 0x0d0b070c, 0x060b0606, 0x00820d14, 0x070a092e, 0x0b100b0d, 0x0c080a0b, + 0x06060c08, 0x0c3a2882, 0x120d0b0c, 0x070c0b07, 0x0c090b12, 0x0d0d0707, 0x0705060e, 0x10100b08, 0x2f820910, 0x13210282, 0x2025830d, 0x20008208, + 0x8214820f, 0x100c2202, 0x2100820f, 0x17840d0c, 0x120c0c23, 0x201f830a, 0x85008206, 0x8374822f, 0x08f94408, 0x24058143, 0x0d0f0a0d, 0x8331860f, + 0x0b0f212f, 0x15820186, 0x21083363, 0x93820d06, 0x0b0b0d22, 0x23057851, 0x060b070b, 0x20052341, 0x2506850f, 0x15140d10, 0x0183090d, 0x2008ee44, + 0x20248207, 0x07ca4407, 0x13240783, 0x0c0b0c10, 0x2a054b45, 0x0c0d0c06, 0x0d101213, 0x820d0a0b, 0x0d062293, 0x2a9f8404, 0x0a110d06, 0x07110f11, + 0x820c0e0d, 0x100f248e, 0x820d0d08, 0x0f102233, 0x2537820d, 0x10100c10, 0xb0820c08, 0xf7820720, 0x0a0d0b27, 0x070d0d0a, 0x22c8820b, 0x840e0d0a, + 0x831f83c5, 0x0c102c1a, 0x0b0d0c0f, 0x14060808, 0x820d0f15, 0x224b82c0, 0x82120c0e, 0x0f0d233c, 0x4a820f13, 0x0d0b0d22, 0x0f362282, 0x120f1616, + 0x0d170d0e, 0x090c0d0c, 0x0a100c0c, 0x0c0b0d0d, 0x00820d10, 0x0b0a0a38, 0x0d0d0b10, 0x110e1414, 0x0c130a0c, 0x0a090d0c, 0x0606060a, 0xfb821312, + 0x090a0d22, 0x08088343, 0x09161620, 0x04050404, 0x0b080808, 0x1a12080b, 0x07070804, 0x0c08030b, 0x120c110c, 0x1011160b, 0x0082110e, 0x7f820d20, + 0x430c0c21, 0x5a820583, 0x43060c21, 0x16240a83, 0x0607160b, 0x34068343, 0x04061616, 0x13120c0d, 0x110c0d14, 0x14140907, 0x0e100d10, 0x27008300, + 0x0d0c100c, 0x0d0e1116, 0x0c2b1182, 0x0e0e1113, 0x0a0c1214, 0x82101010, 0x0b0d29ac, 0x0e11171a, 0x12161115, 0x0c20fd82, 0x16215c82, 0x22be8415, + 0x82090b0d, 0x0c1022ee, 0x050b430a, 0x81820e20, 0x170f1128, 0x0d0e1013, 0x154a0b0a, 0x120b2205, 0x0594410f, 0x120e1228, 0x1012080e, 0x01820c0f, + 0x9f410d20, 0x0d082605, 0x130c0d0c, 0x82b38212, 0x82122014, 0x206e8245, 0x07e0410d, 0x0b216882, 0x3e01820d, 0x090c0d0f, 0x090b1112, 0x0b0c0c0d, + 0x13140d0d, 0x0b0d1114, 0x13161216, 0x0f0f0d10, 0x4d0f0a0c, 0x024908c5, 0x200b830b, 0x22008e0c, 0x42080608, 0x6d430643, 0x83098709, 0x0e10218e, + 0x83430187, 0x05964405, 0x00820020, 0x05050536, 0x000e1c17, 0x0806060c, 0x10130d0f, 0x0d070704, 0x0607060d, 0x20061443, 0x2100820d, 0x04820606, + 0x0e140a38, 0x0c100e0e, 0x0810100b, 0x140b0d06, 0x110d1111, 0x100c0c0e, 0xb982140d, 0x43090721, 0x0b2b0583, 0x0c080c0d, 0x0b06060e, 0x820e1406, + 0x0a092532, 0x110b0e08, 0x20058343, 0x2044840d, 0x35e4820d, 0x0d0b0813, 0x0a0c1307, 0x0d08080d, 0x05060f0e, 0x110b0808, 0xf74d1111, 0x140e2105, + 0x0c225382, 0x0082080c, 0xa87d1020, 0x110d2205, 0x21008210, 0x17840d0c, 0x130c0c23, 0x0883430b, 0x61820e20, 0x0e200283, 0x0b230082, 0x4a0e0b0d, + 0x0b200548, 0x8305f346, 0x092141fa, 0x860c1021, 0x100e2201, 0x0983430e, 0x83430e20, 0x0b08240c, 0x830e1106, 0x82102001, 0x820d2004, 0x140d24dd, + 0x83090e15, 0x08064c01, 0x820c0821, 0x09484101, 0x140e1023, 0x08834311, 0xa1820720, 0x11131423, 0x22d7820d, 0x430d0d0d, 0x0e320683, 0x0b120e06, + 0x08120f12, 0x0d0c0e0e, 0x11100c0c, 0x33830d08, 0x82101121, 0x120c3c0c, 0x0811120d, 0x0e0a0d0c, 0x0e0d0e08, 0x0a0a0d0b, 0x0b080d0e, 0x0b0b0e0c, + 0x820d0f0d, 0x100e250e, 0x0810110c, 0xba831a82, 0x080c0e2b, 0x16150608, 0x100d0d10, 0x2068820e, 0x273c820f, 0x0f0d1111, 0x10111014, 0x0d2b0e82, + 0x0f100d12, 0x130f1616, 0x82180e0e, 0x090d2468, 0x4a100c0d, 0x2c8205ab, 0x0a0b0d37, 0x0e0b100b, 0x1014140d, 0x130b0d12, 0x090e0c0c, 0x06060a0b, + 0x26dd8206, 0x0b0e0b0b, 0x83111409, 0x21c78201, 0x83431717, 0x0a0a3607, 0x041b120a, 0x0b080808, 0x0d0d0803, 0x0c120d11, 0x0e111217, 0x84008211, + 0x100d217f, 0x24051b42, 0x060d0e0e, 0x05ac410c, 0x0c352b82, 0x08170c17, 0x060d0406, 0x00000205, 0x04061717, 0x14120c0e, 0x28048214, 0x15150908, + 0x0f110d11, 0x34008300, 0x0e0c110c, 0x0d0e1216, 0x0c0e1015, 0x0e101114, 0x0b0d1316, 0x2fca8212, 0x0b0d0b0d, 0x0f12181c, 0x13161215, 0x0d0e0b0e, + 0x17220082, 0x07841116, 0x0e090b27, 0x0d10120d, 0x82d9820b, 0x0d0f3024, 0x10120e10, 0x0e111418, 0x0a0c0b0e, 0x820c0b0c, 0x10132313, 0x17830e0f, + 0x130f1326, 0x1012080f, 0x2607ee42, 0x11140d0f, 0x820c0e08, 0x23f58268, 0x0c100c10, 0x0d214583, 0x20c9820b, 0x238f820e, 0x0e0d110d, 0x83433b82, + 0x12132107, 0x2c06f146, 0x1514140d, 0x160c0e13, 0x11151714, 0x224b820d, 0x830d0f0b, 0x43039343, 0x0c240e82, 0x06080608, 0x05915985, 0x100e1025, + 0x870f110e, 0x12834301, 0x83431820, 0x100a2105, 0x0524b582, 0x0d0d0707, 0x83434c82, 0x15200810, 0x100e0f0f, 0x11110c0d, 0x0c0e0709, 0x0e121215, + 0x0d0d0e12, 0x0d150e11, 0x09070d0d, 0x0e0a0d07, 0x0e2ad382, 0x0e0d080d, 0x060c0606, 0x00820e16, 0x080b0a2b, 0x0c120c0e, 0x0d090b0c, 0x06834309, + 0x0e0c0d3a, 0x0d0c0814, 0x0a0c1408, 0x0e08080d, 0x0506100e, 0x120c0808, 0x0f0a1212, 0x14210084, 0x214e820e, 0x0082090d, 0x84121021, 0x120d2200, + 0x21008211, 0x17840e0d, 0x140d0d23, 0x0514440b, 0x82060621, 0x5102835f, 0x0c2205ba, 0x0a450c0e, 0x05814305, 0x830b0e21, 0x06a343f2, 0x12410682, + 0x110e2208, 0x094e6b0e, 0x070c0f27, 0x0c0c0e06, 0x82ae820c, 0x0c082203, 0x22d28306, 0x85100e12, 0x0e122306, 0x5a4f1615, 0x088a4805, 0x820d0821, + 0x82112001, 0x24038743, 0x0c0d1215, 0x291e850d, 0x0d0f0d07, 0x0e121414, 0xaa820b0d, 0x0e060e24, 0x00820e04, 0x0e060f33, 0x10130b12, 0x0f0f0813, + 0x0d0d0e0d, 0x0e091211, 0x2133820f, 0x0c821112, 0x0d130d26, 0x0d091213, 0x0820b082, 0x0c2d2982, 0x0e0b0b0e, 0x0c0c080e, 0x0e0b0c0e, 0x23c5840f, + 0x12120d10, 0x12351a83, 0x0e0d110d, 0x0709090d, 0x0e111716, 0x0e0f110e, 0x0d100d0f, 0x341c8214, 0x1115100e, 0x0e0e1112, 0x0d130e0d, 0x17171011, + 0x0e0f1410, 0x290d8219, 0x0d0d0a0d, 0x0e0e0b10, 0x1c820d0c, 0x0b0e0e28, 0x0c100c0a, 0x83430e0e, 0x0d142605, 0x0b0a0e0d, 0x0583430b, 0x0a226d83, + 0x01831215, 0x0c0d2308, 0x0a18180c, 0x04050404, 0x0b090909, 0x1c120a0b, 0x08080a05, 0x0d08030c, 0x130d120d, 0x1213180c, 0x0082120f, 0xba827f82, + 0x0d091122, 0x0f200082, 0x220e8343, 0x43180c18, 0x18310883, 0x0e040618, 0x1615140d, 0x08130d0f, 0x1216160a, 0x0683430e, 0x0e334d82, 0x0e0f1317, + 0x0d0f1115, 0x0e111215, 0x0b0d1417, 0x82121213, 0x0c0e32ac, 0x0f13191c, 0x13171316, 0x0d0f0b0e, 0x180e0e0e, 0x82168217, 0x0a0c2607, 0x10140d0f, + 0x060b430d, 0x110e102b, 0x1910120e, 0x0e0f1215, 0x21e8820b, 0x01820d0c, 0x10111423, 0x2917830e, 0x0f130f13, 0x10101409, 0xf982100d, 0x100e1122, + 0x09226582, 0x3d820d0f, 0x1122f582, 0x4584110d, 0x410b0d21, 0x5d8207de, 0x3906b845, 0x0a0d0e10, 0x0a0c1214, 0x0c0d0d0e, 0x15150e0e, 0x0c0d1315, + 0x15181417, 0xa5820e11, 0x4d100b21, 0x024908c5, 0x420b830b, 0x09850960, 0x09060922, 0x89064342, 0x82098763, 0x0a83434b, 0x48055147, 0x0020051a, + 0x05220082, 0x05820505, 0x03860320, 0x01001c22, 0x00240982, 0x0300d802, 0x04250983, 0x020400e2, 0x081182bc, 0x8000909c, 0x10000600, 0x7f017e00, + 0xa1019201, 0xf001b001, 0x1902ff01, 0xc702bc02, 0xdd02c902, 0x0103f302, 0x09030303, 0x23030f03, 0x8c038a03, 0xce03a103, 0xd603d203, 0x4f040d04, + 0x86045f04, 0x13059104, 0x3f1e011e, 0xf11e851e, 0x4d1ff91e, 0x15200b20, 0x22201e20, 0x30202620, 0x3a203320, 0x44203c20, 0xa4207f20, 0xac20a720, + 0x13210521, 0x22211621, 0x2e212621, 0x02225e21, 0x0f220622, 0x1a221222, 0x2b221e22, 0x60224822, 0xca256522, 0xfffe04fb, 0xfffffdff, 0x20000000, + 0x9182a000, 0xaf01a022, 0xfa229182, 0x91821802, 0x9182c620, 0x9182d820, 0x91880020, 0x91828420, 0xa3038e24, 0x9182d103, 0x0e040034, 0x60045004, + 0x92048804, 0x3e1e001e, 0xa01e801e, 0x9182f21e, 0x13200026, 0x20201720, 0x32229184, 0x91863920, 0x9182a320, 0x918cab20, 0x91865b20, 0x918a1120, + 0x91826420, 0x91820120, 0xfffc3a08, 0xffe3ffff, 0x00b0ffc2, 0x00b200bf, 0xff49ff61, 0xfe96ff31, 0xfe84fe85, 0xff68ff76, 0xff62ff63, 0xff67005d, + 0xfdd0fd44, 0xfdcefdcf, 0xfe82fecd, 0xfd00007f, 0xfe00009a, 0x0803820c, 0x58e40955, 0x7ae318e4, 0x00007de4, 0x42e20de3, 0xeee1efe1, 0xeae1ede1, + 0xe0e1e1e1, 0xdae1dbe1, 0x99e1d3e1, 0x74e176e1, 0x18e10000, 0x09e10be1, 0xfbe0fee0, 0xc8e0f4e0, 0x22e025e0, 0x19e01ae0, 0x0fe012e0, 0xe7df03e0, + 0xcddfd0df, 0x000069dc, 0x53024f03, 0xaf000100, 0x82602000, 0x82782030, 0x82942003, 0x20028703, 0x9408879c, 0x948e2007, 0x20148f15, 0x0810856c, + 0x0168026f, 0x019d019c, 0x019f019e, 0x01a101a0, 0x01a301a2, 0x01a501a4, 0x02a701a6, 0x016a0269, 0x01eb01ea, 0x01ed01ec, 0x01ef01ee, 0x01f101f0, + 0x01f301f2, 0x02f501f4, 0x01f6016b, 0x029302f7, 0x02950294, 0x02970296, 0x02990298, 0x01f8019a, 0x020002f9, 0x036f0301, 0x03710370, 0x03730372, + 0x02750374, 0x0234021c, 0x025d0235, 0x0206005e, 0x2175830a, 0x07410001, 0x00012210, 0x83018202, 0x0002211c, 0x4141009d, 0x03bc0805, 0x05000400, + 0x07000600, 0x09000800, 0x0b000a00, 0x0d000c00, 0x0f000e00, 0x11001000, 0x13001200, 0x15001400, 0x17001600, 0x19001800, 0x1b001a00, 0x1d001c00, + 0x1f001e00, 0x21002000, 0x23002200, 0x25002400, 0x27002600, 0x29002800, 0x2b002a00, 0x2d002c00, 0x2f002e00, 0x31003000, 0x33003200, 0x35003400, + 0x37003600, 0x39003800, 0x3b003a00, 0x3d003c00, 0x3f003e00, 0x41004000, 0x43004200, 0x45004400, 0x47004600, 0x49004800, 0x4b004a00, 0x4d004c00, + 0x4f004e00, 0x51005000, 0x53005200, 0x55005400, 0x57005600, 0x59005800, 0x5b005a00, 0x5d005c00, 0x5f005e00, 0x61006000, 0xde08e082, 0x00870086, + 0x008b0089, 0x00980093, 0x00a3009e, 0x00a400a2, 0x00a500a6, 0x00a900a7, 0x00aa00ab, 0x00ad00ac, 0x00ae00af, 0x00b100b0, 0x00b500b3, 0x00b600b4, + 0x00b700b8, 0x00bb00bc, 0x02be00bd, 0x0072000d, 0x00650064, 0x000f0269, 0x00a10078, 0x026b0070, 0x00760020, 0x0030026a, 0x029a0088, 0x0273002d, + 0x00320231, 0x02770067, 0x022a0227, 0x028d0129, 0x006c002e, 0x0021027c, 0x00ba00a8, 0x00630081, 0x012c026e, 0x022f0242, 0x006d0028, 0x0010027d, + 0x00820062, 0x01970085, 0x02150114, 0x02030202, 0x020b020a, 0x00070206, 0x003302b9, 0x023a01c1, 0x021c0217, 0x02150214, 0x02350234, 0x0279000e, + 0x020c0208, 0x00840011, 0x0083008c, 0x008a008d, 0x0090008f, 0x008e0091, 0x82960095, 0x00943ce1, 0x009d009c, 0x01f3009b, 0x0052014b, 0x014e0171, + 0x0050014f, 0x0153017a, 0x104c0151, 0xbc02c504, 0x40005708, 0x55585945, 0x51525354, 0x4d4e4f50, 0x494a4b4c, 0x45464748, 0x41424344, 0x3d3e3f40, + 0x393a3b3c, 0x35363738, 0x2e2f3031, 0x27282c2d, 0x23242526, 0x181f2122, 0x0f101114, 0x0a0b0d0e, 0x06070809, 0x02030405, 0x452c0001, 0x20604623, + 0xb06026b0, 0x48232604, 0x0f832d48, 0x82612321, 0x8a612010, 0xb0602210, 0x20128220, 0x21238d46, 0x378320b0, 0x1a826120, 0x4020298c, 0x66202982, + 0x4020298e, 0x40202985, 0x01355388, 0x003c2010, 0x202c2d3c, 0xb0202345, 0x202344cd, 0x515a01b8, 0x260b8258, 0x5923448d, 0x84edb020, 0x844d200b, + 0x2604210b, 0x0d200c84, 0x21210c82, 0x08318221, 0x18452023, 0xb0204468, 0x45206001, 0x687646b0, 0x4460458a, 0xb1012c2d, 0x23430a0b, 0x2d0a6543, + 0x0ab1002c, 0x200a820b, 0x2809820b, 0x702328b0, 0x3e2801b1, 0x28088401, 0x3a452802, 0x080002b1, 0x3644820d, 0x2503b045, 0xb0646145, 0x45585150, + 0x21211b44, 0x492c2d59, 0x82230eb0, 0x21558249, 0x52844300, 0x4306b024, 0x528407b0, 0xb0692022, 0x0037ba82, 0x2cb1208b, 0xb88c8ac0, 0x60620010, + 0x23640c2b, 0x585c6164, 0x826103b0, 0x038a3c3b, 0x878a8a45, 0xb02b11b0, 0xb0442329, 0x18e47a29, 0x65452c2d, 0x44232cb0, 0x832bb045, 0x524b2155, + 0x4b206788, 0x01297289, 0x102505b0, 0xf58a2023, 0x22ce8200, 0x82eced23, 0x20118ac7, 0x24118661, 0xf5102506, 0x081c8300, 0x46234624, 0x468a8a60, + 0x8a462023, 0xb8618a60, 0x236280ff, 0x8a231020, 0x8a0c0cb1, 0x20604570, 0x585000b0, 0x178201b0, 0x1b8bba2c, 0x598c46b0, 0x686010b0, 0xec863a01, + 0x4b52462e, 0x5b5113b0, 0x2502b058, 0x61682046, 0x0282fe82, 0x21233f26, 0x11211b38, 0xf582c082, 0x46250322, 0x1e953f82, 0x07b0002b, 0x4306b043, + 0x212c2d0b, 0x24f88321, 0x0040b88b, 0x230c8262, 0x585180b0, 0x202c0f85, 0xb21b6200, 0x2b2f4000, 0x6002b059, 0xc0201983, 0x15211987, 0x20198355, + 0x88198780, 0x602d083e, 0x2c2d2123, 0x8a58534b, 0x492504b0, 0x69452364, 0x618b40b0, 0xb06280b0, 0xb06a6120, 0x2344230e, 0xf60eb010, 0x8a23211b, + 0x39201112, 0x82a3822f, 0x8220202b, 0x644928b4, 0x05b02069, 0x8306b026, 0x22308b35, 0x832604b0, 0x828a2032, 0x44232104, 0x44833b82, 0xed0eb023, + 0x2560821b, 0x20121126, 0x46822339, 0x45234783, 0x86604523, 0x68762202, 0x30718218, 0xb02c2d20, 0x2c2d2b48, 0x00b04520, 0x40b05854, 0x21088244, + 0x16426140, 0xb1452306, 0x31822f30, 0xb0606126, 0x44696001, 0x5129b182, 0x232fb058, 0x2314b070, 0x05374242, 0x58514b22, 0x45239683, 0x84585369, + 0x27158532, 0x4314b045, 0x636000b0, 0xb0223586, 0x3b82452f, 0x20234525, 0x84608a45, 0x83452008, 0x234b3306, 0x00b95851, 0xb1e0ff33, 0xb31b2034, + 0x00340033, 0x1d824459, 0x16b02c08, 0x03b05843, 0x588a4526, 0x1fb06664, 0xb0641b60, 0x20666020, 0xb0211b58, 0x01b05940, 0x58235961, 0x29b05965, + 0x10234423, 0x82e029b0, 0x2121236e, 0xc2825921, 0x5443022b, 0x23534b58, 0x585a514b, 0x20158238, 0x83198459, 0x224e8318, 0x8e452504, 0x58232246, + 0x3046851b, 0xb02505b0, 0x20082508, 0x031b0258, 0x2504b059, 0x21108210, 0x08824620, 0x3c422322, 0xb0230582, 0x82082507, 0xb0102303, 0x15842506, + 0x1882d182, 0x01582024, 0x2d87001b, 0xb0258682, 0x65452029, 0x83278644, 0x82548c0f, 0x2503230c, 0x4d874843, 0xb0250624, 0x47822503, 0x1b484324, + 0xbd825921, 0x2d220283, 0x1e82022c, 0x62842020, 0x82422321, 0x82082082, 0x48452123, 0x03221a87, 0x1e822025, 0x02b00822, 0x13824682, 0x2c2d2408, + 0x45202345, 0x00b02018, 0x23582050, 0x23592365, 0x40b02068, 0xb0215850, 0x58235940, 0x608a5965, 0x412c2d44, 0x2021060c, 0x410d8245, 0x4b220595, + 0x0d8b5854, 0x240a2c41, 0x00b02c2d, 0x201e8221, 0x27288538, 0x544302b0, 0x2b46b058, 0x84084341, 0x8447200f, 0x076b410f, 0x8e48b021, 0x8449201e, + 0x2b1e820f, 0x23088a20, 0x4b8a534b, 0x23585a51, 0x00205086, 0x4924b982, 0x585300b0, 0x3821a682, 0x2ef68211, 0x46012c2d, 0x23604623, 0x20236146, + 0x43462010, 0x8a3505cf, 0x8a4040b1, 0x68604570, 0x202c2d3a, 0x6449238a, 0x5853238a, 0x262d843c, 0x7d58524b, 0x82597a1b, 0x122a08a7, 0x4b014b00, + 0x2c2d4254, 0x420002b1, 0x880123b1, 0x0140b151, 0x585a5388, 0x000010b9, 0x58548820, 0x020102b2, 0x59426043, 0x1b8224b1, 0x20b95825, 0x84400000, + 0x83022015, 0x83148315, 0x83202022, 0x2049830c, 0x202f8252, 0x252f8408, 0x0040b91b, 0x2a848000, 0x10840420, 0x63230f84, 0x840001b8, 0x82248513, + 0x00012413, 0x8502b863, 0x87102013, 0x82022027, 0x85042013, 0x84402013, 0x82592013, 0x2c2d3800, 0x23681845, 0x2358514b, 0x64204520, 0x585040b0, + 0x8a68597c, 0x82445960, 0x160024c5, 0x822502b0, 0xb0013702, 0x003e2301, 0x3e2302b0, 0x060201b1, 0x230ab00c, 0x0bb04265, 0x17834223, 0x17833f20, + 0x17853f20, 0x17830620, 0x42230731, 0x011601b0, 0x8a7a2c2d, 0xf5234510, 0x82002d18, 0x105c08db, 0xff03f809, 0x9ff78f1f, 0xf37f02f7, 0x01f26001, + 0x40e8ffb8, 0x100ceb2b, 0xdd33df46, 0xdcffde55, 0x01dd3055, 0x550301dd, 0x1ffa03dc, 0x6f01c230, 0x02c0efc0, 0x1f18b6fc, 0x6001b730, 0x02b780b7, + 0x40c0ffb8, 0x130fb738, 0x01b1e746, 0xaf2faf1f, 0x4f03af3f, 0x6faf5faf, 0xaf4003af, 0x3a081582, 0x1f1851ac, 0x9c5f9c1f, 0x019be002, 0x019a2b03, + 0x90019a1f, 0x029aa09a, 0x9a839a73, 0xffb80502, 0x9a1940ea, 0xaf460b09, 0x0297bf97, 0x01962b03, 0x9f01961f, 0x0296af96, 0x8401967c, 0x9685211d, + 0x59081d82, 0x923f922f, 0x4003924f, 0x460f0c92, 0x9f01912f, 0x86870191, 0x7c401f18, 0x03027c50, 0x74207410, 0x02037430, 0x74f20174, 0x016f0a01, + 0xa9016fff, 0x6f97016f, 0x856f7501, 0x6f4b026f, 0x016e0a01, 0xa9016eff, 0x6e97016e, 0x016e4b01, 0x18011a06, 0xff131955, 0xff04071f, 0xfb82061f, + 0x673f2308, 0x2f671f01, 0xff673f67, 0x66400467, 0x66a06650, 0x3f0466b0, 0x650f0165, 0x050265af, 0x64e064a0, 0xe4830302, 0x644f4e08, 0x61460a06, + 0x601f2b5f, 0x5f1f475f, 0xf71f2250, 0x5bec015b, 0x845b5401, 0x5b49025b, 0x015b3b01, 0xef015af9, 0x5a6b015a, 0x015a4b01, 0x06015a3b, 0x55123313, + 0x55030105, 0x55033304, 0x0f01031f, 0xaf033f03, 0x570f0303, 0x572f571f, 0x2b538303, 0x151256b3, 0xe0ffb846, 0x0b0756b3, 0xc0220782, 0x0f8454b3, + 0x40c08708, 0x0b06546d, 0x2b505246, 0x4f503f1f, 0x03505f50, 0xef0148fa, 0x48870148, 0x01486501, 0x3a014856, 0x47fa0148, 0x0147ef01, 0x3b014787, + 0x1c060147, 0x161fff1b, 0x11551533, 0x10550f01, 0x02550f33, 0x01550001, 0xfb550047, 0xfa1f2bfa, 0x0f1f121b, 0x0f1f010f, 0x0f020fcf, 0x020fff0f, + 0x7f006f06, 0xef00af00, 0x00100400, 0x01168001, 0x01b80105, 0x5354b190, 0xb84b2b2b, 0x4b52ff07, 0x5b5006b0, 0xb08801b0, 0x05835325, 0x51402208, + 0x8806b05a, 0x5a5500b0, 0x01b1585b, 0x85598e01, 0x42008d8d, 0x32b04b1d, 0x60b05853, 0xb04b591d, 0x20088264, 0x20088340, 0x2d088280, 0x16b11d10, + 0x73594200, 0x74735e73, 0x00862b75, 0x735f0122, 0x00230088, 0x83012b73, 0x735f2416, 0x82747300, 0x831b8c08, 0x5f2b210f, 0x73233b83, 0x82007473, + 0x852b200d, 0x8474201e, 0x8274203e, 0x82742031, 0x822b2010, 0x732b2207, 0x24288201, 0x5f747473, 0x20078573, 0x27638200, 0x2b002b01, 0x73017473, + 0x2b200583, 0x73220682, 0x02822b2b, 0x822b0121, 0x2b00343d, 0x14065e18, 0x4e000b00, 0x1700b605, 0xb6057500, 0x8c00cd05, 0x4a042900, 0x8f001400, + 0xecff0000, 0x05891683, 0xfe14fe22, 0x03c81083, 0x84000821, 0x00ac2400, 0x82bc00b6, 0x82d52009, 0x2c028303, 0x00830055, 0x009f0097, 0x00e5007d, + 0x220182ae, 0x83710071, 0xba002316, 0x0382c500, 0xa4200a83, 0x8c201d82, 0x00210883, 0x200182c7, 0x8429827d, 0x2404860c, 0x00b900b0, 0x220b848a, + 0x82a6009b, 0x847720c7, 0x2004850b, 0x84068596, 0x00692905, 0x0090006e, 0x00c100b4, 0x002e7987, 0x6f006600, 0x96007800, 0xd500c000, 0x25844701, + 0xfe000024, 0x79823a01, 0x07827820, 0xf6011622, 0x068f1386, 0x1082ee20, 0x88009622, 0x9633ad82, 0x0c018900, 0x18019600, 0x1d030000, 0x5a029400, + 0x83038200, 0x00a82175, 0x0231b184, 0x00d90079, 0x000a01b4, 0x00830100, 0x007f006d, 0x203982a0, 0x20098200, 0x8b078488, 0x84932004, 0x0082221b, + 0x29148989, 0x94fcb605, 0xefff1100, 0xd7828300, 0x6d221683, 0x06837b00, 0xbc240386, 0x5403aa01, 0xbc260b84, 0xd701b600, 0x0b829501, 0x00019630, + 0xb605ae00, 0x6ffebcfe, 0x6f0083fe, 0x1382ad02, 0x85002a21, 0x6fba0801, 0x2901a100, 0x7102e201, 0x4d032903, 0xac037c03, 0x0f04e203, 0x5b044404, + 0xb4049504, 0x3f050605, 0x12069405, 0xcc066506, 0x67073f07, 0x82081108, 0x3d09da08, 0xbb097909, 0x6a0af709, 0xa00b340b, 0x740c170c, 0xec0cb30c, + 0x970d390d, 0x100ecd0d, 0x970e490e, 0x2b0fb70e, 0xd50f7c0f, 0x8b102210, 0x6611fc10, 0xe511a711, 0xee123812, 0x9e134d13, 0xf713d113, 0x3b141714, + 0x70145914, 0x08159514, 0xae156915, 0x6b160e16, 0xa217ce16, 0x1418e317, 0xaf185f18, 0x3919c818, 0xc0197719, 0x831a221a, 0x391bc91a, 0xcf1b8e1b, + 0xd41c271c, 0xce1d651d, 0x751e1b1e, 0xf51e991e, 0x0182481f, 0x1f90bc0b, 0x216a20f4, 0x21742101, 0x225d22a4, 0x234a23a1, 0x240824b4, 0x253d2435, + 0x2523250c, 0x26ba257e, 0x267f260a, 0x27ee26a4, 0x2765272b, 0x28e227ab, 0x287a282a, 0x28c828a3, 0x296d29f7, 0x299c2985, 0x29cb29b4, 0x2a092ae4, + 0x2a852a72, 0x2ab42a9d, 0x2ae52acc, 0x2b142bfd, 0x2b442b2b, 0x2bbf2ba8, 0x2cee2bd7, 0x2c1d2c05, 0x2d9b2c36, 0x2d342d1c, 0x2d632d4b, 0x2d932d7c, + 0x2e782edd, 0x2ea52e8f, 0x2ed12ebb, 0x2f012fe9, 0x2fc42fb1, 0x30f12fdb, 0x301f3007, 0x304e3037, 0x317e3065, 0x3124310e, 0x3151313b, 0x317f3168, + 0x32093298, 0x32993282, 0x32c532af, 0x33f432de, 0x33713359, 0x339f3389, 0x33cc33b6, 0x340034e3, 0x342f3417, 0x345e3446, 0x348e3475, 0x34bd34a5, + 0x34e834d5, 0x356935f0, 0x35963580, 0x35c335ad, 0x36f135da, 0x36263605, 0x3653363d, 0x3680366a, 0x36ae3697, 0x36dd36c5, 0x370637f0, 0x373b371e, + 0x37e7378c, 0x381538fe, 0x3843382c, 0x3871385a, 0x38983884, 0x38c838af, 0x391539f1, 0x3943392c, 0x39693956, 0x39ca39b2, 0x3afa39e7, 0x3a263a0e, + 0x3a513a3e, 0x3bc13a74, 0x3b253b0e, 0x3b4f3b3b, 0x3b793b62, 0x3cb23b90, 0x3c6c3c13, 0x3c993c83, 0x3cc73cb0, 0x3df83ce0, 0x3ef73d69, 0x3e253e0f, + 0x3e4c3e38, 0x3e7c3e64, 0x3ea93e93, 0x3ed63ec0, 0x3ffd3eea, 0x3f2a3f14, 0x3f513f3d, 0x3f7a3f68, 0x403b40d1, 0x40694053, 0x40974081, 0x40c440ae, + 0x41f540dd, 0x4126410e, 0x414c4139, 0x417a4163, 0x41a74191, 0x41d741c0, 0x420442ed, 0x4232421b, 0x427b4248, 0x44c143df, 0x44ae4496, 0x44dc44c5, + 0x450545f2, 0x454e4518, 0x459c4584, 0x46fe45d7, 0x467b464e, 0x470547c2, 0x47a34732, 0x48f647bc, 0x4841481b, 0x48b34882, 0x490f49e7, 0x49304928, + 0x496a4938, 0x49be49b6, 0x4ace49c6, 0x4a454a3d, 0x4a994a4d, 0x4aa94aa1, 0x4bfe4af6, 0x4b314b29, 0x4b814b79, 0x4c184c89, 0x4d8e4c20, 0x4d294d10, + 0x4d584d42, 0x4d844d6e, 0x4eb14d9c, 0x4fa54e23, 0x508c4f04, 0x506e5008, 0x512051ae, 0x5166515e, 0x523052e2, 0x53125372, 0x536e531a, 0x543754c8, + 0x55da5490, 0x569a551c, 0x578f562e, 0x57325719, 0x5761574b, 0x57955777, 0x582858ae, 0x58aa583f, 0x58ba58b2, 0x59db58d3, 0x5ad15972, 0x5a465a2f, + 0x5aa65a5d, 0x5b015bae, 0x5b115b09, 0x5c8c5b84, 0x5c9c5c19, 0x5d135dfb, 0x5dbf5d5b, 0x5dcf5dc7, 0x5ddf5dd7, 0x5def5de7, 0x5e675ef7, 0x5e775e6f, + 0x5ff35eac, 0x5f915f3b, 0x603d60e7, 0x61ee608b, 0x61e26165, 0x626562ea, 0x63ff62d7, 0x636d6365, 0x646064e2, 0x64bb64a4, 0x654065f5, 0x65eb65a5, + 0x661c66f3, 0x662c6624, 0x6673666b, 0x67f866f0, 0x67726732, 0x681668bd, 0x69d56873, 0x6988691f, 0x6a536afc, 0x6ada6a6b, 0x6b4c6bf0, 0x6b5c6b54, + 0x6b7d6b75, 0x6c546cf5, 0x6cc46cae, 0x6d1f6dda, 0x6d7f6d54, 0x6dae6d97, 0x6ddc6dc5, 0x6e106ef6, 0x6e406e28, 0x6e766e5b, 0x6eba6e91, 0x6f116fe5, + 0x6f726f44, 0x702a70ce, 0x71ef7094, 0x72b87175, 0x732a735d, 0x733a7332, 0x73a2736d, 0x74d273b4, 0x74707415, 0x768175f7, 0x77c37615, 0x78f77741, + 0x7886787e, 0x791279e9, 0x79707941, 0x7a157a9b, 0x7a917a62, 0x7b017bdb, 0x7cc97b2d, 0x7da37c1a, 0x7d607d1b, 0x7ef07da4, 0x7e2d7e0f, 0x7ea37e70, + 0x7fee7ec9, 0x7f567f13, 0x80fc7f9f, 0x818a805b, 0x99918127, 0x82820a01, 0x834e83db, 0x8462835a, 0x8588840b, 0x853b8524, 0x85668552, 0x85a7857a, + 0x864786f4, 0x87a08674, 0x877c8715, 0x883e88db, 0x88888863, 0x890e89cf, 0x8946892e, 0x8975895e, 0x8a298a8c, 0x8b658be4, 0x8c4b8cda, 0x8d408dbc, + 0x8f6b8ed3, 0x90b88f17, 0x910a915c, 0x93a492ba, 0x939b9393, 0x941094a3, 0x95d09470, 0x95529538, 0x962c966c, 0x97c89642, 0x994a9846, 0x9af99933, + 0x9b489be6, 0x9c569c97, 0x9dde9c9b, 0x9e3e9d0d, 0x9fbb9e1d, 0xa0e99f61, 0xa1a8a044, 0xa2b2a124, 0xa261a211, 0xa333a3cf, 0xa486a4d1, 0xa5b2a49c, + 0xa591a526, 0xa672a6ff, 0xa744a7d8, 0xa8e0a78e, 0xa887a82e, 0xa91ea9d0, 0xaafca989, 0xab57abad, 0xab7fab6b, 0xac1dacce, 0xac88ac25, 0xae68adf9, + 0xafcfae0f, 0xaf94af36, 0xb04fb0f3, 0xb119b1b6, 0xb2adb167, 0xb3bfb22f, 0xb3e6b34c, 0xb405b4ee, 0xb48ab41c, 0xb56cb5f9, 0xb616b6c4, 0xb7beb677, + 0xb771b717, 0xb841b8bd, 0xb8c9b8c1, 0xb9f6b8e0, 0xb927b90f, 0xb937b92f, 0xb964b94e, 0xba28baca, 0xba5bba42, 0xba8eba74, 0xbbc2baa8, 0xbb94bb2c, + 0xbbc3bbac, 0xbcf6bbdd, 0xbc28bc0f, 0xbc38bc30, 0xbc69bc51, 0xbc9dbc83, 0xbccbbcb5, 0xbdfdbce5, 0xbd2ebd16, 0xbd5fbd47, 0xbde1bda6, 0xbe13befa, + 0xbe37be25, 0xbe66be50, 0xbf9abfe7, 0xc0ecbfe4, 0xc1f2c066, 0xc21dc28b, 0xc328c3a2, 0xc428c4bb, 0xc5ebc484, 0xc6cbc54f, 0xc787c626, 0xc789c705, + 0xc7b1c79d, 0xc7dfc7c8, 0xc80dc8f6, 0xc840c827, 0xc873c85a, 0xc8a6c88d, 0xc8d9c8c0, 0xc91ec9fd, 0xc950c937, 0xc982c969, 0xc9b4c99b, 0xcae6c9cd, + 0xca29ca08, 0xca57ca40, 0xca85ca6e, 0xcab3ca9d, 0xcbe6cacd, 0xcb19cb00, 0xcb4ccb33, 0xcb7fcb66, 0xcbc4cba3, 0xccf2cbdb, 0xcc22cc0a, 0xcc51cc39, + 0xcc7fcc68, 0xccb2cc98, 0xcce5cccb, 0xcd18cdfe, 0xcd4bcd31, 0xcd91cd6d, 0xcdbfcda8, 0xceeecdd7, 0xce1ece06, 0xce4dce36, 0xce7dce65, 0xceacce94, + 0xcedacec3, 0xcf07cff2, 0xcf34cf1f, 0xcf60cf4a, 0xcf8dcf78, 0xcfbdcfa5, 0xd0ebcfd5, 0xd019d002, 0xd046d030, 0xd09dd05a, 0xd14bd1f6, 0xd22fd2ba, + 0xd3c8d27a, 0xd392d329, 0xd4e7d3bf, 0x0000000f, 0x00c10002, 0x050a0400, 0x000300b6, 0x402b0007, 0x0202050b, 0x03700409, 0xe54a0380, 0x06092705, + 0x04034809, 0x1e820703, 0x2f323f33, 0x2b2f0133, 0x3311335d, 0x3031332f, 0x21112113, 0x30038237, 0xfc4903c1, 0x790268b7, 0xb60587fd, 0x04684afa, + 0x245382e6, 0x01e3ff93, 0x08538491, 0x3a001730, 0xff0100b9, 0x0a1340f0, 0x19104814, 0x19901980, 0x030419a0, 0x02049a0e, 0xffb80402, 0x070a40c0, + 0x0104480a, 0x02139b09, 0x2f3f0003, 0x6182cef5, 0x2f334708, 0x5d32e110, 0x012b3031, 0x03330323, 0x33023e34, 0x15021e32, 0x23020e14, 0x01022e22, + 0xdf337950, 0x2e2214f0, 0x222f1a1b, 0x2f221414, 0x222e1b1a, 0x049e0114, 0x26b9fa18, 0x0f0f2135, 0x25263521, 0x10102235, 0xdd833522, 0xa6038524, + 0x8984b202, 0x3700073e, 0x98042340, 0xd0090707, 0x0209e009, 0x096f092f, 0x0003097f, 0x10030098, 0xf003e003, 0x0624e482, 0x03070202, 0x33208582, + 0x0130df82, 0x5de15d2f, 0x2f39125d, 0x013031e1, 0x21032303, 0x012f0382, 0x2973294a, 0x72292d02, 0xfdb60529, 0x831002f0, 0x24638303, 0x04000033, + 0x086382f8, 0x1f001b70, 0x58409900, 0x1a1a0303, 0x1d1e1618, 0x17060407, 0x00190617, 0x05040401, 0x211818b1, 0x081c1f15, 0x14140904, 0x0b0e0f12, + 0x0ab11304, 0x10011050, 0x090c0c10, 0x0a010a50, 0x0d48011c, 0x0cae0d01, 0x1f0c0408, 0x11ae1000, 0x3f111519, 0xdf114f11, 0x110c0311, 0x1705110c, + 0x050a0613, 0x3f332f00, 0x39391233, 0x115d2f2f, 0xe1103333, 0x06843232, 0x32325d22, 0xb383ac82, 0x105d2f2d, 0x323917e4, 0x39171211, 0x832f3311, + 0x8633200a, 0x2f33210b, 0x2121c583, 0x20c58215, 0x23038413, 0x21132135, 0x33230382, 0x82132103, 0x01152103, 0x31080e82, 0x013fd703, 0x52cdfe18, + 0xddfe5493, 0xfe4e9052, 0x411d01fe, 0x2b01eefe, 0x01529352, 0x54905425, 0xebfc0601, 0xfe402301, 0xfe7d03dd, 0x54fe89b8, 0x0383ac01, 0x48018927, + 0xfeb00189, 0x08038350, 0xb8fe8980, 0x03004801, 0x89ff7b00, 0x1206d903, 0x36002d00, 0xb4003f00, 0x2f343340, 0x2f290129, 0x06210121, 0x013c2f70, + 0x011e2f3c, 0x0720131e, 0x0d070701, 0x0f246e2e, 0x02001f00, 0x000100ff, 0x00070100, 0x370d0d41, 0x0119e06e, 0xc0ffb819, 0x0b083040, 0x14331948, + 0x3c3c2914, 0x08372e13, 0x2173283d, 0x401f2125, 0x1f48110e, 0x21501e1f, 0x1f210f01, 0x21080221, 0x08731334, 0x0606080e, 0x34820805, 0x0d0ab333, + 0x2f000848, 0x2f33332b, 0xe1103311, 0x5d5e2f32, 0x200b825d, 0x320c842b, 0x12393912, 0x33331139, 0x2f013311, 0x33e15d2b, 0x82d6102f, 0x3271251e, + 0x2f3911e1, 0x5d252582, 0x32e15d33, 0x0801825d, 0x01303128, 0x07020e14, 0x22352315, 0x3527022e, 0x1133031e, 0x3435032e, 0x3537023e, 0x16161533, + 0x26260717, 0x031e1127, 0x1d823407, 0x3611d808, 0x1e140136, 0x06111702, 0x32d90306, 0x8a54855d, 0x54606632, 0x60572120, 0x83592f65, 0x5b312a56, + 0x648a4f81, 0x384243a9, 0x87584a8c, 0x14b02e5b, 0x5d33462b, 0x1112fe5b, 0x59314228, 0x46be0153, 0x0c375472, 0x1209dde6, 0x10ac111a, 0x01111a21, + 0x55421eb2, 0x6f434a6e, 0xb4093553, 0x1f2a05b0, 0x06291991, 0x421f5afe, 0x21486b53, 0x12262d37, 0x620e8bfe, 0x3924a302, 0x0111262f, 0x00591071, + 0x66000500, 0x3306ecff, 0x0900cb05, 0x27001d00, 0x3f003b00, 0x3cb25d00, 0xffb83e10, 0x3c3340f0, 0x283e3c3e, 0x32b41e14, 0x28b423b5, 0x01410f41, + 0xb50ab405, 0x1410b400, 0x14301420, 0x063f1403, 0xb625183e, 0xb621b737, 0xb603192d, 0xb607b70f, 0x3f000719, 0x84e1f4e1, 0x013f2303, 0x0b825d2f, + 0xde105d22, 0x11350582, 0x2f393912, 0x3138382f, 0x16141330, 0x10113233, 0x05062223, 0x05964314, 0xa6433520, 0x99012006, 0x23013d19, 0x5047fa01, + 0x47509c9c, 0x4a24c701, 0x70494f73, 0x4923264c, 0x714b4e71, 0xac01274d, 0xc6211986, 0x22198223, 0x864b704a, 0x4c270819, 0xfc00ff27, 0x2c039ed5, + 0xa5a50204, 0x48014a01, 0xac6ca5a3, 0x763f3f76, 0xaa6c6cac, 0x753e3e75, 0xa54afdaa, 0x844901a4, 0x83ab2018, 0x87ab2018, 0x03560818, 0x054afa92, + 0x030000b6, 0xecff6d00, 0xcd057d05, 0x21001100, 0x80005300, 0x18274d40, 0x49044a17, 0x0a48492c, 0x47413647, 0x01422042, 0x42364236, 0x3c3b051d, + 0x00480447, 0x102c0047, 0x2c08022c, 0x4820222c, 0x1d554801, 0x20221048, 0x41220222, 0x51123141, 0x3b84164f, 0x3c470f32, 0x3104053b, 0x500f1549, + 0xe12f0031, 0x3917123f, 0x3f2b0282, 0x2f3911e1, 0xe15d2f01, 0x825dc610, 0x5d5e2309, 0x178211e1, 0x2f39392b, 0xe1105d2f, 0x3311e110, 0x38248211, + 0x14013031, 0x3e17021e, 0x2e343503, 0x06222302, 0x023e3213, 0x030e0137, 0x21158215, 0x0b823425, 0x44056942, 0x620807f2, 0x033e0107, 0x030e3337, + 0x27230107, 0x2223030e, 0xa601022e, 0x24342110, 0x1c38563b, 0x2a422f19, 0x3a876456, 0x20485462, 0x50347dfe, 0x42231c37, 0x287dfe60, 0x1f476f4d, + 0x321c2d3c, 0x53588a5e, 0x32305b83, 0x013c6d54, 0x222b1b60, 0x0fb80a1b, 0x27413529, 0xa8e11501, 0x7c6c6031, 0x73a7694e, 0x828d043d, 0x436608d9, + 0x403e2325, 0x3d242946, 0xfb59192c, 0x362817af, 0x2197011f, 0x3855483f, 0x24415b36, 0x647a4ef0, 0x4d242a56, 0x4b396357, 0x2b2b5377, 0x404b7753, + 0x244f5d6d, 0x3c1d8cfe, 0x422f4e44, 0x2955626f, 0x2dacdbfe, 0x351b3147, 0x01009567, 0xa6038500, 0xb6054a01, 0x2a000300, 0x05c01c40, 0x05e005d0, + 0x6f052f03, 0x6c450205, 0x0202270b, 0x3f000303, 0x68452f33, 0x05644505, 0x294a0123, 0x065b4573, 0x47820020, 0xbcfe5224, 0x47822b02, 0x1a00132a, + 0x0e060d40, 0x3ff009f2, 0x0e261582, 0x00f805f9, 0x37833f3f, 0x32e43808, 0x34133031, 0x3337023e, 0x14150206, 0x2317021e, 0x2452032e, 0xac4e714a, + 0x4725918c, 0x4eaa456a, 0x02244a71, 0xe5f37d31, 0xfec15dd3, 0xec77f432, 0x5a5ed4e2, 0x83f0e1ce, 0x823d205d, 0x8417205d, 0x401c225d, 0x225d820e, + 0x82b0f00b, 0x0e15245d, 0x83f905f8, 0xde10235e, 0x5f83e15d, 0x0e14013f, 0x3e230702, 0x02343503, 0x031e3327, 0x4b241702, 0x45aa4e71, 0x9024486a, + 0x714eac8d, 0x315f824b, 0xcee1f07c, 0xe2d45e5a, 0x01f477ec, 0xd35dc1ce, 0xbd84f3e5, 0x0477022e, 0x00140614, 0x4024000e, 0x01101f15, 0x0e39fc82, + 0x0e900e80, 0x1f0e0803, 0x06060106, 0x3f000000, 0x015d2f32, 0xe55d5e2f, 0x08ff835d, 0x05172537, 0x03030713, 0x37251327, 0x98020305, 0x1a8d012b, + 0xb2f586fe, 0xf2b89eb0, 0x011d89fe, 0x14062b87, 0xc16f77fe, 0x60bafe1c, 0x9afe6601, 0x1c460160, 0x89016fc1, 0x08b58200, 0x06016630, 0xa2040204, + 0x29000b00, 0x0d101840, 0xaa090601, 0x0100ef03, 0x00600020, 0x000300a0, 0x06ad0009, 0x3f00b303, 0x0132e133, 0x325d5d2f, 0x708332e1, 0x35212008, + 0x11331121, 0x11211521, 0xfee90123, 0x9683017d, 0x7dfe8301, 0x96870296, 0x7bfe8501, 0x837ffe96, 0xfe3f3059, 0x007901f8, 0x000c00ee, 0xcf144038, + 0x8210010e, 0xa02108c1, 0x0c1b030e, 0x0c020c2b, 0x07069701, 0x40c0ffb8, 0x4814100d, 0x1001075f, 0x06070107, 0x2f000c9c, 0x256583ed, 0x32ed332b, + 0x68825d5d, 0x17252208, 0x2307030e, 0x0137033e, 0x270e0f6a, 0x8a19332f, 0x161b1d0f, 0x3617ee08, 0x387b7c7a, 0x7d83843d, 0x26698335, 0x02d10152, + 0x82790242, 0x401525ae, 0x40050209, 0x0025d682, 0x2f0001b9, 0x2e4c82e1, 0x3031ce10, 0x15213513, 0x01f00152, 0x82a8a8d1, 0x9327081a, 0x9101e3ff, + 0x1300fa00, 0x1b403500, 0x15901580, 0x110315a0, 0x960a0115, 0x00d000c0, 0x44003402, 0x74006400, 0x82000400, 0x07b6279e, 0x0500480a, 0x97840f9b, + 0x5d5d2b23, 0x209483ed, 0x0e564837, 0x51489320, 0x486f200f, 0x01280f4c, 0x00001400, 0xb605e702, 0x1e26a182, 0xb80201b1, 0xa782f0ff, 0x10000325, + 0x82010500, 0x2f3f3812, 0x38330111, 0x33382f32, 0x01013031, 0xe7020123, 0x02b3e0fd, 0x44b60521, 0x02280585, 0xecff6200, 0xcd050804, 0x273db182, + 0x15402600, 0x29006f1e, 0x14012910, 0x010a206f, 0x0f73230a, 0x05731907, 0xe13f0019, 0x24ef833f, 0xde105de1, 0x394782e1, 0x06060214, 0x26262223, + 0x12343502, 0x32333636, 0x05121616, 0x33021e14, 0x11823e32, 0x022e5308, 0x020e2223, 0x71330804, 0xaf767fb2, 0x6f333973, 0xb0777eb1, 0x13fd3a74, + 0x4d6b421e, 0x1f456c4d, 0x4d6c451f, 0x1e426b4d, 0xfeb1dd02, 0x6666c2e8, 0xb11801c2, 0xc11801b1, 0xfec16566, 0xe096b2e8, 0x944a4b95, 0xe09697e1, + 0x944a4a94, 0x010000e0, 0xe182b200, 0xe182c720, 0x00106608, 0x40214035, 0x010f0112, 0x6e000e0e, 0x01ff01bf, 0x01017e02, 0x01100100, 0x01400120, + 0x0d010604, 0x1800060f, 0xcd3f3f00, 0x5d5e2f01, 0x33e15d5d, 0x5d33112f, 0x23213031, 0x023e3411, 0x07030e37, 0x33012707, 0x01b0c702, 0x11010303, + 0x151e1b1a, 0x7f016094, 0x2b910396, 0x22596162, 0x1b181a12, 0x017b7912, 0x0871822b, 0x0000602b, 0xcb05f003, 0x3c002300, 0x08232040, 0x251b1b6f, + 0x22012510, 0x0121016f, 0x01201111, 0x22080101, 0x16730d10, 0x74220207, 0x29708201, 0xe13f32e1, 0x01391233, 0x71835d2f, 0x5ded1027, 0xe12f3311, + 0x22788233, 0x45013521, 0x07230852, 0x45033e27, 0x4c08093f, 0xf0032115, 0x5e0170fc, 0x2c53764b, 0x35563f22, 0x6645995f, 0x766a5c28, 0x6c9b6041, + 0x815d353b, 0x02e7fe4b, 0x7d019cb1, 0x81808651, 0x3f5a3b4c, 0x773c4d20, 0x1b2e3f24, 0x5b916536, 0x96959a55, 0x08d5fe51, 0x00010000, 0x03ecff52, + 0x08a982ee, 0x5d003940, 0x30210b40, 0x1a123021, 0x6f27096f, 0xc0ffb800, 0x17142840, 0x09000048, 0x013b203b, 0x1201124f, 0xab732006, 0x21790121, + 0x01210b01, 0x15212108, 0x35732c2f, 0x12731507, 0x3f00190e, 0xc184e133, 0x83053641, 0x105d2dc8, 0x2b2f32ce, 0x11e110e1, 0x2f2f3939, 0x21077a48, + 0xf04a1616, 0x27262405, 0x41161635, 0x232108ef, 0x210a8835, 0xe6870622, 0xc103a608, 0x4774532e, 0x8441b8b1, 0xc16d8aca, 0x5dcb5755, 0x2957865c, + 0x598d6235, 0x7e518585, 0x42242c55, 0xa36b385c, 0x5d265c4a, 0x6c467d6e, 0x04386ea3, 0x58784960, 0x16060c39, 0xa06091b5, 0x2d224074, 0x28322eaa, + 0x44436c4a, 0x971e3f61, 0x3d664a28, 0x1e395234, 0x1f7d3643, 0x36182936, 0x02008561, 0x00001700, 0xbe053f04, 0x18000a00, 0x2c404e00, 0x01005609, + 0x6e020000, 0x070b0c11, 0x03010320, 0x1a101a03, 0x87187701, 0x5f180218, 0x09050105, 0x01741806, 0x11020505, 0x18020607, 0x333f3f00, 0x332f3912, + 0x05a64ae1, 0x825d5d21, 0x335d210c, 0xe1240082, 0x325d2f32, 0x4608ee82, 0x11231123, 0x33013521, 0x11213311, 0x37023e34, 0x07030e23, 0xd53f0401, + 0x025dfdb0, 0xfed5bc97, 0x0504037b, 0x15070901, 0xfe0b1a19, 0xfe480165, 0x9f4801b8, 0x30fcd703, 0x7b386401, 0x14226675, 0x102e3131, 0x8200a0fd, + 0xff832891, 0x05f603ec, 0x822a00b6, 0x182e08a3, 0x056f1a26, 0x012c102c, 0x28242427, 0x59012368, 0x23230123, 0x0f010ff0, 0x40c0ffb8, 0x480b0812, + 0x00731d0f, 0x74271500, 0x73150624, 0x98410a10, 0x279b8206, 0x2b2f01e1, 0x5d2f335d, 0x1126a382, 0xde105d33, 0xa38233e1, 0x230a7f4c, 0x031e3527, + 0x08058441, 0x22232695, 0x2707020e, 0x21152113, 0x02363603, 0x7fab6321, 0xc5864448, 0x5b633380, 0x59212152, 0x4f2a6362, 0xb02e567c, 0x3f3f1ba8, + 0x375a1539, 0xecfdb202, 0x03692027, 0xa06c3781, 0x7eb67269, 0x1e130a43, 0x2417ac14, 0x4e250d18, 0x978f5176, 0x04090805, 0xa6b00239, 0x0e065dfe, + 0x00020000, 0x04ecff71, 0x00cb050a, 0x003f002b, 0x31204037, 0x41220c6e, 0x17014110, 0x00006f3b, 0x00200010, 0x75360003, 0x2c071d1d, 0x10192773, + 0x00070773, 0xe13fe13f, 0x822f3911, 0xe15d22bf, 0x28b88232, 0x3031e132, 0x043e3413, 0x22bc8233, 0x83261517, 0x070422ad, 0x09194333, 0x2e222324, + 0x48440102, 0x1588080a, 0x71021e14, 0x8e5c3515, 0x2e1385c6, 0x23112b2f, 0x895a2b58, 0x142a4364, 0x39140c03, 0x5f3b5f4c, 0x3e3b6c9a, 0x6466a474, + 0x014a80af, 0x48633cdb, 0x63422127, 0x4e6f4342, 0x6e49252b, 0xd0697102, 0x4579a4bf, 0x05070502, 0x2b0c0c9b, 0x94836c4e, 0x2d3f2450, 0xa5723b1a, + 0x7fb6726a, 0xf2a04e44, 0x5329b9fe, 0x6f46577f, 0x4b2f2a4e, 0x85433060, 0x0100436a, 0x00005a00, 0xb6050604, 0x2b000600, 0xb80006b1, 0x1140f0ff, + 0x012afc82, 0x08100805, 0x02050201, 0x67440374, 0x32e12705, 0x105d2f01, 0xe08232ce, 0x33388008, 0x01213031, 0x15213521, 0x02190101, 0x030efd33, + 0x05d5fdac, 0xfa91a610, 0x000300db, 0x04ecff6a, 0x00cd0500, 0x003a0027, 0x4080004a, 0x32231e53, 0x280a0f6e, 0x05c36e48, 0xb50205d3, 0x05050105, + 0x4c104c0f, 0x196e2801, 0x23d56e3e, 0x0123cc01, 0x230123ba, 0x20191023, 0x0a190219, 0x9838681e, 0x38590238, 0x38382801, 0x03384838, 0x01439338, + 0x43564326, 0x00434302, 0x1914732d, 0x4100733b, 0x5d27086a, 0x5d5dc15d, 0x8239395d, 0x2f33219a, 0xe1220982, 0xa383e110, 0xe1260a82, 0xe1103912, + 0x39423911, 0x1e072209, 0x05cf4303, 0x35022e22, 0x2009e449, 0x0acb4503, 0x06272727, 0x06220106, 0x071c4a15, 0x0226b708, 0x71955435, 0x60462842, + 0x576f3a38, 0xa9794335, 0x75ab6e66, 0x684c2d3d, 0x3f56313a, 0x95724325, 0x684420c7, 0x486b4648, 0x66492724, 0x807e1e3f, 0x7d6a1601, 0x33573e23, + 0x243f5530, 0x2ccd057e, 0x43588458, 0x1c45576c, 0x765f4c1f, 0x68955c49, 0x92653638, 0x60784b5c, 0x491f1c4a, 0x57426d5a, 0xfb2c5883, 0x3f5935a6, + 0x5c412323, 0x48543438, 0x3c0e1f40, 0x6a54039b, 0x40523965, 0x34161833, 0x65365442, 0x0200006a, 0xecff6a00, 0xcb050404, 0x3d002900, 0x1e403500, + 0x006f1539, 0x013f103f, 0x100c6e2f, 0x02202020, 0x1b753420, 0x732a071b, 0x75100725, 0x87421a07, 0xe133300b, 0xe1de105d, 0x01303132, 0x23040e14, + 0x44022e22, 0x372107cc, 0x05cb4a23, 0x2208354c, 0x83020e22, 0x055843f9, 0x04022e23, 0x07884204, 0x112c2e3e, 0x872b5823, 0x052b66ae, 0x4c38140d, + 0x9a5f3b60, 0x733f3b6c, 0xae6566a5, 0x25fe4a80, 0x3c078642, 0x2b4e6e44, 0x036e4925, 0xbed16946, 0x024578a5, 0x9c050605, 0xa15e0c0d, 0x3e2477d6, + 0x0584422e, 0x447fb729, 0x01f3a04e, 0x42542847, 0x6b210b84, 0x3be18342, 0x01e3ff93, 0x00660491, 0x00270013, 0x101c403e, 0x90298029, 0x0429a029, + 0x14960a1e, 0x29115048, 0x0a070b40, 0x9b230048, 0x55481019, 0xed3f2c05, 0x5d2b2f01, 0x32e5335d, 0x4830315d, 0x11200f58, 0x481f6848, 0x03361f78, + 0x21352791, 0x35210e0e, 0x22342527, 0x34221010, 0x3f000200, 0xaf84f8fe, 0x000c2b08, 0x40610020, 0x8022102f, 0xa0229022, 0x96170422, 0x0dd00dc0, + 0x740d6402, 0x0d50020d, 0x010d4401, 0x1f010d3b, 0x020d2f0d, 0xb2490d0d, 0x4911200d, 0x1c2309b2, 0x4910129b, 0xc88305b6, 0x2b5d5d29, 0x5d32ed33, + 0x845d2f33, 0x49e52000, 0x8b510bc0, 0x0cd04910, 0xc98f1120, 0x210be149, 0xc58fed02, 0x00014108, 0x04ee0066, 0x00dd0402, 0x404e0006, 0x40080030, + 0x01400108, 0x01020101, 0x06030505, 0x007f006f, 0x01003002, 0x20040000, 0x03500103, 0x03800370, 0x03f003d0, 0x01033f05, 0x06010300, 0x5e2f0003, + 0x7121a082, 0x28a88333, 0x3d391232, 0x0133332f, 0x08b48218, 0x31ce104e, 0x35012530, 0x01011501, 0x64fc0204, 0x21fd9c03, 0x01eedf02, 0xe10166a8, + 0xfe94fea0, 0x000200be, 0x04ba0166, 0x00e90302, 0x00070003, 0x073d405c, 0x09400902, 0x00c60401, 0x0100bb01, 0x860100a9, 0x007b0100, 0x01006801, + 0x39010042, 0x04398182, 0x2f051fad, 0x057f0205, 0x10050001, 0x05060205, 0xf0ad0005, 0x010f0101, 0x20ab826f, 0x21728200, 0x8b8333e1, 0x01e17122, + 0x26063341, 0x5d335d5d, 0x4a32ce10, 0x012605b2, 0x66152135, 0x89839c03, 0x95540328, 0x9666fe95, 0x54820096, 0x0520fb8c, 0x062efb84, 0x04050601, + 0x00030101, 0x067f066f, 0x0e823002, 0xa1020621, 0x8e3320fb, 0x011321fb, 0x6624fc84, 0x20fde002, 0x012b7683, 0x0142018f, 0x1ffea06c, 0x8258fe66, + 0x253108fb, 0x2503e3ff, 0x2700cb05, 0x3e003b00, 0x9a322140, 0x46272828, 0x0b140000, 0x2f3d1c46, 0x0b14013d, 0x01000f17, 0x2d000006, 0x1013379b, + 0x00041751, 0x21dd823f, 0xe08232e5, 0x82391221, 0xde1025df, 0x2f3911e1, 0xe1281282, 0x35013031, 0x37023e34, 0x210a7549, 0x75493636, 0x030e2308, + 0x2d421515, 0x19200810, 0x3242270f, 0x152b4430, 0x3855391e, 0x3f469653, 0x5d61bc51, 0x1b386895, 0x34365036, 0xbb0e2642, 0x080f4042, 0x259e0126, + 0x4d505c39, 0x4543292a, 0x4f30354f, 0x22341f39, 0x333b2a91, 0x43578b60, 0x2f545a69, 0x423f432d, 0xd1fe122c, 0x080fa94b, 0x6d000271, 0x81064aff, + 0x5700b605, 0x6f006800, 0x17583f40, 0x171f2760, 0x01277f01, 0x46462717, 0x4e031727, 0x01002031, 0x6a406a00, 0x4e403b01, 0x0c2c4e01, 0x1207125b, + 0x120f1c64, 0x12bf121f, 0x1c000603, 0x1c120701, 0x36401c12, 0x45400353, 0x332f0049, 0x12c13fc1, 0x2f2f3939, 0x5d5e5d5e, 0x3311c110, 0x3232c110, + 0xc15d2f01, 0x71de105d, 0x821711c1, 0x5d2f2119, 0x10211882, 0x0aeb44c1, 0x250ee344, 0x06060317, 0xe5441414, 0x2223220b, 0x05b74e04, 0x3e32332a, + 0x06153702, 0x24222306, 0x2805ea4b, 0x04323324, 0x14011216, 0x08198416, 0x262637c5, 0x020e2223, 0x25138106, 0x3a614c39, 0x2134492d, 0x36120406, + 0x4d355947, 0x3b2b5277, 0x2d629e6f, 0x1745525a, 0x15010117, 0x2e172b22, 0x56182f46, 0xa97bd198, 0x5aaffefe, 0x93e3994f, 0x646f773d, 0x82d8562b, + 0xc3e7feb3, 0x01db7666, 0x019cc137, 0xfc6abf06, 0x37556515, 0x041a324e, 0x2a4d1c0e, 0x1c3f654a, 0x7d3edb02, 0x29486171, 0x2341321e, 0x1c314225, + 0x568e6538, 0x447aa865, 0x08110e08, 0x1b1660fe, 0x35030810, 0x3d0f2844, 0x8e4e8c68, 0x6f4f98dd, 0xa2effec7, 0x52a0ea97, 0x111f180e, 0x662c268d, + 0xb31901c3, 0xee4501bc, 0xfebd6588, 0x85d5fef1, 0x73532d77, 0x0d08fd45, 0x00785e3a, 0x82000200, 0x047e0800, 0x00bc05dd, 0x00140007, 0x06244084, + 0x01024605, 0x02011446, 0x08490314, 0x01014901, 0x0e000108, 0x0000030e, 0x80010710, 0xd0079007, 0xb8070307, 0x1840c0ff, 0x07480a06, 0x16070710, + 0x161f160f, 0x168f162f, 0x16df169f, 0x04030706, 0x40f0ffb8, 0x5f020411, 0x0e0a200e, 0x14050e48, 0x04030514, 0x3f001200, 0x2f393f32, 0xe12b3912, + 0x33382f01, 0x33115d5e, 0x5d2b382f, 0x12113371, 0x16823d39, 0x5d5d3924, 0x04823912, 0x33339708, 0x03213031, 0x01230321, 0x03010133, 0x0e27032e, + 0x04030703, 0xdffda01f, 0x1902bca2, 0xfe1a02aa, 0x11069467, 0x07081212, 0x06111212, 0xfec50191, 0xfabc053b, 0x016a0244, 0x3c3412a8, 0x421f1f41, + 0xfe11333d, 0x03000058, 0x0000c700, 0xb6058704, 0x22001700, 0x62002f00, 0x1e0b3e40, 0x0106055a, 0x06f506e5, 0x0106d602, 0x2a240606, 0x8011705b, + 0x67110211, 0x8f317f31, 0x31100231, 0x5a241801, 0x0b306417, 0x18796023, 0x01180b01, 0x00181808, 0x12176024, 0x4f826022, 0x3b06c749, 0xe15d5d5e, + 0xf6100139, 0x5d5d32e1, 0xe15df610, 0x5d2f3912, 0x32e1715d, 0x21133031, 0x21068e4a, 0x55481507, 0x13212106, 0x27053847, 0x11232326, 0x3e322111, + 0x08051c4e, 0x8f01c775, 0x4283c380, 0x456d4a27, 0x345a7945, 0x6fb07b41, 0xf4ba1bfe, 0x1f467254, 0x01dfa69a, 0x4977580a, 0x7c4b2120, 0x27b6055c, + 0x3e678d57, 0x0937526c, 0x4f2d0c0a, 0x9d645678, 0x4a033a6d, 0x3b593b1e, 0x97fd6878, 0x4828f0fd, 0x5e383d65, 0x00002543, 0xff7d0001, 0x059804ec, + 0x002300cb, 0xaf14404c, 0x400e010e, 0x0e481815, 0x20ba180e, 0x70206001, 0x41200220, 0x203807b3, 0x25af2520, 0x185b0501, 0x00212466, 0x0d041d5f, + 0x13135f0a, 0x33e13f00, 0xd6830282, 0x33115d26, 0x5d5d2b2f, 0x2b24d682, 0x0130315d, 0x24080048, 0x0e153736, 0x0cf34e03, 0x07176a08, 0x19032626, + 0x437bae6b, 0x76b0763b, 0x274ea059, 0x3b61554e, 0x4c9df0a4, 0xa2faa957, 0x4e4fc46c, 0x2705943f, 0x89da9851, 0x4e96db8d, 0x0fa21723, 0x6c070e17, + 0xa91601c6, 0xc61401a6, 0x9c2a2c6e, 0x02002e20, 0x0000c700, 0xb605fc04, 0x17000c00, 0x15402600, 0x67005b0d, 0x01191019, 0x64065a14, 0x07601318, + 0x06601403, 0x219f8212, 0x9d84e13f, 0xe1f61022, 0x14349582, 0x23040602, 0x32211121, 0x07121616, 0x23022e34, 0x20331123, 0x30084682, 0xf7feb660, + 0x0192fea8, 0xaef89997, 0x7e42c55f, 0xa2c975b8, 0x0c010801, 0xfeb9e902, 0x055ebbe9, 0xfeb55cb6, 0xd592b6f4, 0x89fb438a, 0x00002401, 0x217d8301, + 0x7d82be03, 0x000b2908, 0x14264042, 0x08080108, 0x67000401, 0x5a0a060d, 0x090c6401, 0x01064f5f, 0x06af060f, 0x06060802, 0x025f050a, 0x015f0a03, + 0x12258c85, 0x5d5e2f39, 0x2a938471, 0x32e61032, 0x5d2f3911, 0x82213031, 0x86152092, 0xbe033503, 0xf70209fd, 0x1702c3fd, 0x3d02e9fd, 0xfea4b605, + 0xf8fda23c, 0x0924718a, 0x11407000, 0x24086e82, 0xff01030f, 0x03800103, 0x03d00390, 0xffb80303, 0x073840c0, 0x0303480a, 0x2f0b0f0b, 0xaf0b8f0b, + 0x0607040b, 0x238d8200, 0x0f5f090a, 0x3f348d83, 0xff066f06, 0x06080406, 0x481d1a40, 0x15104006, 0x00060648, 0x00209b83, 0x3f219982, 0x219882e1, + 0x9a882b2b, 0xce415e20, 0x82712006, 0x229f8216, 0x85211123, 0x8101229f, 0x829c87ba, 0xfcfd239a, 0x434200a4, 0xf2290806, 0x2b00cb05, 0x1e403700, + 0x290c2b2b, 0x6702145a, 0x012d102d, 0x660c5b1f, 0x005f2b2c, 0x5f1a2400, 0x5f240411, 0x3f001307, 0x206a84e1, 0x069441e1, 0x11e13229, 0x30312f39, + 0x42112101, 0x24280a24, 0x17163233, 0x23032e07, 0x08084442, 0x37023e55, 0x0e032111, 0x7037e401, 0x9d4b8276, 0x5f56a6f2, 0xab0b01b6, 0x4858cc6f, + 0x5d585324, 0x7fbc7a2e, 0xbe783742, 0x3e492c86, 0xd5fe1a37, 0x33fd0403, 0x0a131c12, 0x1701c369, 0x1601acae, 0x2a2c69c3, 0x171e11a2, 0xda98510e, + 0x9cd88289, 0x0b080556, 0x83b40105, 0xc72d08bb, 0xd5040000, 0x0b00b605, 0x23403d00, 0x005a0109, 0x0dc00d65, 0x010dbf01, 0x08010d20, 0x64055a04, + 0x0f5f030c, 0x08080108, 0x03060a08, 0x058f4405, 0x2f393324, 0xc1845d5e, 0x5d5d3227, 0xe1f6105d, 0x05224132, 0x1123113b, 0x11211133, 0xbad50433, + 0xbaba66fd, 0x02ba9a02, 0x0556fdaa, 0x0298fdb6, 0x246b8368, 0x02000052, 0x086b8464, 0x2640573b, 0x0d2b0d0b, 0x9b0d7b02, 0xfb0dab0d, 0x0d54040d, + 0x3b0d2b01, 0x030d4b0d, 0x02010d1f, 0x5a0a0b08, 0x03c90205, 0xffb80301, 0x0d1040f8, 0x03004810, 0x09030601, 0x03030604, 0x2583830a, 0xc13f32c1, + 0x85820132, 0xc15d2b28, 0x32c1f132, 0x00825d5f, 0x85827120, 0x35212708, 0x35271137, 0x11071521, 0xfd640217, 0x02acacee, 0x66acac12, 0x29980429, + 0xfb296666, 0x01002968, 0x7bfe48ff, 0x85827301, 0x00132408, 0xdf1c402f, 0x15600115, 0x2f021570, 0x5a0f0115, 0x0003030c, 0x020c100c, 0x030d0c07, + 0x00005f07, 0x833fe12f, 0x2f332363, 0x5e82e110, 0x03303123, 0x09bd5022, 0x2408e982, 0x1d020e14, 0x221c4c33, 0x4b252d4e, 0x3bbb263d, 0x7bfe9369, + 0x09a00b0d, 0x5832130b, 0xfab60544, 0x659a695e, 0x07634131, 0x7182a220, 0x64000c37, 0x0c022d40, 0x0c010c66, 0x100b0a00, 0x00010b0b, 0x02001000, + 0x29048207, 0x0eb00e00, 0x010e2f01, 0x75410e10, 0x020d2b05, 0x48100b10, 0xf0ffb808, 0x08820c40, 0x05080232, 0x0003060a, 0x3f001205, 0x12333f33, + 0x2b2b3939, 0x27064a45, 0x2f33115d, 0x335d5e38, 0x33220582, 0x0d823911, 0x21303127, 0x11070123, 0x3fa08223, 0x01330137, 0xfed3a204, 0xbaba8b3d, + 0xd1c40179, 0xba02f8fd, 0x05b8fd72, 0xa825fdb6, 0x83fd3302, 0x360bc743, 0x40230005, 0xaf070413, 0x07100107, 0x005a0301, 0x03010664, 0x82005f03, + 0x3fe12170, 0x5d206a83, 0x33205a84, 0x21255582, 0x02bac715, 0x21df823d, 0x9543a6f0, 0x2f062105, 0x193cdb82, 0x13408b00, 0x39011936, 0x0e170100, + 0x480f0c08, 0x0e010e39, 0xb8195a11, 0x1c40f8ff, 0x19210e82, 0x32148300, 0x0c0d0d00, 0x1b651009, 0x20011b4f, 0x1b0f011b, 0x830b0801, 0x821a2020, + 0x0b263a20, 0x08020b01, 0x1a64095a, 0x10010118, 0x01481209, 0x11030b0e, 0xf0ffb80c, 0x210c82b6, 0x8a83080c, 0x2b323229, 0x33333f32, 0x8433112b, + 0x5d3231fd, 0x5d5d5e2b, 0x11f6105d, 0x33113939, 0xe12b332b, 0x32341182, 0x5d5d3031, 0x16230121, 0x15161617, 0x21112311, 0x21013301, 0x3b080782, + 0x36373634, 0x03012337, 0x0845fe23, 0x05040406, 0x011401ac, 0x9e01069c, 0x04ba1401, 0x08030403, 0x000541fe, 0x8b3f494a, 0x0596fc39, 0x0458fbb6, + 0x034afaa8, 0x3d863477, 0x02fb4947, 0x0521e785, 0x08e7820e, 0x5100172d, 0x280e2940, 0x15010101, 0x1965005a, 0x8f0119b0, 0x19000119, 0x27021910, + 0x030c010c, 0x640a5a09, 0x10021618, 0x02481806, 0x830d030b, 0x210a82bd, 0xbd860a0d, 0xa5823f20, 0xb884ba86, 0xaf82b082, 0x89232121, 0x01332eae, + 0x2e272633, 0x33113503, 0xfdd70e05, 0x33aa8531, 0x07cc02d5, 0x03010403, 0x04ae0103, 0x414c4dba, 0xe7fc398e, 0x4c32a482, 0x43204a4c, 0x031a3e43, + 0x02000020, 0xecff7d00, 0x8f557105, 0x34210806, 0x5b1e2040, 0xc0296700, 0x29bf0129, 0x01297001, 0x295f292f, 0x0a5b1402, 0x5f232866, 0x5f19040f, + 0x05894405, 0x2105d941, 0x1d465d5d, 0x1f9d5508, 0x71054808, 0x9beda051, 0x4c9defa3, 0xa3f09e4c, 0x51a0eb9b, 0x6b34d1fb, 0xa57272a5, 0x6a32326b, + 0xa67272a4, 0xdd02346c, 0xc6eafea9, 0x01c66c6c, 0x01aaaa17, 0x6b6bc415, 0xabebfec5, 0x5199db89, 0x89db9951, 0x5197da8a, 0x83da9751, 0xc74108b1, + 0x33040000, 0x0e00b605, 0x46001900, 0x5b152c40, 0x00380028, 0x00030048, 0x1bcf1b67, 0x011b4001, 0x06011b0f, 0x085a070f, 0x600f1a64, 0x06400630, + 0x07060602, 0x03096019, 0x3f001207, 0x3911e13f, 0x0685442f, 0x31050542, 0x3031e15d, 0x020e1401, 0x23112323, 0x1e322111, 0x45480102, 0x04650808, + 0xcf7e3733, 0x01ba9698, 0x7ec2866a, 0x814efd3c, 0x2e5b8b5d, 0x04a0aea4, 0x81a85b0a, 0x05c7fd4d, 0xa06d39b6, 0x472067fe, 0x898e5171, 0x7d000200, + 0x710562fe, 0x1d00cd05, 0x38003100, 0x5b282240, 0xc0336700, 0x33bf0133, 0x01337001, 0x335f332f, 0x145b1e02, 0x5f2d3266, 0x5f230419, 0x09130f05, + 0x333f2f00, 0x066a47e1, 0x8505d941, 0x5d07208b, 0x0620065d, 0x2d215841, 0x5d8e5f31, 0x795a892b, 0x1133ad67, 0x62411229, 0xe2832d1f, 0x5e2684b5, + 0x498e3c8f, 0x02027fc6, 0x08256b41, 0xb605a031, 0x1c000f00, 0x56408200, 0x0f190f09, 0x010ff902, 0x0f0b080f, 0x090c0f48, 0x0c07010c, 0x085b1601, + 0x02071807, 0x0e090707, 0xf90ee901, 0x830e020e, 0x0e20081d, 0x1e0d100d, 0x1e8f1e3f, 0x1ebf1e9f, 0x20051edf, 0x0110011e, 0x1d64025a, 0x6010030c, + 0x08010000, 0x1c320382, 0x0e030360, 0x3f001201, 0x11e13f33, 0x5d5e2f39, 0xeb4912e1, 0x38ce2708, 0x715d2b32, 0x13832f32, 0x115d5e23, 0x310c8233, + 0x11013031, 0x20211123, 0x0e141516, 0x23010702, 0xa9412701, 0x2e700805, 0x01232302, 0x6401ba81, 0x31fe0a01, 0x01376851, 0xa1fedb8e, 0x7e5aa4e5, + 0x53292551, 0x02a0577f, 0x05a4fd5c, 0x57d1ceb6, 0x143e5d82, 0x5c0271fd, 0x6745239e, 0x40644845, 0x0001001d, 0x03ecff68, 0x00cb05c9, 0x40420033, + 0x01235927, 0x005a1123, 0x35bf3567, 0x600235ff, 0x353f0135, 0x095a2a01, 0x1134661b, 0x5f27052a, 0x0e042024, 0x13050960, 0xe122b082, 0xac82333f, + 0x3221ad83, 0x05b941e1, 0x415d3321, 0x232205bb, 0x1c552622, 0x35362705, 0x27022e34, 0xdd51032e, 0x17162505, 0x23262607, 0x0806d952, 0x03031e5b, + 0xb88045c9, 0x41c16f73, 0x66605722, 0x1d99a032, 0x595d7a49, 0x40295583, 0x7761a174, 0x41434abe, 0x867a58a5, 0x5473461e, 0x2f5c895b, 0x99618701, + 0x2223376a, 0x181f10b2, 0x3670780f, 0x253f4350, 0x84685323, 0x5f8a5854, 0x9c232d32, 0x60712b1d, 0x3b435339, 0x604c2421, 0x08d3827e, 0x0000145f, + 0xb6051204, 0x5e000700, 0x090f3240, 0x0109d001, 0x09cf094f, 0x20091002, 0x03093009, 0x06ef06af, 0x01068402, 0x5a070606, 0xe0034002, 0x030f0203, + 0x03030801, 0x02670257, 0x02030277, 0x40c0ffb8, 0x480a070b, 0x5f030702, 0x12000304, 0xe13f3f00, 0x2b2f0132, 0x5e2f335d, 0xe1105d5d, 0x05e04f32, + 0xbe477120, 0x21353105, 0x71022115, 0x035efebb, 0x055ffefe, 0x00a4a412, 0x2b088182, 0x04ecffb8, 0x00b805dd, 0x402f0017, 0x015a161c, 0x19b01965, + 0xaf196f01, 0x19100219, 0x0b5a0e01, 0x5f111864, 0x000c1306, 0x323f0003, 0x4408ff42, 0x1120054e, 0x22074a5f, 0x4d113311, 0x2a0806f9, 0x42dd0411, + 0x8088c985, 0xbb4485c4, 0x8059afad, 0x05012852, 0x724cfcb8, 0x4d5290c4, 0x037ac78e, 0xaf48fcae, 0x886236c0, 0x82b80351, 0x0000247b, 0x828b0400, + 0x000c34fd, 0x0310406c, 0x04090902, 0x70016000, 0xf001b001, 0x83010401, 0x162608db, 0x01480a06, 0x0e010110, 0x0e7f0e2f, 0x0e030ebf, 0x48090640, + 0xffb80405, 0x0504b4f0, 0xb8090304, 0x0ab3e0ff, 0x07824811, 0x0a40f022, 0x09251a82, 0x00120302, 0x2daa8201, 0x33333f33, 0x333f2b2b, 0x33382f01, + 0x534d5d2b, 0x12332c05, 0x332f3d39, 0x01303133, 0x82230133, 0x16163603, 0x37363617, 0xfec6c503, 0x19febb17, 0x1d2701c5, 0x2e0f112a, 0x05005b1f, + 0x5b61fc27, 0xa94a4aa9, 0x05a34161, 0x82fe0621, 0x002a2ea5, 0x0810b6df, 0x10481815, 0xf8ffb80f, 0x210882b5, 0xa582070f, 0x1240f822, 0x01210a82, + 0x22198300, 0x831d1600, 0x1c1d2106, 0x40212082, 0x0816822f, 0x14251c28, 0x07040107, 0x07b40744, 0x25040703, 0x25242514, 0x25542544, 0x25160705, + 0x03071625, 0x0e000d1e, 0x800e7001, 0xdb82c00e, 0x1838f083, 0x0e480a07, 0x2c0e0e10, 0x2c7f2c6f, 0x302c2002, 0x2c0f022c, 0x1e1f0801, 0x4024f282, + 0x20161e13, 0x1621ed82, 0x27e98210, 0x1e000d16, 0x25250703, 0x82060141, 0xb6f02107, 0x25241682, 0x00121d10, 0x1121fb84, 0x22068233, 0x4e2b2b33, + 0x5d200555, 0x31060341, 0x17123371, 0x2f2f3d39, 0x5d5e5d2f, 0x2b331171, 0x04892b33, 0x0130313b, 0x031e1333, 0x37033e17, 0x23013313, 0x27262603, + 0x07062726, 0x03070606, 0x08198823, 0xc529034d, 0x191d0fe5, 0x0c040613, 0xc80b1310, 0xbc91fec7, 0x0b1a0efe, 0x0b0b0b0c, 0xf20e190a, 0xc57efebc, + 0x11140cdf, 0x0f05050e, 0x050d1714, 0x38a8fcb6, 0x265e6970, 0x67635a26, 0xfa720331, 0x33aa034a, 0x34372f6c, 0x702f3733, 0x825cfc36, 0x2e872a1f, + 0x265b6263, 0x6f6c6225, 0x06114231, 0x05604408, 0x000b00b6, 0x091d4081, 0x0a0a100a, 0x010b3700, 0x0538080b, 0x02020501, 0x01000001, 0x00800070, + 0x000300c0, 0x40c0ffb8, 0x480a0714, 0x00001000, 0x1f0d0f0d, 0x7f0d2f0d, 0x0708040d, 0xf0ffb806, 0x4f0606b3, 0x102b056e, 0x01022804, 0x02010827, + 0x82090408, 0x12003012, 0x3f323f00, 0x39391233, 0x2f015d5d, 0x4f323238, 0x392a0c71, 0x5d332f3d, 0x115d3333, 0x17821833, 0x21303125, 0x82010123, + 0x01332902, 0x04013301, 0x9efed360, 0x0139eb82, 0xc65afec5, 0x4e014c01, 0x025bfebe, 0x0285fd7b, 0xfdba02fc, 0xfd2f02d1, 0x209a824c, 0x21008200, + 0xbd823704, 0x7300083d, 0x0aef1940, 0x09400a01, 0xab08480c, 0x07980107, 0x01074001, 0x0f01071b, 0x82070107, 0x2f403da0, 0x01050707, 0x4f010280, + 0x021b0102, 0x02100201, 0x5a040002, 0x05870577, 0x4f030597, 0x2906b753, 0x00360507, 0x04010001, 0xd1420712, 0x39122105, 0x5e25b482, 0xe15d5d5d, + 0x82b88239, 0x11332407, 0x82382f33, 0x5d5d2607, 0x315d2b33, 0x3ba78330, 0x01112311, 0x011b0233, 0x42fec854, 0xcb42febb, 0xe302d302, 0xc7fd83fc, + 0x87032f02, 0x2106a14b, 0xa182fe03, 0x00092108, 0x09204038, 0x67070309, 0x3f0b0f0b, 0x9f0b4f0b, 0x0808040b, 0x66010404, 0x5f04070a, 0x08020305, + 0x2b05cf4d, 0x39e13f39, 0x32e61001, 0x5d5e322f, 0x32260682, 0x2130312f, 0xcc583521, 0x03213505, 0x0254fcfe, 0x034dfdc7, 0x023afd83, 0x7f0491db, + 0x81fb91a6, 0xa4246583, 0x3902bcfe, 0x073b6582, 0x17402600, 0x06f30004, 0x100100f1, 0xc001b001, 0x05010401, 0x06f802f5, 0x5ef901f5, 0xed210839, + 0x35ba8232, 0x15211121, 0x02331123, 0x016bfe39, 0xfedfdf95, 0x95fa06bc, 0x4b8331fa, 0x00001724, 0x4b82e902, 0x21000325, 0x820102b7, 0x00052846, + 0xf0ffb803, 0x5e0203b4, 0x2f3505c4, 0x33382f01, 0x11383311, 0x13303133, 0xc9012301, 0xfdb22002, 0x05c443e0, 0x33243f83, 0xc901bcfe, 0x24368b84, + 0x00031440, 0x60f101f3, 0x02067006, 0xf5000906, 0xf503f907, 0x8885f804, 0x5dd61023, 0x248983e1, 0x23113317, 0x3f8d8235, 0x01dfdf33, 0xae6afe96, + 0xf995cf05, 0x01000006, 0x25022900, 0xc1051904, 0x12000600, 0x080303b6, 0x06281282, 0x01cd3f00, 0x2f33112f, 0x33207883, 0x21087a82, 0xcb012901, + 0xa1bf0166, 0xa3feaffe, 0x9c032502, 0xdf0264fc, 0x010021fd, 0xbcfefcff, 0x48ff4e03, 0x3b820300, 0x05000029, 0x02ba0101, 0x86e12f00, 0x21012c3b, + 0x4e032135, 0x5203aefc, 0x828cbcfe, 0x01470856, 0x03d90489, 0x00210612, 0x4016000d, 0x0806000a, 0x5f000f80, 0x00000200, 0xcc1a5d2f, 0x31cd2f01, + 0x2e230130, 0x33352703, 0x0317031e, 0x52237812, 0xdb103f4d, 0x302e2b10, 0x1cd90415, 0x1b515853, 0x51512215, 0x82001d4c, 0x5e6f0832, 0x9c03ecff, + 0x23005e04, 0x54003200, 0x01101140, 0x55234729, 0x6f340f34, 0x30060234, 0xb81a0c48, 0x1e40d0ff, 0x1a48110d, 0x480c0910, 0x560c1a1a, 0x50161933, + 0x10522a1d, 0x24101d10, 0x16070250, 0x3f001500, 0x3fe1333f, 0x10e12f39, 0x100132e1, 0x2b2f32e6, 0x5ee1102b, 0xe1f6105d, 0x30313232, 0x0e232721, + 0x2e222303, 0x36343502, 0x64353737, 0x07210520, 0x06575527, 0x25116208, 0x35023e32, 0x030e0735, 0x03161415, 0x21082519, 0x3f604e42, 0x30557445, + 0x1db8ece7, 0x53345137, 0x4a40428f, 0x956664b6, 0x2ffe3061, 0x2b4c683d, 0x497a5a8f, 0x2d986120, 0x27142a41, 0xa4547b51, 0x450708b0, 0x18375a43, + 0x28892230, 0x8a592938, 0x7f10fd62, 0x4f754d26, 0x20040763, 0x5c335139, 0x08e58356, 0xecffae33, 0x14063f04, 0x2f001f00, 0x2db53800, 0x31570548, + 0xb8ffb831, 0x490a1740, 0x47251015, 0x13305412, 0x2a151200, 0x160a0f50, 0x001b5020, 0x323f0010, 0x21d483e1, 0xc584013f, 0xcc462b20, 0x0b315d05, + 0x2307232e, 0x14113311, 0x07060706, 0x17033e33, 0x3708a54f, 0x26343536, 0x9a5e9e02, 0x6d3c3c6d, 0x603b5e9a, 0x0c173b4d, 0x02b68525, 0x43080082, + 0x4d3a1708, 0x6b501960, 0x411b1b41, 0x7f87516c, 0x485e047f, 0x8d8cd48f, 0x1a4990d5, 0x8b203a2b, 0x88fe1406, 0x28224f23, 0x2c3c2326, 0x68339719, + 0x9d65699c, 0xccda376b, 0x0100ced0, 0xecff7100, 0x5e046f03, 0x2a3ac182, 0x0d1d1840, 0x7f215f21, 0x21100221, 0x05481601, 0x51132056, 0x5119100a, + 0xea511600, 0x105d2909, 0x303132ce, 0x022e2205, 0x0808b048, 0x23032e44, 0x14150622, 0x36323316, 0x06061537, 0xb0655202, 0x854c4a82, 0x954e66b2, + 0x38173632, 0x9d1a3a3c, 0x51949190, 0x7b363683, 0xd5893f14, 0x89db9d96, 0x9a19223e, 0x090f130a, 0xc3d3d4c9, 0x1da21925, 0xc35d001e, 0x06022206, + 0x08898214, 0x34003020, 0x00261d40, 0x551e471b, 0x01321032, 0x560b482e, 0x1c151f31, 0x16502b00, 0x50201010, 0x90820601, 0x47413320, 0x07114209, + 0x10422520, 0x05056b08, 0x2633172e, 0x35262627, 0x23113311, 0x023e3225, 0x82072342, 0x032208aa, 0x3b160854, 0x5d3c604d, 0x3c3c6e9a, 0x3b5d9a6e, + 0x163c4d60, 0x0203030c, 0xfe93b604, 0x41694cc6, 0x4a41021f, 0x22932406, 0x411a2e3d, 0x2c31084d, 0x1f22203a, 0x0110371a, 0x83ecf9b4, 0x5e8d5e2e, + 0x05494129, 0x85cdd121, 0x033008bf, 0x005e04e1, 0x0027001e, 0x23284043, 0x57101948, 0x0129e029, 0x2201296f, 0x56054811, 0x1b501128, 0x02222b22, + 0x0601220f, 0x1f142222, 0x14100a50, 0x24075b41, 0x5e2f3912, 0x08f6505d, 0x32f61023, 0x0b6441e1, 0x15021e24, 0xd9602115, 0x37b90805, 0x03030e15, + 0x21070622, 0x02022e34, 0x83b66e60, 0xa7784248, 0x6e9e6365, 0x054cfd3b, 0x57339799, 0x28274c51, 0x6057514d, 0x010b8572, 0x58391bec, 0xd28e4a14, + 0x95d68887, 0xb581474e, 0xb6c1716e, 0x121d130a, 0x121c13a2, 0x9cdb0308, 0x50714495, 0x0001002c, 0x0200001d, 0x001f06f0, 0x4070001b, 0xdf1dcf4e, + 0x1d60021d, 0x1d901d80, 0x1f041da0, 0x4f1d3f1d, 0x1b1b031d, 0x10bf107f, 0x1a101002, 0x07034702, 0x1f050f03, 0xaf052f05, 0x05050405, 0x03100300, + 0x03800320, 0x03a00390, 0x01030606, 0x00074f05, 0x1a07011a, 0x0d50140f, 0x00150201, 0x3fe13f3f, 0xe1335d5e, 0x05ed5032, 0x33115d32, 0x3232e110, + 0x2f395d2f, 0x315d5d5d, 0x11230130, 0x35210182, 0x0cfe4a37, 0xef820e20, 0x0233b008, 0xc2b7f58b, 0x7c552dc2, 0x27633b4e, 0x28491f2f, 0x13263a28, + 0xfcc103f5, 0x4bc1033f, 0x8d6b6044, 0x0e172354, 0x13110b8d, 0x68415330, 0x00030000, 0x0314fe25, 0x005e04fc, 0x0052003f, 0x40a7005e, 0x05320d19, + 0x12374753, 0x7037602f, 0x03378037, 0x2f372f37, 0x591d4827, 0xffb80547, 0x074d40c0, 0x0505480a, 0x011d0a01, 0xb0011dfd, 0x1d88011d, 0x301d2001, + 0x031d401d, 0x1f601d1d, 0x60bf0160, 0xa00260df, 0x27400160, 0x480f0c40, 0x32050227, 0x563c040d, 0x220a0a52, 0x2c3c4f5c, 0x01170f4e, 0x3c171707, + 0x224f4510, 0x0f00011b, 0x82c13f00, 0x2f3937e7, 0x39c15d5e, 0x3911e110, 0x1712e12f, 0x2b2f0139, 0x715d5dc1, 0xea833311, 0x33715d3a, 0xe12b2f39, + 0x3911c110, 0x5d2f2f39, 0xe110c110, 0x31393912, 0x07150130, 0x2609be62, 0x1415030e, 0x5a33021e, 0xdd440719, 0x023e2805, 0x35262637, 0x4c373634, + 0x01200924, 0x322e2583, 0x2e343536, 0x22232302, 0x1413020e, 0x0e833316, 0x2326d208, 0xfc030622, 0x2f261cc5, 0x165d8c5f, 0x21110e2c, 0x2918111b, + 0x5db01f38, 0x41245180, 0x6b8bcd86, 0x27356aa0, 0x2a2f5742, 0x2b454036, 0x321b3147, 0x25619262, 0x40fe1b4f, 0x48613b1a, 0x3718b9ba, 0x23b0415a, + 0x5c293f4c, 0x6764636c, 0x6a636469, 0x1b714a04, 0x4c456d23, 0x01355e81, 0x20190a03, 0x211b1828, 0x502f0612, 0x8c583d6d, 0x502a3461, 0x5b3c4771, + 0x130b2a42, 0x593d3552, 0x513f122a, 0x8c593360, 0x090b3462, 0x402502fb, 0x6c731b2e, 0x0c213a2e, 0x034d2c10, 0x6f707360, 0x78747b77, 0xae000100, + 0x12040000, 0x19001406, 0x1d403200, 0x55194700, 0x601b101b, 0x031b801b, 0x470a0e0f, 0x101a540b, 0x10155004, 0x000b000c, 0x323f0015, 0x0601573f, + 0x5d32322a, 0x31e1f610, 0x34112130, 0x0e27e482, 0x23111502, 0x61113311, 0x510805a2, 0x03111516, 0x5170695c, 0xb61d436e, 0x190a08b6, 0x305c5245, + 0xc302b9b7, 0x66348282, 0xc7fd6094, 0x32fe1406, 0x2a3f2b90, 0xfdd2bf14, 0x02000033, 0x0000a000, 0xe5057501, 0x11000300, 0x14402500, 0x13201310, + 0x47000c02, 0x12540104, 0x0f0f5307, 0x7b460f02, 0xe52f2705, 0x32f61001, 0xab6532e1, 0x03332205, 0x06b25b34, 0x23062508, 0x64012622, 0x3dc4b6b6, + 0x1d27162d, 0x2d2c3f11, 0x014a043d, 0x0d363c29, 0x3a1e2b1c, 0x02003839, 0x14febcff, 0x24086184, 0x00210013, 0x1019402e, 0x02232023, 0x0c470f1c, + 0x0c030314, 0x53172254, 0x0f0d1f1f, 0x1b005007, 0x3fe13f00, 0x24678333, 0x322f32e6, 0x206a8410, 0x10085413, 0x788b1320, 0x3f30422f, 0x23361a17, + 0x13232e1b, 0x6d4822b6, 0x34838913, 0x0b0e14fe, 0x0f0b0a94, 0x04334127, 0x4d18fbf4, 0x072f577b, 0x4194895f, 0x3a080579, 0x1406f003, 0x5e000e00, + 0x04070b40, 0x03030204, 0x01054406, 0xc0ffb805, 0x0a071740, 0x05100548, 0x100f1005, 0x0702102f, 0x0a47090d, 0x000b0f54, 0xf8ffb800, 0x0f0c1040, + 0x82080748, 0x07002a04, 0x150a0603, 0x3f000f03, 0x0528543f, 0x2005c746, 0x06e14b5e, 0x1133332e, 0x33113933, 0x37013031, 0x01013301, 0x08072a54, + 0x56010325, 0xd3250187, 0xac016ffe, 0x6db0fed1, 0x0210b4b4, 0x6901aa37, 0x91fd25fe, 0xfe52f801, 0xfd14065a, 0x85edfe36, 0x6401219f, 0x03329f82, + 0x0e401a00, 0x05200510, 0x01470002, 0x00020454, 0x71821500, 0xf6100123, 0x068a41e1, 0xb6640123, 0x082782b6, 0xae00014a, 0x87060000, 0x2c005e04, + 0x3f406500, 0xb9470a23, 0x0b96010b, 0x89020ba6, 0x0b67010b, 0x0b020b77, 0x4700160b, 0xf02e552c, 0x2ecf012e, 0x502e2001, 0x2e0f022e, 0x15190801, + 0x2d541647, 0x041a1a23, 0x1f28500f, 0x160f1710, 0x20056d42, 0x22d78232, 0x543232e1, 0x5e210602, 0x05b34f5d, 0x2f391122, 0x5d220882, 0x7e4232e1, + 0x0a88420d, 0x3e331726, 0x16323303, 0x2e080686, 0xd1051115, 0x66496964, 0x63b71e41, 0x3f684d69, 0x1a94b61b, 0x4f42180a, 0x9f782e59, 0x491a0826, + 0xaf326057, 0x82c302b1, 0x875b2f82, 0x42a2fd58, 0x043009a8, 0x3f2b944a, 0x5e58142a, 0x162d442f, 0x33fdd2bf, 0x21051341, 0xe1821204, 0x3000183d, + 0x47001c40, 0x101a5518, 0x801a601a, 0x0a0e031a, 0x19540b47, 0x1450040f, 0x430f0c10, 0x2b430e2c, 0x439b8812, 0x9482082a, 0x86102a43, 0x657b8481, + 0x2d200555, 0x13227b82, 0x7d821f00, 0x481a1d3c, 0x40215700, 0xe021d021, 0x210f0321, 0x48140601, 0x1d20560a, 0x17100f50, 0x22480550, 0x535e2009, + 0xec6e08f1, 0x4405200d, 0x042c0aa3, 0xb27d432d, 0x7fae676f, 0xb37c4347, 0xfd250784, 0x9a9a8900, 0x08038387, 0x89270221, 0x4c4c91d5, 0x8889d591, + 0x4b4b91d3, 0xd188d391, 0xd1d1d3d3, 0x0000cfcf, 0xfeae0002, 0x823f0414, 0x088f8291, 0x40360020, 0x1b482e1e, 0x32103257, 0x06102601, 0x540d470c, + 0x11502031, 0x0f0e1016, 0x502b1b0c, 0x92820005, 0x3fe13225, 0x58333f3f, 0x4144054d, 0x22052407, 0x5527022e, 0x332008c1, 0x2b051741, 0x1415021e, + 0x2203020e, 0x1507020e, 0x22075b45, 0x499e0226, 0x032c0566, 0xb6040203, 0x17081a94, 0x3c604d3a, 0x20068149, 0x0b244881, 0x2b1a1422, 0x28061848, + 0x36062bfe, 0x2d3d2394, 0x0732481b, 0x2edb0325, 0x485f8c5e, 0xd0210626, 0x20c383ce, 0x20c38271, 0x22c38202, 0x83300010, 0x202b26c3, 0x24472505, + 0x2fc68355, 0x5616480e, 0x221b2431, 0x500b200f, 0x002c101b, 0x045ccd82, 0x3f3f2506, 0xe1f61001, 0x2205e848, 0x48303132, 0x17200ece, 0x25088e49, + 0x3317021e, 0x91563337, 0x030e2308, 0xa88b3502, 0xf0486620, 0x3c4c2f09, 0x931b0817, 0x030204b6, 0x3b160c03, 0xce48604d, 0x8797200d, 0x2d1b31bf, + 0xf994233d, 0x13d501ca, 0x22201b3a, 0x1a2e3d22, 0x21059342, 0xc1820803, 0x00163308, 0xb20b4041, 0x0203c203, 0x03a00390, 0xffb80302, 0x071b40c0, + 0x0303480b, 0x50183018, 0x03188018, 0x0e470d11, 0x0f0f1754, 0x0712150d, 0x3f001000, 0xc98533c1, 0x025b3220, 0x30312306, 0xf3523201, 0x06d34506, + 0x33172c08, 0x8902033e, 0x181a481d, 0x3f1a3b1c, 0xb6294b68, 0x19081694, 0x04584739, 0xa805055e, 0x5f330705, 0xb0fd5185, 0x2bc94a04, 0x82253d50, + 0xff5a248b, 0x823f03ec, 0x352e088b, 0x2d404800, 0x90471325, 0x0200a000, 0x3f375700, 0x9f375f37, 0x37100337, 0x09472c01, 0x1daf1d9f, 0x36561d02, + 0x13502926, 0x1022052c, 0xb1420e09, 0x3f322c05, 0xe1393912, 0xf6100132, 0x5ee1325d, 0x3320053a, 0x5e0e9f53, 0xa053051f, 0x3f5d0818, 0x609a6d3a, + 0x1f3b9c6d, 0x2c59544c, 0x1a395b41, 0x485c3514, 0x2b507348, 0x568c6437, 0x3f48a161, 0x66478941, 0x5e381762, 0x50714846, 0x502d012a, 0x23285178, + 0x1f10a622, 0x29160f18, 0x321f243b, 0x1f1f3231, 0x43614a3c, 0x264a6d46, 0x1d93222a, 0x233e432b, 0x1d2f2e34, 0x604b3c1e, 0x08df8200, 0xecff2146, + 0x46058f02, 0x50001d00, 0xb80519b1, 0x2f40c0ff, 0x05480b08, 0x1f3f1f05, 0x17021f4f, 0x1f14471b, 0x02122f12, 0x10100012, 0xb0102010, 0xd010c010, + 0x10060610, 0x164f121a, 0x000f1714, 0x00160b50, 0x333fe13f, 0x21068049, 0x08825dc6, 0x33115d24, 0xe7822b2f, 0x3e322525, 0x4d153702, 0x3e080644, + 0x37352311, 0x21153337, 0x14112115, 0x12fa0116, 0x09232a2d, 0x3430280d, 0x4d6a3e19, 0x4e9b9b2c, 0xfe140169, 0x04813fec, 0x8a030806, 0x05090c06, + 0x65854e20, 0x4e517d02, 0xfd89fce6, 0x82626183, 0xa42208a9, 0x0804ecff, 0x1a004a04, 0x1c403000, 0x1a471701, 0x1c101c55, 0x1c801c60, 0x0c470f03, + 0x0d181b54, 0xd74d120f, 0x4233200b, 0x312008d1, 0x530acb4d, 0x352008ce, 0x03220982, 0xcd471b75, 0x5b220805, 0xb62f5c8a, 0x6e516f6a, 0x93b61d43, + 0x14293f2b, 0x6998622e, 0x3dfdcd02, 0x65348282, 0x3a026094, 0x0351b6fb, 0xd5032106, 0x112f8182, 0x00b96d00, 0x40f8ff11, 0x480e0a0f, 0x82080011, + 0x09002c05, 0x100f0109, 0xb3c0ffb8, 0x83481512, 0x1c402507, 0x10480b07, 0x20080082, 0xcf13bf13, 0x0313ef13, 0x0f011350, 0x4f132f13, 0x02070313, + 0xf0ffb801, 0x47010a40, 0x0f090109, 0x060d4801, 0x015d3927, 0x5ec1382f, 0x06ce525d, 0x12c12b29, 0x332f3d39, 0x822b332b, 0x05a252be, 0xbd523320, + 0x01240805, 0xbc89fe77, 0x1e1e0bc7, 0x05070419, 0x0b1e1e18, 0x89febcc7, 0x9dfd4a04, 0x606c6821, 0x6c601919, 0x63022168, 0x0126b082, 0x00001400, + 0xaf82e305, 0xc3002f25, 0x822f00b9, 0x820c20af, 0x002f29a9, 0x480e0908, 0xb8202700, 0x12201082, 0x20210a82, 0x2210831f, 0x8310091f, 0x0f1021c7, + 0x09201683, 0x0f321682, 0x01275418, 0xe0ffb827, 0x0a071540, 0x01185b48, 0x07822018, 0x18092729, 0x03270918, 0x862e2d11, 0x210783eb, 0xeb821340, + 0x2e102e30, 0x3120312e, 0x0f023130, 0x12070131, 0xe282b811, 0x2d111624, 0xe482091f, 0x270f113a, 0x66190619, 0x03197619, 0x15100019, 0x33333f00, + 0x3f33115d, 0x33335d33, 0x3320f482, 0x1125f482, 0x2b382f33, 0x07c1532b, 0x2b5d2b22, 0xc1531f82, 0x0321270e, 0x2627032e, 0xb6532327, 0x0513410c, + 0x031e1323, 0x08098517, 0xf0030159, 0x0c0c04a8, 0x0f0e060d, 0x0b0d0e06, 0xd3ac0b19, 0x83bfe7fe, 0x0e12140a, 0x11050604, 0xb30a1615, 0x1709acc4, + 0x06041216, 0x15120d03, 0xfeba890b, 0x126802e4, 0x1934322d, 0x3a3f3e3a, 0xfd256a32, 0xfd4a049c, 0x67692db8, 0x571a1d5b, 0x02215f61, 0x2295fd6b, + 0x82585f5c, 0x6830080d, 0x48022f6d, 0x0100b6fb, 0x00002300, 0x4a04db03, 0xe5000b00, 0x0989a140, 0x01038601, 0xf7010406, 0x04e50104, 0x01043601, + 0x06e80504, 0xe7030601, 0x89082982, 0x01020909, 0xea0102f8, 0x02390102, 0x6b010201, 0x02057b05, 0x3a010557, 0x02054a05, 0x01740164, 0x01015802, + 0x01450135, 0x09010502, 0x03050901, 0x0108060b, 0xe50108f7, 0x08360108, 0x40070801, 0x07481916, 0x48110e40, 0x077b076b, 0x01075702, 0x074a073a, + 0x100d0702, 0x020d300d, 0x0db00d90, 0x010d0f02, 0x010ad906, 0xba010ac8, 0x0a09010a, 0x0b3b0a01, 0x28020b4b, 0x0b05010b, 0x0b020b15, 0x0f011507, + 0x013f3f00, 0x216b5d2f, 0x5e5d2605, 0x10715d5d, 0x220d82de, 0x82c12b2b, 0x12712705, 0x2f3d3917, 0x1f832f18, 0x10200e82, 0x11251384, 0x33335d33, + 0x2d0b855d, 0x5d003031, 0x3301015d, 0x01331313, 0x02832301, 0xfe982108, 0xfafacf9f, 0x019dfecf, 0xf4fecf75, 0x02cff2fe, 0xfe170233, 0xfd9a0166, + 0x01cdfde9, 0x004cfeb4, 0x0a32f782, 0xdf0314fe, 0x22004a04, 0x22b66400, 0x00080810, 0x31420f0e, 0x08078306, 0x071d4024, 0x100f480b, 0xbf240f0f, + 0xef24cf24, 0x24500324, 0x2f240f01, 0x03244f24, 0x00011807, 0x40f0ffb8, 0x3682000c, 0x501c2326, 0x000e1b15, 0x322bc182, 0x3311e13f, 0x2f013333, + 0x4333c138, 0x33240f24, 0x33133031, 0x220a0342, 0x4a23030e, 0x440809e4, 0xbd0a3737, 0x191d0ed7, 0x05060412, 0x0b1d1b16, 0x4efebcc7, 0x7456411c, + 0x1b4c3450, 0x30234015, 0x0f253446, 0xfd4a0439, 0x5858289b, 0x56192352, 0x02215e61, 0x5127fb63, 0x0b315a81, 0x07059106, 0x29402c17, 0x24d183a0, + 0x03000052, 0x2fd18235, 0x406c0009, 0x0397090b, 0x09080301, 0x0703480d, 0x4036d682, 0x480a0711, 0x3f0b0707, 0x7f0b5f0b, 0x0898030b, 0xffb80801, + 0x1e82b5f8, 0x02040822, 0xb7271f82, 0x3f481512, 0x82020102, 0x40f02c2b, 0x480c0712, 0x054f0407, 0x8210020f, 0x08022909, 0x0015014f, 0x2b32e13f, + 0x01270383, 0x332b5d2f, 0x455d2b33, 0x2b210542, 0x54d9825d, 0x35330a93, 0x18021dfd, 0xb00209fe, 0x1e02f4fd, 0x8944037d, 0x83d1fc92, 0x3d300899, + 0xa202bcfe, 0x2700b605, 0x25404000, 0xf705051a, 0x23f12720, 0x10f60f13, 0x230c010c, 0x10d9f50f, 0x5f100f01, 0x10100210, 0x19f51a29, 0x06f505f8, + 0x2605a154, 0x5d2f3912, 0x8239e15d, 0x33e63973, 0xe232f133, 0x3031322f, 0x021e1405, 0x032e1517, 0x26341135, 0x36323523, 0xc4450782, 0x154b0805, + 0x07061411, 0x15161615, 0x2d18f401, 0x834d2841, 0x7d83365f, 0x5f36837d, 0x41284d83, 0x7377182d, 0x30107773, 0x010d233d, 0x47210196, 0x4e014e6e, + 0x569b5667, 0x4e4d0167, 0x0121476e, 0x230d0195, 0xb4fe303d, 0x0c147b69, 0x826a7a14, 0x014308b3, 0x0214fee9, 0x0014067f, 0x402d0003, 0x0105001f, + 0x05400530, 0x05800570, 0x00aa0204, 0x40031003, 0xc0038003, 0x03070503, 0x00001b02, 0x013f3f00, 0xe15d5e2f, 0x3031715d, 0x23113301, 0x9696e901, + 0x82f81406, 0x00012218, 0x20fb8233, 0x20fb8298, 0x08fb8329, 0x24240d23, 0xf10007f7, 0x0314f61a, 0x1d011d90, 0xeff51a04, 0x0219ff19, 0x190119d9, + 0xf5240e19, 0xf50df923, 0x0514550e, 0xfb881120, 0xe6333322, 0x1326fb86, 0x35373634, 0xf2822626, 0x8205687a, 0x021e25f2, 0x06221533, 0x0e270882, + 0x3e350702, 0x83e13503, 0x23ff87e7, 0x3e604121, 0x23090141, 0x7a6a3b01, 0x7b27dd82, 0x304c0169, 0x820d233d, 0x216808f3, 0xfe4e6e47, 0x2d4834b3, + 0x67569b14, 0x6e4eb2fe, 0x96012147, 0x3d230d01, 0x00010030, 0x044a0266, 0x005a0302, 0x403c0023, 0x10251d0d, 0x0a100125, 0xad170a01, 0xffb81f0a, + 0x101640c0, 0x1f1f4813, 0x0f1cad05, 0x3f0d1f0d, 0x6f0d4f0d, 0x060d8f0d, 0x5d2f000d, 0x2fc8f133, 0x01e1322b, 0x105d5d2f, 0x013031ce, 0x2223032e, + 0x29089c83, 0x1e323336, 0x031e1702, 0x023e3233, 0x23061537, 0x02022e22, 0x2d372512, 0x3c1c1629, 0x6419383b, 0x37321d94, 0x37252f43, 0x1084282f, + 0x95631822, 0x022f1083, 0x0d16108b, 0x2c211305, 0x056ca219, 0x8c14190d, 0x0200330d, 0x8bfe9300, 0x5e049101, 0x17000300, 0x00b94100, 0x3b7eff00, + 0x19302f05, 0x19b019a0, 0x020419c0, 0x030e9a04, 0xb2830e03, 0x0a070f39, 0x09000e48, 0x0200139b, 0x07020210, 0x5e2f0002, 0xcef52f5d, 0x7e2b2f01, + 0x13240842, 0x13231333, 0x6d07585b, 0xd53b068a, 0xefdf3379, 0x1b2e2313, 0x14232e1a, 0x1a2e2314, 0x13232e1b, 0xe7fba402, 0x7e264805, 0x6a6d0741, + 0x00340806, 0xffbc0001, 0x05ba03ec, 0x002500cb, 0x1225405a, 0x040f4603, 0x15250a04, 0x01274027, 0x0a00481e, 0x0a400a30, 0x06040ad0, 0x0f731b0a, + 0x73210f12, 0x0f050205, 0x0c399a83, 0x0f48120f, 0x03050f05, 0x19030710, 0x123f3f00, 0x2f2f3939, 0x1033112b, 0x420383e1, 0x1030055a, 0x391132c6, + 0x32e1332f, 0x06243031, 0x35231507, 0x540d647c, 0x03360c84, 0x894c6e76, 0x34628a57, 0x568b6135, 0x2e884889, 0x3c381735, 0x8654193b, 0xd4200806, + 0xcec8021e, 0xc7854b0d, 0x88cb8d89, 0xa4ac0d4b, 0x9a172103, 0x090f130a, 0xc3d2d4ca, 0x00a11825, 0x4437c782, 0x23040000, 0x2800c905, 0x11407500, + 0x236f110d, 0x0f1f0f0f, 0x821f0702, 0x03192205, 0x23b38217, 0x480e0ab3, 0x30080782, 0x063040c8, 0x17174809, 0x012a102a, 0x0b401921, 0x1919480e, + 0x75211029, 0x7f222f0d, 0xaf228f22, 0xdf22bf22, 0x0722ff22, 0x16002222, 0x07181974, 0x0a107173, 0x1127cb82, 0x2b2f3301, 0x82115d33, 0x332b2105, + 0x5e21f584, 0x4be2845d, 0x21270c15, 0x14152115, 0x8207020e, 0x35850807, 0x3535033e, 0x11333523, 0x02023e34, 0x42ae6a9a, 0x4b8d3842, 0x213c5230, + 0x88fe7801, 0x1b332717, 0x21fcec02, 0x1e35492c, 0x693bc6c6, 0x2dc90592, 0x2b1d9023, 0x425e3b1b, 0xd389d9fe, 0x2b40593e, 0x0b9aa610, 0x43614429, + 0x440189d5, 0x325f8957, 0x7b000200, 0xec031d01, 0x23008b04, 0x86003700, 0x8f0e2340, 0x16160116, 0x0f15ab2e, 0x1e06180c, 0x00080321, 0x12011270, + 0x39103912, 0x24200401, 0x010080aa, 0x08ff8200, 0x06314045, 0x0000480a, 0x1f801738, 0x060c1f01, 0x060f1e18, 0xae290904, 0x1b011b00, 0xae33050d, + 0x09ef09cf, 0xa0099002, 0x0309b009, 0x093f091f, 0x0903096f, 0x5d5d2f00, 0x32c6e15d, 0x12e15d2f, 0x33113917, 0x84325dc6, 0x241383ff, 0x2f33115d, + 0x0815825d, 0x2fc0f12b, 0x3031325d, 0x37363413, 0x36173727, 0x16323336, 0x07173717, 0x14151616, 0x07170706, 0x23060627, 0x07272622, 0x26263727, + 0x0a0f7237, 0x22234208, 0x23ba020e, 0x7f62811f, 0x3c3c6c2f, 0x63812e6b, 0x23251f82, 0x81607f21, 0x3c3c6b2e, 0x607f2d6e, 0x8a231f7f, 0x32574125, + 0x26425933, 0x33594226, 0x25415732, 0x6b3bd302, 0x8162812f, 0x20242420, 0x202a8281, 0x212a886d, 0x31822024, 0x3c6c2d22, 0x26212582, 0x20358926, + 0x052b5500, 0x4c042208, 0x1600b605, 0x5b409500, 0x0f011830, 0xaa160c13, 0x15150115, 0x0108040c, 0x1f0102ab, 0x02020102, 0x08288298, 0x0b03072e, + 0x0114995a, 0x0c0f1014, 0x010c8a01, 0x0c100c00, 0x07030c40, 0x600e0a0c, 0x060f070f, 0x03136012, 0x0f7f1300, 0x30020f8f, 0x13d00113, 0x1f2a4882, + 0x130f0213, 0x0b01130f, 0x755b1512, 0x2f392d07, 0x715d5d2f, 0x3333115d, 0x1132e110, 0x01220483, 0x11825e2f, 0x5d333328, 0x393232e1, 0x1e82325d, + 0x39393334, 0x5d2f3311, 0x39391233, 0x0130315d, 0x33013301, 0x01832115, 0x11231124, 0x01833521, 0x022e1182, 0xbf5a0133, 0xfeef7ffe, 0xfe2d01d3, + 0x0685b2d3, 0x85feea30, 0x02d302c0, 0x8900fde3, 0xfafe899e, 0x06820601, 0x00000324, 0xfd450200, 0x0726080a, 0x25403900, 0x30010900, 0x70094009, + 0x04098009, 0x03aa0602, 0x07100700, 0x07800740, 0x070507c0, 0x04030407, 0x05460603, 0x82392005, 0x22a083af, 0x4632e133, 0x1120070b, 0x29060f46, + 0x14069696, 0x19fef4fc, 0x5f82f3fc, 0x79005e08, 0x5e03f6ff, 0x45001f06, 0x79005a00, 0x56054b40, 0x21465108, 0x3c464c26, 0x10292946, 0xa00121ff, + 0x0221b021, 0x5cc05c21, 0x015cbf01, 0x17004646, 0x31080846, 0x00010000, 0x30001000, 0xd000c000, 0x0600f000, 0x265b0008, 0x1756054c, 0x04294c56, + 0x2e50370d, 0x0d501415, 0xe13f0001, 0x055f423f, 0x01331133, 0x5d5ec610, 0x2f323271, 0x5de110e1, 0x5dce105d, 0x2b0b835d, 0x10393912, 0x393911e1, + 0x34133031, 0x22065b55, 0x4e33023e, 0x062c0786, 0x021e1415, 0x15031e17, 0x07020e14, 0x76099955, 0x2e2508c8, 0x032e2702, 0x24238337, 0x35033e17, + 0x080e8234, 0x89030e28, 0x1f3a2d1a, 0x6437554b, 0x9d61568c, 0x8c413848, 0x18666347, 0x48465f39, 0x182a4e71, 0x451c3429, 0x9b6c3b4c, 0x254e6c60, + 0x2bc50805, 0x17375d45, 0x4c5e3311, 0x29507349, 0x653f1c9a, 0x29142348, 0x411a1521, 0x2f19526c, 0x29031726, 0x2d405333, 0x5472260f, 0x2544623d, + 0x1c8b2028, 0x1b393b27, 0x1d2f2c2e, 0x614e411c, 0x4455343e, 0x6d261031, 0x4d6f474e, 0x9e202128, 0x0e171e0f, 0x1b332718, 0x312d2d1d, 0x4e3e1f1f, + 0x3f255964, 0x0f1e373a, 0x382e240d, 0x3b402622, 0x1f081e39, 0x00003a2d, 0x05330102, 0x056a030c, 0x000b00d9, 0x40350019, 0xaf860c21, 0xc0140114, + 0x00008606, 0x00400010, 0x06040050, 0x91030f00, 0xcf099f17, 0x09300209, 0x2f000901, 0xe5335d5d, 0x5e2f0132, 0xdc1ae15d, 0x3031e15d, 0x33363401, + 0x14151632, 0x26222306, 0x0c0b5525, 0x38332408, 0x3a3a2728, 0x01382827, 0x13283877, 0x3a101a23, 0x05382826, 0x31303673, 0x32323535, 0x0c303635, + 0x821b2619, 0x00003b09, 0xff640003, 0x054406ec, 0x002500cb, 0x00550041, 0x0543406a, 0x0f0f1ac5, 0x01821a22, 0x4c262c08, 0x013400c3, 0x340134c0, + 0x26c34257, 0x0015c90a, 0x150f1fc9, 0x152f151f, 0x158f157f, 0x0806159f, 0x1f101f00, 0x1f701f60, 0x82051f80, 0x2d1f2d17, 0x513bc847, 0x00042dc8, + 0xe12fe13f, 0x2c055757, 0xe1105d5e, 0x2f01e110, 0x5dde10e1, 0x23138571, 0x102f3311, 0x4a5bbe83, 0x4e3e2008, 0x342009f5, 0x2008f941, 0x05fd7701, + 0x75150421, 0x0420057d, 0x080f5e44, 0x3d7b032f, 0x1d21405e, 0x17435f3d, 0x19383936, 0x3c353118, 0x65986623, 0x99693633, 0x3b843f64, 0xfc61343e, + 0x8a6136be, 0x6868c0a7, 0x618aa7c0, 0x280b8b36, 0xeaaf656d, 0xafea8585, 0x08078765, 0x2c1d0421, 0x4e4b7853, 0x072b5278, 0x8309110c, 0x070e120b, + 0x67aa7a42, 0x4378a765, 0x1a7f1d21, 0x8ebefe1c, 0x62892544, 0x89623535, 0x458b5c82, 0x60084d82, 0x00020000, 0x02100344, 0x00c70542, 0x002d001e, + 0x2d2f404e, 0x00e00f01, 0x021d101d, 0x2f0f2f1d, 0x2f4f2f1f, 0x2faf2f7f, 0x0be02405, 0x0b601717, 0x2d2e0b01, 0x1a0f0fe4, 0x00e42701, 0xe413c006, + 0x3f00de1a, 0xc4dc1ae1, 0x391139e1, 0x1001e12f, 0x2f325dc6, 0x105de110, 0x32e15dd6, 0x01303132, 0x0c625d27, 0x22232623, 0x05615d06, 0x15165c08, + 0x030e0311, 0x33161415, 0x35023e32, 0x1ce70135, 0x382f2712, 0x34482b23, 0x638f8d1d, 0x5a30383d, 0x7533302a, 0xc9777d3c, 0x12294433, 0x3a222a32, + 0x1d03192b, 0x19231652, 0x4d331a0d, 0x056c6633, 0x39481f04, 0x1a64161d, 0xfe7a6a24, 0x0339013a, 0x1d2b1e12, 0x2c152d33, 0x82312c41, 0x525308d3, + 0x93037300, 0x0600c703, 0x60000d00, 0x04021140, 0x500aeb0d, 0x02046004, 0x0a040a04, 0xb8090b06, 0x2140c0ff, 0x09480c09, 0x9f0f0f0f, 0x030faf0f, + 0x039feb06, 0x00060301, 0x0a070d03, 0x0303050a, 0x08050c01, 0x332f0001, 0x3912332f, 0x39122f3d, 0x82333311, 0x18012302, 0xdd825d2f, 0x322bc622, + 0x21052d42, 0xba5fe110, 0x03172605, 0x25010713, 0x3f068401, 0x75350152, 0xfe75eeee, 0x019701cb, 0xeded7436, 0x02cafe74, 0x4e9e0129, 0xa4fea4fe, + 0x1b9b014e, 0x37080a89, 0x66000100, 0x02040601, 0x05001d03, 0x24403900, 0x0701aa02, 0x96010710, 0x048b0104, 0x01047901, 0x4b010456, 0x04380104, + 0x01041201, 0x04010409, 0xb305ad04, 0x01e13f00, 0x3d06ca4d, 0x105d5d5d, 0x3031e1de, 0x11231101, 0x02043521, 0x03f9fc95, 0x01e9fd1d, 0xff009681, + 0xe17f00ff, 0x06022706, 0x00001000, 0x37430400, 0x085e0808, 0x3a001e00, 0xc2004e00, 0x16a47d40, 0x16c416b4, 0xc417b403, 0x16170217, 0x0e155201, + 0xc5160e17, 0x15140e15, 0x090e0e15, 0x1ac51900, 0x1504c509, 0x011a0004, 0x1ac01a00, 0x07031ad0, 0x1a01048f, 0x1f041a04, 0x2d00c345, 0x012dc001, + 0xc33b502d, 0xc9180e1f, 0x1b160000, 0x081a1516, 0x2c821bc9, 0x1a0f2608, 0x1a2f1a1f, 0x1a8f1a7f, 0x08061a9f, 0x1b101b00, 0x1b701b60, 0x1a051b80, + 0x261b1a1b, 0x1334c840, 0x0426c84a, 0x057a7100, 0x2f2f3931, 0x715d5e5d, 0x3311e110, 0x39121133, 0x4332e110, 0x1b830c7b, 0x15821120, 0x11321782, + 0x2b108739, 0x87c10010, 0xc4102b05, 0x30315d01, 0xb35a015d, 0x05233406, 0x07020e14, 0x021e1716, 0x03231717, 0x11231123, 0x43163233, 0x023d1f8f, + 0x4f5b48e7, 0x01465953, 0x392d1b92, 0x1735431f, 0x0a0a212a, 0x9d5fceb3, 0xfb9ea8e9, 0x288943eb, 0x4800033b, 0x813b4a45, 0x28394b30, 0x25576e0d, + 0x11113847, 0xa0fe6001, 0xfe827d03, 0x288343c3, 0xfaff0128, 0x06041406, 0x6561a006, 0x04270819, 0x04f4fb06, 0x8c14060c, 0x00020000, 0x0256037b, + 0x00cb05f2, 0x00270013, 0x1e2c4043, 0x9f290aab, 0xaa140129, 0x82400030, 0xae19301d, 0x0f200f10, 0xf00fe002, 0x0f6f020f, 0x830f0001, 0x0603260e, + 0xae230f0f, 0x05627605, 0x5d5d5e2d, 0x01e1715d, 0x5de15d2f, 0x46e1d610, 0x335c05c7, 0x0fbb440b, 0x55327b2a, 0x73414173, 0x56323256, 0x552c0783, + 0x341e7b32, 0x46282846, 0x351e1e35, 0x34230783, 0x888f041e, 0x5572351e, 0x72553131, 0x34452741, 0x45341e1e, 0x35472827, 0x47351f1f, 0x2a089782, + 0x04000066, 0x00a20402, 0x000f000b, 0x1021403a, 0x080f0111, 0xaa090608, 0x0301010c, 0x200100ef, 0xa0006000, 0x0d000300, 0x18090cad, 0x20094243, + 0x29a6832f, 0x1133335d, 0x3232e133, 0x43183311, 0x35240f4a, 0xe9011521, 0x094e4318, 0x037dfe23, 0x5243189c, 0xfe420809, 0x009696fa, 0x02310001, + 0x056d024a, 0x001e00c9, 0x08154040, 0x201700e1, 0x207f204f, 0x06402002, 0xe11d480a, 0x010f0f01, 0x40c0ffb8, 0x4818150e, 0x0b1d0801, 0x1dde12e5, + 0x00dd01e5, 0xe13fe13f, 0xdd4c3912, 0x5d2b2f06, 0xe132de10, 0x21013031, 0x033e3735, 0xc8443435, 0x05f85709, 0x07073908, 0xfd6d0221, 0x4839d1c4, + 0x36420f28, 0x4e2d5d33, 0x3c528536, 0x1d254461, 0x94334f36, 0x4a028c01, 0x553ee470, 0x41223b43, 0x5e263240, 0x3f214130, 0x5632395b, 0x9d375b55, + 0x1f249f82, 0x68023902, 0x30389f82, 0x3c406100, 0x19190003, 0xe11e060e, 0xe1150000, 0x325f3206, 0x3202328f, 0x272aa883, 0x19400e27, 0x030e4820, + 0x5f43e419, 0x1a5f3505, 0x08051adf, 0x26121a1a, 0xde2ce523, 0x0b0fe512, 0x333f00df, 0x3326b482, 0x5e2f3912, 0xba85e15d, 0xe124b883, 0x11e12f33, + 0x12211482, 0x21c08239, 0x94480614, 0x1616210b, 0x20074243, 0x08088435, 0x23022e5d, 0x27070622, 0x3233033e, 0x4e02021e, 0x58584551, 0x567e5328, + 0x3f397b46, 0x58623584, 0x6262606b, 0x2314545c, 0x613b1b2f, 0x3d1d4533, 0x452c4c44, 0x04234669, 0x186a4ee7, 0x3c4e6a17, 0x19284764, 0x2622851f, + 0x434a4953, 0x20404f71, 0x290e1e2f, 0x25176025, 0x3c220f1a, 0x64010053, 0x062e0d1d, 0x0f800500, 0x020c5f0c, 0x5d2f000c, 0x1d64cd1a, 0x3e3d0805, + 0x15333703, 0x2307030e, 0x2f168901, 0xdb102a2f, 0x514d3f10, 0xf4047923, 0x51514c1d, 0x511b1522, 0x001c5358, 0xae000100, 0x120414fe, 0x1d004a04, + 0x22403700, 0x0a47090d, 0x1f101f55, 0x07db4720, 0x471d1435, 0x1a1e541c, 0x1150031b, 0x1c150b16, 0x3f000f09, 0x703f3f33, 0x3223052b, 0x7df6105d, + 0x7b460525, 0x33112505, 0x23272311, 0x6f05174c, 0x333b0796, 0x6f6a6401, 0x1c436e52, 0x0a1b93b6, 0x48679030, 0x0201236a, 0xb6b60102, 0x56828701, + 0x932d0830, 0x2a2e5453, 0x55232826, 0x06c0fe2a, 0x28938236, 0x04fcfe71, 0x00140666, 0x08938213, 0x9904212d, 0x05300500, 0x05500540, 0x05050604, + 0x0099010d, 0x01151015, 0x0d100d00, 0x12030d02, 0x00000500, 0xc13f322f, 0x5d5d2f01, 0x41e1d610, 0xcc6005b1, 0x06112107, 0x0807b75f, 0x04213324, + 0x79cf7866, 0x9b5f553d, 0x77413c6d, 0x330264a6, 0x7906fcfe, 0x330387f9, 0xc0763312, 0x78c5938c, 0x79820032, 0x48029326, 0x5e039101, 0x332b7982, + 0x15101a40, 0x15901580, 0x180415a0, 0x271d9e45, 0x2b2f01e5, 0x5ded5d5d, 0x2011fd43, 0x0f197a93, 0x4fd30221, 0x360812a9, 0x0114fe23, 0x00000098, + 0x40390019, 0x1313141f, 0x8f127f15, 0x12120212, 0x00840d06, 0x121a061b, 0x0940158c, 0x1515480e, 0x038d0a13, 0x2fe12f00, 0xe12b2f39, 0x82c61001, + 0x391127ed, 0x33335d2f, 0xef823311, 0xea821420, 0x35272622, 0x08068642, 0x27022e34, 0x1e073337, 0x8d980103, 0x0f2d1696, 0x4710310f, 0x3f2e1a50, + 0x39795a25, 0x192b3a22, 0x6c61e1fe, 0x036c0306, 0x18312b03, 0x09131a23, 0x1a0873b0, 0xff833a29, 0x023f3c08, 0x05ba014a, 0x000e00b6, 0x4f214034, + 0x02107f10, 0x0a064010, 0x020e0e48, 0x037f00e1, 0x2002038f, 0x02033003, 0x0ddd0203, 0xdc00e509, 0xcde13f00, 0x5d2f013f, 0x33e1335d, 0x525d2b2f, + 0x53080572, 0x023e3411, 0x07060637, 0x33012707, 0x03019187, 0x260e0103, 0x054a5e16, 0x0294fcb6, 0x3c3c1904, 0x28111638, 0x00604911, 0x42000200, + 0x8b021003, 0x1300c705, 0x2e001f00, 0x00e01ab2, 0x40c0ffb8, 0x480f0914, 0x210f2100, 0x0ae01401, 0x05e41720, 0x0fe41dc0, 0x82051b49, 0xe1d625f5, + 0x2bd6105d, 0x5b070170, 0xd35c0a6c, 0x0234080b, 0x6d4d298b, 0x4e6a3f44, 0x6d4c292b, 0x4e6b3e44, 0x4b3afe2c, 0x4b4b5556, 0x044b5655, 0x5982536d, + 0x82592f2f, 0x58815353, 0x81582e2e, 0x79797753, 0x73737877, 0x54248f83, 0x96037300, 0x2206eb48, 0x482f4056, 0x072406d0, 0x0a0204eb, 0x03370182, + 0x000e090b, 0x01039feb, 0x03200310, 0x03030340, 0x060a070d, 0x820a0300, 0x0be34801, 0x2f3d3923, 0x09e3482f, 0x10e15d23, 0x05e248c6, 0xe133112d, + 0x0130315d, 0x03132701, 0x85050137, 0x03200806, 0x74cafe96, 0x0174eded, 0xfe68fe36, 0xeeee75cb, 0x02350175, 0x4e65fe0e, 0x5c015c01, 0x1b62fe4e, + 0x3f080a89, 0x00ffff00, 0x0500003f, 0x00b6058b, 0x007b0026, 0x02270000, 0x004a0217, 0x02070100, 0xfdfc023c, 0x403000b7, 0x1602031d, 0xbf020318, + 0x168f0116, 0x01163f01, 0x11400116, 0x01110001, 0x00400011, 0x5d230782, 0x845d1135, 0x355d2603, 0x353f0035, 0x20518235, 0x2051822c, 0x205185a0, + 0x205185ed, 0x23518335, 0x33037400, 0x282d5182, 0x14021840, 0x14000218, 0xb0011401, 0x244c8311, 0x00700011, 0x844c8501, 0x83518249, 0x2049824a, + 0x2249821f, 0x82c905ce, 0x8675209b, 0x83a8209b, 0x3c022349, 0x49823f03, 0x27403c25, 0x82380203, 0x7021089b, 0x38500138, 0xb4013801, 0x33a40133, + 0x01338401, 0x50013364, 0x33300133, 0x01332001, 0x014c0f33, 0x20a3825d, 0x8400835d, 0x32a784ac, 0x44000200, 0x440377fe, 0x27005e04, 0x44003b00, + 0x7d321240, 0x320806ff, 0x0f3d140b, 0x0b08013d, 0xffb81c46, 0x0f1040c0, 0x0b1c481b, 0x2d272717, 0x1310379b, 0x00175110, 0x3f33e12f, 0x122f32e5, + 0x2b2f0139, 0x105d5ee1, 0x823911ce, 0xe12f2912, 0x15013031, 0x07020e14, 0x2406e563, 0x17373632, 0x082b4406, 0x033e3724, 0x7c533535, 0x5002240f, + 0x7e412710, 0x37340705, 0x40459654, 0x5d61bc52, 0x1b386795, 0x34365135, 0xba0e2642, 0x24119953, 0x515b3a25, 0x09057e4c, 0x92233335, 0x60333a2a, + 0x6844588a, 0x2d2f545a, 0x2b433e43, 0x442f0113, 0xff220e10, 0x008200ff, 0xdd042608, 0x26027307, 0x00002400, 0x43000701, 0x5201bdff, 0x02b41500, + 0x02260515, 0xb49cffb8, 0x0704151b, 0x352b0125, 0x92028200, 0x0076222f, 0x242f828d, 0x020b4013, 0x22308221, 0x9b1b156c, 0x4b01232d, 0x5d8b1f00, + 0x1db4ff22, 0x35205d93, 0x2b828d87, 0x5d860620, 0x5d821d20, 0x2c1e0122, 0x2b205d92, 0x6a22bb88, 0x2d822100, 0x0d40172c, 0x051e0203, 0x01020326, + 0x2f852915, 0x3521bc83, 0x20bd8800, 0x08318604, 0x50010624, 0x31007d1f, 0x02032040, 0xdf011aef, 0x1a50011a, 0x011a4001, 0x10011a20, 0x1a00011a, + 0x02031a01, 0xa0861f00, 0x42003521, 0x3208082a, 0x02000035, 0x0000feff, 0xb6055606, 0x13000f00, 0x2a408400, 0x0e0a1306, 0x0111015a, 0x13040310, + 0x240113a9, 0x54133413, 0x01100313, 0x010c1401, 0x820c0113, 0x033b0804, 0x67000805, 0xb8050415, 0x2040f0ff, 0x5f130905, 0x105f0306, 0x4f0a5f0d, + 0x0a0f010a, 0x08020aaf, 0x0a100a10, 0x0e040306, 0x1201055f, 0xe1333f00, 0x39393f2f, 0x5d5e2f2f, 0x83e11071, 0x01322801, 0x1033382f, 0x7f1132e6, + 0x5d270648, 0xc4877d5d, 0x520111c4, 0xef7a0521, 0x23032205, 0x06537a01, 0x21115208, 0x23112101, 0x08fd5606, 0xbacb25fe, 0xc9038f02, 0x1602c3fd, + 0x3d02eafd, 0x930175fb, 0xfec5016c, 0xa4b6053b, 0xfda23cfe, 0x02c601f8, 0xffff00a8, 0x14fe7d00, 0xcb059804, 0x26002602, 0x07010000, 0xfc017a00, + 0x0b000000, 0x2a4f01b6, 0x25201824, 0x05ff4101, 0x0000c72a, 0x7307be03, 0x28002602, 0x43342584, 0x5201b7ff, 0x01b41500, 0x0126050c, 0xb4c2ffb8, + 0x00010c12, 0x8f0a2f42, 0x0076222f, 0x05d1413f, 0x82180121, 0x0c4a2230, 0x232d9b12, 0xf1ff4b01, 0xfd225d8b, 0x5d9314b4, 0x8d882b20, 0xf5ff6a22, + 0x29050142, 0x05150102, 0x01010226, 0x5f85200c, 0x24080142, 0x0200003e, 0x20bf8464, 0x21bf852c, 0x618bb5fe, 0xbf8fa820, 0x2f825220, 0x2f8a8a20, + 0x78ff7622, 0x6a20bf8a, 0x1120bf8e, 0xa9202d82, 0xbf822d89, 0x2d860f20, 0xed820c20, 0xbd8e0220, 0x2d824020, 0x83077721, 0x228b85bd, 0x8c0dff6a, + 0x8d0020bd, 0x004008bd, 0x002f0002, 0x05fc0400, 0x001000b6, 0x405d001f, 0x0e1a1a3a, 0x67085b11, 0x01212021, 0x0e5a1c18, 0x0e011010, 0x101b2064, + 0x000f185f, 0x3f000f01, 0xaf006f00, 0xff00df00, 0x00080600, 0x481d1a40, 0x22086e82, 0x120e601c, 0x03026017, 0x3fe13f00, 0x2f3911e1, 0x715d5e2b, + 0x0132e133, 0x3232e610, 0x32e1102f, 0x83f6105d, 0x30312316, 0xd17d3313, 0x14153805, 0x23040602, 0x25231121, 0x23022e34, 0x15211123, 0x20331121, + 0x7d982f00, 0x450805d7, 0xf7feb660, 0x9892fea8, 0x7e420804, 0x01c975b8, 0xa2b0fe50, 0x0c010801, 0x91022503, 0xf4feb55c, 0xe9feb9b0, 0x83025ebb, + 0x8ad59260, 0xa20efe43, 0x24011dfe, 0xc700ffff, 0x0e050000, 0x26023507, 0x00003100, 0xf5820701, 0x27418b20, 0x05202706, 0x210a0126, 0x43420a2f, + 0xff7d260b, 0x077105ec, 0x202d8273, 0x05b34132, 0x82540021, 0xb4152c2d, 0x26052802, 0xabffb802, 0x9c282eb4, 0x0176222f, 0x215d8502, 0x30823402, + 0x2e285822, 0x01232d9b, 0x86ae004b, 0x215e832d, 0x5b933005, 0x8b84b983, 0x7d202982, 0x30208b85, 0xf0238b84, 0x923f31b4, 0x882b205d, 0x006a22bb, + 0x05e341aa, 0x31020329, 0x02032605, 0x853c2801, 0x05a1422f, 0x01002108, 0x2d018d00, 0x7b04dd03, 0x87000b00, 0xff0600b9, 0x1714b3f0, 0xffb80648, + 0x0f1840e0, 0x10004812, 0x00210d82, 0x20098220, 0x20098309, 0x21098309, 0x2485b803, 0xe0220782, 0x1a823040, 0x010d4034, 0x03050507, 0x5001010b, + 0x08030103, 0x02040a0a, 0x59822002, 0x0020002a, 0x00700050, 0x00a00080, 0x2c054a55, 0xb3000609, 0x5e3f1900, 0x1132715d, 0x24028233, 0x335d2f01, + 0x24018411, 0x0030315d, 0x2000822b, 0x08048401, 0x01370156, 0x01011701, 0x27010107, 0xc2fecb01, 0x013d0169, 0xbffe6842, 0xfe663f01, 0x67c3febe, + 0x3f01d302, 0x01c2fe69, 0xbffe673e, 0x0166c0fe, 0x67c5fe3d, 0x00030000, 0x05b4ff7d, 0x00fc0571, 0x0026001a, 0x405c0031, 0x2a1f293a, 0x271b041e, + 0x0b19015b, 0x0411040e, 0x390fff78, 0x66115b1b, 0x1e291f32, 0x222d042a, 0x0e01195f, 0x1a09040b, 0x5f2d0416, 0x5477090c, 0x17122606, 0x1711e139, + 0x09617a39, 0x10830c82, 0x01303132, 0x15121607, 0x06060214, 0x07272223, 0x02263727, 0x070c5018, 0x37178008, 0x17161401, 0x23262601, 0x05020e22, + 0x16012710, 0x3e323316, 0x5c140502, 0xa0515e5b, 0x85bd9bed, 0x615a894e, 0xf09e4c5b, 0x42a15ea3, 0x2eb7fc50, 0x30430230, 0xa6724772, 0x6a03346c, + 0x2fbefd58, 0xa5724572, 0xae05326b, 0xdefe6395, 0xeafea9b7, 0x7f476cc6, 0x0164914e, 0x01aabe2a, 0x2a6bc415, 0xe1fc7f26, 0x034ed183, 0x51201db1, + 0x018ada97, 0x54fc9701, 0x99511e1c, 0x00ffffdb, 0x47ecffb8, 0x3820065d, 0x3106b942, 0x0052013d, 0x1801b415, 0xb8012605, 0x1eb4c0ff, 0xe9420b18, + 0x222f8f0b, 0x42c50076, 0x0121058b, 0x22308224, 0x9b1e1848, 0x4b01232d, 0x5d8b7900, 0x20b4fd22, 0x2b235d93, 0x85002602, 0x006a228d, 0x058b427d, + 0x21010229, 0x01022605, 0x852c1801, 0x0c2f475f, 0x73073722, 0x3c203182, 0x7622bf84, 0x8f863100, 0x8f821520, 0x0f096324, 0xeb450207, 0x02002207, + 0x077b7b00, 0x1b00103f, 0x21403c00, 0x67005b17, 0x011d9f1d, 0x11011d10, 0x085a070b, 0x60111c64, 0x0b601b06, 0x20018206, 0x06707b07, 0x39391228, + 0xe1102f2f, 0x1871e110, 0x685d2005, 0x012c05c1, 0x23020e14, 0x11231123, 0x32331533, 0x2113737b, 0x737bb0ba, 0x0e032b0d, 0x4d81a85b, 0xb605c3fe, + 0x747b39fc, 0x888f2107, 0x5d08b282, 0xecffae00, 0x1f067504, 0x6d004b00, 0x46074840, 0x0047352e, 0x191f190f, 0x1903192f, 0x48130d40, 0x2e6f2e5f, + 0x1f000f02, 0x03002f00, 0x002e1908, 0x03192e00, 0x11472441, 0x4d104d57, 0x4dc04d20, 0x41474003, 0x07244c54, 0x3a160335, 0x41014750, 0x1a501f15, + 0x3f001616, 0x3f3fe133, 0x8a4212e1, 0xf6102106, 0x2f270a83, 0x5d5e2f2f, 0x835d2b5d, 0x303121cd, 0x0421c282, 0x09525815, 0xf7792320, 0x0b576607, + 0x34350426, 0x2223022e, 0x20050167, 0x05bc7034, 0xf2035308, 0x3f4b3f2b, 0x46270e2b, 0x3d583839, 0x8d653821, 0x358b6155, 0x4c48411a, 0x34513825, + 0x482b1118, 0x35553f38, 0x483e2916, 0x3c21293e, 0x58313353, 0x3fb62742, 0x5c5c9c71, 0x043c6c98, 0x495939ec, 0x1e36373c, 0x31272115, 0x52482526, + 0x7e573e60, 0x78662751, 0x194d0806, 0x2428402d, 0x233a383b, 0x46434428, 0x3f4f362a, 0x2c433a36, 0x13293e2a, 0x41533013, 0xb0044efb, 0x25558d68, + 0xff744c26, 0xff5e00ff, 0x069c03ec, 0x00260221, 0x01000044, 0x94430006, 0xb4150000, 0x26113302, 0xe5ffb802, 0x0c3339b4, 0x07f74122, 0x76282d92, + 0x13000035, 0x3f020b40, 0x85222e82, 0x2b9b3933, 0xe24b0122, 0x5a832b85, 0x923b3321, 0xe3052157, 0x01228587, 0x2b85bd52, 0x57823b20, 0x4a3c2922, + 0x05215791, 0x30b188d9, 0x0000de6a, 0x030d4017, 0x26113c02, 0x332f0203, 0x422d8547, 0xe18508d9, 0x5b888720, 0x2f875020, 0x2f833820, 0x863d3021, + 0x222f8589, 0x82000300, 0x0661082f, 0x005e0444, 0x00470038, 0x407c0050, 0x4b142f1a, 0x4204481e, 0x484c0042, 0x52571d26, 0x525f524f, 0x3903529f, + 0xb80e0048, 0x2e40c0ff, 0x0e48110d, 0x5156000e, 0x42104200, 0x501e4202, 0x04100400, 0x4b0f0402, 0x07024b1f, 0x21114b4b, 0x2c2f503c, 0x0d481634, + 0x1417500a, 0x3f001011, 0x32e13333, 0x36058432, 0x5e2f3911, 0xe15d335d, 0x10015d32, 0x2b2f32e6, 0x105de110, 0x5fe132f6, 0xbe5a0505, 0x0ff87405, + 0x74171621, 0x152006fe, 0x230a2e72, 0x27262223, 0x2205c657, 0x57161437, 0x072405af, 0x2201030e, 0x20054472, 0x0d0f755e, 0xa6832708, 0x67a6332b, + 0x396c9a61, 0x930560fd, 0x4e553193, 0x4b27254a, 0x8a31554f, 0x4c223eca, 0x474a745f, 0xbd345a7b, 0x31754f61, 0x85032b08, 0x010b7f6e, 0x54371ad7, + 0x33753301, 0x5d55230d, 0x74725d55, 0x73722c0f, 0x1f3b5536, 0x527b5127, 0x7526565c, 0x0237084c, 0x44959c63, 0x002c5071, 0x7100ffff, 0x6f0314fe, + 0x26025e04, 0x4a004600, 0x422c057d, 0x0b000000, 0x262f01b6, 0x250d0520, 0x26067d4a, 0x03ecff71, 0x822106e1, 0x42482025, 0x282b0b97, 0xb8022611, + 0x2eb4b9ff, 0x420f0528, 0x2d8f0a97, 0x42527621, 0x3420053f, 0x76222e82, 0x2b9b2e28, 0xde4b0122, 0x5a832b85, 0x92300321, 0xd9052157, 0x6a218588, + 0x066b42da, 0x26113127, 0x28000203, 0x4259853c, 0xff22053b, 0x4a82ffff, 0x84670121, 0x84f320b5, 0xfe4322db, 0x2cdb8255, 0x0401b415, 0xb8012611, + 0x0ab49aff, 0x0c054b04, 0x0000ae24, 0x2f8a4202, 0x30ff7622, 0x13242f82, 0x10010b40, 0x74223082, 0x2d8b0a04, 0x82bdff21, 0x8955202d, 0x4b01232d, + 0x2d86bbfe, 0x00215e83, 0x215b8c0c, 0x2d82eeff, 0xbb842520, 0x6a208b85, 0x172c2d84, 0x01020d40, 0x0226110d, 0x18040001, 0x080b314b, 0x00020061, + 0x04ecff6f, 0x0023062d, 0x00390027, 0x12464074, 0x23004828, 0x04191620, 0x1c18221c, 0x181c2222, 0x57000a03, 0xd03b403b, 0x033be03b, 0x06013b0f, + 0x560a4832, 0x2319203a, 0x21170416, 0x502d1d21, 0xaf0f120f, 0x020fbf0f, 0x17010f30, 0x1d0f170f, 0x05503701, 0xe13f0016, 0x2f39393f, 0x615d5d2f, + 0x112005ee, 0x24064b45, 0x105d5d5e, 0x05e24ce6, 0x10201283, 0x6e05f253, 0x16270b51, 0x26263717, 0x83270527, 0x16372105, 0x17240d82, 0x07031e07, + 0x25074845, 0x33021e14, 0x676e3632, 0x68870805, 0x3f477faf, 0x6669a876, 0x1f082b9a, 0x00ff5a78, 0x5528d94a, 0x7a41462f, 0xc34ae33b, 0x2c4f6f43, + 0x6e4622bc, 0x466d4d4b, 0x6d472121, 0x02879a4c, 0x98dc8e3d, 0xb97f424f, 0x7eb87777, 0x043c3b41, 0x9951c076, 0x371c8372, 0x48207b1a, 0x75718a2c, + 0xddbb9c41, 0x526b38b0, 0x83582e32, 0x5a7d4c55, 0xff00c731, 0x00ae00ff, 0x05120400, 0x002602e3, 0x01000051, 0xf9520106, 0x40130000, 0x1121010b, + 0x22020126, 0x42170b30, 0x04230d91, 0x8221062d, 0x4252202b, 0xd82f05bf, 0xb4150000, 0x26112002, 0xd7ffb802, 0x4a2026b4, 0x71220c3b, 0x2d8cecff, + 0x84507621, 0x2c022159, 0x4e222e82, 0x2b9b2620, 0xfb4b0122, 0xfa22598a, 0x599228b4, 0x8784b384, 0xe2520122, 0x28202d84, 0xfd238784, 0x913729b4, + 0xd905215b, 0x6a2bb588, 0x190000f9, 0x290203b6, 0x82032611, 0xb4f923b7, 0xc34a3420, 0x0375080c, 0xf8006600, 0xac040204, 0x17000300, 0x60002b00, + 0x2d301540, 0x18aa2201, 0x56aa0e18, 0x02036603, 0x03380328, 0xb8000302, 0x2840f0ff, 0x00480d09, 0x10ad2704, 0x1d0f011d, 0x011d1d01, 0x1300ad09, + 0x13201310, 0x13b01360, 0x13d013c0, 0x13130707, 0xb301ad00, 0x33e13f00, 0xe15d5e2f, 0x5d2f3311, 0x2f01e171, 0x5d332b33, 0x2f33e15d, 0x30315de1, + 0x15213513, 0x43521801, 0x5352180e, 0x0366340f, 0x12bffd9c, 0x1718291f, 0x1212202a, 0x18172a20, 0x8f121f29, 0x8702360f, 0xeefe9696, 0x0d1e2f23, + 0x232f1e0d, 0x0e1f2f21, 0x022f1f0e, 0x08108edb, 0x03000055, 0xb4ff7300, 0x91042f04, 0x24001a00, 0x5c002d00, 0x1f273b40, 0x1b041e28, 0x18174825, + 0x08071516, 0x0d08090a, 0x402f5700, 0xe02fd02f, 0x2f0f032f, 0x481b0601, 0x282e560d, 0x041f271e, 0x0750222b, 0x0415180a, 0x10121605, 0x0508502b, + 0xc63f0016, 0x4ac63fe1, 0x5e240adc, 0xf6105d5d, 0x2209db4a, 0x4a020e14, 0x262106d6, 0x27e58435, 0x17371716, 0x05161607, 0x2207d94a, 0x4a340506, + 0x363405d8, 0x7d432f04, 0x627d6fb2, 0x3f508344, 0xb37c4346, 0x31713f6f, 0x3e330b82, 0x1300fd45, 0x1d8d0116, 0x879a2d4b, 0xfe274402, 0x83481f72, + 0x89272909, 0x354c91d5, 0x48834a6d, 0x08057671, 0x6c1c1d26, 0xd1498149, 0x33835486, 0x12118702, 0x639fd1cf, 0x10117bfd, 0xffff00d3, 0xecffa400, + 0x21060804, 0x58002602, 0x3105bb42, 0x150000a3, 0x111b01b4, 0xffb80126, 0x1b21b49b, 0xe942190c, 0x282d8f0a, 0x00006076, 0x010b4013, 0x222e8227, + 0x9b211b57, 0x4b01222b, 0x832b8508, 0x2300215a, 0x05215792, 0x2b8588d9, 0x0000026a, 0x0102b619, 0x02261124, 0xfb238782, 0x852f1bb4, 0x08e9475b, + 0x14fe0a24, 0xb784df03, 0xb7845c20, 0x850e7621, 0x822f205d, 0x23672389, 0x31460029, 0x07677208, 0x14062a08, 0x31002000, 0x1f403800, 0x570a482f, + 0x01331033, 0x151f2027, 0x541c471b, 0x1b001d32, 0x15502c1b, 0x5021160f, 0x00100500, 0x0a8d7a3f, 0x00823220, 0x5906bd4a, 0x15250587, 0x23020e14, + 0x0c747222, 0x25071122, 0x210d6a72, 0x5c726401, 0x06de7b0b, 0x02030328, 0x08b6b604, 0xc2711f01, 0xb603210b, 0x720b5e72, 0x08250a78, 0x9436fe00, + 0x0d6d7211, 0x00ffff22, 0x0524f584, 0x002602d9, 0x6a30f585, 0x170000b1, 0x01020d40, 0x0226112c, 0x37230b01, 0xe94bf785, 0x06dd220c, 0x087953c1, + 0x33004d22, 0x2905a953, 0x02260517, 0xb4ffffb8, 0x7b531615, 0xff5e260c, 0x059c03ec, 0x083f496f, 0x49e64d21, 0x352005c7, 0x23225e82, 0x6d493433, + 0x0c335405, 0x5b884020, 0x21004e22, 0x2105454c, 0x5c821a02, 0x86086253, 0x2059852d, 0x215988ee, 0x5985d44e, 0x59823820, 0x97492520, 0x262b8607, + 0x0442fe00, 0x88bc05dd, 0x03512659, 0x00000062, 0x3ae78214, 0x30012780, 0x27000127, 0x25000027, 0x5d5d2b01, 0x00ffff35, 0x0342fe5e, 0x865e04b8, + 0x01072459, 0x825a0251, 0x4020352d, 0x45f00216, 0x0145a001, 0x80014590, 0x45300145, 0x45450001, 0x5d203686, 0x7d263985, 0x9804ecff, 0x1b537307, + 0x01762208, 0x27c1850a, 0x26053001, 0x2a24cd01, 0x53062053, 0x71260523, 0x6f03ecff, 0xcb482106, 0x00063606, 0x00004a76, 0x010e4017, 0x0126112c, + 0xa7012010, 0x0d052620, 0x20948225, 0x8ec58635, 0x4b01235d, 0xf54db400, 0x2c77210a, 0x89077e53, 0x898f205d, 0x4b01225d, 0x205d85f5, 0x235d8320, + 0x28530128, 0x20052f49, 0x205d8d5d, 0x23bb8737, 0x00024f01, 0x2f205d86, 0x8022bb82, 0xbb912c24, 0x86e50521, 0x010725bb, 0x0033014f, 0x2b205f85, + 0x4d22bd85, 0xbd9d2820, 0xa8004c22, 0x29205f86, 0x6b215f82, 0x20bd912f, 0x21bd8aa0, 0x5d85064c, 0x5d832520, 0x64012b23, 0x26bd8e2b, 0x040000c7, + 0x827307fc, 0x0027288f, 0x01070100, 0x424a004c, 0x1d2a0597, 0xb8022605, 0x23b4b7ff, 0x414f0618, 0xff71260b, 0x065205ec, 0x202f8214, 0x232f8347, + 0xd9023802, 0x0b28bf82, 0x3e5e02b6, 0x251d1d3e, 0x5306474a, 0x02230647, 0x82920006, 0x0002211d, 0x42083582, 0x14069e04, 0x38002700, 0x31405500, + 0x2d001b1f, 0x1d1d2647, 0x5526220b, 0x013a103a, 0x560b4836, 0x25152739, 0x1e224f1d, 0x0020101e, 0x00165033, 0x20101010, 0x10100310, 0x06005028, + 0x333f0016, 0x825d3fe1, 0x39122503, 0x32e1332f, 0x2b06b575, 0x391132e6, 0x32e1102f, 0x30313232, 0x6716a47e, 0x152305a7, 0x7e231533, 0xfe272aac, + 0xb67b0185, 0x7e939c9c, 0x250812b2, 0x86cc8a46, 0x478bce87, 0x203a2c19, 0x371a1f21, 0xb6899e10, 0x2bfb89b6, 0x85592c83, 0x9561275a, 0xc3cf3466, + 0x8153c3c6, 0xbe032305, 0x3955c106, 0x4d012207, 0x07d14200, 0x26050e26, 0x0d0c0201, 0x260c914a, 0x03ecff71, 0x4a6f05e1, 0x2d8207f1, 0x26059343, + 0x0226112a, 0x4b292811, 0xf1550c49, 0x88402005, 0xff4e2259, 0x060f42fb, 0x59821120, 0x55160621, 0x59850dc1, 0x5988ee20, 0x85ea4e21, 0x822d2059, + 0x320f2159, 0x850d774b, 0x881a2059, 0x014f2a59, 0x0035013f, 0x010b4013, 0x22598217, 0x92140c07, 0x86e520b3, 0x01072559, 0x002b014f, 0x33205b85, + 0x0c225b82, 0xb58d3028, 0x0342fe25, 0x88b605be, 0x0251225b, 0x382d8221, 0x0100b90e, 0x12b4c1ff, 0x25000012, 0xff352b01, 0xfe7100ff, 0x04e10361, + 0x0855885e, 0x3b025123, 0x27001f00, 0xf0021340, 0x3be0013b, 0x013ba001, 0x50013b90, 0x3b00013b, 0xcaffb801, 0x1a3b3bb4, 0x203a821a, 0x2100845d, + 0x79410035, 0x09415707, 0xff4c0123, 0x0a1f41f9, 0x41170421, 0xf14c121f, 0x4c012209, 0x091f41e4, 0x41330921, 0x7d240d1f, 0xf204ecff, 0x2a285984, + 0x07010000, 0xd7004b01, 0x2c285986, 0x6d012605, 0x010c2c34, 0x240aa147, 0x0314fe25, 0x205984fc, 0x232d824a, 0xc64b0106, 0x03285984, 0x0326115f, + 0x275f6703, 0x820e8155, 0x82402059, 0x225985f5, 0x86c9004e, 0x82312059, 0x365f2159, 0x05215992, 0x852d82ee, 0xb14e2759, 0xb4150000, 0x58826403, + 0xefffb824, 0x5b9369b4, 0x5b883720, 0x0c024f22, 0x37205b86, 0x2c215b83, 0x21b59134, 0x5b86e505, 0x4f010725, 0x8400f200, 0x846a205d, 0xb4ec235d, + 0xb98d675f, 0x043bfe25, 0x87cb05f2, 0x3902235d, 0x2f821701, 0x01b60b25, 0x86322c51, 0xffff2258, 0x0e0b4100, 0x2d3a0222, 0x83050b41, 0x651c21b2, + 0xc726af8d, 0xd5040000, 0x51827307, 0x41002b21, 0x7f200565, 0x240b4158, 0x0c14b4ff, 0x0b3b4105, 0x2f82ae20, 0xaa071222, 0x4b202f82, 0x2b392f86, + 0x1f008901, 0x0d701440, 0x010c7001, 0x011a7001, 0x0126021a, 0x0b1a2219, 0x059e4118, 0x5d355d27, 0x0200005d, 0x08008200, 0x059c0530, 0x001300b6, + 0x40560017, 0x0c04142f, 0x650b075a, 0x0119b019, 0x100119af, 0x03170119, 0x10005a0f, 0x5f0e1864, 0x120a1617, 0x03071360, 0x01821713, 0x0b100124, + 0x496c0512, 0x12332505, 0x2f2f3939, 0x2205466c, 0x7ee11032, 0x323005d7, 0x105d5d5d, 0x32e132f6, 0x13303132, 0x21153335, 0x33260382, 0x23112315, + 0x03822111, 0x01352338, 0xc7152135, 0xba9a02ba, 0xfdbac7c7, 0x04c7ba66, 0x0466fd1b, 0x0082f3c3, 0xfb964f08, 0xfdaa02d3, 0x962d0456, 0xdfdf8bfe, + 0x12000100, 0x12040000, 0x21001406, 0x34405500, 0x47000b13, 0x10235521, 0x80236023, 0x16170323, 0x0f470a12, 0x1522540b, 0xbf124f0d, 0x020ecf0e, + 0x17100e0e, 0x1d005004, 0x1d201d10, 0x10101d03, 0xea7f0b00, 0xe15d2106, 0x2f24a782, 0x32e1335d, 0x3220a086, 0xe1229f82, 0x777d3912, 0x3523220d, + 0x23a88233, 0x15211521, 0x2711fe7f, 0x01b69c9c, 0x0885fe7b, 0x08044018, 0x829a2f08, 0x94663482, 0x04f0fd60, 0xb6b689d5, 0x2b90b889, 0xbf142a3f, + 0x005cfdd2, 0xf5ffffff, 0xc4020000, 0x26023507, 0x00002c00, 0x52010701, 0x7142f3fe, 0x05142606, 0x15010126, 0x0b474423, 0x82a3ff21, 0x0572222d, + 0x202d82e3, 0x202d86f3, 0x054744a1, 0x110c0122, 0x0d212d82, 0x0c75441b, 0x2d823d20, 0xc1067c22, 0x4d225b88, 0x5b8622ff, 0x5b830e20, 0x210d5745, + 0x2d82ebff, 0x6f052a22, 0x4d225b88, 0x5b86d0fe, 0x5b830620, 0x8c050421, 0x8230205b, 0x078a222d, 0x215b8840, 0x5d5aff4e, 0x82112007, 0x4502205b, + 0xff210d59, 0x222d82de, 0x88ee0538, 0xfe4e225b, 0x205b86bd, 0x215b8209, 0x17500e02, 0x5200270c, 0x640242fe, 0x5b88b605, 0x9c005122, 0x21052743, + 0xa25b1900, 0xffff2907, 0x42fe4400, 0xe5058301, 0x4c2f2582, 0x06010000, 0x00255101, 0x0a401000, 0x82256f02, 0x240b82a8, 0x5d2b0125, 0x20278235, + 0x227b8252, 0x88370764, 0x004f224d, 0x06054150, 0xa9821720, 0xa9450020, 0x05577c0b, 0x04640124, 0xff7f004a, 0x7f0f200f, 0x042113ff, 0x265f834a, + 0x29047bfe, 0x4100b605, 0x002306c1, 0x82b6022d, 0x382808ad, 0x18010e40, 0x4f01187f, 0x40180118, 0x18480707, 0x40c0ffb8, 0x48060617, 0xa00121bf, + 0x218f0121, 0x01215001, 0x2101210f, 0x2b211c83, 0x2000835d, 0x2006822b, 0x26b18311, 0x0314fea0, 0x82e50587, 0x24d98351, 0x024d0007, 0x3f518212, + 0x0320402e, 0x1ecf1e02, 0x0135df01, 0x8001359f, 0x355f0135, 0x01354001, 0x00013520, 0x40350135, 0x47855b82, 0x11214b82, 0x23478235, 0x7bfe48ff, + 0x28065f5c, 0x0100002d, 0xfe4b0107, 0x20f986ca, 0x23f98314, 0x0e0d141c, 0x2b098345, 0x14febcff, 0x21065702, 0x37022602, 0xa3412d86, 0x11142407, + 0x8d000126, 0xc7002b2d, 0xa2043bfe, 0x2602b605, 0x2d822e00, 0x3902062e, 0x0e000073, 0xff0100b9, 0x130db4b1, 0x29057344, 0xae00ffff, 0xf0033bfe, + 0x25821406, 0x25854e20, 0x25862120, 0x0fb4c425, 0x84050a15, 0x0137087d, 0x0000ae00, 0x4a04f003, 0x49001100, 0x10010a40, 0x0f0f0e10, 0x11011144, + 0x40c0ffb8, 0x480a071c, 0x11111011, 0x2f130f13, 0x07070213, 0x54044703, 0x0e010c12, 0x43040f05, 0x332705b0, 0x10013939, 0x1832e1f6, 0x0808ff41, + 0x39331140, 0x30313311, 0x11070121, 0x11331123, 0x06070614, 0x33013707, 0x23030101, 0xb46dacfe, 0x040305b4, 0x33018304, 0x016ffecd, 0x51e901ac, + 0x4a0468fe, 0x663ce7fe, 0xb0242c26, 0x16fe8101, 0x1747a0fd, 0x822f200d, 0x000724b7, 0x4565ff76, 0x122b0557, 0xb8012605, 0x06b470ff, 0x4104000c, + 0x0027093b, 0x020000ab, 0x82ac0734, 0x864f20e7, 0x0122352f, 0x401f008b, 0x01037014, 0x01010270, 0x10011070, 0x66012602, 0x23092e53, 0x5d5d355d, + 0xfe216984, 0x06eb473b, 0x06236983, 0x412d3902, 0xdd200621, 0xff296388, 0xfe6600ff, 0x066c013b, 0x245f8714, 0xf7fe3902, 0x21278600, 0x5487b4e0, + 0x2107cf47, 0x2782b705, 0x0234b784, 0xff000138, 0x401600a3, 0x030b010d, 0x01061001, 0x020c0660, 0x5d20b783, 0x2006bb62, 0x20b782ae, 0x385788b4, + 0x3b380206, 0x40180000, 0x40040111, 0x0448100e, 0x48090640, 0x0304045e, 0x22e98203, 0x88352b2b, 0x87b6205f, 0x4f012c5f, 0x65fde301, 0x01b60b00, + 0x410e06ab, 0x85520610, 0xa2022b05, 0x26001406, 0x00004f00, 0x25820701, 0xfd2d2108, 0x402b0038, 0x0113ff16, 0x9f0113ef, 0x138f0113, 0x01137f01, + 0x1f01135f, 0xb8010113, 0x04b42e01, 0x20066948, 0x8200855d, 0x00350836, 0x0300001d, 0x00b605be, 0x4061000d, 0x05060b32, 0x0300050c, 0x04040d04, + 0x080a0505, 0x0faf0f08, 0x010f1001, 0x060d0d0c, 0x0b5a0703, 0x0e640a00, 0x0c0d0405, 0x2a018204, 0x0a5f0701, 0x00030112, 0x46e13f3f, 0x22080671, + 0x10013311, 0xe13232f6, 0x2f333232, 0x115d5d33, 0x39121133, 0x7d10332f, 0xc4c40487, 0xc4c48710, 0x82133031, 0x37250813, 0x21110517, 0x07112115, + 0xe3bac727, 0x02cffe4e, 0x6109fd3d, 0x03a40249, 0x8f63fd12, 0x39febe7d, 0x3cf801a6, 0x2599827d, 0x0000f6ff, 0xdf821d02, 0x69000b2d, 0x0d403b40, + 0x09020d50, 0x830a0506, 0x0a0b379e, 0x04080b0b, 0xbb0105dd, 0x0205cb05, 0x051f050f, 0x0603052f, 0xa4820505, 0x0009472a, 0x0b0c5408, 0x0a04050a, + 0x01240182, 0x00011507, 0xa190a282, 0x5e2f3227, 0x335d5d5d, 0x88a98211, 0x5d01219f, 0x0722a187, 0x9f822311, 0x6bb6ae36, 0x6ab6b94e, 0x03f6024e, + 0x4559fd1e, 0x3ffd7879, 0x79464a02, 0x2008cb5e, 0x07cb5e73, 0x00760023, 0x0abd4df2, 0x1e185522, 0x260c4b53, 0x040000ae, 0x54210612, 0x002f072d, + 0x00006f76, 0x010b4013, 0x01261125, 0x541f195c, 0xc7260c2d, 0x0e053bfe, 0x5987b605, 0x00390223, 0x078142d9, 0x87b4e121, 0x05f14357, 0x04120423, + 0x2253875e, 0x424c3902, 0xde2106a7, 0x915187b4, 0x4c0123a7, 0xa7869c00, 0x26051d26, 0x18230001, 0x0128a79b, 0x00000c4c, 0x1e01b415, 0xb825a682, + 0x24b4faff, 0x82a98b19, 0x0034085d, 0xb605a104, 0x51002700, 0x00008f00, 0x07020601, 0x290000e8, 0x18001d40, 0x27ef2755, 0x0127bf01, 0x5f01279f, + 0x272f0127, 0x08402701, 0x40274808, 0x2b480606, 0x22053b45, 0x8234f610, 0xc7002332, 0xed837bfe, 0x25004408, 0x2a404a00, 0x5a1f0c18, 0x15040420, + 0xb0276520, 0x278f0127, 0x10270001, 0x13170227, 0x155a140e, 0x0d1f2664, 0x12150316, 0x07120c18, 0x2f00005f, 0x3f333fe1, 0x0133333f, 0x32e1f610, + 0x5d5d3232, 0x4de6105d, 0x31220677, 0x707c0130, 0x01352109, 0x09fd4318, 0x33012c08, 0x26262726, 0x11331135, 0x03020e14, 0x1b4d338b, 0x252d4e22, + 0xfd263d4b, 0x04060808, 0xd5ac0504, 0x0307cc02, 0xae050304, 0x188f6437, 0x180a815b, 0x270b2959, 0x38414175, 0x2003347d, 0x09935b18, 0x0805dd6a, + 0x28005e2f, 0x22403a00, 0x0c170303, 0x2a552447, 0x2a602a10, 0x1a032a80, 0x54174716, 0x50101a29, 0x0f181020, 0x50071517, 0x3f001b00, 0x3f3f3fe1, + 0x61b885e1, 0xb18b0878, 0x46181320, 0x1521116b, 0x21b18203, 0x4818ee02, 0x0229090d, 0x6e517069, 0x94b61d43, 0x08fc481a, 0x6d482222, 0x0a144818, + 0x496d0321, 0xc723060b, 0x49944a04, 0xfc3b0506, 0x577b4d95, 0x00ffff2f, 0x05ecff7d, 0x02c10671, 0x00320026, 0x01070100, 0x42bc004d, 0x02270513, + 0x0226052a, 0x42292800, 0x71260c13, 0x2d04ecff, 0x07566f05, 0x4d012a07, 0x13000014, 0x22020b40, 0x212b8211, 0x2b8c2120, 0x07215984, 0x22598840, + 0x86aa004e, 0x822d2059, 0x32012159, 0x850d5561, 0x88ee2059, 0x004e2759, 0xb4150000, 0x58822502, 0xffffb824, 0xbd562ab4, 0x625b850d, 0x0123080f, + 0x82ec0053, 0x40172a5b, 0x3402030d, 0x02032605, 0x0d536143, 0x4957e782, 0x5301230e, 0x1d5c0046, 0x112c2105, 0x45202f82, 0x210ebf56, 0x61820002, + 0xa4064408, 0x1900cd05, 0x5b002a00, 0x16143640, 0x00161601, 0x275a1814, 0x00120927, 0x2c1f2c67, 0x095b1f01, 0x5f172b66, 0x0f01144f, 0x0214af14, + 0x19141408, 0x03115f12, 0x040e5f1a, 0x13045f24, 0x12005f19, 0x85e13f00, 0x39122101, 0x089f6018, 0xe6105d27, 0x2f391132, 0x250483e1, 0x2130315d, + 0x59180621, 0x17200cc4, 0x7409be65, 0x362b08b6, 0x26261137, 0x0afda406, 0x18305b2b, 0x3d07c159, 0xf4025462, 0x1702c2fd, 0x3e02e9fd, 0xa67256fc, + 0x6b34346c, 0x5a3472a5, 0x09592626, 0x5b186c0b, 0x17200824, 0x3a05e165, 0x97518504, 0xdb898ada, 0x0f125199, 0x11105804, 0x00030000, 0x06ecff71, + 0x825e04e1, 0x364108df, 0x64003f00, 0x03133b40, 0xd0481d3f, 0x31310131, 0x2548370b, 0x0f41571c, 0x41ff0141, 0x01414001, 0x560b482b, 0x1b501d40, + 0x023f2b3f, 0x06013f0f, 0x3c2e3f3f, 0x13165034, 0x2e201010, 0x06000350, 0x05bd5c16, 0x33333f24, 0x4e1832e1, 0x5d220ad0, 0xb75c715d, 0xe15d2a06, + 0x31393932, 0x26220530, 0x09f86827, 0x5c323321, 0x012114b5, 0xd24c1814, 0x34053d09, 0x2223022e, 0x60050706, 0x3f41cc82, 0xae6780c6, 0x7c43477f, + 0xc3796fb3, 0x75b93c3f, 0x11fc4e18, 0x899afb37, 0x8c8b969a, 0x04879a97, 0x58391bf0, 0x0b85723e, 0x6d6d7014, 0x54481870, 0x6a6f2307, 0x995c7069, + 0x3b02300f, 0xd1c9d3d1, 0x62cfcedc, 0x2c507144, 0x4500959c, 0x04260529, 0x027307a0, 0x9f6a0026, 0x64762005, 0x292b076f, 0xb8022605, 0x1db4eeff, + 0x480d0223, 0xae230a89, 0x57030000, 0x55270519, 0x06010000, 0x45ce7600, 0x232805d3, 0x40012611, 0x030e1d17, 0xc7262b8a, 0xa0043bfe, 0x5b86b605, + 0x3902062b, 0x0e000077, 0xff0200b9, 0x825588b6, 0xfe602681, 0x0408033b, 0x8325825e, 0x02072551, 0x00f1fe39, 0x01232784, 0x87b408ff, 0x2aa99151, + 0x0e004c01, 0x15005201, 0x842202b4, 0xb4a923a9, 0xa98c1d28, 0xa9827220, 0x21060a22, 0x01235787, 0x8270ff4c, 0xb4152357, 0xaa821c01, 0xe3ffb825, + 0x8c1722b4, 0xff6826ad, 0x07c903ec, 0x202f8273, 0x05634936, 0x433b0021, 0x012805c5, 0x01260540, 0x083a3470, 0x200be94e, 0x202d825a, 0x205d843f, + 0x232d8256, 0xdc760006, 0x20050741, 0x225c8242, 0x8c3c365d, 0x23598e2b, 0xedff4b01, 0x34205986, 0x22225982, 0x2d8c343c, 0x0122598e, 0x59859b4b, + 0x59823620, 0x363e1c22, 0x68262b8c, 0xc90314fe, 0xb388cb05, 0x35017a22, 0x22073b41, 0x863ab4fa, 0xffff2357, 0x27825a00, 0x5e043f22, 0xad832782, + 0x7a000724, 0x2782f000, 0x01b60b24, 0x50873c01, 0xa78f2582, 0xe6ff4c22, 0x3920a786, 0x1b21a782, 0x21a79d3f, 0xa785974c, 0xa7823b20, 0x8d411821, + 0xfe1426a7, 0x0512043b, 0x277f82b6, 0x01000037, 0xf9390206, 0x2506e141, 0x0e08b4d8, 0x6f520503, 0xfe212606, 0x058f023b, 0x20258246, 0x24258257, + 0xff390207, 0x24cd875d, 0x241eb4f7, 0x26278712, 0x04000014, 0x86730712, 0x0107244d, 0x86c8ff4c, 0x820d20a7, 0x130322a7, 0x56518508, 0x21260671, + 0xe802ecff, 0x55861406, 0x3802062c, 0x0b00006f, 0x246101b6, 0x83501824, 0x275c1805, 0x0f5c080a, 0x4c407300, 0xe001111f, 0x115f0111, 0x200211df, + 0x40113011, 0xbf080311, 0x0205ff05, 0x060a0505, 0x010f015a, 0x02f00250, 0x01021f02, 0x770d0202, 0x97018701, 0x01310301, 0x10010001, 0x03012001, + 0x0d0a0107, 0x00000760, 0x06120b03, 0x03035f02, 0x32e13f00, 0x2f39123f, 0x0132e133, 0x36057949, 0x5d5d2f33, 0xe1103912, 0x5d2f3232, 0x5d5d5d39, + 0x01303171, 0x45352111, 0x2320070c, 0x013c0b82, 0x035efeb6, 0x015ffefe, 0xbbd9fe27, 0x3303d7fe, 0xa4a4df01, 0xfd9521fe, 0x959e0262, 0x0a2f4918, + 0x00254108, 0x1f14b66a, 0x1c1c2001, 0xc0ffb805, 0x0b083740, 0x27050548, 0x273f272f, 0x231b1f02, 0x160f1347, 0x1602161f, 0x10001418, 0x10a01010, + 0x10c010b0, 0x11100705, 0x1f144f22, 0x1e150b1f, 0x1b181a4f, 0x0c3c4918, 0x3324a689, 0x325dc433, 0x5d2ba182, 0x2b2f3311, 0x00331133, 0x1830315d, + 0x230c4949, 0x33352335, 0x37230382, 0x82153337, 0x180384b8, 0x2e115149, 0x9b9b8b8b, 0x1401694e, 0x0201ecfe, 0x183ffefe, 0x2c0d5749, 0x51f88afb, + 0x89fce64e, 0x61fb8af8, 0x083d6662, 0x65023521, 0x012306af, 0x82600052, 0xb4152c03, 0x26052001, 0xffffb801, 0x662f21b4, 0xa4260c0f, 0x0804ecff, + 0x2f82e305, 0x00005827, 0x52010601, 0x098744f3, 0x32240622, 0x200c735b, 0x592b82b8, 0x382005ef, 0x07242b82, 0x8f004d01, 0x1a205b85, 0x18215b86, + 0x205b9219, 0x215b886f, 0x5b85214d, 0x26111d26, 0x1c1b0501, 0x07215b91, 0x22b78840, 0x4a7d004e, 0x22200b69, 0x850d9566, 0x88ee20b5, 0x0c4e2159, + 0x20205985, 0x04215982, 0x0dfd5b25, 0x0721b584, 0x225988d9, 0x6b7b0050, 0x1d250731, 0x01022605, 0x5a5b8700, 0x5d8408d7, 0x88870621, 0x8250205d, + 0x4017245d, 0x8201020d, 0x0102225e, 0x885f8705, 0x0e81672f, 0x00530123, 0x206187b2, 0x20618324, 0x10236736, 0x0e206183, 0x2409175d, 0x00505301, + 0x21618400, 0x91821127, 0x8f5c4820, 0xfeb82610, 0x05dd0442, 0x2ac388b8, 0x00190251, 0xb60b0000, 0x67250d01, 0xff2307de, 0x82a400ff, 0x04162225, + 0x24b7864a, 0x02510107, 0x252585b8, 0x1a21210e, 0xc758251a, 0x00142606, 0x07fe0600, 0x27258273, 0x0100003a, 0x014b0107, 0x27079f45, 0x0126052b, + 0x1e2b3300, 0x200a6d50, 0x212d8200, 0xa984e305, 0x2d855a20, 0x82ae0021, 0x40132553, 0x1130010b, 0x38232d82, 0x6f2e1130, 0xfb670ee9, 0x4b01230a, + 0xc541d0ff, 0x82092006, 0x1102225b, 0x09fb6709, 0x5d076f5c, 0x01220965, 0x7b42a94b, 0x2b022209, 0x09655d23, 0x74822b82, 0x07370423, 0x20b5822b, + 0x2387833c, 0xceff6a00, 0x27076341, 0x02260512, 0x1d090101, 0x95415b85, 0x00522308, 0xe7850300, 0x31843d20, 0x39007622, 0x16208b86, 0x5e228b82, + 0x2753100a, 0x202d830c, 0x208b8435, 0x0587465d, 0x8b85d620, 0xe5821620, 0x2b926020, 0x3707fe22, 0x59848b82, 0x014f0123, 0x0ae16829, 0x6e0a0b21, + 0x59840d9f, 0x82e50521, 0x2459832d, 0x004f0107, 0x064141cd, 0x5b821520, 0x2d921420, 0x0123b58a, 0x86e0ff4c, 0x820f205b, 0x150621b5, 0x200cc763, + 0x22b58e00, 0x85864c01, 0x820f20b5, 0x8b102059, 0x0033082b, 0x00ae0001, 0x06be0200, 0x0013001f, 0x09154025, 0x15001509, 0x15201510, 0x00471303, + 0x500d1454, 0x15000106, 0xe13f3f00, 0xe1f61001, 0x2f33115d, 0x61333031, 0x4f18050d, 0xae320a72, 0x4e7c552d, 0x2f26633b, 0x2828481f, 0x0413273a, + 0x57186bb0, 0xfb210b59, 0x0865824e, 0x14fecb32, 0xcb05e903, 0x4a002b00, 0x2d302a40, 0x1f1f2901, 0x16124701, 0x12141412, 0x12000a0a, 0x12301210, + 0x07041240, 0x60001312, 0x0d292916, 0x071c5023, 0x1b217c82, 0x05837900, 0x2107df45, 0x82822f33, 0x1033112f, 0x322f32e1, 0x0130315d, 0x020e1411, + 0x0a964d23, 0x35231123, 0x06581837, 0x02153011, 0x7b552d8f, 0x1c3d204e, 0x281f391a, 0x1813263b, 0x88071358, 0x03f624b1, 0x833ffc44, 0x06092db4, + 0x130a0899, 0x03415330, 0x89444bc3, 0x9125c68c, 0x04000089, 0x08008200, 0x07dd04c8, 0x001600aa, 0x00310023, 0x4001013e, 0x0129895e, 0x2a2abe29, + 0x1d313130, 0x0d0f8338, 0x10020d1f, 0x020d200d, 0x23560d0d, 0x23022366, 0x17590807, 0x06021769, 0x321d0517, 0x1f000f83, 0x03006f00, 0x0ad60000, + 0x470a3701, 0xc70a570a, 0xd90a040a, 0x03380103, 0x03580348, 0x030403c8, 0x05091d1d, 0x80010410, 0xd0049004, 0xb8040304, 0x1840c0ff, 0x04480a06, + 0x40040410, 0x401f400f, 0x408f402f, 0x40df409f, 0x09080706, 0x40f0ffb8, 0x5f070931, 0x0a201d23, 0x0a1d480e, 0x35193c03, 0x128c3501, 0x8f013c10, + 0x0212ef12, 0x10011260, 0x02312031, 0x31123c23, 0x233c1231, 0x09290404, 0x3f001204, 0x17122f33, 0x00822f39, 0x00825d20, 0x5de11028, 0x33333311, + 0x6f18102b, 0x12260ec2, 0x332f3d39, 0x02835d5d, 0x5d2f1828, 0x391211e1, 0x03835d39, 0x5d2f333a, 0x3311e171, 0x2f33332f, 0x30315ded, 0x07061401, + 0x21032301, 0x26012303, 0x2c065362, 0x0303021e, 0x0e27032e, 0x13030703, 0x07ce793e, 0x34132608, 0x06222326, 0x17161415, 0x03363233, 0x01333c50, + 0xfd9abefc, 0x01bc9cd3, 0x203a33f8, 0x3132523b, 0x0c233e54, 0x05701894, 0x1585230a, 0xff792f30, 0xbc700808, 0x3f31323f, 0x320c3133, 0x469c053f, + 0x23fb1960, 0x79fe8701, 0x6019db04, 0x384f3346, 0x4f371d1d, 0x7d015ffc, 0x3b362e10, 0x363c1c1c, 0x83fe0f2e, 0x3d188b04, 0x101c4041, 0x42474116, + 0x34f6fe16, 0x33343c3c, 0x003c033b, 0xff5e0005, 0x079c03ec, 0x000d00aa, 0x00400031, 0x00600054, 0x5523409c, 0x1f410f83, 0x03412f41, 0x835b4141, + 0x4b0d064b, 0x50080182, 0x370f1e1a, 0x62553147, 0x3e01623f, 0xb8281a48, 0x3a40d0ff, 0x2848110d, 0x480c0910, 0x561a2828, 0x508c5861, 0x0d600d50, + 0x0d030d70, 0x0550500d, 0x46408c5e, 0x46024650, 0x50242746, 0x1e52382b, 0x32102b1e, 0x16150f50, 0x050f150e, 0x2f000501, 0x8d5e185d, 0x2f33260a, + 0x3911e15d, 0x2106822f, 0x9c69e110, 0x059d6905, 0x3232e12b, 0x2f393911, 0x10cd102f, 0x231c82e1, 0x013031e1, 0x20084241, 0xaf5e1801, 0x14012129, + 0x0d3a5518, 0x7d410720, 0x32332407, 0x41c70136, 0x52250858, 0x52017823, 0xd95e1825, 0x86013c27, 0x31543d23, 0x213b5232, 0x32523b21, 0x233e5430, + 0x32313f75, 0x3138393f, 0x41b8063f, 0xf9220a6d, 0x5f18985c, 0x05292903, 0x38513308, 0x4f381d1d, 0x06c84133, 0x3c353424, 0x0382353c, 0xffffff2d, + 0x060000fe, 0x02730756, 0x45880026, 0x022105ab, 0x05934c25, 0x26052029, 0x4801b802, 0x5b1a14b4, 0x5e260c1f, 0x4406ecff, 0x2f822106, 0x2f85a820, + 0x45750121, 0x03290553, 0x0326115d, 0x00575171, 0x0a95461c, 0xb4ff7d22, 0x20060b72, 0x202d869a, 0x05534502, 0x053e0328, 0x32580326, 0x23561138, + 0xff73240b, 0x842f04b4, 0x46ba205b, 0x41670509, 0x3a032105, 0x4c235982, 0x4c0d342e, 0x68220bbd, 0x374c3bfe, 0x0206220a, 0x07674b39, 0x4cb4da21, + 0xff2307e7, 0x825a00ff, 0x09354c25, 0xbb202582, 0x2106b54b, 0xe14cb4e1, 0x016b0808, 0xd9040201, 0x21069a03, 0x25001400, 0x0e0f1140, 0xc0000404, + 0x800e0408, 0x5f080f00, 0x00080208, 0x1a335d2f, 0x2f0132cc, 0x3d39cc1a, 0x3133332f, 0x26230130, 0x06062726, 0x3e352307, 0x1e333703, 0x9a031703, + 0x346c3379, 0x79336a36, 0x3b43441a, 0x3b10c010, 0x04194543, 0x376122d9, 0x1b226137, 0x51514c1d, 0x51512222, 0x8e001d4c, 0x0506306b, 0xc0001010, + 0x800d130b, 0x5f060f10, 0x84060206, 0x8ccd206b, 0x030e336b, 0x032e2307, 0x16333527, 0x36361716, 0x9a033337, 0x63864519, 0x791a442b, 0x34366a33, + 0x0679336c, 0x23648206, 0x50232350, 0x1b266482, 0x38386122, 0x6b822261, 0xd7821b20, 0x6f055a32, 0x15000300, 0x00010a40, 0x030f8f00, 0x0302035f, + 0xe1206482, 0x2b05087e, 0x01211521, 0xfd3f021b, 0x966f05c1, 0x21202f82, 0x7b2d2f82, 0x1500ee05, 0x1c402f00, 0x00ff8315, 0x339c8201, 0x7f000a83, + 0x9f0a8f0a, 0x800a030a, 0x050f8f10, 0x0502055f, 0x1a224183, 0xa7825dcd, 0xdc1ae127, 0x3031e15d, 0x05ba6c01, 0x33273108, 0x3233031e, 0x0337023e, + 0x4d2c047b, 0x6d49476d, 0x6c032749, 0x43301c04, 0x3341242c, 0xee050422, 0x294a653d, 0x3f664927, 0x0719322b, 0x28311b09, 0xa03c6282, 0x75010005, + 0x0d00e505, 0x10401c00, 0x03008708, 0xcf0b9f91, 0x030bef0b, 0x0b010b30, 0x5d236982, 0x822f01e5, 0x18132062, 0x200bcc46, 0x505b18a0, 0x73052f09, + 0x1c0d363c, 0x393a1e2b, 0x02000038, 0xc3826d01, 0x06313108, 0x00130087, 0x4040001f, 0x0f83142d, 0x4f003f00, 0x04005f00, 0x30831a00, 0x170a010a, + 0x1f0f0f8c, 0x4f0f3f0f, 0xaf0f5f0f, 0x070fff0f, 0x8c1d0f06, 0xd428d689, 0x01e15d5e, 0xd4e15d2f, 0xe243d684, 0x3103211a, 0x2106a943, 0xa9432020, + 0xb205210f, 0x82166f43, 0xfe1f39ed, 0x005e0142, 0x00140000, 0x06094016, 0x0d840080, 0x0a8e0312, 0x2fe12f00, 0x3908e582, 0x3031cc1a, 0x33161417, + 0x15373632, 0x22230606, 0x3e343526, 0x06333702, 0x192234b4, 0x401a0e2d, 0x1e64641d, 0x811a382f, 0x2b2dee8b, 0x08710405, 0x2a5a6808, 0x1334404b, + 0x59420085, 0xd1280806, 0x1b00e305, 0x23403800, 0x172f170f, 0x09001702, 0x07020920, 0x8f051609, 0x1310400e, 0x07400e48, 0x0e0e480b, 0x0f098f13, + 0x00348982, 0xe1325d2f, 0x2b2b2f33, 0x2f0133e1, 0x5dcc5d5e, 0x22013031, 0x2005c251, 0x05136723, 0x333b8783, 0xfe02030e, 0x464c4f28, 0x0e302d20, + 0x35210568, 0x512a2e4a, 0x2d1d454c, 0x83690f2e, 0x0420080d, 0x232b23db, 0x623c3e35, 0x2a232545, 0x3c3e3423, 0x00264561, 0xdf000200, 0xbe03d904, + 0x0d002106, 0x2d2d8f82, 0x0e141940, 0x5040070e, 0x003f0100, 0x241c824f, 0x80920513, 0x9640181b, 0x1a332e08, 0x2f0132ed, 0xcd1a5d5d, 0x31cd2f39, + 0x09cf4630, 0x96452520, 0x16df3008, 0x102a2f2f, 0x4d3f10c7, 0x01652351, 0x8230156b, 0x84c6200d, 0x1864200d, 0x430cb540, 0x4018056b, 0x012108c1, + 0x208582f8, 0x2c858404, 0x05164027, 0x48110c10, 0x0c400605, 0x82fd8200, 0x21808881, 0x7e82ed1a, 0xcd1a3324, 0x0a462b32, 0xf823080c, 0x1013140a, + 0x2106c704, 0x6c18342d, 0x4d1ef404, 0x15215051, 0x56574e18, 0x01030020, 0x030c0514, 0x84b40689, 0x00292bdf, 0x1c194066, 0x1f240f84, 0x04830224, + 0x0324cf37, 0x0c094024, 0x0d242448, 0xb80e8416, 0x2740c0ff, 0x0e480d09, 0x3b80860e, 0x92050d0c, 0x111f0c0c, 0x19ff2791, 0xb0196001, 0x0319d019, + 0x191f190f, 0x00190602, 0x2305614f, 0x2f3932e5, 0x33209382, 0x33249182, 0x11e12b2f, 0x5d210482, 0x0ca74671, 0x0d432720, 0xe749180b, 0x0bfe390d, + 0x08161819, 0x383012cf, 0xea52203d, 0x23132938, 0x263a101a, 0xb5013829, 0x0af64918, 0x4b1e8732, 0x1424514f, 0x51504d20, 0x30360625, 0x1b26190c, + 0x0c044a18, 0xffffff25, 0x670000e9, 0x54350cad, 0x97fff1fd, 0x02b61800, 0x3002031a, 0xffb80122, 0x2222b4e9, 0x082b5b04, 0x73214118, 0xe720a582, + 0x4d30a582, 0x2700b805, 0x8f002800, 0x07010000, 0xeffd5401, 0x2a08a782, 0x1101b42e, 0xb8120103, 0x08b2c0ff, 0xffb8480f, 0x120f409d, 0x25020212, + 0x1b670000, 0x0f011bbf, 0x5d01011b, 0x34fe105d, 0x5b2b2b01, 0xff2005e9, 0x05214982, 0x23498250, 0x7b2b0026, 0x31204789, 0x1120478a, 0xb1264782, + 0x12121240, 0x47820606, 0x1b6f6529, 0x011b2f01, 0x82011b10, 0x5d5d2404, 0x8534fe5d, 0x8500204a, 0x60032195, 0x2c229584, 0x958afc00, 0x16406622, + 0xc0369683, 0x12a00112, 0x01123001, 0x10011220, 0x12000112, 0xa5ffb801, 0x58852f40, 0x0100f03c, 0xc00100d0, 0x00af0100, 0x01007001, 0x50010060, + 0x00400100, 0x01003f01, 0x6c822000, 0x07074028, 0x07401b48, 0xba824809, 0x82115d21, 0x20028578, 0x059e5935, 0x2c06b75c, 0xecffe7ff, 0xcd05c305, + 0x32002600, 0x08cd8952, 0x30404724, 0x02032d02, 0x80012ea0, 0x2e70012e, 0x012e5001, 0x10012e20, 0x2e00012e, 0x2e2e2401, 0x01250a0a, 0x70845000, + 0xbf67002a, 0x370f0137, 0x10013701, 0x5d23da82, 0x8634345d, 0x8660845f, 0x540521e3, 0x3c22e384, 0xe38a1d01, 0x01b44b2f, 0x0f01030e, 0xb6c0ffb8, + 0xa0481716, 0x080a840f, 0x1109b225, 0xd6ffb848, 0x0f0f1c40, 0x00250707, 0xb00105c0, 0x057f0105, 0x01052001, 0x01183f05, 0x0f01182f, 0x82010118, + 0x28d084c9, 0x5d2b2b35, 0x3f00352b, 0x21678635, 0xc9830006, 0x5a760122, 0x3539c989, 0x35012340, 0x36200103, 0x01361001, 0x16013600, 0x13133636, + 0x1d500025, 0x28028201, 0x3fbf671d, 0x013f0f01, 0x83bc873f, 0x2a4f87bb, 0x02ecffe4, 0x02b40677, 0x84860126, 0xfe5535b5, 0x000000d0, 0x030f4018, + 0x24c00102, 0x01244001, 0x153a2420, 0x2306876a, 0xffff3535, 0x09431d82, 0x00062305, 0x71560024, 0x05872607, 0x000602b6, 0x081b8225, 0xc700013c, + 0xbe030000, 0x0500b605, 0x0a404300, 0x00f400c4, 0x0100b002, 0xffb80002, 0x081f40c0, 0x00004813, 0x2f070f07, 0x6f074f07, 0x40070407, 0x03481811, + 0x0664045a, 0x03055f02, 0xf84d1203, 0x5d2b3a07, 0x2b2f3311, 0x315d5d5f, 0x21150130, 0x03112311, 0xbac3fdbe, 0xfaa6b605, 0x215882f0, 0x69830200, + 0x84680421, 0x000e3063, 0x05114058, 0x02060604, 0x01605b0b, 0x18b00170, 0x08080c6f, 0x0a062726, 0x10010148, 0x105f102f, 0x107f106f, 0x10bf109f, + 0x06401006, 0x5b0a4809, 0x0a200602, 0x04064811, 0x025f0a03, 0xe1267482, 0x012b333f, 0x7585e12f, 0x12e15d22, 0x0806d848, 0x2115252e, 0x07330135, + 0x03070606, 0x26260321, 0xbdfb6804, 0x5ebbc201, 0xfe1d2a11, 0x1ffcae02, 0x857d7d2e, 0x4acd3105, 0x0afd5ba8, 0xa861f002, 0x83060b41, 0x060224fb, + 0x83002800, 0x0052260f, 0x05fe0300, 0x200f82b6, 0x082b413d, 0x0f84d520, 0x82002b21, 0x05c35a1a, 0x00cd0522, 0x08056b70, 0x34405322, 0x01000100, + 0x045b220e, 0x2dd02d67, 0x012dcf01, 0x3f012d80, 0x022d6f2d, 0x660e5b18, 0x0f60032c, 0x2b06147d, 0x00000804, 0x135f271d, 0x095f1d04, 0x08437918, + 0xe15d5e27, 0xe1f61001, 0x8200825d, 0x39122b06, 0x312f2f39, 0x15210130, 0x5c7a2521, 0x7a262005, 0x16200959, 0x10668a18, 0x02ec012b, 0x03eafd16, + 0xeda05185, 0x6b73189b, 0x3903261d, 0xfea945a1, 0xd07418ea, 0x0749631f, 0x2c20ed84, 0xa220fd88, 0x2e200f84, 0x0120fd82, 0x003a0382, 0xb6058b04, + 0x5f000c00, 0x0e2f1c40, 0x0eff0eef, 0x12400e03, 0x400e4815, 0x0482100d, 0x09064c08, 0x050b0c48, 0xb80a0905, 0x2240f0ff, 0x002f010a, 0x005f004f, + 0x00af009f, 0x00ef00cf, 0x01001007, 0x05001000, 0x480e0a20, 0x0a030b05, 0x3f001200, 0x2b333f32, 0x5d382f01, 0x382f325d, 0x2f3d3933, 0x2b2b3333, + 0x30315d2b, 0x4a012321, 0x013e05a4, 0x04330123, 0xdbfec68b, 0x110f2e1f, 0xd9fe1d2a, 0xbbe701c5, 0xa8619a03, 0x5ba84b4b, 0x8c8260fc, 0x00ffff27, + 0x060000c7, 0x20a7842f, 0x21b78730, 0x0f840e05, 0xb3823120, 0x52000326, 0xee030000, 0x032e2a82, 0x0b000700, 0x3e406300, 0x1b010014, 0x8e820101, + 0x0b012408, 0x08000606, 0x0108c001, 0x0801083f, 0x6f0d4f0d, 0x0d30020d, 0x70070701, 0x020b800b, 0x0b010b4f, 0x820f5f03, 0x08022dbf, 0x0b040000, + 0x07120a5f, 0x0003045f, 0x4906cf7e, 0x5d2f056b, 0x5d5d2f33, 0x5d5dce10, 0x112f3271, 0x822f3939, 0x3031260d, 0x21152113, 0x3c038203, 0x35211501, + 0xfda602cd, 0x4a03525a, 0x7303b6fc, 0x4e0364fc, 0xa40a03a2, 0xa4a492fb, 0x07135d00, 0x02cd0525, 0x82320006, 0x830120a9, 0xc10421c9, 0x2008a982, + 0x40310007, 0x005a011e, 0x09b00965, 0x9f096f01, 0x0309af09, 0x04010910, 0x0864055a, 0x03065f03, 0x053c4105, 0x25073f42, 0x31e1f610, 0x53672130, + 0x04212b05, 0x7bfdbbc1, 0x05fa03ba, 0xf483fa12, 0x23051f41, 0xb6053304, 0x33206582, 0x4e206584, 0x1220cc82, 0x3a086582, 0x405a000b, 0x065b080d, + 0x48171420, 0x06020602, 0xffb80a01, 0x062640c0, 0x0a0a4815, 0x2f0d0f0d, 0x8f0d6f0d, 0x0706040d, 0x2f035b09, 0x02013f01, 0x02020801, 0x045f0709, + 0x835f0903, 0x3fe1217f, 0x24057a43, 0x5d2f1801, 0x06a16333, 0x39122b26, 0x2b2f2f39, 0x24088e82, 0x01013533, 0x21152135, 0x15210101, 0xfe9e014e, + 0xfd7d036e, 0xfe850158, 0x98f70267, 0x25026602, 0xeefda493, 0x050541fd, 0x8f851420, 0x37229f82, 0xb1440000, 0x84372006, 0x823c20af, 0x035b08af, + 0xecff6800, 0xcb05ba05, 0x2e002100, 0x81003b00, 0x02225040, 0x11011167, 0x9a213b5a, 0x12870112, 0x01127a01, 0x281b1212, 0x3d67085b, 0x00013d2f, + 0x3dd0013d, 0xbf3daf01, 0x3d90023d, 0x013d5f01, 0x0f013d30, 0x023d1f3d, 0x1b5b3506, 0x3b223c66, 0x13101360, 0x21602f2e, 0x82132102, 0x13112601, + 0x3f000400, 0x24b6833f, 0xe1103311, 0x24048432, 0xe1f61001, 0x0599465e, 0x82717121, 0x3911220b, 0x280d822f, 0x5de13333, 0x30313232, 0x052a7c01, + 0x0e141535, 0x15232304, 0x22233523, 0x3435042e, 0x3333023e, 0x7b323313, 0x2b270574, 0x020e2203, 0x821e1415, 0x025c0813, 0x8649bbb4, 0x183c7ec2, + 0x9f785434, 0x2fbb2f65, 0x54789f65, 0x7e3d1835, 0xbb4a85c2, 0x5b8b5d1a, 0x7f53292e, 0x39bb3957, 0x28547f57, 0x5d8b5b2e, 0xb4cb051a, 0x66c4995e, + 0x6e7b813d, 0xe1e13052, 0x7b6e5230, 0xc4663d81, 0x53fc5e99, 0x5894693b, 0x3c688b4e, 0x4e8b683c, 0x3b699458, 0x08062d41, 0xb6056064, 0x3b000602, + 0x01000000, 0x00006800, 0xb605ba05, 0x70002500, 0x671f4740, 0x5a090109, 0x010a9a1c, 0x7a010a87, 0x0a0a010a, 0x005b2313, 0x272f2767, 0x01270001, + 0xaf0127d0, 0x0227bf27, 0x5f012790, 0x27300127, 0x1f270f01, 0x16060227, 0x2666135b, 0x08601c1f, 0x24090b0b, 0x0903141d, 0x3f3f0012, 0x9f583333, + 0x151a4106, 0x325de12b, 0x14013031, 0x2323040e, 0x2b018211, 0x35042e22, 0x14113311, 0x3333021e, 0x33220782, 0x0e823632, 0x41ba0521, 0xc1200e03, + 0x2608ee84, 0xb7ba1abb, 0x3dd703c0, 0x4e6a777f, 0x0142fe2e, 0x684e2dbe, 0x013d7e77, 0x5821fee3, 0x0334628d, 0xc6a6fc5a, 0x83e301b1, 0x824e20db, + 0xa64908db, 0x2f00cd05, 0x51407c00, 0x220b5b0e, 0x0b20255b, 0x04020b30, 0x252f010b, 0x25df253f, 0x0b0425ef, 0x0b070125, 0x13250b25, 0x23065b2b, + 0x23022316, 0xd031671d, 0x31cf0131, 0x01318001, 0x316f313f, 0x190d0902, 0x0d08020d, 0x2be68205, 0x185f0030, 0x0a222604, 0x0c255f0d, 0x3324e582, + 0x323232e1, 0x2005cc54, 0x05ff4133, 0x32f61029, 0x3911e15d, 0x842f2f39, 0xe110210f, 0x0be75318, 0x2115172a, 0x032e2135, 0x023e3435, 0x08698518, + 0x13822120, 0x12823e20, 0x022e5808, 0xa472fa02, 0x5123326a, 0xb0fd5f83, 0x6f406201, 0xa0512e50, 0xeb9b9aec, 0x502e51a0, 0x6201416e, 0x835fb0fd, + 0x6a322351, 0x442905a4, 0x6475ba81, 0x4197abbb, 0x8730a493, 0x966fc7a8, 0x5e5eacf4, 0x6f96f4ac, 0x3087a8c7, 0x974193a4, 0x7564bbab, 0x004481ba, + 0x1800ffff, 0x572ec943, 0x20083403, 0x04ecff71, 0x02210691, 0x007e0126, 0x01060100, 0x00001954, 0x020b4013, 0x0226114a, 0x16443e16, 0x0a25512f, + 0xecff5a24, 0x2b845c03, 0x2b858220, 0x2b84ca20, 0x11460129, 0x3a6d0126, 0x8a2d1840, 0xfeae222b, 0x05916414, 0x85840121, 0x8544202b, 0x8225202b, + 0x6462202b, 0xa4240e91, 0x7702ecff, 0xe9485784, 0xfe542205, 0x053f5ece, 0x2c822220, 0xfdffb826, 0x152216b4, 0x820b5351, 0x3d04232f, 0xb382b406, + 0x5b849220, 0x00105530, 0x03b21200, 0xffb80102, 0x422cb4ee, 0x87831b05, 0x00353524, 0xdd840002, 0x5e042908, 0x3d001000, 0x1e403800, 0x47051e38, + 0x103f282f, 0x480e013f, 0x223e5616, 0x500b1e0f, 0x2f380f1b, 0x3350002c, 0x3f001611, 0x20061442, 0x06697133, 0xe132d424, 0x67183232, 0x162a1a1f, + 0x36363317, 0x030e3337, 0x0c4f1115, 0x022e250a, 0x030e2327, 0x122a6718, 0x713d2f08, 0x907064a2, 0x210a0c31, 0x130b8f19, 0x2232080d, 0x0f08250e, + 0x3f262241, 0x0c0c2432, 0x604d3b16, 0x98622f83, 0x9d650f68, 0xccda376b, 0x6718cdd1, 0x533a0836, 0x1f522355, 0x7e796821, 0x3c5dfe37, 0x85030733, + 0x27101109, 0x3d223040, 0x5d761a2e, 0x06752406, 0x821b001f, 0x594308e3, 0x48393440, 0x1f050805, 0x02332f33, 0x05330533, 0x0c472c15, 0x3f203f57, + 0x22023f30, 0x54164715, 0x081b153e, 0x330f5032, 0x33330801, 0x50272200, 0x501c1611, 0x3f000100, 0x32e13fe1, 0x5e2f3911, 0x8439e15d, 0x062b6dfc, + 0x2f2f3934, 0x1039125d, 0x013031e1, 0x15021e32, 0x15070614, 0x82761616, 0x27262d05, 0x34112311, 0x2217023e, 0x1115020e, 0x25054f51, 0x022e3435, + 0x91182323, 0x66080829, 0xa3607702, 0x8f984376, 0x783fb9b0, 0xa4606dad, 0x7945b63c, 0x643863a8, 0x4e202c4b, 0x50245252, 0x351f466f, 0x664f8460, + 0x4e77524d, 0x5f442625, 0x62311f06, 0xad956294, 0xca150617, 0x6da26cba, 0xfd1f2037, 0x7b3406e9, 0x963773b2, 0x607f4c1f, 0x1e1292fc, 0x4d280b15, + 0x7550476f, 0x2898254d, 0x3f3d6649, 0x181f3e5e, 0x080a7f62, 0x63001b34, 0x401d1640, 0x50481512, 0x1d0f011d, 0x1d4f1d2f, 0x051a0703, 0x06480501, + 0x40f0ffb8, 0x0b060615, 0x0c131300, 0x201b001a, 0x031b401b, 0x1b101b08, 0x19830c0d, 0x1a0c0a3a, 0x00130f0c, 0x1b05150b, 0x333f3f00, 0x01333f33, + 0x2f33382f, 0x335d5e38, 0x3005744a, 0x382f1833, 0x5d5e5de1, 0x30312b5d, 0x15030e25, 0x20fa8223, 0xa9651837, 0x0237080b, 0x18221660, 0x1b0fbe0c, + 0x60fe1525, 0x1e0ed9bd, 0x0604141a, 0x1b191405, 0x12bcc70b, 0x7e86883e, 0x89792a34, 0x3e043f8d, 0x5d28bafd, 0x1a1b505a, 0x215a5d52, 0x7d004c02, + 0x4408080b, 0x0032001f, 0x40510044, 0x00461a2e, 0x2e050538, 0x240f4833, 0x46404657, 0x46e046d0, 0x01460f03, 0x2e483d06, 0x24004556, 0x380a1a42, + 0x50420a38, 0x50151629, 0x00010a10, 0x3fe1333f, 0x2f3911e1, 0x39123912, 0x06ce4633, 0x32f61022, 0x39251283, 0x3031e139, 0x09b64401, 0x2e071722, + 0x08aa8318, 0x181e1721, 0x240c178f, 0x022e3401, 0x4b4c1827, 0x02c20808, 0x435d3814, 0x7d5c3325, 0x6071444a, 0x204a2351, 0x335b5149, 0x12273c2a, + 0x47623c1b, 0x315c8655, 0x6db27f45, 0x477fae67, 0x01997243, 0x52391eb4, 0x687e3a35, 0x69492644, 0x03998e43, 0x564b20aa, 0x69483962, 0x1f142246, + 0x14911327, 0x17121e26, 0x251b3225, 0x29413d3e, 0x937e6c31, 0x83c17f58, 0xaa753d43, 0x7aa36a6e, 0x4551fe53, 0x1f49596f, 0x91623a10, 0x516f4267, + 0x0100b42d, 0xecff5a00, 0x5e045c03, 0x59003900, 0x231d3740, 0x10180101, 0xa03b572d, 0xc03bb03b, 0x3b3f033b, 0x10023b5f, 0x4634013b, 0x47052323, + 0x1e3a5618, 0x39bf5002, 0x89397901, 0x39390239, 0x2850310a, 0x13500a10, 0x2e5a0016, 0x5d5d2d06, 0x100139e1, 0x2f33e1f6, 0x5d5d5de1, 0x2c052765, + 0x30313912, 0x22231501, 0x1e141506, 0x018a1802, 0x022e2709, 0x023e3435, 0x2f413537, 0x5826200b, 0x268205a9, 0x9c025f08, 0x29858a81, 0x33376046, + 0x1f47515c, 0x716d9e3b, 0x26356ca6, 0x2b2c523f, 0x3a1c3346, 0x35569069, 0x284d525a, 0x47814b3f, 0x4827736c, 0x87023d64, 0x335e5b99, 0x0f122a45, + 0xa0101f18, 0x56312922, 0x583e4375, 0x0b0f293e, 0x503e2b0e, 0x4a6d4632, 0x1c130926, 0x26229314, 0x402d4d4d, 0xf7821227, 0xfe712b08, 0x066a036f, + 0x00330014, 0x2e1f4039, 0x461f0303, 0x0114201a, 0x35103514, 0x0a0235c0, 0x00002948, 0x19345629, 0x5000032e, 0xdf820001, 0x2f323223, 0x27d08201, + 0x5de1102f, 0x325dd610, 0x3320e282, 0x2105b47c, 0x4418050e, 0x07210a23, 0x05a34623, 0xd6832720, 0x36126608, 0x07063736, 0xae230606, 0xb880b602, + 0x0d284c7e, 0x4b78542d, 0x193a5f47, 0x162b2215, 0x222b18aa, 0x5b300e14, 0x5c87594d, 0xc99a5c2e, 0x282f2b6c, 0x7b052f60, 0xcd768d99, 0x6f859ab3, + 0x406c5930, 0x2e0f1123, 0x2d2a483b, 0x1f4b5258, 0x43484820, 0x2225141d, 0x42110f1f, 0x9466986c, 0xd9e80101, 0x0203036c, 0x93531804, 0x005e2808, + 0x40310018, 0x1847001d, 0x2c0f696e, 0x1450040e, 0x0b0f0c10, 0x001b0015, 0x0daf683f, 0x01303122, 0x0b967118, 0x3e331729, 0x16323303, 0x18031115, + 0x68079571, 0xfe230993, 0x68af0414, 0xfb221086, 0x89660047, 0x04210805, 0x002b0617, 0x001e0013, 0x405b0027, 0x4719253a, 0x0f295700, 0x29d00129, + 0x9f297f01, 0x29400229, 0x080d8201, 0x1a240621, 0x28560a47, 0x24cb501a, 0x0124ba01, 0x24992489, 0x01240f02, 0x14242408, 0x010f501f, 0x42055014, + 0x5e21084a, 0x2100825d, 0xa36e01e1, 0x200a8205, 0x3b541871, 0x06022107, 0x080c6e67, 0x12161698, 0x023e3201, 0x031e2137, 0x020e2213, 0x02022107, + 0x70341704, 0xaf767eb3, 0x6f333874, 0xb0767eb1, 0x2bfe3a75, 0x23456849, 0x02cbfd03, 0x4a684421, 0x23446647, 0x09330205, 0xbc0c0384, 0x6dced7fe, + 0x2901ce6d, 0x2901bcbc, 0xcd6b6cce, 0xb9fcd7fe, 0x95df944a, 0x4b95df93, 0x89451005, 0x110189cd, 0x00001301, 0xffa40001, 0x047702ec, 0x00150048, + 0x30234035, 0x09090109, 0x10170017, 0x60172017, 0x90177017, 0xd017c017, 0x01080817, 0x16541447, 0x160f5004, 0xc44f0f00, 0x5d5e2407, 0x5d2f3311, + 0x16200534, 0x5705fe42, 0x35390516, 0x3f5a0111, 0x2a2d1248, 0x290d0924, 0x3e183430, 0x042c4d6a, 0x61fcfc48, 0xa86b1862, 0x0403300c, 0xae00ffff, + 0xf0030000, 0x06024a04, 0x8200fa00, 0xf2ff368b, 0x1704ecff, 0x2e002106, 0x2a406800, 0x1a151522, 0x29011212, 0x0801820a, 0x1a500030, 0x441a3401, + 0x1a00021a, 0x1a201a10, 0x301a1a03, 0x30903060, 0x01300f02, 0xb8002e06, 0x0f40f0ff, 0x29152e00, 0x170e0101, 0x07161e50, 0x8d460e50, 0x39112405, + 0x183f332f, 0x08092e6a, 0x5d5d5d26, 0x3d393912, 0x112f182f, 0x12113333, 0x31331139, 0x27012330, 0x2223032e, 0x36350706, 0x1e323336, 0x16011702, + 0x9256ce82, 0x2e630806, 0x2e032702, 0x06232703, 0x0e030706, 0x0d35b801, 0x2b3d2b1f, 0x1a143222, 0x694a2342, 0x011f3f4f, 0x262e1248, 0x1708260e, + 0x3b272537, 0x870f252f, 0x161b1d0b, 0x350d0605, 0x3304e51f, 0x314329a0, 0x9105071b, 0x592a0a07, 0x36fc5d87, 0x03073936, 0x110e0c85, 0x012e4028, + 0x615e21a2, 0xaa4d1957, 0x82c1fd4f, 0x7b5618f7, 0x403f250a, 0x090c0d26, 0x0f7c5618, 0x471a002b, 0x1a1e541b, 0x030d141b, 0x7f561850, 0x4833200c, + 0x322b0565, 0xf6105d32, 0x313232e1, 0x18140130, 0x084f8356, 0x0000003a, 0x4a04cf03, 0x3b001400, 0x13141640, 0x0d000707, 0x16570e47, 0xb0011610, + 0x160f0116, 0x00010601, 0xb6f0ffb8, 0x15140700, 0x000f000d, 0x333f323f, 0x32382f01, 0x715d5d5e, 0xf7469382, 0x313c0805, 0x13331130, 0x3317031e, + 0x3512023e, 0x02021433, 0xbc230706, 0x1e1f0cc9, 0x5a060519, 0xb6194272, 0x759a5c25, 0xfd4a04c0, 0x676321b0, 0xcd60195c, 0x970501e7, 0xfee0fea3, + 0x007ffdf5, 0x320ad344, 0x407e0046, 0x3b3b324e, 0x41012a11, 0x2d2d3846, 0x65001c24, 0x4b0805c7, 0x1c010108, 0x01112046, 0x483f4811, 0x487f485f, + 0x100448ef, 0x48070148, 0x3c475624, 0x39503832, 0x1c49002a, 0x1c691c59, 0x011c3803, 0x031c2407, 0x004f0116, 0x00391600, 0x3f00fa16, 0x2f39123f, + 0x391711e1, 0x39115d5d, 0x3232e110, 0x28056451, 0xf15dd610, 0x5d5e2fc0, 0x271d8211, 0x3912e133, 0x332f3311, 0x4d05f045, 0xf94605a8, 0x08184506, + 0x2105ab5e, 0x07863537, 0x06070629, 0x35232306, 0x4d231521, 0x032607d8, 0x7f51a223, 0x2a452d57, 0xb2270814, 0x664e2fb8, 0x2d726537, 0x223e6b4f, + 0x2e552127, 0x3781023e, 0x47739149, 0x51724620, 0x31897703, 0x4e417155, 0x45223b60, 0x33081436, 0x4db5c722, 0x1143637f, 0x75861c0c, 0x31496648, + 0x02030313, 0x268d9904, 0x354e754e, 0x001c3751, 0x7100ffff, 0x2d04ecff, 0x06025e04, 0x00005200, 0x19000100, 0x25080f82, 0x004a04c9, 0x40580018, + 0x8f470a38, 0x16160116, 0x1414030e, 0x03100300, 0x1a030302, 0x1a9f1a2f, 0x10031aef, 0xb651470d, 0x15103608, 0x19540e48, 0x50100c15, 0x150e0f12, + 0x16075000, 0x3fe13f00, 0x052f413f, 0xe15d2b33, 0x33115d33, 0x2f335d2f, 0x2f391211, 0x3031e15d, 0x09d65925, 0x21113c08, 0x23112311, 0x15213735, + 0x16141123, 0x2f1c5004, 0x304a0f0f, 0x6dfe7171, 0x0489ddb6, 0x812fd327, 0x0990080d, 0x02828411, 0x0350fcbe, 0x9a504ab0, 0x37464efd, 0x00020000, + 0x8314fea4, 0x1a002fb7, 0x39002700, 0x48252140, 0xcf295700, 0x74450129, 0x091f3006, 0x5410470f, 0x16501b28, 0x221b0f10, 0x82050850, 0x83332092, + 0x10012293, 0x209782f6, 0x0528535e, 0x5e303121, 0x262105bb, 0x08636f27, 0x25067f4d, 0x07062201, 0xd36b1611, 0x04450806, 0xa7753f2d, 0x368f4b68, + 0x02020106, 0x7841b601, 0xa36169a9, 0x3bfe4377, 0x36038289, 0x7b8c4b8f, 0x8927027d, 0x2d4c91d5, 0x272e2b2d, 0xddfe2e61, 0xd3881304, 0x914b4b91, + 0xc41801d3, 0x33acfec8, 0xd1d1d331, 0x06ab42cf, 0x046f4708, 0x0031005e, 0x27364051, 0x10461527, 0x0a100a00, 0x0a030a20, 0x5f333f33, 0xef337f33, + 0x33100433, 0x1f480001, 0x2d283256, 0x010a3751, 0x15381528, 0x15031548, 0x04001f0a, 0x0f10240f, 0x3f3f00fa, 0x5d391712, 0x8b42e15d, 0xe1322309, + 0xc9832f33, 0x09086418, 0x240b9147, 0x3233023e, 0x07974916, 0x1c2d0125, 0x47617e49, 0x4d3b108e, 0x49376284, 0x4e6ab383, 0x17363295, 0x1a3a3c38, + 0x22497250, 0x79600602, 0x47162f4e, 0x0f32138d, 0x82b47641, 0x4995e29a, 0x0a9a1922, 0x39090f13, 0x0b4da470, 0x85280806, 0x16004a04, 0x36002900, + 0x21242140, 0x00101248, 0x2b102b57, 0x2ba02b90, 0x2be02bb0, 0x0a481705, 0x25122a56, 0x1c0f0f50, 0x8507f646, 0xf61023c6, 0x47183232, 0x21251033, + 0x031e2115, 0x06414905, 0x34355908, 0x22232726, 0x2d04020e, 0x75b47a3e, 0x447daf6b, 0x80ce904d, 0xf6fee901, 0x1c304125, 0x472100fd, 0x6d4c4d6e, + 0x4b4f2147, 0x5a8b5f3b, 0x6ff8012b, 0x46508dc0, 0x9c85cb8a, 0x9a3e8ada, 0x7c6c5d29, 0x69905536, 0x8662373b, 0x59d7904e, 0x00a1632c, 0x12000100, + 0x6603e5ff, 0x2508b182, 0x403a001c, 0x0d0f0124, 0x06020d1f, 0x101e570d, 0x1a2b011e, 0x1a021a3b, 0x18104703, 0x180218e0, 0x1c501902, 0xf449080f, + 0x01322c07, 0xc6e15d2f, 0xe6105d5d, 0x56325d5e, 0xe64905a6, 0x07e74608, 0x35213508, 0xfe660337, 0x3e2d198c, 0x282a1224, 0x270d0d24, 0x401b352e, + 0xfe345975, 0x4a0486d7, 0x3ba2fd9a, 0x03173352, 0x87040706, 0x060b0c06, 0x68864d1d, 0x504a7302, 0xa4249383, 0x3d04ecff, 0x26089382, 0x4029001d, + 0x1b471018, 0x1f101f57, 0x1f801f60, 0x05470803, 0x06151e54, 0x00500d0f, 0xe13f0016, 0x1001333f, 0x825de1f6, 0x30312503, 0x022e2205, 0x08072351, + 0x35363259, 0x27022e34, 0x15031e33, 0x5c020210, 0x2964aa81, 0x664220b6, 0x098d9246, 0xb60f1710, 0x0810180f, 0x8c5014f4, 0x58026dbd, 0x8c56b2fd, + 0xf7e83663, 0x74757d47, 0x77723d3d, 0xc1fe4b81, 0x0200d3fe, 0x14fe7100, 0x5e042505, 0x35002500, 0x3c405e00, 0x16472531, 0x82a60096, 0x06003718, + 0x571f4826, 0x01372037, 0xe001370f, 0x376f0137, 0x379f377f, 0x0f834003, 0x02371f3b, 0x06471106, 0x502b3656, 0x31101a0b, 0x01245016, 0x001b0016, + 0xe1333f3f, 0x53038232, 0x05530807, 0x23178208, 0x11013031, 0x21050d4b, 0x1b4c1737, 0x11172305, 0x00513634, 0x01112108, 0x08694e18, 0x033ea208, + 0xb76d6602, 0x38204b86, 0x258d2d4e, 0x33192d3f, 0xa5407458, 0x66925a91, 0xbe905637, 0x1e4f0168, 0x1b2b4936, 0x48162531, 0xfe33597b, 0x05da0114, + 0x97d58943, 0x7d8a9853, 0x68336037, 0x6f477d72, 0x07306199, 0xc1bc5e02, 0x7ac99050, 0x4a90d995, 0x0426fe05, 0x65946225, 0x57351733, 0x07a0fd41, + 0x009f6b3b, 0xecff0100, 0x250414fe, 0x28004e04, 0x1a40a000, 0x1f781f68, 0x09671f02, 0x09c70977, 0x76060903, 0x1c37011c, 0x1e1c1c01, 0xffb80807, + 0x130e40c0, 0x08344816, 0x08100801, 0x0112c008, 0x08128312, 0x0b06193d, 0x2a121248, 0x2a3f2a0f, 0x2acf2a4f, 0x25b00604, 0x250225c0, 0xb81e1d25, + 0x1f40f0ff, 0x1e291e1e, 0x2706171b, 0x1c180206, 0x1c021c28, 0x04061f09, 0x16500f00, 0x230f071b, 0x450f0050, 0x12350536, 0x5d5d3917, 0x3301113f, + 0x3333382f, 0x5d5e5d2f, 0x2b2f3311, 0x3b0d825d, 0x12332b5d, 0x5d2f3d39, 0x5d33335d, 0x30315d33, 0x021e3213, 0x33011317, 0x031e1301, 0x08082a5f, + 0x27022ea5, 0x01230103, 0x23262603, 0x36350722, 0x492dbc36, 0x7b15313a, 0xfeb21f01, 0x1d0eb273, 0x1a253426, 0x3916102e, 0x475f4328, 0xfe831733, + 0xc601c2b6, 0x35471ba0, 0x3e161c24, 0x3e1f4e04, 0xa8fe3d5c, 0xf8fc4a02, 0x422620fe, 0x03051d33, 0x260b068d, 0x01416646, 0x0383fd6a, 0x4fbe013e, + 0x078f0a59, 0x0100000a, 0x14fea400, 0x12067105, 0x4c002700, 0x17012f40, 0x18182647, 0x1147061e, 0x29302957, 0x29902940, 0x29c029b0, 0x1f290f05, + 0x21060229, 0x28541e47, 0x010f1f0b, 0x19165026, 0x001b1716, 0x423f0000, 0x4d4e0615, 0x11e12308, 0x0f422f39, 0x064d4c06, 0x3e4e3320, 0x11072505, + 0x032e1123, 0x0806dc42, 0x0311174a, 0x5f834e56, 0x180f0834, 0x1810b610, 0x93570810, 0x6fb26dc4, 0xb64c89bc, 0x42785a36, 0x73fa1206, 0x9c6c3c09, + 0x7e804767, 0x83484983, 0x9d447e7e, 0x07458cdc, 0xda0126fe, 0xd6884104, 0xfd1f029a, 0x619a72d9, 0x8f05052e, 0x3a08c182, 0x05ecff71, 0x004a0496, + 0x4070003b, 0x1d673848, 0xd5471d01, 0x1ab7011a, 0x011aa901, 0x03011a9a, 0x25051a1a, 0x3d573048, 0x3d143d04, 0xf43dc402, 0x3d7b023d, 0x40023d9b, + 0x5602013d, 0x103a0807, 0x3c560548, 0x0a2a1b1b, 0x5015200f, 0x16003539, 0x32323f00, 0x333f32e1, 0xdb862f39, 0xc84b5f20, 0x21e08206, 0x00825d5f, + 0x395de122, 0x2406b043, 0x37023e34, 0x05f54233, 0x3e323322, 0x4905c043, 0xc04305a1, 0x14270807, 0x2223020e, 0x06232726, 0x5ae90106, 0x0f32608c, + 0xba202f1f, 0x0f1f2f20, 0x2d4b361d, 0x162c442e, 0x2d5163b2, 0x831d364b, 0x83bb2017, 0x32470817, 0x6b5a8d60, 0x1f0a1f8b, 0x9252148b, 0x8f5179cb, + 0x49488787, 0x528e8786, 0x34659662, 0x39624829, 0xcefe3201, 0x65348b81, 0x8e526296, 0x48498687, 0x518f8787, 0x5292cb79, 0x575b5b57, 0x00ffff00, + 0x02ecff15, 0x5cd90577, 0x003b0713, 0x00e2fe6a, 0x40170000, 0x1f01020d, 0x01022611, 0x142a1632, 0x2b012500, 0x83003535, 0x24318203, 0x04ecffa4, + 0x2631843d, 0x01000092, 0x826a0006, 0xb619242f, 0x83270102, 0xffb8252e, 0x321eb4de, 0x87062f53, 0x0fd57431, 0x000e5428, 0x0b401300, 0x31822c02, + 0x18203d21, 0x840d1f4c, 0x2106215d, 0x5d848f82, 0x10540122, 0x01272b84, 0x0126112a, 0x85241e1d, 0x48588259, 0x052106c9, 0x202b8496, 0x24898296, + 0x00540107, 0x248b82c3, 0x01094021, 0x302d8248, 0x3c013c60, 0x40c0ffb8, 0x480b0909, 0x05423c3d, 0x21c58230, 0x46185d2b, 0xc725076d, 0xbe030000, + 0x91591807, 0x00690828, 0xff140001, 0x050605ec, 0x002500b6, 0x045a4085, 0x5a0c1304, 0xdf01210f, 0x0221ff21, 0x0f275521, 0x7f276f27, 0x1a060327, + 0xa00118f4, 0x0218b018, 0x18011874, 0x135a1218, 0x15301500, 0x15501540, 0x150515c0, 0x0113b015, 0x13771367, 0x01135e02, 0x134f133f, 0x01130002, + 0x1a5f1113, 0x1519071a, 0x1303165f, 0x005f0712, 0x05124413, 0x39123227, 0x2f01e12f, 0x2500835d, 0x105d2f33, 0x0b8332e1, 0x5d5e3227, 0x715df610, + 0x271c82e1, 0x22053031, 0x16352726, 0x26053f42, 0x23263435, 0x70231121, 0x4708078b, 0x15021e32, 0x020e1415, 0x462f9e03, 0x27441d19, 0x21334020, + 0xbbfe7b69, 0x03acfebb, 0x015efeb1, 0x65925d5a, 0x845f3535, 0xa00b0d14, 0x33130c09, 0x73854557, 0x0523fd74, 0xfea4a412, 0x8b5e316f, 0x9a698959, + 0xffff3165, 0x2505df5d, 0x26027307, 0xc5666101, 0x33002105, 0x2905c566, 0x26051201, 0x0c063e01, 0x55180004, 0x4a080857, 0xff7d0001, 0x059804ec, + 0x002600cb, 0x1113405f, 0x48181340, 0x11071107, 0x0123ca1b, 0x23802370, 0xffb82302, 0x072440c0, 0x2323480a, 0x0128bf28, 0x1b5b0805, 0x5f082766, + 0x05af050f, 0x05050802, 0x5f00240d, 0x5f0d0420, 0x18131610, 0x240c6964, 0xe1f61001, 0x05124532, 0x215a5d20, 0x30312905, 0x020e2201, 0x21152107, + 0x23060645, 0x2223030e, 0x330af15c, 0x26260717, 0xa05f1903, 0x020d4d78, 0x0586fd74, 0x71ab7640, 0x176a9818, 0xaf7a4129, 0xc982a26f, 0x1823488a, + 0x73146b98, 0x05270759, 0x000602cb, 0x5c000036, 0x535712e9, 0x48ff2730, 0x73017bfe, 0x5182b605, 0x00002d24, 0x55820200, 0x06e96a08, 0x00b605df, + 0x0035002a, 0x2b25b58d, 0x080d065a, 0x40f8ffb8, 0x48171453, 0x99235a08, 0x101e011e, 0x0600231e, 0x06020690, 0xb40123e0, 0xd423c423, 0x23000323, + 0x23902350, 0x070423a0, 0x23062306, 0x005b2f15, 0x37cf3767, 0x06403701, 0x15154809, 0x0f5f3536, 0x0225af25, 0x2b252508, 0x03235f08, 0x13126019, + 0x1206602b, 0x0aea7700, 0x0111e125, 0x792b2f33, 0x392005d1, 0x2a05a458, 0x33115d5e, 0xe1105d38, 0x4910322b, 0x2127089e, 0x030e2111, 0x6d030e07, + 0x372c0a0c, 0x12123636, 0x33112137, 0x01021e32, 0x07da6518, 0x06237d08, 0xc27e3cdf, 0xfebffe86, 0x211f0fc2, 0x35141022, 0x234e6e4f, 0x3a171c4a, + 0x2a3e3020, 0x200c0c1a, 0x02162b27, 0xcf986d93, 0x77fd377e, 0x2ea4ae77, 0x585d8b5b, 0x9e61ac01, 0x12053d70, 0xd4ecf471, 0x6fa26751, 0x9a0b0e3b, + 0x623f100d, 0xc8393675, 0x3a010601, 0x4298fdaa, 0x9dfe9871, 0x61468884, 0x02001b3c, 0x0000c700, 0xb6050c07, 0x21001600, 0x32405300, 0x0e5a1711, + 0x1b0a0606, 0x3108fe82, 0x01230f23, 0x231f230f, 0x23ff237f, 0x5a090d04, 0x2122640a, 0x0f115f08, 0x020daf0d, 0x0f0d0d08, 0x6017030b, 0x0012060a, + 0x3fe1333f, 0x5e2f3933, 0x544b335d, 0x5d322105, 0x4606a75b, 0x14230590, 0x8223020e, 0x231125f3, 0x21113311, 0xe48d0382, 0x850c0721, 0xb8fd26e4, + 0x4802baba, 0x29cd94ba, 0x56fdaa02, 0x98fdb605, 0xbc8d6802, 0x2105ad74, 0xbd820605, 0x00155008, 0x084d4073, 0x1755075a, 0x176f170f, 0x0603177f, + 0xa00114f4, 0x0214b014, 0x14011474, 0x5a0e0014, 0x3011000f, 0x50114011, 0x0511c011, 0x0fb01111, 0x770f6701, 0x0f5e020f, 0x4f0f3f01, 0x0f00020f, + 0x11150f01, 0x5f0d125f, 0x12070000, 0x83070f03, 0x123f25d6, 0x10e12f39, 0x2f20d482, 0x200a3844, 0x200c8332, 0x05374a5e, 0x32210125, 0x8215021e, + 0x0b2f44d9, 0x44230221, 0xba200510, 0x290a2244, 0x5e318103, 0xf2fd598b, 0x1844f601, 0x050d4407, 0x07a20427, 0x01260273, 0x060d44b4, 0x0d448920, + 0x05172606, 0x0b220126, 0x090d4411, 0x19262d82, 0xae04ecff, 0x2d826907, 0x2d83bd20, 0x00360223, 0x202d8623, 0x232d8227, 0x13222c0d, 0x080b3b44, + 0x7ffec727, 0xb605c104, 0x63000b00, 0x02c64140, 0x020202d6, 0xd503c55a, 0x03a80203, 0x01039601, 0x110e1003, 0x01034748, 0x080a823a, 0x09050328, + 0x0d65005a, 0x6f010db0, 0xaf0d9f0d, 0x0d10030d, 0x055a0801, 0x060a0c64, 0x055f0803, 0x05010202, 0x33332f00, 0x324b102f, 0x425d2007, 0x2f3005e2, + 0x5d2b5d5d, 0x5de15d5d, 0x21213031, 0x21112311, 0x3405df41, 0x5afec104, 0xba5dfeb1, 0xfebb8502, 0x0581017f, 0x05f0fab6, 0x0ffb6210, 0x21057742, + 0xa1823304, 0x00103108, 0x404b001b, 0x01085f2e, 0x15110808, 0x1d67005b, 0x1d5f1d0f, 0x1dcf1d7f, 0x110b0604, 0x1c64065a, 0x0b0f5f1b, 0x08020baf, + 0x0a110b0b, 0x1103075f, 0x22077643, 0x612f3912, 0x322106b7, 0x8292835e, 0x208b820f, 0x066f4201, 0x4e431520, 0x3304330f, 0x86c27e3c, 0x140396fe, + 0x9896a6fd, 0xfd377ecf, 0x3443a04e, 0x43812005, 0xb6230634, 0x433cfea4, 0xa3410b1c, 0x08a16306, 0x0a954118, 0x6101062c, 0x02000000, 0x7ffe0e00, + 0xc5820a05, 0xc5821120, 0x408b7308, 0x281b180b, 0x071b021b, 0x14011437, 0x40f8ffb8, 0x4817140b, 0x0f0e5a14, 0x07070107, 0x40f0ffb8, 0xc00e3010, + 0x0e07020e, 0x12050e07, 0x5a01105a, 0xc0ffb800, 0x15102540, 0x10000048, 0x1d201d65, 0x011d0f01, 0x055a0408, 0x5f141c05, 0x5109030e, 0x06101b08, + 0x0500035f, 0x00120305, 0x332f333f, 0x3232e110, 0xe13fe22f, 0x2f330111, 0x5d5d5ee1, 0xab18e410, 0x56080a1e, 0x5d5e385d, 0x5d2be110, 0x315d3311, + 0x11230130, 0x11231121, 0x37053e33, 0x21331121, 0x050e2111, 0xb00a0507, 0x71b064fc, 0x414d562f, 0x02041d30, 0x83fec265, 0x1f04fafe, 0x4d463d2e, + 0x017ffe27, 0x027ffe81, 0xd9c85527, 0x69e3e8e6, 0x6a04f0fa, 0xd1cab94c, 0x634bb7c8, 0x0027109b, 0x00040001, 0x84810600, 0xcb4f08f5, 0x09664e40, + 0x09860976, 0x47093703, 0x03095709, 0x47060609, 0x020df70d, 0x00695a0d, 0x00890079, 0x48003803, 0x03005800, 0xa8030300, 0x020eb80e, 0x86010e99, + 0x0e57010e, 0x0e770e67, 0x110e0e03, 0x0808070a, 0x010a000b, 0x0a800a70, 0x60030ac0, 0x3d0805f6, 0x0a480a07, 0x130a0a10, 0xbf0113f0, 0xdf13cf13, + 0x13a00313, 0x01138f01, 0x0f011340, 0x02131f13, 0x01010208, 0xffb81110, 0x110f40f0, 0x03061211, 0x0a110403, 0x0107120e, 0x3f000304, 0x02823333, + 0x11391223, 0x06004c33, 0x3d5e1120, 0x115d2906, 0x2b382f33, 0x3333715d, 0x12231a82, 0x825d2f39, 0x2e0a8200, 0x5de15d5d, 0x5d331132, 0x0130315d, + 0x84013301, 0x01240836, 0x11012301, 0x23011123, 0xedfd2502, 0xb30a02cd, 0xfdcd0a02, 0xd32102ed, 0xfdb3eefd, 0xf202d3ee, 0x3cfdc402, 0xfd250387, + 0xfde5020e, 0x0803831b, 0x0100004e, 0xecff4800, 0xcb05ec03, 0x68003900, 0x5b273f40, 0x00210500, 0x00002130, 0x13033021, 0x670b5b1c, 0x013b9f3b, + 0x13801370, 0x4f133f02, 0x03135f13, 0x053a1313, 0x21aa6020, 0x01217801, 0x0801210f, 0x2f192121, 0x0435602c, 0x10146019, 0x820cb647, 0x833920a6, + 0x20b482d0, 0x765c1810, 0x5b112007, 0x142306f8, 0x1807020e, 0x2b07eea0, 0x35272622, 0x3233031e, 0x26343536, 0x210ae85b, 0x6c182223, 0x92080827, + 0x5b33d103, 0x8a574b7d, 0x8843325e, 0xc06e89cd, 0x63602b55, 0xb0b22e63, 0xb0bfbacf, 0x32618e5c, 0x3a5f4425, 0x5c4ba96e, 0x83746226, 0x71a66d47, + 0x49600439, 0x0c395878, 0x59390b06, 0xa0604877, 0x2d224074, 0x182417aa, 0x8787940d, 0x48279781, 0x53363d65, 0x36431e3a, 0x29361f7d, 0x85613618, + 0x00010000, 0x050000c9, 0x00b60510, 0x406b0017, 0x0e0b141b, 0x19650d5a, 0xaf0119d0, 0x19200119, 0x16021930, 0x175a0209, 0x09171864, 0xb3e8ffb8, + 0x82481814, 0x40e03107, 0x48130a23, 0x09160906, 0x09030926, 0x1814120d, 0x14211782, 0x35138220, 0x14191409, 0x07031429, 0x03000b14, 0x32323f00, + 0x2b2b5d5e, 0x0482333f, 0x9a183320, 0x103108fd, 0x3232e1f6, 0x33133031, 0x020e1411, 0x33070607, 0x13851801, 0x01310809, 0x01aec923, 0x04020202, + 0xcc020704, 0x0406acd5, 0xfd080504, 0xb605d731, 0x3e1ae0fc, 0x4a204343, 0xfab4044c, 0x3919034a, 0x4d4c418e, 0xff0046fb, 0x25bd85ff, 0x26026907, + 0x6945b201, 0x01893206, 0xb4150052, 0x26051d01, 0xebffb801, 0x001822b4, 0x0aa7490c, 0x0000c724, 0xed82a204, 0x5e000a30, 0x09082140, 0x01091009, + 0x00100000, 0x04820702, 0x0c002808, 0x2f010cb0, 0x0c10010c, 0x010a9701, 0x0a010a56, 0x40f8ffb8, 0x480c0814, 0x0307070a, 0x0b64045a, 0x08040207, + 0x64040305, 0x33230545, 0x84393912, 0x331123d6, 0x00835d2b, 0x2f331131, 0x335d5e38, 0x33113833, 0x23213031, 0x42231101, 0x043705a1, 0xbafddba2, + 0x3502baba, 0x02cbfdcf, 0x051bfde5, 0x023cfdb6, 0x8242fdc4, 0x000025b0, 0x9304e9ff, 0x1f258f82, 0x08b16200, 0x086f8303, 0x17143b39, 0x895a0348, + 0x10190119, 0x011ee019, 0x1ec41eb4, 0x00031ed4, 0x801e501e, 0x1e07031e, 0x5a01101e, 0x0f216500, 0x7f211f21, 0x10080321, 0x5f032010, 0x6014031e, + 0x83130d11, 0x05bf5c96, 0x2f330123, 0x06f8455e, 0x99825e20, 0x5d383325, 0x64322be1, 0xce4805ea, 0x93042416, 0x4885feba, 0xd0201aba, 0x441aa548, + 0x4b660675, 0x6804200f, 0xb1650801, 0x2b0f820f, 0x040000c7, 0x02b605c1, 0x006e0106, 0x6b653f86, 0x272f8509, 0xcb059804, 0x26000602, 0xeb641f84, + 0x06b9550c, 0x05ae5f08, 0x002100b6, 0x1210406f, 0x131b1b01, 0x70006021, 0xf000b000, 0xb8000400, 0x1040c0ff, 0x00480a06, 0x23000010, 0x237f230f, + 0x13091402, 0x40f0ffb8, 0x2213130c, 0x1af71ae7, 0x011ad602, 0xe0ffb81a, 0x0e0a1040, 0x1a011248, 0x5f0d0003, 0x1313060a, 0x3f000300, 0xe1333f32, + 0x2b391711, 0x94445d5d, 0x068c4406, 0x39123329, 0x31333311, 0x4a010130, 0x52080d0e, 0x1e013301, 0x3e331703, 0x04013703, 0x2654feae, 0x6f9c7053, + 0x25255a33, 0x52353459, 0xfd1c3842, 0x7f01ccee, 0x09090a05, 0x0b030204, 0x01030b0b, 0xfbb60537, 0x7ba45dfa, 0xb90f0f48, 0x35171914, 0x3f043f56, + 0x180ad7fc, 0x0909171a, 0x071d211f, 0x4b001803, 0x05210579, 0x21ff83ba, 0xff847301, 0x00000023, 0x0bad6404, 0x7ffec724, 0xff827105, 0x3b000b32, + 0x5a032140, 0x5a090202, 0x0db00d00, 0x010daf01, 0x2d0a1248, 0x055f0800, 0x12050202, 0x2f333f00, 0xd982e110, 0xf6100130, 0x5d5d5de1, 0x33e1d410, + 0x3031e12f, 0x0b483325, 0xb0b02a0b, 0x02ba06fc, 0xfda6bb85, 0x070b48d9, 0x00010023, 0x207982a6, 0x08698281, 0x48001532, 0x01131d40, 0x1765005a, + 0x17a01770, 0x01172f02, 0x0d011710, 0x700a605a, 0xb00aa00a, 0xb80a040a, 0x0e40c0ff, 0x0a480a07, 0x055f1013, 0x030b1405, 0x27059042, 0x33e12f39, + 0x5d2b2f01, 0xf6217884, 0x058742e1, 0x23060623, 0x06c75322, 0x33162908, 0x11373632, 0xba810433, 0x5d62c373, 0xba356592, 0xb95a7b69, 0x5602ba70, + 0x5f312e2c, 0x4702598a, 0x7473d1fd, 0xc6022828, 0xc7248d82, 0x33070000, 0x603af784, 0x08564240, 0x175a0801, 0x05860105, 0x05a60596, 0x77056703, + 0x05050205, 0xa3820901, 0x000d3208, 0x020d100d, 0x0d500d20, 0x0d800d70, 0x0dd00dc0, 0x0f070de0, 0x0407010d, 0x0c64015a, 0x0302060a, 0x015f0408, + 0xe13f0012, 0x33333f32, 0xe1f61001, 0x05a8595e, 0x2f391122, 0x28490882, 0x05044b06, 0x33112129, 0x94f93307, 0x831f02ba, 0x05244902, 0x05f0fa24, + 0x8f830010, 0x077ffe23, 0x088f82e3, 0x71000f47, 0x0c564b40, 0x175a0c01, 0x09860109, 0x09a60996, 0x77096703, 0x09090209, 0x005a0d05, 0x02025a03, + 0x00116500, 0x02111011, 0x11501120, 0x11801170, 0x11d011c0, 0x0f0711e0, 0x08070111, 0x1064055a, 0x03060a0e, 0x0eb1410c, 0xe4259c8c, 0x10e12f32, + 0x41a089e1, 0x11200bbd, 0xb021a484, 0x41a688b0, 0xab850ac4, 0x14000226, 0xd5040000, 0x2b06c549, 0x0b334052, 0x06905a11, 0x08060601, 0x2e06c849, + 0x2f1d0f01, 0x5f1d3f1d, 0x051daf1d, 0x49080806, 0x08220bca, 0xca49095f, 0x0111240f, 0x4c5e2f33, 0x5d20073c, 0x200b304d, 0x10cc4935, 0x7e3cd538, + 0x95fe86c2, 0x0f02acfe, 0x7fcf9895, 0xa04efd37, 0x5c2da3ae, 0xcc495d8a, 0xa4122107, 0x260d2c4c, 0x00c70003, 0x82cf0500, 0x0e3108ab, 0x1d001900, + 0x2b404900, 0x00005b13, 0x06000001, 0x651d5a1a, 0x9f1f0f1f, 0x0906021f, 0x64065a0f, 0x0f5f191e, 0x0209af09, 0x1b090908, 0x600f0307, 0x0be44c1a, + 0x68075f5e, 0xe121068a, 0x05035931, 0x2311d94c, 0x11331101, 0x2007734a, 0x0e704aba, 0xbb930322, 0x8c07734a, 0x56fd25a5, 0x4afab605, 0x830a1d4b, + 0x404825ab, 0x905b132e, 0x6731a982, 0x5f1b0f1b, 0x1b06021b, 0x48181540, 0x130d401b, 0x20ae8448, 0x83ae891a, 0x21ac83ad, 0x1b4b3fe1, 0x2b2b2509, + 0xf6105d5e, 0x91088574, 0x94a497a8, 0x088682a1, 0xecff3b43, 0xcb054404, 0x51002400, 0x201d2f40, 0x1e160c5b, 0x0c041e16, 0x26bf2667, 0x26df26cf, + 0x25040403, 0x1faa5f1e, 0x011f7801, 0x08011f0f, 0x1a071f1f, 0x1311175f, 0x075f0003, 0xe13f0004, 0xe1333f33, 0x2e9e8311, 0x11e15d5d, 0x5d2f3301, + 0x3911e610, 0x4f2f2f39, 0x22280521, 0x36270706, 0x16323336, 0x08d86718, 0x51022e21, 0x99080597, 0x35211312, 0x01032e21, 0x3f945eba, 0x6cc44f4e, + 0x52a2f4a2, 0xa4f7a552, 0x4e56613a, 0x59a04e27, 0xfd06f7ed, 0x0971028b, 0x059d7347, 0x9c202e27, 0xc16d2c2a, 0xb39df6fe, 0x6dcae0fe, 0x0f170e07, + 0x012317a2, 0xa2060117, 0x407ab06f, 0xc7000200, 0x9e07ecff, 0x1a00cd05, 0x5e002e00, 0x5b1b3c40, 0x0111900a, 0x250d1111, 0x3067005b, 0x3f01300f, + 0x7f306f30, 0xff30ef30, 0x40300530, 0x10481411, 0x640d5a0c, 0x165f2a2f, 0x0f5f0b04, 0x10080110, 0x030e0d10, 0x5f20120d, 0xd4821305, 0x4c3f3f21, + 0x3f20058d, 0x20051e42, 0x08c5422b, 0x31e13324, 0x446e0130, 0x21272908, 0x33112311, 0x033e2111, 0x9c59e184, 0x2e2b0809, 0x0e222302, 0x4f9e0702, + 0x9796e59b, 0x065098e1, 0xbabaaefe, 0x550b5601, 0x9591db98, 0xfb4f9ae5, 0x9d6731fa, 0x669d6d6c, 0x82653030, 0x679e2e07, 0xa9dd0231, 0x6cc6eafe, + 0x0301b764, 0x051e4fa0, 0xa7ec9226, 0xfec56b5a, 0x141fa318, 0x00192b08, 0x05f20300, 0x000f00b6, 0x409b001c, 0x01000609, 0x00f600e6, 0xffb80002, + 0x0b2440f8, 0x0e1c480f, 0x0000035a, 0x1e650d08, 0xa1181e3f, 0x06280b9e, 0x01e60101, 0x010201f6, 0x0d202883, 0x59082882, 0x01024b01, 0x0b084002, + 0xffb80248, 0x022640f0, 0xdf5b1602, 0xff08ef08, 0x40080308, 0x0748130f, 0x02081708, 0x1d660808, 0x0f03601c, 0x6011010f, 0x010e030b, 0x333f0012, + 0x3912e13f, 0x01e1332f, 0x5d5ef610, 0x33e15d2b, 0x5d2b382f, 0x715d2b33, 0xf6105d5d, 0x33113911, 0x0c8232e1, 0x01303130, 0x2e012301, 0x36343503, + 0x23112133, 0xe15d1111, 0x33890808, 0xb2fe4202, 0x377d01db, 0xfd2c4b63, 0xbb7501fb, 0x4f734abc, 0x774e2729, 0x5c02b451, 0x8f02a4fd, 0x88613e14, + 0xfac9c65d, 0x025c024a, 0x613e1dbb, 0x4a694244, 0xffff0028, 0xecff5e00, 0x5e049c03, 0x44000602, 0x02000000, 0xecff7500, 0x23062104, 0x3b002700, + 0x2c404900, 0x1e09482d, 0x3dd03d57, 0x013d7f01, 0x0f013d40, 0x1306013d, 0x56004837, 0x1350323c, 0x28081919, 0x09162350, 0x48100b08, 0x01085109, + 0x2be13f00, 0x0569573f, 0x2b096462, 0xe132f610, 0x34133031, 0x37363612, 0x17230282, 0x8207030e, 0x18332002, 0x200d0c5e, 0x068b6c01, 0xc008cf83, + 0x021e1407, 0xa2683175, 0x66f27d71, 0x7d7b3221, 0x643e2c75, 0x0d042948, 0x6b543e12, 0x65966340, 0xae7c4532, 0x7bad6b68, 0x3ce10142, 0x1a264662, + 0x3d415a3a, 0x0d39536a, 0x02724119, 0x1901b593, 0x1b197ecb, 0x08a01431, 0x0a181816, 0xa571420e, 0x313c1d71, 0xb4834920, 0x8ace896c, 0xfdad5945, + 0x582794fe, 0x8654698f, 0x4430335f, 0xbc641a49, 0x03005993, 0x0000ae00, 0x4a041904, 0x20001500, 0x5c002b00, 0x1b033a40, 0x00004621, 0x0947160f, + 0x2d202d57, 0x902d4001, 0xd02db02d, 0x052df02d, 0x06012d0f, 0x0f471b26, 0x1a032c54, 0x0126bf50, 0x26892679, 0x1b262602, 0x0f105025, 0x150f501b, + 0x0eb86500, 0x28098e60, 0x3912e12f, 0x14013031, 0x088e4c06, 0x21112129, 0x03021e32, 0x83232634, 0x863e2009, 0x32332109, 0x50080982, 0x386b7bf6, + 0x2f294761, 0xfe719f65, 0x53c50139, 0x903b678e, 0x00ff8082, 0x5d380401, 0x6d1e2643, 0xecf5fe6c, 0x1f3f5c3e, 0x75683503, 0x24070712, 0x433f5b3d, + 0x04305674, 0x6b401c4a, 0x485cc7fd, 0x2a12a8fe, 0x4d0c0245, 0x0fd7fe40, 0x00003c24, 0x21e38301, 0xe3820a03, 0x2f00053f, 0x00001c40, 0x00020010, + 0x07a00700, 0x01078101, 0x02010750, 0x06540347, 0x0f045001, 0x24411802, 0x5d5d2509, 0x5d2f3311, 0x212fb282, 0x21112311, 0x5afe0a03, 0x035c02b6, + 0x8250fcb0, 0x00022645, 0x0483fe29, 0x08098237, 0x17000f5a, 0x10407900, 0x46120717, 0x3f072f0c, 0x070b0207, 0x0702071b, 0x40f0ffb8, 0xb20ca239, + 0x0c04020c, 0x07020c14, 0x050c070c, 0x010e4710, 0x20000046, 0x550e010e, 0xcf19af19, 0x19300219, 0x01192f01, 0x05054604, 0x0c4f1218, 0x060e170f, + 0x05150350, 0x3f00fb00, 0x32e13f32, 0x11210382, 0x06f96601, 0x475de421, 0x392b068b, 0x5d5d2f2f, 0x105d5d38, 0x4f3311e1, 0x02210ac9, 0x05ca4f12, + 0x0e233108, 0x37040703, 0xae4efdae, 0x43634156, 0x17020122, 0xc0b2fe97, 0x513a2407, 0x0183fe34, 0x0283fe7d, 0xf3df5f17, 0xfc7f0001, 0x67240350, + 0x53c2d1d7, 0x2905a560, 0x5e04e103, 0x48000602, 0xc14f0000, 0xbe052105, 0x2208db82, 0x409c0011, 0x0303061f, 0x000f460a, 0x010bd600, 0x0bc90bb9, + 0x010ba602, 0x0b010b97, 0x04070e0b, 0x82080505, 0xb3c024e8, 0x83481512, 0x402e0807, 0x480b0724, 0x0601070f, 0x07071007, 0x10130013, 0x13df0213, + 0x70133001, 0x03139013, 0x0701130f, 0x0d101011, 0xf0ffb80e, 0x0e0e0f40, 0x69820312, 0x0a080d27, 0x01041115, 0x17984f0f, 0x33117128, 0x5d5e382f, + 0x974f2b2b, 0x32e1210e, 0x8f4ffc84, 0x01013e0d, 0xa48f0233, 0xfec5a001, 0xcece0158, 0xfea443fe, 0xcf01cf44, 0x02c558fe, 0xfd150235, 0x250383eb, + 0x2d02cbfd, 0x0384d3fd, 0xe9821382, 0xecff4432, 0x5e045203, 0x5f003900, 0x46053a40, 0x39161b16, 0x31080182, 0x2147340c, 0x3bb03b57, 0x3bd03bc0, + 0x013b6f03, 0x29013b20, 0x1b3a560c, 0x39cf5038, 0x99398901, 0x390f0239, 0x39390801, 0x26502f11, 0x11500816, 0x69720010, 0x5d5d2708, 0x100139e1, + 0x8a4f32e6, 0x39392306, 0x884f2f2f, 0x3e322506, 0x26343502, 0x200a6b4f, 0x139a4f15, 0x61082485, 0x71013523, 0x2748643d, 0x81476c73, 0x4d283f4b, + 0x56355a52, 0x1c3a6990, 0x2c2b4633, 0x35263f52, 0x6d71a66c, 0x4c1f3aaf, 0x37336157, 0x85294660, 0x8702818a, 0x2d402712, 0x22264d4d, 0x131c1493, + 0x6d4a2609, 0x3b4d3246, 0x0e0b0e29, 0x3e5a422c, 0x31567543, 0x10a62223, 0x120f181f, 0x5e33452a, 0x1143995b, 0x04310805, 0x004a043b, 0x4051000b, + 0x0910031b, 0x06034818, 0x0d550546, 0x0d100d00, 0x0da00d20, 0x0dd00dc0, 0x0d070df0, 0xb3c0ffb8, 0x0948110e, 0x40f0ffb8, 0x2d258211, 0x0a460009, + 0x03080c54, 0x02060f0b, 0xba41150a, 0x10012706, 0x2b32e1f6, 0x06845d2b, 0x30312708, 0x01071101, 0x11231133, 0x11230113, 0x020c5a01, 0x0bace904, + 0x04eafefd, 0xfc64fd4a, 0xb6fb9803, 0x0f018702, 0x7c826afc, 0x3f058b66, 0x17063b04, 0xd2012602, 0x06010000, 0x00253602, 0x01b41500, 0x01261111, + 0xb4ffffb8, 0x040a0c16, 0x240a4f4f, 0x030000ae, 0x283882e5, 0x4041000a, 0x01010023, 0x053a6304, 0x03031037, 0x010c0f0c, 0x4706020a, 0x050b5407, + 0x070a0a02, 0x040f0800, 0x209f8307, 0x05494d3f, 0x3230a284, 0x2f33115d, 0x33335d38, 0x30313311, 0x01013301, 0x2b06354f, 0xfec4fa02, 0xcec60161, + 0xb4b44bfe, 0xf126a582, 0x2d02c5fd, 0x0982d3fd, 0x0100eb28, 0xf2ff1000, 0x7382b003, 0x00143408, 0x0331404c, 0x01130446, 0x800113f4, 0xc0139013, + 0x0413d013, 0x13011354, 0x47010b13, 0x0f165500, 0xff162f16, 0x0b060316, 0x5003150b, 0x4f0e0f13, 0x82011608, 0xe13f2181, 0x20059553, 0x06224f5e, + 0x5d5d5d23, 0x06087471, 0x7d680220, 0x27300805, 0x32331635, 0x37123636, 0xb6b00321, 0x4014fefe, 0x1c56825f, 0x1b171031, 0x33455937, 0x03540212, + 0xfefdfeb0, 0x0669e694, 0x75068306, 0xfa6f01f1, 0x2105bf41, 0x95821005, 0x00204208, 0x1f3f405e, 0x55004601, 0x0122cf22, 0x22502240, 0x01220f02, + 0x46101306, 0x02215411, 0x4b0f3b0f, 0x030f5b0f, 0x0f190f09, 0x0f030f29, 0x340f121f, 0x54194419, 0x19060319, 0x19261916, 0x01091903, 0x25a38211, + 0x5d333333, 0x04833f5d, 0x46331121, 0x102008bf, 0x2a073d4d, 0x0107030e, 0x032e0123, 0x82231127, 0x031e351e, 0x37033e17, 0x10053301, 0x141106a1, + 0xf8fe0712, 0x05f7fe87, 0x32080983, 0x0b01dda2, 0x0f13160d, 0x130e0604, 0x0e010d16, 0x158103d9, 0x12363b39, 0xb00250fd, 0x3e3b310d, 0x047ffc1a, + 0x2247fd4a, 0x10323c43, 0x413b3111, 0x42bd0221, 0x44080c89, 0x0217405b, 0x55054706, 0x200d000d, 0x0d30020d, 0x0d500d40, 0x0df00dd0, 0xffb80d05, + 0x0e2340c0, 0x09014811, 0x0c540a47, 0x01eb5008, 0xb901a901, 0x010f0201, 0x012f011f, 0x01010603, 0x0315050a, 0x3f000f00, 0x056f5832, 0x495d5d21, + 0x32260b6d, 0x11013031, 0x7e4e1121, 0x11233805, 0x21026401, 0xdffdb6b6, 0xfe4a04b6, 0xfbc70139, 0xfee901b6, 0x654a0417, 0x280812b1, 0x040000ae, + 0x004a0412, 0x402d0007, 0x0447051c, 0x09100955, 0x09600920, 0x09800970, 0x01470005, 0x50070854, 0x00050f02, 0x84788315, 0x755d2071, 0x012e0ce5, + 0x6403b664, 0x0408feb6, 0x03b6fb4a, 0x618200b0, 0x14feae2b, 0x5e043f04, 0x53000602, 0x240f8300, 0x03ecff71, 0x2a0f846f, 0x00000046, 0x00290001, + 0x845e0300, 0x40582871, 0x0109203c, 0x830109df, 0x5f02286c, 0x000f0109, 0x8200cc01, 0x00bf2105, 0x003d3d82, 0x60034702, 0xd0057005, 0x051f0305, + 0x00050501, 0xb0031003, 0x0403c003, 0x50050103, 0x06c94606, 0x2f013230, 0x5d2f335d, 0x32e1105d, 0x5d5d5e2f, 0x03825d71, 0x3b07d246, 0x5e032135, + 0xfeb7c1fe, 0x033503c1, 0x0350fcb0, 0xffff9ab0, 0x14fe0a00, 0x4a04df03, 0x5c205f82, 0x032c8d82, 0x14fe7100, 0x14062305, 0x22001900, 0x30089982, + 0x274b4074, 0x1d460b00, 0x130d0c17, 0xc90cb949, 0x0c97020c, 0x0c020ca7, 0x4823120c, 0x202b5705, 0x2b0f012b, 0xef2b9f01, 0x2b80022b, 0x012b6f01, + 0x37108340, 0x06022b1f, 0x5612481a, 0x2600182a, 0x1700501e, 0x501d2710, 0x0b160d0a, 0x2209be62, 0x4f013f32, 0x9e830510, 0x2508c775, 0xe133332b, + 0xad823232, 0x080cac60, 0x023e3483, 0x01331137, 0x11171614, 0x3405030e, 0x36112726, 0x71210336, 0x474c88bd, 0xaa77be86, 0x4c89bf72, 0x79c18547, + 0x9c0cfeaa, 0x507d58ae, 0x9b390325, 0x0499acaa, 0x8f550c5a, 0xc87d7dc6, 0xfe0b5691, 0x0adc0124, 0x7ec99056, 0x558fc77d, 0xfcba010b, 0x13d2bb13, + 0x3d093c03, 0xba5e9167, 0xc6fc14cc, 0xff00d114, 0x002300ff, 0x04db0300, 0x0006024a, 0x0000005b, 0xfeae0001, 0x04b20483, 0x000b004a, 0x32d68244, + 0x01000f47, 0x07000006, 0x010a8f47, 0x0d100d0a, 0x4f600d20, 0x063206f9, 0x54034706, 0x0f04080c, 0x0350060a, 0x00fb0115, 0x09513f3f, 0xd4102808, + 0x2f33e15d, 0x47e15d5e, 0xef4f06ba, 0x04333605, 0xb2fcb6b2, 0xb6f801b6, 0x0183fea0, 0xfc4a047d, 0xfcb00350, 0x20738250, 0x2083829a, 0x287382fe, + 0x40310018, 0x470c081c, 0xf29b180b, 0x47012c08, 0x08195417, 0x12125003, 0x4209150b, 0x392205f6, 0xb664e12f, 0x82322008, 0x14112b60, 0x023e3233, + 0x11331137, 0x3a651123, 0x012b0807, 0x502db850, 0xb62a4d4c, 0x55502cb6, 0x7a4e3a5e, 0x4a042b52, 0x0fae66fe, 0x011c2c1c, 0x01b6fbd5, 0x20301ee9, + 0x73542f11, 0x43a60144, 0x06210599, 0x08f38446, 0x4340662f, 0x09b64700, 0xa90209c6, 0x74030109, 0x94098409, 0x09670309, 0x09090601, 0x04470105, + 0x0d200d55, 0x010d0f01, 0x0df00d80, 0x010d6f02, 0x300d8340, 0x06020d2f, 0x54054708, 0x5008000c, 0x060a1505, 0x05e84702, 0x4132e121, 0xae6408ed, + 0x5d5f2207, 0x2302825d, 0x253031e1, 0x2006285a, 0x2f078211, 0xba01d503, 0xb668fab7, 0x9ab6bb01, 0xb6fbb003, 0x41051741, 0x06210589, 0x2d9582e5, + 0x4077000f, 0xb6470a4e, 0x0207c607, 0x958207a9, 0x07840732, 0x67030794, 0x07060107, 0x470b0307, 0x0e47010e, 0x24082e82, 0x010ebf00, 0x1120110e, + 0x01110f01, 0x11801140, 0x11f011e0, 0x2f110f04, 0x06060211, 0x10540347, 0x0f04080c, 0x0bac410e, 0xa1513220, 0x1071260a, 0x2f325dc4, 0x0507515d, + 0x0120a688, 0x8308d15a, 0x331126a8, 0xfab6e506, 0x82a8837f, 0x419f20b1, 0x032b0bc3, 0x0050fcb0, 0x00290002, 0x82fc0400, 0x0e3708b1, 0x5c001b00, + 0x470f3e40, 0x501d5704, 0x901d601d, 0x041de01d, 0x00011d3f, 0x000a4716, 0x020c100c, 0x0cf00cb0, 0x000c0c02, 0x500a100a, 0xa00a600a, 0x0a08050a, + 0x83bf5015, 0x0c1627c5, 0x160f0d50, 0x634b0a50, 0x01e12c09, 0x335d5e2f, 0x10715d2f, 0x5c5d32e1, 0xe1730874, 0x11212805, 0x01213521, 0x4b022e34, + 0x0225065c, 0xd4140148, 0x05504bcc, 0x98fe2808, 0x02021f02, 0x40604121, 0x040100ff, 0x26445d37, 0x9b9c8702, 0x2f587c4d, 0xfc9ab003, 0x284231f8, + 0x11a8fe11, 0x4c004229, 0x3f08051b, 0x4a045005, 0x10000c00, 0x61001d00, 0x47184040, 0x04100400, 0x04700420, 0x060504d0, 0x0e0a0404, 0x1f550d47, + 0xbf011f0f, 0xdf1fcf1f, 0x041fff1f, 0x0f011fa0, 0x021f7f1f, 0x47120007, 0x111e540a, 0x0f25be85, 0x50120f0b, 0x5ebd830e, 0x9e450511, 0x635e2006, + 0x164309c1, 0x32332105, 0x332bc087, 0x33112301, 0x32331101, 0x8335023e, 0x640122c8, 0x2dc186ec, 0xec03b662, 0x14fcb6b6, 0x435d38db, 0xc7822126, + 0x0427bf87, 0x04b6fb4a, 0x84a4fd4a, 0x833020be, 0x000022c8, 0x08df4c02, 0x19000c3e, 0x29404000, 0x57044714, 0x011b001b, 0x1b201b00, 0x1b901b70, + 0x1bd01bb0, 0x0e000806, 0x1a21ac82, 0x22ac850d, 0x410e0f0b, 0x39210668, 0x27a8882f, 0xe1f61071, 0x21013031, 0x1122a089, 0x9c892111, 0x86150121, + 0xb639239d, 0x98910401, 0x4b08948c, 0xff370001, 0x044203ec, 0x0026005e, 0x0e3e405e, 0x0f0c040e, 0x28572248, 0x28af288f, 0x01284002, 0x1f040f18, + 0x03042f04, 0x110c4004, 0x27580448, 0x0eef500d, 0xb90ea901, 0x0e0f020e, 0x0e2f0e1f, 0x0e0e0603, 0x1d511207, 0x00510710, 0x250ce170, 0xe61001e1, + 0x0d42712b, 0x11322305, 0xba622f39, 0x21372b0c, 0x26262135, 0x020e2223, 0x824e2707, 0x014c0809, 0x367c5942, 0x49528336, 0x04305274, 0xdb0123fe, + 0x198c920d, 0x17383c3b, 0x48401835, 0xb366264e, 0x8c514d84, 0x1d1e14ba, 0x282519a2, 0x9a5c8454, 0x0f0997a6, 0x0c9a0a13, 0x3e091016, 0x929ddb89, + 0x00438ad4, 0xae000200, 0x0806ecff, 0x1a20d182, 0x2008d382, 0x1b4b4072, 0x11200a48, 0x01114f01, 0x210d1111, 0x28570048, 0x282f280f, 0xff28ef02, + 0x28470228, 0x080c8401, 0x470c1026, 0x2427540d, 0x0b101650, 0x0110ef50, 0x10b910a9, 0x01102c02, 0x101b100b, 0x10100602, 0x0d0f0e0d, 0x05501e15, + 0x3f21e084, 0x05155212, 0x51e15d21, 0x37420645, 0x715d2109, 0x25054751, 0x2223020e, 0x4551022e, 0x021e210b, 0x0b958318, 0x08062308, 0x6aab7840, + 0x4675a262, 0xb6effe07, 0x0a1301b6, 0x63a07648, 0x4479a762, 0x8e8029fd, 0x8f807e8f, 0x6b6c7e8e, 0x81423005, 0x17fe7cbe, 0x39fe4a04, 0x3e78b174, + 0x18d3914b, 0x080b77a0, 0x0000233e, 0x4a049103, 0x1c001100, 0x14405300, 0x07111102, 0x0e470f18, 0x1e0f1e55, 0x1e8f1e6f, 0x01000603, 0x40f0ffb8, + 0x12010119, 0x12400746, 0x56074815, 0x5010021d, 0x19001818, 0x0f0f0d50, 0x82062948, 0x32e137ce, 0x2bf61001, 0x382f33e1, 0x105d5e33, 0x1132e1f6, + 0x31331139, 0xe4503330, 0x3e420805, 0x11213302, 0x03231123, 0x33021e14, 0x22231133, 0x01c6e906, 0x41542d23, 0x8a643828, 0xb6bc0153, 0x4125ddf4, + 0xfedb365a, 0xcd01686b, 0x6c4c300c, 0x51794e47, 0x01b6fb2a, 0x305401b0, 0x01162e46, 0x5d485f66, 0x05e12b07, 0x002602d9, 0x01000048, 0x74180006, + 0x002b1c97, 0xfe120001, 0x06120414, 0x82310014, 0x322c08db, 0x470c171f, 0x1033552d, 0x80336033, 0x22230333, 0x1b47161e, 0x21325417, 0x1a1e4f19, + 0x10231c1a, 0x10290050, 0x03292029, 0x001c0f29, 0x0bbf5c18, 0x33e15d22, 0x2208847c, 0x7132e132, 0x12220525, 0x5d183139, 0x11200c7a, 0x09c85c18, + 0x18352321, 0x2410c665, 0x02020e14, 0xd15c18f0, 0x70692809, 0x1d436e51, 0x189c9cb6, 0x180dd365, 0x200ed55c, 0xe1651844, 0xbefc2615, 0x2f577b4d, + 0x056b4c00, 0x060a032e, 0x01260221, 0x010000cd, 0xd4760006, 0x2705f166, 0x01261112, 0x030c0645, 0x490b2561, 0x33080697, 0x4f002200, 0x17173140, + 0x240d1f16, 0x24af248f, 0x01244002, 0x05481916, 0x50192356, 0xa90116ef, 0x0216b916, 0x161f160f, 0x0603162f, 0x131c1616, 0x1c100a51, 0x26119443, + 0x5d32e1f6, 0x43ce105d, 0x2e210792, 0x058b7c02, 0x24063b6e, 0x15210706, 0x08fe7221, 0x65520222, 0x0f35ab18, 0x0e928b38, 0x23fedb01, 0x518a9209, + 0x7b363683, 0xd5893f14, 0x89db9d96, 0x226e223e, 0xa6972905, 0x25a4b89a, 0x1e1da219, 0x5a23e382, 0x4a03ecff, 0x5621055f, 0x20f38300, 0x27e982a0, + 0x02e50575, 0x004c0006, 0xff210f82, 0xed7518ee, 0xffff262d, 0x14febcff, 0x21418501, 0x3c82004d, 0x10004108, 0x1206f2ff, 0x1d004a04, 0x6b002a00, + 0x460c4540, 0x4725001c, 0x011cd40a, 0x1ca01c90, 0x011c2402, 0x1c011c00, 0x140a1c0a, 0x5704471e, 0x2f2c0f2c, 0x5f2c3f2c, 0xbf2c7f2c, 0x072cef2c, + 0x242b1414, 0x29056445, 0x1c500c25, 0x114f170f, 0x6b452516, 0x3fe12606, 0x2f3912e1, 0x06f8555d, 0x11e1f627, 0x2f2f3939, 0x2700825d, 0x1032e110, + 0x013031e1, 0x20091b46, 0x10384d23, 0x2e340136, 0x11232302, 0x023e3233, 0xd4ec8703, 0x9f652ecb, 0xd962fe71, 0x2b0f4a4d, 0x21d9012b, 0xd7406041, + 0x435d38db, 0x4d0af646, 0x04470e5e, 0x0002260b, 0x060000ae, 0x08ef8275, 0x2100142a, 0x30405300, 0x02471c05, 0x15130f0f, 0x23570947, 0x800123ef, + 0x233f0123, 0x01231001, 0x13471201, 0x111b2254, 0x01bf0550, 0x00240082, 0x0f13501c, 0x8208924c, 0x5d2f21cc, 0x50080365, 0x1120051e, 0x2208966b, + 0x82331121, 0x08b947b9, 0x11231122, 0x0124ce8a, 0xb6cf0164, 0x2e08fa46, 0x05b631fe, 0x61412115, 0x37dcd83f, 0x4c26445d, 0xfe2105c0, 0x05bf473d, + 0x8b05c64c, 0x000127bd, 0x04000012, 0xbb850612, 0x14683226, 0x000b1401, 0x17926918, 0x180e0e21, 0x230b8d69, 0x0b00100f, 0x0c8d6918, 0x0e8c6918, + 0x5d391123, 0x84a91831, 0x12c6430c, 0x435c0321, 0x022016b9, 0x1b8d6918, 0x00ae0032, 0x06e50300, 0x01260221, 0x010000d4, 0x08760006, 0x2805a743, + 0x01261117, 0x07110b0c, 0x07115003, 0x2507b14c, 0x26021706, 0x2b835c00, 0xb1360222, 0x28202b85, 0x0a232b82, 0x1800232d, 0x4b09cb73, 0x122205c3, + 0xd7824a04, 0x40592408, 0x0106d63d, 0x06c706b7, 0xb5470602, 0xd507c507, 0x07760307, 0x4a020786, 0x02075a07, 0x01090707, 0x4b550447, 0x05340ad7, + 0x54094700, 0x5000050c, 0xfb061509, 0x000f020a, 0x3f3f333f, 0x28096f4b, 0x5d2f3911, 0x5de15d5d, 0x08c24a5d, 0x2111232e, 0x64013311, 0xfeb6f801, + 0xa0feb7b3, 0x4a05c24a, 0xa682051a, 0x82c70021, 0x06be31e1, 0x000700e3, 0x002c4044, 0xef03df5a, 0x0303ff03, 0x3505cc50, 0x09b00903, 0x0f0209d0, + 0x0209af09, 0x64065a05, 0x075f0408, 0x00820120, 0x0603072e, 0x3f3f0012, 0x105d2f33, 0xf61001e1, 0x11206e82, 0x5d260b82, 0x013031e1, 0x6f823311, + 0x03112331, 0xc3fdb00e, 0x01b605ba, 0xfa2dfe2d, 0x4bb605f0, 0x032305c3, 0x8289050a, 0x40303469, 0x0047051c, 0x02001000, 0x02090000, 0x08540347, + 0x82200610, 0x010622ff, 0x07f9544f, 0x58834e82, 0x55835683, 0xae5d2120, 0x0a033205, 0x01b65afe, 0xc103b6a6, 0x4a043ffc, 0xffff3f01, 0x65581800, + 0x4300230e, 0x0761e700, 0x052b2b05, 0xffb80126, 0x2b31b4ac, 0xa5410e1e, 0x6758180a, 0x00062a0d, 0x00004c43, 0x3001b415, 0x252d8311, 0x3036b49e, + 0x2d8d2e11, 0x0bc35818, 0x01760023, 0x245d82a0, 0x010b4013, 0x225e8237, 0x9a312b64, 0x8207205b, 0x0017242d, 0x82130000, 0x823c202d, 0x3069225e, + 0x2c5b9236, 0x0026022b, 0x0100003a, 0x016a0007, 0x275b8239, 0x0102b619, 0x02260534, 0xff23bb82, 0x853f2bb4, 0x08876d5f, 0x0521bd84, 0x203382d9, + 0x2133855a, 0x6182ac00, 0x39213383, 0x21338611, 0x65854430, 0x20823388, 0x59180420, 0x00230a2b, 0x4172ff43, 0x09200521, 0xb824c282, 0x0fb4a4ff, + 0x1b2d5918, 0x2f820720, 0x42824b20, 0x01b41523, 0x83c48223, 0x4229202f, 0x25080dcb, 0x03d10152, 0x007902ae, 0xb91d0003, 0xc0ff0200, 0x0c060b40, + 0x05020248, 0x01b90000, 0xe13f00bd, 0x33112f01, 0x537c2b2f, 0x03522905, 0xa8d1015c, 0x000100a8, 0x07203582, 0x072035a8, 0x022835bb, 0x31fefcff, + 0xd3ff4e03, 0x0734a182, 0x18402a00, 0x09000004, 0xba050105, 0x06ff06ef, 0xba020602, 0x24064278, 0x5d2f0001, 0x220282e1, 0x82332f01, 0x313325b0, + 0x35210130, 0x03250184, 0x03aefc4e, 0x25038352, 0x8c8b31fe, 0xbd82008b, 0x03172808, 0x055001c1, 0x000c00b6, 0x5f174025, 0x0f06010e, 0x6f075f07, + 0xcf07bf07, 0x0c070507, 0x9c0c0198, 0x3f000306, 0x822f01e5, 0x5d332150, 0x2108fb82, 0x37033e27, 0x07030e33, 0x270e0e25, 0x8919342e, 0x161a1d0f, + 0x16c10308, 0x7b7c7a36, 0x83843d38, 0x5593357c, 0x0f2d4a82, 0x6f015f01, 0xcf01bf01, 0x06010501, 0x83c2829c, 0x83a78255, 0x17012155, 0x23205182, + 0x01215982, 0x33568242, 0x8919332f, 0x161b1d0e, 0x16b60508, 0x7a7d7937, 0x84843c38, 0x57825682, 0xf8fe3f26, 0xee007901, 0x352cad82, 0xff0e00b9, + 0x0a1440c0, 0x980c4818, 0x7f205a85, 0x012a5a84, 0xffb80706, 0x1510b7c0, 0x65820748, 0xbb84a820, 0x33332b29, 0x2be15d2f, 0x88253031, 0x0f6a2367, + 0x6782270e, 0x830f8a21, 0x17ee2167, 0x7d20bd87, 0x1926bd83, 0x5201c103, 0x6582b605, 0x1c402b3a, 0x06010e5f, 0x055f050f, 0x057f056f, 0x05cf05bf, + 0x050705df, 0x0b980005, 0xe120c288, 0xc3835b82, 0x1e132a08, 0x2e231703, 0xee372703, 0x1d1a1608, 0x3419890f, 0x0e0e272e, 0x7c35b605, 0x383c8484, + 0x37797d7a, 0x00020016, 0x02c10317, 0x085b84d1, 0x62001938, 0x1bbf4840, 0x011b9001, 0x1b5f1b0f, 0x13031b6f, 0x145f140f, 0x147f146f, 0x14cf14bf, + 0x140714df, 0x0e981914, 0x0100980c, 0x01600150, 0x01b00170, 0x01d001c0, 0xa3410107, 0x0c192d0d, 0x0306139c, 0xe5333f00, 0x5d2f0132, 0x2f20e884, + 0x5d249285, 0x0130315d, 0x2007ae41, 0x21088721, 0xb841a601, 0xb8fd210b, 0x4118c641, 0xb79e0bd1, 0x5014002c, 0x70146014, 0xc014b014, 0xb785d014, + 0x5f0e0f2a, 0xbf0e6f0e, 0x050ecf0e, 0xa041c282, 0x01bf2407, 0x84df01cf, 0x130725c2, 0x000d9c06, 0x3220b782, 0xb685b783, 0xb78a5d20, 0x2007a841, + 0x15194221, 0x42480221, 0x32421827, 0x0230080b, 0xf8fe3f00, 0xee00fa02, 0x19000c00, 0x51407e00, 0x1be01bd0, 0xa4031bf0, 0xc41bb41b, 0x1b90031b, + 0x1b200201, 0x1b401b30, 0x1b701b60, 0x13061b80, 0xc783c987, 0x1414062b, 0x0e909819, 0x0ef00ee0, 0x20ce8303, 0x83c88a02, 0x010621c6, 0x24056b42, + 0x18100a40, 0x22cf8548, 0x843f00a8, 0x057042cf, 0x865d2f21, 0x5d5f23d1, 0x7c425d5d, 0x42d3890a, 0xd38d0c85, 0x420b9342, 0x69080b9e, 0x7b000100, + 0x68030000, 0x0b001406, 0x52407c00, 0x0da00d90, 0x0df00de0, 0x010d6f04, 0x0d300d10, 0x07030d40, 0x0804c006, 0x0be40308, 0xd6020bf4, 0x0b77010b, + 0x010b6a01, 0x45010b54, 0x0b26010b, 0x09c00b01, 0x0909010a, 0x02010236, 0x100300be, 0x0303a003, 0x00010403, 0x0a0bbf05, 0x08c20607, 0x2f000300, + 0x3232f63f, 0x0382e132, 0x5d2f012a, 0x11325de1, 0xe6103333, 0x0283c282, 0x2f331125, 0x8433e633, 0x250136cf, 0x05132313, 0x33030535, 0x68032503, + 0xd937b5fe, 0x01c9fe37, 0x31068237, 0xdd034b01, 0x0304fc1f, 0x1eb41ffc, 0x5ffea101, 0xb586001e, 0xb5827d20, 0x00154e08, 0x007140b0, 0x17a00117, + 0x17f017b0, 0x01177f03, 0x17401720, 0x08031750, 0x0b0ec00d, 0x01050f0f, 0xf4011204, 0x12e60112, 0x01128701, 0x6401127a, 0x12550112, 0x46123601, + 0xc0120212, 0x10111410, 0x00031510, 0x0a05be04, 0x0006090a, 0x08b98205, 0x20051025, 0xa0055005, 0x0605b005, 0x13140508, 0x12bf0c0b, 0xc20d0e11, + 0x0109000f, 0x06bf0800, 0xc2070203, 0x872f0005, 0x27dc8ad3, 0x33715d5e, 0x102f3333, 0xe58cea83, 0x0d827120, 0x33332f24, 0xdd5532e6, 0x15252106, + 0xf087eb87, 0x022e1082, 0xfe4c0131, 0x38d937b4, 0x4c01b4fe, 0x05832f2f, 0x37d93822, 0x2f301383, 0xb41ef001, 0x0187fe1f, 0x1eb41f79, 0x13012201, + 0x78220683, 0x148388fe, 0x00ed3208, 0x96000100, 0x6d02e501, 0x1300f203, 0x24404600, 0x155f152f, 0x157f156f, 0x15ef15cf, 0x100715ff, 0x0a5f0115, + 0x0a9f0a6f, 0x0adf0aaf, 0x0a060aef, 0x2f3082d0, 0x40c0ffb8, 0x480a070c, 0x010f1f00, 0x0105100f, 0x5d25cf82, 0x2f015dc5, 0x2005822b, 0xa694185d, + 0x962b0812, 0x32563f24, 0x25405631, 0x31564025, 0x243f5632, 0x6447ec02, 0x3f1c1c3f, 0x64464764, 0x3f1e1e3f, 0x00030064, 0x05e3ff93, 0x82fa00db, + 0x278a0885, 0xa8003900, 0x3b147640, 0xfb023b24, 0x3be4013b, 0xcb3bbb01, 0x3ba4023b, 0x013b8b01, 0x3b743b64, 0x013b4b02, 0x0b013b34, 0x961e013b, + 0x14761466, 0x00141402, 0x32249628, 0x0132fb01, 0xd40132e0, 0x32bb0132, 0x0132a401, 0x7201328b, 0x32660132, 0x01324b01, 0x02013230, 0x0f013220, + 0x32060132, 0x00e0960a, 0x540200f0, 0x02006400, 0x00100000, 0x07030020, 0x05192d00, 0x0f23379b, 0x33332f00, 0x013232ed, 0x5d5d5e2f, 0x0583ed5d, + 0x6c425f20, 0x26068206, 0x3911ed71, 0x88ed5d2f, 0x31712410, 0x18343730, 0x2409744a, 0x022e2223, 0x210f9c25, 0x95189326, 0x252010b1, 0x13221191, + 0xe3182e23, 0x363208c5, 0x35266f49, 0x210f0f21, 0x35252635, 0x22101022, 0x0f9b2535, 0x00425208, 0xff660007, 0x05f408ec, 0x000900cb, 0x0027001d, + 0x003f003b, 0x005d0049, 0x405c4089, 0x4ab554b4, 0xb532b41e, 0xa028b423, 0x3c30013e, 0x3cb03c40, 0x40283003, 0x3c3e0228, 0x3e3c2828, 0xb4451403, + 0x5f3f5f4a, 0x5f5f5f4f, 0x5faf5f7f, 0x0ab40505, 0x13e118b5, 0xb6472709, 0xb643b759, 0xe118194f, 0x3f231e1b, 0x18e1f4e1, 0x29091fe1, 0x2f391712, + 0x5d5d2f2f, 0x1682105d, 0xe1f4102f, 0x14133031, 0x11323316, 0x06222310, 0x1a591805, 0x9901200e, 0x23012219, 0x3a1d9901, 0x9c5047fa, 0x0147509c, + 0x734a24c7, 0x4c70494f, 0x71492326, 0x4d714b4e, 0x86ac0127, 0x18c62019, 0x26163fe1, 0x51479702, 0x82519b9b, 0x2c208b3a, 0x274c724a, 0xa5a50204, + 0x48014a01, 0x59e118a3, 0x02fc252e, 0x4901a4a5, 0xab3d3784, 0x763f3f76, 0xaa6c6cab, 0x753e3e75, 0x00ffffaa, 0x01a60385, 0x02b6054a, 0x000a0006, + 0x210f8500, 0x0f84b202, 0x00054008, 0x00010000, 0x01730052, 0x00c703fc, 0xb13c0006, 0xffb80204, 0x091f40c0, 0x0802480c, 0x089f083f, 0x08df08af, + 0x08ff08ef, 0x9feb0606, 0x06030103, 0x01030300, 0x2f000105, 0x3d39122f, 0x1833332f, 0x2309ef9e, 0x01133031, 0x0dde9e18, 0x0bd49e18, 0x3f24658c, + 0xeb002840, 0x25069b4c, 0x03200310, 0x698c0302, 0x023f0424, 0x68930201, 0x2f5d3325, 0x18e15d5d, 0x26086c96, 0xcbfefc01, 0x18eded75, 0x820e5b96, + 0xff932cdf, 0x056203e3, 0x002700b6, 0x82d10104, 0x000622e0, 0x32e78204, 0x312fb509, 0x01311001, 0x00005d5d, 0x00a0fe01, 0x82680200, 0x00032223, + 0x3dde181d, 0x12012d0c, 0x3f000300, 0x382f013f, 0x33382f32, 0x2a051d64, 0xd5fc6802, 0x052b039d, 0x824afab6, 0x01380831, 0x1d036a00, 0xc7059302, + 0x41001400, 0xe0001740, 0x14011400, 0xc0166016, 0xf016e016, 0x160f0416, 0xe00a0e01, 0xc0ffb80b, 0x0f0a0e40, 0x000a0b48, 0xe4040ec0, 0xdc0cde11, + 0xe12d5682, 0x32cc1a33, 0xe12b2f01, 0x105d5d32, 0x52cb84d6, 0x29080ab0, 0x36331733, 0x11153233, 0x3f3f1402, 0x152a412d, 0x0910697f, 0x03e58240, + 0x51a6011d, 0x57341544, 0x02a6fe41, 0xfa65589d, 0xc18250fe, 0x00600022, 0x8f82d682, 0x00112a08, 0x02484076, 0x05100210, 0x0b100b00, 0x0b030b20, + 0x1330130b, 0x04000e01, 0x0509055a, 0x070107df, 0x10050007, 0x0305c005, 0x3e028207, 0x08000860, 0x0f0e5f11, 0x6f0e3f0e, 0x0e08030e, 0x48151040, + 0x0e080e08, 0x0a5f0d04, 0x83120403, 0x39122aa3, 0x2b2f2f39, 0xe1105d5e, 0x0fa61811, 0x2f332207, 0x200b845d, 0x20068232, 0x05c3772f, 0x0130312c, + 0x11211521, 0x35231123, 0x09831133, 0x013e0382, 0xfe2401c3, 0xb0b0b3dc, 0xc3fdf002, 0xeafd1602, 0xfe898f01, 0x890601fa, 0xfda42704, 0xb583a4fc, + 0xb5824420, 0xc9052332, 0x87003000, 0x0d111040, 0x272b6f15, 0x23130f23, 0x4b080182, 0xb81b031e, 0x3e40c0ff, 0x1b480e09, 0x3210321b, 0x1e252901, + 0x480e0b40, 0x7525141e, 0x10261126, 0x0d2a7529, 0x01266f2a, 0x0f012ad0, 0x3f2a1f2a, 0xaf2a4f2a, 0x062abf2a, 0x2a262a26, 0x741a1e00, 0x7307181d, + 0x3f000700, 0x32e13fe1, 0x8407e351, 0x240484b4, 0x332b2f01, 0x21bd8333, 0xdf84332b, 0x11331122, 0x2307085c, 0x07171632, 0x2105c056, 0xc4821515, + 0xa9180384, 0x35200e0d, 0x3527e482, 0x02023e34, 0x18ae6a9a, 0x240c11a9, 0x88fe7801, 0x15a91817, 0x17a9180c, 0x89c0310f, 0x3e13899e, 0x102b4059, + 0x290b9aa6, 0x15436144, 0x23081082, 0x5f8957dd, 0x00030032, 0x05ecff96, 0x00b605b6, 0x002a001b, 0x40790035, 0x1c6f3118, 0x6e0f1012, 0x1c181518, + 0x2c080182, 0x0105ff24, 0x15124005, 0xffb80548, 0x092c40c0, 0x0505480e, 0x01370f37, 0x100b4037, 0x6e232b48, 0x0f367c24, 0x12157518, 0x22732b15, + 0x30018215, 0x25733524, 0x00182406, 0x00190975, 0x3f3fe13f, 0x41ea84e1, 0x102a07c7, 0x2b32e1f6, 0x2f33115d, 0xc2412b2b, 0x33112f05, 0x3232e110, + 0x3031e110, 0x023e3225, 0xcd6c1537, 0x35233407, 0x15333737, 0x11231533, 0x14011614, 0x2323020e, 0x77112311, 0x4a620643, 0x054a0806, 0x23240f3b, + 0x5017071e, 0x4058353f, 0x419c9c24, 0x34d1d16b, 0x7c348cfe, 0xb22f98cc, 0x7bbf86fb, 0x1abdfd3a, 0x2e5b8b5d, 0x8139aea4, 0x03080604, 0x22140c8a, + 0x01486a46, 0xbd4d52bf, 0x56fe89d3, 0x89034e4c, 0x4d81a85b, 0xca18c7fd, 0x01320dbd, 0xecff3f00, 0xcb054a04, 0x86003900, 0x280712b4, 0xfb831936, + 0x094b5108, 0x1919480d, 0x013b103b, 0x1323232c, 0x2e6f0d05, 0x01286322, 0x133a2828, 0x10246023, 0x602c0824, 0x5f2d052d, 0x8f247f24, 0xff24ef24, + 0x2d0f0524, 0x2d2f2d1f, 0x2d9f2d5f, 0x24062dcf, 0x162d242d, 0x33740037, 0x195f1607, 0x3f00191d, 0xe13fe133, 0x20050642, 0x05d7425d, 0x10331130, + 0x011132e1, 0x335d2f33, 0x3232e133, 0x2a421133, 0x09aa7a09, 0x06071427, 0x14141514, 0x0b555517, 0x2e22232d, 0x35232702, 0x35342633, 0x82353634, + 0x033e2208, 0x054f4233, 0x0803d308, 0x435e7645, 0xfeb00112, 0x02010141, 0x92fe8101, 0x4b95b922, 0x853b3b87, 0x87b6735b, 0x94a41558, 0xa0940202, + 0xb8875812, 0x4fa06172, 0x05773350, 0x8f633427, 0x0e0f895b, 0x13091a0c, 0xaf891629, 0xa21a20b8, 0x87491f1c, 0x178979c1, 0x2e161d1e, 0xca7d8908, + 0x312b4e90, 0x002b1f92, 0x8d000400, 0xdb05f8ff, 0x0300c105, 0x2b001700, 0x86004800, 0x02010a40, 0xb4184639, 0x0200030e, 0x40f0ffb8, 0x9046704a, + 0xd046a046, 0x0edf0446, 0x02100001, 0x00000e46, 0x0402460e, 0x0fb42231, 0x04ef0104, 0x040204ff, 0x00b4404a, 0x31000131, 0x31203110, 0x31f031e0, + 0x42310805, 0x3dfd2cfc, 0x270736fc, 0x1dfd13fc, 0x031909fc, 0x00180106, 0xe13f3f3f, 0x6247e1f4, 0x5d5e2505, 0xde10e171, 0x11230482, 0x822f3917, + 0x5d382a00, 0x3311385d, 0x3311e110, 0x06304511, 0x60470120, 0x0f746a0e, 0x56220121, 0x51080aaa, 0x22232626, 0x33141506, 0x15373632, 0x0a050606, + 0x039dd5fc, 0x2d6e012b, 0x3f447050, 0x2c2f516e, 0x3e447150, 0xfe2f526e, 0x3c261133, 0x253c2a2b, 0x3c251111, 0x263c2b2a, 0x45cbfd11, 0x35345a79, + 0x33487d5c, 0x1f212064, 0x5f672255, 0x235a33c2, 0xa8456323, 0x98fb2905, 0x2d577f53, 0x537f572d, 0x7e080787, 0x233e5633, 0x33563e23, 0x213d5534, + 0x01553d21, 0x80522692, 0x52845f5a, 0x6b0f1626, 0x7674140d, 0x6b1011e5, 0x00001312, 0xff770002, 0x057b03ec, 0x002d00cb, 0x4055003a, 0x23702e32, + 0x48141040, 0x05112323, 0x28353c06, 0x1014196e, 0x30112011, 0x90118011, 0x18110511, 0x14763615, 0x00282811, 0x071e7630, 0x060b7500, 0x00190b06, + 0x102f333f, 0x12e13fe1, 0x33332f39, 0x013232e1, 0x82c55d2f, 0xd6102207, 0x201182c1, 0x0771432b, 0x030e3330, 0x022e2223, 0x06063535, 0x36363507, + 0xc5491137, 0x0701090a, 0x021e1411, 0x22233413, 0x1115020e, 0x6f02033e, 0x1e2e3920, 0x26046403, 0x3a466946, 0x2e30516a, 0x5f343161, 0x68401c2d, + 0x3d57364b, 0x7c5c3521, 0x37241147, 0x29206663, 0x4e360917, 0x16771833, 0x533b5232, 0x25305a83, 0xe7638854, 0x790c1c11, 0x010f1e0e, 0x536c3bee, + 0x6f4f2a31, 0x86a66345, 0xd3fe2668, 0x213b5130, 0x1bbc2104, 0xfe2a4532, 0x624e216a, 0x00040079, 0x070000c7, 0x00b60589, 0x002b0017, 0x003b0037, + 0x0e7240ba, 0x005a1501, 0xe12c3939, 0x01001022, 0x9f0100b0, 0x00300100, 0x00020040, 0x0a220022, 0x0f18e132, 0x2f3a1f3a, 0x3a3a033a, 0x180118ef, + 0x3d6f3d67, 0x3dcf3dbf, 0x013d4003, 0x0903080c, 0x3c640a5a, 0x351de52f, 0x1dcf27e5, 0x1def1ddf, 0x06401d03, 0x270f480b, 0x275f271f, 0x277f276f, + 0x060627ef, 0x271d271d, 0x06100316, 0x0b034818, 0x38e53903, 0xf0ffb80e, 0x2b0d82b6, 0x120a010e, 0x33333f00, 0x3fe0332b, 0x39280482, 0x5e2f2f39, + 0x105d2b5d, 0x08c69318, 0x5d5d3229, 0x325de610, 0x5710712f, 0x0a8208d7, 0x2305ce4c, 0x23213031, 0x0e897718, 0x35032e24, 0x9d423311, 0x08741811, + 0x03230809, 0x04152135, 0x87fdcda8, 0x04040608, 0x02cfa605, 0x04030676, 0x01020301, 0x29e102a4, 0x3f446d4d, 0x832c4d6b, 0x6b3e3c07, 0x42fe2c4e, + 0x47515148, 0x48515147, 0x04f00163, 0x414c4dba, 0xe7fc398e, 0x18fbb605, 0x2409d9d0, 0x8253b9fc, 0x969f1859, 0x717e080c, 0x72717373, 0x1ffd6d6d, + 0x02009393, 0xe5022500, 0xb6055005, 0x20000700, 0x5d40a300, 0x1301c400, 0x11c4100a, 0x06d006c0, 0x6f0306e0, 0x06300106, 0x06500640, 0x01061f03, + 0x20010604, 0x0211d011, 0x11110601, 0x03030106, 0x1815191e, 0xaf179fc4, 0x22170217, 0x222f220f, 0x2203223f, 0x48181540, 0x120f4022, 0xef03cf48, + 0x1f030203, 0x0c200909, 0x07094818, 0x1804c803, 0xe0ffb814, 0x0e820c40, 0x0811142e, 0x12150101, 0x3f000304, 0x2f333333, 0x2b350382, 0x32e11033, + 0x33112b33, 0x2b5d2f01, 0xd6105d2b, 0x3232e15d, 0x05dd4332, 0x4605744c, 0x01340727, 0x35231123, 0x01231521, 0x031e2303, 0x11231115, 0x33131333, + 0x343b0682, 0x2337023e, 0x7f680103, 0xc70a02c4, 0x07ba4002, 0x01010201, 0xbfb4ba7b, 0x82017fb2, 0x06640800, 0x02e502c3, 0xfd6c6c65, 0x1025029b, + 0x06181e22, 0xd10249fe, 0x2702d9fd, 0xac012ffd, 0x23231e09, 0xffdbfd0c, 0x004e00ff, 0x05a60500, 0x010602cd, 0x00000076, 0xff660002, 0x048b04dd, + 0x00220048, 0x403b002f, 0x1e4a2321, 0x132f3111, 0x0105104a, 0x181d1d05, 0x2f2b4e12, 0x2f022f3b, 0x4e29182f, 0x4e180f0c, 0x2409b25e, 0x3911e15d, + 0x23cb822f, 0xde1032e1, 0x0ae7c418, 0x3233042b, 0x2115021e, 0x33031e11, 0x08af8232, 0x030e1764, 0x032e1113, 0x020e2223, 0x79021107, 0x4586c682, + 0x76664c2c, 0xc2713f80, 0xc5fc518e, 0x584d4016, 0x5e744a2e, 0x2448224d, 0xcc8f6e53, 0x5d4d3b13, 0x49573335, 0x5e23183c, 0x636ecc9d, 0x3c5c7ea0, + 0xd1934f1d, 0x189cfe83, 0x2015222c, 0x2937573c, 0x2c4d6539, 0x15018b02, 0x16232a14, 0x172a2113, 0xd582e9fe, 0xff534208, 0x05d305ec, 0x002600b6, + 0x0000147b, 0x02170227, 0x0100005e, 0x03400207, 0x00b3fd62, 0x041f4030, 0x19270203, 0x0111f401, 0xd00111e4, 0x11b00111, 0x0111a001, 0x11011130, + 0x0f01592f, 0x5d5d0159, 0x05844111, 0x3f003525, 0x82353535, 0x84332051, 0x82c92051, 0x86752051, 0x8a8b2051, 0x403c2251, 0x08518228, 0x01194923, + 0xd00133f0, 0x33c40133, 0x0133b401, 0x940133a0, 0x33600133, 0x01333001, 0x33013324, 0x0f017b2f, 0x825a897b, 0x205d8860, 0x825d844f, 0x3d0221af, + 0x3d205d98, 0x273f5d82, 0x0127d001, 0xb40127c4, 0x27a00127, 0x01279401, 0x30012760, 0x27240127, 0x6f2f2701, 0x956f0f01, 0x8871205d, 0x423f215d, + 0x20050d41, 0x22bb8a39, 0x82224034, 0x191f3dbb, 0x0109f401, 0xcb0109eb, 0x09b40109, 0x01099b01, 0x2b01097f, 0x2f090109, 0x510f0151, 0xb385578a, + 0x02003408, 0xecff6200, 0xc5053b04, 0x43002b00, 0x21403b00, 0x00471933, 0x45404557, 0x01450f01, 0x21483f06, 0x3844560c, 0x2c13134f, 0x27501c21, + 0x07502c04, 0x483f0016, 0x2f290501, 0xf61001e1, 0x5d5ee132, 0x0594685d, 0x0e14013a, 0x2e222304, 0x3e343502, 0x16323304, 0x35343617, 0x22232634, + 0x3507020e, 0x2605da60, 0x043e3201, 0x82032e37, 0x047d0812, 0x021e1415, 0x41203b04, 0x6db18a65, 0x22538c6a, 0x73513217, 0x935b6299, 0x898b022d, + 0x4143441f, 0x4b43181b, 0xa67d254f, 0x9efd2a63, 0x43515e35, 0x0a0a2535, 0x2a493b29, 0x3a4f663e, 0x2d151225, 0x6aa60346, 0x8dbcd4e1, 0x8f6e4252, + 0x8d8d3c4c, 0x4f3d6583, 0x0b2a1345, 0x160cc9be, 0x0cae131f, 0x590a1117, 0x73fcc496, 0x7a684d2c, 0x45284385, 0x51301e33, 0x2f6e6f68, 0x24405632, + 0x08f38200, 0x0000292a, 0xb6056204, 0x0e000500, 0x11405800, 0x09090102, 0x605b0e05, 0xb0047004, 0x0404f004, 0xc0ffb804, 0x0a062740, 0x10040448, + 0x11556118, 0x055b0d37, 0x12055f0d, 0x110a2009, 0x03010948, 0x2b333f00, 0x2f01e13f, 0x051f4ae1, 0x4de15d21, 0x3b0805dd, 0x01373031, 0x21150133, + 0x27262601, 0x03070606, 0xbe012921, 0xfbc001bb, 0x207702c7, 0x2a110f2d, 0xa602fa1d, 0xfa450571, 0x9a036fb9, 0x4b4ba861, 0x04fd5ba8, 0xc7000100, + 0x270514fe, 0x072e9982, 0x11403700, 0x65075a00, 0x30090009, 0xdd684009, 0x83092005, 0x140f2f97, 0x5a034818, 0x02086404, 0x0403055f, 0xe6681b00, + 0x5d2b2b08, 0x31e1f610, 0x21110130, 0x03822311, 0xfd6d0430, 0x6004ba14, 0xfc0614fe, 0xa20704f9, 0x5d825ef8, 0x14fe4a24, 0x5d82e304, 0x5c000b2f, + 0x5b080b40, 0x02010670, 0x00060206, 0x2757820a, 0x480e09b7, 0x070d0a0a, 0xe02b6382, 0x180f0940, 0x00030948, 0x840d0c00, 0x18132571, 0x02020848, + 0x07c05e18, 0xe1207182, 0x07c05e18, 0x33112b32, 0x33332f18, 0x3311322b, 0x39122b2f, 0x5d2f2f39, 0x13208282, 0x0ac15e18, 0x70024a3d, 0x4804a0fd, + 0x3a02bcfc, 0x9b03b0fd, 0x037314fe, 0x722b0392, 0xfc09fda4, 0x8200a49d, 0x66240893, 0x02048702, 0x03001d03, 0x1f403200, 0x00960502, 0x01008b01, + 0x56010079, 0x004b0100, 0x01003801, 0x09010014, 0x00242782, 0x00b301ad, 0x0ba0ad18, 0x31ce102e, 0x21351330, 0x9c036615, 0x96968702, 0x25304b83, + 0xc504f2ff, 0x0800a006, 0x13402c00, 0x05060001, 0x0739de83, 0x03081008, 0x0404ae03, 0x2f000007, 0xe12f392f, 0x382f2f01, 0x19393933, 0x08ba822f, + 0x33331122, 0x23053031, 0x21352301, 0x02330113, 0xebfe8573, 0xe52901b4, 0x0e920002, 0xfd8f0a03, 0x00ac0569, 0x79089982, 0x05910177, 0x000e0431, + 0x00330023, 0x40760043, 0x0117494f, 0xf0010d48, 0x452f0145, 0x3a02455f, 0x6a274a27, 0x372a0327, 0x081a3701, 0x773f0427, 0x022f972f, 0x1220aa2f, + 0x12021230, 0x3f013f78, 0x2a3400ab, 0x243a17ae, 0x273708ae, 0x0517041a, 0x0d100d00, 0x0d0d0702, 0x01179f1f, 0x17011720, 0x5d5d2f00, 0x5e2f3333, + 0x1712335d, 0x1032e139, 0x2f0132e1, 0x5d2f5de1, 0x0f825de1, 0x00825d20, 0x5d30312b, 0x0e14015d, 0x26222302, 0x06f84827, 0x023e3426, 0x17163233, + 0x08055b43, 0x3632058b, 0x23262637, 0x15020e22, 0x01021e14, 0x16070622, 0x3e323316, 0x2e343502, 0x2b310502, 0x5d426d4d, 0x461d419b, 0x412b534e, + 0x2b2d4f6e, 0x55436f4e, 0x441d3e9e, 0x4230574f, 0xfc2b4d6d, 0x346c3f7b, 0x28456b31, 0x15182c40, 0x7c02412c, 0x33376b3f, 0x4027446c, 0x2e19182d, + 0x3fcd0240, 0x69345772, 0x384f3073, 0x75522c1e, 0x56734148, 0x30706b31, 0x2d1f384e, 0x57f97552, 0x1d5a5e61, 0x24264433, 0x011e3242, 0x5d61576a, + 0x080d825c, 0x43262744, 0x01001c31, 0x14fe1000, 0x14060603, 0x37002300, 0x25102340, 0x140225d0, 0x04060104, 0xac0d0401, 0x0901151b, 0x10150115, + 0x021e201e, 0x12ae191e, 0x00ae071c, 0xe13f0000, 0x2f01e13f, 0x5d5d335d, 0xf68432e1, 0xe2820120, 0xd9861520, 0x72181120, 0x3b080f93, 0x02023e34, + 0x164b2283, 0x33243d12, 0x32102742, 0x244a7c59, 0x3e14174b, 0x2a453323, 0x79572f12, 0x09091406, 0x27110993, 0xfa2d5441, 0x56865ed7, 0x93080b29, + 0x40251008, 0x27053054, 0x282a0e82, 0x66000200, 0x02047b01, 0xa1822504, 0x00474308, 0x412e404b, 0x4910491d, 0x0a102e01, 0x0a020a20, 0x31ad2940, + 0xad1743af, 0x1caf1f0a, 0x0ddfad05, 0x0dff0def, 0x0f400d03, 0x0d0d4812, 0x432ead3b, 0x333f00b3, 0x2b2f33e1, 0xf533e15d, 0xf510e132, 0xba8433e1, + 0x32ce1026, 0x2e013031, 0x22051d47, 0x18333635, 0x20105aba, 0x271b9a03, 0x37251202, 0x1c16292d, 0x1a76ba18, 0x219a2f20, 0x1d97612e, 0x01433732, + 0x0d1610bc, 0x2c211305, 0x1398ba18, 0x10ae0123, 0x281c8215, 0xa21a2c20, 0x190e056d, 0x200d8514, 0x082a852d, 0x00010074, 0x04a40066, 0x00040502, + 0x40a60013, 0x0e0d0a11, 0x12091211, 0x04030012, 0x08130807, 0xffb81309, 0x094f40f0, 0x13091310, 0x0b100609, 0x01154015, 0x0106c601, 0xa90106bb, + 0x06860106, 0x01067b01, 0x42010668, 0x06390106, 0x08090601, 0xad040d08, 0x12121307, 0x0ead0011, 0x032f031f, 0x01037f02, 0x03100300, 0x03030602, + 0x0107f00a, 0x076f070f, 0xfd420702, 0x715d2f08, 0x3232e133, 0xe1103311, 0x33113332, 0xbb472f01, 0x5d5d2205, 0x05a86333, 0x2f2f3929, 0x33113838, + 0x82c4877d, 0x33012200, 0x27078410, 0x23013031, 0x21132135, 0x17260382, 0x21153307, 0x03822103, 0x01272a08, 0x3e01f85e, 0x0149fe79, 0x698a85fc, + 0x7bc1fefa, 0x00feba01, 0xba018981, 0x95040196, 0xe03b1b01, 0x96fcfe95, 0x0039eafe, 0x08ef8202, 0x02040021, 0x0600dd04, 0x52000a00, 0x00093240, + 0x010c400c, 0x01014008, 0x05010201, 0x6f060305, 0x18007f00, 0x8433bfe7, 0x303135b4, 0x01350125, 0x35020915, 0x02041521, 0x9c0364fc, 0xdf0221fd, + 0xee210783, 0xc8e71801, 0x71fe2408, 0x92009696, 0x85052089, 0x01062a89, 0x01040506, 0x6f000301, 0x4de71806, 0x21898635, 0x8a830113, 0x82150121, + 0x0266268a, 0x031efde2, 0x2c87839c, 0x42018f01, 0xfea26a01, 0x58fe661f, 0x088785ee, 0x00006d39, 0xc3053f04, 0x09000500, 0x36405d00, 0x05090102, + 0x07090704, 0x00ac0603, 0x010bff0b, 0x0b500b40, 0x0bb00b80, 0x0f050bc0, 0x020b2f0b, 0x0310aa08, 0x08030301, 0x82080600, 0x07022201, 0x302c82ad, + 0x2f0002ad, 0x12e13fe1, 0x2f3d3939, 0x1133112f, 0x05ec5433, 0x105d5d23, 0x211483de, 0x12823311, 0x31333108, 0x23010130, 0x09330101, 0xfe3f0403, + 0x3efe4c3c, 0x014cc201, 0xfecffe0c, 0x023101cf, 0x021ffde1, 0xfde402df, 0xfe00021e, 0x00fefd00, 0x1d00ffff, 0x2d089782, 0x001f0617, 0x00490026, + 0x00070100, 0x00a2024c, 0x40240000, 0xaf010218, 0x1d50011d, 0x011d1f01, 0x1d011d0f, 0x40012faf, 0x2f0f012f, 0xff495d01, 0x35352106, 0x06203d86, + 0x4f203d8a, 0x22223d84, 0x3c8e1740, 0x40012126, 0x210f0121, 0x003f3c89, 0x04cf0001, 0x06cd03d9, 0x00150017, 0x0029403f, 0x02172017, 0x17cf17af, + 0x70173002, 0x820f0217, 0x0000291f, 0x020a300a, 0x7f0a0a06, 0x40360c82, 0x00480906, 0x058e1000, 0x33e12f00, 0x335d2b2f, 0x5d5e2f01, 0x0a5a2f33, + 0x05bd4506, 0x4b332721, 0x56820649, 0x5d314308, 0x8c67648d, 0xaa052958, 0x4c321b05, 0x36492c35, 0x17060622, 0x2951764e, 0x50775027, 0x10294939, + 0x35482b13, 0xbcff0100, 0x640114fe, 0x13004a04, 0x13402300, 0x15201510, 0x0c470f02, 0x540c0303, 0xcc180d14, 0x5c1808af, 0x312207c1, 0x4d181330, + 0x112a0a21, 0x0e141133, 0x3f304202, 0xcc181a17, 0x8418099d, 0x2c080a7d, 0x18fbf404, 0x2f577b4d, 0x01010000, 0x02cd0487, 0x00140679, 0x4019000d, + 0x3f85050c, 0x0c060106, 0x05920c00, 0xe53f0000, 0xdd332f01, 0x906e185d, 0x87013a0c, 0x0e111209, 0x1f06b404, 0x60162e29, 0x4d1ee704, 0x14215051, + 0x56564e19, 0x264b8220, 0x023bfe6f, 0x8283ff75, 0x4016284b, 0x00000c09, 0x83068505, 0x822f2049, 0x32e12548, 0x3031332f, 0x0a817518, 0x1a0b6f32, + 0xb2041318, 0x362c1f06, 0x56fe621d, 0x53544c19, 0x4d234882, 0x83215657, 0x047d2695, 0x068302d9, 0x22498221, 0x850a4017, 0x92052149, 0x93830782, + 0x0e384a86, 0x35230703, 0x3337033e, 0x1a0c8302, 0xb2041218, 0x372d1f05, 0x0606621c, 0x15214a84, 0x08938218, 0x0200212b, 0x39022500, 0xc7057f02, + 0x1d000b00, 0x19402a00, 0x1f0ce106, 0x1f7f1f4f, 0x06401f02, 0xe100480a, 0x1be50916, 0x11e503de, 0x068b46df, 0x5d2be124, 0xf282de10, 0x4e141321, + 0x045909e9, 0xb816240d, 0x824e5147, 0x0f925800, 0x049a952b, 0x9fa1a502, 0x9f9fa5a7, 0x065058a5, 0xa96c6c26, 0x00ec3c74, 0x0c3c8582, 0x8f024a02, + 0x0a00bc05, 0x46001500, 0x02092a40, 0x03070be1, 0x175f1703, 0x1702178f, 0x25088983, 0x0105e115, 0x0f09e504, 0x2f0b1f0b, 0x0b08030b, 0xe50f020b, + 0xdd02dc07, 0xe13f3f00, 0x5e2f3912, 0x32e1335d, 0x9d822f01, 0x08062651, 0x0130315f, 0x35231523, 0x33013521, 0x35213311, 0x0e373634, 0x02070703, + 0xfe8f7d8f, 0x8d790189, 0x03f4fe7d, 0x16140503, 0x039b0918, 0x6fc0c00a, 0xcdfd4302, 0x31632ac3, 0x282a250b, 0x0000f00f, 0x023b0001, 0x05660237, + 0x002400b6, 0x2117404a, 0x1d1e2222, 0x14200b1d, 0x4f2605e1, 0x02267f26, 0x35938326, 0xc0ffb80b, 0x18121140, 0xe5170b48, 0x21110000, 0x11dc1ee5, + 0x294108e5, 0x29868205, 0x2b2f01e1, 0xde105d2b, 0x938433e1, 0x82331121, 0x1e322693, 0x06141502, 0xe8461823, 0x224c080c, 0x2707020e, 0x21152113, + 0x01363607, 0x4f6b3d42, 0x3fa1a62d, 0x3c1a2c79, 0x55183b3d, 0x0d595f5f, 0x0e252725, 0xba012143, 0x1412befe, 0x236d0439, 0x8c416544, 0x8d1a1c9d, + 0x0a131b12, 0x554d584c, 0x02070604, 0x7ba8012b, 0x000603d7, 0x3408d141, 0x001d00d5, 0x4038002d, 0x210a1020, 0x4f2f00e1, 0x022f7f2f, 0x2eb5832f, + 0x0ae12915, 0x1915e424, 0xde0f1019, 0x8405e51e, 0x393323ae, 0xae82332f, 0x8432e121, 0x391221af, 0x7753a982, 0x1737280a, 0x3307030e, 0x82333636, + 0x320522bd, 0x06c74c36, 0x14157508, 0x7f02021e, 0x446f4e2a, 0x2f526e40, 0x6eb27e45, 0x607f4f2d, 0x1b0b0f40, 0x5a364a63, 0xdbfe2440, 0x474d5444, + 0x192d3f27, 0x033d2d19, 0x506f4166, 0x80582d2d, 0x8fb36e53, 0x1b6d276d, 0x3b604f40, 0x4825312b, 0x565cf769, 0x29195a52, 0x492c1e37, 0x01001d35, + 0x4a022f00, 0xb6056402, 0x38000600, 0xff0000b9, 0x001f40f0, 0xe1010200, 0x084f0805, 0x0802087f, 0xd030c183, 0xf002e002, 0x02020302, 0x00dc03e5, + 0x3f3f00dd, 0x5d20ba82, 0x1135b984, 0x31382f39, 0x21011330, 0x01152135, 0xfe40018d, 0xfe350262, 0x085182bf, 0x647bf125, 0x0300f8fc, 0x39023100, + 0xc7057102, 0x34002500, 0x77004400, 0xe1382240, 0x05e14221, 0x1c323d0a, 0x82210504, 0x2c172a01, 0x4f460fe1, 0x02467f46, 0x086a8346, 0x17e12638, + 0x40c0ffb8, 0x48181527, 0x3d1c0a17, 0x5b324b32, 0x9b326b32, 0x0532ab32, 0xb6351432, 0xd63dc63d, 0x003d033d, 0xdf14e529, 0xde00e535, 0x3fe13f00, + 0x5d3911e1, 0x03841211, 0x2f013924, 0x9884e12b, 0x3939122b, 0x17122f2f, 0x10e11039, 0x070642e1, 0x07020e22, 0x18053874, 0x2607e174, 0x3435032e, + 0x4303023e, 0x2e2e0659, 0x06272702, 0x06221306, 0x021e1415, 0x1b823e17, 0x0126aa08, 0x465e3452, 0x3427162a, 0x303e221e, 0x694d2a1c, 0x19968b3f, + 0x1b1f382a, 0x2b13232e, 0x4a625f48, 0x164b4a48, 0x0f213727, 0x38944241, 0x2d20123f, 0x202c181a, 0xc7054113, 0x3854371b, 0x28323e25, 0x372d1311, + 0x5d392a45, 0x73832442, 0x2b38452a, 0x352b1411, 0x5338253e, 0x68fd1c37, 0x3b46463b, 0x2027301e, 0x4d22060f, 0x3637e801, 0x1d242a1b, 0x231c0c0d, + 0x37361c2c, 0x21000200, 0x7b023902, 0x2500c905, 0x3b003500, 0x11312240, 0x001c09e0, 0x7f374f37, 0x40370237, 0x29480a06, 0xe42c1ce1, 0x05171711, + 0xde21e526, 0x0657420c, 0x4212e121, 0x2b250658, 0x11de105d, 0x14431839, 0x098b4508, 0x4b233721, 0x1e220bbf, 0xef832502, 0x0908ab4b, 0x217b021d, + 0x1981a25a, 0x36151540, 0x406c5319, 0x0d09031d, 0x263d3024, 0x2444603c, 0x436c4b29, 0x30547241, 0x5644cbfe, 0x3f264c4a, 0x2a15182d, 0x6042043e, + 0x085b93bb, 0x0a0d7d07, 0x3d725735, 0x111b2412, 0x41664725, 0x2d516f42, 0xac93612f, 0x584c585e, 0x1a332919, 0x243b4824, 0x00160000, 0x0781fe54, + 0x00ee05c1, 0x000b0005, 0x00170011, 0x001f001b, 0x00270023, 0x002f002b, 0x00370033, 0x003f003b, 0x00470043, 0x005f0053, 0x0078006f, 0x00900081, + 0x345940e4, 0x381c202c, 0x7a515718, 0x67746f70, 0x7e826464, 0xc051706b, 0x0351d051, 0x6b6b6f51, 0x5d03516f, 0x5f8c4f89, 0x8c8c028c, 0x09242844, + 0x4b505d17, 0x4b024b60, 0x313d414b, 0x422a0c00, 0x32263e46, 0x6f8f8f86, 0x70706779, 0x6f7a607a, 0x70484854, 0x026f806f, 0x6f016f61, 0x40c0ffb8, + 0x480c0725, 0x5a606f6f, 0x788a4e4e, 0x602f601f, 0x606f603f, 0x01606004, 0x12181c2c, 0x2135390c, 0x01010f07, 0x2f000107, 0x53335d5e, 0x33230673, + 0x832f3912, 0x332f280c, 0x2b2f3311, 0x83335d5d, 0x44112008, 0x2f200673, 0x03830d82, 0x822f0121, 0x3333212d, 0x08882882, 0x2006d75e, 0x82468511, + 0x843e8206, 0x30313c2d, 0x15211113, 0x35251523, 0x35231121, 0x15331101, 0x35211533, 0x11333533, 0x82213521, 0x15212209, 0x24078201, 0x33112301, + 0x87038211, 0x2007830b, 0x20178633, 0x83178335, 0x26222b03, 0x37363435, 0x14151632, 0x39442706, 0x15062506, 0x33011614, 0x07221284, 0x19831615, + 0x13232323, 0x221c8533, 0x86151523, 0x35052309, 0x0a831616, 0x23086382, 0x22230614, 0xc02f0154, 0x3001ce05, 0x6f00f96d, 0xc30e05c0, 0x0149fd6d, + 0x01e1fb11, 0x01f2fe0e, 0x6db7040e, 0xfb310082, 0xfc1001c2, 0x026f6f30, 0x771001c0, 0xa8fa1101, 0x2900826f, 0x6d6dfe06, 0x877f99fa, 0x03837f87, + 0x3f483e08, 0x4245483f, 0xac9f0142, 0x2d2d706d, 0x5e6d3338, 0x2e427bcf, 0x3b302924, 0x2625314a, 0x100e0134, 0x31251420, 0x3d5f687d, 0x3001be04, + 0x6fc1c16f, 0xf9c1d0fe, 0xc22f0102, 0xfec26d6d, 0x326482d1, 0x6ffe066d, 0x01a8fa6f, 0x0102020e, 0x6d3bfa0f, 0x82a6016d, 0x824a207f, 0x6f4e0869, + 0x10012ffc, 0xfd0f0179, 0xfe100168, 0x918e9f8a, 0x919c019b, 0x67689f8e, 0x66665e5e, 0x01675e5e, 0x315343ea, 0x0b040844, 0x59513a44, 0x20226201, + 0x9ae31d22, 0x2a20252b, 0x050366fc, 0x92013224, 0x645e72fe, 0x54000300, 0xaa07c1fe, 0x09821406, 0x00233e08, 0x4050002f, 0x23230428, 0x302a2024, + 0x032a402a, 0x244f2a2a, 0x02242401, 0x020b0b1c, 0x23021515, 0x012d3023, 0x27272d2d, 0x10101903, 0x2f190003, 0x332f1833, 0x332f3311, 0x2f335d2f, + 0x830e8401, 0x8203820d, 0x825d200f, 0x31333706, 0x05030930, 0x37363435, 0x34353636, 0x2223022e, 0x1707020e, 0x8d413636, 0x06062306, 0x7d441515, + 0x26720807, 0x03062223, 0xfcac03fe, 0x0356fc54, 0x634c21eb, 0x835b314d, 0x575a2b51, 0x44522252, 0x3e3f387e, 0x4a455227, 0x4446471b, 0x46444747, + 0xfc140647, 0x0357fc56, 0x2c2ffba9, 0x834c3a3e, 0x4a6b4559, 0x231b1027, 0x2e22b214, 0x44312f3a, 0x50793541, 0x3eedfe3b, 0x403e4949, 0xff004949, + 0xfebcffff, 0x06550214, 0x02260221, 0x00000037, 0xfe4c0107, 0x178200bb, 0x69170021, 0x0223053f, 0x82070206, 0x02560817, 0xecff0a00, 0x2b06b204, + 0x4f000c00, 0x47407500, 0x10430d4d, 0x083b003e, 0x1a434347, 0x004f473b, 0x10100110, 0x0151a051, 0x3301513f, 0x101a0047, 0x031a201a, 0x2950221a, + 0x4e4f4f3e, 0x29004e00, 0x29302910, 0x29502940, 0x4e290605, 0x05384e29, 0x38014850, 0xb3531550, 0x58122005, 0x11290502, 0x32e11033, 0x2f01e110, + 0x06ad6c5d, 0x11e13324, 0x03822f39, 0x82113921, 0x30312521, 0x23032e01, 0x27058345, 0x15161605, 0x06060214, 0x7f06d553, 0x3627082d, 0x1e323336, + 0x50141502, 0x3326056c, 0x34111232, 0xcb452726, 0x08188305, 0x1533172a, 0x390d6a03, 0x4c305b4d, 0xab6a2e56, 0x02023c01, 0x83c48140, 0x2256926f, + 0x1f0a0b0a, 0x1036181f, 0x36642525, 0x132c4532, 0x60080f82, 0x3a4e3015, 0x0202a4a4, 0x4396f2ae, 0x597f5127, 0x4b75a168, 0xd1038f12, 0x3d74aa6c, + 0x69384858, 0x168a3352, 0xfe9f1f3a, 0x3773c9ee, 0x28457d5f, 0x184b595d, 0x0a0f212d, 0x1c1a117f, 0x23284432, 0x2d615d56, 0x1f364a2a, 0x30013201, + 0x02143e17, 0x519a784b, 0x2e527043, 0x8bdf9c54, 0x01000089, 0x08008200, 0x0548047d, 0x002200c3, 0xaf1b408f, 0x0224ef24, 0x0c094024, 0x21ab2248, + 0x01219801, 0x1b012140, 0x210f0121, 0xffb82101, 0x214440f0, 0x1b1f0021, 0x0d0f010d, 0x12200d01, 0x0d9f4816, 0x7d020daf, 0x0d6b010d, 0x010d5a01, + 0x2b010d4f, 0x020d3b0d, 0x5a1e0d0d, 0x1f871f77, 0x4f031f97, 0x1f00011f, 0x07021f10, 0x1f001d1f, 0x121f0321, 0x00040a11, 0x3f3fc13f, 0x01393912, + 0x5d5d5e2f, 0x4e32e15d, 0x2b2706c6, 0x39117171, 0x82382f33, 0x5d5d2a13, 0x315d2b33, 0x033e0130, 0x05f35c37, 0x0806e150, 0x050e0759, 0x11231107, + 0x1d023301, 0x3c3f3d19, 0x352f1618, 0x2b232940, 0x0d200d11, 0x23201c0b, 0x32280d13, 0x13323636, 0xcb42febb, 0xa84bdb02, 0x282c89a0, 0x0914273d, + 0x05039108, 0x232a1707, 0x806e5518, 0xfd3c8585, 0x032f02e3, 0x00020087, 0x06ecff12, 0x004a0460, 0x823c001c, 0x476e08fb, 0x012f6719, 0x2cd5472f, + 0x012cb701, 0x9a012ca9, 0x2c03012c, 0x4837032c, 0x12bb12ab, 0x3e121202, 0x54013e14, 0x843e643e, 0xb43ea43e, 0x3e40053e, 0x3e300201, 0x013e0f01, + 0x03004822, 0x03300310, 0x03500340, 0xb8030605, 0x1540c0ff, 0x03481512, 0x2d2d001a, 0x080e1d27, 0x320f0b50, 0x00165027, 0x323f0016, 0xe13f32e1, + 0x39123232, 0xfe82122f, 0x5d5e2b31, 0x5f5d5de1, 0x11715d5d, 0xe15d2f33, 0x822f3911, 0x825d200b, 0x31393213, 0x26220530, 0x023e3435, 0x37352137, + 0x1e231521, 0x06244a03, 0x06062323, 0x235c1803, 0x3335230a, 0x1b471415, 0x278b0808, 0xc3b62902, 0x1a2b2012, 0x0586ebfe, 0x2618f3c8, 0xb5c40f1b, + 0x0b1f8b6a, 0x16ba8b1f, 0x1d121f28, 0x2e2d4b36, 0xb3162c44, 0x4b2d5262, 0x190f1d36, 0xea141524, 0x7e7d39f3, 0x504a387b, 0x7e7b389a, 0xeaf3397d, + 0x575b5b57, 0x7636c403, 0x623a7a79, 0x29214e83, 0xb0396248, 0x218a82b0, 0x3a62834e, 0x3676797a, 0x00ffff00, 0x060000c7, 0x0275072f, 0x00300026, + 0x00070100, 0x01790176, 0x40130054, 0x0527010b, 0x1a4b0126, 0x6f0f0920, 0xae200a19, 0x87222d82, 0x2d822106, 0x2d865020, 0x2d843f82, 0x26113a28, + 0x332d7a01, 0x2d8a2b16, 0xd5fd0026, 0xbc05dd04, 0x24202d82, 0x022f2d83, 0x001b015b, 0xb70d0000, 0x1f010203, 0x83070415, 0x83352029, 0xfd5e2683, + 0x049c03d5, 0x2027825e, 0x21278544, 0x2786bc00, 0x183d1421, 0x2508f5ac, 0xd3feffff, 0x7918ecff, 0x02230bef, 0x8240fe5c, 0x3f300827, 0x2d0203b6, + 0x35020303, 0xb2c0ffb8, 0xb8480f09, 0x1a4021ff, 0x0a0a3535, 0xb0000125, 0x00800100, 0x01007f01, 0x40010050, 0x001f0100, 0x5d110001, 0x35270084, + 0x352b2b35, 0x823f0035, 0x02003203, 0xd5fd7300, 0x83ff3702, 0x1f001300, 0x28403a00, 0x517f1814, 0x1d200810, 0x1005008c, 0x40053005, 0xa0055005, + 0x0705f005, 0x8c170506, 0xe12f000f, 0xe15d5ed4, 0xe15d2f01, 0x204b7f18, 0x37022008, 0x31543d23, 0x203b5232, 0x32523b20, 0x233e5430, 0x32314074, + 0x3138393f, 0x33aefe40, 0x181d3851, 0x8212bb82, 0x04932899, 0x05d90268, 0x820d00c7, 0x40422b99, 0x0e301509, 0x0e020e40, 0xec821a11, 0x1c403108, + 0x1a481009, 0x010d2b1a, 0x0d140d04, 0x05060d02, 0x3f0c050c, 0x5f114f11, 0x1d110311, 0x5dcc2f00, 0x2f2f3939, 0x5dcd2f01, 0x2b2f325d, 0x395dcd33, + 0x2f058643, 0x030e1533, 0x34252307, 0x06153736, 0x1e141506, 0x3d06b44c, 0x190bb001, 0xcf081618, 0x3e383012, 0xe3fe521f, 0x393c7a78, 0x321f251f, + 0x04453a2f, 0x7d181e89, 0x7838094a, 0x4c1f734e, 0x13182e16, 0x1c1a1012, 0x00462725, 0x1d00ffff, 0xb9060000, 0x08076f50, 0x0027003a, 0x00a20249, + 0x00070100, 0x0044054c, 0x40380000, 0x8f020326, 0x39700139, 0x01394001, 0x0f01392f, 0x01390139, 0xb0011fe0, 0xaf1f011f, 0x4b70014b, 0x014b4001, + 0x5d014b0f, 0x2005c450, 0x05a34135, 0x2107c950, 0x5992a806, 0x59844f20, 0x25403622, 0x3d295899, 0x013d7001, 0x0f013d40, 0x08588f3d, 0x0002004a, + 0x06ecff7d, 0x00140625, 0x00340020, 0x1b2c404b, 0x20091306, 0x2b01015b, 0x3667095b, 0xbf0136c0, 0x36700136, 0x5f362f01, 0x5b210236, 0x06356613, + 0x5f300e1b, 0x26041820, 0x00130e5f, 0xce3fe13f, 0x393912e1, 0xe1f61001, 0x5d20b182, 0x33220682, 0x5146e12f, 0x0e172306, 0x4b460703, 0x26262708, + 0x12343502, 0xbc563636, 0x01352405, 0x56021e14, 0x232e07a9, 0x06020e22, 0x280c0e17, 0x2b3f5a3f, 0x7918512d, 0x280808a0, 0xec9ea4ef, 0x19312951, + 0x34f2fb08, 0x7272a56b, 0x32326ba5, 0x7272a46a, 0x06346ca6, 0x703c1614, 0x59184c61, 0xfeaa7fd8, 0xaa7918eb, 0x666f2b0b, 0x5d4a350c, 0x89c9fc34, + 0xee1899db, 0x71260f7f, 0xf404ecff, 0xe982f204, 0x002c2d08, 0x172c404a, 0x1e19194a, 0x48270a12, 0x00100000, 0x00000702, 0x902e102e, 0xb02ea02e, + 0x4821042e, 0x122d560a, 0x502a051e, 0x24100f17, 0x2006fa7a, 0x24e988c6, 0x5e2f3311, 0x820d835d, 0x0d434eec, 0x3320de86, 0xf57afb85, 0x0423080b, + 0xb27d432d, 0x7fae676f, 0xb37c4347, 0x3fa9646f, 0x0619342e, 0x2d100fc6, 0x2039563f, 0x8900fd24, 0x83879a9a, 0x02660803, 0x91d58927, 0xd5914c4c, + 0x91d38889, 0x0d44474b, 0x335d4b37, 0x5e784a17, 0x9e411443, 0xd3d3d15e, 0xd0d0d0d1, 0x00010000, 0x06ecffb8, 0x0014064e, 0x40510024, 0x085b0632, + 0x015a2308, 0xb0010e9f, 0x0eaf010e, 0x260e0e01, 0x26802670, 0x5f0326f0, 0x26000126, 0x1b022610, 0x2564185a, 0x240d0d01, 0x1e031906, 0xbb41135f, + 0x33332305, 0xbb41332f, 0x24d38206, 0x33715d5d, 0x23d285e1, 0x35033e15, 0x1120c484, 0x2207204f, 0x45113311, 0x42080594, 0xdd041137, 0x0a203e34, + 0x320f0fc6, 0x425b8055, 0x8088c985, 0xbb4485c4, 0x8059b0ac, 0x05012852, 0x3206c4b6, 0x1638644e, 0x4a698247, 0x7291fd0f, 0x4d5290c4, 0x037ac78e, + 0xb048fcae, 0x886236bf, 0x82b60351, 0xa44708bd, 0x7905ecff, 0x2700f204, 0x33405400, 0x21214a1f, 0x1a471701, 0x10292727, 0x29800129, 0x29e029a0, + 0x01296f03, 0x29202900, 0x07032930, 0x540c470f, 0x26261a28, 0x0f0d181f, 0x07025012, 0x00150016, 0xe1333f3f, 0x86c6333f, 0x5d5e21c0, 0x22056f46, + 0x8432e133, 0x272121c0, 0x8807704d, 0x113522b7, 0x34d58933, 0x0a1b7503, 0x5c524519, 0x5c8a5b30, 0x6f6ab62f, 0x1d436e51, 0x24d58ab6, 0x293f2b93, + 0xd1d81814, 0x827b200f, 0x38653cd8, 0x6d884717, 0xb0fc0748, 0xfc010000, 0xfed9048f, 0x00210619, 0x4016000d, 0x1806000a, 0x3a1b9be7, 0x237919fe, + 0x10404d51, 0x2e2b10db, 0xd9041630, 0x5158531c, 0x5023151b, 0x821d4c51, 0x48fd2149, 0xd1204982, 0x06254987, 0x0f800500, 0xc7c3180c, 0x48fd2517, + 0x2b2e3015, 0x3f2b4882, 0x7922524d, 0x4c1df404, 0x18235051, 0x2c080583, 0xd90446fc, 0xe30514ff, 0x38001b00, 0x19841840, 0x42fe374c, 0x474c4f28, + 0x0e302d1f, 0x35210568, 0x51292e4a, 0x2d1d454d, 0x0d830f2e, 0xdb04492b, 0x35232b23, 0x45613c3e, 0x19841826, 0xfd01280a, 0xfeb80404, 0x828f0679, + 0x4026288d, 0x08080512, 0x8215000d, 0x0f123405, 0x02191f19, 0x00068019, 0x5dcc1a2f, 0x33113932, 0x83cc2f01, 0x054d4306, 0x23070725, 0x4b033e27, + 0x580805ba, 0x36350706, 0x16323336, 0x2d1b79fe, 0x710a223c, 0x2a3c250e, 0x32241517, 0x10341c1d, 0x85293210, 0x27d30585, 0x071b293a, 0x1006b06f, + 0x18182118, 0x03071320, 0x05036c03, 0x0100005b, 0x98fe31fd, 0x7dff06fe, 0x0f000d00, 0x008708b5, 0x0003910b, 0x2f01e52f, 0x053031e1, 0x050e4c34, + 0x020e2008, 0xfd262223, 0x2b2d3e31, 0x271d113f, 0xf63e2d15, 0x3c37373c, 0x0e1c2b1d, 0x00ffff37, 0x180000c7, 0x2a2c51bd, 0x050000c9, 0x02730710, + 0x82b20126, 0x0007347e, 0x01420043, 0xb4150052, 0x26051801, 0xa3ffb801, 0x18181eb4, 0x82099558, 0xff712a5f, 0x06e103ec, 0x00260221, 0x242f8248, + 0x94430006, 0x202d8200, 0x33b31802, 0x00ae2416, 0x833b0400, 0xd201212d, 0xca202d85, 0x01222d83, 0x5b85110c, 0x180c1221, 0x080ca149, 0xecff7d5f, + 0xc9055e07, 0x71004500, 0x04144840, 0xc5255a39, 0x36960136, 0x890236a6, 0x36360136, 0x0c5b411d, 0x47004767, 0x00024710, 0x50472047, 0xd0477047, + 0x0647e047, 0x1d5b2e07, 0x37374666, 0x5f290033, 0x07262603, 0x20140422, 0x14480e09, 0x115f333c, 0x3f001318, 0x3232e133, 0x33333f2b, 0x26088211, + 0x012f3912, 0x18e1f610, 0x21090e54, 0x15825d5d, 0x30313923, 0x21521801, 0x27262611, 0x23060623, 0x0b074622, 0x2907436a, 0x33021e14, 0x11373632, + 0xbe5c1133, 0x6877080a, 0x4c2a5e3c, 0x77518f3b, 0x3f407db7, 0x6f88c681, 0x4b0249aa, 0xc6886ea8, 0x7d403f81, 0x8f5177b7, 0x5f294c3b, 0x5071453c, + 0x8a5c2e2b, 0x2e76395c, 0x3b762ebb, 0x2e5c8b5c, 0x0571502c, 0x9c202e25, 0xb8632c2a, 0xaaa6f8fe, 0x77d2dffe, 0x32303032, 0x2101d277, 0x0801a6aa, + 0x2a2c63b8, 0x462e209c, 0x8d88cf8a, 0x2459a4e5, 0xfebd0126, 0x59242643, 0x888de5a4, 0x4c468acf, 0x053a053b, 0x004a04f4, 0x40e7002c, 0x01106509, + 0x22f922c9, 0xffb82102, 0x100ab3f0, 0x07832c48, 0x841b1221, 0x19403a07, 0x00480f0a, 0x481b0a10, 0x0e220d26, 0x2c152221, 0x0f560600, 0x0f020f66, + 0x0825820e, 0x1f484049, 0x0e6f010e, 0x0e9f0e7f, 0x59040edf, 0x0e4f010e, 0x01157401, 0x2401156b, 0x02153415, 0x06340624, 0x06740644, 0x0e050694, + 0x0e151506, 0x1b010306, 0x101c0047, 0x1c07021c, 0x2e102e1c, 0x2e302e20, 0x2ee02ed0, 0x83010205, 0x011e2a4c, 0x1d154026, 0x0c202648, 0x086d8214, + 0x1b031022, 0x150f010e, 0x36062606, 0x22060206, 0x3f001500, 0x115d3232, 0x33333f33, 0x2b2b3917, 0x33382f01, 0x2f2a0d82, 0x12e15d5e, 0x2f3d3917, + 0x8e4c182f, 0x715d2106, 0x33261884, 0x11333311, 0x29823912, 0x5d2b2b36, 0x215d3031, 0x16133301, 0x3e331716, 0x03133703, 0x031e1333, 0x98080a83, + 0x02143335, 0x23070602, 0x35262603, 0x0307030e, 0x89fe7701, 0x261ce0bc, 0x15070709, 0x770f1d1a, 0x0cc9bca2, 0x05181e1f, 0x41725a07, 0x5c25b719, + 0x77c0759a, 0x06010d0c, 0x98040a09, 0x56fd4a04, 0x16339d57, 0x2045413a, 0xcf010c01, 0x6321b0fd, 0x67195c67, 0x98ffe2d0, 0xfedffea3, 0x017ffcf5, + 0x03352054, 0x1d1b1301, 0x00aafe0a, 0x14000200, 0xbc040000, 0x16001406, 0x9b002100, 0x00130a40, 0x150c5a17, 0x0c100615, 0x40c0ffb8, 0x48271a0d, + 0x02010c20, 0x0ca00c90, 0x23118302, 0x481813b3, 0x44081984, 0x480e0b40, 0x1b0e0c0c, 0x2367065b, 0x23302300, 0x23602350, 0xe0052380, 0x239f0123, + 0x01235001, 0x005f210e, 0x105f0d16, 0x00b01013, 0x01008901, 0x0f01004f, 0x00070110, 0x11100010, 0x0c601700, 0xe13f0012, 0x05234f3f, 0xdb6a5d20, + 0xe1102306, 0x0b822f01, 0xf6107137, 0x2f3911e1, 0x5f5d2b2b, 0x12332b71, 0xe1102f39, 0x30313232, 0x07064f01, 0x1121232a, 0x11213521, 0x15211133, + 0x32200582, 0x08056a50, 0x0a022338, 0x7ecf9896, 0xc27e3c37, 0xfe96fe86, 0xba3c01c4, 0x87fe7901, 0x2ea4aea0, 0x815d8b5b, 0x71424e03, 0x9e615798, + 0x60043d70, 0xfe1001a4, 0x40fca4f0, 0x61468884, 0x01411b3c, 0x056d3206, 0x00140027, 0x40810021, 0x16021309, 0x0c001047, 0x2ce68401, 0x481a0d47, + 0x000c000c, 0x06471c0e, 0x3fe88257, 0x70022310, 0xc0239023, 0x0423e023, 0x0250150e, 0x10500d01, 0x020f1013, 0x0202021f, 0x481e0c40, 0x0f34e382, + 0x02101f10, 0x02100207, 0x01117f10, 0x11011130, 0x150c5016, 0xdb82ed82, 0x7122ef85, 0x16505d2b, 0x20ed8309, 0x22178312, 0x85335d2b, 0x30de82e7, + 0x14151632, 0x2123020e, 0x33352311, 0x21153335, 0x68451801, 0xe3023209, 0x1501d5fe, 0x652fcdd3, 0x39fe719f, 0x01b6eeee, 0x2c10822b, 0x435e3704, + 0x60412126, 0xfeb00340, 0xcb4618d7, 0xdddd2108, 0x0e754518, 0xffc73708, 0x05ec06ec, 0x002d00cb, 0x082f4058, 0x221b5b05, 0x07111107, 0x2a1e0322, + 0x1d212f2a, 0x2e641e5a, 0x275f002b, 0x1c081b04, 0x0f05225f, 0x21080121, 0x1e031f21, 0x67180d12, 0x3f230828, 0x6c5e2f39, 0x3f320579, 0x100133e1, + 0x1132e1f6, 0x122f7d33, 0x2f183917, 0xbf822f2f, 0x2c09836c, 0x3233031e, 0x0e153736, 0x26222303, 0x95441826, 0x1716270c, 0x05262607, 0x67185f6d, + 0x23080933, 0x5971ac75, 0x4e274ea0, 0x9e3a6156, 0x05529deb, 0xbabab0fe, 0x630e5601, 0x6c95e9a7, 0x3f4e4fc4, 0x41270595, 0x0e3b6718, 0xb8644a08, + 0xfd9f0301, 0xfdb60556, 0xa7eb8f98, 0x9c2a2c5c, 0x00002e20, 0xffae0001, 0x047105ec, 0x0029005e, 0x20394064, 0x4f05481d, 0x1f0c010c, 0x27081f0c, + 0x0b2b1414, 0x54084707, 0x15511a2a, 0x05201011, 0x0c1d5006, 0x0bb90ba9, 0x06f45902, 0x0b0b0629, 0x15080f09, 0x4f265123, 0x3f20055b, 0xec86eb84, + 0x88e13321, 0x123322ec, 0x20ed8339, 0x22ed845d, 0x8f2e2205, 0x822e20db, 0x070621f1, 0x3c0b7a6d, 0xa9615404, 0xfe074f81, 0x01b6b6f1, 0x81550c13, + 0x954e5ea5, 0x38173632, 0x8c193b3c, 0xd8421891, 0x82523b07, 0x147c3536, 0x87c17b3a, 0x4a0417fe, 0xb58039fe, 0x19223472, 0x0f130a9a, 0x42189709, + 0x002308de, 0x82000200, 0x05490800, 0x00b6052f, 0x0018000b, 0x084940ae, 0x06d80106, 0x070206e8, 0x07d70107, 0xa60207e7, 0x019b0107, 0xa7007701, + 0x0a0d0200, 0x04030c09, 0x13130607, 0x0100a708, 0x05010100, 0x01080009, 0x08100800, 0x08700820, 0x08c00880, 0x080b8206, 0x901a084f, 0x021aa01a, + 0xc0ffb81a, 0x18150f40, 0x011a8f48, 0x0f011a40, 0x0408011a, 0xf0ffb805, 0x0b051340, 0x10135f03, 0x13480e0a, 0x04060c0c, 0x06120900, 0x3f3f0003, + 0x39123333, 0xe12b392f, 0x382f0132, 0x5d5d5e33, 0x115d2b5d, 0x5d382f33, 0x25178371, 0x39115d33, 0x22832f3d, 0x39123923, 0x2d1c8239, 0x715d715d, + 0x23213031, 0x23012311, 0x03823301, 0x27239508, 0x032e2721, 0x07030e27, 0x7fa6ec02, 0x02c5fefe, 0x3b02bb39, 0x7afefec7, 0x352301e8, 0x11161c12, + 0x15110907, 0xaa021119, 0xb60556fd, 0xaa024afa, 0x4c308fa4, 0x25254143, 0x2d494341, 0x00020000, 0x0400000a, 0x004a045a, 0x0017000b, 0x393840cf, + 0x79025902, 0x04028902, 0x022b021b, 0x0105b502, 0x05a60596, 0x01058702, 0x03190309, 0x16080602, 0x12090208, 0x06021219, 0x02111611, 0x02031207, + 0xb6090811, 0xb8000100, 0x1b40f8ff, 0xb9480f0a, 0x080b010b, 0x00360782, 0x010cb40b, 0x05050c0c, 0x010a0606, 0xb8010210, 0x12b3c0ff, 0x07834815, + 0x18403708, 0x01480b07, 0x19c01901, 0xaf0219e0, 0x19500119, 0x1f190f01, 0x0a090219, 0x40f0ffb8, 0x08040a0f, 0x110b0c50, 0x0f0b0111, 0x1501060a, + 0x33333f00, 0x2f39123f, 0x23413912, 0x825d2005, 0x33112600, 0x332b2b2f, 0x2e158238, 0x3d391233, 0x33335d2f, 0x5d2b5d2b, 0x82393912, 0x825e2002, + 0x2902831f, 0x5d5d3031, 0x03230101, 0x01821123, 0x23032b08, 0x030e1701, 0x032e3307, 0x01a60227, 0x60bbbcb4, 0xbdba60a2, 0x0571b401, 0x0d25231b, + 0x23250ef0, 0x4a04041b, 0xe901b6fb, 0x038317fe, 0x794a043f, 0x5e605519, 0x605f2222, 0x00001954, 0x00c70002, 0x05290700, 0x001300b6, 0x40bf0020, + 0x081a421b, 0x050e0627, 0x14111215, 0x263e8203, 0x0f010005, 0x83051b0e, 0x5d6208c3, 0xcb010180, 0x1b84011b, 0x7b1b2b01, 0x050f021b, 0x052f051f, + 0x05cf057f, 0x05ff05df, 0x01050807, 0x05011b1b, 0x10101103, 0x10101000, 0x10b01070, 0x100510f0, 0x22302210, 0x22c02250, 0x22e022d0, 0x5a080c05, + 0x13216409, 0x0d5f0306, 0x1009201b, 0x14141b48, 0x0104090e, 0x0e0a1211, 0x333f0003, 0x3742333f, 0xe1333606, 0x10013232, 0x5d32e1f6, 0x5d2f3311, + 0x39173338, 0x2f182f3d, 0x0504412f, 0x33113824, 0x01831133, 0x39391223, 0x82028211, 0x5d5d2106, 0x22083e42, 0x82231121, 0x1321211c, 0x2f0d4642, + 0x81a5e704, 0x01c4fdfe, 0xba7ffe08, 0xf1c101ba, 0x2a054d42, 0x2301e979, 0x151c1335, 0x42080811, 0x5142074d, 0x98fd2305, 0x55426802, 0xae3c0813, + 0x08060000, 0x13004a04, 0xeb001f00, 0x05a53140, 0x96058601, 0x05770205, 0x16090601, 0x02190209, 0x02490229, 0x02790269, 0x01020b05, 0x1902031a, + 0x12091408, 0x110a130b, 0xc60e470d, 0x28064e42, 0x480f0a17, 0x130113c9, 0x29078208, 0x14c41300, 0x05141401, 0x25420605, 0x2f133205, 0xaf0a3f0a, + 0x060a030a, 0x0e01060a, 0x01022054, 0x0c624210, 0x072c3d08, 0x0101480b, 0x0121d021, 0x600121bf, 0x90217021, 0x214f0321, 0x01210001, 0x08040b08, + 0x13141250, 0x0f021919, 0x090e0f13, 0x00150206, 0x3333333f, 0x3912333f, 0x3339122f, 0x013232e1, 0x31053e41, 0x2b2f3311, 0x1033382b, 0x393911e6, + 0x385d2f2f, 0x6d421133, 0xe110240b, 0x41121132, 0x11200554, 0x23059b43, 0x30315d5d, 0x200a7142, 0x07604113, 0x79421720, 0x54042106, 0x28087942, + 0xb6e9fec3, 0xb55401b6, 0x167f4270, 0x28058342, 0xc70139fe, 0x60541979, 0x0987425f, 0x00142408, 0x056a0500, 0x002300b6, 0x40c00026, 0x01228611, + 0x59011a86, 0x02128912, 0x0c091025, 0xffb82648, 0x822c40f0, 0x25520808, 0x24060b0a, 0x1b5a1a24, 0x0a000726, 0x0a200a10, 0x071b0a03, 0x030a1b07, + 0x11101200, 0xd0021120, 0x11800111, 0x11021190, 0x40c0ffb8, 0x480a073b, 0x1f281111, 0x28f00128, 0xdf28cf01, 0x28400228, 0x28702850, 0x3f280f03, + 0x23070228, 0x611c1900, 0x05190b24, 0x002d0a23, 0x5f26070a, 0x121b0308, 0x3f001200, 0x073d5532, 0x715d5e2b, 0x32e13333, 0x5e332f01, 0x2000825d, + 0x05e75a71, 0x5a337121, 0x240808c1, 0x3d39e110, 0x1133332f, 0x5d2b2b33, 0x5d30315d, 0x033e1333, 0x21350137, 0x031e0115, 0x03231317, 0x2323032e, + 0x08018211, 0x020e2259, 0x01010307, 0x187b1421, 0x5f7c5436, 0x490490fe, 0x806185fe, 0x7a183756, 0x26147bbe, 0x183d4f36, 0x4f3d18bb, 0x7b142636, + 0x4a01eb01, 0xc5016ffd, 0x3a628855, 0x8be70106, 0x0619fe8b, 0x56896238, 0xc1013bfe, 0x17395f48, 0xb80248fd, 0x485f3917, 0x5a033ffe, 0x4400b801, + 0xe53506ef, 0x23004a04, 0xc7002600, 0x1a760d40, 0x1a961a86, 0x07102503, 0x053d410c, 0x08821820, 0x0112093c, 0x0b012306, 0x1a242406, 0x0a251b46, + 0x1ba70726, 0xffb80a01, 0x161040c0, 0x48414819, 0x11202308, 0xd6441101, 0x28078306, 0x0b073f40, 0x28111148, 0x06434110, 0x28602e08, 0x1f022890, + 0x02284f28, 0x070a0023, 0x19085026, 0x2416521c, 0x24362426, 0x240424a6, 0x1f060f0b, 0x5f064f06, 0x06070406, 0x1b0f0806, 0x05034b12, 0x18483f20, + 0xe15d2905, 0x32e11032, 0x332f0132, 0x20074841, 0x0747412b, 0x115d2b25, 0x41331133, 0x5d26064a, 0x5d2b2b5d, 0x48413031, 0x1353081d, 0x167b0a21, + 0x5367422c, 0xcf03cefe, 0x6853c9fe, 0x7b172c43, 0x24147bba, 0x04354430, 0x463504a6, 0x7a142530, 0xfefcb401, 0x3d54010a, 0x09314d65, 0x69696401, + 0x31089cfe, 0xfe3d674c, 0x365001ac, 0xfd112b48, 0x110a02f6, 0xfe36482b, 0x018302b0, 0x4500002d, 0x24080511, 0x00b60589, 0x002b0028, 0x861540ca, + 0x1759011f, 0x10021789, 0x1f29290b, 0x102a205a, 0x2b480c09, 0x40f0ffb8, 0x3c088233, 0x0c2b0f2a, 0x0f100f00, 0x07030f20, 0x20200c0f, 0x16030f0c, + 0xc000b028, 0x000f0200, 0x084b821f, 0x1707004e, 0x16101600, 0x80167002, 0x0316c016, 0xc0ffb816, 0x0a073440, 0x2d161648, 0x9f012de0, 0x022dbf2d, + 0x2f012d40, 0x060a012d, 0x2c64075a, 0x5f2b0c0f, 0x21051e0d, 0x0f102961, 0x0b08010b, 0x030d080b, 0x03201707, 0x3f001200, 0x333f3217, 0x21054341, + 0x434132e1, 0xf6102305, 0x344632e1, 0x05564707, 0x425d5d21, 0x5e270693, 0x1133115d, 0x412b2b33, 0x3126084d, 0x36132130, 0xb9433736, 0x1a9a4206, + 0x7b330237, 0xfe1c2913, 0x02baba7b, 0x0495fea4, 0x6185fe4a, 0x18375580, 0x069f427b, 0x19ba1923, 0x0c9f423c, 0x2e734422, 0x21056549, 0xa342dd01, + 0x00ae3822, 0x04980600, 0x0028004a, 0x40cf002b, 0x861f760d, 0x031f961f, 0x4107102a, 0x2c200653, 0x28080882, 0x10011709, 0x1f29290b, 0x0f2a2046, + 0x20a70c2b, 0x0c200f01, 0x030f200c, 0x2f001f16, 0x00ff0200, 0x07000001, 0x01162017, 0x06a24216, 0x3a080783, 0x0b073f40, 0x2d161648, 0xb0012dcf, + 0x2d9f012d, 0x012d6001, 0x00012d4f, 0x022d302d, 0x0747060a, 0x0c0f2c54, 0x1e0d502b, 0xa6522105, 0x10290129, 0x0b1f0b0f, 0x0b0b0702, 0x820f0d08, + 0x0003224b, 0x0b5f4115, 0x60415d20, 0x5d5d2d0f, 0x2b2f3311, 0x1233712b, 0x715d2f39, 0x4208f543, 0x2b2209ac, 0x60415d2b, 0x21133a26, 0x107bbc01, + 0xedfe131d, 0x0b02b6b6, 0xce03d5fe, 0x6853c9fe, 0x7b172d43, 0x09b742bb, 0x24314524, 0xb7427b14, 0x4b2a2206, 0x05ef4920, 0x425e0121, 0x8f0820bb, + 0xfe390001, 0x06ec0346, 0x007600d5, 0x2127409f, 0x480e0918, 0x51596259, 0x51474d4d, 0x6c675b3b, 0x35446751, 0x14511467, 0x44355167, 0x5b2e2405, + 0x05786772, 0xffb8245a, 0x143640c0, 0x5d244818, 0x568f4d52, 0x56af569f, 0x07405603, 0x5656480b, 0x60346c47, 0x0f01354f, 0x0235af35, 0x29353508, + 0x03625143, 0x03476140, 0x1f5f0a15, 0x006029fb, 0xe13f0013, 0x3f33e13f, 0x123317e1, 0x5d5e2f39, 0x1139e171, 0x5d2b2f33, 0x2f01e133, 0xf610e12b, + 0x2105e34e, 0x00822f18, 0x39121128, 0x3311e110, 0x03832f33, 0x00303125, 0x5c22052b, 0x3e2707af, 0x1e323302, 0x6b151702, 0x23200586, 0x6d085077, + 0x2322052e, 0x8f563523, 0x07062b09, 0x37363627, 0x3527032e, 0x6b6d1633, 0x17162105, 0x6207ac5b, 0x5f1805cb, 0x2d08073c, 0x5a47e101, 0x240e1434, + 0x61412f3d, 0x2b325153, 0x0c233142, 0x4d361f08, 0x4a473135, 0x8868465c, 0x6631204f, 0x80596c9d, 0x67392651, 0x6b185891, 0x80080dbc, 0x1867a63b, + 0x14323637, 0x36613379, 0x4b433b1a, 0x0e2f1f2a, 0x1611220b, 0x142e3030, 0x2b557e52, 0x4b7d5b33, 0x325e8a57, 0x14c48343, 0x18292012, 0x0e1a2416, + 0x07040404, 0xb6070f0a, 0x0c101207, 0x29020303, 0x3c376048, 0x26264662, 0x47446948, 0x971d3f65, 0x3e644827, 0x1e3a5336, 0x307d3643, 0x411e114b, + 0x1b173a3f, 0x24386122, 0x09233846, 0x07057705, 0x21382917, 0x765c3f0d, 0x58774a45, 0x2e6c1839, 0x0080080a, 0xfe170001, 0x05520373, 0x00700052, + 0x407140b7, 0x480e0918, 0x6c626868, 0x6c030c03, 0x16114658, 0x5fe0116c, 0x11525f01, 0x11336c33, 0x055f526c, 0x1c474d43, 0x72c07257, 0x72e072d0, + 0x01727f03, 0x0f017230, 0x26070172, 0x0c404346, 0x16434811, 0x89505116, 0x02529952, 0x0801520f, 0x48625252, 0x00520768, 0x48141040, 0x0c074000, + 0x6c5e0048, 0x505b0300, 0x3410620c, 0xfb3e502b, 0x16215048, 0x3806e241, 0x3317e133, 0xe12b2b2f, 0x39121133, 0x5d5d5e2f, 0x2f3d39e1, 0x2b2f1801, + 0x210b82e1, 0xea415d5d, 0x415d200c, 0x356e10eb, 0x0672640a, 0x2007a641, 0x0c054223, 0x04421620, 0x8b6d1815, 0x23262109, 0x4205bf52, 0x02300a02, + 0x0e2f1fcf, 0x1511210b, 0x132d2e2e, 0x233f5937, 0x0b045e18, 0x594b5308, 0x220e0f2f, 0x63322c3a, 0x4221535d, 0x22090d47, 0x20132c28, 0x396f6455, + 0x18407058, 0x6e905622, 0x2c4c6437, 0x61818a85, 0x2748643d, 0x81476c73, 0x6b393f4b, 0x30311741, 0x3379122c, 0x3a1a3662, 0x52054b43, 0x05770509, + 0x33261507, 0x45310e1f, 0x5e183558, 0x3a080836, 0x74443d5b, 0x1a0e3156, 0x23161726, 0x04030d18, 0x97131603, 0x060a0f0a, 0x2e030303, 0x2f295647, + 0x132a4659, 0x5e33452b, 0x2712995b, 0x4d4d2d40, 0x1c932226, 0x3b1c0822, 0x41153237, 0xff3907fa, 0x006800ff, 0x05ba0500, 0x010602b6, 0xff000075, + 0xfea400ff, 0x06710514, 0x080f8212, 0x00009547, 0x7d000300, 0x7105ecff, 0x1300cd05, 0x29001e00, 0x32404f00, 0x005b1925, 0x2bd02b67, 0x012bcf01, + 0x3f012b80, 0x022b6f2b, 0x0a5b1a24, 0x601a2a66, 0x0f01244f, 0xdf24af24, 0x24080324, 0x5f1f1424, 0x5f14040f, 0x05a54305, 0xa0431220, 0x05524b05, + 0x5d5d5d22, 0x20072574, 0x0efc5302, 0x85181620, 0x2e240edd, 0x51710503, 0x3e0afa59, 0x51a0ec9a, 0x9e6a87fd, 0xfc06396b, 0x6b3a069a, 0x9c696d9e, + 0x03083d6c, 0x693b0864, 0x59dd029b, 0x6b370ef5, 0xfdebfec5, 0xc2864707, 0x86c27a7a, 0x439a0447, 0x7575b880, 0x834380b8, 0xff7126d9, 0x042d04ec, + 0x22d9825e, 0x8221001a, 0x333008d9, 0x0048171f, 0x23402357, 0x23e023d0, 0x01230f03, 0x0a48181e, 0x50182256, 0xa9011eef, 0x021eb91e, 0x1e1f1e0f, + 0x06031e2f, 0x1b141e1e, 0x14100f50, 0x2006fe59, 0x21da84e1, 0x814f5d5d, 0x21d98905, 0x4b44020e, 0x021e2f09, 0x37363201, 0x13161621, 0x21070622, + 0xf4592626, 0xae67340d, 0x23fe477f, 0xfd0a888d, 0x8c8c09be, 0x020e8889, 0x598a0d3e, 0x4b250def, 0xd4fdd391, 0x290082b2, 0xa4a24403, 0x0000a2a4, + 0x00820001, 0x02052208, 0x1c00c305, 0x29405a00, 0x0d0b0607, 0x010dfb01, 0x90080d0d, 0x0219d019, 0x001e1919, 0x1eb0011e, 0x08b48501, 0x5f1e4f22, + 0x061e7f1e, 0xb8080907, 0x0c40f0ff, 0x16600008, 0x03080904, 0x1207060d, 0x33333f00, 0xe13f333f, 0x2c06264f, 0x2f331171, 0x3d39125d, 0x33715d2f, + 0x062d5133, 0x0123012e, 0x16160133, 0x37363617, 0x33033e13, 0x08058371, 0x2496043c, 0x12242a35, 0xfecdd7fe, 0x2701c519, 0x0e112e1d, 0x1f8d1a2a, + 0x4b674c3d, 0x171a4423, 0x252d0535, 0xfb426748, 0xfcb605e9, 0x4faf5b61, 0x0261bc4e, 0x629c7100, 0x97080d2b, 0xbf860d09, 0x040e0433, 0x001f0052, + 0x1e00b96d, 0x1640f8ff, 0x1f480e0a, 0x08048308, 0x20071e2b, 0x0748110d, 0x16e00007, 0xffb81601, 0x071a40e0, 0x1616480a, 0xcf21bf21, 0x0321ef21, + 0x0f012150, 0x4f212f21, 0x01070321, 0x30d08400, 0x1f071e00, 0x134f1a15, 0x0f00010f, 0x3f323f00, 0x86d482e1, 0x825d20d0, 0x842b20d0, 0x332b27d1, + 0x312b2b33, 0xc7541130, 0x08cc8a07, 0x06222342, 0xbc230307, 0x1f200bc9, 0x0406051a, 0x09191814, 0x43351956, 0x221a3c58, 0x12260b11, 0xe0183a2f, + 0xfd4a04f3, 0x6e6a21a2, 0x5f191961, 0x0121676c, 0x42755e40, 0x87050518, 0x58500503, 0xffffdffc, 0x25058f41, 0x26027307, 0xde828002, 0x76030738, + 0x5201b804, 0x02b61900, 0x26051d01, 0xffb80102, 0x1d31b482, 0xd35f1908, 0x352b2305, 0x33850035, 0x060e0423, 0x20338221, 0x20338681, 0x83478250, + 0x11202133, 0x94253384, 0x002034b4, 0x08338916, 0x00030045, 0x0914fe7d, 0x00cd055a, 0x00270013, 0x40a1004a, 0x1e5b000a, 0x2f2f4a38, 0xb8282937, + 0x2340f0ff, 0x00402828, 0x02401040, 0x1f0140f0, 0x3f402f40, 0x1e000340, 0x1e401e01, 0x37360a40, 0xe037d010, 0x4a370237, 0x2f080506, 0x3737480b, + 0x014c0f4c, 0x4c1f4c0f, 0x4c4f4c2f, 0x4cbf4c7f, 0x4cef4cdf, 0x5b140708, 0x384b660a, 0x284a4a2f, 0x1b3d5044, 0x230f2836, 0x19040f5f, 0x2607ca43, + 0xe13f333f, 0x18113911, 0x4c07256d, 0x3826058e, 0x393912c1, 0x554b2f2f, 0x280d8306, 0x33332f3d, 0x3031e110, 0x05346401, 0x230ae057, 0x14051216, + 0x200de65d, 0x09934125, 0x0e013324, 0x20692303, 0x3748080a, 0x964c1f05, 0xe09891dd, 0x93474793, 0xdd9099e1, 0x23fc4c95, 0x6796612f, 0x2e609667, + 0x6794602e, 0x2f619768, 0xd7bd4304, 0x13191d0d, 0x17040604, 0xc70b1d1b, 0x1d4efebc, 0x50745640, 0x151b4c34, 0x46302340, 0x390f2534, 0x20141c44, + 0x0e0e5eab, 0xfde39608, 0x5858289b, 0x56192253, 0x02215e61, 0x5127fb63, 0x0b315a81, 0x07059106, 0x29402c17, 0xffff00a0, 0x14fe7100, 0x5e044e08, + 0x52002600, 0x07010000, 0x6f045c00, 0x11000000, 0xb80202b1, 0x20b41404, 0x25000a2f, 0x00352b01, 0x02000035, 0x83ff7d00, 0x3106c305, 0x3f001f00, + 0x33405200, 0x67005b30, 0xc441b441, 0x41900241, 0x41300201, 0x20024180, 0x4066105b, 0x0b011819, 0x08040118, 0x07020814, 0x5f3b3538, 0x0315181b, + 0x085f2528, 0x00120b05, 0xe133333f, 0x2b048432, 0x5d5d5e32, 0xf610015d, 0x5d5f5de1, 0x2706dc77, 0x07020e14, 0x22230606, 0x2d077065, 0x33363637, + 0x1e171632, 0x1e140503, 0x555f1702, 0x2e342308, 0x26852702, 0x030e9508, 0x8949c305, 0x4a0e7cc5, 0x0d483b37, 0x4587c781, 0x81c78745, 0x373b480d, + 0xc57b0e4a, 0x7ffb4a89, 0x537f572d, 0x31354311, 0x80521145, 0x572d2d57, 0x46105280, 0x11433531, 0x2d577f53, 0xfc95dd02, 0x3f177dc0, 0x163f3636, + 0x96fec07d, 0x7bbffb96, 0x33313f17, 0xbf7d173d, 0xc07496fb, 0x30156292, 0x152e2826, 0x74c09262, 0x6292bf73, 0x29293216, 0x91611630, 0x020000bf, + 0x91ff7100, 0xb604a804, 0x37001f00, 0x2cb55400, 0x39570048, 0xc0ffb839, 0x48140eb3, 0x40290783, 0x480c0924, 0x56104820, 0x0b0d4138, 0x352f322f, + 0x15021b50, 0x2326290f, 0x0b050850, 0x050e4116, 0x240e0f41, 0xf6102b2b, 0x06215ce1, 0x20160d41, 0x060c4116, 0x35363624, 0x0b412634, 0x06480806, + 0x39a80406, 0x095f996b, 0x3b3a383c, 0x6e995d08, 0x9a6c393d, 0x3a3b0862, 0x5b093d37, 0xfc3c6d98, 0x0b7b6f85, 0x39323439, 0x6e6d790c, 0x32390c78, + 0x7b0b3934, 0x7627026f, 0x125a8ebf, 0x382d2e39, 0xc08e5a12, 0x8dbf7577, 0xe8080d82, 0x123a2a29, 0x75bc8d5b, 0x2c1fcdac, 0x1f2a2020, 0xc8a9abcc, + 0x20202b20, 0x00c81f2d, 0x7d000300, 0x3507ecff, 0x45003d08, 0x6d005b00, 0x9240da00, 0x04241437, 0x24140414, 0x5b411c03, 0x006f670c, 0x026f106f, + 0x6f206f00, 0x6f806f50, 0x6fa06f90, 0x6fe06fd0, 0x1c5b2d08, 0x68636e66, 0x685c4747, 0x50524051, 0x03526052, 0x005f5252, 0x20681068, 0x90688068, + 0x68070568, 0x4d014de0, 0x56cf56bf, 0xef525602, 0x47460146, 0x01524f47, 0x6b605252, 0x6bd06bc0, 0x6b046be0, 0x5f7f5f6f, 0x5fef5faf, 0x015f1004, + 0x5f3c325f, 0x377f1411, 0x3702378f, 0x480a0740, 0x11173737, 0x03032513, 0x215f0028, 0x3f000407, 0x3332e133, 0x333f3311, 0x5d2b2f33, 0x32e11033, + 0xcc5d5d2f, 0x712f325d, 0x5dcd1033, 0xcd5ddd10, 0x5e2f015d, 0x2c1d825d, 0xcd10cd5d, 0x39112f32, 0x5de1f610, 0x0a7a4971, 0x5b331121, 0xe24716e0, + 0x5b17200e, 0x3e220cdf, 0xfc723702, 0x34353e05, 0x1503022e, 0x022e2223, 0x15062223, 0x34352315, 0x1e323336, 0x14053302, 0x36350706, 0x841e8336, + 0x05162212, 0x0e025c3f, 0x45a26725, 0x5c67a047, 0x2a291601, 0x17424e56, 0x564e4217, 0x06045c2a, 0x5610033d, 0x2a647a90, 0x7c853a2e, 0x77703a6d, + 0xeffe4e85, 0x383c7978, 0x321f241f, 0x5c443b2e, 0x2a231022, 0x5c2a2c2c, 0x13281622, 0x1c1c2f23, 0x5913232f, 0x2b06225c, 0x2481a602, 0x352d242a, + 0x656b2310, 0xe2270882, 0x4c1f734d, 0x64192d16, 0x8b080506, 0x03004626, 0xecff7100, 0x0807df05, 0x59004300, 0xb2006c00, 0x67606b40, 0x675a4545, + 0x5050404f, 0x50500250, 0x9f676f5d, 0x67100267, 0x15246701, 0x033f350b, 0x482c0b03, 0x1e6e573f, 0x6d560b48, 0x4b014b00, 0x540154df, 0x01440f50, + 0x6f454544, 0x50500150, 0xe0016a00, 0x026af06a, 0x7f5d0f6a, 0x5d07025d, 0x34511b2f, 0x103a1616, 0x51292110, 0x40240300, 0x24481510, 0x480c0740, + 0x00062424, 0x323f0016, 0x2b2b2f32, 0x32e11033, 0x2506a65d, 0xcc5d5e2f, 0xe141715d, 0x10712905, 0x71cd5ddd, 0xe1f61001, 0x122b0282, 0x122f3d39, + 0x33391239, 0x415d2f18, 0x31230bf1, 0x43220530, 0x2e23053d, 0x4d343502, 0x07230638, 0x6e23032e, 0x362106b5, 0xbe781837, 0x18222008, 0x200dc45e, + 0x18d84113, 0x2e343523, 0x05d74104, 0x10043d08, 0x2b2b6d51, 0xa95f506a, 0x6d3f4a7f, 0x401f5493, 0x3f14343c, 0x2b2b2911, 0x8d697012, 0x29734988, + 0x42393116, 0x698c8529, 0x2b2b1270, 0x14401129, 0x203f3c35, 0x3f6d9354, 0x3aa97e4a, 0x2507d541, 0x396e7c86, 0xd5417870, 0x0f742e05, 0x0f151a15, + 0x443b2e32, 0x20202314, 0x955b1823, 0x10093907, 0x0a9a0c16, 0xca090f13, 0x34c3d3d3, 0x181e1020, 0xd3d3c30e, 0x130f09ca, 0x09355f18, 0x89d5962e, + 0x82aa063f, 0x2e242b24, 0x6c231134, 0x0808cf41, 0x0d332934, 0x0f0a0c0f, 0x26261217, 0x02000046, 0xecff7d00, 0x04075e07, 0x53000d00, 0x62409b00, + 0x5a471223, 0x0144c533, 0x44a64496, 0x01448902, 0x4f2b4444, 0x1d821a5b, 0x2b0d4708, 0x0055671a, 0x02551055, 0x55205500, 0x55705550, 0x55e055d0, + 0x5b3c0706, 0x4554662b, 0x370e4145, 0x3411305f, 0x00040409, 0x3f060a80, 0xcf027f02, 0xef02df02, 0x34020502, 0x4a043015, 0x0e092023, 0x5f412348, + 0x695f261f, 0x322b3205, 0x2f33333f, 0x1a33335d, 0x332f39cd, 0xe1103311, 0x0a735f32, 0x25055755, 0x3911e110, 0x795f5d2f, 0x07152408, 0x86232723, + 0x5f352003, 0x8b2d4287, 0xb8322252, 0xb8312331, 0x03502232, 0x0e91431c, 0x242b945f, 0xac1b0407, 0x23008267, 0x21fe1bac, 0x203a9e5f, 0x05795a00, + 0xa405f42a, 0x3a000d00, 0x0d402301, 0x0d290782, 0x30b90f2a, 0x01308201, 0x06a55f2f, 0x07833a20, 0x481b1322, 0x40290783, 0x480f0a19, 0x0e010ea9, + 0x21108210, 0x0c82100e, 0x1c1b3028, 0x011d6634, 0x25821c1d, 0x53405408, 0x1c1f1c0f, 0x4f031c3f, 0x7f1c6f1c, 0xbf1c9f1c, 0x1c1c051c, 0x232f3034, + 0x74012390, 0x236b0123, 0x34232401, 0x0e3a0223, 0x01349014, 0x14341424, 0x14741444, 0x23051494, 0x34141434, 0x290f0323, 0x102a0047, 0x2a07022a, + 0x3c103c2a, 0x3c303c20, 0x830f1003, 0x0f352157, 0x0806e541, 0x7f020f30, 0x9f028f02, 0x40020402, 0x02481714, 0x1d154034, 0x0c203448, 0x341b4814, + 0x290e031e, 0x230f0f1c, 0x36142614, 0x30140214, 0x3f00150e, 0xc75f3333, 0x17122605, 0x2f2b2b39, 0x07fc412b, 0xd25f0120, 0x5d2f210f, 0x33202782, + 0x31059853, 0x18331133, 0x38715d2f, 0xc0875d33, 0x2b2b01c0, 0x03822b5d, 0x12115d29, 0x2f2f3939, 0x42013031, 0x03200c13, 0x2123eb5f, 0xf641ba04, + 0x23312307, 0xf75f0450, 0xa4052129, 0x2107e441, 0x03605cfa, 0x01490830, 0x14fe7d00, 0xcb059804, 0x54002300, 0x5a111740, 0x0701100f, 0x120f4010, + 0x18101048, 0x600120ba, 0x02207020, 0xc0ffb820, 0x0a061a40, 0x25202048, 0x050125af, 0x2466185b, 0x1d5f0021, 0x5f0a0f04, 0x1b101313, 0xe13f3f00, + 0x06145e33, 0x2705134c, 0x2f39125d, 0xe15d5e2b, 0x2005e54c, 0x06924a15, 0x23113723, 0x108e6211, 0x19033a08, 0x437bae6b, 0x76b0763b, 0x25282d1d, + 0xa410bb15, 0x574c9df0, 0x6ca2faa9, 0x3f4e4fc4, 0x51270594, 0x8d89da98, 0x044e96db, 0xfd090d09, 0x6cd80162, 0xaa1501c6, 0xc61401a6, 0x08f95d6e, + 0xfe713508, 0x046f0314, 0x001f005e, 0x1d25403e, 0x0e401c47, 0x1c1c4811, 0x5f210c04, 0x02217f21, 0x15012110, 0x20560448, 0x1f51181b, 0x121b1c16, + 0x10090d51, 0xe1333f00, 0x0128b583, 0x5de1f610, 0x11ce105d, 0xad82af82, 0x7c450420, 0x17162107, 0x830c7b45, 0xed0128b8, 0x4c4a82b0, 0x5d66b285, + 0x9d2908c1, 0x3e949190, 0x12b72368, 0x07fe4414, 0x0806b55d, 0xd3d3ca4e, 0xfd141bc3, 0x00d8015a, 0x68000100, 0x7904faff, 0x13000a05, 0x67402501, + 0x111d110d, 0x1d010d02, 0x0b020201, 0x02020b12, 0x02071207, 0x0c111007, 0x000b1213, 0x02030801, 0x040f0407, 0x0a0c110d, 0x01090b12, 0x07020608, + 0x0d050e05, 0x11211e82, 0x2120820a, 0x22820912, 0x82060121, 0x02440824, 0x0b0c0504, 0x0f0e0102, 0x4001014f, 0x0b05010b, 0x010f0f01, 0x1204050b, + 0x11701160, 0x110311f0, 0x40c0ffb8, 0x480a074d, 0x11070811, 0x30152015, 0x06030215, 0x07040900, 0x13020101, 0x040d100a, 0x1211110b, 0x30080d82, + 0x0b080707, 0x0b0b010b, 0xc00cb00c, 0x120f020c, 0x0002121f, 0x02081008, 0x0c081202, 0x0212080c, 0x0e0f0404, 0x480d0740, 0x0004050e, 0x2b2f332f, + 0x05215533, 0xcf5c2f20, 0x11712305, 0x03832f33, 0x09821482, 0x01210582, 0x2707825d, 0x5d2b2f32, 0x2f391733, 0x5d200082, 0x11210f82, 0x23018333, + 0xc0c08710, 0x0821038d, 0x210185c0, 0x07858710, 0x31c00825, 0x825e0030, 0x015d2a58, 0x03250705, 0x37251327, 0x21038405, 0x0f820317, 0x4c023308, + 0xfe471c01, 0xb481b4e3, 0x0146e5fe, 0xe4fec61f, 0xb61d0147, 0x1f01b67f, 0x01e5fe4a, 0xa47ba6b0, 0x014ac7fe, 0xa47ba43b, 0x7da45a01, 0x493901a4, + 0x0c82c4fe, 0x00010039, 0x038f04c9, 0x00b805b0, 0xb5420015, 0x0a07200f, 0xffb80348, 0x821e40e0, 0x0c280808, 0x00171212, 0x06100600, 0x06900620, + 0x070506a0, 0x0f160606, 0x03000b0f, 0x2f000003, 0xcd102f32, 0x01112f32, 0x5d5e2f33, 0x2f29c182, 0x2b2b0033, 0x06013031, 0x06527706, 0x21332f08, + 0x32333636, 0x06141516, 0x068b0123, 0x2838302c, 0x1d251709, 0x2d05c101, 0x2b2a3830, 0x2cee0439, 0x1c383333, 0x2d091625, 0x39363231, 0x89820029, + 0xe504f426, 0xd905df03, 0x403c8983, 0x90088011, 0x08080208, 0x10140017, 0x03142014, 0xffb81407, 0x0d1240c0, 0x14144810, 0x14345482, 0xbf400e09, + 0x80050105, 0x1a2f0009, 0xcd1a5ddd, 0xcd2f3311, 0x2b228c83, 0x0a825d5e, 0x89825d20, 0x023e3222, 0x28087f83, 0x34352315, 0x0e222326, 0x35232302, + 0x854e0201, 0x6d3a7077, 0x2e3a857c, 0x9179652a, 0x66051055, 0x65242b24, 0x3411236c, 0x2008822e, 0x08858281, 0x04e10129, 0x06d302d7, 0x00110035, + 0x0b124020, 0x4f063f0e, 0x00060206, 0x034f033f, 0x0303035f, 0xcc2f000f, 0xcd2f015d, 0x8239325d, 0x08b06763, 0x14152408, 0x26151716, 0x44e10126, + 0x1f322f3b, 0x3c391f25, 0xb605787a, 0x26264639, 0x11111a1b, 0x152e1913, 0x8b731f4c, 0x8313205d, 0x3f07295d, 0x02004f00, 0x3f0e0300, 0x2006176e, + 0x6e5d8503, 0x7c4a060d, 0x06a44808, 0x78d30225, 0x48393c7a, 0x05280857, 0x1f734db6, 0x192e154c, 0x2e0b1548, 0xfe290008, 0x05c107c1, 0x00130091, + 0x823b0027, 0x0063265f, 0x008b0077, 0x567c829f, 0x07290565, 0x33363623, 0x17021e32, 0x200f8e03, 0x200f8e01, 0xbf0f8e21, 0x6f04351f, 0x2e241803, + 0x212f1e19, 0x054b0314, 0x4d316764, 0x4f031e36, 0x01231392, 0x821703f4, 0x2f1f2728, 0x4c031321, 0x28856505, 0x922ffb21, 0x31042114, 0x29951492, + 0x6882f020, 0x82192d21, 0x277c8453, 0x364c3168, 0xbef9031f, 0x04313e92, 0x13231ccf, 0x23120506, 0x1c685a1e, 0xf92b4833, 0x270f87f2, 0x331d6959, + 0x16012b47, 0x0f821f88, 0x8d2b4821, 0xdb03210d, 0x0d8d0f8d, 0x8819fe21, 0x8368200f, 0x080d8d4b, 0x08000027, 0x7ffe2900, 0xd3057d07, 0x19000c00, + 0x33002600, 0x4d004000, 0x67005a00, 0x17050000, 0x2307030e, 0x0337033e, 0x20048227, 0x2a0c8233, 0x031e3701, 0x032e1517, 0x82070527, 0x82352004, + 0x3701210c, 0x27831a82, 0x82070121, 0x2127831f, 0x1a822703, 0x1a833720, 0x04821720, 0x042e2783, 0x1c0a0b37, 0x61122320, 0x1012150a, 0x0c8b3b05, + 0x0e230233, 0x57575526, 0x5b5d2a27, 0x68fb2557, 0x5755270e, 0x320c8556, 0x2202a603, 0x28565450, 0x4e4f2545, 0xeafc1e49, 0x884f2302, 0x112b330d, + 0x24272914, 0x3317430f, 0x03173234, 0x2814116a, 0x0d822527, 0x32343424, 0x428a2316, 0x8a980421, 0x16fe215c, 0x01228498, 0x4f8210aa, 0x440f2522, + 0x16224f83, 0x0d8b95fc, 0x83de0221, 0x28552286, 0x20868546, 0x878683e9, 0x004f080d, 0xfec90002, 0x07d3057f, 0x001b0068, 0x40b30031, 0x301c1c48, + 0x26d00126, 0xcf26af01, 0x26200226, 0x26802630, 0x17262603, 0x1a1a190a, 0x07151b18, 0x65175a00, 0x0133d033, 0x200133af, 0x02333033, 0x5a0c0813, + 0x26326409, 0x1c011c9f, 0x82090640, 0x8e2c2d3e, 0xfb1a0521, 0xe8ffb813, 0x481814b3, 0xe0340782, 0x130a2640, 0x16130648, 0x03132613, 0x5f171309, + 0x18061200, 0x06211a82, 0x37168220, 0x06190609, 0x07030629, 0x030a1606, 0x33333f00, 0x2b2b5d5e, 0x3333e13f, 0x07820683, 0x5d2b2f2e, 0xf6100133, + 0x5d3232e1, 0xf4105d5d, 0x33280782, 0x332f3933, 0x2f391211, 0x71311082, 0x30312f33, 0x36341121, 0x23373637, 0x33112301, 0x91841811, 0x03332b09, + 0x0e031323, 0x2e222303, 0x41182702, 0xae0807ac, 0x04056404, 0xfd080604, 0x01aed731, 0x04010303, 0xcc020703, 0xda8fc3d5, 0x31069da6, 0x67648d5d, + 0x042a588c, 0x321c04aa, 0x492b354c, 0x03062237, 0x418f3819, 0x46fb4d4c, 0xe0fcb605, 0x44433e1a, 0x044c4a1f, 0xfdf0fab4, 0x078101d9, 0x50774d68, + 0x774f2729, 0x29483950, 0x472c1210, 0x02000035, 0x83feae00, 0x1706f204, 0x25000f00, 0x3a409600, 0x1a041010, 0x1a841a34, 0x1a1a0703, 0x0e0d050b, + 0x090c0f0e, 0x48180910, 0x46000209, 0xa427550b, 0xd427c427, 0x0427f427, 0x02012780, 0x27102700, 0x27502720, 0x27702760, 0xffb80306, 0x822540f0, + 0x08033f29, 0x54044607, 0x107f1a26, 0x06401001, 0x10104809, 0x11158e20, 0x0209fb0e, 0x600b0f05, 0x2a5f0408, 0x3fe12405, 0x413f3333, 0x2b220c2d, + 0x2f415f5d, 0x412b2006, 0x5e210830, 0x052e415d, 0x23011329, 0x07113311, 0x41113301, 0x032f1323, 0xfefd0b8f, 0x020cacea, 0x7bb7e904, 0x41477ab6, + 0x76181419, 0xfd2e076d, 0x9803fc64, 0xe9fd50fc, 0x17067d01, 0x4218764e, 0x123609f1, 0x0035482c, 0x002f0002, 0x05330400, 0x001600b6, 0x40520021, + 0x096a132c, 0x06e66908, 0xd2690e20, 0x00892108, 0x2009cc69, 0x0ecc6903, 0x6908da68, 0xc06905c6, 0x06d76815, 0x210bc069, 0xc0698101, 0x9898260a, + 0xfe3b01ba, 0x14be69c5, 0x69b2b221, 0xb58209bc, 0x00001228, 0x14061904, 0xb5821400, 0x40613d08, 0x0e01013b, 0x5708471c, 0xbf236f23, 0xff23df23, + 0x00030423, 0x11124716, 0x1522540e, 0x0f030450, 0x12001250, 0x24074004, 0x01120f48, 0x121f120f, 0x12040702, 0x00131204, 0x150e5016, 0x2109916a, + 0xc5872b71, 0xc4f61027, 0x3232e133, 0x26cc825d, 0x312f3912, 0x82210130, 0x692120b3, 0x11200d9f, 0x25099d69, 0x17016401, 0x9f69e9fe, 0x9c9c2309, + 0x9b6901b6, 0x21053a08, 0x9ceffd89, 0x587c4d9b, 0x8998042f, 0xfedafbf3, 0x422911a8, 0x28423130, 0x20c78211, 0x36c782c7, 0x00b60533, 0x00220013, + 0x1b4f4088, 0x1a061a05, 0x07190818, 0x82190607, 0x0c4a0801, 0x00285b1e, 0x00480038, 0x24670003, 0x400124cf, 0x240f0124, 0x0c140601, 0x23640d5a, + 0xaf1b1819, 0x1a1a011a, 0xb0062214, 0x07070107, 0x1408050c, 0x400b3060, 0x0b0b020b, 0x0e60220c, 0x00120c03, 0x11e13f3f, 0xe15d2f39, 0xc7823939, + 0x93435d20, 0x39392105, 0x2205ae43, 0x825d5d5e, 0xe15d27e0, 0x2f393912, 0x1b83112f, 0x74323921, 0x142b064c, 0x1707020e, 0x23062707, 0x82231123, + 0x1e4f08e6, 0x32330102, 0x37273736, 0x35363617, 0x23232634, 0x2f163304, 0x6a6e364b, 0x967c5d81, 0x866a01ba, 0xfd3c7ec2, 0x4426814e, 0x706d5c1f, + 0xaea43433, 0x3a0a04a0, 0x2056646f, 0x1bb64e9b, 0xb605c7fd, 0xfea06d39, 0x85050567, 0x7324a04c, 0x82898e57, 0xae4b08f7, 0x3f0414fe, 0x23005e04, + 0x72003900, 0x35344040, 0x2a333332, 0x1f1f1e20, 0x2a214837, 0x303b571b, 0x102a013b, 0x540d470c, 0x3235333a, 0x1f340f2f, 0xcf346f34, 0x34070434, + 0x50242f34, 0x0e101610, 0x20201f0f, 0x211b0c00, 0x51502f1e, 0xe3820586, 0xe4823f20, 0x3f3f3323, 0x21f38333, 0xd7825d5e, 0x3220e885, 0x1127e682, + 0x2f39e139, 0x82113339, 0x33392e04, 0x22053031, 0x2327022e, 0x16161716, 0x28e18215, 0x3e331733, 0x1e323303, 0x64011902, 0x22032408, 0x4c07020e, + 0xf78505bc, 0xad08f682, 0x603b9e02, 0x0c163c4d, 0x04020303, 0x081a94b6, 0x604d3b16, 0x6e995e3c, 0x6d525a3c, 0x411f756a, 0x41694c46, 0x411b021f, + 0x2111516c, 0x6e6d6a0f, 0x19147f54, 0x22203a2c, 0x10371a1f, 0x36062bfe, 0x2d3e2294, 0xd48f481b, 0x44f2af8c, 0x09a64e9a, 0x2edb030b, 0x295e8d5e, + 0x376b9d65, 0x4c980503, 0xd0ee6a9e, 0x010000ce, 0x00002f00, 0xb605be03, 0x89000d00, 0x051f1540, 0x0502052f, 0x000f0805, 0x9002001f, 0xe000a000, + 0xb8000300, 0x1e40c0ff, 0x00480a07, 0x0f1f0f00, 0x0f9f0f3f, 0x03040fbf, 0x000c5a07, 0x0a06010a, 0x08c00880, 0x22830802, 0x0a062632, 0x09060848, + 0x0c0f035f, 0x0c3f0c2f, 0x0f040c4f, 0xaf300682, 0xff0cdf0c, 0x0c08050c, 0x5f02070c, 0x1207030d, 0x08ee4418, 0xe133712a, 0x2b2f0132, 0x5d5ec65d, + 0xcf4d0982, 0x12712b05, 0x315d2f39, 0x21150130, 0x5b182111, 0x0337084f, 0x01c3fdbe, 0xbab0fe50, 0xb6059898, 0xa215fea6, 0x83027dfd, 0x839102a2, + 0x821220bd, 0x040a22bd, 0x3ebd824a, 0x0b1d406e, 0x0620000b, 0x06020630, 0x0f700f06, 0x0fc00fa0, 0x470d0903, 0xef02df04, 0x83020202, 0x12b323c5, + 0x07834815, 0x21402208, 0x00480b06, 0x094f010c, 0x045f044f, 0x17400402, 0x040b481c, 0x0702041b, 0x08000404, 0x000f0550, 0x20a58815, 0x829c832b, + 0xc62b21a6, 0x5d20a587, 0x3125a382, 0x23113330, 0x051e6e35, 0xae3ca883, 0x5c029c9c, 0x17015afe, 0xe101e9fe, 0x9ae00189, 0xfe89bafe, 0x0001001f, + 0x0400fec7, 0x3408b582, 0x66002600, 0x15094140, 0x07070701, 0x125b2205, 0x0128c028, 0x288f287f, 0x40281002, 0x1c1c0228, 0x055a040a, 0x201d2764, + 0x001c175f, 0x2f0d0f60, 0x030d3f0d, 0x2d04820f, 0x0dff0ddf, 0x0d0d0804, 0x065f0905, 0x3b410503, 0x4fe1200a, 0xf1290506, 0x5d2fc032, 0xde105d5d, + 0x299484e1, 0x015d5e00, 0x11070622, 0x94831123, 0x08059f4a, 0x0e141556, 0x2e222302, 0x16352702, 0x11203316, 0x01022e34, 0x1a3c25fc, 0xfdf702ba, + 0x2d471dc3, 0x57a5f09a, 0x76c99252, 0x3d444e31, 0x487f3f1f, 0x7b437701, 0x058302ae, 0x0587fd05, 0x0bfea6b6, 0xab5c0305, 0xf8aa97f2, 0x0c064fa2, + 0x17a20c13, 0x79ef0118, 0x00407eb9, 0x4a08db82, 0x030afeae, 0x004a04c5, 0x405c0023, 0x19220939, 0x03222922, 0x0a121414, 0x0f251f48, 0x02251f25, + 0x257f255f, 0x030325ff, 0x47111703, 0x04245412, 0x0b510d00, 0x021a1b1a, 0x121a1a07, 0x0f135016, 0x51071512, 0x3f001b00, 0x5d3f3fe1, 0xe9210580, + 0x05424311, 0x5d2f3923, 0x82d28871, 0x842620d1, 0x363225bb, 0x23263435, 0x3b08de93, 0x6a4b2902, 0x426a2b2e, 0x9d907576, 0xb61f3e1a, 0x5afe5c02, + 0x661f3b1d, 0x404c85b3, 0x0afe966f, 0x18a11d1f, 0xd4d2c325, 0xfe080aca, 0x9a4a0435, 0x0505c3fe, 0x9ddb8a3e, 0x4088d596, 0x043cc782, 0xcb067ffe, + 0x1500b605, 0x5740e200, 0x18144011, 0x09201148, 0x110a4813, 0x0002111a, 0x00200e83, 0x003c0e84, 0x0702001a, 0x020d0d10, 0x0a0a075a, 0x03b803a8, + 0x01039902, 0x5701038d, 0x77036703, 0x5e08e582, 0x06120303, 0x100f0e00, 0x180c400f, 0x0f110f48, 0x12045a15, 0x84127401, 0x0312c412, 0xc0ffb812, + 0x0a072740, 0x17121248, 0xf0011704, 0x17e40117, 0x0117a001, 0x30172002, 0x70176017, 0x05179017, 0x0801170f, 0x08050809, 0xf0ffb806, 0x06061340, + 0x0dfb1316, 0x0f000a0a, 0x11030b08, 0x6803055f, 0xe135054e, 0x1233333f, 0x3f331139, 0x2f330111, 0x11333338, 0x5d5d5e33, 0x06b25b5f, 0x715d2b30, + 0x2f3333e1, 0x3233382b, 0x2f391211, 0x00825d5f, 0xe1212182, 0x33258332, 0x2b5d2b2b, 0x2130312b, 0x11231101, 0x01012301, 0x33110133, 0x08824482, + 0x053c1082, 0xb3eefdae, 0x02d3eefd, 0xcdedfd21, 0x02b30a02, 0xedfdcd0a, 0xb0c3a801, 0x1bfde502, 0xf2240384, 0x3cfdc402, 0x2e080387, 0xd9fdb4fd, + 0x00008101, 0xfe040001, 0x04040683, 0x0115004a, 0x276c4011, 0x02103710, 0x0e390e29, 0x36092602, 0x0a270209, 0x27020a37, 0x86043704, 0x37012304, + 0x5e410201, 0x0d10371d, 0x0746020d, 0x03cd0a0a, 0x0103b901, 0x960103a9, 0x03870103, 0x5a410301, 0x410a2009, 0x4628055a, 0xc0ffb812, 0x481512b3, + 0x40380783, 0x480b0717, 0x10171212, 0x17000117, 0xf417e401, 0x17b40217, 0x170217c4, 0x402f2382, 0x48110d13, 0x02011730, 0x0f011720, 0x41070117, + 0x0f241560, 0x03056011, 0x41093949, 0x2b251260, 0x71715d5d, 0x05bf6211, 0x200e6141, 0x0662415d, 0x61415d20, 0x5d002406, 0x835d015d, 0x156a4100, + 0xfef0043c, 0x44fea443, 0xfecf01cf, 0x9f01c558, 0xc5a001a4, 0x4f0158fe, 0x2d02aec5, 0x0384d3fd, 0x15023524, 0x0387ebfd, 0x65fe2a08, 0x7d01e9fd, + 0x4800ffff, 0xec0342fe, 0x2602cb05, 0x0000b101, 0x7f030701, 0x00004801, 0x01b11100, 0xffffb801, 0x134248b4, 0x06b35c0b, 0x44202b82, 0x52222b82, + 0x2b825e04, 0x2b85d120, 0x88f20021, 0x82f8202b, 0x2129212b, 0x24082b86, 0xc7000100, 0xec047ffe, 0x1000b605, 0x5940a600, 0x18144005, 0xcd05bd48, + 0x0305dd05, 0x10092005, 0x2a051a48, 0x05044305, 0xcd00bd27, 0x0300dd00, 0x3c158400, 0x02002a00, 0x08101006, 0x7f100f0e, 0x020f9f0f, 0x0f300f00, + 0x06030f40, 0x04050f0f, 0x3a72825a, 0x07020110, 0xb0120101, 0x080c0112, 0x1164095a, 0xf0ffb80c, 0x100b1640, 0x82100648, 0x060c3a04, 0x030a0f09, + 0x05055f00, 0xfb021209, 0x333f3f00, 0x333fe12f, 0x2b393912, 0x08af6d2b, 0x335d5e2a, 0x2f3332e1, 0x385d5d5e, 0x11231982, 0x852b5d33, 0x30312901, + 0x23113325, 0x07012311, 0x333f0582, 0x33013711, 0xb7350401, 0x3dfe6cb1, 0x79baba8b, 0xfdd1c401, 0xd9fda6f8, 0xba028101, 0x19b8fd72, 0x2f091e2d, + 0xfeae0001, 0x042b0483, 0x000e004a, 0x086a4099, 0x0826e784, 0x08dd08cd, 0xd1840803, 0x082a0824, 0x15840302, 0x03cd0326, 0x030303dd, 0x3f081584, + 0x02032a03, 0x00460708, 0x86017601, 0x016d0201, 0x01015501, 0x013b012b, 0x1403014b, 0x010b0101, 0x01030601, 0x04100400, 0x10040402, 0x470a020e, + 0x090f540b, 0x000e0e02, 0x0850030b, 0x0cfb0515, 0x2105ca60, 0xc284e13f, 0x2505dc44, 0x2f331132, 0x066c335d, 0x5d5d2205, 0x89e58211, 0x20cc82da, + 0x84dd8501, 0xfa0238dc, 0x0161fec4, 0x66aec14b, 0xb4b44bfe, 0xf1fd4a04, 0xe9fd5ffe, 0x18027d01, 0x08093781, 0x0000c748, 0xb605a204, 0x97001200, + 0xff0f00b9, 0x125d40e0, 0x0f504815, 0x22020f60, 0x420f320f, 0x4002030f, 0x0b480d09, 0x34085a07, 0x02125412, 0x03570f12, 0x1d0c0301, 0x040b0104, + 0x00040401, 0x10136408, 0x00011111, 0x02820010, 0x07022008, 0xb0140000, 0x142f0114, 0x01141001, 0x0809050b, 0x04300420, 0x04030440, 0x100d040d, + 0x82080309, 0x323f2e65, 0x3939333f, 0x115d2f2f, 0x01393912, 0x08c0835d, 0x5d5e2f24, 0x11333338, 0x11e61033, 0x5d5d2f39, 0x325dc133, 0xe1105d32, + 0x00303132, 0x2b5d5d2b, 0x15012321, 0xad411123, 0x33112206, 0x08e38215, 0xd3a2043c, 0x7785aefe, 0x8577baba, 0xfdd14101, 0xcdf401f8, 0xfd626401, + 0xfdb605d7, 0x6301a406, 0xfda601b3, 0x00010065, 0x040000ae, 0x004a0423, 0xb59c0013, 0x110b4011, 0xffb80a48, 0x0782b3c0, 0xb80e5208, 0x5740f0ff, + 0x0e480d08, 0x0112260a, 0x13890712, 0x13a91399, 0x2f131f03, 0x03133f13, 0x1301130b, 0x02060f13, 0x14540347, 0x100c0c0b, 0x0f20100f, 0x0f020f30, + 0x1500150f, 0x00021510, 0x60154015, 0xa0158015, 0xe015c015, 0x0e070715, 0x0806060d, 0x2b018213, 0x0f040b02, 0x00150210, 0x333f333f, 0x2f2ddc82, + 0x1139122f, 0x5e013333, 0x3311715d, 0x22e2862f, 0x4e32e1f6, 0xe5840568, 0xe2832b20, 0x27012b28, 0x33112311, 0xdb823711, 0x01331324, 0xef830115, + 0xcf012708, 0x6db4b46d, 0xfec5eb7d, 0xcfd70150, 0x017df8fe, 0xd3fd7bb2, 0xebfd4a04, 0xb946017b, 0x16fe0d01, 0x01e9fd49, 0x7f49cd27, 0x04270805, + 0x00b605a2, 0x40850014, 0x66140240, 0x13140114, 0x500e4004, 0x0e0e020e, 0x040c1000, 0x0507095a, 0x13121564, 0x41131310, 0x163b0aa7, 0x2f0116b0, + 0x16100116, 0x5f060f01, 0x0009090c, 0x100b1002, 0xffb81048, 0x830c40f0, 0x05022508, 0x05030a12, 0x8206b041, 0x2b2b21cd, 0x3322b782, 0xb24132e1, + 0x382f250b, 0xc6f61033, 0xd3841482, 0x39121128, 0x3133115d, 0x5a432130, 0x053d4d05, 0x23153322, 0x2a056243, 0x3dfed3a2, 0x9898ba8b, 0x43d5d5ba, + 0x02310564, 0xb8fd72ba, 0xb2a46004, 0x7bfea4b2, 0xfd3302a8, 0x08cb8283, 0x00001222, 0x1406f003, 0x84001600, 0x0e110f40, 0x08040f0e, 0x47130309, + 0x01060014, 0xc0ffb806, 0x481510b3, 0x3a080783, 0x0e093540, 0x0f060648, 0x54140116, 0x100d0c17, 0x35100f0d, 0x0f00010f, 0x0f200f10, 0x0f0f0803, + 0x01180f18, 0x14021109, 0x15070f14, 0x0101044f, 0x0c150f02, 0x0000020f, 0x853f3f3f, 0x053f4cc5, 0xaf820120, 0x21052044, 0xc9821133, 0x82c63221, + 0x2b2b281c, 0x17e11071, 0x83391132, 0x33132fca, 0x21153335, 0x03112115, 0x33013733, 0xd9860101, 0x9c122e08, 0xfe7b01b4, 0x87041085, 0xfed32501, + 0xd1ac016f, 0xb46db0fe, 0xb65e059c, 0x75fe89b6, 0x01aaedfe, 0xfd25fe69, 0x52f80191, 0xd5045afe, 0x3dd78200, 0x05000014, 0x00b60544, 0x4057000e, + 0x0e0e0233, 0x5a040a0d, 0x05300520, 0x05800540, 0x008205f0, 0x0c070024, 0x9e410d0d, 0x10102a0a, 0x0a020110, 0x5f070c05, 0x07854108, 0x1233e124, + 0xb2863939, 0x82333821, 0x822f20b1, 0xe15d21ae, 0x7541aa86, 0x35212306, 0xaa831121, 0xd344052a, 0xbb8b3dfe, 0x0f02acfe, 0x240a6e41, 0xfda41205, + 0x076b4125, 0x00294008, 0x04c90400, 0x000d004a, 0x02404067, 0x060b0d0d, 0x01070047, 0x07100700, 0x07600720, 0x080507c0, 0x09030707, 0x01d50100, + 0x010201f5, 0x00100304, 0x02031003, 0x400f0303, 0x020fe00f, 0x82010f0f, 0x09072733, 0x0f0a0050, 0xf4420307, 0x12e12705, 0x01331139, 0xee425d5d, + 0x82078306, 0x5d5e29a2, 0x3232e171, 0x30313311, 0x22054241, 0x82112311, 0x076908a5, 0xc5dd0311, 0xc70160fe, 0xb54cfecf, 0x1f0298fe, 0xfd4a0402, + 0x02c5fdf1, 0x03d3fd2d, 0xfd029ab0, 0x010000ed, 0x7ffee500, 0xb605a405, 0x63000f00, 0x5a043f40, 0x74010104, 0x94018401, 0x01010301, 0x5a050d11, + 0x11e41100, 0xc00211f4, 0x10020111, 0x40112011, 0x04118011, 0x095a080c, 0x5f071064, 0x08010c0f, 0x0e050c0c, 0x21c3820a, 0x2646055f, 0x33e12305, + 0x9184333f, 0x2646e120, 0x5d5f2605, 0xe1dc105d, 0x21af8332, 0x1846e171, 0x6e112007, 0x112d06a0, 0xb0f40433, 0x67fdbbb0, 0x9902bbbb, 0x051346bb, + 0x676eaa20, 0x68022105, 0xae269b82, 0xdb0483fe, 0x9b824a04, 0x5240793a, 0x04470008, 0x0b0b010b, 0x0cc4470f, 0x0c020cd4, 0x1104110c, 0xd4021124, + 0xb0209e83, 0x30209e82, 0x50209c82, 0x26089e82, 0x11a01190, 0x47030706, 0x0d105404, 0xeb5002fb, 0x07a90107, 0x0f0207b9, 0x2f071f07, 0x07060307, + 0x05090007, 0x51500b0f, 0xe1200585, 0x5d23ad86, 0x883fe15d, 0x837120b0, 0x33e128ad, 0x32e15d2f, 0x89213031, 0x33112fac, 0x03112311, 0xb6dffd85, + 0xb62102b6, 0xe572b6a0, 0x054d5109, 0xe536b182, 0x48060000, 0x0d00b605, 0x3b405d00, 0x005a0109, 0x0b400500, 0xb782e001, 0x43200f21, 0x2108053e, + 0x0f400f30, 0x0fa00f60, 0x0fe00fb0, 0x04080608, 0x0e64055a, 0x0a0a5f0d, 0x0f5f0306, 0x08080108, 0x8d420608, 0x2f392407, 0x82e15d5e, 0x0549418a, + 0x715d5e29, 0x715dc610, 0x842f3911, 0x88232095, 0x15212496, 0x41f40421, 0x02240643, 0x02acfe0f, 0x21084141, 0xa14500a4, 0xa4052305, 0x91824a04, + 0x21406833, 0x05470408, 0x00470109, 0x54050b00, 0x0f0b0b0e, 0x21958200, 0x8b829002, 0x0fc03208, 0x0ff00fd0, 0xffb80f05, 0x071f40c0, 0x5003480c, + 0xa90108eb, 0x0208b908, 0x081f080f, 0x0603082f, 0x0d000808, 0x050f060a, 0x3f001500, 0xc4333f32, 0x249e8312, 0x01e15d5d, 0x2394822b, 0xe6102f33, + 0x10209984, 0x3b219c92, 0x053141b6, 0xfe1f0223, 0x09324197, 0x9b829a20, 0xfec72e08, 0x05db0700, 0x002700b6, 0x093a405f, 0x1207010b, 0x5a200012, + 0x18252121, 0x6f29085b, 0x5a240129, 0x1d286425, 0x2f030f60, 0x03033f03, 0x3c04820f, 0x03ff03df, 0x03030804, 0x265f2325, 0x12252103, 0x0d5f1613, + 0xe13f001c, 0x3f333f33, 0x299284e1, 0x1001e171, 0x105de1f6, 0x9084e1de, 0x312f3927, 0x5d5e0030, 0x17684d01, 0x07222323, 0x054b4111, 0xc1042129, + 0x9a2e491e, 0x4d56a5f0, 0x4335056b, 0x7e3f1f3d, 0x43770149, 0x4b6bae7c, 0x7bfdbb33, 0x03fa03ba, 0x166b4d1b, 0x89fd0c26, 0xeefa1205, 0x5808cb82, + 0xfeae0001, 0x0475060a, 0x0024004a, 0x0b4e4077, 0x02231b23, 0x11190303, 0x01120247, 0xa60112c2, 0x0212b612, 0x12871277, 0x16121202, 0x2620480a, + 0x261f260f, 0x5f264f02, 0xff26af26, 0x26100426, 0x16471501, 0x510d2554, 0x1b1b1b0b, 0x1b1b0702, 0x17501416, 0x1516120f, 0x06884d04, 0xe885e989, + 0x85715d21, 0x5d5d25ea, 0x32e1715d, 0x8e4dee84, 0x18e68415, 0x2108444c, 0x8f4dd904, 0x3e1c2a09, 0x08feb61f, 0x3a6403b6, 0x158f4d3f, 0xfcb00328, + 0xfe4a0450, 0x914d0c27, 0x02660808, 0xacff7d00, 0xcd059605, 0x52003e00, 0x50407a00, 0x32104e05, 0x5b490004, 0x20102000, 0x35203502, 0x5b3f1820, + 0x0f546700, 0x4f541f54, 0x7f545f54, 0xaf549f54, 0x2b070754, 0x5366185b, 0x054e6044, 0x3a103a00, 0x3a603a20, 0x3a803a70, 0x073a3a06, 0x1d215f26, + 0x30321004, 0x5f07135f, 0x13130e0e, 0x2f333f00, 0xd08210e1, 0xe1333f28, 0x5d2f3912, 0xee843939, 0xa2185e20, 0x5d36083a, 0x391712e1, 0x14013031, + 0x1607020e, 0x37363233, 0x23060615, 0x04652722, 0x032e2110, 0x21097d6e, 0x4f632637, 0x34072308, 0x1887022e, 0x3e17ee08, 0x276f0503, 0x362d5541, + 0x1f462551, 0xa6264f1d, 0x3c7c328b, 0x519de896, 0xa6f29e4d, 0x35257842, 0x3330280a, 0x6ca97615, 0xa0703c33, 0x4f263064, 0x8360375b, 0x62854b4c, + 0x2a16c539, 0x3d29273d, 0x29181529, 0x422a1f36, 0xa602182e, 0x6f90af65, 0x0b0e1924, 0x620c0daa, 0xc06a1111, 0xb5a50e01, 0x69c71f01, 0x059c0f16, + 0x5105090a, 0x948dde9a, 0x074690da, 0x9b160169, 0x3b7bc185, 0x95c67b38, 0x36638954, 0x50876237, 0x65768548, 0x77622127, 0x02000088, 0xc5ff7100, + 0x5e04a404, 0x4d000d00, 0x49407900, 0x32110544, 0x48003f04, 0x21642154, 0x35213502, 0x48081921, 0x3f4a4a3f, 0x4f7b4f57, 0x4fbb4f8b, 0x6f4f5f03, + 0x4f1b024f, 0x014f0f01, 0x482a0207, 0x0b4e5619, 0x3a3a0544, 0x22502547, 0x3211101e, 0x4714502f, 0x140e0e50, 0x0a5a4116, 0x3912e92d, 0xc139392f, + 0xe1f61001, 0x825d5e5f, 0xe6102500, 0xe1102f32, 0x41053078, 0x1e210760, 0x06e55302, 0x01062223, 0x0d976422, 0x64661620, 0x3736270d, 0x34352626, + 0x3953023e, 0x020e2305, 0x99411607, 0x02920807, 0x2a2014dd, 0x38483915, 0x01413e3d, 0x3988454c, 0x75476228, 0x3c3f7ab3, 0x4279b478, 0x13291a52, + 0x70542a4a, 0x431e1c43, 0x3225506e, 0x314a3903, 0x40417255, 0x1e2e526f, 0x14274534, 0x391a1d37, 0x0142191c, 0x4b5c35f4, 0x96281239, 0x7a7a676b, + 0x252a68fd, 0x97571711, 0xd68375cc, 0x06105397, 0x3a100596, 0x5967a06f, 0x083c6b94, 0x77b44202, 0x2b59885e, 0x638a5627, 0x4d637846, 0x060d0a1b, + 0x07099308, 0x7d00ffff, 0x980442fe, 0x2602cb05, 0x754d2600, 0x2f022d05, 0x0e000000, 0x750101b7, 0x20182c32, 0x8205724d, 0xfe712a27, 0x046f0342, + 0x0026025e, 0x21278546, 0x27867101, 0x282e5224, 0x27850d05, 0x01005708, 0x7ffe1400, 0xb6051204, 0x6f000b00, 0x0d1f3940, 0x010de001, 0x0ddf0d5f, + 0x300d2002, 0x030d400d, 0x010f5a04, 0x0702011f, 0x0aaf0101, 0x0a020aef, 0x065a0b0a, 0x07e00740, 0x01070f02, 0x57070708, 0x77066706, 0xb8060306, + 0x0f40c0ff, 0x06480a07, 0x085f070b, 0x4b470003, 0xe13f3108, 0x2b2f0132, 0x5e2f335d, 0xe1105d5d, 0x395d2f32, 0xe1240982, 0x715d5d5d, 0x37094947, + 0x21152135, 0xb0b07102, 0x035efebb, 0xa65ffefe, 0x8101d9fd, 0xa4a41205, 0x0027b682, 0x0383fe29, 0x844a045e, 0xf04d399d, 0x0daf010d, 0x500d4001, + 0x0d2f020d, 0xaf470b01, 0xcf08bf08, 0x40080308, 0x33087882, 0x05df0808, 0x01059d01, 0x0501058f, 0x00470705, 0x02700260, 0x1f0302d0, 0x02020102, + 0x00100000, 0x00c000b0, 0xfb090004, 0x03500206, 0x0050070f, 0xe13f0015, 0x3f209c82, 0x0a568b18, 0x39209582, 0x9d83ab82, 0x30315d25, 0x83211121, + 0x33113898, 0x01112311, 0x03c1fe68, 0x9fc1fe35, 0x9ab003b6, 0xfdeafc9a, 0x6d7d01e9, 0x37270795, 0x0602b605, 0x83003c00, 0xfe0024ad, 0x82d50314, + 0x001336ad, 0x0a13407c, 0xa647000a, 0x01870101, 0x01020197, 0x12110301, 0x0c4e5010, 0x07204208, 0x1212480b, 0x0115f015, 0x15ef15df, 0x90155002, + 0x0315a015, 0x3001154f, 0x150f0115, 0xb8030401, 0x1040f0ff, 0x0f031103, 0x0a150a05, 0x0a130702, 0x1b001502, 0x333f3f00, 0x3f5d5e33, 0x382f0133, + 0x82b08233, 0x33112902, 0x382b2b2f, 0x2f391233, 0x2205ed72, 0x82013031, 0x333908b1, 0x17031e13, 0x37033e33, 0x02013313, 0x71feb746, 0x2010c7bc, + 0x0705141b, 0x201b1504, 0xfebcc710, 0x0114fe71, 0xfd4e04e8, 0x5e642ecf, 0x4f19194f, 0x022e645e, 0x00b2fb31, 0x21c98201, 0xd5820400, 0x10002e08, + 0x19409f00, 0x120112ef, 0x480c0940, 0x08040000, 0x090d095a, 0x77010996, 0x02098709, 0xc0ffb806, 0x18150d40, 0x06090b48, 0x030b0906, 0x05b36402, + 0xab383c08, 0x0f90010f, 0x010f1401, 0x1002010f, 0xef010210, 0x02d00102, 0x0102bf01, 0x4f010280, 0x02025f02, 0x00010214, 0x02070102, 0x0a071202, + 0x0d00045f, 0x1208010d, 0x0003010f, 0x823f333f, 0x333928c2, 0x011132e1, 0x855e2f33, 0x715d23db, 0xd6823338, 0xde825d20, 0x2f39172e, 0x5d2b2f2f, + 0x1033115d, 0x3d3932e1, 0xe8820a82, 0x01330123, 0x05c25515, 0x35212808, 0x33013521, 0x54011b02, 0x0142fec8, 0xbbd9fe27, 0x2601dafe, 0x02cb42fe, + 0xfce302d3, 0xfea43d83, 0xa45801a8, 0x41870333, 0x19310ba7, 0x15408500, 0x01170e0e, 0x02a60647, 0x97028701, 0x23008202, 0x10161507, 0x080cb277, + 0x0b072037, 0x1b161648, 0xdf011bf0, 0x021bef1b, 0x1b901b50, 0x4f031ba0, 0x1b30011b, 0x011b0f01, 0xffb80708, 0x071340f0, 0x000f0715, 0x0e054f03, + 0x07020e15, 0x1506170e, 0x07ac4101, 0x4132e121, 0xec8217ae, 0x3125c982, 0x23110530, 0x20c08211, 0x0bb44101, 0x0215212a, 0xf6feb746, 0x73fe0801, + 0x2910ba41, 0xfe890a01, 0x8963019d, 0xbe414a04, 0xb62b080e, 0x00010089, 0x047ffe00, 0x00b605b4, 0x4006010f, 0x010f4788, 0x03010948, 0x060b000f, + 0x0e070a05, 0x0b000c07, 0x080a0509, 0x820c080d, 0x09002112, 0x32081482, 0x0f0c0905, 0x0e060603, 0x01050a08, 0x05ba05aa, 0x05ea05ca, 0x050505fa, + 0x480e0b30, 0x015a0405, 0x0b100e0d, 0x0eab010e, 0x0ecb0ebb, 0x0efb0eeb, 0x82400e05, 0x0a0e2f19, 0x00aa0100, 0x00ca00ba, 0x00fa00ea, 0x2d830005, + 0x000e3e08, 0x01140104, 0x01010702, 0xe411d411, 0x0311f411, 0x020111c0, 0x11401120, 0xffb81102, 0x100b40c0, 0x110f4814, 0x0a0a0b01, 0xffb80807, + 0x081440f0, 0x27010628, 0x060c010c, 0x030a0d05, 0x09354407, 0x333f3328, 0x5d393912, 0x7c54015d, 0x2b5d2405, 0x4d5d5f5d, 0x33250586, 0x715d2b33, + 0x2403822f, 0xe1103338, 0x30078232, 0x3d391211, 0x1033172f, 0x04c00e87, 0xc08710c0, 0x2204820e, 0x8608c008, 0x82012005, 0x08cb5137, 0x08058f54, + 0x01330143, 0xb0b6fe03, 0xfe9efe77, 0xc501bc91, 0x01c65afe, 0xbe4e014c, 0xfda65bfe, 0x028101d9, 0x0285fd7b, 0xfdba02fc, 0xfd2f02d1, 0x0100004c, + 0x83fe2300, 0x4a041f04, 0x39010f00, 0x0d592540, 0x01035601, 0x3ab282b4, 0x48110e20, 0x29010c3d, 0x0c0b010c, 0x0c020c1b, 0x0008460b, 0x0d030603, + 0x8304010d, 0x714508da, 0xb5481815, 0x04990104, 0x6a0204a9, 0x8a047a04, 0x04450304, 0x06020455, 0x05040104, 0x02eb02db, 0xc90302fb, 0x02bb0102, + 0xa6029601, 0x02650202, 0x02850275, 0x5a024a03, 0x01020202, 0x05ef05df, 0x050305ff, 0x3a638240, 0x054b053b, 0x01052702, 0x051a050a, 0x44013402, + 0x01280201, 0x15010501, 0x82050201, 0x3b0f2406, 0x83070107, 0x0754088a, 0xc0ffb808, 0x0c074940, 0x11080848, 0x11801160, 0x11b01190, 0x11e011d0, + 0xdb0711f0, 0x0ec9010e, 0x010eba01, 0x0e750e65, 0x4a030e85, 0x020e5a0e, 0x0e010e09, 0x0f4b0f3b, 0x010f2802, 0x0f150f05, 0x0d030f02, 0x50070e01, + 0xfb09150c, 0x000f0104, 0x3f3f333f, 0x24054c4e, 0x5d5d5d2f, 0x068e43c5, 0x2f33112a, 0x5d2b332b, 0x2f393912, 0x15821683, 0x105d2b22, 0x07861c86, + 0x90412b20, 0x32e12106, 0x312a1d84, 0x5d5d0030, 0x13330101, 0x04563313, 0x232c0805, 0x01230101, 0xcf9ffe98, 0xfecffafa, 0xaa0f019d, 0xf4fe65ae, + 0x02cff2fe, 0xfe170233, 0xfd9a0166, 0xfd67fee9, 0x017d01e9, 0x004cfeb4, 0x33059f46, 0xb6056006, 0x94000f00, 0x5a010d40, 0x5a080404, 0xd0010510, + 0xf183fd82, 0x07444408, 0x05054812, 0x0111df11, 0x0f0111a0, 0x4f112f11, 0x04118f11, 0x200e1007, 0x500e400e, 0x800e600e, 0x0e0e060e, 0x0f095a00, + 0x2f0b1f0b, 0x6f0b5f0b, 0x060baf0b, 0x300b0b08, 0x50094009, 0x90098009, 0x83090509, 0x07112348, 0x2482480a, 0x0c025f30, 0x5f000403, 0xfb061209, + 0xe13f3f00, 0x3e5a3f32, 0x2f332206, 0x05bf465e, 0xd5825e20, 0x2f33112f, 0xe1715d2b, 0x31e12f33, 0x11212530, 0x21018233, 0x2f461123, 0x71022806, + 0xb0ba8502, 0x4606fcb0, 0x052106cc, 0x05b85f10, 0xa4120523, 0x26cd82a4, 0x0583fe29, 0x824a046d, 0xb68028cd, 0x0e0e470b, 0x820f4702, 0x0eb3237d, + 0x07834818, 0x0733402a, 0x0f0f480b, 0x1f110f11, 0xbf20ca84, 0x062ed882, 0xe0086007, 0x0308f008, 0x470a0808, 0x1a421f03, 0x00052a06, 0x60031003, + 0x04037003, 0x2fbd8403, 0x03481814, 0x0c500509, 0x0a0e0f06, 0x00150350, 0xbc87bd8f, 0x2b20ba83, 0x0120b985, 0xbb82b388, 0x0524c382, 0xb2fcb76d, + 0x2705e746, 0xa0b6f801, 0x7d0183fe, 0x2405ed46, 0x50fcb003, 0x3ebb8200, 0x057ffea6, 0x00b60531, 0x4063001d, 0x1b0d0b12, 0x041a020d, 0xa01d905a, + 0x1d1d021d, 0x83005a03, 0x2c2b0887, 0x00481007, 0x1f0f1f00, 0x1f2f1f1f, 0x1f5f1f4f, 0x1faf1f7f, 0x07081fbf, 0x640f5a12, 0x1a5f151e, 0x1b040a0a, + 0x5f1d0310, 0x84011204, 0x333f25a2, 0x332f3912, 0x8306184b, 0x07b44e9c, 0x11255d23, 0x26018223, 0x2223030e, 0x1835022e, 0x2008834f, 0x35098237, + 0xbab03105, 0x6163693a, 0x65925d31, 0x7b69ba35, 0x665e5a2d, 0xbe43ba38, 0x16563605, 0x310c1622, 0x02598b5e, 0x73d1fd47, 0x1e140a74, 0xfac60214, + 0x08bd82f0, 0x83fe9a23, 0x4a049e04, 0x61001c00, 0x090b1740, 0x092b091b, 0x00150703, 0x1c181847, 0x10190047, 0x03192019, 0x08c28319, 0x150e2522, + 0x1e191948, 0x1e5f1e0f, 0x1ebf1e7f, 0x0e051ecf, 0x1d540b47, 0x1015fb1a, 0x00060650, 0x180f0c16, 0x83063d48, 0x33e127ba, 0xf610013f, 0xba835de1, + 0xbb825d20, 0x3132e127, 0x215d5e30, 0x23b78a11, 0x023e3233, 0x3320b683, 0x0334ce82, 0x55502c48, 0x7a4e3a5e, 0xb8b62b52, 0x4d4c502d, 0xb7a0b62a, + 0x0baa9118, 0xae66fe28, 0x1d2b1c0f, 0x8f4fd501, 0xa6580808, 0x81040000, 0x1d00b605, 0x2e407000, 0x041b040b, 0x1d0f1c02, 0x0e140e04, 0x0e0e0702, + 0x5a171306, 0x701f6516, 0x021fa01f, 0x10011f2f, 0x5a09011f, 0x06700660, 0x06b006a0, 0xffb80604, 0x071640c0, 0x0e06480a, 0x131d0e10, 0x0c031d1b, + 0x1701015f, 0x17030714, 0x3f3f0012, 0x1726be84, 0x32322f33, 0xf648012f, 0x27c98206, 0x2f391132, 0xc1335d5e, 0x5d21c782, 0x0a7b4101, 0x33113325, + 0x83363611, 0x112329c7, 0x11070606, 0x21500223, 0x2c067f41, 0x7638850c, 0x42baba44, 0x01853977, 0x097b41fc, 0x58012108, 0x2209b4fe, 0xfac60219, + 0x1a56024a, 0xc9fe0b25, 0x9a000100, 0xfe030000, 0x1c004a04, 0x42406b00, 0x2308cd84, 0x1c0e1b07, 0x04010d50, 0x240d140d, 0x0d08030d, 0x1612060d, + 0x1e55155a, 0x1e601e10, 0x09031e80, 0x1d54065a, 0x28068b4a, 0x1c0d0f0d, 0x031c1a12, 0x25c6820b, 0x0f071316, 0xc68d1516, 0x8805f374, 0x23c585c4, + 0x30315d5e, 0x3320c889, 0x0e21c791, 0x058e412f, 0x7d062708, 0xb6335b2f, 0x325932b6, 0x2f6a017d, 0x01447354, 0xae66fea6, 0xe5fe2d01, 0x0123300e, + 0x01b6fbd5, 0x103323e9, 0xc58200ff, 0x08070f57, 0x5000173a, 0x07043640, 0x07020714, 0x650b5a0c, 0x5f192f19, 0x8f196f19, 0xaf199f19, 0xef19cf19, + 0x0919ff19, 0x02011910, 0x64175a16, 0x5f101518, 0x05100500, 0x17050502, 0x0300120b, 0x3923b983, 0x57e15d2f, 0x5d2005ae, 0x2505a675, 0x135d5e00, + 0xe84f1133, 0x11330806, 0x26341123, 0x020e2223, 0xc7231107, 0x62c373ba, 0x3565925d, 0x2d7b68bb, 0x38655f5a, 0xfdb605ba, 0x312d2daa, 0xfd598a5e, + 0x732f02b8, 0x1e140a75, 0x5139fd14, 0x2408052d, 0x4a041204, 0x3f001800, 0xff1400b9, 0x072240e0, 0x4700480a, 0xef1a5518, 0x1a10011a, 0x1a801a60, + 0x47090d03, 0x7494180a, 0x0a0f2107, 0x21050f51, 0x8b8e2f39, 0x11212b23, 0x227e8634, 0x60113311, 0x1122064c, 0xb7425c03, 0x42b62006, 0x6b0808c9, + 0x0fae9a01, 0xfe1c2c1c, 0xfe4a042b, 0x202f1f16, 0x73532f11, 0x005afe44, 0xff3d0002, 0x050606ec, 0x002b00cd, 0x40640036, 0x145b323e, 0x0f38670b, + 0x02381f38, 0x01222029, 0x0c312222, 0x1f70005b, 0x1fc01f80, 0x1f371f03, 0x4f31600c, 0x2b0f012b, 0x2bff2baf, 0x01250f03, 0x2b252b08, 0x5f110525, + 0x2c131a14, 0x0004055f, 0x333fe13f, 0x3905d84d, 0x715d5d5e, 0x0132e133, 0x325dd610, 0x2f3332e1, 0x105dc15d, 0x31e132f6, 0xa6830130, 0x1216162c, + 0x1e211515, 0x36323303, 0x88431537, 0x27eb0805, 0x34352622, 0x06333736, 0x33141506, 0x020e2201, 0x2e342107, 0x0a660102, 0x8ddd9c5b, 0x3e88d699, + 0x3f0725fc, 0x8070a974, 0x5b2a5bcf, 0x984c7c69, 0x095ca4eb, 0x0b129a8f, 0x670f069c, 0x955b8902, 0x0307416e, 0x8b562512, 0xf49a3903, 0xc56b5bab, + 0x45abebfe, 0x4786c27a, 0x0faa202c, 0x610a121a, 0x759bfdb3, 0x17422a7a, 0x61233e0f, 0x7e41f001, 0xb87578b9, 0x00004380, 0xff330002, 0x04b604ec, + 0x002c005e, 0x40840035, 0x2748312b, 0xff37571e, 0x37900137, 0x1f0237b0, 0x02377f37, 0x05481f30, 0x0108df0f, 0x00130808, 0x20051005, 0x05400305, + 0x05020550, 0x40c0ffb8, 0x48131028, 0x1f053605, 0x121b3050, 0x0f02122b, 0x0b1b0112, 0x0f020b2b, 0x1206010b, 0x220b120b, 0x1018502d, 0x00275122, + 0x323f0016, 0x12e13fe1, 0x4b2f3939, 0x3332053b, 0x100132e1, 0x715d2bc6, 0x5d2f3232, 0x32e110c1, 0x23415d5d, 0x22052506, 0x2627022e, 0x21090f41, + 0x29623316, 0x15340807, 0x33161621, 0x37023e32, 0x03030e15, 0x21070622, 0x03022e34, 0x82b36b35, 0x8e85044b, 0x06950912, 0x1b31310e, 0x98744c0e, + 0x6e9e635a, 0x054cfd3b, 0x57339799, 0x0e9b3819, 0x14598208, 0x81c78846, 0x27726f02, 0x3a0e153f, 0x6c312f22, 0x473e75a9, 0x716eb581, 0x130ab6c1, + 0x13a2121d, 0x0308121c, 0x44959cdb, 0x002c5071, 0x3d000200, 0x06067ffe, 0x2e00cd05, 0x72003900, 0x5a1b4640, 0x35221c1c, 0x670b145b, 0x1f3b0f3b, + 0x202c023b, 0x25250125, 0x005b0c34, 0x22802270, 0x220322c0, 0x600c223a, 0x012e4f34, 0x2e3f2e0f, 0x0f032eaf, 0x2e080128, 0x05282e28, 0x6011141a, + 0xfb1b121d, 0x062b422f, 0x33e13f22, 0x42056159, 0x1222162d, 0x31422f39, 0x11072516, 0x032e1123, 0x2a2a3342, 0x64584e25, 0xc480b63a, 0x42084d8a, + 0x0e2d2634, 0x020b1117, 0x730191fe, 0xebb06d10, 0x133a428e, 0x00027508, 0x0483fe33, 0x005e04b6, 0x0036002d, 0x04304092, 0x0b050547, 0x242d4832, + 0x38ff3857, 0xb0389001, 0x381f0238, 0x3102387f, 0x150b4825, 0x0e010edf, 0x0b00190e, 0x0b200b10, 0x500b4003, 0xb80b020b, 0x2b40c0ff, 0x0b481310, + 0x50250b37, 0x2b181b31, 0x180f0218, 0x2b111b01, 0x110f0211, 0x11180601, 0x2e281118, 0x28101e50, 0x06032d51, 0x00fb0416, 0x33333f3f, 0x41244342, + 0x25220539, 0x28410606, 0x1d4c4206, 0x49420120, 0x85042a06, 0xb64c8042, 0x38638954, 0x1c4d4203, 0x7283fe36, 0xec010b85, 0x3559391b, 0xfe042320, + 0x11750195, 0x6fb28454, 0x21195242, 0x4d42f002, 0xff3a0806, 0x005200ff, 0x05640200, 0x000602b6, 0xff00002c, 0x000400ff, 0x07810600, 0x01260269, + 0x010000b0, 0x00360207, 0x005201f4, 0x010b4013, 0x01260517, 0x11121c00, 0x2b01250a, 0x02820035, 0x05232d85, 0x821706be, 0x86d0202d, 0x0093212d, + 0x09af8e18, 0x0e212d82, 0x202d8707, 0x05756300, 0x05e14308, 0x002500b6, 0x1b3f4067, 0x5b21051b, 0x100a0911, 0x180c400a, 0x040a0a48, 0x27102711, + 0x0b022740, 0x5a040808, 0x1f266405, 0x1c161c5f, 0x60000308, 0x0c5f0c2f, 0x0cff0cef, 0x10400c04, 0x0c0c4815, 0x73630905, 0x12332906, 0x5d2b2f39, + 0x3f3333e1, 0x23050f49, 0x5d331132, 0x2905ca71, 0xe1103338, 0x312f3911, 0x97620130, 0x11332405, 0x52013301, 0x756307a1, 0x46022c0d, 0xba285c41, + 0xcf3502ba, 0x5606d1fd, 0x7f370d09, 0x43770148, 0x6f02ae7c, 0xb0fd0e11, 0x3cfdb605, 0x58fdc402, 0x63eca355, 0xb3220e76, 0xdb823a76, 0xfeae5408, + 0x04e9030a, 0x0023004a, 0x0b474072, 0x02081b08, 0x1f102322, 0x23230123, 0x0d0d051d, 0x0548141e, 0x01250f25, 0x256f255f, 0x259f257f, 0x25df25bf, + 0x000725ff, 0x471d2121, 0x2124541e, 0x0b51191c, 0x02001b00, 0x1e000007, 0x1e0f1f22, 0x0e511115, 0x82001b0a, 0x057648d8, 0x825d5e21, 0x100123e6, + 0xe383e1f6, 0x2006fd55, 0x29fe8211, 0x31333871, 0x015d0030, 0x4f64031e, 0x09926305, 0x63022e21, 0xfb830693, 0x2b022908, 0x4578a35e, 0x57966f3f, + 0x2c2f694c, 0x75764369, 0x4e724a23, 0xb4295520, 0xc49801b4, 0x40056a02, 0x9694d084, 0x1f4088d5, 0x2d059263, 0x2d60976a, 0x50fe0d10, 0x0afe4a04, + 0xdd82f601, 0x7ffe0026, 0xb6055605, 0x3a08dd82, 0x0207b173, 0x40f8ffb8, 0x48171446, 0x18895a02, 0x18101801, 0xb4011de0, 0xd41dc41d, 0x1d00031d, + 0x07021d50, 0x0f1f1d1d, 0x00222221, 0x1f20235a, 0xc0259025, 0x0325f025, 0x821f250f, 0x080333f9, 0x02fb210f, 0x13031d5f, 0x1f130c60, 0x0012005f, + 0x0184e13f, 0x5e2f012a, 0xd4105d5d, 0x39e13232, 0x8205356c, 0x335d2f0e, 0x2be15d38, 0x21303132, 0x030e2111, 0xbc7e0e07, 0x3636250c, 0x21371212, + 0x2a05196b, 0x0f85fed9, 0x10212120, 0x184f3514, 0x2c120ab8, 0xd98fc3d0, 0x711205a5, 0x51d4ebf5, 0xf9b71867, 0x056e4c12, 0xe5820020, 0xfe104108, + 0x04660483, 0x0018004a, 0x02384058, 0xe412d446, 0x12600212, 0x12a01270, 0x340412b0, 0x12120112, 0x1717160a, 0x15184700, 0x201a5514, 0x021ab01a, + 0x08011a0f, 0x02fb160a, 0x0d0f1250, 0x1416074f, 0x8306e84a, 0x20d185d3, 0x25d186f4, 0x5d5d2f39, 0xca84e15d, 0xa0180220, 0xc4840ff8, 0xfefa0239, + 0x5f4014fe, 0x311c5682, 0x371c1610, 0x12334559, 0x7ab65402, 0x18037bb7, 0x250f00a1, 0xe9fd50fc, 0xaf837d01, 0xfee53b08, 0x05f40400, 0x001b00b6, + 0x052b404b, 0x0c141005, 0x1d65175a, 0xbf011dc0, 0x1d20011d, 0x5a0f1301, 0x0e1c6410, 0x01130f5f, 0x10131308, 0x10031115, 0x065f0912, 0x3f001c00, + 0x5742e132, 0x10012208, 0x06eb46f6, 0x4332e121, 0x2e210633, 0x07d96502, 0x11211125, 0x82331123, 0x11332605, 0x02020e14, 0x078e66d1, 0xfdc6bb22, + 0x2405c05b, 0xfec99252, 0x06826600, 0x02f7f023, 0x07c95b1f, 0xaaddfa25, 0x434fa2f8, 0x04230517, 0x824a043b, 0x406924a3, 0x8203031a, 0x473408a3, + 0x001d5517, 0x021d201d, 0x1d401d30, 0x1dd01d50, 0x1d051df0, 0x40c0ffb8, 0x48110e28, 0x10470f13, 0x500e1c54, 0xa90113eb, 0x0213b913, 0x131f130f, + 0x0603132f, 0x0f25bf84, 0x51071510, 0x8a4a8204, 0x1d4418bf, 0x5d2b2207, 0x86c88371, 0x060743c1, 0x35023e22, 0xa02ac18e, 0x2c2f694c, 0x5b3b4269, + 0xa15a1f3d, 0x3fb62105, 0x2f088a66, 0x6996612d, 0x17feb201, 0x39fe4a04, 0xf3fbc701, 0x36068766, 0x057ffee5, 0x00b605b6, 0x4052000f, 0x03030232, + 0x045a050d, 0x5d110001, 0xc020071a, 0x5d053350, 0x102f2b20, 0xe13232d4, 0x332f3932, 0x33253031, 0x5b132303, 0x332609d8, 0x8fc2f404, 0x1e5da6d9, + 0x01002917, 0x83feae00, 0x4a04f204, 0x76318d82, 0x0e0d4f40, 0x4700080e, 0x0bab0c0f, 0x0b020bbb, 0x581c5d11, 0x5dd41022, 0x1c5db188, 0x20bc820c, + 0x071c5d03, 0xb67bb723, 0x09eb5b7a, 0x2209a542, 0x4d7ffea6, 0x592a068f, 0x5a1d2140, 0x00161a1a, 0x824d195a, 0x0e30080c, 0x700b605a, 0xb00ba00b, + 0xb80b040b, 0x1440c0ff, 0x0b480a07, 0x065f1116, 0x1b1a0c06, 0x1a5f1dfb, 0x030c1712, 0x3f333f00, 0x12113fe1, 0x33e12f39, 0x250b7e4d, 0x31e12f32, + 0x3f4e2530, 0x0592490b, 0x11331123, 0x21018223, 0xf94ec703, 0xb0ba2411, 0x4eb001a6, 0x4a2414f7, 0x27027ffe, 0x4d05fb4e, 0x402a0675, 0x471b2540, + 0x1c141818, 0x624d1747, 0x470d3308, 0x191d540a, 0x500f14fb, 0x1b0b0505, 0x15151850, 0x9e840f0b, 0xdf4e9c84, 0xf6102305, 0x9a8432e1, 0xd94e0120, + 0x20988312, 0x13da4e33, 0x4ea0b621, 0xfb2514db, 0x0283feb6, 0x3d978217, 0x067ffec7, 0x00b605f2, 0xb69a001f, 0x39011f36, 0xb81f0100, 0x2c40f8ff, + 0x1f480f0c, 0x05820800, 0x0d0d0029, 0x1209100c, 0x830e1313, 0x0e39340d, 0x151d0e01, 0x1011145a, 0xc0212021, 0x210f0221, 0x830b0801, 0x82102030, + 0x0b263f2a, 0x08020b01, 0x2064095a, 0xb80c5f10, 0x1640f0ff, 0x00481209, 0x15030c09, 0x1efb1212, 0x46820101, 0x0e014824, 0xd982030a, 0x112b332a, + 0x173f3f33, 0x01e12b33, 0x5d21d784, 0x07ad452b, 0x5d323223, 0x05b1452b, 0x3311392b, 0x312b332b, 0x215d5d30, 0x08546d01, 0x33012123, 0x05a44501, + 0x11233908, 0x37023e34, 0x01233736, 0x45fe2303, 0x04040508, 0x1401ac06, 0x01069c01, 0xc314019e, 0xbaa6d990, 0x02020201, 0xfe080403, 0x4a000541, + 0x398b3f49, 0xb60596fc, 0xa80458fb, 0x2a059f45, 0x3d197703, 0x471e4241, 0x4302fb49, 0x70080505, 0x4a04c705, 0x87002400, 0x07085a40, 0x20101818, + 0x1e232322, 0x21244600, 0x20bf20af, 0xe0262002, 0x26cf0126, 0x40263001, 0xa0265026, 0x260f0426, 0x0f120601, 0x25541046, 0x3b01fb22, 0x5b0e4b0e, + 0x0e0b030e, 0x0e2b0e1b, 0x1e0e0e03, 0x50200f11, 0x18441834, 0x05031854, 0x25181518, 0x10080318, 0x15000318, 0x32173f00, 0x3fe15d5d, 0x5d2f3333, + 0x05b8505d, 0xf9823220, 0x435d5d21, 0x11210910, 0x38f88212, 0x21303133, 0x07030e11, 0x2e012301, 0x23112703, 0x1e013311, 0x033e1703, 0x06bb7137, + 0x066f0422, 0x142da618, 0x06050e2f, 0x0d16130e, 0xb7d90e01, 0x037ab67b, 0x31a61881, 0x0554431f, 0x2b12b549, 0x04000000, 0x026907dd, 0x00240026, + 0x2005b549, 0x05b54921, 0x051a0228, 0x1f000226, 0x87490415, 0x263d8208, 0x03ecff5e, 0x821706a1, 0x8244202d, 0x0206322d, 0x0000d436, 0x020b4013, + 0x02261138, 0x0c333d25, 0x07b34922, 0x59852b82, 0x59872b20, 0x006a0022, 0x172c5983, 0x02030d40, 0x0326051e, 0x29150102, 0x95185b85, 0x5d8308fd, + 0x19059c21, 0x2d287b14, 0x0000feff, 0xb6055606, 0x88000602, 0x9d850000, 0x04440623, 0x200f825e, 0x240f84a8, 0x030000c7, 0x20db84c8, 0x21db8528, + 0xdb85fbff, 0x05110129, 0x16060126, 0x8a00010c, 0x827120af, 0x84e120db, 0x854820db, 0x19ea20db, 0x22164107, 0x82000200, 0x053e082b, 0x00cd0512, + 0x0029001e, 0x242f4049, 0x670e5b1a, 0x8f2b0f2b, 0xbf2baf2b, 0x402b042b, 0x25480f0b, 0x6619035b, 0x2f5f252a, 0x7f195f19, 0x19190319, 0x135f1f09, + 0x5f000313, 0x3f000409, 0x597133e1, 0x10012a06, 0x2be132f6, 0xe1f6105d, 0x05734a32, 0x564f3520, 0xa1471807, 0x35520809, 0x03032e21, 0x37023e32, + 0x021e1421, 0xcf807902, 0x695a2a5b, 0xf4a04c7d, 0x9d5154a5, 0xd79996e8, 0xdb033e87, 0xa9734007, 0x6d955b43, 0xedfc0742, 0x058c5526, 0xaa202c29, + 0x0a131a0f, 0xe9fec66c, 0xebfeaeab, 0xc46b68c2, 0x46ab1501, 0x4786c17a, 0x354f66fb, 0x447f2205, 0x20cb8200, 0x22f78266, 0x825e04d7, 0x272d08cb, + 0x29404300, 0x05481122, 0x29b02957, 0x01293f01, 0x10194823, 0x50232856, 0x10af109f, 0x10df10cf, 0x00101004, 0x160a501f, 0x00511419, 0x20c58f10, + 0x22c5875d, 0x4a021e32, 0x2e2b0553, 0x21353502, 0x22232626, 0x8207020e, 0x321322d7, 0x08c28436, 0x6ee7013a, 0x424983b6, 0x6366a778, 0x023b6e9e, + 0x979a05b5, 0x4c505733, 0x514c2827, 0x85736057, 0x1b14fe0b, 0x5e045839, 0x87d28e4a, 0x4e95d688, 0x6eb58147, 0x0ab6c071, 0xa1121c13, 0x09220382, + 0x834c25fc, 0x712a0809, 0x1205ecff, 0x26022b07, 0x0000e102, 0x6a000701, 0x52014600, 0x03b61900, 0x26053302, 0xffb80203, 0x3e2ab4d3, 0x01250e18, + 0x6542352b, 0x21ef8408, 0x3382d905, 0x3382e220, 0x6a000624, 0x318400c4, 0x84113121, 0xb4f42531, 0x050f3c28, 0x0424318c, 0x81060000, 0xd94c6583, + 0x20658205, 0x2c6582f4, 0x020d4017, 0x26051b01, 0x12000102, 0x05db4c26, 0x31826388, 0x83be0521, 0xd0012263, 0x21978500, 0x65830091, 0x11203082, + 0xb8253082, 0x12b4ffff, 0x05e14c26, 0x48243388, 0xec03ecff, 0xb1206584, 0xff213385, 0x22cb84bf, 0x83430102, 0xffb82764, 0x4e3ab4f4, 0x998c0b13, + 0x33824420, 0x67845220, 0x3386d120, 0x67865520, 0x67854320, 0x3382d920, 0x85051c6c, 0x01002267, 0x08678400, 0x00b60564, 0x40720020, 0x1b5b002d, + 0x20205b1c, 0x48181040, 0x20201b1d, 0x0d031d1b, 0x67055b16, 0x01229f22, 0x0d800d70, 0x4f0d3f02, 0x030d5f0d, 0x5f1d200d, 0xffb81b1e, 0x071840f0, + 0x191b480d, 0x780100aa, 0x000f0100, 0x00000801, 0x6013031e, 0x00130a0e, 0x3fe1333f, 0x5d5e2f39, 0x33335d5d, 0x32e1102b, 0x0a822f01, 0xe1f61023, + 0x054e5c12, 0x10e11025, 0x4c3031e1, 0x44180b6f, 0x23310897, 0x35210135, 0xf4011521, 0x4784ba73, 0x89cd8843, 0x44bd186e, 0x7b21080a, 0xa6fda601, + 0x3b033d03, 0x97643505, 0x74a06066, 0xaa2d2240, 0x0d182417, 0x81878794, 0xa6d10197, 0x23d38291, 0x0314fe1b, 0x08054563, 0x3e40643d, 0x201f4a00, + 0x4024244a, 0x21481813, 0x1f24241f, 0x180d0321, 0x26570547, 0x269f266f, 0x01263002, 0x0701260f, 0x110c400d, 0x21240d48, 0x1d1f2250, 0x0c092000, + 0x22000048, 0x4d50130f, 0x3924073a, 0x33332b2f, 0x2b20c384, 0xc59fd083, 0x08965218, 0x3e08c785, 0x7da85fa8, 0xba844749, 0x3ab57373, 0x665b4e1f, + 0x56774736, 0x8b633730, 0x92016d54, 0x0603c6fd, 0x4107d501, 0x6e6ca675, 0x244984b7, 0x1f10a622, 0x572e0f18, 0x7d564e7d, 0x017d2752, 0x18859aed, + 0x3d0731bd, 0x2602c106, 0x0000b201, 0x4d010701, 0x5201b000, 0x01b41500, 0x0126051a, 0xb4feffb8, 0x64181918, 0xae260c9b, 0x3b040000, 0x2f826f05, + 0x2f82d220, 0x4d010624, 0x2d830039, 0x83110e21, 0xb4ff252d, 0x040a0d0c, 0x260ae944, 0x050000c9, 0x872b0710, 0x6a00235d, 0x69429c00, 0x42212006, + 0x5f820569, 0x5f852c20, 0x82053542, 0x20618591, 0x226187d9, 0x42256a00, 0x152005cf, 0x82056742, 0x85202063, 0x24318863, 0x05ecff7d, 0x21658371, + 0x9b423200, 0xaa002105, 0x2b053543, 0x05310203, 0x01020326, 0x000a3c28, 0x250ccd42, 0x04ecff71, 0x6382052d, 0x43520021, 0xf9200599, 0x20059943, + 0x05994329, 0x20b4f923, 0x84318e34, 0xcd052a63, 0x7e020602, 0xffff0000, 0x21418400, 0x0f825e04, 0x0f847f20, 0x1f838388, 0x82070121, 0x298386e9, + 0x05330304, 0x01030426, 0x518e3e2a, 0x02208388, 0x01214182, 0x28318206, 0x40170000, 0x2b03040d, 0x222f8211, 0x8e362200, 0x823b202f, 0x834420b3, + 0xc70121e5, 0x6182b382, 0x4197ff21, 0x2e20064b, 0x25054b41, 0x3925b4a6, 0xe78c0c04, 0xecff3724, 0xe7834203, 0x86e70121, 0x43382033, 0x302006b5, + 0x25054d41, 0x3b27b4ca, 0x338c2203, 0x67821920, 0xc106ae26, 0xbd012602, 0x01233383, 0x4227004d, 0x24210511, 0x05114205, 0x13232222, 0x2a0bcd46, + 0x0314fe0a, 0x026f05df, 0x425c0026, 0xbb2d0511, 0x40130000, 0x1125010b, 0x23010126, 0x47f61824, 0x845b840c, 0x825b84c3, 0x861220f3, 0x852b20c3, + 0xb4fd23c3, 0x5d853622, 0x1908dd41, 0x28101713, 0x170000a7, 0x01020d40, 0x22c2832c, 0x85372301, 0x852f8861, 0x88732063, 0x005322bf, 0x050d4266, + 0x2e010222, 0x51206483, 0x06216195, 0x21c18821, 0x61860053, 0x61832f20, 0x61905a20, 0x0000a623, 0x05a54504, 0x5541c120, 0x54002105, 0x1f206187, + 0x0f226183, 0xbb412a16, 0x009a260e, 0x05fe0300, 0x209382d9, 0x233182e1, 0x066a0006, 0x22206186, 0x08246183, 0x0a172d19, 0x4b098341, 0x4b080543, + 0xb605be03, 0x64000900, 0x00140b40, 0x0100e401, 0x020100d0, 0xc0ffb800, 0x13083540, 0x0b000048, 0x0b4f0b2f, 0x0b8f0b6f, 0x11400b04, 0x5a074818, + 0x04cf04bf, 0x01048402, 0x041f040f, 0x04040702, 0x64085a03, 0x095f020a, 0x075f0303, 0x2006f85c, 0x051a4b3f, 0x5d5e2f34, 0x2be15d5d, 0x2f33115d, + 0x5d5d5f2b, 0x01303171, 0x8a4c2115, 0xfdbe2e07, 0xbab0b0c3, 0xfba6b605, 0x01d9fd96, 0x28838281, 0xfeae0001, 0x040a0383, 0x268d824a, 0x2032404e, + 0x82023002, 0x0b2a0800, 0xa1010bc0, 0x0b70010b, 0xbf470901, 0x0206cf06, 0x0f010684, 0x02061f06, 0x05060607, 0x0a540047, 0x15095005, 0x5004fb08, + 0xa6750f01, 0x10012405, 0x8532e1f6, 0x056d5d7a, 0x30315d25, 0x86211133, 0x02ae2879, 0xa05afe5c, 0x634a04b6, 0xff2d0688, 0x00c700ff, 0x07cf0500, + 0x0126022b, 0x066541c5, 0x6541fc20, 0x03042b05, 0x04260527, 0x321e0003, 0xb9421c06, 0x82ae200c, 0x05502231, 0x203182d9, 0x203186e5, 0x05c941b0, + 0x11203182, 0x0a213185, 0x2a318c0d, 0x036dfe2f, 0x02b605be, 0x839b0226, 0x80032331, 0x3182a600, 0x01b30a2a, 0x01071f1f, 0x35113c10, 0x12208782, + 0xfd822382, 0x9c202382, 0x81222384, 0x23878900, 0x23870d20, 0x6dfe002a, 0xb6059a04, 0x3b002600, 0x80222384, 0x23822303, 0x01b11735, 0xc0ffb81d, + 0x481513b2, 0xb49effb8, 0x00001d1d, 0x542b0125, 0x23200595, 0x11223182, 0x31824a04, 0x31845b20, 0x9a028122, 0x12283182, 0x1d5001b3, 0x9affb801, + 0x07212c82, 0x212c8207, 0xbb63355d, 0x82602006, 0x1133085d, 0x2740b200, 0x0f560f46, 0x59094902, 0x00360209, 0x01063901, 0x000f0906, 0x03030c04, + 0x01113001, 0x0701073f, 0x05110711, 0xb80a0b01, 0x0ab3f0ff, 0x8205040a, 0x14403407, 0x100e0d05, 0x01020e0e, 0x01010010, 0x01800170, 0x820301c0, + 0x40c02864, 0x480a0727, 0x50130101, 0x7f3a05c0, 0x00080413, 0x090f5f06, 0x27010328, 0x0c03010c, 0x0109090a, 0x05030a0d, 0xd8701201, 0x112f2b06, + 0x5d5d3939, 0x32e13311, 0x06825e01, 0x2205b161, 0x83382f33, 0x25038302, 0x39391211, 0x21822f2f, 0x2f3d3926, 0x5d331733, 0x31240082, 0x23010130, + 0x21250283, 0x33012135, 0x26028201, 0xc5021521, 0x61d39b01, 0x9a2605a9, 0x1401dffe, 0xad6192fe, 0x8e400806, 0xb4021c01, 0x7b024cfd, 0xb40285fd, + 0xfd5e02a4, 0xfd2f02d1, 0x0100a4a2, 0x00002300, 0x4a04db03, 0x17011100, 0x0880bf40, 0x08020890, 0x0b000800, 0x0105060f, 0xe50105f7, 0x05360105, + 0x07060501, 0x9508f082, 0x1010010d, 0x0103090d, 0xea0103f8, 0x03390103, 0x6b020301, 0x02067b06, 0x3a010657, 0x02064a06, 0x02740264, 0x01025802, + 0x02450235, 0x0d020602, 0x03060d02, 0x010c060f, 0xe5010cf7, 0x0c36010c, 0x400b0c01, 0x0b481916, 0x48110e40, 0x0b7b0b6b, 0x010b5702, 0x0b4a0b3a, + 0x130b0b02, 0x13301310, 0xb0139002, 0x130f0213, 0x010e0901, 0xea010ef8, 0x0e39010e, 0x0f6b0e01, 0x58020f7b, 0x0f35010f, 0x0f020f45, 0x4f100a0d, + 0x01ef0704, 0x1b010b01, 0x5b012b01, 0x9c826b01, 0x02010128, 0x05150b0f, 0x4c410f02, 0x5d5e2607, 0xe133335d, 0x05bd4832, 0x5d5dc124, 0x0282715d, + 0x2fce1022, 0x2b210982, 0x250f842b, 0x3d391712, 0x9461182f, 0x84102007, 0x33112113, 0x04820183, 0x72410e86, 0x30312305, 0x8e612113, 0x15212205, + 0x06704121, 0x01685f08, 0xcfcffe00, 0xfecffafa, 0xfe0401cd, 0xcf4a01f7, 0xf2fef4fe, 0xfe4a01cf, 0x017b02fb, 0x0166fecf, 0x8931fe9a, 0xb4010efe, + 0xf2014cfe, 0x00020000, 0x03000089, 0x00b605f6, 0x0019000e, 0x06294040, 0x65095a19, 0x011b9f1b, 0x15011b10, 0x1a66005b, 0x063f5f0f, 0x066f064f, + 0x06bf069f, 0x008206df, 0x5f190728, 0x03071209, 0x634c3f00, 0x4be12009, 0x1324079c, 0x33023e34, 0x1125a782, 0x022e2221, 0x05d36a01, 0x33162e08, + 0x7f378933, 0xbb9598cf, 0xc28695fe, 0xb2023c7e, 0x5b8a5d81, 0x9fafa32e, 0x9857ac01, 0x68024271, 0x703d4afa, 0x1b5f019e, 0x8846613c, 0x07674784, + 0x14060227, 0x47000602, 0x23a38400, 0x3b06ecff, 0x2108a382, 0x00320023, 0x183f4063, 0x1a5a3209, 0x5a22111a, 0x0f346501, 0x346f0134, 0x34ef349f, + 0x50344003, 0x0e820234, 0x2a063308, 0x3366115b, 0x23175f24, 0x4f173f23, 0xbf176f17, 0x0517df17, 0x03181717, 0x09602d1d, 0x00130e06, 0xe133333f, + 0x2f393f32, 0x102f335d, 0xf61001e1, 0x69185ee1, 0xe12f09e2, 0x30313239, 0x0e141101, 0x26222302, 0x18030e27, 0x83075647, 0x161428d4, 0x023e3233, + 0x87051135, 0x080d83d8, 0x2d3b0653, 0x725e8c5b, 0x3f182b99, 0xd73f6752, 0xd78a41e4, 0x67bb7a96, 0x33482c61, 0x81bafd1c, 0x2d5b8b5d, 0x5b43867e, + 0x50031738, 0x8b5118fe, 0x4d613a66, 0x192e3f26, 0xa367d6d2, 0x68023c72, 0x6970b2fb, 0x3250391e, 0x1ea6e801, 0x804d6b43, 0x4d3e2582, 0x20f38329, + 0x22f38271, 0x8214065a, 0x433d08f1, 0x39405c00, 0x47382c10, 0x2e012e50, 0x47031b2e, 0x6f455506, 0x9f457f45, 0xef45cf45, 0x45400545, 0x2f450f01, + 0x41060245, 0x44561b48, 0x3e330404, 0x10202550, 0x3300002c, 0x160b1050, 0x22ed8616, 0x18e1333f, 0x21082e4e, 0xf3825d5d, 0xff821120, 0x3932e12a, + 0x32253031, 0x33113536, 0x2e23f185, 0x52232702, 0x3a6b0616, 0x33172506, 0x26262726, 0x1e222083, 0xef822103, 0x35373708, 0x23022e34, 0x14150622, + 0x6fd30416, 0x5c2fb662, 0x67415b8b, 0x06173d51, 0x795b441b, 0x6e9a5d51, 0x9a6e3c3c, 0x4d603b5d, 0x030c173b, 0xb6040203, 0x512c0f01, 0x7e7ea6fd, + 0x7f873e08, 0x8282837f, 0xc1fe3501, 0x2e629869, 0x2c4a361e, 0x20374a29, 0x8cd48f48, 0x4990d58d, 0x05937e1a, 0x11366d08, 0x92fbb401, 0x2d4e6a3e, + 0x5f8c5e2e, 0x6b9d6529, 0xd1ccda37, 0x010000cd, 0xecff4e00, 0xcb054406, 0x85003f00, 0x5b0d5640, 0x2b5b0020, 0x20072025, 0x07202b2b, 0x5a331603, + 0x7f416536, 0x9f418f41, 0xff41ef41, 0x41000541, 0x41304120, 0x80167003, 0x163f0216, 0x1602164f, 0x06254016, 0x34000760, 0xdf343401, 0x07aa0107, + 0x01077801, 0x2805006b, 0x3b5f301b, 0x60121513, 0x09404f1b, 0x825d5e21, 0x2f332700, 0x39e1105d, 0x07820111, 0x2705714c, 0x2f391711, 0x39122f2f, + 0x2706724c, 0x23022e34, 0x32333523, 0x2106a54b, 0xaf180622, 0x07230bc9, 0x7f031e15, 0x644106a9, 0x033a080a, 0x92653529, 0x5cb0bf5d, 0x2532618e, + 0x6e3a5f44, 0x265c4ba9, 0x47837462, 0x3971a66d, 0x4b7d5b33, 0x325e8a57, 0x374f3218, 0x38b7626f, 0x57599166, 0x013c6c94, 0x466d4d87, 0x5d189721, + 0x74080ad5, 0x1829361f, 0x4f856136, 0x3958774a, 0x390b060c, 0x4a487759, 0x771e4168, 0xfec90181, 0x6298692d, 0x9c642f2e, 0x00010000, 0x05ecff50, + 0x005e04a2, 0x4081003b, 0x00471523, 0x36314620, 0x31001931, 0x00311919, 0x47082703, 0x0f3d550b, 0x3dd0013d, 0x013dbf01, 0x27013d30, 0x40c0ffb8, + 0x48151229, 0x2701275f, 0x19363c27, 0x09091a50, 0x99011adf, 0x021aa91a, 0x06907d0b, 0x2326052e, 0x05102c50, 0x00161050, 0xe13fe13f, 0x23056673, + 0x2f335d5d, 0x20072a41, 0x0752432b, 0x2f391725, 0x41112f2f, 0x1423082d, 0x4233021e, 0x35220c70, 0x3e412634, 0x23262108, 0x31113d41, 0x31155203, + 0x60693b50, 0x8f5f2fb6, 0x64905c60, 0x5d188535, 0x28360c3b, 0x355a524d, 0x3a699056, 0x2b46331c, 0x223c5332, 0x49274c01, 0x61422138, 0x542b2309, + 0x5d184f7b, 0x13240b10, 0x2609131d, 0x088bbb18, 0x3e290939, 0x01000052, 0x7ffe4e00, 0xcb059c04, 0x83003100, 0x5b0f5440, 0x82220927, 0x184a0801, + 0x2e705a01, 0x2e022e80, 0x2f5a002e, 0x3300332f, 0xd033c001, 0x339f0233, 0x20330001, 0x03333033, 0x18801870, 0x4f183f02, 0x18180218, 0x27fb3032, + 0x09df6008, 0x0109aa01, 0x0f010978, 0x09080109, 0x14170109, 0x2e041d60, 0x4f5a015f, 0x07264105, 0x39e15d23, 0x0750423f, 0x11715d36, 0x32e12f33, + 0x12e15d2f, 0x2f2f3939, 0x31e13912, 0x11232130, 0x29215542, 0x23113315, 0x38bbec03, 0x49429567, 0xb0b0271f, 0x6443a001, 0x3c422041, 0xfdfa381e, + 0x000100d9, 0x0383fe50, 0x005e04f2, 0x408d002d, 0x1d460c1a, 0x82061d22, 0x13230801, 0x29294700, 0x2a20472d, 0x2a402a30, 0x2a042a60, 0x40c0ffb8, + 0x48130f0e, 0xc02f2a2a, 0xe02fd02f, 0x8313032f, 0x2d2a0812, 0x5f481512, 0x13130113, 0x22fb2b2e, 0x06df5005, 0xa9069901, 0x064f0206, 0x0b02065f, + 0x02061b06, 0x00060607, 0x18500f12, 0x925a2910, 0x08144107, 0x1441e920, 0x05a44a06, 0x32e15d23, 0x0712412f, 0x31e11025, 0x42112130, 0x15281e28, + 0x23113315, 0x819c0211, 0x29191f42, 0x263f522c, 0x2b01b7a0, 0x5f18655e, 0x0f420920, 0x2c0e250d, 0x913d5b42, 0x0807c75a, 0xe9ff0077, 0xb605ec06, + 0x92003100, 0x06d76540, 0x060206e7, 0xd7010107, 0x0201f701, 0x171c5a01, 0x48181010, 0x1701178b, 0x480e0710, 0x5a311c17, 0x011eb01e, 0xb4011ce0, + 0xd41cc41c, 0x1c00031c, 0x1c901c50, 0x07041ca0, 0x1e1c1e1c, 0x275a240e, 0x334f3365, 0x337f336f, 0x33af339f, 0x200633df, 0x330f0133, 0x25250e01, + 0x1c5f0112, 0x60122103, 0x00130b2c, 0x32e1333f, 0x20f7823f, 0x07df502f, 0x39391122, 0x2f060862, 0x3311e110, 0x102b5d2b, 0x32715de1, 0x0130315d, + 0x20187b5c, 0x47821814, 0x020e2708, 0x022e2223, 0x885c0335, 0x6e63211e, 0x22076844, 0x5c3a6892, 0xfb231a91, 0x447781d1, 0x4d08095e, 0x6c99602c, + 0x00010000, 0x06ecff10, 0x004a0400, 0x405c0028, 0x11460139, 0xa0134728, 0x11db0113, 0x0111c401, 0x11a01190, 0x01112402, 0x11011110, 0x09131113, + 0x551e471b, 0xcf2a7f2a, 0x032aef2a, 0x0c1c1c09, 0x0f115001, 0x234f0c18, 0xf98c1606, 0xe1f61022, 0xac6af784, 0x06684505, 0xa05c2120, 0x114d4411, + 0x4414ae5c, 0x91220b41, 0xb95c3666, 0x3dfd2510, 0x20416241, 0x23093344, 0x6996622e, 0xc728d983, 0x2d07ecff, 0x1d00b605, 0x3724d982, 0xa05a131b, + 0x3108ed82, 0x5a061700, 0xc01f6509, 0x1faf011f, 0x20021fbf, 0x1f0f011f, 0x5a161a01, 0x151e6417, 0x07071a5f, 0x08011a0f, 0x1c171a1a, 0x12170318, + 0x130e5f03, 0xd25c3f00, 0x076e4808, 0xd6833220, 0x22088247, 0x41013031, 0x1c5c10b0, 0xd5043709, 0x636e6f62, 0x906638b6, 0x68915859, 0xba66fd3a, + 0xba9a02ba, 0x88418701, 0x2d01210f, 0x080bab78, 0x06ecff37, 0x004a048b, 0x406c001f, 0x471a0247, 0x0d1e0505, 0x21551047, 0x21202100, 0x50214002, + 0x90218021, 0xf021b021, 0x210f0621, 0x471d0101, 0x1c20541e, 0x0e0e0150, 0xc1bd18eb, 0x031e2910, 0x151e0f1f, 0x1615500a, 0xe745c78a, 0x5d012005, + 0x7120059f, 0xe121c885, 0x5dc78232, 0xe145058f, 0x21353b10, 0x01112311, 0xb6210264, 0x3b503115, 0x2fb65f6a, 0x5b608f5f, 0xfd366692, 0xd35cb6df, + 0x13804105, 0x17fe6e22, 0x3808c282, 0x7d000100, 0x5205ecff, 0x2a00cb05, 0x29404700, 0x290c2a2a, 0x4014015b, 0x14480e09, 0x2c670114, 0x70012cbf, + 0x5b1f012c, 0x2a2b660c, 0x2400005f, 0x11155f1a, 0x075f2404, 0x25af8313, 0x3912e133, 0xa883e12f, 0x105d5d27, 0x2b2f32e6, 0x82108310, 0x152121a8, + 0x0ca15e18, 0x32332427, 0x2e071716, 0x05d74903, 0x021e5408, 0x023e3233, 0x17032135, 0x8e423b02, 0xf29d9cde, 0xb65f56a6, 0x6fab0b01, 0x244858cc, + 0x2e5d5853, 0x427fbc7a, 0x75ab7036, 0x295d956c, 0xf60288fe, 0xfefea856, 0xc3695baf, 0xacae1701, 0x69c31601, 0x11a22a2c, 0x510e171e, 0x8289da98, + 0x42569cd8, 0x8264a677, 0xff7131c7, 0x047b04ec, 0x0028005e, 0x285a4081, 0x47270c28, 0x0c21c782, 0x08c78311, 0x142a574b, 0x022a242a, 0x2af42ae4, + 0x012ad002, 0x502a4002, 0xa02a802a, 0x052ac02a, 0x560c481d, 0x00502829, 0x48191540, 0x00db00cb, 0xa90300eb, 0x0200b900, 0x009f008f, 0x1b000b02, + 0x03002b00, 0x22000006, 0x11155018, 0x07502210, 0x21f88816, 0x00825d5e, 0xfe852b20, 0x5d5d5f23, 0x0f014171, 0x21061c44, 0xef823e34, 0x4957fe82, + 0x05ac4805, 0xfe823e20, 0x7b024508, 0x78390002, 0xcb8781ba, 0x954c4488, 0xad6f8fdb, 0x943c3e4d, 0x6595615b, 0x87562934, 0x4a74515e, 0x02b8fe23, + 0xc882444a, 0x934f4789, 0xd38284d3, 0x27255094, 0x3a291d8d, 0x5d629d6d, 0x2d3e709b, 0x00447050, 0x1420f782, 0x3508f782, 0x00b605c9, 0x40650019, + 0x095a062f, 0x1b4f1b65, 0x1b9f1b7f, 0x00041baf, 0x18af011b, 0x840218ef, 0x18180118, 0x40135a00, 0x150f0115, 0x15150801, 0x13671357, 0x53461377, + 0x07102c05, 0x1913480a, 0x07165f15, 0x43031607, 0x39210752, 0x053f552f, 0x490a9074, 0x4e43059d, 0x21352a15, 0x71022115, 0x626e6f62, 0x054a43b7, + 0xfe3a6927, 0xfefe035e, 0x1149435f, 0x6d950321, 0xb58205df, 0x046f3c08, 0x001b004a, 0x0d4a406d, 0x1d551047, 0xcf011d0f, 0xff1def1d, 0x1d30031d, + 0x1d601d40, 0x1f1d0f03, 0x030f021d, 0x0103cc01, 0x03bf030f, 0x03030602, 0x601a4705, 0xd0007000, 0x821f0300, 0x00003df9, 0x021a101a, 0x010e0e1a, + 0x1615500a, 0x01500004, 0xe13f000f, 0x11e13f32, 0x2f012f39, 0x4a75ba82, 0x5d5e2305, 0x2e49715d, 0x30312206, 0x20aa8313, 0x11d84411, 0x0329113a, + 0x15c1fe35, 0x693b5031, 0x5f2fb75f, 0x925c608f, 0xb0033666, 0xd7fd9a9a, 0x2111bc44, 0x7d823502, 0xc1826f20, 0x050c4308, 0x003900cb, 0x5b13b45d, + 0xb8001a34, 0x2e40c0ff, 0x00481a17, 0x2f1a001a, 0x3b270a0a, 0x20013b9f, 0x3a662f5b, 0xaa601b34, 0x18780118, 0x01180f01, 0x05181808, 0x2a266023, + 0x0b600e13, 0x3f000405, 0x0282e133, 0xa482af82, 0x39e15d34, 0xe1f61001, 0x32ce105d, 0x3939122f, 0x122b2f2f, 0xb182e139, 0x023e3426, 0x021e3233, + 0x210c7f77, 0x244d1533, 0x79362008, 0x2e22050e, 0x28823502, 0x35376308, 0x3b9c032e, 0x486da973, 0x265a697b, 0x67a24b5c, 0x26445f39, 0x5782572c, + 0x925dbfc3, 0xa4aa3565, 0x5353cc6c, 0xc38080c0, 0x5f314283, 0x784a5789, 0x60042d54, 0x3661854f, 0x1f362918, 0x1e43367d, 0x3e36533a, 0x97274864, + 0x43654321, 0x2b318e89, 0x3c2526aa, 0x48609c6f, 0x0b3d5e7b, 0x58390c06, 0xfb820077, 0xecff5c30, 0x5e046a03, 0x6d003700, 0x1e4632b4, 0xfb832301, + 0xfb823d20, 0x01233908, 0x2b180123, 0x39d0390f, 0x39f039e0, 0x01398f03, 0x05013940, 0x38561847, 0xef50021d, 0x37a90137, 0x0f0237b9, 0x2f371f37, + 0x37060337, 0x502f0a37, 0x0a10282c, 0x16130f50, 0x20060a41, 0x05845812, 0x25060a41, 0xce105d5d, 0x0b411132, 0x15012409, 0x43062223, 0xf78f0743, + 0x3321ff83, 0x066a4332, 0x83082585, 0x8a819e02, 0x60462985, 0x57613337, 0xaf3c1e4d, 0x6ba26e73, 0x59432835, 0x35492b30, 0x90693a1e, 0x50a25a56, + 0x47834b3f, 0x44266d66, 0x8702395f, 0x335e5b99, 0x0e122a45, 0xa2101e16, 0x5630281d, 0x5b3d4778, 0x0b0d2940, 0x4d3b290e, 0x4a6d4632, 0x93272526, + 0x4d4d2622, 0x1227402d, 0x00ffff00, 0x056dfe00, 0x02b6052f, 0x00b50126, 0x03070100, 0x00b80380, 0xb40d0000, 0x31310101, 0x3c100100, 0x35003511, + 0x10262783, 0x4c046dfe, 0x27824a04, 0x2784d520, 0x82028121, 0x21278407, 0x278b2626, 0x98fe0026, 0xbc05dd04, 0x2208cf5d, 0x82d30467, 0x40132a4f, + 0x1418020b, 0x15000227, 0x0dcf5d1b, 0x1898fe21, 0x220cc384, 0x866f0467, 0x1736262d, 0x330d0227, 0x12d15d39, 0x5b88e120, 0xd1046622, 0x26054f5d, + 0x26051b02, 0x5e2a2102, 0x9c22112b, 0x2d828f06, 0xb1834420, 0x04660223, 0x255b8675, 0x02261139, 0x2d5e4836, 0x87d12013, 0x7703235b, 0x5b82cb04, + 0x03b6192d, 0x26051502, 0xffb80203, 0x861db4ff, 0x0853565f, 0xecff5e26, 0x7f064704, 0x33826187, 0x59548920, 0x02032305, 0x34821133, 0x863b3321, + 0x82318863, 0xdd04221e, 0x20658907, 0x20658878, 0x2165871d, 0x955e1d25, 0xff12240e, 0x8a9c03ec, 0x04782165, 0x3b206588, 0x43216584, 0x0525413b, + 0x0821658d, 0x20cb884a, 0x22cba679, 0x88f80606, 0x897920cb, 0x21cb9b65, 0x65886208, 0xcba27a20, 0xcb835e20, 0x88100721, 0x8e7a2065, 0x410b20cb, + 0xfe251131, 0x07dd0498, 0x2a658573, 0x4b012700, 0x52011f00, 0x42020701, 0x25310557, 0x2d031040, 0x15022714, 0x00032605, 0x0704302a, 0x0ca94125, + 0x00352b24, 0x5955352b, 0xfe5e2605, 0x069c0398, 0x25798521, 0x4b012600, 0x458400d4, 0x00006f2b, 0x16402200, 0x27174b03, 0x27e88302, 0x0c4e480d, + 0x25022522, 0x42868887, 0x82ffff21, 0x04002427, 0x881308dd, 0x847b20ef, 0x401725ef, 0x2602030d, 0x02237e82, 0x41212900, 0xed840eb9, 0x88c10621, + 0x047b22ed, 0x071f427b, 0x26114427, 0x471e0203, 0x14b9413f, 0x7c206389, 0x7c2063b0, 0x582063a6, 0x7d20c788, 0x1a206389, 0xe742c784, 0x9c032313, + 0xc7880607, 0x63897d20, 0xc7843820, 0x2311b541, 0xdd040000, 0x200a1b42, 0x4263a67e, 0x7e200919, 0x5021638f, 0x0f2b415e, 0x0498fe25, 0x425b07dd, + 0x4e240819, 0x6d012100, 0x27081942, 0x03164022, 0x0227142e, 0x0026d283, 0x0704312b, 0x4c620225, 0x09d34108, 0x98fe5e26, 0xee059c03, 0x20081542, + 0x0e15424e, 0x27174c23, 0x22e28302, 0x824f490d, 0x1e02217d, 0x89076262, 0x82c72041, 0x05be2241, 0x214182b6, 0x51420028, 0x44aa2005, 0x01270565, + 0x0127140f, 0x61120c03, 0x2d820de3, 0x5e04e122, 0x48202d82, 0xbe202d86, 0x02212d85, 0x2469822b, 0x052e2830, 0x0a275d0f, 0x0000c726, 0xe107be03, + 0x66225b88, 0xef449104, 0x12012605, 0x0d012605, 0x133f6221, 0x5b888f20, 0x98046622, 0x2e265b86, 0x2d022611, 0x5b92283d, 0x5b873520, 0xff520123, + 0x235b82d4, 0x1401b415, 0xb8255a82, 0x15b4fbff, 0x25b98d23, 0xe103ecff, 0x5d86e305, 0x5201062a, 0x130000de, 0x30020b40, 0x1e225b82, 0x5b8f3f31, + 0x075c0423, 0x235b87d1, 0x9e047703, 0x19245b82, 0x0c0102b6, 0x2007cf5b, 0x44bb8614, 0x712008b3, 0x24084b45, 0x01000048, 0x0b4b4507, 0x26112825, + 0x19030203, 0x8807bb35, 0x00272431, 0x8abe0300, 0x88782065, 0x27c28265, 0xffb80102, 0x141cb4fd, 0x3388c385, 0xc5831220, 0x867f0621, 0x030721c5, + 0x820a4b45, 0x216582c8, 0xc9853038, 0xc7263188, 0x1b040000, 0xcb884a08, 0xcba67920, 0x85054b45, 0x0a4b45cb, 0x6582cb96, 0x08be0323, 0x20658862, + 0x20cba27a, 0x21cb8371, 0xcb881007, 0x970a4b45, 0x98fe25cb, 0x7307be03, 0x00256585, 0xff4b0127, 0x064b45f1, 0x0000aa3a, 0x10402500, 0x27142402, + 0x26050c01, 0x27210302, 0x01250001, 0xb4fdffb8, 0x4507a941, 0x71200a4b, 0xe1224782, 0x79852106, 0x01260024, 0xf942de4b, 0x40222709, 0x17400316, + 0xe8830227, 0x433d1c25, 0x41250f05, 0x354309ba, 0x00522609, 0x07640200, 0x214182e1, 0x3b83002c, 0xb0036622, 0x200ad942, 0x0ed94213, 0x23826220, + 0x8f06d722, 0xf3202d82, 0x5e202d86, 0x132aaf82, 0x0a010b40, 0x13012611, 0xa9420419, 0xfe52260c, 0x05640298, 0x225b88b6, 0x82be0367, 0xb415232d, + 0xdc820f01, 0xffffb823, 0x0e9343b4, 0x98fe9e26, 0xe5057501, 0x4c202f82, 0x67225d84, 0x2f846d03, 0x82150221, 0xffb827c6, 0x1812b4fe, 0x95430c04, + 0xfe7d260a, 0x05710598, 0x202f82cd, 0x212f8532, 0x8d855c05, 0x142b0228, 0x28000227, 0x075f0a2e, 0xfe71260b, 0x042d0498, 0x822d825e, 0x070125f3, + 0xb2046702, 0x23205d85, 0xff235d84, 0x8c2620b4, 0x0531602f, 0x5d88e120, 0x4e056622, 0x27051941, 0x26052e02, 0x283d1502, 0x71262d8c, 0x2d04ecff, + 0x5d888f06, 0xa4046622, 0x26268b86, 0x13022611, 0x2d8c2035, 0xd1205b85, 0x03235b87, 0x5d580577, 0x0328053b, 0x26052802, 0x30050203, 0x95435d86, + 0x0668220c, 0x235f877f, 0xaa047703, 0x19255f82, 0x200203b6, 0x24308211, 0xb4faffb8, 0x61638628, 0x65890e77, 0x65897820, 0x65843020, 0x5f303821, + 0x33200e07, 0x6589c584, 0x65887820, 0x65872820, 0xcb849990, 0x884a0821, 0xa47920cb, 0x062d22cb, 0x20cb88f8, 0x21cba779, 0x65886208, 0xcba07a20, + 0xcb837120, 0x88100721, 0xa37a2065, 0x98fe25cb, 0x73077105, 0x00256585, 0x004b0127, 0x059743ae, 0x005c0522, 0x2d059d48, 0x02271440, 0x03260528, + 0x0a433d00, 0xa8412500, 0x09514309, 0x98fe7126, 0x21062d04, 0x00247785, 0xfb4b0126, 0x20059343, 0x314182b2, 0x03094028, 0x02271738, 0x03261120, + 0xb5ffffb8, 0x44833b35, 0x890bbc41, 0xff7d2447, 0x832506ec, 0x5f02228b, 0x23418200, 0x06017600, 0x28067f42, 0x02260541, 0x133b3502, 0x0db36801, + 0x83f40421, 0x60022175, 0x06342d82, 0x00507600, 0x02b41500, 0x0226113a, 0xb4ebffb8, 0x190a332d, 0x5b8f2d8a, 0x54004322, 0x2f825b82, 0x5a823520, + 0x51ffb825, 0xc0353bb4, 0x02e1225d, 0x20b98526, 0x05394302, 0x3c205d82, 0xbc225d84, 0x5d934ab4, 0x2f828f20, 0x0721bb83, 0x053b4302, 0x34202f82, + 0xb023bd84, 0x922d42b4, 0x873520bd, 0x20b9825f, 0x20bd857d, 0x235f843d, 0x4c3eb496, 0x2d22bd90, 0x9141e305, 0x06012505, 0x00e25201, 0x09af8918, + 0x29b4fd23, 0x0d9b4337, 0x0698fe25, 0x88140625, 0x056723bd, 0x2f84005c, 0x27143827, 0xa7ffb802, 0x0f7941b4, 0x0498fe25, 0x88f204f4, 0x085744bd, + 0x83173021, 0x419b202f, 0xb8200f7b, 0xdd222f82, 0x8d82b805, 0x00003828, 0x67020701, 0x29442f05, 0x1b012805, 0x00012714, 0x440b1e18, 0xa4200bb5, + 0x08222d82, 0x2d824a04, 0x2d855820, 0x84b80421, 0x1e012b8d, 0xb8012717, 0x1bb4feff, 0xd9410c21, 0xffb8260b, 0x07dd04ec, 0x225d88e1, 0x421d0566, + 0x01270535, 0x0126051e, 0x8d182d11, 0x222d825d, 0x888f0608, 0x0466225d, 0x268b86a6, 0x01261121, 0x8f1b300e, 0x4e06235b, 0xe9827307, 0x91426120, + 0xc5002105, 0x15235b82, 0x823101b4, 0xffb8275a, 0x2b25b490, 0x65420818, 0xffa4260a, 0x067905ec, 0x202f8221, 0x05934262, 0x00006025, 0x8201b111, + 0xb49f25b6, 0x210c2e28, 0x35272a84, 0x00ffff00, 0x8cecffb8, 0x00432259, 0x2059853d, 0x23598425, 0x252bb408, 0x4321599c, 0x245986a3, 0x2eb4e2fe, + 0x20599128, 0x20b387e1, 0x050f4102, 0x59228585, 0x56873ab4, 0xaf858584, 0xaf868f20, 0x41020721, 0x2b85050d, 0x3db45622, 0x35205792, 0x1e195787, + 0x2d200949, 0x4723b184, 0x913c2eb4, 0xe30521b1, 0x06235b86, 0x86f35201, 0x4eff24b1, 0x8c3f31b4, 0x98fe25b1, 0x14064e06, 0x1f42b188, 0xb4152905, + 0x27142801, 0x48ffb801, 0x25106541, 0x790598fe, 0xb588f204, 0x21426720, 0x172b2107, 0x45202f83, 0x4d096a41, 0x002a057f, 0x370498fe, 0x2602b605, + 0x51423c00, 0x427f2006, 0x0c200551, 0xff255f84, 0x070f09b4, 0x0ac54102, 0x14fe0a26, 0x4a04df03, 0x24067d65, 0x05670207, 0x292f828b, 0x0101b111, + 0xb43201b8, 0xde652923, 0x059b5005, 0x04231882, 0x88e10737, 0x0466225b, 0x067d4271, 0x26050f26, 0x091e1401, 0x06215991, 0x2259888f, 0x424a0466, + 0x2921067d, 0x212d8211, 0x9b662338, 0x205b850c, 0x235b8735, 0xb3ff5201, 0x11205b86, 0x01225b82, 0x5b912012, 0x66e30521, 0x52280833, 0x1300008c, + 0x2b010b40, 0x01225982, 0x598c3a2c, 0xbcfe7126, 0x14069e04, 0xd3282b82, 0x07010000, 0xb4004200, 0x56086c82, 0x0200b90e, 0x3ab4d2ff, 0x25230b39, + 0x00352b01, 0x04dbfb02, 0x06bafed9, 0x000d0021, 0x402d001b, 0x0e0e1419, 0x00504007, 0x4f003f01, 0x15000200, 0x0f809207, 0x015f010f, 0x2f000102, + 0xed1a335d, 0x5d2f0132, 0x39cd1a5d, 0x3031cd2f, 0x032e2301, 0x1e333527, 0x88051703, 0xbafe3209, 0x4d512364, 0x10c6103f, 0x15302f2a, 0x236496fe, + 0x200d8252, 0x2d0d84c7, 0x531cd904, 0x151b5158, 0x4c515023, 0x0b8a1b1d, 0x02004208, 0xd9046afc, 0x7f06beff, 0x1c001000, 0x31405200, 0x10040c0d, + 0x40170117, 0x1c3f1c2f, 0x1c031c4f, 0x2f1c0404, 0x8f005f00, 0x04009f00, 0x1608c000, 0x7f041b1b, 0x020c8f0c, 0x0f00800c, 0x02085f08, 0x229d8408, + 0x82325dcc, 0x2f012a98, 0x395dcc1a, 0x182f3d39, 0x23a9822f, 0x3333115d, 0x2634aa83, 0x06062726, 0x36352307, 0x16333736, 0x3e271716, 0x15333703, + 0x3c081183, 0x3364d9fe, 0x6a36346c, 0x75336533, 0x7430c030, 0x21144e33, 0xb4101d1d, 0x65376a2d, 0x5422d904, 0x22543030, 0x45843b1b, 0xc23b8445, + 0x342e2d19, 0x673c1521, 0xfb02002b, 0xfed90489, 0x2fb186dd, 0x042a404a, 0x161f0c03, 0x1c401601, 0x2f1c0c0c, 0x8f339282, 0x04089f08, 0x1600c008, + 0x7f0c1212, 0x02038f03, 0x8a108003, 0x8fcd20aa, 0xcd1a21aa, 0xa086a986, 0x86231521, 0x833720b1, 0x33352808, 0xfc17031e, 0x8474336f, 0x336434a1, + 0x6b35366a, 0x644d6433, 0xb42d6a38, 0x201e1d10, 0x85f40414, 0x851b20a2, 0x2bc329b0, 0x21153c67, 0x192d2e34, 0x08065b41, 0xf8067d20, 0x28001000, + 0x38405e00, 0x20191916, 0x19480e06, 0x2f80111c, 0x4f233f23, 0x04230323, 0x5e412304, 0x1919250c, 0x1818261f, 0x24186241, 0x113932cc, 0x0d664133, + 0x2b393223, 0x13674111, 0x0e141336, 0x23070702, 0x35363627, 0x22232634, 0x36350706, 0x16323336, 0x33107441, 0x2e2214a4, 0x0a560619, 0x2b394137, + 0x0b0b2716, 0x64631f26, 0x330e7d41, 0x2b1d7601, 0x5106151e, 0x251f0983, 0x03031925, 0x45030352, 0x2682dd82, 0x07e9fe23, 0x2bdd8210, 0x4061002c, + 0x0c03043b, 0x2828000c, 0x3a098241, 0x1a1ac000, 0x8e162700, 0x1fdf1fcf, 0x1f031fef, 0x480d0940, 0x8e241f1f, 0x41111119, 0x32281698, 0x33e1332f, + 0xe15d2b2f, 0x332ce382, 0xcc101a2f, 0x112f325d, 0x332f3d39, 0x9e41e083, 0x2201230f, 0xd783022e, 0x033e232d, 0x021e3233, 0x37363233, 0x41030e33, + 0x013410aa, 0x454724be, 0x2a281c40, 0x1d055d0e, 0x252a4130, 0x1a3e454a, 0x5c240d82, 0x41301c05, 0x2a0ebc41, 0x221c5a01, 0x30322a1c, 0x82213b51, + 0x312b2108, 0x00200883, 0x733be982, 0xcdfed904, 0x0b00c106, 0x32001f00, 0x80061940, 0x2f1f0b0b, 0xc00c010c, 0x82051415, 0x8014360a, 0x5f110f1a, + 0x00110211, 0x1a335d2f, 0x2f3232cd, 0x332f01cc, 0x26bd821a, 0xcd1a2f39, 0x42013031, 0x252808f2, 0x2223030e, 0x1e332726, 0x3e27b282, 0x5efd3702, + 0x421e2014, 0x260806f1, 0x2b056f01, 0x92466e4d, 0x046c0691, 0x2c44301b, 0x21334124, 0x19f80505, 0x21352e2c, 0x2c673c15, 0x45633c06, 0x197e8c26, + 0x21084519, 0x958bfc02, 0x1e403829, 0x400b8005, 0x8a481613, 0x0000229a, 0x209a911f, 0x209a88cd, 0x429b842b, 0x172008e4, 0xd1209b8e, 0x2009e342, + 0x2a9a93fc, 0x3c672cdd, 0x2e352115, 0x8e15192c, 0x0731419a, 0x0006072c, 0x002a0013, 0x19214042, 0x8a821c1c, 0x13252528, 0x0001002f, 0x0e820809, + 0xc028222e, 0x08131b1b, 0x050f0e80, 0x0502055f, 0x22063941, 0x421a2f39, 0x332006e2, 0x84053d41, 0x3031220d, 0x209b8d01, 0x11db4227, 0x16323324, + 0xa692cdfe, 0xde422b20, 0x41382c06, 0x27152c39, 0x643a150b, 0x8de30563, 0x1d9632af, 0x06141f2b, 0x20095a29, 0x03182525, 0x45065203, 0x0add4200, + 0x2f00132d, 0x27404800, 0x081d1d1c, 0x842b2b2a, 0x09c030c0, 0xcf192a08, 0xef22df22, 0x27220322, 0x9014141c, 0x2f3227c7, 0x5dcd3333, 0x6b413232, + 0x230e8206, 0x332f3311, 0xc242c791, 0x20c79414, 0x1ac5422f, 0x5020d08f, 0x3b13c542, 0xfe310001, 0x00710142, 0x00140000, 0x0f094018, 0x08080080, + 0x020b1202, 0x332f2f00, 0x2f2ea682, 0x31cc1a33, 0x27341730, 0x15031e33, 0x7b180614, 0x3a080894, 0x818bdb36, 0x1e2f391a, 0x401d6465, 0x192d0e1a, + 0x69ee3422, 0x40341385, 0x685a2a4b, 0x04710808, 0x01002b05, 0x6dfe1000, 0xa6007701, 0x12001100, 0x100109b6, 0x00fa060d, 0x833f2f00, 0x79c42056, + 0xfe7a0708, 0x36220806, 0x77011135, 0x59391a01, 0x163f263f, 0x2e223b0e, 0xd9fea632, 0x24466642, 0x07960911, 0x0131310e, 0x4f88003c, 0x4fb49a20, + 0xe5fe9a22, 0x30204f8b, 0x0282f082, 0x4a011b22, 0x08825782, 0x34200282, 0x01200382, 0x69830382, 0x34000a22, 0x02241786, 0x3e000700, 0x03240b86, + 0x45001500, 0x04210b86, 0x24238900, 0x000c0005, 0x2417865a, 0x00090006, 0x240b8666, 0x004e0007, 0x240b866f, 0x00140008, 0x240b86bd, 0x0067000a, + 0x240b86d1, 0x012e000d, 0x230b8638, 0x012a000e, 0x12203b87, 0x03245f84, 0x09040100, 0x68239382, 0x85009001, 0x0001240b, 0x86f80114, 0x0002240b, + 0x860c020e, 0x0003240b, 0x861a022a, 0x8a04200b, 0x00052423, 0x8644022c, 0x00062417, 0x86700212, 0x0007240b, 0x8682029c, 0x0008240b, 0x861e0328, + 0x000a240b, 0x864603ce, 0x000b240b, 0x86140438, 0x000c240b, 0x864c045c, 0x820d200b, 0x86a8200b, 0x0e54080b, 0x04055400, 0x69676944, 0x657a6974, + 0x61642064, 0x63206174, 0x7279706f, 0x74686769, 0x3220a920, 0x2c373030, 0x6f6f4720, 0x20656c67, 0x70726f43, 0x7461726f, 0x2e6e6f69, 0x696f7244, + 0x61532064, 0x6552736e, 0x616c7567, 0x63734172, 0x65646e65, 0x202d2072, 0x56231b89, 0x82737265, 0x3120242d, 0x8430302e, 0x84308315, 0x69203108, + 0x20612073, 0x64617274, 0x72616d65, 0x666f206b, 0x61326587, 0x6d20646e, 0x62207961, 0x65722065, 0x74736967, 0x99827265, 0x206e6927, 0x74726563, + 0x27078261, 0x6972756a, 0x63696473, 0x73218783, 0x8a77882e, 0x8580899d, 0x75682466, 0x826e616d, 0x73202149, 0x2035af82, 0x69726573, 0x79742066, + 0x61666570, 0x64206563, 0x67697365, 0x2462826e, 0x20726f66, 0x221c8275, 0x826e6920, 0x211b8373, 0x8c832073, 0x656c652f, 0x6f727463, 0x2063696e, + 0x6d6d6f63, 0x41088275, 0x4c210503, 0x20f28269, 0x20398273, 0x27f88475, 0x20656874, 0x63617041, 0x19860682, 0x41202c21, 0x322e0700, 0x7468302e, + 0x2f3a7074, 0x7777772f, 0x2584612e, 0x726f2e25, 0x856c2f67, 0x2f732943, 0x4543494c, 0x2d45534e, 0x00252982, 0x00690044, 0x20038267, 0x26038274, + 0x0065007a, 0x82200064, 0x00612403, 0x82610074, 0x00632809, 0x0070006f, 0x84720079, 0x82682025, 0x00202215, 0x221782a9, 0x82300032, 0x00372201, + 0x200b822c, 0x20238247, 0x2043826f, 0x223d826c, 0x82430020, 0x8272200d, 0x826f2033, 0x20458333, 0x220f8269, 0x822e006e, 0x82722067, 0x84692009, + 0x8253205f, 0x006e245b, 0x82520073, 0x00672631, 0x006c0075, 0x202d8261, 0x20118241, 0x20118263, 0x2023826e, 0x220f8265, 0x822d0020, 0x8244205d, + 0x826f2009, 0x8797837d, 0x82562037, 0x82722025, 0x225b852d, 0x82310020, 0x228f835f, 0x82620020, 0x8269204d, 0x8264204f, 0x82312039, 0x8a322017, + 0x8b3d8777, 0x82692051, 0x84202045, 0x847420e9, 0x826420af, 0x846d2059, 0x826b208d, 0x006f2241, 0x21df9066, 0x9f830061, 0x83002021, 0x82792025, + 0x8462201d, 0x847220f5, 0x204d83c9, 0x419b8474, 0x69200547, 0x20222b82, 0x11846300, 0x55827420, 0x6a200f85, 0x7220a382, 0x7322d182, 0x05826400, + 0x74006322, 0x6f200582, 0x73202982, 0x0341c582, 0x154f4111, 0x20131541, 0x85538420, 0x826820cd, 0x20a18363, 0x2013846e, 0x20a78274, 0x207f8273, + 0x20ed846e, 0x208f8473, 0x24db8469, 0x00790074, 0x200f8270, 0x201d8266, 0x20c98463, 0x20058264, 0x20358273, 0x85918267, 0x006624c5, 0x8272006f, + 0x82752041, 0x0597413d, 0x7420c783, 0x37874584, 0x1f827320, 0x22071941, 0x826c0065, 0x20d7831b, 0x83398272, 0x42632081, 0x6d220649, 0x97826d00, + 0x1b421185, 0x0068220b, 0x24018274, 0x003a0070, 0x2101822f, 0x01830077, 0x91822e20, 0x42007321, 0x63200b0f, 0x70228784, 0x15822e00, 0x49826f20, + 0xb7002f21, 0x8df58737, 0x827220eb, 0x842e20df, 0x826d2053, 0x004c22c1, 0x207d8669, 0x20cd8273, 0x42ff8464, 0x74200999, 0x65202782, 0x41221382, + 0xa7827000, 0x0d866320, 0x2c20338d, 0xa9421f82, 0x8232200f, 0x983020bd, 0x204b89b7, 0x22eb842e, 0x822f0067, 0x20878b89, 0x2a118273, 0x0049004c, + 0x00450043, 0x8253004e, 0x002d2105, 0x00235385, 0x84000200, 0x66ff2300, 0x08846600, 0x0325048e, 0x01000082, 0x08258202, 0x04000338, 0x06000500, + 0x08000700, 0x0a000900, 0x0c000b00, 0x0e000d00, 0x10000f00, 0x12001100, 0x14001300, 0x16001500, 0x18001700, 0x1a001900, 0x1c001b00, 0x1e001d00, + 0xcf821f00, 0x22002130, 0x24002300, 0x26002500, 0x28002700, 0xc6192900, 0x6f0e7061, 0x00a300ac, 0x00850084, 0x009600bd, 0x008600e8, 0x008b008e, + 0x00a9009d, 0x000301a4, 0x0004018a, 0x00930083, 0x00f300f2, 0x0097008d, 0x00050188, 0x00f100de, 0x00aa009e, 0x00f400f5, 0x00a200f6, 0x00c900ad, + 0x00ae00c7, 0x00630062, 0x00640090, 0x006500cb, 0x00ca00c8, 0x00cc00cf, 0x00ce00cd, 0x006600e9, 0x00d000d3, 0x00af00d1, 0x00f00067, 0x00d60091, + 0x00d500d4, 0x00eb0068, 0x008900ed, 0x0069006a, 0x006d006b, 0x006e006c, 0x006f00a0, 0x00700071, 0x00730072, 0x00740075, 0x00770076, 0x007800ea, + 0x0079007a, 0x007d007b, 0x00b8007c, 0x007f00a1, 0x0080007e, 0x00ec0081, 0x01ba00ee, 0x01070106, 0x01090108, 0x000b010a, 0x01fe00fd, 0x010d010c, + 0x000f010e, 0x010001ff, 0x01110110, 0x01130112, 0x01150114, 0x01170116, 0x01190118, 0x011b011a, 0x011d011c, 0x001f011e, 0x01f900f8, 0x01210120, + 0x01230122, 0x01250124, 0x01270126, 0x01290128, 0x012b012a, 0x012d012c, 0x012f012e, 0x01d70030, 0x01320131, 0x01340133, 0x01360135, 0x01380137, + 0x013a0139, 0x013c013b, 0x013e013d, 0x00e2003f, 0x014001e3, 0x01420141, 0x01440143, 0x01460145, 0x01480147, 0x014a0149, 0x014c014b, 0x004e014d, + 0x01b100b0, 0x0150014f, 0x01520151, 0x01540153, 0x01560155, 0x00580157, 0x00fc00fb, 0x01e500e4, 0x015a0159, 0x015c015b, 0x015e015d, 0x0160015f, + 0x01620161, 0x01640163, 0x01660165, 0x01680167, 0x016a0169, 0x016c016b, 0x006e016d, 0x016f01bb, 0x01710170, 0x00e60072, 0x007301e7, 0x017401a6, + 0x01760175, 0x01780177, 0x017a0179, 0x00d8007b, 0x007c01e1, 0x00dc00db, 0x00e000dd, 0x01df00d9, 0x017e017d, 0x0180017f, 0x01820181, 0x01840183, + 0x01860185, 0x01880187, 0x018a0189, 0x018c018b, 0x018e018d, 0x0190018f, 0x01920191, 0x01940193, 0x01960195, 0x01980197, 0x019a0199, 0x019c019b, + 0x019e019d, 0x01a0019f, 0x01a201a1, 0x01a401a3, 0x01a601a5, 0x01a801a7, 0x01aa01a9, 0x01ac01ab, 0x01ae01ad, 0x01b001af, 0x01b201b1, 0x01b401b3, + 0x019b00b5, 0x01b701b6, 0x01b901b8, 0x01bb01ba, 0x01bd01bc, 0x01bf01be, 0x01c101c0, 0x01c301c2, 0x01c501c4, 0x01c701c6, 0x01c901c8, 0x01cb01ca, + 0x01cd01cc, 0x01cf01ce, 0x01d101d0, 0x01d301d2, 0x01d501d4, 0x01d701d6, 0x01d901d8, 0x01db01da, 0x01dd01dc, 0x01df01de, 0x01e101e0, 0x01e301e2, + 0x01e501e4, 0x01e701e6, 0x01e901e8, 0x01eb01ea, 0x01ed01ec, 0x01ef01ee, 0x01f101f0, 0x01f301f2, 0x01f501f4, 0x01f701f6, 0x01f901f8, 0x01fb01fa, + 0x01fd01fc, 0x02ff01fe, 0x02010200, 0x02030202, 0x02050204, 0x02070206, 0x02090208, 0x020b020a, 0x020d020c, 0x020f020e, 0x02110210, 0x02130212, + 0x02150214, 0x02170216, 0x02190218, 0x021b021a, 0x021d021c, 0x021f021e, 0x02210220, 0x02230222, 0x02250224, 0x02270226, 0x00290228, 0x02b300b2, + 0x002b022a, 0x00b700b6, 0x002c02c4, 0x00b500b4, 0x008200c5, 0x008700c2, 0x02c600ab, 0x002e022d, 0x02bf00be, 0x02bc002f, 0x02f70030, 0x02320231, + 0x02340233, 0x00360235, 0x029f008c, 0x02380237, 0x023a0239, 0x0298003b, 0x009a003c, 0x00ef0099, 0x009200a5, 0x00a7009c, 0x0094008f, 0x02b90095, + 0x023e023d, 0x0240023f, 0x02420241, 0x02440243, 0x02460245, 0x02480247, 0x024a0249, 0x024c024b, 0x024e024d, 0x0250024f, 0x02520251, 0x02540253, + 0x02560255, 0x02580257, 0x025a0259, 0x025c025b, 0x025e025d, 0x0260025f, 0x02620261, 0x02640263, 0x02660265, 0x02680267, 0x026a0269, 0x026c026b, + 0x026e026d, 0x0270026f, 0x02720271, 0x02740273, 0x02760275, 0x02780277, 0x027a0279, 0x027c027b, 0x027e027d, 0x0280027f, 0x02820281, 0x02840283, + 0x02860285, 0x02880287, 0x028a0289, 0x028c028b, 0x028e028d, 0x0290028f, 0x02920291, 0x02940293, 0x02960295, 0x02980297, 0x029a0299, 0x029c029b, + 0x029e029d, 0x02a0029f, 0x02a202a1, 0x02a402a3, 0x02a602a5, 0x02a802a7, 0x02aa02a9, 0x02ac02ab, 0x02ae02ad, 0x02b002af, 0x02b202b1, 0x02b402b3, + 0x02b602b5, 0x02b802b7, 0x02ba02b9, 0x02bc02bb, 0x02be02bd, 0x02c002bf, 0x02c202c1, 0x02c402c3, 0x02c602c5, 0x02c802c7, 0x02ca02c9, 0x02cc02cb, + 0x02ce02cd, 0x02d002cf, 0x02d202d1, 0x02d402d3, 0x02d602d5, 0x02d802d7, 0x02da02d9, 0x02dc02db, 0x02de02dd, 0x02e002df, 0x02e202e1, 0x02e402e3, + 0x02e602e5, 0x02e802e7, 0x02ea02e9, 0x02ec02eb, 0x02ee02ed, 0x02f002ef, 0x02f202f1, 0x02f402f3, 0x02f602f5, 0x02f802f7, 0x02fa02f9, 0x02fc02fb, + 0x02fe02fd, 0x030003ff, 0x03020301, 0x03040303, 0x03060305, 0x03080307, 0x030a0309, 0x030c030b, 0x030e030d, 0x0310030f, 0x03120311, 0x03140313, + 0x03160315, 0x03180317, 0x031a0319, 0x031c031b, 0x031e031d, 0x0320031f, 0x03220321, 0x03240323, 0x03260325, 0x03280327, 0x032a0329, 0x032c032b, + 0x032e032d, 0x0330032f, 0x03320331, 0x03340333, 0x03360335, 0x03380337, 0x033a0339, 0x033c033b, 0x033e033d, 0x0340033f, 0x03420341, 0x03440343, + 0x03460345, 0x03480347, 0x034a0349, 0x034c034b, 0x034e034d, 0x0350034f, 0x03520351, 0x03540353, 0x03560355, 0x03580357, 0x035a0359, 0x035c035b, + 0x035e035d, 0x0360035f, 0x03620361, 0x03640363, 0x03660365, 0x03680367, 0x036a0369, 0x036c036b, 0x036e036d, 0x0370036f, 0x03720371, 0x03740373, + 0x03760375, 0x03780377, 0x037a0379, 0x037c037b, 0x037e037d, 0x0380037f, 0x03820381, 0x03840383, 0x03860385, 0x03880387, 0x058a0389, 0x6c756e2e, + 0x6e75076c, 0x41303069, 0x766f0944, 0x63737265, 0x0e65726f, 0x69726570, 0x6563646f, 0x7265746e, 0x41076465, 0x7263616d, 0x61076e6f, 0x06280785, + 0x65726241, 0x61066576, 0x07290684, 0x6f676f41, 0x076b656e, 0x2d078561, 0x6963430b, 0x6d756372, 0x78656c66, 0x0b89630b, 0x64430426, 0x6304746f, + 0x06230482, 0x82616344, 0x6406214e, 0x44250685, 0x616f7263, 0x830d8274, 0x45072106, 0x07216385, 0x21078565, 0x64844506, 0x84650621, 0x450a2106, + 0x61213e82, 0x21988363, 0x0a88650a, 0x85450721, 0x65072179, 0x06210785, 0x20588545, 0x21068465, 0x8389470b, 0x89670b21, 0x4704210b, 0x04214082, + 0x26048267, 0x6f63470c, 0x85616d6d, 0x670c2157, 0x0b210c8a, 0x212f8948, 0x0b89680b, 0x62480426, 0x68047261, 0x06280482, 0x6c697449, 0x69066564, + 0x07210684, 0x21b58549, 0x07856907, 0x84490621, 0x690621b6, 0x07210684, 0x219f8549, 0x07856907, 0x88490a21, 0x490227c2, 0x6a69024a, 0x62894a0b, + 0x896a0b21, 0x4b0c210b, 0x0c21938a, 0x330c8c6b, 0x65657267, 0x6e616c6e, 0x06636964, 0x7563614c, 0x6c066574, 0x0c210684, 0x20278b4c, 0x280c8a6c, + 0x61634c06, 0x066e6f72, 0x2106846c, 0x85824c04, 0x826c0421, 0x4e062104, 0x6e203f85, 0x4e203f85, 0x0c21328a, 0x210c8a6e, 0x38844e06, 0x846e0621, + 0x6e0b3506, 0x736f7061, 0x706f7274, 0x45036568, 0x6503676e, 0x4f07676e, 0x0721ff85, 0x2807856f, 0x72624f06, 0x06657665, 0x2f06846f, 0x75684f0d, + 0x7261676e, 0x616c6d75, 0x6f0d7475, 0x06210d8b, 0x217c8452, 0x06847206, 0x8a520c21, 0x720c2176, 0x06210c8a, 0x217c8452, 0x06857206, 0x2e845320, + 0x84730621, 0x530b2106, 0x21093a41, 0x0b89730b, 0x8a540c21, 0x740c2140, 0x06210c8a, 0x20468554, 0x26068474, 0x61625404, 0x82740472, 0x55062804, + 0x646c6974, 0x84750665, 0x55072106, 0x0721cd85, 0x21078575, 0xce845506, 0x84750621, 0x55052706, 0x676e6972, 0x05837505, 0x8c550d21, 0x8b7520e1, + 0x5507210d, 0x2105fd41, 0x07857507, 0x89570b21, 0x770b21a1, 0x59200b8a, 0x79200b8a, 0x06210b89, 0x21e4845a, 0x06847a06, 0x425a0a21, 0x0a210843, + 0x270a887a, 0x6e6f6c05, 0x410a7367, 0x26858b83, 0x0a886120, 0x45410722, 0x07221284, 0x07846561, 0x734f0b26, 0x6873616c, 0x6f200b85, 0x0c210b89, + 0x0a204153, 0x8a730c21, 0x8506200c, 0x74052efe, 0x736f6e6f, 0x6569640d, 0x69736572, 0x250d8473, 0x706c410a, 0x0a846168, 0x6e61092e, 0x6c65746f, + 0x0c616965, 0x69737045, 0x16849182, 0x74450822, 0x49211f86, 0x2709866f, 0x696d4f0c, 0x6e6f7263, 0x0c211f84, 0x242c8a55, 0x656d4f0a, 0x212e8567, + 0x2e826911, 0x05206b8c, 0x04336b84, 0x61746542, 0x6d614705, 0x7507616d, 0x3330696e, 0x86073439, 0x5a04216f, 0x03201a82, 0x05226f82, 0x09826854, + 0x70830420, 0x614b0536, 0x06617070, 0x626d614c, 0x4d026164, 0x754e0275, 0x07695802, 0x02318186, 0x52036950, 0x53056f68, 0x616d6769, 0x75615403, + 0x258d8607, 0x69685003, 0x03824303, 0x69735022, 0x41226685, 0x4f830c39, 0x0f209187, 0x0f872886, 0x41610a21, 0x0c210808, 0x20d18a65, 0x84888208, + 0x830920e7, 0x210984cf, 0x1f857514, 0x3f84dc8d, 0x82620421, 0x6705212e, 0x0526dc83, 0x746c6564, 0x4b860761, 0x827a0421, 0x82032018, 0x74052103, + 0x4c83da84, 0x846b0521, 0x846c20da, 0x29a485da, 0x6e024342, 0x69780275, 0x61416f07, 0x72032505, 0x73066f68, 0x3121dc83, 0x21068405, 0xe3827403, + 0x03217f86, 0x20df8270, 0x82038263, 0x6f05268e, 0x6167656d, 0x0b73410c, 0xa68e0f20, 0x53860c20, 0x0c20c384, 0x0c841c86, 0x3c840a20, 0x09290a84, + 0x69696661, 0x32303031, 0x21098733, 0x09883135, 0x09883220, 0x34201d89, 0x35201388, 0x36200988, 0x37200988, 0x38200988, 0x39200988, 0x36210987, + 0x88098830, 0x87362063, 0x34312163, 0x31204f88, 0x31204588, 0x31204588, 0x32204588, 0x32204588, 0x32204588, 0x3220a988, 0x32209f88, 0x32204f88, + 0x32209f88, 0x32205988, 0x32205988, 0x33205988, 0x33205988, 0x33205988, 0x33205988, 0x20080341, 0x20638833, 0x20638833, 0x20638833, 0x20638833, + 0x20638833, 0x20638833, 0x20638834, 0x20638834, 0x20638834, 0x20638834, 0x41638834, 0x34200917, 0x34206388, 0x34206388, 0x34206388, 0x36206388, + 0x36209588, 0x36203188, 0x36203188, 0x36203188, 0x37203188, 0x37209588, 0x37208b88, 0x37208b88, 0x37208b88, 0x37205988, 0x37205988, 0x37205988, + 0x37205988, 0x38205988, 0x38205988, 0x3820ef88, 0x38206388, 0x38206388, 0x38206388, 0x38206388, 0x38206388, 0x38206388, 0x38206388, 0x39206388, + 0x39206388, 0x39206388, 0x39206388, 0x39206388, 0x39206388, 0x39206388, 0x39206388, 0x37206388, 0x63874589, 0x87303121, 0x30312163, 0x31211d87, + 0x08bb4230, 0x63873020, 0x87303121, 0x30312163, 0x31216387, 0x21638730, 0x63873031, 0x87303121, 0x303121c7, 0x31206388, 0xb3896388, 0xdb893520, + 0x57063829, 0x76617267, 0x85770665, 0x61572406, 0x82747563, 0x2106840d, 0x9d445709, 0x77092107, 0x06210987, 0x20288559, 0x2d068479, 0x69666109, + 0x32303069, 0x750d3830, 0x484a646e, 0x62642b06, 0x75710d6c, 0x7265746f, 0x12827665, 0x06646525, 0x836e696d, 0x65732c55, 0x646e6f63, 0x63786509, + 0x826d616c, 0x6e092925, 0x65707573, 0x726f6972, 0x382f4785, 0x06313439, 0x65736570, 0x45046174, 0x846f7275, 0x31362215, 0x068f4232, 0x9f410982, + 0x31363d06, 0x09323533, 0x69747365, 0x6574616d, 0x6e6f0964, 0x67696565, 0x0c687468, 0x65726874, 0x73240b86, 0x7669660b, 0x0c210b87, 0x208b8273, + 0x2e24856e, 0x65440573, 0x0761746c, 0x46696e75, 0x86313042, 0x0d322a07, 0x69727963, 0x63696c6c, 0x2db78362, 0x746f6408, 0x7373656c, 0x6163106a, + 0x08496f72, 0x470b200b, 0x11200a14, 0x72220b8a, 0x8c82746f, 0x657a0c24, 0xd6876f72, 0x6f660c24, 0x0c897275, 0x0c878e82, 0x69730b23, 0x200b8778, + 0x889b840d, 0x88a4840d, 0x696e2334, 0x0c87656e, 0x3223a983, 0x86303030, 0x23b98407, 0x32303032, 0x33200f86, 0x34200786, 0x35200786, 0x36200786, + 0x37200786, 0x38200786, 0x39200786, 0x41200786, 0x42200786, 0x46230783, 0x84464645, 0x46462207, 0x20078643, 0x23078344, 0x30463130, 0x32210784, + 0x23178442, 0x31443330, 0x33210f84, 0x827f8444, 0x2367840f, 0x45334531, 0x07821783, 0x31214784, 0x82af8545, 0x222f8407, 0x85344631, 0x46322b4f, + 0x61640933, 0x6f616973, 0x8b416978, 0x2bc18407, 0x34304246, 0x6f684f05, 0x6f056e72, 0x55200584, 0x75200584, 0x71850583, 0x30215185, 0x05bb4133, + 0x332e0782, 0x6f6f6804, 0x6f64086b, 0x6c656274, 0x2584776f, 0x25863420, 0x85303421, 0x3534216f, 0x3421bf85, 0x200f8635, 0x200f8636, 0x22978436, + 0x85363430, 0x363421c7, 0x0f828584, 0x47853420, 0x86353621, 0x82df8407, 0x86372017, 0x8638200f, 0x86392007, 0x86412007, 0x86422007, 0x05274107, + 0x87363421, 0x8645206f, 0x85462017, 0x30372107, 0x31200786, 0x7f860786, 0x7f863720, 0x7f863720, 0x7f863720, 0x7f863720, 0x7f863720, 0x7f863720, + 0x7f863720, 0x7f863720, 0x7f863720, 0x7f863720, 0x7f863720, 0x7f863720, 0x7f863720, 0x85303821, 0x31382177, 0x7f860786, 0x7f863820, 0x7f863820, + 0x7f863820, 0x7f863820, 0x77863820, 0x77863820, 0x77863820, 0x77863820, 0x77863820, 0x77863820, 0x77863820, 0x77863820, 0x67863920, 0x67863920, + 0x67863920, 0x67863920, 0x67863920, 0xe7863920, 0x6f863920, 0x6f863920, 0x6f863920, 0x6f863920, 0x6f863920, 0x6f863920, 0x6f863920, 0x6f863920, + 0x85304121, 0x314121df, 0x7f860786, 0x7f864120, 0x7f864120, 0x7f864120, 0x7f864120, 0x7f864120, 0x7f864120, 0x7f864120, 0x7f864120, 0x7f864120, + 0x7f864120, 0x7f864120, 0x7f864120, 0x7f864120, 0x85304221, 0x31422177, 0x7f860786, 0x7f864220, 0x7f864220, 0x7f864220, 0x7f864220, 0x7f864220, + 0x7f864220, 0x7f864220, 0x7f864220, 0x7f864220, 0x21068f43, 0x7f864234, 0x7f864220, 0x7f864220, 0x85304321, 0x31432177, 0x7f860786, 0x7f864320, + 0x7f864320, 0x7f864320, 0x7f864320, 0x7f864320, 0x7f864320, 0x7f864320, 0x7f864320, 0x7f864320, 0xff864320, 0x7f864320, 0x7f864320, 0x7f864320, + 0x85304421, 0x062f4477, 0x2f443420, 0x44342106, 0x44207f86, 0x44207f86, 0x44207f86, 0x44207f86, 0x44207f86, 0x44207f86, 0x44207f86, 0x44207f86, + 0x44207f86, 0x44207f86, 0x44207f86, 0x44207f86, 0x45207f86, 0x45217f86, 0x20878531, 0x20ff8645, 0x207f8645, 0x207f8645, 0x207f8645, 0x207f8645, + 0x207f8645, 0x207f8645, 0x207f8645, 0x207f8645, 0x207f8645, 0x207f8645, 0x207f8645, 0x207f8645, 0x457f8645, 0x34220637, 0x7f853146, 0x7f864620, + 0x7f864620, 0x7f864620, 0x7f864620, 0x7f864620, 0x7f864620, 0x7f864620, 0x7f864620, 0x7f864620, 0x7f864620, 0x2205a745, 0x86463430, 0x8646207f, + 0x05c7457f, 0x45353021, 0x35200607, 0x20062d45, 0x052f4635, 0x7f851782, 0x85303521, 0x3035217f, 0x35217f85, 0x217f8530, 0x7f853035, 0x85303521, + 0x3035217f, 0x35217f85, 0x217f8530, 0x7f853035, 0x85303521, 0x303521ff, 0x35217f85, 0x217f8530, 0xff853035, 0x30313522, 0x3522f784, 0x07863131, + 0x3521ff85, 0x217f8431, 0x9f434531, 0x84078205, 0x8407821f, 0x8707821f, 0x829f841f, 0x829f840f, 0x829f8407, 0x829f8407, 0x829f8407, 0x829f8407, + 0x829f8407, 0x829f8407, 0x829f8407, 0x829f8407, 0x829f8407, 0x219f8407, 0x9f434531, 0x20078205, 0x05b74631, 0x7f864220, 0x82059f43, 0x437f8617, + 0x0f82059f, 0x9f437f86, 0x860f8205, 0x059f437f, 0x7f860f82, 0x82059f43, 0x437f860f, 0x0f82059f, 0x9f437f86, 0x45312105, 0x82059f43, 0x207f8607, + 0x437f8643, 0x1782059f, 0x9f437f86, 0x860f8205, 0x059f437f, 0x7f860f82, 0x82059f43, 0x437f860f, 0x0f82059f, 0x9f437f86, 0x860f8205, 0x059f437f, + 0x43453121, 0x0782059f, 0x9f437f86, 0x410f8205, 0x9f43067f, 0x410f8205, 0x9f43067f, 0x410f8205, 0x9f43067f, 0x410f8205, 0x9f43067f, 0x410f8205, + 0x9f43067f, 0x410f8205, 0x9f43067f, 0x410f8205, 0x9f43067f, 0x45312105, 0x82059f43, 0x43ff8607, 0x0f82059f, 0x9f43ff86, 0x860f8205, 0x059f43ff, + 0xff860f82, 0x82059f43, 0x43ff860f, 0x0f82059f, 0x9f43ff86, 0x860f8205, 0x059f43ff, 0x43453121, 0x0782059f, 0xff413120, 0x058f4305, 0xef860f82, + 0x82058f43, 0x43ef860f, 0x0f82058f, 0x3221ef84, 0x06074630, 0x46303323, 0x09af5113, 0x75636128, 0x6f636574, 0x138a626d, 0x61726723, 0x20138476, + 0x23278912, 0x6b6f6f68, 0x7423268e, 0x84646c69, 0x620e2526, 0x65766572, 0x0e854988, 0x0d204488, 0x3f871d84, 0x3a881c85, 0xcb4a1020, 0x241f8307, + 0x7466656c, 0x08dc4a11, 0x83676921, 0x43552113, 0x4c22118f, 0x00820043, 0x0500022a, 0xffff0200, 0x01000300, 0x0c200d82, 0x16200382, 0x0d821584, + 0x82810321, 0x82042013, 0x860b820d, 0x000a2e05, 0x002c001e, 0x74616c01, 0x0008006e, 0x20158204, 0x203b8200, 0x23078201, 0x72656b01, 0x00211383, + 0x820d8400, 0x8202201b, 0x83012021, 0x3aa52103, 0x38080d82, 0x03f00100, 0x07ea03ea, 0x085a074c, 0x095a07d4, 0x0bc00a32, 0x0d100c22, 0x0f240e3e, + 0x11f00f0a, 0x13ac127e, 0x14b01482, 0x196019de, 0x21901dee, 0x27682336, 0x284c0782, 0x20018268, 0x2603826e, 0x291a2980, 0x82362930, 0x68300809, + 0x56294829, 0xd4296e28, 0xea29ea29, 0xda2a002a, 0x4c07f02a, 0xc82bba2b, 0x242ed62b, 0xd62b242e, 0xac326630, 0xfe34220b, 0xfe34e435, 0x240efe34, + 0x36230185, 0x874437c2, 0x7e112301, 0x01859e38, 0x84a83921, 0x82658361, 0x48292503, 0x623e6e28, 0x6c220186, 0x01877a3e, 0x3e482923, 0x26018694, + 0x0924409e, 0x83682832, 0x42402703, 0x220b6828, 0x01836e28, 0x41210783, 0x214b85d4, 0x07835242, 0x42240e23, 0x23db8358, 0xf00f3629, 0x41210183, + 0x850583d4, 0x7e112121, 0x4820c382, 0x3f850585, 0x28424329, 0x444c446e, 0x82d4414c, 0x836020ff, 0x901d3103, 0x6823ea29, 0xc248da2a, 0x82278227, + 0x4e50384d, 0x3f087383, 0x1c516e28, 0x58514a51, 0x18528651, 0x8c522652, 0x2854ca53, 0xb858ee55, 0xf459da58, 0xb45a0a5a, 0x005ef25d, 0xf45f1a5f, + 0x40649a60, 0x2065f664, 0xb0657e65, 0x7066be65, 0x306a2a6a, 0x4a6a6828, 0x9c380782, 0xd06aa26a, 0x086bda6a, 0x7a6b6828, 0xe26bbc6b, 0x366c186c, + 0x5a6c446c, 0x6c2c0382, 0xc46c8a6c, 0x4829d66c, 0x3e6d2c6d, 0x8d08a383, 0x6e6e8c6d, 0xb672646f, 0x4a733473, 0x9274b473, 0x2a766475, 0x5678a076, + 0x1a7cf479, 0x4a7dc47c, 0x9280887f, 0xf2815881, 0x7e842483, 0x9e869485, 0x768de88b, 0xda8e208e, 0x96909c8f, 0x92911091, 0x96922092, 0x8293fc92, + 0x32941494, 0xaa947494, 0xa2952c95, 0xb2962896, 0x5e970097, 0xb2982098, 0x9a992499, 0x4a9af099, 0xb09a6e28, 0x689b229b, 0xaa9b6e28, 0x6e28b89b, + 0x2a9c6e28, 0xba9c349c, 0x3e9d389d, 0x269eb09d, 0x901d1494, 0x0387ea29, 0x2a682325, 0x8290a1da, 0x9e200801, 0x32099ea1, 0xaca43209, 0x7494eea4, + 0x20982483, 0x28961091, 0x00979485, 0xf479f479, 0xaa949280, 0x83250383, 0x84289624, 0x2305837e, 0x2098e88b, 0x79820383, 0x0f832020, 0x98270385, + 0x8e30a520, 0x839a99da, 0x7e84293b, 0x9e862896, 0x2a765e97, 0x96211183, 0x87058328, 0x83078347, 0x831f850f, 0x8369833b, 0x9e86230d, 0x03832098, + 0x03871d83, 0x832a7627, 0x73248324, 0x8535834a, 0x2119874d, 0x9d834a73, 0x83749421, 0x289621b1, 0xa5874783, 0x11853183, 0x96219985, 0x83b18728, + 0x21698507, 0x93875e97, 0xa385d185, 0x3f85cd89, 0x27839983, 0x95320921, 0x0bf54201, 0x2505ad42, 0x7e11240e, 0x03974829, 0x87aca421, 0x60192501, + 0xeea46019, 0x23230187, 0x87da2a68, 0xd8002f03, 0xaeff2400, 0x29002c00, 0x52003700, 0x03823900, 0x66003a24, 0x0f823b00, 0x0b823c20, 0x07823d20, + 0xc3ff4624, 0x03824700, 0x03824820, 0xd7ff4a24, 0x07825200, 0x03825420, 0x1b825720, 0x03825920, 0x14005a24, 0x07825c00, 0x47828220, 0x03828320, + 0x03828420, 0x03828520, 0x03828620, 0x03828720, 0x5cff8824, 0x1f828e00, 0x03828f20, 0x03829020, 0x03829120, 0x5b829f20, 0x4382a820, 0x0382a920, + 0x0382aa20, 0x0382ab20, 0x0382ac20, 0x0382ad20, 0x0382b420, 0x0382b520, 0x0382b620, 0x0382b720, 0x0382b820, 0x0382ba20, 0x3782bf20, 0x0382c120, + 0x5382c220, 0x0382c420, 0x0382c620, 0x1782c920, 0x0382cb20, 0x0382cd20, 0x0382cf20, 0x0382d520, 0x0382d720, 0x0382d920, 0x0382db20, 0x0382dd20, + 0x3382ec20, 0x0382f020, 0x2900f228, 0xc3ff0f01, 0x03821101, 0x03821320, 0x03821520, 0x52002424, 0x03822601, 0x66003628, 0x14003701, 0x0b823801, + 0x27823920, 0x07823a20, 0x07823b20, 0x0121ff82, 0x2407823f, 0x01aeff43, 0x2003825f, 0x20038269, 0x201b8271, 0x203b8279, 0x2003827e, 0x201b8280, + 0x20078282, 0x2007828a, 0x2007828c, 0x2003828e, 0x82038290, 0x930121e3, 0x94200782, 0x96201782, 0x99200782, 0x9b200382, 0x9d200382, 0xa4243b82, + 0xa6019aff, 0xa8240782, 0xaa013d00, 0xae244f82, 0xb00185ff, 0xb1200b82, 0xb5207f82, 0xbc200b82, 0xbd201b82, 0xef820f82, 0x82c40121, 0x21d7820b, + 0x3b82d801, 0x0382db20, 0x4f82dc20, 0x0382dd20, 0x0b82de20, 0x0382ea20, 0x0382ed20, 0xbb82fa20, 0x3b82fb20, 0x0782fc20, 0x0782fd20, 0x0782fe20, + 0x1400ff30, 0x52000002, 0x29000102, 0xaeff2802, 0x03825802, 0xc3ff6024, 0x03826a02, 0x13826d20, 0x0f827220, 0x3d007624, 0x0f827f02, 0x0f828120, + 0x03828320, 0x0b828520, 0x03828720, 0x03828920, 0x0f828b20, 0x07828d20, 0x23829f20, 0x4782a920, 0x0f82aa20, 0x0f82b220, 0x0382b420, 0x0f82b520, + 0x0f82b620, 0x0782b720, 0x0782b820, 0x0782b920, 0x0782ba20, 0x2b82bb20, 0x0b82bd20, 0x0782ca20, 0x85ffce24, 0x6382d902, 0x0382db20, 0x0382dd20, + 0x3782e020, 0x1782e520, 0x0782f020, 0x0382f220, 0x0382f420, 0x0f82f720, 0x3782f820, 0x0782f920, 0x0782fa20, 0x0782fb20, 0x2900fc28, 0x3d000503, + 0x03820703, 0xc3ff0a24, 0x03820c03, 0x13820e20, 0x03821020, 0x85ff1124, 0x0f821603, 0x52001724, 0x0f821803, 0x0b821a20, 0x13821b20, 0xaeff1d24, + 0x03821f03, 0x03822120, 0x03822320, 0x03822520, 0x03822720, 0x03822920, 0x03822b20, 0x03822d20, 0x03822f20, 0x03823120, 0x03823320, 0x37823620, + 0x03823820, 0x03823a20, 0x03823c20, 0x03823e20, 0x03824020, 0x03824220, 0x03824420, 0x5b824520, 0x03824720, 0x0b824a20, 0x03824c20, 0x03824e20, + 0x03825020, 0x03825220, 0x03825420, 0x03825620, 0x03825820, 0x03825a20, 0x03825c20, 0x03825e20, 0x03826020, 0x97826f20, 0x37827020, 0x07827120, + 0x07827220, 0x07827320, 0x2900742e, 0x2d000300, 0xf6007b00, 0xa3017b00, 0x5e260782, 0xc3ff2600, 0x03822a00, 0x03823220, 0x03823420, 0x9aff3728, + 0xd7ff3800, 0x07823900, 0xaeff3a24, 0x07823c00, 0x17828920, 0x03829420, 0x03829520, 0x03829620, 0x03829720, 0x03829820, 0x03829a20, 0x2b829b20, + 0x03829c20, 0x03829d20, 0x03829e20, 0x2f829f20, 0x1782c820, 0x0382ce20, 0x0382de20, 0x0382e020, 0x0382e220, 0xc3ffe424, 0x03820e01, 0x03821220, + 0x9aff2424, 0x03822601, 0xd7ff2c24, 0x03823001, 0x03823220, 0x03823420, 0xaeff3624, 0x17823801, 0x03823a20, 0x27826620, 0x03826d20, 0x0b827120, + 0x0782b820, 0x0382bb20, 0x0b82bc20, 0x2382fa20, 0x0382fc20, 0xaefffe30, 0x9aff0002, 0xc3ff5f02, 0xd7ff6102, 0x07826c02, 0x03827e20, 0x03828420, + 0x03828620, 0x03828820, 0x03828a20, 0x03828c20, 0x2782a920, 0x0782b120, 0x0382b320, 0x0b82b520, 0x0382b720, 0x0382b920, 0x0382bd20, 0x1382e120, + 0x0382e320, 0x0382ef20, 0x0382f120, 0xc3fff324, 0x03821503, 0x9aff1724, 0x07821903, 0x03824920, 0x03824b20, 0x03824d20, 0x03824f20, 0x03825120, + 0x03825320, 0x03825520, 0x03825720, 0x03825920, 0x03825b20, 0x03825d20, 0x03258b82, 0x03d7ff61, 0x20038263, 0x20038265, 0x20038267, 0x20038269, + 0x2003826b, 0x2003826d, 0x2053826f, 0x26038271, 0x009aff73, 0x82370017, 0x250d82cd, 0xc3ff7201, 0xfd82b001, 0x0382b520, 0xc420e183, 0x7620d982, + 0x9f20d182, 0xb9830382, 0xbb20b18b, 0xbd201382, 0xca20b582, 0xce200782, 0xe5200382, 0x05205582, 0x07200382, 0x11200382, 0xb5830382, 0xd7ff1b2a, + 0x05006300, 0x0a00aeff, 0x26240382, 0x2a00ecff, 0x32200382, 0x34200382, 0x37240382, 0x380085ff, 0x39240782, 0x3a00c3ff, 0xdf412982, 0x00ec2205, + 0x20138294, 0x20038295, 0x20038296, 0x20038297, 0x20038298, 0x2003829a, 0x2003829b, 0x2003829c, 0x2003829d, 0x4103829e, 0xec2205df, 0x0b82ce00, + 0x0382de20, 0x0382e020, 0x0382e220, 0xecffe424, 0x03820e01, 0x03821220, 0xc9821420, 0x85ff2424, 0x03822601, 0x0f822c20, 0x03823020, 0x03823220, + 0x03823420, 0x1b823620, 0x2209e341, 0x826d01ec, 0x82712013, 0x82b82027, 0x82bb2007, 0x82bc2003, 0x82fa200b, 0x82fc2023, 0x82fe2003, 0x820020e1, + 0xff0724ed, 0x820b02ae, 0xff5f2403, 0x826102ec, 0x826c2003, 0x827e2003, 0x82842003, 0x82862003, 0x82882003, 0x828a2003, 0x828c2003, 0xffa92403, + 0x82b10285, 0x82b32007, 0x82b52003, 0x82b7200b, 0x82b92003, 0x82bd2003, 0x82e12003, 0x82e32013, 0x82ef2003, 0x82f12003, 0xfff32403, 0x821503ec, + 0xff172403, 0x82190385, 0x82492007, 0x824b2003, 0x824d2003, 0x824f2003, 0x82512003, 0x82532003, 0x82552003, 0x82572003, 0x82592003, 0x825b2003, + 0x825d2003, 0x825f2003, 0x82612003, 0x82632003, 0x82652003, 0x82672003, 0x82692003, 0x826b2003, 0x826d2003, 0x0beb4103, 0x2c001826, 0x3700ecff, + 0x39200382, 0x3b200382, 0x3c200382, 0x9f200382, 0x2420ed82, 0x26200382, 0x38200382, 0x3a200382, 0x71200382, 0xbc200382, 0x00209982, 0xec22c984, + 0x0782b502, 0x0382b720, 0x0382b920, 0xa984bd20, 0x4503ec22, 0x47200782, 0xec216184, 0x212f8203, 0x4b827303, 0x05003b26, 0x0a002900, 0x0c200382, + 0x26240382, 0x2a00d7ff, 0x32200382, 0x34200382, 0x40200382, 0x60201382, 0x89200382, 0x94200b82, 0x95200382, 0x96200382, 0x97200382, 0x98200382, + 0x9a200382, 0xc8200382, 0xce200382, 0xde200382, 0xe0200382, 0xe2200382, 0xe4240382, 0x0e01d7ff, 0x12200382, 0x66200382, 0x6d200382, 0xb8200382, + 0xbb280382, 0x0702d7ff, 0x0b022900, 0x5f200382, 0x6c200b82, 0x7e200382, 0x84200382, 0x86200382, 0x88200382, 0x8a200382, 0x8c200382, 0xb1200382, + 0xb3200382, 0xe1200382, 0xe3200382, 0xef200382, 0xf1200382, 0xf3240382, 0x1503d7ff, 0x19200382, 0x49200382, 0x4b200382, 0x4d200382, 0x4f200382, + 0x51200382, 0x53200382, 0x55200382, 0x57200382, 0x59200382, 0x5b200382, 0x5d200382, 0x6f820382, 0x004b0027, 0x00c3ff0f, 0x20038211, 0x41fb8224, + 0xc322055b, 0x0b823900, 0x5f413a20, 0x00d72208, 0x200b823d, 0x20038282, 0x20038283, 0x20038284, 0x20038285, 0x20038286, 0x20038287, 0x203b8288, + 0x2007828e, 0x2003828f, 0x20038290, 0x20038291, 0x20f1829f, 0x200782c2, 0x200382c4, 0x200382c6, 0x200382ec, 0x280382f0, 0x01ecfff2, 0x01c3ff24, + 0x28038226, 0x01ecff36, 0x01d7ff38, 0x2003823a, 0x200b823b, 0x2003823d, 0x2003823f, 0x20038243, 0x2003825f, 0x20038269, 0x20278271, 0x200782aa, + 0x200782bc, 0x200782fa, 0x240382fc, 0x02ecfffe, 0x20f58200, 0x20078228, 0x20038258, 0x24038272, 0x02c3ffa9, 0x200382b5, 0x200382b7, 0x200382b9, + 0x200382bd, 0x201782d9, 0x280382db, 0x03ecffdd, 0x03c3ff17, 0x2007821d, 0x2003821f, 0x20038221, 0x20038223, 0x20038225, 0x20038227, 0x20038229, + 0x2003822b, 0x2003822d, 0x2003822f, 0x20038231, 0x42038233, 0xd726091b, 0xd7ff7103, 0xd3827303, 0x05003926, 0x0a003d00, 0x0c280382, 0x0f002900, + 0x11009aff, 0x22200382, 0x24200b82, 0x14261d84, 0x14003a00, 0x03823c00, 0x20072742, 0x20178282, 0x20038283, 0x20038284, 0x20038285, 0x20038286, + 0x24038287, 0x00c3ff88, 0x2027829f, 0x200b82c2, 0x280382c4, 0x01d7ffc6, 0x01140036, 0x20038238, 0x2003823a, 0x200f8243, 0x2003825f, 0x20038269, + 0x200382aa, 0x201382fa, 0x240382fc, 0x021400fe, 0x24038200, 0x023d0007, 0x2403820b, 0x02d7ff28, 0x20038258, 0x20038272, 0x200382d9, 0x200382db, + 0x20ad82dd, 0x2003821d, 0x2003821f, 0x20038221, 0x20038223, 0x20038225, 0x20038227, 0x20038229, 0x2003822b, 0x2003822d, 0x2003822f, 0x20038231, + 0x24038233, 0x0314006f, 0x20038271, 0x83938273, 0x050143e5, 0x210ff144, 0xdd44ff89, 0x82c82019, 0x1dc9441b, 0x6601ec23, 0x05a544ff, 0x4206a144, + 0xec210af9, 0x1b894402, 0x44078544, 0x71441775, 0x8b002032, 0x0de343e5, 0x203bdb43, 0x8edf4314, 0x05006326, 0x0a009aff, 0xcb410382, 0x09bd460f, + 0x3a00ae24, 0x9d48c3ff, 0x19df4106, 0x2135bd46, 0xbd4601ec, 0x48c32019, 0xbd460aa1, 0x01c32917, 0x01c3fffc, 0x02c3fffe, 0x2505bd46, 0xff0b029a, + 0xbd46029a, 0x176d45b7, 0x4500d721, 0xd723056d, 0x45ff3c00, 0xd7211f6d, 0xe76d4500, 0x0f003526, 0x110033ff, 0x24200382, 0x47067d49, 0x3d2307ef, + 0x4e00d7ff, 0x71261995, 0xecff8900, 0x03829f00, 0x440b514e, 0x0120069f, 0x24071f48, 0x01d7ff3b, 0x2003823d, 0x4e03823f, 0xaa280b05, 0xbb01aeff, + 0x0002ecff, 0x614d0382, 0xff722207, 0x0bf54cae, 0x994c0320, 0xff6f212f, 0x42095f48, 0xc3204303, 0x22e80342, 0x4937000b, 0xd3490adb, 0xffa92107, + 0x2714cf49, 0x05002001, 0x0a005200, 0x0f240382, 0x10009aff, 0x200c9f47, 0x109f4d85, 0xecff362c, 0x14003700, 0x85ff4400, 0x03824600, 0x03824720, + 0x03824820, 0x37824a20, 0xaeff5024, 0x03825100, 0x0f825220, 0x07825320, 0x07825420, 0x07825520, 0x07825620, 0x07825820, 0xc3ff5924, 0x03825a00, + 0x03825b20, 0x03825c20, 0x03825d20, 0x1b828220, 0x03828320, 0x03828420, 0x03828520, 0x03828620, 0x03828720, 0x71ff8823, 0x1bf74d00, 0x2382a220, + 0x0382a320, 0x0382a420, 0x0382a520, 0x0382a620, 0x0382a720, 0x0382a820, 0x0382a920, 0x0382aa20, 0x0382ab20, 0x0382ac20, 0x0382ad20, 0x7f82b320, + 0x0782b420, 0x0382b520, 0x0382b620, 0x0382b720, 0x0382b820, 0x0382ba20, 0x1b82bb20, 0x0382bc20, 0x0382bd20, 0x0382be20, 0x9782bf20, 0x0382c120, + 0x1b82c220, 0x0382c320, 0x0382c420, 0x0382c520, 0x0382c620, 0x0382c720, 0x1b82c820, 0x0782c920, 0x0382cb20, 0x0382cd20, 0x0f82ce20, 0x0782cf20, + 0x0382d520, 0x0382d720, 0x0382d920, 0x0382db20, 0x0382dd20, 0x240f834e, 0x01aeff06, 0x20038208, 0x2803820a, 0x01c3ff0e, 0x0185ff0f, 0x20038211, + 0x200b8212, 0x20078213, 0x20078214, 0x24078215, 0x01ecff1c, 0x2007821d, 0x2003821f, 0x200b8220, 0x20078221, 0x20078222, 0x24078223, 0x01140024, + 0x20038226, 0x202b8237, 0x20038239, 0x20038240, 0x20178243, 0x20038244, 0x2003824a, 0x2003825f, 0x20138266, 0x20078269, 0x2007826d, 0x202b8271, + 0x200b8279, 0x2073827b, 0x2007827e, 0x20138280, 0x20078282, 0x200f8284, 0x200b828a, 0x200b828c, 0x2003828e, 0x20038290, 0x200f8291, 0x20078293, + 0x20078294, 0x20078296, 0x20038299, 0x2003829b, 0x207b82a0, 0x4f0782aa, 0x5382080b, 0x0f82ca20, 0x0121f782, 0x200782d8, 0x200382db, 0x203382dc, + 0x200382dd, 0x200b82de, 0x200382ea, 0x200382ed, 0x200382ee, 0x201382fb, 0x240382fd, 0x02c3ffff, 0x2c038201, 0x02aeff02, 0x029aff03, 0x02520007, + 0x2403820b, 0x0285ff28, 0x20038258, 0x20038259, 0x201f825f, 0x20078260, 0x2003826a, 0x820b826c, 0x720221bf, 0x7e200b82, 0x7f200b82, 0x81200782, + 0x83200782, 0x2006674f, 0x200f8285, 0x200b8286, 0x20078287, 0x20078288, 0x82078289, 0x8b0221cf, 0x8c200b82, 0x8d200382, 0xa9240f82, 0xaa021400, + 0xb1200b82, 0xb2200382, 0xb3200f82, 0xb4200782, 0xb5200782, 0xb6201782, 0xb7200b82, 0xb8200782, 0xb9200782, 0xba200782, 0xbd200782, 0xd9200782, + 0xda201f82, 0xd3820382, 0x82dc0221, 0x82dd2007, 0x82e02003, 0x0bab4f03, 0x0f82f020, 0x2f82f120, 0x0782f220, 0x0782f320, 0x0782f420, 0x0782f820, + 0x0382fa20, 0xc3fffc28, 0x85ff0a03, 0x03820c03, 0x0b820e20, 0x03821020, 0x03821520, 0x0f821620, 0x14001724, 0x0b821803, 0x03821920, 0x0f821a20, + 0x03821d20, 0x03821e20, 0x03821f20, 0x03822120, 0x03822220, 0x03822320, 0x03822420, 0x03822520, 0x03822620, 0x03822720, 0x03822820, 0x03822920, + 0x03822a20, 0x03822b20, 0x03822c20, 0x03822d20, 0x03822e20, 0x03822f20, 0x03823020, 0x03823120, 0x03823220, 0x03823320, 0x03823420, 0x03823620, + 0x03823820, 0x03823a20, 0x03823c20, 0x03823e20, 0x03824020, 0x03824220, 0x03824420, 0x83824920, 0x07824a20, 0x07824b20, 0x07824c20, 0x07824d20, + 0x07824e20, 0x07824f20, 0x07825020, 0x07825120, 0x07825220, 0x07825320, 0x07825420, 0x07825520, 0x07825620, 0x07825720, 0x07825820, 0x07825920, + 0x07825a20, 0x07825b20, 0x07825c20, 0x07825d20, 0x07825e20, 0x07825f20, 0x07826020, 0xaeff6224, 0x03826403, 0x03826620, 0x03826820, 0x03826a20, + 0x03826c20, 0x03826e20, 0x23827020, 0x03827220, 0xc3ff742a, 0x0f002300, 0x1100d7ff, 0x24200382, 0x211c334d, 0x1f4d00d7, 0x4c01200a, 0xaa230bf3, + 0x4c02ecff, 0xc74c0bdb, 0x2ec34c0b, 0x45e80021, 0xab4c0c0f, 0x00c32109, 0x200fd74e, 0x56bb8244, 0xc3220d0f, 0xc5825000, 0x17565120, 0x82532006, + 0x82542007, 0x82552023, 0x82562007, 0x82582003, 0x82822003, 0x8283200f, 0x82842003, 0x82852003, 0x82862003, 0x82872003, 0xff882303, 0x434b0085, + 0x82a2201b, 0x82a32023, 0x82a42003, 0x82a52003, 0x82a62003, 0x82a72003, 0x17375603, 0x6b82b320, 0x3b56b420, 0x82bb2016, 0x82bc201b, 0x82bd2003, + 0x82be2003, 0x82c22003, 0x82c32027, 0x82c42003, 0x82c52003, 0x82c62003, 0x82c72003, 0x82c82003, 0x0b53561b, 0x0f82ce20, 0x4f175756, 0x06240fb7, + 0x0801d7ff, 0x0a200382, 0x0e200382, 0x6b560382, 0x82122007, 0xff13240b, 0x821401c3, 0x82152007, 0x821d2007, 0x821f2007, 0x82212003, 0x82232003, + 0x82432003, 0x82442013, 0x824a2003, 0x825f200b, 0x82662007, 0x82692007, 0x826d2007, 0x82792007, 0x827b2007, 0x827e2007, 0x82822007, 0x82842003, + 0x0b67560b, 0x13829320, 0x200b5f56, 0x500f82aa, 0x0121062f, 0x560b82ca, 0x33560b3b, 0xffee220b, 0x0a8b44d7, 0x5802c326, 0x5902c3ff, 0x5f200382, + 0x27561782, 0x826c2007, 0x8272200b, 0x827e2013, 0x827f2007, 0x217b8207, 0x07828502, 0x0f828620, 0x07828720, 0x07828820, 0x07828920, 0x20077750, + 0x200b828d, 0x201382b1, 0x200782b2, 0x200782b3, 0x200782b4, 0x200382d9, 0x200382da, 0x200382db, 0x200382dc, 0x200382dd, 0x500382e0, 0xf0200b9b, + 0xf1200f82, 0xf2202f82, 0xf3200782, 0xf4240782, 0x0a03c3ff, 0x0c200382, 0x15240382, 0x1603d7ff, 0x19200782, 0x1a200782, 0x1d200782, 0x1e200382, + 0x1f200382, 0x21200382, 0x22200382, 0x23200382, 0x24200382, 0x25200382, 0x26200382, 0x27200382, 0x28200382, 0x29200382, 0x2a200382, 0x2b200382, + 0x2c200382, 0x2d200382, 0x2e200382, 0x2f200382, 0x30200382, 0x31200382, 0x32200382, 0x33200382, 0x34200382, 0x17560382, 0x8249201f, 0x824a2083, + 0x824b2027, 0x824c2007, 0x824d2007, 0x824e2007, 0x824f2007, 0x82502007, 0x82512007, 0x82522007, 0x82532007, 0x82542007, 0x82552007, 0x82562007, + 0x82572007, 0x82582007, 0x82592007, 0x825a2007, 0x825b2007, 0x825c2007, 0x825d2007, 0x825e2007, 0x825f2007, 0x82602007, 0x82622007, 0x82642007, + 0x82662003, 0x82682003, 0x826a2003, 0x826c2003, 0xff6e2a03, 0x00e900d7, 0x00660005, 0x2403820a, 0x00aeff0f, 0x20038211, 0x4d158224, 0x44200fab, + 0x46201382, 0x47200382, 0x48200382, 0x4a240382, 0x5000ecff, 0x51200382, 0x52200382, 0x53200f82, 0x54200782, 0x55200782, 0x56200782, 0x58200782, + 0x5d200782, 0x7d500382, 0x00ae2119, 0x201bcb4f, 0x204382a2, 0x200382a3, 0x200382a4, 0x200382a5, 0x200382a6, 0x200382a7, 0x200382a8, 0x200382a9, + 0x200382aa, 0x200382ab, 0x200382ac, 0x200382ad, 0x206b82b3, 0x200782b4, 0x200382b5, 0x200382b6, 0x200382b7, 0x200382b8, 0x200382ba, 0x201b82bb, + 0x200382bc, 0x200382bd, 0x200382be, 0x201382c2, 0x200382c3, 0x200382c4, 0x200382c5, 0x200382c6, 0x200382c7, 0x201b82c8, 0x200782c9, 0x200382cb, + 0x200382cd, 0x200f82ce, 0x200782cf, 0x200382d5, 0x200382d7, 0x200382d9, 0x200382db, 0x550382dd, 0x06240f2d, 0x0801ecff, 0x0a200382, 0x24063955, + 0x01d7ff0f, 0x20038211, 0x200f8212, 0x20078213, 0x20078214, 0x43078215, 0x40200fa1, 0x43201782, 0x44201782, 0xa5430382, 0x01d72205, 0x20138266, + 0x200f8269, 0x2007826d, 0x20078279, 0x2007827b, 0x2007827e, 0x20038282, 0x200b8284, 0x2007828c, 0x2003828e, 0x20038290, 0x20038293, 0x20038296, + 0x20038299, 0x06a9519b, 0x2106db50, 0x0f82ca01, 0x0382cf20, 0x0382d820, 0x0382db20, 0x0382de20, 0x0382ea20, 0x0382ed20, 0x2a05a543, 0x000b0266, + 0xff280266, 0x825802d7, 0x82592003, 0xff5f2403, 0x826002ec, 0x826a2007, 0x826c2003, 0x8272200b, 0x827e2007, 0x827f2007, 0x82842007, 0x82852007, + 0x82862007, 0x82872007, 0x82882007, 0x82892007, 0x07ad5507, 0x0b828d20, 0x1382b120, 0x0782b220, 0x0782b320, 0x0782b420, 0x0382d920, 0x0382da20, + 0x02217f82, 0x200782dc, 0x200382dd, 0x510382e0, 0xf0200b47, 0xf1200f82, 0xf2202f82, 0xf3200782, 0xf4240782, 0x0a03d7ff, 0x0c200382, 0x15240382, + 0x1603ecff, 0x19200782, 0x1a200782, 0x1d200782, 0x1e200382, 0x200a5952, 0x200b8222, 0x20038223, 0x20038224, 0x20038225, 0x20038226, 0x20038227, + 0x20038228, 0x20038229, 0x2003822a, 0x2003822b, 0x2003822c, 0x2003822d, 0x2003822e, 0x2003822f, 0x20038230, 0x20038231, 0x20038232, 0x20038233, + 0x20038234, 0x20038236, 0x20038238, 0x2003823a, 0x2003823c, 0x2003823e, 0x20038240, 0x20038242, 0x20038244, 0x20838249, 0x2007824a, 0x2007824b, + 0x2007824c, 0x2007824d, 0x2007824e, 0x2007824f, 0x20078250, 0x20078251, 0x20078252, 0x20078253, 0x20078254, 0x20078255, 0x20078256, 0x20078257, + 0x20078258, 0x20078259, 0x2007825a, 0x2007825b, 0x2007825c, 0x2007825d, 0x2007825e, 0x2007825f, 0x20078260, 0x20078262, 0x20038264, 0x20038266, + 0x20038268, 0x2003826a, 0x2403826c, 0x00ecff6e, 0x0813568c, 0x200f3747, 0x201d8246, 0x20038247, 0x20038248, 0x20038252, 0x46038254, 0xa8201bfb, + 0xa9201f82, 0xaa200382, 0xab200382, 0xac200382, 0xad200382, 0xb4200382, 0xb5200382, 0xb6200382, 0xb7200382, 0xb8200382, 0xba200382, 0xb7460382, + 0x00ec2205, 0x200b82cb, 0x460382cd, 0xec2205b7, 0x0b82d500, 0x0382d720, 0x0382d920, 0x0382db20, 0x0382dd20, 0x460fb746, 0xec2505ab, 0xecff1101, + 0x05ab4601, 0xab46ec20, 0x01ec2106, 0x20078356, 0x201b8279, 0x2003827e, 0x20038282, 0x2003828c, 0x2003828e, 0x20038290, 0x20038293, 0x20038296, + 0x20038299, 0x4603829b, 0xcf20077b, 0xd8200b82, 0xdb200382, 0xde200382, 0xea200382, 0xed220382, 0xc356ecff, 0x8260200c, 0x826a200f, 0x07cb5603, + 0x0b827f20, 0x21056346, 0x634602ec, 0x02ec2105, 0x21056346, 0x634602ec, 0x02ec2109, 0x21056346, 0x634602ec, 0x02ec2205, 0x463782e0, 0xec260d4f, + 0xd7fff102, 0x1782f202, 0x26054f46, 0xff0a03ec, 0x820c03ec, 0x054f4603, 0x4603ec21, 0xec22054f, 0x13823603, 0x03823820, 0x03823a20, 0x03823c20, + 0x03823e20, 0x03824020, 0x03824220, 0x03824420, 0x2105f345, 0xf34503ec, 0x03ec2105, 0x2105f345, 0xf34503ec, 0x03ec2105, 0x2105f345, 0xf34503ec, + 0x03ec2105, 0x2105f345, 0xf34503ec, 0x03ec2105, 0x2105f345, 0xf34503ec, 0x03ec2105, 0x2105f345, 0xf34503ec, 0x01ec2205, 0x16794906, 0x79499a20, + 0xff362810, 0xff4400ec, 0x8246009a, 0x82472003, 0x82482003, 0x05814e03, 0x5100c326, 0x5200c3ff, 0x53200f82, 0x54200782, 0x55200782, 0x56240782, + 0x5800aeff, 0x5b240782, 0x5c00d7ff, 0x794e3b82, 0x009a2205, 0x201f8283, 0x20038284, 0x20038285, 0x20038286, 0x4e038287, 0xd7210579, 0x17a95800, + 0x2382a220, 0x0382a320, 0x0382a420, 0x0382a520, 0x0382a620, 0x0382a720, 0x0382a820, 0x0382a920, 0x0382aa20, 0x0382ab20, 0x0382ac20, 0x0382ad20, + 0x7782b320, 0x0782b420, 0x0382b520, 0x0382b620, 0x0382b720, 0x0382b820, 0x0382ba20, 0x1b82bb20, 0x0382bc20, 0x0382bd20, 0x0382be20, 0x9b82bf20, + 0x0382c120, 0x1b82c220, 0x0382c320, 0x0382c420, 0x0382c520, 0x0382c620, 0x0382c720, 0x2205d942, 0x82cb009a, 0x82cd200b, 0x05d94203, 0xd5009a22, + 0xd7200b82, 0xd9200382, 0xdb200382, 0xdd200382, 0xd9420382, 0xff06240f, 0x820801c3, 0x820a2003, 0x05e54203, 0x11019a24, 0xe5429aff, 0x429a2006, + 0x9a2106e5, 0x05794e01, 0x1f01ae25, 0x4e01aeff, 0xae210579, 0x05794e01, 0x3901ae25, 0x4e01ecff, 0x9a22056d, 0x3b824401, 0x23824a20, 0x07825f20, + 0x2105a549, 0xa549019a, 0x019a2205, 0x2063827b, 0x2017827e, 0x202f8280, 0x20078282, 0x200f8284, 0x200b828a, 0x200b828c, 0x2003828e, 0x20038290, + 0x20038293, 0x20038296, 0x20038299, 0x4e03829b, 0x9a210561, 0x09b14901, 0xcf019a22, 0xd8201782, 0xdb200382, 0xdd200382, 0xde203f82, 0xea200782, + 0xed200382, 0xee260382, 0x0102aeff, 0xb949ecff, 0x029a260a, 0x029aff58, 0x49038259, 0x9a2205b9, 0x0b826a02, 0xd7ff6c24, 0x27826d02, 0x0b827220, + 0x2205bd49, 0x8281029a, 0x4383200f, 0x9a200861, 0x20066143, 0x0661439a, 0x8a029a22, 0x8b203382, 0x8c201f82, 0x8d200782, 0x65433782, 0x439a2005, + 0x9a220665, 0x1b82b802, 0x0382ba20, 0x1b82d920, 0x0382da20, 0x02219f82, 0x200782dc, 0x200382dd, 0x430382e0, 0x9a200d81, 0x21068143, 0x8143029a, + 0x029a2205, 0x203b82f8, 0x280382fa, 0x03ecfffc, 0x039aff0a, 0x2003820c, 0x200b820e, 0x08954310, 0x95439a20, 0x039a2206, 0x201b821d, 0x2003821e, + 0x2003821f, 0x20038221, 0x20038222, 0x20038223, 0x20038224, 0x20038225, 0x20038226, 0x20038227, 0x20038228, 0x20038229, 0x2003822a, 0x2003822b, + 0x2003822c, 0x2003822d, 0x2003822e, 0x2003822f, 0x20038230, 0x20038231, 0x20038232, 0x20038233, 0x20038234, 0x20038236, 0x20038238, 0x2003823a, + 0x2003823c, 0x2003823e, 0x20038240, 0x20038242, 0x43038244, 0x9a2005f1, 0x2006f143, 0x06f1439a, 0xf1439a20, 0x439a2006, 0x9a2006f1, 0x2006f143, + 0x06f1439a, 0xf1439a20, 0x439a2006, 0x9a2006f1, 0x2006f143, 0x06f1439a, 0xf1439a20, 0x039a2606, 0x03c3ff62, 0x20038264, 0x20038266, 0x20038268, + 0x2003826a, 0x2003826c, 0x2403826e, 0x03ecff70, 0x22038272, 0x58ecff74, 0x4f5e0c77, 0x1b91490d, 0x48215d59, 0x6d2305b9, 0x5901ecff, 0x0126835d, + 0xd7ff0a00, 0x2f5b0400, 0x5a022007, 0x002106af, 0x08ef4a26, 0x14005923, 0x05616400, 0xbf001422, 0xc1240b82, 0x37011400, 0x39200382, 0x80200382, + 0x8a200382, 0x91200382, 0x94200382, 0xdc200382, 0xdd200382, 0xfb200382, 0xfd200382, 0xff240382, 0x01021400, 0x07210382, 0x05434900, 0x0b826d20, + 0x03828120, 0x03828320, 0x03828b20, 0x0382aa20, 0x0382b620, 0x0382b820, 0x0382ba20, 0x0382f820, 0x0382fa20, 0x1400fc24, 0x03820e03, 0x03821020, + 0x03821820, 0x03827020, 0x03827220, 0x7f827420, 0xe3470520, 0x844a2008, 0x02292559, 0x0029000b, 0xc320c783, 0x2924c784, 0x29000a00, 0x2307e746, + 0x5b000300, 0x5d28df82, 0x4001ecff, 0x1f00ecff, 0x4420d588, 0x4a200d82, 0xa2200382, 0xa3200382, 0xa4200382, 0xa5200382, 0xa6200382, 0xa7200382, + 0xc3200382, 0xc5200382, 0xc7200382, 0x2b823982, 0xffca0123, 0x855382ec, 0x825920c5, 0x82da200b, 0xffdc2403, 0x821e03ec, 0x82222003, 0x82242003, + 0x82262003, 0x82282003, 0x822a2003, 0x822c2003, 0x822e2003, 0x82302003, 0x82322003, 0x82342003, 0x20b9834b, 0x229d8252, 0x84570052, 0x825220b9, + 0x825220b9, 0x070b5591, 0x158a4920, 0xe5883620, 0xbf825220, 0x0382a820, 0x2016b74b, 0x07434b01, 0xd7ff1324, 0x03821501, 0x201bf74a, 0x05df4ad8, + 0x4a080548, 0x7f2407c3, 0x8502d7ff, 0x87200382, 0x89200382, 0x8d200382, 0xb2200382, 0xb4200382, 0x2006874a, 0x200782f0, 0x4a0382f2, 0x16240b73, + 0x1a03d7ff, 0x4a200382, 0x4c200382, 0x4e200382, 0x50200382, 0xaf820382, 0x82540321, 0x82562007, 0x82582003, 0x825a2003, 0x825c2003, 0x825e2003, + 0x82602003, 0x5d0520c7, 0xef85089b, 0x0b023d2c, 0x32003d00, 0xecff5200, 0x0382a800, 0x82166149, 0x01ec26e7, 0x01ecff11, 0x20038213, 0x1e054915, + 0x1f82d820, 0xecffde23, 0x07e14802, 0x0b827f20, 0x03828520, 0x03828720, 0x03828920, 0x03828d20, 0x0382b220, 0x0382b420, 0x0382e020, 0x0382f020, + 0x0382f220, 0x48fff421, 0x162009a9, 0x1a200b82, 0x4a200382, 0x4c200382, 0x4e200382, 0x50200382, 0xa7820382, 0xec22df82, 0x0b825603, 0x03825820, + 0x03825a20, 0x03825c20, 0x03825e20, 0xbf826020, 0x71010326, 0x7801d7ff, 0x91230382, 0x83002900, 0x019a240d, 0x82c3ff72, 0x00c32211, 0x08a36293, + 0x85ff0d28, 0x44000f00, 0x03821e00, 0xc3ff2224, 0x39822600, 0x03822a20, 0x5e002d23, 0x1bb76200, 0x3b003d24, 0x27824900, 0x03825720, 0xd7ff5924, + 0x07825a00, 0x07825c20, 0x03828220, 0x5c1b9744, 0xbf201315, 0xc1203382, 0x5e06d14d, 0x00231211, 0x625e00f6, 0x372828df, 0x3801ecff, 0x39019aff, + 0x3a20f782, 0x3b230782, 0x82013b00, 0x3f0121ab, 0x66200782, 0x24064d5e, 0x0185ff71, 0x201f8280, 0x2003828a, 0x20038291, 0x20038294, 0x636382a3, + 0xdc200b07, 0xdd201382, 0xfa200382, 0xfb200382, 0xfc203782, 0xfd200782, 0xfe200782, 0xff2b0782, 0x0002ecff, 0x01029aff, 0x6302d7ff, 0x6d20131f, + 0x2006854d, 0x20078281, 0x63038283, 0x8b200f2b, 0x2f631382, 0x82aa2007, 0x0b33630b, 0x0f82b620, 0x85ffb724, 0x0782b802, 0x0782b920, 0x0782ba20, + 0x21163f63, 0x1b82f802, 0x0382fa20, 0xd7fffc24, 0x03820e03, 0x03821020, 0xecff1528, 0x85ff1703, 0x854d1803, 0x4f576306, 0x57827020, 0x9aff7124, + 0x07827203, 0x07827320, 0xd7ff7424, 0x4d429000, 0x33494220, 0x104e4542, 0x9c014102, 0x41429120, 0x447f200a, 0xd7200a8f, 0x282c8f44, 0x00e5ff57, + 0x00d5ff59, 0x2207825a, 0x52dbff5c, 0x87441cb1, 0x00db2215, 0x493782c1, 0x8744163b, 0x44e5202e, 0xdb210687, 0x1d874401, 0x8a01db26, 0x9101d5ff, + 0x94200382, 0x87440382, 0x01d52511, 0x01dbffdd, 0x21058744, 0x874401e5, 0x01e52105, 0x20058744, 0x068744e5, 0x8744db20, 0x02db2a16, 0x02ecff7e, + 0x02dbff81, 0x44038283, 0xdb211187, 0x09874402, 0xbb67d520, 0xffb6230c, 0x874402d5, 0x02db2105, 0x21058744, 0x874402db, 0x02db2219, 0x245f82fa, + 0x03dbfffc, 0x2003820e, 0x44038210, 0xd5200987, 0x2054df67, 0x44638270, 0xdb210587, 0x05874403, 0x9400db28, 0x66ff0500, 0x03820a00, 0x10ff0d21, + 0x35014502, 0x66ff0628, 0xaeff0702, 0x07820a02, 0x07820b20, 0x3b632020, 0xff6d210e, 0x65ed5142, 0x102009f3, 0x46066557, 0x842407c9, 0x8900ecff, + 0x8a200382, 0x6b06c968, 0x4b4417c3, 0x00f62207, 0x0881463d, 0x20078748, 0x4d1382a3, 0x3720837b, 0x8f08e34b, 0x20e183e5, 0x22c3678b, 0x229bdd40, + 0x5d240020, 0x555d1a59, 0x00562463, 0x6bd7ff0c, 0x2d241037, 0x3600f6ff, 0x37249982, 0x3900c3ff, 0xd1651f82, 0x8240200f, 0x82602013, 0x19476b03, + 0x292cd965, 0xf6fff600, 0xecff1c01, 0x03822001, 0x576b2220, 0x82a02032, 0x82a32033, 0x8b5f6b43, 0x3d5f4220, 0xff30240c, 0x823d00ec, 0x41442003, + 0x88231aef, 0x4f00d7ff, 0xc220176b, 0x20066f4f, 0x06734fc4, 0x774fc620, 0x0f6d6c06, 0x01205f82, 0x2407716c, 0x01ecffaa, 0x0a815fca, 0x0b825920, + 0x03827220, 0x0382d920, 0x0382da20, 0x0382db20, 0x0382dc20, 0xecffdd24, 0xa74f1d03, 0x821f2006, 0x82212007, 0x82222003, 0x82232003, 0x82242003, + 0x4f252003, 0x272006b7, 0x28200782, 0x29200382, 0x2006bf4f, 0x06c34f2b, 0xc74f2d20, 0x4f2f2006, 0x312006cb, 0x32200782, 0x2006796c, 0x2a838234, + 0x0005002e, 0xff090052, 0x820a00c3, 0x000c2507, 0x000d003d, 0x6405716c, 0x4f560dd5, 0xff2d2409, 0x823000be, 0xff32242f, 0x823400d7, 0x82362003, + 0x003724ed, 0x82390027, 0x003a2437, 0x82400014, 0x0f675643, 0xe5ff4923, 0x236b5600, 0x5607114e, 0x60200b73, 0x82214f82, 0xec7756ff, 0xfff60024, + 0x7b5601be, 0x00242443, 0x82260127, 0x00362603, 0xff370114, 0x248b56ec, 0x2f827120, 0x56ff7921, 0xd721178f, 0x0b8f5601, 0xd7ff9124, 0x2b829301, + 0x07829420, 0x200f9756, 0x20c382a3, 0x561b82aa, 0xbc20079b, 0xca205782, 0x9f560f82, 0x052d4f0b, 0x5601ec21, 0x01210ea3, 0x20af82fa, 0x20af82fb, + 0x200782fc, 0x200782fd, 0x220782fe, 0x56ecffff, 0xa92368bb, 0x4f022700, 0xd7230561, 0x56ffb202, 0xb52009c3, 0xb6241782, 0xb702d7ff, 0xb8200782, + 0xb9208f82, 0xba200782, 0xbd200782, 0xd7560782, 0x0017225b, 0x06994f27, 0x1a03d723, 0xdf1610ff, 0x022a0501, 0x98ff0500, 0xd7ff0a00, 0x09870300, + 0x820b0221, 0x8206200d, 0x826f200d, 0x006f2417, 0x55dbff49, 0x31830c3d, 0x1982be20, 0x6100be22, 0x2408c353, 0x00beff0f, 0x28038211, 0x00b4ff22, + 0x00f6ff46, 0x20038247, 0x24038248, 0x00140049, 0x2007824a, 0x20038252, 0x24038254, 0x00060057, 0x200782a8, 0x200382a9, 0x200382aa, 0x200382ab, + 0x200382ac, 0x200382ad, 0x200382b4, 0x200382b5, 0x200382b6, 0x200382b7, 0x200382b8, 0x200382ba, 0x200382c9, 0x200382cb, 0x200382cd, 0x200382cf, + 0x200382d5, 0x200382d7, 0x200382d9, 0x240382db, 0x01f6ffdd, 0x2003820f, 0x20038211, 0x20038213, 0x20038215, 0x20038279, 0x2003827e, 0x20038282, + 0x2003828c, 0x2003828e, 0x20038290, 0x20038293, 0x20038296, 0x20038299, 0x8203829b, 0xd801214f, 0xdb200782, 0xde200382, 0xea200382, 0xed2c0382, + 0x0702f6ff, 0x08023d00, 0x0b028dff, 0x0c200782, 0x10280782, 0x150281ff, 0x60020c00, 0x6a201b82, 0x7f200382, 0x85200382, 0x87200382, 0x89200382, + 0x8d200382, 0xb2200382, 0xb4200382, 0xe0200382, 0xf0200382, 0xf2200382, 0xf4240382, 0x0a03f6ff, 0x0c200382, 0x16200382, 0x1a200382, 0x36200382, + 0x38200382, 0x3a200382, 0x3c200382, 0x3e200382, 0x40200382, 0x42200382, 0x44200382, 0x4a200382, 0x4c200382, 0x4e200382, 0x50200382, 0x52200382, + 0x54200382, 0x56200382, 0x58200382, 0x5a200382, 0x5c200382, 0x5e200382, 0x60200382, 0x0720ff82, 0x55108541, 0x64200b51, 0x5408db4f, 0xe120095b, + 0x511c5b54, 0xaf4f2ff9, 0x28f15116, 0x58ef1377, 0x0c28097d, 0x22008f00, 0x4000a400, 0x45240382, 0x4b005200, 0x4c240382, 0x4d003d00, 0x4e200382, + 0x4f200b82, 0x602c0382, 0xae00b800, 0xb000f600, 0xb100cd00, 0xe7200382, 0xe9201382, 0xeb242f82, 0xed000a01, 0xef200f82, 0xf1241b82, 0xf5002900, + 0xf7243382, 0xf900e100, 0xfc201f82, 0xfe240382, 0x00015200, 0x02200382, 0x04280382, 0x07025200, 0x0b028f00, 0x01266f82, 0x66002d00, 0x734c3a00, + 0x09154208, 0x15425220, 0x1b014208, 0x7421ed41, 0x42208d37, 0x3022e988, 0xf14b1400, 0x77d72006, 0xc3710a31, 0xff592405, 0x825c00ec, 0xff9f2403, + 0x5fbf00d7, 0xad4b0509, 0xff23280c, 0xff2401ec, 0x822601d7, 0x82362003, 0x8238200b, 0x82392007, 0x823a2007, 0x82712007, 0x82802003, 0x828a200b, + 0x82912003, 0x82942003, 0x82a02003, 0x82bc2003, 0x82dc2017, 0x82dd2007, 0x0f0d7703, 0x28053d5e, 0x000b0229, 0xff6d0229, 0x08155eec, 0x0b828b20, + 0xd7ffa924, 0x0782aa02, 0x0782b520, 0x0782b620, 0x0782b720, 0x0782b820, 0x0782b920, 0x0782ba20, 0x0782bd20, 0x5d0bc55d, 0x172807bd, 0x1803d7ff, + 0x6f03ecff, 0x70200782, 0x71200782, 0x72200782, 0x73200782, 0x74200782, 0x1d208382, 0x1016e360, 0x5502692f, 0x02612f10, 0x44012006, 0x194f0575, + 0x7b5c2015, 0x194f0a8f, 0x00ec210f, 0x4f0f194f, 0x0f103b11, 0x654f0109, 0x014f238d, 0x4fec201d, 0x91650c01, 0x23f94e13, 0x251f9965, 0x02d7ff0f, + 0x9d65ff28, 0x00a92259, 0x06076927, 0x4e0ddd4e, 0x192173d9, 0xd50e10ff, 0xc5200901, 0x2008f549, 0x0a556110, 0x27073d58, 0x00d7ff36, 0x00ecff38, + 0x53130d6c, 0xd722053b, 0x49615c00, 0x2f296c2e, 0x200b7561, 0x6c8b82c9, 0xec220931, 0x0f82cf00, 0x2115316c, 0x441800ec, 0x0f240f75, 0x1101ecff, + 0x12200382, 0x72061363, 0xec2605dd, 0xd7ff1c01, 0x03822001, 0x03822220, 0x0f894418, 0x13823720, 0x03823920, 0x6c070959, 0x80200755, 0x82201382, + 0x8a204782, 0x5d6c0782, 0x059f520b, 0x5201ec21, 0xec21059f, 0x07656c01, 0x2782a020, 0x2f82b820, 0x0382bb20, 0x520b696c, 0xd721058f, 0x0a716c01, + 0x82fb0121, 0x82fd202b, 0xffff2203, 0x05b961d7, 0x08454318, 0x20059f63, 0x08856c61, 0x6102ec21, 0x7f2007c1, 0xc5611382, 0x8285200b, 0x054f6f0f, + 0x6f02ec21, 0xec22054f, 0x13828a02, 0x2007d161, 0x520b828d, 0xec22056f, 0x0b82b202, 0x2205576f, 0x82b602ec, 0x82b82073, 0x82ba2003, 0x05a56c03, + 0x1802ec21, 0x20070d45, 0x6f2782f0, 0xec21054f, 0x054f6f02, 0xd961ec20, 0xff0a240c, 0x820c03ec, 0x0be16103, 0x0f821620, 0x2007e161, 0x6c0b821a, + 0xec2221bd, 0x27824a03, 0x21050b6f, 0x0b6f03ec, 0x03ec2205, 0x064b644f, 0x21050b6f, 0x0b6f03ec, 0x03ec2105, 0x21050b6f, 0x0b6f03ec, 0x03ec2205, + 0x20278259, 0x6f03825a, 0xec21050b, 0x050b6f03, 0x6f03ec21, 0xec21050b, 0x8d451803, 0xff70241b, 0x827203d7, 0xff742403, 0x653300d7, 0x0b22545d, + 0x61651400, 0x010b2474, 0x71290062, 0x078205ff, 0xecff6d30, 0x85ff7101, 0x9aff7201, 0xd7ff7301, 0x03827501, 0x0b827820, 0x1b828820, 0xc3ff9124, + 0x42180300, 0x732608cd, 0x0b00ecff, 0x2f825f01, 0x03826420, 0x03826720, 0x03826c20, 0x3f847020, 0x3f82c320, 0x7401d722, 0x77203b82, 0x78200f82, + 0x88200782, 0x24222d82, 0x41821000, 0xc3ff6d22, 0x9a223582, 0x1b766201, 0x8273200a, 0x82762021, 0x82792003, 0x557a2069, 0x7d2006ed, 0x7e201f82, + 0x81240b82, 0x8201aeff, 0x83200782, 0x84201f82, 0x85201382, 0x86200782, 0x87200782, 0x89200382, 0x8c200382, 0x2006916c, 0x2007828f, 0x20038290, + 0x20138292, 0x20338293, 0x20278294, 0x200b8295, 0x200b8296, 0x200b8298, 0x201b8299, 0x280f829a, 0x02aeff9b, 0x02c3ff02, 0x20cd8403, 0x20118271, + 0x20038272, 0x220d8278, 0x82790119, 0x827d2027, 0x827e2003, 0x82802003, 0x82812003, 0x82832003, 0x267385c1, 0x008801d7, 0x828a0129, 0x828b2013, + 0x828c2013, 0x828d2007, 0x828f2007, 0x82902003, 0x8291200b, 0x82922007, 0x82932007, 0x82942003, 0x8295200b, 0x82962007, 0x227b8507, 0x829a01d7, + 0xff9b240f, 0x524f00d7, 0x57641049, 0x1b43501b, 0x5013fd61, 0xd7202157, 0x1a9b4218, 0x4218d720, 0x0b42149b, 0x01c32909, 0x019aff78, 0x01c3ff91, + 0x1e614918, 0xb1650320, 0xf54a184f, 0x00ec210b, 0x1f054918, 0x26058d42, 0xff7001d7, 0x827101ec, 0x82722003, 0x82742003, 0x058d4203, 0xc182ec20, + 0x9401ec29, 0x0002ecff, 0x1803ecff, 0x200ba540, 0x37441871, 0x0b497f08, 0x180f9776, 0x25134344, 0x009aff6d, 0x5f76ff7d, 0x35af411d, 0x254b4418, + 0x85ff5f28, 0x9aff6201, 0xe5826601, 0x07826920, 0x07826d20, 0xaeff7323, 0x05554301, 0x7a018522, 0x200e3d7e, 0x7e238281, 0xc3210541, 0x0b4d4301, + 0xc3ff8a24, 0x2b828c01, 0x07828d20, 0x23828e20, 0x557e8f20, 0x0559430a, 0x94018522, 0x59431b82, 0x019a2605, 0x01290097, 0x200f8298, 0x43278299, + 0x9a22055d, 0x0f82fa01, 0x0bbf4418, 0x9aff0224, 0x03820302, 0x03820720, 0x0ac74418, 0x20582342, 0x16a151b2, 0x01ff3b10, 0x00622271, 0x08737514, + 0x6bff7121, 0x554605b9, 0x01c32a09, 0x01c3ff79, 0x01290088, 0x1dbf7b8d, 0x277b0320, 0x470820f7, 0x01250b6d, 0x01d7ff92, 0x43038295, 0xd7260573, + 0xd7ff9a01, 0x91614600, 0x17896110, 0x18468161, 0x2028c94c, 0x24a98262, 0x01ecff67, 0x16194869, 0x1f827820, 0x240fcf55, 0x02ecff28, 0x06636058, + 0x3fb54c18, 0x3b410520, 0x8281200c, 0x00882485, 0x782a0029, 0xbf7818d3, 0xdb4e181b, 0xff4a181f, 0xff73240b, 0x419101ae, 0x197005a5, 0xff5f2308, + 0x4e1803d7, 0xcf202fa3, 0x20082748, 0x20b78222, 0x127f4d24, 0x13895118, 0x51d14018, 0x2d1b4b18, 0x75e54018, 0x1800ec21, 0x210de540, 0x401800ec, + 0xfb4d19e5, 0xe540180d, 0x01ec210d, 0x09e54018, 0x1801ec21, 0x181be540, 0x4919df4b, 0x41180943, 0xb56f0b09, 0x114f490b, 0x4f49d720, 0xff282118, + 0x0bcd4018, 0x6002ec22, 0x61220f82, 0x1145ecff, 0x03ec257e, 0x03c3ff4a, 0x2005874d, 0x06874dc3, 0x874dc320, 0x03c32106, 0x2005874d, 0x06874dc3, + 0x874dc320, 0x4dc32006, 0xc3200687, 0x2106874d, 0x874d03c3, 0x4dc32005, 0xc3200687, 0x2106874d, 0xdf8303c3, 0xd7ff6224, 0xe7826303, 0x07826420, + 0x07826520, 0x07826620, 0x07826720, 0x07826820, 0x07826920, 0x07826a20, 0x07826b20, 0x07826c20, 0x07826d20, 0x55186e20, 0xa74c0e1d, 0x00882209, + 0x9a254529, 0x4a1b2145, 0xd72105ad, 0x5b254501, 0x4c183620, 0x6228706d, 0x6401aeff, 0x6901ecff, 0x74200782, 0x78200782, 0x81240382, 0x8801d7ff, + 0x8e220382, 0x4c18d7ff, 0x4c180b81, 0x29203c71, 0x8262e945, 0x091d77b5, 0xe5450220, 0x4ae92033, 0xe5660cab, 0x61515c0d, 0x2105b54c, 0x4b1000d7, + 0x4d5701c3, 0xc3210591, 0xc74b1801, 0xff73240b, 0x827601c3, 0xff792103, 0x2009954d, 0xd74b187d, 0x05ef500a, 0x84018522, 0x86201382, 0x87200382, + 0x88240382, 0x89011400, 0x0eeb4b18, 0x210d994d, 0x4b1801ae, 0x952007f3, 0x96202782, 0x97245b82, 0x98013d00, 0x994d0b82, 0x01ae2205, 0xc74b189b, + 0x06994d14, 0x19c74b18, 0x4a100320, 0x210301df, 0x0f50002d, 0x00c32505, 0x009aff11, 0x2511c152, 0xff6d019a, 0xd94101d7, 0x01d72105, 0x2905c552, + 0xff7b01ae, 0xff7c01c3, 0x515201ec, 0x019a2205, 0x4f23827f, 0xae210577, 0x13cd5201, 0x2105e541, 0x5d5201c3, 0x019a2105, 0x25057f4f, 0xff90019a, + 0x5d52019a, 0x68c32005, 0x7f4f08df, 0x4fae2005, 0x9a210a7f, 0x0fdd5201, 0x5f010a25, 0x4b01d7ff, 0xd7210987, 0x07ed5201, 0x99827420, 0x1b827720, + 0x07827820, 0xd7ff8824, 0xa54d1700, 0x20c38308, 0x85b38279, 0x01ec22b7, 0x200b827e, 0x20038281, 0x20038285, 0x83038286, 0x528c20a3, 0xec2008f5, + 0xd7219782, 0x05f55201, 0x5201ec21, 0xec200df1, 0x2a06f152, 0x000c00ec, 0x00aeff0f, 0x82aeff11, 0x84c3208f, 0x8269208f, 0x18812077, 0x20085146, + 0x21d582ec, 0x431801ec, 0x00210a77, 0x22a98603, 0x827801d7, 0x632c209d, 0x31531065, 0x1b1d5307, 0x63210953, 0x73200961, 0x80208b82, 0xe183e986, + 0x43189120, 0xec200cdb, 0x212fa950, 0xc76cee00, 0x79ad5d1a, 0xc3ff6d27, 0xd7ff7d00, 0xbf2c1000, 0xb55d3f01, 0x09d15617, 0x231f0f44, 0xff7e01c3, + 0x42050f44, 0x9a200575, 0x530ce156, 0xec200d8f, 0x22080f44, 0x44d7ff8d, 0xd7210e13, 0x05935301, 0x56019a21, 0x935309ed, 0x0713440b, 0xab6c9a20, + 0x16cd5d0c, 0x01a74210, 0x01012a04, 0x00290088, 0xff790106, 0x08fb44d7, 0xecff8c24, 0x03829001, 0xecff9324, 0x19821400, 0xd545ec20, 0x01ec2106, + 0x2105bd41, 0x1d4501ec, 0x051f5809, 0x1b583183, 0x07254509, 0x9501ec22, 0x97204582, 0x98200382, 0x99200382, 0x9a200382, 0x01265182, 0xecff9401, + 0x7d6a0b00, 0x82492008, 0x82812063, 0x008d241b, 0x828e0129, 0x82912007, 0x8294200f, 0x18962003, 0x2209ff5c, 0x67010200, 0xd7200521, 0xb1843789, + 0x8c203783, 0x9358b982, 0x82932007, 0xff99220b, 0x874218d7, 0x821c2008, 0x01ae2225, 0x08e5587a, 0xc182c320, 0x8101d726, 0x8201c3ff, 0x93461382, + 0x82d72005, 0x01d722cd, 0x200f8286, 0x587d8287, 0xd72209f1, 0x27828c01, 0x03828d20, 0x03828f20, 0x03829020, 0x03829120, 0x20057f42, 0x22d982c3, + 0x829601c3, 0x8298200f, 0x82992003, 0x058b4603, 0x1000c322, 0x5224d782, 0x52000a00, 0x7d209f84, 0x7e205182, 0x80200382, 0x53595d82, 0x59ec2005, + 0x8d200853, 0x91201382, 0xb3830382, 0x46189720, 0x00210915, 0x07fd4509, 0x7e204184, 0x81202182, 0x82200382, 0x8c204582, 0x2109a545, 0x3f410d00, + 0x2067830c, 0x83218280, 0x00882463, 0x828a013d, 0x225f8531, 0x419401c3, 0xf36b0a0f, 0x00492409, 0x828d0114, 0x848e2003, 0x023d2853, 0x003d000b, + 0x821e0003, 0x417e203b, 0x5f820505, 0x0afb4218, 0x21087f41, 0xcf840104, 0x8a283982, 0x91012900, 0x07001400, 0x200be56d, 0xd3431801, 0x245b8307, + 0x00290091, 0x08ef4b0e, 0x00217182, 0x8333827d, 0x82812021, 0x203f8363, 0x82a7838c, 0x828f204b, 0x41902007, 0x471805fb, 0x0021071d, 0x24578c04, + 0x00ecff94, 0x214b8b15, 0x33827901, 0x03827a20, 0x03827e20, 0xd7225385, 0x0b828201, 0x47828520, 0x22051342, 0x829001d7, 0x4292200f, 0x012105c9, + 0x477b8294, 0xd72205b1, 0x6f419901, 0x82678d0a, 0x13002149, 0xec215b82, 0x05bb4101, 0x3142d720, 0x01ec2106, 0x22055b41, 0x828c0129, 0x428d204f, + 0xeb420873, 0x07035b09, 0x210aeb42, 0xb5829b01, 0xa7773820, 0x002d2210, 0x08336b3d, 0x5f3b9178, 0xbe200743, 0x180dbd47, 0x2e70635f, 0xff05003d, + 0xff0a00c3, 0xff9d01c3, 0x82a60185, 0xffb02403, 0x82bc01d7, 0x82bd2007, 0xffbf2407, 0x82c101ec, 0x18c4201b, 0x22086f57, 0x82df01ec, 0x82e12013, + 0xffe42813, 0xff0702ae, 0x820b02c3, 0x826d2003, 0xff7624c5, 0x827c02d7, 0x827d200b, 0x82802003, 0x82812003, 0x82822013, 0x82832007, 0x828b2007, + 0x829f2003, 0xffa9241f, 0x82aa0285, 0x82b52013, 0x82b62007, 0x82b72007, 0x05e76a07, 0xba028522, 0xbb202382, 0xbd202382, 0xbf201382, 0xc0201b82, + 0xc1200382, 0xc2200382, 0xca200382, 0xd4201782, 0xd5200782, 0xe5200382, 0xf7200b82, 0xf8200382, 0xf9202f82, 0xfa200782, 0xfb200782, 0xfc200782, + 0xfd200782, 0xfe281f82, 0x0503c3ff, 0x0703d7ff, 0x0d200382, 0x0e240b82, 0x0f03ecff, 0x10200782, 0x08a74118, 0xd400c322, 0x22088d42, 0x7e5cff10, + 0xdb5c08f1, 0x775f1811, 0xff9f2c81, 0xffa401ec, 0xffaa019a, 0x82ae0185, 0x82b52003, 0x05177403, 0xbe01ec26, 0xca01c3ff, 0xcb240f82, 0xcc01d7ff, + 0xcd200b82, 0xce240382, 0xcf015cff, 0xd0201382, 0xd1200b82, 0xd2200382, 0xd3200382, 0xd4200382, 0xd5200382, 0xd6201b82, 0xd7200782, 0xd8200382, + 0xd9202382, 0xda200782, 0x59180382, 0xdf200f4d, 0xe0201382, 0xe1200382, 0xe2200382, 0xe3200382, 0xe4200382, 0xe5200382, 0xe6200382, 0xe7200382, + 0xe8200382, 0xe9200382, 0xea209782, 0xec204782, 0xed200b82, 0xee280782, 0xf001aeff, 0xf2013d00, 0xf3206782, 0xf5201382, 0xf7200382, 0xf9200382, + 0x675b0382, 0x4d07200f, 0x5f2306c5, 0x6202ecff, 0x85290507, 0xc3ff6b02, 0xd7ff6c02, 0x85591802, 0x187d2007, 0x21080155, 0x59180285, 0xd7260989, + 0x85ff8502, 0x27828602, 0x07828720, 0x07828820, 0x07828920, 0x07828a20, 0x2f828b20, 0x07828c20, 0x0f828d20, 0x0b829620, 0x03829a20, 0x0382a020, + 0x0382a420, 0x0382a620, 0x0382aa20, 0x0382ac20, 0x0382ae20, 0x0382b020, 0x2b82b120, 0x2b82b220, 0x0782b320, 0x9142b420, 0xffb82406, 0x82ba02c3, + 0x42bc2003, 0xc2200681, 0xc4200782, 0xc5280382, 0xc602aeff, 0xc70271ff, 0xcb200782, 0xce200f82, 0xcf242f82, 0xd1025cff, 0xd3200b82, 0x20069942, + 0x200782d7, 0xcd5918d9, 0x02d72218, 0x206782e3, 0x202382e6, 0x200382ec, 0x200382ee, 0x200f82ef, 0x202f82f0, 0x200782f1, 0x200782f2, 0x180782f3, + 0x250ed959, 0xc3fffe02, 0x03820003, 0x03820620, 0x03820820, 0x5cff0928, 0x85ff0a03, 0x07820b03, 0x0bf15918, 0x13821120, 0x13821220, 0x55181420, + 0x852208b9, 0x0b821803, 0x22052166, 0x821b0385, 0x821c201f, 0x57eb5e1f, 0xf9461f20, 0x649f2008, 0xd7260821, 0xecffbe01, 0x0f82de01, 0xd982e120, + 0xfd630720, 0xff6c2406, 0x827d02ec, 0xd368180f, 0x9b451817, 0x82c02007, 0x82c22023, 0x18d52003, 0x200e0d53, 0x203f82f1, 0x2e0382f3, 0x03d7fffe, + 0x03ecff15, 0x00ecff19, 0x82a00105, 0x82dc2069, 0x82aa2029, 0x82b62003, 0xff182619, 0x011a00d7, 0x2115859f, 0x0782dd01, 0x01218382, 0x203782e4, + 0x187f866d, 0x2007954d, 0x0641648b, 0x22053164, 0x82ba02ec, 0x207b870f, 0x204d82c5, 0x6f8386c7, 0x02200a7f, 0x836f7b83, 0x7d698307, 0x7f5f09cf, + 0x3ff54d0f, 0x2b46c183, 0x0b022506, 0x5f022900, 0x1e116a18, 0x18073d41, 0x410b3f54, 0x2d410631, 0x30214e07, 0x69603420, 0xa6012907, 0xa80185ff, + 0xb001d7ff, 0xb5220382, 0x2746ecff, 0x01ec2106, 0x21052746, 0x274601ae, 0x01d72105, 0x21056b41, 0x455f02c3, 0x051b4607, 0x7d02ae2a, 0x8002d7ff, + 0x8202aeff, 0x0f460382, 0x02d72109, 0x26050f46, 0xffb702d7, 0x82b90285, 0x09074603, 0xc002ae22, 0xc1203382, 0xc2202f82, 0xca200782, 0xce240382, + 0xd402ecff, 0xd5200f82, 0x0b460b82, 0x02ec2205, 0x201382f9, 0x200382fb, 0x221782fd, 0x45d7fffe, 0xae260aff, 0xaeff0f03, 0xfb451103, 0x03d72608, + 0x00ecff1b, 0x46d18831, 0xd58507f5, 0xd721d187, 0x88718201, 0x05f146cd, 0xe401ec22, 0xd1897182, 0x7c02ec22, 0x7d206d82, 0xd1897582, 0x4602ec21, + 0xd19305e1, 0x4602ec21, 0xae2005d9, 0xec21d182, 0x22d18502, 0x88ca02ec, 0x02ec22cd, 0x200b82e5, 0x206382f7, 0x200382f9, 0x850382fb, 0x82ec20cd, + 0x03ec22cd, 0x20c18207, 0x83c9820d, 0xff172ecd, 0xff180385, 0x011d00d7, 0x019aff9d, 0x410382a6, 0xe7420777, 0x01c32209, 0x56eb42f6, 0xab566d20, + 0xff9f2858, 0x00a401d7, 0x82b50129, 0x05e34603, 0xbe01d72d, 0xcb01aeff, 0xce01ecff, 0x18011400, 0x680bab57, 0xd721096f, 0x058d4801, 0xea01d722, + 0xed203f82, 0x200a6944, 0xa757185f, 0x02d72208, 0x460b826d, 0xd721094f, 0x09636802, 0x8502d722, 0x4f461b82, 0x02d72105, 0x22054f46, 0x828a02d7, + 0x05636813, 0x8d02d722, 0x46065744, 0xd721052f, 0x052f4602, 0x6368d720, 0x48c0200c, 0xce2406a9, 0xd5022900, 0xe0200b82, 0x0e056c18, 0x0f82f020, + 0x2105e745, 0xe74502d7, 0x68d72005, 0x02230b73, 0x18c3fffe, 0x2408d357, 0x03d7ff0e, 0x24038210, 0x03290011, 0x20078215, 0x05cf4416, 0xcb450320, + 0x03d72205, 0x5d17821b, 0x67202fa1, 0x4808db4c, 0x712e094d, 0x9affb501, 0xd7ffbb01, 0x2900bc01, 0x0782be01, 0x1400c42c, 0xecffc901, 0xaeffca01, + 0x0f82cc01, 0x0382cd20, 0x22055148, 0x82d101ae, 0x82d2200b, 0x82d32003, 0x82d42003, 0x054d4803, 0xd701d722, 0xd8200b82, 0xd9202f82, 0xda200782, + 0xdb200382, 0xde200b82, 0xe0200382, 0x2105f745, 0x0782e201, 0x0382e320, 0x0382e520, 0x0382e620, 0x0382e820, 0x0382e920, 0x0382ea20, 0x0382ec20, + 0x2b82ed20, 0x0782ee20, 0x5200f028, 0x71fff201, 0x0b82f301, 0x0382f520, 0x0382f720, 0x6b61f920, 0xff6a240a, 0x826b02ae, 0xff72240f, 0x827d0285, + 0x827f2007, 0x8285200f, 0x82872003, 0x82892003, 0x828d2003, 0x82962003, 0x829a2017, 0x82a42003, 0x82a62003, 0x00a92403, 0x82ac0229, 0x82ae2007, + 0x82b02003, 0x82b22003, 0x82b42023, 0x82b52003, 0x82b72017, 0x82b92003, 0x82bd2003, 0x07ef4503, 0x2382c420, 0x9affce23, 0x05d94702, 0x8202d721, + 0xd50221eb, 0xd7201382, 0xd9470382, 0x02ae2205, 0x207f82db, 0x204382dc, 0x200782dd, 0x820782e0, 0x820220c3, 0xf00221bf, 0xf2200b82, 0xf4200382, + 0x28068344, 0x03d7ff00, 0x03aeff0a, 0x2303820c, 0x039aff11, 0x22059d47, 0x821603d7, 0x0017240f, 0x821a0329, 0x821b2007, 0xff1c2417, 0x6789005c, + 0x9d30a467, 0x9f019aff, 0xa401ecff, 0xa6013d00, 0xae0185ff, 0x2108ab43, 0x701801ec, 0xbe2107cd, 0x073b45ff, 0xd5019a22, 0xdc201f82, 0x9f430f82, + 0x01c32205, 0x200f82e7, 0x670382f2, 0x02231e8f, 0x45ecff6c, 0xc322065b, 0x5f457e02, 0x4d49180a, 0x4949180f, 0x18d72009, 0x460e4949, 0x73450949, + 0x45c32009, 0xc3210673, 0x05cb4902, 0xc702c32a, 0xce02aeff, 0xcf022900, 0x51460382, 0x02c32105, 0x20123747, 0x05874502, 0x4503c321, 0x1124077f, + 0x12032900, 0x49180382, 0xd7260971, 0xecff1903, 0x13821b03, 0x03821c20, 0x26576349, 0xff9d012a, 0x82bc01d7, 0x0d9b4d03, 0xd001d722, 0x2006e748, + 0x211b82e1, 0x874dffe4, 0x02d72607, 0x02c3ff80, 0x20038282, 0x086378a0, 0x7802d721, 0xd7220563, 0x2782b702, 0x0382b920, 0x5f78bc20, 0x05734d06, + 0x4d02d721, 0xd7220573, 0x1782cb02, 0x2205734d, 0x46e602d7, 0xc3261099, 0xd7fffe02, 0xf5820603, 0x03820820, 0xc3ff0d24, 0x03820f03, 0xa9441720, + 0x21002205, 0xff711800, 0x82b02023, 0x217d82b5, 0x0782bd01, 0x6182bf20, 0x03820020, 0x03827620, 0x72189f20, 0xbb20120f, 0x2f47a584, 0x05274705, + 0x4708f547, 0x1720081f, 0x200e2169, 0x0be54d8f, 0x4d05b942, 0x454d1249, 0x9e414d07, 0x22075b51, 0x10ff6a02, 0x6401290d, 0x0142002f, 0x01d7ff9d, + 0x01f600a3, 0x012900a4, 0x220b82a6, 0x441400aa, 0xe54c12f3, 0x82c12005, 0x82c4201f, 0x82ce2003, 0x82d5202b, 0x82e12003, 0x82e7200b, 0x00f13207, + 0x00f20166, 0xff6c0229, 0x007202ec, 0xff7c0214, 0x08fd4cd7, 0x0b828020, 0x52188220, 0xd74412ad, 0x0bd34405, 0x2009ad43, 0x202f82bd, 0x4b0382bf, + 0xd7220515, 0x0b82c202, 0x0382c620, 0x2209c744, 0x82d502d7, 0x82d9200f, 0x82db206b, 0x82dd2003, 0x15d34403, 0xfe02d726, 0x0d03d7ff, 0x0f200382, + 0x44066b48, 0xcf4409d3, 0x3100210c, 0x2008af54, 0x49d58210, 0xc32215a5, 0x1b82cb01, 0x2009f145, 0x24f584ae, 0x023d0007, 0x2003820b, 0x22f5846c, + 0x187e02ae, 0x71163775, 0x594905c1, 0x84b62005, 0x82ae20dd, 0x02ae2ad9, 0x02c3ffc5, 0x029affc6, 0x870782c7, 0xffd523e1, 0x751802ae, 0xcd82125f, + 0x4503ae21, 0xd7200999, 0x08f54318, 0x21069545, 0xa14e2600, 0xffb12408, 0x45b501ec, 0xec220849, 0x0f82be01, 0x0f82bf20, 0x0782c120, 0x0382c420, + 0x9353c720, 0x827c200a, 0x8280200b, 0x82822003, 0x82a12003, 0x82a92003, 0x453b829d, 0x8f41083d, 0x02ec2105, 0x02213b82, 0x201b82ce, 0x202382d4, + 0x200382e7, 0x200382e9, 0x200382f5, 0x4c0382f7, 0xec26099d, 0xecff0d03, 0x03820f03, 0xd7ff1124, 0x03821703, 0xd7ff1b24, 0x65544c00, 0x00d7210e, + 0x0bcf7618, 0x413feb67, 0x3d2005af, 0x2112554b, 0xa94201d7, 0x01ae2205, 0x20fd82e4, 0x0d1d62f2, 0xb3410220, 0xeb76181f, 0xffc02107, 0x4105ab41, + 0x19202f9f, 0x3147fd83, 0x03d72108, 0x2b137718, 0x496a5620, 0xff9d2494, 0x82a401d7, 0x82a62003, 0xffaa2403, 0x82ae01ec, 0x054d5503, 0xbf01c322, + 0xc4200b82, 0x2519456a, 0xecff7202, 0x7b187602, 0x77180807, 0x0d4f0d2b, 0x02c32205, 0x201f82ca, 0x202782d9, 0x200382db, 0x180382dd, 0x180b0f7b, + 0x20473f77, 0x08eb4345, 0x6bd97118, 0xaeffa424, 0x0382aa01, 0x9affae22, 0x2206934c, 0x82ce01ec, 0x82d5200b, 0xfff22413, 0x820002ae, 0x4f7718ed, + 0x02ae2209, 0x20138258, 0x4b038272, 0x711805ab, 0x09240df9, 0x0b03aeff, 0x2108734b, 0x634b03ae, 0x65ae2005, 0x42183c9f, 0x7a180951, 0x35535771, + 0x01d72605, 0x01d7ffbb, 0x057b55be, 0x0cb16318, 0x20058d43, 0x184145c3, 0x2a098d43, 0xffc202c3, 0xffc602c3, 0x82d502ae, 0x15294507, 0x7a18c320, + 0x0121378d, 0x7c036652, 0x01fb2510, 0xff9f2753, 0xffa001c3, 0x834301ec, 0x01852105, 0x18078343, 0x200b7b71, 0x262382be, 0x011400c4, 0x5885ffca, + 0x71200a69, 0x58106958, 0x71210565, 0x37655801, 0x6782e520, 0x0382e620, 0x22055d58, 0x82ea01c3, 0x00eb236f, 0x61580129, 0x01852109, 0x21052750, + 0x61580185, 0xf771180f, 0x0761580f, 0x17ef7118, 0x20056d58, 0x0e6d58c3, 0x1802c321, 0x5833f771, 0xa923136d, 0x58021400, 0xc3261171, 0x85ffb202, + 0x7218b302, 0xbc201e17, 0xbd201f82, 0x55523f82, 0x05815807, 0xc602c322, 0xc7203b82, 0xcb201b82, 0xfb440382, 0x58712005, 0xc3222a81, 0x3782e302, + 0x210d8158, 0x815802c3, 0x02c32105, 0x165b7218, 0x20128158, 0x06815885, 0x0d737218, 0x2105e350, 0x81580371, 0x03c32105, 0x137f7218, 0x20058b45, + 0xa7271071, 0x63200401, 0x2511554b, 0xaa01aeff, 0xe75b9aff, 0x05995306, 0xecffbe27, 0x2900c401, 0x05915301, 0x5b01c321, 0x712205e3, 0xdb5bcf01, + 0x0b754310, 0x5b019a21, 0xc32209db, 0x5782de01, 0x430fcf5b, 0xc3201169, 0x22066543, 0x82ee01c3, 0x05c75b5b, 0x61106543, 0x0229079d, 0x029aff6a, + 0x02c3ff6b, 0x20078272, 0x2007827d, 0x2007827f, 0x20038285, 0x20038287, 0x20038289, 0x4303828d, 0xa4200715, 0x5b067f5b, 0xb2200b7b, 0xb4201f82, + 0xe1420382, 0x47c6200b, 0xd54208d1, 0x029a2213, 0x201f82da, 0x533382db, 0x9a22057d, 0x0b82e002, 0x4b5bec20, 0x82f02006, 0x82f2200b, 0x82f42003, + 0x07335b03, 0x85ff0928, 0x9aff0a03, 0x07820b03, 0x07820c20, 0x200ba142, 0x200f8216, 0x4203821a, 0x00200691, 0x49055b51, 0xc32a05bd, 0xecffa801, + 0xd7ffaa01, 0x0382ae01, 0xc3ffb022, 0x22062d4c, 0x82bf01c3, 0x82c4200f, 0x82c7200f, 0x82ce2007, 0x82d52007, 0x82f22003, 0xff722481, 0x827602d7, + 0x829f2007, 0x82a12003, 0x18a9200b, 0x200eed80, 0x200f82bb, 0x200382bd, 0x200382ca, 0x201f82ce, 0x180782cf, 0x210a0b80, 0x0f82e502, 0x1782e720, + 0x0382e920, 0xd7fff528, 0xc3ff0503, 0x03820703, 0x0b821120, 0x07821220, 0x03821720, 0x0b821b20, 0xc3ff1c24, 0x695b2e00, 0x00a4220c, 0x0e934e3d, + 0x5301d721, 0xec220583, 0x5582e101, 0x230b755b, 0x02ecff7c, 0x21050357, 0xd34c02ec, 0x13535307, 0x2782b120, 0x0382b320, 0x0382bf20, 0x2205855f, + 0x4dc202ec, 0xd4200681, 0x57481382, 0x7fec2005, 0x5f5a084f, 0xfd022106, 0xfe201b82, 0xe34ca982, 0x06235308, 0x21061b53, 0x4d4f3000, 0x0b494f08, + 0x4dffbc21, 0x00230681, 0x82c10114, 0x05414f0b, 0xbd821420, 0x4f01d721, 0x3d4f0b41, 0x053b5c05, 0x7a18bd87, 0x02201265, 0xd722b585, 0x8d82c102, + 0xd7ffc224, 0x0382c502, 0x0382c620, 0x254fc720, 0x02142108, 0xd721c585, 0x0b254f02, 0xd720bd85, 0x8209a14d, 0x001224bd, 0x53170314, 0x142408d9, + 0x9d013e00, 0xa32aa182, 0xa401e100, 0xaa013d00, 0x7b412900, 0x20c58308, 0x200f82bd, 0x201f82be, 0x20c986bf, 0x200b82c4, 0x200b82c7, 0x202b82ce, + 0x4f0782d1, 0xec20051d, 0xe420d984, 0xdd8d1b82, 0x41022921, 0xd720059f, 0x23089b41, 0x021400a1, 0xaa20e183, 0xb520c982, 0xb6200382, 0x0d1f8518, + 0x0350e990, 0x50ec2009, 0x29260603, 0x2900db02, 0x0382dd02, 0x4b82e720, 0x0382e920, 0x0382f520, 0x0f82f720, 0x0382f920, 0x0382fb20, 0x2920f595, + 0x1820f584, 0x2922f988, 0x27621e00, 0x0171230e, 0x2762ffa8, 0x091f6205, 0x215bd720, 0x05136206, 0xc3ff7c22, 0x5b087f54, 0x9d551715, 0x02c32105, + 0x02214382, 0x232f82d4, 0x03c3fffd, 0x5a094b54, 0x202005e5, 0x2214ab5b, 0x6285ffbc, 0x79870a99, 0x0b029a25, 0xaf029aff, 0x82c52079, 0x82c72079, + 0x21819703, 0xd94d0123, 0x44f7830b, 0x49500717, 0x55c32005, 0xec260693, 0xd7ffbf01, 0x0382d501, 0x0f44f220, 0x0f31500a, 0x21050b44, 0x0b4402d7, + 0x02c32205, 0x202b82cf, 0x507d82e5, 0xff430a29, 0x03c3220a, 0x08295012, 0x1c03c322, 0x4e06f55b, 0xa8220967, 0xa544ecff, 0x01d72106, 0xd7208d85, + 0x22064f55, 0x8cce01d7, 0x02d7228d, 0x2069829f, 0x08455dbb, 0x7986d720, 0x8d02d721, 0x03d72279, 0x44718207, 0xd7210579, 0x05754403, 0x1900d724, + 0x4d820a00, 0x0382dc20, 0x2205635c, 0x82e401ec, 0x82f6200b, 0x054f5f4d, 0x0dcf4e18, 0x1806855f, 0x2408b96c, 0x02ecffc0, 0x200382c2, 0x5f0382d5, + 0xec210d47, 0x0b475f03, 0xb3842120, 0x6988d020, 0xdf01d722, 0xe1200b82, 0x6d89e382, 0x7d02d722, 0x0a234418, 0x81828b20, 0xf75fa020, 0x22718209, + 0x82ba02d7, 0x82bc200f, 0x20758703, 0x830b82cb, 0x82e62079, 0xc1651807, 0xfe02250a, 0x0603ecff, 0x0820eb82, 0x735b0382, 0xff182407, 0x472400d7, + 0x57570799, 0x82dd2008, 0x4e898f85, 0x595c078f, 0x22ff8305, 0x828302d7, 0x21918561, 0x034102ec, 0x21918709, 0x918902ec, 0x8502ec21, 0x79441891, + 0x2291860c, 0x180803ec, 0x830a7d44, 0x4f072091, 0x9a2e060d, 0xecffed01, 0x9afff201, 0x9affcf02, 0x03821203, 0x9aff1c2a, 0xca011000, 0xce011400, + 0x2a086d59, 0xffe401d7, 0x00f101c3, 0x417d027b, 0x4f610a19, 0x00da240b, 0x82dc0214, 0x82fe2003, 0x225f83f9, 0x820a000d, 0x057741e1, 0xdf01ec25, + 0x4102ecff, 0xec220553, 0x0b82b602, 0x4582bc20, 0x0382cb20, 0x2d82e620, 0x24072f41, 0x00ecff18, 0x08894620, 0x6109995d, 0x8d5d08ef, 0x826a2010, + 0x188f8341, 0x8b1b716a, 0x82e020a3, 0x7d6a182f, 0x8302200a, 0x21a582ab, 0x85820c03, 0x03821620, 0xd7ff1a24, 0xa9411d00, 0xffd12408, 0x82dc01ec, + 0x82dd2003, 0x05af5f03, 0xf601d722, 0x610a3550, 0xdf8515f5, 0x2782b820, 0x200bf561, 0x6d5118d5, 0x0eed610d, 0x2100ec22, 0xcb20f788, 0x12417618, + 0x7618e120, 0xc14f0945, 0x20fbd308, 0x0c636922, 0x7582d020, 0xfb82d120, 0xf162d520, 0x82df200a, 0x82f22013, 0x60f6200f, 0xf1620609, 0x0d33430b, + 0x4105f562, 0xcf2007e7, 0x2b432f82, 0x02ec2105, 0x07377018, 0x26092743, 0xff1003ec, 0x821203ec, 0xff182903, 0xff1c03d7, 0x011300ec, 0xec227d8d, + 0x7582df01, 0x0382e420, 0x49427d82, 0x43618614, 0x4d85087d, 0x4d84ec20, 0xd3411720, 0x21258208, 0x7418d801, 0x495608bd, 0x826a2005, 0xd36b189b, + 0x3000213a, 0x270c876a, 0x01d7ffca, 0x019affce, 0xd5226983, 0x6d82c3ff, 0xdb01d722, 0xdd241382, 0xde011400, 0xed200782, 0xf2200382, 0xf6201f82, + 0x099f6d18, 0xff6a0225, 0x826d02d7, 0x827f200f, 0x82812007, 0x82832007, 0x416d1803, 0x828b200b, 0x188d200f, 0x200a456d, 0x200f82b8, 0x240382ba, + 0x02c3ffcf, 0x201782da, 0x596d18dc, 0x18022011, 0x420bfd6e, 0x6f1807e3, 0x12230705, 0x4203c3ff, 0x032306ef, 0x44c3ff1c, 0x0021099d, 0x22a58249, + 0x82ecffca, 0x01c321c1, 0xec22bd85, 0xb984dc01, 0xf201ec22, 0xa1446d82, 0x17334107, 0x9582aa20, 0xecffb224, 0x0382b402, 0xa188b620, 0xdc02ec22, + 0x1a1b6d18, 0xec288d85, 0x14001803, 0xecff1a03, 0x1c209184, 0x631c8942, 0x95820a3d, 0x4205bd45, 0xa9450b7d, 0x46cf200f, 0xe6220627, 0xa145d7ff, + 0x0b71420c, 0xcb011d22, 0x0e7f4a18, 0x0f82de20, 0x0382e120, 0x2f42ea20, 0x20f38306, 0x1e2b427d, 0x180b9546, 0x840e0b6e, 0x820a2079, 0x820c20df, + 0x82162003, 0x22eb8203, 0x4a011500, 0x2922059b, 0x6d86dc01, 0xe559e420, 0x00e92406, 0x59f10114, 0x012405e9, 0x021400f6, 0xaa207983, 0x8706b149, + 0x00cf2465, 0x82d50229, 0x82fe2013, 0x0012244d, 0x82180329, 0x001c2407, 0x82160029, 0x013d2155, 0x21091b4a, 0x1b4a01ec, 0x01142105, 0x59b8cb86, + 0xa7821920, 0x46019a21, 0x754a05bb, 0x01712407, 0x63c3fff6, 0x0563060d, 0xff8b2809, 0xffaa02d7, 0x82b6029a, 0x354b1803, 0x0b8b4507, 0x180d3547, + 0x2409fb6c, 0x009aff18, 0x08af431c, 0x90ffdc21, 0x082f4e6d, 0xc5052547, 0x48112071, 0xf1440825, 0x056f4407, 0xf201d724, 0xdf82ecff, 0xa002d722, + 0x20060148, 0x440782cb, 0x1c24136b, 0x1000ecff, 0xf6204598, 0x4506ff46, 0xad440e0f, 0x1841830c, 0x20083d5d, 0x217f8201, 0x49441c00, 0x01d72406, + 0x449affd5, 0x0d470649, 0x05976405, 0x2005b747, 0x4791826a, 0xcf231b01, 0x46029aff, 0x17640ef9, 0xff122208, 0x0a09449a, 0x02009a2d, 0x3d00eb01, + 0x3d00f401, 0x47012100, 0x9a2605bb, 0xc3ffdd01, 0x0347de01, 0x82e4200a, 0x05a5498b, 0x7d02c322, 0x81247b82, 0x8302c3ff, 0x8b200382, 0x85430382, + 0x07f54105, 0x2107f76a, 0xf94102d7, 0x05374907, 0xe602d722, 0x84183782, 0x02210a6d, 0x0a0748fe, 0xc3ff0e24, 0x03821003, 0x9aff1824, 0x858c1f00, + 0x2105f743, 0x818201d7, 0x826d0221, 0x217ddf6d, 0xe7820101, 0x471c0021, 0xec200a9b, 0x410a3166, 0x19480b89, 0x02292507, 0x0229000b, 0x411f9141, + 0x8348178d, 0xca012308, 0x7f45d7ff, 0xfff2220c, 0x215582d7, 0xa74602ec, 0x15734513, 0x4602d721, 0xec210515, 0x8f721802, 0x13734513, 0xc16eda20, + 0xffbc22c4, 0x08c56e85, 0x189e7f61, 0x6e10294a, 0xa92073c1, 0x6e063f71, 0x5b711bc5, 0x02c3220d, 0x203382b9, 0x06d16eba, 0x0b82bd20, 0x6e0d5356, + 0xfd6ab1d5, 0x69c32005, 0xd96e060d, 0x18032061, 0x210bbb98, 0x9d18c300, 0x8f1844b3, 0x9d181919, 0x8f1845af, 0x9d180b55, 0x9d1853a7, 0x9d1827a3, + 0x9d186f9f, 0x9018279b, 0x60240735, 0x6a02c3ff, 0x9d180382, 0x85200b93, 0x87200f82, 0x89200382, 0x9d180382, 0xb9242387, 0xbb025200, 0x327f9d18, + 0x3382f920, 0x3d00fb22, 0x10739d18, 0xa36b9d18, 0x52007132, 0x52007303, 0x45001000, 0x49003d00, 0x4b006600, 0x62180782, 0x3d2209c7, 0x0f824f00, + 0x17825720, 0x03825920, 0x03825a20, 0x29005b24, 0x07825c00, 0x29005d28, 0x66007003, 0x03827203, 0x0f827420, 0x522141a7, 0x20418900, 0x2e418c14, + 0xff090302, 0xff0b0385, 0x00020085, 0x82050096, 0x00003201, 0x000b000a, 0x000f0001, 0x00030011, 0x00270024, 0x207d8206, 0x22158229, 0x822c002c, + 0x002e3819, 0x000c002f, 0x00350032, 0x0037000e, 0x0012003e, 0x00460044, 0x8248001a, 0x001d22c5, 0x2201824e, 0x82500021, 0x00222edd, 0x00570055, + 0x00590025, 0x0028005e, 0x2201826d, 0x827d002e, 0x002f3c01, 0x00870082, 0x00890030, 0x00360092, 0x00980094, 0x009a0040, 0x0045009f, 0x82ad00a2, + 0x00b32243, 0x2c3782b8, 0x00bf00ba, 0x00c1005d, 0x006300c9, 0x240182cb, 0x00cd006c, 0x264382cf, 0x00d100d1, 0x82d50070, 0x00712201, 0x280182d7, + 0x00d90072, 0x007300db, 0x220182dd, 0x82ec0076, 0x00772201, 0x220182f0, 0x82f20078, 0x00792201, 0x280182f8, 0x00fa007a, 0x007b00fb, 0x090182fd, + 0xff007d04, 0x7e000101, 0x03010301, 0x06018100, 0x82000601, 0x08010801, 0x0a018300, 0x84000a01, 0x0f010e01, 0x11018500, 0x87001301, 0x15011501, + 0x1d018a00, 0x8b001d01, 0x1f011f01, 0x21018c00, 0x8d002401, 0x27012601, 0x2c019100, 0x93002c01, 0x30013001, 0x32019400, 0x95003201, 0x34013401, + 0x36019600, 0x97003b01, 0x3d013d01, 0x3f019d00, 0x9e004001, 0x44014301, 0x4a01a000, 0xa2004a01, 0x56015601, 0x5a01a300, 0xa4006201, 0x64016401, + 0x6601ad00, 0xae006901, 0x6d016c01, 0x6f01b200, 0xb4007c01, 0x84017e01, 0x8601c200, 0xc9008801, 0x8e018a01, 0x9001cc00, 0xd1009101, 0x97019301, + 0x9901d300, 0xd8009901, 0xa2019b01, 0xa401d900, 0xe100a801, 0xae01aa01, 0xb001e600, 0xeb00b101, 0xb401b401, 0xb801ed00, 0xee00b801, 0xc001ba01, + 0xc301ef00, 0xf600c401, 0xc801c601, 0xca01f800, 0xfb00d101, 0x0182d401, 0xd8010322, 0x04340182, 0xe001da01, 0xe3010501, 0x0c01ea01, 0xee01ec01, + 0xf0011401, 0x7a090182, 0x01f20117, 0x011801f6, 0x010302f8, 0x0206021d, 0x02290106, 0x010a020a, 0x0228022a, 0x022b0128, 0x01580258, 0x0260022c, + 0x022d0160, 0x01620262, 0x026a022e, 0x022f016a, 0x0172026c, 0x02740230, 0x02370174, 0x017c0276, 0x027e0238, 0x023f018c, 0x019d0295, 0x029f024e, + 0x025701a0, 0x01af02a2, 0x02b10259, 0x026701c0, 0x01c302c3, 0x02c50277, 0x027801c5, 0x01c702c7, 0x02c90279, 0x027a01cc, 0x01cf02ce, 0x02d2027e, + 0x028001d3, 0x01d902d6, 0x02db0282, 0x028601db, 0x01de02de, 0x02e00287, 0x028801e9, 0x01fc02ef, 0x03ff0292, 0x03a00100, 0x01080303, 0x030b03a2, + 0x03a8011d, 0x011f031f, 0x032103bb, 0x03bc0121, 0x01230323, 0x032503bd, 0x03be0125, 0x01270327, 0x032903bf, 0x03c00129, 0x012b032b, 0x032d03c1, + 0x03c2012d, 0x012f032f, 0x033103c3, 0x03c40131, 0x01330333, 0x033603c5, 0x03c60136, 0x01380338, 0x033a03c7, 0x03c8013a, 0x013c033c, 0x033e03c9, + 0x03ca013e, 0x01400340, 0x034203cb, 0x03cc0142, 0x01450344, 0x034703cd, 0x03cf0147, 0x01560349, 0x035803d0, 0x03de0158, 0x015a035a, 0x035c03df, + 0x03e0015c, 0x015e035e, 0x036003e1, 0x03e20161, 0x01630363, 0x036603e4, 0x03e50166, 0x01680368, 0x036a03e6, 0x03e7016a, 0x016c036c, 0x036e03e8, + 0x18e90174, 0x2208fba8, 0x181e001c, 0x2410fba8, 0x00000000, 0xb5fa0500, 0x00115d00, +}; + diff --git a/thirdparty/imgui_suite/generated/fonts/src/FiraCodeRetina.inc b/thirdparty/imgui_suite/generated/fonts/src/FiraCodeRetina.inc new file mode 100644 index 00000000000..cb2c05580dc --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/FiraCodeRetina.inc @@ -0,0 +1,3908 @@ +// File: 'extract/fira-code/ttf/FiraCode-Retina.ttf' (285428 bytes) +// Exported using binary_to_compressed_c.cpp +static const unsigned int FiraCodeRetina_compressed_size = 187245; +static const unsigned int FiraCodeRetina_compressed_data[187248/4] = +{ + 0x0000bc57, 0x00000000, 0xf45a0400, 0x00000400, 0x00010025, 0x82120000, 0x00042604, 0x49534420, 0x240d8247, 0x5a040001, 0x2c0782ec, 0x45444708, + 0x1ce11646, 0x01000094, 0x3b03822c, 0x4f5047f4, 0x369bbd53, 0x030000b0, 0x1f000020, 0x555347ca, 0xec678242, 0x220000f4, 0x622d2f82, 0x2f534fc6, + 0x8f5b8032, 0x8500008d, 0x3c3f82b4, 0x616d6360, 0x58e4dc70, 0x86000025, 0x43000014, 0x74766378, 0x19434720, 0x4b0400f8, 0x281f8254, 0x677066a8, + 0x15369e6d, 0x280f82d2, 0x0e0000fc, 0x73616715, 0x20178270, 0x200f8210, 0x3c07824c, 0x796c6708, 0x1ba04c66, 0xc900002e, 0xe102008c, 0x6165683c, + 0x6e291664, 0xaa0300b0, 0x211f82c8, 0x10826836, 0x05700226, 0xab030064, 0x00290e82, 0x746d6824, 0xb457b178, 0x200f82b5, 0x2c9f8224, 0x636f6c32, + 0x65570a61, 0xca0300dc, 0x2b0f8258, 0x78616dbc, 0x14d20f70, 0xea030010, 0x00298f82, 0x6d616e20, 0xa8818265, 0x2f0f82d1, 0x05000034, 0x736f7022, + 0x8bb14174, 0xef030081, 0x5b2d2f82, 0x657270f3, 0x9ccd8a70, 0x5a04001e, 0x26608214, 0x000100d6, 0x820e0002, 0x21028209, 0x0b82ce01, 0x11824a20, + 0x03822820, 0x2b002a22, 0x2d220582, 0x05825f00, 0x85006122, 0x88220582, 0x1f828900, 0x9d008a22, 0x9f220b82, 0x0582bb00, 0xd200bd22, 0xd4220582, + 0x0582de00, 0xec00e022, 0xee280582, 0x01006501, 0x6a016a01, 0x6c220582, 0x05826e01, 0x73016f28, 0x77010200, 0x0b829e01, 0xa701a022, 0xa9220582, + 0x0582ab01, 0xb701ad22, 0xb9220582, 0x0582bc01, 0xbf01bf22, 0xc1220582, 0x0582cc01, 0x8201ce21, 0xd4012353, 0x0b82d401, 0xd601d622, 0xd8220582, + 0x0582df01, 0xf601e122, 0xf8280582, 0x01000502, 0x08020702, 0x0a220582, 0x05821802, 0x2e021a22, 0x30220582, 0x05824702, 0x4c024a22, 0x4f220582, + 0x05824f02, 0x62025122, 0x64220582, 0x05826402, 0x66026622, 0x68220582, 0x05826f02, 0x84027122, 0x86220582, 0x05828602, 0x95028822, 0x97220582, + 0x0582a102, 0x5b03a328, 0x5d030100, 0x05825d03, 0xe0035f22, 0xe5220582, 0x0582e603, 0xea03ea27, 0x08050100, 0x23718205, 0x0c050c05, 0x21220b82, + 0x05822205, 0x24052422, 0x3d220582, 0x05823d05, 0x3f053f22, 0x41220582, 0x05824205, 0x45054422, 0x47220582, 0x05824a05, 0x55054d22, 0x57220582, + 0x05825705, 0x67056422, 0x8d220582, 0x05829305, 0x82059521, 0x99052377, 0x0b829a05, 0x8205ea21, 0x0a06285f, 0x01000a06, 0x82060c06, 0x3c06235f, + 0x0b823c06, 0x5f065f22, 0x642e0582, 0x01006406, 0x84078307, 0x88070300, 0x0b828807, 0x90078a22, 0x94220582, 0x05829407, 0x96079622, 0x992a0582, + 0x0300a907, 0xac07ac07, 0x01820100, 0x00000224, 0x03820c00, 0x0b821620, 0x84070324, 0x1d82a807, 0x02000222, 0x83264382, 0x99070000, 0x2584a707, + 0x00003908, 0x007e000a, 0x4406009c, 0x00544c46, 0x72796366, 0x6766006c, 0x006b6572, 0x74616c66, 0x7a26006e, 0x00686e69, 0x79797a66, 0x00660079, + 0x410a0044, 0x00204b46, 0x455a4144, 0x43220582, 0x05835441, 0x05835220, 0x5a414b22, 0x4d220b82, 0x05824c4f, 0x834c5021, 0x4f522223, 0x200b824d, + 0x21238454, 0x11835254, 0x82040021, 0xff00368f, 0x000200ff, 0x00010000, 0x72616d02, 0x6d0e006b, 0x006b6d6b, 0x85118216, 0x00002215, 0x20018202, + 0x262b8203, 0x1ef60c0a, 0x82841e3a, 0x242d8309, 0x1e010008, 0x24d18288, 0x01a21e01, 0x2a2182a8, 0x00010044, 0x00000028, 0x822b002a, 0x002d2207, + 0x0809825f, 0x85006130, 0x8a005d00, 0x82009d00, 0xb3009f00, 0xb5009600, 0xab00bb00, 0xd200bd00, 0xd400b200, 0xc800de00, 0xec00e000, 0xee00d300, + 0xe0006501, 0x01826a01, 0x01583208, 0x016e016d, 0x01770159, 0x015b0198, 0x019b019a, 0x019d017d, 0x017f019e, 0x01a701a0, 0x01a90181, 0x018901ab, + 0x01b701ad, 0x01b9018c, 0x019701bc, 0x2e0182bf, 0x01c1019b, 0x019c01cc, 0x01d201ce, 0x82d401a8, 0x01ad2201, 0x2a0182d6, 0x01d801ae, 0x01af01df, + 0x82f601e1, 0xf8480831, 0xcd010502, 0x08020702, 0x0a02db01, 0xdd011802, 0x1d021a02, 0x1f02ec01, 0xf0012802, 0x2b022a02, 0x2d02fa01, 0xfc012e02, + 0x34023002, 0x3602fe01, 0x03024702, 0x4c024a02, 0x51021502, 0x18025d02, 0x62026002, 0x66022502, 0x282e0182, 0x6f026802, 0x71022902, 0x31028402, + 0x01828602, 0x8802452a, 0x46029202, 0x95029402, 0x97322d82, 0x5302a102, 0xc002a302, 0xc2025e02, 0x7c025203, 0x01825403, 0x56030d28, 0x0e035b03, + 0x01825d03, 0x5f03142e, 0x1503e003, 0xe603e503, 0xea039703, 0x4f080182, 0x05080599, 0x059a0308, 0x030c050c, 0x0521059b, 0x059c0321, 0x033f053f, + 0x060a069d, 0x069e030a, 0x030c060c, 0x063c069f, 0x06a0033c, 0x035f065f, 0x066406a1, 0x07a20364, 0x03880788, 0x078a07a3, 0x07a40390, 0x03940794, + 0x079607ab, 0x07ac0396, 0x03250182, 0x1cae03ad, 0x2701916e, 0xf407f407, 0xdc0a6e1c, 0x07230189, 0x8364075e, 0x26092103, 0x1c230191, 0x8724086e, + 0x854b9101, 0xcc082111, 0xde240182, 0x6a07de08, 0x70200188, 0xe4213782, 0x97018808, 0x21178d39, 0x0189d007, 0x87ea0821, 0x95238d01, 0x7409210d, + 0x08210187, 0x270185d8, 0xe408dc0a, 0xd0076e1c, 0x8a210d82, 0x20018508, 0x83078690, 0x0896260d, 0x08f40a96, 0x27018972, 0x7607f40a, 0x9c087c07, + 0x3c200188, 0x07230987, 0x87880782, 0xf40a2101, 0x08210183, 0x200186b4, 0x220988ba, 0x83a409b4, 0x231d8301, 0x8408421d, 0x1d210189, 0x21018342, + 0x07858e07, 0x68200588, 0x0a250f8d, 0x07421df4, 0x210185be, 0x01894208, 0x87940721, 0x86399701, 0x824f8b17, 0x92c5880b, 0x9a0721fb, 0x53880187, + 0x8a1d4221, 0x20d3893f, 0x95df8a08, 0xa6072115, 0xa0200188, 0xa6220988, 0x018aac07, 0x8807b221, 0x09154101, 0x07840823, 0x210189b8, 0x89837208, + 0x9c26f582, 0xa409be07, 0xe341c407, 0xd2082105, 0x07210185, 0x420f83ca, 0x1c230599, 0x8500086e, 0x6e1c251d, 0xe807e807, 0x270b0d42, 0xea08dc0a, + 0x0c080c08, 0x08211383, 0x21198b12, 0x3782d007, 0x17840620, 0x3f42cc20, 0xd6072111, 0x07231383, 0x82e207dc, 0x83002025, 0xee072153, 0x51832585, + 0x09740923, 0x20398474, 0x82538d12, 0x2763842b, 0x2609f407, 0xfa07fa07, 0x0b82998b, 0x89830620, 0x23820382, 0x08180823, 0x21758d1e, 0x0f8e2408, + 0x0f8e2a20, 0xf40a8a24, 0x01863008, 0x421d3626, 0x9c08421d, 0x3c200182, 0x60200782, 0x2305b341, 0x66086608, 0x4109bd41, 0x1d23053f, 0x82f40a42, + 0x89782021, 0x820d8217, 0xe20a253b, 0xa409ba08, 0x21861b83, 0x21894820, 0x824e0821, 0x08b42623, 0x085a0854, 0x21518360, 0x6d846c08, 0x21897220, + 0x08b00923, 0x228d8278, 0x8584087e, 0x8a082513, 0x96089008, 0xa2268d82, 0x681da808, 0x1582ae08, 0x07826820, 0xba08b424, 0x0b84c008, 0xc6084222, + 0x43074d42, 0xe942050d, 0x210d930d, 0xff83cc08, 0x1cd20827, 0x0826096e, 0x050b41d8, 0x1cde0825, 0x41e4086e, 0x08210917, 0x058741ea, 0x09211185, + 0x20078626, 0x8b078374, 0xf0082119, 0xb7411185, 0x2e418a07, 0x09fc08f6, 0x09080902, 0x0914090e, 0x9920091a, 0x0f054519, 0x990d9d41, 0x2c09250d, + 0x38093209, 0x09291f91, 0x0944093e, 0x0950094a, 0x271b8556, 0x62095c09, 0x6e096809, 0x8207b344, 0x097a28f7, 0x09860980, 0x8b92098c, 0x8c09203d, + 0xb0092915, 0x421df40a, 0x1c0af40a, 0x22200382, 0x9a200382, 0x8705cf41, 0x98092105, 0x250f5b41, 0x9e099a0a, 0x95419a0a, 0x20058205, 0x22418242, + 0x8d220a1c, 0x84478225, 0x21158755, 0x4f85a409, 0x09aa0933, 0x09c809c2, 0x09d409ce, 0x09e009da, 0x09ec09e6, 0x22018ab0, 0x90bc09b6, 0x09f22c1f, + 0x0afe09f8, 0x0a0a0a04, 0x82160a10, 0x0a1c32a5, 0x0a3a0a34, 0x0a460a40, 0x0a520a4c, 0x0a5e0a58, 0x22018622, 0x902e0a28, 0x0a64321b, 0x0a700a6a, + 0x0a7c0a76, 0x0a880a82, 0x0a940a8e, 0x2a018e9a, 0x0ab20aac, 0x0abe0ab8, 0x83ca0ac4, 0xa00a24ad, 0x8a0aa60a, 0xd00a2313, 0xdb8dd60a, 0x1f96c982, + 0x0b300b23, 0x243b9036, 0x0a6e1c62, 0x2a0382dc, 0x0ae80ae2, 0x0af40aee, 0x82ba1cfa, 0x2f05820d, 0x060b000b, 0x120b0c0b, 0x1e0b180b, 0x2a0b240b, + 0x1d273d83, 0x02010068, 0x82620538, 0x834c2005, 0x66012105, 0x68200584, 0x1b221184, 0x1782c605, 0x05845620, 0x0584e420, 0x1e044d22, 0x6d201182, + 0x01230583, 0x821805e7, 0x844e200b, 0x05862211, 0x200b827e, 0x200b8486, 0x2029845f, 0x20058457, 0x20058486, 0x20178493, 0x2053840f, 0x200584ef, + 0x20058464, 0x20058436, 0x22718445, 0x82cd07e1, 0x84802041, 0x84572011, 0x84cf2005, 0x054a2205, 0x20178263, 0x200b8451, 0x2005843f, 0x2005846c, + 0x21058342, 0x0b840b03, 0x05843b20, 0x05849420, 0x05847720, 0x7184a820, 0x0584e420, 0x9b846c20, 0xb3846920, 0xb3847320, 0x17843d20, 0x11845520, + 0x8906f122, 0x49205f82, 0x80201184, 0x4a200584, 0xb0220584, 0x17820c04, 0x0b843e20, 0xc5844e20, 0x05840f20, 0x11844820, 0x53844820, 0x0b846720, + 0x05846c20, 0x05855b20, 0x49201784, 0x5a200584, 0x5a201184, 0x4f200b84, 0x3e200584, 0xbc200584, 0xb420a184, 0x7b200584, 0x85200584, 0x59200584, + 0x56200584, 0xa3200584, 0x00270583, 0x007705dd, 0x83bb0001, 0x76ff2305, 0x0b826a05, 0x70054822, 0x03200582, 0xff210583, 0x22118486, 0x8275055b, + 0x83422011, 0x82022123, 0x0f203584, 0x12202f84, 0xff211d83, 0x842984e3, 0x91fe2147, 0x6b201184, 0x26201184, 0xfe210583, 0x201184a8, 0x202f84a3, + 0x2011845a, 0x21118329, 0x4d84cefe, 0x4d835e20, 0x83dcff21, 0x90fe210b, 0x6a202984, 0x27203b84, 0xa9202984, 0x02211183, 0x20e38466, 0x20d7843b, + 0x200b84e0, 0x200584a3, 0x2605842a, 0x00460632, 0x84160201, 0x06702605, 0x01010048, 0x200584e4, 0x2305837d, 0x4e062e02, 0x30201d82, 0x01210583, + 0x22118476, 0x82d40660, 0x062e2211, 0x220582d6, 0x82b6052f, 0x84be2005, 0x84322017, 0x84cb2035, 0x847c200b, 0x847e2035, 0x84c42035, 0x84782011, + 0x8459206b, 0x84612005, 0x8445206b, 0x849f2005, 0x8413201d, 0x84ac203b, 0x845d200b, 0x845f203b, 0x84a5203b, 0x848f2011, 0x845d2071, 0x845e2071, + 0x84812071, 0x84f5202f, 0x848e2005, 0x843f2023, 0x84412035, 0x84872035, 0x84712011, 0x843f2035, 0x843b2035, 0x205f8577, 0x201d8420, 0x2005849e, + 0x20418412, 0x200b84ab, 0x2041845c, 0x2041845e, 0x201184a4, 0x2041848e, 0x2241845c, 0x826205da, 0x844f20e9, 0x06792247, 0x220b8286, 0x846a0558, + 0x82c62005, 0x842e2005, 0x845e201d, 0x845d2035, 0x84b42053, 0x848e200b, 0x840f2053, 0x84862053, 0x846d2011, 0x84542053, 0x06602253, 0x203b8246, + 0x21058244, 0xeb4c0004, 0x0c003106, 0x02001800, 0x1402fc01, 0x04000100, 0x9a078407, 0x2006c14d, 0x1af74c50, 0x00932208, 0x00960082, 0x008c009d, + 0x00ab009f, 0x00b10094, 0x00a100b4, 0x00d200c3, 0x00d400a5, 0x00b500db, 0x080182de, 0xe000bd20, 0xbe00ec00, 0xf200ee00, 0xfe00cb00, 0xd0000401, + 0x1c010a01, 0x3e01d700, 0xea006501, 0x01826a01, 0x6c011222, 0x13220182, 0x01826e01, 0x01142608, 0x019e0177, 0x01a00115, 0x013d01a7, 0x01ab01a9, + 0x01ad0145, 0x014801b2, 0x01b701b4, 0x01b9014e, 0x015201bc, 0x2e0182bf, 0x01c10156, 0x015701cc, 0x01d201ce, 0x82d40163, 0x01682201, 0x240182d6, + 0x01d80169, 0x085582df, 0xf601e1c0, 0xf8017201, 0x88010502, 0x08020702, 0x0a029601, 0x98011802, 0x1d021a02, 0x1f02a701, 0xab012302, 0x2e022602, + 0x3002b001, 0xb9013502, 0x42023802, 0x4402bf01, 0xca014402, 0x47024602, 0x4a02cb01, 0xcd014c02, 0x5d025102, 0x6002d001, 0xdd016202, 0x66026602, + 0x6802e001, 0xe1016902, 0x6b026b02, 0x6e02e301, 0xe4016f02, 0x73027102, 0x7602e601, 0xe9017602, 0x84027a02, 0x8602ea01, 0xf5018602, 0x92028802, + 0x9402f601, 0x01029502, 0xa1029702, 0xa3020302, 0x0e02bc02, 0xc102be02, 0xc5022802, 0x2c025b03, 0x5d035d03, 0x5f03c302, 0xc4026203, 0xe0036403, + 0xe503c802, 0x4503e603, 0x0182ea03, 0x05476a08, 0x03080508, 0x050c0548, 0x0549030c, 0x03210521, 0x053d054a, 0x054b033d, 0x033f053f, 0x0547054c, + 0x054d034a, 0x0350054e, 0x05640551, 0x05540364, 0x03670566, 0x05910555, 0x05570392, 0x039a059a, 0x060a0659, 0x065a030a, 0x030c060c, 0x063c065b, + 0x065c033c, 0x035f065f, 0x0664065d, 0x005e0364, 0x0f000004, 0x00010074, 0x20078212, 0x2a03847a, 0x055a0201, 0x0e5f032e, 0xa300006e, 0x620f2103, + 0x03863582, 0x82e00e21, 0x27039233, 0x860e620f, 0x840d7e0d, 0x0e200787, 0x03a36982, 0x57820f20, 0x00f60d23, 0x83038f00, 0x89038547, 0x97878b7b, + 0x500e210b, 0x03829f82, 0x0d8a0d23, 0x22039090, 0x97960df6, 0x2117bf37, 0xc3829c0d, 0x0e21038a, 0x93878214, 0x0ed42303, 0x038e0e86, 0x3fab7bbf, + 0x41e00e21, 0x0e20094f, 0x3bab9f82, 0x0e212b83, 0x92d78220, 0x620f2b03, 0xa20d440e, 0xd40ea80d, 0x53a7ae0d, 0x83b40d21, 0x440e228b, 0x853b820f, + 0x00002303, 0x0385ba0d, 0x32236b84, 0x920e380e, 0x201b8403, 0x8387828c, 0x86bc2003, 0xa70f8607, 0xce0e217b, 0x6b827b83, 0x038dd820, 0x2117b741, + 0xdf82c00d, 0x6ba7038e, 0x0d2127bf, 0xa6a382c6, 0x620f2303, 0x0393380e, 0x0ecc0d23, 0x41039338, 0x1383135f, 0x82d20d21, 0x2103922f, 0x6f41200e, + 0x42d38305, 0x0d21073f, 0x054b41d8, 0x6e204b84, 0x200a5f42, 0x8a2b824a, 0xde0d2103, 0xce200f82, 0x1f440386, 0x204b840a, 0x23e7430e, 0x44860e21, + 0xd420108b, 0x6b41138d, 0x1ffb4227, 0xa8071f42, 0x23bf8a4f, 0xe40d3e0e, 0x07833f87, 0x82e00e21, 0x9fa78ef3, 0x851f855f, 0x07a345db, 0x0e218b83, + 0x0d27417a, 0x37410e20, 0x25338924, 0x0000ea0d, 0x438df00d, 0x0f435784, 0x078f4506, 0x0d21f79b, 0x09c741fc, 0x0e212789, 0x8aeb8486, 0x020e2147, + 0x038b2782, 0x37930820, 0x0e218b85, 0x9793913e, 0x200e2183, 0x43412b85, 0x1f07410b, 0x2111ef41, 0x5f87440e, 0xd420b784, 0x678c7f99, 0x0e21a78a, + 0x8bcf891a, 0x0cfb4193, 0x57892620, 0x822c0e21, 0x0e32222f, 0x076f4138, 0x41130342, 0x5f411b07, 0x41bf8d0d, 0x5f94132b, 0x8b067f43, 0x43af8883, + 0x0e2106bb, 0x42b3854a, 0x6343096b, 0x500e2109, 0x84192741, 0x0ee74253, 0x8208ab45, 0x434f855b, 0x0e210daf, 0x844f958c, 0x895620eb, 0x21cb8d1b, + 0xef855c0e, 0x0f680e25, 0x82620e62, 0x48682003, 0x238c23c7, 0x00007423, 0x44039f0e, 0xcb480aa3, 0x09a34813, 0x0399d383, 0x0e800e23, 0x41039f86, + 0x13df13bf, 0x33470e20, 0x2307a006, 0x0e000092, 0xb020039f, 0x210ddb43, 0x0f86bc0e, 0xdf41c220, 0x086f4211, 0x420b2b44, 0x97430a97, 0x2017860c, + 0x1a9f430e, 0x1f832f83, 0x83830e20, 0x73867783, 0x89826787, 0x620f9e24, 0x0783980e, 0x47431383, 0x0d53430b, 0x210b5744, 0x2343a40e, 0x82aa200c, + 0xaf5f833d, 0x82b62003, 0x8303ab37, 0x82039bbf, 0xa70e20db, 0x82c82003, 0x4203aa7b, 0xe341606f, 0x2173b312, 0xd782d40e, 0xda2003a7, 0x03aa2b82, + 0x234b8f83, 0x42e6200c, 0x45820513, 0x620ffe23, 0x23008200, 0x0000ec0e, 0x0f21038b, 0x2021820a, 0x82038204, 0xf20e2107, 0xf8201b82, 0xfe200382, + 0x0f231389, 0x821c0f10, 0x8216200d, 0x843f8203, 0x8222200b, 0x02012246, 0x2505856c, 0x0100b202, 0x0b839202, 0x02ad0327, 0x030100f9, 0x210583af, + 0x11835902, 0x851b0221, 0x10022505, 0x56020100, 0x0d200584, 0x61201184, 0xe3200584, 0x03210583, 0x200b8446, 0x200584d9, 0x21058387, 0x0584c901, + 0x1184a020, 0x5f835720, 0x84bc0121, 0x843b200b, 0x84942005, 0x844f2005, 0x84902023, 0x84cc2005, 0x84492011, 0x84522005, 0x844a2005, 0x84a62005, + 0x84442005, 0x844e2005, 0x83cf2005, 0x63042705, 0x0100fe02, 0x0b835702, 0x83580221, 0x65012195, 0x7e200b84, 0x54204d84, 0xd92c0b84, 0x0100b502, + 0xa701d702, 0xd7010100, 0x17850b84, 0x82feea22, 0x89201782, 0xee202384, 0x58200b84, 0x0221a183, 0x2011845a, 0x221184f0, 0x820801c0, 0x02ee2635, + 0x02010014, 0x220584c2, 0x826afe95, 0x8455200b, 0x84eb2023, 0x836f2023, 0x1101210b, 0xa7200584, 0x58201184, 0x56202384, 0xec202384, 0xf5851184, + 0x1c017932, 0xc6000100, 0x0100ae02, 0xc502ff01, 0x8f030100, 0x04210583, 0x200b8457, 0x211783e6, 0x05835602, 0x841e0321, 0x0558260b, 0x02010062, + 0x20478427, 0x220b8254, 0x82100006, 0x830a203f, 0x0c00290f, 0x01001600, 0x36001c00, 0x260a055f, 0x07010001, 0x82030084, 0x820e201f, 0x84142003, + 0x01012203, 0x203f84d6, 0x25058358, 0x01000400, 0x91826c02, 0x31824987, 0x1c274982, 0x26000100, 0x5f008600, 0x03261145, 0x99078307, 0x7782a507, + 0x48000022, 0x038f4182, 0x13924220, 0x4e20238b, 0x54201f82, 0x5a200382, 0x09227782, 0x05821e04, 0x05845820, 0x0584bd20, 0x05840620, 0x05825420, + 0x08000326, 0x14000e00, 0x5d221f82, 0x0582b605, 0x7e055822, 0x59220582, 0x3b828906, 0x03820120, 0xc6050a24, 0xcb5fe009, 0x3e052d05, 0x6c727963, + 0x72673e05, 0x3e056b65, 0x2909cb5f, 0x797a3e05, 0x3e057979, 0xcb5f1c05, 0x41402e06, 0x0020455a, 0x544143bc, 0x43380120, 0x39058252, 0x5a414bb4, + 0x4d300220, 0x02204c4f, 0x4b4c50ac, 0x52280320, 0x03204d4f, 0x238254a4, 0x5420042d, 0x04204b52, 0xff00009c, 0x843b00ff, 0x00022a77, 0x00040003, + 0x00060005, 0x289f8207, 0x000a0009, 0x000c000b, 0x28a9820d, 0x0010000f, 0x00120011, 0x08b38213, 0x16001538, 0x18001700, 0x1a001900, 0x1c001b00, + 0x1e001d00, 0x20001f00, 0x22002100, 0x24002300, 0x26002500, 0x31002700, 0x33003200, 0x35003400, 0x37003600, 0x39003800, 0x65823a00, 0x3d003c2e, + 0x3f003e00, 0x41004000, 0x43004200, 0x28207bd4, 0x29207bfa, 0x2a207bfa, 0x2b207bfa, 0x2c207bfa, 0x2d207bfa, 0x2e207bfa, 0x2f207bfa, 0x30207bfa, + 0x04217ba6, 0x23008200, 0x3a00ffff, 0x444edb44, 0x442725d9, 0x746c6161, 0x83639a01, 0x63a23205, 0x02657361, 0x6d636370, 0x63760270, 0x02313076, + 0x2205827e, 0x82840232, 0x02332205, 0x2205828a, 0x82900234, 0x02352205, 0x22058296, 0x829c0236, 0x02372205, 0x220582a2, 0x82a80238, 0x02392805, + 0x317663ae, 0x82b40230, 0x02312205, 0x220582ba, 0x82c00232, 0x02332205, 0x220582c6, 0x82cc0234, 0x02352205, 0x220582d2, 0x82d80236, 0x02372205, + 0x220582de, 0x82e40238, 0x02392805, 0x327663ea, 0x82f00230, 0x02312205, 0x220582f6, 0x82fc0232, 0x03332205, 0x22058202, 0x82080334, 0x03352205, + 0x2205820e, 0x82140336, 0x03372205, 0x2205821a, 0x82200338, 0x03392805, 0x33766326, 0x822c0330, 0x03312205, 0x3a058232, 0x64380332, 0x036d6f6e, + 0x6172663e, 0x68440363, 0x03646977, 0x636f6c4e, 0x8454036c, 0x845a2005, 0x84602005, 0x84662005, 0x846c2005, 0x84722005, 0x84782005, 0x847e2005, + 0x84842005, 0x6e8a2705, 0x03726d75, 0x06826f90, 0x6f960339, 0x036e6472, 0x6c61739c, 0x73a40374, 0x03666e69, 0x307373aa, 0x82b00331, 0x03322205, + 0x220582b6, 0x82bc0333, 0x03342205, 0x220582c4, 0x82ca0335, 0x03362205, 0x220582d2, 0x82d80337, 0x03382205, 0x350582e0, 0x73e60339, 0x03303173, + 0x627573f2, 0x73020473, 0x04737075, 0x5f827408, 0x7a0e042f, 0x046f7265, 0x00000014, 0x00000002, 0x08038201, 0x1e0065ca, 0x24002000, 0x2b002800, + 0x30002e00, 0x36003200, 0x3e003a00, 0x44004100, 0x4a004700, 0x51004d00, 0x58005500, 0x5f005c00, 0x65006200, 0x69006700, 0x6d006b00, 0x71006f00, + 0x77007400, 0x7f007b00, 0x87008300, 0x8c008a00, 0x91008f00, 0x95009300, 0x9a009800, 0x9e009c00, 0xa200a000, 0xa600a400, 0xab00a900, 0xb000ad00, + 0xb500b200, 0xb900b700, 0xbe00bc00, 0xc200c000, 0xc600c400, 0xca00c800, 0xce00cc00, 0xd200d000, 0xd600d400, 0xda00d800, 0xe000dd00, 0xe400e200, + 0xe900e700, 0xee00eb00, 0xf300f100, 0xf800f500, 0xfd00fb00, 0x0401ff00, 0x10010501, 0x14011201, 0x23011901, 0x29012601, 0x2f012c01, 0x36013201, + 0x0122cd82, 0x05821000, 0x61010224, 0x07826401, 0x69010122, 0x6a200584, 0x6b200584, 0x6c200584, 0x6d200584, 0x6e200584, 0xcb490584, 0x84702005, + 0x8471200b, 0x84722005, 0x84732005, 0x84742005, 0x84752005, 0x84762005, 0x84772005, 0x84782005, 0x84792005, 0x847a2005, 0x847b2005, 0x847c2005, + 0x847e2005, 0x84802005, 0x84822005, 0x84832005, 0x84852005, 0x05274b05, 0x0b848920, 0x05848b20, 0x05848e20, 0x154b8f20, 0x8491200a, 0x820520cd, + 0x00032605, 0x00070006, 0x201b8408, 0x20158468, 0x2005841c, 0x20058417, 0x20058418, 0x2005841b, 0x20058415, 0x20058413, 0x20058416, 0x20058414, + 0x20058411, 0x20058412, 0x20058404, 0x2405820f, 0x000b0002, 0x2055840d, 0x2005843c, 0x20058467, 0x2005843d, 0x2405823e, 0x013f0102, 0x200d8440, + 0x220d8442, 0x84440143, 0x8446200d, 0x0148220d, 0x200d844a, 0x2805824c, 0x014d0104, 0x0151014f, 0x2c0b8253, 0x01550106, 0x01590157, 0x015d015b, + 0x426b845f, 0x03200569, 0x0e200b84, 0x1d360584, 0x28039301, 0xa2528e06, 0x720b2a0b, 0xf00ba00b, 0x0c0cfe0b, 0x01824a0c, 0xaa0c6232, 0xee0ccc0c, + 0x380d020d, 0xae0eae0e, 0xd20dd20d, 0xf4200582, 0x32240b82, 0x8e0e740e, 0xbc320782, 0xf20ee00e, 0x5a0f460f, 0xb414e40f, 0xf60fb414, 0x07838010, + 0x118e1029, 0x11b4140a, 0x828a111c, 0x119c2a05, 0x12fc11e2, 0x125c1242, 0x331b83c4, 0x7c13d212, 0x6c156c15, 0x0e148a13, 0x2e162e16, 0xa6141c14, + 0xc2221782, 0x15825e15, 0x20167a22, 0x61081382, 0x2dde163c, 0x17fc162e, 0x1762235a, 0x24f4176c, 0x18dc24dc, 0x28a41802, 0x188c288c, 0x283019b2, + 0x1a42198c, 0x2a862a72, 0x1b801a86, 0x1b862a22, 0x2bc61b34, 0x1ce01b96, 0x1c62234c, 0x1cce1c5e, 0x1d3c1dec, 0x1daa1d5a, 0x1e181ec8, 0x1ea61e36, + 0x1f341fc4, 0x34be1f52, 0x20d01f78, 0x2078343c, 0x0b822056, 0xcc340782, 0x9a353421, 0x42219a35, 0xdc38aa21, 0xb821dc38, 0x2e222022, 0x423e0182, + 0x9e229022, 0xf822b222, 0x54231223, 0x70236223, 0xdc23c223, 0x3c242224, 0x94248224, 0x8f82ce24, 0x3025ea3e, 0xa0254a25, 0x1226b225, 0x8c262c26, + 0xfa26a626, 0x74271427, 0xe0278e27, 0x7e28fa27, 0x9a2aa982, 0xfe28e428, 0x5e294429, 0xa982782a, 0x2b946a08, 0x2b242b0a, 0x2b962b88, 0x2c2a2ca4, + 0x2c8a2c44, 0x2d202da4, 0x2d3c2d2e, 0x2d9c2d82, 0x2efc2de2, 0x2f682e4e, 0x2f582f46, 0x2fb02f9e, 0x301030f6, 0x30703056, 0x31dc30c2, 0x3148312e, + 0x31b4319a, 0x321432fa, 0x32803266, 0x33ec32d2, 0x334c3332, 0x34b8339e, 0x34143406, 0x346a3428, 0x34863478, 0x35de34cc, 0x353e3524, 0x3ed1828c, + 0x360a36a8, 0x36763624, 0x36de3690, 0x370037ec, 0x375c374e, 0x37de3770, 0x384a38f8, 0x82ce3864, 0x39ea22eb, 0x2c018296, 0x3a063ab4, 0x3a803a18, + 0x3b9a3b9a, 0x080384a8, 0xe43bbc22, 0x88405a40, 0xb840a040, 0xf640d040, 0x22410c41, 0x5a413841, 0xba416841, 0x5042d841, 0xee426a42, 0x432f0185, + 0x47ea46da, 0x47164700, 0x47744738, 0x8260474c, 0x47882a05, 0x47ec47a6, 0x480048ec, 0x22018246, 0x82a0485a, 0x48b42801, 0x49fa48fa, 0x82be490e, + 0x4ad23001, 0x4a2c4a1e, 0x4a4e4a3a, 0x4b084bee, 0x82244b16, 0x384c0801, 0x4c4b384b, 0x804b664b, 0xe04bc24b, 0x164c024c, 0x664c4c4c, 0xa64c924c, + 0x064dec4c, 0x724d584d, 0xca4d944d, 0x1a4ee44d, 0x6a4e344e, 0xba4e844e, 0x0e4fd44e, 0x6e4f2c4f, 0xc24f8c4f, 0x2250e04f, 0x76504050, 0xc6509050, + 0x7a51e050, 0xd0220182, 0x01825052, 0x52a2c408, 0x53f852e2, 0x53285310, 0x5370534c, 0x53c85394, 0x53e453d6, 0x540a54f2, 0x542e541c, 0x54725448, + 0x54da5494, 0x550c55ee, 0x55565520, 0x55a25570, 0x562256b4, 0x5650563c, 0x56a05686, 0x570057e6, 0x576c5752, 0x57bc57a2, 0x58ee57ee, 0x58205802, + 0x587a5864, 0x000100cc, 0x00010000, 0x01020008, 0x01db00bc, 0x00810075, 0x01820086, 0x00830076, 0x005f0084, 0x00650087, 0x010f0185, 0x01110110, + 0x01130112, 0x01150114, 0x01170116, 0x01670161, 0x01190118, 0x011b011a, 0x0162011c, 0x01630176, 0x0064016a, 0x007301ec, 0x016501f2, 0x0170016b, + 0x02b70271, 0x029802b8, 0x029e029c, 0x02a602a0, 0x82af02ab, 0xa698200d, 0x829c2003, 0x20038b37, 0xa145829e, 0x82a02003, 0x20039369, 0x8b7f82a6, + 0x82a82003, 0x8cab208d, 0x82af2003, 0x0803a09d, 0x0408049b, 0x0447040c, 0x040e0448, 0x0410040f, 0x04130412, 0x04150414, 0x04170416, 0x0453044a, + 0x04bd04bc, 0x04940493, 0x04c004bf, 0x04c204c1, 0x06c304c4, 0x04b80469, 0x04d104d0, 0x04ea04d2, 0x050105eb, 0x05030502, 0x05cf0504, 0x05d905aa, + 0x05d305d2, 0x05bd05cd, 0x05d505d4, 0x05db05da, 0x05d005c9, 0x056f04d6, 0x06e905e9, 0x06660675, 0x0596046c, 0x073206c3, 0x07950786, 0x07bb0797, + 0x07bd07bc, 0x07c007be, 0x07c207c1, 0x07c407c3, 0x07c607c5, 0x00ed07c7, 0x00450002, 0x22018201, 0x820f0000, 0x00012201, 0x22018222, 0x82420002, + 0x00032801, 0x00480047, 0x825b0004, 0x00062201, 0x2201825d, 0x82610007, 0x00082201, 0x22018264, 0x827e0009, 0x000a2801, 0x0093008b, 0x8298000b, + 0x00142801, 0x00b000ab, 0x82ce0015, 0x001b2801, 0x00d500d4, 0x82e3001c, 0x001e2201, 0x220182e8, 0x82ea001f, 0x00202201, 0x220182ee, 0x82f10021, + 0x22270901, 0x0b010b01, 0x66012300, 0x24006601, 0x6d016c01, 0xa0022500, 0x2700a002, 0xab02ab02, 0xb0022800, 0x2900b602, 0x2b03cc02, 0xf7033000, + 0x9000f703, 0xff03ff03, 0x11049100, 0x92001104, 0x1b041b04, 0x22049300, 0x94002404, 0x2b042604, 0x2f049700, 0x9d002f04, 0x4d044d04, 0x6f049e00, + 0x9f007104, 0x76047604, 0x7a04a200, 0xa3007d04, 0x81048104, 0x8b04a700, 0xa8008b04, 0x96049604, 0xaa04a900, 0xaa00aa04, 0xc804c604, 0xde04ab00, + 0xae00df04, 0xfe04fb04, 0x2705b000, 0xb4002705, 0x32053205, 0x4b05b500, 0xb6004b05, 0x6e056b05, 0x7105b700, 0xbb007205, 0x78057705, 0x7d05bd00, + 0xbf007d05, 0x85058505, 0x8a05c000, 0xc1008a05, 0xaf05af05, 0xcb05c200, 0xc300cb05, 0xcf05cf05, 0x3406c400, 0xc5003506, 0x49064906, 0x6906c700, + 0xc8006906, 0x74067306, 0x8507c900, 0xcb008507, 0x94079407, 0x9607cc00, 0xcd009607, 0xa807a807, 0xac07ce00, 0xcf00ae07, 0xb107b007, 0xb307d200, + 0xd400b807, 0xeb07eb07, 0x4600da00, 0x9008059b, 0x04010008, 0x00440008, 0x0094008e, 0x00ae00a4, 0x00c200b8, 0x00d600cc, 0x00ea00e0, 0x01fe00f4, + 0x010e0108, 0x012a0120, 0x013e0134, 0x01520148, 0x015e0158, 0x01780164, 0x01900184, 0x01aa019e, 0x01c201b6, 0x01da01ce, 0x01ec01e6, 0x02fc01f6, + 0x021a020a, 0x022a0220, 0x02460234, 0x026e0252, 0x027c0276, 0x02a00294, 0x02bc02b0, 0x02ce02c6, 0x02e002d6, 0x03f002e6, 0x0322031c, 0x0332032a, + 0x03500346, 0x03ba0378, 0x03f403e2, 0x000204fc, 0x2a6f8202, 0x00070075, 0x011d01ba, 0x82330128, 0x016c2875, 0x01040070, 0x8229011e, 0x823f2083, + 0x821f2009, 0x0135228d, 0x26098240, 0x012b0120, 0x82410136, 0x01212609, 0x0137012c, 0x26098242, 0x012d0122, 0x82430138, 0x01232609, 0x0139012e, + 0x26098244, 0x012f0124, 0x8245013a, 0x01252609, 0x013b0130, 0x26098246, 0x01310126, 0x8247013c, 0x01272609, 0x013d0132, 0x34798248, 0x0071016d, + 0x00880008, 0x01490189, 0x0155014f, 0x016e015b, 0x26218272, 0x0150014a, 0x825c0156, 0x014b2609, 0x01570151, 0x2009825d, 0x050b414c, 0x4d260982, + 0x59015301, 0x09825f01, 0x54014e26, 0x60015a01, 0x69224982, 0x05826f01, 0x6b016624, 0x4f830200, 0x03090029, 0x03f803f7, 0x82fa03f9, 0x040e32e3, + 0x04220418, 0x0305002c, 0x040f04fd, 0x04230419, 0x080b822d, 0x1004fe22, 0x24041a04, 0x06002e04, 0xff03fb03, 0x1b041104, 0x2f042504, 0x00040500, + 0x1c041204, 0x30042604, 0x01280b82, 0x1d041304, 0x31042704, 0x02280b82, 0x1e041404, 0x32042804, 0x03280b82, 0x1f041504, 0x33042904, 0x04280b82, + 0x20041604, 0x34042a04, 0x05380b82, 0x21041704, 0x35042b04, 0x06040200, 0x04000704, 0x0a040904, 0x0d040b04, 0x20080f82, 0x00490411, 0x045e0406, + 0x046e045f, 0x04780473, 0x040700b1, 0x04660465, 0x04950483, 0x04b204a3, 0x222382be, 0x82b3046a, 0x046d2633, 0x04a40485, 0x380982b4, 0x04740462, + 0x00b50486, 0x047a0408, 0x048b047b, 0x049d0496, 0x057105b6, 0x086b82f9, 0xa5045c2c, 0xa704a604, 0x0d00b704, 0x7d043604, 0x8e048d04, 0xa8049104, + 0xaa04a904, 0xac04ab04, 0xb804ad04, 0x03008205, 0xb9048f04, 0x5b82ba04, 0x6e06963a, 0x58040b00, 0x98049704, 0xa104a004, 0xcf04a204, 0xd404d304, + 0x84057005, 0x88284d82, 0xaf04ae04, 0xd504b004, 0x802c9582, 0x9b048904, 0xd6049e04, 0xe404e204, 0x9c281b82, 0xd7049f04, 0xe504e304, 0x81269182, + 0xec04e604, 0x5782f104, 0xed04e724, 0x07823005, 0xe8048224, 0x1982f304, 0x04994208, 0x05f404e9, 0x05020031, 0x00d00585, 0x05270504, 0x05cf05cb, + 0x041500e9, 0x055b045a, 0x05330532, 0x05740573, 0x05a20575, 0x05a405a3, 0x05a605a5, 0x05a805a7, 0x05aa05a9, 0x05ac05ab, 0x05ae05ad, 0x2a3b82cc, + 0x00ce05af, 0x05770503, 0x82f505f4, 0x0679385b, 0x006e0669, 0x05680509, 0x05790569, 0x069f059c, 0x064b064a, 0x8270066f, 0x9d70085f, 0x1506a005, + 0x13001606, 0x67046004, 0x6f046804, 0x75047004, 0x6b058704, 0x6d056c05, 0x89057b05, 0xa1059e05, 0xb005af05, 0x0806b105, 0x20007106, 0x8c047c04, + 0x35053405, 0x4b053605, 0x6e056a05, 0x72056f05, 0x78057605, 0x7c057a05, 0x83058005, 0x88058605, 0xb305b205, 0xb505b405, 0xb705b605, 0xb905b805, + 0xbb05ba05, 0xbd05bc05, 0x72066706, 0x61206982, 0x32085782, 0x057e057d, 0x05bf05be, 0x05c105c0, 0x05c305c2, 0x05c505c4, 0x05c705c6, 0x05c905c8, + 0x066806ce, 0x04080073, 0x05bb0459, 0x0581057f, 0x06d10587, 0x8274066a, 0x8a8408d1, 0x76066b06, 0x9d040200, 0x02006906, 0xc807bf07, 0x44000100, + 0xb4008a00, 0xb600b500, 0xb800b700, 0xba00b900, 0xbd00bb00, 0xbf00be00, 0xc600c000, 0xc800c700, 0xca00c900, 0xff00cb00, 0x6e010401, 0xee03ed03, + 0xf003ef03, 0xf203f103, 0xf403f303, 0xf603f503, 0xfc03fb03, 0x5d042504, 0x69046404, 0x72046c04, 0x7f047904, 0x90048a04, 0xc5049d04, 0xd804cd04, + 0xda04d904, 0xdc04db04, 0x2505dd04, 0x2f052605, 0xec34bd82, 0x2606f905, 0x2a062706, 0x2d062c06, 0x48063206, 0xaf076e06, 0x08090148, 0x00240025, + 0x042c040f, 0x042e042d, 0x0430042f, 0x04320431, 0x04340433, 0x04e20435, 0x064b06e3, 0x00080616, 0x82040002, 0x00f6238b, 0x5f820400, 0x830a0021, + 0x0c00214d, 0x2a224f82, 0x478a0e00, 0x10005428, 0x23042204, 0x9f822404, 0x27042636, 0x29042804, 0x2b042a04, 0x9e040704, 0x9f059f04, 0xa105a005, + 0x26202d8a, 0x0e262d82, 0x10040f04, 0x51471104, 0x04062a0c, 0x059c049b, 0x059d059c, 0x2077829e, 0x82778505, 0x00fb22f5, 0x207d840a, 0x207d840b, + 0x207d840d, 0x244f880f, 0xff3c3401, 0x2f0d89ac, 0x35009200, 0x00000600, 0x0a000200, 0x03002200, 0x12201982, 0x42200382, 0x01201182, 0x09260382, + 0x01000100, 0x17883604, 0x13822a20, 0x0a201783, 0x01242f82, 0x17040e04, 0x01280f86, 0x01000800, 0xecff0600, 0x22221784, 0x17822b04, 0x24205587, + 0x2c203d84, 0x00205984, 0x0c207984, 0x02200582, 0x8a200382, 0x1c205788, 0x01202f82, 0x0c200382, 0xc9853f83, 0x47222384, 0xab88d400, 0x0e000228, + 0x75010400, 0x03837601, 0x04201582, 0x47220382, 0x21828a00, 0x85840420, 0x01000824, 0x03821400, 0x04220783, 0x5b823c05, 0x5d04d422, 0x01220f82, + 0x43884100, 0x0021a382, 0x20d38406, 0x2f13884d, 0x001e0002, 0x036b010c, 0x03fd03fc, 0x04ff03fe, 0x04296482, 0x04030402, 0x04050404, 0x2a8f8208, + 0x01660102, 0x03000066, 0x84f703ed, 0x8400204d, 0x00022a63, 0x0422004a, 0x04940493, 0x06bf48cf, 0xe504e42a, 0xe704e604, 0xe904e804, 0x2107c748, + 0x9b486606, 0x48bf200e, 0x0120129d, 0x712a4782, 0xc5047604, 0xc704c604, 0x9942c804, 0x042b080b, 0x04fc04fb, 0x06fe04fd, 0x07850735, 0x07960794, + 0x07ac07a8, 0x07ae07ad, 0x07b007af, 0x07b307b1, 0x07b507b4, 0x07b707b6, 0x41eb07b8, 0x00270d27, 0x0065005f, 0x82f200ec, 0x00042815, 0x0064005d, + 0x8af100ea, 0x001c3821, 0x0081000b, 0x00830082, 0x01850084, 0x01620161, 0x01640163, 0x82c80765, 0x000b3823, 0x0042000f, 0x005b0048, 0x0098007e, + 0x00d500ce, 0x070b01e8, 0x410600af, 0x0a280865, 0x12000200, 0x01002600, 0x3a220782, 0x6384c600, 0x02000024, 0x09827704, 0x65843a20, 0x138c1a20, + 0x00232183, 0x41001900, 0x332208a7, 0x31420038, 0x00042205, 0x883784ca, 0x87578219, 0x843e2019, 0x88012019, 0x21178453, 0x87825e42, 0x14202d89, + 0x0a228182, 0x6d840a00, 0x0b82cf20, 0x0982cd20, 0xfa040224, 0xeb890005, 0x00584527, 0x04f70302, 0x29bf890d, 0x0300a238, 0x20000c00, 0x37843400, + 0x73060122, 0x01220782, 0x33842c06, 0x13841f20, 0xcc050222, 0x47851584, 0x03001f30, 0x8c019a01, 0x00000800, 0x02000100, 0x2b8a2f05, 0x082a1183, + 0x4e380200, 0xcc050300, 0x35827605, 0x21082741, 0x9d849202, 0x05006c30, 0x1c000c00, 0x3e002c00, 0x01005000, 0x43822f05, 0x2f050322, 0x50824584, + 0x04200d82, 0x55820d85, 0x5d820020, 0xcc05cc22, 0x21208f8a, 0x0f833182, 0x22207589, 0x01203482, 0x41856d82, 0x0d820120, 0xb3842320, 0x3b857f83, + 0x0f820020, 0x21000022, 0x20090341, 0x82a18202, 0x4134209d, 0x02210903, 0x269b8456, 0x00030048, 0x821a0008, 0x8a3d849b, 0x832520f3, 0x850f8489, + 0x000023b1, 0x29410026, 0x84898205, 0x000022c3, 0x223d8427, 0x82280018, 0x872d2019, 0x8a1b82d5, 0x83d983d5, 0x201d8a0e, 0x200f8201, 0x249b8825, + 0x00cc0101, 0x21978946, 0x97845e01, 0x05006024, 0x97820c00, 0x36002822, 0x81851d82, 0x85050141, 0x0503265b, 0x062c062f, 0x210c822c, 0x79830601, + 0x01201b87, 0x200c3b41, 0x0eaf4129, 0x01002a24, 0x61410400, 0x84002008, 0x88292083, 0x00022289, 0x201b84e2, 0x208d8a35, 0x838d8430, 0x00062205, + 0x08114116, 0x2c203985, 0x85060f41, 0x0000229d, 0x265b822d, 0x0032010a, 0x41260018, 0x2941060f, 0x41b18805, 0x43410af1, 0x05754209, 0x08000122, + 0xc2206982, 0x74206182, 0x210b4142, 0x7f845000, 0x03002c28, 0x70260800, 0x3d421400, 0x84012006, 0x420020f9, 0x2f200a25, 0xfd85d984, 0x11839d85, + 0x57830983, 0xd7840a20, 0xbb423620, 0x08a14208, 0x1c205f86, 0x850a0743, 0x8331203d, 0x1c152171, 0x06217183, 0x831d822d, 0x87c785e3, 0x413120ed, + 0x5f830a37, 0xb7827320, 0x20051b43, 0x093f412d, 0x82723821, 0x41082025, 0x382208cb, 0xc1864800, 0x21101941, 0x5e822f05, 0x42050221, 0x33200bbf, + 0x8706f942, 0x82342071, 0x42618421, 0x3520067d, 0x01248188, 0x04000a38, 0x02267588, 0x1000e633, 0x01823200, 0x523f022c, 0x02003a00, 0x79040500, + 0x4d827904, 0xec05ec28, 0x26060100, 0x05822606, 0x2c062c28, 0x72060300, 0x1f827206, 0x2005fb43, 0x25418201, 0x001c000e, 0xa783002a, 0x5d825820, + 0x03820320, 0xf3450220, 0x86002006, 0x8601200f, 0x87078375, 0x8202201b, 0x410b8343, 0x3720053b, 0x2b853588, 0xb7853820, 0x01204784, 0x39200b82, + 0x3323b789, 0x8443ff3c, 0x000632b7, 0x00240012, 0x00480036, 0x0070005c, 0x42010003, 0x22038480, 0x82804202, 0x4d002009, 0x4225051f, 0x4203006e, + 0x8201836e, 0x82032045, 0x42012203, 0x2411825c, 0x025c425c, 0x28118400, 0x32543202, 0x42010054, 0x200d824a, 0x21038201, 0x4982003b, 0x82403221, + 0x85362011, 0x20138203, 0x264b863c, 0x42020022, 0x84224222, 0x893d208b, 0x06422391, 0x918451ff, 0x14000722, 0x34289182, 0x54004400, 0x78006600, + 0x01233582, 0x8700a636, 0x85002003, 0x96362545, 0x96360200, 0x0f830582, 0xbe240122, 0x86201f82, 0x1f870384, 0x1f827620, 0x9a337622, 0xaf847782, + 0x00663629, 0x41663603, 0x84062ca6, 0x32012211, 0x202d8200, 0x200b8254, 0x20038201, 0x2053863f, 0x82138242, 0x20118203, 0x21978940, 0x1d822836, + 0x01222583, 0x1f820800, 0x9d001a22, 0x082aa584, 0x26001600, 0x46003600, 0xa5845600, 0x25838a20, 0x00e83123, 0x20038601, 0x25538500, 0x0200d831, + 0x0582d831, 0x0021a784, 0x851f82c8, 0x210f8403, 0x0f820624, 0x0384b820, 0xa8202f87, 0xa8222f82, 0x8382e232, 0x3129b784, 0x31030098, 0x2bee4098, + 0x2211844e, 0x821a3101, 0x8286202d, 0x8201200b, 0x86422003, 0x82742063, 0x82038213, 0x89432011, 0x5a3123b7, 0x0d8a42ff, 0xeb444c20, 0x28b78706, + 0x00600050, 0x00820070, 0x23438294, 0x008c4001, 0x87860387, 0x007c4025, 0x827c4002, 0x200f8705, 0x220f826c, 0x8210006c, 0x00012863, 0x05790403, + 0x832606ec, 0x44232139, 0x52203982, 0x29870384, 0x29824220, 0x20324222, 0xc1842982, 0x00324029, 0x40324003, 0x848c2a2c, 0x30012211, 0x832d822a, + 0x8201201d, 0x8545200f, 0x0e4021c1, 0x03821382, 0x46201182, 0x3f23b389, 0x8a50fff4, 0x45e6200d, 0x00210bad, 0x243982ae, 0x0022000c, 0x0a41444c, + 0xc5040224, 0x3184c504, 0x02004826, 0x18000600, 0xd422a982, 0x5b46b404, 0x8617820a, 0x8601200f, 0x00492a29, 0x000a0004, 0x002a001a, 0x063b453c, + 0x6c040322, 0x8c824784, 0x04204b82, 0x2d820d85, 0x02000026, 0xd8047204, 0x218d1382, 0xcf830d87, 0xaf884820, 0x0c000222, 0xb4227d82, 0x7d847005, + 0x06202384, 0x210a9f44, 0xa182300d, 0x1e000a22, 0x0223bd84, 0x41067406, 0x438305bf, 0x91834b20, 0x827a0521, 0x822820bd, 0x82322091, 0x06022421, + 0x822c0632, 0x8401208e, 0x05334425, 0x4b000022, 0x00201183, 0x37831b85, 0x7b894c20, 0x00d20c25, 0x82880502, 0x086f452d, 0x823a3121, 0x0008241d, + 0x82100007, 0x002c2c73, 0x0048003a, 0x00680058, 0x82790401, 0x04022217, 0x82078279, 0x82db844e, 0x220d840b, 0x948a0401, 0x828a201b, 0x04022428, + 0x82b604b6, 0x8400201d, 0x824e2003, 0x850d8347, 0x0000224d, 0x2121824f, 0x55850001, 0x0b820120, 0x210ac541, 0xf782b230, 0x022c9587, 0x0810c231, + 0x2a101c31, 0x223a0200, 0x08349982, 0x20001200, 0x3e002e00, 0x5a004c00, 0x7a006a00, 0x05000100, 0xe5440382, 0x82488205, 0x8203200b, 0x200f833f, + 0x45078400, 0x0f850527, 0x1d880020, 0x01207383, 0x01200d82, 0x04222b8a, 0xaf880400, 0x09825220, 0x01210d83, 0x053b4500, 0x00005322, 0x3b836588, + 0x49415420, 0x31012208, 0x22af8a20, 0x823c1001, 0x000a220d, 0x0d574662, 0x82640421, 0x0402242f, 0x822a0664, 0x83858447, 0x420d840b, 0x1d870731, + 0xb2040122, 0x01202b82, 0x67831b82, 0x2f825620, 0x85000121, 0x200f831b, 0x22978457, 0x84b20402, 0x22498325, 0x88560000, 0x0f02228b, 0x242b82be, + 0x006704b2, 0x08378206, 0x22000e21, 0x46003400, 0x70005a00, 0x96008400, 0xbc00a800, 0xe000ce00, 0x0801f400, 0x03001c01, 0x823c0100, 0x22038269, + 0x82b23c02, 0x43002005, 0x3c250567, 0x3c0300a0, 0x820183a0, 0x00032441, 0x82721d02, 0x3c0126d1, 0x3c02008e, 0x8305828e, 0x3c032625, 0x105e1d80, + 0x203f8228, 0x2215827a, 0x867a3c7a, 0x3c482229, 0x2013826a, 0x22138264, 0x84643c64, 0x10012213, 0x20118226, 0x22118250, 0x84503c50, 0x82002011, + 0x823e200f, 0x3c3e2461, 0x842a103e, 0x10022411, 0x822c3c62, 0x822c2015, 0x822c2025, 0x22618309, 0x82502701, 0x82182011, 0x3c182211, 0x20378818, + 0x24378206, 0x27063c06, 0x2911873e, 0x0400f43b, 0xf43bf43b, 0x09822a10, 0x02283783, 0xc83bc83b, 0xe03b0100, 0x01202182, 0x59220382, 0x0d820300, + 0x0382b420, 0x0385cc20, 0x5a201382, 0x3b25e785, 0x3b0200b8, 0x830582b8, 0x415b2027, 0x01240841, 0x42ff9c3b, 0x2808ad47, 0x00941001, 0x000a0002, + 0x087d4774, 0x4c003a28, 0x01005a00, 0x31826c04, 0x2a060222, 0x8309cf41, 0x0dcf410b, 0x03221d86, 0x13442d06, 0x412f8706, 0x3d8b05db, 0x89830b85, + 0x6f825d20, 0x16000627, 0x71060200, 0x82b78204, 0x201585af, 0x850d8401, 0x00002239, 0x28af885e, 0x00f20f02, 0x04b40402, 0x21b38970, 0x37449c00, + 0x891b820b, 0x8c602047, 0x875c20c7, 0x6c0423c7, 0x97425d04, 0x840b8208, 0x0997420d, 0xc78a1d85, 0x93862f86, 0xa3832d82, 0x41826020, 0x8b820120, + 0x0f832d83, 0x83496120, 0x6e04210d, 0x0224c184, 0x6c045d04, 0x1121ab89, 0x24ab84ac, 0x0003003e, 0x20f58208, 0x065f4524, 0x32060224, 0x4f823206, + 0x43820020, 0x0b830320, 0x19850d88, 0x63205f83, 0x20082941, 0x0abd4574, 0xf74a6320, 0x83318207, 0x89642025, 0x40112785, 0x73060200, 0x7d898105, + 0x827c0021, 0x000c2477, 0x45540020, 0x73200863, 0x00222f86, 0x93926600, 0x938a2c20, 0xe74a2c20, 0x095f4508, 0xb34d6620, 0x83138312, 0x820820c7, + 0x000c28af, 0x06800503, 0x82740673, 0x51032027, 0x8d8a05c7, 0xf94d5c20, 0x8468201a, 0x04022259, 0x85eb8ab6, 0x225b8313, 0x4d790402, 0x138306f5, + 0x04236d8a, 0x847205b6, 0x83032031, 0x0b5d4621, 0x6d9b0020, 0x6d856a20, 0x8af40521, 0x8413856d, 0xec05216d, 0x13836d86, 0x05236d8a, 0x847805f4, + 0x83032031, 0x206da821, 0x216d856c, 0x6d8a7006, 0x6d841385, 0x86260621, 0x8a13836d, 0x7006236d, 0x31847a05, 0x21830320, 0xd7416d8c, 0x13434f07, + 0x6d856e20, 0x8ab80421, 0x416e206d, 0x04210feb, 0x08dd418a, 0x0b830320, 0x02200d88, 0x01241984, 0x6e000000, 0x220ec747, 0x848305b8, 0x472f8551, + 0x65420ac7, 0x00402206, 0x21658954, 0x3d827f04, 0xcd040224, 0x7743d804, 0x880b8208, 0x8319850d, 0x84702065, 0x040122ad, 0x200782b7, 0x891f8201, + 0x04022213, 0x201584d5, 0x83878400, 0x0a1b4127, 0x82b70421, 0x8289201d, 0x04032219, 0x4765847f, 0x392908e5, 0x00020084, 0x0050000a, 0x28058204, + 0x00260018, 0x04010036, 0x208d845d, 0x09cd445d, 0x0b820420, 0x01220d84, 0x8d46b104, 0x8272200a, 0x000122ad, 0x841d8302, 0x84732075, 0x0402229d, + 0x852584b1, 0x41722089, 0x39210917, 0x222b8218, 0x426004b1, 0x76200ae3, 0x2d207d9a, 0x43835d82, 0x5f820320, 0x83062d21, 0x207d870d, 0x2053842d, + 0x857d8875, 0x9276200f, 0x4475207d, 0xb1220e75, 0xdb866104, 0x210a9141, 0xf94d9e37, 0x07034111, 0x210a0945, 0x0182045d, 0xdf8d7382, 0x86007821, + 0x22318495, 0x82790000, 0x00012221, 0x202b8402, 0x200b8201, 0x2281887a, 0x48363701, 0x27210b19, 0x21759180, 0x13822606, 0x26060222, 0x3a820782, + 0x03200b82, 0x0d840b83, 0x70060223, 0x07d54106, 0x7c000024, 0x0d840100, 0x31840120, 0x7d000022, 0x75822e82, 0x75833984, 0x75897e20, 0x4d182721, + 0x012606b7, 0x01000800, 0x7591ea1e, 0x2006b549, 0x8607828a, 0x82042075, 0x240d840b, 0x04b80402, 0x224b86b8, 0x82800000, 0x490d83eb, 0x002205e7, + 0x2e828100, 0x2d837582, 0x82202384, 0x1e227589, 0xe54e0082, 0x83012009, 0x517d82af, 0x38220727, 0x29824800, 0x0382ff20, 0xff000222, 0x75860182, + 0xff200b84, 0x02240c82, 0x69016901, 0x84227588, 0x0d840100, 0x1f820120, 0x1d820120, 0x03828520, 0x2d847582, 0x86200f83, 0x00227589, 0xf9420014, + 0x00012409, 0x826a0006, 0x4237831b, 0x002108ef, 0x2cff8462, 0x000a0004, 0x00220016, 0x05010030, 0x83118226, 0x82568205, 0x05022209, 0x20118226, + 0x20178200, 0x225786cb, 0x82880000, 0x8601201a, 0x00002229, 0x826f8c89, 0x086b5417, 0xa5000622, 0xb5504b86, 0x078f4217, 0x8b000028, 0x08000300, + 0xb182ca35, 0x34060122, 0x6d433583, 0x07d54708, 0xbb428b20, 0x8905220d, 0x223d8306, 0x822a0602, 0x215f882f, 0xcf87ce31, 0xd1832a20, 0xff4b2420, + 0x06012206, 0x08fd4b32, 0x47840020, 0x0f838d20, 0x00221d86, 0x5b888e00, 0x8c310124, 0x0d8a55ff, 0x48007e21, 0x00270aef, 0x0002005c, 0x821c000a, + 0x8204201f, 0x8674203b, 0x00002227, 0x82bd8390, 0x862020bb, 0x05012251, 0x835f8225, 0x05022269, 0x830b8825, 0x82012015, 0x8e902017, 0x068521c9, + 0x29824983, 0x2941a582, 0x206b8917, 0x216b8392, 0x6d821e14, 0x0120d583, 0x2c207182, 0x51525382, 0x8e92200b, 0x8586205f, 0x2c06215f, 0x08215f8b, + 0x20cb9658, 0x215f8394, 0x5f89c632, 0x87c50421, 0x06f14d5f, 0x5f899420, 0x00120825, 0x4d840502, 0x24210b27, 0x2e1d8212, 0x13060008, 0x12081320, + 0x001413fc, 0x4c1c000e, 0xa38306dd, 0x96000022, 0x01204d82, 0x2206374d, 0x88970000, 0x2301224b, 0x500b82d8, 0x23230827, 0x453d00ca, 0x4d530a19, + 0x2213210a, 0x04219b83, 0x532d8379, 0x9920104d, 0x4d059b41, 0x11830a5b, 0x230a4d53, 0x7c04b604, 0x13482382, 0x086d4105, 0x009e1233, 0x000a0002, + 0x0005003c, 0x1332130c, 0x00180026, 0x20a38624, 0x08074401, 0x8a040222, 0x4308e54d, 0x9b2007f3, 0x11836f90, 0x12236f86, 0x82020048, 0x8a7d206f, + 0x416a20c7, 0x05210b75, 0x084142cc, 0x43009d21, 0x2e200783, 0x23066753, 0x00db0401, 0x01200083, 0xdb204382, 0x01220b84, 0x2f82da04, 0x09831789, + 0x22820120, 0xef419d20, 0x8430200e, 0x04022457, 0xa22f05db, 0x929f2079, 0x88dd2079, 0x04dd2179, 0x01220b83, 0x7984dc04, 0x01201787, 0x79831582, + 0x798e9f20, 0x79863120, 0x798cdd20, 0xf3845e20, 0x67843a20, 0x16008425, 0x86002200, 0x086f56c9, 0x2f050222, 0x3354ed88, 0x41a12007, 0xfb580659, + 0x00002207, 0x236d8da1, 0x5a04f104, 0x02221182, 0x6d8cda04, 0x20056141, 0x85d58b46, 0x8c6d8bbd, 0x54d58879, 0xa320069d, 0xf3207986, 0x83089d41, + 0x0b434211, 0x5b04f322, 0xdc207984, 0x1d44798c, 0xf404210c, 0xa5203d88, 0x21091d44, 0x1582dd04, 0x7f040122, 0x20085f41, 0x830b887f, 0x82012015, + 0x8ea52017, 0x845c20e5, 0x04022249, 0x423b827f, 0x023607af, 0x1000ca21, 0x32002421, 0x2a2a0200, 0x02004200, 0x64040500, 0x05826404, 0x72047223, + 0x05ff4e00, 0xd804042a, 0x0300d804, 0x2d062c06, 0x02205182, 0x21831582, 0x0f860220, 0xca06072e, 0x1000b006, 0x5221d606, 0x2c001e00, 0x02204182, + 0x0120a582, 0x00202984, 0x8b82ff85, 0xa7208f83, 0x01200784, 0x0d832182, 0x9d88a820, 0x46210122, 0x230baf43, 0x4e003821, 0x200a6d42, 0x302f8254, + 0x0030000a, 0x2f0c0005, 0x021402f4, 0x00180032, 0x82a18201, 0x10d94561, 0x6f85aa20, 0x830ab34f, 0x0b6f4111, 0x6804b222, 0x45082150, 0x2c200f21, + 0x0828b782, 0x14000e0f, 0xec050100, 0x20141344, 0x205f85ac, 0x09914105, 0x5f8a1183, 0x05f40523, 0x2423824b, 0x06ec0502, 0x22c3842c, 0x8220000d, + 0x004034bb, 0x006c0052, 0x0094007e, 0x00bc00aa, 0x00dc00cc, 0x820801f6, 0x2c01236d, 0x03870098, 0x2f4f0020, 0x882c2505, 0x882c0200, 0x0f830582, + 0x5c0d0224, 0x21822600, 0x03847820, 0x03241183, 0x4a0d6c2c, 0x2c21a183, 0x20138266, 0x05514166, 0x82d80421, 0x0d02243b, 0x82522c30, 0x844c2013, + 0x222b8303, 0x82100001, 0x843a200b, 0x22a38303, 0x86dc0401, 0x82242063, 0x82242063, 0x2015851d, 0x241582dd, 0x2c440002, 0x8529820e, 0x253d8403, + 0x01003417, 0x0384fc2b, 0x2b279b86, 0x2b0200ec, 0x822417ec, 0x82032075, 0x2b012103, 0x03824f82, 0x03821220, 0x022a4983, 0x6c046404, 0x01000300, + 0x0382aa2b, 0x9b84c220, 0xae000022, 0x2b217385, 0x821382b0, 0x20158203, 0x09f941af, 0xff962b23, 0x220d8a41, 0x41470088, 0x80260af9, 0x0a000200, + 0x11825c00, 0xfa2d0e2b, 0x28001a00, 0x44003800, 0x05135000, 0x03500120, 0x4f0d850c, 0x0f850939, 0x25420583, 0x41b12013, 0xf74f05c5, 0x4111830a, + 0x04230ac5, 0x826f04b4, 0x04022223, 0x4265826c, 0x12210825, 0x058f46cc, 0x070e0023, 0x208d8618, 0x828d8746, 0x099354f7, 0x0021a183, 0x848d8a00, + 0x05c54f1d, 0x43820020, 0xb3000023, 0x85078300, 0x000022c9, 0x090141b4, 0x43681221, 0x12230b09, 0x5848005a, 0x222e0819, 0x42003200, 0x74006200, + 0x01000300, 0x03850a1b, 0x82602a21, 0x82032049, 0x1a012803, 0x2a0200fa, 0x84502a50, 0x2a01270f, 0x1a010040, 0x078300ea, 0x7f410020, 0xda1a2105, + 0x30201f82, 0x2c06f341, 0x04640406, 0x058a046c, 0x062c062f, 0x221f822d, 0x824e1a01, 0x8210202b, 0x8201203b, 0x86b62003, 0x00a82531, 0x00fe2901, + 0x05831185, 0x0800012c, 0x0a000200, 0x6d050200, 0x17827206, 0x2a060222, 0x8306e542, 0x5a012019, 0x20240ba7, 0x001400d6, 0x4905d755, 0xef840531, + 0x20062b50, 0x067f41b8, 0x5b84d420, 0x11835983, 0x220b7f41, 0x825904d4, 0x0402221b, 0x066748c5, 0x12000623, 0x22ff8500, 0x846a0052, 0x824420ff, + 0x860385ff, 0x341b25df, 0x341b0200, 0x0f830582, 0xc61a0122, 0x24201f82, 0x1f870384, 0x1f821420, 0xb61a1422, 0xdf60df82, 0x041b2106, 0x01200b82, + 0xba220382, 0xab820100, 0xf586d420, 0x0100ec23, 0x8203821a, 0x41bb2017, 0x1a230997, 0x8a93ffd2, 0x00c4220d, 0x1551480f, 0x5bde1f21, 0x4b51092d, + 0x055d4908, 0xbd000022, 0x8310615b, 0x23f78a11, 0x7f057306, 0x02222382, 0xbf492d06, 0x4173201a, 0xbf200835, 0x0822b182, 0x7189ec09, 0x200a5348, + 0x20258479, 0x0d0146bf, 0x06710522, 0x02223d83, 0xc54f7904, 0x0c6d460c, 0x93832184, 0xc1000022, 0x82096d46, 0x0001252f, 0x00ec0501, 0x01240083, + 0xec050200, 0x2b450b88, 0x422d8305, 0x77200d23, 0x29824984, 0x02326b8a, 0x1200c427, 0x42003400, 0xbc230300, 0xc4006a00, 0x69460200, 0x04012506, + 0x00d804d8, 0x20059f53, 0x24ff8205, 0x0604002d, 0x26418273, 0x06010003, 0x8204002a, 0x2b798627, 0x64040600, 0x01006404, 0x6c046c04, 0x8a220582, + 0x97828a04, 0x2f052f22, 0x29822783, 0x26079546, 0x000e0006, 0x8226001a, 0x0040226b, 0x0577414c, 0x56069146, 0x0020095f, 0x01205582, 0x05830384, + 0xe1560020, 0x830b8506, 0x8402200d, 0x8577851b, 0x00002227, 0x824b86c3, 0x20188297, 0x83038201, 0x06c34111, 0x00e62625, 0x5d7b0502, 0x0a210bbb, + 0x0c1b4b2e, 0x2609bb41, 0x000300c5, 0x41a20808, 0x7f4a09bb, 0x053d5910, 0x08000126, 0xe8090200, 0x7c205782, 0x5d12135e, 0xc72011b3, 0x05215783, + 0x20578a90, 0x83a38226, 0x07d14e9f, 0x1342c720, 0x4179200e, 0x062105a7, 0x0c134226, 0x9105254b, 0x84c9205f, 0x895a20b7, 0x08d34a5f, 0x2007c74a, + 0x205f8ec9, 0x215f8582, 0x5f8c8a04, 0x20057342, 0x09614238, 0x827f0421, 0x04012237, 0x22ad86da, 0x88da0402, 0x05e3490b, 0xcb000022, 0x420aa351, + 0x118305a1, 0x230a3f43, 0x8104b704, 0x02222382, 0x3b827f04, 0x4d08b745, 0x6b91066b, 0x6b88dc20, 0x8704dc21, 0x8201200b, 0x82012009, 0x90cd2017, + 0x8d11836b, 0x8282206b, 0x206b8323, 0x0c5b54dc, 0x520ad74d, 0xcf200a37, 0x6420e990, 0x4f836582, 0x64040223, 0x480b8704, 0x002205d7, 0x4341cf00, + 0x8304210d, 0x29834984, 0x77447f20, 0xda262415, 0x49001400, 0x012005f7, 0x20101549, 0x83cb90d1, 0x20cb8d11, 0x82238287, 0x0bef46cb, 0x8a0da34e, + 0x90d320cb, 0x886c20cb, 0x046c21cb, 0xdd460b87, 0x8ed32007, 0x848520cb, 0x04022349, 0xcb8b046c, 0x20170f42, 0x205988d8, 0x08b553d8, 0x09820120, + 0x17820120, 0xd790d520, 0xd78d1183, 0x23828020, 0x3182d782, 0x420fed49, 0xd78a06db, 0xd783d720, 0x41a60321, 0x04210949, 0x20658272, 0x20418200, + 0x83098201, 0x8ed72071, 0x848620cb, 0x0402223d, 0x20cba472, 0x234d86cd, 0x04cd0402, 0x01200b87, 0x59830982, 0xcb90d920, 0xcb8d1183, 0x23828820, + 0xcd20cb83, 0x510a0342, 0x06211075, 0x20258248, 0x83058201, 0x0001246c, 0x84480602, 0x0601220b, 0x08374676, 0x1a82db20, 0x83000121, 0x20798323, + 0x22d388dc, 0x5e140001, 0x65820ba7, 0x4b862e20, 0x20083b41, 0x05034923, 0x0a000424, 0x47582402, 0x5d042105, 0x05822383, 0xaf530020, 0x82078206, + 0x82de205f, 0x84638203, 0x0000221d, 0x216389df, 0x9b4f8a23, 0x007c220c, 0x21cd8954, 0xe962fa01, 0x1e022309, 0x51821400, 0x87415d85, 0x41e1200f, + 0xb749062d, 0x00002207, 0x286188e1, 0x00b40102, 0x04b10402, 0x15294362, 0x832e0321, 0x26062157, 0x2014df4b, 0x545785e3, 0x11830a0f, 0x230a8541, + 0x6a057006, 0x02222382, 0xf9482606, 0x0e13210b, 0x860ffb52, 0x077b455f, 0x54077954, 0x2141055b, 0x41e52005, 0x29840521, 0xe6000022, 0x0122bf88, + 0x8541c012, 0xb212230b, 0xc98a4a00, 0x02006c33, 0x48000a00, 0x0c000500, 0x1800e622, 0x30002400, 0x059d4200, 0x4305f743, 0x0b86051b, 0x4405b547, + 0xe820100f, 0x0421e585, 0x081142b5, 0xe58a1183, 0x04b50423, 0x221b8275, 0x44720402, 0x3d891a0f, 0x0f44ea20, 0x4272200a, 0x4f83080d, 0x8205ad55, + 0x201586e8, 0x200a8201, 0x0e4343ea, 0x87847320, 0x72202983, 0x201bd742, 0x42598504, 0x9b820709, 0x00201182, 0x8789fb82, 0x5d82ec20, 0x0d410120, + 0x00002206, 0x0c4d54ed, 0x4a055d5e, 0x062205a7, 0x8f844300, 0x69206f9d, 0x69202384, 0xc9855382, 0x83046921, 0x0401220b, 0x225786b3, 0x82ef0000, + 0x556f831b, 0xf0200551, 0xbd546f8c, 0x864a200d, 0x0847434b, 0x48780021, 0x09560b17, 0x00f2240a, 0x410c0005, 0x3c2006d7, 0x8a20cb82, 0x79203984, + 0x1d608588, 0x04022409, 0x828a0479, 0x52012017, 0xfb4905bf, 0x88f22010, 0x0002268f, 0x0402000a, 0x8565848b, 0x1b1b4735, 0x8d487184, 0x06022108, + 0x20097f5b, 0x20158201, 0x20718201, 0x063f42f4, 0x8309bf56, 0x0b3f4211, 0x8c04b822, 0xc3592382, 0x216b8805, 0x1382c807, 0x49000821, 0x32240799, + 0x4c003e00, 0xc983e188, 0x20056741, 0x21d5858a, 0xf9842a06, 0x1182178a, 0x2b412182, 0x82f6200a, 0x8601208b, 0x00002241, 0x23ef88f7, 0x005e0701, + 0x26079f49, 0x07010008, 0x822e0050, 0x00002875, 0x00140007, 0x823c002c, 0x00682475, 0x82920080, 0x254f8223, 0x0200ce10, 0x174d9000, 0x04022206, + 0x826582c5, 0xb610243b, 0x82100100, 0x78002103, 0x03206382, 0x01280382, 0x02006800, 0xa610a610, 0x20093f4c, 0x057f5410, 0xf900002c, 0x03000100, + 0x67069504, 0xcb6c6806, 0x823c2008, 0x82012027, 0x221b8303, 0x85950401, 0x2400216b, 0x62205582, 0xfa20a784, 0x10211185, 0x200d8250, 0x21118612, + 0xbd4a0001, 0x074b4107, 0x57880c20, 0x64226183, 0x43492c06, 0x00042406, 0x821e000e, 0x844020d5, 0x0084286f, 0x00720601, 0x82de1201, 0x27ab846f, + 0x02006206, 0x7400ce12, 0x01220f84, 0x1b829805, 0x0b82be20, 0x03820120, 0x7785fc20, 0x82400621, 0x84ac2013, 0x41fc2077, 0x022a0837, 0x02008400, + 0x8f04b804, 0x29820600, 0x3e226385, 0x63845600, 0x2f822020, 0x67827a20, 0x19820e20, 0x12276384, 0x0502006a, 0x821000fe, 0x00022c0f, 0x04010002, + 0x0400004c, 0x82ed0754, 0x85032007, 0x830520d3, 0x8201208f, 0x82fe201f, 0x0401220f, 0x257985b9, 0x01003212, 0x7384c605, 0x4e055b4e, 0x04210855, + 0x58238291, 0x902005f5, 0x60248188, 0xd600b200, 0x14248184, 0x0e010100, 0x1c203782, 0x02850382, 0x8d6d0220, 0x82192006, 0x000d340e, 0x0014000e, + 0x00220018, 0x0096008a, 0x009d0097, 0x70ab00a1, 0xf7241411, 0x97059605, 0x00215187, 0x203b82bc, 0x204e841e, 0x26058201, 0x04fc0303, 0x820d0408, + 0x98182009, 0x14216e53, 0x03203382, 0x2006796e, 0x2307866a, 0x00020100, 0xa3840182, 0x73840020, 0x75880b20, 0x23884620, 0x23820320, 0x052a7583, + 0x08040000, 0x0a000804, 0x4b820d04, 0x4b440b20, 0x0531420c, 0x2007bb44, 0x221b8267, 0x82040101, 0x82002037, 0x82082009, 0x820a2003, 0x0012220b, + 0x2e09821a, 0x04cb0402, 0x040300cc, 0x04a104a2, 0x820200a0, 0xa02a0807, 0x00000600, 0x66003000, 0x88007800, 0xae009a00, 0x0201ec00, 0x2e011801, + 0x5a014401, 0x86017001, 0xb0019c01, 0xd801c401, 0xac82ec01, 0x021a3808, 0x0242022e, 0x026a0256, 0x0292027e, 0x02ba02a6, 0x02de02cc, 0x030a03f0, + 0x0332031e, 0x035a0346, 0x0382036e, 0x03b0039c, 0x03d603c6, 0x040604ea, 0x042a0418, 0x8356043e, 0x8c0e23d9, 0x03820100, 0x8c0e0224, 0x7382cc19, + 0x0d820320, 0x03857a20, 0x85ba1921, 0x8302200f, 0x006a260f, 0x0e6a0e02, 0x2911856a, 0x01002600, 0x01009819, 0xbd82f803, 0x06010023, 0x063b4200, + 0x82841921, 0x0130081f, 0x07010000, 0x14000100, 0xa404a304, 0xaa04a904, 0xad04ac04, 0xaa05a905, 0xad05ac05, 0xb105b005, 0xb705b605, 0xbd05bc05, + 0xc305c205, 0xc905c805, 0x02243d82, 0x16025609, 0x4c205382, 0x46200382, 0x02205389, 0x19274a82, 0x19020036, 0x84301936, 0x84072015, 0x0158262b, + 0x090100ea, 0x202b82c4, 0x212b891a, 0x1382d401, 0x0200ae26, 0x0419ae09, 0x5a2a2b8a, 0x0100be01, 0x0100ae0d, 0x2b8aee18, 0x1382a820, 0x02009826, + 0xd818980d, 0x02272b89, 0x00920126, 0x82e00201, 0x8ac2202b, 0x827c202b, 0x00ca2613, 0x18ca0202, 0x222b88ac, 0x82660101, 0x829c2025, 0x84962003, + 0x00082613, 0x01010003, 0x20818252, 0x2013822c, 0x20138a82, 0x2069823e, 0x2013822e, 0x20138a6e, 0x2051822a, 0x20138278, 0x82138a5a, 0xfc0b21fd, + 0xfd8a1382, 0x42020121, 0x1821056f, 0x20278432, 0x22058206, 0x826c0401, 0x08022469, 0x82e80028, 0x001e222b, 0x20198400, 0x21138209, 0xff820001, + 0x820a1821, 0x82038215, 0x840a2016, 0x002e2627, 0x080100c0, 0x82278c9a, 0x860821c5, 0x03821582, 0x34262788, 0x01009800, 0x278c880c, 0x11828420, + 0x03857420, 0x01232787, 0x82700004, 0x069544e7, 0x77850120, 0x11825c20, 0x0385aa20, 0x01262786, 0x01004800, 0x4d867e17, 0x20053f43, 0x20718236, + 0x20118c10, 0x205b8224, 0x20118c14, 0x20458212, 0x26118860, 0x05020001, 0x82b105b0, 0x070122c7, 0x204f8238, 0x2003822e, 0x20ef8428, 0x8213820c, + 0x1a17276a, 0x1a170200, 0x13841417, 0x27840d20, 0x01003e23, 0x208b8207, 0x05174117, 0x07272786, 0x07020096, 0x8aec1696, 0x00442727, 0x00980b01, + 0xfd411601, 0x27278605, 0x0200840b, 0xc416840b, 0x00212789, 0x200b8214, 0x202782ce, 0x201384b0, 0x2205820c, 0x85b80401, 0xb400267d, 0xb4000200, + 0x05ff4116, 0x00207d83, 0x2c287b82, 0x82160300, 0xa0168816, 0x0e202f84, 0x07292985, 0x16020016, 0x0072166c, 0x210f8500, 0x0f825c16, 0x7a166222, + 0x8208fd41, 0x48162139, 0x66204d82, 0x00226f84, 0x19820901, 0x8a040224, 0x2f862a06, 0x81823220, 0x518b2c20, 0xa3820620, 0xfb421620, 0x850f2005, + 0xc80a2123, 0x08225382, 0x258b6800, 0x00120025, 0x86f41501, 0x05714711, 0x83820320, 0xdc150122, 0x8205e945, 0x820a2076, 0x04052809, 0x056c0464, + 0x482a062f, 0xd9450627, 0x00143005, 0x04a30407, 0x05ac04a4, 0x05b005a9, 0x82c805bc, 0x54072029, 0x2b82087f, 0x822d0621, 0x21428211, 0xb9820800, + 0x0500582a, 0xcc05b804, 0x7206af05, 0x83088952, 0x82402017, 0x05a92817, 0x05b105ac, 0x8ac205b6, 0x8228202f, 0x05ab2217, 0x211782a8, 0xd95005bb, + 0x8610200b, 0x86b12047, 0x04052247, 0x8c99858a, 0x00502a6d, 0x05a80404, 0x05b505ab, 0x20538ac1, 0x2515823a, 0x05aa05ad, 0xcb5005bd, 0x8224200b, + 0x8e998215, 0x820e2097, 0x05aa2615, 0x05b705ad, 0x204182c3, 0x08535504, 0x2d087d5c, 0x8bff5e05, 0x00000600, 0x0a000200, 0x1f482e00, 0x821c2008, + 0x23238211, 0x01001101, 0xab241382, 0x6d016c01, 0x02240982, 0xc000b400, 0x1e202388, 0x042a238a, 0x2b002200, 0x6e016100, 0x01820100, 0x41053f47, + 0x0c22055f, 0x3d830300, 0x03201984, 0xc6203f84, 0x44206f88, 0x34204b88, 0x13204b86, 0x05248782, 0xb102b002, 0xb4379082, 0x0200b502, 0xe802cc02, + 0x08030400, 0x21000f03, 0x18031103, 0x82002900, 0xa0022161, 0x2e203988, 0x0420398a, 0xb4203988, 0x03203986, 0x20203984, 0xab203384, 0x230d714a, + 0xb802b702, 0x02241182, 0xab02a002, 0x2608d94b, 0x00580102, 0x82100020, 0x0f022403, 0x823600ba, 0x8202208d, 0x00b62653, 0x03cc0201, 0x232d832b, + 0x98020300, 0x0f853783, 0x044f0423, 0x2023824f, 0x08436304, 0xff840020, 0x05820120, 0x15010022, 0x13830b86, 0x16010022, 0x8508396a, 0x8217201d, + 0x4e022037, 0x0022086b, 0x9d8a1801, 0x6700d422, 0x737f6582, 0x084741ca, 0x02005408, 0x002b03cc, 0x00060007, 0x00210000, 0x005a0048, 0x007c006a, + 0x00c20090, 0x01ee00d8, 0x011a0104, 0x01460130, 0x016e015a, 0x01960182, 0x01be01aa, 0x01e601d2, 0x020c02fa, 0x0238021e, 0x02660252, 0x02940280, + 0x02c202ae, 0x02ec02d4, 0x000300fe, 0x84b40601, 0x06022403, 0x82d803b4, 0x20118355, 0x821182a2, 0xc6032103, 0x01210f85, 0x260f82c6, 0x06020092, + 0x47920692, 0x032b09d7, 0x020100a4, 0x000100d6, 0x421a0100, 0x0321074d, 0x831f8290, 0x001b2711, 0x040e0001, 0xeb7a04a1, 0x05a63205, 0x05b305a7, + 0x05b905b4, 0x05bf05ba, 0x05c505c0, 0x2c3182c6, 0x018a0102, 0x1101006e, 0x03010080, 0x2147895e, 0x13825801, 0x02006a26, 0x48036a11, 0x1b201584, + 0x8c262b84, 0x01004201, 0x2b82f801, 0x2b8a3220, 0x13822c20, 0x0200e226, 0x1c03e201, 0x8e262b8a, 0x01001601, 0x2b82e205, 0x2b8a0620, 0x13820020, + 0x0200cc26, 0xf002cc05, 0x01262b88, 0x0100ea00, 0xc982fc10, 0x1384da20, 0xc9841c20, 0x0121d582, 0x8213828c, 0x853482f7, 0x82c22013, 0x828e203d, + 0x88b22013, 0x00022427, 0x82ae00ca, 0x86c0203d, 0x841d20f3, 0x829a203b, 0x85ac2011, 0x203b8203, 0x2413821e, 0x00d00002, 0x20a78286, 0x20278c3c, + 0x20118272, 0x88038528, 0x00d62227, 0x2065825e, 0x20278c2a, 0x8311824a, 0x860382cd, 0x00012227, 0x205f8236, 0x20258648, 0x2475841f, 0x00010024, + 0x23118cda, 0x04010012, 0x2906a14b, 0x01001f01, 0xa1040200, 0x2b84a204, 0x3d821420, 0x79820a20, 0xc984e820, 0x05822020, 0x73060122, 0x27051d46, + 0x0200f00f, 0xce01f00f, 0x21201984, 0x2008cf4a, 0x202d8280, 0x202d8aba, 0x272d8572, 0x02006600, 0xa0016600, 0x04212d8d, 0x202d8268, 0x212d898c, + 0x2d85cc05, 0x824e0421, 0x014e2183, 0xc782f782, 0x06825b83, 0x82800f21, 0x05fb412b, 0x25852220, 0xb7820020, 0x844c0121, 0x8422203d, 0x852c2099, + 0x10042117, 0x34202982, 0x03201786, 0x0120e983, 0x54201f83, 0x1c201184, 0x250edd45, 0x05a605a1, 0x615705b9, 0x2400270a, 0xa0040400, 0xdd45cc05, + 0x05a22612, 0x05b305a3, 0x224182bf, 0x5bc50404, 0xe9580631, 0x005c2809, 0x05a50503, 0x8ac405b8, 0x82482061, 0x05a22413, 0x8abe05b2, 0x82342013, + 0x05a72213, 0x06f94cba, 0x2005b945, 0x8f138220, 0x820c2071, 0x05a42413, 0x77c005b4, 0xf14d052b, 0x24318508, 0x0080014c, 0x25038210, 0x007e0a02, + 0x5f5b0018, 0x04002706, 0xd001c401, 0x11820a00, 0x200b1d45, 0x0c1d4524, 0x8b882520, 0x06000124, 0x0d820e00, 0x06233d83, 0x87000000, 0x82262059, + 0x00262459, 0x82240a02, 0x06012247, 0x243d8426, 0x016a0104, 0x20599076, 0x20598c27, 0x20598c28, 0x830d8249, 0x23598a3d, 0x1000cc00, 0x02220382, + 0xb384ca09, 0x3d847920, 0x10010424, 0x59901c01, 0x598c2a20, 0x598c2b20, 0x0421cf84, 0x09494679, 0x004c0023, 0x24598272, 0x09020072, 0x21598370, + 0x3d84f905, 0xb6000424, 0x5990c200, 0x598c2d20, 0x598c2e20, 0x0d827520, 0x3d820120, 0xb620b389, 0x10204f82, 0x02240382, 0x6a001609, 0x23076d60, + 0x0d000200, 0x87202982, 0x8a210782, 0x29098201, 0x66016101, 0x6f010100, 0x05826f01, 0x76017422, 0x26080582, 0x00060277, 0x02070202, 0x02010096, + 0x002b0397, 0x032c0302, 0x030100e2, 0x00f603e5, 0x04d80402, 0x050200dd, 0x822f052f, 0x05962205, 0x20478297, 0x24a78204, 0x00220016, 0x20578230, + 0x20a18a02, 0x200b8401, 0x08337602, 0x01000022, 0x30200282, 0x01200f84, 0x0d833782, 0xc38c3120, 0x0d825a20, 0x64040124, 0x23820600, 0x0c000328, + 0x3a002000, 0x13820300, 0x03822620, 0xc583c182, 0x01000023, 0x08d54733, 0x27825620, 0x34214583, 0x234f8200, 0xa704a604, 0x21054543, 0x0f823c00, + 0x00210383, 0x0a597701, 0x2720a182, 0x830c914e, 0x214e8255, 0x15820800, 0x28000622, 0xcd577b84, 0x00062c05, 0x002e0012, 0x00580044, 0x448e0074, + 0x7620081f, 0xd2202182, 0x3720c384, 0xaf226f84, 0x1b84b004, 0xb6206983, 0x5a22cf82, 0x1d86b600, 0xa020b387, 0x03830f82, 0x38010022, 0x8c20b388, + 0x3925b386, 0x03000100, 0x21438204, 0xb586ae05, 0x43827020, 0x2106a168, 0x1d823a01, 0x2f050122, 0x56201986, 0x03830d82, 0x3b010022, 0x210d9d48, + 0x3d82af04, 0xcd20fb83, 0xad492b82, 0x22002308, 0x0f57e2ff, 0x0957560c, 0x06000124, 0xe984e3ff, 0x7941cd20, 0x8287200c, 0x0001210d, 0x230e2756, + 0xce05cd05, 0x02241782, 0x7b056d05, 0x0523778d, 0x84cf05cf, 0x05262219, 0x08a74927, 0xdb442820, 0x18002109, 0x00221d82, 0xc5844101, 0x0584cb20, + 0x1d8acf20, 0x1d881220, 0x26050222, 0x87414984, 0x00022605, 0x0503000c, 0x820183e9, 0x82032021, 0x8ccb201b, 0x000e2a1d, 0x05d90504, 0x05db05da, + 0x281f82f5, 0x054b0504, 0x05780577, 0x20c98cec, 0x206d84ab, 0x22958425, 0x82080001, 0x0040210d, 0x210acd5a, 0x2d863206, 0x45010022, 0x04220982, + 0x2f840000, 0x91848520, 0x01541183, 0xd005210a, 0x02222d84, 0xd1678505, 0x8300200b, 0x82082041, 0x00062653, 0x04010010, 0x824f84ba, 0x20578846, + 0x208f8c47, 0x220d822a, 0x8a900401, 0x0abb678f, 0x00740024, 0xe1610014, 0x83322007, 0x842d8344, 0x01002275, 0x229f8449, 0x88710601, 0x8a118359, + 0x7106239f, 0x1b82d105, 0x2a060222, 0x0d553182, 0x866c201b, 0x22608355, 0x71020001, 0x01200a2f, 0x4b206b86, 0x200f4d62, 0x62118301, 0xbb200d4d, + 0x02222382, 0x41416c04, 0x00082e08, 0x000e0002, 0x04bc0404, 0x05d205bd, 0x271d82d3, 0x046f0404, 0x056b0570, 0x200ab371, 0x0b7d4100, 0xed854f83, + 0x4e010022, 0x05217185, 0x83dd88bd, 0x23718a11, 0xaf05bd05, 0x02221b82, 0xbf576e05, 0x204f970c, 0x4c4f8650, 0x002107ed, 0x8b118301, 0x86c9204f, + 0xa47d204f, 0x8652204f, 0x88aa204f, 0x8b11839f, 0x86aa204f, 0xa432204f, 0x8654204f, 0x88ad204f, 0x0915764f, 0x0a000226, 0xad050200, 0x2f204f86, + 0x15834f86, 0x37442220, 0x00882108, 0x00247b83, 0x01005601, 0x87200182, 0x200a4d43, 0x870f8270, 0x70612017, 0x00230d67, 0x82890087, 0x82012001, + 0x0061242d, 0x436e01c6, 0x578908ab, 0x57863020, 0x57845820, 0xc3438620, 0x20178510, 0x201d8222, 0x48418402, 0x0c200935, 0x86222b82, 0x01828800, + 0x22205f83, 0x1c205f8c, 0x6620b784, 0x24203582, 0x5a205f86, 0x6c205986, 0x20086d4f, 0x2153845a, 0x118301b4, 0x27075741, 0x0103000c, 0x01700167, + 0x0323d383, 0x8300ab00, 0xd343181d, 0x20b38711, 0x2241825c, 0x90670101, 0x821784b3, 0x0001263d, 0x01c00002, 0x0d13416d, 0x71225f82, 0x13827101, + 0x1d835f83, 0x42093943, 0x0021105b, 0x222782c6, 0x415e0100, 0x698205bb, 0x1185fd85, 0x820a0b42, 0x84722053, 0x82ab20cd, 0x204f9b31, 0x204f84ee, + 0x834f9060, 0x204f8d11, 0x2e4f8673, 0x000600ee, 0x00040000, 0x0020000e, 0x866c005a, 0x822620eb, 0x8436201d, 0x8662204b, 0x82142011, 0x001a22eb, + 0x20138424, 0x22058263, 0x18b40001, 0x340ad95b, 0x07030002, 0x00830783, 0x07990700, 0x070100a3, 0x00a707a5, 0x2339820c, 0x00440101, 0x00200383, + 0x01224b88, 0x11821200, 0x73823220, 0x14820120, 0x55826320, 0x01000424, 0x0b828700, 0x06027730, 0x97028700, 0x17012b03, 0xec03e503, 0xc150ac01, + 0x0011220c, 0x214418b5, 0x222f821f, 0x18b40011, 0x451fff43, 0x02260829, 0x3800a600, 0x03821000, 0x54000224, 0x89825600, 0x3b820620, 0x01008523, + 0xdb7b1807, 0x07a8220b, 0x221182a8, 0x82b107ac, 0x07b32205, 0x226382b8, 0x82040002, 0x82862089, 0x0795220f, 0x22058295, 0x82970797, 0x07bb2205, + 0x20af84c7, 0x205f8202, 0x21dd8414, 0x634f0001, 0x84652005, 0x07d94107, 0xd58a6620, 0x10002622, 0x1020d3a2, 0x3343d1a0, 0x00223e09, 0x0418040e, + 0x041a0419, 0x041c041b, 0x041e041d, 0x0420041f, 0x04d60421, 0x064a06d7, 0x20e38215, 0x75471803, 0x0c4f4611, 0x0d820c20, 0xde040223, 0x0a8d5e04, + 0x8420d182, 0x01243982, 0x93008a00, 0x4942d984, 0x82012005, 0x846c2017, 0x00ac2217, 0x3a178ab0, 0x00880002, 0x011d010b, 0x011f011e, 0x01210120, + 0x01230122, 0x01250124, 0x88270126, 0x00022269, 0x34238264, 0x01290128, 0x012b012a, 0x012d012c, 0x012f012e, 0x01310130, 0x20238a32, 0x34238240, + 0x01340133, 0x01360135, 0x01380137, 0x013a0139, 0x013c013b, 0x9f45183d, 0x3e01350d, 0x40013f01, 0x42014101, 0x44014301, 0x46014501, 0x48014701, + 0x02249982, 0xbb00b400, 0xbd249982, 0x0800bf00, 0x01243388, 0x83003000, 0x22200d8a, 0x200e5371, 0x0c0f418f, 0xe1849520, 0xcb00c622, 0x2e26e18c, + 0xf8030200, 0x878c0904, 0xf9030224, 0xc7480a04, 0xfa03230d, 0x11820b04, 0xed030224, 0x198afc03, 0x0600122e, 0x0c04fb03, 0x48044704, 0x4a044904, + 0x06221982, 0x4c18f003, 0xcf410a3d, 0x000e2a09, 0x04960404, 0x06690696, 0x28258269, 0x04790404, 0x06f9059d, 0x244b8a6e, 0x050d0020, 0x275018f9, + 0x82c32008, 0x056e2629, 0x04d505d4, 0x20378279, 0x2027829d, 0x2809820d, 0x047b047a, 0x047d047c, 0x2313838b, 0x72057105, 0x69204382, 0x0124458a, + 0x38000600, 0x4c091948, 0x0c2806ed, 0xd6050300, 0x6c066b06, 0x03250f82, 0x48068a05, 0x091f4806, 0x53203183, 0x01221782, 0x3b827b05, 0x44070f42, + 0x01220bdf, 0xa586c305, 0x7d010022, 0x200a0949, 0x850b827b, 0x26358511, 0x000a0002, 0x84af0502, 0x0917662d, 0x5200042a, 0x0e006200, 0x03002000, + 0x80202f82, 0x9e200382, 0x21057f41, 0x8f447f01, 0x00862406, 0x828c0001, 0x82002003, 0x092f4111, 0x02008a24, 0x93867106, 0x3f820420, 0xd7821e20, + 0x43845020, 0x2b825420, 0x5a200383, 0x03204782, 0x01280382, 0x02004400, 0x10004a00, 0x03210b84, 0x05635506, 0x21065959, 0xed413000, 0x81012705, + 0x01000100, 0x01467106, 0x20178510, 0x201d842a, 0x0df3412d, 0xce207f82, 0x89063549, 0x00012419, 0x82600006, 0x05012215, 0x162f416d, 0x1d840020, + 0xd184af20, 0x3b5e8420, 0x8301200f, 0x0d3b5e11, 0x23826f20, 0xaa040224, 0xf949af05, 0x5d04211b, 0x01202582, 0x210f5172, 0x19628601, 0x8b11840f, + 0x04b1225f, 0x205f8497, 0x493b825d, 0x64201bf9, 0x02205f8c, 0x0a874018, 0x2205774f, 0x6e880100, 0x11840f6d, 0x200d6d6e, 0x206b8498, 0x476b8c64, + 0x0421102b, 0x222582dd, 0x708a0100, 0x11840f2d, 0x200d2d70, 0x204f8499, 0x0ac16fdc, 0x38000122, 0x2206d542, 0x71140006, 0x3383060f, 0x8c010023, + 0x22078300, 0x84db0401, 0x438d205d, 0x1b200cfb, 0x560a9161, 0x04250847, 0x04ec04c4, 0x241982ed, 0x04810403, 0x863785da, 0x2638085b, 0x9b051000, + 0xd805d705, 0xdd05dc05, 0xdf05de05, 0xe105e005, 0xe305e205, 0xe505e405, 0xe705e605, 0x0200e805, 0x2f050300, 0x00002f05, 0x33053205, 0xa2050100, + 0x0300ae05, 0x1620758c, 0xd822bd84, 0x3167d904, 0x62382010, 0x5d200a43, 0x01222582, 0xbd822a06, 0x136abf83, 0x210c8305, 0x014b0001, 0x41922007, + 0xa97410e5, 0xb104230e, 0x6b849a04, 0x2c056b79, 0x01b00404, 0x000500c2, 0x04f40400, 0x204a8292, 0x25078592, 0x3200ab02, 0x0f823e01, 0xe02b0288, + 0x12ef0200, 0x02fbf901, 0x83382000, 0x54433914, 0xc0004244, 0xffff0d00, 0xa8fd0807, 0x08070000, 0x00605802, 0xd7df9f00, 0x1e224b82, 0x23826205, + 0x57832020, 0x82040021, 0x82032009, 0x82242003, 0x220b8203, 0x85003c0f, 0x822420f9, 0x000a2d07, 0x003c0f00, 0x00180f04, 0x01580100, 0x5c094482, + 0x0d005800, 0x39002f00, 0x7e017e00, 0xff019201, 0x37021b02, 0xbc02ba02, 0xc902c702, 0x0803dd02, 0x0f030c03, 0x27031403, 0x42033603, 0x77034503, + 0x8a037f03, 0x90038c03, 0xa903a103, 0xc903b003, 0x1a04e103, 0x3a042304, 0x79044304, 0x05142f05, 0x851e0a14, 0xf31e9e1e, 0x0f1f071f, 0x1d1f151f, + 0x3f1f271f, 0x4d1f451f, 0x591f571f, 0x5d1f5b1f, 0x871f7d1f, 0xc41fb41f, 0xdb1fd31f, 0xf41fef1f, 0x0820fe1f, 0x1a200b20, 0x22201e20, 0x30202620, + 0x44203a20, 0x70204a20, 0x7f207920, 0x8e208920, 0xaf20ac20, 0xbd20ba20, 0x0d210221, 0x16211321, 0x1d211a21, 0x24212221, 0x54212e21, 0x5f215e21, + 0x99218b21, 0xb321aa21, 0xea21df21, 0x0f220022, 0x15221222, 0x1a221722, 0x2b221e22, 0x4b223722, 0x65226222, 0x9c228b22, 0x0023af22, 0x10230623, + 0x21231823, 0x2b232823, 0x8b238823, 0xcf23ad23, 0x94252624, 0xab259f25, 0xb225af25, 0xba25b625, 0xc025bc25, 0xc725c425, 0xd325cb25, 0xe525d725, + 0xf725eb25, 0x20261226, 0x3c263726, 0x42264026, 0x63266026, 0x6b266626, 0x71271327, 0xe927a127, 0xff27f327, 0x3b2e072b, 0x03e00d30, 0xb3e0a2e0, + 0xfffe0bee, 0xfdff63ff, 0x0000ffff, 0x05717100, 0x003a6008, 0x019201a0, 0x021802fc, 0x02b90237, 0x02c602bc, 0x03d802c9, 0x030a0300, 0x0313030f, + 0x03350326, 0x03450342, 0x037a0370, 0x038c0384, 0x0391038e, 0x03aa03a3, 0x03ca03b1, 0x041b04f0, 0x043b0424, 0x148a0444, 0x1e0a1405, 0x1e9e1e80, + 0x1f001ff2, 0x1f101f08, 0x1f201f18, 0x1f401f28, 0x41501f48, 0x20080659, 0x1f801f5f, 0x1fb61f88, 0x1fd61fc6, 0x1ff21fdd, 0x200720f6, 0x2012200b, + 0x2020201c, 0x20302026, 0x06594139, 0x7a20742c, 0x8a208020, 0xaf20ac20, 0x5941b920, 0x21152208, 0x08594119, 0x21534e08, 0x215f2155, 0x2190218a, + 0x21b021a9, 0x22e421de, 0x22022200, 0x22152211, 0x22192217, 0x2227221e, 0x22412234, 0x22642260, 0x229c2282, 0x230023a2, 0x23102302, 0x23202318, + 0x232b2324, 0x238b2387, 0x24ce239b, 0x25002500, 0x25a02595, 0x0c5941ac, 0xc925c634, 0xd525ce25, 0xe725d925, 0x1026ef25, 0x30262026, 0x59413926, + 0x652b0808, 0x13276a26, 0xa1277027, 0xf027e827, 0x052bf427, 0x0c303a2e, 0xa0e000e0, 0x00eeb0e0, 0x62fffffe, 0xfffffdff, 0x00003e04, 0x8200bd03, + 0x73032100, 0x002a0482, 0x00008afe, 0x00000e05, 0x0d83e904, 0x962a0782, 0x82049304, 0x41047504, 0x11853f04, 0x0028ff27, 0xff07ff00, 0x20058206, + 0x2511837b, 0x000071fd, 0x0983e1fd, 0xefdeef33, 0xe10000da, 0xe40000c2, 0xe4c4e368, 0xe4c9e371, 0x2e0b8269, 0xe4c0e370, 0xe3b8e36a, 0x00b6e3b7, + 0x83f8e300, 0x23038929, 0x46e446e4, 0xe42d0d85, 0xe419e645, 0xe4f2e3c4, 0xe3bce348, 0x262982bc, 0xe5000098, 0x823ee542, 0xe2333805, 0xe4dae2e4, + 0xe2000025, 0xe4cee2d0, 0xe4c8e20a, 0xe2e6e20d, 0x83d8e2e8, 0xdae42339, 0x0784d5e4, 0x05836420, 0xe3ebe329, 0xe40000e2, 0x8310e417, 0x2103850d, + 0x3982d1e3, 0x00002e26, 0x4ae240e3, 0xe2211183, 0x20a58230, 0x830983b5, 0x20e13303, 0x00006be1, 0x6be16ee1, 0x66e16ae1, 0x61e163e1, 0x178316e1, + 0xe1200383, 0xde3f2982, 0xdeeedefb, 0xdedededf, 0xdedadedb, 0xdebbdebd, 0xde9fdeba, 0xdf70dd0e, 0x006edc01, 0x83a2de00, 0xd2d43527, 0x3727d327, + 0xde192a27, 0x88054d05, 0x01008507, 0x56010000, 0x72280382, 0x0000fa01, 0xba03b403, 0xbe200582, 0x03220387, 0xb98403c8, 0x03833983, 0x03d00329, + 0x00e803de, 0x84f20300, 0x2705820d, 0x2a04fc03, 0x7c040000, 0xa6220382, 0x15831005, 0x4d820620, 0x835e0621, 0x20038509, 0x850f8206, 0x301d8409, + 0x06000078, 0x070a07b2, 0x07400726, 0x076e074a, 0x25158372, 0x8e077e07, 0x09839207, 0x07250389, 0x07000088, 0x210f8390, 0x05839407, 0x07210383, + 0x8b05838e, 0x80072303, 0x0f838207, 0x83900721, 0x9c07233f, 0x0d84b607, 0x0584b420, 0xb807b22c, 0xd007cc07, 0x0000d207, 0x0382e207, 0x0582e182, + 0x8208fe21, 0x06082a1c, 0x06080000, 0x2c082a08, 0x23918208, 0x9c090000, 0x028a1482, 0x09940927, 0x09a20998, 0x201982a6, 0x90168abc, 0xb009210a, + 0xb4222182, 0x1890b809, 0x04002e08, 0x046c044f, 0x057f04ff, 0x054806ec, 0x04000526, 0x04d904d8, 0x04260679, 0x04c50463, 0x048a045d, 0x06690464, + 0x062a062d, 0x0572042c, 0x0ced6325, 0x00233308, 0x002b0028, 0x00380036, 0x0040003a, 0x00470041, 0x00550053, 0x005a0056, 0x00660061, 0x00720071, + 0x00780077, 0x04dc047d, 0x06dd0490, 0x07cd0434, 0x756400ae, 0x3009070a, 0xb100ac00, 0xc000b400, 0xc600c300, 0xcd00cc00, 0xe000d400, 0xe300e200, + 0xee00e700, 0xfe00f300, 0x0401ff00, 0x0a010501, 0x2f05da04, 0x3206db04, 0x71045004, 0xf205ea05, 0xf305eb05, 0x29053705, 0x2a05ac07, 0xfb047501, + 0xc6043306, 0xb7072b05, 0x30062d05, 0x2f042e04, 0x4006af07, 0x77042805, 0x2d04b807, 0xfc047601, 0x38043b04, 0x76043c04, 0x02000600, 0x0a000400, + 0x09000500, 0x11000b00, 0x19001f00, 0x1d001c00, 0x2d003200, 0x30002f00, 0x45001500, 0x48004c00, 0x51004a00, 0x28064b00, 0x6b004f00, 0x69006700, + 0x79006a00, 0xed005400, 0x8b008f00, 0x93008d00, 0x92008e00, 0x9a009400, 0xa200a800, 0xa600a500, 0xb600bb00, 0xb900b800, 0xd2009e00, 0xd500d900, + 0xde00d700, 0x2906d800, 0xf800dc00, 0xf600f400, 0x0601f700, 0x0801e100, 0x90000700, 0x8c000300, 0x91000800, 0x98000f00, 0x9b001200, 0x9c001300, + 0x99001000, 0x9f001600, 0xa0001700, 0xa9002000, 0xa3001a00, 0xa7001e00, 0xaa002100, 0xa4001b00, 0xae002500, 0xad002400, 0xb0002700, 0xaf002600, + 0xb3002a00, 0xb2002900, 0xbf003500, 0xbd003300, 0xb7002e00, 0xbe003400, 0xb5003100, 0xbc002c00, 0xc2003700, 0xc4003900, 0x3b00c500, 0x3d00c700, + 0x3c00c900, 0x3e00c800, 0x3f00ca00, 0x4200cb00, 0x4400ce00, 0x4300d100, 0xcf00d000, 0xd3004600, 0xdb004e00, 0xd6004900, 0xda004d00, 0xdf005200, + 0xe4005700, 0xe6005900, 0xe5005800, 0xe8005b00, 0xeb005e00, 0xea005d00, 0xe9005c00, 0xf1006400, 0xf0006300, 0xef006200, 0xfd007000, 0xfa006d00, + 0xf5006800, 0xfc006f00, 0xf9006c00, 0xfb006e00, 0x01017400, 0x07017a00, 0x7e007b00, 0x80000b01, 0x7f000d01, 0x0c000c01, 0x50009500, 0x5f00dd00, + 0x6500ec00, 0xcc07f200, 0xb107cb07, 0xb407b307, 0xb507ad07, 0xb607b907, 0x9b07b007, 0x9e079c07, 0xa307a207, 0xa007a407, 0x99079a07, 0x9d07a107, + 0xb9029f07, 0xba025003, 0x06055103, 0xbb020705, 0xe2035203, 0x54035303, 0x55045503, 0x85079702, 0xb0028707, 0xb1025404, 0xb302b202, 0xb602b502, + 0xb7024703, 0x4d03b802, 0x4f034e03, 0x4a034503, 0x49034603, 0x48034b03, 0xc1024c03, 0x5d035c03, 0xc302c202, 0x5e03c402, 0x5b035f03, 0x5603bc02, + 0x5703bd02, 0x5803be02, 0x5903bf02, 0x5a03c002, 0x61036003, 0x63036203, 0x6403c502, 0xc6020805, 0xc7026503, 0x6603c802, 0xc9026703, 0xcb02ca02, + 0x83018201, 0x7b01ab01, 0xa201a301, 0xa601a501, 0xa001a701, 0xa801a101, 0x88018b01, 0x9c019501, 0x78017701, 0x7a017901, 0x81018001, 0x85018401, + 0x87018601, 0x96018a01, 0x99019701, 0x9a019801, 0x9f019b01, 0x9d019e01, 0xa901a401, 0x0702aa01, 0x09020802, 0x10020a02, 0x14021102, 0x16021502, + 0x1a021702, 0x27022602, 0x28022902, 0x2b022a02, 0x2e022f02, 0x34022d02, 0x3a023902, 0x13021202, 0x0b023b02, 0x32023302, 0x36023502, 0x30023702, + 0x38023102, 0x18021b02, 0x2c022502, 0x3c02ac01, 0x3d02ad01, 0x3e02ae01, 0x3f02af01, 0x4002b001, 0x4102b101, 0x4202b201, 0x4302b301, 0x4402b401, + 0x4502b501, 0x4602b601, 0x4702b701, 0x4802b801, 0x19028901, 0x91020102, 0x92020202, 0x0c027c01, 0x0e027e01, 0x0f027f01, 0x4902b901, 0x4a02ba01, + 0x4b02bb01, 0x4c02bc01, 0x4d02bd01, 0x4e02be01, 0x4f02bf01, 0x5002c001, 0x5202c101, 0x5302c301, 0x5402c401, 0x5502c501, 0x5602c601, 0x5702c701, + 0x5802c801, 0x5902c901, 0x5a02ca01, 0x5b02cb01, 0x5c02cc01, 0x5e02ce01, 0x5f02cf01, 0xd101d001, 0xd2016102, 0xd3016202, 0xd4016302, 0xd5016402, + 0xd6016502, 0xd7016602, 0x60026702, 0x6802d801, 0x6902d901, 0x6a02da01, 0x6b02db01, 0x6c02dc01, 0x6d02dd01, 0x6e02de01, 0x6f02df01, 0x7002e001, + 0x7102e101, 0x7202e201, 0x7302e301, 0x7402e401, 0x7502e501, 0x7602e601, 0x7702e701, 0x7802e801, 0x7902e901, 0x7a02ea01, 0x0d027d01, 0x7b02eb01, + 0x7c02ec01, 0x7d02ed01, 0x7e02ee01, 0x7f02ef01, 0x8002f001, 0x8102f101, 0x8202f201, 0x8302f301, 0x8402f401, 0x8502f501, 0x8602f601, 0x8702f701, + 0x8802f801, 0x8902f901, 0x8a02fa01, 0x8b02fb01, 0x8c02fc01, 0x8d02fd01, 0x8e02fe01, 0x8f02ff01, 0x90020002, 0x5102c201, 0x5d02cd01, 0x93020302, + 0x94020402, 0x95020502, 0x96020602, 0x03017600, 0x00017300, 0x02017500, 0x09017c00, 0xea02e902, 0xec02eb02, 0xee02ed02, 0xf002ef02, 0xa103a003, + 0xa303a203, 0xa503a403, 0xa703a603, 0xfd02fc02, 0xff02fe02, 0x01030003, 0x03030203, 0xca031403, 0xcc03cb03, 0xce03cd03, 0xd003cf03, 0x1903d103, + 0x1b031a03, 0x1d031c03, 0x1f031e03, 0x70032003, 0x87037103, 0x91038803, 0xa8039203, 0xb603a903, 0xc203b703, 0xd203c303, 0xd902d303, 0xdb02da02, + 0xdd02dc02, 0xdf02de02, 0x9703e002, 0x99039803, 0x9b039a03, 0x9d039c03, 0xf4029e03, 0xf602f502, 0xf802f702, 0xfa02f902, 0xd803fb02, 0xda03d903, + 0xdc03db03, 0xde03dd03, 0x2403df03, 0x26032503, 0x28032703, 0x2a032903, 0x73032b03, 0x76037403, 0x77037503, 0x80037203, 0xd702d602, 0xd502d402, + 0x8907d802, 0x8807e103, 0x93079807, 0x94039503, 0x93039603, 0xe7029f03, 0xf102e802, 0xf302f202, 0x8d078b07, 0xab038f07, 0xad03ac03, 0xaa03ae03, + 0x0603af03, 0x04030703, 0x8c070503, 0x90078e07, 0xc603c503, 0xc803c703, 0xb903b803, 0xc903c403, 0x18031703, 0x16031503, 0x91071003, 0x94079207, + 0xd503d603, 0xd403d703, 0x0e03e003, 0x21030f03, 0x23032203, 0x8a079607, 0xc704ca04, 0xc904c804, 0xce047e04, 0xfa04f904, 0xf704f504, 0xf604f804, + 0x3a053905, 0x4b067804, 0x08061606, 0xe304e204, 0x4a067401, 0x07061506, 0xd704d604, 0xef05f105, 0x3c05e803, 0x96059705, 0x77067d06, 0x7b067906, + 0x80067f06, 0x78067e06, 0x7c067a06, 0x60056105, 0x82068106, 0x8b068e06, 0x8d068c06, 0x41065905, 0x5f060a06, 0x3c063606, 0x04060c06, 0x05062006, + 0x1f065a06, 0x0606fe05, 0x3e063d06, 0xfc052706, 0x60063f06, 0x4d06fb05, 0x22064c06, 0xfa051706, 0xfd051e06, 0x1a06f705, 0x1d063106, 0x6106f605, + 0x09062b06, 0x2f062106, 0x58062e06, 0x23065b06, 0x4e062406, 0x1b064f06, 0x59061c06, 0x57065c06, 0x5d065e06, 0xf8056506, 0x63061806, 0x62060b06, + 0x02060306, 0x01062506, 0x58051906, 0x8f064305, 0x8b058c05, 0x0d060e06, 0x5f059006, 0x5a055c05, 0x23055e05, 0x44065605, 0x43064206, 0x45064706, + 0x14064606, 0x13061206, 0x54065606, 0x11065506, 0x0f061006, 0x5306ff05, 0x51065206, 0x5d056305, 0x91056705, 0x4e059205, 0x51054f05, 0x3d052205, + 0x57052405, 0x9a056405, 0x42055405, 0x8e058f05, 0x48054405, 0x49054a05, 0x65054705, 0x50059505, 0x4d054105, 0x52059305, 0x55055305, 0x99058d05, + 0x45059005, 0x3e053f05, 0x46056605, 0xec069405, 0xed063c07, 0x60074907, 0x61074207, 0x5d074307, 0x5e073f07, 0xe3064007, 0x2d073307, 0xe5063b07, + 0x2b073107, 0xe4063a07, 0x71077707, 0xe6064807, 0x6f077507, 0xea064607, 0x70077d07, 0x7a072e07, 0x76073407, 0xeb064c07, 0x6e077c07, 0x79072c07, + 0x74073207, 0xe8064b07, 0x65074e07, 0x2a073007, 0x51076807, 0xe9063907, 0x66074f07, 0x6d077307, 0x52076907, 0xe7064507, 0x67075007, 0x6c077b07, + 0x78072f07, 0x6b075407, 0x64074d07, 0x72073507, 0x53076a07, 0x58074a07, 0x59073607, 0xff063707, 0x0707f306, 0xfb060807, 0xf006f106, 0x0607f406, + 0xfa060507, 0xf606f706, 0xf806f506, 0xfe06f906, 0xef06ee06, 0x0307f206, 0xfd060407, 0x02070107, 0x0a07fc06, 0x00070907, 0x7f077e07, 0x81078007, + 0x56075707, 0x5b075507, 0x5f076207, 0x3d075a07, 0x41074407, 0x5c073807, 0x3e076307, 0xab064707, 0xa406a306, 0xa606a506, 0xa806a706, 0xaa06a906, + 0xb206b306, 0xb006b106, 0xae06af06, 0xb406ad06, 0xc106c006, 0xac06c206, 0xe106e006, 0xe206df06, 0xde06d106, 0xd206c406, 0xc606c306, 0xc806c706, + 0xcc06c906, 0xcb06ca06, 0xd406d306, 0xd806d506, 0xda06d906, 0xd606db06, 0x2707d706, 0x29072807, 0xc5062607, 0x1d071c07, 0x1f071e07, 0xce06cd06, + 0xd006cf06, 0x95069406, 0x8a068906, 0x91069306, 0xcc049206, 0x0c00cb04, 0x21008200, 0x04823c34, 0x04210282, 0x20048259, 0x2103850d, 0x07824b04, + 0x03852020, 0x824f0421, 0x85212007, 0x6c042103, 0x22200782, 0x04210385, 0x200782ff, 0x21038523, 0x07827f04, 0x03852420, 0x82ec0521, 0x85252007, + 0x48062103, 0x26200782, 0x05200385, 0x27200783, 0x03820b82, 0x06820520, 0x82280021, 0x00292404, 0x82d80400, 0x852a2007, 0x79042103, 0x2b200782, + 0x06200385, 0x2c202f83, 0x03820b82, 0x82630421, 0x852d2007, 0xc5042103, 0x2e200782, 0x04210385, 0x2007825d, 0x2103852f, 0x07828a04, 0x03823020, + 0x00003924, 0x0782ed03, 0x03853a20, 0x82640421, 0x853b2007, 0x69042103, 0xef830782, 0x06210382, 0x200b822d, 0x2003853d, 0x207f8306, 0x820b823e, + 0x2c062103, 0x3f200782, 0x04210385, 0x20078272, 0x21038540, 0x07822505, 0x03864120, 0x07820120, 0x03824220, 0x2f414320, 0x44002105, 0x03830782, + 0x07821420, 0x03864520, 0x07821820, 0x03824620, 0x2f414720, 0x48002105, 0x03830782, 0x07822820, 0x03864920, 0x4a20eb83, 0x03830b82, 0x07823620, + 0x03864b20, 0x07823820, 0x03864c20, 0x07823a20, 0x03824d20, 0x87854e20, 0x824f0021, 0x83038307, 0x82502057, 0x2003830b, 0x20078253, 0x20038251, + 0x20038252, 0x20038255, 0x20038653, 0x2007825a, 0x20038654, 0x831b8661, 0x8266201f, 0x8256200b, 0x82572003, 0x82712003, 0x82582003, 0x82592003, + 0x82772003, 0x865a2003, 0x827d2003, 0x855b2007, 0xdc042103, 0x5c200782, 0x04210385, 0x20078290, 0x2103855d, 0x0782dd04, 0x03855e20, 0x82340621, + 0x855f2007, 0xcd042103, 0x60200782, 0x07210385, 0x830782ae, 0x2003837b, 0x200b828a, 0x20038262, 0x20038263, 0x20038296, 0x20038664, 0x2007829d, + 0x20038665, 0x200782a1, 0x20038266, 0x20038267, 0x200382ab, 0x20038668, 0x200782b1, 0x20038669, 0x200782b4, 0x2003866a, 0x200782c0, 0x2003866b, + 0x200782c3, 0x2003866c, 0x200782c6, 0x2003826d, 0x2003826e, 0x200382cc, 0x2003866f, 0x200782d4, 0x20038670, 0x20ff86e0, 0x20078272, 0x200382e2, + 0x20038673, 0x200782e7, 0x20038674, 0x200782ee, 0x20038675, 0x200782f3, 0x20038276, 0x20038277, 0x200382fe, 0x24038278, 0x01000079, 0x20078204, + 0x2103857a, 0x07820a01, 0x03857b20, 0x82da0421, 0x857c2007, 0x2f052103, 0x7d200782, 0x04210385, 0x200782db, 0x2103857e, 0x07823206, 0x0385a020, + 0x82500421, 0x82ff8307, 0x71042103, 0xa2200b82, 0x05210385, 0x200782ea, 0x210385a3, 0x0782f205, 0x0385a420, 0x82eb0521, 0x85a52007, 0x83052003, + 0x82a6209b, 0x2103820b, 0x07823705, 0x0385a720, 0x82290521, 0x85a82007, 0xac072103, 0xa9200782, 0x05210385, 0x2007822a, 0x210385aa, 0x6b417501, + 0x00ab2406, 0x82fb0400, 0x8227830b, 0x33062103, 0xad200b82, 0x04210385, 0x200782c6, 0x210385ae, 0x07822b05, 0x0385af20, 0x82b70721, 0x85b02007, + 0x2d052103, 0xb1200782, 0x06210385, 0x20078230, 0x200382b2, 0x205382b3, 0x2007822e, 0x200385b4, 0x20378307, 0x820b82b5, 0x40062103, 0xb6200782, + 0x05210385, 0x20078228, 0x210385b7, 0x07827704, 0x0385b820, 0x07830720, 0x0b82b920, 0x04200382, 0xba205f83, 0x03820b82, 0x82760121, 0x85bb2007, + 0xfc042103, 0xbc200782, 0x04210385, 0x2007823b, 0x210385bd, 0x07823804, 0x0385be20, 0x823c0421, 0x85bf2007, 0x83042003, 0x82c0203b, 0x2003830b, + 0x20078206, 0x240386c1, 0x00000002, 0x200386c2, 0x20078204, 0x200386c3, 0x2007820a, 0x200386c4, 0x20078205, 0x200386c5, 0x20078209, 0x200386c6, + 0x2007820b, 0x200386c7, 0x20078211, 0x200386c8, 0x2007821f, 0x200386c9, 0x20078219, 0x200382ca, 0x200382cb, 0x2003821c, 0x200386cc, 0x20078232, + 0x830386cd, 0x82ce20e3, 0x44cf200b, 0x002105d7, 0x830782d0, 0x82152003, 0x86d12007, 0x82452003, 0x86d22007, 0x824c2003, 0x86d32007, 0x82482003, + 0x86d42007, 0x824a2003, 0x86d52007, 0x82512003, 0x86d62007, 0x824b2003, 0x85d72007, 0x28062103, 0xd8200782, 0x4f200386, 0xd9200782, 0x6b200386, + 0xda200782, 0x67200386, 0xdb200782, 0xdc200382, 0x20067b43, 0x830782dd, 0x82792003, 0x86de2007, 0x82542003, 0x86df2007, 0x82ed2003, 0x86e02007, + 0x828f2003, 0x86e12007, 0x438b2003, 0xe2200663, 0x8d200782, 0xe3200382, 0x93200386, 0xe4200782, 0x8e200386, 0xe5200782, 0x92200386, 0xe6200782, + 0x94200386, 0xe7200782, 0x9a200386, 0xe8200782, 0xa8200386, 0xe9200782, 0xa2200386, 0xea200782, 0x13430382, 0x82ec2007, 0x2003830b, 0x830782bb, + 0x20038393, 0x200b82b6, 0x200382ee, 0x055b42ef, 0x82f00021, 0x20038307, 0x2007829e, 0x200386f1, 0x200782d2, 0x200386f2, 0x200782d9, 0x200386f3, + 0x200782d5, 0x200386f4, 0x200782d7, 0x200386f5, 0x200782de, 0x200386f6, 0x200782d8, 0x210385f7, 0x07822906, 0x0386f820, 0x0782dc20, 0x0386f920, + 0xfa201383, 0x03830b82, 0x0782f420, 0x0382fb20, 0x3f86fc20, 0x0782fd20, 0x01210382, 0x065f4406, 0x3b41fe20, 0x82ff2006, 0x24038207, 0x00000801, + 0x830a8201, 0x07002103, 0x08820b82, 0x03820120, 0x82900021, 0x8502200b, 0x03002103, 0x03860782, 0x828c0021, 0x8504200b, 0x83002003, 0x8205203b, + 0x2103820b, 0x07829100, 0x03850620, 0x820f0021, 0x85072007, 0x98002103, 0x27830782, 0x00210382, 0x200b8212, 0x21038509, 0x07829b00, 0x03850a20, + 0x82130021, 0x850b2007, 0x9c002103, 0x0c200782, 0x00210385, 0x20078210, 0x2103850d, 0x07829900, 0x03850e20, 0x82160021, 0x850f2007, 0x9f002103, + 0x27830782, 0x00210382, 0x200b8217, 0x21038511, 0x0782a000, 0x03851220, 0x82200021, 0x85132007, 0xa9002103, 0x14200782, 0x00210385, 0x2007821a, + 0x21038515, 0x0782a300, 0x03851620, 0x821e0021, 0x85172007, 0xa7002103, 0x18200782, 0x00210385, 0x20078221, 0x21038519, 0x0782aa00, 0x03851a20, + 0x821b0021, 0x21038607, 0x0b82a400, 0x03851c20, 0x82250021, 0x851d2007, 0xae002103, 0x1e200782, 0x00210385, 0x20078224, 0x2103851f, 0x0782ad00, + 0x03829f83, 0x82270021, 0x8263830b, 0xb0002103, 0x22200b82, 0x00210385, 0x20078226, 0x21038523, 0x0782af00, 0x03852420, 0x822a0021, 0x85252007, + 0xb3002103, 0x26200782, 0x00210385, 0x20078229, 0x21038527, 0x0782b200, 0x03852820, 0x82350021, 0x821b8307, 0xbf002103, 0x2a200b82, 0x00210385, + 0x20078233, 0x2103852b, 0x0782bd00, 0x03852c20, 0x822e0021, 0x852d2007, 0xb7002103, 0x0f830782, 0x00210382, 0x200b8234, 0x2103852f, 0x0782be00, + 0x03853020, 0x82310021, 0x21038607, 0x0b82b500, 0x03853220, 0x822c0021, 0x85332007, 0xbc002103, 0x3f830782, 0x00210382, 0x200b8237, 0x21038535, + 0x0782c200, 0x03853620, 0x82390021, 0x82372007, 0x45382003, 0x0120051f, 0x03820f83, 0x823b0021, 0x853a2013, 0xc7002103, 0x0f830782, 0x00210382, + 0x200b823d, 0x2103853c, 0x0782c900, 0x03820f83, 0x13830020, 0x0f823e20, 0x00210382, 0x200782c8, 0x2003853f, 0x210f8200, 0x0b824001, 0x00210382, + 0x200782ca, 0x20038541, 0x201f8300, 0x820b8242, 0xcb002103, 0x43200782, 0x00200385, 0x01210f82, 0x820b8244, 0xce002103, 0x45200782, 0x00200385, + 0x01210f82, 0x820b8246, 0xd1002103, 0x47200782, 0x00200385, 0x48203783, 0x03820b82, 0x82d00021, 0x85492007, 0xcf002103, 0x4a200782, 0x00200385, + 0x01213382, 0x820b824b, 0xd3002103, 0x4c200782, 0x00210385, 0x2007824e, 0x2103854d, 0x0782db00, 0x03820f83, 0x82490021, 0x854f200b, 0xd6002103, + 0x50200782, 0x00210385, 0x2007824d, 0x21038551, 0x0782da00, 0x03855220, 0x07830020, 0x0b825320, 0x00210382, 0x200782df, 0x21038554, 0x07825700, + 0x03855520, 0x82e40021, 0x85562007, 0x59002103, 0x57200782, 0x00210385, 0x200782e6, 0x20038558, 0x83078300, 0x2103821b, 0x1382e500, 0x03855a20, + 0x825b0021, 0x21038607, 0x0b82e800, 0x03855c20, 0x825e0021, 0x855d2007, 0xeb002103, 0x0f830782, 0x00200382, 0x5f201383, 0x03820f82, 0x82ea0021, + 0x85602007, 0x5c002103, 0x61200782, 0x00210385, 0x200782e9, 0x21038562, 0x07826400, 0x03856320, 0x82f10021, 0x820f8307, 0x83002003, 0x82652013, + 0x2103820f, 0x0782f000, 0x03856620, 0x37830020, 0x0b826720, 0x00210382, 0x200782ef, 0x21038568, 0x07827000, 0x03856920, 0x82fd0021, 0x856a2007, + 0x6d002103, 0x6b200782, 0x00210385, 0x200782fa, 0x2103856c, 0x07826800, 0x03821b83, 0x82f50021, 0x856e200b, 0x6f002103, 0x03860782, 0x82fc0021, + 0x8257830b, 0x6c002103, 0x71200b82, 0x00210385, 0x200782f9, 0x21038572, 0x07826e00, 0x03857320, 0x82fb0021, 0x85742007, 0x83002003, 0x82752007, + 0x2003830b, 0x20078201, 0x21038576, 0x07827a00, 0x03867720, 0x07820720, 0x03857820, 0x827b0021, 0x85792007, 0x7e002103, 0x7a200782, 0x0b200386, + 0x7b200782, 0x00210385, 0x20078280, 0x2003867c, 0x2007820d, 0x2103857d, 0x07827f00, 0x03867e20, 0x07820c20, 0x03859220, 0x82050521, 0x82c38307, + 0x83002003, 0x82fd2017, 0x2103820f, 0x07829500, 0x0385fe20, 0x82500021, 0x85ff2007, 0xdd002503, 0x18020000, 0x00210385, 0x2007825f, 0x21038519, + 0x0782ec00, 0x03851a20, 0x82650021, 0x851b2007, 0xf2002103, 0x37200782, 0x00210385, 0x200782c1, 0x210385b9, 0x0782cc07, 0x0385ba20, 0x82cb0721, + 0x85bc2007, 0xca072103, 0xc6200782, 0x07210385, 0x200782b1, 0x210385c7, 0x0782b307, 0x0385c920, 0x82b20721, 0x85d82007, 0xb4072103, 0xd9200782, + 0x07210385, 0x200782ad, 0x210385da, 0x0782b507, 0x0385db20, 0x73830720, 0x0b82dc20, 0x07210382, 0x830782b6, 0x250382c3, 0x0000b007, 0x03820003, + 0x00000124, 0x07829b07, 0x03850220, 0x829e0721, 0x82032007, 0x82052003, 0x82a22017, 0x85062007, 0xa0072103, 0x07200782, 0x07210385, 0x2007829a, + 0x21038508, 0x07829907, 0x03850a20, 0x82a10721, 0x850b2007, 0x9d072103, 0x0c200782, 0x07210385, 0x2007829f, 0x2103850f, 0x0782a507, 0x03821320, + 0x5f821420, 0x0782a620, 0x03822620, 0x0b822720, 0x0782a820, 0x03823520, 0x0b823620, 0x0782aa20, 0x03854220, 0x82830721, 0x85452007, 0x84072103, + 0x70200782, 0x02200385, 0x0321d782, 0x830b8271, 0x82502003, 0x85722007, 0xba022103, 0x73200782, 0x51200386, 0x74200782, 0x75230382, 0x83050000, + 0x827620c7, 0x2103820b, 0x0782bb02, 0x03867720, 0x07825220, 0x03867a20, 0x0782e220, 0x03827b20, 0x03827d20, 0x03825320, 0x03857e20, 0x82550421, + 0x857f2007, 0x97022103, 0x87830782, 0x07210382, 0x860b8285, 0x87072103, 0x86200b82, 0x02210385, 0x830782b0, 0x2103820f, 0x0b825404, 0x03828820, + 0x00008a24, 0x0782b102, 0x03858c20, 0x82b40221, 0x828e2007, 0x828f2003, 0x82b52017, 0x86902007, 0x82472003, 0x82912007, 0x82a12003, 0x82982017, + 0x82a32007, 0x82a92003, 0x2103820b, 0x0b82aa03, 0x0b82ab20, 0x0782b720, 0x0382ac20, 0x0382ae20, 0x03824d20, 0x0386af20, 0x07824520, 0x03837b83, + 0x0b824a20, 0xc9206f83, 0x2c200782, 0xca200382, 0x46200386, 0xcb200782, 0x49200386, 0xcc200782, 0x4b200386, 0xcd200782, 0x48200386, 0xce200782, + 0x4c200386, 0xcf200782, 0x02210385, 0x200782c1, 0x200382d0, 0x200382d1, 0x2003825c, 0x200382d2, 0x208f82d4, 0x200782c2, 0x200382d5, 0x200382d6, + 0x2003825e, 0x200386d7, 0x2007825b, 0x210385d8, 0x0782bc02, 0x0386d920, 0x07825620, 0x0385da20, 0x82bd0221, 0x86db2007, 0x82572003, 0x85dc2007, + 0xbe022103, 0xdd200782, 0x58200386, 0xde200782, 0x02210385, 0x200782bf, 0x200386df, 0x20078259, 0x210385e0, 0x0782c002, 0x0386e120, 0x07825a20, + 0x0382f020, 0x0382f320, 0x03826020, 0x0385f420, 0x82c50221, 0x86f52007, 0x82642003, 0x85f62007, 0x08052103, 0xf7200782, 0x02210385, 0x200782c6, + 0x200386f8, 0x20078265, 0x200382f9, 0x058743fa, 0x82fb0321, 0x82fc200b, 0x82662003, 0x82fd2003, 0x43ff2003, 0x04290593, 0x04000000, 0x01000001, + 0x20078282, 0x21038502, 0x0782ab01, 0x03850320, 0x827b0121, 0x85042007, 0xa3012103, 0x05200782, 0x01210385, 0x200782a2, 0x24038206, 0x01000008, + 0x200782a5, 0x20038209, 0x200b820a, 0x200782a0, 0x2103850b, 0x0782a801, 0x03850c20, 0x828b0121, 0x850d2007, 0x88012103, 0x0e200782, 0x01210385, + 0x20078295, 0x2103850f, 0x07829c01, 0x00001024, 0x47821304, 0x07827720, 0x03821420, 0x0b821520, 0x07828020, 0x03821620, 0x0b821920, 0x07828420, + 0x03851a20, 0x828a0121, 0x821b2007, 0x82232003, 0x828c2017, 0x82242007, 0x82252003, 0x8296200b, 0x85262007, 0x99012103, 0x27200782, 0x01210385, + 0x20078298, 0x20038228, 0x20238229, 0x2007829a, 0x2103852a, 0x07829f01, 0x03852b20, 0x829e0121, 0x852c2007, 0x9d012103, 0x2d200782, 0x01210385, + 0x200782a4, 0x2003822e, 0x203b822f, 0x200782a9, 0x24038230, 0x02000033, 0x20078207, 0x20038234, 0x240b8235, 0x04000010, 0x20038236, 0x200b8239, + 0x20078214, 0x2003853a, 0x20af8302, 0x200b823b, 0x20178243, 0x2007821c, 0x20038244, 0x830b8245, 0x824620a3, 0x2103820b, 0x07822902, 0x03854720, + 0x82280221, 0x82482007, 0x82492003, 0x822a2023, 0x854a2007, 0x82022003, 0x4b04217b, 0x03820b82, 0x8b830220, 0x0b824c20, 0x02210382, 0x2007822d, + 0x2103854d, 0x07823402, 0x03824e20, 0x3b824f20, 0x07823920, 0x03825020, 0x0b825120, 0x00001224, 0x03855204, 0x823b0221, 0x85532007, 0x0b022103, + 0x54200782, 0x02200385, 0x0421cf82, 0x820b8255, 0x32022103, 0x56200782, 0x58200382, 0xdb823b82, 0x82590421, 0x825a200b, 0x8230200b, 0x855b2007, + 0x38022103, 0x5c200782, 0x02210385, 0x2007821b, 0x2103855d, 0x07821802, 0x03855e20, 0x82250221, 0x855f2007, 0x2c022103, 0x60200782, 0x01210385, + 0x200782ac, 0x21038561, 0x07823c02, 0x03856220, 0x82ad0121, 0x85632007, 0x3d022103, 0x64200782, 0x01210385, 0x200782ae, 0x21038565, 0x07823e02, + 0x03856620, 0x82af0121, 0x85672007, 0x3f022103, 0x68200782, 0x01210385, 0x200782b0, 0x21038569, 0x07824002, 0x03856a20, 0x82b10121, 0x856b2007, + 0x41022103, 0x6c200782, 0x01210385, 0x200782b2, 0x2103856d, 0x07824202, 0x03856e20, 0x82b30121, 0x856f2007, 0x43022103, 0x70200782, 0x01210385, + 0x200782b4, 0x21038571, 0x07824402, 0x03857220, 0x82b50121, 0x85732007, 0x45022103, 0x74200782, 0x01210385, 0x200782b6, 0x21038575, 0x07824602, + 0x03857620, 0x82b70121, 0x85772007, 0x47022103, 0x78200782, 0x01210385, 0x200782b8, 0x21038579, 0x07824802, 0x03858a20, 0x82890121, 0x858b2007, + 0x19022103, 0x8c200782, 0x02210385, 0x20078201, 0x2103858d, 0x07829102, 0x03858e20, 0x82020221, 0x858f2007, 0x92022103, 0x90200782, 0x01210385, + 0x8307827c, 0x21038227, 0x0b820c02, 0x03859220, 0x827e0121, 0x85932007, 0x0e022103, 0x94200782, 0x01210385, 0x2007827f, 0x21038595, 0x07820f02, + 0x03859620, 0x82b90121, 0x85972007, 0x49022103, 0x98200782, 0x01210385, 0x200782ba, 0x21038599, 0x07824a02, 0x03859a20, 0x82bb0121, 0x859b2007, + 0x4b022103, 0x9c200782, 0x01210385, 0x200782bc, 0x2103859d, 0x07824c02, 0x03859e20, 0x82bd0121, 0x859f2007, 0x4d022103, 0xa0200782, 0x01210385, + 0x200782be, 0x210385a1, 0x07824e02, 0x0385a220, 0x82bf0121, 0x85a32007, 0x4f022103, 0xa4200782, 0x01210385, 0x200782c0, 0x210385a5, 0x07825002, + 0x0385a620, 0x82c10121, 0x85a72007, 0x52022103, 0xa8200782, 0x01210385, 0x200782c3, 0x210385a9, 0x07825302, 0x0385aa20, 0x82c40121, 0x85ab2007, + 0x54022103, 0xac200782, 0x01210385, 0x200782c5, 0x210385ad, 0x07825502, 0x0385ae20, 0x82c60121, 0x85af2007, 0x56022103, 0xb0200782, 0x01210385, + 0x200782c7, 0x210385b1, 0x07825702, 0x0385b220, 0x82c80121, 0x85b32007, 0x58022103, 0xb4200782, 0x01210385, 0x200782c9, 0x210385b5, 0x07825902, + 0x0385b620, 0x82ca0121, 0x85b72007, 0x5a022103, 0xb8200782, 0x01210385, 0x200782cb, 0x210385b9, 0x07825b02, 0x0385ba20, 0x82cc0121, 0x85bb2007, + 0x5c022103, 0xbc200782, 0x01210385, 0x200782ce, 0x210385bd, 0x07825e02, 0x0385be20, 0x82cf0121, 0x85bf2007, 0x5f022103, 0xc0200782, 0xc1240382, + 0xd0010000, 0xc2200782, 0x02210385, 0x20078261, 0x210385c3, 0x0782d201, 0x0385c420, 0x82620221, 0x85c52007, 0xd3012103, 0xc6200782, 0x02210385, + 0x20078263, 0x210385c7, 0x0782d401, 0x0385c820, 0x82640221, 0x85c92007, 0xd5012103, 0xca200782, 0x02210385, 0x20078265, 0x210385cb, 0x0782d601, + 0x0385cc20, 0x82660221, 0x85cd2007, 0xd7012103, 0xce200782, 0x02210385, 0x20078267, 0x210385cf, 0x07826002, 0x0385d020, 0x82d80121, 0x85d12007, + 0x68022103, 0xd2200782, 0x01210385, 0x200782d9, 0x210385d3, 0x07826902, 0x0385d420, 0x82da0121, 0x85d52007, 0x6a022103, 0xd6200782, 0x01210385, + 0x200782db, 0x210385d7, 0x07826b02, 0x0385d820, 0x82dc0121, 0x85d92007, 0x6c022103, 0xda200782, 0x01210385, 0x200782dd, 0x210385db, 0x07826d02, + 0x03822783, 0x82de0121, 0x821b830b, 0x6e022103, 0x0f830b82, 0x01210382, 0x860b82df, 0x6f022103, 0xe0200b82, 0x01200385, 0xe1200783, 0x03820b82, + 0x82700221, 0x85e22007, 0x82012003, 0xe304210f, 0x03820b82, 0x82710221, 0x85e42007, 0x83012003, 0x82e5201f, 0x2103820b, 0x07827202, 0x0385e620, + 0x27820120, 0x82e70421, 0x2103820b, 0x07827302, 0x0385e820, 0x82e40121, 0x85e92007, 0x74022103, 0xea200782, 0x01210385, 0x200782e5, 0x210385eb, + 0x07827502, 0x0385ec20, 0x82e60121, 0x85ed2007, 0x76022103, 0xee200782, 0x01210385, 0x200782e7, 0x210385ef, 0x07827702, 0x0385f020, 0x82e80121, + 0x85f12007, 0x78022103, 0xf2200782, 0x01210385, 0x200782e9, 0x210385f3, 0x07827902, 0x0385f420, 0x82ea0121, 0x85f52007, 0x7a022103, 0xf6200782, + 0x01210385, 0x2007827d, 0x210385f7, 0x07820d02, 0x0385f820, 0x82eb0121, 0x85f92007, 0x7b022103, 0xfa200782, 0x01210385, 0x200782ec, 0x210385fb, + 0x07827c02, 0x0385fc20, 0x82ed0121, 0x85fd2007, 0x83022003, 0x82fe2053, 0x2103820b, 0x0782ee01, 0x0385ff20, 0x007e0225, 0x85000500, 0xef012103, + 0x01200782, 0x02210385, 0x2007827f, 0x21038502, 0x0782f001, 0x03850320, 0x82800221, 0x85042007, 0xf1012103, 0x05200782, 0x02210385, 0x20078281, + 0x21038506, 0x0782f201, 0x03850720, 0x82820221, 0x85082007, 0xf3012103, 0x09200782, 0x02210385, 0x20078283, 0x2103850a, 0x0782f401, 0x03850b20, + 0x82840221, 0x850c2007, 0xf5012103, 0xff820782, 0x03820520, 0x82850221, 0x850e200b, 0xf6012103, 0x0f200782, 0x02210385, 0x20078286, 0x21038510, + 0x0782f701, 0x03851120, 0x82870221, 0x85122007, 0xf8012103, 0x13200782, 0x02210385, 0x20078288, 0x21038514, 0x0782f901, 0x03851520, 0x82890221, + 0x85162007, 0xfa012103, 0x17200782, 0x02210385, 0x2007828a, 0x21038518, 0x0782fb01, 0x03851920, 0x828b0221, 0x851a2007, 0xfc012103, 0x1b200782, + 0x02210385, 0x2007828c, 0x2103851c, 0x0782fd01, 0x03851d20, 0x828d0221, 0x851e2007, 0xfe012103, 0x1f200782, 0x02210385, 0x2007828e, 0x21038520, + 0x0782ff01, 0x03852120, 0x828f0221, 0x85222007, 0x00022103, 0x23200782, 0x02210385, 0x20078290, 0x21038524, 0x0782c201, 0x03852520, 0x82510221, + 0x85262007, 0xcd012103, 0x27200782, 0x02210385, 0x2007825d, 0x21038528, 0x07820302, 0x03852920, 0x82930221, 0x852a2007, 0x04022103, 0x2b200782, + 0x02210385, 0x20078294, 0x2103852c, 0x07820502, 0x03852d20, 0x82950221, 0x852e2007, 0x06022103, 0x2f200782, 0x02240385, 0x14000096, 0x03832782, + 0x82e30321, 0x850a200b, 0xe4032503, 0x801e0000, 0x00210385, 0x20078276, 0x20038581, 0x21838201, 0x0b82821e, 0x00210382, 0x20078273, 0x20038583, + 0x21e38201, 0x0b82841e, 0x00210382, 0x20078275, 0x21038585, 0x07820201, 0x03859e20, 0x82600021, 0x85f22007, 0x7c002103, 0xf3200782, 0x01250385, + 0x1f000009, 0x24038200, 0x03000007, 0x20078268, 0x24038208, 0x0200000f, 0x200782cc, 0x20038210, 0x20178215, 0x20078281, 0x20038218, 0x2017821d, + 0x200782e1, 0x20038220, 0x20178227, 0x20078289, 0x82038228, 0xe90221cf, 0x30200782, 0x37200382, 0xa0201782, 0x38200782, 0x3f200382, 0xfc202f82, + 0x40200782, 0xc34d0382, 0x481f2106, 0x4d200b82, 0x08202382, 0x50200782, 0x57200382, 0xba200b82, 0x59200782, 0x03210385, 0x20078211, 0x2103855b, + 0x07821203, 0x03855d20, 0x82130321, 0x855f2007, 0x14032103, 0xcf820782, 0x82671f21, 0x82ca203b, 0x20b7830b, 0x200b826f, 0x200b8219, 0x20038270, + 0x054b4f71, 0x82721f21, 0x4e73200b, 0x1f2105b3, 0x200b8274, 0x05834e75, 0x82761f21, 0x8277200b, 0x82a8200b, 0x82782007, 0x82792003, 0x82b6200b, + 0x827a2007, 0x827b2003, 0x82c2200b, 0x007c2407, 0x827d1f00, 0x82d2200b, 0x82802007, 0x82872003, 0x8278200b, 0x82882007, 0x508f2003, 0x1f21059b, + 0x200b8290, 0x82178297, 0x981f2103, 0x9f200b82, 0xf4201782, 0xa0200782, 0xa7200382, 0xd8201782, 0x63830782, 0x0b82af20, 0x0b822420, 0x0382b020, + 0xc34fb120, 0xb21f2105, 0x03820b82, 0x8b830320, 0x0b82b320, 0x03210382, 0x20078275, 0x210385b4, 0x07827703, 0x0385b620, 0xc7830320, 0x0b82b720, + 0x03200382, 0xb8208b83, 0xb9200b82, 0xd6206b82, 0xba200782, 0xbb200382, 0xd4200b82, 0xbc200782, 0x02200385, 0xbd207783, 0x03820b82, 0x82890721, + 0x85be2007, 0xe1032103, 0xbf200782, 0x07200385, 0xc020c783, 0x03820b82, 0xbb830720, 0x0b82c120, 0x07210382, 0x20078293, 0x210385c2, 0x07829503, + 0x0385c320, 0x82940321, 0x85c42007, 0x96032103, 0xc6200782, 0x03200385, 0xc7202f83, 0x03820b82, 0xff820320, 0x82c81f21, 0x82c9200b, 0x82e7208f, + 0x82ca2007, 0x82cc2003, 0x82f1200b, 0x85cd2007, 0x8b072103, 0xce200782, 0x07210385, 0x2007828d, 0x210385cf, 0x07828f07, 0x0382d020, 0x0000d324, + 0x0782ab03, 0x0385d620, 0x82aa0321, 0x85d72007, 0xaf032103, 0xdb830782, 0x2382d920, 0x0b820620, 0x0382da20, 0x0b82db20, 0x07820420, 0x0385dd20, + 0x828c0721, 0x85de2007, 0x8e072103, 0xdf200782, 0x07210385, 0x20078290, 0x200382e0, 0x202f82e3, 0x200782c5, 0x200382e4, 0x200b82e5, 0x200782b8, + 0x210385e6, 0x0782c403, 0x0385e720, 0xc3820320, 0x82e81f21, 0x82e9200b, 0x82172023, 0x82ea2007, 0x82eb2003, 0x8215200b, 0x85ec2007, 0x10032103, + 0xed200782, 0xee240382, 0x91070000, 0xef200782, 0x07210385, 0x20078294, 0x200385f2, 0x20c78303, 0x820b82f3, 0xd5032103, 0xf4200782, 0x03210385, + 0x200782d7, 0x210385f6, 0x0782d403, 0x0385f720, 0xa3830320, 0x0b82f820, 0x6b82f920, 0x07820e20, 0x0382fa20, 0x0000fc24, 0x07822103, 0x0385fd20, + 0x82960721, 0x85fe2007, 0x8a072503, 0x07200000, 0x08200382, 0x2105e34d, 0x0b820b20, 0x04210382, 0x20078251, 0x21038512, 0x0782ca04, 0x03821320, + 0x0421bb82, 0x200782c7, 0x21038516, 0x07827e04, 0x03851720, 0x82ce0421, 0x82182007, 0x47192003, 0x20210523, 0x820b821a, 0xf5042103, 0x1c200782, + 0x1d200382, 0x21055347, 0x0b821e20, 0x04200382, 0x2021bb82, 0x820b8220, 0x39052197, 0x22200782, 0x04210385, 0x20078278, 0x21038526, 0x07826b04, + 0x03853020, 0x82490621, 0x20278307, 0x0553473a, 0x82442021, 0x2103820f, 0x07823604, 0x03854a20, 0x82920421, 0x85702007, 0x2c042103, 0x74200782, + 0x79200382, 0x21054f4f, 0x0b827a20, 0x06210382, 0x2007824b, 0x2003857b, 0x20c78306, 0x820b827c, 0x82062003, 0x7d2021ff, 0x7e200b82, 0x2105f748, + 0x0b827f20, 0x01200382, 0x80244383, 0x89200000, 0x18201782, 0x8a200782, 0x06200385, 0x8b207383, 0x03820b82, 0x82150621, 0x858c2007, 0x07062103, + 0x8d200782, 0x8e200382, 0x2105cf49, 0x0b82ac20, 0x05210382, 0x200782ee, 0x210385af, 0x0782ed05, 0x0385b920, 0x82f10521, 0x85ba2007, 0xef052103, + 0xbd200782, 0x05250385, 0x210000f0, 0x21038502, 0x0782e603, 0x03850d20, 0x82e70321, 0x85132007, 0x38052103, 0x7b820782, 0x03822120, 0x82e80321, + 0x20cf820b, 0x21038221, 0x0b823c05, 0x03821920, 0x00001a24, 0x0782e903, 0x03851d20, 0x82eb0321, 0x85222007, 0x2c052103, 0x24200782, 0x03210385, + 0x200782ec, 0x2103852e, 0x07823b05, 0x03825320, 0x6b505420, 0x55212105, 0x5e200b82, 0x3d200b82, 0x5f200782, 0x04210385, 0x20078237, 0x2103858a, + 0x07829705, 0x03858b20, 0x82960521, 0x85902007, 0x7d062103, 0x91200782, 0x06210385, 0x20078277, 0x21038592, 0x07827906, 0x03859320, 0x827b0621, + 0x82942007, 0x00952403, 0x827f0600, 0x85962007, 0x7e062103, 0x97200782, 0x06210385, 0x20078278, 0x21038598, 0x07827a06, 0x03859920, 0x827c0621, + 0x82a92007, 0x82aa2003, 0x8283203b, 0x82b02007, 0x82b32003, 0x8285200b, 0x85de2007, 0x61052103, 0xdf200782, 0x05210385, 0x20078260, 0x200382e4, + 0x202382e5, 0x20078281, 0x210385e6, 0x07828e06, 0x0382e720, 0x1782e920, 0xea20c783, 0x03820b82, 0x00590525, 0x85002200, 0x64062103, 0x02200782, + 0x06210385, 0x20078241, 0x21038503, 0x07820a06, 0x03850420, 0x825f0621, 0x85052007, 0x36062103, 0x06200782, 0x06210385, 0x2007823c, 0x21038507, + 0x07820c06, 0x03850820, 0x82040621, 0x85092007, 0x20062103, 0x0a200782, 0x06210385, 0x20078205, 0x2103850b, 0x07825a06, 0x03823383, 0x821f0621, + 0x850d200b, 0xfe052103, 0x0e200782, 0x06210385, 0x20078206, 0x2103850f, 0x07823d06, 0x03851120, 0x823e0621, 0x85122007, 0x27062103, 0x15200782, + 0x2e820385, 0x17220022, 0x03820b82, 0x82f90521, 0x85192007, 0xfc052103, 0x1a200782, 0x06210385, 0x2007823f, 0x2103851e, 0x07823506, 0x2b243f83, + 0x37060000, 0x34200b82, 0x06210385, 0x20078260, 0x21038535, 0x0782fb05, 0x03853620, 0x824d0621, 0x85372007, 0x4c062103, 0x41200782, 0x06210385, + 0x20078222, 0x20038542, 0x217b8206, 0x0b824322, 0x05210382, 0x200782fa, 0x20038544, 0x20738306, 0x820b8245, 0xfd052103, 0x46200782, 0x05210385, + 0x200782f7, 0x21038547, 0x07821a06, 0x03854820, 0x82310621, 0x85492007, 0x1d062103, 0x4a200782, 0x05210385, 0x200782f6, 0x2103854b, 0x07826106, + 0x0382ab83, 0xc3820620, 0x0f832220, 0x06210382, 0x20178209, 0x21038562, 0x07822106, 0x03856420, 0x822f0621, 0x85652007, 0x2e062103, 0x82200782, + 0x06210385, 0x20078258, 0x21038583, 0x07825b06, 0x03828420, 0x00008524, 0x07822306, 0x03828620, 0x0b828720, 0x07824e20, 0x00008824, 0x0b828922, + 0x07821b20, 0x03858a20, 0x82590621, 0x858b2007, 0x5c062103, 0x9c200782, 0x06210385, 0x2007826d, 0x210385a2, 0x07825706, 0x0385a320, 0x825e0621, + 0x85a42007, 0x5d062103, 0xa5200782, 0x06200385, 0xa6209783, 0x03820b82, 0x82f80521, 0x85a72007, 0x18062103, 0xa8200782, 0x06210385, 0x20078263, + 0x210385a9, 0x07820b06, 0x0385aa20, 0xeb830620, 0x0b82ab20, 0x06210382, 0x20078203, 0x210385ac, 0x07820206, 0x0385ad20, 0x82250621, 0x85ae2007, + 0x01062103, 0xaf200782, 0x06250385, 0x23000019, 0x21038500, 0x07822e05, 0x03850220, 0x82580521, 0x85032007, 0x43052103, 0x04200782, 0x06210385, + 0x2007828f, 0x25038505, 0x00008c05, 0x03850623, 0x828b0521, 0x85102007, 0x50062103, 0xb7820782, 0x03822320, 0x9b820520, 0x82202321, 0x2103820f, + 0x07820e06, 0x03852120, 0x820d0621, 0x85242007, 0x90062103, 0x9f820782, 0x03822320, 0x825f0521, 0x8526200b, 0x5c052103, 0x27200782, 0x05210385, + 0x2007825a, 0x21038528, 0x07825e05, 0x03852b20, 0x825b0521, 0x85872007, 0x23052103, 0x88200782, 0x05210385, 0x83078256, 0x21038293, 0x0b824005, + 0x03859b20, 0x82440621, 0x829c2007, 0x009d2403, 0x82420600, 0x859e2007, 0x47062103, 0x9f200782, 0xa0200382, 0x45201782, 0xa1200782, 0x06210385, + 0x20078214, 0x200382a2, 0x201782a3, 0x20078212, 0x200385a4, 0x205f8306, 0x200b82a5, 0x201782a6, 0x20078254, 0x210385a7, 0x07821106, 0x0385a820, + 0x82100621, 0x85a92007, 0x0f062103, 0xaa200782, 0x05210385, 0x200782ff, 0x210385ab, 0x07825306, 0x0385ac20, 0x82520621, 0x85ad2007, 0x51062103, + 0xce200782, 0x05210385, 0x20078263, 0x250385cf, 0x00005d05, 0x03850024, 0x82670521, 0x82012007, 0x00022403, 0x82910500, 0x82032007, 0x82042003, + 0x824e200b, 0x85052007, 0x82052003, 0x06242147, 0x03820b82, 0x82220521, 0x85072007, 0x3d052103, 0x08200782, 0x05210385, 0x20078224, 0x21038509, + 0x07825705, 0x03850a20, 0x82640521, 0x850b2007, 0x9a052103, 0x0c200782, 0x05200385, 0x2421ef82, 0x820b820d, 0x42052103, 0x0e200782, 0x05210385, + 0x2007828f, 0x2103850f, 0x07828e05, 0x2420ff82, 0x05210382, 0x200b8244, 0x21038511, 0x07824805, 0x03851220, 0x824a0521, 0x85132007, 0x49052103, + 0x14200782, 0x05210385, 0x20078247, 0x21038515, 0x07826505, 0x03851620, 0x82950521, 0x85172007, 0x50052103, 0x18200782, 0x05210385, 0x20078241, + 0x21038519, 0x07824d05, 0x03851a20, 0x82930521, 0x821b2007, 0x001c2403, 0x82520500, 0x851d2007, 0x55052103, 0x1e200782, 0x05210385, 0x2007828d, + 0x2103851f, 0x07829905, 0x03852020, 0x00900525, 0x85212400, 0x45052103, 0x22200782, 0x05210385, 0x2007823f, 0x21038523, 0x07823e05, 0x03852420, + 0x82660521, 0x85252007, 0x46052103, 0x26200782, 0x05230385, 0x6a000094, 0x002206be, 0x0b82ec06, 0x03850120, 0x823c0721, 0x85022007, 0xed062103, + 0x03200782, 0x07210385, 0x20078249, 0x21038504, 0x07826007, 0x03850520, 0x82420721, 0x85062007, 0x61072103, 0x07200782, 0x07210385, 0x20078243, + 0x21038508, 0x07825d07, 0x03850920, 0xa7820720, 0x820a2521, 0x2103820b, 0x07825e07, 0x03850b20, 0x82400721, 0x850c2007, 0xe3062103, 0x0d200782, + 0x07210385, 0x20078233, 0x2103850e, 0x07822d07, 0x03850f20, 0x823b0721, 0x85102007, 0xe5062103, 0x11200782, 0x07210385, 0x20078231, 0x21038512, + 0x07822b07, 0x03851320, 0x823a0721, 0x85142007, 0xe4062103, 0x15200782, 0x07210385, 0x20078277, 0x21038516, 0x07827107, 0x03851720, 0x82480721, + 0x85182007, 0xe6062103, 0x19200782, 0x07210385, 0x20078275, 0x2103851a, 0x07826f07, 0x03851b20, 0x82460721, 0x851c2007, 0xea062103, 0x1d200782, + 0x07210385, 0x2007827d, 0x2103851e, 0x07827007, 0x03851f20, 0x822e0721, 0x85202007, 0x7a072103, 0x21200782, 0x07210385, 0x20078234, 0x21038522, + 0x07827607, 0x03852320, 0x824c0721, 0x85242007, 0xeb062103, 0x25200782, 0x07210385, 0x2007827c, 0x21038526, 0x07826e07, 0x03852720, 0x822c0721, + 0x85282007, 0x79072103, 0x29200782, 0x07210385, 0x20078232, 0x2103852a, 0x07827407, 0x03852b20, 0x824b0721, 0x82338307, 0xe8062103, 0x2d200b82, + 0x07210385, 0x2007824e, 0x2103852e, 0x07826507, 0x03852f20, 0x82300721, 0x20038607, 0x204f8307, 0x820f8231, 0x68072103, 0x32200782, 0x07210385, + 0x20078251, 0x21038533, 0x07823907, 0x0382db83, 0x82e90621, 0x8535200b, 0x4f072103, 0x36200782, 0x07210385, 0x20078266, 0x21038537, 0x07827307, + 0x03853820, 0x826d0721, 0x823f8307, 0x69072103, 0x3a200b82, 0x07210385, 0x20078252, 0x2103853b, 0x07824507, 0x03853c20, 0x82e70621, 0x853d2007, + 0x50072103, 0x3e200782, 0x07210385, 0x20078267, 0x2103853f, 0x07827b07, 0x03854020, 0x826c0721, 0x85412007, 0x83072003, 0x824220df, 0x2103820b, + 0x07827807, 0x03854320, 0x82540721, 0x85442007, 0x6b072103, 0x6f830782, 0x07210382, 0x200b824d, 0x21038546, 0x07826407, 0x03854720, 0x82350721, + 0x85482007, 0x72072103, 0x49200782, 0x07210385, 0x2007826a, 0x2103854a, 0x07825307, 0x03854b20, 0x13830720, 0x0b824c20, 0x07210382, 0x83078258, + 0x21038257, 0x0b823607, 0x03854e20, 0x82590721, 0x854f2007, 0x37072103, 0xdb830782, 0x06210382, 0x200b82ff, 0x21038551, 0x0782f306, 0x03825220, + 0x00005324, 0x07820707, 0x0382b783, 0x82fb0621, 0x8555200b, 0xf1062103, 0x56200782, 0x06210385, 0x200782f0, 0x21038557, 0x0782f406, 0x03827b83, + 0x82060721, 0x826f830b, 0x05072103, 0x5a200b82, 0x06210385, 0x200782fa, 0x2103855b, 0x0782f706, 0x03855c20, 0x82f60621, 0x855d2007, 0xf5062103, + 0x5e200782, 0x5f240382, 0xf8060000, 0x60200782, 0x06210385, 0x200782fe, 0x20038261, 0x20178262, 0x200782ee, 0x21038563, 0x0782f206, 0x03826420, + 0xb3826520, 0x07820320, 0x03856620, 0x82fd0621, 0x82672007, 0x82682003, 0x82012017, 0x85692007, 0xfc062103, 0x6a200782, 0x07210385, 0x2007820a, + 0x2103856b, 0x07820907, 0x03856c20, 0x82000721, 0x826d2007, 0x82702003, 0x827e203b, 0x85712007, 0x83072003, 0x827220eb, 0x2103820b, 0x07825607, + 0x03857320, 0x82550721, 0x85742007, 0x83072003, 0x827520df, 0x2003820b, 0x21ab8207, 0x0b827625, 0x07200382, 0x2521cf82, 0x820b8277, 0x5a072103, + 0x78200782, 0x07210385, 0x2007823d, 0x21038579, 0x07824407, 0x03857a20, 0x82410721, 0x857b2007, 0x38072103, 0x7c200782, 0x07210385, 0x2007825c, + 0x2103857d, 0x07826307, 0x03857e20, 0x823e0721, 0x857f2007, 0x47072103, 0x80200782, 0x06210385, 0x200782ab, 0x24038281, 0x06000088, 0x200782a3, + 0x21038589, 0x0782b306, 0x03858a20, 0x82b20621, 0x858b2007, 0xb1062103, 0x8c200782, 0x06210385, 0x200782b0, 0x2103858d, 0x0782af06, 0x03858e20, + 0x82ae0621, 0x858f2007, 0xad062103, 0x90200782, 0x06210385, 0x200782b4, 0x20038291, 0x206b8293, 0x200782c0, 0x21038594, 0x0782ac06, 0x03829520, + 0x17829f20, 0x0782b520, 0x0382a020, 0x07219782, 0x8307820b, 0x2143821b, 0x0b82e006, 0x0385ae20, 0x82df0621, 0x85af2007, 0xe2062103, 0xb2200782, + 0x07210385, 0x20078220, 0x210385b6, 0x07822107, 0x0385ba20, 0x82240721, 0x85bc2007, 0x22072103, 0x7b830782, 0x07210382, 0x200b8223, 0x210385c4, + 0x07822507, 0x0382c620, 0x8382c720, 0x0782dc20, 0x0385c920, 0x82d10621, 0x85ca2007, 0xde062103, 0xcb200782, 0x06210385, 0x200782c4, 0x210385ce, + 0x0782d206, 0x0385cf20, 0x82c30621, 0x82d02007, 0x82d32003, 0x82c62047, 0x85d52007, 0xcc062103, 0xd6200782, 0xd7200382, 0x4f831782, 0x0b82d920, + 0x0b82db20, 0x25212782, 0x820b82dc, 0xd80621d3, 0xe0200782, 0xe1200382, 0x2b831782, 0x0b82e220, 0x0000e424, 0x07822707, 0x0385e520, 0x82260721, + 0x82e72007, 0x82eb2003, 0x82172017, 0x85ef2007, 0xc5062103, 0xf0200782, 0xf3200382, 0x1c201782, 0xf4200782, 0xf7200382, 0xcd244782, 0x10260000, + 0x12240382, 0x0b050000, 0x20200782, 0x05210385, 0x2007820e, 0x20038230, 0x20178237, 0x2007820f, 0x20038239, 0x820b823c, 0x40262153, 0x03820b82, + 0x821b0521, 0x85422007, 0x82052003, 0x60262153, 0x03820b82, 0x821d0521, 0x85632007, 0x1e052103, 0x65200782, 0x66200382, 0x21058356, 0x0b826a26, + 0x0b826b20, 0x00000924, 0x03851327, 0x82210521, 0x82702007, 0x00712403, 0x82e00400, 0x85a12007, 0xa2062103, 0xe8200782, 0xe9200382, 0x56201782, + 0xbf820782, 0x82f12721, 0x829420b3, 0x82f2200b, 0x82f32003, 0x8289200b, 0x21cb8207, 0x0b82ff27, 0x00009624, 0x0385052b, 0x82930621, 0x82062007, + 0x82072003, 0x00912417, 0x853a2e00, 0xcc042103, 0x3b200782, 0x04250385, 0x300000cb, 0x2003820c, 0x245f820d, 0xe00000de, 0x24038200, 0x07000003, + 0x200782d3, 0x200382a0, 0x200b82a2, 0x200782d7, 0x200382b0, 0x230b82b3, 0xee0000da, 0xee212382, 0x820b820b, 0x82fe202f, 0x25038373, 0x00004c04, + 0x038262ff, 0x0421f382, 0x200782ea, 0x250385fd, 0x01008207, 0x038439d5, 0xe5030026, 0x0df10100, 0x0f200382, 0xcd203b82, 0x6d200782, 0x6f200382, + 0xd0200b82, 0xad200782, 0x00260384, 0x01009805, 0x038410f3, 0x05002608, 0x0004004c, 0x0498ff50, 0x00c60560, 0x00070003, 0x00340028, 0x285a405d, + 0x01050401, 0x0607004c, 0x05070605, 0x088c8280, 0x00080223, 0x08006702, 0x08070600, 0x05006906, 0x05090400, 0x09006904, 0x09030a00, 0x010b690a, + 0x03010103, 0x23068257, 0x005f0103, 0x34080c82, 0x3304044f, 0x222b2d31, 0x16191b20, 0x0c0f1014, 0x0407040a, 0x10111207, 0x2b19060c, 0x21112113, + 0x11211125, 0x23061401, 0x35352622, 0x34353636, 0x06222326, 0x2c0e8407, 0x33363634, 0x15161632, 0x03070614, 0x820a8334, 0x08268209, 0x10045026, + 0xa403f0fb, 0xa801cafc, 0x1f131220, 0x4b2f4a6c, 0x0f1a2f1f, 0x3d1a160b, 0x61562756, 0x78655927, 0x281e1e28, 0x24080383, 0xd2f9c605, 0xfa5e0568, + 0x160402a2, 0xa8161a1a, 0x3b4f4506, 0x060b0b4f, 0x231b131b, 0x3c694110, 0xfe0f7469, 0x222a83f6, 0x822b2b1f, 0x020029d8, 0x00001f00, 0x62059204, + 0x0a28fd82, 0x22402500, 0x0204010a, 0x042bfb82, 0x04010000, 0x02006800, 0x824d3802, 0x390124de, 0x82114e01, 0x05102c00, 0x012b1b09, 0x01230321, + 0x82230133, 0x58033c07, 0xc768f6fd, 0x01fabc01, 0xbcfdd2bd, 0x01d6ae01, 0x05a9fe57, 0x019efa62, 0x82cc02f6, 0xffff215f, 0x07255f85, 0x00260223, + 0x23108201, 0x03bf0706, 0x0621178a, 0x211788ff, 0x178afec3, 0x88280721, 0x82c12017, 0x87002016, 0xe5062147, 0xbc211788, 0x202f8bff, 0x20178829, + 0x21178bbe, 0x1788c206, 0x1787c620, 0x832dfe21, 0x251786ef, 0x01b90707, 0x5f880012, 0x886d0721, 0x8cc4202f, 0x20a78947, 0x341783c5, 0xe8ff0200, + 0xbe040000, 0x0f006205, 0x3b001200, 0x01123840, 0x05374103, 0x0408053e, 0x08006705, 0x08060000, 0x03006700, 0x005f0203, 0x4d380202, 0x01060600, + 0x0101075f, 0x20074941, 0x23008211, 0x1f090910, 0x25054d41, 0x13210721, 0x03841521, 0x21012f08, 0xfe8e0203, 0x01c75c7d, 0x17f9028b, 0x01603afe, + 0x62b2fe6b, 0x15fe5001, 0x370164fe, 0xfe58018c, 0x9a6205a8, 0xfe9a40fe, 0xf6019a2c, 0xbb82d602, 0x07218b85, 0x20bb8223, 0x0563410b, 0x06827a20, + 0x00030023, 0x20a382b4, 0x2ea38241, 0x001d0014, 0x402f0028, 0x0401112c, 0x824c0103, 0x05042419, 0x82670403, 0x5f012498, 0x82010100, 0x0505239d, + 0x33825f00, 0x00392a08, 0x2125214e, 0x0624212e, 0x012b1c09, 0x23020e14, 0x32211121, 0x1415021e, 0x1e070606, 0x26340102, 0x33112323, 0x34133632, + 0x08098626, 0x41043653, 0x62bb9759, 0x630180fe, 0x538eb05d, 0x4b427449, 0xfafe5f91, 0xccbc7a8b, 0x4d367e77, 0xd2db4e81, 0x015b8743, 0x5a98728b, + 0x21620527, 0x5765874f, 0x0d0f4b7b, 0xfa018945, 0x56fe5f70, 0x6303fe67, 0x1dfe2a6d, 0x00006423, 0xff750001, 0x057604e7, 0x31ad827b, 0x03344037, + 0x12000101, 0x01020204, 0x02030113, 0xa7824c03, 0x04610027, 0x3e000001, 0x3cb7824d, 0x03006103, 0x4e033f03, 0x15170001, 0x06080e10, 0x1d011d00, + 0x2b160905, 0x17163201, 0x269b8207, 0x15060622, 0x82161614, 0x374608aa, 0x23060617, 0x35022422, 0x02241234, 0x52bb89cc, 0x4f90406b, 0x6b70b86d, + 0x957171b7, 0xcf416337, 0xeffeab95, 0x1101a3a0, 0x43467b05, 0x6a31357e, 0xf1c7ccf2, 0x7f2e476d, 0x01a45c40, 0x01e8e83f, 0x0000a33e, 0x9b85ffff, + 0x0223072d, 0x000e0026, 0x07070000, 0x8a8500bf, 0x881e2017, 0x00c22217, 0x21178582, 0xcb831bfe, 0x06221786, 0xe182c707, 0x28204789, 0xc1202f88, + 0xfb832f87, 0x88070721, 0x00bd2217, 0x30678281, 0x009d0002, 0x05580400, 0x000c0062, 0x401f0019, 0x0ab3411c, 0x41030321, 0x282908b3, 0x09042421, + 0x14012b1a, 0x08ec8202, 0x21112146, 0x12161632, 0x022e3407, 0x33112323, 0x04023e32, 0xdeb97058, 0x01bbfe6f, 0xbbe87b2f, 0x7647d26e, 0x9593468d, + 0x44738e49, 0xfed7b802, 0x053a95ee, 0xfe913662, 0xd2add7f4, 0xd6fb246a, 0x00d4762e, 0x25000200, 0x6c207782, 0x10397782, 0x33002100, 0x07083040, + 0x01040202, 0x01020501, 0x06060067, 0x03005f03, 0x0c364203, 0x11111122, 0x28297782, 0x11211521, 0x09092411, 0x228b881d, 0x85333523, 0x8205208f, + 0x208c831a, 0x21978535, 0x93856c04, 0x828c8c21, 0xbae92695, 0xfe3bfe6e, 0x249384d0, 0x468e7547, 0x24988693, 0x02907a02, 0x239b8358, 0x21fe9085, + 0xa5209882, 0xfe24a283, 0xffff0045, 0x2c051741, 0x26021e07, 0x00001400, 0xc2070600, 0x820682e0, 0x23b78617, 0x15000602, 0x01221082, 0xc782f000, + 0xc7822220, 0x2f000b24, 0x11832c40, 0x0100022c, 0x05010667, 0x005f0405, 0xc3820404, 0x84020221, 0x033922cd, 0x221d824e, 0x820b000b, 0x111127c9, + 0x2b1b0907, 0xcd831101, 0x07380384, 0xfa01b701, 0x6b0206fe, 0x2303cefc, 0xfec60417, 0x2dfe9d45, 0x9c62059b, 0x63847385, 0x82230721, 0x8218208b, + 0x07062310, 0x178a2dbf, 0x88ff0621, 0x28c32117, 0xbb84178a, 0xc2212f85, 0x20178b2a, 0x202f8828, 0x21178bc1, 0x1788e506, 0x8b29bc21, 0x8807202f, + 0x8cbd2017, 0x88292017, 0x8bbe2017, 0xc2062117, 0xc6201788, 0xfe251787, 0x0522042d, 0x24178662, 0x00b90707, 0x2e608287, 0x000b0101, 0x05460400, + 0x00090062, 0x41264029, 0x0524073b, 0x03040401, 0x2406ff41, 0x02390202, 0x2318824e, 0x11090009, 0x06220082, 0x35411a09, 0x11233406, 0xd1010721, + 0xedfd1302, 0x173b03c6, 0x30fec604, 0x41a5fd9b, 0x2708052f, 0x54000100, 0x3f04e7ff, 0x1e007b05, 0x43404600, 0x0102010b, 0x0205010c, 0x04030117, + 0x0300011c, 0x05004c04, 0x05030400, 0x08059f44, 0x0100617f, 0x004d3e01, 0x61000303, 0x00000106, 0x014e003f, 0x191a1b00, 0x0f141618, 0x0007090d, + 0x071e011e, 0x052b1609, 0x34110022, 0x33363612, 0x07171632, 0x06222326, 0x12101506, 0x11373233, 0x11212723, 0x77020606, 0x60dafefd, 0x8973d3a5, + 0x7b7451b7, 0x6cae629f, 0x7384adb2, 0xd90117ff, 0x0119d75f, 0xb2650166, 0x59b30b01, 0x72784b50, 0xfecef268, 0x3ffdfed9, 0xfd9e9301, 0xff46356a, + 0x25ab85ff, 0x2602ff06, 0xe8822300, 0xc3070623, 0x057b413a, 0x0721c384, 0x21178828, 0x17863cc1, 0x83b8fd21, 0x201788db, 0x831787a8, 0x070721f3, + 0xbd211788, 0x2f2f823b, 0x9d000100, 0x13040000, 0x0b006205, 0x24402700, 0x2d06f574, 0x02010467, 0x064d3802, 0x01010205, 0x97420139, 0x1121260f, + 0x11231121, 0x36058233, 0x4d031133, 0xc6c616fe, 0x02c6ea01, 0x057efd82, 0x02c3fd62, 0x829efa3d, 0x00022658, 0x04000004, 0x3f5782ac, 0x00170013, + 0x0c38403b, 0x05030709, 0x0002040b, 0x6700050a, 0x02000a00, 0x67020a01, 0x06060108, 0x2a08df47, 0x16170000, 0x13001415, 0x87111300, 0x090d2600, + 0x15012b1f, 0x206d8223, 0x26038221, 0x35333523, 0x82211533, 0x01230803, 0x04213521, 0xfec799ac, 0x9999c718, 0xc7e801c7, 0xe80151fd, 0x840418fe, + 0x0209fc8d, 0x037dfd83, 0x82de8df7, 0xa1fe2200, 0x051341d2, 0x0721e384, 0x20fb8228, 0x22108228, 0x82c10706, 0x82002005, 0x00c524fb, 0x84eb0300, + 0x40292cfb, 0x00010426, 0x065f0500, 0x85050501, 0x5f022292, 0x075e4200, 0x200c9543, 0x82ff8215, 0x36058285, 0xfeeb0335, 0xfc2f01d1, 0xfe2f01da, + 0x9b6205d1, 0x9c9cd5fb, 0x839b2b04, 0x0001265c, 0x04e1fe16, 0x285b8231, 0x40270016, 0x02011624, 0x205f8549, 0x845e8f00, 0x06152beb, 0x052b1c09, + 0x1135023e, 0xe2841121, 0x23113508, 0x14112135, 0x07040606, 0xd3c88101, 0x9730fe4f, 0xbfbfe4fd, 0x933c1b04, 0x8ec7fdfe, 0x92da8615, 0xd0fb5003, + 0x30049999, 0x7810fc99, 0x1477b2dc, 0x00ffff00, 0x0721cf84, 0x20e78223, 0x0ceb482b, 0x06211784, 0x481788ff, 0x178407eb, 0x88280721, 0x82c12017, + 0x21478835, 0x1788e506, 0x8507eb48, 0x8807202f, 0x48bd2017, 0x178506a3, 0x17882920, 0x84070349, 0xc2062117, 0x03491788, 0xfec52607, 0x05eb032d, + 0x21178862, 0x78829bb9, 0xa78abf87, 0x2405eb48, 0xff860001, 0x3f2f83e8, 0x2f001200, 0x01092c40, 0x01080201, 0x4c020100, 0x03020200, 0x0301045f, + 0x004d3803, 0x61000101, 0x3f224482, 0x05824e00, 0x00123c08, 0x25241312, 0x2b190905, 0x0e141101, 0x27222302, 0x33161637, 0x11353632, 0xeb033521, + 0x87ba7132, 0x5655abd6, 0x9a894091, 0x620565fe, 0xae5c6efc, 0x817e528c, 0x9eb12638, 0x829ded02, 0x236f8287, 0x28070b04, 0x36209f82, 0x06234d82, + 0x8264c107, 0x02003206, 0x0000c300, 0x62059c04, 0x09000300, 0x1a401d00, 0x08858207, 0x024c013f, 0x38010101, 0x0001034d, 0x4e003900, 0x10111212, + 0x2b1a0904, 0x33112321, 0x01330113, 0x89012301, 0x020ac6c6, 0xfefddf04, 0x05f22802, 0x027efd62, 0xfd8bfd82, 0xff000013, 0xfdc300ff, 0x824f83b8, + 0x84382067, 0x26bb2167, 0x00200682, 0x67824f82, 0x67823820, 0x1f000524, 0x12821c40, 0x0223df84, 0x42010360, 0x05390790, 0x11110500, 0x2b180904, + 0x11331121, 0x01010721, 0x167002c7, 0x4afb6205, 0x205784ac, 0x213f8377, 0x57822307, 0x3d823a20, 0xbf070724, 0x178311ff, 0xa3820120, 0x05380423, + 0x23178677, 0x4cba0706, 0xff231e82, 0x820101ff, 0x886f8287, 0x44bb2017, 0x2f860563, 0x17856220, 0x07070137, 0xfd5701ad, 0xb1090061, 0xfdb80101, + 0x2b35b061, 0x00010000, 0x206b8247, 0x30ab823a, 0x402c000d, 0x08090a29, 0x02030407, 0x00010801, 0x905b8301, 0x000d24b8, 0x8515150d, 0x270722b8, + 0x22bc8237, 0x83051725, 0x6f0329c0, 0x01c7bc4d, 0x75fe503b, 0x022dc882, 0x747b450c, 0xd0fdac02, 0xfef579c3, 0x83d28225, 0x82392067, 0x82772067, + 0x00142a67, 0x132b402e, 0x0103070a, 0x2e628203, 0x03000301, 0x05800001, 0x03030204, 0x41024d38, 0xd4820584, 0x00142c08, 0x16161114, 0x1a090611, + 0x2313012b, 0x36262603, 0x03230337, 0x07061616, 0x21132303, 0x29041313, 0x0527ba4e, 0xdc020104, 0x8203ecba, 0x2120084a, 0x01014eb6, 0x6205cad4, + 0xbb029efa, 0x30a1c262, 0xbb0345fc, 0x5ac5a82e, 0x620545fd, 0xa70359fc, 0x2b455382, 0x00112909, 0x0a214024, 0x01000201, 0x0807fe41, 0x02030421, + 0x00390000, 0x0000004e, 0x16110011, 0x09051611, 0x01212b19, 0x1115021e, 0x01211123, 0x8235022e, 0x032408eb, 0x022ffe07, 0x01b40c0d, 0x02d60107, + 0x04b40b0e, 0xdba923ab, 0x0569fd6d, 0x2252fb62, 0x027cda9f, 0x009efa97, 0x26075b48, 0x02230713, 0x82410026, 0x07062350, 0xc74404bf, 0x881e200b, + 0x82c22017, 0x252f84ef, 0x1304b8fd, 0x17886205, 0x2e82bb20, 0x06214788, 0x201788ff, 0x201783c5, 0x21c78200, 0x2f8352fe, 0x001f0025, 0x84354038, + 0x011828c7, 0x01170004, 0x42030403, 0x063006ce, 0x00000205, 0x04004d39, 0x00610304, 0x033d0303, 0x1f24d983, 0x23251f00, 0x0722db82, 0xdb901b09, + 0x23061424, 0x66432622, 0x8f352007, 0x8da72ae9, 0x4a267250, 0x3a313f23, 0x2af4923f, 0x309f9f2e, 0x19147e1d, 0x437d4d46, 0x552b0567, 0x5b04e7ff, + 0x0f007b05, 0x4a001b00, 0x87470673, 0x05e6430a, 0x26252423, 0x07734a23, 0x023c7a82, 0x36123435, 0x12163233, 0x23021007, 0x10110222, 0x12323312, + 0xe5745b04, 0x74e5aaaa, 0x2d080585, 0xa5a58fcf, 0xa5a1938f, 0xd2b0028f, 0xb1b5befe, 0xd3d64001, 0xb2b74301, 0x01d7befe, 0xfe1a0110, 0xfef0fee4, + 0x01e9fef1, 0xff000019, 0x838400ff, 0x02230725, 0x45470026, 0x17840c4b, 0x88ff0621, 0x074b4517, 0x07211784, 0x45178828, 0x1784074b, 0x88e50621, + 0x074b4517, 0x07211784, 0x45178829, 0x17850733, 0x17887f20, 0x8259c021, 0x218f877e, 0x1788c206, 0x82ffc621, 0x03002117, 0x2108a782, 0x065b0424, + 0x00170046, 0x0027001f, 0x0547404a, 0x00020202, 0x1d1e2223, 0x11020304, 0x0301020e, 0x09824c03, 0x104a0028, 0x4901020f, 0x1c820105, 0x0807c64c, + 0x01030356, 0x01010061, 0x194e013f, 0x26000118, 0x191f1824, 0x000b0d1f, 0x06170117, 0x012b1609, 0x17371732, 0x15121607, 0x23060214, 0x27072722, + 0x35022637, 0x17361234, 0x10110222, 0x01260117, 0x16012710, 0x02123233, 0x3f3b4258, 0x7a764ba2, 0x41aae574, 0x49a23f3a, 0x3d080984, 0x016b90a5, + 0x02012926, 0x29d9fe6a, 0x058fa633, 0x2bda0f7b, 0xbafe56f4, 0xbefed2db, 0x2cd10eb5, 0x450155ea, 0x4301d3da, 0xe4fea1b7, 0xa0fef0fe, 0x0bf80377, + 0x6701d6fd, 0x0b06fc76, 0xef841801, 0x0721d782, 0x20ef8223, 0x1c7f414f, 0x35052346, 0xff010002, 0x05cc04e7, 0x0019007b, 0x4bc40025, 0x585013b0, + 0x684e2340, 0x080b2207, 0x37f68302, 0x00020a01, 0x094d3e00, 0x06050501, 0x06010761, 0x4e063906, 0x15b04b1b, 0x38202a82, 0x0a212a8e, 0x84298301, + 0x06a24e37, 0x5f213584, 0x84348200, 0x61072a40, 0x3f070700, 0x401b4e07, 0x243a8833, 0x00080801, 0x4e398561, 0x06200cda, 0x00223685, 0x35870909, + 0x59592008, 0x1a1b1f40, 0x1f210001, 0x251b251a, 0x10111315, 0x0a0b0e0f, 0x04050809, 0x19000203, 0x410c1901, 0x212b057f, 0x16162107, 0x21152117, + 0x84070606, 0x05d94205, 0x22175508, 0x16101102, 0x11123233, 0xab010210, 0x7b024b4c, 0x332dfe17, 0x2801083e, 0x4305d8fe, 0xfd010239, 0x29452370, + 0xd8d3d1d9, 0x71716d75, 0x056b6e77, 0x429a197b, 0xa89aa2dc, 0x0b9a47e5, 0x0169010e, 0x0159015e, 0xfdfe9c74, 0xd3fed2fe, 0x010101ff, 0x012e012d, + 0x0038f182, 0xd6000200, 0x60040000, 0x0b006205, 0x23001500, 0x04002040, 0x04010000, 0x3a0c4950, 0x01390101, 0x2124214e, 0x09052311, 0x14012b1b, + 0x23230606, 0x21112311, 0x4f070432, 0x2608079f, 0x89600436, 0xc7ac9cf2, 0x01fc6d01, 0x89afd221, 0x8e5cb6b9, 0xa1b70351, 0x09fe5ac5, 0xdcd16205, + 0xcafd7c98, 0x83007e34, 0x82c7206f, 0x825e206f, 0x000d386f, 0x40340017, 0x07000031, 0x00050401, 0x05006704, 0x05020100, 0x47066701, 0x023f05df, + 0x4e023902, 0x00000e0f, 0x170e1012, 0x0d00170f, 0x25110d00, 0x19090821, 0x3315012b, 0x84150432, 0x15330885, 0x23011123, 0x36323311, 0x26343536, + 0xfeb88d01, 0xef871b01, 0x01c6be9d, 0x5bcecb91, 0x05aa4e8a, 0xe0d5e762, 0xfd5ecaa1, 0x80fe6205, 0x8235b6fd, 0x83869a73, 0xfe573d83, 0x05ae04a6, + 0x0016007b, 0x402a0022, 0x00010327, 0x074c0103, 0x49000206, 0x01020200, 0x21137a44, 0xee4e042a, 0x16072605, 0x2e071716, 0x18804402, 0x7f5a2c08, + 0x33ab949f, 0x9c692ac4, 0x70dca177, 0xaaa9e573, 0x8fce73e5, 0x938ea5a5, 0x028fa5a0, 0xb9fed9b0, 0x9a921c57, 0x4b916a4b, 0x443e01ae, 0xa383188e, + 0x0000bd26, 0x62058504, 0x1633f882, 0x28402b00, 0x05010103, 0x05004c01, 0x05000100, 0x4d006701, 0x02200812, 0x25050247, 0x11212421, 0x45511411, + 0x07062a05, 0x23012301, 0x21112311, 0x09a14120, 0x3b043008, 0x91018abd, 0xab95feeb, 0x016f01c7, 0xd30c0103, 0xbbb99893, 0xdb039b8e, 0xfd24bd9b, + 0xfd4502a1, 0xc56205bb, 0xfe707fc2, 0x00007512, 0x8400ffff, 0x2307257f, 0x56002602, 0x850c8f43, 0x881e2017, 0x82c22017, 0x212f841d, 0xaf83b8fd, + 0xbb201788, 0x00329882, 0x4d000100, 0x3b04e7ff, 0x2c007b05, 0x29402c00, 0xc747081f, 0x821e2005, 0x004b2981, 0x61020303, 0x3e020200, 0x220bcd49, + 0x45252e25, 0x062006e6, 0x280a6146, 0x26343536, 0x022e2726, 0x05b15435, 0x08067251, 0x16141554, 0x021e1716, 0xe5793b04, 0x57f89ea3, 0x7cba4871, + 0x33558b51, 0xc78c7380, 0x86ce7669, 0x6e57d991, 0x6e57a94a, 0x80933e9a, 0x016eb76f, 0x69b97881, 0x437f5460, 0x516b354e, 0x22465b40, 0x6d956929, + 0x545ca36b, 0x3b417c4d, 0x513a615f, 0x5f212644, 0xcb8300a1, 0xfb84b384, 0xfb855a20, 0x06820f20, 0x85ffff21, 0x830720cb, 0x211785fb, 0x17860cc2, + 0x831bfe21, 0x85fb82e3, 0xfac72117, 0x28202f8b, 0xc1201788, 0xfd212f87, 0x202f8cb8, 0x2d2f83bb, 0x85000100, 0x9104f3ff, 0x26008705, 0xd1443c01, + 0x03153705, 0x1b000401, 0x0404051a, 0x01100403, 0x010f0302, 0x4c040201, 0x1791401b, 0x17820520, 0xb04b5932, 0x4058500a, 0x0403001f, 0x02030402, + 0x04040080, 0x3105c54e, 0x02004d3e, 0x05610102, 0x39010101, 0x4b1b4e01, 0x269f0cb0, 0x26843f20, 0x269f1020, 0x13204d85, 0x4d85269f, 0xa2451720, + 0x229b9105, 0x85390505, 0x850020a0, 0x2340219f, 0x258bc193, 0x59205082, 0x40330083, 0x23000113, 0x191d1f22, 0x0d121418, 0x0126000b, 0x53090726, + 0x15250594, 0x15161601, 0x0b434214, 0x34355508, 0x01352726, 0x22232626, 0x23111506, 0x02363411, 0x6ff69440, 0xe3d2a3fe, 0x4d80c671, 0x203b2a7a, + 0x8b75364d, 0x5a01d0cc, 0x7d5a9b47, 0x05e6c285, 0x6a3a5087, 0xc11982fe, 0x5fb581b3, 0x0c85161b, 0x8b807e11, 0x017d0c86, 0x83291f84, 0x032dfc8d, + 0x00dfc8d3, 0x01340082, 0x00004a00, 0x62056704, 0x21000700, 0x03041e40, 0x02010102, 0x20068555, 0x06244a00, 0x0700072a, 0x05111111, 0x012b1909, + 0x21357b82, 0x02072135, 0x58fec6b8, 0x04151d04, 0x0443fbbd, 0x00a5a5bd, 0x31478900, 0x402f000f, 0x0001042c, 0x05020708, 0x67050006, 0x51890103, + 0x39060624, 0x75824e06, 0x0f000f22, 0x02835182, 0x1d090927, 0x2135132b, 0x82558311, 0x21152105, 0xf1226182, 0x5d840101, 0x0166fe38, 0xc6fdfe03, + 0x018fb002, 0xfea5a57e, 0x50fd8f82, 0x0000b002, 0xb385ffff, 0x021e0725, 0x82610026, 0x0706224d, 0x060f57c2, 0x1bfe4a22, 0x1788cb83, 0x8213c721, + 0x212f831e, 0x178cb8fd, 0x2f83bb20, 0x8724b382, 0x2904e7ff, 0x1120fb82, 0x3824fb88, 0x0202004d, 0x9d4d5584, 0x00112505, 0x24142211, 0x9141fb85, + 0x262a0805, 0x11331135, 0x11202110, 0x71290411, 0xd09291d1, 0x0901c66d, 0x62050b01, 0xd68c5ffc, 0x8cd67878, 0x6efca103, 0x4401bcfe, 0xab849203, + 0x07216384, 0x20938223, 0x0c8b4466, 0x06211784, 0x491788ff, 0x1784079b, 0x88280721, 0x079b4917, 0x06211784, 0x491788e5, 0x1784079b, 0x88290721, + 0x079b4917, 0x7f201785, 0x9b491788, 0x21178407, 0x1788c206, 0x174fc620, 0xfe872606, 0x0529042d, 0x21178862, 0x3b41d8b9, 0x212f8405, 0x17886d07, + 0x2f87c420, 0x04e7ff23, 0x48bf8a29, 0x013405db, 0x00002900, 0x62058704, 0x15000600, 0x01021240, 0x4d380000, 0x3d051a43, 0x03111111, 0x252b1909, + 0x23013301, 0x5c023301, 0xfec96201, 0x3dfed83d, 0x9304cfd5, 0x31829efa, 0x07000122, 0xa9203b82, 0x0c3c0982, 0x2b402e00, 0x0303080b, 0x4c010300, + 0x00020300, 0x80000302, 0x02020405, 0x014d3802, 0x2508374d, 0x120c000c, 0x374d1211, 0x23032205, 0x22028203, 0x82131333, 0xa9043f02, 0x9795f6ca, + 0x83c3bafc, 0x9595e09d, 0x9efa6205, 0xf9fb0704, 0x6bfb6205, 0x0bfcf503, 0xd7859504, 0x07216b84, 0x20d78223, 0x0c974172, 0x28201785, 0x7f411788, + 0x21178407, 0x1788e506, 0x84077f41, 0x29072117, 0xbe211788, 0x234e82ff, 0x35000100, 0x7b20cb82, 0x0b2dcb82, 0x1d402000, 0x0205080b, 0x01000204, + 0x21bd834c, 0x1c4f4d38, 0x12122b06, 0x09041012, 0x33132b1a, 0x02820101, 0x01232708, 0x59012301, 0x011f01e0, 0x7dfed521, 0xfee0b001, 0xd5b6feb9, + 0x6205aa01, 0x0302fdfd, 0x18fd86fd, 0xa1fd5f02, 0x5f85de02, 0x5f822520, 0x5f828b20, 0x1d000828, 0x03061a40, 0xe04d0300, 0x4f208209, 0x032005de, + 0x8306b343, 0x02333b5d, 0x31fec8bc, 0x015c01db, 0x1102cf60, 0x0f02effd, 0x5efd5303, 0xff00a202, 0x4b8400ff, 0x82230721, 0x417820c3, 0x0920050b, + 0x22091f56, 0x8828078b, 0x06c12117, 0x0621178a, 0x211788e5, 0x178a05bc, 0x88290721, 0x83be2017, 0x01002317, 0xab828400, 0xab822a20, 0x2900092c, + 0x01092640, 0x01040302, 0x13510001, 0x051c5706, 0x01000023, 0x0626425f, 0x3d069550, 0x21072125, 0x35210135, 0x63011521, 0xfc17c702, 0xfdcd0271, + 0xa85d037b, 0x1f049ea8, 0x6f859fa5, 0xb7845784, 0xb7857d20, 0x178b2620, 0x87821e20, 0xc2211785, 0x20178b23, 0x21178807, 0x178522bd, 0xe7ff7526, + 0x38077604, 0x22084f58, 0x4ec800c9, 0x17830adb, 0x2105db4e, 0x2f8547c9, 0x8305f74c, 0x23108317, 0x46c90706, 0x830b3347, 0x054b4717, 0x8b52c921, + 0x85178377, 0x69c9218f, 0x002d1782, 0xff5bfc01, 0x05f703e7, 0x00170062, 0x0533477e, 0x01070a2c, 0x01080400, 0x4c020001, 0x0c86401b, 0x0c820520, + 0x1e855920, 0x03001f25, 0x5a000400, 0x0627058d, 0x0601075f, 0x824d1a06, 0x051d4749, 0x4e012023, 0x05464c1b, 0x0522218f, 0x26851b05, 0x01010022, + 0x59222582, 0x34820f40, 0x1700172f, 0x13111111, 0x07082325, 0x11012b1c, 0x09ff5914, 0x11352622, 0x08078a45, 0x5e700222, 0x29552f4a, 0x53842c32, + 0x71fbaf95, 0xedfd1302, 0xfb6205c6, 0x133f4cae, 0x22178911, 0xa80391a6, 0x8206ad56, 0xfb012251, 0x22cf869a, 0x896f0015, 0x8b0220cf, 0x200c82cf, + 0x2acf8903, 0x02010418, 0x065f0502, 0x86050501, 0x010321c8, 0x1b22a284, 0x1a8c1c40, 0x8e030321, 0x820e20c1, 0x0015226f, 0x22c08415, 0x921b0707, + 0x112323c0, 0xbe8c3521, 0xc658fc24, 0xbc8d58fe, 0x43fb9f25, 0x82a5bd04, 0x003b084a, 0xff7e0002, 0x041b04e7, 0x001f0037, 0x40440029, 0x02011941, + 0x01011803, 0x02072302, 0x03040504, 0x04040002, 0x0001004c, 0x05010405, 0x02020067, 0x03006103, 0x064d4103, 0x46040401, 0x2138072d, 0x20242620, + 0x25292129, 0x07292423, 0x252b1a09, 0x07171614, 0x06272626, 0x2305ae5e, 0x35333324, 0x0805be5e, 0x36362758, 0x15163233, 0x37363201, 0x06222335, + 0xc8031415, 0x482d2b28, 0xae39196b, 0x01b89f66, 0x8199f101, 0x518f3573, 0x4eb46131, 0x43fecbcb, 0x8c2c8949, 0x3ff28ca7, 0x09840e39, 0x4a4a4644, + 0xb1a493b4, 0x1a5c6d50, 0x20258c1c, 0x9afda0ba, 0x71ff444c, 0x0000bc62, 0xc385ffff, 0x02460625, 0x828a0026, 0x070623d4, 0x0682f0af, 0x1c201788, + 0xb4201788, 0x3320178c, 0xb1201788, 0x0521178b, 0x201788f4, 0x202f8cac, 0x20178835, 0x202f8cae, 0x201788d1, 0x251787b7, 0x1b0415fe, 0x17853704, + 0x07070132, 0xffcd00b9, 0xb10900e8, 0xffb80102, 0x2b35b0e8, 0x7c20b389, 0xb5203b88, 0x0e206b8c, 0xb6201788, 0x7e081783, 0xf4ff0300, 0xbb04e7ff, + 0x2d003704, 0x41003400, 0x63406600, 0x00060125, 0x0502242b, 0x0c133f06, 0x0d010203, 0x04020301, 0x0005004c, 0x0a05010a, 0x00090069, 0x01090201, + 0x02080d67, 0x61000606, 0x00020c07, 0x0b4d4100, 0x03020201, 0x03010461, 0x4e033f03, 0x00012e2f, 0x35373b3d, 0x342e3132, 0x2729342f, 0x1b1d2022, + 0x0f111517, 0x0506080a, 0x2d012d00, 0x2b16090e, 0x15123201, 0x5d210714, 0xd7410a24, 0x41362008, 0x172e0ed7, 0x22173636, 0x26210706, 0x22230126, + 0x57431506, 0x26750805, 0xb5630326, 0xeffd04a3, 0x3966680e, 0x3b543159, 0x946b5888, 0x64823e37, 0xd2d7a48c, 0x34575f59, 0x44324058, 0x7a73438a, + 0x5b841f1f, 0x010c5655, 0xfe490365, 0x69894e37, 0x5d403f4c, 0x040b0b2e, 0xf4ebfe37, 0xa3ad2837, 0x307a2528, 0x655e5e3b, 0xa593b457, 0x626d50b0, + 0x1f871d19, 0x4f4d5d25, 0xb792955b, 0x64fea6a3, 0x635f5e70, 0x71345759, 0xff000000, 0x052b41ff, 0x02460625, 0x82940026, 0x07062310, 0x06820faf, + 0x0002002f, 0x04e7ffbf, 0x00dd0531, 0x001e0011, 0x05a9437b, 0x1b1c1133, 0x04030300, 0x0301010d, 0x10114c02, 0x1b4a0002, 0x20138840, 0x44138702, + 0x17210687, 0x06f64200, 0x054d4131, 0x01030301, 0x01010261, 0x4e013f01, 0x891b401b, 0x02002319, 0x1e863902, 0x3205b851, 0x130e4059, 0x12171912, + 0x121e131e, 0x09062226, 0x61012b19, 0x062a08c3, 0x07272223, 0x13371123, 0x25433632, 0x113c0806, 0x7f011616, 0x8c599738, 0xba6050ae, 0x0c66b588, + 0x7ce1c0a9, 0x52727987, 0x7428297e, 0x534a9a03, 0xa0a7f789, 0x6b848ffa, 0xfa17c605, 0xcdcdc5a1, 0xfe3f63c3, 0x00463c02, 0xb0000100, 0x1129df82, + 0x19003704, 0x34403700, 0x2ad18211, 0x00020312, 0x01010403, 0x824c0300, 0x610221e5, 0x41239b82, 0x8201044d, 0x0654522b, 0x15000135, 0x080e1013, + 0x01190006, 0x16090519, 0x3632252b, 0x82061737, 0x26262195, 0x5b05b74d, 0x3108052a, 0x02161415, 0x3a854da9, 0x62c3465c, 0x7776e19f, 0x98cea0e2, + 0x8485855b, 0x3389a9a8, 0x473a7d29, 0xa0a5f688, 0x7d7c92fb, 0xcdccc45c, 0x000000b4, 0x8b85ffff, 0x02340625, 0x82970026, 0x07062f6e, 0x00ee58af, + 0x0101b109, 0xb0eeffb8, 0x238b2b35, 0x23882120, 0x2393b320, 0x041bfe22, 0x2385d382, 0x07060024, 0x3b954eb8, 0x3b93b120, 0x04e7ff25, 0x88040611, + 0x8fad205f, 0x00220823, 0xff7f0002, 0x05f103e7, 0x001000dd, 0x4061001d, 0x03011011, 0x041a1b02, 0x02030403, 0x0200014c, 0x26424a02, 0x05172205, + 0x06f94e01, 0x004d4126, 0x61000404, 0x22068e49, 0x8b1b401b, 0x00002219, 0x201e8339, 0x065d4101, 0x0e405936, 0x16181112, 0x1d121d11, 0x06122226, + 0x012b1909, 0x27231117, 0x430c5e41, 0x3408082b, 0x03262611, 0x10a9c031, 0xb188ba70, 0x83b96356, 0x7ce169aa, 0x53747b87, 0x73292979, 0xfa17dd05, + 0x8ba0873a, 0xf9a0a4f8, 0xc61f7890, 0x5fc4cbcc, 0x3c030240, 0x05d74243, 0xe7827d20, 0x1306313d, 0x30002100, 0x30403300, 0x0102011d, 0x20214c01, + 0x08090a0b, 0x09010405, 0x82004a01, 0x010326ca, 0x03006902, 0x07b64503, 0x292d2f33, 0x13191b27, 0x16090411, 0x2637012b, 0x16372726, 0x054c5416, + 0xf04b1120, 0x06b84f07, 0x07241b82, 0x27263401, 0x0805864d, 0x3316145d, 0x45013632, 0x426f309a, 0x3e955729, 0xb5796f8c, 0x93d977a9, 0x767dd381, + 0x976472c2, 0x5c831d39, 0x02a40195, 0x5b963103, 0x76959c6a, 0x67049b87, 0x0d2216a1, 0x1f2e1290, 0x7b7d6195, 0xe4fe75fe, 0x748afaa8, 0xdd949edd, + 0x7b40447b, 0xfd9a43c3, 0x204124ee, 0xaea14c49, 0x82cdb2ae, 0xffff23cf, 0xcf824200, 0xdd05e537, 0x9d002600, 0x070100c3, 0x1002ba07, 0x08006400, + 0xb00102b1, 0x053c4264, 0x83000221, 0x828d20f3, 0x00183623, 0x40ab0025, 0x07011211, 0x06222304, 0x02070803, 0x0217184c, 0x06b74100, 0x0105232d, + 0x5f000101, 0x00000106, 0x82094d38, 0x61042b4a, 0x41040400, 0x0808004d, 0x8e4a6102, 0x4b1b2706, 0x585017b0, 0x2a972740, 0x39020222, 0x03202f83, + 0x22064e62, 0x8225401b, 0x232c824e, 0x67010004, 0x278e528b, 0x4059593a, 0x20191a12, 0x1a25191e, 0x26121125, 0x10111122, 0x2b1d090a, 0x23153301, + 0x210e0342, 0x01822135, 0x42011721, 0xef260c09, 0x10a99e9e, 0x0a42b971, 0xb9fe2607, 0xfec04701, 0x0910425f, 0xfb8e3823, 0x08104256, 0xa58eeb25, + 0x42dafd17, 0x02300b15, 0xe7ff9200, 0x37041f04, 0x1f001800, 0x3d404000, 0x0333b282, 0x00010107, 0x05004c02, 0x00030106, 0x07670305, 0x44040401, + 0x00200612, 0x29091144, 0x0000191a, 0x1f191c1d, 0x3a821f1a, 0x25261828, 0x19090822, 0x0146012b, 0x0619440b, 0x14151224, 0xb4820706, 0x21074108, + 0x5a012626, 0x4f77ad08, 0x4a574484, 0xdd9e68c2, 0x91d27373, 0x0202ebcc, 0x94714ffe, 0x030c020b, 0xaece0185, 0x792e309e, 0xf88b453b, 0x90fa9fa4, + 0x1bf2e9fe, 0xd3011332, 0xa7a0a7a0, 0xffff0000, 0x0625ab85, 0x00260246, 0x238982a1, 0x14af0706, 0x17880682, 0x17881c20, 0x178cb420, 0x17883320, + 0x1796b320, 0x178bb120, 0x88f40521, 0x8cac202f, 0x8816202f, 0x8cad2017, 0x88352017, 0x8cae2017, 0x88d12047, 0x83b72017, 0x002f0817, 0xfe920002, + 0x041f042d, 0x00290037, 0x407c0030, 0x0001060c, 0x07131c04, 0x02000103, 0x19b04b4c, 0x27405850, 0x01040000, 0x80010004, 0x82070600, 0x04062707, + 0x05010867, 0x4c490305, 0x01002d05, 0x00620201, 0x023d0202, 0x24401b4e, 0x00202990, 0x01224682, 0x30896602, 0x594e052e, 0x2a2b1540, 0x2d2e0000, + 0x302b302a, 0x29277582, 0x222b252a, 0x411a0909, 0x072209a7, 0x8247020e, 0x06072106, 0x21058749, 0x89532637, 0x14b74106, 0x64755932, 0x3d332568, + 0x13243620, 0x74263a1d, 0xe5d5ba89, 0x3416c441, 0x4c2b2148, 0x332d2447, 0x078e0707, 0x9a597408, 0x2b011255, 0x10d441e8, 0xb6000122, 0x2308c882, + 0x00dd0560, 0x40630017, 0x0101030a, 0x02010400, 0x4b4c0201, 0x58501ab0, 0x01061b40, 0x03010502, 0x67030204, 0x0030fd82, 0x00010761, 0x004d3a00, + 0x04390404, 0x19401b4e, 0x01240e83, 0x69010002, 0x1b84268a, 0x0133f882, 0x11121300, 0x0d0e0f10, 0x080a0b0c, 0x01170006, 0x65090817, 0x47080ad3, + 0x07211515, 0x11231121, 0x35333523, 0x03363634, 0x40905a36, 0x3c73333c, 0x156401d6, 0xf7bfb1fe, 0x05b165f7, 0x8a1c1fdd, 0xcaab1517, 0x03c3fc92, + 0x62c9923d, 0x02005192, 0x55fe7800, 0x98045d04, 0x42003700, 0x0b401701, 0x0725b082, 0x01020c2e, 0x20b28309, 0x30b2820a, 0x07000038, 0x08000708, + 0x06040080, 0x05040605, 0x06624980, 0x010a692e, 0x61070808, 0x41070700, 0x0202004d, 0x41074758, 0x3d2106dd, 0x07ba5303, 0x37903120, 0x82020821, + 0x20389d52, 0x2178bc20, 0xb3973640, 0x0624ef82, 0x67060204, 0xb189bb8b, 0x5959593f, 0x38391340, 0x42383d3f, 0x34294239, 0x36251323, 0x090b1324, + 0x17012b1e, 0x16230606, 0x05475c15, 0x14150627, 0x32333316, 0x2a0f8216, 0x26222304, 0x14333526, 0x48331616, 0x0f8205c7, 0x37343522, 0x22062844, + 0x44053636, 0x690807da, 0x25043435, 0x5b974238, 0x32bed7bb, 0x38332046, 0xab6dbb51, 0xf7f5fe62, 0xad53c7ae, 0xaa737a2e, 0xb9627e96, 0xb374858e, + 0x837ec26d, 0x5cfe7aa8, 0x78767377, 0x9804706a, 0x540c15aa, 0x09ca9cb6, 0x233c240a, 0x52834c31, 0x8e48a99d, 0x254d3b6b, 0x49475154, 0x4c6f5078, + 0xa76cc75e, 0xcc2c185e, 0x82686683, 0x00e7707c, 0xcf41ffff, 0x1c062c05, 0xac002602, 0x06000000, 0x48f5b407, 0x78260597, 0x5d0455fe, 0x17883306, + 0x178cb120, 0x17856620, 0x070f0129, 0x04a504a8, 0x4b00c01e, 0x042105b5, 0x08b3481e, 0x16203f85, 0xad203f88, 0x00323f83, 0x00bf0001, 0x05f30300, + 0x001300d9, 0x10244027, 0x01820201, 0x00134c25, 0x534a0002, 0x41200758, 0x2207246b, 0x57132313, 0x1129052e, 0x32333636, 0x23111516, 0x05204d11, + 0x22080882, 0xb13f7f01, 0xc090985c, 0x8d545851, 0xd905c02a, 0x5250bcfd, 0x01fd93a5, 0x555fee02, 0x06fd3e6a, 0x8200c405, 0x8623206b, 0x001b306b, + 0x120c4066, 0x03020203, 0x191a4c01, 0x464a0602, 0x1e2205c9, 0xf1820105, 0x07085f28, 0x38060602, 0x425c004d, 0x4d412b06, 0x02020104, 0x1b4e0239, + 0x1a831c40, 0x01232482, 0x90670006, 0x40592a1e, 0x00000010, 0x111b001b, 0x27a98311, 0x1d090911, 0x2115012b, 0x2329ac92, 0x37353335, 0xfec80215, + 0x27b48bb7, 0x05c09c9c, 0xebfe8e38, 0x0427b88d, 0x158c8eaa, 0x41ffffa1, 0x07250527, 0x0026028c, 0x28ca82b1, 0x00c10706, 0xb1080064, 0x06d94701, + 0xe600022e, 0x0c040000, 0x0b001606, 0x69001500, 0x20052d44, 0x08234422, 0x004d402b, 0x5f060505, 0x06060108, 0x21ce843b, 0xbf825f03, 0x82033921, + 0x072021d3, 0xd082f482, 0x96690121, 0x40592b22, 0x010c0c19, 0x0c150c00, 0x42441415, 0x05072606, 0x0b010b00, 0x053f4409, 0x0805d642, 0x36343533, + 0x15211113, 0x11213521, 0x58023521, 0x3c49493c, 0xca49493b, 0xdafc2501, 0xc9fe4101, 0x354a1606, 0x374b4b37, 0x08fe4a35, 0x929274fc, 0x0092fa02, + 0x27b38501, 0x09001e04, 0x24402700, 0x04289082, 0x0401055f, 0x024d3b04, 0xdf519283, 0x00002206, 0x0f016700, 0xe7206385, 0x04215b87, 0x2251871e, + 0x85ffff00, 0x46062553, 0xb5002602, 0x06253a82, 0x0002af07, 0x20178900, 0x2017881c, 0x20178cb4, 0x20178833, 0x21178bb1, 0x1788f405, 0x2f8cac20, + 0x17881620, 0x178cad20, 0x17883520, 0x1783ae20, 0x00030037, 0x0455fe5d, 0x00160608, 0x0017000b, 0xb481002d, 0x06021d1e, 0x059f4149, 0x0103262f, + 0x61000101, 0x030a020b, 0x4d400000, 0x2bfb8208, 0x010c5f09, 0x4d3b0909, 0x05050107, 0x24051245, 0x401b4e06, 0x26228424, 0x09010103, 0x97690100, + 0x40593c26, 0x0d181823, 0x1800010c, 0x2c2d182d, 0x28292a2b, 0x24252627, 0x0c111323, 0x41170d17, 0x0d2005b1, 0x220eb141, 0x41163221, 0x14240abd, + 0x27070606, 0x080da765, 0x3a700120, 0x3b3a4b4b, 0x4e024949, 0x3b4a4a3b, 0xae4a4a3a, 0x3b95ed8b, 0xfe72b565, 0xe2fdb18f, 0xd741a9b3, 0x0adf4109, + 0xd69b6532, 0x2693308d, 0x03729561, 0x9202fd1a, 0x8efe0292, 0x210a8341, 0x2341d105, 0x41b72008, 0xfe24073b, 0x060c042d, 0x22075341, 0x82ad0726, + 0x07062317, 0xb741c6b9, 0x880e2009, 0x82b62033, 0x0000351b, 0xfeb70002, 0x06830355, 0x000b0016, 0xb4530019, 0x02021112, 0x20065541, 0x08cd6c17, + 0x004d4039, 0x5f030202, 0x03030105, 0x1b4e023b, 0x01041540, 0x03010000, 0x8b690100, 0x40592b17, 0x010c0c13, 0x0c190c00, 0x27411819, 0x41062006, + 0x13240e27, 0x04061411, 0x34061b41, 0x3cde0235, 0x3a3c4a4a, 0xa1df4949, 0x1fdacefe, 0xfe84ec9c, 0x0cde4253, 0xf7b9a22d, 0x1c942695, 0x0290b668, + 0x820092d9, 0x2cab8571, 0x0d001e04, 0x1b401e00, 0x00020506, 0x27168349, 0x0101025f, 0x4e003b01, 0x0d280b82, 0x031b0d00, 0x012b1709, 0x0321688b, + 0x22608983, 0x8ffc1e04, 0xffff2156, 0x04275783, 0x0233062f, 0x82c10026, 0x07072444, 0x828800b1, 0x00022a07, 0x040000c8, 0x00dd0578, 0x05594303, + 0x71820820, 0x4c010223, 0x25f58203, 0x0201034a, 0x14573b02, 0x04042a07, 0x09040904, 0x09041114, 0x247a8218, 0x02091123, 0x08928223, 0x03c08824, + 0x013afe7e, 0x15fef3f8, 0xdd05bf01, 0xc60523fa, 0x27fe58fe, 0x4002bbfd, 0x0000de01, 0xc800ffff, 0x5f83b8fd, 0xc3207782, 0x06236f82, 0x8209a807, + 0x02002306, 0x7782bf00, 0xe7826f20, 0x77820520, 0x28402b2d, 0x00020104, 0x054c0101, 0x82030403, 0x5d4d20e8, 0x062f06be, 0x06000006, 0x08090609, + 0x00050007, 0x82061205, 0x2a7784f6, 0x11231121, 0x37fe3c04, 0x82f4fc01, 0xfec02f78, 0x1e04c02f, 0xc0fd22fe, 0xeb013302, 0x5582e2fb, 0x6f000131, + 0xf703e7ff, 0x1100c605, 0x0a405000, 0x54000107, 0x4d43062a, 0x67162005, 0x3a200832, 0x2808bd54, 0x1b4e013f, 0x01041440, 0x229c8203, 0x4b670203, + 0x59220aae, 0x0d820c40, 0x11001128, 0x05232513, 0x10541909, 0x0d0c5411, 0x05bffe25, 0x544afbc6, 0x042508c6, 0xff009216, 0x3a8f85ff, 0x2602ee07, + 0x0000c600, 0xaf070701, 0xa801b7ff, 0x01b10900, 0xa801b801, 0x882b35b0, 0xdb052123, 0xba222388, 0xb945df00, 0x2123840c, 0xd783b8fd, 0x00242385, + 0x77a80706, 0x5f859b82, 0x05e90423, 0x243b88c6, 0xfd0d02ad, 0x215f8566, 0x5f8366fd, 0x13410020, 0x00193409, 0x1911404f, 0x11121314, 0x08010209, + 0x010a0200, 0x4a020001, 0x15280636, 0x03020200, 0x0303005f, 0x210e1941, 0x18410013, 0x11b62b12, 0x04252517, 0x012b1a09, 0xe6550717, 0x27072b0e, + 0x35211137, 0x19031121, 0xe855f74e, 0x4e822c0a, 0x02bffed0, 0x78db0301, 0x4144fe97, 0x01290823, 0x80785038, 0xfd923602, 0x2ccc82ae, 0x005d0001, + 0x04530400, 0x00230037, 0x051a5078, 0x1b210c2e, 0x16000202, 0x0201020d, 0x401b4c02, 0x06200e84, 0x37520e86, 0x04162106, 0x002c1b82, 0x08060761, + 0x41000003, 0x0203054d, 0x2106345d, 0xc846001a, 0x211d8207, 0x1c8b0208, 0x17405936, 0x1d1f0001, 0x1718191a, 0x0e0f1214, 0x0506090b, 0x23012300, + 0x4806ac46, 0x3e480d35, 0x17332608, 0x32333636, 0x08058216, 0x3684032a, 0x17af3a5f, 0x29572c35, 0x2d3517a8, 0x94af2956, 0x4d6b2c0c, 0x2b18673c, + 0x3037046e, 0xf0fc787f, 0x515cf402, 0xd4fc3f36, 0x04280787, 0x523d761e, 0x4c3d4f3a, 0xbf24e784, 0xf3030000, 0x1424e782, 0x13b64d00, 0x85056248, + 0x001323ef, 0xff500303, 0x4d3b2405, 0x48020405, 0x17200652, 0x3b203482, 0x870a6b48, 0x40592219, 0x2c19820d, 0x24140014, 0x06112313, 0x332b1a09, + 0x48a48611, 0x250805f7, 0x06222326, 0xa5bf1107, 0x5dbb410e, 0x17c09098, 0x8c564948, 0x8e1e042a, 0x93a55651, 0x890201fd, 0x6a397c64, 0x6759fd3d, + 0x25938406, 0x26024606, 0x5482cd00, 0xaf070622, 0x00300582, 0xffff0200, 0x08040000, 0x0e00e305, 0xb1002300, 0x0b2da585, 0x00010109, 0x04021222, + 0x1b4c0205, 0x200d8240, 0x410d8703, 0x1e210693, 0x4c208200, 0x05210778, 0x050d5005, 0x084d3b2a, 0x04040206, 0x1b4e0439, 0x240f7a48, 0x02004d3a, + 0x4de18202, 0x298808b6, 0x7a484020, 0x00022305, 0x22966701, 0x59592d08, 0x0f0f1940, 0x230f0001, 0x1e20230f, 0x1416191a, 0x07081011, 0x0e010e00, + 0x2b160909, 0x15163213, 0x07070614, 0x26263723, 0x13363435, 0x2b132041, 0x1543317e, 0x396d521f, 0x88451c15, 0x2f0d2b41, 0x3141e305, 0xab413f1a, + 0x1d3112e5, 0x1dfa4131, 0x201d3b41, 0x083b4133, 0x4300b321, 0xbf26059b, 0xf303b8fd, 0x17883704, 0xcb46a820, 0x056b4106, 0x17880e20, 0x8300b621, + 0x00012400, 0x8357febf, 0x1c00312f, 0x0c404800, 0x01021116, 0x054c0100, 0x49010204, 0x20057741, 0x41258211, 0xd85a074b, 0x401b2205, 0x05164115, + 0x4e000021, 0x392d09f0, 0xb6594e01, 0x2d131123, 0x2b1a0904, 0x08b14725, 0x42263421, 0x2320050f, 0x2f080341, 0x924bf303, 0x5c45476b, 0x4a48172e, + 0xc02a8d54, 0x4332fc86, 0x2f6fb599, 0x7d47208c, 0x64520270, 0x3e6a397c, 0xf88606fd, 0x02000032, 0xe7ff8900, 0x37042704, 0x19000d00, 0x2a402d00, + 0x20095067, 0x08a14241, 0x4e013f32, 0x00010e0f, 0x190e1315, 0x0608190f, 0x0d010d00, 0x20052d47, 0x05816012, 0x34350225, 0x4c173636, 0x262f09b7, + 0xebe25a02, 0xe296ce6b, 0x97cf6bed, 0x83828482, 0x37043600, 0xa3fbd4fe, 0x2c018cfa, 0x8cf9a4fb, 0xcbcdc399, 0xcccdc3c3, 0x055741c2, 0x06258384, + 0x00260246, 0x09ab42d4, 0x85ffff21, 0x1c06219b, 0xb4201788, 0x85068741, 0x8833202f, 0x8bb12017, 0xf4052117, 0xac201788, 0x35202f8c, 0xae201788, + 0x8e20178c, 0xb0211788, 0x218f8a51, 0x1788d105, 0x1682b720, 0x0300003f, 0xf9fe8900, 0x1f052704, 0x20001700, 0x46002900, 0x01054340, 0x1e240002, + 0x11020302, 0x17976801, 0x290c4641, 0x00011819, 0x20182628, 0x97682019, 0x06cd6110, 0x27072722, 0x4105da42, 0x5b080650, 0x13261317, 0x03272634, + 0x36323316, 0x2c305a02, 0x6b539b4c, 0x96ce6b72, 0x9b492e31, 0x6b746c54, 0x848297cf, 0x1ce52f2e, 0xe52e2de2, 0x8282201c, 0xf0083704, 0xfc41fa2d, + 0x8cfaa3ab, 0xfe2ef608, 0xa4acfc41, 0xc2998cf9, 0x2ca783ce, 0xfe05e102, 0x2ca78272, 0xc30520fd, 0xffff0000, 0x0621cf85, 0x20e78246, 0x127741dc, + 0xff880e20, 0x3c05cf42, 0xfff9ff03, 0x04cb04e7, 0x00230037, 0x0036002a, 0x21564059, 0x14060701, 0x0102020d, 0x0553760e, 0x01000736, 0x67010702, + 0x030b080c, 0x61000606, 0x00020a05, 0x094d4100, 0x3f0b4a59, 0x24252b2c, 0x30320001, 0x362c362b, 0x2a242728, 0x1d1f2a25, 0x10121618, 0x0607090b, + 0x23012300, 0x2305af4a, 0x06141512, 0x65124b59, 0x36210820, 0x06405936, 0x080a2e4f, 0x7f03263c, 0x01039cb0, 0x640dfbfd, 0x31553765, 0x56833c54, + 0x2529966e, 0xa6b2737e, 0x78789848, 0x8324237e, 0x0c555567, 0x43035901, 0x4e5c8ffd, 0x4a5d5c4e, 0xfe37044b, 0x301bf4eb, 0x3559ad14, 0x5d672305, + 0xa1426c58, 0x5b6d3905, 0x92957256, 0x02a6a3b7, 0xbbd3cec4, 0xc2cedcb4, 0xbf000200, 0x270455fe, 0x1034ff82, 0x6a001d00, 0x14151140, 0x0304030f, + 0x0401010a, 0x0b0c4c02, 0x2808d643, 0x03010618, 0x02610003, 0x22fc8405, 0x56040400, 0x1b2707e2, 0x02001c40, 0x854d3b02, 0x0105241f, 0x57410000, + 0x15330d01, 0x00011112, 0x1d111719, 0x0d0e1d12, 0x10000709, 0x4a071001, 0x1d420596, 0x07112407, 0x84173311, 0x501120fb, 0x02390740, 0x4aa88ca9, + 0xaa88b45a, 0x0ea5c068, 0x7e528c7a, 0x47742829, 0x04707e7c, 0x05fd5837, 0x0dfe7833, 0x8ec90517, 0x3f6397a7, 0x433b02fe, 0xc3cdcdc1, 0x57cb8700, + 0x403306cb, 0x14153d40, 0x0d020302, 0x02030101, 0x0201014c, 0x82104b01, 0x0f4a2222, 0x21d4820e, 0xed620104, 0x0cc94206, 0x85111221, 0x222628a7, + 0x2b180905, 0x50361101, 0x062405dd, 0x27222306, 0x0123a482, 0x88070622, 0x7f0123a1, 0xa388b575, 0x88b90121, 0xdd0524a1, 0x8997c3fd, 0x710723a4, + 0xa38ddafd, 0x55fe892c, 0x3704f103, 0x1d001100, 0x33458a00, 0x02142b05, 0x1b000301, 0x0304021a, 0x04820107, 0x05064c27, 0x1b490202, 0x20168340, + 0x46168f01, 0x8f4106bd, 0x41012006, 0x022d088f, 0x02020061, 0x1b4e023f, 0x01001c40, 0x108f4101, 0x59341e87, 0x12131540, 0x16180001, 0x1d131d12, + 0x0304090b, 0x11011100, 0x25058f41, 0x11333717, 0xfb591127, 0x22172109, 0x08063549, 0x26261131, 0x6bb51e02, 0x38c0a50e, 0xab8d5795, 0xb4b45d4c, + 0x527274fa, 0x7428297c, 0x6e873704, 0x021737fa, 0x894a4d12, 0xf9a0a6f8, 0x6efe9790, 0x585cc1cb, 0x0126059a, 0x0000c900, 0xeb823004, 0xbb001622, + 0x0e31e985, 0x01040107, 0x04000113, 0x010d4c02, 0x401b4a02, 0x21108c0f, 0x0e674b01, 0x00202b06, 0x01000104, 0x01057204, 0x4d460101, 0x01062d07, + 0x5f070000, 0x07070108, 0x1b4e0739, 0x21204f85, 0x00212785, 0x21289980, 0x238b2b40, 0x84068146, 0x425f202e, 0x568a06b8, 0x4059593b, 0x00000010, + 0x12160016, 0x11231321, 0x09091111, 0x35332b1d, 0x35231133, 0x065a4921, 0x23032e08, 0x03222335, 0xc9153311, 0x3301a0a0, 0x8caf3c23, 0x1e25472e, + 0x67ed0194, 0x02038ed6, 0x8d83f78e, 0x8efe0b0e, 0xfeadfedc, 0xff008e59, 0x050341ff, 0x02460625, 0x82e30026, 0x07062359, 0x06823baf, 0x33201788, + 0xb3201788, 0xfd251787, 0x043004b8, 0x24178637, 0xffa80707, 0x3d308271, 0xff8b0001, 0x04f603e7, 0x002a0037, 0x11344037, 0x28010201, 0x02000212, + 0x00030127, 0xc8824c03, 0x00610124, 0xdb5b0101, 0x2ee38405, 0x014e033f, 0x16232500, 0x000d0f14, 0x5b2a012a, 0x926906db, 0x32332209, 0x0d916916, + 0x080a7867, 0x7330024b, 0x6e6d2385, 0xe0579f6c, 0x44c082b9, 0x62913d52, 0x78316375, 0x559a676a, 0x9075cf82, 0x3d6a46cf, 0x485480a1, 0x1c37412e, + 0x5c74481b, 0x3245a086, 0x4735287d, 0x2f392c3a, 0x7b4c1c1d, 0x428d7164, 0x337a3d54, 0xff00003f, 0x84b785ff, 0x85e720ff, 0x821120ff, 0x83178806, + 0x201785ff, 0x211787b3, 0xe7831bfe, 0x1785ff82, 0x95fab821, 0x87b1202f, 0xb8fd212f, 0xa8202f8c, 0x2a069769, 0x04e7ffb4, 0x00dd0562, 0x42920033, + 0x0a26052b, 0x03020116, 0xa54b0115, 0x230c8605, 0x4c020204, 0x31065143, 0x03030017, 0x01056100, 0x4d3a0000, 0x01020200, 0xdb5d0461, 0x05084a06, + 0x1e8b1b20, 0x68040421, 0x3f2609fc, 0x401b4e01, 0x37820519, 0x00020325, 0x8e006903, 0x5959311b, 0x00011140, 0x2a2c2f30, 0x1113181a, 0x33013300, + 0x28056648, 0x0e141516, 0x1e141502, 0x0a774103, 0x3632332b, 0x032e3435, 0x023e3435, 0x05094935, 0x11157608, 0x36341123, 0xc4a14f02, 0x50425742, + 0x674f7575, 0x7d4f67ac, 0x58244935, 0x4d6b5e29, 0x424d7172, 0x4d214357, 0xc06f6a42, 0xa4dd05d9, 0x465e497f, 0x4a332f44, 0x66865c47, 0x2353a074, + 0x19148321, 0x634b6362, 0x4e674c4b, 0x4b455b47, 0x31492438, 0xcafb947e, 0xded52a04, 0x01000000, 0xe7ff9800, 0x23051704, 0x2e001700, 0x01172b40, + 0x4c010105, 0x02020b0c, 0x21fa834a, 0x624f5f02, 0x05002205, 0x07325c05, 0x1311233a, 0x06221311, 0x252b1c09, 0x22230606, 0x23113526, 0x37353335, + 0x21072111, 0x08062a44, 0x38170426, 0xbbb0509d, 0x01c0efef, 0xaefe1668, 0x633a6859, 0x2b24362a, 0x5c0293b8, 0xfe17ee90, 0xa6fd90fb, 0x171b5857, + 0x1f277b8b, 0x3a403d00, 0x8209011f, 0x0f10337b, 0x074a0402, 0x01080201, 0x01020901, 0x03010667, 0x49530403, 0x09002206, 0x23858709, 0x11111b1d, + 0x03828882, 0x090a2223, 0x888a8c1f, 0x2115228e, 0x21928e15, 0x9487d9d9, 0xfe540123, 0x239889ac, 0xcb8c0501, 0xcb239a85, 0x83fdfe8c, 0xffff219c, + 0x25051741, 0x26020906, 0xaa82ee00, 0xba070726, 0x9200b900, 0x2605a554, 0x2b35b092, 0x82ff0000, 0x1bfe2523, 0x23051704, 0x00252385, 0x00b80707, + 0x2117858b, 0x178cb8fd, 0x1783a820, 0x00010032, 0x03e7ffbf, 0x001e04f1, 0xb64d0013, 0x0002070c, 0x9742ef82, 0x05132c05, 0x01010204, 0x00004d3b, + 0x5c620200, 0x40210792, 0x22158717, 0x83390202, 0x6203271a, 0x3f030300, 0x4f4d4e03, 0x00132905, 0x13112313, 0x1a090623, 0x2308f04f, 0x23113311, + 0x08067363, 0x7f011121, 0x93505551, 0x0ea5c029, 0x995db53d, 0xfd1e0497, 0x5e57641a, 0xfb020341, 0x54508be2, 0x6a0293a6, 0x93840637, 0x82460621, + 0x49f320c3, 0x17850c2b, 0x17881c20, 0x8507a34a, 0x88332017, 0x07a34a17, 0x05211784, 0x201788f4, 0x224d82ac, 0x85ffff00, 0x350621f3, 0xa34a1788, + 0x222f8307, 0x888e06f5, 0x07a34a17, 0xd1204785, 0xb7201788, 0xfe254787, 0x04f1032d, 0x2517861e, 0x00b90707, 0x5f8900d0, 0x2f887c20, 0x2f87b520, + 0x03e7ff25, 0x880e06f1, 0x05eb4917, 0x6f000136, 0x41040000, 0x06001e04, 0x1e402100, 0x01000105, 0x02034c01, 0x22077c41, 0x824e0039, 0x0006233e, + 0x47521106, 0x23013f05, 0x01013301, 0x86fe4104, 0xcc88fee0, 0x20012101, 0xe2fb1e04, 0x89fc1e04, 0x01007703, 0x4b821e00, 0x4b829220, 0x28000c29, + 0x070a2540, 0x69000302, 0x04200ab3, 0x2a0b9d52, 0x12111212, 0x1b090510, 0x6921212b, 0x333309ac, 0x00ffdf03, 0xbbfa8b81, 0xd29f7cbf, 0x02b77c95, + 0x8205fdfb, 0x0359285b, 0x03dffc21, 0x85ffffa7, 0x4606215f, 0xff20c382, 0x840c9b41, 0x33062177, 0x83411788, 0x21178407, 0x1788f405, 0x84078341, + 0x35062117, 0xae201788, 0x00204d82, 0x6420bf82, 0x4c20bf82, 0xa769bf82, 0x07486909, 0x794d3b21, 0xa7690828, 0x23212905, 0x13330101, 0x01013313, + 0x3c3e0882, 0xfe8101d8, 0xeae8e0ad, 0x01b0fed7, 0xedfee781, 0xf2012c02, 0x7f0181fe, 0xccfd16fe, 0x5d82bb01, 0x70000126, 0x400455fe, 0x0f265b82, + 0x23402600, 0x5883010e, 0x02050624, 0x6c414900, 0x000f310f, 0x041a110f, 0x012b1809, 0x07020e01, 0x37023e27, 0x08057341, 0x90fe4024, 0x8fbd7826, + 0x497f6c1b, 0x95fe411d, 0x011f01cd, 0xfb1e041e, 0x72b570dc, 0x4611950e, 0x1e044f70, 0x676c6efc, 0x256b8406, 0x26024606, 0x27410501, 0x2017850c, + 0x41178833, 0x17840727, 0x88f40521, 0x07274117, 0x35202f85, 0x27411788, 0x00c32407, 0x82ed0300, 0x16c369cb, 0x824d3b21, 0x1ac36975, 0x4102ac32, + 0x02edfc17, 0x02effd3f, 0x8f9f9ff6, 0x90a0ef02, 0xff223082, 0x578400ff, 0x0a20b784, 0x1420b785, 0xb783178b, 0xb3201785, 0x1620178c, 0x17859f82, + 0x1783ad20, 0x02002208, 0xe7ff7f00, 0x37044504, 0x21001400, 0x11406100, 0x00030114, 0x03081e1f, 0x04050304, 0x03040102, 0x0abf624c, 0x02610026, + 0x1c000001, 0x20089f4b, 0x05b96420, 0xc4621283, 0x8b212008, 0x4059391d, 0x1c15160e, 0x1621151a, 0x10282621, 0x2b190706, 0x16113301, 0x26260717, + 0x271ac362, 0x5004a948, 0x217e412d, 0x2207c762, 0x60e869b1, 0x042908b6, 0x67c6fc1e, 0x4c088411, 0x15cb624b, 0x85ffff21, 0x460621cf, 0x0e20e782, + 0x840ccb67, 0x1c0621e7, 0xb4211788, 0x881e82f0, 0x8833202f, 0x8bb12017, 0xf4052117, 0xac201788, 0x35202f8c, 0xae201788, 0xd1202f8c, 0xcb671788, + 0xfe7f2607, 0x04450415, 0x25178537, 0xb9070701, 0xcb67f700, 0x209b8510, 0x673b887c, 0x178507cb, 0x17880e20, 0x6b83b620, 0x02002008, 0x55fe7f00, + 0x3704f503, 0x2d002000, 0x11407700, 0x00050120, 0x03142a2b, 0x0b0c0506, 0x41030202, 0x212707b3, 0x05050107, 0x41046100, 0x062705b3, 0x00610306, + 0x71200303, 0x1e2a0875, 0x401b4e01, 0x00000025, 0x28834d1c, 0x00610427, 0x4d210404, 0x3a279300, 0x22104059, 0x21262821, 0x262d222d, 0x10262525, + 0x2b1b0708, 0x17113301, 0x7a020e16, 0x17250611, 0x35363616, 0x19986435, 0x03a94831, 0x9e905c01, 0x50bd9940, 0x7c7f2f74, 0x413e7b5c, 0xca2f17de, + 0x306aad7e, 0x306f4c62, 0x5001014e, 0x416d5187, 0xff2114e8, 0x050341ff, 0x021c0625, 0x82180126, 0x070623c3, 0x0682f6b4, 0x33201788, 0xb1201788, + 0x6620178c, 0x01251785, 0x04a8070f, 0x149f5da6, 0x55fe7f26, 0x1606f503, 0xad203f88, 0x01253f85, 0x020000d2, 0x201784dc, 0x206f841e, 0x240582ad, + 0x01010000, 0x2e1782f8, 0x001e04b8, 0x40190003, 0x01010216, 0x824d1c01, 0x001b2219, 0x2e05824e, 0x11030003, 0x2b170703, 0x11231101, 0x45c0b802, + 0xff2905ff, 0x006d01ff, 0x06520300, 0x85638246, 0x46af204b, 0x01210577, 0x20178226, 0x85d38489, 0x06374717, 0x82090121, 0x06a72117, 0x1785d383, + 0x27068b44, 0x00000e01, 0xf405a003, 0x8b444788, 0x82ab9506, 0x826a2077, 0x0645222f, 0x202f8835, 0x207786ae, 0x22178244, 0x88d1056a, 0x06374717, + 0xfe200123, 0x22f38a2d, 0x84ad0726, 0x97b922f9, 0x204b8200, 0x22338207, 0x880e06a8, 0x85b62033, 0xf000274b, 0xe7020000, 0x17821606, 0x27412920, + 0x00022105, 0x01200082, 0x04221785, 0xef7e001e, 0x01012105, 0x41051f4a, 0x05260a2c, 0x11110500, 0x81590704, 0x35212d05, 0xfec0e702, 0xfb1e04c9, + 0x928c03e2, 0x3f836f82, 0x06540323, 0x5c578846, 0x6f8207cf, 0x068b0323, 0x5c17881c, 0x178307cf, 0x3306a922, 0xcf5c1788, 0x22178307, 0x88f405a2, + 0x07cf5c17, 0xff21b794, 0x227784ff, 0x88350647, 0x54ae202f, 0x2f8206df, 0x056c0323, 0x5b1788d1, 0xf02207c3, 0xff8a2dfe, 0x830dc35b, 0x06aa2233, + 0x2033880e, 0x5b4b89b6, 0x012105f7, 0x0f334134, 0x040c0429, 0x0007001e, 0x59224025, 0x1c2008d6, 0x22083246, 0x824e011b, 0x00073e2f, 0x11111107, + 0x2b190705, 0x15211101, 0x35211121, 0x2501e702, 0xc9fe1bfe, 0x74fc1e04, 0x093f4192, 0x46206382, 0x63857b82, 0x820a3f41, 0x881c2017, 0x0a3f4117, + 0x33201782, 0x3f411788, 0x0c04230a, 0x1788f405, 0x910a3f41, 0x053f41c3, 0x35201782, 0x3f412f88, 0x2047820a, 0x411788d1, 0x478a0a3f, 0x82103f41, + 0x880e201b, 0x073f4133, 0xe7ffe626, 0x16066e04, 0x3f201782, 0x20053f41, 0x0573422e, 0x04271784, 0x0011001e, 0x5b2c402f, 0x49410927, 0x0061260e, + 0x01200101, 0x09065b4e, 0x065b0720, 0x5ee72414, 0x6f562e4a, 0xfe2506d2, 0xfc1e04bf, 0x08e259f2, 0x746e0221, 0x6f8405b3, 0x88460621, 0x83af2087, + 0xffff2287, 0x20178500, 0x2017881c, 0x20178cb4, 0x20178833, 0x21178bb1, 0x1788f405, 0x2f8cac20, 0x5f88e78e, 0x2f883520, 0x478cae20, 0x1788d120, + 0x1787b720, 0x042dfe2b, 0x0016066e, 0xf8ad0726, 0x221d8800, 0x8800a7b9, 0x880e204b, 0x41b62015, 0xe744054b, 0xc6052105, 0x2109e744, 0xe7445f00, + 0xc6052f17, 0xc6053afa, 0x7401ffff, 0x59030000, 0x4b82ee07, 0x00004928, 0xaf070701, 0x175c0700, 0x2357830f, 0xdb05fc03, 0xba222388, 0x175c2701, + 0xde01270f, 0xd202b8fd, 0x2385c605, 0x07060023, 0x056b44a8, 0x175c3b83, 0x85012005, 0x12175c5f, 0x82280121, 0x82af2083, 0x000b30b7, 0x0b1c401f, + 0x05060708, 0x00070102, 0x824c0101, 0x08c28703, 0x02131529, 0x012b1807, 0x23110717, 0x37270711, 0x03113311, 0xc0f74f60, 0xc0d04e82, 0x9778db03, + 0x560234fd, 0x02807850, 0x83aefdc8, 0x00012678, 0x020000b7, 0x2d5382b8, 0x401d0005, 0x0201031a, 0x02000100, 0x0e416701, 0x0fc94408, 0xfec0b82a, + 0xfac605bf, 0x9234053a, 0xff212382, 0x233f83ff, 0xee075103, 0x4f28cf82, 0x07010000, 0xffffaf07, 0x840f1741, 0x05174123, 0x17412385, 0xb7002712, + 0x5303b8fd, 0x4785c605, 0x07070027, 0x008100a8, 0x415f8500, 0x3b850617, 0x84121741, 0x82af205f, 0x000d25c3, 0x0d204023, 0x8c0b1741, 0x151125ce, + 0x19070313, 0x220a1b41, 0x41213521, 0xed5c081d, 0x07204107, 0x2605e45c, 0x006f0001, 0x82d70300, 0x8307205b, 0x5e04205b, 0x5f230b75, 0x44010100, + 0x702b18b5, 0xd9fd6701, 0xc605bffe, 0x4192ccfa, 0x4b84082b, 0x82ee0721, 0x5e5520e3, 0x6f84195b, 0x2388db20, 0x82175b5e, 0x5e238593, 0x00210b5b, + 0x062b4100, 0x2b415f85, 0x82838413, 0x000f30cf, 0x0f264029, 0x0708090a, 0x00070102, 0x5e4c0102, 0xda860b37, 0x1115112f, 0x1a070413, 0x0717012b, + 0x21152111, 0x0b2b5e11, 0x245edf83, 0xc6fd220a, 0x05584292, 0x20073741, 0x208b82e6, 0x2767820c, 0x40250009, 0x04010522, 0x04225e82, 0x05646703, + 0x05384108, 0x83070564, 0x09696463, 0x0564e720, 0xc6052807, 0x9292ccfa, 0x6492a204, 0x07210703, 0x20f382ee, 0x053b415b, 0x422e0021, 0x73831067, + 0xdb052b22, 0xba222388, 0x7f435601, 0xe600240f, 0x8204b8fd, 0x24238597, 0xa8070600, 0x09c7622f, 0xc605e922, 0x3b413b88, 0x31d38713, 0x402b0011, + 0x0b0c1128, 0x0102090a, 0x01030007, 0xde92004c, 0x11151127, 0x07051311, 0x073d411b, 0x3f413520, 0x4e90220a, 0x30e385f7, 0xfed04e82, 0x03f701c9, + 0xfd9778db, 0x019292c6, 0x095f5fc4, 0xb027f382, 0x1104e7ff, 0x70020606, 0x07250537, 0x9e00c807, 0x0c3970ff, 0x9b5c2382, 0x5c182005, 0xc821089b, + 0x0ae35a46, 0x17830620, 0x1082d420, 0x87070621, 0xff8b2417, 0x84f603e7, 0x05535417, 0x4d57c821, 0x2f820b6b, 0x534d0120, 0x5ac82105, 0x00321782, + 0x00bc0001, 0x04f003ee, 0x000b0022, 0x0004b306, 0xce823201, 0x0701013f, 0x01270101, 0x03013701, 0xddfe767a, 0xfe762301, 0x76dafede, 0xd9fe2701, + 0x04260176, 0x200e8c22, 0x820e8301, 0x09ff5647, 0x864d7d20, 0x130c2705, 0x0003070e, 0xfd560101, 0x8a0d2006, 0x4b01210e, 0x21068854, 0xf4560419, + 0x4d1c2508, 0x00000105, 0x2505f176, 0x1b4e061b, 0x1b832340, 0x00610326, 0x4d210303, 0x5f232684, 0x8e020200, 0x40592225, 0x2bc5820f, 0x12160016, + 0x11112325, 0x1c070811, 0x220ec156, 0x56262607, 0x392311c1, 0x56223721, 0xa8220bc2, 0xc2560909, 0xff003d05, 0x00bc00ff, 0x03f0039a, 0x010603ce, + 0x00ac0066, 0x0100b109, 0xb0acffb8, 0x00002b35, 0x2906af67, 0x0b00d105, 0x3a001500, 0x85673740, 0x01082b08, 0x02050006, 0x04670506, 0xb4610201, + 0x031b2205, 0x1680674e, 0x2b160724, 0xc2653201, 0x6721200b, 0x05321880, 0x38354ad1, 0x35384a4a, 0xfcfefd4a, 0x029292c3, 0xed8292ab, 0x84074765, + 0x00193587, 0x12334036, 0x49020211, 0x00000104, 0x01000301, 0x03010569, 0x57208482, 0x03270682, 0x02005f02, 0x654f0203, 0x8390102a, 0x8c1e2a65, + 0x65f12088, 0x8a20092a, 0xcf628f84, 0x48622007, 0x1a2118bb, 0x20b7824d, 0x26bb4801, 0x210b8e78, 0xcc77bffe, 0x83a5200e, 0xf7450848, 0x0300005e, + 0x001e04f2, 0x40440024, 0x1e212441, 0x1015181b, 0x04070a0d, 0x0108010b, 0x0a0b0c4c, 0x00080409, 0x01080001, 0x00010780, 0x064d1c00, 0x02030405, + 0x1b010105, 0x22234e01, 0x1c1d1f20, 0x1112191a, 0x2c008312, 0x070d1011, 0x33012b1f, 0x03032103, 0x22028c23, 0x8d131333, 0x032e0802, 0xffb2b63c, + 0xf5a08200, 0x84fb7f7d, 0x8a85f68d, 0xfa8c83fb, 0x9f7dbeba, 0xd69e96d2, 0x98d1a193, 0xb28cd693, 0x1e0495d2, 0xfb02e2fb, 0x038f05fd, 0x2308ef52, + 0x03dffc21, 0xcf82038a, 0xfc022608, 0x04000006, 0x00e2050c, 0x0029000b, 0x22554058, 0x23000a01, 0x020a0101, 0x010a004c, 0x09590a00, 0x0000020c, + 0x29d28201, 0x020b0d69, 0x05010708, 0x6a420802, 0x01062307, 0x6b420303, 0x0c292b07, 0x20252729, 0x18191a1e, 0xf6691617, 0x410e200e, 0x754210f1, + 0x093d6e06, 0x21082459, 0x0a6a1515, 0x95fb270f, 0x65f7f7bf, 0x5e6e73b1, 0xe2052b07, 0x4b373649, 0x4936374b, 0x9742edfd, 0x085c6e05, 0x20066d6e, + 0x08d38200, 0x0355fe22, 0x00dd0583, 0x002d0021, 0x15b04b91, 0x0f405850, 0x0405011a, 0x0508011b, 0x05064c02, 0x1b490102, 0x07201184, 0x5920118a, + 0x213b2885, 0x04080500, 0x070a5905, 0x08000402, 0x69080403, 0x03020609, 0x01000102, 0x47670003, 0x1b240594, 0x04002240, 0x69232584, 0x8207010a, + 0x92072024, 0x40592c24, 0x00222317, 0x22272900, 0x822d232d, 0x25212788, 0x11111124, 0x0c7b0b1b, 0x081d6805, 0x43140341, 0xd4670ba3, 0xf9fa2109, + 0x200e0941, 0x06576822, 0xfccf0322, 0x410b1743, 0x01210f0f, 0x073141f6, 0x0000002b, 0xff06fc01, 0x05f703e7, 0x209282c7, 0x052b4580, 0x137c0a20, + 0x01092d1e, 0x03020008, 0x07670208, 0x01060301, 0x82051e7c, 0x05612a48, 0x20010101, 0x401b4e01, 0x7c219323, 0x11201013, 0x21237d82, 0x82112000, + 0x23122600, 0x070a2325, 0x1143671e, 0x55702220, 0x7b33200e, 0xe2200d60, 0x240a5c70, 0xfbc70573, 0x08584c49, 0xab110423, 0x056570b5, 0x9262b423, + 0x84698250, 0x170427e7, 0x2b00dd05, 0xe7859b00, 0x0124142c, 0x02250809, 0x09000301, 0x7560010d, 0x4c042305, 0x1690401b, 0x04020522, 0x3107ab5a, + 0x00080021, 0x09080009, 0x070a0b69, 0x04060003, 0x7c640102, 0x82032006, 0x030327fd, 0x1b4e0320, 0x23952540, 0x0220ff84, 0x8205c77b, 0x40592227, + 0x33958214, 0x292b002b, 0x11112427, 0x23251311, 0x070c1311, 0x11012b1f, 0x200bd659, 0x06ee5917, 0x430a5871, 0x01210a1a, 0x0aed5987, 0x9d384827, + 0xfcbbb050, 0x0d134235, 0x01cf0334, 0xacfe173d, 0x57f7fd92, 0x81171b58, 0x93b82b24, 0x10420b02, 0x3588820f, 0x4a010100, 0x6803f402, 0x1300a605, + 0xb04b6f00, 0x40585022, 0xdd82110a, 0xb75b0c20, 0x200c8207, 0x200c8504, 0x2a1e8559, 0x02050417, 0x01020000, 0x84690200, 0x5f013209, 0x00010103, + 0x401b4f01, 0x0204001a, 0x05570401, 0x221e8601, 0x84040400, 0x0104351c, 0x1140594f, 0x0f100001, 0x080a0d0e, 0x13000405, 0x0b061301, 0x20058246, + 0x0a8b6f11, 0x17332a08, 0x9e023636, 0x1e9d6268, 0x1a4c2937, 0x28078c9d, 0x6ca60569, 0x011cfe62, 0x3849539b, 0x0224fe23, 0x2c3250a4, 0x00030000, + 0x3b0482c6, 0x00dd05ea, 0x002a001f, 0x405a002e, 0x03011d57, 0x02011c00, 0x05012a03, 0x02070b04, 0x4c260582, 0x01010108, 0x265c084b, 0x00022108, + 0x042ead82, 0x07010969, 0x06070600, 0x05050063, 0xfd826101, 0x4e01533b, 0x00012b2b, 0x2e2b2e2b, 0x26282c2d, 0x181a2022, 0x0d0f1315, 0x1f011f00, + 0x7da2870a, 0x877b0d5f, 0x2313210c, 0x08084476, 0x21151350, 0xaf440235, 0x292021a6, 0x31175642, 0xa8884d8e, 0x6373cce6, 0x4880295d, 0xea9f5931, + 0x5478866b, 0x256a3a4c, 0x05e7fcff, 0xfe8596dd, 0x0a2c2d7f, 0x38370778, 0x78923d39, 0x52378f86, 0x7f191643, 0x30fe1b21, 0x4948484d, 0x4efd323b, + 0xe782a2a2, 0xe782ba20, 0xe782f420, 0x1a000e2c, 0x3b001e00, 0x01063840, 0xe6820700, 0x69020025, 0x82050108, 0x630421d1, 0x82074e70, 0x1b1b38c8, + 0x00010f10, 0x1e1b1e1b, 0x14161c1d, 0x1a101a0f, 0x0e000608, 0x86090e01, 0x601420c8, 0x062b0b6b, 0x33161415, 0x34353632, 0x82150126, 0x582e08b8, + 0xb965debe, 0x65ba7f7e, 0x697eba66, 0x69697b7b, 0x24017979, 0xdd05e8fc, 0xc883c9f2, 0x86c86e71, 0x8c71c882, 0x949d9d92, 0x929d9d94, 0x9d8251fb, + 0x089f5b18, 0x62052208, 0x01000602, 0x02000000, 0x0000bb00, 0x62054504, 0x17000d00, 0x33403600, 0x01070100, 0x04010504, 0x301c8267, 0x01065f03, + 0x4d1a0303, 0x02050500, 0x0202005f, 0xb94a181b, 0x21252e0f, 0x19070811, 0x2107012b, 0x04323311, 0x22ac8315, 0x18011121, 0x0808b94a, 0x13cd0329, + 0xfba8c8fd, 0xf1892001, 0x018cfe9c, 0x5cbab980, 0x05af508e, 0x8ffea162, 0xbf9cdac5, 0xfd620556, 0x2de7fd55, 0x6b916e76, 0xb4200603, 0x41208b82, + 0x0d209b84, 0x01217e82, 0x21a18201, 0x52184604, 0x4f530a3f, 0x20908205, 0x06604d01, 0x8209854e, 0x11233082, 0xfd154604, 0x6205c696, 0x0547fba9, + 0x85ffff62, 0x2307253f, 0x7a012602, 0x06234f82, 0x435fbf07, 0x5784053f, 0x00890631, 0x40240008, 0x02010021, 0x03004b01, 0x82850302, 0x87e7841c, + 0x82112060, 0x07042200, 0x24df841a, 0x11211123, 0x225f8533, 0x86c08502, 0x27012162, 0xfe214f86, 0x27a784d1, 0x40280009, 0x04010525, 0x0024c682, + 0x03030063, 0xdc704d8c, 0x1a07260a, 0x2311252b, 0x82538203, 0x410226b6, 0x03851f9c, 0x24b98245, 0x0130fea1, 0x245a832f, 0x000100e8, 0x2044827b, + 0x25fb8281, 0x402d000d, 0xc746072a, 0x0505260a, 0x04005f04, 0x0a054104, 0x0d000d22, 0xc74aa982, 0x15012106, 0x21068144, 0x5c822111, 0xfe390326, + 0xc1c1c6c9, 0x032c5e84, 0x2dfd8f62, 0x028fd302, 0xa9fea900, 0x01268d82, 0x54fe9c00, 0x63825004, 0x4d00243f, 0x01194a40, 0x01120602, 0x01040203, + 0x01030301, 0x4c040100, 0x02000600, 0x69020603, 0x33728900, 0x4d1b0303, 0x00010100, 0x00010761, 0x4e001e00, 0x1b1d0001, 0x2c053648, 0x06080e10, + 0x24012400, 0x2b160708, 0x42511801, 0x1131270a, 0x06222310, 0xec851107, 0xcd733620, 0x31200805, 0x03061415, 0x2672501c, 0x3140224a, 0x69ef3f3a, + 0x03c63e92, 0xcbfd1914, 0xb972ab43, 0x54fea7d5, 0x07475118, 0x01d2013e, 0xfd444d0f, 0xa16205ae, 0x4b4539fe, 0x2afecde7, 0x009f9f6e, 0xfdff0200, + 0x6d04d1fe, 0x1031bb82, 0x2b001900, 0x01052840, 0x53030003, 0x01060600, 0x309f825f, 0x02074d1a, 0x04000002, 0x0404005f, 0x164e041b, 0x08008311, + 0x08101655, 0x272b1e07, 0x12023e33, 0x11211337, 0x03231133, 0x01230321, 0x02060721, 0x21070606, 0x33285403, 0x321b2727, 0x9c66c002, 0x1f06fd1f, + 0xfe45039c, 0x26161bb1, 0x022e3d2a, 0x6a28a13b, 0xd51901af, 0x3ffb9201, 0x2f0130fe, 0xf105d1fe, 0xeefecaf8, 0x552972b2, 0x042806b7, 0x02620522, + 0x00180006, 0x072a0f88, 0x01260229, 0x00000081, 0x5a180706, 0x5a180d37, 0x00230e7f, 0x82150001, 0x829b20aa, 0x00152bcb, 0x0f2e4031, 0x03000204, + 0xd0824c01, 0xb9480820, 0x04063205, 0x1a020202, 0x0207094d, 0x011b0101, 0x1114154e, 0x30ce8312, 0x0a101112, 0x012b1f07, 0x13230323, 0x33133303, + 0x23018211, 0x13033313, 0x21080f82, 0x07022311, 0xf0bac771, 0x6fb0b8d5, 0xb6b26fa2, 0xc5bef0d5, 0x8b02a26f, 0xde0275fd, 0xbafd8402, 0x03844602, + 0x22fd7c22, 0xa2821383, 0x2e088382, 0x04e7ff3d, 0x007b0540, 0x4044002c, 0x02292a41, 0x01070504, 0x12130403, 0x03030202, 0x0004004c, 0x03040203, + 0x05050067, 0x01066100, 0x591f0000, 0x20330862, 0x00014e01, 0x1e202527, 0x15171b1d, 0x2c000e10, 0x4a072c01, 0x16260535, 0x07061415, 0xbc61021e, + 0x2326250f, 0x32333723, 0x08b06118, 0x36274c08, 0x94320236, 0x7aa876d7, 0x815d9959, 0xfc96a6f0, 0xbb4f755a, 0xb1ab9b6d, 0xcf17f288, 0xa350834c, + 0x4caa707b, 0x05ea666c, 0x6aa25c7b, 0x08139580, 0x7c6a9250, 0x5f6671c3, 0x904b446b, 0xa177867c, 0x694c602d, 0x723c456a, 0x82005656, 0x009d34c7, + 0x05130400, 0x00100062, 0x0f214024, 0x00020207, 0x82014c01, 0x4d1a29b1, 0x02020304, 0x4e021b02, 0x3e08ef82, 0x11100010, 0x07051116, 0x11332b19, + 0x06141133, 0x33010706, 0x34112311, 0x9d013712, 0x0b0f08c1, 0xc1f5e201, 0x22fe0d15, 0x6dfd6205, 0x4d9bbb7d, 0x9efab304, 0x01a49302, 0x56fb640f, + 0x8400ffff, 0x07072563, 0x86012602, 0x06224c82, 0x0582ed07, 0x17880020, 0x17882920, 0x83ffbe21, 0x02300818, 0xd1fe9d00, 0x0707c704, 0x22000d00, + 0x47404a00, 0x04021521, 0x0b4c0102, 0x0403040a, 0x01004a01, 0x02000108, 0x00690001, 0x04050004, 0x01036305, 0x3d06ed41, 0x061b0606, 0x010e0e4e, + 0x0e220e00, 0x1b1c1d22, 0x1718191a, 0x080f1016, 0x010d0006, 0x66430a0d, 0x1737240c, 0x89010606, 0x033323c9, 0xcd851323, 0x7b540230, 0x147e0ca8, + 0x5c474657, 0xac0c7d14, 0xdd86cdfd, 0x9da2b424, 0xe1847c46, 0x707ffe2c, 0x3838401a, 0x7f701a40, 0xef8902fa, 0xfe43fb25, 0x872f012c, 0x010035f3, + 0x0000af00, 0x62059c04, 0x27000c00, 0x010a2440, 0x4c010300, 0x0b655b18, 0x054d1a2a, 0x1b010101, 0x11124e01, 0x10280082, 0x2b1c0706, 0x23112301, + 0x33379382, 0x01013301, 0x9a100223, 0x019cc7c7, 0x42fed193, 0x02eae401, 0x827dfd83, 0x02c22a6b, 0xfd7cfd3e, 0xff000022, 0x2c5f85ff, 0x26022307, + 0x00008a01, 0xbf070600, 0x8206822b, 0xff152477, 0x821304e7, 0x00122e77, 0x0c264029, 0x01010001, 0x00010b4c, 0x46078249, 0x0024080d, 0x4e001b00, + 0x12212d82, 0x207c8200, 0x075d5904, 0x06033408, 0x07020e02, 0x37033e27, 0xc6130413, 0x162ca6fe, 0x5c473931, 0x3f24553a, 0x48193439, 0x9efa6205, + 0x86febd04, 0xaef7fec0, 0x8f254f71, 0xf486461e, 0x824302cb, 0x2a8b8245, 0x04000039, 0x02620577, 0x84400006, 0x829d209b, 0x8283820f, 0x8428200f, + 0x8255200f, 0x055b2293, 0x200f827b, 0x20308247, 0x050f4201, 0x0724a382, 0x1e402100, 0x21094546, 0xb1430304, 0x0cbf5805, 0x21112124, 0x03822311, + 0xfe4d032a, 0x7603c616, 0x45fbbb04, 0x57848b83, 0x6782d620, 0x77846020, 0x0f845320, 0x67827520, 0x67847620, 0x0f840e20, 0x1f824a20, 0x1f846720, + 0x77846120, 0x1f822b20, 0x77829120, 0x260f4360, 0x00010000, 0x82020386, 0x011a227d, 0x6029824e, 0x07200543, 0x08104360, 0x66fe9126, 0x99c07d33, + 0x5682691d, 0x3efe4b26, 0x017901ce, 0xfc620556, 0x5fa57d18, 0x360e9912, 0xe9035263, 0x6d0393fc, 0x6b847b84, 0x02ff0625, 0x82940126, 0x07062351, + 0x068212c3, 0x03002108, 0xc3ff1700, 0x9f059904, 0x18001100, 0x47001f00, 0x01104440, 0x1a030402, 0x04000218, 0x05074c02, 0x00240b82, 0x80000403, + 0x3d05854d, 0x01067e01, 0x03010403, 0x03010657, 0x005f0103, 0x4f010301, 0x00001919, 0x1f191f19, 0x43821213, 0x11116808, 0x07081611, 0x15012b19, + 0x10111216, 0x23150702, 0x11022635, 0x35371210, 0x11060613, 0x13171614, 0x35363611, 0xb2022610, 0xebfceff8, 0xeffaedb4, 0x8f9805f8, 0x9eaa9e89, + 0x9f058f89, 0xcafe1279, 0xd1fed8fe, 0x7e0cc6fe, 0x3a010a7e, 0x28013101, 0x79123601, 0xdb06fefe, 0xe7f8fafe, 0xfcd3030d, 0xf8e70d2d, 0x84db0601, + 0x00352ad3, 0x057b0400, 0x00060262, 0x08b77277, 0x62051324, 0x4b591300, 0x0c012606, 0x02000301, 0x2b1b824c, 0x03000203, 0x02040569, 0x4d1a0101, + 0x82050949, 0x07616414, 0x61640720, 0x051f6a0d, 0x11352c08, 0x7d842401, 0xc6309068, 0x699d54c6, 0x6205ddb9, 0x7f89fdfd, 0x9b022f41, 0x27029efa, + 0xc1e0393e, 0x00001102, 0xfe9d0001, 0x828a04d1, 0x000b3c73, 0x00264029, 0x54040104, 0x00000102, 0x01034d1a, 0x60050101, 0x05050106, 0x184e051b, + 0x270b5161, 0x332b1b07, 0x21113311, 0x33310382, 0x9d032311, 0xc6ea01c6, 0x051f9c77, 0x0440fb62, 0x059e46c0, 0x59205783, 0x5720db82, 0x25265784, + 0x05062240, 0xba830303, 0x02010425, 0x82600002, 0x0530434d, 0x080f5e18, 0x2b1b0723, 0x83518601, 0x57042b5b, 0xf8b302fc, 0x6205f8a8, 0x57829efa, + 0xc4043c23, 0x820382fb, 0x01002336, 0xaf825900, 0x5782ce20, 0x2d000f29, 0x00002a40, 0x46540003, 0x0821069f, 0x22648207, 0x56600103, 0x0f2008fd, + 0x09c94f18, 0x2b1d0723, 0x85ab8225, 0x276183b3, 0xce041133, 0x46fc1f9c, 0xb3206583, 0x8306f748, 0x21038463, 0x1741003f, 0x41132006, 0x03220917, + 0x17418604, 0x275e8205, 0x05066003, 0x1b030302, 0x0d696218, 0x210a1741, 0x17410321, 0xa4fe2406, 0x41149614, 0xfa250519, 0x01d1fe9e, 0x058f452f, + 0x1b41b020, 0x00153608, 0x002d4030, 0x03010600, 0x67030004, 0x02020105, 0x04004d1a, 0x34c58704, 0x00000c0d, 0x150c0e10, 0x0b00150d, 0x21250b00, + 0x2b180707, 0x14eb4a01, 0x76012608, 0x2101fcc4, 0xfe9df289, 0xd69c0171, 0x508d5ad7, 0xfe6205ae, 0xa0dfcc09, 0x62055bc5, 0xcbfd70fd, 0x97737d31, + 0x267f837d, 0x003b0003, 0x82750400, 0x000a35db, 0x0016000e, 0x0038403b, 0x05010900, 0x69050006, 0x03070408, 0x06248384, 0x03600106, 0x2f055145, + 0x0b0b0f10, 0x11130000, 0x1610160f, 0x0e0b0e0b, 0x0a259482, 0x21240a00, 0x208c820a, 0x248c8213, 0x04141516, 0x05564423, 0x33057b4b, 0x6cfa1035, + 0xfbfef9fa, 0x04d1feea, 0xc5fdbf3a, 0x92877f81, 0xdb238c83, 0x41dce4d0, 0xfd2a05d2, 0x84c1fd76, 0x001a01a1, 0x00820002, 0x4b8d0421, 0x56180aff, + 0x022108b7, 0x0aff4b02, 0xf9570120, 0xb9561806, 0x19072111, 0x210c1141, 0xff4b3523, 0xae013209, 0x2101fcc2, 0xfe9df18a, 0x8602e974, 0x8e5bd6d8, + 0x06144151, 0x59c5a237, 0xfda6bc04, 0x30cbfd70, 0x7d97757c, 0xff020000, 0x04e7fffe, 0x318782b0, 0x00200017, 0x113d4040, 0x01050101, 0x0101104c, + 0x91860049, 0x4c05c879, 0x91870891, 0x0018192f, 0x181a1c00, 0x00201920, 0x11170017, 0x05914c24, 0x2a551120, 0x11232505, 0x030e0323, 0x85050446, + 0x35400897, 0xc9022634, 0xdbfff5f2, 0x0d2bb0c5, 0x2e473325, 0x2026175e, 0x02390b1b, 0x7f1e1d2c, 0x62058587, 0xdccf09fe, 0xc904d1ef, 0xdfb7a2fd, + 0x7e234b80, 0xb96d4018, 0xfded0292, 0x79bffd77, 0x008299ad, 0x0023ab82, 0x8400004f, 0x00113bab, 0x4038001b, 0x00010535, 0x0202070a, 0x69020008, + 0x04020609, 0x004d1a04, 0xbe410808, 0x12132908, 0x14160000, 0x1b131b12, 0x2005df44, 0x52a38211, 0xa387054a, 0x23112128, 0x21113311, 0x394d1311, + 0xca023f08, 0xdcfef5f1, 0xb8f6fec5, 0xd50a01b8, 0x76551c1c, 0x6205863d, 0xd2c2e0fd, 0xb102c4ea, 0x0b834ffd, 0xfd20022a, 0x2ce6fd4f, 0x72937178, + 0x08db5518, 0x027b0525, 0x825a0006, 0x012308a3, 0xe7ff6b00, 0x7b056d04, 0x46001f00, 0x01034340, 0x01040001, 0x01140102, 0x01150304, 0x4c040405, + 0x18000200, 0x49095a42, 0x043906d1, 0x00610504, 0x05200505, 0x1900014e, 0x0d101217, 0x070a0b0c, 0x011f0005, 0x06d1491f, 0x26071733, 0x06062223, + 0x21152107, 0x3233021e, 0x06173736, 0x13681806, 0xc3320808, 0x6352bc88, 0xae669e89, 0x50020c73, 0x6e08acfd, 0x96716db2, 0xd1416534, 0xf1feaf97, + 0x1001a49b, 0x41487b05, 0xc9596276, 0xd8ada2a7, 0x7b2d4865, 0x68185f3d, 0x01220918, 0xaf824b00, 0xaf823c20, 0x40001c2f, 0x191a3d40, 0x0a050402, + 0x03020209, 0x207b4a02, 0x13151727, 0x0e101112, 0x22a9820c, 0x851c011c, 0x110024a9, 0x4c210010, 0x37240884, 0x26213521, 0x4b08b983, 0x36362707, + 0x01fe1702, 0xfeccfe27, 0x4fe189fc, 0x5f994671, 0xfd0cbdad, 0x0d4f02b1, 0x9a719fb8, 0xd950693d, 0xa5fe7b05, 0x96fea2fe, 0x50608ffe, 0xec413e71, + 0xd0faa0ff, 0x4672314e, 0x00ffff64, 0x030000c5, 0x026205eb, 0x002b0006, 0x1b5f6218, 0xe8ff8622, 0x36382786, 0x01000000, 0x0000f6ff, 0x62057204, + 0x37001700, 0x01033440, 0x01120103, 0x0126d984, 0x01020300, 0xc0586903, 0x4d1a2409, 0x4a020104, 0x172f06a3, 0x13111700, 0x11231323, 0x2b1c0708, + 0x18210701, 0x08125c40, 0x0335212a, 0xc6fe1543, 0xb35b8936, 0x715ec4b1, 0xc3257056, 0x6205c5fe, 0x3254fe9e, 0xfecad140, 0x87e90111, 0xfd224276, + 0x9ec4047e, 0x2f088782, 0xff580002, 0x058904e7, 0x0013007b, 0x4b730023, 0x585013b0, 0x05002140, 0x05070200, 0x01096702, 0x61000606, 0x00020804, + 0x004d1f00, 0x61010707, 0x086f4f18, 0x23872920, 0x04040024, 0x28854d1a, 0x044c0820, 0x03032205, 0x362c851b, 0x20010100, 0x40594e01, 0x0114151b, + 0x141b1d00, 0x11231523, 0x420e0f10, 0x13310642, 0x070a1301, 0x32012b16, 0x02101112, 0x02262223, 0x061b4a27, 0x17121223, 0x626a1822, 0x364a0808, + 0x26263435, 0xa6d80b03, 0xa58fceb0, 0xb57f0447, 0xac0c81b5, 0x255346c5, 0x41465325, 0x53282854, 0x96fe7b05, 0xa6fe9ffe, 0x01a391fe, 0x84fdc929, + 0xb6fd6205, 0x3c012701, 0xd4f4679a, 0x6768f6d3, 0xf5d4d3f5, 0x00020068, 0x034c0039, 0x000d2805, 0x40330016, 0x18010730, 0x4410635a, 0x02200546, + 0x2208c482, 0x004e001b, 0x10141600, 0x000d000e, 0x1111110c, 0x2b190707, 0x11231101, 0x01230121, 0x34352626, 0x52172124, 0x2c080630, 0xc6130433, + 0xe5fee3fe, 0x784101dc, 0x010d0178, 0x98c3b303, 0xe1848c96, 0x9efa6205, 0xdffd2102, 0xc2364c02, 0x98d7c681, 0x8088877f, 0x3d008200, 0xfef6ff01, + 0x057204e6, 0x001f0062, 0x0137403a, 0x18000101, 0x02010201, 0x020c0d4c, 0x20834902, 0x01000229, 0x02050669, 0x4f040303, 0xfb4106d1, 0x001f2a07, + 0x1311111f, 0x0707232f, 0x4f8c821b, 0x14200634, 0x2107b37f, 0x514f2634, 0x21353007, 0x36f40107, 0xb1b3588c, 0x326ea157, 0x42225c56, 0x03370704, + 0xc404154d, 0x432f54fe, 0xd1fecad1, 0x2570b68f, 0x75512399, 0x42280159, 0x9e29080f, 0x00010000, 0x04e7ff1f, 0x3f9f8292, 0x40340030, 0x03010b31, + 0x004c0104, 0x02030204, 0x07800304, 0x02020206, 0x01054d1a, 0x62000303, 0x0023b982, 0x824e0020, 0x003039b2, 0x27132330, 0x08272417, 0x012b1c07, + 0x15121616, 0x23060214, 0x06272622, 0x022b0583, 0x36123435, 0x06063337, 0x74141502, 0x112105a6, 0x05f56e33, 0x35365b08, 0x27260234, 0x431c0204, + 0x60945331, 0x201d7262, 0x9853616e, 0x1b443261, 0x233e28b7, 0x2e334d2c, 0x354bb646, 0x252b492c, 0x6205253f, 0xd8fed84a, 0xeefee3c1, 0x62626b7b, + 0x1101776b, 0x2801c1e8, 0xe66f4ad8, 0xb0a6f5fe, 0x705858cd, 0x35fecd01, 0xc9485d6d, 0x0c01a8c1, 0x96826ee7, 0x00020027, 0x04000014, 0x39cb8276, + 0x001d0013, 0x03364039, 0x01040101, 0x00010500, 0x00050067, 0x08050708, 0xcf830069, 0x0707002a, 0x01096006, 0x061b0606, 0x1d29ce82, 0x0014161b, + 0x21120013, 0x20008311, 0x28d2820a, 0x35211121, 0x15333521, 0x20018221, 0x06d25233, 0xad4e2720, 0x23490807, 0xe9fe2b01, 0x01c61701, 0x82d7fe29, + 0x891b01e8, 0x7e709bf1, 0xa4508c59, 0x2104838c, 0x8bb6b68b, 0x9cd2cfc3, 0x339d5cc5, 0x78936e7b, 0x00010000, 0x04e7ff4a, 0x007b05a9, 0x40a40023, + 0x0601130e, 0x04011403, 0x09012306, 0x0abe6801, 0x0108042a, 0x01040901, 0x06060067, 0x24059956, 0x09004d1a, 0x05866a09, 0x4e002023, 0x05d9581b, + 0x01072522, 0x02222893, 0x2d851b02, 0x00000023, 0x212c8220, 0x278a2940, 0x82030321, 0x0606284a, 0x05006105, 0x824d1f05, 0x292b8cfe, 0x0e405959, + 0x12111f21, 0xfb822225, 0x0a221224, 0x26701f07, 0x03002105, 0x20079a43, 0x08bf5600, 0x07064d08, 0x12211521, 0x36323316, 0x36a90437, 0xfede6787, + 0xc5850dfa, 0x011587c5, 0x785bd80f, 0x4f2b5739, 0x13a58037, 0x4afeb201, 0x4686a30b, 0x2844275c, 0x014e0135, 0x058dfd3e, 0x01b5fd63, 0x2838012b, + 0x18197e27, 0xfea0fbd0, 0x1626e8fc, 0x3705af41, 0x0400001f, 0x00620592, 0x000e000b, 0x0027402a, 0x02010406, 0x68020601, 0x1a261d82, 0x0305074d, + 0xe3530103, 0x0d0e2105, 0x0b202282, 0x112aa382, 0x1b070811, 0x3301332b, 0xa2842301, 0x0103233d, 0x011f2103, 0xbd01fabc, 0xb06daacf, 0x6f01aa6d, + 0x052a0195, 0x029efa62, 0x83cbfd35, 0xc5042303, 0x4e8210fe, 0x3e000226, 0xb7040000, 0x133c6b82, 0x32001600, 0x010a2f40, 0x02060803, 0x00030100, + 0x02010468, 0x0b4d1a02, 0x04050709, 0x16216f86, 0xba691815, 0x070c250c, 0x13212b1f, 0x20061241, 0x3f7b8b13, 0x87360133, 0xe9b8b8c7, 0x4401f99b, + 0x9b437bb9, 0x0b017b43, 0x3d02e170, 0x6205c3fd, 0x92026efd, 0x0b828782, 0x04230f83, 0x84f6fdda, 0x82402087, 0x82702087, 0x00113b87, 0x40390014, + 0x02030636, 0x4c010108, 0x06000102, 0x00030401, 0x08006704, 0xbe520108, 0x20908205, 0x06e14a03, 0x48131421, 0x122f0737, 0x070a1112, 0x13332b1d, + 0x21350333, 0x51330115, 0x280805ea, 0x01032311, 0xe0402113, 0x5403ff90, 0xd49dfafe, 0xb669a1b2, 0x6c01a369, 0x0228feec, 0x7de901fc, 0xfd17fe7d, + 0xfd6e0204, 0x22038492, 0x82df01fc, 0x0200238a, 0x8b822100, 0x8b82e220, 0x1a00173d, 0x3d404000, 0x0b020508, 0x034c0100, 0x07090101, 0x01040502, + 0x0b006705, 0x4b5f000b, 0x0c340573, 0x0406080a, 0x041b0404, 0x1a00004e, 0x00170019, 0x11151617, 0x91820083, 0x070d1123, 0x05904c1f, 0x03209483, + 0x23239489, 0x82112313, 0xb8213b98, 0x03dc7f01, 0xb991e400, 0xb55688b0, 0xa1b08a56, 0xcc2502d7, 0x620569fe, 0x9d909afd, 0xfc23a583, 0x8200e001, + 0x9e30089f, 0x120451fe, 0x06001e07, 0x37002900, 0x01193440, 0x01140302, 0x4c020401, 0x01040506, 0x294a0004, 0x00490101, 0x85000300, 0x01000400, + 0x00630104, 0x2706415f, 0x224e021a, 0x122e1211, 0x2a056161, 0x37252305, 0x35240317, 0x52373634, 0x73080571, 0x21013523, 0x01152135, 0x15163233, + 0x07060614, 0x1415020e, 0x35031716, 0x7ef1fe50, 0xfd52effe, 0x9ff0fe6f, 0x92aa98ac, 0x9d01da8f, 0x3003b8fd, 0xe02d54fe, 0x72c074e3, 0x4b286861, + 0x5c1e0747, 0xa25cdede, 0xab71d5f7, 0x13167165, 0x7387807f, 0xa1d30189, 0xd22ffe9e, 0x64b07fb9, 0x251c0c0f, 0x2444271d, 0xffff0000, 0x00001a00, + 0x62059604, 0xae020602, 0x270d3350, 0x0000e401, 0x32000100, 0xa42e1f82, 0x12007b05, 0x0a404600, 0x02000112, 0x0482010b, 0x217e4c20, 0x07e6550f, + 0x8205217e, 0x36f3820d, 0x03030061, 0x01004d1f, 0x4e011b01, 0x1124b659, 0x07042213, 0x48012b1a, 0x012705e2, 0x01330123, 0x82363613, 0x172b08e0, + 0x1d106f04, 0x0f2a2511, 0xfee1cffe, 0x2a01d571, 0x64761eee, 0x041d452b, 0x310806d8, 0x0580fb35, 0x036ffb62, 0x126a79c7, 0x85ffff0f, 0xd207258f, + 0xb6012602, 0x07319e82, 0x88ffa507, 0x09004401, 0xb80201b1, 0x35b04401, 0x2477822b, 0x55fe0c00, 0x31b38304, 0x0018000c, 0x40730026, 0x0201210a, + 0x1a4c0105, 0xd97e0001, 0x821e2006, 0x61012199, 0x1f319982, 0x0501064d, 0x084d1c05, 0x00020201, 0x02070461, 0x059f4400, 0x208f2220, 0x04040023, + 0x2125861b, 0x24840107, 0x40592208, 0x010d0e19, 0x20222300, 0x141d1e1f, 0x0e180d12, 0x00060818, 0x090c010c, 0x052b1607, 0x34110222, 0x24dc8212, + 0x02101112, 0x064e4827, 0x11024808, 0x27011210, 0x23373636, 0x13133303, 0x06060333, 0x8faa4501, 0xab72893e, 0x53ab8d8d, 0x54533a3a, 0xc4013f3a, + 0x1568581c, 0x749ea24c, 0x1da3a06d, 0x770119aa, 0x01dc5001, 0x85feaf42, 0xaffeb0fe, 0x019088fe, 0x822b010e, 0xfe112401, 0x82d5feed, 0xf4230801, + 0x1c83defd, 0x1e048785, 0x92036efc, 0xc5bbdcfb, 0x00010000, 0x04d1fe15, 0x006205c6, 0x403c0019, 0x55040f39, 0x0a2d07a7, 0x03070001, 0x07006700, + 0x08070800, 0x060e4f63, 0x51090b21, 0x555f05fc, 0x08b25505, 0xb2550c20, 0x11332313, 0xb6550323, 0x60bb2413, 0x55381d94, 0xc33e15b9, 0x2f0130fe, + 0x75fd8b02, 0x00ffff00, 0x041bfe3d, 0x027b0540, 0x00850126, 0x07060000, 0x0682f1c7, 0xaf20af82, 0x9d20af82, 0x1024af82, 0x2d403000, 0x2009b353, + 0x25ac8305, 0x05060005, 0xff446306, 0x4e072005, 0x11200568, 0x1023a585, 0x531e0708, 0x9e840cbc, 0x240bc053, 0x1f9c6b7a, 0x0cc35330, 0x74828e84, + 0x26092754, 0x403b0014, 0x56010f38, 0x092009ca, 0x042d7583, 0x0109010a, 0x06670904, 0x1a020201, 0x8277864d, 0x00142137, 0x2806d556, 0x0b111111, + 0x012b1f07, 0x06724511, 0x08084054, 0x1123012d, 0xbf5dcb01, 0x316c5dbf, 0xfecb4301, 0xda9a018c, 0x0131a6fe, 0xfd5a012c, 0xfd62057a, 0xfe5201c0, + 0xfd4002ae, 0x0222fd7c, 0x85a6fe86, 0x004124ff, 0x82960400, 0x00142dff, 0x12334036, 0x01070001, 0x0301054c, 0x072d7b82, 0x00670203, 0x01000007, + 0x08670007, 0x05d54a01, 0x1b010125, 0x18144e01, 0x2108b46f, 0x86830a10, 0x23298583, 0x33353335, 0x23153315, 0x06ca5415, 0xc79a323b, 0xdac79090, + 0x6c019bda, 0x016afed1, 0x8302eabc, 0x21047dfd, 0x8db4b48d, 0x06d154fd, 0x13000122, 0xb1207b82, 0x0e327b82, 0x2a402d00, 0x0400010c, 0x04004c01, + 0x04010000, 0x48186700, 0x1a220891, 0x3455064d, 0x1011240a, 0x411d0707, 0x23230578, 0x86112135, 0x8748366c, 0xae01e9c5, 0xd1710188, 0xc20164fe, + 0xfd8402ea, 0xa6bc047c, 0x083a55fd, 0x00215282, 0x0643529c, 0x30000f28, 0x03002d40, 0xe1410000, 0x58082010, 0x0c54063c, 0x84112006, 0x82092000, + 0x0537506e, 0x2b094e52, 0x16fe4c03, 0xea01c6c6, 0x1f9c78c6, 0x090b7118, 0x23075652, 0x7c000100, 0xbe20d782, 0x0d20d782, 0x6b83d783, 0x82030121, + 0x050523d1, 0x4b425f02, 0x42062006, 0x698205f7, 0x890c975a, 0x07213068, 0xdc021121, 0xc7c767fe, 0xe2019901, 0x89fafe16, 0xfba22267, 0x24cf8340, + 0x0454fe36, 0x3663829f, 0x40490022, 0x06010746, 0x01012103, 0x05011506, 0x04011401, 0x824c0405, 0x01062475, 0x55690603, 0xde850969, 0x05004d2b, + 0x00610405, 0x041e0404, 0x261b824e, 0x25220022, 0x82232525, 0x4de889ea, 0x14210845, 0xe76b1806, 0x3411340a, 0x07222326, 0xfe010211, 0x8802bdf2, + 0x833f6127, 0x5a81aa97, 0x2108089d, 0x4e533d46, 0x43fbbd04, 0xd9fd6205, 0x8cab2a24, 0xa09b3dfd, 0x157b1d30, 0x024d4619, 0x44494cd0, 0xc7535efd, + 0x402a220d, 0x23a18227, 0x63040304, 0x0621a089, 0x08154105, 0x410b7453, 0x8b5a0514, 0x06105605, 0x1f9c7722, 0x41051356, 0x33080873, 0xff430002, + 0x058c0409, 0x002d007b, 0x404c0037, 0x02010b49, 0x04010c01, 0x03013102, 0x02252c05, 0x4c040300, 0x00022829, 0x00040049, 0x05040305, 0x02020069, + 0x22068445, 0x59030300, 0x203e05af, 0x00014e00, 0x1e203436, 0x0d0f1518, 0x2d000709, 0x07072d01, 0x22052b16, 0x34350226, 0x73183612, 0x142a0aef, + 0x32331616, 0x35262633, 0x16833634, 0x14157d08, 0x16160702, 0x26260717, 0x14130627, 0x27361716, 0x06222334, 0xfba77102, 0x90f8978c, 0x6652a87f, + 0x9b568e7f, 0x689f5960, 0x493c0b0c, 0x975f9151, 0x247d82ab, 0x307b2a50, 0x06402b5d, 0x01a0343d, 0x19464684, 0xe83f01a4, 0xa23e01e9, 0x667e4247, + 0xc6cef268, 0xb85e6ef3, 0x5b9d6461, 0xfe8998ba, 0x662f4cfc, 0x763f5c39, 0x1d020f38, 0x5a4fa15f, 0x006abbff, 0x75000100, 0x76041cfe, 0x302af382, + 0x41404400, 0x00010103, 0xd6820412, 0x13162033, 0x1f020403, 0x04040301, 0x0102004c, 0x04020104, 0x24f68280, 0x66030403, 0x36238200, 0x00010561, + 0x4e011f00, 0x22240001, 0x0e101b1d, 0x30000608, 0x82063001, 0x7d0120e9, 0x781808cb, 0xda820bd0, 0x09421520, 0x2634240c, 0x18262627, 0x3517e378, + 0x4578ac39, 0x44778c50, 0x172f225f, 0x39393141, 0xea954e48, 0x7818a386, 0x383b11f1, 0x772c0b56, 0x1e7c654a, 0x180c6f14, 0x763b333d, 0x01af1333, + 0x01e8d42f, 0x8200a33e, 0x00013600, 0x04d1fe4a, 0x00620567, 0x402a000b, 0x05010627, 0x00050000, 0x68cb8263, 0xf2470503, 0x0ef45507, 0x3b06315e, + 0x21072135, 0x9c2f0311, 0x58fe821f, 0xfe151d04, 0x30fea166, 0xbd042f01, 0xe4fba5a5, 0x08af6118, 0x02620525, 0x84780006, 0x0025246b, 0x828b0400, + 0x000e2a6b, 0x0b2c402f, 0x01040301, 0x094d5e4c, 0x01056822, 0x240c495e, 0x120e000e, 0x25008311, 0x2b1c0708, 0xfd441501, 0x33012206, 0x08028201, + 0xfdb90323, 0xfec5fdc8, 0x5c01db69, 0xfecf6001, 0x8e750268, 0xe70119fe, 0xfded028e, 0xfda2025e, 0x00010013, 0x20d78235, 0x206b8285, 0x286b8310, + 0x06090c0f, 0x01030504, 0x24e0894c, 0x4d1a0303, 0x05f14402, 0x2805845b, 0x11131212, 0x1b070711, 0x23dc842b, 0x23010131, 0x6c826983, 0x8504012e, + 0xfe2f1f9c, 0xd5b6feb9, 0x7afeaa01, 0x08f86218, 0xed845220, 0xfd5f0230, 0x02de02a1, 0x02fdfd84, 0xfd86fd03, 0x7b8200b9, 0x7b820020, 0x7b826820, + 0x31000f2b, 0x06002e40, 0x02540603, 0x21178201, 0x6f82045f, 0x2305c74e, 0x01086007, 0x07206b82, 0x0e656618, 0x2b1d072a, 0x35231133, 0x11230721, + 0x33059f56, 0xf4f40323, 0xe115ae02, 0x64c48801, 0xc9041e9a, 0xd9fb9999, 0x82095957, 0x5d002153, 0x08066f45, 0x38001720, 0x01143540, 0x01050304, + 0x4c020402, 0x02000400, 0x69020406, 0x00060107, 0x63000600, 0xf0830105, 0x26080f57, 0x13170017, 0x6a231323, 0xf084056e, 0x4f072958, 0x37340624, + 0x04113311, 0x821f9c8a, 0xb9699d54, 0x7d84c7dd, 0xc6309068, 0x2720f085, 0x58053058, 0xfb210742, 0x0caf583f, 0x67001b30, 0x01040c40, 0x0c060502, + 0x05030209, 0xf6634c02, 0x001f3105, 0x02030005, 0x04690305, 0x1a000001, 0x0202004d, 0x2005266b, 0x063b4a1c, 0x1d401b22, 0xb2832187, 0x06010224, + 0x2a866702, 0x1b010127, 0x40594e01, 0x3066820f, 0x131b001b, 0x11153113, 0x1c070815, 0x3611012b, 0x20a68336, 0x28ba8223, 0x35231507, 0x26222322, + 0x30b68235, 0x11171614, 0x65447f02, 0x35c6c625, 0x0a773663, 0x28bf820b, 0x3a046f75, 0x380c25fe, 0x05f25824, 0x0e332730, 0xc1e0bfce, 0xfdfd1102, + 0x01077f81, 0x375b00e2, 0x05513205, 0x00120062, 0x10304033, 0x0b000201, 0x02020101, 0x0b8d644c, 0x82050859, 0x00012d8c, 0x0c0d0e0f, 0x04050709, + 0x12011200, 0x2206d243, 0x60231115, 0x3320085e, 0x02349a82, 0xc6d5b9c3, 0x3e9269ef, 0xab43c6c6, 0xcde78a03, 0xd4012afe, 0x23074160, 0x4b4598fd, + 0x7783cf82, 0x04d1fe23, 0x377782b2, 0x403e0017, 0x0401153b, 0x01011000, 0x074c0204, 0x04000001, 0x69040001, 0x02262282, 0x00630201, 0x39420606, + 0x031b2e05, 0x1400014e, 0x0e111213, 0x0708090c, 0x23828206, 0x08170117, 0x20055544, 0x21fd8215, 0x12650323, 0x2f87830b, 0x72d4bfad, 0x797e1f9c, + 0x36875e82, 0xa23cc6c6, 0xcb328b84, 0x2f0130fe, 0x8a85d401, 0xabfd424c, 0xa1fd6205, 0x8f83493e, 0xffff023e, 0x7104e7ff, 0x24007b05, 0x43002b00, + 0x03044040, 0x1b060002, 0x1c020301, 0x03030401, 0x052a9683, 0x00030201, 0x01086902, 0xd9450606, 0x042d0809, 0x04040061, 0x264e0420, 0x25282925, + 0x122b262b, 0x23152325, 0x1c070918, 0x3634032b, 0x06061737, 0x33331415, 0x32331212, 0x06141112, 0x0bb15507, 0x03023e08, 0x22012626, 0x02210306, + 0x1c2f0126, 0x6617107b, 0xc1f31109, 0x0303dec1, 0x4c0362fd, 0x70584d7e, 0xa43a5830, 0x0cfdd173, 0xd2028885, 0x010d886f, 0x037b08ee, 0x29644252, + 0x25422337, 0x3ec48267, 0xfea3fe53, 0x1b3914ac, 0x385fd3ae, 0x51327121, 0x3d013e01, 0xf4018c01, 0x01fdfee7, 0x8200dd0d, 0xfeff22d1, 0x82d3832d, + 0x82ce2061, 0x070623e4, 0x068261b9, 0x26124355, 0x04000015, 0x8207079b, 0x5f842027, 0x003d094b, 0xfe9d0001, 0x053e0454, 0x001e0062, 0x073c403f, + 0x12010501, 0x11060401, 0x03040301, 0x3b1d824c, 0x05010605, 0x00010267, 0x074d1a00, 0x1b060601, 0x0404004d, 0x03006103, 0x4e031e03, 0x1e2d4682, + 0x25251e00, 0x11111127, 0x2b1c0708, 0x06434a33, 0x15161623, 0x0cec4511, 0x26341131, 0x9d112323, 0x5201bac6, 0xb698fecf, 0x478da7a8, 0x832f08f3, + 0x6205e99f, 0x5702a9fd, 0xd718a2fd, 0x1833feb6, 0x2f08d973, 0x8489d801, 0x010096fd, 0xd1fe1d00, 0x62059304, 0x29055150, 0x0401010e, 0x0100010d, + 0xfd634c02, 0x078e4e08, 0x82066b43, 0x00162394, 0x92821e16, 0x1a07062a, 0x2303252b, 0x21112313, 0x2c0aa25e, 0x93041121, 0x81469da2, 0x172ce2fe, + 0x0aa75e30, 0xa5910226, 0x2f012cfe, 0x2112aa5e, 0x538243fb, 0x20052741, 0x25878213, 0x40410017, 0xbb63043e, 0x4c022a06, 0x02000500, 0x67020503, + 0x05e04506, 0x1811b763, 0x2407df55, 0x06080b0c, 0x07ce4200, 0x21083257, 0x94581135, 0x11332607, 0xdf020614, 0xf6741850, 0x061d4a07, 0x2109a263, + 0x7b18fd02, 0x30220830, 0x5f439f9f, 0xfe872405, 0x828804d1, 0x3f8f4a93, 0x1323032f, 0x3ffe0e03, 0xc101c6c6, 0x9da2b4c6, 0x09284a46, 0x45059e60, + 0xff85078b, 0x2f403228, 0x02030111, 0x04820102, 0x03004c28, 0x03000100, 0x90826901, 0x4c000621, 0x003207e7, 0x051b0505, 0x1311114e, 0x10231323, + 0x2b1d0707, 0x82453325, 0x03232512, 0x8fbe0223, 0x250b8345, 0xa19c1f9a, 0x82458601, 0x9efa230d, 0x7f83d1fe, 0xeb822620, 0xeb82c120, 0x3c00183c, + 0x0c153940, 0x04020309, 0x02004c01, 0x02040604, 0x01078006, 0x06040106, 0x28837e01, 0x6b478620, 0x46032005, 0x182608ff, 0x11121800, 0xa4421616, + 0x82252005, 0xdf7718eb, 0x212e0812, 0xa3c10413, 0x265d469a, 0x01010405, 0x01c9babd, 0x20040202, 0x01014eb7, 0x0301acb6, 0x2cfea545, 0xbb022f01, + 0x289dc562, 0xb2034efc, 0x7718a429, 0xfb2f09e7, 0x00ffff43, 0x0400001f, 0x02070792, 0x43010026, 0x8418095b, 0xff211903, 0x05db4be8, 0x00060224, + 0xc764000b, 0x643f8209, 0xed2106c7, 0x3646822a, 0x51000200, 0x5704e7ff, 0x17007b05, 0x37001e00, 0x0a0b3440, 0x82010002, 0x000026f4, 0x05000405, + 0x260b8267, 0x02006102, 0x824d1f02, 0x059543fc, 0x03202c08, 0x1c18194e, 0x191e181b, 0x2225251e, 0x1a070713, 0x3634132b, 0x26022137, 0x07062223, + 0x33363627, 0x14110032, 0x22230602, 0x82320500, 0x12410817, 0x04035116, 0xad093503, 0x43906496, 0x86cb5263, 0x7d0e01ff, 0xfef1a0e8, 0x8b0302f0, + 0x84fd0ea0, 0x9902a10a, 0x011b3814, 0x3143dd03, 0xfe574672, 0xe6a5fea2, 0x01adb8fe, 0xfbe5c15e, 0xffdcfcfe, 0x37a385ff, 0x2602e606, 0x0000dc01, + 0xbc070601, 0x080001f1, 0xb00202b1, 0x2b35b001, 0x15201f82, 0x9b22eb82, 0x7744e506, 0xffbc2108, 0x1782db82, 0xdb823d20, 0x17844020, 0x10828520, + 0xf8203782, 0x00230682, 0x82830001, 0x052d3417, 0x001c0062, 0x14434046, 0x0f040301, 0x04050201, 0x67020101, 0x0527062b, 0x05010200, 0x57006702, + 0x012109cc, 0x0a7b4b01, 0xa55a1720, 0x06082306, 0xa55a1c00, 0x43052005, 0x3422096c, 0x97522326, 0x0230080e, 0x53c39b34, 0x70934a63, 0x83949b91, + 0xfdb001ea, 0xfe3403ae, 0xd9f41f51, 0x5319e37b, 0x3d337747, 0x707f8393, 0xa1ab0189, 0xd45cfe9e, 0x6fc681af, 0x2109a762, 0x7f64c206, 0x86c62008, + 0x829d20d3, 0x841320eb, 0x858620d3, 0x181786d3, 0x2108d377, 0x17898f01, 0x00030022, 0x052b1784, 0x000f007b, 0x001d0016, 0x82344037, 0x04052613, + 0x06670503, 0x085a4c01, 0x04010725, 0x82610004, 0x00203b36, 0x1117184e, 0x171a1b10, 0x141d181d, 0x11161013, 0x08232616, 0x012b1807, 0x14580214, + 0x32333108, 0x22011216, 0x26210706, 0x36320326, 0x16162137, 0x0dd37818, 0x96fdfd30, 0x64020c91, 0x9e96900b, 0x98fd068f, 0x78189406, 0x012b10db, + 0xe8e8ec53, 0xfcaefbec, 0x18fcf2f2, 0x8408d778, 0x8ce420d3, 0xff4b24d3, 0x843c04e7, 0x85a42017, 0x82e62017, 0xffff2206, 0x05bf6200, 0xbf62c220, + 0x13c62108, 0xe520178b, 0xbc201788, 0x0721178b, 0x2117887f, 0x2f856dc0, 0x4b415d20, 0x85982008, 0x85e9205f, 0x823b2017, 0x84752017, 0x899e2077, + 0x01002f8f, 0x54fe7e00, 0x62059d04, 0x55001d00, 0x2f425240, 0x4c023c07, 0x02030900, 0x80020903, 0x08040107, 0x04090301, 0x06006703, 0x005f0506, + 0x571a0505, 0x012606aa, 0x0a610001, 0x65690001, 0x0d9c7105, 0x080b0c28, 0x011d0006, 0x04660b1d, 0x3535350c, 0x35231123, 0x07211133, 0x15211121, + 0x11331121, 0x66010614, 0x2008b945, 0x06066a7c, 0xfe370124, 0xbf457cc9, 0x6a7b2009, 0x8f270711, 0xf1fecefd, 0x82009f9f, 0x821820b3, 0x828c20b3, + 0x001b2bb3, 0x16464049, 0x040d1013, 0xba870406, 0x004c0329, 0x04020406, 0x44800206, 0x022107cf, 0x0f136a02, 0x15171827, 0x0f111214, 0x22a7840e, + 0x6a1b011b, 0x23200f13, 0x830ae84b, 0x580321a5, 0x20087847, 0x12f34b48, 0xad8b8c20, 0x850efa4b, 0xffff22b2, 0x07cb6300, 0x77002622, 0x473ec282, + 0x4cffc504, 0x3353b000, 0x08003939, 0xb00101b1, 0x2b35b0b0, 0x02000000, 0x00005900, 0xdb820004, 0x000b6c08, 0x40320014, 0x0001002f, 0x04010304, + 0x02020067, 0x01064d1a, 0x60000303, 0x00000105, 0x0d4e001b, 0x1000010c, 0x0d140c0e, 0x08090a14, 0x010b0006, 0x1607070b, 0x2622212b, 0x24343526, + 0x33113333, 0x11332511, 0x15062223, 0x5e021614, 0x0187e995, 0xc6d0f31e, 0xd1d763fe, 0x5cb0a796, 0xe6d091bd, 0x9efa0202, 0x8829029d, 0x82769794, + 0xff122477, 0x829204e4, 0x00203c77, 0x4049002b, 0x021e2446, 0x4c010703, 0x07010400, 0x80070401, 0x07000100, 0x5a070103, 0x092205a4, 0x87820206, + 0x08056222, 0x2f053555, 0x00012122, 0x2b212527, 0x1b1d2b22, 0x0c0e1415, 0x20238e84, 0x4f0a2001, 0x8e8205c0, 0x8e843620, 0x3233142b, 0x34353636, + 0x16332726, 0x05746916, 0x06062726, 0x37363227, 0x4408a586, 0x8f524b01, 0x59d7e158, 0x42276aba, 0xba040628, 0x98580604, 0x2f4bac60, 0x533e337e, + 0x89745a27, 0xb85c1c5d, 0x02fade8a, 0xb4cefb08, 0x498ea244, 0x7c3a3f7a, 0x6de9ba48, 0x984e4c9a, 0xaf014f4e, 0x7591a99d, 0x26008200, 0xff2f0001, + 0x828104e7, 0x012831cb, 0x0111b517, 0x4c010006, 0x500cb04b, 0x041f4058, 0x0128c682, 0x06000306, 0x01010067, 0x2207fd6c, 0x60050303, 0x1b230656, + 0x820eb04b, 0x00262b26, 0x01000104, 0x00800004, 0x2d9d0700, 0x54a50f20, 0x54ac1020, 0x54a31120, 0xa4a64020, 0x00835920, 0x000f4033, 0x00280000, + 0x28162628, 0x08212421, 0x132b1c07, 0x05a86f35, 0x3523232c, 0x15042033, 0x13070614, 0x9f411616, 0x26620810, 0x90680327, 0xa7979b8e, 0x0401b6b4, + 0x92950b01, 0x3d512a8f, 0x062d4e31, 0x0505c104, 0x856ca45d, 0x029c40a9, 0x8a769645, 0xc698707f, 0x2cb392c1, 0x4e5cc1fe, 0x4293a644, 0x7b3b3f79, + 0x6eecbd44, 0x4a018b89, 0x8c000100, 0x5904d1fe, 0x18006205, 0x35403800, 0x03020117, 0x03004c01, 0x03060200, 0x8b4e6702, 0x04002207, 0x075d4404, + 0x7b010121, 0x18220564, 0xad821800, 0x2e06244b, 0x03231125, 0x35210123, 0x35363221, 0x82232634, 0x33b68508, 0x9c590401, 0x94fe4d1f, 0x3001e1fe, + 0x98949b8e, 0x560199fe, 0xbd23ab83, 0x4e27018a, 0x4522059a, 0x9f837597, 0x9bc2c530, 0x42fe24bd, 0x01000000, 0xe4ff0700, 0x8f829904, 0x2e002428, + 0x01012b40, 0x8f820103, 0x01040226, 0x80010204, 0x00278782, 0x0000005f, 0x82004d1a, 0x00613718, 0x03200303, 0x1626134e, 0x07051722, 0x27172b1b, + 0x1337033e, 0xca421121, 0x35262111, 0x2a08a082, 0x06060206, 0x2c1c676e, 0x2d0f2024, 0x27691602, 0x05052842, 0x570604ba, 0xa7796098, 0x280f21af, + 0x84194c37, 0xf88a491c, 0x424502cb, 0xa82a0ec3, 0xfe8e03ad, 0xf7fed62c, 0x9f82629d, 0xe4ff5c24, 0x9f829c04, 0x6f001e2b, 0x5011b04b, 0x00234058, + 0x219e8207, 0x9e820107, 0x06010025, 0x4f670104, 0x062406ba, 0x02620006, 0x22068643, 0x9627401b, 0x02022425, 0x83004d1b, 0x5808202a, 0x172a07c1, + 0x17180001, 0x0c0d0f11, 0x304e0a0b, 0x011e2306, 0xaf43091e, 0x0c5a4b05, 0x080e1242, 0x794c0322, 0xbbebfea7, 0xbb1501bb, 0x28412869, 0x05bb0406, + 0x1c985705, 0x4901ada8, 0x62057efd, 0x4102bffd, 0x0035d88e, 0x00ffff00, 0x04e7ff54, 0x027b053f, 0x00230006, 0x00010000, 0x200f821e, 0x20df8473, + 0x26b4822a, 0x00030004, 0x51800304, 0x0025050e, 0x4d1a0101, 0x09924300, 0x2316262e, 0x06111111, 0x012b1c07, 0x21352111, 0x07a54e18, 0x080d4744, + 0x3526263c, 0xfe7b0111, 0x15b203a3, 0x464e86fe, 0x063f643a, 0x0604c104, 0x5c67c27e, 0x60025c99, 0xa7a75b02, 0x6c79abfc, 0x4392a644, 0x7b3a3f77, + 0x6eecbc44, 0x017ca653, 0x01000004, 0x8b847000, 0x2e06576e, 0x02020304, 0x03012601, 0x021a1b02, 0x64030304, 0x1f292085, 0x1216181d, 0x080d0f10, + 0x0a576e06, 0x26071723, 0x05774526, 0x33331623, 0x64098507, 0x0422058c, 0xb8542223, 0x85372005, 0x024a0806, 0x67e48c80, 0x6fa84c6c, 0x824fa57c, + 0xdc17e74e, 0x9babb188, 0x7152bc6d, 0x98fefe5b, 0x5d7feda2, 0xa87a5999, 0x7b05da7c, 0x3c725656, 0x4b6a6b45, 0x78a12d5f, 0x4b907a87, 0x665f6b44, + 0x6a7cbf6e, 0x130a5394, 0xa66e7a92, 0x0082005d, 0x1500013a, 0x130454fe, 0x1e006205, 0x31403400, 0x03041314, 0x01030201, 0x4c020100, 0x71087c5c, + 0x0420051c, 0x2307b647, 0x0b0c1a1b, 0x1e23bb82, 0x47051e01, 0xfb4d0daa, 0x0d624d0e, 0x210eaa6c, 0xff46cd02, 0x38052109, 0x2b10b26c, 0x9f9f30fa, + 0x02000100, 0xc004e7ff, 0x19379b82, 0x28402b00, 0x05080b14, 0x04020502, 0x01134c01, 0x04004902, 0x6f5f0004, 0xb1820503, 0x021b0224, 0x0082124e, + 0x05105408, 0x132b1b07, 0x33131321, 0x03230101, 0x03012303, 0x02060323, 0x27070606, 0xca37033e, 0xc2c59701, 0x01f5feb5, 0xdde6bf2e, 0xc72701b7, + 0x280f2072, 0x66334c37, 0x1f242c1c, 0xfd620510, 0xfd0202fe, 0x021dfd81, 0x02a6fd5a, 0xfedf01e0, 0xf7fed634, 0x432e629d, 0x0028057e, 0x62000200, + 0xa0040000, 0x122d8f82, 0x3f001c00, 0x050a3c40, 0x0d050602, 0x2c618201, 0x0006004c, 0x03060203, 0x05010869, 0x21978705, 0x9b6f0407, 0x13143d05, + 0x15170000, 0x1c141c13, 0x12001200, 0x21151223, 0x2b1a0709, 0x32211133, 0x15141516, 0x0124aa84, 0x23230606, 0x080a2b67, 0x02016233, 0xbbd1e1ca, + 0x5601affe, 0x39cefed1, 0x4b4a5f9e, 0x7446414b, 0x62058544, 0x0808c2e9, 0x66fdbb01, 0x7c0238fd, 0x09fe463f, 0xc8fdca04, 0x8d6e7f36, 0x249f8288, + 0x0400000d, 0x2c9f82ac, 0x001d0014, 0x0147404a, 0x01030601, 0x8217824c, 0x67032ea1, 0x0008010b, 0x06080406, 0x01010967, 0x07af4401, 0x0504043a, + 0x02070a5f, 0x051b0505, 0x0015164e, 0x15171900, 0x001d161d, 0x11140014, 0x252c0084, 0x2b1d070c, 0x11260133, 0x21332434, 0x26068349, 0x11211521, + 0x48130323, 0x45080728, 0xed04010d, 0x02e20301, 0x84fe1794, 0xcefe3201, 0x9afda201, 0x6cf2de80, 0x808a7a4e, 0x016e4c02, 0x9ce1be09, 0xfe9c44fe, + 0x21029b2d, 0xbb02dffd, 0x83850f02, 0x00007f88, 0x5700ffff, 0xae04a6fe, 0x06027b05, 0x0f845500, 0xbf820720, 0x6205a922, 0x72260f82, 0x01000000, + 0x0f82a600, 0xcf849320, 0x2f403232, 0x0e0f1011, 0x08090a0b, 0x12020308, 0x02030001, 0x2115aa6f, 0xb7821516, 0x3d0caa6f, 0x17372737, 0x17033337, + 0x01072707, 0x9a070223, 0xab9cc7c7, 0x96ee4ce8, 0x4cd5d3d1, 0xb86f9ada, 0x8ff32c0a, 0xfed5937a, 0x877983cf, 0x8322fdde, 0xefff257f, 0x8e0454fe, + 0x2a377f82, 0x3f404200, 0x01040109, 0x05020121, 0x03011704, 0x02011605, 0x824c0403, 0x050427a2, 0x00690401, 0x50410606, 0x05053807, 0x03004d1b, + 0x00610203, 0x021e0202, 0x2312114e, 0x17232525, 0x461d0707, 0xf9640807, 0x08ac5908, 0x34113527, 0x11072223, 0x060d4623, 0x0d465620, 0x5a252608, + 0xaa8a7c3c, 0x06484a80, 0x4c727924, 0x1246bb47, 0xdafd370e, 0x7ea62924, 0xa09b2afd, 0x147a1d30, 0xd002941a, 0x5bfd4195, 0x1746c704, 0x5a342009, + 0x26250677, 0x4c404f00, 0x2bba820b, 0x08000125, 0x01070119, 0x07060118, 0x0526c282, 0x05000800, 0xf7706908, 0x090a240d, 0x82010102, 0x070723c8, + 0xdc826106, 0x4e061e29, 0x26000000, 0x5a252600, 0xcf5c057b, 0x09fd5a05, 0x91113321, 0x823620d4, 0x05815ad5, 0xfd450420, 0x60272106, 0x210f835a, + 0xfd504e52, 0x02bf2206, 0x5ac98341, 0x43281087, 0x00005dfd, 0x003c0002, 0x65055b6c, 0xe94a1707, 0x1f076505, 0x23113324, 0x07653335, 0xb2ee3d18, + 0x0301c6b2, 0xe9bdfdfe, 0xf0891b01, 0x59baac9c, 0x8ba5508c, 0x872304bf, 0xc587b8b8, 0x200b0465, 0x87831802, 0x0f320808, 0x41001c00, 0x121c3e40, + 0x06040602, 0x06010203, 0x04004c02, 0x04050605, 0x00008006, 0x00010201, 0x06008002, 0x06000100, 0x05006801, 0x005f0305, 0x094d0303, 0x4e023305, + 0x21122521, 0x07142211, 0x012b1d07, 0x13070614, 0x83182723, 0x450808a9, 0x36173305, 0x23263435, 0x32331123, 0x5f600437, 0x7b9e9f53, 0xc7ac8269, + 0x01fc6d01, 0x9ed3fd21, 0x89af3b83, 0x3a52b7ba, 0xb077b303, 0xcafbfe37, 0x0509fe23, 0xd7d2d262, 0x7d9b8644, 0x0010cafd, 0xfe47ff01, 0x3f520452, + 0x053f5305, 0xd1450520, 0x00032606, 0x06030506, 0x05d45c67, 0xe34c9182, 0x133f530f, 0xd24f1320, 0x5d112009, 0x23260552, 0x14112111, 0x844d2f06, + 0x01c62908, 0xfec6c6ea, 0x52fea716, 0x0806e176, 0xfddf0527, 0xfa3d02c3, 0xfd82029e, 0x009f9f0e, 0xfee6ff03, 0x05c804d1, 0x001d0062, 0x002a0026, + 0x12504053, 0x01020701, 0x0887824c, 0x07010e24, 0x67070200, 0x09020b10, 0x00530900, 0x5f010d0d, 0x01020305, 0x0f4d1a01, 0x0000020c, 0x080a5f06, + 0xd8660602, 0x292a2705, 0x20212728, 0x45821e1f, 0x1b1c1d25, 0x5f11191a, 0x162a05d9, 0x1f071111, 0x3311032b, 0x0177033e, 0x0b327605, 0x03231126, + 0x21130321, 0x3b080682, 0x2301030e, 0x411a3311, 0x1d202412, 0x9301200c, 0x81369863, 0xacbc9899, 0x86793494, 0x1e4ffe1d, 0x680d014b, 0x23190813, + 0x63ea0130, 0x01d1fe63, 0xa2702ebb, 0xf001b3f3, 0x4902b7fd, 0x78260384, 0x860226fd, 0x1a827afd, 0x03822f20, 0x4a04bb32, 0xeca794fe, 0xc90175a5, + 0x000006fe, 0x6a000300, 0x2806bb77, 0x0020001a, 0x40430027, 0x39da8240, 0x0a010508, 0x004c0207, 0x000a0007, 0x06670a07, 0x04000401, 0x08080054, + 0xe2825f01, 0x4d1a0129, 0x00020309, 0x53600500, 0x242605c2, 0x11212223, 0x00821113, 0x10181723, 0x2fd3820b, 0x36313337, 0x26263736, 0x11331127, + 0x36171614, 0xd183de85, 0x01234408, 0x11330706, 0x11210123, 0x6a020e21, 0x2e72364b, 0xc1018c93, 0x080b4537, 0x4c37022f, 0x73fd1f9c, 0x12029c1f, + 0xcdfc0b09, 0xf001ddfe, 0x441be9fe, 0xf13ba14e, 0xbcd223d8, 0xf9fe0c01, 0x421f866c, 0x5d8f0147, 0xb582058b, 0x4a53fa2c, 0xdefb9501, 0xba8bf001, + 0x0082007c, 0x03000122, 0x4f201582, 0x7a380756, 0x07560505, 0x9c4f250d, 0xcffe821f, 0x210e0656, 0xe65ba1a4, 0x10fe4705, 0x823ffb21, 0xffff2d86, + 0xe7ff7e00, 0x37041b04, 0x8a000602, 0x02221082, 0x0f828d00, 0xdf052135, 0x2b001d00, 0x25402800, 0x0202082b, 0x014c0103, 0x824a0001, 0x0203231e, + 0x265e0300, 0x01203708, 0x252d254e, 0x1a07042a, 0x0617012b, 0x020e0706, 0x33363607, 0x434e1232, 0x02262a05, 0x36123435, 0x01023e37, 0x07c04c14, + 0x22235308, 0x65030706, 0x75973b51, 0x0e467352, 0xad6ca735, 0x87cf75d6, 0x4276cf84, 0x704e9caa, 0x8729fe5e, 0x44744675, 0x98526577, 0x8edf0534, + 0x1d294a25, 0x558b9c53, 0xe4fefe64, 0x7f79ebaa, 0xdbd40b01, 0x35c12f01, 0xfc312c1b, 0x3dc7ba44, 0x98bb939f, 0x9483625e, 0x00d4003f, 0x04310400, + 0x00100037, 0x0024001b, 0x0e444047, 0x14000201, 0x06020301, 0x03030501, 0x0785524c, 0x02010723, 0x055a5302, 0x004d2128, 0x5f010404, 0x79760100, + 0x00013805, 0x1c1e2224, 0x1b111517, 0x0b0d1b12, 0x10011000, 0x2b160708, 0x82163201, 0x040721ca, 0x2124cf84, 0x17363611, 0x1120bf82, 0x08059f4d, + 0x32330146, 0x26263435, 0x47022323, 0x7660eec6, 0xcd7b0c01, 0x5866fe7b, 0x513764b8, 0x7563cc2c, 0xd6d3fe77, 0x3f7349fd, 0x8f3704d8, 0x1d765385, + 0x8a6fe91c, 0x1011043f, 0x06069116, 0x5844d9fe, 0xeefc4552, 0x1c4b47a8, 0x30208082, 0x1e2bbb82, 0x05001e04, 0x16401900, 0x84020200, 0x4d1c2195, + 0x1b3dd782, 0x11114e00, 0x19070310, 0x1123212b, 0x01210721, 0xee02c0f0, 0x04e9fd17, 0xffff9d1e, 0x25378401, 0x26024606, 0x2b820a02, 0xaf070623, + 0x87068250, 0x2f05214f, 0x2c05a37c, 0x01010106, 0x0102004b, 0x03008502, 0x20598c03, 0x225a8212, 0x841a0704, 0x3311225a, 0x215d8511, 0x5e84bf2f, + 0xfe110125, 0x83009def, 0xd1fe224b, 0x7c9b8304, 0x0d5c149f, 0x23768207, 0x11090009, 0x06200082, 0x230d9f7c, 0xa51f9b8f, 0x9924b084, 0x2f0138fe, + 0xfd25b582, 0x00010018, 0x20ef82b6, 0x2aef825a, 0x4027000d, 0x02010524, 0x82010106, 0x006725a0, 0x5f030404, 0xf989a482, 0xd9625082, 0x20fd8205, + 0x069e5223, 0x23153327, 0xb6c02c02, 0x2a5684b6, 0xd001f7f7, 0x9dbf018f, 0x828fdefe, 0xfec62457, 0x82ee0354, 0x00253f57, 0x24454048, 0x15050601, + 0x14060401, 0x03040301, 0x0501054c, 0x02004b01, 0x02060500, 0xd6826905, 0x825f0021, 0x5a1c20b3, 0x25251400, 0x25272500, 0x066b5d27, 0x21113322, + 0x20093e6f, 0x0df05f31, 0x11313522, 0x2c064e6d, 0x1a9902c6, 0x9f3641fe, 0xa8ab8365, 0x0646488b, 0x443a2408, 0x7d584856, 0x951e0435, 0x56409bfe, + 0x84fe99a5, 0x30a19d6e, 0x1813781d, 0x01815043, 0x5c54646a, 0x827afe42, 0x24948284, 0x04d1fe30, 0x2bb7823a, 0x0018000f, 0x052e4031, 0x01060001, + 0x0320b182, 0x820a957c, 0x7c0220aa, 0x15291095, 0x1e070810, 0x3e33372b, 0x0bb34402, 0x07212e08, 0x2107030e, 0x3e2d4930, 0x02190d28, 0x1f9b51b7, + 0x9b1f6afd, 0xb4fefa02, 0x291a0a0b, 0x0e022c3e, 0xd9772899, 0xfc5401b9, 0x0138fe7b, 0x367b822f, 0xc08eb2b7, 0x0020527d, 0x00ffff00, 0x04e7ff92, + 0x0237041f, 0x89a10006, 0x35062b0f, 0x11022602, 0x06000000, 0x7518ae07, 0xf4200cab, 0x08ab7518, 0x1783ac20, 0x00010027, 0x0400001f, 0x27cb8291, + 0x40360015, 0x02051033, 0x24128f7c, 0x090a4d1c, 0x07a36b07, 0x00150023, 0x05614615, 0xee481220, 0x13957c07, 0x66080238, 0xe2f4b9ca, 0xa067b5bb, + 0xe2b5bb67, 0x63cabcf4, 0x18fee801, 0x05823602, 0xab015523, 0x220383fe, 0x82cafd18, 0x8218200d, 0x208782a6, 0x3ec78263, 0x00370410, 0x403f0029, + 0x01010b3c, 0x00010a02, 0x05011501, 0x04012000, 0x03011f05, 0x824c0504, 0x0c745828, 0x095c2120, 0x03202d08, 0x2c25234e, 0x06202425, 0x012b1c07, + 0x5805ee43, 0x1624086d, 0x06141516, 0x2005fd61, 0x085b4a06, 0x35364708, 0x01232134, 0x7566be78, 0xaa4f727d, 0xdf525947, 0x72c27771, 0xa472627a, + 0x9c8cdc7f, 0x4c594cde, 0x8b8b73b1, 0x02d700ff, 0x50445370, 0x702d2f4c, 0x8040443c, 0x1b715960, 0x6f727a0c, 0x3c564d97, 0x653c3578, 0x9382a354, + 0xbf00013f, 0xf1030000, 0x0f001e04, 0x21402400, 0x0002060e, 0x044c0102, 0x02020203, 0x01014d1c, 0x06b17a00, 0x0f000f26, 0x05111511, 0x27067270, + 0x01373634, 0x11331123, 0x24089982, 0xbdf10301, 0x50fe0c0f, 0x0c0ebde0, 0x1e04ab01, 0xd401e2fb, 0xfc4ac56c, 0xfe1e04b1, 0x42cd692d, 0xff004b03, + 0x256385ff, 0x26020b06, 0x73821602, 0xeb070623, 0x880682fe, 0x88352017, 0x82ae2017, 0x00003716, 0xfeb10002, 0x067104d1, 0x000d000b, 0x40770021, + 0x02161e0e, 0x877c0507, 0xb04b2f08, 0x40585029, 0x07010920, 0x02070200, 0xa4820863, 0x2b0cca69, 0x03030104, 0x1b4e031b, 0x01001e40, 0x05231c82, + 0x87690001, 0x0106252b, 0x4d1c0505, 0x59322086, 0x0e0e1b40, 0x210e0001, 0x1f20210e, 0x1718191a, 0xb47c1112, 0x2303241a, 0x8b112313, 0x332308f8, + 0x7b3c0211, 0x147e0ca8, 0x5d464756, 0xac0c7d14, 0x9d8fb901, 0x080f7747, 0xb9de63fe, 0xa3010d12, 0x7c0205e0, 0xfb3709b2, 0x0135fe9a, 0x8bd4012f, + 0x93fc37d7, 0x2dfe1e04, 0x033de17b, 0x427efc6c, 0xc832053f, 0x78040000, 0x0c001e04, 0x2a402d00, 0x01040107, 0xef554c01, 0x82022007, 0x4d1c21de, + 0x280a4778, 0x110c000c, 0x11111112, 0x06477807, 0x30057e67, 0xc8112301, 0x2401c9c0, 0x01a8fed0, 0xb6fee18b, 0x2d6382c5, 0xfea6015a, 0x01cafd18, + 0xff1cfee4, 0x638400ff, 0x02460625, 0x821a0226, 0x07062374, 0x7b8528af, 0xe7ff4b24, 0x7b820204, 0x29001127, 0x010b2640, 0x207b8200, 0x0bb77c0a, + 0x0a155618, 0x82001121, 0x07042a77, 0x11012b18, 0x07211123, 0x06b0760e, 0x02042a08, 0x1591fec0, 0x6341270d, 0x3a25514a, 0x200c222e, 0xe2fb1e04, + 0xb1fe8403, 0x28598ce1, 0x6c3a187b, 0xa1019dc0, 0x00010000, 0x20e7824e, 0x2b6b8262, 0x402f0014, 0x060a132c, 0x03010403, 0x032cea83, 0x00010300, + 0x02040580, 0x4d1c0303, 0x3408ec72, 0x14001400, 0x11161611, 0x2b1a0706, 0x03231301, 0x23372626, 0x3e018203, 0x03070616, 0x13331323, 0x4b170413, + 0x040625b4, 0xb2c60803, 0x030508dc, 0x49b21b05, 0x83c4d6f1, 0xea01347c, 0xfd6ab858, 0x59b4024c, 0x15fe59c7, 0x3cfd1e04, 0x4200c402, 0x0b2409eb, + 0x24402700, 0x210b1d4d, 0xf8664d1c, 0x05234b1c, 0x31032408, 0xc0c04efe, 0x01c0b201, 0x0432fece, 0x0149fe1e, 0x00e2fbb7, 0x00ffff00, 0x04e7ff89, + 0x02370427, 0x43d40006, 0x07230c53, 0x7d402100, 0x1c210867, 0x1d677d4d, 0x03255d83, 0xfc850332, 0x84c1837b, 0xfebf2257, 0x20578655, 0x200f84e0, + 0x206782b0, 0x20678411, 0x27678497, 0x0400007c, 0x001e0440, 0x02296784, 0x03000001, 0x0301045f, 0x0a294703, 0x0a8f5618, 0x11210736, 0x35211123, + 0xfe164004, 0x84fec08e, 0xfc9b1e04, 0x9b83037d, 0x7020bf83, 0x47826782, 0x01060223, 0x84678405, 0x0b06230f, 0x0f832602, 0xaf430020, 0x03002306, + 0x27823400, 0x057c3208, 0x002000dd, 0x003a002d, 0x204f4052, 0x00040202, 0x2a2b3132, 0x12040504, 0x0501020f, 0x00014c03, 0x114a0002, 0x49010210, + 0x03080609, 0x61000404, 0x08988203, 0x074d212a, 0x01050501, 0x01010261, 0x4e012001, 0x21222e2f, 0x3a2e3436, 0x26283a2f, 0x2d222d21, 0x24262626, + 0x2b1a070a, 0x36111701, 0x0ea96718, 0x5a180620, 0x16220ac8, 0x47180717, 0x11230813, 0x18212626, 0x080bc467, 0xa4060272, 0x6936632b, 0x81412f76, + 0xa44d655e, 0x5e2f6027, 0x7a35407e, 0x2a5b3569, 0x4242458b, 0x263c2945, 0x98013a25, 0x2225422e, 0x4845293c, 0x16dd053a, 0x323707fe, 0xa6a7f789, + 0xfe6d8af9, 0xff011617, 0xf98a3637, 0x89f7a7a6, 0xba2d3530, 0x31bcdadb, 0x2c73022f, 0xfd2d2d2c, 0xbb312f8f, 0x00badbdb, 0xffff0000, 0x00006400, + 0x1e044c04, 0x04010602, 0x01341082, 0x00009e00, 0x1e04de03, 0x2f001300, 0x01122c40, 0x01030203, 0x250ad75f, 0x0204056a, 0x43430202, 0x0013250a, + 0x23132313, 0x2005d342, 0x83078211, 0x113521dd, 0x08085865, 0xc0de0332, 0x9a62aa3b, 0x5857c09f, 0x042f9a48, 0x01e2fb1e, 0xa63f35b6, 0xfea30193, + 0x3c566474, 0x00d60134, 0xb0000100, 0x8104d1fe, 0x0b001e04, 0x26402900, 0x00237f82, 0x83010454, 0x05062365, 0xd97c0302, 0x0bc2690b, 0x23112524, + 0xed4d2103, 0x81042906, 0xe9fc1f9b, 0xc0b201c0, 0x25062a49, 0x83037dfc, 0xcf847bfc, 0xdf825920, 0x5b845720, 0x21088f7d, 0x8f7d4d1c, 0xfbb0232a, + 0xb783faa8, 0x841e0421, 0x82588254, 0x01002356, 0xb3825900, 0x5782df20, 0x7d000f21, 0x1c210c8f, 0x2f8f7d4d, 0xbb82df20, 0x65833420, 0xbc8bb120, + 0x0126c086, 0xd1febf00, 0xbf84f103, 0x20402330, 0x02010200, 0x00010486, 0x004d1c00, 0xea7a0505, 0x83112008, 0x05505200, 0x21113323, 0x06184103, + 0xc031032c, 0x9614c6fe, 0xc0c6fe14, 0xc283b201, 0x01d1fe23, 0x82c6832f, 0x000226c0, 0x040000f0, 0x21578432, 0x8b7d0014, 0x7d5d820f, 0x1422108b, + 0x8b7d140d, 0x05eb5a0d, 0x01112123, 0x07d34b23, 0xf8bfb038, 0x6dbf77cb, 0x7d0161fe, 0x8067d0bd, 0xfe1e046b, 0x81a6c2b7, 0x08824ba1, 0x4ffe2726, + 0x6c6c7c5d, 0x00237a82, 0x82700003, 0x8240207b, 0x000a247b, 0x7d17000e, 0x7f821287, 0x2213877d, 0x7d171017, 0x01200f87, 0x88837b82, 0x11232325, + 0x8a231121, 0x3f22308b, 0xcaf3eed5, 0xb4d003f7, 0x4848defd, 0x82798476, 0xa5ad2483, 0x41afbfb8, 0xfe2705cb, 0x5e4afe26, 0x83627383, 0x0002228f, + 0x828f823c, 0x8b4918a4, 0x10f97c08, 0x20056e41, 0x05ef4c5f, 0x322d8b7d, 0x01e375f0, 0x8cd97b03, 0x02f4c5fe, 0x4c87863a, 0x828b4577, 0xb72c088a, + 0xa287bfa6, 0x918d0347, 0x4ffe27fe, 0x74596024, 0x02000060, 0xe7ff0300, 0x1e04a304, 0x21001800, 0x3d404000, 0x05010112, 0x01114c01, 0x8c138b7d, + 0x191a2991, 0x1b1d0000, 0x211a2119, 0x18273a82, 0x08212411, 0x412b1907, 0x8c7d0a1a, 0x1adc3b13, 0xc2e6e0cd, 0x070cc5d0, 0x44624125, 0x2b341c44, + 0x0216081f, 0x6e252142, 0xa0826d75, 0xb6a7ad3d, 0x8c03b4ba, 0xdfacf6fe, 0x7f285b8d, 0xbd6d3c17, 0xfea20199, 0x5e49fe26, 0x82627483, 0x008424ab, + 0x82a90400, 0x001222ab, 0x138b7d1c, 0x08219f82, 0x08a04208, 0x200d5e56, 0x24008211, 0x070b2124, 0x23a38c1c, 0x33112311, 0x13200182, 0x31098c7d, + 0xe3ca1ae2, 0xf8cec1e9, 0xd3f8b5b5, 0x68482022, 0x98827038, 0xb0997828, 0x0e0298b5, 0x0b83f2fd, 0xfd88012a, 0x1a80fef0, 0x536e5352, 0x08cf6918, + 0x02370427, 0x00e70006, 0x73861800, 0x001c320a, 0x02434046, 0x03000101, 0x11010201, 0x12030401, 0x148b7d01, 0x004d2124, 0x345d0404, 0x00012b07, + 0x0d0f1416, 0x08090a0b, 0x3b620406, 0x32012a07, 0x23260717, 0x21070622, 0x78881815, 0x2636080c, 0x36363435, 0x97d2a802, 0x778b8359, 0xd70114a8, + 0xab0d27fe, 0x43814c7d, 0x5ac34a57, 0x7776e3a1, 0x773704e2, 0x9f9d5777, 0x2ca0b290, 0x3f3e782e, 0xa0a5f688, 0xa39092fb, 0x05011a31, 0x04011900, + 0x02010b05, 0x01010a03, 0x184c0402, 0x82100148, 0x02022ba3, 0x01006101, 0x4e012001, 0xdf620001, 0x50012011, 0x27250841, 0x32331637, 0x0d857d36, + 0xf32c3108, 0xa2de72f2, 0x5b49c066, 0xa180957d, 0x011ffe0d, 0x7c970fdf, 0x5940894b, 0x3704c14a, 0xa5f8d5fe, 0x3e418dfb, 0xb2a05d79, 0x2c9aa290, + 0x3e3c782f, 0x08ef7b18, 0x06021626, 0x0000b400, 0x7b180f87, 0xb72512b7, 0x830355fe, 0x20278306, 0x262784c0, 0x03000023, 0x82d905f3, 0x00b23037, + 0x00020000, 0x04e7ff67, 0x00370476, 0x7d200014, 0xe2821b07, 0x077d0720, 0x7d1c2017, 0x27820a07, 0x2911077d, 0x00011516, 0x20151a1c, 0x81182016, + 0x0827078a, 0x01140006, 0x7d070a14, 0x14200507, 0x7d058047, 0x36200708, 0x0c487318, 0x05033508, 0xa34cb2bf, 0x4e9b7982, 0xb6b68006, 0xaeae0c80, + 0x67444665, 0x044c456b, 0xfedafe37, 0x8bf9a5ff, 0xfe8ddc7e, 0xfe1e0432, 0x96fbd648, 0xd3becec5, 0xc4cdc0d3, 0x5e20db84, 0xd83ceb82, 0x0c001e04, + 0x38001500, 0x01013540, 0x4c010402, 0x00040107, 0x02040102, 0x05050067, 0x3106354f, 0x01020306, 0x4e011b01, 0x00000d0e, 0x150d0f11, 0x3282150e, + 0x11110c36, 0x19070825, 0x2613332b, 0x33363435, 0x11231121, 0x33010321, 0x08064060, 0xbafd5e3d, 0x8801cce3, 0xdefafec0, 0xcccf1501, 0x0169726f, + 0x9dc757bd, 0x01e2fba6, 0x026efe92, 0x556c0121, 0x0058625d, 0xfe230001, 0x05f30357, 0x002300d9, 0x1c114061, 0x03040205, 0x48234c01, 0x043306bf, + 0x17b04b49, 0x1c405850, 0x01010105, 0x01065f00, 0x581a0000, 0x212a0805, 0x0404004d, 0x1b4e041b, 0x18821a40, 0x02242182, 0x00670100, 0x87062258, + 0x4059311c, 0x1311110a, 0x1111232f, 0x2b1d0707, 0x15211501, 0x240ad571, 0x3e270706, 0x054e5702, 0x82070621, 0x234f08be, 0x01353335, 0xfe49017f, + 0x5cb13fb7, 0x924a9098, 0x5c45476c, 0x5457522e, 0x9cc02a8d, 0xa1d9059c, 0x4bf0fe8e, 0xfd93a552, 0x6fb69b47, 0x47208c2f, 0xbb026f7d, 0x3e6a545d, + 0xaa0406fd, 0x00008c8e, 0x00ffff00, 0x04e7ff31, 0x021e047f, 0x82440306, 0x00023710, 0x0400006e, 0x0024053e, 0x001d0013, 0x0013b463, 0x4b4a0002, + 0xd4822eb0, 0x0200202a, 0x07060108, 0x04670602, 0x0520dd84, 0x23052247, 0x5f030707, 0x3d4dc582, 0x82138205, 0x87d8841c, 0x8900202c, 0x40593320, + 0x18141511, 0x151d1416, 0x2511111d, 0x09111121, 0xe3831c07, 0x18230721, 0x21081e9a, 0xd4841121, 0x08089f44, 0x01d3012f, 0x86f4160a, 0x7a0201e3, + 0xb3fe8cd8, 0x5701a5a5, 0x774c9797, 0x24058b45, 0xa5da8ef1, 0x46a085bb, 0xda8ea503, 0x59fe2efd, 0x71575d23, 0x23c2825f, 0x8c000100, 0x8d26d382, + 0x24003704, 0x73789b00, 0x09123405, 0x0a010201, 0x19020001, 0x1a040501, 0x04050601, 0x83401b4c, 0x89092014, 0x82082014, 0x85592014, 0x0322222e, + 0xe29a1801, 0x02023908, 0x090a6101, 0x21010102, 0x0505004d, 0x01086106, 0x06200606, 0x2a401b4e, 0x0a242489, 0x1c090901, 0x08354c18, 0x08222882, + 0x2d851b08, 0x2c840020, 0x12405922, 0x24269882, 0x12112400, 0x03822225, 0x0b11232a, 0x012b1f07, 0x023e3311, 0x210d877c, 0xec5d1616, 0x06490805, + 0x27022223, 0x11231123, 0x0d7c4601, 0x5480b669, 0x2d5c408b, 0x73703b5c, 0xfe7a0110, 0x66860684, 0x5f29593c, 0xbd4a983d, 0xba7a0dde, 0x48fe1e04, + 0x3977d288, 0x26246e39, 0xb39098a5, 0x6b2529a0, 0x07013f3e, 0x0432fee0, 0x2677821e, 0x00420002, 0x82700400, 0x088f7c0b, 0x01010330, 0x68010600, + 0x05050107, 0x02044d1c, 0xb34f0002, 0x0e8f7c05, 0x8d7c0120, 0x01233708, 0x02210317, 0xc4a501cb, 0x709c7496, 0xa601be96, 0x14018a6e, 0x1d431e04, + 0x92012d05, 0x1e046efe, 0x008ffe8a, 0x5c000200, 0xad206b82, 0x23086b82, 0x00160013, 0x0a2f4032, 0x06080101, 0x01030402, 0x01026804, 0x4d1c0000, + 0x0507090b, 0x1b030304, 0x00004e03, 0x21128f7c, 0x01821133, 0x3a0a8b7c, 0x11231323, 0x5c330301, 0xe496eeb2, 0x6fae3701, 0x6f44914a, 0x01c377a8, + 0x82ce67f2, 0x010622f7, 0x238282fa, 0x016ffe91, 0x03240386, 0x008cfe98, 0x02220082, 0x87822600, 0x87828a20, 0x211f8f7c, 0x90824d1c, 0x7b1f8f7c, + 0x24080afa, 0x26211301, 0x03eeafda, 0xd7bef024, 0xb58d9eac, 0x80019c8c, 0x026cfec9, 0x65630156, 0xfd9dfe65, 0xfec701aa, 0x82038339, 0x00402411, + 0x823a0002, 0x20aa8287, 0x218b7c00, 0x7c4d1c21, 0x3a393b8b, 0xd27501b3, 0x79d1d502, 0x4786acc1, 0xad8748a8, 0x1302da96, 0x04a2fead, 0x208e821e, + 0x269a8262, 0x01a9fd9e, 0x873cfec4, 0x57022403, 0x82004301, 0xfea0339f, 0x06120451, 0x00060033, 0x4037002a, 0x02011a34, 0x8b7c1503, 0x012a210b, + 0x27158b7c, 0x224e021c, 0x122f1211, 0x230b8b7c, 0x34352626, 0x20078c7c, 0x158c7c21, 0x523a5e08, 0xfe7ef1fe, 0x8ffb56ef, 0xbba58885, 0x4d589aa7, + 0x9601abfe, 0x3803c0fd, 0xa2884ffe, 0x7dbe6ac1, 0x4a29726b, 0x5b330644, 0xb75bf4f4, 0x8a37d5f8, 0x16726558, 0x525c4915, 0x51018945, 0xa6fe909c, + 0x8767968f, 0x1c0e0f4c, 0x43261c27, 0x00000023, 0x4f00ffff, 0x750455fe, 0x06021e04, 0x4fd28203, 0x02210b5b, 0x08208274, 0x66000121, 0xa4040000, + 0x11007c04, 0x2b402e00, 0x0100010a, 0x0302030b, 0x004c0202, 0x03020001, 0x82690201, 0x08e25124, 0x112a0b82, 0x24241100, 0x19070511, 0x6f7c212b, + 0x05934809, 0x01012608, 0xd095fed1, 0x22e60f01, 0x46256367, 0x201e3522, 0xfe102520, 0xfc1e04dc, 0x78f4028b, 0x82101367, 0xfc2f280c, 0x84838274, + 0x8e062573, 0x46022602, 0x06235282, 0x8298a507, 0x03002306, 0xab82fdff, 0x3704bd33, 0x1c000e00, 0x6f002800, 0x01170a40, 0x4c010605, 0x08677c10, + 0x06001a34, 0x045f0106, 0x01010203, 0x01084d1c, 0x61000505, 0x637c0702, 0x06ab4f08, 0x61242282, 0x21010100, 0x85054f69, 0x09637c25, 0x011d1e35, + 0x1d222400, 0x19281e28, 0x14151618, 0x00060813, 0x630e010e, 0x022205a3, 0x2e4f3435, 0x7c132009, 0x1f650d59, 0x223b0805, 0x16141506, 0x94a43501, + 0x6e6e8b41, 0x89413f88, 0x978f1b98, 0xb5b64f1f, 0xb5af7c7e, 0x3afeea23, 0x4d38384f, 0x19393b4f, 0xa4fb2c01, 0xf7888cf9, 0x8cfaa3a8, 0x20816efe, + 0x7c048b7f, 0xed3c0552, 0x0902d4cd, 0xc6d7d7c6, 0xc6d5d8c7, 0x2a000100, 0xb804d1fe, 0x19001e04, 0x3e404100, 0x7c097355, 0x1c24125b, 0x090b0c4d, + 0x25087a55, 0x18190019, 0x7e551617, 0x070d2509, 0x11212b1f, 0x200f7e55, 0x37118333, 0x02112303, 0xb8c06608, 0xaabcd8e9, 0xb067a067, 0x71aad8b6, + 0xbf491f86, 0x3f128555, 0x38fe63fe, 0xe8012f01, 0xff0018fe, 0xfe6300ff, 0x0410041b, 0x02260237, 0x00000015, 0xffb80706, 0x20054346, 0x20b382c8, + 0x27b38299, 0x40360010, 0x06010733, 0x2b055f53, 0x06010306, 0x00030067, 0x63040304, 0x2005cf44, 0x06356108, 0x10233582, 0x5c111000, 0x0924058d, + 0x332b1d07, 0x20069a71, 0x539f8401, 0x20240b6c, 0x481f9b8c, 0x860a6f53, 0xfee42490, 0x5301001c, 0x77820573, 0x3b001425, 0x840b3840, 0x01032577, + 0x06010801, 0x67308382, 0x07000200, 0x67070205, 0x00000104, 0x090a4d1c, 0x8205b061, 0x0014227a, 0x567a8614, 0x7c8405a4, 0x7b333521, 0x2a0806d5, + 0x23152301, 0xc8112335, 0x355f57bf, 0xfec50e01, 0xd06c01c7, 0x5f35cafe, 0xfe1e0457, 0x01e6e658, 0xfd1afea8, 0xf5e501c8, 0x821bfef5, 0x0128084b, + 0x00004500, 0xdd056b04, 0x32001400, 0x0b0c2f40, 0x054a0402, 0x01060401, 0x03040803, 0x00070067, 0x01070001, 0x08080067, 0x82087753, 0x1113217a, + 0x09260083, 0x012b1f07, 0xec822301, 0x11232408, 0x35333523, 0x15211537, 0x01331121, 0x01df0233, 0xb6fee18c, 0x9e9ec09d, 0xfe2101c0, 0x2401a1df, + 0x543602d0, 0x042a0568, 0x17ca8e6e, 0x0afe8ee1, 0x5a82a601, 0x7b820d20, 0xff829b20, 0x33000e2a, 0x01093040, 0x4c010205, 0x0524f582, 0x67050204, + 0x5f2e9b83, 0x01010103, 0x06074d1c, 0x1b040402, 0x12824e04, 0x0e000e24, 0xd7771211, 0x82212007, 0x85708476, 0x01013485, 0xb5b401f4, 0xfed12201, + 0xe18a01a8, 0x03b0b7fe, 0x54fe918d, 0x6f820ae3, 0xd1fea024, 0x6f827204, 0x7c000f21, 0x1c22155f, 0x5f7c084d, 0x53122028, 0xa02206ec, 0xef531f9b, + 0x05c55809, 0x0122a882, 0xdb82a300, 0x6b82b720, 0x2d000d24, 0x5f7c2a40, 0x23d58410, 0x011b0101, 0x5f7cd583, 0xfeda2b1b, 0x01c0c089, 0x16dd0177, + 0x6789f9fe, 0x7bfc9927, 0x00010000, 0x20cf82b1, 0x21638282, 0xab7b000b, 0x1eb25411, 0x2006ab7b, 0x24c58223, 0x9b9f3203, 0x0557541f, 0x3524bf8a, + 0xab0454fe, 0x22325b82, 0x46404900, 0x01040103, 0x0405011d, 0x05030111, 0x06630110, 0x4d1c2113, 0x4b051c43, 0x1e210802, 0x29da8302, 0x11220022, + 0x25252413, 0x26431123, 0x17b77c05, 0x06222332, 0x11231107, 0x02351121, 0x4568299c, 0x8aa79272, 0x0806ba5a, 0x79453b43, 0xbe234f33, 0x1e04dffe, + 0x2a264cfe, 0xf1fd7f9b, 0x1d30a09d, 0x44191377, 0x9115024f, 0x20fe2124, 0x7afc8603, 0x02000000, 0x09ff6f00, 0x37045504, 0x35002900, 0x3e404100, + 0x0102010e, 0x0204010f, 0x29b5822d, 0x00020227, 0x294c0403, 0x5e7c0001, 0x4d212410, 0x70030300, 0x34230702, 0x82342632, 0x07062aae, 0x26052b1b, + 0x22230627, 0xd3a21800, 0x32332310, 0x567c2637, 0x07062c09, 0x14011716, 0x36361716, 0x82263435, 0x035908c6, 0x414f7ca2, 0xfffedf47, 0x4590d170, + 0x254a377b, 0x917b3050, 0x0d0e8795, 0x83453034, 0x7b9e825e, 0xfe6b4270, 0x4c2d27a7, 0x3a363b47, 0x6786f73c, 0xfe21010f, 0x1c8cfda8, 0x15138920, + 0xbacdccc4, 0x44915501, 0x9e508752, 0x40d17486, 0x4d027755, 0x274a7c3e, 0x4f45578d, 0x27e28255, 0xb0000100, 0x11041cfe, 0x2a30e382, 0x41404400, + 0x03040122, 0x00020323, 0x04061004, 0x2e080682, 0x0201010f, 0x01054c04, 0x04020400, 0x00800200, 0x02010002, 0x04006601, 0x00610304, 0x04210303, + 0x2600014e, 0x141f2124, 0x000b0d12, 0x822a012a, 0x252b25ba, 0x17373632, 0x5a06415a, 0x26220b40, 0x3d462627, 0x07172106, 0x2906a568, 0x854da902, + 0xa2725c3a, 0x3b7c5348, 0x4c46280a, 0xe277e6d2, 0x1898cea0, 0x24092296, 0x782d1a60, 0x08357c4c, 0x32753a27, 0xe7250114, 0x329618a0, 0x00012609, + 0x04d1fe7c, 0x07b74240, 0x5610377c, 0xa0540a9e, 0x6923200f, 0x033f06db, 0xa51f9b57, 0xc40384fe, 0x998efe16, 0x2f0138fe, 0x9b9b8303, 0x000016fd, + 0xfe680001, 0x82480455, 0x00083b5b, 0x08144017, 0x00010407, 0x01490005, 0x1c000001, 0x12124e00, 0x2b180702, 0x087c1101, 0x01113a05, 0xcd6efefa, + 0x26012701, 0xfe6efec6, 0x04c80155, 0x03b0fc01, 0xfefffb50, 0x37478a4f, 0x402a000e, 0x01010727, 0x0e4c0102, 0x49000200, 0x02020103, 0x01044d1c, + 0x616f5282, 0x05074607, 0x1c070622, 0x23225a82, 0x5d853335, 0x23153322, 0xcf236082, 0x869bfea2, 0xa29b2262, 0x236482cf, 0x8e038ead, 0xfc246583, + 0x6afe8e72, 0x6424af83, 0x6804d1fe, 0x0f2daf82, 0x26402900, 0x0205080f, 0x01010304, 0x0876464c, 0x1c010124, 0x675b054d, 0x22668205, 0x83101212, + 0xa4751866, 0x056f4609, 0x75180120, 0x19240ca8, 0x491f9b84, 0x0bab7518, 0xfe65fe28, 0x012f0138, 0x6f8300bb, 0x6f820020, 0x6f845920, 0x2e403125, + 0x56050000, 0x0325051b, 0x0301065f, 0x06c44303, 0x1efb5218, 0x2d09637c, 0x1f9a5904, 0x02ee4efd, 0x01dd17a0, 0x8841be77, 0x8f8f2c05, 0x030cfd8f, + 0x007bfc83, 0x828a0001, 0x8269206b, 0x7c17206b, 0x6a22145f, 0x5f7c0107, 0x0af44109, 0x23255f7c, 0xa51f9b69, 0x560a0a57, 0x0c5705a9, 0x2085820f, + 0x57878200, 0x1a300783, 0x38403b00, 0x05020104, 0x02090b06, 0x4c020503, 0x0323fe82, 0x84030502, 0x7c022089, 0x8a8a0736, 0x1a001a26, 0x14311313, + 0x2310337c, 0x35231507, 0x08099957, 0x02111724, 0x21633565, 0x6e4bc0c0, 0x9a100f6f, 0x4c4cc09f, 0xd6fe0d03, 0x0125340c, 0x01e2fbd6, 0xa21d44b6, + 0xa3570190, 0x575d2505, 0x00340105, 0xc1339383, 0xf1030000, 0x1300d905, 0x28402b00, 0x01020312, 0x824c0102, 0x4a002104, 0x02271d82, 0x69020001, + 0x46020304, 0x132c0720, 0x13231300, 0x19070525, 0x3711332b, 0x20050159, 0xbd601815, 0xc0c13f09, 0x90669c37, 0x4c5ac0a7, 0x05337d5a, 0x49fd15c4, + 0x97ac5648, 0x640283fd, 0x4d5f586f, 0x508281fd, 0x00010027, 0x04d1feb7, 0x256f8286, 0x40340017, 0x5b821631, 0x6f890420, 0x5c0b2c7c, 0x17270a4a, + 0x11231700, 0x5c251311, 0x7888054a, 0x7c113321, 0xb7200a27, 0x9f237c85, 0x8da51f9b, 0x1cfe257f, 0x2f0138fe, 0x0236838b, 0xe7ff1300, 0x37045c04, + 0x2a002400, 0x46404900, 0x03021314, 0xeb820606, 0x0101073b, 0x074c0300, 0x05080301, 0x03000202, 0x01096902, 0x61040606, 0x21040400, 0x53bd824d, + 0x2629079d, 0x29000025, 0x262a2528, 0x2a41822a, 0x121a2424, 0x070a2225, 0x4f012b1b, 0x26220c49, 0x357c3526, 0x023e2409, 0x18123233, 0x0808bb96, + 0xdb01024e, 0x4b709d04, 0x3b593569, 0xebcf63a6, 0x2f88860f, 0x1810761c, 0x6c0c1066, 0xd2c17ab5, 0x73fe0202, 0x010a8165, 0xce0106cd, 0x222b9fad, + 0x01453073, 0x7f02dc0d, 0x2b613d66, 0x26412436, 0x7cd88965, 0x1bf2e9fe, 0xd5011332, 0x4901a9a0, 0xff269982, 0xfe1300ff, 0xd382042d, 0x02260223, + 0x2310825e, 0x63b90706, 0x6f2d1785, 0xf703e7ff, 0x0602c605, 0x0000c600, 0x05c378ff, 0x0b069122, 0x14202782, 0xeb212784, 0x059741fe, 0x54feca26, + 0x1e04eb03, 0x201f1f7c, 0x0a1e621c, 0x1f7c6220, 0xc0ca2c34, 0xc8140185, 0x9486ddfe, 0x7b508ca7, 0x44300606, 0x04d06b5d, 0x013ffe1e, 0x0f3bfec1, + 0x7ffe95a2, 0x2d081562, 0x586e8201, 0x010037fe, 0xd1fe4800, 0x9f826504, 0x32001529, 0x010d2f40, 0x7c0c0401, 0x3443141f, 0x0015230a, 0x1f7c1d15, + 0x080a5e0d, 0x0411213d, 0x479d8f65, 0x15cdfe7d, 0x6340280d, 0x3b255249, 0x200c222e, 0xfe9c9f02, 0x5e2f0135, 0xfc210f12, 0x247f827e, 0x0354febf, + 0x217f82f1, 0x177c0017, 0x217b8218, 0xd7680303, 0x07622105, 0x6807b26e, 0x5f1813d7, 0x177c0acf, 0x41be200d, 0xd5490810, 0xfea72306, 0x1e633054, + 0x4d022105, 0x2208cc5d, 0x41a19d74, 0xc02405b3, 0x6b04d1fe, 0x2f42474a, 0x03132303, 0xc076fe0a, 0xc08a01c0, 0x479d8fa1, 0x2609e049, 0x35fe7efc, + 0x82002f01, 0xfe9e24ff, 0x84de03d1, 0x13177cff, 0x90826a20, 0x06000629, 0x02010463, 0x7c4d1c02, 0x23082917, 0xac3a8f8f, 0xc09f9a61, 0x9a495857, + 0x1f95c02e, 0x3301999b, 0x94a53f34, 0x8bfe8c01, 0x333c5764, 0xe2fbc101, 0x2005177c, 0x20eb825f, 0x2a7f82b0, 0x40380016, 0x080b1335, 0x7c020405, + 0x002a0d18, 0x63000600, 0x04040105, 0x137c4d1c, 0x00162609, 0x15111216, 0x0d137c15, 0x23033723, 0x089c5f03, 0x0413333a, 0x479490b0, 0x05062565, + 0xbbb1a603, 0x1b040404, 0xadf149b1, 0x9c41f69a, 0x012afa83, 0x7abd58ea, 0xc90237fd, 0xa15fcc69, 0x7efc2208, 0x061f68ff, 0x020b0625, 0x438a0026, + 0xee200547, 0x200a3768, 0xcfa11805, 0xf4ff2c10, 0xbb04e7ff, 0x06023704, 0x64009400, 0x3f830853, 0x21064364, 0x3f8212eb, 0x00020023, 0x33278289, + 0x00370426, 0x00200018, 0x16404043, 0x15000301, 0x02030201, 0x2a09914c, 0x61000303, 0x00000106, 0x82074d21, 0x079444ed, 0x191a2608, 0x1c1d0001, + 0x201a2019, 0x0e0f1113, 0x18000709, 0x07081801, 0x32012b16, 0x14151616, 0x22230606, 0x36343502, 0xb8551837, 0x32132109, 0x152c0d82, 0x48021616, + 0x7164d3a7, 0xf3d095d4, 0x2d086582, 0x828a0bcd, 0x56438650, 0x7f77b848, 0xe8fd068b, 0x37048901, 0xa9a7f888, 0x150188f8, 0x15301af5, 0x372b9db0, + 0xfc443b7d, 0x10b49347, 0xc783a295, 0xef83af84, 0x826c0221, 0x070623c0, 0x068203ac, 0x6744ff20, 0x44178406, 0xac200567, 0x00201682, 0x63201782, + 0x1020df82, 0xfb4e1784, 0xf1ac2105, 0x01281883, 0x55fe7300, 0x1e041304, 0x2a08755a, 0x05010001, 0x02111202, 0x4d030504, 0x00250d8c, 0x4d1c0101, + 0x064b4a00, 0x4e031e33, 0x22252524, 0x07061111, 0x01012b1c, 0x15213521, 0x67521801, 0x093c6c07, 0x26343708, 0x5d012323, 0xa9fdab01, 0x46fe3103, + 0x0001d417, 0x9b8fdd7c, 0x446f4fce, 0x9a856b95, 0x01b494a0, 0x9ce7019b, 0xc80ffe90, 0x6fc784c6, 0x4369575c, 0x8a8e943e, 0x13640075, 0xd1052108, + 0x2008fb63, 0x21ae83b7, 0x2b64ffff, 0x20c78405, 0x86f78516, 0x82892017, 0x842720df, 0x891f2017, 0x03002217, 0x1f8c1800, 0x00122609, 0x40390019, + 0x82138236, 0x670421db, 0x210c7d69, 0xcf410505, 0x0e0f3307, 0x16180001, 0x10111314, 0x120f120e, 0x0d000608, 0xcf410d01, 0x06486a05, 0x3435022a, + 0x22173636, 0x13022103, 0x1805b35a, 0x2c0b2d8c, 0x040212f2, 0xfbfd1212, 0x7576810c, 0x338c1881, 0xc1fe270e, 0x33fe3f01, 0xcb66a1b0, 0x20af8905, + 0x27af8574, 0x00000002, 0xb000ffff, 0x1120c782, 0x3420c784, 0xf7201785, 0x17820682, 0x55fe7026, 0xd1054004, 0x41087361, 0x1785070f, 0x2602f424, + 0x0f412402, 0x2117840c, 0x17888e06, 0x8551b021, 0x009e2447, 0x84de0300, 0x8528205f, 0x85e6202f, 0x00702417, 0x84400400, 0x892e2017, 0x01002a47, + 0x54fe8700, 0x1e045a04, 0x28f77b00, 0xa7521c20, 0x7b002005, 0x33293cf7, 0x33112315, 0x01061411, 0x08c1686f, 0x66697620, 0xa8762108, 0x20089d45, + 0x0872697f, 0xfec9fe23, 0x079f45f9, 0xb3825020, 0xb3845820, 0x403d2608, 0x05081d3a, 0x01030402, 0x00050114, 0x05040113, 0x03004c03, 0x03010001, + 0x01028000, 0x4d1c0101, 0x00000106, 0x714b181b, 0x25132a0b, 0x12121225, 0x1d070710, 0x0a674b2b, 0x69231521, 0x23320e6f, 0xd8280101, 0xadfe8101, + 0xd7eae8e0, 0x1901b0fe, 0x57470188, 0x4b46200a, 0x99200d7f, 0x20096e69, 0x06874b7f, 0x00006424, 0xa3824c04, 0x2f001129, 0x01082c40, 0x47110302, + 0x02270657, 0x00010106, 0x53680102, 0x072005fd, 0x00259e83, 0x1111114e, 0x23038212, 0x1e070810, 0x212c9583, 0x33012135, 0x01331313, 0x01211521, + 0x28088982, 0x5a01d83c, 0x1c01d9fe, 0xe6e0dffe, 0xddfed7ec, 0xe0fe1f01, 0xfee75501, 0x82f401f3, 0x6dfea801, 0x58fe9301, 0x010cfe82, 0x05eb41cf, + 0xe7ff7f2a, 0xdd05f103, 0x9d000602, 0x2d081082, 0xff0f0002, 0x059f04e4, 0x002400dd, 0x404c0031, 0x06010b49, 0x03012c01, 0x02222b06, 0x4c030302, + 0x01020c0d, 0x0603004a, 0x02030602, 0x8d540080, 0x01052708, 0x62000202, 0xae540704, 0x00013205, 0x27292e30, 0x18191e20, 0x07091012, 0x24012400, + 0x09d67b08, 0x32333626, 0x17111716, 0x08425718, 0x0805da7b, 0x23061067, 0x06272622, 0x16140306, 0x37363233, 0x23262611, 0x56010622, 0x524b926a, + 0x5c456597, 0x353eba22, 0x0626442d, 0x0505bb04, 0x8c5796be, 0xc2763625, 0x56324750, 0x3649202c, 0x88195c50, 0xfba1a5f7, 0x022c3890, 0x76fb170a, + 0xa544625e, 0x3f784591, 0xfe447a3a, 0x5d57fbe5, 0x27024f62, 0x564ac1d0, 0x42301202, 0x05e744c6, 0xe3821320, 0x1e048330, 0x3e002800, 0x011d3b40, + 0x4c010201, 0xd1820107, 0x8028d782, 0x01000200, 0x67010205, 0x07f44018, 0x004d1c24, 0x11500505, 0x2d3e8207, 0x28280028, 0x13212421, 0x1c070826, + 0xd745012b, 0x27262307, 0x1e7b2327, 0x059d6d0a, 0x1e7b1720, 0x04210809, 0x64050579, 0xad856dac, 0xbdce5a4a, 0x7a7b7567, 0xe4d7f5f3, 0x2e616f74, + 0x54353960, 0x02040631, 0x36ae82f2, 0x816eebbd, 0x5591a487, 0x90555e65, 0x8e6f9ea5, 0x3a54ad27, 0x8290a545, 0x010027cb, 0xd1fe9800, 0xb3822e04, + 0x38001824, 0xa07c3540, 0x00002205, 0x20b58207, 0x08985400, 0x84079f7c, 0x051b22b2, 0x25ad824e, 0x11180018, 0xaf821611, 0x1320ad83, 0x850a097b, + 0x33133ea1, 0x23032311, 0x2001e603, 0x797b7468, 0x5701aafe, 0x6d70e4d7, 0x1f9ba3be, 0x8e01fb5b, 0x2a898693, 0xfe28906d, 0x0138fee3, 0x828e012f, + 0x248b8252, 0x04e4ff04, 0x208b829d, 0x190b7b26, 0x0b7b8382, 0x26142309, 0x0b7b2316, 0x12377c0d, 0x82352621, 0x0e2e088b, 0x1e515503, 0x0b1b222d, + 0x361f0220, 0x2a472b37, 0x05be0406, 0x619e5d05, 0xb951864f, 0x38260f16, 0x19791951, 0x95bb6e40, 0xf7fca701, 0xe9415841, 0xebbd2e08, 0x7193476e, + 0xfafe5502, 0x5889dfaf, 0x20a38200, 0x20a38254, 0x21a382a4, 0x0f7b0020, 0x04032809, 0x80040703, 0x7b000400, 0xa682080f, 0x00060623, 0x0c0f7b61, + 0x02212594, 0x050f7b02, 0x0f7b6120, 0x191a240b, 0x7b0e1113, 0x00230810, 0x57200120, 0x2627056b, 0x21353526, 0x68112311, 0x6370050b, 0x7e272008, + 0x033306c4, 0x52874f48, 0xbbbbeffe, 0x36bc1101, 0x2b472b38, 0x83bd0505, 0x821c20e4, 0xfe9f28c2, 0xfe1e0432, 0x8fba0146, 0x28d383de, 0x03e9ff8c, + 0x003704ec, 0xff5e181e, 0x01042809, 0x03020110, 0x60050115, 0x01210bcf, 0x079d4801, 0x02020022, 0x2e097361, 0x13141719, 0x0d0f1112, 0x1e000608, + 0x18071e01, 0x0810414e, 0x37323346, 0x21272311, 0x23060611, 0x34110222, 0x7c023636, 0x684ba77a, 0x4e4d763e, 0x7f8d5386, 0x15bb5d70, 0xc6498b01, + 0x89fcda7b, 0x463704e3, 0x2d2f783b, 0xdb8aad50, 0x17012bb8, 0x2a00fe92, 0x01160141, 0x84f5ab14, 0x3a052342, 0x04e4ff06, 0x001e0449, 0x4035001b, + 0x01050032, 0x04050104, 0x01010380, 0x825f0201, 0x4d1c2494, 0x85040400, 0x002027a4, 0x1500014e, 0x4a180e14, 0x1b220786, 0x9a831b01, 0x26220523, + 0x06e15135, 0x08104041, 0x94a4022d, 0x03bcfec6, 0xc5fe1756, 0x66394758, 0xc1040440, 0xc1790503, 0x02aab91c, 0xfd9a9a3d, 0x436369c4, 0x754b8a9f, + 0x4e79383b, 0x856ce2b2, 0xffa02d8f, 0x044d04e7, 0x002a0037, 0x2012407c, 0x27088c82, 0x05060121, 0x0001010a, 0x0102010b, 0xb04b4c04, 0x40585026, + 0x06030025, 0x72030600, 0x00060107, 0x00060100, 0x05050067, 0x82077b4e, 0x826120b9, 0x022025b9, 0x26401b4e, 0x00212785, 0x22289d80, 0x820f4059, + 0x002a317c, 0x16262529, 0x08212325, 0x012b1c07, 0x15202307, 0x3722d084, 0xae680617, 0x09445408, 0x0809087c, 0x48033346, 0x00ffce0c, 0xb3718b8b, + 0xe44c594c, 0x7dda8c9a, 0x62438053, 0x78c2717a, 0x5952de72, 0x724faa47, 0x0266757d, 0x54a39470, 0x78343d65, 0x964c563c, 0x3a6d506f, 0x596e1b03, + 0x4445825c, 0x2f2d703c, 0x5344504c, 0x002fc782, 0x0454fe4b, 0x001e0402, 0x4034001d, 0x7b121331, 0x1c2011e3, 0x2a0ee37b, 0x0b0c191a, 0x1d000608, + 0x7b051d01, 0xbf4d0fe3, 0x0614230a, 0x9247cf02, 0x0ed66b08, 0x47dc0221, 0x04210998, 0x0dde6b03, 0x3c4dfb20, 0x00012605, 0x04e7ff1c, 0x319782af, + 0x40270019, 0x0c0f1224, 0x02050109, 0x004c0104, 0x437b0404, 0x4d1c2105, 0x440adb7b, 0x13240b40, 0x01033313, 0x0807e07b, 0x6d030e39, 0x242c1a51, + 0x01200c1d, 0xb1a7a3c1, 0xc11601f2, 0x01b5c4c5, 0x169faa13, 0x5138270e, 0x3b177919, 0x019abf6c, 0x0181fea7, 0xfd16fe7f, 0xfebb01cc, 0x012c0245, + 0x44f4fe5e, 0x2d08052b, 0xfe4f0002, 0x04ab0455, 0x00170037, 0x4b9c0024, 0x585013b0, 0x01151740, 0x1b1c0005, 0x05030609, 0x01100506, 0x4c030602, + 0x02021112, 0x19841b49, 0x19900120, 0x60490321, 0x1a330643, 0x05050108, 0x01045f00, 0x00000307, 0x06004d1c, 0x86610206, 0x401b24c5, 0x5b010422, + 0x072309dd, 0x5b000001, 0x258206c8, 0x61032108, 0x20030300, 0x40594e03, 0x01181919, 0x181e2000, 0x14241924, 0x080c0e13, 0x00040507, 0x09170117, + 0x8506af43, 0x020e2dfa, 0x27262223, 0x33110711, 0x17363617, 0x080bdc6a, 0x92ee0159, 0xbebf0a8b, 0xc90901f0, 0x88570acd, 0x285e4a51, 0x2c0ea2bc, + 0x5c392e70, 0x30522829, 0x04446444, 0x01d6fb37, 0xfd00feb8, 0x95c701e2, 0x343b74d7, 0x051615fe, 0x51427ac9, 0xfd404b97, 0xb2413ae8, 0x00b4dcdc, + 0x00030000, 0x04e7ff09, 0x003704a5, 0x00260020, 0x41f9002f, 0x0e300519, 0x02050101, 0x05030117, 0x03040118, 0x401b4c03, 0x0620108a, 0x07411082, + 0x002b3906, 0x05020008, 0x0d670208, 0x05000901, 0x67050903, 0x07020c0a, 0x01610007, 0x1c21f682, 0x31ec824d, 0x060b6104, 0x20040402, 0x4b1b4e04, + 0x585024b0, 0x32953a40, 0x00610126, 0x4d210101, 0x5f203e85, 0x1c269882, 0x06010b4d, 0x43851b06, 0x41850020, 0x90374021, 0x010c233c, 0x3b860707, + 0x0a0a0022, 0x90062264, 0x59593539, 0x27281f40, 0x00002122, 0x2f272a2c, 0x24252f28, 0x26222621, 0x2034f282, 0x15222512, 0x070e2621, 0x13332b1c, + 0x34352626, 0x36213336, 0x66064252, 0x48080ca0, 0x01032327, 0x21070622, 0x36330102, 0x06222337, 0xd2091415, 0xb8dc6059, 0x443a1801, 0x0202aeab, + 0x7606ecfd, 0x4063485b, 0x6baa3454, 0x5b18c7a1, 0x548c02bd, 0x6a010b62, 0x2ab7fd06, 0x67825f03, 0x29b60171, 0xb894688b, 0x05505219, 0xa0b22408, + 0x2c6b2c29, 0xfebeed53, 0xa2a6036e, 0xfe4d01ab, 0x6292ea77, 0xffffb565, 0x55fe8900, 0x3704f103, 0x6e000602, 0x1e26054b, 0x92040000, 0x0f821e04, + 0x0000ff26, 0xc4000100, 0x74390f82, 0x14001e04, 0x35403800, 0x080b0c0e, 0x07050607, 0x0d0f0001, 0x02010402, 0x2520824c, 0x04010304, 0x26700267, + 0x0014250f, 0x15161114, 0x7d0a2670, 0x01300c32, 0xc0c41123, 0x48ac62c9, 0xb6d075b1, 0x54ae48a8, 0x2a093470, 0x6d73698d, 0x68fefeaa, 0x5b776b72, + 0x002705d2, 0xfee8ff01, 0x82ab0454, 0x7d2c2083, 0x23200733, 0x221d337d, 0x7d004d1c, 0x13210f33, 0x21337d24, 0x11353623, 0x06285a34, 0x0e03232d, + 0x1a523a03, 0x0c1e242c, 0x5a350220, 0x23220a31, 0x315a313f, 0x15cd2506, 0x5238270d, 0x5a090944, 0x8420173c, 0x5a093f48, 0x377d07f3, 0x4d1c222a, + 0x16377d0a, 0x1120d083, 0x0b230083, 0x7d2b1f07, 0xd8842137, 0xfe150228, 0x01bbbbdb, 0x035bbc25, 0x70012013, 0x46230556, 0x96feba01, 0x00002fcb, + 0x00800002, 0x042f0400, 0x0012001e, 0x6218001b, 0x6725133f, 0x1c020200, 0x0d377d4d, 0x15191b23, 0x20308213, 0x3f621811, 0x06377d0b, 0x23073808, + 0x16323315, 0x23041415, 0x36323327, 0x23343536, 0xa6260123, 0x0e01c0a6, 0xd793f816, 0xe0fefedf, 0x75497a67, 0x0392eb45, 0x75758e1b, 0x9bad778e, + 0x2294abb1, 0x83b75057, 0xbc24088b, 0x250455fe, 0x14003704, 0x89002500, 0x131f1840, 0x25050402, 0x06031720, 0x070a0e04, 0x03060203, 0x020f104c, + 0x074d9c18, 0x7d002421, 0x01340746, 0x00860102, 0x61000505, 0x00020703, 0x004d2100, 0x62020606, 0x20078647, 0x21268d28, 0xcc820303, 0x59452b83, + 0x342a8906, 0x01154059, 0x1d222400, 0x1215161b, 0x090b0d11, 0x01140008, 0x05c94f14, 0xd0821620, 0x17070627, 0x23062723, 0x064f4522, 0x807d1320, + 0x07554506, 0x02374d08, 0x4ba78ca7, 0x9e915656, 0xaa3d356b, 0x0ea6c069, 0x8f9e0779, 0x5374703d, 0x76282a7d, 0x041f2947, 0xa7f78937, 0xee47f79c, + 0xfe7810af, 0xc905170d, 0x7ffda78e, 0xcdf054ea, 0xfe3f63c3, 0x06433b02, 0x63ff0100, 0xf10352fe, 0x1b001e04, 0x7d06bb54, 0xbd841293, 0x820fbb54, + 0x6913209e, 0x082a056d, 0x011b0006, 0x1607081b, 0x5651132b, 0x33352109, 0x2806654a, 0x11211123, 0x06141523, 0x08be544b, 0x01c0012b, 0xfec0c0b2, + 0xfea7014e, 0x06c05452, 0x72048121, 0x012e068a, 0x7032fece, 0x0300a19d, 0xd1fee9ff, 0x9782c504, 0x20299b7d, 0x4b9b7d1c, 0x23113323, 0x059b7d07, + 0x31173208, 0x151a2316, 0x9b011909, 0x96329f60, 0xacd2b19e, 0x897830ab, 0x1c6cfe1a, 0x0e63f23b, 0x291d1409, 0x6060d301, 0xc601d1fe, 0xb26c4119, + 0xfe84018b, 0x83d98259, 0xfd182603, 0xfee501ca, 0x201a821b, 0x2e03822f, 0xdbf502c6, 0x476fb68e, 0xb2fe2e01, 0x82000300, 0x67042131, 0x192edf82, + 0x25001f00, 0x49404c00, 0x07020f1a, 0x987d0608, 0x060b260c, 0x04000402, 0x08997d54, 0x997d1c20, 0x0028080d, 0x21222300, 0x1d1e1f20, 0x0019001c, + 0x11111119, 0x0c111816, 0x132b1c07, 0x023e3311, 0x35262637, 0x14153335, 0x13351716, 0x2105485f, 0x9e7d0321, 0x03260805, 0x06211121, 0x204f6f06, + 0x8e133c44, 0x3738b483, 0x7e4a021c, 0x79fd1f9a, 0x0231011e, 0xd1e4f601, 0xf7feb501, 0xb2825a19, 0x4c17c734, 0xb519768c, 0x5bbabd96, 0x0103135f, + 0xfe7afc84, 0xcb820139, 0x15e00334, 0xfd020114, 0x945c010e, 0x0100009a, 0xd1fe4200, 0x7f576f04, 0x23112238, 0x0b8a7503, 0x0411212e, 0xa51f9b6f, + 0x0d16bafe, 0x49634028, 0x21068e75, 0xba5bb302, 0x0e917505, 0x007bfc25, 0x1800ffff, 0x820c036a, 0x001f280f, 0x05920400, 0x82060262, 0x181f839b, + 0x230ceb78, 0x0101ffff, 0x46201f82, 0x01261f83, 0x0000007a, 0x2f860002, 0x00030037, 0x4b390006, 0x585027b0, 0x01031140, 0x4d280101, 0x00020200, + 0x27238260, 0x1b4e0029, 0x02000e40, 0x64202d83, 0x01281a84, 0x0c40594e, 0x05060000, 0x23083582, 0x08041103, 0x01012b17, 0x01170121, 0x01d50221, + 0x018dfbbd, 0xc3fe79bc, 0x62057902, 0x62059efa, 0x00e5fba4, 0xf0208783, 0x22207782, 0x18209784, 0x84200f84, 0x2a200f82, 0x7d200f84, 0x09535018, + 0x28220f84, 0x50180000, 0x1b200c1b, 0x292aa382, 0x05002640, 0x05030400, 0x96826704, 0x00610125, 0x602e0101, 0xa0820816, 0x24121129, 0x06232625, + 0x182b1c08, 0x180f0d50, 0x230bdfc8, 0x21352127, 0x0d0f5018, 0xa590ce2d, 0xa19490a5, 0xfe7290a5, 0x18880178, 0x30100c50, 0x011001d7, 0xfee5fe1a, + 0xfef0feef, 0xd51801ea, 0x5b561896, 0x82c32015, 0x849c20cb, 0x823820bb, 0x00013320, 0x04000027, 0x00620588, 0xb53a0006, 0x02000103, 0x58414c01, + 0x030d3005, 0x28020201, 0x0001014d, 0x4e002900, 0x820d401b, 0x00022209, 0x24158486, 0x40594e02, 0x2b3d820b, 0x12060006, 0x18080411, 0x2301012b, + 0x02330283, 0xd2b301d5, 0x9cfe9efe, 0x05b401c9, 0x049efa62, 0x824cfbb4, 0x0000215a, 0x1c3f7418, 0x49824120, 0x91000322, 0x1f208782, 0x03262c82, + 0x0b000700, 0x84856500, 0x01072029, 0x05020003, 0x82670203, 0x5f013223, 0x01010106, 0x01084d28, 0x5f040505, 0x29040400, 0x20978204, 0x8222881d, + 0x04002417, 0x89630405, 0x8200202a, 0x081a30a7, 0x00040408, 0x080b0800, 0x04090a0b, 0x42070407, 0x09290609, 0x012b1708, 0x01352107, 0x32038515, + 0xfc1b0e04, 0xfd15039e, 0xfc270352, 0xaf620572, 0x82b1fdaf, 0xb4a12203, 0x2abb82b4, 0x04e7ff55, 0x027b055b, 0x41470006, 0x01210dff, 0x200f8490, + 0x18bb82d6, 0x2308a374, 0x8c000100, 0x24200f82, 0x0c32cb82, 0x0e404b00, 0x0006070c, 0x01030004, 0x0001054c, 0xd7854b01, 0x03001529, 0x005f0203, + 0x18280202, 0x2108d38d, 0xcc820129, 0xbb831220, 0x63010022, 0x032e1e88, 0x11b6594e, 0x04111114, 0x012b1a08, 0xab832101, 0x82350121, 0x01200806, + 0x42fe2e03, 0x68fcb402, 0x11feef01, 0x4bfd9803, 0x7602bf01, 0xa1a12bfe, 0x10020f02, 0x30fea0a2, 0x75189784, 0xff280c1b, 0x002500ff, 0x058b0400, + 0x07075d18, 0x13000322, 0x9d200f82, 0x1126a782, 0x1f001800, 0x9b856a00, 0x01042139, 0x02090b00, 0x06000706, 0x07010869, 0x02010103, 0x0a690107, + 0x82050501, 0x020223ac, 0xa7820229, 0xcf822395, 0x845f0521, 0x4e023528, 0x191a4059, 0x19000019, 0x1b1f191f, 0x1317181a, 0x00110012, 0x142ac883, + 0x1b080c11, 0x1615012b, 0x74181512, 0x4f0808ca, 0x35371234, 0x15060613, 0x13171614, 0x35363611, 0xb2022634, 0xeefdf2f9, 0xf0fdeeb4, 0x929b05fb, + 0xa1aaa18c, 0x6205948c, 0xf9fe0b9e, 0xfefefefc, 0xa2a207f5, 0x010b0107, 0x0801fb02, 0xdafe9e0b, 0xc8d6ad03, 0x110308bb, 0xbc08effc, 0x00add7c7, + 0x14c77418, 0xeb821a20, 0xeb829620, 0x4100172b, 0x0d160940, 0x0304010a, 0x07eb4200, 0x01020e2d, 0x28000002, 0x0301044d, 0x82032903, 0x830e20df, + 0x5f002109, 0x03201685, 0x32054144, 0x17001700, 0x05151515, 0x212b1908, 0x35022611, 0x82113311, 0x820582b0, 0x080582b1, 0x07021434, 0xf7f70111, + 0xa47dc1e6, 0xc17fa0ba, 0x7d01f3e8, 0xc1050116, 0xfefd0902, 0x0311a68f, 0x11bafc48, 0x02028fa4, 0xfec2f7fd, 0x81fe17ff, 0x01000000, 0x93825500, + 0x7b055b29, 0x56002100, 0x82061cb6, 0x2a90876d, 0x00010618, 0x00610300, 0x822e0303, 0x02022994, 0x01055f01, 0x01290101, 0x15239a82, 0x82020104, + 0x0102220c, 0x20238963, 0x3fa18200, 0x1b000113, 0x1218191a, 0x08090a10, 0x01210007, 0x16080721, 0x0622012b, 0x17121411, 0x33352115, 0x3427b182, + 0x32333612, 0x82151216, 0x823320aa, 0x36420812, 0x26103512, 0x9c985802, 0x54fe777c, 0x7d8480ee, 0xe89e9ee8, 0xf07e887d, 0x7b7656fe, 0xf8da049d, + 0xfeece1fe, 0x9b913cf6, 0xd80e0142, 0xa53801db, 0xdbc8fea5, 0x45f5fed8, 0x013c919b, 0x1f01ec0a, 0xc34500f8, 0x02882208, 0x27cf8226, 0x07070000, + 0x0088fe86, 0xff211782, 0x21db82a6, 0x17830522, 0xeb821820, 0xfd211782, 0x201784df, 0x20178252, 0x20178413, 0x20178628, 0x2017848b, 0x20f0827a, + 0x201784eb, 0x2017862b, 0x241784b3, 0x04e7ff98, 0x2017845b, 0x20178647, 0x211783d1, 0x4782eefe, 0x17848b20, 0x17867820, 0x2f852720, 0x2f841782, + 0x8baf0221, 0xc500212f, 0x06215f83, 0x83a782e5, 0x0706215f, 0x07db5618, 0x2f822520, 0x17848b20, 0x17824783, 0x36820520, 0xde20cb82, 0xd2262f82, + 0x07006205, 0x17433a00, 0x00132e05, 0x01000003, 0x00670003, 0x4d280202, 0x068e4100, 0x99521589, 0x01282d06, 0x11b6594e, 0x04101111, 0x012b1a08, + 0x3306c553, 0xd2fdd203, 0x2e02c6c6, 0x7efd8202, 0xc3fd6205, 0x42000100, 0x70207782, 0x0b225f82, 0x5f855100, 0x01031b2d, 0x00050001, 0x04800501, + 0x44000001, 0x0629061d, 0x29050501, 0x401b4e05, 0x831d881a, 0x89842012, 0x4e002422, 0x180e4059, 0x210b1661, 0x214c1b08, 0x377b8306, 0xf6011121, + 0x04a7f3fe, 0xf3fea72e, 0x8bfebb04, 0xe5fd1c02, 0x45fb7401, 0xff223082, 0x791800ff, 0x012108c3, 0x3d108286, 0xfe550002, 0x055b046b, 0x0011007b, + 0xb64d001d, 0x01020110, 0x4b4c0103, 0x58502db0, 0xf5821640, 0x82610021, 0x4d2e2c25, 0x01030300, 0x0101045f, 0x82012d01, 0x00132298, 0x220b8203, + 0x88630103, 0x85022020, 0x1a1c2391, 0x49821416, 0x0527112a, 0x012b1708, 0x11022611, 0x08097f42, 0x11070640, 0x23021013, 0x10110222, 0x12323312, + 0xd4cff801, 0xaaaae574, 0xb95e74e5, 0xa58fd28a, 0xa1938fa5, 0x6bfe8fa5, 0x01258401, 0xd3220178, 0xb2b74301, 0xbdd7befe, 0x1abed5fe, 0x45047bfe, + 0xcf181001, 0x00300dd2, 0x8b000100, 0x580451fe, 0x21006205, 0x16401900, 0x49259c82, 0x00010100, 0x2eb0825f, 0x154e0128, 0x02101213, 0x012b1608, + 0x18363627, 0x0808caa0, 0x33023e4e, 0x22210721, 0x14150606, 0x16171616, 0x06141516, 0x534ed302, 0x6a76306d, 0x495dbd90, 0x01b5fe9f, 0xeafe1d32, + 0x4261cb9e, 0xacab8399, 0x8051fe98, 0x29495b25, 0x3a2b3c3a, 0x81a9eba2, 0xa66ab7ec, 0x8990da7a, 0x43357ab4, 0x9d6e798b, 0xf0248383, 0x35040000, + 0x0f278382, 0x0fb54c00, 0x43040001, 0x002508ce, 0x01000004, 0x69cd1804, 0x093f4209, 0xba821820, 0x90860121, 0x4e03341f, 0x1121b759, 0x05221111, + 0x012b1b08, 0x21232626, 0x82112311, 0x112308ae, 0x17163221, 0x4f237c03, 0xc6ecfe40, 0xfd154503, 0x4a240196, 0x46022f5d, 0x9efd100c, 0xfea96205, + 0x8217164a, 0x205482f3, 0x208b8285, 0x2a8b822d, 0xb74b000a, 0x08020103, 0x46020001, 0x142b067c, 0x00000200, 0x68000203, 0x44010100, 0x14260af3, + 0x00030104, 0x1c8b8603, 0x08063b49, 0x000a0031, 0x1112110a, 0x2b190805, 0x27210121, 0x21013301, 0x01013117, 0xfdc2018e, 0xbf01255a, 0x0240fede, + 0x3ffe25a6, 0x02a86302, 0xa8a9fd57, 0x82009dfd, 0x822c207f, 0x8284207f, 0x000b2a7f, 0x0a094041, 0x04010609, 0x096f4501, 0x00000028, 0x03044d28, + 0x45430302, 0x850e2006, 0x07af410b, 0x0c405922, 0x2205d142, 0x83121112, 0x332a0875, 0x01332701, 0x27030323, 0x2c012701, 0xb448de01, 0xc8c30e02, + 0x0901abad, 0x0496fe4e, 0x9efaaeb4, 0xd4fd2c02, 0xda040304, 0x37821efc, 0xb9000226, 0x7f0454fe, 0x03337b82, 0x66001900, 0x01070e40, 0x01110103, + 0x01100005, 0x48030504, 0x1f2006de, 0x260bb95b, 0x01064d28, 0x5b290000, 0x2d2408b9, 0x401b4e04, 0x1b832188, 0x025f0126, 0x28010101, 0x5937218b, + 0x25130a40, 0x11121223, 0x1d080710, 0x1123212b, 0x33011333, 0x18330101, 0x300d4f5f, 0x7f012335, 0x010ac6c6, 0x27fee3d7, 0xa7849101, 0x075e4d8d, + 0x423f2608, 0x7efd6205, 0x8bfd8202, 0xf0feb5fd, 0x1d309f9f, 0x4619147e, 0x00007b4d, 0x00430001, 0x05a80400, 0x0014007b, 0x0533537b, 0x0a0d0c2f, + 0x00010307, 0x01144c01, 0x401b4a02, 0x2006820c, 0x21128503, 0x2f534c02, 0x83112006, 0x036122f9, 0x0a9c4401, 0x20055744, 0x05af4415, 0x44084f46, + 0x152007b9, 0x84057942, 0x2a1c872f, 0x59594e00, 0x141224b6, 0x18080422, 0x22093c6d, 0x82112311, 0x133808d8, 0x32333636, 0x80041716, 0x26121b0c, + 0xe6fe1c38, 0xdb59fec9, 0x38cb3601, 0x3823647a, 0x03d60418, 0xfd3d3005, 0x02effda0, 0xfd53030f, 0x83d9015c, 0x000a0c61, 0x03ffffff, 0x8824cb84, + 0xc2022602, 0x0725a182, 0x3cfd9707, 0x85178200, 0xe50621e3, 0x77451786, 0x675b1807, 0x4d2e2223, 0x675b1807, 0x18292007, 0x2014675b, 0x675b1808, + 0x0b922d30, 0x910b6602, 0x07919c97, 0x950798fd, 0x2b105a4b, 0xe3ec5301, 0xaefbebe4, 0xf9f4f3fa, 0xc720bb83, 0x5e26d382, 0x06026205, 0xd3825400, + 0x7500012e, 0x7604e7ff, 0x1d007b05, 0x34403700, 0x08976718, 0x03011322, 0x0b5be018, 0x004d2e2e, 0x61030202, 0x29030300, 0x00014e03, 0x0a5be018, + 0x2b160822, 0x158a6718, 0x08477818, 0x1889cc21, 0x18385be0, 0x230cb77f, 0x3a000100, 0x3b20ab82, 0x1c20ab82, 0x2305b573, 0x0b190003, 0x0a229682, + 0xab830101, 0x00030327, 0x00010461, 0x21ab8400, 0x2a426101, 0x28ab8305, 0x06080d0f, 0x1c011c00, 0x26ab8305, 0x14110020, 0x50230402, 0x47080844, + 0x26343536, 0x06222326, 0x36362707, 0x0b01f801, 0xfea03801, 0xcf95abef, 0x95376341, 0x6bb77171, 0x5078ad5e, 0x5c5a51a1, 0xfe7b05c5, 0xe8a4fe93, + 0x5ca4c1fe, 0x472d7e40, 0xccc7f16d, 0x35316af2, 0x0046437e, 0xffff0000, 0x3a074741, 0xc7022602, 0x0f010000, 0x81009a07, 0xc23f8dfd, 0x01b10900, + 0x8dfdb801, 0x852b35b0, 0x82c38627, 0x85c92027, 0x7fff2127, 0x2f4e2794, 0x82842005, 0x82982027, 0x07072627, 0xff7ffe88, 0x244d822e, 0xffb80102, + 0x484d832e, 0x852008bf, 0x8a242388, 0x2fff5efe, 0x2f202386, 0xfe272385, 0x040000f6, 0x886b0592, 0xfd8b2423, 0x8322ffc2, 0xb8022323, 0x238622ff, + 0x238ef020, 0xbafd8c22, 0xff21238f, 0x22238e28, 0x90f4fd8d, 0x84342023, 0x886c2023, 0xfe8e226b, 0x21238f00, 0x2384f3fe, 0x23887520, 0xeefd8f24, + 0x8f85a1fe, 0x86a1fe21, 0x2023858f, 0x20238877, 0x82239190, 0x49d783fd, 0x952209bb, 0x5f6839fe, 0x05922108, 0x97221789, 0x178961fe, 0x85ff0621, + 0x06002353, 0xe518c307, 0x06210b57, 0x211788c2, 0xa741ffc6, 0xfe1f2605, 0x05920482, 0x21178862, 0x178b7e84, 0x17828420, 0x1082cc20, 0x8d070621, + 0x82852017, 0x8bcd2017, 0xf6fe2117, 0x6b204784, 0xce201782, 0xf020178c, 0xcf201788, 0xff21178b, 0x20178828, 0x20178cd0, 0x20178434, 0x2047826c, + 0x20478cd1, 0x201784f3, 0x20178275, 0x201792d2, 0x20178277, 0x25478cd3, 0x040000b3, 0xbf830522, 0x57429c20, 0xd5fd2305, 0xa5422eff, 0x07574205, + 0x8e93ff21, 0xfd8a2223, 0x21238fb5, 0x238466fe, 0x4785d783, 0x32fd8b24, 0x478322ff, 0x200a5742, 0x20238e68, 0x2023928c, 0x22238e80, 0x904cfd8d, + 0x848c2047, 0x85fb8323, 0xfd8e226b, 0x21238f58, 0xb34b92ff, 0xfd95220e, 0x14cb4bcc, 0xcb4b9720, 0x82602006, 0x0513262f, 0x02260284, 0x0607419e, + 0xe38f8220, 0x8e40ff21, 0xfd8a2223, 0x21238f62, 0x238413fe, 0x47886b20, 0xdffc8b22, 0xfe219b8f, 0x20238e15, 0x2023928c, 0x22238e2d, 0x90f9fc8d, + 0x84392047, 0x886c2023, 0xfd8e226b, 0x21238f05, 0x2384e4fd, 0x23887520, 0xdffc8f24, 0x9741a1fe, 0x075f4305, 0x84e3fd21, 0x88772023, 0xfc902223, + 0x21238fde, 0xeb4c3fff, 0xfd95220e, 0x14034d79, 0x8bfd9722, 0x00271783, 0x0482fe9d, 0x85620513, 0x07002553, 0x82008407, 0x60202f84, 0x84201784, + 0xe9221782, 0x178a0000, 0x17884020, 0x178bea20, 0x8413fe21, 0x826b2017, 0x8ceb202f, 0x88152017, 0x8cec2017, 0x882d2017, 0x8ced2017, 0x84392017, + 0x826c2017, 0x8bee2047, 0xe4fd2117, 0x75201784, 0xef201782, 0xe320178c, 0x77201784, 0xf0201782, 0x8825a78c, 0xeb030000, 0x20bf8305, 0x062742a0, + 0x0342aa20, 0x90ff210f, 0x85202384, 0x23853b82, 0xb2fd8a24, 0x53432fff, 0x07874506, 0x23849220, 0x2385d783, 0x5efd8b22, 0x210fbb41, 0x238e8bfe, + 0x55fd8c22, 0x55202390, 0x8d22238e, 0x239021fd, 0x23846120, 0x6b85fb83, 0x2dfd8e22, 0x0c202390, 0x75202384, 0x8f22b388, 0x034207fd, 0x0bfe210f, + 0x77202384, 0x90222388, 0x238f06fd, 0x4e8dff21, 0x95220efb, 0x134fc7fd, 0xfd972214, 0x4e1783b3, 0xff2006cb, 0x87455385, 0x05e34e0a, 0x1788c220, + 0x27068745, 0xe7ffa6ff, 0x84055b04, 0xa6201782, 0x20067f41, 0x0f0747c8, 0x845eff21, 0x88852023, 0xfd8a2223, 0x10074780, 0x23841120, 0x23887b20, + 0xddfc8b22, 0x20109b46, 0x20238e13, 0x2023928c, 0x22238e4b, 0x9017fd8d, 0x8e562047, 0xfd8e2223, 0x21238f22, 0x1b5033ff, 0xfd95280e, 0xff00006d, + 0x8e70ffff, 0xfd972217, 0x261784a9, 0x04000079, 0x82840560, 0x00a828bf, 0x07070100, 0x419bfd8a, 0x24201007, 0x8b222382, 0x23828505, 0x2386ab20, + 0x87424620, 0x84022010, 0x886b2023, 0xfc8c2223, 0x0f1b42cc, 0x84d7fd21, 0x886c2023, 0xfc8e2223, 0x202390a3, 0x2023847f, 0x22238877, 0x427afc90, + 0x1720101b, 0x88232384, 0x50002602, 0x952205e7, 0xff5051fd, 0xfd972214, 0x20178327, 0x05cf5000, 0x5385ff20, 0x07060025, 0x8a0004c3, 0x88c22017, + 0x05c62117, 0xff211784, 0x425f82a6, 0xaf20051b, 0x200c1b42, 0x09234901, 0x845dff21, 0x82852023, 0x2223853b, 0x417ffd8a, 0x10201013, 0x7b202384, + 0x8b222388, 0xef8fdcfc, 0x8e12fe21, 0x928c2023, 0x8e4c2023, 0xfd8d2223, 0x20479018, 0x22238e57, 0x9023fd8e, 0x8e2a2023, 0xfd8f2223, 0x0f5b4125, + 0x8e29fe21, 0xfd902223, 0x21238f24, 0x4f5233ff, 0x0763420e, 0x178e7120, 0xaafd972d, 0xffff0000, 0x82fe5500, 0x41055b04, 0x00250607, 0x00840707, + 0x21178384, 0x1784a6ff, 0x26028425, 0x45001903, 0x178505c3, 0x17845d20, 0x17828520, 0x178b1a20, 0x8410fe21, 0x21478217, 0x178c1b03, 0x17881220, + 0x178c1c20, 0x17884c20, 0x178c1d20, 0x17885720, 0x178c1e20, 0x17882a20, 0x178c1f20, 0x17882920, 0x17892020, 0x0002003f, 0x04e6ff6d, 0x00370449, + 0x00260018, 0x230e4067, 0x03060a0f, 0x01030405, 0x02010b4c, 0x05a54e49, 0x01061833, 0x61000303, 0x00020501, 0x004d3100, 0x61020404, 0x06305600, + 0x01001c25, 0x854d2b01, 0x0105211f, 0x59351e8e, 0x191a1540, 0x1e200001, 0x261a2619, 0x04051113, 0x18011800, 0x06154d07, 0x0333132b, 0x17161613, + 0x27262607, 0x08586627, 0x22175708, 0x16141506, 0x36363233, 0x01022e37, 0x1fa288fb, 0x3572af36, 0x42282c09, 0x120f624d, 0xb4869b28, 0x94b15bcd, + 0x64686e66, 0x2159642f, 0x04624a1a, 0x01b39137, 0xfedafd2b, 0x0e2e2ff6, 0x59580c9d, 0x01ae7e70, 0xa40f0110, 0xd19790fd, 0x3ebdcbc9, 0xab9babaf, + 0xe7820044, 0x52feaa38, 0xde054c04, 0x2b001700, 0x44404700, 0x04030107, 0x03020119, 0x04820112, 0x13144c33, 0x00490102, 0x02030004, 0x00690304, + 0x61000505, 0x20cc8206, 0xc243182a, 0x01293208, 0x2b00014e, 0x22232529, 0x111a1c20, 0x0117000f, 0x26c78617, 0x06141516, 0x6f031e07, 0x272705c5, + 0x34110711, 0x83110336, 0x343525c1, 0x37232326, 0x0883ca82, 0x0222bd08, 0x6ebb7245, 0x8e467dab, 0xca7b4977, 0xc086a077, 0xa4661ddd, 0xa2b1a272, + 0x615e1466, 0xdd628087, 0xa258de05, 0x13a2996e, 0x95592b07, 0x6ac28471, 0x1c22fe65, 0xdec5e905, 0xa0fc5efe, 0x9b8c8e5c, 0x8679919e, 0x01006e77, + 0x55fe4d00, 0x37046304, 0x06001300, 0x010006b3, 0x17012b32, 0x17060601, 0x37262607, 0x26020226, 0x12163727, 0xa1031712, 0x2b51fec2, 0x329a1e0c, + 0x5f222b03, 0xc23e7a71, 0x256b7f42, 0xfc2c3704, 0x88cd651a, 0x74fa6216, 0x0123018f, 0x453ed209, 0xfe00ff52, 0x0200bbb9, 0xe7ff7f00, 0xdd053c04, + 0x2f002200, 0x30403300, 0x00010103, 0x0302041d, 0x004c0201, 0x61210a82, 0x050f4104, 0x41030321, 0x012c07fb, 0x17282a00, 0x00060815, 0x05220122, + 0x250ce94e, 0x16161415, 0x91181e17, 0x2625070b, 0x37363435, 0x58058326, 0x1141050a, 0x26550805, 0xa16d7c02, 0x75416045, 0x2b615444, 0xb48a5565, + 0x95d77259, 0xb672d697, 0xd7556d88, 0x8f6f8771, 0x368e8282, 0x40dd0583, 0x25327038, 0x3a2c3e45, 0x8c382333, 0xea8a97ca, 0x8ee8898d, 0x3837f0b1, + 0x9486537a, 0xc942a6fd, 0xb7bea991, 0x659174b2, 0x01000000, 0x09cb6700, 0x3c403f2d, 0x0304011f, 0x04050120, 0x67000115, 0x052308cf, 0x8205004c, + 0x00052428, 0x7a040067, 0x312405f0, 0x0101004d, 0x242bd387, 0x24252c25, 0x1c080620, 0x1823012b, 0x67082450, 0xc685098e, 0x32333623, 0x0a8d6716, + 0x03334408, 0x7181b717, 0xb370818f, 0xf34f6349, 0x7ad28699, 0x70718289, 0x6777c374, 0x435d53df, 0x81734f9e, 0x01c26874, 0x545350dc, 0x7b323c65, + 0x924c513b, 0x127a786b, 0x5d567b18, 0x3933407d, 0x4c232974, 0x82524550, 0xfed82ebb, 0x05300442, 0x002500c6, 0x1f0b4044, 0x25958201, 0x0210114c, + 0xec514900, 0x830c2005, 0x025f2adf, 0x2a010101, 0x401b4e00, 0x82098212, 0x825720c7, 0x00012206, 0x2109825f, 0xb95b4f00, 0x00252c05, 0x03212425, + 0x012b1608, 0x55000617, 0x62080501, 0x1415021e, 0x36270706, 0x26343536, 0x35022e27, 0x37001234, 0x2123020e, 0x19170437, 0x90e0fed8, 0x6a6d873d, + 0xa49f4c93, 0x5c6d554d, 0x5fbd8d77, 0xe928018d, 0x30796c1b, 0x0517e3fe, 0xfeb47ec6, 0x5e7ffae3, 0x24254c72, 0x734d5e42, 0x2b8348af, 0x3335495e, + 0xa86f3129, 0x07018a88, 0x0ca61901, 0x8399040b, 0xfe8c3f80, 0x04f40355, 0x00190037, 0x13144053, 0x17000101, 0x0102020d, 0x01144c02, 0x04054a00, + 0xc8860202, 0x82001121, 0x0361211a, 0x44052a44, 0x11210644, 0x20288200, 0x2f188986, 0x40594e01, 0x0f00010d, 0x00090b0e, 0x04190119, 0x23055d42, + 0x11071115, 0x21068f50, 0x09822311, 0x37273708, 0x36171616, 0x98cc0236, 0x4817c090, 0x2b8d534b, 0xb31221c0, 0x44041d0f, 0xa53704bc, 0x176dfb93, + 0x7c643404, 0xfd3e6a39, 0x66cd0206, 0x1b193ead, 0x5855286a, 0xef710000, 0xdd052707, 0x14000d00, 0xef711b00, 0x4d2a2315, 0xef710500, 0x01293105, + 0x010e0f4e, 0x16181a00, 0x0e111215, 0x08140f14, 0x8405ef71, 0x11122395, 0x156b0214, 0x36122f05, 0x03062217, 0x13260221, 0x33161221, 0xf1713632, + 0x832c080b, 0x14020683, 0xfd848006, 0x808307ee, 0xdd058180, 0x99fe72fe, 0xbda7feeb, 0x66019901, 0xb85401eb, 0xe4fef79b, 0xfdf71c01, 0xfedefe5e, + 0x3606f377, 0x04e7ff75, 0x001e041a, 0x40290011, 0x02010a26, 0x03010b00, 0x824c0202, 0x5f0125bf, 0x2b010100, 0x210b7552, 0x96582325, 0x21372207, + 0x0b446a11, 0x01352008, 0x15a1fed4, 0x4a5e0a02, 0x3229592a, 0x934c9126, 0x9c8203b0, 0x3f4cf2fc, 0x15891113, 0x8292a524, 0x0200234e, 0x6b82a200, + 0x3704682f, 0x15000b00, 0x0d404000, 0x0102060b, 0x22638204, 0x4201074c, 0x0221087f, 0x20738401, 0x05345e00, 0x2d098e42, 0x594e002b, 0x0c0c0b40, + 0x150c150c, 0x79421011, 0x01012105, 0x2306d845, 0x16160301, 0x0805847a, 0x8903274e, 0x0152fea1, 0x3b5b3c1a, 0x3e7b5a42, 0x203e89fe, 0x181ac016, + 0xfe653704, 0x40d1fe68, 0x0c9c0e3a, 0xa5014854, 0xd85bea01, 0x0273fd5e, 0x5ab465ab, 0x5a000100, 0x6704e6ff, 0x1300e105, 0x16401900, 0x00020506, + 0x0e11134a, 0x4900040d, 0x7882b682, 0x01105308, 0x012b1708, 0x27022e33, 0x17021e37, 0x07171212, 0x01030226, 0x4ad80127, 0x6d85501c, 0x7ccfa21d, + 0x77a55429, 0x41a46dc3, 0x04bac2fe, 0x497a5c1e, 0x74179311, 0xa2feaad5, 0x467c30fe, 0x01c7018d, 0x2a59fc52, 0xaa00ffff, 0x070455fe, 0x06021e04, + 0x59824006, 0x3a00013b, 0x4f040000, 0x0d003704, 0x0cb72a00, 0x05060a0b, 0x4b4a0005, 0x585027b0, 0x07365fb6, 0x0883b420, 0x40597623, 0x272f8209, + 0x020d000d, 0x212b1608, 0x08097e45, 0x01170126, 0x5820ce01, 0xbd3e7569, 0x28667f4b, 0xfebf4101, 0x33019066, 0x38db1b01, 0xe5fe5744, 0x03bf9ffe, + 0xf4fb2b94, 0xbd2d6b84, 0x560442fe, 0x3600dd05, 0x35403800, 0x31568203, 0x01020104, 0x0203012f, 0x1e1f4c03, 0x00490302, 0x0b820002, 0x84456320, + 0x4e012e09, 0x0f110001, 0x06080c0e, 0x36013600, 0x0f7a4505, 0x08266818, 0x43068345, 0x4c0808f9, 0x3e343503, 0x022e3702, 0x36363435, 0xc870ca02, + 0x9b435b54, 0x7f897a4b, 0xe516eb6f, 0xa54c9b87, 0x44907288, 0x584da2a1, 0x7468496a, 0x3e4d8dc0, 0x40317063, 0xcc7b4570, 0x3c3add05, 0x632a2b70, + 0xa1656360, 0x75666e98, 0x47252c4c, 0x050a4462, 0x32496434, 0x51272232, 0x58719a6c, 0x09305580, 0x4e694517, 0x4374976a, 0x18892006, 0x200ecf56, + 0x350f820c, 0x001e0462, 0x40520016, 0x0001130f, 0x02061204, 0x4c020002, 0x1a440107, 0x03132d07, 0x00000201, 0x01055f04, 0x4d2b0404, 0x21076148, + 0x25820013, 0x1a8b8620, 0x4e002408, 0x000d4059, 0x00160000, 0x19111115, 0x1a080611, 0x2315012b, 0x17161411, 0x35262607, 0x23112111, 0x83060611, + 0x332a08f6, 0x2ca26204, 0x69764235, 0x40bf9dfe, 0x2b282d3d, 0x1e046e65, 0x4d9bfd9a, 0x1c990e44, 0x7d028084, 0x84037cfc, 0x8f0e0a01, 0x4e821014, + 0xb3346782, 0x240455fe, 0x0e003704, 0x3c001a00, 0x01133940, 0x01090203, 0x4c220482, 0xe9180a0b, 0x31240c87, 0x0303004d, 0x27074655, 0x00010f10, + 0x1a0f1416, 0x07ce9c18, 0x16080629, 0x1232012b, 0x66061411, 0x10270639, 0x06221712, 0x46161515, 0x2e0805f9, 0xd6e86602, 0xac89b75c, 0xd3dcc069, + 0x92536a85, 0x0478827c, 0xfee2fe37, 0x98fc95f7, 0x170dfe78, 0x0701c903, 0xd7951201, 0xcb7effcc, 0x82c4cec3, 0x00012698, 0x0451fec3, 0x31978227, + 0x40260025, 0x01010323, 0x174c0100, 0x01030416, 0x0b820049, 0x01026130, 0x01310000, 0x0800014e, 0x01250006, 0x11420325, 0x1103460c, 0x08050446, + 0x02363646, 0x54a771bb, 0x54743e5d, 0x33548c54, 0x8e637d86, 0x51a39c4c, 0x68266d55, 0x59ad7d61, 0x3704e483, 0x2a7c3e35, 0x7ea75428, 0x2d537561, + 0x4f664925, 0x84479f71, 0x27475423, 0x2e232f31, 0xa78ab577, 0x000080ef, 0x2f051379, 0x002b0464, 0x001e0011, 0x22b04b53, 0x17405850, 0x09104e18, + 0x004d2b22, 0x24093248, 0x001d401b, 0x21b28204, 0x04827204, 0x05600022, 0x1f8cb782, 0x11405930, 0x1b1c0003, 0x0a0c1416, 0x11000405, 0x4a411103, + 0x17042805, 0x16162715, 0x79021415, 0x36220526, 0x4a411403, 0x273b0806, 0x02060626, 0x07017385, 0x644bef65, 0xf1dedcf0, 0x848ee376, 0x4d817f80, + 0x60ab713b, 0x04072b04, 0xc4301199, 0xd6fefe95, 0xa3fb2c01, 0xe3fd87f3, 0xcdc3c3cb, 0x0131bba1, 0x8200ad3e, 0x00013e00, 0x04e7ff48, 0x001e0401, + 0x40360019, 0x00011633, 0x02091504, 0x010a0001, 0x4c030102, 0x429d8203, 0x0120088b, 0x82082248, 0x00192537, 0x23252318, 0x45067742, 0x11220e6f, + 0x7a422223, 0xff033b05, 0x4a5c7dfe, 0x32295a2a, 0x944c9126, 0x6a455aae, 0x92421f4c, 0x9a1e0458, 0x7d458cfd, 0x66022608, 0x1793150d, 0x22538212, + 0x82c20001, 0x8223208b, 0x0017288b, 0x041e4021, 0x45010203, 0x002105e2, 0x221d8261, 0x824e0029, 0x00172c05, 0x26132317, 0x2b190805, 0x4a121601, + 0x26200570, 0x0805ad60, 0x36323349, 0x02343536, 0x18ee0327, 0x7cde8c1d, 0x67c0d6a5, 0x5482455d, 0x1e041c18, 0x9bfdfe82, 0xb070ecbb, 0xfdd602b1, + 0x466a6e3a, 0x01729aae, 0x0200930b, 0x55fe3e00, 0x37047204, 0x25001a00, 0x09404a00, 0x090a1720, 0x4b060708, 0x0e3207f2, 0x02020104, 0x03016100, + 0x31000002, 0x401b4e02, 0x90830012, 0x03211585, 0x30148401, 0x1c114059, 0x1b00011b, 0x11251c25, 0x011a0010, 0x058b441a, 0x1411123d, 0x11070606, + 0x26261107, 0x37123435, 0x15020633, 0x11171614, 0x22173634, 0x62150606, 0x44080507, 0x9faf2403, 0xad8fd173, 0x2846d3e1, 0x683637b7, 0x41a88894, + 0x799e0c36, 0xfe37043e, 0xb9f2feef, 0xfe0d7aec, 0x9701167f, 0xb7dfff14, 0xa46c1d01, 0xb371fffe, 0x060215c7, 0x588fe8d0, 0x15fe5a94, 0xd4c3ca14, + 0x05c341bc, 0xfe607608, 0x04530453, 0x00120035, 0x0009b306, 0x012b3201, 0x0117021e, 0x07010117, 0x01270101, 0x0127032e, 0x686c3d1c, 0xbd0d0139, + 0x8001a3fe, 0xfecdfebd, 0x8701bec8, 0x605c643c, 0x41350438, 0x0299d79d, 0x5ffd214d, 0x022b0cfd, 0x2270fd94, 0xc389f202, 0x0038738f, 0xfe4f0001, + 0x04750455, 0x001c001e, 0x1b1d4020, 0x0e0f1011, 0x49000601, 0x03010203, 0x002b0000, 0x357c824e, 0x1e1c001c, 0x18080417, 0x3e11012b, 0x03343502, + 0x15121633, 0xf9830214, 0x45622e20, 0x02360808, 0x287371b0, 0x1c18b934, 0x9dacefd6, 0x70b758c0, 0xfc1e048e, 0xa35e0e69, 0x2d01e576, 0x9cfcfe82, + 0x17effee3, 0x01177bfe, 0xae730c9c, 0xfd990267, 0x11817974, 0x7f829703, 0xe7ff3124, 0x7f827f04, 0x2d002828, 0x1d1e2a40, 0x7a820308, 0x05064c2d, + 0x2b020202, 0x0301044d, 0x46620003, 0x7b76068b, 0x15252606, 0x08072523, 0x051b421b, 0x22230222, 0x4105544d, 0x33260981, 0x35363632, 0x1e483735, + 0x35490805, 0x04270234, 0x9b412519, 0x1922d597, 0x9698627c, 0x33a5273d, 0x37553a1e, 0x37ac173c, 0x23395554, 0x691e0434, 0xecb5defe, 0x6fe5f5fe, + 0xf4030176, 0x672401b5, 0x8ef7fea6, 0x985bc29f, 0xfe19f65b, 0xc2b59af2, 0x09018e9f, 0x08df59a6, 0x5c061a26, 0x34032602, 0x06238d82, 0x59288507, + 0x1a2209f7, 0x1788f405, 0x8ae3ac21, 0x30072117, 0x87201788, 0xc2201786, 0x2320f382, 0x40204784, 0xcf604785, 0x84178406, 0x20178547, 0x221d82ac, + 0x43ffff00, 0x47840533, 0x87201785, 0x89201786, 0x27204782, 0x00214783, 0x20478cd4, 0x20178231, 0x205f847f, 0x24178c44, 0x04e6ff6d, 0x20178449, + 0x2017852c, 0x82068217, 0x82a0205f, 0x844d202f, 0x85302017, 0x85652017, 0xfe8c2417, 0x84f40355, 0x85322017, 0x42462017, 0x6d82058b, 0x0419042c, + 0x000d0037, 0x0708b43c, 0x34480202, 0x05b76805, 0x00020123, 0x0fa25d67, 0x02000028, 0x02020057, 0x08825f00, 0x594f0029, 0x101119b5, 0x62190803, + 0x2208055d, 0x37272634, 0x15151616, 0xfd190421, 0x141fc0ae, 0x022a1aaf, 0xfecd0152, 0x72cd0233, 0x3719419e, 0x8238a8b1, 0x00012874, 0x0455fe23, + 0x821e0470, 0x40202d73, 0x0101011d, 0x094c0100, 0x49010208, 0x26071a4c, 0x4e012b00, 0x83231123, 0x132d0857, 0x33363627, 0x11051521, 0x22051107, + 0x31214406, 0x75034f58, 0xffc048fe, 0x03473800, 0x0c12956b, 0xeafa019b, 0x012d0517, 0x00010007, 0x20fb82b5, 0x2957823f, 0x40410015, 0x060c140c, + 0x59820203, 0xac470d20, 0x820d2008, 0x2b002469, 0x4b01034d, 0x0d2006c3, 0x00210983, 0x2415845f, 0x40594e02, 0x309c820b, 0x15150015, 0x18080411, + 0x3311332b, 0x07061411, 0x47058201, 0x2d0805a4, 0x37363634, 0x0ebdb501, 0xd9b3010c, 0x77403229, 0x0a130d67, 0x1e044afe, 0xc3692dfe, 0xfd4b034c, + 0x16444e01, 0x85951f90, 0x5dd5bf3a, 0x4a82b5fc, 0xad000122, 0x022f8f82, 0x1a003704, 0x34403700, 0x03020111, 0x82020410, 0x21ef8205, 0x805d4c03, + 0x4d312107, 0x2a082649, 0x014e0029, 0x0e131500, 0x4406080c, 0x0520079a, 0x2108d85c, 0xd65c3435, 0x32332207, 0x08998200, 0x0b02062f, 0x574aa96b, + 0x89506f40, 0x568b92a8, 0x595b3f7a, 0x01e96ca6, 0x19e27c01, 0x267b393d, 0xd0cdb429, 0x782628c0, 0xd0fe353e, 0xf4a9fffe, 0x08837d82, 0x02370425, + 0x5c620326, 0x002505ab, 0x3ff2fc6d, 0x05d95685, 0xb0f2fc22, 0x8607d35c, 0x202782b7, 0x21278553, 0x279198ff, 0x00020027, 0x0455fe89, 0x2edf8227, + 0x001b000f, 0x092a402d, 0x04060708, 0x82004902, 0x048622e3, 0x08334d01, 0x114e012f, 0x17000110, 0x111b1015, 0x010f001b, 0x0672450f, 0x20067744, + 0xa5ca1826, 0xb3bc2a14, 0x6bbbb4c0, 0x848297cf, 0x3e008382, 0xd4fe3704, 0xdafedafb, 0x177dfe21, 0x011f9a01, 0xf9a4df21, 0xcdc3998c, 0xcdc3c3cb, + 0x8200c2cc, 0x870039a4, 0xf00351fe, 0x26008504, 0x14b30600, 0x2b320100, 0x06141701, 0x020e0706, 0x4a09da4f, 0x4c480656, 0x37490806, 0x3703023e, + 0x679f5cb9, 0x3d488b66, 0x92618394, 0x4fa39c51, 0x723b655b, 0x70ba6f52, 0x847aaed1, 0x0f850433, 0x18458072, 0x636d3a19, 0x2a4e715e, 0x5166451f, + 0x80479d6d, 0x30415429, 0x221a2635, 0xbb96b165, 0x2f202bc4, 0x3a7f8447, 0x0453fef0, 0x001e0421, 0x40270014, 0x00011424, 0x064c0103, 0x49000205, + 0x82000300, 0x00632e02, 0x5f010202, 0x2b010100, 0x21234e02, 0x08d36024, 0x0711212b, 0x21211011, 0x06222107, 0x054f6315, 0x23a02608, 0xc2fe404f, + 0x015b01c0, 0x4dfe18d6, 0x4e014f57, 0x012c5c4a, 0xfd100c21, 0x7c041b31, 0x519a4f01, 0x16fafe59, 0x28738417, 0x04e7ffa5, 0x00e3050b, 0x20f3831a, + 0x2ef38206, 0x3e132713, 0x0e173702, 0x25030702, 0x82033117, 0x82272007, 0xd913310f, 0x3c34c034, 0x07aa081f, 0x90344123, 0xc9375d02, 0x09210d82, + 0x3f0d83a9, 0x982c029a, 0x8f698201, 0x4622366f, 0xfe5e9283, 0xfe96aef8, 0x6e8f696c, 0x83472237, 0x1a015d92, 0x003a6682, 0xfe380001, 0x050e0457, + 0x001900e1, 0x180e4035, 0x04051316, 0x4a000601, 0xea4f0d0e, 0x02b72a07, 0x00000201, 0x1b4e0029, 0x200984b5, 0x054b4376, 0x19001930, 0x08031415, + 0x01332b16, 0x37272626, 0x66470004, 0x27460805, 0x34351236, 0x01230327, 0x38012726, 0xda54fb01, 0x1c014289, 0x17bc7801, 0x1ba61625, 0xa3c91623, + 0x3a273101, 0x160450fe, 0x814ca25c, 0xfe97fe88, 0x6abbfe18, 0x1750d1e1, 0xad2c017c, 0x1ffe839b, 0x5b68c302, 0x97827afc, 0x54fe763f, 0x37043a04, + 0x28002e00, 0x011e2540, 0x4c010100, 0x151f262e, 0x060f1011, 0x010a0105, 0x2c10824a, 0x00006100, 0x4e002d00, 0x1a1c2123, 0x218a8202, 0x864f2705, + 0x14152b06, 0x0107030e, 0x16141117, 0x68183117, 0x23080f73, 0x3e343526, 0x97013703, 0x40312bc5, 0x0d086777, 0x01030c0e, 0x322ac5b7, 0x74508ba8, + 0x40234a26, 0x60453b32, 0x4a081584, 0xd4023d11, 0x8f17444d, 0x2384951f, 0x67858b77, 0x3c570316, 0x44522cfd, 0xa09ce217, 0x14781d30, 0xb24f4418, + 0x7724aa43, 0x1666868a, 0x95000300, 0x1b04e7ff, 0x1900dd05, 0x33002400, 0x41404400, 0x0502081e, 0x04012601, 0x824c0205, 0x040528ce, 0x07690501, + 0x53030301, 0xb65408ca, 0x011a2c0a, 0x2b303200, 0x1b241a29, 0x50101224, 0x08200564, 0x2805354b, 0x06141516, 0x33360706, 0x2a088432, 0x02262223, + 0x36123435, 0x82221736, 0x36372915, 0x26343536, 0x021e0701, 0x0805c94b, 0x22232662, 0x6da70206, 0x9a5b3981, 0x8e23375d, 0x90ca69b7, 0x5958c6a5, + 0x4658bd98, 0x3d0d5f84, 0xfe3dadbd, 0x35023acc, 0x8277536b, 0x38575d24, 0x4fdd0563, 0x965a3f78, 0xc60d1e6d, 0x88d979e2, 0xe04001ab, 0xcc2f01c9, + 0xe96c9167, 0xaf4e19ba, 0xfd3b3d81, 0xeece1c72, 0x618bae66, 0x001e5091, 0x94000200, 0x3620e382, 0x2022e382, 0xe1832a00, 0x01003e08, 0x01030203, + 0x01078002, 0x03010605, 0x67030501, 0x04080800, 0x04040061, 0x02004d2a, 0x09610002, 0x29000001, 0x00014e00, 0x23252729, 0x1a1b1c1d, 0x0e111618, + 0x0506090b, 0x20012000, 0x22e1820a, 0x4a262205, 0x12280932, 0x06233535, 0x36343526, 0x122dee82, 0x07153717, 0x01021015, 0x33331614, 0x08d98426, + 0x9d5b1476, 0x4b56bf60, 0xd63b7254, 0xaa62d9da, 0x19e7da6c, 0xfee64850, 0xd06b8a4a, 0x56728411, 0x9e4f1968, 0xfe720174, 0x83696d9c, 0x04f92801, + 0x6194c301, 0xd9fe5f9f, 0x019601f8, 0xfe69fe04, 0x689b045a, 0x6ebec85c, 0x00030000, 0x0455fe51, 0x00d9055f, 0x00190013, 0x4043001f, 0x181d1e13, + 0x00010417, 0x00134c01, 0x0a4a0002, 0x49010209, 0x501cb04b, 0x030d4058, 0x2b23c282, 0x6601024d, 0x0d200640, 0x00210983, 0x2d158461, 0xb6594e01, + 0x11151315, 0x2b1a0804, 0x024b1101, 0x11072305, 0xf5441107, 0x37620805, 0x16140311, 0x01061117, 0x11272634, 0xc8b40236, 0x7cc16ee3, 0x6fe4c7b8, + 0x79eb7bc1, 0x8e02f279, 0x05f3787b, 0x0e3efed9, 0xa3e4edfe, 0xfe077de4, 0xb2011765, 0xe712010e, 0x077ce4a3, 0x4afcac01, 0x020ac2ae, 0x9afe16fa, + 0xfd0ac2ad, 0x00001a08, 0x09000200, 0x9b04e7ff, 0x1c001e04, 0x33003300, 0x94823040, 0x3233002a, 0x01050311, 0x04064c02, 0x00219982, 0x2626825f, + 0x01074d2b, 0x82020505, 0x020238a3, 0x254e0229, 0x24152415, 0x08331125, 0x132b1e08, 0x33023e27, 0x4c231521, 0x262006bd, 0x24079349, 0x06063736, + 0x08c54c01, 0x56060521, 0x5a0807f4, 0x2b373535, 0x774b2222, 0x7e4b0363, 0x92983127, 0x19117c5f, 0x94915979, 0x3222262e, 0x4c346802, 0x1c143750, + 0x101ba3fd, 0x38334d38, 0x7803ab16, 0x050d0c88, 0x7fda5a8e, 0x72f6feec, 0x01766f73, 0xd87ef303, 0xfe09025a, 0xc2b59a4d, 0x73cd6e9f, 0x6ecc7301, + 0x985bc29f, 0x8219ce5b, 0x000122a8, 0x2ccf8276, 0x0037043a, 0xb306001f, 0x32010616, 0x13c1432b, 0x43260721, 0x2a2c08b2, 0x67774032, 0x0c0e0c08, + 0xc5b60103, 0x0d230c85, 0x43030c0d, 0x3d2912a9, 0x434e2dfd, 0x961f9017, 0x06a04383, 0x02266f82, 0x4ffeb300, 0x6f822404, 0x001d2008, 0x402a0028, + 0x02011f27, 0x01011503, 0x1d4c0202, 0x00490101, 0x02010002, 0x03006501, 0x82610003, 0x03312e2d, 0x252d234e, 0x1a08042a, 0x022e012b, 0x6a848227, + 0xe84c0543, 0x15272506, 0x17161614, 0x01200282, 0x0805484f, 0x2223104c, 0x0dfc0206, 0xad5d5d2a, 0xddd5dcab, 0x87b95ee3, 0x2d338d53, 0x838e6f76, + 0x50c6fd17, 0xee847b94, 0x4ffe6b8a, 0x0f17201c, 0x02b49d1b, 0x010a0101, 0xe3eefe0f, 0x4198f48a, 0x554e9b48, 0x5315112b, 0xa8710344, 0x01b1cc93, + 0x6018d760, 0x19200b13, 0x2a055f48, 0x03120203, 0x04030002, 0x18000101, 0x23092be7, 0x01044d31, 0x3f652b82, 0x13153008, 0x06080e10, 0x19011900, + 0x2b160805, 0x7d363225, 0x33210bbb, 0x15511832, 0xc346250e, 0x76e19f62, 0x0e085118, 0x88473a22, 0x112be718, 0x18feb721, 0x3b0dd35f, 0x04e7ffb0, + 0x02370411, 0x00330206, 0x00ffff00, 0x0455febf, 0x02dd0527, 0x00e10006, 0x00218f82, 0x2c0f8222, 0x001e0464, 0x40470012, 0x080b0e09, 0x0a036f03, + 0x03001428, 0x03000200, 0xc9828002, 0x56510020, 0x22168809, 0x49020200, 0xb62b09b6, 0x11121115, 0x2b1a0804, 0x83331313, 0x23340802, 0x35262603, + 0x14032303, 0x22030706, 0xcbb5f481, 0x25b856f7, 0xb4d90506, 0x470804c6, 0xc90555fe, 0xf6020afd, 0xe501e2fb, 0xfc84b55b, 0x6ffe02fc, 0x84fc63ba, + 0x00239282, 0x82540002, 0x61300893, 0x16003704, 0x42002200, 0x011b3f40, 0x010e0607, 0x4c020702, 0x04021314, 0x00010349, 0x00040105, 0x01086304, + 0x61010606, 0x31010100, 0x0707004d, 0x33078857, 0x1c1e1718, 0x22182217, 0x25121113, 0x08091023, 0x33172b1c, 0x51050e42, 0x15210656, 0x24018221, + 0x01233507, 0x09595122, 0xdc9c5424, 0x5b51e8d7, 0x3a013505, 0x9cc0c6fe, 0x69864b02, 0x827c9253, 0x9d027f78, 0x12010701, 0x26076551, 0x17878ede, + 0x51af049e, 0xff210a62, 0x05075bff, 0x02560624, 0x034c0326, 0x12882105, 0x1792c782, 0x8b878a21, 0x88492017, 0xc98b212f, 0x8c211795, 0x211795a0, + 0x178b218d, 0x47884a20, 0x8bf08e21, 0x88d42017, 0xf38f2117, 0xd620178b, 0x90211788, 0x20178bda, 0x21178835, 0x178bd2ae, 0x17884620, 0x178caf20, + 0x17880e20, 0x178c9820, 0x17881c20, 0x178bb420, 0x88d10521, 0x87b72017, 0x82fe2517, 0x37044904, 0x84211788, 0x8377867f, 0x87062017, 0x07262277, + 0x212f8294, 0x1d820706, 0x00ffff23, 0x201b8e6d, 0x411b9096, 0x26250787, 0x00128807, 0x89378d00, 0x878a211b, 0x8f411b8f, 0x07262307, 0x1b99c98b, + 0x99a08c21, 0x218d211b, 0x9b411b8f, 0x07262307, 0x1b8ff08e, 0x23079f41, 0xf38f0726, 0xa3411b8f, 0x07262307, 0x1b8fda90, 0x22077741, 0x8a830726, + 0x056f4efb, 0x3021df83, 0x21318300, 0x4b416088, 0x21178f05, 0x178bd58a, 0x2f85f383, 0xb74e8b20, 0x2117890c, 0x2f95ee8c, 0x8b6f8d21, 0x85e78317, + 0x3e8e2147, 0x3523178b, 0x85032602, 0x20ae2117, 0x4620178b, 0xaf201788, 0x174f1786, 0x20bf8305, 0x20bf8532, 0x0b2f4f41, 0x8a211789, 0x83178bb6, + 0x212f85a7, 0x1795f88b, 0x95cf8c21, 0x508d2117, 0xbf83178b, 0x8e214785, 0x20178b1f, 0x85a782d4, 0x228f2117, 0xd620178b, 0x90211788, 0x83178b09, + 0x212f85ef, 0x178b01ae, 0x1785ef83, 0x178caf20, 0x47880e20, 0x178b9820, 0x86370421, 0x07072917, 0x003bff84, 0x00ffff00, 0x87051f41, 0x07262247, + 0x862f8294, 0x201f941d, 0x411f9496, 0x26250747, 0x00418807, 0x893f9100, 0xb68a211f, 0x6f411f93, 0x07262307, 0x1f9df88b, 0x9dcf8c21, 0x508d211f, + 0x87411f93, 0x07262307, 0x1f931f8e, 0x23078f41, 0x228f0726, 0x97411f93, 0x07262307, 0x1f930990, 0x22076f41, 0x41830726, 0x75250e1f, 0x1a04e7ff, + 0x52ff8306, 0x88210587, 0x0a6f5223, 0x8a21178a, 0x20178b98, 0x08875249, 0x95da8b21, 0xb18c2117, 0x8d211795, 0x83178b32, 0x207785f7, 0x0607428e, + 0xd4208f85, 0x8f215f88, 0x202f8b04, 0x211788d6, 0x178beb90, 0x17883520, 0x2f53ae20, 0x4606210b, 0xaf201788, 0x0e20178c, 0x98201788, 0x1c20178c, + 0xb4201788, 0x0521178b, 0x201788d1, 0x221783b7, 0x84000400, 0x072908a7, 0x00030001, 0x001b000f, 0x4082002d, 0x01010213, 0x06012600, 0x07012704, + 0x034c0306, 0x4a000201, 0x5029b04b, 0x03234058, 0x081a8201, 0x02096120, 0x00000308, 0x04004d2a, 0x005f0504, 0x4d2b0505, 0x07060600, 0x07070061, + 0x1b4e0729, 0x1f842140, 0x01010326, 0x69010005, 0x24082394, 0x111b4059, 0x2b040510, 0x1f222429, 0x171c1d1e, 0x111b1015, 0x04090b1b, 0x0a0f050f, + 0x012b1608, 0x05250713, 0x03be1832, 0x8a212009, 0x2113210b, 0x2f10e65c, 0xfe4fee9c, 0x33e401ee, 0x31334444, 0x8bfe4444, 0x31240482, 0x9f454532, + 0x280ffd5c, 0xdbfe0107, 0x44cafd48, 0x89208331, 0xbbfd2103, 0x410e145d, 0x17239513, 0x41072705, 0x01201613, 0x26101341, 0xfe73de02, 0x83894fee, + 0x443324e4, 0x41d90144, 0xf820071b, 0x23111341, 0x1548fd70, 0x42201241, 0x28080827, 0x00140004, 0x002c0020, 0x40b1003e, 0x02121314, 0x07080203, + 0x37010002, 0x38080a01, 0x040a0b01, 0x19b04b4c, 0x34405850, 0x08148200, 0x01020032, 0x0c030069, 0x03050001, 0x060e6900, 0x0404030d, 0x01076105, + 0x4d2a0505, 0x09080800, 0x0909005f, 0x0a004d2b, 0x00610b0a, 0x0b290b0b, 0x32401b4e, 0x2e823690, 0x09233984, 0x94690405, 0x59200834, 0x21222740, + 0x00011516, 0x33353a3c, 0x2d2e2f30, 0x2c212628, 0x1a1c2c22, 0x20162015, 0x0a0c0e10, 0x14297c82, 0x080f1401, 0x22012b16, 0x09fa5326, 0x33161627, + 0x17373632, 0x21148206, 0xf34f3435, 0x22212206, 0x410b8826, 0xb5361253, 0x24414d36, 0x73182f23, 0x384c6f22, 0x1e253f4c, 0x4f721b31, 0x5b412efe, + 0x73012106, 0x21066d41, 0x64418dfe, 0x1306380f, 0x2d2f3030, 0x30694a3a, 0x392c2b2f, 0x42bdfeb0, 0x42423231, 0x87423132, 0xb2fe2107, 0x220e8242, + 0x5600ffff, 0x562405c7, 0x3a032602, 0x20054f47, 0x05274440, 0x8a21178f, 0x20178bb5, 0x212f8849, 0x1795f78b, 0x95ce8c21, 0x4f8d2117, 0x4a20178b, + 0x8e214788, 0x20178b1e, 0x20178835, 0x181682ae, 0x22076754, 0x88460627, 0x86af2017, 0xfeb32517, 0x06240455, 0x3c20bf83, 0x4e20bf85, 0xd7820682, + 0x8a21178f, 0x241785c3, 0x04e7ffc2, 0x572f8423, 0x882005cf, 0x178fef86, 0x1785ef87, 0x2f85ef83, 0x178fef87, 0x178fef87, 0x1785ef87, 0x4785ef83, + 0x1785ef87, 0xd782d420, 0x8f201785, 0x8506b34b, 0x88d62017, 0x08902117, 0x3520bf8b, 0x1f411788, 0x202f8507, 0x41178846, 0x1785071f, 0x17880e20, + 0x46829820, 0x2108d758, 0x17881c06, 0x178bb420, 0x88d10521, 0x83b72017, 0x04002117, 0x45060759, 0x332907bf, 0x0b407800, 0x00010102, 0x0bb74501, + 0xb7452020, 0x070a220d, 0x06b44502, 0x00610422, 0x2006727f, 0x0bb4451e, 0x59322091, 0x1c1c1f40, 0x04051011, 0x331c331c, 0x27282b2d, 0xb5452224, + 0x450b200b, 0xb45c1eb5, 0xb9012117, 0x2115bb45, 0xcc5c9c02, 0x16bb450e, 0x5c57fe21, 0x174116e3, 0x1ab9458b, 0xcc5d1320, 0xfb022116, 0x2014bf45, + 0x101541f5, 0x4113bd45, 0x00211814, 0x082f4200, 0x2407c745, 0x40a70044, 0x09c7450c, 0xbf450220, 0x45312006, 0xbf451088, 0x0b0f220d, 0x06bc4502, + 0x0061082a, 0x08290808, 0x2f401b4e, 0xbc453390, 0x2431910b, 0x2d2b4059, 0x05bb452d, 0x2d442d29, 0x393c3e44, 0x45333538, 0x102015bd, 0x202fbd45, + 0x17574117, 0xc345d220, 0x6e232107, 0x201bc345, 0x0e68418a, 0x2020c145, 0x158742b2, 0x00ffff22, 0x2305775c, 0x03260256, 0x4405775c, 0x178f07d7, + 0x8507d744, 0x88492017, 0x07d7442f, 0xd744178f, 0x44178f07, 0x178507d7, 0x47884a20, 0x8507d744, 0x88d42017, 0x07d74417, 0xd6201785, 0xd7441788, + 0x20178507, 0x44178835, 0x178507d7, 0x17884620, 0x8507d744, 0x880e2017, 0x07d74417, 0x82fe3126, 0x1e047f04, 0x07291786, 0x80008407, 0xffff0000, + 0x20178400, 0x25478706, 0x00940726, 0x1d860000, 0x96201f94, 0x5f411f94, 0x07262307, 0x3f934088, 0x8a211f89, 0x411f93b5, 0x2623076f, 0x9df78b07, + 0xce8c211f, 0x8d211f9d, 0x411f934f, 0x26230787, 0x931e8e07, 0x078f411f, 0x8f072623, 0x411f9321, 0x26230797, 0x93089007, 0x076f411f, 0x83072622, + 0x2f0d1f41, 0x82fe8401, 0xb2ff2e03, 0x84070600, 0xffff0000, 0x00290f8d, 0x003c0002, 0x05740442, 0x08098220, 0x08000524, 0x020304b5, 0x2b320200, + 0x13010113, 0x043c0111, 0x9dc8fb38, 0x20056002, 0x8ffd93fd, 0x42fdcf03, 0x43836001, 0x47293388, 0xb004e303, 0x00c00000, 0x08748240, 0x00050038, + 0x0400006a, 0x00620584, 0x00170013, 0x00240020, 0x4038002f, 0x07011035, 0x054c0102, 0x01080201, 0x07020607, 0x03010469, 0x005f0103, 0x4d380101, + 0x06060109, 0x3b825f00, 0x4e003933, 0x11242b2d, 0x11232112, 0x0a24211b, 0x012b1f09, 0x4c1c1914, 0x1e072f0b, 0x11330102, 0x26340523, 0x33112323, + 0x0c863632, 0x21080d86, 0x57840436, 0xfd5bb392, 0x590502dd, 0x8e5087a9, 0x5887475c, 0x74749bfc, 0x7a8a7402, 0x7d785647, 0x0b828cfd, 0x814daa29, + 0x435c654e, 0x19015a88, 0x3e0a5b1c, 0x0c159483, 0x1f018a45, 0x70cfaa01, 0x6756fe5f, 0xe3011afd, 0x2a6d63fa, 0x64231dfe, 0x7c000200, 0x28080703, + 0x0021001a, 0x033b403e, 0x1f000101, 0x090a0f1e, 0x01020604, 0x02030110, 0x01044c03, 0x02010000, 0x00690100, 0x02030302, 0x068c5e59, 0x51030228, + 0x12140001, 0x805e0b0d, 0x16062206, 0x080c7c2b, 0x18110721, 0x2509d771, 0x34350224, 0xbb582412, 0x19062005, 0x08086c1c, 0x2c2d3238, 0x37957131, + 0x95cf4163, 0xa0effeab, 0xe61101a3, 0x463a3b45, 0x43467b05, 0x0a31357e, 0x4709c6fb, 0x5c407f2e, 0xe83f01a4, 0xa33e01e8, 0xd79d37fd, 0x416b0341, + 0x008200d7, 0x2f000332, 0x81040000, 0x0b006205, 0x13000f00, 0x41404400, 0x0837a282, 0x00050601, 0x05006706, 0x05070200, 0x090b6702, 0x0107030a, + 0x84570701, 0x01072208, 0x32d8825f, 0x104f0107, 0x100c0c10, 0x12131013, 0x0c0f0c11, 0x8311120f, 0x0c102700, 0x012b1d06, 0x01881121, 0x23110122, + 0x27080c82, 0xda021123, 0x59fea701, 0x59fefcfe, 0x0401a701, 0x036e60fe, 0x62056e18, 0x83029efa, 0x62057dfd, 0x77fdc3fd, 0xd6fb2a04, 0x00210383, + 0x93421802, 0x39938407, 0x0738403b, 0x04050201, 0x01024c01, 0x05040001, 0x07670401, 0x00000501, 0x06825705, 0x5f000525, 0x82020306, 0x0c4f25a7, + 0x0c00000c, 0x0e218682, 0x2a35820d, 0x1311130b, 0x2b190608, 0x83130121, 0x0135087e, 0x11331103, 0x01230127, 0xcefe6602, 0x9c01b41d, 0xb41e4401, + 0x7f57fea9, 0x0a03a201, 0xc9fe2dfe, 0xe6fc6205, 0x3f01db01, 0x04999efa, 0x00cffb31, 0x00040000, 0x82048272, 0x2e4d82a1, 0x00170013, 0x403d001e, + 0x101b1c3a, 0x8203040f, 0x00460889, 0x02060702, 0x04020304, 0x00030069, 0x00030500, 0x01050069, 0x00570501, 0x5f010505, 0x01050100, 0x1414144f, + 0x12171417, 0x11212223, 0x1c060823, 0x0614012b, 0x13232306, 0x32211121, 0x32330104, 0x23261137, 0x95820523, 0x0805815a, 0x6e04363d, 0x448de789, + 0x0144fe01, 0x2401f9df, 0x1f6bb9fd, 0x721b191c, 0x0276eefe, 0x34333946, 0x9eb40338, 0x09fe5bc4, 0xfedb6205, 0x3102030c, 0xd5fb0202, 0xebfe2b04, + 0xfe217251, 0x8274212f, 0x08af82ae, 0xa6fe5723, 0x7b05ae04, 0x20001600, 0x2d002600, 0x3c403f00, 0x23242a2b, 0x191a1e1f, 0x03020308, 0x02030001, + 0x25b5824c, 0x01004900, 0x0f820104, 0xbb840220, 0x59590321, 0x032f0653, 0x17185100, 0x20171b1d, 0x2a262018, 0x82180605, 0x070228b1, 0x07171616, + 0x1823022e, 0x25090ca7, 0x07220112, 0xbf841611, 0x17100132, 0x05060611, 0x11272634, 0x5a043636, 0xab949f7f, 0x0e070f19, 0x40fefd33, 0x45403333, + 0x88fe3434, 0x021f2140, 0x1e1e1d67, 0x120f191d, 0x53013a17, 0x17dbfb16, 0x19200419, 0xfefed4fd, 0x461a0387, 0xc37c80c9, 0x45fafc45, 0x068b41c1, + 0x05b22508, 0x000f0062, 0x001b0017, 0x40430022, 0x141f2040, 0x05040413, 0x04010103, 0x03004c02, 0x05020708, 0x69050304, 0x01312c82, 0x67010406, + 0x00000600, 0x06005706, 0x025f0006, 0x300c8201, 0x1818184f, 0x121b181b, 0x11212223, 0x06091431, 0x25df821d, 0x23010706, 0x95412201, 0x7f9f281c, + 0xfeea6201, 0x410e0ec5, 0xaa261b9b, 0xe8fd2ac8, 0x9f41f701, 0x0002381c, 0x04000084, 0x0062052a, 0x000d0009, 0x02344037, 0x07000301, 0x82010201, + 0x06002fbc, 0x01030205, 0x04670300, 0x02020101, 0x06825701, 0x02016108, 0x0102005f, 0x0a0a4f02, 0x0d0a0d0a, 0x12111212, 0x1b060710, 0x1521132b, + 0x21072101, 0x21050135, 0xcc013301, 0x2afe5d03, 0xfc17d701, 0xfed80171, 0xfe330270, 0xd501852b, 0xfb9f6205, 0x049ea8e5, 0xebfb0120, 0x03001404, + 0xe7ff8d00, 0x7b052304, 0x13000b00, 0x36001b00, 0x16173340, 0x03041112, 0x27056245, 0x04610002, 0x3e000001, 0x3a08a36a, 0x0d4e013f, 0x1a00010c, + 0x0d130c18, 0x00050713, 0x060b010b, 0x012b1609, 0x18111232, 0x3507ab45, 0x11022217, 0x26011714, 0x01273413, 0x12323316, 0xe9e25802, 0x0383e2e9, + 0x8b7b3308, 0x3c98011f, 0x6bfe1d91, 0x897d703c, 0x8dfe7b05, 0xa9feaafe, 0x74018cfe, 0x56015701, 0xfe977301, 0xded4fefa, 0x5539037e, 0x7bd7cefd, + 0x014fc9fc, 0x00820007, 0xb2000133, 0x16040000, 0x0a006205, 0x26402900, 0x03050607, 0x249e8201, 0x38020200, 0x22a8834d, 0x45600001, 0x058205f2, + 0x000a2b08, 0x1111140a, 0x2b190905, 0x35211525, 0x27051121, 0x04113301, 0x01d4fc16, 0x53c9fe52, 0x9aa9a001, 0xfe039a9a, 0x000188be, 0x5b8538fb, + 0x00007024, 0xff82e603, 0x33001b2a, 0x18193040, 0x0d030102, 0x18057641, 0x8207e740, 0x010123fc, 0x6e825f02, 0x4e02392f, 0x14160001, 0x090a0b0c, + 0x1b011b00, 0x2cf88405, 0x14151616, 0x2107020e, 0x3e352107, 0x090c6403, 0x1d023908, 0x4064bf86, 0x02a8e88f, 0xbdfc177f, 0x3689f4bf, 0x80626f7d, + 0xcc518040, 0xaf677b05, 0xc3b25d6d, 0x979f99ee, 0x98b9ffb7, 0x46806f51, 0x6765634c, 0x5c000100, 0xf503e7ff, 0x2c238b82, 0x18404400, 0x74174bc4, + 0x98820952, 0x01020228, 0x01010061, 0x9882013f, 0x2025272e, 0x171b1d1e, 0x000e1015, 0x072c012c, 0x06219c88, 0x083f7307, 0x16372722, 0x200c4e74, + 0x08af8a36, 0xc1851a23, 0x53709f69, 0xdb7a5890, 0x50e87a92, 0x54a13a7c, 0x799c9d89, 0x42521775, 0x69924874, 0x68438658, 0x08bb8259, 0x5e9d5f21, + 0x0817ad7f, 0x776b914e, 0x615b6fbf, 0x8f434568, 0x926f8e7d, 0x6c4f6632, 0x723f3f73, 0x82004f54, 0x008724c7, 0x82290400, 0x000e3dc7, 0x092f4032, + 0x01000101, 0x020a0b4c, 0x01044a05, 0x01010300, 0x67010002, 0x05050106, 0x27075341, 0x0e000000, 0x11140e00, 0x33080082, 0x2b1b0907, 0x15331101, + 0x03231123, 0x17013521, 0x03132101, 0xb9acac7d, 0x01c4fd01, 0x98fea191, 0x03187401, 0x9783fe5c, 0x4801b8fe, 0x42ab0388, 0x7d01a6fc, 0x8e3f6f82, + 0x0504e7ff, 0x1e006205, 0x40404300, 0x01040103, 0x03021011, 0x004c0205, 0x04030405, 0x82800305, 0x05042422, 0x82690401, 0x5f062969, 0x06060107, + 0x03004d38, 0x22057d74, 0x824e023f, 0x001e3115, 0x2424121e, 0x08112325, 0x012b1c09, 0x36112107, 0x210ab661, 0x34413727, 0x223c0807, 0x11230706, + 0xfd1bd703, 0x3b713de6, 0xd776d3a7, 0x4fc98191, 0x84aa7874, 0x3a648a95, 0x05943a5c, 0x63fe9462, 0xcfe41920, 0x5c75d18a, 0xa0806f51, 0x177da097, + 0x00b90217, 0x95000200, 0x31066743, 0x0027001b, 0x03454048, 0x04000101, 0x1f010201, 0xa4820209, 0x02004c27, 0x05040107, 0x82a28202, 0x06612117, + 0x23057343, 0x61030505, 0x3f37a782, 0x1c1d4e03, 0x21230001, 0x271d271c, 0x0b0d1315, 0x1b000507, 0x41081b01, 0x172605e1, 0x22232607, 0xb0840702, + 0x200c6862, 0x41ad8213, 0x570807ee, 0x8951a402, 0x6f5d4b3b, 0x4106ac98, 0xb26a61a3, 0x7dc8766a, 0x7e5ccdaa, 0x925c7ceb, 0x8c7e0533, 0x057e7b7c, + 0x7f272b7b, 0xf2e4fe3a, 0xc360535d, 0x77dc9693, 0xc92e01a9, 0xbb5401e5, 0x516374fd, 0x98b4d8e5, 0x000080a5, 0xb9000100, 0xfb03ebff, 0x06006205, + 0x1a401d00, 0x0122a882, 0xb2824c01, 0x1b834920, 0x005f2208, 0x00380101, 0x0212114e, 0x052b1809, 0x35210127, 0xd8011521, 0xfd1502b4, 0x15420380, + 0x9ba50437, 0x3926828e, 0x7c000300, 0x3404e7ff, 0x1c007b05, 0x36002900, 0x25402800, 0x0311212e, 0xd4430304, 0x61012105, 0x3e214682, 0x0677464d, + 0x003f002c, 0x2d2c2b4e, 0x1a090429, 0x8a18012b, 0x26220b7a, 0x0b763435, 0x023e2905, 0x16163233, 0x16161405, 0x08137118, 0x26340124, 0x09612726, + 0x035d0807, 0x877279fd, 0x96d7739b, 0x946ed397, 0x4c6c6d7c, 0x6a49947c, 0x72fd7ac1, 0x5b5a8044, 0x6e707959, 0x58fe017b, 0x78526a9e, 0x90898889, + 0x92641a04, 0x7ebb3a3f, 0x6969b36f, 0xaf7e6db1, 0x74923738, 0x2c59895d, 0x4b859c4c, 0x351e3957, 0x76635870, 0x58fafc74, 0x27254669, 0x83707a8b, + 0x35d0828b, 0xff7e0002, 0x051004d3, 0x00170079, 0x40310022, 0x020d1e2e, 0x3a690302, 0x0b996006, 0x00010428, 0x4e033e00, 0xf9770001, 0x05434409, + 0x1411122f, 0x07040602, 0x37023e27, 0x22230606, 0x6edb8326, 0x4608069a, 0x23262637, 0xe6450220, 0xfeb757e5, 0xba2bc5e3, 0x3c0d8afe, 0xb271669b, + 0x83ce7a66, 0x85576e80, 0x867c023c, 0x7905fefe, 0xfffed0fe, 0xc7ddfed0, 0x338f3487, 0x469ad38f, 0x89c56a56, 0xfe6bcd94, 0x56889931, 0x41c9ee4c, + 0xeb450577, 0x00173609, 0x403e0023, 0x0401083b, 0x04030500, 0x01076905, 0x61000202, 0x20a08206, 0x08eb451f, 0x4e01202d, 0x0c0d1819, 0x1d1f0001, + 0x18192318, 0x210c24fb, 0xf3450709, 0x12102811, 0x11123233, 0x56030210, 0xfb450a55, 0x7b8b2c0b, 0x7c8a8a7c, 0x394b4b39, 0x454a4a38, 0xfe3516fc, + 0x01f9fed3, 0x012d0107, 0xfe06012c, 0x37364c50, 0x36374d4d, 0x20bc824c, 0x0aa74602, 0x2d001725, 0x84052a40, 0x8f0420b0, 0x25ae83b0, 0x170c1113, + 0x9c46170d, 0x90a89a06, 0x8294a29c, 0xffff218a, 0x47228b88, 0xaf4ced03, 0x8c03200a, 0x002724a3, 0x413d4040, 0x05280c56, 0x08610405, 0x1c040401, + 0x25116141, 0x27181f21, 0xb88b2719, 0x201b6141, 0xea691807, 0x05294208, 0x7d2bc890, 0x10102826, 0x28252628, 0xa2280f0f, 0x3dc52dd4, 0x9f94929f, + 0x949f3e3e, 0x003d9f92, 0x832adf82, 0x2d04e7ff, 0x06026205, 0xf082e001, 0x62000322, 0x28080f82, 0x007d044e, 0x0019000f, 0x40340024, 0x181d1e31, + 0x02030417, 0x01044c01, 0x02010500, 0x69020003, 0x01030300, 0x01010061, 0x05566a20, 0x10202234, 0x09191119, 0x010f0007, 0x1607060f, 0x1632012b, + 0xa4181512, 0x173c0ad8, 0x15060622, 0x01171614, 0x26341326, 0x16160127, 0x36363233, 0xe2975802, 0x98e17d7d, 0xe2310583, 0x568d5297, 0x70012326, + 0x292de938, 0x4b208dfe, 0x080f8229, 0x8e7d0431, 0xb9b5fafe, 0x908cf8fe, 0xbab50801, 0x978a0501, 0x75a0be54, 0xe60233a2, 0x7f4efe16, 0x10fd31a8, + 0xc1560e10, 0x00010000, 0x040000c6, 0x48690426, 0x01220f33, 0x33488502, 0x001b2209, 0x0933484e, 0x33480720, 0xfc26350d, 0xfe5101d7, 0x9f0153cb, + 0x999999a9, 0x87bc0503, 0x30fc0001, 0x5b822e82, 0x00008f2e, 0x7d04fc03, 0x31001c00, 0x191a2e40, 0x21083348, 0x18820104, 0x03000124, 0x31480069, + 0x021b2f06, 0x1700014e, 0x0a0b0c15, 0x011c0009, 0x0841051c, 0x48162005, 0x04200931, 0x080a8147, 0xc1833c32, 0xea722368, 0x165902c6, 0xe2a9c6fc, + 0x8017468a, 0x478e5868, 0x04cf537a, 0x65a15d7d, 0xb38d7e44, 0x75979f79, 0x565f7ba8, 0x47705f2f, 0x6e686357, 0x72248b82, 0xeb0315ff, 0x2a358b82, + 0x44404700, 0x04022728, 0x03010705, 0x02111204, 0x4c030302, 0x2a908206, 0x05000405, 0x00040069, 0x82040203, 0x01022598, 0x00590201, 0x33053748, + 0x01510102, 0x1f232500, 0x161a1c1d, 0x000d0f14, 0x072a012a, 0x0622a188, 0x4e461607, 0x0f364807, 0x4308b38a, 0x5db68628, 0xab847095, 0x7f95d472, + 0x3f744dd2, 0x9287578e, 0x176e8492, 0x7d916e4d, 0x4383556e, 0x04c25664, 0x59985e7d, 0x0f1a9e77, 0xb9749fa3, 0x6b5c5a6c, 0x798f4046, 0x73927680, + 0x39695b6d, 0x5050713f, 0x24055341, 0x0429ff78, 0x24c7824a, 0x4038000e, 0x0a334835, 0x05010626, 0x57050200, 0x22113a48, 0x484f0205, 0x07200b39, + 0x26113948, 0xb5bfbf8b, 0x48a3fd01, 0x94320539, 0xfe4c0218, 0xdafe9396, 0x03842601, 0xa8fc43aa, 0x3e826a01, 0x9b00012e, 0x130415ff, 0x1f006904, + 0x43404600, 0x18123b48, 0x4e097d63, 0x6926055d, 0x02020300, 0x3f485903, 0x02032206, 0x2a458251, 0x121f001f, 0x23252524, 0x48070811, 0x3f48143e, + 0xe433080d, 0x36e4fd1a, 0xd9ad3e6b, 0x8690d778, 0x3b744ec5, 0x98815b8c, 0x5a3a6b8f, 0x69049432, 0x1d7cfe95, 0x85c7e217, 0x505c74cd, 0x9d404070, + 0x177a9990, 0x82a60217, 0x32434864, 0x004d1f22, 0x20064348, 0x16434820, 0x4805ee41, 0xaf386f43, 0xf10310ff, 0x06006904, 0x27402a00, 0x01000101, + 0x02034c01, 0x02490002, 0x00210b82, 0x0b897c01, 0x2008f782, 0x14060006, 0x2b170703, 0x27011501, 0x03352101, 0xaf0bfef1, 0x81fde101, 0xfb8f6904, + 0x83043b36, 0x4823829b, 0x1f202453, 0x20085348, 0x06534820, 0x53480720, 0x6f6a2145, 0x221e5348, 0x483c9267, 0x38290b53, 0x885d7491, 0x9d4d2c5a, + 0x1c534883, 0x040d2208, 0x007d0410, 0x00210015, 0x1c37403a, 0x0b030201, 0x02020101, 0x0207084c, 0x01044901, 0x02030000, 0x13d04300, 0x1a1e2029, + 0x000d0f18, 0x44150115, 0x1228056e, 0x04021415, 0x24242705, 0x34145b48, 0x45020622, 0xfe9ce9e2, 0x2bf8feb4, 0x2e010a01, 0x659d3917, 0x055d4873, + 0x56703808, 0x74043986, 0x04837f8b, 0xfdd5fe7d, 0xd2bdfeee, 0xf8478f45, 0x6e4c47cf, 0xc6867dc2, 0x8944fe6d, 0xe150488c, 0x0000a0c1, 0x01ffff00, + 0x03f4ff23, 0x028e028b, 0x85470406, 0xd202250f, 0x6c058b03, 0x49200f82, 0x300e4346, 0x002b001f, 0x0639403c, 0x01070001, 0x02000402, 0x08854869, + 0x310a4346, 0x10112021, 0x25270001, 0x2b212b20, 0x1f101719, 0x4b461f11, 0x05174705, 0x28144b46, 0x36323316, 0x26343536, 0x0d814826, 0x2b055246, + 0x7d7de198, 0x8d5297e2, 0x528d5656, 0x56350584, 0x38484838, 0x04484836, 0xfbfe8a7d, 0xf8feb9ba, 0x08018c8c, 0x075246b9, 0x56c19f34, 0xa09fc156, + 0xccfe54be, 0x4a363549, 0x4935364a, 0x07470200, 0x21c3820a, 0xfc462840, 0x46b08b18, 0xb0881afc, 0x9007f746, 0x229c9ea4, 0x88ffff00, 0x03472293, + 0x0c8b48fc, 0x4109b347, 0x4760606f, 0x27ca980b, 0x32324056, 0x31313f40, 0x8928d29e, 0x81aba97f, 0x7fa9ab81, 0x732adb83, 0x130455fe, 0x06021e04, + 0x43427002, 0x22013cc7, 0x8c03f4ff, 0x0d008e02, 0x1d001800, 0x01001a40, 0x01030200, 0x03006902, 0x82610003, 0x001b27e4, 0x2524234e, 0x9a440423, + 0x070c4c05, 0x32334b08, 0x26340716, 0x15062223, 0x36323314, 0x89468c03, 0x478b6465, 0x9d97979f, 0x45454ba4, 0x4b45924d, 0x985d4201, 0x5d985959, + 0x8dbfc08c, 0x6b635d71, 0x010062d2, 0x00008801, 0x82022803, 0x21000600, 0x02031e40, 0x00010301, 0x64824c01, 0x025f0128, 0x1b010101, 0x5e454e01, + 0x1121380a, 0x33252707, 0xba8e0211, 0x7e22014c, 0x6b65d501, 0x007efda7, 0x82310101, 0x827d2043, 0x00172baf, 0x13254028, 0x02000212, 0xb3820108, + 0x03004c26, 0x03000200, 0x0023b882, 0x825f0100, 0x234d8227, 0x14112724, 0x1051b887, 0x48022005, 0xc182082a, 0x69032908, 0x017b903e, 0xd3fd125d, + 0x3b3fa89d, 0x2b5b2f35, 0x82b17a6c, 0x3eba018b, 0x803d5e61, 0x4a6e5e70, 0x29322b2b, 0x778c5134, 0x4f445282, 0x26003a07, 0x45404800, 0x00050124, + 0x05040123, 0x04030106, 0x03020110, 0x0201010f, 0x13dd4805, 0x82050f51, 0x0001308b, 0x1a1c1f21, 0x12141719, 0x26000b0d, 0x46072601, 0x152105e9, + 0x06d74814, 0x09995218, 0x18343521, 0x20075b45, 0x056f7b23, 0x68023d08, 0x4d418b7c, 0x93a45555, 0x623da252, 0x49396b2e, 0x115f8746, 0x733f3846, + 0x53336436, 0x8e029744, 0x43365161, 0x48420e0d, 0x3f35705a, 0x31252851, 0x235c5828, 0x27225229, 0x002f3958, 0x2708bb83, 0x03000021, 0x0096028d, + 0x4032000e, 0x0101052f, 0x074c0102, 0x4a030206, 0x06020104, 0x00010205, 0x00670102, 0x5f000303, 0x8205ef41, 0x0e440805, 0x11110e00, 0x07111114, + 0x252b1b07, 0x21352315, 0x03170135, 0x15333733, 0x22031533, 0x019afe9b, 0xb6e0860a, 0x706b8c0f, 0x01667070, 0x8bfe35c0, 0x007ca9a9, 0xff330101, + 0x027d03f4, 0x001b0082, 0x160e406d, 0x073f5c82, 0x06030101, 0x03010001, 0x0ab04b4c, 0x22405850, 0x01020300, 0x00720305, 0x06050004, 0x18670504, + 0x210899d8, 0x6d420101, 0x401b2207, 0x23248323, 0x80010302, 0x5930259a, 0x11230a40, 0x24221211, 0x1d070722, 0x0614252b, 0x08053f41, 0x35323343, + 0x06222334, 0x21112307, 0x36152107, 0x16323336, 0x81a67d03, 0x5f3b9652, 0x76886d52, 0x741d461b, 0xfe0eec01, 0x23491dbc, 0x71da8465, 0x533c3275, + 0x11626c47, 0x7c66010f, 0x6b100e78, 0x01020000, 0x05374625, 0x00180038, 0x403c0023, 0x00011839, 0x04010403, 0x05011b01, 0x004c0304, 0xcc820003, + 0x00690025, 0x51010601, 0x053d05c1, 0x00610205, 0x021b0202, 0x1f191a4e, 0x1a23191d, 0x23252523, 0x1a070721, 0x2326012b, 0x09065122, 0x35219f82, + 0x08908434, 0x22031746, 0x33161607, 0x34353632, 0x3f0d0326, 0x2b09ad54, 0x6e3e4666, 0xa07baa44, 0x71974ca1, 0xdd327338, 0x4210575a, 0x3d44404c, + 0xbb1ff301, 0x592b2b26, 0xbf7e6c46, 0x5b975b8e, 0xeafe1e1a, 0x3c51334c, 0x0031352e, 0x012d8882, 0x03f0ff3d, 0x00820273, 0x40220006, 0x0afb501f, + 0x1c820120, 0x01005725, 0x825f0001, 0x4f002508, 0x07021211, 0x2e080051, 0x01982e02, 0x0275fe32, 0x013f1036, 0x82687ed5, 0x01032247, 0x24f38219, + 0x008e0297, 0x27f38217, 0x4026002d, 0x0f1b2723, 0x4406ff50, 0x2823110e, 0x43282a2a, 0x924b0655, 0x22da8505, 0x64262637, 0x0521055c, 0x0cf85014, + 0x23442720, 0x754a0806, 0x5a543c50, 0xa59895ac, 0x403c4c54, 0x97867e9d, 0x554564fe, 0x433e3432, 0x1b013d42, 0x9b705c6d, 0xe801534b, 0x19083f41, + 0x6e5a3f4c, 0x4d39576d, 0x3d441312, 0x49636149, 0x1111231f, 0x25171f21, 0x29c5fe23, 0x3e221028, 0xb3822e4f, 0x23010226, 0x9103f3ff, 0x132bb382, + 0x38001e00, 0x01173540, 0x82030302, 0x4c0234ac, 0x49000113, 0x03000100, 0x69030102, 0x00020104, 0x82590200, 0x00022206, 0x32098261, 0x14155100, + 0x1e14181a, 0x25251e15, 0x2b180705, 0x48363625, 0x9b410585, 0x14152706, 0x32130504, 0xda443736, 0x164f0805, 0xb5a66b01, 0x40613328, 0x8c559463, + 0xffa49752, 0xb700ff00, 0x0323552e, 0x484e4097, 0x564d146c, 0x6562241b, 0x94356648, 0x1db4b87e, 0x13186201, 0x312f3392, 0x01ffff2a, 0x0372fe22, + 0x030c018c, 0x000e0407, 0x007efe00, 0x0200b109, 0x797efeb8, 0x01250737, 0x037efe88, 0x22a28228, 0x870f0407, 0x8b01201f, 0x8231201f, 0x847d201f, + 0x9410203f, 0x8223201f, 0x848b205f, 0x9411201f, 0x8221201f, 0x018d223f, 0x207f8214, 0x201f9412, 0x203f8233, 0x207f847d, 0x201f9413, 0x205f8825, + 0x24bf9414, 0x036efe3d, 0x203f8473, 0x203f9415, 0x203f8219, 0x209f8497, 0x201f8716, 0x24df8b03, 0x0371fe23, 0x201f8491, 0x265f9417, 0x03d90222, + 0x4173058c, 0x0221053f, 0x053f41e5, 0x41e50221, 0x0225093f, 0x052803e1, 0x241f8263, 0x0200000f, 0x231f83e1, 0xe102b801, 0x31201f88, 0x7d221f82, + 0x1f826f05, 0x1f941020, 0xd5022324, 0x1f848b03, 0x1f941120, 0x3f822120, 0x77058d22, 0x92053f41, 0x8233205f, 0x847d203f, 0x9413207f, 0x8825203f, + 0x8714205f, 0x8b02201f, 0x023d269f, 0x057303d0, 0x205f8262, 0x201f8215, 0x20bf86e0, 0x20bf88e0, 0x203f8219, 0x209f8497, 0x203f8716, 0x243f8b03, + 0x03d40223, 0x201f8491, 0x265f9417, 0x036a0222, 0x4104058c, 0x7620063f, 0x20063f41, 0x265f8876, 0x03760288, 0x41f80428, 0x1f84063f, 0x02b80122, + 0x31201f89, 0x7d201f82, 0x10203f84, 0x1f915f82, 0x5f822320, 0x1f848b20, 0x1f941120, 0x3f822120, 0x0c058d22, 0x91063f41, 0x8233203f, 0x847d203f, + 0x9413207f, 0x8825203f, 0x8714205f, 0x8b02201f, 0x023d249f, 0x84730366, 0x9415203f, 0x8219203f, 0x8497203f, 0x8716209f, 0x8b03201f, 0x0223243f, + 0x84910369, 0x9117201f, 0x0041085f, 0x01c9fd01, 0x0337026d, 0x000300df, 0x0002b306, 0x012b3201, 0xfe170127, 0x2e04420b, 0x726d0140, 0x00720002, + 0x011d0002, 0x0594046d, 0x00060063, 0x4027000a, 0x03090a24, 0x01050102, 0x084c0100, 0x0aa07e01, 0xd3483820, 0x17092309, 0xd348012b, 0x284d8305, + 0x4cba2301, 0xfe7e2201, 0x215483ab, 0xdf48e102, 0x8cfe2106, 0x00285d84, 0xf3ff0300, 0xbe040000, 0x22285f86, 0x06b15200, 0x47404464, 0x28086587, + 0x03081d1e, 0x01130402, 0x4c030203, 0x01060000, 0x01000501, 0x00050067, 0x04050204, 0x03020069, 0x00570203, 0x5f030202, 0x2a208200, 0x2100004f, + 0x12191b1f, 0x820f1011, 0x140622ac, 0x24888207, 0x440006b1, 0x238c8913, 0x06061413, 0x20122049, 0x20a285f9, 0x20a283c3, 0x102b4928, 0x82b27923, + 0x21b88e8b, 0x3a494dfe, 0x24cb8212, 0x04f4ffe5, 0x24cb86cc, 0x40630031, 0x3fc78760, 0x0207012f, 0x0602082e, 0x05011107, 0x04011b06, 0x03011a05, + 0x094c0604, 0x07000201, 0x69070206, 0x052fb082, 0x69050604, 0x01010108, 0x00005f00, 0x184d3800, 0x3407dc4c, 0x0c4e0339, 0x2c00000b, 0x2425272a, + 0x181d1f22, 0x0c310b16, 0x20e08431, 0x8ae0820a, 0x050d4cdc, 0x5208aa46, 0x6549083c, 0x85eb200e, 0x83c120ec, 0x49c920ec, 0xae411e70, 0x49df200d, + 0xff821d7e, 0xf4ffab37, 0x6f050505, 0x1b001700, 0x81014200, 0x1a1b2240, 0x00041213, 0x36d68202, 0x09014000, 0x02193f04, 0x01220908, 0x012c0807, + 0x012b0706, 0x49070605, 0x2e20062f, 0x0125f282, 0x67010004, 0x2c05820a, 0x09040809, 0x00080069, 0x07080607, 0x06896169, 0x4d380334, 0x05060600, + 0x05050061, 0x1b4e0539, 0x500cb04b, 0x35a14058, 0x358e3e20, 0x35a41020, 0x13206b8f, 0x6b8f35a4, 0x35a41720, 0xd2af6b8d, 0x00835920, 0x1d174036, + 0x383b3d1c, 0x30333536, 0x1c27292e, 0x24421d42, 0x0b141127, 0x4205b859, 0x012313ef, 0x42170127, 0x0121262d, 0x100f43e3, 0x82b17a2a, 0x429efe8b, + 0xcb402e04, 0x2a1d3e42, 0x603f9b04, 0x70803c5f, 0x4c4b6d5e, 0xfc250760, 0x00027275, 0x1e484272, 0xf9ff0326, 0xb8040000, 0x28064743, 0xb15d0019, + 0x40446406, 0x074b4352, 0x0811122e, 0x10010503, 0x03040301, 0x0800004c, 0x08071344, 0x0502042a, 0x04010657, 0x03020709, 0x67030402, 0x02050500, + 0x0502005f, 0x0b0b4f02, 0x190b0000, 0x1718190b, 0x13141516, 0x0c0d0e0f, 0x44083d43, 0x03200e1e, 0x200d014c, 0x052943ff, 0xea83c520, 0x0c4c3d20, + 0x0e0c440a, 0x4c03fd21, 0x00250b1c, 0xff030000, 0x2abf82f7, 0x006f05b9, 0x002a0026, 0x84840039, 0x4d7920bf, 0x2a230b4b, 0x4d031029, 0x322c054d, + 0x09032831, 0x07013001, 0x0c4c0708, 0x08113556, 0x09010032, 0x00690102, 0x09060809, 0x08010a57, 0x07020b0d, 0x67070806, 0x06090900, 0x0906005f, + 0x2b2b4f06, 0x392b0001, 0x3738392b, 0x33343536, 0x2c2d2e2f, 0x230d7f4d, 0x2b16090e, 0x0121e683, 0x4dfd8232, 0x03232183, 0x41170127, 0x01210e06, + 0x08e6413c, 0x623ea124, 0x964d6a2f, 0x427b250f, 0x4d402e04, 0x210a1f41, 0x28446f05, 0xfefb251a, 0x72000272, 0x24123341, 0x04f4ffd6, 0x06f341db, + 0x9d002624, 0xef411a40, 0x01083007, 0x01210708, 0x01120804, 0x01110503, 0x44050302, 0x2d380633, 0x03040500, 0x00720507, 0x08070006, 0x00670706, + 0x05040008, 0x09690408, 0x200a4345, 0x056c5e03, 0x4e023925, 0x5e2e401b, 0x30a40895, 0x18405932, 0x23250000, 0x1d1e1f20, 0x17191b1c, 0x0d0f1315, + 0x20137545, 0x1a924d13, 0xfa46dc20, 0xa68e250a, 0x3c955281, 0x21059d4d, 0x9d4d1e45, 0x481e2405, 0x42846523, 0x6d200f4d, 0x2812ad4d, 0xff030000, + 0x05f4ff9f, 0x065b4511, 0x9e013724, 0x5b451d40, 0x0119300a, 0x0132090a, 0x01230a06, 0x01220705, 0x41060504, 0x343e0622, 0x05060700, 0x00720709, + 0x08010000, 0x00670100, 0x0a090008, 0x00670908, 0x0706000a, 0x5c45060a, 0x0505280b, 0x04006104, 0x45043904, 0x3520075c, 0x06233b83, 0x9f800507, + 0x4d3e223c, 0x233c8c00, 0x40585010, 0x38203ca8, 0x13203c8e, 0x798f3cab, 0x3cab1720, 0xb1a9798d, 0x7f45748c, 0x36102905, 0x11303134, 0x28242212, + 0x22057845, 0x48012b1f, 0x01231568, 0x42170127, 0x01211b30, 0x106d45d7, 0x82b2792a, 0x4286fe8b, 0x88402e04, 0x2105df4f, 0xdf4f6e51, 0x1867450f, + 0x4b42fd20, 0xffc52417, 0x44e904f4, 0x4624069f, 0x28404302, 0x30159b44, 0x0b0c0128, 0x0c080141, 0x09070132, 0x07060131, 0x06564209, 0x003f2908, + 0x0b070809, 0x02007209, 0x020a0100, 0x0a006901, 0x0a0c0b00, 0x0c00670b, 0x0c090800, 0x05006908, 0x0d610005, 0x38000001, 0x08c67918, 0x004d412b, + 0x61060707, 0x39060600, 0x07614206, 0x46834020, 0x07090823, 0x2047a080, 0x2347983e, 0x40585010, 0x8f9947a9, 0x47ac1320, 0x17208f99, 0x8f9947ac, + 0x47ac1c20, 0x40218f97, 0x0862413e, 0x5c000421, 0xb2410687, 0x414a821e, 0x592009a8, 0x40310084, 0x45000121, 0x3e3f4043, 0x393b3c3d, 0x2f333537, + 0x1162462d, 0x432a5e46, 0x0a201c00, 0x201d5248, 0x0a084383, 0x4611e852, 0x12432378, 0x032c0812, 0xf4ffb5ff, 0x7705fb04, 0x12000e00, 0xb7002e00, + 0x01112040, 0x05120302, 0x10020102, 0x290b0c01, 0x1a0c0801, 0x19090701, 0x06070601, 0x53055054, 0x352005e5, 0x23060743, 0x0d020104, 0x25085e54, + 0x030a0000, 0x12436700, 0x09544110, 0x36401b22, 0xad079541, 0x40593238, 0x2d00001c, 0x2627282b, 0x21232425, 0x171b1d1f, 0x54b18215, 0x0e2405c0, + 0x012b1b09, 0x440dbe48, 0xb620206c, 0x260ab347, 0x044230fe, 0x447e402e, 0x03211762, 0x0ae34851, 0x721cfe25, 0x44720002, 0x0426155c, 0xf4ff1100, + 0xc747a004, 0x00232606, 0x405e002e, 0x07c9475b, 0x01232108, 0x01080502, 0x010f0203, 0x01260306, 0x4c050607, 0x02000500, 0x69020503, 0x01090300, + 0x06030706, 0x210c004d, 0x92460707, 0x24253007, 0x282a0000, 0x2e252e24, 0x181a1f21, 0x490e1113, 0x6a4e09c2, 0x5403200a, 0x01212288, 0x05934717, + 0xee83a520, 0x94546020, 0x0e98471c, 0x5486fe21, 0x04221ba3, 0xf7820900, 0xf782a720, 0x1f001b32, 0x43003800, 0x2040c300, 0x06020116, 0x03071e1f, + 0x2f051b56, 0x0a070138, 0x0708011d, 0x080b0124, 0x0b0c013b, 0x2107fb4c, 0x2b56003d, 0x06370806, 0x06030200, 0x01006902, 0x010a0000, 0x0a006900, + 0x0a080700, 0x08006907, 0x0c0b010d, 0x00690b08, 0x5f040505, 0x38040400, 0x0c0c004d, 0x09006109, 0x4e093909, 0x563e401b, 0x40b40846, 0x18405930, + 0x3d3f393a, 0x433a4339, 0x2d2f3436, 0x6f562723, 0x090e2406, 0x48012b1f, 0x01231adc, 0x41170127, 0x02212371, 0x17f94853, 0x4206fe26, 0x5c402e04, + 0x21148441, 0x19565859, 0xbb032105, 0x280d0e49, 0xfd6b110d, 0x0002724b, 0x1d8e4172, 0xff050027, 0x04f4ffe5, 0x085750ce, 0x38002e26, 0x42404500, + 0x32078942, 0x0e1a2632, 0x04050508, 0x03004c02, 0x03050400, 0x4a066904, 0xeb560a35, 0x02392c06, 0x3700004e, 0x212b2d35, 0x5013151f, 0x4e500852, + 0x2a19560d, 0x2006784f, 0x20f483b9, 0x21245642, 0x200f7e42, 0x2833567b, 0xe1ff0522, 0xd120fb82, 0x2806df47, 0x004e0042, 0x40c60158, 0x15e34720, + 0x3a465227, 0x0905282e, 0x07324a08, 0x0200302e, 0x02070100, 0x07006901, 0x07090800, 0x2006cc47, 0x0fcc470a, 0x47090921, 0x37990ecc, 0x8c0c9c46, + 0x50102337, 0x37994058, 0x8c0c1c47, 0x9c132037, 0x206f9937, 0x99379c17, 0x9c1c206f, 0x216f9737, 0xfc632e40, 0x16524109, 0xd8893a82, 0x00845920, + 0x011b402b, 0x4d555700, 0x353f414b, 0x0d664733, 0x776a0b20, 0x23495b05, 0x674a0320, 0x2a9c4205, 0x4d260121, 0x45271be4, 0x04428d96, 0x423c402e, + 0x824721b5, 0x42fe2022, 0x052627c9, 0xf4fff3ff, 0x5345bd04, 0x00372806, 0x004d0043, 0x451840a1, 0x47280d55, 0x1d232f3b, 0x04090a05, 0x4508f24c, + 0x0823114d, 0x4c690001, 0x444506fa, 0x0a0a2c0b, 0x07006107, 0x4e073907, 0x4535401b, 0x37a01344, 0x10405928, 0x40424a4c, 0x33452e2a, 0x450b2006, + 0x13202233, 0x6b0a095d, 0x3623074a, 0x5a163233, 0x0221154e, 0x173d4543, 0x42f2fd26, 0x3a402e04, 0x45219241, 0x88411942, 0x00002227, 0x078b4100, + 0x06006238, 0x22000a00, 0x38002e00, 0x3a403d00, 0x01000106, 0x0301090a, 0x51450003, 0x45032007, 0x996c0851, 0x004d2108, 0x2a095045, 0x2e2a2a28, + 0x09061211, 0x6c012b1c, 0xaa4206a7, 0x5b522031, 0xfd2106d8, 0x2601419e, 0x3fd0022c, 0x687ed501, 0x027273fc, 0x7e427200, 0x01002128, 0x2f080b5f, + 0x403c0018, 0x02011539, 0x010b0400, 0x010a0302, 0x4c290482, 0x00050106, 0x04050004, 0x64e78267, 0x045f0611, 0x2f128208, 0x12180018, 0x12232523, + 0x2b1b0707, 0x16071701, 0x0d559018, 0x2323342b, 0x35213735, 0xdf017303, 0x0cee5ef6, 0x93fed328, 0xb1818e02, 0xe25e9509, 0x769f250a, 0x01ffff00, + 0x20090b5b, 0x148b5a47, 0xf7632320, 0x07032205, 0x211f8204, 0x6b59de02, 0x59de2006, 0xcb58080b, 0x581f8309, 0xa22b11ab, 0x1103f301, 0x06006203, + 0x83027704, 0xfea2266f, 0x04100392, 0x080f8207, 0x000f6931, 0x60010100, 0x7103f5fe, 0x06008406, 0x04b30600, 0x2b320101, 0x35010705, 0x03011701, + 0x6afe7b71, 0xfe7b9601, 0x0329e2b8, 0x85038684, 0x8363fc2a, 0x823f203f, 0x8250202f, 0x0447222f, 0x0a1f6356, 0xa7fc0232, 0x59032102, 0x0300c302, + 0x2a000700, 0x01022740, 0x00215b82, 0x26068257, 0x055f0100, 0x82030403, 0x044f2a0f, 0x04000004, 0x06070407, 0x2a268205, 0x07061103, 0x35132b17, + 0x82211521, 0x03552903, 0x034ef904, 0xa2210204, 0x24080082, 0xfc010000, 0x03c20144, 0x002b03c0, 0x4032001e, 0x0301012f, 0x004c0104, 0x05010004, + 0x00690104, 0x05000205, 0x3f428259, 0x02030002, 0x05050067, 0x00006100, 0x23510005, 0x23232123, 0x1c070624, 0x0e17012b, 0x2e222302, 0x07820382, + 0x3a085e82, 0x3233033e, 0x3233021e, 0x813f0336, 0x587c571f, 0x50556846, 0x39402f2f, 0x7bfc394a, 0x4b3b6203, 0x4b3f4f40, 0x2e4c536a, 0x0a035e3e, + 0x4f7a3f40, 0x203c503c, 0x01a22029, 0x821f291f, 0x005f3d0a, 0x54fc0200, 0x6002f2fe, 0x26008606, 0x48002a00, 0x010a4540, 0x4c010504, 0x03080709, + 0xbd58ac82, 0x06220816, 0x03020301, 0x0127274f, 0x272a2700, 0x1f28292a, 0x151c1d1e, 0x04101213, 0x01260002, 0x16070a26, 0xfc82012b, 0x15062223, + 0x053b4411, 0x16141123, 0x08108333, 0x35262621, 0x26263411, 0x36323523, 0x3e133536, 0x23112102, 0x02f9fe11, 0x6bf3fd0d, 0x726f605e, 0x836b5e5d, + 0x7c36080b, 0x802c56a8, 0x2c807f7f, 0xa6550102, 0x06aee303, 0x593e9386, 0x7f8578fe, 0x8b791414, 0x405a7bfe, 0x7e8c3793, 0x5d456b01, 0x5c2e9a2f, + 0x7d730146, 0x6cf83489, 0xcb829407, 0xff7ffd23, 0x2bcb8217, 0x00070061, 0x4033000b, 0x02050730, 0x0223c482, 0x59670100, 0x04220a7a, 0xbd830206, + 0x00080829, 0x080b0800, 0x82090a0b, 0x1107292d, 0x07081111, 0x11052b19, 0x0382a682, 0x98820120, 0x7ffd2e08, 0x30fd8503, 0x5c01d002, 0x4a07e9ae, + 0x9df2f99f, 0xb6f84a07, 0x00004a07, 0xff91fc03, 0x06d40317, 0x001f0061, 0x00270023, 0x005d4060, 0x2a4c8209, 0x12670809, 0x05000211, 0x84010203, + 0x00073973, 0x63060706, 0x0b0b010d, 0x10134d1a, 0x0f0f0314, 0x0c0e5f0a, 0x1c0a0a02, 0x0985ec18, 0x25262727, 0x21222324, 0x254a8220, 0x1c1d1e1f, + 0xf6551a1b, 0x85908206, 0x07152c02, 0x03012b1f, 0x03231533, 0x83211323, 0x21112303, 0x03852135, 0x03331323, 0x22038221, 0x82211533, 0x21332110, + 0x28291e82, 0x2ab09c3a, 0xedfe2ca3, 0x2f04822b, 0x01f8fd15, 0x02adfe53, 0x2b4c0208, 0x15012ea3, 0x9a350482, 0xc7fdfefc, 0x01a2fe01, 0xecfe3b13, + 0x4dfe8d03, 0x01b5fe8f, 0x2b03834b, 0x069dccfd, 0xbcfd9f0e, 0xbbfe4501, 0x90360383, 0xb3014dfe, 0x01000000, 0xe7ffa001, 0x56010f03, 0x13000b00, + 0x11831040, 0x14826120, 0x4e013f2d, 0x09022224, 0x34252b18, 0x44323336, 0x013a062c, 0x4f4d69a0, 0x4d4f6a6a, 0x6a4ca069, 0x6c4d4c6a, 0xffff006c, + 0xe7ffe0fd, 0x3f821f02, 0x5d042724, 0x3f8240fc, 0x5d040723, 0x824783ff, 0xd2f9251b, 0x8101e7ff, 0xfb211b85, 0x821b8252, 0x72fe2123, 0xf8212385, + 0x24078232, 0xf9040000, 0x087f8208, 0x80032039, 0x07000300, 0x1f001300, 0x39403c00, 0x00010108, 0x00010300, 0x03010967, 0x03040200, 0x01066702, + 0x61050404, 0x05050107, 0x044e0520, 0x1e000004, 0x1216181c, 0x430a0c10, 0x0a270a95, 0x012b1707, 0x84352115, 0x8bb68a03, 0x200329c2, 0x6003a0fc, + 0x48f9a0fc, 0x0321ca87, 0x24098884, 0xfea2a280, 0x2003827e, 0x20dd86a2, 0x8207864d, 0xffff23a8, 0xe782bcf9, 0xaa047828, 0x2d062700, 0xc38470fe, + 0xdcfb5e22, 0xa9820782, 0x8243fd21, 0x05bf3f1b, 0x001c007b, 0x00340028, 0x1a464049, 0x02010219, 0x01004c01, 0x01020302, 0x02008003, 0xbd820002, + 0x1f00002b, 0x0805094d, 0x04030303, 0x3dd18361, 0x2a4e0420, 0x011d1e29, 0x292e3000, 0x24342a34, 0x1e281d22, 0x0c151728, 0x011c000b, 0x816d0a1c, + 0x030e2608, 0x35231515, 0x0b557634, 0x6205de50, 0x48180500, 0x4b080bc5, 0xb67f2a01, 0x6c6c4960, 0x6947bd49, 0x60804768, 0x853d9247, 0x25fdd857, + 0x3d51513d, 0x0352523b, 0x52523d66, 0x51513b3d, 0x90597b05, 0x54796050, 0x4151674d, 0x5980624b, 0x513f564b, 0x634a4457, 0x87fb6366, 0x543b3a52, + 0x523a3b54, 0x00350787, 0xfe940101, 0x01030391, 0x000d0056, 0x09234026, 0x01000101, 0x0527454c, 0x06825920, 0x5f010023, 0x29118200, 0x0800014f, + 0x010d0007, 0x174a030d, 0x03370809, 0x35261323, 0x58023634, 0x1a156249, 0x4661a19f, 0x63560161, 0x37512846, 0x900194fe, 0x62465c31, 0xad010200, + 0x0103e7ff, 0x0b000704, 0x3c001700, 0x502bb04b, 0x82154058, 0x61002672, 0x3b000000, 0x076e5b4d, 0x4e033f25, 0x8213401b, 0x02012312, 0x27560100, + 0x2a158208, 0x2424b659, 0x09042224, 0x41012b1a, 0x11200af3, 0x01290b8a, 0x494762ad, 0x47496262, 0x39078762, 0x63465e03, 0x64464663, 0x447afd64, + 0x47446464, 0xffff6464, 0xe7ffc5fd, 0x87823902, 0x64042724, 0x688238ff, 0x64040724, 0x078218fc, 0xffff0024, 0x1b823df9, 0x1b851120, 0x8290f721, + 0x21238213, 0x238550fb, 0x2905eb42, 0x3ff80600, 0x7c034a00, 0xc7846a04, 0x1f001b31, 0x37002b00, 0x4d405000, 0x03000102, 0x82040101, 0x010c37b4, + 0x07040005, 0x0a670405, 0x09060801, 0x010d5908, 0x09060007, 0x0f830607, 0x6109083f, 0x0809010b, 0x1c1c5109, 0x34361818, 0x282a2e30, 0x1f1c2224, + 0x1d1e1f1c, 0x1b181b18, 0x22e38313, 0x8c1b070e, 0x0bd742e3, 0xf7422520, 0x5ffb211e, 0xfc21fb87, 0x290987e0, 0xd8fa3d0b, 0xd8fa2805, 0x1b910bfd, + 0x41c10321, 0x46200621, 0x05210786, 0x051b43a2, 0x3041f720, 0x86472006, 0x82002007, 0xfd042800, 0x03cd0000, 0x820d04e8, 0x000f21fb, 0x3f2cfb83, + 0x01083c40, 0x01020003, 0x09670203, 0x0520e683, 0x0026e682, 0x04050004, 0xdb416505, 0x011c2607, 0x0c1c1c4e, 0x2de4850c, 0x1214181a, 0x0f0c0f0c, + 0x0a222413, 0xe68d1907, 0xce41da83, 0x2fea830a, 0x486100fd, 0x49616149, 0xe8066148, 0x76fda2fb, 0x03210d8b, 0x24b28664, 0xfda2a262, 0x23a686f8, + 0x00a2a2cd, 0x93228e82, 0x6b4292fe, 0x00182406, 0x8214b557, 0x4c01219e, 0x22057242, 0x18010514, 0x250e1367, 0x1b4e013b, 0x877f1b40, 0x231f8208, + 0x59020303, 0xde5f0682, 0x40592d07, 0x010c0d13, 0x0c121300, 0x07180d18, 0x450a027b, 0x3524062e, 0x32133634, 0x07200b82, 0x20070543, 0x09854256, + 0x9e2f2508, 0x624660a1, 0x46630704, 0x46646446, 0x4efd6346, 0x664a4662, 0x8f0195fe, 0x62465b31, 0xffff0000, 0x92feabfd, 0x2a068f42, 0x0018fc69, + 0x04070000, 0x8238ff69, 0x00240807, 0x3a000300, 0x7604e7ff, 0x0b000101, 0x23001700, 0x18401b00, 0x00020204, 0x05610100, 0x01010203, 0x244e013f, + 0x22250083, 0x2b1c0906, 0x16084537, 0x340b3c42, 0x3d3b513a, 0x3b3d5151, 0x53900151, 0x51513b3b, 0x01533b3b, 0x27138792, 0x52523a75, 0x53533b3a, + 0x89051044, 0x00002b07, 0xca010200, 0xe502e7ff, 0x91826205, 0x2c000f24, 0x13822940, 0x045f012d, 0x38010101, 0x0201054d, 0x78610302, 0x052905b4, + 0x0b000004, 0x050f0409, 0x2a28820f, 0x09061103, 0x03012b17, 0x76130323, 0xbe240b1f, 0x6c17a815, 0x26079c44, 0x036dfc62, 0x44a0fb93, 0x00290880, + 0xfeffff00, 0x01e7ff0a, 0x226b82f5, 0x466c0427, 0x6c200667, 0x22067b43, 0x82cef805, 0x84822087, 0x05434687, 0x4d002b24, 0x9a444a40, 0x0b200805, + 0x01030a03, 0x0e4d1a01, 0x0c060d08, 0x05040405, 0x02070961, 0x05200505, 0x1520214e, 0x04080914, 0x5d6e9c82, 0x191b2b05, 0x1f151f14, 0x13080d0f, + 0x56461309, 0x070f210a, 0x2120ae85, 0x7645b282, 0x0b824517, 0x82c2f921, 0x200521ca, 0x042a0482, 0x51513dba, 0x52523b3d, 0xd986a1f7, 0x8c870421, + 0x45e68de2, 0x21081177, 0x3fff18fc, 0xab05e803, 0x34001300, 0x0a0b3140, 0x014a0302, 0x04490001, 0x01050301, 0x02030102, 0x0e820667, 0x57010022, + 0x013b0682, 0x01075f00, 0x4f000100, 0x13111111, 0x12111111, 0x2b1e0708, 0x21012705, 0x82372135, 0x17012603, 0x21152101, 0x08038207, 0x9678fe27, + 0x1ffd1701, 0xfc864103, 0x01280439, 0xe2fe924b, 0xb7fce902, 0xfbcf0386, 0x014bc1d1, 0xa2e0a2d2, 0xfe492b02, 0x2007821e, 0x22008200, 0x8668f701, + 0x001b2883, 0x0f094072, 0x8405020e, 0xb04b2a83, 0x4058501a, 0x03010820, 0x238a8509, 0x0b01010a, 0x63308083, 0x04040107, 0x01065f05, 0x041c0505, + 0x27401b4e, 0x12820982, 0x04050323, 0x202c8c67, 0x82b78200, 0x84b78233, 0x594f2336, 0x1c491240, 0x82bf8505, 0x070c22c1, 0x20c1821f, 0x83c18613, + 0x171322c5, 0x83c58603, 0xfc2208c9, 0xfba59620, 0x86270539, 0x0e0653fa, 0x066cf986, 0xab92d7f4, 0xd3face04, 0xf9b30586, 0x980685ed, 0xd08208f9, + 0xc8821320, 0x01a1e128, 0xe1fe4968, 0xd485e1a1, 0xca010231, 0xe50273fe, 0x0b00e903, 0x51000f00, 0x8220b04b, 0x041522ca, 0x2e928201, 0x69010003, + 0x03030105, 0x02005f02, 0x44023d02, 0x17860801, 0x03020223, 0x211e8757, 0xb3820203, 0x0c0c132a, 0x0f0c0001, 0x0d0e0f0c, 0x08160144, 0x13231329, + 0x533c5602, 0x513b3c53, 0xda1d8c51, 0x53e9031b, 0x53533a3b, 0xfe533b3a, 0x0371fc19, 0x0000008f, 0xffa80002, 0x48eb03e7, 0x3e22063f, 0x3d483b40, + 0x82052013, 0x4d3e229e, 0x279b8206, 0x04006104, 0x4e043f04, 0x0980b118, 0x20073248, 0x08eb7d07, 0x43123248, 0x56200c6e, 0x20132648, 0x2a1c4850, + 0x0027b682, 0xff56fd03, 0x488402e7, 0x032552f7, 0x15161632, 0x43c49214, 0xfc201780, 0x0321cf93, 0x067f4371, 0xaa1afd21, 0x097544d9, 0xc0fc0326, + 0x2303e7ff, 0x5608df82, 0x0046003a, 0x40530052, 0x31323850, 0x01020103, 0x0101034c, 0x01020602, 0x01048006, 0x61000202, 0x00020a05, 0x0c4d1f00, + 0x06030b08, 0x09610706, 0x20070701, 0x47484e07, 0x00013b3c, 0x52474c4e, 0x40425248, 0x463c463b, 0x2d2f3436, 0x16182324, 0x3a000c0d, 0x490d3a01, + 0x042009e1, 0x230ce149, 0x0e350706, 0x0728118d, 0x33363627, 0x36171632, 0x20055246, 0x12f94906, 0xb67f8e28, 0x5c533460, 0xfa493453, 0x7b232806, + 0x5219579d, 0x4a35535d, 0x7f260c0a, 0x5629c18e, 0x0f414ed5, 0x1bfd2106, 0x3a0b1841, 0x3f4c6c50, 0x41465f46, 0x577f624b, 0x5141584a, 0x857a2157, + 0x414f3801, 0x4a445c46, 0x70230e24, 0x4a5f6352, 0x00281228, 0xfc040000, 0x03e7ff5c, 0x08051342, 0x2400205a, 0x60003000, 0x191a5d40, 0x01020402, + 0x0601004c, 0x05010605, 0x04010a80, 0x04060300, 0x010b6703, 0x07050006, 0x00670506, 0x61000202, 0x00000109, 0x010c4d1f, 0x61080707, 0x20080800, + 0x25264e08, 0x1d1d2121, 0x2a2c0001, 0x30263025, 0x24212421, 0x201d2223, 0x1e1f201d, 0x4107f142, 0x244b0a42, 0x21152612, 0x21150137, 0xf2531835, + 0x0afe210b, 0x2a132942, 0xddfbf905, 0xfb6d03b6, 0x42f9fe5e, 0xfe202029, 0x20060a49, 0x082842fc, 0xc4000230, 0x070452fe, 0x0b00e903, 0x3c002800, + 0xef823940, 0x0104022d, 0x0401064c, 0x04010201, 0x82058002, 0x4af382d9, 0x623205b7, 0x3d030300, 0x0c0c4e03, 0x280c0001, 0x1c1e280c, 0x3a441517, + 0x06bd4305, 0x29059851, 0x13363435, 0x030e1415, 0x47181415, 0x262909d5, 0x3e343526, 0x02353503, 0x064f4485, 0x6847a034, 0x617f4768, 0x863d9246, + 0x7f7fd957, 0x6c4960b5, 0x6044496c, 0x6250230b, 0xda4b5880, 0x49200805, 0x59636662, 0x7960518f, 0x52694e54, 0xffff0041, 0xf301a001, 0x62030f03, + 0x5d040703, 0x0c020000, 0x20069f51, 0x059f510c, 0x01010029, 0x03b2015e, 0x82a40352, 0x401f23d3, 0xc183001c, 0x15825920, 0x02610029, 0x00010001, + 0x85000151, 0x090323b4, 0x52182b16, 0x02250bea, 0x8f8f6b58, 0x2103826b, 0x0682b201, 0x03838d20, 0x60082e82, 0x04be005a, 0x008a0456, 0x401b000e, + 0x0c0d0e18, 0x08090a0b, 0x04050607, 0x000d0203, 0x00000049, 0x09011076, 0x33012b17, 0x05172503, 0x03030713, 0x37251327, 0xc0f80105, 0x3a760112, + 0x98f97ffe, 0xf998dede, 0x013a7ffe, 0xfe8a0476, 0x6bb38b6f, 0x016ec6fe, 0x6eb3fe4d, 0xb36b3a01, 0xfbffff8b, 0x205f82dc, 0x245f8224, 0xfb790427, + 0x234f8282, 0xce790406, 0xf728e382, 0x03be00c2, 0x00b6058e, 0x50221783, 0x07832c01, 0x0068f729, 0x04070100, 0x8238ff79, 0xb1092627, 0x01b80100, + 0x28f3862c, 0xffa5fb02, 0x04a403fe, 0x25a782ee, 0x40220015, 0xa918151f, 0xb08809cb, 0xb0871420, 0xb0870720, 0x01070125, 0x83012701, 0x014808b0, + 0x01350115, 0xc1adfd01, 0x38e30116, 0x460116fe, 0xfee1fe9e, 0x2d01a2fc, 0x013f0cfe, 0x038002e2, 0x02a2fc5e, 0x0447fdb9, 0xb0fefdee, 0x7bfe87b7, + 0xfeaa0179, 0x81017162, 0x01b2b688, 0xb5ecfdf8, 0x01c9e5fd, 0x00a901ab, 0xfb27bb82, 0x032ffff2, 0x845506a9, 0x009822bb, 0x22b38230, 0x825aff8a, + 0x820820b3, 0x30b021b3, 0xff2fb282, 0xfd4801ff, 0x076803a8, 0x05270008, 0x8247ff9b, 0x0507241b, 0x82b9009b, 0x00003407, 0x00640002, 0x054c0400, + 0x001b0062, 0x4049001f, 0x50060e46, 0x210809b9, 0x0909010b, 0x100f4d38, 0x0707030d, 0x0a0c5f08, 0x3b080802, 0x0201044d, 0x4e023902, 0x1e1f0000, + 0x35821c1d, 0x2111aa50, 0xaa500911, 0x3523230d, 0x03831333, 0x2507a650, 0x21132101, 0xa250a003, 0xab98240a, 0x50af9c3b, 0xfd21089b, 0x11965065, + 0xb3018f23, 0x0f925090, 0x03002008, 0xe2fe2cfc, 0x96065d03, 0x2d002600, 0x53003100, 0x22235040, 0x054a0802, 0x49010204, 0x82020c0e, 0x00022a07, + 0x67000501, 0x0808010a, 0x28c7841a, 0x5f070606, 0x0702090b, 0x0baa1807, 0x27272908, 0x2e2f3031, 0x2d272d27, 0x2205bf52, 0x86111a1b, 0x11182200, + 0x28c78207, 0x17161214, 0x27022607, 0x06775121, 0x212ecc8d, 0x17371236, 0x25020606, 0x35262103, 0xd9833734, 0x5ab9012a, 0xa8688fbb, 0xf4fd3aed, + 0x8c078251, 0xa70131df, 0x68acf038, 0xfd5bba8f, 0xd5013aaf, 0x79fc0f12, 0x022bee84, 0xd6fec9bc, 0x8b6884fb, 0x51b92501, 0xf58b078c, 0x2c01bf2f, + 0xfa83688e, 0xfe07d5fe, 0x6e786a4d, 0x06975163, 0xfc033c08, 0x03f0fe2c, 0x0088068c, 0x003a0030, 0x4077003e, 0x11010874, 0x164c0112, 0x00000f01, + 0x69000f0b, 0x11001200, 0x69111208, 0x08021014, 0x03020507, 0x67030804, 0x02000100, 0x52650201, 0x15250592, 0x09031317, 0x08925209, 0x04010638, + 0x4e041b04, 0x00003131, 0x3b3c3d3e, 0x3a313a31, 0x35363738, 0x61823233, 0x2b2c3024, 0xc75f292a, 0x21222205, 0x3d008311, 0x111c1114, 0x2b1f0718, + 0x06221501, 0x06161317, 0x07161607, 0x33160603, 0x26262215, 0x34411337, 0x26032616, 0x03013636, 0x05015421, 0x21013722, 0x8c352782, 0x28098f6b, + 0x726e6f0e, 0x09280e6b, 0xc87c6b8f, 0xfd1e0d6b, 0x14404112, 0x2090023b, 0xfcc86c0e, 0xe4023a58, 0x979f8408, 0x69fb0d85, 0xfe3b1301, 0x928806ec, + 0x091f5441, 0x405a7828, 0x7d8c3892, 0x4c411a01, 0x2a012d13, 0xfd388c7d, 0x4a4dfe05, 0x42429a4b, 0x27064a41, 0x2cfc0300, 0x6f0317ff, 0x2c08cf53, + 0x00624065, 0x080d000c, 0x12670d0c, 0x094d4210, 0x140e0027, 0x0f0e0f01, 0x05554263, 0x11151323, 0x11554203, 0x0020202d, 0x25262700, 0x20232024, + 0x53212223, 0x162518d4, 0x052b1f07, 0x16254111, 0x2a078354, 0x01112103, 0x01211321, 0x41b3fd67, 0x0136140f, 0xfe0802ed, 0xfb5301ad, 0x39023af9, + 0x130112fc, 0xe9ecfe3b, 0xf7933402, 0x9f440227, 0x049df2f9, 0x85f18376, 0xfc0426f5, 0x0300007c, 0x06ff4360, 0x2700232f, 0x5e406100, 0x0f000e00, + 0x670f0e12, 0x060b4410, 0x01001333, 0x00120067, 0x13120213, 0x09010b67, 0x114d1a09, 0x0a134414, 0x4412c654, 0x1520181b, 0x0320f182, 0x430ac654, + 0x33250d4e, 0x03212515, 0x82ed8421, 0x44482007, 0x01281822, 0x2f1b01e1, 0xb3fbe5fe, 0x0321ec84, 0x540d84f2, 0x30440cc7, 0xfec32b0c, 0x01d5feb5, + 0xfe88feb3, 0x008200b5, 0x7520f385, 0x2728f384, 0x37002b00, 0x63406600, 0x0e2cd782, 0x01048509, 0x86021302, 0x08020a0c, 0x0f23e184, 0x41680708, + 0x6926060c, 0x13001200, 0x12415912, 0x1312220d, 0x2f148261, 0x00005113, 0x2e303436, 0x28292a2b, 0x1e202426, 0x23141445, 0x2b1f0615, 0x804ff89c, + 0x2101230a, 0xa5522113, 0x16172505, 0x26222306, 0x211a0841, 0xb35261be, 0xfb612205, 0x050b41a7, 0x4663d82a, 0x0101604a, 0x63464a62, 0x20191041, + 0x06fa5035, 0x5efe3108, 0xf3fdb301, 0x44646444, 0x00636348, 0x007cfc04, 0x05e00200, 0x00030062, 0x0023001f, 0x405d0027, 0x0208105a, 0x02050702, + 0x03021303, 0x0f141167, 0x3a0b2944, 0x01000000, 0x020b0d5f, 0x4d1a0101, 0x04131300, 0x0206125f, 0x041b0404, 0x5604044e, 0x042207ce, 0xce56041f, + 0x11122a12, 0x1f071510, 0x1323012b, 0x0bd25633, 0x230f0b42, 0x21132101, 0x02262383, 0xca78ca68, 0x0d42d8fc, 0x06304618, 0xf239042a, 0xdb01f226, + 0x2bfe8703, 0x420ad056, 0xfe2c0c08, 0xfcb3014d, 0x00060173, 0x2cfc0300, 0x36064b4d, 0x003f003b, 0x4bbc004b, 0x585013b0, 0x0e003d40, 0x0e000100, + 0x42118001, 0x0f220bfa, 0xe783090f, 0x1a090926, 0x1015124d, 0x32090c47, 0x01164d1c, 0x5f021313, 0x02020414, 0x4e021b02, 0x9345401b, 0x0532433f, + 0x0f0f0028, 0x0d00610d, 0x438f1f0d, 0x82010421, 0x0849843c, 0x00611422, 0x14201414, 0x2c40594e, 0x00004041, 0x4b404547, 0x3e3f4b41, 0x3b003c3d, + 0x35373b00, 0x1e202b2c, 0x20101758, 0x1d504317, 0x33033e22, 0x4c05234d, 0x0e260c27, 0x21010702, 0x254d2113, 0x4198200b, 0xe725175e, 0x938f7320, + 0x0f344c40, 0x5e6d662c, 0x01a5fc1b, 0xecfe3b13, 0x0b4b7404, 0x186f4206, 0x50876426, 0x50905923, 0x2910374c, 0x6b85461a, 0xb3014dfe, 0x234b75fd, + 0xfb042608, 0x030000b8, 0x0a8f44c7, 0x4bda2508, 0x585015b0, 0x0f152c40, 0x08040a0c, 0x0d140e11, 0x08000704, 0x13166807, 0x00040610, 0x03030512, + 0x01000201, 0x21069744, 0x88410104, 0xb04b2205, 0x2b338219, 0x020a0c31, 0x08070f08, 0x0f011557, 0x0f223886, 0x389c6707, 0x43384021, 0x0e2008fc, + 0x38826482, 0x130e002d, 0x16670e0f, 0x12001301, 0x45121301, 0x73900813, 0x40595933, 0x1c24242e, 0x2400001c, 0x26272427, 0x21222325, 0x05b45420, + 0x20140f44, 0x0ecf5917, 0x280ffc42, 0x35211525, 0x21132101, 0x36078205, 0x9c22dcfe, 0x30a32eb0, 0xa330eefe, 0x23ab9830, 0xa33faf9c, 0x82150142, + 0x049a3804, 0xfc67fc3f, 0x231301d7, 0x6e06ecfe, 0xff0267fc, 0xfe8efefe, 0x836f0191, 0x018e2703, 0xd3019002, 0x03832dfe, 0x7a902e08, 0x84fe8e8e, + 0x8eee0201, 0xfc02008e, 0x0494fe2c, 0x0062054c, 0x0021001d, 0x0f49404c, 0x0e05020d, 0x03020204, 0x00670205, 0x00010000, 0x06dc4601, 0x020c1022, + 0x270adb46, 0x1b030300, 0x20214e03, 0x210cd143, 0x00861112, 0x82111021, 0x210522d1, 0x22b38215, 0x8f132303, 0x032325ce, 0x25231533, 0xfe2b1b82, + 0xf97605d6, 0xedfe5ad3, 0x492ca32b, 0x9a330c17, 0xb09c3aac, 0x13015ffe, 0xc9ecfe3b, 0xfeb702a3, 0x434b01b5, 0x8f200ebc, 0x9f820f82, 0xf7022a08, + 0x0393fe7c, 0x009606ad, 0x00340030, 0x04544057, 0x010e0001, 0x022c2d4c, 0x0c0f4a07, 0x030d0402, 0x04020102, 0x0e006701, 0x2f028200, 0x07010963, + 0x104d1a07, 0x0505020b, 0x080a5f06, 0x1c21d182, 0x05117c4d, 0x32333424, 0x9f182431, 0x1b220746, 0xc986191a, 0x83351121, 0x06012aca, 0x07171212, + 0x13251727, 0x27cf9721, 0x02262103, 0x12262702, 0x2005034a, 0x2add8201, 0x8006b901, 0x035b95e5, 0x971ff601, 0x084430e2, 0x6ab87564, 0xe87c0202, + 0xb58f68a2, 0x840af75a, 0xbc0229f1, 0xfea7fed7, 0x02607ce3, 0xfb94bb82, 0x6eecfd34, 0x46010701, 0x5901e2ca, 0x68851a01, 0xd5fefa83, 0x9b5b54fe, + 0x61002905, 0x4f042fff, 0x03005506, 0x37070f77, 0x17012717, 0x56039afb, 0x0645d198, 0x000049e1, 0x51fcffff, 0xe0032fff, 0x27332382, 0xf0fb8a04, + 0x06010000, 0x308a7904, 0x01b10800, 0x4c30b001, 0x012205d8, 0x478279fc, 0x23820820, 0x47870a20, 0x47820520, 0x15010728, 0x01012701, 0x4f8313fd, + 0x01046029, 0x026305fd, 0x845afcb9, 0xfdc52a59, 0x23feb587, 0x02ab018b, 0x2063833c, 0x20638215, 0x276386eb, 0x000000b4, 0x9c8a0406, 0xf7211782, + 0x201782c9, 0x21178587, 0x178238ff, 0xf7218382, 0x20078268, 0x208b8207, 0x82078250, 0xfc20088e, 0x030000e7, 0x00620519, 0x40210006, 0x0001031e, + 0x034c0102, 0x1a020201, 0x0001014d, 0x4e001b00, 0x081a9e18, 0x2b180726, 0x01230113, 0x7e320282, 0xfdd19b02, 0xd0b7fdb8, 0x62059c02, 0xb0049efa, + 0x408250fb, 0x41010021, 0x03330c0f, 0x2b320101, 0x07013713, 0x55039961, 0x490c069a, 0x82451ff9, 0x336f8793, 0x8f044701, 0x62050000, 0x00c00040, + 0x00b10900, 0x6205b801, 0x82050e41, 0xfeb02847, 0x04e90355, 0x1806001e, 0x2015bb4e, 0xbb4e183b, 0x27013607, 0x21352101, 0xb0ea0115, 0x8dfde901, + 0x55fe3903, 0x9ff0043a, 0x31b28292, 0x00cb0102, 0x05e60200, 0x000b007b, 0x402d000f, 0xce82002a, 0x82046121, 0x4d1f21d2, 0x22072154, 0x4f021b02, + 0x1f5405e6, 0x7e40180b, 0x05c25108, 0x23131332, 0x3b580213, 0x3b3b5353, 0x1d8c5252, 0x7b051bda, 0x3b280a84, 0x13fe533b, 0x8e0372fc, 0x00256b83, + 0x04e4ffc4, 0x216b8407, 0x1f540027, 0x0c5f5005, 0x05207b84, 0x00287b84, 0x62030202, 0x20030300, 0x24066150, 0x1d270c27, 0x0861501b, 0x61507c8f, + 0x2221210c, 0x27166050, 0x3d934760, 0xfdfeac85, 0x8a066050, 0x4f1935a1, 0x4a598062, 0x58513f56, 0xc9634a44, 0x60508f5a, 0x684f5479, 0x08055f50, + 0x5800ad2a, 0x78040103, 0x64040603, 0x08007100, 0xb00200b1, 0x2b35b071, 0xffff0000, 0xb0015a00, 0x7c055604, 0x9d040703, 0x42010000, 0x21059f41, + 0x1e844201, 0x00002108, 0x01acfc02, 0x03bc037e, 0x000b0070, 0x4030000f, 0x0201002d, 0x00590100, 0x03010502, 0x67030200, 0x0425ee84, 0x00010001, + 0x107e5551, 0x6318e183, 0x25250a6d, 0xfd152135, 0x079250a6, 0x0a04a124, 0x96507e01, 0xa2a32c07, 0x000000a2, 0x0000fd03, 0x5abc03cd, 0x2e2808bb, + 0x02002b40, 0x04030106, 0xb05a6783, 0x0c0c2110, 0x200aa85a, 0x0ea85a07, 0x6b820520, 0xed490520, 0x09a45a0a, 0x04b20225, 0x5a44f90a, 0xa05a07a4, + 0xa2fd2308, 0x9f5aa9a2, 0x2af38206, 0x0317ffb7, 0x00610649, 0x83070003, 0x010422f3, 0x22eb8201, 0x83670201, 0x560020f4, 0x00210576, 0x20b0825f, + 0x138d6200, 0x21110123, 0x3d038311, 0x6ef94903, 0xd8fadd05, 0xb6f86106, 0x53f94a07, 0xf2f90e06, 0xaafc0300, 0xe8035c01, 0x5b828003, 0x13000f24, + 0x45476f00, 0x23270805, 0x01050000, 0x01085700, 0x05040205, 0x02060357, 0x02010701, 0x69020104, 0x05050108, 0x04005f04, 0x1b4f0405, 0x82062440, + 0x20288388, 0x21288667, 0x26830300, 0x268c0320, 0x1a40592e, 0x04051010, 0x13100000, 0x11121310, 0x200aec59, 0x07945f09, 0x280b9441, 0x03352115, + 0xfea2fbe8, 0x0698411a, 0xfbd90529, 0xa28003a2, 0x41fbfda2, 0x4a08079c, 0x00a2a283, 0xae010100, 0xe9022fff, 0x11005a03, 0x0db30600, 0x2b320105, + 0x16161401, 0x022e0717, 0x36363435, 0x020e1737, 0x45224b02, 0x62416137, 0x41623737, 0x22453761, 0x94684401, 0x503f5288, 0x7979b498, 0x3f5098b5, + 0x83958753, 0xffc52447, 0x8c00032f, 0x26343047, 0x1e372726, 0x06141502, 0x3e270706, 0x90630202, 0x87952247, 0x23478253, 0xb47979b5, 0x52334782, + 0xff009488, 0x005a00ff, 0x0456046e, 0x0406033a, 0x42b00079, 0xff2405b5, 0x2b35b0b0, 0x012f1b82, 0x021402ae, 0x033f06e9, 0x009b0407, 0x85e50200, + 0x0a3b7f1d, 0x1302c526, 0x3e060003, 0x9c201f82, 0xe4201f82, 0xe4201f86, 0x2d05f342, 0xecffffff, 0xbc031f02, 0x4700c502, 0x9f64a204, 0x8301200a, + 0xc4042117, 0x03241782, 0x1b401e00, 0x0022cc83, 0x06820057, 0x01025f26, 0x4f010001, 0xd9820a82, 0x0703112f, 0x35032b17, 0x04141521, 0xa61f02d8, + 0x231f82a6, 0x1f02f400, 0x132037a5, 0xf4223782, 0x3785d003, 0xecff0626, 0xc404cd00, 0x20060f43, 0x062f4c13, 0x40552008, 0x02010452, 0x030c050d, + 0x03020103, 0x08010a67, 0x030e0b0f, 0x09080709, 0x00060067, 0x5d070607, 0x24270bd5, 0x10202024, 0x490c0c10, 0x294f052e, 0x1c1e2305, 0x5c181618, + 0x13230902, 0x43102224, 0x3325103c, 0x33352115, 0x051e4d15, 0x20050355, 0x840f8225, 0x43af2013, 0xfe27073a, 0x7c03ae3d, 0x8debfcae, 0x0850430f, + 0x82a23b21, 0x95fe2100, 0x20065343, 0x210c822e, 0x008200a2, 0xff2ed382, 0x05c404e7, 0x00030062, 0x000b0007, 0xd783000f, 0x61406422, 0x0e25d382, + 0x03030d05, 0x2bd38206, 0x10060108, 0x07030f09, 0x6707060a, 0x01353382, 0x01010c5f, 0x114d1a01, 0x0b0a0a01, 0x0b0b0061, 0x154e0b20, 0x2bd68314, + 0x04040808, 0x191b0000, 0x1f151f14, 0x0e22d289, 0xa418080d, 0x12200f34, 0x2006385c, 0x86c68701, 0x0b8e5607, 0x15be022c, 0x02fe17a8, 0xa78a03a7, + 0x058328fb, 0x5c92fd21, 0xfd210c21, 0x20d28481, 0x2005837c, 0x084c4b5d, 0x02229f82, 0xdf53ecff, 0x0517531d, 0x4f08df53, 0xc34f0acb, 0x4a112018, + 0x21230eba, 0x83132135, 0x18df5303, 0x01f0fe28, 0xa2fe3b23, 0xe3537101, 0x20bf8531, 0x199f54c4, 0x2121bfb8, 0x07775115, 0x2122bf8d, 0x9f540115, + 0x5e012305, 0x44658efe, 0x23c18f08, 0xedfc1201, 0x5523a654, 0xbfdd055f, 0x5f552320, 0x4bbf940c, 0xbba70c69, 0xecff012e, 0x75043fff, 0x0b00ab05, + 0x28402b00, 0x2808575e, 0x02000300, 0x67020301, 0xc6461800, 0x1111270f, 0x1a070412, 0x4e5e172b, 0x96d03b0a, 0x99fe1901, 0xfd87c701, 0x01af02b2, + 0x4bc19248, 0xe2a2d501, 0x492602a2, 0x5f850000, 0xb75ec420, 0x5e688b39, 0x708f07b7, 0x01e4fe2a, 0x8535fe6b, 0x4ffd5002, 0xfe217b89, 0x82838223, + 0x823a20be, 0x2b7f83df, 0x402a000b, 0x00010327, 0x0301014a, 0x00219882, 0x0e2b6801, 0x02030028, 0x11114f03, 0xde861411, 0x6d891720, 0x92a90322, + 0x0622628c, 0x5d854921, 0x02000028, 0x3fff3cfb, 0xdf828d03, 0x2606fb49, 0x030a0b0f, 0x820d4a03, 0x4149205d, 0x925f1f43, 0x2703360b, 0x09fd1701, + 0xfd180196, 0x86b002b1, 0x9703cafc, 0xc5914901, 0x89798296, 0xddf922d1, 0x8679824b, 0x85042073, 0x001724d3, 0x8a334036, 0x1f0f6073, 0x0f601720, + 0x877c8313, 0x2a8495ed, 0x5302e4fe, 0x03864dfd, 0x8f67fc39, 0x0509418f, 0x73fc0222, 0x2c086741, 0x402c000f, 0x02030f29, 0x010d4a00, 0x216b4102, + 0xfa820720, 0x01207d87, 0x18200b82, 0x708af583, 0x82defb21, 0xc1912110, 0x6b84fb83, 0x41e0fd21, 0x002a0506, 0xfeecff01, 0xff4c0494, 0x0f470037, + 0xfe602526, 0x00a3a394, 0xc4203786, 0xd82037a9, 0x00213786, 0xa46f8264, 0x35132537, 0x04641521, 0x00276f87, 0x043eff8e, 0x82470621, 0xb30621a7, + 0x2a08ab4c, 0x47034c8e, 0x2621064d, 0x822118f9, 0xfd4a0893, 0x02f6fe30, 0x00f505d0, 0x405d0041, 0x212a2b5a, 0x24030203, 0x32020401, 0x0412191a, + 0x393a0405, 0x00041133, 0x06010201, 0x090a4100, 0x06060703, 0x0222234c, 0x01014a03, 0x04004907, 0x04010500, 0x01006905, 0x01060000, 0x86476900, + 0x02023c07, 0x03006103, 0x4e021c03, 0x27262526, 0x24272527, 0x2b1e0708, 0x26132703, 0x48222326, 0x332405eb, 0x37171632, 0x13230e8d, 0x5c160317, + 0x0e260567, 0x26222302, 0x0d8c0727, 0xb4a4a635, 0x441c371d, 0x811a6883, 0x73bb831f, 0x41244c28, 0x88366e3b, 0x834a370f, 0xada0a03c, 0x64254b26, + 0x1f812792, 0x3471a56f, 0x453f2c5f, 0x0e873f80, 0x42955738, 0x0222f6fe, 0x2c100d78, 0x3f43314b, 0x0e104f7a, 0x2b3724e7, 0x0b83304c, 0x02223433, + 0x97fd2033, 0x48721b14, 0x5a833f41, 0x2ae21419, 0x250a8246, 0x415a843e, 0x00820028, 0x03630320, 0x05b74708, 0x3f40423e, 0x02020607, 0x0001014a, + 0x02050849, 0x03010402, 0x67030201, 0x01020709, 0x57010000, 0x01290783, 0x01065f00, 0x4f000100, 0x77641810, 0x1113250e, 0x1b070a12, 0x63061563, + 0x2c080511, 0x35210727, 0x37211501, 0x019678fe, 0x031dfd19, 0x92300243, 0xe702e4fe, 0x68f0b9fc, 0xd007cffc, 0xc16867fc, 0xa2d5014b, 0xfe49aa03, + 0x078a4723, 0x00219682, 0x08176305, 0x00132b08, 0x001b0017, 0x0023001f, 0x0e69406c, 0x4a04020d, 0x00020304, 0x110b1249, 0x04050509, 0x0306080a, + 0x03040203, 0x130f1467, 0xba82100d, 0x02000023, 0x3b0b8757, 0x0e5f0002, 0x0003010c, 0x204f0002, 0x181c1c20, 0x00141418, 0x20232000, 0x1c212223, + 0x2f08fb67, 0x1714191a, 0x15161714, 0x13001300, 0x11111311, 0x152a0382, 0x032b1d07, 0x27012115, 0xde632301, 0x15332808, 0x15010721, 0x82213521, + 0x24078703, 0xfedbfd78, 0x29d882bd, 0x873b01db, 0x23023efe, 0xdc824801, 0xc1fedf2d, 0xfc64fd85, 0xfc800c40, 0x8500fb40, 0x01022407, 0x45e0fda2, + 0xe98208c1, 0x8401e222, 0xa221ed87, 0x2aef83a2, 0x00ad0102, 0x04010387, 0x820b00a7, 0x402222ef, 0x098a691f, 0x0d9f6618, 0x24242425, 0x69070422, + 0xfe202c8d, 0x2f0f8d69, 0xffff0000, 0x9a00f5fb, 0x8b040a04, 0xf9052700, 0x2205d35d, 0x82cef905, 0xdbf72717, 0x74039a00, 0x1784b705, 0x2c015022, + 0xf7280783, 0x01000068, 0xfff90507, 0x3113d35d, 0x03feffd0, 0x00f104a4, 0x00180011, 0x18324035, 0xd55d1617, 0x06845e08, 0x01140029, 0x154c0100, + 0x4b490101, 0x00200a5e, 0x4f391382, 0x07021118, 0x03012b18, 0x17010333, 0x01070505, 0x01132313, 0x37252527, 0x06e95d25, 0xb919c83a, 0x5e9a0118, + 0xb3014dfe, 0x1866fe5e, 0x67fe19b9, 0xfeb6015f, 0x17045f4a, 0x3807eb5d, 0xe8010903, 0x0b0118fe, 0xa2e0dda3, 0x16fe0e01, 0xf2feea01, 0xa3dde0a2, + 0x0bee5dce, 0xfc21d782, 0x07ef5d0b, 0xef5def82, 0x51fc2116, 0xc6202382, 0x51056f51, 0x052105eb, 0x0eeb51f9, 0x2cfc032e, 0x8e03f2fe, 0x30008606, + 0x3f003b00, 0x2b4d375c, 0x3c3d3e3f, 0x3b313b31, 0x36373839, 0x2922375c, 0x06060307, 0x17161607, 0x375c1613, 0x03272105, 0x2b16115b, 0x01023e13, + 0x022e2103, 0x36323523, 0x3305365c, 0x04596b8e, 0x6f5a0611, 0x11065772, 0x7b6a5a04, 0x0d0555a4, 0x3717365c, 0x5406108d, 0x3a55fca2, 0x3809d002, + 0x7a976b79, 0x017ffb10, 0xecfe3b13, 0x20155770, 0x133f5b18, 0x7d2f012b, 0x07fd3489, 0x43314dfe, 0x09385c21, 0xc2000128, 0xee032102, 0x6b46c302, + 0x17092b1e, 0x2135132b, 0x2c03c215, 0xb74e2102, 0x821d2005, 0xa3932037, 0x82012037, 0x1d012337, 0x38847602, 0x3f000126, 0x71042102, 0x6f8337a3, + 0x32043f22, 0x00273684, 0x02000001, 0xa3b00421, 0x82112037, 0x8429826f, 0xffff21a6, 0x71316f82, 0x13037104, 0xc7040603, 0x08005000, 0xb00100b1, + 0x05904e50, 0x46000126, 0x6a042202, 0x132053a3, 0x46275382, 0x22022404, 0x8200a1a1, 0x248b8653, 0xc8040602, 0x820f9000, 0x476420ab, 0x262408bf, + 0x446406b1, 0x181ad34e, 0x82072f4b, 0x0364225f, 0x058f47e8, 0x6400022e, 0x4c0452fe, 0x03000000, 0x38000700, 0x2d234184, 0x82010104, 0x0001250f, + 0x03010567, 0x200ea267, 0x0eb97304, 0x25455386, 0x4c042d07, 0xe80318fc, 0x9e9e18fc, 0x9e9ef0fe, 0xc22aaf84, 0xee037102, 0x06031303, 0x1341c504, + 0xffff230d, 0x1b821d01, 0x1b849320, 0x1b8fc620, 0x27194b41, 0x0000ffff, 0xb0047102, 0xc8203784, 0xc2263790, 0xee03d101, 0x6f847302, 0x25105350, + 0xe902adfd, 0x5350d801, 0x7efe2505, 0x00b10900, 0x0caf5018, 0xadfdc524, 0x1f840003, 0x83759c20, 0x01002311, 0x4761f100, 0x0a3f5106, 0x2205f660, + 0x56343502, 0xb92e07dd, 0x688fbb5a, 0x7b7be7a2, 0x8f68a2e7, 0xaf605bba, 0x01852507, 0xe259011a, 0x240a9456, 0x01010000, 0x224f8253, 0x519606bf, + 0x34340a8f, 0x37272602, 0x15121216, 0x07020214, 0x12363627, 0xba5bf702, 0xbb3a4f89, 0xcabc025a, 0x83fa2b01, 0xe6fe8568, 0xe2e2a7fe, 0xe6fea7fe, + 0xfb846885, 0x4f822a01, 0x60e70021, 0x210806e3, 0x40380022, 0x03010835, 0x064c0104, 0x00000501, 0x69000504, 0x03000400, 0x69030401, 0x02020100, + 0x7c825901, 0x00610234, 0x51020102, 0x22000000, 0x17112200, 0x07111c11, 0xa0601b09, 0x26362116, 0x25058574, 0x36260327, 0x84600336, 0x07272c12, + 0x7e7e862d, 0x27072d86, 0x60c86c0e, 0x6d201561, 0x23078174, 0x388c7d6e, 0x82827582, 0xaf822420, 0x8806c92e, 0x32002000, 0x01192f40, 0x4c010102, + 0x05231882, 0x82050001, 0x020024a6, 0x82020104, 0x030339b6, 0x04005904, 0x00610304, 0x51030403, 0x1116111c, 0x09061016, 0x32012b1c, 0x29084361, + 0x16131706, 0x35230606, 0xa0833632, 0x26263734, 0x26361337, 0x7c240123, 0x270d6bc8, 0xafaf860b, 0x97830b86, 0x8f6b7c3c, 0x710e2809, 0x0e737d7f, + 0x6b8f0928, 0x8c388806, 0x6892fe7d, 0x68699a68, 0x948293fe, 0x5a40922e, 0x798b8801, 0x85801512, 0x41598801, 0x6720a385, 0x2406eb60, 0x40280007, + 0x4c128225, 0x04250ff3, 0x03020301, 0x2718824f, 0x11070007, 0x09051111, 0x200a1675, 0x05716067, 0x85060f75, 0x5441204f, 0x4f840697, 0x234e3c82, + 0x244f8c15, 0x35211101, 0x21038221, 0xa2744903, 0x61062705, 0x069db6f8, 0x8d849f0e, 0x00002f2c, 0x61063704, 0x1d000500, 0x11841a40, 0x67010023, + 0x05df5b03, 0x05280e82, 0x11110500, 0x2b180704, 0x15244082, 0x2f021121, 0x06349283, 0x3efa9f61, 0x79000100, 0x810217ff, 0x0500c205, 0x21402400, + 0x01223382, 0xac4e8502, 0x85428b0f, 0x81022187, 0x05238583, 0x8255f9c2, 0x2d1e8283, 0xc800ffff, 0xe8030000, 0x47006205, 0x6b53e104, 0x2f17880b, + 0x40180005, 0x02020515, 0x4c010001, 0x00010000, 0x2b086582, 0x10127601, 0x2b180602, 0x01012113, 0x01c80121, 0xfe2c01f4, 0x010cfed4, 0xfd62052c, + 0x024ffd4f, 0xffff00b1, 0xa501ae01, 0xd005e902, 0x2005af43, 0x11d37802, 0xa501c524, 0x1f840003, 0x00009c22, 0x002d1f91, 0x03cefef1, 0x0382065d, + 0x00d80406, 0x05ed43ec, 0x54ecff21, 0x5320065f, 0xbf201b82, 0xd9201b84, 0x00271b8f, 0x03dcfee7, 0x8274068c, 0x8fda2037, 0x2401211b, 0xc9201b82, + 0xdb201b84, 0x67261b90, 0x6f0303ff, 0x37824d06, 0x1b90dc20, 0x1b824120, 0x1b844920, 0x1b8fdd20, 0xc3410220, 0x06022406, 0x8200de04, 0x079741f7, + 0xdf260f82, 0x01000000, 0x8348d900, 0x37d74306, 0xd7430720, 0x11404805, 0x25052348, 0x3e133736, 0x23480302, 0x03112c12, 0x7f7f7e2b, 0x13032c7d, + 0x47a25406, 0x6b2c15ff, 0x9a2f5d45, 0x01455d2e, 0x34897d73, 0x0121bb82, 0x26ab8222, 0x008606d7, 0x42ec0447, 0x9f240c0b, 0x1004eefe, 0x15261782, + 0x1f402200, 0xd6820300, 0x44000321, 0x4a08108c, 0x10181118, 0x2b1a0704, 0x06062201, 0x12141502, 0x15331616, 0x02022422, 0x12123435, 0x10043324, + 0x6bbdfa8f, 0x8ffabd6b, 0xf2c1feb7, 0x01f28989, 0xec05b73f, 0xd8fee17f, 0xd7fea9a9, 0x989a80e1, 0x61010b01, 0x6001c9c9, 0x82970b01, 0xa000218b, + 0x11207382, 0xee208b84, 0x01308b8b, 0x0394fead, 0x000d0102, 0x401e000d, 0x01010c1b, 0x23059642, 0x00590001, 0x5f219682, 0x210f8200, 0xae77164f, + 0x0722080d, 0x26132303, 0x405ec601, 0x19115d41, 0x39528aa1, 0x57574076, 0x343e1f40, 0x6d01affe, 0x02000029, 0x5382d400, 0x5384da20, 0x24001b27, + 0x0c1a2140, 0x10d67502, 0x69830320, 0x25164f27, 0x09042216, 0x094a721a, 0x40725b84, 0x250d8408, 0x41415ded, 0x6884105c, 0x5eb30127, 0x105a4240, + 0x20748217, 0x20748c3a, 0x2181844c, 0x81863141, 0x03258384, 0x06dc03b1, 0x87d7822a, 0x01002383, 0x76834c01, 0x57010022, 0x01200682, 0x87076e6a, + 0x14012183, 0x2506fa6c, 0x03331337, 0x0d8c0516, 0x5d0e022d, 0x0e594341, 0x528c9f19, 0x82b5013a, 0x0f5b2190, 0x04219084, 0x27788348, 0x0134411c, + 0x2993fe51, 0x0c878584, 0x02000026, 0xb203d200, 0x2b208382, 0x3c218384, 0x060641b6, 0x2005de70, 0x2682880d, 0x4e014000, 0x7613401b, 0x1d410cf4, + 0xb6592105, 0x13209b87, 0x4107fb59, 0xeb2f121f, 0x5d41405e, 0x8a9f1913, 0xb5013750, 0x4142405e, 0x3a2f052b, 0x58409305, 0x3c1f4058, 0x01affe35, + 0x8b4b296d, 0x00002b0c, 0xae010100, 0x0103b103, 0xf7412a06, 0x20118207, 0x09ef444c, 0x21826120, 0x41510021, 0x174105f7, 0xe802240d, 0x9441425c, + 0x204182fd, 0x215388ad, 0x4a42b534, 0x20ec8505, 0x201b820b, 0x85538200, 0x821020ea, 0x0c5f425c, 0x86b45921, 0x21e58c69, 0xf841c601, 0x92052109, + 0x3d21bf84, 0x20cc8334, 0x2abf8228, 0x009b0002, 0x04130462, 0x82060031, 0xb50830c1, 0x0104080b, 0x252b3202, 0x01350107, 0x85010117, 0x6a023006, + 0x01a3fe72, 0xf9fe725d, 0xfe72b002, 0x825f01a1, 0x49ab2b09, 0x0186a301, 0x61fe49a6, 0x0a8862fe, 0x8f000021, 0x090c234f, 0x4f820205, 0x37010127, + 0x27011501, 0x29068603, 0x72f8fe4a, 0xa1fe5f01, 0x08839f72, 0xa3fe5d30, 0x01490272, 0x5afe499f, 0x495dfe86, 0x0a889e01, 0x6f24e083, 0x41036200, + 0x06209f84, 0x8605437e, 0x4103229b, 0x228a8373, 0x86f7fe73, 0xfe4a228a, 0x242f8f62, 0x32010205, 0x247b862b, 0xf7fe7802, 0x20748373, 0x216b8273, + 0x6b854a9e, 0x0102002f, 0x03b8033c, 0x00c60574, 0x00070003, 0x05664144, 0x03050f32, 0x01010304, 0x01025f00, 0x013a0000, 0x15401b4e, 0x20055542, + 0x0d727e57, 0x12405922, 0x2212bb4a, 0x84330301, 0x5d012e01, 0xb620e121, 0x0321e120, 0xfd0e02b8, 0x830383f2, 0x82e8209f, 0x84c8200e, 0x8535206f, + 0x020c216d, 0x07464618, 0x11206a84, 0x820ae04e, 0x01003019, 0x0a40594f, 0x03000000, 0x03110300, 0x832b1709, 0x0802245e, 0x8520e020, 0x00003b56, + 0x9b00ffff, 0x1304bc00, 0x06038b04, 0x5a00fb04, 0x00b10800, 0xb05ab002, 0x1b8e2b35, 0x1b8ffc20, 0x006f0125, 0x844103bc, 0x85fd2037, 0x8801201b, + 0x201b8a37, 0x2f1b8dfe, 0xca000100, 0xe40357fe, 0x1f00dd05, 0x0f406000, 0x071d6f18, 0x144c0226, 0x49030213, 0x183bd485, 0x00010100, 0x00010661, + 0x044d3a00, 0x02030301, 0x0201055f, 0x4e033b02, 0x8316401b, 0x02012415, 0x8c690100, 0x40593718, 0x1c000113, 0x0e191a1b, 0x080b0c0d, 0x011f0006, + 0x1609071f, 0xa318012b, 0x15240974, 0x11230721, 0x08060c5c, 0x2311354c, 0x34353335, 0x4ce50236, 0x313d3f74, 0x4756285d, 0xeb170201, 0x446f9146, + 0xa72d5b44, 0xdd05aca7, 0x16881d1c, 0x8d4e4b12, 0xa0cbfc92, 0x8a3072be, 0x707d4821, 0x8c925503, 0x0000ae85, 0x9e01ffff, 0x12035403, 0x06026205, + 0x0f85cc07, 0x03f6fe2d, 0x01040112, 0x04cc070f, 0x605804b0, 0x04210791, 0x05db4758, 0x18b00021, 0x3e088b8d, 0x00000034, 0xffda0001, 0x04a403e8, + 0x001b001e, 0x0c2f4032, 0x01030708, 0x00011a02, 0x484c0201, 0x59240af3, 0x00010100, 0x82050344, 0x001b2833, 0x1216181b, 0x82060410, 0x16172bd5, + 0x06141516, 0x26342707, 0xd3832727, 0x20056960, 0x08ec8233, 0xa4021130, 0x15485a5e, 0x44303a0f, 0x49703f2e, 0x69917161, 0x04163723, 0x6a3c3e1e, + 0x204f2d50, 0x2b727718, 0x2804fd1e, 0x45473953, 0x0c0e694b, 0x8b821003, 0xff302208, 0x043004e8, 0x001f0082, 0x0e304033, 0x1e010301, 0x02030001, + 0x0f101f4c, 0x4a010400, 0x02000300, 0x2a8a8203, 0x01020000, 0x03006900, 0x82610203, 0x51022a10, 0x24242824, 0x2b1a0604, 0x20808e01, 0x210f8e05, + 0x87893004, 0x892afe21, 0x8204230b, 0x87887efc, 0x766e0224, 0x0d8932fd, 0xef82c820, 0x3a000228, 0x7604feff, 0x80823a04, 0x2a000725, 0x5f042740, + 0x1082072f, 0x57030022, 0x2d5f8982, 0x00002506, 0x04050607, 0x03241582, 0x17060511, 0x21379082, 0x11210511, 0xfb760421, 0xfd8a03c4, 0x04d80228, + 0x04c4fb3a, 0x82fd9e3c, 0x85c58255, 0x12052957, 0x12000700, 0x3f404200, 0x043ed782, 0x03095702, 0x01060102, 0x04010804, 0x00080067, 0x07080507, + 0x00050067, 0x00570500, 0x67830505, 0x4f000525, 0x19120000, 0x2007b02b, 0x263c8209, 0x11111107, 0x8419060a, 0x3721256f, 0x13010733, 0x11257482, + 0x03230323, 0x307a8333, 0xc141c702, 0x8290fe45, 0xd8021cfe, 0xb2e0cc39, 0x268585c5, 0xb5fdd8d8, 0x82fdad01, 0x80fd23ad, 0x9182e001, 0xe78c0320, + 0x3a001325, 0x89133740, 0x820b2067, 0xaf4c2096, 0x17032bf9, 0x27071707, 0x27372707, 0x05411737, 0x75892b09, 0xe375e4e4, 0xe8e875e7, 0x1141e775, + 0xdc022108, 0xe3221287, 0xf882e475, 0x00008108, 0x04b0042e, 0x00140036, 0x003c0028, 0x00540048, 0x0073005e, 0x40b30088, 0x262e39b0, 0x070e1924, + 0x38060707, 0x03031b37, 0x5a5b5c0a, 0x0d1a5859, 0x030d0808, 0x60737588, 0x7f010c04, 0x0b036769, 0x114c050c, 0x00020001, 0x12041385, 0x02060203, + 0x14081585, 0x06070603, 0x0a011685, 0x0a070307, 0x01058003, 0x03070d03, 0x01107e0d, 0x860b0c0b, 0x010d010e, 0x09590d0c, 0x01000701, 0x6701070c, + 0x0d230f82, 0x820f610c, 0x0c410813, 0x4a555651, 0x2a3d3e49, 0x01151629, 0x7e838500, 0x7177797d, 0x656a6b6f, 0x565e5563, 0x494e505e, 0x44544a54, + 0x3e483d42, 0x29343648, 0x1e3c2a3c, 0x1628151c, 0x000a0b28, 0x17140114, 0x012b1606, 0x05264332, 0x0707152c, 0x35272721, 0x34352626, 0x14823636, + 0x15171723, 0x07644827, 0x14833720, 0x16322125, 0x43071415, 0x23340554, 0x35072722, 0x05363637, 0x14150622, 0x36323316, 0x21263435, 0x07260b8a, + 0x15070622, 0x4d821737, 0x07170523, 0x21468506, 0xfb602737, 0x25172507, 0x33363617, 0x1805f67a, 0x08088145, 0x5a02277d, 0x1a54925c, 0xfe56341e, + 0x1f3256fe, 0xfe92551b, 0x0720277b, 0x263c6638, 0x1c262313, 0x0316101a, 0x101517d8, 0x22251b1a, 0x663e2612, 0xfd200838, 0x2f2f1fb4, 0x2d2d231f, + 0x2e220301, 0x3020222e, 0x2b10b230, 0x0a44460b, 0x34e1fe29, 0x211d068c, 0x1a0a1c18, 0x191f2b1b, 0x02222814, 0x2a238eac, 0x291c1a13, 0x1e0c1c1b, + 0x061d2118, 0x5036048a, 0x6c30588a, 0x96246830, 0x82682496, 0x582b0808, 0xa8fe508a, 0x6e20294b, 0x1616262a, 0x3604201a, 0x1f111b13, 0x131b111f, + 0x1a200436, 0x22261616, 0x4b292066, 0x21232d0a, 0x82213131, 0x08078674, 0x1e3ca433, 0x3a0e0e3a, 0x54d83c1e, 0x224d3356, 0x301b0d16, 0x1d151921, + 0x4e4e110f, 0x151d0f11, 0x18302119, 0x4d221610, 0x00005633, 0x00960003, 0x041a049d, 0x27098243, 0x000b0007, 0x063e4041, 0x2f07b151, 0x00030107, + 0x02030502, 0x05010867, 0x57050404, 0x5f0a7b62, 0x565f0568, 0x06092110, 0x0ae64118, 0x35211528, 0x7cfc1a04, 0x03858403, 0xa1430427, 0xa27efea1, + 0x220383a2, 0x8e040000, 0x000f3177, 0x0949404c, 0x01030803, 0x05000102, 0x0a670001, 0x2607917f, 0x0607010b, 0x82570706, 0x06072906, 0x0706005f, + 0x0c0c4f06, 0x0c237e85, 0x5f0f0c0f, 0x0c2012db, 0x47528486, 0x82012007, 0xf4012988, 0x8403a2fe, 0x5e01a2fe, 0x8e8b8c89, 0x42188f95, 0x0a2b08eb, + 0x03030905, 0x07020104, 0xb8670203, 0x0b01588f, 0xfc1a0425, 0x895e017c, 0x071c4193, 0x21071e41, 0x1f410500, 0x00132710, 0x0b544057, 0x21410a03, + 0x070d3208, 0x0605030c, 0x05090401, 0x010e6704, 0x09080809, 0x27068257, 0x005f0809, 0x4f080908, 0x61090e61, 0x0f201c08, 0x200a2c41, 0x0aa25803, + 0x20073041, 0x41a38dc8, 0xa5860533, 0x2211c341, 0x414b404e, 0x09200833, 0x28073d42, 0x030a070b, 0x05040405, 0x22088457, 0x825f0405, 0x040521b3, + 0x2027c541, 0x0a335901, 0x41074e42, 0x52420739, 0xa2a2210b, 0x22143341, 0x41564059, 0x0c200b33, 0x28075542, 0x030d090e, 0x07060607, 0x27088457, + 0x085f0607, 0x06070601, 0x87333541, 0x422320a0, 0xfe241066, 0xa2fec8a2, 0x6942a383, 0x20a58209, 0x20a79700, 0x0777430a, 0x0b050c22, 0xc5086d42, + 0x20a383a7, 0x06484105, 0x7e42a783, 0x24a7880d, 0xa2a27efe, 0x20ac8201, 0x059d637f, 0x83420620, 0x00172712, 0x0d614064, 0x85420c03, 0x070f2208, + 0x0885420e, 0x100b1128, 0x08080903, 0x08845709, 0x5f08092a, 0x0908010a, 0x14144f08, 0x5b098c42, 0x9242052f, 0x4212201c, 0xb88b0e92, 0x41109642, + 0xbd8a0e63, 0x05000038, 0x00003c00, 0x36047404, 0x23001300, 0x3b002f00, 0x65004b00, 0x94836240, 0x7b08a682, 0x010c8003, 0x02010d00, 0x69020004, + 0x030e060f, 0x05010704, 0x6905040b, 0x09000b00, 0x69090b08, 0x01010300, 0x03005903, 0x00610103, 0x51010301, 0x24253031, 0x00011415, 0x43444749, + 0x3c3d3f41, 0x3b303537, 0x292b3b31, 0x2f252f24, 0x23141b1d, 0x090b2315, 0x13011300, 0x2b160610, 0x021e3201, 0x020e1415, 0x022e2223, 0x023e3435, + 0x06062217, 0x16161415, 0x36363233, 0x26263435, 0x18e88e18, 0x26233008, 0x06222326, 0x023e2307, 0x16163233, 0xc3705802, 0x95545495, 0xc47070c3, + 0x95535395, 0xbf7870c4, 0x78bf6f6f, 0x7171bf76, 0x2ae6febf, 0x822a3636, 0x6a012103, 0xac330886, 0x565d1358, 0x58145d55, 0x4f7a4c09, 0x044c7a4f, + 0x89945336, 0xc370393a, 0x77685394, 0xc67876c5, 0x78c67676, 0xc077c576, 0x36282634, 0x34262836, 0xfe2a0787, 0x64644e02, 0x497a494e, 0x3b417a49, + 0x406a2b14, 0x020b1067, 0x050a0509, 0x3c410a09, 0x04092a12, 0x0a006905, 0x0a030800, 0x103c4108, 0x413c3c21, 0x3c29073e, 0x494b3c4b, 0x41444547, + 0x1740413f, 0x40411120, 0x020e2d3b, 0x26262223, 0x16163327, 0x37363233, 0x412f4041, 0x09270638, 0x555d1458, 0x41135d56, 0xd2233040, 0x82497a49, + 0x644e2702, 0x00004e64, 0x7f420400, 0x1f46080a, 0x3b002b00, 0x53405600, 0x0200010a, 0x040c8500, 0x0302030b, 0x07008502, 0x07060906, 0x01058009, + 0x06010803, 0x67060307, 0x01010900, 0x09005909, 0x00610109, 0x51010901, 0x14152021, 0x37390001, 0x2f313334, 0x43182c2d, 0x6e420b0d, 0x410d2005, + 0x0320122d, 0x2e160149, 0x06062313, 0x27262223, 0x33021e23, 0x41363632, 0x3e20101d, 0x21064842, 0x08862a01, 0x1356562f, 0x67555667, 0x50095614, + 0x7e4f4f7e, 0x11104150, 0x42e2fe21, 0xbe201045, 0x4928fe83, 0x79484879, 0x02000000, 0x08060341, 0x2a001e58, 0x5f003600, 0x26295c40, 0x05062425, + 0x06080104, 0x02072305, 0x0e1b0600, 0x1a010702, 0x13161819, 0x080f1011, 0x4c040702, 0x09050108, 0x05000601, 0x01046906, 0x01010300, 0x67010007, + 0x02020700, 0x07005907, 0x005f0207, 0x4f020702, 0x00002b2c, 0x362b3032, 0x5782362c, 0x112a2608, 0x19111819, 0x2b1b060a, 0x16161501, 0x07173717, + 0x15331716, 0x17070623, 0x07062707, 0x26352315, 0x37270727, 0x2bf78226, 0x37363335, 0x36173727, 0x13353736, 0x350a2341, 0x44268802, 0xa248a21e, + 0xdede0c32, 0x489e2e0c, 0x604d3f9e, 0x07823b51, 0x061f1522, 0x28081182, 0xa048a030, 0x3027451e, 0x607a7a60, 0x047c7c60, 0x1d04d61e, 0xa048a415, + 0x505e523e, 0xa0489c3a, 0xdcdc0c2a, 0x48a02a0c, 0x3424829c, 0xa040505e, 0x1d15a448, 0xd2fed604, 0x7e606080, 0x8060607e, 0x08008200, 0x16010220, + 0x98030000, 0x18003604, 0x84002400, 0x020712b6, 0x4c010701, 0x500ab04b, 0x00294058, 0xe7820607, 0x03007228, 0x08860302, 0xfe820001, 0x06000739, + 0x01010569, 0x57010202, 0x01010105, 0x01046002, 0x50020102, 0x832a401b, 0x0706232b, 0x2ca18001, 0x1b40592c, 0x0001191a, 0x24191e20, 0xff4c241a, + 0x00082508, 0x0a180118, 0x280b644b, 0x15231533, 0x35233523, 0x06684b33, 0x1a411720, 0x59562f0b, 0x749c5792, 0xc060c0c0, 0x569d75c0, 0x04415991, + 0x54363307, 0xa879598f, 0xd250a611, 0x11a450d2, 0x8f5979aa, 0xf08a5c54, 0x7800023a, 0x38040000, 0x1f00ce03, 0x4a002b00, 0x01064740, 0x011a0403, + 0x01080305, 0x4c290982, 0x06050100, 0x80060105, 0x3e248200, 0x67040003, 0x01070300, 0x05030105, 0x02060069, 0x00590602, 0x61020606, 0x02060200, + 0x42202151, 0x433905f2, 0x10112b26, 0x2b1b0608, 0x07130501, 0x27372627, 0x15161601, 0x23060614, 0x051c4c22, 0x16323328, 0x06270117, 0xfb422727, + 0x7602330b, 0x5816ac01, 0x0409030a, 0x2723d8fe, 0x59599257, 0xc2825691, 0x25593029, 0x2c023001, 0x86b6c832, 0xce0334cc, 0x0454fe16, 0x022f31c6, + 0x672ad2fe, 0x518c593b, 0x82598c51, 0x171b29d0, 0x03042e01, 0x9cfe0803, 0x0122d988, 0xb2828c00, 0x36042434, 0x28001800, 0x09102540, 0x044a0002, + 0x00010001, 0xad410385, 0x2d068205, 0x005f0201, 0x4f020102, 0x12111122, 0xb3830526, 0x82021e21, 0x222329ab, 0x17211327, 0x13213721, 0x08057b4c, + 0x0236362f, 0x70ce8e58, 0x50945a6a, 0x50380120, 0x015068fc, 0x94502038, 0xce706a5a, 0xcb833604, 0x72605ab0, 0x82f2fe84, 0x840e0182, 0xb05a6072, + 0x876482cb, 0x00282e7b, 0x23424045, 0x04061118, 0x4c010102, 0x307f8408, 0x06010107, 0x01030201, 0x01056902, 0x03040403, 0x3c068257, 0x005f0403, + 0x4f040304, 0x1f210001, 0x1617191b, 0x12131415, 0x080a0e10, 0x28012800, 0x05024209, 0x07209882, 0x8f08f84c, 0x323327a1, 0x26261716, 0xa9823435, + 0x43846c2c, 0x2d322729, 0x5a766260, 0xaf8a4d8b, 0x765a8837, 0x322d6062, 0x84442827, 0x605e3604, 0x11215a51, 0x5d6e7c0b, 0x2bba8775, 0x7c6e5d75, + 0x5a21110b, 0x005e6051, 0x01200082, 0x3b05fb7e, 0x13003604, 0x16401900, 0x00020711, 0x02020149, 0x01760000, 0x000d0f00, 0x03130113, 0x02259787, + 0x02260702, 0x837c8202, 0x36280885, 0x6e640336, 0x8ce3857a, 0x7b85e38c, 0x2d77686d, 0x3604782d, 0xfe756593, 0xa6defeff, 0x012101a6, 0x93657601, + 0x6a62626a, 0xd0246384, 0xe003e8ff, 0x9b736382, 0x03092808, 0x88015802, 0x82fe78fe, 0xdefd2535, 0x2c02d4fd, 0x84372784, 0x56040000, 0x06006205, + 0x14401700, 0x00020000, 0x01020085, 0x82008502, 0x1135084d, 0x06031111, 0x01252b19, 0x01230133, 0x012d0233, 0x48fec168, 0xc6c6fee0, 0xfa8f04d3, + 0x0064039e, 0x00ffff00, 0x04c2010a, 0x009903a5, 0x0001002f, 0x15ca0100, 0x2209821f, 0x8390010e, 0x0f012509, 0x20033800, 0x1b2c1384, 0xb80200b1, + 0x35b0ca01, 0x0102b12b, 0x03200886, 0x86821186, 0x3b204782, 0x75278782, 0x47016205, 0x73005f05, 0x02200a17, 0x27081773, 0x0301ffff, 0xbd03c201, + 0x0d226b84, 0x6186c800, 0xd5825a20, 0x12237583, 0x870300b1, 0x82618658, 0x022c0858, 0x4aff0f00, 0x7b059704, 0x3d003000, 0x50405300, 0x03022d2e, + 0x06011c05, 0x0d3b3c03, 0x03060703, 0x0903004c, 0x03070601, 0x07006906, 0x072ff882, 0x04006902, 0x01040100, 0x05050065, 0x82086100, 0x053e3bd3, + 0x0131324e, 0x31363800, 0x2b3d323d, 0x1a202229, 0x0a111318, 0x01300008, 0xa4530a30, 0x12162405, 0x43021415, 0x23200586, 0x27057c47, 0x33121035, + 0x11171632, 0x2b05ef48, 0x2e343512, 0x06222302, 0x24362707, 0x08087345, 0x11373698, 0xbf380226, 0x2f3081ef, 0x67537981, 0x45130832, 0x866f4e6c, + 0x47bfcf3d, 0x3b225488, 0x0a323a26, 0x87a85921, 0x657ee263, 0x1c180187, 0x55405d80, 0x0b274c41, 0x8a7b0537, 0x9fd7feec, 0xa7b0fefc, 0x2f358561, + 0xcf773959, 0x01020184, 0xfd2d2005, 0x296d67b0, 0xb012019b, 0x67b8f892, 0x76756e4a, 0xbe72fd67, 0x3caf91c1, 0xf9011e50, 0x0200001c, 0xe7ff6600, + 0x79057c04, 0x30002400, 0x44404700, 0x02020304, 0x03011d01, 0x02123002, 0x4c030306, 0x01050200, 0xc1720603, 0x83072007, 0x004d3dfb, 0x61040606, + 0x3f040400, 0x00014e04, 0x25272d2f, 0x10111517, 0x06080d0f, 0x24012400, 0x09da8318, 0xde822620, 0xed831520, 0x23152123, 0x06034111, 0x37363422, + 0x20064d45, 0x491d8201, 0x550806fc, 0x5f2e0237, 0x327053a5, 0x64644968, 0x02436b3e, 0x6d20ab26, 0xc89c75a5, 0x8596a260, 0x01ad5e6b, 0x7e64e369, + 0x5f78383b, 0x790550a1, 0x3865593d, 0x3c566d36, 0xfd8f3d65, 0x3b5627e3, 0x9d6abe77, 0x20061fc4, 0x965962a1, 0x5d43fd5b, 0x7c48468a, 0x0300624d, + 0xd7821afc, 0xd7821820, 0x52004630, 0x60005e00, 0x34355d40, 0x02040304, 0xdb822901, 0x1e525e25, 0x820b0412, 0x010928dd, 0x050a0c02, 0x820b0303, + 0x010830e0, 0x61000101, 0x00020e07, 0x0d4d1f00, 0x180b0b01, 0x3308f050, 0x5b5d0001, 0x4f515355, 0x3e404749, 0x30323739, 0x1c1d2123, 0x4623f288, + 0x180f4601, 0x900c29e2, 0x213721f2, 0x3320fd91, 0x2509c655, 0x33161614, 0xca512621, 0x0a134105, 0x210b1f41, 0x1f41ca01, 0xfe8b2215, 0x0c2941f8, + 0x268c7520, 0x2f37a626, 0x81fdad5e, 0x21083c41, 0x4741e803, 0x68ce211d, 0x41115141, 0x2b22096e, 0x61414277, 0xdc01210b, 0x36076a41, 0x4d000100, + 0x610455fe, 0x0f006205, 0x23402600, 0x01020506, 0x82490104, 0x86012d16, 0x02000000, 0x0201035f, 0x4e003802, 0x0f2d0b82, 0x13130e00, 0x2b180904, + 0x11071101, 0x08038223, 0x35022e24, 0x33363634, 0xd7ac6104, 0x6cd8a1ac, 0x05a7e273, 0x1609f962, 0xa1f97506, 0x03e40316, 0x7370b36c, 0x38826cb8, + 0x02002b08, 0x70ffcb00, 0x7b05e303, 0x41003400, 0x34403700, 0x00010103, 0x141e2e3c, 0x01030504, 0x0302011d, 0x03004c03, 0x02030200, 0x18820065, + 0x01046134, 0x013e0000, 0x2200014e, 0x08191b20, 0x01340006, 0x97430534, 0x07172205, 0x07974226, 0x18051e53, 0x2008e05b, 0x60881827, 0x27262308, + 0x97822626, 0x05843720, 0x4c033621, 0x250805a3, 0x34353617, 0x7a022626, 0x5644a56e, 0x53517a3c, 0x656a2665, 0x425e92a0, 0xaedd4036, 0x5643ac70, + 0x54527f3c, 0x1382266e, 0x60944c08, 0x673f3742, 0x2d2c30b0, 0x59879036, 0x7b059036, 0x287e303c, 0x2b3d492c, 0x3421363b, 0x81527788, 0x476c2829, + 0x323d9f89, 0x482c2a7e, 0x343b2c3d, 0x79863621, 0x2a288151, 0x865b446c, 0x26bffd49, 0x41382856, 0x574f313c, 0x833d4035, 0x820320fb, 0xee2508f3, + 0xd9057c04, 0x1f000f00, 0x64003900, 0x446406b1, 0x01235940, 0x242f0405, 0x30050602, 0x03060701, 0x0001084c, 0x05b54d09, 0x04010a2f, 0x04060500, + 0x06006905, 0x06030700, 0x10754c07, 0x11202131, 0x34000110, 0x272b2d32, 0x21392025, 0x18171939, 0x2109a37c, 0x6a18090b, 0xc14408eb, 0x35022407, + 0x4d361234, 0x07240faa, 0x07171632, 0x25064941, 0x37363233, 0xbd470617, 0x5a600808, 0x8080f4ae, 0xf6afaef4, 0xaef68281, 0x5e5ebe91, 0xbd9091be, + 0x87be5d5e, 0x4b34694c, 0x684b5046, 0x50345063, 0x752a4522, 0x59b89152, 0xaad90595, 0xaeafe3fe, 0xaaaae3fe, 0xafae1d01, 0x6aaa1d01, 0x9091ee8d, + 0xec8d8dec, 0x8dee9190, 0x6429288d, 0x828a7739, 0x661f247a, 0xb9c43826, 0x0057aa7c, 0x04260082, 0xd5015600, 0x13415804, 0x002c3d06, 0xb16d0034, + 0x40446406, 0x06012562, 0x074c0109, 0x03060501, 0x80030506, 0x0b00010a, 0x31051541, 0x0d04010c, 0x04090801, 0x09006908, 0x09050600, 0xc94e6706, + 0x2d2e210f, 0x2f051841, 0x342d2f31, 0x2a2b342e, 0x26272829, 0x2c212c20, 0x180b1e41, 0x490a0a6c, 0x1e410c67, 0x153e0811, 0x17070614, 0x15232723, + 0x23171123, 0x36323315, 0x58023435, 0x8989e88f, 0xe98f8fe8, 0x8fe98a8a, 0x6969b673, 0xb57373b6, 0x92b56868, 0xa9384bfa, 0x7637938a, 0x383d39af, + 0x8bd9053f, 0x29868fea, 0x8bea3908, 0x73bd7064, 0x6e6ebb73, 0xbd7373bb, 0x3faa7d70, 0xd7ec104f, 0x5b3402d7, 0x4f3027a6, 0x00010000, 0x04540211, + 0x0063058c, 0x403e001a, 0x060a193b, 0x01030103, 0x0301004c, 0x002fdd82, 0x02020480, 0x08840000, 0x03060207, 0x83570603, 0x03062707, 0x0301055f, + 0x3b820306, 0x1a213282, 0x2f008211, 0x09111616, 0x012b1d06, 0x26032313, 0x03233726, 0x16270182, 0x23030716, 0x82112313, 0x354a0801, 0x04131321, + 0x12861e6e, 0x07040101, 0x066f885b, 0x0f020104, 0x8bc91a80, 0x65db02c0, 0xfc630556, 0x35af01f1, 0xd0fd366b, 0x6a333002, 0x024ffe37, 0x026afd96, + 0xdafd7996, 0x00002602, 0x85000200, 0x18036203, 0x0f00dd05, 0xfb661b00, 0x05002609, 0x00030201, 0x10994202, 0x09d4af18, 0x00070926, 0x060f010f, + 0x41098d42, 0xcb560f6e, 0x015e0808, 0x5f9655ce, 0x5355965f, 0x975f5f97, 0x69694353, 0x67674543, 0x8e4add05, 0x4a8e6665, 0x64678e4b, 0x5c814a8d, + 0x5d5e605e, 0x005e5e5f, 0x003b0003, 0x04750492, 0x001900cc, 0x002b0022, 0x0d424045, 0x0002020b, 0x20212526, 0x0306010e, 0x01011802, 0x0c4c0303, + 0x194a0001, 0x00490101, 0xa8950400, 0x291a1b2e, 0x1b221a27, 0x05272b22, 0x372b1806, 0x21062a44, 0x664d3233, 0x28ab8705, 0x22010727, 0x14150606, + 0x518e1817, 0x36330808, 0x2bab3b36, 0x80d27c31, 0xab3a8e4e, 0x322bab5c, 0x4f80d27d, 0x01ab3a8d, 0x538b55c1, 0x4ba70131, 0x59fe32d9, 0x8b545b4b, + 0x3aabee54, 0xd27f4f8d, 0x822b327e, 0x8e3a2a27, 0x7dd2804e, 0x03ab2c31, 0x371a8250, 0xa7014b5b, 0x5acdfe32, 0x3159fe4b, 0x01008b53, 0x33ff0102, + 0x4f06ad02, 0x172cdd82, 0x01021440, 0x85010001, 0x76000000, 0x255d0382, 0x11200808, 0xad021123, 0xf84f06ac, 0x001c07e4, 0xfdffff00, 0x03f2fea0, + 0x008606ac, 0x005a0446, 0x4000c000, 0xff251384, 0x06810217, 0x20138261, 0x2513875b, 0x33ff41fe, 0x5b82bd01, 0x2f052724, 0x518210ff, 0x2f050724, + 0x078240fc, 0xf8212f82, 0x827786a1, 0x50fb211b, 0x07821382, 0x00a0f627, 0x05060200, 0x3c0d822f, 0xffc1f504, 0x05ec014e, 0x00030090, 0x000d0007, + 0x40870010, 0x0e0f100a, 0x0005090a, 0x07e34d01, 0x05081c2b, 0x05060307, 0x01000001, 0x310a8657, 0x045f0001, 0x01000202, 0x4b1b4f00, 0x585015b0, + 0x0e831240, 0x5f010022, 0x1a241f87, 0x401b4e00, 0x5923389c, 0x571a4059, 0x0825050c, 0x0c0d080d, 0x1b53180b, 0x0709230a, 0x93182b17, 0x200807b8, + 0x01150121, 0x01131123, 0xa768f601, 0x04a73f04, 0xfb7c0417, 0x03a7a784, 0x0529fcd7, 0x06bef990, 0x2c038342, 0xfdb53efd, 0xfa420635, 0x025b0287, + 0x27d68257, 0x0ffa0300, 0x50024eff, 0x092bd784, 0x72000c00, 0x0b0c0a40, 0x8a05060a, 0x051724d5, 0x84030403, 0x0a3a5fd3, 0x0f20d089, 0x200a375f, + 0x97cd8401, 0x5fc88230, 0x092a0553, 0x07080904, 0x03000300, 0xc0870611, 0xfa24bc87, 0xc503a7b6, 0xb58eb98f, 0x91fd0222, 0xb420b382, 0x052bb382, + 0x5d000800, 0x07080a40, 0x8a010206, 0x49c118b1, 0x067d4112, 0xf3820c20, 0x025f0124, 0xa9850101, 0xa4822892, 0x24820a20, 0x05000524, 0x9c830313, + 0xfe219887, 0x8e958b38, 0x00002a91, 0xff000202, 0x06ae0234, 0x0b3f7c4e, 0x6b030021, 0x01242713, 0x13112311, 0x02210382, 0x270082ae, 0x37fd4e06, + 0xaffbc902, 0x8a820583, 0x0002003d, 0x03e7ffa2, 0x00dd05d1, 0x0024001b, 0x1d38403b, 0x06071118, 0x02070405, 0x82011903, 0x004c2879, 0x02030001, + 0x82690301, 0x02002229, 0x22118259, 0x82046100, 0x51003b18, 0x21230001, 0x0a0c1416, 0x1b011b00, 0x2b160605, 0x35262205, 0x37270735, 0x065b3411, + 0x07022405, 0x46161411, 0x460806f1, 0x36361103, 0x22233435, 0x95b40206, 0xd24290ab, 0x9081a0ac, 0x4a5ecfd1, 0x3229552e, 0x81d6842c, 0x3e4c656e, + 0xba91a619, 0x019f5c69, 0x93ded1c4, 0xd0feb175, 0x4cb6fe9a, 0x8911133f, 0x57042217, 0xd578cafe, 0x82898181, 0x00013fb0, 0x040000ab, 0x004a0505, + 0x4b4c000b, 0x585029b0, 0x01061840, 0x4d380505, 0x01010103, 0x9b825f00, 0x4d3b0022, 0x3925a682, 0x401b4e02, 0x83148b18, 0x5f022126, 0x59221a85, + 0x4c820e40, 0x0b000b23, 0x91901811, 0x21200809, 0x23112115, 0x21352111, 0x01b40211, 0xb8affe51, 0x5101affe, 0xccfe4a05, 0x038afca0, 0x3401a076, + 0x00203182, 0x13227f89, 0x7f858d00, 0x01062231, 0x03010502, 0x67030204, 0x0909010a, 0x84074d38, 0x01082289, 0x28898300, 0x04390404, 0xb04b1b4e, + 0x8aa9822d, 0x83238b29, 0x5f042235, 0x21298500, 0x38822040, 0x02231d82, 0x8d670100, 0x23228758, 0x12405959, 0x13228a82, 0xbc841300, 0x0b250483, + 0x012b1f09, 0x89c08311, 0x88c889c4, 0x08d086cc, 0xfea0be2c, 0xc4fea074, 0x01a03c01, 0x4201a08c, 0x2a000200, 0x8e04e8ff, 0x19007a05, 0x57002100, + 0x1c1f5440, 0x06040416, 0x03011505, 0x324a0701, 0x013d0806, 0x02030102, 0x00010780, 0x06050108, 0x00690500, 0x03010006, 0x00670106, 0x02040402, + 0x02020059, 0x04006104, 0x1b510402, 0x1e00011a, 0x1b211a1d, 0x0e101221, 0x06090b0d, 0x01190005, 0x062b5019, 0x11171624, 0x59551121, 0x06332d05, + 0x26222306, 0x3e112726, 0x07221702, 0x45081682, 0x5c022626, 0x157fe9b5, 0x9835a0fc, 0x33c58a67, 0xc2ea3a62, 0x1888eaac, 0xb7e97f15, 0x56026cc4, + 0x7a059b2e, 0xfe7ed480, 0x2bf6fdf4, 0x735b6733, 0x80cd779b, 0xd47efc01, 0xfe544e80, 0x26ec0112, 0x04000030, 0x04822f00, 0xc7829420, 0x23000f22, + 0x33220b82, 0x17458300, 0x00253f05, 0x09010007, 0x0c690107, 0x00060601, 0x04050b5f, 0x0000040a, 0x010d4d1a, 0x5f020909, 0x48180308, 0x29200709, + 0x0b212787, 0x21d68205, 0x2e844d1a, 0x010a6125, 0x8e1f0000, 0x4059302b, 0x25303027, 0x01101024, 0x30333000, 0x57313233, 0x102905c7, 0x1c231023, + 0x12191a1b, 0x05964711, 0xf04c0e20, 0x0c924705, 0x23110731, 0x021e2303, 0x11231115, 0x2e331333, 0x5e113502, 0x68080b70, 0x35211513, 0x71639003, + 0x61723130, 0x31307362, 0xd9e1ca73, 0x0c0e0208, 0x08d5e590, 0x010c0d03, 0x272738bb, 0x28273938, 0x0516febe, 0x86c86f7a, 0x6e71c883, 0xc98286c8, + 0x9efa1872, 0x9d128904, 0x6bfd6cd9, 0x72fb6205, 0x7bd99312, 0x9d689502, 0x9b9ba1a0, 0xfb9da0a1, 0xff98989e, 0x013b00ff, 0x038404ca, 0x002f0091, + 0x086f500d, 0x6f501820, 0x503a2008, 0x0d50096f, 0x04b1210f, 0x6f091650, 0x9c2b08e7, 0x49000700, 0x5017b04b, 0x64184058, 0x703405e7, 0x03030100, + 0x01005701, 0x04600301, 0x03010301, 0x17401b50, 0x00211a83, 0x22199085, 0x6c0c4059, 0x06250958, 0x11132b19, 0x08fb8233, 0x6411333d, 0xb18602b1, + 0x080194fe, 0xf8fe6a6a, 0xceff0200, 0x3104e7ff, 0x1900dd05, 0x4e002600, 0x01194b40, 0x23240004, 0x04030309, 0x03020116, 0x07084c03, 0x03040506, + 0x00080102, 0x8202004a, 0x01022c71, 0x00000080, 0x04000304, 0x82010569, 0x59032117, 0x83590682, 0x1a1b2b07, 0x261a1f21, 0x2612261b, 0x7283062b, + 0x1137272c, 0x17371537, 0x36361505, 0x10543233, 0x27540807, 0x01112307, 0x34353632, 0x06222326, 0x16161107, 0xc0f14210, 0xebfe40d5, 0x8c599738, + 0xba6050ae, 0x0c66b588, 0x7ca101a9, 0x52727987, 0x7428297e, 0x7373d503, 0xc6170b01, 0xeb857265, 0xf789534a, 0x8ffaa0a7, 0x29046b84, 0xcdc555fc, + 0x3f63c3cd, 0x463c02fe, 0xcb829382, 0x00f62008, 0x055604b1, 0x0006000d, 0x40350020, 0x06131432, 0x06010205, 0x4c010003, 0x00030000, 0x82010485, + 0x6f8520c0, 0x07290f14, 0x07200707, 0x13262f20, 0x27b28205, 0x11070101, 0x05010721, 0x82058157, 0x182620a3, 0x0807ea40, 0x26222345, 0x2f022726, + 0x02d9a0fe, 0x6101da2e, 0x630b4dfe, 0xa1625a98, 0x568a5161, 0x78cd7f07, 0x858de889, 0x020c8ddc, 0xda600159, 0xfed92e02, 0x8c58529f, 0x63a16052, + 0x0c649758, 0xdb8e0e9b, 0x89e78e83, 0x8281d079, 0xffff2da7, 0xc2012700, 0x99037804, 0x0e002f00, 0x20082742, 0x08274201, 0x27424120, 0x06154209, + 0x5201b121, 0xb121068e, 0x09274203, 0xef244782, 0xd603c201, 0x73524786, 0x52562007, 0x3d8f0973, 0x012a7c82, 0xc2022400, 0x3e058d04, 0x7e180500, + 0x24080827, 0x01010701, 0x02580227, 0x3dfe7235, 0x05723efe, 0x7e02fe3e, 0x75fe8b01, 0xff00007e, 0x013400ff, 0x037d04ca, 0x20ab8291, 0x20ab8814, + 0x20ab883a, 0x1b435318, 0x4783ab8c, 0x8a051b43, 0x223d8547, 0x43000f01, 0x00200625, 0x89148b53, 0x03002147, 0x0022c382, 0x4018b004, 0x2408088f, + 0x0b1b401e, 0x0404050a, 0x4c010100, 0x00010102, 0x01038501, 0x11760000, 0x04101113, 0x332b1a06, 0x01330123, 0x3d038235, 0xd1150123, 0x9eb0039f, + 0xa40280fb, 0xa0cefe9e, 0x62054003, 0x03e83efb, 0x049efada, 0xe785e8bf, 0x7f04c224, 0xe78c9903, 0x21082b54, 0xe7aaf103, 0x7904c222, 0xee204798, + 0x6e2047ac, 0xf0204798, 0x692047ac, 0xef204798, 0x6e0847a5, 0x74fc0300, 0x0804cbfe, 0x0600a306, 0x3a003200, 0x3d404000, 0x2d303334, 0x10112126, + 0x08090a0c, 0x020e0006, 0x02192003, 0x4c020201, 0x03020300, 0x01000085, 0x02008600, 0x59020101, 0x01020200, 0x02010061, 0x2e2f5101, 0x1c1d2425, + 0x07041a1b, 0x06012b16, 0x16141506, 0x15010117, 0x01013701, 0x11272626, 0x1415021e, 0x15070606, 0x82063523, 0x35b1080e, 0x1137021e, 0x34352626, + 0x11373636, 0x16161133, 0x023e1101, 0xfe263435, 0x47614f41, 0x03690269, 0x3507fd5e, 0x47fd1f02, 0x6a49e3b2, 0xc76f84ca, 0x89598b82, 0x9e705e8d, + 0xbeb6417e, 0x8b7ba554, 0x8dfefa79, 0x84436e3f, 0x6a0de804, 0x2c5d424f, 0xecfd8b01, 0xf022feb5, 0xa9014701, 0xfe09596f, 0xb177223c, 0x83cc7c79, + 0x01b7be11, 0xca323714, 0x03134143, 0xb93d6502, 0x6e9e558b, 0xfe1c010c, 0xfd560ce5, 0x0cd4fd42, 0x525c7642, 0xff11008c, 0x05e2ff62, 0x00d6054e, + 0x001d0013, 0x002f0026, 0x00410037, 0x0053004b, 0x0063005b, 0x0072006c, 0x08ef827c, 0x99009057, 0x8e00a000, 0x32358b40, 0x1e232a2d, 0x00020718, + 0x07023b49, 0x68707a02, 0x0b100461, 0x94979c9f, 0x7e848a90, 0x010a6a77, 0x124c0410, 0x00020001, 0x10010085, 0x01038601, 0x07010802, 0x69070204, + 0x03050609, 0x0c0d0f04, 0x040b0a03, 0x010e670a, 0x0b10100b, 0x08068259, 0x61100b3c, 0x10021311, 0x7d51100b, 0x8800017d, 0x7d867d87, 0x72737486, + 0x656d6e71, 0x5d5e5f64, 0x5758595c, 0x50515256, 0x3f45464f, 0x1625263e, 0x00090b15, 0x14130113, 0x012b1606, 0x04560432, 0x23043705, 0x02262422, + 0x36123435, 0x36111724, 0x26263736, 0x23222627, 0x69780722, 0x84172008, 0x06252414, 0x82161607, 0x8505200a, 0x26212317, 0x09822526, 0x1b842120, + 0x09831720, 0x11853520, 0x19821520, 0x15211322, 0x25212b84, 0x83188221, 0x21252134, 0x37200582, 0x06820582, 0x05246183, 0x33363211, 0x27203a84, + 0x32234e85, 0x82013316, 0x2f698a09, 0x9e580226, 0x75d11201, 0xeefed175, 0xedfe9d9e, 0xa1080983, 0x3bc31301, 0x6d253a7b, 0x560d0744, 0x6d450610, + 0x3a793b26, 0x215f38ce, 0x4322552d, 0xd250feb1, 0x2d53248c, 0x09035e23, 0x15325c2a, 0x0601011a, 0x6efb4204, 0x01054136, 0x151a0304, 0x13d65d33, + 0x32010318, 0x1d028342, 0x01428640, 0x18170134, 0x8642ccfe, 0x01171440, 0x01fafe51, 0x5761151a, 0x30fd4238, 0x2806cefe, 0x84fe867e, 0x4105fcfe, + 0x335d2a36, 0xc9011a15, 0x44070d06, 0x7b3a256d, 0x3b793a8b, 0x05456d26, 0x8601060b, 0x68385f21, 0x552243b1, 0x465e19fd, 0x7567b344, 0xd177d605, + 0xa982ecfe, 0xd1eba008, 0x01d17777, 0x019e9d15, 0x5077d114, 0x130390fe, 0x49a55a10, 0xa5490202, 0x03140f5a, 0x923d5e01, 0x18271153, 0x34196c4d, + 0x1127189e, 0x19cd9253, 0x8a40122b, 0x4cb9654a, 0x4a65b94c, 0x2b12408a, 0x447e3c53, 0x121703d2, 0xd2021812, 0xf6fe7e44, 0x121701d4, 0x4943803b, + 0x35233f8c, 0x8666b84e, 0xd4062478, 0x1a4eb866, 0x8c3f122c, 0x0290fecf, 0x115aa34b, 0x14010114, 0x4ba35a11, 0x52340102, 0x6e183c92, 0x0f27184c, + 0x6e4c2f1f, 0x00007b18, 0x01ffff00, 0x03ca0117, 0x009103d1, 0x5818002f, 0x40200887, 0x45121346, 0xff270854, 0x014f00ff, 0x869b04ca, 0x07275933, + 0xe3456120, 0x46772008, 0x3d86128f, 0x84083059, 0x2447827b, 0x039404c2, 0x877b8499, 0x88472047, 0x92612047, 0x15d74647, 0x87208f83, 0x0d208f98, + 0x8f884792, 0x87065949, 0x0458228f, 0x208f8eab, 0x208f8841, 0x86479b55, 0x20d78998, 0x20478e99, 0x2047885a, 0x41479b0e, 0x00240866, 0x2001ffff, + 0x2008235a, 0x089b4122, 0x860a235a, 0x01b1212b, 0x33843488, 0xc103ca27, 0x2f009103, 0x20338900, 0x1ecf4122, 0x6788e420, 0x67a52320, 0xff07002d, + 0x04c9ffcc, 0x009d05e4, 0x822a0025, 0x3530086b, 0x40003b00, 0x3c004500, 0x42453940, 0x3c3d4041, 0x3334373b, 0x2b2c2f32, 0x2526272a, 0x1f202122, + 0x18191a1b, 0x0e0f1215, 0x07080c0d, 0x25020506, 0x280cee75, 0x02101314, 0x012b1706, 0x07ef5f33, 0x07141525, 0x45270717, 0x262805dd, 0x27072726, + 0x34352637, 0x2106ea5f, 0x17820313, 0x82250521, 0x01260816, 0x25251714, 0x36050506, 0x01273435, 0x17161605, 0x36361313, 0x8b120237, 0x8844c271, + 0x33338848, 0x44884686, 0x0e8371c2, 0x48874c08, 0x87323287, 0xc1448848, 0x52090b71, 0x9101338d, 0x8d341b01, 0x22fefd52, 0xd7fe2901, 0x01320222, + 0xfe222229, 0x33e5fe29, 0x087f528d, 0x05348d52, 0x700fb99d, 0x53755255, 0x6f7a7a6f, 0x55517651, 0xb5b50f70, 0x5156700e, 0x826e5276, 0x52210811, + 0x70565276, 0x0135fe0e, 0x3c510c51, 0x513db7b8, 0x5947fe0c, 0x52acab52, 0x5952ab5a, 0xeefe525a, 0x261282b9, 0xaefe5201, 0x423d510c, 0xfc2a0513, + 0xcc03ca01, 0x2f009103, 0x63412800, 0x41612008, 0x00381b97, 0x00500002, 0x04600400, 0x00040036, 0x401f0009, 0x0406091c, 0x4a010401, 0x2a0f8677, + 0x06021214, 0x01012b18, 0x84112111, 0x56023b04, 0xf0fb0a02, 0x86fe0602, 0x3604f802, 0x98fd32fe, 0x18016802, 0x58feaafe, 0x8b82a801, 0x003c4d82, + 0xb004e8ff, 0x06008006, 0x17000d00, 0x42001b00, 0x01053f40, 0x00010203, 0x67000304, 0x01351f82, 0x67010407, 0x0007010a, 0x08070908, 0x06090067, + 0x00570906, 0x76821809, 0x0e0e3307, 0x18191a1b, 0x170e170e, 0x12111134, 0x0b111111, 0x7e821d06, 0x7f822120, 0x01012123, 0x38068233, 0x14150333, + 0x22212306, 0x05353526, 0x02211521, 0xfe580258, 0xfef4fdae, 0x080782ae, 0x01d68238, 0x3778d650, 0x2dbcfe2d, 0xfeae0137, 0x065001b0, 0xfdacfd80, + 0x012e02d2, 0xfd86fed4, 0xfc3402cc, 0x372deab0, 0x54ea2d37, 0x020000a2, 0x380060ff, 0x42055005, 0xa7820f00, 0x25402822, 0x082a5d18, 0x0b111226, + 0x4c010001, 0x2207cd4c, 0x82017601, 0x0f002ca7, 0x06030e01, 0x32012b16, 0x86111516, 0x34113182, 0x01053336, 0x01010701, 0x37010117, 0xec040101, + 0xfa215d83, 0x280583d8, 0xf4fea003, 0x0186f4fe, 0x2c04840c, 0xfe860c01, 0x050c01f4, 0xfb2d3742, 0x2b1e83be, 0x372d4204, 0x01f2fee8, 0xf6fe8a0e, + 0x0a20268a, 0xfe219782, 0x279786e8, 0x0016000a, 0x16264029, 0x09c05e18, 0x8f0c0921, 0x06082598, 0x0a010a00, 0x0121988c, 0x27939101, 0x58fda4fc, + 0x7402a802, 0x0223939a, 0x95820288, 0x21938291, 0x938260ff, 0x4205c823, 0x22938300, 0x8a254028, 0x0c012193, 0x2309f14a, 0x76000000, 0x0a2d0382, + 0x03220900, 0x092b1706, 0x26222102, 0x0f254135, 0x0220032d, 0xfc58fda8, 0x37372da4, 0x9400032d, 0x7efd2591, 0x2d3778fd, 0x08192341, 0x1e000449, + 0x9204e1ff, 0x0200d904, 0x0f000500, 0x34001300, 0x01003140, 0x01030000, 0x01066700, 0x05040003, 0x00670403, 0x05020205, 0x05050057, 0x02005f02, + 0x064f0205, 0x11121306, 0x060f0610, 0x1112340f, 0x2b190607, 0x82210101, 0x41132002, 0x514208ce, 0x3a290806, 0x3a028cfb, 0x6802ccfe, 0xfc2d3ef0, + 0x033e2d8e, 0x03bafcc7, 0xfdd90446, 0xfeef0148, 0xfedafe88, 0x3e3e2dda, 0x7b26012d, 0x29eb8297, 0x6aff0900, 0x82054c00, 0x8782f204, 0x001f7608, + 0x003f002f, 0x00660056, 0x00860076, 0x40a80096, 0x3d4554a5, 0x1d252d35, 0x02030815, 0x6c747c84, 0x074c5c64, 0x8c940b0a, 0x03111202, 0x0001134c, + 0x06160817, 0x07140415, 0x02000302, 0x05070967, 0x0f1a0303, 0x05180d19, 0x0b030a0b, 0x0c0e1067, 0x011b0a03, 0x110a1211, 0x01120068, 0x00571201, + 0x60011212, 0x01120100, 0x78878850, 0x58676877, 0x31404157, 0x05a45930, 0x8e902b08, 0x96889687, 0x86777e80, 0x6e708678, 0x76687667, 0x66575e60, + 0x4e506658, 0x56404749, 0x37395641, 0x3f313f30, 0x2f202729, 0xc0592f21, 0x00062506, 0x1c0e010f, 0x3012d542, 0x06222317, 0x16141515, 0x36323333, + 0x26343535, 0x230fa721, 0x11151632, 0x11233686, 0xa7012634, 0x21668636, 0x76862113, 0x76852120, 0x2d1e0527, 0xfa2d3737, 0x2b0583b0, 0x181094d0, + 0x11941018, 0x47011717, 0x81210a94, 0x242083bc, 0x10181711, 0x2124826c, 0x2494fdfb, 0x7f223a89, 0x2f8398fc, 0x82680321, 0xf204252c, 0x22fc2d37, + 0x03266583, 0x96372dde, 0x3b881117, 0x17230997, 0x83fcfe11, 0xe801253e, 0xacfe1711, 0xfe21309d, 0x231f89b6, 0x00020000, 0x3906c361, 0x0b000700, + 0x23402600, 0x05000104, 0x00010301, 0x01006703, 0x57010202, 0x16640100, 0x83112007, 0x06102900, 0x132b1c06, 0x15210121, 0x25200382, 0x31080582, + 0x019f013b, 0xfe2d016e, 0xfe92fe60, 0x01b702d4, 0x057dfe83, 0x9a38fb62, 0x9d9ac804, 0xffff0000, 0xe2fea200, 0xb6050e04, 0x61054701, 0xb4040000, + 0xa9740040, 0x18b42008, 0x22083b55, 0x82fefea2, 0xd2260823, 0x3f001600, 0x01083c40, 0x01044a03, 0x85030203, 0x09080900, 0x02010586, 0x00010106, + 0x07670102, 0x08080001, 0x06825700, 0x5f08002d, 0x0008010a, 0x15164f08, 0x82111314, 0x82122000, 0x0b102703, 0x372b1f06, 0x01823521, 0x01251125, + 0x82112101, 0x5415209d, 0xd7240697, 0xd6fe2a01, 0xa1260382, 0xb601b601, 0x0d86a1fe, 0xfeaed637, 0x9ae0fcd6, 0x02025901, 0xfefdfd01, 0x9ae09aa7, + 0x64019cfe, 0x08008200, 0xe7ff0642, 0xc9045100, 0x3b002d05, 0x51004600, 0x60005500, 0x5f006b00, 0x01085c40, 0x0b010d00, 0x690b0009, 0x030a0c14, + 0x02070f09, 0x01090201, 0x02060e69, 0x02111302, 0x04021004, 0x10011269, 0x59100303, 0x27080682, 0x05610310, 0x03100301, 0x6b474851, 0x5f636569, + 0x55585a5d, 0x4d525354, 0x4851474b, 0x3f434551, 0x263a3b3d, 0x14242621, 0x23210482, 0x21bd8215, 0x10523401, 0x1523210a, 0x24091b52, 0x35352626, + 0x0c376623, 0x66353321, 0x16240a42, 0x37331515, 0x2505c35c, 0x06222326, 0x44523305, 0x14152305, 0x27820116, 0x16140125, 0x82363233, 0x85198240, + 0x2634300a, 0xc3022323, 0x48477646, 0x75464675, 0x857e7e48, 0x76472307, 0x1494d646, 0x347e852a, 0x34344a4a, 0x7ea2fd4a, 0x4a260683, 0xd6d63701, + 0x0a837ffe, 0x02211882, 0x231384dc, 0x2a047e34, 0xd0204688, 0x148b4693, 0xb2204785, 0xfe245786, 0x2dfed0ab, 0x16856283, 0x00206982, 0x32080082, + 0x00c4ff02, 0x05ec041e, 0x001100dc, 0x4048001a, 0x020b1645, 0x0a170302, 0x02040502, 0x0209184c, 0x01064901, 0x02030000, 0x00670300, 0x05040002, + 0x18670402, 0x300f0aad, 0x191a0001, 0x12131415, 0x06080c0d, 0x10011100, 0x0b5d4407, 0x01113a08, 0x11331101, 0x05333634, 0x35211121, 0x21350101, + 0x372d8804, 0x90fd2d37, 0x5402acfd, 0x012d37ce, 0xfeb0fe46, 0x0186fe7e, 0x05d2027a, 0xfc2d37dc, 0xfe372d66, 0x025402a4, 0x31058256, 0x58372d0c, + 0xfede8efd, 0xde82fe82, 0x01ffff00, 0x8f4a011d, 0x483a2007, 0x8f4a08f7, 0x01342a1f, 0x03a504ca, 0x002f0091, 0x08435241, 0x6509ef52, 0xb1520a87, + 0x65b1200f, 0xfc200d87, 0xbc207b82, 0xef524786, 0x493a2007, 0xff251b73, 0x013400ff, 0x069355c2, 0x66207b89, 0x5508bb4b, 0x7b880a93, 0x0812db4c, + 0xfc010023, 0x0391002c, 0x004e04d4, 0x40350013, 0x03010532, 0x57030002, 0x02020406, 0x0307090a, 0x01020001, 0x28138267, 0x085f0003, 0x00030001, + 0x0f3f584f, 0x2b1f0723, 0x06fc5801, 0x21113323, 0x21038211, 0x0f822115, 0xae61fe3a, 0x870179fe, 0xae3a03ae, 0x75fe8b01, 0xfe1f02ae, 0x9e8e0172, + 0x6ffe9101, 0x9e200383, 0x00240d83, 0xe0f70100, 0x70207b82, 0x1b3b7b82, 0x3f404200, 0x05020709, 0x57050004, 0x0306080a, 0x0b0d0e04, 0x00010403, + 0x83670104, 0x00052716, 0x02020c5f, 0x80840500, 0x49001b21, 0xc858085b, 0x870f2008, 0x888c8d88, 0xfdfd2490, 0x88c6fcae, 0x8c968d93, 0x339e8a9a, + 0xc8fb0200, 0xa403feff, 0x0600e204, 0x68001200, 0x01061840, 0x05218382, 0x2d968201, 0x01020202, 0x01004c03, 0x01034a05, 0x2d584902, 0x82162005, + 0x010321af, 0x01202282, 0x09c1aa18, 0x4e021b25, 0x181c401b, 0x281ba6a2, 0x070e4059, 0x07120707, 0x2dcb8312, 0x1b070718, 0x1501132b, 0x01013501, + 0xfb441125, 0x21353a06, 0x5e034611, 0xb902a2fc, 0x1bfe47fd, 0x11feef01, 0x0115feae, 0xfde204eb, 0x1c6818ec, 0xfe973007, 0x0efe9e0b, 0x019ef201, + 0x000000f5, 0x1818fc02, 0x1808db57, 0x5b083758, 0x072026f7, 0x29094875, 0x30f8e803, 0x30f8d007, 0x77738003, 0xf7032606, 0x039d0068, 0x08b375e8, + 0x7a7b6920, 0x751d2005, 0x00240baf, 0x63040504, 0x01278382, 0x0101065f, 0x82001c01, 0x822420fe, 0x84002009, 0x1ad8757e, 0x4f5e5920, 0x080b2408, + 0x5e090a0b, 0x43720f4f, 0x82012006, 0xe8032507, 0x800c80f3, 0x88730385, 0x08f7820b, 0xffbbfd43, 0x05710231, 0x00060087, 0xb508000a, 0x0306080a, + 0x092b3202, 0x15013702, 0x17010301, 0x03bbfd01, 0x423dfcc3, 0xb6fb4a04, 0x424b0419, 0xa201b5fb, 0xa701a601, 0xad18fe98, 0xbefe19fe, 0xfe90e101, + 0x28bb8217, 0x00fafb02, 0x04a40352, 0x20478292, 0x2247830d, 0x82000307, 0x82132047, 0x01272345, 0x06852501, 0x77032d2b, 0x034b89fc, 0xfcf7fc09, + 0x2c0a8863, 0x3afe9204, 0x9139feb3, 0x8f018f01, 0x820a8991, 0xf7032253, 0x205382ae, 0x26538640, 0xb70a0014, 0x820a0e11, 0x32032357, 0x578c032b, + 0x37205e86, 0x69a15e93, 0x2908748c, 0xff15f204, 0x05bc03e7, 0x00030062, 0x00160012, 0x40520022, 0x0201054f, 0x03011201, 0x02101102, 0x4c030607, + 0x09020104, 0xdf820205, 0x82670321, 0x013808a5, 0x0101085f, 0x0a4d1a01, 0x07060601, 0x07070061, 0x184e0720, 0x00131317, 0x171c1e00, 0x13221822, + 0x15161316, 0x0a0b0c14, 0x00030009, 0x070b1103, 0x03012b17, 0x17050323, 0x212c2f83, 0x16162115, 0x01070117, 0x15213505, 0x0b6e6218, 0x1506f73e, + 0x0dfe17a8, 0x2cfafe8a, 0x3e022e38, 0x4729c2fd, 0x8a060122, 0xcf05d6fd, 0xe2f2d80b, 0x0cdc5618, 0xfe75853c, 0x1d3531e0, 0x26431aa6, 0x0275e0fe, + 0xa6a6536b, 0x3a52e3fe, 0x3b54543b, 0xa182523a, 0x5efc0228, 0x5b04feff, 0x6b18ee04, 0x1527378f, 0x01150101, 0x18950135, 0x28158f6b, 0x47fd0efe, + 0xa2fcb902, 0x8d6b1804, 0xfec72e14, 0xca56fe57, 0x00b41b02, 0xaef70300, 0x176c18ff, 0x001c2509, 0x1c264029, 0x20089644, 0x09f46e12, 0x2005655a, + 0x206c181b, 0x85252020, 0x49fd2197, 0x02219795, 0x070144e4, 0x9bc6fa21, 0x091244a1, 0xac88c720, 0xfdffff2d, 0x024eff4c, 0x0090056f, 0x62360546, + 0xf9250777, 0x014eff00, 0x24138241, 0xfb350547, 0x29158550, 0xffff0000, 0x4effb4f4, 0x1784df00, 0xa0f63422, 0x00331787, 0xffdaf803, 0x05780234, + 0x000300a8, 0x0011000a, 0x8d27402a, 0x4d0e20e4, 0x032410b7, 0x03110300, 0x21064b61, 0xd3440105, 0x08e58605, 0x01aeff24, 0xfc9a038d, 0xfdf50266, + 0xfd92fd0b, 0xfcf1020f, 0xf9a8056a, 0xa374068c, 0xfdb5c9fd, 0xce01c9c2, 0xc182cc01, 0xfe342a08, 0x3c02c934, 0x000000b4, 0xfe36fc03, 0x06ca03cb, + 0x002b00a3, 0x003a0032, 0x343a403d, 0x2b2c3233, 0x16191a2a, 0x080f1215, 0x2f7f8202, 0x00030122, 0x01004c02, 0x00850100, 0x86020302, 0x03223582, + 0x3c835900, 0xb5826120, 0x2651032f, 0x19232425, 0x18070416, 0x0107032b, 0x0f875701, 0x57151721, 0x012111ac, 0x06ce5735, 0xa4571720, 0x24be2505, + 0xb902bdfd, 0x200b8b57, 0x0da6576b, 0x05a2fc33, 0x47614f2b, 0x6e3f8b69, 0xb0048443, 0xfe9ffedd, 0x12805756, 0x57c74421, 0x022412a9, 0x1b02b41b, + 0x2005d357, 0x089f57ef, 0x4ef80322, 0x4020f782, 0x0630f782, 0x3f003700, 0x3f404200, 0x32353839, 0x2223252b, 0x2408a258, 0x19030211, 0x1da15801, + 0x2a333423, 0x27a15829, 0x1e41f482, 0x06a65812, 0x5879fd21, 0xfc231ca6, 0x410c03a2, 0xaf581023, 0x1b02242c, 0x41e301b4, 0xb8581737, 0x080b440a, + 0x9f473820, 0x0102250e, 0x03050001, 0x20089f47, 0x509f4704, 0xc4420320, 0x05376105, 0x21112326, 0x44112135, 0x21059343, 0x9d47eb05, 0x087f430a, + 0x47e50121, 0x03260a9d, 0xfeff12f8, 0xb3844003, 0x000d2308, 0x406f0019, 0x06080d1f, 0x05000401, 0x01020509, 0x040a0c00, 0x01020402, 0x00074c03, + 0x0b4a0502, 0x5c480203, 0x0e0e2640, 0x190e190e, 0x25008211, 0x1b07071f, 0x8843032b, 0x20c38b0c, 0x0761441e, 0x928efb21, 0x135844cd, 0x002fd88c, + 0xfdffff00, 0x0231ff8f, 0x00870545, 0x446d0546, 0x02370639, 0xd4ff5efc, 0x0d05a403, 0x09000500, 0x08b50800, 0x02000306, 0x82112b32, 0x012d0886, + 0x03030935, 0xfc5cfca4, 0x02a2035e, 0xfd01fdff, 0xfd0d0503, 0xbbfdb5c1, 0xfdb44502, 0x01d501d0, 0xff2cfed4, 0x005cfcff, 0x04060452, 0x20538292, + 0x2753856e, 0x10f8ffff, 0xa2035200, 0x47221382, 0xbb446f05, 0x6bfc2f0b, 0x5b030700, 0x0f01dd04, 0x00008605, 0xa94ee404, 0xb0e42308, 0x9f822b35, + 0x0012f835, 0x0440033c, 0x062700aa, 0x0068f72d, 0x06270000, 0x8238ff2c, 0x05072407, 0x82a8fd87, 0x2b238207, 0x0700e8f6, 0xdd041604, 0x88054700, + 0x3d085b89, 0xfafb0100, 0x8703cffe, 0x0a005506, 0x09b30600, 0x2b320100, 0x01372713, 0x09170135, 0x9a051702, 0x033bfc54, 0x47fd5b03, 0xe6026a03, + 0x45cffe98, 0xb45802ad, 0xfe8fdd01, 0x05e8fd57, 0x598249fb, 0x12f80122, 0x40203f82, 0x11203f82, 0x01203f87, 0x07203f88, 0x21050148, 0x478d1dfc, + 0x00045f29, 0x026305fd, 0x905afcb9, 0xfdc52151, 0x0c8b6518, 0xb901402a, 0x2203bc03, 0x59040f01, 0x0023f791, 0x71a0fb02, 0x3808068f, 0x00620055, + 0x1c664069, 0x57080a01, 0x400a0701, 0x0906023f, 0x0b020d56, 0x004c0406, 0x070a0003, 0x00690a03, 0x09070008, 0x00690708, 0x0b060009, 0x00690609, + 0x0102000b, 0x0da1710b, 0x00010c35, 0x4e051f00, 0x5e600001, 0x484a585a, 0x3b3d4345, 0x712c3638, 0x552909a5, 0x070d5401, 0x32012b16, 0x26a57116, + 0x07020e22, 0x23210284, 0x06b37122, 0x33023e24, 0x03821e32, 0x3e373623, 0x21028203, 0x096d1113, 0x71362009, 0x1b2822c0, 0x2d81876f, 0x13354c34, + 0x081f8518, 0x275c403b, 0x7c561f81, 0x536a4b59, 0x5e3e2e4c, 0x37280f27, 0x9d382b46, 0x37308aa4, 0x06e67140, 0x3326e471, 0x333a1a06, 0x248c9d3d, + 0x3c4f7a3f, 0x485f3c50, 0x507b3e3f, 0x43080884, 0x8080671b, 0x234c4334, 0x015dfb09, 0xc1be1cf9, 0x503caf91, 0xa5fc0100, 0x95030700, 0x3200dd04, + 0xb04b9000, 0x40585027, 0x0212321a, 0x01180104, 0x1e1f0400, 0x03000302, 0x0216174c, 0x191a4a01, 0x1b490302, 0x05201c8d, 0x59201c8c, 0x1b2f3e85, + 0x04000100, 0x69040100, 0x03000102, 0x82590003, 0x03002b06, 0x03010561, 0x1b510300, 0x1d8a1c40, 0x03050024, 0x26830500, 0x00201f82, 0x59341e83, + 0x2d2f0c40, 0x2325282a, 0x06222323, 0x012b1907, 0x32331616, 0x31076a41, 0x2637023e, 0x37012726, 0x01270101, 0x35373636, 0x8d41030e, 0x020e2305, + 0x18822223, 0x42fd2d08, 0x32356720, 0x596f4d49, 0x494d6f59, 0x393b2832, 0x26123548, 0x8afafe18, 0xd6fd2a02, 0x2d06018a, 0x3f2b293c, 0x594d6143, + 0x32484e6f, 0x492a2884, 0x02166c8e, 0x3c5e43fc, 0x02823c50, 0x3435243b, 0x1a28100e, 0xfd752001, 0x7595fd95, 0x39302001, 0x330e271a, 0x54402434, + 0x231e8240, 0x0037724e, 0x2a080082, 0x017afc01, 0x038603c2, 0x002d002b, 0x01334036, 0x18040101, 0x05000217, 0x01064c02, 0x01010304, 0x69010405, + 0x00050107, 0x82590500, 0x00052806, 0x00010261, 0x82510005, 0x822620d1, 0x08242303, 0x87181e07, 0x50420d2f, 0x0858420f, 0x18050321, 0x280a3c87, + 0x4765514e, 0x50556846, 0x0c26422f, 0x4f4a2e24, 0x87184b68, 0xcc850f4a, 0x8608f641, 0x0020080e, 0x003af701, 0x04680407, 0x015a00dd, 0x19b04b1f, + 0x1b405850, 0x0305393a, 0x010b0902, 0x11120200, 0x032ca682, 0x02090a4c, 0x0c0d4a09, 0x1b490102, 0x8706cb41, 0x92042022, 0x84408922, 0x0003211d, + 0x5921408b, 0x36648559, 0x020b0d27, 0x02040609, 0x02090002, 0x080a0c69, 0x0100040e, 0x85590001, 0x01002a09, 0x03050761, 0x01000103, 0x27708651, + 0x0201062c, 0x59020904, 0x00243583, 0x04090004, 0x4021339c, 0x212e962d, 0x54820107, 0x3b860320, 0x05216582, 0x08638301, 0x40595929, 0x57000123, + 0x4d505255, 0x4346484b, 0x363c3e41, 0x2c2f3134, 0x2225272a, 0x181b1d20, 0x015a0016, 0x16070f5a, 0x4232012b, 0x2e231b6b, 0x18222302, 0x220af088, + 0x72262622, 0xa7420538, 0x051a4409, 0x01250f85, 0x383b28f3, 0x0d894247, 0x293c2c27, 0x61423d2a, 0x0589424e, 0x6f4e4823, 0x09934259, 0x49281389, + 0x9d166c8e, 0x32366521, 0x09842089, 0x484d7023, 0x21138832, 0xb6425b02, 0x0d232413, 0x42233431, 0x372505b6, 0x4d3a3747, 0x08c2423a, 0xed424c20, + 0x05174207, 0x00200585, 0x86080082, 0x013cfc02, 0x0584035c, 0x000800f0, 0x403d000c, 0x0001043a, 0x004c0103, 0x85030003, 0x01000200, 0x80010200, + 0x01000000, 0x67010004, 0x05050400, 0x04005704, 0x065f0504, 0x05040501, 0x0909094f, 0x120c090c, 0x10111211, 0x2b1b0707, 0x21152103, 0x01230101, + 0x21350133, 0xa9032515, 0x9efee8fb, 0x01c9fbfe, 0x0a01ac7a, 0x80031804, 0xfe6e02a2, 0xfb720232, 0xffa2a26c, 0xffaefbff, 0x055304d5, 0x06270089, + 0x828efb48, 0x06062e62, 0x0000c248, 0x01240002, 0x058d0467, 0x2c81824a, 0x402c000e, 0x0a0b0c29, 0x03050809, 0x1d541849, 0x11162918, 0x05101111, + 0x132b1b06, 0x31069755, 0x01010701, 0x2e210127, 0xacfb5404, 0x44fe5404, 0x6765c701, 0xc6013205, 0x4a0544fe, 0xfe9a969a, 0x8c017f66, 0x017f74fe, + 0x206f859a, 0x2a6f86b2, 0x40200009, 0x0708091d, 0x18050506, 0x24115e5b, 0x06021011, 0x20638418, 0x84608405, 0x2a02215e, 0x2408c465, 0xfe819a4a, + 0x82578502, 0xffff23aa, 0x135e0601, 0x5e562008, 0xef5e1313, 0x0ad05f06, 0x00ffff23, 0x263382e1, 0x009903a3, 0x885a002f, 0x532b2033, 0x33831e6f, + 0x338ec820, 0x33924720, 0x8608605f, 0x8eca2067, 0x9e532033, 0x67192033, 0x5a200843, 0x60085354, 0x2820096b, 0x6012935f, 0x4783156b, 0x7b869b20, + 0x833bfb60, 0x8e872047, 0x09675447, 0x2c29b360, 0x04e7ffc5, 0x007b0508, 0x04720447, 0x05c949b0, 0xff000024, 0xef9300ff, 0xc7547820, 0x13336808, + 0x8212c754, 0x826b2047, 0x05042a5f, 0x030f017b, 0x056004f0, 0xe16d1862, 0x261f820d, 0x03e7ff7a, 0x826205f0, 0x91ef201f, 0x0043081f, 0x00ceff03, + 0x05e20424, 0x00130038, 0x003c0027, 0x3b5d4060, 0x05032e32, 0x0b4c0107, 0x03070208, 0x05070305, 0x04050080, 0x7e040503, 0x02040106, 0x7e020403, + 0x03000100, 0x69030107, 0x0002010a, 0x82590200, 0x02200806, 0x01096100, 0x51000200, 0x14152828, 0x3c280001, 0x393a3c28, 0x30313738, 0x1d1f292a, + 0x27152714, 0x2905bd64, 0x2b16060c, 0x022e2225, 0xc4443435, 0x14152605, 0x3227020e, 0x440f823e, 0x152305fc, 0x74021e14, 0x332c112d, 0x58021313, + 0x65b3eb87, 0x87ebb365, 0x6e270787, 0x525292c0, 0x866ec092, 0x91012207, 0x0e48741e, 0x65c21f24, 0x318b2456, 0x78203983, 0x3a84328a, 0x749d0321, + 0x03290f66, 0x02dafd0f, 0x00ffff26, 0x085f43f5, 0x5f436620, 0x0f5d5613, 0xff000025, 0x60d600ff, 0x71200843, 0x28264360, 0xfd010201, 0x07af02a8, + 0x17637308, 0x3a064850, 0x07aeaf02, 0x09a0f608, 0x00000060, 0x00690101, 0x0247035c, 0x000b003e, 0x552a402d, 0x2d821b65, 0x2408b46f, 0x012b1b07, + 0x7b401815, 0xa0022e09, 0xa98ea7a7, 0xb13e02a9, 0x82afaf82, 0x282982b1, 0x01680101, 0x01480307, 0x258b8289, 0x021c401f, 0x6b820101, 0x51185720, + 0x01220735, 0x23824f00, 0x2a08dc50, 0x03352115, 0x0120fe48, 0x82828289, 0x02002816, 0x91006601, 0x83024803, 0x367b55c7, 0x52850520, 0x011e2608, + 0x021efee2, 0xf3848408, 0xff008484, 0x036901ff, 0x0547033d, 0x0507031f, 0x0200009c, 0xb10900e1, 0x02b80100, 0x05835be1, 0x68261f82, 0x4803e803, + 0x1f826a04, 0x1f949d20, 0x72036622, 0xe9201f82, 0x9e201f82, 0x02201f87, 0xff2b3f8a, 0x0234ffec, 0x00a805af, 0x43a40547, 0x0021099f, 0x21178301, + 0x1782c404, 0x29000b24, 0x5c512640, 0x03042305, 0x7d4a8604, 0x82572005, 0x03002906, 0x0301055f, 0x114f0300, 0x2305605c, 0x032b1c07, 0x37090a58, + 0x15021421, 0xfd1502ae, 0xebfdaeeb, 0xe302c502, 0xfda61dfd, 0x00eb0215, 0x01240082, 0x34ff0102, 0x07255b84, 0x27402a00, 0x2b448304, 0x01020085, + 0x00008602, 0x57000101, 0x5f252283, 0x01000100, 0x09f06d4f, 0x2b190722, 0x2107b44e, 0x5684af02, 0x84a80521, 0x74062952, 0x3cfbffff, 0x780134ff, + 0x4622ab82, 0x6144a705, 0x83022006, 0x2c638613, 0x403d000f, 0x0207093a, 0x85020302, 0x29608204, 0x08068601, 0x00000302, 0x07835703, 0x82000321, + 0x030030c6, 0x08084f00, 0x0f080000, 0x0d0e0f08, 0x180a0b0c, 0x8308b64f, 0x21152678, 0x33112311, 0x07f15811, 0xfcc4042e, 0xfdaeaeb6, 0xb4fcaebc, + 0xc5024c03, 0x0630d782, 0x021dfd74, 0x028cf9e3, 0xe302a6eb, 0x88fe0200, 0x0b26df88, 0x33403600, 0x7b8b0507, 0x7a83ee82, 0x82030121, 0x86848279, + 0x080b2178, 0x08207489, 0x7088748e, 0x06236c8c, 0x8c000074, 0x90aa20fb, 0x000b33fb, 0x404c0017, 0x020c0949, 0x85050005, 0x0304010a, 0x2e728604, + 0x0303250c, 0x01065702, 0x5f2f9d82, 0x03020b0d, 0x0c4f0302, 0x0c00000c, 0x61170c17, 0x0020099a, 0x22074043, 0x411b070e, 0x9c5d0583, 0x35012206, + 0x2a018321, 0x23113311, 0x037a0111, 0x83b6fc4a, 0xfaae3703, 0xfc4c0370, 0xae4c03b4, 0xfda805ae, 0xa2e2a2dd, 0x7406d5fd, 0x0882b7fb, 0xf9230226, + 0x002b028c, 0x2a0a1f41, 0x000f000b, 0x093c403f, 0x83030807, 0x840620a0, 0x128948a0, 0x9a880020, 0x0f0c0f24, 0x92880d0e, 0x928e0a20, 0x8a8d2120, + 0x8b6afe21, 0x8cf92583, 0xffff7406, 0x200aef42, 0x14ef42ad, 0x3d001324, 0x70833a40, 0x08008529, 0x04860807, 0x5e050201, 0x062605c6, 0x07070001, + 0x06825700, 0x5f070028, 0x0702090a, 0x175b0700, 0x41032013, 0xc75e0816, 0x02142409, 0x43ebfd15, 0x0a83060f, 0x5f01ae27, 0x02a2e2a2, 0x061f4123, + 0x002b0222, 0x2f091343, 0x4034000b, 0x05010631, 0x00850500, 0x86040304, 0x44170e41, 0x365f0fda, 0x0521430a, 0x83416884, 0x0100250a, 0x94feecff, + 0x27061343, 0x00244027, 0x85010001, 0x240cce43, 0x00030104, 0x0d744303, 0x1121cd82, 0x085a8233, 0x14021424, 0xfe1602ae, 0x7106a394, 0x00a38ff9, + 0xecff0200, 0xbc035f01, 0x03008503, 0x2f000700, 0x00002c40, 0x5e180104, 0x05260f5e, 0x03020301, 0x6118044f, 0x07220e76, 0x55822b17, 0x35011533, + 0x03141521, 0x0330fcd0, 0xa2e302d0, 0xa27cfea2, 0x84d282a2, 0xc4042157, 0x042557bf, 0x0428fbd8, 0x23578bd8, 0x5f01f400, 0x132057b8, 0xaf83ab82, + 0xaf90f420, 0xecff013d, 0xc3030700, 0x0e00dd04, 0x24402700, 0x01000101, 0x010e4c01, 0x02034a01, 0x67490002, 0x11350f09, 0x18070217, 0x2702092b, + 0x37363601, 0x26213521, 0x01012726, 0x06484f99, 0x2a3c2c2d, 0xbb0245fd, 0xfe2c3c2a, 0x4fdd04fa, 0xa628092c, 0x0130391a, 0x00000020, 0x04216b84, + 0x206b82c4, 0x296b8311, 0x00020506, 0x020b0c4a, 0x75824902, 0x57206d82, 0x00310682, 0x01035f02, 0x4f020002, 0x10161116, 0x2b1a0704, 0x24638403, + 0x15210137, 0x05df4f21, 0x86142121, 0x018a2b62, 0xfe4b01e0, 0x8a20feb5, 0x7a850601, 0x6884c520, 0xe8fd7525, 0x4fe8fda6, 0x738205a7, 0x000f0123, + 0x20738407, 0x20738308, 0x25638207, 0x01084c01, 0x7d824a00, 0x2012c44b, 0x20df8311, 0x826d8601, 0x226389da, 0x8236feca, 0x225a85d4, 0x82f601f6, + 0x21cf85ce, 0xcf82c303, 0x39001536, 0x040f3640, 0x01010002, 0x020d0e4c, 0x10114a02, 0x00490302, 0x26051f4d, 0x03000067, 0x82570003, 0x5f032131, + 0x2f08a142, 0x11150015, 0x07051123, 0x35032b19, 0x27373521, 0xe9830482, 0x01372735, 0x36372701, 0x02143736, 0xfd676786, 0x2b0e027a, 0x50751635, + 0x752f05aa, 0x012b3516, 0x7001a25f, 0x18a20170, 0x507f1a32, 0x7f23058f, 0x4118321a, 0x1d250c5b, 0x40404300, 0x3e84821c, 0x174c0103, 0x4a040216, + 0x00020304, 0x04010549, 0x02030106, 0x08670304, 0x00020207, 0x83570200, 0x00023007, 0x0001015f, 0x004f0002, 0x001d0000, 0x8216111d, 0x11162893, + 0x2b1d0709, 0x85211501, 0x35212688, 0x27373721, 0x05ec4127, 0x212b9e82, 0x07172115, 0x4dfec404, 0x828accfe, 0xfd2a2d91, 0x01c902af, 0xfd016767, + 0x2a510237, 0x012dab83, 0xfeb30134, 0x026565de, 0xa8fea201, 0x8a9e8375, 0xa8fe24b2, 0x827171a2, 0x0200216c, 0x26089741, 0x000b0005, 0x8237403a, + 0x4a0126a5, 0x0202090a, 0x01651849, 0x06062f1a, 0x0b060000, 0x07080b06, 0x05000500, 0xf55d0611, 0x37012205, 0x3cae8401, 0xfdc40401, 0x8a9dfeae, + 0xf6013501, 0xcbfe0afe, 0x0363018a, 0x8501a285, 0xfea8fe75, 0x258c837c, 0x02008501, 0xef423cfb, 0x00053806, 0x402c0014, 0x01040729, 0x01010003, + 0x0205144c, 0x08094a01, 0x42040203, 0x1d2012f6, 0x2107f642, 0x66522501, 0x0efc4206, 0x36feca24, 0x07430efe, 0x11fb2309, 0x0743ef04, 0x01f6220c, + 0x0a3e52f6, 0x84061143, 0x069b428b, 0x30001738, 0x070a2d40, 0x01000102, 0x0208174c, 0x0b0c4a00, 0x01040506, 0x10820349, 0x57000122, 0x00240682, + 0x01025f01, 0x4f290d82, 0x11111c11, 0x2b1a0704, 0x07a64213, 0xa02a938e, 0x4502df01, 0x21febbfd, 0x968d018a, 0x0bfc2925, 0x4329f503, 0xc942069e, + 0x21979208, 0x33435ffc, 0x00052a06, 0x402c000e, 0x01040d29, 0x21798203, 0xb1430e4c, 0x02032105, 0xea489882, 0x091a440f, 0x87250121, 0xe9fc2198, + 0x82051241, 0x05032986, 0x8003e001, 0x20fe80fc, 0x1f449584, 0x01f62207, 0x07af43f6, 0x41055443, 0x1536099f, 0x37001b00, 0x171a3440, 0x0104010c, + 0x1b4c0102, 0x4a030215, 0xa0411819, 0xdd711805, 0x11232717, 0x1a070417, 0x4543032b, 0x0dbc4206, 0x15822520, 0x89010122, 0x75359384, 0xfb2a3516, + 0x01130565, 0xfa016767, 0x2a9b04ed, 0x02751635, 0x86ae88ac, 0x0ebd429f, 0x8405d344, 0xfb0322a8, 0x0623413c, 0x2124a783, 0x52405500, 0x3206ff43, + 0x0d0e191a, 0x204a0204, 0x0410111f, 0x05094903, 0x47040202, 0x0a27057f, 0x03000207, 0x83570003, 0x03003c07, 0x0208065f, 0x4f030003, 0x16161c1c, + 0x211c0000, 0x1d1e211c, 0x1b161b16, 0x44001718, 0x0b24051b, 0x012b1907, 0x430e7c43, 0x01220592, 0xf2422115, 0x3cfb2308, 0xc3830b04, 0x03f5fb23, + 0x44c38393, 0x2a32082a, 0xa6fcf505, 0x018a9dfe, 0xfdfe0235, 0x8acbfe02, 0x3c446301, 0x26022115, 0x210e2243, 0xff410300, 0x000b280a, 0x40440011, + 0x82010441, 0x4c012cac, 0x0305090a, 0x0f104a01, 0x43040203, 0x0c381ca7, 0x0c06060c, 0x0e110c11, 0x060b060d, 0x0706170b, 0x02092b17, 0x05010127, + 0x1c42b98a, 0x6508230a, 0xaa841ffb, 0xfb850423, 0x42aa847b, 0xe3200a1f, 0xff2d9e8f, 0x00ecffff, 0x04a10307, 0x054700dd, 0x090349b4, 0x04211785, + 0x201784c4, 0x0cab4fb3, 0xab41ed20, 0x05472206, 0x862f8fb2, 0x8fb72047, 0x20478617, 0x204796b6, 0x21178bb5, 0x8f863cfb, 0xba054622, 0x2105c34a, + 0x1f42ffff, 0x05462208, 0x211387b9, 0x87863dfc, 0xb8054622, 0x8384278b, 0xbd054622, 0xbc203b92, 0xbb203b92, 0x00311385, 0xffbbfd02, 0x05470272, + 0x00060016, 0x4028000a, 0x05197a25, 0x4a010622, 0x2a11fa4d, 0x0a070707, 0x03180a07, 0x622b1707, 0x052e0557, 0xfd352115, 0xfcc403bb, 0x4a04423c, + 0x0382b6fb, 0x31018d33, 0xa701a701, 0xac18fe97, 0xa38518fe, 0xfdffffa3, 0x205f82b9, 0x225f8245, 0x86cd0546, 0x034a0873, 0xf3ff4f00, 0x8705fe04, + 0x2d002100, 0xe7003700, 0x28371640, 0x0b0e111b, 0x0906070a, 0x010f0203, 0x4c020301, 0x49010110, 0x500ab04b, 0x05174058, 0x00020201, 0x00010461, + 0x004d1f00, 0x61010303, 0x1b010100, 0x4b1b4e01, 0x1e970cb0, 0x1e842020, 0x1e971020, 0x13203d85, 0x3d851e97, 0x1e971720, 0x95953d83, 0x59203882, + 0x40350083, 0x01222313, 0x22333500, 0x152d232d, 0x01210013, 0x16070621, 0x0517622b, 0x36010727, 0x06173736, 0x053c7106, 0x26222327, 0x36343526, + 0x2e058437, 0x06221736, 0x17161415, 0x34353636, 0x83060326, 0x33ab080b, 0x02373632, 0x99c0a003, 0x24600182, 0x219c153b, 0x8fef3355, 0x8dcf52c3, + 0x9070c27d, 0x53606081, 0x6156729f, 0x6a695840, 0x615f8c65, 0x93667797, 0xad87053d, 0x4eaa7c83, 0xaa4daefe, 0xc57a3064, 0xbd58df53, 0xa85c6558, + 0x51b78470, 0x56669460, 0x6a82558f, 0x576d434d, 0x55507c3e, 0x3e89fd5f, 0x846c5888, 0x0200434c, 0x45fef8ff, 0x7005b804, 0x4e004000, 0x64406700, + 0x02080113, 0x03054b4c, 0x012b0809, 0x012c0005, 0x4c040506, 0x010b0200, 0x08020908, 0x0a030069, 0x03050001, 0x04006900, 0x00610704, 0x4d1f0707, + 0x41090900, 0x31080598, 0x0505004d, 0x06006106, 0x4e061e06, 0x00014142, 0x4e414648, 0x37394e42, 0x27292e30, 0x16181f21, 0x080a0f11, 0x40014000, + 0x2b16070c, 0x022e0605, 0x50182327, 0x33240851, 0x11171632, 0x322fff82, 0x3435023e, 0x22232602, 0x14150206, 0x18331612, 0x33070248, 0x34110224, + 0x33363612, 0x11120432, 0x01020e14, 0x14170622, 0x93081d83, 0x26113736, 0x41d10326, 0x010a224b, 0x666f1907, 0xad317260, 0x496f3ea6, 0x2018311f, + 0xbd4e0713, 0x4ebda8a8, 0x30a4be51, 0x40492a79, 0xfedc4399, 0x904379f5, 0x01dca5e8, 0x3213790b, 0x6e5ffe5a, 0x4a2a0146, 0x091c3c39, 0x0161231a, + 0x1c585a3c, 0xb4676b3d, 0x22e9e173, 0x5ffefd28, 0x83550175, 0x01f03c8f, 0xfeb4b04f, 0xfeefedaf, 0x1b18aeb3, 0xe31c2e91, 0x14019b01, 0xf75101c9, + 0x63fee588, 0xc555ecfe, 0x360371b0, 0x8b7ea89f, 0x011a3f2e, 0x00050db7, 0x3b080082, 0x0030fd02, 0x04d002d2, 0x001a0018, 0x40580035, 0x02161755, + 0x090a0201, 0x32030002, 0x06050231, 0x04022425, 0x004c0407, 0x00010803, 0x69000306, 0x05000600, 0x69050607, 0x01090700, 0x28081882, 0x01010065, + 0x02006102, 0x4e011c02, 0x00011b1c, 0x282a2d2f, 0x351b1f21, 0x1214351c, 0x04060d0f, 0x1a011a00, 0x2b16070a, 0x05e75901, 0x27070622, 0x27055153, + 0x37363233, 0x03020e17, 0x01261695, 0x87985a2c, 0x74183d7c, 0x562408ad, 0x3e7f8897, 0x079a7418, 0x02361a99, 0x4256429a, 0x43304c2b, 0x424f7a3f, + 0x48724257, 0x5a833f41, 0x0a8238fe, 0x314b2c22, 0x56211484, 0x2b148243, 0x005a843e, 0x18fc0400, 0xe8035f01, 0x3306bf4c, 0x000f000b, 0x09454048, + 0x01030803, 0x05000102, 0x0b670001, 0x359d5a18, 0x2505a949, 0x21152335, 0x03820135, 0x03280783, 0x9e67fce8, 0xd00767fc, 0x03220684, 0x0082a285, + 0x827cfe21, 0x00a22604, 0xf7060000, 0x32878e68, 0x00170013, 0x0e5d4060, 0x0c030d05, 0x02040105, 0x82070002, 0x0b112a8e, 0x050f0910, 0x07060607, + 0x280a8657, 0x0a5f0607, 0x07060208, 0x47591806, 0x20a38630, 0x189f8221, 0x830b7974, 0x28fb250b, 0x200840fc, 0xfb210385, 0x850b8900, 0x05fd4db5, + 0x0226b984, 0xfeff5efc, 0x73183004, 0xb8720ba3, 0x07082c0a, 0x03040506, 0x00011400, 0x18164c01, 0x202aa373, 0x06ba6127, 0x7318b020, 0x5b2017a3, + 0x1805fa60, 0x6118a073, 0x002008d4, 0x03660082, 0x00f12c07, 0x00180011, 0x403c001f, 0x661e1f39, 0x74180605, 0x1a20104f, 0x1d22ab83, 0x2c4d0215, + 0x50741811, 0x0719661e, 0xb3976420, 0x617b0421, 0x1b6607b9, 0x61be9807, 0x003013c5, 0xe9fbffff, 0xf503c6ff, 0x27009d05, 0x8afb6b06, 0x0623d982, + 0x82a56b06, 0x41fe2d17, 0xbf01a8fd, 0x27000807, 0x40fc9b05, 0x07241782, 0x10ff9b05, 0x1b820782, 0x55a1f821, 0x1b8206af, 0x8250fb21, 0x27078213, + 0x0000a0f6, 0x9b050602, 0x59080d82, 0xfe69fc01, 0x060804cb, 0x003a00a3, 0x323b403e, 0x1f040501, 0x0102041e, 0x00030600, 0x03020118, 0x01004c03, + 0x00860102, 0x03000004, 0x00690004, 0x4d1f0505, 0x02030300, 0x02020061, 0x364e0220, 0x25333435, 0x06291e11, 0x012b1a07, 0x01370115, 0x022e2426, + 0x15062223, 0x04191614, 0x1122076e, 0x1a5c1323, 0x82362007, 0x080b822e, 0x35022e7c, 0x37363634, 0x1e113311, 0x08040403, 0x01332cfd, 0xb3fee8fc, + 0x60a8bbf1, 0x933e9a6e, 0x6eb76f80, 0x01abb4c3, 0x7152e893, 0x517cba48, 0x8033558b, 0x69c78c73, 0xab75b465, 0xfecdc06b, 0x0a034f01, 0xe871feb5, + 0xc28a0001, 0x5f1c467e, 0x44513a61, 0xa15f2126, 0x1fd79983, 0x1d01d9fe, 0x7f505f04, 0x6b354e43, 0x465b4051, 0x95692922, 0x5f9b636d, 0xfe2b010a, + 0x582e07d5, 0xf383cb8d, 0xfefafb25, 0x847303cb, 0x404536f3, 0x02101342, 0x33350102, 0x05173132, 0x01280200, 0x4c030004, 0x20f38216, 0x08f0824b, + 0x00860329, 0x00020001, 0x05690201, 0x04000001, 0x04040061, 0x014e0420, 0x2a2b2c00, 0x12191b29, 0x013a0011, 0x1607063a, 0x9032252b, 0x21ff82da, + 0x4f182607, 0x1e370861, 0x06141502, 0x11231107, 0x2424022e, 0x07013525, 0x1e040401, 0x8a740102, 0xaa7628dc, 0x6e45a568, 0x4157a94a, 0xaa2e0903, + 0xfec19f54, 0xfe7dfef2, 0x19f602ed, 0x3582c8fd, 0xa9f76d24, 0xda918980, 0x4e0ed12c, 0x3b417c3e, 0x523a615f, 0x0a412544, 0x011c3509, 0xe0884418, + 0x9c01b4a9, 0x96d2fec9, 0x143c78c7, 0x12f80100, 0x3406a766, 0x404b0042, 0x05013148, 0x3b3c3e04, 0x18191b3a, 0x00030817, 0x05f1410e, 0x04050423, + 0x22f48285, 0x82068601, 0x610521f5, 0x300ff441, 0x34350001, 0x20223233, 0x0f101112, 0x42014200, 0x084e7f07, 0x8d09f341, 0x413320e8, 0x1e2d111f, + 0x15170403, 0x26253701, 0xfd262424, 0x24f393ae, 0xfd140203, 0x20f386b7, 0x0c284141, 0xdad37635, 0xce3d01fe, 0x01362bfd, 0xa2feecfa, 0x04fee9fe, + 0x975e01da, 0xc7a123fc, 0xfc84cbfe, 0x34113741, 0x603508d4, 0xb57ec38f, 0xfcef6efe, 0x458cd18b, 0xff010000, 0x062f43ec, 0xeb560720, 0x4c401806, + 0x0057280c, 0x5f010202, 0x56020100, 0x606610eb, 0xaf022f05, 0x02ebfdae, 0xf6080715, 0xa67704a0, 0x4f854304, 0x07c40424, 0x97570008, 0x43042944, + 0xfba6bdfb, 0x00770489, 0x85820082, 0x84a8fd21, 0x3b97575b, 0x84080721, 0x60092952, 0x3cfb0200, 0x8200a8fd, 0x0328ab82, 0x2c000700, 0x01042940, + 0x85256282, 0x00030000, 0x1fc11886, 0x06072311, 0x19820405, 0x0511033c, 0x132b1707, 0x01112111, 0x82211521, 0xbcfbfefe, 0x59fca703, 0xa0f60807, + 0x59826009, 0x0320a782, 0xa7845783, 0x0b295783, 0x3c403f00, 0x03010106, 0x2b598201, 0x08860002, 0x03030705, 0x57030202, 0x032e0884, 0x01045f02, + 0x4f020302, 0x04040808, 0x64180000, 0x6c871141, 0x2806b446, 0x05fefe82, 0xfd59fc44, 0x26728ac6, 0x00a6a6a6, 0x4188fe02, 0xd357081b, 0x89fb2150, + 0x0421da83, 0x06df5a43, 0x3741df84, 0x000b2408, 0x87354038, 0x000432df, 0x00030086, 0x02030502, 0x04050067, 0x00570504, 0x9e871805, 0x00002507, + 0x08090a0b, 0x20084541, 0x24d88607, 0x21352103, 0x82038211, 0xfc9d24d8, 0x83a70359, 0x064c4103, 0xfda2db28, 0x0000a2da, 0x4f410500, 0x000f270e, + 0x40590013, 0xad410a56, 0x00073506, 0x02010486, 0x030b050c, 0x03020603, 0x06010867, 0x57060707, 0x062e0682, 0x090e5f07, 0x0607030d, 0x10104f07, + 0x61410c0c, 0x13102805, 0x11121310, 0x180c0f0c, 0x20132a65, 0x2194860f, 0x24483501, 0x82078705, 0x8401299c, 0x78f6c003, 0x0802c003, 0xa3880785, + 0x2209d548, 0x4180ff03, 0xf7410683, 0x40422305, 0xa386063f, 0x86000528, 0x01070200, 0xa0820403, 0x240a4661, 0x04050108, 0x20fa4105, 0x8306dc55, + 0x419d2084, 0x96560e20, 0x0ac74307, 0x25079f57, 0x00850504, 0x77820100, 0x03000428, 0x67030402, 0x8b820200, 0x590dcf43, 0x07220739, 0x2e731b07, + 0x21352407, 0x43112135, 0xd94306d5, 0xb7032607, 0x03a2e2a2, 0x0adb4383, 0x23698358, 0x7dfc8303, 0xfc247d82, 0x00b70349, 0x5809ff43, 0x07214d83, + 0x21638608, 0x83586009, 0x08072407, 0x58000700, 0x07263883, 0xa32ff8d1, 0x4b4f0000, 0x00193709, 0x002f0025, 0x2f1240e3, 0x06091320, 0x07020305, + 0x02030101, 0x474f084c, 0x1a1b2fbd, 0x2b2d0001, 0x251b251a, 0x19000b0d, 0x474f1901, 0x2707210b, 0x4f08394e, 0x0221223f, 0x24374fb6, 0x4f68fd21, + 0x2d08242f, 0xfecb0001, 0x05e503cb, 0x00200059, 0x1f324035, 0x00030104, 0x02051103, 0x15180001, 0x01020312, 0x01004c03, 0x02010200, 0x00000063, + 0x1d825f03, 0x00380323, 0x2b0b824e, 0x17200020, 0x09052724, 0x11012b19, 0x200bce48, 0x05e34e33, 0x23110724, 0xca492611, 0x025f0806, 0x397b41f0, + 0x386a405d, 0x7d908f7e, 0x5b406a3a, 0xa2417b39, 0xad58c4bf, 0xfe590580, 0x2f3208d4, 0xc422307c, 0x26b4cdcc, 0x31308431, 0x01dafe0a, 0x1c011a29, + 0x96e890e0, 0x002e0113, 0x00440002, 0x046c0492, 0x002000c4, 0x4069002c, 0x06082020, 0x00020401, 0x090f191f, 0x18020304, 0x83101216, 0x074c3d94, + 0x174a0001, 0x49010211, 0x5020b04b, 0x00134058, 0x03010003, 0x01046501, 0x61000202, 0x4126af82, 0x401b4e02, 0x54180019, 0x290817aa, 0x220d4059, + 0x21262821, 0x2e2c222c, 0x18090523, 0x3617132b, 0x17323336, 0x16071737, 0x06141516, 0x27071707, 0x27222306, 0xa1412707, 0x27372105, 0x0bb84d18, + 0xb0b54d08, 0x8e467d32, 0xab71af64, 0x21292721, 0x64b171ad, 0xaf678f8c, 0x2521af71, 0x02ad1f25, 0x7e7e7916, 0x7c7c7979, 0x1fb1c404, 0x72af4223, + 0x487e31ad, 0xab327e4b, 0x4040ad72, 0x32af72af, 0x7c48497e, 0x9392b032, 0x93938281, 0x00938182, 0x2508ba82, 0x04cbfe81, 0x00a3063a, 0x002a0023, + 0x40350030, 0x2a2b2c32, 0x1a1b2224, 0x08101617, 0x01040507, 0x0102010f, 0x0482034c, 0xb7440220, 0x01012406, 0x824e013f, 0x002329e6, 0x12131423, + 0x16090411, 0x18079741, 0x2208bb48, 0x4b112311, 0x1720056b, 0x08ba4818, 0x06116708, 0x16141506, 0x36111717, 0x02263435, 0x40bb79b4, 0x6a92736f, + 0xad586bb1, 0xd58f8b81, 0x9b3f6d44, 0x54beb661, 0x614f7ba5, 0xbe8b6947, 0xfea30652, 0x3a5a0cd4, 0xfe126973, 0xa36a2249, 0x74aa6279, 0x01dcfe11, + 0x43700a1e, 0x08523f79, 0xb93d1302, 0x6696558b, 0xfe2c010c, 0x4f5d0d38, 0xef2c5d42, 0xc32726fe, 0x9882734f, 0xf6000428, 0xb8036afe, 0xdd826205, + 0x1500063c, 0x48002100, 0x01064540, 0x01170002, 0x01140605, 0x4c030504, 0x04020715, 0xee430049, 0x68012105, 0x052a2783, 0x00690603, 0x05040005, + 0x42826504, 0x82003821, 0x1e2027e1, 0x1113181a, 0x5f480a0c, 0x09083e06, 0x01132b17, 0x21250133, 0x34110103, 0x16323336, 0x06061415, 0x11272223, + 0x33161511, 0x08d78332, 0x06222366, 0x9c1301f6, 0xedfd1301, 0xfead5c01, 0x89828cfc, 0x5672388b, 0x4a303b5d, 0x40453e4d, 0x5802344c, 0xf6fc0a03, + 0xf92b0270, 0xa3590277, 0x5ea3b4ac, 0xfe365e9b, 0xa73802de, 0x80747436, 0x0100796b, 0xe7ff4600, 0x7b054604, 0x5e002700, 0x01035b40, 0x01040001, + 0x01170102, 0x01180506, 0x4c040607, 0x0a02010b, 0x2305af46, 0x08040109, 0x0423d082, 0x82006705, 0x0c612125, 0x070a5e18, 0x00610737, 0x073f0707, + 0x2500014e, 0x21222324, 0x1c1e1f20, 0x1113151a, 0x05a06010, 0x00060828, 0x0d270127, 0x72181609, 0x07240ab9, 0x15210721, 0x16200382, 0x3721c683, + 0x25d48315, 0x37232700, 0x03823733, 0x24364908, 0x966a0303, 0x6d375a43, 0x1ca77d3d, 0xfe1fde01, 0x1fa80133, 0x98187ffe, 0x2f905b8c, 0xd45b9335, + 0xba2400ff, 0xad028d1e, 0x012da01e, 0x307b0513, 0x1f25862d, 0xb27cb59a, 0x3da6b57e, 0x2a1fba27, 0x7ef50501, 0xffef7cb2, 0x752edb82, 0x61040000, + 0x1b006205, 0x33403600, 0xf7741718, 0x07082107, 0x29054155, 0x01000112, 0x0000004c, 0xd1824d38, 0x03600228, 0x39020201, 0x10824e02, 0x1a001b2e, + 0x09041929, 0x11212b18, 0x35372707, 0x11260382, 0x17251133, 0x03821505, 0x06441120, 0x23360806, 0x336e1601, 0xa1376aa1, 0x353f01c7, 0x3d018cfe, + 0x808efe35, 0x8b40ae8b, 0x01d5f840, 0x4b703393, 0x4a743295, 0x36fe2602, 0x94ae7294, 0xfeab7294, 0x46856abb, 0x5d82b1a2, 0x74000222, 0x662c9782, + 0x17006205, 0x3d002100, 0x01093a40, 0x33063b58, 0x00010569, 0x0602080b, 0x67060007, 0x030a0a00, 0x0303005f, 0x07239c82, 0x82073907, 0x1f212396, + 0x3282181a, 0x11111725, 0x82212511, 0x090c3604, 0x35372b1e, 0x35233533, 0x32211133, 0x06141504, 0x15232306, 0x22018221, 0x4c133523, 0x3608067a, + 0x93742323, 0x42019393, 0x892001fd, 0x01839cf1, 0xc6acfe54, 0x8e5b8dc6, 0x8f89af51, 0x90927deb, 0xdad1d802, 0x9259c4a0, 0x01ebeb7d, 0x7582349f, + 0x00007d98, 0x82b50001, 0x822b209f, 0x1d32089f, 0x4b404e00, 0x0503010e, 0x0009011a, 0x03004c02, 0x03050205, 0x09080072, 0x04008608, 0x04030500, + 0x01066705, 0x01010702, 0x67010200, 0x09090000, 0xdf825700, 0x0a5f0922, 0x09212e82, 0x310a824f, 0x141d001d, 0x13111211, 0x21121122, 0x2b1f060b, + 0x62193513, 0x23230914, 0x82352327, 0x163e08ac, 0x23153317, 0x01070606, 0xe1b50123, 0xfd079c88, 0x180102f4, 0x01c18697, 0xfe76030a, 0xa42277c3, + 0x939a0699, 0xfeea8101, 0x952702a7, 0x587c886e, 0x7c7e0d51, 0x917c8335, 0xb9fd2baf, 0x64822702, 0x8a000122, 0x2637af82, 0x21007b05, 0x42404500, + 0x02020304, 0x05011501, 0x074c0204, 0x42060201, 0x002005bc, 0x6121a382, 0x05b24208, 0x0504043e, 0x0505005f, 0x014e0539, 0x1b1c1d00, 0x1213141a, + 0x0b0c0d11, 0x0006080a, 0x09210121, 0x220baa42, 0x82211515, 0x14470801, 0x07210706, 0x023e3521, 0x35233535, 0x36343533, 0x71b70236, 0x317f44ba, + 0x01d2476f, 0x2e6afe96, 0x17a1024e, 0x454f8efc, 0x5da1a111, 0x547b05af, 0x363d5f5d, 0xe97de9e9, 0x9f2b8b51, 0x654c1997, 0xf77dee40, 0x8462aa6c, + 0x824520ab, 0x056b2eab, 0x00170062, 0x153b403e, 0x01090001, 0x08ea624c, 0x55186820, 0x0b2c0919, 0x0909020a, 0x04004d38, 0x4e043904, 0x17233882, + 0x18141700, 0x26091855, 0x2b1f090c, 0x84330101, 0x1121259d, 0x35211123, 0x33210183, 0x08018301, 0xfe6b0448, 0xe7fee882, 0xe7fe1901, 0x01ebfec8, + 0xe2ebfe15, 0x01d584fe, 0x3f010840, 0x53fd6205, 0xfe7ca67d, 0x7c1601ea, 0xad027da6, 0x6e0292fd, 0x00010000, 0x04cbfe4d, 0x00a3063b, 0x403b0031, + 0x021d2038, 0x0a240304, 0x06820309, 0x02010129, 0x01234c03, 0x834b0104, 0x00863f26, 0x02040003, 0x00690403, 0x61010202, 0x20010100, 0x26284e01, + 0x11251e1f, 0x19070514, 0xea4f012b, 0x18f55005, 0x270f1a50, 0xb4c33b04, 0x53e793aa, 0x500eed50, 0x01211010, 0x1ee15081, 0x51090650, 0x002d0511, + 0x00030000, 0x039d00b2, 0x007604fe, 0x3cd58218, 0x40700035, 0x0208096d, 0x14150001, 0x22030202, 0x04050221, 0x06022d2e, 0x0a4c0407, 0x082c8201, + 0x03000223, 0x00010069, 0x02010402, 0x04010b69, 0x04060700, 0x05006907, 0x05090600, 0x010c6906, 0x09080809, 0x08068257, 0x5f08092c, 0x08090800, + 0x1a32324f, 0x32000119, 0x34353235, 0x27292b33, 0x191d1f25, 0x12311a31, 0x060c0e10, 0x01180004, 0x16060d18, 0x1f72012b, 0x0e172e06, 0x26222302, + 0x06222326, 0x023e2707, 0x36159413, 0x35211501, 0x5a3cc101, 0x31203d47, 0x167d183d, 0x514a6946, 0x842a536c, 0x6947220b, 0x3b189749, 0xe0fc7002, + 0x2d237604, 0x422b3c23, 0x383a562a, 0x422a3c38, 0xfe3b572a, 0x222e227e, 0x2b271282, 0x37383956, 0x8341293c, 0xa24b3512, 0x020000a2, 0xf2ffb200, + 0xa704fe03, 0x2c001800, 0x62406500, 0x2b091141, 0x07022324, 0x1a4c0302, 0x0c490401, 0x340b1041, 0x69020107, 0x09070108, 0x07050601, 0x010a6706, + 0x05040405, 0x28068257, 0x0b5f0405, 0x04050401, 0x0513524f, 0x2627282b, 0x20212225, 0x1c1d1e1f, 0x2406411b, 0x21372724, 0x03842135, 0x0a461720, + 0x21152105, 0x39190041, 0xfe2571ac, 0x3b3b01f0, 0xa0018afe, 0x011f7028, 0x3bcffe07, 0x69fe6c01, 0xfb82a704, 0xf3823d20, 0xfb29fb89, 0xa28d1e4b, + 0x1d95a2e1, 0x20058278, 0x29008200, 0x00680101, 0x0484035f, 0x2b50007d, 0x67062029, 0x0c3e0ac3, 0x88fe7801, 0xfe7d04a4, 0x42fea141, 0x01001e04, + 0x9a007300, 0x8b043c04, 0x2b001100, 0xe5462840, 0x05ce4e05, 0x0e000322, 0x20054f46, 0x0c1b6801, 0x3c093e55, 0x05051725, 0x23132507, 0x25270513, + 0x17023725, 0x011cb91c, 0x9ffe5e46, 0xfe5e6101, 0x3c0c82ba, 0x0160bcfe, 0x609bfe65, 0x89010203, 0xa3de77fe, 0xe0a2adaa, 0x8a0176fe, 0xaaada2e0, + 0x30cb82a3, 0x01b20002, 0x03fe035c, 0x001800a0, 0x4049001c, 0x09bf4146, 0x064c0222, 0x240bb641, 0x69020105, 0x05ac4107, 0x794f0682, 0x19192907, + 0x1c190001, 0x1a1b1c19, 0x2009a341, 0x18aa4208, 0x251d9442, 0xe0fc7002, 0x7f41a003, 0x5efe3710, 0xffffa2a2, 0x0d018800, 0x58042904, 0x60064701, + 0x5e050000, 0xed6c0040, 0xb8032305, 0x0f6a5e05, 0x01a02a08, 0x030f03f3, 0x04060262, 0x0aaf4377, 0xdb84a720, 0x5a002024, 0xdd8b5740, 0xdd8f0820, + 0x0501092f, 0x05070400, 0x010a6704, 0x07060607, 0x29068257, 0x005f0607, 0x4f060706, 0xe8831d1d, 0x1d201d25, 0x8f1e1f20, 0x9d0b20ee, 0x1c8743ee, + 0x2022f284, 0x7642e0fc, 0x1bfe3812, 0x7dfea2a2, 0xff00a2a2, 0x011401ff, 0x03c80309, 0x064700d9, 0x5db00405, 0x1783064d, 0xa8fdff2a, 0xe808b102, + 0x42060602, 0x0129ef82, 0x6d012100, 0xdf038f04, 0x8b691800, 0x27132408, 0x18631701, 0x390a36d4, 0x8f000200, 0x690458ff, 0x0f009505, 0x42001300, + 0x01043f40, 0x010a4a05, 0x87684904, 0x0402220a, 0x12556586, 0x00101023, 0x05e05000, 0x0f223a82, 0x01821311, 0x1b060a31, 0x3311012b, 0x33031713, + 0x27032315, 0x85112313, 0x02290801, 0x73c3b281, 0xbeca9ebb, 0xa387b672, 0x7d04a3ac, 0xd70241fe, 0xa145fd1c, 0x021d3bfd, 0x0442fea8, 0x04e2fb1e, + 0x0001001e, 0x208b82a0, 0x228b844c, 0x87344037, 0x01062789, 0x85050005, 0x86950400, 0x88000021, 0x8407207e, 0x8221207e, 0x1521227e, 0x2f7e8621, + 0x18014401, 0x01bc73c3, 0xbe5ffe76, 0xa4edb773, 0x002a7b92, 0x002b0002, 0x04b0045f, 0x8369007d, 0x47818340, 0x05820530, 0x1d24fc86, 0x6dfd9302, + 0xfa850383, 0xa1e1a123, 0x82f086fd, 0x00012ebb, 0x04a5002c, 0x003d044c, 0x402c0016, 0x09e06829, 0xbf510020, 0x0500330f, 0x214f0504, 0x21121122, + 0x1c060623, 0x3634132b, 0xe7823336, 0x07062222, 0x16210582, 0x330b8416, 0x7e2c2626, 0x4d0281d4, 0xa46cb3fd, 0xfc760319, 0x6ba5188b, 0x813a0d83, + 0x71027ed4, 0x917ad181, 0x6691668d, 0xd17a918c, 0xe8000100, 0x9c030901, 0x77c6d903, 0xa661e831, 0xfe450168, 0x146845bb, 0xfafd0602, 0x83456715, + 0x6821080d, 0x710261a6, 0x915da368, 0x3e913e51, 0xa35d9150, 0x2c010100, 0x84030000, 0x03001e04, 0x0e401100, 0x20888200, 0x08148285, 0x1011762b, + 0x2b180602, 0x21112101, 0x58022c01, 0x1e04a8fd, 0x0000e2fb, 0x01ffff00, 0x030fff66, 0x03860048, 0x009e0507, 0x007efe00, 0xbbda1809, 0x0366260e, + 0x04480307, 0x211f857e, 0x1f857602, 0x44760221, 0x65820503, 0x1800c821, 0x2d0baf43, 0x063e4041, 0x00000101, 0x67000103, 0x79180107, 0x03253f63, + 0x03e0fce8, 0x18038520, 0x230c8743, 0x8e00ffff, 0xc0266482, 0x47006205, 0xa3431800, 0x02003b09, 0x5f008f00, 0x7d044c04, 0x0b000700, 0x32403500, + 0x03060507, 0x85030003, 0xf46d0104, 0xadbd1813, 0x0a384611, 0x23112329, 0x01810211, 0x4235fecb, 0x3e460559, 0xe2fb2405, 0x82001e04, 0x001f2b7f, + 0x05920400, 0x06470162, 0x6c18003c, 0x003614d7, 0xfe8e0001, 0x07a90255, 0x000e00d0, 0x082b402e, 0x07020101, 0x7f180001, 0x0e2c1b4d, 0x23250e00, + 0x2b180604, 0x06141101, 0x0821e018, 0x0211353c, 0x4d89a1a9, 0x323b3c68, 0x077f294c, 0x95abf7d0, 0x8a1b1c91, 0x088a1016, 0x00820056, 0xef010130, + 0x220418fc, 0x0f00a906, 0x2e403100, 0xff4d0103, 0x4c022705, 0x02010200, 0x72820386, 0x59000122, 0x00220682, 0x93826101, 0x0151012d, 0x080b0c00, + 0x010f0006, 0x4d06040f, 0x38080bd2, 0x11231115, 0x23033634, 0x3b3f724e, 0x502a5733, 0x06a3ba3a, 0x8a1d1aa9, 0x4a4f1117, 0x5e09a1f6, 0x00009a99, + 0xfeff0101, 0x08a103f0, 0x000a00e8, 0x03214024, 0x02000201, 0x21168385, 0x89835900, 0x09826085, 0x0a000a24, 0xc9861311, 0x15331625, 0x82262622, + 0x85b131c5, 0x6abc7c6b, 0x34f7e808, 0x3892405a, 0xb7087e8b, 0xd6208f82, 0x2e055345, 0x30001400, 0x01042d40, 0x4c010201, 0x58030104, 0x59180cb9, + 0x5a820a06, 0x14001430, 0x05181411, 0x012b1906, 0x07061411, 0xb7841616, 0x23262626, 0x36363235, 0x21086583, 0x5c726e60, 0x7e802bb2, 0x082b807e, + 0x85ecfae8, 0x7914147f, 0x0304fc8b, 0x2f5d45f6, 0x465c2e9a, 0xb0830f05, 0xa8fdff2c, 0x8806a203, 0x25000a00, 0x87822240, 0x03860122, 0x0022cc82, + 0x06825902, 0x61000227, 0x00020000, 0x826d8251, 0x111321c8, 0x1522c884, 0x69820622, 0x36341338, 0x6ba20336, 0x6a01b286, 0x928806bc, 0x4cf85941, + 0x8b7e9f07, 0x1f460038, 0xff012d12, 0x050417ff, 0x0500e808, 0x21402400, 0x18068b43, 0x8208304d, 0x02012267, 0x2362824f, 0x11050005, 0x05306284, + 0x21113311, 0xb2ff0115, 0x09e95401, 0x9dccf6d1, 0x02273282, 0x04a8fd00, 0x85610605, 0x70338443, 0x438813ba, 0x2c05b970, 0x05020002, 0xa8fdacfe, + 0xf79fb908, 0x2c6282e6, 0x6801ffff, 0x480385ff, 0x07030700, 0x43568205, 0x012305e7, 0x477efeb8, 0x682608cb, 0x48037d03, 0x1f85ff03, 0x2105e743, + 0xe743b801, 0x024c0808, 0x4001b200, 0x8003fe03, 0x1c000300, 0x44404700, 0x03020c0d, 0x02181902, 0x4c020504, 0x00010106, 0x00010200, 0x05030067, + 0x07590304, 0x05000201, 0x69050204, 0x04030300, 0x03040061, 0x04055104, 0x14160000, 0x080a1012, 0x1c051c04, 0x03294382, 0x17060811, 0x2115012b, + 0x154e4b35, 0xfce80324, 0x344bf9e0, 0x80032517, 0xc8fea2a2, 0x8210344b, 0x010021e7, 0x20082b4a, 0x32db6e0b, 0x250e5e46, 0x78010c02, 0x3d4a88fe, + 0x05584607, 0x3b086482, 0xff2b0003, 0x05b00458, 0x00130095, 0x001b0017, 0x04514054, 0x4a070203, 0x06020d0e, 0x0c090d49, 0x07000703, 0x06010885, + 0x01860604, 0x010b0001, 0x02000302, 0x03010a67, 0x57030404, 0x03330682, 0x01055f04, 0x4f040304, 0x00001414, 0x18191a1b, 0x18141714, 0x2d0d6795, + 0x2b1d060e, 0x13211501, 0x15330317, 0x6c470721, 0x46152006, 0x270805ee, 0x21373301, 0x30011d02, 0xe887738f, 0x013cecfe, 0x8b85fe50, 0xa39d8272, + 0xf201a3ac, 0xfbfe3cc9, 0x02fe7d04, 0x06fe1c16, 0xfc23ad83, 0x47e7011d, 0xfd2a060b, 0x0100e180, 0x58ffb200, 0xb782fe03, 0x5f002d37, 0x21225c40, + 0x05041b1e, 0x0d131406, 0x02050703, 0x021c1d4c, 0x057f6c06, 0x0507003b, 0x04070504, 0x00060080, 0x05060705, 0x04010869, 0x02030109, 0x0b670304, + 0x058f6c0a, 0x8f6c0783, 0x002d300b, 0x132b2c2d, 0x1123261c, 0x11131111, 0x831f060c, 0x270324be, 0x82352313, 0x213522ad, 0x083b4d37, 0x16323323, + 0x28d68217, 0x17373636, 0x2223020e, 0x32dc8323, 0xfee80307, 0x5073572e, 0xfe3dffd4, 0x426701c4, 0x4d2c553b, 0x4b340735, 0x73552967, 0x16352957, + 0x6946167d, 0x3c05054a, 0x96fe3f01, 0xa22b0482, 0x011dbbfe, 0xa2e1a228, 0x4d3e18f7, 0x3b080530, 0x3c011935, 0x05bdfe1c, 0x2a42263a, 0xa2dd3a56, + 0x000000e1, 0xff2c0002, 0x064c040e, 0x001d000d, 0x404a0027, 0x04012247, 0x05010203, 0x0d4c0204, 0x4a01020c, 0x07021a1b, 0x01010249, 0x042bdc82, + 0x00690301, 0x00050004, 0x71670504, 0x08270c7b, 0x07000701, 0x4f23254f, 0x132305b6, 0x820a1028, 0x213729dc, 0x35022e37, 0x33363634, 0x22058b49, + 0x41210321, 0x072605a7, 0x13233727, 0xe3821614, 0x22234c08, 0x01640606, 0xaa6b201f, 0x81d47e62, 0x619f6ca7, 0xb1dbfefc, 0x01fed601, 0xfd1c021e, + 0x3ba444bc, 0x73436af6, 0x547eb247, 0x738f538a, 0x72be7f15, 0x017ad181, 0xa5fe207b, 0x918afd91, 0x21f28f6b, 0x4cc602d1, 0x020d5b83, 0x848f5872, + 0x826420cb, 0x848420cb, 0x00262bcb, 0x10464049, 0x21050401, 0xcb820301, 0x020e0f28, 0x01014a05, 0xbe834900, 0x04050323, 0x27cf8267, 0x01020106, + 0x07690203, 0x00221682, 0x06825701, 0x5f00012e, 0x01000108, 0x22244f00, 0x112a1111, 0x12200083, 0x0520ca83, 0xc54db182, 0x21132805, 0x17132135, + 0x52021e03, 0x07200583, 0x013fd282, 0x03272634, 0x36363233, 0x3ba4c301, 0x1e1e01f5, 0x6601c3fe, 0x02e7fdb3, 0x689f6c42, 0x82518e5c, 0x1e642bd9, + 0xbbfd1d02, 0x546ddb01, 0xca823bab, 0x8f25b682, 0x7602916b, 0x32ca8391, 0xb07f1e8c, 0x7ad08266, 0xc6028f6b, 0xfd24a060, 0x429057a1, 0x42080a83, + 0x406b003b, 0x14191a68, 0x02030411, 0x03090a20, 0x28010404, 0x04022127, 0x37380005, 0x06042f32, 0x134c0407, 0x4a020212, 0x06023031, 0x00020049, + 0x01020401, 0x00030069, 0x04030004, 0x07050069, 0x82590506, 0x070024d1, 0x82070006, 0x0522080e, 0x06006106, 0x01510605, 0x2d333500, 0x1f23252b, + 0x0f15171d, 0x0005070d, 0x093b013b, 0x012b1606, 0x85421732, 0x82162010, 0x058742da, 0x54072721, 0x172405c6, 0x2223020e, 0x2721f382, 0x07ec4f13, + 0x25c10126, 0x3e253022, 0x2b05d34f, 0x33496947, 0x738d2050, 0x31151896, 0x2506e34f, 0x26302326, 0x0d87213e, 0x21503427, 0x1794738b, 0x270f8414, + 0x3a026947, 0x2415b208, 0x2705a042, 0x0c02111b, 0x0ad3fd1c, 0x2305e74f, 0x2616b108, 0x56291783, 0xfd121b3a, 0x25021df9, 0x22178209, 0x413b562b, + 0x273e0a1f, 0x55405800, 0x03060b0c, 0x24000104, 0x04121d23, 0x4c020702, 0x00020405, 0x0217184a, 0xfb844904, 0xfb830220, 0x02000127, 0x69020103, + 0x05604406, 0x60440682, 0x00013308, 0x1b1c1f21, 0x1516191a, 0x0f111314, 0x27000709, 0x0c412701, 0x17162405, 0x8b031713, 0x056444ff, 0xab432120, + 0xc101290b, 0x921f4e31, 0x171b9b73, 0x4634ce84, 0x26284a69, 0xfe73012c, 0x83738a61, 0x3201f9fe, 0x1f3c2339, 0x472b1984, 0x19a00369, 0x1c1f0211, + 0x4f0cc0fd, 0x0a2b05ca, 0xfcfda2a4, 0xa2e7011d, 0x852215d3, 0x820020fe, 0x00033700, 0x043fff3a, 0x00ab0584, 0x001f001b, 0x40500025, 0x0401134d, + 0xb8821f05, 0x124c0223, 0x0ec54211, 0x03010731, 0x01020109, 0x0a670203, 0x00010208, 0x83570100, 0x00013d07, 0x0001065f, 0x214f0001, 0x20232420, + 0x11252125, 0x1121212a, 0x0b121111, 0x172b1e06, 0x20097144, 0x20ca8223, 0x82e48432, 0x065308fc, 0x01212306, 0x03272633, 0x21373632, 0xa996d007, + 0xfe90d67f, 0x91bd019a, 0x02b3fd01, 0xde2a2a4d, 0x7d66d492, 0xfe81d47e, 0xfa3b01f4, 0x6ba2691e, 0xb1fe18a5, 0x014bc18f, 0x91f2911b, 0x010791f3, + 0x9bfe4975, 0x8180d13b, 0x14027ad1, 0xbcfd467b, 0x84f2668c, 0x822c20cf, 0x847520cf, 0x822120cf, 0x544908cf, 0x01245140, 0x01020405, 0x4c020506, + 0x00020b0c, 0x0601014a, 0x00010149, 0x0202070a, 0x67020003, 0x0b030108, 0x05040209, 0x00670403, 0x05060605, 0x05050057, 0x06005f06, 0x224f0605, + 0x221c1d22, 0x20252225, 0x1d211c1f, 0x24d28421, 0x060c2813, 0x26d3831d, 0x34352626, 0x46333636, 0x3245050f, 0x21333405, 0x27222115, 0x07062213, + 0x16013721, 0x96d03717, 0x827b64d1, 0x0a013fc1, 0x85ae92da, 0x6c0191db, 0x048f3efe, 0xb3fd4d02, 0x6c562a2c, 0x4b0119a4, 0x1d25fe91, 0xd3827165, + 0xcf3c5d23, 0x24c8827f, 0xfe496e01, 0x3fdc82db, 0x020891f2, 0xf3668dff, 0x46787cfe, 0x010000be, 0x58ffc800, 0x9505e803, 0x4c001b00, 0x11124940, + 0x23071446, 0x08060107, 0x0626dc82, 0x01096705, 0x0e460a04, 0x24e38205, 0x02000002, 0x46078357, 0x1b270b0e, 0x191a1b00, 0x45111718, 0x11210634, + 0x1010460d, 0x46056b44, 0x004606dd, 0xfe3c2f09, 0x3c6701c5, 0xce015dfe, 0xd753735b, 0xef45fdfe, 0xa2e02c0e, 0x5201a1e1, 0xa1cafe1c, 0x83e0a2e1, + 0x005026ab, 0x0460047a, 0x0533564e, 0x060c0d2d, 0x00030403, 0x14171d1e, 0x43010204, 0x162c062b, 0x49020215, 0x00000104, 0x03000103, 0x10469118, + 0x1b00012d, 0x0a101219, 0x01210008, 0x4b060521, 0x9e18050b, 0x03220f93, 0xbe461327, 0x9a013d08, 0x5b214f31, 0x3c1e6a73, 0x275e3e23, 0x7c571f81, + 0x22503258, 0x1e767367, 0x5c40213b, 0x26081082, 0x2b037c56, 0x5601161d, 0x1b73fe1d, 0x40485f26, 0x214f7a3f, 0x1e7efe19, 0x2218b801, 0x3e3f485f, + 0x0000507b, 0x42000200, 0x172e0737, 0x39002000, 0x011b3640, 0x01020203, 0x35420304, 0x49042508, 0x05000101, 0x38053848, 0x04040300, 0x03005703, + 0x005f0403, 0x4f040304, 0x11212126, 0x06062813, 0x111a421c, 0x16420120, 0x14032805, 0x23011716, 0x42060622, 0xfe210e15, 0x0611428a, 0x3f4cdb28, + 0x54b35901, 0x0e42538a, 0x8afd2c0f, 0xc4010891, 0x022b8c50, 0x828f5842, 0x07af43a7, 0xa7821720, 0x37403a23, 0x2991820f, 0x0201011b, 0x0d0e4c02, + 0x73460302, 0x00032205, 0x21bd8202, 0x69460567, 0x2a068205, 0x045f0001, 0x00010001, 0x822a254f, 0x861220a9, 0x352323a8, 0x93430133, 0x26342e11, + 0x32330127, 0x96d03636, 0x01d67fa9, 0x108e4378, 0x4e3d0226, 0xb6a8fe41, 0x1b23a985, 0x43760291, 0x01260c8b, 0x2b8d51cc, 0x1f47bcfd, 0x07db5006, + 0x17001326, 0x46404900, 0x26099149, 0x0007010a, 0x49008507, 0x0920068e, 0x20055541, 0x052d4508, 0x2d450682, 0x00002508, 0x14151617, 0x0aee9e18, + 0x49060b21, 0xde470786, 0x03240806, 0x15231327, 0x33131123, 0x44012137, 0x738f4101, 0xfe4c0187, 0xb4013c88, 0x728b21fe, 0xa4a4ae82, 0xeafe3cda, + 0x23128049, 0x00e180fd, 0x01280082, 0x91007800, 0x4e043804, 0x202d4b7e, 0x060a7b09, 0x37052258, 0x01ad0211, 0xae75fe8b, 0x870179fe, 0x6ffe4e04, + 0x0172fe9e, 0x91019e8e, 0xdc295f84, 0xd4031d02, 0x0300c502, 0x1c537e00, 0x2706794b, 0x08fdd403, 0xa8a8c502, 0xf1269b85, 0xbf03ff00, 0x9b82cf03, + 0x04b30637, 0x2b320100, 0x17071701, 0x27072707, 0x17372737, 0xf3744b03, 0x220287f3, 0x8776cf03, 0xf576210c, 0x03283c82, 0x5600dc00, 0x8d04d403, + 0x0f303b82, 0x42001b00, 0x01063f40, 0x03010000, 0x07690100, 0x022b0582, 0x67020304, 0x05040108, 0x82590405, 0x05043306, 0x04050061, 0x10115105, + 0x00010c0c, 0x1b101517, 0xc3631b11, 0x05072505, 0x0b010b00, 0x1806bc59, 0x25088fbe, 0x35211501, 0xc6183201, 0x022509dc, 0x53533b58, 0x2503823b, + 0x08fdb701, 0x0c867c01, 0x528d042f, 0x51513c3a, 0xfe523a3c, 0xfe9f9f34, 0x210d82b0, 0x0d825353, 0x02239f82, 0x1801c800, 0x200787ac, 0x06654e07, + 0x2605a150, 0x02030105, 0x82570302, 0x02032606, 0x0302005f, 0x10407a02, 0xa44c0920, 0x50838305, 0x8038088c, 0x7efea2a2, 0x0100a2a2, 0x3200c800, + 0xaa04e803, 0x3c001300, 0x0d0e3940, 0x2629c077, 0x11130013, 0x82111113, 0x42092003, 0x03200564, 0x08098749, 0x3307172b, 0x03072115, 0xb011fee8, + 0x01a58d69, 0x75fe8506, 0x68b2eb01, 0xf6feaa8f, 0xa2fe0185, 0xee3cd6fe, 0x01a2e0a2, 0xa2f2382a, 0x248382e0, 0x043c00aa, 0x08838208, 0x06000628, + 0x010003b3, 0x01012b32, 0x01270115, 0x03050101, 0x6305fd03, 0x47fdb902, 0x24feaa04, 0x8b23feb5, 0xa901ab01, 0x338e0000, 0x0806eb41, 0x07010123, + 0xad033501, 0x0247fd5b, 0x05fd63b9, 0xfe8faa04, 0x8c56fe57, 0x00b4dd01, 0x00cb0002, 0x04e30300, 0x2abb7267, 0x85170621, 0x02093b87, 0x01352115, + 0xfdce0215, 0x7f024a32, 0x180381fd, 0x670409fd, 0xfec3bbfe, 0xa38297c9, 0xd7fc0c24, 0x9282a3a3, 0x172263b8, 0xb7820501, 0x64820120, 0x499a032b, + 0x7f0281fd, 0x0231fd49, 0x296383f7, 0xfcf0fe97, 0xc337019c, 0x618381fd, 0xdc000222, 0xd430c382, 0x0b003a04, 0x64000f00, 0x5022b04b, 0x04214058, + 0x080f0219, 0x02020039, 0x01085f05, 0x4d3b0505, 0x07070109, 0x06005f06, 0x4e063906, 0x891f401b, 0x251e8223, 0x05070200, 0x218b6702, 0x16405926, + 0x00000c0c, 0x7e05c042, 0xb443092c, 0x08a0830e, 0x01b10231, 0xb2ddfe23, 0x2301ddfe, 0x08fdd501, 0xd3fe3a04, 0x01d9fe9d, 0x2d019d27, 0xa1a167fc, + 0x00020000, 0x033201b2, 0x00b503fe, 0x00320018, 0x575b405e, 0x222b093d, 0x04050221, 0x06022e2f, 0x574c0407, 0x04220c47, 0x0c4b0201, 0x5a092006, + 0x0c4b09f3, 0x191a2d07, 0x2a2c0001, 0x1d1f2527, 0x321a3219, 0x20093058, 0x1841570a, 0x180c8c4f, 0x5908274d, 0xd75a19d6, 0x09af4f0d, 0x03694723, + 0x109f4fb5, 0x2285fe2d, 0x2a3c222e, 0x3a562a42, 0x4a222d22, 0x003506f0, 0x00010000, 0x04c20150, 0x002b0360, 0xb13f0019, 0x40446406, 0x28f98234, + 0x15160003, 0x02010202, 0x1abd474c, 0x0e111331, 0x0004060c, 0x05190119, 0xb12b1609, 0x5b440006, 0xc0890cb2, 0x6a4b9a25, 0x472e4c53, 0x4b1807b3, + 0x03240b86, 0x3c503c2b, 0x1805a947, 0x84086a4d, 0x01dc2c93, 0x02d40303, 0x000500c1, 0x83224025, 0x038629a4, 0x01010201, 0x01035702, 0x510b476b, + 0x09340578, 0x11012b18, 0x35211123, 0xfdacd403, 0xfec102b4, 0x9f1f0142, 0x002d4682, 0x04880001, 0x0628041e, 0x00060090, 0x26db8427, 0x0001031c, + 0x824c0102, 0x02002745, 0x00010185, 0x27827600, 0x06000625, 0x82041112, 0x22c38445, 0x82012301, 0xae023502, 0xfecb7a01, 0xc9fbfef9, 0x90067a01, + 0xce018efd, 0x720232fe, 0x03392c82, 0xeb00f2ff, 0x0304bd04, 0x27001b00, 0x4b003300, 0x242c4840, 0x05040b19, 0x32568204, 0x0a000208, 0x04030906, + 0x69040005, 0x01050107, 0x82590501, 0x01052206, 0x3ebb8261, 0x29510105, 0x011c1d28, 0x282f3100, 0x21332933, 0x1d271c1f, 0x0f151727, 0x0007090d, + 0x591b011b, 0x16200558, 0x2105304b, 0xf5652622, 0x36420809, 0x17163233, 0x22053636, 0x32331415, 0x2e373636, 0x06220502, 0x021e0706, 0x34353233, + 0x88718803, 0x6e863c3c, 0x3237926c, 0x8871748c, 0x6e853c3b, 0x323b8f6c, 0x8a1cfe8b, 0x394c388a, 0x4f37161a, 0x08861302, 0x048a3b2d, 0x6eb46b03, + 0x7f69b36f, 0x8792697c, 0x93683309, 0x4df7f794, 0x692f447b, 0x7b4d024a, 0x4a6a2f43, 0xe783f7f7, 0xfe31002d, 0x058004f9, 0x0019001f, 0x832d0023, + 0x01123be7, 0x1e2b0102, 0x0203031d, 0x03000105, 0x10114c03, 0x044a0102, 0x49000203, 0x064d0100, 0x01052605, 0x03000003, 0x23068259, 0x04610003, + 0x00362482, 0x01242551, 0x252d2400, 0x0e1f212d, 0x0119000c, 0x16060619, 0x2b65052b, 0x35022305, 0xc5823e34, 0x17371730, 0x15121607, 0x01020e14, + 0x13171614, 0xde822326, 0xe9820120, 0x34354508, 0x16032726, 0x2c2c5702, 0x89509b4f, 0xc89755ab, 0x4d2e3072, 0xaa884f9b, 0xfec99756, 0xee505e2f, + 0x9f671f1e, 0x615f0159, 0x505d609f, 0x07181beb, 0x43f92ef6, 0x73a30901, 0x085598c8, 0x43f52df0, 0x72a3f8fe, 0x02340b82, 0x33b97128, 0x6c05e702, + 0x6c02feb5, 0xb96f6fb5, 0x051afd33, 0x2b051f42, 0x04470075, 0x001e043b, 0x401f0006, 0x231a1b42, 0x012b1806, 0x39061742, 0xae7301c8, 0xcafecbfe, + 0x047101ad, 0x0329fc1e, 0x03b8fc48, 0xff0000d7, 0x4b8600ff, 0x06470127, 0x04000037, 0x07b35b65, 0x04b80123, 0x05e75365, 0x0001003c, 0x04480085, + 0x008b042b, 0x402a0015, 0x01010327, 0x04860102, 0x02020001, 0x06825900, 0x61020033, 0x02000200, 0x11000151, 0x060a0c10, 0x01150005, 0x06184b15, + 0x08086655, 0x06062221, 0x11231115, 0x02363634, 0x7ed48158, 0x548a53a2, 0xa2538a54, 0x8b04d47e, 0xfd81d47e, 0x82700290, 0x8314820e, 0x831f8209, + 0x00852297, 0x20738218, 0x2097825b, 0x20978239, 0x20978aa3, 0x2c9788a3, 0x0455fe8e, 0x00a90622, 0x403a001a, 0x2b978237, 0x02041200, 0x01110103, + 0x4c030302, 0x01259983, 0x69010003, 0xfbfe1800, 0x00012b0e, 0x0d0f1416, 0x1a000608, 0xa7861a01, 0x26071725, 0x82222326, 0x0c4157a2, 0x570cd756, + 0xe056094c, 0x04fa2109, 0x23075457, 0x9a99fc05, 0x2909df57, 0x9b020602, 0x01000000, 0x9f823600, 0x62057a30, 0x2a000b00, 0x07082740, 0x00040304, + 0x94820449, 0x57030022, 0x03290682, 0x01025f00, 0x00030002, 0x302c824f, 0x130b000b, 0x06051113, 0x15012b19, 0x11071123, 0x31038221, 0x7a043523, + 0x80febba5, 0x6205a7bd, 0x17a7f99d, 0x04847006, 0x2e829d20, 0xa1000136, 0x0d0414ff, 0x0c006306, 0x36403900, 0x0303040a, 0x01090001, 0x4c254f82, + 0x0100010b, 0x8265844b, 0x18672069, 0x820f6d63, 0x000c233b, 0x6a87110c, 0x01213d08, 0x15210107, 0x01013521, 0xfd0d0435, 0x04b6016e, 0x95024bfe, + 0xe70194fc, 0x630619fe, 0x9039fda0, 0xa0a149fd, 0x1303fc02, 0x000100a0, 0x05000028, 0x00c70677, 0x402d0008, 0x0506072a, 0x01217382, 0x0a07574c, + 0x01035729, 0x5f000202, 0x84020000, 0x000822d3, 0x05a45608, 0x15012208, 0x01230121, 0x05010137, 0xfe8ffe77, 0xb2fed949, 0x010b01aa, 0x9fc706a1, + 0x9203d8f9, 0x06f8fc39, 0x08978204, 0xaa000127, 0x070455fe, 0x1e001e04, 0x30403300, 0x0202081d, 0x02040e01, 0x4c020200, 0x03051213, 0x03044900, + 0x3b010102, 0x2110824d, 0x2f826100, 0x4e003f22, 0x2d820582, 0x2a182422, 0x2405b569, 0x07171614, 0x06844426, 0x16162729, 0x11071115, 0x51141133, + 0x380805a7, 0x21d40311, 0x1a0fb312, 0x4d952f04, 0x0c27564d, 0x14c0bd0f, 0x81584b47, 0xfd1e042b, 0x40af6738, 0x28641b18, 0x372c5b4c, 0xfe2b5f38, + 0xc90517e3, 0x9166b0fd, 0x023d5b4d, 0x31cc82fc, 0x04e7ffa6, 0x007f0509, 0x00230016, 0x21314034, 0x89820213, 0x01164c29, 0x01004a01, 0x82020104, + 0x006929f5, 0x03000003, 0x03030059, 0x03359a83, 0x17185100, 0x23171c1e, 0x27262318, 0x2b180605, 0x12041601, 0x9e891811, 0x0026240e, 0x7a220127, + 0x45080747, 0x01262635, 0x3a01fa42, 0x89c46993, 0x6575c375, 0x91606aad, 0xe0fe112f, 0x5b2c01fb, 0x76697f7f, 0x7b3c027f, 0xd8427f05, 0xfdfea7fe, + 0x6b8ff79c, 0xc7848dc9, 0xd0425770, 0xfd431501, 0x8c8e92dc, 0x33bbc1a4, 0xa3584d54, 0xb1022306, 0x8f82e808, 0x18401721, 0x3012137e, 0x012b1706, + 0x02132311, 0x0801b2b1, 0x0bc0f4e8, 0x23338440, 0x6004e2fe, 0x0b2f3382, 0x0d401000, 0x00020405, 0x00000049, 0x83011a76, 0x142f082c, 0x07171612, + 0x35020226, 0xb1023311, 0x688fc060, 0xb276e2a1, 0xfec9bc02, 0x6884fbd6, 0x011a0185, 0x2c06e259, 0x00020100, 0x6004a8fd, 0x84009606, 0x07082443, + 0x834a0002, 0x84112043, 0x23113b43, 0x12123411, 0x06061737, 0xb1b10202, 0x68a1e275, 0x0260c08f, 0x05ecfabc, 0xbc18e214, 0x2f82094a, 0x01ffff23, + 0x06db59ff, 0x42064722, 0x2509a35b, 0x5000ffff, 0xd784e2fe, 0x43064722, 0x2f82178d, 0x9606b026, 0x44064700, 0x00381789, 0xff200005, 0x059104d5, + 0x00030089, 0x001f0013, 0x003b002f, 0x01564059, 0x0325a782, 0x02070501, 0x3417824c, 0x01030401, 0x04010a69, 0x0706010b, 0x09690604, 0x00020201, + 0x062b6661, 0x05070723, 0x052b6661, 0x30312908, 0x14152021, 0x35370405, 0x3b313b30, 0x2f202729, 0x191b2f21, 0x1f151f14, 0x13040b0d, 0x090c1305, + 0x17012b16, 0x32132701, 0x23080547, 0x36343526, 0x26062f7c, 0x35363233, 0x9a012634, 0xd7033b1b, 0x7378fc76, 0x44835cf4, 0x5d5c8344, 0x83464683, + 0x48493a5d, 0x47473a3b, 0x1492ee01, 0x46890530, 0x054692fa, 0x57915760, 0x59599257, 0x08825792, 0x607e4608, 0x60685e61, 0xfd5a6766, 0x58915778, + 0x58589356, 0x92575693, 0x645e7e57, 0x6560685d, 0x00005a68, 0x24000700, 0x8d04e8ff, 0x0b007b05, 0x1c001800, 0x34002800, 0x4c004000, 0x6d407000, + 0x0301011a, 0x04021b1c, 0x09144101, 0x0e060f32, 0x0a110403, 0x09080310, 0x0d690804, 0x00020201, 0x0806f769, 0x09010b36, 0x07610509, 0x3f050501, + 0x41424e05, 0x292a3536, 0x0c0d1d1e, 0x46480001, 0x4c424c41, 0x40353a3c, 0x2e304036, 0x342a3429, 0x281d2224, 0x1214281e, 0x180d180c, 0x2005a54d, + 0x05626712, 0x2308a54d, 0x15062217, 0x26059d43, 0x05263435, 0x18270117, 0x18170792, 0x0817c298, 0x70600122, 0x73709292, 0x4b739696, 0x3232112a, + 0x02292949, 0xd1fb30ab, 0x713a0131, 0x73719393, 0xa0029494, 0x33082086, 0x2c4946fe, 0x294a492c, 0x4be30129, 0x474b2c2c, 0x7b052b2b, 0x917f7d94, + 0x947d7f91, 0x2941616f, 0x4166314d, 0x75ed633f, 0x7c7567fe, 0x91807c95, 0x947d8091, 0x6f250787, 0x693f4062, 0x871e8267, 0x00002e07, 0x6901ffff, + 0x4703dafe, 0x0703bc00, 0xcfa81805, 0x251f8312, 0x4703d202, 0x1f85b404, 0x08101b5b, 0x9c000429, 0x15040601, 0x0b005104, 0x23001700, 0x49002f00, + 0x02094640, 0x03000308, 0x00040101, 0x060b6901, 0x0504030a, 0x84590405, 0x05043908, 0x05010761, 0x25510504, 0x0d181924, 0x2b00010c, 0x252f2429, + 0x181d1f2f, 0x0ee40a19, 0x16060c23, 0x0bf84e2b, 0x044f2120, 0x8a13200a, 0x2a178b0b, 0x513d8703, 0x523b3d51, 0x86ddfd52, 0x863b2008, 0x99022107, + 0x04290886, 0x3b3a5351, 0x3a3b5454, 0x21078753, 0x118fd1fd, 0xad3af382, 0x01038700, 0x0602a704, 0x0000be04, 0x2c000200, 0x4c040000, 0x15009204, + 0x49611900, 0x13112323, 0x49612621, 0x0521420f, 0x21152126, 0x13262622, 0x4c610682, 0x052f4807, 0x4d022308, 0xd481b3fd, 0xe703387e, 0xc60219fc, + 0x917ad181, 0x54548f58, 0x7a915790, 0x8f4bfed0, 0xffff0000, 0x83826400, 0x83828420, 0x4e064722, 0x210a1f44, 0xab4b0001, 0x4b483009, 0x585009b0, + 0x01001840, 0x71010000, 0x82020103, 0x0bc946ba, 0x17401b22, 0x2516e346, 0x000b4059, 0x475d0000, 0x21153609, 0x03112311, 0xacb4fdd4, 0xfe9fc102, + 0xffbe01e1, 0xfe0f01ff, 0x06b744f0, 0x7f890f20, 0x2705e744, 0xe808da03, 0x10064700, 0x0e26178c, 0xb102a8fd, 0x17828806, 0x178c1120, 0x20091745, + 0x0cff4412, 0x17ffab22, 0x13205f86, 0x4782178d, 0x6106b022, 0x14204782, 0xa020f78c, 0x2008eb60, 0xdb4e182a, 0x0ade6026, 0x03440125, 0x67f8fc08, + 0x2c200c17, 0x24062b63, 0x40220015, 0x0c4c181f, 0x26212617, 0x06042321, 0x0a21631a, 0x410bd741, 0x1c6314d3, 0x8f582805, 0x588f5454, 0x82d17a91, + 0x00023c59, 0x0458ff2c, 0x00f6044c, 0x00210015, 0x193a403d, 0x03040218, 0x1e1f4c01, 0x89490602, 0x03002c79, 0x67030204, 0x06040105, 0x82570406, + 0x06042c06, 0x0601075f, 0x134f0604, 0x83131311, 0x06082288, 0x2288961e, 0x68372113, 0x27220597, 0x94942137, 0xc0013830, 0x01399167, 0x6443fe68, + 0x97fe3996, 0x72422a03, 0xe7fd280c, 0x8f6148a9, 0x425e4aa8, 0xa5280577, 0x3d048404, 0x04064700, 0x210c9741, 0x17870064, 0x17895820, 0x00020023, + 0x20db8264, 0x20db8d84, 0x18db8700, 0x220a0e47, 0x9f000104, 0x140127db, 0x21230606, 0x8c4c2135, 0x84262005, 0x1616220a, 0x28db8a01, 0xd47e8404, + 0x02b3fd81, 0x0545434d, 0x81240983, 0xe0fb7ed4, 0x8225dd8f, 0x57917ad0, 0x06814190, 0x87e4fc21, 0x000032dd, 0x49000100, 0x67047b00, 0x07002704, + 0x23402600, 0x0e286300, 0x02030422, 0x0d1f5118, 0x2b190638, 0x15213513, 0x11231121, 0xfe1e0449, 0x8503a443, 0xf6fca2a2, 0xa3430a03, 0x045f2806, + 0x007d0410, 0x41570647, 0x03280a13, 0x0bff8e00, 0x9806c003, 0x2706335f, 0x14444047, 0x4b010401, 0x2708bc5c, 0x00050106, 0x04050304, 0x17add718, + 0x83820720, 0x1b4f0028, 0x1318191a, 0xbf5c1311, 0x060b2a05, 0x27052b1f, 0x33352337, 0x08038313, 0x2127214f, 0x33031713, 0x23012111, 0x23153303, + 0x7a012103, 0xa67e34a2, 0x72d4ac77, 0x01176ffe, 0x43a24fd0, 0x01f9fda5, 0x78710740, 0x180178a0, 0x9bca2bf5, 0x019dd301, 0x36019cbb, 0xfaf9fe2f, + 0xfec6049e, 0x2dfe9d45, 0x00030000, 0x04060188, 0x08cf4529, 0x3b403e22, 0x08dea318, 0x07040828, 0x03030203, 0x08845902, 0x61030224, 0x0f820105, + 0xc8455120, 0x11c24505, 0xc2450920, 0x17ce450e, 0x45580221, 0xfe21069c, 0x210886f8, 0xae45c102, 0x11a64510, 0xb222ab83, 0x236d6b00, 0x004a2508, + 0x09824085, 0x2b12236d, 0x09023a3b, 0x02464708, 0x4c060b0a, 0x240c1c6c, 0x69020104, 0x0939520d, 0x08060033, 0x00690605, 0x090a0b09, 0x08010e59, + 0x080a0b00, 0x370e820b, 0x00610a09, 0x510a090a, 0x191a3233, 0x42440001, 0x36383e40, 0x4a334a32, 0x2013386d, 0x255c520f, 0x6d1f4e6d, 0x8b52314a, + 0x0a7c6d0d, 0x2b265f6d, 0x222e227e, 0x2b412a3c, 0x38373956, 0x2305726d, 0x03000000, 0x3508bb68, 0x000b0007, 0x4040000f, 0x09070a3d, 0x03050805, + 0x06850300, 0x2b430204, 0x01002b0e, 0x0c4f0100, 0x0008080c, 0x967a0c00, 0x0700270a, 0x11110700, 0x7d450b11, 0x1121230a, 0x03831123, 0x0149032b, + 0xa399fe67, 0x01a328fe, 0x098b45e1, 0x69e2fb21, 0xe34509b3, 0x42cf6206, 0x4505f145, 0xa12607f5, 0x04fda1e1, 0xcb66001e, 0x66bf820c, 0xff3114cb, + 0x004900ff, 0x04670461, 0x0647010d, 0x0400005d, 0x0ac34f88, 0xc34f8820, 0xffff3605, 0x3b01f2ff, 0x5304bd04, 0x35060603, 0x08005000, 0xb00300b1, + 0x291c8550, 0x007e0001, 0x0440042c, 0xa75600b8, 0x01133b08, 0x01350115, 0xc2037e01, 0x09033efc, 0xb804f7fc, 0xfeb314fe, 0x8f01b713, 0x6f828f01, + 0x2f827020, 0x2f823220, 0x67064722, 0x2b0c7345, 0x04dc0173, 0x03cd053c, 0x00f90507, 0x10c3c518, 0x50363782, 0x6004e403, 0x07034d05, 0x00003206, + 0x09002202, 0xb80100b1, 0xaf682202, 0x5f260808, 0x5004c6ff, 0x03009d05, 0x1b000f00, 0x0e405d00, 0x02030103, 0x01014c01, 0x01024a00, 0xb04b4903, + 0x4058502b, 0x0f820017, 0x01046135, 0x4d1a0000, 0x02020105, 0x03006103, 0x4e031b03, 0x8315401b, 0x02012414, 0x8b690100, 0x40592617, 0x05101113, + 0x05cc5804, 0x04090b27, 0x060f050f, 0x084b4c07, 0x4308244b, 0x32080bfe, 0xfd977303, 0x577b953f, 0x5b577575, 0xac027875, 0x57767657, 0x0577745b, + 0x6ffa469d, 0x7d3f0546, 0x8b828584, 0xfc837e7c, 0x84847dbc, 0x817b8b82, 0x82040080, 0x04002601, 0x004b0575, 0x25bb840b, 0x40680027, 0xa8820d0b, + 0x020e0f26, 0x4c020203, 0x1a20ba85, 0x0620ba84, 0xa444ba84, 0x20bd850a, 0x0dc84418, 0x8305bf44, 0x40592a1a, 0x111c1d1b, 0x23000110, 0x05145421, + 0x111b1023, 0x05e94b1b, 0xc8820920, 0x240b6e4a, 0x27011705, 0x167e4a25, 0x7558fb24, 0xce825875, 0x4c2a0327, 0x014a35fc, 0x21d486b4, 0x17844802, + 0x4b20dd82, 0x8625d787, 0x6a2ffd6c, 0x89db8715, 0xceff21e3, 0x0a235b18, 0x2f002b2f, 0x50405300, 0x03000100, 0x69030105, 0x07306e0a, 0x07010b2f, + 0x07020600, 0x01096706, 0x02000002, 0x08ee4d59, 0x51000238, 0x28282c2c, 0x00011415, 0x2f2c2f2c, 0x2b282d2e, 0x292a2b28, 0x5b181d1f, 0x15232e18, + 0x82053521, 0x0b5b1803, 0xfe5e2821, 0xfee2011e, 0x1865241e, 0x180a2f5b, 0x3914fd5a, 0x8484cc02, 0x008484f3, 0xffff0000, 0x4a007300, 0x3b043c04, + 0xf9050603, 0xa142b000, 0xb0ff2405, 0x832b35b0, 0x00782a1b, 0x03380441, 0x060603fe, 0x361b8d26, 0xe6ff0100, 0xca040000, 0x0e003e05, 0x11401400, + 0x06090d0e, 0x4f060102, 0x3808059b, 0x17060117, 0x0701012b, 0x27262601, 0x06112311, 0x27010706, 0x72025802, 0x27dcfe72, 0x1aba1a3e, 0xdcfe273e, + 0xfd3e0572, 0x0e017ecc, 0xfb314422, 0x303104cf, 0xf2fe2344, 0x2890827e, 0x00450001, 0x046b0490, 0x385782b3, 0x2eb04b5a, 0x0e405850, 0x01000102, + 0x0002010e, 0x01014c02, 0x401b4902, 0x270c8310, 0x07084c01, 0x4a000302, 0x59201283, 0x15212885, 0x20238200, 0x7b541886, 0x401b230f, 0x18820009, + 0x00854108, 0x59760202, 0x331111b5, 0x2b190603, 0x06012737, 0x37252706, 0x03071305, 0xc4373626, 0x3ef1027f, 0x90fe4055, 0x2c42030a, 0x080317b5, + 0x027f900e, 0x03050cf3, 0xfc2cac13, 0x83010baf, 0x003c6435, 0x25265882, 0x8b042700, 0x5418fd04, 0x062027f3, 0x0ff35418, 0x61022608, 0xd6fd2a02, + 0x2206018a, 0xb6fc2947, 0x382e4a03, 0x04fafe2c, 0xfd95fdfd, 0x20017595, 0xa61a4326, 0x0131351d, 0x06074120, 0x6b044d24, 0x07417004, 0x21ea820a, + 0x04820d00, 0x0e4c0228, 0x1b4a0001, 0x0b821040, 0x84010021, 0x080d250c, 0x49020307, 0x85080741, 0x7f1e82ef, 0x07410a97, 0x313c080d, 0x06031511, + 0x01132b19, 0x13372626, 0x27050317, 0x17163625, 0xee02c401, 0x1703080e, 0xbefc2cb5, 0x4070010a, 0x0ffd3e55, 0x0dfd7004, 0x0135643c, 0xaffc0a82, + 0x0313ac2c, 0xf3020c05, 0xff279f83, 0x04bbffe6, 0x82fa04ca, 0x401b319f, 0x08090d18, 0x01050607, 0x01490007, 0x76000001, 0x42082082, 0x020e000e, + 0x012b1606, 0x37363611, 0x01011701, 0x16160137, 0xb5021117, 0x01273e1a, 0x8efd7224, 0x01728efd, 0x1a3e2724, 0xcefbfa04, 0x01234431, 0xccfd7e0d, + 0xfe7e3402, 0x314423f3, 0x01003204, 0x8f004500, 0x21f582ff, 0x5f820202, 0x824c0221, 0x83ff83d9, 0x84012010, 0x0708240c, 0x89000302, 0x000223ff, + 0x52188502, 0xff830f68, 0x00201785, 0x82090742, 0x36363899, 0x25070517, 0x16133703, 0xec030706, 0x3e0ffd7f, 0x70014055, 0x42befc0a, 0x04240508, + 0x0dfd7f70, 0x28050942, 0xfe0a5103, 0x3c64357e, 0x21008200, 0x0b420001, 0x010e230c, 0x89830001, 0x0d4a0023, 0xf248180c, 0x15112512, 0x2b180602, + 0x06206c82, 0x2f06c16f, 0x01070117, 0xfe8a4f02, 0x2e382cfa, 0xb6fc4a03, 0x07217018, 0x75fd0422, 0x0d0f7018, 0x13436b85, 0x010d2311, 0x73820102, + 0x4c020229, 0x4900010e, 0x8310401b, 0x4c01270c, 0x0307080d, 0x12834a02, 0x200b0b42, 0x0fac5586, 0x420d0b41, 0x2532060b, 0x07161601, 0x25132703, + 0x26060517, 0xec030127, 0x0c4212fd, 0x42033405, 0x4090fe0a, 0xf1023e55, 0x3cf30290, 0x7dfe3564, 0x4251030b, 0xfd21050b, 0x28a0820d, 0x005aff01, + 0x04560559, 0x058d4fc8, 0x00010d30, 0x194c0101, 0x040e0f18, 0x0b0c4a01, 0x55180102, 0x1c251219, 0x18060216, 0x6d53182b, 0x16570807, 0x07171716, + 0x07170101, 0x21070606, 0x27272626, 0xfe560537, 0x21d38a09, 0x3cfc2849, 0xd9234728, 0x0103fe8a, 0x2dd98bfc, 0xc4032e37, 0xd52d372e, 0xfd92028b, + 0x26ed76c7, 0x431a1a43, 0x0276ed26, 0x76360239, 0x1d3531ea, 0xea31351d, 0xff010076, 0x047ffee6, 0x82cb06ca, 0xb306228f, 0x05875e0d, 0x42058d44, + 0x98440c8c, 0x0f99420e, 0x0805a744, 0xfdcb0633, 0x0e017fcc, 0xf9314423, 0x234331cf, 0xfd7f0e01, 0x7f3402cc, 0x4423f2fe, 0x31310630, 0xf2fe2344, + 0xff00007f, 0x002700ff, 0x04800473, 0x06470071, 0x0c7f4d82, 0x17823020, 0x17828920, 0x0a000330, 0x2f403200, 0x00030104, 0x03020105, 0x04820106, + 0x00004c32, 0x00850003, 0x86010201, 0x02020300, 0x03005703, 0x0807fc5f, 0x1114113d, 0x1a060410, 0x1133012b, 0x11020923, 0x03213521, 0xfdadaddc, + 0xfd0102db, 0x017afefe, 0xfc710486, 0xfeb50302, 0x014afe4a, 0x0000a663, 0xff380001, 0x048204c2, 0x00180042, 0x822d4030, 0x1801210f, 0x02266982, + 0x0301174c, 0x58180049, 0x77821150, 0x264f0325, 0x84212621, 0x33112163, 0x2207d34d, 0x54333523, 0x23280753, 0x40020111, 0x416c41ab, 0x933f0282, + 0x6eb97093, 0xab70b96e, 0x0803f8fd, 0x6d41b0fe, 0x3f6c4242, 0x71b96ead, 0xfe6db972, 0x82a301b0, 0x822e20ff, 0x8278207f, 0x0647227f, 0x82ff8983, + 0x003a2b17, 0x05490400, 0x0647019a, 0xbb750087, 0xb801210a, 0x2109bb75, 0x23826700, 0x23827620, 0x87060f28, 0x5e05b004, 0x874600c0, 0x24218605, + 0xff3a0001, 0x264382c4, 0x0008005e, 0x8329402c, 0x010829db, 0x4c020002, 0x49020107, 0x85270d83, 0x02020000, 0x82005700, 0x005f3306, 0x4f020002, + 0x03111111, 0x012b1906, 0x33110511, 0xc7822111, 0x41014225, 0x82f9fdc6, 0xfe0a2bbc, 0xa60301af, 0xaefeb8fb, 0x2f82a301, 0x67209f82, 0x76235b82, + 0x82005e05, 0x27b78b9f, 0x7a0064ff, 0xe604e104, 0x8a201782, 0x00271789, 0x00cfff01, 0x824c057a, 0x00233417, 0x232a402d, 0x02030405, 0x00010601, + 0x03004c01, 0x18010000, 0x34121eb7, 0x29161128, 0x2b1a0604, 0x01011701, 0x34351737, 0x22232626, 0x05a55006, 0x18221521, 0x080a1363, 0xed04152c, + 0xfe9ffe5f, 0x6ec25c93, 0xba7071b8, 0x70ba6e6e, 0x589bce75, 0x75ce9b58, 0x589ccd75, 0xfe65fb02, 0x654a01b6, 0xb87163ae, 0x21846f6f, 0x9c589e23, + 0x831b84cd, 0x005d2107, 0x0030f982, 0xb004e8ff, 0x0c008006, 0x26001300, 0x01052340, 0x22089c82, 0x00030400, 0x01040067, 0x00570401, 0x5f010404, + 0x01040100, 0x1211114f, 0x06113313, 0x012b1c06, 0x18112101, 0x33079081, 0x33010121, 0x33112111, 0x58025802, 0x2d37aefe, 0x372dbcfe, 0x091b8218, + 0xfd80063d, 0x2d20fcac, 0x032d3737, 0xfed401e0, 0x04bafb86, 0xff020046, 0x051a00b0, 0x84ca0400, 0x40332573, 0x02011330, 0x4c277482, 0x0102000d, + 0x5d02124a, 0x6723090c, 0x18000300, 0x2a0c93b0, 0x23251211, 0x2b1a0604, 0x18110209, 0x2f07e780, 0x21153721, 0x01152111, 0x5402ac02, 0x68fdacfd, + 0x023d6b83, 0x02fd5a98, 0x7a01fe02, 0xa8fdca04, 0x6001a8fd, 0x28012d37, 0xde86372d, 0x01dec0fe, 0x24f3847e, 0x05b00444, 0x297f84dc, 0x11344037, + 0x49040206, 0x6b820106, 0x03000124, 0xf6820267, 0x57010422, 0x01230682, 0x82055f04, 0x4f043af9, 0x12130001, 0x0d0e0f10, 0x04050708, 0x0b010c00, + 0x2b160607, 0x15163201, 0x31fd8211, 0x36341121, 0x11210533, 0x23010123, 0x372dfa02, 0x73845201, 0x73825220, 0xb0fe4a2f, 0x017e01d6, 0xdc05d67e, + 0x20fc2d37, 0x2aa282fd, 0x372de003, 0xfebafb58, 0x417a0186, 0x0e271107, 0x0302020c, 0x820d4c01, 0x0f4a26a1, 0x4901020b, 0x20928200, 0x18928202, + 0x2a0f2f47, 0x21251611, 0x2b1a0604, 0x83211101, 0x06143885, 0x09112123, 0x11213503, 0x02040221, 0x37372d98, 0xfd68fd2d, 0x83fa01ac, 0xfe023a66, + 0xca0402fd, 0x2d37a0fe, 0x372dd8fe, 0x5802a0fe, 0x82fe7e01, 0x01de82fe, 0x2e5e8240, 0x02240001, 0x048d046e, 0x000500eb, 0x4402b306, 0x373705f7, + 0x02170101, 0x72ccfd58, 0xc301c201, 0x016e0272, 0x75fe7eff, 0x827e8b01, 0xff03372f, 0x04c302b5, 0x003505fb, 0x000a0006, 0xb576010e, 0x04000103, + 0xb6544c01, 0x071f2705, 0x02030201, 0x12820185, 0x05860026, 0x04040301, 0x2f059c64, 0x01065f04, 0x4f040304, 0x0ab04b1b, 0x1d405850, 0x03282086, + 0x04020307, 0x05570204, 0x02200883, 0x02202484, 0x0c202484, 0x4ba22482, 0x4ba30d20, 0x4ba51020, 0x4ba31120, 0x4ba51320, 0x4ba11420, 0xde9f4020, + 0x00865920, 0x00134033, 0x0c0d0e00, 0x08090a0b, 0x00060007, 0x08111206, 0x084a5f06, 0x15210524, 0x03822521, 0x270b6a61, 0x9d01b3fd, 0xa90363fe, + 0x05210583, 0x07766135, 0x9a9a0924, 0x0082009a, 0x43000121, 0x402d0aef, 0x00010210, 0x00850001, 0x13760101, 0x05fe4433, 0x430bda43, 0xcb430dd3, + 0x2135820b, 0x4343ff00, 0x401f2707, 0x0101061c, 0x4b840349, 0x82010221, 0x0001214c, 0x20072943, 0x0f294304, 0x430d2243, 0x9f830d18, 0x240a1b44, + 0x0c234026, 0x20548201, 0x216d824c, 0x52180b4a, 0x252412c2, 0x18060221, 0x200c0443, 0x0bff4201, 0x080df542, 0x01000020, 0x0000d4ff, 0x3e05d804, + 0x21001500, 0x14151e40, 0x0c0f1013, 0x06070a0b, 0x0d010203, 0x05824a00, 0x00000332, 0x13141376, 0x1a060414, 0x0701012b, 0x11231127, 0x07200384, + 0x03840882, 0x02272c08, 0x6b800258, 0x92669951, 0x66922f37, 0x056f5199, 0x7ec5fd3e, 0x0331fd4a, 0x4bfc5d58, 0x2c323804, 0xb903c2fb, 0x02a5fc5e, + 0x827e4bd0, 0xffff2dce, 0x9cffd4ff, 0xda04d804, 0x94064701, 0xda217d82, 0x1b821840, 0x4fda2009, 0x440806d3, 0x00d8ff05, 0x04dd0402, 0x001e00e1, + 0x00280023, 0x0032002d, 0x27624065, 0x0102021f, 0x02030114, 0x00022c2f, 0x134c0303, 0x4a010212, 0x00021516, 0x02010049, 0x01088501, 0x86000300, + 0x03040509, 0x02030302, 0x27088457, 0x0b5f0302, 0x04060a07, 0x4c081282, 0x292e2e4f, 0x01242429, 0x2e322e00, 0x292d2932, 0x2428242d, 0x1b222328, + 0x090c0d1a, 0x011e0007, 0x16060c1e, 0x2622252b, 0x36343526, 0x16323336, 0x2e331716, 0x37032702, 0x13270101, 0x23373636, 0x0603020e, 0x21330706, + 0x15272626, 0x221d8205, 0x82153335, 0x015f0816, 0x73c17581, 0x6775c173, 0xc31477ae, 0x161c1d1a, 0xc60197fb, 0xfb973afe, 0xc4223216, 0xb7ae7813, + 0xc6156a47, 0x69156601, 0x1598fe46, 0x46a2476a, 0x73ca1569, 0xc17575c0, 0x619a5972, 0x21272118, 0xfd5e3c01, 0x5f90fd91, 0x41233b01, 0x5a9a611f, + 0x6914bf02, 0x14684646, 0x6947a7c2, 0x82c3c414, 0xff002e0c, 0x00ceffff, 0x04b00407, 0x064700dd, 0x0c2f5898, 0x17820020, 0x1782e220, 0x263f6218, + 0x20114b4d, 0x064b4db8, 0x29462329, 0xc6033afc, 0x182d372e, 0x340a3f62, 0xa61a4425, 0x0130361d, 0x00000020, 0xffd2ff01, 0x05de04d4, 0x059f4a0f, + 0x02010e2e, 0x4c010100, 0x030f1019, 0x0c0d4a01, 0x14b95f18, 0x02171c22, 0x132e7085, 0x21373636, 0x13171616, 0x17010107, 0x9f4a0603, 0x03420805, + 0x84015a03, 0xdc9d7cfe, 0xfc1d2814, 0x13291dca, 0x7bfe9ddf, 0xd19d8501, 0x0322281d, 0x17212136, 0xfd0e05dc, 0x5463fd64, 0x3f257301, 0x253f1f1f, + 0x02568efe, 0x569d029e, 0x4132a4fe, 0x2a332424, 0x96827301, 0x200c1b41, 0x141b419b, 0x33001626, 0x030e3040, 0x0d26af84, 0x4a02020c, 0x62180f10, + 0x002e151f, 0x4f030003, 0x1023112c, 0x2b1a0604, 0x62182111, 0x31291218, 0x67910321, 0x036ffc67, 0x19621819, 0xe7fc230d, 0x62180102, 0x1920111a, + 0x24089f82, 0xd2ff0200, 0xdf04d4ff, 0x0d000f05, 0x37001300, 0x09113440, 0x03020302, 0x07084c01, 0x00040304, 0x010a0b4a, 0x19d74603, 0x16121223, + 0x268d8315, 0x01010725, 0x42210317, 0x2128058d, 0x37211703, 0xf4012127, 0x35053041, 0xb32e02b2, 0xfe85019d, 0xfdb49d7b, 0x02409dd0, 0xfd4041e9, + 0x2b412a16, 0x01cc2306, 0x45415435, 0x01372505, 0x71717112, 0x200c2f41, 0x142f419e, 0x34001226, 0x01093140, 0xa382d182, 0xa1830220, 0x49030228, + 0x00010000, 0xb8820085, 0x2210064d, 0x41111c11, 0x33250530, 0x26262111, 0x0b741827, 0x11212808, 0x1803ae23, 0x182d372e, 0x2c09ed73, 0xfc294623, + 0x5004aee8, 0x361d75fe, 0xd3731830, 0x44252409, 0x4175fe1a, 0xa0200fcb, 0x02219b8a, 0x07e74200, 0x1a00132c, 0x3c403f00, 0x0502091a, 0x9e960104, + 0x05040027, 0x00670401, 0x79891805, 0x21112c0d, 0x10112c11, 0x2b1c0606, 0x18153311, 0x2d0ced63, 0x23152131, 0x15213501, 0xae373521, 0xd8416b02, + 0x95fd2f0d, 0xfd9103ae, 0x67e3021d, 0x18cd5204, 0x63181a32, 0x192709f7, 0x014a02c8, 0x827001e2, 0x0100219a, 0x19399f88, 0x36403900, 0x040e1618, + 0x01000204, 0x050c0d4c, 0x4a000403, 0x030f1017, 0x67651802, 0x0304260d, 0x02000202, 0x3237824f, 0x1d190019, 0x06051114, 0x35112b19, 0x37173733, + 0x41313317, 0x232d0b45, 0x07270727, 0xb8b7947b, 0x3c2ab494, 0x094a412c, 0x293c2c30, 0xb7b85aed, 0xa61f025c, 0x97b7b797, 0x4f41391a, 0x3930290a, + 0xb7b75919, 0x0100005a, 0x250d3b46, 0x01000101, 0x03824c01, 0x01024a22, 0x11676318, 0x43232521, 0x484a05ad, 0x0d414a09, 0x200d3a4a, 0x26f38200, + 0xb004a8fd, 0x6e00d4fe, 0x112c229b, 0xb0041121, 0xd4fe50fb, 0x2c01d4fe, 0x00229782, 0x3b82fd00, 0x63000021, 0x21201a07, 0xfd233386, 0x825802a8, + 0x826f8728, 0x0003213e, 0x85193b63, 0x2c012567, 0x84037cfc, 0x40826788, 0x022533a1, 0x0450fb58, 0x823388b0, 0x2533a13e, 0x24fa8403, 0x3388dc05, + 0x33a13e82, 0xf8b00425, 0x880807f8, 0xa13e8233, 0xdc052533, 0x3408ccf7, 0x3e823388, 0x072533a1, 0x09a0f608, 0x23338460, 0xb0045802, 0x034133a6, + 0xdc052108, 0x77703386, 0x06a74120, 0x41080721, 0x00210adb, 0x246f9c96, 0x11231113, 0x85228296, 0x23a384a1, 0x2c01a8fd, 0x0120339c, 0x01236782, + 0x8ad4fe2c, 0x203382d7, 0x2233a1c2, 0x8c3efec2, 0x58022133, 0x022333a0, 0x8da8fd58, 0xa1ee2033, 0xfdee2233, 0x21338c12, 0x33a08403, 0xfc840323, + 0x21338c7c, 0x33a01a04, 0xfb1a0423, 0x833388e6, 0x24db41a8, 0x0423cf8a, 0xa0a8fd1a, 0x11232333, 0xa041b004, 0x00012609, 0x02a8fd00, 0x20474358, + 0x47438e83, 0xa09b8508, 0xb0042133, 0x77425a83, 0x41658308, 0x9f412003, 0x0caf4305, 0x05263382, 0x1a401d00, 0x9e540103, 0x06c44b05, 0x210c0062, + 0x01822111, 0xfb276083, 0xfb080750, 0x4350fb50, 0x0f41061f, 0x00072b06, 0x04204023, 0x03000301, 0xaf180085, 0x70180c5d, 0x06230948, 0x84012b19, + 0x11212145, 0xfd234783, 0x82a8fda8, 0xfb522449, 0x44b0044e, 0x8ba80a3b, 0x4184fb83, 0xcb878b90, 0x85020125, 0x18000100, 0x620838a6, 0x858409cc, + 0xf6213f87, 0x837f86a0, 0x20db4194, 0x83112121, 0x20b78237, 0x22b38350, 0x42000002, 0x0726080f, 0x27402a00, 0x70850104, 0x8500032c, 0x02030105, + 0x02008503, 0x6d187602, 0x06270f86, 0x11012b17, 0x85021921, 0x23c3844b, 0xfbae0452, 0x0741c782, 0x25c79f15, 0x580250fb, 0xc7870807, 0x64003022, + 0x06229383, 0xdd180072, 0x5b080967, 0x001b0017, 0x0023001f, 0x002b0027, 0x0033002f, 0x003b0037, 0x0043003f, 0x004b0047, 0x0053004f, 0x005b0057, + 0x0063005f, 0x006b0067, 0x0073006f, 0x007b0077, 0x0083007f, 0x008b0087, 0x0093008f, 0x009b0097, 0x00a3009f, 0x00ab00a7, 0x00b300af, 0x00bb00b7, + 0x010000bf, 0x21352315, 0x13200392, 0x23201382, 0x1f870386, 0x0f822320, 0x07832f83, 0x2320138b, 0x2f831782, 0x07831387, 0x5f972387, 0x779f1797, + 0x07879387, 0x6490012d, 0xfc648403, 0xf401647c, 0x832c0164, 0x84642002, 0xbc022400, 0x8244fd64, 0x4c042109, 0x09820482, 0x17840f82, 0xfe212d83, + 0x212d830c, 0x07856464, 0x08823582, 0x05884482, 0x83d4fe21, 0x84118347, 0x85509208, 0x64642412, 0x8a967206, 0xd4fe2100, 0x00230ddf, 0x42600000, + 0x0b220caf, 0x7f620f00, 0x511b4206, 0x00c35e08, 0x00cb00c7, 0x00d300cf, 0x00db00d7, 0x00e300df, 0x00eb00e7, 0x00f300ef, 0x00fb00f7, 0x010301ff, + 0x010b0107, 0x0113010f, 0x011b0117, 0x0123011f, 0x012b0127, 0x0133012f, 0x013b0137, 0x0143013f, 0x014b0147, 0x0153014f, 0x015b0157, 0x0163015f, + 0x016b0167, 0x0173016f, 0x017b0177, 0x057b427f, 0x830fcf41, 0x4217200f, 0x6742068f, 0x8605200f, 0x0f674217, 0x17920720, 0x05202383, 0x870ac342, + 0x9307834b, 0x422f8b47, 0x0b830bbf, 0x07431520, 0x977f870e, 0x8b2f8347, 0x200b87a3, 0x87478e07, 0x874797fb, 0x0b234117, 0x5f93a787, 0x1b8fef87, + 0x0741778b, 0x4c04210b, 0x8207c742, 0x64c82107, 0x13430e84, 0x64642605, 0xfc645802, 0x0b2c437c, 0x5e43c820, 0x05644306, 0xfe210582, 0x853d8670, + 0x86702037, 0x0545431f, 0xfc211f82, 0x211f82e0, 0x0482bc02, 0x82059a43, 0x05584308, 0x5a831382, 0x8564e821, 0x44fd210e, 0x64203986, 0x12821882, + 0x08820282, 0xc8203382, 0x50823a85, 0x90830882, 0xe8432f85, 0x18fc2108, 0x84859f83, 0x64840324, 0x8194a8fd, 0x92822e88, 0x91845183, 0x07215384, + 0x0bae4308, 0x21c20b40, 0x1b442400, 0x354d0808, 0x3d003900, 0x45004100, 0x4d004900, 0x55005100, 0x5d005900, 0x65006100, 0x6d006900, 0x75007100, + 0x7d007900, 0x85008100, 0x8d008900, 0x95009100, 0x9d009900, 0xa500a100, 0xad00a900, 0xb500b100, 0xbd00b900, 0x0000c100, 0x15231501, 0x21039a33, + 0xc1433523, 0x05112112, 0x27203482, 0x25200386, 0x37200782, 0x27204486, 0x0f870782, 0x1b87138f, 0x3b8a1720, 0x4f831387, 0x25202f83, 0x1520538a, + 0x2720278e, 0x778b0f82, 0x04217f87, 0x0ae542b0, 0x03240a8e, 0xc86464e8, 0xfe210284, 0x84068470, 0x90012104, 0x18820684, 0x15891a8b, 0x03233185, + 0x86646420, 0x83068635, 0x85318411, 0x83058220, 0x820c8811, 0x1b724208, 0x42600921, 0x00314582, 0x00010000, 0x0400003c, 0x00380474, 0x40180013, + 0x09d35515, 0x0b00012b, 0x01130009, 0x16060313, 0xf6c0182b, 0x1802200f, 0x310fbfc0, 0x95543804, 0xc47070c3, 0x95535395, 0xc37070c4, 0x5a825495, + 0x8a020021, 0x0023275b, 0x042d4030, 0xd87f0001, 0x00692305, 0xc1180103, 0x15250c84, 0x1d000114, 0x6cc1181b, 0x92062009, 0x5a172075, 0x322607c6, + 0x34353636, 0x85902626, 0xac69702b, 0x69ac6767, 0x6767ad68, 0x239191ad, 0x68ad67a0, 0x9b402088, 0x411c20a8, 0x032a0837, 0x69030002, 0x01010200, + 0xa5185902, 0x14270919, 0x14000114, 0x181c141c, 0x4107b7a3, 0x11201437, 0x41183041, 0xfd21172a, 0x05474108, 0x27410020, 0x001c260c, 0x0428402b, + 0x18148201, 0x2c13fab2, 0x1b1c0001, 0x080b1415, 0x13011300, 0x08be4105, 0x07060623, 0x06755c23, 0x4108bf41, 0x8b2305b8, 0x421690eb, 0x97410731, + 0x05b34105, 0x93f09323, 0x07454206, 0x2006b341, 0x2e878f00, 0x00324035, 0x02010203, 0x00800103, 0x77840101, 0x052f0cc3, 0x02000201, 0x01141551, + 0x14181900, 0x421c151c, 0x184105c6, 0x06222414, 0x42211506, 0x02211749, 0x174542f8, 0x67ad6822, 0x220e1741, 0x832a402d, 0x85002683, 0x02030200, + 0x0fdc4285, 0x1a000125, 0x85141518, 0x09194187, 0x41020e21, 0x01210718, 0x053c7221, 0xd1423620, 0xec012110, 0x42078941, 0xfd2711cf, 0x67ac69e4, + 0x4300ac67, 0x022506c3, 0x00380458, 0x10ef510a, 0x0a000a29, 0x17060311, 0x4111012b, 0x63820685, 0x2305a643, 0xc8fb3804, 0x2209ad43, 0x44580201, + 0x0a200607, 0x0c3b5118, 0x02101824, 0x00441806, 0x89a18909, 0x0c0b4190, 0x30001924, 0x9b412d40, 0x242a8218, 0x00015102, 0x1c0e4119, 0x06221725, + 0x41211506, 0x7020100b, 0x0121ee82, 0x1107417c, 0xad67a026, 0x03000068, 0x2f0a6b44, 0x00260018, 0x19364039, 0x00020214, 0x01054c01, 0x2405a14e, + 0x02040300, 0x05985e03, 0x04005929, 0x00610104, 0x82010401, 0x1e20258c, 0x17181a1b, 0x291a2542, 0x21070606, 0x1e211113, 0x47433302, 0x6d203117, + 0x2401189f, 0x133cfea0, 0x685c9b6a, 0x884f67ad, 0xa830a691, 0x016ca018, 0x563efe22, 0xac674e88, 0x6b9b5a69, 0x2120b38d, 0x3e25b382, 0x1a263b40, + 0x21958202, 0x0482004c, 0xb8828620, 0x02010622, 0x18056a43, 0x2b0d0645, 0x00011415, 0x18192223, 0x21152114, 0x0720b885, 0x2d162f45, 0x3e112107, + 0x26343502, 0x16210326, 0x53411716, 0x9b5b3011, 0xc401136b, 0x674f8855, 0xdcfeb8ad, 0x916d9f18, 0x4fa023b8, 0xd9825588, 0x5b9b6b22, 0xfe25d982, + 0x17a06d34, 0x20008200, 0x0a6f4103, 0x2421bb86, 0x21bba91c, 0xbba11d1e, 0x82141521, 0x211127b2, 0x2101022e, 0x1b433611, 0x69703111, 0x884e67ac, + 0x12c20156, 0x18019b6b, 0x9e6cdefe, 0x6725bb92, 0x9b5c68ad, 0x25e2856a, 0xdcfe34fe, 0xbb92a017, 0x36403926, 0x04021422, 0x23052b42, 0x00850004, + 0x0b696618, 0x270a6c45, 0x23240001, 0x1b1d2021, 0x211a2b42, 0x0876020e, 0x37362506, 0x21111321, 0x2012a446, 0x08004220, 0x3efe1227, 0x182401a0, + 0x20b691a0, 0x20d282aa, 0x83de875a, 0x0d2b42d9, 0x32002338, 0x3e404100, 0x07000106, 0x00040201, 0x01086902, 0x03050004, 0x56470504, 0x24252b10, + 0x00011415, 0x32242b2d, 0x5e473225, 0x4209200b, 0xbc87162e, 0x26343524, 0xeb770726, 0x34352109, 0x46167f41, 0x67250525, 0x643c68ad, 0x2302823c, + 0x643b815b, 0x7847cd91, 0x82a0200c, 0x643d2426, 0x825b813b, 0x82002007, 0x48042000, 0x322a0c23, 0x52003e00, 0x01084f40, 0xd9850900, 0x2109d578, + 0xe2820700, 0xe2910720, 0x85333421, 0x383a25e4, 0x3e343e33, 0x0c20ea91, 0xce77eab1, 0x05f17805, 0x48113243, 0xf68c0843, 0x23193d27, 0x24181923, + 0x22feaa24, 0x851824a0, 0x42002034, 0x03310c93, 0x23001300, 0x44404700, 0x02040108, 0x05040205, 0x2cf88280, 0x7e030502, 0x07010106, 0x01040201, + 0x0aa37b02, 0x00005f2a, 0x154f0003, 0x00040514, 0x25063f49, 0x13040b0d, 0x15821305, 0x0911032a, 0x012b1706, 0x05112111, 0x410e3849, 0x26390ad9, + 0x36363435, 0xc8fb7404, 0xd17f1c02, 0x7fd17c7c, 0x7d7dd17e, 0x88527ed1, 0x2b028252, 0x51518853, 0xfb380488, 0x503804c8, 0x20881482, 0x1b87a020, + 0x08825320, 0x023bbb82, 0x1c023c00, 0x38047404, 0x15000c00, 0x31403400, 0x00030106, 0x01030401, 0x82010769, 0x59042197, 0x04330682, 0x02055f00, + 0x00040002, 0x000d0e4f, 0x0d111200, 0x82150e15, 0x130c262e, 0x06081123, 0x20a68219, 0x07a86423, 0x05112327, 0x15161632, 0x86988421, 0x02502277, + 0x216a821c, 0x8e83a8fd, 0x85e4fd21, 0x1c0222a3, 0x46a685f0, 0x0221077f, 0x2e7f841c, 0x07304033, 0x04030605, 0x02040001, 0x82690401, 0x0200231d, + 0xce7d0059, 0x820d2008, 0x150d257e, 0x1012150d, 0x0c222d82, 0x7e861123, 0x33112122, 0x21068447, 0xdf7c2335, 0x74042407, 0x4150c8fb, 0xf2860513, + 0xfd1c0223, 0x072941e4, 0x51885325, 0x82538851, 0x010021fe, 0x1320ff88, 0x1d574018, 0x0b0e0f25, 0x49050609, 0xf6890c20, 0x023e3422, 0x43056c42, + 0xa023062f, 0x42c49553, 0x6825054d, 0xad6767ad, 0x05554b68, 0x8206af4b, 0x00132beb, 0x04234026, 0x02010203, 0xe4898501, 0x08bb5518, 0x1300132c, + 0x05241423, 0x012b1906, 0x6a480e14, 0x21e18805, 0xae4b7404, 0x43a02007, 0x022105c1, 0x0d89491c, 0xd3850020, 0x18065348, 0x22292356, 0x84231506, + 0xac6922c6, 0x83be8567, 0x22b884cb, 0x42580201, 0x0a250623, 0x1b401e00, 0x27b58200, 0x02000086, 0x00590002, 0x61290682, 0x02000200, 0x10141351, + 0x22af8303, 0x82021e32, 0x26262247, 0x090f4123, 0x82080841, 0x283b822d, 0x04000058, 0x001c0274, 0x93e0180a, 0x1859200e, 0x270c9fd7, 0x110a000a, + 0x18060414, 0x24050141, 0x36363235, 0x22f98535, 0x8567ad68, 0x49fe83f1, 0x4f8a083f, 0x1ed75718, 0x16141333, 0x22153316, 0xdc35022e, 0x7069ac67, + 0x025395c4, 0x20f2861c, 0x0c534d70, 0x17650320, 0x03092107, 0xfd25ff83, 0x04e4fde4, 0x82058338, 0x4900206b, 0x032e0a37, 0x08000700, 0x020406b5, + 0x2b320200, 0x2b870709, 0xfe1c0227, 0x013a01c6, 0x23338738, 0xc8fe3801, 0x63821183, 0x7d000236, 0x33040000, 0x05006205, 0x21000b00, 0x090b1e40, + 0x05010408, 0x10249a18, 0x0500052d, 0x17060312, 0x2302092b, 0x82170101, 0x33240803, 0x01c60201, 0xdb93fe6d, 0x6e0192fe, 0xf0fe0871, 0x01081001, + 0xfd620510, 0x024efd50, 0x94b202b0, 0xe4fde2fd, 0x4b829e84, 0x00001c26, 0x38045603, 0x271a7b5c, 0x11211101, 0xc6fd5603, 0x4e052644, 0x4082084f, + 0x221e775b, 0x43c8fb74, 0x0741054d, 0x18338408, 0x223257d8, 0x82042115, 0x9803254c, 0xf80208fd, 0xa0245285, 0x010200dc, 0x53b1bb89, 0x33112322, + 0x0123d483, 0x85fafa9a, 0xfda022d8, 0x2adb8208, 0x18fc0802, 0x0c03ba04, 0x43000500, 0x42180d13, 0x487b0e2f, 0xba042c0e, 0x03a0eefd, 0xacf9a00c, + 0x8200f406, 0x02012800, 0x046c0208, 0x18d007ba, 0x4208d758, 0x5720076f, 0x5f251d83, 0x01000100, 0x0e8e594f, 0x1121152f, 0x1202a802, 0xd0074efd, + 0x05a03cfb, 0x25478464, 0x18fcf6ff, 0x8f88a802, 0x47183782, 0x06201ba7, 0x07a74718, 0xa0a8022b, 0x0c03eefd, 0x54060cf9, 0x234786a0, 0xa8026c02, + 0x83588f8a, 0x01002805, 0x01010057, 0x82005f00, 0x208f8f58, 0x2a8f8335, 0x12024efd, 0x9cfad007, 0x88c404a0, 0x30d7848f, 0x402f000b, 0x0501062c, + 0x00850500, 0x86020102, 0x22d18204, 0x82570001, 0x01002306, 0x5382035f, 0x6f18df84, 0x062008b6, 0x0ee54d18, 0xee20e883, 0x5d83a382, 0xf921ed82, + 0x82a882ac, 0x83012062, 0xba0421ef, 0x0724ef82, 0x24402700, 0x01209582, 0x03215982, 0x85441800, 0x0300220a, 0x76a98300, 0x052e0572, 0x012b1906, + 0x23112115, 0x04352111, 0x5183fdba, 0x82058541, 0x414b82f6, 0x4b840683, 0x2005cb5a, 0x82a68502, 0x18a68206, 0x830e188b, 0x2111234b, 0xf8842115, + 0xfb120223, 0x879c863c, 0x051b42fb, 0x00d00722, 0x35a76318, 0x0721f285, 0x22ee84d0, 0x8400b80b, 0xa80221eb, 0x02214f8a, 0x1cb51803, 0x0a67710a, + 0x830e725b, 0x112123ec, 0x3e41a802, 0x48f42106, 0x83083b41, 0x0c0321ef, 0x82238360, 0xba0426e5, 0x0c033cfb, 0x051f42a0, 0x8b84db83, 0x201bd343, + 0x23748323, 0x48f4d007, 0x0020bd82, 0x7118bf8a, 0x062433c7, 0x11012b1b, 0x3520c984, 0x84057041, 0xeefd23cd, 0x60831202, 0xa0b40530, 0x2404a0a0, + 0xf6ff0200, 0x480318fc, 0x5e18d007, 0x02280cef, 0x01048503, 0x86000100, 0x180ff86a, 0x8416ef5e, 0x21112166, 0x02296e82, 0x8efea008, 0xe0017201, + 0x246583a0, 0x04a05406, 0x20cd84c4, 0x28678501, 0x09000c03, 0x26402900, 0x245d8402, 0x01040105, 0x05977d01, 0x035f0122, 0x01280a82, 0x0000004f, + 0x11090009, 0x06220082, 0xc0841a06, 0xc4842320, 0x82480321, 0x8efe21af, 0x21057143, 0x5882acf9, 0x21081f41, 0x3282ac03, 0x2b402e22, 0x00211082, + 0x22528286, 0x18020300, 0x8e15e272, 0x35212158, 0xe5410183, 0xeefd2706, 0x6cf8ac03, 0x6582b405, 0x41030021, 0x03200813, 0x0f3c5982, 0x46404900, + 0x03080409, 0x85010301, 0x06000105, 0x03008600, 0x03070200, 0x010a6702, 0x0f776418, 0x040a0a35, 0x0a000004, 0x0e0f0a0f, 0x040b0c0d, 0x08090409, + 0x82050607, 0x1103242f, 0x8617060b, 0x217682cf, 0xd5881311, 0x01eefd27, 0xfea0a072, 0x05f6418e, 0xa03cfb28, 0x9cfa2404, 0x8a82acf9, 0x00820020, + 0x68010222, 0x32069f41, 0x00070003, 0x051f4022, 0x01030403, 0x02850100, 0x5d000001, 0x23201527, 0x23235a82, 0x82480311, 0x205385ca, 0x054e42f4, + 0x2907eb41, 0x0500ac03, 0x39000b00, 0x48823640, 0x8600042b, 0x00020106, 0x01020501, 0x2d661867, 0x06062611, 0x0b060000, 0x05fc6a06, 0x05000525, + 0x45081111, 0x5c420801, 0x23668205, 0x12024efd, 0x0328bf82, 0x066cf8ac, 0xc0fea0f4, 0xff27bb89, 0x03cc01f6, 0x84d00748, 0x4038326f, 0x06050735, + 0x02040203, 0x00040085, 0x03040103, 0x0ff67567, 0x21216e97, 0x05804435, 0xd5822120, 0x02aefc3b, 0xeefda0b2, 0xd0077201, 0x05a0fcf9, 0xa03cfb64, + 0x00002404, 0x02f6ff01, 0x2e6b846c, 0x40290009, 0x02040526, 0x85020102, 0x82010103, 0x8257201a, 0x0a824506, 0x830c0642, 0x1133225a, 0x23588433, + 0xa0a07201, 0x21068a45, 0x2b453cfb, 0xcc012305, 0xbf82a802, 0x2e000931, 0x01052b40, 0x85040304, 0x02000300, 0x90020301, 0x0fb842bb, 0x45055d42, + 0x764307e1, 0x20b08205, 0x47ad84a0, 0x5b820807, 0x1837977b, 0x220b438d, 0x831202a8, 0xeefd2161, 0xfb28bf82, 0xa0a0a0dc, 0xb80b4cfa, 0x6824a782, + 0xba0418fc, 0x180edb43, 0x2539cb62, 0x72014803, 0x5d828efe, 0x42086245, 0x02240559, 0xcc016801, 0x05236784, 0x41000b00, 0x032a07e7, 0x03008502, + 0x03000400, 0xd6756704, 0x18e7410f, 0x11211522, 0x05820182, 0x02080232, 0x01aefcb2, 0xfd7201e0, 0xfad007ee, 0x0406a09c, 0x0421d782, 0x42d387c4, + 0x043509c3, 0x01030101, 0x02010686, 0x02050000, 0x01076700, 0x05030305, 0x27068257, 0x005f0305, 0x4f030503, 0x64826c96, 0x46112321, 0x042605d9, + 0xa04efdba, 0xda825203, 0xa0ac032e, 0x94070cf9, 0xfaa0c0fe, 0x0054064c, 0x03220082, 0xdb8af6ff, 0x44000f35, 0x05094140, 0x00020308, 0x01048502, + 0x01010300, 0x44010007, 0x0c211207, 0x2576830c, 0x0f0c0f0c, 0x40430d0e, 0x060b260d, 0x11012b18, 0x227e8421, 0x83213521, 0x03352282, 0x2ae78348, + 0x01eefda0, 0xfb520372, 0x84d0073c, 0x44fb20eb, 0x3f46050a, 0x23878205, 0xba0418fc, 0x9344f782, 0x40473a05, 0x03010544, 0x08860302, 0x00000101, + 0x67000104, 0x0309070a, 0x04020204, 0x28088457, 0x065f0204, 0x02040201, 0x1f91444f, 0x35211522, 0x45050541, 0x04270567, 0x043cfbba, 0x458efec4, + 0xac22056d, 0x0b41a0a0, 0x07d44306, 0x42010321, 0x87850753, 0x37071b45, 0x06850102, 0x00050001, 0x00020086, 0x03020703, 0x07010a67, 0x57070505, + 0x07260682, 0x05005f05, 0x89a00507, 0x41231121, 0x8f8506fc, 0xa0080222, 0x2105ff41, 0x8e821202, 0x2605c944, 0x04a0dcfb, 0x419cfac4, 0x0220069d, + 0x21059b41, 0xc618ac03, 0x0622323b, 0x66822b17, 0x3520fa83, 0xfb22f285, 0xed85033c, 0x0400a024, 0x3743f6ff, 0x052b0806, 0x11000b00, 0x5b001700, + 0x050d5840, 0x0102030c, 0x01098502, 0x86070607, 0x04010103, 0x01080001, 0x0b0f6700, 0x0608030e, 0x84570806, 0x06082a08, 0x06010a5f, 0x124f0608, + 0x05024212, 0x1217122c, 0x14151617, 0x0c110c13, 0x0c421011, 0x42102010, 0x3520050c, 0x4107f642, 0x02250b89, 0x01eefd08, 0x0a024172, 0xfea0a02a, + 0xfbd0078e, 0x2404a03c, 0x410b0741, 0x0b410599, 0x06eb4306, 0x3540382f, 0x00030106, 0x01028503, 0x05010000, 0x13db4500, 0x4916ca47, 0x8882059e, + 0xa8023522, 0x2105a249, 0x9242b202, 0x23788206, 0xa0a09cfa, 0x21056b45, 0x6b82ba04, 0x2c000b27, 0x05062940, 0x276a8302, 0x00020204, 0x57000101, + 0xfa490783, 0x10a04a0a, 0x7045ec82, 0x72012305, 0x72453cfb, 0x26d38205, 0xfbc404a0, 0x46c4043c, 0xe74205a3, 0x000b2a06, 0x0037403a, 0x86030203, + 0x29588206, 0x00010500, 0x05010767, 0xde430202, 0x5f023005, 0x05020104, 0x04044f02, 0x0b040000, 0x470a0b04, 0x0820096a, 0x2009dd41, 0x05b84a11, + 0xbc4a5b83, 0x05e44105, 0x474cfa21, 0x0f4b065f, 0x000b2509, 0x0328402b, 0x01206882, 0x052a6e82, 0x57050000, 0x05050106, 0xcf835f00, 0x4f000522, + 0x0bc29218, 0x4b1b0621, 0x33430613, 0x072f4307, 0xf9a00c25, 0x485406ac, 0x0023069e, 0x4b680101, 0x9346061f, 0x02002208, 0xe58d1885, 0x07204b0c, + 0x220d9346, 0x41112115, 0xfc2a0722, 0x07a0a0ae, 0xa03cfbd0, 0xc3836405, 0x02010023, 0x068f4408, 0x22079346, 0x18850400, 0x46176947, 0x15211093, + 0x4d018321, 0xee200505, 0x2506094d, 0xa0a0a0dc, 0x2a820406, 0x5b820020, 0x84066344, 0x03002c5b, 0x05860302, 0x00000401, 0x18000401, 0x8b133b50, + 0x235986b4, 0xba041123, 0x21068946, 0x5882ac03, 0x074cfa25, 0x44010094, 0xfb490533, 0x05634107, 0xfb495884, 0x5f002605, 0x04000102, 0x0ffb4900, + 0x11211523, 0x23018423, 0x8efeba04, 0x774c4b82, 0x05014e06, 0x3706b741, 0x1300d007, 0x35403800, 0x0702090a, 0x04850700, 0x02010201, 0x02060886, + 0x00217382, 0x23078357, 0x055f0100, 0x087f4618, 0x0c56c818, 0x451f0621, 0xc6410887, 0x09744105, 0xfe216e84, 0x089c428e, 0x4208d441, 0x002106a4, + 0x059b4b00, 0x84ba0421, 0x403d297f, 0x09010a3a, 0x00850900, 0x1ab39618, 0x03010524, 0xe2830302, 0x15208494, 0x4b081046, 0xd04706ac, 0x054d4108, + 0x07120223, 0x06d847d0, 0xb94b0520, 0x08275006, 0x23205b50, 0xc8fb7404, 0x5105824f, 0xe8180f2f, 0x2750337f, 0x0ad54f08, 0x200d5b5c, 0x21a75e27, + 0x0b504118, 0x0815565c, 0x15020e30, 0x33021e14, 0x35023e32, 0x02022e34, 0x72d5ac58, 0xd5722929, 0x71d6acac, 0xd6712929, 0x4f9779ac, 0x974f1d1d, + 0x50967979, 0x96501d1d, 0x1c8b3804, 0xa0202c83, 0x79201582, 0xdf5a258b, 0x05e7670a, 0x38403b33, 0x00010106, 0x02010502, 0x05010767, 0x05030400, + 0x10f27804, 0x23092645, 0x04050607, 0x03244382, 0x17060811, 0x088ee918, 0x21110323, 0x093a5111, 0x48fea022, 0x26081541, 0x48fe5802, 0x5700b801, + 0x77850c9f, 0x42000f25, 0x83083f40, 0x82032079, 0x20528279, 0x33798205, 0x00040067, 0x07040607, 0x00060067, 0x00570600, 0x5f000606, 0x00240882, + 0x0f00004f, 0x87077f76, 0x08945680, 0x21152127, 0x21352101, 0x89038211, 0x08fd2384, 0x0385f802, 0x98268b86, 0xfe98d0fe, 0x60829838, 0x00003c26, + 0x38047404, 0x2208e768, 0x82354038, 0x05062f87, 0x01020302, 0x04076703, 0x00000202, 0x07835702, 0x09b95318, 0x13247d98, 0x01231133, 0x21230382, + 0x83331123, 0x98a0247d, 0x82300198, 0x98c82203, 0x21788598, 0x888768fc, 0x0a000022, 0x6908a358, 0x73291363, 0x01147040, 0x15050601, 0x3c888803, + 0x09020b0d, 0x67090208, 0x08020a0c, 0x0f021112, 0x670f080e, 0x03101316, 0x0e00000e, 0x22088457, 0x825f000e, 0x4f00260b, 0x04042424, 0xe4101900, + 0x1e1f220a, 0xe6ae181d, 0x07042214, 0x078b4d04, 0xc1411720, 0x15172c06, 0x33173533, 0x23212335, 0x82013315, 0x86052007, 0x220b8803, 0x86152335, + 0x21d885da, 0xe48608fd, 0xfd20e882, 0xef85f089, 0x98240f82, 0xd0fe9898, 0x06820482, 0x06843820, 0x00009824, 0xfb8c0500, 0x0e000a3e, 0x41001100, + 0x0e113e40, 0x05060a0d, 0x01020406, 0x0101064c, 0x02020703, 0x67020104, 0x250c1745, 0x00040000, 0xdd82044f, 0x0c0f1025, 0x8308090b, 0x0d8142c1, + 0x0135012c, 0x01172321, 0x11150133, 0xa9832733, 0x020c0130, 0x014afe8c, 0xfededeb6, 0x73fdd6bf, 0x9a86dfdf, 0xd675fd2d, 0xfddeb501, 0xd78d02e6, + 0x8de04afe, 0x00062193, 0x47279385, 0x0e104440, 0x9007080d, 0x05082293, 0x21838202, 0x07835704, 0x5f000422, 0x0f219584, 0x2b97830f, 0x110f110f, + 0x090a0b0c, 0x06040604, 0x260c2f59, 0x03371517, 0x82230115, 0x11352399, 0x99830735, 0xdfdfa028, 0xfed68d02, 0x9c82d6b5, 0xdf339486, 0xd64afedf, + 0x08fd8c02, 0xfdd7b501, 0x00dfdf74, 0x410d0000, 0x06220a2b, 0x0f820900, 0x71691020, 0x22250808, 0x28002500, 0x5a002b00, 0x282b5740, 0x21222425, + 0x1d1e1f20, 0x17191a1b, 0x12131516, 0x0d0e0f10, 0x05080b0c, 0x064f411a, 0x07030823, 0x16504103, 0x04070722, 0x2a26ce82, 0x07262729, 0xba910709, + 0x37170525, 0x82371721, 0x05272205, 0x24098215, 0x37170135, 0x840d8327, 0x22118407, 0x82273305, 0x056e4102, 0x01393a3c, 0xfe3a393b, 0x6b6b6c84, + 0x023a83fe, 0x42fd3985, 0x016b6c6b, 0x6c6b6c42, 0x1489befe, 0x39737426, 0x3a737401, 0x3920f886, 0xa52a0082, 0x316b6b6b, 0x72393a74, 0x0982f0fe, + 0xfe240283, 0x6c6b6bbe, 0xdf241284, 0x003a3a3a, 0x56073b56, 0x03232007, 0x55c6fd56, 0x002005b4, 0x5607b355, 0x23213607, 0x08b35515, 0x46080556, + 0xfe234833, 0x467c0184, 0x03201633, 0x2207f153, 0x45020001, 0x777e0613, 0x0000210c, 0x20087c45, 0x0a7c4505, 0x9c05745b, 0x63062057, 0x0225056f, + 0x034c0101, 0x08e65901, 0xcb5a5720, 0x00002909, 0x03000506, 0x04110300, 0x01205887, 0x980a0b57, 0x000625af, 0x0629402c, 0x0126ae82, 0x0200004c, + 0x5c838600, 0x57010222, 0x01290682, 0x02005f02, 0x004f0201, 0x062e4600, 0x29465888, 0x20568909, 0x0aef4203, 0x0b000735, 0x2e403100, 0x04010106, + 0x01030201, 0x01056702, 0x7d000003, 0x002105c1, 0x2009825f, 0x4a548200, 0x042006e7, 0x0720b384, 0x220a0c41, 0x84112101, 0xcc0125b8, 0x2c01d4fe, + 0x67880585, 0xfdf80223, 0x0cff4608, 0x0d00092d, 0x36403900, 0x05010107, 0x82060201, 0x06002f6b, 0x06040300, 0x04006703, 0x57040000, 0xe7430400, + 0x00002107, 0x4606fc7c, 0x112113fd, 0x29758721, 0xd4fe9803, 0xf80234fe, 0x7d8334fe, 0x0c837786, 0xd4201282, 0x830e9b5d, 0x403a227b, 0x417b8237, + 0x052608ed, 0x67050304, 0x7b840106, 0x7cb00682, 0x0108fd25, 0x8d2c01cc, 0x828f827c, 0x417c8212, 0x7b8b0b63, 0xf6830420, 0x05000424, 0x7b830403, + 0x00000328, 0x01065703, 0x6a410303, 0x20f89c08, 0x066e4115, 0x82980321, 0x0f6e417b, 0xa0cc0124, 0x6f41d4fe, 0x03042220, 0x116f4806, 0x27266f41, + 0xd4fecc01, 0x34fef802, 0x410ee741, 0x002005f8, 0x230b1b4a, 0xb70a0002, 0x097d5918, 0x02210125, 0x4a1c0258, 0x1582050f, 0x42ffff21, 0x0223077f, + 0x8e240706, 0x40152437, 0x18010112, 0x2a091d48, 0x02020002, 0x092b1606, 0x5b740402, 0x45830584, 0x2520438f, 0x062a438e, 0x010002b3, 0x01132b32, + 0x14423c01, 0x903a8305, 0x83012023, 0x11012223, 0x07a94a01, 0x87063b5b, 0x0200229b, 0x8a8b9500, 0x38042232, 0x09876900, 0x0f000224, 0x0f820c40, + 0x0b765a18, 0x5c872120, 0x1322279c, 0xa8862101, 0x82c8fb21, 0x962b8ca6, 0x11012183, 0x590a604b, 0x212b375f, 0x04352111, 0xfe8efeba, 0x598efe20, + 0x80820860, 0x18093757, 0x50244762, 0x4b82054f, 0x85480321, 0x07a05a49, 0x07394786, 0x000900d0, 0x052a402d, 0x04000401, 0x02010085, 0x01038601, + 0x00020200, 0x24068257, 0x005f0200, 0x05267a02, 0x210c8f4e, 0x9d831133, 0x02112124, 0x5483a0a8, 0x07120225, 0x843cfbd0, 0x06b35a58, 0x5b08df4d, + 0x21212bd3, 0x5bef8511, 0x274e09d4, 0x20a38e06, 0x83761802, 0x20a38408, 0x08da5b01, 0x2121a38c, 0x21a38215, 0xa3823311, 0xfe120225, 0x4f20fe8e, + 0xf9230534, 0x5bf406ac, 0x03414757, 0x215f8507, 0x585b8efe, 0x09134e0e, 0x00ac0322, 0x232a5b5b, 0x23112111, 0x5b5b0382, 0xfeac2807, 0x054cfa20, + 0x87e001b4, 0xa802214f, 0xfb414f82, 0x224b8329, 0x58a0a802, 0x478907ce, 0x22061b57, 0x5629402c, 0x012306c7, 0x18860100, 0x210adf45, 0xf75b0102, + 0x0c564106, 0x9c842320, 0x03112124, 0x7457a048, 0x219f8508, 0x2f502404, 0x28f7410a, 0xeb84ed84, 0xe9840320, 0x83940721, 0x053f42e7, 0x00d00724, + 0x9f850009, 0x18040021, 0x5c1063a7, 0x9f8c08f1, 0x50842120, 0x9f822320, 0xfd720129, 0x07a0a0ee, 0x41dcfbd0, 0x06210541, 0x0aa34f04, 0x84344b5d, + 0x5560835a, 0x5f890a9e, 0x04e00123, 0x2cbb8224, 0x01500002, 0x036004cc, 0x000300ac, 0x18bd8407, 0x7615f4db, 0x112115d1, 0x2c648223, 0x48fe6004, + 0x0348fea0, 0x0120feac, 0x820383e0, 0x02002956, 0x98fe6801, 0xf8074803, 0x27775784, 0x0111212d, 0x03215582, 0x274e8548, 0x40fcf807, 0x60fac003, + 0x6b410583, 0x48032307, 0x8f600c03, 0x263e821f, 0x0cf90c03, 0x4100f406, 0xd7420747, 0x82212030, 0x05e34386, 0x418efe21, 0xd84205ee, 0x068b4405, + 0x412cd742, 0xfe210587, 0x21498320, 0x47866cf8, 0x88053742, 0x00012347, 0x5b188601, 0x046011b1, 0x4293880e, 0x8f820980, 0x54cc0121, 0x7f7c0673, + 0xfbba2224, 0x05ad413c, 0x84000021, 0xa802213b, 0x977e8382, 0xa8022325, 0x3b8c4efd, 0x072b7784, 0x26402900, 0x00030104, 0x82570302, 0x020124af, + 0x82670100, 0x0203220e, 0x2011825f, 0x108d5f02, 0x830ac453, 0xa0a0244d, 0x82e001a0, 0x00042236, 0x20c7824b, 0x318b8465, 0x000b0007, 0x4027000f, + 0x02040624, 0x01010003, 0x08845700, 0x5f01002b, 0x03030507, 0x4f010001, 0x25008511, 0x1e060810, 0xca4f012b, 0x2c078806, 0x01969677, 0xfd96962c, + 0x039696a8, 0x42038284, 0x5442089b, 0x00002a05, 0xfd680104, 0x084803f8, 0x084b5048, 0x32403528, 0x00010000, 0x654b0085, 0x02033a05, 0x04030085, + 0x04008503, 0x00850405, 0x85050605, 0x06070600, 0x07070085, 0x59798c76, 0x212105ef, 0x21078615, 0x03436801, 0x83678505, 0x4808240b, 0x87a0e4fd, + 0x205c8202, 0x2eab4108, 0x20096f41, 0x0cab4303, 0x39000b2b, 0x05083640, 0x05060307, 0x20b88201, 0x250a8657, 0x045f0001, 0xc8820202, 0x18084f21, + 0x20168593, 0x05c75d06, 0x2605b745, 0x40011123, 0x838002f0, 0x09c04302, 0x2006c443, 0x06234103, 0x23419820, 0x40292206, 0x1a214126, 0x17410520, + 0x06102505, 0x012b1c06, 0x410a1541, 0x08240d11, 0xa0e0fc98, 0x4a820284, 0x5c680121, 0x536006f3, 0x11212b1b, 0x20fe4803, 0x9cfad007, 0x33826405, + 0x6108cf5a, 0x11202cb3, 0x57057f43, 0x044505b2, 0x05004505, 0xe35d0120, 0x4024250a, 0x02010321, 0x8221f762, 0x4803234c, 0xc25daefc, 0x56468505, + 0x03200523, 0x23058760, 0x041c401f, 0x2207bd58, 0x82850001, 0x6176201b, 0x232110a0, 0x08e25e11, 0xf99cfa25, 0x825406ac, 0x5c0120dc, 0x8b850a87, + 0x84211364, 0x7201238b, 0xd485aefc, 0x45040621, 0x07210923, 0x222345d0, 0x2005975a, 0x426b4600, 0x63412120, 0x8efe2708, 0x8efe20fe, 0x6c467201, + 0x09c3490f, 0x97180720, 0x7263289f, 0x875a8605, 0x48f42356, 0x7741b405, 0x5e04200b, 0x2a200523, 0x2c036018, 0xaa87ae8c, 0x8409b762, 0x000d3953, + 0x07344037, 0x06000601, 0x04030085, 0x01058603, 0x00040100, 0x00010057, 0x2e069a51, 0x5f040000, 0x04000400, 0x0000004f, 0x440d000d, 0x08290519, + 0x012b1c06, 0x21153311, 0x05134115, 0x02112126, 0x7201a0a8, 0x20051641, 0x06095702, 0x89acf921, 0x05af5bc3, 0x00ac032b, 0x402f0009, 0x0302002c, + 0x20698202, 0x20718204, 0x2a568257, 0x01000301, 0x04010567, 0x825f0304, 0x58032011, 0x65821165, 0xcc822320, 0x02a80223, 0x08225a12, 0x3d835d85, + 0x60082f43, 0xa8450e03, 0xff511809, 0x146f5909, 0xe9655a88, 0x3cfb2305, 0x7b41a0a0, 0x60b78507, 0x04220a03, 0xbd848505, 0xbc8c0020, 0xbb8b0020, + 0x20104f5b, 0x21bc8311, 0xbe881121, 0x4108974a, 0x0132181f, 0x05860100, 0x00030401, 0x03005704, 0x03000200, 0x0e826702, 0x6309734f, 0x21200d81, + 0x4c05fd4b, 0x0121089d, 0x05394772, 0xa0540623, 0x0b4f44a0, 0x220c8f5a, 0x84000103, 0x8201205b, 0x0c8f675b, 0x2a0fbd49, 0x21352135, 0x01480311, + 0x42aefc72, 0xa02309f2, 0x4bc404a0, 0x1f41094f, 0x0500210a, 0x2007174a, 0x20608304, 0x06466204, 0x154c8682, 0x0e1f4108, 0x1120bc83, 0x58436387, + 0x83c2820f, 0x094b5a68, 0x36000d34, 0x01073340, 0x85060506, 0x03020300, 0x00050086, 0x91470502, 0x05002208, 0x07745c05, 0x2311ae42, 0x15211521, + 0x61092d4b, 0xa6620528, 0x3cfb2305, 0x334ba0a0, 0xffff2d07, 0x85fdb5ff, 0x2d07fb04, 0x56072602, 0x06214582, 0x205e8307, 0x20178200, 0x231785ba, + 0x57074700, 0x0cbb5218, 0xf6222f83, 0x88182d07, 0x01390923, 0x04270117, 0x50fb9066, 0x472d0791, 0x00489ff6, 0x02500002, 0x0360046c, 0x32834a0c, + 0x35211523, 0x4a038223, 0x0c210783, 0x820082a0, 0x02002896, 0xf8fd0802, 0x4608a802, 0x7f4a05bb, 0x1123272c, 0x11231113, 0x4982a802, 0xfb980827, + 0xfa000500, 0x20058360, 0x052f4c00, 0x4aa80221, 0x3a841e7b, 0x5e077a4a, 0x3386056b, 0x82209b49, 0xa80223c8, 0x73674efd, 0x081f6008, 0x29075f49, + 0x57030002, 0x01000200, 0x5f490200, 0x08ea5105, 0xed680020, 0x6311200a, 0x042b05ba, 0xfd4efdba, 0x031202ee, 0x4120feac, 0x04260514, 0x6c024b00, + 0xbf846504, 0x232f5f49, 0x33252315, 0x01200389, 0x200f5f49, 0x8361820c, 0x04002102, 0x49067741, 0x33234057, 0x8a152311, 0x08022103, 0xa0206186, + 0x68104f49, 0x5f412ed3, 0x42032009, 0x4f490c77, 0x5240183c, 0x094f490a, 0x21061441, 0x8b420300, 0x000b210c, 0x412a4749, 0x41491201, 0x0000240b, + 0x6b080201, 0x434906b7, 0x6923201b, 0x42490597, 0x2eab4805, 0x21113324, 0x3b513311, 0x51a02005, 0x93500638, 0x0b274710, 0x02010226, 0x00010586, + 0x820be044, 0x0a51610e, 0x200e2747, 0x07e24421, 0xfd503520, 0x8efe2309, 0x0b4f7201, 0x54062108, 0x44067466, 0x274706e7, 0x2f074608, 0x21112323, + 0x08056c35, 0x21051843, 0x06464cfa, 0x05074d05, 0x07ba0423, 0x058b69d0, 0x20065f52, 0x2d074600, 0x02a80223, 0x05744312, 0x46054f48, 0xbe844d07, + 0x220e2747, 0x8420fedc, 0x0b6f46c2, 0x4b3a4748, 0x68460725, 0xac032305, 0x4848a0a0, 0x48012007, 0x03254347, 0xfe720148, 0x05394b8e, 0x4a514748, + 0x3c201480, 0x0421c186, 0x0be34a24, 0x21072747, 0x8f470600, 0x01052c07, 0x05005700, 0x05010400, 0x82006704, 0x09a16e2a, 0x2212ae42, 0x47231123, + 0xfd2308f7, 0x4aa0a0ee, 0xa0210dec, 0x09a76ea0, 0x00d00722, 0x6734bb51, 0xbb51085e, 0x6dcd830d, 0x5f820ccb, 0x202c074d, 0x074a4815, 0x013cfb25, + 0x64d00772, 0xef8205b8, 0x5305ff4b, 0x35203a63, 0x4c0b6353, 0xa02005d1, 0x4d069b48, 0x052006e3, 0x700ea773, 0x5f4d1c57, 0x09577007, 0x223a6353, + 0x4d112115, 0x6353056e, 0x05474108, 0x00640522, 0x870ae364, 0x21734d9f, 0xf1494f82, 0x71072005, 0xf7700e87, 0x05034539, 0x4c066a4b, 0x0c540b28, + 0x0aab4e05, 0xf3416384, 0x675b842c, 0xfb4e070c, 0x069b6d0e, 0x84365357, 0x095357af, 0xd852dc20, 0x24042205, 0x08575200, 0x842c4f72, 0x05654c4e, + 0x4dfcf921, 0xa38b10df, 0x84265357, 0x0d5357f9, 0x20fedc26, 0x94074cfa, 0x8b66a385, 0x29fb4108, 0x7966a384, 0x20fe2107, 0x4d056f4f, 0xf3720a07, + 0x059b5735, 0x4f051e45, 0xec43083b, 0x09475909, 0x87310b72, 0x093b4f5a, 0x56054044, 0xaf720cb7, 0x05f54c32, 0xfe8efe24, 0xb0720720, 0x0ef34c08, + 0x56320b41, 0x0e4e08b3, 0x43dc200d, 0xab440b06, 0x36177305, 0x17736082, 0x08624e0a, 0x5005db4b, 0x23203747, 0x50079547, 0x5f580c46, 0x000c2208, + 0x1d2b760e, 0x0d000e2b, 0x06042114, 0x15012b18, 0x5d7a1823, 0x023e3b07, 0x96ba0433, 0xa067ad68, 0x70c39554, 0x67a00c03, 0x28fb68ad, 0xc370d804, + 0x5b595495, 0x225b830a, 0x5b244027, 0x013c1609, 0x070b0d00, 0x010e0006, 0x1606040e, 0x1e32132b, 0x23111502, 0x26263411, 0x8c352323, 0x55834983, + 0x0c039622, 0x5c836283, 0x00206e83, 0x2107b34c, 0xb7826009, 0x21402426, 0x01000100, 0x0bed6018, 0x5b010321, 0xb6880664, 0x3335032e, 0x35363632, + 0x14113311, 0x0a23020e, 0x0221b588, 0x235f836c, 0x28fbd804, 0x0120b584, 0x8405f376, 0x40262257, 0x25b38323, 0x00020085, 0xce600200, 0x01032105, + 0x4f200c82, 0x0123b28d, 0x84022e22, 0x16162657, 0x04153333, 0x21b38824, 0xb3836c02, 0xb3855a83, 0x00032308, 0x04a2004b, 0x00be0465, 0x001c0003, + 0x40490028, 0x02060746, 0x01010203, 0x0001014c, 0x0401034a, 0xc7820549, 0x2207de55, 0x18040304, 0x080a16a9, 0x01066229, 0x52030203, 0x04051d1e, + 0x281d2224, 0x1314281e, 0x1c04090b, 0x06071c05, 0x09132b16, 0x07221302, 0x33363617, 0x82151632, 0x15152cdf, 0x3e343533, 0x26343502, 0x18062203, + 0x3c08c0f7, 0x020d024b, 0x09f3fd0d, 0x1c3e5079, 0x3b2d2045, 0x58314131, 0x64334333, 0x26261c6e, 0x0803821c, 0x02b00221, 0xfdf2fd0e, 0x5d3703f2, + 0x2920232f, 0x2c2e2426, 0x1f243943, 0x3e2c352f, 0xfd593937, 0x821b27ec, 0x1c400824, 0x0000271b, 0x01ffff00, 0x031d0507, 0x000e06a8, 0xfea20706, + 0x01010000, 0x0382fe84, 0x00b2ff2e, 0xb15c000e, 0x40446406, 0x02010b0a, 0x00010c01, 0x4b4c0202, 0x58500db0, 0x01001740, 0x70010202, 0x2109037c, + 0x1d820362, 0x1b520024, 0x66411640, 0x82592009, 0x8600202f, 0x593b0818, 0x00010d40, 0x04050709, 0x0e010e00, 0x2b160904, 0x440006b1, 0x35262201, + 0x14153335, 0x37363233, 0x02060617, 0xa2776b66, 0x1b312354, 0xfe612045, 0x5b5f7682, 0x11115457, 0x822e1960, 0x269382a3, 0x02a504d0, 0x4f5c06e2, + 0x032d0bd7, 0xc71b0227, 0x5c06878b, 0x176efe25, 0x26238200, 0x02d103c7, 0x8e8805e9, 0xd8112823, 0x88058e94, 0x826ffe26, 0x01032823, 0x03dd040c, + 0x823007a2, 0x000f2423, 0x8440001b, 0x023530df, 0x01000101, 0x0201034c, 0x02054a00, 0x82000304, 0x8459200e, 0x01002308, 0x0c820361, 0x18510121, + 0x20106e6c, 0x23c38608, 0x07270317, 0x169d6b18, 0xc14e022e, 0x31917f7c, 0x33314444, 0xdb014444, 0x332c0482, 0x07444431, 0xa9fe2630, 0x31440115, + 0x038a0b82, 0xffff0039, 0x9904de01, 0x5606d202, 0xa8070701, 0xe1060000, 0x00b10900, 0x1806b801, 0x9c090fc4, 0x86b4821f, 0x0c00231f, 0xd7842e00, + 0x84052321, 0x010221d7, 0x6378d084, 0x0001280a, 0x0c000607, 0x87030c01, 0x08c183c5, 0x23170728, 0x34352627, 0x31520236, 0x703a2f44, 0x06432163, + 0x3b314256, 0x47d3ea25, 0x00423130, 0x34010200, 0x6c037f04, 0x5f824906, 0x34001022, 0x29246184, 0x03080e10, 0x4c245e82, 0x4901010f, 0x072267a7, + 0x67833723, 0x13052508, 0xb4010307, 0x63214331, 0x432f3a70, 0x7b5d8d01, 0x4249068e, 0xd3473031, 0x313b25ea, 0x60fe0a42, 0x00940120, 0x36207783, + 0x05207793, 0xdf8677b0, 0xaa207784, 0x0121e387, 0x87778696, 0x20778ae8, 0x20778234, 0x22efc961, 0x8a270317, 0xac3323ef, 0xef8c7b8e, 0x6cfe2c23, + 0x41ee8220, 0x61220667, 0x67414a06, 0x83efb90d, 0x88a82077, 0x833e20ef, 0x414a2077, 0x322207d8, 0x77890b41, 0x04052208, 0x06a60382, 0x001400d4, + 0xb1540022, 0x40446406, 0x02121349, 0x07080203, 0x16010002, 0x03040501, 0x060e524c, 0x03006935, 0x04000106, 0x00690003, 0x04050504, 0x04040059, + 0x82075f05, 0x4f053621, 0x00011515, 0x22152215, 0x0e101a1c, 0x03050a0c, 0x14011400, 0x07674208, 0x2626222d, 0x07062223, 0x33363627, 0x43161632, + 0x012305f8, 0x19352637, 0x08086d1a, 0xca02073f, 0x24424d35, 0x73183022, 0x384c6e23, 0x1e253f4c, 0x4f721b31, 0x4125a7fe, 0x42333244, 0x05292317, + 0x2f3030e3, 0x694a3a2d, 0x2c2b2f30, 0x9ffeb039, 0x3141277c, 0x1a314242, 0x00494140, 0x20828202, 0x20c38284, 0x20c384d6, 0x20c3844f, 0x23c38944, + 0x05040122, 0xa082c38e, 0x05006922, 0x5920be82, 0x096fad18, 0x1e000125, 0x8915161c, 0x9b0720be, 0x230323be, 0xc0882627, 0x3625be82, 0x2324414d, + 0x2bbe8d2f, 0x24286dac, 0x33324216, 0xe5054144, 0x4923bd8e, 0x831a4041, 0x284022be, 0x28008200, 0x040d0103, 0x07a103dd, 0x489f4401, 0x25071322, + 0x171a7c18, 0xeeb90127, 0x01eefe4f, 0x069844e4, 0x318bfe2f, 0x32314444, 0x01074545, 0xfd48dbfe, 0x10a144ca, 0x0f209f84, 0xa3209f82, 0x17219fca, + 0x193f4505, 0xfe73fd25, 0x45894fee, 0xd9200740, 0x0725a786, 0x48fd7001, 0x2e9d9115, 0x040d0103, 0x07ae03d0, 0x00140004, 0x462c0020, 0x512006bb, + 0x2009fd41, 0x0abd4202, 0x00010826, 0x69000305, 0x2005c379, 0x32068259, 0x0a610405, 0x04030906, 0x22510405, 0x01151621, 0x19262800, 0x2013089c, + 0x1b0a420b, 0x42220121, 0x06210808, 0x210b8a21, 0x1442d202, 0x2efe2113, 0x0ffa9b19, 0x42130621, 0xbd230d1c, 0x19323142, 0x370ce89b, 0x6401ffff, + 0x4903fa04, 0x06004606, 0x00009b07, 0xc6010100, 0xe802d103, 0x2e0cf346, 0x02030713, 0x948e4a9e, 0x60fe8805, 0x82910117, 0x826d2033, 0x84522033, + 0x009c2533, 0x01ffff00, 0x23062747, 0x86070602, 0x2d11ff47, 0x0e01ffff, 0xa0030d05, 0x0600f405, 0x1f84ac07, 0xaf04d42c, 0xb005de02, 0xad070601, + 0x95469a02, 0x9aff2405, 0x832b35b0, 0x188f877f, 0x2f087742, 0x25070501, 0x9101b801, 0x0655fe3a, 0xad66e646, 0x7f87a382, 0x172d2389, 0xfd022705, + 0x3a55fe55, 0xad9f4606, 0x26938366, 0x038b040c, 0x822806a4, 0x00b02163, 0x02216384, 0x366388b8, 0x03a90409, 0x00e405a7, 0xb1210006, 0x40446406, + 0x03040516, 0x67050102, 0x0623096b, 0x48020600, 0x05370754, 0x27072707, 0x01980225, 0xfdff500f, 0x05110152, 0xa25cdfe4, 0x82df5ca2, 0x04092287, + 0x2047828d, 0x204782c8, 0x2f47841a, 0x0405060f, 0x4a000401, 0x76000000, 0x17090112, 0x36059548, 0x25230517, 0x57031737, 0x7ef1fe50, 0xfd52effe, + 0xde5dc805, 0x82a35dde, 0x0426283f, 0x058a0394, 0x470d00a8, 0x0b2c075f, 0x0403040a, 0x01004a01, 0x59010000, 0x00302082, 0x00010261, 0x01510001, + 0x00060800, 0x030d010d, 0x2109e948, 0xef443727, 0x02063b07, 0x0ca87a54, 0x4656157d, 0x7d155c48, 0x9404ac0c, 0x3c1a708a, 0x1a3c4747, 0x89828a70, + 0x01ffff2d, 0x036a0471, 0x0116063f, 0x41b50706, 0x1b820d0b, 0x1d05092c, 0x0e06aa03, 0xb6070600, 0x0f820002, 0xdc044626, 0x6b056c03, 0xb7202b82, + 0x2b0f9b41, 0xdc04a600, 0x6b050c04, 0x20000300, 0x1520ef84, 0x240f417c, 0x09021011, 0x2bf58518, 0x04213521, 0x039afc0c, 0x8fdc0466, 0x28058f41, + 0x06a403f1, 0x0747008e, 0x095f59b0, 0xcf2e6f82, 0xc3024304, 0x07010006, 0xf1ffa807, 0x0d428b06, 0x8b062405, 0x852b35b0, 0x828920bb, 0x827d201f, + 0x07472a1f, 0x065b04a8, 0x4000c08b, 0x29238d00, 0xde010100, 0xd202b8fd, 0xa74875ff, 0x48082009, 0x47411fa7, 0x32052506, 0x07141516, 0x21063f48, + 0x3b485e02, 0x8b442106, 0x31093548, 0xffff0000, 0x08fe7001, 0x0d004203, 0xb8070601, 0x7d85ed02, 0x84edff21, 0x000128a1, 0x032c02f7, 0x41bb02b7, + 0x03312713, 0x0240fdb7, 0x8f2c02c0, 0xff010000, 0x042c02cb, 0x253ba9e7, 0xe4fae704, 0x3b841c05, 0x53430220, 0x000b2808, 0xb1330017, 0x77446406, + 0x0024053d, 0x01035901, 0x612efd82, 0x03040205, 0x51000100, 0x00010c0d, 0x8a191113, 0x42420ad1, 0x08254709, 0x210b5b44, 0x45448501, 0x0d05210f, + 0x820f3644, 0xd2012bbb, 0xdc021505, 0x0b001606, 0x7d842800, 0xad491d20, 0x00612d0b, 0x51010001, 0x05070001, 0x0b010b00, 0x4a08b542, 0x02330ad7, + 0x4a4a3c56, 0x4a4a3a3c, 0x354a1606, 0x374b4b37, 0x82004a35, 0x01012800, 0x03dc046a, 0x4b350645, 0x252e0a73, 0x09030537, 0x015f61fe, 0xbadc047c, + 0xff43f19f, 0x02002423, 0x42040c01, 0x0331056f, 0x08000700, 0x030507b5, 0x2b320201, 0x03171301, 0x35038237, 0x9fa20c01, 0x9db4d1cb, 0x012c05de, + 0xb2fe4b62, 0x51620137, 0x7f84b4fe, 0xe4040926, 0x3306a703, 0x200fd343, 0x0dd34349, 0x25272008, 0x27070533, 0x01565f01, 0x0f017e11, 0xe404fb52, + 0x5bf4f45b, 0x010100b6, 0x03530544, 0x42e2056a, 0x6a28280f, 0x2602dafd, 0x008f5305, 0x7b963b82, 0x2a154f44, 0xf1fe5255, 0x56effe7e, 0x833306fb, + 0x82b7207b, 0x0426283f, 0x068903e6, 0x440f001c, 0x0c23074f, 0x4404050b, 0x0925154f, 0x010f0007, 0x0899410f, 0x26262222, 0x08085044, 0x02020e36, + 0x47815e54, 0x57147d08, 0x145b4846, 0x844a087e, 0x8457e604, 0x5d4a1a41, 0x411a4a5d, 0x00005784, 0x71010200, 0x3f03d004, 0x0b007c06, 0x38001700, + 0x446406b1, 0x1b1b5518, 0x42188442, 0x4c180a11, 0x66230db2, 0x83668181, 0x3a2f3903, 0x38312f3a, 0x7d7c0638, 0x7d7d585a, 0x677d5a58, 0x3b34343c, + 0x3c34343b, 0x674eef82, 0x00142207, 0x2081843f, 0x0c9b4734, 0x00010324, 0x5f4a5903, 0x4f8c1809, 0x00012108, 0x20098949, 0x090d4305, 0x2111484a, + 0x6647cc02, 0x1d052113, 0x26065447, 0x2c2b302f, 0x8200b039, 0x05442687, 0x056a0342, 0x2ef341d1, 0x838f4221, 0xfe6e283b, 0x0040031b, 0x41140020, + 0x06340745, 0x10010001, 0x0f000301, 0x03030201, 0x0001004c, 0x00010300, 0x10398b18, 0x11262426, 0x1a090412, 0x08056b45, 0x23263436, 0x16153337, + 0x06141516, 0x27262223, 0x32331637, 0x5da20236, 0x647d1352, 0x3e679659, 0x3d392770, 0xfe413449, 0xe81f33e6, 0x3f64098f, 0x161d6763, 0x00242069, + 0x01280082, 0x2dfe8901, 0x44002103, 0x25317f82, 0x446406b1, 0x010b1a40, 0x004a0002, 0x00010100, 0x43208359, 0x252105ca, 0x07d84527, 0x0e172523, + 0x05365002, 0x06073722, 0x25086e83, 0x03363435, 0x6a651c05, 0x203d3326, 0x1d132436, 0x8974263a, 0x2b4444bb, 0x2d25474d, 0x8e070733, 0x59740807, + 0x4a83a072, 0x03f30127, 0x05d502ed, 0x0adb4377, 0x27031730, 0x73ad2802, 0x1477056f, 0x00118afe, 0xcb45ffff, 0x07062308, 0x0f8300a8, 0x050f2208, + 0x06a103fe, 0x070701e5, 0x000100ac, 0xb10800f1, 0xf1b00200, 0xff2b35b0, 0x06d301ff, 0x07dd0206, 0x201b8207, 0x201b87ad, 0x291b8401, 0x6a010100, + 0x4703e605, 0x6b8a2907, 0x2507052e, 0x7b01cc01, 0x075afe37, 0xa465de29, 0x66202382, 0x4b222382, 0x238a2307, 0x2705172d, 0xfe53f802, 0x2307324d, + 0x83659e9f, 0x050d267f, 0x07a503e2, 0x2063827f, 0x827f8db0, 0x05092a3f, 0x07a703ed, 0x00060028, 0x15434819, 0x2b160723, 0x0f3f4801, 0x48280721, + 0x0521093f, 0x203f82e4, 0x213f821e, 0x3b484012, 0x1707230d, 0x3748012b, 0x1e07260f, 0x5cdede5c, 0x2c7782a2, 0x03eb0527, 0x00ff068a, 0x4026000d, + 0x20334823, 0x22208483, 0x3209de43, 0x56020606, 0x7e0da77b, 0x47465714, 0x0c7d155b, 0x48eb05ac, 0x72260f2f, 0x4003c105, 0xf3826d07, 0xf38db520, + 0x01ffff29, 0x030e0608, 0x82ff06a9, 0x41b6201b, 0x1b820d73, 0x33064526, 0xc2066b03, 0xb7201b82, 0xe7421b90, 0x06022f06, 0x0000b807, 0xa5010100, + 0x0b038204, 0x57611806, 0x75022b0d, 0x5ef8fe96, 0xfe621806, 0x23833bcc, 0x03b30525, 0x8e38070d, 0x96772923, 0x075ef6fe, 0xdcfe6138, 0xcc282383, + 0xbe022704, 0x0e00dd05, 0x2007f344, 0x18fb4709, 0x00070825, 0x460e010e, 0x22080d8d, 0x37230707, 0x34352626, 0x314a0236, 0x511f1543, 0x1c15386d, + 0x41dd0546, 0x41401a31, 0x3013e3a9, 0x8242311d, 0x2cdb82ae, 0x03540305, 0x006205ab, 0xffcc0727, 0x24128267, 0x00cc0707, 0x83078299, 0x829e20cb, + 0x8212201b, 0x0003281b, 0x6406b11f, 0x82144044, 0x85002614, 0x01010102, 0x24218276, 0x11030003, 0x070c4a03, 0x0333132f, 0xcba99e01, 0x025403e6, + 0x00f2fd0e, 0x2f7d1805, 0x3529080c, 0x45003d00, 0x4f405200, 0x38394041, 0x01060704, 0x0001004c, 0x03010503, 0x00050069, 0x06050706, 0x00070069, + 0x04070204, 0x387d1869, 0x14152b12, 0x42440001, 0x32343a3c, 0xdf7b2b2d, 0x060a220b, 0x49d81816, 0x06142521, 0x26222306, 0x2f066d4c, 0x13171405, + 0x06222326, 0x03273405, 0x36323316, 0x21467d18, 0x8946a23b, 0x478b6465, 0x9d97979f, 0xc3113afe, 0x4d45271b, 0xc2102201, 0x4b45261c, 0x5a7d1824, + 0x5d063b21, 0x98595998, 0xbfc08c5d, 0x012f448d, 0x6b630d34, 0xc9fe2d48, 0x00006210, 0x1f410300, 0x0046330c, 0x36634066, 0x35030601, 0x34060501, + 0x03050801, 0x05820b4c, 0x0805043d, 0x01008004, 0x01060300, 0x06006903, 0x06080500, 0x04006905, 0x04020700, 0x180a6907, 0x2a1879d9, 0x43462846, + 0x33373b41, 0x412a2c30, 0x0c200b2f, 0x31222f41, 0x33161403, 0x34353632, 0x23222326, 0x15252515, 0x78183232, 0x22230802, 0x41352626, 0x6e352030, + 0x805c5b81, 0x15035c80, 0x0e01f2fe, 0x5e020d09, 0x9a5c5c9a, 0x4105825e, 0x0123212d, 0x83815bfe, 0xdead233d, 0x338597de, 0x27410582, 0x2f3f080c, + 0x67004b00, 0x2a2e6440, 0x02041517, 0x343d4504, 0x0618202b, 0x393c0207, 0x06043336, 0x004c0307, 0x04030001, 0x09690301, 0x02000401, 0x69020407, + 0x06000700, 0x67060705, 0x0005010a, 0x82590500, 0x05250806, 0x01086100, 0x51000500, 0x14143031, 0x3e400001, 0x4b303738, 0x2f144b31, 0x26282f14, + 0x090b191b, 0x13011300, 0x1228410b, 0x16150331, 0x23260717, 0x14150622, 0x35360117, 0x82022e34, 0x1707300b, 0x35373636, 0x37363213, 0x15070627, + 0x46263523, 0x352306a2, 0x82012734, 0x021e2128, 0x08102f41, 0x3d5e572a, 0x274a3a41, 0x38020d2f, 0xc092521d, 0x48e3876e, 0x39560fdc, 0x47ed8e38, + 0x68851af3, 0x46215f44, 0x362b5a41, 0x29e0fd0f, 0x34411e82, 0x042f0810, 0x3b0d7e3c, 0x1c1d314a, 0xddfe1214, 0xc06e5a55, 0x667b5292, 0x093b2f71, + 0x893cfc7f, 0x1a6b7e70, 0x2d057c82, 0x253b4d20, 0x01151a22, 0x836b631a, 0x00002220, 0x0c6b4204, 0x5b004137, 0x6f407200, 0x05022b45, 0x38465204, + 0x0506042c, 0x07023953, 0x093f4106, 0x0e080f36, 0x01090403, 0x05040605, 0x06010a69, 0x0207010b, 0x0d690706, 0x82056f42, 0x02240806, 0x010c6100, + 0x51000200, 0x28294243, 0x00011415, 0x4e505557, 0x5b42484a, 0x3b3d5b43, 0x2e303436, 0x41294128, 0x200b7942, 0x12504110, 0xdb182720, 0x03250ef3, + 0x07171632, 0xf4111926, 0x98212013, 0x105e4119, 0xdc188720, 0x553a0e12, 0x38304a2d, 0x2c1a321d, 0x21313237, 0x2b3a1a2f, 0x7f6b324b, 0x2dfe0188, + 0x16852f4b, 0x84303321, 0x334a2116, 0x6d411682, 0x29dc1810, 0x112a3211, 0x0a175e24, 0x475c5552, 0x225e1211, 0x82908919, 0x41119197, 0x3e080c6f, + 0x00460031, 0x4068004d, 0x022f3e65, 0x173d0402, 0x4b020302, 0x1f20234a, 0x08181c1d, 0x24340306, 0x04060502, 0x0306004c, 0x05060305, 0x00010080, + 0x04010204, 0x02010869, 0x02060300, 0x42096903, 0x068205b8, 0x6100053c, 0x05000107, 0x32335100, 0x00011415, 0x46323538, 0x2c2e4633, 0x3114191a, + 0xb6423115, 0x130f4505, 0x2c055541, 0x13072223, 0x06173736, 0x3e170706, 0x05bb4202, 0x3617073c, 0x27373213, 0x26222322, 0x37363435, 0x15020e27, + 0x03021e14, 0x03171614, 0x57410606, 0x7c290810, 0x4b34694c, 0x0f105046, 0x45212381, 0x261f3415, 0x52589a64, 0x2a6ec092, 0x111b2729, 0x0b262525, + 0x5bb8910c, 0x9863294a, 0x25158257, 0x73485a32, 0x4d411916, 0x04270810, 0x64282807, 0x1bfe0339, 0x14661e10, 0x268e0d23, 0x6e71c693, 0x065292c0, + 0x71fc0493, 0xb9c49105, 0x9b2bab7c, 0x84c49326, 0x13022914, 0x01067b7b, 0x005e1fba, 0xbf420082, 0x00332e0d, 0x40600041, 0x0708005d, 0x02080702, + 0x09484680, 0x04010c31, 0x69040506, 0x0906010d, 0x06080701, 0x420b6707, 0x068205b1, 0x6100022a, 0x0200010a, 0x34365100, 0x2f05b142, 0x3b3c3d3e, + 0x4134393a, 0x2d2f4136, 0x33293328, 0x200bad42, 0x22ad420e, 0xb4521320, 0x33072c0a, 0x15151632, 0x35231523, 0x46343523, 0x6e242153, 0x2d40402d, + 0x81270382, 0x643f30a8, 0x413f64be, 0x76421028, 0xe7022210, 0x0830833f, 0x3f2d2d2d, 0xd5303f38, 0x30d5fcfc, 0x0005003f, 0x091eff54, 0x00ee0550, + 0x016e017c, 0x01a40184, 0x41f302ae, 0x00650166, 0x000e0001, 0x825a010f, 0x00112407, 0x8261010e, 0x000c2607, 0x01910111, 0x3a278281, 0x01490152, + 0x00380143, 0x00080080, 0x010c0012, 0x008a0196, 0x000d0002, 0x829b0112, 0x0b3e0827, 0x88011600, 0x7b001301, 0x15000300, 0x0f010b00, 0x90000901, + 0x8a008f00, 0x73008600, 0x0a000700, 0x2b011300, 0x0c012701, 0xfa00fd00, 0x7600de00, 0x69006e00, 0x64006500, 0x0c005f00, 0x1f820900, 0x4582ec20, + 0x02000428, 0x6000d700, 0x45825800, 0x04000328, 0x5c00a600, 0x0b825b00, 0x03820720, 0x1f825520, 0x49820620, 0xcc00d230, 0xbf00c300, 0xaf00b700, + 0xac00ad00, 0x3d82ab00, 0x06000822, 0x4c22b982, 0x23827d01, 0x03820d20, 0x4b4b7608, 0x585014b0, 0x0c008f40, 0x0c0f1211, 0x0d120072, 0x7e0d1211, + 0x11160d00, 0x007e160d, 0x16110b16, 0x15007e0b, 0x150b140b, 0x14130072, 0x0a13140a, 0x090a0080, 0x7e090a14, 0x14020900, 0x007e0209, 0x02140402, + 0x04007e04, 0x03041403, 0x0703007e, 0x7e070314, 0x14060700, 0x007e0607, 0x06140806, 0x08007e08, 0x05081405, 0x0505007e, 0x00000084, 0x10000f10, + 0x2a798269, 0x0f010e0f, 0x0c110069, 0x82591114, 0x150b2391, 0x0d820b0e, 0x6114112b, 0x14111400, 0xb04b1b51, 0x2096822c, 0x23968390, 0x80120c11, + 0x21889740, 0x92a29140, 0x41801421, 0x59086b2b, 0x2f415959, 0xac01ad01, 0xa801aa01, 0xa001a201, 0x9c019f01, 0x8e018f01, 0x72017401, 0x68016a01, + 0x5d015f01, 0x57015901, 0x4c014d01, 0x45014601, 0x3a013c01, 0x23012501, 0xe300e400, 0xb200b300, 0xa400a500, 0x51005300, 0x47004900, 0x37003900, + 0x31003300, 0x2b002d00, 0x01822600, 0x06001730, 0x132b1800, 0x3e373636, 0x1e323302, 0x2a593302, 0x14152805, 0x16303106, 0x83021e17, 0x16163702, + 0x020e1415, 0x23060607, 0x020e2722, 0x27262223, 0x22232626, 0x13840706, 0x1d820720, 0x28051d4a, 0x31022e27, 0x27263037, 0x224c8227, 0x83070606, + 0x20048906, 0x232c8234, 0x37023e27, 0x06821883, 0x82250521, 0x06172a24, 0x17141506, 0x27262607, 0x21168223, 0x61822707, 0x83141521, 0x827d8274, + 0x31162219, 0x82248330, 0x37172338, 0x9a820717, 0x29823520, 0x021e3722, 0x37231682, 0x8227022e, 0x24ac8209, 0x26343735, 0x213d8235, 0x2b823427, + 0x2e273524, 0xb1833503, 0x82033e21, 0x3617251d, 0x032e3136, 0x5e82ab82, 0x68835783, 0x34241f82, 0x17333736, 0x35211b82, 0x23aa8234, 0x031e1737, + 0x52823082, 0xd3820e82, 0x23232783, 0x82352626, 0x826d834d, 0x17072370, 0x0f842207, 0x18373721, 0x21076680, 0xe9822317, 0x3e372727, 0x17323303, + 0x050a4133, 0x36362723, 0x21698237, 0xad832223, 0x33023e26, 0x07311632, 0x1720ce84, 0x06224d83, 0x70823106, 0x27353723, 0x20d18237, 0x22068333, + 0x82171616, 0x1507241e, 0x84300717, 0x25312140, 0x0e0b0e82, 0x27262223, 0x23841737, 0xc955618e, 0x69267ae2, 0x0f0e526b, 0x5e54395e, 0x5a5a0626, + 0x0f76b065, 0x02040503, 0x271a0d05, 0x14090e27, 0x150c2209, 0x15184948, 0x862e2035, 0x184e2a36, 0x1020464a, 0x08091b06, 0x2c480a0c, 0x61be9f32, + 0x68467f57, 0x11040f35, 0x4e331f36, 0x2f0b081b, 0x1a089616, 0x06ea2557, 0x333f641d, 0x0620524d, 0x17575e20, 0x063c9745, 0x2a858227, 0xe601dafe, + 0x021e361e, 0x080e423a, 0x0408191b, 0x0a020804, 0x03010414, 0x360f1226, 0x061b1b2b, 0x08144234, 0x2064580e, 0x8006ac0c, 0x3dbac752, 0x080f3312, + 0x152d3a13, 0x2d3b1b09, 0x43120807, 0x06081243, 0x53130222, 0x3d2f0c18, 0x28054e16, 0x1914222f, 0x14457254, 0x074d665a, 0x146a7523, 0x2819411d, + 0x58596739, 0x02061763, 0x13021937, 0x33071243, 0x06162b3b, 0x05260a0a, 0x6a091b1f, 0xa0416406, 0x393a98a5, 0x0e125075, 0x030a060e, 0x2c120c01, + 0x92131d1d, 0x3b8d6065, 0x8b045808, 0x0c2a2293, 0x141c0404, 0x16122a38, 0x10262018, 0x5e15049a, 0x32267075, 0x28090a1a, 0x48b84c29, 0x0d1e030c, + 0x45882102, 0x416b8f57, 0x2907d40a, 0x2c24595f, 0x1901660a, 0x37150c06, 0x1b7a351f, 0x023e3160, 0x36153f32, 0x21493402, 0x09341302, 0x452f0636, + 0x025c4220, 0x1d0f0ac8, 0x2949280e, 0xcc036a24, 0x434c8123, 0x241b618e, 0x4d17051b, 0x1b131b60, 0x3d2b2751, 0x3609293b, 0x3130133c, 0x574a0a11, + 0x02040645, 0x242f1106, 0x27090608, 0x4c270c2a, 0x59215067, 0x0634120e, 0x39130701, 0x5275333a, 0x0e010338, 0x10152615, 0x26100e24, 0x0e681951, + 0x78226e4e, 0x39804110, 0x27241701, 0x5f36100f, 0x37190d44, 0x75320e18, 0xb24a1f68, 0x0a030c09, 0x37508a2a, 0x4114082d, 0x0e310f15, 0x0a022002, + 0x67390915, 0x4444191e, 0x2e2e1c19, 0x010b131c, 0x15080304, 0x0a0f2f33, 0x444c0a26, 0x14042a58, 0x0e081f51, 0x13251c26, 0x16424014, 0x1d270e06, + 0x34122f15, 0x01010102, 0x27021526, 0x0a0d2a3c, 0x422b0320, 0x1d06224a, 0x01093947, 0x03151912, 0x04242d13, 0x11152503, 0x20201c0c, 0x08062543, + 0x08173524, 0x04040c02, 0x3a51331a, 0x6e135b32, 0x1b3f0640, 0x78092a11, 0x76362a06, 0x0f0e4f6b, 0x24340a13, 0x170f3f1b, 0x150f1609, 0x1f13163f, + 0x361a121e, 0x31542124, 0x4b0a6a02, 0x101f1a31, 0x0f040803, 0x2e122728, 0x2c39131a, 0x25080a1a, 0x0f101d28, 0x021a3c2b, 0x080a2517, 0x6044220c, + 0x18061357, 0x0e0a4353, 0x32450334, 0x360f1b19, 0xae300a39, 0x06092b18, 0x09090822, 0x15084404, 0x0408232c, 0x62080208, 0x0c090906, 0x0406103c, + 0x28022125, 0x01040000, 0x086cfff6, 0x008205f6, 0x010701f1, 0x00310127, 0x033e0100, 0x17163233, 0x62060617, 0x172e0695, 0x22232623, 0x0707020e, + 0x16163017, 0x9c433317, 0x32332305, 0x68520717, 0x27372205, 0x82168237, 0x06142402, 0x87141506, 0x2f428220, 0x31061415, 0x27262630, 0x2727032e, + 0x16161707, 0x07230f82, 0x83232727, 0x021e2125, 0x17210f82, 0x2f4a8337, 0x16163337, 0x17031e17, 0x2e070630, 0x030e2702, 0x27210583, 0x21208214, + 0x5f821517, 0x3636172b, 0x15161437, 0x07061407, 0x204a8222, 0x20178207, 0x20558506, 0x20368207, 0x29138315, 0x27072737, 0x2737023e, 0x6d82020e, + 0x36343525, 0x82343536, 0x23a58429, 0x37173737, 0x61834082, 0x1f4a3720, 0x20d48305, 0x82528330, 0x222b82c7, 0x8230023f, 0x821485db, 0x311624b1, + 0x82352737, 0x2e372730, 0x17073102, 0x6a822215, 0x1e820682, 0xae182520, 0x8c0807c1, 0x0a680237, 0x578f6b41, 0x02218845, 0x0c031e0d, 0x294cb848, + 0x1a0a0928, 0x75702632, 0x9a04155e, 0x18202610, 0x382a1216, 0x04041c14, 0x93222a0c, 0x0858048b, 0x65608d3b, 0x1d1d1392, 0x010c122c, 0x0e060a03, + 0x7550120e, 0xa5983a39, 0x066441a0, 0x1f1b096a, 0x0a0a2605, 0x3b2b1606, 0x43120733, 0x37190213, 0x63170602, 0x39675958, 0x1d411928, 0x23756a14, + 0x5a664d07, 0x54724514, 0x2f221419, 0x164e0528, 0x180c2f3d, 0x22021353, 0x05f94306, 0x2d07a709, 0x15091b3b, 0x08133a2d, 0x3d12330f, 0x8052c7ba, + 0x200cac06, 0x080e5864, 0x06344214, 0x362b1b1b, 0x0326120f, 0x0a140401, 0x04040802, 0x081b1908, 0x023a420e, 0xd81e361e, 0x15371f35, 0x0119060c, + 0x242c0a66, 0x07295f59, 0x20425c8e, 0x36062f45, 0x02133409, 0x02344921, 0x323f1536, 0x60313e02, 0x6a84021b, 0x28492924, 0x0a0f1d0e, 0x57137404, + 0x0c224460, 0x17250a08, 0x2b3c1a02, 0x281d100f, 0x1a0a0825, 0x1a13392c, 0x2827122e, 0x0308040f, 0x311a1f10, 0x026a0a4b, 0x24215431, 0x1e121a36, + 0x3f16131f, 0x09160f15, 0x1b3f0f17, 0x130a3424, 0x6b4f0e0f, 0x062a3676, 0x112a0978, 0x40063f1b, 0x325b136e, 0x1a33513a, 0x020c0404, 0x24351708, + 0x43250608, 0x0c1c2020, 0x03251511, 0x132d2404, 0x12191503, 0x47390901, 0x4a22061d, 0x20032b42, 0x3c2a0d0a, 0x26150227, 0x02010101, 0x152f1234, + 0x060e271d, 0x14404216, 0x261c2513, 0x511f080e, 0x582a0414, 0x260a4c44, 0x332f0f0a, 0x04030815, 0x1c130b01, 0x191c2e2e, 0x1e194444, 0x15093967, + 0x0220020a, 0x150f310e, 0x2d081441, 0x2a8a5037, 0x090c030a, 0x390a3008, 0x191b0f36, 0x34034532, 0x53430a0e, 0x090cbc18, 0x08620609, 0x08040802, + 0x08152c23, 0x09090444, 0x09062208, 0x283c182b, 0x04252102, 0x09001006, 0xb401e605, 0x9204ce08, 0x13000800, 0x26001d00, 0x3a003100, 0x4e004300, + 0x22005600, 0x2c3e1f40, 0x05000211, 0x4c010001, 0x03384152, 0xba184901, 0x503e082b, 0x0602264f, 0x06012b17, 0x26171415, 0x17163227, 0x22230606, + 0x35362726, 0x34131635, 0x10823736, 0x26300722, 0x06250683, 0x36303106, 0x83128217, 0x30312922, 0x16161726, 0x07063031, 0x30201382, 0x072a1183, + 0x34172626, 0x17163233, 0x0a820614, 0x32333724, 0x31821415, 0x22068a08, 0x031f041e, 0x0a721e0e, 0x0f090812, 0x50161a08, 0x1f0f0705, 0x58023c04, + 0x07031d0c, 0x07490129, 0x090f1701, 0x144e0223, 0x02122420, 0x01132550, 0x0503141b, 0x20050c52, 0x03092503, 0x0e205203, 0x8c041414, 0x08061f0b, + 0x55012519, 0x01030301, 0x130c1c0a, 0x140b0dfe, 0x2c061209, 0x090b0c12, 0x22362707, 0x04010708, 0x2d240c0c, 0x31070307, 0x050e3a05, 0x0f270605, + 0x0e203511, 0x26090206, 0x11110c03, 0x191f080c, 0x26008200, 0xffdafd0e, 0x4bd6061e, 0xad360adf, 0xc201b801, 0xd501cc01, 0xe901e001, 0xfd01f201, + 0xea030502, 0xf14b7641, 0x81240818, 0x43015201, 0x15000300, 0xb0010c00, 0x9101aa01, 0x49016e01, 0x80003801, 0x12000700, 0xb3011500, 0x8a019601, + 0x0d201f82, 0x2008fd4b, 0x08fd4b17, 0xfd4b1620, 0x01e12816, 0x01dc01de, 0x4cc701d6, 0x64321207, 0x18000f00, 0xf3010a00, 0x6500ed01, 0x04005f00, + 0x0f820900, 0x213f114c, 0x114c0010, 0x0d2d080c, 0x9c405850, 0x15110c00, 0x00720c0f, 0x150d1512, 0x00800d12, 0x0d15170d, 0x17007e17, 0x0b17150b, + 0x160b007e, 0x00700b15, 0x16151416, 0x09eb4a70, 0x0a141829, 0x18007e18, 0x4c181409, 0x15234f1e, 0x4c150e12, 0x12200d1e, 0x9d20a382, 0x1421a3a7, + 0x20a4f57e, 0x20a48214, 0x26a4a19e, 0x16007e16, 0xf5161514, 0x9f4021a5, 0x1123a083, 0x4180150c, 0xa1fb1aea, 0x59595934, 0x05023341, 0xc1010302, + 0xbe01c001, 0xa701bc01, 0xe84ca601, 0x00192650, 0x2b180006, 0xe80c1001, 0x26338101, 0x17162326, 0x17343526, 0x14152726, 0x33161607, 0x4c173632, + 0x132408fc, 0x37311614, 0x06272182, 0x06061706, 0x82363031, 0x1417220b, 0x20088416, 0x2c138227, 0x36310614, 0x26303136, 0x17163017, 0x821c8636, + 0x82352008, 0x17222a31, 0x35363630, 0xfe232334, 0x28404d0a, 0x4d4a4721, 0x83214240, 0xf8404d84, 0x1e105831, 0x041f030e, 0x1a161480, 0x08090f08, + 0x4d0a1812, 0x31080750, 0x043c027e, 0x05070f1f, 0x29010358, 0x3a1d0307, 0x0f092302, 0x4e070117, 0x20241202, 0x1403053c, 0x2513011b, 0x09030352, + 0x05200325, 0x1414580c, 0x0d10200e, 0x316d0182, 0x250105da, 0x1f060819, 0x0c131f45, 0x03010a1c, 0x934d4d03, 0xfe550806, 0x2c120a74, 0x14091206, + 0x27360c09, 0x2e0b0907, 0x0c242d03, 0x0701040c, 0x053a0612, 0x35110731, 0x06270f11, 0x0f200505, 0x26030c11, 0x58060209, 0x0c081f19, 0x88000200, + 0x8b05a8fd, 0x03000807, 0x26002000, 0x0f102340, 0x0b0c0d0e, 0x0901020a, 0x4c010001, 0x478d1802, 0x00002308, 0x23821b1c, 0x0603033b, 0x11012b16, + 0x25011107, 0x1135023e, 0x01012705, 0x14112507, 0x07070606, 0x05c4710e, 0x36364a08, 0x01bc4d01, 0x3512013a, 0xc2fe072b, 0x01e70149, 0xc2fe49e7, + 0xc6746f22, 0xc0436e40, 0x08078e42, 0x056218fb, 0x8a31fa4a, 0x4872541b, 0x73cc3d01, 0x68fe9801, 0x97fecc73, 0x3a739d79, 0x633e2164, 0x012afe59, + 0x6a9174e8, 0x08008200, 0x3b010229, 0x6d039cff, 0x05005006, 0x36001600, 0x010f3340, 0x4c010403, 0x00010000, 0x04010585, 0x04020302, 0x01068003, + 0x18840303, 0x310fd795, 0x16111511, 0x07101111, 0x012b1d06, 0x07211133, 0x65721721, 0x33320805, 0x35262613, 0x23113311, 0x019d3b01, 0xdcfd0e95, + 0x07090286, 0x03cedc8e, 0x06de900f, 0x8b6bfd50, 0x806517ec, 0x0394fe40, 0x2458fd20, 0x6a016dad, 0x8782e0fc, 0x0200043a, 0xae0494ff, 0x25004006, + 0x3d002d00, 0x4c004c00, 0x444a4940, 0x06080341, 0x35088d82, 0x06070608, 0x00800708, 0x01050000, 0x04690500, 0x01030309, 0x01080600, 0x07006706, + 0x57070202, 0x02070700, 0x0702005f, 0x00004f02, 0x393c4243, 0x292c3134, 0x4a822627, 0x233b2431, 0x19060a33, 0x3411012b, 0x32333336, 0x82111516, + 0x16172104, 0x14290782, 0x06060706, 0x26222123, 0x23ae8327, 0x36373634, 0x21262082, 0x23233411, 0x2d821522, 0x1a822620, 0x11150629, 0x21331614, + 0x82013632, 0x2315222c, 0x82288235, 0x16163727, 0x728c3e01, 0x5c8c7238, 0x1e1e512f, 0x1e1e2424, 0x12fd2f51, 0x0b85502e, 0x2e502a08, 0x750201f7, + 0x3d027518, 0x36fd2434, 0x24323224, 0x3424ca02, 0x2027d9fe, 0x5929229a, 0x03573e3e, 0x72ce0174, 0xfe728c8c, 0x23398232, 0xdcfd2f4f, 0x02233989, + 0x824f2f24, 0xd3012d45, 0x36fb7575, 0x32230e02, 0xf2fd2332, 0x013a0582, 0x14442990, 0x4513d6d7, 0x06513e2a, 0x01005106, 0xa8fd0000, 0x0807e803, + 0x6c180200, 0x112d0763, 0xe8030101, 0x080718fc, 0x50fb50fb, 0x84008200, 0x9c042123, 0x05272382, 0x1b401e00, 0x18020104, 0x2f181e6c, 0x23010113, + 0x03c70101, 0xc72bfcd5, 0x32fcce03, 0x042d4485, 0x00b004b0, 0x00ffff00, 0x04a8fdc8, 0x224782b0, 0x68da0747, 0x00210b7f, 0x20178814, 0x2f1789db, + 0x64000100, 0xba0419ff, 0x07005f06, 0x26402900, 0x02270f82, 0x67020103, 0x18030104, 0x8209aa69, 0xa9691809, 0x1505240e, 0x82211121, 0xba042e03, + 0x5604aafb, 0x8f5849fc, 0xf9914607, 0x22c782da, 0x86f6ff02, 0x8203204f, 0x9da51851, 0x1111281a, 0x06041011, 0x83032b1a, 0x24038247, 0xfbc4040a, + 0x2103833c, 0x49825f06, 0x4a828f20, 0x84ffff21, 0x824c204b, 0x0747229b, 0x20b38ade, 0x26b38a02, 0x403c000b, 0x18040039, 0x180c7c71, 0x2007f645, + 0x18c48506, 0x230c6b53, 0x08090a0b, 0x07209882, 0x07237e82, 0x872b1906, 0x821320c8, 0x24cc87cf, 0xfdd102e6, 0x25d1862f, 0x6afb5205, 0xd38c0300, + 0x33000b33, 0x02003040, 0x02010301, 0x03008003, 0x04030104, 0x34ad827e, 0x01000201, 0x05040067, 0x00570405, 0x5f050404, 0x05040500, 0x8265824f, + 0x060622e6, 0x41e6841c, 0x15210534, 0x86ea8821, 0xfbd423ee, 0xf082bc6a, 0xe120ef8c, 0x2e0ca341, 0x040e048d, 0x00380523, 0x401e000d, 0x8207081b, + 0x6b4920d7, 0x00200a3a, 0x51270b82, 0x06022325, 0x5d012b18, 0x28080532, 0x36362707, 0x04163233, 0xb5436c23, 0x44b46767, 0x86ed586c, 0x7a04ed86, + 0x4d4e436c, 0x66586b43, 0x02010066, 0x04690158, 0x295382e2, 0x401d0010, 0x0208091a, 0x47824901, 0x0b650120, 0x181e200b, 0x200a4f78, 0x24528306, + 0x26263435, 0x050c5c23, 0x842a2d38, 0xe2862220, 0x65380589, 0x5887ebb3, 0x364d48a5, 0xe289447e, 0x00820086, 0xaf01012a, 0xe2042400, 0x14007a04, + 0x0b21af83, 0x65af820a, 0x2e211068, 0x26af8322, 0x33163725, 0x82363632, 0x37272158, 0x26059c57, 0xaf012223, 0x82433e28, 0x434e244a, 0x8366586c, + 0x3a54235d, 0x6a821194, 0x44b5672d, 0x86ed596c, 0x65b3eb87, 0x5e010000, 0x022305c3, 0x181300ae, 0x203a5b71, 0x835e83e2, 0x82992050, 0x2172825f, + 0x0c83ae02, 0x0c821483, 0x00221282, 0x6783ffff, 0x82010321, 0x074722cb, 0x099341e6, 0x01291783, 0x05580269, 0x07470038, 0x2e1789e5, 0x27010100, + 0x8a030205, 0x0d000b06, 0x64b63e00, 0x4b2806b2, 0x585029b0, 0x01020c40, 0x6120b782, 0x1f252282, 0x401b4e00, 0x0ac14111, 0x00010228, 0x59510001, + 0xff6c0b40, 0x13cb6408, 0x0ca83608, 0x4657147e, 0x7d145c47, 0x0205ac0c, 0x401a707f, 0x1a403838, 0x00007f70, 0x01ffff00, 0x03fe0525, 0x01070788, + 0xffeb0707, 0x00fc00fe, 0x0100b108, 0x35b0fcb0, 0x305a822b, 0x00060000, 0x7cb1b683, 0x3c0f5f28, 0x070700f5, 0x2432829e, 0xfacfdd00, 0x2a0784ee, + 0xf22d29d4, 0x0918fc15, 0x82600950, 0x0006220f, 0x20318402, 0x2d058300, 0xa8fd0807, 0xb0040000, 0x60fb15f2, 0x17865009, 0x02852482, 0x82ab0721, + 0x825020f9, 0xa51f2003, 0xe8ff2303, 0x0383b004, 0x82b40021, 0x9675202f, 0x829d2003, 0x82252017, 0x20078703, 0xa20b82f0, 0x0b012103, 0x54202782, + 0x47830392, 0x4f860420, 0x0782c520, 0x03821620, 0x039f0783, 0x27828620, 0xc3200383, 0x03820782, 0x82010121, 0x04772207, 0x870783b0, 0x47002103, + 0x39201382, 0x67835b86, 0x5520038f, 0x03a71b82, 0xd6205f83, 0xc7202f82, 0x57200382, 0xbd200382, 0x4d20038e, 0x03930f82, 0x17828520, 0x03924a20, + 0x13828720, 0x292003a7, 0x07202b82, 0x35200392, 0x20068b41, 0x20078e25, 0x8b0f8284, 0x41752003, 0x55200603, 0x1b83a386, 0x0b820020, 0xfc250382, + 0xfbb0045b, 0x200b829a, 0x2303a57e, 0xb004f4ff, 0x00210383, 0x202f82bf, 0x200396b0, 0x2017827f, 0x2003827d, 0x20078642, 0xa3078292, 0x82b62003, + 0x92782027, 0x206b8303, 0x83178223, 0x82e62007, 0x20039b07, 0x201f8e5d, 0x870f82b7, 0x82c82003, 0x8303830b, 0x826f2047, 0x8303930b, 0x821f833f, + 0xffff2103, 0x0f867386, 0x8920f384, 0x03a61382, 0x8af9ff21, 0x2033833f, 0x8b0f82c9, 0x828b2003, 0x2003930f, 0x201782b4, 0x8b039298, 0x830b9f87, + 0x821e20db, 0x20038f43, 0x20138264, 0x43039270, 0x00200647, 0x7f200787, 0x03b62382, 0x04d20125, 0x82f801b0, 0x826d2003, 0x82262003, 0x82092003, + 0x820e2003, 0x20178303, 0x2007826a, 0x20038244, 0x20038220, 0x253b4407, 0x5f440020, 0x42239022, 0x1b8e1b23, 0x7420ab84, 0xde20b386, 0x28200786, + 0x420a3742, 0x0b830b43, 0x83133742, 0x20578e13, 0x200f8700, 0x060742b0, 0xef418920, 0x82c32006, 0x43bc2007, 0x0020057f, 0x21068743, 0x1386c900, + 0x63863383, 0x045ef725, 0x8d06fcb0, 0x4a012103, 0xc6202782, 0xba200382, 0x2006d345, 0x200782bb, 0x0df744b4, 0x82010121, 0x827b2013, 0x049c2403, + 0x41fdffb0, 0x15200e63, 0x3d200f82, 0x20121345, 0x831382af, 0x451f8303, 0x55200733, 0xd6202786, 0x83060b46, 0x822b207b, 0x2003830b, 0x20078217, + 0x20038235, 0x2023865d, 0x83078259, 0x449d2003, 0x3b200613, 0xff21df85, 0x200782fe, 0x0677444f, 0x07826b20, 0xdf454b20, 0x8286200a, 0x82f6209f, + 0x4558200f, 0xff2005a7, 0x1f200b83, 0x14200b82, 0x83062f45, 0x823e200b, 0x8240200b, 0x82212003, 0x829e2003, 0x451a2003, 0x322006b3, 0x03830782, + 0x07820c20, 0xc387d387, 0x13824120, 0xff851320, 0x827c0021, 0x86362007, 0x8a4320a3, 0x073345c7, 0x0020c383, 0xcb87c786, 0xff21c382, 0x829b82ff, + 0xc5002103, 0x13825f86, 0x861d0021, 0x86872047, 0x4726202f, 0xff210957, 0x066741e8, 0x07825120, 0x93870383, 0x6b418320, 0x0b6b460a, 0x47414b20, + 0x074f4106, 0x3b207b83, 0x20068345, 0x065b4118, 0x07825920, 0x03821220, 0x03822f20, 0xff458c20, 0x825c2006, 0x82542007, 0x431e2003, 0x678306c3, + 0x0b820220, 0x03826220, 0x9b460d20, 0x82072006, 0x82a62007, 0x82ef20bf, 0x82342007, 0x823c2003, 0x82d62003, 0x8247200f, 0x82e62003, 0x826a200b, + 0x86032003, 0x828d206b, 0x04d42407, 0x8d3001b0, 0xb6002103, 0x82066742, 0x45002017, 0x1f200bbb, 0x63201782, 0x200e1745, 0x450f82b1, 0xd783075b, + 0xef424e20, 0x07a7440a, 0x1382b020, 0x77447c20, 0x2097830a, 0x06d34164, 0x3f421b83, 0x202f8307, 0x832786f0, 0x20a783b7, 0x06374384, 0x43076f46, + 0xb7200757, 0x23201782, 0x67200382, 0x5e200382, 0x31200b86, 0x6e200782, 0x20062f41, 0x20078242, 0x2003825c, 0x20038226, 0x2003823a, 0x068b42a0, + 0x07828920, 0x03856620, 0x82fdff21, 0x862a2007, 0x20c387d3, 0x064b4145, 0xa3202f83, 0xdf830b82, 0x2f463520, 0x20c78706, 0x830f8268, 0x42642003, + 0x002105e7, 0x20cb868a, 0x063744c1, 0x83421320, 0x426f2006, 0xca200623, 0x48200782, 0x20061741, 0x202b86c0, 0x0973475f, 0x82f4ff21, 0x4692200b, + 0x67410a5b, 0x46732007, 0x7b460e43, 0x45878307, 0x9e200bc7, 0x20063341, 0x06f34987, 0x7f209783, 0x0f200b82, 0x98208786, 0x04200782, 0x20063b42, + 0x2007828c, 0x060f4106, 0x07824b20, 0x17411c20, 0x86092006, 0x821e207f, 0x4ac42007, 0xf783060b, 0x9b448020, 0x63ff2105, 0xe9201382, 0x60200b82, + 0x2006db47, 0x44db8686, 0x0020067f, 0xf020b383, 0x20067b48, 0x06a7439d, 0x9f49c520, 0x27002105, 0x200a8b49, 0x831b8691, 0x41d62023, 0x4a2006ab, + 0x2006c348, 0x06fb4213, 0x8207e743, 0xa6ff2153, 0x52207782, 0x7a200382, 0xc7820382, 0x85eefe21, 0x83002007, 0x8225205b, 0x86de202f, 0x2073878f, + 0x068b438b, 0x07828520, 0x03822c20, 0x0382b920, 0x33824320, 0x07850320, 0x49550021, 0x752006c7, 0x3a209386, 0x83061744, 0x062b4b07, 0x04f6fe24, + 0xcb82feb0, 0x8228ff21, 0x82342037, 0x85f3200b, 0xffff2103, 0x98194b4b, 0x82b32033, 0x82932043, 0x8266203f, 0x82682003, 0x82802003, 0x828c2003, + 0x82922013, 0x20db8303, 0x20078260, 0x82138240, 0x15fe21fb, 0x2d200782, 0x39240382, 0xe4fdb004, 0xe3200382, 0x3f201b82, 0x0020ff85, 0xff20df82, + 0x88202b9f, 0x90202b82, 0x92203f82, 0x8b200382, 0xeb820382, 0x8261fe21, 0x820c2007, 0x820b2003, 0x418d201b, 0x00200547, 0x20065f4b, 0x207f83ff, + 0x201b825e, 0x207f8611, 0x2007824b, 0x20238256, 0x20038233, 0x20038270, 0x20038279, 0x20138224, 0x208b8202, 0x200382d7, 0x200f827f, 0x200f8217, + 0x09734aee, 0x5d204384, 0x10201382, 0x12200382, 0x4c200382, 0x57200382, 0x2a200382, 0x29200382, 0x71204b86, 0x9f05f341, 0x6d00212b, 0xaa202782, + 0x82062f46, 0xa000216b, 0xd8200b82, 0x20062342, 0x06a74189, 0x0782a220, 0x27865a20, 0x874b3a20, 0x821b8306, 0xb30021e3, 0x83066f42, 0x8248200f, + 0x82c2200b, 0x423e2003, 0x4f2006b3, 0x31200782, 0x830ed74c, 0x8303871f, 0x831f8333, 0x86a02083, 0x44d42073, 0xb5200657, 0xad200782, 0xb0200382, + 0x2b830786, 0x67428720, 0x82a52006, 0x82382007, 0x82762003, 0x82952003, 0x46942003, 0x09200603, 0x93831386, 0xb7203783, 0xbf203f86, 0x22200782, + 0x83068b43, 0x8303df6b, 0x20039bcb, 0xd3eb868c, 0x17474e07, 0x6b4b17a7, 0x82b3201f, 0x410383bb, 0x0bb30bc7, 0x1b423120, 0x2307d206, 0xb0048401, + 0x00210383, 0x068b473c, 0x83426a20, 0x482f2006, 0x7220061b, 0x57200782, 0x07830382, 0x00212b82, 0x200b828d, 0x200382b2, 0x06bf4670, 0x07828720, + 0x5b428e20, 0x47b92006, 0x7e200647, 0x27830782, 0x8320038b, 0x20060748, 0x200782c6, 0x204f868f, 0x20078278, 0x203b869b, 0x213b89af, 0x93822301, + 0x00210382, 0x87338662, 0x85732007, 0x2201210f, 0x88201f82, 0x31200382, 0x01212785, 0x20078221, 0x20038233, 0x20038225, 0x2003823d, 0xf6178619, + 0xc9fd2127, 0x1d24a782, 0xf3ffb004, 0xe5200382, 0xab200382, 0xf9200382, 0xf7200382, 0xd6200382, 0x9f200382, 0xc5200382, 0xb5200382, 0x11202782, + 0x09200382, 0xe1202786, 0x37823386, 0x41070341, 0x0020080b, 0x974b0083, 0x21138e0e, 0xf782a201, 0x60200383, 0x3f240782, 0xa7fcb004, 0x44200382, + 0x54200382, 0x21051b45, 0x178291fc, 0x0b82a020, 0xb004e024, 0x0382d2f9, 0x03820820, 0x0f82bc20, 0x17824320, 0x03829420, 0x0b82ad20, 0xf9259782, + 0xf8b0043d, 0x200b823f, 0x20138200, 0x82078293, 0x3a0021bf, 0xca240b82, 0x0afeb004, 0xce201b82, 0x18245382, 0x68f7b004, 0x00211385, 0x202382a8, + 0x20138256, 0x200382c0, 0x059f475c, 0x67820120, 0x455e0121, 0xfb21050b, 0x242b82dc, 0xfbb004c2, 0x200382a5, 0x203382f2, 0x20178248, 0x202b8264, + 0x20038a2c, 0x870b827c, 0x21178203, 0x1b85b8fb, 0x1382f720, 0x82610021, 0x8251200b, 0x82792003, 0x82152003, 0x82c9204b, 0x82e72007, 0x83178343, + 0x82b02007, 0x86cb2053, 0x21c38277, 0x1f825a00, 0xbf85ac20, 0x82b7fc21, 0x82aa200b, 0x82ae201f, 0x83db8203, 0x8601201b, 0xecff230b, 0x0383b004, + 0x85f40021, 0x840f8707, 0x889f8213, 0x21fb821f, 0xbb823cfb, 0xfc210382, 0x202b8973, 0x075f4900, 0x97410020, 0x200f8e0f, 0x208b828e, 0x0a334130, + 0xfb21a382, 0x20c782f5, 0x205382db, 0x201782d0, 0x82df860b, 0xc20021f7, 0x1d20a782, 0x3f203f82, 0x07834386, 0x4f8a4620, 0x03837383, 0x0f82278f, + 0x87860020, 0x0021df87, 0x244b82f1, 0x00b00453, 0x200782e7, 0x20038224, 0x24038267, 0x02b00441, 0x2013822f, 0x09174b79, 0xd9202fa8, 0x22203f82, + 0x9f203782, 0x92069f49, 0x820120f7, 0xd40021db, 0x2105b74b, 0x7741d200, 0x20138306, 0x8213829b, 0x6f012103, 0x03831382, 0x07823c20, 0x1385e820, + 0x178a0020, 0x82ca0021, 0x859e2017, 0xb0002103, 0xda201f82, 0x30200382, 0x2006234b, 0x8307863a, 0x82962077, 0x44039b0b, 0x078607cf, 0x82160121, + 0x4678202f, 0x64200a4b, 0xd0200b82, 0x20060f4a, 0x2007820a, 0x2073823b, 0x06934a03, 0xb0046624, 0xe7471afc, 0x4ccb2006, 0x562006a7, 0x2006ab43, + 0x252b8585, 0xb0040102, 0x0385a0fd, 0x0441fe2d, 0x04a1f8b0, 0x04c1f5b0, 0x820ffab0, 0x04912313, 0xa38302b0, 0x2b82a220, 0x0386ab20, 0x07822a20, + 0x3b852f20, 0x04640025, 0x4eceffb0, 0x2720065f, 0xef201382, 0x24200382, 0x34206786, 0x3b830782, 0x038a0783, 0x8274fc21, 0x8262202f, 0x821720a3, + 0x914f201f, 0x20012103, 0x03821b82, 0x82e40021, 0x82cc2027, 0x4bfc201f, 0x4b82066b, 0x0460ff25, 0x82e8feb0, 0x21078217, 0x07821e00, 0x87866a20, + 0x03829f83, 0x82e7ff21, 0x42c42013, 0x73830677, 0x07823b83, 0x042cfc29, 0x04e0f7b0, 0x42c8fbb0, 0xfd2109bb, 0x200f82bb, 0x241782fa, 0xf2b004ae, + 0x20178215, 0x240b855e, 0xb0044cfd, 0x256b82f9, 0xb004b4f4, 0x1782daf8, 0x07823620, 0x1f854e20, 0x0412f825, 0x858ffdb0, 0x5cfc210b, 0x10201782, + 0x6b200b82, 0x12230782, 0x82f6b004, 0x82fb2097, 0x2123834f, 0x5b8240fc, 0x1b82a020, 0x0382a520, 0x57827a20, 0x07823a20, 0x13823c20, 0x00216b82, + 0x05234124, 0x82060121, 0x8ae12007, 0x82192003, 0x2003870b, 0x820b86c5, 0x8200205b, 0xceff213f, 0xf5200f82, 0x21055f4e, 0xdf820102, 0x03826920, + 0x03826820, 0x0b8d6620, 0x8307e743, 0x07e74323, 0x4388fe21, 0x0f8305ef, 0x238b0b83, 0x440c2744, 0x01210a3b, 0x091b440f, 0x4b870b83, 0x895ffc21, + 0x440b834b, 0xed200857, 0x00202f89, 0x2f880b82, 0x2f8a3d20, 0x87510b82, 0x04002408, 0x82bbfdb0, 0x41b92003, 0xff2105ff, 0x0d5744f8, 0x8b41fc20, + 0xe9fb2306, 0x9342b004, 0x82fc2007, 0x075f41f3, 0xff21e79f, 0x218f8980, 0x0b850102, 0x824f0021, 0x82cb206b, 0x82442003, 0x82812003, 0x82f62003, + 0x48462003, 0x74200623, 0xb5200782, 0x8a200382, 0x45200382, 0x2006b742, 0x061f484d, 0x6b41b220, 0x73002105, 0x88200f86, 0x20057b46, 0x20178300, + 0x200b8214, 0x063751ff, 0x07828f20, 0x6f50a020, 0x822c2006, 0x82e82007, 0x2107821b, 0xa7416601, 0xc8002105, 0x8e201382, 0x20063348, 0x210b851f, + 0x3f86ef01, 0x0785d620, 0x4b820120, 0x02210383, 0x200f8200, 0x84038568, 0x210b8267, 0x7f862b00, 0x00215382, 0x219b8964, 0x7f4d3a00, 0x205f8306, + 0x4f0b8650, 0x78200787, 0xdc200f82, 0xf1200382, 0x7b4f0786, 0x4baa2007, 0xcb2006d7, 0x83061341, 0x20cf8223, 0x833f8300, 0x21e3820b, 0xc74bf2ff, + 0x8285200e, 0x8303830f, 0x20bf83c3, 0x200f8236, 0x200382a1, 0x204b8628, 0x84c389a6, 0x84cb82bf, 0x2053834f, 0x06f34220, 0xaf426920, 0x9c002105, + 0x2005a347, 0x82cb8700, 0x0f012173, 0x0e203f86, 0x00200785, 0x20076f44, 0x87d386a0, 0x0737462b, 0x17824920, 0x8f830b83, 0x0020af82, 0x2b20bf83, + 0x83068341, 0x841f829f, 0x497e20c3, 0x732006e3, 0x20064744, 0x2007825f, 0x05b74404, 0x13830020, 0xe3467820, 0x0e0b460e, 0x42e6ff21, 0x25200613, + 0x0f900785, 0xef515a20, 0x45272006, 0x382006df, 0x2e200782, 0x3a200382, 0x86063351, 0x82ff2007, 0xcfff21ab, 0xff216b85, 0x20078ab0, 0x063f4924, + 0x1b837786, 0x82d4ff21, 0x20038313, 0x82a786d8, 0xd2ff211b, 0xce200b96, 0x5787bf89, 0xb30b6743, 0x5802250b, 0x1a04b004, 0x0b835785, 0x178c4393, + 0x460b3f48, 0x8f4b0eaf, 0x84178608, 0x8f239e37, 0x830f8333, 0x243b9037, 0x01b0047d, 0x06ef4b1c, 0x0b835382, 0x04080223, 0x210383b0, 0x9746f6ff, + 0x8b078b05, 0x21239717, 0x37956801, 0x03871783, 0x2b935387, 0x8b871b8b, 0xdb93278b, 0xcb831393, 0x2393db8b, 0x0b4113af, 0x87cb8f0b, 0x87b3831b, + 0x500021af, 0x97098744, 0x4b0021f3, 0x37832385, 0x6b8f2f97, 0x881b3741, 0x04b524a3, 0x43baffb0, 0x8782061b, 0x830fd741, 0x83138777, 0x136b4177, + 0x93130342, 0x419f8f13, 0xfb930fc3, 0xff848f8f, 0x00004b24, 0x03820701, 0xb0048424, 0x0382d001, 0x0382c720, 0x03820c20, 0x038ade20, 0x0b823420, + 0x03823620, 0x03863420, 0x07820520, 0x0d200383, 0x0f200782, 0x0d200382, 0x64200382, 0xc6200382, 0x8306db59, 0x20538343, 0x2057820e, 0x200382d4, + 0x20038264, 0x2003826d, 0x2003820c, 0x20038609, 0x20078226, 0x240b8671, 0x00000046, 0x201f86a6, 0x200782cf, 0x20038289, 0x340382de, 0x00b00470, + 0x01cbfff7, 0x01d2010e, 0x016d016a, 0x0109010c, 0x24038244, 0x01710126, 0x2a098207, 0x0189016e, 0x01de01f3, 0x82d3010f, 0x0166221f, 0x2c1b820d, + 0x01270109, 0x01080172, 0x016e0145, 0x260182a5, 0x010501cc, 0x89ceff9e, 0x54002e01, 0xe605f601, 0x8800dafd, 0x02003b01, 0x28008300, 0x001400c8, + 0xfff6ff64, 0x240586f6, 0x0158028d, 0x823185af, 0x82272085, 0x83252003, 0x20038326, 0x25048201, 0x00006001, 0x03827801, 0x03829020, 0x0382a820, + 0x0382c020, 0x0382d820, 0x0000f028, 0x00000802, 0x03822002, 0x03823820, 0x0382c420, 0x0000dc28, 0x00008c03, 0x03822804, 0x03824020, 0x03825820, + 0x03827020, 0x03828820, 0x0000a024, 0x03821805, 0x0382b820, 0x0382d020, 0x0000e024, 0x03824406, 0x03825c20, 0x03827420, 0x06213782, 0x200782a4, + 0x200382bc, 0x240382d4, 0x070000ec, 0x23038204, 0x0700001c, 0x08201f82, 0x08206782, 0x08256782, 0x08000050, 0x20038268, 0x82038280, 0x64092587, + 0x7c090000, 0x0b820382, 0x004c0a24, 0x0f820a00, 0x0f820a20, 0x82940a21, 0x82ac200b, 0x20978203, 0x2597820a, 0x0000f40a, 0x03820c0b, 0x03822420, + 0x0b201b82, 0x0b251b82, 0x0c0000fc, 0x20038214, 0x20038254, 0x2003826c, 0x20038284, 0x8203829c, 0x280d24e3, 0x820d0000, 0x820e2023, 0x2c0e241f, + 0x820e0000, 0x820e20ab, 0x820e20ab, 0x820f208b, 0x980f2513, 0xb00f0000, 0xc8200382, 0xcb820382, 0x00f80f25, 0x82101000, 0x25378203, 0x00004010, + 0x03821811, 0x03823020, 0x00004828, 0x00009012, 0x03820013, 0x14205f82, 0x14241f82, 0x140000a8, 0x14206382, 0x1425b382, 0x150000f0, 0x820382a4, + 0x821520f7, 0x821520f7, 0x821620f7, 0x1c1624f7, 0x82170000, 0x8218200f, 0x88182507, 0xa0180000, 0xb8200382, 0xd0240382, 0x34190000, 0x4c200382, + 0x64230382, 0x82190000, 0x821920eb, 0x821920cf, 0x821920ab, 0x821920eb, 0x821920eb, 0x821a20eb, 0x821a20eb, 0x601a25eb, 0xcc1a0000, 0xe4200382, + 0xef820382, 0xbb821b20, 0xcf821b20, 0x008c1b24, 0x7f821b00, 0x7f821b20, 0x00081c25, 0x82201c00, 0x82382003, 0x20ab8203, 0x209f821c, 0x209f821c, + 0x201f821c, 0x201f821c, 0x201f821d, 0x201f821d, 0x231f821d, 0x0000501d, 0x1e200387, 0x1e201382, 0x1f206f82, 0x1f209b82, 0x1f209b82, 0x1f249b82, + 0x200000e8, 0x2020eb82, 0x2020ff82, 0x2021ff82, 0x200f8254, 0x8203826c, 0xb02128fb, 0xc8210000, 0x82220000, 0x8223205f, 0x582324c3, 0x82230000, + 0x822320bf, 0x822320bf, 0x8223203f, 0x8224204b, 0x70252c4b, 0x94250000, 0xb4260000, 0x82270000, 0x782721bf, 0x97820782, 0x37822720, 0x97822720, + 0x97822720, 0x97822720, 0x97822820, 0x6c822820, 0x4b822920, 0xdf822920, 0x2f822b20, 0xeb822b20, 0x0b822b20, 0xff822c20, 0xff822c20, 0x37822c20, + 0x004c2d24, 0x83822d00, 0x2b822e20, 0x00742e25, 0x828c2e00, 0x82a42003, 0x82bc2003, 0x82d42003, 0x00ec2803, 0x00042f00, 0x82103000, 0x82282003, + 0x82442003, 0x005c2303, 0x5f823100, 0x7f823120, 0x7f823120, 0x73823120, 0x73823120, 0xff823220, 0x00e03224, 0x2f823300, 0x2b823320, 0x82403321, + 0x0064230b, 0x6f823400, 0x00f43425, 0x82883500, 0x24c38203, 0x0000c436, 0x20cf8236, 0x20138236, 0x201b8237, 0x20fb8237, 0x20a78238, 0x208b8238, + 0x202f8238, 0x20f78238, 0x24e38238, 0x0000ac38, 0x202b8238, 0x202b8238, 0x200b8239, 0x200b8239, 0x200b8239, 0x2003823a, 0x20ef823b, 0x252f823c, + 0x0000383d, 0x03823c3e, 0x03825420, 0x3e24c782, 0x3f000084, 0x3f200f82, 0x3f200f82, 0x3f200f82, 0x9c200f83, 0xb4271382, 0xd8400000, 0x82410000, + 0x82412017, 0x144225ab, 0x2c420000, 0xcf820382, 0x17824220, 0x13824220, 0xd3824320, 0x00204324, 0x53824300, 0xcb824320, 0x82684321, 0x8280200b, + 0x82982003, 0x24a38203, 0x0000c843, 0x21378244, 0x07827444, 0x03828c20, 0x0382a420, 0x0382bc20, 0x0000d424, 0x03823045, 0x45206782, 0x45216782, + 0x200b82cc, 0x230382e4, 0x460000fc, 0x46206f82, 0x46208782, 0x46208782, 0x47201f82, 0x47200b82, 0x47200b82, 0x2b820b83, 0x2b824720, 0x2b824720, + 0x2b824720, 0x7b824820, 0x7b824820, 0x7b824820, 0x37824920, 0x2b824920, 0x2b824920, 0xfb824920, 0xfb824920, 0xf7824920, 0x00104a25, 0x82284a00, + 0x82402003, 0x82582003, 0x82702003, 0x82882003, 0x82a02003, 0x82b82003, 0x258b8203, 0x0000ec4a, 0x0382044b, 0x03824420, 0x03825c20, 0x4b20af82, + 0x4b20af82, 0x4b20af82, 0x4b20af82, 0x4b202382, 0x4c202382, 0x4c20ef82, 0x4c207382, 0x4c207382, 0x4c206782, 0x4c209382, 0x4c209382, 0x4c209382, + 0x4c209382, 0x4d209382, 0x4d25ef82, 0x4d00002c, 0x20038248, 0x20038260, 0x24038278, 0x4e0000e8, 0x20038200, 0x82038218, 0x824e20f7, 0x824e201b, + 0x824e201b, 0x904e211b, 0xaf821382, 0xaf824e20, 0x00f84e25, 0x821c4f00, 0x20ab8203, 0x21ab824f, 0x0b827c4f, 0x0000d023, 0x21c38250, 0x07823450, + 0x50201382, 0x5021bf82, 0x240b8294, 0x510000f0, 0x8203823c, 0x82512047, 0x8251208b, 0xc051248b, 0x82520000, 0x825220eb, 0x82522057, 0x8352200f, + 0x82d8200f, 0x24978213, 0x00006c53, 0x216b8253, 0x0782a853, 0x53201782, 0x53201782, 0x54204382, 0x038bcb82, 0xa7825520, 0x83825520, 0xfb825520, + 0x73825620, 0x07825620, 0x00745724, 0xb3825800, 0x00645928, 0x004c5a00, 0x4b825b00, 0x00205c25, 0x82085d00, 0x254f8203, 0x0000b85d, 0x0382445e, + 0x03825420, 0x5e209b82, 0x5e20cf82, 0x5f287382, 0x5f000050, 0x600000b4, 0x6020b382, 0x61250f82, 0x6100000c, 0x82038224, 0x826120b7, 0x88622983, + 0xec620000, 0x04630000, 0x73820382, 0x00e06324, 0xfb826400, 0xe7826420, 0x82cc6421, 0x82dc200b, 0x201f8203, 0x203b8264, 0x205f8265, 0x205f8265, + 0x20838265, 0x208f8265, 0x242b8265, 0x0000f865, 0x245f8266, 0x0000c466, 0x20c78267, 0x24df8267, 0x0000e867, 0x20778268, 0x24838268, 0x00002c69, + 0x209b8269, 0x2053826a, 0x2447826a, 0x0000806b, 0x2023826b, 0x280f826c, 0x0000e46c, 0x0000f46c, 0x2093826d, 0x207b826d, 0x25e7826d, 0x00008c6e, + 0x0382146f, 0x70205382, 0x71202b82, 0x72280b82, 0x72000030, 0x7300009c, 0x7324b782, 0x740000b0, 0x75245b82, 0x75000010, 0x7520ff82, 0x75201b82, + 0x7520c782, 0x76204b82, 0x77240382, 0x7700007c, 0x7824ff82, 0x78000008, 0x79200782, 0x79202782, 0x79201382, 0x7a259382, 0x7b00004c, 0x23038200, + 0x7c00005c, 0x7d204382, 0x7d209b82, 0x7d24ff82, 0x7e000098, 0x7e20ff82, 0x7e206f82, 0x7f20a382, 0x8024db82, 0x80000034, 0x8124bf82, 0x8200003c, + 0x82214382, 0x82078228, 0x828220df, 0xf0822837, 0x78830000, 0x82840000, 0x838420b7, 0x00f82307, 0x6b828500, 0x2f828520, 0x82c48521, 0x82d4200b, + 0x00ec2303, 0xe7828600, 0xaf828620, 0x82c88621, 0x00e0240b, 0x82848700, 0x20c78203, 0x25db8287, 0x0000cc87, 0x03827088, 0x88217f82, 0x200782a0, + 0x200382b8, 0x820382d0, 0x828920a7, 0x188924a3, 0x82890000, 0x828a2023, 0xa88a2493, 0x828b0000, 0x828b20eb, 0x828d2053, 0x828e20cb, 0x828e2077, + 0x828f206b, 0x8c8f240b, 0x82900000, 0x8290202b, 0x829120fb, 0x8292202b, 0x829220ab, 0x60932473, 0x82930000, 0x8293205f, 0x82942013, 0x8294204f, + 0x82952097, 0x8296206b, 0x8296202b, 0x4897246b, 0x82980000, 0x829820ff, 0x829920bb, 0x90992823, 0x449a0000, 0x829b0000, 0x829b202b, 0x829b20e7, + 0x829b20e7, 0x829b20ab, 0x829c20eb, 0x829d202b, 0x829d2017, 0x829d206b, 0x829d2013, 0x829d20bf, 0x549e249b, 0x829f0000, 0x749f216f, 0x1b820782, + 0x00a49f24, 0x6c82a000, 0x5382a020, 0x1782a120, 0x9f82a120, 0x00fca124, 0x2782a200, 0x8264a221, 0x21b38207, 0x0782bca2, 0xa3253b82, 0xa3000014, + 0x24038224, 0xa400003c, 0x82038240, 0x82a4206f, 0x82a520a3, 0x78a528e7, 0xe0a50000, 0x82a60000, 0x82a62087, 0x82a7206b, 0x82a72097, 0x82a82033, + 0x82a92017, 0x1ca928fb, 0xc0a90000, 0x82aa0000, 0x82aa2053, 0x82aa207b, 0x82aa207b, 0x82aa2097, 0x82ab205f, 0x82ac20e3, 0xdcac2c23, 0xecac0000, + 0xb0ad0000, 0x82ae0000, 0x82af202b, 0x82af20eb, 0x82b0204b, 0x82b0206f, 0xa0b1241b, 0x82b10000, 0x82b1201b, 0x34b2281b, 0x4cb20000, 0x82b30000, + 0x82b32087, 0xf4b3251b, 0x6cb40000, 0xfb820382, 0x0782b520, 0x1382b520, 0x0048b624, 0x5f82b600, 0x0008b724, 0xc382b700, 0x3f82b820, 0x7f82b920, + 0x3f82b920, 0x1382ba20, 0x0070ba24, 0xb382ba00, 0x4782bb20, 0x00d4bb25, 0x8268bc00, 0x00d82803, 0x005cbd00, 0x8230be00, 0x213f8203, 0x078258be, + 0xbf282782, 0xbf000010, 0xc0000090, 0xc020ff82, 0xc1200782, 0xc1200f82, 0xc1254f82, 0xc10000b8, 0x820382d0, 0xf8c12547, 0xa8c20000, 0x5f820382, + 0x4782c220, 0x8b82c220, 0xdb82c320, 0x2782c320, 0x2782c320, 0x2782c320, 0x6382c420, 0x0080c425, 0x8298c400, 0x21cb8203, 0x0782c8c4, 0xc4203b82, + 0xc5203b82, 0xc5245382, 0xc60000c4, 0xc6212382, 0x820782e4, 0x82c720d3, 0x8cc82547, 0x18c90000, 0xc3820382, 0x7b82ca20, 0x003ccb28, 0x00cccb00, + 0x3b82cc00, 0x0060cd2c, 0x00e8cd00, 0x0000cf00, 0x1b82d000, 0x6b82d020, 0x5782d020, 0x0034d128, 0x00fcd100, 0x8b82d200, 0xdf82d320, 0x0383d420, + 0xd5205382, 0xd6205f82, 0xd7202782, 0xd7246b82, 0xd7000020, 0xd721e782, 0x20078240, 0x82038250, 0x82d720a3, 0x82d72053, 0x82d72073, 0x84d82553, + 0x94d80000, 0xa4240382, 0x0cd90000, 0x1c200382, 0x2c200382, 0x23820382, 0x2382d920, 0x2382d920, 0xb782d920, 0xcf82da20, 0x5382da20, 0x7b82da20, + 0x007cdb24, 0xaf82db00, 0x5b82dc20, 0x6f82dc20, 0x8382dc20, 0x0014dd24, 0x3782dd00, 0x8244dd21, 0x825c2007, 0x82742003, 0x20238203, 0x205782dd, + 0x20d382dd, 0x205782de, 0x203b82de, 0x28b782de, 0x00006cdf, 0x0000f0df, 0x204782e0, 0x293b82e0, 0x000078e1, 0x000038e2, 0x038204e3, 0xe3202782, + 0xe320d782, 0xe3207b82, 0xe4207b82, 0xe4209f82, 0xe5209f82, 0xe524c382, 0xe5000058, 0xe5208782, 0xe5205382, 0xe5249f82, 0xe60000ec, 0xe620e382, + 0xe6202f82, 0xe6201b82, 0xe6204f82, 0xe6206382, 0xe621e382, 0x821b82d0, 0x00e7253f, 0x18e70000, 0x3f820382, 0x8248e721, 0x82602007, 0x206f8203, + 0x21cb82e7, 0x0b82a8e7, 0x0382c020, 0xe7206b82, 0xe8208782, 0xe820cf82, 0xe824bf82, 0xe8000068, 0xe820bb82, 0xe820ab82, 0xe8246782, 0xe90000e0, + 0xe9219b82, 0x20078228, 0x2003824c, 0x82038270, 0x82e92093, 0xdce92467, 0x82ea0000, 0x82ea2063, 0x82ea2063, 0x82ea2063, 0x82ea2063, 0x82ea2063, + 0x82ea2063, 0x82ea2063, 0x82ea2063, 0x82ea2063, 0x82ea2063, 0x08eb25f3, 0x2ceb0000, 0x50200382, 0x74200382, 0x98200382, 0xbc200382, 0x63820382, + 0x6382ec20, 0x6382ec20, 0x0040ec25, 0x8258ec00, 0x21678203, 0x078288ec, 0x0382ac20, 0xec24cf82, 0xed0000f4, 0xed216782, 0x8207823c, 0x82ed2063, + 0x82ed2063, 0xb4ed2163, 0x5f820f82, 0xc382ed20, 0xc382ee20, 0xc382ee20, 0x005cee24, 0x5f82ee00, 0xc782ee20, 0x82a4ee21, 0x25c7820b, 0x0000ecee, + 0x038210ef, 0x03823420, 0xef215f82, 0x2007827c, 0x200382a0, 0x820382c4, 0x82ef20c7, 0x0cf0255f, 0x24f00000, 0x63820382, 0x8254f021, 0x826c2007, + 0x82842003, 0x829c2003, 0x24678203, 0x0000ccf0, 0x200782f1, 0x243b82f2, 0x0000d4f2, 0x20bf82f3, 0x242782f4, 0x000014f5, 0x24e782f5, 0x000064f6, + 0x24ab82f6, 0x000068f7, 0x820783f7, 0x4cf824d7, 0x82f90000, 0x82f92053, 0x82f92077, 0x82fa20a7, 0x82fb20d7, 0x82fb2067, 0x82fc2093, 0x82fc203b, + 0x82fd207f, 0xe4fd24a7, 0x82fe0000, 0x82ff203f, 0x28ff25a3, 0x40ff0000, 0xa7820382, 0x2f82ff20, 0x8288ff21, 0x82a0200b, 0x82b82003, 0x29578203, + 0x0100e8ff, 0x01000000, 0x03821800, 0x03828c20, 0x0100e428, 0x01007401, 0x03820402, 0x03822c20, 0x03825420, 0x0100e024, 0x03826003, 0x0100d424, + 0x03823c04, 0x05290782, 0x06010084, 0x07010068, 0x82038230, 0xb8082543, 0x28090100, 0x1b820382, 0x2b820a20, 0x00700a25, 0x82800a01, 0x00902403, + 0x82240b01, 0x24178203, 0x0100ec0b, 0x2157820c, 0x07821c0c, 0x03823420, 0x03824c20, 0x03826420, 0x03827c20, 0x03829420, 0x0382ac20, 0x0382c420, + 0x0382dc20, 0x0100f424, 0x03820c0d, 0x0d213b82, 0x20078240, 0x2003825c, 0x82038278, 0xb00d2127, 0xcc200782, 0x77820382, 0x4f820e20, 0x00200e24, + 0x97820e01, 0x82580e21, 0x21778207, 0x0782880e, 0x0382a020, 0x0e219382, 0x820782d0, 0x820f2027, 0x820f20e3, 0x820f20e3, 0x480f24af, 0x820f0100, + 0x820f20a3, 0x820f204f, 0xa80f219f, 0xc0200f82, 0xd8200382, 0xf0240382, 0x08100100, 0x53820382, 0x82381021, 0x20538207, 0x21278210, 0x0b829810, + 0x10204f82, 0x10242382, 0x110100f8, 0x11204b82, 0x11201f82, 0x11201f82, 0x11201f82, 0x11201f82, 0x11219782, 0x201b82c8, 0x820382e0, 0x10122523, + 0x28120100, 0xbf820382, 0x27821220, 0x9b821220, 0x9b821220, 0x9b821220, 0x4b821220, 0x9b821220, 0x00e41324, 0x2b821401, 0x00681625, 0x82801601, + 0x20478203, 0x20478216, 0x20478216, 0x20478216, 0x201b8216, 0x20478217, 0x20478217, 0x20478217, 0x20478217, 0x20478217, 0x20478217, 0x20478217, + 0x20478217, 0x20478217, 0x20e38217, 0x20e38218, 0x20978218, 0x20e38218, 0x20e38218, 0x20e38218, 0x209b8218, 0x20e38218, 0x20e38219, 0x20e3821a, + 0x201b821c, 0x201b821c, 0x201b821c, 0x201b821c, 0x201b821c, 0x201b821c, 0x821b831c, 0x821c20db, 0x821d20ff, 0x821d20ff, 0x821d20ff, 0x501d24df, + 0x821d0100, 0x821d206f, 0x821d2027, 0x821d2097, 0x821d206b, 0x821e2023, 0x821e2093, 0x821e204b, 0x821e201f, 0x821e201f, 0x821e201f, 0x821e201f, + 0x821e2047, 0x041f2523, 0x1c1f0100, 0xec230382, 0x82200100, 0x342124a7, 0x82210100, 0x822220ab, 0x442324e7, 0x82240100, 0x82242063, 0x242524ef, + 0x82250100, 0x0c262807, 0xd4260100, 0x82270100, 0x8227201b, 0x822820cb, 0xf4282c4b, 0xc4290100, 0x6c2a0100, 0x822b0100, 0xb42b21ff, 0xcc240782, + 0x942c0100, 0xa4240382, 0x582d0100, 0x13820382, 0x00402e24, 0x4f822f01, 0x47822f20, 0x002c3024, 0x37823001, 0xe3823120, 0x00183225, 0x82c83201, + 0x20d78203, 0x24538232, 0x0100ac33, 0x202b8234, 0x20378234, 0x209b8235, 0x202b8235, 0x28cb8235, 0x01005c36, 0x0100a036, 0x202f8237, 0x25838237, + 0x01003c38, 0x03820039, 0x39202f82, 0x3a244b82, 0x3b0100a8, 0x3b219782, 0x20078264, 0x82038284, 0x823b207b, 0xe43b2497, 0x823c0100, 0x823c20e7, + 0x823c20c3, 0x823c201f, 0x823c201f, 0x823c201f, 0x823c201f, 0x823c201f, 0x823d201f, 0x823d201f, 0x823d201f, 0x823d201f, 0x823d201f, 0x823d201f, + 0x823d201f, 0x823d201f, 0x823e201f, 0x823e201f, 0x823e201f, 0x823e201f, 0x823e201f, 0x823e201f, 0x823e201f, 0x823e201f, 0x823f201f, 0x823f201f, + 0x883f28fb, 0x54400100, 0x82410100, 0x9c432403, 0x82440100, 0x904530b3, 0xb0460100, 0xfc480100, 0x0c4c0100, 0x824d0100, 0x504e2cd7, 0xe04f0100, + 0xdc500100, 0x82530100, 0x30552447, 0x82560100, 0x8256205f, 0xd0562127, 0xef820b82, 0x00105723, 0x2003a401, 0x82278220, 0x6057213f, 0x78200782, + 0xc8230382, 0x82580100, 0x82592063, 0x8c59244f, 0x825a0100, 0xb85a2113, 0xd4200782, 0xf8240382, 0xa05b0100, 0xbc230382, 0x825c0100, 0x825c209f, + 0x805d240f, 0x825d0100, 0xc05d240b, 0x825e0100, 0x825f2017, 0x826020df, 0x2c60287b, 0xb4600100, 0x82610100, 0x3c61255f, 0x14620100, 0x98240382, + 0x6c630100, 0xcb820382, 0x1b826420, 0x00946524, 0x6f826601, 0x37826720, 0x00706824, 0xeb826801, 0xd3826820, 0x2f826920, 0x00546928, 0x00846901, + 0x4b826a01, 0x82346a21, 0x20f38207, 0x20ff826b, 0x240f826c, 0x01005c6d, 0x240f826e, 0x0100446f, 0x280b8270, 0x01004871, 0x0100e072, 0x240f8274, + 0x01000475, 0x216b8276, 0x07823876, 0x76201b82, 0x76209b82, 0x76246b82, 0x770100d8, 0x7720d382, 0x77202b82, 0x77258382, 0x780100b0, 0x2003821c, + 0x230382d0, 0x790100ec, 0x79205b82, 0x7a24eb82, 0x7a010000, 0x7b203782, 0x7b204382, 0xa4230783, 0x827b0100, 0x827b20db, 0x827c205f, 0x187c241b, + 0x827c0100, 0x887c247b, 0x827d0100, 0x307e281f, 0xf07e0100, 0x827f0100, 0x8280204f, 0xcc802557, 0x4c810100, 0xac230382, 0x82820100, 0x828220fb, + 0x2883257b, 0x60830100, 0xff820382, 0x6f828320, 0xf42303a4, 0x82850100, 0x8285206b, 0xa0862457, 0x82870100, 0x828720f7, 0x58872447, 0x82880100, + 0x82882087, 0x828820cb, 0x948924cb, 0x82890100, 0x828a2073, 0x3c8a25f7, 0x748a0100, 0x90200382, 0xc8200382, 0xf3820382, 0x00e88a24, 0x37828b01, + 0xaf828b20, 0xcb828b20, 0xcb828b20, 0x82dc8b21, 0x00f82313, 0xe3828c01, 0x34200388, 0x54200f82, 0x23820382, 0x7b828c20, 0x07828d20, 0x5f828e20, + 0xb3828e20, 0x43828e20, 0x6f828f20, 0xdf828f20, 0x00848f25, 0x82c48f01, 0x00e42303, 0x73829001, 0xe3829020, 0x77829020, 0x97829020, 0x7b829020, + 0x7b829020, 0xfb829020, 0x82bc9021, 0x2497821f, 0x01007891, 0x20138291, 0x232b8292, 0x01001c92, 0x70200394, 0x73821782, 0x2b829320, 0x93829420, + 0x00689428, 0x00d49401, 0x73829501, 0x53829520, 0x8b829520, 0x0f829520, 0x00449624, 0x8f829601, 0x82b49621, 0x82d02007, 0x00ec2403, 0x82089701, + 0x20678203, 0x25d38297, 0x0100fc97, 0x03820c98, 0x99242382, 0x99010030, 0x9a24f382, 0x9a010018, 0x9c203f82, 0x9d201f82, 0x9d20df82, 0x9e20b782, + 0x9f205382, 0x9f251782, 0xa00100a8, 0x27038250, 0xa10100f8, 0xa20100b8, 0xa4248382, 0xa5010038, 0xa620cf82, 0xa7246b82, 0xa8010034, 0xa8204f82, + 0xa9254782, 0xa901004c, 0x230382b0, 0xaa0100d8, 0xaa213b82, 0x20078260, 0x82038284, 0xc4ab2837, 0x9cac0100, 0x82ae0100, 0x6cae248b, 0x82af0100, + 0x7cb024bf, 0x82b10100, 0x82b2201f, 0x82b220c3, 0x82b320af, 0xbcb32443, 0x82b30100, 0x82b320b7, 0x00b42583, 0x20b40100, 0x7b820382, 0x00acb525, + 0x8240b601, 0x20438203, 0x206782b7, 0x24cf82b7, 0x0100a0b8, 0x204782b9, 0x203782ba, 0x203382ba, 0x209382bb, 0x245f82bc, 0x0100b0bc, 0x253382bc, + 0x01002cbd, 0x03825cbd, 0xbd24db82, 0xbe0100ec, 0xbe21af82, 0x2407828c, 0xbf0100d4, 0x2303821c, 0xc0010064, 0xc3200382, 0xc320bf82, 0xc3205b82, + 0xc3204782, 0xc4204782, 0xc420bb82, 0xc420bb82, 0xc425fb82, 0xc50100dc, 0x82038210, 0x74c6243b, 0x82c60100, 0x82c72013, 0x82c72097, 0x82c8208f, + 0x82c82013, 0x82c920eb, 0xf4c92483, 0x82cc0100, 0x82cc20c7, 0x82cc20cf, 0x82cd2023, 0xc0ce248b, 0x82cf0100, 0x82cf20eb, 0xe8cf24a7, 0x82d00100, + 0x82d02073, 0xe0d0296f, 0x80d10100, 0x38d20100, 0x90240382, 0x30d30100, 0x78200382, 0xcc230382, 0x82d40100, 0x14d52487, 0x82d50100, 0x48d624e7, + 0x82d60100, 0x82d620bf, 0x82d62077, 0x82d720b7, 0x04d825a7, 0x20d90100, 0xc3820382, 0xe782da20, 0x00c4da24, 0x1382db01, 0xb382db20, 0x4782db20, + 0x8250db21, 0x202f820f, 0x202f82db, 0x244f82db, 0x010028dc, 0x204782dc, 0x202782dd, 0x20a382de, 0x20b782df, 0x201782e1, 0x20bb82e2, 0x205b82e2, + 0x200b82e2, 0x24b782e3, 0x010058e3, 0x203382e3, 0x20b382e3, 0x202782e3, 0x20bf82e4, 0x20cb82e4, 0x251f82e4, 0x0100e4e4, 0x03822ce5, 0x03824c20, + 0xe620cf82, 0xe6281782, 0xe60100b8, 0xe70100ec, 0xe7208b82, 0xe724bb82, 0xe80100b4, 0xe8209f82, 0xe8202782, 0xe8202782, 0xe8202782, 0xe8202782, + 0xe920eb82, 0xe9209782, 0xe9206f82, 0xea205b82, 0xea201f82, 0xea20e382, 0xeb201782, 0xeb207f82, 0xeb20ab82, 0xec206f82, 0xec297f82, 0xec0100a4, + 0xed0100fc, 0x82038254, 0x82ee20a7, 0x82ee20d3, 0xe8ee2493, 0x82ef0100, 0x82f02027, 0x9cf024a7, 0x82f10100, 0x82f120d3, 0x82f2204b, 0x82f220a3, + 0x82f3209b, 0x60f4240b, 0x82f40100, 0x90f42187, 0xa8200782, 0x13830382, 0x0782d820, 0x0100f024, 0x038204f5, 0xf5204b82, 0xf5207b82, 0xf5207b82, + 0xf5215f82, 0x8b138268, 0x82c82003, 0x00dc2f0f, 0x0070f701, 0x00c4f801, 0x00bcf901, 0xb382fa01, 0x8f82fa20, 0x00a0fb24, 0x2b82fc01, 0x8280fc21, + 0x207f8207, 0x241b82fc, 0x0100b0fd, 0x25a382fe, 0x0200ccff, 0x03821c00, 0x03827820, 0x0200c824, 0x03822001, 0x02009424, 0x03820002, 0x02007024, + 0x03821803, 0x03240f82, 0x040200f8, 0x04352382, 0x050200dc, 0x06020028, 0x070200a0, 0x08020040, 0x09020034, 0x23038208, 0x0a0200c4, 0x0b2c1382, + 0x0b020038, 0x0c0200d8, 0x0d020088, 0x0d201b82, 0x03835382, 0x009c0e29, 0x00b00f02, 0x82a41002, 0x00f42303, 0x5b821102, 0x5b821220, 0x003c1229, + 0x004c1202, 0x82141302, 0x822c2003, 0x210f8203, 0x07826013, 0x0200ec24, 0x03826414, 0x0200e024, 0x03825815, 0x0200d023, 0x20938216, 0x209f8216, + 0x21778216, 0x0f82b816, 0x17201382, 0x17246f82, 0x1702005c, 0x18257f82, 0x18020030, 0x82038280, 0x821920ab, 0x82192053, 0x82192017, 0xe8192493, + 0x821a0200, 0x821a20a3, 0x821a20b7, 0x821b2033, 0x821b2097, 0x821c205f, 0xa81d24cb, 0x821e0200, 0x901f288b, 0x6c200200, 0x82210200, 0x10222d7f, + 0xbc220200, 0x74230200, 0x1c240200, 0xc3820382, 0x1b822520, 0x00cc2524, 0x47822602, 0x82442621, 0x00e42307, 0x2b822702, 0x82c02721, 0x24cf8207, + 0x02002428, 0x20f38228, 0x286b8228, 0x02008c29, 0x0200842a, 0x20df822b, 0x24cb822b, 0x0200b42b, 0x20ff822c, 0x209b822d, 0x2443822d, 0x0200f02d, + 0x20db822e, 0x202f822e, 0x2023822f, 0x2097822f, 0x202f822f, 0x20b7822f, 0x20eb8230, 0x201f8230, 0x202f8231, 0x24ab8231, 0x02001432, 0x20c78232, + 0x208b8232, 0x24578232, 0x0200a432, 0x254f8233, 0x02000435, 0x03822435, 0x36208b82, 0x36204382, 0x36294382, 0x360200ac, 0x370200c4, 0x8203822c, + 0x82372017, 0x82372037, 0x82372037, 0x82372037, 0x82372037, 0x0c3828d3, 0x78380200, 0x82390200, 0x8239203b, 0x543924bf, 0x823a0200, 0x503a214b, + 0x68230782, 0x823b0200, 0x823b206f, 0x203d28d3, 0xa03d0200, 0x823e0200, 0x823e201b, 0x4c3e215b, 0x1f820b82, 0x82983e21, 0x82b02007, 0x209b8203, + 0x20a7823e, 0x2473823f, 0x02009040, 0x20678241, 0x82078341, 0x9a41200f, 0x82422003, 0x8242204f, 0x82432057, 0x82432087, 0x82442027, 0x82442007, + 0x82452007, 0xb84525c3, 0x48460200, 0xa7820382, 0x00d44624, 0x9f824702, 0x0b824720, 0x0b834720, 0x0200f823, 0x20238248, 0x20678248, 0x20cf8248, + 0x29cf8248, 0x02004049, 0x0200b449, 0x0382344a, 0x4b202782, 0x4b250f82, 0x4d020070, 0x82038230, 0x824d20e3, 0x2c4e24a3, 0x824e0200, 0xc44e246f, + 0x824f0200, 0xec4f2547, 0x58500200, 0xbb820382, 0x00085124, 0xb3825102, 0xeb825220, 0x00385224, 0x43825202, 0x23825220, 0x63825320, 0x97825420, + 0xef825420, 0x67825420, 0x00d85424, 0x0f825502, 0x5f825520, 0x1b825520, 0x82a85521, 0x00dc240f, 0x82105602, 0x82442003, 0x82802003, 0x25878203, + 0x0200e856, 0x03821c57, 0x03825020, 0x03828420, 0x5720cf82, 0x58206f82, 0x58255f82, 0x58020054, 0x82038288, 0x82582063, 0x8259207b, 0x7c5924a3, + 0x82590200, 0xfc59240f, 0x825a0200, 0x825a200f, 0x825a2033, 0xe05c24a7, 0x82600200, 0x04632513, 0x60630200, 0x0b820382, 0x00986425, 0x82246502, + 0x00ac2403, 0x823c6602, 0x00c82303, 0x93826702, 0x82486721, 0x00cc2307, 0x83826802, 0x17826920, 0x00f86924, 0x23826a02, 0x4b826b20, 0x008c6c24, + 0x1f826d02, 0x2b826d20, 0x07826e20, 0xa3826e20, 0x9f826f20, 0x006c6f24, 0x9b826f02, 0xff827020, 0x00587024, 0x3b827002, 0x87827020, 0xa7827120, + 0xa7827120, 0xa7827120, 0xdf827120, 0x93827220, 0x00787228, 0x00c07202, 0x2b827302, 0xd7827320, 0x82b07321, 0x258f820b, 0x02004c74, 0x03829c74, + 0x7525df82, 0x75020028, 0x8203825c, 0x82762027, 0x8276200b, 0xd47624d7, 0x82770200, 0x827720bb, 0x8278208b, 0x82782073, 0x82782053, 0x38792453, + 0x82790200, 0x827a2037, 0x707a24db, 0x827a0200, 0x687b28eb, 0xf07b0200, 0x827c0200, 0x827c2037, 0x827d2037, 0xf47d242b, 0x827e0200, 0x827e206f, + 0x827f2053, 0x827f203f, 0x827f202b, 0x248024e7, 0x82800200, 0x82802093, 0x828120e7, 0x8281202f, 0x8282208f, 0x8282209b, 0x82832067, 0x8283201b, + 0x82842007, 0x82852083, 0xb885240b, 0x82860200, 0x82872043, 0x9087299b, 0xe4870200, 0x3c880200, 0x94200382, 0xb7820382, 0x00408924, 0x2f828902, + 0x2f828a20, 0x00a48a24, 0x67828b02, 0x82988b21, 0x24738207, 0x0200d08b, 0x21a3828c, 0x0782148c, 0x8c20b382, 0x8c214382, 0x200b828c, 0x820382b4, + 0x108d24b3, 0x828d0200, 0xa88d24df, 0x828e0200, 0x4c8e2127, 0x0b820782, 0x000c8f24, 0x2b828f02, 0x4f828f20, 0x00fc8f25, 0x82449002, 0x25ef8203, + 0x02000091, 0x03825891, 0x9120af82, 0x92248782, 0x92020034, 0x9224bf82, 0x930200c4, 0x93201b82, 0x93209782, 0x93205f82, 0x9420d782, 0x9420eb82, + 0x95209782, 0x95208f82, 0x95202382, 0x96203382, 0x96252382, 0x96020048, 0x2303828c, 0x970200d4, 0x9721f382, 0x8207826c, 0x829820ab, 0x849824a3, + 0x82980200, 0x82992097, 0x82992047, 0x829a207b, 0x829a202f, 0x829a2087, 0x309b245f, 0x829b0200, 0x829b203b, 0x829b20af, 0xd89b2527, 0x2c9c0200, + 0x0f820382, 0x9b829c20, 0x00ec9c25, 0x82509d02, 0x204b8203, 0x24b3829d, 0x0200649e, 0x240b829e, 0x0200f49e, 0x204f829f, 0x208b829f, 0x206f82a0, + 0x251782a0, 0x0200cca0, 0x038228a1, 0xa1204782, 0xa2203782, 0xa224d382, 0xa30200b8, 0xa3201f82, 0xa3244f82, 0xa40200a8, 0xa4207b82, 0xa4206f82, + 0xa4203782, 0xa5204f82, 0xa5242382, 0xa50200a0, 0xa6240b82, 0xa6020044, 0xa6202382, 0xa7200b82, 0xa7247382, 0xa80200b4, 0xa8203b82, 0xa820ab82, + 0xa9204782, 0xa920cb82, 0xa925d782, 0xaa0200c8, 0x82038294, 0x38ab24cb, 0x82ab0200, 0x80ab251f, 0x1cac0200, 0x93820382, 0x0f82ac20, 0x00bcac25, + 0x8234ad02, 0x28678203, 0x020024ae, 0x02009cae, 0x248382af, 0x020020b0, 0x20bf82b0, 0x242382b1, 0x020040b2, 0x216782b2, 0x078274b2, 0xb220b382, + 0xb2215382, 0x820b82a4, 0xd0b22177, 0xe3820782, 0x0018b324, 0x4782b302, 0x827cb321, 0x20538207, 0x204b82b4, 0x203782b4, 0x203782b4, 0x208b82b4, + 0x20af82b4, 0x254f82b4, 0x0200e0b4, 0x038204b5, 0x03826420, 0xb5208b82, 0xb5252b82, 0xb60200f8, 0x82038278, 0x82b6204b, 0x82b7204b, 0x82b7204b, + 0x90b72937, 0xccb70200, 0x0cb80200, 0x1f820382, 0xef82b820, 0x7f82b920, 0x4782b920, 0x5b82ba20, 0xb382ba20, 0x3382ba20, 0x5382ba20, 0x1b82ba20, + 0x3782bb20, 0xd782bb20, 0xbf82bb20, 0x8782bb20, 0x5b82bb20, 0x4f82bb20, 0x0054bc25, 0x8270bc02, 0x828c2003, 0x21878203, 0x0782b8bc, 0x0200dc24, + 0x038200bd, 0x03826820, 0xbd205382, 0xbe205382, 0xc0284782, 0xc1020008, 0xc202004c, 0xc4203b82, 0xc5287782, 0xcc020020, 0xcf0200a0, 0xd1202f82, + 0xda202f82, 0xdb202f82, 0xdb202382, 0xdc209b82, 0xdc202382, 0xdd243382, 0xdd020028, 0xdd218f82, 0x82078258, 0x82dd205f, 0x82de2073, 0x82de203b, + 0xe4de2483, 0x82de0200, 0x82df209b, 0x82df20cf, 0x10e024af, 0x82e00200, 0x82e020cb, 0x82e0203f, 0x2003832b, 0x846382e1, 0x003c3e03, 0x07000001, + 0x000602ee, 0x00780060, 0x0202000a, 0x00780340, 0x0400008d, 0x00150ea9, 0x24018203, 0x00100000, 0x260782c6, 0x00090401, 0x82ac0000, 0x00032103, + 0x01220b83, 0x0d822000, 0x02240b85, 0xcc000e00, 0x03242386, 0xda003400, 0x04240b86, 0x0e012000, 0x05240b86, 0x2e011a00, 0x06240b86, 0x48011e00, + 0x07240b86, 0x66016800, 0x08240b86, 0xce016c00, 0x09240b86, 0x3a026c00, 0x0b240b86, 0xa6022200, 0x0c200b86, 0xc8200b82, 0x0d240b86, 0xea022001, + 0x0e240b86, 0x0a043400, 0x10240b86, 0x3e041200, 0x11360b86, 0x50040c00, 0x6f004300, 0x79007000, 0x69007200, 0x68006700, 0xbd827400, 0x30003224, + 0xad823100, 0x83002d21, 0x82322009, 0x0020220b, 0x201b8254, 0x201b8265, 0x22278246, 0x82610072, 0x21398309, 0x13830064, 0x3d825020, 0x6a006f22, + 0x63200b82, 0x41223f84, 0x07827500, 0x59826820, 0x73007222, 0x28202982, 0x74205784, 0x73246782, 0x2f003a00, 0x67200182, 0x74204582, 0x75261582, + 0x2e006200, 0x29826300, 0x15826d20, 0x07827420, 0x31826e20, 0x8f826b20, 0x87002f21, 0x20678769, 0x20118829, 0x85b58420, 0x8252207b, 0x82742075, + 0x826e204d, 0x200b8393, 0x207b8267, 0x220b826c, 0x82360072, 0x00302259, 0x20c38230, 0x262f823b, 0x00440054, 0x903b0042, 0x002d2155, 0xdd93418b, + 0x56201f8b, 0x72206d82, 0x6920a182, 0x2020a984, 0xad8f638a, 0x4d205797, 0x6f223984, 0xb3822000, 0x05827320, 0x03826120, 0x72007422, 0xcf83b182, + 0xb9846d20, 0x13826b20, 0x66006f22, 0x54200582, 0x83067541, 0x007a2435, 0x826c0069, 0x077b4101, 0x70007222, 0x72204b82, 0xff833182, 0x6e006f22, + 0x4320ef82, 0x72203f84, 0x69201782, 0x2020a582, 0x6f20f782, 0x27895b82, 0x2c006522, 0x45215582, 0x206b8300, 0x2021826e, 0x22538270, 0x846b0065, + 0x207b83d5, 0x2445826e, 0x00410020, 0x20278447, 0x201d824e, 0x2003826b, 0x22558274, 0x82500020, 0x826f2049, 0x846f202b, 0x82762077, 0x8261205b, + 0x226be511, 0x82740068, 0x82702001, 0x053f42b1, 0x220b2942, 0x826d002e, 0x2221a1bf, 0x41680054, 0x46220673, 0xe7826f00, 0x20007424, 0x09825300, + 0x59826620, 0xe1827720, 0x45827220, 0x20079541, 0x2029826c, 0x200f8263, 0x2271826e, 0x82640065, 0x82752029, 0x82642031, 0x82722011, 0x4174200b, + 0x53240695, 0x4c004900, 0x4f220f82, 0x2b847000, 0x89002021, 0x8c4c2059, 0x822c2041, 0x0f3b4225, 0x2e003123, 0x43038300, 0xaf41055b, 0x42778d05, + 0x76200923, 0x69229f82, 0x05826c00, 0x05826220, 0x4d826520, 0x5f827720, 0x20208783, 0x77831382, 0x51004122, 0x61201582, 0x3a20cb82, 0x0d410782, + 0x052d4107, 0x63007328, 0x69007200, 0x1d827000, 0x75827320, 0x0b827320, 0x07826c20, 0x15826f20, 0x2f006724, 0xb7824f00, 0xa3434c20, 0x4333ab08, + 0x2d43112f, 0x0000230b, 0x00840002, 0x009cff23, 0x20088232, 0x8c038201, 0xee072102, 0x242e0e82, 0x0201c900, 0x6200c700, 0x0301ad00, 0xab820401, + 0x00ae7808, 0x00050190, 0x00260025, 0x00ff00fd, 0x01060164, 0x00270007, 0x010801e9, 0x00280009, 0x010a0165, 0x00c8000b, 0x000c01ca, 0x010d01cb, + 0x0029000e, 0x01f8002a, 0x0110010f, 0x012b0011, 0x00130112, 0x0014012c, 0x001501cc, 0x00ce00cd, 0x01cf00fa, 0x01170116, 0x012d0018, 0x012e0019, + 0x012f001a, 0x011c011b, 0x001e011d, 0x003000e2, 0x011f0131, 0x00210120, 0x82220166, 0x840f07a5, 0x002301d0, 0x006700d1, 0x012401d3, 0x01910025, + 0x00af0026, 0x003300b0, 0x003400ed, 0x01270135, 0x00290128, 0x002a0136, 0x01fb00e4, 0x012c012b, 0x0137002d, 0x012f012e, 0x00310130, 0x01d40038, + 0x00d50032, 0x01d60068, 0x01340133, 0x01360135, 0x00390037, 0x0138013a, 0x013a0139, 0x003b003b, 0x01eb003c, 0x01bb003c, 0x013d003d, 0x01e6003e, + 0x0140013f, 0x01420141, 0x01440143, 0x01460145, 0x00480147, 0x01690044, 0x006b0049, 0x016a006c, 0x004b014a, 0x006d006e, 0x004c01a0, 0x00460045, + 0x000001fe, 0x014d016f, 0x0047004e, 0x014f01ea, 0x00480001, 0x01500170, 0x00720051, 0x00520173, 0x01530171, 0x00490054, 0x01f9004a, 0x01560155, + 0x014b0057, 0x00590158, 0x00d7004c, 0x005a0174, 0x01770076, 0x0175005b, 0x015d015c, 0x005f015e, 0x0160014d, 0x014e0061, 0x00630162, 0x0164014f, + 0x01660165, 0x00e30067, 0x01510050, 0x01690168, 0x006b016a, 0x006c0178, 0x01790052, 0x007b006d, 0x017a007c, 0x006f016e, 0x007001a1, 0x00b1007d, + 0x00ee0053, 0x01550054, 0x01720171, 0x01560073, 0x00e50074, 0x017501fc, 0x00890076, 0x01770157, 0x01790178, 0x0058007a, 0x007b017e, 0x00810080, + 0x017c017f, 0x017e017d, 0x0080017f, 0x015a0059, 0x01820181, 0x00840183, 0x005c005b, 0x008501ec, 0x008601ba, 0x0087015d, 0x018801e7, 0x018a0189, + 0x018c018b, 0x018e018d, 0x0190018f, 0x01920191, 0x01940193, 0x01960195, 0x01980197, 0x019a0199, 0x019c019b, 0x019e019d, 0x01a0019f, 0x01a201a1, + 0x01a401a3, 0x01a601a5, 0x01a801a7, 0x01aa01a9, 0x01ac01ab, 0x01ae01ad, 0x01b001af, 0x01b201b1, 0x01b401b3, 0x01b601b5, 0x01b801b7, 0x01ba01b9, + 0x01bc01bb, 0x01be01bd, 0x01c001bf, 0x01c201c1, 0x01c401c3, 0x01c601c5, 0x01c801c7, 0x01ca01c9, 0x01cc01cb, 0x01ce01cd, 0x01d001cf, 0x01d201d1, + 0x01d401d3, 0x01d601d5, 0x01d801d7, 0x01da01d9, 0x01dc01db, 0x01de01dd, 0x01e001df, 0x01e201e1, 0x01e401e3, 0x01e601e5, 0x01e801e7, 0x01ea01e9, + 0x01ec01eb, 0x01ee01ed, 0x009d00ef, 0x01f0019e, 0x01f201f1, 0x01f401f3, 0x01f601f5, 0x01f801f7, 0x01fa01f9, 0x01fc01fb, 0x01fe01fd, 0x020002ff, + 0x02020201, 0x02040203, 0x02060205, 0x02080207, 0x020a0209, 0x020c020b, 0x020e020d, 0x0210020f, 0x02120211, 0x02140213, 0x02160215, 0x02180217, + 0x021a0219, 0x021c021b, 0x021e021d, 0x0220021f, 0x02220221, 0x02240223, 0x02260225, 0x02280227, 0x022a0229, 0x022c022b, 0x022e022d, 0x0230022f, + 0x02320231, 0x02340233, 0x02360235, 0x02380237, 0x023a0239, 0x023c023b, 0x023e023d, 0x0240023f, 0x02420241, 0x02440243, 0x02460245, 0x02480247, + 0x024a0249, 0x024c024b, 0x024e024d, 0x0250024f, 0x02520251, 0x02540253, 0x02560255, 0x02580257, 0x025a0259, 0x025c025b, 0x025e025d, 0x0260025f, + 0x02620261, 0x02640263, 0x02660265, 0x02680267, 0x026a0269, 0x026c026b, 0x026e026d, 0x0270026f, 0x02720271, 0x02740273, 0x02760275, 0x02780277, + 0x027a0279, 0x027c027b, 0x027e027d, 0x0280027f, 0x02820281, 0x02840283, 0x02860285, 0x02880287, 0x028a0289, 0x028c028b, 0x028e028d, 0x0290028f, + 0x02920291, 0x02940293, 0x02960295, 0x02980297, 0x029a0299, 0x029c029b, 0x029e029d, 0x02a0029f, 0x02a202a1, 0x02a402a3, 0x02a602a5, 0x02a802a7, + 0x02aa02a9, 0x02ac02ab, 0x02ae02ad, 0x02b002af, 0x02b202b1, 0x02b402b3, 0x02b602b5, 0x02b802b7, 0x02ba02b9, 0x02bc02bb, 0x02be02bd, 0x02c002bf, + 0x02c202c1, 0x02c402c3, 0x02c602c5, 0x02c802c7, 0x02ca02c9, 0x02cc02cb, 0x02ce02cd, 0x02d002cf, 0x02d202d1, 0x02d402d3, 0x02d602d5, 0x02d802d7, + 0x02da02d9, 0x02dc02db, 0x02de02dd, 0x02e002df, 0x02e202e1, 0x02e402e3, 0x02e602e5, 0x02e802e7, 0x02ea02e9, 0x02ec02eb, 0x02ee02ed, 0x02f002ef, + 0x02f202f1, 0x02f402f3, 0x02f602f5, 0x02f802f7, 0x02fa02f9, 0x02fc02fb, 0x02fe02fd, 0x030003ff, 0x03020301, 0x03040303, 0x03060305, 0x03080307, + 0x030a0309, 0x030c030b, 0x030e030d, 0x0310030f, 0x03120311, 0x03140313, 0x03160315, 0x03180317, 0x031a0319, 0x031c031b, 0x031e031d, 0x0320031f, + 0x03220321, 0x03240323, 0x03260325, 0x03280327, 0x032a0329, 0x032c032b, 0x032e032d, 0x0330032f, 0x03320331, 0x03340333, 0x03360335, 0x03380337, + 0x033a0339, 0x033c033b, 0x033e033d, 0x0340033f, 0x03420341, 0x03440343, 0x03460345, 0x03480347, 0x034a0349, 0x034c034b, 0x034e034d, 0x0350034f, + 0x03520351, 0x03540353, 0x03560355, 0x03580357, 0x035a0359, 0x035c035b, 0x035e035d, 0x0360035f, 0x03620361, 0x03640363, 0x03660365, 0x03680367, + 0x036a0369, 0x036c036b, 0x036e036d, 0x0370036f, 0x03720371, 0x03740373, 0x03760375, 0x03780377, 0x037a0379, 0x037c037b, 0x037e037d, 0x0380037f, + 0x03820381, 0x03840383, 0x03860385, 0x03880387, 0x038a0389, 0x038c038b, 0x038e038d, 0x0390038f, 0x03920391, 0x03940393, 0x03960395, 0x03980397, + 0x039a0399, 0x039c039b, 0x039e039d, 0x03a0039f, 0x03a203a1, 0x03a403a3, 0x03a603a5, 0x03a803a7, 0x03aa03a9, 0x03ac03ab, 0x03ae03ad, 0x03b003af, + 0x03b203b1, 0x039b00b3, 0x03b503b4, 0x03b703b6, 0x03b903b8, 0x03bb03ba, 0x03bd03bc, 0x03bf03be, 0x03c103c0, 0x03c303c2, 0x03c503c4, 0x03c703c6, + 0x03c903c8, 0x03cb03ca, 0x03cd03cc, 0x03cf03ce, 0x03d103d0, 0x03d303d2, 0x03d503d4, 0x03d703d6, 0x03d903d8, 0x03db03da, 0x03dd03dc, 0x03df03de, + 0x03e103e0, 0x03e303e2, 0x03e503e4, 0x03e703e6, 0x03e903e8, 0x03eb03ea, 0x03ed03ec, 0x03ef03ee, 0x03f103f0, 0x03f303f2, 0x03f503f4, 0x03f703f6, + 0x03f903f8, 0x03fb03fa, 0x03fd03fc, 0x04ff03fe, 0x04010400, 0x04030402, 0x04050404, 0x04070406, 0x04090408, 0x040b040a, 0x040d040c, 0x040f040e, + 0x04110410, 0x04130412, 0x04150414, 0x04170416, 0x04190418, 0x041b041a, 0x041d041c, 0x041f041e, 0x04210420, 0x04230422, 0x04250424, 0x04270426, + 0x04290428, 0x042b042a, 0x042d042c, 0x042f042e, 0x04310430, 0x04330432, 0x04350434, 0x04370436, 0x04390438, 0x043b043a, 0x043d043c, 0x043f043e, + 0x04410440, 0x04430442, 0x04450444, 0x04470446, 0x04490448, 0x044b044a, 0x044d044c, 0x044f044e, 0x04510450, 0x04530452, 0x04550454, 0x04570456, + 0x04590458, 0x045b045a, 0x045d045c, 0x045f045e, 0x04610460, 0x04630462, 0x00130064, 0x00150014, 0x00170016, 0x00190018, 0x001b001a, 0x0465041c, + 0x04670466, 0x04690468, 0x046b046a, 0x046d046c, 0x046f046e, 0x04710470, 0x04730472, 0x04750474, 0x04770476, 0x04790478, 0x047b047a, 0x047d047c, + 0x047f047e, 0x04810480, 0x04830482, 0x04850484, 0x04870486, 0x04890488, 0x048b048a, 0x048d048c, 0x048f048e, 0x04910490, 0x04930492, 0x04950494, + 0x04970496, 0x04990498, 0x049b049a, 0x049d049c, 0x049f049e, 0x04a104a0, 0x00a304a2, 0x00a404bc, 0x04a504f4, 0x00f500a6, 0x04a704f6, 0x04a904a8, + 0x04ab04aa, 0x04ad04ac, 0x04af04ae, 0x04b104b0, 0x04b304b2, 0x04b504b4, 0x04b704b6, 0x040300b8, 0x04ba04b9, 0x04bc04bb, 0x04be04bd, 0x04c004bf, + 0x04c204c1, 0x04c404c3, 0x041100c5, 0x04c704c6, 0x04c904c8, 0x000f00ca, 0x04cb041d, 0x04cd04cc, 0x041e00ce, 0x00ab00cf, 0x04d00404, 0x04d204d1, + 0x00a300d3, 0x04d40422, 0x00d604d5, 0x00c300a2, 0x040d0087, 0x04d804d7, 0x04da04d9, 0x040600db, 0x04dd04dc, 0x04df04de, 0x04e104e0, 0x04e304e2, + 0x00e504e4, 0x04e60412, 0x04e804e7, 0x00ea04e9, 0x04eb043f, 0x04ed04ec, 0x04ef04ee, 0x04f104f0, 0x04f304f2, 0x04f504f4, 0x04f704f6, 0x04f904f8, + 0x04fb04fa, 0x04fd04fc, 0x05ff04fe, 0x05010500, 0x05030502, 0x05050504, 0x05070506, 0x05090508, 0x050b050a, 0x050d050c, 0x050f050e, 0x05110510, + 0x05130512, 0x05150514, 0x05170516, 0x05190518, 0x051b051a, 0x051d051c, 0x0510001e, 0x00b2001f, 0x052005b3, 0x05220521, 0x05420023, 0x05250524, + 0x05270526, 0x05290528, 0x052b052a, 0x002d052c, 0x000c000b, 0x0060005e, 0x0540003e, 0x052f052e, 0x05310530, 0x05330532, 0x05350534, 0x05370536, + 0x05390538, 0x053b053a, 0x053d053c, 0x053f053e, 0x05410540, 0x05430542, 0x00c40044, 0x00b400c5, 0x00b600b5, 0x00a900b7, 0x00be00aa, 0x000500bf, + 0x0545050a, 0x05470546, 0x05a60048, 0x054a0549, 0x054c054b, 0x054e054d, 0x0550054f, 0x05520551, 0x05540553, 0x05560555, 0x05580557, 0x055a0559, + 0x055c055b, 0x055e055d, 0x0560055f, 0x05620561, 0x05640563, 0x05660565, 0x00230067, 0x00680509, 0x00860088, 0x008a008b, 0x0583008c, 0x055f0069, + 0x056b056a, 0x056d056c, 0x056f056e, 0x05e80070, 0x00820071, 0x057205c2, 0x05740573, 0x05760575, 0x05780577, 0x057a0579, 0x057c057b, 0x057e057d, + 0x0580057f, 0x05820581, 0x05840583, 0x05860585, 0x05880587, 0x058a0589, 0x058c058b, 0x058e058d, 0x0590058f, 0x05920591, 0x05940593, 0x05960595, + 0x05980597, 0x059a0599, 0x059c059b, 0x059e059d, 0x05a0059f, 0x05a205a1, 0x05a405a3, 0x05a605a5, 0x05a805a7, 0x05aa05a9, 0x05ac05ab, 0x05ae05ad, + 0x05b005af, 0x05b205b1, 0x05b405b3, 0x05b605b5, 0x05b805b7, 0x05ba05b9, 0x05bc05bb, 0x05be05bd, 0x05c005bf, 0x05c205c1, 0x05c405c3, 0x05c605c5, + 0x05c805c7, 0x05ca05c9, 0x05cc05cb, 0x05ce05cd, 0x05d005cf, 0x05d205d1, 0x05d405d3, 0x05d605d5, 0x05d805d7, 0x05da05d9, 0x05dc05db, 0x05de05dd, + 0x05e005df, 0x05e205e1, 0x05e405e3, 0x05e605e5, 0x05e805e7, 0x05ea05e9, 0x05ec05eb, 0x05ee05ed, 0x05f005ef, 0x05f205f1, 0x05f405f3, 0x05f605f5, + 0x05f805f7, 0x05fa05f9, 0x05fc05fb, 0x05fe05fd, 0x060006ff, 0x06020601, 0x06040603, 0x06060605, 0x06080607, 0x060a0609, 0x060c060b, 0x060e060d, + 0x0610060f, 0x06120611, 0x06140613, 0x06160615, 0x06180617, 0x061a0619, 0x061c061b, 0x061e061d, 0x0020061f, 0x00bd0084, 0x06210607, 0x06230622, + 0x00250624, 0x06960085, 0x06270626, 0x06290628, 0x062b062a, 0x062d062c, 0x062f062e, 0x06310630, 0x06330632, 0x06350634, 0x06370636, 0x06390638, + 0x063b063a, 0x063d063c, 0x063f063e, 0x06410640, 0x06430642, 0x06450644, 0x06470646, 0x06490648, 0x064b064a, 0x064d064c, 0x064f064e, 0x06510650, + 0x06530652, 0x06550654, 0x00570656, 0x00ef000e, 0x00b800f0, 0x008f0020, 0x001f0021, 0x00940095, 0x00a70093, 0x00a40061, 0x06920041, 0x06590658, + 0x065b065a, 0x069c005c, 0x009a005d, 0x06a50099, 0x0698005e, 0x0660065f, 0x06620661, 0x00640663, 0x06c60008, 0x06660665, 0x06680667, 0x066a0669, + 0x066c066b, 0x066e066d, 0x0670066f, 0x06720671, 0x06740673, 0x06760675, 0x06780677, 0x067a0679, 0x067c067b, 0x067e067d, 0x0680067f, 0x06820681, + 0x06840683, 0x06860685, 0x06880687, 0x068a0689, 0x068c068b, 0x068e068d, 0x0690068f, 0x06920691, 0x06940693, 0x06960695, 0x06980697, 0x069a0699, + 0x069c069b, 0x069e069d, 0x06a0069f, 0x06a206a1, 0x06a406a3, 0x06a606a5, 0x06a806a7, 0x06aa06a9, 0x06ac06ab, 0x06ae06ad, 0x06b006af, 0x06b206b1, + 0x06b406b3, 0x06b606b5, 0x06b806b7, 0x06ba06b9, 0x06bc06bb, 0x06be06bd, 0x06c006bf, 0x06c206c1, 0x06c406c3, 0x06c606c5, 0x06c806c7, 0x06ca06c9, + 0x06cc06cb, 0x06ce06cd, 0x06d006cf, 0x06d206d1, 0x06d406d3, 0x06d606d5, 0x06d806d7, 0x06da06d9, 0x06dc06db, 0x06de06dd, 0x06e006df, 0x06e206e1, + 0x06e406e3, 0x06e606e5, 0x06e806e7, 0x06ea06e9, 0x06ec06eb, 0x06ee06ed, 0x06f006ef, 0x06f206f1, 0x06f406f3, 0x06f606f5, 0x00f806f7, 0x06f906b9, + 0x06fb06fa, 0x06fd06fc, 0x07ff06fe, 0x07010700, 0x07030702, 0x07050704, 0x07070706, 0x07090708, 0x070b070a, 0x070d070c, 0x070f070e, 0x07110710, + 0x07130712, 0x07150714, 0x07170716, 0x07190718, 0x071b071a, 0x071d071c, 0x071f071e, 0x07210720, 0x07230722, 0x07250724, 0x07270726, 0x07290728, + 0x072b072a, 0x072d072c, 0x072f072e, 0x07310730, 0x07330732, 0x07350734, 0x07370736, 0x07390738, 0x073b073a, 0x073d073c, 0x073f073e, 0x07410740, + 0x07430742, 0x07450744, 0x07470746, 0x07490748, 0x074b074a, 0x074d074c, 0x074f074e, 0x07510750, 0x07530752, 0x07550754, 0x07570756, 0x07590758, + 0x075b075a, 0x075d075c, 0x075f075e, 0x07610760, 0x07630762, 0x07650764, 0x07670766, 0x07690768, 0x076b076a, 0x076d076c, 0x076f076e, 0x07710770, + 0x07730772, 0x07750774, 0x07770776, 0x07790778, 0x077b077a, 0x077d077c, 0x077f077e, 0x07810780, 0x07830782, 0x07850784, 0x07870786, 0x07890788, + 0x078b078a, 0x078d078c, 0x078f078e, 0x07910790, 0x07930792, 0x07950794, 0x07970796, 0x07990798, 0x079b079a, 0x079d079c, 0x079f079e, 0x07a107a0, + 0x07a307a2, 0x07a507a4, 0x07a707a6, 0x07a907a8, 0x07ab07aa, 0x07ad07ac, 0x07af07ae, 0x07b107b0, 0x07b307b2, 0x07b507b4, 0x07b707b6, 0x07b907b8, + 0x07bb07ba, 0x07bd07bc, 0x07bf07be, 0x07c107c0, 0x07c307c2, 0x00c507c4, 0x00dc008e, 0x008d0043, 0x07d800df, 0x00e100c6, 0x00dd00db, 0x00da00d9, + 0x07e000de, 0x07c807c7, 0x07ca07c9, 0x07cc07cb, 0x07ce07cd, 0x07d007cf, 0x07d207d1, 0x07d407d3, 0x07d607d5, 0x07d807d7, 0x07da07d9, 0x07dc07db, + 0x07de07dd, 0x07e007df, 0x07e207e1, 0x07e407e3, 0x07e607e5, 0x07e807e7, 0x07ea07e9, 0x07ec07eb, 0x07ee07ed, 0x07f007ef, 0x07f207f1, 0x07f407f3, + 0x07f607f5, 0x07f807f7, 0x06fa07f9, 0x65726241, 0x41076576, 0x7263616d, 0x41076e6f, 0x6e6f676f, 0x41076b65, 0x75636145, 0x430b6574, 0x63726963, + 0x6c666d75, 0x430a7865, 0x61746f64, 0x6e656363, 0x63440674, 0x822d8261, 0x6f722506, 0x45067461, 0x06214384, 0x21148445, 0x2688450a, 0x86450721, + 0x85452055, 0x470b2155, 0x07294d89, 0x30696e75, 0x0a323231, 0x262e8847, 0x61624804, 0x89480b72, 0x49022423, 0x8449064a, 0x4907215b, 0x49204986, + 0x06284985, 0x6c697449, 0x4a0b6564, 0x3323508f, 0x844c0636, 0x4c0621b9, 0x66858d84, 0x04423323, 0x2166824c, 0x1a854e06, 0x1a8a4e20, 0x03353427, + 0x06676e45, 0x2f66844f, 0x75684f0d, 0x7261676e, 0x616c6d75, 0x4f077475, 0x0b267485, 0x616c734f, 0x3b856873, 0x06865220, 0x3523428a, 0x84530636, + 0x530b2115, 0x32228e8e, 0x80833831, 0x39453125, 0x82540445, 0x540621dc, 0x3621368a, 0x249c8432, 0x06413132, 0x207d8555, 0x207d8c55, 0x217d8555, + 0xf2855507, 0x72550523, 0x20a88269, 0x21f88455, 0x70855706, 0x70895720, 0x64570932, 0x65726569, 0x06736973, 0x61726757, 0x590b6576, 0x06211c89, + 0x21128459, 0x36845a06, 0x415a0a21, 0x0e210873, 0x28118443, 0x636f6c2e, 0x4b4c506c, 0x0521410e, 0x4f200e88, 0xe6851d8d, 0x4d851d88, 0x082a0e87, + 0x70732e46, 0x72656361, 0x08865408, 0x5f460d2f, 0x696c2e6c, 0x732e6167, 0x0d303173, 0x210d8b54, 0x78426106, 0x86612005, 0x856120e5, 0x610722e5, + 0x21728465, 0xbc89630b, 0x88630a21, 0x640628ae, 0x6f726163, 0x4265066e, 0x65200571, 0x0a210d84, 0x211f8865, 0x4e866507, 0x4e856520, 0x41670b21, + 0x31240e91, 0x670a3332, 0x04262e88, 0x72616268, 0x2389680b, 0x84690621, 0x69092158, 0x5427d484, 0x69024b52, 0x8669076a, 0x85692053, 0x69062653, + 0x646c6974, 0x05bc4165, 0x0b373323, 0x30628f6a, 0x6b0c3733, 0x65657267, 0x6e616c6e, 0x06636964, 0x21d1846c, 0xfb416c06, 0x4333230a, 0x85826c04, + 0x846e0621, 0x6e0b2d1a, 0x736f7061, 0x706f7274, 0x6e066568, 0x3427268a, 0x6e650336, 0x846f0667, 0x6f0d2194, 0x200c1e42, 0x2195856f, 0x9c426f0b, + 0x8472200a, 0x7206214e, 0x3523428a, 0x84730637, 0x730b2115, 0x3224a78e, 0x74043931, 0x0621ff82, 0x212e8a74, 0xd7853336, 0x06423123, 0x20758575, + 0x20758c75, 0x21758575, 0x0b417507, 0x75052305, 0xa0826972, 0x69747527, 0x0665646c, 0x20688577, 0x21688977, 0x94427709, 0x67772708, 0x65766172, + 0x1c89790b, 0x84790621, 0x7a062112, 0x0a213684, 0x0896417a, 0x2e610628, 0x31307663, 0x1884610b, 0x8d840b86, 0x10210b84, 0x84438961, 0x610e2110, + 0x0e846587, 0x84610b21, 0x200b8457, 0x065f420c, 0xb5850c86, 0x0a210c84, 0x84ba8361, 0x610b210a, 0x0b84bf84, 0x83670621, 0x0b322206, 0x216f8867, + 0x44421032, 0x201c840a, 0x05bb440c, 0x0c843320, 0x4e420f20, 0x210f8409, 0x06836906, 0x820d3321, 0x656c23cd, 0x0d857373, 0x88690b21, 0x0b3321ca, + 0x84056342, 0x69102125, 0x3322ca8d, 0xca8b690e, 0x88420e82, 0x212e8407, 0xd988690b, 0x420c3321, 0x18840696, 0x9b420c20, 0x200c8406, 0x05a0420b, + 0x8d850b84, 0x8d8c3420, 0x8d8a3420, 0xe8880b82, 0x8d8f3420, 0x8d8d3420, 0x8d8b0e82, 0x8d883a82, 0x8d8b3420, 0x67410c82, 0x41258209, 0x3420085c, + 0x35208d85, 0x35208d8c, 0x0b828d8a, 0x35208d88, 0x35208d8f, 0x0e828d8d, 0x3a828d8b, 0x35208d88, 0x0c828d8b, 0x25828d89, 0x35208d88, 0x36208d85, + 0x36208d8c, 0x0b828d8a, 0x36208d88, 0x36208d8f, 0x0e828d8d, 0x3a828d8b, 0x36208d88, 0x0c828d8b, 0x25828d89, 0x36288d88, 0x632e6c06, 0x0b373076, + 0x86052d44, 0x6163240b, 0x846e6f72, 0x0573420b, 0x84433321, 0x6c09240c, 0x84746f64, 0x6c0b2609, 0x73616c73, 0x850b8468, 0x8a382041, 0x880b8241, + 0x8b382041, 0x88382041, 0x88228241, 0x85382041, 0x8a392041, 0x880b8241, 0x8b392041, 0x88392041, 0x88228241, 0x84392041, 0x30312141, 0x0b834189, + 0x31214187, 0x21418a30, 0x41873031, 0x41872283, 0x0e303123, 0x0d734663, 0x46052245, 0x6f200873, 0xdb441d8d, 0x441d8805, 0x0e87054a, 0x2e780a2c, + 0x746c756d, 0x796c7069, 0x93466608, 0x6c082106, 0x77200887, 0x06270886, 0x73732e72, 0x890f3130, 0x742e312c, 0x0a66736f, 0x61732e69, 0x6c5f746c, + 0x6a0a776f, 0x3e820a89, 0x77211587, 0x2801825f, 0x67696c2e, 0x5f660d61, 0x0ae84669, 0x6a5f6622, 0x04470d8c, 0x5f66220b, 0x271b8974, 0x696e7507, + 0x46373032, 0x30230783, 0x86303134, 0x86312007, 0x05204807, 0x45313421, 0x34210593, 0x20078630, 0x21278639, 0x27853646, 0x27863920, 0x85343921, + 0x8731200f, 0x85352007, 0x8630200f, 0x8730202f, 0x21378657, 0x1f853731, 0x8205a448, 0x8539207f, 0x4430210f, 0x38210785, 0x20078541, 0x21078631, + 0x0f864330, 0x07864220, 0x2f860f87, 0x86453121, 0x20cf8617, 0x20778632, 0x20778632, 0x20a78632, 0x20c78632, 0x202f8630, 0x20af8632, 0x20af8632, + 0x20978632, 0x21a78632, 0x57853832, 0x9f873220, 0x7f865f87, 0x8f863220, 0xa7873220, 0x0f872787, 0x30205786, 0xaf866787, 0x5f863020, 0x6f863020, + 0x67863020, 0x4f873020, 0x6f869f87, 0xbf863020, 0x85303621, 0x06c0498f, 0x86363421, 0x86362057, 0x8636204f, 0x86362047, 0x8636207f, 0x863620a7, + 0x8637204f, 0x8637203f, 0x8637204f, 0x8637203f, 0x8637203f, 0x8639203f, 0x8739200f, 0x204f860f, 0x204f8639, 0x214f8639, 0x8f853041, 0x4f864120, + 0x4f864120, 0x3f854120, 0x5f413520, 0x86412007, 0x86412047, 0x43412c47, 0x74735509, 0x74696172, 0x860f7963, 0x240f8209, 0x63656b6f, 0x20518579, + 0x20518642, 0x20518642, 0x21518542, 0x49864234, 0x49854220, 0xa9413520, 0x86422007, 0x86422099, 0x30432199, 0x43214785, 0x41078631, 0x432006f9, + 0x20069141, 0x06794143, 0xb1414320, 0x41432006, 0x43200679, 0x2006a141, 0x203f8644, 0x20878644, 0x20878644, 0x20878644, 0x20878644, 0x21878544, + 0x7f864434, 0x7f864420, 0x85304521, 0x86452077, 0x8645203f, 0x8645203f, 0x8645203f, 0x8645203f, 0x8645203f, 0x8645203f, 0x3046213f, 0x46203f85, + 0x46203f86, 0x46203f86, 0x46203786, 0x46203786, 0x46203786, 0x35203785, 0x20067143, 0x06314235, 0x79423520, 0x42352006, 0x35200671, 0x21066942, + 0x3f853035, 0x59433520, 0x43352006, 0x35200611, 0x21060944, 0x77853135, 0xd1433520, 0x31352106, 0x3520b785, 0x2006b143, 0x06994335, 0x85313521, + 0x4335207f, 0x35200681, 0x20067943, 0x07714335, 0x1f853820, 0x86383421, 0x0651439f, 0x31433520, 0x32352106, 0x35211f85, 0x221f8532, 0x85303334, + 0x313321f7, 0x87850786, 0x41333421, 0x352006bf, 0x39200786, 0x46201f86, 0x2006c741, 0x41178739, 0x332006df, 0x20062f41, 0x200f8633, 0x20578635, + 0x20378635, 0x21cf8533, 0x3f863334, 0x57413320, 0x42332006, 0x3520060f, 0x20060742, 0x06174238, 0x2f413320, 0x35342105, 0x3421af85, 0x87178733, + 0x202f860f, 0x43c78733, 0x342006b9, 0x34207786, 0x34207786, 0x3420cf86, 0x3520af86, 0x34202f86, 0x3420af86, 0x3420af86, 0x34209786, 0x3420a786, + 0x34209f86, 0x5f879f87, 0x34207f86, 0x34208f86, 0x2787a787, 0x57860f87, 0x67873520, 0x3520af86, 0x35205f86, 0x35206f86, 0x35206786, 0x9f874f87, + 0x35206f86, 0x3621bf86, 0x059f4131, 0x2106b54b, 0x5f863634, 0x47863620, 0x7f863620, 0x47863620, 0x6f863620, 0x47863620, 0x3f863720, 0x07413720, + 0x86372006, 0x8637203f, 0x8637203f, 0x8639203f, 0x8739200f, 0x204f860f, 0x204f8639, 0x214f8639, 0x8f853141, 0x4f864120, 0x4f854120, 0xd9453520, + 0x86412007, 0x86412047, 0x86412047, 0x44412347, 0x89447509, 0x44098608, 0x51860e89, 0x51854220, 0x86423421, 0x86422049, 0x85422049, 0x46352049, + 0x4220073b, 0x42209986, 0x43209986, 0x39410787, 0x41432006, 0x43200681, 0x20067941, 0x06714143, 0xa9414320, 0x41432006, 0x432006d1, 0x21067941, + 0xd9853144, 0x87864420, 0x87864420, 0x87864420, 0x87864420, 0x87854420, 0x86443421, 0x8644207f, 0x31452177, 0x45203f85, 0x45203f86, 0x45203f86, + 0x45203f86, 0x45203f86, 0x45203f86, 0x45203f86, 0x46213f86, 0x203f8531, 0x203f8646, 0x203f8646, 0x20378646, 0x20378646, 0x20378646, 0x20378546, + 0x06f34735, 0x3b483520, 0x30352106, 0x35203785, 0x2106f346, 0x3f853035, 0xf3463520, 0x47352006, 0x352106fb, 0x213f8630, 0x77843131, 0x85313521, + 0x31352177, 0x31203f86, 0x3521b785, 0x203f8631, 0x217f8531, 0x7f853135, 0x86313521, 0x06fb473f, 0xf3473520, 0x85382007, 0x3834211f, 0x3f861f87, + 0x2106c347, 0x1f853235, 0x4632353c, 0x746f5908, 0x65657267, 0x6c41056b, 0x04616870, 0x61746542, 0x6d614705, 0x9184616d, 0x3439332c, 0x73704507, + 0x6e6f6c69, 0x1a825a04, 0x82450321, 0x6854211e, 0x04220982, 0x0a826f49, 0x614b2f08, 0x06617070, 0x626d614c, 0x4d026164, 0x754e0275, 0x07695802, + 0x63696d4f, 0x026e6f72, 0x52036950, 0x53056f68, 0x616d6769, 0x75615403, 0x4a855507, 0x68500325, 0x82430369, 0x73502203, 0x22668569, 0x840a3941, + 0x6f74257f, 0x0c736f6e, 0x0c847186, 0x71820820, 0x09200884, 0x09847083, 0x5f860c20, 0x53860c85, 0x0a250c84, 0x67656d4f, 0x200a8461, 0x4d2e830c, + 0x0f2007e5, 0x0f872486, 0x21487485, 0x48332006, 0x33200621, 0x20061948, 0x06ef4633, 0xef463320, 0x46332006, 0x332006ef, 0x2006ef46, 0x06ef4633, + 0xed423320, 0x47332006, 0x33200637, 0x2006b542, 0x063f4733, 0xc7463320, 0x45332006, 0x332006b7, 0x21064542, 0xfd424633, 0x42332005, 0x33200645, + 0x2006cf46, 0x054d4233, 0x46463121, 0x078205b7, 0xa7833920, 0x2f840782, 0x42200782, 0x43200f86, 0x44200786, 0x45200786, 0x46200786, 0x2f480785, + 0x46312105, 0x8205ad43, 0x86382007, 0x484f8617, 0x3122053f, 0x17863846, 0x17863820, 0x8205894a, 0x46678617, 0x0f8205cf, 0xd7466786, 0x860f8205, + 0x051f4767, 0x42463121, 0x0782059d, 0xa542a786, 0x860f8205, 0x05ad42a7, 0x43463121, 0x078205fd, 0x1f476f86, 0x46312105, 0x8205714a, 0x423f8607, + 0x0f8205a5, 0xad423f86, 0x860f8205, 0x863220e7, 0x0545447f, 0xaf864f82, 0x21054d44, 0xc9494631, 0x86078205, 0x86392067, 0x86392057, 0x05d94927, + 0xd7861f82, 0x8205e149, 0x4757860f, 0x3121051f, 0x051f4746, 0x3f860782, 0x82050747, 0x2097860f, 0x473f8633, 0x17820507, 0x37423f86, 0x46312105, + 0x8205a544, 0x06674107, 0x2105bd44, 0xdf464631, 0x86078205, 0x05c7469f, 0x9f860f82, 0x5f863420, 0x5f863420, 0x22050749, 0x86464631, 0x053f492f, + 0x35463122, 0xbf460f86, 0x860f8205, 0x8635202f, 0x056f4987, 0x44463121, 0x078205ed, 0x05458786, 0x46312105, 0x8205414b, 0x4b478607, 0x0f820549, + 0x36208786, 0xcf468786, 0x41178205, 0xd746067f, 0x46312105, 0x8205c742, 0x492f8607, 0x3121059f, 0x05014b46, 0x57860782, 0x8205094b, 0x2027860f, + 0x20578641, 0x20af8641, 0x3a578641, 0x61054641, 0x6168706c, 0x74656204, 0x61670561, 0x05616d6d, 0x746c6564, 0x44650761, 0x04210537, 0x2018827a, + 0x22038203, 0x82687405, 0x69042205, 0x2a27826f, 0x7070616b, 0x616c0661, 0x4464626d, 0x422906b3, 0x756e0243, 0x07697802, 0x0587446f, 0x68720323, + 0x05f1436f, 0x0532432d, 0x6d676973, 0x61740361, 0x85750775, 0x70032554, 0x63036968, 0x0e820382, 0x6d6f0526, 0x09616765, 0x44445783, 0x44098305, + 0x11200734, 0x1e850c8b, 0x0c844286, 0x0c860f20, 0x14202e87, 0x24840f8e, 0x92860c20, 0x0a200c84, 0x0a856d84, 0xfd44f884, 0x44ec8605, 0xe68205fd, + 0xbf850884, 0x20064948, 0x06494833, 0x37373331, 0x76657219, 0x65737265, 0x6e756c64, 0x84657461, 0x79732add, 0x6c6f626d, 0x746f6417, 0x20179274, + 0x9631871f, 0x4269851f, 0x302105ab, 0x05c34233, 0x44200782, 0x46201786, 0x69470785, 0x47332006, 0x33200699, 0x2006434c, 0x06c14733, 0xb9473320, + 0x4c332006, 0x33200643, 0x2206e34b, 0x85314633, 0x06eb4b3f, 0x69473320, 0x47332006, 0x33200669, 0x2105eb42, 0x69473330, 0x42332006, 0xeb4b0753, + 0x46312105, 0x82056947, 0x44322007, 0x714705d3, 0x200f8205, 0x200f8634, 0x20078635, 0x20078636, 0x45078537, 0x312105eb, 0x05414146, 0x4d463121, + 0x07820563, 0x1f853020, 0x97844220, 0x33200f82, 0x5f860f86, 0x2205934d, 0x86384631, 0x86382027, 0x86382027, 0x8638201f, 0x8638202f, 0x8638207f, + 0x8638207f, 0x8638207f, 0x0549497f, 0x4c463121, 0x07820573, 0x7b4c4786, 0x860f8205, 0x05834c47, 0x47860f82, 0x82059b46, 0x4c1f86b7, 0x31210573, + 0x05f14746, 0x87860782, 0x8205f947, 0x2087860f, 0x4e3f8632, 0x17820533, 0x054f8786, 0x864f8205, 0x0599491f, 0x43463122, 0x43205f86, 0xb9494f86, + 0x46312105, 0x82050551, 0x20af8607, 0x4c1f8639, 0x17820583, 0x39206f86, 0x4d4f4f86, 0x86178205, 0x057b4e6f, 0x4c463121, 0x078205eb, 0x33204786, + 0xeb4c4786, 0x86178205, 0x86332047, 0x05b34c47, 0x47861782, 0x82059b47, 0x420f86b7, 0x31210557, 0x05774246, 0x57860782, 0x82058b47, 0x42cf860f, + 0x3121059f, 0x059b4c46, 0x27860782, 0x82059b4c, 0x4c27860f, 0x0f820593, 0x1d507f86, 0x446f8205, 0xd34e06c3, 0x46312105, 0x2105514a, 0x634d4631, + 0x20078205, 0x052f4231, 0x82052b4c, 0x4c4f860f, 0x0f82057b, 0x7b4c4f86, 0x860f8205, 0x463720bf, 0x37200653, 0x4f061345, 0x5f82052b, 0x43066742, + 0x0f82055f, 0x4a062741, 0x0f8205d1, 0x1d513f86, 0x46312105, 0x82059b4c, 0x4c278607, 0x0f8205a3, 0x4c064f41, 0x0f8205ab, 0x4c068f42, 0xd78205b3, + 0x21068345, 0xbf854437, 0x2105e552, 0x8f434631, 0x86078205, 0x05c3484f, 0x50463121, 0x078205fd, 0x0551ef86, 0x860f8205, 0x050d51ef, 0xef860f82, + 0x82051551, 0x49af860f, 0x31210503, 0x06b35046, 0x41373335, 0x6e616312, 0x61696461, 0x6c79736e, 0x6962616c, 0x916f7363, 0x06612512, 0x35443175, + 0x22058847, 0x84303132, 0x84078294, 0x313222b4, 0x826c8431, 0x83392007, 0x200782c4, 0x86078641, 0x3432271f, 0x72657a09, 0x04832e6f, 0x63230985, + 0x88313176, 0x88322009, 0x0a332709, 0x65726874, 0x1e822e65, 0x74283286, 0x0866736f, 0x2e656e6f, 0x74220884, 0x08846f77, 0x13832686, 0x6f660924, + 0x14847275, 0x69660923, 0x22278676, 0x84786973, 0x730a2512, 0x6e657665, 0x65240a85, 0x74686769, 0x09220a84, 0x5086696e, 0x6e890f20, 0x6e642e24, + 0x0f8b6d6f, 0x6d756e24, 0xb6880e72, 0x0e853884, 0xa1837583, 0x0e8d3120, 0x0e8d3220, 0x4b863320, 0x34202d87, 0x07411e8a, 0x84748309, 0x830884de, + 0x860883de, 0x850a83de, 0x830985de, 0x832784de, 0x852784de, 0x850a84de, 0x842884de, 0x250983de, 0x696e7507, 0x32453032, 0x20078205, 0x410f8631, + 0x302005bd, 0x82053245, 0x86342017, 0x05c54117, 0x32453020, 0x20178205, 0x20178637, 0x20078638, 0x05a74139, 0x6d756e23, 0x84b38472, 0x83b38308, + 0x83b38608, 0x85b3850a, 0x84b38309, 0x84b38327, 0x84b38527, 0x84b3850a, 0x83b38428, 0x466b8509, 0x30210526, 0x06f04e30, 0x9a533020, 0x42302206, + 0x861f8633, 0x05c24fb3, 0x44303221, 0x07820596, 0x3644b386, 0x420f8205, 0x8a490691, 0x31322105, 0x8205ca51, 0x213f8507, 0xf3853531, 0x16443120, + 0x85178205, 0x5031203f, 0x0f820592, 0x41243f87, 0x656e6f09, 0x6825af84, 0x7268740c, 0x220b8665, 0x82660b73, 0x211785e1, 0xda840c73, 0xfe410c86, + 0x6e642906, 0x632e6d6f, 0x0c343176, 0x20058b41, 0x860c8433, 0x88ef831c, 0x85ec821c, 0x4302221c, 0x21e48352, 0x874c4546, 0x30322105, 0x8205bd4e, + 0x83382007, 0x30302117, 0x82050344, 0x0a422c0f, 0x63617073, 0x72662e65, 0x840a6361, 0x37302d5f, 0x0966742e, 0x746f6e61, 0x69656c65, 0x21068749, + 0x37834537, 0x53373221, 0x078205ff, 0x68123928, 0x65687079, 0x06855f6e, 0x696c2e25, 0x85166167, 0x615f240b, 0x5b696373, 0x16830651, 0x82621221, + 0x254b825b, 0x625f7466, 0x29847261, 0x12831420, 0x74656b24, 0x148a656c, 0x14861c20, 0x67697225, 0x825f7468, 0x656226d8, 0x67697372, 0x2731846e, + 0x72657012, 0x5f646f69, 0x12840685, 0x128c1920, 0x1820198b, 0x6523198d, 0x58617571, 0x17200551, 0x6c23188d, 0x84737365, 0x8614204a, 0x75712617, + 0x69747365, 0x2672856f, 0x6c6f6310, 0x845f6e6f, 0x20258405, 0x97108a16, 0x866b8916, 0x2410893e, 0x6d657318, 0x88428569, 0x27578409, 0x63786512, + 0x5f6d616c, 0x12840685, 0x128c1920, 0x1120db8b, 0xd4891987, 0x5f20118b, 0x14206f89, 0x3e8bcd87, 0x14881620, 0x1320eb8c, 0x3f891688, 0x73611629, + 0x69726574, 0x875f6b73, 0x209a8408, 0x8d16901f, 0x8815201f, 0x7267231f, 0x41826165, 0x13203584, 0xb85a1588, 0x696c2c05, 0x75076167, 0x3032696e, + 0x41193631, 0x5f2809eb, 0x65726170, 0x66656c6e, 0x8b05f359, 0x08454219, 0x1b204f84, 0x4c42338a, 0x201b840a, 0x411b8a15, 0x4b8b09bd, 0x5f241589, + 0x166d6572, 0x83412f8a, 0x8a18200a, 0x0c2c4116, 0x2e415f8b, 0x8a1a2009, 0x6e75292e, 0x73726564, 0x65726f63, 0x24209084, 0xeb8e1a94, 0x6c731325, + 0x41687361, 0x12200d4b, 0x48411385, 0x8510200b, 0x09454112, 0x108a1620, 0x16895f20, 0x0a841420, 0x61625f24, 0x148a6b63, 0x298a0e88, 0x22058641, + 0x850f4134, 0x6f6429fb, 0x632e6e77, 0x11657361, 0x1188f487, 0x37410c20, 0x65632605, 0x7265746e, 0x0815420d, 0x31766323, 0x079f4335, 0x25050244, + 0x3276632e, 0x2d841135, 0x82072044, 0x1d362111, 0x200cf643, 0x269a8272, 0x69727465, 0x83746867, 0x1137212f, 0x41068443, 0x63240552, 0x0e323376, + 0x24090d42, 0x6d6f6e64, 0x850e840f, 0x200f8330, 0x2181880b, 0x2a8a636c, 0x6d756e23, 0x832a8b72, 0x850e200f, 0x655f2897, 0x732e646e, 0x86117165, + 0x696d250e, 0x656c6464, 0x10201183, 0x73241186, 0x74726174, 0xec431083, 0x208c8406, 0x2027895f, 0x0c6c4317, 0x12201789, 0x860ae241, 0x0b264264, + 0x14202889, 0x6c88288a, 0x8506fb41, 0x413e866c, 0x808f06d7, 0x6c731525, 0x43687361, 0x5f2005e6, 0x19204088, 0x8c0b0442, 0x911c2046, 0x208c8919, + 0x881c911b, 0x42122052, 0x364109c4, 0x8a152007, 0x20448912, 0x88158a14, 0x410d203d, 0x315e05cc, 0x06384206, 0x61707326, 0x10726563, 0x8509fd44, + 0x410d2010, 0x2b860553, 0x6b430f20, 0x201d8508, 0x08e5410f, 0x11200f85, 0x86094041, 0x840c2031, 0x200c86c5, 0x08e24210, 0x0e201086, 0x7323108a, + 0x85163630, 0x0ba4466c, 0x30737323, 0x0d564537, 0x38201182, 0x250de941, 0x61757165, 0x17832e6c, 0x6f630829, 0x2e6e6f6c, 0x451b6375, 0x2e2a1008, + 0x6167696c, 0x3176632e, 0x1b902436, 0x840dd843, 0x451a2024, 0x1a841429, 0x2e451820, 0x44188512, 0x18841225, 0x10451e20, 0x4565200e, 0x1e820844, + 0x21059653, 0xa6513030, 0x30323405, 0x660a3531, 0x72756769, 0x73616465, 0x6e750768, 0x53453269, 0x07820511, 0x410d4121, 0x642309cf, 0x430b6c62, + 0x2e250518, 0x65736163, 0x8329820c, 0x220c8444, 0x836e650b, 0x200b863d, 0x200b886d, 0x22308609, 0x860d636c, 0x06b74109, 0x99415689, 0x20788406, + 0x05e05630, 0x38303223, 0x230f8345, 0x43303033, 0xf94b0786, 0x49372005, 0x322105c7, 0x05ee4f37, 0x4c303221, 0x078205e6, 0xf3434520, 0x439d830a, + 0x0f830bf3, 0x31460e20, 0x841e8409, 0x053d440e, 0x10200f83, 0x840a8c44, 0x481120c4, 0x11840b7f, 0x46218883, 0x05b55e46, 0x33200782, 0x7623518b, + 0x8b0f3932, 0x8b0f8251, 0x3376228f, 0x828f8c31, 0x4410200f, 0x114109cd, 0x41818405, 0x108505a7, 0x65208184, 0x1185a285, 0xa48b1220, 0x13201285, + 0x1385a68c, 0x7567122d, 0x656c6c69, 0x6c746f6d, 0x84746665, 0x881320bb, 0x84f28912, 0x69732326, 0x2b82676e, 0x1284268b, 0xf6832689, 0x50333021, + 0x0782055e, 0x0f853520, 0x0b36462e, 0x6973756d, 0x6e6c6163, 0x0e65746f, 0x64220b8a, 0x22836c62, 0x31363223, 0x20078630, 0x4c078631, 0x36200526, + 0x2205e950, 0x86333632, 0x8633201f, 0x0539501f, 0x924b1782, 0x5c362005, 0x0f8205fd, 0x07827284, 0x47853620, 0x8205ed5c, 0x0939240f, 0x82696d73, + 0x636126e2, 0x6e690c65, 0x2b0c8876, 0x6e757303, 0x6d656606, 0x04656c61, 0x05380483, 0x64617073, 0x6c630465, 0x68056275, 0x74726165, 0x61696407, + 0x646e6f6d, 0x37344f84, 0x61123331, 0x6f6e6b63, 0x64656c77, 0x6f636567, 0x6f72746e, 0x3322c285, 0x40443738, 0x82702005, 0x2a188662, 0x706d6118, + 0x61737265, 0x885f646e, 0x482e2009, 0x332708bf, 0x62133030, 0x425f7261, 0x1b830a0b, 0x13871520, 0xe2466b20, 0x20158307, 0x4b15840c, 0x68820604, + 0x3a833682, 0x18201086, 0x5f201d86, 0xf3470783, 0x8714200b, 0x0c084818, 0xdb84258f, 0x3331312b, 0x74736509, 0x74616d69, 0x27ed8565, 0x0b363131, + 0x6c6c6562, 0x3420e68b, 0x21056352, 0xef5e3432, 0x33322905, 0x630d4238, 0x65636e61, 0x152e2587, 0x72726163, 0x65676169, 0x75746552, 0x3b8b6e72, + 0x33303330, 0x74616415, 0x6e694c61, 0x6373456b, 0x40417061, 0x640d2507, 0x74656c65, 0x14200d87, 0x46260d85, 0x546d726f, 0x40866f77, 0x65641827, + 0x65636976, 0x05714143, 0x756f4623, 0x20188672, 0x21188c17, 0x45876e4f, 0x178c1920, 0x72685423, 0x8d198765, 0x27628931, 0x6c6f6413, 0x5f72616c, + 0x3e0b2a41, 0x6f6c6712, 0x69576562, 0x654d6874, 0x69646972, 0x12736e61, 0x4f646e65, 0x64654d66, 0x866d7569, 0x84102083, 0x65542312, 0x10867478, + 0x10851820, 0x2e827220, 0x73696d25, 0x416f6973, 0x1d200707, 0x42241890, 0x6b636f6c, 0x0e273686, 0x75716e65, 0x86797269, 0x650d210e, 0x2c0b2441, + 0x6c696614, 0x70655365, 0x74617261, 0x28fd876f, 0x726f660f, 0x6565466d, 0x25328664, 0x6f726715, 0x258f7075, 0x6e750739, 0x38333269, 0x6f681b38, + 0x6f7a6972, 0x6c61746e, 0x75626154, 0x8974616c, 0x68052599, 0x6573756f, 0x31202984, 0x22053358, 0x4e323332, 0x33200590, 0x82058b59, 0x0555430f, + 0xf35a3320, 0x200f8205, 0x202f8438, 0x05675433, 0x44313223, 0x200f8446, 0x05235b31, 0x31333222, 0x43261f86, 0x696c0f45, 0xa78a656e, 0x656e1a23, + 0x227d8267, 0x43416576, 0x0e23104d, 0x8377656e, 0x22d1862d, 0x42756e0b, 0x0e250881, 0x73756c70, 0x2504835f, 0x67696c2e, 0x0e881361, 0x11201389, + 0xed421384, 0x7165240c, 0x4c6c6175, 0x16200add, 0x168a108a, 0x34861220, 0x1420128a, 0x4f8b1287, 0x148e1c20, 0x240c2f42, 0x73656c1e, 0x068e4d73, + 0x4e06bf4a, 0x12200be7, 0x144d1e84, 0x8c1a200c, 0x204c8c12, 0x4e1a840d, 0x112007f9, 0x5f200d87, 0x15201187, 0x1592118b, 0x840c0541, 0x05e1422b, + 0x696c2e25, 0x8a186167, 0x20758c10, 0x4118840e, 0x16200864, 0x258c0e88, 0x16840f20, 0x8509c34c, 0x85718b9d, 0x08284f47, 0x30841320, 0x3c4f0488, + 0x4f0e8405, 0x1c200ef4, 0x768c148e, 0x1c8f1f20, 0x96853c8e, 0x616c7324, 0x61846873, 0x2f841720, 0x20110b4d, 0x41378916, 0x168a0c9f, 0x484e6120, + 0x8a172005, 0x20de8b12, 0x8e178a1a, 0x94222084, 0x85c78c1a, 0x05906c7f, 0x270b7042, 0x63726570, 0x5f746e65, 0x2c460786, 0x067b430b, 0x16353028, + 0x6f636572, 0xe4436472, 0x730e260f, 0x74666968, 0x07694449, 0x0e840f20, 0x44754f21, 0x0c210792, 0x0a984673, 0x7473152e, 0x4f747261, 0x61654866, + 0x676e6964, 0x20066a43, 0x44158612, 0x11280ac8, 0x73627573, 0x75746974, 0x20089d45, 0x45118918, 0x162e0da1, 0x636e7973, 0x6e6f7268, 0x4973756f, + 0x1c476c64, 0x6431200c, 0x322f0555, 0x06413831, 0x31463175, 0x75144441, 0x8f74696e, 0x761926c2, 0x69747265, 0x129d4463, 0x61620836, 0x76632e72, + 0x70093033, 0x2e73756c, 0x6d6f6e64, 0x6e696d0a, 0x87420a87, 0x85158305, 0x756e231f, 0x1f86726d, 0x1f850a84, 0x12200a83, 0xf1414882, 0x089b4c06, + 0x9b4c128a, 0x4c158a0a, 0x1620089b, 0x41911483, 0x168e1920, 0x98474589, 0x0f244e08, 0x2105e547, 0xfc417261, 0x888a8705, 0x0fbb4d2e, 0x61871720, + 0x90881885, 0x17831120, 0x200cb54d, 0x89118914, 0x89132086, 0x843a8814, 0x14964db4, 0x508c0d20, 0x8b8f1020, 0x838e0f20, 0x16431620, 0x0e564106, + 0x168e1920, 0x18208d89, 0x9288198e, 0x82451520, 0x0814410c, 0x4789158d, 0x188d1720, 0x1e204688, 0x4f0fa145, 0x21200dc2, 0x58891e96, 0x21962020, + 0x1d206188, 0x3141208f, 0x413e900c, 0x1f200f41, 0x5e883e95, 0x8d052b45, 0x058745b5, 0x46107d50, 0x5d420503, 0x0567460f, 0x2885948c, 0x1420898f, + 0x5009c645, 0x1a460912, 0x8d198405, 0x451b2083, 0xeb4108be, 0x09334107, 0x1b901a20, 0x1720ce88, 0x928c1a89, 0x978f328a, 0x328f1920, 0x09224c88, + 0x044e7461, 0x4b102006, 0x73290953, 0x65636170, 0x61620a72, 0x471b8672, 0x73230ecc, 0x46323073, 0x0f830bb1, 0x3e8a0e20, 0x33307323, 0x23578307, + 0x15353073, 0xc2458a85, 0x822e2009, 0x4337202c, 0xcb4f0604, 0x12444809, 0x38202782, 0xe047ea85, 0x632e250c, 0x1f363176, 0x8419e547, 0x4519201f, + 0x198313f8, 0x4b113821, 0x11820bf8, 0x44303321, 0x0748083a, 0x20158407, 0x12bd4a18, 0x3420ba83, 0x8505f841, 0x6c2e211d, 0x22052176, 0x471d3430, + 0x338417fe, 0xe3441720, 0x20648411, 0x142a451a, 0x19201a84, 0x84132f45, 0x451b2019, 0xa5520e1d, 0x201b8406, 0x421b8e1e, 0x1e84094f, 0x1e8e1d20, + 0x89080542, 0x1000458d, 0x5842388d, 0x201d840f, 0x164d451c, 0x16201c84, 0xdf845195, 0x18204d94, 0x89125c45, 0x146145dc, 0x15201e84, 0x29098042, + 0x6f666562, 0x732e6572, 0xcf4e3073, 0x41302d05, 0x75450446, 0x75076f72, 0x3032696e, 0x8205ca65, 0x05d75007, 0x39423023, 0x06ce410d, 0x2005f742, + 0x220d870b, 0x84343073, 0x64322031, 0x3221054c, 0x054c6b32, 0x41323224, 0x93420c36, 0x616d2207, 0x05b75174, 0x916b3220, 0x32322105, 0x2d056d5f, + 0x39313232, 0x6e6f6309, 0x65757267, 0x4685746e, 0x70853020, 0xbb633320, 0x4f218205, 0x3220055d, 0x8205ab63, 0x85432056, 0x42412627, 0x656c6507, + 0x5d37896d, 0x32310582, 0x650e4530, 0x6c617571, 0x666e6973, 0x6f697265, 0x232e8472, 0x0b433730, 0x692d1682, 0x656c6176, 0x0b65636e, 0x73697865, + 0x213b8274, 0x494f6169, 0x41322805, 0x72670839, 0x82696461, 0x690a2413, 0x8265746e, 0x626c220c, 0x210a8874, 0x46847074, 0xd96a3320, 0x33322105, + 0x82056964, 0x06ad4c07, 0x8205955e, 0x054b410f, 0x296b3320, 0x30322105, 0x20068348, 0x056d5f30, 0x5f323221, 0xc58205fd, 0x32213785, 0x05bd4c41, + 0x896c3220, 0x32322105, 0x82051967, 0x05865b07, 0x896c3220, 0x41378205, 0x30220664, 0xea5a0a43, 0x51f88905, 0x228205f0, 0x82093121, 0x7573241a, + 0x41657362, 0x1262064a, 0x266c8205, 0x6d650844, 0x82797470, 0x6c0a2b18, 0x6369676f, 0x6e616c61, 0x0a860964, 0x0c726f22, 0x722af083, 0x74636573, + 0x056e6f69, 0x05826e75, 0x3222ed84, 0x07833630, 0x6b303021, 0x32210595, 0x05bf6633, 0xa3410782, 0x05d76606, 0xc5850f82, 0xa75b3320, 0x66332006, + 0xfd8205d7, 0x20059341, 0x05736030, 0x51323221, 0x32290619, 0x720c3633, 0x656c6665, 0x20ad8578, 0x210c870e, 0x85826570, 0x720d7424, 0x9b867665, + 0x8984d082, 0x0a543320, 0x65332006, 0x322105c1, 0x05596c33, 0x1d420782, 0x5f332005, 0x0f8205f5, 0x25062741, 0x700c3241, 0x4f836f72, 0x2a0b0f41, + 0x75730841, 0x68746863, 0x870e7461, 0x8472851d, 0x41322064, 0x322006ac, 0x22055260, 0x41413232, 0x322605cc, 0x74093430, 0xa4826568, 0x4e726f21, + 0x322005ac, 0x8205086e, 0x27e08521, 0x09384132, 0x76696e75, 0x4f42be82, 0x0d352f08, 0x69666e69, 0x7974696e, 0x7361632e, 0x7e470e65, 0x582e2006, + 0x0b24058e, 0x7373656c, 0x11200b86, 0x250b2643, 0x3176632e, 0x09460f35, 0x210f820a, 0xa9450c37, 0x211c8306, 0x0c821038, 0x6f687427, 0x6e617375, + 0x85108464, 0x433921bc, 0x2b087a56, 0x6874616d, 0x07636c2e, 0x73756c70, 0x0b200782, 0xb6430784, 0x650c2105, 0x24051956, 0x65636170, 0x85938872, + 0x8593851b, 0x5d93820b, 0x11850815, 0x93841220, 0x46053d4c, 0x0e2006f0, 0x21859687, 0x72610726, 0x75776f72, 0x23052943, 0x0a373931, 0x72230f84, + 0x42686769, 0x3123058f, 0x84093839, 0x6f642312, 0xb4846e77, 0x39393122, 0x6c221185, 0x23876665, 0x11853620, 0x746f6224, 0x2d840b68, 0x89707521, + 0x050c632f, 0x63313221, 0x3221050c, 0x068e4331, 0x2c443120, 0x42312206, 0x65578530, 0x32210554, 0x05455f31, 0xc9410782, 0x65372005, 0x322105fc, + 0x056c6237, 0x86434782, 0x5e312005, 0x31200628, 0x8205a068, 0x84362017, 0x44332047, 0x332006db, 0x21056273, 0x10434232, 0x85078205, 0x30422137, + 0x21057e42, 0x77854637, 0x31463722, 0x37203784, 0x8205bc62, 0x851f8767, 0x6237204f, 0x1782058c, 0x2005a450, 0x05586937, 0x47420f82, 0x66372005, + 0x0f82057c, 0x2005e444, 0x05a86b37, 0x45200f82, 0x46305786, 0x616c620f, 0x69526b63, 0x41746867, 0x776f7272, 0x35201784, 0x22051c66, 0x54383532, + 0x352c05c2, 0x64093338, 0x426e776f, 0x6b636f6c, 0x89852186, 0x85383521, 0x38352489, 0x85620537, 0x8a70201d, 0x34392125, 0xd0432d86, 0x56352005, + 0x578205e5, 0x6c074423, 0x212f8666, 0x0f82696e, 0x27864220, 0x3525b785, 0x72073938, 0x341f8a74, 0x71113539, 0x72646175, 0x4c746e61, 0x7265776f, + 0x7466654c, 0x84118c12, 0x222488c1, 0x85707055, 0x872a2024, 0x22118824, 0x88646e41, 0x840b8742, 0x981e203c, 0x941e842a, 0x84558449, 0x20568b1e, + 0x9149932b, 0x8837842a, 0x8d1f89c5, 0x905d9e88, 0x28d38c1e, 0x73746c07, 0x65646168, 0x22058405, 0x856b6407, 0x6e752c07, 0x43353269, 0x69630646, + 0x446c6372, 0x35200582, 0x23053970, 0x30443532, 0x20058a41, 0x057a4244, 0x87663520, 0x42178205, 0x352005f2, 0x8205af66, 0x05b2420f, 0x1f693520, + 0x35322105, 0x2006a242, 0x05ff6835, 0x18420f82, 0x06a24206, 0xb3753520, 0x24768205, 0x6e690945, 0x6c798b76, 0x51820565, 0x6e060442, 0x32220595, + 0x81874535, 0x2005bc42, 0x05237135, 0xbc422782, 0x53352005, 0x352006a9, 0x8205f967, 0x2b918659, 0x660a4541, 0x656c6c69, 0x63657264, 0x20050544, + 0x06ee4535, 0x1e473520, 0x59352006, 0x32210565, 0x05287535, 0xf4860782, 0x2106ec53, 0x72863335, 0x07863220, 0x75069a57, 0x32210638, 0x06bf4335, + 0x2206b875, 0x43303532, 0xc4660627, 0x35322105, 0x20064347, 0x06156335, 0x25633520, 0x36352106, 0x74064441, 0x322205d0, 0xb2863535, 0x8205b874, + 0x6d6f860f, 0x0f820508, 0x7d63ea86, 0x35352106, 0x67061f43, 0x67820594, 0x2005d647, 0x054a7835, 0xc7860f82, 0x8205d467, 0x204f860f, 0x6d678636, + 0x17820528, 0x67069743, 0x67820554, 0xb5634786, 0x68352006, 0x17820504, 0x1074af86, 0x21378205, 0x5a410941, 0x6f622205, 0x05264278, 0x1d31413f, + 0x74696877, 0x75715365, 0x57657261, 0x52687469, 0x646e756f, 0x6f436465, 0x72656e72, 0x86258673, 0x06094747, 0xe8733520, 0x35322105, 0x21066647, + 0x9f864135, 0x21060649, 0x8f864135, 0x20068745, 0x069e4735, 0xfe723520, 0x35322105, 0x20065f45, 0x065f4535, 0xec553520, 0x45352306, 0x8d8e2042, + 0x2008f743, 0x063f4451, 0x0c44208f, 0x20208708, 0x84418e21, 0x69522420, 0x97746867, 0x09ba4321, 0x0f282187, 0x61697274, 0x54707567, 0x6e210682, + 0x07624367, 0x0c364222, 0x10831783, 0x23088246, 0x0d304335, 0xda461487, 0x273a8405, 0x6217666c, 0x6b63616c, 0x4a875a89, 0x94891785, 0x16201787, + 0xcd882f84, 0x0541168d, 0x5a908d08, 0x37780691, 0x75322006, 0x3220060d, 0x20065778, 0x06957332, 0x77353221, 0x1f820507, 0x2106c645, 0xd6413131, + 0x05585d05, 0xbf492f82, 0x6b352005, 0x2f8205cb, 0x6f06ce41, 0x0f8205f7, 0xb54a3786, 0x6b352006, 0x5f82052b, 0x20061642, 0x201f8630, 0x66578630, + 0x3520067c, 0x74067765, 0x67820675, 0x49062144, 0x9d7406ff, 0x86178206, 0x057f766f, 0x33353222, 0x31202786, 0x37200786, 0x85745f86, 0x862f8205, + 0x06764977, 0x1b583520, 0x5a352006, 0x35210617, 0x06dc4634, 0xd7863220, 0x21065d4c, 0x0f873335, 0x2006ee43, 0x068e4333, 0x2006aa4c, 0x068d4c35, + 0xd56e3520, 0x35322105, 0x8205f36c, 0x71d78607, 0x3222050f, 0xd6433435, 0x05377706, 0x8e431f82, 0x43372006, 0xef7906ae, 0x86a78205, 0x069c675f, + 0x3e483520, 0x06177a06, 0xa7863782, 0x97863720, 0x73453420, 0x05977906, 0x33353222, 0xd7710f86, 0x860f8205, 0x06866a87, 0x0d4c3520, 0x6c352006, + 0x97820533, 0x20063e44, 0x054e4833, 0x86323521, 0x8631203f, 0x86312087, 0x863120b7, 0x05ff7117, 0x7f415782, 0x051f7a06, 0xe5753220, 0x7a322006, + 0x0f82064f, 0xad4ca786, 0x73352006, 0x1f82052f, 0x9f416f87, 0x06835906, 0x21061576, 0xaf713532, 0x86078205, 0x05af7177, 0x3784f782, 0x48464621, + 0x302105ce, 0x82578533, 0x05352707, 0x6f6e6f74, 0x05840a73, 0x61632e2d, 0x640d6573, 0x65726569, 0x70736973, 0x3121087c, 0x05e47746, 0x44200782, + 0x8406326c, 0x4631215e, 0x2105467c, 0x68464631, 0x860f8205, 0x050a5a17, 0xa6840f82, 0x07861f82, 0x21057477, 0xfe7b4631, 0x201f8205, 0x254f8531, + 0x750c4645, 0x1782696e, 0x475f4620, 0x82312008, 0x211485ab, 0x148a4446, 0xc8844320, 0x41333021, 0x078205f0, 0x6709372f, 0x65766172, 0x626d6f63, + 0x75636109, 0x83098474, 0x201b8255, 0x20078642, 0x20078632, 0x20078643, 0x25078636, 0x69740941, 0x318b646c, 0x19863420, 0x07863520, 0x3023b784, + 0x85333133, 0x05fd460f, 0x41333021, 0x078205e6, 0x79123721, 0x732c0545, 0x74726f68, 0x7265766f, 0x1179616c, 0x6c231285, 0x86676e6f, 0x2c3c8411, + 0x09394332, 0x6f726163, 0x6c612e6e, 0x82d98374, 0x4136203e, 0x0d840d71, 0x6f640e28, 0x63636174, 0x975f6e65, 0x840a2005, 0x201984de, 0x84df840a, + 0x1811200a, 0x840b3346, 0x4c0f2011, 0x66230518, 0x8478656c, 0x850a200f, 0x6163296b, 0x620a6573, 0x65766572, 0x09241584, 0x676e6972, 0x0a200984, + 0x0a84fa84, 0x616d0b23, 0x83978363, 0x630c272b, 0x6c696465, 0x1884616c, 0x42180d20, 0x12200c0a, 0x41187e89, 0xd88507ff, 0x21055476, 0xb1503230, + 0x27078205, 0x31750639, 0x44303146, 0x45200685, 0x46200685, 0x36200684, 0x36201485, 0x9e421485, 0x30452305, 0x49833030, 0x31200782, 0x32200786, + 0x33200786, 0xd64e0785, 0x30452105, 0x8205d44f, 0x4c1f8607, 0x4521056d, 0x056d4c30, 0x17870782, 0x50823785, 0x45203f84, 0x21052645, 0x75484545, + 0x87078205, 0x8634201f, 0x8635201f, 0x86362007, 0x86372007, 0x86382007, 0x86392007, 0x86412007, 0x03423207, 0x0747494c, 0x76657262, 0x04796365, + 0x6c6c756e, 0x2e0c860c, 0x7361632e, 0x01000065, 0xffff0100, 0xab000f00, 0x00cb3a00, 0x009900cb, 0x00620599, 0x001e0400, 0x0555fe00, 0x04e7ff7b, + 0xfee7ff37, 0x86198255, 0xe7ff251b, 0x1e04df05, 0x1d831383, 0x1f8e0b82, 0x05000023, 0x213d89dd, 0x3f861606, 0xa400a42e, 0x7d007d00, 0x7efe0001, + 0x72fe0c01, 0x0f840d82, 0xf8044308, 0x04057602, 0x00b06a02, 0x00b0202c, 0x59455855, 0xb84b2020, 0x4b510e00, 0x5a5306b0, 0x1b34b058, 0x605928b0, + 0x558a2066, 0x2502b058, 0x0008b961, 0x63630008, 0x211b6223, 0x5900b021, 0x234300b0, 0xeb82b244, 0x60433808, 0x01b02d42, 0x6020b02c, 0x02b02d66, + 0x2321232c, 0x03b02d21, 0xb364202c, 0x00151403, 0x13b04342, 0x60602043, 0x1402b142, 0x25b14243, 0x02b04303, 0x20785443, 0x82230cb0, 0x61432a08, + 0x5004b064, 0x0202b278, 0x24468202, 0x1c6521b0, 0x26158321, 0x01150eb2, 0x82201c42, 0x4223250a, 0x130113b2, 0x23291b82, 0x585000b0, 0x16b25965, + 0x2a298301, 0x2c04b02d, 0xb02b03b0, 0x83584315, 0x16b0236f, 0x20864343, 0x64201b3e, 0x50c0b020, 0x5a2604b0, 0x0d0128b2, 0x45634543, 0x584506b0, + 0x2503b021, 0x585b5259, 0x1b269c82, 0xb020588a, 0x12825050, 0x1b594025, 0x8338b020, 0x59382409, 0x85b12059, 0x2091822d, 0x86128228, 0xb020220d, + 0x210c8230, 0x298330b0, 0x5850c02e, 0x8a206620, 0xb020618a, 0x6058500a, 0x20203b82, 0x0a201b83, 0x36200983, 0x36350983, 0x59601b60, 0xb01b5959, + 0x0cb02502, 0x00b06343, 0x00b05852, 0x202c834b, 0x230f8221, 0x1eb04b1b, 0x1e262583, 0x10b8614b, 0x11826300, 0x05b8632f, 0x59596200, 0xb0596164, + 0x59592b01, 0x22e28523, 0x82642059, 0x42232dcf, 0x05b02d59, 0x2045202c, 0x612504b0, 0x072ed382, 0xb0585043, 0xb0422307, 0x1b422308, 0x32822121, + 0xb02d6024, 0xfe842c06, 0x202b0328, 0x6207b164, 0x1c832042, 0x1b20ee83, 0x0583be85, 0x6005b028, 0x05b06345, 0x1c82212a, 0x8a204324, 0x6b828a20, + 0x0530b138, 0x2604b025, 0x50605851, 0x5952611b, 0x21592358, 0x40b02059, 0x1b825853, 0xb0211b23, 0x318a8740, 0x2c07b02d, 0x2b4309b0, 0x000200b2, + 0x2d426043, 0x0e8208b0, 0x2342233a, 0x2300b020, 0x02b06142, 0x01b06662, 0x6001b063, 0x2d2a07b0, 0x202c09b0, 0x0e26ad83, 0x04b86343, 0x22826200, + 0x4022af82, 0x22835960, 0x82446021, 0xb02d2c24, 0x09b22c0a, 0x4543000e, 0x42212a42, 0x0b210838, 0x0d48422c, 0x45850c20, 0x232b0122, 0xfa821782, + 0x45206032, 0x2061238a, 0x20b02064, 0xb0215850, 0x30b01b00, 0x20215782, 0x87a4821b, 0x03b025a5, 0x44612325, 0x0d206285, 0xb0213e96, 0x82358224, + 0x8bda883c, 0x2c0e2134, 0xb325d084, 0x03000c0d, 0x35658245, 0x5921231b, 0xb02d212a, 0x02b12c0f, 0x64b04502, 0xb02d4461, 0xc2822c10, 0xb0202029, + 0xb04a430f, 0x82585000, 0x42232408, 0x8310b059, 0x8252200d, 0x8210200d, 0xb02d220d, 0x21488211, 0xf1836210, 0x04b82024, 0xb8826300, 0x11b02708, + 0x8a206043, 0x11b02060, 0x2d234223, 0x4b2c12b0, 0x04b15854, 0x24594464, 0x23650db0, 0x13b02d78, 0x58514b2c, 0x1485534b, 0x82211b21, 0x84132017, + 0x2c143c17, 0x431200b1, 0x12b15855, 0x01b04312, 0x11b04261, 0x00b0592b, 0x2502b043, 0x830fb142, 0x82102004, 0x01b02404, 0x82202316, 0x58502dc9, + 0x430001b1, 0x2504b060, 0x208a8a42, 0x10237683, 0x8223212a, 0x200b8736, 0x831f851b, 0x25022332, 0x1d82b061, 0xc9825920, 0xbf824720, 0xb0604723, + 0x0dac4102, 0x41b02021, 0x310814c2, 0x130000b1, 0x01b04423, 0x3e00b043, 0x010101b2, 0x2d426043, 0x002c15b0, 0x450200b1, 0x12b05854, 0x45204223, + 0x42230eb0, 0xb0230db0, 0x20426005, 0x118214b0, 0x83826020, 0x1818b72d, 0x00110001, 0x42420013, 0x82608a42, 0x82a88217, 0x14b12c1b, 0x8bb02b08, + 0x59221b2b, 0x8216b02d, 0x2b1527ec, 0x2c17b02d, 0x078301b1, 0xb12c1823, 0x23078302, 0x03b12c19, 0x1a230783, 0x8304b12c, 0x2c1b2307, 0x078305b1, + 0xb12c1c23, 0x23078306, 0x07b12c1d, 0x1e230783, 0x8308b12c, 0x2c1f2307, 0x078309b1, 0x232c2b24, 0x8841b020, 0x06b02e05, 0x58544b60, 0xb02e2023, + 0x211b5d01, 0x206c8221, 0x201c8a2c, 0x201c8816, 0x201c8571, 0x201c8a2d, 0x201c8826, 0x251c8572, 0xb0002c20, 0xf0972b0f, 0xb520eb83, 0xe883eb85, + 0x2120df8b, 0x2020df82, 0x2220df82, 0x0783df82, 0xdf822320, 0x24200783, 0x0783df82, 0xdf822520, 0x26200783, 0x0783df82, 0xdf822720, 0x28200783, + 0x0783df82, 0xdf822920, 0x2a200783, 0x0783df82, 0x202c2e32, 0x6001b03c, 0x2c2fb02d, 0x18b06020, 0x23432060, 0x43240e82, 0x612502b0, 0xb0350782, + 0x2d212a2e, 0xb02c30b0, 0x2fb02b2f, 0x31b02d2a, 0x4720202c, 0x16d64120, 0x38612327, 0x558a2023, 0x25219c58, 0x2d59211b, 0xeb4132b0, 0x0eb13407, + 0xb0424506, 0x31b01601, 0x0105b12a, 0x30584515, 0x82221b59, 0x41332020, 0x23970a1e, 0x202c3423, 0x20b98435, 0x854d8235, 0x44452047, 0xb022112f, + 0x84422b01, 0x23178314, 0x00b41600, 0x44270083, 0xb138233e, 0x83150134, 0x2c3623eb, 0xc0823c20, 0x602f3394, 0x614300b0, 0x37b02d38, 0x3c172e2c, + 0x9f38b02d, 0x01b0232a, 0x2e826343, 0x2c393308, 0x160002b1, 0x202e2025, 0x2300b047, 0x2502b042, 0x478a8a49, 0x61234723, 0x1b625820, 0x01b05921, + 0x38b24223, 0x14150101, 0x3ab02d2a, 0x1600b02c, 0x268217b0, 0xb0250424, 0x26842504, 0x000cb12f, 0x430bb042, 0x2e8a652b, 0x3c202023, 0x2053828a, + 0x21268d3b, 0x28842e20, 0x06b02024, 0x2d874223, 0x60b0203e, 0xb0205850, 0xb3585140, 0x20052004, 0x2604b31b, 0x42591a05, 0xb0202342, 0x8a20430a, + 0x81827f82, 0x60462325, 0x434306b0, 0x60240fb7, 0x2b01b020, 0x30059e46, 0x64604304, 0x4305b023, 0x58506461, 0x614304b0, 0x240b821b, 0x03b05960, + 0x20338f25, 0x289a8261, 0x232604b0, 0x1b386146, 0x20618223, 0x82e78246, 0x82978406, 0x8264924f, 0x2b012288, 0x207e8223, 0x236d8260, 0x612505b0, + 0x558f0382, 0x61245182, 0x2504b020, 0x03208483, 0x52450582, 0x236b8906, 0x3cb02d59, 0x25070b41, 0xb0202020, 0x0b412605, 0x3c232506, 0x3db02d38, + 0xb0231a88, 0x8242230a, 0x2346221f, 0x216c8247, 0x1b826123, 0x42413e20, 0x41cc8308, 0xb0290569, 0x2e585400, 0x21233c20, 0x20bd831b, 0x82148502, + 0x088a4154, 0x2506b022, 0x4920a582, 0x410bc448, 0x794205c4, 0x23602111, 0x2106ad41, 0xa4822123, 0x898a3f20, 0xa2864320, 0xb0602025, 0x8f666020, + 0x07e241f2, 0x232c4025, 0x82462e20, 0xb0463569, 0x50584317, 0x5859521b, 0x2e593c20, 0x140130b1, 0x41b02d2b, 0x52221d8c, 0x1d8c501b, 0x1d8c4220, + 0x4f8b3b87, 0x4324318f, 0x2b3ab02c, 0x442e709b, 0x2b3bb02c, 0x3c20208a, 0x422306b0, 0x2a99388a, 0x4306b025, 0x8230b02e, 0x844520a2, 0x250424f2, + 0x412604b0, 0x61240579, 0x42230cb0, 0x2205a942, 0x82430bb0, 0x203c246d, 0x8638232e, 0x2c462ad0, 0x25040ab1, 0x1600b042, 0x203283b0, 0x2dd24225, + 0xc5424720, 0x02b02447, 0x82614625, 0x233c26dd, 0x20211b38, 0x082f4220, 0x86592121, 0x2c4725a7, 0x2b3a00b1, 0x20078641, 0x230d8248, 0x23212b3b, + 0x86061741, 0x080241cd, 0xb02c4924, 0xf6431500, 0x00b22d05, 0x14150101, 0x36b02e13, 0x4ab02d2a, 0x4b281796, 0x0100b12c, 0x37b01314, 0x4c232382, + 0x8239b02c, 0x824d2006, 0x4516292a, 0x202e2023, 0x61238a46, 0x30072d41, 0x0ab02c4e, 0x4db04223, 0x4fb02d2b, 0x0000b22c, 0x20088246, 0x20088250, + 0x23088301, 0x01b22c51, 0x52201184, 0x11840882, 0x1a825320, 0x82470021, 0x82542023, 0x83012008, 0x82552008, 0x2011841a, 0x84088256, 0x2c572611, + 0x000000b3, 0x20248243, 0x20098258, 0x23098401, 0x01b32c59, 0x5a201385, 0x13850982, 0x1d825b20, 0x43010022, 0x5c202782, 0x01200982, 0x5d200984, + 0x13851d82, 0x09825e20, 0x5f201385, 0x00216a82, 0x20268245, 0x20088260, 0x20088301, 0x846a8261, 0x82622011, 0x20118408, 0x211a8263, 0x23824800, + 0x08826420, 0x08830120, 0x1a826520, 0x66201184, 0x11840882, 0x97846720, 0x24824420, 0x97846820, 0x69200983, 0x09839784, 0x97846a20, 0x6b200983, + 0x09839784, 0x97846c20, 0x6d200983, 0x09839784, 0x97846e20, 0x6f240983, 0x3c00b12c, 0x2008c041, 0x210d8470, 0x5e8240b0, 0x0a857120, 0x0a824120, + 0xb02c7224, 0x26831600, 0x8242b021, 0x2c73250d, 0x2b3c01b1, 0x74202384, 0x23830a85, 0x23847520, 0x23831883, 0x3c827620, 0x55883d20, 0x0d847720, + 0x78203184, 0x41200a85, 0x79204782, 0x2e830a85, 0x47827a20, 0x52853d20, 0x0a857b20, 0x7c202083, 0x20830a85, 0x2b827d20, 0x4f883e20, 0x0d847e20, + 0x7f204f84, 0x2e830a85, 0x0a858020, 0x5a824220, 0x39828120, 0x4f853e20, 0x0a858220, 0x83202083, 0x20830a85, 0x2b828420, 0x4f883f20, 0x0d848520, + 0x86204f84, 0x41200a85, 0x87204482, 0x2e830a85, 0x39828820, 0x4f853f20, 0x0a858920, 0x8a202083, 0x20830a85, 0x2c8b2108, 0x03000bb2, 0xb0585045, + 0x04b21b06, 0x58450302, 0x211b2123, 0x2b425959, 0xb06508b0, 0x78502403, 0x2107d047, 0x0082002d, 0x00b84b2c, 0xb15852c8, 0x598e0101, 0xfe4d01b0, + 0xb1702d05, 0xb6420700, 0x31410000, 0x2a000521, 0x402d0c83, 0x46044e0c, 0x26083604, 0x05071808, 0x2912860a, 0x024a0252, 0x062e063e, 0x1284051f, + 0xbe420c30, 0xc011c013, 0xc009c00d, 0x05004006, 0x26820b00, 0xbe421124, 0x01884000, 0xb92f1383, 0x00000300, 0x0124b144, 0xb0585188, 0x83588840, + 0x4464230f, 0x0f8328b1, 0x0008b822, 0x00251085, 0xb11b5944, 0x29128327, 0x008008ba, 0x88400401, 0x29845463, 0x59201882, 0x2a080082, 0x02500c40, + 0x06380248, 0x051a0628, 0xb82a0e05, 0xb085ff01, 0x02b18d04, 0x05b34400, 0x44000664, 0x00000044, 0x00010000, 0x05000000, 0xf46d6ffa, 0x0000001c, +}; + diff --git a/thirdparty/imgui_suite/generated/fonts/src/FontAwesomeRegular.inc b/thirdparty/imgui_suite/generated/fonts/src/FontAwesomeRegular.inc new file mode 100644 index 00000000000..b6f3c6da4ed --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/FontAwesomeRegular.inc @@ -0,0 +1,774 @@ +// File: 'extract/fontawesome-free-6.2.0-web/webfonts/fa-regular-400.ttf' (62048 bytes) +// Exported using binary_to_compressed_c.cpp +static const unsigned int FontAwesomeRegular_compressed_size = 36785; +static const unsigned int FontAwesomeRegular_compressed_data[36788/4] = +{ + 0x0000bc57, 0x00000000, 0x60f20000, 0x00000400, 0x00010037, 0x000a0000, 0x00030080, 0x2f534f20, 0x5e575f32, 0x0100005a, 0x08158228, 0x6d636028, + 0x191a7061, 0x0000a125, 0x0000d404, 0x6c676c17, 0xa1a06679, 0x000017a7, 0x0000e81d, 0x656878c6, 0x08236461, 0x2b827104, 0x0382ac20, 0x82683621, + 0x41042310, 0x0b821403, 0x0382e420, 0x6d682428, 0xc4807874, 0x4f822502, 0x00008830, 0x6f6c4c03, 0xbdfd6163, 0x0000f430, 0x1382401c, 0x616da828, + 0xe2007078, 0x0b82f800, 0x2f820820, 0x616e202c, 0x1a85656d, 0x00003d49, 0x738260e4, 0x6f700530, 0xd5417473, 0x00002af1, 0x000068e8, 0xab83f509, + 0x0102032f, 0x68389600, 0x3c0f5f55, 0x020b00f5, 0x23008300, 0x7ae133df, 0xff250789, 0x018002c0, 0x220f82c0, 0x82020008, 0x25028305, 0x01000001, + 0x1382ffc0, 0xff800229, 0x020000ff, 0x83010080, 0x20038a16, 0x241184d3, 0x00f600d3, 0x8315840d, 0x8c01201f, 0x01042625, 0x009001d2, 0x22498205, + 0x8266014c, 0x01472123, 0xf52a0785, 0x84001900, 0x00020000, 0x15820305, 0x01210285, 0x84078510, 0x57412905, 0xc0004d53, 0xffff2100, 0x01238385, + 0x824000c0, 0x82012018, 0x01002403, 0x82a50139, 0x00202c07, 0x00800100, 0x00800000, 0x82c00120, 0x0040230b, 0xa9820110, 0x1a200b82, 0x10210382, + 0x202f8201, 0x841e8201, 0x200b8307, 0x20238480, 0x830f8800, 0x83178413, 0x853b8363, 0x0002211f, 0x5f830b89, 0x2b870384, 0x2382c020, 0x7f854791, + 0x1f831783, 0x07872b83, 0x1f008022, 0x1f824388, 0x1b830220, 0x13870782, 0x00000223, 0x23038400, 0x01170040, 0x0b863382, 0x23831384, 0x86000221, + 0x82078b1f, 0x83022043, 0x232f8743, 0x02ffff00, 0x23831383, 0x0b821782, 0x13874b85, 0x01233b86, 0x832000c0, 0x00022103, 0x3b82c382, 0x3f880120, + 0x80200f82, 0x7f83f382, 0x7b8a578c, 0x3b8cd386, 0x47835f86, 0xdb860388, 0x2020b78e, 0x0b416b87, 0x8e0b9b0b, 0x8300203f, 0x081b41ef, 0x20004022, + 0x4788ff8b, 0x378cdf82, 0x77862782, 0xb78b2020, 0x0220ab87, 0xff21bf84, 0x843387ff, 0x86bf822b, 0x0220210f, 0x00221f84, 0x13830100, 0x230e4b41, + 0x1b000002, 0x2383f383, 0xa7411f84, 0x20178217, 0x063b4101, 0x37420120, 0x82022006, 0x8233982b, 0xa702201b, 0x20ab8903, 0x8f33a800, 0x0040225b, + 0x233b8717, 0x04000000, 0x03200382, 0x24200382, 0x0b820382, 0x002c0825, 0x84010003, 0x00032e0f, 0x0800000a, 0x0804002c, 0x01000008, 0x091482ca, + 0xca0007d8, 0x25002100, 0x39002b00, 0x61005a00, 0x63006200, 0x65006400, 0x67006600, 0x69006800, 0x6b006a00, 0x6d006c00, 0x6f006e00, 0x71007000, + 0x73007200, 0x75007400, 0x77007600, 0x79007800, 0xa9007a00, 0x2823ae00, 0xfe23f323, 0xcf25a025, 0xfc25fb25, 0x11260026, 0x39261d26, 0x5b265a26, + 0x5d265c26, 0x5f265e26, 0xaa266526, 0xbd26ab26, 0x09270527, 0x0c270b27, 0x44273127, 0x53274627, 0x55275427, 0x64275727, 0x1b2b9527, 0x242b1c2b, + 0x85e1502b, 0x05f003f0, 0x07f006f0, 0x16f014f0, 0x1af017f0, 0x1df01bf0, 0x24f022f0, 0x3ef02ef0, 0x45f044f0, 0x59f046f0, 0x5df05cf0, 0x69f067f0, + 0x70f06ef0, 0x75f073f0, 0x80f07cf0, 0x87f086f0, 0x89f088f0, 0x94f08af0, 0x97f096f0, 0xa0f09df0, 0xa7f0a2f0, 0xc8f0c5f0, 0xe5f0e0f0, 0xebf0e6f0, + 0xf6f0f3f0, 0xf8f0f7f0, 0x0cf1fef0, 0x14f111f1, 0x1af115f1, 0x1df11cf1, 0x28f123f1, 0x33f12af1, 0x46f144f1, 0x4af147f1, 0x52f14ef1, 0x5cf155f1, + 0x86f165f1, 0x90f18ef1, 0x96f192f1, 0xc9f1adf1, 0xd8f1cdf1, 0xdbf1d9f1, 0xeaf1e3f1, 0xf7f1f6f1, 0xfaf1f9f1, 0x49f20af2, 0x4df24af2, 0x52f250f2, + 0x5df25bf2, 0x78f274f2, 0x7bf27af2, 0x8bf283f2, 0x8df28cf2, 0x92f28ef2, 0x9cf295f2, 0xb7f2b6f2, 0xbaf2b9f2, 0xbcf2bbf2, 0xbef2bdf2, 0xc2f2c0f2, + 0xd2f2c3f2, 0xdcf2d4f2, 0x02f3edf2, 0x5bf328f3, 0xd1f3a5f3, 0x25f410f4, 0x3ff43af4, 0x43f441f4, 0x47f445f4, 0x7df45cf4, 0xdaf4adf4, 0x2cf5e6f4, + 0x36f531f5, 0x56f541f5, 0x7af567f5, 0x9cf58cf5, 0xb4f5a5f5, 0xc0f5b8f5, 0xc8f5c2f5, 0x0000ffff, 0x23002100, 0x30002a00, 0xcb413c00, 0x41042088, + 0x57201ecb, 0x2010cb41, 0x18cb417b, 0xc5f0a424, 0xcb41c7f0, 0x41ea2006, 0x182012cb, 0x3614cb41, 0xf150f14d, 0xf15bf155, 0xf185f164, 0xf190f18e, + 0xf196f191, 0x41c1f1ad, 0x472016cb, 0x2808cb41, 0xf25df254, 0xf278f271, 0x12cb4179, 0xcb41b420, 0xf2c12410, 0x41d0f2c3, 0x58200acb, 0x282acb41, + 0xf57ff579, 0xf5a4f596, 0x09cb41b3, 0xffe0ff2a, 0xffdbffdf, 0x00d5ffd7, 0x25820040, 0x0000ab1e, 0x03822d10, 0x8c832c20, 0x831d1021, 0x00002b05, + 0x12101310, 0xfa0f0910, 0x0f83f50f, 0x83e30f21, 0x2d038305, 0xce0fcf0f, 0xcb0fcc0f, 0xc30fc60f, 0x1184be0f, 0x0000bc24, 0x0984b20f, 0xa80faa2c, + 0xa50f0000, 0x870f880f, 0x1184700f, 0x600f6722, 0x5c260784, 0x0000570f, 0x0b84450f, 0x3e0f3f22, 0x03830783, 0x0f280f2d, 0x00170f18, 0x0f140f00, + 0x82110f12, 0x0f092307, 0x6b840e02, 0x00d90e2b, 0x0ebf0e00, 0x0ea90eac, 0x2929839f, 0x8f0e950e, 0x0000840e, 0x0382820e, 0x360e7222, 0x33200582, + 0x2f260382, 0x2d0e2e0e, 0x09821a0e, 0x25841620, 0x00000624, 0x0983050e, 0x0d250383, 0x0d0000df, 0x200382dd, 0x200382dc, 0x241184db, 0x0d0000d8, + 0x3e0382cb, 0x0db20dc2, 0x0d790d9e, 0x0c010d4a, 0x00980cd6, 0x0c6f0c00, 0x0c6a0c6b, 0x0c680c69, 0x82530c67, 0x0b03220f, 0x853183d7, 0x5c0b3703, + 0x3b0b4c0b, 0x2e0b370b, 0x1a0b270b, 0x100b170b, 0x0a0b0f0b, 0x1d850100, 0x01210583, 0x3d01b1d6, 0x28022002, 0x1e02fe01, 0xea010e02, 0xe601f201, + 0x0202e401, 0xdc01f401, 0x3402e801, 0x01823802, 0x2e022c26, 0xb0012e02, 0xd4265982, 0xda01f001, 0x1d82c601, 0x5e01f434, 0x04020602, 0x60016201, + 0x4a014c01, 0x50019201, 0x41821002, 0x8a01b226, 0xa4010000, 0x82200382, 0xe6220382, 0x0582b001, 0xe601e224, 0x9d83a001, 0x01230385, 0x8296019a, + 0x016a2615, 0x011c016a, 0x87138518, 0x84012705, 0x00008401, 0x03824401, 0x46015e22, 0x01211583, 0x8305835a, 0x3e012303, 0x07844201, 0x66015e22, + 0x1f820784, 0x012c0123, 0x270b842c, 0x00280118, 0x00c200d6, 0x01210084, 0x22068434, 0x85b60000, 0x64012707, 0x00006001, 0x0d851401, 0x01000025, + 0x850a0128, 0x2201210b, 0x9b840782, 0x821c0121, 0x821a2017, 0x8302840d, 0x42012197, 0x002c5182, 0x00001001, 0x6a000e01, 0xbc006c00, 0x08200982, + 0x06290382, 0x04010000, 0x02010000, 0x20398300, 0x841585fe, 0x20048936, 0x840a89de, 0x84962009, 0x00c82205, 0x2201822e, 0x84200028, 0x0804930d, + 0x02000128, 0x04000300, 0x06000500, 0x12001100, 0x14001300, 0x16001500, 0x18001700, 0x1a001900, 0x1c001b00, 0x1e001d00, 0x43821f00, 0x00215208, + 0x00230022, 0x00250024, 0x00270026, 0x00290028, 0x002b002a, 0x002d002c, 0x002f002e, 0x00320031, 0x00360033, 0x003a0037, 0x003c003b, 0x00410040, + 0x00440042, 0x00470045, 0x004f004b, 0x00530050, 0x00550054, 0x00580056, 0x005c005a, 0x005e005d, 0x0c99475f, 0x006c4408, 0x00780077, 0x007b007a, + 0x0082007f, 0x00890084, 0x008f008a, 0x00920091, 0x00950093, 0x00970096, 0x009a0098, 0x009f009e, 0x00a300a2, 0x00a500a4, 0x00a900a8, 0x00ab00aa, + 0x00ad00ac, 0x00af00ae, 0x830c00b0, 0x400f21e4, 0x00230583, 0x82440100, 0x86212007, 0x82012003, 0x82232007, 0x82252003, 0x00022403, 0x822a0000, + 0x822b2003, 0x82052003, 0x82302003, 0x82392003, 0x82072003, 0x823c2003, 0x825a2003, 0x82112003, 0x86612003, 0x82162003, 0x86622007, 0x82172003, + 0x86632007, 0x82182003, 0x86642007, 0x82192003, 0x86652007, 0x821a2003, 0x86662007, 0x821b2003, 0x86672007, 0x821c2003, 0x86682007, 0x821d2003, + 0x86692007, 0x821e2003, 0x866a2007, 0x821f2003, 0x866b2007, 0x82202003, 0x866c2007, 0x82212003, 0x866d2007, 0x82222003, 0x866e2007, 0x82232003, + 0x866f2007, 0x82242003, 0x86702007, 0x20e78303, 0x830b8271, 0x82262003, 0x86722007, 0x82272003, 0x86732007, 0x82282003, 0x86742007, 0x82292003, + 0x86752007, 0x822a2003, 0x86762007, 0x822b2003, 0x86772007, 0x822c2003, 0x86782007, 0x822d2003, 0x86792007, 0x822e2003, 0x867a2007, 0x822f2003, + 0x86a92007, 0x827b2003, 0x86ae2007, 0x008a2403, 0x85282300, 0x5a002103, 0xf3200782, 0x00210385, 0x20078282, 0x250385fe, 0x00006900, 0x0385a025, + 0x824f0021, 0x85cf2007, 0x56002103, 0xfb200782, 0x17840385, 0x0b82fc20, 0x0b830382, 0x0383da83, 0x00680025, 0x85112600, 0x5e002103, 0x1d200782, + 0x00210385, 0x2007824b, 0x21038539, 0x07825800, 0x03855a20, 0x82aa0021, 0x855b2007, 0xad002103, 0x5c200782, 0x00200385, 0x2621af82, 0x820b825d, + 0x82002003, 0x5e2621c7, 0x03820b82, 0x82ab0021, 0x855f2007, 0xac002103, 0x65200782, 0x00210385, 0x83078231, 0x8303824b, 0x832620a7, 0x84038227, + 0x82bd200b, 0x2503821b, 0x00007800, 0x03850527, 0x27219b83, 0x820b8209, 0x50002103, 0x0b200782, 0x00210385, 0x20078284, 0x2103850c, 0x07828900, + 0x27205782, 0x00200382, 0x44203783, 0x03820f82, 0x009e0025, 0x85462700, 0x200b8403, 0x820b8253, 0x14002103, 0x54200782, 0x0b840385, 0x0b825520, + 0x00210382, 0x20078201, 0x84038557, 0x8264200b, 0x8303820b, 0x952721b3, 0x03820b82, 0x00060025, 0x851b2b00, 0xaf002103, 0x1c200782, 0x0b840385, + 0x0b822420, 0xcb830382, 0xab822b20, 0x00250383, 0xe1000032, 0x25038585, 0x00003000, 0x038503f0, 0xf021cb83, 0x820b8204, 0x215f83af, 0x0b8206f0, + 0x2f830382, 0x8207f021, 0x2103820b, 0x07823300, 0xf020ab82, 0x00210382, 0x200b829f, 0x20038516, 0x21938200, 0x0b8217f0, 0x00210382, 0x20078234, + 0x2103851a, 0x0782a200, 0xf0209b82, 0x00210382, 0x200b82a5, 0x2103851d, 0x07825c00, 0x03852220, 0x82350021, 0x20a38207, 0x210382f0, 0x0b823600, + 0x03852e20, 0x82370021, 0x853e2007, 0x38002103, 0x44200782, 0x00210385, 0x20078239, 0x21038545, 0x07825f00, 0x03854620, 0x825e0021, 0x82572007, + 0x00592403, 0x823a0000, 0x855c2007, 0x200b8403, 0x820b825d, 0x3b002103, 0x67200782, 0x00200385, 0xf021db82, 0x820b8269, 0x05002103, 0x6e200782, + 0x00210385, 0x2007823d, 0x20038570, 0x207f8300, 0x820b8273, 0x3f002103, 0x75200782, 0x00210385, 0x20078240, 0x2003827b, 0x206b827c, 0x20078241, + 0x21038580, 0x07824300, 0x03858620, 0x82440021, 0x85872007, 0x66002103, 0x88200782, 0x00200385, 0x89207f83, 0x03820b82, 0xc7830020, 0x0b828a20, + 0x00210382, 0x20078231, 0x21038594, 0x07824600, 0x03859620, 0x824f0021, 0x85972007, 0x37002103, 0x9d200782, 0x00210385, 0x20078247, 0x210385a0, + 0x07824800, 0x0385a220, 0x82530021, 0x82a42007, 0x82a72003, 0x8249209b, 0x85c52007, 0x4d002103, 0xc7200782, 0xc8200382, 0x4e201782, 0xe0200782, + 0x00210385, 0x20078250, 0x840385e5, 0x82e620d7, 0x8403820b, 0x82ea20bf, 0x82eb200b, 0x8251202f, 0x85f32007, 0x205f8403, 0x820b82f6, 0x65002103, + 0xf7200782, 0x00210385, 0x2007826c, 0x210385f8, 0x07825400, 0x0385fe20, 0x00550025, 0x850cf100, 0x56002103, 0x11200782, 0x0b840385, 0x0b821420, + 0x00210382, 0x20078241, 0x21038515, 0x07824200, 0x03821820, 0x77821a20, 0x07825720, 0x03851c20, 0x825a0021, 0x851d2007, 0x36002103, 0x23200782, + 0x00210385, 0x20078245, 0x20038528, 0x214b8200, 0x0b822af1, 0x00210382, 0x20078201, 0x21038533, 0x07825b00, 0x03854420, 0x825c0021, 0x85462007, + 0x5d002103, 0x47200782, 0x0b840385, 0x0b824a20, 0x00210382, 0x2007825e, 0x2003824d, 0x2083824e, 0x2007825f, 0x20038250, 0x054b4652, 0x8255f121, + 0x2103820b, 0x07820300, 0x5c205783, 0x64201782, 0x03830b82, 0x0b826520, 0x0b826620, 0x03828520, 0x0b828620, 0x07826820, 0x03858e20, 0x82a40021, + 0x85902007, 0xa3002103, 0x91200782, 0x92200382, 0x21053346, 0x0b8296f1, 0x00200382, 0xf1215782, 0x820b82ad, 0x6c002103, 0xc1200782, 0xc9200382, + 0x21053346, 0x0b82cdf1, 0x00210382, 0x20078276, 0x210385d8, 0x07827700, 0x0385d920, 0xdb200b84, 0x03820b82, 0x82560021, 0x85e32007, 0x78002103, + 0xea200782, 0x00210385, 0x20078279, 0x210385f6, 0x07827a00, 0x0385f720, 0xf9200b84, 0x03820b82, 0x827b0021, 0x85fa2007, 0x15002503, 0x0af20000, + 0x00210385, 0x2007827c, 0x20038247, 0x208f8249, 0x2007827d, 0x2103854a, 0x07827f00, 0x03854d20, 0x82800021, 0x85502007, 0x82002103, 0x52200782, + 0x00210385, 0x20078281, 0x20038254, 0x833b825b, 0x825d2017, 0x2103820b, 0x07828a00, 0x03827120, 0x17827420, 0x07828b20, 0x03857820, 0x828f0021, + 0x82792007, 0x827a2003, 0x200b8317, 0x820b827b, 0xb0002103, 0x83200782, 0x00200385, 0x33838b83, 0x00210382, 0x20138291, 0x8403858c, 0x828d200b, + 0x2103820b, 0x07829200, 0x03858e20, 0x0f830b84, 0x00210382, 0x20138202, 0x21038595, 0x07820400, 0x03859c20, 0x823c0021, 0x82b42007, 0x00b62403, + 0x82930000, 0x85b72007, 0x83002003, 0x82b9202b, 0x2103820b, 0x07829600, 0x0385ba20, 0xbb200b84, 0x03820b82, 0x82970021, 0x85bc2007, 0x200b8403, + 0x820b82bd, 0x98002103, 0xbe200782, 0x0b840385, 0x0b82c020, 0x00210382, 0x20078233, 0x200382c1, 0x206b82c2, 0x20078299, 0x210385c3, 0x07829a00, + 0x0382d020, 0x1782d220, 0x07829b20, 0x0385d420, 0x82a80021, 0x85dc2007, 0x9e002103, 0xed200782, 0x00250385, 0xf300009f, 0x21038502, 0x0782a000, + 0x03852820, 0x82a10021, 0x82582007, 0x005b2403, 0x82a20000, 0x85a52007, 0xa6002103, 0xd1200782, 0x00250385, 0xf40000a7, 0x83038510, 0x25f4215f, + 0x03820b82, 0xf421fb83, 0x820b823a, 0xa9002103, 0x3f200782, 0x00210385, 0x200782aa, 0x21038541, 0x0782ab00, 0x03854320, 0x82ac0021, 0x85452007, + 0xad002103, 0x47200782, 0x00210385, 0x200782ae, 0x2103855c, 0x0782af00, 0x03857d20, 0x82540021, 0x85ad2007, 0xb0002103, 0xda200782, 0x00210385, + 0x200782b1, 0x830385e6, 0x2cf52483, 0x82f50000, 0x12002103, 0x31200782, 0x00210385, 0x20078213, 0x21038536, 0x07821100, 0x03854120, 0x82040021, + 0x85562007, 0xb2002103, 0x67200782, 0x00210385, 0x200782b3, 0x24038279, 0x0000007a, 0x200782b4, 0x2003827f, 0x200b828c, 0x200782b6, 0x20038296, + 0x200b829c, 0x200782c4, 0x200382a4, 0x200b82a5, 0x830782cb, 0x82b42033, 0x82cd200b, 0x85b8200b, 0xcf002103, 0xc0200782, 0x00210385, 0x200782d0, + 0x210385c2, 0x0782d100, 0x0385c820, 0x00d20025, 0x8419f301, 0x00002203, 0x20078269, 0x2203844b, 0x82460000, 0x84e22007, 0x00002203, 0x2007826c, + 0x220384e5, 0x82540000, 0x84f42007, 0x00002603, 0xf4010036, 0x22038441, 0x823d0000, 0x844d2007, 0x00002203, 0x20078266, 0x2203844e, 0x82670000, + 0x84642007, 0x00002203, 0x20078233, 0x2203848e, 0x82a60000, 0x84992007, 0x00002203, 0x20078231, 0x8503849a, 0x829b200b, 0x829b200b, 0x823120cb, + 0x849c2007, 0x20178503, 0x200b82a1, 0x201782a1, 0x20078252, 0x220384ac, 0x82b00000, 0x84b22007, 0x00002203, 0x20078203, 0x220384b3, 0x82470000, + 0x84be2007, 0x00002203, 0x2007824e, 0x220384c1, 0x82410000, 0x84c22007, 0x00002203, 0x20078242, 0x220384c4, 0x82640000, 0x84c52007, 0x00002203, + 0x2007825b, 0x850384c6, 0x82cb200b, 0x82cb200b, 0x207f8377, 0x200b82f0, 0x240b82f0, 0xf5010079, 0x22038414, 0x82530000, 0x84152007, 0x00002203, + 0x2007827a, 0x22038416, 0x82370000, 0x84182007, 0x00002203, 0x2007826b, 0x22038434, 0x82560000, 0x84352007, 0x830b8503, 0x8253203f, 0x201f8353, + 0x20178282, 0x200b8282, 0x20078250, 0x22038496, 0x82870000, 0x84a42007, 0x00002203, 0x20078231, 0x840384aa, 0xb4f521d7, 0xb4200b82, 0x48202f82, + 0xb9200782, 0x00220384, 0x07826500, 0x0384bb20, 0x71000022, 0xbf200782, 0xfb840384, 0x82c1f521, 0x82c1200b, 0x20fb822f, 0x82d782f5, 0x21fb8403, + 0x1782cef5, 0x1782ce20, 0xd5203b83, 0xd5200b82, 0x9c200b82, 0xd6200782, 0x00220384, 0x07829b00, 0x0384e920, 0x40000022, 0xea200782, 0x00220384, + 0x07824400, 0x0384fa20, 0x8f000026, 0x00f60100, 0x00220384, 0x0782b700, 0x03840120, 0xc8000022, 0x02200782, 0x00220384, 0x0782bf00, 0x03840320, + 0xb8000022, 0x04200782, 0x00220384, 0x0782b900, 0x03840520, 0xba000022, 0x06200782, 0x00220384, 0x0782bc00, 0x03840920, 0xb1000022, 0x0a200782, + 0x00220384, 0x0782cf00, 0x03840d20, 0xbb000022, 0x10200782, 0x00220384, 0x07825900, 0x03841720, 0xc4000022, 0x18200782, 0x00220384, 0x0782c600, + 0x03841920, 0xc5000022, 0x1b200782, 0x00220384, 0x0782c000, 0x03841c20, 0xc2000022, 0x1d200782, 0x00220384, 0x0782c100, 0x03842020, 0xb2000022, + 0x22200782, 0x00220384, 0x0782ce00, 0x03842620, 0xb5000022, 0x2b200782, 0x00220384, 0x0782d200, 0x03842c20, 0xb6000022, 0x2d200782, 0x00220384, + 0x0782cd00, 0x03842e20, 0xd1000022, 0x33200782, 0x00220384, 0x0782b400, 0x03843620, 0xcb000022, 0x42200782, 0x00220384, 0x07825700, 0x03844420, + 0xcc000026, 0xe0f70100, 0x00220384, 0x07825600, 0x0384e120, 0xe2200b85, 0xe2210b82, 0x200b8500, 0x200b82e3, 0x200b86e3, 0x200b82e4, 0x200b86e4, + 0x200b82e5, 0x200b82e5, 0x200782af, 0x220384e6, 0x82af0000, 0x84e72007, 0x200b8503, 0x200b82e8, 0x202386e8, 0x200b82e9, 0x200b86e9, 0x200b82ea, + 0x200b86ea, 0x200b82eb, 0x230b85eb, 0x01000df9, 0x00220382, 0x07823100, 0x03840e20, 0x1a200b85, 0x1a200b82, 0x84202382, 0x23200782, 0x00220384, + 0x0782bd00, 0x03842920, 0xbe000022, 0xe1200782, 0x2f850384, 0x0b82ed20, 0x2f82ed20, 0x03826020, 0x0042eb09, 0x01d00070, 0x01aa0156, 0x021a02f0, + 0x0284025a, 0x030e03c0, 0x038c0342, 0x040004dc, 0x04c0046e, 0x051005e6, 0x06920536, 0x06400614, 0x07e4068c, 0x0746071a, 0x07cc076e, 0x082408f8, + 0x08880856, 0x09da08a6, 0x09520908, 0x0ae60986, 0x0a7e0a26, 0x0ad20aa0, 0x0b300bf6, 0x0b860b62, 0x0c000cb2, 0x0db00c5a, 0x0e7a0d1a, 0x0e8a0e2c, + 0x0f240fc2, 0x101610a4, 0x11101182, 0x127812c6, 0x135413ee, 0x14e0139a, 0x15ea1438, 0x16d01524, 0x17a01634, 0x18221860, 0x1aa419e2, 0x1a741a0c, + 0x1b001bb0, 0x1c081c88, 0x1d241d6a, 0x1ecc1d82, 0x1f0c1f6c, 0x209e2096, 0x214821e6, 0x22f42196, 0x23de2260, 0x23862332, 0x241c24da, 0x2536257e, + 0x268c26ea, 0x273e27e8, 0x283828a2, 0x295829ea, 0x2a302ac4, 0x2b1a2ba6, 0x2c0e2ca2, 0x2d242d80, 0x2ec42d6a, 0x2fde2e6e, 0x30f62f5e, 0x32be3184, + 0x32723212, 0x332a33ce, 0x355834c0, 0x36763502, 0x37f83636, 0x384c38ce, 0x390e39b6, 0x3ade397e, 0x3a703a28, 0x3b363bda, 0x3c723ca6, 0x3e8e3dfa, + 0x3fb43e1e, 0x3fb23f30, 0x400840f0, 0x412c416c, 0x423442b0, 0x4308439a, 0x44e04374, 0x4588444c, 0x456c4508, 0x465046f2, 0x474c47d2, 0x486648ec, + 0x492a497e, 0x4b7e4acc, 0x4c124c30, 0x4e684dac, 0x4f9a4e00, 0x51965082, 0x52ec5146, 0x54a853e4, 0x56b055f4, 0x5764577c, 0x5afa58fe, 0x5b665b44, + 0x5dde5cfa, 0x5e165e80, 0x606a5f90, 0x61c66016, 0x620062b6, 0x003c6394, 0xff000005, 0x018001c0, 0x001400c0, 0x001c0018, 0x00240020, 0x06210100, + 0x11070607, 0x17161716, 0x36373621, 0x27261137, 0x11152726, 0x27073727, 0x11020f33, 0x3723021f, 0xe0fe5001, 0x010d0e14, 0x140e0d01, 0x09872001, + 0x90737327, 0x1d73e673, 0x23028273, 0xc00173e6, 0xfe211c83, 0x20268860, 0x2b0983a0, 0xa6b4fe5a, 0xa6a67ca6, 0x4c01a62a, 0xa62e0482, 0x02000000, + 0xe0ff2000, 0xa0016000, 0x81820a00, 0x70850020, 0x15367f84, 0x06310722, 0x16171415, 0x36373233, 0x26273435, 0x02164023, 0x03831602, 0x82090e21, + 0x850e2000, 0x02502405, 0x83200116, 0xe0fe2614, 0x09300216, 0x82168609, 0x225b821c, 0x82e0ff00, 0x00a02489, 0x823d0038, 0x372326d9, 0x0f262736, + 0x26068701, 0x17160706, 0x85230733, 0x17062806, 0x3f363332, 0x87073301, 0x37362608, 0x3f232726, 0x2e068301, 0x33372307, 0x4aa80107, 0x1615010e, + 0x856f0f06, 0x83552006, 0x1a4d2273, 0x83068353, 0x02022319, 0x1b820513, 0x0f820220, 0x1d8b0882, 0x196f9d2c, 0x38011a70, 0x0106164c, 0x05855415, + 0x9020c683, 0x0e830483, 0x14841320, 0x0254132f, 0x90021615, 0x17150201, 0x9090bf02, 0x38008200, 0xff100001, 0x012f01c0, 0x005700c0, 0x17161300, + 0x27060716, 0x07262726, 0x20018306, 0x210f8217, 0x04833317, 0x12821884, 0x07061528, 0x22352726, 0x23822327, 0x37262723, 0x22218436, 0x83363716, + 0x223782f5, 0x84313023, 0x821a8318, 0x32290814, 0x37363533, 0xb8151716, 0x03141e2a, 0x1f181507, 0x111d1d1e, 0x0503050f, 0x351d0d04, 0x19181802, + 0x0b0d1614, 0x19330d05, 0x32a7831d, 0x13010505, 0x13151c1b, 0x11150b07, 0x36121818, 0x83041f21, 0x341e2129, 0x0c272986, 0x1f210906, 0x83050424, + 0x7701212b, 0x1723a082, 0x82060315, 0x022e080e, 0x1115090b, 0x10090808, 0x0808060c, 0x18180c0c, 0x0a11351f, 0x02163101, 0x01321602, 0x09070703, + 0x0714140b, 0x03060608, 0x160d0c06, 0x28860712, 0x820d0b21, 0x132b2428, 0x83300212, 0x00312128, 0x032e0082, 0x0000ffff, 0x80017f01, 0x1e000c00, + 0x0b823000, 0x01072631, 0x33161706, 0x36013732, 0x37360527, 0x83373631, 0x217a82de, 0xf9821607, 0x07060524, 0x09840631, 0x1984ff82, 0x11780131, + 0x0eb0fe11, 0x0a09090e, 0x0e500107, 0x42c8fe0f, 0xa442079c, 0x90002008, 0x0e792711, 0x11b0fe0e, 0x31820711, 0x69111126, 0x140e0d01, 0xa020228b, + 0x9682108f, 0xff1a003c, 0x01a401e0, 0x002c00a0, 0x23062500, 0x15012f22, 0x27220706, 0x07013d26, 0x0f820722, 0x3f262729, 0x37262701, 0x41011f36, + 0x2b08057f, 0x16173637, 0x1617010f, 0x07a10107, 0x8806060e, 0x070a1502, 0x02018908, 0x080d0504, 0x89891209, 0x140e0812, 0x16160289, 0x0b158902, + 0x14380f83, 0x030c500b, 0x02169e4f, 0x9e0a0707, 0x0c02014f, 0x4f4f0d14, 0x0912140d, 0x02251383, 0x094f9e16, 0x83118512, 0xff10288b, 0x01b001f0, + 0x83180090, 0x2307218b, 0x24052142, 0x36272623, 0x06fd4137, 0x17163327, 0x1602b001, 0x226083a0, 0x890216a0, 0x16c02209, 0x840f8c02, 0x00002919, + 0x00000200, 0x4001e1ff, 0x132adf82, 0x00002700, 0x31171613, 0x57821716, 0x26070625, 0x82272627, 0x37362ed2, 0x31070635, 0x16150706, 0x36171617, + 0x830e8237, 0x30a02818, 0x0101201f, 0x87301f20, 0x2d442707, 0x2d02022d, 0x0787442d, 0x83700121, 0x8780201d, 0x2008841e, 0x20208330, 0x8421877f, + 0x01002108, 0xe02b7f82, 0x9f010001, 0x00001700, 0x85070605, 0x07112ccc, 0x3f262706, 0x16173601, 0x82331115, 0x020023d2, 0xcd83d016, 0x1443502d, + 0x68110a0d, 0x500c0d0c, 0x44080216, 0x0130053e, 0x110a294d, 0x07400d14, 0xfe0e0706, 0x00160288, 0xd3835386, 0x00002224, 0xaf822105, 0x35434a82, + 0x010f2105, 0x17255887, 0x0f060716, 0x085c8201, 0x01070622, 0x10f0fe28, 0xce0b0506, 0x1a03031f, 0x202a2a1b, 0x0d111127, 0x3e2f280f, 0x0526293d, + 0xd29f2e04, 0x20086883, 0x100e0120, 0x261dba0b, 0x041f2026, 0x0d231b03, 0x2310120f, 0x2e060428, 0x29393930, 0x16160291, 0x26778b02, 0x17000030, + 0x82272223, 0x05b64379, 0x42013b21, 0x232007b5, 0xe5848d84, 0x17162123, 0x22818416, 0x82061716, 0x5abc37bc, 0x0b1a1a22, 0x09161405, 0x120e0d06, + 0x1817245a, 0x17180101, 0x99826424, 0xc4950a22, 0x01218283, 0x330b8400, 0x26253828, 0x25260101, 0x13132038, 0x05091520, 0x0a0a1114, 0x23282983, + 0x01011718, 0x8f0c0f0e, 0x08828d83, 0x01900b25, 0x83382525, 0x8700202c, 0x0180249b, 0x421e009f, 0x7182053b, 0x35272622, 0x3722a483, 0x88843613, + 0x3736352e, 0x33151716, 0x80011716, 0x01271602, 0xf82b4583, 0x0606080d, 0x13140c90, 0x83d07d09, 0x1628260f, 0x02167802, 0x2b8c8368, 0x0c0b0c68, + 0x09131001, 0x98ed140c, 0x98220f83, 0x66821602, 0x200a7b41, 0x1903412e, 0x26272226, 0x3736013f, 0x06236a82, 0x82072307, 0x06014106, 0x1c25523e, + 0x14050c1c, 0x10060916, 0x23521510, 0x01011818, 0xa4231818, 0x0107070b, 0xd0130520, 0xbc226683, 0xfe888717, 0x22141527, 0x15050916, 0x82888213, + 0x82242026, 0x0908242e, 0x8413b70b, 0x028723b9, 0xfb872625, 0x00000232, 0x4001e0ff, 0x2000a001, 0x00003200, 0x31171637, 0x2d05ca42, 0x27262726, + 0x07220722, 0x26273637, 0x87452223, 0x06072605, 0x07062115, 0x05ff4231, 0x36373622, 0x16222d82, 0xda420017, 0x0605330b, 0x0c4b0302, 0x0b080710, + 0x2e1b2507, 0x0a0b1a19, 0x0a431001, 0x1f30240b, 0x43800120, 0x012e0b0f, 0x10125b01, 0x212b0905, 0x1a222136, 0x3a431e1a, 0x2f20210d, 0x280a3341, + 0x17000012, 0x37262722, 0x05204213, 0x1617322d, 0x23060307, 0x12060638, 0x83e6db09, 0x100139fe, 0x0606070e, 0x200d08f0, 0x01140d03, 0x1616026c, + 0x0c0c0c02, 0x000c70fe, 0x03200082, 0x1e27e788, 0x44003100, 0x45250000, 0x23200543, 0x82054445, 0x16152505, 0x33171617, 0x3424d583, 0x012f2627, + 0x82087941, 0x2726216e, 0x78831683, 0x1b880985, 0x2a040131, 0x23230102, 0x23352835, 0x2a020123, 0x8311101b, 0x8348200d, 0x10112c0d, 0x2028781b, + 0x01011516, 0x88201615, 0x48382108, 0x08881287, 0x3a24c622, 0x38832f83, 0x11243a25, 0x87221c1b, 0x1c22240d, 0x83aa111b, 0x8332873d, 0xa0fe2107, + 0x0021118f, 0x0ec34100, 0x27260125, 0x85272631, 0x171626d7, 0x37323732, 0x053c4607, 0x0382c483, 0x36213524, 0xbb413137, 0x25248305, 0x27262726, + 0xc4414001, 0x05062b0b, 0x0d4a0302, 0x0b080710, 0xc4412408, 0xf0fe2105, 0x210fc441, 0xc5410001, 0x060f260f, 0x35212b09, 0x11c54122, 0x00301f2f, + 0xff010000, 0x010800ff, 0x0077017f, 0x080c8212, 0x16010d3c, 0x22070607, 0x27262527, 0x36253736, 0x01071617, 0x01defe72, 0x07071322, 0xfe050510, + 0x01010db0, 0x1650010d, 0x0113070b, 0x0c8a8a4a, 0x02010d14, 0x0f0f07a0, 0x1307a007, 0xef820c14, 0x48001038, 0x3801b001, 0x15000a00, 0x21250000, + 0x17160706, 0x26373621, 0x05842527, 0x01290f84, 0x1690fe98, 0x01160202, 0x21058370, 0x078790fe, 0x78220d83, 0x1f451602, 0x87902005, 0x01002108, + 0x0822a382, 0x9f858001, 0x07062532, 0x22230605, 0x2d372627, 0x36372601, 0x17160517, 0x0d261a82, 0x0505b0fe, 0x9382080e, 0xdefe222b, 0x140c0713, + 0x010d5001, 0x239482c0, 0x0c140e02, 0x1320a583, 0x0f209f82, 0x8f414782, 0x00112509, 0x3700003c, 0x2210dc49, 0x82062313, 0x161529fe, 0x35373617, + 0x37363736, 0x23054f42, 0x0706010f, 0x3f211386, 0x25168201, 0x26272635, 0xff499027, 0x6b43250b, 0x011d1e2c, 0x012cb383, 0x6b18100f, 0x0111111a, + 0x2e491f01, 0x14291185, 0x100f1b49, 0x2e1f1f01, 0x0b184a20, 0x1d23b782, 0x83102c1e, 0x18102eee, 0x01010f10, 0x241a1111, 0x341a2612, 0x3e128311, + 0x260c1811, 0x1f19190f, 0x011f1f2e, 0x00020000, 0x01d0ff10, 0x00b001f0, 0x00530041, 0x82260100, 0x171625a4, 0x33321716, 0x82075749, 0x230f8207, + 0x14151716, 0x9e821a82, 0x26013d26, 0x26070627, 0x0347ce84, 0x0a074705, 0x03272627, 0x26312726, 0x43348227, 0x26080930, 0x484a6407, 0x38390201, + 0x1302015a, 0x48150105, 0x01012e2d, 0x4f513a3a, 0x0d023534, 0x0c13130c, 0x1316020d, 0x44251c04, 0x2f260707, 0x27331a20, 0xe6821a1a, 0x35341f2c, + 0x121b0f41, 0x12010112, 0x07871b12, 0xb0012508, 0x66474602, 0x1042425b, 0x06161301, 0x4935350c, 0x02383a51, 0x53393905, 0x0c0d1313, 0x0d0c0101, + 0x01167413, 0x01261b82, 0x2f2f1f20, 0x4782201f, 0x0102282e, 0x12271a1a, 0x22383744, 0xd0fe0223, 0x1a204d82, 0x11234d83, 0x821a1b12, 0x064b435c, + 0x017f4e08, 0x0013009f, 0x25000017, 0x22232603, 0x17060307, 0x33013f16, 0x32331617, 0x25273637, 0x01231737, 0x0f07a87e, 0x07a8070f, 0x220a1514, + 0x0f0722e0, 0x07140405, 0x5c5ce6fe, 0x900101b8, 0x70fe0e0e, 0x14070a15, 0x020f5050, 0xdc6e150a, 0x0c7f44db, 0x21001527, 0x00002d00, 0x087f4437, + 0x76441120, 0x44262006, 0x35230d76, 0x41352313, 0xfa360837, 0x23010125, 0x168c3523, 0xac160202, 0x01232335, 0x20131201, 0x194474ca, 0x94742307, + 0x0b879494, 0x3623cb22, 0x02252083, 0x1670fe16, 0x24348302, 0x101d1d25, 0x073544a5, 0xa0fe9823, 0x460b8798, 0x802a0993, 0x3a00a001, 0x26170000, + 0x02833127, 0x82343521, 0x3736279d, 0x31303130, 0x01821716, 0x2007ee41, 0x09564427, 0x20054b44, 0x221d8232, 0x82060714, 0xdd480801, 0x1a313146, + 0x311a1b1b, 0x24304532, 0x06151525, 0x0f0c0d05, 0x2c1b1a0f, 0x012d2d52, 0x522d2d01, 0x0f1a1b2c, 0x07080c0f, 0x15150108, 0x20302524, 0x33212101, + 0x33373732, 0x01212233, 0x13101001, 0x08070b14, 0x0e020108, 0x01290082, 0x43353503, 0x03363542, 0x2a0c8201, 0x0606020e, 0x13140b0c, 0x83011010, + 0x000225af, 0x01e0ff00, 0x1322af83, 0xb1821f00, 0x27262323, 0x06404311, 0x23052847, 0x33270706, 0x08085048, 0x839b113c, 0x16020216, 0x34334083, + 0x01011e1f, 0x33341f1e, 0x4d6b6b40, 0x02023333, 0x6b4d3333, 0x01160220, 0x01021690, 0x33321e1e, 0x32333e3e, 0x30011e1e, 0x4b313202, 0x0232314b, + 0x7b46a0fe, 0x0019260a, 0x07060500, 0x206b8421, 0x21678321, 0xa0471523, 0x25068305, 0x16024001, 0x6783f0fe, 0x83100121, 0xb8f82105, 0xb8210583, + 0x068549f8, 0x02246183, 0x98021616, 0x0b490486, 0x8215200b, 0x0706210c, 0x06214c88, 0x83618707, 0x44478653, 0x5a8305a2, 0x86880121, 0x84b02045, + 0x48b9826c, 0xbd240b57, 0x3c00a001, 0x410ac341, 0x162105a1, 0x23018317, 0x23060706, 0x4d05104d, 0x1621094f, 0x82218337, 0x37362116, 0xc541cb82, + 0xde2c0805, 0x1c323242, 0x1d1e011c, 0x313e3233, 0x15152525, 0x09090101, 0x0f100b06, 0x4a2e1a1b, 0x01023132, 0x26260e0e, 0x26261c48, 0x96081f20, + 0x15348482, 0x210116af, 0x37333321, 0x1f1f0120, 0x3f3b3233, 0x1e1e3233, 0x3106ce41, 0x0105050e, 0x0e0e0e0f, 0x32310201, 0x2929154c, 0x3e832323, + 0x3a212122, 0x4725d085, 0x1a1a3132, 0x06634101, 0xbb828020, 0x0000182b, 0x07061101, 0x21352726, 0x06084115, 0x15171626, 0x37363521, 0x23057549, + 0xe0fe0216, 0x16233a85, 0x83200102, 0x88012309, 0x848270fe, 0xc8c81622, 0x21090f41, 0x0b839898, 0x820b6341, 0x05bb4157, 0x1120e782, 0xc141ee84, + 0x82112005, 0x09ba41f5, 0x49847020, 0x8305c041, 0x07404b0b, 0x72876020, 0x02a0fe23, 0x082b4a16, 0xaf824020, 0x6b411d20, 0x20a18407, 0x05fe4415, + 0x11373622, 0xc782af83, 0xa0070626, 0x022d2d44, 0x0b4ca784, 0x284a8406, 0x20442d2d, 0x412c2b02, 0x2aa7832e, 0x1e1e2d2e, 0x1e1e0101, 0x830e012d, + 0xf2fe250e, 0x022b2c41, 0x2b0a7742, 0x2500001e, 0x23060716, 0x07012f22, 0x4d0a1441, 0x302e0547, 0x011f3031, 0x110b3c01, 0x080c0707, 0x5d845094, + 0x02161632, 0x0e1111e7, 0x9901970e, 0x040f1306, 0x7551d40a, 0x28091b41, 0x0e0ee8d7, 0x01981111, 0x20c784d8, 0x06f74920, 0x00000e23, 0x05454305, + 0x1117162a, 0x06171633, 0xf0280107, 0x20051e47, 0x430683d8, 0x02230624, 0x4b88fe16, 0x9f8605ca, 0x9f01c024, 0x3b821c00, 0x11272622, 0xf482a185, + 0x36200b82, 0x1b239c82, 0x82173601, 0x2849824c, 0x9c0216a8, 0x070d0d07, 0x2b3a839c, 0x0a111001, 0x110ab4b4, 0x16020110, 0x40265583, 0xed0a0aed, + 0xa085c0fe, 0x0406112f, 0x01effe0e, 0x06040e11, 0x1670fe11, 0x086b4102, 0x22061b42, 0x42272205, 0x1120051e, 0x01206183, 0x26086641, 0x0b680123, + 0x84dafe07, 0x0f0f245f, 0x8526010b, 0x04042709, 0x5d010920, 0x5c85b2fe, 0x04071027, 0x01a3fe0c, 0x240d834e, 0x071070fe, 0x0a2f5101, 0x2c001a22, + 0x20093543, 0x0e354327, 0x07060722, 0x5d4fd682, 0x44e0200e, 0x3644052a, 0x230b850b, 0x0231324b, 0x83073f44, 0x91202007, 0x243a8622, 0x32310290, + 0x442e8b4b, 0x402609db, 0x1200a001, 0x93841e00, 0x2007da44, 0x24878206, 0x07061523, 0x09da4437, 0x83181521, 0x409036cc, 0x02022b2b, 0x78412a2b, + 0x78181602, 0x011d1e2c, 0x2c1d1e01, 0x07b34178, 0x402b2b22, 0x78272083, 0x01c00216, 0x832c1e1d, 0x00d0211f, 0xc022fb84, 0x6782c001, 0x3c002022, + 0x4508094b, 0x062105db, 0x05314407, 0x17373623, 0x256c8316, 0x012f3435, 0xc6472607, 0x44372006, 0x2722054b, 0x90822326, 0x1f141529, 0x01070601, + 0x44023a84, 0x3e24052f, 0x1e1e3333, 0x33317e83, 0x38483e32, 0x0c0a0936, 0x36060606, 0x32314ba4, 0x2eec8702, 0x075b2a01, 0x05060c0b, 0x362b5a06, + 0x415a3e28, 0x272a1246, 0x0701093f, 0x07080808, 0x48411841, 0x2f44220b, 0x2117866a, 0xbb411c6c, 0x01402907, 0x001b00a0, 0x37000027, 0x82081051, + 0x16112596, 0x35373617, 0x2106aa47, 0x4047022f, 0x35232b08, 0x212132cb, 0x24240201, 0xdc42a836, 0x85603c05, 0x06080c07, 0x9b700c11, 0x16172290, + 0x17160101, 0x05a19022, 0x36332423, 0x47012524, 0x0229053d, 0x0ab6a816, 0x9b130e05, 0x831d83cf, 0x00a02125, 0x012e0082, 0xe0ff1f00, 0x9f016001, + 0x00003400, 0xa9520625, 0x07855205, 0x20088352, 0x21118326, 0xc9523637, 0x0ac75205, 0x11821620, 0x5e012b08, 0x2e272c0a, 0x152e2d34, 0x150a0714, + 0x1f373742, 0x1d070619, 0x2626431d, 0x08171626, 0x8d462809, 0x16070416, 0x1129294b, 0x1782011b, 0x84274221, 0x35412917, 0x01011419, 0x0a090d0d, + 0x27083682, 0x1105051a, 0x14261f0e, 0x0f0a1213, 0x321d1d10, 0x252c1b2f, 0x04151607, 0x0d040312, 0x13271514, 0x100a1114, 0x331d1d0f, 0x260c4743, + 0x01000011, 0x43230706, 0x0b4505a9, 0x80013607, 0x02901602, 0x90021616, 0x16020216, 0x02165001, 0x02168801, 0x820382fe, 0x062a4b0d, 0x440aa745, + 0x054516f7, 0x82062005, 0x51c023e8, 0x48823637, 0x28254c82, 0x293d3d29, 0x280b8528, 0x20513736, 0x50363502, 0x291782eb, 0x283ceb16, 0x27020227, + 0x0d853c28, 0x35365022, 0x2b09ef43, 0x009f017f, 0x17000010, 0x26032726, 0x2d074b44, 0x07060307, 0xa80610c0, 0x0a151407, 0xfe839292, 0x1006a837, + 0x010e0120, 0x070a1590, 0x01a5fe14, 0x0a07145b, 0x0e70fe15, 0x08d34801, 0x01400229, 0x001e00a0, 0x82300500, 0x010b23e7, 0x4f890706, 0x17163727, + 0x1736011b, 0x37558316, 0x10019801, 0x06626106, 0x90061110, 0x0a161406, 0x11066377, 0x77630611, 0x05226382, 0x63820790, 0x43011028, 0x0110bdfe, + 0x6b830f01, 0xfe140525, 0x824a01b5, 0xfe10260d, 0x144b01b6, 0x20738305, 0x2073890f, 0x20bb8301, 0x0ab3451c, 0x22230622, 0x45090353, 0x173a05b5, + 0x100d7a01, 0x070b0807, 0x0b079696, 0x0d100708, 0x100d9b9b, 0x96960f12, 0x0b83120f, 0x0f120734, 0xb2b20906, 0x120f0609, 0x0f12b9b9, 0xb2b2100d, + 0x0b830d10, 0x8308c741, 0x00122263, 0x06104600, 0x26273526, 0x011f3637, 0x07355b83, 0x02a37b01, 0xa3021616, 0x0e13110c, 0x130e9595, 0x7a010c11, + 0x05d952e2, 0x0e13e22a, 0xcdcd110c, 0x130e0c11, 0x2309ef50, 0x001600a0, 0x2c050352, 0x26210137, 0x21373627, 0x07161716, 0x2d058201, 0x68010706, + 0x070fb0fe, 0x2f010a06, 0x1642e3fe, 0x230d8305, 0x1c01d2fe, 0x20260d83, 0x0b0e0d01, 0x6d836901, 0xfe210983, 0x37098397, 0x00000300, 0x0002e0ff, + 0x1800a001, 0x2e002500, 0x23010000, 0x012b2627, 0x26126357, 0x1f323325, 0x47163301, 0x7b8305de, 0x15213522, 0xc0257382, 0x1a1331ac, 0x08dc4b76, + 0x09878020, 0x7680fe34, 0xc03f0506, 0x60fe010f, 0x80010f01, 0x010f80fe, 0x0982a001, 0x132d6028, 0x1b121201, 0x3288c0fe, 0x09830020, 0x3b051026, + 0x60200f01, 0x24822e82, 0x0fb0b027, 0x00000001, 0x299b8602, 0x00210095, 0x13000038, 0xcb4c3717, 0x0f062808, 0x22230601, 0x5326012f, 0x362705d2, + 0x22171617, 0x56173133, 0x1523067c, 0x53011f16, 0x320807d9, 0xf4010f26, 0x201a0c0b, 0x21342321, 0x2f010121, 0x10100cb4, 0x012fb40c, 0x34212101, + 0x19212122, 0x2d0b0101, 0x16233023, 0x1f010115, 0x011fb0b0, 0x82151601, 0x012f390e, 0x190c0c6c, 0x0a050a0a, 0x06362627, 0x0ba92c41, 0x412ca90b, + 0x27263606, 0x0a391282, 0x202f5019, 0x1a1a0706, 0x1e2c0623, 0x2c1ea4a4, 0x1a1a2306, 0x2f200607, 0x31b38300, 0x02c1ff17, 0x00c00128, 0x0034001f, + 0x1f160100, 0x40551602, 0x2f062206, 0x05065401, 0x3726272a, 0x36023f36, 0x07153137, 0x1d83c782, 0x1f363723, 0x05744201, 0x6d089882, 0x44070f20, + 0x04050f99, 0x021a6f0a, 0x890c0d0c, 0x0c0c0c8a, 0x0a6f1b01, 0x9a0e0504, 0x350f0744, 0x56760d05, 0x6a150108, 0x14690b0b, 0x76560902, 0x0135050d, + 0x8d0d01c0, 0x0e0e0217, 0x0e9c6e0a, 0x49060809, 0x09080649, 0x0a6e9c0e, 0x17020e0e, 0x4f010d8d, 0x11030b6c, 0x780c0955, 0x38060638, 0x55090c78, + 0x6c0b0311, 0x00000400, 0x3a82c0ff, 0x1200c03e, 0x30001e00, 0x00004200, 0x07062325, 0x17140706, 0x32213316, 0x26353637, 0x07272627, 0x3620a882, + 0x2005ee4e, 0x09b64521, 0x2507aa50, 0x31171635, 0x93501716, 0x82362007, 0x01270820, 0x314b6010, 0x09090232, 0x0e80010e, 0x32020909, 0x07df4b31, + 0x60322323, 0x07232332, 0x36afa2fe, 0x01012425, 0x87362524, 0x07c84507, 0x8308d045, 0x05414f31, 0xa0294783, 0x011f2030, 0x30201f01, 0x83348bd0, + 0x45d0203c, 0x078707e0, 0x00820020, 0xd3830320, 0x0100023a, 0x000e00c0, 0x003b0029, 0x37361300, 0x17151716, 0x2f060716, 0x013d2601, 0x86052c53, + 0x070621b2, 0x8305604b, 0x373622b6, 0x0c475303, 0xe838d283, 0x02161602, 0x0d0c1255, 0x180b6013, 0x223a3948, 0x22010122, 0x48393a22, 0xd0280b8b, + 0x583b3b02, 0x023b3b58, 0x01300787, 0x02021648, 0x0e397b16, 0x400c1213, 0x78870e06, 0x3f853391, 0x8b00ff21, 0x223e8336, 0x82080000, 0x02e034bf, + 0x00a00140, 0x001c0011, 0x00320027, 0x00560044, 0x8279006c, 0x272232c9, 0x34352631, 0x32333637, 0x14151617, 0x37230607, 0x06735436, 0x15272622, + 0x2f240a93, 0x31173201, 0x22212a85, 0x203a8527, 0x23449015, 0x31373603, 0x21054644, 0xf4831117, 0x27262133, 0x33112726, 0x21171611, 0x26113736, + 0x07062127, 0x0bd05080, 0x16024823, 0x96e083e0, 0x8b482004, 0x250b8b2b, 0x12120180, 0xf643011b, 0x40fe3008, 0x0112121b, 0x010f0130, 0x01010fc0, + 0x8240fe0f, 0x51002005, 0x20200b05, 0x2205f247, 0x90601602, 0x8b802008, 0x51a02027, 0x20200c3a, 0x88087f44, 0x40012269, 0x206284fe, 0x51628301, + 0xc02c07eb, 0xc0010002, 0x40002400, 0x22010000, 0x25070d48, 0x27263507, 0x8e480706, 0x099e5a05, 0x27341137, 0x06032326, 0x30272623, 0x26313031, + 0x35072227, 0x16333637, 0x056a4f17, 0x1137322e, 0x0a09dc01, 0x222a2943, 0x57323424, 0x0807d14b, 0x36364f2a, 0x30352e2d, 0x0b011440, 0x2d0c0f0a, + 0x302a2d28, 0x12463f3f, 0x22283047, 0x3f343525, 0x1e04c001, 0x0e0d0202, 0x08220203, 0xfe21de83, 0x32058330, 0x02022268, 0x01020e0e, 0x01140918, + 0x08080f2d, 0x8310c0fe, 0xf81c3823, 0x0d021d07, 0xfe1a020f, 0x000200f6, 0x01c0ff00, 0x00c00180, 0x5d1f0015, 0x3f230b0d, 0x5c161701, 0x262b059d, + 0x07271127, 0x21333611, 0x5d111532, 0x0f33080a, 0x9090110f, 0x010f0f11, 0x140e0d01, 0x04019090, 0x5d071401, 0x503b0604, 0x08080913, 0x09085454, + 0xb0011308, 0x010d0e14, 0x54543cfe, 0x06068e01, 0x460072fe, 0x012d051f, 0x00a001ff, 0x00260011, 0x1300003e, 0x0fb85a06, 0x915d2520, 0x27132613, + 0x0f222326, 0x2b058501, 0x31303130, 0x21373611, 0x98111716, 0x830b9f5a, 0x2701248b, 0x521a80fe, 0x1a210522, 0x053d4601, 0x1c121133, 0x0a048910, + 0x256b050a, 0x05090a05, 0x010f014c, 0x20b88280, 0x0fcd5a48, 0x48465820, 0x1b40210e, 0xfe2b4782, 0x0707ba87, 0x06062e90, 0x823f015e, 0xfe0f2234, + 0x06e744c7, 0xbc01fc39, 0x1f001600, 0x52002900, 0x36010000, 0x1f323133, 0x14151601, 0x5906010f, 0x3f290744, 0x0f261701, 0x36371701, 0x3271822f, + 0x013f3637, 0x07060727, 0x06171627, 0x07222307, 0x45111506, 0x3d230716, 0x5a373601, 0x2c430654, 0x363a0805, 0x33373637, 0x1d167501, 0x150c161d, + 0x120dc515, 0x090a0e64, 0x0d051d03, 0x111043c5, 0x0e1d2e1d, 0x11ec0d0e, 0x8605063a, 0x0105862e, 0x02021604, 0x0b117016, 0x110b0c0c, 0x07821001, + 0x1616022d, 0x19190102, 0x25f0fe25, 0x83011919, 0x01702509, 0x0c1515a7, 0xc5384e83, 0x041c060d, 0x640e090b, 0x22c50d12, 0x2e1d0e0e, 0x0c11101e, + 0x01113ad0, 0x06214b84, 0x823b83cb, 0xf0fe2147, 0x70204f85, 0x46875b84, 0x83100121, 0x05c34109, 0x0002c02e, 0x1900c001, 0x46003400, 0x36130000, + 0x21057d48, 0x1745010f, 0x08964605, 0x965c3120, 0x062d5805, 0x594d2620, 0x4125200c, 0xaf3a10f8, 0x302f1011, 0x0f0f1011, 0x0f0f2e2e, 0x2f301110, + 0x0e0e1110, 0x0e0e2f2f, 0xf2445101, 0x86012029, 0x204b9133, 0x28714551, 0x860cf745, 0x063726e3, 0x2f223123, 0x05f54401, 0xef833220, 0x21053645, + 0xc885010f, 0xf427e3a6, 0x090b0b09, 0x83080840, 0x6c2c2106, 0x08240583, 0x0c018008, 0x6c23dfa9, 0x85400808, 0x822c2036, 0x2109830a, 0xd8aa5480, + 0xcf460420, 0x001a2b08, 0x003c002c, 0x0100005d, 0xbc820706, 0x5506df4e, 0x975405bb, 0x27262205, 0x0ef54d11, 0x35070623, 0x222c8222, 0x60171615, + 0x372107a3, 0x05b94723, 0x3637362c, 0x17163337, 0x06010f14, 0x4483011d, 0x10823520, 0x26273425, 0x97000127, 0x0fac469d, 0x09090e2e, 0x090d1e02, + 0x0d090a0a, 0x141e3321, 0x3305a75a, 0x16331302, 0x0c390b02, 0x02161602, 0x1401212d, 0xc0011f13, 0x21172c41, 0x3a4730fe, 0x0980250f, 0x021e0e09, + 0x3305d045, 0x141301d0, 0x0202161e, 0x02021416, 0x23060c14, 0x16100d08, 0x02230d82, 0x8326161c, 0x0000236c, 0x2b470400, 0x0030250a, 0x007a0057, + 0x4e06574e, 0xdd4705f2, 0x36172105, 0x25077a5f, 0x23222330, 0xfe831516, 0x14272223, 0x05265515, 0x59273121, 0x34830857, 0xf34d1620, 0x48058205, + 0x05820518, 0x82363721, 0x37312401, 0x83310706, 0x4f062039, 0x7641066a, 0x07784107, 0x31272623, 0x0f9f48a0, 0xd1488020, 0x01200807, 0x01030101, + 0x081b1212, 0x17160108, 0x3024c122, 0x303d3d30, 0x17232430, 0x04040c17, 0x2317170c, 0xc1301191, 0x1f282831, 0x0b13141d, 0x1d14130b, 0x3128281f, + 0x13250f84, 0x140b0b14, 0x200f8413, 0x0f4649c0, 0x5b835020, 0x08247183, 0x12121b08, 0x01377082, 0x01171623, 0x171722df, 0x17170101, 0x23232122, + 0x1c0c0c1c, 0x87222223, 0x22222111, 0x23321185, 0x13012121, 0x1d1b1e12, 0x1d17181c, 0x121e1b1d, 0x0f850113, 0x18171d23, 0x210f851c, 0x8b630000, + 0x80023005, 0x1e00c001, 0x48003800, 0x74006600, 0x41130000, 0x172a123c, 0x27060716, 0x36372601, 0xaf5a031f, 0x07142205, 0x07db5517, 0x26272627, + 0x31070627, 0x05584a17, 0x06233029, 0x14151623, 0x41021f07, 0x1d8305a9, 0x37213782, 0x0b644117, 0x34273127, 0x1f161735, 0x25228501, 0x2a219733, + 0x3c41332b, 0x140b2a09, 0x10691d14, 0xfd130f0c, 0x2e0583b0, 0x232e2770, 0x24253631, 0x19360e01, 0x410a1212, 0x4c31072b, 0x0105cd36, 0x01221716, + 0x07030101, 0x362a0952, 0x24418948, 0x1c26220f, 0x0764410c, 0xd4262e32, 0x38251138, 0x24361512, 0x01010224, 0x10111b63, 0x2a0a3c41, 0x1f201f19, + 0x10130f52, 0x83d0010c, 0x582e0805, 0x011f241f, 0x36252401, 0x1a2a1b20, 0x18151b1b, 0x1e1b1d1c, 0x03011313, 0x100da02a, 0x01171721, 0x11070801, + 0x2183400c, 0x1701021e, 0x6e412217, 0x2e242505, 0x181c241d, 0x30076641, 0x0403a010, 0x2d08212c, 0x25010105, 0x0a003724, 0x078f4b00, 0x27002235, + 0x31002c00, 0x3b003600, 0x47004200, 0x53004e00, 0x61130000, 0x16200913, 0x210baa49, 0x2e613736, 0x33072508, 0x021d2335, 0x33210482, 0x21048715, + 0x0a822337, 0x04821520, 0x35373624, 0x0b82012b, 0x16230482, 0x84353317, 0x90982617, 0x02161602, 0x11334928, 0x17832820, 0x82506821, 0x60802300, + 0x06829060, 0x40220282, 0x0c84010f, 0x400f012d, 0x01606090, 0x02162880, 0x47281602, 0x19851383, 0x3838b824, 0x00844030, 0x3838682c, 0x0f0138d8, + 0x28383828, 0x0a82010f, 0x00003823, 0x28eb8202, 0x01ff01e0, 0x002400a0, 0x0cd3443f, 0x3d640620, 0x21d68306, 0x9a4b3316, 0x27262105, 0x11230183, + 0x82012f22, 0x3f36221c, 0x840e8401, 0x4c172020, 0xb544057c, 0x33023207, 0x0110100d, 0x0f07060b, 0x1723232e, 0x3a47322b, 0x05b44b39, 0x473a3930, + 0x14172628, 0x090b2415, 0x0d0e140a, 0x7a44010c, 0xa001360b, 0x2f1c1b01, 0x35493a2f, 0x0115141f, 0x010e0e0c, 0x100f0e01, 0x3514850e, 0x1c2f2f3a, + 0x90fe011b, 0x100e070c, 0x1c16130d, 0x17180e16, 0x1e624420, 0x0200240a, 0x85ffffff, 0x001822cb, 0x1a414f29, 0x8e581320, 0x06494f07, 0xbf011127, + 0x1a1330ac, 0x0e3c4f77, 0x1c12112b, 0xfe0f0110, 0x01010f80, 0x06434f0f, 0x354f0120, 0x09d84a16, 0x013b0525, 0x8200ff0f, 0x0813457c, 0x00002b24, + 0x71840725, 0x11272626, 0x37363736, 0x16267586, 0x35231517, 0xe64f2726, 0x82112006, 0x16212b18, 0x02071617, 0x1509603d, 0x8b8781fe, 0x131a7624, + 0xa14b8c31, 0x3fa03906, 0x0f760605, 0x14094701, 0x09128c01, 0xc0b20709, 0x12010111, 0x40011b12, 0x13212083, 0x250b832d, 0x010f2020, 0xb682053b, + 0x828ee021, 0x0e0e221c, 0x089f4511, 0xa0010032, 0x1d001200, 0x33002800, 0x16130000, 0x17161117, 0x98897082, 0xb94c1720, 0x16172709, 0x23070617, + 0x11822726, 0x21200a84, 0x21270a83, 0x02021618, 0x83a00116, 0x60fe2805, 0x0114141f, 0x63681602, 0xd023063f, 0x83a80216, 0x84902017, 0x84802004, + 0x84f02022, 0x0110252e, 0xfe1602a0, 0x16273484, 0x14140102, 0x6160011f, 0x1e8306e8, 0x16024822, 0x5805544c, 0xae82082a, 0x00030029, 0x02c0ff00, + 0x82c00180, 0x003a22ad, 0x4ead8472, 0x22210629, 0x06e24e27, 0xcb443720, 0x20058305, 0x059d4203, 0x2705d444, 0x17160706, 0x07011f16, 0x36262683, + 0x2517013f, 0x3a841716, 0x84075546, 0x83232025, 0x37362105, 0x33211382, 0x21238232, 0x0f821716, 0x86012f21, 0x27262652, 0x31273437, 0x076547d0, + 0x171a1c36, 0x10292021, 0x010b0607, 0x2d0d0d0c, 0x3b3b0201, 0x15162b58, 0x080cc15f, 0x0c0a0a45, 0x02021017, 0x1a1a0304, 0x15011410, 0x02383854, + 0x0d0d2d01, 0x070b010c, 0x20291006, 0x1c1a1721, 0x1a32313e, 0x2415181a, 0x16152c24, 0x1b1a1014, 0x02020404, 0x0a0c1710, 0x2901010a, 0x06013f28, + 0x5b02c001, 0x063d063c, 0x010b0b0f, 0x0c0f0e01, 0x18100f01, 0x314b402e, 0xd6fe0232, 0x24250106, 0x25243636, 0x08078301, 0x13141a41, 0x041e190c, + 0x08070604, 0xaa030911, 0x49313105, 0x10182e40, 0x0f0c010f, 0x0b01010e, 0x01060f0b, 0x042c1b1a, 0x11111c08, 0x11090306, 0x04070608, 0x0c191e04, + 0x331a1413, 0x01062323, 0x51001719, 0x012d061f, 0x00bf0138, 0x00200015, 0x17160100, 0x077f4b11, 0x23061651, 0x010f3117, 0x27071651, 0x12250111, + 0x950c0101, 0x230b0151, 0x1d1d1209, 0x29060251, 0x05bf015d, 0x0e7ffe12, 0xee504f07, 0x0310230b, 0xee503b7f, 0x01322206, 0x08c75d0a, 0xa001c028, + 0x69003700, 0x75827c00, 0x68273621, 0x0726056b, 0x31302706, 0x72440726, 0x31302e05, 0x07161530, 0x17161706, 0x37323316, 0x05df4d36, 0x83363721, + 0x27258201, 0x37263530, 0x31150627, 0x2f851f82, 0x21050d4e, 0x43822207, 0x36372624, 0x0f823635, 0x2d830782, 0x17321724, 0x41833716, 0x010f1622, + 0x22065148, 0x87232223, 0xb801351c, 0x1305040b, 0x15181714, 0x3627210f, 0x093a3c36, 0x06040609, 0x1a231383, 0x8b0f101f, 0x092a3413, 0x07050201, + 0x2a302f07, 0x1415252a, 0x120b1113, 0x850a050f, 0x20242512, 0x12141e21, 0x21081482, 0x0f120c10, 0x0e029e06, 0x0a232423, 0x02020c04, 0x2a0c030e, + 0x050f2c29, 0x18152f01, 0x05131417, 0x5c820b04, 0x3a090929, 0x2736363c, 0x830f2001, 0x08192114, 0x1834128c, 0x15141310, 0x302a2a25, 0x0507072f, + 0x06090102, 0x110b120f, 0x26281282, 0x24302a29, 0x02010b0c, 0x0c211385, 0x827c8203, 0x040b2865, 0x2a292c0f, 0x480e030c, 0xab500513, 0x000a2b05, + 0x002b0015, 0x003d0034, 0xc3433700, 0x013b2108, 0x33200a88, 0x50058767, 0x363c0a5f, 0x21373637, 0x07062115, 0x26352115, 0x15211727, 0x36211716, + 0x16a83537, 0x30160202, 0xc0200484, 0xd04c0583, 0x46982005, 0x402008a0, 0x32082b45, 0x0f40fec0, 0x01e00101, 0x20fe100f, 0xc0010f01, 0x4370010f, + 0x078707d4, 0x46300121, 0x3027139c, 0x20200f01, 0x8290010f, 0x0f012331, 0x008200c0, 0x55000521, 0x08340703, 0x2a001d00, 0x40003700, 0x06250000, + 0x36171607, 0x13272637, 0x2514de4e, 0x26210706, 0xc3823527, 0x15171628, 0x21232635, 0x0c860722, 0x37870720, 0xc6840120, 0x9021c483, 0x05d74efe, + 0x1b121222, 0x8206e14e, 0x08e24509, 0x0f800129, 0xfe080801, 0x4e080880, 0x402005e7, 0x22059944, 0x88681602, 0x933820c7, 0x052046c7, 0x010f6029, + 0x9e600f01, 0x83a20202, 0x56a22108, 0x82081c63, 0x860620d7, 0x00802cd7, 0x00330028, 0x004f003f, 0x8287007c, 0x273423d9, 0x03843736, 0x5f333521, + 0x26250875, 0x07222327, 0x060d4c06, 0x4e06dc60, 0x262005fa, 0x33202d82, 0x2405d541, 0x3d362722, 0x370b8601, 0x26353435, 0x30333035, 0x35053331, + 0x36013f34, 0x17323337, 0x14011d16, 0x2b05436a, 0x2726013d, 0x14150706, 0x06171617, 0x14290582, 0x14070615, 0x26272617, 0x45048227, 0x012407ef, + 0x02200240, 0x38370282, 0x0114141f, 0x1f141401, 0x322a1ac4, 0x0c141518, 0x2802121f, 0x83683d29, 0x42282016, 0x2020090f, 0x05240a84, 0x80300904, + 0xb0300983, 0xfeb00101, 0x0c1f0c78, 0x0b113217, 0x0c08080c, 0xfc830382, 0x160e0f2c, 0x03270203, 0x15152104, 0x28839001, 0x04843820, 0x090a2824, + 0x03832914, 0x83040421, 0x2c5b836a, 0x0c0c011f, 0x241f3815, 0x27283b6c, 0x41148302, 0x975d0870, 0x130f2205, 0x2f08840c, 0x01020328, 0x176cc402, + 0x01133815, 0x54110b0c, 0x6e826882, 0x56833420, 0x13193433, 0x0b090913, 0x01010607, 0x0a0c2f12, 0x22181808, 0x0981415c, 0x310f7f41, 0x007f0050, + 0x0500008a, 0x36373633, 0x2f343537, 0x6a572601, 0x088a6305, 0x15143325, 0x86061716, 0x17162103, 0x26094a43, 0x14152733, 0x822b0617, 0x37363030, + 0x39303533, 0x14313201, 0x011d1407, 0x82272623, 0x36132810, 0x26273435, 0x83353427, 0x415b8207, 0x8a41077c, 0x37342e07, 0x16013b36, 0x1d16011f, + 0x06070601, 0x3545850f, 0x07061716, 0x68080123, 0x0228293d, 0x150b2012, 0x2a321814, 0x8a41c41a, 0x41382007, 0x0124059a, 0x101f1414, 0x3020e883, + 0x20230484, 0x85050409, 0x01012209, 0x2a1183b0, 0x0c048cb0, 0x0302130b, 0x830f0e16, 0x058541f6, 0x110b0c2c, 0x1f0c1732, 0x1515010c, 0x25837c21, + 0x2d058141, 0x28270220, 0x20246c3b, 0x0c0c1537, 0x84411f01, 0x04042507, 0x0a091429, 0x7a830383, 0x3c41b020, 0x0c502407, 0x83020f13, 0x0250250c, + 0x28020301, 0xfe310983, 0x160b0be2, 0x01081211, 0x0b060602, 0x13130909, 0x05824119, 0x2d058e41, 0x0c0b1154, 0x15381301, 0x19216c17, 0x3a840818, + 0x00233483, 0x56200006, 0x034306e3, 0x2201240c, 0x84272607, 0x35232303, 0x465d2726, 0x42152005, 0x1f2205b0, 0xde6a1601, 0x24188405, 0x16373607, + 0x23198217, 0x27352726, 0x14240a84, 0x012b2607, 0x232a0b86, 0x23062322, 0x31303530, 0x8c581335, 0x37342406, 0x55013b36, 0x2b28069e, 0x16070601, + 0x37323317, 0x05823782, 0x16333229, 0x06373217, 0x82070607, 0x844e8204, 0x7801214d, 0x21169742, 0x97422037, 0x00012157, 0x416a7643, 0x0343107f, + 0x35253006, 0x27262726, 0x010f2223, 0x1d060706, 0x61171601, 0x3525088b, 0x37363332, 0x21038616, 0x74413736, 0x07062a05, 0x07352726, 0x16373233, + 0x8230821d, 0x30232a0b, 0x31340139, 0x3b321732, 0x059c4101, 0x23262528, 0x07060722, 0x07832322, 0x21065743, 0xf2511716, 0x06072d05, 0x2722012b, + 0x36013d26, 0x3b36013f, 0x4f4e6c82, 0x05fe5c06, 0x42c00121, 0x1f210598, 0x36984238, 0x421e0121, 0xc8203298, 0x23057843, 0x15140c1f, 0x214e7843, + 0x78430b20, 0x06d74a0e, 0xc001002b, 0x26001500, 0x00004300, 0x0ce25b01, 0x23068e44, 0x07060727, 0x27055362, 0x17141733, 0x15013b16, 0x13251085, + 0x35333736, 0x08105c23, 0x23302d85, 0x3ef70107, 0x1ba40d09, 0x01011212, 0xc01b1213, 0x092f0883, 0xc10f0127, 0x0f01010f, 0x09090180, 0x85bf2f0e, + 0x0f01230d, 0x26846060, 0x26861220, 0x01012f26, 0x01093e79, 0xff210e82, 0x23188700, 0xf9090de3, 0x01293983, 0x30020e00, 0xc009090e, 0x200d8580, + 0x05c3470f, 0x20212889, 0x06f75120, 0x01c0012d, 0x001100a0, 0x002c0027, 0x51000041, 0x1621059f, 0x09076d17, 0xe38c3720, 0x72452120, 0x25272605, + 0x35231533, 0x08874d01, 0x17161522, 0x3525cf82, 0x011d1617, 0x878a87e0, 0x54d12407, 0x48fc140d, 0x4020086e, 0x0f280983, 0x9090cffe, 0x0f011001, + 0x2805774d, 0xc0160210, 0x024e0216, 0x0bde68c0, 0x7f222783, 0xb1470d54, 0x14fc270d, 0x5050310f, 0xd484b0fe, 0x010f402d, 0x02021668, 0x024e6416, + 0x6a00fa02, 0xcf83087b, 0x22001528, 0x16010000, 0xe04f3117, 0x15212410, 0x59070621, 0x46480893, 0x0a475d09, 0x210ce658, 0x818da001, 0x2005ab4d, + 0x20ba8730, 0x21848201, 0x7c850300, 0x00800128, 0x00240015, 0xcf510032, 0x16212106, 0x21050864, 0xdd560706, 0x15332a05, 0x32331617, 0x2635013f, + 0x21838227, 0xa949021d, 0x06072605, 0x012f2223, 0x8a658300, 0x8380208d, 0xad3026fe, 0x11131310, 0x416b82ac, 0x058205c5, 0x241e8e25, 0x858d1f24, + 0x0df94184, 0x16000137, 0x8e0c0c8e, 0x02020e17, 0xac54010e, 0x0f01010f, 0x171775ac, 0x063f4e75, 0x4202c021, 0x532507b7, 0x00005c00, 0x06d54125, + 0x6d011d21, 0x352108f9, 0x0ab94234, 0xb9421520, 0x26032805, 0x2b263127, 0x44272601, 0xbd420515, 0x4235200a, 0x288506e2, 0x3637362c, 0x2627013b, + 0x16373627, 0xd2420617, 0x1ba32305, 0xa1831213, 0x2008d142, 0x339283c0, 0x0e090980, 0x11069230, 0x03291710, 0x16160f0f, 0x29030f0f, 0x21071b42, + 0x21836060, 0x21821020, 0x160d3d26, 0x9e3e1b15, 0x03830e83, 0xe542f920, 0x581c2006, 0x1b2005de, 0x2b09e442, 0x0e30010f, 0x01c00909, 0x0e0d1560, + 0x0e280282, 0x1201150d, 0xf0fe1b12, 0x30245283, 0x10010f01, 0x20820282, 0x0d0d1625, 0x850f0118, 0x0024084e, 0x00040000, 0x01c0ff10, 0x00c00170, + 0x002d000e, 0x00560044, 0x1f141700, 0x33171601, 0x36013f36, 0x15233537, 0x2a099c59, 0x31141716, 0x30333130, 0x82353031, 0x543720e4, 0x1e8505a7, + 0x4d512320, 0x093e5105, 0x59062721, 0x288505d2, 0x3c082a83, 0x0a120570, 0x0a103e10, 0xa0010412, 0x31304e50, 0x0d2b0101, 0xa008100f, 0x0d0f1008, + 0x3202012b, 0x0c604b31, 0x5e0b0d0d, 0x0c0d0d0b, 0x2101011f, 0x24373c21, 0x1f010125, 0x16172270, 0x22b18401, 0x83140e0d, 0x0a063ab7, 0x010d1a08, + 0x081a0d01, 0x0127270a, 0x333203c6, 0x0f304447, 0x01191a19, 0x3d048201, 0x4a452f0f, 0xfe023132, 0x14140efc, 0x14141616, 0x3030250e, 0x01022627, + 0x30362424, 0xd882b425, 0x820f2221, 0x0e14224d, 0x4453840d, 0x012105c7, 0x32ff82c0, 0x00360024, 0x01000040, 0x16171615, 0x1f161517, 0x42071601, + 0x3f2105ad, 0x069e6d01, 0x2008275d, 0x29198231, 0x15070631, 0x26210714, 0xfa83013d, 0x4a132321, 0x352606a4, 0x38000133, 0xdc822423, 0x06090f31, + 0x70fe0f07, 0x0906070f, 0x01012b0f, 0x56382324, 0x22080583, 0x1d1e2c28, 0x30012801, 0x1e1d0128, 0x1348102c, 0x131a1a13, 0xa0018013, 0x29290a12, + 0x3746213a, 0x820d0c13, 0x0d0d2d9b, 0x4637130c, 0x29293a21, 0x090e120a, 0x0e210082, 0x252f8340, 0x3d3d4a21, 0x4183214a, 0x82a0fe21, 0x553c8236, + 0x1c280c47, 0x55003e00, 0x81006d00, 0x3622c782, 0xc7823337, 0x06230383, 0x82152307, 0x27262303, 0x03822335, 0x35201782, 0x2005b15e, 0x441c8215, + 0x33231014, 0x82373635, 0x11172222, 0x82f58233, 0x830b822f, 0x23068336, 0x05232726, 0x820aef6a, 0x16152952, 0x23113317, 0x13310706, 0x16213685, + 0x20728317, 0x22288211, 0x82110706, 0x100f2ae4, 0x0f18010f, 0x180f0101, 0x250a8901, 0x14141f70, 0x154a5801, 0x10fe2107, 0x58290987, 0x1f141401, + 0x165848b0, 0x05dc4902, 0x02240585, 0x50fe5816, 0x2282108e, 0x0140a022, 0x27069876, 0xb0160240, 0x60010216, 0x7185668f, 0x54836020, 0x04830820, + 0x87e0fe21, 0x20012168, 0x08200983, 0x80220483, 0x144db0fe, 0x02302906, 0x28021616, 0x28180216, 0x0d840883, 0x56826820, 0x16025029, 0x1440c8fe, + 0x83010d0e, 0x0140246f, 0x82021688, 0x00782311, 0x67790003, 0x00182707, 0x003b002e, 0x25413700, 0x37362107, 0x41057641, 0x26220575, 0x0b5f012f, + 0x40c82121, 0xc8825583, 0x89021621, 0x53c82009, 0x0983090e, 0x26059445, 0x010f0130, 0x45010f40, 0x68200572, 0x3b84318e, 0x7855f820, 0x0fac5e11, + 0xff590220, 0x5a00200c, 0x02212cbb, 0x17795900, 0x20117960, 0x17f559c0, 0x2010de60, 0x060b5800, 0xc0010036, 0x2b001900, 0x58003d00, 0x00006a00, + 0x31373625, 0x17363736, 0x7905f050, 0x27290be2, 0x06310714, 0x26272223, 0x251f8227, 0x16173233, 0x2b833315, 0x8308c560, 0x06172119, 0x4406d35a, + 0x3623099b, 0x83171637, 0x11775c01, 0x00012908, 0x0b14131c, 0x0d0f1111, 0x281d1c11, 0x111c1d28, 0x1111100e, 0x1c13140b, 0x0e090930, 0x0109090d, + 0x0d090901, 0x6009090e, 0x15860786, 0x0e41d020, 0x01602929, 0x0f0d0a0a, 0x1212100e, 0x28057e45, 0x0e101212, 0x0a0a0d0f, 0x0cdb7101, 0x200bde60, + 0x29404130, 0xd3410520, 0x0a3f4108, 0x37263722, 0x20061e41, 0x06477b17, 0x07062722, 0x27220182, 0x3f413731, 0x1490394f, 0x22230e05, 0x23222c2c, + 0x1514050e, 0x1615070a, 0x15161f1f, 0x40150a07, 0x26473e41, 0x25150a31, 0x82161615, 0x050a2204, 0x08f15f14, 0x62bf0521, 0x3c41171b, 0x0843452a, + 0xc001002d, 0x23001100, 0x49002e00, 0x5b005b00, 0x534205f9, 0x4133200c, 0x07201037, 0x4a099052, 0x045e0530, 0x11ac7b14, 0x47429020, 0x41e0200d, + 0x28200d26, 0x20098156, 0x296142b8, 0x0b41f020, 0x08e87417, 0x640c6564, 0x00231c71, 0x820d0000, 0x02003e03, 0x00800140, 0x00210014, 0x003b002e, + 0x00550048, 0x006f0062, 0x0089007c, 0x00a30096, 0x163b7fb0, 0x27089558, 0x11171621, 0x07062325, 0x2806144b, 0x33172726, 0x26353736, 0x21128527, + 0x0c97013b, 0x338b3720, 0x40bf0520, 0x408b0720, 0x64000221, 0x3a640526, 0x6410200d, 0x0f2b062e, 0x010fc001, 0x0b187cfe, 0x840b0101, 0x89382004, + 0x9450200a, 0x8968200a, 0xc0fe2115, 0x3c2537b5, 0x01010fe0, 0x2104840f, 0xca4a8001, 0x121b230f, 0x1b4c0112, 0x00012105, 0xff222683, 0x9a86e800, + 0x30206c82, 0x09930a89, 0x50201e8a, 0x582334b3, 0x83100f01, 0x4c048273, 0xdb670653, 0x00222205, 0x243b5c2b, 0x17160328, 0x11373621, 0x145c1121, + 0x05d5461e, 0x5ca0fe21, 0xa1542100, 0x00012205, 0x208f82ff, 0x08f34403, 0x8f821020, 0x91823d20, 0x631f3621, 0x2725067e, 0x34013d26, 0x2d7a6237, + 0x0d0cbc2c, 0x900b0b90, 0x0c0c0c0d, 0x74434401, 0x2d013129, 0x07580807, 0x58080d0d, 0x0e070606, 0x6d070db1, 0x2029b545, 0x0a474800, 0x20000a27, + 0x00002d00, 0x094f4425, 0x4d05fe46, 0xb14d103a, 0x06212808, 0x16380107, 0x53160202, 0xfe200537, 0x21213148, 0xa35a02d8, 0x48882006, 0x9b8b2125, + 0x2f001926, 0x00003c00, 0x6019ff62, 0xaa9c05f2, 0xf562d420, 0x48d42013, 0xeb6220e4, 0xa2f42012, 0x05e348bc, 0xbf014030, 0x45002200, 0x27010000, + 0x1f060726, 0x05822301, 0x2c075b79, 0x013b3637, 0x16170607, 0x013f3217, 0x05f04d36, 0x23061526, 0x11272621, 0x36251882, 0x23272637, 0x14441822, + 0x3523080c, 0x39022726, 0x0e101290, 0x3ea4640f, 0x02012c2d, 0x01021616, 0xa42c1d1e, 0x070e0f64, 0x9007090a, 0x82d10708, 0xfe072d11, 0x010107f0, + 0x02163807, 0x18381602, 0x22053d43, 0x83100118, 0x02350809, 0x87310116, 0x10120e0e, 0x2d2c025f, 0x01165740, 0x2c581501, 0x105f1e1e, 0x07010711, + 0x0a0a0887, 0x1502f107, 0x0601072f, 0x02070e01, 0x10021515, 0xf1fe1710, 0x22428517, 0x82182f17, 0x000021d2, 0x2a09bb63, 0x00240011, 0x0051003f, + 0x7f072500, 0xc68205af, 0x0f161728, 0x31070601, 0x7c4d2227, 0x46441805, 0x2d094309, 0x9133012d, 0x04090a10, 0x910d0538, 0x830a0a0f, 0x49342007, + 0x0a250801, 0x0e0a0909, 0x12b36a01, 0x2d177f6a, 0x0a04387b, 0x0d910f0a, 0x09043805, 0x0782100a, 0x91696520, 0x2a2c430c, 0x2009734b, 0x29fb820f, + 0x01000031, 0x06070623, 0xe682011f, 0x2723fb82, 0x59372726, 0x11381956, 0x16213736, 0x40011117, 0x04080fc0, 0x0a086009, 0x0a60080a, 0x400f0706, + 0x420bec50, 0x8d510757, 0x40013008, 0x0001010f, 0x0b0f0d01, 0x68080868, 0x510d0f0b, 0x94441502, 0x06984b06, 0x860ad343, 0x26132fa7, 0x010f2223, + 0x17161706, 0x36373633, 0xa7a1012f, 0xa084f220, 0x0705092a, 0x070fc00e, 0x8e5f0a06, 0x1020a6a1, 0xad84a186, 0xa9519020, 0x93a68e13, 0x06072ba7, + 0x17161507, 0x36013f16, 0xa7a33435, 0x0f0bc824, 0x7184010d, 0xb8207d82, 0x3222a4a1, 0xd282060a, 0x06061123, 0x0582410a, 0xa7a36e20, 0x6a000221, + 0x1623079f, 0x52002700, 0x33250651, 0x16011f32, 0x0afd5b15, 0x23110128, 0x3d262722, 0xd3522301, 0x83002007, 0x1aa6245b, 0x47135a13, 0x502b0a52, + 0x09090e50, 0x01010fa0, 0x8200010f, 0x1b802405, 0x82011212, 0xfe1b2221, 0x089653db, 0x80fe8028, 0x09092001, 0x6c52500e, 0x82002007, 0x88042000, + 0x00152683, 0x00310026, 0x0ff1543c, 0x37362128, 0x34113736, 0x08540327, 0x17142d09, 0x11013b16, 0x33171627, 0x27263736, 0x17209782, 0x0d860382, + 0x4a6d0125, 0x88b51b13, 0x84002073, 0x011d2487, 0x8200ff0f, 0xa00f2195, 0x4f247e82, 0x901602ef, 0x2006064a, 0x240887a8, 0x63011602, 0x20cf844a, + 0x83ba84fe, 0x350125d9, 0x9dfe131b, 0x8022d284, 0xdf83020e, 0xa8e0fe22, 0x6007f05b, 0xfb700895, 0x00a02d0a, 0x00800014, 0x22231300, 0x011d0607, + 0x322ca584, 0x013d3637, 0x27262734, 0x31272605, 0xfd59ab82, 0x07062405, 0x66300706, 0xee6705a3, 0x05b95e05, 0x6e163321, 0x0721052b, 0x82158206, + 0x05fd670c, 0x21050667, 0x1c820706, 0xf06f1720, 0x15142805, 0x22230706, 0x8226012f, 0x065352f6, 0x34204084, 0x21062b5c, 0xaf4a4060, 0x08068605, + 0x01a0013f, 0x641c1313, 0x2112130f, 0x070f0e22, 0x090c0c0e, 0x0816020d, 0x0e0e1f07, 0x05050506, 0x05050c0b, 0x030e0606, 0x118a1503, 0x14110102, + 0x05050102, 0x06070e02, 0x03010105, 0x0c020102, 0x3404820e, 0x20283411, 0x16080625, 0x2d240a02, 0x131b3438, 0x011c0312, 0x2a028201, 0x0101011d, + 0xdf0d0909, 0x8209080e, 0xde320806, 0x0109090d, 0x13131c24, 0x1b142701, 0x01011514, 0x22151312, 0x0806100f, 0x0502160e, 0x1219181a, 0x0108080e, + 0x06070706, 0x06181514, 0x03011606, 0x75821011, 0x050b2f08, 0x03100904, 0x0c040502, 0x06040408, 0x1304040e, 0x02020203, 0x1b180211, 0x0b160205, + 0x01201c08, 0x1a121101, 0x04052314, 0x08082314, 0x6b722414, 0x00a02d09, 0x007b0014, 0x34353700, 0x012b2627, 0x28097441, 0x35363716, 0x26353625, + 0x05bb6627, 0x23272627, 0x06010f06, 0x05914615, 0x16013b25, 0x83151417, 0x1716230d, 0x56410706, 0x86118205, 0x07062609, 0x14070623, 0x08884117, + 0x83262721, 0x83138701, 0x36172117, 0x34225d82, 0x06823327, 0x27263726, 0x0e090980, 0x240a6d41, 0x01016201, 0x3602821c, 0x1b131203, 0x242d3834, + 0x0816020a, 0x28202506, 0x01021134, 0x820c0e02, 0x033a0804, 0x06060101, 0x05010e07, 0x14020105, 0x11020111, 0x0303158a, 0x0506060e, 0x04090c05, + 0x18130705, 0x02160f17, 0x0c0b1609, 0x0e0e0907, 0x13122120, 0x131c640f, 0x1d010113, 0x6441e0a0, 0x82df2005, 0x012e0806, 0x3b0e0809, 0x14230808, + 0x14230504, 0x0111121a, 0x081c2001, 0x0502160b, 0x1102181b, 0x03020202, 0x0e040413, 0x08040406, 0x0106060b, 0x58820e04, 0x03150b24, 0x1a821002, + 0x06061523, 0x08fd821a, 0x06070722, 0x04050101, 0x1a1a3014, 0x080b1602, 0x12141412, 0x01100f19, 0x1b141501, 0x13012615, 0x14231d13, 0x08089b43, + 0xbf01ff33, 0x43003200, 0x67005500, 0x27250000, 0x26273637, 0x2726022f, 0x27010f26, 0x0f060726, 0x06070602, 0x0607011f, 0x021f1617, 0x3f161716, + 0x33161701, 0x05337332, 0x0f273629, 0x2f072702, 0x82273701, 0x82372015, 0x54172024, 0xfa5707bd, 0x6b152009, 0x01391005, 0x0b3030f9, 0x53140807, + 0x1312050e, 0x11454511, 0x0e051213, 0x07081453, 0x23178d0b, 0x07080b0a, 0x64271988, 0x12535312, 0x873a3a64, 0x30c92407, 0x18011f1f, 0x21099440, + 0x3158301f, 0x8b7b200f, 0x2f2f2158, 0x2f237095, 0x8703072f, 0x850e2088, 0x5254215e, 0x52220785, 0x5e83c454, 0x1f276684, 0x202e2f20, 0x58b00120, + 0x1121055a, 0x20078201, 0x206f831a, 0x24008200, 0xff200002, 0x2b1a82e0, 0x002800a0, 0x2500003a, 0x23062322, 0x22055964, 0x42363736, 0x2221065d, + 0x09884207, 0x84373221, 0x7a232017, 0xa2420913, 0x23063805, 0x0101a601, 0x31491111, 0x17010232, 0x01062a17, 0x0c090701, 0x7e3f090b, 0x1e2e0511, + 0x3f32331d, 0x202d2d34, 0x06030304, 0x24834ba6, 0x3420203d, 0x2b010121, 0x201e442b, 0x32010344, 0x28304b31, 0x07041829, 0x01020206, 0x821e1e01, + 0x323f2d2e, 0x011e1d33, 0x06271616, 0x02340506, 0x3a2a2082, 0x35132d2c, 0x39394c41, 0xc3460b17, 0x0014240a, 0x4e310021, 0x0329238f, 0x06010f26, + 0x011f1415, 0x24c38216, 0x01272635, 0x20b74680, 0x00487e20, 0x48012009, 0x01212403, 0x07e14616, 0x07060a27, 0x070fc00f, 0x20008200, 0x08af4c03, + 0x2c001124, 0x596c3e00, 0x52212013, 0xa0282bb3, 0x291b1b01, 0x011b1b29, 0x60200788, 0x2029b64c, 0x82388cc0, 0x29884948, 0x0b470620, 0x000c2d08, + 0x00260019, 0x00490033, 0x13000061, 0x25057156, 0x26230706, 0xe15e3527, 0x066f5605, 0x19980720, 0x5619e24c, 0x33740b50, 0x01582507, 0x010f300f, + 0xc0200484, 0x0c820786, 0x1594c020, 0x01e8fe27, 0x011b1212, 0x07504300, 0x0984ff20, 0x0f013023, 0x07385650, 0x4d4f5020, 0x20058205, 0x204c8958, + 0x204c8910, 0x64159490, 0x80470937, 0xfe802409, 0x56010f80, 0x5b720a24, 0x000f2105, 0x07200082, 0x34082b41, 0x002f0014, 0x004b0043, 0x0065005c, + 0x0500007b, 0x33353736, 0x081c7515, 0x16260b82, 0x22032117, 0xc2483127, 0x23152105, 0x29058757, 0x16011f32, 0x3523011d, 0x14770723, 0x5e232008, + 0x362b059d, 0x26173337, 0x33152327, 0x82013f36, 0x1716230b, 0x4e841716, 0x27262323, 0x07655135, 0x18371521, 0x210ca442, 0xff570706, 0x40012105, + 0x290c035d, 0x010f0130, 0x090e4000, 0x1686a009, 0x131aa628, 0x5030135a, 0x7b4c18a8, 0x08182f05, 0x010f0f01, 0x18180f01, 0x08081602, 0x2f820216, + 0x80531820, 0x0f182407, 0x83082001, 0x9008211c, 0x20210583, 0x85058420, 0x1030252f, 0x20200f01, 0x84078041, 0x4930201a, 0x80200557, 0x26087749, + 0x01402025, 0x8318100f, 0x233a8469, 0x38010f80, 0x02226182, 0x48822816, 0x140e0d22, 0x24055541, 0x0170800f, 0x21b4820f, 0x59838060, 0x04832020, + 0x1f823020, 0x2d820f20, 0x20075743, 0x05bf7401, 0x49128b5e, 0x26221999, 0x1d460627, 0x011f2705, 0x3f361716, 0x05841701, 0x26273622, 0xa0491582, + 0x07783c22, 0x18071010, 0x1416091a, 0x11063005, 0x19190710, 0x06111007, 0x16140530, 0x49181a09, 0xc82b25a7, 0x0f01010f, 0x05144e46, 0x83901609, + 0x4848210a, 0x90260583, 0x14050916, 0x3344464e, 0x20dbb308, 0x05f14e07, 0x5d060721, 0x05830568, 0x2f363724, 0xdd823701, 0xdba20720, 0x25256a34, + 0x0c10130f, 0x100c2d2d, 0x080b0707, 0x0b082526, 0x0f850708, 0xa50f1321, 0x30d730db, 0x0f0c1030, 0x13393913, 0x3009050f, 0x85050930, 0x100c210b, + 0x0420d783, 0x200c4f4b, 0x06a34f39, 0x4b10247c, 0xcc53134f, 0x37362205, 0x8e481835, 0x23172208, 0x08a55535, 0x8729dba2, 0x02010f48, 0x2c021616, + 0x28048222, 0x1f161704, 0x0c2c2c04, 0x20008208, 0x23d8a50c, 0xa80f01e0, 0x2805fd7c, 0x1e231718, 0x68011313, 0x05a56438, 0x2210274c, 0x4c4e003c, + 0xda762927, 0x17063208, 0x32013b16, 0x012f3637, 0x32272326, 0x35363137, 0x05745e34, 0x17141524, 0xe0a23316, 0x0407782f, 0x07040c28, 0x042f0408, + 0xc4070404, 0x23058208, 0x5708034b, 0xa50b1d56, 0x069c29e9, 0x0606123c, 0x07080746, 0x70220282, 0x54180406, 0x00200c6a, 0x2a090746, 0x002a0015, + 0x0034002f, 0xa24b0040, 0x353322ef, 0x052a5f33, 0x70031121, 0x35230748, 0x82072315, 0x361722f6, 0x20f58237, 0x05765c07, 0x06171622, 0x221ea942, + 0x82304030, 0x9f4f2291, 0x2f008340, 0x1213051f, 0x12131f1f, 0x20101f05, 0x0f01010f, 0xe69f0484, 0x4d101021, 0x0124052f, 0x40202060, 0x752a0282, + 0x0116161e, 0x1e161601, 0xc3449075, 0x010f2105, 0x43067351, 0x39220883, 0xe3a25800, 0xfb4d1420, 0x07795605, 0x6b481720, 0x07262206, 0x4be68317, + 0x302105d2, 0x240b8231, 0x30373233, 0x08cc7237, 0xa020f09e, 0xa32dee83, 0x010b2c24, 0x242c0b01, 0x01060706, 0x23048201, 0x0209093f, 0x8205a05a, + 0x06052c06, 0x05010507, 0x02010b0c, 0x82020d0d, 0x242e4e06, 0x0124bc3a, 0x010b380b, 0x03030525, 0x03088808, 0x0b010603, 0x0e0e010b, 0x0f0e1718, + 0x052c0982, 0x13060105, 0x14221e13, 0x0a0a0114, 0x20106f45, 0x290d4148, 0x31273422, 0x260c004d, 0x3d363732, 0x4e161701, 0x0f22067b, 0xdb423501, + 0x095f2422, 0x42600e09, 0x068305c9, 0x06072c23, 0x20028207, 0x1fe8412c, 0x2005e641, 0x823889a0, 0x1f112746, 0x08040304, 0x05820866, 0x5b701f20, + 0x01c02b07, 0x00c00180, 0x00260010, 0xd9820037, 0x0f263723, 0x05615201, 0x64063c45, 0xf44f1202, 0x066b4c14, 0x3f32333a, 0x012f3601, 0x0ea20726, + 0x0c0c300e, 0x08080630, 0x220c0c06, 0xcb0b0b22, 0x2020ff4f, 0x21288371, 0x32830c0c, 0x0e223a83, 0x4082be0e, 0x06284682, 0x220e0e06, 0xa50e0e22, + 0x20230850, 0x222b85be, 0x84300606, 0x05b34380, 0x82000221, 0x05bb68e3, 0x56004b30, 0x00006800, 0x06071625, 0x0706012f, 0x4c542726, 0x27262205, + 0x3ae98236, 0x011f3637, 0x17163736, 0x16173637, 0x1716010f, 0x27170706, 0x27222306, 0x82171607, 0x8237201e, 0x1516232c, 0x0b820714, 0x82273121, + 0x3336231a, 0x13821732, 0x26033125, 0x82373435, 0x17162210, 0x1851823f, 0x380e3347, 0x0f0fd001, 0x440c1110, 0x0c445f5f, 0x0e0e1111, 0x0202390c, + 0x0e0e0c39, 0x23138711, 0x0b0f0f10, 0x0b351383, 0x1b1b169f, 0x4b365016, 0x9f50364b, 0x0d502c01, 0x012c500d, 0x860c82d0, 0x84532016, 0x20188210, + 0x080b5c53, 0x2106a45f, 0x43881111, 0x5c206b9d, 0x56894288, 0x6a87d020, 0x89fffe21, 0x7c61207f, 0x13440f25, 0x01ff3707, 0x001a00c0, 0x0022001e, + 0x01000026, 0x06010726, 0x011f1615, 0x73471415, 0x375d080b, 0x0f273613, 0x03252701, 0x37071735, 0x01033727, 0xfe0d0df6, 0x0e010c30, 0x05050d99, + 0x636f0607, 0x06060504, 0x0340020a, 0x68bb850c, 0x2f9a2301, 0xe1b1be2f, 0x08bc0130, 0x08f8fe07, 0x40060f0e, 0x03070e72, 0x02294704, 0x010b0603, + 0x73090fb0, 0xfea62bd1, 0x1e1331bb, 0xfefa4a16, 0x092348bc, 0x052c8b83, 0x37002000, 0x17370000, 0x07273733, 0x5e088e5c, 0xb26305f3, 0x27262309, + 0x6a652713, 0x26073705, 0x36273727, 0x16371737, 0x06170717, 0x601fb107, 0x4e4f4e1e, 0x40183947, 0xec740995, 0xb4483d0a, 0x17161e68, 0x681e1617, + 0x21550517, 0x53532a1e, 0x55211e2a, 0x5bdb1606, 0xe539395b, 0x3e10794c, 0x3a3a4747, 0xfe012223, 0x05630197, 0x26016305, 0x22623c2f, 0x123e3f13, + 0x2f3c6222, 0x6e070026, 0xa02e0647, 0x2e001e00, 0x44003900, 0x5a004f00, 0xbf4d6f00, 0x82062008, 0x7f11209a, 0x5b180639, 0x13280b95, 0x06310714, + 0x35362123, 0x2006d055, 0x09525327, 0x0a893320, 0x15930720, 0x52012f21, 0x232612f0, 0xd0fec801, 0x10481018, 0x02240805, 0x01021616, 0x011f1414, + 0x19192560, 0x100f0101, 0x0b0c0818, 0x04e4fe11, 0x30010701, 0x40c80107, 0x16020216, 0x90200484, 0x08210a9f, 0x056a44c0, 0x01210686, 0x214d83a0, + 0x4083c0fe, 0x83280121, 0xd8fe2b05, 0x0114141f, 0x25191901, 0x7f833001, 0x1198fe2e, 0x0d0b0c0b, 0x01074001, 0xd0fe0701, 0x6c08b15d, 0x897008bd, + 0x51f0200f, 0xdb660dd2, 0x01802f08, 0x002100c0, 0x00400030, 0x1300004a, 0xb5643736, 0x011d2207, 0x08d86416, 0x50791720, 0x07c06409, 0x0607222b, + 0x35073107, 0x33070617, 0x0e581817, 0x17312107, 0x2208d564, 0x474424b8, 0xdc6405fc, 0x03072206, 0x09237958, 0xe526913c, 0x1e1d0113, 0x181d102c, + 0x2f3e0d18, 0x3db12007, 0x070fe2fe, 0x2b0f0906, 0xe064e001, 0x39492207, 0x06c9640c, 0x2308e964, 0x0f450c0b, 0x3308fb78, 0x2cb31d72, 0x1e2c2132, + 0x0f0e011d, 0x250b5517, 0x0130323b, 0x20050565, 0x06e964d7, 0xb7620320, 0x775a200c, 0xa6690ce1, 0x19b57c07, 0x3930033c, 0x32313001, 0x36371617, + 0x30272627, 0x06070631, 0x16171415, 0x30313017, 0x13833631, 0x23060724, 0x42183130, 0xb27c07d3, 0x21013c29, 0x0e111117, 0x3435250e, 0x26252526, + 0x0e253534, 0x1711110e, 0x17182021, 0x7c201817, 0x012e2ba8, 0x0d0e1720, 0x01251111, 0x33272501, 0x07832733, 0x0d11112a, 0x1917170e, 0x17192020, + 0x260c9b7c, 0x00210014, 0x50630042, 0x252023ed, 0x2321ef84, 0x48ed8222, 0xfd82056d, 0xe787e982, 0x33173222, 0x305f209f, 0x10dd2b23, 0x1d0f0f11, + 0x1c1d2726, 0x06831d01, 0x110e0e27, 0x13140e11, 0x2300820e, 0xc00f1314, 0x53591d9c, 0x83c22023, 0x1c1c2450, 0x8228281c, 0x845a8204, 0x83142058, + 0x93688205, 0x82002017, 0x00043600, 0x02e0ff20, 0x00a00120, 0x002d0015, 0x005f0052, 0x37341300, 0x054d6f31, 0x14011d22, 0x7d08c36d, 0x352005cf, + 0x6d086d72, 0x332a06da, 0x36272627, 0x16373637, 0x38642117, 0x07062205, 0x05b94911, 0x21272624, 0x1e530706, 0x17112105, 0x0cd54418, 0x0e090923, + 0x05f94380, 0xa0240683, 0x0112121b, 0x83067755, 0xf020210f, 0x2605d54e, 0x58010f15, 0x6814160e, 0x01290684, 0x16140e0d, 0x0fa8fe0e, 0x2e118515, + 0x01081530, 0x15150846, 0x08bafe08, 0x48200115, 0x60260cb3, 0x121201a0, 0x0449201b, 0xcc202109, 0x5a873687, 0x8fe8fe21, 0x1801245a, 0x83fafe09, + 0x06012150, 0x00200583, 0x0a200082, 0x22089778, 0x61470036, 0x7f3106d5, 0xc300b600, 0xdf00d000, 0x32130000, 0x17163117, 0x22fd8233, 0x56171633, + 0x15200576, 0x15290882, 0x07060706, 0x27262722, 0x21088223, 0x08822623, 0x43533420, 0x35262c05, 0x37363736, 0x37361531, 0x82222726, 0x3130241c, + 0x82143130, 0x83252031, 0x1716280c, 0x35343736, 0x61312726, 0x17200c87, 0x06241283, 0x32171607, 0x25226682, 0x2e830706, 0x31323523, 0x250d8216, + 0x26252726, 0x7da73527, 0x5c623320, 0x86232008, 0x2070857d, 0x215a8505, 0x5b832726, 0x65830520, 0x31353422, 0x163a0d83, 0x14403117, 0xca071010, + 0x14101007, 0x0112121b, 0x12120b0b, 0x12010b0b, 0x16961b12, 0x010f2308, 0x01020c01, 0x0d03010f, 0x02014001, 0x0f01010c, 0x0f01030d, 0x190aca3b, + 0x09ca0a19, 0x4b091a1a, 0x23870d03, 0x83b0fe21, 0x8201201b, 0x82012031, 0x08972331, 0x66a1450f, 0x46863020, 0x82792e21, 0x215f8632, 0x0b89a0fe, + 0x854d0121, 0x2163837d, 0xae8dc001, 0x5e956a20, 0x50201688, 0x0224ac85, 0x20010c01, 0x2823a589, 0x836a0a19, 0x0a6a23b8, 0xd189c819, 0xe6851020, + 0xe8820120, 0x18010f25, 0x41100e12, 0x67960a16, 0x86252521, 0x0f182146, 0x41833584, 0x0a89e020, 0xc4891020, 0x240aab55, 0x00280015, 0x0cbd4432, + 0x2705c552, 0x26272635, 0x27260127, 0x3105dc47, 0x07062315, 0x23150706, 0x06252726, 0x37363507, 0xff820633, 0x2d0aac55, 0x381c28e8, 0x1201011b, + 0xb5fe1b12, 0x43620104, 0x18583105, 0xc0010f10, 0x15010209, 0x07010f0b, 0x380b0257, 0x2b065e44, 0x12121cc1, 0x381b0101, 0x1be8271d, 0xfe260982, + 0x01090275, 0x3582103f, 0x0f01c030, 0x01581810, 0x020b0904, 0x0f010757, 0xdb70380b, 0x821c200a, 0x003f25a5, 0x36331700, 0x8207ac53, 0x2726218c, + 0x8d828b82, 0x15239e83, 0x18131716, 0x2009cb4a, 0x85af8315, 0x0ce76421, 0x53e04021, 0x10700658, 0x40402108, 0x0f21ca82, 0x88bb8360, 0x83088413, + 0x060a642a, 0x0f011023, 0x089b7840, 0x30201c84, 0x90201985, 0x3a8dc083, 0x1985f020, 0x68820f20, 0xbf850020, 0x01800125, 0x822700c0, 0x003b26bf, + 0x37361300, 0x05085421, 0x010f0623, 0x079e6a17, 0x27262122, 0x3524c582, 0x27013f36, 0x232ed282, 0x13312726, 0x012f2633, 0x06072207, 0x32823107, + 0x15233536, 0x00331714, 0x50011602, 0x16020216, 0x522a0208, 0x08022a52, 0xfe210b83, 0x251184b0, 0x51512c01, 0x1182012c, 0x05b86431, 0x01515205, + 0xb8030601, 0x14e00113, 0x5ca801b8, 0x1327057f, 0x52512e3e, 0x48133f2c, 0x132607bb, 0x51522c3f, 0x0f823e2e, 0x0798fe31, 0x01525205, 0x00010605, + 0x1313221b, 0x8b001b22, 0x002627b7, 0x003a0030, 0xb4a20100, 0x0320da82, 0x1522b082, 0xbb823533, 0x36373523, 0x22b68237, 0x71011f16, 0xb39b050e, + 0xa829d783, 0xe0011e51, 0x52521d01, 0x2306821d, 0xc001511e, 0xb499a883, 0xfe021634, 0x2b1e52de, 0x1e2b1313, 0x1f514452, 0x2b14142b, 0xa682511f, + 0x20080f76, 0x270c826b, 0x22232726, 0x012b2607, 0x27200482, 0x8305c042, 0x1714219e, 0x445d9482, 0x013d2c05, 0x2f222722, 0x35272601, 0x82013f34, + 0x24b28212, 0x16333736, 0x201d8417, 0x82c18234, 0x1716230b, 0x56743736, 0x30172205, 0x08974631, 0x22840720, 0x673d3621, 0x21080536, 0x79012726, + 0x060d2315, 0x0e181305, 0x22120606, 0x12121b10, 0x011e2101, 0x23150c0c, 0x070a1502, 0x00820108, 0x01133824, 0xca50110f, 0x0f103805, 0x0b0e0201, + 0x09040404, 0x04040f0e, 0x0304050b, 0x04120d08, 0x820f0d04, 0x0d0d222a, 0x08328416, 0x01012f2e, 0x011f1314, 0x01011b7c, 0x011a010f, 0x1b121201, + 0x291b1d32, 0x1415184f, 0x1665140c, 0x0a070702, 0x1f010182, 0x134f170c, 0x0f2c100c, 0x90202582, 0x5a820483, 0x04020a26, 0x0a010105, 0x022e7482, + 0x0c0d0203, 0x0b070801, 0x16161b82, 0x3484840d, 0x412b6c3a, 0x15141f82, 0x00020002, 0x01c0ff00, 0x00c001e0, 0x0069002e, 0x07220100, 0x24055071, + 0x07062726, 0x052e4126, 0x3023262e, 0x06313031, 0x14070607, 0x1716011f, 0x220b3977, 0x82070617, 0x26232418, 0x4a26012f, 0x208205d6, 0x37323322, + 0x55057475, 0x372305bc, 0x82151716, 0x86138909, 0x01440809, 0x07060698, 0x0a181213, 0x29291409, 0x1e0a0914, 0x08011415, 0x17162208, 0x1e521501, + 0x212c2727, 0x02363751, 0x1f141401, 0x29280218, 0x3045223c, 0x0a0b0950, 0x1b0a0d0a, 0x01070303, 0x01161502, 0x010e0e04, 0x0f200886, 0x18831088, + 0x01700125, 0x780e0d16, 0x7a2109dc, 0x08b58202, 0x181f2226, 0x11112057, 0x51373602, 0x14141fa8, 0x293df001, 0x32010228, 0x100d0a56, 0x1d0a0708, + 0x16c90801, 0x98160202, 0x0d214982, 0x200983b9, 0x200983b8, 0x24138498, 0x0d02020d, 0x20098369, 0x0ab35fa8, 0x30008024, 0xe7797500, 0x010f2111, + 0x27051954, 0x16170607, 0x0623011f, 0x24051e5e, 0x37333233, 0x05f54d15, 0x27262724, 0x01823534, 0x35200782, 0x22056552, 0x82223122, 0x23062d25, + 0x3f362726, 0x36373201, 0x012f3435, 0x372c2482, 0x1f323736, 0x36331601, 0x012f2637, 0x240cdc79, 0x0e012307, 0x08be8362, 0x0c1f123b, 0x2f181415, + 0x80101a2a, 0x13170d0c, 0x100c0813, 0x0a02190f, 0x0113131e, 0x1f151501, 0x01590203, 0x1415021b, 0x0218011f, 0x0101100b, 0x02010507, 0x2103010e, + 0x03212221, 0x08ec8218, 0x0603a321, 0x0e920a06, 0x0d060703, 0x03ea0405, 0x01020e03, 0x0d10410a, 0x0c172f13, 0x1b010b20, 0x7963291b, 0x2e080dce, + 0x0d042f13, 0x1923160c, 0x03010919, 0x1f1d1415, 0x08061514, 0x141e1623, 0x02300113, 0x06060117, 0x06050c01, 0x040d0d11, 0x010f0904, 0x82020302, + 0x03163861, 0x0904030b, 0x0534040b, 0x07080912, 0x01550201, 0x050b0d02, 0x790f1317, 0x272405c5, 0x00011a1a, 0x04840082, 0x01000228, 0x00500080, + 0x4d592500, 0x2f342d05, 0x012b2601, 0x17140706, 0x16013b16, 0x28054765, 0x22012b06, 0x16150607, 0x056b6217, 0x07060729, 0x27352726, 0x82272623, + 0x36372601, 0x3f32013b, 0x05d15f01, 0x37262723, 0x08018236, 0x1f16332b, 0x02151601, 0x16160200, 0x0f760902, 0x0104f21b, 0xa10f0a0a, 0x080f111b, + 0x0e0e050a, 0x0a0f6011, 0x9d04010a, 0x0a4e0608, 0x2a238301, 0x0f16953d, 0x1801010f, 0x82602418, 0x01320829, 0x23a20301, 0x01011819, 0xf3160f0f, + 0x11771e32, 0x02165c74, 0x105c1602, 0x0115ab0c, 0x0b0a0f03, 0x1a161501, 0x0a0a101e, 0x030f0a0b, 0x083a0501, 0x1f830d0c, 0x2f012c08, 0x160e0e01, + 0x04191923, 0x0202031d, 0x16231919, 0x01010e0e, 0x1f19aa29, 0x20000200, 0x2002c0ff, 0x5300c001, 0x00008900, 0x651f3213, 0x3328062a, 0x17161732, + 0x14010f14, 0x22056b60, 0x82343130, 0x201382bd, 0x46138215, 0x604305c2, 0x3736220c, 0x200f8734, 0x05224236, 0x27353430, 0x37363526, 0x22353336, + 0x07063107, 0xad431714, 0x05c14306, 0x2908eb61, 0x3536013f, 0x07262726, 0xe4432322, 0x0f062305, 0x09832701, 0x11eb3f08, 0x0c052f07, 0x0620040c, + 0x08070b12, 0x021d0101, 0x19030a0d, 0x0b0e0505, 0x30010808, 0x2d22220b, 0x4c2f3f31, 0x0a080808, 0x02330909, 0x0a010703, 0x08080124, 0x2007100b, + 0x020d0a04, 0x0c82012b, 0x171b0a2e, 0x19010217, 0x03011515, 0x1f070718, 0x33080782, 0x523d4b18, 0x2f2f3e31, 0x0202300f, 0x0116191a, 0x16150901, + 0x14131a14, 0x070d0506, 0x011a1313, 0x0db81390, 0x07149c0d, 0x03040c06, 0x0d02018c, 0x03680b01, 0x0f826e82, 0xcc04032b, 0x011b1b2c, 0x08472b01, + 0x3781820a, 0x01023107, 0x7b222407, 0x060c0403, 0x6a130107, 0x020e010b, 0x0304a502, 0x2c080d82, 0x24121330, 0x13020404, 0x0a0b2212, 0x15010152, + 0x171e1f16, 0x01013847, 0xcc3d2525, 0x11280909, 0x0d1d0111, 0x1b10100c, 0x0f193617, 0x05d3700f, 0x01c00131, 0x000a00c0, 0x00430015, 0x0086007b, + 0x68063700, 0x26220680, 0x0a893327, 0x35463720, 0x09397c07, 0x22072622, 0x4505a34e, 0x32220604, 0x6b4b3637, 0x17272106, 0x0726c582, 0x26012b06, + 0x8641012f, 0x82362005, 0x82332023, 0x013d2820, 0x17163736, 0x18171415, 0x82084d62, 0x013b2614, 0x17161716, 0x20178233, 0x20708927, 0x050176d0, + 0x0f012e08, 0x02010f40, 0x02020f0d, 0x2316690e, 0x1306050e, 0x14010b19, 0x141f1f14, 0x08110114, 0x12122201, 0x20164e0e, 0x0a6d2420, 0x201e2b09, + 0x081a8201, 0x14171e31, 0x03041f13, 0x4f1f346d, 0x08070104, 0x1c090806, 0x03090805, 0x16150204, 0x04081002, 0x100d0e05, 0x050a0405, 0x0e070404, + 0x0f040313, 0x8202170e, 0x05804661, 0x0f01a023, 0x8c768360, 0x1a572404, 0x740f0101, 0x3908080d, 0x020107a9, 0x171a1515, 0x101d6813, 0x20080310, + 0x1e6e3223, 0xb7021415, 0x0615161e, 0x68290101, 0x050c0706, 0x260a0105, 0x05050606, 0x020216f8, 0x030d8316, 0x01050401, 0x38820a01, 0x0c020328, + 0x1702010c, 0x6789606e, 0x00060036, 0x01c1ff20, 0x00c001e0, 0x003b0030, 0x0057004d, 0x00920087, 0x2a057746, 0x36370722, 0x26273435, 0x42072227, + 0xc5420599, 0x22068206, 0x7d16011d, 0x163719b3, 0x07151417, 0x31302726, 0x0f223130, 0x37363701, 0x32373607, 0x8207011f, 0x23132449, 0x7c012f22, + 0x32250515, 0x32333237, 0x28b78217, 0x0706010f, 0x33161716, 0x26298232, 0x37363336, 0x84321716, 0x7d668203, 0x26080cb6, 0x140b0d9c, 0x0b0e121c, + 0x21131401, 0x0514131b, 0x2b160404, 0x0114141f, 0x0b133207, 0x2e1b010b, 0x4b4f3a2d, 0x82023231, 0x1c33081e, 0x1213015c, 0x13120202, 0x03154801, + 0x070d0b18, 0x05180b06, 0x1602a913, 0x313d070f, 0xe1010237, 0x2e21294f, 0x69100209, 0x01010201, 0x01080709, 0x82143a10, 0x05093a08, 0x0f0f1002, + 0x0d250110, 0x0b0d1e13, 0x10031d13, 0x32232307, 0x12120280, 0x084f8302, 0x0420012d, 0x45080113, 0x161c0605, 0x11110115, 0x2809151b, 0x15140101, + 0x680f101e, 0x15111109, 0x24162350, 0x32320123, 0x131d6c4a, 0x83340113, 0x8438207f, 0xa4200804, 0x02021701, 0x01010591, 0x01129702, 0x0e021638, + 0x0573087f, 0x1998fe05, 0x500d0724, 0x01100512, 0x122f9e82, 0x14040905, 0x0205040f, 0x0a020302, 0x82011522, 0x32032569, 0xb4012020, 0x67594689, + 0x00022b06, 0x1a00c001, 0x46002c00, 0xe1515200, 0x2613252e, 0x27263127, 0x41091e5c, 0x2f240573, 0x07373601, 0x180b205c, 0x3b288c4e, 0x17160160, + 0x02165822, 0x02161602, 0x0f07263c, 0x07130505, 0x50022323, 0x090e4040, 0x0e200082, 0x272cdc51, 0x16172200, 0xd0160201, 0x482a4e83, 0x0b020e52, + 0x2c174b15, 0x54534020, 0x07fb4a05, 0xfb82c020, 0x3b001826, 0x00004400, 0x200d4576, 0x095d7627, 0x35332723, 0x771c8636, 0x162514bc, 0x16031517, + 0x05766f17, 0x0216e023, 0x20708330, 0x87c28330, 0x18482009, 0x4d1da04b, 0xfe240547, 0x1602d8a0, 0x4a84368c, 0x4b18a820, 0x9f6f1fa0, 0x06ff4410, + 0x36002d22, 0x2629d382, 0x33373627, 0x07061716, 0x20a28223, 0x21c89e15, 0x59512105, 0x83982006, 0x849020c2, 0x16182204, 0x23bd9a02, 0xa0fe1001, + 0x4918be85, 0x01200883, 0x28200982, 0xc024b49c, 0x010f00ff, 0x83413582, 0x18252012, 0x220eca52, 0x59011f36, 0xbdab050a, 0x2e02013a, 0x11100f0f, + 0x1110302f, 0x2f2f0e0e, 0x10110e0e, 0x10112f30, 0x822e0f0f, 0x7820cca6, 0x46912e85, 0x02480123, 0x4ddca716, 0xc02f085f, 0x0e00c001, 0x3a003100, + 0x06370000, 0x1826012f, 0x2107365c, 0xd5ab010f, 0x1110d823, 0x20ca8440, 0x21ca835f, 0xcaa65870, 0x0f0f2829, 0x0e111040, 0x835f2f0e, 0x0170223c, + 0x18c0ab98, 0x2f099b51, 0x001e0019, 0x00280023, 0x15160100, 0x010f0611, 0x0728c782, 0x35262706, 0x013f3611, 0x2b05a441, 0x11370131, 0x27011107, + 0x13111711, 0x022b0983, 0x0e010a36, 0xb70908a8, 0x820b0ca0, 0x07a92f09, 0x0ba0b809, 0x78fafd0b, 0x90380178, 0x06823090, 0x0c089c33, 0x070fb0fe, + 0x3d020340, 0x0807053c, 0x1050010c, 0x350c8206, 0x07053d3e, 0x012d7ffe, 0xe4fe2e1d, 0xfe301c01, 0x1e0130e2, 0x0f85e4fe, 0x0000002f, 0xffffff02, + 0x01ff01c3, 0x001b00c0, 0x0bd1502b, 0x6d013b21, 0x33210548, 0x41571832, 0x06132407, 0x7e072307, 0x2125062b, 0x01111716, 0x09c36bbf, 0x06016025, + 0x4f7d0606, 0x112e05d8, 0x01111c12, 0x9050a00f, 0x0f01010f, 0x05828001, 0x1201c03e, 0xe1fe1a12, 0x5412121b, 0x04030308, 0x1b12125e, 0x121a1f01, + 0xa0fe0112, 0x3c3c010f, 0x20202582, 0x0f222582, 0x4345e0fe, 0x000a290b, 0x00300015, 0x13000042, 0x20137148, 0x059a5b2f, 0x26f15318, 0x0445c820, + 0x16022205, 0x20088770, 0x172e6638, 0x0fd15318, 0x6c200121, 0x098909c6, 0x2e5aa020, 0x06997610, 0x11bf5318, 0x2c069743, 0xc0010002, 0x27000c00, + 0x00003900, 0x0acf7501, 0x0121c8ad, 0x09496d48, 0x9b180b77, 0x21b8abc2, 0x237c0001, 0x82482007, 0x061121b3, 0x2106764d, 0x09822726, 0x3d262725, + 0x56373601, 0x32200556, 0x35260782, 0x33220706, 0x46183130, 0x2c820737, 0x11272622, 0x15201e83, 0x36252583, 0x16171633, 0x36278317, 0xc0013736, + 0x141f0c0e, 0x1e2d1614, 0x171f2d1e, 0x0109090b, 0x832a1b0d, 0x1012270c, 0x2a1d1510, 0x0b830101, 0x191d2c23, 0x07745121, 0x10182125, 0x83171211, + 0x14163d15, 0x0f0b1f14, 0xb0fe9001, 0x060c0405, 0x0e0e0205, 0x03080102, 0x010b0607, 0x020c060f, 0x04240e83, 0x0df00803, 0x022b0984, 0xfe040b0d, + 0x020216b6, 0x83900116, 0x04172405, 0x8405060b, 0x05062532, 0x0005050b, 0x2a064f44, 0x018002f8, 0x00750088, 0x8287007e, 0x272621e3, 0x0721c183, + 0x83e98326, 0x05814703, 0x3621de82, 0x5d0e8217, 0xb0430816, 0x06232306, 0x0a82012f, 0x06820720, 0x23352327, 0x37363311, 0x82308333, 0x16172107, + 0x03823382, 0x36013f27, 0x012f2627, 0x82058237, 0x26272328, 0x11823435, 0x84161721, 0x15332201, 0x2c2d8214, 0x05271117, 0x37362726, 0x07061716, + 0x74411821, 0xfa700808, 0x2f1f1f0e, 0x231c1c23, 0x101d1d29, 0x110c0110, 0x070c0806, 0x2e1b1b01, 0x133a0a0b, 0x1a151301, 0x7c0b141b, 0x031c0304, + 0x051a1604, 0x21040302, 0x0e09030f, 0x4a5a0a0f, 0x09124060, 0x1d174d3d, 0x11150404, 0x14181301, 0x1110110d, 0x020e1b0c, 0x09791102, 0x11110e0e, + 0x050c0d36, 0x100d5605, 0x011b1b2e, 0x09370705, 0x86410d09, 0x010f36fe, 0x2105e04a, 0x09872002, 0x41016a08, 0x09171611, 0x04151604, 0x11131307, + 0x0f130212, 0x19040904, 0x06010a19, 0x1b1c133b, 0x0b131213, 0x24040464, 0x1b120304, 0x1b030104, 0x020b030e, 0xc0510801, 0x0f0100ff, 0x0b031345, + 0x03020f01, 0x0404060d, 0x1512240e, 0x08620f15, 0x0e0e1111, 0x050a0a36, 0x58050708, 0x190a020c, 0x02060419, 0x09090eaf, 0x01000101, 0x877a85e1, + 0x010f2178, 0x240b2f43, 0x0038002a, 0x07974159, 0x6b263121, 0x272205c7, 0x9f410631, 0x5c078307, 0x21250517, 0x37363736, 0x076e6535, 0x16173528, + 0x013f3233, 0x265e3515, 0x83352005, 0x4103871c, 0x0585057d, 0xee01153d, 0x200f100c, 0x05043b1f, 0x0f12110e, 0x0e11120f, 0x1f3b0405, 0x0c100f20, + 0x18120112, 0x21079a4c, 0x49711e12, 0x88320805, 0x20282820, 0x1712a788, 0x0ba71217, 0x201f0f0f, 0x0606053b, 0x08080a0a, 0x06060a0a, 0x1f203b05, + 0x010b0f0f, 0x0c0c091d, 0x032b1717, 0x0b0b0b04, 0x04820101, 0x2b03042a, 0x0c0c1717, 0xf7170f09, 0x2407f754, 0xfe0f17f7, 0x2df183e3, 0x1a1a71ab, + 0x8aeaab71, 0x0d8a0f0f, 0x37840b09, 0x07050529, 0x08030308, 0x84050507, 0x090b3d37, 0x0007000d, 0x02c0ff20, 0x00c00100, 0x0020000e, 0x00320029, + 0x0050003b, 0x2500005d, 0x25063051, 0x26373633, 0xa97f2627, 0x07824306, 0x16171626, 0x15230517, 0x35231b82, 0x87112726, 0x86152008, 0x182f2008, + 0x7a14337a, 0x01290cf7, 0x17224010, 0x0f010116, 0x22aa82c0, 0x69221716, 0xf5710809, 0x10102109, 0x0f201a82, 0x7022058b, 0x1e88e0fe, 0x10243088, + 0xe0fe0f01, 0x01252983, 0xa0010f20, 0x834b8201, 0x205c830c, 0x26461820, 0x6040240f, 0x82400f01, 0x8500201d, 0x85802007, 0x83c02006, 0x314e1826, + 0x83fe200f, 0x05604627, 0x80fe0f3b, 0x06000000, 0xe0ff0000, 0xa0014002, 0x1c001100, 0x36002b00, 0x58004b00, 0x05057d00, 0x16413720, 0x5f25200b, + 0x06230d69, 0x41171607, 0x27210542, 0x74198937, 0xd02021e4, 0xf188e987, 0x16600025, 0x84160202, 0x41e02004, 0xe0200d3c, 0x30201989, 0x1820bf7b, + 0x20103c47, 0x070b4518, 0x3c413820, 0x8788200b, 0x74782015, 0x40182385, 0x112a0ba3, 0x3e002300, 0x63004c00, 0xe2620000, 0x18152011, 0x23100e61, + 0x31070635, 0x89610284, 0x26112411, 0x5c373627, 0x17240591, 0x26370706, 0x20072165, 0x20178407, 0x2b308337, 0x00010706, 0x01191925, 0x25191901, + 0x11250787, 0x0b0c0c0b, 0x47058511, 0x47381789, 0x17170d35, 0x171d481d, 0x47360e17, 0x202114a0, 0x20274827, 0x022e1520, 0x08a65618, 0x50012e22, + 0x5c83548b, 0x56888020, 0xf0205c82, 0x3219a547, 0x0e192901, 0x190e0f0f, 0x204b0129, 0x12121213, 0x474d3720, 0x4d210736, 0x0c076938, 0x2d001426, + 0x4e003f00, 0x180ced59, 0x4309657d, 0x33210831, 0x09887415, 0x17163325, 0x18362711, 0x5407635b, 0xde5406d4, 0x066a4208, 0xff400123, 0x09384200, + 0x10220987, 0xcf4b0f01, 0x09402105, 0x2205f172, 0x59010f40, 0x2487082f, 0x5b422020, 0x4301200d, 0x10201e1e, 0x8205ee4d, 0x80fe225a, 0x0f7043a0, + 0x51422020, 0xbf52180b, 0x001c290d, 0x00440031, 0x2500004f, 0x2324b284, 0x17160706, 0x1720d690, 0x21174844, 0x675d2623, 0x82072006, 0x21112309, + 0x44892711, 0x43700121, 0xa020090d, 0x43104443, 0xc020171f, 0xf984a983, 0x010f2025, 0x89a0e001, 0x43682043, 0x18200708, 0x0121dd8f, 0x171a4320, + 0x16172223, 0x26508301, 0x00010f01, 0x189800ff, 0x7409a150, 0x1b2b0bf7, 0x00002400, 0x36373613, 0x7c333237, 0x34340f1c, 0x31373635, 0x21171613, + 0x21353736, 0x10080815, 0x03040d0c, 0x0ff64918, 0x28060222, 0x2705034b, 0x7f0160fe, 0x0207090f, 0x03258e8f, 0xfe0b0d04, 0x23cf82a1, 0x00c0c00f, + 0x012d0082, 0xe0ff0000, 0x10000002, 0x00000a00, 0x06f75a17, 0x2726212e, 0x01160200, 0x020216d0, 0x1630fe16, 0x8305c35a, 0x0b2b470c, 0x3800222d, + 0x00004100, 0x07222301, 0x6f011d06, 0x1620067e, 0x2008556f, 0x055f5335, 0x26273422, 0x20068a6f, 0x08bb6f11, 0xe0831120, 0x85012121, 0x17162dc8, + 0x0ee0b001, 0x01300909, 0xe0221716, 0x20072541, 0x06434210, 0x8e707020, 0x29cd830d, 0x00ff0001, 0x010f0001, 0xe982e0fe, 0x09099025, 0x8710100e, + 0x203e8435, 0x83128230, 0x83502050, 0x0ff2422c, 0x01b0fe22, 0x0f21f882, 0x2e418201, 0x01c0ff1b, 0x00c001e5, 0x2500007e, 0x18060716, 0x20078761, + 0x220b8217, 0x8315022f, 0x22232306, 0xed56012f, 0x06072805, 0x013f2627, 0x84010f35, 0x200d8507, 0x05094e27, 0x85060068, 0x2105840d, 0x06843502, + 0x0cbb7d18, 0x87491520, 0x4f0f2006, 0x65840610, 0x07012c08, 0x17363717, 0x0503e401, 0x211f0a05, 0x140d0912, 0x15040821, 0x49150815, 0x070e0e39, + 0x17070a0a, 0x02161602, 0x0e111117, 0x8249390e, 0x04153516, 0x0d142108, 0x1f211209, 0x16070415, 0x4e49494e, 0x15040716, 0x11213990, 0x23378e11, + 0x0305050a, 0x4208398f, 0x0a9a0815, 0x08030809, 0x12140d13, 0x161f1309, 0x4e140308, 0x1139542a, 0x17070711, 0x02021626, 0x0e172616, 0x3911110e, + 0x144e2a54, 0x1f160803, 0x14120913, 0x0808130d, 0x15031416, 0x0315292b, 0x91081614, 0x0e0e213b, 0x03233b91, 0x8c0a0809, 0x2a29253d, 0x00150414, + 0x55050b6d, 0x202807eb, 0x49004000, 0x00005700, 0x0a965118, 0x07063324, 0xba512726, 0x210a8906, 0x0f511703, 0x5e112005, 0x1127083a, 0x36272623, + 0x82373337, 0x17163a03, 0x27330731, 0x22012b26, 0x1403010f, 0x3b163117, 0x36373201, 0x11211135, 0x07f549a0, 0x08905020, 0x46240222, 0x42059c5d, + 0x0820077f, 0x46300e83, 0x5e1d1125, 0x91a6121d, 0x5e040313, 0x48130105, 0x27065542, 0x0f30e0fe, 0xd00f0101, 0x01280498, 0x16023777, 0xd0fe0216, + 0x2008f043, 0x2a0f8330, 0x01011837, 0x041c3718, 0x6bfe1c04, 0x01250654, 0x00d0fe30, 0x09a34f00, 0x2e001428, 0x55004000, 0xe0440000, 0x18152005, + 0x2a085d83, 0x26272635, 0x07061327, 0x18262723, 0x7409ce65, 0x21240529, 0x25151716, 0x11267918, 0x31832120, 0x84053a41, 0x17162645, 0x00020706, + 0x08fa44fe, 0x50180120, 0x1030080c, 0x6d100f01, 0x05080905, 0x0805163f, 0x10490508, 0x0125d783, 0xfe010f60, 0x05c445d0, 0xe8260585, 0x2233b0fe, + 0xef670122, 0x16502408, 0x60160202, 0x7e490528, 0x2b088408, 0x010fe0fe, 0x5e0707a1, 0x6107071e, 0x2007625f, 0x0b056fd0, 0x0190fe26, 0xf0332222, + 0xf0233f83, 0x8414141f, 0x51002052, 0x802c086b, 0x1d00c001, 0x3f002600, 0x23010000, 0x18074149, 0x4709394e, 0x2f210806, 0x23d28301, 0x37362726, + 0x21090f47, 0x14821d06, 0x37363335, 0x33273435, 0x01111716, 0x15063240, 0x151e1e15, 0x46320615, 0x802011f6, 0x03838083, 0xff469020, 0x02123407, + 0x0fc00f01, 0x0f120201, 0x1c800101, 0x01011112, 0x451c1211, 0x48830f3d, 0xba451020, 0x70fe2107, 0x0f272a82, 0x010f4001, 0x83100808, 0x08102b0a, + 0xfe0f0108, 0x000300c0, 0x3f4bff00, 0x00193105, 0x00460034, 0x27232500, 0x22232726, 0x17150607, 0x1f20cc83, 0x2106565a, 0x8c4f2627, 0x3858392e, + 0x10160201, 0x0107070a, 0x06070f38, 0x0b07590a, 0x0a57070b, 0x580f0706, 0x4f17d348, 0xd0330f9a, 0x07021658, 0x01580a07, 0x600b0f0d, 0x0c600808, + 0x48010d0e, 0xf9481ab5, 0x3b3b2208, 0x454a8358, 0x17240bff, 0x44003200, 0x3522db83, 0x21782726, 0x3633230c, 0xd9af3537, 0x918c6820, 0x0222a482, + 0xd3a76816, 0x0c41e020, 0x0238260e, 0x02161016, 0x198b49e0, 0xd792d591, 0x07260125, 0x7f150706, 0x372005df, 0x2009e37f, 0x1c9a4a02, 0x854a3120, + 0x07062c0b, 0x0e0c1801, 0x1657020d, 0x88160202, 0xa71820df, 0x2a0127d6, 0x0e07060a, 0xcd840138, 0x2506f041, 0x070b0b06, 0xd9ab9657, 0x41098b42, + 0x012106af, 0x5b411826, 0x16172408, 0x74363317, 0x2f200516, 0x1125d7ad, 0x050c0b07, 0x289f8858, 0x0f380215, 0x580a0607, 0x20dba811, 0x067b4238, + 0x1b415820, 0xab882009, 0x05003cd6, 0xe0ff0000, 0xa001ff01, 0x15001100, 0x1d001900, 0x00002100, 0x23262725, 0x700f2221, 0x3f2c0681, 0x012f3601, + 0x07372317, 0x27073327, 0x46080782, 0x07212713, 0x0868fc01, 0x0bfffe0c, 0x0b096708, 0x0a0a07e8, 0x090ce807, 0x4d8c3f7d, 0x4e9c4e7f, 0x418c4b7e, + 0x5601ab7e, 0x0b99fcab, 0x0e10990b, 0xf60808f6, 0x5f63100e, 0x6363525f, 0xfe5f5f52, 0x00b5b5bc, 0x82000400, 0x40022300, 0x77828001, 0x3c002624, + 0x75825100, 0x81180620, 0x27210fda, 0x09d64d15, 0x26352323, 0x790d8427, 0x172015ba, 0x270ee745, 0x06070621, 0x01900107, 0x0a068518, 0x201f3025, + 0x79088001, 0x0823085c, 0x83100f01, 0xf0fe220c, 0xcc6d1801, 0x121b2513, 0x60010112, 0x2107974a, 0x0983a0fe, 0x8218c020, 0x1f230d1e, 0x47402030, + 0x08510806, 0x08104605, 0x200b3049, 0x08bc4b30, 0x002d0888, 0xff000003, 0x010002e0, 0x001900a0, 0x18ff822f, 0x181ac76a, 0x1822e346, 0x2018bd6a, + 0x090d51af, 0xfe210983, 0x20d68380, 0x05da4a30, 0xfe0f0123, 0x58b58280, 0x6a18081d, 0x4f200fff, 0xb9452b83, 0x7e6e180f, 0x0657630e, 0xc001403e, + 0x58000c00, 0x21050000, 0x17140706, 0x36213316, 0x25272637, 0x16311716, 0x35331517, 0x08e26418, 0x25057754, 0x06071716, 0xbd451415, 0x17162606, + 0x0f060706, 0x74258201, 0xf082088c, 0x26273422, 0x52070461, 0x39080534, 0xeffe2801, 0x07070215, 0x17100109, 0xfe160202, 0x131201d8, 0x0c21301a, + 0x02010909, 0x1a1b1717, 0x0f0e0a0c, 0x42060d0c, 0x050b0505, 0x36050706, 0x09010112, 0x30220b09, 0x0982131a, 0x1c121326, 0x02171c1b, 0x2106994d, + 0x0d821702, 0x13122808, 0x15021001, 0x0208070a, 0xa0021616, 0x08191827, 0x030b4320, 0x2c160d0c, 0x21222f2f, 0x11110101, 0x420a1414, 0x82060705, + 0x3605384f, 0x0d16202b, 0x430b030c, 0x18190820, 0x302f2627, 0x07172a2b, 0x82090e18, 0x180e2a00, 0x2b2a1707, 0x00262f30, 0x060b4100, 0x2005e758, + 0x0c0b4140, 0x2321ce82, 0x22048237, 0x4d352327, 0x3524054d, 0x07062726, 0x6806dd42, 0x143d056e, 0x2733011f, 0x37343534, 0x14151621, 0x37330715, + 0x88013536, 0x0116b0fe, 0x010a0706, 0x3106824f, 0x0b380a06, 0x1f901c11, 0x15020216, 0x1617031f, 0x09822001, 0x8f1f1632, 0x010f1018, 0x47334103, + 0x08500108, 0x03423247, 0xdb83d686, 0x0f12f825, 0x83380116, 0x152121e1, 0x21203582, 0x38340983, 0x18100f01, 0xd6c70809, 0x01070101, 0x01010602, + 0x0908c7d6, 0x2506b745, 0xa0018001, 0x7d514200, 0x06172306, 0x89821407, 0x3331302d, 0x013f3635, 0x07353736, 0x83010f06, 0x66232002, 0x272b0844, + 0x37363526, 0x16171633, 0x82331517, 0x662620d1, 0x14250577, 0x011d0617, 0x24148214, 0x36171637, 0x20e88337, 0x0b154201, 0x1a0f2c31, 0x22023001, + 0x0f011526, 0x04080208, 0x82050b0b, 0x82212000, 0x0b073d5a, 0x69090102, 0x022c2b43, 0x3a390230, 0x10196957, 0x05050110, 0x24140c0c, 0x02121202, + 0x01230383, 0x42affe18, 0x51200504, 0x3b08fb83, 0x2820067f, 0x040d0e02, 0x17132820, 0x093b180b, 0x0c190904, 0x02020405, 0x7010080f, 0x17080608, + 0x01090303, 0x432c2c02, 0x3a57c3c3, 0x1001023a, 0x0c0d1910, 0x16700e0c, 0x9d0a1212, 0x02235085, 0x42d4fe12, 0x002f0805, 0xff000003, 0x013e01c1, + 0x000c00a0, 0x4150003e, 0x163d05c1, 0x37362117, 0x23262734, 0x14153327, 0x33070607, 0x33352736, 0x33170615, 0x3d262726, 0x05cd4101, 0x27202084, + 0x2009a952, 0x05be6323, 0x3121ff82, 0x4f741816, 0xfe283d0d, 0x020215ef, 0x16100115, 0x0a060601, 0x050419f1, 0x0214350e, 0x35140240, 0x1804050e, + 0x153bd482, 0x03012518, 0x190b0b02, 0x22322b19, 0x25020122, 0x07070918, 0x1f691502, 0x61011414, 0x07830720, 0x16020f22, 0x0a2f2d83, 0x1eb00807, + 0x191e1d1e, 0x1e1e3839, 0x82193939, 0x011f3e0a, 0x22021617, 0x0a0f0e35, 0x13121615, 0x22220101, 0x07223632, 0x01170a07, 0x151401d0, 0x4a488b1e, + 0xff2b082f, 0x1100c001, 0x6d005e00, 0x50010000, 0x342311ff, 0x8326012f, 0x220721d2, 0x8745e383, 0x6f062005, 0x2a5005cb, 0x07142205, 0x054e6706, + 0x06010f32, 0x011f1415, 0x33162733, 0x37163130, 0x17163736, 0x2905f243, 0x33073732, 0x34353637, 0x0a420335, 0x345d0809, 0x01232627, 0x0f101800, + 0x100f0101, 0x10101818, 0x10100101, 0x1c07ff18, 0x05090503, 0x0405180e, 0x030b0a12, 0x030a270a, 0x120d0d04, 0x040d0d11, 0x0d270a02, 0x1a0b0b01, + 0x09040e18, 0x071d0404, 0x5d356c02, 0x1c060d0d, 0x2f1c171c, 0x14041d2e, 0x0d0d2914, 0x016c355d, 0x16b0fe57, 0x21f18202, 0x06865001, 0x67875f85, + 0x010f2f08, 0x10050855, 0x01120702, 0x0e0e0401, 0x01010c12, 0x0b0a1109, 0x09110a0b, 0x100c0101, 0x01011111, 0x10020712, 0x04040805, 0x0204c4e3, + 0xa5820808, 0x0923012e, 0x03021415, 0x0303e3c3, 0xf5fe0101, 0x23053242, 0x08070a15, 0x2905a34a, 0xa0018001, 0x4d000c00, 0xf5435a00, 0x27262d0c, + 0x07222103, 0x14011d06, 0x1514011f, 0x07280182, 0x36330706, 0x34353637, 0x27240182, 0x33153335, 0x07200386, 0x17261d84, 0x26331716, 0x1d842627, + 0x24069a78, 0x07220723, 0x23408231, 0x27343533, 0x68208682, 0x300cfe42, 0x0fccfe0f, 0x250b0b0b, 0x31080202, 0x30020207, 0x27018440, 0x31070202, + 0x25020208, 0x11281982, 0x09090e99, 0x0e090940, 0x2a09e944, 0x0b0bb001, 0x0a0f8b10, 0x82070620, 0x22212d98, 0x22222b2c, 0x0c0c0b23, 0x3075290d, + 0x75390082, 0x0c0c0d29, 0x2323230a, 0x21222c2a, 0x0508081d, 0x0f0a2005, 0x0b0b108b, 0x214582c0, 0x4e824040, 0x00820020, 0x974b0220, 0x00042a08, + 0x01000009, 0x21112111, 0x2d038207, 0xfe000211, 0x30000200, 0xa00160fe, 0x0a88c001, 0x2a086348, 0x001100a1, 0x00350023, 0x1875005a, 0x20139586, + 0x0f804d37, 0x8f172721, 0x27232111, 0x1809364a, 0x18345b6b, 0x2607f254, 0x08090908, 0x820e700e, 0x0d092306, 0x0c8a090d, 0x3605d445, 0x393a4770, + 0x02012222, 0x10100d33, 0x05060a02, 0x23232e10, 0x85312c17, 0x22012215, 0x816b1822, 0x583a2f12, 0x023b3a58, 0x583a3a02, 0x0d0909f0, 0x54820a0e, + 0x4c820e20, 0x09090123, 0x2066880e, 0x820d8401, 0x23138219, 0x01b10909, 0x07a86b18, 0x01151525, 0x180e0f0b, 0x2909a86b, 0x2f3a3a2e, 0x011c1d2f, + 0x6b188ffe, 0x002019a8, 0x0fbb5618, 0x57003c24, 0x56186900, 0x17292dbb, 0x33363726, 0x07161732, 0x05cd6906, 0x41172721, 0xb259075e, 0x37362105, + 0x56180183, 0x4a3140ba, 0x1f180b0c, 0x0d0c181e, 0x10090e0e, 0x0e0e0812, 0x17a24ae6, 0x7818ff20, 0x56181045, 0x172d25bc, 0x16160f0e, 0x0c0b0e0f, + 0x0b0c0a0a, 0x173d4b19, 0x12fe5718, 0x42050021, 0x142e08cb, 0x47002d00, 0x74006200, 0x06250000, 0x2c5d2627, 0x09004105, 0x7a270721, 0x16270799, + 0x012f0607, 0x45141514, 0x31200601, 0x099b5518, 0x07373422, 0x3f2d3982, 0x16173601, 0x1516010f, 0x37360531, 0x41028431, 0x06210542, 0x41018307, + 0x5518055a, 0x013e1198, 0x0b101148, 0x110b1b1c, 0x0a0e0f11, 0x1a1a1213, 0x0d0b1312, 0x0901b80f, 0x06030d1f, 0x0483600e, 0x09090b27, 0x09090d0e, + 0xb4551801, 0x0e0c2508, 0x600d0306, 0x1e230483, 0x4190fe09, 0x01201755, 0x3d105541, 0x0e0f0d36, 0x0f0e0202, 0x0c11110d, 0x0101090a, 0x110c0a09, + 0x090e9a11, 0x0d0e060a, 0x04832003, 0x1e820320, 0x8207a842, 0x03022775, 0x0e0d0304, 0x04832006, 0x0e090a23, 0x2b624110, 0x290a6341, 0x002b0011, + 0x00600045, 0x72180072, 0x2f2011dd, 0x20064161, 0xc9751816, 0x61332011, 0x1992055b, 0x592cb042, 0x5939109e, 0x17181011, 0x0f0f1011, 0x0f0f1616, + 0x18171110, 0x0e0e1110, 0x0e0e1717, 0x201897c0, 0x176341d9, 0x5712b942, 0xd9200f20, 0x5a975b85, 0x79201791, 0x202a6541, 0x08c74209, 0x13000a30, + 0x37002500, 0x52004000, 0x7f006400, 0x53189100, 0xb25e0cdb, 0x27262206, 0x08984223, 0x76079442, 0xc548058d, 0x17162509, 0x26070637, 0x33203084, + 0x84119a4d, 0x17162211, 0x21358216, 0x34833736, 0x421a8a41, 0x402512ec, 0x16020216, 0x20048480, 0x0c245bb8, 0x8307ee53, 0x14502507, 0x01010d0e, + 0x0a089418, 0x2aa9d820, 0x41183061, 0x6b1811a9, 0x6562086c, 0x24848b08, 0x22171601, 0x83848b30, 0x0f6b1894, 0x2029a008, 0x29c44150, 0x2e098b44, + 0x00280016, 0x0055003a, 0x37000067, 0x18312706, 0x210f4e5b, 0x5b180722, 0xb3355148, 0x0307070a, 0x231b1b0d, 0x0d1a1b23, 0x09080704, 0x252c2c25, + 0x0670441d, 0x40835c18, 0x05044f26, 0x121d0906, 0x1c280082, 0x0405060a, 0xa110010f, 0x91056947, 0x41302005, 0x00222930, 0xf7420000, 0x00132e09, + 0x0020001b, 0x002d0025, 0x0051003f, 0x058f586c, 0x804b1720, 0x534c1806, 0x07332808, 0x17160706, 0x83233533, 0x37152503, 0x35331523, 0x2105435e, + 0x5d181523, 0xd14523db, 0xdb5d181a, 0x4a582012, 0xb02007dc, 0xc0740888, 0x28082e05, 0x20602020, 0x16082020, 0x08160202, 0x1c654180, 0x5d18fe20, + 0xd74518ea, 0x4aa02011, 0x20250fe9, 0x02161602, 0x84008630, 0x0635570b, 0x423f7741, 0x153009ab, 0x39002700, 0x66005400, 0x36250000, 0x07163117, + 0x26081a4c, 0x16173637, 0x41373233, 0x3c442357, 0x1257411a, 0xbd825e20, 0x1f120831, 0x1f26261f, 0x0907131f, 0x322c0e09, 0x418e2c32, 0x44411c45, + 0x110e4418, 0x09038c26, 0x111c0d0a, 0x1c270082, 0x03090a0d, 0x41640b0b, 0x1185112c, 0x412aaa42, 0x07302f2f, 0x35262726, 0x37363734, 0x15161716, + 0x31373433, 0x694d0985, 0x41352006, 0x7e20422f, 0x200b4e58, 0x550c8b40, 0x2b4118f2, 0x46742022, 0x0f8f0ff5, 0xde434020, 0x0b334129, 0x78004726, + 0xa5009300, 0x29186342, 0x31342331, 0x27263130, 0x5f492734, 0x056b4905, 0x0615062d, 0x30332215, 0x06312315, 0x4a352627, 0x142507cc, 0x31270607, + 0x4130af33, 0x84214272, 0x24008201, 0x02020303, 0x2500820e, 0x03030202, 0x10830201, 0x0106052d, 0x18180f10, 0x0501100f, 0xa2a00306, 0x48862023, + 0xcc422985, 0x834f2010, 0x03012c5f, 0x0c020204, 0x020c0101, 0x84030402, 0x01042f10, 0x151c0602, 0x15020215, 0x02061c15, 0x25a50401, 0xcc411b20, + 0x0caf4c29, 0x4e001c28, 0x95006400, 0x2366c700, 0x37342107, 0x23050c74, 0x17363736, 0x2707f87d, 0x27312306, 0x17140706, 0x0df49118, 0x16272625, + 0x18373233, 0x4c07f455, 0x06260da7, 0x22033107, 0x14823127, 0x82067a44, 0x0607254c, 0x27230607, 0x7f21ec41, 0x16210671, 0x051d4215, 0x3c304f42, + 0x0e14d001, 0x0105010d, 0x080b0a07, 0x0e0c0606, 0x0a0a010f, 0x4907060f, 0x37010106, 0x0b3e5a4a, 0x0d190126, 0x150d0e0d, 0x2411c241, 0x02023d4e, + 0x0bd14487, 0x4208e544, 0x01271812, 0x19170f11, 0x4204100f, 0x013e2536, 0x0d0d0140, 0x010a0814, 0x10101001, 0x0f06060a, 0x11101817, 0x02040c0c, + 0x05120c4d, 0x7a182c07, 0x37250c46, 0x2f05042d, 0x12de4136, 0x05052826, 0x1111a4fe, 0x45061a45, 0xaa20062a, 0xa5252e42, 0x43002025, 0x2d260bf7, + 0x5f004400, 0xf7437100, 0x06072c18, 0x2726012f, 0x37363726, 0x83011f36, 0x16172605, 0x31071617, 0x05474233, 0xa36d0720, 0x221e8405, 0x591f1617, + 0x3642089c, 0x2031820d, 0x27654617, 0x05126f32, 0x070e410e, 0x0c040306, 0x04110d0b, 0x0d0c0c04, 0x67280d83, 0x0c0b0e10, 0x07060304, 0x05211c82, + 0x25078312, 0x040c0c0d, 0xe541aa04, 0xae5c1811, 0x10a84317, 0x0e428324, 0x65821103, 0x060e0e26, 0x10040407, 0x04247387, 0x0e060704, 0x11246c83, + 0x0d420e03, 0x10217486, 0x12a9414f, 0x3a222224, 0xf34e4839, 0x0015281d, 0x0040002b, 0x416d005b, 0x163e185f, 0x0f143115, 0x26270601, 0x013f2635, + 0x34372627, 0x011f3637, 0x16170737, 0x06071415, 0x196b012f, 0x450d8207, 0x7f3b421f, 0x07590808, 0x04010605, 0x01042424, 0x59070506, 0x032424aa, + 0x5a060506, 0x825a0808, 0x77032106, 0x303a4e41, 0x09090471, 0x03033004, 0x04040703, 0x04042b2b, 0x210a8207, 0x09881e30, 0x5b201d8a, 0x202b4b41, + 0x08774d07, 0x31001433, 0x67005000, 0x93007d00, 0x0000a800, 0x31333601, 0x05264132, 0x07060725, 0x82363722, 0x05105001, 0x82061721, 0x06aa6c10, + 0x50221721, 0x1c840513, 0x31071622, 0x06211a83, 0x06775127, 0x36233384, 0x84333227, 0x8507203b, 0x242f8450, 0x35262706, 0x271e8426, 0x17360731, + 0x010f1631, 0x13823882, 0x23060b43, 0x011f023f, 0x07207b82, 0x080d8618, 0x17363725, 0x55311716, 0x362105da, 0x21648415, 0x2f822223, 0x37343208, + 0x0fab0131, 0x0f0f1414, 0x1c1c0d0e, 0x02010b13, 0xfe0b0707, 0x545341a0, 0x0502024b, 0x48483f02, 0x07073537, 0x0e030328, 0x2907070f, 0x013e0b0a, + 0x85058394, 0x0202231f, 0x21830102, 0x06363408, 0x01012807, 0x0707120f, 0x0d0c0978, 0x090a0704, 0x23221b1b, 0x0d010e21, 0x17242425, 0x060509a9, + 0x06031e01, 0x05030506, 0x05030439, 0x62060202, 0x83380563, 0x07012709, 0x06060a61, 0x1c841d03, 0xedfe0122, 0x0a208283, 0x91858183, 0x0eb20123, + 0x0809830f, 0x07070b23, 0x1d120a02, 0x3e3d0d1c, 0x07290a0b, 0x29111208, 0x37350707, 0x013f4848, 0x02020402, 0x4153544b, 0x84048337, 0x0a072d1d, + 0x28070909, 0x38360607, 0x033e4848, 0x61331e82, 0x22220e0c, 0x091b1b22, 0x0d04070a, 0x2317090c, 0x82092624, 0x610a2c70, 0x05020107, 0x05380403, + 0x83050301, 0x398e2184, 0x0882a082, 0x06011e26, 0x06620905, 0x0323fe82, 0x83b3fe04, 0x0b01217b, 0x8b857c83, 0x370a9b44, 0x003d001e, 0x006e0053, + 0x13000080, 0x16171617, 0x1417010f, 0x012f0607, 0x2709d564, 0x3336023f, 0x33011f32, 0x07201d9c, 0x2014334b, 0x2b395225, 0x0426c83e, 0x1b040103, + 0x04040407, 0x04042123, 0x1c070205, 0x05010204, 0x04021126, 0xa0110206, 0x22211d89, 0x241d8c22, 0x11020505, 0x134a4b0a, 0x43a2fe21, 0x724c1768, + 0x19013611, 0x04050105, 0x05251b04, 0x12020303, 0x03030212, 0x031b2505, 0x23148205, 0x22050522, 0x8d201b9b, 0x200f674b, 0x2a784334, 0x62057743, + 0x382d05e7, 0x76005300, 0xbd008c00, 0x0000ef00, 0x05ba6a25, 0x26070624, 0x48432627, 0x06a55007, 0x31171626, 0x31070603, 0x07231a82, 0x4b360706, + 0x1720055b, 0x2a842682, 0x06033524, 0x0c823127, 0x82343521, 0x05804318, 0x6b433220, 0x31072905, 0x01392221, 0x35303526, 0x27261e82, 0x33323334, + 0x8c6e1532, 0x14152108, 0x27222483, 0x77480731, 0x022f0877, 0x060c0507, 0x3c3c2107, 0x3c3c4b4d, 0x0c060721, 0x16020105, 0x46443435, 0x02163534, + 0x374dc801, 0x0d0a0f38, 0x4510100a, 0x46636245, 0x82101045, 0x0f23080c, 0xf04e3838, 0x0e12120f, 0x0e060e0e, 0x090a100e, 0x01090708, 0x0b060602, + 0xe3010101, 0x060b0201, 0x82090207, 0x0808260a, 0x0e100707, 0x2422820f, 0x0e12110f, 0x1d9948f2, 0x0e0d0f22, 0x480cd04a, 0x72332d99, 0x04060e0d, + 0x01262640, 0x40262601, 0x0d0e0604, 0x853d0404, 0x3d34080d, 0x1f010404, 0x4a2f2f02, 0x03020105, 0x023d3c5f, 0x5f3c3d02, 0x05010203, 0x022e2f4a, + 0x0cdafe01, 0x0f0d0101, 0x070e1313, 0x01040505, 0x09010102, 0x0c1b1b12, 0x01260782, 0x1b1b0c01, 0xc6820912, 0x0401012a, 0x0e070505, 0x0d0f1313, + 0x3a201482, 0x2c4fba48, 0x16151b07, 0x15160202, 0x0102071b, 0x0b935704, 0x2305ab6d, 0x00800067, 0x24cf6b18, 0x21243e47, 0xec483d26, 0x16172405, + 0x4a373233, 0x152205dc, 0x385f0714, 0x13332107, 0x21069b5b, 0x975b2223, 0x53152005, 0x6b18079f, 0x38561df4, 0x05ef4d18, 0x1f1f0126, 0x0a0d0435, + 0x3b07674f, 0x0809090e, 0x35040e08, 0x02011f1f, 0x01593b3b, 0x02190240, 0x08040512, 0x12050309, 0x31610a82, 0x136c1807, 0x1d344f18, 0x31313e28, + 0x340e0c1a, 0x7a4f0f0c, 0x09033e05, 0x0d0e0d0a, 0x1a0c0e34, 0x583e3131, 0xfe023b3b, 0x02192590, 0x09091201, 0x19020112, 0x075c4e25, 0x300b7741, + 0x002c0016, 0x00700047, 0x13000089, 0x36313734, 0x9a69181f, 0x06c24808, 0x36253129, 0x15163117, 0x48010f14, 0x80410cc5, 0x3617212e, 0x20118041, + 0x18804115, 0x05067424, 0xdd485907, 0x0701250b, 0x03060506, 0x2009de48, 0x17714585, 0x2f0a8341, 0x06031225, 0x473c0a07, 0x060a3c48, 0x25120407, + 0x20078341, 0x16824158, 0x07230126, 0x30030303, 0x200ef848, 0x0e03490a, 0x6a181e84, 0x94411d3b, 0x1b172905, 0x06060a2a, 0x01011203, 0x062f8782, + 0x171b2a0a, 0x311a0c0e, 0x3b583f31, 0x4101023b, 0x1f491797, 0x00103309, 0x002b0019, 0x0058003d, 0x009a0081, 0x07223700, 0x7f5a2706, 0x7537200b, + 0x9956054c, 0x47212025, 0x35432b1f, 0x27312115, 0x24172d43, 0x0d0812a0, 0x0bb35a0f, 0x2408656e, 0x17160138, 0x1ca15622, 0x41b0fe21, 0x012117c8, + 0x0632435c, 0x3b585824, 0x5443023b, 0x431c2015, 0xe423154b, 0x5a0b0c0a, 0x0c2008e1, 0x56077269, 0x4e47207a, 0x43ba2017, 0x0223074c, 0x43583b3b, + 0x67431870, 0x0015281f, 0x00380027, 0x4c650053, 0x7018183b, 0x6f5c10b3, 0x23f6533e, 0x4d3b6b5c, 0xf8531082, 0x43635c0c, 0x7700652b, 0xa4008900, + 0x0000b600, 0x05196225, 0x5c070621, 0x22380b1b, 0x39372627, 0x32353201, 0x36333437, 0x34373637, 0x26353637, 0x22272627, 0x03820582, 0x23352327, + 0x35263135, 0x20239c34, 0x82238334, 0x2057833b, 0x517b5531, 0x0106312c, 0x0a070601, 0x04050504, 0x0b85070a, 0x061b152d, 0x01050102, 0x04010201, + 0x82040606, 0x04022306, 0x08840105, 0x04040122, 0x05281694, 0x1b060201, 0x61070a15, 0x2747b355, 0x0b0b07a6, 0x02060807, 0x05210082, 0x280b8509, + 0x0606010b, 0x01010103, 0x82aa8203, 0x22938299, 0x52010405, 0x052206ed, 0x19950205, 0x82070221, 0x050b23b0, 0xf2554a09, 0x0a2b4c42, 0x97006528, + 0xe300c800, 0xf741f500, 0x41342036, 0xbf5230f7, 0x5e0f5530, 0x204c3642, 0x18105357, 0x20584755, 0x4e604296, 0x0b534520, 0x5525a525, 0x5b532a86, + 0x002d2f09, 0x00a50093, 0x00cd00b6, 0x17160500, 0x13532306, 0x07142511, 0x27260726, 0x21058144, 0xa9440706, 0x37322305, 0x67182717, 0x0983098d, + 0x44070621, 0xbd421fb5, 0x228d822f, 0x18273107, 0x48115779, 0x17200f31, 0x2614e453, 0x03590101, 0x46352f08, 0x0e2511fc, 0x05031311, 0x0bb46e0a, + 0x06272c23, 0x47ca4438, 0x01010624, 0x77189106, 0xc0240d5b, 0x0e0e0812, 0x2d0b4748, 0x0e111567, 0x0904050f, 0x0f551108, 0x07831705, 0x04250f82, + 0x080c1806, 0x11354814, 0x08282c27, 0x1e070803, 0x0b3b5622, 0x8a191122, 0x244ae444, 0x070b0b07, 0x0be8447e, 0x67480c20, 0x0599300b, 0x11090905, + 0x050f1012, 0x590e0218, 0x840f0f12, 0x5715200f, 0x69600cc7, 0x00522805, 0x37000064, 0x7a313726, 0x0721054f, 0x050e6806, 0x52ed7918, 0x06038332, + 0x0bd60a07, 0x0e020606, 0x2e2e2222, 0x4d0d2222, 0x2f474146, 0x08070b86, 0x2a0b0708, 0x01011a19, 0x7a2a191a, 0x5a170046, 0x132834bf, 0x76004500, + 0xa3009100, 0x45162741, 0x66418ead, 0x72714511, 0x200e9041, 0x250a4555, 0x304525a5, 0x0eef422a, 0x3f002926, 0x6c005a00, 0x5716c741, 0x3120292d, + 0x21246e4e, 0x5b633736, 0x11904105, 0x2a575c20, 0x0e684149, 0x2f4e8720, 0x1928570e, 0x63456b20, 0x05c64411, 0x46127458, 0x13280977, 0x36002500, + 0x63005100, 0x4c164341, 0x3a414e35, 0x0e324411, 0x413b314c, 0x34440e3a, 0x0c2f4c0c, 0x2a412920, 0x6b77182a, 0x6e23200c, 0x7f180589, 0x9b622337, + 0x45d0202c, 0x73621c37, 0x36e8512b, 0x220bd646, 0x50000000, 0x0a2e0927, 0x39001c00, 0x67004b00, 0x94008200, 0xa2180000, 0x2f200917, 0x5505bf58, + 0x17210bdf, 0x05ac7f36, 0x24088d69, 0x30353435, 0x05a94831, 0x39823120, 0x37363122, 0x71572ea7, 0x66a8202c, 0x162207bb, 0x12505802, 0x610f2015, + 0x0f260550, 0x0e0d0101, 0x23a27014, 0xb066fe20, 0x11735718, 0x02504820, 0x50982007, 0x16211403, 0x07bc690e, 0x16250782, 0x010d0e14, 0x6927a630, + 0x102837d7, 0x35002100, 0x72005000, 0x4f12d751, 0x072010f4, 0x20087968, 0x07294815, 0x51273521, 0x52181ecf, 0x1423089e, 0x7b171617, 0x36210791, + 0x26098537, 0x0d0812a0, 0x6c0b0b10, 0x8a200963, 0x200f706c, 0x0fbf675a, 0x24180e64, 0x111e9001, 0x07234a11, 0x1e11112a, 0x02161602, 0x2c34342c, + 0x86510783, 0x0990510c, 0x0b0c0a23, 0x07a86859, 0x08882020, 0x24182748, 0x27261d96, 0x07fd422c, 0x26272c2c, 0x0216761d, 0x16991602, 0x04820101, + 0x76200982, 0x3105d37d, 0xc0010002, 0x21001300, 0x45003300, 0x76006000, 0x1a610000, 0x22232909, 0x36272627, 0x31373637, 0x085f8318, 0x16373627, + 0x32273117, 0x05ef6617, 0x2206dc5b, 0x18073336, 0x240b1344, 0x06070617, 0x34a61823, 0x4633201c, 0xe24b0770, 0x31333a08, 0x0c0606aa, 0x0e010e0e, + 0x0d14150d, 0x0e02010e, 0x0fc60c0f, 0x2013100d, 0x31b6832f, 0x0d202e42, 0x01010909, 0x0f0d0909, 0x08090908, 0x0685a00f, 0xfd681487, 0x25502218, + 0x0b01442b, 0x08320226, 0x9d1b1415, 0x82059360, 0x0d0e3467, 0x17181014, 0x1210380f, 0x011e0d0f, 0x02161602, 0x64ab2a01, 0x797b18b0, 0x10402119, + 0x240bef4b, 0x0f193851, 0x0d376f0f, 0x7c004b26, 0xa9009700, 0x491c376f, 0x86188e9d, 0x26201932, 0x6f71174f, 0x7b20189f, 0xa5258949, 0x2daf4925, + 0x18000221, 0x2507b7aa, 0x002b001e, 0x7f5d0100, 0x5d162006, 0x3725109d, 0x07011f16, 0xaeaa1832, 0x01112309, 0xaa18997a, 0x0f3519ac, 0x075b4407, + 0x02146905, 0x0d765609, 0x25013605, 0x0e0e0217, 0xa4aa180a, 0x0d012f15, 0x3803e68d, 0x55090c78, 0x6c0b0311, 0x036fcefe, 0x0023260c, 0x00500035, + 0x25175a62, 0x45092d45, 0x8918072c, 0xf9592c37, 0x59b0201d, 0x078807ad, 0x884e4020, 0x17b16211, 0x1818f847, 0x2010f746, 0x29fd4860, 0x2a09274a, + 0x002c0016, 0x005c0041, 0x5400006e, 0x142306cd, 0x7d2f0607, 0x27250676, 0x3f363526, 0x296e4b01, 0x2f2c6d4b, 0x31311eb1, 0x07021e1f, 0x22120708, + 0x12222626, 0x02220882, 0x704b2e1f, 0x1d803549, 0x1d1d0303, 0x05050823, 0x0f0f0803, 0x05050308, 0x7d1d2308, 0x6228764b, 0x00272c9f, 0x0e011600, + 0x85000100, 0x001a2200, 0x240b866c, 0x001b0001, 0x240b86cb, 0x00070002, 0x240b8665, 0x00210003, 0x200b8644, 0x24238a04, 0x00320005, 0x24178686, + 0x00180006, 0x200b862c, 0x2009820a, 0x240b8600, 0x0017000b, 0x240b86e6, 0x00130010, 0x200b86b8, 0x245f8411, 0x04010003, 0x23868209, 0x00d50134, + 0x01240b85, 0x93023600, 0x02240b86, 0xc7010e00, 0x03240b86, 0x85014200, 0x04200b86, 0x0524238a, 0x09026400, 0x06241786, 0x55013000, 0x0a240b86, + 0xfd005800, 0x0b240b86, 0xc9022e00, 0x10240b86, 0x6d022600, 0x11200b86, 0x3f085f83, 0x20656854, 0x27626577, 0x6f6d2073, 0x70207473, 0x6c75706f, + 0x69207261, 0x206e6f63, 0x20746573, 0x20646e61, 0x6c6f6f74, 0x2e74696b, 0x746e6f46, 0x73657741, 0x36656d6f, 0x65657246, 0x6765522d, 0x17832d83, + 0x18862020, 0x20362022, 0x20201a83, 0x2d251a86, 0x2e322e36, 0x2d0c8630, 0x79706f43, 0x68676972, 0x63282074, 0x358b2029, 0x72655624, 0x71826973, + 0x3037372d, 0x3330302e, 0x32363039, 0x8c282035, 0x85762057, 0x203a2122, 0x29205184, 0x73851b8c, 0x86871292, 0x74746828, 0x2f3a7370, 0xc182662f, + 0xc1856120, 0x6f632e2d, 0x0054006d, 0x00650068, 0x82770020, 0x00622405, 0x82730027, 0x006d220b, 0x2007826f, 0x20098274, 0x28098270, 0x00750070, + 0x0061006c, 0x220f8272, 0x82630069, 0x826e2011, 0x82732009, 0x2421832f, 0x006e0061, 0x200f8264, 0x20178274, 0x2827826f, 0x0069006b, 0x002e0074, + 0x22278446, 0x84410074, 0x82732059, 0x826d200d, 0x82362031, 0x82722017, 0x00652407, 0x8252002d, 0x88672007, 0x202f875b, 0x22318e20, 0x82360020, + 0x8246205d, 0x8465207d, 0x20358da7, 0x221d822d, 0x8232002e, 0x8e30206f, 0x8443204f, 0x827920b9, 0x00692237, 0x20e38267, 0x20458274, 0x20bd8228, + 0x204d8429, 0x83b5826f, 0x209d8d11, 0x20618256, 0x20f98272, 0x22bb8469, 0x82370020, 0x84302001, 0x0030265b, 0x00390033, 0x226d8230, 0x82350032, + 0x88282041, 0x20af91df, 0x20458c76, 0x202d823a, 0x85438236, 0x9a2920a3, 0x41e78b37, 0x6822350d, 0x01827400, 0xc1827020, 0x2f003a22, 0x66200182, + 0x7422c784, 0x83416100, 0x002e220c, 0x21178263, 0x0082006d, 0x84000221, 0xdbff2300, 0x08841900, 0xc609048f, 0x010000d3, 0x01030102, 0x00080004, + 0x010e000d, 0x01060105, 0x01080107, 0x010a0109, 0x010c010b, 0x010e010d, 0x0110010f, 0x00220011, 0x01120123, 0x01140113, 0x01160115, 0x01180117, + 0x011a0119, 0x011c011b, 0x011e011d, 0x0120011f, 0x01220121, 0x01240123, 0x01260125, 0x01280127, 0x012a0129, 0x012c012b, 0x012e012d, 0x0130012f, + 0x01320131, 0x01340133, 0x01360135, 0x01380137, 0x013a0139, 0x013c013b, 0x013e013d, 0x0140013f, 0x01420141, 0x01440143, 0x01460145, 0x01480147, + 0x014a0149, 0x014c014b, 0x014e014d, 0x0150014f, 0x01520151, 0x01540153, 0x01560155, 0x01580157, 0x015a0159, 0x015c015b, 0x015e015d, 0x0160015f, + 0x01620161, 0x01640163, 0x01660165, 0x01680167, 0x016a0169, 0x016c016b, 0x016e016d, 0x0170016f, 0x01720171, 0x01740173, 0x01760175, 0x01780177, + 0x017a0179, 0x017c017b, 0x017e017d, 0x0180017f, 0x01820181, 0x01840183, 0x01860185, 0x01880187, 0x018a0189, 0x018c018b, 0x018e018d, 0x0190018f, + 0x01920191, 0x01940193, 0x01960195, 0x01980197, 0x019a0199, 0x019c019b, 0x019e019d, 0x01a0019f, 0x01a201a1, 0x01a401a3, 0x01a601a5, 0x01a801a7, + 0x01aa01a9, 0x01ac01ab, 0x01ae01ad, 0x01b001af, 0x01b201b1, 0x01b401b3, 0x01b601b5, 0x01b801b7, 0x01ba01b9, 0x01bc01bb, 0x01be01bd, 0x01c001bf, + 0x01c201c1, 0x01c401c3, 0x01c601c5, 0x01c801c7, 0x01ca01c9, 0x01cc01cb, 0x0bce01cd, 0x6c637865, 0x74616d61, 0x076e6f69, 0x68736168, 0x0b676174, + 0x6c6c6f64, 0x732d7261, 0x416e6769, 0x0938135d, 0x7373656c, 0x6168742d, 0x7165066e, 0x736c6175, 0x6572670c, 0x72657461, 0x2d411384, 0x660d2433, + 0x82646c6f, 0x6c63363f, 0x6465736f, 0x61656805, 0x73047472, 0x04726174, 0x72657375, 0x08168205, 0x0e6b632d, 0x74636572, 0x6c676e61, 0x696c2d65, + 0x66047473, 0x0867616c, 0x6b6f6f62, 0x6b72616d, 0x616d6905, 0x700d6567, 0x742d6e65, 0x82732d6f, 0x65722695, 0x7269630c, 0x202d8263, 0x87208378, + 0x6863250c, 0x0f6b6365, 0x71231986, 0x83736575, 0x650324f8, 0x82096579, 0x732d3c03, 0x6873616c, 0x6c61630d, 0x61646e65, 0x61642d72, 0x63077379, + 0x656d6d6f, 0x8506746e, 0x850b20a2, 0x6f2d2106, 0x09226a82, 0xa7826863, 0x61622d24, 0x24860872, 0x83097321, 0x682d37b4, 0x05666c61, 0x6f6d656c, + 0x72630b6e, 0x74696465, 0x7261632d, 0x2d820a64, 0x642d6438, 0x65766972, 0x6e616810, 0x6f702d64, 0x2d746e69, 0x68676972, 0x108a0f74, 0x66656c24, + 0x0f8a0d74, 0x8b707521, 0x6f64351d, 0x63046e77, 0x0b79706f, 0x706f6c66, 0x642d7970, 0x066b7369, 0x0824f185, 0x65766e65, 0x65281582, 0x73617005, + 0x6c096574, 0x62325a83, 0x04626c75, 0x6c6c6562, 0x736f6808, 0x61746970, 0x2d850b6c, 0x6c702d25, 0x41067375, 0x0a2a050a, 0x65636166, 0x696d732d, + 0x0a85656c, 0x82726621, 0x84082067, 0x656d2815, 0x656b0868, 0x826f6279, 0x410820c3, 0x0b20071b, 0x43823785, 0x0c796122, 0x6d244f86, 0x73756e69, + 0x63260c87, 0x6b636568, 0xf3827311, 0x822d6521, 0x416d204c, 0x07230694, 0x826d6f63, 0x1173219c, 0x63253386, 0x74657261, 0x20d4832d, 0x22118c0f, + 0x8c127075, 0x8372200f, 0x660421ca, 0x04829f84, 0x696c2d30, 0x0973656e, 0x6d756874, 0x752d7362, 0x09860b70, 0x03284883, 0x046e7573, 0x6e6f6f6d, + 0x6c24638d, 0x0a746665, 0x642cb586, 0x6208746f, 0x646c6975, 0x08676e69, 0x2d245483, 0x09666470, 0x77240884, 0x0a64726f, 0x65250984, 0x6c656378, + 0x290a840f, 0x65776f70, 0x696f7072, 0x1a85746e, 0x616d6925, 0x840b6567, 0x697a251a, 0x72657070, 0x61241685, 0x6f696475, 0x76240a85, 0x6f656469, + 0x632a5185, 0x0965646f, 0x6566696c, 0x6e82722d, 0x61700b22, 0x2d312f82, 0x6e616c70, 0x75660665, 0x6c6f6274, 0x77656e09, 0x24168473, 0x6c65620a, + 0x0585426c, 0x6f630922, 0x2006ef47, 0x05154311, 0x61632d27, 0x6f697470, 0x2d43826e, 0x6a626f0c, 0x2d746365, 0x756f7267, 0x0c860e70, 0x846e7521, + 0x6e0b2c0e, 0x2d65746f, 0x63697473, 0x8205796b, 0x656e3139, 0x756f680e, 0x616c6772, 0x682d7373, 0x09666c61, 0x0e2f0e88, 0x646e6168, 0x6361622d, + 0x69662d6b, 0x83047473, 0x0578420e, 0x69637328, 0x726f7373, 0x21840b73, 0x7a696c22, 0x8205be42, 0x7073252d, 0x0c6b636f, 0x82099d42, 0x270c85fa, + 0x65636165, 0x6765720a, 0x65234882, 0x43646572, 0x70240944, 0x0e73756c, 0x22085243, 0x8b6e696d, 0x6d78240e, 0x896b7261, 0x68632f1d, 0x036b6365, + 0x0770616d, 0x7373656d, 0xc3436761, 0x61702408, 0x42657375, 0x73290773, 0x0c706f74, 0x746e6f66, 0x068d482d, 0x82830920, 0x61687325, 0x430d656b, + 0x2d290701, 0x6e65706f, 0x6464610c, 0x24488272, 0x6f6f622d, 0x200c886b, 0x87cc8263, 0x2a55824a, 0x64690872, 0x6461622d, 0x82076567, 0x2f1c8308, + 0x6e69770f, 0x2d776f64, 0x6978616d, 0x657a696d, 0x69210f88, 0x200f846e, 0x821f860e, 0x6f742a5a, 0x73096572, 0x66776f6e, 0x2c7d826c, 0x61727409, + 0x632d6873, 0x69066e61, 0x27bd826d, 0x6c630973, 0x6f627069, 0x5782708a, 0x7c876e20, 0x66656c23, 0x07974474, 0x67697225, 0x42097468, 0x7533069e, + 0x65670370, 0x6f6d0c6d, 0x2d79656e, 0x6c6c6962, 0x440f312d, 0x782009fd, 0x2005cf44, 0x26d88468, 0x6f687369, 0x84630a70, 0x696b240c, 0x860c676e, + 0x836e200a, 0x2217864f, 0x82776170, 0x24228473, 0x65657571, 0x2316866e, 0x6b6f6f72, 0x25070a44, 0x6c6c7566, 0xe944630c, 0x642d2505, 0x0f73746f, + 0x20091044, 0x20ee822d, 0x0515446b, 0x676e6124, 0x0a857972, 0x7a696425, 0x840c797a, 0x6c662625, 0x65687375, 0x24328564, 0x776f7266, 0x057d416e, + 0x67271c84, 0x616d6972, 0x87096563, 0x0e6e210c, 0x58820988, 0x8a656421, 0x6562240e, 0x89146d61, 0x260e831d, 0x6577732d, 0x89107461, 0x65682514, + 0x73747261, 0x7326108a, 0x6e697571, 0x21891674, 0x2d211085, 0x86288274, 0x258282c5, 0x74732d6e, 0x0f8b7261, 0x478a1f84, 0x6e6f7426, 0x17657567, + 0x10854789, 0x4e852d20, 0x17901520, 0x6e697723, 0x21ca8c6b, 0xe3856b6e, 0x73696b23, 0x83188573, 0x892d2009, 0x830e84d4, 0x842d2036, 0x054641c4, + 0x75616c24, 0x39416867, 0x840a8405, 0x8411202f, 0x850f856d, 0x89218b7f, 0x656d2879, 0x6c622d68, 0x856b6e61, 0x6f722b30, 0x6e696c6c, 0x79652d67, + 0x99417365, 0x61732705, 0x72632d64, 0x4f840d79, 0xf5830c83, 0x830bda41, 0x4610209d, 0x2d2608b3, 0x6f727473, 0x2e86656b, 0x70727525, 0x46736972, + 0x7427060f, 0x64657269, 0x05000000, 0xe830d0fa, 0x0000004a, +}; + diff --git a/thirdparty/imgui_suite/generated/fonts/src/FontAwesomeSolid.inc b/thirdparty/imgui_suite/generated/fonts/src/FontAwesomeSolid.inc new file mode 100644 index 00000000000..b06fa6f3398 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/FontAwesomeSolid.inc @@ -0,0 +1,4894 @@ +// File: 'extract/fontawesome-free-6.2.0-web/webfonts/fa-solid-900.ttf' (397728 bytes) +// Exported using binary_to_compressed_c.cpp +static const unsigned int FontAwesomeSolid_compressed_size = 234560; +static const unsigned int FontAwesomeSolid_compressed_data[234560/4] = +{ + 0x0000bc57, 0x00000000, 0xa0110600, 0x00000400, 0x00010037, 0x000a0000, 0x00030080, 0x2f534f20, 0x624b6132, 0x0100004c, 0x08158228, 0x6d636028, + 0x1b617061, 0x0000299e, 0x00003c17, 0x6c675a48, 0xe9d86679, 0x00006753, 0x05005075, 0x6568944b, 0x08236461, 0x2b827004, 0x0382ac20, 0x82683621, + 0x43042310, 0x0b828e07, 0x0382e420, 0x6d682428, 0xc0f47874, 0x4f822e16, 0x00008830, 0x6f6cb415, 0x2b0e6163, 0x0000b476, 0x0f82985f, 0x616db828, + 0x84057078, 0x1f821a03, 0x2f820820, 0x616e202b, 0x665f656d, 0x05000f29, 0x313f82c0, 0x6f70ed03, 0xba007473, 0x05004a69, 0x0000d4c4, 0xab83c94c, + 0x0102032f, 0x202f4f00, 0x3c0f5fbf, 0x020b00f5, 0x23008300, 0x79e133df, 0xff250789, 0x018002c0, 0x240f82c0, 0x00020008, 0x20078201, 0x22058300, + 0x82ffc001, 0x80022513, 0xe0ff0000, 0x17850582, 0x04831c84, 0x836d0521, 0x6d052523, 0x15001803, 0x0d830f83, 0x258b0382, 0x04020426, 0x05008403, + 0x4c224c82, 0x23826601, 0x85014721, 0x00f52a07, 0x00840019, 0x09000200, 0x85158203, 0x10012102, 0x05840785, 0x53574129, 0x0080004d, 0x85ffff21, + 0xc0012383, 0x18824000, 0x03820120, 0x39010024, 0x0782a501, 0x0000202c, 0x00008001, 0x18008000, 0x0b82c001, 0x0f004023, 0x840f8201, 0x00c02303, + 0x2f820110, 0x84000121, 0x82002017, 0x8440201f, 0x8f138317, 0x83338303, 0x8207832f, 0x0002211b, 0xc0223382, 0x3f842000, 0x33874f87, 0x13836783, + 0x2020438d, 0x17837f84, 0x43851f83, 0x1f203f87, 0x2021938a, 0x881b8202, 0x232f820f, 0x00000002, 0x17820384, 0x0f881b83, 0x03831b83, 0x20004022, + 0x0f831f88, 0x2f820020, 0x07871b87, 0x1b89438b, 0x82021521, 0xc001230b, 0x03832200, 0x00000223, 0x825b870f, 0x8310200f, 0x8a038c1b, 0x201f8257, + 0x20038300, 0x87938602, 0x8701200f, 0x845785f3, 0x800121b7, 0x83869f86, 0xaf832b83, 0x1f820788, 0xf7880b82, 0x03418384, 0x87278406, 0x856b850b, + 0x20138627, 0x20678501, 0x84078320, 0x84db86cb, 0x410b825b, 0x43410747, 0x8317820c, 0x2123820f, 0x5341021f, 0x888f8b0a, 0x85678517, 0x0040225f, + 0x20df8205, 0x0a234120, 0x57880020, 0x85000021, 0x825b830b, 0x848b8333, 0x0f87411b, 0x0b871f8b, 0x80228387, 0x37822000, 0xc7841020, 0x4f8ac020, + 0x22057741, 0x41000208, 0x27830647, 0x00000023, 0x88038601, 0x83478367, 0x82038b1b, 0x43012013, 0x1f20059d, 0x410ccb41, 0x02200627, 0x200a5b41, + 0x20ab8b01, 0x857f8400, 0x824020eb, 0x06874277, 0x67852384, 0x8f05ff41, 0x060f42c3, 0x6f845783, 0x1f282b89, 0x1f00c001, 0x09000002, 0x27881b8f, + 0x97413b8b, 0x82022009, 0x82002033, 0x88202023, 0x41a78b37, 0x1b920f4f, 0x83079342, 0x85bf8a47, 0x063f42db, 0x82000221, 0x848020ef, 0x8600209f, + 0x8403200b, 0x861f8397, 0x071b43c3, 0x20084741, 0x412f8240, 0x178a0a47, 0xab820020, 0x6f410820, 0x0000220c, 0x220f8220, 0x84c00103, 0x93cb8507, + 0x008022ef, 0x22e78403, 0x82400000, 0x8300202f, 0x200f84bb, 0x20378240, 0x209f8a00, 0x06ab4340, 0x4022ef8b, 0x738c2400, 0x4206e742, 0x0b8c0bcb, + 0x200d2b41, 0x8b3b8220, 0x42002003, 0x0b4114c3, 0x85012006, 0x440f205b, 0x0f240633, 0x0000c001, 0x13410388, 0x85e3870b, 0x225f8513, 0x8e070040, + 0x077341db, 0x8d094f43, 0x938b859b, 0x0a774313, 0x4208f343, 0x102005d3, 0xab85eb88, 0x01204384, 0xb343a782, 0x46402010, 0x1790051b, 0xdf450020, + 0x85178a05, 0x00002353, 0x6382020e, 0x8a07a744, 0x8220201f, 0x2023840b, 0x20678a01, 0x882b8201, 0x4417869b, 0x0f82086b, 0x5b430120, 0x07134506, + 0x13840f83, 0x5b413786, 0x232f820c, 0x10000002, 0x1a200382, 0x02271783, 0x02000040, 0x84000000, 0x8400202f, 0x02102107, 0x37450782, 0x820b8807, + 0x8b878463, 0x205f876b, 0x22e78280, 0x92600080, 0x885b84ff, 0x07e34143, 0x01204382, 0x8a065b42, 0x8477889b, 0x432b827b, 0x002008af, 0x6b86a382, + 0x03460220, 0x0220240d, 0x84200000, 0x841f8227, 0x053f461b, 0x88086345, 0x00802193, 0x22058f43, 0x82180040, 0x0120222f, 0x41eb8280, 0x0341064b, + 0x870f8608, 0x41578393, 0x4b880b87, 0x3f848382, 0x138b4382, 0x40200b8c, 0x200db346, 0x057b4202, 0x9b451220, 0x057b420c, 0x03412420, 0x0200240a, + 0x82100000, 0x82072003, 0x8c002003, 0x483f837b, 0x00200b0f, 0x0022bf82, 0xdf464000, 0x831b8608, 0x8303820f, 0x463f8343, 0x8022059f, 0x27842200, + 0x5b828020, 0x97824020, 0x84065f43, 0x84a7865f, 0x0fbf450b, 0x00220f83, 0x9f872000, 0x20204382, 0x40200382, 0x13830f82, 0x82012021, 0x8803823b, + 0x20db870f, 0x8a678201, 0x8dd38333, 0x41802003, 0x974505cf, 0x210f8608, 0xfb84c001, 0x1382f785, 0x82c00021, 0x48002027, 0x272008bb, 0x1b82c388, + 0x0f200b82, 0x870c1f41, 0x0aeb4827, 0x07821f87, 0x80000824, 0x2f880800, 0x20064b42, 0x84478201, 0x88678203, 0x221b82af, 0x44000002, 0x1b83098b, + 0x01211382, 0x06074180, 0xcf840b85, 0x00201382, 0x02230383, 0x86270040, 0x82072003, 0x85038307, 0x8493860f, 0x4280203b, 0x4f46090f, 0x0dd34210, + 0x43820020, 0x83012021, 0x479f832f, 0x7b430bc7, 0x82778406, 0x070b4387, 0x33842f82, 0xcb870f87, 0x33822784, 0xb342079b, 0x20f7890c, 0x0b034120, + 0x53822390, 0x07821384, 0x33420120, 0x0c8b4106, 0x40004022, 0x40200f88, 0x450a5b4a, 0x5b8306fb, 0x83410220, 0x84078306, 0x887b8203, 0x41538313, + 0x4b420713, 0x22078207, 0x44000002, 0x0b830563, 0x13827786, 0x85012021, 0x01202157, 0x03822b83, 0xcb425f84, 0x4101200a, 0x678406df, 0x038a2b83, + 0x01203b83, 0x9b437b86, 0x413f820c, 0xc0201037, 0x200ed343, 0x05134240, 0x48000221, 0x034309df, 0x42c02008, 0x1f820943, 0x67820020, 0x07822020, + 0xeb880620, 0x2782df87, 0x2020138a, 0x63410b88, 0x087f410a, 0xa7431382, 0x883f8508, 0x8201202f, 0x4402201b, 0x10200503, 0x038c6b82, 0x84072742, + 0x2037853b, 0x44938400, 0x178706ff, 0x10200786, 0x1020078a, 0x210e9b46, 0x63820200, 0xd783138a, 0x4f844b84, 0x5b431b83, 0x4313840a, 0x0f820f97, + 0xf3820120, 0xd7900383, 0x01205b86, 0xcf88cb82, 0x10200b85, 0x03880f82, 0x47420220, 0x85238406, 0x083f485f, 0x738d1b84, 0x82021021, 0x10c34243, + 0x8b83a787, 0x01201f82, 0x2f867b8a, 0x41010e21, 0x5b871383, 0x3b829783, 0xaf8e6f87, 0x17830020, 0x1f830120, 0x1b428020, 0x21d38b05, 0xff440002, + 0x832b850c, 0x0ab3424f, 0x8022b388, 0xbb8c0300, 0x8022cb8b, 0xeb420e00, 0x429b870c, 0x4b840ee3, 0x0a008022, 0x00200784, 0x20080747, 0x419f8400, + 0x00210d2b, 0x203b8302, 0x055f4980, 0x01232f83, 0x43110040, 0x9f8f0817, 0x8e0b8f42, 0x4333940b, 0x638606e3, 0x00206b87, 0x820c9f41, 0x08df4147, + 0x4706b743, 0x078a078f, 0x23841020, 0x8505b341, 0x205b860b, 0x05734101, 0x53840420, 0x0f841f82, 0x6f85d385, 0x460a1b41, 0x17820c6f, 0xdf870120, + 0x04000024, 0x034f0002, 0x86012005, 0x410f8707, 0x4022088b, 0xb78a0f00, 0x42052743, 0x73430a47, 0x8a01200b, 0x000223d3, 0x0f832000, 0x2f4f9784, + 0x08c34305, 0x00000223, 0x41038610, 0x40210d13, 0x20238700, 0x853b8410, 0x832020a7, 0x49012063, 0x7f42064b, 0x4002230b, 0x03822200, 0x4205f74c, + 0x022006d7, 0xa70fe741, 0x8e6b830f, 0x4701202b, 0x53880613, 0xb7844020, 0x8e11834b, 0x08434137, 0x8e078341, 0x8201201f, 0x860220cb, 0x23638313, + 0x02000002, 0xbf4b0386, 0x0cb34208, 0x4f050741, 0xdf440d37, 0x4002230a, 0x538b1800, 0x73420f82, 0x41278209, 0xcf820833, 0x00000227, 0x00400100, + 0x82078411, 0x8301200f, 0x133b4113, 0x3f438020, 0x202b8709, 0x20878302, 0x085b4f40, 0x20130741, 0x8c2b8316, 0x07034103, 0x87073342, 0x0a0352cb, + 0x83445784, 0x4101200a, 0x0220128b, 0x4022a38b, 0x0f821b00, 0xbb881020, 0xff429387, 0x424b8a07, 0xeb8608df, 0x20203382, 0x200cff46, 0x0c335200, + 0x00022023, 0x09cf5100, 0x1b820020, 0x5752f385, 0x82738808, 0x440b841b, 0x00200b2b, 0x4505434a, 0xe34107b7, 0x83cf8208, 0x8b0383d3, 0x200f821b, + 0x51fb8406, 0x1f88065b, 0x37827787, 0x67850220, 0x37841020, 0x63450020, 0x500b8205, 0x2f410dff, 0x41802013, 0x402006a7, 0x8409074b, 0x822b8b4b, + 0xc0012177, 0x420e0353, 0x2f470a57, 0x82022007, 0x21038327, 0x5388c001, 0x3f420020, 0x0edf420c, 0xbb42ff8c, 0x20cb850b, 0x0cef4a00, 0x09000022, + 0x03849783, 0x73886782, 0x01000022, 0x410f8b44, 0x23840743, 0x8b824020, 0x84061f47, 0x410f8527, 0x535305db, 0x201b830a, 0x860f8201, 0x08c347bf, + 0x0b410f84, 0x416f820b, 0x10200a7f, 0x5f83eb84, 0x89112f47, 0x84cf8643, 0x49c02063, 0x57830a07, 0x01200382, 0x4786138b, 0x50400221, 0x7741059b, + 0x17574b0c, 0xbb418020, 0x824f830a, 0x886b8303, 0x230f82d3, 0x04000000, 0x03200382, 0x24200382, 0x0b820382, 0x006e1825, 0x84010003, 0x00032e0f, + 0x1800000a, 0x1804006e, 0x0500004a, 0x0d1c829c, 0x9c0109aa, 0x25002100, 0x39002b00, 0x61005a00, 0x63006200, 0x65006400, 0x67006600, 0x69006800, + 0x6b006a00, 0x6d006c00, 0x6f006e00, 0x71007000, 0x73007200, 0x75007400, 0x77007600, 0x79007800, 0xa3007a00, 0xa900a500, 0xae00ab00, 0xbb00b600, + 0xf700d700, 0x1c201320, 0x39201d20, 0xa4203a20, 0xa920a820, 0xac20aa20, 0xb820b420, 0x2221bd20, 0x91219021, 0x93219221, 0x95219421, 0xba219721, + 0xc421bb21, 0x1e221222, 0x04230323, 0x28231b23, 0x2a232923, 0x99232b23, 0xe923cf23, 0xed23ea23, 0xf123ee23, 0xf823f323, 0xfb23f923, 0xbd24fe23, + 0xb625a025, 0xd025cf25, 0xfc25fb25, 0x01260026, 0x04260326, 0x15261126, 0x20261d26, 0x23262226, 0x2a262526, 0x2e262c26, 0x38262f26, 0x3f263926, + 0x42264026, 0x5b265a26, 0x5d265c26, 0x5f265e26, 0x66266526, 0x7a267226, 0x7e267b26, 0x81268026, 0x83268226, 0x85268426, 0x96269326, 0x9b269926, + 0xa126a026, 0xa326a226, 0xa526a426, 0xa726a626, 0xa926a826, 0xab26aa26, 0xbd26b226, 0xc426be26, 0xc626c526, 0xe926df26, 0xf726ea26, 0xfd26fa26, + 0x02270027, 0x05270427, 0x0a270927, 0x0c270b27, 0x11270f27, 0x13271227, 0x15271427, 0x1d271627, 0x31272127, 0x46274427, 0x4e274c27, 0x54275327, + 0x57275527, 0x95276427, 0x97279627, 0x35293429, 0x1b2b0d2b, 0x242b1c2b, 0x06e0502b, 0x12e00de0, 0x76e041e0, 0x98e086e0, 0xa9e09ae0, 0xb4e0ace0, + 0xbbe0b7e0, 0xd8e0cfe0, 0xe4e0dfe0, 0x3ce131e1, 0x52e140e1, 0x69e163e1, 0x7be16de1, 0x8fe185e1, 0xa8e19be1, 0xbce1b0e1, 0xc8e1c4e1, 0xd5e1d3e1, + 0xede1d7e1, 0xf6e1f3e1, 0x22e209e2, 0x3de22de2, 0x9ce289e2, 0xbbe2b7e2, 0xcae2c5e2, 0xebe2cee2, 0xafe31ee3, 0xf5e3b2e3, 0x45e43ce4, 0x6ce448e4, + 0x77e473e4, 0x90e47be4, 0xa5e494e4, 0xb0e4ade4, 0xcce4b3e4, 0xe6e4dee4, 0xede4ebe4, 0x03e5eee4, 0x2fe525e5, 0x58e54fe5, 0x74e56fe5, 0x8fe587e5, + 0x9de59ae5, 0xaae5a1e5, 0xb4e5afe5, 0x03f002f0, 0x06f005f0, 0x13f00ef0, 0x15f014f0, 0x19f016f0, 0x1bf01af0, 0x1df01cf0, 0x3ef01ef0, 0x44f040f0, + 0x46f045f0, 0x5bf04ef0, 0x5df05cf0, 0x66f05ef0, 0x68f067f0, 0x6ef069f0, 0x80f07ef0, 0x87f086f0, 0x89f088f0, 0x8bf08af0, 0x91f08ef0, 0x96f095f0, + 0x98f097f0, 0xa1f09ef0, 0xaef0a2f0, 0xcef0b2f0, 0xdef0d1f0, 0xe3f0e0f0, 0xe5f0e4f0, 0xeef0e6f0, 0xf5f0f4f0, 0xf7f0f6f0, 0x07f1fef0, 0x0bf108f1, + 0x0ef10cf1, 0x12f111f1, 0x15f114f1, 0x1df11cf1, 0x22f11ef1, 0x27f123f1, 0x29f128f1, 0x2ef12af1, 0x3af135f1, 0x46f13ef1, 0x4ef147f1, 0x55f154f1, + 0x5ef159f1, 0x78f165f1, 0x88f183f1, 0x90f18ef1, 0x95f193f1, 0x97f196f1, 0x9df199f1, 0xb0f1aef1, 0xb3f1b1f1, 0xc9f1bbf1, 0xd8f1cef1, 0xdaf1d9f1, + 0xdef1dbf1, 0xecf1e6f1, 0xf7f1f6f1, 0xfaf1f9f1, 0x01f2fef1, 0x0bf207f2, 0x2df21ef2, 0x39f236f2, 0x4af249f2, 0x50f24ef2, 0x6cf25df2, 0x78f277f2, + 0x7bf27af2, 0x8bf283f2, 0x8df28cf2, 0x91f28ef2, 0x95f292f2, 0x9cf29af2, 0xa4f29ef2, 0xb6f2a8f2, 0xb9f2b7f2, 0xbbf2baf2, 0xbdf2bcf2, 0xc0f2bef2, + 0xc3f2c2f2, 0xd3f2cef2, 0xdcf2d4f2, 0xe7f2e5f2, 0xedf2eaf2, 0xf6f2f2f2, 0xfef2f9f2, 0x0cf305f3, 0x1ef31cf3, 0x32f328f3, 0x5bf338f3, 0x60f35df3, + 0x81f363f3, 0x87f382f3, 0xa5f390f3, 0xc1f3bff3, 0xc9f3c5f3, 0xd1f3cff3, 0xe0f3ddf3, 0xedf3e5f3, 0xfdf3fbf3, 0x06f4fff3, 0x22f410f4, 0x25f424f4, + 0x36f434f4, 0x3cf43af4, 0x41f43ff4, 0x45f443f4, 0x4bf447f4, 0x50f44ef4, 0x58f453f4, 0x5ff45df4, 0x66f462f4, 0x72f46df4, 0x79f474f4, 0x7ff47df4, + 0x87f482f4, 0x8ef48bf4, 0x97f494f4, 0xa1f49ef4, 0xb3f4adf4, 0xbef4baf4, 0xc4f4c2f4, 0xcef4c6f4, 0xdbf4d3f4, 0xe3f4dff4, 0x09f5e6f4, 0x2cf52bf5, + 0x31f530f5, 0x36f535f5, 0x41f540f5, 0x9df591f5, 0xa7f5a2f5, 0xb4f5b1f5, 0xbdf5b8f5, 0xcbf5c5f5, 0xd2f5cef5, 0xdaf5d7f5, 0xdff5dcf5, 0xe4f5e1f5, + 0xebf5e7f5, 0xfdf5eef5, 0x04f601f6, 0x13f610f6, 0x1ff619f6, 0x25f621f6, 0x30f62af6, 0x3cf637f6, 0x44f641f6, 0x4af647f6, 0x51f64ff6, 0x58f655f6, + 0x62f65ef6, 0x6bf666f6, 0x6ff66df6, 0x76f674f6, 0x7cf679f6, 0x84f67ff6, 0x96f689f6, 0xa1f69bf6, 0xa9f6a7f6, 0xb7f6adf6, 0xbef6bbf6, 0xc4f6c0f6, + 0xcff6c8f6, 0xd3f6d1f6, 0xd7f6d5f6, 0xdef6d9f6, 0xe6f6e3f6, 0xedf6e8f6, 0xfaf6f2f6, 0x00f7fcf6, 0x0ef70cf7, 0x17f715f7, 0x22f71ef7, 0x2bf729f7, + 0x3df72ff7, 0x43f740f7, 0x4df747f7, 0x56f753f7, 0x5ff75bf7, 0x6cf769f7, 0x73f770f7, 0x81f77df7, 0x88f784f7, 0x94f78cf7, 0x9cf796f7, 0xa2f7a0f7, + 0xabf7a6f7, 0xb6f7aef7, 0xbdf7baf7, 0xc2f7c0f7, 0xcaf7c5f7, 0xd0f7cef7, 0xdaf7d2f7, 0xecf7e6f7, 0xf3f7eff7, 0xf7f7f5f7, 0x02f8fbf7, 0x0af807f8, + 0x0cf80bf8, 0x10f80df8, 0x16f812f8, 0x1df818f8, 0x2ff82af8, 0x4af83ef8, 0x50f84cf8, 0x5ef853f8, 0x6df863f8, 0x7df879f8, 0x87f882f8, 0x97f891f8, + 0xccf8c1f8, 0xd9f8d7f8, 0xeff8e5f8, 0xfffffff8, 0x21000000, 0x2a002300, 0x3c003000, 0x019d0510, 0xe0052c7c, 0xe012e00d, 0xe059e03f, 0x4597e085, + 0xe324129d, 0x39e131e1, 0x240c9d45, 0xe18fe184, 0x189d459a, 0x9d452120, 0x45cd2010, 0xb120069d, 0x28069d45, 0xe46ce447, 0xe476e473, 0x069d457a, + 0xe4a83a08, 0xe4b3e4af, 0xe4cee4b5, 0xe4e8e4e0, 0xe4eee4ed, 0xe507e5ef, 0xe532e527, 0xe55ae551, 0xe576e571, 0xe591e589, 0xe5a0e59c, 0xe5afe5a9, + 0xf000f0b4, 0xf004f003, 0xf007f006, 0x069d4510, 0x9d451720, 0xf0212c0a, 0xf041f040, 0xf046f045, 0x4550f047, 0x6020069d, 0x26069d45, 0xf070f06a, + 0x4583f080, 0x8d240a9d, 0x93f090f0, 0x32069d45, 0xf0a0f09c, 0xf0a3f0a2, 0xf0c0f0b0, 0xf0d6f0d0, 0x45e2f0e0, 0xe722069d, 0x9d45f0f0, 0xf1f82c06, + 0xf108f100, 0xf10cf109, 0x4510f10d, 0x182a069d, 0x1ef11df1, 0x23f120f1, 0x9d4524f1, 0x2b220806, 0x37f130f1, 0x40f13df1, 0x48f147f1, 0x55f150f1, + 0x5bf156f1, 0x75f160f1, 0x85f182f1, 0x90f18ef1, 0x9d4591f1, 0xf19c2e08, 0xf1b0f1ab, 0xf1b2f1b1, 0xf1c0f1b8, 0x089d45cd, 0xf1dc2e08, 0xf1eaf1e0, + 0xf1f7f1f6, 0xf1faf1f8, 0xf200f2fb, 0xf20af204, 0xf221f217, 0xf238f233, 0xf24af240, 0xf250f24d, 0xf26cf251, 0xf278f271, 0x0c9d4579, 0x9d459020, + 0xf29d2608, 0xf2a7f2a0, 0x109d45b4, 0xc3f2c12a, 0xd0f2c7f2, 0xdbf2d4f2, 0x2a089d45, 0xf2f5f2f1, 0xf3fef2f9, 0x4509f302, 0x3734089d, 0x5df358f3, + 0x62f360f3, 0x82f381f3, 0x90f386f3, 0xbef3a5f3, 0x20069d45, 0x0a9d45cd, 0x9d45fa20, 0xf432240e, 0x4539f436, 0x5c3e169d, 0x61f45ff4, 0x68f466f4, + 0x74f470f4, 0x7df477f4, 0x81f47ef4, 0x8bf484f4, 0x90f48df4, 0x9d4596f4, 0xb83e0808, 0xc0f4bdf4, 0xc6f4c4f4, 0xd3f4cdf4, 0xdef4d6f4, 0xe6f4e2f4, + 0x15f5faf4, 0x2df52cf5, 0x32f531f5, 0x37f536f5, 0x42f541f5, 0x9ff593f5, 0xaaf5a4f5, 0xb6f5b3f5, 0xbff5baf5, 0xcdf5c7f5, 0x9d45d0f5, 0x45de2006, + 0xfc200a9d, 0x280e9d45, 0xf629f624, 0xf637f62e, 0x0c9d453b, 0x58f6532a, 0x62f65df6, 0x69f664f6, 0x2e089d45, 0xf67bf678, 0xf681f67f, 0xf696f687, + 0x45a0f698, 0xb620069d, 0x20069d45, 0x0e9d45c3, 0xe2f6dd36, 0xe8f6e6f6, 0xf0f6ecf6, 0xfcf6faf6, 0x0bf7fff6, 0x14f70ef7, 0x26069d45, 0xf72bf728, + 0x453bf72e, 0x5008089d, 0xf756f751, 0xf75ef75a, 0xf76bf769, 0xf772f76f, 0xf780f77c, 0xf786f783, 0xf793f78c, 0xf79cf796, 0xf7a2f79f, 0xf7a9f7a4, + 0xf7b5f7ad, 0xf7bdf7b9, 0xf7c2f7bf, 0xf7c9f7c4, 0xf7d0f7cc, 0xf7d7f7d2, 0xf7ecf7e4, 0xf7f2f7ef, 0xf7f7f7f5, 0xf802f8fa, 0x089d4505, 0x12f80f2a, + 0x18f815f8, 0x27f81df8, 0x2a149d45, 0xf881f87b, 0xf891f884, 0x45c0f897, 0xff2a0d9d, 0xffdfffe0, 0xffd7ffdb, 0x001000d5, 0x087a0100, 0x202b20b7, + 0x1f212025, 0x1fde1ff5, 0x1fc01fd0, 0x1fb11fbf, 0x1fa81faf, 0x00a31fa6, 0x1f871f00, 0x1f7e1f81, 0x1f2b1f32, 0x1f171f28, 0x1e021f07, 0x1ef21eff, + 0x1ee11eea, 0x1ecb1ed7, 0x1eb91ec4, 0x1eaf1eb2, 0x1ea41ea5, 0x1e8e1ea3, 0x1e871e89, 0x1e5e1e75, 0x1d451e54, 0x1de81dfa, 0x1dcb1dce, 0x1dbe1dc2, + 0x1da01dbc, 0x1cde1c6e, 0x1c9b1cdd, 0x1c4d1c55, 0x1c291c4c, 0x1c211c23, 0x1c0b1c1f, 0x1bf81b08, 0x1bf51bf6, 0x1bf21bf3, 0x1bf01bf1, 0x00ee1bef, + 0x1bed1b00, 0x1be91bea, 0x1be61be7, 0x1be41be5, 0x1be21be3, 0x1be01be1, 0x1bd71bde, 0x11cf1bd3, 0x11000084, 0x22038283, 0x82811182, 0x82802005, + 0x007f2103, 0x11270082, 0x1100007d, 0x827a117c, 0x82782005, 0x1100240e, 0x84751176, 0x11732607, 0x11000072, 0x26038271, 0x116f1170, 0x846c116e, + 0x006a2a15, 0x11691100, 0x11671168, 0x340f8466, 0x11611164, 0x11000060, 0x115e115f, 0x11501151, 0x114b114c, 0x8219834a, 0x11472213, 0x26098646, + 0x00421143, 0x82411100, 0x11402203, 0x2013863f, 0x220d8239, 0x82371138, 0x82362005, 0x82352003, 0x11342803, 0x11321133, 0x822f1130, 0x112e220b, + 0x2a05822d, 0x112b112c, 0x111b112a, 0x83111112, 0x09113b35, 0x00000811, 0x06110711, 0xf7100411, 0x0000f610, 0xf110f510, 0xea10ed10, 0x0b82e110, + 0x0382e020, 0xde10df26, 0xd210db10, 0xd1200982, 0xd0300382, 0xcd10cf10, 0xc010cb10, 0xb910be10, 0xb210b810, 0xaf201382, 0xad240382, 0x9b109f10, + 0x9a200782, 0x10255583, 0x1000008a, 0x20038289, 0x2a0d8487, 0x1000007f, 0x107c107d, 0x826f107a, 0x826d2009, 0x21f98203, 0x1b846b10, 0x00006826, + 0x63106410, 0x5c3a0582, 0x53105410, 0x4f105110, 0x4a104c10, 0x44104810, 0x3e104110, 0x2e102f10, 0x1d822510, 0xf80f1728, 0xf50ff70f, 0x3583f40f, + 0xd20f2708, 0xb60fca0f, 0x9d0f9e0f, 0x970f9a0f, 0x930f940f, 0x860f880f, 0x7b0f820f, 0x00006f0f, 0x660f6c0f, 0x4c0f5d0f, 0x0b824b0f, 0x0f3e2a08, + 0x0f3b0f3d, 0x0f380f3a, 0x0f360f37, 0x0f340f35, 0x0f2f0f31, 0x0f2c0f2e, 0x0f250f28, 0x0f230f24, 0x0f1f0f20, 0x0f1c0f1d, 0x082d821a, 0x150f1628, + 0x110f140f, 0x0f0f100f, 0x080f0e0f, 0xfa0e0000, 0xf10ef50e, 0xee0eef0e, 0xec0eed0e, 0xe20ee60e, 0xde0ee00e, 0x1982dc0e, 0xbb0ec622, 0xba200582, + 0xb9200382, 0xb8200382, 0x11090382, 0x0eb60eb7, 0x0eb40eb5, 0x0eb10eb2, 0x0eaf0eb0, 0x0ead0eae, 0x0eab0eac, 0x0ea50ea7, 0x0ea30ea4, 0x0ea00ea2, + 0x0e9b0e9e, 0x0e8c0e99, 0x0e870e89, 0x0e7a0e7c, 0x0e700e75, 0x0e6d0e6f, 0x0e670e6a, 0x0e5e0e61, 0x0e580e5a, 0x0e540e56, 0x0e4f0e50, 0x0e4c0e4e, + 0x0e450e48, 0x0e420e44, 0x0e400e41, 0x0e3b0e3c, 0x0e390e3a, 0x0e360e37, 0x0e280e34, 0x0e230e27, 0x0e1d0e1e, 0x0e120e1a, 0x0e0d0e0f, 0x0e0a0e0c, + 0x0e010e07, 0x0dff0d00, 0x0dfd0dfe, 0x0df90dfc, 0x0df40df6, 0x0df00df3, 0x0de70dee, 0x0de40de6, 0x0dd90dda, 0x0dd30dd4, 0x0dca0dcd, 0x0dc40dc5, + 0x0db70dc2, 0x0db30db5, 0x0dab0db0, 0x0da60da8, 0x0da10da3, 0x0d970d98, 0x0d940d95, 0x0d8a0d8c, 0x0d880d89, 0x0d7f0d85, 0x0d790d7e, 0x0d760d77, + 0x0d730d75, 0x0d6c0d72, 0x0d680d6a, 0x0d660d67, 0x0d620d65, 0x0d600d61, 0x0d5b0d5f, 0x0d4d0d52, 0x0d490d4b, 0x0d470d48, 0x0d3f0d45, 0x0084003d, + 0x380d3b08, 0x360d370d, 0x330d340d, 0x260d2f0d, 0x140d220d, 0x080d090d, 0x030d050d, 0xf50cf90c, 0xe10cec0c, 0xdd0ce00c, 0xd30cdc0c, 0xa60cce0c, + 0x920c9c0c, 0x0000910c, 0x6d0c7c0c, 0x40840100, 0x05210484, 0x3501b1a8, 0x3a063806, 0x10065806, 0x4c068006, 0xa6050c06, 0xd805d806, 0x01820e06, + 0x0206023e, 0x1c063206, 0x3c062006, 0xec061206, 0x1406fc06, 0xb4055a06, 0xb205b605, 0x7606b405, 0x7e230182, 0x8305ca05, 0x06a82303, 0x358305a8, + 0xde05343a, 0x8a058a05, 0x6e059c06, 0x7a058005, 0x78057005, 0x48066a05, 0x6a051e06, 0x4e280182, 0x6a06e205, 0x5c059205, 0x52204382, 0x882a2782, + 0x8005d005, 0x9806a406, 0x0382b005, 0x8c06742c, 0x8e069406, 0x74066c06, 0x01826e06, 0x66067424, 0x5f828e05, 0xc405c426, 0x2a062606, 0x1e200182, + 0x202c8982, 0xb005fe04, 0x9e05a005, 0x34069c05, 0x26341784, 0x1a061e06, 0x66051e06, 0xee04b405, 0x1e052806, 0x9a053805, 0x90220184, 0x41829805, + 0x96059626, 0x42054405, 0x70247782, 0x3606da05, 0x26384382, 0x14061005, 0x2806e405, 0xee051206, 0xfe040005, 0x2e05fc04, 0x0806fe04, 0x782aad82, + 0xe2059c05, 0x9e04de05, 0x01829c04, 0xe0059a3c, 0x4604e805, 0x7c057e05, 0x76058e04, 0x44044604, 0x2e043004, 0x34047a04, 0x8782b404, 0xe5828420, + 0x92057029, 0xe2049005, 0x98006804, 0xc4052100, 0x18dc1a98, 0x9fd00321, 0x0804255e, 0xae030000, 0x04252583, 0x040000a0, 0x22038238, 0x82a604a2, + 0x841a2005, 0x00902613, 0x04160400, 0x230b8312, 0xb603b603, 0x3a240784, 0x34030000, 0x03830983, 0x040a0423, 0x200f820a, 0x830b836a, 0xb4032303, + 0x07837203, 0x03000023, 0x870785ba, 0x92042505, 0x8a038603, 0x04250d83, 0x03d20334, 0x200984dc, 0x20278240, 0x230984a8, 0x036a033c, 0x03214582, + 0x250d8332, 0x00006403, 0x0382da02, 0x850a3741, 0x8402203b, 0x83238383, 0xfa032303, 0x0784f603, 0x05835220, 0x03210385, 0x840785d4, 0x007a2417, + 0x83480300, 0x83038309, 0x86022199, 0x038d0983, 0x25830320, 0x13857c20, 0x00800327, 0x02c80300, 0x200582e6, 0x20038278, 0x22838276, 0x82440242, + 0x85bc2005, 0x0000231f, 0x03826603, 0x03826420, 0x03826220, 0x74026022, 0x5c200582, 0x03201b83, 0x0b834186, 0x02210391, 0x23138960, 0x9c029c02, + 0x09910d89, 0x15876183, 0xdf840220, 0x079f0d87, 0xeb880220, 0xf8203f88, 0x078f0987, 0x01258385, 0x01000070, 0x2003826e, 0x84038266, 0x40278fc7, + 0x9e24fe0f, 0x9a008a00, 0x20330341, 0x07234301, 0x0001cb09, 0x00030002, 0x00050004, 0x00110006, 0x00130012, 0x00150014, 0x00170016, 0x00190018, + 0x001b001a, 0x001d001c, 0x001f001e, 0x00210020, 0x00230022, 0x00250024, 0x00270026, 0x00290028, 0x002b002a, 0x002d002c, 0x002f002e, 0x019c008d, + 0x01880187, 0x018e0189, 0x0192018f, 0x01950194, 0x019e019a, 0x01a901a8, 0x01ba01aa, 0x01c001bf, 0x01c201c1, 0x01c401c3, 0x01c701c5, 0x01c901c8, + 0x01cd01cc, 0x01d201ce, 0x01d401d3, 0x01d901d5, 0x01e401e0, 0x01eb01ea, 0x01f301f2, 0x020502fe, 0x02150213, 0x02210219, 0x022c022b, 0x0233022e, + 0x02350234, 0x023b0239, 0x02420241, 0x02460243, 0x02480247, 0x024d0249, 0x0250024e, 0x02550252, 0x0273026d, 0x02780275, 0x0280027b, 0x02820281, + 0x02840283, 0x02860285, 0x028e0287, 0x0296028f, 0x029d0297, 0x02a902a4, 0x02bc02b9, 0x02c802c1, 0x02d602ca, 0x02df02d9, 0x02e102e0, 0x02e302e2, + 0x02e502e4, 0x02e702e6, 0x02e902e8, 0x02fb02ea, 0x030003fd, 0x03030301, 0x03090308, 0x030b030a, 0x03150313, 0x03230316, 0x03260325, 0x03280327, + 0x0336032a, 0x03390338, 0x033c033a, 0x0344033e, 0x034f034e, 0x03510350, 0x03530352, 0x035a0355, 0x035d035c, 0x036d0367, 0x03750371, 0x03780377, + 0x037a0379, 0x0381037b, 0x03940387, 0x03d803a7, 0x03df03de, 0x03e103e0, 0x03e303e2, 0x03e903e4, 0x041104ed, 0x045f045e, 0x0492047d, 0x049c0494, + 0x04a304a2, 0x04b504ae, 0x04c104c0, 0x04c704c4, 0x04ce04ca, 0x04e004d7, 0x04f404e8, 0x050a05fb, 0x05240522, 0x0530052b, 0x00350532, 0x0082000c, + 0x82ec2f21, 0x21028204, 0x0482fd03, 0x03862120, 0x07820120, 0x03822320, 0x03822520, 0x00000224, 0x03822a00, 0x03822b20, 0x03820520, 0x03823020, + 0x03823920, 0x03820720, 0x03823c20, 0x03825a20, 0x03821120, 0x03866120, 0x07821620, 0x03866220, 0x07821720, 0x03866320, 0x07821820, 0x03866420, + 0x07821920, 0x03866520, 0x07821a20, 0x03866620, 0x07821b20, 0x03866720, 0x07821c20, 0x03866820, 0x07821d20, 0x03866920, 0x07821e20, 0x03866a20, + 0x07821f20, 0x03866b20, 0x07822020, 0x03866c20, 0x07822120, 0x03866d20, 0x07822220, 0x03866e20, 0x07822320, 0x03866f20, 0x07822420, 0x03867020, + 0x7120e783, 0x03830b82, 0x07822620, 0x03867220, 0x07822720, 0x03867320, 0x07822820, 0x03867420, 0x07822920, 0x03867520, 0x07822a20, 0x03867620, + 0x07822b20, 0x03867720, 0x07822c20, 0x03867820, 0x07822d20, 0x03867920, 0x07822e20, 0x03867a20, 0x07822f20, 0x0385a320, 0x82810221, 0x85a52007, + 0x83022103, 0xa9200782, 0x02210385, 0x200782ca, 0x210385ab, 0x07824202, 0x0385ae20, 0x820a0321, 0x85b62007, 0xbc022103, 0xbb200782, 0x02210385, + 0x20078243, 0x210385d7, 0x07828f01, 0x0385f720, 0x00e40325, 0x85132000, 0xd9012103, 0x1c200782, 0x02210385, 0x2007824d, 0x2103851d, 0x07824e02, + 0x03853920, 0x82460221, 0x853a2007, 0x47022103, 0xa4200782, 0x02210385, 0x2007829d, 0x250385a8, 0x00008202, 0x0385a920, 0x82850221, 0x85aa2007, + 0xd6022103, 0xac200782, 0x02250385, 0x20000080, 0x210385b4, 0x0782e004, 0x0385b820, 0x82320521, 0x85bd2007, 0x84022503, 0x22210000, 0x03210385, + 0x20078209, 0x21038590, 0x0782d201, 0x03859120, 0x82d40121, 0x85922007, 0xd3012103, 0x93200782, 0x01210385, 0x200782d5, 0x20038594, 0x21bf8203, + 0x0b829521, 0x03210382, 0x2007824f, 0x21038597, 0x07825503, 0x0385ba20, 0x822c0221, 0x85bb2007, 0x9a012103, 0xc4200782, 0x02250385, 0x22000033, + 0x21038512, 0x0782d901, 0x03851e20, 0x00ed0325, 0x85032300, 0x48022103, 0x04200782, 0x02210385, 0x20078249, 0x8203851b, 0x2300221e, 0x820b8228, + 0x82022003, 0x2923216b, 0x03820b82, 0x82c80121, 0x852a2007, 0xc9012103, 0x2b200782, 0x04210385, 0x20078211, 0x21038599, 0x0782a901, 0x0385cf20, + 0x82c70121, 0x85e92007, 0x82012003, 0xea232197, 0x03820b82, 0x82c00121, 0x82878307, 0xc5012103, 0xee200b82, 0x01210385, 0x200782bf, 0x210385f1, + 0x07823e03, 0x0385f320, 0x82010321, 0x85f82007, 0xc2012103, 0xf9200782, 0x01210385, 0x200782c3, 0x210385fb, 0x07829201, 0x0385fe20, 0x00970225, + 0x85bd2400, 0x94032503, 0xa0250000, 0x02210385, 0x20078219, 0x210385b6, 0x0782c101, 0x2520a782, 0x02210382, 0x200b8250, 0x210385d0, 0x0782ba01, + 0x25205382, 0x2f840382, 0x0f82fc20, 0x0b830382, 0x00002624, 0x03822600, 0x82960221, 0x20938207, 0x21038226, 0x0b821302, 0x03850320, 0x82300521, + 0x85042007, 0x82042003, 0x1126213f, 0x03820b82, 0x82780221, 0x85152007, 0x22052103, 0x1d200782, 0x02210385, 0x20078205, 0x21038520, 0x0782e804, + 0x03852220, 0x82240521, 0x85232007, 0x0a052103, 0x25200782, 0x04210385, 0x2007829c, 0x2103852a, 0x0782c004, 0x03852c20, 0x82ae0421, 0x852e2007, + 0xb5042103, 0x2f200782, 0x04210385, 0x200782c7, 0x21038538, 0x0782a304, 0x03853920, 0x82520221, 0x853f2007, 0xe1022103, 0x40200782, 0x02210385, + 0x200782df, 0x21038542, 0x0782e002, 0x03855a20, 0x82770321, 0x855b2007, 0x7a032103, 0x5c200782, 0x03210385, 0x2007827b, 0x2103855d, 0x07827503, + 0x03855e20, 0x82780321, 0x855f2007, 0x79032103, 0x65200782, 0x01210385, 0x20078287, 0x21038566, 0x0782d902, 0x03857220, 0x82a90221, 0x857a2007, + 0x200b8403, 0x820b827b, 0x200b8403, 0x820b827e, 0xed032103, 0x80200782, 0x03200385, 0x81209b83, 0x03820b82, 0x82e30321, 0x85822007, 0xe2032103, + 0x83200782, 0x03200385, 0x8420cb83, 0x03820b82, 0x82de0321, 0x85852007, 0xe1032103, 0x93200782, 0x02210385, 0x2007826d, 0x21038596, 0x0782fd02, + 0x03859920, 0x82940121, 0x859b2007, 0x7d042103, 0xa0200782, 0x01210385, 0x200782e0, 0x210385a1, 0x07822e02, 0x0385a220, 0x82e40221, 0x85a32007, + 0xe5022103, 0xa4200782, 0x02210385, 0x200782e6, 0x210385a5, 0x0782e202, 0x0385a620, 0x82e70221, 0x85a72007, 0xe3022103, 0xa8200782, 0x02210385, + 0x200782e8, 0x210385a9, 0x0782e902, 0x0385aa20, 0x82500221, 0x85ab2007, 0x200b8403, 0x820b82b2, 0xea022103, 0xbd200782, 0x02210385, 0x200782c1, + 0x210385be, 0x07827103, 0x0385c420, 0x82300521, 0x85c52007, 0xce042103, 0xc6200782, 0x04210385, 0x200782f4, 0x210385df, 0x07822102, 0x03826f83, + 0x82c40421, 0x8257830b, 0xd8032103, 0xf7200b82, 0x05210385, 0x2007822b, 0x210385fa, 0x0782ca04, 0x0385fd20, 0x33820320, 0x00002724, 0x03822700, + 0x82150221, 0x85022007, 0x200b8403, 0x820b8204, 0x200b8403, 0x820b8205, 0x78022103, 0x09200782, 0x02200385, 0x27215382, 0x820b820a, 0xd7042103, + 0x0b200782, 0x03210385, 0x20078203, 0x2103850c, 0x07820803, 0x03850f20, 0x82440321, 0x85112007, 0x5f042103, 0x12200782, 0x04210385, 0x2007825e, + 0x21038513, 0x07828e01, 0x03851420, 0x93830b84, 0x01210382, 0x2013828f, 0x84038516, 0x821d200b, 0x2103820b, 0x0782a204, 0x2720ff82, 0x04210382, + 0x200b82c1, 0x20038531, 0x20ab8200, 0x826f8327, 0x38032103, 0x46201382, 0x0b840385, 0x0b824c20, 0x47840382, 0x0b824e20, 0x03210382, 0x20078236, + 0x21038553, 0x07821400, 0x03855420, 0x55200b84, 0x03820b82, 0x82010021, 0x85572007, 0x200b8403, 0x820b8264, 0x87012103, 0x95200782, 0x00210385, + 0x20078206, 0x21038596, 0x0782d901, 0x03859720, 0x00e40325, 0x85342900, 0x5d032103, 0x35200782, 0x03250385, 0x2b00005c, 0x2103850d, 0x07824f03, + 0x03851b20, 0x82810321, 0x851c2007, 0x200b8403, 0x820b8224, 0x50022103, 0x03860782, 0x00880124, 0xe782e000, 0x7382e020, 0x82300021, 0x2047820b, + 0x210382e0, 0x0b823200, 0x03851220, 0x82330021, 0x823f2007, 0x00412403, 0x82340000, 0x82592007, 0x82762003, 0x8237200b, 0x82852007, 0x82862003, + 0x8255200b, 0x21a78207, 0x0b8298e0, 0x0b825720, 0x03859a20, 0x2b830020, 0x0b82a920, 0x00210382, 0x2007825a, 0x210385ac, 0x07825b00, 0x0385b420, + 0xbf820020, 0x82b7e021, 0x2003820b, 0x21d78200, 0x0b82bbe0, 0x00210382, 0x2007825e, 0x210385cf, 0x07823505, 0x0385d820, 0x825f0021, 0x85df2007, + 0x60002103, 0xe3200782, 0xe4200382, 0x2405ab49, 0x000031e1, 0x210382e1, 0x07826300, 0x03823920, 0x9f493c20, 0x40e12105, 0x03820b82, 0x82680021, + 0x85522007, 0x69002103, 0x27830782, 0x00210382, 0x830b826a, 0x2103820f, 0x0b826b00, 0x03856d20, 0x826c0021, 0x857b2007, 0x83002003, 0x82842013, + 0x21f3820b, 0x07826e00, 0x03858f20, 0x82700021, 0x21ef8207, 0x6f499be1, 0xa8e12105, 0x03820f82, 0x82730021, 0x85b02007, 0x74002103, 0xbc200782, + 0x00210385, 0x20078275, 0x210385c4, 0x07827600, 0x0385c820, 0x82770021, 0x85d32007, 0x78002103, 0xd5200782, 0x00210385, 0x20078279, 0x210385d7, + 0x07827a00, 0x0385ed20, 0x827b0021, 0x85f32007, 0x7c002103, 0xf6200782, 0x00250385, 0xe200007d, 0x21038509, 0x07827e00, 0x03822120, 0x9b822220, + 0x07827f20, 0x03852d20, 0x82810021, 0x853d2007, 0x82002103, 0x89200782, 0x00210385, 0x20078283, 0x2003859c, 0x21eb8200, 0x0b82b7e2, 0x00200382, + 0xe221f382, 0x820b82bb, 0x86002103, 0xc5200782, 0x00210385, 0x20078287, 0x210385ca, 0x07828800, 0x0382cd20, 0x6b82ce20, 0xeb204f83, 0x03820b82, + 0x008b0025, 0x851ee300, 0x8c002103, 0xaf200782, 0x00210385, 0x2007828d, 0x200382b1, 0x202f82b2, 0x2007828e, 0x250385f5, 0x00009000, 0x03853ce4, + 0x82910021, 0x85452007, 0x92002103, 0x47200782, 0x48200382, 0x93202f82, 0x6c200782, 0x00210385, 0x20078295, 0x21038573, 0x07829600, 0x03827620, + 0x23827720, 0x07829720, 0x03827a20, 0x0b827b20, 0x07829920, 0x03859020, 0x829b0021, 0x85942007, 0x82002003, 0xa5e421eb, 0x03820b82, 0x829d0021, + 0x82a82007, 0x82ad2003, 0x829e202f, 0x82af2007, 0x82b02003, 0x82a4200b, 0x85b32007, 0xa6002103, 0xb5200782, 0xcc200382, 0xa7201782, 0xce200782, + 0xde200382, 0xbf200b82, 0xe0200782, 0xe6200382, 0xd0200b82, 0xe8200782, 0xfb830382, 0x0782d720, 0x0385ed20, 0x82db0021, 0x85ee2007, 0x24778403, + 0xe50000ef, 0x202f8203, 0x200782dc, 0x20038207, 0x200b8225, 0x200782f1, 0x24038227, 0x0100002f, 0x20078210, 0x20038232, 0x200b824f, 0x20078219, + 0x20038251, 0x200b8258, 0x20078237, 0x2003825a, 0x200b826f, 0x2007823f, 0x20038271, 0x200b8274, 0x20078255, 0x20038276, 0x200b8287, 0x20078259, + 0x20038289, 0x200b828f, 0x2007826b, 0x20038291, 0x200b829a, 0x20078272, 0x8203829c, 0x7c0121eb, 0xa0200782, 0xa1200382, 0x7e201782, 0xa9200782, + 0xaa200382, 0x80200b82, 0xfb820782, 0x0382e520, 0x82820121, 0x85b4200b, 0x83012503, 0x00f00000, 0x02200382, 0x84202382, 0xbb820782, 0x0382f020, + 0x822b0221, 0x8204200b, 0x00052303, 0x7b820100, 0x8206f021, 0x2103820b, 0x07828801, 0x03820720, 0x00000e23, 0x208b8201, 0x21cf82f0, 0x0b8213f0, + 0xf0218b82, 0x82178214, 0x3c032103, 0x15200782, 0x01210385, 0x20078295, 0x21038516, 0x07828602, 0x03821720, 0x0121f782, 0x20078296, 0x2103851a, + 0x07825003, 0x03851b20, 0x82530321, 0x851c2007, 0x99012103, 0x1d200782, 0x02210385, 0x20078273, 0x2003851e, 0x21f38201, 0x0b8221f0, 0x77823e20, + 0x07829b20, 0x03854020, 0x82440321, 0x82412007, 0x21078203, 0x0782b901, 0x03854520, 0x827b0221, 0x85462007, 0x78022103, 0x47200782, 0x4e200382, + 0xbd203b82, 0x7b830782, 0x0b825b20, 0x0b82c520, 0x03855c20, 0x82cc0121, 0x855d2007, 0xcd012103, 0x5e200782, 0x01210385, 0x200782d1, 0x20038260, + 0x202f8266, 0x200782d2, 0x21038567, 0x07820600, 0x03856820, 0x82d90121, 0x85692007, 0x05002103, 0x6a200782, 0x6e240382, 0xda010000, 0x70200782, + 0x7e200382, 0xdf200b82, 0x80200782, 0x01210385, 0x200782ee, 0x20038283, 0x20178286, 0x200782ef, 0x21038587, 0x07828e02, 0x03858820, 0x828f0221, + 0x85892007, 0xf3012103, 0x8a200782, 0x01200385, 0x8b202b83, 0x03820b82, 0x82f40121, 0x828d2007, 0x21378203, 0x0782f501, 0x03829020, 0x53829120, + 0x0782f720, 0x03829320, 0x0b829520, 0x0782f920, 0x03859620, 0x82190221, 0x85972007, 0xa8012103, 0x98200782, 0x01210385, 0x200782fc, 0x2003829c, + 0x202f829e, 0x200782fd, 0x240382a0, 0x020000a1, 0x20078200, 0x210385a2, 0x07823902, 0x0382a320, 0x1782ae20, 0x07820220, 0x0382b020, 0x0b82b220, + 0x07820e20, 0x0382c020, 0x0b82ce20, 0x07821120, 0x0382d020, 0x0b82d120, 0x07822020, 0x0382d620, 0x0b82de20, 0x07822220, 0x0385e020, 0x822b0221, + 0x82e22007, 0x82e32003, 0x822c2017, 0x85e42007, 0x94042103, 0xe5200782, 0x01200385, 0xe6201383, 0x03820b82, 0x82f20121, 0x82e72007, 0x82ee2003, + 0x822e202f, 0x82f02007, 0x21f78203, 0x07823602, 0x0385f520, 0x823a0321, 0x85f62007, 0x87022103, 0xf7200782, 0x02210385, 0x200782a4, 0x200382f8, + 0x243b82fe, 0xf100003b, 0x20038200, 0x200b8207, 0x20078242, 0x21038508, 0x07825a03, 0x03820920, 0x00000b24, 0x07824a02, 0x03850c20, 0x82500221, + 0x820d2007, 0x820e2003, 0x824d2017, 0x82102007, 0x21df8203, 0x07824f02, 0x03851220, 0x82670321, 0x85142007, 0xea012103, 0x15200782, 0x01210385, + 0x200782eb, 0x20038218, 0x203b821c, 0x20078251, 0x2103851d, 0x07829e01, 0x03851e20, 0x82560221, 0x82202007, 0x82222003, 0x82572023, 0x85232007, + 0xf3012103, 0x24200782, 0x27200382, 0x9b831782, 0x0b822820, 0x00200382, 0x29206783, 0x03820b82, 0x825e0221, 0x852a2007, 0x01002103, 0x2b200782, + 0x2e200382, 0x5f202f82, 0x30200782, 0x35200382, 0x63200b82, 0x37200782, 0x3a200382, 0x69200b82, 0x3d200782, 0x3e200382, 0x6d200b82, 0x40200782, + 0x46200382, 0x6f200b82, 0x47200782, 0x02210385, 0x20078275, 0x20038248, 0x2017824e, 0x83078276, 0x825420ff, 0x827d200b, 0x8555200b, 0x03002103, + 0x56200782, 0x59200382, 0x82201782, 0x5b200782, 0x8b820382, 0x82860221, 0x82602007, 0x82652003, 0x828a2017, 0x204b8307, 0x200b8278, 0x830b8290, + 0x82832027, 0x8294200b, 0x8285200b, 0x82882003, 0x8296200b, 0x858e2007, 0x52032103, 0x27830782, 0x03210382, 0x200b8251, 0x20038291, 0x20238293, + 0x2007829a, 0x21038595, 0x07829d02, 0x03823383, 0x82410221, 0x8597200b, 0x9e022103, 0x99200782, 0x02210385, 0x2007829f, 0x2003829c, 0x203b829d, + 0x200782a0, 0x200382ab, 0x200b82ae, 0x200782a2, 0x210385b0, 0x0782a602, 0x0385b120, 0x82390321, 0x82b22007, 0x82b32003, 0x82a72023, 0x82b82007, + 0x82bb2003, 0x82a9200b, 0x82c02007, 0x82c92003, 0x82ad200b, 0x82cd2007, 0x82ce2003, 0x82b7200b, 0x85d82007, 0xb9022103, 0xd9200782, 0x0b840385, + 0x0b82da20, 0x02210382, 0x200782ba, 0x210385db, 0x07825002, 0x0382dc20, 0x3b82de20, 0x0782bb20, 0x0382e020, 0x0b82e620, 0x0782be20, 0x0382ea20, + 0x0b82ec20, 0x0782c520, 0x0385f620, 0x82c80221, 0x85f72007, 0x200b8403, 0x200b82f8, 0x822382f9, 0xfaf12187, 0x03820b82, 0x82150021, 0x82fb2007, + 0x82fe2003, 0x00cb2417, 0x8200f200, 0x82012003, 0x82cf200b, 0x82042007, 0x82072003, 0x82d1200b, 0x820a2007, 0x000b2403, 0x82d50200, 0x82172007, + 0x821e2003, 0x82d7200b, 0x82212007, 0x822d2003, 0x82df200b, 0x82332007, 0x82362003, 0x2187820b, 0x0b8238f2, 0x0b823920, 0x0782f020, 0x03824020, + 0x0b824920, 0x0782f220, 0x03854a20, 0x73820220, 0x824df221, 0x824e200b, 0x82fc2017, 0x20db8207, 0x200382f2, 0x217b8203, 0x0f8251f2, 0x17825d20, + 0x0782fe20, 0x03856c20, 0x7b820320, 0x8271f221, 0x0077240b, 0x820c0300, 0x85782007, 0x13032103, 0x79200782, 0x7a220382, 0x0b840000, 0x0b827b20, + 0x03210382, 0x200782a7, 0x20038583, 0x20478301, 0x820b828b, 0x15032103, 0x8c200782, 0x0b840385, 0x0b828d20, 0x03210382, 0x20078216, 0x8403858e, + 0x8290200b, 0x8291200b, 0x82172053, 0x85922007, 0x02002103, 0x95200782, 0x00210385, 0x20078204, 0x2103859a, 0x07821903, 0x03859c20, 0x82ce0121, + 0x829d2007, 0x829e2003, 0x821a203b, 0x82a02007, 0x82a42003, 0x821c200b, 0x20938307, 0x200b82a8, 0x200b8221, 0x200382b4, 0x200b82b6, 0x20078223, + 0x210385b7, 0x07822503, 0x0385b920, 0x82260321, 0x85ba2007, 0x200b8403, 0x820b82bb, 0x27032103, 0xbc200782, 0x0b840385, 0x0b82bd20, 0x03210382, + 0x20078228, 0x840385be, 0x82c0200b, 0x2103820b, 0x07828901, 0x0382c120, 0x6b82c220, 0x07822920, 0x0385c320, 0x822a0321, 0x82c72007, 0x21af8203, + 0x07822b03, 0x0382d020, 0x2382d320, 0x07823320, 0x0385d420, 0x826d0321, 0x82db2007, 0x82dc2003, 0x82372017, 0x85e52007, 0x39032103, 0xe7200782, + 0x03210385, 0x2007823a, 0x210385ea, 0x07823b03, 0x0385ed20, 0x823c0321, 0x82f12007, 0x82f22003, 0x823d203b, 0x82f52007, 0x82f62003, 0x823f200b, + 0x85f92007, 0x41032103, 0xfe200782, 0x03250385, 0xf3000042, 0x20038202, 0x20238205, 0x20078243, 0x24038209, 0x0300000c, 0x20078247, 0x2103851c, + 0x07824b03, 0x03851e20, 0x824c0321, 0x85282007, 0x4d032103, 0x32200782, 0x01210385, 0x820782aa, 0x38f321ab, 0x4e203b82, 0x58200b82, 0x5b200382, + 0x50200b82, 0x5d200782, 0x03210385, 0x20078254, 0x21038560, 0x07825503, 0x03826220, 0x23826320, 0x07825620, 0x03858120, 0x82340221, 0x85822007, + 0x35022103, 0x86200782, 0x87200382, 0x4f832382, 0x0b829020, 0x03210382, 0x2007825a, 0x200385a5, 0x21638203, 0x0b82bef3, 0x2382bf20, 0x07825c20, + 0x0385c120, 0x825e0321, 0x85c52007, 0x5f032103, 0xc9200782, 0x03210385, 0x20078260, 0x200382cd, 0x202f82cf, 0x20078261, 0x210385d1, 0x07826403, + 0x0385dd20, 0x82650321, 0x85e02007, 0x66032103, 0xe5200782, 0x03210385, 0x20078267, 0x210385ed, 0x07826803, 0x0382fa20, 0x4782fb20, 0x07826920, + 0x0385fd20, 0x82920421, 0x85ff2007, 0x6b032503, 0x06f40000, 0x03210385, 0x2007826c, 0x21038510, 0x07826d03, 0x03852220, 0x826e0321, 0x85242007, + 0x6f032103, 0x25200782, 0x03210385, 0x20078223, 0x20038232, 0x205f8234, 0x20078270, 0x21038536, 0x07827303, 0x03823920, 0x17823a20, 0x07827420, + 0x03853c20, 0x82760321, 0x853f2007, 0x77032103, 0x41200782, 0x03210385, 0x20078278, 0x21038543, 0x07827903, 0x03854520, 0x827a0321, 0x85472007, + 0x7b032103, 0x4b200782, 0x03210385, 0x2007827c, 0x2103854e, 0x07827d03, 0x03855020, 0x827e0321, 0x85532007, 0x7f032103, 0x58200782, 0x03210385, + 0x20078280, 0x2003825c, 0x208f825d, 0x20078281, 0x2103855f, 0x07828303, 0x03826120, 0x17826220, 0x07828420, 0x03856620, 0x82860321, 0x82682007, + 0x826d2003, 0x82872017, 0x20db8307, 0x200b8272, 0x200b828d, 0x21038574, 0x07829003, 0x7920c383, 0x91201782, 0x7d200b82, 0x02210385, 0x8307823b, + 0x827f2087, 0x82942017, 0x8281200b, 0x82822003, 0x8296200b, 0x82842007, 0x214f8203, 0x07829803, 0x03858b20, 0x829c0321, 0x20578307, 0x2023828e, + 0x830b829d, 0x82942057, 0x829f200b, 0x8296200b, 0x82972003, 0x82a4200b, 0x859e2007, 0xa6032103, 0xa1200782, 0x03200385, 0xf4214b82, 0x820b82ad, + 0xa7032103, 0xb3200782, 0x03210385, 0x200782a8, 0x200382b8, 0x203b82ba, 0x200782a9, 0x200382bd, 0x200b82be, 0x200782ac, 0x200382c0, 0x200b82c2, + 0x200782ae, 0x210385c4, 0x0782b103, 0x0385c620, 0x82b20321, 0x82cd2007, 0x82ce2003, 0x82b32023, 0x85d32007, 0xb5032103, 0xd6200782, 0xdb200382, + 0xb6201782, 0xde200782, 0xdf200382, 0xbc200b82, 0xe2200782, 0xe3200382, 0xbe200b82, 0xe6200782, 0x03210385, 0x24078223, 0xf50000fa, 0x20178209, + 0x200782c0, 0x20038215, 0x200b822b, 0x200782d0, 0x2103852c, 0x07821200, 0x03822d20, 0x17823020, 0x0782e720, 0x03853120, 0x82130021, 0x82322007, + 0x82352003, 0x82eb2017, 0x85362007, 0x11002103, 0x37200782, 0x40200382, 0xef201782, 0x41200782, 0x00210385, 0x20078204, 0x20038242, 0x20178291, + 0x200782f9, 0x24038293, 0x0400009d, 0x20078249, 0x2003829f, 0x200b82a2, 0x20078254, 0x200382a4, 0x200b82a7, 0x20078258, 0x200382aa, 0x200b82b1, + 0x2007825c, 0x200382b3, 0x200b82b4, 0x20078264, 0x200382b6, 0x200b82b8, 0x20078266, 0x200382ba, 0x200b82bd, 0x20078269, 0x200382bf, 0x200b82c5, + 0x2007826d, 0x200382c7, 0x200b82cb, 0x20078274, 0x200382cd, 0x200b82ce, 0x83078279, 0x82d220db, 0x827b200b, 0x85d7200b, 0x7e042103, 0xda200782, + 0x04210385, 0x2007827f, 0x210385dc, 0x07828004, 0x0382de20, 0x2f82df20, 0x07828120, 0x0385e120, 0x82830421, 0x85e42007, 0x84042103, 0xe7200782, + 0x04210385, 0x20078285, 0x210385eb, 0x07828604, 0x0385ee20, 0x82870421, 0x82fc2007, 0x82fd2003, 0x00882447, 0x8501f600, 0x8a042103, 0x04200782, + 0x04210385, 0x2007828b, 0x21038510, 0x07828c04, 0x03851320, 0x828d0421, 0x85192007, 0x8e042103, 0x1f200782, 0x04210385, 0x2007828f, 0x21038521, + 0x07829004, 0x03822420, 0x00002524, 0x07829104, 0x03822920, 0x0b822a20, 0x07829320, 0x03822e20, 0x0b823020, 0x07829520, 0x03853720, 0x82980421, + 0x823b2007, 0x823c2003, 0x82992017, 0x85412007, 0x9b042103, 0x44200782, 0x04210385, 0x2007829c, 0x21038547, 0x07829d04, 0x03854a20, 0x829e0421, + 0x854f2007, 0x9f042103, 0x51200782, 0x04210385, 0x200782a0, 0x20038253, 0x20538255, 0x200782a1, 0x21038558, 0x0782a404, 0x03825d20, 0x17825e20, + 0x0782a520, 0x03856220, 0x82a70421, 0x82642007, 0x82662003, 0x82a82017, 0x82692007, 0x826b2003, 0x82ab200b, 0x856d2007, 0xae042103, 0x6f200782, + 0x04210385, 0x200782af, 0x21038574, 0x0782b004, 0x03857620, 0x82b10421, 0x82782007, 0x82792003, 0x82b2203b, 0x827b2007, 0x827c2003, 0x82b4200b, + 0x857f2007, 0xb6042103, 0x81200782, 0x84200382, 0xb7201782, 0x87200782, 0x89200382, 0xbb200b82, 0x96200782, 0x04210385, 0x200782be, 0x20038298, + 0x2017829b, 0x830782bf, 0x21c782cf, 0x0b82c304, 0x0382ab83, 0x82c50421, 0x85a9200b, 0xc6042103, 0xad200782, 0x04210385, 0x830782c7, 0x215b8263, + 0x0b82c804, 0x03825783, 0x82ca0421, 0x8257830b, 0xcb042103, 0xc0200b82, 0x04210385, 0x830782cc, 0x82c42057, 0x82cd206b, 0x85c8200b, 0xcf042103, + 0x03860782, 0x82d00421, 0x85d1200b, 0x83042003, 0x82d32007, 0x2103820b, 0x0782d204, 0x0385d520, 0x0f820420, 0x82d7f621, 0x2103820b, 0x0782d404, + 0x0385d920, 0x82d50421, 0x82dd2007, 0x82de2003, 0x82d6205f, 0x82e22007, 0x82e32003, 0x82d8200b, 0x85e62007, 0xda042103, 0xe8200782, 0x04210385, + 0x200782db, 0x200382ec, 0x202382ed, 0x200782dc, 0x200382f0, 0x200b82f2, 0x200782de, 0x210385fa, 0x0782e104, 0x0385fc20, 0x4f830420, 0x0000ff24, + 0x238200f7, 0x0782e320, 0x03820b20, 0x0b820c20, 0x0782e520, 0x03850e20, 0x82e70421, 0x82142007, 0x82152003, 0x21678217, 0x0b8217f7, 0x04210382, + 0x200782ea, 0x2103851e, 0x0782eb04, 0x03852220, 0x7f820420, 0x8228f721, 0x8229200b, 0x2187822f, 0x0b822bf7, 0x04210382, 0x200782ef, 0x2003822e, + 0x2017822f, 0x200782f0, 0x2003823b, 0x200b823d, 0x200782f2, 0x21038540, 0x0782f504, 0x03854320, 0x82f60421, 0x85472007, 0xf7042103, 0x4d200782, + 0x04210385, 0x200782f8, 0x20038251, 0x203b8253, 0x200782f9, 0x20038556, 0x21d38204, 0x0b825af7, 0x17825b20, 0x0782fd20, 0x03825e20, 0x0b825f20, + 0x0782ff20, 0x03856920, 0x82010521, 0x826b2007, 0x006c2403, 0x82020500, 0x826f2007, 0x82702003, 0x8204200b, 0x82722007, 0x82732003, 0x8206200b, + 0x827c2007, 0x827d2003, 0x8208200b, 0x82802007, 0x82812003, 0x820a200b, 0x82832007, 0x82842003, 0x820c200b, 0x82862007, 0x82882003, 0x820e200b, + 0x858c2007, 0x11052103, 0x93200782, 0x94200382, 0x12201782, 0x96200782, 0x05210385, 0x20078214, 0x2103859c, 0x07821505, 0x03829f20, 0x0000a024, + 0x07821605, 0x0385a220, 0x82180521, 0x82a42007, 0x00a62403, 0x82190500, 0x82a92007, 0x82ab2003, 0x821c200b, 0x82ad2007, 0x82ae2003, 0x821f200b, + 0x82b52007, 0x82b62003, 0x8221200b, 0x82b92007, 0x82ba2003, 0x8223200b, 0x85bd2007, 0x25052103, 0xbf200782, 0xc0200382, 0x26201782, 0xc2200782, + 0x05210385, 0x20078228, 0x200382c4, 0x201782c5, 0x20078229, 0x200382c9, 0x200b82ca, 0x2007822b, 0x200382cc, 0x200b82ce, 0x2007822d, 0x210385d0, + 0x07823005, 0x0385d220, 0x82310521, 0x82d72007, 0x82da2003, 0x82322023, 0x82e42007, 0x82e62003, 0x8236200b, 0x85ec2007, 0x39052103, 0xef200782, + 0x05210385, 0x2007823a, 0x200382f2, 0x202382f3, 0x2007823b, 0x210385f5, 0x07823d05, 0x0385f720, 0x823e0521, 0x82fa2007, 0x82fb2003, 0x003f2423, + 0x8502f800, 0x41052103, 0x05200782, 0x07200382, 0x42201782, 0x0a200782, 0x01210385, 0x20078295, 0x2103850b, 0x07828d00, 0x03850c20, 0x0d201784, + 0x03820b82, 0x82450521, 0x820f2007, 0x82102003, 0x8246203b, 0x85122007, 0x48052103, 0x15200782, 0x16240382, 0x49050000, 0x18200782, 0x05210385, + 0x2007824b, 0x2103851d, 0x07824c05, 0x03822720, 0x23822a20, 0x07824d20, 0x03852f20, 0x82510521, 0x20ab8207, 0x210382f8, 0x0b825205, 0x03854a20, + 0x82530521, 0x82338307, 0x54052103, 0x50200b82, 0x05210385, 0x83078255, 0x2103821b, 0x0b825605, 0x03855e20, 0x82570521, 0x85632007, 0x58052103, + 0x6d200782, 0x05210385, 0x20078259, 0x21038579, 0x07825a05, 0x03827b20, 0x83827d20, 0x07825b20, 0x03828120, 0x0b828220, 0x84204383, 0x87200b82, + 0x60200b82, 0x91200782, 0x05210385, 0x20078264, 0x21038597, 0x07826505, 0x0382c020, 0x2382c120, 0x07826620, 0x0385cc20, 0x82680521, 0x85d72007, + 0x69052103, 0xd9200782, 0x05210385, 0x2007826a, 0x210385e5, 0x07820b03, 0x0385ef20, 0x826b0521, 0x85ff2007, 0x6c052503, 0x7ff10100, 0x00260384, + 0x0100f803, 0x038408f3, 0xfe040022, 0x0b200782, 0x00220384, 0x07820505, 0x03840d20, 0x33040022, 0x0e200782, 0x00220384, 0x07823404, 0x03840f20, + 0x35040022, 0x10200782, 0x00210384, 0x20378302, 0x240b8219, 0x02000019, 0x20078297, 0x22038421, 0x822d0300, 0x84262007, 0x04002203, 0x200782f6, + 0x22038427, 0x82f40400, 0x84292007, 0x05002203, 0x20078203, 0x2203842a, 0x82040500, 0x24338307, 0x0500002d, 0x200b8246, 0x22038431, 0x82b80300, + 0x84322007, 0x02002203, 0x200782ac, 0x22038436, 0x824a0500, 0x844b2007, 0x01002203, 0x200782fa, 0x2203844e, 0x827c0400, 0x844f2007, 0x200b8503, + 0x200b8268, 0x20538268, 0x20078247, 0x2203846a, 0x821a0400, 0x84742007, 0x03002203, 0x2007823a, 0x22038477, 0x82bf0300, 0x84782007, 0x04002103, + 0x81207383, 0x81240b82, 0xdb010000, 0x82200782, 0x00220384, 0x0782cd02, 0x03849320, 0xa1020022, 0xf3830782, 0x00009724, 0x0b82b603, 0x03849920, + 0x60030022, 0x9e200782, 0x00220384, 0x07828a01, 0x03849f20, 0x83020021, 0x82a72073, 0x82a7200b, 0x20138353, 0x200b82a8, 0x203b82a8, 0x200782f7, + 0x210384ad, 0x4f830400, 0x0b82b220, 0x1782b220, 0x0782dd20, 0x0384b520, 0x85010022, 0xc0200782, 0x00220384, 0x07827203, 0x0384c120, 0x56020022, + 0xc2200782, 0x00220384, 0x07822f05, 0x0384c320, 0xe6040022, 0xc5200782, 0x00220384, 0x07825704, 0x0384c620, 0xf8010022, 0xc8200782, 0x00220384, + 0x07827d03, 0x0384ca20, 0x83040021, 0x24db8353, 0x020000cd, 0x201382dc, 0x220384d0, 0x82830300, 0x84d32007, 0x03002203, 0x20078282, 0x220384d4, + 0x82e20400, 0x84d62007, 0x04002203, 0x20078277, 0x210384d9, 0xd7830400, 0x0b82db20, 0x0000db24, 0x0782af04, 0x0384e020, 0x95010022, 0xe2200782, + 0x00220384, 0x0782a402, 0x0384e520, 0x3b020022, 0xe8200782, 0x00220384, 0x07824a04, 0x0384eb20, 0x00040022, 0xf4200782, 0x00220384, 0x07829e01, + 0x0384f720, 0xa5010026, 0x04f40100, 0x00220384, 0x0782cf04, 0x03840820, 0xcb040022, 0x09200782, 0x00210384, 0x21af8204, 0x0b820ef4, 0x00000e24, + 0x0782de04, 0x03841520, 0xd2040022, 0x1f200782, 0x00220384, 0x07822f04, 0x03844120, 0x83010021, 0x824d2023, 0x004d240b, 0x828e0200, 0x844e2007, + 0x02002203, 0x2007828f, 0x22038451, 0x82dc0300, 0x84552007, 0x04002203, 0x2007820a, 0x22038464, 0x82890100, 0x84652007, 0x03002203, 0x200782c6, + 0x2203847b, 0x82d80400, 0x84802007, 0x04002203, 0x83078203, 0x00892327, 0xcb820300, 0x6383f420, 0x0b828e20, 0x17825b20, 0x03849420, 0x1c050022, + 0x99200782, 0x00220384, 0x07828701, 0x03849a20, 0x9b200b85, 0x9b210b82, 0x200b8500, 0x200b829c, 0x200b869c, 0x200b82a1, 0x20b382a1, 0x20078232, + 0x220384a3, 0x82c00200, 0x84a72007, 0x01002203, 0x200782bb, 0x220384a9, 0x82420300, 0x84ac2007, 0x03002103, 0xb0201f83, 0xb0240b82, 0x4c050000, + 0xb2200782, 0x90820384, 0xb3200782, 0x00220384, 0x0782fe01, 0xbb203f83, 0x4a205f82, 0xbc200b82, 0x00220384, 0x07820f02, 0x0384be20, 0x18020022, + 0xbf200782, 0x00220384, 0x0782da03, 0xc0207b83, 0x0b834682, 0x0f82c120, 0xa782c120, 0x0782ea20, 0x0384c220, 0xeb010022, 0xc4200782, 0x00220384, + 0x07828602, 0x0384c520, 0x66020022, 0xc6200782, 0x0b850384, 0x0b82cb20, 0x4782cb20, 0x07824d20, 0x0384cc20, 0xf5010022, 0xcd200782, 0x00220384, + 0x07821103, 0x0384ce20, 0x17020022, 0xcf200782, 0x00220384, 0x0782fc03, 0x0384d420, 0x83010021, 0x82d620e3, 0x82d6200b, 0x82d32047, 0x84dc2007, + 0x04002203, 0x200782e7, 0x220384dd, 0x824b0300, 0x84de2007, 0x01002203, 0x200782fb, 0x220384df, 0x82490500, 0x84e02007, 0x02002203, 0x200782a3, + 0x220384e1, 0x82270500, 0x84e22007, 0x02002203, 0x20078201, 0x210384e6, 0xcb830300, 0x0b82f020, 0x0000f024, 0x0782c502, 0x0384f120, 0x62030022, + 0xf6200782, 0x00220384, 0x07829301, 0x0384f720, 0xef010022, 0x6f830782, 0x0000fb24, 0xda836905, 0x00220384, 0x0782e301, 0xf5215782, 0x20b38201, + 0x200b8257, 0x22038404, 0x823d0300, 0x84082007, 0x01002203, 0x200782a1, 0x2203840a, 0x82a20100, 0x840b2007, 0x02002203, 0x200782f2, 0x2203840c, + 0x82c40200, 0x840d2007, 0x01002103, 0xf5219b82, 0x240b8211, 0x01000011, 0x200782f0, 0x22038412, 0x829d0100, 0x84132007, 0x01002203, 0x200782fd, + 0x22038414, 0x82390200, 0x84152007, 0x02002203, 0x200782c8, 0x22038416, 0x82a80100, 0x84172007, 0x02002103, 0x18204383, 0x18240b82, 0x9b020000, + 0x25200782, 0x00220384, 0x0782dd01, 0x03842720, 0x83020021, 0x8228208b, 0x0028240b, 0x82d90400, 0x842c2007, 0x04002203, 0x2007828c, 0x22038434, + 0x82500200, 0x84352007, 0x200b8503, 0x200b8247, 0x832f8247, 0x824920d7, 0x8249200b, 0x82b3200b, 0x844a2007, 0x03002203, 0x200782ab, 0x2203844b, + 0x82ad0400, 0x844c2007, 0x04002203, 0x200782b2, 0x2203844d, 0x82c20400, 0x844e2007, 0x04002203, 0x200782da, 0x22038453, 0x82960100, 0x846b2007, + 0x02002203, 0x20078201, 0x2203846e, 0x82d30300, 0x84712007, 0x04002203, 0x200782e8, 0x22038475, 0x82db0200, 0x84772007, 0x04002203, 0x200782ea, + 0x2203847b, 0x82fb0100, 0x847d2007, 0x05002203, 0x2007825a, 0x22038482, 0x822b0200, 0x84882007, 0x82048203, 0x848a2002, 0x03002203, 0x20078245, + 0x2203848b, 0x825e0400, 0x24ff8307, 0x0200008c, 0x200b82cc, 0x22038495, 0x82430500, 0x249f8307, 0x03000096, 0x200b8206, 0x220384a4, 0x82870100, + 0x84a52007, 0x03002103, 0xa8206b83, 0xa8240b82, 0xa9010000, 0x03850782, 0xc7020022, 0xaa200b82, 0x00220384, 0x07821802, 0x0384b120, 0x68050022, + 0xb4200782, 0x00210384, 0x21328202, 0x0b82b6f5, 0x0882b620, 0xb7203783, 0xb7240b82, 0xa3020000, 0xb8200782, 0x00220384, 0x0782da03, 0x0384b920, + 0x83020021, 0x82bb2077, 0x82bb200b, 0x82b22023, 0x84bf2007, 0x01002203, 0x200782ea, 0x220384c1, 0x82eb0100, 0x84cb2007, 0x02002203, 0x20078286, + 0x850384ce, 0x82d5203b, 0x82d5200b, 0x823420cb, 0x84d62007, 0x03002203, 0x20078233, 0x220384d8, 0x829b0100, 0x84d92007, 0x01002203, 0x2007828f, + 0x220384e9, 0x82e40100, 0x84ea2007, 0x01002203, 0x200782f2, 0x250384fa, 0x00130300, 0xba82f601, 0x00220382, 0x0b823704, 0x03840120, 0x50040022, + 0x02200782, 0x00220384, 0x07823f04, 0x03840320, 0x38040022, 0x04200782, 0x00220384, 0x07823904, 0x03840520, 0x3a040022, 0x06200782, 0x00220384, + 0x07823c04, 0x03840920, 0xba030022, 0x0a200782, 0x00220384, 0x07826804, 0x03840d20, 0x3b040022, 0x10200782, 0x00220384, 0x07825302, 0x03841720, + 0x4c040022, 0x18200782, 0x00220384, 0x07824e04, 0x03841920, 0x4d040022, 0x1b200782, 0x00220384, 0x07824004, 0x03841c20, 0x42040022, 0x1d200782, + 0x00220384, 0x07824104, 0x03842020, 0x83040021, 0x82222067, 0x0022240b, 0x82650400, 0x84262007, 0x04002203, 0x20078231, 0x2203842b, 0x82750400, + 0x842c2007, 0x04002203, 0x20078236, 0x2203842d, 0x82640400, 0x842e2007, 0x04002203, 0x20078270, 0x22038433, 0x82300400, 0x20278307, 0x20538236, + 0x830b8258, 0x0042247b, 0x82510200, 0x8444200b, 0x04002203, 0x20078259, 0x22038481, 0x82ec0300, 0x84862007, 0x02002203, 0x200782f0, 0x2203848a, + 0x82830100, 0x848d2007, 0x02002203, 0x200782d4, 0x22038490, 0x82660400, 0x84912007, 0x02002203, 0x2007823c, 0x22038496, 0x82ab0200, 0x84972007, + 0x04002203, 0x20078284, 0x22038498, 0x82aa0200, 0x849a2007, 0x02002203, 0x20078221, 0x2103849c, 0x77830400, 0x0b82a120, 0x0000a124, 0x07823505, + 0x0384a220, 0xda020022, 0xa6200782, 0x00220384, 0x07829804, 0xaa243f83, 0xe5030000, 0x63830b82, 0x0000ab24, 0x0b82d101, 0x0384ac20, 0x9d030022, + 0xad200782, 0x00220384, 0x07820404, 0x0384b020, 0x31000022, 0xb2200782, 0x00220384, 0x0782d302, 0x0384b420, 0x53050022, 0xb6200782, 0x00220384, + 0x07820b04, 0x0384bd20, 0x33050022, 0xbf200782, 0x00220384, 0x07823003, 0x0384c120, 0x31030022, 0xcc200782, 0x00220384, 0x0782ef02, 0x0384ce20, + 0x19040022, 0xd0200782, 0x00220384, 0x0782b904, 0x0384d220, 0xe9010022, 0xe1200782, 0x00220384, 0x07826502, 0x0384e320, 0x97010022, 0xeb200782, + 0x00220384, 0x07826204, 0xec24ff83, 0x61040000, 0xf0200b82, 0x00220384, 0x07822605, 0x0384fb20, 0x9a040026, 0xe0f70100, 0x00220384, 0x07825002, + 0x0384e120, 0xe2200b85, 0xe2210b82, 0x200b8500, 0x200b82e3, 0x200b86e3, 0x200b82e4, 0x200b86e4, 0x240b82e5, 0x030000e5, 0x20078281, 0x850384e6, + 0x82e7200b, 0x86e7200b, 0x82e82017, 0x86e8200b, 0x82e9200b, 0x86e9200b, 0x82ea200b, 0x86ea200b, 0x82eb200b, 0x85eb200b, 0x0df9230b, 0x03820100, + 0x87010022, 0x0e200782, 0x0b850384, 0x0b821620, 0x23821620, 0xf921bb82, 0x200b821a, 0x200b821a, 0x20078203, 0x2203841d, 0x82b20300, 0x84232007, + 0x04002203, 0x2007823d, 0x22038429, 0x823e0400, 0x84412007, 0x04002203, 0x20078220, 0x22038442, 0x82160500, 0x84432007, 0x05002203, 0x20078217, + 0x22038444, 0x82390300, 0x844e2007, 0x03002203, 0x20078271, 0x22038453, 0x82370500, 0x84552007, 0x05002203, 0x2007820f, 0x2203845a, 0x82400500, + 0x84772007, 0x03002203, 0x200782ca, 0x22038490, 0x82940000, 0x849b2007, 0x04002203, 0x200782dd, 0x220384a6, 0x82e40400, 0x84b42007, 0x04002203, + 0x2007827e, 0x220384b7, 0x82760400, 0x84cd2007, 0x02002203, 0x20078295, 0x220384e0, 0x82800400, 0x84e12007, 0x05074103, 0x0b82e620, 0x0000e624, + 0x0782be04, 0x0384e920, 0x62020022, 0xea200782, 0x00220384, 0x0782a103, 0x0384ec20, 0x8e030022, 0xed200782, 0x00220384, 0x07827c02, 0x0384ef20, + 0x67020022, 0xf0200782, 0x00220384, 0x07820904, 0x0384f220, 0xe5010022, 0xf3200782, 0x00220384, 0x07823802, 0x0384f920, 0xd5030022, 0xfb200782, + 0x00220384, 0x0782eb04, 0x0384fc20, 0x4c000022, 0xfe200782, 0x00260384, 0x0100fa03, 0x038479fa, 0x85030022, 0x7a200782, 0x00220384, 0x07823702, + 0x03849120, 0xcc040022, 0x9b200782, 0x00220384, 0x07820104, 0x0384b620, 0xe7030022, 0xc1200782, 0x00230384, 0x87008b04, 0x82882000, 0x00f82808, + 0x00fc0100, 0x82440300, 0x250b8203, 0x0000b404, 0x03822805, 0x0000ac24, 0x03822006, 0x0000a824, 0x03825807, 0x0000e428, 0x00008c08, 0x03822c09, + 0x00008428, 0x0000740a, 0x03820c0b, 0x03826c20, 0x0000e02c, 0x0000400c, 0x0000080d, 0x0382200e, 0x00009424, 0x0382340f, 0x10294b82, 0x1000002c, + 0x110000a4, 0x24038210, 0x120000c4, 0x8203823c, 0x82132017, 0xb0132417, 0x82140000, 0xd0142882, 0x7c150000, 0x82160000, 0x82162023, 0x54172863, + 0xe8170000, 0x82190000, 0x7019211c, 0x7b820782, 0x00441a29, 0x00cc1a00, 0x82581b00, 0x00c02703, 0x00281c00, 0x7f821d00, 0x07821e20, 0x00d81e24, + 0x47822000, 0x00402134, 0x00802200, 0x00f02300, 0x005c2700, 0x00382900, 0x23822a00, 0x00ec2a24, 0x93822c00, 0x00982e28, 0x00882f00, 0x87823000, + 0x1b823220, 0x00503324, 0x57823400, 0x00c83524, 0x93823600, 0x83823720, 0x00243a28, 0x00b03b00, 0x3f823c00, 0x23823d20, 0x3f823e20, 0x00703f24, + 0x03824000, 0x00d04124, 0x6f824300, 0x8f824320, 0x43824420, 0x33824520, 0x93824620, 0x2b824820, 0x00bc4928, 0x00f84b00, 0x88824d00, 0x00ac4e24, + 0xff824f00, 0x13824f20, 0x00905028, 0x00745100, 0x23825200, 0x00685324, 0x43825300, 0x67825420, 0x87825520, 0x7f825620, 0x57825720, 0x00605828, + 0x00f45800, 0x1f825a00, 0x7b825b20, 0x5f825c20, 0x00305e24, 0x1f825f00, 0x07826020, 0x9f826020, 0x00c06124, 0xab826300, 0x00206424, 0x7b826400, + 0x002c6524, 0x17826500, 0xd7826620, 0x00646724, 0x87826800, 0x009c6924, 0x0b826a00, 0x00146b25, 0x82186c00, 0x00a82303, 0x43826d00, 0x00806e24, + 0x67826f00, 0x008c7028, 0x00407100, 0x03837200, 0x0000f027, 0x0000e073, 0x209b8274, 0x281b8275, 0x00000476, 0x00003c77, 0x20578278, 0x203b8279, + 0x2467827a, 0x0000487b, 0x20bf827c, 0x2093827d, 0x2023827f, 0x204b8280, 0x208f8281, 0x24778281, 0x00008482, 0x24478283, 0x0000e883, 0x245f8284, + 0x00001c86, 0x20338287, 0x20838288, 0x20c78289, 0x20ef828a, 0x244b828b, 0x0000fc8b, 0x201f828d, 0x208b828e, 0x204b828f, 0x20f78290, 0x20c78292, + 0x24278293, 0x0000f894, 0x24fb8296, 0x0000d897, 0x284b8299, 0x00004c9a, 0x0000b89b, 0x240b829d, 0x0000b49e, 0x200782a0, 0x206b82a2, 0x20ef82a3, + 0x20df82a5, 0x200b82a6, 0x206f82a7, 0x240f82a8, 0x0000a0aa, 0x20b382ac, 0x204782ad, 0x200382ae, 0x240b82b0, 0x000000b1, 0x203782b1, 0x24d382b2, + 0x00007cb3, 0x203f82b4, 0x24b382b5, 0x000028b6, 0x205b82b7, 0x208782b8, 0x203b82b9, 0x207782ba, 0x309b82bc, 0x0000d4bc, 0x000058be, 0x000024c0, + 0x0000e0c1, 0x20a382c3, 0x202382c5, 0x244782c7, 0x0000c4c8, 0x204382ca, 0x20d782cc, 0x20eb82cd, 0x204b82cf, 0x248382d1, 0x000070d2, 0x2c2782d3, + 0x0000bcd4, 0x000010d6, 0x0000b0d7, 0x204382d8, 0x242b82d9, 0x000018db, 0x20f782dc, 0x20c382dd, 0x242382de, 0x0000a4df, 0x249782e1, 0x0000e4e1, + 0x200f82e2, 0x24bf82e3, 0x000090e4, 0x209382e6, 0x2c9382e7, 0x000014e8, 0x000088e8, 0x000038e9, 0x208b82eb, 0x21db82ec, 0xdd65ecee, 0x82f12005, + 0xfcf22c57, 0xf4f30000, 0xd8f40000, 0x82f50000, 0x82f6203b, 0x98f724e7, 0x82f80000, 0x94f92807, 0xacfa0000, 0x82fb0000, 0x82fc20b7, 0x82fd2033, + 0x82fe20af, 0x9cff3463, 0xc4000100, 0x6c010100, 0x18030100, 0x34050100, 0x82060100, 0x82072003, 0x40082d03, 0x5c090100, 0x240a0100, 0x280c0100, + 0xe0230382, 0x820e0100, 0x820e2007, 0x940f2907, 0x44110100, 0x14120100, 0xc8230382, 0x82130100, 0x50142d0f, 0x58150100, 0x80160100, 0x1c170100, + 0xdc2b0382, 0xe41a0100, 0xfc1b0100, 0x821c0100, 0xe81d301f, 0x541f0100, 0xb8200100, 0xf0220100, 0x82240100, 0x6426284b, 0xb0260100, 0x82280100, + 0x8228207b, 0x88292807, 0x682b0100, 0x822d0100, 0xec2e341b, 0x74300100, 0x48320100, 0x84330100, 0xc0340100, 0x82350100, 0x3037244f, 0x82380100, + 0x8239207b, 0x7c3a306f, 0xb43b0100, 0xd03c0100, 0x103e0100, 0x823f0100, 0x8240203f, 0x3c422d0b, 0xa0430100, 0x90440100, 0x04460100, 0x6f820382, + 0x00984828, 0x00704901, 0x07824a01, 0x5f824c20, 0x2b824d20, 0x97824e20, 0x008c4f24, 0xeb825101, 0x5f825220, 0x00c45428, 0x00385601, 0xf3825701, + 0xc3825820, 0x07825920, 0x00205a28, 0x00f45b01, 0x33825d01, 0x77825e20, 0x43825f20, 0xe3826020, 0x77826120, 0x57826220, 0xdf826320, 0x3b826420, + 0xef826520, 0x0f826620, 0x00146824, 0xb3826901, 0x00786a24, 0xd7826b01, 0x00086c24, 0xfb826c01, 0xd7826e20, 0x00f86f24, 0x7f827101, 0x07827220, + 0x7b827420, 0x6b827520, 0x63827620, 0x5b827720, 0xb7827720, 0x7f827820, 0x00ac792c, 0x000c7b01, 0x004c7c01, 0x1f827e01, 0x00c87e29, 0x00ac7f01, + 0x82008001, 0x00b02303, 0x47828101, 0x57828220, 0x53828220, 0x00748328, 0x00fc8301, 0x9f828401, 0x007c8624, 0x03828701, 0x00108924, 0xdb828901, + 0x5f828a20, 0x8f828b20, 0x8b828d20, 0x00848e28, 0x00509001, 0x2f829101, 0x8f829320, 0x1f829420, 0x00609624, 0x47829801, 0xaf829a20, 0x00ec9a24, + 0x2f829c01, 0x00409e24, 0x13829f01, 0x2782a020, 0x0058a128, 0x003ca201, 0x4f82a301, 0x7b82a420, 0x001ca524, 0x3b82a601, 0x00a0a624, 0x2f82a701, + 0x3f82a820, 0x0782a820, 0x0080a924, 0x8b82a901, 0x0054aa24, 0xc382aa01, 0x0070ac24, 0x8f82ac01, 0xab82ad20, 0x1382ae20, 0x00a8ae24, 0xe382af01, + 0xc782af20, 0x8b82b020, 0xeb82b120, 0x0034b224, 0xc782b301, 0x0b82b420, 0x00b4b424, 0x3382b501, 0xef82b620, 0x00d8b624, 0x8782b701, 0x2b82b820, + 0x0004ba28, 0x0090ba01, 0x8b82bb01, 0x3f82bc20, 0x0078bc24, 0x8782bd01, 0xaf82be20, 0xa782bf20, 0x002cc02c, 0x00a4c001, 0x005cc101, 0x1f82c201, + 0x2782c220, 0x0044c328, 0x00e0c301, 0x2b82c401, 0x0038c524, 0x8382c501, 0x7f82c620, 0x009cc728, 0x007cc801, 0x2b82c901, 0xd382ca20, 0x0020cb24, + 0x1f82cc01, 0x0b82cd20, 0x4b82ce20, 0x00c0ce25, 0x8288cf01, 0x00e42303, 0xd782d001, 0x00f0d024, 0x8b82d101, 0xc782d220, 0x3382d320, 0x5382d320, + 0x9f82d420, 0x8f82d420, 0x001cd525, 0x826cd501, 0x201f8203, 0x241b82d6, 0x0100c4d6, 0x204382d7, 0x201b82d7, 0x203f82d7, 0x244782d8, 0x010008d9, + 0x20d782d9, 0x201782da, 0x20a782db, 0x204782db, 0x242b82dd, 0x0100fcdd, 0x24f782de, 0x0100d4de, 0x241b82df, 0x0100acdf, 0x208782e0, 0x205b82e1, + 0x207782e2, 0x25cf82e2, 0x010050e3, 0x038254e4, 0xe5242b82, 0xe60100b8, 0xe7200382, 0xe820c782, 0xe8242f82, 0xea0100cc, 0xeb24b382, 0xeb010030, + 0xec201782, 0xec202782, 0xec28df82, 0xed0100f8, 0xee0100d0, 0xef293f82, 0xef010000, 0xf0010080, 0x82038218, 0x82f1205f, 0x64f228fb, 0x04f30100, + 0x82f50100, 0x82f62083, 0x82f62047, 0x82f720ab, 0x82f72013, 0x82f82037, 0x82f920c7, 0xc8fa2427, 0x82fb0100, 0x82fc204b, 0x82fc203b, 0x98fd25af, + 0x34fe0100, 0xab820382, 0x00c0ff3d, 0x00a00002, 0x00600102, 0x004c0202, 0x00900302, 0x00d40402, 0x00180602, 0x825c0702, 0x00f82803, 0x00940802, + 0x82300902, 0x00d03003, 0x00f00a02, 0x009c0b02, 0x00dc0c02, 0x82280d02, 0x29078203, 0x0200b00e, 0x0200f40f, 0x03824411, 0x12294f82, 0x13020058, + 0x14020074, 0x24038200, 0x150200c8, 0x82038284, 0x80163153, 0xcc170200, 0x0c190200, 0x401a0200, 0x1c1b0200, 0x7b820382, 0x27821c20, 0x0b821d20, + 0x00fc1d25, 0x823c1e02, 0x827c2003, 0x82bc2003, 0x240f8203, 0x02006c1f, 0x2063821f, 0x201f8220, 0x248f8220, 0x0200d820, 0x248f8221, 0x02006422, + 0x20238222, 0x20778223, 0x203f8225, 0x209b8225, 0x25678226, 0x02005027, 0x03820828, 0x29208782, 0x2b24ab82, 0x2b020020, 0x2c208382, 0x2d203b82, + 0x2e207782, 0x2f20a382, 0x3024af82, 0x310200a4, 0x32242f82, 0x33020068, 0x33253f82, 0x34020098, 0x2303822c, 0x350200c4, 0x35202b82, 0x36203b82, + 0x3620a382, 0x36256b82, 0x370200e8, 0x23038238, 0x380200ac, 0x38242382, 0x390200a8, 0x3a243b82, 0x3b020060, 0x3c24d782, 0x3d020030, 0x3e2cb782, + 0x3f020048, 0x40020028, 0x42020014, 0x44206782, 0x44245782, 0x45020088, 0x46244f82, 0x46020024, 0x47206b82, 0x4824c782, 0x4902004c, 0x4a20e382, + 0x4b250b82, 0x4c020010, 0x23038204, 0x4d020078, 0x4e20cf82, 0x4f241782, 0x4f020048, 0x50206b82, 0x51207f82, 0x5125bf82, 0x520200e0, 0x2303826c, + 0x530200f8, 0x54207782, 0x55203382, 0x56201b82, 0x5720cf82, 0x57209782, 0x58209f82, 0x5920bf82, 0x5a201b82, 0x5a241b82, 0x5b0200d8, 0x5b254382, + 0x5c0200cc, 0x82038254, 0x825d20a3, 0x085e245f, 0x825f0200, 0x825f2033, 0x82602017, 0x82602083, 0x82612007, 0x34623007, 0xf4620200, 0x8c640200, + 0x58650200, 0x82660200, 0xfc662497, 0x82670200, 0x826820b7, 0x8269200b, 0x826a20cb, 0xa46b247f, 0x826c0200, 0x826e205b, 0x826f2093, 0x827020cb, + 0x18712483, 0x82710200, 0xf0712477, 0x82720200, 0xc872282f, 0xb8730200, 0x82740200, 0x947524f7, 0x82760200, 0x9c76296f, 0xe4770200, 0x64780200, + 0xc3820382, 0x6f827a20, 0x00287b24, 0x0b827b02, 0x1b827c20, 0x17827d20, 0x87827e20, 0x2f827f20, 0x87828020, 0x57828220, 0xc7828320, 0x4f828420, + 0x6f828420, 0x53828520, 0x73828720, 0x6b828820, 0x3b828920, 0x0f828920, 0x73828a20, 0x67828b20, 0x97828c20, 0x00148d24, 0x13828d02, 0x3f828e20, + 0x00ac8f30, 0x00bc9002, 0x00749102, 0x00309202, 0x13829302, 0xbf829420, 0x13829420, 0x0b829520, 0x00789624, 0x63829602, 0x00b09824, 0x5f829902, + 0x003c9a24, 0x5b829b02, 0x002c9c24, 0x83829e02, 0x4b829f20, 0x4b829f20, 0xaf82a020, 0x00dca128, 0x00d4a302, 0xcb82a402, 0x0008a528, 0x00c0a502, + 0xf782a602, 0xb782a620, 0x0050a925, 0x8200aa02, 0x008c2303, 0x4382ab02, 0x1382ab20, 0x5b82ac20, 0x00d0ad24, 0xbf82af02, 0x5b82b020, 0xe382b120, + 0x7b82b220, 0x0048b328, 0x0090b302, 0xcb82b402, 0x4782b620, 0x00a8b728, 0x00ecb802, 0x4f82b902, 0x5b82ba20, 0x0038bb24, 0x7f82bc02, 0x1f82be20, + 0x000cc024, 0x4782c102, 0x00a4c230, 0x00f0c302, 0x00ccc402, 0x00a0c502, 0x7782c602, 0x00fcc624, 0xd782c702, 0x1f82c820, 0x7382c920, 0x4b82ca20, + 0x4382ca20, 0xcb82cb20, 0x7f82cc20, 0xdf82cd20, 0xf382ce20, 0x3382ce20, 0x2f82cf20, 0xe782cf20, 0x0054d031, 0x0060d102, 0x007cd202, 0x0098d302, + 0x8204d402, 0x208b8203, 0x206b82d5, 0x242f82d6, 0x020064d7, 0x20ff82d8, 0x203f82d8, 0x209782d9, 0x285f82da, 0x020018db, 0x0200b4db, 0x288382dc, + 0x0200acdd, 0x0200e8de, 0x241b82df, 0x02006ce0, 0x20f382e1, 0x203b82e1, 0x20f782e2, 0x200f82e3, 0x206f82e4, 0x209f82e4, 0x20e782e5, 0x209f82e5, + 0x284f82e6, 0x0200c4e6, 0x020084e7, 0x2c4782e8, 0x0200e0e8, 0x0200c8e9, 0x0200d0ea, 0x200b82eb, 0x201b82ec, 0x20d782ed, 0x202782f1, 0x206b82f3, + 0x24f782f5, 0x020088f6, 0x201b82f7, 0x205782f8, 0x206f82f9, 0x208b82fa, 0x201f82fb, 0x20b382fc, 0x08ab82fd, 0x0058fe28, 0x002cff02, 0x004c0003, + 0x00400103, 0x00340203, 0x00280303, 0x001c0403, 0x000c0503, 0x00dc0603, 0x00c00703, 0x17820903, 0x82b80921, 0x00f83007, 0x00cc0a03, 0x00680b03, + 0x00bc0c03, 0x82700e03, 0x00d82b03, 0x00c80f03, 0x006c1003, 0x47821103, 0x47821220, 0x00f41224, 0x2f821303, 0x00781424, 0x4b821503, 0x00741624, + 0x2b821703, 0x00141824, 0x0b821803, 0x00101924, 0x2f821903, 0x37821920, 0x00241a28, 0x00801a03, 0x63821b03, 0x00001c24, 0x37821c03, 0x83821d20, + 0x00981d25, 0x823c1e03, 0x00e02703, 0x00841f03, 0x13822003, 0x00fc2028, 0x00942103, 0x17822203, 0x00102324, 0x83822303, 0x8f822420, 0x00642524, + 0x1b822503, 0x63822620, 0x00e42624, 0x4f822703, 0x1f822820, 0x00042928, 0x00902903, 0x57822a03, 0x13822a20, 0x009c2b28, 0x00442c03, 0x0f822d03, + 0x008c2d24, 0xe3822e03, 0x00a02e24, 0x97822f03, 0x6f822f20, 0x07823020, 0x00b03024, 0x23823103, 0xd7823120, 0x00b43228, 0x00e83303, 0x83823403, + 0xab823520, 0x00a43728, 0x00583803, 0xb3823903, 0x13823920, 0x00a83a24, 0x7b823b03, 0x03823c20, 0x00603d2d, 0x00503e03, 0x002c3f03, 0x825c4003, + 0x303f8203, 0x0300f841, 0x03001842, 0x03000443, 0x03000844, 0x20c78245, 0x282b8246, 0x0300c046, 0x0300c447, 0x24738248, 0x03003849, 0x2423824a, + 0x0300f04a, 0x2827824c, 0x03007c4d, 0x0300ac4e, 0x2007824f, 0x20eb8250, 0x24eb8251, 0x0300dc51, 0x29bb8252, 0x03004053, 0x03004854, 0x03822055, + 0x56209b82, 0x5724db82, 0x57030034, 0x59203b82, 0x5a20ef82, 0x5b20e382, 0x5c209782, 0x5d283f82, 0x5d03006c, 0x5e0300fc, 0x5f204782, 0x5f29cf82, + 0x600300f4, 0x620300cc, 0x2b038228, 0x630300d4, 0x640300e4, 0x65030088, 0x6624b382, 0x670300ec, 0x6824af82, 0x69030070, 0x6a2c5f82, 0x6b0300bc, + 0x6c03008c, 0x6d0300a0, 0x6e204b82, 0x6f206b82, 0x71245b82, 0x72030030, 0x7320ff82, 0x7424cb82, 0x75030074, 0x7520af82, 0x76201b82, 0x7720cf82, + 0x78209f82, 0x79208f82, 0x7a205b82, 0x7a207b82, 0x7b24fb82, 0x7c030078, 0x7d208382, 0x7e204382, 0x80206b82, 0x81243f82, 0x81030000, 0x82246f82, + 0x830300a8, 0x84256382, 0x8503002c, 0x82038224, 0x82862027, 0x82872063, 0x8287208f, 0xd88a243b, 0x828c0300, 0x828d201b, 0x828f20bf, 0x82902097, + 0x829120e7, 0x94922447, 0x82930300, 0x8293202f, 0x8294202f, 0x5c962477, 0x82970300, 0x18982403, 0x82980300, 0x829a20fb, 0x829b2007, 0x829c2043, + 0x829c20a7, 0x3c9e2443, 0x829f0300, 0xc89f2413, 0x82a00300, 0x10a1248f, 0x82a10300, 0x82a2200b, 0x82a320bf, 0x82a4206f, 0x38a62807, 0xcca60300, + 0x82a70300, 0x82a820cb, 0x82a92013, 0xd0a92433, 0x82ab0300, 0x82ac2017, 0x82ad2003, 0x82ae207b, 0x28af24d3, 0x82b00300, 0x60b124b7, 0x82b20300, + 0x82b32007, 0x82b42077, 0x82b5205b, 0x82b620d3, 0x82b72047, 0x82b7205b, 0x82b82083, 0x1cb924eb, 0x82ba0300, 0x14bb24ab, 0x82bc0300, 0x20bd2923, + 0x44be0300, 0x04bf0300, 0xa0270382, 0x4cc00300, 0x82c20300, 0x84c32427, 0x82c40300, 0x82c52057, 0xf4c524b3, 0x82c70300, 0xb8c72437, 0x82c90300, + 0xb0ca2433, 0x82cb0300, 0x82cc2017, 0x7ccd2407, 0x82ce0300, 0x82cf2043, 0x82d0208b, 0xdcd02447, 0x82d10300, 0x0cd2245f, 0x82d30300, 0x82d4207f, + 0x82d42007, 0x82d620bf, 0x82d72083, 0x82d820bf, 0x82d920a3, 0x82da2063, 0x82db20a3, 0x82dc205f, 0xd8dc2413, 0x82dd0300, 0x82de2047, 0x82df2047, + 0x82e02003, 0x78e1247f, 0x82e20300, 0x82e32037, 0x82e32067, 0x82e4207f, 0x82e72057, 0x82e8207f, 0x9ce92817, 0x98ea0300, 0x82eb0300, 0x82ec2053, + 0x80ed244b, 0x82ef0300, 0x6cf0244b, 0x82f10300, 0x82f22003, 0x82f32003, 0xacf5242f, 0x82f60300, 0xecf7245b, 0x82f90300, 0x08fb243b, 0x82fd0300, + 0x82fe204f, 0xd4ff28db, 0x2c010400, 0x82020400, 0x7c032c03, 0xcc040400, 0xb4050400, 0x82060400, 0x07280807, 0x09040060, 0x0a040004, 0x0c040090, + 0x0d04000c, 0x0f0400b8, 0x110400d8, 0x120400ec, 0x140400e0, 0x15040048, 0x16040054, 0x172c0782, 0x1804008c, 0x1904006c, 0x1a040078, 0x1a243382, + 0x1b0400f4, 0x1c254782, 0x1d0400c4, 0x23038250, 0x1e0400f0, 0x1f280f82, 0x200400e8, 0x21040074, 0x21244f82, 0x220400f8, 0x23282782, 0x2404009c, + 0x25040068, 0x26207f82, 0x27240b82, 0x280400bc, 0x2a202782, 0x2b2d1382, 0x2b040038, 0x2c0400dc, 0x2e040088, 0x82038240, 0x802f2447, 0x82300400, + 0x8231206b, 0x8232209f, 0x823320b7, 0x8234200b, 0x94352497, 0x82360400, 0x8237206f, 0x82382017, 0x64392473, 0x823a0400, 0xa83a248b, 0x823c0400, + 0xfc3c240f, 0x823e0400, 0x823f203f, 0x8240205f, 0x82412023, 0x84422487, 0x82430400, 0x82442067, 0x824520db, 0x10472c43, 0xac470400, 0x98480400, + 0x82490400, 0x244a2417, 0x824b0400, 0x584c2483, 0x824d0400, 0x824d2043, 0x824e20af, 0x824f202b, 0x3050245b, 0x82510400, 0xec5224f7, 0x82530400, + 0x82542007, 0x0056240f, 0x82580400, 0x825920db, 0x825a206b, 0x825d2017, 0x905e2437, 0x825f0400, 0x82602067, 0x8261203f, 0x8262204f, 0x8264204f, + 0x826520b3, 0x826720ab, 0xf8672407, 0x82690400, 0xd46a25ef, 0x546b0400, 0x0f820382, 0x37826d20, 0x00a46e24, 0x93826f04, 0x00347124, 0x4f827204, + 0x0b827420, 0xcf827620, 0x00a07830, 0x003c7904, 0x00487a04, 0x00147d04, 0x33827e04, 0x6b828020, 0x3f828320, 0x00888428, 0x002c8504, 0x17828604, + 0x33828620, 0x63828720, 0x1b828820, 0x0f828a20, 0x77828b20, 0x9f828c20, 0x00cc8c24, 0x5b828d04, 0xe3828e20, 0x00808f28, 0x007c9004, 0x3b829104, + 0x0f829220, 0x00449428, 0x00e49404, 0x33829504, 0x001c9724, 0x9f829804, 0x33829920, 0x00409a24, 0x97829a04, 0x00dc9b24, 0x47829d04, 0xef829e20, + 0x2b82a020, 0x2b82a020, 0x00c8a12c, 0x00f4a204, 0x00bca304, 0x0782a504, 0x0070a728, 0x00b8a804, 0xa782a904, 0x004caa24, 0x6382ad04, 0x0074ae28, + 0x009caf04, 0x3382b104, 0x1382b220, 0x5382b320, 0x0020b424, 0x0782b504, 0x0060b524, 0x4f82b604, 0x0094b828, 0x0050b904, 0x2b82ba04, 0xc382bb20, + 0x0064bc24, 0x9382bc04, 0x0024be28, 0x0068bf04, 0x7782c104, 0x1782c220, 0x0008c324, 0x8f82c404, 0x0078c528, 0x0030c604, 0x3382c804, 0x6f82c920, + 0x8b82ca20, 0x00f0cb24, 0x0b82cd04, 0x2382d020, 0xd382d220, 0x3f82d320, 0x0054d424, 0x7782d504, 0x1f82d620, 0x00fcd724, 0x6f82d904, 0x4782db20, + 0x5782dc20, 0xfb82dd20, 0x2782de20, 0x3382df20, 0x005ce024, 0x2782e104, 0xc382e120, 0xe782e320, 0x00e8e424, 0x0382e504, 0xc782e720, 0x00b4e828, + 0x006ce904, 0x3382ea04, 0xb782eb20, 0x0004ec28, 0x00a8ed04, 0x2782ee04, 0x1b82ef20, 0x003cf124, 0xcb82f204, 0xa782f320, 0x9b82f420, 0x3382f420, + 0x0070f624, 0x7382f604, 0x0058f724, 0x6f82f804, 0x00b0f824, 0xe382fa04, 0xd782fb20, 0x1782fb20, 0x009cfc24, 0xbf82fd04, 0xbf82fe20, 0x0030ff31, + 0x00840005, 0x00340205, 0x000c0305, 0x82180405, 0xc82b0803, 0xa8050500, 0xe8060500, 0x10080500, 0x5c090500, 0x4c0a0500, 0x9c0c0500, 0xd80d0500, + 0x700f0500, 0xf0100500, 0x80110500, 0x82120500, 0x82132003, 0x8214202b, 0x7c15292b, 0x48160500, 0x20170500, 0x90200382, 0x13820382, 0x00c01830, + 0x00bc1905, 0x00941a05, 0x00541b05, 0x3b821c05, 0x00381d24, 0x6b821e05, 0x002c1f2c, 0x00d41f05, 0x00782005, 0x43822105, 0x83822320, 0x2f822320, + 0x53822420, 0x47822520, 0x7b822620, 0x13822720, 0x1b822820, 0x00f82924, 0x07822a05, 0x00682b24, 0x37822c05, 0x17822d20, 0x00cc2d25, 0x82502f05, + 0x2c438203, 0x0500b033, 0x05004435, 0x05004036, 0x20c38237, 0x242b8238, 0x05001c39, 0x244f8239, 0x0500643b, 0x2033823c, 0x207f823d, 0x20a3823e, + 0x202b823f, 0x209b8240, 0x24138242, 0x05007443, 0x20d78244, 0x20078245, 0x204b8246, 0x203b8247, 0x207f8247, 0x20038248, 0x20978249, 0x2007824a, + 0x08bb824b, 0xff000053, 0x018001c0, 0x000300c0, 0x000b0007, 0x0025000f, 0x27013f00, 0x27331711, 0x11173707, 0x17233707, 0x37362537, 0x21373631, + 0x17161716, 0x06070611, 0x27262107, 0x40112726, 0xb3275a5a, 0x5980595a, 0x59b33359, 0x01e6fe5a, 0x01140e0d, 0x0d0e1420, 0x21098301, 0x0983e0fe, + 0x86863a24, 0x0482f4fe, 0x0186c028, 0x86c0860c, 0x1e881086, 0x09876020, 0x00a00122, 0x02260082, 0xe0ff1800, 0x0c826800, 0x81831320, 0x27341335, + 0x22232631, 0x11150607, 0x33161714, 0x35363732, 0x82320311, 0x34352285, 0x83178527, 0x09602516, 0x090e0e09, 0x05830082, 0x0b112026, 0x110b0c0c, + 0x01210585, 0x21178580, 0x078500ff, 0xfe000123, 0x821c8860, 0x02002122, 0xe022f782, 0x6f82c001, 0x5a005530, 0x16130000, 0x0f163117, 0x36373301, + 0xe5823637, 0x322a0a83, 0x14151617, 0x012b0607, 0x0a893307, 0xfa82fd82, 0x013f2624, 0x0a890723, 0x2627222a, 0x36373435, 0x2337013b, 0x36230a89, + 0x821f3637, 0x23372d3a, 0x07070eb5, 0x0b5f0a01, 0x0d0b0a03, 0x02220a82, 0x92853a09, 0x87154521, 0xa01a8908, 0x15062625, 0x015f155f, 0x214b83a0, + 0x4d82453b, 0x09840120, 0x20050641, 0x89068580, 0x21098216, 0x20960208, 0x8080a03a, 0x0f000100, 0x3001c0ff, 0x6f00c001, 0x32130000, 0x1d163117, + 0x16333201, 0x1721ff83, 0x21df8716, 0x09832627, 0x1f211383, 0x821a8a01, 0x14152314, 0xf0830607, 0x30013d29, 0x23313023, 0x84272631, 0x07424101, + 0x83161721, 0x21138309, 0x1a8a012f, 0x33081482, 0x36373435, 0x090ea033, 0x09030209, 0x0d0b1211, 0x04030706, 0x080d0b0b, 0x310a0f10, 0x02021a1d, + 0x190a0303, 0x18160330, 0x0e161417, 0x1106060c, 0x18141912, 0x0134db85, 0x1a191301, 0x05050c15, 0x0c0b0606, 0x1516100d, 0x191b3110, 0x31273085, + 0x18181602, 0x820d1713, 0x13122430, 0x82161419, 0xc0012130, 0x24200482, 0x02204e82, 0x0d235e83, 0x82020607, 0x07013a0b, 0x0f110b0c, 0x0f080605, + 0x0806010b, 0x1a0d0d08, 0x131d201b, 0x03080a13, 0x05974121, 0x03232008, 0x06090707, 0x0c0d0c0c, 0x07050504, 0x06030606, 0x10120b0b, 0x0f070605, + 0x0905010c, 0x850e0c08, 0x08092330, 0x30822302, 0x00820020, 0x03820320, 0x80010030, 0x13008001, 0x37002500, 0x36010000, 0xa7423135, 0x06012205, + 0x05bf4215, 0x26070133, 0x27263127, 0x07060706, 0x17161716, 0x37363736, 0x28119101, 0x0a090977, 0xfe0a0d0d, 0x2a0785c0, 0x01f74001, 0x1b1b1212, + 0x88011212, 0x90002007, 0x83492011, 0x09092332, 0x0785c0fe, 0x09400122, 0x4082308c, 0x8f00ff21, 0x01002b11, 0xe0ff0000, 0xa0018001, 0xfb413d00, + 0x05fa4208, 0x0f060723, 0x20a18201, 0x22a98216, 0x41012f06, 0x072909e4, 0x27262706, 0x3f363726, 0x08078501, 0x1f363720, 0x37343501, 0x0ec03336, + 0x0b700909, 0x07070c0d, 0x720c0303, 0x03030b73, 0x0d0c0806, 0xb241700b, 0x0c6f2105, 0x72251987, 0x0703030c, 0x21198607, 0x1e82a001, 0x83438821, + 0x223a8232, 0x82454408, 0x830c2018, 0x8743213a, 0x21058641, 0x1b864287, 0x83450721, 0x830b201b, 0x8843213c, 0x00201b82, 0x1028bb82, 0xb001f0ff, + 0x29009001, 0x29440c82, 0x011d2a07, 0x06072223, 0x16171415, 0x44b5823b, 0x3d2e0534, 0x37323301, 0x27343536, 0x35012b26, 0x91850001, 0x60859020, + 0x0d8d9020, 0x94700121, 0x44248616, 0x2308062f, 0x00a00140, 0x00270013, 0x37361300, 0x16373631, 0x15171617, 0x07060706, 0x27262726, 0x07063735, + 0x15070631, 0x2007de41, 0x28148335, 0x2d2d0200, 0x2d2d4444, 0x28078702, 0x1b1b29a0, 0x1b1b0101, 0x21078729, 0x1e870001, 0x08888020, 0x20836020, + 0x21878020, 0x00200884, 0xb3410082, 0x82002005, 0x82242083, 0x215e8281, 0x7c82010f, 0x70821720, 0x11013f22, 0x0220fc88, 0x1130f188, 0x111001a0, + 0x020b6010, 0x0d080703, 0x402e0c0c, 0x6021e185, 0x27078560, 0x13800140, 0x400a0909, 0x23831b83, 0xdcfe1f22, 0x210b4f45, 0x73896001, 0x2a24f783, + 0x22130000, 0xe3447182, 0x013f2105, 0x0622fe85, 0x1e45010f, 0x21232107, 0x17839282, 0x27240682, 0x1e18228f, 0x2a058f42, 0x3e3c2b1f, 0x01022928, + 0x85b38929, 0x00ff3077, 0x0e070915, 0x010117bf, 0x01221717, 0x421f1860, 0x1e2905ec, 0x2902012a, 0x2b3c3e28, 0x29858588, 0x10131301, 0x222218be, + 0xf7821717, 0x00010023, 0x06af4240, 0x00003929, 0x31373413, 0x82013b36, 0x827d82f8, 0x06172405, 0x83070607, 0x012f2297, 0x057e4426, 0x1c821f20, + 0x82363321, 0x208b830b, 0x84978423, 0x824020b7, 0x15f0385b, 0x840f0709, 0x27263a16, 0x26270101, 0x1a204f3a, 0x05020f1b, 0x820c0404, 0x01072d00, + 0x1f4f1d0e, 0x01011414, 0x681f1414, 0x9e202884, 0x0121b582, 0x23048380, 0x780f1513, 0x39833183, 0x1d101122, 0x07203083, 0x04213783, 0x842e8419, + 0x82238336, 0x085f4363, 0x2f009f22, 0x3622af82, 0x83823127, 0x0321a482, 0x189e4206, 0x25053044, 0x23011d06, 0x5583bd37, 0x0c0c0d29, 0x09078006, + 0x41e0110a, 0x2020050f, 0x20053d41, 0x230d8520, 0x72016bae, 0x29832183, 0x10f0fe25, 0x85500f0f, 0x4250201e, 0xe2200dd5, 0x200dc341, 0x208b8336, + 0x0acf4637, 0x3d413320, 0x27222822, 0x21013f26, 0x85c01906, 0x15a52261, 0x073a4172, 0x181f5325, 0x41050d19, 0x0424073a, 0x1f53190b, 0x29063a41, + 0x090a0f98, 0x86012102, 0x8f850218, 0x37417020, 0x0f102707, 0x0c0c091a, 0x3483070c, 0x41150821, 0x0b230837, 0x43b00f0c, 0x21220a63, 0x35413300, + 0x010f2b0a, 0x15140706, 0x31301514, 0x5d433130, 0x27262507, 0x07372726, 0x43088543, 0xe82a0784, 0x0a010109, 0x090c0d0b, 0x72432591, 0x2a022508, + 0xa83f402b, 0x250b7343, 0x011b1b29, 0x26836b01, 0xac262e83, 0x0101392b, 0x7d430201, 0x2c422507, 0xeb4b052d, 0x410fa643, 0x19200d47, 0x34259d82, + 0x33363137, 0x218f8221, 0x0a480307, 0x13372706, 0x26272223, 0xf2820035, 0x12000127, 0xe008080a, 0x25ea8208, 0x0603030c, 0x4442c8c4, 0x100f2408, + 0x8380fe10, 0x0d072513, 0x50010c0c, 0x00312b82, 0xff000003, 0x014001e0, 0x001f00a0, 0x0058003c, 0x05194600, 0x2c462320, 0x20058205, 0x26658215, + 0x37363317, 0x82343736, 0x373622f6, 0x09b64107, 0x10842620, 0x33373626, 0x31303130, 0x35260484, 0x30013930, 0x0f832331, 0xe5411c88, 0x30012f07, + 0x36252401, 0x24253620, 0x18230101, 0x0d830e0e, 0x0d834020, 0x180e0e26, 0x10800123, 0x20072646, 0x22088740, 0x87202010, 0x2008880a, 0x823f8501, + 0x24352448, 0x881b1a12, 0x1b20260d, 0x3524121a, 0x0f9f4680, 0x108f4020, 0x230ae741, 0x002d0011, 0x20057b49, 0x07ac4317, 0x0726ee82, 0x31272617, + 0x11832726, 0x1424b883, 0x010f0615, 0x20086d49, 0x0fc84140, 0x2b415823, 0x08eb412a, 0x9124032d, 0x0b0d0c09, 0x0801010a, 0x41000140, 0xa0240fc4, + 0x422c2d05, 0x2407e741, 0x2a370404, 0x202882ac, 0x20308309, 0x06df414b, 0x01000027, 0x007f017f, 0x27078219, 0x06310716, 0x16010d07, 0x20060a49, + 0x3e908325, 0x16173625, 0x057d0117, 0xfe0c0404, 0x0c0601fa, 0x07050404, 0xfe0c0c0c, 0x010111c0, 0x82400111, 0x0107220a, 0x2105836e, 0x17838383, + 0xa0251f83, 0x0a13130a, 0x823183a0, 0x001026f7, 0x01b00140, 0x06434640, 0x61822220, 0x17141525, 0x45213316, 0x232206b2, 0x13921521, 0x090e3022, + 0x0e210082, 0x06b64501, 0x8fa0fe21, 0x4001210f, 0x200bb745, 0x210c8bc0, 0xd8840100, 0xd3858020, 0x17061326, 0x0d171631, 0x2b073546, 0x37362537, + 0x26252726, 0x03070607, 0x0123a083, 0x83f9fe07, 0x21ba83b2, 0xd2834001, 0x9ec0fe21, 0x0acb41d2, 0x45003325, 0x85130000, 0x05184abf, 0x3736352d, + 0x16333736, 0x14171617, 0x480f0607, 0x34360a4a, 0x013f3637, 0x35363736, 0x27262726, 0x27221323, 0x34352631, 0x48463637, 0x82e98608, 0x1b012ce7, + 0x3661291b, 0x16012424, 0x853f2516, 0x0b0b2cd8, 0x0b123f13, 0x1211010b, 0x4b30611b, 0x0e4c0cf3, 0x1b292d09, 0x2401011b, 0x20283624, 0x12190f1f, + 0x2f052f41, 0x10101412, 0x0f081808, 0x121b1410, 0x80fe0111, 0x840c0e4c, 0x02c030c7, 0x00c00100, 0x005d004b, 0x07060100, 0x83070631, 0x06fb4bba, + 0xc24a2320, 0x82362005, 0x05f846d1, 0x4708f947, 0xac4205fd, 0x21c28405, 0xf249021d, 0x3d362205, 0x42348301, 0xf84905cc, 0x5200280c, 0x02023636, + 0x85523636, 0x39482b99, 0x0122223a, 0x3a222201, 0x0b864839, 0x291b1b29, 0x33241c2d, 0x82242536, 0x362525c7, 0x0d08202b, 0x8308e84c, 0x10544338, + 0x83800121, 0x41578316, 0x4d8c0525, 0x20275984, 0x011b1b29, 0x84212101, 0x21588450, 0x2b820817, 0x57465020, 0x203b8307, 0x10274ac0, 0x2000023f, + 0xa001e0ff, 0x1b00a001, 0x00001f00, 0x06272613, 0x06070307, 0x16171617, 0x013f3637, 0x3b088533, 0x012f3637, 0x37231303, 0x1509fe17, 0x28780815, + 0x0d050405, 0x060c0c0c, 0x0520c61f, 0x0d320782, 0x28040405, 0x48902a78, 0x138c0148, 0xfe130101, 0x158260e0, 0x82040621, 0x4c4c2125, 0x06201c83, + 0x60280e82, 0xf4fe2001, 0x0000adad, 0x240a0f45, 0x0027001b, 0x2a758234, 0x06310722, 0x1714021d, 0x45013b16, 0x26280905, 0x23272627, 0x33352317, + 0x2306dd44, 0x013b010f, 0x07220a86, 0xd6863523, 0xe983a020, 0x1c111123, 0x23f6841d, 0x60608080, 0x6021e287, 0x08d14460, 0xa0018034, 0xc00e0909, + 0x09090ec0, 0x36252401, 0x111d1d23, 0x38833022, 0xcd44c020, 0x08704108, 0x47008021, 0xa02208db, 0x0c822b00, 0x31232622, 0x2106774a, 0xc3423233, + 0x4b22200a, 0xd5420725, 0x27222908, 0x3c314901, 0x2f2f313c, 0x0a2f0583, 0x0a090d0d, 0x5656440a, 0x0e0f2c44, 0x832c0f0e, 0x0a0a2609, 0x0a0d0d09, + 0x21218301, 0x05824040, 0x23051849, 0x392d4141, 0x2c290082, 0x0c0a4242, 0x09090a0d, 0x05bb4e00, 0x0023b482, 0x49240018, 0x17240b0d, 0x07061716, + 0x23070b49, 0x11171135, 0x20090249, 0x2de08200, 0x33323f80, 0x01011e1d, 0x32331d1e, 0xec82803f, 0x45604021, 0x6020070c, 0x8405e148, 0x82258519, + 0x8001242f, 0x4ac0fe20, 0x002007b8, 0x4021f787, 0x20f78401, 0x08934113, 0x2208be44, 0x4b35012b, 0x0a870a6e, 0x41212321, 0x0121068a, 0x05c24200, + 0xc044e020, 0xe0a02106, 0xff210f85, 0x097e4100, 0x200cc94e, 0x410d8580, 0x7783066f, 0x0b422520, 0x4b60830b, 0x71900ce0, 0x6b9d5f82, 0x6f8ca020, + 0x2009e347, 0x20e382c0, 0x446b8239, 0x36220805, 0xdc4f3637, 0x1732230a, 0x68411516, 0x10154405, 0x2006364f, 0x075841e0, 0x2b2b3b24, 0xe7857d0c, + 0x7b418a83, 0x0b874105, 0x0a3d582d, 0x0a090101, 0x2c0a0d0c, 0x4160013f, 0x0123076d, 0x45382324, 0x2e8b08c7, 0x02250b85, 0x0d0d0937, 0x2138830a, + 0x8f420128, 0x0029240b, 0x44152500, 0x0221077d, 0x052a5134, 0x21011d22, 0x51083551, 0x3d22074d, 0x35462101, 0x4dff200d, 0x7485061c, 0xc0000122, + 0x4106ed49, 0x802007ac, 0x20065051, 0x200786fe, 0x0c0f42c0, 0xf9452a20, 0x16172208, 0x098b4c3b, 0x200a1942, 0x08194211, 0x0e420220, 0x07864c06, + 0x87071642, 0x4380200f, 0x0e23058d, 0x46fe0909, 0xaf870cca, 0x200b8742, 0x250c8225, 0x16311732, 0x854d1115, 0x06474608, 0x4a011d21, 0x11200729, + 0x01201183, 0x5c417483, 0x4de38607, 0x0d820684, 0x82a00121, 0x4dff2004, 0xa0860888, 0x82053045, 0x8ca18425, 0x4f2b20ef, 0x0f210ae3, 0x095d4102, + 0x21087b41, 0x18453701, 0x01372a09, 0x0a0a0937, 0x9b0a0d0c, 0x08d2412e, 0x412edd82, 0x0d0c0885, 0x03020b0b, 0x01898c08, 0x1f820a6a, 0xa00a0924, + 0x2b42b92f, 0xf8fe2205, 0x27088578, 0x0bc0436b, 0x08080203, 0xcb212a82, 0x2083848d, 0x062b4a20, 0xb74f1920, 0x11152106, 0x2309cf4b, 0x35262722, + 0x4020ef84, 0xc1413d82, 0x84488507, 0x42fe20e3, 0x878206f0, 0x82800121, 0x00002517, 0xff000009, 0x08050753, 0x11000a26, 0x1f001800, 0x2f002a00, + 0x39003400, 0x00003e00, 0x31171437, 0x37323316, 0x13233536, 0x06072637, 0x07133307, 0x27280f83, 0x27263313, 0x03170726, 0x21331f89, 0x33112311, + 0x03371303, 0x27011b07, 0x11131703, 0x42231133, 0x40350652, 0x160e1b20, 0xc0200116, 0x11110a1b, 0x20c01b0a, 0x0e161601, 0x06c74c1b, 0xc0fe402a, + 0xc03b4040, 0xf636c036, 0x85220483, 0x25444040, 0x80013306, 0x08051212, 0x12e0fe17, 0x01120e0e, 0x05081720, 0x7c421212, 0x80012d07, 0x6e0180fe, + 0x0124e0fe, 0xe0fe2420, 0x24220484, 0x13823201, 0x07008022, 0x8508d750, 0x002326cf, 0x002d0028, 0x26cb9332, 0x37160701, 0x54233736, 0x3321096a, + 0x23c48401, 0x07013701, 0xbf880984, 0x150f1927, 0x01200114, 0x8b078540, 0x013928b9, 0xc0fe3240, 0x8a790132, 0x101428b7, 0xfe160806, 0x820f1580, + 0x43012006, 0xb3840836, 0x80fe6b28, 0x29800129, 0x0d8395fe, 0x220a8354, 0x442c0011, 0x26230f6d, 0x4c272627, 0x685005df, 0x07db4506, 0x26211883, + 0x08604427, 0x20076844, 0x115a44e0, 0x44052b44, 0x83500954, 0x11504408, 0x00213c85, 0x0acf4900, 0x28001c22, 0x52479382, 0x080a520a, 0x37340425, + 0x46133336, 0x1522095b, 0x48462020, 0x08e24209, 0x29602022, 0x2206ea50, 0x87a00160, 0x06d9497a, 0x20206028, 0x09090ee0, 0xcc4b00ff, 0x00c02107, + 0x02370082, 0xc0ff2000, 0xa001e001, 0x3c001b00, 0x16370000, 0x17163117, 0x4f273736, 0x362108d3, 0x24fc8337, 0x07060706, 0x05754905, 0x49272621, + 0x06210b90, 0x06ab4b07, 0x852f2621, 0x232c2df4, 0x01010848, 0x0d0d0a0b, 0x011f4709, 0x22085b45, 0x41443519, 0x02221101, 0x2b873035, 0x44c02e29, + 0x01022d2d, 0x820b5614, 0x22148338, 0x41372a55, 0xbd210766, 0x063f4722, 0x5622418b, 0x6383393d, 0x0a212a82, 0x0c434138, 0x30002422, 0x4412b146, + 0xa150091a, 0x0ac64808, 0x7e440720, 0x0e260806, 0x675f0909, 0x0b0d0c08, 0x0802030b, 0x18192854, 0x29280201, 0x7090903d, 0x16172270, 0x17160101, + 0x09a00122, 0xa0450e09, 0x44922008, 0x782a0727, 0x2e232411, 0x0228293d, 0x2583a0e0, 0x002c2d83, 0x1f000100, 0x5f01e0ff, 0x62009f01, 0x36529182, + 0x30172306, 0xef551631, 0x0139210c, 0x21055d42, 0x07822326, 0x21054951, 0x0f563217, 0x07cc5505, 0x23302722, 0x27201d84, 0x17212183, 0x062f5727, + 0x83073054, 0x27390815, 0x07260737, 0x03041e83, 0x1d0d0405, 0x19010238, 0x18171a1b, 0x0e060d0e, 0x1345373a, 0x06131918, 0x0d010204, 0x05040606, + 0x070d0c0b, 0x13010109, 0x380d1414, 0x02051d21, 0x212f8304, 0x30820101, 0x83161b21, 0x20202130, 0x0b223283, 0x27821615, 0x03063c08, 0x0d0b0b04, + 0x0a14140a, 0x20390505, 0x1b0d5701, 0x090a0914, 0x07010e12, 0x100f0a09, 0x40241e1d, 0x030c1618, 0x02070708, 0x0c050101, 0x060d0d0b, 0x03020405, + 0x06060701, 0x830e0802, 0x0a09212c, 0x05282c8a, 0x16174005, 0x0405010b, 0x0d2c5584, 0x03030607, 0x1f020403, 0x000f081f, 0x2408e745, 0x00a00180, + 0x0dd7461f, 0x46088a58, 0xaa4810cc, 0x06ed4306, 0x01a0a022, 0x4d066845, 0xcb4809ac, 0x205b830c, 0x08775525, 0x46083154, 0xcd4608bb, 0x4a20200c, + 0x36230696, 0x85012425, 0x0aea4b45, 0xe0206884, 0x01241a83, 0xe0362524, 0x2005eb45, 0x075f4ce0, 0x00220f83, 0xc34b0100, 0x009f2206, 0x26738219, + 0x16311736, 0x41011b17, 0x073106b8, 0x26070603, 0x37260327, 0x0c343736, 0x82060c0c, 0x07b04b83, 0x1509a02b, 0x05a00815, 0x010d0504, 0x2405839d, + 0x3901c7fe, 0x8308820d, 0x80fe271f, 0x13010113, 0x31838001, 0x24068f47, 0xa0013f02, 0x88d38300, 0x27658d5f, 0x0b272623, 0x22070601, 0x22086b85, + 0x0c0b0d15, 0x08556e05, 0x55081717, 0x0b0c056e, 0x05050d0d, 0x16099004, 0x51510717, 0x09161608, 0x82050490, 0x839e2077, 0xdafe2b05, 0x01162401, + 0xdcfe1601, 0x25832601, 0xfe282d83, 0x15021580, 0xe9fe1701, 0x80200683, 0xb7414b83, 0x0029230d, 0x73530100, 0x010f2307, 0xc4582627, 0x011f2105, + 0x4309b84c, 0x37260983, 0x01087901, 0x82820a01, 0x8787092c, 0x0a0d0d09, 0x0801010b, 0x0c448f8f, 0x21138407, 0x13840a0b, 0x446b0121, 0xa2210711, + 0x252583a2, 0x0b0d0d09, 0xfa43acab, 0xa3a32107, 0x13822583, 0xabac0a22, 0x4206b34a, 0x26280743, 0x07263127, 0x1f060706, 0x210a9956, 0x97853637, + 0x3a299f82, 0x0c0c0d08, 0x0802030a, 0x05df419a, 0x02089a2c, 0x0c0c0a03, 0x8686080d, 0x17839301, 0xd7211f83, 0x05dc4196, 0x83d79621, 0x21218319, + 0xfb49bcbc, 0x521f200b, 0x95550c93, 0x0137210d, 0x27099952, 0x08091440, 0xfcebfe0c, 0xfe214d85, 0x210e83c0, 0x0e831501, 0x82800121, 0x11012513, + 0xb5fe1013, 0x0b828785, 0x4c010f22, 0x00230b82, 0x82000200, 0x00022700, 0x22008001, 0x69825200, 0x4c271521, 0x3f2507f4, 0x1f013b01, 0x07c15001, + 0x0c490720, 0x22072f08, 0x1d063107, 0x16171401, 0x1716013b, 0xa5483736, 0x830d8305, 0x8226202b, 0x27232efc, 0x35012b26, 0x23150727, 0x23010f22, + 0x071b46c0, 0x01011f23, 0x850b871f, 0x06c44b87, 0x3b216425, 0x8524213b, 0x824020b7, 0x2d023306, 0x1720442d, 0x20130d09, 0x090d1320, 0x60016017, + 0x30850c0c, 0x04040c22, 0x0c200987, 0xa0202f85, 0x33831882, 0x02022e22, 0x2c098549, 0x022d2d44, 0x042c0917, 0x17092c04, 0x05774e00, 0x24050350, + 0x00530023, 0x089f4368, 0x03503720, 0x012f2607, 0x010f012b, 0x05ee5b22, 0x35173327, 0x33363734, 0x058b5607, 0x3b36372c, 0x17373501, 0x1f323315, + 0xf2503301, 0x852b2006, 0x24e5832a, 0x27260706, 0x23388223, 0x3605013d, 0x16222283, 0x3d5b011d, 0x3f342308, 0xa482e001, 0xe020fe96, 0x6020b882, + 0x2020e489, 0xcb86b383, 0x24250682, 0x213b3b21, 0x273d8264, 0x0803b501, 0x03120308, 0x0323ff85, 0x82c00112, 0x160e4109, 0xf6876d83, 0x2d2d0223, + 0x08595044, 0x27061c41, 0x0707c740, 0x0107062b, 0x013c1785, 0x002b0607, 0x00000200, 0x4002c0ff, 0x2c00c001, 0x00003900, 0x31070625, 0x17230706, + 0x2b080d5e, 0x27262335, 0x37343526, 0x32173625, 0x2305175a, 0x1732013b, 0x1722e682, 0x2c820716, 0x17161529, 0x35373633, 0x82232726, 0x09092f43, + 0x0101200d, 0xfe1b1212, 0x12121bbf, 0x67822001, 0x00010a27, 0x090c0b0b, 0x83b4826b, 0x0c35290e, 0x16b8fe01, 0x50160202, 0xc0250484, 0x0109090d, + 0x07b84fa0, 0x8201a021, 0x0a0e2740, 0x070109e0, 0x3b82255e, 0x79243382, 0x3f0d0b2e, 0x16202d87, 0x0021ab82, 0x2eaf8805, 0x0029001c, 0x0050003e, + 0x01000061, 0x82313336, 0x0716219d, 0x1520ba82, 0xb483ba83, 0xba842720, 0xe6823f20, 0xa5890720, 0x17160523, 0x48028431, 0x26230767, 0x52373627, + 0x148211a8, 0x47057150, 0x21080636, 0x0a3a0127, 0xd00a0c0c, 0x1509070f, 0x0e0d0120, 0x1f0eba14, 0x190a2b1e, 0xd00e061b, 0x01010f0a, 0x0484400f, + 0x41e8fe29, 0x1f1f3434, 0x82160201, 0x343422de, 0x2105824e, 0x85410816, 0x09092808, 0x1602200e, 0x8427263a, 0x19013e1f, 0x02162519, 0x0909b701, + 0x13140fc0, 0x0e147001, 0x2831010d, 0x0d061a27, 0xc00f1309, 0x285287b8, 0x0140010f, 0x34341f1f, 0x234b8341, 0x0234344e, 0xd44d5b83, 0x8288200d, + 0x26272246, 0x2220833a, 0x82191925, 0x8200205c, 0x00043000, 0x01c0ff00, 0x00c001ff, 0x003f001b, 0x5a6e0053, 0xdc820cdb, 0x2308df5a, 0x37363734, + 0x2307e35a, 0x31301530, 0x830bd152, 0x313024fe, 0x83353130, 0x36112c08, 0x37363137, 0x26352726, 0x82070627, 0x2344823e, 0x11232517, 0x22068d4e, + 0x82231115, 0x011f2f39, 0x3f323316, 0x26273601, 0x0d016027, 0xd583140e, 0x110d0222, 0x3307af48, 0x30010e11, 0x01201f30, 0x011d0101, 0x3d292802, + 0x0228293d, 0x01240a82, 0x301f2001, 0x1e262a84, 0x010f0f01, 0x3a83021e, 0x4b500121, 0x20300690, 0x0e070915, 0x0d0d0a40, 0x080e400a, 0x50011508, + 0x21832983, 0x101aa524, 0x34491c15, 0x151c2507, 0x70a51a10, 0xa4254883, 0x25020101, 0x835a8333, 0x25332462, 0x83a50102, 0x84fe2073, 0x0c212990, + 0x01010f33, 0x210c330f, 0x40214583, 0x06944901, 0x01e0fe2d, 0x40101313, 0x10400909, 0x41011313, 0x0221073f, 0x5f3f4100, 0x36330130, 0x012f3637, + 0x0f222326, 0x16170601, 0x16613317, 0x403f4109, 0x38413020, 0x064e410e, 0x253f3f41, 0x01010fd3, 0x3f41d30f, 0x00012105, 0x200b3641, 0x06a648fe, + 0x20012508, 0x00080000, 0x02e0ff00, 0x00a00180, 0x002e0025, 0x00420039, 0x0058004d, 0x007c006a, 0x07061300, 0x11070631, 0x8308fb58, 0x5c3b2008, + 0x352509dd, 0x27262726, 0x05815d21, 0x37363525, 0x82072217, 0x17162505, 0x17232615, 0x27210886, 0x230e8237, 0x27260706, 0x17210f82, 0x22088615, + 0x42011716, 0x8d5f069f, 0x56352009, 0x30201081, 0x2b073b42, 0x1f1e0711, 0x1e1f2b2b, 0x7008c907, 0x3705a143, 0x0e0d0140, 0x2040fe14, 0x0f11010f, + 0x08600f01, 0x0f0f0108, 0x50080801, 0x0f220683, 0xf5837011, 0x70200383, 0x03830f83, 0x42d0fe21, 0x0787077a, 0x210be943, 0x4e83a001, 0x8300ff21, + 0x1a2a276f, 0x1b01011b, 0xc3452a1a, 0x42f02005, 0x0f290578, 0x980c0983, 0x0180010f, 0x23558371, 0x83130171, 0x98260783, 0x0193090c, 0x0a83c00f, + 0x10200482, 0x01230887, 0x4390fe0f, 0x07870743, 0x0f583020, 0x0726080c, 0xc1ff0000, 0xbf017f02, 0x80007c00, 0x9b009200, 0x1c011801, 0x00002e01, + 0x010f2601, 0x07060722, 0x06072627, 0x0791011f, 0x14201187, 0x06332382, 0x15071415, 0x17220239, 0x27311732, 0x06071514, 0x823f1617, 0x2c07866e, + 0x37161737, 0x36012f36, 0x3734013f, 0x870b8635, 0x36372113, 0x27230987, 0x82273637, 0x83262072, 0x27032407, 0x41371731, 0x37291083, 0x27260706, + 0x17163736, 0x205f8413, 0x883b8932, 0x875d874d, 0x82342055, 0x35362923, 0x013d3734, 0x27320139, 0x17225182, 0x678a3534, 0xe0886f83, 0x07142323, + 0x87ec8f31, 0x170621e4, 0x3728d388, 0x07172731, 0x36313734, 0x080ac755, 0x0135263f, 0x03061031, 0x0d0d0b0c, 0x0f100804, 0x14190405, 0x0d0f0a05, + 0x10140608, 0x090b0e0a, 0x02020b0c, 0x1007070b, 0x090e0408, 0x01020301, 0x05050101, 0x0f0b1e15, 0x0a100603, 0x0303180d, 0x283b820f, 0x0d08151c, + 0x080a0a0d, 0x311e820a, 0x0607100a, 0x1a0b090f, 0x0f100602, 0x09080303, 0x1b850c0e, 0x8a010e21, 0x25c72333, 0x38421625, 0x4260200b, 0x6320075f, + 0x8b9a4f84, 0xcd0a0321, 0x25f8238b, 0x2860bb25, 0xbf35080c, 0x020b0f03, 0x0f0a0403, 0x09100805, 0x0d070d0a, 0x090f0a08, 0x09081211, 0x090b0e0c, + 0x10120304, 0x100e0403, 0x02010308, 0x0305090e, 0x01020101, 0x06060302, 0x24ec8403, 0x100a0d18, 0x2f3e8206, 0x0a080e01, 0x080d0d0a, 0x02011410, + 0x05040105, 0x12232f83, 0x820f0611, 0x020b2425, 0x85070402, 0x1b16211d, 0x19213585, 0x2435820c, 0x0404edfe, 0x43878b14, 0xfe21087a, 0xa35384a7, + 0x0f012192, 0x01209284, 0x938d9582, 0x0b100422, 0x02249389, 0x0f050406, 0x9189c182, 0x90080321, 0x04f92291, 0x06596204, 0x3505a641, 0x00040000, + 0x02c1ff20, 0x00bf011f, 0x0082007e, 0x009d0094, 0xf4420100, 0x22674305, 0x06150622, 0x14242582, 0x15313015, 0x22260182, 0x31171633, 0x6a430627, + 0x35372217, 0x246a4336, 0x17310123, 0x05a66227, 0x24071a5e, 0x17161716, 0x05664337, 0x0107062a, 0x161404c7, 0x0f0f0408, 0x5608e882, 0x0714150a, + 0x071b2105, 0x0a11130e, 0x0e141b08, 0x100c1012, 0x0e03030f, 0x0a150a09, 0x010c1306, 0x01010205, 0x1c070602, 0x140f0127, 0x0d160804, 0x04042011, + 0x04081515, 0x110a1d25, 0x0b0e0e11, 0x0201030e, 0x070a150d, 0x230e0b14, 0x14160802, 0x0c0a0404, 0x840b0f14, 0x8913201b, 0xb5fe2433, 0x48743434, + 0x07870701, 0x02162024, 0x03831602, 0x82a10121, 0x0f14388e, 0x05040401, 0x0a07140d, 0x120e0c15, 0x0e0a110a, 0x19160c13, 0x82100c0b, 0x04052892, + 0x06041618, 0x820a1513, 0x0c13258e, 0x02010407, 0x03229683, 0x92820807, 0x20227282, 0x40850d11, 0x0e0b1335, 0x0a11110e, 0x02011b16, 0x07050107, + 0x050b1513, 0x82081717, 0x821520b8, 0x0b0421d3, 0x1e271d85, 0x15080424, 0x82040415, 0xb4fe2635, 0x142b0505, 0x05ca680e, 0x58200787, 0x16219485, + 0x0c2b4c02, 0x38001b29, 0x00004500, 0x51163313, 0x17200528, 0x25052844, 0x2f21020f, 0x224c2601, 0x23172d05, 0x17160706, 0x36332133, 0x23272637, + 0x2a05125d, 0x36352115, 0x33373637, 0x4b152107, 0x23080944, 0x0e1d735d, 0x0e08080d, 0x0c551d0d, 0x24020807, 0x1000ff1a, 0x0808012f, 0x0f100e0d, + 0x0f01010f, 0x30000130, 0x0d220783, 0x94831419, 0x0100fe28, 0x1f140e0d, 0x0784024f, 0x8460fe21, 0x01c033a8, 0x13130e0e, 0x08010e0e, 0x05050c07, + 0xbd40405b, 0x53820303, 0x4440e021, 0x40200730, 0x70213483, 0x202c8370, 0x08e746c0, 0xd3883020, 0xc0014028, 0x4b001c00, 0xd3825200, 0xb8821520, + 0xb9821520, 0x4b06184b, 0x352006c2, 0x0632c482, 0x37360107, 0x26273631, 0x010f2627, 0x36272623, 0x034e3b37, 0x032b2207, 0x21128222, 0xfc4d0722, + 0x32023606, 0x3325013f, 0x30312231, 0x1638e031, 0x38160202, 0x16301602, 0x2b0a8a02, 0x030d5001, 0x100a0a02, 0x79770e10, 0x1021dd83, 0x05414340, + 0x4e104025, 0x4b2d232d, 0xa02a06e2, 0x7f242ca1, 0x010191fe, 0x4090a801, 0xfe254b84, 0x10100a90, 0x2049830e, 0x44e98358, 0x1c210519, 0x062b4d24, + 0x085e1a2a, 0x00000400, 0x8002c0ff, 0x5029df82, 0x82006900, 0x00009b00, 0x05f56801, 0x36171624, 0x7d513537, 0x2a0d8d08, 0x06020f06, 0x06171607, + 0x41262307, 0x322507d0, 0x3534011f, 0x05695734, 0x16173224, 0x3188011d, 0x23260323, 0x312f8222, 0x021f1415, 0x3f323316, 0x34353602, 0x1617032f, + 0x14821415, 0x2f222326, 0x34352602, 0x33201482, 0x01204082, 0xfa831595, 0x0989be89, 0x09061334, 0x02021d1f, 0x13402f1d, 0x0c71435d, 0x10100c0b, + 0xe3853c0d, 0x07222486, 0x02820702, 0x07071923, 0x2a098a19, 0x080830d1, 0x08020e30, 0x890e0208, 0xe0012109, 0xc0201594, 0xd0254e82, 0x0f01010f, + 0x057e41b0, 0x0b83b020, 0x2d06f448, 0x1f1408c3, 0x1f1f0a09, 0x0101260a, 0x7c836b3f, 0x3a0b0c24, 0x00820102, 0x2c8a1020, 0x0b82d020, 0x8db9fe21, + 0x20958581, 0x83838fcf, 0xe0fe2181, 0x00251593, 0x00000600, 0x05874fff, 0x2300112d, 0x40003500, 0xb1006f00, 0x48010000, 0x27621021, 0x0617560d, + 0x905f3120, 0x17162f0b, 0x010f1413, 0x36372326, 0x010f1617, 0x1c820706, 0x1415142d, 0x26272615, 0x3736013d, 0x86151716, 0x16172318, 0x2285013f, + 0x02200987, 0x06262d82, 0x2726022b, 0x2d823536, 0x31342722, 0x35250182, 0x37363534, 0x2a298636, 0x06171633, 0x07062307, 0x95013b16, 0x54012009, + 0x2041060d, 0x088d4c05, 0x55441420, 0xb0fe2106, 0x080ff644, 0x1201e521, 0x0c151b11, 0xad071114, 0x01202037, 0x0211111e, 0x74021616, 0x0912140d, + 0x06060340, 0x820c5005, 0x03502509, 0x40040706, 0x25081383, 0x09015a2c, 0x01021302, 0x1b2207c9, 0x12110105, 0x1d1d011c, 0x09155432, 0xcf361404, + 0x16020216, 0x01010780, 0x0983a007, 0x0983a020, 0x13888020, 0x02166023, 0x06b05401, 0x20054142, 0x20898fa0, 0x0ffa44f0, 0x01320138, 0x23141f01, + 0x120c0912, 0x2c2c1230, 0x01010139, 0x1f1f1402, 0x54837b24, 0x12c9512b, 0x6f140d09, 0x06030407, 0x2009838b, 0x2009838b, 0x2f09836f, 0xe9fe1d4c, + 0x01010314, 0x1e0e0d10, 0x01061515, 0x34280084, 0x1a112828, 0x08161405, 0x0122de84, 0xe5830807, 0x0020068b, 0x02200082, 0x3408ab43, 0x004c0032, + 0x07261300, 0x16011706, 0x012f3637, 0x07012f26, 0x05b64127, 0x26051365, 0x26272635, 0x4d022b27, 0x2728061d, 0x22232637, 0x0727010f, 0x20053465, + 0x4a338217, 0x06820638, 0x0706012b, 0x13271506, 0x02100c0f, 0x2d058350, 0x870d0287, 0x0c4d1a17, 0x150b080b, 0xf4872ab1, 0x01044c3f, 0x1c184804, + 0x1a591b21, 0x1d131252, 0x277e2318, 0x140e0d01, 0x130f5c6c, 0x03090e13, 0x2e068311, 0x8bfe0201, 0x010c0b12, 0x13100cbb, 0x8330fe0f, 0x116a2c05, + 0x15127b0d, 0x0d0a073c, 0x83a3100a, 0x83802030, 0x2f022b50, 0x1549150f, 0x18100742, 0x1084ab63, 0x010e5327, 0x0b090f01, 0x2706830f, 0x25010101, + 0x130d0d02, 0x2e07f342, 0x00c00180, 0x00350027, 0x00500047, 0x9866005d, 0x233521f7, 0x1722ed8e, 0xf96a2327, 0x37322805, 0x05013d36, 0x8d331525, + 0x262529f8, 0x16373627, 0x25070617, 0x2320268a, 0x17850f82, 0x20161241, 0x0f07418b, 0x2937392e, 0x200e0909, 0x0109090e, 0x1ce2fe3e, 0x200e1041, + 0x07fb4c92, 0x86f00121, 0x46602025, 0x28410874, 0xbd802117, 0x210a2041, 0x194e2ca7, 0xfab42306, 0x27419be1, 0x4646200d, 0xe02007bd, 0xe0212286, + 0x3f6d87d0, 0x00000800, 0x7802c0ff, 0x3400c001, 0x4f004600, 0x61005800, 0x73006a00, 0x00007c00, 0x31373637, 0x22068364, 0x6f011f16, 0x152006d0, + 0x2d082b6b, 0x06070601, 0x07142307, 0x22012b06, 0xaf632627, 0x35262205, 0x10687005, 0x26410520, 0x0f062105, 0x0a853082, 0x08853782, 0xa54c3320, + 0x85072007, 0x0706220f, 0x31118727, 0x39390200, 0x34491656, 0x0c030c34, 0x0c0d0a2a, 0xd8461413, 0x12013207, 0x09401b12, 0x0ea00e09, 0x10010909, + 0x010d0c16, 0x0c144e50, 0x00491020, 0x48282007, 0x40200772, 0x80200887, 0x18200887, 0xf6302390, 0x02393956, 0x452d2d01, 0x0c351014, 0x0d0c130f, + 0x2306c94f, 0x0112121b, 0x68275e85, 0x211b151a, 0x4b162221, 0xd5480b36, 0x20508808, 0x87598730, 0x87782007, 0x87482073, 0x065f5311, 0xc0018026, + 0x3d001b00, 0x43067541, 0x36260ba5, 0x34353637, 0x1753012f, 0x06232b05, 0x14072707, 0x17163117, 0x7f421716, 0x33352108, 0x37372382, 0x27222327, + 0x37363526, 0x05150625, 0x07062726, 0x37361716, 0x84373607, 0x011f210a, 0x17200886, 0x350a9f42, 0x0b0c11bf, 0x030c2a0a, 0x4934340c, 0x2b344416, + 0x160c0d27, 0x4b410110, 0x19402606, 0x0a041112, 0x25ec8236, 0xc8fe0c01, 0xb8880215, 0xb8875820, 0x5a4a4020, 0x0ab94308, 0x0c029538, 0x0c0f120c, + 0x46141035, 0x01012d2c, 0x22c52226, 0x151b2121, 0x3541681a, 0x0f012405, 0x82071910, 0x0a102561, 0x563129f6, 0x48204087, 0x20071441, 0x0a164a30, + 0x33066348, 0x00c00100, 0x00250010, 0x00520037, 0x37343700, 0x011d0617, 0x6142e883, 0x27052105, 0x42081867, 0x23230694, 0x42370722, 0x03201074, + 0x4a06204a, 0x0720053c, 0x06290686, 0x012b0607, 0x0ce30900, 0x2b9c8280, 0x012e1001, 0x1cee0301, 0x20443635, 0x24076742, 0x131ace02, 0x0d294e5d, + 0x140e0d2c, 0x0fa010d0, 0x950f0101, 0x06838b0a, 0x0701802d, 0x92151011, 0xa51f21e0, 0x82901813, 0x19492ada, 0x4e4d3d14, 0x23233aad, 0x08404201, + 0x0e060623, 0x0b28424e, 0x90e0fe2c, 0x010d0e14, 0x0f0f0130, 0x04832001, 0x0c140424, 0x0353000c, 0x002c260c, 0x0076006d, 0x22f3827f, 0x43313736, + 0xbe82147a, 0x15230722, 0x200d7143, 0x27148337, 0x07262706, 0x07161706, 0x82075654, 0x16172409, 0x5b173637, 0x0982071c, 0x5e363721, 0x3722050a, + 0x01822726, 0x93700d83, 0x43272005, 0xd044087a, 0x5e002008, 0x144105d0, 0x0c0d2308, 0x74431413, 0x41c02007, 0xf0330638, 0x1502010f, 0x0c0b1315, + 0x09110909, 0x010f1909, 0x84190f01, 0x0b0c250a, 0x02151513, 0x1f83e183, 0x970b0c21, 0x0830431f, 0x9c444820, 0x333e2408, 0x411e1e32, 0x13230942, + 0x56400d0c, 0x654107e2, 0xaf902007, 0x20a68f66, 0x076f4290, 0x01452020, 0x00002208, 0x08ef5603, 0x3e002c26, 0x00004e00, 0x2205b375, 0x70012f36, + 0x222e05fd, 0x011d0607, 0x26232627, 0x15060507, 0xd34b1714, 0x17162905, 0x36373621, 0x21332737, 0x240c706b, 0x0f060706, 0x09bd4101, 0x2307062d, + 0x20022726, 0x0109090d, 0x45350c01, 0x6a2706d9, 0x0b0b0b0a, 0x830afffe, 0x1201250e, 0x41011b12, 0x0121e783, 0x116a7220, 0x1601702e, 0x22402217, + 0x01011617, 0x010fc00f, 0x2106bd57, 0xa242792f, 0x5e252705, 0xe0090107, 0xe1570e0a, 0x0ef5720e, 0x8308f25e, 0x2beb86f1, 0x00c00180, 0x00270022, + 0x13000045, 0x2306d757, 0x07062315, 0x20059c4c, 0x57e08315, 0x13250bdd, 0x23353315, 0x05ab5927, 0x16173225, 0x6133011d, 0x2b21054f, 0x05094f02, + 0xda35332b, 0x0a0c0c0a, 0x1e900ad0, 0x07535712, 0x0e14a02e, 0x1520010d, 0xd00f0709, 0x30c0c086, 0xe020ea82, 0x2020b482, 0x0d238382, 0x4d30140e, + 0x0f2b063b, 0x09b70120, 0x0e09c009, 0x82261501, 0x400f2519, 0x0180010f, 0x70291f82, 0x0f141301, 0x90d9fec0, 0x06214b90, 0x0f01a022, 0x1b834f83, + 0xf3760f20, 0x05e74a05, 0x0f2bc783, 0x97005600, 0xe400db00, 0x4c00ed00, 0x26330793, 0x35072223, 0x33363734, 0x31272617, 0x36350726, 0x5f373637, + 0x173f068b, 0x1d141716, 0x06070601, 0x012f2207, 0x37162726, 0x35361727, 0x35262734, 0x33363534, 0x61363130, 0x2224089a, 0x34272227, 0x1d824483, + 0x27060723, 0x4b318226, 0x0982051d, 0x5c262721, 0x27200581, 0x36205883, 0x32480d83, 0x82162006, 0x3716245e, 0x5d161736, 0x1720052d, 0x06256783, + 0x020f1617, 0x05504106, 0x8a826482, 0x20097861, 0x2b568415, 0x16171415, 0x06151415, 0x06313007, 0x21075f47, 0x01823217, 0x14151422, 0x22059673, + 0x82070637, 0x06d94537, 0x31080684, 0x01373617, 0x09090e40, 0x0d13130d, 0x7d0e0909, 0x0f10110d, 0x1d141301, 0x130c1523, 0x10151414, 0x19010611, + 0x0b0b2619, 0x16142048, 0x0e161611, 0x0082010e, 0x45410220, 0x82022007, 0x0e01230c, 0xae43160e, 0x31ce430d, 0x0b48ef3b, 0x1919260b, 0x10110601, + 0x13141415, 0x1d23150c, 0x0e011314, 0x0f0c1111, 0x2370860f, 0x140e0e0e, 0x0f266e84, 0x1416110f, 0x03467120, 0x07f84308, 0x82c00121, 0x0c7c23bf, + 0xcd827c0c, 0x010dc425, 0x83180902, 0x111d2b43, 0x26271f1e, 0x022c2c2c, 0x61830702, 0x08120324, 0xc8830319, 0x0e131422, 0x02204e82, 0x0d200382, + 0x2005fb58, 0x250b8301, 0x14130f01, 0x6d44e20e, 0x0f064417, 0x29174644, 0x01031245, 0x07261919, 0x78820202, 0x1f272630, 0x011c111e, 0x1d141301, + 0x01020918, 0x61820e0d, 0x02827582, 0xd2820120, 0x0d0e1423, 0x26798701, 0x02100f13, 0x44ab0819, 0x0534135b, 0xc0ff1500, 0xc0016a02, 0x32001100, + 0x64004400, 0x00008300, 0x43059d57, 0x116d053c, 0x05ad6405, 0x1716332a, 0x06010f06, 0x011f1415, 0x820a625b, 0x013f2427, 0x4d070625, 0x07220e9c, + 0x9d492726, 0x011f2505, 0x07060716, 0x3e48308a, 0x15072605, 0x37363533, 0x821d8236, 0x26272452, 0x83233527, 0x012f2922, 0x36013f26, 0xc0171617, + 0x2d0f5a70, 0x171603a6, 0x172b2c20, 0x10400404, 0xee823010, 0x83201421, 0x0c1426e3, 0x0204020c, 0x2e2d8f26, 0x18040490, 0x17202c2a, 0x02040316, + 0x88140c0c, 0x1030312e, 0x60a04010, 0x0c0e0e01, 0x400e0e40, 0x010e0e0c, 0x01210c8c, 0x0f256d80, 0x151fa92f, 0x20020114, 0x12400303, 0x2f121616, + 0x83738349, 0x0774264d, 0x32161212, 0x2e2e8fa9, 0x20030388, 0x15140102, 0x1216321f, 0x87740712, 0x2f49212d, 0x402f3d83, 0x10202028, 0x400b0606, + 0x0a401111, 0x8b100605, 0x0f07220d, 0x09174d00, 0x34001c22, 0x430c1f4c, 0x200808f4, 0x27262723, 0x011f0623, 0x07061727, 0x07011f14, 0x17161506, + 0x013f3233, 0x17060733, 0x013f3633, 0x0a4d4925, 0x49be2908, 0x031f1f1d, 0x1d1f1f03, 0x13096574, 0x28031238, 0x010903c7, 0x011f1f01, 0x082a0d01, + 0x31672b05, 0x12391203, 0xbffe4209, 0x240bc04b, 0x12110195, 0x08d5831c, 0x010fb02c, 0x9c8d1103, 0x020a037c, 0x026e6e02, 0x06010d02, 0x0311ac3a, + 0xfd720f01, 0x03000000, 0xc0ff2200, 0xc001a001, 0x32001c00, 0xad824b00, 0x35331527, 0x011f3233, 0x053f6316, 0x26012f26, 0x2734012b, 0x22200482, + 0x0724a482, 0x06310706, 0x5a06dd5a, 0xc78305ec, 0x33151723, 0x20c78216, 0x05be5923, 0x26232e08, 0x33373627, 0x16373635, 0x3c808017, 0x0a220407, + 0x090a0d0d, 0x21182209, 0x0e09093c, 0x09090e40, 0x1212190b, 0x13021302, 0x1dba1d12, 0x2f078212, 0x19121202, 0x16206396, 0x20160202, 0x02161602, + 0x01270989, 0x052060a0, 0x83090922, 0x17222142, 0x33058d46, 0x10100180, 0x131de01a, 0x14010114, 0x1ae01d13, 0x78011010, 0x4084368e, 0x4820db8f, + 0xf183dbb5, 0x82222321, 0x22ef82e6, 0x45333637, 0xd8ab05dd, 0xd2428b20, 0x12022b07, 0x08050c13, 0x130c0508, 0xd8a60212, 0x1bc82408, 0x0e0f0f0e, + 0x1d1d1a1b, 0x0e06060e, 0x001a1d1d, 0xff0f0004, 0x01f001c3, 0x001c00c0, 0x0066005d, 0x5c00006f, 0x07240671, 0x17061506, 0x20061746, 0x26ac8237, + 0x26273427, 0x4607012f, 0x69461629, 0x09e84b28, 0x28080e46, 0x0707060d, 0x0a11bd06, 0x31d9820b, 0x1a562e2f, 0x2f2e561a, 0x0b011212, 0x0dbd110a, + 0x8f49010f, 0x1f21451d, 0x3c11af49, 0x0303bd01, 0x0f0f0750, 0x45453314, 0x0c2b4241, 0x41422b0c, 0x14334545, 0x50070f0f, 0x1760456d, 0x4927a045, + 0xbf4314a7, 0x01002905, 0x004d00c0, 0x0100005a, 0x2009595a, 0x05154317, 0x5c272621, 0x15220597, 0x0a833523, 0x2105f54b, 0xb34e1716, 0x0a015d09, + 0x56373621, 0x06230551, 0x82070607, 0x3513252f, 0x17161521, 0x2106d449, 0xa3592001, 0x7a1b200c, 0x402b0571, 0x18100f01, 0x02021630, 0x4e073016, + 0x514f0773, 0x01502307, 0x19833807, 0x10183829, 0xc040010f, 0x820140fe, 0x06447534, 0x82099173, 0x07d76955, 0x8318c021, 0x05bd5129, 0x6d8b1820, + 0x60071821, 0x6b8205ba, 0xfec01824, 0x496d20c0, 0x4e002008, 0xff830637, 0x2505db53, 0x00750060, 0x915d1300, 0x5d1f200f, 0x372011a3, 0x08114018, + 0x60078567, 0x3346055a, 0x37362a09, 0x26333736, 0x07062327, 0x05fc5106, 0x11832120, 0x27263526, 0x06052726, 0x4507ce73, 0x2b220825, 0x7845d001, + 0x20078707, 0x0fa84570, 0x0c5f4018, 0x1b1d0129, 0x1b011211, 0x87c0291b, 0x175823ff, 0x0b878001, 0x87400121, 0x09014b09, 0x22084d73, 0x5f01a020, + 0x6a5308a5, 0x46a02007, 0xd7500f8d, 0x05884406, 0x1b2ba026, 0x1f18180b, 0x07835387, 0x83261a21, 0x0d157c7c, 0x448f6020, 0x00040035, 0x01c0ff10, + 0x00c001b0, 0x00440030, 0x0075004f, 0x82221300, 0x05764ffc, 0xb4611520, 0x36372b0d, 0x26273435, 0x010f2223, 0xba712726, 0x1617250a, 0x17163117, + 0x3008f861, 0x36373635, 0x16150737, 0x35373617, 0x07062726, 0x242f8227, 0x3f262706, 0x05f64701, 0x0f141525, 0x45070601, 0x468205a5, 0x17823420, + 0x4f823d20, 0x2f064456, 0x31314c10, 0x3b3b0202, 0x3b3b5858, 0x18200102, 0x22056f45, 0x4b392b15, 0x60290615, 0x0e0f1670, 0x0f0e0101, 0x24078716, + 0x0b0b010c, 0x2a038301, 0x01030974, 0x04111207, 0x83250d01, 0x270e321b, 0x122c0209, 0x40120202, 0x27150212, 0x010c0104, 0x057342c0, 0x380e2224, + 0x5e835038, 0x40226683, 0x13461831, 0x23162305, 0x1f85220a, 0x5d83cc20, 0x5e876020, 0x34210884, 0x84628360, 0x090c2904, 0x07041101, 0x02220212, + 0x17282682, 0x2c101402, 0x12020e0b, 0x10296783, 0x052c1720, 0x010c0205, 0x21008200, 0x3b580003, 0x00212407, 0x473d002b, 0x35230c79, 0x83271523, + 0x05c67703, 0xfc822f20, 0x0f062127, 0x33072701, 0x05f84a27, 0x23053326, 0x011d2335, 0x2108c860, 0x83542735, 0x3729080b, 0x2b408040, 0x0a104601, + 0x0e4c060b, 0x1a74fe1a, 0x0223080e, 0x060f6555, 0x01100a0b, 0x0140c01b, 0xe0140e0d, 0x010d0e14, 0x0b824740, 0x98ca2b26, 0x22023464, 0x0b2d2382, + 0x01147209, 0x1c0c1401, 0x09164fbb, 0x2246820b, 0x56a0a0c0, 0x4123086c, 0x4d002433, 0x2b240a2f, 0x49003500, 0x3d21bb8c, 0x06844601, 0x36271525, + 0x83171637, 0x37322103, 0x22057e47, 0x82222123, 0x161732c5, 0x27373233, 0x1f161706, 0x23063501, 0x26312722, 0x82ca8527, 0x232721ed, 0x080a4a48, + 0x06065739, 0x11120908, 0x19080bb3, 0x19182928, 0x2a060629, 0x3a150f10, 0x9cfe1008, 0x38170810, 0x11060649, 0x11046a0e, 0x11302111, 0x06080813, + 0x12120106, 0x1440011b, 0x8bce950f, 0x11442ed7, 0x01010183, 0x078c6405, 0x01011c09, 0x3303821c, 0x25252508, 0x240d0d5b, 0x0601da2c, 0x1a1a1f53, + 0x0585a105, 0x83272282, 0x12121b40, 0x41760a01, 0x23240c9b, 0x4a003800, 0x616ddf8c, 0x05f84207, 0x35362723, 0x28dd8226, 0x27070621, 0x14150617, + 0x06da4c07, 0xe2821720, 0x25222883, 0xa14a1405, 0x34352106, 0x16222682, 0xa8411617, 0x266e230b, 0xba7f1818, 0x17210809, 0x0d01033b, 0xe4fe220e, + 0x1c391a26, 0x09070703, 0x08090d07, 0x11ee120a, 0x0c080f0f, 0x01d4fe0e, 0x0c7f45dd, 0x250a6d52, 0x35350856, 0x0178524d, 0x354b3f06, 0x322c262e, + 0x02273334, 0x158f2d30, 0x35354c17, 0x101c1e20, 0x09010f10, 0x411a1209, 0x92442ced, 0x52ee820f, 0x802a0663, 0x2b00c001, 0x49003c00, 0xf18c5b00, + 0x256f3320, 0x22232405, 0x82151607, 0x8b0d85e7, 0x45172008, 0x3328060c, 0x31303130, 0x23012f26, 0x21241087, 0x23273736, 0x46053155, 0x16220785, + 0x7c531617, 0xb2be370b, 0x1e010213, 0x182a2e1e, 0x1b010215, 0x01011419, 0x30291b1b, 0x0882291c, 0x17162308, 0x27172b22, 0x1e1e2e44, 0xd6130201, + 0x0f49091f, 0x2626389a, 0x01190201, 0xb807114a, 0x1722fb40, 0x92620116, 0x41078307, 0x95220bf4, 0x37831302, 0x0b0b0a30, 0x1914222e, 0x1b1b2923, + 0x20240201, 0x33832016, 0x1f220223, 0x2f7283bb, 0x2b1c0213, 0x2601a039, 0x02193826, 0xc0910e01, 0x420fe662, 0x00280807, 0x7100c001, 0x8c008300, + 0x0c1b4218, 0x06070625, 0x4e26012f, 0x6c4c0598, 0x09045605, 0x0f20e482, 0x07a84318, 0x7305584c, 0x7d4c09c7, 0x08af4a05, 0x37363722, 0x2308fb6d, + 0x26272601, 0x42452e82, 0x27062507, 0x07352726, 0x200fe24c, 0x5725821f, 0x90470579, 0x20033007, 0x0a081e1f, 0x090a0d0c, 0x0d190809, 0x450c260d, + 0x0c2f05f1, 0x190d0d26, 0x0a090908, 0x090a0c0d, 0x691f201d, 0x202307c9, 0x83081d20, 0x0a0a2113, 0x27212d83, 0x212d850b, 0x2d89270b, 0x1f1e0825, + 0x59100320, 0x435f0fc2, 0x93a02009, 0x42328260, 0x8e96059f, 0x2d966090, 0x4447c020, 0x4e68200f, 0x77440741, 0x0040240b, 0x4278004a, 0x26200ca5, + 0x281f4941, 0x23262734, 0x1d060722, 0x09b94101, 0x17270724, 0x5b6b3336, 0x07272105, 0x2328be41, 0x07062537, 0x240aa644, 0x0f10029a, 0x1745411b, + 0x0325e48e, 0x0ae26001, 0x22e1830d, 0x419d4502, 0x082112a7, 0x0846411e, 0x0f0e0127, 0x0ffffe14, 0x0bd64216, 0x12177924, 0x528e0112, 0x2b15f441, + 0xb14b0302, 0x0e0d0106, 0x37060714, 0x4106fe65, 0xf8410e97, 0x0f182708, 0x0dcb020f, 0x00820001, 0x93460520, 0x00502f08, 0x006b0059, 0x00bf00ad, + 0x17161300, 0xc45c1615, 0x06012407, 0x47171617, 0x7469059a, 0x06072405, 0x4f26012f, 0x26270569, 0x27263527, 0x47010f26, 0x272205ca, 0x5c4d2726, + 0x05fb4505, 0x1f36372b, 0x36371601, 0x37363537, 0x08845717, 0x23108149, 0x31171605, 0x4b122952, 0xaa8228ff, 0xc0315390, 0x17020216, 0x110a1516, + 0x0a0e0e11, 0x1c090a12, 0x2310820d, 0x091c0d16, 0x0e270c82, 0x0a11110e, 0x62171615, 0x258b051d, 0x830e1b21, 0x1b0e2125, 0x3020258e, 0x67072155, + 0x01210c04, 0x15474c40, 0x550c0b21, 0x0f2025f7, 0x4106d441, 0x012305da, 0x901602c0, 0x20c4b878, 0x075152e0, 0xc2574020, 0x5650200b, 0x284d2d98, + 0x06c65f11, 0x00205385, 0x33072b45, 0xc001c001, 0x62005700, 0x00006d00, 0x17162737, 0x06073736, 0x2f0ba748, 0x26012f34, 0x2726033d, 0x30232726, + 0x22313031, 0xf67a0382, 0x2211850b, 0x83233130, 0x021d2414, 0x87010f14, 0x37322c3d, 0x34013d26, 0x011f013f, 0x82060716, 0x36372344, 0xb25d0517, + 0x27062b05, 0x38cf3726, 0x1a2f2f1a, 0x235d0346, 0x30082208, 0x290b8308, 0x0f1d0105, 0x190f0f07, 0x06820f19, 0x05011d26, 0x010d0e14, 0x802b1a86, + 0x040b0c0f, 0x0a308c0b, 0x840b0b0a, 0xdafe2604, 0x0a0b0b30, 0x2904840a, 0x0210a7d3, 0x07d31002, 0x8c44a808, 0x0fc12807, 0x0f0c480c, 0x83064a11, + 0x10032a10, 0x01060707, 0x07070601, 0x23728410, 0x0e124a06, 0xc1201e83, 0x12265f84, 0x0c0da816, 0x4d897822, 0x64893020, 0x47000021, 0x2741056b, + 0x00692906, 0x00930082, 0x07171300, 0x1426e782, 0x012b0617, 0xf14a2726, 0x36032707, 0x33373637, 0x01823130, 0x31303324, 0xb6581716, 0x30372908, + 0x30313231, 0x013b3031, 0x1d2b1283, 0x011f1402, 0x14011d16, 0x55070607, 0x3f20064d, 0x26219982, 0xdc4c1827, 0x06272311, 0x8568011f, 0x05e56805, + 0x2736372a, 0x27010f26, 0x1d170726, 0x3b334a82, 0x26373601, 0x26352327, 0x97070627, 0x0b040b38, 0x41800f0c, 0x4a410a2f, 0x0401210e, 0x0e221b86, + 0x2684140e, 0x1a460326, 0x371a2f2f, 0x0b3e4118, 0x08202108, 0x080f0f08, 0x0f090808, 0x07090810, 0x07101007, 0x10080907, 0xf008090f, 0x08200f01, + 0x16020216, 0x2c05a85f, 0x0c22a77a, 0x1216a80d, 0x0e0d0108, 0x29684114, 0xa8292d83, 0x10d30708, 0xfe100202, 0x7c41187e, 0x91c8200b, 0x288a8572, + 0x0f200818, 0x16160201, 0x2f7d8402, 0x00010000, 0x02200000, 0x00600140, 0x2500002f, 0x2409d54c, 0x3d363732, 0x082f4601, 0x4605d04c, 0x1522053d, + 0x686e1f14, 0x23172105, 0x47078d61, 0x0e29060d, 0x0aa90909, 0x690a0d0d, 0x052e4c89, 0x0c84a020, 0x4d539321, 0x288609f2, 0x09aa5325, 0x4c8a6a09, + 0xa02005b6, 0x93200a82, 0x9562878e, 0x06ef7008, 0x06071422, 0x8305e95b, 0x012f2107, 0x35290d85, 0x36013f34, 0x011f3233, 0x4f87a737, 0x88980abe, + 0x00000225, 0x8201c0ff, 0x23002a01, 0x00004b00, 0x31232613, 0x0ac84822, 0x2009c448, 0x08705317, 0x6f450320, 0x05e64307, 0x4105214f, 0xbb83083a, + 0x2722212b, 0xf7013d26, 0x0a0d0d0a, 0x20f58580, 0x05e74449, 0x28414920, 0xb7802105, 0x1c500e85, 0x08e74a09, 0x0e00ff25, 0x82010909, 0x8580201f, + 0xd34a212a, 0x21056f44, 0x48854ad3, 0xa9fe8022, 0x2b4f1085, 0x06e44408, 0x97440687, 0x82e02006, 0x00a027d3, 0x00490045, 0xd582004e, 0x66062721, + 0xcf83054e, 0x47013b21, 0x42180af8, 0x9e491486, 0x8a272009, 0x2317250a, 0x33071737, 0xfe260582, 0x08151509, 0x87865b48, 0x85330d21, 0x15182108, + 0x12b14218, 0x85181621, 0x0d33211c, 0x5b319f86, 0x20400247, 0x0d765b20, 0x8c010d90, 0x13010113, 0x51fa85ac, 0x34200669, 0x11d34218, 0x208c3420, + 0x4dacac23, 0x5140824d, 0x012d0503, 0x00c00140, 0x00370032, 0x00460041, 0x75e78252, 0x2325052e, 0x1d060722, 0xc44c1804, 0xf442180f, 0x34352b0d, + 0x07232627, 0x33352315, 0x7e723517, 0x0f062205, 0x200e8501, 0x220f8633, 0x82902307, 0x104a27bc, 0x0c0c0b0b, 0x85864612, 0x201f302c, 0x180f0e01, + 0x20010114, 0x1382301f, 0x30302023, 0x07314540, 0x0b824020, 0x0c872020, 0xc0012022, 0x0b2a1e83, 0x2a7a100b, 0x0c127616, 0x0941200c, 0x83202005, + 0x191e2538, 0x251c0f19, 0x15834b83, 0x82608021, 0x077b4a00, 0x0c8b4020, 0x774e0020, 0x24e78405, 0x00550049, 0x52e38262, 0x1d2207ed, 0x6e673301, + 0x15142109, 0x6c72b485, 0x08677c07, 0x8a230121, 0x27222b0a, 0x34043d26, 0x013b3637, 0xc4511735, 0x15232408, 0x89152317, 0x06e5470d, 0x28068f41, + 0x01161623, 0x0f181401, 0x82ee860e, 0x201986c3, 0x82d28206, 0x100a22dc, 0x08fa5170, 0x90707022, 0x7143fd89, 0x87202006, 0x03022bf6, 0x271d1d0a, + 0x190f1c25, 0xf8871e19, 0x0e090922, 0x0c2b1f88, 0x1676120c, 0x0b107a2a, 0x41c0200b, 0x6021070b, 0x08f25140, 0x00820020, 0x0000012e, 0x8001c0ff, + 0x2200c001, 0x013f0000, 0x18070e77, 0x20083d4d, 0x05826203, 0x3f343524, 0xea822301, 0x1d003539, 0x0ba91a05, 0x2e020808, 0x0b0a108b, 0x1009c106, + 0x08090c03, 0x82902f01, 0xe4c037c5, 0x0808021a, 0x7b05050b, 0x0b100a0b, 0x0ee7fe09, 0x040c0808, 0x9282bd03, 0x21051f58, 0x6782c001, 0x3a002d23, + 0x06595300, 0x114a3320, 0x16173105, 0x35373637, 0x1732013b, 0x14111516, 0x15230607, 0x08820983, 0x012b2408, 0x26272621, 0x14131127, 0x33163117, + 0x22213521, 0x00150607, 0x291b1b01, 0x08080160, 0x09363609, 0x87010808, 0x060a42ed, 0x29e0fe26, 0x40011b1b, 0x01217382, 0x05f84300, 0x10836020, + 0x040abf2b, 0x2b2b0604, 0x0a040406, 0x211b82bf, 0x2e82c0fe, 0x06822483, 0x01214f83, 0x42118840, 0xe02a051f, 0xa0010002, 0x39001c00, 0xad825600, + 0x06230726, 0x11070607, 0x2008c454, 0x58968311, 0x072805cf, 0x23070617, 0x3f342726, 0x20069256, 0x06805227, 0x33363728, 0x05151716, 0x06823736, + 0x450f1421, 0xc96705ed, 0x26072205, 0x25e38227, 0x95352726, 0x464f4b0a, 0x09bb5907, 0x0a4b2308, 0x227a220c, 0x0f01eb0c, 0x03010a4d, 0x1e1e1518, + 0x11111415, 0x23140e0e, 0x18243132, 0x010a0503, 0x1b9900ff, 0x1f7f0123, 0x58511801, 0x0001210c, 0x1f2a6283, 0x1f02021f, 0x01010fbf, 0x5282050a, + 0x0e141530, 0x1411110e, 0x22010122, 0x0a010318, 0x1897404d, 0x2608fb7e, 0x00c00160, 0x4e400036, 0x07220fb9, 0x38631716, 0x32332705, 0x013d3637, + 0x01823736, 0x21053c7a, 0x1a823507, 0x22089a7d, 0x5b150735, 0x01210790, 0x05f44300, 0x2d2c4626, 0x2c2d0101, 0x08060244, 0x0b242f21, 0x09070102, + 0x140b0d0c, 0x0b141919, 0x07090c0d, 0x240b0201, 0x1b2a402f, 0x1a01011a, 0x42012a1b, 0x232906fa, 0x4934330d, 0x0d333449, 0x05ee4123, 0x1b08232f, + 0x0b0c0d09, 0x0802020b, 0x06f8070f, 0x20368310, 0x2c3e820b, 0x6423081b, 0x21220bf8, 0x22212e2e, 0x07934c0b, 0x2805d341, 0x002f001b, 0x00560042, + 0xa7421869, 0x17162208, 0x06704221, 0x6f422320, 0x37342405, 0x6b173336, 0x36470581, 0x20138308, 0x09f74337, 0x34830e83, 0x202026a6, 0x0123ae82, + 0x8590010f, 0x70fe28b5, 0x01161722, 0x690e0909, 0xfa680c89, 0x0c664b0c, 0x0121198c, 0x213882a0, 0xec4bb0fe, 0x16012507, 0x50012217, 0xc0205782, + 0xb7461682, 0x4140200a, 0x06860631, 0x1d822020, 0x83062c57, 0x55602006, 0x068606d5, 0x41054f4a, 0x55200b1f, 0x601e1d41, 0x336308b1, 0x17352108, + 0x0def4318, 0x36373423, 0x41129233, 0x60201609, 0x19419f8e, 0x20068606, 0x0d9047a0, 0x58170241, 0xdd430c0d, 0x056e4206, 0x420c3157, 0x083a0d0f, + 0x15000e00, 0x2d002000, 0x23010000, 0x3f33010f, 0x17232201, 0x07273435, 0x0e852733, 0x07062326, 0x15070631, 0x23211882, 0x0ac85805, 0xc001352f, + 0x5c7f0156, 0x03037f01, 0x76680e40, 0x820982da, 0x1be63002, 0x06011212, 0x01467f01, 0x0100fec0, 0x431b1212, 0xa02a06d9, 0x7f017f01, 0x11174080, + 0x09838068, 0x40241983, 0xe0a07f01, 0x21070044, 0x7e8200e0, 0xff000022, 0x22056348, 0x5e000081, 0x153305c7, 0x16011f14, 0x06071407, 0x012f0623, + 0x06012b26, 0x83070607, 0x010f2512, 0x17161506, 0x26053f5d, 0x17321736, 0x4c161516, 0x322308e5, 0x8236013f, 0x36332635, 0x35373637, 0x24368234, + 0x36373437, 0x22128333, 0x5e36013b, 0x262005bf, 0xe2822282, 0x23272623, 0x24368222, 0x26272227, 0x25128335, 0x2726013d, 0x12832726, 0x232a3582, + 0x11111aad, 0x02130901, 0x02820201, 0x101f0324, 0x10830512, 0x0501122e, 0x01120105, 0x051a1111, 0x02201012, 0x01231b83, 0x830a1202, 0x821a2010, + 0x010623f9, 0x37891913, 0x86010221, 0x85122037, 0x84122036, 0x031f2135, 0x53825282, 0x83091321, 0x13192335, 0x35830601, 0x94a00121, 0xa11e8754, + 0x031f218c, 0x568daa85, 0x2366379a, 0x0035270f, 0x006b0062, 0xd9510500, 0x34352705, 0x1736013f, 0xc7471716, 0x26352605, 0x36352627, 0x055a5837, + 0x13601420, 0x13152108, 0x2007215c, 0x2c1c8225, 0x1516011f, 0x06010f14, 0x35272627, 0x07ee5923, 0x2008af58, 0x843d8234, 0x35332342, 0xbd501603, + 0x01260806, 0x0e0d0140, 0x0808500c, 0x0d0e0c50, 0x121b1001, 0x0d160112, 0x1716010d, 0x16172222, 0x160d0d01, 0x36252401, 0xbb528810, 0xf8fe2107, + 0x28382eac, 0x0905070f, 0x0b0b0748, 0x05094807, 0x01280f07, 0xa71b1212, 0x19131409, 0x64835c83, 0x1413192b, 0x2536a709, 0x01280124, 0x073b6298, + 0x34a93820, 0x6968fe21, 0x04200877, 0x2b08f34b, 0x00530008, 0x0065005c, 0x37361300, 0x25051c41, 0x31071437, 0x60690706, 0x013d2108, 0x7b164b41, + 0x894e10d5, 0x692d8a05, 0x03200979, 0x36225a85, 0x82875037, 0x0d0d5023, 0x066e6916, 0x230e4241, 0x30291b1b, 0x3023128d, 0x411b1b29, 0xd0200b68, + 0x2010516a, 0x097e6a01, 0x14131924, 0xb8452709, 0x41272005, 0x27200f3c, 0x47204883, 0x4721158f, 0x8c728201, 0x4118202b, 0xb82008c1, 0x735c6a87, + 0x002c220b, 0x061d6c35, 0x16010027, 0x16331517, 0x052d5317, 0x230d3b42, 0x27262726, 0x42076862, 0x0720059d, 0x21070541, 0x3c411517, 0x0f644110, + 0x20083141, 0x07974105, 0x0d320127, 0x25361001, 0x0f724224, 0x1b121223, 0x09674210, 0xba87ca20, 0x43410820, 0x200d8d0d, 0x21258708, 0xc96a4801, + 0x07be2708, 0x2401280f, 0x72423625, 0x121b2311, 0x9c420112, 0x874e200c, 0xce492134, 0x900f4c41, 0xe9fe2110, 0x55412c87, 0x00003c08, 0xff200003, + 0x016001c1, 0x004c00bf, 0x005b0054, 0x27361300, 0x26272631, 0x450f0607, 0x17220534, 0x974d1716, 0x480b8b09, 0xb1480bb5, 0x23302306, 0x84662726, + 0x823e8305, 0x010f240b, 0x82342726, 0x3717211c, 0x26333982, 0x0703ff27, 0x0b0e0d06, 0x420b040a, 0x12012a29, 0x87121f12, 0x0e0d2310, 0x1c88070e, + 0x0b273236, 0x09080202, 0x100b0d0c, 0x0a0f3612, 0x0b020107, 0x0f010101, 0x0c371f87, 0x5c060e0e, 0x1301142e, 0x3d091e12, 0x0f3e0e0f, 0x0d98010d, + 0x83040b0b, 0x0f2d291f, 0x2c463333, 0x471a2625, 0x34231187, 0x871c0305, 0x072a220b, 0x2f55831d, 0x0701020b, 0x01d9070c, 0x0c0d0b0c, 0x3c010109, + 0x30321e87, 0x671a0204, 0x25281fb8, 0xe6111e1d, 0xf90401f5, 0x45180603, 0xa023086b, 0x6e004a00, 0xa149067d, 0x053e530b, 0x490a1e52, 0x3d2706c6, + 0x32373601, 0x4116011f, 0xa9580518, 0x23262705, 0x1d060722, 0x22822603, 0x2d02602a, 0x2c3f442d, 0x090d0d0a, 0x0a238082, 0x183f583d, 0x180ac94f, + 0x080b414e, 0x07150221, 0x0c0c0a06, 0x0307080d, 0x160a0b02, 0x0811121b, 0x09090e0c, 0x011a1a2b, 0x2d2d44c0, 0x83280102, 0x2147833f, 0x226b0237, + 0x504e1805, 0x09602511, 0x07040215, 0x0c204083, 0x062d4882, 0x0907070f, 0x09370e09, 0x27261453, 0x055f4c32, 0x01400228, 0x002b00c0, 0xa37d0030, + 0x08994f0c, 0x0af64d18, 0x36332722, 0x1120d282, 0x2126c383, 0x11211105, 0x88474021, 0x0bb02207, 0x05eb4345, 0x85000121, 0x0b452207, 0x201b87b0, + 0x835f82fe, 0xc0012703, 0x1b121201, 0x1783e0fe, 0x200cce60, 0x21178320, 0x17832001, 0xe0fe4025, 0x4e002001, 0x8022066b, 0x9582a001, 0x56004229, + 0x22010000, 0x61063107, 0x01230935, 0x5c232615, 0x16230503, 0x83373217, 0x3d362103, 0x25074961, 0x26273423, 0xb9590323, 0x0717210f, 0x55184184, + 0x01210d9f, 0x83ac8220, 0x09092503, 0x231d200e, 0x07774718, 0x081e2523, 0x85188215, 0x07126bc8, 0x490bba5b, 0x012006ff, 0x23065f49, 0xa001c0fe, + 0x33492682, 0x11312505, 0x36252401, 0x13224a83, 0x12820112, 0x1a836020, 0x4d6b4d85, 0x851b8611, 0x00280839, 0x00070000, 0x02c0ff00, 0x00c00100, + 0x0023000d, 0x004b0035, 0x00730061, 0x13000081, 0x16170607, 0x37323317, 0x26012f36, 0x4d06fa74, 0x21200e58, 0x6b103f75, 0x704a0bf6, 0x013d2208, + 0x090c6c33, 0x487a158a, 0x16273c11, 0x2736013f, 0x22232726, 0x011f0607, 0x03074085, 0x0a800a05, 0x40070305, 0x4d450b0b, 0xfe221182, 0x3d5a6080, + 0x0150250f, 0x40140e0d, 0xe1821583, 0x090e6024, 0x108fc009, 0xe85a8020, 0x0b2b220f, 0x2d688a0b, 0x0740bb01, 0x0a01090a, 0x0a40070a, 0xa34d7b0a, + 0x08a14f13, 0x2c5f4887, 0x41102008, 0x102005bf, 0x0f879487, 0xa58f8020, 0x0a0ab522, 0x4b576588, 0x40023207, 0x1700c001, 0x42002900, 0x36130000, + 0x17162137, 0x07114516, 0x012f2629, 0x27013d26, 0x6d013726, 0x07200f66, 0x5508d455, 0x043f0fec, 0xb001190b, 0x0f0a0b19, 0x27273d6b, 0x02031201, + 0x0fb70d40, 0x3dac010a, 0x02022829, 0x873d2928, 0x0a3b2c07, 0x250b0b0a, 0x0a0b0b25, 0x8b24240a, 0xa901390b, 0x16010116, 0x0d831317, 0x29412f2f, + 0x30010224, 0xe04f100a, 0x17fe1713, 0x46833e8b, 0x3c91b520, 0x49184885, 0x39210d53, 0x05534300, 0x200c8c53, 0x08f44306, 0x32013b25, 0x183f3637, + 0x5b0a6f5f, 0x01270ce0, 0x17181e3b, 0x416b370c, 0x50230561, 0x7915092d, 0x252006d6, 0x01251797, 0x1b1010a0, 0x05e74285, 0x59136c21, 0x12920671, + 0x0223a482, 0x4dff0000, 0x0c2b0553, 0x00001e00, 0x27262105, 0x7b352726, 0x13200557, 0x2306667b, 0x16011f32, 0x2e058257, 0x80fec001, 0x0112121b, + 0x12010002, 0x4c401b12, 0x7626053d, 0x131a131a, 0x1783951b, 0x16832020, 0x83e0e021, 0x4001220a, 0x82068340, 0x1813831a, 0x200a8754, 0x07af533b, + 0x865c0220, 0x096e5509, 0x12045518, 0x55182b20, 0x50230b1a, 0x4209090e, 0xe085075b, 0x09821183, 0xb74e5020, 0x63902006, 0xd022063c, 0x1582a001, + 0x544da020, 0x063b4406, 0x86066f4d, 0x441b8606, 0xc02608ff, 0x3d003300, 0x4f544400, 0x07f34408, 0x230cd15e, 0x26273437, 0x16209182, 0x22071756, + 0x54272627, 0x3e500653, 0x35172207, 0x20398333, 0x50a982c0, 0x0d830d41, 0x802a9382, 0x0c0a1822, 0x0a090a0d, 0x0d823c2a, 0x3e502020, 0x5c402707, + 0x22191809, 0x1382c001, 0x26104150, 0x4934330d, 0x8209090e, 0x0a092821, 0x0a0c0d0a, 0x82230b29, 0x5084200e, 0xf826083d, 0x1819225c, 0x03560009, + 0x40022307, 0xcb82a001, 0x45003a2b, 0x26010000, 0x15070627, 0x08527c21, 0x5c430120, 0x16172305, 0x7242013b, 0x013f2306, 0x7c423233, 0x6a3d2005, + 0x35390551, 0x33372307, 0x27230607, 0x06171621, 0x27262107, 0x10023736, 0x02161602, 0x064641fe, 0x09100a38, 0x03280309, 0x60100909, 0x681a0718, + 0x060e0e13, 0x0a0d1f1b, 0xa2424316, 0xcf102f05, 0x1569105c, 0x01f20502, 0x01010f80, 0x0584fe0f, 0x16880126, 0x08160202, 0x7020dd82, 0x01302582, + 0xa0100c0b, 0x010c0d0f, 0x0a0a6817, 0x17094b11, 0x50201782, 0x08251782, 0x053b40f8, 0x07c75bb0, 0x0536cf82, 0xc4ff2000, 0xc0012002, 0x15000a00, + 0x68005000, 0x00007300, 0x44181501, 0x07210890, 0x08255b17, 0x775d0720, 0x06f75007, 0x14011d2b, 0x06070607, 0x012f2627, 0x06935d26, 0x01230997, + 0x52360706, 0x5a55051d, 0x223c820a, 0x5d0f1603, 0x172106e3, 0x94441801, 0x20632508, 0x090d0b07, 0x66230484, 0x827c1111, 0x066143d2, 0x25151531, + 0x29363631, 0x110e0e64, 0x0b0b3511, 0x835d0909, 0x835d2009, 0x83752009, 0x86752009, 0x2a012813, 0x14252925, 0x42020e14, 0x368205c0, 0x070b0825, + 0x840d0920, 0xb0012204, 0x060a7140, 0x070f0127, 0x07090d30, 0x2704840b, 0x7c0e0e60, 0x0b040407, 0x3306e44b, 0x24252b9a, 0x07071d17, 0x11116427, + 0x09350e0e, 0x5d0b0b09, 0x5d200983, 0x75200983, 0x75200983, 0xfe2b1386, 0x1e011692, 0x62302a2a, 0x41280f01, 0x3b84059e, 0x09d20126, 0x070b300d, + 0xd35c0484, 0x40022908, 0x2000c001, 0x42003200, 0x1ea54a18, 0x16051724, 0x65182707, 0x07211082, 0x05296806, 0x18074563, 0x241cae4a, 0x010c0001, + 0x0f8267e0, 0xea726020, 0x16012408, 0x18402217, 0x2318bb4a, 0x200e0ae1, 0x200fdd63, 0x23328360, 0x0f01010f, 0x6f444383, 0x5748200a, 0x3b21063b, + 0x06405303, 0x28822b20, 0x20090652, 0x18b58206, 0x22078151, 0x4526012f, 0x58180679, 0x262e0ab0, 0x022b2627, 0x35262722, 0x0e090900, 0x5e441040, + 0x0e382206, 0x06de5307, 0x210a2438, 0x0a912e21, 0x08080203, 0xe00c0c0d, 0x17070611, 0x14131950, 0x6d419909, 0x09992605, 0x10191314, 0x7c0c8240, + 0x16210ad3, 0x05fa411a, 0x1e1e2c24, 0x36836707, 0xa0243e83, 0x0115160e, 0x8205204e, 0x0d16222d, 0x0b63180d, 0x00a0250b, 0x0100003d, 0x09364018, + 0x785a3520, 0x13454508, 0x0c4b1720, 0x094f4508, 0x5501372b, 0x0901010a, 0x0b0c0d09, 0x187d85ab, 0x220d1563, 0x4b0c0bab, 0x9e200521, 0x2306695a, + 0x68019ea9, 0x35832d83, 0x187a9221, 0x18090a4e, 0x2509195a, 0x0109927a, 0x37830a01, 0x51858820, 0x77418820, 0x01802406, 0x185f00a0, 0x2308034e, + 0x17323336, 0x20095743, 0xef521816, 0x09ad540c, 0xc8822620, 0x06210d89, 0x053a5207, 0x83161721, 0x05804113, 0x36373426, 0x2726013b, 0x23053352, + 0x90333637, 0x08208982, 0x7b850082, 0x1c1c2a2d, 0x0807030a, 0x0a0b0d0d, 0x85230b03, 0x251d8913, 0x2401022e, 0x68543625, 0x86a02006, 0x2f112607, + 0x1f1e0102, 0x212b8232, 0x0482a001, 0x01012123, 0x05c14421, 0x23143124, 0x48832e24, 0x07070326, 0x441d2d0e, 0x5f231585, 0x855f0101, 0x25442309, + 0x5218363f, 0x6a850851, 0x3b4b3526, 0x31182e2e, 0xc74c1f82, 0x002f220a, 0x22571800, 0x011d2108, 0x070c6a18, 0x18013f21, 0x230cb960, 0x3735012b, + 0x22069456, 0x4a35010f, 0x292906a4, 0x0306060d, 0x0d0c0b04, 0x4b5e8217, 0xe02107e6, 0x20158789, 0x074c4277, 0x830b9621, 0x21168324, 0x9b85a807, + 0x9a210582, 0x22148727, 0x18008322, 0x200be750, 0x0cdb4639, 0x180dd746, 0x5709154b, 0x26200d31, 0x4607e146, 0xef8507d0, 0x1b1a0122, 0x22066d63, + 0x451a1b2a, 0x2c570600, 0x83012006, 0x0d2324c3, 0x41493433, 0xa0260667, 0x0b22212e, 0x9f85e4fe, 0x0b1c0125, 0x872e2122, 0x07275719, 0x0022a682, + 0x00820006, 0x01800238, 0x00280080, 0x00420035, 0x0058004d, 0x01000063, 0x06010f22, 0xab52032b, 0x011f2b07, 0x3f361716, 0x36373601, 0xbd7e3537, + 0x2f222505, 0x03232601, 0x2621a682, 0x2516823d, 0x17161533, 0x1c820725, 0x876b3320, 0x36252206, 0x05c66337, 0x63272621, 0x262406cf, 0x17373627, + 0x42081589, 0x222a4001, 0x091d1925, 0x10184810, 0x1801010f, 0x356c2919, 0x6c354444, 0x01181929, 0x18100f01, 0x1d091048, 0x2a222618, 0x0f191dbc, + 0x2807010f, 0x95012301, 0x2801231d, 0x0e010107, 0xa7fe190f, 0x82e00f01, 0x20048336, 0x82088710, 0x0f012236, 0x831583a0, 0x17802304, 0x11821019, + 0x2a551830, 0x1b0a2020, 0x22010123, 0x20200b1b, 0x6e83552a, 0x1719103c, 0x0707e6fe, 0x55191313, 0x45300107, 0x35070735, 0x07013045, 0x13131955, + 0x82638307, 0x07114708, 0x11875020, 0x00820020, 0x0000012a, 0x8001c1ff, 0x5100bf01, 0x0cb35318, 0x26070624, 0x03842227, 0x61180620, 0x18540a4f, + 0x50152007, 0x32240b62, 0x013d3637, 0x42063e71, 0x2637090e, 0x37272627, 0x05042e01, 0x0c0d0c06, 0x0922050b, 0x1e302007, 0x42110918, 0xfe4b0860, + 0x874e2007, 0x08162222, 0x221c8214, 0x4c060624, 0x0c82067e, 0x1d1c0126, 0x9501132b, 0x25834083, 0x08065f2c, 0x0d0e0121, 0x0e090901, 0x4885d050, + 0x2108446e, 0x2587da2b, 0x83103c21, 0x649a2520, 0x140e0e02, 0x2d242587, 0x36051e1f, 0x0021ee82, 0x36ef8207, 0x018002e0, 0x001400a0, 0x0024001c, + 0x0032002b, 0x00590044, 0x5a151300, 0x352008f5, 0x2120bb83, 0x2406d445, 0x23171631, 0x056a4d35, 0x05333524, 0xb0792315, 0x83152005, 0x106c6822, + 0x26251723, 0x09fb6e27, 0x21272622, 0x35272583, 0x12120160, 0x46a0011b, 0xfe21076b, 0x20098360, 0x20048440, 0x221a8340, 0x85600140, 0x20138507, + 0x06145501, 0xfe370787, 0x16160270, 0x22220102, 0x16900133, 0xfe160202, 0x14141f70, 0x4b600101, 0x5a820521, 0xa0200888, 0x68844d84, 0x84a04021, + 0x84a0204c, 0x08bd7958, 0x036a2220, 0x83582006, 0x33f02447, 0x84012222, 0x1414235a, 0xbf47f01f, 0x05975707, 0x3a003624, 0x2f683e00, 0x4f072005, + 0xfa6f0bc3, 0x013d2706, 0x37161733, 0xb36e3736, 0x0a4b460a, 0x3313272d, 0x23012f15, 0x0e7b1735, 0x46011616, 0x64210d20, 0x2e139161, 0x0fb68c39, + 0x3a3a770f, 0x05129201, 0x44c01708, 0x8020051a, 0x2005de41, 0x5a138480, 0xc0200617, 0xc0281385, 0x16eefed2, 0x56564016, 0x0228b388, 0x00a00180, + 0x003d002b, 0x6d6f1282, 0x07884405, 0x2206c856, 0x51323316, 0x23230606, 0x82060722, 0x27262101, 0x23290182, 0x31071417, 0x27222306, 0x07594626, + 0x32331527, 0x0716011f, 0x821d8206, 0x26272125, 0x24073562, 0x142e3336, 0x3300820d, 0x0d070714, 0x6c6c4645, 0x070d4546, 0x0c0d1407, 0x0d0c0101, + 0x7220138c, 0x82088c61, 0x0dd03fab, 0x07087c07, 0x63460f09, 0x09104663, 0x08450907, 0x1a080b0b, 0x010d0757, 0x140d0da0, 0x52829cfe, 0x0f060229, + 0x0f02020f, 0x8202060f, 0x64012111, 0x345b118c, 0xb60b330c, 0x020c0e0d, 0x0d01010d, 0x0d0e0d02, 0x21090957, 0xff880b7f, 0xff830120, 0x35002d24, + 0x9b453d00, 0x1d561808, 0x011d2107, 0x2009b341, 0x0c124e36, 0xe4822620, 0x08be6318, 0x82330721, 0x230723ef, 0x45514035, 0x250b820b, 0x2b2b3b60, + 0x7741030c, 0x0c033805, 0x803b2b2b, 0x2060bbdb, 0xbb0b1818, 0x18180bbb, 0xa0016020, 0x4d0e0909, 0x60200603, 0x6021b086, 0x3c611801, 0x23382f08, + 0x40800124, 0x1c121101, 0x11121c40, 0x7f5b4001, 0x26af8406, 0x004a0044, 0x90580052, 0xa11520b1, 0x353622ba, 0x0a5c6234, 0x0724c88a, 0x14151633, + 0x1721c682, 0x20048206, 0x85cc8933, 0x059b41c0, 0x29345025, 0x85131729, 0x82012011, 0x34098500, 0x29291713, 0x9ebe7034, 0x9e1f2f50, 0xbf0101bf, + 0x502f1f9e, 0x4ddd849e, 0xff5206e8, 0x5b402006, 0x4024067b, 0x2b1a1a01, 0x290f2048, 0x011a1a2b, 0x1f012060, 0x00820840, 0x1f602026, 0x01002001, + 0x20081f52, 0xd9531831, 0x6617200c, 0x2f220584, 0x09831501, 0x22070624, 0x03822723, 0x35272629, 0x35013f34, 0x67270607, 0x353405bf, 0x121201c0, + 0x11121c1b, 0x070eb201, 0x3aab0806, 0x020d0106, 0x0808e977, 0x0608ab22, 0x01b20e07, 0x1f1f1d62, 0x1f1f0303, 0x0977421d, 0x05083911, 0x50390204, + 0x2a08052b, 0x2020010d, 0x2b054578, 0x04023950, 0x11390805, 0x00427709, 0x0a2f4018, 0x2400a028, 0x4a003000, 0x64185700, 0xf7440cc3, 0x07f54c05, + 0x22090262, 0x18331702, 0x22082e5d, 0x62332515, 0x6f4908e8, 0x34022808, 0x17333637, 0x6e313736, 0x233905f2, 0x09003315, 0x3d500e09, 0x01022829, + 0x34271717, 0x0c050504, 0x060b0c0d, 0x06f34738, 0x44304021, 0x302b078f, 0x30500001, 0x0101201f, 0x6a301f20, 0x17520929, 0x30302f08, 0x090e8001, + 0x29280209, 0x22232d3d, 0x44838012, 0x8c204c83, 0x21067042, 0x8d6ee0a0, 0x60a02108, 0x4b824384, 0x2106a741, 0x3982a080, 0x1462a020, 0x01002e08, + 0xe0ff0000, 0xa0014002, 0x00003700, 0x0edd5d01, 0x2b21ca83, 0x44058b01, 0x3b22061b, 0xdc823501, 0x01210588, 0x09d35e80, 0x00436020, 0x86078306, + 0x4b12888f, 0x8e830aad, 0x36420387, 0x21118805, 0x93820400, 0x8002d031, 0x0800b001, 0x5e005500, 0x00006700, 0x6e272613, 0x172505b5, 0x36313736, + 0x070e7035, 0x16171422, 0x22098976, 0x18152133, 0x29079b6c, 0x37363736, 0x27262734, 0x70182135, 0x3520087c, 0x378d1382, 0x25352124, 0x57850706, + 0x06850320, 0x80070622, 0x20076258, 0x0de65820, 0x15434020, 0x00012105, 0x444a168d, 0x8d402007, 0xc0fe2316, 0x17597801, 0x59d82007, 0x43180816, + 0x312008a0, 0x200fea58, 0x05014137, 0x17a83720, 0x87493721, 0xa8fe2155, 0x2009df6e, 0x085b4304, 0x30002726, 0x54004200, 0x27076143, 0x16171621, + 0x07061117, 0x200a2c55, 0xf3421821, 0x17112a0c, 0x26272107, 0x0f062327, 0x10006d01, 0x117d4618, 0x16010025, 0x4e012217, 0x1f290557, 0x200e0909, + 0xff09090e, 0x2b088600, 0x1282011f, 0x07122001, 0x0718be18, 0x85068c4f, 0x07f946dd, 0x47064941, 0xfe240884, 0x301729e0, 0xd2631485, 0x17302b07, + 0x48200129, 0x01174848, 0x814b1701, 0x57468209, 0x002b0c74, 0xff1f0001, 0x01a001e0, 0x4d4f00a0, 0x37210817, 0x050a4d36, 0x15010f22, 0x33210a8a, + 0x06835d36, 0x44163321, 0x0628055e, 0x27222307, 0x07013d26, 0x08447418, 0x0a8a3520, 0x36373424, 0x92828033, 0x0c0d7729, 0x0603040b, 0x89890d06, + 0x34403009, 0x01042424, 0x0d0e090a, 0x36060809, 0x82604e36, 0x87172027, 0x89292027, 0x07004d09, 0x83222321, 0x21208340, 0x0a891d27, 0x22019a25, + 0x82083522, 0x09012842, 0x4e080e0a, 0x82023333, 0x07a8212f, 0x0b212a87, 0x200a891e, 0x20608236, 0x05f76b00, 0x0140022b, 0x001d00c0, 0x0041002f, + 0x0deb5854, 0x37331723, 0x58038333, 0xc37809dd, 0x15172110, 0x2010ed55, 0x05f35125, 0x83272621, 0x05c04436, 0x24080f59, 0x10401010, 0x200382e0, + 0x08a74910, 0x73a04021, 0x44220f33, 0x6e182d2d, 0x022608e9, 0x01442d2d, 0x59180100, 0x14250806, 0x02010d0e, 0x0631591e, 0x4483a020, 0x00822020, + 0x12120125, 0x8360011b, 0x73fe200d, 0x50201031, 0x0f9b7418, 0x0f73b328, 0x730f0101, 0xef56210c, 0x0c212207, 0x05637000, 0xc0012031, 0x2e001800, + 0x4c003300, 0x00006500, 0x18060713, 0x290ce14e, 0x22232602, 0x0603010f, 0x6f6b3115, 0x01372405, 0x5a343536, 0x092605c4, 0x37270701, 0x2f920517, + 0x93010221, 0x26eb2a14, 0x0e260505, 0x02050502, 0x2909890e, 0x230e0ebd, 0x0f13140e, 0x08867d01, 0x0183fe36, 0x691869b7, 0x0823fe18, 0x03153808, + 0x15030808, 0x39070739, 0x38220985, 0x15946001, 0x568f9520, 0xfe2d6083, 0x13130fa0, 0x0e0e230f, 0x130f7d01, 0x20668214, 0x205b820e, 0x205b8338, + 0x83568f22, 0x00ff2154, 0x00211593, 0x06175b00, 0xc0010033, 0x6b000a00, 0x36010000, 0x010f2627, 0x3f161706, 0x25088401, 0x011f1415, 0x89592607, + 0x200b9005, 0x05b54c06, 0x17013f28, 0x3f323316, 0x26823601, 0x97372721, 0x2358840b, 0x27360726, 0x82053a58, 0xf9012653, 0x11110e0e, 0x2a048458, + 0x0b0b0cc7, 0x1f0a1d1d, 0x820b1f05, 0x1c1c2609, 0x20051e0a, 0x820a820b, 0x45210809, 0x0d0a0909, 0x0c450a0d, 0x1e26271d, 0x0b09090b, 0x0d1f2c22, + 0x1d27261d, 0x0c09090c, 0x0c202c22, 0x220b861e, 0x832e0808, 0x203b254b, 0x3a080a1f, 0x2e2a0983, 0x010b0705, 0x0e111197, 0x0484580e, 0x30820e20, + 0x1d244482, 0x212a1e0b, 0x38834883, 0x44200b8c, 0x2305ff6b, 0x1c1c0c45, 0x0b237b82, 0x83200421, 0x830a8209, 0x1d1d2109, 0x08229083, 0x4b832e06, + 0x09073c25, 0x833a2121, 0x082e2309, 0x97700c06, 0x01bc2b08, 0x001100c0, 0x005a0048, 0x975b0100, 0x05b47211, 0x37262723, 0x05816336, 0x0f161725, + 0x59163301, 0x2727066f, 0x3f262726, 0x5f162301, 0x362808d2, 0x32373637, 0x03273717, 0x210f647c, 0x97470117, 0x079f4708, 0x0809d323, 0x07156729, + 0x2c262939, 0x0405165a, 0x17622610, 0x1d030d0e, 0x0d0b0a03, 0x0307070e, 0x430d4618, 0x11240b37, 0x2d2a370f, 0x240ba67b, 0x291b1b01, 0x084b6a01, + 0x26074943, 0x1f050349, 0x82020208, 0x080d2ff9, 0x2b121b1f, 0x1316170b, 0x1011012b, 0x53838d17, 0x7a225b83, 0xde43221e, 0x3603240b, 0x18b9fe14, + 0x240fea72, 0x0c000000, 0x07eb5800, 0x15000a39, 0x3a002000, 0x50004500, 0x66005b00, 0x7c007100, 0x92008700, 0x50130000, 0xa17b142b, 0x37362d08, + 0x31373407, 0x32213336, 0x06151617, 0x2805b75f, 0x012f2623, 0x27262726, 0x203a8937, 0x270a8823, 0x1633012f, 0x23070617, 0xa10d7150, 0x89272015, + 0x02b02536, 0x02161016, 0x18200484, 0x02220887, 0x0a899016, 0x08083838, 0x0bca010b, 0x1d010808, 0x0601301d, 0x061ae81a, 0x1d1d3001, 0x3889e001, + 0x43946020, 0x1594d820, 0x15947820, 0x6f896020, 0x8305c957, 0x18302092, 0x8708db4c, 0x826b2008, 0x2e8e8286, 0x13292936, 0x02021a0e, 0x29130e1a, + 0x18533629, 0x820f134d, 0x2012858e, 0x21068560, 0x119a1602, 0x2b088a48, 0x20000200, 0x6001c0ff, 0x1100c001, 0x1806dd6e, 0x240ae974, 0x07060706, + 0x05457803, 0xc7420620, 0x37362b05, 0x32033b36, 0x16171633, 0xd252011f, 0x06072305, 0xf24a022b, 0x4a012008, 0x5b47052d, 0x108a7705, 0x16482308, + 0x0c070502, 0x030c0b0d, 0x183a0703, 0x0106062d, 0x0202020d, 0x0514141b, 0x15162206, 0x0e090901, 0x2b482810, 0x08082105, 0xa67e0785, 0xe1fe2611, + 0x08371807, 0x8341820b, 0x27613149, 0x11030107, 0x07211b12, 0x2024191a, 0x6009090e, 0x20054848, 0x21078660, 0x6f4c0061, 0x82402005, 0x005821df, + 0x22834a18, 0x30151423, 0x06b06431, 0x3332332b, 0x32023b32, 0x023d3637, 0x28f58234, 0x16173201, 0x1714021d, 0x82138216, 0x83012018, 0x34012418, + 0x18332737, 0x261b894a, 0x10110b0c, 0x82010202, 0x18202400, 0x690c0b11, 0x158206a9, 0x82211821, 0x10022116, 0x01221382, 0x4a182001, 0x45231a82, + 0x82700102, 0x20318324, 0x20da8540, 0x82488340, 0x0410250f, 0x0000a004, 0x2f20df8a, 0x4b18df8a, 0x33251057, 0x013f2627, 0x05b25927, 0x4c010f21, + 0xba8905b9, 0x4b18ff20, 0x66320e3c, 0x550a061f, 0x0909073c, 0x0c0c760c, 0x1b7b2651, 0xa6891212, 0x4b18e120, 0x34310e20, 0x5347090c, 0x0708090c, + 0x430d0c5d, 0x12120140, 0x2597831b, 0xff000002, 0xfb5802c0, 0x9b3d2005, 0x36212699, 0x27373637, 0x05505433, 0x16331527, 0x07061517, 0x23038323, + 0x23352726, 0x36230382, 0x41353337, 0xa78f0762, 0x07e44b18, 0x01e0fe2c, 0x010f200f, 0x01010f30, 0x0a8a300f, 0x8f065841, 0x20a384b1, 0x852c8f50, + 0x82002037, 0x43012000, 0xb9820813, 0x0f6c1320, 0x0b615705, 0x7f180620, 0x6c4a0934, 0x430f8205, 0xb25c0902, 0x34352807, 0xe0333637, 0x6c09090e, + 0x212109e4, 0x07a0612c, 0x6c212c21, 0x186d09ec, 0x05af5c10, 0x081c0822, 0x2006e16c, 0x22751819, 0x6c192009, 0x0f420ae8, 0x6d232005, 0xf7470b19, + 0x80012606, 0x2900c001, 0x73bd8300, 0xd358095f, 0x09c95813, 0x6f033521, 0x2f4d056b, 0x21232606, 0x15060722, 0x779a85e0, 0x702006ac, 0x1c830d8d, + 0x82093f62, 0xa001218c, 0x278e9185, 0xe75c3586, 0x08238507, 0x00030020, 0x02c0ff05, 0x00bf013a, 0x001b000d, 0x0100002c, 0x17363736, 0x06071613, + 0x2726012b, 0x07420711, 0x27222a05, 0x36013f26, 0x37260317, 0x06bd6021, 0x2726213a, 0x01012f26, 0x0b0a0100, 0x0405e007, 0x0fe00a04, 0x010b2c01, + 0x09800f01, 0x27080d82, 0xce0b0780, 0x16021203, 0x0c040312, 0xfe2c2122, 0x22212cca, 0xb001040c, 0x0903040b, 0x0808c0fe, 0x010f0109, 0x0c035140, + 0x08353482, 0x0ae00808, 0x11cdfe03, 0x0f110303, 0x0119192a, 0x2a191901, 0x060f450f, 0xc0011f29, 0x8d007200, 0x18130000, 0x58084f6c, 0x2065074e, + 0x07142f06, 0x17161706, 0x33301730, 0x31300706, 0x0d831514, 0x11821620, 0x82183120, 0x31200ead, 0x2321af82, 0x07a55826, 0x33321724, 0x26843316, + 0x86163321, 0x83608250, 0x20038252, 0x282a8223, 0x17372627, 0x30013926, 0x820c8631, 0x0568451d, 0x0607162d, 0x0361010f, 0x08281512, 0x4c070e0f, + 0x3f08076f, 0x0811100a, 0x0b2f2c36, 0x0c0c0301, 0x22010114, 0x0d0c0408, 0x15141113, 0x13290312, 0x02030108, 0x29151302, 0x0f0f0e0a, 0x02020404, + 0x040c0b0d, 0x0d060504, 0x01010403, 0x120e0201, 0x35010e12, 0x05253a82, 0x19110a0a, 0x3d058207, 0x15151114, 0x14290212, 0x01030309, 0x2901014d, + 0x03020915, 0x16120201, 0x07091128, 0x4b820208, 0x010c2328, 0x0b081160, 0x41820106, 0x07060428, 0x0b0b0d0d, 0x0b820304, 0x12092808, 0x01013515, + 0x0d18181e, 0x012a1501, 0x17181d01, 0x07080b0c, 0x0d0b0105, 0x0e040506, 0x0509090f, 0x05050402, 0x83010102, 0x3b85837d, 0x05010201, 0x09020606, + 0x1d341312, 0x150d1619, 0x181a1e25, 0x08080d0f, 0x070d0c06, 0xd120a082, 0x0c213985, 0x2039820e, 0x29338203, 0x170f0606, 0x00000308, 0x6b480600, + 0x00212808, 0x0035002e, 0x4d4b0040, 0x16200907, 0x2505597c, 0x35331716, 0xa650022b, 0x21332706, 0x27263736, 0x14831321, 0x075a6118, 0x37361737, + 0x15070627, 0x34373637, 0x15160727, 0x03170714, 0x32331523, 0x21288217, 0x55182726, 0x064d0845, 0x04012808, 0x38452f2f, 0x4219af18, 0x2b0805b7, + 0x010f9001, 0x70fe0f01, 0x481602a0, 0x050a1540, 0x02120414, 0x56293780, 0x26790505, 0x017d0401, 0x10895b02, 0x850c0f12, 0x382b2b14, 0x2d080250, + 0x1201a001, 0x121b1b12, 0x2d440112, 0xd055022d, 0x012c0806, 0xfe010f0f, 0x48021658, 0x15140517, 0x1404010a, 0x23220517, 0x40460103, 0x1212402f, + 0x07060557, 0x1f012406, 0x305d09c0, 0x40011d1e, 0x20093b6a, 0x08e34f03, 0x77005225, 0x18008300, 0x47079d4f, 0x0720058f, 0x2105c26c, 0x0782012b, + 0x12851520, 0x82151721, 0x4407200b, 0x2f240a9e, 0x26272601, 0x2b6efe82, 0x056c4909, 0x3736352a, 0x34353736, 0x05333637, 0x08ce8018, 0xfc521720, + 0x01200824, 0x09090e90, 0x0c0a1113, 0x07050404, 0x0a0c0c0c, 0x17021010, 0x2101100f, 0x13142234, 0x16160101, 0x3306395c, 0x0b181317, 0x08070302, + 0x170c0c0d, 0x0e151411, 0x2002010e, 0x14292282, 0x24151601, 0xfe0e0909, 0x281e5370, 0x2982c020, 0x08041222, 0x75836d84, 0x01080532, 0x23170f0f, + 0x1d0e150f, 0x2704251d, 0x150c1d1d, 0x2305af41, 0x0f0d0613, 0x0b206f83, 0x10267782, 0x0e0e010b, 0x25860415, 0x1e1d2824, 0x2482160d, 0x49534020, + 0x00003127, 0xff000003, 0x01c001e0, 0x001500a0, 0x0040002b, 0x1807cd74, 0x25088788, 0x26272623, 0x4e181127, 0x16200877, 0x84057b41, 0x54352015, + 0x11240521, 0x07060706, 0x112e1084, 0x37363736, 0x0e0d01a0, 0x0e142014, 0x0888010d, 0x01211292, 0x83228d70, 0x7601202b, 0xfe21082a, 0x213f87a0, + 0x72496001, 0x21138808, 0x2d83b0a0, 0x88e0fe21, 0x464a8423, 0xe0220527, 0xcb820002, 0x52002628, 0x06010000, 0x98823107, 0xb64c1520, 0x5f2f2006, + 0x352005b4, 0x3522a984, 0x3f663736, 0x15172505, 0x33233503, 0x27200d82, 0xdc852683, 0xf2832120, 0x33282184, 0x17161706, 0x33152333, 0x2005294e, + 0x05cf6433, 0x112ea82f, 0x460b0605, 0x0b461111, 0x2e110506, 0x0d7567a8, 0x01534027, 0x0702030d, 0x65158747, 0x01320509, 0x471b1212, 0x0d030207, + 0x05935301, 0x12161612, 0x5b699305, 0x0e012c06, 0x0e460c0e, 0x0e0c460e, 0x8340010e, 0x08a74326, 0x00ff4027, 0x11110f40, 0x83148d0f, 0x24158357, + 0x10100640, 0x05bf4106, 0x042af384, 0x44001900, 0x35250000, 0x01821521, 0x2120c288, 0x08408518, 0x89057d69, 0x023b21fe, 0x1e411a84, 0x2726290e, + 0xc0011523, 0x800180fe, 0xd175b889, 0x83a02009, 0x87a0208b, 0x109027da, 0x16172290, 0x0e412601, 0x0126260b, 0x4020500f, 0x84c98e40, 0x84d88931, + 0x1716230e, 0xfc8b1022, 0x010f1023, 0x22cf8a40, 0x851a0014, 0x08a95bcf, 0x2709bd5b, 0x013b3501, 0x35332315, 0x1527bb82, 0x06070623, 0x6916011f, + 0x35200615, 0x1805ea5d, 0x24089f4a, 0x36373633, 0x05b64137, 0xfe27cf8f, 0xa0109040, 0x8f0f50e0, 0x829782bf, 0x22a284d8, 0x841b1212, 0x8e2020ec, + 0x211782ba, 0xe4830001, 0xc18d0f20, 0x16172223, 0x0cad4101, 0x44060021, 0x1a2208db, 0x434e4a00, 0x05002408, 0x84313736, 0x21ae8302, 0xae832726, + 0x2105c960, 0xc0501716, 0x068d6405, 0x0282d582, 0xf6443720, 0x06a95a05, 0x15260c83, 0x06010f14, 0xc5502223, 0x06072206, 0x210b8407, 0x22823637, + 0x4e031721, 0x27210855, 0x09f56437, 0x2308a064, 0x00010716, 0x120d7f18, 0x22224908, 0x2f48393a, 0x100a0a27, 0x070d0d0e, 0x05050704, 0x03032310, + 0x13130c05, 0x0503050b, 0x030b070d, 0x0a030706, 0x09120704, 0x150d0c09, 0x04190b0d, 0x07164103, 0x1e0b0304, 0x0b2b0709, 0x270b0201, 0x011a0f15, + 0x010f100f, 0xb7300484, 0x0e0e0408, 0x0d030806, 0x2014060e, 0x0a0a0b0b, 0x40210484, 0x91668401, 0x9b35087e, 0x0404040d, 0x0d050605, 0x0f101006, + 0x03021108, 0x01010e07, 0x0105060e, 0x040f0a02, 0x090b1a07, 0x0e0f0b17, 0x07110f0c, 0xd7020210, 0x09090817, 0x06130301, 0x238e820b, 0xdffe0f04, + 0x2507eb5e, 0x060e1885, 0x04820d03, 0x500e0427, 0x0b0a0a20, 0x2004840b, 0x06675400, 0xc001802a, 0x41002c00, 0x65006000, 0x0c254518, 0xe15c3620, + 0x2726220a, 0x6d461836, 0x2615280b, 0x0722012b, 0x71062527, 0x272111f3, 0x097b4a03, 0x06171422, 0x280a127e, 0x27351716, 0x36170706, 0x814a1837, + 0x039a220c, 0x05bd4540, 0x09024025, 0x52400101, 0x40380527, 0x701a1601, 0x01c90c0c, 0x1b1b2919, 0x0c080801, 0x08080c88, 0x291b1b01, 0x22082376, + 0x8603030f, 0x253f2a2b, 0x02058935, 0x5f2738b0, 0xe7481801, 0x0e78220a, 0x058b4a0f, 0x82121521, 0x05125255, 0x01014026, 0x059e030b, 0x04204783, + 0x56824f82, 0x5e830420, 0x8500ff21, 0x20252429, 0x85400202, 0x213f2b29, 0x0e6d8f06, 0x2606df0f, 0x335a764a, 0x058f5508, 0x33002124, 0x0d464c00, + 0x053e4e08, 0x07061535, 0x17140706, 0x23061716, 0x26272621, 0x23051127, 0x55131735, 0x37211081, 0x2eff8226, 0x07062315, 0x15331716, 0x37361716, + 0x82363335, 0x35232713, 0x12120100, 0x8582a01b, 0x2438802d, 0x14140123, 0xff050522, 0x82121b00, 0x808023b9, 0x756b3080, 0x0110220f, 0x09fe4c0f, + 0x80200988, 0x802d2f83, 0x2709090e, 0x3e2d2e10, 0x1825252d, 0x26558301, 0x80408001, 0x6b80fe80, 0xd0210f76, 0x053d4d0f, 0x0f42488c, 0x0018260a, + 0x0039002c, 0x22e78257, 0x83373621, 0x055355aa, 0x41212721, 0x052308d0, 0x18231523, 0x220c584c, 0x4d17023d, 0x2327053d, 0x36373435, 0x69150733, + 0x41180931, 0x35200823, 0x2907cb59, 0x1f9d0125, 0x0f1f2f2f, 0x4c180a09, 0x4c270777, 0x100a0b06, 0x18405b01, 0x200a734c, 0x20cd8290, 0x06d76840, + 0x8206f473, 0x08226006, 0x011f0037, 0x0a021f01, 0x090b0f0a, 0x01011472, 0x0b097214, 0x200b0a10, 0x814c18a0, 0x2050230a, 0x32821080, 0x82303021, + 0x30202149, 0x2009b75a, 0x5b0f8280, 0xbf6f0880, 0x00022906, 0x7800c001, 0x93008a00, 0x240ac552, 0x37171615, 0x05494f27, 0x2f060729, 0x17160701, + 0x18363533, 0x2308d96d, 0x17070623, 0x08594418, 0x27013f25, 0x52150706, 0x33200976, 0x5c69ec82, 0x011f2209, 0x05d77337, 0x85272621, 0x36332540, + 0x06072737, 0x2905f24c, 0x17010f16, 0x23353736, 0x146f2726, 0x0a734e05, 0x47183720, 0xc0310801, 0x16501602, 0x10160202, 0x0b18232f, 0x11110e0e, + 0x24048338, 0x061c180b, 0x073c5222, 0x1c062229, 0x11110b18, 0x83380e0e, 0x180b2404, 0x18102e24, 0xaf08c772, 0x6e302036, 0x974a0fea, 0xa8012108, + 0xc605a14a, 0x2f23216d, 0xc820a49e, 0x200f016f, 0x09055b68, 0x2805db48, 0x018002c0, 0x004100c0, 0x0dbf4472, 0x65433720, 0x05764306, 0x37272630, + 0x36371617, 0x0726012f, 0x07011f06, 0x7d432726, 0x058e4306, 0x56070621, 0x272506d3, 0x23070617, 0x43328435, 0x162205a2, 0x4e4c0717, 0x223c8405, + 0x43171637, 0xba4306c1, 0x37362205, 0xdf491827, 0x119f220a, 0x188c4105, 0x2124e794, 0x01026e5f, 0xbf413298, 0x1a1f220c, 0x0be044fc, 0x231e7c22, + 0x411e3741, 0x21240ea5, 0x0909d14b, 0x042232a5, 0x0b44c60e, 0x0011290a, 0x00670055, 0x01000076, 0x10896e18, 0xed5e1720, 0x05af4205, 0x2009f745, + 0x054b4915, 0x20066e41, 0x058a580f, 0x1716152c, 0x013b1716, 0x27263732, 0xaa6f3d23, 0x6b05200a, 0x27211006, 0x20328216, 0x05736c2f, 0x17363722, + 0x45074d7e, 0x552205a5, 0x99560229, 0x29022207, 0x053a460b, 0x29302026, 0x07011b1b, 0x3006f942, 0x110e0e38, 0x2d020711, 0x5050442d, 0x13220c0c, + 0x06856313, 0x2b010b22, 0x2f0f0645, 0x480a0a4d, 0x0a280b0b, 0x1d0b0b0a, 0x010b0b3d, 0x220c5b7c, 0x57341c50, 0x3421075b, 0x207c851c, 0x217a83d0, + 0x7d430706, 0x83382006, 0x06072970, 0x022d2d44, 0x50251902, 0x4507a863, 0x2b2e0faf, 0x0a480b0b, 0x0b0b280a, 0x3c1c0a0a, 0x4b180a0a, 0x5b410c3b, + 0x00702205, 0x575d417b, 0x2111195c, 0x5d5f2635, 0x18352006, 0x4109a072, 0x9b204862, 0x8442fc8f, 0x16022105, 0x41078a48, 0xfe214462, 0x0fc841b0, + 0x23084857, 0x500f01c0, 0x04826b83, 0x410bdf48, 0x80200567, 0x20696541, 0x06fa4537, 0x4605e245, 0x37240542, 0x07161736, 0x20596a41, 0x0d83733b, + 0x23054673, 0x0a0a0b0b, 0x20567341, 0x13f973b5, 0x3b447583, 0x0057240c, 0x41820064, 0x3d224977, 0xce720601, 0x2a73480c, 0x233d7941, 0x30080808, + 0x20074844, 0x1d9848bb, 0x24394544, 0x0121110d, 0x056a44d0, 0xb7484020, 0x01402f28, 0x004b00c0, 0x00630057, 0x33161700, 0xa84b3231, 0x0b12630a, + 0x09874918, 0x22232622, 0x220a964b, 0x66022b15, 0x3b220674, 0x4a181501, 0x032109b9, 0x09d56833, 0x6a230521, 0x892509da, 0x0a0d0d0a, 0x05a64b60, + 0x59422920, 0x29602107, 0x2005374b, 0x201c8b60, 0x072e66c0, 0x09201d88, 0x0e24d483, 0x40010909, 0x37220886, 0x32840909, 0x2a090923, 0x21f68573, + 0x5a852a73, 0x19976182, 0x80370122, 0x2105f645, 0x08878080, 0x2c0c5345, 0x00510045, 0x006a005d, 0x17000088, 0x64581837, 0x21352608, 0x23373435, + 0x2e054135, 0x32331624, 0x08411337, 0x17332109, 0x21090841, 0xee4a3723, 0x41972029, 0x00220830, 0x2b414b0b, 0x40802113, 0x8b07054d, 0x4109201d, + 0x40200513, 0x21065946, 0x7742f040, 0x4137201c, 0x10220830, 0x4741161a, 0x09092122, 0x20124941, 0x22764250, 0x18070021, 0x2f08fb51, 0x00300023, + 0x004a003d, 0x00640057, 0x01000087, 0x4b0aab79, 0x3d520628, 0x012b2709, 0x27262726, 0x7c181711, 0x062409e8, 0x07061707, 0x0a8a0e89, 0x37070622, + 0x25221998, 0xe54f1617, 0x26272206, 0xb2481835, 0x37342407, 0x6a013b36, 0x013008cb, 0x0e0d0120, 0x0e146014, 0x0228010d, 0x18021616, 0x2007424a, + 0x251384a0, 0x200f0140, 0x0484010f, 0x07861020, 0x10200c82, 0xb0201589, 0xfe251594, 0x090950a7, 0x05e94250, 0x42731a21, 0x73210583, 0x05af421a, + 0x2609755f, 0x02164890, 0x18481602, 0x83083959, 0xa0012208, 0x22708720, 0x89500f01, 0x89702067, 0x8a7d8a15, 0x84d72015, 0x8376826e, 0x42192075, + 0x1920050e, 0x974e8185, 0x00232f0c, 0x006a0058, 0x2500007e, 0x36313732, 0xe642013d, 0x82142018, 0x06072619, 0x31272607, 0x80581826, 0x37162108, + 0x2406e34d, 0x16171637, 0x580b8317, 0x262407af, 0x31072627, 0x26242d83, 0x06232707, 0x15213082, 0x222b8236, 0x82363336, 0x49352045, 0x232205b8, + 0x36593115, 0x35172608, 0x090e2001, 0x8fa08609, 0x124e08ba, 0x232a2b23, 0x1c161315, 0x0307070d, 0x0d0b0b03, 0x322c1526, 0x07091f31, 0x311f0907, + 0x26142d32, 0x030b0b0d, 0x0d070703, 0x1513161c, 0x232a2a23, 0x904e1213, 0x010d0e14, 0x11140a08, 0x13151511, 0x80011e1d, 0x140e0d01, 0x131d1e90, + 0x12821515, 0x60080926, 0xd30e0909, 0x41068241, 0xd3200a9c, 0x46288582, 0x18020119, 0x07120f0d, 0x0d206a83, 0x0a267282, 0x0301190f, 0x00820410, + 0x01031025, 0x830a0f19, 0x2a72836a, 0x0c0e1207, 0x19010218, 0x83e60c0c, 0x05b92a5d, 0x0f0d0502, 0xe0140c01, 0x277c8330, 0x0c1401e1, 0x0d0e0101, + 0xb9211582, 0x086b6300, 0xc0014029, 0x88005300, 0x51130000, 0x1c410502, 0x17142105, 0x82091e41, 0x32332109, 0x20058641, 0x29078217, 0x36171617, + 0x2726013d, 0x83442726, 0x3523211a, 0x13212084, 0x32a14126, 0xac837020, 0x04831020, 0x06060523, 0x062f4115, 0x111a2127, 0x1d111414, 0x0730411e, + 0x05060622, 0x3020e283, 0x2013a141, 0x22198380, 0x4113c380, 0x012130a6, 0x203983c0, 0x230483d0, 0x020a0c60, 0x2f063d41, 0x0c0c1301, 0x010c1414, + 0x02050d0f, 0x600c0a02, 0x93209983, 0x2111a941, 0x1883d093, 0x0c5afe23, 0x2fae410c, 0x00000023, 0x08775e0b, 0x35002335, 0x59004700, 0x7d006b00, + 0xa1008f00, 0xc500b300, 0x1800d700, 0x210b7d5e, 0xba450607, 0x183f2005, 0x240a0585, 0x2b262734, 0x117f4c01, 0x112d9d18, 0x1805e557, 0x200a975a, + 0x054d7d1f, 0x200ba84f, 0x10c74c33, 0xf4632520, 0x9035920f, 0x25172159, 0x27204790, 0x1720478f, 0x21067c5d, 0x7c44ca33, 0x44c92005, 0x05820518, + 0x56648020, 0x10b37e11, 0x08767718, 0x4f071445, 0x329010ea, 0x4fd0fe21, 0x33900f83, 0x218fb020, 0x50b00121, 0x78900f41, 0x1e5b0120, 0x44c92006, + 0xca2105d1, 0x05534533, 0x06828020, 0x8708ff6c, 0x10077f56, 0x32905e90, 0x5020918f, 0x3190908f, 0x4390d5a1, 0x00820020, 0x20000332, 0x6002e0ff, + 0x1200a001, 0x5a003600, 0x21250000, 0x18065249, 0x2b088d42, 0x35363723, 0x26273431, 0x010f2223, 0x49094f48, 0x1628096e, 0x013f3233, 0x31232625, + 0x36201f9b, 0x02233982, 0x4100fe40, 0x02200526, 0x17200786, 0x20050442, 0x05044229, 0x260b3f48, 0x0ac0fe60, 0x930a0d0d, 0x09092119, 0x200c5e6b, + 0x05814189, 0x85d32a21, 0x49d3205a, 0x2e220a85, 0x16930909, 0xfa823083, 0x0006003b, 0x02c0ff10, 0x00c0016f, 0x00260014, 0x004a0038, 0x00b800a3, + 0x07061300, 0x06365115, 0x8f683f20, 0x26352305, 0x6f6c1727, 0x90072010, 0x11816c11, 0x47500520, 0x43362005, 0x3b2005b9, 0x26058c63, 0x07171617, + 0x8e161706, 0x36372513, 0x2726012f, 0x86059c56, 0x0f062207, 0x820f8401, 0x202f8f07, 0x243f8313, 0x0f262736, 0x05ef5101, 0x1734af83, 0x17021690, + 0x0e0e1111, 0x40111140, 0x11110e0e, 0xd8160217, 0x0b305618, 0x0c8bb020, 0x63380121, 0x058505af, 0x1bd8fe39, 0x0913140c, 0x1b020224, 0x300e0909, + 0x1b09090e, 0x09240202, 0x880c1413, 0x281f830f, 0x15140c26, 0x14191418, 0x24078422, 0x0c141518, 0x830d8222, 0x8b262007, 0x8ad7202b, 0x25938681, + 0x1602c001, 0x95831776, 0x1e829a82, 0x170e0e26, 0xc8021676, 0x6020838b, 0x28200c8b, 0x6a2aab8b, 0x0c091331, 0x04024414, 0xe4413631, 0x31362a05, + 0x14440204, 0x3113090c, 0x20108526, 0x25218426, 0x0d0c1547, 0x04833f0d, 0x3f150c27, 0x150c0d0d, 0x21238c47, 0x7b8b2101, 0x00238f87, 0x82000300, + 0x80022900, 0x13008001, 0x5a004700, 0x08594e18, 0x06071434, 0x26272223, 0x37341135, 0x16173336, 0x0f143115, 0xa8493301, 0x011f2107, 0x820eca49, + 0x2c308420, 0x3526012f, 0x36013f34, 0x25173233, 0x20428c11, 0x4d228232, 0xb5850687, 0x0909d724, 0x354ce62a, 0x21128f11, 0x24458901, 0x21378208, + 0x52188001, 0x0782071f, 0x82400121, 0x0a492511, 0x290a0d0d, 0x430c3d43, 0x138e0657, 0x75fe2921, 0x3684068a, 0x67503e82, 0x052b5e05, 0x2f001722, + 0x5f20fd82, 0x9f42fd82, 0x33173305, 0x34353736, 0x010f2627, 0x07222726, 0x07333615, 0x77791617, 0x22233705, 0x011f0607, 0x17140706, 0x36352633, + 0x16230537, 0x27070615, 0xf64a0726, 0x37323105, 0x36012f36, 0x07273437, 0x36372726, 0x23272627, 0x37081782, 0x3f161714, 0x32171601, 0x23063537, + 0x202a3be0, 0x0a050307, 0x0a010f70, 0x3d22070a, 0x0f101056, 0x07217c11, 0x0101090a, 0x050a700f, 0x35220703, 0x03410202, 0x5a012301, 0x198f0583, + 0x3f93de20, 0x01600123, 0x22288f23, 0x913b0341, 0x2a3b2468, 0x91110f45, 0x93c02041, 0x08b7663e, 0xc001002c, 0x00004d00, 0x31230613, 0xde412722, + 0x011f2207, 0x05ae6016, 0x11012f22, 0x200cb07c, 0x05005c01, 0x1342f982, 0x27338212, 0x3233010f, 0xf7073517, 0x2312784e, 0x1b121201, 0x23074e4d, + 0x01242536, 0x0f4d0f83, 0x1d232413, 0x4e290129, 0xfe22106e, 0x5f181bed, 0x01230839, 0x83362524, 0x0e02420d, 0x29237383, 0x822aa411, 0x050022da, + 0x9b651800, 0x00282807, 0x0062003a, 0x82b8008b, 0x333625e3, 0x011f3231, 0x0d0b4118, 0x07063125, 0x84012b06, 0x08ac4cfa, 0x18060521, 0x200f956e, + 0xc6a71805, 0x01392509, 0x16311732, 0x18062c75, 0x4109d759, 0x8c55053b, 0x7a1d2008, 0x1523067e, 0x7f010f14, 0x22230995, 0x82263127, 0x01392328, + 0x3f411335, 0x09186209, 0x82303121, 0x37342701, 0x33363736, 0x368a3930, 0xda830920, 0x29436920, 0x03022705, 0x05060504, 0x66436007, 0x6a132505, + 0x77010909, 0x0f6f4018, 0x76f3fe21, 0x2582064c, 0x72030421, 0x69200602, 0x22059341, 0x852d016a, 0x8c0f8748, 0x826d202a, 0x216c8d4f, 0x6a870e09, + 0x09b70124, 0x2d876a09, 0x84820720, 0xf7245a8d, 0x0112121b, 0x8377898b, 0x8e092006, 0x735e84ae, 0xbf8307b5, 0x2b856f8a, 0x8f00ff21, 0x4f6d839b, + 0x4d180676, 0x1b280bbb, 0x51003600, 0x7f006d00, 0x60088363, 0x5e5e061d, 0x33372706, 0x36373435, 0x03820333, 0x20054479, 0x093b7607, 0x26230128, + 0x27372627, 0x50183533, 0x0a420f3c, 0x05332406, 0x18313526, 0x18088750, 0x26086341, 0x06070615, 0x1807012f, 0x8410777e, 0x182020d0, 0x250d6e8a, + 0x0e090920, 0xde834057, 0x070e4024, 0xda471509, 0x22248406, 0x18012089, 0x450a348a, 0x01280639, 0x40090929, 0x01131310, 0x23850f86, 0x7a184920, + 0xc0200c06, 0x3b905382, 0x4077fe22, 0xa9203992, 0x4b828e92, 0x90943720, 0x09204082, 0x0938ab18, 0x0006003b, 0x02c8ff08, 0x00b80178, 0x00330014, + 0x005a0045, 0x0084006f, 0x1f361300, 0x05285b01, 0x2307062d, 0x37362726, 0x37262733, 0x60373617, 0x1620051c, 0x20097867, 0x248d1807, 0x4b1e8608, + 0x17220aa5, 0x9e6f3601, 0x85448406, 0x0137244f, 0x85013f26, 0x07005752, 0x27060724, 0x1e732721, 0x07226005, 0x82161721, 0x110f2314, 0x6b5a3f11, + 0x16603805, 0x26160202, 0x770e0e3f, 0x251a190c, 0x25313125, 0x0d191a25, 0x890d0505, 0x060c230d, 0x9842ba06, 0x8201200f, 0x0e0e2341, 0x3d83263f, + 0x16244284, 0xc0fd3f02, 0x1123118f, 0x8f400211, 0x11112367, 0x2791b101, 0x1f1ae52e, 0x0116161e, 0x1e161601, 0x0c0c1a1f, 0x4c200d8d, 0x230f9c43, + 0x0e0e3101, 0xfe21c18f, 0x91118f1e, 0x0e0e2165, 0x08135818, 0xc001e026, 0x5b002d00, 0x09bd8e18, 0x660d7951, 0x36230d6d, 0x47373637, 0x032005da, + 0x4705ff44, 0x105e0edc, 0x050f4805, 0x89013d21, 0x4901212d, 0x52063654, 0xd32007c0, 0x210d8145, 0x26542ad3, 0x0a145406, 0xab429320, 0x1b012408, + 0x8293291b, 0xb7012121, 0x4f832589, 0x12012924, 0xdf421b12, 0x25362407, 0x83290124, 0x00ff2115, 0x0922258e, 0x24870e09, 0x1b1b2922, 0xfe822485, + 0x2206c356, 0x82b00100, 0x005a27ff, 0x007e006c, 0xd5831300, 0x52057c52, 0x581805d5, 0x27230937, 0x46012b26, 0x13200ea7, 0x2210a652, 0x181d0607, + 0x89097891, 0x333623fe, 0x68721f32, 0x16012511, 0x17163117, 0x8307ae7d, 0x45f9202d, 0x1a210556, 0x48a78393, 0x534f08cc, 0x510e200b, 0x20410a02, + 0x06794f0e, 0x2342f920, 0x63fe200f, 0xbb4208c0, 0xa7012107, 0x24051247, 0x1b1b0119, 0x071a4129, 0x210fd551, 0xdd5100ff, 0x0b44410f, 0x20065e50, + 0x100e4367, 0x1039a218, 0x4d000021, 0x1320103b, 0x6c07c679, 0xb0520596, 0x31152105, 0x32200783, 0x520bbc4f, 0x05200ee2, 0x4f05fa56, 0x372005e4, + 0x20150253, 0x07324d40, 0x4d07424d, 0x01211a3a, 0x193a4d40, 0x70460120, 0x0e092407, 0x4d09090e, 0x7118393b, 0x172d098f, 0x00003800, 0x31072201, + 0x06111506, 0x67a81807, 0x34112609, 0x07232627, 0x18178206, 0x2010985c, 0xa7971815, 0x01232708, 0x09090e00, 0xdb41021e, 0x1e022407, 0x4f0e0909, + 0x012008b1, 0x20081e68, 0x07385d70, 0xc0017022, 0xfe232182, 0x412512f7, 0x252307a1, 0x82090112, 0x68802043, 0xe020133f, 0x2107055d, 0x008200e0, + 0x0000022f, 0x0001c0ff, 0x2c00c001, 0x00004000, 0x84ad8513, 0x8065188c, 0x37362107, 0x2305f44a, 0x35272627, 0x26240b83, 0x01392327, 0x13220283, + 0x70722722, 0x17362106, 0x2d058178, 0x16402306, 0x07160202, 0x19100101, 0xc0830f0f, 0x92838020, 0x190f0f26, 0x07010110, 0x082b1a83, 0x14400870, + 0x01010d0e, 0x840b0c0c, 0x83012002, 0xc0012ea3, 0x02161602, 0x13410701, 0x1b1b120b, 0xec701821, 0x21c02908, 0x0b121b1b, 0x01074113, 0xfe2d1f83, + 0x130d0d82, 0x0e13140d, 0x130e0c0c, 0x210a8214, 0xd743000d, 0x26bf8405, 0x003d0008, 0x82530048, 0x163324c3, 0x82231517, 0x36072baa, 0x3b36013f, + 0x011f3201, 0xd7831716, 0x0622038d, 0xee6f2307, 0x27262305, 0x03893736, 0xc663c982, 0x07062105, 0x0c853484, 0x16505832, 0x16028002, 0x19160158, + 0x135a1310, 0x01161910, 0x0123dd82, 0x89151501, 0x0e0d2203, 0x059b4114, 0x1228148b, 0x01400112, 0x010f600f, 0x10200484, 0x0c820786, 0x2834f283, + 0x98021628, 0x080b0c19, 0x190c0b08, 0x180e0c16, 0x1a0e0e1a, 0x14200387, 0x8b06596a, 0x0e182413, 0x5d58160c, 0x7020077b, 0x0a164c18, 0x4e180020, + 0x2a2409b7, 0x00004400, 0x2205275e, 0x82303330, 0x373628be, 0x37361732, 0x82323336, 0x333622da, 0x23058216, 0x31323132, 0x14250783, 0x35262107, + 0x18c17515, 0xe2820020, 0x01011b39, 0x1e151506, 0x130a1217, 0x13171713, 0x17120a13, 0x0615151e, 0x821b0101, 0xfe0923d9, 0x6c750912, 0x00012116, + 0x1c262083, 0x0b011112, 0x00820c13, 0x010b1325, 0x831c1211, 0x0e122450, 0x755b120e, 0x7b4b1316, 0x001c290a, 0x003e0031, 0x0056004b, 0x20068358, + 0x6bae8321, 0x36240580, 0x3736013d, 0x22055955, 0x68360135, 0x17230545, 0x65013f16, 0x17250582, 0x36253716, 0x212e8237, 0xdc820615, 0x05352723, + 0x88641815, 0x07212509, 0x17160706, 0x2105d041, 0xb4180001, 0xd3230d62, 0x83021e03, 0x70200811, 0x0a0a3b01, 0x400b0b40, 0x0b0b0a0a, 0x0f0f0125, + 0x0b0b2501, 0x0f01c5fd, 0x010f6001, 0xa0fe0f01, 0x602b0582, 0xff0e0909, 0x09090e00, 0x41d04001, 0x90200ad0, 0x2107b141, 0x098360fe, 0xf3080825, + 0x8320210c, 0xfe502209, 0x825084d5, 0x0a0a2356, 0x32837924, 0x0a247924, 0x9558ab0a, 0xe0502109, 0x55824d82, 0x4140e021, 0x04300bd3, 0xe0ff0000, + 0xa0014002, 0x45004000, 0x4f004a00, 0x210c0155, 0xf1822315, 0x0a038318, 0x18058247, 0x850c1683, 0x23352112, 0x2308f967, 0x15052123, 0x23200d82, + 0xe6450488, 0x48282106, 0x83068446, 0x0756440f, 0x83064a47, 0x2848210e, 0xfe269f85, 0x50a80100, 0x02848050, 0x46a00121, 0x402105b4, 0x5a218380, + 0x1b2208ef, 0x0f8f011b, 0x86408021, 0x84402029, 0x06002700, 0xc0ff2000, 0xd7828002, 0x3a00352a, 0x44003f00, 0x65005600, 0x3227dba2, 0x36373617, + 0x9b171637, 0x11c855d0, 0x860e7e62, 0x27f190a8, 0x29170909, 0x2f413529, 0x9820ea94, 0x620fa060, 0x0b410f69, 0x2c022718, 0x01011a1b, 0x02414827, + 0xf0fe210d, 0x620f5861, 0x07200f55, 0x22122341, 0x416a005f, 0x82564725, 0x13466210, 0x20342a41, 0x62d98f08, 0x2b411032, 0x4160202f, 0x1d620f7c, + 0x42002015, 0x6f201457, 0x62583141, 0x36411812, 0x19fe6145, 0x61403f41, 0x434119e9, 0x00512513, 0x13000070, 0x25092446, 0x2b060714, 0x215b1501, + 0x07062105, 0x1805d36d, 0x2b0c9042, 0x33352726, 0x27222335, 0x15053526, 0x07250882, 0x33152335, 0x26098327, 0x31072205, 0x60011d06, 0x29590589, + 0x17162505, 0x32151716, 0x21061351, 0x3482012b, 0x34013d2a, 0x35333637, 0x0e090920, 0x2907de49, 0x1f300828, 0x090f0120, 0xa5442c1c, 0x2848300e, + 0x0109090e, 0x30505078, 0x50d05050, 0x5f780150, 0x546a0750, 0x05b54407, 0x18065e59, 0x280ac144, 0x1f200140, 0x10081930, 0x15ab4420, 0x86402021, + 0x5f902000, 0x2223083e, 0x83011617, 0x0f756a55, 0x28074349, 0x014002e0, 0x00330080, 0x0b2b4168, 0x25051f4c, 0x07060706, 0x04822215, 0x315c3120, + 0x240f8305, 0x2726011d, 0x051f5c26, 0x5a82f384, 0x31373622, 0x20054649, 0x232a8216, 0x27262706, 0x4a05094f, 0x05820516, 0x26221182, 0x01833637, + 0x16311723, 0x21088217, 0x23410017, 0x08082a07, 0x13131d0c, 0x1d111401, 0x07bc451e, 0x111d1e2e, 0x13130114, 0x08080c1d, 0x2a233301, 0x210ea95d, + 0xa95d2d14, 0x152c2109, 0x230ea95d, 0x1312232b, 0x20070962, 0x823f8324, 0x0b7d2346, 0x7a180114, 0x802509a0, 0x0b140101, 0x8272837d, 0xfe242279, + 0x2feb5bda, 0x000c0c22, 0x2c05774a, 0x00c001c0, 0x00380018, 0x23151300, 0xc8881835, 0xae7c1808, 0x0f062209, 0x0e784201, 0x75530720, 0x012f3f07, + 0x26272223, 0x02306035, 0x30412a2b, 0x022b2a41, 0x1e1d0130, 0x1e2c302c, 0x0960011d, 0xed410e09, 0x16053307, 0x130d0d03, 0x0d0d13ea, 0x0e051603, + 0x28010909, 0x2d830808, 0x08213683, 0x832d8308, 0x4e482036, 0xd520087f, 0x2005ae48, 0x414282d5, 0x1f2a05db, 0x5c02c5ff, 0x3e00bf01, 0xa7827d00, + 0x27363725, 0x59010f26, 0x0622050a, 0x08852307, 0x33171624, 0xab820715, 0x16170635, 0x1716023f, 0x011f3736, 0x2f363716, 0x012f2601, 0x59363335, + 0x23230630, 0x85052726, 0x3437253d, 0x010f2227, 0x2308a26a, 0x07011f06, 0x3d835483, 0x14170125, 0x59371617, 0x4182060b, 0xd3583720, 0x277a0808, + 0x21c52736, 0x0b151307, 0x150b1a1a, 0x10220713, 0x07041107, 0x08031516, 0x26201304, 0x0108030f, 0x06051616, 0x26261212, 0x05051312, 0x08011616, + 0x20260f03, 0x02080513, 0x05061615, 0x01100711, 0x0b10424c, 0x0634130e, 0x08041615, 0x070f0f13, 0x09161405, 0x1c10050d, 0x0a10250c, 0x13100c23, + 0x2012190f, 0x0f0e1f22, 0x0a151306, 0x1c0b0516, 0x0d111b0c, 0x120f0d1b, 0x5d830e10, 0x49554908, 0x13070b15, 0x07133a3a, 0x0b49150b, 0x03151512, + 0x12281606, 0x040a1701, 0x05163810, 0x05281501, 0x1f02021f, 0x01162804, 0x10381605, 0x01170a04, 0x06162812, 0x12151503, 0x0f2fb40b, 0x250b1113, + 0x1604163f, 0x080b0250, 0x2f087682, 0x12271405, 0x0b14100b, 0x122d0c04, 0x1f100b10, 0x11152405, 0x15260d12, 0x3513060a, 0x141b0b0f, 0x1f0d0810, + 0x0f0d1012, 0x11130810, 0x09000000, 0x20089355, 0x06174a24, 0x65005828, 0x84007200, 0x47189900, 0x15220c25, 0xdd820706, 0x4406f06b, 0x23250698, + 0x27262726, 0x0c976211, 0x620cb162, 0x27200c97, 0x6209bc62, 0x338c0eb1, 0x3411dd4f, 0x011f0627, 0x16070623, 0x06073317, 0x013f1617, 0x26012f36, + 0x0a614a07, 0x11111e26, 0x170e3302, 0x08c56b18, 0x0e146025, 0x4950010d, 0x43620aff, 0x2015890a, 0x621594d0, 0x01200a6f, 0x24100870, 0x1c0a0a93, + 0x2b418359, 0x0a0a1c59, 0x0a380b0b, 0x0b0b380a, 0x2709cc62, 0x232319b8, 0x11324c29, 0x098f9d18, 0x0d015027, 0xa001140e, 0x206a89b0, 0x1fc46210, + 0x8a0ada62, 0x00ff212b, 0x2a0ff847, 0x1d0b0b43, 0x010f0f01, 0x840b0b1d, 0x418c8286, 0x93201bcb, 0x0d154718, 0x08b86518, 0x36331526, 0x34272637, + 0x2f056659, 0x17212726, 0x16333736, 0x07061517, 0x35272623, 0x36210a8a, 0x20198c37, 0x8e248927, 0x4a338c19, 0xe55e202f, 0x09bc4108, 0x330e1726, + 0x1e111102, 0x41055c4f, 0xe8630a0d, 0x0aa4410a, 0x4f41b020, 0x8a158a09, 0x7001212b, 0x4a0fe048, 0xc0200f5d, 0x34426a84, 0x07644c05, 0x11015029, + 0x23294c32, 0x83b81923, 0x64f02011, 0x0d6514e1, 0x6590200a, 0x924a1f23, 0x0a002121, 0x22188743, 0x4198008d, 0x0e6d74bd, 0x61c24125, 0xfb42e020, + 0x10f44a0f, 0x4b64c241, 0x4f452629, 0x419d2019, 0x5b4b86c5, 0x72ca4118, 0x4119884b, 0xbd4b75d3, 0x43082019, 0x202e089f, 0x3a002d00, 0x54004700, + 0x6e006100, 0xd5418200, 0x3736241a, 0x45272611, 0x3f204f55, 0x2c06fa54, 0x36331133, 0x27263537, 0x26273423, 0x12ba4123, 0x20083051, 0x414545e0, + 0x090eb02d, 0x0f904009, 0x900f0101, 0x660e0909, 0x885105c4, 0x08166405, 0x4506eb46, 0x6020452f, 0xfe286582, 0x01400120, 0x010f800f, 0xa7487b82, + 0x01402308, 0xa74800c0, 0x007f210d, 0x25195743, 0x36013d26, 0x02823537, 0x20518541, 0x2a4c6f37, 0x25119c41, 0x1e020959, 0xe3461f01, 0x6cc02047, + 0xad411cea, 0x120e2815, 0x19122580, 0x41921f2f, 0xcb4d45b0, 0x0fc34d09, 0x2007db4d, 0x29008200, 0xff000008, 0x018001c0, 0x434300c0, 0x005e2607, + 0x007d0069, 0x4d434394, 0x23070623, 0x06516d15, 0x2105c848, 0xa34a3736, 0x37362405, 0x4f272635, 0x15580a1b, 0x17272108, 0x8205ef5c, 0x182f2010, + 0x2108ef61, 0xb8411736, 0x43602011, 0x58232a55, 0x6d010f30, 0x0f29052a, 0x20160201, 0x0f010216, 0x635b1888, 0x4f901809, 0x23078607, 0x0f0123c3, + 0x0a221c82, 0x0888060c, 0x2015b841, 0x58308201, 0x964805a6, 0x83b02020, 0x10402152, 0x0f295682, 0x02021618, 0x010f5816, 0x0aa94820, 0x2020ca87, + 0x29220888, 0x2c832b34, 0x040b6024, 0x0a8a0903, 0x6a080021, 0x2e2e083b, 0x48003b00, 0x62005500, 0x86006f00, 0x214c8d00, 0x2b07310d, 0x1d070601, + 0x30151402, 0x16171615, 0x012b0617, 0x2008c37a, 0x1f2a4c15, 0x22261d4c, 0x181f3617, 0x2307e8bf, 0x26270607, 0x372a0183, 0x17013f36, 0x37361527, + 0x144c3736, 0x262a220a, 0x24ca8220, 0x09371615, 0x23184c0a, 0x0d4c6020, 0x09a73c1f, 0x010e7809, 0x1d0b0c01, 0x0909361e, 0x0b1d1e36, 0x0e01010c, + 0x325f6878, 0x4c021516, 0x9f210903, 0x29488211, 0x01010818, 0x38382d01, 0x1d45042c, 0x15094c0f, 0x144c8020, 0x0afe4b14, 0x04722008, 0x10063004, + 0x26292921, 0x04041726, 0x29262617, 0x06102129, 0xbc265630, 0x28292a1b, 0x43060000, 0x77201257, 0x434a5343, 0x0720151d, 0x7b051458, 0x505106e2, + 0x83352005, 0x3d36430d, 0x09431320, 0x017d2211, 0x0638430f, 0x84062d43, 0x1521480f, 0x20291e43, 0x15ed42a9, 0x65180920, 0x4c5b0912, 0x84518205, + 0x0b5f4d12, 0x240bcb71, 0x00830071, 0x186d4197, 0x34352625, 0x52373637, 0x5e4d059c, 0x128d6d4e, 0x3117142c, 0x32013b16, 0x26353637, 0x86702627, + 0x118d4105, 0x120a5a24, 0x7c461d11, 0x30012147, 0x0f875e18, 0x0a0ae030, 0x0a0fda0f, 0x1b1a010a, 0x1b276627, 0xc844011a, 0x13102715, 0x101d1c24, + 0x8046e060, 0x46b02045, 0x07870767, 0x8182cd20, 0x7f848882, 0x00218882, 0x16bf4910, 0x89007b30, 0xa4009700, 0xbe00b100, 0xd400c900, 0xd344df00, + 0x0611220c, 0x05e27c07, 0x215af150, 0x64851505, 0x36373624, 0x0b823337, 0x71833120, 0x1d230c84, 0x89070601, 0x0715210d, 0x2b054545, 0x17163335, + 0x23351716, 0x27262726, 0x15210b85, 0x18198b35, 0x22154cad, 0x63171627, 0x9d5b07b5, 0x231f450e, 0x38517020, 0x1601242c, 0x98102217, 0x10802504, + 0x01161722, 0x51180499, 0x437f10a6, 0x16022106, 0x4a096745, 0x5e45157c, 0x15fe4a15, 0x20156851, 0x20968950, 0x20a58980, 0x200a8970, 0x20d78940, + 0x20e18960, 0x23158980, 0x681602f0, 0x0482c183, 0x83204021, 0x22048408, 0x84160218, 0x22048207, 0x18000000, 0x2309eb5d, 0x13000030, 0x2305637f, + 0x1f160706, 0x08468418, 0x3f361723, 0x05c96d01, 0x37363725, 0x54012f26, 0x250805da, 0x06272627, 0x2627010f, 0x090c0e11, 0x01106370, 0x35671001, + 0x0f0d0b07, 0x11062165, 0x65210611, 0x070b0d0f, 0x17836735, 0x041a6a27, 0x470e0b0a, 0x29178322, 0xbc01a320, 0x110e0c09, 0x258f20a3, 0x22273d8b, + 0x0a0b0e47, 0x836a1a04, 0x7063213d, 0x0736a382, 0xc0ff2000, 0xc001e001, 0x13000a00, 0x47003e00, 0x5b005000, 0xbc826600, 0x2109ef7f, 0xb3823307, + 0xa2822320, 0x06072727, 0x14021d07, 0x057b4417, 0x21013d23, 0x200b8815, 0x6ebe8203, 0x0722075e, 0x4f7d2617, 0x605c1806, 0x06012108, 0x2107ce55, + 0xde532107, 0x26272306, 0x74180107, 0x5e3508c8, 0x13040b8c, 0x0b0413d0, 0x02201d4b, 0x100e0909, 0x0109090e, 0x2c088600, 0x0a1c2002, 0x8c1a1414, + 0x0815141a, 0x07364211, 0xfe263b89, 0x300e0e8f, 0x04841111, 0x30900126, 0x11110e0e, 0x01210484, 0x202b83a8, 0x2d048450, 0x350a01c8, 0x0b010a35, + 0x28250f4f, 0x5b182040, 0x202c0d6d, 0x0f252840, 0x0f0e184f, 0xb3180e0f, 0x2205db66, 0x88180216, 0x86492067, 0x8753824e, 0x0e0e2165, 0x2e06675f, + 0x00c00100, 0x0041001b, 0x0053004a, 0x4300005c, 0x312b05c7, 0x16150706, 0x33171617, 0x53363321, 0x26270771, 0x27221327, 0x183d2631, 0x220b4281, + 0x82013f36, 0x013b361f, 0x1f161732, 0x15171601, 0x23060714, 0x27330727, 0x22012b26, 0x261a820f, 0x07062726, 0x18371716, 0x18088a95, 0x25078947, + 0x401b1212, 0xa4640001, 0x22222505, 0x8048393a, 0xc020cf82, 0x2e051e5e, 0x06151b01, 0x74120f0e, 0x060e0f12, 0x82011b15, 0x0ec12914, 0x05020e9e, + 0x17020574, 0xc820d187, 0x0122e387, 0x3f8401c0, 0x27092a62, 0x223a3948, 0x00fe0122, 0x5c183782, 0x682d078b, 0x12401021, 0x0a0b0b0a, 0x21104012, + 0x25698268, 0x062a2aea, 0x27418206, 0x64002010, 0xc02805b7, 0xc0012002, 0x40001100, 0x14479418, 0x35031723, 0x0b8e6433, 0x3716172a, 0x2f363736, + 0x23272601, 0x8305fa57, 0x09d16410, 0x2b013528, 0x16070601, 0xfc591517, 0x011d2a05, 0x3b161714, 0x17161501, 0x4f338233, 0x35200616, 0x20056241, + 0x23228223, 0x27263507, 0x74180282, 0xc96308b6, 0x10082107, 0x2c051c41, 0x0c0d070d, 0x03030b0c, 0x341d3407, 0x2803820c, 0x0b030307, 0x080c0c0c, + 0x231e850d, 0x10101801, 0x42057f48, 0x1027051f, 0x113c0f01, 0x832c1702, 0x35302513, 0x0f01010a, 0x14821e82, 0x010f0122, 0x2210b465, 0x7b80a0fe, + 0xb3210678, 0x20618314, 0x27578208, 0x01012c52, 0x0c0c522c, 0x2105db77, 0x5585b314, 0x01e00129, 0x64010f0f, 0x82201309, 0x82902075, 0x0f602513, + 0x5c120201, 0x1b245c84, 0x540c0411, 0x38286e83, 0x09136d05, 0x00010f74, 0x2d059b63, 0xc0016f02, 0x4b001100, 0x8c005d00, 0x47180000, 0x03271145, + 0x27222335, 0x5a013f26, 0x098206f4, 0x16373624, 0x045b011f, 0x012f2206, 0x18098217, 0x6b0b9956, 0x35200888, 0x1805ba55, 0x2209fe5c, 0x6d030706, + 0x4e8b0911, 0x4f8b3320, 0x23212289, 0x0fd066a0, 0x12482408, 0x02040508, 0x0d091c1f, 0x020b0b0c, 0x253a0801, 0x3b253a3a, 0x0b020107, 0x080d0c0b, + 0x04021f1d, 0x41120805, 0x96410570, 0x88012106, 0x0820438f, 0x2024af41, 0x13864110, 0x06075025, 0x82255d08, 0x83072078, 0x2e4e2580, 0x4e2e0101, + 0x09207882, 0x25248083, 0x0706085d, 0x07da7118, 0x01210786, 0x0ffe6760, 0x6000ff22, 0x4105a941, 0x60211fc9, 0x08fb6500, 0xc001e027, 0x32002800, + 0x06696300, 0x21066f6b, 0x4e48010f, 0x17162805, 0x37321716, 0x66150617, 0x373b09c4, 0x37353605, 0x06071716, 0xa2012707, 0x0111111b, 0x22171601, + 0x02161721, 0x482216b8, 0x122307da, 0x83049210, 0x320f8316, 0xfe252102, 0x05b804fa, 0x07092506, 0x07220192, 0x851d1515, 0x21152226, 0xc791184a, + 0x80082309, 0x16850d0b, 0x2b22172e, 0x0a4ad017, 0x05054a0b, 0x800402cf, 0x21064742, 0xa7828001, 0x30001e29, 0x65005300, 0x48130000, 0x83180575, + 0xc08313e1, 0x666d1520, 0x36072510, 0x3b363137, 0x16319282, 0x010f0617, 0x27260706, 0x013f3435, 0x27263536, 0x24918223, 0x37262706, 0x41671835, + 0x20c02511, 0x260a1818, 0x20084969, 0x23098700, 0x18180b25, 0x3d0cb472, 0x0e0e0656, 0x121b3a13, 0x1f010111, 0x16160220, 0x082c0c02, 0x063a0e01, + 0x14150a02, 0xa9727606, 0x65c0200c, 0xfe200707, 0x2108ba44, 0x2b654001, 0x06197e07, 0x653e3085, 0x010a0a11, 0x241b1112, 0x02161213, 0x0e0d1602, + 0x09041a07, 0x0205010e, 0x15090614, 0xe841bb02, 0x20058505, 0x055f4d00, 0x013f022f, 0x002100c0, 0x0037002c, 0x004d0042, 0x06b57382, 0x2305037c, + 0x17163317, 0x0723fc82, 0x66210706, 0x362105f7, 0x20018337, 0xb5481803, 0x25072108, 0x09dd7118, 0x71180f20, 0x162207e6, 0x15893707, 0x82160721, + 0x2fa55e4a, 0x171de02b, 0x22170c17, 0x0615151e, 0x2b501802, 0x31fb8908, 0x53291b1b, 0x12140d30, 0x130d300a, 0x47010912, 0x0d870912, 0x1689d720, + 0x15896720, 0xcc5e3120, 0x10c02532, 0x0117190f, 0x43077841, 0x292a0bb1, 0xfe011b1b, 0x091250dc, 0x0484130e, 0x140d2122, 0x04820784, 0x15942120, + 0xeb5ea320, 0x18062032, 0x3408a76b, 0x00300004, 0x00510046, 0x006e005c, 0x21150100, 0x06252135, 0x08734707, 0x08ff7618, 0x10f47a18, 0x27263526, + 0x01292726, 0x2209386a, 0x55373633, 0x232006b9, 0x0ac36d18, 0x18360721, 0x4309d96d, 0x01251001, 0x01c0fe80, 0x09754240, 0x4b0a7522, 0x20053c42, + 0x06787801, 0x750a4b22, 0x18099f41, 0x4e09d19a, 0x195c0961, 0x0c084315, 0xe0600129, 0x120140e0, 0x83e01b12, 0x0c93784a, 0x16882020, 0x0e0d0123, + 0xf9521814, 0x0e14230b, 0xf866010d, 0x46502008, 0x012205c6, 0x3643e00f, 0x0600380b, 0xe0ff0000, 0xa001c001, 0x2a001400, 0x56004000, 0x81006b00, + 0x49130000, 0x012209c5, 0x9f182734, 0x1f260bfd, 0x16171601, 0xa247013f, 0x0f262306, 0x7d623701, 0x08f54905, 0x17202f85, 0x80181594, 0x56880bf8, + 0x2a942720, 0x0ec28518, 0x030c6d2a, 0x07200603, 0x370c0d0c, 0x0d240985, 0xcd370c0c, 0x64056841, 0x42180618, 0x1586081b, 0x8b47418e, 0x212c8706, + 0x85188001, 0x8f200d47, 0x65845b8e, 0x86180f20, 0xc0180d47, 0x158607a0, 0x418d2020, 0x2c8d2020, 0x2d055f45, 0x018002e0, 0x00170080, 0x003b0029, + 0x5f45004a, 0x1f162206, 0x05424101, 0x0789d718, 0x06132132, 0x2f223123, 0x17161501, 0x26211716, 0x07373427, 0x1812df7c, 0x4f0def49, 0x230805dc, + 0x1313da12, 0x2627123a, 0x01120e33, 0x140e0d01, 0x11f660fe, 0xda111515, 0x1b121201, 0x01272801, 0x5a011b01, 0x201f065d, 0x08388380, 0xa40e1820, + 0x2e2b0c0c, 0x0b051e1d, 0x0e14180e, 0xedfe010d, 0xd0a30d0d, 0x0112121b, 0x0908412f, 0x8a5b0314, 0x0f59670f, 0x03000023, 0xdf5c1800, 0x00302f07, + 0x00520047, 0x17360100, 0x16030716, 0x07823717, 0x23010f33, 0x23262726, 0x07060722, 0x37262723, 0x36011f36, 0x2d078637, 0x37333233, 0x1f163736, + 0x31011301, 0x9c753121, 0x21232207, 0x05ff7822, 0x13013b23, 0x08c04e16, 0xf4013508, 0x0712130c, 0x61030389, 0x0d0b0d12, 0x180b4757, 0x18202018, + 0x4c500a18, 0x130a070f, 0x3f050561, 0x100f0e08, 0x01010166, 0x14040d02, 0xaf0d0414, 0xc0014cfe, 0x20064b43, 0x069143fe, 0x4be02021, 0x2d0808c9, + 0x0b0810b5, 0x03cffe14, 0x0e083704, 0x1d570f11, 0x11121211, 0x130c341d, 0x051e0410, 0x0d116806, 0x01580c0c, 0x0202148f, 0x19018e14, 0x71464bfe, + 0x1602240d, 0x84021630, 0x05eb4104, 0x3f02c02f, 0x1600c001, 0x41003c00, 0x00007600, 0x75c98413, 0x21200500, 0x3727ea83, 0x36373433, 0x65210733, + 0x0f250597, 0x06070601, 0x09144107, 0x26272627, 0x27313027, 0x05a86526, 0x21151725, 0x46172135, 0x80303417, 0x4b09090e, 0x0a060610, 0x15b0fe15, + 0x1006060a, 0x8021b683, 0x35168301, 0x0303330c, 0x1b101b18, 0x14141118, 0x111b1711, 0x0303181b, 0xd5820c33, 0x40012025, 0x46b3c0fe, 0x3c823302, + 0x0d0d0125, 0x8218180d, 0x0e012404, 0x82800909, 0x147c3510, 0x02014811, 0x11030311, 0x04100c0c, 0x01021103, 0x7c141148, 0x40231c82, 0x45e66060, + 0x002132e8, 0x065b4d00, 0xc001402d, 0x21001d00, 0x3c003300, 0x18004700, 0x2408398d, 0x3b161714, 0x5d521801, 0x36352226, 0x053d4d37, 0x18063521, + 0x20082f9f, 0x58521800, 0x073b422c, 0x20075045, 0x53521801, 0x1565692d, 0x3b430420, 0x20df8508, 0x73dda23e, 0x2322120e, 0x2f632726, 0x37362105, + 0xc020d49c, 0x230f1344, 0x800f0140, 0x0483d083, 0x606bcf9b, 0x07054110, 0x2014a341, 0x20c5a25f, 0x11bb4c17, 0x2008a341, 0x07675627, 0x17163332, + 0x06010f14, 0x1716011d, 0x37353736, 0x27343736, 0x0621e984, 0x18e69c15, 0x41101454, 0x164707bb, 0x28093405, 0x2007010d, 0x0f0f0109, 0x01171801, + 0x28140d0d, 0x410c0c12, 0x8e2f37ce, 0x01010f06, 0x0109060f, 0x04080d01, 0x82090511, 0x0f012d54, 0x1b0e0c05, 0x010d0c14, 0x120c0b01, 0x0aaf6a18, + 0x20001c25, 0x41003700, 0x072310e3, 0x18060706, 0x210d1e55, 0xf558011f, 0x1212311e, 0x0909a01b, 0x215d800e, 0x14140102, 0xff110d37, 0x23054d4b, + 0x27808080, 0x411cb758, 0x2f3208e4, 0x2d250f25, 0x082f3a3a, 0x1b121201, 0x80408001, 0x73586280, 0x80022523, 0x1c00c001, 0x6b29c582, 0x8f007d00, + 0x0000a100, 0x053d6901, 0xc1821620, 0x0dd96718, 0x3233362a, 0x37361317, 0x26273631, 0x07200182, 0x08b25818, 0x2a821520, 0x37323324, 0x1a823405, + 0x79013b21, 0x232306d1, 0x45352115, 0x138208f8, 0x18831d20, 0x2005f069, 0x09c66a21, 0x11fe4018, 0x117ba418, 0x37082391, 0x1a1d2601, 0x0a0a0f0c, + 0x060b1725, 0x2d2d0207, 0x2c2d4544, 0x1f1f0102, 0x05060433, 0x05174c05, 0x02010d05, 0x01240202, 0x0f0f0e0e, 0x0b0c1603, 0x23161701, 0xaefe161b, + 0x2009fc76, 0x06d47e01, 0x820e2021, 0x82092013, 0xfd0e2100, 0x6d181186, 0x84180dca, 0xfe200c02, 0x48068570, 0x01310597, 0x10201abc, 0x2408080e, + 0x1515162d, 0x2d2d440f, 0x2c898302, 0x2e32322a, 0xf3fe0404, 0x1a1b1a11, 0x2f008203, 0x1212012a, 0x1b041313, 0x25111313, 0x0f0f1514, 0x05823b85, + 0x07134c18, 0x60207f82, 0x200d7048, 0x06ef5160, 0x0c747b18, 0x304a3785, 0x0200310c, 0xe0ff0000, 0xa0014002, 0x44003200, 0x26010000, 0x2105627f, + 0x75690706, 0x058b5305, 0x7f171621, 0x3f21059a, 0x05cf4c01, 0x09936118, 0x012f2622, 0x0811d24d, 0x11130134, 0x09041213, 0x1217171d, 0x0f12155d, + 0x0a2e2e0a, 0x5d151110, 0x1d171712, 0x13110309, 0x23294e11, 0x141e1b22, 0x08080b15, 0x1e14150b, 0x2923221b, 0x4e47ad4e, 0x0c9a300c, 0x31150c0b, + 0x1312110e, 0x120f0a37, 0x83505015, 0x13372646, 0x310e1112, 0x341a8215, 0x0f0f033b, 0x18181714, 0x13101013, 0x14171818, 0x3b030f0f, 0x0dab4dda, + 0xe7570420, 0x001e3208, 0x00480023, 0x37000053, 0x23061506, 0x27262726, 0x07534211, 0x67420320, 0x03072608, 0x23353315, 0x0a794225, 0xb7421720, + 0x83212005, 0x3f342230, 0x09874201, 0x14151732, 0x2733010f, 0x23013d26, 0x110f0faf, 0x011b1b29, 0x40207a85, 0x2707744a, 0x40404f31, 0x20800001, + 0x762d1685, 0x1413010a, 0x1dcafe1d, 0x0a011314, 0x30138576, 0x30052020, 0x400531ab, 0x051d193b, 0x291b1b01, 0x0c944101, 0x0150f625, 0x70606046, + 0x972306cd, 0x831411bf, 0x2344833a, 0x97bf1114, 0x28052741, 0x0809a040, 0x09084f4f, 0x056350a0, 0xff1f6e08, 0x01a001c0, 0x001400c0, 0x13000020, + 0x17060722, 0x16171613, 0x37363317, 0x36133736, 0x21232627, 0x0f332717, 0x26270601, 0x012f0607, 0x0a090e40, 0x16031d01, 0x21a62116, 0x1d031616, + 0x0e090a01, 0x0729c0fe, 0x1f1807fc, 0x1f21211f, 0xc001181f, 0xfe0e0a0a, 0x1415206c, 0x15140101, 0x0e940120, 0x5d9d0a0a, 0x0e0e0c5d, 0x0e0e1010, + 0x2174820c, 0x738b0003, 0x75963420, 0x758a1320, 0x27263725, 0x82272631, 0x1d661880, 0x95372009, 0x11332589, 0x200d11fc, 0x0d2b0084, 0x121102ad, + 0x0f0c0c0f, 0x51021112, 0x9c920888, 0xead6fe25, 0x840f06ea, 0x062a0800, 0x1c1c1366, 0x120c0c12, 0x19131c1c, 0x01011111, 0x00191111, 0x09000600, + 0xf601caff, 0x2900b601, 0x7d005300, 0xc400a700, 0xb582e100, 0x82078a44, 0x23262294, 0x21058206, 0x78451714, 0x37162205, 0x21018236, 0x05833332, + 0x36353427, 0x0726013f, 0x28198631, 0x16151417, 0x32171617, 0x84058333, 0x26272427, 0x82353627, 0x222325dc, 0x01272607, 0xbe45e883, 0x20298507, + 0x538a1837, 0x8334200b, 0x22272629, 0x05272623, 0x09124136, 0x7d852220, 0x63821520, 0x17060722, 0x16202f85, 0x27257d85, 0x34253736, 0x05431837, + 0x82248411, 0x435d827a, 0x1d2b05af, 0x33171601, 0x2f363732, 0x82373601, 0x2627218d, 0xc93f4982, 0x0306060d, 0x0d0b0b05, 0x0e0c1c21, 0x0112121b, + 0x04091206, 0x0d0d0606, 0x06040c0b, 0x8303030c, 0x16132212, 0x200e8380, 0x2d168203, 0x12011316, 0x03031b12, 0x0b04070b, 0x3b820d0c, 0x12090423, + 0x28128306, 0x201d0c0e, 0x0c04fffe, 0x21148d0b, 0x3991211c, 0x84ad0121, 0x0b0c2460, 0x870b0704, 0x21858760, 0x85881d20, 0xccfe2108, 0x06050f0f, + 0x0a010106, 0x0203073c, 0x011c0b05, 0x141c1011, 0x2112080c, 0x02215d02, 0x060f0e01, 0x09231c82, 0x8202073d, 0x011c2bbe, 0x1b111001, 0x13080c15, + 0x83a47801, 0xe3913d20, 0x250d0841, 0x0a110513, 0x138dd3fe, 0x24161c41, 0x0b0b0d12, 0x0b1c4105, 0x92060c21, 0x18483d83, 0x03050f11, 0x093d0702, + 0x06060601, 0x212c1f0b, 0x080f1a1a, 0x120c1413, 0x27123b27, 0x05231c8b, 0x872d1e0c, 0x8200201c, 0x45042000, 0x2e330883, 0x64003500, 0x00006b00, + 0x31372637, 0x36013f36, 0x7132023b, 0x072308b8, 0x44032b06, 0x023b07b9, 0x27263736, 0x27060723, 0x31252726, 0x30313033, 0x07161723, 0x010f0631, + 0x47022b06, 0x3b230719, 0x18363701, 0x2d098082, 0x16070602, 0x36373317, 0x05171617, 0x31822331, 0x0a083328, 0x7f0d0302, 0x80182d24, 0x25240799, + 0x4e2d232d, 0x09cbc118, 0x01010f2e, 0x0e77790f, 0x010a1010, 0xba010176, 0xfe242ca7, 0xf001018a, 0x5d213583, 0x0692461b, 0x441c2421, 0x012405b3, + 0x58010f0f, 0x30214683, 0x211f8390, 0x1f981a5e, 0x00000023, 0x08bf4508, 0x23001131, 0x5b004900, 0x94008200, 0xb800a600, 0x18010000, 0x1810857b, + 0x2911f141, 0x31173207, 0x16331516, 0xab431517, 0x0b147e05, 0x013d2623, 0x057e4d36, 0xa2751120, 0x34372410, 0x89373627, 0x17322120, 0x35204494, + 0x11b84c18, 0x0b520320, 0x90172010, 0x18012011, 0x180cd5a2, 0x2a0ce2a1, 0x09090e20, 0x2b021608, 0x18011a1a, 0x2908f6d6, 0x012c1a1a, 0x09081602, + 0x70180e09, 0xc0230faf, 0x86351a0e, 0x27378d1a, 0x1426252f, 0x1b01e00e, 0x09aee818, 0xd0203a83, 0x560b1a47, 0x128506d7, 0x07926a18, 0x50200d85, + 0x8505a741, 0x82102005, 0x16022806, 0x13020310, 0x48322727, 0x32280799, 0x02132727, 0x02161003, 0xfe213082, 0x24678fc0, 0x33222760, 0x8f1e8717, + 0x1701253e, 0x27222718, 0xf846c98f, 0x0c1f410d, 0x02000022, 0x2508074d, 0x0072005b, 0x6b181300, 0x052108ab, 0x060a7014, 0x36043b2b, 0x23272637, + 0x053d3637, 0x05505034, 0x55021d21, 0x2730066b, 0x07262726, 0x06010f06, 0x3d23021d, 0x012f3401, 0x072f0f84, 0x16011f06, 0x012f0607, 0x1513013d, + 0x83333533, 0x26428303, 0x0706042b, 0x47331716, 0x0e2b0673, 0x02160456, 0x80201602, 0x83208040, 0x56042108, 0x0e20ef82, 0x21080382, 0x100d0b45, + 0x01081c0a, 0x0c0b0a01, 0x192f090d, 0x092f1940, 0x0a0b0c0d, 0x1c080101, 0x0b0e0f0a, 0x32874045, 0x20203b88, 0x27076341, 0x24013b40, 0x63111616, + 0x2607195b, 0x16161163, 0x523b0124, 0x31260737, 0x0b070c5c, 0x57822310, 0x82090821, 0x1d34295f, 0x20203e26, 0x341d263e, 0x09215c82, 0x2a648208, + 0x070b1023, 0x40315c0c, 0x822040fe, 0x44458700, 0xc02c073f, 0xc0018002, 0x2f001100, 0x97006300, 0x137bc318, 0x14011f27, 0x012f2207, 0x051e4123, + 0x36220585, 0x0e413233, 0x32252706, 0x1d163117, 0x0e821403, 0x37363729, 0x26022f36, 0x83373435, 0x3102261e, 0x15171617, 0x15641806, 0x3d272207, + 0x20178302, 0x302e8521, 0x06010f06, 0x2726012b, 0x36352726, 0x3f31013f, 0x26318201, 0x14151617, 0x8206020f, 0x82162035, 0x033d210f, 0x01242e83, + 0x0c0b1140, 0x08584b18, 0x150b2d3e, 0x08040516, 0x16160504, 0x13130b01, 0x1b100d0f, 0x1e26261e, 0x0f0d0f1c, 0xbbfe1412, 0x13232a82, 0x83110e33, + 0x200f36f6, 0x0d0a0909, 0x0f200a0d, 0x01012019, 0x43140e0d, 0x1b64131a, 0x21498201, 0x26823002, 0x641b012f, 0x14431a13, 0x01010d0e, 0x200f1920, + 0x2b29820a, 0x10200909, 0x0a010108, 0x13330e11, 0x01212682, 0x82758870, 0x5954342f, 0x23150516, 0x05011623, 0x0d115916, 0x17101210, 0x82171919, + 0x110d2206, 0x2b268264, 0x1b285028, 0x090c3313, 0x090b0b07, 0x19234c89, 0x834f2e21, 0x64132661, 0x4066271c, 0x26c78538, 0x27664038, 0x8313641c, + 0x2e4f2491, 0x88101921, 0x0b0928a6, 0x0c09070b, 0x821b1333, 0x212a824c, 0x07530000, 0x059b4106, 0x79004524, 0xcb530000, 0x37362305, 0x2a583736, + 0x5f7b4107, 0x24253622, 0x09206f18, 0x36252424, 0x6241e8fe, 0x18c0204b, 0x87070c91, 0x41c02007, 0x40385e4b, 0x26009501, 0x4f003800, 0x17370000, + 0x3f323316, 0x36272601, 0x32373637, 0x072d5418, 0x06072624, 0xfe43010f, 0x06072605, 0x17161507, 0x11e64505, 0x010f1625, 0x59173233, 0x2d080775, + 0x26272223, 0x1736013f, 0x100cb430, 0x1d020c10, 0x31320201, 0x01242b4b, 0x34212101, 0x19202123, 0x20190c0c, 0x21342321, 0x2f010121, 0xfc548001, + 0x07302b0f, 0x08241f04, 0x60070303, 0x0a8a0807, 0x0ba99435, 0x382b020b, 0x0232314b, 0x060a0a13, 0x0a272636, 0x830a0a05, 0x820a204b, 0x26272608, + 0x2c410636, 0x0f7a51d4, 0x0906e12b, 0x06080836, 0x07060548, 0x55088608, 0xf785094b, 0xf7a94720, 0x11165318, 0xa20e3656, 0x100221ef, 0x3973a38f, + 0x20e7a30e, 0x0f334144, 0x20103056, 0x06eb4504, 0x4122e385, 0xe5a94c00, 0x2010dd41, 0xae5f1835, 0x35da4112, 0xa30fde53, 0x10d341eb, 0x5714e453, + 0xef85071f, 0xeda94320, 0x2310d341, 0x23070623, 0x3321f083, 0x24bf4216, 0x5311cf41, 0xdfa30aee, 0x2310cb41, 0x0f01010f, 0xf3570383, 0x20d38508, + 0x41d3a951, 0x372110c1, 0x82cd8215, 0x05aa66d7, 0x536ade85, 0x22b14205, 0x2111a143, 0x67183010, 0xeba312bb, 0x2110cb41, 0x681830d0, 0x00201249, + 0x4408e745, 0xfbbc079b, 0x17066118, 0x7335c242, 0xffb4185a, 0x08191873, 0x00000023, 0xff020005, 0x01fe01c2, 0x000a00be, 0x00210015, 0x0056002c, + 0x26332500, 0x15272627, 0x1f161716, 0x0f5b1801, 0x16212609, 0x17163117, 0x2b1a8335, 0x36333523, 0x35373637, 0x07060706, 0x2008b853, 0x8686181d, + 0x0910640a, 0x097f8e18, 0xbd013537, 0x3c3d0c41, 0x2a2b3d59, 0x0b41410b, 0x593d2b2a, 0xfe0c3d3c, 0x20139104, 0x0bd44ace, 0x0c844818, 0x83e06021, + 0x203c8433, 0x83478440, 0x4912923c, 0xdb5306a1, 0x07e45106, 0x3b610e88, 0x00022b06, 0x2800c001, 0x44002d00, 0xf5825d00, 0x2108a643, 0xfb830706, + 0x013b172d, 0x013b1617, 0x27263736, 0x6b352723, 0xcd83059a, 0x27073126, 0x03153337, 0x3d2e596d, 0x4309e001, 0x36436242, 0x01202036, 0x26181901, + 0x07810f70, 0x02166009, 0x02561602, 0xcc4b2050, 0x4ea02405, 0x6d232e20, 0xe0372643, 0x023f3f60, 0x36202001, 0x26384336, 0x79011918, 0x16160207, + 0x41af0102, 0xc125053a, 0x01813849, 0x30256d3a, 0x0400003c, 0xc0ff2000, 0xa0016102, 0x45003300, 0x68005700, 0x16250000, 0x37363137, 0xfb823536, + 0x07262728, 0x37161706, 0x52181736, 0xc95708cd, 0x35362105, 0x63051e63, 0x1422051b, 0xf74b0117, 0x07084208, 0x18153521, 0x24107bc7, 0x31072625, + 0xef491806, 0x27300809, 0x1ad80101, 0x1a181e1f, 0x1c1c151a, 0x0c081319, 0x0c151915, 0x10100c0c, 0x0223520c, 0x03170e0e, 0x22171601, 0x230b172b, + 0x010d0e14, 0x28370101, 0x4d0b2442, 0xfe250b2d, 0x17161564, 0x3a2d8302, 0x0a1b3d01, 0x9bfe1209, 0x0302112e, 0x23231b17, 0x0404151b, 0x12140c0d, + 0x83130b08, 0x0c0c2a57, 0x1a2c1851, 0x0b091314, 0x058f630b, 0x0102212b, 0x06140e0d, 0x01cafe06, 0x62518b52, 0x69260c7e, 0x1b0a0912, 0x3184c3fe, + 0x15161724, 0xdb5a6501, 0xa0200808, 0x23001200, 0x48003600, 0x00005a00, 0x3b161713, 0x013f3201, 0x26012f36, 0x0f22012b, 0x27170601, 0x0922f08e, + 0x1f821601, 0x8205e84c, 0x011d241f, 0x18011f14, 0x2011ab84, 0x10384117, 0x051bfc2b, 0x04093609, 0x1b05051b, 0x20088604, 0x24f28fb9, 0x0808b401, + 0x21028830, 0x2c41c8fe, 0x0606430b, 0x0121e185, 0x22268958, 0x8f110808, 0xc3fe22dc, 0x8b688204, 0x1b05236e, 0x1c415401, 0x0d8f600b, 0x18000321, + 0x2d072754, 0x00370025, 0x25000046, 0x36313736, 0xfc823237, 0x0b17c718, 0x16171427, 0x3732013b, 0x24fc8236, 0x023b3637, 0x10214705, 0x0e9d4618, + 0x08410128, 0x0d463130, 0x7b18d40d, 0xd2820ad5, 0x2306d565, 0x3f010140, 0x261ef148, 0x2c2d4560, 0x18bb0202, 0x4109e77b, 0x41830604, 0xe9481020, + 0x63671820, 0x22d7830b, 0xa64b0040, 0x471720d9, 0xe9481027, 0x20de9f13, 0x48a18faf, 0xde9b0fe4, 0x1a41a020, 0x14dc480f, 0x830cf74c, 0xb85020e3, + 0x18a57ae1, 0x0847e6b0, 0x47efac18, 0xaf421b00, 0x00322409, 0x8266004b, 0x23152df3, 0x1d060722, 0x06071402, 0x2322022b, 0x2b210182, 0x059d5301, + 0x23013d2e, 0x35262726, 0x36253734, 0x011f3217, 0x22051557, 0x5b371506, 0xb1520936, 0x5b36200b, 0x012b1b32, 0x090e2020, 0x110b0c09, 0x82012018, + 0x02022500, 0x0c0b1110, 0x0a2f1283, 0x0b0b0001, 0x138a090c, 0x1022360f, 0x5aa60b0a, 0x172107ef, 0x0bee5a01, 0x5a0a0a21, 0x622618ec, 0x0e090902, + 0xf34e1840, 0x01703705, 0x09014502, 0x0a0e0d09, 0x070109e0, 0x310d0179, 0x1b1c1936, 0xc05aba1b, 0x212c2f07, 0x022e2e44, 0x442e2e02, 0x2e323129, + 0xbe5a0808, 0x07d75118, 0xc0018029, 0x3b001400, 0x63010000, 0x112005f3, 0x180cc97a, 0x2107ad43, 0x7d643317, 0x6780180b, 0x14012a07, 0x013b1617, + 0x01112331, 0x26fb82e0, 0x010f7040, 0x83700f01, 0x158b27ac, 0x0710e015, 0x7f631608, 0x231a820e, 0xc0010141, 0xa0220682, 0x4f7ac0fe, 0x779f2709, + 0x0ec01010, 0xc95b1415, 0x06024407, 0x01220683, 0xcf4a0061, 0x013f2806, 0x002200c0, 0x828c0057, 0x0f2625a9, 0x16170601, 0x16269382, 0x36331617, + 0x62183637, 0x0b8207ae, 0x03823520, 0x012f3623, 0x28641803, 0x52172033, 0x3758059b, 0x09ff5707, 0x27501720, 0x58362007, 0x26320c41, 0x07063107, + 0x13133301, 0x080611b0, 0x02031016, 0x62181e1d, 0x1f2c07b6, 0x0101021c, 0x08161001, 0x25b01106, 0x313d6418, 0x232a7222, 0x2fcd6218, 0x0cba0132, + 0x160e800c, 0x01490115, 0x13011402, 0x14140c0c, 0x49278182, 0x0e161501, 0x61d0fe80, 0x0f2829e1, 0x0102180d, 0x8a0c0c19, 0x36a90483, 0x180c0e25, + 0x47000002, 0x5f2e0637, 0x1100c001, 0x48002600, 0xb2007d00, 0x42180000, 0xc8181278, 0x5618089b, 0x272807d0, 0x14173726, 0x07063107, 0x230bce41, + 0x17161716, 0x2506d041, 0x16010f26, 0x64181715, 0x1520335e, 0x012134b3, 0x0f614520, 0x0b0b9328, 0x380a0a38, 0x44180b0b, 0xb3270b76, 0x12201313, + 0x1814110f, 0x2109a964, 0xf4410304, 0x13132405, 0x41131350, 0xf5412fc3, 0x232a2231, 0x10506101, 0xa6844320, 0x4418ac82, 0x433b0994, 0x1824252b, + 0x0c0c0b05, 0x010c1414, 0x5402030e, 0x0e161501, 0x3a0c0c80, 0x18a62b25, 0x422bbf64, 0x7020051c, 0x0e2632ab, 0x0102180c, 0x8b460019, 0x00312a0c, + 0x005d003e, 0x17140500, 0x05874523, 0x2106ce68, 0xd018011d, 0x984509e1, 0x0706240c, 0x82150706, 0x06d86802, 0x24564b18, 0x60800121, 0x394c070f, + 0x0e602306, 0x90450909, 0x22b6270a, 0x1e011414, 0x4b189002, 0x20211c48, 0x181e8212, 0x4407dd5b, 0xc0200697, 0x29097f45, 0x1c1d0c9f, 0x25121925, + 0x4b18f080, 0x0320223d, 0x32084749, 0x00450033, 0x25000054, 0x16311714, 0x27262117, 0x8c352726, 0x069367ee, 0x27263523, 0x18f48223, 0x200c4cdc, + 0x765d1821, 0xa4491810, 0x3f162d09, 0x01273601, 0x23141440, 0x121bf5fe, 0x0c21e818, 0x0d0dd528, 0x19232329, 0x84180128, 0x01210e80, 0x0fe74240, + 0x0b0b4d38, 0x0b0b1d3d, 0x0b280a0a, 0x0a0a480b, 0x26252d50, 0x12120118, 0xf589a01b, 0x1102bb24, 0x84181e11, 0xce480fc5, 0x0a2b2f0f, 0x0a1c3c0a, + 0x280b0b0a, 0x0b480a0a, 0x6f49000b, 0x22ff830b, 0x4159004e, 0x17203501, 0x109d7818, 0x66089b64, 0x06410a3f, 0x8fb0202d, 0x0f8c49bd, 0x20280641, + 0x0f4f4190, 0x42159949, 0x5e200d0b, 0x21470941, 0x4b18013f, 0xbb180ab3, 0x0e410b05, 0x1817203e, 0x220c23a5, 0x180b0a0a, 0x41073ba5, 0x90203917, + 0x127ca518, 0xab575884, 0x0014270a, 0x00440027, 0x455c0100, 0x07062f08, 0x11231123, 0x36373435, 0x11170733, 0x7e643133, 0x26232105, 0x21053756, + 0x2a431507, 0x7435200c, 0x2621077a, 0x24178227, 0x090ee001, 0x05a14809, 0x09094028, 0x018bcb0e, 0x1182bffe, 0x08162028, 0x15e01007, 0xcf423515, + 0x0130240f, 0x480f200f, 0x012905ac, 0x010f800f, 0x4001c0fe, 0x233082a0, 0x9ffe7728, 0xc0283f82, 0x0e151401, 0xa81010c0, 0x3d8f2785, 0x2909ef44, + 0x00c00140, 0x007c005f, 0x1b6900b1, 0x17322106, 0x08a36c18, 0x06239682, 0x82171607, 0x32332101, 0x31200184, 0x481a6848, 0x3025059c, 0x22313031, + 0x200b8227, 0x056c5735, 0x37244b8b, 0x32011d06, 0x2106c165, 0x67821736, 0x1716172c, 0x34273536, 0x0f26012f, 0xdc481301, 0x12513d33, 0x192b2122, + 0x0b0c0d17, 0x06060405, 0x5824200d, 0x01023c3b, 0x14432525, 0x01020116, 0x6d180282, 0x233f1d04, 0x1b10132b, 0x19011111, 0x11152519, 0x060c0c0c, + 0x0c040506, 0x2a3d231e, 0x02010dfc, 0x181f1c02, 0x2907dc6b, 0x01010808, 0x1313600c, 0x01473360, 0x37012631, 0x01131421, 0x07676008, 0x38020b29, + 0x35465638, 0x18061235, 0x4615306d, 0x0c2d05c1, 0x0401190c, 0x1e161709, 0x01191925, 0x20958308, 0x3d9d820d, 0x1328010e, 0x0179100a, 0x14140101, + 0x0d0f010c, 0x04040205, 0x0a109004, 0x480c0c48, 0x0f49b6fe, 0x00032e34, 0x01c0ff00, 0x00c00140, 0x00290013, 0xb197183f, 0x2b611808, 0x27222a08, + 0x36073526, 0x37363137, 0xf7571833, 0x27262409, 0x6f112726, 0x202315ae, 0x4e0e0909, 0x068306e7, 0x12012024, 0x61721b12, 0x46088408, 0x802206a5, + 0x0082090e, 0x5e800e21, 0x80240d5b, 0x0112121b, 0x091dac18, 0x01220983, 0x764f4020, 0x203c8309, 0x20008200, 0x20b78e05, 0x19531855, 0x089b6508, + 0x99012b21, 0x233321bb, 0x2705d742, 0x3736023b, 0x27263736, 0x26220e82, 0x07841727, 0x1686e583, 0x06012b24, 0x2986010f, 0x09567e18, 0x18822f82, + 0x27260722, 0x7038eaa1, 0x0101052a, 0x16191010, 0x10191620, 0x05010110, 0x12121e2a, 0x1e12301e, 0x30201792, 0x01231387, 0x8b010f0f, 0x2220412e, + 0x84050121, 0x8269825e, 0x1515246f, 0x82157601, 0x2312876b, 0x4a150106, 0x20252085, 0x0f01010f, 0x82908320, 0x01152213, 0x0c5b7c00, 0x0000403b, + 0x22232601, 0x1d06010f, 0x26350701, 0x1d070627, 0x36171602, 0x15333537, 0x18128207, 0x20089e7d, 0x22128233, 0x82012f34, 0x211d8316, 0x2983023d, + 0x35271522, 0x01271282, 0x0a0a050f, 0x18052c05, 0x250820cf, 0x01063a90, 0xcf83600f, 0x010f6024, 0x17893b05, 0x012c0532, 0x670a0ab6, 0x544d0d0c, + 0x02021613, 0x18203816, 0x08280683, 0x07053321, 0x40010f10, 0x4028a783, 0x07100f01, 0x08213305, 0x18221983, 0x06833820, 0x4d541325, 0x44670c0d, + 0x013108bb, 0x00c00180, 0x00280012, 0x1300003b, 0x16333736, 0x060f5817, 0x82272621, 0x0bb6420d, 0xe5181520, 0x2120098b, 0x26102756, 0x16026015, + 0x84021650, 0x84902068, 0x01602987, 0x80362524, 0x01242536, 0x0a69ac18, 0xcf520020, 0x05147c0b, 0x2108777c, 0x2c84e818, 0xeb423582, 0x0a254e09, + 0xab623982, 0x05d77a08, 0x2605e954, 0x007d0064, 0x82900085, 0x108c52bd, 0x47491720, 0x84332010, 0x053676e1, 0x27262324, 0x67480723, 0x41052010, + 0x36240e00, 0x33350737, 0x0848cf18, 0x3b012f23, 0x5d9b1802, 0x09c74a08, 0x17373624, 0x4e823736, 0x18331521, 0x200a4a92, 0x0fb361f0, 0x270b2c24, + 0x84483426, 0x26343407, 0x0e480b27, 0x0e146816, 0x0d01010d, 0x1668140e, 0x438c480e, 0xa27707b8, 0x02162709, 0x02021660, 0x0483f016, 0x16026024, + 0xc418e070, 0xf0220818, 0x46181050, 0x10200846, 0x2a06de63, 0x0f800f01, 0x100f0101, 0x83b09810, 0x21048430, 0x08623001, 0x3120240f, 0x48011f1f, + 0x012307c2, 0x82311f1f, 0xe5431833, 0x79202008, 0x20230f83, 0x61081602, 0x08250701, 0x70e00216, 0x20b28770, 0x838b8390, 0x0585440c, 0x740f5021, + 0x202105f5, 0x0a306150, 0x20000535, 0x6002c0ff, 0x0a00c001, 0x29001800, 0x3f003400, 0x18010000, 0x2509dfa9, 0x31373403, 0x6b6c3b36, 0x35212505, + 0x21373607, 0x2706dc7a, 0x26272621, 0x3603013f, 0x23063461, 0x36253726, 0x2008435e, 0x18b51801, 0x45982008, 0xff3a0629, 0x1d0e4d00, 0x0e1d4401, + 0x0809071c, 0x1368fe13, 0x1c070908, 0x68140e4f, 0x04820b11, 0x020a102a, 0x0b0e1416, 0x0f136811, 0x01260482, 0x021690a8, 0x04841602, 0x85d8fe21, + 0x202039bb, 0x01011a5b, 0x0e11371a, 0x0e01010e, 0x0137110e, 0x480b1111, 0x0a10140e, 0x062a0482, 0x0f13110b, 0x14100a48, 0x2763480e, 0x82002006, + 0x001f28cf, 0x01000042, 0x82171633, 0x152321cc, 0x26123d73, 0x33373635, 0x62153307, 0x078406f9, 0x30331625, 0x78161731, 0x3f2e06b2, 0x32313201, + 0x1001013d, 0x01010f50, 0xf045500f, 0x42fe2006, 0xc02806f2, 0xd0100f01, 0x30402840, 0x01300382, 0x05123001, 0x40fe1708, 0x12050817, 0x01010130, + 0x40211c82, 0x0dcf630f, 0x010f7024, 0x0084c0e0, 0x2001c42d, 0x0116160e, 0x0e161601, 0x4bc40120, 0x1a220c93, 0xb5823c00, 0x00004624, 0x6a7a2313, + 0x36332208, 0x82a98237, 0x4d3520ab, 0x344305a7, 0x021d2105, 0x23056649, 0x36211716, 0x3306d57d, 0x26272635, 0x17022b27, 0x35231533, 0x33150333, + 0x1490c027, 0x2706bc42, 0x01210c73, 0x20221716, 0x6020bb83, 0x20201483, 0x1222d282, 0x097a1b12, 0x0f012305, 0x0c820120, 0x1010d029, 0x10e0d020, + 0x82606060, 0x0e0d24bf, 0x83c0fe14, 0x021e2d29, 0x16172270, 0x09094001, 0x01e0600e, 0x10221682, 0xfa822060, 0x21070143, 0x17700f10, 0x80402805, + 0x60200180, 0x19030060, 0x22087305, 0x44270013, 0xd76905b3, 0x06032107, 0x2606ca69, 0x07263713, 0x89070631, 0x8236200f, 0x223321b8, 0x152f1382, + 0x16171411, 0x36373233, 0x27341135, 0x18de2326, 0x2007058e, 0x29088880, 0x0a0b0d47, 0x07024002, 0x08820e07, 0x01400322, 0x5b200882, 0x85052242, + 0x76012105, 0x07bb8e18, 0x8780fe21, 0x80012209, 0x8327832a, 0x030a2110, 0x01200983, 0x0a211a82, 0x20d18203, 0x06a047fe, 0x07830120, 0x08b36518, + 0x1c00c024, 0xbb822e00, 0x00005926, 0x35373617, 0x446a0284, 0x07062105, 0x20055247, 0x82a58416, 0x009518b5, 0xd379180e, 0x11d83b2a, 0x011e0217, + 0x0d291a1a, 0x52493434, 0x02023636, 0x27271f1e, 0x0e0e0a1b, 0x6644180a, 0x18d0200f, 0x3b1ccd4c, 0x5f1f1533, 0x2b191225, 0x47071e1e, 0x02022c2d, + 0x2d523636, 0x38373b3b, 0xf30c0c21, 0x180f2c44, 0x3623ce84, 0x1f000500, 0x6002e0ff, 0x4300a001, 0x4c004700, 0x5f005600, 0x83010000, 0x823320f9, + 0x261725f8, 0x2627012b, 0x2905f04e, 0x03072627, 0x3f161706, 0xe74c1701, 0x86332005, 0x16172a06, 0x012f3637, 0x36373633, 0x5af51837, 0x27262708, + 0x23011f23, 0x03820f37, 0x07212d82, 0x224f8331, 0x18052337, 0x0808bfed, 0x02165854, 0x4c101602, 0x0e0e3635, 0x062a400f, 0x29080e0d, 0x0d0d0616, + 0x100cf009, 0x2b4f0f13, 0x13110c28, 0x1e4b340e, 0x0e14100a, 0x0d275030, 0x19091214, 0x1716220c, 0x21210101, 0x10453838, 0x1e2f1133, 0x21300258, + 0x1018ba11, 0x10010110, 0x9701264e, 0x8d5f010f, 0xa0012305, 0x5d821602, 0x482e2d2a, 0x020d6105, 0x32370b01, 0x35080582, 0x13d0fe0a, 0x65100c0f, + 0x0e133711, 0x2a46110c, 0x110b0f13, 0x09124446, 0x012c140d, 0x28221716, 0x21383845, 0x28a80121, 0x29022628, 0x10010227, 0x10181810, 0x63185061, + 0xc02d0f03, 0xc0010002, 0x2f001a00, 0x06250000, 0x09bf5b07, 0x0dc8e918, 0x18054070, 0x240eb157, 0x2701a001, 0x05d4657f, 0x46357e26, 0x023b3b58, + 0x076bd418, 0x1111af26, 0x761f0e0e, 0x162eb282, 0x0e0e1f76, 0x0e481111, 0x46f0480e, 0xd6657e35, 0x277f2205, 0x83298701, 0x83592007, 0x831f2021, + 0x831f20e1, 0x82482037, 0x4200202e, 0x1a260acb, 0x30002500, 0x9f9c3b00, 0x1615052b, 0x35373617, 0x07062726, 0x200a8937, 0x990a8917, 0xc8fe21ab, + 0x03837983, 0x88085646, 0x21b29808, 0xdb834008, 0x60210484, 0x840a83a0, 0x60402104, 0x08e86a18, 0x00030038, 0x02c0ff03, 0x02c00180, 0x03f402e2, + 0x01000017, 0x1f060706, 0x40180701, 0x14270925, 0x01391431, 0x9b153115, 0x211b8204, 0x21830239, 0x92410897, 0x22238305, 0xb5391503, 0x15052302, + 0x029f0839, 0x2333363c, 0x37361716, 0x36393323, 0x35063935, 0x39350439, 0x0a39350d, 0x35093935, 0x02840839, 0x17840720, 0x39350623, 0x20028405, + 0x22058403, 0x82393504, 0x85028208, 0x88088232, 0x200b8e11, 0x82298402, 0x33012905, 0x27263736, 0x39353123, 0x35220c83, 0x02830139, 0x07840d82, + 0x168a0d83, 0x31210e82, 0x84018335, 0x841c8508, 0x2104832a, 0x354c3534, 0x096b6f05, 0x8b490320, 0x26032510, 0x010f2223, 0x2205dc42, 0x18170607, + 0x820aad47, 0x34230883, 0x07373637, 0x10f80127, 0x270b0606, 0x443d2b16, 0x01022d2d, 0x183b2626, 0x16020216, 0x02181818, 0x82021616, 0x2f0d8406, + 0x0126263b, 0x27191801, 0x010e0e0c, 0x68701602, 0x080f1149, 0x0b04d134, 0x4c1d040b, 0x0506070b, 0x02094228, 0x054e0b03, 0x08090a01, 0x09063b3b, + 0x13140129, 0x011d3c21, 0x0e0e01c0, 0x2516270c, 0x2d2d0201, 0x2b2c3d44, 0x0098010a, 0x1c987983, 0x96831886, 0x479d239f, 0x2c2b0a2e, 0x1925303d, + 0x06050a27, 0x02167010, 0x0811226c, 0x0a2e0121, 0x03174a0a, 0x45090908, 0x0a0a072d, 0x0b500c02, 0x36070405, 0x33020636, 0x26272e45, 0x484a121b, + 0xa0320a1b, 0x42000d00, 0x5c005000, 0x06130000, 0x27171407, 0x9a6d2726, 0x23372105, 0x0b98ad18, 0x27263525, 0x69363734, 0x16270650, 0x15070615, + 0x48013f36, 0x26220620, 0x4d602327, 0x07062c05, 0x17163305, 0x06071415, 0x8236010f, 0x15072231, 0x53781833, 0x15470807, 0x06011e9f, 0x0f0f191f, + 0x1a670701, 0x0f101881, 0x19180101, 0x3b234729, 0x0d0d011f, 0x1b1b1516, 0x0d0d1615, 0x243a1f01, 0x18192947, 0x100f0101, 0x221b8118, 0x22282723, + 0x28011a23, 0x0f010767, 0x0620180f, 0x6cc11e01, 0x012e063c, 0x18394410, 0x13070816, 0x07551913, 0x2f833001, 0x202a553c, 0x2f120a20, 0x291a4d14, + 0x171f1f19, 0x17010117, 0x191f1f17, 0x144d192a, 0xad18112f, 0x2a360895, 0x01011b1a, 0x302a1a1b, 0x19550701, 0x08071313, 0x44391816, 0x8349c090, + 0x00002106, 0x0a2f7618, 0x19000c26, 0x00002f00, 0x28055063, 0x16171611, 0x13113317, 0xaf401821, 0x11212108, 0x4c0bc24a, 0x01210912, 0x09c54c00, + 0x18012021, 0x2208cdb2, 0x76e0e0fe, 0x01210d3d, 0x0a1e4d80, 0x84fe8021, 0x0001250d, 0x0112121b, 0x5f620b82, 0x20968606, 0x935518c0, 0x40013507, + 0x1500c001, 0x33002a00, 0x45003c00, 0x57004e00, 0x6b006000, 0x17039418, 0x40181720, 0x17211353, 0x058e7b36, 0x7b011f21, 0x36200595, 0x2205127f, + 0x9a160706, 0x03372111, 0x17201f82, 0x20050144, 0x11945000, 0x8c184020, 0x10200dc1, 0x4d075f55, 0x382008e1, 0x882111a2, 0x0afe180f, 0x05f94908, + 0x92186783, 0x60200b02, 0x8606e957, 0x46c02006, 0x5c88071e, 0x11a23820, 0x47680121, 0x06200a68, 0x3008b357, 0x002d0016, 0x005d0056, 0x00770065, + 0x37260100, 0x4dc31836, 0x08c35a09, 0xe24d0120, 0x16172306, 0x78180607, 0x0b820707, 0x06330329, 0x16171615, 0x6b063317, 0x15250528, 0x07060706, + 0x05606323, 0x2736232f, 0x0f222326, 0x37363501, 0x23173736, 0x26068315, 0x31070605, 0x4f330706, 0x38430660, 0x37418307, 0x0e0e1702, 0x07401111, + 0x11114007, 0xae170e0e, 0x16020216, 0x52fe17ae, 0x1d8b0987, 0x06f20932, 0x160f0e01, 0x10140675, 0x13101515, 0x1b121201, 0x40251191, 0x12121b40, + 0x054d4101, 0x6d184020, 0xdd18082e, 0x9720089d, 0x40256683, 0x070a0a07, 0x275a8340, 0x16160217, 0xb0fe1702, 0x1b8d0785, 0x0b39012d, 0x0e0f160d, + 0x0f161b01, 0x83d6130f, 0x210f8955, 0x0f83d714, 0x83404021, 0x83c02083, 0x20402104, 0x260f004f, 0x07000000, 0x48ff0000, 0x322f05d3, 0x4f004800, + 0x5e005600, 0x78006600, 0x82010000, 0x391522fa, 0xf1481801, 0x2f22210c, 0x0a14a718, 0x011f3622, 0x0ab5b518, 0x17323125, 0x19360131, 0x50087a1f, + 0x17270a9b, 0x27263315, 0x41372726, 0x27260d66, 0x16311716, 0xf04f3517, 0x187f1806, 0xd701210b, 0x0abe7518, 0x0a0c0c34, 0x0c0b5b5b, 0x0109090d, + 0x15700a01, 0x13555915, 0x0082090e, 0x0e600e25, 0x1829fe09, 0x18090856, 0x2109c05e, 0x0b833030, 0x14303027, 0x01010d0e, 0x86058370, 0xcc481811, + 0xb7012110, 0x0c007618, 0x08010824, 0xb5184e4e, 0x6024075f, 0x544c1010, 0x21061b51, 0x4b84d9fe, 0x087e6d18, 0x70200883, 0x70205f84, 0x70206b84, + 0x6a857084, 0xca4b5020, 0x8200200f, 0x410f2000, 0x0d380863, 0x23001800, 0x3b002e00, 0x57004900, 0x72006400, 0x8f008800, 0x9e009600, 0x2505dd73, + 0x31171613, 0x4a4a1716, 0x0aba5007, 0x17220a8a, 0x1f6a3736, 0x27262105, 0x8506f645, 0x8c37202f, 0x05344e3b, 0x46272621, 0x2720051a, 0x85056051, + 0x0607230e, 0x32833107, 0x1f6e1a85, 0xdc961805, 0x05185b09, 0x262fb341, 0x161722b0, 0x850f0101, 0x30782505, 0x16020216, 0x20210484, 0x840a8370, + 0x86082004, 0x20178212, 0x832987f0, 0x8b80202f, 0x0150263a, 0x0f221716, 0x20058501, 0x83088780, 0x8b60200e, 0x00ff2119, 0x203ef941, 0x204d8bc0, + 0x55a31810, 0x45602010, 0xa8200717, 0x1020828b, 0x9020348b, 0x1020b68b, 0x1020d08b, 0xa020198b, 0x203b3a42, 0x08074501, 0x0000682e, 0x012f3605, + 0x012f3435, 0x37161731, 0x2405a949, 0x37012f26, 0x18511836, 0x1f062607, 0x26350701, 0x22028227, 0x82150706, 0x83272002, 0x0726211a, 0x03841683, + 0x2607c84e, 0x0731013f, 0x4d011d06, 0x362805b7, 0x1537013d, 0x17161714, 0x55085082, 0x1517013d, 0x16011f14, 0x0fd00137, 0x43052a0d, 0x23241e85, + 0x01011a1b, 0x99221616, 0x17080c28, 0x12100b26, 0x0809300f, 0x16023216, 0x01070701, 0x16320216, 0x0f300908, 0x260b0f13, 0x290c0818, 0x16162299, + 0x1b1a0101, 0x851e2423, 0x0c2a0642, 0x3010120e, 0x42431806, 0x182d0805, 0x12103006, 0x3112103a, 0x57060937, 0x02011d7a, 0x252a1a19, 0x17061a1a, + 0x2a100e29, 0x0c0f1333, 0x0f0d4010, 0x18263227, 0x01073907, 0x08048201, 0x3226183d, 0x400d0f27, 0x130f0c10, 0x0e102a33, 0x1a061828, 0x1a2a251a, + 0x1d010219, 0x0906577a, 0x10123137, 0x07380f0d, 0x3f1f3809, 0x0109090d, 0x0d090901, 0x09381f3f, 0x0d0f3807, 0x46000000, 0x6632093f, 0xbc00b700, + 0xc600c100, 0x0000cb00, 0x013f2617, 0x03823435, 0x27060723, 0x82018226, 0x013f21f4, 0x0dfba218, 0x3736352c, 0x32333635, 0x17161517, 0x1a833715, + 0x16173624, 0x0385010f, 0x07061724, 0x03852726, 0x27070625, 0x82141715, 0x21088324, 0x14830714, 0x013d262a, 0x0f141507, 0x25270601, 0x33203b82, + 0xb7544882, 0x06bf5508, 0x530dd66d, 0xe8180571, 0x23260d2a, 0x37362726, 0xf26d3533, 0x8315200a, 0x82172048, 0x011d2112, 0x15220482, 0x0a871527, + 0x060da93f, 0x753b051e, 0x1720201b, 0x13010118, 0x31a01f14, 0x1d0e0308, 0x070e0d06, 0x0c020320, 0x07a3412d, 0x0c2d2308, 0x08200302, 0x1d060d0d, + 0x3108030e, 0x041422a0, 0x1a1a0e03, 0x231a0e0e, 0x280a100b, 0x06150120, 0xa3412b05, 0x02202e05, 0x010d0820, 0x30010f57, 0x010f0f01, 0x05b65410, + 0x1583058a, 0x1f9d1a84, 0x82301021, 0x82502000, 0x30550803, 0x3d0d080e, 0x3c04072c, 0x01196617, 0x25161601, 0x0516171f, 0x0a072a17, 0x080e3a2a, + 0x06400d05, 0x17272506, 0x082b0718, 0x18072b08, 0x06262617, 0x060d4006, 0x2a3a0e07, 0x182a070a, 0x05041a05, 0x15010115, 0x20020115, 0x18230e05, + 0x1a030320, 0x2b06040e, 0x07ed4132, 0x29203224, 0x30820304, 0x0f01ce23, 0xa6ab8510, 0x22df8f9f, 0x82303070, 0x848020ad, 0x82002005, 0x00012a00, + 0x0220001f, 0x00600120, 0x06bf4914, 0x17323322, 0x200c0255, 0x34ac8290, 0x26262d2d, 0x09096c17, 0x3efe1308, 0x09090813, 0x270d016c, 0x25008216, + 0x0f11bd27, 0x8a82010f, 0x47bd1121, 0x8022085b, 0x6118c001, 0x672f0a2d, 0x00007700, 0x31070601, 0x17150706, 0x54013b36, 0x172505ae, 0x07060716, + 0x09b74b33, 0x2005c643, 0x24068223, 0x17232726, 0x8e661833, 0x37362208, 0x9d661807, 0x9066180b, 0x28268c0c, 0x07231725, 0x26013f27, 0x06765327, + 0x5b822120, 0x0103272b, 0x0d0e1450, 0x05044701, 0x26a48320, 0x11134903, 0x447a0101, 0x182b07a1, 0x02161602, 0x0e0d0128, 0x18206014, 0x20148d5b, + 0xc36718a0, 0xd0fe3714, 0x19303d3c, 0x130a1d4a, 0x0abe0a13, 0x01140b09, 0x090b137b, 0x5354be0a, 0x775c2205, 0x24358403, 0x0122227a, 0xe38a1801, + 0x16482608, 0x48160202, 0x20798390, 0x20548940, 0x60571870, 0x18602009, 0x2d14ba68, 0x294063a3, 0x01102c7a, 0xc6fe1001, 0xbb821211, 0x3a200483, + 0x220b5367, 0x182d0011, 0x350e6750, 0x16171607, 0x3b210117, 0x36373601, 0x012f3437, 0x0f222326, 0x17412701, 0x83152005, 0x3002231b, 0x50181722, + 0x21080925, 0x22171601, 0x450108fe, 0x111a7b4b, 0x84090111, 0x070c0c07, 0x140b7e30, 0x09d80b14, 0x18100f01, 0x21832001, 0xfe2c318b, 0x111101a0, + 0xd80f111a, 0xc94f0b0b, 0xa7269b84, 0x1018100e, 0x9787010f, 0xbd014026, 0x46004100, 0x26249782, 0x0f263127, 0x8306d750, 0x020f2282, 0x20888335, + 0x09951811, 0x18332007, 0x2b07ca78, 0x0727012b, 0x0f372317, 0x25352301, 0x08064c78, 0x2f363721, 0x33370101, 0x10022317, 0x211c1c09, 0x06070d0f, + 0x076c1903, 0x08161608, 0x1602840e, 0x18100216, 0x3e0de585, 0x1b3e4389, 0x354b1a42, 0x1a510129, 0x0d0b0c03, 0x1010210f, 0xbdfe2a08, 0x860b700b, + 0x82208301, 0x0404340c, 0x5b0d0b0b, 0x0114131d, 0x23271401, 0x02021627, 0x5af8fe16, 0xbe280b0e, 0x134b4e10, 0x5e589f98, 0x29086b83, 0x1c1b0a04, + 0x7dfe9b21, 0x00002020, 0xff00000a, 0x018002e0, 0x001100a0, 0x00320017, 0x005f004d, 0x00770065, 0x0083007d, 0xef1800a1, 0x0625136d, 0x35171607, + 0x18058337, 0x2d0dc96f, 0x36373635, 0x1f163337, 0x37363501, 0x0a832726, 0x1423ee82, 0x88070607, 0x13352126, 0x260f335a, 0x3615011f, 0x78273435, + 0x0f21104b, 0x22638201, 0x84370706, 0x05d6661d, 0x61826c94, 0x0f01b825, 0x44181810, 0x07840537, 0x010f7829, 0x2e900f01, 0x4e1f0102, 0x1d38060c, + 0x20011211, 0x2520301f, 0x011ff01b, 0x251b2e02, 0x201f3020, 0x1d111201, 0x78201f86, 0x0824418f, 0x00ff1010, 0x280ffc49, 0x0f0f0150, 0x10109001, + 0x87388940, 0x214e8358, 0x838b6801, 0x9e2b5183, 0x11191911, 0x422a3254, 0x41152734, 0x1b2405cf, 0x221b1a0e, 0x13282c84, 0x342715dc, 0x01132a42, + 0x22249883, 0x1b0e1a1b, 0x01212185, 0x20459048, 0x20468354, 0x0f0b5656, 0x5a829020, 0x2a191122, 0x2a201c84, 0x2b204083, 0x2b204085, 0xf1826288, + 0x00820020, 0xdf410520, 0x0023280a, 0x00490037, 0x6f0000a2, 0x07201150, 0x2810506f, 0x31072207, 0x17141506, 0x08c94216, 0x25212322, 0x05272590, + 0x36371617, 0x1836012f, 0x180e8c87, 0x2141a087, 0xf17a6801, 0x7bd8200b, 0x70200b77, 0x0220ea85, 0x2306a44e, 0xd001c0fd, 0x87181e8b, 0x01214d8a, + 0x205b8b78, 0x20948b88, 0xf3ba18d0, 0x18198b0c, 0x20466f87, 0x08435200, 0xc001402a, 0x77001100, 0x9b008900, 0x12b5ec18, 0x064c1720, 0x59152005, + 0xa859057f, 0x2f362306, 0x0a873301, 0x17032729, 0x31303332, 0x82363716, 0x31343001, 0x36373130, 0x3330013f, 0x06073732, 0x1816021f, 0x24089c58, + 0x1737012f, 0x06397d16, 0x2f262724, 0x594f2602, 0x07062505, 0x012b2627, 0x4f05b370, 0x0f210b4b, 0x578d1802, 0x224e8208, 0x18272627, 0x0810538b, + 0x121b1034, 0x09090112, 0x18090f0e, 0x0d0b0a03, 0x0107070e, 0x031e1015, 0x0d0d0b0b, 0x39030707, 0x0d010174, 0x0504050d, 0x1a090302, 0x01010108, + 0x47160811, 0x1d840416, 0x03062108, 0x32080317, 0x10070914, 0x0c0c0c1b, 0x04040607, 0x0e0f150d, 0x23221b1b, 0x1426081f, 0x35151383, 0x093c5d18, + 0x2207f446, 0x573c1972, 0x3d260591, 0x280e0407, 0xae180304, 0x202a1154, 0x1b121201, 0x09090e80, 0x8b83900b, 0x7b219383, 0x838a8387, 0x02013792, + 0x03060636, 0x01060504, 0x040c1a08, 0x1a214001, 0x060d584e, 0x90830307, 0x090c5c2b, 0x10174136, 0x04050e08, 0x2d8f8204, 0x250a070c, 0x0e13121f, + 0x3c221104, 0xa95d2009, 0x22078707, 0x573b3ef0, 0x3e3005eb, 0x2d240907, 0x04000404, 0xc0ff0800, 0xc0012f02, 0x21060773, 0x35480088, 0x27262206, + 0x0bcf7f26, 0x1d191720, 0x33200925, 0x24082374, 0x013f3611, 0x05057c36, 0x36020f24, 0xcc5a3137, 0x9021200d, 0x050b4211, 0x42021d21, 0x3622050c, + 0x4a88013d, 0x72013d21, 0x35250660, 0x2b262734, 0x30538201, 0x08e80123, 0x20201818, 0x09081818, 0x0e0a0b04, 0x22ee820d, 0x183b1309, 0x2f093841, + 0x3b09090e, 0x07030913, 0x0b0e0d06, 0x5809040a, 0x18076a41, 0x20083666, 0x20118fc0, 0xbf811808, 0x85102009, 0x0a0d2347, 0xb1433011, 0x261e2f05, + 0x01212b18, 0x12131f85, 0x13120101, 0x5d41231f, 0x0e0a2605, 0xfe1f4423, 0x202285ce, 0x07d45b80, 0x441f3227, 0x0b0b0d23, 0x217b8304, 0x62412523, + 0x270f8f0f, 0x12120120, 0xbf01601b, 0xe322448d, 0x82850f14, 0x01243b23, 0x085b6d00, 0x01802508, 0x001600c0, 0x003a0028, 0x00a5004c, 0x16050100, + 0x06071617, 0x25270607, 0x26270605, 0x36372627, 0x17362537, 0x128a4318, 0x10074318, 0x43182520, 0x052110c0, 0x0aa64627, 0x4e820720, 0x5c183f20, + 0x558207fa, 0x21058a5f, 0x0787011f, 0x2f217582, 0x202f9001, 0x20138e26, 0x3d9d8307, 0x01500127, 0x03040b20, 0x0d0c0706, 0xfef0fe0c, 0x0c0c0df0, + 0x04030607, 0x0f21010b, 0xa1441010, 0x8bb0200b, 0x4401200c, 0xfe210caf, 0x8b8c18cb, 0xd78c1833, 0xbc012617, 0x0c0c07a0, 0x2194830d, 0x8a839797, + 0x07249982, 0xec0808a0, 0x200b0845, 0x200c8b60, 0x209a8b28, 0x798c18c3, 0x1831202c, 0x5b17bf8c, 0x802a062b, 0x1100c001, 0x4b001600, 0x1f456e00, + 0x35032213, 0xea981833, 0x4902200a, 0x2322079a, 0x2c453521, 0xd45f1809, 0x05197107, 0x36371626, 0x0115013f, 0x0a149918, 0x18331621, 0x790c5d99, + 0x152006c2, 0x23110043, 0x58401010, 0x23058742, 0x78015078, 0xfe390985, 0x0c071da8, 0x030b0c0d, 0x0d3a0703, 0x1e191616, 0x0d16151a, 0x0303073a, + 0x2415820b, 0x58011d07, 0x05314419, 0x0f598318, 0xc5443d82, 0xa0fe2211, 0x0cff7960, 0x0c2fbf22, 0x072b5782, 0x610c0d0c, 0x0c0c0d15, 0x8261150d, + 0x8207200a, 0x2f0c265c, 0xf38001bf, 0x0514451a, 0x0a1f8418, 0x9485f320, 0x465e3b41, 0xc844063c, 0x051f4805, 0x37323324, 0x96183d36, 0x272008a0, + 0x20453b41, 0x123441df, 0x41064e41, 0x47203e3b, 0x41113341, 0x002f074d, 0xff200003, 0x01e001c0, 0x001100c0, 0x4c630051, 0xbb180611, 0x06230a60, + 0x18071707, 0x22078979, 0x59272623, 0x1d2307a4, 0x18151401, 0x250932cb, 0x31302722, 0x01822726, 0x18343721, 0x240d2461, 0x07061516, 0x20911827, + 0x00012110, 0x2b0fdf4c, 0x130e3fd5, 0x040d1013, 0x3c010703, 0x0806fc79, 0x06126629, 0x13090906, 0x01a01212, 0x07050802, 0x020a0502, 0x201f1443, + 0x1e234c24, 0x0333151f, 0x0a010402, 0x130c0d75, 0x850d0c13, 0x11064d05, 0x104fdf2c, 0x0c0c0202, 0x0a0f100f, 0x2b42252d, 0x30240805, 0x0a330101, + 0x12131212, 0x50090606, 0x08060501, 0x0212130a, 0x111e6501, 0x1c101011, 0x0a050547, 0x330d110a, 0x58825288, 0x00820020, 0x0300032e, 0x7f02c0ff, + 0x1100c001, 0x6c004400, 0x2013cd4d, 0x27611803, 0x2b262417, 0x18072201, 0x5c152b61, 0x362e19b8, 0x013f012f, 0x27363727, 0x27010f26, 0x9b46e001, + 0x06914610, 0x461c8b43, 0xfe210531, 0x17b55ce7, 0x0a09082e, 0x19320501, 0x06052737, 0x1d4c0b07, 0x18126242, 0x20089b9c, 0x199843df, 0x5641df20, + 0xce012105, 0x3015465c, 0x0b050407, 0x2629084f, 0x08090945, 0x004a1703, 0x066f4200, 0xc001a028, 0x42001100, 0x6f425b00, 0x0b6c5707, 0xcc440720, + 0x4123200b, 0x0e48153d, 0x3736220d, 0x08276016, 0x27059c5f, 0x36171615, 0x10013537, 0x2d0f6047, 0x0d092f08, 0x010a0b0d, 0x1d4a0801, 0xbd44242d, + 0x0c2e480d, 0x07015828, 0x16020107, 0x544d0216, 0x640b8407, 0x924108cc, 0x39bb2207, 0x824b820b, 0x590a3053, 0x0d0c0122, 0x0d0b6116, 0x0307070c, + 0x41300b03, 0x08480619, 0x8df52b07, 0x07010107, 0x02021670, 0x1b4d7016, 0x83082007, 0x0008280d, 0x20000200, 0x4502c0ff, 0x5e2005fb, 0x6417f745, + 0x3b200894, 0x0ac0f818, 0x23153324, 0xeb822335, 0x09191620, 0x8b5d0ac9, 0x18764205, 0x8512ac44, 0x403821f8, 0x2306ae4f, 0x40c0c010, 0x88081651, + 0x424d2108, 0x42132d41, 0x7b661b36, 0xc0402307, 0x2f413020, 0x08cb4207, 0x2c415020, 0x06082106, 0x4c0a2c41, 0x40240e27, 0x61005200, 0x1813bb4f, + 0x4816f362, 0x06210790, 0x067c4807, 0x2005ac66, 0x05465b23, 0x24065e55, 0x16171637, 0x0e2a7317, 0x2642d020, 0x4138200f, 0x1d250512, 0x0b0d0c07, + 0x0cec460c, 0x0c182d25, 0x851d0203, 0x0110221e, 0x0fe471a8, 0x4b0e3473, 0xfe2111dc, 0x06194ad0, 0x0b30df22, 0x2d05ed46, 0x0d16610b, 0x160d0c0c, + 0x03231b4a, 0x36422f04, 0x11b77c07, 0x77104673, 0x534d0663, 0x00402605, 0x005b0052, 0x432d4166, 0x73106261, 0x32411356, 0x73182038, 0x33411f61, + 0x270c7d39, 0x4c180420, 0x112608c7, 0x52004000, 0x35415d00, 0x0f125243, 0x59181720, 0x2c410aee, 0x105f4238, 0x0a1b4618, 0x42392741, 0x0f20105b, + 0x4306a366, 0x6b20127f, 0x42431b41, 0x37201051, 0x1746ae18, 0x42382941, 0x10201056, 0x12184618, 0x33413020, 0x105b4239, 0x157eae18, 0x20129343, + 0x5441417e, 0x2b865b18, 0x18495441, 0x4723a25b, 0xf2441023, 0x10624127, 0x045d3020, 0xbe5b1807, 0xbf5b1821, 0x05d3430a, 0x4956b742, 0x26230592, + 0x181f0607, 0x2408146e, 0x012f3637, 0x49624137, 0x1990dc18, 0x20495841, 0xb1dc18b5, 0x0beb4a19, 0x78005022, 0x20139f49, 0x0a895103, 0x32240a8b, + 0x012f3637, 0x241c884e, 0x16170607, 0x1ab06733, 0x200cf74a, 0x10bc4902, 0x6a188a20, 0x12260d87, 0x02040508, 0x904e2226, 0x10353907, 0x0c1e1919, + 0x1019191e, 0x03030735, 0x0c0d0b0c, 0x02262207, 0xc7080504, 0x4127024b, 0xb0201160, 0x2006686f, 0x24078760, 0x73080607, 0x07a64e38, 0x0f195927, + 0x190f0e0e, 0x07a64e59, 0x08733826, 0x6e010706, 0x30270a4b, 0x00000300, 0x3f02e0ff, 0x2d00a001, 0x74003f00, 0x51531800, 0x1401260a, 0x07171617, + 0xc38e1816, 0x36372908, 0x3736013f, 0x27262736, 0x07bcc518, 0x18352721, 0x20117e44, 0x33e17e07, 0xcc48c020, 0x10113105, 0x0b0c151d, 0x14111a21, + 0x15131114, 0x69101011, 0x25075054, 0x263d3f69, 0x1a641617, 0x0bbf5705, 0xd57e0d20, 0x48012031, 0x203106fc, 0x1b232429, 0x02010392, 0x0d0b0b13, + 0x04026105, 0x074c5518, 0x140e1828, 0x28201f0c, 0x29588020, 0x0cc6220f, 0x8440180c, 0x1901222d, 0x2d008200, 0xff400002, 0x01e001c1, 0x003e00c0, + 0x417a0050, 0x011d2705, 0x07060714, 0x6d181715, 0x2b210c23, 0x063e5301, 0x012f2622, 0x0fe49418, 0x36373628, 0x3734013d, 0x0a743336, 0x20012f11, + 0x1409090e, 0x57392113, 0x072c0e18, 0xcf820201, 0x26090c2f, 0x075c0160, 0x0b0c0203, 0xa0080c0d, 0x055f4105, 0x1b1a0126, 0x10101c2e, 0xb0200c82, + 0x210fcf4d, 0x1582c001, 0x23290a2d, 0x50011623, 0x0b3a1201, 0x83090c0d, 0x8f332149, 0x08200982, 0xf8234783, 0x4d4a0f0e, 0x4a290568, 0x13282831, + 0x1e17180b, 0xea92180a, 0x824c8b07, 0x000326ef, 0x02c1ff00, 0x20ef867c, 0x0a23597f, 0x0620f585, 0x5355f983, 0x37342108, 0x2009af43, 0x0cbb433b, + 0x31272322, 0xf185f584, 0x590b9e4d, 0x3720062a, 0xe8611e82, 0x05225107, 0x2808836b, 0x31163130, 0x011f3233, 0x225c8207, 0x85000137, 0x101026ff, + 0x1a1b2e1c, 0x2e0c8501, 0x0c08a005, 0x020c0b0d, 0x015c0703, 0x82092650, 0x020b2c0b, 0x0e2c0701, 0x21394718, 0x4ba01314, 0x012d0f8e, 0x09083b70, + 0x4f05010a, 0x0801030a, 0x06b14e41, 0x290dd543, 0x171f1301, 0x03240112, 0xc6772703, 0x1e0a2807, 0x130b1817, 0x41322728, 0x0f22073a, 0x7183f80e, + 0x8f217983, 0x836f8333, 0x123a2877, 0x23175001, 0x4c0a2923, 0x504108a2, 0x36ce2d07, 0x0b050407, 0x0a030c4f, 0x462d060a, 0x4305c04e, 0x01270bda, + 0x31110315, 0x18240404, 0x250ba7f3, 0x002d0011, 0x6f18004f, 0x132112f1, 0x09b25f35, 0x4c270621, 0x31280c9e, 0x31373627, 0x31113736, 0x1809d666, + 0x630f1d70, 0x9b8708b1, 0x1a070827, 0x3b0d1615, 0x07785306, 0x24055541, 0x1918106e, 0x450a851d, 0x0b25091b, 0x0703030c, 0x11a74d35, 0xe000ff22, + 0x2513824d, 0x0e19aa80, 0x6f18010e, 0x60250853, 0x73080607, 0x07a94c39, 0x62005a21, 0x734c06c7, 0x00422805, 0x00750054, 0x4e8b0080, 0x072113b3, + 0x09ff7737, 0x590cba57, 0x272008a6, 0x200cdb4f, 0x54691837, 0x15072311, 0x3b512627, 0x1617210c, 0x25098f60, 0x07060706, 0x686a1603, 0x0f062206, + 0x26298201, 0x3716011f, 0x4e012f36, 0x852010e1, 0x51061441, 0x02500636, 0xa5012119, 0x260f7942, 0x100c2910, 0x59300810, 0x1c27072e, 0x1c1b1337, + 0x50011213, 0xb0240714, 0x0f380f01, 0x04830d82, 0x06080d26, 0x070e300d, 0x6c410482, 0x50d12011, 0x3750100e, 0x44412017, 0x682b0f1c, 0x020b2a3b, + 0x0c600f03, 0x83070c0c, 0x37382786, 0x13120113, 0x4450661c, 0x28012107, 0x2c07bd4b, 0x0e0d0632, 0x0d061807, 0x0018080d, 0x05537700, 0x01202908, + 0x000b00bf, 0x002b001a, 0x0048003b, 0x07061300, 0x36331716, 0x27263537, 0x1716010f, 0x36171631, 0x34373637, 0x15062327, 0x2908265d, 0x3715013b, + 0x05022b26, 0x54563307, 0x1d6c180c, 0xf7232c0b, 0x17020215, 0x02010f97, 0x8207980f, 0x22222847, 0x02011617, 0x57a8029c, 0x98360518, 0x691614a3, + 0xab5a01a8, 0x0f0936a9, 0x040f0e10, 0x114d0804, 0xf86bc21b, 0x01c02d06, 0x171504b2, 0x1f0f0102, 0x620d010f, 0x20070754, 0x20008208, 0x05645770, + 0x07a25926, 0x5a2eab15, 0x09203682, 0x81243e83, 0x20cb111d, 0x2105fc44, 0xd7830020, 0xc0ff1f24, 0xd784e001, 0x41001926, 0x60005700, 0x3621d782, + 0x06b4623f, 0x17272626, 0x06151633, 0x3b05fe64, 0x13373427, 0x15141527, 0x36273130, 0x1732013b, 0x36372637, 0x0f16021f, 0x17161701, 0x73180582, + 0x27200921, 0x085dd118, 0x2706072f, 0x3f262726, 0x13373601, 0x36272306, 0x05f86c37, 0x1502a024, 0xb2820f98, 0x02179725, 0x88029c12, 0x36e43ef1, + 0x321c19ae, 0x0c5f1618, 0x0e0e0806, 0x38060c0e, 0x03040b02, 0x02032407, 0x0404094c, 0x2200820f, 0x82805609, 0x070641ba, 0x0e4c0927, 0x0605b516, + 0x07454b18, 0x1599012e, 0x0f010d04, 0x02010f1f, 0x08083917, 0x2b090b41, 0x6e5a94fe, 0x0bf90202, 0x0d09a408, 0x08305b82, 0x01600e08, 0x0b0d0c07, + 0x81050440, 0x090f100e, 0x34245d83, 0x6e0e0909, 0x24092541, 0xfdfe1018, 0x08e76c02, 0x0800003a, 0xc0ff0000, 0xc0010002, 0x19000b00, 0x31002500, + 0x59004300, 0x87007000, 0x270b0542, 0x23170723, 0x17161506, 0x41070742, 0x332307e4, 0x18070627, 0x2407bd57, 0x17072223, 0x169d5b37, 0x360a346e, + 0x27262726, 0x35360323, 0x26012f34, 0x15070607, 0x16070623, 0x82153317, 0x023f255b, 0x16011f14, 0x35204282, 0x2005146e, 0x292a8235, 0x1506010f, + 0x01010e47, 0xfb826f10, 0x776f1024, 0xee47037b, 0x9e022107, 0x8027d782, 0x14900203, 0x8302be01, 0x06402414, 0x60a28905, 0x20200fc4, 0x23069d5b, + 0x09090e80, 0x88332484, 0x0c400808, 0x58010d0e, 0x16020216, 0x0e0d0158, 0x9048400c, 0x01082e11, 0x100e02b3, 0x0e0f0101, 0x09410d10, 0x23548709, + 0x20b20909, 0x6f254782, 0x052b1d12, 0x21598406, 0x0e196a01, 0x97870818, 0x08832020, 0x83078742, 0xfefe3639, 0x070b0b07, 0x07060a38, 0x1602200f, + 0x0f200216, 0x380a0607, 0x21128412, 0x128a1006, 0x000b0722, 0x2e08ff67, 0x00c00100, 0x00440011, 0x005a004f, 0x18700065, 0x52139dcf, 0xe25b1edb, + 0x0c404605, 0x007b2320, 0x7b21200a, 0x26220a00, 0x0d86013f, 0x6e272121, 0x072405a6, 0x30012706, 0x520fe244, 0xd8590aeb, 0x0f5f460e, 0x11f11026, + 0x0e0e5011, 0x01260484, 0x0e1111d0, 0x0484500e, 0x8730fe21, 0x11112309, 0x2187d001, 0x504b0b82, 0x08fd5211, 0x22205256, 0x89590180, 0x82748655, + 0x85fe2079, 0x8583847e, 0x3882837d, 0x00030000, 0x02c0ff0f, 0x00c00120, 0x00260014, 0x0100005b, 0x23111732, 0x07ba5835, 0x36013f27, 0x013b3637, + 0x10a55137, 0x2c053956, 0x36353715, 0x17163337, 0x010f0615, 0x28078415, 0x16172307, 0x27262307, 0x05435435, 0x36373423, 0x2b228233, 0x36272635, + 0x01013b37, 0xc0202709, 0x2509d543, 0x251f1e13, 0x16443732, 0x2e078707, 0x0f010f80, 0x0f011001, 0x01010f10, 0x8230350a, 0x2c0f2505, 0x3c110217, + 0xce441482, 0x0f012105, 0x10271383, 0x14000110, 0x43aed4fe, 0x202209ca, 0xdd181211, 0x502810f1, 0x09740f01, 0x38056d13, 0x55243283, 0x1b11040b, + 0x5c295884, 0x0f010212, 0x0e090960, 0x23528290, 0x64091320, 0x00215383, 0x08fb4303, 0x30001e2c, 0x00005300, 0x010f2601, 0xd77a0706, 0x5f372009, + 0x352408a1, 0x012f2611, 0x22113463, 0x57333503, 0x17220541, 0xaa183716, 0xc658098f, 0x013f2105, 0x01251a84, 0xe0101010, 0x06cf490f, 0x444cc020, + 0x0f012206, 0x0cc55de0, 0x0210082b, 0x1b021616, 0x0913140c, 0x2aaa1826, 0x09262508, 0x1b0c1413, 0x01261883, 0x800808bc, 0xa818120a, 0x2d24088d, + 0xd3fe6e6e, 0x24061c41, 0x800a1240, 0x0b765dcc, 0x58e8fe28, 0x02021658, 0xa918ae16, 0x0c2809e2, 0x0c144715, 0xae311309, 0xb9181783, 0x4d240d2b, + 0x95005f00, 0x22149748, 0x62313334, 0x435d2730, 0x3f36220a, 0x10276201, 0x83160521, 0x3536274a, 0x33012f34, 0xd0603736, 0x22232305, 0x16450607, + 0x02401805, 0x18372008, 0x8208c0b5, 0x181f2019, 0x47096474, 0x542007e9, 0x211f3262, 0x3262160c, 0x13332f07, 0x06050402, 0x0c0b0d0d, 0x1a090304, + 0x29621e08, 0x5d5b200f, 0x1a29057e, 0x2d2d4413, 0x2d2d0202, 0x066f4d44, 0xc8718020, 0x5d132007, 0xa6480a45, 0x01692611, 0x1b214001, 0x202e624d, + 0x08351722, 0x2407d77c, 0x030c1a08, 0x0e286287, 0xa95d7720, 0x83192005, 0x4a888380, 0xe8710592, 0x0c225e07, 0x240cbb5d, 0x005f004d, 0x5eb34183, + 0x2326252a, 0x06072231, 0x011f1415, 0x4109aa41, 0x185f05b2, 0x412f2006, 0xc9205ca1, 0x2006a141, 0x05e64293, 0x8f419320, 0x41b72063, 0xb518068f, + 0x6d5e0c7b, 0xd7651805, 0x057f410c, 0x99008e26, 0xaf00a400, 0x20818741, 0x04721802, 0x18172009, 0x940adc80, 0x4bd02015, 0x54430f36, 0x1ab2414a, + 0xac769f20, 0x08dc4910, 0x4308d076, 0xd6415866, 0x7299201a, 0x982009d8, 0x1020a283, 0xa8220484, 0x08851602, 0x78021622, 0x25080e73, 0x04000030, + 0x3b472400, 0x00112606, 0x005f004d, 0x13e15e78, 0x37450720, 0x012f2448, 0x4d010f26, 0x1f2608d9, 0x36371601, 0x0283013f, 0x51012721, 0xc641101a, + 0x13312113, 0x450a4e67, 0x3e38281b, 0x3620090d, 0x070c0d0c, 0x03030640, 0x0c0c370c, 0x0240070d, 0x0c062c01, 0x24589f41, 0x370c063e, 0x306c831f, + 0x0c0c0c6f, 0x04072007, 0x046f0b03, 0x090d4c04, 0x03511800, 0x002a250c, 0x004b003c, 0x27064967, 0x1d060715, 0x013f1601, 0x17230785, 0x82373332, + 0x37362b03, 0x35262726, 0x37363734, 0x09823527, 0x53182720, 0x62181246, 0x1b7a0d47, 0x08b83b05, 0x3aac1103, 0x020d0106, 0x026e6e02, 0x1d030a02, + 0x15151111, 0x11014d23, 0x97181c12, 0x62181145, 0x012e0e45, 0x1f1f03c0, 0x0569541d, 0x03124209, 0xe2184731, 0x0830088f, 0x29232219, 0x1925262e, + 0x1f1d542c, 0x90fe031f, 0x180fce5b, 0x47104962, 0xeb830b97, 0x50004522, 0x9418edac, 0xf2a125ef, 0x101d7518, 0x0fda4f18, 0x0020f2a7, 0x580ff45d, + 0xc11808a7, 0x00200cb9, 0x23068749, 0x00c00180, 0x5520f783, 0x3725f5be, 0x07161707, 0x05ed7806, 0x4b013f21, 0x372105d1, 0xb2138236, 0x7b5918fa, + 0x38034118, 0x25875918, 0x3b002e24, 0x59465a00, 0x17163007, 0x17151716, 0x06011d06, 0x17152707, 0x18021d16, 0x251145e5, 0x013f3435, 0x9f180535, + 0xc02d2a42, 0x1b121201, 0x0111121c, 0x041c0666, 0x09fc4240, 0x06010d32, 0x0311ac3a, 0x5001b808, 0x4009090e, 0x500e0909, 0x152f9f18, 0x1f1d6237, + 0x1f03031f, 0x3a541d1f, 0x11191311, 0x2b471322, 0x12180805, 0x8be5180d, 0x31472908, 0x09421203, 0x92546905, 0x22e95318, 0x39069770, 0xa001fd01, + 0x1a000f00, 0x30002500, 0x4f003f00, 0x6d005e00, 0x9a007c00, 0x5d790000, 0x18152005, 0x7908a58d, 0x0a8a0a54, 0x87115f79, 0x16372531, 0x17163117, + 0x0a833f89, 0x35204c83, 0x51086479, 0x1084060c, 0x0c8b0720, 0x07171629, 0x36313726, 0x56322133, 0x072005f8, 0x0a35a618, 0x26272623, 0x6e3f7927, + 0x02fc2108, 0x010c0707, 0x07070cc8, 0x19190601, 0x0e090925, 0x090e00ff, 0x19192509, 0x01a00105, 0x10221716, 0x8205f778, 0x79202006, 0xb820191c, + 0x32842488, 0x388d1020, 0x0779a020, 0x21068706, 0x108b0f01, 0x1d8d1020, 0x080c9c22, 0x0c250082, 0x071b1a26, 0x05ac4902, 0x1b070225, 0x1800261a, + 0x2b0bef7a, 0x0019000c, 0x00530041, 0x1300006a, 0x200ba542, 0x200c8b33, 0x08817005, 0x19161521, 0x230e8706, 0x37363526, 0x35250182, 0x23262734, + 0x05aa7c21, 0x200b996e, 0x16691837, 0x42602015, 0xc02006c2, 0xff210786, 0x189f8500, 0x2d09b7e9, 0x01031013, 0x01382323, 0xfe0e0909, 0xa34501c0, + 0x21691810, 0xc0012116, 0xea5a2f82, 0x20658308, 0x821082a0, 0x3b20255b, 0x430c2b2b, 0x432a6485, 0x11100804, 0x112d2e3d, 0x10820304, 0xb45dfe20, + 0x31691810, 0x13334114, 0x33416220, 0x18052043, 0x1810cf4d, 0x410e5c60, 0x02202e2b, 0x10ee5918, 0x41101747, 0xd0203023, 0x201f2247, 0x088f6206, + 0x22074f42, 0x4167005c, 0x5142431d, 0xa0601811, 0x2e224113, 0x47114e42, 0x23411148, 0x11474230, 0x20165447, 0x102b4105, 0x29415e20, 0x11474243, + 0x69182320, 0x204109c6, 0x1143422e, 0x430bb563, 0x3f423163, 0x0aae6310, 0x420a6f62, 0x6c20073b, 0x42430f41, 0x6a181139, 0x1d411802, 0x113e422e, + 0x6a181020, 0x8b44130d, 0x1d6a1844, 0x11434216, 0x49573341, 0x334117b2, 0x1ac04940, 0x49427b43, 0x3b671acc, 0x01803505, 0x001e00c0, 0x004a0034, + 0x0100005f, 0x22232627, 0x0706020f, 0x280c1463, 0x36372735, 0x012f2627, 0x41861807, 0x20159514, 0x0a505805, 0x6d273421, 0x2008053a, 0x18620115, + 0x04060703, 0x02073418, 0x09260502, 0x07050501, 0x05072f2f, 0x05260905, 0x34070203, 0x05964662, 0x2007e852, 0x210e8de0, 0x765aa001, 0x3e068606, + 0x06308a01, 0x01083006, 0x25050706, 0x04040735, 0x03181903, 0x34070404, 0x07060525, 0x18ca0801, 0x180d5357, 0x180eab46, 0x460e5446, 0x737a05d3, + 0x00162805, 0x0024001d, 0x4341002b, 0x5018067b, 0x3d240843, 0x35233701, 0x2328ca82, 0x010f2305, 0x07013f33, 0x09820382, 0x0c842720, 0x5d052321, + 0x35210818, 0x4b6b1811, 0x58072008, 0xc8820665, 0x82555521, 0x75012490, 0x825a064a, 0x4a2a2302, 0x06825b05, 0x0c84a020, 0x20014a22, 0xec851b83, + 0x55200582, 0xfe20e884, 0x21060541, 0x4383aab6, 0xb50b4025, 0x89c0b50b, 0x12aa1804, 0xaa36210e, 0x35099758, 0x00c00180, 0x001f0014, 0x0035002a, + 0x0060005b, 0x32210100, 0xc5821617, 0x23060725, 0x18272221, 0x5107fabe, 0x0320147a, 0x05261589, 0x15231521, 0x63601533, 0x14341905, 0x3335230c, + 0x47832335, 0x36373424, 0x23821733, 0x60013523, 0x06b54801, 0x0786ff20, 0x08caee18, 0x51083951, 0xfe2c084b, 0x28000140, 0x1b1b2928, 0x0e090901, + 0x0125da83, 0x48291b1b, 0x24fd8528, 0x015050a8, 0x201782c0, 0x064779fe, 0x82c00121, 0x02c82517, 0x02164016, 0xb8200484, 0x0c820786, 0x89580121, + 0x40382316, 0xaf186040, 0x60210fb4, 0x05ef4840, 0x40404023, 0x1f911800, 0x01802b08, 0x003d00a0, 0x005e004f, 0xee641300, 0x16172a0c, 0x2326011f, + 0x07060722, 0x08bc4135, 0x16171429, 0x06373233, 0x83171415, 0x011d2a18, 0x26272623, 0x13373427, 0x18f78236, 0x511242a7, 0x1f280608, 0x013f1601, + 0x4bd52736, 0x4b2b7e85, 0x07101015, 0x2d11112b, 0x79182625, 0x0324089b, 0x01010704, 0xc92cd982, 0x010f0f18, 0x10077603, 0xab011411, 0x6c0f894e, + 0xd8180f7e, 0x0c27086b, 0x0378140b, 0x7b231414, 0x4020065e, 0x01244882, 0x08081918, 0x40235e82, 0x820f0f01, 0x4c012566, 0xfe0c0b14, 0x10ff5e18, + 0x766c2b20, 0x6e04200e, 0x134106ab, 0x00582205, 0x40154163, 0x6c101c6a, 0x1a41136e, 0x491b2030, 0xa4480f74, 0x301b4110, 0x48101a4a, 0xe37016a2, + 0x42022005, 0x68200737, 0x18512141, 0x4118dd5f, 0x17204126, 0x17e05f18, 0x2f410120, 0xe95f1841, 0x00002119, 0x2f095742, 0x00430030, 0x006e0050, + 0x22230100, 0x03070607, 0x2e05a05e, 0x37343533, 0x17323336, 0x33011d16, 0x82373635, 0x37362602, 0x26272627, 0x0d4a182b, 0x1517240a, 0x5b060714, + 0x2c8209af, 0x32171524, 0x32823117, 0x3d842320, 0x1dcfd918, 0x4b20012d, 0x07101015, 0x0f010376, 0x43c9180f, 0x202b0577, 0x1c011e02, 0x071f2c1d, + 0x43151010, 0x2244069c, 0x201f8506, 0x145518b0, 0xa0012c1c, 0xfe140b0c, 0x180909b4, 0x44010f0f, 0x402c069d, 0x19122580, 0x041f1f2d, 0x0c0b1456, + 0xc0201387, 0x0dae4c18, 0x23205518, 0x82000221, 0x80023300, 0x24005b01, 0x00003700, 0x31373613, 0x35011f36, 0x058e3736, 0x0607162b, 0x35062b07, + 0x17322103, 0x08e04f16, 0x3734352a, 0x01403336, 0x63070b0a, 0x8226048d, 0x1408090a, 0x00834044, 0x02208022, 0x4508987e, 0x01270568, 0x04030c4b, + 0x8f8b940a, 0x11c22705, 0xeb011010, 0x8e18f5fe, 0x03200cbb, 0x80269f86, 0x2f002a00, 0xa1825a00, 0x1d013b25, 0x18012b05, 0x200c4e46, 0x270d9223, + 0x11211121, 0x23070605, 0x0ea14618, 0x17163322, 0x2b311488, 0x3b053d01, 0x18171601, 0x20181820, 0x16020216, 0x05497308, 0x58260590, 0x60fea001, + 0x20991002, 0x012c4085, 0x50581880, 0x02185850, 0x28021616, 0x20200483, 0x0e840488, 0x8280fe21, 0x871a9521, 0x06eb5338, 0xc0010024, 0xef820c00, + 0xef824820, 0x3637332b, 0x23272627, 0x1f060706, 0x23058202, 0x31300139, 0x07270b82, 0x17160706, 0x5c211716, 0x2620072f, 0x4a063977, 0x39081629, + 0x80c0010f, 0x0404052f, 0x040ac40a, 0x802f0504, 0x1e070680, 0x2020292a, 0x1b1b0102, 0x29400129, 0x02011b1b, 0x2a292020, 0x0403021e, 0x0e2f1e04, + 0x2f11110e, 0x0e11112f, 0x0b8b2f0e, 0x47600134, 0x01070809, 0x09080701, 0x04042047, 0x37232212, 0x125c5238, 0x38522a07, 0x12222337, 0x02030201, + 0x853991d0, 0x08bf6045, 0xdf828020, 0x43003630, 0x5f005000, 0x80007100, 0x26010000, 0xd582020f, 0x84111521, 0x233122d4, 0x25d78335, 0x37363331, + 0x6f732306, 0x0714240b, 0x82323736, 0x343526f6, 0x022f2627, 0x3c461807, 0x8a15200b, 0x013f250c, 0x16150706, 0x2206d365, 0x4d272635, 0x27201195, + 0x0805d160, 0x26012f28, 0x011f3637, 0x12520137, 0x117d8b12, 0x0d010b0a, 0x1001140e, 0x12120140, 0x2406011b, 0x19251813, 0x19010119, 0x07832519, + 0x3b2c0f2c, 0x1826252d, 0x7d110a0b, 0x4618f28b, 0x09890945, 0x010fe024, 0x0e840f01, 0x0f011022, 0x11086718, 0x0b0b6324, 0xd9180a0a, 0x01370963, + 0x5d0a0abb, 0x0d0d041c, 0x14ddfe11, 0x60010d0e, 0x0112121b, 0x870b293a, 0x2e07836e, 0x0120151c, 0x5e231414, 0x040d0d11, 0x19bb5d1c, 0x2009644e, + 0x200a8980, 0x247386c0, 0x0f10010f, 0x109c5601, 0x0a0a2b24, 0xd9180b0b, 0x00240973, 0xff000007, 0x41052376, 0x7a22097f, 0x81418500, 0x267c575f, + 0x48518641, 0xbf471088, 0x53864110, 0x4980fe21, 0xe3470f51, 0x41062017, 0x8a20128f, 0x20718d41, 0x15135837, 0x43010f21, 0x92415219, 0x192b4810, + 0x48659b41, 0x53531b4f, 0x002f2a09, 0x004e0041, 0x0068005b, 0x8b5f1875, 0x3317240a, 0x57161716, 0x2321052d, 0x33321935, 0x2c098309, 0x36373635, + 0x35373337, 0x33363734, 0x105f5417, 0xa2442520, 0x21358207, 0xad440523, 0x220a8305, 0x8b050706, 0x8b212019, 0x2001320c, 0x01010f70, 0x665a500f, + 0x0112121b, 0x1b121201, 0x078565b0, 0x08fc9c18, 0x095a6624, 0x9c650e09, 0x00ff2110, 0x22089b44, 0x18700120, 0x2109974a, 0x178a90fe, 0x0b8a8020, + 0x0f01c024, 0x09450f30, 0x83e02006, 0x1970206d, 0x8308a21f, 0x25128477, 0x090e4040, 0x315ff009, 0x4410200f, 0x1021099a, 0x60551840, 0x89738208, + 0x2109870c, 0x8f440000, 0x0029370a, 0x00430036, 0x00640055, 0x00900071, 0x1f360100, 0x16171602, 0x5441011d, 0x07062b08, 0x07063123, 0x33150706, + 0x14832131, 0x37341125, 0x18023f36, 0x230c29d7, 0x1716011d, 0x2205976a, 0x68070623, 0x7b52116d, 0x27262707, 0x16373635, 0x5d57011f, 0x37aa180b, + 0x1832200a, 0x22089a87, 0x6f262722, 0x352205b0, 0x21462e01, 0x1f203a07, 0x201f3030, 0x40021e01, 0x0112121b, 0x14f0fe40, 0x0b010d0e, 0x8b7d110a, + 0x095741de, 0xf0200989, 0x250b4246, 0x25191901, 0x66411010, 0x010f2208, 0x1d455ac0, 0x2008ff42, 0x20728363, 0x2d7a8201, 0x01251219, 0x601b1212, + 0x140e0d01, 0x17462301, 0x41cb2005, 0x80200959, 0x48200a89, 0x830b4846, 0x10782384, 0x7a880f01, 0x755a6020, 0x00043222, 0x01c0ff00, 0x00c00180, + 0x00220017, 0x0031002d, 0x05275a00, 0x34353335, 0x013b3637, 0x26272611, 0x07062127, 0x13110706, 0x68270607, 0x07210527, 0x240a8917, 0x37152313, + 0x20ae8300, 0x186d82a0, 0x250a7b58, 0x0b0b60ab, 0x04850a0a, 0x0a83a020, 0x752b0484, 0x1b008080, 0x80011212, 0x1809090e, 0x270ac458, 0x60750180, + 0x0b0b0a0a, 0x20210484, 0x840a83a0, 0xebfe2104, 0x00232f82, 0x190f0004, 0x24082b37, 0x00410038, 0x1567184a, 0x06072108, 0x079cf018, 0x83363721, + 0x34273401, 0x012f2627, 0x33373607, 0x16011f32, 0x3f32013b, 0x19333601, 0x180c5f33, 0x1807a758, 0x190a7ba1, 0x301a0637, 0x0109016d, 0x05280305, + 0x05083008, 0x0a050328, 0x07986401, 0x57553820, 0x18602007, 0x2108d7a8, 0x361903bd, 0x972b18de, 0x36040109, 0x04360606, 0x49760901, 0x7621074a, + 0x20398786, 0x204b8710, 0x8b008200, 0x003c24eb, 0x9e55004c, 0x6e0320eb, 0x332306e6, 0x49011f16, 0x0631051d, 0x06152307, 0x012f2207, 0x3f343526, + 0x013b2701, 0x85c7181d, 0x1817200b, 0x9a0872a2, 0x076c2bf6, 0x12121b08, 0x09142c01, 0x245b4007, 0x01302b05, 0x6302030c, 0x010f020b, 0xbb4b0828, + 0x0f012205, 0x21faa380, 0x996be5fe, 0x11013605, 0x200f010e, 0x01161722, 0x01010c33, 0x040c052a, 0x207e1e04, 0x052d4c20, 0x010f3022, 0x4e850282, + 0x00000023, 0x0aef4102, 0xff9e3420, 0x2405d243, 0x37011f32, 0x25fe8236, 0x0f141716, 0xfa820601, 0x9a012721, 0x017d36de, 0x191a1111, 0x13070713, + 0x11111a19, 0x0b531201, 0x0111530b, 0x1ac04101, 0x2784da20, 0x12070722, 0x52383985, 0x13520a0a, 0x00040019, 0x01e0ff00, 0x00a001c0, 0x002c0015, + 0x004e0043, 0x19055b4d, 0x2210bd77, 0x69070617, 0x37230922, 0x82272635, 0x2627280f, 0x011d1707, 0x18361716, 0x6c0816e9, 0x062205f2, 0xc0643307, + 0x01002309, 0x64181212, 0x098207f4, 0x1bc0fe2f, 0x4c011212, 0x0f01010b, 0x0742010f, 0x2008880b, 0x09c07a94, 0x8e453020, 0x41a02006, 0x6020089d, + 0x85074846, 0x2352853e, 0xa00c0341, 0x66242983, 0x04020a6e, 0x03230a88, 0x8360400f, 0x83502015, 0x8820203c, 0x840f2041, 0x52a0202a, 0xf38905e7, + 0x49002722, 0x0620f182, 0x0cbd7d18, 0x072eb318, 0x41103c6b, 0x484705a8, 0x2f222108, 0x0cd1a218, 0x011f3624, 0x68184035, 0x098808a5, 0xc0c0fe22, + 0x200f826c, 0xb94e1810, 0x13122808, 0x37131b1c, 0x820c071c, 0x04042a00, 0x10073105, 0x01290c10, 0x18df83a0, 0x460f3ba0, 0xc84608d8, 0xb94e1807, + 0x1c662808, 0x13011213, 0x820c3837, 0x26498341, 0x02030f60, 0x413b2a0b, 0x56240cdb, 0x71006800, 0xd283e998, 0x3b982f19, 0x4311516b, 0x114108a3, + 0x16a03814, 0x13130102, 0x0e111111, 0x07080f0e, 0x02021617, 0x08071716, 0x820e0e0f, 0x13132412, 0x82160201, 0x87122011, 0x8308201f, 0x1616220d, + 0x201f8708, 0x182d8212, 0x200c909e, 0x822f8458, 0x15384125, 0x1e823e20, 0x7c8b3c8c, 0x7c9d5c85, 0xe94fa220, 0x4b20200b, 0xf7180798, 0x6a270bcb, + 0x00007300, 0x6b330713, 0xfb6f0803, 0x012b2105, 0x23291290, 0x0615010f, 0x35272607, 0x071f5627, 0x27013b22, 0x28083b4e, 0x33171615, 0x06012b27, + 0x28118807, 0x3527023b, 0x35303134, 0x050d5236, 0x31141726, 0x07153114, 0x2207a871, 0x454201df, 0x2829078b, 0x01010f28, 0x041c280f, 0x47118728, + 0x2b2405c0, 0x0f020103, 0x27201a82, 0x2205ac72, 0x84130124, 0x16162b1f, 0x110f0123, 0x100d1c05, 0x5a731023, 0x08082c07, 0x0801015a, 0x090d0d09, + 0x829f0108, 0x23368332, 0x0595010f, 0x21073046, 0x11820150, 0x0d8c9020, 0x012b6422, 0x01242883, 0x110b0c1f, 0x20206082, 0x24281c83, 0x5f071a1a, + 0x1e90010f, 0x084b4418, 0x010b052d, 0x09080d01, 0x010d0809, 0x43450b01, 0x00200792, 0x29095b59, 0x00420030, 0x00ad0054, 0x62181300, 0x15210adb, + 0x09747c14, 0x3f323323, 0x059b6d01, 0x0d89aa18, 0x55152321, 0x9718104e, 0x3422127c, 0x4b533137, 0x07062206, 0x07017814, 0x66263521, 0x0626055d, + 0x15070607, 0x06842326, 0x82531e8e, 0x18022007, 0x3a101bda, 0x023d012b, 0x18050aa0, 0x07070a39, 0x0a371603, 0x0316370a, 0x390a0707, 0x890a0518, + 0x01092315, 0x17890901, 0x4210d371, 0x01210b55, 0x2b0d8538, 0x0a0b0117, 0x100b0b10, 0x17010b0a, 0x2407b063, 0x1722110f, 0x890e8216, 0x212b8519, + 0x511858fe, 0x68220d50, 0x8694c001, 0x0a209c95, 0x10881419, 0x8506fe52, 0x85102054, 0x0c352806, 0x12120d21, 0x82090912, 0x210d2304, 0xb373350c, + 0x07172107, 0x15209d83, 0x15201d8d, 0x08213385, 0x22d98ba8, 0x456008a8, 0x002d0673, 0x01400200, 0x00170080, 0x002d001b, 0x05d46700, 0x24059549, + 0x17161716, 0x05ab4921, 0x37033525, 0x18011523, 0x8210b24d, 0x12122339, 0x4c44fe1b, 0x82602009, 0x82802063, 0x59fe2000, 0x7a8506e5, 0x20880120, + 0xa249ff20, 0xfea02408, 0x798080c0, 0x99850795, 0x0af74118, 0x1300bf28, 0x37003300, 0x91874900, 0x7c193620, 0x0625088f, 0x27070607, 0x189b8333, + 0x240ab5c2, 0x1d060722, 0x05d64b01, 0x01241583, 0x01073335, 0x105d5318, 0x1805154a, 0x2a0d3996, 0x180a86e0, 0x18202018, 0x4a850b18, 0xfe21073c, + 0x082d46a0, 0x2024c991, 0x19111101, 0x0d499618, 0x121c2028, 0x11010111, 0xaa4a1c12, 0x050e670c, 0x4182fe20, 0x0120e48f, 0x20083b60, 0x08dd8216, + 0x011f3643, 0x16131716, 0x012b0607, 0x22211527, 0x13372627, 0x01013f36, 0xe013130d, 0x0120020b, 0x800e0a09, 0x0e00ff80, 0x2001090a, 0x01e00b02, + 0xa00c0cba, 0xe0fe0f08, 0xe00b0a0e, 0x0f0a0be0, 0x080e2001, 0x0be367a0, 0x33001427, 0x00003700, 0x0a8a6913, 0x37363526, 0x37151716, 0x02826982, + 0x011f1623, 0x0f845515, 0x35013b23, 0x3d748237, 0x15273313, 0x500f0df2, 0x0f501010, 0x2812100d, 0x02161602, 0x7b101228, 0x0ba81313, 0xca411802, + 0xc0fd2105, 0x23080785, 0x0b021880, 0x4d4d13a8, 0x10125001, 0x480c0c48, 0x0d0f1210, 0x02167a24, 0x247a1602, 0x0e170f0d, 0x0d07800e, 0x4107737c, + 0x052905dd, 0x80070da0, 0x8080c7fe, 0x2e008200, 0xff200002, 0x016002c0, 0x002200c0, 0x79000039, 0x21300536, 0x26273637, 0x1506010f, 0x16011f14, + 0x012f3637, 0x07f3ad18, 0x2f343524, 0x19830701, 0x17211c82, 0x22ad8216, 0x83323317, 0x2f262c1f, 0x12080201, 0x220f0d10, 0x83216dfe, 0x085022b2, + 0x248f8208, 0x01210f0d, 0x200f8892, 0x2abe85b5, 0x0f090a02, 0x0f6060c0, 0x83010909, 0xba0127ba, 0x10120f0d, 0xb7831e1e, 0x0b074825, 0x8f48070b, + 0x85a1200f, 0x0b0f2dc3, 0x0ba0a00b, 0x0ca00f0b, 0x00008008, 0x2025b789, 0x00003700, 0x22b08f13, 0x18161716, 0x220a024a, 0x95173721, 0x8d9820b5, + 0x1f7130ac, 0x02011414, 0x01021616, 0xfe332222, 0x95bb218f, 0x8e9620b2, 0x14012fac, 0x16281f14, 0x28160202, 0x01222233, 0xb0927d1e, 0x0700032e, + 0x3802c0ff, 0x1400c001, 0x40002900, 0xdd18b182, 0xf15b0ca3, 0x93212006, 0x16704114, 0x1842d220, 0x072a4209, 0x91600121, 0x95ff2013, 0x425020c2, + 0x39420b25, 0x20138713, 0x20cc9237, 0xcf5a1800, 0x00bf2209, 0x23cf8212, 0x16070100, 0x1f21c282, 0x080e4201, 0x7141c882, 0x8d012915, 0xa80d0ea1, + 0x92070414, 0x22070142, 0x959a1313, 0x7ab927a3, 0x10800903, 0xf441291a, 0x0d0d2206, 0x188b95a0, 0x37094b77, 0x001f000c, 0x1300002a, 0x34352115, + 0x21232627, 0x15060722, 0x11152317, 0x2005824b, 0x23068315, 0x21233511, 0x28052069, 0x16373635, 0x40010017, 0x065a6809, 0x02181826, 0xe0021616, + 0x18230483, 0x47e8f0fe, 0x01210786, 0x07c24ca0, 0xfe184023, 0x095e5890, 0x18700123, 0x09a54f90, 0x13570020, 0x01402308, 0x878500c0, 0x4a003724, + 0x8d825500, 0x8205a65a, 0x36372e92, 0x023b0733, 0x07061115, 0x23352726, 0x21068315, 0x384c3511, 0x27262208, 0x2629a837, 0x090ec020, 0x8200ff09, + 0x182022ba, 0x20b784d0, 0x20b783a0, 0x079548c0, 0x1f9ea020, 0x83c00121, 0x8220203a, 0x8f602044, 0x0a9256d4, 0x24a3e020, 0x2607fb51, 0x00bf0140, + 0x82330019, 0x005a26f1, 0x006f005e, 0x23f98280, 0x06310726, 0x7d054c73, 0x272505e5, 0x37343526, 0x056d5036, 0x5a063121, 0x6f480581, 0x82342008, + 0x0f262217, 0x1d0f1901, 0x8203200b, 0x20398323, 0xf357183f, 0x37232b0c, 0x17271733, 0x36273723, 0x5d852627, 0x59825383, 0x0e822520, 0x37355487, + 0x27343536, 0x0c0c0d3f, 0x05151505, 0x0c0d0c0c, 0x10050505, 0x22048210, 0x89c2010c, 0x211f890b, 0xda790cad, 0x890c2307, 0x31820405, 0x060c0c27, + 0x0615dc15, 0x3b3b820c, 0x89060504, 0x860ea21d, 0x4c26510e, 0x13077d26, 0x0f0f0b15, 0x0713150b, 0x26010b0b, 0x13850785, 0x04be0129, 0x320c0505, + 0x82323a3a, 0x06042f61, 0x270d0c0b, 0x0d272d2d, 0x06060c0b, 0x0b880b0c, 0x06050522, 0xa3222388, 0xe3461510, 0x10152307, 0x6c82d2fe, 0x05060627, + 0x2d2d0d04, 0x8383820c, 0x2e01307b, 0xb32020db, 0x15835353, 0x2313070b, 0x82232727, 0x19152575, 0x14191d1d, 0x18870887, 0x00002908, 0xff000006, + 0x010002c0, 0x003b00c0, 0x0045003f, 0x004d0049, 0x13000058, 0x16011f36, 0x06071617, 0x07141523, 0x17012b06, 0x07777418, 0x22012b24, 0x04843031, + 0x6c4b3120, 0x83372009, 0x013d3c0a, 0x37262722, 0x13013f36, 0x27330727, 0x27371707, 0x37010f23, 0x27011f27, 0x7e062707, 0x26320533, 0x0ef22327, + 0x040ca00e, 0x130a0504, 0x050e0909, 0x90464520, 0x015f2305, 0xcb18fe01, 0x4522073a, 0x14820520, 0x050a133c, 0xa00c0404, 0x753a3b49, 0x3f3f0575, + 0x0b0e7405, 0x2d6e232e, 0x0f76220b, 0x774e0101, 0xbd012506, 0x07500606, 0x1221ff82, 0x20318250, 0xc28a18c0, 0x210c820c, 0x1a821250, 0xfe500733, + 0xc0313143, 0x1c35351c, 0x1d264353, 0x1d43261d, 0x082c4bf0, 0x83540020, 0xf7b9180b, 0x0089220b, 0xc3eb1800, 0x07142865, 0x07061716, 0x5e230706, + 0xa64c0976, 0x05d66b06, 0x16171628, 0x01200117, 0xeb180e0d, 0xe03551c5, 0x01022002, 0x10221716, 0x0e0d090a, 0x23100909, 0x02011616, 0x08c9521f, + 0x09e64a18, 0x18489021, 0x244ac9eb, 0x170709d0, 0x4a6a8329, 0xa02b0663, 0x23161601, 0x09071729, 0x841b1b29, 0x0000227b, 0x05634900, 0xc001003c, + 0x00002400, 0x16170725, 0x05070607, 0x37262706, 0x36373613, 0x2637011f, 0x98183435, 0x2d080996, 0x22230601, 0x63580127, 0x05040c42, 0x1300ff10, + 0x50060d0e, 0x0d121105, 0x0b0b6341, 0x1c1b165f, 0x60141415, 0x0b0f0f0b, 0x0d4163eb, 0x1b821112, 0x120e0d2a, 0x05110001, 0x63420c04, 0x602a1783, + 0x1c151414, 0x0b5f161b, 0x3b4d000b, 0x2c778305, 0x00360020, 0x0060004b, 0x1d161300, 0xcb791801, 0x1415280f, 0x012f0607, 0x82362726, 0x011f2184, + 0x0a577818, 0x09946d18, 0x94450520, 0x25108905, 0x3b363734, 0x5c562101, 0x18232007, 0x2509e9a4, 0x07590ff1, 0x7e505818, 0x18583207, 0x0f0f5907, + 0x0111c010, 0x10c01101, 0x09092f0f, 0x0727410e, 0x09090e22, 0x09514318, 0x20053543, 0x0ffe64c0, 0x09bb0126, 0x02164812, 0x2f071a51, 0x12481602, + 0x60070909, 0x0a13130a, 0xfb090760, 0x44603585, 0x1f6e1808, 0x6a0d8d0d, 0x802c0613, 0x3400c001, 0x4c003a00, 0x73005e00, 0x270cc552, 0x1f323315, + 0x031d1601, 0x21068d4a, 0x4118012b, 0x2320072f, 0x262a0888, 0x11272627, 0x27353305, 0x97181523, 0x431811ad, 0x464a11a9, 0x5b741805, 0x8300200e, + 0x40012acb, 0x010d0e14, 0x4d131a33, 0x20c28513, 0x072f4f20, 0x08878020, 0x21831020, 0x80a00126, 0x00ff334d, 0x210f9458, 0x2b527001, 0xf1fe2d0f, + 0x0e0e1111, 0x0216a627, 0x27a61602, 0x2006187e, 0x09f14250, 0x69823020, 0x20131a22, 0x1806a661, 0x850fc471, 0x13d02392, 0x4b18604d, 0x461810b1, + 0x01211000, 0x255d8341, 0x16160227, 0x73832702, 0x11115023, 0x125b4150, 0x5b417220, 0xb05e185e, 0x07262209, 0x23018206, 0x17161716, 0x32565a41, + 0x14141fc0, 0x15140201, 0x110c0c11, 0x01021415, 0x411f1414, 0x902a5358, 0x1c131201, 0x16212116, 0x05830d0d, 0x12131c26, 0x00040001, 0x07bf6318, + 0x47004224, 0x70185900, 0x33240ca9, 0x14011f16, 0x4206b05b, 0x5f681ab3, 0x59352007, 0x052409fd, 0x15232733, 0x7105a554, 0xc0420b57, 0x01202e11, + 0xe01b1212, 0x29341225, 0x04013512, 0xf05b191b, 0x11ad4208, 0x240c6953, 0x2b566001, 0xd354182b, 0xb3041908, 0x10b44208, 0x26052460, 0x24021e02, + 0x83020177, 0x4620206a, 0x9e4205f0, 0x8315850f, 0x0e60261c, 0x80200909, 0x22a64260, 0x2e050748, 0x018002e0, 0x004400a0, 0x005b0049, 0x1884006d, + 0x18097dc7, 0x2008c3fe, 0x7e098333, 0xc34f099a, 0x26088408, 0x35363732, 0x5d262734, 0x2328050a, 0x35303526, 0x23272627, 0x05250282, 0x35231733, + 0x10f95503, 0x18059961, 0x200b359d, 0x33951803, 0x4160202e, 0x18440964, 0x066a4117, 0x12120131, 0x3501041b, 0x12342912, 0x2001e025, 0x18562b2b, + 0x201037ed, 0x05434401, 0x0abcc518, 0x9518e320, 0x2255266a, 0x08714105, 0x831c9641, 0x01012ab1, 0x02247701, 0x6060021e, 0x11ad4460, 0x2210be5d, + 0x18342901, 0x1814bac5, 0x6e19ccc2, 0x803b059b, 0x2a00c001, 0x52004900, 0x64005b00, 0x06130000, 0x07063107, 0x1d060715, 0x7a171401, 0x0984071d, + 0x3d261731, 0x31272601, 0x3531033d, 0x27262726, 0x18161517, 0x2007b5d1, 0x069a5e33, 0x84373621, 0x06212d19, 0x17070607, 0x16333736, 0x3723011f, + 0x08f0bd18, 0x07062735, 0x37362726, 0x18c81716, 0x8801100f, 0x08070608, 0x8206327b, 0x5a5b2905, 0x01031d02, 0x5818100f, 0x1625ec82, 0xa0021610, + 0x25058302, 0x0d01021e, 0xf985140e, 0x0e065029, 0x10060e98, 0x56c810e0, 0xb8200702, 0x08087856, 0x1d02c02c, 0x516b1a1d, 0x08400905, 0x25020405, + 0x08042852, 0x05050820, 0x071e1e03, 0x22112108, 0x018e5204, 0x1d1d1a61, 0x21e0b002, 0x3e832b0c, 0x83282821, 0x0c2b2205, 0x084d4321, 0x010e4f27, + 0x31310e01, 0x6c538791, 0xb37e080d, 0x000a3c0a, 0x00270015, 0x004b0039, 0x00740062, 0x13000086, 0x16213736, 0x21070617, 0x89112726, 0x1413230a, + 0x7b183107, 0x13440c0c, 0x32332106, 0x2305c049, 0x35262722, 0x2b06d142, 0x1716013b, 0x07141716, 0x27012b06, 0x06200983, 0x2a06c66c, 0x36373435, + 0x013b3637, 0x91371732, 0x2726234c, 0x20842631, 0x07253186, 0x02160200, 0x21d08350, 0x0583b0fd, 0xd3230b89, 0x541b1213, 0x133909f8, 0x121201b3, + 0x0e13601b, 0x0813141c, 0x09090e56, 0x1508ce01, 0x120e1d14, 0x2d238360, 0x520e0909, 0x05123367, 0x09090101, 0x1d82e00d, 0x30120528, 0x0b600d0c, + 0x448dac0a, 0x1722f122, 0x222a0082, 0x01171622, 0x22161701, 0x7283a801, 0xfe210383, 0x21098730, 0x6d554801, 0x84a0200f, 0x170c2361, 0x66821e16, + 0x171e2025, 0x83090b17, 0x2465828b, 0x0f300e3e, 0x05924311, 0x2f0f1126, 0x8202030e, 0x60203b8f, 0x87078955, 0x068b4b07, 0x34058344, 0x00230011, + 0x004b0034, 0x006f005d, 0x13000083, 0x26312734, 0x404e1827, 0x07352c0a, 0x16311714, 0x3736013b, 0x48263736, 0x0523057b, 0x4e373233, 0x23260506, + 0x17160722, 0xfb6f1716, 0x05ec4d06, 0x82013b21, 0x2637251d, 0x37272627, 0x48184b91, 0x15210b99, 0x773a8214, 0x6118096d, 0x7541091e, 0x27f2820f, + 0x14140756, 0x60130e1c, 0xce21db84, 0x83ef8252, 0x12602ffe, 0x15141d0e, 0x0b0a6708, 0x300c0d60, 0x28820512, 0x090de028, 0x05010109, 0x75413312, + 0x066f4110, 0x21057d41, 0x7c56defe, 0xc0fd210d, 0x1805f345, 0x200bc650, 0x242282a0, 0x0c17161e, 0x07014609, 0x09297c83, 0x1e17170b, 0x0e03023e, + 0x0975412f, 0x410e3021, 0x97182173, 0x00200d9a, 0x09a7d218, 0x15000a35, 0x2b002000, 0x54003d00, 0x76006600, 0x97008500, 0x18130000, 0x53091e4d, + 0x272207db, 0x766e0726, 0x0f262605, 0x21170601, 0x9c711816, 0x09704808, 0x2107b541, 0x4c440607, 0x27342205, 0x05736b26, 0x22072225, 0x18070607, + 0x240cd4f3, 0x16171415, 0x20148217, 0x062f4e31, 0x26373625, 0x8205012b, 0x41318205, 0x332006d5, 0x0721308c, 0x25308216, 0x0e111129, 0x0484480e, + 0x482e0226, 0x11110e0e, 0xfd210484, 0x820886b0, 0x5002210d, 0xfe212389, 0x0f8b42e9, 0x02046c35, 0x0216b016, 0x10010104, 0x50060626, 0x01010606, + 0x47240e28, 0x25080789, 0x0e0e0d15, 0x161b150d, 0x02010f0f, 0x11063819, 0x0e0b1911, 0x19700146, 0x0f0f0102, 0x0b0e4616, 0x06111119, 0x744a3538, + 0x88b92010, 0x85482088, 0x2181839b, 0xa9870efe, 0x9f870d83, 0xe041f920, 0x319c830b, 0x160d0b50, 0x0d160202, 0x2302020b, 0x01010108, 0x0d482509, + 0x83202010, 0x0219297d, 0x0a13131a, 0x19025006, 0x06249d83, 0x1a13130a, 0x00212890, 0x0aeb4400, 0x2b00152f, 0x4c003d00, 0x6e005b00, 0x92008000, + 0x06154600, 0x22057969, 0x5d363736, 0x072006a5, 0x093cda18, 0x71141121, 0xc76408be, 0x14152408, 0x83171617, 0x05d54f2d, 0x410a8243, 0x80430caa, + 0x17162909, 0x34373633, 0x37272627, 0x49100a65, 0x60201158, 0x2107d048, 0x0987c001, 0x2040fe26, 0x010e0909, 0x2906bd56, 0x090e40fe, 0x0d01a009, + 0x9a41140e, 0x0e142405, 0x4180010d, 0x1626099a, 0x01010f0f, 0x9f41386d, 0x0659270c, 0x06065006, 0xe8410f29, 0x290f2206, 0x0f124c8c, 0x1442c020, + 0xc001260f, 0x291b1b01, 0x6b8388fe, 0x60200528, 0x1805a143, 0x20086d48, 0xe7691840, 0x41852010, 0x01240694, 0x1b160f0f, 0x240a9841, 0x0901012f, + 0x07d74126, 0x71092622, 0x200f3042, 0x0f044250, 0x8f430020, 0x00103a0a, 0x00320022, 0x00540041, 0x00780066, 0x009a0089, 0x130000ab, 0x26373633, + 0x05237227, 0x36171623, 0xcc551837, 0x234b430d, 0x41262321, 0x386510a3, 0x41272011, 0x3f230fb3, 0x84153301, 0x8334206f, 0x0706243d, 0x60011716, + 0x142005ba, 0x080e9f18, 0x15832120, 0x3732333a, 0x26013d36, 0x15070627, 0x16583023, 0x68160202, 0x0209090e, 0x80021616, 0x222c5b43, 0x41290f59, + 0x9a430dbe, 0xd3d71808, 0x47122009, 0x12230b12, 0x83587801, 0x09092366, 0x7683680e, 0x8b38fe21, 0x0158220d, 0x228b8bc8, 0x8c900158, 0x10174a1d, + 0x21176943, 0xd1410926, 0x1077430b, 0x50422020, 0x4190200f, 0xfe210c02, 0x8c0e8c60, 0x05ef6382, 0x28059753, 0x002000a0, 0x00370025, 0x7d301946, + 0x1523250f, 0x17140706, 0x29059148, 0x26272211, 0x33151735, 0x1f742335, 0x09002520, 0x40400e09, 0x2f060350, 0x1c0f011f, 0x1b1b2933, 0x09090e01, + 0x01404060, 0x7410887d, 0x28190f0b, 0xab25098e, 0x2126392c, 0x05426e27, 0x53822020, 0x60602023, 0x13806cfe, 0x0eb69318, 0x2c06fb4e, 0x00a00100, + 0x00350030, 0x00890077, 0x69e21892, 0x1133210a, 0x2d051a5c, 0x31343734, 0x27262726, 0x37363736, 0x17493530, 0x4c352005, 0x2b31065f, 0x33351703, + 0x16172315, 0x07163117, 0x37161706, 0x440a8236, 0x0982058f, 0x27363723, 0x44348226, 0x09820588, 0x07262723, 0x48488206, 0x0982053d, 0x024f3183, + 0x5d372006, 0x17201011, 0x4c07c94a, 0x1b240735, 0x1c2c291b, 0x2308cb5f, 0x04041010, 0x2005ff43, 0x33008440, 0x07081678, 0x110e0e0e, 0x12121111, + 0x16160202, 0x12120202, 0x12820c82, 0x02610720, 0x211f9705, 0x1f85080f, 0x4d856820, 0x71610585, 0x05414c0a, 0x29e0fe29, 0x01011b1b, 0x1811161f, + 0x27082b54, 0x17161101, 0x72030311, 0xa0232085, 0x87b86060, 0x97528772, 0x960e2072, 0x091c7692, 0x87618582, 0x09434c0a, 0x67000a2f, 0x82007900, + 0x00008d00, 0x26273601, 0x5121190f, 0x34372c3e, 0x36353431, 0x37272637, 0x84171617, 0x21548407, 0x21190726, 0x13200a4d, 0x102b5218, 0x614c3520, + 0x07062105, 0x0bad0719, 0x3a732119, 0x012e242d, 0x201a1818, 0x2b0b090c, 0x19060746, 0x20126b21, 0x20fb75be, 0x3e8c2119, 0x01072228, 0x28320101, + 0x8482030d, 0x0b350725, 0x192e0506, 0x21118b21, 0x4a6e1bfe, 0x00022524, 0x01c0ff00, 0x00230182, 0x1848003f, 0x210c9d81, 0x8d53021d, 0x095e7807, + 0x36231188, 0x18373637, 0x210d4c42, 0xa3472623, 0x07063d05, 0x37361716, 0x1b1b01e0, 0x1a262629, 0x27010119, 0x263a3a26, 0x0b0c0127, 0x0c0b1111, + 0x8c083a47, 0x29202315, 0x4a451b1b, 0x16022405, 0x47010216, 0x192505c5, 0x1056261a, 0x833a83b8, 0x82502042, 0x2042823c, 0x07b645a8, 0x188ea820, + 0x7083b820, 0x0b640820, 0xaf731809, 0x00132809, 0x00400027, 0x44720059, 0x9b4b0b2b, 0x18112009, 0x89081d43, 0x7c272013, 0x2f210c49, 0x059e5e01, + 0x07262723, 0x795f1821, 0x27362611, 0x27010f26, 0x44319733, 0xcb74060d, 0x2c0f890f, 0x370e0e19, 0x110e0e37, 0x11373711, 0x210b8b11, 0x0f8d0201, + 0xbe201b89, 0xa0203298, 0x200bc758, 0x5aa418fe, 0x91f9200c, 0x93468561, 0x9719837b, 0x0000212f, 0x26053342, 0x00c00140, 0x184b0011, 0x2013d390, + 0x7a591803, 0x05ab5d14, 0x09f05b18, 0x18272621, 0x250b976a, 0x16170607, 0x0463013b, 0x18882010, 0x080c1569, 0x05081223, 0x1d1f0204, 0x0b0c0d08, + 0x0701020b, 0x3a3a253b, 0x01083a25, 0x0c0b0b02, 0x1f1c090d, 0x08050402, 0x285e1812, 0xb0fe2111, 0x0ec4c918, 0xc9185020, 0xe3831ff4, 0xc0ff1024, + 0xe3876f01, 0x11f24a18, 0x72180720, 0x012c2d72, 0x23060706, 0x31222722, 0x00012722, 0x230fae49, 0x13162567, 0x0c26d382, 0x0703020b, 0x7c181c14, + 0xf985077c, 0x121d2c25, 0x82020307, 0x080c29df, 0x191a1112, 0x0111131f, 0x95180082, 0x2948083e, 0x0d692307, 0x3e831e20, 0x1d244683, 0xfdfe1529, + 0x0dd82119, 0x16020128, 0x0d0c1b2b, 0x4b82080c, 0x1a1b0c27, 0x01060e0e, 0xb3621800, 0x001d260a, 0x00330021, 0x08ff4342, 0x2005a653, 0x93131915, + 0x57c01812, 0xcc681812, 0x74bf180e, 0x5bc0181c, 0x10254810, 0x19078c63, 0x48128313, 0x04252323, 0xc0ff0000, 0x0bc21802, 0xa24c2009, 0x65c018d3, + 0x08f14312, 0x9c0fd743, 0x019f18dd, 0x4c631810, 0x9a802019, 0x110574e7, 0x19306318, 0xef820520, 0x8002c12e, 0x1100c001, 0x46002200, 0x62005000, + 0x3324f182, 0x06071415, 0x153b0184, 0x31303130, 0x33211123, 0x012f2311, 0x27012b26, 0x37362334, 0x13013d36, 0x4d331723, 0x911809b4, 0x21200868, + 0x23099e43, 0x012b1733, 0x35243c83, 0x03173734, 0x3c0fc74b, 0x10e04037, 0x1b2e1c10, 0x0140011a, 0x0344e020, 0x47170e4c, 0x13220129, 0x2b2e4914, + 0x07a345aa, 0x4b53fd20, 0x04012208, 0x07df4221, 0x284a5427, 0x45054a9f, 0x0f444d4a, 0x18800121, 0x3009305f, 0xc0fe4001, 0x3f115b04, 0x23231701, + 0xc0fe0a29, 0x212c8340, 0x75186001, 0xa020082d, 0x32200983, 0x2607ee42, 0x0f4a307e, 0x5901670e, 0x0b5c10bb, 0x0051220a, 0x05935d00, 0x74731620, + 0x82142005, 0x33162606, 0x37363732, 0x1a766836, 0x27822089, 0x82163721, 0x181d2033, 0x220886ac, 0x6c200103, 0x2e370734, 0x1f111202, 0x06080806, + 0x0212111f, 0x2222012e, 0x22223333, 0x831f1901, 0x241b8e05, 0x1818100f, 0xb4561810, 0xa47a1807, 0x100d2f09, 0x1e1f1636, 0x1d05051d, 0x36161f1e, + 0x39830d10, 0x16214783, 0x8f05830e, 0x8341831d, 0xc820217b, 0x2505e343, 0x008020c8, 0xbf580200, 0x002c2e08, 0x25000031, 0x0706011d, 0x012b0706, + 0xda1f1921, 0x5c352008, 0x27220538, 0x035d2726, 0x36372505, 0x05173233, 0x152ed582, 0x15253507, 0x01800221, 0x50140e0d, 0xa74bfe40, 0x80012306, + 0x5f82a0fe, 0x090f1e3c, 0x1924080a, 0x292a2424, 0x19460125, 0xfec00e0e, 0x954001c0, 0x0e148005, 0xa144010d, 0x82302005, 0x05753606, 0x0f0b0b03, + 0x212f0b0e, 0xa4121213, 0x1b17170c, 0x49391005, 0x06634400, 0x01c00131, 0x003c00c0, 0x00640052, 0x13000076, 0x71010f22, 0x372e05f5, 0x011f1621, + 0x2f060716, 0x012b2601, 0x9c413315, 0x82172006, 0x23072911, 0x23012f22, 0x012b0607, 0x3f20ae82, 0x14750482, 0x23352205, 0xce431817, 0x34172414, + 0x18263127, 0x2308327e, 0x35363732, 0x11d9aa18, 0x0c135730, 0x1012100d, 0x2a1b0d0c, 0x1b2a1201, 0x0c840c0d, 0x71132408, 0x1b1b2928, 0x42230201, + 0x08020305, 0x37090d28, 0x0d093780, 0x03020828, 0x02234205, 0x291b1b01, 0x18497128, 0x590dd343, 0xfc85063b, 0x8506d44f, 0x90012421, 0x8310100f, + 0x01202b57, 0x13102001, 0x10100c0f, 0x4383300f, 0x1c2fa02c, 0x06060642, 0x37370901, 0x08820109, 0x2f1c4223, 0x217683a0, 0x45827030, 0x83062248, + 0x06a55006, 0x1398c118, 0x2f080365, 0x00c00100, 0x00250021, 0x07061300, 0x15011f06, 0x6f18f687, 0xf3620b97, 0x27172905, 0x15200721, 0xd70e0709, + 0x2006b34d, 0x34ad8660, 0x070ed740, 0x40fe1509, 0x260193e0, 0x01c00193, 0xd6101313, 0x0b3a48b3, 0x10d6b328, 0xd3011313, 0x43439393, 0x002a270a, + 0x1d160100, 0xa8181101, 0x32230b88, 0x19053517, 0x290ea82b, 0x3736013d, 0x01173625, 0x89180df3, 0x11230b59, 0x8d00ff0f, 0x16012c0f, 0x0d0f4001, + 0x100aba01, 0x6af8fe48, 0x078307c6, 0x4d920523, 0x260f8cd0, 0x0817489d, 0x6d090460, 0x022006df, 0x1a22ff83, 0x91182c00, 0x19521ccb, 0xbc911811, + 0xde481819, 0xb1911810, 0x4b902018, 0x002e0f51, 0x00010000, 0x02e0ff00, 0x00950100, 0xb618001e, 0x3620077f, 0x1805f258, 0x271077b6, 0x100cb430, + 0x2fb40c10, 0x1447b618, 0x0ba99427, 0x412ca90b, 0x17b61806, 0x82002014, 0xff182667, 0x012802c0, 0x236783c0, 0x06272601, 0x10f04618, 0x0805a64a, + 0x01022f41, 0x1314093d, 0x1390400a, 0x680e0606, 0x100f0219, 0x11818012, 0x18031010, 0x07050d68, 0x01409013, 0x010111ae, 0x03168411, 0x670e1312, + 0x0b0c1392, 0x09444409, 0x92130c0b, 0x12130e67, 0x41841603, 0x01210667, 0x226b82c0, 0x82250011, 0x10514dd5, 0x18056655, 0x2408d37e, 0x27262726, + 0xc3901923, 0x25363908, 0x24010124, 0x4b2e3625, 0x09023233, 0x84010d08, 0x0209080d, 0x5c4b3332, 0x101ab818, 0x16833020, 0x25821d82, 0x00202c83, + 0x09200082, 0x32064f41, 0x001500a0, 0x002f0022, 0x0049003c, 0x00630056, 0x5e8e0078, 0x11210ce7, 0x6b848206, 0x132005f7, 0x790b0479, 0x25200c1e, + 0x481819b2, 0x75441403, 0x01002215, 0xb7521912, 0x27098208, 0x121b80fe, 0x01300112, 0x2405ca7d, 0x01010f20, 0x08367770, 0x90fe2022, 0xff2117ad, + 0x38481800, 0x4420200d, 0xdc570d83, 0x0b967209, 0x18f0fe21, 0x1914a484, 0x2020220f, 0x189b8910, 0x200eb7ce, 0x0eda61a0, 0x574d0020, 0x01003505, + 0x000400a0, 0x000e0009, 0x00290013, 0x23150100, 0x011d3335, 0x27200482, 0x15220382, 0x0f823307, 0xc3731120, 0xc0012214, 0x200082a0, 0x210382e0, + 0xba4aa0a0, 0x09b04b07, 0x0180fe29, 0xc0808060, 0x84408080, 0x05284b02, 0x220f7773, 0x420a0000, 0x1a240a23, 0x24001f00, 0x2e298382, 0x38003300, + 0x42003d00, 0x16975600, 0x93821720, 0x82023b21, 0x219c8304, 0x05840533, 0x07201287, 0x40201b8c, 0x58339893, 0x58385858, 0x5858f058, 0x585880fe, + 0x405858e8, 0x87d05858, 0x15e67212, 0x00854020, 0x068c8020, 0x96070021, 0x16e575bb, 0x3315332a, 0x01292335, 0x05352115, 0x80420992, 0x266f8214, + 0x00ff8001, 0x82fe0001, 0x42098f7a, 0x32821537, 0xa7844020, 0x3a820484, 0x20002033, 0x6001e001, 0x00001900, 0x31151601, 0x06010714, 0x05fd7723, + 0x33363725, 0x83011f32, 0x01172d05, 0xff0909d7, 0x0d0d0a00, 0x0909800a, 0x69210683, 0x210583e9, 0x05835701, 0x0900ff24, 0x08838009, 0x6a090925, + 0x820909ea, 0x82002053, 0x82402053, 0x82292053, 0x35362353, 0x5f193431, 0x6c5b0fe7, 0x05587205, 0x3732332a, 0x2f343536, 0x37013701, 0x69205a86, + 0x6a204b86, 0x01210f8f, 0x87199729, 0x18002029, 0x220923fe, 0x4633001a, 0x3b771d37, 0x2372180b, 0x193e460b, 0x1602e82a, 0x16400216, 0x40160202, + 0x42460989, 0x8e582018, 0x20328428, 0x0cdb4700, 0x25001a22, 0x2520a39c, 0x99091069, 0xe8fe2195, 0x90206883, 0x8c980484, 0x7d831820, 0x7f840383, + 0xd0ff102a, 0xc001f001, 0x49001300, 0x0db56b18, 0x57161721, 0x0720058d, 0x0a1bc718, 0x16150622, 0x29093955, 0x26273437, 0x06072627, 0x13840607, + 0x11481620, 0x37342308, 0x9e183736, 0x32080d01, 0x01010a90, 0x0d0d0908, 0x1717290a, 0x36202001, 0x36434336, 0x01202036, 0x0a281817, 0x08090d0d, + 0x1e0a0101, 0x32021111, 0x324b4b31, 0x11110231, 0x44a0011d, 0xe02005f8, 0x59200686, 0x0b203c83, 0x22234482, 0x8538302f, 0x2347853b, 0x222f3038, + 0x0b203e83, 0x18274682, 0x4b292323, 0x83023231, 0x23292347, 0xdf821823, 0x09734f18, 0x27001328, 0x4e003a00, 0xe5826100, 0x3117322a, 0x14111516, + 0x22230607, 0x07644c18, 0x13930720, 0x3223228d, 0x84151617, 0x7b1d2026, 0xea820905, 0x18073321, 0x2011ff47, 0x0cae6302, 0x23090257, 0x600e0909, + 0x730b7049, 0x198c0c35, 0x115b4c18, 0xfe201e83, 0x01273086, 0x09090e60, 0x4100ff80, 0xd367051d, 0x67402007, 0xd4180dfb, 0x00290ecd, 0xff0e0002, + 0x01f101c0, 0x052d4ec0, 0x0f160124, 0xba821601, 0x0716172a, 0x06010f06, 0x012f0607, 0x23290785, 0x2f262722, 0x07272601, 0x26078506, 0x26013f26, + 0x6b373435, 0x362705a9, 0x011f3637, 0x82013f36, 0x32332907, 0x011f1617, 0x36371716, 0x7d490785, 0xf0260812, 0x022c0a04, 0x040a2c02, 0x0a050907, + 0x380e0a0c, 0x040c1814, 0x1616140f, 0x0c040e15, 0x0e381418, 0x05090d0a, 0x258a0709, 0x940d0921, 0x040a2425, 0x4af00709, 0x77820b1e, 0x01222c08, + 0x280a0e19, 0x0c0d0d0c, 0x120e0a28, 0x0f100811, 0x1012040b, 0x030e3a09, 0x0e030404, 0x1210093a, 0x100f0b04, 0x0f111108, 0x8e0d270a, 0x390a2125, + 0x39212585, 0x2125870a, 0x5e60a912, 0x73002012, 0x4a3d09bb, 0x06250000, 0x07063107, 0x1d061723, 0x06071401, 0x2322012b, 0x22022b22, 0x023d2627, + 0x06145b34, 0x20e3b318, 0x16051737, 0x01400207, 0x200d0909, 0x0b0c0101, 0x01021011, 0x18210202, 0xf4321911, 0xc0b3180c, 0x00012c15, 0x0dc0010c, + 0xa0010909, 0x55100404, 0x18200516, 0x1806e04b, 0x22159cb3, 0x450e0ae1, 0x29260c03, 0x26050000, 0xa9773127, 0x05ca5508, 0x22054c6c, 0x73030706, + 0x352a0885, 0x07062726, 0x39480001, 0xa619223a, 0x222f0ede, 0x48393a22, 0x13600b18, 0x55120b0e, 0x82161602, 0x921284c9, 0x88882e2a, 0x0b40070d, + 0x390e1312, 0x0202167b, 0x07eb4416, 0x3282e020, 0x2e00a024, 0x4b184100, 0x36261a67, 0x34373637, 0x4b180327, 0x01212165, 0x3a4b1800, 0xa74e1811, + 0x394b1808, 0xa0012115, 0x121b4b18, 0x0a894e18, 0x161a4b18, 0x0a674918, 0x40002322, 0x200e2945, 0x06824e27, 0x18011f21, 0x200ee482, 0x70da1803, + 0x83212009, 0x823520d4, 0x232727d2, 0x22230607, 0x9f18012f, 0x584e0afd, 0x46492006, 0x802005d0, 0x210a5947, 0x9348e049, 0x2e652911, 0x131a1914, + 0x7001662d, 0x44086563, 0xf3210614, 0x05fa464a, 0x82478020, 0xf34a2708, 0x1201c0fe, 0xac191b12, 0x2d240d0c, 0x682d1313, 0x4c0c0346, 0xa03105cb, + 0x2c001b00, 0x22130000, 0x0f063107, 0x011d0601, 0x314a1816, 0x34352307, 0xbb82012f, 0x15212325, 0x83231721, 0x2307221b, 0x28118326, 0x17793723, + 0x39061110, 0x09114b02, 0x06390231, 0xfe171011, 0x300e01f2, 0x0e091433, 0x84781409, 0x30332a05, 0x0d0ea001, 0x0808e316, 0x2dd2875c, 0xe308085c, + 0x400e0d16, 0x1c1101c0, 0x04840111, 0x0100c02c, 0xe0ff2000, 0xa001f001, 0x21424000, 0x9b531806, 0x05ba5e0d, 0x46077746, 0x5a180779, 0x222008cc, + 0x2006d245, 0x05af4834, 0x32820122, 0x45052145, 0x12220981, 0x0082392c, 0x0f2c2c26, 0x2c0f0e0e, 0x0a2b0b85, 0x0d0d090a, 0x4040310a, 0x832f2f31, + 0x46112005, 0x38860abb, 0x8b113321, 0x830b8530, 0x09092134, 0x2f273285, 0x0000112f, 0x86100002, 0x003526bb, 0x37000070, 0x4f848536, 0x012b08a8, + 0x39303130, 0x36373201, 0x4234013d, 0x1d200533, 0x099fc418, 0x81530620, 0x06072106, 0x14220182, 0x72521407, 0x17012509, 0x16171631, 0x37214d83, + 0x23f88936, 0x31272223, 0x0acc4419, 0x06232226, 0x1a0c6923, 0xf397be84, 0x19102521, 0x24073249, 0x06060842, 0x06c65102, 0x89061041, 0x26458e1c, + 0x02030202, 0x821a22f5, 0x08b846e1, 0x250e1441, 0x0c0d2e25, 0x5b83050b, 0x06035625, 0x82010806, 0x8a219830, 0x00012148, 0x2208bf65, 0x67a00140, + 0x56240851, 0x6c006100, 0x5117f34d, 0x667c11de, 0x11047f11, 0x3a493720, 0x94152009, 0x0100250a, 0x011b1212, 0x7a08cf61, 0xb54705df, 0x0cfc510c, + 0x250cdc47, 0x02021660, 0x0498e016, 0x7215794b, 0x688c0c78, 0x200c5f65, 0x07a543f8, 0x08906020, 0xaf4f0020, 0x000b310b, 0x1300002b, 0x26353315, + 0x06272627, 0x010f0607, 0x0ad2f918, 0x08274118, 0x48182120, 0x90280965, 0x171601a0, 0x16172222, 0x09764c18, 0x97431020, 0x41fe2007, 0x10230807, + 0x18303001, 0x20081292, 0x08e55630, 0x18013021, 0x4610f3ad, 0x12220a67, 0x8b825500, 0x2d113949, 0x31072213, 0x36112306, 0x32171637, 0x7c5f3331, + 0x36372f06, 0x36313033, 0x17360139, 0x06111716, 0xab822707, 0x03392329, 0x30073023, 0x56310623, 0x262305c9, 0x84313027, 0x015118d5, 0x02293d0c, + 0x28030202, 0x01283730, 0x2a262901, 0x03080f1f, 0x01010102, 0x010f1010, 0x0a0e1101, 0x01300c84, 0x0c050301, 0x36392914, 0x25210123, 0xa0012b2c, + 0x0ca95518, 0x0e090924, 0x3282d1fe, 0x010d432a, 0x010e0e03, 0x04060c02, 0x012b0d82, 0x120a0808, 0x0a1300ff, 0x8304151d, 0x06022b0f, 0x03021006, + 0x010d010e, 0xf3510d02, 0x00a02608, 0x01000039, 0x21ce8206, 0xbc543607, 0x05546107, 0x36023d23, 0x07335637, 0x5d171621, 0x14830a49, 0x26173222, + 0x0126c782, 0x39395100, 0x386c0e0b, 0x17222408, 0x47010116, 0x16220b44, 0xf0562217, 0x0e102c07, 0x5139390b, 0x33027001, 0x18064f32, 0x20085cab, + 0x22218201, 0x47303010, 0x30220b73, 0x47841030, 0x140e0d23, 0x243c8380, 0x33324f06, 0x28af8502, 0xa0014001, 0x00001600, 0x2e7c8201, 0x0623010f, + 0x15070607, 0x17161716, 0x82161733, 0x821120aa, 0x1312241e, 0x4144870f, 0x443107fc, 0x12130f87, 0x14800101, 0x780d0809, 0x1b121201, 0x27198340, + 0x09080d78, 0x00800114, 0x22057342, 0x84c001e0, 0x82272053, 0x17162255, 0x22528211, 0x4223012f, 0x3725095b, 0x16011f36, 0x21158217, 0x61822627, + 0x37241782, 0x2d011736, 0x68905482, 0x0221702c, 0x0f132102, 0x01110f0c, 0x06821101, 0x9d011325, 0x91fe1409, 0x1b932c7b, 0x0c1c2f2f, 0x0e101210, + 0x820e1717, 0x560c2006, 0xdb32055f, 0xa5018002, 0x2f001900, 0x57004000, 0x16010000, 0x77843117, 0x84060721, 0x35362379, 0x7d852734, 0x19830720, + 0x8a051a59, 0x05467593, 0x2720108a, 0x172bcc94, 0x1c311602, 0x1c01011c, 0x8213311c, 0x182921a3, 0x29200082, 0x13230882, 0x8213213d, 0x12212800, + 0x33100c10, 0x82330202, 0x3c122106, 0x7020d08f, 0x0135f693, 0x3a39289f, 0x393a4444, 0x12100c29, 0x30302110, 0x30303939, 0x310a8221, 0x261b4b0c, + 0x272d2d27, 0x0f0c1b26, 0x462a0f13, 0x06822a46, 0xfd8e1482, 0x24419220, 0x19002014, 0x310a13aa, 0x001a0015, 0x00350030, 0x004f004a, 0x00590054, + 0x1d510069, 0xb3851806, 0x1517240f, 0x53333523, 0x1a9405d6, 0x158f1320, 0x2c820620, 0x82331721, 0x15132635, 0x33233533, 0x20058223, 0x2a0d8227, + 0x33011d23, 0x33153335, 0x7223023d, 0xb75908cf, 0x50602208, 0x09f36640, 0x8020158c, 0x8808a576, 0x40402608, 0x20202040, 0x22038260, 0x82406040, + 0xa0012107, 0xc0202394, 0x01211594, 0x435e8910, 0x40230844, 0x82a0fe40, 0x8220204e, 0x60602304, 0x5e822060, 0x00000023, 0x088f5106, 0x17000c3a, + 0x31002400, 0x49003e00, 0x06130000, 0x17161107, 0x11373633, 0x33232726, 0x0b840c84, 0x178c0a85, 0x17200c86, 0x06222f89, 0x0c822707, 0x06222f84, + 0x6a181807, 0x582009ff, 0x20072d7b, 0x20138948, 0x200a8960, 0x1e6b18a8, 0x7c402009, 0x0223090c, 0x8370fe16, 0x90012723, 0x0f010216, 0x438360fe, + 0x0fa00123, 0x8b178b01, 0x8918200b, 0x1602222e, 0x232f8908, 0x02000f01, 0xea22eb82, 0x6347b501, 0x13002306, 0xa94a1415, 0x012f2209, 0x050b6d26, + 0x11a6d218, 0xb0130032, 0x14191a13, 0xb0121286, 0x14951b13, 0x70010d0e, 0x0c6dac18, 0x1a967022, 0x13212182, 0x25248386, 0x0d0113b0, 0xc04e140e, + 0x0000220c, 0x08634103, 0x2a00142c, 0x00003c00, 0x15161701, 0x045a0f14, 0x34352106, 0x372a7b82, 0x35051736, 0x37363736, 0x1a193233, 0x178209d0, + 0xd6473520, 0x59013311, 0x70272780, 0x0e0e1111, 0x80191970, 0x11110e0e, 0x7483a7fe, 0xa8218582, 0x22858513, 0x189013a8, 0x260ccc43, 0x362a8199, + 0x83712a36, 0x1b71252b, 0x811b2323, 0xbf213d83, 0x21ca8396, 0xdb86a813, 0x56200782, 0xbb5ad68b, 0x0020240c, 0x5437002c, 0x33200f5b, 0x8308b472, + 0x34112908, 0x012b2627, 0x15211121, 0x1908725b, 0x2a0a8d43, 0x17163317, 0x26230706, 0x6a373627, 0x202009a3, 0x240c3f48, 0x01e0fe20, 0x07c94f00, + 0x0f012025, 0x84010fc0, 0x87102004, 0x0f012108, 0x850b576a, 0x824020e0, 0x40012106, 0xfe21b782, 0x06164780, 0x3683f020, 0x30200383, 0x36074342, + 0x00000100, 0x8001c0ff, 0x1500c001, 0x11130000, 0x3f321716, 0x42161701, 0x263605b7, 0x07062127, 0x02000706, 0x9a060816, 0x1608069a, 0x0e0d0102, + 0xb95dfe14, 0xfe902c05, 0x04021648, 0x02046c6c, 0x43b80116, 0xab180747, 0x13260b57, 0x3c001b00, 0x55444500, 0x35333408, 0x33151733, 0x012f3435, + 0x01012b26, 0x3d21011d, 0x52172102, 0x4d18053d, 0xc74b08f3, 0x4c152005, 0x27390953, 0x37362726, 0x07061716, 0x12121b80, 0x1de34001, 0x131d1340, + 0x0001e31a, 0x21b982ff, 0x1a6f2040, 0x055d5706, 0x2026ee82, 0x1b121201, 0x2b830001, 0xf94c1020, 0x83c02008, 0x60602514, 0x1a43431d, 0xfe273c82, + 0x404020a0, 0x82201010, 0x05606f2d, 0x60203182, 0x40204782, 0x2007dd46, 0x08306740, 0x00820020, 0x9f420220, 0x001c2208, 0x21cb822e, 0xea182307, + 0xa68213e3, 0xe0181782, 0x95201190, 0x1a9d6e19, 0x60756b20, 0x7f01210f, 0x19776e19, 0x18c1fe21, 0x84128ba4, 0xc001279b, 0x2f00a001, 0x9b823300, + 0x06272624, 0x494c0307, 0x37322b09, 0x27343536, 0x37012b26, 0x15921733, 0x2317032b, 0x09fe1737, 0x88091515, 0x05dc421a, 0x06856020, 0xa0120224, + 0x118c0212, 0x1a881a2d, 0x01383870, 0x0101148b, 0x4395fe14, 0x30200b3e, 0x0c86d518, 0xfb6b0124, 0xd3439595, 0x80012106, 0x29249782, 0x43003600, + 0x7208616a, 0x05820581, 0x07061532, 0x022b0706, 0x35262722, 0x3b363734, 0x23013d01, 0x17200b83, 0x24084c5a, 0x07331523, 0xb7741815, 0x012b2208, + 0x32738200, 0x36801030, 0x01012425, 0x11111c1d, 0x36252401, 0x853010a0, 0x101021a4, 0x044f0782, 0x70702308, 0xca419070, 0x70202307, 0x1b828001, + 0x30252d83, 0x1d1d1122, 0x85408323, 0xa0a021be, 0xa0200782, 0x22076c63, 0x87804080, 0x8f58190a, 0x1829200c, 0x20110bb9, 0x0ab17e03, 0x1320bf87, + 0x8020be84, 0x09a16118, 0x50853b21, 0xb45d0623, 0x840f8506, 0x207e858c, 0x0cdc4bfe, 0x82400121, 0x00002e15, 0xff000002, 0x014002e0, 0x003600a0, + 0x5e79825a, 0x254308ce, 0x18332005, 0x2108f89c, 0xdb41013b, 0x18112008, 0x310af65f, 0x2b262734, 0x23260502, 0x010f2231, 0x17161706, 0xa5191533, + 0x23270e8e, 0x37363335, 0x44012f36, 0x4020095b, 0x7a0d3b5a, 0x8e82079a, 0x01808023, 0x601a19d7, 0x15202209, 0x7fa51909, 0x09072308, 0x0f852015, + 0x025a0120, 0x8f20200a, 0x415986d2, 0x09240508, 0x13131040, 0x19054d5e, 0x2607e11a, 0x131301c0, 0x4a004010, 0xf7950c2f, 0x8909c65e, 0x8f3520f7, + 0x06032af7, 0x1f143115, 0x36371601, 0x341b8237, 0x3f161716, 0x34353601, 0x0726012f, 0x23150706, 0x26272635, 0x21f78a0f, 0xe0421080, 0x6710200c, + 0xc023090e, 0x980917c0, 0x67f08cad, 0x80200c42, 0xfe21ee8a, 0x153841b7, 0x41080821, 0x00200738, 0x0aef4d18, 0x2700132f, 0x4f003b00, 0x14010000, + 0x2b063107, 0x08154301, 0x16173224, 0x13921115, 0x45712520, 0x08447109, 0x23203b84, 0x20085d46, 0x243b8321, 0x09092001, 0x071b570e, 0x0d8aee85, + 0x82e0fe21, 0x0791421d, 0x8280fe21, 0x054d561f, 0x8308e261, 0x0c754e11, 0x4700ff21, 0x1a9a0b03, 0x00820020, 0x00000429, 0xc001e0ff, 0x8900a001, + 0x273423df, 0xdf822631, 0x200a3975, 0x059c6135, 0x85222121, 0x21332a13, 0x35363732, 0x31171401, 0x180a8516, 0x20083845, 0x213b9225, 0x65186001, + 0x0e830d12, 0x0cb0b418, 0x9040fe21, 0x43328ee2, 0x525d0a91, 0x9ae58509, 0x41df97ed, 0xbf4112ab, 0x41c0203c, 0xdc911cbf, 0x00412f83, 0x9ade8d0c, + 0x971a8dd1, 0x273424df, 0x41232631, 0x11200dab, 0x25201392, 0x2012bf41, 0x42279201, 0xef82116f, 0xc041bf8c, 0x38e3cb12, 0xff100006, 0x010002f0, + 0x000c0090, 0x00340020, 0x00550048, 0x13000062, 0xff571806, 0x6c17200a, 0x15201202, 0x001913a6, 0x17200ca0, 0x2820558b, 0x09e27618, 0x6e429820, + 0x079b4405, 0xa243fe20, 0x200f9906, 0x3f7718b0, 0x89182009, 0x90012146, 0x10201689, 0x980c3d5a, 0x1898200c, 0x200977aa, 0x293c8988, 0x05000000, + 0xe0ff1a00, 0xbb43e001, 0x003a2406, 0x475c004e, 0x33210607, 0x254c1821, 0x1817200c, 0x2208a442, 0x44071415, 0x741906ba, 0xf67512ae, 0x07b0440a, + 0x26013d25, 0x6736013f, 0x06230570, 0x4320012f, 0xc0200fa8, 0x200dda43, 0x06474720, 0xba440686, 0x0c0c2b10, 0x08080966, 0x08080101, 0xf4426609, + 0x0ca6440d, 0x5b0c7b4c, 0xb32f0c56, 0x064f0d0d, 0x9e0b0404, 0x0604040b, 0x6000004f, 0xbf4405cb, 0x54034108, 0x0737352f, 0x27262706, 0x36373635, + 0x0716011f, 0x3e034100, 0x02418020, 0x0c0c2109, 0x41350441, 0x0d250a02, 0x0200000d, 0x27008200, 0x80014002, 0x26001500, 0x20176d55, 0x06105125, + 0x023d0226, 0x1736013f, 0x20052555, 0x07814900, 0x0984ff20, 0x102f022e, 0x11100101, 0x0e0e6010, 0x01111060, 0x85086a4b, 0x05b34b1d, 0x13091c31, + 0x091300ff, 0x0a400a09, 0x0a118011, 0x4e080940, 0x15240a1b, 0x3f002d00, 0x05258197, 0x0f222326, 0x05326001, 0x1617062a, 0x32023b17, 0x022f3637, + 0x61109964, 0x01391411, 0x0d0c0844, 0x081a5707, 0x40080b0b, 0x0f070508, 0x0ed02060, 0x78070607, 0x0f4877d4, 0x3015a455, 0x7f0b0b6b, 0x50090921, + 0x010d0d0c, 0xb00b0d0d, 0x0fbb6a0b, 0x27064f4a, 0x018001c1, 0x001a00c0, 0x21061354, 0x84580631, 0x26272105, 0x0d540182, 0x80012107, 0x09e3ba18, + 0x27271b2f, 0x02021e1f, 0x52523636, 0x01023636, 0xb1ba1800, 0x38212507, 0x2d3b3b37, 0x1b831383, 0x2b0bf766, 0x0025000a, 0x27262500, 0x11272631, + 0x33235183, 0x18310706, 0x21081b41, 0x74542726, 0xc001210b, 0x40205887, 0x540c5654, 0xc0200a62, 0xfe216283, 0x54278380, 0x0b8b0b44, 0x0002002f, + 0x01d0ff10, 0x00ba0170, 0x002b0019, 0x09be4b00, 0x2322d482, 0xe2820722, 0x16270382, 0x27171617, 0x4b311716, 0xee8505fc, 0x17162608, 0x32314bc0, + 0x1b1b0102, 0x0a1a2323, 0x1a0a0f0f, 0x1b1b2323, 0x31320201, 0x1601504b, 0x010f2217, 0x1f300f01, 0x22058220, 0x8330010f, 0x38272915, 0x25383839, + 0x38250d0d, 0x27200882, 0xb0233b83, 0x84161722, 0x2001231f, 0x2f83301f, 0x774c0020, 0x01c02d05, 0x00bb01fb, 0x001b000d, 0x0100004d, 0x20050b4b, + 0x05306217, 0x52700520, 0x013f2705, 0x27013f36, 0x83642707, 0x09c8720e, 0x23085449, 0x36373411, 0x3b0a6a4b, 0x1612d801, 0x621e1216, 0x1211111e, + 0x0409d4fe, 0x0b0a041e, 0x090c590e, 0x4ca862a8, 0x20085b7a, 0x45098300, 0xff200872, 0x4d063249, 0x60240659, 0x1111aa01, 0x47834082, 0x09dc1227, + 0x0b0e580d, 0x8346820a, 0x01b22541, 0xff291b1b, 0x09833d84, 0x0d37c218, 0x79490120, 0x4fe68209, 0x022505b3, 0x00c00100, 0x20e38869, 0x05567106, + 0x15013f23, 0xd3811823, 0x5016200e, 0x2f23058b, 0x5c153301, 0x33201884, 0x0e658018, 0x1908ac5c, 0x260b4d33, 0x0d0a1701, 0x5c400a0d, 0x0922053f, + 0x08850a73, 0x40200f82, 0x2205945c, 0x8509730a, 0xa30f8408, 0xb7012327, 0x3cb80909, 0x00228c94, 0x00820001, 0x01400129, 0x00200080, 0x7c162500, + 0x0f21067a, 0xc0b71802, 0x18112008, 0x2d08608e, 0x0c01011f, 0x0111130f, 0x0f131101, 0xb3410cc0, 0x090e3208, 0x07c00c09, 0x1409080c, 0x09144001, + 0x0aa00c08, 0x0d9c7b91, 0xa00a9123, 0x21678500, 0x67820002, 0x67822a20, 0x012f0625, 0x83070615, 0x0c2f6205, 0x1617322a, 0x3637011d, 0x15171617, + 0x11270584, 0xee010706, 0x83ac0f13, 0x8bac2071, 0x83ac2070, 0x26048487, 0x08031101, 0x83768f0c, 0x768f2178, 0x01207785, 0x2205424d, 0x838f760e, + 0x26058594, 0x0914c0fe, 0x82000200, 0x20838400, 0x28ed8d0d, 0x17011d01, 0x26023d27, 0x38531827, 0x3537230a, 0xed87cc01, 0xccacac22, 0x0c21f485, + 0x8a1283c0, 0x2a8f27ec, 0x60598f2a, 0xf8852080, 0x0a0f0f23, 0x207383a0, 0x06cb6a40, 0x0180013d, 0x000f00a0, 0x07261300, 0x16110706, 0x25371617, + 0x27263736, 0x18184925, 0x83010118, 0x16202f04, 0xfe160101, 0x0e9901e0, 0xfe1c0e0d, 0x06821ca0, 0x1b0eb025, 0x85b00f1a, 0x079b41aa, 0x2b001522, + 0x200c8b67, 0x086e7033, 0xb6442320, 0x205c8305, 0x56158a17, 0x20200830, 0x20079645, 0x4a8d1820, 0x82128908, 0x09a0529f, 0x01200982, 0xb4521a88, + 0x41138806, 0x2f8205bf, 0x15008022, 0x46175746, 0xbc4614ca, 0x41002015, 0x37220f8b, 0x86452706, 0x011f2705, 0x3707011d, 0xe447023d, 0x06d95405, + 0x35352723, 0x05784210, 0xabab102b, 0x131101cb, 0x0b0bc010, 0x411283c0, 0x7b42238a, 0x1637260d, 0x1615013f, 0x18058317, 0x5e08869d, 0x07240a39, + 0x27150706, 0x2306ae41, 0xab101312, 0xab206c83, 0x200b7a42, 0x847683ab, 0x2b7a4204, 0x890d6743, 0x190220ed, 0x5b08ed64, 0x3d2307dc, 0x88010f01, + 0x0bc021ed, 0x0b207a8b, 0x51216643, 0x012e0513, 0x00a001c0, 0x0023000f, 0x1f321300, 0xdd6b1601, 0x013f2506, 0x36033336, 0x0842b718, 0x3108f46b, + 0xb00e15e0, 0x1f0d0b14, 0x0e1ea0fe, 0x0eb0140b, 0x2272e015, 0xa0012413, 0x5917c010, 0x182305b3, 0x18fe0fc0, 0x2910b15d, 0x01000000, 0xe0ff2000, + 0x7b822001, 0x00001923, 0x065f5037, 0x20087e68, 0x05524436, 0x29010f25, 0x44c00909, 0xaa2105f8, 0x051345aa, 0x83d7c021, 0x85c0200f, 0xa9a9210c, + 0xc0201c85, 0x60204f82, 0x60204f82, 0x25294f85, 0x14311516, 0x2306010f, 0x05737122, 0x09b33119, 0xa7570121, 0x68a38250, 0x05200ebf, 0x19df4b19, + 0xb3182720, 0x16290d28, 0x23070617, 0x26070615, 0x1ac56327, 0x630fbb68, 0xa8201cce, 0x680ae468, 0x002008ee, 0x2521a38e, 0x834c1900, 0x5703201b, + 0x9599090a, 0x68904821, 0xbe4808bf, 0x68012018, 0x002a0dbf, 0x0002c0ff, 0x1a00c001, 0x7f9d3300, 0x011f3628, 0x16173637, 0x6818010f, 0x8d990ebb, + 0x6c185120, 0x2f2214d5, 0x9b990e0e, 0x6d185120, 0x2c820e02, 0x2b414485, 0x9c29200e, 0x071326ab, 0x26012f06, 0x65b18637, 0x71261a8b, 0x40111180, + 0x62820e0e, 0x11116f22, 0x2f21979b, 0x831d8280, 0x6f2f2122, 0x00222e83, 0x37410003, 0x003d2209, 0x208d9c4f, 0xcf011903, 0x19554133, 0x29c00119, + 0x20196641, 0xaf01195b, 0x22eb8b2b, 0x9c420030, 0x332721eb, 0x18064a43, 0x2408b2b6, 0x3f362726, 0x10f67f01, 0x2821de99, 0x07ba4f18, 0x02160825, + 0x83501602, 0x53282004, 0xd5980b5d, 0x6140b021, 0xa45805e5, 0x0ccd5a08, 0xb3410020, 0x0039240a, 0x6a850073, 0x1d2406c7, 0x16171601, 0x220a994f, + 0x6a060706, 0x26230a90, 0x18272627, 0x2e097455, 0x37363736, 0x36373435, 0x17160333, 0x18171631, 0x2009db72, 0x89188236, 0x6a348326, 0x508309d3, + 0x20091857, 0x120a4133, 0x4824dd82, 0x0a0c3131, 0x0a24e585, 0x4732310c, 0x8d050b46, 0x48312115, 0x95241582, 0x2c1f200a, 0x2c241d85, 0x150a201f, + 0x15203385, 0x95201595, 0x200c705c, 0x9d3682c0, 0x21888a5c, 0x5ea1e0fe, 0x72187489, 0x53440f43, 0x00093306, 0x002e0013, 0x06012500, 0x16171607, + 0x013f3617, 0x62633736, 0x37012105, 0x2c1a824d, 0x23f5fe6f, 0x36360201, 0x2e303f52, 0x22088622, 0x4d630c01, 0x232b178f, 0x3f300c01, 0x02363652, + 0x862e2201, 0xfe232308, 0x9b4d6ff5, 0x00012118, 0x01250082, 0x008001c0, 0x11bb4623, 0x3e582120, 0x21232106, 0x23092b4c, 0xa0090909, 0x2205a846, + 0x4133016a, 0xfe210552, 0x06516fcd, 0x83d7a021, 0x46a02019, 0x692005cf, 0x6f050741, 0xa0220674, 0x0b480000, 0x266b8606, 0x31353625, 0x4c012f34, + 0x2f540841, 0x09634c09, 0x89b70121, 0xcdfe216c, 0x01216c85, 0x206c8733, 0x286c9ba9, 0xff000001, 0x018001e0, 0x19d783a0, 0x4b0f158f, 0x352207db, + 0xf54c1711, 0x21ba9a08, 0x869b9701, 0x240bf34a, 0x17000023, 0xfb451916, 0x4911200d, 0x15210664, 0x09554d11, 0x1720b99a, 0x411b5e41, 0xff230543, + 0x820002e0, 0x002a27d7, 0x07060100, 0x4a182315, 0x162007e0, 0x51427982, 0x05c44f05, 0xed493320, 0x06dc5805, 0x33015008, 0x4b700112, 0x01023231, + 0x18181415, 0x1204040a, 0x07090102, 0x01010707, 0x60291b1b, 0x0f131201, 0xa00b0ba0, 0x9d01130f, 0x02401409, 0x384b3132, 0x13142525, 0x12020205, + 0x0e07080b, 0x1b29170d, 0x1440011b, 0x900d0809, 0x0a0e0e0a, 0x57080d90, 0x19250cbb, 0x4d003300, 0xef811800, 0x083b4d09, 0x24050549, 0x012b2627, + 0x69f11813, 0x82012008, 0x0a2e4f1d, 0x55013521, 0x3b200726, 0x90419b82, 0x013d2205, 0x5c338e34, 0x3d200c98, 0x4c0aa159, 0x602006f4, 0x4f095467, + 0x40200613, 0x5e070d4f, 0x092306d4, 0x59600e09, 0x3387068a, 0x09090e24, 0x1783a001, 0x86055a42, 0x5c491828, 0x82478607, 0x0140211b, 0x388a1a86, + 0x5d8a2587, 0x410d0f57, 0xf9890913, 0x0320c58e, 0x0757f998, 0xba511905, 0x3435260c, 0x012b2627, 0x20338435, 0x08437c1d, 0x61410120, 0x83c98309, + 0x83cc85ac, 0x06d454bd, 0xc887a28a, 0x905af48a, 0x54398a06, 0x378a0714, 0x4300ff21, 0x004105cd, 0x075e410a, 0x840a2641, 0x860f8625, 0x8200203c, + 0x00013100, 0x01a00010, 0x00e000b0, 0x25000013, 0x06310714, 0x200f815a, 0x705d82b0, 0xc47a0c8e, 0x4842820c, 0x25220c63, 0x77473700, 0x16112b1c, + 0x07061517, 0x36352726, 0xb2181737, 0x6c471016, 0x07086019, 0x22094942, 0x4709090e, 0x01241860, 0x70160280, 0x04823283, 0x41068b57, 0x13560578, + 0x05474a05, 0x38000e2c, 0x51004800, 0x00005a00, 0xb25b1713, 0x1716220a, 0x5d7d1807, 0x07017907, 0x2906f242, 0x27263536, 0x06232726, 0x0684010f, + 0x07060723, 0x35c28321, 0x3637022b, 0x17323337, 0x15051516, 0x17161716, 0x05233533, 0x13823633, 0x15233526, 0x480122bf, 0x2505c26f, 0x7f0d1802, + 0x86852a0a, 0x42410120, 0x0a2a3c06, 0x25191901, 0x181b3302, 0x02331b18, 0x01191925, 0x0b0c5001, 0x23014811, 0x8202180c, 0x90fe3236, 0x140e0d01, + 0x0001c090, 0x0d0e1490, 0x7b01c001, 0x821e823b, 0x14012418, 0x77121613, 0x12210dba, 0x253f8316, 0x292a2a02, 0x5583022b, 0x3b222582, 0x2e820114, + 0x83b0c821, 0xe0e0213b, 0xb0214a83, 0x05f341e0, 0xa7440020, 0x003a2206, 0x06df6800, 0x1633372c, 0x2b070617, 0x30313001, 0xd9822231, 0x06313022, + 0x24054168, 0x36353736, 0x54d68437, 0x3245057d, 0x073c0806, 0x01012b06, 0x2d2d3c10, 0x583d3312, 0x0f01010f, 0x17194810, 0x1a2c2127, 0x16020119, + 0x34020216, 0x3e2e2e10, 0x36364301, 0x1501201f, 0x03050602, 0x201a1a0f, 0x01600168, 0x1a372122, 0x0f292e82, 0x16090501, 0x392f2e1e, 0x342c8210, + 0x304b1016, 0x0124243a, 0x42272701, 0x37415141, 0x101b0505, 0x0bf76a10, 0x38002029, 0x36130000, 0x82171617, 0x05847484, 0x86741720, 0x058f6905, + 0x22055545, 0x82373213, 0x2627221e, 0x66001927, 0x9f4e080e, 0x25290e0e, 0x0e0e1510, 0x0f16151a, 0x01090910, 0x32331e1d, 0x32333f3f, 0x02011d1e, + 0x43472b2b, 0x081f2025, 0x06041207, 0x14140133, 0x1f041515, 0x20011010, 0xbb013120, 0x2e260c0b, 0x0c0c1417, 0x201e1f19, 0x171d1d1f, 0x20353540, + 0x1b820120, 0x4035353d, 0x4349483c, 0x171565fe, 0x09242526, 0x1a023b08, 0x051b1a19, 0x191a1a26, 0x181d1c34, 0x2908f36c, 0xa0014002, 0x37002500, + 0x67415300, 0x75062007, 0xcc850945, 0x8209ee6d, 0x272621b7, 0x112dd618, 0x2605e354, 0x31302722, 0x86161514, 0x82262033, 0x2322372b, 0x20011516, + 0x2430303d, 0x0b171723, 0x170b0505, 0x30242317, 0x11863d30, 0x05050c23, 0x7c11860c, 0x902610d6, 0x1b121201, 0x8d620f11, 0x0404360b, 0x01a00108, + 0x21221717, 0x0c1c2323, 0x23231c0c, 0x17172221, 0x19119101, 0x27109523, 0x12121b40, 0x04040801, 0x210b0963, 0x1344110f, 0x01802806, 0x001d00c0, + 0x194d0034, 0x410e7554, 0xc68305a6, 0xdf822620, 0x27070623, 0x05634217, 0x27071422, 0x83056443, 0x230c82dd, 0x23062713, 0x34212583, 0x41268337, + 0x2c8207f8, 0x0f132726, 0x5002100c, 0x69260583, 0x0b14141d, 0xed870404, 0x2a2b332e, 0x28b87021, 0x28293d39, 0x08271102, 0xdc82e483, 0xdf5a0725, + 0x831c1949, 0x5e012f13, 0x05050e22, 0x2417170b, 0x3d303023, 0x54193648, 0x52240b30, 0x191f201f, 0x102ffd8a, 0x91581b11, 0x28020125, 0x1f263d29, + 0x8315121e, 0x110f28e3, 0xfe460d0f, 0x830a3ad6, 0x0a0a2415, 0x89242e4a, 0x1e022130, 0x2a0aef58, 0x001a000f, 0x0100002c, 0x50131716, 0x372807ed, + 0x15373613, 0x16150706, 0x4319c182, 0x013114eb, 0xd80c1700, 0x170c0a0a, 0x0c1750fe, 0x0cd90a0a, 0x14f84416, 0x01a00130, 0x1490fe13, 0x01011314, + 0x01141413, 0xf0441370, 0x09d77419, 0x396b2d20, 0x0723260b, 0x26230706, 0x8241183f, 0x3f343107, 0x35262701, 0x32333736, 0x2733011f, 0x16333726, + 0x01210782, 0xab8e18e2, 0x74210807, 0x38130965, 0x67310312, 0x2a08052b, 0x1f01010d, 0x0d01011f, 0x2b05082a, 0x12033167, 0x65091338, 0x05ca7b74, + 0x11121c26, 0x010fb001, 0x0c169218, 0x06010d30, 0x0311ac3a, 0x00b00f01, 0xff000008, 0x018201c0, 0x1b190020, 0x7e200d47, 0x08ad7019, 0x0b857f18, + 0x16171625, 0x68211517, 0x35260534, 0x33363734, 0x147e2107, 0x8658180a, 0x27262407, 0x18070623, 0x84078b58, 0x5d37200c, 0x77180ba4, 0x198c0c40, + 0x8023408c, 0x4809090e, 0x302f067f, 0x010d0e14, 0x0d0140fe, 0x0930140e, 0x82800e09, 0x210a82af, 0x1683a0fe, 0x477d4020, 0x89802009, 0x2a77180a, + 0xf0fe210a, 0x70201694, 0x01201589, 0x08286518, 0x20205c82, 0x71846584, 0x81822020, 0xf0fec022, 0x22071955, 0x18501001, 0x7d13497c, 0x90200ac8, + 0x158a1f89, 0x15891020, 0x2f06c365, 0xa0010002, 0x2b001900, 0x00005200, 0x011f3601, 0x32079969, 0x22233527, 0x3727010f, 0x35333736, 0x17073736, + 0x4e070607, 0x32260918, 0x0605013f, 0x23822627, 0x012f2623, 0x0b1c4726, 0x3b214082, 0xa63f1901, 0x9401220a, 0x6ec91913, 0x10202b08, 0x1f282a0a, + 0x01202f1e, 0x0783f013, 0x20069048, 0x2a168240, 0x13101301, 0x2f200113, 0x180a991e, 0x840871fe, 0x3e3f190c, 0x9e012108, 0x2d089c64, 0x20150808, + 0x2a35380d, 0x15200125, 0x0783f909, 0x2b05e048, 0x0ebc380d, 0x20150907, 0x0dcd2501, 0x09831185, 0x4b0ad664, 0x2f210c83, 0x06c77700, 0x07063125, + 0x82062722, 0x272229df, 0x03393726, 0x30313035, 0x20057545, 0x0d515b37, 0x4d000221, 0x383105b8, 0x26231330, 0x03050a2c, 0x03020107, 0x05110807, + 0x0cb86f2f, 0x2f3ad038, 0x011b1c2f, 0x11110e12, 0x070a0a02, 0x04020101, 0x251a0e07, 0x17854534, 0x1c1b0125, 0x443a2f2f, 0x012b0507, 0x00a001c0, + 0x0027001a, 0x6d000034, 0x16210561, 0x05454717, 0x7b233521, 0x35230844, 0x4a333523, 0x2225053f, 0x011d0607, 0x210c8b21, 0xdb190100, 0x60180af1, + 0x802108d0, 0x06fa4780, 0x88400121, 0x60202409, 0x1933323f, 0x20083cdc, 0x08846a60, 0x41206021, 0x07870785, 0x01000027, 0x60002000, 0x06ff7d01, + 0x33361323, 0x05936b31, 0x5c05af76, 0x352405d3, 0xe9013f34, 0x54130055, 0x002013d8, 0x53830082, 0x53822020, 0x19002025, 0x4d370000, 0x5d4d0e67, + 0x55539409, 0xb75e127c, 0x0025250a, 0x2500004b, 0x07f36d18, 0x22012b2e, 0x013d2627, 0x36373633, 0x2326012f, 0x25082567, 0x17161716, 0xb34b1333, + 0x17322409, 0x67011d16, 0x2626103a, 0x23272627, 0x85491001, 0x82702005, 0x0a3c4206, 0x08080e29, 0x1b012015, 0x4b70291b, 0x1f8f0675, 0x87090721, + 0x057c421f, 0x80210582, 0x38421901, 0x2980240a, 0x4b011b1b, 0x1c910ac4, 0x93430020, 0x02c02f05, 0x00c0013d, 0x002e001c, 0x13000040, 0xb9830706, + 0x2117162d, 0x27263736, 0x36212721, 0x8236013f, 0x822120a6, 0x18232003, 0x1811ec50, 0x2a115a60, 0x02021618, 0x053c3416, 0x83480113, 0xccfe3209, + 0x173d0109, 0x09033608, 0x5cfe1009, 0x48130502, 0x10055f98, 0xe05e5020, 0xc001290f, 0x02161602, 0x0112c3fe, 0x302c0783, 0x10c01601, 0x0c010c0c, + 0x00fe0113, 0xc5592a8f, 0x4f558708, 0x02280663, 0x00a00100, 0x1700001a, 0x3628c782, 0x27261137, 0x22232726, 0x2508756e, 0x16171611, 0x42184017, + 0x95260909, 0x131a131b, 0xe469751b, 0x09f36b08, 0x0c831782, 0x20059c74, 0x053b5800, 0x82400221, 0x0015265b, 0x37000026, 0x05175f07, 0x011f3225, + 0x46013b16, 0x06250522, 0x37361707, 0x240b8221, 0x0706010f, 0x23788221, 0x5959013f, 0x76214383, 0x3164881a, 0x1324b0fe, 0x01120a1b, 0x080a1290, + 0x120a7008, 0x088470fe, 0x0198e023, 0x86838318, 0x01202874, 0x010f101f, 0x6d100f01, 0x06820593, 0x00010029, 0x01c0ff20, 0x6bc00120, 0x9769059d, + 0x07a75d05, 0x7a0a3650, 0xbb500d11, 0x0ab7230a, 0x56190d0d, 0x2920080c, 0x09220c83, 0x13936009, 0x089c4119, 0x2a090925, 0x192adafe, 0x21107447, + 0x13872601, 0x00820020, 0x03820120, 0x00024029, 0x32004001, 0x5f250000, 0xaf51051c, 0x173e5e09, 0xbf512120, 0x01372307, 0x87866097, 0x49206e9f, + 0xc192ad94, 0x82050f69, 0x00a02893, 0x002f001b, 0x47550042, 0x152306d7, 0x64171611, 0x26280974, 0x11272627, 0x33363734, 0x20267964, 0x0daf6415, + 0x99193983, 0x594d1a3b, 0x20068306, 0x06624f20, 0x67180686, 0xa0251010, 0xfe0e0909, 0xad4b18b0, 0x17162708, 0x0e500122, 0x49180909, 0x8b760cf1, + 0x0c7a640c, 0x5106cb43, 0x0d2005ef, 0x2d06db62, 0x23153337, 0x07062726, 0x32333523, 0x5b180737, 0x232f0e3a, 0x23010f22, 0x23272635, 0x06150706, + 0x18070607, 0x2c1136b8, 0x73b132dd, 0x212c2c21, 0x0e0f8073, 0x7c4618dd, 0x0fb1350d, 0x0120330d, 0x010f400f, 0x0112121b, 0x19015801, 0x19252519, + 0x09848418, 0x1947012b, 0x01011760, 0x07074017, 0x08476dfe, 0x83400121, 0x1907212c, 0x8305d442, 0x8cb02050, 0x59438233, 0x23240ddb, 0x00003500, + 0x0d9f5d18, 0x0717142b, 0x16011d06, 0x37363317, 0x24038435, 0x16013f32, 0x1f571833, 0x50012111, 0x07914118, 0x08280783, 0x160207a1, 0x28021650, + 0x0a250282, 0x1c1a2107, 0xd4c01828, 0x0260240b, 0x874b3132, 0x1a1c242e, 0x820a07a1, 0x1602222a, 0x22028228, 0x19082107, 0x830c3e4e, 0x0004379f, + 0x02c4ff03, 0x00b80178, 0x00620050, 0x00c500b3, 0x27360100, 0xea762f26, 0x29078505, 0x06072223, 0x0706010f, 0x07852627, 0x011f0624, 0xbb831506, + 0x1f161722, 0x1620bd82, 0x0784b482, 0x37323329, 0x36013f36, 0x85161737, 0x2f362707, 0x34353601, 0x1b753727, 0x63262005, 0x218a0bc9, 0x26833183, + 0x37206b84, 0x76827b8a, 0x8183718b, 0x73847683, 0x89060721, 0x2076827b, 0x185b8217, 0x080e4adf, 0x0b350128, 0x03040405, 0x0e0a0505, 0x0614101d, + 0x0a0b0e04, 0x040f0a0a, 0x1c101406, 0x05050a0f, 0x05040403, 0x0202160c, 0x25830c16, 0x0a060424, 0x25831c0f, 0x24820f20, 0x64202593, 0x240faa45, + 0x0f0a2901, 0x33d88208, 0x09050c07, 0x0f1d080d, 0x03010103, 0x0d081d0f, 0x070c0509, 0x08261682, 0x0a140a0f, 0x04820b0b, 0x05212582, 0x22259308, + 0x88070508, 0x46292025, 0x39201046, 0x388b5e99, 0x848b2599, 0xfe215e90, 0x0d1c41bb, 0x0c20f697, 0x41064241, 0xa75b2e1c, 0x01802608, 0x002400c0, + 0x074b184d, 0x82062011, 0x2403829e, 0x01392331, 0x06784f06, 0x37171626, 0x06310706, 0x20052458, 0x068e4f37, 0x02392726, 0x31223530, 0x5505cd4e, + 0x162205e5, 0xde18d015, 0x34080beb, 0x09062701, 0x01030607, 0x03080101, 0x1c220b04, 0x3a2f0b0e, 0x3e3d03f0, 0x3636135a, 0x0b2f3a49, 0x0b221c0e, + 0x01090304, 0x07060301, 0x01270609, 0x53363602, 0x0c244301, 0x2c3b3508, 0x05090a0f, 0x07010103, 0x01010a0b, 0x1706060b, 0x3856b001, 0x23390938, + 0x17010124, 0x010b0606, 0x070b0a01, 0x05030101, 0x2c0e0b09, 0x3131473b, 0x00080807, 0x02260082, 0xc0ff1800, 0xe382b101, 0x14001025, 0x18010000, + 0x260d574c, 0x33321311, 0x18200123, 0x250e4e4c, 0x0301028e, 0x4c18c001, 0x01220e43, 0x4f85feb8, 0xe0ff202c, 0xa0012002, 0x4b002300, 0x29580000, + 0x0944550f, 0x21076946, 0xbb49013f, 0xf0e3180a, 0x08fc7009, 0x07984518, 0x02013b23, 0xcf401817, 0x99a61909, 0x18a9202f, 0x490b4c41, 0xa719059e, + 0x9b65120f, 0x08bd4905, 0x0e000124, 0xd4820909, 0x0000022c, 0x7f01c0ff, 0x2500c001, 0x256b3100, 0x012b270f, 0x011f1617, 0x17550716, 0x013f2305, + 0xe8723f36, 0x33132105, 0x2009395b, 0x3f8b1920, 0x0b1d330a, 0x05011639, 0xfe100a09, 0x090a10c0, 0x39160105, 0x66821e0c, 0x2007be75, 0x09b26a01, + 0x401f942d, 0x0d0e0f03, 0x030f0e0d, 0x82941f40, 0xa0fe2142, 0x20067b46, 0x06f74860, 0x01c00129, 0x002300a0, 0x5700004f, 0x58410a87, 0x00e91809, + 0x012b210c, 0x4605c244, 0x0d670974, 0x07062709, 0x11272621, 0x8f563736, 0x07a45709, 0xed603320, 0x41a92006, 0x80200814, 0x089c4f18, 0x22000125, + 0x85011617, 0x0f012718, 0x010f00ff, 0x57180f01, 0x01200768, 0x2006d056, 0x05d048a9, 0x6d5aaa20, 0x82802006, 0x012025e9, 0xff221716, 0x09833b84, + 0x3d833187, 0x43820120, 0xd7494f85, 0x82002006, 0x002622df, 0x25df824a, 0x16173233, 0x816c1115, 0x21e18505, 0x5064013b, 0x075b7009, 0x985a0720, + 0x136e420e, 0x95180120, 0x40280e47, 0x011b1b29, 0x291b1b01, 0x2006004d, 0x19654209, 0x82600121, 0x0a476f9d, 0x01203583, 0x200a0d68, 0x196542b7, + 0x28090757, 0x00c00140, 0x00520046, 0x21d5825e, 0xcb840623, 0x16200682, 0x2008bc52, 0x06676d16, 0x210b4271, 0x644f2734, 0xbbc11909, 0x27262408, + 0x82353623, 0x05272219, 0x443d8333, 0x0523055f, 0x82360706, 0x82332021, 0x01073458, 0x0e14e090, 0x166a010d, 0x16150102, 0x25252123, 0x820b111f, + 0x76102000, 0x0a49060a, 0x101a2106, 0x2a081382, 0x251f110b, 0x16222225, 0x16020115, 0x0e0d016a, 0x54a1fe14, 0x110e0e07, 0x12182326, 0x9f010411, + 0x0e112623, 0x0454070e, 0x50191111, 0x082f05f0, 0x45160208, 0x20213132, 0x05081212, 0x820f0d0c, 0x0cf66344, 0x0f100b31, 0x08050c0d, 0x21201212, + 0x16453231, 0x83080802, 0x4370358a, 0x101e2f2f, 0x23231721, 0x10218e31, 0x432f2f1e, 0x17232331, 0x260d2358, 0x00400022, 0x18000049, 0x4e0a5791, + 0x36200972, 0x83061e7a, 0x012f2211, 0x84f78407, 0xdb4018ee, 0xbe9d1912, 0x57451809, 0x0813761b, 0xce6c8020, 0x88fe2007, 0x59451809, 0xf353210a, + 0x1805134e, 0x87135a45, 0x60451838, 0x18682011, 0x21095c45, 0x2b730002, 0x00312207, 0x2bdd8243, 0x26312726, 0x06072227, 0x26270607, 0x21054746, + 0x07831617, 0xc9831520, 0x82373221, 0xea4318d4, 0x200d8309, 0x05bd4335, 0xff412d82, 0x212d8205, 0x7183c001, 0x11090a32, 0x39111312, 0x2b2c3839, + 0x040e1314, 0x03060304, 0xeb301696, 0x0d1f202a, 0x030e0e05, 0x3225250f, 0x0d03050e, 0x8205ed6c, 0x04042f30, 0x2b14130e, 0x3939382c, 0x11121311, + 0xd1830a09, 0x1f301692, 0x2a201f0d, 0x0e05030d, 0x0f252532, 0x050e0e03, 0x5f05674c, 0x21230623, 0x83130000, 0x5f0f20d5, 0x16210624, 0x05a94e17, + 0x012f4e08, 0x26010f26, 0x37272627, 0xa5012f36, 0x0f0e0d06, 0x01021b58, 0x65653c3c, 0x180a1d7d, 0x0f060603, 0x28131b60, 0x19292a35, 0x28091531, + 0x060fa701, 0x0a180306, 0x65657d1d, 0x02013c3c, 0x0e0f581b, 0x0928060d, 0x29193115, 0x1328352a, 0x0cfb441b, 0x30001522, 0x4e0c6368, 0x212a095b, + 0x011f3617, 0x16010f16, 0x08853717, 0x20080858, 0x09de673f, 0xfe330989, 0x07105bc0, 0x190a0514, 0x0915361a, 0x030e300e, 0x510f040c, 0x0e210630, + 0xdf4f182c, 0x03612115, 0x0a2c2782, 0x191a3614, 0x0714050a, 0x010e2c10, 0x22058c51, 0x410c040f, 0x01230717, 0x84c001c0, 0x373625a1, 0x32373631, + 0x5805e243, 0xd8560683, 0x05025e05, 0x260a0c7b, 0x27262726, 0x82903523, 0x182235b7, 0x060a1313, 0x0c0c0d0c, 0x12060504, 0x3d2c2222, 0x10022829, + 0x6f086c42, 0xf02b0860, 0x17223001, 0x0c0d0116, 0x82040c15, 0x0c0c2a29, 0x1616250d, 0x29280201, 0x9f43183d, 0x5c302012, 0x022908e7, 0x00a00140, + 0x001a000d, 0x09434125, 0x35211522, 0x21227f83, 0x918a2105, 0xaf650520, 0x36172109, 0x2205065a, 0x84272623, 0x2943827e, 0xfe1b1212, 0xfd000240, + 0x451801c0, 0xfe210839, 0xa67a1830, 0x01702509, 0x010f800f, 0xa0200485, 0x20212283, 0x20c18320, 0x5a4418c0, 0x18c02008, 0x2008f187, 0x07b87c10, + 0x240a1b53, 0x002f001d, 0x0771474e, 0x6b052245, 0xee44077c, 0x27222305, 0xd5183526, 0x1720100d, 0x2205d562, 0x91171631, 0x37342c2c, 0x09003336, + 0x5e740e09, 0x4638375e, 0x2f2707bc, 0x62504f2f, 0x4409090e, 0xa983080c, 0x6025a783, 0x27414150, 0x24268726, 0x32331d1e, 0x0507443f, 0x82800121, + 0x38012507, 0x745e5e37, 0x62241085, 0x2f2f4f50, 0x80182883, 0xaa410944, 0x01002508, 0x41412726, 0x4206e846, 0x80180555, 0x234e0cf7, 0x00112605, + 0x00380026, 0x0ca96a4a, 0x27261528, 0x35070621, 0xdf442117, 0x07f25213, 0x08f75818, 0x20112b7f, 0x09244e00, 0xfe261a25, 0x511a2680, 0xe7440a62, + 0x097a6e0a, 0xf2789782, 0x0522440c, 0xb8264583, 0x17010117, 0x4418c0b8, 0x0888080a, 0xd17e2f8c, 0x0d3b4e0c, 0x42003424, 0x924d0000, 0x07062205, + 0x4b931906, 0x18172009, 0x230ad849, 0x16173233, 0x08b8b619, 0x2205dc46, 0x831d0735, 0x012b3434, 0x37323335, 0xe0013736, 0x10131301, 0x2f2e252b, + 0x7d200933, 0xef5408dc, 0x33092806, 0x2b252e2f, 0x19131310, 0x33078119, 0x3c37372d, 0x373c0909, 0xa0012d37, 0x0e070915, 0x1314242c, 0x3884b883, + 0x0806f74f, 0x13148031, 0x070e2c24, 0x07941509, 0x15151010, 0x94071010, 0x2883834d, 0x16601615, 0x01002815, 0xc1ff0000, 0xbf01ff01, 0x00004800, + 0x06072613, 0x8227010f, 0x011f2205, 0x83c48207, 0x27b08305, 0x16170607, 0x1617013f, 0x37200585, 0x0ba52f19, 0x012f3622, 0x83050f4e, 0x213b8305, + 0x05822627, 0x0ad32408, 0x10030e0d, 0x090a0e3e, 0x0d3f1203, 0x2f090304, 0x0403092f, 0x03123f0d, 0x3e0e0a09, 0x0d0e0310, 0x822d2d0a, 0x0f042123, + 0x2e21238a, 0x2123912e, 0x1391b901, 0x0f21379c, 0x8e5b8704, 0x0000237f, 0xb0410500, 0x80012105, 0x26082b77, 0x01000077, 0x48311732, 0x35220692, + 0x0c890733, 0x7d272221, 0x372006d8, 0x93121279, 0x33272527, 0x17141506, 0x2e06f048, 0x27262726, 0x013f3635, 0x16333736, 0x4b171617, 0x2624092a, + 0x15070627, 0x01201283, 0x2106985f, 0x114bd0d0, 0x08a75606, 0x0e090922, 0x8306157e, 0x06124b06, 0x58351d87, 0x130b0901, 0x09090c0c, 0x022d2d44, + 0x250c2e01, 0x121b1b35, 0x7d641812, 0x0f0f2707, 0x14140101, 0xa951011f, 0x7d402006, 0x85180ca1, 0xbf4a0c6f, 0x05a74306, 0x120e6039, 0x11061014, + 0x0e121510, 0x442d2d02, 0x0b2f423e, 0x12010125, 0x50581b12, 0x382005b5, 0x0f255682, 0x14141f38, 0x15434101, 0x210a7756, 0x6d782335, 0x0a476308, + 0x17142722, 0x07a03519, 0x2205ea49, 0x93150607, 0x23372727, 0x07141516, 0x05831716, 0x25054260, 0x26012f26, 0xbf182327, 0x36240d55, 0x15171637, + 0x8d431283, 0x3d424106, 0x41260b21, 0x00296e42, 0xff000005, 0x018001c0, 0x0b8742c0, 0x88181320, 0x23220934, 0x0c891735, 0x2706e245, 0x3227013d, + 0x1d163117, 0x0d915318, 0x07272793, 0x32331635, 0x83171637, 0x06152705, 0x23070607, 0x5e182f26, 0x32210860, 0x06eb4217, 0x08457018, 0x42063c4a, + 0xe94d512a, 0x539d4107, 0x4106c762, 0x17230f43, 0x83311714, 0x3d3625f6, 0x37152301, 0x4b700c89, 0x32072308, 0x4e183137, 0x14230b95, 0x93331617, + 0x15272727, 0x17323336, 0x05833736, 0x27263522, 0x4305f462, 0x444e06b8, 0x27262109, 0x4106de43, 0xe0425843, 0x15234444, 0x2708ff51, 0x00c00100, + 0x002f001a, 0x20067777, 0x05b84931, 0x5b05e351, 0x252507ae, 0x0f161736, 0x05284901, 0x2205556e, 0x5c013f26, 0xbf69072f, 0xd7fe3611, 0x0e0e1111, + 0x0216d647, 0x47d61602, 0x11110e0e, 0x700e0e70, 0x5c2891c0, 0x81200570, 0x47252183, 0x02161602, 0x20378347, 0x182e8270, 0x820ccf53, 0x1637239b, + 0x02843117, 0x61053e5c, 0x06240939, 0x27060507, 0x08ad5b19, 0x4b262721, 0x0020060d, 0x71925985, 0x9ac02920, 0xaf709b8f, 0x1613221a, 0x05567507, + 0x35272623, 0x22a78407, 0x65011f36, 0x084119e5, 0x19e36512, 0x9b8fc894, 0x2005dd64, 0x0dcd4131, 0x22053d41, 0x82372603, 0x3635228c, 0x06d97537, + 0x82010f21, 0x219bacaa, 0x6541c001, 0x15004217, 0x00820020, 0x00092708, 0x02c0ff00, 0x00c00100, 0x0015000a, 0x002b001d, 0x003e0033, 0x0054004c, + 0x2500005d, 0x26230714, 0x33373435, 0x03831516, 0x362f0d82, 0x37273435, 0x16272623, 0x2b171617, 0x82373601, 0x36172101, 0x0d870b82, 0x010f0627, + 0x14150633, 0x25368417, 0x33272617, 0x01820706, 0x27062726, 0x16012f26, 0x11820f82, 0x0706212d, 0x36070631, 0x60013337, 0x8203ba03, 0x1d250802, + 0x7b08087b, 0x74700303, 0x2d3c2810, 0xb095172c, 0x11101209, 0x110b0b11, 0x09121011, 0x2c1774d1, 0x10283c2d, 0x8221827f, 0x12bb2227, 0x201e8a09, + 0x2231853c, 0x82660174, 0x273b2824, 0x21c07410, 0x83211f1f, 0x85402003, 0x1f213b06, 0x11366220, 0x37382827, 0x0f102328, 0x100f0101, 0x38372823, + 0x36112728, 0x21872062, 0x3728ff22, 0x5f201d89, 0x22852e85, 0x230d4f4a, 0x0036002d, 0x21068b58, 0x06772734, 0x012b2805, 0x34352726, 0x8336013f, + 0x8223200f, 0x073008e8, 0x06071714, 0x16171615, 0x013f3217, 0x26053316, 0x16373627, 0x01070617, 0x2d2d4460, 0x08030602, 0x054d0607, 0x010f3907, + 0x01054d05, 0x17150802, 0x0a2d1683, 0x130114b6, 0x141c1d13, 0xfe1d19b6, 0x076063f0, 0x2d028037, 0x1517442d, 0x06010208, 0x0f01054c, 0x4d050739, + 0x03080706, 0x2c168306, 0x14b51a1d, 0x13131d1c, 0x09b51401, 0x09f34f88, 0x2000063d, 0x2002f0ff, 0x1000a001, 0x35002100, 0x5d004900, 0x00006f00, + 0x010f1613, 0x71222306, 0x152009d8, 0x3720108f, 0x2012737f, 0x7f139215, 0x35231274, 0x58272607, 0xb8300e45, 0x07480d0f, 0x28070b0a, 0x11110e0e, + 0x12103716, 0x48200f8f, 0x1b834218, 0x1c824020, 0x0ca84018, 0x30104575, 0x12109a01, 0x28070850, 0x0e0e1111, 0x0d0f3d16, 0x200e8da0, 0x0bbb6f66, + 0x8c0c907f, 0xbb7c180c, 0x18002010, 0x230a6751, 0x13000014, 0x7907c35d, 0x2e080584, 0x27013d26, 0x0b043726, 0x19b00119, 0xb70f0a0b, 0x10111101, + 0x0fb70d40, 0x1689010a, 0x17160101, 0x137fe013, 0x300b080a, 0xe04f100a, 0x4e001713, 0x02290553, 0x00c00100, 0x00230008, 0x194f823c, 0x4f08b15a, + 0x3b210683, 0x05c94602, 0x06250585, 0x05070607, 0xf2401823, 0x013d2208, 0x0a124f23, 0x0790b82e, 0x0701a001, 0x121b4038, 0x80c00112, 0x2b05144d, + 0x18100f01, 0x0f101890, 0xc0800101, 0x84068f4c, 0x06d45e18, 0x0701902e, 0x01072828, 0x12012808, 0x60601b12, 0x28203983, 0x36822d84, 0xc746e820, + 0x52202006, 0x8020087a, 0x230d037c, 0x01000049, 0x2605e77c, 0x17161706, 0x83231533, 0x308d18a4, 0x35372109, 0x13064818, 0x210c436e, 0x34820706, + 0x7b051561, 0x0e2506e3, 0x20150907, 0x0ba06060, 0xed606020, 0x281d930f, 0x0909b701, 0x13131040, 0x272da401, 0x0a0d0d0a, 0x08080e40, 0x00226987, + 0xa0180006, 0x112b0747, 0x37002300, 0x5d004b00, 0x18006d00, 0x1912b1c8, 0x2010d2d8, 0x05474607, 0x17323323, 0x31d98206, 0x31303130, 0x05272623, + 0x30013930, 0x34373631, 0xee5f3627, 0x07062205, 0x64c11823, 0x0cd91911, 0x2621240c, 0x18229027, 0x200edee6, 0xf0c01801, 0x00fe3e10, 0x2e1e1e01, + 0x0215182a, 0x13d62902, 0x29950102, 0x18150202, 0x1e1e2e2a, 0xd6130201, 0xa94b180b, 0xe0fe360f, 0x38262601, 0x26263876, 0xfe190201, 0x010219b6, + 0x17160120, 0x8b678f22, 0x838b200f, 0x0b0a2c4b, 0x02253b0b, 0x3b251513, 0x830a0b0b, 0x02132171, 0x56089a63, 0xfe210797, 0x835683fb, 0x0219345f, + 0x00001902, 0x12000200, 0x6e02d5ff, 0x3700ab01, 0x59006f00, 0x01450563, 0x06072106, 0x2005854e, 0x22068336, 0x780f1415, 0x2721057b, 0x06134526, + 0x82060721, 0x281a8311, 0x013f3233, 0x31150625, 0x182e8614, 0x180cdacd, 0x21082287, 0xc0181617, 0x62830b81, 0x22233908, 0x4402010f, 0x34272a2a, + 0x0b022c33, 0x08080202, 0x020b0d0c, 0x161d1c19, 0x19711717, 0x15192020, 0x01110202, 0x0b020207, 0x080d0c0b, 0x04041f01, 0x3a392d26, 0xf8fd702d, + 0x2d213384, 0x21338201, 0x33880907, 0x98701821, 0x2c250833, 0x3a2db471, 0x05252d39, 0x08011f04, 0x0a0c0c0d, 0x01080302, 0x15020211, 0x18212019, + 0x16171771, 0x02191c1d, 0x2064820b, 0x286c8208, 0x33342c02, 0x702a2a27, 0x2232a218, 0x8b080c0d, 0x08136632, 0xa0018026, 0x00002600, 0x22054949, + 0x5b373621, 0x6e6a05a9, 0x73072006, 0x062305ed, 0x6c151407, 0x430805f9, 0x29280200, 0x3670013d, 0x01012425, 0x062c1d1c, 0x291b1b01, 0x2416171e, + 0x2d442d24, 0x1a2b022d, 0x3d70011a, 0x01022829, 0x2f362524, 0x11092322, 0x1b1b2912, 0x16241001, 0x2d020115, 0x0404442d, 0x30242410, 0x2a08cf46, + 0xc001c001, 0x33002800, 0x18010000, 0x24083b49, 0x0f141533, 0x05bb4601, 0x34258c84, 0x3d26012f, 0x08165b01, 0x82350721, 0x011f2820, 0x35363723, + 0x44802001, 0x092e063f, 0x13010a6d, 0x36011d14, 0x0113141d, 0x87756c0a, 0x60202906, 0xab231340, 0xc0011322, 0x2505cd4e, 0xb00f1285, 0x22831411, + 0x14252c83, 0x120fb011, 0x31198585, 0x248585c5, 0x1f38381f, 0x04000024, 0xc0ff0000, 0x9782f801, 0x35002b29, 0x59004700, 0x6b010000, 0xb472067b, + 0x37322407, 0x72260717, 0x363108c2, 0x34373637, 0x27360127, 0x0f222326, 0x16011f01, 0x22ab8233, 0x6c07012f, 0x385f059f, 0x4603200b, 0x012b10a1, + 0x01072700, 0x30301f20, 0x8301201f, 0x13162507, 0x16132727, 0x07830d87, 0x1a01072b, 0x1d160b0b, 0x178d161d, 0x24068376, 0x409c0b0b, 0x0fcf5e77, + 0x82107a64, 0x22468e57, 0x8c082827, 0x01123068, 0x150d0d1b, 0x76978d15, 0x0d0d1515, 0x5ee7409c, 0xfe200fc4, 0x10d37918, 0x434a0020, 0x0015220a, + 0xfb50182d, 0x17162208, 0x05db1816, 0x4c55180b, 0x15232610, 0x35333523, 0x087c6123, 0x67180889, 0x12840809, 0x40e04025, 0x18c00140, 0x88082ca1, + 0x8ca02008, 0x82402012, 0x82002026, 0x00013200, 0x01c4ff24, 0x00b701dc, 0x01000045, 0x22310726, 0x0acd190f, 0x3233220a, 0x05cf6917, 0x1805ba69, + 0x200ef98a, 0x0b8b1826, 0x1617210d, 0x2c081f82, 0x01273435, 0x1919138c, 0x2020b813, 0x212b2b21, 0x0b0b0998, 0x98080809, 0x33414133, 0x25b83030, + 0x23252f2f, 0x1d17b023, 0x1515171d, 0x2d1b8590, 0x0c0a0a90, 0x1313b00c, 0x01136c01, 0x3483b812, 0x98202024, 0x1c830808, 0x30309822, 0xb8223883, + 0x38832323, 0x1515b022, 0x90203883, 0x90251b85, 0x0a0a0c0c, 0x6f6a83b0, 0xf682080f, 0x1600a026, 0x3e002c00, 0x2611d557, 0x012f3435, 0x49012b26, + 0x1d210906, 0x228b1801, 0x42132009, 0x40201052, 0x240d2857, 0x1a134d13, 0x6f4818f3, 0x0875410d, 0x9b182988, 0xf3210ee6, 0x5235821a, 0xfe210e5e, + 0xbb7318e0, 0x4b50180f, 0x01c02308, 0x401800a0, 0x94881e67, 0x84c0fe21, 0x18602074, 0x24116a5b, 0x00004001, 0x2a538203, 0x01c00100, 0x00130080, + 0x5e3b0027, 0x23260f71, 0x26272221, 0x4e181535, 0x05201221, 0x18129f73, 0x23107248, 0x010e0909, 0x1806fa54, 0x6417124e, 0xa5490ce2, 0x200c8c0c, + 0x20008200, 0x5f4b1806, 0x00112a08, 0x00390025, 0x005f004d, 0xbbc31871, 0x69372013, 0x4d18077b, 0x4b180af5, 0x64182764, 0x80181150, 0x4020110c, + 0x860fb943, 0x0cbb4ae3, 0x8c0fcb4a, 0x8f80200f, 0x10924a41, 0x11bcca18, 0x4b185020, 0x40541879, 0x1050690c, 0x6b8fd020, 0x00820020, 0x07000535, + 0x0002e0ff, 0x1500a001, 0x47003400, 0x6d005a00, 0x19130000, 0x2311ef08, 0x13272623, 0x08f8cd19, 0x17363725, 0x50140716, 0x2620077c, 0x2005ea47, + 0x11136713, 0x92122667, 0x02182612, 0x02162016, 0x08b07c10, 0x16081035, 0x0b0d3f02, 0x11130f0b, 0x1d130c0b, 0x0110161d, 0x83212310, 0x0f58281e, + 0x48090507, 0x67890708, 0x4d581037, 0x86ff2006, 0x201f9007, 0x203e8388, 0x07264d78, 0x16026028, 0x0c0be3fe, 0x63821110, 0x01191029, 0x17131701, + 0x83261218, 0x0d01281d, 0x0a4e0b0f, 0x4115010b, 0x97452563, 0x053f4105, 0x6c003e23, 0x8b941900, 0x31302619, 0x17061514, 0x30551816, 0x08914208, + 0x2205de74, 0x82272623, 0x5d372001, 0x0a83058f, 0xbc632720, 0x069b7306, 0x3a823220, 0x16013922, 0x25080585, 0x36373637, 0x17162327, 0x211d05a1, + 0x14140a38, 0x0b0b0d0a, 0x07060304, 0x15160c0d, 0x3a37450b, 0x070e040e, 0xd6755d0a, 0xd227080d, 0x0d1f3701, 0xbc010505, 0x1e040305, 0x140e3821, + 0x03011314, 0x0d050602, 0x04040c0b, 0x020d0605, 0x13040403, 0x83131819, 0x0805323e, 0x01040a4c, 0x0e0d1a30, 0x03040208, 0x07060303, 0x2c61840d, + 0x0c010504, 0x01401717, 0x0e1d2301, 0x0b20410a, 0x0a120f29, 0xc113080a, 0x831b1509, 0x23b28232, 0x01020101, 0x5d825583, 0x0a820520, 0x0807072a, + 0x18160c03, 0x081b1f40, 0x2807db62, 0x01c001e0, 0x003b00a0, 0x0955184f, 0x08527411, 0xfc6f3520, 0x0723550a, 0x240aa26e, 0x35262722, 0x12914403, + 0xac781020, 0x4b102009, 0x53180733, 0x02270e96, 0x44442d2d, 0x83022d2d, 0x442e8316, 0x4d180d9c, 0x3e6d09db, 0x1b1b2205, 0x0c705a29, 0xca188020, + 0x69820869, 0x4e18fe20, 0x6e180c09, 0x372515ab, 0x23153335, 0x21038215, 0x09831735, 0x82233721, 0x18252005, 0x260e274a, 0x26272611, 0x18402127, + 0x5b09aa6e, 0xa24d0a2b, 0x80fe2608, 0x406060c0, 0x23008360, 0xe06060a0, 0x8309946c, 0x05595e09, 0x2b0c4354, 0x001a0015, 0x35261700, 0x01373431, + 0x5008c760, 0x22080508, 0x07273701, 0x0e0e0e17, 0x130f7d01, 0x0e230f13, 0x0f83fe0e, 0x230e1413, 0x18694e01, 0x0e0f1869, 0x190f1314, 0x200a3aa1, + 0x2018820e, 0x82188313, 0x05a7495e, 0x01800222, 0x096b9118, 0x0bff6e18, 0x180d2061, 0x210c698d, 0x5047023d, 0x84352005, 0x330523eb, 0x8d181517, + 0x64492567, 0x08cf4108, 0x4a087770, 0x132f0685, 0x331a134d, 0x140e0d01, 0x7001c0fe, 0x18804d33, 0x1810e990, 0x21112d8d, 0x2f85c001, 0x0d0e1423, + 0x32591801, 0x05dc420f, 0x13204023, 0x8458821a, 0x4da0227d, 0xfc8c1813, 0x06002223, 0x2e008200, 0x80014002, 0x1c001500, 0x2b002300, 0x18003300, + 0x6b08ab5a, 0x212d0e7c, 0x16352313, 0x27171617, 0x07063335, 0x066b4e06, 0x46231521, 0x33210567, 0x11555115, 0x2008cb47, 0x05cb4701, 0x1b121225, + 0x844040fe, 0x40402215, 0x210d8201, 0x05838001, 0xfe181186, 0x1d8411d1, 0x4800ff21, 0x0984087c, 0x84c0fe21, 0x84c0203a, 0x21578446, 0x4584c040, + 0x704ea020, 0x061f500f, 0x01400027, 0x00000140, 0x09537110, 0x27262723, 0x3ec18221, 0x0a89011f, 0x800a0d0d, 0x1509070e, 0x091500ff, 0x49800e07, + 0x10800909, 0x01011313, 0x50101313, 0x0021075f, 0x203f8280, 0x7f3f8340, 0x17280767, 0x36211716, 0x012f3637, 0x8305cc64, 0x8501203f, 0x3701213f, + 0x7882408e, 0x001f0025, 0x846001c0, 0x3526267f, 0x013f3431, 0x203f8236, 0x227f8211, 0x8b09012f, 0x8fa9202d, 0x24bf858c, 0x011f0040, 0x653f8600, + 0x072906ba, 0x16110706, 0x013f1617, 0x223fa0f7, 0x47000003, 0x1a20082f, 0x71188982, 0x17261643, 0x23113311, 0x05822321, 0x200a0e5f, 0xb0731801, + 0xa0402408, 0x828001a0, 0x148c4903, 0x00ff4024, 0x03830001, 0x00820020, 0x6f830220, 0x01400123, 0x21ef82a0, 0x6d820020, 0x18051973, 0x2308aa48, + 0x37262711, 0x22086970, 0x41272223, 0x80201081, 0x250a4d41, 0x0a0d0d0a, 0xe38b9701, 0x4152fe21, 0x0925099e, 0x00000009, 0x206f8501, 0x246f8300, + 0x23061700, 0x05335431, 0x4106cb70, 0x1720109f, 0x830e9e41, 0xe000213f, 0x0020af86, 0x8c22df41, 0x29ef858d, 0x00020000, 0x12008001, 0xef822400, + 0x3107062a, 0x1f160706, 0x013f1601, 0x20051c4f, 0x05aa5d21, 0x82362121, 0x653520f6, 0x302a0593, 0x010d0e14, 0x13da1201, 0x4219da13, 0x30200774, + 0x33098460, 0x151511da, 0x8001da11, 0x140e0d01, 0x0ca40e18, 0x180ea40c, 0x70213083, 0x070743d0, 0x0da3d032, 0x0000a30d, 0x10000100, 0xe001e0ff, + 0x4000a001, 0x5b187982, 0x3d240c8f, 0x36373401, 0x1d211183, 0x22778201, 0x18161736, 0x230707ec, 0x26270607, 0x08bf8419, 0x875a1620, 0x22232507, + 0x327e010f, 0x6afe6918, 0x220a1f4e, 0x5347002d, 0x152309b9, 0x82011f14, 0x013f2495, 0x88060717, 0x3536220b, 0x06a77434, 0xa4712720, 0x53032005, + 0x218d06e7, 0x0727372d, 0x0a3f0127, 0x780a0d0d, 0x83100909, 0x6a042207, 0x8d098604, 0x83982011, 0x0970231c, 0x07863009, 0x2d3b0229, 0xb701013b, + 0x83780909, 0x09102210, 0x86388209, 0x24118f09, 0x0909e0fe, 0x201b8370, 0x20078630, 0x203b8201, 0x29c08202, 0xc0ff1f00, 0xc001a001, 0x0c821600, + 0x2627362a, 0x17060507, 0x07331716, 0x37210582, 0x300f8225, 0x01372327, 0x1513095d, 0x1000ff13, 0x70150907, 0x200b834d, 0x2f0b8201, 0x4c6f1608, + 0x10179301, 0x0fe00f0d, 0xb3011414, 0x00200989, 0x22087751, 0x4aa00140, 0x312106e7, 0x060d6036, 0x06070627, 0x33152307, 0x86648216, 0x60118405, + 0x37200534, 0x35222582, 0x1f872726, 0x2322198f, 0x33960706, 0x39843620, 0x45842320, 0x0d01d024, 0x324c140e, 0x98082a08, 0x010f1018, 0x0d0e1408, + 0x22178d01, 0x92980701, 0x07982115, 0x0f222b94, 0x2d861810, 0x84082257, 0x01282161, 0x20201982, 0x1784588c, 0x01072023, 0x22159128, 0x93070128, + 0x85a0832b, 0x00002e2d, 0xff220002, 0x015e02c0, 0x003b00c0, 0xfd471858, 0x4314200c, 0x23220502, 0x01830706, 0xad5ce983, 0x200b8507, 0x22178322, + 0x18352627, 0x2108ff47, 0x29603211, 0x27222505, 0x26012f26, 0x08054e43, 0x16011f24, 0x35373633, 0x40013336, 0x6509090e, 0x090e4645, 0x120b090a, + 0x151e1312, 0x0e040615, 0x1506040e, 0x0b8b1e15, 0x12121323, 0x3522820b, 0x6545460e, 0x130e0909, 0x1717010d, 0x13131822, 0x0406020b, 0x00820c04, + 0x05020726, 0x0d01100b, 0x33058052, 0x40400c12, 0x05040c60, 0x07080c08, 0x1c121101, 0x0f01010f, 0x0747a518, 0x07200b87, 0x04271c82, 0x40600c05, + 0x82120c40, 0xd0fe2b82, 0x1722730c, 0x0c0c0117, 0x4e830515, 0x56820520, 0x010a0425, 0x180c7310, 0x2a0b8b62, 0x0035001b, 0x0042003e, 0x18061300, + 0x210ac061, 0xf6411133, 0x21ff8305, 0x3f7f2623, 0x15112106, 0x2009ac51, 0x24fa8223, 0x012b013d, 0x071b5a27, 0x33150527, 0x1225a027, 0x070d4239, + 0x1601902c, 0x01302217, 0x39140e0d, 0xd9412512, 0x83c02008, 0x8260201e, 0x3040219c, 0x097f6f18, 0x60600026, 0x1e02c001, 0x2409cb48, 0x17221001, + 0x05ee4816, 0x80021e22, 0xf0211784, 0x25588710, 0x0e0909d0, 0x074d2860, 0x60282307, 0x00820060, 0x10000337, 0x7001c0ff, 0x1c00c001, 0x3a002900, + 0x36250000, 0x39343137, 0x078f5401, 0x21077c53, 0x96823914, 0x184f3320, 0x58352005, 0x0322059b, 0xc3830706, 0x16373623, 0x05ff4117, 0x11100127, + 0x1e080820, 0x074d7301, 0x081e0127, 0xa0112008, 0x20938350, 0x293e82a0, 0x0f015022, 0x2001010f, 0x0582301f, 0x15830f20, 0x272e4027, 0x2b0b0b01, + 0x077b7339, 0x0b2b3927, 0x2f27010a, 0x202c8380, 0x21cb8410, 0x55185001, 0x17830bb8, 0x02000028, 0xc0ff2000, 0xb3822002, 0x46002322, 0x0628b182, + 0x27223123, 0x3f343526, 0x0a7d8018, 0x09fa4e18, 0x14151625, 0x8505010f, 0x4536201f, 0x0f2105d8, 0x09af4e01, 0x2d055c4c, 0x01272223, 0x0d0d0aa7, + 0x3a09090a, 0xbc458dfe, 0x73012405, 0x4409093a, 0x702306d5, 0x4470f2fe, 0x218206a4, 0x85730121, 0x8dfe2121, 0xa9202186, 0x39202885, 0x20053b4a, + 0x20488539, 0x203b8470, 0x930685e0, 0x18002020, 0x29080b64, 0x00a00180, 0x00390024, 0x58521700, 0x18342008, 0x2708496d, 0x17163336, 0x07141716, + 0x062b0583, 0x21070607, 0x3f161737, 0x18273601, 0x080c4ba5, 0x3d901727, 0x01022829, 0x022b1a1a, 0x2d442d2d, 0x17162424, 0x1b1b291e, 0x1d2c0601, + 0x2401011c, 0x90fe3625, 0x1111504f, 0xe29b1850, 0x2022080d, 0x3d292802, 0x10242430, 0x2d440404, 0x1501022d, 0x01102416, 0x12291b1b, 0x22230911, + 0x2425362f, 0x3182a701, 0x0e293782, 0x1686270e, 0x86160202, 0xb7408327, 0x830620b7, 0x16152bb8, 0x35373617, 0x36371617, 0xc282012f, 0xb38db7a2, + 0x50208d82, 0xd922b7a1, 0xb38d1111, 0x5718c783, 0xc02808cf, 0x1100c001, 0x68005f00, 0x27116573, 0x06071716, 0x07063107, 0x0c6d7e18, 0x1627b382, + 0x0706011d, 0x82272623, 0x08be62bb, 0x84171621, 0x34352212, 0x24158237, 0x22012b26, 0xeecb1907, 0x36172d11, 0x06272637, 0xe0171607, 0x01242536, + 0x07a43619, 0x603a0783, 0x01232339, 0x010d0809, 0x09080d84, 0x39232301, 0x010e0d15, 0x010f100f, 0x47420f01, 0x82098305, 0x0d0e2a0e, 0x5c090915, + 0x0b120909, 0x211e820b, 0x12821818, 0x120b0b22, 0x088b6618, 0x10e57e18, 0x2e123724, 0x52823e2d, 0x3e295a82, 0x33122e2d, 0x17111006, 0x05ec6a28, + 0xb7421820, 0x01182205, 0x2c0f830f, 0x10111728, 0x01013906, 0x0f0e0641, 0x83568313, 0x0f13255e, 0x893b060e, 0x4308545e, 0x302f056b, 0x5300bf01, + 0x00006500, 0x31071613, 0x83010f06, 0x82d882e6, 0x262721f5, 0x08aca219, 0x1d161723, 0x072e4401, 0x82373621, 0x421a821b, 0x142108c4, 0x06657807, + 0x33831482, 0x34352724, 0xbe4b3637, 0x6a052005, 0x29081058, 0x0605048e, 0x1b011a0d, 0x1b29291b, 0x0d1a011b, 0x04040506, 0x1a0d0b0c, 0x010c0c14, + 0x05372423, 0x302c1f1f, 0x1601201f, 0xf45a0d0d, 0x0d0d3607, 0x31320216, 0x3131474b, 0x24233906, 0x140c0c01, 0x0c0b0d1a, 0xfa2e1904, 0xaa01210d, + 0x09211383, 0x07f14d79, 0x83097921, 0x365d8355, 0x10110708, 0x2b3b7915, 0x1b2b0d2a, 0x2001011c, 0x0947301f, 0x5b191314, 0x1936073e, 0x47091413, + 0x0232314b, 0x462e2d02, 0x3b2b2b0c, 0x11101579, 0xa5830807, 0x0b51ca20, 0x4600200b, 0xe032051f, 0xc0010002, 0x19000800, 0x33002600, 0x15130000, + 0xb1643533, 0xfe6e1905, 0x011d3609, 0x35112111, 0x23113323, 0x27262726, 0x36373611, 0x11230137, 0x091f1933, 0xa0b02708, 0x07900701, 0xe45d3001, + 0x00ff2408, 0x4d202040, 0x802008bc, 0x88270b8a, 0x01072828, 0x5d280701, 0x282608dd, 0x01a0fe20, 0x0f192060, 0xff4d0e36, 0x0d075a0a, 0x2f002422, + 0x2223a382, 0x41063107, 0x152005be, 0x2006b35b, 0x23948221, 0x2726012f, 0x0482bb82, 0x27343508, 0x36132326, 0x14012b35, 0x32331617, 0x090ee037, + 0x24233809, 0x082f0101, 0x1409080d, 0x09148001, 0x30070d08, 0x23240101, 0x0e090938, 0x4040132d, 0x1a1a1313, 0x39058247, 0x2b2b0c13, 0x3748133b, + 0x12130f09, 0x13120101, 0x4936090f, 0x2b2b3b13, 0x4582130c, 0x2784fe20, 0x7a131321, 0x802808bf, 0x1a00a001, 0x39002600, 0x20088756, 0x07f94433, + 0x7c492320, 0x18052009, 0x2208c967, 0x54051523, 0x6020117d, 0x01228482, 0x72434040, 0x01202b07, 0xc0291b1b, 0x011b1b29, 0x45418001, 0xfe202308, + 0x33540240, 0x86fe2006, 0xda671807, 0x84388308, 0x2137822e, 0x6718a0e0, 0xbf6908d2, 0x0a0b510c, 0x33001824, 0x03544f00, 0xd1201906, 0x35232108, + 0x0812ba18, 0x07112322, 0x2606ea41, 0x37363335, 0x87232726, 0x4d362006, 0x312205c0, 0xe2181716, 0xe3820741, 0x33171623, 0x24e98415, 0x06253311, + 0x20188307, 0x82128315, 0x37362103, 0x35203883, 0x03824083, 0x0d01c029, 0x14a0140e, 0x55010d0e, 0x502308ef, 0x84707090, 0x010f2510, 0x50500f01, + 0x25830584, 0x93200221, 0x70702615, 0x010fe8fe, 0x23258318, 0x100f0118, 0xa1180a8a, 0xfe210906, 0x36961830, 0x01502508, 0x60fe30d0, 0x90254e83, + 0x010f0f01, 0x51048340, 0x3020089e, 0x90201288, 0x01246a83, 0x0f0120a0, 0x5f84548e, 0x00000024, 0x935f0005, 0x00342807, 0x004c003a, 0x597b005e, + 0x45520c7f, 0x36012452, 0x82353337, 0x17162203, 0x235d8215, 0x23070615, 0x26230383, 0x82233527, 0x52c38803, 0xfe234b62, 0x190f0190, 0x52142225, + 0x0125537a, 0x30010f40, 0x5dad190f, 0x0f01220e, 0x056b4120, 0x230d8f44, 0x13000050, 0x30088b62, 0x2111011d, 0x26013d11, 0x23272627, 0x0f060706, + 0x8a6c1801, 0x11332309, 0xf1763301, 0x03112109, 0x82173d41, 0xb8352117, 0x2106a062, 0xb0440001, 0x09a14408, 0x40012022, 0x20097343, 0x939582c0, + 0x08ae62ab, 0x4405bc44, 0x012309cc, 0x521b1212, 0x141906b6, 0x10200f09, 0x5b82f192, 0x26060f4f, 0x00c00180, 0x824d0042, 0x29b984ed, 0x17230706, + 0x011f3233, 0xe5821716, 0x012b0623, 0x09667207, 0x23353323, 0x23118207, 0x3d262722, 0x07296918, 0x34353326, 0x013b3637, 0x1c822f82, 0x07272622, + 0x3a069e6b, 0xa0232726, 0x16701602, 0x10160202, 0x0b0c7468, 0x01010e66, 0x0c0b660e, 0x83106874, 0x28188413, 0x09372008, 0x090e130d, 0x84028209, + 0x130e2904, 0x2037090d, 0x50021608, 0x4020af83, 0x01210484, 0x05e765a8, 0x26049029, 0x070f0f07, 0x47900426, 0x90220771, 0x35820937, 0x2006e77f, + 0x20438340, 0x201b8237, 0x5c6f18d8, 0x00002508, 0x20000500, 0x28068752, 0x002a0021, 0x00400035, 0x082b454b, 0x16173224, 0xda82011d, 0x2105e36e, + 0x4844010f, 0x27262905, 0x05112726, 0x013d3637, 0x1520c182, 0x06210c82, 0x05864907, 0xb9183320, 0x0a8a09a7, 0xa75a2020, 0x21332807, 0x0c011516, + 0x5e52150d, 0x6026090b, 0x0c010838, 0xe619e033, 0x08900876, 0x14570120, 0x01202b06, 0x66211615, 0x0a121317, 0xb8462225, 0xf8602e08, 0x66080419, + 0xa898010c, 0x0f01010f, 0x200498e0, 0x09bf7600, 0x2f001522, 0x200c1d44, 0x08944221, 0x1d052124, 0xae180601, 0x3a69096a, 0x84332005, 0x0e8e5d06, + 0xfe28be83, 0x021001c0, 0x80021616, 0x84076941, 0x156b7508, 0x68687828, 0x16020216, 0x05835050, 0x0a89d020, 0x220b077b, 0x972e0015, 0x35132497, + 0x44272623, 0x57180571, 0x152008ce, 0x9694a983, 0x5b188820, 0x97951311, 0x18c8fe21, 0x2a190f5b, 0x01000020, 0x008001c0, 0x18320019, 0x18119d55, + 0x20098043, 0x080c5225, 0x8705ff51, 0x29072119, 0x084d5418, 0x4c8a8a21, 0xa02305ad, 0x90a06001, 0xfb541814, 0x8989210b, 0x2205e94c, 0x18a0a0a0, + 0x870a5f55, 0x02002315, 0x93824000, 0x9387e020, 0x2c7b2520, 0x09387c0e, 0x44180520, 0x44180e2f, 0xd7200915, 0xa0227f90, 0x9491a0fe, 0x0b245518, + 0x0025949e, 0x00020000, 0x22978220, 0x41a001a0, 0xa954052b, 0x14152307, 0x86181617, 0x13200d0e, 0x0e0b0119, 0xaa831f83, 0x92f72721, 0x150441ee, + 0x0a0f5618, 0x93085641, 0x839682c1, 0xe0ff2397, 0x2f41a001, 0x07815507, 0x37343523, 0x04871836, 0x15162508, 0x13010f14, 0x2005fb54, 0x20198f26, + 0x1897a907, 0x41093b56, 0x00241ced, 0x00200001, 0x93840482, 0x1daf5e18, 0x0b42a020, 0x424e8805, 0x4a821428, 0x4f824020, 0x4f852020, 0x5e182520, + 0x9f9219af, 0x00205095, 0xa3824e82, 0xa0016027, 0x19004001, 0x08255700, 0x18141521, 0x200f3f4a, 0x13b441c9, 0x42370121, 0x52821161, 0x4020f784, + 0x20205382, 0x1d3f4a18, 0x49205394, 0x02235292, 0x18ff0000, 0x20072fa4, 0x08374420, 0x21113324, 0xfd5b3311, 0x06032105, 0x0b28cb18, 0x80212008, + 0x0112121b, 0x40800140, 0x1b121201, 0x116d80fe, 0x15160102, 0x21e60121, 0x02011516, 0x44a6fd11, 0x2d58051f, 0x232c8307, 0x1102a0fe, 0x01241d83, + 0x11211615, 0x52186e82, 0x15220baf, 0xab442700, 0x575b1818, 0x14a44410, 0x640c8861, 0xa45c052e, 0x18fe200f, 0x200cb773, 0x527f8300, 0x7f8f075b, + 0x200a5848, 0x197f9013, 0x2008bf17, 0x073646e0, 0x7818e020, 0xc0200d00, 0x0ffe1a19, 0x7d8dfe84, 0x00000224, 0xa7822000, 0x26006022, 0x094b4318, + 0x2109d657, 0xb6550706, 0x023d2711, 0x31373621, 0x259f3736, 0x22010025, 0x47083322, 0x082305dd, 0x5d0f1018, 0x9f78057b, 0x9e012008, 0x33e8241f, + 0x4e012222, 0x01240535, 0x0818100f, 0x12253889, 0x20201b12, 0x821e9e48, 0x5edb8ed7, 0x2f5f054d, 0x37362409, 0x18353736, 0x250a177d, 0x17161716, + 0x766f021d, 0x21259f05, 0xdc9dc001, 0xdc9eff20, 0xbd9e9820, 0x1b191e9e, 0x11220b0b, 0x09682300, 0x006b2406, 0x1800007d, 0x21111199, 0xa7182611, + 0x37200e69, 0x0d294818, 0x4c18f783, 0x0523119e, 0x51313536, 0xf04506c0, 0x11372105, 0x13201190, 0x07e8ea18, 0x7a262721, 0x896306ec, 0x0f0c6811, + 0x6300ff21, 0x01200f62, 0x2710885e, 0x0e0e8ffe, 0x0f13130f, 0xe2200591, 0x7c4d168b, 0x81961809, 0x5e7c1808, 0x18118708, 0x681033f6, 0xb520108c, + 0x2620528c, 0xfe210d8b, 0x22818bda, 0x18000100, 0x18099361, 0x721b4963, 0x1573198c, 0x06234f18, 0xc001002a, 0x34001a00, 0x58004600, 0x1c8d5918, + 0x53742720, 0x16172109, 0x2d095358, 0x37173637, 0x06310714, 0x26272223, 0x8c5b3627, 0x17152205, 0x06787022, 0x2007af43, 0x089f9923, 0x160e5c28, + 0x17212117, 0x0c0b0e16, 0x1d11090a, 0x1d29291d, 0x0b09111d, 0x092c0b0b, 0x090d0e09, 0x09010109, 0x090e0d09, 0x0b8a8009, 0xd6981982, 0x0d10ba35, + 0x0c01010c, 0x090b100d, 0x10140c0b, 0x10010110, 0x820c1410, 0x7076200c, 0x86760b7c, 0x0c7b7d06, 0x26056b73, 0x0033001a, 0x41570045, 0x06201d0b, + 0x20055953, 0x066f5c37, 0x5c59fa82, 0x3d0a4105, 0x0f05612b, 0x220d030d, 0x222e2e22, 0x2a088222, 0x1a0a050f, 0x1a23231a, 0x41310a1a, 0x7b31350a, + 0x0e06030d, 0x01191928, 0x28191901, 0x0d03050f, 0x05f25f1e, 0x41b51e21, 0x17421b0a, 0x002c240c, 0x4149003e, 0x03201c0b, 0x4110eb41, 0xd04d1104, + 0x1908420a, 0xe0415020, 0x8dc0200d, 0x18d020f3, 0x4109fa7c, 0x012018fa, 0x0c097318, 0x180c7f7e, 0x23085a40, 0x04000000, 0x002c0382, 0x80018002, + 0x25001300, 0x50003700, 0x1808cf5e, 0x210b0dd3, 0xfd460521, 0x42072010, 0xdc4907e8, 0x16172505, 0x37362515, 0x4c0d454c, 0xc02a075d, 0x02363652, + 0x52363602, 0x09870001, 0x0100ff23, 0xd94c1830, 0x1818200b, 0x2a0c51f0, 0x161602d0, 0x02162002, 0x89201602, 0x80012109, 0x40874283, 0xb8200783, + 0x3820348b, 0x68204e8b, 0x45843b8e, 0x000e0022, 0x02200082, 0x2105f762, 0x95180022, 0x702c0943, 0x8a007d00, 0xa4009700, 0xbe00b100, 0x20177f48, + 0x0fd31817, 0x0737230a, 0x0e893736, 0x3f20198b, 0x5105b97d, 0x339906b4, 0x36203e8a, 0x19b34d8d, 0x1649678c, 0x6bc02009, 0x40200846, 0x0adf5618, + 0x15f55618, 0x18015021, 0x8d089e95, 0x07fb4e2b, 0x57187020, 0x15ab1437, 0x0364578a, 0x0fe56305, 0x0a265818, 0x0a219618, 0xb022998a, 0xa687010f, + 0x2b8a158a, 0xc589d020, 0x5818158a, 0x15a00a46, 0xfb43578a, 0x0057370a, 0x00980060, 0x130000a7, 0x01391716, 0x37363515, 0x17163336, 0xe77a3130, + 0x18362007, 0x2127a587, 0x66180722, 0x11220d7e, 0x4a823435, 0x37361723, 0x23178335, 0x3736021d, 0x362a0a82, 0x15173233, 0x16011f16, 0x03823d17, + 0x15373222, 0x06221584, 0x26843507, 0x23061536, 0x26352726, 0x2726012f, 0x22232615, 0x07061507, 0x17161537, 0x16328b82, 0x27263517, 0x20272631, + 0x1c140817, 0x2f3b1e1b, 0x8718272f, 0x152522f9, 0x1318191a, 0x05fc450d, 0x20230582, 0x8217251b, 0x083e080e, 0x221a1608, 0x2c08081e, 0x0303011d, + 0x0808241c, 0x080a1c22, 0x212f2f21, 0x08082f21, 0x0d0e1c24, 0x08181a03, 0x25221e08, 0x1d23901b, 0x05050303, 0x231d0808, 0x1501c001, 0x07080101, + 0x88180307, 0xfe210e31, 0x318818e0, 0x04052512, 0x68040506, 0x23057d45, 0x28180180, 0x3d080982, 0x4a07089e, 0x04050805, 0x02475043, 0x48040602, + 0x05480107, 0x0101010b, 0x010a0245, 0x09044801, 0x0d460304, 0x0d055005, 0x47030c44, 0x460a0101, 0x07010304, 0x07014504, 0x65080750, 0x29820450, + 0x50010227, 0x040b0302, 0x05a34e00, 0x0160022d, 0x001900a0, 0x1300002c, 0x4e313526, 0xf86f069e, 0x6c27200d, 0x29201212, 0x20055650, 0x8a6c18c0, + 0x6df7200a, 0x6920102e, 0x2005464e, 0xec5718c0, 0xb7fe210c, 0x2d0e6659, 0x00000300, 0x8002c1ff, 0x1300bf01, 0xf5622d00, 0x31072305, 0x30190706, + 0x17260ddf, 0x14311506, 0x7218011f, 0x21201288, 0x510df562, 0x012a0a0a, 0x0b0c0d89, 0x06038004, 0x08880d06, 0x09095024, 0x0b5e5a5a, 0x219a8309, + 0x0583cefe, 0x8309135e, 0xbf01211f, 0xfe213583, 0x83378340, 0xc0012109, 0x78200983, 0x59212883, 0x20d68559, 0x5e358670, 0x3f82064b, 0xf3521d89, + 0x40022c05, 0x1600a001, 0x00004100, 0x18313713, 0x200d6d71, 0x05c45e31, 0x3520148d, 0x24081d59, 0x17160706, 0x495a1832, 0x27262608, 0x6b753523, + 0xac651801, 0x01122508, 0xeb15156b, 0x203c0f8b, 0x011b1b29, 0x07070701, 0x12020109, 0x180a0404, 0x01151418, 0x4b313202, 0x60200130, 0x0bbe6518, + 0x60140925, 0x821c1c14, 0x18092004, 0x0809d265, 0x40140926, 0x291b1b01, 0x070e0d17, 0x02120b08, 0x14130502, 0x4b382525, 0x40023231, 0x10000100, + 0xb001f1ff, 0x10009001, 0x080cbf63, 0x17161529, 0x01133716, 0x100e07ae, 0x17a0fe13, 0xb0190604, 0x0b191802, 0x13640190, 0x90070e10, 0x0218190b, + 0x040619b0, 0x82600117, 0x08934a36, 0x0c824020, 0x2309be52, 0x07331523, 0x093be218, 0x23069d4b, 0x11013b16, 0x17245b82, 0x37233533, 0x098b7318, + 0x09184018, 0xc0011123, 0x05be4137, 0xb3f33623, 0x054a42d3, 0x2506b947, 0x12120120, 0x1490e01b, 0x41365321, 0x372205af, 0x6818d340, 0xcd4907b9, + 0x055c4506, 0xfed34023, 0x056143cd, 0x01221686, 0xd7440013, 0xc0012d05, 0x0800c001, 0x59005000, 0x00006200, 0x0f6beb19, 0x013b3622, 0x23191a5d, + 0x06070623, 0x2111415e, 0x475d013d, 0x1833200b, 0x5e08fbd0, 0x50200757, 0x2b054956, 0x0d501602, 0x231d160d, 0x12121b60, 0x230e195d, 0x36252401, + 0x3e5d1692, 0x55e8200a, 0xfe210713, 0xe28418c8, 0x0d6c1808, 0x19182b08, 0x58091413, 0x12120111, 0x155d071b, 0x3607240f, 0x95012425, 0x8bc72019, + 0xa2b5182b, 0x0aae7c08, 0x330a3f5b, 0x00390030, 0x005f0041, 0x07261300, 0x16011706, 0x012f3637, 0x2405f341, 0x010f2627, 0x10657806, 0x27362723, + 0x28018326, 0x36172707, 0x17163117, 0x22088216, 0x82170627, 0x25372108, 0x2205ed43, 0x193f1617, 0x240e4006, 0x013f3435, 0xa7611827, 0x5b8e210a, + 0x3d155678, 0x08122060, 0x35292008, 0xc8932c35, 0x14191917, 0xa873081e, 0x1e2d03ba, 0xfe262626, 0x567839de, 0x323d2115, 0x0bb66118, 0x785a6f21, + 0x603c1916, 0x2c2b2919, 0x03032721, 0x0b9d7321, 0x21130304, 0x92fe5a2a, 0x091d303e, 0x38e40b09, 0x3e313699, 0x00000028, 0xff000002, 0x01c000c0, + 0x001100a0, 0x074f4936, 0x200be976, 0x08b37d07, 0x68011d21, 0xcd580cc2, 0x05536f05, 0xb94e9020, 0x7c90200f, 0x8318063d, 0x0e830eb6, 0x7f640120, + 0x089d6408, 0x2005f542, 0x0b8f45e0, 0x0c82c020, 0xbf690020, 0x00c0280a, 0x0059001f, 0x41340100, 0xbb1808bc, 0x0221098b, 0x05d74132, 0x18352321, + 0x2308b8b6, 0x0717013b, 0x2109c843, 0x1a193f32, 0x52180eee, 0x22320a25, 0x2627010f, 0xe001012b, 0x20100f0f, 0x0504040c, 0x8e85130a, 0x07d98818, + 0x8540fe21, 0x5a0f230f, 0x09850f5a, 0x0a102026, 0x100a5656, 0x1791db86, 0x12a0012b, 0x10070909, 0x0c0c0c07, 0x0c5c7312, 0xd8438020, 0x80802106, + 0x0e22ea85, 0x51827a7a, 0x03820e20, 0x9341118b, 0x00022505, 0x39008001, 0x4718f383, 0xd4af0a79, 0x981d2d41, 0x21f097c0, 0x2441c001, 0x86012017, + 0x21d99dd1, 0x184100ff, 0x02003017, 0xe0ff2700, 0x99012002, 0x25001e00, 0x58010000, 0x3b210651, 0x06db4103, 0x57012b21, 0x133109cf, 0x3727012b, + 0x23010717, 0x501212ea, 0x09691b13, 0x32b085d7, 0x1212837c, 0x191a138a, 0x69090614, 0x448a7c50, 0x83ea8701, 0x1350210d, 0x20056d41, 0x290c8383, + 0xfe12128a, 0x8a7d5099, 0x0f460043, 0x0068230b, 0xf4421300, 0x0572620b, 0x18163321, 0x210710cb, 0x2e603736, 0x057e5f07, 0x6607015b, 0x06220fd1, + 0x20832307, 0x2f853520, 0x26211d8b, 0x05a86127, 0xc0373626, 0x01120c01, 0x27098177, 0x1502010c, 0x0d0e1439, 0x0e230682, 0x51140e09, 0x092809f0, + 0x0102150e, 0x39140e0d, 0x31900682, 0x319b7920, 0x31827920, 0x4ccb5720, 0xb0867e90, 0x200c8f55, 0x09f17813, 0x17161522, 0x25056d4b, 0x26272635, + 0x4b180727, 0x8f60080f, 0x013b2105, 0x4605ae60, 0xc36306b4, 0x6135200a, 0xa363054e, 0x82012006, 0x02802f07, 0x01021616, 0x30422a2b, 0x16020216, + 0x05834848, 0x2a423024, 0x1784012b, 0x36252428, 0x01242536, 0x2a83c001, 0x1b29a024, 0x0888011b, 0x2983d820, 0x30442825, 0x83220a30, 0x2503832a, + 0x30300a22, 0x17842844, 0x3d823584, 0xd75d2820, 0x0020220a, 0x0c2b4641, 0x82373621, 0x219c82bd, 0xd1180714, 0x27200ad3, 0x2721bb82, 0x05e44106, + 0x1d062723, 0x8de88301, 0x0a0d46d5, 0x84179f21, 0x120e21a6, 0x9d839583, 0x3101b927, 0x122b1a1f, 0x217e8314, 0xd68f012f, 0x220bee45, 0x8531287c, + 0x1b2023a9, 0xd887cd0e, 0xfe913628, 0x220e0457, 0xb9820106, 0x03250923, 0x30de8e03, 0x0f000100, 0xf001c3ff, 0x1c00c001, 0x32010000, 0x209d831f, + 0x05f25215, 0xdb460620, 0x37360805, 0x3f363734, 0x01333601, 0xbd060700, 0x010b0a11, 0x2e2f1212, 0x551b1a56, 0x12122f2e, 0x110a0b01, 0x010706bd, + 0x075003c0, 0x33140f0f, 0x42414545, 0x2b0c0c2b, 0x101a4142, 0x0320078e, 0x250bff57, 0x002f0022, 0xfc831300, 0x15070625, 0x82263521, 0x18232061, + 0x88098e57, 0x0515220a, 0x0aa67221, 0x52546020, 0x01c02405, 0x57140e0d, 0x3944065c, 0x60012306, 0x158340fe, 0x96540120, 0x20a02105, 0x0d376618, + 0x0e090922, 0x20079045, 0x426618a0, 0x7755180b, 0x0033240d, 0x82490040, 0x1d162dfb, 0x06071401, 0x2726012f, 0x17161523, 0x8e820d82, 0x37363728, + 0x06070635, 0x08822627, 0x8b5f0a82, 0x261b8305, 0x013f3633, 0x43031736, 0x262407d3, 0x03333527, 0x3a070849, 0x0c0cf401, 0x14a00e0c, 0x111d4105, + 0x1112e012, 0x0c1a381d, 0x12081314, 0x832a2021, 0x090e2991, 0x14054109, 0xd40c0ea0, 0x08914f18, 0x6770e021, 0x24080516, 0xb9010f01, 0x0f600f0a, + 0x2003090a, 0x0e231304, 0x90221b1a, 0x1a1b2290, 0x35121d0e, 0x140c0712, 0x0a1a1a26, 0x05b7441c, 0x04131827, 0xfe090320, 0x09d16067, 0x23050763, + 0x010f0f01, 0x022fdf83, 0xc0ff0000, 0xbf01ff01, 0x3f002d00, 0x84370000, 0x222323c2, 0xb7822627, 0x36333722, 0x3621cf84, 0x20e78217, 0x82df8207, + 0x06152303, 0xe782010f, 0x82013d21, 0x3727210e, 0x08100967, 0x0d1f9d2b, 0x6a070505, 0x0606070e, 0x52291535, 0x322a0304, 0x25313132, 0x03070512, + 0x3c1a1a04, 0x22010605, 0x0c0c0c59, 0x0d120f15, 0x0ba851e3, 0x0e1f3f25, 0x82140e12, 0x59220819, 0x05060122, 0x041a1a3c, 0x12050703, 0x32313125, + 0x04032a32, 0x35152952, 0x0e070606, 0x0505076b, 0xed51d90d, 0xaf48180b, 0x0029210c, 0x1b834a18, 0x78182720, 0x4a180ad3, 0xf12e1c7d, 0x0e0e1111, + 0x0e0e5757, 0x0e681111, 0x4a18680e, 0x79201876, 0x57212183, 0x202d8357, 0x7e2a8268, 0x1a210bf7, 0x188b8200, 0x211a734a, 0x2e190617, 0x4a180c43, + 0x8ab8186d, 0x180f1741, 0x201a634a, 0xb5fa1837, 0x5d4a180a, 0x54ef8e1c, 0xb48e1871, 0x18101741, 0x221a534a, 0x18372607, 0x18087d7a, 0x8e1c4d4a, + 0x494a188b, 0x338c8f19, 0xff000002, 0x014002c0, 0x001100c0, 0x01000068, 0x36313734, 0x24089057, 0x35262722, 0x05ba7317, 0x4905a547, 0xc01909e6, + 0x36211b6f, 0x0b206c37, 0x16170623, 0x06c6623f, 0xd24d3520, 0xebd41809, 0x61c0190d, 0x2d44362d, 0x1107022d, 0x380e0e11, 0x0e381111, 0x0711110e, + 0x291b1b01, 0x06624930, 0x7e010b21, 0x50220c8e, 0xd345341c, 0x1c342107, 0x1f52c019, 0x442d2d24, 0x51830706, 0x5c825682, 0x070e0e23, 0x203c8306, + 0x080258d0, 0x27054742, 0xc001c001, 0x44003000, 0x08cb4118, 0x2005bd48, 0x06d97506, 0x6b067e48, 0x1620083b, 0x25054571, 0x26272627, 0x22441323, + 0xb8431807, 0x013b2708, 0x161722e0, 0x9454f001, 0x089e5408, 0x28021034, 0x222c3d29, 0x05061222, 0x0c0d0c04, 0x130a060c, 0xe5861813, 0x2206284b, + 0x70800140, 0x1220056e, 0x0f4d4919, 0x293d3028, 0x16010228, 0x38832516, 0x04040526, 0x0d0c150c, 0x0d8e8f18, 0x2006c767, 0x28cb8200, 0x002c0011, + 0x0050003e, 0x07314462, 0x210b076c, 0x86180633, 0xcb181834, 0x1520116b, 0x4908006f, 0x372007c5, 0x20101057, 0x6a861801, 0x07b95608, 0x18183b43, + 0x6b09f75d, 0xb91807cb, 0xa4590f2b, 0x0851570c, 0x20070e57, 0x8ba21848, 0x01502116, 0x0e6d4718, 0xad184020, 0x90200fab, 0x85052f46, 0x00002b05, + 0x00080003, 0x00b80188, 0xd75c00f8, 0x18002005, 0x41113548, 0x26200527, 0x2005e25a, 0x20fe8237, 0x05f35c1f, 0x0b75c818, 0xde187820, 0x0f270839, + 0x10181810, 0x8fa0010f, 0x83682010, 0x20148b15, 0x8f108fc0, 0x8f38200f, 0x82002042, 0x25af8200, 0x7800e8ff, 0xaf889801, 0x31171624, 0xe6731716, + 0x20938307, 0x20118f35, 0xd1bd183f, 0x8f402011, 0x900f8f6c, 0x8f58207c, 0x18e1a18d, 0x2b08635a, 0xa001c001, 0x28001500, 0x4b003900, 0x18186f58, + 0x20097da4, 0x05684926, 0x85152721, 0x07062112, 0x76181087, 0x13611109, 0x02203014, 0x38384516, 0x02012121, 0x02021616, 0x82553839, 0x41162405, + 0x83022b2a, 0x1d01250f, 0x02162c1e, 0x0caf6718, 0x2815d365, 0x01021668, 0x38382121, 0x223d8345, 0x82393855, 0x8260203d, 0x2a2b220a, 0x23058241, + 0x1d1e2c16, 0x78205e82, 0x450c4c42, 0x535d0573, 0x002a2105, 0x09556e18, 0x6348be85, 0x17162105, 0x25200183, 0x0741c918, 0x2005f677, 0x22521807, + 0x0cbc2a1a, 0x900c0d0c, 0x0c900b0b, 0x18a1470d, 0x0e076d33, 0x06070eb0, 0x0d075807, 0x0658080d, 0x00000006, 0x28038203, 0x01400200, 0x00270080, + 0x060d752c, 0xc5523120, 0x18172005, 0x2008f39d, 0x20938321, 0x07d94235, 0x21260884, 0x35211517, 0xc27f2321, 0x011d2a08, 0x23060714, 0x26272221, + 0x054f613d, 0x18075c4d, 0x8b09e75b, 0x40fe2b11, 0xfe400140, 0x090920c0, 0xca44010e, 0xc0fe2406, 0x5909090e, 0x50200500, 0x6207e250, 0x118d084a, + 0x83c06021, 0x9e45182b, 0x0dd7670a, 0x20099f63, 0x07ac5b16, 0x2005a363, 0x09336a17, 0x25141042, 0x02169058, 0x04841602, 0x2015eb41, 0x085771c8, + 0x00000135, 0x6001c0ff, 0x2d00c001, 0x22370000, 0x15063107, 0x54161714, 0x6b18051d, 0x26210aad, 0x5f471823, 0x1411250b, 0x012b0607, 0x2506c145, + 0x1b1b2960, 0xa5184901, 0xd78212bb, 0x19006021, 0x2209830a, 0x544a3301, 0x802005fb, 0x09686218, 0x0ecdfe24, 0xf75f0909, 0x63838705, 0x3b220887, + 0xf5821601, 0x75371121, 0x0620082b, 0x0c8aad18, 0x27341123, 0x5083a526, 0x01250767, 0xfe291b1b, 0x218491cd, 0x84833301, 0x7b410020, 0x08f77b0d, + 0x250a884c, 0x27262726, 0x82180521, 0x7f410d9a, 0x11012114, 0x0d968218, 0x21158441, 0x821880b1, 0x5d180d92, 0x15220aff, 0x5f182200, 0x053019e1, + 0x14151617, 0x3727010f, 0x17323336, 0x07173707, 0x2305ba4b, 0x3736013f, 0x06388d95, 0x150c0c0e, 0x0f0d1547, 0x69ce0d10, 0x09066947, 0x0606093c, + 0x06020f02, 0x6c259795, 0x10100c0e, 0x2230820d, 0x83950c0c, 0x8429832e, 0x41002033, 0x2a280e23, 0x16010000, 0x17163117, 0x0a7f7418, 0x3637362b, + 0x06072137, 0x33171607, 0x05314907, 0x36171629, 0x27263537, 0x48800123, 0x012d1119, 0x0216e040, 0x875e1602, 0x11110e0e, 0x05944287, 0x95959820, + 0x1d837020, 0x11118726, 0x66870e0e, 0xa0213383, 0x095b6616, 0x01400227, 0x002a00bf, 0x188f8256, 0x200e8b88, 0x0809742b, 0x23070623, 0x06674522, + 0x18051979, 0x1808564f, 0x2308f958, 0x21171611, 0x7d05e54d, 0x07490565, 0x112f0808, 0x0e018001, 0x07900c0e, 0x0e0c9007, 0x0e20010e, 0x01171723, + 0x010c1003, 0x04021002, 0x18170b03, 0x02011515, 0x503d2928, 0x160180fe, 0x45102217, 0x10260525, 0x0f01010f, 0x6d182001, 0x2d080b48, 0x1722e0fe, + 0xa8010116, 0x0a05070f, 0x0a0a0788, 0x060b8807, 0x01480f07, 0x20231717, 0x110d0708, 0x10040101, 0x2f1e1e10, 0x0228293d, 0x66187848, 0xfe220b66, + 0x4d820fe0, 0x45845987, 0x01216982, 0x0dcb4e20, 0x2b001a24, 0xc1603d00, 0x0737271c, 0x3f262706, 0x02823601, 0x0f161724, 0x2a190601, 0x6d481425, + 0x91332817, 0x040a0a0f, 0x870d0538, 0x06255307, 0x4805e443, 0xbb2818fc, 0x0a0a0438, 0x050d910f, 0x45200787, 0x6d0c4646, 0x87180c63, 0xe9440843, + 0x18691805, 0x27212208, 0x05a87b22, 0x84163321, 0x164e42b7, 0x080aa030, 0x07060a68, 0x070fd00f, 0x08680a06, 0x4418200a, 0x44180994, 0x802c09a8, + 0x0f0b7008, 0x0d01010d, 0x08700b0f, 0x820ed342, 0x1813207f, 0x25141545, 0x011f3217, 0xac530716, 0x013f2305, 0x6a433336, 0x427e8f14, 0x7f9e15ca, + 0x1091e218, 0x3637362a, 0x14071137, 0x2706010f, 0x08529318, 0x68011521, 0x644b057d, 0x05ad4608, 0x60185a8c, 0xfe2009c4, 0xa38f268a, 0x086f4118, + 0x00a0012d, 0x37000059, 0x30311514, 0x18141531, 0x230a989a, 0x17161716, 0x2009f14c, 0x89848226, 0x3d34230d, 0x0e4d3401, 0x6a45180a, 0x057b430b, + 0x20096a4d, 0x06bd4230, 0x36181c25, 0x42184836, 0x18250502, 0x1423232c, 0x200b857e, 0x06aa4a90, 0x23147e24, 0x1f872c23, 0x36364823, 0x06f25018, + 0x04d01026, 0x04041004, 0x21066c42, 0xbc682827, 0x16152207, 0x8a138524, 0x1624221e, 0x211e8715, 0xfc482728, 0x01002706, 0xe0ff2000, 0xe7826001, + 0x0000432d, 0x31373613, 0x1f323736, 0x82371601, 0x262724b4, 0x5a26012f, 0xb08905f7, 0x0f141524, 0xfb820601, 0x4f562120, 0x36352208, 0xbc80183d, + 0x9035360a, 0x1b121201, 0x0d510a0b, 0x03050c0b, 0x510d0605, 0x24361514, 0x47751825, 0x0e102607, 0x0a08091d, 0x074a1812, 0x17c72107, 0x29063d6a, + 0x1b200170, 0x03011212, 0x3282041b, 0x04263a82, 0x2501071b, 0xa5863624, 0x171a2d24, 0xbd181032, 0x2622092b, 0xdc852d2c, 0x46004021, 0x24240a1f, + 0x8b003000, 0x08b54818, 0x6607a14c, 0xca8305aa, 0x1415232c, 0x22230607, 0x023d2627, 0x52563317, 0x15232507, 0x14170605, 0x3320cf82, 0x29059449, + 0x07060716, 0x01392706, 0x01822726, 0x26312323, 0x20088423, 0x822e8237, 0x30312123, 0x0db56518, 0x26852f20, 0x42181d86, 0x5145087a, 0x06072305, + 0xdb190015, 0x2e082893, 0x04010101, 0x0d011c0a, 0x0f0d0f0f, 0x08040808, 0x0f272224, 0x0107080f, 0x02010201, 0x05050c02, 0x0c0c0504, 0x0105030d, + 0x060d0707, 0x82070a17, 0x03012615, 0x1a031b0a, 0x082d821c, 0x2209032e, 0x0b062723, 0x060c070c, 0x0b050306, 0x09050d0b, 0x0b160509, 0x0e800109, + 0x28020909, 0x232d3d29, 0x0d801222, 0x04060b0c, 0x8c0c0505, 0x97821583, 0xc0e0a022, 0x3807264d, 0x010910a0, 0x09080302, 0x0a070704, 0x1814150c, + 0x070f122b, 0x03030504, 0x27008201, 0x0d0b0c05, 0x0505050d, 0x7f828883, 0x06034108, 0x03090a03, 0x09080402, 0x0b130701, 0x2b171414, 0x01071110, + 0x04030203, 0x0d0d0c0b, 0x01030506, 0x03010203, 0x00070507, 0xff000001, 0x013f01e0, 0x0049009f, 0x27261300, 0x06072631, 0x011f0607, 0x8a0a4942, + 0x6784180a, 0x0a404312, 0x27363724, 0x3f822726, 0x27010f2d, 0x0c0d083b, 0x03020b0c, 0x43345f07, 0x50210520, 0x42078650, 0x0d870511, 0x342d0786, + 0x0203075f, 0x0d0c0c0b, 0x01656508, 0x83378392, 0x858e203f, 0x8520202b, 0x06a24a06, 0x86066a42, 0x838e2014, 0x223b8333, 0x45009898, 0x8026068b, + 0x3a00a001, 0x8f794600, 0x42c9aa08, 0x1721086d, 0x09126023, 0xb8826020, 0x55062e4a, 0x7c860791, 0x2106cf6d, 0x0f4f70a0, 0x284e1a07, 0x06eb7810, + 0xf5192f86, 0x20240d16, 0x3d292802, 0xe0213983, 0x07e141a0, 0x240afb7a, 0x003e00a0, 0x20c58242, 0x1695414a, 0x3316172a, 0x33013f36, 0x32171617, + 0xe4430682, 0x09824108, 0x26272330, 0x010f0627, 0x33172723, 0x013f2707, 0x07832317, 0x0c043e2a, 0x060d0d0b, 0x14320405, 0x2e058e41, 0x17083929, + 0x2e2a0717, 0x1717072a, 0x85293908, 0x32142114, 0x3707dd43, 0x072a4039, 0x2a071818, 0x1b4e3940, 0x076d100b, 0x1b600e07, 0x8a010b10, 0x20074d7c, + 0x059a4196, 0x0216aa25, 0x82a8a816, 0x85aa2004, 0x0d96240f, 0x83040c0b, 0xa8aa3e43, 0x17010117, 0x2eeaaaa8, 0x1c1c402e, 0x002e2e40, 0xff000002, + 0x018001c0, 0x001700c0, 0x25db821b, 0x36313736, 0xb74b3337, 0x0a8a4905, 0x35230529, 0x12010017, 0x18a01b12, 0x230d4df2, 0x80808001, 0x20058c49, + 0x20ab8280, 0x08dd6efe, 0x40800125, 0x82008080, 0x8c052000, 0x0026245f, 0x4e3c0031, 0x232b12c5, 0x3d262722, 0x15332301, 0x4c032733, 0x1520098f, + 0x2c470a94, 0x1b002409, 0x83011212, 0xc0a02577, 0xa0908080, 0x0998e018, 0xde6f0992, 0x83202010, 0x808023c8, 0xec7500ff, 0xcbb21910, 0xff27310e, + 0x010f02e0, 0x002200a0, 0x005e0042, 0x17000062, 0x44053c4c, 0x1f2405be, 0x37341101, 0x2005564c, 0x24118511, 0x010f1617, 0x05b45e37, 0x0b831620, + 0x2409b45e, 0x3f262726, 0x24ea8301, 0x1f161335, 0x05324502, 0x012f2628, 0x07060723, 0x1c832706, 0x37360234, 0x07273307, 0x0e0e0ab8, 0x0109580a, + 0x0c0b0901, 0xac420a0d, 0x0d0a2307, 0x13830b0c, 0x83885821, 0x091525b9, 0x334a0e07, 0x20051f42, 0x280c8880, 0x400a1360, 0x04040510, 0x2400820c, + 0x07580707, 0x2f078207, 0x0504040c, 0x130a4010, 0x14142814, 0x600a0a16, 0x47835383, 0x2e012422, 0xfe223e85, 0x0f8324d2, 0x0d0c0a25, 0x8296600b, + 0x13012412, 0x42491013, 0x0a870538, 0x01200129, 0x0c208011, 0x83070c0c, 0x0e0e215c, 0x5b835383, 0x1180202b, 0x28289001, 0x04000000, 0x10274100, + 0xe84d1320, 0x16172705, 0x36371617, 0xc462013f, 0x11352107, 0x372c1185, 0x13012f36, 0x16311714, 0x0607013b, 0x2d0c1548, 0x26273637, 0x07222327, + 0x06131506, 0x1b83020f, 0x3c194084, 0x2f270842, 0x07272602, 0x41231737, 0x33252227, 0x09070e4a, 0x06bb4515, 0x27410c89, 0x1414241c, 0x41960128, + 0xfe210b28, 0x052841d2, 0x412e0121, 0x0a230728, 0x82ebfe60, 0x10492313, 0x1a481313, 0x410a8706, 0x05321f29, 0xe0ff0700, 0xa0014002, 0x36002200, + 0x5e004a00, 0x51427200, 0x6b172024, 0x3b230754, 0x4c173201, 0x35200665, 0x982013ba, 0x201d6342, 0x45f185a8, 0x0d850721, 0x86064356, 0x076d4506, + 0xe0201b85, 0x61420686, 0x68511820, 0x8650180c, 0x0573420d, 0x198c0585, 0x00000022, 0x280b3741, 0x00480035, 0x006e005b, 0x23614200, 0x20095e4a, + 0x05456322, 0x21473320, 0x4112ad0a, 0x2d411f33, 0x05344131, 0x20226d42, 0x181b414b, 0x8c0c2841, 0x0693430c, 0xa001082d, 0x48002500, 0x72005900, + 0x43010000, 0x904b0570, 0x07bb6209, 0x35012b22, 0x08356918, 0x3f320323, 0x083a4801, 0x0bbf8d18, 0x8c482720, 0x33162506, 0x22230625, 0x09264c18, + 0xa6431520, 0x1836200b, 0x25082240, 0x17161714, 0xb9826001, 0x85101021, 0x303021e8, 0x10200785, 0x0a831382, 0xe644c020, 0x0e0a251b, 0x07071e01, + 0x3a08dd4d, 0x07291101, 0x0b020208, 0x090c0d0b, 0x19011531, 0x19252519, 0x11110119, 0x8280011b, 0x0c935423, 0x2106a042, 0xec4460fe, 0x0c0d261a, + 0x730a600b, 0x08564103, 0x37091423, 0x835a8309, 0x1d422262, 0x835b8324, 0x161e2363, 0x47410917, 0x0022270a, 0x00590048, 0x97180073, 0x0624085f, + 0x012f2627, 0x099fb318, 0x2308c945, 0x17333601, 0x1813b864, 0x6409cba9, 0x132205b8, 0xb8733736, 0x2607230d, 0xe6183127, 0x1422097a, 0x1b46010f, + 0xa0012107, 0x201d2c41, 0x065341c0, 0x830f6a41, 0x115e210f, 0x8206a544, 0x07072523, 0x11111b29, 0x2c073f41, 0x0c093115, 0x020b0b0d, 0x01070802, + 0x0a2e41a0, 0x240ff244, 0x600b0c0d, 0x06df420a, 0x34416020, 0x06784108, 0x09d3fe22, 0x8206be48, 0x37032510, 0x1e161709, 0x22073f41, 0x83421d24, + 0x2064835c, 0x050f4a09, 0x01000225, 0x5f3400a0, 0x17220525, 0xe0831631, 0x1716332a, 0x07141716, 0x15160706, 0x09830585, 0x0729f782, 0x012f2223, + 0x023d2726, 0x05645036, 0x17363723, 0x054d5105, 0x0cd8e518, 0x01332f08, 0x0b0b1439, 0x15080204, 0x0d0e1490, 0x130c0d01, 0x110b0b0c, 0x011f0207, + 0x140e0d01, 0x26181e49, 0x2301012a, 0x020b2907, 0x14101004, 0xb84ae7fe, 0x055a4207, 0x839f0121, 0x280c2215, 0x2f2c8323, 0x020d0e13, 0x0d12130d, + 0x0e0b030d, 0x05050c22, 0x102c4f83, 0x26331d1a, 0x1d2e1930, 0x0b332106, 0x9f206883, 0x0dea6318, 0x8906e74a, 0x360524d7, 0x83363137, 0x36332ab8, + 0x34373637, 0x36272627, 0x83058535, 0x82262009, 0x2223210f, 0x1d24f683, 0x011f1602, 0x17290283, 0x33253716, 0x3d363732, 0x07824301, 0x14011d24, + 0xd7bd1617, 0xd6c01f20, 0x0001002e, 0x01c0ff20, 0x00c00160, 0x37000022, 0x210b0844, 0x717d2223, 0x013f2108, 0x08e09918, 0x55064067, 0x2d2013bf, + 0x095e4a18, 0x20113455, 0x20008200, 0x236b8801, 0x13000023, 0x7c08c96c, 0x3a4805bd, 0x05cf450b, 0xd7012f22, 0x19277818, 0x56b70121, 0x8d200a15, + 0x2006e641, 0x22778773, 0x82010000, 0x0220246f, 0x84600100, 0xe49318d7, 0x15062413, 0x18011f14, 0x20081a93, 0x20bc9b6d, 0x097b18a0, 0x82958b0d, + 0x826b8a66, 0x0f2d7ed7, 0x14f39318, 0xbc9bf720, 0x1a837b18, 0x28058742, 0x013f01c0, 0x001100c0, 0x0f641850, 0x19032013, 0x270f942c, 0x3b363736, + 0x16173201, 0x24058e52, 0x2f262706, 0xb79c1901, 0x013d2218, 0x091c66a0, 0x01010d39, 0x48140e0d, 0x04050812, 0x07222602, 0x0c0b0d0c, 0x35070303, + 0x19191910, 0x2b09be31, 0x0c0d0c0b, 0x02262207, 0x12080504, 0x20052441, 0x19068510, 0x2711ad1d, 0x0607e0fe, 0x0b397308, 0x4b834382, 0x0e195a28, + 0x190e0f0f, 0x40820b5a, 0x03030728, 0x0873390b, 0xd5450706, 0x18602006, 0x210dbf7b, 0xa75f01c0, 0x08775e05, 0x210a6b5c, 0xba500317, 0x45012008, + 0xf3910a99, 0x23202689, 0x2010df78, 0x19b38538, 0x1912463a, 0x78105a27, 0x271912e3, 0x3020082b, 0x6127db87, 0x0c0c0d16, 0x1961160d, 0x0810643c, + 0x03000025, 0xc0ff0000, 0xc0010002, 0x42003000, 0x00005400, 0x021f1601, 0x0f161716, 0x07161701, 0x06020f06, 0x822f0607, 0x262723c8, 0xe582022f, + 0x27013f28, 0x3f363726, 0x0e613602, 0x5d811806, 0x26332111, 0x3a0f4c7a, 0x02076a01, 0x04086c14, 0x3e3e0503, 0x08040305, 0x0702146c, 0x5a5a0808, + 0x8f080708, 0x82128217, 0x0a082117, 0x0f345718, 0x4b182020, 0x36250bee, 0x01012425, 0x20478abf, 0x205fa308, 0x9e5818ff, 0x6746840f, 0x0782074c, + 0xfa820020, 0xff000028, 0x017f01e0, 0x3d5900a0, 0x18312008, 0x220a616c, 0x67072627, 0x34200505, 0x08057153, 0x23262726, 0x33323fe0, 0x01011d1e, + 0x32331d1e, 0x083e5d3f, 0x0e0c0505, 0x31324a10, 0x28191802, 0x0c03020a, 0xa0010a09, 0x0bea8918, 0x093d0233, 0x03010a0a, 0x4b313202, 0x17282832, + 0x020a0c06, 0xe3681801, 0x00a02909, 0x00210014, 0x1300002c, 0x1335ec18, 0x4f211521, 0x172b0a1b, 0x36331716, 0x23272637, 0x18200706, 0x6b077592, + 0x595507b4, 0x0180220b, 0x08a34e0f, 0xbd65a020, 0x20068606, 0x05816f80, 0x12120128, 0x5000011b, 0x934e010f, 0x82002005, 0x42022000, 0x14240813, + 0x00007700, 0x18052359, 0x200a5269, 0x25ff8236, 0x31333607, 0x1a821f32, 0x36153029, 0x1732013b, 0x5a013f34, 0x072009e8, 0x314c9d82, 0x07142208, + 0x42278216, 0x2f2305ee, 0x68070601, 0x26210561, 0x1d7c1827, 0x2637210a, 0x21059948, 0x4b823734, 0x2f29d682, 0x34352601, 0x29000137, 0x01e9191b, + 0x0ad72e0c, 0x400a0d0d, 0x1a150101, 0x01161a70, 0x05b25b40, 0x09210f82, 0x075e4702, 0x03030f23, 0x05a45b40, 0x35253f22, 0x3522d083, 0x26863f25, + 0x0f030322, 0x02232587, 0x82010109, 0x05426926, 0x080c0422, 0x0c210082, 0x226b8304, 0x82090969, 0x0c01234e, 0x1f83020c, 0x12216d86, 0x058d4315, + 0x02202523, 0x23e91902, 0x0fef2809, 0xef0f0101, 0x853f2106, 0x0240246e, 0x85252002, 0x12152127, 0x3b835d82, 0x180f1758, 0x580aa166, 0x372b0a1c, + 0x36013f34, 0x15171617, 0x83060706, 0x570020f7, 0x202020f1, 0x08054618, 0x21089650, 0x1557c0fe, 0x0ddf6411, 0x55592c20, 0x0597751c, 0x6b373621, + 0xfa7909f3, 0x0f484319, 0x20183659, 0x0fc643a0, 0x13190020, 0x1f28081b, 0x1100c001, 0x67003200, 0x13716218, 0x4b360721, 0x072005f3, 0x8607516b, + 0x4523200f, 0x3f220666, 0x09822701, 0x07062325, 0x57011f06, 0x3b2205da, 0x9c193201, 0x1c8309c2, 0x22840f20, 0x27012b22, 0x2009894d, 0x0f4846e0, + 0x13473b08, 0x2f150a05, 0x02011c1c, 0x2e442d2d, 0x09152525, 0x0f0c1413, 0x3021191a, 0x0101201f, 0x8b211413, 0x0c0d0402, 0x0d0e1712, 0x12051703, + 0x01051711, 0x050a5e01, 0x0b0b0524, 0xfb52300d, 0x19132807, 0x1914140a, 0x473f0945, 0x4c2005f0, 0x2c116546, 0x14160997, 0x28281206, 0x2d2d4434, + 0x08ae8202, 0x0c142724, 0x101b1309, 0x1f200110, 0x1c1c2430, 0x110a470d, 0x10010b0a, 0x16741711, 0x0a010e0e, 0x05060c61, 0xa1531004, 0x44062507, + 0x300e0e18, 0x21055642, 0xff570000, 0x5757200a, 0xf65425ff, 0x58062009, 0x0f701109, 0x0a9d4e0a, 0x4b1f1358, 0x0e2206ea, 0x1c580903, 0x0412220d, + 0x05034171, 0x25587020, 0x0759521d, 0x1021d485, 0x0b2b580e, 0x55221d21, 0x20200cec, 0x2308f282, 0x00000400, 0x8002e0ff, 0x0600a001, 0x3b000d00, + 0x00004a00, 0x013f3217, 0x13331523, 0x012b2627, 0x35213315, 0x3605f658, 0x06072233, 0x1714031d, 0x15233316, 0x17161716, 0x36333533, 0x45322137, + 0x212408aa, 0x05232726, 0x3b058544, 0x3334013d, 0x15161732, 0x6b353e82, 0x6bde02e0, 0xe0023e35, 0x141000ff, 0x08010d0e, 0x0805fc69, 0x0d01082d, + 0x0810140e, 0x20011729, 0x222e2e35, 0x2e220a0a, 0xe0fe352e, 0x01082917, 0x100a0aa0, 0x0b0f0404, 0x4020200a, 0x40600160, 0x83606020, 0x0c30262c, + 0x9010110b, 0x203e8210, 0x34478330, 0x131f0160, 0x0e0e2c13, 0x1f13132c, 0x0f197401, 0x58040a0a, 0x5f398204, 0x21220c23, 0x97543300, 0x27262612, + 0x17212726, 0x28bc8227, 0x06071716, 0x17272623, 0x61b68437, 0xdf8205d3, 0x265f3220, 0x9a9a2915, 0x00011b05, 0x039a051b, 0x1d2e0082, 0x0e090989, + 0x090e00ff, 0x0d0a8909, 0xc75b0a0d, 0x64f02b15, 0x1a02021a, 0x01010264, 0xc35a591b, 0x597e2306, 0x13480606, 0x0013240a, 0x82460034, 0x060721a3, + 0x2f051570, 0x35373621, 0x2f363736, 0x010f2601, 0x23061523, 0x14821784, 0x22231182, 0x823d2231, 0x35232313, 0x03851523, 0x114a8a18, 0xe0f32a08, + 0x19060416, 0x90011602, 0x06190216, 0x0de01604, 0x0140730d, 0x05123001, 0xc0011708, 0x12050817, 0x40010130, 0x40304028, 0x10621828, 0xbd01340c, + 0x18180b60, 0x02160802, 0x02081602, 0x600b1818, 0x19dd0606, 0x200d896a, 0x4e0084c0, 0xd7180c25, 0x362d0b5b, 0x00004800, 0x05072201, 0x1f160706, + 0x067d6f01, 0x3d5bd382, 0x83272008, 0x08535ed6, 0x3316172d, 0x36253732, 0x25272637, 0x18032326, 0x08084b41, 0x06072733, 0x012f2223, 0x0c400107, + 0x0fe8fe0c, 0x3a0f0101, 0x13030119, 0x03050d0a, 0x07400803, 0x0a020506, 0x0109050c, 0x9d1e131b, 0x0d04070e, 0x9f0d139d, 0x2100820c, 0x2a831801, + 0x0ce8fe23, 0x086f670c, 0x8e0f3308, 0x10121211, 0xa0010f8f, 0x10076504, 0x27150710, 0x252c1c31, 0x08071213, 0x01100308, 0x42070403, 0x1914162a, + 0x0c17242e, 0x0e0d043e, 0x0e083d07, 0x2985043a, 0xfe046535, 0x16151c88, 0x15160101, 0x0633911c, 0x00913306, 0x82000500, 0x80022d00, 0x1b008001, + 0x32002000, 0x6b003600, 0x22071f44, 0x1821023b, 0x28080b53, 0x26022b21, 0x11272627, 0x22018321, 0x44272607, 0x3f260513, 0x16173301, 0xd6823637, + 0x37231730, 0x15171625, 0x1716013b, 0x07230706, 0xd7180706, 0x2a8408e4, 0x26272208, 0x3736013f, 0x36372627, 0x3615011f, 0x26012b37, 0x33373627, + 0x00373635, 0x1b121201, 0x011030c0, 0x07984600, 0x1000ff23, 0x05b15d30, 0x01402308, 0x8e00ff00, 0x050d0d05, 0x11100640, 0x094a0909, 0x06101109, + 0x26131240, 0x12200113, 0x12102c02, 0x02820202, 0x011a0d3f, 0x080f1202, 0x0713100b, 0x04121006, 0x10060911, 0x0c090904, 0x0e0e0c0c, 0x230b130f, + 0x23228248, 0x12023412, 0x09214618, 0x290bbb48, 0x000100ff, 0x01010b30, 0x3783900b, 0x10141434, 0x90110906, 0x452b2b39, 0x02041202, 0x05021212, + 0x1c821d24, 0x82100b21, 0x0504245f, 0x8301080c, 0x04022288, 0x825b8206, 0x1401225f, 0x25238319, 0x00021204, 0xf7480700, 0x00123108, 0x00380027, + 0x005c004a, 0x0080006e, 0x33151300, 0x0b20bd18, 0x0607062e, 0x1411010f, 0x013b1617, 0x35363732, 0x2505c963, 0x15060722, 0x15832105, 0x87213321, + 0x07232115, 0x6b072d55, 0x856908ca, 0x20239111, 0x10a96927, 0xc340802e, 0x1d13401d, 0x1bc31a13, 0x80011212, 0x230dc849, 0xa0fee001, 0xbf651182, + 0x06155507, 0x18058d45, 0x180ccd68, 0x430c6441, 0x01210c2b, 0x83bd1880, 0x12012508, 0xfe601b12, 0x8706d765, 0x18202053, 0x2008fab4, 0x53578200, + 0x548c0cf1, 0x00206e99, 0x07290082, 0xc0ff0000, 0xc0018001, 0x73bb1900, 0xf964180d, 0x08ad6b0c, 0x18331521, 0x2009a04e, 0xcf401817, 0x8140180b, + 0x29198c0c, 0x17163327, 0x23070615, 0x45822726, 0x338c198c, 0x08e24518, 0xdf666020, 0x057f7107, 0x140e0d25, 0x7f10e0fe, 0x20200aa2, 0x7f08cf7f, + 0xb0200a76, 0x40181594, 0x01210a68, 0x205683c0, 0x185384fe, 0x820af353, 0xe8b7195d, 0x89902026, 0x88102082, 0x8a202081, 0x4f002098, 0x43200d77, + 0x4e13c378, 0x33201787, 0x4e0d7a4f, 0xe0200a86, 0x0f226d18, 0x3a06c777, 0x0c0d0715, 0x03030b0c, 0x1e132807, 0x1e24241e, 0x0728131e, 0x0c0b0303, + 0x4b080c0c, 0x2020061a, 0x44091b65, 0xfe210702, 0x06334fc0, 0x8321c021, 0x8208203a, 0x1e3f222d, 0x25008211, 0x0c0c3f1e, 0x4083070d, 0x64422120, + 0x00602106, 0x05320082, 0xe0ff0000, 0xa001ff01, 0x23001100, 0x5a004800, 0xd5826c00, 0x31071622, 0x5a068b54, 0x072006e7, 0x36221191, 0x02833137, + 0x5f361721, 0x006905f0, 0x2f222605, 0x010f2601, 0x05e35b06, 0x25373426, 0x26312726, 0x16214286, 0x05694b07, 0x2729118e, 0x0a090ae3, 0x18181918, + 0x2b07870c, 0x03020e7f, 0x16161313, 0x02030e0f, 0x29080784, 0x23241b1f, 0x16162122, 0x24232221, 0x0d0e051b, 0x58111114, 0x11581717, 0x0e0d1411, + 0x13610105, 0x0f0e0203, 0x13131616, 0x07840302, 0x0a187026, 0x180b0b09, 0x51825382, 0x07820c20, 0x21630129, 0x07091c1b, 0x84211110, 0x10112b07, + 0x18196a21, 0x0a0a0c17, 0x07871909, 0x2746ca2c, 0x01100f26, 0x260f1001, 0x08824627, 0x04255982, 0x16060616, 0x826d8204, 0x0c762814, 0x19191817, + 0x870a0a09, 0x095d2807, 0x21211b1c, 0x84071110, 0x10112207, 0x05634b07, 0xff003f08, 0x010002c2, 0x001a00be, 0x0024001f, 0x1f361300, 0x16171601, + 0x0714011d, 0x06010f06, 0x2726012f, 0x34013d26, 0x013f3637, 0x37170717, 0x35371327, 0x15eb1507, 0x0b13c016, 0x130b0c0c, 0x098616c0, 0x15c01423, + 0x2f0082ae, 0x01a0a020, 0x440808ba, 0x15101008, 0x101015f2, 0x08230982, 0x87110744, 0x3e3c210c, 0xfe260082, 0x39bc398f, 0x434500bc, 0x01403c06, + 0x000600c0, 0x0030002b, 0x003c0037, 0x004a0043, 0x07170100, 0x17363727, 0x82221507, 0x15072281, 0x82918216, 0x3f16267d, 0x35373601, 0x22918226, + 0x84313023, 0x251d8307, 0x37350705, 0x30840715, 0x83011f21, 0x8237200a, 0x203e82c0, 0x08178317, 0x01071420, 0x51514e23, 0x9b03034e, 0x22600202, + 0x60210102, 0x72711716, 0x20601716, 0x60220201, 0x04820202, 0x83141421, 0x52002318, 0x2985ed52, 0x52521325, 0x830303f7, 0x6624080b, 0x0105524d, + 0x20201d8f, 0x2c01011d, 0x0f240170, 0x10237726, 0x310a0a2a, 0x2a0a0a31, 0x2677240f, 0x7001240f, 0x08210482, 0x331a8208, 0x20591f76, 0x1f1e285a, + 0x01011e1f, 0x602064cc, 0x0101cc24, 0xaa260d83, 0x5b206422, 0x6b410205, 0xff202805, 0x012002c8, 0x822200c0, 0x007125e5, 0x37361300, 0xe982db82, + 0x69411620, 0x013f2207, 0x056c4727, 0x82060721, 0x82262008, 0x173622f5, 0x26238231, 0x07061516, 0x4d230706, 0x3f2006f8, 0x4c05054e, 0x2f2705b0, + 0x36372601, 0x82272537, 0x22178205, 0x5116011f, 0x15200585, 0x21057346, 0x8c4f1617, 0x82262005, 0x3f343e4e, 0x341dcf01, 0x1b271d34, 0x030b0d0e, + 0x57160817, 0x0d01030f, 0x110a261d, 0x08110a11, 0x2f00820c, 0x12070303, 0x0d0c0bff, 0x010e1907, 0x60291b1b, 0x0c5f4b1a, 0x09090e3a, 0x03071805, + 0x93fe0c03, 0x03010d1d, 0x0816570f, 0x0c0c0317, 0x05331b0e, 0x0e1dd819, 0x320f2608, 0x012c9301, 0x103e2c01, 0x0f0a0907, 0x18031458, 0x090f1004, + 0x010e3c10, 0x0b1c0e01, 0x08060303, 0x1c0c0d0c, 0x354b82cf, 0x1b17280b, 0x011b1b29, 0x06061020, 0x1111400b, 0x07050a40, 0x4e82200f, 0x27080923, + 0x3187820c, 0x1008111f, 0x0417050f, 0x0b0f5715, 0x520f0809, 0x70590908, 0x22a08209, 0x6150171c, 0x08290c03, 0x47003500, 0x00005900, 0xbb0f1a13, + 0x52f51808, 0x05c85607, 0x57021d21, 0x2120099a, 0x2109a650, 0x26823402, 0x18341721, 0x180f60e0, 0x3811255d, 0x26011a87, 0xb616081a, 0x235f0816, + 0x1f18190a, 0x19181fb6, 0x0b12230a, 0x0601410b, 0x86c0fe21, 0x0b0b2308, 0x87585812, 0x11a7180b, 0x3516820a, 0x4b4b4b01, 0x14010114, 0x111d6550, + 0x1d111212, 0x10100765, 0x7d5a9014, 0x07855a06, 0x14903026, 0x5b071010, 0x3782f088, 0x210c3871, 0x83480400, 0x453f2008, 0x222e0805, 0x1d063107, + 0x30313001, 0x06070631, 0x0482010f, 0x7d48f282, 0x013d2106, 0x0b87f282, 0x27340229, 0x26012f26, 0x83272627, 0x8235202c, 0x012b2a0d, 0x1f163307, + 0x36372101, 0x11674837, 0x11bf5719, 0x9882c020, 0x17171d22, 0x0121fd8b, 0x32fd8940, 0x17170a23, 0x0e09091d, 0x16b61b80, 0xdafe1a08, 0x6916081a, + 0x01200c0a, 0x200d5448, 0x242a82c0, 0x11110220, 0x1a0a411c, 0x111c6525, 0x82200211, 0x01802676, 0x144b4b14, 0x06cf5701, 0x0c5b4218, 0x21052d41, + 0xeb6d0000, 0x01c02d05, 0x003200c0, 0x06071300, 0x33171615, 0x1520058b, 0x25099a64, 0x2f343736, 0x058a3301, 0x22232633, 0x0695d307, 0x49191502, + 0x21150207, 0x1602054b, 0x3a6485a8, 0x050215a9, 0x0215214b, 0x15194907, 0x05950602, 0x01050808, 0x0907a3ba, 0x83490215, 0x065a2104, 0xa0830982, + 0x1528cc84, 0x025a0609, 0x49070915, 0xa3200483, 0x20072b4d, 0x24938301, 0x00250012, 0x18a48238, 0x51095d6f, 0x0722074f, 0x14893736, 0x2005d450, + 0x8b068505, 0xc0012918, 0x5f3f4002, 0x02403f5f, 0x37220787, 0x0a871720, 0x46201727, 0xfe466363, 0x89078577, 0x70012217, 0x074b6b30, 0x87230888, + 0x8766120b, 0x12662714, 0x0101180b, 0x06858318, 0x56120b22, 0x56201887, 0x2c0c8f49, 0x001b0017, 0x0037002f, 0x00510048, 0x12934e68, 0x200a2b63, + 0x27451807, 0x82232008, 0x27262ed4, 0x3736013d, 0x26373617, 0x33152327, 0x08681837, 0x2726270c, 0x36331735, 0x1a833537, 0x56633720, 0x065d6305, + 0xc0523888, 0x053b4c08, 0x21075763, 0x0f1918c0, 0x9554084a, 0x16182a05, 0x08160202, 0x0f014808, 0x07c65118, 0x010f182b, 0x010f0820, 0x60080f01, + 0x20068330, 0x05964920, 0x79632f85, 0x73e02017, 0x2c840714, 0x0f50302a, 0x16025001, 0x40300216, 0x0d204182, 0x07586818, 0x70800f24, 0x11820f01, + 0x83806021, 0x8320204c, 0x20618404, 0x4f138240, 0x0120051b, 0x2007bb64, 0x1d2b4138, 0x37170322, 0x2d0b0d46, 0x012f2207, 0x26070607, 0x3726012f, + 0xfb961736, 0x1f1b9133, 0x06111007, 0x16081b1f, 0x06300414, 0x21071110, 0x24108321, 0x16140430, 0x23d79708, 0x5a59fffe, 0x0f2cc282, 0x0414595a, + 0x10a01608, 0x5f5f1001, 0x10250f82, 0x040816a0, 0x20b38e14, 0x20b39d34, 0x57b38207, 0xae8307fe, 0x57262721, 0xaf9705f4, 0x2424642c, 0x0a10130f, + 0x110b2f2f, 0x0b8b0f13, 0xfa2cab97, 0x0b113434, 0x4242130f, 0x110b0f13, 0xfb440b8b, 0x085b4105, 0xb5652f20, 0x1489421f, 0x2009d677, 0x0ae26c15, + 0xb5650020, 0x44782a0b, 0x01151620, 0x20161501, 0x05b16f2c, 0x02564420, 0x2c2c2105, 0xf020b297, 0x34832c83, 0x0216202c, 0x68381602, 0x08680216, + 0x35820c08, 0xb38e3820, 0x46002d22, 0x201d5d41, 0x10da4d03, 0x976d1720, 0x042b2805, 0x3f262722, 0x82333601, 0x6d37200e, 0xba8c0b9d, 0x2c0c794d, + 0x58050858, 0x0a040405, 0x30302858, 0x27088209, 0x09090530, 0x05300d05, 0x21182542, 0x774600ff, 0x80072d0c, 0x08090808, 0x08500808, 0x07461508, + 0x67100f44, 0x50220537, 0xd19d5b00, 0x43360721, 0x262206db, 0x0a941527, 0x1f212084, 0x5dde1801, 0x013f220a, 0x075e1817, 0x16064309, 0x034da020, + 0x27099309, 0x0e180706, 0x02180718, 0x2207b24c, 0x4d171702, 0xc6410929, 0x58302017, 0x402007e4, 0x48270890, 0x17010117, 0x4c080858, 0x082307be, + 0x18585808, 0x20082a5e, 0x0c4f6805, 0x48003524, 0x13415900, 0x1617261d, 0x15163117, 0x05ff5b14, 0x3736372d, 0x27343536, 0x37262726, 0x4b071736, + 0x2f210584, 0x05a34e01, 0x36373325, 0x8236011f, 0x0706222e, 0x831f8306, 0x0add5327, 0x220cfb41, 0x82111c02, 0x0d1c3500, 0x160b0609, 0x0c0d0d0c, + 0x09060c15, 0x0a0a5c0d, 0x2124070a, 0x2126cf83, 0x330a0724, 0x0a830b0c, 0x0a0c0b27, 0x09080809, 0x1708410a, 0x1d11e233, 0x1d23231d, 0x0c06111d, + 0x150d090d, 0x161a1a16, 0x08088215, 0x1f060c24, 0x0a800a05, 0x23070305, 0x0f300f01, 0x03072301, 0x120a0923, 0x0a121919, 0x080c0b09, 0x0c090c0d, + 0x0082000b, 0x0f410420, 0x1831200c, 0x74090343, 0x31460a6b, 0xc374190a, 0x27172c15, 0x33363735, 0x06151716, 0x42272207, 0xc0201604, 0x0d578419, + 0x2d2ded2a, 0x010b0403, 0x03040b01, 0xa750d997, 0x067c4e07, 0x1e6e602c, 0x01021e40, 0x010b680b, 0xab430002, 0x002a220e, 0x1dc54139, 0x1707032b, + 0x2f060716, 0x013f2601, 0x25098236, 0x0f161737, 0x0e450601, 0x1f672f1f, 0x110e0e1f, 0x0e0e3011, 0x0e111130, 0x0887700e, 0xb6981685, 0x1f1fdf22, + 0x33822e83, 0x11223082, 0x08872211, 0x00231685, 0x4a060000, 0x0a360817, 0x4e004300, 0x64005900, 0x00007600, 0x26070625, 0x33163727, 0x0f5c3732, + 0x056a4205, 0x0f222327, 0x06272601, 0x76571807, 0x011f2507, 0x17160706, 0x09be4d18, 0x36171622, 0x6a4ccd82, 0x36032306, 0x42823435, 0x0706172d, + 0x23260703, 0x36270722, 0x83171637, 0x2323823f, 0x17141506, 0x3d11607b, 0x3f306f01, 0x183a303f, 0x3a181d1d, 0x0202345b, 0x09090d34, 0x0a0d0d0a, + 0x5a5a430c, 0x6f5b0c43, 0x970d2005, 0x3a2d2917, 0x223a0d0d, 0x2e220101, 0x4a834085, 0x233ad129, 0x3a230101, 0x18920e0e, 0x200f5349, 0x83298323, + 0x8b5aa331, 0x215d8a72, 0x59820b01, 0xd1216184, 0x20b8883a, 0x0f0e5a35, 0x4a000021, 0x0225055f, 0x00b60100, 0x087b5035, 0x0ae4aa19, 0x2c702620, + 0x08427005, 0x57180620, 0x27210958, 0x28158636, 0x060603df, 0x26263c0d, 0x07517d01, 0x25260124, 0xec6f0d3d, 0x32512306, 0x8a180232, 0x02290b59, + 0x0d513232, 0x01040c0b, 0x230583a0, 0x42323113, 0x23072e7d, 0x13313242, 0x2505045a, 0x42190406, 0xd0745941, 0x4159240b, 0x82041942, 0x2caf8565, + 0x010002c1, 0x002200c0, 0x07160100, 0x08ac5f03, 0x35275a08, 0x36013f34, 0x020f2627, 0x012f0631, 0x37342726, 0x01173601, 0x400210f2, 0x0e0e0d03, + 0x1209287f, 0xa5050111, 0x06040502, 0x120f20b3, 0x10021255, 0x1012c001, 0x140bba01, 0x080f60fe, 0x4a340607, 0x12050410, 0xd4070860, 0x04040306, + 0x070d1da2, 0x13130923, 0x0900010b, 0x0c1f5e0b, 0x43003433, 0x27130000, 0x07060726, 0x33171615, 0x2f363736, 0x37481801, 0x2118820c, 0xc75b1706, + 0x18372008, 0x2009cd70, 0x23318217, 0x16011f14, 0x35323183, 0x224b2726, 0x010e0e0c, 0x116e1602, 0x1f0b0605, 0x08415236, 0x303e2b07, 0x080c0d0b, + 0x0b030208, 0x0441533f, 0x2f353f0b, 0x16b5232e, 0x11480702, 0x410e0e11, 0x75011602, 0x05060b22, 0x02166e11, 0x0c0e0e01, 0xc518361f, 0x2120099d, + 0x0b243c83, 0x2d080d0c, 0x0ceda918, 0x2314143e, 0x68160235, 0x0e48070a, 0x4111110e, 0x0002165e, 0x00000100, 0xc001e0ff, 0x5b00a001, 0x3425d582, + 0x3b363137, 0x08c65e02, 0x5e331521, 0x158909a3, 0x0a1f4c18, 0x200b6667, 0x08806d15, 0x3d2a1589, 0x27222301, 0x09003526, 0x93680e09, 0x67e02008, + 0x20a01339, 0x1d590120, 0x70702109, 0x210b904e, 0x0d8cb090, 0x0c7eba18, 0x0d83b020, 0x2020e383, 0x2920e386, 0xd86be382, 0x0950680a, 0xc0182320, + 0x725d091e, 0xc0372207, 0x067a6b40, 0xa25b2020, 0x2d44270d, 0x2d02022d, 0x7d1a442d, 0xfe201177, 0x60203086, 0x07277c18, 0x3205c344, 0x010002d0, + 0x002500b0, 0x00490037, 0x0081006f, 0x6e0000a6, 0x362506b8, 0x32333637, 0x0b396017, 0x06070627, 0x26272223, 0x21048327, 0xc94f3335, 0x90372010, + 0x32272311, 0x40983117, 0x23065c60, 0x22273336, 0x1806257c, 0x41086976, 0x738c0a06, 0x97833288, 0xf9820020, 0x14093729, 0x13191913, 0x49f70914, + 0xf7200549, 0x37200f87, 0x138c1019, 0x05822385, 0x32832020, 0x42972283, 0x85062b41, 0xd7492130, 0xd7200785, 0x57205c87, 0x57200f85, 0x20200f87, + 0x16210f82, 0x2000820d, 0x058c4116, 0x00420b8b, 0x22528c08, 0x920d0d50, 0x4237822b, 0x4d910c3e, 0x39822182, 0x00820020, 0x20091b43, 0x49a61835, + 0x27262112, 0x09a84218, 0x18061721, 0x21080a4b, 0x18832726, 0x60462720, 0x60012106, 0x220c3a60, 0x87281b5e, 0x1b28230f, 0x2c60015e, 0x820f840b, + 0x8be0201f, 0x06062314, 0x25891a2f, 0x062f1a23, 0x834e8c06, 0x7d228410, 0x47200d07, 0x8312e347, 0x05212b96, 0x06310706, 0x07272207, 0xd14e3617, + 0x21188308, 0xcb823534, 0x2009d065, 0x3f721837, 0x14317909, 0x0140012b, 0x181b1212, 0x11555511, 0x073c4a18, 0x51220783, 0x0e871c13, 0x51131c22, + 0x20085957, 0x09c579a0, 0x2009e761, 0x23298380, 0x0f2f2e0e, 0x52822688, 0x2d030423, 0x324d1813, 0x2d132309, 0x4f870403, 0x0805cf4d, 0x01000222, + 0x001800c0, 0x004b0035, 0x26270100, 0x020f2223, 0x1f141506, 0x36171602, 0x3736023f, 0x07012f26, 0x1805d168, 0x230fea87, 0x34353637, 0xfe841c82, + 0x07061526, 0x36352726, 0x08f0d818, 0xcb012708, 0x07070410, 0x072e1103, 0x03112e07, 0x10030807, 0x0101062e, 0x0a842e06, 0x020a0d0d, 0x3b582522, + 0x3b02023b, 0x0783583b, 0x09030c28, 0x2c7f5009, 0x39641d1e, 0x26272205, 0x058e4f3a, 0x2d8c0128, 0x112d0707, 0x47820803, 0x01072d23, 0x820b8301, + 0x35112549, 0x0c030909, 0x07833c87, 0x03212522, 0x50255683, 0x1e1d0157, 0x223b852c, 0x8427263a, 0x0b97664d, 0x45002a2e, 0x00005500, 0x07222725, + 0x06010f06, 0x21059f6b, 0xb8822326, 0x3622b682, 0xca48012f, 0x013f2905, 0x06071716, 0x011f1617, 0x36202482, 0x18480f1a, 0x82261321, 0x821f2042, + 0x3633232b, 0x3c82013f, 0xa1012c08, 0x06070847, 0x1a171202, 0x0212171a, 0x47080706, 0x073d041b, 0x1b030302, 0x06373020, 0x37060808, 0x031b2030, + 0x3d070203, 0x7ca11b04, 0x2d081756, 0x300e0e0e, 0x0613040d, 0x06103c10, 0x300d0413, 0x04050558, 0x06064608, 0x05040846, 0x26352905, 0x08070804, + 0x2e132742, 0x132e0505, 0x0c824227, 0x34270424, 0x92189829, 0x012a1763, 0x23090946, 0x1038100b, 0x04820101, 0x00230b24, 0xfb490d00, 0x00bf2806, + 0x0027001a, 0x19410034, 0x2b08972a, 0x008f0082, 0x00a9009c, 0x010000b6, 0x2205a94a, 0x19170726, 0x2308481c, 0x16173637, 0x05200d83, 0x4d0b3d5b, + 0x152605a4, 0x26230706, 0x165b3527, 0x1a5c180b, 0x20199919, 0x0c645b37, 0x18197e5b, 0x8c0c005c, 0xd901348e, 0x164a1b10, 0x54540501, 0x4a160105, + 0x0c22101b, 0x82584611, 0x11462500, 0x47fe230b, 0x2013fa4d, 0x097f5b40, 0x1f892020, 0xc15b15a0, 0x062a520a, 0x1a010f21, 0x200c9000, 0x21578910, + 0x6b18d0fe, 0x033b0a53, 0x0a1c0815, 0x1a1a2b16, 0x1c0a162b, 0x15381609, 0x15143f12, 0x123e1515, 0x4e533815, 0xc0200973, 0x70200a89, 0x50209589, + 0x14105c18, 0xea5b1595, 0x8a418a0a, 0x89b02015, 0x24158a57, 0x05000000, 0x4f7f1800, 0x000c2d07, 0x00340020, 0x00470042, 0x32331300, 0x08044e18, + 0x11173322, 0x240cbd6e, 0x3736013f, 0x06066e3b, 0x098e8918, 0x33113522, 0x0ba8671a, 0x07352330, 0x33352315, 0x090e2080, 0x09096009, 0x0382400e, + 0x0b828020, 0x05151b2d, 0x641a0508, 0x07061ae4, 0x861b1505, 0x64642114, 0x25062556, 0x40402060, 0x4e18a001, 0x485e07b9, 0x353b2f08, 0x3c28232d, + 0x1a02021a, 0x2d23283c, 0xd1463b35, 0x40012105, 0x24069267, 0xa0402020, 0x05d744a0, 0x01800129, 0x000c00c0, 0x79400019, 0x332608bd, 0x26273435, + 0x06573323, 0x180c8505, 0x2508f454, 0x17161533, 0xf9551716, 0x37362409, 0x18353736, 0x200842c1, 0x062d7060, 0x0786c020, 0x19070151, 0x2309f142, + 0x01242338, 0xfe238c85, 0x82c001c0, 0x08eb6bb7, 0x42193b83, 0x0c2313c7, 0x493b2b2b, 0x00200605, 0x0b87e018, 0x3000232e, 0x46003b00, 0x5c005100, + 0x36130000, 0x08fbc818, 0x770ab569, 0x162508b5, 0x11373617, 0x05324b17, 0x0938691a, 0x26373627, 0x07062327, 0x08db6933, 0x88010f21, 0x25158a0a, + 0x12016007, 0x2b191b12, 0x90200a31, 0x0b684118, 0x40010f27, 0x16f01602, 0x24048402, 0x0f600f01, 0x20048401, 0x7f0a9fa0, 0x1622106c, 0x097e2217, + 0xf0fe2107, 0x01234583, 0x83501830, 0x20048457, 0x074251b8, 0x08fc2a19, 0xc345108f, 0x02e03005, 0x00a00180, 0x003e0021, 0x37000050, 0x49313736, + 0x7f1805e4, 0x272008e5, 0x20053a48, 0x06c14106, 0x17160523, 0x22258216, 0x82342736, 0x23262418, 0x4c060722, 0x15820741, 0x5b6c1720, 0x34363610, + 0x4e4e4444, 0x0a344444, 0x090a0c0d, 0x4f4f3d0a, 0x4f4f5b5b, 0x080a823d, 0x0a0d0c20, 0x3d570a01, 0x090d0c0b, 0x270a0109, 0x37373130, 0x0a263031, + 0x09090101, 0x3d0b0c0d, 0xec5e4057, 0xf520080f, 0x1d1d1c32, 0x0a09321c, 0x090d0d0a, 0x0120213b, 0x3b212001, 0x0a0d0d09, 0x0235090a, 0x01010936, + 0x22211884, 0x20008213, 0x82168422, 0x0236214a, 0x108c8c18, 0x00820020, 0x1f510a20, 0x00153208, 0x003c002a, 0x0062004e, 0x00860074, 0x00aa0098, + 0x178f48bc, 0x65721720, 0x34072113, 0x10064e18, 0x52173221, 0x0b75055a, 0x4a238408, 0x22240ac1, 0x37352627, 0x85622595, 0x2023a708, 0x51479017, + 0x01270ea9, 0xff1b1212, 0x43c02000, 0x06860542, 0x620cd15a, 0x19830c1f, 0x650ad177, 0x358c0ce5, 0x4f8c1999, 0x23104f51, 0x12121b80, 0x4408b15a, + 0x094b0692, 0x0cb4750c, 0x795a658c, 0x55198c0c, 0x198c0c75, 0xbf444d8c, 0x80022905, 0x2300c001, 0x39002e00, 0x0d595518, 0x18263521, 0x2a0d0478, + 0x1d060722, 0x27070601, 0x820f0617, 0x17162506, 0x17152721, 0x07157818, 0x18353621, 0x250a5155, 0x1d010158, 0x78181f02, 0x0e390711, 0x24420909, + 0x1f017993, 0x02011e01, 0xf6210113, 0x134040e0, 0x131a1a13, 0x4a551813, 0x0245280b, 0x011f2b03, 0x18232d20, 0x31071d78, 0x130e0909, 0xee74370f, + 0x1e02202d, 0xc202132b, 0x3182cd15, 0x00263782, 0xff000002, 0x018201c0, 0x001a0023, 0x18b18227, 0x6408415a, 0x342e05c5, 0x012b2627, 0x23272627, + 0x21050706, 0x685c1613, 0x13372206, 0x071a7187, 0x37078b4e, 0x14090760, 0x01091478, 0x1580fe19, 0x130e0d02, 0x0d0e13f6, 0xae011502, 0x0e20af82, + 0x82051c42, 0x110e2905, 0x6e110101, 0x0d13adfe, 0x13220082, 0x4b505301, 0x001a220c, 0x1ca36c3c, 0x33162728, 0x36373231, 0x154e1617, 0x45352005, + 0x0721064c, 0x5c6a1806, 0xf2f01809, 0x19393618, 0x11192020, 0x270e0e10, 0x25283333, 0x33332825, 0x110e0e27, 0x21158310, 0xc06c1717, 0x17c72218, + 0x20258217, 0x212f8511, 0x3f832626, 0x83171721, 0x25b78c33, 0x0036001d, 0x6b530100, 0x08c3730a, 0x08127218, 0x1d060134, 0x17060701, 0x33013f16, + 0x27013f32, 0x012b0607, 0x08833435, 0x66560123, 0x052f5309, 0x0685a020, 0x1d660a3a, 0x28281f1d, 0x17e1fe1e, 0x13100c1b, 0x212a2816, 0x792d7818, + 0x05240704, 0x01230682, 0x530a66a3, 0xa020056a, 0x093a0685, 0x28281e66, 0xfe1d1d1f, 0x2a2118da, 0x10131628, 0x79171b0c, 0x2405782d, 0x06820407, + 0x0034a682, 0xff400002, 0x016002c0, 0x000f00c0, 0x2500002d, 0x36013f36, 0x2d05c752, 0x0706010f, 0x06270717, 0x14070607, 0x05821617, 0x08092d6c, + 0x36373624, 0x34353437, 0x2b730135, 0x020aa119, 0x110e0c03, 0x25ed0f10, 0x74137301, 0x011e1f2e, 0x08080101, 0xd541050d, 0x90230805, 0x01201f30, + 0xfa240751, 0x0c11110f, 0x0b01010c, 0x682f1db1, 0x1f03691a, 0x06062e20, 0x010b0b0d, 0x820e0909, 0x20012929, 0x0202301f, 0x05000102, 0x2f086f42, + 0x00290014, 0x00c7003e, 0x130000ef, 0x011d0607, 0x2308bc5d, 0x26012f34, 0x33208b82, 0x17201493, 0x0f212891, 0x07075002, 0xd1821d20, 0x15070624, + 0xbf831716, 0x332ec182, 0x33303530, 0x31300239, 0x33363130, 0x09831732, 0x16313222, 0x220a8e52, 0x83013932, 0x941f8218, 0x03392717, 0x33143130, + 0x32871530, 0x27343524, 0x04832726, 0x67829d82, 0x08ee5718, 0x23011d24, 0x1a720535, 0xd74f1805, 0x3c078b07, 0x14152722, 0x21331617, 0x3d363732, + 0x06185601, 0x11110b0c, 0x18060c0b, 0x04060604, 0x200e8d80, 0x211c8c68, 0x3c41be18, 0x121b3c05, 0x100d0112, 0x05081115, 0x01010102, 0x05060804, + 0x04020101, 0x15141008, 0x8204080f, 0x07052212, 0x28119507, 0x15110805, 0x12130c11, 0x2347821b, 0x0109090d, 0x3106ae44, 0x0d400140, 0x06152310, + 0x14050504, 0x05142323, 0x07860404, 0x16060524, 0x28821022, 0x80010e23, 0x242e820e, 0x0b0a2aba, 0x82aa8203, 0x0b0325b0, 0x06062a0a, 0x1c450fa0, + 0x01302b06, 0x471b1212, 0x0c010108, 0xb1820406, 0x06050122, 0x0621af82, 0x220f840c, 0x8d060102, 0x82ba820d, 0x211d83d4, 0xe9834708, 0x2a0f3161, + 0x0305db30, 0x03030410, 0x8f031004, 0x55052107, 0x20058442, 0x0b0f7955, 0x3b001b25, 0x52130000, 0x9358081b, 0x08114a05, 0x11272623, 0x05894113, + 0x012f342a, 0x0f222726, 0x22270601, 0x23200982, 0x84420983, 0x06254105, 0x17160125, 0x85900122, 0x70fe2660, 0x0160010f, 0x310c8220, 0x0e0a4108, + 0x08150a0d, 0x27070b0a, 0x0b0e0e0a, 0x9318084f, 0xb0200b97, 0x230b8949, 0xe0fe5001, 0x44311c82, 0x0a4d090c, 0x08150901, 0x0c2f0801, 0x0c095b0b, + 0x33468254, 0x20000300, 0x3e02c0ff, 0x0c00c001, 0x29002000, 0x35250000, 0x09505118, 0x3605232c, 0x37363137, 0x17151732, 0x51180716, 0x0521074e, + 0x05296416, 0x01332d08, 0x3f0f0130, 0x1e1d3332, 0xdf0f0201, 0x3a02f0fe, 0x020f5a39, 0x3c0c0a9d, 0x3636434f, 0x02012020, 0x3d0d100e, 0xee9f0a0b, + 0x020fdfd0, 0x3b057d74, 0x5d20010f, 0x100e4241, 0x0b0c9dee, 0x2001012b, 0x43363620, 0x560f0210, 0x9f090938, 0x182c3b41, 0x2008f56f, 0x0573500f, + 0xb8490120, 0x013f2106, 0x41053579, 0x0121163b, 0x05af4497, 0x0a396926, 0x700a0d0d, 0x59200c85, 0x80210c84, 0x06344201, 0x3c41fe20, 0x4557200e, + 0x6a240511, 0x7009093a, 0x5a200a85, 0x80200a82, 0x0c2b5118, 0x27001326, 0x00003900, 0x1805a174, 0x2408d47e, 0x37363736, 0x052c4a33, 0x97522320, + 0x83332007, 0x26551814, 0x80012a11, 0x01242536, 0x36252401, 0x250888c0, 0x363602c0, 0x8156c052, 0x21088407, 0x6b5280fe, 0x1b1b240c, 0x76400129, + 0x80200f93, 0x07873187, 0xff726020, 0x00022113, 0x02260082, 0x00800140, 0x4b180013, 0x861808ab, 0x262508d5, 0x23272627, 0xba551813, 0x848c8d10, + 0x355e189e, 0x7e6c1810, 0x53fe2011, 0xc0830c3e, 0x39082b4e, 0x00a00180, 0x00500039, 0x006c0067, 0x01000070, 0x17160706, 0x27231733, 0x0a862b26, + 0x0e209a18, 0x3f323322, 0x4505b35d, 0xa683055b, 0x84072221, 0x053b6eab, 0x250d4253, 0x33053736, 0x10450706, 0x37362c05, 0x33323736, 0x06073130, + 0x82171617, 0x012b3144, 0x27073337, 0x02163801, 0x221a1602, 0x0c081b95, 0x2c240a84, 0x100f1b16, 0x2a078141, 0x07232332, 0x55080d31, 0x41022d15, + 0x14360b64, 0x13096213, 0x0c209323, 0x20091314, 0x141f0605, 0x14010114, 0x07841f14, 0xbafe1227, 0x13130641, 0x820c841a, 0x02033814, 0x08070618, + 0x4933220f, 0x6c5b7b01, 0xa0013c31, 0x02161602, 0x830a2640, 0x351f2206, 0x27578804, 0x0c30201f, 0x3e25288f, 0x07837b87, 0x10b5062b, 0x3bf0fe01, + 0x140c0913, 0x8262893c, 0x141c2555, 0x100f1940, 0x312a7487, 0x010c0c0e, 0x80656530, 0x074e5353, 0x02c02805, 0x00c00100, 0x6e4f0042, 0x8b210637, + 0x06994200, 0x32011d23, 0x05f85d17, 0x14152324, 0xa0180607, 0x994f0d9e, 0x27222409, 0x84013d26, 0x37343a04, 0x35313336, 0x37363531, 0x15073736, + 0x3b161714, 0x22233501, 0x17150607, 0x09b37d33, 0x18071521, 0x2010e65c, 0x2f119021, 0x23272603, 0x17160706, 0x01373633, 0x3d3c6600, 0x2206ec4e, + 0x4b0e0909, 0xc020061d, 0x7d180786, 0x01240868, 0xa0663c3d, 0x70211482, 0x20128270, 0x830483b0, 0x0c444b0c, 0x220df866, 0x780f0130, 0xc0260863, + 0x22171601, 0x31822010, 0x3d824020, 0x49183483, 0x5d831236, 0x20271e83, 0x16172210, 0x8360a001, 0x20318229, 0x84038280, 0x1294560b, 0x20050847, + 0x08b85f01, 0x0003002f, 0x02e0ff00, 0x00a00140, 0x00360015, 0x17714f58, 0x17161726, 0x27363716, 0x760b9f56, 0xe155054d, 0x36172507, 0x37363137, + 0x0020259b, 0x09395518, 0xfe2e0983, 0x12121b40, 0x0e16c801, 0x0d0f1210, 0x17442c1c, 0x1c2c2707, 0x10120f0d, 0x6518160e, 0x012308df, 0x9c140e0d, + 0x6d602024, 0x0987092a, 0x70400129, 0x0d0f0f01, 0x561f1210, 0x1f2409e8, 0x0f0d1012, 0x83059e64, 0x05bb6e5b, 0x5018249a, 0x23220c0f, 0x45514700, + 0x7e152006, 0x332009cf, 0x290d3151, 0x27262726, 0x37360123, 0x6e7f3631, 0x0706230a, 0xdf480706, 0x203b8408, 0x0af4413b, 0xb0838020, 0x28069241, + 0xa0362524, 0x25362001, 0x07e94924, 0x1b121222, 0x2209304d, 0x18a001a0, 0x220adf95, 0x82016001, 0x064a421d, 0x3383a020, 0x0140fe22, 0x5a874082, + 0x83e0fe21, 0x06c07058, 0x0e00ff24, 0xb35f0909, 0x3d022905, 0x1c00c001, 0x40002e00, 0x18067961, 0x823d59c3, 0x353322ec, 0x0c721836, 0x16182112, + 0x4172c318, 0x02fcfe2b, 0x12022c12, 0x122c0212, 0x22098902, 0x1802c001, 0x213888c3, 0x4c8e3001, 0x00205684, 0x3b055f51, 0x013d02c0, 0x002d00c0, + 0x0051003f, 0x37361300, 0x011f1633, 0x26271533, 0x011f0607, 0x08dd8a18, 0x1716332c, 0x06010f16, 0x21172107, 0x06821716, 0x03272625, 0x18272623, + 0x18107fb3, 0x2b12275b, 0x48160200, 0xbe020513, 0x0e111117, 0x09170e1a, 0x0910b635, 0x08360309, 0x09c3fe17, 0x02163401, 0xb8fe1602, 0x823c0513, + 0x5fe02009, 0xf0200fbf, 0x2d0f665f, 0x0216a801, 0x660c1301, 0x110e0e17, 0x53844011, 0x170e0e2d, 0x0c0c0166, 0x0116c010, 0x82160230, 0x0112221e, + 0x2052823d, 0x203a8f48, 0x205c8f30, 0x0ab35f00, 0x1500c025, 0x18010000, 0x1808c341, 0x270b20f3, 0x100c1c01, 0x0cd80c10, 0x07860282, 0x8ab40121, + 0x2f1c840c, 0x00000300, 0x3f02c0ff, 0x3000c001, 0x6d003800, 0x089b5018, 0x0a078218, 0x22054c57, 0x4e222306, 0x07370570, 0x26012f22, 0x013f3637, + 0x36373635, 0x07353337, 0x011f3637, 0x82152135, 0x37362226, 0xde921831, 0x2627210a, 0x4c06515a, 0xd0700514, 0x3637250a, 0x17163117, 0x17213e82, + 0x064755c0, 0xf4833020, 0x04122c37, 0x1a650d03, 0x111d1e19, 0x1a111414, 0x65191a21, 0x1204030d, 0x08ff832c, 0x6c20303b, 0xff6c1414, 0x2a239300, + 0x1315232a, 0x070d1c16, 0x0b030307, 0x14260d0b, 0x1f31322d, 0x09070709, 0x2c32311f, 0x0b0d2615, 0x0703030b, 0x161c0d07, 0x2a231513, 0x1312232b, + 0x06784301, 0x47832020, 0x070f8034, 0x5c0e1110, 0x0c0c140f, 0x5c0f0113, 0x0710110e, 0x7c83800f, 0x24bb2028, 0x5b240707, 0x7119cb5b, 0x0c222f35, + 0x0082000c, 0xdf4d0420, 0x00452d08, 0x0063005e, 0x13000068, 0x31222726, 0x82058145, 0x16152cfb, 0x14150617, 0x07062317, 0x83011f14, 0x208c180f, + 0x27342f08, 0x36372726, 0x23272635, 0x27343536, 0x0f833736, 0x2505415c, 0x07063130, 0x0b822317, 0x07222324, 0x5a640706, 0x33162205, 0x05177932, + 0x17077d08, 0x37172707, 0x013f2707, 0x010609e0, 0x10171907, 0x15240a11, 0x013e0315, 0x010c3c09, 0x13212701, 0x0d080914, 0x080d8401, 0x21131409, + 0x0c010127, 0x3e01093c, 0x24151503, 0x1710110a, 0x09070719, 0x0a1b0c38, 0x02050502, 0x110d1a0a, 0x352b0c0b, 0x0b0c2b35, 0x20105811, 0x30804030, + 0x01401020, 0x080501b0, 0x1a1b0102, 0x0a0a0723, 0x060e160c, 0x01161a06, 0x6102030c, 0x2c252519, 0x5d825582, 0x252c2108, 0x02611925, 0x16010c03, + 0x0e06061a, 0x0a0a0c16, 0x1b1a2307, 0x05080201, 0x1901d001, 0x01190505, 0x38825182, 0x5f820e20, 0x80206028, 0xc02020c0, 0xdf7a2080, 0x0042260e, + 0x007d0059, 0x088d498f, 0x26270724, 0xef82012b, 0x33011d30, 0x17161716, 0x26330714, 0x36373435, 0x051a1737, 0x26240b24, 0x27072227, 0x220a1348, + 0x49010f22, 0x32200a96, 0x240dd95c, 0x07060537, 0x0a964931, 0x33205582, 0x0bde2819, 0x5d823620, 0x54482320, 0x18013b11, 0x16020216, 0x2d62103a, + 0x0e651b13, 0x44600909, 0x03022d2d, 0x11110346, 0xa1490f1e, 0x3e37210f, 0x2e05304d, 0x2f090c14, 0x3f170c0e, 0x140c1cb7, 0x5c1c0913, 0x1b2a09bc, + 0x0f011212, 0x1007ecfe, 0xf5461410, 0x10142807, 0x0a430710, 0x49302222, 0x30240783, 0x430a2222, 0x85062258, 0x05be494e, 0x2d521e34, 0x0e090913, + 0x2d2d0220, 0x0f0f1144, 0x21212811, 0xba491d16, 0x4866200e, 0x072c06ce, 0x01141a28, 0x1334e9fe, 0x35140c09, 0x250beb55, 0x12411118, 0x11870b0b, + 0x120b0b26, 0x011d1d2d, 0x23080e4a, 0x082d1d1d, 0x0c227318, 0x29051744, 0x00c00100, 0x002f0011, 0x7d180068, 0x0720123f, 0x2b054a5d, 0x3b161714, + 0x17161701, 0x013f3633, 0x24059141, 0x27262726, 0x08cd7e23, 0x2005b641, 0x50218216, 0x3620059e, 0x22060d63, 0x82060726, 0x64178213, 0x3720094e, + 0x01202183, 0x2010a256, 0x06764760, 0x050b022b, 0x051b261b, 0x090e020b, 0x08c88309, 0x155c4039, 0x32160601, 0x0d0c1020, 0x09080101, 0x4522170b, + 0x22456565, 0x09080b17, 0x0c0d0101, 0x16322010, 0x2d160206, 0x06030418, 0x3d1e0d06, 0x1e3e6060, 0x0405050d, 0x752d1804, 0x602011b7, 0x30205083, + 0x64295882, 0x1a02021a, 0x0e090964, 0x08758330, 0x1606ea39, 0x10090215, 0x140d0b08, 0x070b0b10, 0x0113090e, 0x0e091301, 0x100b0b07, 0x080b0d14, + 0x15020910, 0x0c090616, 0x05050202, 0x01110809, 0x09081101, 0x02020505, 0x4800090c, 0x0231078f, 0x00950100, 0x00450018, 0x26271700, 0x3f363327, + 0x20f58201, 0x28058432, 0x010f0633, 0x27222306, 0x05db5d25, 0x27220d82, 0x05822326, 0x012b0629, 0x3d260722, 0x82373601, 0x16172301, 0x7a65011f, + 0x15350808, 0xb4e40714, 0x24570507, 0x07310b0f, 0x2a080e0f, 0x68221002, 0x0cb40705, 0x010c1010, 0x02058414, 0x0f0e0718, 0x07332907, 0x2006100f, + 0x046b0502, 0x21010903, 0x03c61921, 0x0832080e, 0x0705a915, 0x6e1a2002, 0x550d010d, 0x07011e03, 0x0b0ba806, 0x0c2f04e5, 0x530c0101, 0x0e010e72, + 0x1801054c, 0x2636061a, 0x0a050a27, 0x0c0c190a, 0x08820a19, 0x36262727, 0x00181906, 0xef931802, 0x00112408, 0x18000043, 0x1811b161, 0x2011fba2, + 0x09605315, 0x55181520, 0x01211344, 0xe2a61830, 0x1f30270b, 0x3f500120, 0x94182828, 0x28220905, 0x54183f28, 0x1c430e3d, 0x01202205, 0x72a71810, + 0x3144830b, 0x2f300cad, 0x32314b42, 0x31320202, 0x302f424b, 0xd442230c, 0x213f8d05, 0x57180023, 0x20240b93, 0x36002400, 0x2c5ec982, 0x2f062307, + 0x62180701, 0x162a0da8, 0x26273717, 0x02391737, 0x8b193603, 0x012d0f87, 0x70100622, 0x0e010216, 0x35210c0e, 0x83b3881e, 0x2c38277e, 0x060b2134, + 0xa38fe06e, 0x0e91012e, 0x70160201, 0x0b060610, 0x382c3421, 0x0783ad87, 0x351e0128, 0x210e0c21, 0x1041b0fe, 0x4100200f, 0x3d280a77, 0x00004f00, + 0x31173613, 0x20085243, 0x05444317, 0x15240582, 0x07060706, 0x230b6c70, 0x27262335, 0x3528d882, 0x27262726, 0x37363734, 0x05820782, 0x7f473082, + 0x200f8305, 0x39338327, 0x0c0d0b48, 0x2f2f1c09, 0x0d0c091c, 0x01020a0b, 0x230e0c08, 0x2b011515, 0x7b18422a, 0x422c0fee, 0x15012b2a, 0x0c0f2415, + 0x0a020108, 0x0c9ca818, 0xb920e884, 0x23231683, 0x83230101, 0x344c8344, 0x26180b0f, 0x30442e26, 0x021a0a30, 0x10021616, 0x16020216, 0x2a098310, + 0x30300a1a, 0x26262e44, 0x830f0b18, 0x41d9207c, 0x00320f27, 0x60000400, 0xf001c0ff, 0xdc02c001, 0xe702e002, 0xa541f902, 0x53a41914, 0x16332844, + 0x23070617, 0x19150239, 0x263650a4, 0x05391503, 0x9f083915, 0x2b362902, 0x35363901, 0x39350639, 0x5a4da419, 0x2605f241, 0x02393531, 0x86013935, + 0x4da41902, 0x0a0e6435, 0x25060043, 0x26070633, 0xa9513327, 0x09fa6405, 0x01373623, 0x08074352, 0x1819272d, 0x26260101, 0x0216183b, 0x82181602, + 0x35078400, 0x0126263b, 0x442d2d02, 0x27162b3d, 0xc06e060b, 0x16160218, 0x2a521802, 0xb1012110, 0x28081c43, 0x30251927, 0x0a2b2c3d, 0x83009801, + 0xa61c9842, 0x30439d18, 0x3d2c2b0a, 0x022d2d44, 0x27162501, 0xfe210e0c, 0x21cb8348, 0x14530801, 0x1800200f, 0x2b0b7346, 0x00640052, 0x17321300, + 0x17010f16, 0x22050e79, 0x44373617, 0x62440542, 0x07142105, 0x43096244, 0x362317ab, 0x6d072737, 0x06830573, 0x82352721, 0x11744139, 0x0a702508, + 0x1f070305, 0x11110714, 0x0f070e0e, 0x29363629, 0x03071f45, 0x0f600a05, 0x070a0a01, 0x011e451f, 0x3b262601, 0x85097143, 0x263b2609, 0x1e010126, + 0x2835850f, 0x0a071f14, 0x0f010109, 0x58af1960, 0xc0012110, 0x14274383, 0x110e0e07, 0x820f0711, 0x821e204a, 0x212b855c, 0x7682040b, 0x3629452a, + 0x0a2b2c3d, 0x16160212, 0x07a14218, 0x12270982, 0x3d2c2b0a, 0x850f2936, 0x855d8236, 0x00ff218e, 0x2f123241, 0x10000300, 0x7002c0ff, 0x1100c001, + 0x80004300, 0x134b9718, 0x63483720, 0x08566a05, 0x18150121, 0x6a07205d, 0x34240555, 0x013b3637, 0x08196618, 0x16171626, 0x37360717, 0x2309ac53, + 0x27260706, 0x6a09976b, 0x4697099d, 0x8444c020, 0x01b0210f, 0x46187d46, 0x18240ba3, 0x271d0e16, 0x27293b87, 0x2d160e1d, 0x32314b3b, 0x223c9902, + 0x45a02028, 0x70200fe3, 0x4619af46, 0x8e240bd5, 0x01161e17, 0x16243b88, 0x0121181d, 0x221dec46, 0x7a001708, 0x80230857, 0x4600a001, 0x652205ef, + 0xa9190000, 0x3628109d, 0x26373637, 0x16173727, 0x35260782, 0x17232726, 0x4c180239, 0x1f2010e8, 0x8b053151, 0x07062f26, 0x01391506, 0x07011f14, + 0x30070615, 0x3d473023, 0x27222706, 0x33160706, 0xe8463801, 0x010e2619, 0x58701602, 0x0f084170, 0x0a475020, 0x2a218409, 0x07020610, 0x21022821, + 0x84240101, 0x080827f8, 0x221e1d13, 0x7447a001, 0x10062519, 0x30021670, 0x20107947, 0x099647b0, 0x01362184, 0x0a05040e, 0x15292107, 0x20011024, + 0x201f3033, 0x161f0101, 0x134f000c, 0x42802006, 0x70200697, 0x25529742, 0x27260722, 0x14443336, 0x05c26e0b, 0x20077748, 0x368742b0, 0x171d5024, + 0x3b872d1f, 0x070a0b2b, 0x38171611, 0x0b21142c, 0x089d4506, 0x48152121, 0x4e2105a5, 0x37804232, 0x1710b924, 0xb341011d, 0x20022907, 0x1e01061c, + 0x0e0c2115, 0x2108b745, 0xd4481421, 0x00352106, 0x032e0082, 0xe0ff2000, 0xc0010002, 0x32002e00, 0x75424400, 0x05a95108, 0xa0540720, 0x077c420c, + 0x42012f21, 0x03230c83, 0x5a310706, 0x3621050c, 0x05cc4337, 0x1078012e, 0x210b0606, 0x11111916, 0x1d1a0e0e, 0x200f4449, 0x2117841d, 0x95871619, + 0x42905821, 0x01250f62, 0x0e0e01c0, 0x2540820c, 0x11110e0e, 0xb8491d19, 0x191c210f, 0x16201784, 0x22073841, 0x4100ff30, 0xda820f90, 0x00020027, + 0x01c0ff00, 0x2ddb8240, 0x00460034, 0x1f361300, 0x06071601, 0xd4452307, 0x15142107, 0x07e16118, 0x23074847, 0x31343134, 0x25079249, 0x26272223, + 0xd545013f, 0x0b952811, 0x0307400b, 0x49280a05, 0x38470579, 0x2d442707, 0x2601022d, 0x15853b26, 0x050a2826, 0x6b400703, 0x280f6959, 0x0a0abb01, + 0x090a0740, 0x055e4701, 0x46010121, 0x022107c0, 0x60ab192d, 0x25198507, 0x40070a0a, 0x9445a5fe, 0x00022c12, 0x02100020, 0x00700170, 0x42410011, + 0x194819f9, 0x17162109, 0x25075354, 0x36373635, 0x2c74011f, 0x35272105, 0x2205257b, 0x41d02335, 0xae240f39, 0x4430300a, 0x1807f54a, 0x3308b477, + 0x0e0e0120, 0x0e0e500c, 0x0e0e0c50, 0x16022001, 0x50220216, 0x230fb541, 0x2b2a4258, 0x3708624b, 0x422a2b01, 0x02021638, 0x10383816, 0x500b0606, + 0x0a501111, 0x38100605, 0x2f4b1385, 0x0011220a, 0x26a74c2d, 0x4c089c4c, 0x574c2291, 0x22814c05, 0xac4c8320, 0x00832905, 0x00020000, 0x01100010, + 0x23055b41, 0x37000023, 0x2010ef5a, 0x105f4c15, 0x41109046, 0x07870738, 0x20102441, 0x8bd41840, 0x6725830b, 0x152c0bab, 0x27001e00, 0x46003d00, + 0x00004f00, 0x18050755, 0x2a0ecbc9, 0x27260521, 0x17163736, 0x47370706, 0x0522073c, 0x6d180706, 0x6d180791, 0x27920988, 0xce574020, 0x87802008, + 0x80fe2109, 0x26054451, 0x16020216, 0x83160260, 0x02162306, 0x289d88fe, 0x28876820, 0x01a00125, 0x881b1212, 0x20088456, 0x201c8778, 0x214c8518, + 0x24a41602, 0x220cd345, 0x423e0025, 0xd9461311, 0x52332005, 0x06270574, 0x27222123, 0x43253526, 0x365707ad, 0x6001210f, 0x350f075d, 0x3202a0fe, + 0x4b5c4b33, 0x09023233, 0x7cfe0d08, 0x0109080d, 0xa58340f8, 0xb3834020, 0x01210989, 0x83531840, 0x9efe210f, 0x3e833583, 0x3c823482, 0x318eaa20, + 0x97463b84, 0x21c3aa0d, 0xf0183601, 0xc3a41740, 0x1111d726, 0x11112f2f, 0x111ff018, 0x0121c7a1, 0x85359153, 0x0200224d, 0xdf4e1800, 0x002c3607, + 0x1300003e, 0x16311732, 0x35331115, 0x3b363734, 0x16171601, 0x09e84917, 0x21012b22, 0x35210c87, 0x4c1f8211, 0x0c46067e, 0x07062c07, 0x0e200706, + 0x09e00909, 0x18e00e09, 0x2209e9f8, 0x19ff20e0, 0x200918bb, 0xc8ba1890, 0x225e820b, 0x82a00122, 0x00ff222d, 0x233782a0, 0x291b1b01, 0x20067a59, + 0x82478320, 0x80012118, 0xff211782, 0xa3731800, 0x8200200f, 0x55032000, 0x272108e7, 0x05894f00, 0x31070625, 0x83110706, 0x060721b2, 0x3328b782, + 0x33013f32, 0x013b1617, 0x2f209f82, 0x37260483, 0x26272611, 0xbe182127, 0x1d2209fb, 0x70181401, 0xf35e08aa, 0x83602011, 0x277982c2, 0x03052e23, + 0x0d280802, 0x0ae02319, 0x17232e24, 0xae830116, 0x2000ff22, 0x0020a583, 0x20055a44, 0x180783ff, 0x21102f58, 0x2985c001, 0x1a1a2528, 0x06062e06, + 0x23190106, 0x2e2607cb, 0x251a1a06, 0x66830001, 0x0d646018, 0x58fe6021, 0x002010c6, 0x830ab764, 0x005224ef, 0x69760064, 0xf3a10cc9, 0x045e3b20, + 0x5d2b2008, 0x372005e4, 0x7e13f169, 0x4c181220, 0x1a411043, 0x41502029, 0x06830519, 0x0b8ad020, 0x0e090923, 0x0be55490, 0x0c324c18, 0x20233041, + 0x9c611880, 0x0ed6690d, 0x550e677e, 0x002b0f4f, 0x01400220, 0x001f0060, 0x5d31002c, 0x15210cb7, 0x08255f32, 0x08ba6e18, 0x0637353c, 0x17161507, + 0x35373621, 0x05212726, 0x21352115, 0x17160100, 0x22800122, 0xcc5e1617, 0x200f8306, 0x260f84fe, 0x01010f50, 0x8380010f, 0x80fe2905, 0xa0fe7001, + 0x10016001, 0x2007f342, 0x20888210, 0x88b88240, 0x10a02110, 0x2609b95e, 0x00808020, 0xe8000003, 0xff10249b, 0xe8000100, 0x1517249b, 0x41333523, + 0xd0222737, 0x98aac0c0, 0x41000021, 0x9bac3e37, 0x41607021, 0x9b822bd0, 0xd3410220, 0x11eb470c, 0x21074e61, 0x9d443523, 0x37362c05, 0x15171621, + 0x26210706, 0x42503527, 0x6c420739, 0x42102011, 0x0f280966, 0x01600101, 0xa0221716, 0x20146742, 0x17681850, 0x01002c09, 0xe1ff0000, 0xa0014001, + 0x19001a00, 0x2109cf0d, 0xc7741617, 0x36333205, 0x25273437, 0x07062326, 0x0a140200, 0x073a5207, 0x3100820c, 0x38060404, 0x07021476, 0x0907eefe, + 0x89010215, 0x0c828dfe, 0x0c745f25, 0x83050404, 0x8372201f, 0x06f3232a, 0xe6821502, 0xc0265f84, 0xc0010001, 0x5f825900, 0x31170624, 0x42461f16, + 0x0a785605, 0x06070623, 0x20628207, 0x3fc01806, 0x83228307, 0x2627247f, 0x82262327, 0x0a561804, 0x3736220b, 0xfc871836, 0x2607240b, 0x8226012f, + 0x0100293e, 0x080d0809, 0x0110101a, 0x24062646, 0x10100120, 0x2f12821a, 0x09020109, 0x34080e0a, 0x08342121, 0x02090a0e, 0xa32027a8, 0x02242d84, + 0x60191212, 0x24052c44, 0x12121960, 0x294c8303, 0x0108090d, 0x26260501, 0x4c830105, 0x03202683, 0x0220258d, 0x0d227384, 0x268a0908, 0x3107e74f, + 0x014002c0, 0x002400c0, 0x00470031, 0x1300005e, 0x2b472726, 0x4d212005, 0x0622053d, 0x674e1107, 0x4d212007, 0x11210757, 0x820a8225, 0x23228216, + 0x05272611, 0x0a4e6318, 0x2109a663, 0x46833317, 0xbd453520, 0x1e20320f, 0x12120102, 0x0112251b, 0x1b251252, 0x02011212, 0x2111871e, 0x1187aefe, + 0xfea90129, 0x0f0f08ae, 0x83520108, 0xb7fe2105, 0x8606f65d, 0x20802106, 0x13733783, 0x0e802506, 0x49010909, 0xee204a90, 0x0126118f, 0x080f1712, + 0x5584eefe, 0x18081221, 0x4607e45a, 0xa02007d2, 0x9f459383, 0x6020200a, 0x80200837, 0x20061b41, 0x0a19415c, 0xaa4dd982, 0x41152005, 0x23200719, + 0x45071941, 0x21820688, 0x27263524, 0x16881323, 0xc5723320, 0x27262209, 0x41409235, 0xd2200817, 0x1088b98f, 0xbc835720, 0x0484d220, 0x2487c020, + 0x080f4022, 0x2e221184, 0x04411209, 0x41d22010, 0x72201117, 0x72245c8f, 0x72080f17, 0x04825283, 0x4180fe21, 0x29210789, 0x22128629, 0x87181117, + 0x203a8813, 0x0c3b6300, 0x21001622, 0x360ce147, 0x013f3233, 0x26013d36, 0x21272627, 0x23152115, 0x1d060722, 0x4b112301, 0xe32a0896, 0x135d131a, + 0x1b121201, 0xd774c0fe, 0x4be02005, 0xfe2505b7, 0x12121bc0, 0x211b8201, 0x0883e31a, 0x09e04027, 0x01400e09, 0x0c2b5540, 0x2c001729, 0x16370000, + 0x42163117, 0x8b43065c, 0x06232605, 0x15070607, 0x056f4237, 0x10857883, 0x16171624, 0x69830017, 0x5083e020, 0x1b298024, 0x8584011b, 0x0f84e020, + 0x0c6ec018, 0x624c0020, 0x01402507, 0x80291b1b, 0x60201b84, 0x3384218c, 0xdf480020, 0x80022f05, 0x3200c001, 0x51003a00, 0x70005900, 0x8a180000, + 0x06220afc, 0xd37e1107, 0x26112112, 0x0c9cf818, 0x05171630, 0x26273307, 0x37072223, 0x16011f16, 0xd25c1415, 0x34352909, 0x3736013f, 0x010f2205, + 0x27212083, 0x21209436, 0x58488001, 0x09722306, 0x6248a025, 0xc0c02105, 0xa0230785, 0x85720925, 0x17802a09, 0xfe172929, 0x4b9a4bfe, 0x36008201, + 0x4e0f1e02, 0x0f050505, 0x1d4a4a1d, 0x0605050f, 0x011e0f4d, 0x84010180, 0x0f2d221d, 0x211d8f1e, 0x6044a001, 0x11282305, 0x4d18d9fe, 0x27220cca, + 0x0f852811, 0x011f2108, 0x8f911f01, 0x3101018f, 0x08951a01, 0x0f0f0a0f, 0x0202200f, 0x0f0f101f, 0x95090e0a, 0x0130011a, 0x15221c82, 0x1d93011a, + 0x08975318, 0xc0018025, 0x19003700, 0x2e08d571, 0x33161714, 0x011f1615, 0x15070607, 0x67060722, 0x212005d0, 0x23087e7e, 0x012f2635, 0x270ab676, + 0x2321012b, 0x35231501, 0x4505225d, 0x01240663, 0x2e44442e, 0x2206ef48, 0x93000120, 0x00ff2115, 0xc0281882, 0x44441b01, 0xc001011b, 0x0b26cd85, + 0x44442f42, 0xff18422f, 0x138c0dda, 0x0b4bfe29, 0x441c280b, 0x77271d44, 0x37240a7f, 0x48004000, 0xb1073966, 0x351729bd, 0x07141533, 0x13352623, + 0x2320c385, 0xc498ae93, 0x10c0402c, 0x051010a0, 0x07444407, 0xc8a9a005, 0x1d26c782, 0xfe1d1818, 0x398308cb, 0x8b410820, 0x25cd8349, 0x27010f06, + 0xc6ae2726, 0x412f8a41, 0x1c210689, 0x085f4d28, 0x20074742, 0x088f644b, 0xc3752120, 0x82152008, 0x16172d93, 0x17321517, 0x07141516, 0x21012b06, + 0x22081276, 0x833f3635, 0x22353cae, 0x17352627, 0x011f1615, 0x35373637, 0x35331123, 0x07012f26, 0x00150706, 0x420e0909, 0x66431944, 0x08704205, + 0xc6856020, 0x5942c020, 0x06984307, 0x5c422582, 0x4220201e, 0x0b220657, 0x098780fe, 0x0100002c, 0xc0ff2000, 0xc001b001, 0x5d453c00, 0x021d2607, + 0x27260706, 0x82988335, 0x051c43aa, 0x36373222, 0x2105f75f, 0x6c6c023d, 0x21058205, 0x26822223, 0x05862620, 0x0e14902e, 0x0f01010d, 0x1609010f, + 0x322d0101, 0x9783d082, 0x1516242d, 0x0e0d0101, 0x020d1314, 0x8b130e0d, 0xc0012105, 0x30231783, 0x820f331d, 0x081b2735, 0x3b261e13, 0x24472a27, + 0x0f692706, 0x50291f20, 0x52831010, 0x0c130c23, 0x4903870d, 0xe0200953, 0x4822af82, 0xf8180000, 0xb2840a21, 0x83273421, 0x1506248e, 0x86151411, + 0x7e142009, 0x3720055b, 0x0bddb018, 0x1d212a8b, 0x210d8401, 0x9e432001, 0x33c08405, 0x090e0e09, 0x100d3c09, 0x0c0b0c10, 0x135d4371, 0x0232314b, + 0x28831e8f, 0x79410120, 0x83d02006, 0x41b020c2, 0xfe2605a5, 0x3a0302f0, 0x3c830c0b, 0x013f6b27, 0x4b313202, 0x201885d0, 0x20248a70, 0x200b83b0, + 0x83be82d0, 0x000225d0, 0x36008001, 0x0c2b7f18, 0x1415062e, 0x06171617, 0x16171615, 0x36013b17, 0x2f05f558, 0x06232726, 0x07161707, 0x31012f06, + 0x06072627, 0x32055c7f, 0x0b112823, 0x110b0c0c, 0x0c0d0cb4, 0x0d010c13, 0x5120140e, 0x2b3705c5, 0x222e3224, 0x030d4b0c, 0xcc430f05, 0x050f0e10, + 0x10080705, 0x72f0e6d2, 0x270805ec, 0x0e13130d, 0x130d020d, 0x010d0e14, 0x36252401, 0x232c3f71, 0x181f0201, 0x030d0e06, 0x08054015, 0x0f101007, + 0x0042050e, 0x132ea38e, 0x36313736, 0x16023b37, 0x1d16011f, 0xaa181403, 0x2722085c, 0x7855022b, 0x83af8507, 0x012b210d, 0x00200583, 0x70319383, + 0x23392f50, 0x09091471, 0x090e600e, 0x50224e09, 0x82788430, 0x84ad18ad, 0x8470200a, 0x84502013, 0xa42f2505, 0x100c231d, 0x21067972, 0x6868320e, + 0x840f830f, 0xff202b9b, 0x012002c0, 0x004f00c0, 0x77181300, 0x16210927, 0x533a1907, 0x0607230c, 0x1742012f, 0x82142005, 0x3b1725b7, 0x30313001, + 0x3622c682, 0x6e181337, 0x062208e0, 0x87752623, 0x06072406, 0x8306010f, 0x04f72f3f, 0x0d0d0b0b, 0x35030607, 0x040a1002, 0x0d83052b, 0x03060628, + 0x0505023f, 0x1c423705, 0x0b240808, 0x22212d08, 0x0603520d, 0x0b0d0d06, 0x0325040c, 0x24010e09, 0x0d070703, 0x030b0a0e, 0x13150526, 0xa8013906, + 0x4d834583, 0x0210c626, 0x0d8f0901, 0x4d834582, 0x0306cf25, 0x42350403, 0x0325082b, 0x012b1b1b, 0x11f11913, 0x09802407, 0x83aa0d02, 0x264b8343, + 0x010114b2, 0x1800d512, 0x260a8795, 0x00420037, 0x4458004d, 0xf94a0685, 0x05c87b05, 0x16230587, 0x75171617, 0x2b2b057f, 0x22233101, 0x26272627, + 0x1826012f, 0x2908af74, 0x06272613, 0x17161507, 0x474a3736, 0x22088206, 0x89172726, 0x42802015, 0x2e420d28, 0x4010350d, 0x2a070805, 0x481a2424, + 0x0d03020a, 0x0b0f100e, 0x0f017038, 0x1805707c, 0x2008d44d, 0x7b1d1950, 0x42982008, 0x942005a3, 0x4208c943, 0x04240aa7, 0x60221415, 0x49834183, + 0x43014b24, 0x4683f8fe, 0x2005257d, 0x09237d10, 0x15891020, 0x05000027, 0xc0ff2000, 0x2a018201, 0x20000c00, 0x40003400, 0x53007100, 0x1d2b05a9, + 0x34352301, 0x17333637, 0x18311732, 0x2323c3d8, 0x27231725, 0x20081441, 0x76461835, 0x07f9490c, 0x18331621, 0x2017e4d8, 0x06c47ee0, 0x4306b544, + 0x817a05e7, 0xddfe270c, 0x05474653, 0xf8820504, 0x1b050c24, 0xda181a46, 0x0e240fe5, 0x06101412, 0x0f0edb18, 0x18100f29, 0x0909c001, 0x6fd0d00e, + 0x7f4c0687, 0x18068306, 0x270db66e, 0xa3bdad40, 0x050c0c0d, 0xde216183, 0x05b04101, 0x0f0f0128, 0x14140101, 0xdb18011f, 0x0b290cbe, 0x191b3526, + 0x00031112, 0x057f4f00, 0x6001802d, 0x43002400, 0x26010000, 0x18070607, 0x74095a98, 0x0d650534, 0x11352e07, 0x0f262726, 0x14052701, 0x3b163117, + 0x13246501, 0x06072228, 0x0f5a0115, 0x6d6e1515, 0x0a562506, 0x560a1010, 0x26062d45, 0x760f1515, 0x82a6fe76, 0x0615410d, 0xc020be86, 0x0125d882, + 0x08061153, 0x07995216, 0x0d73a024, 0x4e45730d, 0x00012806, 0x11060816, 0x82139e9e, 0x06085325, 0x49090a7c, 0x022a0513, 0x00c00100, 0x0032001a, + 0xa318003e, 0x03231bd7, 0x4d333736, 0x3745053e, 0x15232705, 0x27260706, 0x7e18013d, 0x15200a7c, 0x19576718, 0x16026035, 0x16172258, 0x22220201, + 0x0b151307, 0x16023d25, 0x18300216, 0x18083ddd, 0x36182e44, 0x01021668, 0x2c221716, 0x0b154b17, 0x48521307, 0x16020216, 0x41587060, 0x40210513, + 0x0cef4d00, 0xc5820420, 0x00002d28, 0x11211113, 0x40182321, 0x132114a2, 0x45141921, 0x37342e0c, 0x02403336, 0x4000fe00, 0x1b121201, 0x084e4c02, + 0x0984fe20, 0x4b09bb75, 0x012306b7, 0x18e0fe80, 0x200a9840, 0x08e058e0, 0x7dfe2021, 0x00200c44, 0x29055741, 0xc001c001, 0x2f002200, 0x93824800, + 0x2e559118, 0xa1180720, 0x362115cb, 0x6e911837, 0x16e02227, 0x05235b02, 0x89160221, 0x18012009, 0x22278391, 0x82160238, 0x57428e02, 0x23240c17, + 0x3b003000, 0x21082744, 0xaf7c3533, 0x06ce6b06, 0x18211521, 0x231701f9, 0x26373605, 0x2006b373, 0x6c611880, 0x18302009, 0x751abef8, 0xb026054d, + 0x16020216, 0xf81801b0, 0xb8202787, 0x0383f683, 0x830b8b41, 0xb44920b3, 0x262723b3, 0xcb5e010f, 0x17062b06, 0x17013f16, 0x2f363716, 0xc1a73701, + 0x190e3121, 0x20158176, 0x20cfa82f, 0x139a5971, 0x2f111123, 0x20df8f2f, 0x82dfbe3f, 0x20d5a7dc, 0x21d58349, 0x3b712f5f, 0xad702006, 0x2f5f21cb, + 0x21062271, 0x00820070, 0x0000012a, 0x0002e0ff, 0x2400a001, 0x2106974d, 0x8918031d, 0x3d270855, 0x26272601, 0x8535010f, 0x27342905, 0x20012b26, + 0x0109090e, 0x08726218, 0x0b0b0124, 0x04849d0c, 0x0e090925, 0x82a00140, 0x49f02005, 0x8027090a, 0x07060e98, 0x843f5406, 0x82972005, 0x226f8238, + 0x5f200003, 0x112406d3, 0x31002200, 0x2213275c, 0x60373627, 0x362107b6, 0x21018337, 0x946f3503, 0x27222308, 0x2a193526, 0x022f099a, 0x3d3d2928, + 0x90022829, 0x0f01010f, 0x821b1b29, 0x24098205, 0x201b1212, 0x82008210, 0x2173828c, 0x8e183001, 0x40220f51, 0x25820f01, 0x291b1b22, 0x0f2a0582, + 0x0112121b, 0x03a370fe, 0xf746a303, 0x23a28205, 0x06000300, 0xf92ba382, 0x1c00c001, 0x41003500, 0x51130000, 0x142d0594, 0x21331617, 0x36013f32, + 0x2b26012f, 0x07a44b01, 0x27340523, 0x290e8231, 0x23152335, 0x06010f22, 0x2483011f, 0x3d363724, 0x12820701, 0x2106f25e, 0x1446e035, 0x07792907, + 0x09093005, 0x99070530, 0x00209e86, 0xa0220782, 0x16879940, 0x82790121, 0x46c02087, 0x01200667, 0x2407d176, 0x0b0b3005, 0x06197f30, 0x2082e020, + 0x85202021, 0x213b8211, 0x4618e040, 0xb7820759, 0xe4ff003c, 0x9c014002, 0x0f000400, 0x00001a00, 0x17112705, 0x37113711, 0x17161736, 0xee820611, + 0x07113739, 0x27262706, 0x01373611, 0x20c0c080, 0x0a090d7f, 0x910e0101, 0x86916ffe, 0x371c3a0a, 0xfe378101, 0x8301017f, 0x07070532, 0x0fb1fe0d, + 0x7c013a07, 0x337dfe3a, 0x230e8204, 0x070f4f01, 0x26063342, 0x010002c1, 0x521c00c0, 0x15200dc9, 0x3f20ee82, 0x0a95b618, 0xc4522120, 0x09602508, + 0x8b7b0809, 0x240ab65e, 0x121201c0, 0x0597751b, 0x040a5025, 0x835d0504, 0x05e2450f, 0x220c1b47, 0x4740002d, 0xc75c1d1b, 0x06084509, 0xef181520, + 0x12870a68, 0x18191d47, 0x510d1d44, 0x41180bba, 0x012118be, 0x06954640, 0x7f530694, 0x001a220c, 0x55bd9d2f, 0xb0830fec, 0x788eac99, 0x6020a199, + 0x730dff55, 0x0c280c3f, 0x35002c00, 0x00003e00, 0x2705054d, 0x17161716, 0x07352315, 0x60090254, 0xbc580984, 0x07062505, 0x17150706, 0x2010b660, + 0x07eb70a0, 0x40308026, 0x010d0e14, 0x09fcee18, 0x0e0d0124, 0x5c624014, 0x60182007, 0xc8200747, 0x18087660, 0x2208f58d, 0x83303030, 0x29d0232b, + 0x3e841b1b, 0x4783d020, 0xd0623020, 0x08d16008, 0x3b4c4388, 0x40022406, 0x1800bf01, 0x240959b7, 0x0f262736, 0x078b5801, 0xcf823320, 0x21058143, + 0x9d7f013f, 0x462b2006, 0x232c0641, 0x06150337, 0x35272607, 0x17163736, 0x0c870282, 0x15891720, 0x1309fd26, 0x565d0c14, 0x2b050b44, 0x10110634, + 0x171c0117, 0x34061110, 0x562a1185, 0x13140c5d, 0x51e85109, 0x264c013d, 0x4c602006, 0x0122052d, 0x264c800f, 0x149d2508, 0xb313090c, 0x27054a42, + 0x0e0d15d0, 0xd0150d0e, 0xb3280d85, 0x140c0913, 0xf3fe9d9d, 0x04843584, 0x890b1b4c, 0x43002015, 0x45260c03, 0x00005700, 0x93180625, 0x252018a5, + 0x3c059577, 0x0f141517, 0x16170601, 0x3336013f, 0x16011f32, 0x012f3637, 0x36013d26, 0x2736013f, 0x23198226, 0x012f2223, 0x11c19818, 0x1a729018, + 0x15a22708, 0x0c14070b, 0x1d021c19, 0x09151505, 0x07060318, 0x16091802, 0x021d0514, 0x130c1a1c, 0x0c150a07, 0x282b2b28, 0x0e4c5f0c, 0x18058505, + 0x08189b90, 0x14075627, 0x0b050a15, 0x06063305, 0x05091656, 0x06064915, 0x09051549, 0x06065616, 0x050b0632, 0x0714150a, 0x05111105, 0xed98180a, + 0x0000320c, 0xff200004, 0x01df01c0, 0x001100c0, 0x004c0040, 0xd9711857, 0x07222314, 0xfb840631, 0xf5821720, 0x15013f24, 0xe54b1f14, 0x2f34230a, + 0x81183501, 0x262209a6, 0x298a2327, 0x82052721, 0x012f2b30, 0x07060706, 0x0e14b017, 0xa24f010d, 0x1c08290b, 0x2f0c1717, 0x0c040405, 0x07230082, + 0x414d1323, 0x260805c5, 0x0946320e, 0x0b0b0d0c, 0x4d070102, 0x28182f1e, 0x0607031f, 0x0a0b0e0d, 0x01351604, 0x0b0d0943, 0x06047607, 0x18760808, + 0x2411b371, 0x190e0e20, 0x834a835d, 0x2b462552, 0x534d131a, 0x25055642, 0x320e1459, 0x50835e5e, 0x67245883, 0x7ddb0125, 0x04205f82, 0x58305783, + 0x070b9e35, 0x06ab0d09, 0xab020604, 0x05000000, 0x250a9f7c, 0x002b0027, 0x5218003b, 0x1f341889, 0x06071601, 0x0723012f, 0x3f262706, 0x32373601, + 0x07270717, 0x084b6118, 0x2326f283, 0x17352726, 0x976a3315, 0x27262205, 0x08ae4523, 0x0bc3ce18, 0x07489639, 0x0a0b1512, 0x150c0952, 0x07480812, + 0x01070f0e, 0x5b2a1515, 0x43381602, 0x382407b6, 0x20300216, 0x20073c41, 0x13701820, 0x908d3515, 0x12070c15, 0x08131313, 0x0c90150c, 0x2a6b0d01, + 0x0216602a, 0x23075f67, 0x18901602, 0x08346b18, 0x31051f50, 0xbf010002, 0x34001a00, 0x5f004e00, 0x16130000, 0xcb82010f, 0x67170621, 0x26210a02, + 0x21b88237, 0xde58011f, 0x19ce8305, 0x191fde2f, 0x820cf82f, 0x83272030, 0x83262041, 0xbd172105, 0x0d8c4f18, 0x14394a08, 0x14153f12, 0x123f1415, + 0x31da3815, 0x01011b1c, 0x12311c1b, 0x28100d0f, 0x17181817, 0x0f0d1028, 0x13224012, 0x22131414, 0x100c0f13, 0x0f0f0e1a, 0x0c101a0e, 0x2942130f, + 0x14280202, 0x14110a0e, 0x11140101, 0x01140e0a, 0x86501899, 0x0b23210d, 0x07865018, 0x05220c36, 0x44393928, 0x28393944, 0x1012100d, 0x38303021, + 0x21303038, 0x2e080a82, 0x271b470d, 0x272e2e27, 0x100c1b27, 0x1d140f13, 0x1d23231d, 0x130f141d, 0x1c470c10, 0x0a1c3434, 0x0e0e1311, 0x0e0e1a1a, + 0x000a1113, 0x63001400, 0x260807e7, 0x001a0011, 0x0035002c, 0x00500047, 0x00740062, 0x00980086, 0x00b300a1, 0x00ce00bc, 0x00e900d7, 0x010401f2, + 0x181f010d, 0x2112d36b, 0x7149011f, 0x17162105, 0x10dd9718, 0x18010f21, 0x1807cfa6, 0x2110fd96, 0x1a993317, 0x7a672720, 0x118c6710, 0x6805d044, + 0x50990ce8, 0xa1980720, 0x99170721, 0x06494a35, 0x359bd792, 0xd8468020, 0x45078707, 0x551808e3, 0x1c830b88, 0x2c529020, 0x52328f08, 0x198f0946, + 0x8708bb4e, 0xea4d184c, 0x00012110, 0x4d99338f, 0x08b84018, 0x10209a8f, 0xe0209a98, 0xa907b146, 0xc34f1832, 0x20338709, 0x415e98b0, 0x7697182c, + 0xed8f6020, 0x87085848, 0x08964418, 0x4a977d87, 0xc24195b2, 0x18c89819, 0x2f08335f, 0x003500bf, 0x007d006b, 0x00a3008f, 0x010000bd, 0x0801081a, + 0x18323121, 0x4c08bdf7, 0x26210700, 0x33018627, 0x34313023, 0x01392231, 0x36013923, 0x37070607, 0x31373605, 0x23094271, 0x06150706, 0xcc5b1582, + 0x36332506, 0x35373637, 0x20065776, 0xb2501827, 0x1803200b, 0x18109043, 0x2111b55a, 0x771a0607, 0x362208bf, 0x3b563435, 0x18372005, 0x2208f84f, + 0x76361716, 0x0b83089d, 0x468e0121, 0x01270799, 0x0c060301, 0x180c0f10, 0x0808634b, 0x15111123, 0x05081116, 0x01010202, 0x0a030201, 0x05f3fe0e, + 0x302c1f1f, 0x0101201f, 0x0a0a0d1d, 0x0e0d0101, 0x05c84614, 0x11331383, 0x3202022d, 0x31454b31, 0x08010930, 0x0a0e0d08, 0x1861020a, 0x2208a94d, + 0x180e0909, 0x270ccb71, 0x40090997, 0x0a0d0d0a, 0xa7200686, 0x2b056147, 0x02161602, 0x22171601, 0x01161722, 0xbd210b84, 0x06844705, 0x04020128, + 0x19101107, 0x51852219, 0x24243127, 0x050b1617, 0x36998203, 0x1d140504, 0x1c1c2be1, 0x1f200101, 0x0e1f2d30, 0x06191413, 0x180d0e14, 0x2c0a274c, + 0x30140f06, 0x32314b47, 0x2c2b0202, 0x20b78244, 0x219e8302, 0x7285e4fe, 0x835a0585, 0x200f8209, 0x21988309, 0x06870940, 0x72857920, 0x02021623, + 0x07916316, 0xef4b0b83, 0x01803508, 0x004900c0, 0x13000093, 0x26312736, 0x06072627, 0x1d06010f, 0x1626c682, 0x31013b17, 0xa4573736, 0x06072206, + 0x6d861807, 0x48162007, 0x27220795, 0x2b632726, 0x0f262206, 0x23098a01, 0x31170601, 0x37212482, 0x08216036, 0x31012b25, 0x87060706, 0x53372037, + 0x6e820753, 0x20074b59, 0x05525917, 0x3f161723, 0x20098a01, 0x0740419d, 0x010e552d, 0x48362524, 0x071b3708, 0x820c0304, 0x0c072200, 0x05b94917, + 0x070c1722, 0x0c3c0e82, 0x14070403, 0x070c5126, 0x0b040306, 0x52650d0b, 0x0801010a, 0x0a0d0d09, 0x46011766, 0x56214487, 0x2244a30d, 0x92060e50, + 0x42922044, 0xab2c0766, 0x36091f1b, 0x07012425, 0x0d0c0c2d, 0x03226e82, 0xfb55130c, 0x0c132b07, 0x07060303, 0x220c0c0d, 0x8583160d, 0x1c211e83, + 0x20858344, 0x238d820b, 0x5cfe2e55, 0x0b2044bb, 0x5522d283, 0x6748002e, 0x00c02b08, 0x00250012, 0x0075005b, 0x7e180100, 0x115d0a3d, 0x75129206, + 0x41180535, 0x9e550b70, 0x58062005, 0xdf4105a9, 0x37362407, 0x50353736, 0x262c05c2, 0x15272627, 0x06310722, 0x26070615, 0x21062e64, 0x0b831716, + 0x26273426, 0x28f70123, 0x86050443, 0xc0fe2206, 0x860f8580, 0x2c393a06, 0x02051f1f, 0x0d0e0a0a, 0x09010808, 0x4b453130, 0x02023231, 0x2001112d, + 0x065b5a1f, 0x0d0e1429, 0x0a0a0101, 0x86011d0d, 0x0f424313, 0x0e090925, 0x42288901, 0x068605cc, 0x0f856582, 0x06858020, 0x1c01f724, 0x61832b1c, + 0x0d306982, 0x022b2c44, 0x4b313202, 0x0f143047, 0x201f3006, 0x27074743, 0x06140e0d, 0x0e131419, 0x20050673, 0x43568250, 0xe7510f10, 0xff003407, + 0x010002c0, 0x000a00bb, 0x00750039, 0x1f141300, 0x53333601, 0x163105ca, 0x17163117, 0x15141514, 0x3d363736, 0x06272601, 0x59441807, 0x06072307, + 0xcd4c012f, 0x26098705, 0x17160102, 0x82023b32, 0x34372829, 0x34313435, 0x66272635, 0x1f2b052f, 0x07062301, 0x16331716, 0x96070617, 0x9b200809, + 0x1a121201, 0x11140d14, 0x2036ae07, 0x111e0120, 0x16160211, 0x140d7402, 0x03400912, 0x50040606, 0x50250983, 0x04070603, 0x38098340, 0xf7fe5a2c, + 0x01011402, 0x223307c9, 0x1d010122, 0x1554311e, 0x36150509, 0x25e283cf, 0x01010780, 0x0983a007, 0xc91aa020, 0x1e2f117d, 0x131f0101, 0x0c091224, + 0x2c122f13, 0x82013a2c, 0x1e142400, 0x837c241f, 0xc952212e, 0x152b1782, 0x0304076e, 0x09128a06, 0x838a140d, 0x836e2009, 0x1c4c2b13, 0x0414e9fe, + 0x33222201, 0x31820202, 0x29283428, 0x15051b10, 0xa5840915, 0x07070122, 0x8c05fb44, 0x06b34207, 0xc001802a, 0x34001d00, 0x4c003b00, 0x0d0d5418, + 0x21073c44, 0x01822627, 0x19070621, 0x2b1a2911, 0x01070601, 0x16253736, 0x17163117, 0x32280183, 0x25313033, 0x13271706, 0x30281119, 0x1095fe37, + 0x1c53010c, 0x0b65fe18, 0x23241717, 0x043d3030, 0x03d8fe05, 0x29111905, 0x01200836, 0xfe15151e, 0xb40d08f7, 0x2123231c, 0x01171722, 0x000a0ae8, + 0x00000100, 0xc001e0ff, 0x4600a001, 0x11200c82, 0x0621da83, 0x20e48523, 0x053e4735, 0x35373222, 0x22201185, 0x0622f682, 0x25191107, 0x36211195, + 0x20018237, 0x83ec8433, 0x01372c09, 0x1f0c0fc0, 0x2d161413, 0x822d1e1e, 0x25048274, 0x1b1c2d1e, 0x0f831c1b, 0x11121725, 0x46161310, 0x16250b1b, + 0x12111013, 0x371b8317, 0x20131416, 0x90010f0b, 0x0505b0fe, 0x0205060b, 0x01020e0e, 0x01074007, 0x09220883, 0x068309d0, 0x06050526, 0xcdfe0508, + 0x20053246, 0x06285201, 0x08050d24, 0x2e840506, 0x0b060527, 0x06000505, 0x31008200, 0x80018002, 0x41001800, 0x57004e00, 0x6d006400, 0xb7450000, + 0x1736270a, 0x17010f16, 0xbc472335, 0x07172305, 0xf2822706, 0x3f36372a, 0x22232601, 0x3315010f, 0x7505e369, 0x362205cd, 0xfd411637, 0x022f2205, + 0x0aec6023, 0xb8510720, 0x8a252007, 0x17232114, 0x08058644, 0x01171633, 0x020d6043, 0x100a0901, 0x0d630e0f, 0x150b080a, 0x4804018b, 0x1b211c18, + 0x1d183417, 0x0411131c, 0x12541603, 0x48181d13, 0x130f5c1c, 0x03090e13, 0x30068311, 0x110f0307, 0x010e0c12, 0xfa860f01, 0x0e090960, 0x5de88220, + 0x01210830, 0x201186f0, 0x7d921860, 0x01260808, 0x0f0a4f6b, 0x020d0d0f, 0x084e0a03, 0x100b0c0b, 0x2f02bd80, 0x287d150f, 0x18040412, 0x131b1b18, + 0x30100843, 0x508353e0, 0x0f0b0922, 0x07250683, 0x02020a09, 0x216b830e, 0x3d5b527b, 0x01e02107, 0x20067451, 0x201187e0, 0x07094ad0, 0x00020022, + 0x38056f44, 0x000a00c0, 0x3f000020, 0x07151701, 0x2f222306, 0x22373501, 0x0706010f, 0x08d45615, 0x2f263529, 0x40232601, 0x839ec0c0, 0x9f24085d, + 0xc50e13c0, 0x12010119, 0x80011b12, 0x0112121b, 0x0fc41901, 0x8e8ef013, 0x0b0b7530, 0x0bd03075, 0xf0201392, 0x21821784, 0x1320f037, 0x00000b92, + 0xff200006, 0x010002c0, 0x001500c0, 0x00360024, 0x06975041, 0xa9700620, 0x36212308, 0x97703637, 0x33132106, 0x22051b46, 0x82272623, 0x183f2014, + 0x2011d041, 0x09ac5e37, 0x96190720, 0x602014d0, 0x015b7e87, 0x40702e0b, 0x01161722, 0x0fc00f01, 0x17160101, 0x10444b22, 0x2b41d020, 0x41102007, + 0x114c0722, 0xdc581808, 0xe0fe2115, 0xd5184783, 0x738807f8, 0x70207b87, 0x40201983, 0x70220484, 0x08850f01, 0x90010f22, 0x5c181589, 0x402208b3, + 0x1741a001, 0x31951845, 0x18152014, 0x2013e2a1, 0x085856c0, 0x41504021, 0x80211e17, 0x98b28380, 0x15bc5004, 0x4105aa72, 0x2020181b, 0x1a769518, + 0x97420320, 0x00123808, 0x003f002d, 0x27262500, 0x012b2631, 0x07060722, 0x33161716, 0x42363732, 0x83790613, 0x27262306, 0x01833736, 0x17221c82, + 0x52181716, 0x8f321259, 0x241d1d11, 0x1d1d2440, 0x25241b11, 0x24252b2b, 0xc35d711b, 0x00ff2117, 0x0ccc5018, 0x1f14142b, 0x12111d40, 0x1e1d1112, + 0x21008211, 0x6218801e, 0x50181778, 0x0120088a, 0x42833282, 0x21062b49, 0xf3428001, 0x5d7d180a, 0x2bef420b, 0xc1412720, 0x18002013, 0x2009e27f, + 0x1ec14160, 0x26557020, 0x16c94209, 0xc942c020, 0x41a0201c, 0x260807ad, 0x00000700, 0x4002e0ff, 0x0a00a001, 0x27001700, 0x44003900, 0x5a004f00, + 0x21130000, 0x27262726, 0x06070621, 0x44111507, 0x11250838, 0x37361321, 0x088b5f31, 0x27262322, 0x2011d450, 0x211e8437, 0x1c820706, 0x15b57018, + 0x6f820020, 0x1b121223, 0x0e6a53fe, 0x40c0fd22, 0x162a9682, 0x0f0f1676, 0xca0a0101, 0xbe1a010a, 0xb02210bb, 0xb5420f01, 0x43188318, 0x202008b1, + 0x20055559, 0x23658201, 0xebfe2001, 0x0f235184, 0x820a160f, 0x4f552057, 0xaf180f6a, 0x7018085f, 0x003111b9, 0x00030000, 0x01c0ff10, 0x00c00130, + 0x003f001b, 0x08d17853, 0x65070621, 0x362005d3, 0x3425ed82, 0x35272627, 0x20048226, 0x08c74e07, 0x31301524, 0xf4443130, 0x07cd6d05, 0x83373621, + 0x13352113, 0x270a697c, 0x16373635, 0x17161517, 0x21055875, 0xef4d110e, 0x0d112707, 0x0e0d0102, 0x3f587014, 0x01012307, 0xe75b011d, 0x210a8207, + 0x1d83a001, 0x0d0e142d, 0x011e0201, 0x1e010f0f, 0x83800102, 0x1aa52811, 0x221c1510, 0x83011617, 0x151c2447, 0x58a51a10, 0xa5240c4b, 0x33250201, + 0x2507085c, 0x01022533, 0xc618ffa5, 0x2129080f, 0x010fd30c, 0x0cd30f01, 0xebf34021, 0xf383ab20, 0xf340ab20, 0x837b20ed, 0x407b20f3, 0x3320edf3, + 0x3320f383, 0x5120f392, 0x210c015c, 0x75181716, 0x37230a48, 0x4e353736, 0x152505e3, 0x31303130, 0x05ab4606, 0x27581720, 0x21138307, 0x475e2635, + 0x52312005, 0x16220b45, 0x9d437017, 0x430d2008, 0xd35b0bd1, 0x0ec94305, 0x1f200123, 0x0f725930, 0x82180120, 0xd04308d8, 0x83702011, 0x11c84330, + 0x201f3024, 0x3c58fe01, 0x207f8708, 0x23008200, 0xff000008, 0x2205db60, 0x573e002c, 0xaa200a15, 0x26086f68, 0x1706011f, 0x5b071716, 0x27230534, + 0x82010f26, 0x4d0720d5, 0x4d660639, 0x11352207, 0x106c5317, 0x10fe7d18, 0xc5013d21, 0x5b352023, 0x403011a0, 0x0f0f0a0b, 0x0210110a, 0x0e011503, + 0xa011110e, 0x012a0483, 0x1e21201c, 0x2b291e10, 0x994f1c1c, 0x06cf7006, 0x5312bd67, 0xd6670b7c, 0x1818980c, 0x2f0d0b63, 0x0b0a0f3c, 0x201e100b, + 0x11011c21, 0xa00e0e11, 0x012d0483, 0x10020315, 0x01011c11, 0xfe2b1c1c, 0x224885c4, 0x5fdc3c01, 0x5e8b0c3f, 0x660ca565, 0x1f85067b, 0x9a5f1999, + 0x8200200c, 0x49022000, 0x312e084b, 0x00004e00, 0x32373613, 0x1506011f, 0xbf411716, 0x26072607, 0x27072227, 0x05ca5e26, 0x18074355, 0x21091395, + 0x2b820335, 0x2009fd67, 0x3e0a8921, 0x21353736, 0x060c0160, 0x01060f04, 0x110c0812, 0x0e0e6811, 0x1e160f0e, 0x170f0d10, 0x7a152120, 0x64410810, + 0x80fe2406, 0x851f0140, 0x000121eb, 0x1f2e0785, 0x0140fe01, 0x04010c73, 0x1e100d0f, 0x3e820f16, 0x1111682d, 0x0112080c, 0x01170f06, 0x5e211516, + 0x2c85060f, 0xedfeb326, 0x281c2c10, 0x21050041, 0x07851010, 0x2c1c2823, 0x06df5e10, 0x01c00134, 0x002b00c0, 0x0066004c, 0x25000078, 0x36313736, + 0x96422635, 0x17142206, 0x20018216, 0x07375915, 0x7505fb4e, 0x35220555, 0x24823736, 0x43272621, 0x06210b92, 0x0d705207, 0x19362721, 0x52080c4b, + 0x318605ea, 0x18333621, 0x0812ab8f, 0x16253f2b, 0x31320216, 0x32314b4b, 0x25161602, 0x253d0502, 0x1e010125, 0x3f32331d, 0x1d33323f, 0x2501011e, + 0x02053d25, 0x09050202, 0x5a58180d, 0x090d250b, 0x02310205, 0x0871b118, 0x5d312008, 0x0113121a, 0x07070601, 0x0f0c0c04, 0x040c0c0f, 0x01060707, + 0x1a121301, 0x010f1018, 0x18100f01, 0x2408967d, 0x2726184c, 0x836d832f, 0x272f2a75, 0x1e1b1826, 0x37361b01, 0x846d8646, 0x37462c79, 0x1e011b36, + 0x0709261b, 0x181b080f, 0x26092759, 0x070f081b, 0x47442a09, 0x443807e3, 0x0a01162a, 0x291b1a09, 0x050e1829, 0x0e050404, 0x1b292918, 0x2009091a, + 0x7e836e8b, 0x0a475018, 0x1500a024, 0xd1622800, 0x0ad74a0c, 0xc0681720, 0x67411812, 0x18202013, 0x2007db88, 0x062c42fe, 0x4315524c, 0x83820c88, + 0x0000012a, 0x0002e0ff, 0x13002000, 0x200a436f, 0x09bc4233, 0x25422020, 0x86012005, 0x40fe2155, 0x4c0d1e43, 0x1c2e0967, 0x46003200, 0x23010000, + 0x23150706, 0x914a3635, 0x17162e05, 0x06070615, 0x33352307, 0x26353736, 0x05564c27, 0x0ac28b18, 0x26272625, 0x19171127, 0x2a127506, 0x0fe0b001, + 0x16014001, 0x49e02217, 0x102c075d, 0x01010f10, 0x0150fe0f, 0x011b1212, 0x230ab84b, 0x0112121b, 0x6718d683, 0x01240ab4, 0x100f0180, 0x8408177d, + 0x01402241, 0x4f51820f, 0x4082056a, 0x4088ff20, 0x44000121, 0x33770c76, 0x0015210c, 0x18cbd718, 0x41181720, 0x614b177d, 0x22098809, 0x184fc0fe, + 0x20186c41, 0x417118a0, 0x188f2013, 0x41185f41, 0x6026096f, 0x7a007500, 0x896e0000, 0x7b062005, 0x16220506, 0xde183317, 0xbe180d2f, 0x352608fd, + 0x17161533, 0x06873736, 0x36373623, 0x71de1837, 0x200d850d, 0x05564b26, 0x15070626, 0x27263523, 0x07200684, 0x33132b64, 0x33152317, 0x1602b035, + 0x121b0216, 0x16280112, 0x28160202, 0xd483058b, 0x536a1d83, 0x2027a705, 0x0ac24110, 0x0e090927, 0x01c0c0c0, 0xb55a84a8, 0x2076944e, 0xdeb11868, + 0x090e250a, 0xc0c02009, 0x0a878318, 0x4b699120, 0x36372808, 0x010f1617, 0x84013f15, 0x250d8307, 0x06071617, 0x096d010f, 0x17072105, 0x17211f85, + 0x220f8316, 0x852f0607, 0x15022117, 0x1b661e85, 0x06072809, 0x013f2627, 0x84010f35, 0x09475307, 0x37262725, 0x18011f36, 0x20080c4e, 0x830f8326, + 0x21178411, 0x06843502, 0x34350126, 0xe0333637, 0x2a08a482, 0x0e11110f, 0x123d310e, 0x04151508, 0x0c0c1805, 0x0306080c, 0x16190c03, 0x16080314, + 0x443c3c44, 0x15040716, 0x030c1915, 0x82080603, 0x0518211c, 0x08280d82, 0x0e313d12, 0x0f11110e, 0x8f05f945, 0x070d2141, 0x43224189, 0x419f3d3e, + 0x82c00121, 0x0f1e2146, 0x31235083, 0x83432346, 0x0e132177, 0x6e824183, 0x060e0823, 0x29898208, 0x13242312, 0x08161403, 0x83830e06, 0x0e298b83, + 0x03081613, 0x46234314, 0x21be8331, 0x48441e0f, 0x21458705, 0x458b4224, 0x87070d21, 0x12232145, 0x5b1845a0, 0x1e250d27, 0x26370000, 0x09bc5035, + 0x83070621, 0x18222001, 0x340a8f97, 0x1b0116f6, 0x312b2c1c, 0x011b1b29, 0x24171701, 0x1b222924, 0x05e858ec, 0x1ce3ed37, 0x24242921, 0x01011717, + 0x31291b1b, 0x1b1c2c2b, 0x09ed1601, 0x201d8309, 0x206783ec, 0x17441803, 0x001e2508, 0x0054004f, 0x21066d5d, 0xd9530631, 0x47332005, 0x032a08cb, + 0x23262734, 0x22272605, 0xa54e010f, 0x20198805, 0x249b8301, 0x26012f34, 0x20348223, 0x055b7306, 0x25820620, 0x27260730, 0x01391735, 0xa0011535, + 0x1b1f1e0a, 0xda7c021c, 0x05284107, 0x01a0fe2b, 0x1e040e0d, 0x17160102, 0x05c44122, 0x16172231, 0x041e0201, 0x01010d0e, 0x0c020809, 0x820e0e02, + 0x09082f04, 0xc0013001, 0x260e0f01, 0x1b704727, 0xf4551212, 0x70802207, 0x2a4782d0, 0x0d030d10, 0x230a0988, 0x54041918, 0x042607bb, 0x0a231819, + 0x18828809, 0x0109862b, 0x0e880801, 0x880e0101, 0x24528208, 0x01019886, 0xefee1800, 0x00352409, 0x82233700, 0x20bd82a2, 0x20c2831f, 0x64ac1817, + 0x05c64208, 0x37343523, 0x670e1a36, 0x6a352007, 0x17390594, 0x07060716, 0x16093123, 0x0e0e0102, 0x392c2a0c, 0x2c393839, 0x0e0e0f2c, 0xd958190f, + 0x403f3313, 0x060b2931, 0xe0771006, 0x10801602, 0x2a0b0606, 0x2a890e2c, 0x58193685, 0x2e250cd3, 0x0e0e0c29, 0xbb441801, 0x001a300b, 0x00320027, + 0x0048003d, 0x37361300, 0x7b1f1633, 0x232108e1, 0x060d5b21, 0x37013b23, 0x699a1807, 0x09eb540c, 0x0a943320, 0x14098726, 0x07091478, 0x20069572, + 0x064357fe, 0x67076025, 0x46018001, 0xa45f0838, 0x25089108, 0x0111ae01, 0x6c181101, 0x6e210d27, 0x082a54fe, 0x46400121, 0x73180589, 0x0f230a91, + 0x89010fe0, 0x00002e0e, 0xff100002, 0x01f001e0, 0x002a00a0, 0x2dd98353, 0x17323133, 0x16170607, 0x31303317, 0x4a473130, 0x06344c05, 0x2a0b9c5f, + 0x15073736, 0x17161531, 0x82013f16, 0x36372104, 0x22059657, 0x84072627, 0x22232e24, 0x27363727, 0x31232726, 0x8f070623, 0x077d4131, 0x41087821, + 0x252c0cad, 0x06050410, 0x0b0c0d0c, 0x7f1a0c05, 0x230ac541, 0x06051025, 0x0b211785, 0x213b8d1b, 0x97412f31, 0x0dc44105, 0x832e2521, 0x244b8343, + 0x08a91b21, 0x0ade4178, 0x22211989, 0x843a881a, 0x01c028f3, 0x00c001b0, 0x7b3c0031, 0x3b220aa9, 0x064e1501, 0x1180180d, 0xdc41180b, 0x69022009, + 0x4a780a4b, 0x4c102306, 0x77183131, 0x012208dc, 0xd4431820, 0x2b152205, 0x06f74a39, 0x48303022, 0x7c08196a, 0x2227065d, 0x5038380e, 0x843b3b58, + 0x01d01a36, 0x80c02312, 0xe6820216, 0x00200483, 0x220cbf49, 0x82430027, 0x078a4db3, 0x18012b21, 0x7d0826b3, 0x2b2c0713, 0x26272201, 0x37341135, + 0x05013b36, 0x0a2b4c19, 0x06072227, 0x1714011d, 0x24e68216, 0x3f161716, 0x06086001, 0x0f0b1a19, 0x0895bd18, 0x07075926, 0x0e0e0c90, 0x2608e443, + 0x0c0e0e01, 0x18600190, 0x2409d5b7, 0x1b2900ff, 0x069a4d1b, 0x012f1582, 0x09090e00, 0x0a0a07b1, 0x050a8807, 0x82480f07, 0x254b8312, 0x05070f48, + 0xc38d880a, 0x42002624, 0x3f430000, 0x78112005, 0x1a19059a, 0x34281cdf, 0x0726012f, 0x23150706, 0x0120c28f, 0x1ed71a19, 0xc2980720, 0x0a674718, + 0x8509d46b, 0x22c298da, 0x43200001, 0x3523062b, 0x43250000, 0xad5a151a, 0x06a34405, 0x557c0620, 0x07534308, 0x43d00121, 0xb0440d02, 0x44782020, + 0x04202eb0, 0x2e063f4e, 0x003d00bf, 0x0061004f, 0x01000073, 0x50060726, 0x232006f9, 0x8605df42, 0x220c8506, 0x50211716, 0x544d07f4, 0x87232005, + 0x26352506, 0x03272627, 0x10424918, 0x10869518, 0x14011d22, 0x0aac4018, 0x37362008, 0x01171633, 0x0506090d, 0x16010403, 0x1b102217, 0x01011212, + 0x141f0e15, 0x1b010114, 0x7610111a, 0x702005f3, 0x10230f84, 0x841b1a11, 0x150e2d0f, 0x12120101, 0x0105051b, 0x4d241717, 0x39184b63, 0x17180602, + 0x18172929, 0x0b010206, 0x01010ba8, 0x070701bf, 0x220e0c08, 0x3e841617, 0x01121e2b, 0x241f1414, 0x14130515, 0x825f841b, 0x141b250d, 0x24150513, + 0x12210d83, 0x278a831e, 0x1a25110f, 0xc1fe061a, 0x4b0bc74f, 0x6c2c0c95, 0x100a0304, 0x11020211, 0x04030a10, 0x0b206382, 0x09fb5418, 0xa001402a, + 0x2d001500, 0x54003f00, 0x17fb4e18, 0x16011f28, 0x032b0607, 0x88182726, 0x32250a91, 0x07142717, 0x0b0d4231, 0x27151623, 0x05d57926, 0x21171627, + 0x27263736, 0x21308221, 0x27673527, 0x098d6608, 0xeca0fe3a, 0x07060760, 0x5030900e, 0x0906070f, 0x0b0b0840, 0x07381108, 0x8c070d0d, 0xd034c18b, + 0x02161602, 0x3a262701, 0x02164001, 0xc0fe1602, 0x01191925, 0x6705964d, 0x0884088d, 0x0c906b30, 0x0d010d0c, 0x09500c0d, 0x0b541609, 0x6b410b0b, + 0x8308200b, 0x3ae0233b, 0x965f2726, 0x19192305, 0x9775e025, 0x01ff2d08, 0x001300bf, 0x00330020, 0x020f2500, 0x0877ba18, 0x033f4608, 0x0705021f, + 0x37071506, 0x23013f32, 0x01352726, 0x14151617, 0x022f030f, 0x3336023f, 0xa6011732, 0x0acd160c, 0x0a0e800e, 0x04260309, 0x0c16cd0a, 0xfe223e22, + 0x1a0209ba, 0x09020256, 0x01010f2e, 0x12122865, 0x2716840f, 0x130f160c, 0xe414191a, 0x04203183, 0x36842c82, 0x862d3185, 0x56020209, 0x0109021a, + 0x4f012e0f, 0x88258328, 0x12122132, 0x08af4018, 0x0c27a383, 0x00001a00, 0x18170701, 0x8508ffcb, 0x16172eac, 0x3f36013f, 0x6b012701, 0x12318231, + 0x2f428412, 0x0710e947, 0x0a0a0423, 0x1015780e, 0xad0182ea, 0x59831982, 0x472d8f82, 0x78160fea, 0x040a0a0e, 0xea0f0723, 0x245f8a82, 0x001100c0, + 0x845f8231, 0x310126e4, 0x022f3127, 0x20e68337, 0x9c001907, 0x32332508, 0x010f051f, 0x82091f41, 0x82c52072, 0x01342551, 0x34116010, 0x21085e83, + 0x661111d4, 0x0e0e1111, 0x1d1d1666, 0x60110d16, 0xab110110, 0x0d19664a, 0x05020909, 0x0d9b4915, 0x9c84ad01, 0x13213086, 0x21298260, 0x33820e0e, + 0x85151521, 0x49ac292c, 0x09020515, 0x66190d09, 0x9f4a2c82, 0x3f012908, 0x1b00c001, 0x16250000, 0x2406066f, 0x37363726, 0x05054633, 0xad823220, + 0x16331125, 0x183e0117, 0x24077aba, 0x0f07050a, 0x06c25e58, 0x070f5826, 0x900c0e71, 0x20062a45, 0x060b4301, 0x01e0fe23, 0x205c820e, 0x24038201, + 0x01000220, 0x205b8360, 0x24e48313, 0x011f1415, 0x395b8216, 0x37322135, 0x34013d36, 0x21232627, 0xb2272635, 0x08900b0f, 0x0f0b9008, 0x428a010d, + 0x5e010d25, 0x46880b06, 0x728a0813, 0x5f205b8a, 0x3f21b785, 0x09ac4601, 0xe9452120, 0x21332207, 0x20b78215, 0x189f894f, 0x2407a588, 0x0e012001, + 0x85ce9622, 0xc0ff215b, 0x33071341, 0x012f3601, 0x0f222326, 0x16170601, 0x14113317, 0x013b1617, 0x3524bc82, 0x37363311, 0x21181341, 0xd1890e01, + 0x0d20748a, 0x2c06bf52, 0xc0014002, 0x1d001900, 0x38002a00, 0x06677200, 0x7e603320, 0x07152205, 0x2b6a8306, 0x26272623, 0x23051127, 0x16021f35, + 0x17b4bd18, 0x01003108, 0xa01b1212, 0x800e0909, 0x12060f57, 0x1bc30504, 0x01011212, 0xa6808080, 0x1d0c0c0e, 0x0f0d1d47, 0x81ee0d10, 0x09068147, + 0x0606093c, 0x06030f01, 0x2a05c15f, 0x09090e80, 0x160f577e, 0x830d0e4b, 0x80012a41, 0x6c808040, 0x10100c0e, 0x2234820d, 0x83b50c0c, 0xbbbd1832, + 0x095b620c, 0xad824020, 0x07062322, 0x2105bb49, 0x86180717, 0x37200d80, 0x2206fb49, 0x82353736, 0x010f21bd, 0x0ac95918, 0x06070625, 0x4907011f, + 0xa82105d7, 0x05c84990, 0x4f4f282e, 0x0e0e0c28, 0x90160201, 0x0b060610, 0x0b230e83, 0x9d100606, 0xa001211d, 0x4c8e2eac, 0x24088f44, 0x00c00180, + 0x06277a1e, 0x31070624, 0x58190706, 0x946614c1, 0x31272205, 0x07424c26, 0x07141525, 0x5d072306, 0xc025099f, 0x0a181820, 0xd7c11836, 0x08e36f08, + 0x1a0b3521, 0x200e7b43, 0xa86d1850, 0x010f2b08, 0x121101c0, 0x0e0d011c, 0xda5bfe14, 0x21098205, 0x43836001, 0x11121c23, 0x0ded5501, 0x2208895d, + 0x82010000, 0x023f29bb, 0x00400100, 0x25000022, 0x1909ec42, 0x2c12d90e, 0x3f161716, 0x08f80101, 0x0f0b7008, 0x236e820d, 0x700b0f0d, 0xae300c8c, + 0x080a0a08, 0x07060a68, 0x0f38380f, 0x680a0607, 0x03430f8f, 0x01002208, 0x206f83c0, 0x09004313, 0x06231524, 0x69180607, 0x272b07e5, 0x35232726, + 0x36373633, 0x8f92012f, 0x210f8f43, 0x838cb801, 0xbb560c8c, 0x001a240c, 0x62000034, 0x31200506, 0x0a05a818, 0x59483720, 0x27262405, 0x82262703, + 0x35332c0b, 0x3b363734, 0x16173201, 0x8233011d, 0x010f2205, 0xb4451906, 0x700b261a, 0x0a050307, 0x06b44440, 0x050a4027, 0x0b700703, 0x25ca180b, + 0x75fe2619, 0x090a0770, 0x065b4d01, 0x0a0a6026, 0x0a0a7007, 0x840a4363, 0x262523a3, 0x02843127, 0x49070621, 0x1622070d, 0x9b823617, 0x25373628, + 0x16173637, 0x91521517, 0x1415270a, 0x012f0607, 0x4e743726, 0x7473931a, 0xd195182e, 0x0b076018, 0xfc71a384, 0x87312005, 0x66262097, 0x062408f7, + 0x06070507, 0x35210d82, 0xf8701823, 0x013b2907, 0x36373435, 0x0716011f, 0x187ecc18, 0x418b0121, 0xa2b01216, 0x550f4741, 0x3120056c, 0x4107df41, + 0x13200b4d, 0x1805a94f, 0x20095c98, 0x23ae8301, 0x1736013f, 0x41190478, 0x0b781519, 0x41d39319, 0xe0280547, 0xa001c001, 0x46001a00, 0x08355c18, + 0x2c510620, 0x013f2a05, 0x36371617, 0x27343537, 0x26281926, 0x0915352f, 0x8a2a0e07, 0x0d0a0909, 0x29890a0d, 0x01131310, 0x800e0909, 0x26232819, + 0x13130125, 0x52892910, 0x8a320511, 0x09070e2a, 0x090e8015, 0x16012009, 0x00ff2217, 0xdc5f1722, 0x49502005, 0x50270594, 0x0f01010f, 0x4d0f0001, + 0x4d180663, 0x15220d63, 0xd3822f00, 0x18171621, 0x241383c3, 0x1f060722, 0xf2af1801, 0x21ea830a, 0xc318013d, 0x0a341988, 0x28070305, 0x24060647, + 0x06080806, 0x09082847, 0x900f010a, 0x2215d457, 0x830a0a80, 0x2127822a, 0x2a820624, 0x04030724, 0xa382900b, 0xb75a0220, 0x001a2b08, 0x13000036, + 0x37363521, 0x37191f36, 0x23510a59, 0x01332207, 0x08b28232, 0x07141525, 0x15212306, 0x2f060706, 0x34352601, 0x1736013f, 0x21151716, 0x01400120, + 0x60101313, 0x10600909, 0x58011313, 0xab55085e, 0xc0fe2106, 0x2b821d8b, 0x1540602f, 0x600e0709, 0x0a0d0d0a, 0x08080e60, 0x06715815, 0xb05aff20, + 0x221d8806, 0x830f6009, 0x0000231d, 0xa7820200, 0x0002c12c, 0x2300bf01, 0x00004700, 0x8c821437, 0x37323323, 0x20ae8336, 0x82421937, 0x0706230d, + 0xa0822315, 0x18050721, 0x83080f79, 0x11ac450d, 0x3720e882, 0x01247086, 0xa0291b1b, 0x8882a383, 0xc1834020, 0x2d44a025, 0x9c02022d, 0x062b531d, + 0x1b1b2924, 0xcd832001, 0xcd834020, 0xcd834020, 0x2d022024, 0x8e4f442d, 0x201e9706, 0x2c008200, 0x00000002, 0x01800220, 0x00110060, 0x618a1837, + 0x1716220f, 0x86901816, 0x07904e0a, 0x65013b21, 0x4e18077f, 0x01210899, 0x05946401, 0x20069370, 0x28078201, 0x2b2b0c9d, 0x2b2b3b3b, 0x805c180c, + 0x200f8f07, 0xde581870, 0x3830240f, 0x18012423, 0x890d2184, 0x5b52180d, 0xc0013708, 0x0800c001, 0x4d004400, 0x00005600, 0x36272613, 0x06171637, + 0x045c1707, 0x63152010, 0x16221086, 0xd1823317, 0xb14e3320, 0x07222907, 0x26230706, 0x03272627, 0x25204487, 0x22050b5c, 0x7b501716, 0x20220794, + 0xf9180d16, 0x0d8d0ba3, 0x57372922, 0x0b23dc18, 0x14131929, 0x1b265709, 0x8720051a, 0x3801213d, 0x2008b951, 0x20098758, 0x20328f31, 0x22108fce, + 0x8d011f57, 0x18012567, 0xd1fe2618, 0xb8204087, 0x00205d87, 0x26053743, 0x00c00140, 0x5b30002b, 0x33200c97, 0x144e8018, 0x1120f984, 0x2124f183, + 0x35211505, 0x22097d7e, 0x44450bb0, 0x01210534, 0x22078500, 0x68b00b45, 0x01220932, 0x6382fec0, 0x917e0120, 0x0c5a5b0a, 0x997e2020, 0xe0402209, + 0x096744e0, 0xa801ff26, 0x2e001100, 0x36239782, 0x8232013b, 0x030737d3, 0x27222306, 0x013f2603, 0x011f0617, 0x16070607, 0x3132011f, 0xa9193330, + 0x073f0d11, 0xf00c0775, 0x0a70070c, 0x0b07e80b, 0x0be8070b, 0x0526700a, 0x06943a03, 0xc0060101, 0x83c00101, 0x39933407, 0x05060503, 0x06055a5a, + 0x0a0a9e01, 0xff0e1098, 0x82080800, 0x98102cbb, 0x60060428, 0x0707010c, 0x83101001, 0x600c2905, 0x05040406, 0x04056161, 0x2909eb4c, 0x00c00160, + 0x17000027, 0x42482627, 0x26352205, 0x0a034727, 0xb7471620, 0x14152307, 0xaf83010f, 0x088ab228, 0x540c0808, 0x0c480f01, 0x1f302507, 0x0c540120, + 0x8a281482, 0x06080806, 0x0c088a3a, 0xd0220c82, 0x5c48010f, 0x20012406, 0x82d0301f, 0x080c2831, 0x0006068a, 0x18000100, 0x820727cb, 0x52132073, + 0x152207a9, 0x8f520706, 0x3736240a, 0x18353736, 0x820880a0, 0x21739e18, 0x749dba01, 0x02217384, 0x20e78240, 0x66808232, 0x6b750977, 0x013d2106, + 0x44072b5f, 0xfa6b05a3, 0x2627260b, 0x01352327, 0x079a4360, 0x18052550, 0x42082cc1, 0xa8180713, 0x2021090f, 0xfe9c1801, 0x06697108, 0x293d3024, + 0x29190228, 0x0226194d, 0xc1ff0000, 0x9b828001, 0x2c001a25, 0x84170000, 0x0e24639d, 0x7905f769, 0xd8221123, 0x5819271b, 0x02260b00, 0x27271f1e, + 0x121a0a1b, 0x332613fc, 0x3b373821, 0x7c182d3b, 0x2d280711, 0x38373b3b, 0xf30c0c21, 0x180fdf67, 0x260bd76c, 0x00510025, 0x82151300, 0x2794827c, + 0x26233736, 0x33373627, 0x077e5f18, 0x37410d85, 0x052c5e07, 0x8309835c, 0x05cf5c33, 0xda183b20, 0x6020106f, 0x2307c37b, 0x01010f50, 0x07d2fa18, + 0x19870b85, 0x5f18e020, 0xda1807ca, 0x60251c80, 0x1b1b29a0, 0x24338301, 0x010f0f01, 0x87048820, 0x18902015, 0x5c08c77b, 0x621805e0, 0x558308da, + 0xda182220, 0x1821088f, 0x06b76800, 0xc0017028, 0x27001500, 0x814e2c00, 0x21c68308, 0x15450611, 0x18112007, 0x4209cb7f, 0x35260638, 0x33112313, + 0x54181011, 0xd02011c6, 0x220b4d52, 0x4ee0e050, 0x27830567, 0xc85efe20, 0x80012208, 0xc28518fe, 0x230f820c, 0x004001c0, 0x09cf6f18, 0x20001522, + 0x6e0dc344, 0x23210823, 0x09724d13, 0x081b4118, 0x8c42e020, 0x50e02407, 0x6d010f40, 0xf06a0672, 0x4d502016, 0x03250948, 0xc0ff1000, 0x22fb8501, + 0x98250020, 0x008a18fb, 0x20f49709, 0x82738680, 0x99a0207d, 0x075d6ef2, 0x0022ee86, 0x00820007, 0x01400224, 0x0d190080, 0x5b200b63, 0x2120f98c, + 0x2121f988, 0x650d1913, 0x9966181d, 0x16272210, 0x0d884217, 0x23272624, 0xe05f0706, 0x0bb77e08, 0x0d194020, 0x6918177b, 0x94291010, 0x12040f01, + 0x18120202, 0x25058318, 0x10120204, 0x645a0212, 0x09e8600b, 0x188f0d19, 0x65184020, 0x30250f85, 0x02300410, 0x224f8312, 0x83440212, 0x08034e06, + 0xc001802d, 0x2f001c00, 0x36010000, 0x5e071617, 0x26250590, 0x36352627, 0x2710833f, 0x0f16011f, 0x09171601, 0x37210382, 0x200c8236, 0x2e0e8217, + 0x27220706, 0x02372726, 0x0c0f1359, 0x83b0fd10, 0x9c260805, 0x021b1a30, 0x0e0e581c, 0x0928060d, 0x1b123115, 0xedfe5c01, 0x13281714, 0x070e601b, + 0x0a180306, 0x46474f1d, 0x82735c3a, 0x7a26080b, 0x5148483a, 0x03180a1d, 0x600f0606, 0x2728131b, 0xfe110120, 0x310b0dad, 0x06280915, 0x580f0e0d, + 0x191a021b, 0x4350482d, 0x0015240c, 0x823b0027, 0x272624a9, 0x19272631, 0x240a0bae, 0x37363736, 0xbb6a1811, 0x6c172010, 0x33240503, 0x17161716, + 0x8205b958, 0x154841d6, 0x3010637d, 0x131301b0, 0x131d571e, 0x08080113, 0x080baa0b, 0x15634308, 0x43086e43, 0xa521071d, 0x8332821e, 0x8232823b, + 0x01002139, 0x29054763, 0x2a00a001, 0x16130000, 0x8d841517, 0x2205734d, 0x6f262306, 0x2623065c, 0x18272627, 0x4b0720a7, 0xcd2b0561, 0x4b700112, + 0x01023231, 0x19181415, 0x232f524d, 0x29170e0d, 0x12524d19, 0x0c63b619, 0x00002622, 0x1c45de18, 0x36111523, 0x22018237, 0x18312735, 0x261b4fde, + 0x10262744, 0x1801b00f, 0x291a55de, 0x2386fe43, 0x3a393636, 0x4a184a2e, 0x07450b9f, 0x0ff6630c, 0x087d5418, 0x2705fc4d, 0x13353637, 0x11211121, + 0x1430b618, 0xae4b0120, 0x05104506, 0xc0fe8024, 0xa8414001, 0x140c4515, 0x49000021, 0x012405d3, 0x00c001c0, 0x700f0f45, 0x06260e43, 0x27262307, + 0xc5633736, 0x21027014, 0x230a1145, 0x00010000, 0x20079344, 0x17621827, 0x07d6500d, 0x62181520, 0x3c4b0916, 0x85352007, 0x1bc024fe, 0x18011212, + 0x8c0dd8d4, 0x249e8811, 0x0e0d0150, 0x45288314, 0x118908c0, 0x00207e84, 0x22079f74, 0x4c250011, 0x4d431387, 0xb47a1805, 0x27262608, 0x01232726, + 0xbb4a1800, 0x445f320f, 0x09022d2e, 0xc2010d09, 0x0209090d, 0xbe442e2d, 0xd8d818a0, 0x8320200f, 0x821d8216, 0x5d2c8325, 0x47650c1f, 0x087c433d, + 0x6f80fe22, 0x20474765, 0x08174102, 0x2b001528, 0x26010000, 0x7555010f, 0x2f36230e, 0x94530101, 0x06072405, 0x5016011f, 0x2627079b, 0x11d90127, + 0x55275711, 0x272b0a62, 0x200e0e57, 0x1090fffe, 0x840b0606, 0x2b1f830b, 0x010e0f0b, 0xb9011602, 0x27570e0e, 0x2a0a7f55, 0x11115727, 0x01f7fe20, + 0x840c0e0e, 0x2d1e830a, 0x1006050a, 0x00021690, 0xff100002, 0xdf7502d0, 0x20938305, 0x053d6733, 0x07012f27, 0x26012f06, 0x23a0823f, 0x03373637, + 0x21089361, 0x96823637, 0x22059164, 0x55580107, 0x54880692, 0xa0207383, 0x6983148f, 0x55c00121, 0xaa8806ea, 0xfe21ca83, 0x83158f10, 0x06cb43c0, + 0xf7790220, 0x002f2605, 0x01000043, 0x05485922, 0x16010f22, 0x17247e82, 0x013f3637, 0x37250283, 0x26022f34, 0x48771827, 0x18252011, 0x210a5656, + 0xbf821617, 0x2f362108, 0x10260201, 0x1215f00e, 0x1e100e66, 0x03300202, 0x14111b02, 0xec171987, 0x140a0114, 0x361a0f13, 0x0fd36718, 0x184afe21, + 0x2007f646, 0x3f088830, 0xaf0ac001, 0x0f6b120f, 0x0302150c, 0x14030340, 0x0b40090c, 0x1a10ab11, 0x181b0d11, 0x00fe0114, 0x200f034f, 0xe4461873, + 0x88402007, 0x30db8708, 0x00c00100, 0x005d0050, 0x3700006a, 0x27222306, 0x31a48236, 0x07141516, 0x37321716, 0x27343536, 0x33323332, 0x01831716, + 0x26151437, 0x06072223, 0x36331615, 0x06173233, 0x26070607, 0x26373435, 0x05f16b27, 0x22232223, 0x05075423, 0x16353423, 0x233b8333, 0x06372726, + 0x2721f385, 0x202c8226, 0x87048305, 0x073f3410, 0x0e161708, 0x06553a3a, 0x0f0e0101, 0x02060102, 0x75010201, 0x172a0517, 0x0f080919, 0x07080e03, + 0x209c1518, 0x040c3a2e, 0x21450e08, 0x070e0d05, 0x16013b1c, 0x0c330b89, 0x0601e105, 0x0e3a3a55, 0x08071716, 0x080f030e, 0x75171909, 0x032605aa, + 0x02010603, 0x1d9c0f0f, 0x0f010e2f, 0x050d0e07, 0x080e4521, 0x1c3b0c04, 0x240a894b, 0x00000e07, 0x08374308, 0x00072108, 0x001a000f, 0x00300025, + 0x00400038, 0x1300004b, 0x15163736, 0x07270706, 0x22070617, 0x013f3627, 0x27347e82, 0x27343736, 0x36073336, 0x26071737, 0x16373427, 0x23260533, + 0x37232382, 0x82141716, 0x82072086, 0x1732211f, 0x35083083, 0x37363526, 0x14070627, 0x26230617, 0x57173727, 0x01064231, 0x55175523, 0x14163b2a, + 0x63c02c0e, 0x2c3da946, 0x0b0b0601, 0x3d3448d0, 0x01023ea9, 0xcf011817, 0x0c861817, 0x2c0e0522, 0xa6212884, 0x20368455, 0x83298417, 0x80012732, + 0x16140e2c, 0x48822a3b, 0x0601233a, 0x02573142, 0x343da93e, 0x01171848, 0x3d2c01f0, 0x0b6346a9, 0x0626060b, 0x45270a83, 0x200b0b64, 0x82553142, + 0x55352126, 0x17203485, 0x31832884, 0x7c000021, 0x002206ff, 0xf382c001, 0x3e002c24, 0x4d185000, 0xa05f1d5f, 0x5e172010, 0x2320106c, 0x7b552390, + 0x18102019, 0x180ce8a6, 0x8b0cc7c8, 0x198c5519, 0x216f7020, 0xcd681818, 0x41d4820c, 0x3b2a08df, 0x6d005400, 0xa6009a00, 0x636a0000, 0x06232305, + 0x5f6a1607, 0x050b6e05, 0x062e0f85, 0x33070607, 0x27262726, 0x26373633, 0x4d482327, 0x19088205, 0x2007c908, 0x5b1f8203, 0x262408dc, 0x3526012f, + 0x06241c82, 0x05071407, 0xf45b0482, 0x30178a07, 0x1435010f, 0x1516011f, 0x26273307, 0x3d36013f, 0x252e8401, 0x23070615, 0x3a852726, 0x17200b8c, + 0x36231582, 0x83171637, 0x01903d14, 0x10010f0f, 0x0f01010f, 0x02113510, 0x0a0a0502, 0x02160308, 0x02081602, 0x82050505, 0x02220382, 0x0e821608, + 0x0a080328, 0x0202050a, 0x2a853511, 0x0f097736, 0x0d080901, 0x09080dc4, 0x07090f01, 0x16901602, 0x17010702, 0xa4201484, 0x70201488, 0x09321482, + 0x02081308, 0x0901037e, 0x07010913, 0x01010718, 0x04830807, 0x09883020, 0x58201382, 0x85820c82, 0x10070124, 0x8984b001, 0x20349383, 0x04051102, + 0x1a18180a, 0x02161602, 0x18222224, 0x24222218, 0x1a280b83, 0x040a1818, 0x20021105, 0xfe24b984, 0x1208054d, 0x8d827182, 0x05081225, 0x82170703, + 0x030821ac, 0x17311390, 0xc4050307, 0x0a15090c, 0x0d3b3b0d, 0x0d09150a, 0x2173823b, 0x04921007, 0x824c3c21, 0x828583a7, 0x08034998, 0xc0014022, + 0x27055d4b, 0x31072213, 0x17161506, 0x21088d48, 0x85483533, 0x06072f05, 0x013f2627, 0x37362726, 0x2b262734, 0x27840301, 0x82082148, 0x23240813, + 0x090e8021, 0x24190209, 0x01032626, 0xc0141112, 0x01121114, 0x0b641801, 0x6a0a0a0b, 0x02192426, 0x400e0909, 0x5206d751, 0xff2307fa, 0x82c00100, + 0x061a3b16, 0x4a3b3a21, 0x09151423, 0x15092b2b, 0x30382314, 0x0b0a0a63, 0x213a6a0b, 0x53821a06, 0x9f6efe20, 0x0006230f, 0x2f58ff00, 0x00152b05, + 0x003f003a, 0x00490044, 0x037a004e, 0x15172416, 0x84333533, 0x15232303, 0x03841533, 0xbb183520, 0x332307be, 0x84352335, 0x82172003, 0x011d2105, + 0x3b211782, 0x21218201, 0x0e823135, 0xed491520, 0x9b402014, 0x15885700, 0x80203192, 0x834a1388, 0x01bf2606, 0x002e00c0, 0x08696c46, 0x2009ec55, + 0x05705b15, 0x26272125, 0x823b3637, 0x08c168a1, 0x37343528, 0x34033336, 0x16823137, 0x08306118, 0x83032b21, 0x0ee0231f, 0x1d440909, 0xa0102c06, + 0x05090a10, 0x47d2fe47, 0x820a0905, 0x0519440c, 0x09091024, 0x0382c00e, 0x18011423, 0x22118514, 0x8240c040, 0x83012008, 0x821c8314, 0x0d30290b, + 0xd6d60f0e, 0x300d0e0f, 0x20050d44, 0x20138210, 0x0c7f63fe, 0x00030032, 0x01c0ff00, 0x00a00180, 0x002c0023, 0x3700003f, 0x072fea18, 0x1407062c, + 0x0607011f, 0x1f16011d, 0x0c481601, 0x013f2505, 0x010f0615, 0x0a6a7218, 0xc7180120, 0x544709a5, 0x26210805, 0x40012023, 0x52363602, 0x01010c93, + 0x0109070f, 0x0d0d2f13, 0x08040d06, 0x01130d04, 0x01223a22, 0x07c44e28, 0x58180121, 0x76570871, 0x38220806, 0x3652c018, 0x0c010236, 0x071d0303, + 0x15850d09, 0x06051309, 0x1c0e0604, 0x280a060e, 0x131c1327, 0xff4ef427, 0x12022305, 0xde44d4fe, 0x0683410e, 0xc7824020, 0x0125c584, 0x06310714, + 0x07824107, 0x17162329, 0x16233716, 0x41373637, 0x2622087a, 0xb9182627, 0x032108c1, 0xf7461821, 0x09385907, 0x0d0d0824, 0x57410917, 0x0a022405, + 0x83b0010b, 0x2c0e8504, 0x0d0d1709, 0x2c1e1d01, 0x011d1e2c, 0x7c2219e8, 0x1c382310, 0x236a1717, 0x1d472706, 0x1d01011d, 0xaa85471d, 0x17170e23, + 0x8332831c, 0xc8fe213a, 0x0320be8c, 0x200ccb4b, 0xbb831853, 0x14032413, 0x71163117, 0x22240abd, 0x03150607, 0x2005745a, 0x067c6321, 0x27060722, + 0x2723d482, 0x82070623, 0x82232001, 0x850e82e8, 0x2208820c, 0x18010726, 0x201079e3, 0x728482f8, 0x1e2f0c5c, 0x66020919, 0x02663001, 0x0c0e1909, + 0x821a1b15, 0x14103a5f, 0x0a0a040a, 0x0a0a1212, 0x10150904, 0x1a070615, 0x0a0c0d0d, 0x88010e0c, 0x05654518, 0x21086a73, 0xb14658fe, 0x0129080b, + 0x0b061137, 0xcccc0405, 0x060b0504, 0x160b0811, 0x16180c06, 0x0a140302, 0x07080807, 0x0203140a, 0x040c1816, 0x0b0a0505, 0x0a1f5008, 0x3400a02e, + 0x57004400, 0x35370000, 0x16333736, 0x07779c18, 0x062c0b91, 0x0706010f, 0x17161716, 0x36213130, 0x25050e57, 0x33172726, 0x0b683736, 0x011d2407, + 0x41071716, 0x002d11d5, 0x0f380f01, 0x20070101, 0x0f010107, 0x83098850, 0x1c112913, 0x07020111, 0xe0fe0106, 0x02215a82, 0x220e8301, 0x190f20b0, + 0x2008b703, 0x0c284190, 0x0e090924, 0x3e829cf4, 0x82280f21, 0x28072148, 0x9c2d098d, 0x090e0914, 0x25264014, 0x26250101, 0x220c8440, 0x550f0174, + 0x0f2007ed, 0x210db260, 0xff820300, 0x8002002a, 0x2c008001, 0x5d005800, 0x0ccf8918, 0x62180320, 0x71570949, 0x06bd4205, 0x88573320, 0x15212706, + 0x16173233, 0xbd42011d, 0x05f65d07, 0x2009fc5d, 0x07f25f03, 0x15071526, 0x70333523, 0x1020b682, 0x8305a441, 0x85918306, 0x2217820d, 0x8da00130, + 0x222b8d0f, 0x5fc0c070, 0x802207dc, 0x35858040, 0x5e182020, 0x20200dbf, 0x25850f8f, 0x80232e88, 0x82004040, 0x00063400, 0x01ceff0e, 0x00b101f1, + 0x0016000e, 0x0029001e, 0x823f0034, 0x070621f5, 0x17220183, 0x01833736, 0x3617273c, 0x26272627, 0x27011707, 0x17161706, 0x36133716, 0x0716011f, + 0x26012f06, 0x0a940737, 0x1215f828, 0x0c1b2d62, 0x068414ee, 0x08f7ed2e, 0x5715060f, 0xdffebd44, 0x051008bd, 0x37250982, 0x0a400b0b, 0x2004840a, + 0x280a9430, 0x0705a701, 0x322d4e27, 0x2a0686ee, 0x154557b4, 0xbd060e04, 0x83bdddfe, 0x070f2809, 0x0a0a4b01, 0x840b0b40, 0x94302004, 0x1800200a, + 0x29097faf, 0x00240012, 0x00470035, 0x9961006b, 0x77232006, 0xcd82075f, 0x4a071721, 0x65600633, 0x27262605, 0x22271516, 0x05964c27, 0x14240c83, + 0x37230607, 0x704c2288, 0x15162205, 0xe7a91807, 0x1906200e, 0x080c7c63, 0x27222327, 0x80013526, 0x27171701, 0x171727d4, 0x36360201, 0x36365252, + 0x090a8e02, 0x0906080e, 0x09090f15, 0x03130101, 0x230b8234, 0x0a090e16, 0x18820a82, 0x1c857120, 0xcf241086, 0x400e0909, 0x20068a45, 0x09f94210, + 0x820e1021, 0x3300283a, 0x1a1a2a29, 0x5833292a, 0x41200721, 0x032b4482, 0x09010113, 0x09150f09, 0x82320806, 0x204c820b, 0x820a8216, 0x85112018, + 0x2010861c, 0x081744e2, 0x420f0121, 0x5e84077e, 0x00020022, 0x022a0082, 0x00800100, 0x00240011, 0x51182500, 0x172210e4, 0xb6183736, 0x01290f90, + 0x48486d00, 0x48480303, 0x2207876d, 0x871a26c0, 0x261a260e, 0x4f71714f, 0x657b18c0, 0x0e02230f, 0xf5578216, 0x16822607, 0x01011d0e, 0x05f7461d, + 0x80022708, 0x1c00c001, 0x5e004c00, 0x16010000, 0x0f063107, 0x07161703, 0x27072306, 0x36373637, 0x023f011f, 0x17161736, 0x19820601, 0x22312726, + 0x26272627, 0x34261782, 0x013f3637, 0x83682736, 0x200f8205, 0x25038336, 0x30173233, 0x9a6b1731, 0x90172005, 0x022808c7, 0x02010879, 0x0948900a, + 0x0404061c, 0x0d4f300a, 0x060a0903, 0x9048081f, 0x080d0d0b, 0x341e94fe, 0x15303134, 0x01050508, 0x043c0082, 0x05054912, 0x05270705, 0x0b010403, + 0x1e110e0e, 0x1f1f2829, 0x07074f02, 0xe31d1111, 0x210f424f, 0x4183b401, 0x07387031, 0x09090824, 0x092e6501, 0x28070103, 0x83703807, 0x30fe266e, + 0x01070715, 0x35bd8202, 0x02040407, 0x52131903, 0x03060606, 0x04030215, 0x191a1e05, 0x1c82160e, 0x1e026527, 0x1826251e, 0x0f554f24, 0x00000023, + 0x08934601, 0x00000422, 0x2905bf53, 0x00fe0002, 0x00fec001, 0x00820002, 0x1f880320, 0x3900142f, 0x00004b00, 0x31072225, 0x33270706, 0x215d1937, + 0x26073608, 0x06172527, 0x22171415, 0x2f26012b, 0x06232601, 0x0706010f, 0x26098222, 0x013f3635, 0x82343736, 0x35272309, 0xea183734, 0x012a11f5, + 0x1e1e26a0, 0x3c01e811, 0x0082392c, 0x332c2808, 0x211b0c0b, 0xf191fe2c, 0x04051102, 0x0a253503, 0x0a0d0d0b, 0x0e0e093a, 0x0109200a, 0x010a430a, + 0x01240a0a, 0x416f0111, 0x078707e3, 0x1314a025, 0x6d3ce920, 0x332e05f6, 0x193f4343, 0x0bf18801, 0x011d230c, 0x33820a24, 0x09323782, 0x0e0e0a20, + 0x0d0a3a09, 0x26090b0d, 0x1e220335, 0x3b4298fe, 0x05b3440f, 0xc0ff0032, 0xc0010002, 0x19000c00, 0x36002900, 0x50004300, 0x0625f182, 0x26273607, + 0x05415027, 0x07060723, 0x210c8206, 0x0e823736, 0x8a5b3720, 0x05605006, 0xfb820720, 0x50171621, 0x36240555, 0x17373637, 0x27200c86, 0x13210c83, + 0x83068226, 0x081f8232, 0x000223b3, 0x1b062928, 0x3351361c, 0x09040232, 0x53524b19, 0x3d3a2448, 0xec3e4140, 0x2e1b1b02, 0x04042e28, 0x07252445, + 0x1f863d42, 0x2f2f4917, 0x25010712, 0x1d463e26, 0x26263a03, 0x06182410, 0x30502e2e, 0x13093d4d, 0x484b4b41, 0x342d2d23, 0x50020eb5, 0x19344647, + 0x06594242, 0x29302305, 0x32060524, 0x06202437, 0x45371207, 0x0f2d3b3b, 0x574a4b2e, 0x1bda2003, 0x3b3b2323, 0x4b201d49, 0x5a213b3c, 0x3524453b, + 0x2b1f3e35, 0x26444553, 0x270177fe, 0x0c2d2529, 0x1321150b, 0x00070013, 0x01c0ff00, 0x00c001e0, 0x00510048, 0x0063005a, 0x0075006c, 0x6b6a187e, + 0x6003204a, 0x1f21064c, 0x1a5c1801, 0x734a1810, 0x86272008, 0x19172023, 0x18084d1f, 0x1834a16a, 0x1808ba48, 0x91119467, 0x0f502211, 0x050e5b01, + 0x1807c471, 0x2036d76a, 0x833784fe, 0x1830204c, 0x20101368, 0x5d491870, 0x00002319, 0x03820700, 0x2f057362, 0x0011000c, 0x0028001f, 0x003a0031, + 0x25000043, 0x0a717118, 0x21031123, 0x18018211, 0x2109fb7d, 0x4b181133, 0x52410895, 0x059d7608, 0x16373622, 0x07311188, 0x1b60e001, 0x01011212, + 0x601b1212, 0x0100ff20, 0x09825c00, 0xe8606024, 0x3d611602, 0x85482005, 0x16022106, 0x88085b73, 0x83202011, 0x83c0203a, 0xc0fe2343, 0x03834001, + 0x01221088, 0x37877040, 0x49901820, 0x00211188, 0x080b4e03, 0x0d000637, 0x00001a00, 0x35330713, 0x17070623, 0x27262733, 0x21171523, 0x33471815, + 0x33352f08, 0x1d72d033, 0x33d0bd0e, 0xd0721d0e, 0x6a8340fe, 0x2a065d5f, 0x01806585, 0x1a65651a, 0x5c208001, 0x5b8409eb, 0x4002c028, 0x1d00c001, + 0x5b183a00, 0x332009ed, 0x33245282, 0x33353736, 0x15205983, 0x2108c35d, 0x18970735, 0x36373624, 0x1c9b2137, 0x0d01a02a, 0x0130140e, 0x010f200f, + 0x08854218, 0x0e14a025, 0x9370010d, 0x212c8314, 0x19984001, 0x38839020, 0x010f5025, 0x83500f01, 0x58802029, 0x80210731, 0x971493f0, 0x4517832c, + 0xe02d07ab, 0xc0010002, 0x29000800, 0x00004600, 0x9b3a1913, 0x9348180e, 0x2726240a, 0x19232726, 0x2009a23a, 0x057c4b17, 0x19192f83, 0x17820d43, + 0x3a193520, 0x4c180ca6, 0x12230af1, 0x19401b12, 0x20081718, 0x00181960, 0x097c771f, 0x2009175d, 0x075d4c28, 0x2f439820, 0x19202006, 0x690d4318, + 0x012106b7, 0x27d38280, 0x00310018, 0x26272500, 0x2207766e, 0x60061507, 0x34220894, 0x44180727, 0x3f220a86, 0x5e183601, 0x1f3a07cb, 0x01750101, + 0x06036f34, 0x03060808, 0x020c346f, 0x51513637, 0x0b023736, 0x0146065b, 0x02062407, 0x82092918, 0x052a081f, 0x02182a09, 0x678f02bf, 0x03060603, + 0x1f028f67, 0x36365022, 0x36360202, 0x311f2250, 0x1c28100e, 0x1b01011b, 0x0e10281c, 0x2f823604, 0x29090638, 0x00000436, 0x00000400, 0x3f02e0ff, + 0x0c00a001, 0x3f003200, 0x45184800, 0x23220c1d, 0xa3882335, 0x1f163524, 0x4e561601, 0x24c28205, 0x06072627, 0x9c411807, 0x26052708, 0x37363137, + 0x22821736, 0x1727072b, 0x30312306, 0x07223731, 0x071b5a40, 0x61186020, 0x2c080815, 0x1d801103, 0x27272c2c, 0x811a0807, 0x282c2c1c, 0x2001052a, + 0x1f30301f, 0x29010120, 0x1104030c, 0x0d121310, 0xc2415043, 0x01040101, 0x09a04201, 0xe0707022, 0x2b822384, 0x191db22b, 0x080827bc, 0x2d2d1d1b, + 0x22088428, 0x87183221, 0x12402f1b, 0x0b0d1414, 0x62110303, 0x01c85f38, 0xdf820102, 0xdf820320, 0x6e01c021, 0x49200717, 0x176edd82, 0x0717212f, + 0x0d68ee18, 0x4f363721, 0xc02506ae, 0x0a181820, 0x083b6326, 0x09870020, 0x256e2520, 0x8074280f, 0x090b0b09, 0x83080840, 0x6c2c2106, 0x08210583, + 0x062f6e08, 0x1b121222, 0x830b9b79, 0x102f6e43, 0x08809424, 0x35854008, 0x856c2c21, 0x06002145, 0x3b26d78c, 0x4f004400, 0xbb415800, 0x6133200b, + 0x212a08f5, 0x27262726, 0x36373611, 0x45183337, 0x352110bf, 0x08106103, 0x36010f2a, 0x06272637, 0x37171607, 0x66241392, 0x2018180a, 0x0b21f082, + 0xb14c1825, 0x21098709, 0xdd557a26, 0xb04b180c, 0x45402009, 0x40200755, 0x01211392, 0x23e88380, 0x1c121101, 0x13814018, 0x210cfd51, 0xdb46f0fe, + 0x088c4507, 0x11907820, 0xfb470020, 0x40023405, 0x1100c001, 0x53004800, 0x65005c00, 0x77006e00, 0x18010000, 0x5f10ff84, 0x152405b1, 0x17163533, + 0x2006d342, 0x05046427, 0x342e0583, 0x06272637, 0x30153007, 0x06070615, 0x0b822207, 0x27840782, 0x16200e82, 0x20069b75, 0x10064837, 0x06264182, + 0x36171607, 0x48410537, 0x20012907, 0x01191925, 0x25191901, 0x35080787, 0x19190bd1, 0x1924e024, 0x13100b19, 0x020d0e13, 0x23120f02, 0x0e141c0e, + 0x3b02010d, 0x01455b47, 0x12140e0d, 0x0f0c140d, 0x0e0c0102, 0x37101313, 0x16020216, 0x05831002, 0xf8f0fd22, 0x20079a46, 0x07564138, 0x8e47e820, + 0x70012107, 0x21070e41, 0x6e8b1001, 0xc52e7683, 0x0c0e0e0a, 0x0e0c6d6d, 0x010c0a0e, 0x77830f02, 0x17131023, 0x276a8301, 0x01130606, 0x01011c02, + 0x0b227f83, 0x71830a0c, 0x5b207983, 0x20109268, 0x20118768, 0x55511890, 0x63651810, 0x0051280c, 0x005f0058, 0x6b000065, 0x062105d0, 0x25018207, + 0x0706010f, 0x09830239, 0x2005a957, 0x08666a3f, 0x14171623, 0x05007707, 0x08872120, 0x09355818, 0x34272622, 0x20066943, 0x08088321, 0x06230336, + 0x27262107, 0x37363303, 0x011f1621, 0x37361716, 0x0ea00123, 0x13010909, 0x362c1e13, 0x01121202, 0x07060203, 0x0e761b20, 0x02030710, 0x26151403, + 0x13131e20, 0x21061851, 0xa142c0fe, 0x212c8505, 0x19892c36, 0x82400121, 0xe64d2819, 0x18010a0f, 0x82e60f0a, 0xe8fe2607, 0x1c380f0a, 0x2048821f, + 0x3d348301, 0x1e24242d, 0x0c022429, 0x0201010c, 0x15140504, 0x02050b0b, 0x0e0e0102, 0x241e1e1b, 0x324e2d24, 0x85448208, 0x29242129, 0xfe22178c, + 0x00821080, 0x82000121, 0x30102204, 0x20008215, 0x2c008200, 0xff200002, 0x015f02c0, 0x002700c0, 0x0b495141, 0x16131723, 0xea411817, 0x07062109, + 0x07464e18, 0x2223032f, 0x17352627, 0x36313726, 0x3717013f, 0x05694527, 0x0607162a, 0x2706010f, 0x20012f26, 0x493d7e82, 0x07111015, 0xca1c2e5c, + 0x040c0b0d, 0x0d060504, 0x1b1b02ca, 0x1b1b2928, 0x5c230201, 0x2aa88249, 0x050604f5, 0x3d142e0d, 0x820d2e14, 0x833120c4, 0x0e98210d, 0x01210983, + 0x271d82a0, 0xfe140c0c, 0x432302ec, 0x41833983, 0x1a284422, 0x23059466, 0x14011c30, 0x67205e82, 0x0f242a83, 0x0f3d133d, 0x99203883, 0xdf634289, + 0x003d220c, 0x0c3b7d5f, 0x11171627, 0x17161716, 0x0be94633, 0xa6180c8d, 0x26250b48, 0x23272627, 0x0fb66817, 0x07141526, 0x07012f06, 0x3d27e882, + 0x07062301, 0x41200706, 0x10280575, 0x1601010f, 0x03132217, 0x21076546, 0x0a89c603, 0x23854320, 0x8530fe21, 0xa0102124, 0x4805c848, 0x6029079f, + 0x27080908, 0x09080827, 0x42118460, 0x0f28071d, 0x1722e0fe, 0x08080116, 0x0d231584, 0x8208140e, 0x420b8900, 0x0f220643, 0x25832001, 0x87c05021, + 0x26088419, 0x04050990, 0x821a1a05, 0x90092104, 0x7b466c83, 0x0017240c, 0x5838001b, 0x23231235, 0x82262722, 0x153324d5, 0x48072733, 0x1f581bc1, + 0x18002009, 0x23076241, 0x8080c0a0, 0x6b17b348, 0xb66005d2, 0x20012108, 0x8023b982, 0x48f08080, 0x022016a4, 0x22084b46, 0x87360032, 0x331526a5, + 0x37011f32, 0x28058336, 0x06171633, 0x2f222307, 0x05094701, 0x0a014419, 0xc08a1120, 0x702aa384, 0x3212040a, 0x040a0a04, 0x6c83461c, 0x0e885020, + 0x34496620, 0x0e802309, 0xbd830909, 0xa6840120, 0x2309e02a, 0x37090963, 0x010f0f01, 0xb6900985, 0x2a06a348, 0x00a00140, 0x0012000d, 0x413d0020, + 0x33270c49, 0x11332311, 0x45211121, 0x112705e4, 0x27262726, 0x82331123, 0x20b6820d, 0x15104a15, 0x26084e41, 0x01402020, 0x63c0fe40, 0x202309ca, + 0x4a00ff20, 0xa0201608, 0x230aa646, 0x0140fec0, 0x12220383, 0xd54b1b12, 0x200f8205, 0x165d4130, 0x7310bb73, 0x1d201b17, 0x17382019, 0x22199b5d, + 0x19160270, 0x5d0f3c20, 0x68261987, 0x02166868, 0x20191602, 0x04231140, 0x4cff0000, 0x1429057f, 0x44003500, 0x00005600, 0x78471801, 0x33072613, + 0x16171615, 0x05d04d17, 0x20136348, 0x571c8413, 0x372008e1, 0x21107a47, 0x75180001, 0xc0290d05, 0x0e0d0180, 0x0e146014, 0x0986410d, 0x09265418, + 0x0a01702d, 0x01010aca, 0x76160f0f, 0x180f0f16, 0x24111e54, 0x0909c001, 0x20508a0e, 0x08d44c40, 0x56483020, 0x8bfe2113, 0x0a204c82, 0x52834983, + 0x376c5520, 0x052f4a11, 0xa001e02d, 0x32001500, 0x00004700, 0x82361137, 0x832120c3, 0x141526f4, 0x2b06010f, 0x22db8301, 0x19070637, 0x2319ff26, + 0x06171613, 0x23058170, 0x16373635, 0x2105d044, 0x00436033, 0x3a132909, 0x1bc61a13, 0xb0011212, 0x420d2d4c, 0x18250740, 0x16020216, 0x0b717da0, + 0x1860a021, 0x2109704a, 0x3f821ac6, 0xe0224c83, 0x984d0f01, 0x0c794206, 0x02b0fe23, 0x05f67d16, 0x4783e020, 0x1925e025, 0x4e000119, 0x8028065f, + 0x2f008000, 0x39003400, 0x555dd782, 0x013b2107, 0x09489b18, 0x8e450420, 0x012b2106, 0x09da4218, 0x33170425, 0x83352315, 0x18352025, 0x220e7ba6, + 0x41e0e040, 0x20200679, 0x11831986, 0xa0a06026, 0x80a0a0e0, 0x5d052c45, 0x0c860c4e, 0x00834020, 0x260d3f7f, 0x0020000c, 0x44450033, 0x5518097b, + 0x06200f5a, 0x32060b47, 0x23060535, 0x012f0631, 0x37343726, 0x17163736, 0x50061716, 0x2632052b, 0x36373627, 0x011f3633, 0x07140716, 0x0d0e1470, + 0x55186001, 0x664c0d4e, 0x2b023206, 0x080a0a06, 0x0a0108bb, 0x2d442c23, 0x1401022d, 0x8308873c, 0x07bc2318, 0x39860a01, 0x6d184484, 0x7f4c0894, + 0xffe03208, 0xbc07010a, 0x060a0a08, 0x2d020114, 0x232c442d, 0x2108873c, 0x5882010a, 0xdb831882, 0x53450220, 0x00152208, 0x06e34737, 0x32213332, + 0x011d1617, 0x23060714, 0x26272221, 0x2117013d, 0x6009966d, 0x4b1807af, 0x00200d15, 0x220ffb5a, 0x50400120, 0x702508b6, 0x0f01010f, 0x18058b70, + 0x460892a2, 0x202105fe, 0x095b4c60, 0x0f012023, 0x883b820f, 0x0c9f4604, 0x22001524, 0xa5a33f00, 0x42171121, 0x062119f6, 0x20ad9c07, 0x15204580, + 0x0121b29a, 0x07935040, 0x210ce042, 0xbb870f01, 0xd74d0220, 0x00512605, 0x01000063, 0x0aa64617, 0x2f220728, 0x27262301, 0xc4463736, 0x36372a05, + 0x17330717, 0x3f363716, 0x18248201, 0x2b1c038e, 0x15161732, 0x34353311, 0x07333637, 0x32101f57, 0x5c29e301, 0x16020216, 0x18070c68, 0x0e0d072f, + 0x837b2908, 0x0d88310e, 0x062e1807, 0xa3080d0e, 0x2013140d, 0x520b0f20, 0x09034518, 0x0c2e8e18, 0x09090e27, 0x0e0909e0, 0x101e5790, 0x0236b62c, + 0x0a021616, 0x020c6420, 0x0a833d0b, 0x61240b2f, 0x0b01020c, 0x011a1f96, 0x01181d03, 0x4a8e181b, 0x6b8e1815, 0x57a02008, 0x04301019, 0xc0ff0000, + 0xc0018002, 0x5a005400, 0x7e006c00, 0x25085b43, 0x16070623, 0x30823b17, 0x2b070623, 0x4f0b9501, 0x332009f4, 0x18073671, 0x21085c83, 0x3d19023d, + 0x15250c2f, 0x17333523, 0x10294105, 0x11e46a18, 0x25054e43, 0x0f01010f, 0x0583d030, 0x975dd020, 0x83b02005, 0x42b0200b, 0x9020051a, 0x90200b83, + 0x2007d750, 0x44088780, 0x1330065b, 0x331a134d, 0x140e0d01, 0xb00100ff, 0xfe4d3380, 0x49086d52, 0x01200787, 0x08855518, 0x2107124a, 0xed52c001, + 0x91598306, 0x85ae1803, 0x06b44410, 0x19132021, 0x2408633d, 0x4d6013ed, 0xbf7e18e3, 0xbe55180f, 0x4f002010, 0x0220058f, 0x2f058f42, 0x0053003d, + 0x006c0058, 0x01000080, 0x011f1615, 0x580b7042, 0x362c074c, 0x16173233, 0x26351715, 0x2726012f, 0x09cb7818, 0x2d8b1420, 0x29483520, 0x0a354405, + 0x82272621, 0x1533252c, 0x25233533, 0x11217d18, 0x91013b21, 0x01332513, 0x152901c0, 0x07c56418, 0x3c150e22, 0x2006104d, 0x25159480, 0x1201c0fd, + 0x415d1b12, 0xa0fe2807, 0x0112121b, 0x18a0a0e0, 0x1807bb41, 0x850ca48e, 0xa001280c, 0x152b3b0b, 0x850b2e21, 0x140b250e, 0x563d150e, 0xe0200c86, + 0x59841a99, 0x0e090923, 0x83368260, 0x20202372, 0x0e864020, 0x43490694, 0x0041230d, 0x675d0100, 0x17072d06, 0x2f060716, 0x36372602, 0x2737011f, + 0x17360682, 0x31323707, 0x031f1530, 0x06071532, 0x0607012b, 0x013f2627, 0x3d6b3435, 0x012f3305, 0x37161737, 0x01012f36, 0x0e2020b9, 0x0f11110e, + 0x06833726, 0x83484821, 0x26372205, 0x3a06830f, 0x10013de7, 0x01103838, 0x591710bf, 0x0e111139, 0x2b11390e, 0x0a0b0b39, 0x852a390a, 0x833c8306, + 0x833c8217, 0x48482106, 0x3c820583, 0x95200683, 0x39203c88, 0x39294b83, 0x2c101759, 0x0b0a0a39, 0x843c820b, 0x05f74606, 0x9b430320, 0x000d2506, + 0x0029001b, 0x50059f79, 0x0620057f, 0x3721d882, 0x20a28207, 0x7c581826, 0x21052308, 0x86431706, 0x27362407, 0x86273635, 0x06073329, 0x66022117, + 0x2d020119, 0x2631442d, 0x0dc80a0c, 0x05842f0a, 0xfe321287, 0x11e5fef7, 0x2a2b0c02, 0x2b2a3b3b, 0x1010010d, 0x0b850d01, 0x11020c33, 0x26c91b01, + 0x2d2d4431, 0x0a190102, 0x0c0ac80d, 0x8705842f, 0x024a3012, 0x23233710, 0x23230101, 0x20021037, 0x85380f02, 0x0f38230c, 0x735b0002, 0x002b230c, + 0x5c413700, 0x06634110, 0x410a9f47, 0x60220787, 0x49411c10, 0x0650410c, 0x2b1e2e35, 0x011d1d2c, 0x10e01d01, 0x11595917, 0x590e0e11, 0x82175942, + 0x0b38412b, 0x46412a20, 0x832e2005, 0x2c1d2b27, 0x10e01e2b, 0x110e0e59, 0x8f825911, 0x0000023c, 0x0002c0ff, 0x2200c001, 0x00002700, 0x31232601, + 0x15060722, 0x01011f14, 0xae4a0706, 0x17012107, 0x2905146b, 0x07032f34, 0x23071737, 0x6f7d5701, 0xfe0a2e05, 0x01011be9, 0x06291b1b, 0x17011c27, + 0x29148509, 0x8a206020, 0x66603393, 0xd17db701, 0xfe092505, 0x05281ce9, 0x2205af5b, 0x850a1701, 0x20248214, 0x202482f7, 0x069f4c00, 0xa001002a, + 0x23001e00, 0x47004200, 0x08059a19, 0x2007f160, 0x07bf4811, 0x27221130, 0x23173526, 0x37353315, 0x36313734, 0x219a033b, 0x09090026, 0x3830380e, + 0x45055943, 0x0d8207e0, 0x30308823, 0x201a9998, 0x098d7501, 0x7e7efe20, 0x82302009, 0xa0202230, 0x064a45a0, 0x1b914482, 0xc024c785, 0xbd018002, + 0x2c34c582, 0x36003100, 0x11170000, 0x37363734, 0x05173625, 0x15161716, 0x232bc682, 0x34112726, 0x21232627, 0x86060722, 0x2105290f, 0x21352726, + 0x25070615, 0x21370582, 0x1521013d, 0x0b0b0021, 0x0c0c0112, 0x120c010c, 0x16020b0b, 0x82021630, 0x83fe207f, 0x2f0c8499, 0xb0fee801, 0x80010216, + 0x98fe1602, 0x80fe8001, 0x28360383, 0x10143d01, 0x056b080f, 0x0f086b05, 0xc3fe1410, 0x16020216, 0xaa820801, 0xf8203a83, 0x182c0d83, 0x38381602, + 0x40700216, 0x50506040, 0x28080348, 0x00c00100, 0x00300011, 0x537b1845, 0x26372513, 0x23263127, 0x4418ab82, 0x07231509, 0x5f372734, 0xcd820522, + 0x25070d77, 0x24018001, 0x97183625, 0x08290b4b, 0x29232319, 0x19232329, 0x08ed5538, 0x2808a54e, 0x220b6038, 0x070e0d04, 0x0d761821, 0x77012008, + 0x438708b0, 0x111e7022, 0x1e200082, 0x2c13904c, 0x4f0b10a0, 0x0d04070e, 0x0b0b014e, 0x42428511, 0x25260a4f, 0x70006700, 0x99497900, 0x1415250b, + 0x11230607, 0x25100866, 0x26272211, 0x954c0535, 0x85551805, 0x23152c10, 0x1f060722, 0x013b1601, 0x82013f32, 0x192720ef, 0x4a08e733, 0x327d0d6d, + 0x07de540a, 0x09001725, 0x18010e09, 0x200c645b, 0x06f44bfe, 0x09090e2d, 0x010f0001, 0x01010f60, 0x8380600f, 0x85802005, 0x0e58290b, 0x20070607, + 0x0d900d07, 0x06230582, 0x91580e07, 0x0f012122, 0x5c08c05c, 0xb9420853, 0x0691510b, 0x21058f47, 0x07824001, 0x0f012023, 0x0d207910, 0x0c0d202a, + 0x0b0b300c, 0x0c0c0c30, 0x820a3679, 0x010f2527, 0xfe010f10, 0x08356718, 0x27550c82, 0x82002005, 0x00023c00, 0x02e2ff0e, 0x009f0172, 0x00340018, + 0x33361300, 0x1f323717, 0x06071601, 0x7006010f, 0x272c06e9, 0x05013f26, 0x16171617, 0x1415013f, 0x26241886, 0x013d2627, 0x0806424a, 0x0b053b42, + 0x050bf5f5, 0x0506062a, 0x0e17a30f, 0x170e5353, 0x06050fa3, 0x06012a06, 0x14130c37, 0x0a0a7f16, 0x100fcd10, 0x0a0a10cc, 0x13141580, 0x0102370c, + 0x1f1f0996, 0x0d0e5409, 0x052e050d, 0x138b8b13, 0x0d310682, 0x56540e0d, 0x0808135b, 0x10a72406, 0x33040d0d, 0x29028204, 0xa7100d0d, 0x08080624, + 0x9b595b13, 0x01002d08, 0x002f00a0, 0x00530041, 0x25000065, 0x158ac718, 0x83070621, 0x23143001, 0x04391530, 0x33161706, 0x37363736, 0x6d273316, + 0x332010e1, 0x37201190, 0x5010176e, 0x2f311469, 0x07081105, 0x07010203, 0x2c0a0503, 0x30132326, 0x09664438, 0x0e090922, 0x70180c8c, 0x00290ce8, + 0x2f1c1b01, 0x2f3a3a2f, 0x057f5a2f, 0x45320b82, 0x0e1a2534, 0x01020407, 0x0a0a0701, 0x0f101102, 0xe741b012, 0x58059105, 0x00200c05, 0x3305e745, + 0x00c00180, 0x00360015, 0x07261300, 0x16011706, 0x012f3637, 0x09634418, 0x60172721, 0x062105b6, 0x0f0d4107, 0x0137322b, 0x13271506, 0x02100c0f, + 0x22058350, 0x70023d76, 0x68240594, 0x01196a47, 0x3823e091, 0x18abfe30, 0x220c04c0, 0x8550395c, 0x360223c6, 0xc491eb53, 0x0d011224, 0xa3842a25, + 0x8002e028, 0x1700a001, 0x75754400, 0x06b46a11, 0x36053524, 0x8a4c3637, 0x012b2608, 0x35262722, 0x09456721, 0x37211c82, 0x3fc88232, 0x2133011d, + 0x40013d33, 0x36252401, 0x25360001, 0x121c0124, 0x80fe0111, 0x1c121101, 0x1e02e001, 0x2805a854, 0x200e0909, 0xfe09090e, 0x2d088640, 0x140e0d01, + 0x021e0808, 0x20800120, 0x83442001, 0x06222f07, 0x301e1515, 0x15151e30, 0x21702206, 0x2583030c, 0xbf56b020, 0x14b02b0b, 0x03010d0e, 0x2030210c, + 0x9b723020, 0x001c2f0b, 0x00900070, 0x23062500, 0x31302722, 0x21663134, 0x07062b0b, 0x07221506, 0x06030706, 0x0b821507, 0x82060721, 0x1f1627b4, + 0x16171601, 0x10831615, 0x27262726, 0x27220239, 0x1a85de82, 0x16151726, 0x35373617, 0x08195418, 0x23205082, 0x37234f82, 0x56343522, 0x332305f7, + 0x82363716, 0x26352e34, 0x16330327, 0x3b152317, 0x36233501, 0x09fd5e37, 0x2d822120, 0x3f842720, 0x22470128, 0x2e222525, 0x53183821, 0x022c0863, + 0x01010138, 0x12472c20, 0x18070902, 0x47089283, 0x0213130b, 0x01030915, 0x130a0701, 0x01020f0b, 0x07120202, 0x02021104, 0x1202100e, 0x07080212, + 0x0603061a, 0x14140b06, 0x04091501, 0x0a090101, 0x07070412, 0x04061204, 0x020c0912, 0x1e10d012, 0xc0c0482a, 0x101d2b48, 0x21075f4c, 0x098760fe, + 0x0c0c2c27, 0x3a221101, 0xab531856, 0x562e0807, 0x0101013a, 0x38011021, 0x02061202, 0x0f1c0a03, 0x0c060d0e, 0x06060104, 0x05010202, 0x03050306, + 0x01010602, 0x07121104, 0x04050101, 0x88821206, 0x26820520, 0x0e0f1d26, 0x050c070e, 0x012a2582, 0x05050305, 0x02010102, 0x40831103, 0xfe2c2182, + 0x201927fc, 0x01271920, 0x40140e0d, 0x08847687, 0x30099b41, 0x000d00bc, 0x004c0043, 0x17161300, 0x26351716, 0x25018227, 0x17070607, 0x01823115, + 0x11820d84, 0x11822220, 0x83070621, 0x18162020, 0x2b082273, 0x013f3217, 0x36373633, 0x36373537, 0x8205d370, 0x26440835, 0x16373627, 0xa1070617, + 0x25291c15, 0x11020423, 0x1a16090c, 0x2d2c209f, 0x06122828, 0x09060d12, 0x01010808, 0x1b1c1515, 0x03088a14, 0x290e0503, 0x04063e28, 0x2d444a4c, + 0x021e022d, 0x22640b01, 0x50011617, 0x0807634d, 0x195f013e, 0x1f081711, 0x0612412e, 0x40180803, 0x20011f2f, 0x220f1002, 0x01123822, 0x2222110b, + 0x292a3a30, 0x260b1a19, 0x07080802, 0x02181814, 0x2d023d03, 0x2da0442d, 0x010b0403, 0x22171601, 0x2008f862, 0x05f34300, 0x80004027, 0x3c002e00, + 0x05ff4400, 0x2621d582, 0x05df4f0f, 0x32013b22, 0x3425c282, 0x032b2627, 0x18128222, 0x20080b54, 0x2ae18202, 0x01393025, 0x31303330, 0x82223130, + 0x30022603, 0x0a02030d, 0x9c3d1b0a, 0x0a382426, 0x830e1010, 0x01582430, 0x44010f0f, 0x1c210598, 0x066a5424, 0x085e1a22, 0x29058f6e, 0xc0014002, + 0x46001700, 0xe9434d00, 0x05335707, 0x16171630, 0x010f1417, 0x26012f06, 0x07160135, 0x0b820631, 0x18022b21, 0x20099049, 0x09f84937, 0x06022b28, + 0x33171607, 0x32823637, 0x23310522, 0x2008ad82, 0x15019433, 0x171f2116, 0x1f170909, 0x01151621, 0x0e0e6816, 0xa4011668, 0x0d03020a, 0xa02d247f, + 0x05b443a0, 0x232d2525, 0x47104e2d, 0x4031068a, 0x01010f10, 0x0e77790f, 0xfe0a1010, 0x0101018a, 0x22398473, 0x85160a0a, 0x0c67274b, 0x1f17670c, + 0x1f83fdfe, 0x861a5e21, 0x1c2421c6, 0x09158f18, 0x5d835820, 0x53493020, 0x82402008, 0x005428d7, 0x008a0083, 0x82150100, 0x06072ccd, 0x22232627, + 0x22150607, 0x82311415, 0x143122a3, 0x21b48217, 0x6c451631, 0x06152a06, 0x35272607, 0x23222726, 0x83018326, 0x833320cc, 0x3732381b, 0x35363536, + 0x26273631, 0x2726012f, 0x37362726, 0x36353736, 0x41171637, 0x013f3114, 0x15080a38, 0x11160704, 0x03080c0d, 0x13090301, 0x18131201, 0x0a190203, + 0x1616020b, 0x820a0e02, 0x020127f3, 0x09051402, 0x00820215, 0x0c0f1331, 0x01010307, 0x02130805, 0x03171312, 0x84091903, 0x00012126, 0x082c4441, + 0x010ba82d, 0x15160703, 0x02050504, 0x01010201, 0x04060402, 0x22200d0b, 0x0b02060f, 0x16020216, 0x0104040b, 0x14160901, 0x01010105, 0x82040107, + 0x01032d21, 0x01050504, 0x200c0a04, 0x03050d23, 0xfe212484, 0x2b7341c8, 0x4300142f, 0x00004a00, 0x32333601, 0x1d16011f, 0x08f65401, 0x013f3422, + 0x32323341, 0x08080414, 0x01114205, 0x29291b1b, 0x11011b1b, 0x41240143, 0xb9262c00, 0x19600707, 0xf74c021e, 0x291b2705, 0x60191e02, 0xcfa1b7fe, + 0x2805b343, 0x00800180, 0x00660033, 0x6f421800, 0x031d2208, 0x2cd58216, 0x3736013b, 0x26353736, 0x2f31012f, 0x05554201, 0x021f1424, 0xeb820716, + 0x3d2f0f82, 0x021d2103, 0x06010f14, 0x26272627, 0x6f36023f, 0x0f220529, 0x1f823102, 0x2605ca4d, 0x36013f32, 0x4234033d, 0x072b0590, 0x110b0c50, + 0x010c0b11, 0x1a13641b, 0x2b1af27a, 0x3313e001, 0x010a110e, 0x20100801, 0x2c06bc4d, 0x0120190f, 0x140e0d01, 0x64131a43, 0x2344841c, 0x5801010b, + 0x2605814b, 0x27664038, 0x8313641c, 0x2e4f231e, 0x33891921, 0x0b0b092b, 0x330c0907, 0x50281b13, 0x2a028228, 0x0c33131b, 0x0b0b0709, 0x4e200f09, + 0x10280637, 0x4f2e2119, 0x010d0e14, 0x27235482, 0x85384066, 0x0000374f, 0x0a000200, 0x7602caff, 0x2b00b801, 0x00006000, 0x31353025, 0xe2823534, + 0x022b2723, 0x05125631, 0x2627222c, 0x3631013d, 0x33373637, 0x785b1732, 0x15162505, 0x25010f14, 0x25098163, 0x1716013b, 0xfd181716, 0x0626075f, + 0x15162307, 0x06820706, 0x62232221, 0x3f2208a3, 0x42833501, 0x01200228, 0x28251919, 0xd9841060, 0x14040c32, 0x04701c14, 0x16122804, 0x104e1216, + 0xa0fe4610, 0x07e16e18, 0x18285029, 0x0d010f10, 0x830d140c, 0x030321ed, 0xa0230583, 0x87250201, 0x1b012d29, 0x01c5291b, 0x19250101, 0x48100119, + 0x782ace85, 0x0112111c, 0x10102901, 0x4f82114f, 0x787b4526, 0x0114141f, 0x382d5083, 0x18100f01, 0x040f0f15, 0x0e14140d, 0x06475d0d, 0x10102623, + 0x264d834e, 0x1b292345, 0x8200011b, 0x84022000, 0x01802804, 0x00230080, 0x18000055, 0x6810f773, 0x2b21092d, 0x01741802, 0x19232015, 0x1808c213, + 0x20160a74, 0xdf731801, 0x2ab12110, 0x21074547, 0x7318044c, 0x691816ea, 0x6c200883, 0x16f37318, 0x10ce7318, 0xf566a320, 0xd6731808, 0x181a8811, + 0x8216de73, 0x030029f8, 0xfc01c0ff, 0x4500c001, 0x0e420c82, 0x2ed88305, 0x15331714, 0x27072223, 0x34352633, 0x49373637, 0x33240558, 0x011d0617, + 0x23097a5b, 0x33372734, 0x82050952, 0x15270813, 0x07331514, 0x35012b26, 0x02800133, 0x32322626, 0x01022626, 0x090b206f, 0x0f011d78, 0x23441a10, + 0x11020a24, 0x5b058c06, 0x31080868, 0x11068c05, 0x23240a02, 0x0f101a44, 0x0b09781c, 0x00017020, 0x324e0808, 0x2f01012f, 0x08084e32, 0x08840480, + 0x29293008, 0x2d2d1a1d, 0x9a021029, 0xfa480c0a, 0x0c603308, 0x10029a0a, 0x1a2d2d29, 0x3029291d, 0x04840808, 0x00820080, 0x00000526, 0x7f02c0ff, + 0x112acb82, 0x70006400, 0x8e008200, 0xbd180000, 0x17271011, 0x16171507, 0x6c16011f, 0x2f250585, 0x013d2602, 0x22e18236, 0x72021f16, 0x3225052a, + 0x011d1617, 0x8213823f, 0x151724d4, 0x82020f14, 0x262723fb, 0x12822627, 0x35013f26, 0x010f0607, 0x2b281082, 0x22232201, 0x012f2627, 0x07220282, + 0x4b851737, 0x6d262721, 0x6989129f, 0xb0370122, 0x370fc455, 0x020b3320, 0x07070110, 0x0a0b0d0e, 0x134f0e03, 0x19111001, 0x0a2f1626, 0x0806ce4c, + 0x15300a20, 0x10111926, 0x0e4f1301, 0x0d0b0a03, 0x0207070e, 0x330b020f, 0x3c0b0713, 0x03040404, 0x0082027f, 0x3b040433, 0x8e13070c, 0x06253130, + 0x0c0d0c0b, 0x01040505, 0x076542fe, 0x4e240787, 0x05050430, 0x0b251c82, 0x01312506, 0x251d8f90, 0x0b3341c2, 0x81835b0f, 0x56248983, 0x581a134f, + 0x01247483, 0x4c05471f, 0x2405e747, 0x1f47054c, 0x249b8301, 0x4f131a58, 0x20868256, 0x2a8e8301, 0x330b0f5b, 0x060b1c41, 0x8201021d, 0x1e022800, + 0xe21c0b05, 0x835e3177, 0x82062082, 0x7401218a, 0xfd25ed8f, 0x0b0c0d77, 0x228a8306, 0x4700315e, 0x12300ce7, 0x67005e00, 0x15010000, 0x22012b26, + 0x34353407, 0x29086f76, 0x16333207, 0x33373617, 0xcf181607, 0xd0710b4c, 0x242b8205, 0x013d2627, 0x09c57323, 0x27260122, 0x82083d72, 0x07062337, + 0x38830623, 0x82373621, 0x013b2201, 0x055a6617, 0x01373628, 0x80080890, 0x93461719, 0x05102b07, 0x1c060705, 0x1813202d, 0xf0850d0e, 0x120e2022, + 0x2006c84c, 0x3d078680, 0x1d1d0936, 0x01011313, 0x041d1313, 0x16020216, 0x02021204, 0x1f0a1f12, 0x15132d1f, 0x4d184080, 0x6026088a, 0x01060101, + 0xae460102, 0x01202708, 0x4b012101, 0x45821e17, 0x5a826020, 0x265e1220, 0x08ac5c07, 0x83472921, 0x845a8352, 0x12122843, 0x21212d02, 0x1888050c, + 0x4408884d, 0xff3905ab, 0x01bf01c0, 0x002d00c0, 0x13000038, 0x16311732, 0x37170717, 0x34013d36, 0x2ff2822f, 0x07222326, 0x06010f06, 0x1f14011d, + 0x013f1603, 0x2f21ec82, 0x28048203, 0x07270333, 0x1f161706, 0x08138201, 0x141ee067, 0x4f3c0b15, 0x220c1724, 0x25152612, 0x12261525, 0x3a170c22, + 0x0f0b6e4f, 0x03030c48, 0x524f8b08, 0x1e14150b, 0x08754f16, 0x480c0403, 0x01590b0e, 0x08070760, 0x19285742, 0x15171b22, 0x04071f3b, 0x3b1f0704, + 0x221b1715, 0x79584019, 0x0518040b, 0x99090d0c, 0x07085a57, 0x58c9fe07, 0x0c0c0a81, 0x0b041805, 0x21ae8261, 0x0b550400, 0x003e2608, 0x00700050, + 0x0e335082, 0x56560620, 0xc8c71806, 0x064a5209, 0x83012b21, 0x05a6761a, 0x9e182720, 0x08190b86, 0xa57808a1, 0x114e6708, 0x3017162a, 0x34333037, + 0x30373631, 0x77500382, 0xa0012311, 0x00821702, 0xf5410220, 0x0c012407, 0x482a110c, 0x60200756, 0x2605f741, 0x11090ae3, 0x8e14010d, 0x851c8615, + 0xf6fe2522, 0x010c0c11, 0x52854487, 0x05010926, 0x36110f07, 0x260bc94e, 0x1a1a01c0, 0x87212525, 0x1a162149, 0x4a096e42, 0x0f2305f1, 0x870f160c, + 0x18118545, 0x250c9f57, 0x1917c0fe, 0x3e87161a, 0x2525212b, 0x0a011a1a, 0x11080501, 0x0cce5e17, 0x0a0b0519, 0x2e001028, 0x06010000, 0x14683107, + 0x37362705, 0x16173233, 0x0c190515, 0x17220841, 0xe4471716, 0x059a4d0a, 0x0200022c, 0x0c543636, 0x33331e36, 0xbe822040, 0x8200fe21, 0x3f20258a, + 0x1e1d3332, 0x8506704c, 0x80012a0b, 0x0d3d3d57, 0x1f343a51, 0x2017831f, 0x262a8240, 0x331d1e01, 0x41203f32, 0x6020061b, 0x23590e85, 0x1829200b, + 0x2008fbaa, 0x524e191d, 0x87de180a, 0x11352107, 0x09f25118, 0x37343525, 0x5a173336, 0x22240a62, 0x013d2627, 0x5d831483, 0x41090a5a, 0xa7830526, + 0x20200982, 0x60200382, 0x2010527a, 0x821986c0, 0x4cfe20a0, 0x621806a4, 0x37830719, 0x1e82a020, 0x06831686, 0x42000021, 0x1a270aab, 0x46003400, + 0x18005700, 0x201b0d96, 0x83391927, 0x2706222b, 0x22d78226, 0x4c161732, 0xd45206b9, 0x22223014, 0x5c48393a, 0x2117160e, 0x0e161721, 0x190a0c0b, + 0x291b8239, 0x0a0d0a5d, 0x24241907, 0x08820719, 0x15150e23, 0x1864630e, 0x1910ba21, 0x26238439, 0x0a080b1a, 0x821e1e0d, 0x120a2454, 0x18000012, + 0x20097fc7, 0x05096121, 0x09fd6e18, 0x806a2620, 0x06c34f05, 0xf04e2120, 0x18012007, 0x2011484f, 0xd0d51837, 0x7d012410, 0x4212121f, 0x4d42051f, + 0x1d1e2606, 0x013f3233, 0x052f4340, 0x749da321, 0x40200f8b, 0x240f1263, 0x29291f20, 0x423b8b2f, 0x40200ba1, 0x4c08d043, 0x60200662, 0x87072057, + 0x82002007, 0x00033100, 0x02c0ff07, 0x00c00180, 0x002b0019, 0x01000049, 0x20080f59, 0x22471a05, 0x36112608, 0x33373637, 0x20c19003, 0x06f56825, + 0x013f1625, 0x68012f36, 0x55820ff9, 0x301f2031, 0x02201f2f, 0x0b0d90fe, 0x0603040b, 0x84010d07, 0x6ee020c3, 0x0a47087d, 0xd7fd2107, 0x2e291d83, + 0x1f0e0515, 0x2e15020e, 0x202e820e, 0x20118329, 0x2e09829a, 0xc0012a03, 0x1f3070fe, 0x1f010120, 0x83642e1f, 0x224e8316, 0x83220157, 0x70fe21c8, + 0x200fb747, 0x283383c0, 0x020e4d0d, 0x4d0e0509, 0x2445840d, 0x030c0b0d, 0x8209842a, 0x050024f2, 0x54ff0000, 0x38290507, 0x51003f00, 0x75006300, + 0x060f4900, 0x16021d27, 0x36171617, 0x05567937, 0x3b273423, 0x0c1e6901, 0x36373228, 0x2f34033d, 0xdf702601, 0x05212706, 0x32333523, 0xf018011f, + 0x2391236f, 0x2e05ea66, 0x29221716, 0x22291717, 0x02011617, 0x18022282, 0x36086386, 0x09090e02, 0x1a113b09, 0x12120131, 0x02a0fe1b, 0x04316909, + 0x45393202, 0xfe200b4c, 0x09bc9918, 0xc0431682, 0x21208506, 0x3683a001, 0x1050d022, 0x01235783, 0x83011f1f, 0x82082057, 0x820f8400, 0x08083573, + 0x400e0909, 0x0b0f0a10, 0x30011447, 0x0112121b, 0x3d0340e0, 0x550ced55, 0x54180ce1, 0xcf440c7f, 0x01802707, 0x002100c0, 0xef55002d, 0x16172e0b, + 0x11373637, 0x0f262726, 0x27021d02, 0x2d088235, 0x07272327, 0x16171611, 0x37362117, 0xe7551401, 0x0e57260b, 0x01101110, 0x22048201, 0x83200e60, + 0x4bee22b0, 0x25068307, 0x12250001, 0x4e1889fe, 0x44320b29, 0x0908090a, 0x13000113, 0x400a0909, 0x0680110a, 0xb383ad19, 0xff7b3b23, 0x26078300, + 0x27011d02, 0x83000303, 0xff112497, 0x822e01c0, 0x002a2297, 0x1897822f, 0x6509858f, 0x02210949, 0x06975232, 0x36350126, 0x012f3637, 0x2b31a282, + 0x33371701, 0x0d402317, 0x0e010909, 0x341e1f03, 0x05464130, 0x85505021, 0x34303a07, 0x0e031f1e, 0x0d090901, 0x860518c0, 0xc0019005, 0xa90c0908, + 0x0c2a2937, 0x0b195764, 0x2a0c642b, 0x0ca93729, 0x40800809, 0x0b234140, 0x23001722, 0x820c2341, 0x5e372076, 0x27220729, 0x584c2313, 0x33162305, + 0x03572721, 0x25f9330a, 0x02011616, 0x353d2928, 0x8c0b2627, 0x2e443bf5, 0x7f82022d, 0xf4b10122, 0x330b1741, 0x222212c3, 0x28293d2c, 0x20200102, + 0xc5fe6e32, 0x442e2d02, 0xc021c482, 0x25008200, 0xff000006, 0x018201c0, 0x38297d82, 0x74005100, 0x85007c00, 0xd5c31800, 0x2477820a, 0x1714011d, + 0x09c25e16, 0x3d363727, 0x26273401, 0x05325627, 0xd1552320, 0x83332008, 0x27072123, 0x0a7ae118, 0x3f323333, 0x34353602, 0x0607012f, 0x07063107, + 0x3b161714, 0x0a284c01, 0x737c3320, 0x27262b05, 0x27260706, 0x15070617, 0x07823533, 0x25087c6f, 0x27271373, 0xee823232, 0x09080c25, 0x880c0809, + 0x08092e0d, 0x230c0908, 0x291b1b01, 0x1b1b2920, 0x08a74d01, 0x01069323, 0x23028206, 0x15060615, 0x162c0985, 0x4c160505, 0x011f1e33, 0x620d0809, + 0x3106164c, 0x09080d62, 0x331e1f01, 0x303f3f30, 0x20010f3f, 0x6b180f01, 0x01320881, 0x1a1a2b60, 0x1a1a0101, 0x0909012b, 0x090d400d, 0x10900109, + 0x84103021, 0x567b8272, 0x13200855, 0x7a85708d, 0x2c149a24, 0x6a82392c, 0x2006a745, 0x2c818240, 0x142c2c39, 0x22010122, 0x300f0183, 0x55798430, + 0x002e056c, 0x00000300, 0x7802c0ff, 0x1100c001, 0x5f182500, 0xa8570965, 0x83b4180b, 0x19012013, 0x180db920, 0x212479b4, 0x20197102, 0x40200ec9, + 0x87075f58, 0x73b41807, 0x31012f0f, 0x400e0e80, 0x0e0e1111, 0x0e0e6f2f, 0xf7471111, 0x84802008, 0x002424af, 0x18450036, 0x3312b3b6, 0x3233010f, + 0x14150617, 0x21171617, 0x35262722, 0x37363736, 0x11088c19, 0x07062722, 0x45052077, 0xe020052c, 0x2e398c8f, 0x091c1f5c, 0xfe231414, 0x09080d93, + 0x4b333202, 0x2802ce01, 0x293d3d29, 0xa5751828, 0x0f902208, 0x068c5c01, 0x0f012022, 0x10b35419, 0x1a0a302f, 0x26252d1c, 0x0d080918, 0x0232334b, + 0x83398b40, 0x01502349, 0x8641400f, 0x0f302205, 0x48da8201, 0x6f2006d3, 0x2f24db84, 0x8e007c00, 0x1721db98, 0x06135906, 0x16171623, 0x88e88237, + 0x822520e6, 0x21fc82eb, 0xda821716, 0x17363722, 0x172a1e82, 0x16010f16, 0x17071415, 0x34820716, 0x2f060723, 0x056f5901, 0x59222321, 0x0721052b, + 0x2b078206, 0x3f262726, 0x34352601, 0x37262737, 0x37264182, 0x36011f36, 0xf1733537, 0x8217200c, 0x41352017, 0x11321224, 0x0d170111, 0x06050606, + 0x0c0e0b0a, 0x080e0f10, 0x2f4182fe, 0x01023b07, 0x1111100a, 0x0c010a10, 0x090a190a, 0x0508090b, 0x01190a03, 0x030a1901, 0x0e820805, 0x0c201482, + 0x042e2198, 0x080b0909, 0x0c0b180b, 0x140e0e5c, 0x00820e14, 0x63410583, 0x1e033111, 0x0e0f080f, 0x12121410, 0x02010d0f, 0x0c0e0107, 0x34066e41, + 0x03040b56, 0x1f0b0403, 0x050f0805, 0x0f0f0c08, 0x0f060b10, 0x38008206, 0x100b070e, 0x080c0f0f, 0x05080e06, 0x04030c1e, 0x1e0c0304, 0x050e0805, + 0x27238407, 0x06060e07, 0x060e0607, 0x052b2385, 0x1f05080f, 0x0e0d1586, 0x47150d0e, 0x834207c5, 0x0025240e, 0x18410033, 0x441393ba, 0x33210876, + 0x05825021, 0x2327262c, 0x31232625, 0x17010f22, 0x98443637, 0x010f2b05, 0x3f161706, 0x013f3601, 0x5a410727, 0x334b3f11, 0x08090232, 0x0525010d, + 0x0c050f03, 0x5c4a3128, 0x0f0db401, 0x471d0d10, 0x0e0c0c1d, 0x651806ee, 0x8122088f, 0x18418147, 0x32023111, 0x080d4b33, 0x3c0f0d09, 0x30280d11, + 0x0c0c4402, 0x0d2a3782, 0x0e0c1010, 0x3c0906b5, 0x3e840609, 0xcf903982, 0x4c003b22, 0x44130d61, 0x05211305, 0x068e4523, 0x32313022, 0x26085f54, + 0x27260323, 0x82343736, 0x07e25703, 0x28251d44, 0x13098a61, 0x03042112, 0x0648463e, 0x1f30b12f, 0x1c12011e, 0x201f3026, 0x1f200101, 0xdab71830, + 0x0e1e2721, 0x272e0812, 0x63461c27, 0x00012806, 0x36292001, 0x84152129, 0x4f46833e, 0xc0320893, 0x2500bf01, 0x00003b00, 0x011f3613, 0x0f061716, + 0x2e571501, 0x15272d08, 0x06071617, 0x2722012b, 0x35013f26, 0x3f25cb82, 0x16170301, 0x2226823f, 0x6b141716, 0x352e067e, 0x37363736, 0xc80505db, + 0x12010112, 0xf261014d, 0x10302c06, 0x08040501, 0x05050720, 0x820f1001, 0xc8200818, 0x0c0c535a, 0x24243853, 0x0d090901, 0x090d7efe, 0x24240109, + 0x01bf0138, 0x13042801, 0x390f0513, 0x25077244, 0x4f410a39, 0x00820607, 0x474f0731, 0x04131106, 0x59befe28, 0x0d590a0a, 0x823b2b2b, 0x243c8234, + 0x0d2b2b3b, 0x061f4400, 0x2207fb44, 0x424f0031, 0x3d221f77, 0xc0823401, 0x2507ef67, 0x37343523, 0x191a3336, 0x85421d40, 0x096b2d19, 0x015c4230, + 0x09090e5e, 0x0e090940, 0x49067648, 0x134a06d2, 0x18854207, 0x80120e26, 0x01290303, 0x30213983, 0x21428230, 0x9b183020, 0x5c180d6c, 0x8f460830, + 0x22e38506, 0x42300025, 0x01202789, 0x090d5a18, 0x23246d42, 0x1690d801, 0x08d62819, 0x22218746, 0x5116021a, 0x9f8505d8, 0x01c0012b, 0x002d00c0, + 0x004f0044, 0x09374d00, 0x46070621, 0x3620056a, 0x26241282, 0x34272627, 0x16259382, 0x36171617, 0x05ae5f37, 0x06070623, 0x0545430f, 0x20104e42, + 0x06ee5213, 0x23272634, 0x21202ce0, 0x0d01020d, 0x0e0b0f0f, 0x0b050501, 0x02820b09, 0x0105052d, 0x0f0f0b0e, 0x1104070d, 0x42261e1d, 0xe0350736, + 0x3f272801, 0x440d0d44, 0x0128273f, 0xfe0d0809, 0x09080d7c, 0xab8718a0, 0x01c02709, 0x02271918, 0x3d820b02, 0x0c0d012a, 0x080d0e0f, 0x0c090505, + 0x08245887, 0x13131f08, 0x2607ba42, 0x302f42e2, 0x820d5b0d, 0x2f302202, 0x82458242, 0x8201214d, 0x4605f962, 0x97410b9b, 0x823c2007, 0x710020fb, + 0xf344119e, 0x3332230a, 0x01822726, 0x25012b22, 0x06201482, 0x46058846, 0x272c055a, 0x26012f26, 0x07061707, 0x35070631, 0x11415c19, 0xf6442e20, + 0x84270807, 0x16390303, 0x1a180217, 0x7835015c, 0x0c01010e, 0x361e1d0b, 0x1e360909, 0x010c0b1d, 0x09780e01, 0x15026809, 0x425f3216, 0x22081874, + 0x2e38372c, 0x06304e07, 0x29292110, 0x04172626, 0x26261704, 0x10212929, 0x04043006, 0x2a292856, 0x4b26bc1b, 0x25200d03, 0x210a034b, 0x034b2527, + 0x27ae840d, 0x33161714, 0x25373221, 0x3c0a054b, 0x1a2aeafe, 0x2401011a, 0x24363625, 0xe1990224, 0x022f2f48, 0x010d0809, 0xfe050684, 0x0b084bfb, + 0x210cd924, 0xb9412d22, 0x35232d05, 0x06d5fe78, 0x0d493132, 0xce020908, 0x2107d743, 0x83490179, 0x003c2205, 0x1ed74345, 0x27373635, 0x26013d26, + 0x2237012b, 0x1d063107, 0x011f1401, 0x18323316, 0x2107ee6c, 0x8c18012b, 0xcd4308a8, 0x10843819, 0x18176409, 0x0ece5c1a, 0x6b130909, 0x0f13130f, + 0x6b0e0e49, 0x18531a13, 0x4108fb40, 0x01311856, 0x2117640b, 0x09500721, 0x1a530e09, 0x0e0e6b13, 0x223e8349, 0x1850136b, 0x210d8362, 0xcf84c001, + 0x00003523, 0x532f1913, 0x03372f0f, 0x36372627, 0x16013b37, 0x010f1617, 0x985a3717, 0x032b2106, 0x2107ac49, 0xb9903717, 0x05120f28, 0x14090504, + 0x06820914, 0x28211235, 0x0126263b, 0x980d0909, 0x090d9852, 0x26260109, 0x8221283b, 0x0e7a6770, 0x1f99fe31, 0x01070808, 0x08080701, 0x0aa17c1f, + 0x453d2c2c, 0x3d28054d, 0xa10a2c2c, 0x0800007c, 0x2e08e76e, 0x00230011, 0x004b0036, 0x009b0073, 0x18fe00ec, 0x21132f9d, 0xcd183621, 0x05340f67, + 0x30331716, 0x26313031, 0x26373427, 0x0706012b, 0x36050706, 0x0382d782, 0xd1183520, 0x1f240aca, 0x23272601, 0x22053a55, 0x823d2621, 0x0671490c, + 0x27313524, 0x27822331, 0x3f363737, 0x34353401, 0x23372735, 0x15160722, 0x1f160714, 0x35373601, 0x29498334, 0x16173233, 0x011d1617, 0xcc491716, + 0x252f8206, 0x27361727, 0x47822f26, 0x820f2621, 0x82698304, 0x07062537, 0x27070615, 0x19979519, 0x82151721, 0x32332147, 0x2105435f, 0x73831617, + 0x3637362a, 0x3536012f, 0x07372734, 0x7010c765, 0x70201165, 0x370f7770, 0x130200fe, 0x020229d6, 0x2e2a1815, 0x01011e1e, 0x031a2540, 0x10050405, + 0x370bd551, 0x68041041, 0x01262638, 0x2c011902, 0x03020203, 0x0b0f0f0d, 0x01020607, 0x062c2782, 0x03030c06, 0x15182a94, 0x03040a02, 0x09231b82, + 0x820c110a, 0x0a112200, 0x82278609, 0x1d1e2315, 0x1d825c2d, 0x0502042b, 0x120b0806, 0x0b01110d, 0x3100820a, 0x0d11010b, 0x05090a13, 0x03040205, + 0x02130a04, 0x23851302, 0x0a090523, 0x27239213, 0x120a0304, 0x49120101, 0x8505cc5c, 0x20012105, 0x9707b146, 0x138b2207, 0x4e7a1902, 0x01152808, + 0x05050616, 0x521e1803, 0x3c3e0bef, 0x26011309, 0x02193826, 0x01030808, 0x02070202, 0x09080d02, 0x0a0a0401, 0x080e0e10, 0x00820102, 0x0abc0226, + 0x171a0b0b, 0x012f1c82, 0x0c100301, 0x0202030c, 0x100c0c03, 0x84010103, 0x0504352d, 0x011d1d2c, 0x080b07a4, 0x06080408, 0x0c0a0609, 0x020c1506, + 0x0c240082, 0x0a0c0615, 0x16821082, 0x070b082a, 0x0909090a, 0x0c060b08, 0x07212582, 0x82258607, 0x83032042, 0x050b2325, 0x258b0708, 0x466a1c20, + 0x5be68208, 0x802d0857, 0x3100c001, 0x50003900, 0x6f005800, 0x05cf7e00, 0x54050563, 0x1420051c, 0x2508da63, 0x1716013f, 0x54181411, 0x343407d7, + 0x012b2627, 0x013f3611, 0x32333605, 0x3f23011f, 0x010f0601, 0x2305554d, 0x37361716, 0x35260182, 0x26012f34, 0x1c832527, 0x33363723, 0x05066b27, + 0x4a05f046, 0x608305e1, 0x0d0a0232, 0x04040506, 0x710d0b0c, 0x17222e17, 0x7b010116, 0x88251087, 0x09090806, 0x061f6a0e, 0x0b21a026, 0x0174fe7e, + 0x4b270082, 0x1e024b9a, 0x18064d0f, 0x210949b6, 0xb6184e05, 0x198f0b49, 0x010f1e23, 0x835f8382, 0x25252256, 0x23c48202, 0x29050422, 0x2d241187, + 0xb9fe0305, 0x2c089452, 0x220f2701, 0x0101d32a, 0x01318f8f, 0x52b6181a, 0x82502013, 0x1501211a, 0x01211993, 0x079b531a, 0x41058f54, 0x13290a53, + 0x26312726, 0x36373637, 0x067e5c1f, 0x17151423, 0x05704d16, 0x06012f24, 0x9d671107, 0x057f5007, 0x2f26112f, 0x23260501, 0x33010f22, 0x1f16012f, + 0x9bb71801, 0x83252012, 0x2627241c, 0x92173723, 0x1716221c, 0x0e524176, 0x51417a20, 0x8c012118, 0x18095141, 0x290f9bb7, 0x010180fe, 0x014b9a4b, + 0x198f2d01, 0x266a5141, 0xff000008, 0x53f601c0, 0x442a060f, 0x81005600, 0x9b008600, 0x8345ad00, 0x013b2707, 0x16171621, 0x115c010f, 0x06185c05, + 0x21210687, 0x05025227, 0x23271725, 0x79073315, 0x06230568, 0x67070607, 0x881809ea, 0x01251187, 0x36313736, 0x3556d037, 0x12120100, 0x0120401b, + 0x090a1036, 0x0f9f0604, 0x960f0101, 0x06838412, 0x6a127c22, 0x62300683, 0x0900ff12, 0x12121b57, 0x460c9201, 0x20010252, 0x20081a68, 0x200987e0, + 0x0d3c5590, 0x237b51cf, 0x0c0c2306, 0xd077180f, 0x8360200e, 0x8280206a, 0x01c02400, 0x88140e0d, 0x19088499, 0x200d4706, 0x20c083a0, 0x3942bb01, + 0x00020000, 0x02e8ff00, 0x00a00140, 0x003f001f, 0x37161700, 0x11353631, 0x34472734, 0x15062307, 0x14821411, 0x374b3620, 0x36332106, 0x37231f82, + 0x83161732, 0x3b279213, 0x070708fa, 0x20200f05, 0x24242b2c, 0x07080914, 0x21201909, 0x1d1e1a1e, 0x1d154c15, 0x31080782, 0x09192021, 0x14090807, + 0x2c2b2424, 0x050f2020, 0x18080707, 0x09040502, 0x04077901, 0x010b0b0d, 0x09090901, 0x84fe0a04, 0x02050509, 0x01070709, 0x00820807, 0x07290682, + 0x05050209, 0x0a7c0109, 0x2b208204, 0x0b0b0101, 0xfe07040d, 0x05040987, 0x0022be82, 0xc3820500, 0xc382c020, 0x1800c030, 0x48003100, 0x7a006100, + 0x06130000, 0xf6431415, 0x47cb8305, 0xb68305c2, 0x43250721, 0x168306c6, 0x2005db55, 0x82dd8237, 0x1807201a, 0x660b7497, 0x162005e4, 0x27201682, + 0x502e48b0, 0x05051010, 0x0c0d0c05, 0x1515050c, 0x08820c05, 0x01210e82, 0x890b89db, 0x02cb221f, 0x0513561e, 0x59021e21, 0xb52207b0, 0x3d840b0b, + 0x060c0b26, 0x0c061010, 0x0e820082, 0x89250121, 0x261f890b, 0x2d279401, 0x820d272d, 0x05053029, 0x3a320c06, 0x050c323a, 0x0b060405, 0x8b180d0c, + 0x24248b0c, 0xfe12256c, 0x05da42d7, 0x12290127, 0x12121b25, 0x25788301, 0x1c1c1733, 0xb0820d17, 0x05040528, 0x2929240c, 0x08820c24, 0x1a20ba83, + 0x248b0c8b, 0x3b420020, 0x02c22105, 0x07d35018, 0x200acd46, 0x05fd4803, 0x32371730, 0x012f3637, 0x1601023f, 0x37163133, 0x90493631, 0x31302406, + 0x6a232627, 0x062105cf, 0x05755107, 0x0f161726, 0x14070601, 0x0f820182, 0x02174908, 0x01020a74, 0x0d0d0808, 0x0848900b, 0x090a061f, 0x304f0d03, + 0x0604040a, 0x9048091c, 0x31149dfd, 0x1e343431, 0x0810111d, 0x1f024f07, 0x1e29281f, 0x0b0e0e11, 0x05030401, 0x04050727, 0x05114a04, 0x05010101, + 0x87010805, 0x4a834283, 0x0738703f, 0x03010728, 0x01652e09, 0x24080909, 0xfe703807, 0x0701023d, 0x26181507, 0x021e1e25, 0x380a8265, 0x1a190e16, + 0x0403051e, 0x06031403, 0x14520606, 0x02040319, 0x06070703, 0x2ae78501, 0x014002e0, 0x001100a0, 0x63000030, 0x1120050d, 0x0a5b5b19, 0x2f581320, + 0x32571808, 0x012b2708, 0x26273435, 0xe682012b, 0x1b601522, 0x0c6b5b19, 0x65478020, 0x00022106, 0x21058741, 0x786f0980, 0x05865905, 0x01e0fe23, + 0x83038320, 0xa0fe2133, 0x200c4959, 0x4f2f8520, 0x25240a97, 0x46003700, 0x280c9d6e, 0x06070611, 0x27262307, 0x0b5f5733, 0x15211126, 0x11352326, + 0x200fdd79, 0x05457b0f, 0x21070622, 0x2405ed42, 0x121201a0, 0x9d7c181b, 0x12ef2309, 0x9a826423, 0x75824020, 0xa0fe4024, 0x625c231d, 0x361b210f, + 0x27054f4a, 0x0219f6fe, 0x38262601, 0x200af67f, 0x21bd83e0, 0xb0861927, 0x20012027, 0xff201131, 0x0f645c00, 0xb5492020, 0x19022105, 0xcb624783, + 0x01802d08, 0x002800c0, 0x003f0033, 0x27260100, 0x82090973, 0x331121d7, 0x2508d362, 0x26113315, 0x6c7d012f, 0x081f7607, 0x05073525, 0x68313736, + 0x15240596, 0x02580133, 0x08905419, 0x01167123, 0x10a51860, 0x16013e08, 0x02162071, 0xfe201602, 0x010118c1, 0x50140e0d, 0x14370267, 0x01010d0e, + 0x01506718, 0x201a83a8, 0x263a8318, 0x1b0e442e, 0x1860fbfe, 0x2508b04e, 0x0e1b0501, 0x19832e44, 0xcefe1825, 0x835c1b0f, 0x38ee2232, 0x244183b6, + 0x380f1b5c, 0xefe618ee, 0x00152c0b, 0x00500040, 0x007f0071, 0x6a000092, 0x22220801, 0x5a442707, 0x36052109, 0x2105544c, 0xdc821417, 0x84313021, + 0x02392201, 0x24088206, 0x23060706, 0x85298226, 0x3736222b, 0x20088517, 0x24178215, 0x34313007, 0x222f8235, 0x82220706, 0x84222005, 0x78352024, + 0x372a0857, 0x33343736, 0x3d33021d, 0x0a823601, 0x58831520, 0x0b842d82, 0x83085553, 0x00022d2c, 0x4d2e2501, 0x573d0605, 0x25020c0c, 0x08bf5518, + 0xa1fe3208, 0x272f100f, 0x01261b28, 0x011b0802, 0x3027281b, 0x0303385c, 0x23010125, 0x11103923, 0x2b1602ff, 0x01131921, 0x201e162b, 0x02022501, + 0x5c380101, 0x082d8230, 0x13012523, 0x57573d19, 0x090b0c3d, 0x01020108, 0x19171d20, 0x371a0f13, 0x193d57e0, 0x36360213, 0x36365252, 0x08218302, + 0x1b700127, 0x03061915, 0x01011902, 0x221b1501, 0x01011617, 0x51221716, 0x0e080901, 0x06061c15, 0x0f010f14, 0x1c010908, 0x361c8202, 0x0814141b, + 0x214f0103, 0x0a0e0714, 0x151e230f, 0x0302070b, 0x82151b60, 0x821c2038, 0x150f252e, 0x0a0f231b, 0x19244682, 0x06050605, 0x03261482, 0x1a201a06, + 0x2a820a06, 0x190f1028, 0x7003020d, 0x0b821901, 0x2b846187, 0x260da760, 0x003e002c, 0x18000053, 0x211b95ac, 0xf4181732, 0xb9600f51, 0x088f5b08, + 0x2105d244, 0xcd442726, 0x16152306, 0x78183617, 0xff201a42, 0x4306f143, 0x602005c7, 0x300f0f43, 0x2c2b0240, 0x01010f37, 0x1f20220f, 0x0f0f1918, + 0x23028201, 0x3a3948c0, 0x14ade219, 0x430d1944, 0x10240f9b, 0x022b2c37, 0x0f263f83, 0x1f18190f, 0x55832220, 0x00020036, 0x02c1ff00, 0x00c0017c, + 0x003b0032, 0x07060100, 0x15070631, 0x06310682, 0x16171617, 0x1733013f, 0x2f363716, 0x33323301, 0x830a8630, 0x013d23de, 0x3e523637, 0x27262405, + 0x70272615, 0x0128055c, 0x191925c8, 0x0b9dfe01, 0x2b06a745, 0x0a2f854a, 0x27071415, 0x01010129, 0x2a2e0984, 0x0127263e, 0x06020d51, 0x32171011, + 0x73182a1a, 0xc0270871, 0x25191901, 0x45eefe1d, 0x39260799, 0x0a071471, 0x05845f15, 0x3212662f, 0x08404332, 0x160e0514, 0x011f0e0d, 0x08e85370, + 0xac820020, 0x8345bb82, 0x82472005, 0x3736210c, 0x2006376c, 0x050c7115, 0x22053c4f, 0x4c222326, 0x332505f7, 0x31323130, 0x27d38217, 0x37322133, + 0x30013f36, 0xeb471083, 0x29228605, 0x26270607, 0x3501012f, 0x854e0112, 0x39122706, 0x0d0e0e08, 0x9a4e0859, 0x2d012d08, 0x17121105, 0x12171601, + 0x012d0511, 0x2a08cd4d, 0x0e0d5908, 0x0139080e, 0x85160c56, 0x0b172913, 0x03040d73, 0x0e0a470a, 0xfb272388, 0x0f0f0e18, 0x88fb180e, 0x820e204b, + 0x0403241e, 0x5000730d, 0x15310be7, 0x27001e00, 0x39003000, 0x59004200, 0x00006200, 0xa5e51813, 0x64072014, 0xe782058a, 0x82077b41, 0x201384d8, + 0xb854183f, 0x16272108, 0x51066652, 0x776b05de, 0x16232709, 0x010f0607, 0x3a873715, 0x100cfc26, 0x0cb80c10, 0x07860282, 0x63410420, 0x41982007, + 0x802007a1, 0x60240899, 0x140e0d01, 0x2608204b, 0x03040a77, 0x41a08b11, 0xb42008d9, 0x6684568a, 0x5318d420, 0x5020108b, 0x08886d87, 0xd118b020, + 0x782408f4, 0x010d0e14, 0x15256088, 0x8b111716, 0x94751832, 0x05574508, 0xc001e030, 0x1500a001, 0x39002700, 0x5d004b00, 0x8b476f00, 0x17162508, + 0x36211716, 0x22064b60, 0x77172127, 0x6518101e, 0x1d191136, 0x42771186, 0x17866111, 0x48181220, 0x0120072e, 0xfe210982, 0x06dc5dc0, 0x4305d543, + 0x198c0c97, 0x470c9b66, 0x8061061a, 0x3f50180b, 0x0c7f770f, 0x660cb061, 0xb3770cbe, 0x0ce4610c, 0x00820020, 0x54180520, 0x374108eb, 0x13002709, + 0x36313736, 0x50182137, 0x625c0e59, 0x3233240c, 0x18353637, 0x2011f3e4, 0x2f791837, 0x17142208, 0x18239616, 0x8c14786d, 0x8cfc8ccc, 0x48198cb2, + 0x1a41098a, 0x0c53410b, 0xe0203c8c, 0x8c0bb24d, 0xfb021919, 0x4227200d, 0x13201737, 0x18103742, 0x4114d063, 0xb5490c8b, 0x48c02006, 0x01200723, + 0xff203284, 0x0c676e18, 0x00000023, 0x12874107, 0x81006f22, 0x2511bb49, 0x26272621, 0x8b411127, 0x23239123, 0x31373237, 0x45066971, 0x23910608, + 0x4111d341, 0xe0422eaf, 0x0c0a410c, 0xc941198c, 0x0c1d432f, 0x420ce341, 0x198c0c3a, 0xdf47338c, 0x0d234405, 0x4407ab4b, 0x4344321f, 0x140b4211, + 0x198c8f99, 0xa8152542, 0x065768d9, 0x430aff44, 0x711816c3, 0x2720110b, 0x41101342, 0xe16914ef, 0x058d4e07, 0x430c4943, 0xcb481586, 0x20c98c0d, + 0x2e008200, 0xff100003, 0x01b001f0, 0x00110090, 0x18370023, 0x4c136364, 0x8d57058f, 0x17162605, 0x3f363736, 0x20ab8801, 0x07c94721, 0x10012122, + 0x8f0f026f, 0x0600450f, 0x2009ab6a, 0x08e47001, 0x2008d651, 0x870987c0, 0x0e3a4207, 0x50020021, 0x21220843, 0x95433300, 0x6d33200d, 0xc8180859, + 0x3b230849, 0x41051101, 0x60201057, 0x09194c18, 0x2306fb41, 0x70e0fe70, 0x20059344, 0x7b451840, 0x0a2a4d0d, 0x0121888c, 0x0eb64480, 0x2b05e35c, + 0xbf014002, 0x2a001800, 0x00004000, 0x08f55619, 0x48111521, 0x162406cb, 0x1135033b, 0x23113758, 0x15113337, 0x30095679, 0x27261101, 0x15232726, + 0x0d0c4001, 0x0a10b40f, 0x069f430a, 0x20c04028, 0x0a070740, 0x0082070a, 0x60220583, 0xbc862060, 0xce832020, 0xa001602d, 0x03090910, 0x0d0d042d, + 0x429dfe11, 0x2022051c, 0x1f42c001, 0x4e80200c, 0xfb4408a6, 0x82a48205, 0x100030a6, 0x0002c0ff, 0x3500c001, 0x05250000, 0x7a161706, 0x848205aa, + 0x34272625, 0x8236013f, 0x200b8202, 0x080c8523, 0x35363730, 0x26012f26, 0x010f0627, 0x1d060706, 0x17363701, 0x17010716, 0x0e0e00ff, 0x44391111, + 0x03083f4c, 0x01080a03, 0x03045106, 0x04040717, 0x0b82200b, 0x07702b08, 0x2c011003, 0x40402d06, 0x1324682d, 0x0b0bbe14, 0xffe80608, 0x0e0e1111, + 0x06280139, 0x01010808, 0x18020708, 0x08170202, 0x0b840909, 0x05022236, 0x2d402520, 0x01012c06, 0x2f24682c, 0xbd37332f, 0x0b090909, 0x2d061b46, + 0xa0014002, 0x59005000, 0x16010000, 0xfc7c3117, 0x208f8206, 0x09fe4117, 0x012f2223, 0x22b38236, 0x82222326, 0x21d083a6, 0x39520139, 0x82162005, + 0x872a82ad, 0x21232229, 0x4c268226, 0x0583051a, 0xca661520, 0x20702d08, 0x55041616, 0x010c0b14, 0x335c901e, 0x3e061a42, 0x096e0a0d, 0x21150607, + 0x4a202929, 0x0c0b090a, 0x1606054a, 0x12131919, 0x040e0203, 0x855a2505, 0xe0fe2f25, 0x0112121b, 0x41262601, 0x16065241, 0x76491e15, 0x01a02d08, + 0x1a201414, 0x150f1006, 0x5c531222, 0x3a05a141, 0x1c1b6f09, 0x1e1f161c, 0x0a0c0b46, 0x04054709, 0x1203020e, 0x16191913, 0x85250506, 0x12012a20, + 0x45541b12, 0x082c2c45, 0x1855821d, 0x18081556, 0x220c8345, 0x18550048, 0x210c7d79, 0xe6823315, 0x8206f87d, 0x013d2adf, 0x36372627, 0x1d16011f, + 0x08584e04, 0x26273425, 0x1815012b, 0x8311d342, 0x36332935, 0x27263537, 0x20070623, 0xa0207c83, 0x0832cd83, 0x01191925, 0x02161602, 0x200e0d15, + 0x10100d0d, 0xcc82134d, 0x141f1f28, 0x0b0c0114, 0xf8870811, 0x58180785, 0x3d430a7a, 0x01c03b09, 0x20251919, 0x16020216, 0x1110069a, 0x10204017, + 0x4d0d0d10, 0x180d1b13, 0xcc769820, 0x11202407, 0x69900c0b, 0x01230b78, 0x18601080, 0x4408c6c6, 0x002c05ab, 0x4002e0ff, 0x7e00a001, 0xaa009400, + 0x0621f582, 0x063c580f, 0x312ff282, 0x31163130, 0x30033933, 0x31070607, 0x82171637, 0x31172ac8, 0x39262726, 0x37303304, 0x21038230, 0x01833736, + 0x27171638, 0x0f222726, 0x26270601, 0x3336013f, 0x1f161732, 0x14171601, 0x9051031d, 0x2f262306, 0x41822301, 0x23070622, 0x27253b82, 0x3734023d, + 0x20278234, 0x82298237, 0x06072727, 0x2326012f, 0x6e821507, 0x32331726, 0x013f3637, 0x2405614e, 0x07063130, 0x08c05c05, 0x17233022, 0x39083876, + 0x26051377, 0x21322f20, 0x02040910, 0x01010201, 0x09060401, 0x09052805, 0x0b820406, 0x56080282, 0x11090402, 0x202f3220, 0x04130526, 0x0a151f05, + 0x0d1f1407, 0x13141a0e, 0x01032c06, 0x301f2001, 0x201f2e2c, 0x01260103, 0x2e1f2003, 0x201f302c, 0x2c030101, 0x1a141306, 0x141f0d0e, 0x1f150a07, + 0x01370405, 0x2c140e0d, 0x010e0d14, 0x1b040403, 0x041b2524, 0x82c00104, 0x24252909, 0x0103041b, 0x0d0e0103, 0x0e2c1d82, 0x7001010d, 0x0ba11201, + 0x050c0201, 0x022a7a84, 0x050d0902, 0x0d050808, 0x96830209, 0x05040128, 0x0a02020c, 0x208212a1, 0x15140730, 0x10050d0a, 0x0bbc190f, 0x0703030b, + 0x77841029, 0x2e1d1e27, 0x1d2e1616, 0x3596841e, 0x03072910, 0xbc0b0b03, 0x05100f19, 0x13150a0d, 0xf5020c06, 0x6582142b, 0x130d0d26, 0x0a01012e, + 0x02220283, 0x09862b2a, 0x132e0125, 0x83010c0d, 0x02002ba7, 0xe0ff0000, 0x9f01c001, 0x636c1900, 0x06055a05, 0x16051726, 0x05070617, 0x0878ac18, + 0x4f012721, 0x6b1808d6, 0x2121087c, 0x07365534, 0x13400129, 0xfe130101, 0x750c0dc0, 0xf6230563, 0x426c01f6, 0xfe20057e, 0x27066546, 0x62018001, + 0x0d0c0b06, 0x80283183, 0x09151509, 0x05050480, 0x0b250e82, 0xfe626206, 0x0b6642be, 0x03000025, 0x5aff0400, 0x3024059f, 0x53003900, 0x0ffd4518, + 0x43012b21, 0x14370652, 0x022b0607, 0x26022f22, 0x3726012f, 0x011f3233, 0x22233533, 0x82352627, 0x05b44507, 0x15161728, 0x010f1431, 0xb2890706, + 0x64423220, 0x82802005, 0x86012071, 0x20a0259a, 0x022d2d44, 0xa0301082, 0x560a1050, 0x17040f91, 0x101b1202, 0xa0d0260a, 0x012fc282, 0x1b018000, + 0xf720291b, 0x26040909, 0x85e8fe35, 0x180128d5, 0x0a03131b, 0x180a0d0d, 0x8207bd4f, 0x18402016, 0x2a079984, 0x063a730d, 0x02125c10, 0x8240330d, + 0xe0fe2854, 0x1b1b2920, 0x83698001, 0x2404212e, 0x2306da72, 0x09090413, 0x002de782, 0x80022000, 0x1f006001, 0x3f002f00, 0x068d6200, 0x011f162e, + 0x16373637, 0x15171617, 0x07060706, 0x5118dd82, 0x272008fc, 0x2005ee5c, 0x251c8315, 0x33013f36, 0xb34e1617, 0x0f223109, 0x29020001, 0x2b3c3e28, + 0x3c2b4848, 0x0229283e, 0x01300d8d, 0x22184813, 0x01171722, 0x22171701, 0x5a481822, 0xcf200e8d, 0x01253183, 0x2a48482a, 0x20378301, 0x230e841e, + 0x29494929, 0x0f210e85, 0x20388548, 0x2241851e, 0x83184848, 0x220d8446, 0x46004818, 0x33200b0b, 0x08a74018, 0x32333722, 0x0870e418, 0x18061c77, + 0x820997e4, 0x373623c3, 0x22821635, 0xce820985, 0x08082451, 0x19182327, 0x07381b19, 0x0b075507, 0x2401010a, 0x1b383625, 0x2c181919, 0x36365237, + 0x1a190102, 0x1616022c, 0x08191702, 0x22078308, 0x459d1013, 0x3c2107d3, 0x382e830e, 0x0403097a, 0x2536f00b, 0x0a010124, 0x011b0e0b, 0x52363602, + 0x192c2b36, 0x23268342, 0x2901062e, 0x33230783, 0x518c0a07, 0x03430826, 0x3601330e, 0x27363137, 0x07262726, 0x16070605, 0x37160517, 0x0f823736, + 0x37012f23, 0x89711801, 0x8c012112, 0x27070443, 0x0113c0fe, 0x40011301, 0x21090443, 0xb01894fe, 0xfe200d08, 0x21290443, 0x00820005, 0x0140022d, + 0x001f0080, 0x005b0048, 0x1881006e, 0x250c5d93, 0x07060706, 0x4f192115, 0x012e0ebb, 0x17141521, 0x35013b16, 0x17163736, 0x06943315, 0x36373229, + 0x1525013d, 0x18060714, 0x23081d84, 0x16173233, 0x133dc318, 0x25913320, 0x2605cb4b, 0x01011509, 0x82010915, 0x3209869e, 0x1b121201, 0x000240fe, + 0x0909c0fd, 0x0f01300e, 0x8d60010f, 0x0e302404, 0x49fe0909, 0x0c990cb2, 0x83800121, 0x0b072a4e, 0x1a1a0e06, 0x470b060e, 0x27098747, 0x12121b07, + 0x40e0fe01, 0x20254b82, 0x0f01010f, 0x82059120, 0x5040207e, 0x57180757, 0x16830a15, 0x8d058a41, 0x00002114, 0x09534718, 0x55003422, 0x330a3b65, + 0x3736012f, 0x06272635, 0x14011d07, 0x23352707, 0x013b3627, 0x15348318, 0x01271523, 0x05745627, 0x06273528, 0x1716011d, 0x80181716, 0x36210daa, + 0x0a6b6537, 0x01179f2e, 0x02161602, 0x2339120e, 0x50500705, 0x0586c683, 0x1b1b0132, 0x1b1b2929, 0x6a01b901, 0x3614122b, 0x2f012425, 0x10de5c19, + 0x651a1f21, 0x5c190b8e, 0x182807e0, 0x0e1b2010, 0x20051b2d, 0x103b8318, 0xfe913626, 0x01062269, 0x15eb5c19, 0x000e0428, 0x00060000, 0xc347ff00, + 0x001e2e05, 0x00380030, 0x00470040, 0x1300004e, 0x21c78211, 0xe15b3637, 0x25058205, 0x26272611, 0x01830607, 0x52180784, 0x233211f0, 0x16311716, + 0x37352317, 0x06310706, 0x05333507, 0x3d832315, 0x15332722, 0x272d3982, 0x411a0100, 0x3c414142, 0x123b3c3c, 0x21f3820f, 0x0e82411a, 0x13210d83, + 0x200d820e, 0x0f976320, 0x121be02d, 0x40400112, 0x1b121201, 0x85800140, 0x05794207, 0xcbfe4f32, 0x08160c1e, 0x09111208, 0x0a040f08, 0x35011309, + 0x08270f86, 0x09040f09, 0x56ef130a, 0x44840f1c, 0x5084d020, 0x4384a020, 0x4f84d020, 0x5b50fa82, 0x40022d05, 0x1e00a001, 0x2c002500, 0x3c003400, + 0x6420fb82, 0x8218fda0, 0x134145bc, 0x1880201c, 0x2017c482, 0x20df8f80, 0xc4821884, 0x20264113, 0x40d1fe27, 0x1b121201, 0x266684c0, 0x12121b80, + 0x83c04001, 0x60402210, 0x06aa6c30, 0x82180788, 0x042111d0, 0x079b4400, 0x20001524, 0x5d182b00, 0x262514d9, 0x21272627, 0x09d16a17, 0x3736072b, + 0x06171621, 0x27262107, 0x26158225, 0x23070615, 0x18352726, 0x520be77f, 0xfe270809, 0x0fa03040, 0x840f0101, 0x01102404, 0x8360010f, 0x83fe200d, + 0x5018250e, 0x16020216, 0x25440484, 0x05997405, 0x2009404e, 0x07ef69a0, 0x95707020, 0x0f012105, 0x0a42e319, 0x0020b582, 0x8220bb8f, 0x8d17d352, + 0x20c886bb, 0x0d46182f, 0x82222007, 0x072624de, 0x18141506, 0x2108f4ae, 0x23823033, 0x395f1620, 0x82072005, 0x20dd82de, 0x052a5f26, 0x17161724, + 0xfa5f0139, 0x34372306, 0x46183427, 0x2622070d, 0x01823637, 0x37363525, 0x53401716, 0x05410805, 0xe0d0210a, 0x0484c383, 0x0f011022, 0x04820784, + 0x0c5c3308, 0x06031109, 0x07070412, 0x09091304, 0x15090301, 0x13140101, 0x0306060b, 0x08071a06, 0x02121202, 0x01030e10, 0x12070411, 0x01010403, + 0x0a130a0e, 0x25830107, 0x13130229, 0x0306070b, 0x84081807, 0x153e4124, 0x08ccc618, 0x2d083e41, 0x02030690, 0x03111206, 0x02010102, 0x52830505, + 0x06060233, 0x0e070c05, 0x0a1d0f0e, 0x12050203, 0x06120202, 0x22698205, 0x82111207, 0x05013405, 0x03050302, 0x02010506, 0x01060602, 0x0d060c04, + 0x821c0f0e, 0x12062127, 0x00202782, 0x012b0082, 0xe1ff1000, 0x9f01b001, 0x4e003f00, 0x0f210531, 0x09294e01, 0x08097618, 0x44012b21, 0x2723056b, + 0x7b013f26, 0x372009ac, 0x362b0a8a, 0x01173637, 0x03020b72, 0x453f2a07, 0x692205da, 0x0885a940, 0x0841d425, 0x8b0c0c0d, 0x406a221a, 0x211a8baa, + 0x20839b01, 0x754a3e20, 0x061b6205, 0x2f836220, 0x87661696, 0x01003708, 0x002e00c0, 0x00520040, 0x00760064, 0x39142500, 0x06151401, 0x39690607, + 0x17142305, 0x03841716, 0x2220bb82, 0x200c865c, 0x22198216, 0x56051716, 0x3d200f04, 0x5109b851, 0x285607b7, 0x11fd6311, 0x01000235, 0x621c1415, + 0x010d0e14, 0x01070301, 0x0e0f020a, 0x5a050618, 0x704711f0, 0x0500410d, 0x76520585, 0x0c627e0c, 0x0101c035, 0x11111b01, 0x140e0d01, 0x0e0e0505, + 0x16140101, 0x19121218, 0x250c661e, 0x3a222201, 0xa7544839, 0x0c5f630c, 0x198c4f8c, 0x8f530020, 0x0021220d, 0x197d433b, 0x22083f78, 0x48231715, + 0x022d0887, 0x3b363734, 0x16171601, 0x06070617, 0x14585407, 0x55788020, 0x30302206, 0x05df4130, 0x110b0c23, 0x07e65b48, 0x52154e54, 0x4021063b, + 0x24d38640, 0x0b117840, 0x0767450c, 0x0120b382, 0x20082347, 0x0ed94f3f, 0x0f66a918, 0x26272624, 0xae823527, 0x18171521, 0x2009b24d, 0x22148423, + 0x85273534, 0x01002a08, 0x60140e0d, 0x010d0e14, 0x880988c0, 0x50c02108, 0x84088253, 0x7b0e8608, 0x1020087e, 0x88083577, 0x10102427, 0x8d6b0203, + 0x44108749, 0xff2d06ef, 0x018001c0, 0x002600c0, 0x003c0031, 0x23c18347, 0x3637011f, 0x17280387, 0x06111716, 0x012f0607, 0xc4820389, 0x37361123, + 0x09cf6f17, 0x69180720, 0x07210810, 0x26158937, 0x280c0e0e, 0x85101028, 0x820c2003, 0x908582d0, 0x0f522511, 0xc00f0101, 0x10200484, 0x0f220887, + 0x15891001, 0x06be0127, 0x0c22220a, 0x2703850c, 0x0f070509, 0x070f30fe, 0x0a28138b, 0x010f0706, 0x8e070fd0, 0x2007db45, 0x07db45d0, 0x083a5318, + 0x360b1f5c, 0x002b0020, 0x00410036, 0x00650053, 0x00800072, 0x17320100, 0x611d1631, 0x151905b3, 0x362a0a3c, 0x33373637, 0x36373435, 0xd3890333, + 0x0a943320, 0xb8432720, 0x4335200f, 0x25221194, 0xe0411533, 0x82362005, 0x16212157, 0xbe4d7282, 0x35232805, 0x0e400133, 0x45800909, 0x935907e2, + 0x09802409, 0x83700e09, 0x05c74acb, 0x0a946020, 0x0d5d8820, 0x0b112308, 0x2b5d980c, 0x21158208, 0x0e4290fe, 0x20022209, 0x05804114, 0x10101424, + 0x5782c001, 0x12014024, 0xfc521b12, 0x21098206, 0x7e832001, 0xfe208783, 0x4108e345, 0x0787074e, 0x5c8b8020, 0x768b2820, 0xaa424820, 0x00003613, + 0xff040001, 0x01fc01c4, 0x003100bc, 0x23061700, 0x012f2231, 0x0e591826, 0x05245f18, 0x3306b851, 0x01071415, 0x13130fb2, 0x0e0e5c0f, 0x0b0b3033, + 0x2a300909, 0x0a210682, 0x20068e0a, 0x25238633, 0x0e2ec4fe, 0x0c835c0e, 0x0a303325, 0x820b0b0a, 0x20069226, 0x21238633, 0x9b82c4fe, 0xc0ff0028, + 0xc0010002, 0x9b824900, 0x3117162b, 0x21013b16, 0x37363736, 0x051a5035, 0x0b9f8419, 0xae472320, 0x198f1805, 0x616f1813, 0x15112d09, 0x31301514, + 0x0d0e0200, 0x40016013, 0x08ffdb18, 0x60180120, 0xcf4b0c55, 0x430b850b, 0x15230899, 0x880c0d12, 0x8c27920c, 0x605d1847, 0xc0fe2508, 0x00020360, + 0x01200082, 0x40290382, 0x40018002, 0x00003800, 0x5dcf8337, 0xce9a05b8, 0x0686d586, 0x06070625, 0x83001507, 0x092b4281, 0xbd8d4020, 0xdf830e8a, + 0x20087544, 0xb87018a0, 0x89b89109, 0x86a020e6, 0xc0ff26a7, 0xc0010001, 0x8beb1800, 0x050a4508, 0x4d05fb6a, 0x33200519, 0xea53068e, 0x11272107, + 0x6f9ca084, 0x2084c183, 0x094c4818, 0xc6923020, 0x21084141, 0x2371a001, 0x0019340a, 0x00330026, 0x004d0040, 0x006c005a, 0x0100007b, 0x82020f26, + 0x7f15207d, 0x362b073a, 0x27341137, 0x03022f26, 0x51313736, 0x23220683, 0xb04a2735, 0x1905200b, 0x200bfc1c, 0x23199805, 0x31070627, 0x0d5cf518, + 0x280eab7b, 0x12125201, 0x0a117d8b, 0x0992410b, 0x110a0b25, 0x65528b7d, 0x8021076c, 0x051644a0, 0x01010f27, 0x0190010f, 0x210d870f, 0x179570fe, + 0x6c185820, 0x58200ff8, 0x20084f44, 0x2a418210, 0x5d0a0abb, 0x0d0d041c, 0x42ddfe11, 0x012907bc, 0x0d0d1123, 0xfe5d1c04, 0x08a86565, 0x18e06021, + 0x2009fd8f, 0x183f8310, 0x8a10fabd, 0x18a02015, 0x200fdd6d, 0x21a58630, 0x2582010f, 0x5b4f0020, 0x00200806, 0x1300c001, 0x00002700, 0x010f2601, + 0x07011d06, 0x17161716, 0x3f323337, 0x012f3601, 0x15060701, 0x080afa73, 0x2326273e, 0xd1010722, 0x0968110f, 0x09090a56, 0x0c365606, 0x0d0b5007, + 0x70a8fe28, 0x0a400909, 0x700a0d0d, 0x1f181616, 0xb901181f, 0x07500b0d, 0x0656360c, 0x560b0809, 0x0f116809, 0x70eefe28, 0x40232083, 0x83700909, + 0x16162121, 0x260a6b78, 0x002a001d, 0x82550048, 0x07062283, 0x20028431, 0x05924915, 0x32331623, 0x07247537, 0x05232633, 0x16311716, 0x23353317, + 0x07060706, 0x31373213, 0x072f7336, 0x12842620, 0x23201682, 0x25203886, 0x42082a8b, 0x2521a001, 0x011a1a25, 0x14181923, 0x23181914, 0x1f29291e, + 0x2401021f, 0x31343323, 0x1201e0fe, 0x20201b12, 0x0112121b, 0x333431a0, 0x02012423, 0x29291f1f, 0x1918231e, 0x19181414, 0x1a1a0123, 0x8b212525, + 0xc0013a26, 0x08080701, 0x01800107, 0x0d0c0a09, 0x08070a09, 0x28281415, 0x0f101c1d, 0x20458360, 0x29508380, 0x100f60fe, 0x28281d1c, 0x28821514, + 0x80202685, 0x23893585, 0x6f490020, 0x05074506, 0x48003627, 0x00005a00, 0x20d38925, 0x82cf8227, 0x171627e8, 0x31301716, 0xd9843114, 0x280e3452, + 0x37363736, 0x30353035, 0x10cf4231, 0x69011f21, 0x07260f16, 0x1a2ca001, 0x1e4a0119, 0x068d4a05, 0x2c1a1926, 0x140e0d01, 0x2009a143, 0x05f94830, + 0x1b121222, 0x84077342, 0x830c8bd2, 0x1f3134de, 0x3f362d2d, 0x1e1d3332, 0x1d1e0101, 0x353f3233, 0x451f2d2e, 0x30250576, 0x0f01010f, 0x83058530, + 0x0140225b, 0x183d8f8f, 0x6810c445, 0x0b2f0b5f, 0x22001000, 0x54003d00, 0x00005d00, 0x43021f13, 0x172507a5, 0x23153327, 0x066e5917, 0xfc432720, + 0x07062305, 0x5a180727, 0x16261571, 0x13171617, 0x06830706, 0x04833320, 0x27053079, 0x26272623, 0x23270727, 0x3105967f, 0x5c604f64, 0x36523f30, + 0x23010236, 0x335320e9, 0xba832320, 0x867c8321, 0x30222213, 0x11b34b6d, 0x20053d41, 0x23288210, 0x20140e0d, 0x8706e848, 0x602a220a, 0x38118316, + 0x4f2f0176, 0x01225d60, 0x52363602, 0x208f303f, 0x0f012020, 0x7c010f40, 0x21118623, 0x8341c02f, 0x2222240c, 0x8648393a, 0xbc861b69, 0x830f2007, + 0x0e142447, 0x8201010d, 0x60e02109, 0x00383f84, 0xff0f0002, 0x013002c0, 0x001f00c0, 0x0100003e, 0x21232627, 0x06010f22, 0x1623ea82, 0x18373633, + 0x3007b345, 0x37321716, 0x27363736, 0x23063107, 0x21152722, 0x22068335, 0x52272631, 0x212005fb, 0x3905fb66, 0x24020706, 0xfe10083a, 0x3a08109c, + 0x2a100f15, 0x19290606, 0x19282918, 0x03822819, 0x06062935, 0x150f102a, 0x12090830, 0x11c0fe11, 0x06080813, 0x64120106, 0x0b82071c, 0x0d5b582c, + 0x25255b0d, 0x01010825, 0x03891c1c, 0x12820820, 0x05019729, 0x01058585, 0x4b830101, 0x402308fe, 0x42010183, 0x802009eb, 0x1428bf82, 0x33002700, + 0x21130000, 0xe173a982, 0x06212105, 0x2106f873, 0x50181733, 0x3d280a46, 0x23152301, 0x11212335, 0x35079563, 0x02252311, 0x0b0a1036, 0x1a0e4c06, + 0x0e1a74fe, 0x0a0b064c, 0x5e651b10, 0xc0402d08, 0x09c00140, 0x090e0e09, 0x00014009, 0x0b241a82, 0x01147209, 0x092f2f1b, 0x49145021, 0x50240685, + 0xffa0a0a0, 0x8706b568, 0x0000279b, 0x80010002, 0x9b821300, 0xd3583b20, 0x21232c0f, 0x35262722, 0x31373417, 0x5c213336, 0x05200c08, 0x23cba919, + 0xce584020, 0x80fe210a, 0x01219d82, 0x84118280, 0x18198709, 0x4e07ca4a, 0x0d4e0600, 0x370c8b0c, 0x06000000, 0xd0ff1000, 0xb001f001, 0xa3001a00, + 0xad00a800, 0xb700b200, 0x1c9b4a18, 0x37170329, 0x0f161736, 0x5c371701, 0x0d8605dc, 0x06071624, 0x3419012f, 0x29870e00, 0x06271b85, 0x013f2627, + 0x99170727, 0xa8b3180d, 0x3637220e, 0xb6b3181f, 0x8a0d840a, 0x82172079, 0x0727216c, 0x0f252183, 0x2f371702, 0x2d0e8202, 0x36430001, 0x01202036, + 0x36202001, 0x0b8b4336, 0x15151530, 0x0a0a0b0b, 0x10212d14, 0x0b0b0a0a, 0x0d830911, 0x0b850820, 0x852d2121, 0x8314201b, 0x2d152319, 0x1b831121, + 0x83081021, 0x8509200d, 0x2d21210b, 0x43c21b85, 0x822d1821, 0x82442000, 0x172d2103, 0x30200488, 0xbb86af91, 0xe414a321, 0x211c4194, 0xb6926f20, + 0x0003003b, 0x02e0ff00, 0x00a00100, 0x00390008, 0x1300005c, 0x26353315, 0x0f062327, 0x0a2c4f01, 0x1f323328, 0x011d1601, 0x8e6a3523, 0x270a8f06, + 0x3b36013f, 0x33350301, 0x09c3b318, 0x1e750a8c, 0x8e971908, 0x141c2410, 0x580e340e, 0x0687065a, 0x14221182, 0x148e801c, 0x12120124, 0x934dfe1b, + 0x19682005, 0x8310a897, 0x104c2131, 0x20051543, 0x20078710, 0x225a834c, 0x8f50e0fe, 0x46502017, 0x0024077d, 0xff000001, 0x2005b75c, 0x18f78233, + 0x840bf147, 0x05ab71ef, 0x012f0623, 0x08ef4a15, 0x4f6b3520, 0x37262205, 0x3af18436, 0x09050cd4, 0x21211819, 0x040a1918, 0x1b220d0c, 0x01010a7f, + 0x0c093809, 0x83340a0d, 0x83c020af, 0x0b332369, 0x13820d0c, 0x0b01012b, 0x0d221b7e, 0x0c01c001, 0x058b721e, 0x010c1e29, 0x0e096916, 0x82400a0d, + 0x2b082235, 0x249687fa, 0x01082bfa, 0x26148201, 0x69090e0d, 0x83030016, 0x3f0129a3, 0x1100c001, 0x5f004d00, 0x139b4018, 0x23060726, 0x07152231, + 0x18055362, 0x5f087d54, 0x0220059a, 0x2506e154, 0x2f26012f, 0x54180701, 0x3f260dcb, 0x16370701, 0x3884011f, 0x2305a853, 0x0001013f, 0x080f7564, + 0x01018149, 0x091a0801, 0x0b0c0403, 0x05060d0d, 0x33130204, 0x22231f08, 0x0f0e1b1b, 0x04040c15, 0x0c0c0705, 0x07101b0c, 0x08321409, 0x07031703, + 0x0b0e0d06, 0x4716040a, 0x39100816, 0x28040319, 0x3d07040e, 0x0a0d0d0a, 0x4c3c0909, 0x75450900, 0x01972a07, 0x1a0c0301, 0x06050d08, 0x295e8304, + 0x03183508, 0x1f13120e, 0x54830a25, 0x0e285c83, 0x41171008, 0x5c0c0936, 0x0866d918, 0x211a4e2e, 0x043ec740, 0x09242d04, 0x09093e07, 0x3b205a83, + 0x0d97b118, 0x35002322, 0x2911a552, 0x26272635, 0x27262127, 0x62463736, 0x26272405, 0x69012123, 0xfd4f1a05, 0x0f902609, 0x010f0101, 0x055c4270, + 0x4580fe21, 0x9f520d96, 0x1be0230f, 0x2e821212, 0x355e0f20, 0x18fe2006, 0x4a0c909c, 0x002a06df, 0x1a00c001, 0x49003000, 0x976f6100, 0x0605291c, + 0x37163117, 0x17323336, 0x8e630582, 0x06072205, 0x06fa6807, 0x9d4f3520, 0x07263905, 0x06011f06, 0x16171607, 0x27343733, 0x26273637, 0x1706010f, + 0x14013f16, 0x6f078943, 0xfe361aa5, 0x070703a1, 0x2828220a, 0x07070a22, 0x19190d03, 0x19192020, 0xe9820f0d, 0x060e0b2c, 0x0e600e04, 0x1f0d0306, + 0xcb820109, 0x09c00d34, 0x06040e1e, 0x030d600e, 0x090c0e06, 0x090d0e09, 0xb16f0109, 0x0a7e2c18, 0x0f030505, 0x0505030f, 0x82111c0a, 0x6e1c2100, + 0x023a3182, 0x0e040302, 0x0320060e, 0x0a060e0d, 0x090e0e09, 0x090e2009, 0x0d0e060a, 0x04832003, 0x03020422, 0x41056141, 0x13250dcb, 0x00003600, + 0x12c55d13, 0x13871120, 0x73023b21, 0x0566092a, 0x11232308, 0x1b541121, 0x74012006, 0xfe200684, 0x2007485c, 0x07285440, 0x11864020, 0x0140fe22, + 0x550c5e55, 0x6d180785, 0x8944086c, 0x20012b06, 0x0000e0fe, 0xff000009, 0x018201c0, 0x00200031, 0x003b002d, 0x00470041, 0x005f0059, 0x82730065, + 0x37362fa9, 0x21373631, 0x16173233, 0x07141115, 0x23642306, 0x012b3807, 0x26272621, 0x14131127, 0x33163117, 0x22213521, 0x37150607, 0x82062706, + 0x27262914, 0x06070633, 0x37363707, 0x35290782, 0x26231716, 0x27261727, 0x09795f31, 0x1a823620, 0x16330722, 0x37231482, 0x83373623, 0x36172329, + 0x01821617, 0x36220d82, 0xcf830037, 0x56180120, 0x44410723, 0x2ba98205, 0x011b1b29, 0x0e090940, 0x00ff0001, 0xb73a1482, 0x05020205, 0x020a0606, + 0x060a033f, 0x030b2a05, 0x2424091f, 0x0b031f09, 0x4018014e, 0xdf200ec0, 0x19821482, 0x0b221f82, 0x35893903, 0x06060924, 0x54836001, 0xfe215382, + 0x6d5182c0, 0x7d84069b, 0x11884020, 0x01058437, 0x0d060501, 0x16232316, 0x1c0a060d, 0xa4172b26, 0x1c262b17, 0xe84a1852, 0x26102a0f, 0x202b171c, + 0x261c172b, 0x72318b4c, 0x012b06bb, 0x00bf0180, 0x005a0048, 0x548a0072, 0x162605ff, 0x1f323733, 0x02821601, 0x14071522, 0x0f250582, 0x17150601, + 0x82058214, 0x27232202, 0x25058222, 0x2326012f, 0x05822207, 0x35220282, 0x05823437, 0x36013f23, 0x07826735, 0x32173324, 0x5641013f, 0x37052811, + 0x16171532, 0x82303733, 0x07172105, 0x29065655, 0x17372627, 0x013f3627, 0x34833134, 0x48333421, 0x220807ec, 0xae272623, 0x09121212, 0x0a16150b, + 0x1409050a, 0x0c060212, 0x060c0b0b, 0x09131302, 0x150a0a05, 0x82090b16, 0x241f881e, 0x06021313, 0x8700820b, 0x1516211f, 0x62201f82, 0x080ffc7f, + 0x2bf1fe2c, 0x29150901, 0x08081216, 0x090a0425, 0x09382105, 0xf8030506, 0x12080825, 0x09152916, 0x05032b01, 0x21380906, 0x040a0905, 0x4d8fba01, + 0xba208daf, 0x080fb85d, 0x0167fa22, 0x01022413, 0x5903050b, 0x08010109, 0x07010831, 0x593c0808, 0x010b0503, 0x01132402, 0x07080867, 0x07251582, + 0x02000901, 0x29008200, 0x80014002, 0x2f001600, 0x4c4e0000, 0x22212305, 0x0f50010f, 0x36212606, 0x11373637, 0xe4bf1805, 0x35398217, 0xfe1b1212, + 0x97131acd, 0x13970909, 0x1b33011a, 0xfe011212, 0x011911cf, 0x1f831853, 0x0a961328, 0x960a0d0d, 0x3b820113, 0x2f000122, 0x18e4bf18, 0x37420020, + 0x02e03305, 0x00a00180, 0x006c0004, 0x00760071, 0x33350100, 0x074f2315, 0x23152105, 0x250b4e43, 0x06070633, 0x5d182307, 0xba830992, 0x27263525, + 0x83232726, 0x17162209, 0x054c4e33, 0x26832194, 0x17163322, 0x82078350, 0x20398547, 0x216b8203, 0x71830535, 0x3028012b, 0x0e140830, 0x1276010d, + 0x83c48328, 0x122827bc, 0x1b1c2d43, 0x16830504, 0x0e0d0122, 0x09216518, 0x1d05032e, 0x1a0e2d1c, 0x2d0e1a40, 0x03051d1c, 0x04251f90, 0x2c1c1b05, + 0x20488b42, 0x243f8476, 0x013030c8, 0x230382a0, 0x68303038, 0x04211083, 0x08577b22, 0x1e220225, 0x8c392e2f, 0x83402065, 0x27332b57, 0x01141427, + 0x27141401, 0x1d913327, 0x2f2e3923, 0x20438b1e, 0x22328304, 0x8330a8fe, 0x82002000, 0x00022f00, 0x01c0ff20, 0x00c001e0, 0x0045000c, 0x96183700, + 0x352708c6, 0x15371523, 0x4c161714, 0x0220064a, 0x2105194c, 0x20821716, 0x22012b27, 0x36272627, 0x20018237, 0x210a833d, 0x64183435, 0x23380a48, + 0x1a2302c0, 0x1a10de10, 0x80400223, 0x270e1108, 0x110e0e07, 0x0e181811, 0x07310582, 0x01011a2b, 0xe81c101f, 0x011f101c, 0x28181701, 0x05d74408, + 0x08a49318, 0x162def2f, 0x111b1b11, 0x91902e16, 0x06089191, 0x253d820a, 0x0e0e1111, 0x05831818, 0x2c2b0730, 0x152f3c37, 0x333c2f15, 0x061a2a2a, + 0xad669108, 0x4900200d, 0x80200653, 0x122bcb82, 0x33002a00, 0x27130000, 0x41270723, 0xa26305ee, 0x0f232205, 0x055d5101, 0x09cb6018, 0x82363321, + 0x213521c7, 0x085fe518, 0x8220c021, 0x05de5900, 0x0d018026, 0x2070140e, 0x5405905f, 0x4029070e, 0x0112121b, 0x0fc080fe, 0x05af5701, 0x40800124, + 0x28834040, 0x14d0d028, 0x40010d0e, 0x208320e0, 0x8309134f, 0xb0202137, 0x0f232b85, 0x46040001, 0x2c210867, 0x051b5900, 0x16130026, 0x17163117, + 0x18065846, 0x20097c69, 0xd25c1823, 0x2722250a, 0x35113526, 0x0735a983, 0x16171415, 0x37322133, 0x34013d36, 0x21232627, 0x15060722, 0x10cb6d13, + 0x49712082, 0x60e0270e, 0x09023f3f, 0x20190e09, 0x0224111e, 0xa0603f3f, 0x59181682, 0x5d4b0c48, 0x059f4106, 0x270efc6d, 0x171601c0, 0xc0fe1022, + 0x2005ec47, 0x463a8209, 0x202007a6, 0x01270b82, 0x17221040, 0x67800116, 0x068606d5, 0x41f0fe21, 0xb9410bad, 0x0001300d, 0x01c0ff0f, 0x00c001f0, + 0x01000056, 0x83161732, 0x83072001, 0x5f0382ed, 0x062106c9, 0x26158207, 0x06071415, 0x45270607, 0x4f5705b8, 0x2a0e8205, 0x06013f26, 0x26272627, + 0x51373435, 0x0b8205fd, 0x49473720, 0x17162205, 0x08138226, 0x36373662, 0x08000133, 0x0e0d0d05, 0x11010b0a, 0x1d1e1f13, 0x06060816, 0x0b0b0401, + 0x2b120e11, 0x19080818, 0x08221f2d, 0x0a080702, 0x1616023a, 0x080a3a02, 0x22080207, 0x08192d1f, 0x122b1808, 0x0b0b110e, 0x06060104, 0x1e1d1608, + 0x0111131f, 0x0d0e0a0b, 0x0108050d, 0x1c1207c0, 0x2c28221d, 0x0a120a0d, 0x37082082, 0x15080705, 0x18201d1e, 0x050e0b16, 0x0f040a09, 0x2103080b, + 0x0506070a, 0x0216471d, 0x1d471602, 0x0a060604, 0x0b080321, 0x0909050f, 0x160b0e05, 0x1e1d2018, 0x05070815, 0x40828682, 0x282c0d27, 0x121c1d22, + 0x07934307, 0xe001e035, 0x1900a001, 0x00003300, 0x31353601, 0x23262734, 0x83010f22, 0x0aa95505, 0x19961720, 0x01013723, 0x05434b77, 0x4b398921, + 0x502005a4, 0xa0210683, 0x21148560, 0x148569e9, 0x06838020, 0x01000122, 0x8a210e86, 0x231e853a, 0xa0090950, 0x09231a84, 0x186aea09, 0x2208a1da, + 0x70000001, 0x1f220963, 0xc1543900, 0x0722230b, 0x63450706, 0x17162206, 0x2f0c8206, 0x16372726, 0x37362533, 0x16171621, 0x3315010f, 0x2b2c1583, + 0x36272601, 0x27353337, 0xb0013726, 0x2707085e, 0x0d15161b, 0x24241035, 0x08d5a918, 0x23212a36, 0x52fe1612, 0x70011006, 0x0b060610, 0x021640b1, + 0x58581602, 0x40240583, 0xd0060bb1, 0x3d07e549, 0x2b160d0d, 0x02011a1a, 0x3d3d2928, 0x01022829, 0x61092414, 0x0e01010e, 0x76b10c0e, 0x2e831602, + 0x76021626, 0x000e0cb1, 0x02200082, 0x012e0485, 0x00170080, 0x13000022, 0x17160706, 0xbc4e1533, 0x05847d08, 0x03012b22, 0x21261783, 0x27263736, + 0x4083d821, 0x3856102b, 0xc0010238, 0x56383802, 0x220f8310, 0x83c02828, 0xd0012106, 0xfe230583, 0x83800130, 0x0b212967, 0x59593d3e, 0x210b3e3d, + 0xfe200d83, 0x20080f78, 0x30008200, 0xff100004, 0x01ef01d0, 0x001e00b0, 0x00420030, 0x207b8254, 0x05db4826, 0x8205f348, 0x013f2205, 0x48028236, + 0x2f2005de, 0x125b5918, 0x49181520, 0x6f18104f, 0xf72f113b, 0x1e4a1e22, 0x060f2410, 0x3c19060e, 0x8e532219, 0x5227200e, 0x79430b56, 0x0cfc740b, + 0x05af0130, 0x1f102810, 0x52221f4c, 0x173b1822, 0x0e860c05, 0x22532128, 0x05183a18, 0x9d18bf0c, 0xcc43186d, 0x2bf3890c, 0x00370025, 0x005b0049, + 0x27260100, 0x2720f595, 0x03881882, 0xa311ab78, 0x020123fa, 0xee8e0902, 0x022c0e87, 0x1c1c2708, 0x2a0c030a, 0x31071d1d, 0x22250241, 0x410209a4, + 0x092c1604, 0x1a1b0602, 0x07030c26, 0xb4291d1d, 0x20250941, 0x062f4300, 0xc0010026, 0x3b001d00, 0x0b7f6818, 0xf9720120, 0x11013408, 0x17161716, + 0x11233533, 0x31171401, 0x37323316, 0x83013d36, 0x34352e05, 0x012b2627, 0x26272611, 0x33152327, 0x06ab4c11, 0x2806fc4c, 0x12120120, 0x01e0e01b, + 0x8e898500, 0x06d64115, 0x2806cd76, 0x121b00ff, 0x01400112, 0x07294d60, 0x01201786, 0xfe251785, 0x090000a0, 0x35008200, 0x80018002, 0x2a001500, + 0x40003500, 0x52004900, 0x64005b00, 0x714f6d00, 0x20928411, 0x88631821, 0x1822200b, 0x6607a95f, 0x21210a5b, 0x3d461936, 0x18252008, 0x210f9e90, + 0x1199011f, 0x20083747, 0x839e8402, 0x00fe22e7, 0x06ae7320, 0x20290686, 0x00010f01, 0x0f01010f, 0x200583ff, 0x06a06640, 0x010fa023, 0x089060fe, + 0x90185020, 0x11911031, 0x20157965, 0x0da26a40, 0xe647f020, 0x20078707, 0x79901830, 0x87102019, 0x47102023, 0xb37f08ed, 0x0045220f, 0x1cbf555e, + 0x1103ce18, 0x794b0320, 0x97332017, 0x00012118, 0x5917cd58, 0x9b2c0f9e, 0x25250b0b, 0x0a0a0b0b, 0x0a0a2424, 0xc0200b8b, 0x60181897, 0x6020186b, + 0x0fae5f18, 0x911b0121, 0x85559756, 0x06bf4917, 0x01000236, 0x004000c0, 0x0061004f, 0x07140100, 0x27070617, 0x16070139, 0x21061f5c, 0xf8521736, + 0x22073106, 0x0f060727, 0x26270601, 0x3f34013d, 0x26272601, 0x08489518, 0x50263721, 0x1325083a, 0x16173736, 0x2646821d, 0x26012f06, 0x4903012f, + 0x32081027, 0x35096001, 0x44343424, 0x2d362420, 0x0c091f2d, 0x020a0b0d, 0x3a280801, 0x3035453a, 0x380c0838, 0x07080708, 0x0810143c, 0x0b0a0201, + 0x09090c0d, 0x46094609, 0x15240781, 0x062c2831, 0x38241f82, 0x7528080c, 0x2c0b5f44, 0x12166001, 0x590f275b, 0x16170a76, 0x834e8327, 0x1d323256, + 0x6212011c, 0x041b070c, 0x37090504, 0x11680b0d, 0x84508314, 0x78092258, 0xe5631812, 0xd6fe3108, 0x0b4c2114, 0x0509370d, 0x071b0404, 0x0a01460c, + 0x3e0c5e45, 0x20000200, 0x2002e0ff, 0x2a009f01, 0x00004b00, 0x26273601, 0x2326010f, 0x07060722, 0x82171615, 0x171621f8, 0x36210788, 0x820f8537, + 0x27262207, 0x06415237, 0x19055c49, 0x3c0b3c9c, 0x37363726, 0x17323336, 0x0a111502, 0x3469130e, 0x48486d3e, 0x02450303, 0x32021616, 0x2105833e, + 0x0583323e, 0x03034526, 0x40c2444c, 0x31082383, 0x1c12166f, 0x01010908, 0x3d1f0808, 0x1f3d6565, 0x01010808, 0x3c1c0809, 0x01181b68, 0x11130e74, + 0x1a09450a, 0x30a03b1b, 0x0216671f, 0x0e771602, 0x07836803, 0x0e036823, 0x28078377, 0xa0301f67, 0x462d1a3d, 0x3329832a, 0x0b070549, 0x01080b0b, + 0x1b0f0a0a, 0x0f1b0101, 0x08010a0a, 0x17211082, 0x07fb7d02, 0x0140022b, 0x001300a0, 0x00350027, 0x08dd7648, 0x0615172a, 0x22230607, 0x35272627, + 0x3725bb82, 0x31273617, 0x490c8226, 0x1183051a, 0x07273623, 0x29138226, 0x06072223, 0x32331607, 0x2f822737, 0x17060724, 0xfe831706, 0x35363727, + 0x37012f34, 0x08044c06, 0x26273422, 0x01292982, 0x51527a20, 0x52510303, 0x0807877a, 0x0b01f020, 0x261c220b, 0x0a120b1c, 0x0b22202d, 0x06b3010b, + 0x16161011, 0x1d061110, 0xb41d2020, 0x13831c26, 0x20262383, 0x0b120a2d, 0x3f19381c, 0x340809d7, 0x1e21211e, 0x2101a001, 0x3dc03c22, 0x21222221, + 0x223cc03d, 0x08800121, 0x0c0f0e0d, 0x15122b07, 0x080b141b, 0x0d0e0f0d, 0x0c144d08, 0x140c0d0d, 0x07920303, 0x200f830c, 0x2a218208, 0x140b080d, + 0x2b12151b, 0x43070608, 0x072507b2, 0x00030306, 0x08937801, 0x78003f21, 0x8e180793, 0x23200935, 0x25078a78, 0x26273637, 0x0d89012b, 0x336e0f83, + 0x23058305, 0x013f1617, 0x380b9d78, 0x220d0b4b, 0x09343030, 0x100b0403, 0x62060108, 0x06070305, 0x09040404, 0x260c8227, 0x16030751, 0x82030b0b, + 0x2b102de1, 0x3f3e3e3d, 0x0b0a3a2f, 0xa50c060d, 0x3609aa78, 0x0a04074b, 0x07210405, 0x01010908, 0x1d020708, 0x0a0a0402, 0x83080708, 0x0318370b, + 0x35343807, 0x0b0b1026, 0x0e0e0301, 0x3d2e1b1c, 0x0d2a3c3d, 0xb378a409, 0x19052005, 0x230c6b4a, 0x00310026, 0x13a3b018, 0x25051a71, 0x33153323, + 0xc36c0727, 0x054f4a09, 0x3624ef82, 0x07061737, 0x33210784, 0x25d58236, 0x011f1637, 0x04823336, 0x222c2a85, 0x2326012f, 0x06010f22, 0x012f2623, + 0x200aa468, 0xba8a1800, 0x40b0210b, 0x88095d61, 0x0b362309, 0x0c830823, 0x040c082e, 0x1313070e, 0x0f0c0b07, 0x36040d19, 0x0a2c1f84, 0x06030904, + 0x05090306, 0x11030b0a, 0x18894b19, 0xde184020, 0xfe221092, 0x13840220, 0x12320a2a, 0x27120101, 0x0916010a, 0x09290f83, 0x11060611, 0x380a0109, + 0x06ff4421, 0x01800127, 0x001700c0, 0xa949181b, 0x09fd7d0a, 0x200b0f41, 0x05dc5b15, 0xe5820620, 0x1f363722, 0x47056b72, 0xdd47083e, 0x0e803d05, + 0xc0a00909, 0x1f288080, 0x0e0e1111, 0x48111148, 0x11110e0e, 0x1616021f, 0x01c00102, 0x82097959, 0x20012a09, 0x800e0909, 0x66e88080, 0x8223831f, + 0x282e8228, 0x661f0e0e, 0x16020216, 0x249b8300, 0x02c0ff20, 0x209b8260, 0x2099821e, 0x087f6934, 0x17141525, 0x64013b16, 0x534b0747, 0x01112508, + 0x26273335, 0x16219783, 0x0552780f, 0x23352325, 0x83201735, 0x83a02074, 0x83a82069, 0x18a82057, 0x220acb94, 0x83276e80, 0x0e502378, 0xac83500e, + 0x806e2725, 0x41800180, 0x802007a9, 0x7020b283, 0x24089c6d, 0x30f0fe80, 0x82258327, 0x2530822a, 0xd0271111, 0x3f418080, 0x00022506, 0x2800c001, + 0x7268a392, 0x33352509, 0x16170607, 0x2705764b, 0x011f0607, 0x011d3523, 0x20054542, 0x20a38225, 0x89a38880, 0x8dae209d, 0x44ae209b, 0x012105cf, + 0x20a38b80, 0x052458fe, 0x1b121223, 0x229b8d70, 0x8330e0e0, 0x83a020be, 0x070021a2, 0x2410f742, 0x004b0046, 0x12674956, 0x2121fb42, 0xdc463233, + 0x012b2106, 0x24088349, 0x3533011d, 0x0a336f23, 0x42161142, 0x102014f6, 0x87065357, 0x90c02106, 0x1af9b418, 0x42062f42, 0x602011e8, 0x220d4149, + 0x70404020, 0xbf6d080c, 0x08e34207, 0x31002622, 0x65094f75, 0xfb8b0afb, 0x2009494a, 0x240a8915, 0x15171617, 0x55691816, 0x15062808, 0x17161706, + 0x18300239, 0x25100976, 0x26272631, 0x1c823637, 0x0339302f, 0x17161532, 0x35363732, 0x2f262734, 0x21188301, 0xf76f3627, 0x16234105, 0x8265c020, + 0x08098909, 0x010f8038, 0x030e0b0d, 0x0f110e05, 0x01080a0e, 0x12130b08, 0x01021512, 0x010d0c16, 0x11010f0f, 0x0e03030e, 0x040e0604, 0x10130103, + 0x0808090f, 0x1201130a, 0x02031411, 0x1f820b16, 0x20177343, 0x07384a50, 0x08874020, 0x0f014827, 0x05030211, 0x2f68820f, 0x05080406, 0x05050605, + 0x1d1b0b0a, 0x1102070d, 0x12312283, 0x01010603, 0x030d0e06, 0x07010101, 0x09050501, 0x22218207, 0x82090401, 0x840b2022, 0x06774a22, 0x22086741, + 0x424f0047, 0x16242161, 0x06071417, 0x600e2560, 0x26230517, 0x69313027, 0x3d29059c, 0x17373601, 0x27263736, 0x86531923, 0x48983718, 0x01111119, + 0x2b110a0b, 0x0b0e0e22, 0x0c20200c, 0x220f0e0b, 0x0b820f22, 0x0141212b, 0x12021401, 0x12020212, 0x21048348, 0x12413434, 0x01c43617, 0x13191111, + 0x28070f0f, 0x0f0c0b1f, 0x0e1d1d0e, 0x200b0c0f, 0x240b8320, 0x01023c1e, 0x243d832c, 0x02125040, 0x204d8350, 0x77601828, 0x01402a08, 0x004a00c0, + 0x005c004e, 0x28ef916a, 0x010f0635, 0x2b220706, 0x0d184601, 0x26154146, 0x36013f26, 0x4235013f, 0x05200a88, 0x1a706118, 0x270e4142, 0x053c0404, + 0x40010204, 0x460d2b46, 0x09261454, 0x050f0305, 0x90185f0c, 0x2620088b, 0x17956118, 0x250f2941, 0x0f010113, 0x3e460101, 0x115e4609, 0x3c0f0d26, + 0x2c5e0d11, 0x2005d745, 0xb361188c, 0x4403201a, 0x50180c93, 0x77460921, 0x06032514, 0x35272607, 0x20057653, 0x06fa7d36, 0xff8e1520, 0x23087746, + 0x02161602, 0x8f0d7b46, 0x077746c6, 0x1668fe25, 0x46160202, 0x00310f7c, 0x22000200, 0x0f02c2ff, 0x2000c001, 0x00003600, 0x53851813, 0x0db16809, + 0x2006eb47, 0x21918227, 0xe0493233, 0x269e8306, 0x3621010f, 0x5277013f, 0x523405f0, 0x751d1d5c, 0x1e26261e, 0x971515be, 0x161d1d16, 0x31515135, + 0x322e1a85, 0x97060635, 0xfe2a0505, 0x5c0602c1, 0xf652b701, 0x5c512105, 0x75232c83, 0x83be1d1d, 0x1597262c, 0xac523515, 0x321a8532, 0x05053531, + 0x2a060697, 0x005c0708, 0xff020003, 0x864002c0, 0x004c2ca3, 0x33361300, 0x011f3231, 0x82333637, 0x15162605, 0x06010f14, 0x07936d23, 0x3526272c, + 0x27173734, 0x21070607, 0xb5823637, 0x17010f22, 0x07202182, 0x27202082, 0x20057c59, 0x068e4b36, 0x20075d71, 0x21a08329, 0x81863551, 0x9186be20, + 0x09525c2b, 0x5c31b009, 0x3f010206, 0x2089842a, 0x21988635, 0x26472701, 0x0f112d05, 0x05080805, 0x0112110f, 0x1b121201, 0x5221d183, 0x20f58635, + 0x060541be, 0x83515c21, 0x32de255a, 0x2a08075c, 0x3520fd84, 0x21060c41, 0x3383e7fe, 0x20201529, 0x18070718, 0x83152020, 0x00002951, 0x00000800, + 0x0002c1ff, 0x1d2fe782, 0x5f002c00, 0xeb008d00, 0x14010c01, 0x7d002101, 0x32210631, 0x23b48217, 0x26273637, 0x2f061f7d, 0x16150706, 0x35373617, + 0x06072625, 0x011d1617, 0x34240c84, 0x33362527, 0x173b2782, 0x07060714, 0x07011d06, 0x17140239, 0x16273732, 0x39233217, 0x30013d03, 0x18353635, + 0x2007f65c, 0x20378322, 0x6a2d1937, 0x0706260a, 0x39143114, 0x834d8203, 0x23162b30, 0x35033930, 0x34373431, 0x01823637, 0x17373425, 0x54311716, + 0x06240581, 0x15310615, 0x33212887, 0x25598216, 0x30353037, 0x5c853435, 0x08906a18, 0x07238182, 0x84141506, 0x88012055, 0x02392355, 0x84843135, + 0x07855482, 0x27261722, 0x0f227a82, 0x238a3101, 0x32013d23, 0x2a788535, 0x30073736, 0x31300139, 0x84310737, 0x14072250, 0x317d8231, 0x3b023037, + 0x2c34583b, 0x130e1d2c, 0x36230c11, 0x984f4135, 0x16022a05, 0xcb010216, 0x03151607, 0x2a0a8304, 0x10e3fe05, 0x26253812, 0x82010401, 0x16152500, + 0x04111805, 0x023f0a82, 0x33020401, 0x16184d32, 0x16070415, 0x13110b4a, 0x01011f0f, 0x01020307, 0x16140401, 0x84101708, 0x03022f23, 0x6c180108, + 0x010f1018, 0x01030401, 0x4f820101, 0x0e170524, 0x25820605, 0x0502022a, 0x1d1e0101, 0x1d1e2c2c, 0x1121378b, 0x22668403, 0x82050303, 0x100f2323, + 0x32821818, 0x18060228, 0x0b151307, 0x1b861016, 0x0f060529, 0x1e1e3602, 0x83060504, 0xc0182f24, 0x023b3b58, 0x11281717, 0x31130e0c, 0x586a1c1c, + 0x16082c06, 0x08160202, 0x06031535, 0x85161516, 0x1a1b320c, 0x2601044b, 0x25313825, 0x02060a12, 0x05160102, 0x2caf8315, 0x04030102, 0x3327130b, + 0x0233324d, 0x2cf68206, 0x0e133404, 0x3a2d110b, 0x0910212f, 0x24858204, 0x14040816, 0x82ac8207, 0x050329bf, 0x3424120a, 0x0114212b, 0x48239a82, + 0x840b142a, 0x01062246, 0x28dd8415, 0x02020101, 0x2c160c04, 0x26d3844a, 0x462c1e1d, 0x820a1326, 0x89388267, 0x03022d43, 0x1d140b05, 0x1815132f, + 0x38010f10, 0x4429a483, 0x0b156b2f, 0x070a1307, 0x826c8201, 0x0421082b, 0x3b1e0f07, 0x8b8b737a, 0x0d1b1721, 0x01010306, 0x00006c01, 0x00000002, + 0x01400210, 0x002b0070, 0xbf9c183d, 0x052f4f0b, 0x6a05d641, 0x262105a2, 0x05fd4427, 0x37262727, 0x36011f36, 0x104e7637, 0x1db5352b, 0x30302727, + 0x1d1e2727, 0x25798214, 0x14150b07, 0x11851e1d, 0x12191d23, 0x72011b5a, 0x125a2309, 0x11190119, 0x01330cc2, 0x11121a32, 0x12110101, 0x1a1b191a, + 0x150f0f15, 0x86191b1a, 0x15192911, 0x0f0a3517, 0x50501512, 0x35233f83, 0x50721417, 0x00230b73, 0x71000006, 0x1a210667, 0x05795500, 0x5b005222, + 0x741d8762, 0x2720094c, 0x18088b6c, 0x1907cd48, 0x201117ae, 0x21fc8323, 0x34823736, 0xca180887, 0xb0251a6a, 0x0f800f01, 0x21048401, 0x9d5c1f10, + 0x871f2005, 0x08012407, 0x88141401, 0x2115830d, 0xb05702f0, 0x88c02006, 0x17c25208, 0x59835584, 0x448f5820, 0x678f4820, 0x87050358, 0x16022151, + 0x2b061349, 0xc0010002, 0x2c001a00, 0x54003e00, 0x251c8b53, 0x31272203, 0x1a512726, 0x05a14505, 0x8b573720, 0x21158807, 0x23820607, 0x1809af45, + 0x2220e473, 0x63090d50, 0xbb410578, 0x19c02005, 0x200d5eab, 0x0baf63ba, 0x63070321, 0x725305c3, 0x10012118, 0x780b1952, 0xaf200c06, 0x6309a363, + 0x002105b3, 0x05bb5900, 0x212bfb83, 0x00002600, 0x06070613, 0x5615011f, 0x70180887, 0x37300a26, 0x27262736, 0x21271721, 0x15202307, 0xd70e0709, + 0x19064f63, 0x3207e604, 0x070ed740, 0x40fe1509, 0x2601408d, 0xc001a640, 0x1a131301, 0x2314ad42, 0x00404080, 0x4e22778b, 0x77826900, 0x1d16172e, + 0x16171401, 0x1f36013f, 0x32331601, 0x17210785, 0x06e86106, 0x07822220, 0x16011d2b, 0x33171617, 0x14151716, 0x22218517, 0x8234013d, 0x34372127, + 0x2106e94e, 0x3b823716, 0xa4822620, 0x05072224, 0x46700706, 0x220e8305, 0x18362726, 0x080ab9ed, 0x040ab245, 0x0e0a0c04, 0x050f0c08, 0x04070a06, + 0x0c1d0605, 0x24100101, 0x05200b0b, 0x27090b05, 0x0e0d0110, 0x010f2014, 0x100e0909, 0x060d190a, 0x08011306, 0x09060621, 0x0b140f0c, 0x131b0d06, + 0x2a493636, 0x6d4e0124, 0x812d18c0, 0x29090712, 0x0b0a0406, 0x07050911, 0x085f8203, 0x060f0336, 0x0905110e, 0x020a0403, 0x140c1e06, 0x0d0e141c, + 0x300f0101, 0x0d09090e, 0x0c151122, 0x06010207, 0x21080b14, 0x03080707, 0x0b120505, 0x2a430502, 0xc10f012a, 0x2017e842, 0x20008200, 0x08d34303, + 0x49003b30, 0x00006400, 0x1f161737, 0x15171601, 0x1d411716, 0x36372305, 0x0283013f, 0x34353725, 0x4a26012f, 0x272105d8, 0x05534126, 0x82363721, + 0x2a0a8212, 0x2322012f, 0x07060706, 0x82272605, 0x82062005, 0x011f243f, 0x41333536, 0x2f081938, 0x190d093a, 0x01021b3a, 0x09010f0f, 0x08190c09, + 0x08180702, 0x040e0117, 0x112b140e, 0x0207220f, 0x0a060f05, 0x080e170b, 0x0f0e0807, 0x0a0e100f, 0x4732ce82, 0x01153535, 0x1a190196, 0x0405050c, + 0x1d110610, 0x38413002, 0x10ff3a17, 0x09110717, 0x0812281d, 0x0c271208, 0x09020607, 0x0d1b0b19, 0x081c0e05, 0x08628214, 0x04140826, 0x03091007, + 0x04070405, 0x100b0c0b, 0x11131415, 0x28010414, 0x383f4028, 0x0b050a2d, 0x11320d0b, 0x0e0e0804, 0x201a3441, 0x08334106, 0x4c002b2e, 0x72006700, + 0x88007d00, 0x17370000, 0x8205f652, 0x36172afe, 0x012f3637, 0x3b363726, 0x067a5b01, 0x72064641, 0x1426055b, 0x07260517, 0x90422231, 0x210a820a, + 0x38830607, 0x1805b542, 0x831d2ff0, 0x225f8428, 0x84063707, 0x26272473, 0x6737010f, 0x4e0807be, 0x1f342736, 0x0910090d, 0x09060c0b, 0x070b1208, + 0x03060306, 0x030c0707, 0x080b0c15, 0x04081009, 0x0c110d04, 0x24211005, 0x023b3b58, 0x02970104, 0x0f030202, 0x0a02070b, 0x060a1211, 0x0e240402, + 0x06060504, 0x0f0e0f06, 0x010e1003, 0x41351139, 0xfe271764, 0x200e0391, 0x8202050f, 0x5c043304, 0x050f0e03, 0x0f0e0208, 0x0d6a0804, 0x0d061008, + 0x0482070e, 0x03069922, 0x40086f82, 0x120b0202, 0x0801010f, 0x0c140b09, 0x1101090a, 0x150e0e10, 0x040b0c0b, 0x290b0404, 0x3b3b020b, 0x05131458, + 0x04010101, 0x0f030902, 0x02030a0f, 0x0f0e0814, 0x060e0d0e, 0x06010506, 0x492e010a, 0x1788412c, 0x72875c20, 0x140e0322, 0x91828786, 0x0d06d625, + 0x82070e20, 0x080d2304, 0xa7410b00, 0x001a3408, 0x002a0022, 0x0034002f, 0x003e0039, 0x004e0046, 0x45720060, 0x37271c99, 0x06333523, 0x83230607, + 0x17322907, 0x012b1716, 0x011d3335, 0x15221482, 0x05821527, 0x27260a84, 0x36373623, 0x0b82013b, 0x26272225, 0x45153327, 0x172011bb, 0x5910df45, + 0x602f1939, 0x0d033708, 0x372f120d, 0x0d0d1208, 0x82404703, 0x84502000, 0x20168404, 0x21158408, 0xcd452837, 0x4580200d, 0xc7450deb, 0x28702f18, + 0x380b0c11, 0x110c0b28, 0x28382828, 0x05846028, 0x13821020, 0x83382821, 0x068c5113, 0x129c5518, 0x200e776a, 0x1ecf4642, 0x17363723, 0x0bf65731, + 0x16173625, 0x18373617, 0x4608fcd9, 0x174108d3, 0x0a84352b, 0x13040706, 0x33342828, 0x03142828, 0x3d090706, 0xb43c4847, 0x35350741, 0x060603c7, + 0x1b1b2d0a, 0x1b1b0101, 0x06060a2d, 0x01011203, 0xe4486912, 0x9f53180b, 0x08f34f0c, 0x5f05cf47, 0x0520065f, 0x92192574, 0x323321ff, 0x0720ff85, + 0x2d073d62, 0x15161716, 0x31272617, 0x37343526, 0x71623736, 0x19174207, 0xa7838020, 0x27271327, 0x27273232, 0x23bf8313, 0x3b45453b, 0x0c577818, + 0x0cdd5618, 0x20180342, 0x273b83c2, 0x011a1a2b, 0x2b1a1a01, 0x1221fb84, 0x0fad5b7e, 0x20114c75, 0x0a434304, 0x5e003024, 0x35438c00, 0x11ff411d, + 0x3926ff83, 0x31342301, 0x40473130, 0x05e64a05, 0x30313028, 0x02392315, 0x485b2706, 0x07142709, 0x01392706, 0x2ba83133, 0x34410220, 0x01a6262e, + 0x06040201, 0x3300820e, 0x01020406, 0x06050301, 0x180f1001, 0x01100f18, 0xa0030605, 0x06211c8e, 0x221c8705, 0x41030506, 0x59222b54, 0x65820201, + 0x01010d23, 0x2e65820d, 0x01040102, 0x151c0602, 0x15020215, 0x84061c15, 0x211d9b0e, 0x6f410500, 0x003b290a, 0x007e0050, 0x010000ac, 0x2605875a, + 0x35343734, 0x5c363330, 0x14240884, 0x27070607, 0x27058a4e, 0x17161716, 0x15163732, 0x48055c41, 0x13200ba9, 0x07213b84, 0x68208206, 0x3628057a, + 0x27072627, 0x37160139, 0x0c6fec18, 0x02393727, 0x30313433, 0x0bde4831, 0x30313029, 0x01393315, 0xa7023933, 0x3125082c, 0x0706dd01, 0x010d0e14, + 0x0a070105, 0x0606080b, 0x010f0e0c, 0xdd0f0a0a, 0x02023d4e, 0x17010106, 0x0d0e2117, 0x11524615, 0x453b8024, 0xe7423b45, 0x41a6200f, 0x06220aa0, + 0x9f410305, 0x9ba0200d, 0x42012c1c, 0x140d0e02, 0x01010a08, 0x82101010, 0x170f3556, 0x0c111018, 0x017e040c, 0x0c050528, 0x16162212, 0x362f0501, + 0x23115846, 0x1212c2fe, 0x200f2543, 0x2dc04159, 0x4c0dfc41, 0x30240d0f, 0x5f004800, 0x23333f43, 0x16311716, 0x27052c48, 0x36372627, 0x011f3637, + 0x02210584, 0x06aa5e37, 0x17421b85, 0x2e144306, 0x070eb932, 0x06110306, 0x060e410e, 0x0c040307, 0x04100e0b, 0x9b280583, 0x0b0e1004, 0x0703040c, + 0x11281984, 0x0e070603, 0x040c0c0d, 0x202b0843, 0x234783bd, 0x11030e41, 0x5d830783, 0x83100521, 0x8218206b, 0x83558260, 0x0311215d, 0x65867682, + 0x22106b45, 0x415a0045, 0x1720332b, 0x25050b53, 0x34352627, 0x0583013f, 0x17363724, 0x01531405, 0x012f2107, 0x36201784, 0x27412582, 0x59fa2f2e, + 0x07590808, 0x24030605, 0x05060324, 0x08860107, 0x085a0627, 0x05065a08, 0x2b184106, 0x0430ab31, 0x30040909, 0x07030303, 0x2b2b0305, 0x82070503, + 0x040a220a, 0x220a8704, 0x86080530, 0x4f00201e, 0x19310a73, 0x57004200, 0x82006d00, 0x00009700, 0x31333601, 0x05d45332, 0x0706072e, 0x35342722, + 0x37343736, 0x37363134, 0x06240e82, 0x16170607, 0x8505a64c, 0x05b44c0d, 0x84262721, 0x8426200d, 0x17362619, 0x32373601, 0x06314431, 0x8205c273, + 0x26252218, 0x065e5223, 0x14070622, 0x36254486, 0x1f160527, 0x200d8402, 0x050b603f, 0x68826083, 0x82161721, 0x3637270f, 0x2f232627, 0x5d843401, + 0xab012708, 0x0f14140f, 0x1a0c0e0f, 0x0109141e, 0x06010603, 0x02022d0b, 0x0e020307, 0x1e14150d, 0x0a290807, 0x53413e0b, 0x13824b54, 0x83030221, + 0x071f2213, 0x29138707, 0x141eb6fe, 0x07030901, 0x43870a07, 0x6d013008, 0x05090904, 0x3632301d, 0x2c090108, 0x23242e2e, 0xfe110909, 0x390403b6, + 0x06050305, 0x021e0306, 0x62090606, 0x05020107, 0x06031db2, 0x83610a06, 0x0403230a, 0x1d840638, 0x0eb20123, 0x3649830f, 0x0307070a, 0x12010207, + 0x0101011d, 0x07130c1a, 0x15141e08, 0x82020e0d, 0x4b022b13, 0x3e415354, 0x07290a0b, 0x13901f07, 0x0787fe29, 0x14090103, 0x870c191f, 0xc9230846, + 0x36080109, 0x051c3132, 0x11040909, 0x24230909, 0x4c2c2e2e, 0x38050103, 0x02050304, 0x09610701, 0x83020606, 0xc1052387, 0x9d820a61, 0x03210a84, + 0x201d8606, 0x10df4200, 0x6e004f22, 0x251c3b51, 0x31273607, 0xbd450726, 0x22273d0f, 0x0706020f, 0x07011f06, 0x3f161706, 0x37161701, 0x37273536, + 0x2f262736, 0x33232602, 0x14201c88, 0x4a511c91, 0x486d2019, 0x81450755, 0x05f3300b, 0x05261102, 0x1c040201, 0x04040107, 0x82222204, 0x1b072a04, + 0x05020104, 0x05021126, 0x241d84c0, 0x1b040102, 0x451c9207, 0xf2451159, 0x48512005, 0x62450576, 0x05d9370b, 0x05010522, 0x251b0305, 0x02030305, + 0x03021212, 0x1b250503, 0x14820503, 0x9b052221, 0x4300201b, 0x802e071b, 0x2d00c001, 0x67004700, 0xab007d00, 0x5341d900, 0x5e581807, 0x2627250c, + 0x36070607, 0x20056e49, 0x18198217, 0x22098d7c, 0x55062517, 0x30210550, 0x09e06b31, 0x32282983, 0x27220515, 0x30273031, 0x2406b848, 0x17323334, + 0x21018516, 0x4d821415, 0x012f0622, 0x2005a041, 0x834f8907, 0x47272037, 0x33202a2d, 0x082b8647, 0x21250221, 0x4c4c3c3c, 0x07213c3c, 0x05050c06, + 0x02030703, 0x0b140d0e, 0x46451010, 0x45466262, 0x420a1010, 0x290805d6, 0x0c040603, 0x46fe0706, 0x0a060702, 0x120f0102, 0x0e0e0e12, 0x100e0e06, + 0x01090e14, 0x010101c7, 0x0207060b, 0x0d010209, 0x17841012, 0x12120e25, 0x82045a0f, 0x483c312b, 0x07093d47, 0x28140306, 0x28343328, 0x03bd1328, + 0x470c0249, 0x1c9a0f7e, 0x26404d30, 0x26010126, 0x06044026, 0x0e0e0d0d, 0x9883131d, 0x5f03022b, 0x02023d3c, 0x035f3c3d, 0x38b88202, 0x0e1d1315, + 0x060d0e0d, 0x1b127504, 0x01010d1b, 0x0d01010c, 0x0e13130f, 0x23d98207, 0x57090204, 0x1b2f0e82, 0x0109121b, 0x05030401, 0x130e0705, 0x820d0f13, + 0x0a092124, 0x4b06b34b, 0x67200bc7, 0x473da147, 0x2b300ba3, 0x4f003d00, 0x00006800, 0x31171637, 0x3d261716, 0x2d05f465, 0x36171617, 0x16173637, + 0x15070607, 0x42180714, 0xf0630843, 0x37072105, 0x4e10e44d, 0x07241108, 0x23272635, 0x82074f64, 0x16152108, 0x373a5385, 0x30300100, 0x12250f4e, + 0x0a070603, 0x3c48473c, 0x0407060a, 0x4e0f2512, 0x41183030, 0xb0200c5c, 0x530de84d, 0x302b0ed4, 0x12021902, 0x09090305, 0x82120503, 0x0727670a, + 0x4156c029, 0x1c171b41, 0x412a1b2f, 0x2a280b36, 0x171c2f1b, 0x5641411b, 0x530ba543, 0xf02c19e7, 0x0102192d, 0x12090912, 0x2d190201, 0x41072f4c, + 0x41240d33, 0x70005700, 0x252e3341, 0x36313734, 0xab47011f, 0x3625230e, 0x12843117, 0x4705d946, 0x032006ac, 0x233e3b41, 0x07050674, 0x220abc47, + 0x47060701, 0x062507c5, 0x5a08085a, 0x403c413b, 0x03077329, 0x04300303, 0x47050809, 0x042208d3, 0x13820a04, 0xd3470720, 0xc3fe210f, 0x20154d41, + 0x0af74b00, 0x3c002b2c, 0x67004e00, 0x00007000, 0x1e562617, 0x06b94406, 0x2905eb4b, 0x36013d36, 0x26273637, 0x7a440607, 0x14152408, 0x83161317, + 0x5a232013, 0x362305cd, 0x181f3233, 0x2011b98c, 0x347e1807, 0x37362709, 0x16171633, 0x58823233, 0x37240882, 0x37362726, 0xaf205c83, 0x260f7742, + 0x4d303001, 0x4412250e, 0x12340b1f, 0x0a150e25, 0x19080b0d, 0x08192424, 0x0e0a0d0b, 0x8d0e1515, 0x87071842, 0x42102007, 0x5c410783, 0x5710200d, + 0x33200730, 0x420f8042, 0x012319aa, 0x18070a09, 0x20093d8a, 0x0f046a26, 0x94428320, 0x0a5a4108, 0x9257ab20, 0x45bf5007, 0x1805105e, 0x200a668b, + 0x10f24307, 0x50194d4a, 0x112814bf, 0x0e15150e, 0x070a0d0a, 0x20074541, 0x0de043c3, 0x50184e4a, 0x4f2414c1, 0x080b1212, 0x22052341, 0x69060b08, + 0x06340ccc, 0x20000000, 0x6001c001, 0x2b001500, 0x56004000, 0x81006b00, 0x2106276e, 0x9a18012b, 0x012a0843, 0x3d363732, 0x27341501, 0x15902631, + 0x7f653720, 0x21218405, 0x1f852734, 0xbf171521, 0x0c80272a, 0x1130110b, 0x06940c0b, 0x158d2020, 0x1d9d2b8e, 0x8d380121, 0x8ec02055, 0xac748d0e, + 0x4800201d, 0xe0240573, 0xa0014001, 0x180d4f41, 0x2207d97c, 0x413b1617, 0x342c054a, 0x012b2627, 0x31072233, 0x14011d06, 0x2720158d, 0x8405816f, + 0x07804121, 0x40953320, 0x28202aaa, 0x0e8ee68e, 0x6020f5ba, 0x8d0d8c41, 0x1d8b410d, 0x7f581d9d, 0x02e02a07, 0x00a00100, 0x00370021, 0x716d184d, + 0x07062108, 0x2106776b, 0x75493736, 0x66551805, 0x36032409, 0x19363137, 0x210b0039, 0x2b822726, 0x18162521, 0x3309864f, 0x3d262722, 0x36373401, + 0x0001013b, 0x023b3b58, 0x02161602, 0x830b7450, 0x3b02290f, 0x01b0583b, 0x101b1212, 0x2605fe53, 0x12121b10, 0x84200101, 0x21158a05, 0x28837001, + 0x82166821, 0x47682043, 0x11850b30, 0xfe215c83, 0x233383f0, 0x800e0909, 0x50834882, 0x84404021, 0x59158a05, 0x35240c67, 0x60004a00, 0x0622e79c, + 0x02822307, 0x2107c04a, 0x431a1633, 0xfa180a4d, 0xf6840b20, 0xc1453620, 0x16312505, 0x07061517, 0xfa9f3582, 0x19190126, 0x1c0e6e25, 0x08425018, + 0x0e1c2026, 0x0c0b116e, 0x7020e483, 0x220c0941, 0x681b1212, 0x1887086c, 0x83900121, 0x16282527, 0x28160202, 0x260b0c41, 0x19192590, 0x18011701, + 0x2d08fe41, 0x110b0c17, 0x3b3b5890, 0x0909a002, 0x1641700e, 0x41302006, 0x0884075a, 0x003d1886, 0xff100003, 0x013002c0, 0x000400c0, 0x002e0022, + 0x27372500, 0x31071707, 0x25373635, 0x06da6236, 0x82030721, 0x620720d8, 0x4b0809de, 0x07173707, 0x26012b06, 0x37343527, 0x1d9e4b01, 0x01bb56d7, + 0x0b110113, 0x370d120e, 0x0eca080c, 0x0a194818, 0x320a0d0d, 0x79190a0a, 0x071f473f, 0x0216450a, 0x1dd78507, 0x4805569e, 0x08ca0e18, 0x120d360d, + 0xeffe0c0e, 0x0a190112, 0x2a822582, 0x83921921, 0x16022827, 0x00070a05, 0x53080000, 0x16360883, 0x3d003200, 0x53004800, 0x75005e00, 0x00008700, + 0x06272601, 0x215b1507, 0x37362407, 0x822f2635, 0x01352312, 0xc864011d, 0x26352608, 0x23272627, 0x22178222, 0x82070623, 0x4217202c, 0x1e1905b9, + 0x3721198f, 0x82228816, 0x215c91e8, 0x71562726, 0x83578305, 0x2a698351, 0x16021001, 0x27010216, 0x88011710, 0xf0fe2708, 0x1b121201, 0x67418001, + 0x15ab2707, 0x201a5511, 0x12821b29, 0x670f0121, 0x056805f5, 0x4d531808, 0x20118808, 0x234e8f28, 0xd8fe1602, 0x2c0fd647, 0x0216a801, 0x35051602, + 0x20160f24, 0x200a830d, 0x230a840d, 0x10d8fe05, 0x8408396b, 0x400d297f, 0x1b1b0113, 0x60104029, 0x08456418, 0x0f011022, 0x15950c87, 0x93400121, + 0x0216225a, 0x0ff24780, 0xa3410020, 0x00292e0c, 0x00430036, 0x005d0050, 0x0077006a, 0xf341188a, 0x2211230b, 0xbc460607, 0x33352205, 0xd5af1815, + 0x32112108, 0x2205a069, 0x18172123, 0x200bd24f, 0xec4f1817, 0x8b37200b, 0x06501819, 0x8c198c0c, 0x16072733, 0x2b063107, 0xa3532201, 0x16372405, + 0x5f171617, 0xb0220c31, 0x6a44b060, 0x23058505, 0x205040fe, 0x08b54f18, 0x4f187020, 0x902009f3, 0xfe211589, 0x8a1694f0, 0x0203312c, 0x900a0706, + 0x0206070a, 0x22191909, 0x09191922, 0x07b34a18, 0xce75fe20, 0x18402006, 0x86076c41, 0x8960200f, 0x88102052, 0x1020217e, 0x54181589, 0x158a0aa5, + 0x98222b8a, 0x0082070a, 0x13200a28, 0x14010114, 0xbb4a2013, 0x01803007, 0x001f00c0, 0x0064003f, 0x00870077, 0x71340100, 0x1d24061b, 0x011f1601, + 0x2505915f, 0x36373233, 0x3243013d, 0x76172005, 0x1083098b, 0x2205697c, 0x85060722, 0x1517242e, 0x56072605, 0x222305cc, 0x82070623, 0x17162402, + 0x4f173033, 0x3b270882, 0x012f3601, 0x86172726, 0x012b2b07, 0x31222322, 0x16011f06, 0x584d2717, 0x234f8405, 0x1706012b, 0x23070f41, 0x0e153c01, + 0x24051949, 0x29152001, 0x060d4101, 0xfe32158e, 0x3a0807a6, 0x0c192931, 0x02010107, 0x010f0201, 0x06820f01, 0x0c070231, 0x2f282919, 0x07432d30, + 0x0f0c6603, 0x823313d7, 0x25193807, 0x01013013, 0x67030701, 0x67042518, 0x0b102317, 0x110b0c0b, 0x1803079b, 0x26072664, 0x153d560b, 0x410b140e, + 0x0b2605ec, 0x2b15212e, 0x5d760b3b, 0x2e1a9306, 0x09010368, 0x04080b0e, 0x06010103, 0x82061111, 0x08052b7f, 0x09090b0b, 0x0e7b0602, 0x05829807, + 0x84011c21, 0x7b982d04, 0x0b01021b, 0x1150100c, 0x06020c0b, 0x240cdf4a, 0x00980086, 0x1d3355aa, 0x2206ef53, 0x82171607, 0x41152001, 0x27290660, + 0x04393726, 0x35303330, 0x06fe5732, 0x34353624, 0x01842627, 0x3423302d, 0x04392231, 0x37343526, 0x93330539, 0x31272920, 0x26033923, 0x32333637, + 0xe95b5282, 0x07312b3d, 0x0a070601, 0x04050504, 0x0a84070a, 0x061b1534, 0x01050102, 0x04020101, 0x04030606, 0x06060304, 0x0e820204, 0x91040421, + 0x01052813, 0x151b0602, 0x5c61070a, 0xc6273519, 0x070b0a08, 0x82020608, 0x08063000, 0x080a0a08, 0x010b0608, 0x01030606, 0x82030101, 0x03062391, + 0x97820603, 0x82010321, 0x0505218b, 0x15828383, 0x84050621, 0x240e8515, 0x060c0606, 0x1c4a5c07, 0x220eab41, 0x41e200b4, 0x955b7dab, 0x44e04171, + 0x89525720, 0x0a075a0d, 0x4138c55b, 0x542045fc, 0x520dfb59, 0x00202d95, 0x05200082, 0x2b087748, 0x00910023, 0x00b500a3, 0x250000cd, 0x1805a65b, + 0x210d1899, 0x33193732, 0x17220921, 0x88521736, 0x29d44306, 0x39233523, 0x05d34303, 0x34333023, 0x12f64331, 0x31302725, 0x43043922, 0x162207d6, + 0xf04e2717, 0x4f372010, 0x172c1014, 0x26312726, 0x06070607, 0x3f16011f, 0x2705a250, 0x010f2627, 0x0ef20127, 0x2f11f15b, 0x03082f35, 0x0e0f0717, + 0x18181d1e, 0xca11130b, 0x211ef943, 0xf9430504, 0x43138711, 0x062207f9, 0x444f7801, 0x4fc3200d, 0x3f2c0f64, 0x110f0e05, 0x04090811, 0x550f0517, + 0x05280782, 0x120e0f04, 0x286c0514, 0x2e126462, 0x590b0914, 0x091a1a1f, 0x1a0d0d08, 0x44080702, 0x0822411c, 0x6e180b07, 0x0925077a, 0x09090e0e, + 0x09b44f06, 0x760a0732, 0x05090911, 0x120f0f05, 0x18020e59, 0x12100f05, 0x15200f84, 0x260b6753, 0x002d001a, 0x4451003f, 0x272b1c33, 0x36313726, + 0x17322133, 0x52060716, 0x2720051e, 0x61118b54, 0x9f332b7c, 0x0b060703, 0x060b1401, 0x2b0f0307, 0x2b3a3a2b, 0x456f0f2b, 0x0b2e3660, 0x07080807, + 0x2021340b, 0x21200101, 0x74617a34, 0x4304201a, 0xf3830807, 0x89005b22, 0xda44f3b0, 0x039a3371, 0x010b0607, 0x07060b0a, 0x2a2a0e03, 0x2a2a3838, + 0xa844740e, 0x0d444152, 0x71446520, 0x0d67413d, 0x9e184220, 0x5b421f93, 0x426c5d12, 0x20126142, 0x366a5d25, 0x1d41c620, 0x5dc7200d, 0x05262266, + 0x0303032f, 0x67430007, 0x42502011, 0xb86b3073, 0x06172110, 0x230a3154, 0x07222326, 0x41192354, 0x66431204, 0x929f180e, 0x0e054129, 0x200c6843, + 0x889f181a, 0x056f460c, 0xc001803d, 0x46003d00, 0x62005500, 0x00006f00, 0x31373413, 0x16013b36, 0x11171617, 0x18211716, 0x4a08d775, 0x26260539, + 0x34272627, 0x0c8c2337, 0x11281383, 0x22232726, 0x05352627, 0x2205ab57, 0x18233315, 0x24090154, 0x3523011d, 0xd5cf1817, 0x3e61180b, 0x09002c0c, + 0x22100e09, 0x01011617, 0x44d0010f, 0x43210514, 0x07495003, 0x0be6c618, 0x24851320, 0x23821020, 0x01b00138, 0x01075007, 0x0f019060, 0x18501810, + 0xc0010f10, 0x0e1410e0, 0x3783010d, 0xf0fe1023, 0x210c8810, 0x2e83a001, 0x22171626, 0x010fe0fe, 0x2105fe4b, 0x29870808, 0x0df1c618, 0x2222f282, + 0x25842001, 0x07284027, 0x28070101, 0x83598328, 0xe0282162, 0x5b830082, 0x3a838020, 0x88e0e021, 0x0537420a, 0x4002c831, 0x1a00c001, 0x3a002b00, + 0x00004600, 0x18373625, 0x4f094c5c, 0x6d5707b0, 0x37173105, 0x26113736, 0x010f2627, 0x15140714, 0x01110706, 0x1a820382, 0x35013f22, 0x27221582, + 0x2e820507, 0x22232f08, 0x15272627, 0x2f013517, 0x13191811, 0x22010113, 0x22333322, 0x13010122, 0x11181913, 0x06090906, 0x010e9171, 0x0d090a01, + 0x05050174, 0x0b856ffe, 0x05057f2b, 0x017b0408, 0x11172171, 0x28028217, 0x1588c021, 0x25252322, 0x8239841c, 0x251c3341, 0x15222325, 0x3abf0707, + 0x0f011006, 0x0507070d, 0x0082012e, 0x0a0a2408, 0x3c01d1fe, 0xf2fe1007, 0x0407060e, 0x0a0afc33, 0x44311614, 0x13131c31, 0x37c2311c, 0x050000f9, + 0x8dff0000, 0x005824df, 0x6d060100, 0x06200612, 0xba83ac84, 0xd9823620, 0x1f27c882, 0x34373601, 0x19353635, 0x21088e32, 0x15822511, 0x07151723, + 0x29d48206, 0x013f3611, 0x15373617, 0x0d413527, 0x76791805, 0x98012111, 0xfd8de589, 0x0505082e, 0x090d7401, 0x0e01010a, 0x04eafe91, 0x7f200e82, + 0x7b240d85, 0xc02117be, 0x0255f585, 0x05f95406, 0x87480121, 0x0d0841f2, 0x820a5021, 0x01280843, 0x07052e01, 0xf1fe0d07, 0x013a0610, 0x14163e2f, + 0x33fc0a0a, 0x0e060704, 0x07100e01, 0x311cc231, 0x31c237f9, 0xb413131c, 0x0ca92e19, 0x00000236, 0xfc01c0ff, 0x1b00bc01, 0x00002900, 0x31232601, + 0x27010f22, 0x2005007e, 0x05b96b17, 0x3717072d, 0x27343536, 0x06072703, 0x8406010f, 0x013f2314, 0x8b82e101, 0x0f1c2a08, 0x1d1d160d, 0x0e0e5616, + 0x11561111, 0x82740d11, 0xbb1b1ba5, 0x154a4082, 0x09090205, 0x4a66190d, 0x1ba10140, 0x150d0f1b, 0x211e8215, 0x28820e0e, 0x39832383, 0x82c3fe2f, + 0x19664941, 0x0209090d, 0x41491505, 0x20008200, 0x268b8404, 0x00c001ff, 0x8217000b, 0x004a3b8d, 0x32331300, 0x0706011f, 0x36372627, 0x26070533, + 0x3b363727, 0x16173201, 0x60180307, 0x4718119e, 0x1521092b, 0x08296f07, 0x27372008, 0x36013f26, 0x2f26012f, 0x08801001, 0x344b5105, 0x0504056c, + 0x6ced0109, 0x05514b34, 0x82098008, 0x024d280d, 0x4b4b3132, 0x87023231, 0xa8330807, 0x02170808, 0x070c3205, 0x04090324, 0x042d0604, 0x010d2d04, + 0x24040109, 0x05320c07, 0xc0011702, 0x33077a07, 0x090808a2, 0x0832a219, 0x0809077a, 0x8bc9fe08, 0x0847833f, 0x0a0a5f20, 0x0701042e, 0x04230b05, + 0x04063105, 0x02170303, 0x0e041702, 0x23040531, 0x0107050b, 0x3f552e04, 0x001a250c, 0x003e002c, 0x1c958418, 0x20077a50, 0x05674207, 0x18353621, + 0x840cc265, 0x190d6115, 0x48d0fe21, 0x94440ee0, 0x090d2105, 0x18055571, 0x2018ba54, 0x1ad14830, 0x240d5f46, 0x003f0025, 0x1d5f4659, 0x17163327, + 0x26230706, 0x07086e27, 0x20056243, 0x05ae7006, 0x35363725, 0x18162734, 0x8c08945f, 0x20368215, 0x1a684606, 0x18804021, 0x20086e97, 0x07565320, + 0x06240222, 0x27051945, 0x80022406, 0x0112121b, 0x2483108b, 0x20188c5a, 0x07575490, 0x36839020, 0x29232a83, 0x410a0811, 0x0a240507, 0x40291108, + 0x28831291, 0x3507f757, 0x018001c0, 0x000b00c0, 0x00290016, 0x1f361300, 0x13171601, 0xf2821321, 0x0706032a, 0x36331716, 0x23272637, 0x1231e018, + 0x0b0bb52d, 0x28010450, 0x0128f0fe, 0x181d5004, 0x2208246e, 0x72017850, 0xfe200645, 0x3106cf6c, 0x0a0abb01, 0xfe050450, 0x054201be, 0xf5fe5004, + 0x7e5c1602, 0x0c3c6b05, 0x310c3f72, 0x0034000c, 0x27260100, 0x010f2631, 0x37363733, 0x7e192734, 0x1426092c, 0x06171617, 0xcb590607, 0x26272606, + 0x36373627, 0x084a5435, 0x08f8012d, 0xd10b0c0c, 0x01086a91, 0x4128fe08, 0x20310502, 0x07113d1f, 0x0e080903, 0x09080ec0, 0x3d110703, 0x060f541f, + 0x0140fe2e, 0x010209b5, 0x0a699a07, 0xb50a0c0c, 0x25057d41, 0x162e2e3e, 0x39851b15, 0x16151b25, 0x853e2e2e, 0x0bdf7217, 0x43001522, 0x0c777d18, + 0x0a604c18, 0x37341325, 0x47333631, 0x95820575, 0x16023d22, 0x1f84af82, 0x07062323, 0x0ec57f15, 0x12010024, 0xec581b12, 0xe0fe2609, 0x0112121b, + 0x246f82a0, 0x22171601, 0x2a838290, 0x0111121c, 0x291b1b01, 0x85010f90, 0x82402091, 0x095a5606, 0x22088b7b, 0x82e0fe40, 0x22102418, 0x82011617, + 0x5a202d3d, 0x2018180a, 0x1b1b2920, 0x100f0101, 0x0a329b18, 0x0bfb5618, 0x1b001530, 0x2d002700, 0x3f003300, 0x57004500, 0xd18c6200, 0x09414118, + 0x2617112b, 0x1f163327, 0x26013901, 0xe7561827, 0x2637270c, 0x23171627, 0xab823927, 0x36290782, 0x07373637, 0x36230706, 0x182f8237, 0x1b0ff956, + 0x200e1602, 0x21b78801, 0xf183c0fe, 0x0a2cb738, 0x290b0427, 0x040b0504, 0x050b0430, 0x040b2904, 0x0f2c0a27, 0x17820b04, 0x15833820, 0x88032f21, + 0x18a92015, 0x210fec56, 0xe4820ff0, 0x0484e020, 0x20091841, 0x087d57fe, 0x80012108, 0x2d3116d7, 0x0b05091a, 0x152b2b15, 0x1a09050b, 0x6716312d, + 0x31161a2d, 0x140c0550, 0x0c142b2b, 0x57241285, 0x01242536, 0xc0205b8b, 0x30075443, 0x02000200, 0x0002c2ff, 0x0d00c001, 0x00002b00, 0x050a5b01, + 0x010f0629, 0x0737022f, 0x8207021f, 0x16372109, 0x5608d656, 0x073405eb, 0x013f3637, 0x24177601, 0x01161622, 0x0bcf1a01, 0xccb50a40, 0x13260482, + 0x60b21b07, 0xa3440404, 0x5f013508, 0x531b0832, 0x011aa501, 0x22161601, 0x0ab41824, 0xe6cf0b40, 0x53240482, 0x5f32081b, 0x29062a49, 0x040e0909, + 0x1bb26004, 0x8b841307, 0xfe01c328, 0x0c00be01, 0x8b822e00, 0x2d05e746, 0x2326012f, 0x06030f22, 0x17060307, 0x49182637, 0x23080812, 0x07060706, + 0x16072722, 0x3f362537, 0x70012702, 0x10387d37, 0x16122e10, 0x09501216, 0x580c1f90, 0x059a0d06, 0x33082c5a, 0x0b140e0d, 0x120e990a, 0x0a1f0801, + 0x0181022c, 0x377d38ae, 0x2e2f2a83, 0x024d1010, 0xfe1f0a2c, 0x990e12f8, 0x19140b0a, 0x330ab835, 0x060d9a05, 0x901f0c58, 0x04008109, 0xc1ff0000, + 0xbf01ff01, 0x1a279782, 0x52003600, 0x4c010000, 0x272e0595, 0x32333637, 0x17370117, 0x010f0607, 0x6c7f2706, 0x6a072005, 0x19820517, 0x30011f25, + 0x67153023, 0x32270545, 0x1f353031, 0x89312202, 0x3134210f, 0x36084485, 0x2f222306, 0xd5013701, 0x39121218, 0x1a133972, 0x58fe1419, 0x0bff72ff, + 0x0a0e680d, 0x041e0309, 0x5792cc0a, 0x0f4e0e0e, 0x140f1313, 0x0a0a4001, 0x01400b0b, 0x872da02d, 0x8614200a, 0x9257241b, 0x8318ad01, 0x2344823d, + 0xb2fe1212, 0x0a264282, 0x09031e04, 0x47820e0a, 0x5792fa22, 0x4e223f83, 0x42820e0e, 0x0a0b0b23, 0x2642860a, 0x09090b0b, 0x86140140, 0x9257211b, + 0xc03aeb84, 0xc0018002, 0x32001f00, 0x56004400, 0x35130000, 0x16011f36, 0x2627021f, 0x06823337, 0x086fb218, 0x2f262525, 0x19352601, 0x50129041, + 0x3525080e, 0x33363734, 0x18e58232, 0x0811c483, 0x12020020, 0x12061123, 0x1203297f, 0x6d091328, 0x2314186b, 0x16030311, 0xd6fe4140, 0x0a520d11, + 0x67450220, 0x45fd2006, 0x5b180667, 0x1b860c02, 0x08056842, 0x63190121, 0x04080111, 0x92263010, 0x0f010311, 0x100720c2, 0x1615101b, 0x4d111809, + 0x09540c05, 0x44e7fe0d, 0x058505e3, 0x9d425020, 0x200f8208, 0x0cc66030, 0x00020024, 0xfb83ff00, 0x21009a31, 0x00003500, 0x0f262701, 0x14070601, + 0x8407011f, 0x011f3509, 0x32013b16, 0x37362537, 0x27262736, 0x010f2223, 0x31171401, 0x0f9de718, 0x7d012408, 0x2e191ac3, 0x93080108, 0x0d0e3a63, + 0x49090e21, 0x08890f0a, 0x47110107, 0x0b0b071d, 0x1b1f3915, 0x8283fe68, 0x3fe08c77, 0x0a494d01, 0x0905160d, 0x325f0509, 0x1007061a, 0x0b550f0a, + 0x4b258903, 0x01100f14, 0x93fe350e, 0x850c227b, 0xc00123a7, 0x0b4cc001, 0x22132705, 0x1d063107, 0x6b631402, 0x013d2305, 0x915a1733, 0x32332305, + 0x1385013f, 0x2f343527, 0x35363701, 0x05464a34, 0x5c662720, 0x17232407, 0x7f333523, 0x465a079e, 0x80332a09, 0x0a09096a, 0x690a0d0d, 0x22058369, + 0x876a0909, 0x26562c0f, 0x01011718, 0x90301f20, 0x18707090, 0x2008f569, 0x21cd82c0, 0xa28560a0, 0x8f804021, 0x2a0f8733, 0x1e1d0a56, 0x201f3028, + 0x4360a001, 0x00200796, 0x330c134f, 0x00350024, 0x005a0047, 0x23060500, 0x26352722, 0x15070627, 0x83059248, 0x25a683af, 0x07061716, 0x19850706, + 0x8a640320, 0x3317210e, 0x6405ad6c, 0x07200aa0, 0x18080067, 0x2c08b97f, 0x332d6001, 0x0f012d33, 0x233a010f, 0x0cfc6622, 0x23220123, 0x2017833a, + 0x0f76649d, 0xe0537a20, 0x098b6405, 0x55446d20, 0x0e14300b, 0x132d010d, 0x010fcd13, 0x22be0f01, 0x6a483a3a, 0x3a230c96, 0x83be223a, 0x01cd2219, + 0x0b144f03, 0x200b9453, 0x09255f66, 0x084da518, 0x2909a355, 0x0027001a, 0x004d003b, 0x2d68005f, 0x16312306, 0x6a183617, 0x27220960, 0x01830706, + 0x16261282, 0x06071617, 0x01822627, 0x22083664, 0x41173637, 0x232706db, 0x31373437, 0x48323336, 0x2324055c, 0x35262722, 0x0ca55218, 0x44821720, + 0x55002321, 0xcb85113f, 0x0f01f02d, 0x0a092f45, 0x35270b0c, 0x8450010f, 0x0e0f26a4, 0x0c06060c, 0x23da820e, 0x90140e0d, 0x3d35ca4a, 0x02010f50, + 0x090b0c33, 0x01012a0a, 0x0d0e500f, 0x17181014, 0x0f06060f, 0x14101817, 0xa54f0e0d, 0x132d7606, 0x06000023, 0x0bae1800, 0x00063a07, 0x0010000b, + 0x004c003a, 0x1300005e, 0x23353315, 0x27050706, 0x23331523, 0x20048235, 0x250d8205, 0x27260706, 0x08892726, 0x2708d060, 0x1f16023b, 0x011d1601, + 0x0721fb82, 0xcf5e1823, 0x110d5f10, 0x58604033, 0xe2010107, 0xe2a25151, 0x10016060, 0x1b1b0110, 0x05f75e29, 0x0f500886, 0x14142e05, 0x71a0781f, + 0x0f6f131e, 0x140e0d01, 0x0f2b4240, 0x4690fe21, 0x1d830b63, 0x58580127, 0x58070160, 0x20008260, 0x3d9018c0, 0x2a1f830f, 0x14141fe8, 0x84160101, + 0x836c1811, 0x203e8f3a, 0x18618f30, 0x270c6b5c, 0x00520046, 0x0065005c, 0x22057151, 0x82173233, 0x0f1421f0, 0x1c43f384, 0x013f2405, 0x4a013f36, + 0x352e0870, 0x2b262734, 0x27363701, 0x36010f26, 0x0c60013d, 0x07114c07, 0x07013d24, 0x3d820637, 0x27262339, 0x07373635, 0x17160706, 0x013d3433, + 0x37360523, 0x06212726, 0x45c02107, 0x0735054f, 0x12131f54, 0x15140101, 0x0d16291f, 0x0c5e1229, 0x100a0905, 0x05cb4180, 0x06125427, 0x7b120e0d, + 0x2eb41804, 0x3109330d, 0x030e1a10, 0x01010705, 0x02169f16, 0x28281602, 0x07835002, 0x0acafe25, 0x4b4c010c, 0x08360773, 0x091a2929, 0x48211919, + 0x0114151e, 0x47192301, 0x0f261d4f, 0x74850d0e, 0x0e123628, 0x1f25040d, 0x4441081f, 0x06d04407, 0x0fb12034, 0x04182f33, 0x17480701, 0x16023f08, + 0x04040216, 0x07833028, 0x44181821, 0x1a260d7f, 0x62003400, 0x334d9000, 0x33b3181d, 0x710e5619, 0xb3185c20, 0x36201769, 0x21511456, 0xb31810ba, + 0x61201683, 0x083d1e56, 0x00070022, 0x02c0ff00, 0x00c0017f, 0x002b0026, 0x00350030, 0x003f003a, 0x13000044, 0x06030706, 0x21331617, 0x2109dc7f, + 0xc4463201, 0x012b2305, 0x0a822135, 0x2603272a, 0x37172127, 0x07230733, 0x37240382, 0x2317013b, 0x27340484, 0x33272337, 0x37012b17, 0x19601733, + 0x09034006, 0x00010f0a, 0x48063248, 0x3208064d, 0x0f000140, 0x4003090a, 0x40fe1906, 0x0b5b1505, 0x0b6a0965, 0x949a1574, 0xc50baa0b, 0x0a741569, + 0x5b0b6560, 0x0b8b9615, 0xc0010b76, 0xc0fe1802, 0x180c0c0e, 0x2c0ceb8f, 0x0e0c0c40, 0x02184001, 0x306868a8, 0x84008468, 0x00002306, 0xcf820200, + 0x4002e02b, 0x2000a001, 0x00003200, 0x07836d37, 0x33373622, 0x2305be46, 0x012b0706, 0x8405f75e, 0x05046e12, 0x26070625, 0x82373627, 0x333e0801, + 0x33b71732, 0x09090a23, 0x4433230a, 0x02120a55, 0x3d232401, 0x14144b3c, 0x233d3c4b, 0x12020124, 0x7744550a, 0x131a1a0d, 0x3a28283a, 0x0e1a1a13, + 0x06080805, 0x0f3120d5, 0x310f1010, 0x20822a20, 0x36852885, 0x2a303e82, 0x2a290cc5, 0x35352145, 0x292a4521, 0x0006060c, 0x01200082, 0xc02fa382, + 0xc0010002, 0x00003500, 0x010f0601, 0x5b012f06, 0x15210754, 0x200e8214, 0x29b58217, 0x3b36013f, 0x011f1601, 0x96823316, 0x0f821f82, 0x82263721, + 0x08028207, 0x2326276c, 0x141f2001, 0x482e1d1f, 0x03111115, 0x0b2c0c04, 0x0f0f1c09, 0x1310100a, 0x08090843, 0x122d1920, 0x13131d18, 0x15010301, + 0x02011652, 0x0b263b22, 0x10110613, 0x01c00116, 0x01232818, 0x0d0d0105, 0x46121515, 0x0f131410, 0x101c1c31, 0x0d030708, 0x27140102, 0x1314010f, + 0x101b331d, 0x251c113c, 0x270f160e, 0x0d0d1546, 0xab880900, 0x22000c32, 0x46003400, 0x6a005800, 0x8e007c00, 0x0000a000, 0x0c438e19, 0x37360325, + 0x18373631, 0x4d0f2779, 0x132011b0, 0x4a074457, 0xc14a1a9d, 0x0c304711, 0x07141525, 0x90172306, 0x18272047, 0x3210b067, 0x090e4080, 0x09098009, + 0x1b01800e, 0x2980291b, 0x18011b1b, 0x2408fb6d, 0x171601f0, 0xf0621822, 0x4a50200b, 0xe24a0b8d, 0xdb82180c, 0x0cef630c, 0x7b0c4a7c, 0x01210ca3, + 0x214e82c0, 0x7f826060, 0x8400ff21, 0x20808277, 0x073d46d0, 0x8b50d021, 0x20888378, 0x067f6701, 0x8c127147, 0x8c8a8c70, 0x0c2043a4, 0x4b4b0020, + 0x01002805, 0x003100c0, 0x18000036, 0x480c39a8, 0x07210696, 0x05b85623, 0xd6661520, 0x37362609, 0x27262726, 0x2b048323, 0x35211517, 0x02380121, + 0x01011312, 0x34066147, 0x02121301, 0x170f0f01, 0x201f3022, 0x011e0201, 0x01140e0d, 0x34d28360, 0x2001021e, 0x1722301f, 0x68010f0f, 0x4001c0fe, + 0x19151af6, 0x23f48722, 0x1a151922, 0x22831983, 0x330c2122, 0x22070241, 0x83210c33, 0x224f8346, 0x822020d6, 0xff1824af, 0x822802c0, 0x000d22af, + 0x30af822c, 0x2f011f31, 0x2f013f01, 0x17113103, 0x2f060716, 0x2b471801, 0x023f2609, 0x1f163736, 0x08b58202, 0x17010f59, 0x551b2001, 0x46150511, + 0x2b0d1d60, 0x101003af, 0x12808012, 0x19020f10, 0x06060e68, 0x0a409013, 0x40091413, 0x05071390, 0x4818680d, 0x1c622e0e, 0x050e4515, 0xdffe581a, + 0x0b0c1363, 0x09444409, 0x92130c0b, 0x12130e67, 0x11841603, 0x84110101, 0x13120316, 0x4d92670e, 0x01210587, 0x348f8280, 0x00390008, 0x004f0044, + 0x37361300, 0x15171633, 0x23173523, 0x08d44835, 0x06231524, 0xe94a0607, 0x06004c05, 0x87333521, 0x18362008, 0x18079e78, 0x20157354, 0x05e05890, + 0x5820b021, 0x996a08e1, 0x05894208, 0x5306eb41, 0xd0200777, 0x09458118, 0x01260989, 0x01010788, 0x00824807, 0x0f101823, 0x21498301, 0xd6690148, + 0x4c581807, 0x2014870c, 0x077a5060, 0x83508020, 0x43042008, 0x775508e3, 0x1d175b05, 0x24cf4618, 0x4208d470, 0x175b076b, 0x5f502019, 0xf6720dd0, + 0x0872680e, 0x54070541, 0x461818a8, 0xd0201ac7, 0x18115d68, 0x2209df43, 0x46230014, 0x432006f7, 0x2408195b, 0x15161732, 0xe3d21811, 0x34132408, + 0x18371135, 0x2008834d, 0x09966c02, 0x03212327, 0x35331523, 0x2a038207, 0x37361723, 0x07062726, 0x53001716, 0x09190613, 0x4b2a0835, 0x0a0d0d0a, + 0xd30a0a5a, 0x3b64c029, 0xd7fe2306, 0x00834037, 0xab542020, 0x16022305, 0xab41a001, 0x44fe2005, 0x1b2c05a2, 0x8001291b, 0x050576fe, 0x0a4b0601, + 0x0d253a82, 0x56d4090d, 0x265787c0, 0x804040c0, 0x70f84040, 0x003308fe, 0x00000003, 0x013f0220, 0x00210060, 0x00680033, 0x82170100, 0x062321bb, + 0x09897e19, 0x37362723, 0x27b68436, 0x06071415, 0x0722012b, 0x4105bf5a, 0x2629079c, 0x05272627, 0x37361716, 0x05b34c31, 0x82071621, 0x4b13823f, + 0x074105bc, 0x20118505, 0x82478226, 0x4d17204b, 0x17370507, 0x028a3601, 0x1d010101, 0x111c1f1e, 0x1b111414, 0x05101020, 0x445e3f3e, 0x40240697, + 0xeafe2129, 0x340f7a41, 0x2a231301, 0x1315232a, 0x070d1c16, 0x0b030307, 0x14260d0b, 0x997e192d, 0x770e211f, 0x142a6582, 0x130c0c14, 0x3d5d0601, + 0x1f43023e, 0x12122105, 0x87071442, 0x19a62807, 0x0d180201, 0x8307120f, 0x265f8357, 0x01190f0a, 0x82041003, 0x03103700, 0x0a0f1901, 0x0d070703, + 0x030b0b0d, 0x0c0e1207, 0x19010218, 0x33480c0c, 0x0044230c, 0x4b190079, 0x1f21094f, 0x06084101, 0x26012f28, 0x06072227, 0x7b55011d, 0x17162105, + 0x20088351, 0x2f1a8826, 0x07061522, 0x35312306, 0x27261523, 0x13352726, 0x38334e41, 0x1b1b0180, 0x1a1a2529, 0x08010106, 0x0a0e0d08, 0x0501020a, + 0x09090e1a, 0x2a1796c0, 0x1d020201, 0x1d1ec01e, 0x41b30302, 0x40293254, 0x011b1b29, 0x25171701, 0x82698408, 0x1a082771, 0x0e090902, 0x18966060, + 0x0101e92d, 0x61601401, 0x02011401, 0x41fafee9, 0x0024346a, 0xff000003, 0x2405df52, 0x0026001b, 0xa1891838, 0x4935200d, 0x26240598, 0x06072223, + 0x27210182, 0x06ee4b13, 0x07062523, 0x210a8433, 0x92421716, 0x37362405, 0x18271716, 0x0809fad0, 0x01048b24, 0x23231b1b, 0x0f0f0a1a, 0x1515100a, + 0x0269b016, 0x4a4b3132, 0x19eefe32, 0x16016001, 0x010f2217, 0x6d460f01, 0x01012806, 0x13100cbb, 0x8330fe0f, 0x136d3d05, 0x39382715, 0x0d253838, + 0x2120170d, 0xc5fe8a24, 0x0232314b, 0x35d73102, 0x16172225, 0x38823482, 0x301f2022, 0x0f200582, 0x260c2b51, 0x003b001a, 0x4c650050, 0x94191dab, + 0x172a09cc, 0x07141516, 0x26012f06, 0x8a82012b, 0x55270621, 0x27200545, 0x3d425961, 0x1718105b, 0x18171c1c, 0x0a0a1110, 0x14080707, 0x2b042b29, + 0x07081429, 0x0a090107, 0x63611f11, 0x11b72236, 0x3000820c, 0x12121111, 0x05050812, 0x0f0f0803, 0x05050308, 0x210e8208, 0x6f61b611, 0x05f57e22, + 0x00000031, 0xff000001, 0x018001e0, 0x003000a0, 0x47261300, 0x14230529, 0x8216011f, 0x36172502, 0x3736013f, 0x0c820988, 0x2905ef4e, 0x17010f22, + 0x2f060716, 0xd66e9a02, 0x0b560805, 0x24030717, 0x05131205, 0x1c1c081d, 0x13051d08, 0x03240512, 0x010b1707, 0x252b1c1c, 0x0b13031c, 0x180d0a08, + 0x148c0125, 0x291b1b01, 0x2f151806, 0x12ce0e0e, 0x7a110102, 0x1a02021a, 0x0201117a, 0x0e0ece12, 0x0318152f, 0x011c1c2a, 0x0b0f0318, 0x13080b0c, + 0xdf47001d, 0x40023205, 0x1600bb01, 0x3d002600, 0x00004e00, 0x23072725, 0x06ba5322, 0xf4592120, 0x33372208, 0x05237f07, 0x27262727, 0x16011d16, + 0x2b078207, 0x26272631, 0x26312223, 0x010f0607, 0x17280282, 0x35273637, 0x31170605, 0x3720ce82, 0x0628d784, 0x01070607, 0xb6483c5a, 0x2105d645, + 0x07850002, 0xfafe3808, 0x44037940, 0x010c0c0e, 0x2b151505, 0x051e0303, 0x180e0f01, 0x19010101, 0x04121919, 0xd2031b36, 0xfe031c03, 0x0505089d, + 0x1d03470e, 0x0b09043a, 0x2434353c, 0x4ac616b0, 0xb0230b99, 0x82051809, 0x3c2b0878, 0x0c293636, 0x5256060d, 0x14151aad, 0x0609010a, 0x3c051307, + 0x094d094b, 0x0e06504c, 0x050d0d0c, 0x4051091a, 0x02080a05, 0x74321c1c, 0xc02208d3, 0xf982a001, 0x58004236, 0x62005d00, 0x00006700, 0x23153301, + 0x07222735, 0x23150631, 0x200dac74, 0x0c377615, 0x74333521, 0x23210ce0, 0x09297635, 0x37320524, 0x1f843631, 0x33833320, 0x23224784, 0x6c180735, + 0x352009ef, 0x01280a82, 0x10202070, 0xc009090e, 0xb54ac982, 0x2114940d, 0x168600ff, 0x30280686, 0x40012020, 0xc0fe2020, 0x49820782, 0x83093756, + 0x49539c4b, 0x19510643, 0xf0c02206, 0x83008320, 0x0c135c4b, 0x33001125, 0x4c010000, 0x17201050, 0x0b3e4518, 0x07222322, 0x4e07124f, 0x262306fc, + 0x4c01012b, 0x3b210c00, 0x07f44705, 0x112e062f, 0x48050c0d, 0x170f0e05, 0x0f17a001, 0x230a820e, 0x2d110d0c, 0x0d1d7418, 0x110f2026, 0x011b1b29, + 0x11313383, 0x100a0a0f, 0x1317e0fe, 0x17131212, 0x0a102001, 0x97bf180a, 0x0036260e, 0x07221300, 0x05706031, 0x934f1720, 0x4f022009, 0x274e0993, + 0x82272005, 0x37172495, 0x82161733, 0x272623ad, 0xbf183726, 0x122c239e, 0x020b860b, 0x23231716, 0x01021617, 0x1ea5bf18, 0x8b8bcb2a, 0x01181923, + 0x23191801, 0x0020a282, 0x23053f50, 0x00c00100, 0x26051f4e, 0x0066004d, 0x8298007f, 0x331521ad, 0x2505ce52, 0x1d060722, 0xba820601, 0x1805254b, + 0x2109e092, 0x254a1323, 0x34132310, 0xbf18022f, 0x1727102f, 0x3f323316, 0x8b353602, 0x9003201b, 0x2f342225, 0x213c9303, 0x71428060, 0x0cfb4d06, + 0x1b1b0129, 0x22408029, 0x4e011617, 0xe0240b04, 0x020c1e02, 0x0c220082, 0x0989021e, 0x11904c20, 0x08201b82, 0x14201493, 0x01233e93, 0x436060a0, + 0x802005fc, 0x014e7483, 0x208f8309, 0x570919ff, 0x70012310, 0x7e8c0202, 0x2e205384, 0x64888f8a, 0x14936420, 0x3e933220, 0x00820020, 0x00000225, + 0x8201c0ff, 0x10002b01, 0x00003600, 0x35272613, 0xd04c3736, 0x07062d05, 0x07230706, 0x36313734, 0x16173237, 0x09e4ac18, 0xe25b1520, 0x27262205, + 0x21208226, 0x07822306, 0x0fe02728, 0x17160101, 0x06861022, 0x1be02b08, 0x1615391c, 0x1d1d1216, 0x15161612, 0x021b1c39, 0x0d3f2f30, 0x0d0a0e0e, + 0x0e0e0b0c, 0x30303e0d, 0x01500102, 0x1722100f, 0x06860116, 0x3cb02108, 0x06033031, 0x0b0b0706, 0x03060607, 0x623c3130, 0x04023e3e, 0x05050304, + 0x02040403, 0x00623e3e, 0x310b475e, 0x0026000d, 0x005e0050, 0x007a006c, 0x00950087, 0x136200a7, 0x06272905, 0x36272627, 0x27171637, 0x22050f48, + 0x82343526, 0x053b5dcc, 0x14151622, 0x1721af82, 0x06567d36, 0xb982bd82, 0x82222321, 0x57c78213, 0xe3820582, 0x26063562, 0x27371637, 0x83311716, + 0x23062931, 0x3f363736, 0x31151601, 0x32205385, 0x27232b82, 0x48311736, 0x1b820573, 0x42821720, 0x6a841a83, 0x26073324, 0x70853135, 0x8b822220, + 0x37323722, 0x0e276f18, 0x0d030138, 0x03030a09, 0x110d090a, 0x06111212, 0x0f0e0e0f, 0x01011012, 0x09891210, 0x070fb934, 0x07191907, 0x52220f07, + 0x20191910, 0x10191920, 0x13932252, 0x010d442f, 0x08080102, 0x0c020518, 0x01020c0a, 0x2504820d, 0x08081805, 0x5e879e01, 0x75206a83, 0x28861d83, + 0x248b2920, 0x340b064e, 0x06061924, 0x06060101, 0x08070619, 0x07096405, 0x0b0b0907, 0x21008211, 0x0b8b0b0b, 0x211c4832, 0x21222221, 0x0a351c21, + 0x17171628, 0x350a2816, 0x4f2f1191, 0x030b0c16, 0x14050403, 0x92090916, 0x820c0b03, 0x14162506, 0x5f030405, 0x6a835e87, 0x83135421, 0x20288516, + 0x20248ace, 0x0df95b41, 0x01000037, 0x20000000, 0x60014002, 0x00004300, 0x31171613, 0x32013b16, 0x05935337, 0xb5411620, 0x61152005, 0x0723069d, + 0x83262722, 0x012b2101, 0x4205264a, 0x2a82059a, 0x82343521, 0x21078216, 0x30823237, 0x0a059a3e, 0x0dc00d0a, 0x0a050a0a, 0x22191413, 0x02011617, + 0x28060628, 0x17160102, 0x13141922, 0x1e9c1682, 0x0c2f012a, 0x0a09090a, 0x0e0d160c, 0x30273183, 0x06060416, 0x83301604, 0x0d0e2247, 0x201b9b16, + 0x06e34a00, 0xc0010028, 0x21001100, 0xdc823100, 0x22109d65, 0x18271107, 0x200829e5, 0x2160823b, 0x9f4d1113, 0x011d2305, 0x02830f06, 0x18600121, + 0x390f1792, 0x23203070, 0x09021b60, 0x621e0e09, 0x62502050, 0x09090e1e, 0x23601b02, 0xa7193020, 0x1b2c0e37, 0xfe98291b, 0x031018f8, 0xcb1b050a, + 0x01272482, 0x01f8fe37, 0x82013708, 0x1bcb2639, 0x10040905, 0x080f4418, 0xa3830220, 0x5d002e22, 0x21067141, 0xf1431117, 0x05524107, 0x26373423, + 0x05594327, 0x3620058b, 0x22057366, 0x82171631, 0x14152201, 0x21058b07, 0x356a0706, 0x27222105, 0x07b8ab18, 0x3622d782, 0x9b50b837, 0x10163d07, + 0x0808030f, 0x0112121b, 0x0e0f1704, 0x0e150c0d, 0x02160e0e, 0x03150d0e, 0x9016100f, 0x15241d83, 0x16020e0d, 0x152c1582, 0x0f0e0d0c, 0x12010417, + 0x08081b12, 0x42871d83, 0x01c00127, 0xfe18100f, 0x830f8370, 0x3521833c, 0x14090a0b, 0x13181a14, 0x17110a13, 0x06111117, 0x11170908, 0x46830610, + 0x06160e29, 0x09171110, 0x83110608, 0x130a2919, 0x141a1813, 0x0b0a0914, 0x67838283, 0x01214b83, 0x084b8390, 0x00000022, 0xff000005, 0x010002e0, + 0x000800a0, 0x00460039, 0x005c0051, 0x16331300, 0x3721011f, 0x07233736, 0x1d24d382, 0x15171601, 0x20090a49, 0x230b8a21, 0x34353736, 0x2005d441, + 0x05994226, 0x210c7978, 0x6c183607, 0x332009c8, 0x3a07f865, 0x16b6a537, 0xdafe1a08, 0x5a16081a, 0x0b0b1223, 0x09091e02, 0x090e200e, 0x86000109, + 0x021e2408, 0x19120b0b, 0x200975ba, 0x096a7985, 0x1602a025, 0x84021620, 0x68012104, 0x02320987, 0x01600116, 0x144b4b14, 0x10076501, 0x25501410, + 0xfd433912, 0x66302005, 0x392f06b9, 0x14502512, 0x65071010, 0x1212111d, 0x78b01d11, 0x08200912, 0x20078b50, 0x08585018, 0x28420320, 0x80012705, + 0x42002900, 0x1d514d00, 0x3433210c, 0x21050642, 0xf1551516, 0x5b212009, 0x332608dc, 0x06272605, 0xd2771507, 0x16152505, 0x35373617, 0x2105ea65, + 0x5a180535, 0x5020092d, 0x18069947, 0x7d07e863, 0x6618059d, 0x10260c4d, 0x0f013001, 0x2d79010f, 0x21098905, 0x677ad0fe, 0x0d524909, 0x8808fb52, + 0x0f602208, 0x8ee48201, 0x7b302045, 0x0135052a, 0x0005000f, 0x02c8ff03, 0x00b8015e, 0x002d0024, 0x00610058, 0x24e7826a, 0x27010f22, 0x81491826, + 0x011f2f07, 0x16170607, 0x3f36033f, 0x26373601, 0x1b832635, 0x011f232e, 0x27011f16, 0x27173637, 0x030f0607, 0x10821f82, 0x21823720, 0x2b831720, + 0x03260b85, 0x26012f36, 0x04822627, 0x01212282, 0x262b8226, 0x27060716, 0x85270605, 0xb045080a, 0x4c1d040b, 0x0506070b, 0x02094228, 0x054e0b03, + 0x08090a01, 0x0e0b0924, 0x1a11292c, 0x4d0a0701, 0xc00b041d, 0x05010b87, 0x0b0720ca, 0x0b233046, 0x0309100b, 0x0f0d0607, 0x040b0b0e, 0x0308f708, + 0x0f0d0706, 0x330b820d, 0x080a1009, 0x1002071b, 0x19881910, 0x1e0f1717, 0x16080314, 0x3d080383, 0x15081501, 0x16070415, 0xb8010415, 0x03174a0a, + 0x45090908, 0x0a0a072d, 0x0b500c02, 0x21070405, 0x0e2e2723, 0x010d183c, 0x17030801, 0x249a0a4a, 0x36390b03, 0x1e03092f, 0x26230645, 0x59831f3e, + 0x82040421, 0x421f216f, 0x3e2e0b8a, 0x54162427, 0x0713131a, 0x08090724, 0x6885b116, 0x31031424, 0x6b850415, 0x08064343, 0xa0018028, 0x0d000600, + 0x4d003c00, 0x00005e00, 0x23153313, 0x17373637, 0x1f323335, 0x27052301, 0x22232726, 0x010f0607, 0x41180706, 0xa6590739, 0x88332007, 0x37322208, + 0x05114e36, 0x6405c74a, 0x14230877, 0x18260507, 0x080d5052, 0x35ab0727, 0x15081f71, 0x0a0f5165, 0x0001ad43, 0xb62e1d64, 0x0c17181e, 0x0b0b1329, + 0x210e0909, 0x241a1a07, 0x071a1a24, 0x2c088782, 0x09090e21, 0x311f1f01, 0x21210c03, 0x09866e0c, 0x8b93fe21, 0x210c260d, 0x4c606001, 0x2e048213, + 0x7d01540c, 0x10110123, 0x1008681b, 0x8270150f, 0x1623273c, 0x16010116, 0x07872316, 0x30296582, 0x07232332, 0x02021ecf, 0x0b7a6e1e, 0x0e8d2020, + 0x00021e22, 0x2f053b62, 0xc0014002, 0x6c005500, 0x06130000, 0x07063107, 0x2007c37c, 0x08764e33, 0x2b5e3520, 0x070d4105, 0x3d25fd83, 0x23272601, + 0x05574335, 0x06230686, 0x68141507, 0x26210501, 0x85128227, 0x2305821f, 0x010f1617, 0x13654083, 0x26232b06, 0x013f2627, 0x1b601736, 0xea671212, + 0x58012006, 0x102f0654, 0x010c0b11, 0x1f1f1414, 0x19011414, 0x8301100f, 0x010f2702, 0x0f0f0120, 0x02831001, 0x1602193a, 0x19010216, 0x01102519, + 0xa01b1212, 0x19030979, 0x03040b3a, 0x0a097008, 0x63180a8a, 0xd447078c, 0x0c90240b, 0x8320110b, 0x245e8356, 0x1514087c, 0x4bfe181b, 0x0f303708, + 0x300f0101, 0x1b200f01, 0x7c081415, 0x16020216, 0x19192520, 0x9e83c001, 0x0b075329, 0x080a0a4b, 0x82060760, 0x09012308, 0x0982070b, 0x280daf46, + 0x00320015, 0x33361300, 0x13631831, 0x26172111, 0x91573682, 0x37362608, 0x33373635, 0x05fb6c15, 0xe4012f28, 0x0c10100c, 0x02820cd8, 0x57250786, + 0x01090a07, 0x84748340, 0x400f2ae4, 0x50070a0a, 0x01500a0a, 0x84248ab4, 0x07892a34, 0x380a0503, 0x1b121201, 0x82ad8330, 0x0a3828bf, 0x50070305, + 0x87500b0b, 0x01e0289b, 0x00a001c0, 0x8251001e, 0x16152c9b, 0x31303317, 0x012f3130, 0x63232231, 0x32290742, 0x013f3133, 0x07062331, 0x5b621805, + 0x27262108, 0x1f850e82, 0x27263522, 0x0c5b7c18, 0x06070632, 0x1516030f, 0x021f0714, 0xd2080f60, 0x02022005, 0x2607e354, 0x05200202, 0x690f08d2, + 0x252409d9, 0x2512d212, 0x7619c684, 0x10860850, 0x0429b183, 0x06060220, 0x01042002, 0x20348229, 0x83c48408, 0x0838242b, 0x6cc9080f, 0x388f081d, + 0x10860220, 0x082a2983, 0x0f0d0438, 0x38040d0f, 0xdb600008, 0x0011260c, 0x002f0020, 0x18ef823e, 0x290a45ad, 0x11211123, 0x36031123, 0x6d5d2137, + 0x83212005, 0x07252bde, 0x06071617, 0x3f26012f, 0x09823601, 0x0f28b719, 0x01218583, 0x086a8380, 0x80fe4025, 0x11024040, 0x02115a02, 0x21161501, + 0x15211afe, 0x19010116, 0x0e0e1f1f, 0x0e301111, 0x1111300e, 0x87700e0e, 0x21168508, 0x18416001, 0x00ff2307, 0x03830001, 0x11cdfe29, 0x21110202, + 0x83011516, 0x1fc22244, 0x8235831f, 0x2237823a, 0x87221111, 0x35168508, 0x20000300, 0x2002c0ff, 0x1000c001, 0x36002300, 0x36010000, 0xbb82011f, + 0x2305945d, 0x013f3627, 0x17240e8e, 0x07013f16, 0x5e18c282, 0x2283076b, 0x3716172c, 0x18170901, 0x01010dda, 0x0787db0d, 0x8b35d421, 0x9835260e, + 0x98982525, 0x29139098, 0x0a0abb01, 0x0f0f0765, 0x07876507, 0x8b18cd21, 0x4618260e, 0xc6461010, 0x6d139046, 0x0229085f, 0x00c00100, 0x004b0039, + 0x1995185d, 0x17162408, 0x18331716, 0x270c06d7, 0x06071415, 0x26272223, 0x83055145, 0x34352909, 0x013b3637, 0x37363736, 0x33220983, 0xd2571603, + 0xd1641806, 0x974a1808, 0x067e4b09, 0x0001072a, 0x3d09090e, 0x230b2a2b, 0x24055348, 0x2b2a0b23, 0x05f2433d, 0x80201592, 0x240bef6a, 0x01242536, + 0x0f6e4f80, 0x82c00121, 0x8a449d3c, 0x00ff2170, 0x210f446b, 0xc05d0150, 0x8200200e, 0x00012100, 0x20075f56, 0x090f4163, 0x35011f22, 0x8307164c, + 0x171637cc, 0x06011d14, 0x22070607, 0x2726012f, 0x17352726, 0x2f363716, 0x0a823101, 0x030f062a, 0x17063130, 0x15013f16, 0x6b632082, 0x20208205, + 0x4c3f8434, 0x1520098d, 0x21073741, 0xa2824001, 0x15012e08, 0x1413010a, 0x0c15231d, 0x15141413, 0x01061110, 0x0b261919, 0x1421480b, 0x0d5b0113, + 0x6c0b0609, 0x09090b2c, 0x0d5f2c0b, 0x0d09070c, 0x322b825b, 0x0b0b4821, 0x01191926, 0x15101106, 0x0c131414, 0x821d2315, 0x150a272b, 0x0e090901, + 0x0482c001, 0x0f1a8424, 0x13832e06, 0x1e111d2b, 0x2c26271f, 0x02022c2c, 0x08318307, 0x09120320, 0x49221919, 0x0d0b063a, 0x071c4509, 0x1c070909, + 0x0d09093c, 0x493a060b, 0x09191922, 0x7b830312, 0x02020722, 0x26253182, 0x111e1f27, 0x256d821d, 0x0f062e1d, 0xa882841a, 0x9b4c0020, 0x0029240b, + 0x4958004d, 0x416e0dd3, 0x05265a09, 0x35262722, 0x27053542, 0x3b363734, 0x36210301, 0x2624f682, 0x35272627, 0x42051242, 0x21210963, 0x05284c22, + 0xe44a3320, 0x37362208, 0x20c682a8, 0x20748210, 0x052d4208, 0x0e8e0820, 0xe7188820, 0x522609ca, 0x02023636, 0x2785112f, 0xe0fea022, 0x50250885, + 0x01010fc0, 0x5b04840f, 0x4282071e, 0x1f851c83, 0xfe210c86, 0x07684260, 0x36024026, 0x354b5236, 0x5c0cc55f, 0x022f08e3, 0x20000000, 0x80017e02, + 0x38003300, 0x19010000, 0x55095b3a, 0x3b2406f2, 0x022b1501, 0x2205cb5d, 0x8315011f, 0x322134e0, 0x2736013f, 0x27010f26, 0x35012b26, 0x27150733, + 0x54013335, 0xea5f06bc, 0x20210806, 0x14303050, 0x01010d0e, 0x0d01431c, 0x0301140e, 0x08b7131d, 0xa70e0706, 0x510f0e32, 0x3030e020, 0x0c955f01, + 0x24832020, 0x0e1e4124, 0x3483151e, 0x0cce162d, 0x24020b0b, 0x50200719, 0x42411556, 0x002908bb, 0x3d00bf01, 0x36130000, 0x22848317, 0x41330714, + 0x0685066c, 0x06220585, 0x37462107, 0x37362105, 0x20053846, 0x3b068633, 0x37363736, 0x37262734, 0x240906fe, 0x05011717, 0x12121b05, 0x0e150101, + 0x0114141f, 0x09983819, 0x8490fe21, 0x1021080f, 0x011b1a11, 0x1f141401, 0x0101150e, 0x101b1212, 0x01161722, 0x01060304, 0x050107b9, 0x11251a1b, + 0x1915830f, 0x27236f38, 0x22171601, 0x07080c0e, 0x2d0b5f42, 0x0024000f, 0x01000036, 0x0f062726, 0xcc820601, 0x2005c862, 0x0a324d03, 0x08694c18, + 0x66180720, 0x01381038, 0x1212093b, 0x08096009, 0x12c0120a, 0x6009080a, 0x110b0c1b, 0x0c0b1190, 0xa0200686, 0x270f0d44, 0x010fb001, 0x10a00f01, + 0x2305055f, 0xd8fea010, 0x34822d8a, 0x8f44c820, 0x289a820f, 0xc0ff1600, 0xc001ea01, 0x0cf95d00, 0x37011d23, 0x06e15b36, 0x82010f21, 0x821620b7, + 0x060723be, 0x8118012f, 0x07220a47, 0x9c7f2706, 0x013f2205, 0x055c4927, 0x1f363725, 0x4dd03501, 0x7a3506b5, 0x070d0c0c, 0x03030610, 0x0c7a7a0c, + 0x10060303, 0x0c0c0d07, 0x421c9c7a, 0x8d2607e2, 0x04030647, 0x40831c0b, 0x83464621, 0x0b1c2636, 0x47060304, 0x05f3428d, 0x0c211d88, 0x211d8c08, + 0xcf5e0000, 0x6e1a2009, 0x68230637, 0x75007a00, 0x07241b41, 0x26312734, 0x2306e76b, 0x15060706, 0x77076b4a, 0x298411b1, 0x23081a59, 0x35363732, + 0x11f4af18, 0x82342721, 0x75238c4d, 0xc02a197d, 0x02120b0b, 0x12021616, 0x81480b0b, 0x35471807, 0xa852180c, 0x07a94a0c, 0x8c050041, 0x18a6751a, + 0x1014602d, 0x16cd0710, 0xcd160202, 0x19101007, 0x7408489a, 0x886e0c13, 0x0cc5570c, 0xed6d9020, 0x0d5b410d, 0x01652c20, 0x1b5b4108, 0x65110d41, + 0x262b051d, 0x27363727, 0x22010f26, 0x63312231, 0x1622057c, 0x39410317, 0x9ab41810, 0x90252011, 0x195d4123, 0x0045e020, 0x1b202e0b, 0x01011212, + 0x13074011, 0x01400b15, 0x220d8401, 0x641b1212, 0x09410cea, 0xffb2180c, 0x1861410d, 0x4106af60, 0xfe210529, 0x05c641c0, 0x0b159125, 0x5f921307, + 0xd16408f0, 0x8c90200c, 0x0d614195, 0x18000221, 0x2009736a, 0x34b34232, 0x42190d41, 0xd498126b, 0x4d163642, 0x002606b3, 0x1a00c001, 0x9f9d3100, + 0x2008e041, 0x07de4123, 0x36373622, 0x1a638d18, 0x0e01c02a, 0x1413094c, 0x03034d0c, 0x990bcb60, 0x121827a2, 0x090c1493, 0x65419313, 0x12122308, + 0x3357001b, 0x02e03606, 0x00a00140, 0x00250015, 0x00460036, 0x00680057, 0x00890079, 0x0da14b9a, 0x212d9783, 0x27262726, 0x16151711, 0x37363317, + 0x07666c35, 0x59063721, 0x148706a4, 0x208e0520, 0x37361723, 0x182f8431, 0x6907dc56, 0xe183053c, 0x9106127e, 0x25429f21, 0x1b1b0100, 0xf6620129, + 0x05006308, 0x1602b025, 0x6d021630, 0xb0240759, 0x010d0e14, 0xfe211188, 0x201c8cd0, 0x201c8c30, 0x84338750, 0x20388d23, 0x20379a50, 0x050b6101, + 0xff208a82, 0x2808ac67, 0x38300001, 0x16020216, 0x83618338, 0x83302057, 0x21128904, 0x1d831850, 0x1d871820, 0x1d83b020, 0x97841289, 0x3b841289, + 0xb0201d89, 0x00203b9c, 0x0a200082, 0x3408c76a, 0x00260015, 0x00480037, 0x006e0059, 0x008f007f, 0x00b000a0, 0x05375000, 0x4e181520, 0x21290d90, + 0x31171617, 0x06151716, 0x05216e07, 0x41373621, 0x2578058f, 0x20148306, 0x6f218f27, 0x218a0568, 0x0a559f18, 0x0e492120, 0x26558205, 0x31272635, + 0x5a352726, 0x3720092f, 0x26210b8a, 0x918e1827, 0x62209a07, 0x12220553, 0xe64f1b12, 0x1b012605, 0x80fe291b, 0x1abc4180, 0x1b8cd020, 0xd9410120, + 0xb0fe210d, 0x82063242, 0x40fe2550, 0x0112121b, 0x318c5083, 0x420dee41, 0x01211b0a, 0x783c83a0, 0x40250836, 0x011b1b29, 0x0deb4140, 0x4108cd41, + 0x102005fe, 0x211ceb41, 0x4f83d0fe, 0x82057945, 0x8820209f, 0x09f4414f, 0xff413020, 0x0e1d420d, 0x003b1d8e, 0xff000006, 0x017f02c2, 0x001b00c0, + 0x004e0035, 0x00910063, 0x050000aa, 0x48312726, 0x6c72077c, 0x05aa4806, 0x2706072a, 0x31373013, 0x27363530, 0x2405bc5b, 0x31143130, 0x25228516, + 0x37161737, 0x1a893530, 0x1a881420, 0x4805bf72, 0x2d820608, 0x3d823720, 0x06050722, 0x2f226384, 0x8b592601, 0x4a172005, 0x0621077f, 0x077d590f, + 0x36225082, 0x18820637, 0x0307062e, 0x07060726, 0x15262706, 0x31301530, 0x08517e18, 0x34313a08, 0x2c8f0131, 0x1d162423, 0x0b021809, 0x532c2c0e, + 0x09272753, 0x08180308, 0x2d2c202a, 0x0201112d, 0x1110090a, 0x01030c0d, 0x0f0f0e09, 0x7103090b, 0x09020408, 0x0c11100a, 0x0812850d, 0x2c0b0c37, + 0x06243333, 0x19050505, 0x1f272619, 0x04020f20, 0xebfe0604, 0x202c2d2d, 0x0318082a, 0x27270908, 0x2c2c5353, 0x2701010e, 0x180d1a19, 0x04041401, + 0x0513121a, 0x08318201, 0x061f183b, 0x090e0a20, 0x09034309, 0x0d100f0b, 0x0d0c030a, 0x0a091110, 0x093e0102, 0x32252525, 0x0a0fa43a, 0x0b0b0b0e, + 0x1118180e, 0x3aa4100c, 0x18191d27, 0x01160104, 0x0d0d1001, 0x2e838203, 0x02090111, 0x08020305, 0x05160805, 0x83010108, 0x21158291, 0x16830110, + 0x0803023d, 0x08071455, 0x02020420, 0x1b1a2507, 0x11120506, 0x04030623, 0x18046b03, 0x82271d19, 0x0d240859, 0x0e171811, 0x0d0b0c0c, 0x0a040101, + 0x17160c0a, 0x12040184, 0x02061a12, 0x07130403, 0x1211363c, 0x22010104, 0x032c5a82, 0x09020502, 0x090a1101, 0x0d0d0302, 0x9b625b82, 0x40012b05, + 0x1400c001, 0x38002600, 0x27544a00, 0x07a34908, 0x27261127, 0x13232726, 0x059d5c16, 0x2605af5c, 0x37363736, 0x5c373627, 0x48180694, 0x2390081a, + 0x121b4032, 0x2d020112, 0x2d44442d, 0x1201022d, 0x60c01b12, 0x4220d472, 0x298708ff, 0x2006f153, 0x834383e0, 0x058d524b, 0x73c0fe21, 0xaf740f0d, + 0x0e0d2205, 0x0c264514, 0x5f186f8b, 0x04330ce3, 0x74003b00, 0xbf008600, 0x0000d100, 0x27331501, 0x55173723, 0xce500509, 0x5d232006, 0x088807cb, + 0x5007794e, 0x352005d0, 0x2a06d45e, 0x17163305, 0x1f361716, 0x44071601, 0x062a06db, 0x010f1607, 0x07062706, 0x3b830706, 0x2f062725, 0x58372601, + 0x262408b0, 0x1736013f, 0x31453b83, 0x86531805, 0x3625210b, 0xb005d46e, 0x0541514c, 0x2a0b0748, 0x30802001, 0x504d8350, 0x4909090e, 0x16280501, + 0x28282121, 0x40162121, 0xda4e0887, 0x01a03b08, 0x60140e0d, 0xf5fe1320, 0x0b041410, 0x0b0f100b, 0x03060b0d, 0x13020213, 0x0a820603, 0x0b100f25, + 0x8314040b, 0x110a211a, 0x11211a8f, 0x181a820a, 0x41080045, 0x202008b1, 0x4aa22f85, 0x8a011421, 0x08784565, 0x2408da41, 0x26404080, 0x4ec18266, + 0x1e2106da, 0x20008211, 0x4905851e, 0x402005e4, 0xf841c582, 0xe6192105, 0x648caf98, 0xb0209a8f, 0x200f4742, 0x9af99a9b, 0x426b2049, 0x00210fd9, + 0x08bb7604, 0x45000435, 0x69005700, 0x17010000, 0x27333523, 0x07222315, 0x50011d06, 0x104d080d, 0x27342109, 0x15e20d19, 0x2105de62, 0xdd762627, + 0x61a41805, 0x077a4309, 0x8c432120, 0x71012610, 0x91519d4c, 0x08fe41a0, 0x0101212b, 0x30301f20, 0x0101201f, 0x200a8942, 0x08044221, 0x146c3124, + 0xc283611e, 0x4108b279, 0x20200817, 0x250f2141, 0x60606001, 0x96417010, 0x08082109, 0x5f825784, 0x00820820, 0xa2410b89, 0x17882209, 0x21448301, + 0x2441e0fe, 0x200f8f0f, 0x43851800, 0x0015280c, 0x002b0027, 0x444c0034, 0xec820c95, 0x37363208, 0x26272611, 0x011f2127, 0x2f060716, 0x06072301, + 0x013f2627, 0x17323336, 0x2733010f, 0x16070617, 0x26373617, 0x36353727, 0x1d171637, 0x22070601, 0x08ba5f27, 0x18323721, 0x361533af, 0x120748a6, + 0x5a060b15, 0x13150b06, 0x0e074809, 0x1516070f, 0x5cb8152a, 0x0a310eab, 0x1f110e07, 0x01011414, 0x0d1f1414, 0x01a0010b, 0x85141912, 0x908d3411, + 0x12070c15, 0x08120b0b, 0x0d90150b, 0x2a2a410d, 0x85160212, 0x1c2c2147, 0x60250783, 0x07021630, 0x070c5907, 0xf3820420, 0x0000022c, 0x4001c0ff, + 0x1500c001, 0x176c4500, 0x1417210a, 0x08794d18, 0x4b352621, 0x16230535, 0x4e171617, 0x3b2107fd, 0x09b07701, 0x2107b97f, 0x3b53012b, 0xe1881807, + 0x0d0e3308, 0x08080914, 0x0e0d1409, 0x24253640, 0x0d0d0101, 0xf9412f14, 0x41602005, 0x376405a3, 0x142f2806, 0x01010d0d, 0x58362524, 0xdb8305ab, + 0x1a1a1f23, 0x243b8315, 0x1f1a1a15, 0x231a8380, 0x18212027, 0x0cf96c19, 0x2306ae7d, 0x27202118, 0x97515c83, 0xc0012106, 0x2024cb82, 0x49002c00, + 0x870dbb41, 0x35232fa5, 0x35363732, 0x26273411, 0x1121012b, 0xd6531521, 0x19132008, 0x491bcc0f, 0x1b2205da, 0x9818291b, 0x01231165, 0x8500ff00, + 0x017022d3, 0x08ff590f, 0xc0210a8b, 0x25388201, 0x1b29c0fe, 0xc085011b, 0x06824020, 0x82400121, 0x80fe2134, 0x20066044, 0x082f5a01, 0x70010f26, + 0x0f01010f, 0x00204b86, 0x09db4a18, 0x29000828, 0x4e003c00, 0xd7825d00, 0x0e631919, 0x023b1522, 0x5b05d775, 0x06290b20, 0x13070607, 0x26272223, + 0xff531a3d, 0x27262407, 0x49233734, 0xb1450551, 0x1627230b, 0xae5f1517, 0x36353d07, 0x0790b837, 0x0701a001, 0x121b4038, 0xa0c00112, 0x23231908, + 0x01080829, 0x401b1212, 0x08781919, 0x8260c021, 0x83c020bc, 0x28012313, 0x00820127, 0xe3184020, 0x202012a2, 0xd784c783, 0x01900129, 0x07282807, + 0x83280801, 0x1e602532, 0x21011111, 0x4a185d83, 0xfe260898, 0x0e0909d8, 0x13838020, 0x08412f24, 0xe3181008, 0x302212b2, 0x4f830f01, 0x010f4024, + 0xff560c00, 0x00333c08, 0x004d0040, 0x0067005a, 0x00810074, 0x009b008e, 0x00b500a8, 0x010000c2, 0x44312726, 0x152006b4, 0x2a10505c, 0x011d0706, + 0x17161716, 0x72023b21, 0x232208be, 0x534c1335, 0x16332308, 0x5d4c0517, 0x82098205, 0x06272115, 0x83066c4c, 0x4c25200e, 0x33210a7c, 0x20338b25, + 0x20198b27, 0x8a338b17, 0x0706213e, 0x4d8b339a, 0x01e0012f, 0x60140e0d, 0x010d0e14, 0x16160240, 0x7b048402, 0x178205ff, 0x20000124, 0xc344a060, + 0x18702007, 0x210a0b59, 0x5918b0fe, 0x59180976, 0x39540a5f, 0x211a8505, 0x1161d0fe, 0x0f902209, 0x200c8701, 0xa3591890, 0x30012114, 0x10201689, + 0x10202c89, 0x01211589, 0x26878790, 0x02164830, 0x85481602, 0x45bd8405, 0x08840876, 0xc0fe9022, 0x57959c89, 0x5020848a, 0x6d8a2b89, 0x158ab08a, + 0x2b893020, 0x7020dc8a, 0x00221589, 0xf7620002, 0x002f2307, 0x4c18007a, 0x54180ddb, 0xeb7e0993, 0x23142105, 0x0d930119, 0x85181320, 0x272b073e, + 0x17060722, 0x17161706, 0x18313231, 0x220f47fb, 0x60260139, 0x332e05f4, 0x17163316, 0x35363732, 0x2f262736, 0x85183001, 0x16210b3c, 0x14227417, + 0x19052f21, 0x080fa801, 0x0a0b1426, 0x12060311, 0x090d0e11, 0x06010107, 0x12011409, 0x02031612, 0x020c0b17, 0x10021212, 0x1103030c, 0x02120704, + 0x132b0082, 0x06080d10, 0x13090701, 0x82111202, 0x0a182121, 0x00212184, 0xc1011901, 0x013b0822, 0x03020e38, 0x03111206, 0x04050104, 0x05040305, + 0x0b0a0506, 0x070d201e, 0x02120e02, 0x030f1202, 0x07010105, 0x01041112, 0x05010801, 0x05040703, 0x04010505, 0x201d0b0a, 0x8403060c, 0x59002021, + 0x8030086b, 0x2600c001, 0x92004d00, 0x06010000, 0x07063107, 0x25055241, 0x37262726, 0x59180239, 0xc057098f, 0x17162305, 0x0c571716, 0x27342105, + 0x8209f057, 0x33312509, 0x07160139, 0x4b052f47, 0x032005ef, 0x15204783, 0x2106ac44, 0x2382011f, 0x86140721, 0x05e86820, 0x17213082, 0x9f001915, + 0x05896208, 0x26227482, 0xa0183637, 0x35390833, 0x3b02a001, 0x2f3a583b, 0x221c0e0b, 0x0903040b, 0x06030101, 0x27060808, 0x35168301, 0x023b3b58, + 0x3d3e5ab8, 0x36530103, 0x27010236, 0x06070906, 0xf2820103, 0x04032d08, 0x0e1c220b, 0x493a2f0b, 0x04133636, 0x02121202, 0x02180a0c, 0x11121603, + 0x07091302, 0x0d080601, 0x04041310, 0x11040712, 0x100c0303, 0x0b211f84, 0x081f8317, 0x1201132a, 0x0101060a, 0x0e0d0907, 0x03061211, 0x010b0a11, + 0x32314b10, 0x06170102, 0x01010b06, 0x01070b0a, 0x09050301, 0x3b2c0e0b, 0x02351683, 0xcf4b3132, 0x56383809, 0x31060708, 0x2c3b4731, 0x05090a0f, + 0x083f8203, 0x010b0b29, 0x1706060b, 0x23240101, 0x12370139, 0x0e120202, 0x1f0c0702, 0x040a0b1e, 0x05050501, 0x05030803, 0x01010801, 0x82121004, + 0x03052205, 0x2421860f, 0x0b1e200d, 0x3821830b, 0x04050304, 0x11030505, 0x02020712, 0x0001000e, 0x01c0ff00, 0x00c00180, 0x0859512d, 0xfb502320, + 0x15332208, 0x06bc5816, 0x6c353721, 0x4e460abc, 0x14b02405, 0x4c010d0e, 0x502508e4, 0x140e0d01, 0x21129220, 0x1983c001, 0xd0201e89, 0x8d08087a, + 0x00002231, 0x218b830a, 0x8b820002, 0x00062808, 0x006e0067, 0x007c0075, 0x008a0083, 0x00980091, 0x250000aa, 0x07171637, 0x26172726, 0x35363527, + 0x23262736, 0x82230722, 0x8434200b, 0x1d062309, 0x0e820601, 0x07262327, 0x17141506, 0x4a0b8215, 0x162008cd, 0x15260e82, 0x33161706, 0xc1663f32, + 0x32333006, 0x013d3637, 0x16333736, 0x36371633, 0x832f3427, 0x084c6e0b, 0x37362527, 0x27070617, 0x22068507, 0x83272617, 0x20068677, 0x82188237, + 0x20068617, 0x838e8227, 0x107b7b1c, 0x52012d08, 0x41071530, 0x098c0803, 0x0a010b22, 0x090d0d0a, 0x083b2d01, 0x090e0e09, 0x012d3b08, 0x0a0d0d09, + 0x09220b09, 0x0a090e01, 0x010e090a, 0x0a232498, 0x89010a01, 0xc5fe2f26, 0x0f05241e, 0x07412b0d, 0x03083015, 0x61841c41, 0x2568302d, 0x0f0d2b1e, + 0x251d7704, 0x820c1005, 0x3114251b, 0x41400408, 0x05231282, 0x565d1d25, 0xf2210b6b, 0x223e822b, 0xab130c10, 0x8b092080, 0x20a6917f, 0x22828563, + 0x831d2567, 0x9378206f, 0x201b869e, 0x22b1839d, 0x6aa21507, 0x04200cfa, 0x2e08ef41, 0x003d0029, 0x00530048, 0x022b1300, 0x1927031d, 0x780838b6, + 0x33250579, 0x17161716, 0x26038215, 0x2b033d07, 0x41350303, 0x152105ca, 0x08ce5531, 0x18133121, 0x0814d88e, 0x2447d727, 0x1703600c, 0x0e0d0116, + 0x0e324d14, 0x310f1313, 0x0d0e144d, 0x03171601, 0x47240c60, 0x11dad752, 0xda111515, 0x08766701, 0x5b7ab020, 0x2a098909, 0x27096001, 0x1d465928, + 0x832c1111, 0x0b25233c, 0x5083250b, 0x11112c34, 0x2859461d, 0xa0fe0927, 0x0d0da1ce, 0x121bcea1, 0x4a830112, 0x24054164, 0x010f0f01, 0x08815d40, + 0x67460020, 0x001a250a, 0x05000025, 0x29058656, 0x37363736, 0x011f3233, 0x94823b16, 0x836a1620, 0x06252105, 0x081c4e18, 0x18c00121, 0x26096f4b, + 0x1a131a76, 0x87951b13, 0xf8fe2665, 0x16020216, 0x20048490, 0x20768420, 0x821a8340, 0x210c8323, 0x0c8300ff, 0xcd68d020, 0x237f8b08, 0x0034001b, + 0x9506bf59, 0x16252184, 0x680ab368, 0x02210bcb, 0x092a4100, 0x928a0983, 0x83e8fe21, 0x8340206b, 0x8940208e, 0x08075409, 0x8805be4b, 0x8e28209c, + 0x4b318427, 0x023106a7, 0x00c00140, 0x00290017, 0x13000075, 0x16213736, 0x06d85317, 0x2617142a, 0x3d26012f, 0x37262701, 0x46074b46, 0x7b180937, + 0x37220779, 0xd75b2736, 0x7807200a, 0x172305ad, 0x6f140716, 0x262708c6, 0x32170607, 0x46331631, 0x27221021, 0x5a822631, 0x3734313a, 0x01190b04, + 0x0a0b19b0, 0x273d6b0f, 0x03120127, 0xb70d4002, 0x3c020a0f, 0x080fca4a, 0x0301a731, 0x0e0c0a09, 0x0e02050f, 0x0e020909, 0x0909010f, 0x12040115, + 0x0f020e0e, 0x01010608, 0x0a080301, 0x0303100e, 0x0d03050f, 0x0b020201, 0x850f010d, 0x11032422, 0x84100f10, 0x16a93821, 0x17160101, 0x2f0d8313, + 0x2429412f, 0x0a300102, 0x13e04f10, 0x4aa7fe17, 0x213f0fe7, 0x04040201, 0x050e0e02, 0x0f090202, 0x0a0f0101, 0x1c090501, 0x03070817, 0x04040401, + 0x82010401, 0x0601211e, 0x0e267182, 0x0401060e, 0x22840b03, 0x0a040227, 0x0809181b, 0x21218303, 0x33630103, 0x00692e0d, 0x00820076, 0x17161300, + 0x36353315, 0x26068f37, 0x1732021d, 0x89011d16, 0x07142604, 0x35012b06, 0x21018323, 0x01823315, 0x2705047e, 0x07060706, 0x33352315, 0x23210182, + 0x29018415, 0x3d262722, 0x36373401, 0x04883533, 0x36023d2a, 0x07221337, 0x011d0631, 0x27231582, 0x82272326, 0x06b34572, 0x16781529, 0x16022802, + 0x83300216, 0x50098404, 0xb744051f, 0x20402105, 0x84510083, 0x84502008, 0x0684600e, 0x82090921, 0x020e2323, 0x06828816, 0x0c824020, 0x304d2020, + 0x1bc02007, 0x84149902, 0x2022831e, 0x202b8260, 0x25338260, 0x606080a0, 0xdb53a080, 0x85302008, 0x831c860f, 0x26678320, 0x16082040, 0x82f0fe02, + 0x30302115, 0x80823382, 0xdf489885, 0x01002d08, 0x004200c0, 0x006e005c, 0x36333700, 0x21054e64, 0x89181732, 0x6d4808a5, 0x011d2305, 0x1b8d1716, + 0x2b053c62, 0x0706010f, 0x27222306, 0x26012f26, 0x2205c153, 0x82310706, 0x14152312, 0x01821617, 0x82373621, 0x34352301, 0x01822627, 0x61461520, + 0x2d232710, 0x0b0c010f, 0xf9491111, 0x3f098f05, 0x0f2d0f01, 0x56090a0a, 0x2e2a2920, 0x20292a2e, 0x0a0a0956, 0x191edd0f, 0x05050c18, 0x1e19180c, + 0x21460989, 0x01a0230b, 0x6560c80f, 0x12842505, 0xa4120202, 0xa4200b85, 0x84200b83, 0xc8220b85, 0x4882010f, 0x5f0a0d2b, 0x13131222, 0x0a5f2212, + 0x2966820d, 0x0c121202, 0x06080806, 0x2983120c, 0xca4f0b89, 0x05f24506, 0x00820020, 0x1b000236, 0x2402bfff, 0x3600c001, 0x00006d00, 0x011f1601, + 0x16173637, 0x67076860, 0x40180528, 0x45510bf1, 0x26272505, 0x013f3637, 0x2f830583, 0x07153727, 0x2f060706, 0x87278301, 0x22458539, 0x82373637, + 0x87278551, 0x26272333, 0xb060013f, 0x01340805, 0x18071820, 0x1113144c, 0x175c2709, 0x54150306, 0x0d0a0f42, 0x01085a17, 0x350f1616, 0x16160f35, + 0x175a0801, 0x41100a0d, 0x05031554, 0x09275c18, 0x4c141311, 0x05263282, 0x0e0f1004, 0xe082080f, 0x12114008, 0x02040e11, 0x10110d0b, 0x02010d0d, + 0x1011090b, 0x01020b0a, 0x12100d0c, 0x03020b0d, 0x1013110f, 0x08070809, 0x0f100e0f, 0xc0010405, 0x35591701, 0x16100e0c, 0x17030854, 0x41270b18, + 0x82141512, 0x18660856, 0x4c130709, 0x0907134c, 0x05185c18, 0x41121514, 0x17180b27, 0x16540803, 0x350c0e10, 0x9c011759, 0x05061012, 0x0f110b09, + 0x01020e0f, 0x10110708, 0x04050d0c, 0x12110a0b, 0x01010d0f, 0x11120f0d, 0x05040b0a, 0x11100c0d, 0x02010807, 0x110f0f0e, 0x0605090b, 0x00001210, + 0xff100001, 0x013002c0, 0x009a00c0, 0x04413700, 0x37163005, 0x16373613, 0x3f161317, 0x16173601, 0x1806010f, 0x52079072, 0x262306a5, 0x64361707, + 0x058205d5, 0x34353622, 0x17213583, 0x06f56116, 0x3233172a, 0x14313017, 0x14071415, 0x17223982, 0xf7511633, 0x33372d09, 0x26012f36, 0x34352635, + 0x013b3635, 0x3f830b83, 0x4205e36d, 0x2b8205bc, 0x37214783, 0x213a8226, 0x7e822627, 0x34202f83, 0x272d0782, 0x040315f6, 0x041d0604, 0x07010a01, + 0x2e048207, 0x04061d04, 0x02150304, 0x06062604, 0x84020426, 0x1a45081d, 0x2e020104, 0x02011d1d, 0x1a0b0a27, 0x03080f0f, 0x29090708, 0x010c1b1c, + 0x09051c03, 0x0501061a, 0x09052e02, 0x2302080f, 0x51514040, 0x02234040, 0x05090f08, 0x0105022e, 0x05091a06, 0x0c01031c, 0x09291c1b, 0x2e368207, + 0x0b1a0f0f, 0x0102270a, 0x022e1d1d, 0x8c1a0401, 0x20842169, 0x132d0e83, 0x1a010402, 0x07010107, 0x0104e6fe, 0x269a8314, 0x07020320, 0x82060602, + 0x84032004, 0x115d0821, 0x093e0402, 0x39302322, 0x140c0c25, 0x19231d1e, 0x08080b17, 0x29291d05, 0x1c030332, 0x05060308, 0x02191a05, 0x03082f01, + 0x29440801, 0x29010129, 0x01084429, 0x022e0902, 0x051a1902, 0x09020605, 0x3203031c, 0x051d2929, 0x170b0808, 0x1e1d2319, 0x250c0c14, 0x22233039, + 0x02053d09, 0x52718e11, 0x2d220dab, 0xbf5eab00, 0x32332108, 0x2537ab18, 0x15062723, 0x27018230, 0x06071617, 0x012f2223, 0x83074844, 0x2627270d, + 0x013f3435, 0x01823134, 0x06072728, 0x013f2627, 0x26822726, 0x03830720, 0x1617272c, 0x36373233, 0x3637012f, 0x05833435, 0x23262729, 0x07232231, + 0x70233427, 0x15270a0f, 0x07011f14, 0x53063130, 0x3f2605e3, 0x27260701, 0x03833726, 0x83070621, 0x00272170, 0x246fab18, 0x155a3908, 0x01042505, + 0x02030503, 0x1d1d0a18, 0x1d1d2929, 0x0302180a, 0x03020303, 0x06150525, 0x1b040406, 0x040d1f10, 0x08161304, 0x0d021f0b, 0x02020101, 0x12090101, + 0x09120303, 0x0e2b0b85, 0x01030405, 0x03020c05, 0x83080202, 0x82082016, 0x01013116, 0x1f020b01, 0x1316080b, 0x1f0d0404, 0x04041b10, 0x2593ab18, + 0x1016ea34, 0x20010110, 0x02050504, 0x18182615, 0x18180101, 0x59821526, 0x22088e82, 0x11010120, 0x0505150f, 0x201a0605, 0x17171511, 0x1f1f180f, + 0x01092308, 0x0f020202, 0x03030103, 0x820e0401, 0x700a250a, 0x086f0404, 0x03210882, 0x83d3820e, 0x2d8d8514, 0x1e082107, 0x170f191f, 0x20111517, + 0xd482051b, 0x0808eb59, 0xbf01402c, 0x16000400, 0x3e003300, 0x5a004900, 0x17130000, 0x37072737, 0x16051736, 0x15311517, 0x25270605, 0x3736013d, + 0x15251325, 0x8d690607, 0x20148306, 0x07ab6926, 0x16053523, 0x05a17137, 0x36371627, 0x3605012f, 0x1a871827, 0x26072107, 0x079c6418, 0x2f231284, + 0x82e43c01, 0xdb200800, 0x00010a09, 0xe5fe0115, 0xe5fe0505, 0x00011601, 0x35120117, 0x0f05030d, 0xff15012b, 0xff0a0a00, 0x2b2f1c82, 0x0d03050f, + 0x0e120135, 0x060eb90e, 0x83400d03, 0x0140220e, 0x26258360, 0x06030d40, 0x83e0400e, 0x0e272416, 0x820e260f, 0x0527260d, 0x48012704, 0x08008247, + 0x03037624, 0x10170750, 0x01015915, 0x17101559, 0xf6fe5007, 0x05112e55, 0x0d030d0f, 0x50081789, 0x08500202, 0x0c828917, 0x11050f2c, 0x0505552e, + 0x0f0d0302, 0x04841405, 0x24831e20, 0x04841420, 0x10830a20, 0x05050c23, 0x250d830c, 0x0c01010c, 0x9b6c0000, 0x01213606, 0x00f400c0, 0x000601fd, + 0x1f360100, 0x39071601, 0x14070605, 0x21038307, 0x7c751530, 0x2f0b8205, 0x30171617, 0x39171431, 0x010f1603, 0x36013f15, 0x2405c342, 0x17363726, + 0x2a0b8207, 0x3b023907, 0x16331401, 0x82313033, 0x6d2b8231, 0xd251059d, 0x07313006, 0x32023923, 0x17272627, 0x07012f06, 0x83333617, 0x2f26231d, + 0x28191501, 0x362209d0, 0x71823537, 0x3627262b, 0x37173237, 0x27060727, 0x273b8237, 0x23023937, 0x22353027, 0x26203982, 0x69820384, 0x03833720, + 0x32373228, 0x39013b35, 0x42793402, 0x2f928205, 0x17141506, 0x35021f16, 0x39372627, 0x34373604, 0x34232682, 0x76353037, 0xe147075f, 0x04392405, + 0x82013f26, 0x05275866, 0x08504518, 0x0a160127, 0x0509300a, 0x3d008201, 0x0f1a0102, 0x1a0f1010, 0x01020301, 0x242a0905, 0x12122029, 0x0706031a, + 0x05070b08, 0x20820201, 0x052f0282, 0x15140f07, 0x0101100f, 0x1413100f, 0x8404070f, 0x02023e16, 0x0a080a07, 0x032d204c, 0x02021603, 0x28041416, + 0x0909010f, 0x09090e0e, 0x05280f01, 0x24138313, 0x202d0403, 0x2124824c, 0x31850207, 0x0f07042b, 0x0f101314, 0x0f100101, 0x84478215, 0x2b5e847f, + 0x0607080b, 0x12121b02, 0x2a222a20, 0x2083968f, 0x1a30092b, 0x1b01011b, 0x0b01010b, 0x26088748, 0x0808bc01, 0x820c0828, 0x020223a3, 0x9b820103, + 0x20191a3f, 0x0f1a1920, 0x03050201, 0x080c0102, 0x1c181324, 0x27222217, 0x0a042830, 0x0e05080a, 0x3115820a, 0x05030101, 0x1e131409, 0x2228281e, + 0x0e191a22, 0xe0840407, 0x0c09022a, 0x162b0507, 0x16020120, 0x1326b682, 0x13091d1c, 0x0082090e, 0x09130e25, 0x84131c1c, 0x20012715, 0x07052b16, + 0xc984090c, 0x07040231, 0x2319190e, 0x1e282822, 0x0914131e, 0x82010305, 0x0a023158, 0x0a08050e, 0x3028040a, 0x17222227, 0x2413181c, 0x282a9c9a, + 0x23231277, 0x18181d12, 0x08876a1d, 0x0c0bbe18, 0x0000362a, 0x021f3613, 0x07161715, 0x2905986a, 0x3f35013f, 0x15330701, 0x03893533, 0x30331623, + 0x3c208a31, 0x3d323132, 0x1010f001, 0x143004ac, 0xfe180705, 0x05071840, 0xac043014, 0x402840b0, 0x2d038230, 0x12300101, 0xfe170805, 0x05081740, + 0xb2823012, 0x0808bc34, 0x1b010262, 0x0117170d, 0x0d171701, 0x6202011b, 0x0084c0dc, 0x2001c423, 0x0591730e, 0x01200e25, 0x580000c4, 0x402c0617, + 0x1300c001, 0x38002b00, 0x5d004b00, 0x7f4ba182, 0x37362307, 0x854b3736, 0x17212105, 0x16241386, 0x15171617, 0x22051051, 0x18262734, 0x200e3370, + 0x82248505, 0x82362022, 0x201f84d7, 0x21e78205, 0xe6592f26, 0x32213505, 0x013d3637, 0x09090e60, 0x12120160, 0x0909e01b, 0x80c0fe0e, 0x1b240e83, + 0xc0011212, 0x22059a41, 0x55f0c0fe, 0xfe21096f, 0x25148250, 0x0303029b, 0x2c829b02, 0x0100ff29, 0x0d0b8820, 0x82880b0d, 0x0001210c, 0x01211a82, + 0x210982c0, 0x3e8320c0, 0xa0205683, 0x20200d82, 0x80205a83, 0x4f830882, 0x5f564020, 0x82202009, 0x730d2212, 0x21008201, 0x39820d73, 0x07655527, + 0x65070101, 0x2174858b, 0x0082008b, 0x6f000c21, 0x143e070f, 0x3e002900, 0x68005300, 0x92007d00, 0xeb00dc00, 0x0901fa00, 0x00001801, 0x32333613, + 0x9c19011f, 0x3f220c9e, 0x14933301, 0x93371721, 0xbd139315, 0x05372429, 0x83311732, 0x16172590, 0x3435013b, 0x17207583, 0xa1410e82, 0x250e8706, + 0x07060706, 0x846e1523, 0x22022208, 0x06424c27, 0x26233525, 0x83272627, 0x013b2137, 0x02234884, 0x82013d23, 0x270da945, 0x08031533, 0x03120308, + 0x22052244, 0x8d601203, 0x124e210e, 0x72200f8c, 0x12200d8c, 0xfd211dac, 0xc29118dd, 0x18098209, 0x2509a58b, 0x291b1b01, 0x1c8580c0, 0x85a0a021, + 0x5b802007, 0x60200727, 0x8706f14d, 0x20368307, 0x87ac8240, 0xb901270f, 0x062b0707, 0x36850107, 0x06070123, 0x200f8f2b, 0xc211902b, 0x824e2021, + 0x86b28382, 0x86a020ae, 0x2206830e, 0x6f1b1b29, 0x40200d0b, 0xdf86e083, 0x20206022, 0x2782b983, 0x0022099a, 0xcb420400, 0x00252c08, 0x00610051, + 0x01000072, 0x82161732, 0x39302201, 0x05d74602, 0xe9180620, 0x362707c3, 0x30013937, 0x82373631, 0x03332101, 0x4f062e77, 0x21200899, 0x1d213582, + 0x05d04f01, 0x2c05dc51, 0x012f2635, 0x15070607, 0x1f360323, 0x2b4a8201, 0x3523011d, 0x3f363734, 0x15330701, 0x14331682, 0x012b0617, 0x27262726, + 0x90013511, 0x211a0508, 0x82042921, 0x012d3900, 0x9cfe1d01, 0x2d01011d, 0x05040403, 0x1a212129, 0x02700805, 0x30021616, 0x41067841, 0x30200608, + 0x33081383, 0x19160140, 0x40011619, 0x100a0ada, 0xa00e0f19, 0x10190f0e, 0x021ea046, 0x400c0a06, 0x010d0e14, 0x2206c001, 0x021b191a, 0x1f030303, + 0x1e1d2c37, 0x031f372b, 0x1b2c0c82, 0x06221a19, 0x164800fe, 0x48160202, 0x820a5041, 0x08138561, 0x131e3a26, 0x1e131515, 0x06fb013a, 0x1c140c06, + 0x0202201d, 0x141c1d20, 0x12899b0c, 0x0d0e8025, 0x0e0d0105, 0x10200114, 0x280caf4f, 0x01b5000c, 0x01000006, 0x05104d26, 0x36013f27, 0x3605012f, + 0x18501833, 0x1f14240a, 0x53171601, 0x06230591, 0x47070607, 0x263805df, 0x22353427, 0x26013935, 0x37170607, 0x39220706, 0x15301503, 0x15141532, + 0x29057c41, 0x37361716, 0x27343736, 0x50823633, 0x41013b21, 0x23200764, 0x34263c85, 0x23313431, 0x01823031, 0x0623262a, 0x23261707, 0x15023926, + 0x14220d82, 0x41823031, 0x06150623, 0x20458217, 0x09745c33, 0x9b820620, 0x18012b21, 0x84098145, 0x873f201f, 0x3306217b, 0x16227c82, 0x34833015, + 0x2f092a50, 0x30333637, 0x39333531, 0x26273002, 0x35361727, 0x24056351, 0x07221522, 0x85738214, 0x833020c6, 0x22312b8f, 0x7b010439, 0x0a100b0b, + 0x0585100a, 0x0cf8fe2c, 0x0d0e1411, 0x0e0d0101, 0x06822214, 0x16080823, 0x08917c09, 0x1919262e, 0x03060f0e, 0x0d050102, 0x0b10010e, 0x01330882, + 0x11100503, 0x36352020, 0x11012425, 0x1b1c2717, 0x41050e09, 0x262a05f4, 0x0103080d, 0x0d030101, 0x2985030c, 0x1606072e, 0x1b292817, 0x1b01011b, + 0x2805291b, 0x0d312a82, 0x20010b31, 0x1d26301f, 0x0701020b, 0x0b0d0c09, 0x0af447a6, 0x0604012a, 0x15150d0e, 0x0d1b2f1c, 0x2905bc48, 0x17100403, + 0x0d0a0909, 0x5682090d, 0x0804012b, 0x1a211a10, 0x0301080d, 0x20008201, 0x82bf88bb, 0x0aa521c5, 0x24091462, 0x15180202, 0x08246c01, 0x110d0c26, + 0x04060c11, 0x0d243082, 0x020e0402, 0x01290782, 0x06010201, 0x1c1b150a, 0x24268216, 0x23362524, 0x209d821d, 0x06424409, 0x0a170324, 0x25820408, + 0x0c010c23, 0x822c8603, 0x17162376, 0x24821212, 0xef5f2920, 0x16092807, 0x201f301a, 0x83150101, 0x20c983c1, 0x06884967, 0x032b5e84, 0x0e0e0a05, + 0x03010b0b, 0x83060811, 0x82c58344, 0x090a21c3, 0x0427c583, 0x02010b04, 0x8205050d, 0x0897425c, 0xc001803b, 0xf8000800, 0x00000101, 0x06272613, + 0x36171607, 0x07143337, 0x32333617, 0x06e57217, 0x23079f42, 0x31302322, 0x0e821f82, 0x82011f21, 0x32373204, 0x35373637, 0x37363736, 0x07061716, + 0x07060722, 0x05b34215, 0x15204482, 0x03821f82, 0x22054e52, 0x82323316, 0x05df4a24, 0x23212182, 0x212a8230, 0xbf4a2306, 0x232b8205, 0x16171617, + 0xb0424284, 0x4b198305, 0x26210521, 0x835a8227, 0x21878239, 0x13843114, 0x27262324, 0x56183930, 0x32200848, 0x5c853a83, 0xdd4a2682, 0x83c38305, + 0x82352048, 0x822d8204, 0x20248241, 0x26628215, 0x36371633, 0x8436013f, 0x7a27204f, 0x19820920, 0x87331721, 0x18d020f8, 0x270878ac, 0x251b1010, + 0x0f101b25, 0x3809cc41, 0x031b1212, 0x141f0f02, 0x01010809, 0x0f080902, 0x05040304, 0x0e0d0708, 0x05c54a1a, 0x1b250b85, 0x01060511, 0x05894102, + 0x0506042a, 0x170b0a03, 0x140f100b, 0x13212283, 0x31168215, 0x100e0d0a, 0x0611111c, 0x23180406, 0x0f0b0906, 0x1a830a0e, 0x16152626, 0x08060c0d, + 0x06250082, 0x16150d0c, 0x33138326, 0x0b0e0f0a, 0x18230609, 0x10060505, 0x14211c12, 0x13150102, 0x14221783, 0x53820f10, 0x05030a25, 0x82040406, + 0x2b6c8250, 0x1b110506, 0x070d0e1a, 0x03040508, 0x0b872183, 0x080f0423, 0x258a8209, 0x1f140908, 0xe76e020f, 0x21e6880c, 0x917f8001, 0x11192707, + 0x200a0a20, 0xe4571911, 0x29078307, 0x0b19151e, 0x0201020a, 0x3f82090c, 0x010d052b, 0x01100d0c, 0x02161602, 0x290b8703, 0x01070611, 0x01050502, + 0x25820302, 0x0e0a0d28, 0x070d0405, 0x22830606, 0x010c0132, 0x06050601, 0x0e131111, 0x100d130f, 0x0f101814, 0x1a2c3a85, 0x151a1d18, 0x1a150101, + 0x031a181d, 0x0f2f2984, 0x10141810, 0x0e01130d, 0x1111130e, 0x82010e03, 0x2917833a, 0x0d070606, 0x0b0e0504, 0x0082020f, 0x0205052e, 0x11060701, + 0x0d100102, 0x050d010c, 0x0b873885, 0x0c090f22, 0x0a247e82, 0x1e15190b, 0x22087943, 0x871b1212, 0x06974ad9, 0xc0010036, 0x0d000400, 0x1b001200, + 0x00003600, 0x16073537, 0x35372717, 0x2405c85d, 0x36152705, 0x06f4443f, 0x37171523, 0x96981806, 0x5ee03818, 0x87873628, 0x012d2c46, 0x25011801, + 0x2928365e, 0x2c2d0119, 0x18598746, 0x3d17465e, 0x234d7903, 0xae6e5e09, 0x4934330d, 0x4d322a35, 0x32230979, 0x3449352a, 0x6eae0d33, 0xed18485f, + 0x0022165c, 0x73470300, 0x00b92f06, 0x0029001e, 0x13000035, 0x07060715, 0x8f7f3315, 0x2a0a8208, 0x35012f26, 0x26012f34, 0x8406010f, 0x1716261c, + 0x35331716, 0x055a6e07, 0x1d823520, 0xe0331525, 0x64011629, 0x602d08f9, 0x09291601, 0x4c0b0b4c, 0x0118c709, 0x75f01801, 0x6d53250f, 0xe51b0e18, + 0x2908d57b, 0x0e1be560, 0x090d6d18, 0x0282094c, 0x18dd0d21, 0x20136cf0, 0x26a38204, 0x01c001e0, 0x821500a0, 0x003d22a3, 0x24a58251, 0x06310706, + 0x09a61807, 0x2726260a, 0x17212726, 0x05564a32, 0x0b2bdb18, 0x37343725, 0x46333631, 0x222408ab, 0x013d2627, 0xd2182793, 0x4c18149c, 0x2d4a0dca, + 0x18058505, 0x660d0b58, 0xc0201491, 0x86066d45, 0x4a4b8606, 0xc0200601, 0x0ec4051a, 0x00820020, 0xcb63e792, 0x06212205, 0x21ec8c07, 0xfd821407, + 0xb9182b20, 0x01240852, 0x15161732, 0xc276d384, 0x051c4b08, 0x01212793, 0x133d67c0, 0x927dabac, 0xc0fe2109, 0x2008115c, 0x262b4140, 0x022de782, + 0xc0ff2000, 0xc001a001, 0x3e001100, 0x06af6400, 0x2b0b9565, 0x17161707, 0x36013f16, 0x26273637, 0x2905a079, 0x06072227, 0x1706010f, 0xb3181f16, + 0x1f820a13, 0x37012f22, 0x43097742, 0x773d0794, 0x11110a17, 0x020d580d, 0x100b0a01, 0x1a380d10, 0x13182a19, 0x0f300c13, 0x361a0707, 0x05e55757, + 0x0a1cd026, 0x2d741507, 0x4305977e, 0xc8260bcd, 0x02030d20, 0x3883480b, 0x2d2c4083, 0x0c012124, 0x1e5d140c, 0x27151e1f, 0x25058258, 0x121b1a01, + 0xc7845a56, 0x22077b4d, 0x82630031, 0x838f82c7, 0x1d1622a0, 0x25a68201, 0x14151716, 0x807c0607, 0x08e24c06, 0x84052559, 0x36372315, 0xe6822337, + 0x3e59d784, 0x059b7c0f, 0x3d26272a, 0x013f3601, 0x34353736, 0x36390583, 0x01171617, 0x0705055f, 0x78080c07, 0x4f0a010d, 0x0d0c0115, 0x192ba90f, + 0x08ea501a, 0x05010f2d, 0x02010257, 0x3e0b0302, 0x8202030b, 0x05572109, 0x3c05915b, 0x09090e0e, 0x2b1a1901, 0x0d0c0fa9, 0x0a4f1501, 0x08780d01, + 0x0507070c, 0x03bb0105, 0x342f8201, 0x1914b40a, 0x1b040b49, 0x10601608, 0x2d040a09, 0x2d21220c, 0x2c338276, 0x500e0909, 0x0f01010f, 0x97090b55, + 0x22798204, 0x8207070d, 0x04052502, 0x550a0a97, 0x5b761783, 0x2d763306, 0x2d0c2221, 0x100a0904, 0x1b081660, 0x19490b04, 0x8084b314, 0xd7420320, + 0x01c02107, 0x002d0182, 0x002c0020, 0x00630041, 0x17160100, 0x060b5e31, 0xae7e2120, 0x35332a07, 0x35262722, 0x36373411, 0x059d683b, 0x49373221, + 0x273305e1, 0x1f06010f, 0x3f140701, 0x35161701, 0x2f363727, 0x850f2602, 0x21218240, 0x14632627, 0x37362906, 0x17323736, 0x27363716, 0x18058063, + 0x22093649, 0x8520e0fe, 0x250585ca, 0xff200120, 0xb7680100, 0x094e2906, 0x12050917, 0x14140905, 0x24080684, 0x06060917, 0x252401b2, 0x051f2736, + 0x0a060302, 0x1b1a2909, 0x1a1b0101, 0x060a0929, 0x1f050203, 0x24253627, 0x68ca8201, 0xea3520d4, 0x08040116, 0x030a160f, 0x0a030c0c, 0x03080f16, + 0x08081602, 0x2c3d832a, 0x06060414, 0x1b010201, 0x1b28281b, 0x2408821b, 0x14030606, 0x20728301, 0x0b277700, 0x00005f27, 0x17070625, 0x05d97f16, + 0x70012f21, 0x16230903, 0x84171617, 0x411b64e2, 0x7f270133, 0x0d0a0909, 0x357e0a0d, 0x3b3b5846, 0x3b3b0202, 0x20078358, 0x3cf263bc, 0x3546f023, + 0x05094a7e, 0x67647f20, 0x205a8309, 0x3fc86368, 0x77084b4a, 0x2e2205ab, 0x25414000, 0x4231201f, 0x1621050b, 0x21018217, 0x01823637, 0x52182320, + 0x01211004, 0x170641a0, 0x16018033, 0x17222217, 0x18020116, 0x0b0b1318, 0x02181813, 0x0b034630, 0x2020e898, 0x3c833483, 0x28272629, 0x160b0b16, + 0x42262728, 0x13430b80, 0x83022008, 0x001636c7, 0x00350023, 0x17000042, 0x3f363526, 0x013d3601, 0x0f061523, 0x05af4a01, 0x013f3226, 0x34353303, + 0x07eb0319, 0x8c171521, 0x3736231a, 0xdf772335, 0x23240805, 0x07060706, 0x0faf3315, 0x0d403201, 0x401901a0, 0x1b010125, 0x1a20291b, 0x0ba02f15, + 0x14600f0c, 0xc0010d0e, 0x7325168a, 0xc0c00132, 0x07646901, 0x1c1dc03b, 0x30273f21, 0x9090100a, 0x1e301320, 0x1b1b292f, 0x01101301, 0x1216109d, + 0x21248308, 0x178a2010, 0x3f275724, 0x8c6920d0, 0x45102008, 0x402b0807, 0x2000c001, 0x00004a00, 0x51373601, 0x012108b4, 0x21988203, 0xe243012f, + 0x013b2807, 0x13011f16, 0x18333617, 0x2007f6a8, 0x2a8e1817, 0x2223230a, 0xc359012f, 0x26272109, 0x0124f682, 0xe0180721, 0x27053a41, 0x16066ac7, + 0x2c670b15, 0x402b0d85, 0x5b490a13, 0x0d0d0a68, 0x4229290a, 0x2a21056b, 0x05ca422a, 0x01220f8b, 0x1a4517a8, 0x58fe2606, 0x13010315, 0x05bd41ce, + 0x92110127, 0x09d16c01, 0x89329309, 0x00002852, 0xff200002, 0x821d02c0, 0x002628d7, 0x37000050, 0x84313736, 0x17322202, 0x21a78216, 0xb2462326, + 0x83322007, 0x068544ee, 0x25272622, 0xe882dd85, 0x16171626, 0x1506010f, 0x3d492d83, 0x26272405, 0x8234013f, 0x3637230a, 0x0282013f, 0xcb492020, + 0x2c322705, 0x0d03020b, 0x81430708, 0x08072707, 0x0b02030d, 0xb449322c, 0x77260806, 0x03060603, 0x4705021f, 0x04020106, 0x010c0333, 0x3f060405, + 0x063f0404, 0x0c010405, 0x02043303, 0x05470601, 0x527a1f02, 0x05122306, 0xdc670d0d, 0x0d0c2308, 0x63851205, 0x05772008, 0x01054005, 0x0605010a, + 0x05033204, 0x03040646, 0x02022103, 0x04030321, 0x03054606, 0x84060432, 0x0040291c, 0x10000800, 0xf001c0ff, 0x033bf382, 0x37000a00, 0x3f003b00, + 0x47004300, 0x00004b00, 0x2f330725, 0x17072302, 0x44333733, 0x2b250597, 0x07060701, 0x07dd4126, 0x27013f2c, 0x37343526, 0x37013b36, 0xfd823736, + 0x3e050342, 0x1727010f, 0x012f2337, 0x23073307, 0x010f3717, 0x011f2733, 0x94012337, 0x21152a15, 0x82367a36, 0x35423202, 0x0f0b0b06, 0x180d386e, + 0x6e380d18, 0x060b0b0f, 0x21118535, 0x11840c39, 0x0b0a102f, 0x15363605, 0x1b642a15, 0x2a9a361b, 0x22008215, 0x8279152a, 0x228a240b, 0x82583622, + 0x09572200, 0x2523820b, 0x0101135c, 0x49825c13, 0x57090b22, 0x47821182, 0x01145b25, 0x855b1401, 0x23582e11, 0x2c2c3823, 0x8e232338, 0x2c5a2222, + 0x0b6b522c, 0x2a001a32, 0x53003a00, 0x36010000, 0x1716011f, 0x012b011d, 0x20065750, 0x250b8306, 0x3f36013d, 0x5e181301, 0x1d22071f, 0xf3820601, + 0x1101232e, 0x26272623, 0x3f343527, 0x32333601, 0x2008d182, 0x23010f26, 0x07011f06, 0x17331706, 0x33013f16, 0x37012f36, 0x27232736, 0x0a0a3601, + 0x10011c79, 0x05794270, 0x0110703a, 0x1cca791c, 0x05070705, 0x12010c40, 0xfe401b12, 0x121b4080, 0x400c0112, 0x1c2d1383, 0x100707c7, 0x10040b20, + 0x200b0410, 0x280b8b10, 0x0808bc01, 0x72251865, 0x074753e8, 0x2572e82f, 0x04fe6518, 0x05200b01, 0x120e4705, 0x23448384, 0xf5fe0b01, 0x84315483, + 0x05470e12, 0x08792005, 0x0a021c08, 0x020a1c1c, 0x2009891c, 0x20008200, 0x0867530b, 0x17001238, 0x50002b00, 0x5b005400, 0x63005f00, 0x6b006700, + 0x00006f00, 0x86751117, 0x16112207, 0x05544f17, 0x11210126, 0x22371121, 0x2207754b, 0x72373233, 0x232a050e, 0x013f3401, 0x36352627, 0x3c563337, + 0x16332b05, 0x010f1417, 0x06151617, 0x9f5d2307, 0x26233105, 0x23371727, 0x33172717, 0x07232737, 0x27330717, 0x37210d82, 0x20078227, 0x21178407, + 0xfe723307, 0xfea02411, 0x69800180, 0xb7510877, 0x74fe3307, 0x021d1c03, 0x1f391101, 0x060c0c06, 0x0210391f, 0x0f8d1d02, 0x2a157c33, 0x461e4115, + 0x1f461e1e, 0x11211091, 0x11102111, 0x23128260, 0x21101160, 0x21210a82, 0x08b05720, 0x2a06ad4a, 0x40fec001, 0x0920c001, 0x88fe0e09, 0x090e3711, + 0x05c6fe09, 0x05303104, 0x36021005, 0x02360a0a, 0x30050510, 0x0d880431, 0x24243624, 0x00823470, 0x1c1c182e, 0x3c1c1c4c, 0x1c3c2424, 0x1c1c681c, + 0x240abf47, 0x0048001f, 0x05be7700, 0x2d0c2559, 0x37363736, 0x23060735, 0x012f2221, 0x625e1715, 0x36372405, 0x7221013d, 0x23821151, 0x83060721, + 0x013b2916, 0x0e0d0100, 0x60401014, 0x102c0182, 0x010d0e14, 0xfe1a1947, 0x47191af4, 0x20070e64, 0x055c4200, 0x8706e448, 0x012022c8, 0x202c8370, + 0x83008440, 0x18502641, 0x50180808, 0x07804cd0, 0xd1460787, 0x4e00200b, 0xc029080f, 0x91008900, 0x00009d00, 0x26b28201, 0x17323336, 0x82011f16, + 0x20078202, 0x05256117, 0x012b0623, 0x21128415, 0x01821716, 0x15161524, 0x01830706, 0x16822220, 0x2005c651, 0x94481823, 0x220a9609, 0x82362726, + 0x2335215c, 0x23052351, 0x35342726, 0x362b0f83, 0x3f36013f, 0x23013d02, 0x83262722, 0x827f8401, 0x82172004, 0x023b3259, 0x3b150535, 0x012b3503, + 0x01012b31, 0x02021919, 0x3c008205, 0x33190202, 0x0203173d, 0x01060305, 0x04020201, 0x06070907, 0x1d262006, 0x03040302, 0x2d118204, 0x06040403, + 0x20270302, 0x0201122d, 0xef852816, 0x068ca020, 0x0216282c, 0x202d1201, 0x06020327, 0xcd520404, 0x04230805, 0x261d0302, 0x08070520, 0x03040708, + 0x06010101, 0x03020503, 0x87333d17, 0x30486060, 0x8800ff48, 0x83881818, 0xaa012303, 0x74820211, 0x11020125, 0x82071024, 0x0a07238f, 0x01820305, + 0x04053828, 0x01090d1a, 0x7b820301, 0x00840420, 0x42010328, 0x12050c23, 0xa7410216, 0x0bc51806, 0x260f8708, 0x05121602, 0x8342230c, 0x20308332, + 0x28898206, 0x0d090101, 0x0805041a, 0x2f518230, 0x080a0404, 0x07020204, 0x406a2410, 0x4040a040, 0x29076f69, 0x00a00140, 0x002f0016, 0x504b0100, + 0x012f2105, 0x28059b44, 0x37363736, 0x1f363733, 0x05396402, 0x23058546, 0x26270607, 0x2b056764, 0x122d0117, 0x13120101, 0x1b44870f, 0x3006d569, + 0x130f8744, 0x1137377c, 0x370e0e11, 0x110e0e37, 0x2f0b8b11, 0x14099d01, 0x091480fe, 0x01780d08, 0x401b1212, 0x78233483, 0x9184080d, 0x4e358529, + 0xc02d06cf, 0xc0010002, 0x34001900, 0x58004600, 0x06f74b00, 0x48052a42, 0x262105e1, 0x05064227, 0x47361121, 0x1083065d, 0x0d298518, 0x43181320, + 0x1520101d, 0x7f11c549, 0x895508d7, 0x36522707, 0x36020236, 0xfb505236, 0x13441817, 0x0b04430c, 0x01800122, 0x0e78a71b, 0x4e834683, 0x5140fe21, + 0x5218177d, 0xe5590da5, 0x46578209, 0x362d076b, 0x2100c001, 0x48003600, 0x00006300, 0x20ee8237, 0x06f86936, 0x07062326, 0x07331716, 0x2127068d, + 0x17162117, 0x6b151716, 0x352408ff, 0x37363736, 0x0c037b18, 0x17141531, 0x16033316, 0x2f06010f, 0x37170601, 0x83011f36, 0x0732430b, 0xc0011f28, + 0x140e0d01, 0x08192601, 0xfe24191b, 0x200110e0, 0x20085b45, 0x180987e0, 0x3c0c1f45, 0x160610cc, 0x15211108, 0x07122115, 0x2c100616, 0x11310d11, + 0x31111010, 0x602c110d, 0x055a6801, 0x12980719, 0x7a832020, 0x08845a88, 0x340c2967, 0x150cc101, 0x0301113a, 0x01034141, 0x0c153a11, 0x360d081c, + 0x29008245, 0x1b090d36, 0x00060000, 0x2f4eff00, 0x002d2807, 0x004b0042, 0x646d0054, 0x39512f25, 0x05a24905, 0x17161528, 0x35373633, 0x52193736, + 0x372108f0, 0x620a8606, 0x8462054e, 0x16172205, 0x05b74737, 0x010f2622, 0x2126e763, 0x234c0001, 0x1f012507, 0x0f400f01, 0x70220582, 0xdc55010f, + 0x85502005, 0x010f2e06, 0x04070e9a, 0x0d4d4d0d, 0x6a0e0704, 0x4e0b8b6a, 0x092305a2, 0x18fe0e09, 0x211951cf, 0x9e433001, 0x13202207, 0x235a830d, + 0x1021120d, 0x105cc218, 0x0d04612c, 0x2121070e, 0x040d0e07, 0x0b8b2e2e, 0x9f4b0020, 0x00272d0c, 0x0100002c, 0x26312736, 0x06072627, 0x0784e582, + 0x1f060725, 0x76060301, 0x4e180517, 0x33080733, 0x03370327, 0x23173723, 0x01087901, 0x0d0b0a02, 0x2727090c, 0x0b0d0c09, 0x0801020a, 0x010ceb30, + 0xf0140e0d, 0x0d0e14f0, 0x30eb0c01, 0x78777759, 0x0b8c0178, 0x2c832482, 0x83313121, 0x252c8324, 0x10dbfe3c, 0x57421813, 0x13182907, 0x3c250110, + 0x9c9c74fe, 0x260c1b44, 0x00610038, 0x8273006a, 0x48332097, 0x1d2b056c, 0x06071402, 0x26272223, 0x4c07013d, 0xa9820948, 0x26352722, 0x22073951, + 0x82011f36, 0x15172a2c, 0x37363736, 0x23063117, 0x34d28426, 0x023d3135, 0x32313736, 0x021f3117, 0x31023f33, 0x16313336, 0x214e8417, 0x79572707, + 0x09766207, 0x11112027, 0x11241d1d, 0x05fb430f, 0x4c388821, 0x90290559, 0x011b1b29, 0x0d081a02, 0x08cb8308, 0x080e0a24, 0x01171725, 0x33292a1a, + 0x2c110fa0, 0x0f04051c, 0x03050a01, 0x40051b0d, 0x030d1b05, 0x0d010a05, 0x9e772211, 0x780f2006, 0x0f2b05c8, 0x010f0101, 0x12111d00, 0x44200404, + 0x8d210608, 0x2b63856d, 0x291b1b01, 0x01051bdf, 0x0e0a0a02, 0x01265f83, 0x261a1a06, 0x60822755, 0x1f311482, 0x1c170706, 0x0a011460, 0x25110401, + 0x11250606, 0x260a8204, 0x161a6014, 0x425b0d1e, 0xf8410752, 0x056b4808, 0x01c0012f, 0x001a00c0, 0x1300003f, 0x16353315, 0x20048217, 0x20e88226, + 0x050c4e23, 0x37363522, 0x33211082, 0x05385307, 0x08156d48, 0x36373222, 0x2726012f, 0x2630f821, 0x24013002, 0x36403625, 0x30012425, 0x30302602, + 0x100a13c8, 0x12090907, 0x6448ba86, 0x2d0e8206, 0x130a1007, 0x9001a0fe, 0x2e17c5d0, 0x2f838080, 0x802c3883, 0xc5172e80, 0x1101f0d0, 0x0e0f1020, + 0x18070e45, 0x26071b5f, 0x100f0f60, 0x42011120, 0x7a20088b, 0x2423b782, 0x5d004800, 0x072006df, 0x2308494d, 0x16173637, 0x72640d82, 0x25c38208, + 0x06033736, 0x4d183107, 0x4f180a11, 0xd05c08eb, 0x14720805, 0x16171607, 0x08f00117, 0x02030b08, 0x14142209, 0x29290201, 0x0b0d0d3e, 0x35080406, + 0x110e0e50, 0x1e1f0323, 0x3602032d, 0x01305236, 0xfe221617, 0x1b1b29f0, 0x16160101, 0x1b1b0123, 0x15161a29, 0x221a140d, 0x02011617, 0x0112121d, + 0x0101c001, 0x13070b0b, 0x3f292221, 0x02022929, 0x080b0a02, 0x23010234, 0x1e1e2d11, 0x51110f02, 0xfe023637, 0x6e822250, 0x25243b83, 0x01071a19, + 0x0d2d4c83, 0x010e150c, 0x09221716, 0x16150608, 0x0a43491e, 0x4e003c2a, 0x00007200, 0x011f3613, 0x1f2ed983, 0x16171602, 0x3122010f, 0x07222322, + 0x7c432736, 0x21bd8206, 0xf1533716, 0x022f2107, 0xa1471582, 0x023f2805, 0x26173736, 0x83363137, 0x1617223a, 0x82228207, 0x41052032, 0x2708220c, + 0x4607097a, 0x08080747, 0x09550e02, 0x26050303, 0x23030301, 0x1108011d, 0x26262323, 0x0e0f0f0e, 0x1c231f1f, 0x18051212, 0x56372284, 0x05030408, + 0x03053232, 0x0e560804, 0x0a1b0702, 0x19190a0a, 0x820b1718, 0x1a182607, 0x010b1817, 0x213541eb, 0x418abf20, 0x07080837, 0x13131136, 0x0e0e0f25, + 0x26242311, 0x080f1021, 0x1f19190e, 0x2c608311, 0x08020e55, 0x46470708, 0x01080907, 0x2078820e, 0x896083e8, 0x19092270, 0x225b41c7, 0x02000030, + 0x0080017d, 0x0068005f, 0x37000078, 0x5b18011d, 0x162009af, 0x20061077, 0xa6f41816, 0x4b372009, 0x322b0543, 0x013d3637, 0x1f141517, 0x82171601, + 0x013f240b, 0x60012f36, 0x272a0536, 0x2b262726, 0x06070604, 0x02821507, 0x2705e35e, 0x3736023d, 0x05011d06, 0x2a072546, 0x36352625, 0x17163337, + 0x82010f14, 0x012f3012, 0x0e090960, 0x09090e20, 0x0f01110f, 0x8208010f, 0x21078300, 0x16860f11, 0x08202a08, 0x12190e2a, 0x14040d0c, 0x02040c04, + 0x35021616, 0x231f1e15, 0x30401086, 0x01222233, 0x0d010117, 0x01101019, 0x01071e01, 0x07c945f0, 0x0757fe30, 0x15b21502, 0x22170702, 0x17223030, + 0x5a6020e0, 0x0a582606, 0x010f1806, 0x21688201, 0x07831101, 0x0a061823, 0x05a84458, 0x3220a036, 0x143f0c0e, 0x110a0b01, 0x05111466, 0x02021652, + 0x1c4a0e16, 0x22345882, 0x13363322, 0x010d121f, 0x19101001, 0x26282006, 0x40131015, 0x35089646, 0x150907a9, 0x09150202, 0x01211707, 0x00172101, + 0x000a0000, 0xa749ff20, 0x0d240805, 0x29001b00, 0x46003800, 0x64005400, 0x80007200, 0x00009100, 0x3f161713, 0x22273601, 0x1506010f, 0x15071714, + 0x26059b57, 0x0726012f, 0x84250706, 0x34352c1b, 0x2326012f, 0x26011f06, 0x82263127, 0x011f2626, 0x37363716, 0x83098235, 0x3332272d, 0x26353637, + 0x11820723, 0x012f262b, 0x1f140722, 0x27333201, 0x057a4417, 0x56832320, 0x17161725, 0x85262725, 0x2a38820a, 0x37072736, 0x2b262736, 0x82070601, + 0x37162253, 0x05b66b27, 0x2c851082, 0x41334008, 0x4e080e35, 0x02030a03, 0x2108078e, 0x04050501, 0x2e0c073c, 0x01070808, 0x094e2601, 0x0708350d, + 0x0b02028e, 0x0701ba03, 0x0d2d0808, 0x05043c07, 0xa1310105, 0x0601010d, 0x0aad0101, 0x82d60f02, 0x0d410807, 0x0a020fa1, 0xbf0101ad, 0x030306ab, + 0x08055603, 0x044f0608, 0x01090403, 0x08064eb7, 0x04560508, 0x0309aa0e, 0x4fd90504, 0x09050404, 0x04050992, 0x08084f04, 0x0409a45a, 0x05500405, + 0x05090409, 0x38098250, 0x20420109, 0x0a8c0c06, 0x05620102, 0x2e050908, 0x0202067b, 0x090e5c05, 0x2f92821b, 0x0c8ca00a, 0x09052006, 0x01620508, + 0x0aa00a02, 0x20088482, 0x5c0e091b, 0x06020205, 0x0213f67b, 0x0106340e, 0x0f0b0440, 0x3406015e, 0x0f13020e, 0x8140040b, 0x08238214, 0x0708962a, + 0x07080878, 0x07781902, 0x020c9608, 0x08070214, 0x09890b08, 0x07010807, 0x0a890907, 0x0708c10a, 0x08089009, 0x08070990, 0x2a056744, 0xc001c001, + 0x21001000, 0x19003200, 0x2c09591e, 0x26012f06, 0x013f3627, 0x1d161707, 0x05865801, 0x34013d27, 0x21173637, 0x24118436, 0x2706010f, 0x28118226, + 0x08d8013f, 0x0108be08, 0x86048201, 0xb0c02207, 0x84008208, 0x82012004, 0x08082168, 0xb02a0a84, 0x0404be01, 0x09090568, 0x07876805, 0x0560a828, + 0x0509d809, 0x07870404, 0x84040421, 0x87602010, 0x219f8507, 0x9f824002, 0x4400172e, 0x00004d00, 0x37363701, 0x33011f32, 0x162b0383, 0x07061517, + 0x022b0706, 0x5a172707, 0x3d2508b6, 0x22230601, 0x180e8a27, 0x27092291, 0x1716011f, 0x3717023b, 0x2e07c747, 0x04173601, 0x11070c13, 0x120e1434, + 0x82021638, 0x2022261d, 0x70051510, 0x0683436a, 0x2c2c2423, 0x310a8624, 0x03040e2d, 0x0e0d0607, 0x04040a0b, 0x101e1807, 0xb14770a0, 0x21013208, + 0x0a01138b, 0x02120e16, 0x17221816, 0x401f0116, 0x066f5461, 0x13137323, 0x05684373, 0x3112e626, 0x0b0b0d0f, 0x10244384, 0xb0400117, 0x20078d47, + 0x08c74800, 0xe3828020, 0x4c004126, 0x6a005400, 0x2720e582, 0x2208c245, 0x8216033b, 0x25e884b7, 0x012f2223, 0x15541523, 0x23108405, 0x2221012b, + 0x35362983, 0x37363734, 0x36253336, 0x012f3437, 0x013d2726, 0x01393037, 0x01823130, 0x07013934, 0x16151427, 0x05373617, 0x36313736, 0x1415011f, + 0x5b842317, 0x0805c64d, 0x3460014c, 0x0a01020a, 0x03082c29, 0x20700b04, 0x391e2f10, 0x0e0d010a, 0x131b1514, 0x2101200d, 0x0e0d196a, 0x2f1f1f01, + 0x70fe4022, 0x060f0405, 0x0e050102, 0x94010504, 0x2c05010e, 0x01a0012e, 0x1116022f, 0x0d84fe06, 0x830e100f, 0xdf82e818, 0x45082a08, 0x05050b99, + 0x43017e08, 0x0b0a040d, 0x07201505, 0x25010b0b, 0x14100d4d, 0x13010d0e, 0x1627160d, 0x18181042, 0x1f1f2f1d, 0x234a8201, 0x05050605, 0x27085482, + 0x070e0224, 0x422f2d04, 0x0835392d, 0x1602020c, 0x250f0102, 0x0901020b, 0x2b321c57, 0x070b0901, 0x0a01183c, 0x006f080b, 0x01340082, 0xc0ff0000, + 0xc001fd01, 0x00004000, 0x010f1437, 0x27062306, 0x20094655, 0x08e76316, 0x26273431, 0x013f3437, 0x32013b36, 0x36373637, 0x59352627, 0x1c4e0bdc, + 0xa0153205, 0x0d0a1b09, 0x08060d0e, 0x01111119, 0x19111101, 0x8305840b, 0x0302220d, 0x081c8301, 0x0a095921, 0x04030209, 0x1f20010d, 0x090b0c30, + 0x0c010707, 0x4b42302f, 0xb7023231, 0x091b0a0d, 0x83020301, 0x203e8436, 0x8205840b, 0x07072344, 0x1c840d0e, 0x08080237, 0x301d1808, 0x0201201f, + 0x09050502, 0x0129283f, 0x4b313202, 0x08736959, 0x01002008, 0x001500c0, 0x0043002d, 0x00660054, 0x00800073, 0x009a008d, 0x00b000a5, 0x010000bb, + 0x45311730, 0xbe830527, 0x22056c4b, 0x4b271706, 0x23220579, 0xd9440722, 0x33362806, 0x3f161732, 0x82060501, 0x011f262d, 0x33343716, 0x05904936, + 0x21822620, 0x40820520, 0x10821720, 0x045d2620, 0x17062505, 0x31072625, 0x82052949, 0x23288415, 0x07062317, 0x2206dc4c, 0x8a212726, 0x0523210b, + 0x198c0c8b, 0x062a4d82, 0x17161107, 0x07113736, 0x26842726, 0x35373623, 0x080a8933, 0x01510134, 0x120f0201, 0x01020844, 0x0a201906, 0x1f040909, + 0x04090f05, 0x1c0a0405, 0x0a1c1d1d, 0x1e040405, 0x06071409, 0x09140706, 0x07fafe1e, 0x43090201, 0x32831012, 0x041f063e, 0x200a0909, 0x013a0118, + 0x50150501, 0x10040116, 0x090a0a04, 0xfe040e45, 0x0a0a09bb, 0x012b0d82, 0x05155016, 0x0e040201, 0x18503245, 0x2108f487, 0x0a883001, 0x80fe5022, + 0x01200b89, 0x88200b8a, 0x20072747, 0x20088740, 0x3c088780, 0x01012301, 0x2d0a0d01, 0x080a0906, 0x0406131c, 0x134c0a03, 0x090a780d, 0x06060309, + 0x218f8203, 0x1f82114c, 0x4c11012a, 0x090a0830, 0x0d092e06, 0x0d2b0d82, 0x030a4c13, 0x1c130604, 0x83050589, 0x24292f6f, 0x0603020a, 0x4c130b2e, + 0x0a030206, 0x13832924, 0x13050527, 0x028e2e0b, 0x8c9c8416, 0x93802004, 0x0fe02614, 0xfe0f0101, 0x220583f0, 0x83201001, 0x8a0b8406, 0x62002004, + 0x012d051f, 0x00c00180, 0x001b0017, 0x006a0046, 0x12c96085, 0x19222321, 0x60096355, 0x062605b7, 0x35272607, 0xeb412726, 0x37362209, 0x0b334516, + 0x3637342e, 0x37361733, 0x33373631, 0x07061716, 0x14222782, 0x0983011f, 0x012b0624, 0x15822726, 0x26065a44, 0x17141537, 0x85013d36, 0x010f273d, + 0x2f222306, 0x0f852601, 0xc75f4020, 0x83002008, 0x0e802e09, 0xc0a00909, 0x10b08080, 0x010c0b11, 0x24ce820f, 0x01071007, 0x82048401, 0x0b0c220d, + 0x82188311, 0x01482506, 0x12130d0d, 0x0f271f82, 0x07010d12, 0x8301161a, 0x831a200f, 0x851a200f, 0x1080220f, 0x273f8310, 0x0805051e, 0x1e050508, + 0xca184b84, 0xe0201652, 0x08204f82, 0x08203a83, 0x50206a83, 0x0e850483, 0x2005b15f, 0x23068250, 0x0d0d132e, 0x30055d4f, 0x0e04090d, 0x0e131b0e, + 0x0e0f010d, 0x080d0102, 0x270d8205, 0x1f23201e, 0x0f20231f, 0x20282182, 0x07082c35, 0x352c0807, 0x00200d84, 0x2b0b7b41, 0x0019000c, 0x0041002d, + 0x1300007a, 0x26052f62, 0x37343523, 0x62073336, 0x23220928, 0x0c893335, 0x20088c4e, 0x25139217, 0x33163507, 0xb74e3732, 0x82152005, 0x46072029, + 0x27210ebb, 0x99751835, 0x0706240d, 0x83331716, 0x6ba02012, 0x802006e1, 0x21055e4d, 0x8152c040, 0x0c2b510b, 0x120e602d, 0x11061014, 0x0e121510, + 0x821e1111, 0x293a8326, 0x250b151a, 0x12120101, 0x1c41581b, 0x83382005, 0x1f3825f4, 0x01011414, 0x70214983, 0x825e8370, 0x202e8203, 0x06a35f50, + 0x0e856020, 0xfd186020, 0x402d0d51, 0x0b090158, 0x090c0c13, 0x21212809, 0x29238616, 0x0b150c4e, 0x1b1b3526, 0x7f791212, 0x0f012106, 0x14225f82, + 0x1f561f14, 0x80013206, 0x2c00c001, 0x50003e00, 0x07170000, 0x27262306, 0x29d38311, 0x17161716, 0x22070611, 0xcb49012f, 0x8f232005, 0x53072009, + 0xd15211c9, 0x20333c11, 0x010b0403, 0x52363602, 0x02363652, 0x03040b01, 0x09070520, 0x08052506, 0x88260508, 0x06252404, 0x4f050709, 0x3a410656, + 0xc6f61805, 0x1904260c, 0x010b0103, 0x83418314, 0xecfe2b49, 0x1903010b, 0x06320804, 0x02843406, 0x04083224, 0x14600401, 0x0d06570c, 0x21055f4f, + 0xe7824002, 0x33002326, 0x06250000, 0x3d22d482, 0xa25d2701, 0x013b2605, 0x16011f16, 0x08735307, 0x3f241b82, 0x37052701, 0x17201583, 0x3c064d6b, + 0x9e013736, 0x1727232d, 0x09010850, 0x121e1c2f, 0x242d2a39, 0x1108100a, 0x0e0e1811, 0x08058458, 0xfe11082d, 0x0705ea7d, 0xc30a0926, 0x16202417, + 0x1a010115, 0x262107d2, 0x2c0c2018, 0x05090a05, 0x26010c15, 0x1031252a, 0x180e0e08, 0x84581111, 0x11082405, 0x8207c28b, 0xeb062a31, 0x1501011a, + 0x17242016, 0x20008200, 0x08cf5910, 0x00112c08, 0x00340023, 0x00570046, 0x007a0069, 0x009d008c, 0x00b100a7, 0x00c500bb, 0x01d900cf, 0x01000023, + 0x06310706, 0x36171607, 0x59272637, 0x4f4e05e3, 0x20118b05, 0x230c8b17, 0x07060706, 0xe205a666, 0x06052a22, 0x33011d07, 0x2726013d, 0x2109af33, + 0xa018012f, 0x414509ab, 0x33431805, 0x82162008, 0x183320d0, 0x24145171, 0x36373633, 0x09ec5b37, 0x3305306e, 0x07043a01, 0x16020106, 0x06010216, + 0x04020407, 0xe0fe0204, 0x3e20118f, 0x1c831e8b, 0x218f5220, 0x218f2e20, 0x21a0b220, 0x65904390, 0x0f28fe27, 0x0f012001, 0x20058a40, 0x201190a0, + 0x05c942b0, 0x43266970, 0xc02a0503, 0x0f08bd01, 0x02160f0f, 0x06821602, 0x03030823, 0x200e8d30, 0x83198935, 0xd8352018, 0x0138281d, 0x1010600f, + 0xa7010f60, 0x85102007, 0x44f483c0, 0x60200600, 0x87158a70, 0x212f821d, 0xc74400b0, 0x00022e06, 0x2700c001, 0x53004000, 0x013f0000, 0x2c028236, + 0x15171633, 0x06010f14, 0x011f1415, 0x320f8223, 0x022f2637, 0x0f062726, 0x16070602, 0x1323021f, 0x82222326, 0x2c1d820b, 0x32331602, 0x3536023f, + 0x03022f34, 0xbc521821, 0x72212007, 0x333c06a2, 0x31176940, 0x10060493, 0x033c0102, 0x0ccf5d03, 0x01010a28, 0x040e280a, 0x0e040b0b, 0x0c2b0b85, + 0x0602d88f, 0x15060206, 0x82150505, 0x20098706, 0x0fa05cf8, 0x35eb2031, 0x02035e1f, 0x04040111, 0x08080795, 0x8b23d008, 0x250b8545, 0x06120123, + 0x458a1406, 0x14215984, 0x06ee60fe, 0x31089c7e, 0xff060004, 0x018001c0, 0x001100c0, 0x00520044, 0x48180065, 0x835908b1, 0x17162605, 0x010f1716, + 0x05334e17, 0x21054543, 0x7a662627, 0x011f2a06, 0x37363533, 0x30151716, 0x2e018531, 0x26070615, 0x26233527, 0x3707012f, 0x52011f16, 0x2622069e, + 0xf5661337, 0x26378406, 0x1732013b, 0x18010716, 0x2310cd50, 0x0e32132d, 0x4a2f9785, 0x07150718, 0x1e1a1615, 0x021f1c11, 0x83021616, 0x27240803, + 0xa20e0e1a, 0x2a050524, 0x0b0b041a, 0x06070d0d, 0x06243803, 0x060a3015, 0x08190205, 0x041c1415, 0x0207070c, 0x097b4b18, 0x25076056, 0x0e324cb7, + 0x10425914, 0x4a532c05, 0x1a542319, 0x07060d0d, 0x83182b19, 0xf8382155, 0xd8290583, 0xf1141401, 0x2a06068a, 0x83558364, 0x5a01305d, 0x0802138d, + 0x0b090802, 0x10101b5b, 0x480c0909, 0xe035052b, 0x98018002, 0x77006e00, 0x89008000, 0x00009200, 0x011f3601, 0x5bce8332, 0x1620054e, 0x22051371, + 0x82070615, 0x26232402, 0x86233527, 0x5c262007, 0x272605b5, 0x17140706, 0x7c521716, 0x19df4e05, 0x2706072f, 0x36013f26, 0x36373635, 0x023b3137, + 0x24328232, 0x26273736, 0x7e3e1937, 0x08ae5608, 0x3c12c056, 0x11111197, 0x11200303, 0x11110f0f, 0x0c0d0e0e, 0x0d151001, 0x011f010d, 0x010f200f, + 0x30058440, 0x02020e12, 0x0f01011b, 0x1112010f, 0x0e09091d, 0x27038220, 0x09090e40, 0x1e22221e, 0x12370a86, 0x0713150b, 0x36020816, 0x19075236, + 0x1e1e2020, 0x04030319, 0x41490e0e, 0x5820078b, 0x22059241, 0x83581602, 0x20038346, 0x07ff4e30, 0x0e910126, 0x1007110e, 0x112b0482, 0x1017130d, + 0x13130a07, 0x82172919, 0x0f01237c, 0x24831010, 0x0b031226, 0x25180102, 0x22240a83, 0x0b0e1a1b, 0x7d487982, 0x0c4c2306, 0xa8414c0c, 0x29773505, + 0x150b0713, 0x52141231, 0x08053838, 0x02030b07, 0xb9111104, 0x0e005218, 0x70021622, 0x47110257, 0x51380aa3, 0x00005a00, 0x17333525, 0x37161716, + 0x26353736, 0x37363327, 0x012b2726, 0x83056250, 0x07e84c05, 0x16373627, 0x0716011f, 0x20048206, 0x7a851817, 0x34352209, 0x08ad4135, 0x36373228, + 0x3736013d, 0x41823531, 0x23057270, 0x0a10c001, 0x1425dc82, 0x15010220, 0x2d888306, 0x25362050, 0x15600124, 0x21193036, 0x2c461515, 0x02103705, + 0x0d0b1d0b, 0x08120f19, 0x09112216, 0x03150509, 0x54150c08, 0x84500606, 0x021e2106, 0x2d083741, 0x13144ed2, 0x0f070707, 0x121e4c23, 0x4f820f01, + 0x36252429, 0x18052702, 0x83382218, 0x153832f7, 0x2a11130b, 0x322c1515, 0x01011534, 0x3f100d0c, 0x2649820a, 0x1803041d, 0x41850102, 0xa4240534, + 0x8e022e1e, 0x3e823a84, 0x00010035, 0x02c0ff00, 0x00c00140, 0x2500003b, 0x06310706, 0x83172307, 0x272326f3, 0x012f3637, 0x83ec8326, 0x05175e03, + 0x35280583, 0x36253734, 0x011f3217, 0x362a0882, 0x1732013b, 0x17011d16, 0x43820716, 0x09092808, 0x0101200d, 0x7b1b1212, 0x0c0b5126, 0x09090c75, + 0x0a553c07, 0x1b661f06, 0x20011212, 0x0a09090e, 0x0b0b0001, 0x866b090c, 0x0c3528d6, 0x090dc001, 0x83a00109, 0x43402d1f, 0x075d0c0d, 0x530c0908, + 0x340c0947, 0xa0214583, 0x27508201, 0x09e00a0e, 0x255e0701, 0x35823d82, 0x0b2e7924, 0xb384000d, 0x8001e029, 0x6600a001, 0x82130000, 0x17162483, + 0x18141716, 0x2208a07b, 0x1807013b, 0x210bde4a, 0x1e831506, 0x3f323322, 0x2009136c, 0x05b07506, 0x18373421, 0x21098253, 0x0c8a3637, 0x26055874, + 0x010f2223, 0x6c060706, 0x7a29054f, 0x152b2119, 0x0b010d0e, 0x248985e5, 0x0203337c, 0x2c0a8544, 0x20010414, 0x372b3020, 0x020a062b, 0x22c08201, + 0x8e060b0d, 0x327b212c, 0x01282c9b, 0x0d01144c, 0x0d12150e, 0x2205d444, 0x8502011d, 0x100f2708, 0x01202030, 0x3a5b0522, 0xa6052007, 0x03002226, + 0x2a008200, 0x80014002, 0x34002200, 0x45004600, 0x312006a9, 0x3b21ca84, 0x5d7d1801, 0x50fe8309, 0x27240563, 0x31070607, 0x180c276a, 0x72085e98, + 0x0620059c, 0x23082082, 0x3f6f2001, 0x011a1a3f, 0x4a323202, 0x17132708, 0x07101007, 0x08271317, 0x0232324a, 0x3f1a1a01, 0x01406f3f, 0x0eecf718, + 0x4e08e36d, 0x803c0823, 0x2f1c1c01, 0x2d55392f, 0x2f22012e, 0x0d01010d, 0x2e01222f, 0x2f39552d, 0x011c1c2f, 0x50902e90, 0x0031da84, 0x02e0ff00, + 0x00a00100, 0x00190013, 0x17160100, 0x05426213, 0x27262137, 0x37342726, 0x17373613, 0x37170727, 0x14000133, 0x0109d80b, 0x1374180f, 0xd8093507, + 0x4141140b, 0x41301f4f, 0x1001a001, 0x100ea7fe, 0x010f1018, 0x102d1f83, 0x1059010e, 0x7f68c001, 0x00004029, 0x08134b04, 0x60000433, 0x6a006500, + 0x33010000, 0x27352315, 0x06310706, 0x054e4207, 0x22211522, 0x18076263, 0x4d08546e, 0x3520069e, 0x23228583, 0x17962135, 0x08505518, 0x76352121, + 0x03210ad1, 0x20618235, 0x24038225, 0x80000135, 0x08226980, 0x6cff3021, 0x6020066b, 0x088a4718, 0x08be5218, 0x00013022, 0xab481492, 0x8aff2006, + 0x8090241b, 0x82400180, 0x40802403, 0x69014040, 0xc26007b7, 0x88202006, 0x20088810, 0x42139320, 0x19890592, 0x4b82fe20, 0x00340282, 0xff000004, + 0x018002e0, 0x002800a0, 0x00b300aa, 0x370000bc, 0x2205f665, 0x5c26013d, 0x1420084f, 0x3f271283, 0x3d262702, 0x49373601, 0x17270627, 0x06072707, + 0x41272223, 0x3221054f, 0x05ae6c17, 0x21833320, 0x35333622, 0x2305134e, 0x1716021d, 0x2305654b, 0x3726012f, 0x2007b85d, 0x05934531, 0x47022b21, + 0x6882052f, 0x0a823d20, 0x34825882, 0x82013b21, 0x82172049, 0x07062562, 0x1514011d, 0x4705a044, 0x06250543, 0x06331507, 0x21718207, 0xbe502726, + 0x45272005, 0xcf5f05a1, 0x0cb62508, 0x0c120b09, 0x3f055b67, 0x0112121b, 0x0a120d0c, 0x0c080d09, 0x10160207, 0x0c070216, 0x0d0d0808, 0x05061513, + 0x1b121201, 0x28068b46, 0x0e1e02a0, 0x0e0d0112, 0x05624614, 0x15153208, 0x030d0823, 0x44140e04, 0x01012a2a, 0x32331d1e, 0x019f013f, 0x1e33323e, + 0x0f10011d, 0x03160201, 0x221b1a0e, 0x1a1b2240, 0x0216030e, 0x16120f01, 0x05434408, 0x0216082f, 0x20011738, 0x0a181920, 0x13150808, 0x224e854d, + 0x45900f01, 0xfb2207a8, 0x8e820407, 0x46431520, 0x12152e07, 0x07040c0d, 0x08050804, 0x02021604, 0x25088416, 0x0a060732, 0x21830101, 0x2f05ac41, + 0x12251030, 0x0e141009, 0x0f01010d, 0x0f301020, 0x64260682, 0x0c1d1c25, 0x12820503, 0x0f042a08, 0x01463333, 0x1d33323f, 0x1d01011e, 0x3e32331e, + 0x1d172701, 0x11060115, 0x111d0216, 0x1d111212, 0x06111602, 0x03021501, 0x2a4d850a, 0x1a081602, 0x1d121226, 0x87560a01, 0x85d18293, 0x0000220a, + 0x0f761800, 0x00143209, 0x0039001d, 0x17063700, 0x17163736, 0x27342736, 0x21018226, 0x01820706, 0x06171522, 0x23063f4e, 0x31373625, 0x6205e241, + 0x7d4408a9, 0x262c0805, 0x01403527, 0x68684712, 0x0a011247, 0x59371b0b, 0x0b1b3759, 0x3447c00a, 0x33484833, 0x00ff4734, 0x22181801, 0x48656548, + 0x01181822, 0xf0390b8b, 0x0125120c, 0x0c122501, 0x0f0d0e09, 0x1b02021b, 0x090e0d0f, 0x13130128, 0x2d038301, 0x1b1b2528, 0x01012311, 0x1b1b1123, + 0x0c8c6025, 0x102dbb83, 0xb001c1ff, 0x1100c001, 0x61004f00, 0x13557200, 0x32333629, 0x17060733, 0x46011f16, 0x372a0511, 0x36013f36, 0x012f2627, + 0xc1821737, 0x32013b22, 0x21056f70, 0x1282012b, 0x23250283, 0x06010f06, 0x05f74215, 0x9a460120, 0x2336820a, 0x07272627, 0x09b36218, 0x0d012808, + 0x0e14140e, 0x0fc2010d, 0x1f030316, 0x13070707, 0x06031a57, 0x0c0d0d06, 0x041d040b, 0x390e0506, 0x170c051f, 0x42151e18, 0x15340528, 0x18060915, + 0x12113039, 0x09182230, 0x0d0d0a09, 0x3b23170a, 0x46271a85, 0x090b0e1e, 0x4a130b1b, 0x802811dc, 0x14165e10, 0x59350d14, 0x5c835483, 0x0f0f652a, + 0x5224080f, 0x10101b0c, 0x2905dd41, 0x360f1301, 0x01050f13, 0x116d1721, 0x4e172005, 0x013a0609, 0x11061a1b, 0x0000291c, 0xff000003, 0x014002e0, + 0x001000a0, 0x003a0028, 0xdc831300, 0x35023b22, 0x2507dc41, 0x11151637, 0x025d1716, 0x36352505, 0x33373637, 0x21261a84, 0x31373601, 0x81543736, + 0x07062605, 0x013b0706, 0x21728200, 0xf7873010, 0xba187020, 0x0135082a, 0xa5191110, 0x291b1b01, 0x6001f0fe, 0x01201f30, 0x19f50f01, 0x24108302, + 0x700160b0, 0x385e1830, 0x0e0d2808, 0x1b153014, 0x661bd0fe, 0x0534067a, 0x01101119, 0x1b1b29c0, 0x0140fe01, 0x0f301f20, 0x05190201, 0x00200e83, + 0x04370082, 0xc1ff2000, 0xc001df01, 0x2e001c00, 0x6a004000, 0x14010000, 0x53063107, 0x76180c6c, 0x69180a33, 0x3720115f, 0x59104166, 0x5a5f0651, + 0x010f2107, 0x1620f682, 0x0629da82, 0x0607012f, 0x26272627, 0x05e54137, 0x0137262a, 0x1d111290, 0x600e0909, 0x1d2bbc82, 0x28021211, 0x293d3d29, + 0x41c80228, 0x058505b0, 0x0cfd6818, 0x07cbfe27, 0xb20c0c0c, 0x2a0482b2, 0x04040507, 0x0c86860c, 0x93050404, 0x40012613, 0x111c1b22, 0x2c438516, + 0x1b1c1116, 0x24253622, 0x25240101, 0x0c677036, 0x85062068, 0x83822026, 0x5959214c, 0x60835883, 0x83434321, 0x21139358, 0x71180000, 0x0a26092b, + 0x36130000, 0xe0820117, 0x26012738, 0x130f0537, 0x0c105002, 0xb0fd130f, 0xb7010c10, 0x30fe0c10, 0x0982130f, 0x130fd022, 0x20283382, 0x2002c1ff, + 0x8000bf01, 0x27203383, 0x2105ce5d, 0x464a2627, 0x1f162206, 0x064f6201, 0x36013f23, 0x240b823f, 0x3716011f, 0x211c8236, 0x3842013f, 0x16172607, + 0x1706010f, 0x221f8216, 0x8217012f, 0x211f852f, 0x6d43012f, 0x201c8206, 0x870b820f, 0x010f234f, 0x08613435, 0x011d2505, 0x27260706, 0x37080d83, + 0x06070607, 0x2627011d, 0x06be013f, 0x21091613, 0x5039180b, 0x09130104, 0x13051416, 0x3c3c1b09, 0x05130a1a, 0x13091614, 0x39500401, 0x09210b18, + 0x20061316, 0x02200402, 0x24055273, 0x02042002, 0x2837aa20, 0x140c0d30, 0x01060508, 0x2599820f, 0x0c150705, 0x3f82300d, 0x9f013908, 0x13060916, + 0x391a2255, 0x3904011b, 0x16090514, 0x140a1a38, 0x381a0a14, 0x14050916, 0x1b010439, 0x55221a39, 0x16090613, 0x20040554, 0x011b1a28, 0x281b1a01, + 0x54050420, 0x303937aa, 0x1313180e, 0x0404030a, 0x010f0b08, 0x080b0f01, 0x0a030404, 0x0e181313, 0x37478230, 0x07000000, 0xc0ff1000, 0xc0016002, + 0x2f001d00, 0x4a004100, 0x5c005300, 0x2208b54f, 0x84070617, 0x012b2601, 0x37262726, 0x20018336, 0x20058335, 0x76831821, 0x23178211, 0x34353631, + 0x2505c245, 0x16171415, 0x817d2517, 0x10176508, 0x2309615d, 0x0d0e22bc, 0x0e369782, 0x0f0f080d, 0x0a12ee11, 0x070d0908, 0x01070709, 0x01291b1b, + 0x9718441c, 0x0f430f4c, 0x46fe200b, 0x402008f3, 0x2010354e, 0x08b85950, 0x3426c03c, 0x46763234, 0x09121b45, 0x100f0109, 0x201e1c10, 0x524c3535, + 0xfe023636, 0xff550280, 0x20078706, 0x0f954a80, 0x4e084d4d, 0xd2461018, 0x0573590b, 0x0180022d, 0x007000c0, 0x00880076, 0x18a50091, 0x260893e2, + 0x1f161732, 0x77353301, 0x1625085c, 0x1d06010f, 0x06735901, 0x26010f2d, 0x23070623, 0x2b060714, 0x72070601, 0x062305a7, 0x822f2223, 0x0ace4f0c, + 0x6e272621, 0x262005e3, 0x26224583, 0xb9182327, 0x362209ba, 0x14842737, 0x3d173628, 0x15233302, 0x9e4b013b, 0x07264306, 0x26272625, 0x41360527, + 0x152a066c, 0x26312726, 0x36373627, 0x41183233, 0x602008a4, 0x6a28f183, 0x08101014, 0x02116a30, 0x3e07e543, 0x11380a03, 0x16010c0b, 0x3d19152b, + 0x09095023, 0x0303080e, 0x17090906, 0x0a0d0c0a, 0x82070706, 0x0e203010, 0x07070909, 0x0c0d0a06, 0x0909170a, 0x48030306, 0x2885079e, 0xaa120f27, + 0x2771206a, 0x07a2745a, 0x01210787, 0x07734f60, 0x19192529, 0x16230201, 0x8404041d, 0x1919311b, 0x1b800125, 0x0b011212, 0x2278120b, 0x0c052225, + 0x2d06cd44, 0x22171405, 0x2d110b0c, 0x091b0e1b, 0x759d2e02, 0x9e918d83, 0x01060d27, 0x60606020, 0xe87518c0, 0x50c0200f, 0x4021077c, 0x267d8201, + 0x04101a2e, 0x83231918, 0x00002796, 0xff000007, 0x018201c0, 0x00040035, 0x001c000d, 0x00380023, 0x00500044, 0x26331300, 0x5e370727, 0x332a054d, + 0x37360737, 0x34373631, 0x394e2327, 0x06072905, 0x2f331507, 0x33173701, 0x2205664e, 0x4e373233, 0x1433091f, 0x3b163117, 0x07063501, 0x26251506, + 0x27263127, 0x82361723, 0xf052081e, 0x43180c67, 0x291d1926, 0x520f201f, 0x2536365b, 0xfe010124, 0x25240101, 0x0d0f6436, 0x213a3e94, 0x1722442f, + 0x52100116, 0x0209080d, 0x5c4b3332, 0x099d0b0a, 0x1e220d08, 0x40011111, 0x140e0d01, 0x0b113930, 0x1e70010b, 0x0c443214, 0x24161501, 0x3c83f444, + 0x00820820, 0x38274b83, 0x68bc0705, 0x834f0760, 0x151b21fb, 0x4b253882, 0x01023233, 0x304c82b1, 0x242319a7, 0x0e141229, 0x035f010d, 0x00120d0d, + 0x05974900, 0x8001802c, 0x31001f00, 0x00004300, 0x107c2101, 0x4e332008, 0xb5820a09, 0x26113722, 0x83082366, 0x079f4909, 0x87180520, 0x0223108a, + 0x4700fe40, 0x782b077d, 0x0f201327, 0x200f1f1f, 0x87792613, 0xa0fe2113, 0x200f7143, 0x4e2f8801, 0x12230a08, 0x85ff1b12, 0x40222817, 0x1c01011c, + 0x83012240, 0x202b8537, 0x0be47fb0, 0x0a4e1683, 0x00043411, 0x02c0ff00, 0x00c00100, 0x003b0022, 0x006d0054, 0x6c360100, 0x1d2605c9, 0x23070601, + 0xa75c0722, 0x34353b06, 0x3d36013f, 0x33373601, 0x03253732, 0x16021f32, 0x020f1415, 0x2f222306, 0x1b822602, 0x33360223, 0x8f368225, 0x17322213, + 0x082a9337, 0x11d00127, 0x0d0e0810, 0x0f010456, 0xfe050710, 0x0e0f0af1, 0x0b0a2a0a, 0x0f010570, 0x01040623, 0x02062013, 0x0606330f, 0x2b608233, + 0x340e0206, 0x0e340606, 0xa8fe0602, 0x062c1391, 0x02068802, 0x06061b07, 0x0602071b, 0x01300989, 0x080e0dba, 0x04601110, 0x010f1507, 0x0bd0fe05, + 0x0e2c5d82, 0x05630a0f, 0x010f1c07, 0xe6fef604, 0x648e5084, 0x6483da20, 0x0621138e, 0x84598e46, 0x0cbf5663, 0x4b002527, 0x00007000, 0x05c64201, + 0x4e098a56, 0x332b05da, 0x36373621, 0x26272637, 0x82222327, 0x85132011, 0x4f138725, 0x33210700, 0x4e7a1821, 0x21258308, 0x348c3307, 0x16171424, + 0x208c013b, 0x33221182, 0x6c442001, 0x21068206, 0xfd45c0fe, 0x40012105, 0x20071546, 0x20108220, 0x20198240, 0x21108720, 0x228680fe, 0x20830786, + 0x1d88e020, 0x1b8a1486, 0x01203b82, 0x0c857218, 0x976f3e82, 0x201b8207, 0x8a1b83fe, 0x0b7d460f, 0x5b08bf6f, 0x0b850bd3, 0x29063354, 0x00c00100, + 0x003a002d, 0x7e180100, 0x072b0867, 0x27062306, 0x1706010f, 0x82060716, 0x22232106, 0x07ce5318, 0x1736372a, 0x26023f16, 0x01373435, 0x2006d548, + 0x261f8226, 0x0a890117, 0x820a0d0d, 0x0a2608e2, 0x090a0c0c, 0x07050d31, 0xa2180809, 0x14191a13, 0xa1131358, 0x1f1f1f19, 0x0a310f14, 0xdafe0908, + 0x620b0b42, 0x05850909, 0x09b70124, 0x38834009, 0x08010926, 0x150f3109, 0x18242682, 0x581313a1, 0xa2283783, 0x07080818, 0x09310d04, 0xfe275183, + 0x090942ae, 0x850b0b62, 0x7baa1805, 0x00392c0b, 0x00bf00ad, 0x370000d1, 0x50311716, 0x332305ae, 0x82363332, 0x3332230d, 0x10851732, 0x27263728, + 0x23302726, 0xe5442330, 0x07062105, 0x23260f82, 0x07060706, 0x05831714, 0x0e4b0520, 0x5c152009, 0x06220505, 0x3a821415, 0x22313024, 0x37422223, + 0x31322706, 0x07303332, 0x19841522, 0x37323326, 0x31303736, 0x08550019, 0x35343527, 0x33161530, 0x21178316, 0x6b833435, 0x23822d82, 0x23210b83, + 0x24458222, 0x35363330, 0x820d8536, 0x31302375, 0x91453534, 0x786b1805, 0x3621210b, 0x7b05554c, 0x003609a2, 0x291b1b01, 0x1010072d, 0x13030314, + 0x03131f1f, 0x10101403, 0x42422d07, 0x01012f07, 0x17160102, 0x0e172622, 0x30211a1a, 0xb26b201f, 0x41202006, 0x012705da, 0x0c0d0a01, 0x830a0a0a, + 0x050d4225, 0x00830120, 0x0c211182, 0xa414820d, 0x14f02324, 0xc1180d0e, 0x0d230902, 0x5101140e, 0x198708a9, 0x8d83e020, 0x0b0b1229, 0x17010117, + 0x42120b0b, 0x08250782, 0x16172208, 0x2a0d8201, 0x20011110, 0x0a0b301f, 0x1819180a, 0x2007f44a, 0x91878202, 0x090d2186, 0x2482ab8c, 0x090a0a23, + 0x22aa930d, 0x4d800201, 0x07970769, 0x00060035, 0x02c0ff20, 0x00c0015f, 0x00470023, 0x005d0052, 0x5d730068, 0x162109ef, 0x28018217, 0x36373633, + 0x06072627, 0x05625323, 0x27230d84, 0x41032322, 0x2d420887, 0x42222005, 0x1524082d, 0x07060706, 0x17243882, 0x0f260521, 0x2106d44b, 0x0a9f3327, + 0x01024b08, 0x08232331, 0x0211101b, 0x06061223, 0x05082436, 0x08070c05, 0x01191826, 0x09150c0c, 0x050b0302, 0x16227106, 0x12010117, 0x01021d12, + 0x1a221716, 0x16150d14, 0x1b1b291a, 0x16162301, 0x1b1b0101, 0xfe100129, 0x200e13e5, 0x0482110a, 0x60120b22, 0x33080a9f, 0x1e01c001, 0x190d2f1e, + 0x23112019, 0x08230101, 0x01020a0b, 0x26181901, 0x0c141418, 0x020b0b06, 0x170180fe, 0x161e2216, 0x09080615, 0x01161722, 0x0d0c150e, 0x07236684, + 0x83241a1a, 0x0a242777, 0x0e133011, 0x0482120b, 0x0020099d, 0x2909af46, 0x003d0028, 0x00670052, 0x5b473700, 0x08a76608, 0x70551720, 0x07142205, + 0x2d651832, 0x0721220a, 0x884f1836, 0x26072109, 0x18063f7a, 0x880b884f, 0x5e4f1814, 0x2115860c, 0xa9836037, 0x28053441, 0x21301f20, 0x170e1a1a, + 0x82cd8326, 0x086445eb, 0x0207c028, 0x23020505, 0x90500e06, 0x23062205, 0x210f8ea0, 0x108d237d, 0x1b018039, 0x1920291b, 0x0b0a0a18, 0x01201f30, + 0x1b1b1011, 0x17160101, 0x42080822, 0x342607d9, 0x0b410404, 0xff42030d, 0x0d032307, 0x1191410b, 0x13914120, 0x05000023, 0x054b4e00, 0x2800c02a, + 0x3e003300, 0x54004900, 0x222b2d41, 0x5b010f16, 0x1721051d, 0x220a8833, 0x8607011f, 0x07162213, 0x21158827, 0x1a418017, 0x130e2b23, 0x150a3007, + 0x0b300714, 0x0a897815, 0x1387f420, 0x84071322, 0x16411589, 0x0a222521, 0x07147015, 0x1f20048e, 0x1f201289, 0x00201a89, 0x08200082, 0x35088f56, + 0x0032002a, 0x004c0041, 0x00620057, 0x0091006d, 0x07261300, 0xd2180f06, 0x1f260910, 0x16171602, 0xfb78013f, 0x36172208, 0x05006837, 0x06132729, + 0x32333227, 0x8203013b, 0x06072130, 0x2206a751, 0x43133736, 0xb1431f90, 0x06ab420a, 0x5d833520, 0x2413e743, 0x37363736, 0x079d6f8a, 0x370dd46f, + 0x1b021f37, 0x0f0e0e0e, 0x14282f25, 0x08020a24, 0x46470708, 0x01040399, 0x04300082, 0x19211c2f, 0x060a0a0a, 0x14140909, 0x2002011d, 0x431fb043, + 0x4b200ad1, 0x261c0644, 0x01171622, 0x7005bd01, 0x7282059b, 0x350bd670, 0x0f312227, 0x2423261f, 0x21181210, 0x04083f11, 0x32320503, 0x8e8363fe, + 0x0b0c1331, 0x0d1a1718, 0x16171e09, 0xfe06060c, 0x43120bf8, 0x099d07dd, 0x22447420, 0x1701241a, 0x76002216, 0x0233069b, 0x00c00180, 0x00710054, + 0x00980079, 0x00d600b7, 0x7c361300, 0x058305fd, 0x1716172b, 0x07060706, 0x013b1617, 0x840b8216, 0x14152803, 0x17313031, 0x82320239, 0x16372118, + 0x26062b5f, 0x30313431, 0x83272635, 0x21152501, 0x010f2627, 0x4107d35a, 0x012505fd, 0x14011d33, 0x25138207, 0x3d262722, 0x754e2301, 0x3b023a09, + 0x37223701, 0x07373631, 0x23262531, 0x22020f22, 0x011f0607, 0x16171407, 0x29a5823f, 0x27353637, 0x26273637, 0x25822f23, 0x26221b99, 0x3b9c1723, + 0x0501402a, 0x02030502, 0x03022e2e, 0x43080882, 0x0b0b0101, 0x0d094c06, 0x1f1f2edb, 0x04071212, 0x01010102, 0x1f160505, 0x0d060603, 0x050b0b0d, + 0x0a040201, 0xa0fe0907, 0x2a0f0928, 0x1602110e, 0x0c010f0f, 0x0708084c, 0x60800101, 0x200e0909, 0xa009090e, 0x60220786, 0x3a8481a0, 0x02c4fe2d, + 0x0a020303, 0x01010318, 0x82041102, 0x1515210b, 0x04210f82, 0x235a8211, 0x6b0a1803, 0x02221a99, 0x399b7503, 0x10a0013a, 0x2c02050b, 0x0c05022c, + 0x0b0c140f, 0x01094804, 0x14140f0e, 0x0205070f, 0x01275a82, 0x0d090701, 0x82040c0b, 0x820c20b8, 0x08043778, 0x4f06070c, 0x1c080f5e, 0x0f0f0109, + 0x5e0f1316, 0x100b0a06, 0x4818c0fe, 0x078907cd, 0x39834720, 0x0303462a, 0x03030414, 0x03161003, 0x0b274c82, 0x0202010b, 0x82101603, 0x14042110, + 0x1b99199b, 0x37069f50, 0x00c00100, 0x00f300ea, 0x010501fc, 0x1300000e, 0x07222726, 0x14111506, 0x21078559, 0x01833736, 0x011f1627, 0x17163130, + 0x2e0c8432, 0x37323736, 0x16033933, 0x17272627, 0x82353736, 0x0607212f, 0x23230183, 0x49012f26, 0x06230551, 0x8435010f, 0x82332038, 0x28368938, + 0x31303130, 0x39333532, 0x22349f04, 0x8b173117, 0x20339335, 0x207d8222, 0x865d8e35, 0x27262827, 0x30310726, 0x84233007, 0x26072595, 0x31302327, + 0xa482d684, 0x57731720, 0x230b8207, 0x37362726, 0x06844182, 0x27201782, 0x3f221a87, 0xd34b1807, 0x05033308, 0x2c2b140d, 0x23012125, 0x1a191c36, + 0x050c1413, 0x00820104, 0x0a020324, 0x0783110e, 0x0e032b08, 0x1a1a1616, 0x0128331a, 0x282f2b29, 0x03060c13, 0x15130c01, 0x331a1919, 0x2a290129, + 0x16171817, 0x04060d14, 0x01060102, 0x2bb50301, 0x07030228, 0x010e0e08, 0x4c8b2b28, 0x10100f36, 0x04020101, 0x29200f08, 0x29022926, 0x1b1a1c36, + 0x91090b14, 0x5210aa6c, 0x302008aa, 0x2208fa52, 0x180216a8, 0x200a7340, 0x37458264, 0x01020d06, 0x030e010d, 0x06070506, 0x01020206, 0x15040501, + 0x1f14091d, 0x052ddf82, 0x05050706, 0x0d010e02, 0x060d0202, 0x201a8205, 0x22118922, 0x82060405, 0x01022312, 0x28b33e02, 0x02020125, 0x82040321, + 0x24468858, 0x080a121f, 0x24d58308, 0x01020c06, 0x238e830e, 0x18030406, 0x20076353, 0x20088708, 0x88c98748, 0x06934e11, 0x8001c337, 0x1b00bd01, + 0x3f002d00, 0x36370000, 0x37363137, 0x16151736, 0x25018317, 0x07060706, 0xf1442722, 0x8b711806, 0x231b8211, 0x34352631, 0x2a054245, 0x06071415, + 0x30020023, 0x820f4c31, 0x314d2387, 0x0b8b0231, 0x48200121, 0x0787079d, 0x360cfd69, 0x38394ff0, 0x3f10010d, 0x390c030e, 0x38505038, 0x400f0e38, + 0x820d030d, 0x5430200b, 0x057e0fb5, 0x089f780c, 0x25058f50, 0x13000043, 0xbd851633, 0xe3653320, 0x06287b0f, 0x03373622, 0x0ce14118, 0x33161524, + 0xe7821617, 0x27262133, 0x32013f26, 0x013d3231, 0x021610f8, 0x0b2a2b3d, 0x05cf4203, 0x2707084f, 0x2b2a0b03, 0xb816023d, 0x17105b18, 0x1602c023, + 0x2222830b, 0x430e0909, 0x46830808, 0x02160b25, 0x8480e0fe, 0x18842000, 0x200b195b, 0x0a9b4a84, 0x32002022, 0x28067173, 0x27343707, 0x06010f26, + 0x05085307, 0x2b05fa76, 0x07232627, 0x26353637, 0x01072227, 0x20101852, 0x102b5935, 0x08088364, 0xc3ee0122, 0x09070803, 0x1b1b2fb1, 0x563a3902, + 0x1c2f2e37, 0x05040466, 0x014b1e0a, 0x02030c01, 0x2536d2fe, 0x0d07b518, 0x1020bb8b, 0x08073b42, 0x4bbf0123, 0x05040a1e, 0x2f1c6604, 0x3a56372e, + 0x1b1b0239, 0x0709b12f, 0x02c30308, 0x01010c03, 0x240141fe, 0x056e5325, 0x06500786, 0x6260200c, 0x003608f6, 0xff000006, 0x014002c0, 0x000c00c0, + 0x002d0020, 0x00650053, 0xca180095, 0x33220bb5, 0xcd882135, 0x2f074d45, 0x32011135, 0x3d363137, 0x14152301, 0x13331617, 0x20053c47, 0x053a6406, + 0x16013f22, 0x20057345, 0x067b4535, 0x34113528, 0x012b2627, 0x0d192607, 0x11230f91, 0x5c161735, 0x27200a32, 0x20057345, 0x26b2181d, 0x18172009, + 0x2309d343, 0x01012f34, 0x20063f7b, 0x25591840, 0x83fe200d, 0x094037db, 0x0e600e09, 0x2001090a, 0x0707031f, 0x0a0b0d0e, 0x09010103, 0xd3500d09, + 0x4dd0200c, 0x05230ffa, 0x8549140e, 0x29432621, 0x111b1f17, 0x20328211, 0x4210820e, 0x0a2106d1, 0x073e5126, 0x075d5a18, 0x09e14418, 0x2383fe20, + 0x02261684, 0x0f0b0b00, 0x72839bda, 0x03237a83, 0x4108090c, 0x012108b3, 0x0bae5b80, 0x08274018, 0x0548fb22, 0x69831782, 0x01162929, 0x1b111101, + 0x85ca0137, 0x2b602287, 0x23088535, 0x340c103b, 0x37064b43, 0x01c001c1, 0x004400c0, 0x1300005b, 0x17060726, 0x07061516, 0x07222306, 0x2b0a8d50, + 0x17161716, 0x3f262726, 0x32333601, 0x16230a82, 0x8233010f, 0x09835212, 0x5005954e, 0xec4a06ca, 0x33172106, 0x0805b27f, 0x26273654, 0x36372327, + 0x0609ed27, 0x01040305, 0x02221617, 0x121b0c02, 0x210a0112, 0x01011414, 0x03251918, 0x8e160802, 0x0c0f0f0c, 0x0703040b, 0x0b1e101a, 0x271b0b06, + 0x01011a1a, 0x0a211414, 0x1b121201, 0x17010606, 0x0a222417, 0x0308850a, 0x2b370b04, 0x0a8a0904, 0x0728bd82, 0x0d0d0807, 0x01171722, 0x23082c83, + 0x18070f13, 0x19262219, 0x0405031a, 0x0a74141d, 0x0f0e0a0a, 0x1c02350e, 0x1a011214, 0x1922271a, 0x130f0718, 0x0f317e83, 0x1a1a2512, 0x06fdfe06, + 0x0b077007, 0x0c590109, 0x2a098308, 0x59010a0a, 0x0300090b, 0x61ff0000, 0x2e24056f, 0x7d005400, 0x2009db63, 0x32451807, 0x37362109, 0x37450183, + 0xdd8d1805, 0x2726230d, 0xfc5c0615, 0x22232507, 0x013d2627, 0x278d2987, 0x062a4ca4, 0x01070607, 0x3a394840, 0x3e422222, 0x2b012a06, 0x5948492a, + 0x2a494859, 0x2411872b, 0x393a2222, 0x09936048, 0x42079e43, 0x01240528, 0xa01b1212, 0x1e240a86, 0x3f32331d, 0x85058f60, 0x867e1811, 0x01602108, + 0xa5454484, 0x85602006, 0x876a855e, 0x20848513, 0x874f83c0, 0x074e4412, 0x83830f87, 0x0c874020, 0x0b6d1c19, 0x44231387, 0x83022d2d, 0x09c36973, + 0x0d00a02a, 0x4b002c00, 0xa4006a00, 0x2808f759, 0x17161716, 0x25352115, 0x07754d22, 0x2c08394b, 0x3637012f, 0x022f2627, 0x26072326, 0x201e9823, + 0x82199803, 0x3b152238, 0xcd511804, 0x26072612, 0x35272627, 0x17d04b23, 0x83003321, 0x83e020b5, 0xfd2308be, 0x04a001e0, 0x031d0c02, 0x14030102, + 0x04030305, 0x03041919, 0x15050103, 0x04020103, 0x04020c1c, 0x9a04028a, 0x9a96201f, 0x0402261b, 0x402060c0, 0x11521820, 0x1716260a, 0x16172222, + 0x07166a01, 0x0909c02a, 0x090e400e, 0x00018009, 0x37074941, 0x03404040, 0x03010419, 0x1b130304, 0x02020204, 0x02020c0c, 0x131b0303, 0x01231082, + 0x82031904, 0x9a1d9b00, 0x20a0271b, 0x01010f50, 0x3144300f, 0x83302005, 0x82012086, 0x2030218e, 0x4b069563, 0x60200879, 0x290ac35b, 0x002c0021, + 0x00420037, 0x4918004d, 0x1623075d, 0x56373617, 0xd14e08ad, 0x058b4507, 0x0621052c, 0x21171607, 0x27263736, 0x70182307, 0x15880970, 0x26012f23, + 0x08178727, 0x2802202a, 0x237b3d29, 0x1b233232, 0x01201f30, 0x301f2001, 0x1e100f10, 0x2332251e, 0x293d3526, 0x48020228, 0x0216b0fe, 0x50011602, + 0x40210583, 0x84058370, 0x8bc02004, 0x02882317, 0x19836816, 0x01210482, 0x23368330, 0x1f01011f, 0x54834c83, 0x121f0427, 0x1f1f0113, 0x206a8301, + 0x07e15ae0, 0x08876020, 0x48200787, 0x4207865b, 0xc03105c3, 0xc0010002, 0x23001100, 0x63003f00, 0x00007700, 0x266d1801, 0x55152010, 0x99631047, + 0x17162105, 0x2405bb48, 0x06070615, 0x07f25307, 0x44373521, 0x3023053c, 0x18313031, 0x830b7255, 0x2013831f, 0x20088335, 0x82518611, 0x0706210c, + 0x49833e82, 0x490d8c57, 0x82180f46, 0x02220919, 0xce5b110d, 0x0e112307, 0xf8833001, 0x1d010122, 0x09800b19, 0x01011d36, 0x301f2001, 0x010d0e14, + 0x0f011e02, 0x021e010f, 0x140e0d01, 0x200d1647, 0x0fde4940, 0x080a4c18, 0x101aa524, 0x2c421c15, 0x151c2507, 0x70a51a10, 0xa5214e83, 0x37dc1901, + 0x2178830f, 0x5a8360fe, 0xd30c2129, 0x0f01010f, 0x83210cd3, 0x3f641874, 0x0f574108, 0x2010f648, 0x0f4e6933, 0x84251721, 0x49152011, 0x3626074c, + 0x34373637, 0xd14a2627, 0x05df5605, 0x16171622, 0x4a05216f, 0x845b07ef, 0x31302507, 0x13353130, 0x4c6f518a, 0x18162005, 0x4508dbd2, 0xf8900530, + 0x8390fe21, 0x0e0121b4, 0x21095441, 0xd483020d, 0x5c41f584, 0x48a02013, 0x5d410727, 0x0c1a4b08, 0x200fb841, 0x412e8320, 0x74831154, 0x2205bb41, + 0x41301f20, 0xff21115c, 0x3b958400, 0x21140e0d, 0x010f330c, 0x0c330f01, 0x02000021, 0xc1ff0000, 0xc0010002, 0x4b003400, 0x4b089f58, 0x172305cf, + 0x4b010f16, 0x9a580532, 0x05cc521e, 0x300fdf47, 0x1b1b0100, 0x0e932f29, 0x0d0d1110, 0x1d070304, 0x08685a12, 0x2b161458, 0xa00a0a4a, 0x0b040308, + 0x09053446, 0xe0200a8a, 0x7527ff83, 0x100b0b0b, 0x573a1010, 0x042e1cbb, 0x07800707, 0x69010a0a, 0x0607080b, 0x09850880, 0x21068759, 0xe382c001, + 0x00102c08, 0x00240018, 0x13000032, 0x21171415, 0x36013f36, 0x21272635, 0x15060722, 0x17162105, 0x27262721, 0x17161707, 0x34353633, 0x5c162127, + 0x172305d1, 0x82323316, 0x37600827, 0x01050023, 0x26080561, 0xfe150207, 0x09090e97, 0xaefe6001, 0x54012812, 0xe2020b2f, 0xb40a0c75, 0xbdfe0f03, + 0x10a20808, 0x06010606, 0x06080a05, 0x930b144e, 0x190ea001, 0x26090a19, 0x02150907, 0x600e0909, 0x0f3f2a36, 0x07458a12, 0x230f0f0a, 0x7605051f, + 0x09242421, 0x4e060707, 0x03001913, 0x2608535d, 0x00370023, 0x6200004c, 0x32250911, 0x16373617, 0x09621817, 0x27222109, 0x2205bf60, 0x52072306, + 0xa18405c0, 0x2b262726, 0x010f2201, 0x3320aa83, 0x1521ba83, 0x6b258214, 0x3f200598, 0x2a05e96d, 0x1b121201, 0x24131118, 0x1a111324, 0x0808f646, + 0x20111632, 0x09101009, 0x10161120, 0x1f111030, 0x0e0a2016, 0x3b0a0a12, 0x152a150f, 0x13053c0f, 0x2b2a2b1d, 0x0f0d961d, 0x68fe160f, 0x010e0f16, + 0x3001960d, 0x2507625e, 0x02021d0f, 0x0d870f1d, 0x0d300d22, 0xd0220282, 0x42820818, 0x420f0f39, 0x03431010, 0x01011f60, 0x140fa91f, 0x010f0f16, + 0x14160f0e, 0x6600a90f, 0x0d240bcf, 0x36001c00, 0x3637e782, 0x37363137, 0x16171621, 0x11211117, 0x010f2605, 0x06072627, 0x8216011f, 0x052721c9, + 0x33231c84, 0x18352115, 0x3e0fd19e, 0x0e0d0160, 0x14200114, 0xfe010d0e, 0x11390180, 0x112f6f11, 0x400e0e11, 0x0e801111, 0x8367fe0e, 0x0110221d, + 0x08cf6bc0, 0x2984fe20, 0x4b700121, 0xd0260811, 0x0e2f3001, 0x03826f0e, 0x40111128, 0x11800e0e, 0x1b83d111, 0x6b808021, 0x00210d97, 0x2eb38203, + 0x013f0200, 0x00340080, 0x009e0069, 0x82360100, 0x95af18a9, 0x1613222f, 0x2232af17, 0xb3351736, 0x0e012334, 0xae181312, 0x25202f77, 0x62b130af, + 0x01131229, 0x190c0c7a, 0x18180201, 0x272509b0, 0x02180d0f, 0xe0fe1901, 0x0e2131a9, 0x2231830c, 0xa9900c0c, 0x22648532, 0x82000c0c, 0x00043000, + 0x01c0ff20, 0x00b0019f, 0x00320011, 0x75560044, 0x052c1367, 0x36313736, 0x3316011f, 0x36013f32, 0x2f057c68, 0x0706010f, 0x26352315, 0x2726012f, + 0x011f3726, 0x0afe5918, 0x3f231082, 0x5e371701, 0x5b64089c, 0x01272a05, 0x14140128, 0x14141f1f, 0x08078701, 0x0a00ff36, 0x240e1010, 0x29333329, + 0x10100e24, 0x02030a0a, 0x1714250d, 0x241417c0, 0x0a03020e, 0x181a3c5a, 0x100c0c0c, 0x0b300c10, 0x32080101, 0x08323d81, 0x300b0101, 0x0c251183, + 0x011a180c, 0x834c8b68, 0x83392054, 0x1e1a2836, 0x020a1a1e, 0x820e0d03, 0x0f1b2f51, 0x0a24240a, 0x100a1b0f, 0x35b90e10, 0x3a851826, 0x0e0a302d, + 0x35480c0f, 0x0f0c4835, 0x85300a0e, 0x25192262, 0x08935000, 0x0a00b62e, 0x40002e00, 0x00005200, 0x37362101, 0x17230182, 0x52011f16, 0x5b510520, + 0x012b2307, 0xc4541415, 0x27222106, 0xe482f182, 0x35013b22, 0x4711a150, 0xde620586, 0x0001320b, 0x1a0300ff, 0x0c0a2c1a, 0x8075070b, 0x1b121201, + 0x05574a20, 0x1111202b, 0x29291f20, 0x292a2c2d, 0x230b821f, 0xd0fea0e0, 0x2010e25d, 0x0f594f50, 0x3800012b, 0x061e2e2e, 0xa90a0302, 0x09f64c20, + 0x24264030, 0x0e1b1b23, 0x1b0e0f0f, 0x2624231b, 0x6947fe40, 0x6f3f8708, 0x628708c9, 0x0cab6c18, 0x5e004c2c, 0x7e006d00, 0x00008d00, 0x8a5f2213, + 0x17062808, 0x17363716, 0x82161732, 0x830b8211, 0x1837200d, 0x2508598d, 0x36372627, 0x13833633, 0xed842720, 0x05823520, 0x25822320, 0x0aa67418, + 0x48273621, 0x765c0b54, 0x36072105, 0x23222e83, 0x48820726, 0x37361722, 0x08846d82, 0x82323321, 0x3736250c, 0x06172326, 0x08083d5a, 0x2207263a, + 0x0203ad07, 0x2211022e, 0x0114341f, 0x2a070402, 0x21263938, 0x06371c1c, 0x38030202, 0x14141e36, 0x0338351f, 0x37060202, 0x26211c1c, 0x062b3839, + 0x14010204, 0x11221e35, 0x03313482, 0x080d0209, 0x311c1c08, 0x081c1c31, 0x09020d08, 0x0f4a41a3, 0x0a9a6708, 0x130b1e02, 0x060e0d15, 0x0a221516, + 0x252c6a07, 0x140a0603, 0x14161614, 0x03060a14, 0x0b8b2b26, 0x070a021e, 0x1615220a, 0x150d0e06, 0x02c00113, 0x2128472f, 0x341e1104, 0x04060203, + 0x3d3a0126, 0x03103030, 0x09010207, 0x1a1a121c, 0x01091c12, 0x10030702, 0x3a3d3030, 0x06042601, 0x1e340302, 0x28210411, 0x20822f47, 0x2626242e, + 0x01011a1b, 0x26261b1a, 0xfe010924, 0x3610ca5f, 0x1c161292, 0x03010c28, 0x1924242b, 0x62010c0a, 0x130b0c11, 0x8206060b, 0x110c3004, 0x161c28f6, + 0x190a0c12, 0x032b2424, 0x82000c01, 0x47032000, 0x1d2c0843, 0x5e003700, 0x14130000, 0x33163117, 0x5205904f, 0x2621071b, 0x24018327, 0x1d060722, + 0x8b1d8801, 0x2019821b, 0x09395215, 0xfa671520, 0x1523210b, 0x9a4b4b84, 0xc0352407, 0x4e0e0909, 0x084a05d1, 0x26012405, 0x7f414127, 0x362206b9, + 0x8a4f2425, 0x36022706, 0x090e5236, 0xe3496009, 0x068c6c08, 0x07820220, 0xa0461020, 0x0e142508, 0xa001010d, 0xbd702782, 0x05094305, 0x41415024, + 0x46832627, 0x0f826020, 0x25240123, 0x23168536, 0x02363652, 0x3b887182, 0x193de021, 0x880a6b6a, 0x276f8367, 0x000300e0, 0x01c0ff00, 0x00250182, + 0x00300023, 0x3f41183d, 0x35332108, 0x08df6018, 0x1526d484, 0x37363521, 0x16853736, 0x11210722, 0x08c35218, 0x06171123, 0xae441807, 0x80232108, + 0x80208182, 0x3020ed85, 0xfe20b283, 0x82053567, 0x82802011, 0x0e0d2464, 0x83a0fe14, 0x0f502416, 0x7c0f0101, 0x01210511, 0x201c82c0, 0x07da4320, + 0x30209483, 0x11833984, 0xf141c020, 0x10012209, 0x21318740, 0x9219010f, 0xb7c10837, 0x37362126, 0x21272635, 0x0121b7ab, 0x21bd8320, 0xb9abe0fe, + 0x32834020, 0x00220482, 0x4f4b0007, 0x00263707, 0x0035002e, 0x0041003c, 0x004b0046, 0x33360100, 0x14151716, 0xc8430507, 0x37162b05, 0x36373625, + 0x2726013d, 0xef762726, 0x3627320b, 0x0f061737, 0x37172701, 0x26071716, 0x06011f27, 0x24128207, 0x27071707, 0x3c048937, 0x07055d01, 0xfe0d0215, + 0x060517ab, 0x18190f0e, 0x23540118, 0x2a021413, 0x252b402b, 0x0813871b, 0x0e331b21, 0x07091410, 0x2e59150d, 0x082e0a0d, 0x033d1d0f, 0x02093e07, + 0x3d1e3c56, 0x1e3d6c1f, 0x83671e3d, 0x3c012804, 0x06150204, 0x83d5090f, 0x2b3a8346, 0x232217d4, 0x2b400629, 0x1117022a, 0x113c1387, 0x3d040951, + 0x3e080402, 0x0d0a2f35, 0x3b070f2e, 0x150f1014, 0x2652100e, 0x43132613, 0x41250483, 0x13251325, 0x0b611800, 0x002b2209, 0x2af1824a, 0x06310706, + 0x16171407, 0x62313017, 0x372306c9, 0x82343536, 0x272626f0, 0x31060706, 0x830d8216, 0x772620fe, 0x173405f0, 0x2f060716, 0x06033101, 0x013f1617, + 0x36372627, 0x3637011f, 0x34082286, 0x09085b01, 0x0a0b0109, 0x11111113, 0x1111171d, 0x09060609, 0x171b1313, 0x03010809, 0x09090104, 0x08080508, + 0x273f6605, 0x0b0a0a3c, 0x067c370b, 0x870f0c0b, 0x2f0b8334, 0x1423643d, 0x26250115, 0x09ba0137, 0x1d171111, 0x13223f82, 0x31870b0a, 0x40845483, + 0x1b180824, 0x54821313, 0x2e028230, 0x0a0b0b3d, 0xf6fe370a, 0x060b0c0f, 0x0c83343f, 0x112e3c2d, 0x37272020, 0x00012526, 0x440a0000, 0x1d610863, + 0x00523005, 0x0064005b, 0x0076006d, 0x0088007f, 0x18221300, 0x290979e8, 0x07222315, 0x06010f06, 0xfd82011d, 0x82211721, 0x353724cb, 0x82012f34, + 0x012b22f2, 0xd9721835, 0x012b2108, 0x30053575, 0x36272623, 0x37360337, 0x06171621, 0x27262107, 0x83078337, 0x75172013, 0x2622052d, 0x11860727, + 0xa1013f21, 0x51372011, 0x50250691, 0x11121839, 0x05075504, 0x2605116c, 0x11041701, 0x44d91812, 0xe02206a6, 0x3e19a020, 0x20240806, 0x60010f01, + 0xfe200d83, 0x30221382, 0xdd500216, 0x85482005, 0x02162206, 0x20118718, 0x2011a278, 0x07965201, 0x0f0f2028, 0x07079618, 0x34721b46, 0x07462606, + 0x0f189607, 0x07bd520f, 0x21085d5b, 0x6a5880fe, 0x90d82007, 0x8738205e, 0x87382011, 0x20119a82, 0x09bf4800, 0x1900c030, 0x4d003300, 0x00006700, + 0x27262325, 0x53423635, 0x32332105, 0x2a05746a, 0x07161701, 0x16150706, 0x820f1617, 0x1415210a, 0x22064168, 0x84270607, 0x2133292b, 0x06151716, + 0x012f0607, 0x250a2e6e, 0x36372627, 0x20823337, 0x013f2622, 0x2005cf49, 0x224e8336, 0x84173637, 0x01233c2c, 0x021690c8, 0x0c0e0e01, 0x08064928, + 0x06240608, 0x0b284906, 0x10100606, 0x820b0606, 0x82108212, 0x28492a15, 0x010e0e0c, 0xff901602, 0x212c9400, 0x2e959090, 0x3282e020, 0x40201992, + 0x25216f89, 0x826f8605, 0x882ca085, 0x222c829c, 0x74000500, 0x2a080767, 0x000f000a, 0x001f0014, 0x1300004a, 0x06010f06, 0x33171615, 0x35172337, + 0x023b0723, 0x3b152327, 0x34373601, 0x2726012f, 0x18051723, 0x200a5e8f, 0x07434717, 0x08872120, 0x080ad77b, 0x32213721, 0x011a0611, 0x1a5e1302, + 0x1963de5b, 0x1a7d207c, 0x135e9d63, 0x061a0102, 0xfe195a11, 0x46040453, 0x0c2105d8, 0x055a4614, 0x21075852, 0x17850c14, 0xfe04042d, 0x01a00100, + 0x03035410, 0x84800213, 0x13022800, 0x10540303, 0x59208001, 0x6f5a063a, 0x06db560c, 0x6e002021, 0xb757057b, 0x28d78305, 0x002f001a, 0x006b004e, + 0x21db9285, 0x01823736, 0xe1823120, 0x3336372a, 0x26173231, 0x27313035, 0x0148e583, 0x36072305, 0xee932137, 0x27263329, 0x3f363734, 0x5f232601, + 0x2d8505cd, 0x2b056352, 0x07262726, 0x27260706, 0x22230613, 0x27824a82, 0x8b483720, 0x82068505, 0x0e16411b, 0x1c173a3d, 0x0e010201, 0x110ed263, + 0x1a010e11, 0x0c5a1106, 0x11110c0f, 0x06bd0302, 0x41cefe07, 0x3a080f25, 0x0b0230d2, 0x0581100a, 0x33040605, 0x02011f1f, 0x44452d2c, 0x07022d2d, + 0x26170b06, 0x0c0e0a0a, 0x164d1e1a, 0x1716231b, 0x160c0b01, 0x0e0f0f03, 0x0224010e, 0x0d010202, 0x41170505, 0x1b380c4c, 0x01010219, 0x0c188048, + 0x5401010b, 0x02400110, 0x0211100a, 0x090a4b03, 0x2c0d5a41, 0x1b1b4c36, 0x044f191c, 0x33312e04, 0x076a562a, 0x15150f3d, 0x08242d16, 0x1f100e08, + 0x0ff3fe1b, 0x11251415, 0x041b1313, 0x12121313, 0x82032a01, 0x1b1a2400, 0x8200111a, 0x82012000, 0x02002f03, 0x00800100, 0x37000048, 0x16171415, + 0x4e53013b, 0x94332005, 0x37322a06, 0x34013d36, 0x012b2627, 0x25058a35, 0x1d060722, 0x05882301, 0x09001524, 0x39190e09, 0x01200a51, 0x07dc8618, + 0x8306fd44, 0x240383c0, 0x09090ec0, 0x20038620, 0x250c83e0, 0x01010f70, 0x0591700f, 0x2b8b4e82, 0x42870e82, 0x00820020, 0x0f660620, 0x002f2f08, + 0x005c0038, 0x006f0066, 0x13000078, 0xb5502736, 0x05bb5008, 0xea6f2320, 0x82262009, 0x363721c5, 0x26230182, 0x84372327, 0x1f372c28, 0x27262301, + 0x17323736, 0x84171407, 0x33152329, 0x03823335, 0x82272621, 0x05385b23, 0x010f0622, 0x45830c82, 0x306c0320, 0x23352405, 0x83331715, 0x22088246, + 0x82070613, 0x1633374a, 0x1405c917, 0x0a0a0a15, 0x05141609, 0x0e131c09, 0x161c110c, 0x0b6b0e14, 0x09993c05, 0x04150d0e, 0x161a0e24, 0x0e0c111c, + 0xa3081913, 0x0216311d, 0x080c1602, 0x8304045c, 0x20c03724, 0x0e0d01c0, 0x01040414, 0x231e1514, 0x171e1f16, 0x14151e23, 0x14833001, 0xe0c09023, + 0x30238490, 0x31160260, 0x160c071e, 0x15a00102, 0x1e14050a, 0x2768821e, 0x0c141916, 0x150e1311, 0xfe212883, 0x3b2683c0, 0x17e0120e, 0x30061011, + 0x1501151c, 0x0c11130e, 0x269a1712, 0x02161602, 0x0b0d0e0a, 0x50232583, 0x83506060, 0x0d0b3127, 0x0114141f, 0x28281b01, 0x1401011b, 0xf8fe1f14, + 0x80211583, 0x3f738450, 0x38018050, 0x0a260216, 0x00001602, 0xff000003, 0x017f02c2, 0x003700c1, 0x0041003c, 0x27350100, 0x20066254, 0x05604107, + 0x36371625, 0x8237012f, 0x013f2705, 0x16171617, 0x595c1737, 0x010f2308, 0x1c833627, 0x15232f82, 0x82270731, 0x83332019, 0x40012b04, 0x550a1485, + 0x2b0e0e17, 0xca833c1c, 0x0916a437, 0x1c3c1305, 0x0d2a2b34, 0x2a0d0505, 0x3c1c352a, 0x16090614, 0x080482a4, 0x1c3c1544, 0x160d0e2b, 0x85140a55, + 0x6f248224, 0x6f114811, 0x40018224, 0x1105314f, 0x2f2f2fa9, 0x06164d1b, 0x3c091614, 0x0a151406, 0x1d084d16, 0x1818361d, 0x081d1d36, 0x150a164d, + 0x093c0614, 0x16061416, 0x28821a4e, 0x0511a92d, 0x2f2c4f31, 0x4f4f2848, 0x7f2f4828, 0x14260d3f, 0x00001900, 0xb5822213, 0xbe821320, 0x0805d941, + 0x2736133e, 0x17212326, 0x21072127, 0x0a0a0e20, 0x16053202, 0x1efd1f16, 0x32051616, 0x0e0a0a02, 0x133840fe, 0xfe137601, 0x0ba001b0, 0xa9fe0f0b, + 0x0113121e, 0x1e131201, 0x0b0f5701, 0x8080c00b, 0x340cf746, 0x007a0058, 0x00a00095, 0x06070100, 0x1716011d, 0x36013f32, 0x2307823b, 0x06010f14, + 0x15200282, 0x1d260783, 0x16171401, 0x19823633, 0x1f323323, 0x22098201, 0x8226012f, 0x3637290c, 0x17163337, 0x22230706, 0x4706fb45, 0x0622072d, + 0x26821415, 0x42013b21, 0x132305a1, 0x82222326, 0x21048430, 0x2b83012b, 0x1f860720, 0x14171625, 0x82373617, 0x07062257, 0x083b5731, 0x82272621, + 0x445a8212, 0x252005ff, 0x0809fd68, 0x210a016b, 0x040b0109, 0x04032a03, 0x03010a01, 0x1a0c0914, 0x0a12040a, 0x120d0809, 0x09040408, 0x03110407, + 0x01040e06, 0x0c150c05, 0x1d110201, 0x0f01010f, 0x05080b15, 0x0c0a0103, 0x03060709, 0x06060703, 0x07171012, 0x3738020a, 0x0805ac55, 0x0c0d0709, + 0x1b0b0f11, 0x13151812, 0x011c1b10, 0x130d1013, 0x01021615, 0x192b2b36, 0x05cf5c4a, 0x8b05b35c, 0xbbfe260b, 0x0a200b0b, 0x2d04840a, 0x061a9001, + 0x010b090b, 0x01021c02, 0x8f82050a, 0x03090424, 0x9182060a, 0x0d040e3f, 0x0f010908, 0x15060808, 0x030d0305, 0x0407060c, 0x0102110d, 0x08010f0f, + 0x0a050305, 0x248c8201, 0x07030404, 0x2a208206, 0x221e1012, 0x063a3a56, 0x8204ccfe, 0x170a288e, 0x14120b0f, 0x821a0421, 0x1602288b, 0x1c050304, + 0x91642d1d, 0x25908584, 0x200a0a9b, 0x04840b0b, 0x02000039, 0x60000000, 0x2001c001, 0x27001300, 0x22370000, 0x15063107, 0x18161714, 0x210992b0, + 0x13923521, 0x20066b4d, 0x06987101, 0x210fc471, 0x1e4780fe, 0x09092206, 0x09cd4d0e, 0x73840c85, 0x00e0ff25, 0x85a001c0, 0x34132573, 0x23263127, + 0x220bd866, 0x92331135, 0x18402013, 0x8b0c6771, 0x4786990c, 0x012105db, 0x20e78380, 0x058358ff, 0x41002f2b, 0x26010000, 0x0f06010f, 0x20768402, + 0x05896607, 0x16170622, 0x31790183, 0x25058305, 0x3f273435, 0x02823601, 0x52012f21, 0x3008116b, 0x1111d101, 0x10010430, 0x2424234d, 0x03051118, + 0x270d0a0a, 0x0506221c, 0x33332b2a, 0x01021b23, 0x160d0909, 0x4d161811, 0x30040529, 0xfe280e0e, 0x105e52ff, 0x0eb92f08, 0x0504300e, 0x18164d29, + 0x090d1611, 0x1b020109, 0x2c333323, 0x22060529, 0x0a0d271c, 0x1105030a, 0x23242418, 0x0401104d, 0x28111130, 0x4251a7fe, 0x30c4820f, 0xe0ff0000, + 0x96010002, 0x00002800, 0x011f3613, 0x053f4307, 0x2f363723, 0x20038301, 0x20d18436, 0x08b67215, 0x35272408, 0x37363736, 0x32212477, 0x7003024c, + 0x03050505, 0x01045a3c, 0x34342c17, 0x01012121, 0x100cb42f, 0x82b40c10, 0x212129ec, 0x06940134, 0x034b4e0b, 0x26080082, 0x04040468, 0x044c6206, + 0x081a3f05, 0x3626270a, 0xa92c4106, 0x2ca90b0b, 0x26360641, 0x05000a27, 0xcaff0900, 0x5c01f601, 0x5627058b, 0x9c008a00, 0x5c010000, 0xe5711079, + 0x011f2210, 0x05135032, 0x16171622, 0x0d700c19, 0x84262721, 0x82352001, 0x010f2706, 0x26012f06, 0x07821623, 0x16011f2a, 0x07262707, 0x15070631, + 0x5906ae41, 0x3d87073a, 0xdd843720, 0x82059845, 0x26272113, 0xb9773d84, 0x8c9d1805, 0x08a35a0c, 0x20079241, 0x0f9b4150, 0x0201653d, 0x0114141f, + 0x0d090901, 0x131c1c0c, 0x03090a0e, 0x04090805, 0x0c070704, 0x8711121b, 0x1e230817, 0x03060404, 0x05030206, 0x0d950804, 0x01010909, 0x0c1b1211, + 0x04040707, 0x03050809, 0x130f0909, 0x8a0c1c1c, 0x05032117, 0x0e211785, 0x21178214, 0xce410001, 0x5101200f, 0x91830c54, 0xc0251090, 0x1f141401, + 0x8c628217, 0x2062874a, 0x2a188620, 0x120f0108, 0x180d0c23, 0x83951113, 0x8a2020b0, 0x0f1322b1, 0x94c98909, 0x415b2018, 0x00200f0a, 0x02330082, + 0xc0ff0000, 0xb201f101, 0x44003b00, 0x35170000, 0x56363736, 0x142a059c, 0x1732010f, 0x16011f16, 0x01820607, 0x2f262333, 0x39230601, 0x22272201, + 0x27263127, 0x17060726, 0x201d8416, 0x211d8215, 0x1182012b, 0x7a252721, 0x310807d9, 0x2e2e0100, 0x0d11a94e, 0x210f010d, 0x0d1d1d25, 0x05050831, + 0x04231912, 0x11211a29, 0x05090a14, 0x09172d05, 0x13060c0d, 0x30261f1f, 0x0a0a0106, 0x9984eb10, 0x0808055f, 0x53931032, 0x3c1c4141, 0x11090a06, + 0x15160a12, 0x18812214, 0x18121819, 0x261f0101, 0x0d020206, 0x09060c27, 0x1313200d, 0x0b094702, 0x010b0a10, 0xf0140e0d, 0x2107e14d, 0xcf830100, + 0x01000230, 0x002700c0, 0x26033700, 0x34353435, 0xeb763637, 0x03152606, 0x27260706, 0x82ce8203, 0x320589cd, 0x014b4c27, 0x010c0808, 0x09080dc6, + 0x0f0f044d, 0x821d3d04, 0x1c052105, 0x042a0583, 0x0f051c1d, 0x018f050f, 0x0082020d, 0x08080c30, 0x020d0809, 0x0f33fe03, 0x010f0101, 0x06829050, + 0xb0710e22, 0x0f220582, 0x058270b0, 0x074d0e20, 0x082a080a, 0x15000f00, 0x3b003500, 0x15010000, 0x36373621, 0x011f3237, 0x16171635, 0x33052317, + 0x37362315, 0x21352317, 0x33152315, 0x8a820615, 0x41182320, 0x152b0890, 0x26272623, 0x35333527, 0x82333521, 0x40013b2b, 0x3e27f1fe, 0x10104c3e, + 0x2d2d3720, 0xbefeb01f, 0x1d016042, 0x400140a2, 0xfa83c040, 0x01b02b08, 0x1b1b1212, 0xb0011212, 0x010d0e14, 0x422001c0, 0x0160011d, 0x223b7e9e, + 0x7e020122, 0x1f1f0d79, 0x4680202e, 0x8080803a, 0x21835020, 0x494f8020, 0x83802007, 0x2050243d, 0x42463a80, 0xc02d0907, 0x1900c001, 0x00002f00, + 0x26272125, 0x82b38335, 0x1f162682, 0x3b363701, 0x26b98301, 0x05010f14, 0x41313734, 0x2b08054f, 0x0714011d, 0x22212306, 0x013d2627, 0xe0fe6001, + 0x2702053b, 0x32043b28, 0x200d2626, 0x031e1411, 0x0111121b, 0xc0fe4f11, 0x010e0909, 0x3b065346, 0x090ee0fe, 0x13cd4009, 0x27283b14, 0x1e1d0102, + 0x17147e31, 0x1b111201, 0x40561219, 0x8605ce45, 0x83202028, 0x41042093, 0x1a2b08cb, 0x41003500, 0x00005c00, 0x42070613, 0x172b0576, 0x17161516, + 0x27263736, 0x82012f26, 0x26352304, 0x3a510727, 0x080f4905, 0xcf783320, 0x05212108, 0x24087755, 0x26273523, 0x2c439727, 0x01021658, 0x010d0c0d, + 0x0206060c, 0x200b8b16, 0x06877838, 0x1b29c027, 0x3010011b, 0x052c621f, 0xc0fe3024, 0x44556001, 0xa0102108, 0x3f89338d, 0x02c0012e, 0x11111d16, + 0x080a010a, 0x02160c08, 0xc0230c8c, 0x840e0909, 0x1b012355, 0x3462291b, 0x44402007, 0x6021073f, 0x8a2e8ee8, 0x00003c3b, 0x01000400, 0xfe01c0ff, + 0x10009101, 0x34002300, 0x00004600, 0x23070613, 0x46262722, 0x172705e8, 0x32021f16, 0x18161737, 0x2709117d, 0x3316013f, 0x27262337, 0x5a058b59, + 0x23210581, 0x100e6a07, 0x26d83508, 0x080e9002, 0x1a070109, 0x0d0b281a, 0x2848070c, 0x07481216, 0x2e0d0304, 0x0d2e3535, 0x48070403, 0x90e01612, + 0x07482602, 0x280b0d0c, 0x01071a1a, 0xe00e0908, 0x230f5e44, 0x2f160501, 0x3532de82, 0x081f2c2c, 0x7d0c0303, 0x0c7d0b95, 0x14060c0c, 0x06820614, + 0x500b7d31, 0x0c7d162f, 0x1f080303, 0x0e352c2c, 0x45300909, 0xad180f34, 0x112c0ba3, 0x3b002c00, 0x5d004e00, 0x00006f00, 0x6705f645, 0x06200700, + 0x0d63dd82, 0x36312205, 0x055e4637, 0x20054446, 0x21de8316, 0x49730317, 0x05695905, 0x17013b22, 0x2205b744, 0x82373233, 0x012f263f, 0x27222306, + 0x200c8337, 0x25398227, 0x010f0607, 0x44181716, 0x01291148, 0x36365200, 0x36360202, 0x49078752, 0x3108177d, 0x241b0138, 0x0b0c0c07, 0x09020c27, + 0x1c480e08, 0x03040724, 0x1b1b180d, 0x04030d18, 0x100c2407, 0x48540d0f, 0x0209080e, 0x0c0b270c, 0x1a24070c, 0xf4423802, 0x20058505, 0xff401800, + 0x4a40200f, 0x012a1770, 0x3f102000, 0x0803020c, 0x3a823523, 0x0c3e3128, 0x08050c0c, 0x06820508, 0x07073e2f, 0x0e090931, 0x02082335, 0x103e0c03, + 0x0fea6c21, 0x290a5765, 0x003e0011, 0x005b0049, 0x91190093, 0x03201203, 0x23095768, 0x27262706, 0x2005d84b, 0x0a10463b, 0x20892720, 0x1613232c, + 0x07061117, 0x36112726, 0x3f631737, 0x35032310, 0x3f832223, 0x46860482, 0x56463320, 0x17232609, 0x2b060716, 0x356e1801, 0xb0352112, 0x200f0f42, + 0x05154a38, 0x0d130e35, 0x1e040606, 0x2019190a, 0x19192008, 0x06031f0a, 0x6a140c06, 0x1021069d, 0x07e153c8, 0x3e8ff020, 0x08127828, 0x09020405, + 0x3e830405, 0x1a0b1d29, 0x1a22221a, 0x831e0b1a, 0x0505273d, 0x05040209, 0x60851208, 0x07594718, 0xcf429020, 0xd0fe210f, 0x3506114b, 0x05050f9b, + 0x640d0b0b, 0x1313121e, 0x0d641e12, 0x05050b0b, 0xc4419b0f, 0x01802605, 0xfe160260, 0x24868330, 0x0216d001, 0x33449030, 0x06076050, 0x05011b08, + 0x5f0d0c0b, 0x14141320, 0x0e5f2013, 0x01244082, 0x0706081b, 0x2006b563, 0x20078660, 0x20008200, 0x080f5803, 0x40003b30, 0x00004500, 0x010f2613, + 0x07011f06, 0xc46c2326, 0x20078405, 0x07345315, 0x37273427, 0x36371617, 0x24078435, 0x2f36013f, 0x210c8301, 0x2582012f, 0x27010f23, 0x201d8213, + 0x31128207, 0x11e90717, 0x0e0e6011, 0x2c25105a, 0x0b0e2830, 0x1b52116c, 0x28c48207, 0x0e6c1001, 0x1012150a, 0x30228459, 0x09093759, 0x0d0d0a30, + 0x9f59370a, 0x3e483e48, 0x2e0483a6, 0x0e0eb901, 0x59111160, 0x0a151210, 0x5a106c0e, 0x092e06a8, 0x04040e09, 0x0d0a6c11, 0x252c3028, 0x2285590f, + 0x820a3721, 0x0930263b, 0xfe593709, 0x863f88a1, 0x05e766d7, 0x42001d24, 0xd7825c00, 0x31373422, 0x2905a362, 0x07141716, 0x27222306, 0xce433526, + 0x22098305, 0x70371707, 0x22220d26, 0xd8440727, 0x29248306, 0x37363734, 0x16371736, 0x3c8d3117, 0x079b5518, 0x9b82c020, 0x5b080c5b, 0x83220b24, + 0xbd8b1c68, 0x0b681d32, 0x230e0202, 0x3b3b5829, 0x0e070e02, 0x52a30c0e, 0x5b052b5b, 0x675b0c3f, 0x0aac5b05, 0x2208c45b, 0x411d68bd, 0x1c230b49, + 0x820e0c68, 0x3b022a46, 0x2329583b, 0x0b02020e, 0x06cc5b7d, 0xe05b8e82, 0x052f5f09, 0x0180012e, 0x001500c0, 0x002b0020, 0x01000036, 0x23053e4f, + 0x16171611, 0x2005f957, 0x27e68311, 0x07061507, 0x36352726, 0x3320e882, 0x01260a94, 0x131ab340, 0x4118134d, 0x0983098d, 0x1602a022, 0x20051543, + 0x21089050, 0x2d82c001, 0xcdfe1a22, 0x09dc4118, 0x58210983, 0x982f8330, 0x08002504, 0xc0ff0000, 0x1f37af86, 0x32002800, 0x41003700, 0x50004600, + 0x33130000, 0x16011f32, 0x71061115, 0x2725060e, 0x36373611, 0x938b1837, 0x23353307, 0x35023b07, 0x2515022b, 0x26312734, 0x3315012b, 0x03822735, + 0x6f132321, 0x3320079c, 0x07290e84, 0x16311714, 0x2335013b, 0x21ce8915, 0xa38700ff, 0x090e2029, 0x20204009, 0x82506050, 0x00012a02, 0x200e0909, + 0x4040a040, 0x23168480, 0x60404080, 0xd9951184, 0x2d8dc020, 0x40402023, 0x224085ff, 0x85404040, 0x82002057, 0x5c052000, 0x112808f3, 0x43003500, + 0x69005600, 0x2214cd61, 0x49313734, 0x57180517, 0x372d103f, 0x23013f36, 0x35262722, 0x1f163707, 0x06cd4201, 0x05373425, 0x4b010f16, 0x3631062e, + 0x37363337, 0x05173635, 0x26270607, 0x3726012f, 0x05b26436, 0x07161722, 0x4405085d, 0xfe200b38, 0x9f26b783, 0x170b0b22, 0xe9443c4a, 0x144e2606, + 0x14160102, 0x080d824b, 0x07572f32, 0x0a52150d, 0x090a0d0d, 0x0e430109, 0x0f050102, 0x0f59130f, 0x590f0101, 0x0f050512, 0x1106f3fe, 0x3b0e1111, + 0x0b0b0a0a, 0x06100c3c, 0x0d06080d, 0x11694c18, 0x48825020, 0x1c1c0226, 0x0e3c4619, 0x30086170, 0x1b1b164d, 0x09091113, 0x0f56e10e, 0x0953160c, + 0x28638309, 0x020f0460, 0x010c0b13, 0x0860820f, 0x0e021126, 0x08031e02, 0x3c0d0302, 0x0a0a0b0b, 0x03060b3b, 0x070e0d06, 0x20000300, 0x1f02c1ff, + 0x1100c001, 0x5b002e00, 0x200a3b41, 0x07c35635, 0xee820520, 0x26273723, 0x59f48237, 0x3f22053e, 0x08833601, 0x25270627, 0x17013f26, 0x200c8437, + 0x05894c17, 0x19021f21, 0x220bd042, 0x7c2f010f, 0x3e82060f, 0x17365308, 0x0d01fd01, 0x0d15140e, 0x150d0e0e, 0x010d0e14, 0x140c26fe, 0x164b2ec6, + 0x0c286d03, 0x32090201, 0x0f161581, 0x12070c15, 0xfe2c2c0f, 0x74091381, 0x0d080912, 0x3708060d, 0x1a540202, 0x110a1818, 0x04040c34, 0x0c0c0705, + 0x06123a0c, 0x07071b06, 0x1f830a99, 0x0d120925, 0x410e0706, 0xdd3f1126, 0x45660913, 0x341d174b, 0x11100d27, 0x0a434a0f, 0x1207080a, 0x15080b15, + 0x140cc716, 0x831108cb, 0x1a112a35, 0x0a210101, 0x331b0b0b, 0x8257831a, 0x1d06285f, 0x0c121209, 0x84490303, 0x09122655, 0x050c0e07, 0x086f5300, + 0xc001402a, 0x28001100, 0x73006300, 0x18145d4f, 0x3308bf4e, 0x26273723, 0x13230727, 0x36013f36, 0x39300733, 0x03173201, 0x2405cb6c, 0x3b303132, + 0x2c048401, 0x37363736, 0x06272635, 0x07061507, 0x220b8223, 0x18262734, 0x2010da4e, 0x18198305, 0x200a024f, 0x10234f01, 0x4e186d20, 0x210807d1, + 0x20295818, 0x203b090c, 0x17060736, 0x016a160f, 0x162b3801, 0x87160202, 0x019e0101, 0x141fb701, 0x52440114, 0x1b452605, 0x09090111, 0xe44e180e, + 0x0a17330a, 0x1b33010a, 0x0605152c, 0x1f390d06, 0x18170c05, 0x064f021e, 0x5e403611, 0x0d141416, 0x14585235, 0x017e0a08, 0x18050202, 0xfe01270f, + 0x245483f8, 0x1f141401, 0x826c8308, 0x09b32604, 0x09090e14, 0xeb4e1801, 0xb059230c, 0x4f180f4c, 0x0024080c, 0x00000200, 0x25065f71, 0x0056003a, + 0xad1b1300, 0x21570e47, 0x37363805, 0x32353736, 0x34353637, 0x022b2627, 0x1d060722, 0x06070601, 0x4c272207, 0x14830544, 0x0a525e18, 0x21070622, + 0x07184318, 0x39842120, 0x2a069b4c, 0x291b1b01, 0x2940c040, 0x47011b1b, 0x202005f3, 0x01351883, 0x39180f0f, 0x051e3131, 0x29222316, 0x17090304, + 0x09096002, 0x2220820e, 0x78fe1602, 0x012706d5, 0x191925e8, 0x85a00101, 0x83a02017, 0x82202040, 0x184f8300, 0x2309fd61, 0x0f0f1829, 0x31271182, + 0x15152307, 0x5afe0104, 0x08220697, 0x35850216, 0x19190124, 0xc1180825, 0x002a08b3, 0x2f00a001, 0x9b004c00, 0xa518ec00, 0x032e2ee3, 0x37011f36, + 0x1d161736, 0x26070601, 0xa25c3527, 0x07534605, 0x3930172c, 0x30313001, 0x16171431, 0xd56c3117, 0x26272a06, 0x02392227, 0x27222326, 0x2d378326, + 0x02393033, 0x37321716, 0x35323536, 0x1c823631, 0x23302323, 0x20068226, 0x241c8336, 0x06071617, 0x252a8227, 0x30070607, 0x4c950515, 0x4a853f82, + 0x16313226, 0x30023933, 0x8805e47a, 0x9731204d, 0x51a6184e, 0x0b353126, 0x07232307, 0x0f010b0b, 0x0513010f, 0x13050808, 0x01300983, 0x0602ad0a, + 0x100d0c0d, 0x0f110102, 0x010d1210, 0x27080083, 0x0e06040e, 0x090d0302, 0x01020409, 0x0d050401, 0x0c0b0101, 0x11020210, 0x0c100e0f, 0x0e05030e, + 0x0508090b, 0xf0fe0102, 0x132c398a, 0x0e01020e, 0x010f0504, 0x0a0d0102, 0x0f263792, 0x0f05020e, 0x37830b0c, 0x259aa618, 0x08030f33, 0x03082f2f, + 0x0f600b04, 0x300f0101, 0x1a06061a, 0x3b098330, 0x26040b60, 0x04030101, 0x16080703, 0x01090917, 0x01010502, 0x030d0e06, 0x03010501, 0x01211782, + 0x231a8402, 0x08091715, 0x05240d82, 0x03030e0f, 0x01201682, 0x328a0082, 0x31910620, 0x4c820720, 0x023c318b, 0x20000300, 0x2002c0ff, 0x4600c001, + 0x64005200, 0x36130000, 0x1f163117, 0x011f1602, 0x20087d45, 0x05a97507, 0x2507e67e, 0x22230706, 0xbc462527, 0x011f2908, 0x37262726, 0x35013f36, + 0x27200382, 0x372c1685, 0x3f261703, 0x012f3601, 0x010f0615, 0x0811b74d, 0x0c0cf252, 0x2a19070c, 0x0a7e181e, 0x08080102, 0x480b0d0d, 0x07112147, + 0x04110507, 0x0807560c, 0x0202161c, 0x10101c16, 0x0e11a0fe, 0x110e0e16, 0x08061611, 0x04010117, 0x4a0d0605, 0x082e2201, 0x05190f1e, 0x470c0404, + 0x1102039f, 0x02350702, 0x2501541f, 0x250b3647, 0x140e0d01, 0x2283bd01, 0x06083228, 0x0d086213, 0x67830b0d, 0x20382b08, 0x15160e1c, 0x060f4b16, + 0x16020321, 0x87060216, 0x11160e06, 0x170e0e11, 0x02080306, 0x0c0b0d03, 0x27351904, 0x06021712, 0xa083321c, 0x3da5fe2d, 0x0a4b0909, 0x22122c06, + 0x4cfe1c0c, 0x2d080f57, 0x07000000, 0xc0ff2000, 0xc0011f02, 0x4e004500, 0x60005700, 0x72006900, 0x00008300, 0x16170601, 0x36353717, 0x15171637, + 0x16173637, 0xbc63020f, 0x22058205, 0x4322012b, 0x2727052d, 0x26022f26, 0x5c1f3637, 0x172106cd, 0xfb6a1836, 0x82162008, 0x0714223c, 0x06555327, + 0x50011f21, 0x362205b8, 0x11900737, 0x11861320, 0x43591720, 0x32332505, 0x3d36013f, 0x01262f84, 0x0b040375, 0xe6833007, 0x15172208, 0x3814070a, + 0x02040149, 0x02023005, 0x9615102e, 0x022e0f16, 0x02053002, 0x38490104, 0x150a0714, 0x33268317, 0x040b0631, 0x1b010b03, 0x1b29291b, 0x750b011b, + 0x0f01010f, 0x69610383, 0xca381908, 0x25118811, 0x02090230, 0x04820303, 0x332b3284, 0x100c0606, 0x02162815, 0x82141602, 0x0a15397a, 0x0d0e2018, + 0x472d0506, 0x0e0e2d45, 0x2d47452d, 0x0e0d0605, 0x150a1820, 0x14207b82, 0x28272583, 0x060c1015, 0x70181506, 0x182207af, 0x48842d15, 0x80207f82, + 0x50188687, 0x607d0849, 0x00012108, 0x182a2487, 0x11040503, 0x04110303, 0x2e830305, 0x5d070021, 0x0522086f, 0x67634700, 0x0100270a, 0x35272317, + 0x58181733, 0x115e08e6, 0x07e27105, 0x3736212e, 0x27343736, 0x1f141533, 0x32331601, 0x2305404d, 0x3637013d, 0x2e072450, 0x23011d06, 0x34273435, + 0x17160727, 0x4a171631, 0x378308eb, 0x18072121, 0x18105c51, 0x4108c55f, 0x2c0807b8, 0x452b0117, 0x926b4070, 0x7b291257, 0x010d0e14, 0x09090e20, + 0x0112111d, 0x01301f20, 0x201f3000, 0x132b0b01, 0x0d0d0a36, 0x3709090a, 0x8a771839, 0x0e392507, 0x4d020140, 0x7107de42, 0x0121098c, 0x08577400, + 0xde62d820, 0x87682010, 0x80012711, 0xb36040a0, 0x477225cc, 0x09092705, 0x1a0e6b0e, 0x6b83221b, 0x1a257583, 0x131a3316, 0x05e04937, 0x55533627, + 0x0c0d0b47, 0x28778309, 0x35161247, 0x0403041f, 0x9feb1803, 0x08de6310, 0x6d631820, 0x47118810, 0x01270593, 0x00a00180, 0x19330013, 0x2b154d51, + 0x31373415, 0x32023b36, 0x14151617, 0x240e0950, 0x35262722, 0x20a98200, 0x06195401, 0x076f4c18, 0x08389518, 0x09948b18, 0x984f0120, 0x058e4706, + 0xe0200c89, 0xe0201085, 0x6f492982, 0xc0012b08, 0x2800c001, 0x4b004700, 0x93825600, 0x09ef3f19, 0x16171625, 0x5b060717, 0x2f21061d, 0x073d5401, + 0x36333526, 0x21272637, 0x20050657, 0x26948223, 0x39372627, 0x82372601, 0x8233201f, 0x173808b6, 0x39300716, 0x35150702, 0x16330331, 0x23070617, + 0x37362726, 0x02021618, 0x03030816, 0x24010218, 0x05141b16, 0x01100a09, 0x090a1000, 0x161a1305, 0x19010124, 0x16080303, 0xfe2f2182, 0x01680170, + 0x2f160705, 0x162f5050, 0x8b010507, 0xd838220b, 0x7dae1820, 0xc0013408, 0x02161602, 0x14020295, 0x1a2b4623, 0x0e0f3c0f, 0x820e0d0d, 0x2b1a2506, + 0x03132346, 0x1d821882, 0x0200ff2d, 0x0d070604, 0x0406070d, 0x85050102, 0x01052409, 0x18010180, 0x550aada7, 0x2222094f, 0xfd823000, 0xff825f20, + 0x23054d50, 0x17013b16, 0x1f27fa82, 0x32331601, 0x6636013f, 0x07210666, 0x26088327, 0x16150603, 0x82171617, 0x37262617, 0x34250727, 0x05bc5927, + 0x26012b22, 0x2c821e82, 0x86600f83, 0x36172a05, 0x011f1617, 0x37363736, 0xd1411801, 0x4f500807, 0x0d280f11, 0x0c07500b, 0x040b6d36, 0x0a701203, + 0x400a0d0d, 0x13700909, 0x6d161918, 0x143b6809, 0x1d131301, 0x0c76141c, 0x01943e08, 0x070303ec, 0x05400608, 0x010f3907, 0x02064005, 0x100f0802, + 0x0228293d, 0x1c1b1c55, 0x17251015, 0x68fe0116, 0x31076e42, 0x0d0bbb01, 0x68110f28, 0x19166d09, 0x09701318, 0x5a834009, 0x12702408, 0x6d0b0403, + 0x50070c36, 0x1c1479fe, 0x0113131d, 0x21207614, 0x10fc953e, 0x0102090e, 0x01053f06, 0x8207390f, 0x0708345a, 0x28020303, 0x55013d29, 0x15080707, + 0x22231210, 0x43e0fe2c, 0x637e072b, 0xff012205, 0x05f75a01, 0x55004826, 0x6f006200, 0x19138577, 0x18083607, 0x5b08c140, 0x332c050b, 0x27060735, + 0x36023f26, 0x010f1617, 0x2005f46b, 0x08254415, 0x6b333521, 0x172d0b10, 0x33171615, 0x26353736, 0x07062327, 0x20198b37, 0x066e4a01, 0x5d05c342, + 0xc0320c20, 0x1b121201, 0x0716cb88, 0xe8e81502, 0x15030616, 0x511888d5, 0xc02008c2, 0x40200983, 0x23064e6a, 0x70400f01, 0x0d860382, 0x15899020, + 0x846b0120, 0x05434306, 0x63850820, 0xe8200585, 0x422d4083, 0x1615022a, 0x03303006, 0x2c071615, 0x206e834c, 0x206187a0, 0x205089a0, 0x20678910, + 0x59158910, 0x22080583, 0xc0018001, 0x00002f00, 0x33363713, 0x14151716, 0x1716011f, 0x07061516, 0x26230706, 0x35272627, 0x84013f36, 0x20158218, + 0x09da6817, 0x9a37343b, 0x130b0610, 0x24550f02, 0x31021414, 0x52124a31, 0x01023636, 0x09070335, 0xed481915, 0x14220808, 0x1a012526, 0x0915a201, + 0x14171302, 0x2f23510e, 0x314a332e, 0x36020231, 0x4c045236, 0x02070336, 0xac875915, 0x141c042f, 0x2b352626, 0x00020022, 0x02c0ff00, 0x28938240, + 0x00410020, 0x1f360100, 0x248a8201, 0x22010f06, 0x21938231, 0x3357010f, 0x30372307, 0x8e833731, 0x05840120, 0x31210c86, 0x06455733, 0x30820720, + 0x38082e82, 0x012f0607, 0x0e12b701, 0x2d551a2f, 0x01021e2d, 0x592e2f1d, 0x020b1d23, 0x2d560f03, 0x1e031d2d, 0xfe58302f, 0x315f1987, 0x1f021f31, + 0x014e2727, 0x040c172b, 0x234c1105, 0x080f8225, 0x62333243, 0x012b1114, 0x300c04bf, 0x2a2a1908, 0x312f0331, 0x1c112f31, 0x0810100c, 0x2f2f302c, + 0x2d2d3103, 0x0d36fe1a, 0x31343431, 0x25253003, 0x0d170d18, 0x17061112, 0x03302222, 0x33363631, 0x002c0f09, 0x089f5003, 0x2d00202f, 0x00004a00, + 0x31373613, 0x33213736, 0x4ba31832, 0x15132224, 0x05674223, 0x42067a42, 0x8242067e, 0xeaa21805, 0x30902825, 0x0f01010f, 0x180f0130, 0x2d0dffb5, + 0x1b296001, 0x0909011b, 0x0ec0fe0e, 0xb2420909, 0x1b012506, 0x4001291b, 0x01211188, 0x84369030, 0x0000234c, 0xd7820100, 0x0002e02a, 0x2100a001, + 0x26010000, 0x2406fe61, 0x17161716, 0x08075315, 0x97453520, 0x07262d07, 0x3c230001, 0x0331313c, 0x1b121201, 0x3109cd75, 0x0112121b, 0x3c313103, + 0xa001233c, 0x230e0e01, 0x1c5b3f23, 0x082e5b08, 0x23233f25, 0x46010e0e, 0x6f84059f, 0x18000b27, 0x15250000, 0x06944221, 0x4e171621, 0x21330518, + 0x27262726, 0x00022135, 0x1a0100fe, 0x58100df8, 0x83023b3b, 0x80fe216d, 0x022c5383, 0x2010d000, 0x0209a512, 0x30583b3b, 0x1b831184, 0x42008021, + 0x2c220a6b, 0x57824900, 0xc9830620, 0x27482320, 0x23352109, 0x65185782, 0x2522168e, 0x9e410706, 0xab651819, 0xbffe210b, 0x199d6518, 0x0fd0fe23, + 0x13a14101, 0x6518c020, 0x651808b5, 0x3f201aa7, 0x8212d841, 0x06734e4c, 0x8001c02e, 0x1e00c001, 0x42003000, 0x00005200, 0x20058872, 0x08af6623, + 0x37362125, 0x82113736, 0x832720de, 0x152721e3, 0x5810b87c, 0x32451120, 0x05664e06, 0xc0233582, 0x19181820, 0x1824b2ce, 0x34105856, 0x171601b0, + 0x17224022, 0x0f010116, 0x01010fc0, 0x121101c0, 0x21e9831c, 0x0f44c0fe, 0x40012107, 0x1c220983, 0x00451112, 0x08bd410d, 0xb0202787, 0x4e824584, + 0x0f204682, 0x220d7b65, 0x4f4c002f, 0x3724306b, 0x15171633, 0x06230383, 0x82152307, 0x27262203, 0x24e98235, 0x33373635, 0x26cf4e35, 0x6b432020, + 0x05df410f, 0x20255d4e, 0x14ad4320, 0xd7833020, 0x00000334, 0x0002c0ff, 0x1300c001, 0x3f003500, 0x06010000, 0xf84a3115, 0x2326250b, 0x06020f22, + 0x2007f765, 0x05204817, 0x36013f2c, 0x3130013f, 0x27373130, 0x03822707, 0x07011f22, 0x37202282, 0x01241482, 0xa0090929, 0x8405bb4a, 0x22602706, + 0x02180614, 0x5c4a6307, 0x06633905, 0x141b6c09, 0x342d4a23, 0x4b2d3443, 0x070c4317, 0x02114d09, 0xb7010c07, 0xa0203283, 0x06822485, 0x14239027, + 0x07096c1b, 0x27488562, 0x18020763, 0x4b231306, 0x4a213584, 0x25358244, 0x094d1102, 0xd3490c07, 0xff012105, 0x2a053344, 0x00450033, 0x0060004e, + 0x5a361300, 0x1f230661, 0x82171601, 0x60062096, 0x222205c3, 0xe27a012f, 0x27062205, 0x07e34826, 0x55363721, 0xf55b0677, 0x4d372011, 0x3222086e, + 0x54183137, 0x370808d6, 0x16171415, 0x1d13ef33, 0x07111116, 0x3e240c10, 0x17010222, 0x02011155, 0x1e131302, 0x17301115, 0x0807101c, 0x11142347, + 0x09071c11, 0x03040d2c, 0x51120f13, 0x4f201c29, 0x200b6047, 0x07af4ca0, 0x080ce047, 0x158b012f, 0x33150c0d, 0x0d140c24, 0x36101b24, 0x1d22140c, + 0x0c011415, 0x0c010f22, 0x1d1e1c04, 0x0f0d0c2a, 0x16133b0d, 0x010a0e15, 0x221d0105, 0x05b947cb, 0x0b4d0585, 0x8b902008, 0x02003015, 0xd0ff0000, + 0xb0018001, 0x44001500, 0x5d170000, 0x327608e7, 0x05b94c05, 0x02390326, 0x07262736, 0x262a1c82, 0x23013933, 0x15221531, 0x01870706, 0x36171626, + 0x36373437, 0x22080185, 0x01393533, 0x363652c0, 0x1c1b0102, 0x31312b2c, 0x1b1c2c2b, 0x36360201, 0x0b082352, 0x090c0a0c, 0x83010202, 0x05022700, + 0x0a0d0d0a, 0xe583010a, 0x0c090925, 0x8205090c, 0x83302017, 0x423a2b27, 0x02302f43, 0x432f3002, 0x47843a42, 0x0a0c6626, 0x070a0b09, 0x04283785, + 0x191a0e07, 0x0f272122, 0x222a3982, 0x17171e1e, 0x0203070d, 0xcb730001, 0x40022b07, 0x1700c001, 0x4f003300, 0x55660000, 0x191d2008, 0x25082349, + 0x23353335, 0x38581735, 0x09fb6b05, 0x2106f341, 0x28820607, 0xa9461b9a, 0x12122307, 0x0082c01b, 0x0909e023, 0x063a4c0e, 0x090d6326, 0x430d090e, + 0x9005be41, 0x53012013, 0x602a069d, 0x121b00ff, 0xe0400112, 0x11864040, 0x31838020, 0xa0210384, 0x8a3686fe, 0x37d38212, 0xff100006, 0x01f001e0, + 0x001a00a0, 0x002c0023, 0x00490035, 0x3700005a, 0x21073045, 0x01823637, 0x2605c25e, 0x07141516, 0x42212306, 0x49180890, 0x584e089a, 0x47052008, + 0x424505ff, 0x07062305, 0x19822621, 0x21212582, 0x4b881816, 0x0c3d370b, 0x01010908, 0x2f301413, 0x302f5858, 0x01011314, 0xfe0c0809, 0x8d42537a, + 0x4ff02007, 0x70200762, 0xff271187, 0x0e0d0100, 0x7c800114, 0x098408f4, 0x0f011024, 0x2b82a001, 0x1b121222, 0x20055745, 0x2f4782e0, 0x250d0303, + 0x02222225, 0x25222202, 0x03030d25, 0x60206b82, 0x30824f87, 0xa6420a85, 0x108f7908, 0x10202b84, 0x2f077c45, 0x00000010, 0xff200001, 0x01b001c0, + 0x003800c0, 0x3205cd55, 0x2326011d, 0x07060706, 0x0706011d, 0x06352726, 0x820f2207, 0x16152409, 0x6b16011f, 0x3d210500, 0x20f78301, 0x2e1c8222, + 0x07222326, 0x26273435, 0x0b11e823, 0x84130d0c, 0x0f0f24bf, 0x82020201, 0x01162bff, 0x2c062d01, 0x2536763a, 0xde830124, 0x020d132c, 0x13130e0d, + 0x110b0c0d, 0x0482c001, 0x830ca421, 0x49072115, 0x3820b283, 0x10263182, 0x3b261e13, 0x2c820527, 0x36242524, 0x4b832040, 0x0c130c25, 0x82b40c0d, + 0x20a7825a, 0x08f77002, 0x35002322, 0x2225b682, 0x1d063107, 0x209c8202, 0x249c822f, 0x21150706, 0x26948335, 0x26230607, 0x82013d27, 0x012b2492, + 0x18070603, 0x390b08b1, 0x01212726, 0x09090e00, 0x03060901, 0x22223830, 0x02000201, 0x30382221, 0x12820603, 0x0e092e08, 0x0110ef40, 0x44440f06, + 0x44448383, 0x1001060f, 0xa001e2fd, 0x020e0909, 0x05010964, 0x35351c54, 0x43424043, 0x541c3434, 0x64090105, 0x34468202, 0x1001a0fe, 0x190e0507, + 0x19030319, 0x07050e19, 0x00000110, 0x4aa38204, 0x262a05fb, 0x55004300, 0x00006900, 0xa7820613, 0x4e150721, 0x068705b2, 0x1617162a, 0x35263317, + 0x37363734, 0x21054b41, 0xb7461723, 0x37362119, 0x12cd4d18, 0x18086343, 0x2a094cf1, 0x0d0e1430, 0x010f9001, 0x85900f01, 0x0d012805, 0x0ada140e, + 0x831d1112, 0x68e02508, 0x18010f10, 0x18221d83, 0x0a8a0f01, 0x18680121, 0x320f1f60, 0x0f0a0ae0, 0x0a0a0fda, 0x271b1a01, 0x1a1b2766, 0x83c00101, + 0x01d02140, 0x2007b36f, 0x27688350, 0x1c241310, 0xe060101d, 0x40220b83, 0x548d0f01, 0xd0205f85, 0x0f056118, 0x5582cd20, 0x53845c82, 0x2f415c82, + 0x05134707, 0x7600692d, 0x00008300, 0x31151601, 0x5e010714, 0x342c0596, 0x33360137, 0x26071732, 0x010f0607, 0x07ec5018, 0x39070625, 0x4c060701, + 0x08870820, 0x82233121, 0x06072913, 0x36371617, 0x3330013f, 0x21064a45, 0x0882013f, 0x37200484, 0x1b850888, 0x74032721, 0x02210a4b, 0x6d921826, + 0x012b0808, 0x17e90127, 0x19a0fe17, 0x18182020, 0x18600118, 0x2e192020, 0x14120b0b, 0x0d0a0102, 0x050c0c0c, 0x03010205, 0x01160e0c, 0x870e0d0c, + 0x140d280d, 0x0e0e0c01, 0xa70a0a0e, 0x01fc2c27, 0x11111020, 0x181811ce, 0x87ae1011, 0xe0fe2408, 0x82a90110, 0xfe192476, 0x831717a0, 0x60013a07, + 0x0a461717, 0x0101100a, 0x0c040501, 0x0c0d0e0c, 0x0c0e1601, 0x05020103, 0x270d8705, 0x0502020b, 0x0b0b0e06, 0xfe2125a5, 0x8277837e, 0x11ce2174, + 0x08867783, 0x9f687782, 0x01802808, 0x002100c0, 0x6e000029, 0x0623063d, 0x70070607, 0x162506fc, 0x3b171617, 0x08eb6502, 0x0e820520, 0x013f3625, + 0x184f0121, 0x22097e46, 0x700e1401, 0x362205d5, 0x0a8735b5, 0xf1fe0138, 0x10100769, 0x00ff6907, 0x08082001, 0x0228293d, 0x3d292802, 0xdf550808, + 0xd280210f, 0xd2203b83, 0x74078746, 0x1124050b, 0x3d002000, 0x8308774d, 0x23112182, 0x1425db18, 0xf9493620, 0x0140241a, 0x771b1212, 0x40200554, + 0x1424db18, 0x1816f349, 0x82098a9d, 0x180020bb, 0x20111ddb, 0x17ed49f3, 0xc4830420, 0x0100022b, 0x00150080, 0x0035002a, 0x50c18d40, 0x112208a1, + 0x256e1517, 0x013d3607, 0x23262734, 0x06072221, 0x07061715, 0x36331716, 0x23272637, 0x200a8933, 0x4dc48900, 0x40200919, 0x250fb653, 0x02021610, + 0x04843816, 0x05838820, 0x04843020, 0x83058c4b, 0x09dd5f36, 0x18000121, 0x47080c4a, 0xbd600574, 0x08e26908, 0x200a277a, 0x26c38326, 0x011f3601, + 0x82141716, 0x0714269d, 0x2f222706, 0x22a18201, 0x84352726, 0x37262605, 0x17323336, 0x26138236, 0x33370137, 0x82171615, 0x08c882c2, 0x23070620, + 0x35262722, 0x3f363734, 0x01373601, 0x050d14ac, 0x2a0c010e, 0x0c050901, 0x070b070d, 0x9f83490f, 0x11117c08, 0x1f0e0404, 0x08232b25, 0x1209050e, + 0x285dfffe, 0x140e0d01, 0x5a3d184c, 0x123b6b5b, 0x090a0d0d, 0x1c3a3210, 0x1209bd01, 0x1d1d1a09, 0x1c412c1a, 0x0c010d19, 0x02010c18, 0x02165016, + 0x080c0c01, 0x1c1c140f, 0xfe0c1508, 0x1450baa9, 0x30010d0e, 0x012f2e52, 0x10120d0d, 0x0b040c0c, 0x0500350e, 0xc1ff0000, 0xbf01ff01, 0x32001f00, + 0x56004400, 0x00006800, 0x31072613, 0x18010f06, 0x2a07445c, 0x15301716, 0x36371530, 0x63273637, 0x1321050d, 0x83d98234, 0x23222a0a, 0x06033130, + 0x25371617, 0x11654d27, 0x102b9118, 0x11900720, 0x0d12aa39, 0x010c050c, 0x49485901, 0x2c012b2a, 0x010a0a10, 0x4a2f2e07, 0x7ee65c4b, 0x05280587, + 0x07036505, 0x7c010906, 0x4106bf48, 0x3752058e, 0x0c6e4a0c, 0x01bf012e, 0x2c100a0a, 0x492a2b01, 0x01015948, 0x0d2b5b82, 0x4a4b5c12, 0xfe072e2f, + 0x63050567, 0xfe27057d, 0x06060984, 0x4a8a6502, 0xa0180ba6, 0x30200c43, 0x490c1067, 0x002e08fb, 0x0c00c001, 0x82002f00, 0x23010000, 0x63722627, + 0x0f162705, 0x17163302, 0x25493130, 0x0c855705, 0x30373625, 0x82360239, 0x5f172026, 0x7759060b, 0x52162005, 0x16210584, 0x240e8215, 0x39272627, + 0x08c86c03, 0x16151724, 0x656e3617, 0x24198206, 0x31302726, 0x221c8223, 0x82372235, 0x8217206c, 0x16332361, 0x18823637, 0x01353908, 0x052f8040, + 0xc40a0404, 0x0504040a, 0x0680802f, 0x292a1e07, 0x01022020, 0xfe291b1b, 0x1b1b29c0, 0x20200201, 0x021e2a29, 0x54040403, 0x02121202, 0x07180709, + 0x0b070603, 0x0ce7c119, 0x11030429, 0x02110408, 0x83100e02, 0x08320822, 0x03061908, 0x140b0606, 0x09150114, 0x01010103, 0x04120a09, 0x12030807, + 0x09120307, 0x4760010c, 0x01070809, 0x09080701, 0x04042047, 0x37232212, 0x22595238, 0x38523407, 0x12222337, 0x03020201, 0x02021260, 0x03020612, + 0x190f1c0a, 0x210ad8c1, 0xc1190506, 0x03222ed8, 0xa37c0602, 0xc0013705, 0x2000c001, 0x30002c00, 0x5c005500, 0x64006000, 0x6c006800, 0x9f187000, + 0x17292fc7, 0x07273723, 0x3b161706, 0x053b4e01, 0x70323321, 0x2a0805c2, 0x012b2627, 0x22232627, 0x2223010f, 0x011f0607, 0x17333733, 0x35272307, + 0x3f332707, 0x17231701, 0x1f270733, 0x0f372301, 0x18332701, 0x3225d59f, 0x0e1c0ed5, 0x04041c0e, 0x1c370a04, 0x05090905, 0x820a381b, 0x921c200c, + 0x381b2211, 0x2302821b, 0x2a1b0e0e, 0x45203082, 0x06823582, 0x82370e21, 0x41f38204, 0xa24208c6, 0xb9c81805, 0x18b02911, 0x09301818, 0x08300807, + 0x07220282, 0x0b8c3009, 0x00823020, 0x02841f82, 0x27824820, 0x00181822, 0x04200082, 0x2e087745, 0x001a0004, 0x0035001f, 0x35230100, 0x18251533, + 0x20099774, 0x23ab1821, 0x01212508, 0x21352115, 0xc0241a96, 0x70fe8080, 0x2008c246, 0x08984ba0, 0x90016026, 0x000100ff, 0x20281b96, 0x01602020, + 0x40140e0d, 0x08842f87, 0x20e0fe24, 0x16914020, 0x23077343, 0xc001c001, 0x2729ad82, 0x00003e00, 0x1f163313, 0x0d571801, 0x36372512, 0x03210737, + 0x2908cd5c, 0x0f221703, 0x16170601, 0x4d43013f, 0x16172c05, 0x012f3637, 0x78a42326, 0x68070914, 0xfe2106d3, 0x05e14380, 0x07602608, 0x01841409, + 0x0d021580, 0x13f6130e, 0x15020d0e, 0x50070ac0, 0x11110e0e, 0x16160227, 0x11112702, 0x07500e0e, 0x2085820a, 0x06f16411, 0x27059041, 0x8001110e, + 0x0d13adfe, 0x13250082, 0x07405301, 0x27288350, 0x02168627, 0x27861602, 0x50213e83, 0x0a1f5507, 0xa1001a21, 0x0aab66bf, 0xbc46bfb1, 0x52beaa09, + 0xc0950a8d, 0x23086b53, 0x00be01c0, 0x3d28c383, 0x00005a00, 0x3f363513, 0x2205eb46, 0x54143115, 0x263805a0, 0x35272627, 0x17313534, 0x16311716, + 0x36373617, 0x15233537, 0x3f161707, 0x6f05ad6f, 0x3520069e, 0xf5551883, 0x0160311c, 0x0b0b6014, 0x01011460, 0x36362524, 0x30012524, 0x3c077e4b, + 0x0c530fa0, 0x2438530c, 0x09090124, 0x0d7efe0d, 0x24010909, 0x104f3824, 0x07010107, 0x21028210, 0x0a8a0107, 0x3a400131, 0x04240915, 0x15092404, + 0x2804043a, 0x84242536, 0x04282350, 0x744b3004, 0x10102a07, 0x0a0a5993, 0x2b2b0d59, 0x824b823b, 0x2b3b2553, 0x13010d2b, 0x55844a90, 0x56000021, + 0x80240613, 0x3700a001, 0x2a06415c, 0x1732013b, 0x33111516, 0x18373435, 0x5c0b2576, 0x2225053f, 0x11352627, 0x840b8923, 0x80352923, 0xa00e0909, + 0x6009090e, 0x7f420782, 0x5c129207, 0xfe200746, 0x8207625c, 0x06cf4f32, 0x7e600121, 0xa0200920, 0x235a9682, 0x80022f05, 0x1100c001, 0x4a003800, + 0x6e005c00, 0xbf658000, 0x441f2012, 0x062406e4, 0x011f1617, 0x0c1d5818, 0x58183720, 0x79180c4b, 0x172110c7, 0x7e581833, 0x6d212010, 0x2391105c, + 0x2b11b366, 0x100d3e1b, 0x17530e10, 0x3c190102, 0x24064343, 0x09293c2b, 0x0677470b, 0x01e33522, 0x0e4e4a18, 0x59183820, 0x01210f8b, 0x7422a148, + 0x402a10d0, 0x400a0a31, 0x111c1c13, 0xf1436f26, 0x11802605, 0x21311c0a, 0x22828507, 0x18141fe0, 0x8309bf4a, 0x455a185d, 0x691f9f0f, 0xe03707a7, + 0xa001c001, 0x09000400, 0x13000e00, 0x00002900, 0x35231501, 0x82011d33, 0x82272004, 0x07152203, 0x200f8233, 0x39aa1811, 0x80012114, 0xc0200083, + 0x1f560584, 0x1201290d, 0xc0fe1b12, 0x80806001, 0x40221d82, 0x02828080, 0x56000121, 0x00251348, 0x00001500, 0x088385ff, 0x23001128, 0x47003500, + 0x6b005900, 0x8f007d00, 0xb300a100, 0xd700c500, 0xfb00e900, 0x1f010d01, 0x43013101, 0x67015501, 0x89797901, 0x3732210b, 0x18055a54, 0x20111287, + 0x10765411, 0xd3661520, 0x20358708, 0x20239013, 0x91239011, 0xa2072047, 0x906ba423, 0x9025207d, 0xa2012059, 0x20fb9123, 0x20479037, 0x20479005, + 0x9123a201, 0x0c725547, 0x4a069246, 0x0b910b72, 0x1291c020, 0x49bd1191, 0x18071347, 0x180d2c6d, 0x850d395e, 0x8c8c8c0d, 0x7243b60c, 0x40200c1f, + 0x8b0d777b, 0x0cf64b0d, 0x8c00ff21, 0x8bc02028, 0x8c1b8d0d, 0x8c012036, 0x8d1a8c5f, 0x0d9b5935, 0x288d358c, 0x957c1a8c, 0x8c198c0c, 0x8c01200c, + 0x8c1a8cbc, 0x0000230c, 0xdb430800, 0x001b3408, 0x003f002d, 0x00630051, 0x00870075, 0x37000099, 0x64311714, 0x1123051b, 0x43213736, 0x2124078f, + 0x07060706, 0x210adf7c, 0x23851714, 0x8709f17c, 0x7d232011, 0x23990803, 0xf3422720, 0x11954310, 0x23903520, 0x0123de86, 0x4250010f, 0xfe250533, + 0x161722b0, 0x0c1d4101, 0x6a0cb141, 0x2f82097a, 0x2c43198c, 0x11f4420c, 0x00201185, 0x01210685, 0x7cbd1850, 0x17162308, 0xe318fe22, 0x3a970cfb, + 0x420c1459, 0x95420b44, 0x0c28420c, 0x2905db49, 0xb0013f02, 0x35001100, 0x976f5000, 0x1f362214, 0x053c5701, 0x37021f25, 0x59163336, 0x212a05fe, + 0x3f262722, 0x33373601, 0x766e2537, 0x09747405, 0x4e072721, 0x2624050f, 0x0117023f, 0x08108776, 0x0adafe2a, 0x1b171415, 0x1e1f2732, 0x224f230d, + 0x0910110b, 0x0a080960, 0x1200ff12, 0x10070909, 0x1720130a, 0x0714b0fe, 0x01127053, 0x3d2cc385, 0x0b0c0425, 0x05060d0d, 0x200b3004, 0x19093d57, + 0x08080071, 0x08071422, 0x01012b26, 0x67251616, 0x010d2e22, 0x1010a00f, 0x0f0f010f, 0x01112010, 0x150a8c1e, 0x1508305c, 0x22064f44, 0x836f1a4b, + 0x224e8346, 0x500e2190, 0x38220af7, 0xf9824a00, 0x4e072221, 0x272105d6, 0x06a76c23, 0x82161721, 0x820720f7, 0x331623ad, 0x32503332, 0x33172a05, + 0x35363732, 0x27263534, 0x262d8226, 0x27343537, 0x50032326, 0x2008102f, 0x02030301, 0x0b222242, 0x03720b04, 0x0109080c, 0x4336350e, 0x090d161a, + 0x03030c08, 0x0a222241, 0x20178505, 0x4116890f, 0x01210bbb, 0x8b30a2c0, 0xe0fe215f, 0x320ca75a, 0xff1f0005, 0x012002c0, 0x002400c0, 0x00530041, + 0x8281006a, 0x4a1620dd, 0xca8209e2, 0x7e353721, 0xc782051c, 0x0e842720, 0x013f362f, 0x37011736, 0x32013b36, 0x1633011f, 0x06eb5817, 0xdb182320, + 0x332108fe, 0x10404917, 0x18072521, 0x420b41f1, 0x17250510, 0x06250716, 0x05d0652f, 0x1f161722, 0x37215182, 0x05e76a36, 0x0c140222, 0x83075b7b, + 0x8b602007, 0x18022e0c, 0xfe0c0ea0, 0x11090c57, 0x0c09113e, 0x07db411b, 0x0887c020, 0x54751b21, 0x012c0f47, 0x0b38271f, 0x80070304, 0x040a0a0a, + 0xfe3b0a8a, 0x610b0cad, 0x18010115, 0x131b1a15, 0x1b130a0a, 0x0117161a, 0x01601501, 0x760f0ab9, 0x39220c82, 0x5d877613, 0x602b0783, 0x03200619, + 0x12d7fe09, 0x83120e0e, 0x08164e6b, 0x68200884, 0x1e832a8b, 0x0a5a8229, 0x0870070b, 0x880b0807, 0x0a3b3808, 0x1e17640a, 0x0211161d, 0x0a0a1402, + 0x11020214, 0x171e1d16, 0x7d000064, 0x21200943, 0x36250c82, 0x1f363137, 0x052c5c01, 0x6b070621, 0x3f2105d7, 0x08128201, 0x3637364d, 0x3f262737, + 0x065b0101, 0x580f0e0d, 0x3c01021b, 0x7d65653c, 0x03180a1d, 0x600f0606, 0x3528131b, 0x3119292a, 0x01280915, 0x06060fa7, 0x1d0a1803, 0x3c65657d, + 0x1b02013c, 0x0d0e0f58, 0x15092806, 0x2a291931, 0x1b132835, 0x45020060, 0x1522086b, 0x63503000, 0x2726220d, 0x05467426, 0x2607212a, 0x1f06010f, + 0x27070601, 0xf24c0885, 0x37362105, 0x47559482, 0x0fa34905, 0x07105b31, 0x190a0514, 0x0a14361a, 0x030e300e, 0x750f040c, 0x012405aa, 0xa0012c0e, + 0x1b252c8f, 0x61011212, 0x35278203, 0x1a36140a, 0x14050a19, 0x0e2c1007, 0x1d1e0101, 0x0f3f3233, 0x0f460c04, 0x02c02d05, 0x00c00180, 0x002c0014, + 0x005c003e, 0x20051d58, 0x20af8290, 0x08814221, 0x81422120, 0x26172408, 0x4b0f2223, 0x172709ff, 0x3732023b, 0x45022f36, 0x052210fa, 0x9c181133, + 0x0f7e0ab0, 0x24458405, 0x36373611, 0x3f511837, 0x6615200c, 0x0c8c0b21, 0x09d8e518, 0x07062324, 0x5b550001, 0x05a45b09, 0xdc38ec83, 0x070d0d07, + 0x0b081138, 0x0940080b, 0x500f0706, 0x070e9030, 0x8c600706, 0x210b8d43, 0x254df0fe, 0x05204107, 0x25081a61, 0x01010f08, 0x0498100f, 0x8a500121, + 0x83c0201d, 0x1be0246e, 0x88011212, 0x0b6b3008, 0x0916540b, 0x0d0c5009, 0x0c0d010d, 0x440b900c, 0x20220b41, 0x6c4600ff, 0x40202106, 0x01203587, + 0x8905535d, 0x94682055, 0x8910200a, 0x092b5e92, 0x31052f58, 0x0042002b, 0x07261300, 0x16011706, 0x25273637, 0x82183337, 0x2b2d0c03, 0x06233101, + 0x1727010f, 0x30313530, 0x211c8231, 0x48451327, 0x183b2007, 0x29091782, 0x27072737, 0x100c0f13, 0x05835002, 0x2cedfe3e, 0x07030667, 0x0b0e0d06, + 0x0310040a, 0xa8100909, 0x090718b8, 0x750aa871, 0x33245e21, 0x2a4ed385, 0x112a2606, 0xbb011e36, 0x9806190c, 0x9ed72608, 0x0b0b0d18, 0x2e3d8304, + 0x0c0d0f40, 0x59261701, 0x73280184, 0x41e9fe4a, 0x3e220b7f, 0x3352692b, 0xff272805, 0x010f02e0, 0x822200a0, 0x005e28c5, 0x17000062, 0x44222306, + 0x112a0aa8, 0x33363734, 0x15161732, 0x74713711, 0x010f2306, 0x92763413, 0x271b8409, 0x2b060714, 0x26272601, 0x24068e76, 0x021f1617, 0x05ed4616, + 0x23012f22, 0x3309f646, 0x33073736, 0x0ab80727, 0x580a0e0e, 0x09010109, 0x0a0d0c0b, 0x24068447, 0x0c0d0a20, 0x2113830b, 0xa6828858, 0x09158025, + 0x864a0e07, 0x280c89e7, 0x400a1360, 0x04040510, 0x2300820c, 0x07580707, 0x2c06f874, 0x0a401005, 0x14281413, 0x0a0a1614, 0x83538360, 0x01242247, + 0x0526412e, 0x24d2fe22, 0x0a260f83, 0x600b0d0c, 0x13829601, 0x13130124, 0x0b414910, 0x280a8705, 0x801101c0, 0x0c0c0c20, 0x225c8307, 0x750c0e0e, + 0x202b06ac, 0x90011180, 0x00002828, 0x41000400, 0x13251027, 0x0f222326, 0xdc671801, 0x49112008, 0x11240761, 0x16171617, 0x2005f77d, 0x05a85c17, + 0x24830720, 0x22052047, 0x6d2b2627, 0x232005e1, 0x2105eb58, 0x4088020f, 0x37883320, 0x27260226, 0x23173707, 0x25222741, 0x070e4a33, 0x6b501509, + 0x410c8906, 0x14241c27, 0x96012814, 0x210b2841, 0x2841d2fe, 0x2e012105, 0x22072841, 0x8215600a, 0x10492312, 0x6b481313, 0x410a8706, 0x05322027, + 0xe0ff0700, 0xa0014002, 0x35002200, 0x5b004800, 0x51426e00, 0x09464225, 0x21063159, 0x12b71533, 0x5f429820, 0x44a8201d, 0xf5850702, 0x86060349, + 0x06534306, 0x92580686, 0x42068606, 0xb620215d, 0x4a18cb4c, 0x0c8c0c5d, 0x41000021, 0x36280b33, 0x5e004a00, 0x00007200, 0x4e225d42, 0x46440876, + 0x08ba4b0a, 0x374113b2, 0x052f411f, 0x42313d41, 0x0b20216d, 0x43343741, 0x082e0593, 0x2200a001, 0x59004800, 0x00007200, 0x296e3217, 0x06072506, + 0x3411010f, 0x21051c76, 0x51711115, 0x06072605, 0x3316011f, 0x05934337, 0x83451520, 0x18022008, 0x20089b87, 0x26308235, 0x0722012b, 0x5f371506, + 0xfa440781, 0x43062005, 0x36200aa6, 0x08414518, 0x16171424, 0xc944a017, 0x0e0a221b, 0x21d882c0, 0x38411010, 0x5a302005, 0x10200674, 0x0a831382, + 0x07075e22, 0x39089b46, 0x07291101, 0x0b020208, 0x090c0d0b, 0x19011531, 0x19252519, 0x11110119, 0xd044201b, 0x0c0d251a, 0xa00a600b, 0x1809016b, + 0x210cab98, 0x534103ab, 0x09142308, 0x58830937, 0x42226083, 0x5983241d, 0x1e236183, 0x44091716, 0x434106d7, 0x00732409, 0x4c321300, 0x062505c9, + 0x012f2627, 0x07237f11, 0xc5451120, 0x36012208, 0x06ff4533, 0x16173223, 0x08af571d, 0x43022b21, 0x3b2306b8, 0x83233501, 0x3637220a, 0x07804137, + 0x26051a45, 0x31272607, 0x4d363526, 0x17230533, 0x4d010f14, 0x0120070e, 0x20224541, 0x41e78230, 0x0f830f48, 0x7f115e21, 0x07250958, 0x111b2907, + 0x073d4111, 0x0931152c, 0x0b0b0d0c, 0x07080202, 0x4641a001, 0x0fee440a, 0x0b0c0d24, 0x3d650a60, 0x0ca54e07, 0x09094026, 0x1409ab0e, 0x2508a541, + 0x17093703, 0x3f411e16, 0x1d242207, 0x835c8342, 0x00093964, 0xff200006, 0x016002c0, 0x001b00c0, 0x0038001f, 0x00490040, 0x13000063, 0x450b3942, + 0x17290ce0, 0x37173723, 0x1714011d, 0xba641816, 0x05584207, 0x0722232f, 0x23171506, 0x17163335, 0x3b010f06, 0x27068201, 0x17352307, 0x34313536, + 0x4205c65a, 0x3b6906d3, 0x013f3205, 0x43081590, 0x0504050d, 0x0c0c0c0d, 0x065a0506, 0x82078205, 0x0e04290f, 0x13150942, 0x7d131326, 0x5027c382, + 0x01161722, 0x82091801, 0x4022214c, 0x6029cd82, 0x010f2020, 0x20200f01, 0x21068310, 0x0f69f730, 0x49a92805, 0x0a0d0d0a, 0x83600909, 0x01c02606, + 0xa01301c0, 0x214c8220, 0x5c840406, 0x06205383, 0x20290e82, 0xa00113a0, 0x60802d2d, 0x83488260, 0x16242450, 0x82221511, 0x2167825f, 0x25632040, + 0x97202108, 0xaa214c85, 0x235c854a, 0xc0090960, 0x2e063749, 0x80024000, 0x11006001, 0x42003000, 0x18130000, 0x241064ea, 0x26373617, 0xb87d1827, + 0x36212209, 0x20108b37, 0x058b5623, 0x24074542, 0x07060706, 0x0f696390, 0x61177821, 0x02250894, 0x013d2928, 0x07766160, 0x01230783, 0x8fe87017, + 0x20012130, 0x58078758, 0x2321088f, 0x83348b2d, 0x210f8746, 0x2c8f232d, 0x0221d882, 0x27008200, 0xa0017f02, 0x47002500, 0x2105cd4c, 0xa4823130, + 0x355e3320, 0x22232108, 0x82058877, 0x173221cd, 0x20054f5e, 0x084e5907, 0x17212982, 0x83ca8216, 0x057f5fce, 0x08050f5e, 0x1440013d, 0x0909070b, + 0x14131910, 0x20070e0d, 0x35352b2a, 0x07202a2b, 0x13140d0e, 0x09091019, 0xd1140b07, 0x45343424, 0x23353445, 0x100e2026, 0x2b17040e, 0x5c3e3e25, + 0x243e3e5c, 0x8204172c, 0x26203010, 0x0c028001, 0x02060507, 0x34332828, 0x820a0e25, 0x0e2c0800, 0x28333425, 0x05060228, 0xcf020c07, 0x010e0f13, + 0x130f0e01, 0x090c1d13, 0x2b3a120a, 0x021d1d27, 0x271d1d02, 0x0a12392c, 0x131d0c09, 0x8020db88, 0x3f20db84, 0x9873db82, 0x010f2205, 0x5fdc8436, + 0x16220617, 0xd9823217, 0x2c05a941, 0x27012b26, 0x31272613, 0x30012f26, 0x202d8231, 0x76d68327, 0x690808f6, 0x1004cf01, 0x20d81312, 0x08080806, + 0x29302f3e, 0x02010303, 0x4231322c, 0x0f0f1001, 0x1c020110, 0x1222211d, 0x4c711f02, 0x062c3738, 0x34292a2c, 0x131e1f2b, 0x01090814, 0x021b1212, + 0x14790100, 0x30040b0b, 0x01472009, 0x29212002, 0x01020203, 0x01201f2c, 0x0a0a0202, 0x1c1c3018, 0xfea90c0c, 0x23230287, 0x1d2b062c, 0x3283011d, + 0x1b1a1b27, 0x12121b10, 0x086f5c01, 0xc001802e, 0x16000800, 0x00001f00, 0x23353313, 0x07229682, 0x4918021d, 0x352408cd, 0x3525012b, 0x2325b283, + 0xb0003315, 0x3f561810, 0x83402007, 0xc0c02c08, 0x2d028001, 0xb010442d, 0x83c00001, 0x20202208, 0x22208780, 0x84202080, 0x22668222, 0x6c000500, + 0xbf3205eb, 0x2e001c00, 0x44003900, 0x00004f00, 0x26273601, 0x6d890507, 0x210ac16e, 0x316b0325, 0x83878308, 0x36252223, 0x05336737, 0x07272622, + 0x17200a89, 0x012a0a89, 0x080414ef, 0x0e53fe16, 0xe6841a0b, 0x2309974e, 0x7f1401e5, 0x260fdf42, 0x0f01e0fe, 0x84010f60, 0x01102304, 0x0a83800f, + 0x0a820482, 0x012d1587, 0x14160891, 0x09047e04, 0x6c042113, 0x0d1b4d90, 0x9ffe5122, 0x200ff142, 0x05696990, 0x73068c73, 0x088308ef, 0x290bd766, + 0x002c001a, 0x0050003e, 0x53182500, 0x86181964, 0x6c18113e, 0x7e541174, 0x00022111, 0x17b44818, 0xb318ff20, 0xf35910ad, 0x08cf450f, 0x0e090923, + 0x634918c0, 0x01602117, 0x0ea8b318, 0xae5a2020, 0x0c2a460f, 0x4b5d0020, 0x01802208, 0x06f341c0, 0x00005a25, 0x71272613, 0x05820568, 0x011f1425, + 0x42011d16, 0x342a0969, 0x3d36013f, 0x26273401, 0x04822327, 0x07222324, 0x08891506, 0x77153521, 0x0a9509e6, 0x16027031, 0x14100216, 0x0e010d0e, + 0x0d010e04, 0x86e0140e, 0x0e0e230b, 0xfb471014, 0x065a4d05, 0x0fa03025, 0x980f0101, 0xa8012604, 0x16020216, 0x21428348, 0x4b82149c, 0x515c1421, + 0x088207d4, 0x140e0422, 0x63821482, 0x00820920, 0x39410e20, 0x88482105, 0x2007b96b, 0x41089040, 0x02270807, 0x00a00180, 0x6f380024, 0x6918072b, + 0xd64b083d, 0x4421200a, 0x4d5307ee, 0x33052205, 0x22088235, 0x49333736, 0x1d220887, 0x5e182701, 0x6f6d0aa8, 0x05887409, 0x2a0b2546, 0x17160100, + 0x44500122, 0x4a022d2d, 0xfe2107a0, 0x07c241e0, 0x17221027, 0x40010116, 0x05f54680, 0x0e090923, 0x6dc88240, 0x09230b2e, 0x5260800e, 0x01210fc9, + 0x23358350, 0x442d2d02, 0x6306d356, 0x6983070b, 0x60f0e022, 0xdb5cfa83, 0xe0c02106, 0x06865386, 0x4a18fe20, 0x00271054, 0x01160000, 0x8201000e, + 0x22028307, 0x8617001a, 0x0001240b, 0x86310019, 0x0002240b, 0x86920005, 0x0003240b, 0x8673001f, 0x8a04200b, 0x00052423, 0x86c30032, 0x00062417, + 0x865d0016, 0x000a240b, 0x8697002c, 0x820b200b, 0x8600205d, 0x0010240b, 0x864a0013, 0x8411200b, 0x0003245f, 0x82090401, 0x01342384, 0x0b850023, + 0x32000124, 0x0b865701, 0x0a000224, 0x0b861902, 0x3e000324, 0x0b86db01, 0x238a0420, 0x64000524, 0x17867b02, 0x2c000624, 0x0b86af01, 0x58000a23, + 0x24538702, 0x002e000b, 0x241786f5, 0x01260010, 0x200b8689, 0x085f8311, 0x74746825, 0x2f3a7370, 0x6e6f662f, 0x65776174, 0x656d6f73, 0x6d6f632e, + 0x79706f43, 0x68676972, 0x63282074, 0x82462029, 0x4120211c, 0x0b8b1d85, 0x2036202c, 0x65657246, 0x6c6f5320, 0x18926469, 0x36861283, 0x28833620, + 0x28972d20, 0x2d254185, 0x2e322e36, 0x08238430, 0x65685430, 0x62657720, 0x6d207327, 0x2074736f, 0x75706f70, 0x2072616c, 0x6e6f6369, 0x74657320, + 0x646e6120, 0x6f6f7420, 0x74696b6c, 0x7265562e, 0x17826973, 0x3037372d, 0x3330302e, 0x32363039, 0x8c282035, 0x8576208e, 0x203a2122, 0x29246184, + 0x74006800, 0x70260182, 0x3a007300, 0x01822f00, 0x6f006624, 0x11826e00, 0x77006124, 0x15826500, 0x6d006f22, 0x2e220782, 0x17826300, 0x43006d22, + 0x70280582, 0x72007900, 0x67006900, 0x20223b84, 0x1b822800, 0x20002924, 0x39864600, 0x41002022, 0x17973b8c, 0x36002022, 0x72203584, 0x65205f82, + 0x53200982, 0x6c203f82, 0x64205782, 0x318d4998, 0x6d8d5787, 0x3d823620, 0x2d215185, 0x2051af00, 0x20318a20, 0x269d822d, 0x0032002e, 0x8a30002e, + 0x82542015, 0x20ab83f3, 0x24b38277, 0x00270062, 0x20b78273, 0x22b7826d, 0x82740073, 0x82702009, 0x00702809, 0x006c0075, 0x82720061, 0x0069220f, + 0x20118263, 0x2009826e, 0x832f8273, 0x00612421, 0x8264006e, 0x8274200f, 0x826f2017, 0x826b2027, 0x827420ef, 0x82562063, 0x8272201f, 0x8669204d, + 0x0037222f, 0x20778237, 0x2403822e, 0x00330030, 0x20078239, 0x208b8236, 0x20398235, 0x1a1d4128, 0x458c7620, 0x2d823a20, 0x5b823620, 0x2921c385, + 0x21008200, 0x00840002, 0x00dbff23, 0x8e088419, 0xfb0a0704, 0x00006d05, 0x03010201, 0x08000401, 0x0e000d00, 0x06010501, 0x08010701, 0x0a010901, + 0x0c010b01, 0x0e010d01, 0x10010f01, 0x22001101, 0x12012300, 0x14011301, 0x16011501, 0x18011701, 0x1a011901, 0x1c011b01, 0x1e011d01, 0x20011f01, + 0x22012101, 0x24012301, 0x26012501, 0x28012701, 0x2a012901, 0x2c012b01, 0x2e012d01, 0x30012f01, 0x32013101, 0x34013301, 0x36013501, 0x38013701, + 0x3a013901, 0x3c013b01, 0x3e013d01, 0x40013f01, 0x42014101, 0x44014301, 0x46014501, 0x48014701, 0x4a014901, 0x4c014b01, 0x4e014d01, 0x50014f01, + 0x52015101, 0x54015301, 0x56015501, 0x58015701, 0x5a015901, 0x5c015b01, 0x5e015d01, 0x60015f01, 0x62016101, 0x64016301, 0x66016501, 0x68016701, + 0x6a016901, 0x6c016b01, 0x6e016d01, 0x70016f01, 0x72017101, 0x74017301, 0x76017501, 0x78017701, 0x7a017901, 0x7c017b01, 0x7e017d01, 0x80017f01, + 0x82018101, 0x84018301, 0x86018501, 0x88018701, 0x8a018901, 0x8c018b01, 0x8e018d01, 0x90018f01, 0x92019101, 0x94019301, 0x96019501, 0x98019701, + 0x9a019901, 0x9c019b01, 0x9e019d01, 0xa0019f01, 0xa201a101, 0xa401a301, 0xa601a501, 0xa801a701, 0xaa01a901, 0xac01ab01, 0xae01ad01, 0xb001af01, + 0xb201b101, 0xb401b301, 0xb601b501, 0xb801b701, 0xba01b901, 0xbc01bb01, 0xbe01bd01, 0xc001bf01, 0xc201c101, 0xc401c301, 0xc601c501, 0xc801c701, + 0xca01c901, 0xcc01cb01, 0xce01cd01, 0xd001cf01, 0xd201d101, 0xd401d301, 0xd601d501, 0xd801d701, 0xda01d901, 0xdc01db01, 0xde01dd01, 0xe001df01, + 0xe201e101, 0xe401e301, 0xe601e501, 0xe801e701, 0xea01e901, 0xec01eb01, 0xee01ed01, 0xf001ef01, 0xf201f101, 0xf401f301, 0xf601f501, 0xf801f701, + 0xfa01f901, 0xfc01fb01, 0xfe01fd01, 0x0002ff01, 0x02020102, 0x04020302, 0x06020502, 0x08020702, 0x0a020902, 0x0c020b02, 0x0e020d02, 0x10020f02, + 0x12021102, 0x14021302, 0x16021502, 0x18021702, 0x1a021902, 0x1c021b02, 0x1e021d02, 0x20021f02, 0x22022102, 0x24022302, 0x26022502, 0x28022702, + 0x2a022902, 0x2c022b02, 0x2e022d02, 0x30022f02, 0x32023102, 0x34023302, 0x36023502, 0x38023702, 0x3a023902, 0x3c023b02, 0x3e023d02, 0x40023f02, + 0x42024102, 0x44024302, 0x46024502, 0x48024702, 0x4a024902, 0x4c024b02, 0x4e024d02, 0x50024f02, 0x52025102, 0x54025302, 0x56025502, 0x58025702, + 0x5a025902, 0x5c025b02, 0x5e025d02, 0x60025f02, 0x62026102, 0x64026302, 0x66026502, 0x68026702, 0x6a026902, 0x6c026b02, 0x6e026d02, 0x70026f02, + 0x72027102, 0x74027302, 0x76027502, 0x78027702, 0x7a027902, 0x7c027b02, 0x7e027d02, 0x80027f02, 0x82028102, 0x84028302, 0x86028502, 0x88028702, + 0x8a028902, 0x8c028b02, 0x8e028d02, 0x90028f02, 0x92029102, 0x94029302, 0x96029502, 0x98029702, 0x9a029902, 0x9c029b02, 0x9e029d02, 0xa0029f02, + 0xa202a102, 0xa402a302, 0xa602a502, 0xa802a702, 0xaa02a902, 0xac02ab02, 0xae02ad02, 0xb002af02, 0xb202b102, 0xb402b302, 0xb602b502, 0xb802b702, + 0xba02b902, 0xbc02bb02, 0xbe02bd02, 0xc002bf02, 0xc202c102, 0xc402c302, 0xc602c502, 0xc802c702, 0xca02c902, 0xcc02cb02, 0xce02cd02, 0xd002cf02, + 0xd202d102, 0xd402d302, 0xd602d502, 0xd802d702, 0xda02d902, 0xdc02db02, 0xde02dd02, 0xe002df02, 0xe202e102, 0xe402e302, 0xe602e502, 0xe802e702, + 0xea02e902, 0xec02eb02, 0xee02ed02, 0xf002ef02, 0xf202f102, 0xf402f302, 0xf602f502, 0xf802f702, 0xfa02f902, 0xfc02fb02, 0xfe02fd02, 0x0003ff02, + 0x02030103, 0x04030303, 0x06030503, 0x08030703, 0x0a030903, 0x0c030b03, 0x0e030d03, 0x10030f03, 0x12031103, 0x14031303, 0x16031503, 0x18031703, + 0x1a031903, 0x1c031b03, 0x1e031d03, 0x20031f03, 0x22032103, 0x24032303, 0x26032503, 0x28032703, 0x2a032903, 0x2c032b03, 0x2e032d03, 0x30032f03, + 0x32033103, 0x34033303, 0x36033503, 0x38033703, 0x3a033903, 0x3c033b03, 0x3e033d03, 0x40033f03, 0x42034103, 0x44034303, 0x46034503, 0x48034703, + 0x4a034903, 0x4c034b03, 0x4e034d03, 0x50034f03, 0x52035103, 0x54035303, 0x56035503, 0x58035703, 0x5a035903, 0x5c035b03, 0x5e035d03, 0x60035f03, + 0x62036103, 0x64036303, 0x66036503, 0x68036703, 0x6a036903, 0x6c036b03, 0x6e036d03, 0x70036f03, 0x72037103, 0x74037303, 0x76037503, 0x78037703, + 0x7a037903, 0x7c037b03, 0x7e037d03, 0x80037f03, 0x82038103, 0x84038303, 0x86038503, 0x88038703, 0x8a038903, 0x8c038b03, 0x8e038d03, 0x90038f03, + 0x92039103, 0x94039303, 0x96039503, 0x98039703, 0x9a039903, 0x9c039b03, 0x9e039d03, 0xa0039f03, 0xa203a103, 0xa403a303, 0xa603a503, 0xa803a703, + 0xaa03a903, 0xac03ab03, 0xae03ad03, 0xb003af03, 0xb203b103, 0xb403b303, 0xb603b503, 0xb803b703, 0xba03b903, 0xbc03bb03, 0xbe03bd03, 0xc003bf03, + 0xc203c103, 0xc403c303, 0xc603c503, 0xc803c703, 0xca03c903, 0xcc03cb03, 0xce03cd03, 0xd003cf03, 0xd203d103, 0xd403d303, 0xd603d503, 0xd803d703, + 0xda03d903, 0xdc03db03, 0xde03dd03, 0xe003df03, 0xe203e103, 0xe403e303, 0xe603e503, 0xe803e703, 0xea03e903, 0xec03eb03, 0xee03ed03, 0xf003ef03, + 0xf203f103, 0xf403f303, 0xf603f503, 0xf803f703, 0xfa03f903, 0xfc03fb03, 0xfe03fd03, 0x0004ff03, 0x02040104, 0x04040304, 0x06040504, 0x08040704, + 0x0a040904, 0x0c040b04, 0x0e040d04, 0x10040f04, 0x12041104, 0x14041304, 0x16041504, 0x18041704, 0x1a041904, 0x1c041b04, 0x1e041d04, 0x20041f04, + 0x22042104, 0x24042304, 0x26042504, 0x28042704, 0x2a042904, 0x2c042b04, 0x2e042d04, 0x30042f04, 0x32043104, 0x34043304, 0x36043504, 0x38043704, + 0x3a043904, 0x3c043b04, 0x3e043d04, 0x40043f04, 0x42044104, 0x44044304, 0x46044504, 0x48044704, 0x4a044904, 0x4c044b04, 0x4e044d04, 0x50044f04, + 0x52045104, 0x54045304, 0x56045504, 0x58045704, 0x5a045904, 0x5c045b04, 0x5e045d04, 0x60045f04, 0x62046104, 0x64046304, 0x66046504, 0x68046704, + 0x6a046904, 0x6c046b04, 0x6e046d04, 0x70046f04, 0x72047104, 0x74047304, 0x76047504, 0x78047704, 0x7a047904, 0x7c047b04, 0x7e047d04, 0x80047f04, + 0x82048104, 0x84048304, 0x86048504, 0x88048704, 0x8a048904, 0x8c048b04, 0x8e048d04, 0x90048f04, 0x92049104, 0x94049304, 0x96049504, 0x98049704, + 0x9a049904, 0x9c049b04, 0x9e049d04, 0xa0049f04, 0xa204a104, 0xa404a304, 0xa604a504, 0xa804a704, 0xaa04a904, 0xac04ab04, 0xae04ad04, 0xb004af04, + 0xb204b104, 0xb404b304, 0xb604b504, 0xb804b704, 0xba04b904, 0xbc04bb04, 0xbe04bd04, 0xc004bf04, 0xc204c104, 0xc404c304, 0xc604c504, 0xc804c704, + 0xca04c904, 0xcc04cb04, 0xce04cd04, 0xd004cf04, 0xd204d104, 0xd404d304, 0xd604d504, 0xd804d704, 0xda04d904, 0xdc04db04, 0xde04dd04, 0xe004df04, + 0xe204e104, 0xe404e304, 0xe604e504, 0xe804e704, 0xea04e904, 0xec04eb04, 0xee04ed04, 0xf004ef04, 0xf204f104, 0xf404f304, 0xf604f504, 0xf804f704, + 0xfa04f904, 0xfc04fb04, 0xfe04fd04, 0x0005ff04, 0x02050105, 0x04050305, 0x06050505, 0x08050705, 0x0a050905, 0x0c050b05, 0x0e050d05, 0x10050f05, + 0x12051105, 0x14051305, 0x16051505, 0x18051705, 0x1a051905, 0x1c051b05, 0x1e051d05, 0x20051f05, 0x22052105, 0x24052305, 0x26052505, 0x28052705, + 0x2a052905, 0x2c052b05, 0x2e052d05, 0x30052f05, 0x32053105, 0x34053305, 0x36053505, 0x38053705, 0x3a053905, 0x3c053b05, 0x3e053d05, 0x40053f05, + 0x42054105, 0x44054305, 0x46054505, 0x48054705, 0x4a054905, 0x4c054b05, 0x4e054d05, 0x50054f05, 0x52055105, 0x54055305, 0x56055505, 0x58055705, + 0x5a055905, 0x5c055b05, 0x5e055d05, 0x60055f05, 0x62056105, 0x64056305, 0x66056505, 0x68056705, 0x6a056905, 0x6c056b05, 0x6e056d05, 0x70056f05, + 0x72057105, 0x74057305, 0x76057505, 0x78057705, 0x7a057905, 0x7c057b05, 0x7e057d05, 0x80057f05, 0x82058105, 0x84058305, 0x86058505, 0x88058705, + 0x8a058905, 0x8c058b05, 0x8e058d05, 0x90058f05, 0x92059105, 0x94059305, 0x96059505, 0x98059705, 0x9a059905, 0x9c059b05, 0x9e059d05, 0xa0059f05, + 0xa205a105, 0xa405a305, 0xa605a505, 0xa805a705, 0xaa05a905, 0xac05ab05, 0xae05ad05, 0xb005af05, 0xb205b105, 0xb405b305, 0xb605b505, 0xb805b705, + 0xba05b905, 0xbc05bb05, 0xbe05bd05, 0xc005bf05, 0xc205c105, 0xc405c305, 0xc605c505, 0xc805c705, 0xca05c905, 0xcc05cb05, 0xce05cd05, 0xd005cf05, + 0xd205d105, 0xd405d305, 0xd605d505, 0xd805d705, 0xda05d905, 0xdc05db05, 0xde05dd05, 0xe005df05, 0xe205e105, 0xe405e305, 0xe605e505, 0xe805e705, + 0xea05e905, 0xec05eb05, 0xee05ed05, 0xf005ef05, 0xf205f105, 0xf405f305, 0xf605f505, 0xf805f705, 0xfa05f905, 0xfc05fb05, 0xfe05fd05, 0x0006ff05, + 0x02060106, 0x04060306, 0x06060506, 0x08060706, 0x0a060906, 0x0c060b06, 0x0e060d06, 0x10060f06, 0x12061106, 0x14061306, 0x16061506, 0x18061706, + 0x1a061906, 0x1c061b06, 0x1e061d06, 0x20061f06, 0x22062106, 0x24062306, 0x26062506, 0x28062706, 0x2a062906, 0x2c062b06, 0x2e062d06, 0x30062f06, + 0x32063106, 0x34063306, 0x36063506, 0x38063706, 0x3a063906, 0x3c063b06, 0x3e063d06, 0x40063f06, 0x42064106, 0x44064306, 0x46064506, 0x48064706, + 0x4a064906, 0x4c064b06, 0x4e064d06, 0x50064f06, 0x52065106, 0x54065306, 0x56065506, 0x58065706, 0x5a065906, 0x5c065b06, 0x5e065d06, 0x60065f06, + 0x62066106, 0x64066306, 0x66066506, 0x68066706, 0x6378650b, 0x616d616c, 0x6e6f6974, 0x73616807, 0x67617468, 0x6c6f640b, 0x2d72616c, 0x6e676973, + 0x3813914a, 0x73656c09, 0x68742d73, 0x65066e61, 0x6c617571, 0x72670c73, 0x65746165, 0x4a138472, 0x06273361, 0x63756166, 0x850b7465, 0x642d3a06, + 0x14706972, 0x73756f68, 0x68632d65, 0x656e6d69, 0x69772d79, 0x776f646e, 0x8314850c, 0x6c613498, 0x6d657416, 0x61726570, 0x65727574, 0x7272612d, + 0x822d776f, 0x146e2122, 0x752d1691, 0x72740770, 0x656c6961, 0x61620872, 0x22a88263, 0x86096169, 0x6d752d08, 0x786f620a, 0x7369742d, 0x14657573, + 0x6431d282, 0x6c6f682d, 0x676e6964, 0x64656d2d, 0x6c616369, 0x2714840d, 0x72617073, 0x73656c6b, 0x73250d84, 0x6275622d, 0x200d8262, 0x2a1b8316, + 0x6b616873, 0x69732d65, 0x826c706d, 0x616c2406, 0x8a0f6873, 0x220f8516, 0x82646165, 0x82642021, 0x756f25cf, 0x68156867, 0x2d210f8d, 0x20258373, + 0x2415890e, 0x6b73616d, 0x250e890f, 0x75726976, 0x10411273, 0x7375230d, 0x0e417265, 0x616c2c06, 0x706f7470, 0x6e756c0b, 0x842d7367, 0x700d232b, + 0x8d836f65, 0x7272612a, 0x0b73776f, 0x6e616c70, 0x0c249a86, 0x706d7570, 0x0920da87, 0x732a0c84, 0x0c70616f, 0x65696873, 0x3d85646c, 0x69730425, + 0x85046b6e, 0x2c588216, 0x63746177, 0x30322d68, 0x6f68730a, 0x24aa8570, 0x6f74730b, 0x2c518672, 0x696f7412, 0x2d74656c, 0x65706170, 0x831e8672, + 0x8573209c, 0x8405200b, 0x840b2090, 0x20118505, 0x270b8407, 0x76047365, 0x0c747365, 0x3b820483, 0x65226282, 0xaf841073, 0x72742d2b, 0x2d646e65, + 0x6e776f64, 0x22108b0e, 0x85157075, 0x7520080e, 0x72662d70, 0x622d6d6f, 0x6b636172, 0x610c7465, 0x72747375, 0x732d6c61, 0x096e6769, 0x74686162, + 0x0c270984, 0x63746962, 0x846e696f, 0x620e340c, 0x2d746c6f, 0x6867696c, 0x6e696e74, 0x6f620d67, 0x832d6b6f, 0x616d3604, 0x630d6b72, 0x72656d61, + 0x6f722d61, 0x65746174, 0x64656309, 0x2d348469, 0x6168630c, 0x632d7472, 0x6d756c6f, 0x0c850b6e, 0x6e616729, 0x630c7474, 0x8270616c, 0x6f6230ed, + 0x06647261, 0x766f6c63, 0x630c7265, 0x8265646f, 0x706d232b, 0x43827261, 0x66240c83, 0x116b726f, 0x70281684, 0x2d6c6c75, 0x75716572, 0x0a20f182, + 0x6f204f82, 0x0d289585, 0x7a757263, 0x6f726965, 0x072c6e84, 0x70736964, 0x0979616c, 0x676e6f64, 0x08391184, 0x76656c65, 0x726f7461, 0x6c696613, + 0x2d726574, 0x63726963, 0x782d656c, 0x24b5826d, 0x6f6c660b, 0x24de8672, 0x6c6f660d, 0x2a1f8364, 0x65736f6c, 0x72660a64, 0x84636e61, 0x670c2341, + 0x0c826175, 0x032acf85, 0x0e6e7567, 0x646e6168, 0xc0842d73, 0x676e6923, 0x0554420a, 0x65737530, 0x6e691172, 0x6e616964, 0x7075722d, 0x3c846565, + 0x696b0823, 0x23088470, 0x72616c09, 0x0d244285, 0x6574696c, 0x24085541, 0x6e616d0a, 0x056d4161, 0x616d092c, 0x662d6b73, 0x09656361, 0xec82696d, + 0x6769732b, 0x6f6d0b6e, 0x2d79656e, 0x260f8262, 0x616e0a73, 0x84617269, 0x70082e4d, 0x726f6e61, 0x0b616d61, 0x65736570, 0x20148574, 0x410b8209, + 0x08200506, 0x2205ad42, 0x820b7075, 0x61692289, 0x22338468, 0x82747306, 0x08733f3f, 0x656d6974, 0x656e696c, 0x7572740b, 0x662d6b63, 0x746e6f72, + 0x72757411, 0x6873696b, 0x61876c2d, 0x61760527, 0x13746c75, 0x26ea8277, 0x67616d2d, 0x432d6369, 0x092307be, 0x82656877, 0x776123b1, 0x09820f6e, + 0x636c6523, 0x3f568268, 0x766f6d2d, 0x6f620965, 0x722d6c77, 0x0f656369, 0x73726570, 0x702d6e6f, 0x6e676572, 0x0d746e61, 0x200c7843, 0x230d860b, + 0x6b636172, 0x28441986, 0x63092306, 0x0c416e65, 0x0a2f0805, 0x73756c70, 0x6e696d2d, 0x73087375, 0x626c6961, 0x0774616f, 0x74636573, 0x066e6f69, + 0x69726873, 0x6213706d, 0x697a6172, 0x6e61696c, 0x4265722d, 0x6f4206bb, 0x05494406, 0x69640c2d, 0x61726761, 0x656e2d6d, 0x87137478, 0x2893820c, + 0x65636564, 0x726f7373, 0x22138711, 0x85637573, 0x650d3111, 0x68747261, 0x65636f2d, 0x61696e61, 0x67756209, 0x24057043, 0x6c696610, 0x073b4265, + 0x09299a83, 0x706f6873, 0x636f6c2d, 0x0697436b, 0x766f6328, 0x76116469, 0xb6827269, 0x38850b84, 0x6e611325, 0x426f6863, 0x63250876, 0x6b636568, + 0x46138d19, 0x2d8e0a3e, 0x8605a442, 0x206b832d, 0x09a34519, 0x70752d2f, 0x7263612d, 0x2d73736f, 0x656e696c, 0x83198d12, 0x8513202c, 0x69722d12, + 0x2d746867, 0x632d6f74, 0x1a797469, 0x2c0dfe43, 0x756f7267, 0x772d646e, 0x72657461, 0x841a8d18, 0x702d2413, 0x86706d75, 0x856f8247, 0x6f64234a, + 0x13857374, 0x642d7325, 0x836e776f, 0x4482835b, 0x1389055a, 0x85054045, 0x23a482b2, 0x2d746665, 0x2f838b88, 0x70840b20, 0x732d7325, 0x856e6970, + 0x220b837c, 0x8474696c, 0x209682da, 0x2032826c, 0x84248610, 0x637224bf, 0x890d656c, 0x8a888210, 0x7965230d, 0x1b871165, 0x6e727522, 0xa7876b85, + 0x11837420, 0x32824382, 0x25877320, 0x1182d082, 0x09398983, 0x65726f62, 0x6c6f682d, 0x6f620e65, 0x656c7474, 0x6f72642d, 0x74656c70, 0x240e860c, + 0x65746177, 0x05de4272, 0x6f6f6639, 0x6f620d64, 0x2d736578, 0x6b636170, 0x06676e69, 0x64697262, 0x85136567, 0x07244206, 0x8d05e941, 0x0be94113, + 0xe941198d, 0x24138605, 0x6b636f6c, 0x840b860c, 0x62062f79, 0x656b6375, 0x75620474, 0x621b7367, 0x5c476975, 0x44632005, 0xe54105c9, 0x8f15200a, + 0x9084841b, 0x90868a31, 0x20888431, 0x2347880d, 0x67616c66, 0x98850d89, 0x6e237f87, 0x880f6f67, 0x05fc4628, 0x0f880b20, 0x896e7521, 0x73752436, + 0x880e7265, 0x68773219, 0x05746165, 0x73727562, 0x61630674, 0x6e6f2d72, 0x2806830a, 0x6e6e7574, 0x630b6c65, 0x26dd8268, 0x6669722d, 0x8408656c, + 0x6572230b, 0xe9860c6e, 0x6f6e2508, 0x12736564, 0x70696c63, 0x72616f62, 0x75712d64, 0x69747365, 0x63136e6f, 0x64756f6c, 0x6f68732d, 0x73726577, + 0x3e05cd42, 0x6d6f6308, 0x65747570, 0x75630d72, 0x2d736562, 0x63617473, 0x1564656b, 0x65766e65, 0x43706f6c, 0x632b08cb, 0x6b636568, 0x70786509, + 0x82736f6c, 0x6605264a, 0x79727265, 0x0bed4317, 0x200a2d41, 0x25178b11, 0x756e696d, 0x118b1473, 0x0b208f87, 0x11411484, 0x69662406, 0x822d6572, + 0x656e39ed, 0x69660972, 0x662d6873, 0x0a736e69, 0x73616c66, 0x69762d6b, 0x670b6c61, 0xb4860a82, 0x0b8a1320, 0x25078242, 0x6f726713, 0x9c497075, + 0x47732005, 0x1120065f, 0x830c6449, 0x8309200c, 0x75632504, 0x0b736666, 0x25059d46, 0x6e756f62, 0x0b851364, 0x25078d49, 0x6c696863, 0x138e1464, + 0x6372692a, 0x6811656c, 0x74726165, 0x2407ba42, 0x746c6f62, 0x25118c12, 0x63656863, 0x128c186b, 0x8d0a1641, 0x696d242b, 0x8d73756e, 0x6c702350, + 0x248d7375, 0x616d7824, 0x24826b72, 0x63696c2b, 0x6574706f, 0x79732d72, 0x2a76826d, 0x6c656809, 0x2d74656d, 0x820e6e75, 0x2d6c27ab, 0x6c617661, + 0x7d826e61, 0x72280e85, 0x736b636f, 0x6564696c, 0x8407c849, 0x862d20bc, 0x05ec4a9d, 0x9d8c1285, 0x7884188b, 0x2306b247, 0x65726966, 0x6c230a87, + 0x46116761, 0x66230596, 0x456f6f6c, 0x24200612, 0x22411190, 0x0a744307, 0x6c204186, 0x1a209b82, 0xcc462f85, 0x0c094406, 0x1a942020, 0x3b95a68a, + 0xed86ae84, 0x66205687, 0x3647ab82, 0x73742b06, 0x6d616e75, 0x616a0369, 0x03820972, 0x68772d3b, 0x0e746165, 0x2d74656a, 0x68676966, 0x2d726574, + 0x6a0d7075, 0x642d6775, 0x3d0c8265, 0x746e6567, 0x74696b0b, 0x6e656863, 0x7465732d, 0x6e616c0c, 0x696d2d64, 0x6f2d656e, 0x0c830d6e, 0x72616d24, + 0x5f832d6b, 0x104b0b20, 0x23468205, 0x6c0d656c, 0x73292182, 0x61656c2d, 0x676e696e, 0x29e88211, 0x6f697461, 0x69702d6e, 0x0c822d6e, 0x82066b21, + 0x73752a04, 0x616d1c74, 0x66696e67, 0x20238279, 0x05c7422d, 0x200a2441, 0x251c9016, 0x72616863, 0x70821474, 0x832d7321, 0x65763085, 0x2d73756e, + 0x73727562, 0x616d0f74, 0x822d6b73, 0x69742610, 0x6f74616c, 0x250f8272, 0x65727474, 0x71827373, 0x6f6c6c31, 0x6f6d0c77, 0x656c6962, 0x7465722d, + 0x49136f72, 0x2d280920, 0x6e617274, 0x72656673, 0x6520138d, 0x7522e382, 0x278a1070, 0x6568772d, 0x6d087461, 0x7571736f, 0x826f7469, 0x2a08854e, + 0x74656e2d, 0x756f6d05, 0x830d646e, 0x61742105, 0x6323df82, 0x82797469, 0x6e752120, 0x732c0d84, 0x6f086e75, 0x772d6c69, 0x0c6c6c65, 0x2605de46, + 0x6f72672d, 0x860b7075, 0x696c240c, 0x860e656e, 0x7570220b, 0x200e826c, 0x260e8767, 0x62626f72, 0x87797265, 0x6f722429, 0x4919666f, 0xba470625, + 0x0690460a, 0x7520198d, 0x8206ac4b, 0x1465214e, 0x622d3386, 0x73616572, 0x65656674, 0x676e6964, 0x2314870c, 0x74737275, 0x72296182, 0x2d6e6f73, + 0x656e6163, 0x2a188611, 0x6c616863, 0x616f626b, 0x87136472, 0x0a3a4311, 0x66456d87, 0x0a944206, 0x6d252d8e, 0x73756e69, 0x24418d12, 0x73756c70, + 0x45128d16, 0x168d0897, 0x8605cb42, 0x72642313, 0xef417365, 0x22128807, 0x826e776f, 0x860e20cd, 0x6166230f, 0x0e826c6c, 0x0e86f187, 0x20052342, + 0x82238611, 0x2d6621d7, 0x10204b84, 0x72231188, 0x82737361, 0x86182037, 0x696d2d10, 0x6174696c, 0x702d7972, 0x746e696f, 0x15201882, 0x7224188f, + 0x656c6669, 0x88070441, 0x6f74222e, 0x4128852d, 0x72230750, 0x41737961, 0x32840769, 0x7327a887, 0x746c6568, 0x851e7265, 0x772d242e, 0x826b6c61, + 0x05b24566, 0x6f6c2d2a, 0x6c2d706f, 0x1a746665, 0x72251e94, 0x74686769, 0x211a8e26, 0x52826164, 0x822d6421, 0x07954ffd, 0x16202684, 0x6c27268e, + 0x61676775, 0x4b126567, 0xbd4105ed, 0x050c4506, 0xd041128c, 0x252b8d0a, 0x72616d78, 0x2b850a6b, 0x636f6c24, 0x0a820b6b, 0x44657421, 0x10210545, + 0x465e8270, 0x11200b11, 0x6584108b, 0x118b1720, 0x298c648a, 0x6e696d24, 0x4c8c7375, 0x73203582, 0x8684228c, 0x61720c3a, 0x6e696b6e, 0x74732d67, + 0x720c7261, 0x2d64616f, 0x72726162, 0x0b726569, 0x72250c85, 0x65676469, 0x8b0b8411, 0x8b1720ea, 0x8b848b11, 0x20618417, 0x84118409, 0x2e0984e7, + 0x6b697073, 0x72037365, 0x730a6775, 0x4e6b6361, 0x13260512, 0x6f686373, 0xbb456c6f, 0x8d19200c, 0x8e648a13, 0x2066842d, 0x232d860b, 0x67616c66, + 0x74830b87, 0x68730d2e, 0x2d746565, 0x73616c70, 0x0a636974, 0x23051e48, 0x7461632d, 0x64220a87, 0x4350676f, 0x65682307, 0x17827261, 0x6175712a, + 0x6e2d6572, 0x73166966, 0x00420a85, 0x6f632106, 0x6e231382, 0x860c6465, 0x69763516, 0x0b737572, 0x66617473, 0x6e732d66, 0x0e656b61, 0x2d6e7573, + 0x6e2c6982, 0x69772d74, 0x7404746c, 0x0c707261, 0x55480483, 0x74042507, 0x17746e65, 0xf6510483, 0x08c84b0a, 0x6c20178a, 0x2008b64b, 0x24158a14, + 0x6e727574, 0x201a832d, 0x26148910, 0x6f642d73, 0x83056e77, 0x0f732110, 0x2707d050, 0x6174726f, 0x10656c62, 0x73220f85, 0x1086702d, 0x6f740a2b, + 0x2d726577, 0x6c6c6563, 0x370a8511, 0x6573626f, 0x74617672, 0x096e6f69, 0x65657274, 0x7469632d, 0x72740679, 0x6c212782, 0x2706850d, 0x6972622d, + 0x11736b63, 0x4605b84e, 0x1f820a5d, 0x6b637522, 0x0b20db87, 0x66251f85, 0x646c6569, 0x220b8a0e, 0x866e752d, 0x6c70261a, 0x13656e61, 0x27708275, + 0x65622d73, 0x65657774, 0x6924cd82, 0x0a73656e, 0x6c201385, 0x0a860b82, 0x79617224, 0x15850f73, 0x63657226, 0x676e6174, 0x0f85cd82, 0x6569762d, + 0x6e696677, 0x11726564, 0x42616976, 0x0a200d32, 0x76271184, 0x73757269, 0x4f68771c, 0x5442062f, 0x0a404207, 0x6f77042a, 0x780c6d72, 0x6b72616d, + 0x2005c74d, 0x06014b73, 0x6572642e, 0x630e7373, 0x646c6968, 0x6165722d, 0x6e210882, 0x0c7e4a67, 0x65686324, 0x118c6b63, 0xdc444584, 0x68742607, + 0x67756f72, 0x06f45368, 0x0b420a20, 0x73072e09, 0x6c706174, 0x740a7265, 0x6e696172, 0x2105822d, 0x7e82136d, 0x6e697423, 0x06b64769, 0x706d652b, + 0x6d057974, 0x63697375, 0x0fb64710, 0xcb820520, 0x0474723b, 0x72617473, 0x65737504, 0x69660472, 0x74116d6c, 0x656c6261, 0x6c65632d, 0x24c4826c, + 0x65677261, 0x20118a0b, 0x240b850a, 0x7473696c, 0x20b48405, 0x8fa88505, 0x702d245a, 0x4873756c, 0x6d2f1127, 0x73756e69, 0x776f7009, 0x6f2d7265, + 0x54066666, 0x042705b8, 0x72616567, 0x826f6805, 0x63053083, 0x6b636f6c, 0x616f7204, 0x6f640864, 0x826c6e77, 0x69052608, 0x786f626e, 0x06224212, + 0x61746f24, 0x0f4e6574, 0x072f4e05, 0x2005a752, 0x08d2410e, 0x9e832d20, 0x48840420, 0x616c6624, 0xe6820a67, 0x6870642d, 0x73656e6f, 0x6c6f760a, + 0x83656d75, 0x230a877b, 0x0b776f6c, 0x682d1586, 0x06686769, 0x6f637271, 0x62076564, 0x24078461, 0x67617403, 0x26038204, 0x6f620473, 0x53086b6f, + 0x05260721, 0x6e697270, 0x27530674, 0x66042405, 0x82746e6f, 0x646c301f, 0x61746906, 0x0b63696c, 0x74786574, 0x8265682d, 0x0a74214e, 0x77250b84, + 0x68746469, 0x201b820a, 0x05694367, 0x0a850c20, 0x6e656326, 0x0b726574, 0x72200c85, 0x0d202e83, 0x6a270b85, 0x69747375, 0x83047966, 0x6f0724c8, + 0x82647475, 0x69062228, 0x2c06836e, 0x64697605, 0x69056f65, 0x6567616d, 0x0bbe490c, 0x48451220, 0x61682b06, 0x732d666c, 0x6b6f7274, 0xf94e0765, + 0x700d2706, 0x742d6e65, 0x61442d6f, 0x07c44f05, 0x2d707525, 0x85776f64, 0x06504190, 0x63616227, 0x7261776b, 0x223f8264, 0x880d7065, 0x6166240d, + 0x87087473, 0x7004330d, 0x0579616c, 0x73756170, 0x74730465, 0x6607706f, 0x3383726f, 0x07860c20, 0x2d832d20, 0x73300c88, 0x05706574, 0x63656a65, + 0x68630c74, 0x6f727665, 0x0d206f85, 0xf5840c87, 0xba860b20, 0x756c7023, 0x071f4e73, 0x6e696d22, 0x78240c89, 0x6b72616d, 0x3a821987, 0x0f6b6322, + 0xa64d3286, 0x330f8608, 0x6f666e69, 0x6f72630a, 0x61687373, 0x03737269, 0x0a6e6162, 0x23053942, 0x7466656c, 0x8505a550, 0x850820ec, 0x70752116, + 0x64241f86, 0x056e776f, 0x72323582, 0x78650665, 0x646e6170, 0x6d6f6308, 0x73657270, 0x8b840573, 0x43075f41, 0x67320bf0, 0x04746669, 0x6661656c, + 0x72696604, 0x79650365, 0x03820965, 0x29052c52, 0x69727414, 0x6c676e61, 0x318a2d65, 0x6c70053c, 0x0d656e61, 0x656c6163, 0x7261646e, 0x7961642d, + 0x68730773, 0x6c666675, 0x6f820765, 0x6e656d2b, 0x616d0674, 0x74656e67, 0x0722410a, 0x41707521, 0xa383083a, 0x65720727, 0x65657774, 0x2b448274, + 0x732d7472, 0x70706f68, 0x06676e69, 0x2005f154, 0x2306850b, 0x65706f2d, 0x21062c56, 0xe7412d73, 0x07295106, 0x23090446, 0x61686309, 0x62234282, + 0x420c7261, 0x854b05c9, 0x6b032a05, 0x67057965, 0x73726165, 0x23918608, 0x74730973, 0x6823ac82, 0x51666c61, 0x414105db, 0x0c755605, 0x68740929, + 0x74626d75, 0x526b6361, 0x72240996, 0x74686769, 0x7a422585, 0x52162005, 0x62200ec5, 0x3905b156, 0x6f727406, 0x06796870, 0x6f6c7075, 0x6c056461, + 0x6e6f6d65, 0x6f687005, 0x1447656e, 0x370c8407, 0x6c6e7506, 0x0b6b636f, 0x64657263, 0x632d7469, 0x03647261, 0x0a737372, 0x2008c582, 0x72642d64, + 0x08657669, 0x6c6c7562, 0x6e726f68, 0x7265630b, 0x69666974, 0x65746163, 0x6e616810, 0x05304a64, 0x0f20b785, 0x6c24108a, 0x0d746665, 0x75210f8a, + 0x241d8b70, 0x6e776f64, 0x0c9a5111, 0x09422f83, 0x42cc8a07, 0x1285078e, 0x8d707521, 0x30468334, 0x6f6c6705, 0x77066562, 0x636e6572, 0x696c0a68, + 0x24c08273, 0x6b636568, 0x05ca5606, 0x7262092a, 0x63666569, 0x12657361, 0x3d119743, 0x65737505, 0x6c047372, 0x056b6e69, 0x756f6c63, 0x6c660564, + 0x086b7361, 0x73696373, 0x19826f73, 0x706f633a, 0x61700979, 0x63726570, 0x0b70696c, 0x706f6c66, 0x642d7970, 0x066b7369, 0x25057841, 0x72616204, + 0x75840773, 0x856c7521, 0x6c6f2807, 0x7274730d, 0x46656b69, 0x0925065d, 0x65646e75, 0x27638272, 0x61740565, 0x0a656c62, 0x26092e56, 0x75727405, + 0x4d0a6b63, 0x0a2b0975, 0x65726163, 0x6f642d74, 0x85086e77, 0x7075210a, 0x6c241386, 0x0b746665, 0x72251385, 0x74686769, 0x584c840d, 0x73210634, + 0x21ae8204, 0x04830974, 0x07203c84, 0x75220984, 0xc9510870, 0x05a44207, 0x20061951, 0x084b832d, 0x61670523, 0x046c6576, 0x746c6f62, 0x74697307, + 0x70616d65, 0x626d7508, 0x6c6c6572, 0x61700561, 0x09657473, 0x2367836c, 0x626c7562, 0x430c5e42, 0x102509f5, 0x756f6c63, 0x0a1b4964, 0x108b0e20, + 0x0b707526, 0x72657375, 0x63248f82, 0x0b726f74, 0x74325082, 0x63736f68, 0x0865706f, 0x74697573, 0x65736163, 0x6d826204, 0x756d0a2b, 0x61732d67, + 0x72656375, 0x2a208208, 0x61746970, 0x72740d6c, 0x5a6b6375, 0x1020073e, 0x10872f87, 0xbc4f0b20, 0x620e220a, 0x83648265, 0x6d652543, 0x08797470, + 0x22059741, 0x860b682d, 0x6c702a08, 0x610b7375, 0x656c676e, 0x20f78473, 0x200b860c, 0x20dc8372, 0x820c8609, 0x240986ab, 0x6e776f64, 0x840b840a, + 0x4239852d, 0x082005de, 0x75211685, 0x831f8670, 0x5006202a, 0x8c410502, 0x2d742805, 0x74747562, 0x4f0d6e6f, 0x0d85067b, 0x75710a25, 0x8565746f, + 0x840a854d, 0x7307287a, 0x6e6e6970, 0x43067265, 0x0a2a0506, 0x65636166, 0x696d732d, 0x0a85656c, 0x82726621, 0x84082089, 0x656d3815, 0x61670768, + 0x6170656d, 0x656b0864, 0x616f6279, 0x660e6472, 0x5167616c, 0x653c05d4, 0x08646572, 0x6d726574, 0x6c616e69, 0x646f6304, 0x65720965, 0x2d796c70, + 0x0e6c6c61, 0x2108c946, 0x50827261, 0x72630425, 0x830b706f, 0x622d2322, 0x30436172, 0x6b6e2105, 0x34055745, 0x666e6904, 0x75730b6f, 0x73726570, + 0x70697263, 0x75730974, 0x36098562, 0x61726506, 0x0c726573, 0x7a7a7570, 0x702d656c, 0x65636569, 0x83696d0a, 0x6f68244c, 0x8910656e, 0x204a850a, + 0x05b74b06, 0x8e450820, 0x66112f07, 0x2d657269, 0x69747865, 0x6975676e, 0xf5826873, 0x636f7226, 0x1374656b, 0x4609a44c, 0x142008c2, 0x7224138e, + 0x74686769, 0x4507f743, 0x3a8f09bb, 0x776f6424, 0x0558066e, 0x440e2005, 0x2d2605cf, 0x6879656b, 0xbc446c6f, 0x65732d05, 0x65086579, 0x70696c6c, + 0x11736973, 0x2d250887, 0x74726576, 0x20a68269, 0x062d420a, 0x73737222, 0x22093447, 0x82067961, 0x45a6821c, 0x6d24072d, 0x73756e69, 0x2d051d49, + 0x7275742d, 0x70752d6e, 0x7272610f, 0x0d85776f, 0x2a878283, 0x6321a882, 0x2355876b, 0x156e6570, 0x2e856086, 0x25072658, 0x61687311, 0xc9456572, + 0x6307280b, 0x61706d6f, 0x86117373, 0x0910442f, 0x118c0f20, 0x12707522, 0x72270f8c, 0x74686769, 0x5b756509, 0x0d2606e3, 0x72657473, 0xdf5b696c, + 0x5b0a2006, 0x79210a6b, 0x05135c65, 0x62211382, 0x067f5b6c, 0x856f7721, 0x66042513, 0x0a656c69, 0x2d200483, 0x65213b82, 0x06165d73, 0x2d24d783, + 0x0c7a2d61, 0x0c82bc88, 0x0c851520, 0x77221b84, 0x49826469, 0x726f6823, 0x054a5874, 0xdf822d20, 0x458b1389, 0x392d3122, 0x0c824589, 0x2005dd46, + 0x25308273, 0x7568740b, 0x1f4d626d, 0x06544105, 0x6c235b84, 0x41676e6f, 0x55820672, 0x1d860d83, 0x66656c24, 0x0f832d74, 0x2f461020, 0x2010840a, + 0x082b510c, 0x73736523, 0x380c8506, 0x6e757303, 0x6f6f6d04, 0x6f620b6e, 0x72612d78, 0x76696863, 0x75620365, 0x0d684167, 0x0a205483, 0x23068042, + 0x0a746f64, 0x2009bc5b, 0x08f55b09, 0x68730d26, 0x6c747475, 0x7023f182, 0x41656361, 0x69450796, 0x57102007, 0x230808c3, 0x756c6f63, 0x0e736e6d, + 0x64617267, 0x69746175, 0x632d6e6f, 0x6c087061, 0x75676e61, 0x03656761, 0x08786166, 0x05202c87, 0x6c2b8f82, 0x61700364, 0x75630477, 0x83056562, + 0x73220804, 0x63657207, 0x656c6379, 0x72616303, 0x78617404, 0x72740469, 0x64086565, 0x62617461, 0x08657361, 0x84826966, 0x66647023, 0x23088409, + 0x64726f77, 0x2505bb41, 0x65637865, 0x14840f6c, 0x776f7029, 0x6f707265, 0x85746e69, 0x6d69211a, 0x0b207982, 0x7a251a84, 0x65707069, 0x24168572, + 0x69647561, 0x240a856f, 0x65646976, 0x2351856f, 0x65646f63, 0x6626f682, 0x69722d65, 0x6058676e, 0x63742509, 0x61700b68, 0x2d213c82, 0x26cc8270, + 0x6c631165, 0x466b636f, 0x07240b5b, 0x64616568, 0x092c3282, 0x61726170, 0x70617267, 0x6c730768, 0x72225782, 0xf0420b73, 0x826e2005, 0x42732059, + 0x128a07c0, 0x62042408, 0x06626d6f, 0x62747566, 0x74036c6f, 0x620a7974, 0x636f6e69, 0x72616c75, 0x6c700473, 0x6e096775, 0x84737765, 0x7704287a, + 0x0a696669, 0x836c6163, 0x6f74271d, 0x65620a72, 0x7d446c6c, 0x74052805, 0x68736172, 0x706f6309, 0x0b270638, 0x2d657965, 0x846f7264, 0x617037ee, + 0x62746e69, 0x68737572, 0x6b61630c, 0x61632d65, 0x656c646e, 0xb2490a73, 0x72612305, 0xbd496165, 0x69702206, 0x2f148665, 0x656e696c, 0x676f740a, + 0x2d656c67, 0x0966666f, 0x6e230a87, 0x41696207, 0x6229059f, 0x63117375, 0x65736f6c, 0x244f8264, 0x6f697470, 0x82fc826e, 0x6b6522ea, 0x062d6065, + 0x72616324, 0xc1822d74, 0x840f7321, 0x093b4309, 0x6964072b, 0x6e6f6d61, 0x68730464, 0x06304769, 0x63657328, 0x0a746572, 0xd6826f6d, 0x0b2e5f84, + 0x65727473, 0x762d7465, 0x0b776569, 0x4a846568, 0x736c7537, 0x65760565, 0x0473756e, 0x7372616d, 0x72656d07, 0x79727563, 0x0d2b560e, 0x72740b2c, + 0x67736e61, 0x65646e65, 0x2d840c72, 0x6f642d27, 0x656c6275, 0x8527840b, 0x850a200b, 0x85118318, 0x05e44c16, 0x0b854a85, 0x70752d23, 0x86318411, + 0x69722c0e, 0x06746867, 0x7475656e, 0x850a7265, 0x656c2c5e, 0x73067373, 0x65767265, 0x82750972, 0x20ed8407, 0x2009840a, 0x253a8278, 0x6562036b, + 0x8e820564, 0x0c6e6922, 0x2d340584, 0x77627573, 0x620c7961, 0x65747461, 0x662d7972, 0x166c6c75, 0x74210c87, 0x22f08268, 0x8275712d, 0x726522ea, + 0x24238873, 0x666c6168, 0x8623870f, 0x870d201d, 0x6d65240f, 0x44797470, 0x70230629, 0x826e696f, 0x69082f55, 0x7275632d, 0x0c726f73, 0x656a626f, + 0x87567463, 0x860e2005, 0x6e75210c, 0x08059656, 0x746f6e29, 0x74732d65, 0x796b6369, 0x6f6c6305, 0x730e656e, 0x656c6163, 0x6c61622d, 0x65636e61, + 0x6f680f64, 0x6c677275, 0x82737361, 0x72612325, 0x0f890e74, 0x0d209083, 0x65230e89, 0x8809646e, 0x680e240d, 0x82646e61, 0x6b632744, 0x7369662d, + 0x0e830474, 0x4a05114b, 0x0b20075e, 0x6c262184, 0x72617a69, 0x0b840a64, 0x6f707325, 0x840c6b63, 0x85c2860a, 0x65703217, 0x09656361, 0x64617274, + 0x72616d65, 0x65720a6b, 0x26528267, 0x64657265, 0x4c767402, 0x702409f5, 0x0e73756c, 0x2208034d, 0x8b6e696d, 0x8378200e, 0x081d8939, 0x65686321, + 0x69086b63, 0x7375646e, 0x07797274, 0x2d70616d, 0x0a6e6970, 0x6e676973, 0x6f702d73, 0x82037473, 0x6d072712, 0x61737365, 0xfb436567, 0x61702407, + 0x47657375, 0x73270720, 0x0c706f74, 0x4d676162, 0x0f25082b, 0x6b736162, 0x093b4d65, 0x6e75102d, 0x72657669, 0x2d6c6173, 0x82636361, 0x55182049, + 0x77310e9b, 0x2d687469, 0x656e6163, 0x64756111, 0x642d6f69, 0x056f4865, 0x6e6f6929, 0x6f68700c, 0x502d656e, 0x072d0541, 0x69617262, 0x0a656c6c, + 0x2d726165, 0x38f9836c, 0x6168166e, 0x2d73646e, 0x2d6c7361, 0x65746e69, 0x65727072, 0x676e6974, 0x24218308, 0x66616564, 0x2b1f8405, 0x6579650e, + 0x776f6c2d, 0x7369762d, 0x662c5483, 0x2d746e6f, 0x73657761, 0x09656d6f, 0x68242184, 0x0d656b61, 0x2807bb45, 0x65706f2d, 0x64610c6e, 0x05775764, + 0x6b6f6f22, 0x63230c88, 0x87647261, 0x73752df8, 0x69087265, 0x61622d64, 0x07656764, 0x1c830882, 0x0e661020, 0x7566240b, 0x8b1a6c6c, 0x0dd04210, + 0x68242b8c, 0x13666c61, 0xd8422b8b, 0x8b112006, 0x6d652513, 0x06797470, 0x2d05bc5d, 0x74616204, 0x6f700768, 0x73616364, 0xb0660f74, 0x6d2d2805, + 0x6d697861, 0x88657a69, 0x6e69210f, 0x0e200f84, 0xd1821f86, 0x726f7422, 0x0808f74d, 0x616d7829, 0x6d096b72, 0x6f726369, 0x70696863, 0x6f6e7309, + 0x616c6677, 0x7305656b, 0x6e6f6f70, 0x65747508, 0x6c69736e, 0x52720b73, 0x6c2e0517, 0x09746665, 0x73617274, 0x61632d68, 0x1585066e, 0x7473092a, + 0x6177706f, 0x12686374, 0x4e0a914e, 0x1020067b, 0x8608c660, 0x850c2010, 0x054b4b34, 0x65820320, 0x6d69062e, 0x73656761, 0x6e657006, 0x036c6963, + 0x08200682, 0x2d220382, 0x8f826c63, 0x2008fa47, 0x08e64709, 0x50850a20, 0x6e6f6c24, 0x09480767, 0x06014706, 0x086e6522, 0x0920fe87, 0x2008f85e, + 0x098f4f0a, 0x50832e83, 0x8b07bf41, 0x4225830b, 0x608407dd, 0xfd470920, 0x70752206, 0x07a54914, 0x470b9f49, 0x1b8707ee, 0x65299587, 0x72067466, + 0x61657065, 0x055e4b74, 0x6f632108, 0x74696d6d, 0x646f630a, 0x656d2d65, 0x07656772, 0x6b736564, 0x03706f74, 0x096d6567, 0x6e727574, 0x8405a84d, + 0x70752609, 0x636f6c09, 0x057e426b, 0x2208b14b, 0x4b746f64, 0x6c250b59, 0x73656e69, 0x065a4c14, 0x72637325, 0x4c6e6565, 0x0620066f, 0x764c1485, + 0x201b8507, 0x09554e0c, 0x0b312d22, 0x67054d43, 0x290805fe, 0x67616d69, 0x6f702d65, 0x61727472, 0x72057469, 0x796c7065, 0x6968730d, 0x2d646c65, + 0x766c6168, 0x74146465, 0x656c6261, 0x658d2d74, 0x0d201485, 0x6805124b, 0xe0450687, 0x616c2105, 0x0f20e082, 0x25092754, 0x72616d78, 0x0453206b, + 0x6e612309, 0x4c412d64, 0x6f742908, 0x6e65632d, 0x22726574, 0x1f831288, 0x66232d89, 0x866d6f72, 0x62112c22, 0x62657361, 0x2d6c6c61, 0x82746162, + 0x6c6c2203, 0x20118708, 0x056c440a, 0x0c271c83, 0x6c776f62, 0x84676e69, 0x63052620, 0x73736568, 0x2705840c, 0x7369622d, 0x0b706f68, 0x6f240c86, + 0x0a647261, 0x6b200b85, 0x23862e82, 0x696e6b25, 0x86746867, 0x61702317, 0x2e866e77, 0x65757124, 0x16866e65, 0x6f6f722a, 0x7564086b, 0x6562626d, + 0x66238282, 0x83746f6f, 0x670d2477, 0x84666c6f, 0x742d3174, 0x680b6565, 0x656b636f, 0x75702d79, 0x620a6b63, 0x6d203182, 0x874e1a84, 0x75662907, + 0x74186c6c, 0x656c6261, 0x6e282c82, 0x2d73696e, 0x64646170, 0x27056646, 0x6f760a6c, 0x79656c6c, 0x09215483, 0x050d4168, 0x07737423, 0x26098262, + 0x03656761, 0x63786f62, 0x7320064c, 0x2005a061, 0x08d45011, 0x2907114f, 0x72696611, 0x6c662d65, 0x216a6d61, 0x63082907, 0x75737061, 0x0f73656c, + 0x4e081243, 0x0e20052e, 0x6c230f89, 0x57747369, 0x6423070b, 0x4273746f, 0x6c2905e8, 0x03656e69, 0x05616e64, 0x25948264, 0x61630c79, 0x59837472, + 0x65627426, 0x69660c64, 0x635fb182, 0x840d2006, 0x61772b0c, 0x6f666576, 0x6b0b6d72, 0x8d877469, 0x43430820, 0x0c682106, 0x20061c45, 0x2573832d, + 0x746f6e0d, 0x23877365, 0x61700622, 0x7429f282, 0x6c697005, 0x7013736c, 0x09fa4572, 0x4f642d20, 0x921b2005, 0x203c8713, 0x268b8209, 0x6c75702d, + 0x500a6573, 0x662f0529, 0x07747361, 0x6b6f6d73, 0x07676e69, 0x82727973, 0x07653a06, 0x6c626174, 0x0b737465, 0x72656874, 0x656d6f6d, 0x04726574, + 0x6c616976, 0x08048305, 0x77097321, 0x68657261, 0x6573756f, 0x6965770c, 0x2d746867, 0x6c616373, 0x2d780565, 0x08796172, 0x43786f62, 0x632c058e, + 0x656d6d6f, 0x642d746e, 0x0d73746f, 0x732b0c87, 0x6873616c, 0x756f6305, 0x4c156863, 0x6c30082d, 0x2d72616c, 0x732d6f74, 0x04746f6c, 0x65766f64, + 0x6205c847, 0x12200658, 0x240d8e62, 0x74726165, 0x21128c13, 0x40836f64, 0x560d1a6c, 0x8e620767, 0x0af56b0c, 0x676e6123, 0x0587536c, 0x1c6c7320, + 0x700d2a0a, 0x63617261, 0x65747568, 0x20c6822d, 0x066a5f10, 0x72616324, 0x10837972, 0x69700a24, 0x09826767, 0x6b6e612c, 0x62697206, 0x056e6f62, + 0x2c826f72, 0x6573082e, 0x696c6465, 0x730c676e, 0x2d6e6769, 0x67207382, 0x0f200c82, 0x29099850, 0x6e69772d, 0x6174046b, 0x315a6570, 0x61722306, + 0x5183706d, 0x84410c20, 0x6f6d2205, 0x25308276, 0x6469760b, 0x8a4b6f65, 0x820a2005, 0x2d653031, 0x73616c67, 0x73751073, 0x6c2d7265, 0x6b677261, + 0x0e2006cf, 0x61281084, 0x6f727473, 0x7475616e, 0x24054944, 0x63656863, 0x240a866b, 0x6b636f6c, 0x24248409, 0x72616567, 0x22098408, 0x856e6570, + 0x8267201d, 0x0d7021b2, 0x5f4d1384, 0x85652006, 0x8535832b, 0x696d2322, 0xac5a756e, 0x6e2d2605, 0x616a6e69, 0x442d840b, 0x218505e8, 0x98827320, + 0x58856820, 0x67617422, 0x69210886, 0x211c8465, 0x75832d73, 0x63731028, 0x2d656c61, 0x0c4a6e75, 0x8f152007, 0x662d3010, 0x0770696c, 0x6e656c62, + 0x09726564, 0x456f6f62, 0x0f2005c6, 0x2505b05b, 0x616f7262, 0xe4826364, 0x09820520, 0x0a6d6f22, 0x20096360, 0x200a890f, 0x3f98832d, 0x75686306, + 0x05686372, 0x6e696f63, 0x6f630c73, 0x6361706d, 0x69642d74, 0x63046373, 0x05776f72, 0x6e260483, 0x63696404, 0x04830965, 0x69662d23, 0x23098776, + 0x0872756f, 0x6f221384, 0x0885656e, 0x78697323, 0x2311840a, 0x65726874, 0x742f1386, 0x64066f77, 0x64697669, 0x6f640b65, 0x4c2d726f, 0x092005b0, + 0x22080b84, 0x6e65706f, 0x61656607, 0x72656874, 0x6f726604, 0x61670867, 0x75702d73, 0x6707706d, 0x7373616c, 0x6f127365, 0x2d280b7a, 0x61757165, + 0x65680a6c, 0x33079964, 0x666e6908, 0x74696e69, 0x696b0979, 0x622d6977, 0x0f647269, 0x8508bc6f, 0x6d06272d, 0x726f6d65, 0x2b521679, 0x696c230a, + 0xbd6d656e, 0x460f2006, 0x77240aad, 0x11657661, 0x31210f8a, 0x6b11832d, 0x632506e4, 0x6b636568, 0x841d8512, 0x432d200b, 0x09230537, 0x85746f6e, + 0x70072868, 0x74656c61, 0x510e6574, 0x7027061f, 0x696b7261, 0x6a0f676e, 0x703307c6, 0x656a6f72, 0x72077463, 0x69656365, 0x72057470, 0x826f626f, + 0x6c752505, 0x720e7265, 0x2d240583, 0x626d6f63, 0x64219a82, 0x290e8510, 0x69726f68, 0x746e6f7a, 0x1f866c61, 0x34527620, 0x73062f06, 0x6f6f6863, + 0x63730b6c, 0x64776572, 0x17826972, 0x68730b36, 0x702d656f, 0x746e6972, 0x6b730573, 0x0b6c6c75, 0x2d6e6162, 0x26069944, 0x6f747305, 0x82046572, + 0x0e702423, 0x82726162, 0x617435fb, 0x72656767, 0x730b6465, 0x6f6f7274, 0x66617770, 0x74076c65, 0x62295482, 0x7305786f, 0x74726968, 0x0d334b0e, + 0x61770626, 0x74656c6c, 0x08052354, 0x676e6120, 0x61077972, 0x77686372, 0x620a7961, 0x2d6b6f6f, 0x616c7461, 0x77610573, 0x0b647261, 0x29826564, + 0x3a057954, 0x7a65620c, 0x2d726569, 0x76727563, 0x6f620465, 0x6205676e, 0x68737572, 0x8275620a, 0x6d692e85, 0x08656c70, 0x6e6e6163, 0x73696261, + 0x0757410c, 0x6c627524, 0xf65c1465, 0x6963220d, 0x29368274, 0x6c65620e, 0x6f632d6c, 0x5382636e, 0x06656729, 0x6b6f6f63, 0x850b6569, 0x622d2306, + 0x0b827469, 0x706f7222, 0x32062348, 0x63617412, 0x72676f68, 0x2d687061, 0x69676964, 0x856c6174, 0x696426be, 0x10797a7a, 0x05f05263, 0x72642d2e, + 0x69746661, 0x6404676e, 0x0d6d7572, 0x2d290483, 0x65657473, 0x6e61706c, 0x069a420f, 0x21056c58, 0x79466465, 0x6f632705, 0x6172746e, 0xe9507463, + 0x09524f05, 0x2505de50, 0x6f707865, 0x0b857472, 0x0b82df82, 0x2c05bc46, 0x6f766e69, 0x13656369, 0x656c6966, 0x420c862d, 0x285e0643, 0x0b764605, + 0x25840e20, 0x67697328, 0x7574616e, 0x77856572, 0x75226985, 0x1c820470, 0x83096c21, 0x23bb8204, 0x660b7069, 0x6526bc82, 0x69727072, 0x1a82746e, + 0x0c68732e, 0x65636166, 0x756c662d, 0x64656873, 0x2a054645, 0x776f7266, 0x706f2d6e, 0x410d6e65, 0x0c2d0c57, 0x74726165, 0x66612d68, 0x61636972, + 0x210c860e, 0x0d83656d, 0x860a7321, 0x6973220e, 0x23518561, 0x6d697267, 0x09205982, 0x0c825e84, 0x880e6e21, 0x772d2409, 0x8a656469, 0x6562240e, + 0x89146d61, 0x260e831d, 0x6577732d, 0x89107461, 0x83682014, 0x8a73205f, 0x71732210, 0x20c28275, 0x85218916, 0x742d2110, 0x73202882, 0x7583c785, + 0x74732d24, 0x0f8b7261, 0x478a1f84, 0x6e6f7426, 0x17657567, 0x10854789, 0x4e852d20, 0x17901520, 0x6e697723, 0x22ca8c6b, 0x82046b6e, 0x0d702168, + 0xa9550483, 0x5e112008, 0x5f420975, 0x83072006, 0x65732811, 0x69680b74, 0x676c6867, 0x0e2705d2, 0x2d746f68, 0x64627574, 0x0520069d, 0x65240e82, + 0x6f6a056c, 0x3741d882, 0x696b2305, 0x6c857373, 0x2d200983, 0x84092841, 0x208a830e, 0x2056822d, 0x06684372, 0x75616c24, 0xfa856867, 0x2f840a84, + 0xc1841120, 0xd3850f85, 0x4283218b, 0x3b491520, 0x732d210b, 0x2d06f558, 0x70616d0c, 0x636f6c2d, 0x6f697461, 0x0c8b106e, 0x6f642d30, 0x616d0674, + 0x72656b72, 0x64656d05, 0xa1856c61, 0x68656d28, 0x616c622d, 0x71856b6e, 0x6c6f723b, 0x676e696c, 0x6579652d, 0x6f6d0873, 0x656d756e, 0x6d0d746e, + 0x6174726f, 0x26ef8272, 0x656c7473, 0x8261700c, 0x832d20e9, 0x72652729, 0x73617008, 0x1e827073, 0x6570092a, 0x61662d6e, 0x0779636e, 0x6e220983, + 0x11846269, 0x6c757226, 0x700d7265, 0x65296082, 0x7272612d, 0x6c617669, 0x270d850f, 0x61706564, 0x72757472, 0x9f494f82, 0x0585420a, 0x6461732c, + 0x7972632d, 0x6361660d, 0x0c832d65, 0x61657428, 0x61760b72, 0x1e552d6e, 0x43092006, 0x42480836, 0x6562270b, 0x730b6d61, 0xaa836c6f, 0x6e612008, + 0x73036c65, 0x73076170, 0x746f6c70, 0x73096863, 0x79617270, 0x6e61632d, 0x61747305, 0x5d10706d, 0x775f081d, 0x09085a06, 0x86060341, 0x72752a7d, + 0x73697270, 0x77730a65, 0x24468261, 0x6b6f6f62, 0x0635450f, 0x69777328, 0x6e696d6d, 0x19820c67, 0x2d726526, 0x6464616c, 0x5649eb82, 0x06a34806, + 0x742bc184, 0x64657269, 0x6f6f7405, 0x5b0e6874, 0x2d200706, 0x6328ac82, 0x65760d68, 0x726f7463, 0x2006e45f, 0x062b4a0e, 0x20061d49, 0x09e04810, + 0x6d652d26, 0x12797470, 0x2d20c388, 0x36070b72, 0x7070610b, 0x772d656c, 0x656c6f68, 0x6f746104, 0x6f62046d, 0x4810656e, 0x2d23082a, 0x82616572, + 0x62052995, 0x6e696172, 0x72616308, 0x72211083, 0x5208830b, 0x092006db, 0x75230b84, 0x84747372, 0x6973291e, 0x63106564, 0x67726168, 0x2d28d982, + 0x74617473, 0x126e6f69, 0x21064854, 0xd76f742d, 0x640c2c08, 0x2d776172, 0x796c6f70, 0x6a6e6f67, 0x632307ac, 0x8265646f, 0x6579220b, 0x050d5372, + 0x89421320, 0x5f2d2007, 0x052509dd, 0x676e756c, 0x05e15973, 0x6f637339, 0x6f076570, 0x632d6c69, 0x70046e61, 0x06706f6f, 0x70616873, 0x820c7365, + 0x2d722f78, 0x6c2d666f, 0x05656669, 0x67756167, 0x05840a65, 0x69682d25, 0x850c6867, 0x0563720a, 0x0c8b1120, 0x05261e84, 0x74656574, 0x05840a68, + 0x32070f45, 0x2d736b73, 0x61656874, 0x0d726574, 0x66617274, 0x82636966, 0x6867225b, 0x270d8274, 0x2d6b6375, 0x736e6f6d, 0x0c201b82, 0x26056c4a, + 0x6b636970, 0x4e0c7075, 0x61260974, 0x6e610464, 0x0647686b, 0x69622c05, 0x0d656c62, 0x69737562, 0x8273656e, 0x6d692856, 0x69630465, 0x4b0e7974, + 0x6c2409ce, 0x0f72616c, 0x73200e86, 0x33060146, 0x6f726305, 0x640c7373, 0x6d726168, 0x61686361, 0x1261726b, 0x260c1c52, 0x7865742d, 0x75660c74, + 0x6d250505, 0x73756e69, 0x240c860b, 0x73756c70, 0x05735e14, 0x124c2d20, 0x073a080c, 0x75706f67, 0x056d6172, 0x736d6168, 0x61620561, 0x04696168, + 0x6964656a, 0x6f6f6213, 0x6f6a2d6b, 0x616e7275, 0x68772d6c, 0x736c6c69, 0x61616b05, 0x6b066162, 0x646e6168, 0x6d6c0861, 0x870e2007, 0x73210883, + 0x6c75622d, 0x656d076b, 0x61726f6e, 0x6f6d0668, 0x65757173, 0x186d6f02, 0x67617073, 0x74746568, 0x07254169, 0x6c662d2f, 0x676e6979, 0x61657005, + 0x70106563, 0x2b05826c, 0x2d666f2d, 0x73726f77, 0x14706968, 0x61273782, 0x702d6572, 0x456c6c6f, 0x3f670859, 0x48148308, 0x4a430af4, 0x72702206, + 0x20518361, 0x058b4c0d, 0x6d410d86, 0x82712005, 0x176e22df, 0x0fda6c6d, 0x20059949, 0x42179019, 0x05250771, 0x6b636f73, 0x3f8b8773, 0x746f6f72, + 0x7261762d, 0x6c626169, 0x74731165, 0x612d7261, 0x632d646e, 0x63736572, 0x0d746e65, 0xc2821184, 0x76616432, 0x73096469, 0x67616e79, 0x6575676f, + 0x7263730c, 0x7425b083, 0x6861726f, 0x2e05820a, 0x672d6969, 0x06657461, 0x61686976, 0x540c6172, 0xb7680541, 0x82082005, 0x792d25c0, 0x0d676e61, + 0x2506af4b, 0x6f68702d, 0xc485656e, 0x6b732508, 0x0a6c6c75, 0x706d6163, 0x756f7267, 0x6303646e, 0x63057461, 0x72696168, 0x6f6c630a, 0x6d2d6475, + 0x096e6f6f, 0x73260a85, 0x63036e75, 0x6c4b776f, 0x32643105, 0x69640730, 0x642d6563, 0x6f640336, 0x72640667, 0x6e379982, 0x7572640e, 0x6974736d, + 0x622d6b63, 0x07657469, 0x676e7564, 0x526e6f65, 0x632205b2, 0xe74f7673, 0x69663705, 0x67057473, 0x74736f68, 0x6d616806, 0x0872656d, 0x756e6168, + 0xca82696b, 0x7461682a, 0x7a69772d, 0x0d647261, 0x33068141, 0x696b6968, 0x6805676e, 0x6f707069, 0x726f6805, 0x68136573, 0x370cbc7a, 0x63617263, + 0x72680c6b, 0x696e7679, 0x69732d61, 0x6d046e67, 0x086b7361, 0x2707a96d, 0x74656e0d, 0x6b726f77, 0x722a5782, 0x6f056465, 0x72657474, 0x4d6c7204, + 0x7572230a, 0x0e826e6e, 0x53410620, 0x73102505, 0x6c6c756b, 0x33051744, 0x656e6f62, 0x6c730573, 0x06687361, 0x64697073, 0x740c7265, 0x210a8f79, + 0x7a827407, 0x726f742c, 0x6573750c, 0x6e692d72, 0x6082756a, 0x72760c24, 0xbf82632d, 0x826f6221, 0x770d2404, 0x45646e61, 0x04250813, 0x646e6977, + 0x2004820b, 0x06ed4f65, 0x28063a60, 0x7461656d, 0x6c6c6162, 0x0972410f, 0x61722d24, 0x82416e69, 0x720a8306, 0x68240ec8, 0x79766165, 0x73223d86, + 0x2d846e75, 0x6564083b, 0x72636f6d, 0x66087461, 0x2d67616c, 0x09617375, 0x72727568, 0x6e616369, 0x09c26f65, 0x6d6f6428, 0x656d0665, 0xb6826574, + 0x2f066141, 0x746f6f62, 0x6f700968, 0x74732d6f, 0x076d726f, 0x62296f83, 0x720a776f, 0x62757065, 0x243f836c, 0x6f6d7304, 0x0dbf5567, 0x68676923, + 0x0bab550f, 0x30826c20, 0x622fbe85, 0x07746c6f, 0x6e726f74, 0x076f6461, 0x826c6f76, 0x0d6f217f, 0x50055d4b, 0x052b0627, 0x65746177, 0x61620472, + 0x830d7962, 0x632d2204, 0x32a78261, 0x09656761, 0x686f6962, 0x72617a61, 0x6c620464, 0x570c676f, 0x642208d5, 0xf0577961, 0x65772409, 0x820a6b65, + 0x79642155, 0x6e223882, 0x3d830665, 0x82746f21, 0x6873221f, 0x0723582d, 0x696d0822, 0x25050a56, 0x6d756408, 0x6e827370, 0x08870d20, 0x69662d3c, + 0x65086572, 0x72656874, 0x0574656e, 0x74666967, 0x68631173, 0x61706d61, 0xb74f6e67, 0x73652906, 0x6968770d, 0x79656b73, 0x4a05c74f, 0x652a06aa, + 0x706f7275, 0x72670a65, 0x2b5e7069, 0x89132005, 0x0851440a, 0x75670626, 0x72617469, 0x0806b35a, 0x61726343, 0x680b6b63, 0x796c6c6f, 0x7265622d, + 0x680a7972, 0x6573726f, 0x6165682d, 0x63690764, 0x656c6369, 0x67690573, 0x066f6f6c, 0x7474696d, 0x6d076e65, 0x682d6775, 0x7209746f, 0x61696461, + 0x6e6f6974, 0x06594510, 0x08331088, 0x74736572, 0x6d6f6f72, 0x74617309, 0x696c6c65, 0x880e6574, 0x642d3009, 0x07687369, 0x632d6473, 0x08647261, + 0x846d6973, 0x07504d08, 0x826b7321, 0x676e2152, 0x22075c43, 0x6f696b73, 0x0d850a47, 0x6f6e2d2e, 0x63696472, 0x656c7306, 0x0b686769, 0x2108fd51, + 0xf36f736d, 0x6e732507, 0x6f62776f, 0x3b825e82, 0x0c830720, 0x6e616d23, 0x24078308, 0x776f6c70, 0x20c3820a, 0x05625f67, 0x2c430620, 0x4e122005, + 0x2d200a2a, 0x2505b264, 0x62616309, 0x9983656c, 0xc3531120, 0x75632f0a, 0x64657672, 0x63616205, 0x620c6e6f, 0x0b636f6f, 0x620b3308, 0x64616572, + 0x696c732d, 0x63066563, 0x73656568, 0x04441565, 0x7e6d200d, 0xe653054e, 0x7375220a, 0x08e94665, 0x32074153, 0x75726306, 0x07686374, 0x65736964, + 0x03657361, 0x46676765, 0x742a07c9, 0x06656572, 0x67727562, 0xb4527265, 0x696d2305, 0xa2826464, 0x2005df4c, 0x067d740d, 0x66617326, 0x0d797465, + 0x5007b163, 0x682605c3, 0x6f64746f, 0x9b820967, 0x82632d21, 0x0e6d21a7, 0x87051e63, 0x70052274, 0x27548261, 0x7065700a, 0x2d726570, 0x0b252c82, + 0x7a7a6970, 0x24cd8561, 0x6361730b, 0x0687476b, 0xf2840b20, 0x6e617439, 0x0d686b61, 0x73726162, 0x6f72702d, 0x73657267, 0x72740e73, 0x64687361, + 0x75220673, 0x93581270, 0x20128808, 0x2aee830a, 0x72756e2d, 0x770b6573, 0x49657661, 0xe74106b8, 0x69622a07, 0x676e696b, 0x726f620a, 0x22838264, + 0x826c6c61, 0x240a846b, 0x656e6f6e, 0x2616860f, 0x2d706f74, 0x4f66656c, 0x6423087c, 0x82676769, 0x66032c35, 0x69056e61, 0x736e6f63, 0x8268700a, + 0x662d242e, 0x6070696c, 0x11890740, 0x74261c83, 0x69662d6f, 0xa66a6d6c, 0x6c732105, 0x0661b382, 0x2d7a220b, 0x09066161, 0x4c610c82, 0x6873290b, + 0x2d74726f, 0x65646977, 0x89094c61, 0x22458b13, 0x89312d39, 0x080c8245, 0x70730b21, 0x2d6c6c65, 0x63656863, 0x6f76096b, 0x6d656369, 0x0a6c6961, + 0x2d746168, 0x62776f63, 0x890f796f, 0x732d210a, 0x0e216082, 0x06ff7763, 0x6d2d2108, 0x6573756f, 0x64617205, 0x720c6f69, 0x726f6365, 0x69762d64, + 0x0d6c796e, 0x6b6c6177, 0x742d6569, 0x072a0684, 0x61726163, 0x006e6176, 0xfa050000, 0xc44844db, +}; + diff --git a/thirdparty/imgui_suite/generated/fonts/src/ProggyDotted.inc b/thirdparty/imgui_suite/generated/fonts/src/ProggyDotted.inc new file mode 100644 index 00000000000..ad9b0260b58 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/ProggyDotted.inc @@ -0,0 +1,5301 @@ +// File: 'extract/proggyfonts-1.1.5/ProggyDotted/ProggyDotted Regular.ttf' (591376 bytes) +// Exported using binary_to_compressed_c.cpp +static const unsigned int ProggyDotted_compressed_size = 254065; +static const unsigned int ProggyDotted_compressed_data[254068/4] = +{ + 0x0000bc57, 0x00000000, 0x10060900, 0x00000400, 0x00010033, 0x000e0000, 0x00030080, 0x4f504760, 0xbefdaf53, 0x201182eb, 0x2c0382ec, 0x55534736, + 0x4c764442, 0x01000075, 0x280f8224, 0x2f534f20, 0x4e638732, 0x200f822f, 0x280f8244, 0x616d6360, 0x193af170, 0x2a0f8281, 0x0a0000a4, 0x7361675a, + 0x82ffff70, 0x0c002149, 0x003d1e82, 0x796c6708, 0x5812c166, 0x0c000067, 0x60080008, 0x616568d0, 0xc3ae1064, 0x6c080098, 0x212082d8, 0x10826836, + 0x06110527, 0x6d0800f0, 0x280f8210, 0x746d6824, 0x96967e78, 0x280f8207, 0x18000034, 0x72656b34, 0x249f826e, 0x8508000f, 0x281f8268, 0x636f6c12, + 0x07e51b61, 0x300f825c, 0x1800007c, 0x78616d38, 0x012c0670, 0x9d0800a3, 0x281f82b4, 0x6d616e20, 0x901aad65, 0x340f826b, 0x330000d4, 0x736f708e, + 0x50185374, 0xd10800cf, 0x34000064, 0x2eeb84ac, 0x001e000a, 0x4401002c, 0x00544c46, 0x82040008, 0x20028337, 0x20048201, 0x206f8401, 0x84098308, + 0x00042203, 0x83078209, 0x221d8302, 0x821c000a, 0x82378c39, 0x281d83eb, 0x02020000, 0x009001f8, 0x27088205, 0x00bc028a, 0x028c002f, 0xff280782, + 0x00e0015c, 0x00020131, 0x4b83008d, 0x42391188, 0x00647269, 0xfe200040, 0xfeb603ff, 0x038f00b8, 0x204801b6, 0xdfff003f, 0x224b82fd, 0x82b6030e, + 0x00202728, 0x00000002, 0x37850003, 0x09851c20, 0x82220121, 0x000a2907, 0x00da0400, 0x00060100, 0x27821c86, 0x02210283, 0x08009000, 0x0504035e, + 0x09080706, 0x0d0c0b0a, 0x11100f0e, 0x15141312, 0x19181716, 0x1d1c1b1a, 0x21201f1e, 0x25242322, 0x29282726, 0x2d2c2b2a, 0x31302f2e, 0x35343332, + 0x39383736, 0x3d3c3b3a, 0x41403f3e, 0x45444342, 0x49484746, 0x4d4c4b4a, 0x51504f4e, 0x55545352, 0x59585756, 0x5d5c5b5a, 0x61605f5e, 0x108f6f90, + 0x63626308, 0x67666564, 0x6b6a6968, 0x6f6e6d6c, 0x73727170, 0x77767574, 0x7b7a7978, 0x7f7e7d7c, 0x83828180, 0x87868584, 0x8b8a8988, 0x8f8e8d8c, + 0x93929190, 0x97969594, 0x9b9a9998, 0x9f9e9d9c, 0xa3a2a1a0, 0xa7a6a5a4, 0xabaaa9a8, 0xafaeadac, 0xb3b2b1b0, 0xb7b6b5b4, 0xbbbab9b8, 0xbfbebdbc, + 0x0400c1c0, 0x7382b803, 0x8000ea26, 0x6a000600, 0xe4080982, 0x017e000d, 0x0192017f, 0x01a401a1, 0x01e701b0, 0x021b02ff, 0x03dd02c7, 0x03030301, + 0x03230309, 0x038a0386, 0x03a1038c, 0x03f403ce, 0x045f04f6, 0x04730463, 0x04a5049b, 0x04bb04b3, 0x04c804c4, 0x05f904cc, 0x051d0511, 0x055f0556, + 0x0e8a0587, 0x1efc103f, 0x1ebd1e85, 0x20f91ef3, 0x2027200a, 0x203a2037, 0x2049203f, 0x205f204b, 0x207e2070, 0x20b5208e, 0x211621b9, 0x21262122, + 0x215f2151, 0x22e921dd, 0x22152213, 0x22232220, 0x223d222d, 0x228b2269, 0x22b522a4, 0x22c622b8, 0x22e922d1, 0x230423ef, 0x2310230b, 0x25ae2321, + 0x276a26ff, 0x27752756, 0x27af2794, 0x27c227be, 0x27dc27c6, 0x27eb27e0, 0x298829f7, 0x29eb2998, 0x2a002afb, 0x2b6b2a2f, 0x2e1a2b0d, 0x2e1f2e18, + 0xe02e2e25, 0xfeb3e0a2, 0x067f42ff, 0x20000d24, 0xeb82a000, 0xeb82a020, 0xe601af2c, 0x1802fe01, 0xd802c602, 0xeb860003, 0x88038422, 0x8e22eb82, + 0xeb84a303, 0x04002008, 0x04720462, 0x04a20490, 0x04ba04aa, 0x04c704c0, 0x05cf04cb, 0x051a0510, 0x05590531, 0x82890561, 0x1ed034eb, 0x1ebc1e80, + 0x20f81ef2, 0x20102000, 0x2039202f, 0x8644203c, 0x207426eb, 0x20a0208a, 0x28eb86b7, 0x21532150, 0x21e02190, 0x20eb82eb, 0x2aeb8217, 0x22342227, + 0x226d2241, 0x82b2228d, 0x22c224eb, 0x84da22cd, 0x820820eb, 0x232024eb, 0x8400259b, 0x826820eb, 0x279822eb, 0x20eb82b1, 0x26eb84c5, 0x29f527e6, + 0x82972987, 0x84fa20eb, 0x2b6a24eb, 0x84162b05, 0x822220eb, 0xe0a022eb, 0x08eb84b0, 0xf5ff01e6, 0xc2ffe3ff, 0xa3ffb0ff, 0x97ffa1ff, 0x4cff62ff, + 0x8afe34ff, 0x58fe7afe, 0x52fe57fe, 0xd9fd39fe, 0xd7fdd8fd, 0xd5fdd6fd, 0xaffdb0fd, 0xa4fda6fd, 0x7afd96fd, 0x70fd74fd, 0x66fd6afd, 0x62fd64fd, + 0x4afd60fd, 0x2ffd42fd, 0x2cfd2dfd, 0x77f42bfd, 0x64e4e7f1, 0xfae32ee4, 0xf0e2f6e3, 0xe4e2ebe2, 0xe2e2e3e2, 0xdde2dee2, 0xbae2cae2, 0xace2b7e2, + 0x9ae29be2, 0x33e23ee2, 0x07e230e2, 0xd6e106e2, 0xd3e1d4e1, 0xd1e1d2e1, 0xcce1cfe1, 0xc3e1c6e1, 0xbfe1c0e1, 0xb0e1b2e1, 0xa1e1a7e1, 0x94e199e1, + 0x7de180e1, 0x6ae179e1, 0xa0dff1e0, 0x4bde36df, 0x1cde3ade, 0x18de19de, 0x13de15de, 0xfbddfedd, 0xedddf6dd, 0x50dc5edc, 0xf0dbfedb, 0xbedbecdb, + 0xebda84db, 0xe6d7e3da, 0xded7e0d7, 0x6525d6d7, 0x0d075825, 0x200dcc43, 0xdd004000, 0xde830c20, 0x83800521, 0x20038205, 0x87038274, 0x82012002, + 0x860d2008, 0x00022403, 0x82200000, 0x827e2003, 0x82032003, 0x00a02403, 0x827f0100, 0x82622007, 0x86922007, 0x82422003, 0x20178307, 0x200782a1, + 0x05914643, 0x82a40121, 0x82452007, 0x82af2003, 0x82b02003, 0x82462003, 0x82e62003, 0x82e72003, 0x82482003, 0x82fe2003, 0x82ff2003, 0x004a2403, + 0x82180200, 0x821b2003, 0x824c200b, 0x82c62007, 0x82c72003, 0x8250200b, 0x82d82007, 0x82dd2003, 0x0052230b, 0x72820300, 0x82010321, 0x8258200b, + 0x8503200b, 0x5a012103, 0x09200782, 0x01210385, 0x2007825b, 0x21038523, 0x07825c01, 0x03828420, 0x2f828620, 0x07825d20, 0x03828820, 0x0b828a20, + 0x07826020, 0x03858c20, 0x82630121, 0x828e2007, 0x20b38303, 0x20078264, 0x200382a3, 0x202382ce, 0x20078278, 0x830385f4, 0xf60321c3, 0x03820b82, + 0x00a50124, 0x83820400, 0x005f0425, 0x82a60100, 0x8262200b, 0x21438203, 0x07820602, 0x03827220, 0xab827320, 0x07820820, 0x03829020, 0x00009b24, + 0x07820a02, 0x0382a220, 0x02213782, 0x20078216, 0x240382aa, 0x020000b3, 0x2007821a, 0x200382ba, 0x200b82bb, 0x20078224, 0x200382c0, 0x200b82c4, + 0x82078226, 0xc80421f7, 0x2b200b82, 0xcb200b82, 0xcc200382, 0x2d200b82, 0xcf200782, 0xf9200382, 0x2f240b82, 0x10050000, 0x11200382, 0xfb820b82, + 0x4b820520, 0x821d0521, 0x21ef820b, 0x17823105, 0x0b825620, 0x07826020, 0x03825920, 0x0220a782, 0x0521ff82, 0x200b8261, 0x20178287, 0x2007828d, + 0x20038289, 0x240b828a, 0x0e0000b4, 0x2503853f, 0x0000b602, 0x0382d010, 0x1782fc20, 0x0000b724, 0x0382801e, 0x0b828520, 0x0782e420, 0x0382bc20, + 0x0b82bd20, 0x0782ea20, 0x0382f220, 0x0b82f320, 0x0782ec20, 0x0382f820, 0xee248f83, 0x00200000, 0x0a240382, 0xf0020000, 0x9b820782, 0x82272021, + 0x82fb200b, 0x25ab820b, 0x00003720, 0x0b821303, 0x03823920, 0x0b823a20, 0x07821c20, 0x03823c20, 0x03217b82, 0x2007821e, 0x20038244, 0x20178249, + 0x20078222, 0x2103854b, 0x07822803, 0x2020bb82, 0x03210382, 0x200b8229, 0x21038570, 0x07822a03, 0x03827420, 0x2f827e20, 0x07822b20, 0x03828a20, + 0x0b828e20, 0x07823620, 0x0382a020, 0x0b82b520, 0x07823b20, 0x0382b720, 0x0b82b920, 0x00005124, 0x03851621, 0x82540321, 0x20638207, 0x21038221, + 0x0b825503, 0x03852620, 0x82560321, 0x82502007, 0x212b8203, 0x07825703, 0x03825320, 0x59207783, 0x90200782, 0xdd200382, 0x66204782, 0xe0200782, + 0xe9200382, 0xb4200b82, 0xeb230782, 0x82220000, 0xbe0321d3, 0x15200782, 0x03210385, 0x200782e7, 0x20038217, 0x20238220, 0x200782e8, 0x21038523, + 0x0782f203, 0x03822720, 0x17822d20, 0x0782f320, 0x03823420, 0x0b823d20, 0x0782fa20, 0x03824120, 0x00006924, 0x07820404, 0x03826d20, 0x0b828b20, + 0x22212782, 0x200b828d, 0x200b82a4, 0x2007824c, 0x200382b2, 0x200b82b5, 0x20078264, 0x210385b8, 0x07826804, 0x0382c220, 0x1782c620, 0x22213f82, + 0x200b82cd, 0x200b82d1, 0x2007826e, 0x200382da, 0x200b82e9, 0x20078273, 0x240385ef, 0x00008304, 0x83638223, 0x84042103, 0x08200b82, 0x0b200382, + 0x85202382, 0x10200782, 0x04210385, 0x82078289, 0x212325bb, 0x8a040000, 0x9b200b82, 0xae200382, 0x8c240b82, 0x00250000, 0xff200382, 0xa0240b82, + 0x6a260000, 0x05200385, 0x27240b82, 0x27000056, 0x05210382, 0x200782a1, 0x24038268, 0x05000075, 0x200782a2, 0x21038594, 0x0782b005, 0x03829820, + 0x1782af20, 0x0782b120, 0xbe200383, 0xc9200b82, 0xbf820b82, 0x03822720, 0x82d70521, 0x82c5200b, 0x21cb8203, 0x0782d805, 0x0385dc20, 0x82da0521, + 0x85e02007, 0xdb052103, 0xe6200782, 0xeb200382, 0x1f833b82, 0x0b82f520, 0x0b82f720, 0x0000e224, 0x03828729, 0x0b828820, 0x0782e520, 0x03829720, + 0x05216f82, 0x820782e7, 0x8229202b, 0xe9052103, 0xfa200b82, 0xfb200382, 0xea232382, 0x822a0000, 0x210383cb, 0x0b82ec05, 0x03852f20, 0x82ed0521, + 0x826a2007, 0x826b2003, 0x00ee2423, 0x82052b00, 0x820d2003, 0x82f0200b, 0x82162007, 0x001a2803, 0x00f90500, 0x85182e00, 0xfe052103, 0x1f200782, + 0x05210385, 0x200782ff, 0x23038222, 0x06000025, 0x2e215b82, 0x820b822e, 0x04062503, 0xa0e00000, 0xa2200382, 0x4f821782, 0x82b0e021, 0x82b3200b, + 0x0008230b, 0x3382fe00, 0x06210383, 0x2630820c, 0xff010000, 0x820200ff, 0x00002a01, 0x02900132, 0x0007007b, 0x2114820f, 0x018c0100, 0x00320025, + 0x83e1004b, 0xb5ff222f, 0x257b82ff, 0x6400ceff, 0x0f842c01, 0xd4fe9c22, 0x64200782, 0x00240382, 0x6c017900, 0x87221384, 0x0784ab00, 0x49fe6e22, + 0x00210783, 0x2a5f8292, 0x01ffffed, 0x00e4027e, 0x91370017, 0x9a6d8d5f, 0x000b240d, 0x823c0014, 0x8402209a, 0x0003229e, 0x20598203, 0x216b8402, + 0x7384ffe4, 0x1d831b84, 0x04000322, 0x5f261d82, 0x05000b00, 0x21840600, 0xfbfffa24, 0x0182f5ff, 0xf3fff424, 0x0182f1ff, 0x0782f320, 0x0f82f620, + 0xfbfffb22, 0x27821f83, 0x2d820520, 0x0d000a22, 0x0f220182, 0x05820f00, 0x09010c22, 0x17221984, 0x01821e00, 0x3e002224, 0x01824100, 0x29002b24, + 0x51845200, 0xa4ffe126, 0xe2ffe9ff, 0xde290182, 0xbfffc2ff, 0xdefebfff, 0x203f8700, 0x20478410, 0x200f820a, 0x82598204, 0x227d822e, 0x82f6fffc, + 0x20778301, 0x227f88f0, 0x88fcfff6, 0x8204207f, 0x01a926cd, 0x02bf01b9, 0x168741bd, 0x1600a922, 0x4d838182, 0xbfffea22, 0xbf200682, 0xeb260f88, + 0x0000beff, 0x1382b901, 0x21820020, 0x9f84c320, 0x3dffbf22, 0x0f890783, 0x012a5f82, 0x66020500, 0x4b00b702, 0x87415700, 0x0c1d423a, 0x2511af41, + 0x14004e00, 0xfb823c00, 0x10001022, 0x29220582, 0xf7825200, 0xf0fff028, 0x1a00f6ff, 0x11823500, 0x17841120, 0x60003022, 0xe126a784, 0x0800a2ff, + 0x01820d00, 0x2f000824, 0x13845d00, 0xa5ffe222, 0xff233f87, 0x87cbffe5, 0xd7ff233f, 0x1794aeff, 0x9bffcd22, 0x00293783, 0xff630022, 0xfff2fff9, + 0x220582f3, 0x849dffce, 0x00202213, 0x213f8561, 0x67848d00, 0x07000e23, 0x85938300, 0xfff82227, 0x05a141d7, 0x82250021, 0x823d20b3, 0x27348205, + 0xc3ffdbff, 0xdbffc4ff, 0x00200a82, 0x3c211182, 0x21178600, 0xbf821200, 0x1e221483, 0x01823100, 0x0a831d20, 0x37201382, 0x25200784, 0x3c203f82, + 0xc4203f88, 0x17923f8c, 0xffeeff23, 0x22eb84c9, 0x82cfffe3, 0x84e22001, 0xffee220b, 0x840784cb, 0xe000257f, 0x32001d00, 0x67840182, 0xffe3ff23, + 0x200182ce, 0x2e1f82e3, 0xff5b0003, 0x022902ed, 0x007100d2, 0x41950083, 0xdb4159c9, 0x2411ac11, 0x00130017, 0x24af823c, 0x00260000, 0x20018222, + 0x22cf821f, 0x840f000e, 0xfff228e1, 0xffe5fff3, 0x82ddffeb, 0x83ce2001, 0x08002111, 0x0924018c, 0x09000700, 0x0c230182, 0x83000b00, 0x840b2003, + 0xfff52235, 0x850186f6, 0xfff72209, 0x240184f5, 0xfffbfff4, 0x252183fa, 0xecff0000, 0x0983c2ff, 0xffdbff23, 0x230182df, 0xffe6ffe3, 0x11836b82, + 0x820d0021, 0x43192049, 0x102206df, 0x9d821000, 0x16001322, 0xe9202b84, 0xeb208982, 0xf3203982, 0x22062144, 0x82f4fff4, 0x83f2209f, 0x1a00231b, + 0x01821900, 0x0e001722, 0x0d203982, 0x0e200582, 0x08249982, 0x01000300, 0x00220182, 0x3582feff, 0xeeffee24, 0x3182f1ff, 0x8382f920, 0x02000124, + 0x01820600, 0x6b820a20, 0x12001224, 0x43821700, 0x43825220, 0x15001422, 0x1020f982, 0x12823b84, 0xfff8ff25, 0x82f0fff9, 0x82ec2063, 0x00e42479, + 0x82edff00, 0x82002014, 0x822c205d, 0x2065833f, 0x2a738218, 0x001f001e, 0x00230024, 0x821d001e, 0x283f8347, 0x0008000f, 0xff870043, 0x203182ff, + 0x210082ff, 0x0189fffe, 0xfbfffd24, 0x0382fcff, 0xfbfffb26, 0x36001b00, 0x2145a182, 0x82032007, 0x82012053, 0x84022003, 0x82032003, 0x820220b7, + 0x00132203, 0x25738326, 0xd5fff2ff, 0xbf82fdff, 0xe8fff22a, 0xe3ffeaff, 0xdcffe2ff, 0xe4200182, 0xeb240982, 0xf7fff5ff, 0xf9200182, 0x5582ab82, + 0xb8222582, 0x39826fff, 0x04000422, 0x05838782, 0x05000522, 0x0728ed84, 0xe4ff0800, 0xf6ffc7ff, 0xfb20d784, 0xfd209582, 0x00229985, 0x0083ff00, + 0xeefff526, 0x9a01edff, 0x08263784, 0x0f000c00, 0x01821000, 0x03821120, 0x0b820f20, 0x09280d83, 0x02000a00, 0x24ffbfff, 0xfa203182, 0xf620c582, + 0xef249182, 0xedffefff, 0xeb209582, 0xed209782, 0xf9205b82, 0xfb225d82, 0x73824500, 0x11001330, 0xac025402, 0x5b003300, 0xb7008f00, 0x0343cb00, + 0x1e2b4598, 0x25154f43, 0x0c00d100, 0x03820b00, 0x14000927, 0x0a000900, 0x29008200, 0xfefffdff, 0xfafffbff, 0x0182f9ff, 0xf6fff623, 0x05cd46ff, + 0xf3fff424, 0x0382f2ff, 0xefffec24, 0xd946eeff, 0xfff42206, 0x460182f7, 0x0a200759, 0x14204182, 0x0a204382, 0x0d215184, 0x05e14600, 0x82000e21, + 0xbaff2101, 0xd9414f82, 0x82f62005, 0x0909475b, 0x2f820a20, 0x0e207f83, 0x0c202d82, 0x0f838782, 0x05000522, 0xff208784, 0xfd208782, 0xfc208d82, + 0xf6210384, 0x052b43ff, 0x9582f820, 0x7d01f922, 0x0b202b82, 0xb78b6782, 0x2782fe20, 0xb983b795, 0xb582ed20, 0xf0ffef22, 0x4783b982, 0xfb22b783, + 0x6783fcff, 0x0a22b582, 0xb7861300, 0x57820d20, 0x0e000d24, 0x03820f00, 0xb920b783, 0xf523b7c4, 0x84fff2ff, 0x8afe27b7, 0x48001800, 0x03823000, + 0x00482008, 0x00260046, 0x00220021, 0xffe0ff1a, 0xffd0ffc1, 0xffb8ffb7, 0xffdbffba, 0x01deffde, 0x840600b5, 0x00092401, 0x82170012, 0x001c2101, + 0x0b209985, 0x0a209f82, 0x0920ab82, 0x0728b582, 0x05000700, 0x03000400, 0xc8820182, 0x82fcff21, 0xfff82601, 0xfff5fff7, 0x226f82f4, 0x82effff1, + 0xffee2601, 0xffeaffe4, 0x20fb82e9, 0x21c982f7, 0xf382fff9, 0xfffdff23, 0x222e82fd, 0x82020000, 0x82412037, 0x20418305, 0x224f8204, 0x840b000b, + 0x055741f5, 0x59820920, 0x27830420, 0xfb205582, 0x01455582, 0xfff32205, 0x200182f9, 0x061541fa, 0xf7204d83, 0x27835383, 0x00010027, 0x002efe01, + 0x26958205, 0x00080007, 0x82160013, 0x001b22b7, 0x20b9840d, 0x215b820c, 0xb985000a, 0x21820720, 0x27820420, 0x7b820320, 0xf820b789, 0xf522b582, + 0x0182f1ff, 0xb782f020, 0xe5ffed22, 0xea22b582, 0x3741edff, 0x87838405, 0x853783b7, 0x820420b7, 0x820a20c1, 0x820b2059, 0x840e2063, 0x82092007, + 0x82042063, 0x090949b9, 0xfa20b789, 0xfb20b982, 0xfc20b986, 0x240ab742, 0xff020001, 0x243082bd, 0x00520000, 0x2401827a, 0x00400076, 0x20018239, + 0x2cfd842c, 0xff85ffaf, 0xff8aff86, 0xffc6ffc1, 0x2e1182c7, 0xff1d0003, 0x026202f3, 0x005b00d1, 0x44a3008f, 0x9020a60f, 0x6b41b982, 0xfffa2205, + 0x280182e8, 0x002100c5, 0x001b001a, 0x22018214, 0x82170017, 0x000f240b, 0x42090008, 0x0122064b, 0x2c82feff, 0x26053244, 0x0035001a, 0x82fbff00, + 0xfff62401, 0x82f2fff6, 0x00ef2401, 0x82180010, 0xff152201, 0x204982d5, 0x2e1b84e9, 0xfff3fff4, 0xffd9ffec, 0xffd1ffd2, 0x82fdffcb, 0x82cd2013, + 0xffd5281d, 0xffddffdc, 0x82efffee, 0x2602834d, 0x00020001, 0x8222000a, 0x823a207b, 0xffea221d, 0x221482eb, 0x82130001, 0x00262201, 0x22518216, + 0x82190017, 0x0011225b, 0x20058212, 0x2205822e, 0x824eff11, 0x82122009, 0x00132209, 0x2201840b, 0x820d000c, 0x820c2007, 0x000624a9, 0x84050006, + 0x06ff4203, 0x5d830020, 0xe6ff0222, 0xeb228782, 0xa782f1ff, 0xf5fff522, 0xeb22b182, 0x0182efff, 0xa982e520, 0x8982ee20, 0x1382f320, 0x094bfa20, + 0x000c2206, 0x286f820c, 0x000f000b, 0x0057000e, 0x248b821f, 0xffe0ff00, 0x242982e5, 0xffeaffe8, 0x20c382f0, 0x226182fc, 0x82140005, 0x8212209f, + 0x000e242b, 0x455b020f, 0xf1200605, 0xe0266782, 0xd7ffe1ff, 0xe182d6ff, 0x0d82de20, 0xe4ffe52c, 0xdfffe3ff, 0x16001200, 0x57821500, 0x1b001824, + 0x03821a00, 0x57830320, 0xff230385, 0x82d8ffca, 0x82e62001, 0x82ea2063, 0x82ee2061, 0xffe126a9, 0x00e5ffe2, 0x06655500, 0xdd820020, 0x1a000d22, + 0xf0205782, 0x22083341, 0x82100000, 0x001f2401, 0x82250020, 0x002b2101, 0x2a054543, 0x0038000b, 0x0030002f, 0x86210027, 0x00312201, 0x20018222, + 0x21a78213, 0x894c0005, 0x05c74505, 0x6182f320, 0xcafde226, 0xfcfffaff, 0x2606ef44, 0x00010002, 0x82030004, 0x00042203, 0x20078205, 0x20038603, + 0x20078202, 0x201b8200, 0x20ad8201, 0x204b8201, 0x20c5821a, 0x26cf8214, 0x000e000f, 0x841c000b, 0xff2424d7, 0x84efffee, 0xffed2201, 0x200182eb, + 0x20fd82ea, 0x28f782e3, 0xfff6ffe8, 0x01f8fff7, 0x22f182b7, 0x822c002b, 0xff09222f, 0x240182fd, 0xfff2ffef, 0x220182ed, 0x84e9ffe9, 0x00ee2239, + 0x82c18407, 0x0a012767, 0x6601ba01, 0x1182bf02, 0x01207484, 0x0a240583, 0x45001700, 0x00207f82, 0xbb202f82, 0xba202482, 0x00230b83, 0x84c30042, + 0x82bf2013, 0x00012805, 0x01aeffa8, 0x8207038d, 0x9f3789fb, 0xff8d2609, 0xffdfffbe, 0x223f82df, 0x82090000, 0x00102201, 0x20878408, 0x28a9820c, + 0x000f000f, 0xffe6ff11, 0x22a782ca, 0x82f0fff0, 0xfff221b1, 0x20052346, 0x20d382ed, 0x303388f7, 0x00110013, 0x001c001d, 0xff1b0026, 0x006c00ae, + 0x2201846b, 0x84360035, 0x001a2201, 0x85fb821a, 0x821b2005, 0x23368225, 0xe5ffe4ff, 0xe6200382, 0xe5200582, 0xca240384, 0xccffcbff, 0x07830184, + 0x0982ca20, 0x7582c920, 0x2a82c720, 0x0029ea82, 0x01b3ffcd, 0x000c03b2, 0x2e53442b, 0x25001d22, 0x12239784, 0x83001300, 0x834e82db, 0x26cd82b7, + 0xffe3ffef, 0x82daffe4, 0x82cb207b, 0x22e783bb, 0x840c000c, 0x000822f7, 0x212b8210, 0x00820008, 0x82feff21, 0xfffc2401, 0x82fafffb, 0xfff82e01, + 0xffe8ffef, 0x00dfffe7, 0x00b3ff1a, 0x22018237, 0x82350036, 0x823520df, 0x00342205, 0x85058434, 0x00362211, 0x203d8438, 0x83e584e5, 0xffe621df, + 0xcb200183, 0xca20e382, 0x178fd582, 0x1785ca20, 0x002b3383, 0x002e0001, 0x0239025a, 0xae3f0064, 0x12e741eb, 0x20204b82, 0x2022a784, 0x7782e0ff, + 0xe0ffc922, 0x2608e54d, 0x00310021, 0x842c0030, 0x24048373, 0x0020000b, 0x22ff8203, 0x83170008, 0x2100210e, 0x212a3784, 0x0d000900, 0x08000e00, + 0x3f84dfff, 0x1784df20, 0x2100372a, 0xf2fff8ff, 0xf7fff3ff, 0xc9221782, 0x3d42c9ff, 0xeaff2305, 0xf784bfff, 0x7fffd522, 0x01251f85, 0xffeeffc4, + 0x220182e2, 0x86efffee, 0xfff32a07, 0xffecffeb, 0x001100f3, 0x2401821a, 0xffd9ff17, 0x200f82b4, 0x883783c3, 0x00312203, 0x20378293, 0x203182e3, + 0x227b82ee, 0x82150014, 0x00132283, 0x2201821e, 0x86120012, 0x820d2007, 0x00162215, 0x2357870d, 0x7c003e00, 0xd2267b84, 0x180074ff, 0x9b824600, + 0x4345eb20, 0x00292606, 0x023d0264, 0x49d78355, 0x158215e9, 0x4d820820, 0x3f833f20, 0x00380023, 0x224784a9, 0x8457ffc8, 0xffeb2207, 0x220784c1, + 0x8359ffc8, 0x201f8207, 0x200782a7, 0x24038264, 0x00340000, 0x2007849c, 0x06614d14, 0x9d003422, 0xcc222b84, 0x078463ff, 0xc4ffec22, 0xcc200784, + 0x012a0582, 0x55ffcd00, 0x8d007d01, 0xd7413900, 0xff09243c, 0x82f1fff8, 0x00ea2401, 0x86040005, 0x82052001, 0x00062407, 0x82110010, 0x00132201, + 0x24098213, 0x000b000f, 0x20018202, 0x22038401, 0x83010001, 0x2c038387, 0xfafffbff, 0xf6fff5ff, 0xf4fff3ff, 0x050351ff, 0x0f82f420, 0xa948f520, + 0x00042308, 0x47450005, 0x000a2405, 0x84f9ff09, 0x82c52001, 0x82f1202b, 0x48ed202d, 0xfa2008df, 0x82051143, 0x82102029, 0x00152c6d, 0x00190016, + 0x001d001a, 0x82080006, 0x840a2001, 0x840a2003, 0x00042283, 0x0887510f, 0x6947a783, 0x82fb2005, 0x20838381, 0x20c982f3, 0x208b82f0, 0x260f84f3, + 0x00fbfffc, 0x82eeff00, 0x82f12013, 0x015328b1, 0x01170234, 0x41090085, 0x00250b2f, 0x01710053, 0x20258253, 0x244882ff, 0xfe69ff00, 0x201d82d4, + 0x820b8334, 0x82192087, 0x840f2085, 0x82ec2017, 0xffed283f, 0x007e01ff, 0x411f008d, 0x6820226f, 0x0620ab82, 0x41082552, 0x9b4b1721, 0x820b2009, + 0x820c202f, 0x820f20d7, 0x20078375, 0x06755212, 0xed8c1020, 0x8b840520, 0x20071f48, 0x21e782f3, 0xed8efff1, 0x15412182, 0x00012805, 0x02d0ff41, + 0x45e60229, 0x00310bf3, 0x00170041, 0x01620048, 0xffe8ff27, 0xff9dffb9, 0x242f82d0, 0x02c60000, 0x20598450, 0x2e05823b, 0xff430003, 0x022602f3, + 0x002700cb, 0xa26f004f, 0x122744eb, 0xa3181743, 0x00e9242b, 0x820b0010, 0x82082001, 0x000422b9, 0x28998404, 0xfffcfffc, 0xfff8fff9, 0x280182f5, + 0xffe2fff0, 0xffd3ffd2, 0x200182c4, 0x260782d3, 0xffe1ffe2, 0x83f1fff1, 0x0f002127, 0x1f240182, 0x2d001e00, 0x3c220182, 0x05823c00, 0x6aff2e26, + 0xe4ffdbff, 0xed260182, 0xf7ffedff, 0x2784f6ff, 0x09000a24, 0x01821300, 0x1c001c26, 0x26002500, 0x1c200582, 0x0a220d82, 0x73820600, 0x05000526, + 0x03000200, 0xd7477784, 0x82fb2005, 0xfffa227b, 0x823f82f6, 0x22278247, 0x5406000b, 0xfa200881, 0x2206034c, 0x46effff2, 0xb9500acf, 0x82062007, + 0x000c244b, 0x820e000c, 0x00102201, 0x22078411, 0x8416004f, 0x0021246f, 0x82280022, 0x002e2201, 0x2007842e, 0x830f8222, 0x8217208f, 0x0017220f, + 0x227f8417, 0x82e9ffe9, 0xffd226eb, 0xffbcffbb, 0x200182a6, 0x200782bd, 0x821182d2, 0x821f8317, 0x00172225, 0x24098223, 0x00120011, 0x26018224, + 0x00350034, 0x82450046, 0x84352005, 0x8212200f, 0x211e8217, 0x0182eeff, 0xa182dc20, 0xeaffea28, 0xe5ffe6ff, 0x0182e1ff, 0xdcffdd22, 0xe6200784, + 0x17831182, 0x0f82ef20, 0xefffee25, 0x4c00ed00, 0x1120059b, 0x0b20af86, 0xef8d0f82, 0xf2fff522, 0xef200182, 0x07834f82, 0xf5fff522, 0x4208a951, + 0x012a05f3, 0x00008100, 0xbd02fb01, 0x3f421500, 0x22218217, 0x841b015f, 0xffdc22e3, 0x26078496, 0xffbaffe8, 0x8295ffdd, 0x8201200b, 0x846c20d3, + 0xffdc2213, 0x84078394, 0x00152203, 0x2207843d, 0x84d0019b, 0xffe6221b, 0x28c982b0, 0x001b00ae, 0xfe55ff51, 0x08a743ab, 0x00004c28, 0xcb021702, + 0x7b977300, 0x423c9d42, 0x002520c1, 0x0172004c, 0x228d8459, 0x41fbfea8, 0x0a240643, 0x09000a00, 0x05830382, 0x83000821, 0x82092001, 0x2403830f, + 0x000c000d, 0x2419860b, 0x00070009, 0x06fb420e, 0x07220b83, 0x0d820600, 0x43000521, 0xfc2405f7, 0xf7fffcff, 0xf4280182, 0xf1fff4ff, 0xecffefff, + 0xe9240182, 0xe8ffe9ff, 0xe6220182, 0x0182e7ff, 0x0382e820, 0x1184db20, 0x7f82ed20, 0x38000124, 0x01823200, 0x20002e28, 0x1a001900, 0x01821200, + 0x75820a20, 0xff201a82, 0x24074d4e, 0xfffafffa, 0x240182f8, 0xfff5fff6, 0x086b52f3, 0xeefff822, 0xf3206782, 0xef206782, 0xeb244d82, 0xedffebff, + 0xf0206b82, 0xf1207382, 0x1b4e2f82, 0x82478207, 0x00142202, 0x2005823e, 0x20e78400, 0x83bb840d, 0x820820d5, 0x09fb5367, 0xdf820920, 0xe7820d20, + 0x1f8a0c20, 0x0d000f22, 0x11850182, 0x1b820b20, 0x18001724, 0x01821700, 0x15001624, 0xab841400, 0x0f000f22, 0x0f411782, 0x00062c05, 0x00040007, + 0xff000003, 0x82fcfffe, 0xfff922a7, 0x28b182f1, 0xfff6fff4, 0x00c6ffe3, 0x2031821f, 0x201d8413, 0x22cb82f7, 0x82f0ffef, 0x82e920b5, 0x82ee2019, + 0x200383b7, 0x202782f6, 0x06a546f6, 0x3982f320, 0x20057f49, 0x20e382fc, 0x20e784ee, 0x22d982f3, 0x84eaffe9, 0x82ed20e7, 0xffef220b, 0x22e782f2, + 0x82f9fff9, 0x00eb2e1d, 0x00010000, 0x02f3ff4b, 0x00cb0222, 0x75534289, 0x2416b142, 0x0018008a, 0x24018215, 0x00230011, 0x82018211, 0xfdff21aa, + 0x20062141, 0x20bd82f8, 0x28ff82f6, 0xffe4ffe3, 0x002100db, 0x23018219, 0x00080011, 0x20054941, 0x08655905, 0xf0fff024, 0x0382e0ff, 0xecffec24, + 0x0182eaff, 0x20054d42, 0x200982ec, 0x240d84eb, 0xffe6ffe5, 0x215882e1, 0x33550000, 0x82182005, 0x00172273, 0x20758216, 0x20118223, 0x2075821b, + 0x08094b12, 0x83fff621, 0xffed2271, 0x200182e5, 0x203782dd, 0x263784cd, 0x003a0013, 0x821e0026, 0x00162601, 0x000b0017, 0x8215830a, 0xfff52229, + 0x206182e9, 0x227d82e0, 0x84f4ffd6, 0x88f32001, 0x8a098305, 0x2031830d, 0x09ab5500, 0x0d000c22, 0x0f854782, 0x17820d20, 0x0c000c22, 0x1f221182, + 0x01821c00, 0x07000022, 0x0a201b82, 0x1c201582, 0x26247582, 0x10003000, 0x0f220184, 0x71420f00, 0x82172006, 0x821120b3, 0x840820b3, 0x82132051, + 0x820b2009, 0x20438331, 0x2421820e, 0x002b000f, 0x20018222, 0x200b821a, 0x201b8209, 0x224f8206, 0x84040003, 0xfffe22b3, 0x2a0182fd, 0xfffafffc, + 0xfff8fffb, 0x82c6ffe3, 0x000722cb, 0x0c195206, 0xf9fff92c, 0xf2fff1ff, 0xecffebff, 0x0182e5ff, 0x0982ec20, 0x0f82f220, 0x43831782, 0xff000023, + 0x843782ec, 0xf7ff210a, 0xee2a0182, 0xe8ffeeff, 0xe1ffe7ff, 0x0582dfff, 0x0d82e720, 0x1582ef20, 0x2084f820, 0x01000024, 0x03840200, 0x83000321, + 0x84042001, 0x069f5569, 0xffe0ff23, 0x228782c1, 0x84fcfffc, 0x82fd2095, 0xffff2207, 0x200182fe, 0x860085ff, 0x2a378341, 0x00280002, 0x02400200, + 0x4c1b00bd, 0x6f2430f1, 0x44001600, 0x1e214b84, 0x05d54400, 0xa7ffe222, 0xff250f83, 0xff9bffde, 0x20bb82ed, 0x26e582e8, 0xffccffce, 0x83ddffcd, + 0x52002a17, 0x0000f500, 0x0a0019ff, 0x05534100, 0x1a001922, 0x24067d44, 0x001f001f, 0x21238313, 0x0583c3ff, 0x2a220382, 0x05827d00, 0x15820020, + 0x07843b20, 0x56017222, 0xe42a1f84, 0xdbffdaff, 0xb3ffd6ff, 0x0182b0ff, 0xdfffca22, 0x2406094c, 0x007800d6, 0x202d820e, 0x22958213, 0x82290027, + 0x001b2c01, 0x002e001c, 0xff1b002f, 0x8209ff85, 0x0001263b, 0x02f3ff48, 0x20eb8217, 0x66ab4363, 0x18007c22, 0x15268d82, 0x23001100, 0x6f471200, + 0xffef2c06, 0xffdeffef, 0xffecfff0, 0x82e9ffed, 0xffe52801, 0xffe2ffe6, 0x82f5fff3, 0x84f72001, 0x48f52005, 0x4a220689, 0xf184e000, 0xdbfe9e22, + 0x45820783, 0xdf841320, 0x14001322, 0x17200784, 0x14220782, 0x01821000, 0x45000d21, 0x0624095f, 0x03000600, 0x32820182, 0xf4224d82, 0x0182eaff, + 0xdfffdf24, 0x6d84d4ff, 0x03867183, 0x00222082, 0x01840a00, 0x91410b20, 0x05dd5406, 0x0e000d22, 0x0c200182, 0x22245384, 0x1d001e00, 0x092a4d82, + 0x0c000b00, 0x20000f00, 0x01822c00, 0x37003824, 0x01822b00, 0x11822020, 0x17820c20, 0x09000824, 0x2f560400, 0x05a95808, 0x82fffd21, 0x39002301, + 0x67847300, 0x3b001422, 0xa822cb84, 0x3943f8fe, 0x82052006, 0x00022231, 0x82158402, 0x56ff2029, 0xf8280533, 0xf6fff7ff, 0xf3fff4ff, 0x2a083b55, + 0xffdbffeb, 0xffe3ffe2, 0x82ebffec, 0x05a34919, 0x03000224, 0x6f820600, 0x4b820920, 0xe0ff0c24, 0x6b82bfff, 0x2007eb42, 0x200b82fe, 0x09eb42ff, + 0x83ffff21, 0x22038261, 0x82040004, 0x00022c05, 0x02f6ff43, 0x00bf0226, 0x428b0057, 0x00206605, 0x8f16a345, 0x00e92617, 0x0010001e, 0x22a5820f, + 0x82f1ff00, 0x24f58301, 0xffd7ffd7, 0x2cff82cd, 0xffe7ffe7, 0xffebffea, 0xfff0ffef, 0x2e3882f4, 0x000d000e, 0x00220019, 0x00240023, 0x82090025, + 0x840a2001, 0x00092805, 0x0008000a, 0x82110012, 0x84112049, 0xfff82349, 0x0383fff7, 0xf6fff722, 0xf6220982, 0x0d82f9ff, 0x0982f920, 0xfcfffe22, + 0xf6201182, 0xf7200982, 0xcf266182, 0xd4ffcfff, 0x6382d3ff, 0x3583ea20, 0x82030021, 0x82082001, 0x000b2249, 0x2049820c, 0x2251820f, 0x82170013, + 0x001c2201, 0x2875821c, 0x002c0038, 0xff34ff2c, 0x204182f3, 0x204f82f5, 0x565384f8, 0xfe2005d5, 0x02203f84, 0x04243f82, 0x07000500, 0x47854382, + 0x0d000a22, 0x0f200182, 0x10229784, 0x01820e00, 0x8305b542, 0x821120b7, 0x84092025, 0x05a547ad, 0xed82ef20, 0xdfffe622, 0xf026eb82, 0x3200f1ff, + 0x6f831f00, 0x00390022, 0x0d827784, 0x83002021, 0x21308247, 0x0182faff, 0x8782f320, 0xeeffee28, 0x3b00e9ff, 0x01822f00, 0x23002324, 0xb1821300, + 0x53000121, 0xff2308d1, 0x59fffffe, 0xf722084f, 0x29821d00, 0x02000322, 0x07850184, 0x0b820120, 0x50820120, 0x37420288, 0xeaff2105, 0xd5240182, + 0xbbffd6ff, 0xa1260182, 0xdaffd5ff, 0x9782d9ff, 0xe4ffdf22, 0xe9200182, 0xf1201b82, 0xf522a382, 0x8582f6ff, 0x3a84fb20, 0xd7820f20, 0xf7823920, + 0x09000824, 0x55430a00, 0x24138306, 0x00110011, 0x20018214, 0x20978211, 0x0ab94d0f, 0xf9820820, 0x2f820620, 0xb1430320, 0x84fe2006, 0xfffb22a5, + 0x280182f8, 0xffebfff5, 0xffe1ffe2, 0x207582d7, 0x230982e2, 0xffecffeb, 0x5f416b82, 0x00012a08, 0x02000046, 0x00bd021c, 0x1bc94219, 0x00a70025, + 0x824f001a, 0x00172277, 0x22298217, 0x82310030, 0x83212001, 0x8aff2345, 0x0783a0fe, 0x01590025, 0x82efff0c, 0xffe926cd, 0xffd1ffe8, 0x06fb4dd0, + 0x2b000024, 0x01823900, 0x76003f2a, 0x7a007900, 0x0d005100, 0x30824982, 0xc5208782, 0xd72c3f84, 0xcbffcaff, 0x92ffc5ff, 0x8eff8dff, 0x4226c182, + 0x2702f3ff, 0x6d82cb02, 0x93006f22, 0x1143939b, 0x0f214326, 0xe6240fc3, 0x0c001000, 0x09220182, 0x5b590800, 0xfff82808, 0xfff0fff9, 0x49e5fff1, + 0x17240611, 0x0e001700, 0x07220182, 0xe7840700, 0xe2281b83, 0xd7ffe2ff, 0xccffd6ff, 0xe9212582, 0x05415eff, 0xeeffef22, 0xe2203582, 0x4208634e, + 0x072009f5, 0x22068d43, 0x820a0008, 0x000c2e09, 0xff10000b, 0xffe8ffda, 0xfff4ffe7, 0x08c744ed, 0x8b821020, 0x53452020, 0x00392806, 0x002d0039, + 0x8211ff2d, 0xfff82289, 0x827783f8, 0x820820a1, 0x00102221, 0x228f8218, 0x821f001e, 0x82172005, 0x5e11200f, 0xef200c55, 0x8f832f82, 0x9f82e120, + 0x6182e920, 0x5f82e520, 0xf7fff722, 0x09203f84, 0x13247b82, 0x1a001200, 0xb9480182, 0x001a2205, 0x20558213, 0x08fb5907, 0x2205cb4e, 0x82f7fff6, + 0xffed22c9, 0x220182e6, 0x82deffdf, 0x00e62205, 0x06ad4328, 0x31821220, 0x16001622, 0x25228382, 0x01821e00, 0x09821820, 0x0f001022, 0x0f244584, + 0x15000e00, 0x5f830182, 0x29001f24, 0x01822100, 0x1f821920, 0x3b820c20, 0x26057d51, 0xfff9fffd, 0x82f8fffa, 0x82f4205f, 0xffdf28fb, 0xffd8ffdf, + 0x82f2fff1, 0xfff32103, 0x4605c549, 0xf72005f7, 0xf9222782, 0x0182fbff, 0x2d82fc20, 0xd382f120, 0xcb82e820, 0xd382e220, 0xd0ffda26, 0xdaffdbff, + 0x33829b84, 0x00205682, 0x0d225d82, 0x8382a801, 0x16001526, 0x1d001c00, 0x16200582, 0x10200d82, 0xaf41d582, 0x82f92005, 0x82f0204d, 0xffea2663, + 0xffe3ffea, 0x200582e4, 0x200d82eb, 0x205982f2, 0x243f84f9, 0xfe080007, 0x83d782ba, 0x002124ab, 0x82190020, 0x00122201, 0x0c854412, 0x2d82ee20, + 0xf4229b83, 0x3b82f4ff, 0xeffff122, 0x500c8549, 0x002e092b, 0x3f000200, 0x2302f9ff, 0x5900cb02, 0xf5428500, 0x44d12088, 0x0b260669, 0x05000c00, + 0x2b510600, 0x82fa200a, 0x82f520d1, 0x091358cf, 0xe4ffe42e, 0xc7ffddff, 0xd5ffd6ff, 0xf0ffe2ff, 0xf8201f84, 0xfd20ff82, 0x2406ab58, 0x000f000f, + 0x2401821e, 0x00290028, 0x26078233, 0x0019001a, 0x840a0015, 0x00082101, 0x072c0183, 0xfaff0600, 0xf1fff2ff, 0xe8ffe7ff, 0xde204b82, 0xee214982, + 0x200183ff, 0x201382ed, 0x200982ef, 0x258183ef, 0x14001100, 0x3b841300, 0x37820920, 0x07000724, 0x9f820d00, 0x3f001228, 0x2f002f00, 0x958211ff, + 0xfb42f720, 0x82092008, 0x0008222d, 0x2001820b, 0x2025820d, 0x2083820e, 0x83d3820f, 0x07394607, 0x6b570820, 0xfff82610, 0xfff5fff6, 0x200182f3, + 0x328d82f1, 0xffdfffee, 0x00e7ffe6, 0x00180052, 0x001d001c, 0x82220023, 0x002928c1, 0x002b002e, 0x82260025, 0x8222200d, 0x821c2017, 0x0015221d, + 0x206d8210, 0x508b820b, 0xf02007cf, 0xe124b782, 0xedfff0ff, 0xe8220182, 0xd582e9ff, 0xe4ffe72a, 0xd4ffc8ff, 0xe1ffd3ff, 0x1f820182, 0x0620d184, + 0x0c21c382, 0x22058300, 0x82090008, 0x820a2001, 0xff0c2aaf, 0xffd0ffbf, 0xffddffcf, 0x22d182de, 0x82ffffee, 0x00012129, 0x03200183, 0x05222982, + 0x95820700, 0xfcffcc22, 0x1d820186, 0x24822184, 0x0082ff20, 0x0004002d, 0x01170016, 0x00150036, 0x841e001f, 0x821f20af, 0x82152009, 0x00072257, + 0x0c514c08, 0x4f073749, 0xea2205a7, 0x9782e2ff, 0xd9ffd922, 0xe2260782, 0xf6ffeaff, 0x0182f8ff, 0x974ffb20, 0x2a9b830a, 0x00020000, 0x016f00ea, + 0x8242027c, 0x42f95755, 0x54650121, 0xfb200cd1, 0x55084d4f, 0xfb200df3, 0x0020de82, 0x1747fd84, 0x000d2605, 0x0010000f, 0x2001820d, 0x553f8c0b, + 0x63480f11, 0x42fb2005, 0x04200689, 0x0b20ff82, 0x200a7767, 0x203f820c, 0x0c876782, 0x0d820c20, 0x25820a20, 0x230d1155, 0xfff3fff4, 0x8a0b8767, + 0x5001234f, 0x87840900, 0x8f841020, 0x51423f95, 0x05515505, 0x61fff721, 0x02240d3d, 0xc5ffcc00, 0x20064f41, 0x5cff4359, 0x29416620, 0xacff213d, + 0x2166d157, 0xd1570009, 0x01fa2207, 0x3d5d41c8, 0xff76fe2d, 0xfff0fff5, 0xffedfff1, 0x84fafff9, 0x82fb2001, 0xfff92205, 0x206382f9, 0x08115810, + 0x1d001923, 0x056b4a00, 0x26058343, 0x000b0009, 0x41040002, 0x11421ad1, 0x2e658214, 0x00f2fff1, 0x00010000, 0x02740029, 0x494b0239, 0x02211d5b, + 0x242b8239, 0xffccff00, 0x240182b2, 0xffd8ffb5, 0x240182db, 0x003400e4, 0x2801824e, 0x0028004c, 0x00240025, 0x2223841c, 0x8374fe7c, 0x84002b07, + 0x15007400, 0x12004100, 0x01841b00, 0x0d000e22, 0x09220182, 0x0d821300, 0x03821c20, 0x0a200f85, 0x3a243582, 0x6cffcfff, 0xc5229182, 0xcb82cfff, + 0xcd002d27, 0xf5013d02, 0x15b36b00, 0x84002d24, 0x678d8c01, 0x01210f8b, 0x231b83a5, 0x3c001400, 0xec222384, 0x0783ecfe, 0x3d200f82, 0xeb200f84, + 0x2c26ef82, 0x3c027200, 0xef9e4902, 0xcb873f85, 0xdf841c20, 0x4b002922, 0x3420ef84, 0x26080741, 0xffdcffd7, 0x83e4ffdb, 0x2097825b, 0x2c678236, + 0x0031003a, 0xffeaff94, 0xfff6ffc1, 0x240182f3, 0xffe5fff2, 0x220382e4, 0x86eeffed, 0x84f22009, 0xfff72417, 0x82c7ffe3, 0x00022b2b, 0x02ffff51, + 0x00df0221, 0x53430039, 0x0001245d, 0x84480018, 0x240485a9, 0x000f0010, 0x22038217, 0x82110010, 0x001e2205, 0x20018216, 0x291a8501, 0xc5ffc6ff, + 0xb2ff96ff, 0x0182bfff, 0x1900df32, 0x0a000b00, 0x1c001a00, 0x2d002c00, 0x0e002a00, 0x11203182, 0x1f200382, 0x18201982, 0xff253183, 0xfff9fff8, + 0x22f582f4, 0x82dfffdf, 0xffe822ed, 0x200182f0, 0x201982ff, 0x3ea96c67, 0x43820720, 0x6f820020, 0x03820d20, 0x6d820e20, 0x13001322, 0x0c207782, + 0x0b225582, 0xcf820c00, 0x1e001e22, 0x02249382, 0x49000200, 0x2c209782, 0xd6248b84, 0xccffd5ff, 0xf9287f82, 0xeffffaff, 0x1b003000, 0x03230182, + 0x83ff0000, 0x82fd2000, 0xffee24a7, 0x58dcffed, 0xe82208a7, 0x0182ebff, 0x0384e620, 0xdeffe626, 0xe7feeeff, 0x200c6545, 0x200d820d, 0x08f34f0a, + 0x6cfffb21, 0x002e21ed, 0xfbff0200, 0xa202e1ff, 0x9900e002, 0x2745b900, 0x4c00205c, 0x022d5d5f, 0x00340031, 0x00190018, 0xfff4ff0c, 0x300182f2, + 0xffccfff3, 0xffc6ffc5, 0xffdcffaf, 0xffe3ffe2, 0x280182e8, 0xffeaffeb, 0xffd8ffee, 0x2c0182ec, 0x00fefffe, 0x0010000f, 0x000e0021, 0x30018212, + 0x00160016, 0x001a001b, 0x002e001e, 0x00230024, 0x280b8229, 0x00110012, 0xff120009, 0x205382f3, 0x260382d3, 0xfff8fff7, 0x82f9fffa, 0x45f72005, + 0xf2200601, 0xed201b82, 0xf9615382, 0xfff12105, 0x2205d76e, 0x82f6fff5, 0x66fa2025, 0x0428084f, 0x06000400, 0x0a000700, 0x0c200182, 0x17227182, + 0x5f821700, 0x7f820c20, 0x61820e20, 0x81821320, 0x19820f20, 0x00820020, 0x38001222, 0x00210582, 0x20138500, 0x2307820b, 0x00080008, 0x20050358, + 0x28b582fa, 0xffbcffd4, 0xff99ffbb, 0x22d382e6, 0x82e0ffe2, 0xffe42201, 0x22d982e4, 0x82edffe7, 0x82f32001, 0x829f82f7, 0x8200202e, 0x8407206d, + 0x0014225f, 0x20c98214, 0x2475821c, 0x00270021, 0x2a778226, 0x002a0029, 0x002d002c, 0x8216ff2d, 0x82f920c5, 0x00fd22a9, 0x209f8402, 0x2231820b, + 0x82120011, 0x20f98331, 0x10bf4b11, 0x5f82f120, 0x2105116a, 0x0782ffed, 0x19246782, 0x16001500, 0x0e22bb82, 0x01831000, 0xffcfff23, 0x22a582eb, + 0x840100ff, 0x000c227f, 0x2817840c, 0x00310013, 0x00360035, 0x2205823b, 0x82330033, 0x8214200d, 0x00112417, 0x820d000e, 0x0009283b, 0xff030005, + 0x82fafffb, 0xfff424c1, 0x82f1fff0, 0xffe22603, 0x00e8ffe9, 0x211f8203, 0x1f830009, 0x23820420, 0xa3820520, 0x13820820, 0xffff0425, 0x67ff0000, + 0xf82305d3, 0x85fff3ff, 0xffee2233, 0x207982ee, 0x207f82ec, 0x203b82ea, 0x200782e7, 0x201182eb, 0x204b82ef, 0x20b582f0, 0x200382e3, 0x203382f3, + 0x22e982ff, 0x82080003, 0x820c2001, 0x8211205b, 0x82e2206b, 0x00ff244b, 0x82ca0044, 0x820720cd, 0x000b2461, 0x821a0013, 0x00122401, 0x821b0014, + 0x82182007, 0x001922ad, 0x221d8218, 0x50f9ff00, 0xed2006d9, 0xe724a982, 0xe2ffe5ff, 0xdf240182, 0xd8ffdfff, 0xd0220182, 0x0784cdff, 0x1382e320, + 0xe3ffe424, 0x0782e4ff, 0x8582eb20, 0x9f82f420, 0x3f833782, 0x0922c982, 0xf9821201, 0x4f821820, 0x1f002024, 0x01821700, 0x6f820f20, 0xd384e382, + 0xf8fff822, 0xee20af82, 0xe822bf82, 0x4382e1ff, 0xe8ffe924, 0x0182efff, 0x83073b4e, 0x820020b7, 0x821220c1, 0x02562204, 0x204182bd, 0x33b34331, + 0x82120021, 0x004e24d9, 0x8211000a, 0x000a2401, 0x82ae0057, 0x8212200b, 0x000a2815, 0xff460022, 0x82ecfff1, 0xffea22df, 0x200182d7, 0x22c782d6, + 0x84aeffd7, 0x82ec2013, 0xffd727cd, 0x00d6ffd6, 0x4b4f009c, 0x820a2005, 0x821420bb, 0x860d2003, 0x820b200f, 0x0013260b, 0xff0d0014, 0x24ef84b9, + 0x00230000, 0x20018239, 0x230d8322, 0xc7ffdeff, 0x75560182, 0x002e2205, 0x2401823c, 0x007d0043, 0x20018281, 0x221f8455, 0x82c4ffd2, 0xffbd2601, + 0xff7eff84, 0x2093827f, 0x20df8218, 0x2a41821e, 0x0042003f, 0xff2b0043, 0x82e1ffe9, 0xffde2401, 0x82beffc0, 0x83d42001, 0x03002b33, 0x00004f00, + 0xbd023a02, 0x23822d00, 0x825c9546, 0x00392c69, 0x004100aa, 0x00320031, 0x53210022, 0xf63008cd, 0xebfff6ff, 0xe5fff2ff, 0xd7ffe4ff, 0x0d001100, + 0x05240182, 0x06000500, 0x08220182, 0x07840700, 0x01270f83, 0x00000200, 0x50ffffff, 0xe02e05b9, 0xd5ffd4ff, 0xbbffc7ff, 0x000076ff, 0x03826000, + 0x20000024, 0xef825f00, 0x19001a22, 0xed415b84, 0xff002205, 0x200182f8, 0x263582ef, 0xffe6ffe7, 0x73d6ffdd, 0x25260667, 0x28007000, 0x01821e00, + 0x14001424, 0xa7590a00, 0xfff72808, 0xffeeffed, 0x82e2ffe1, 0x84cf205d, 0x20048355, 0x2093820c, 0x26578218, 0x00240023, 0x82260030, 0x001f2235, + 0x24378218, 0x000f000e, 0x22a3820b, 0x84040005, 0x41062001, 0x0b2208c9, 0x01820c00, 0x0f000f26, 0x2b001000, 0x2122ed82, 0x01821700, 0x2d820c20, + 0x00284f83, 0x8fff51ff, 0x9f003400, 0x00220c84, 0x0182faff, 0xf5fff424, 0x7d82ecff, 0xe4ffe424, 0x0182ebff, 0xf3fff323, 0x06f942ff, 0x00b1fe25, + 0x86c10040, 0x05e5422b, 0x83fff021, 0xffde2acf, 0xffe8ffdf, 0xfff2ffe9, 0x080950f1, 0x4600012a, 0x1902f3ff, 0x4700cb02, 0x4633dd42, 0xca201667, + 0x1320ed82, 0x14200382, 0xa5828583, 0xab82ec20, 0xeaffec22, 0x0383a782, 0xcfff9d23, 0x052d41ff, 0x28072941, 0x00240025, 0x00150031, 0x20038616, + 0x823f8414, 0x2037843c, 0x204182ed, 0x20b782ed, 0x26bd82ea, 0xffd7ffd1, 0x82deffd8, 0xffe62401, 0x43eeffe6, 0x6f830aaf, 0x37822720, 0x18001828, + 0x1c001d00, 0x01821f00, 0x17002422, 0x16265382, 0x0500fcff, 0x01820700, 0x20000a24, 0xfd824100, 0x1b4ef620, 0x4dfc2006, 0x48240655, 0x8f004800, + 0x36220382, 0x89823600, 0x12002422, 0x6108315c, 0xf220095b, 0x00213b83, 0x2045820a, 0x204d8208, 0x08076104, 0xf5fff422, 0xe122d784, 0x9982e0ff, + 0xdb83d720, 0xffc6ff2b, 0xffbeffaa, 0xffd0ffbd, 0x21a182e7, 0x2383ffee, 0xfafffa22, 0x0020d082, 0x02213782, 0x20058300, 0x22048245, 0x82bd022c, + 0x412f20f1, 0x00293179, 0x002f0045, 0x0047008e, 0x23018237, 0x00260028, 0x5682fd83, 0x82f0ff21, 0x28898301, 0xffc5ffc5, 0xffc1ffab, 0x20148282, + 0x20038265, 0x20678200, 0x08054541, 0x0d001024, 0x03820e00, 0x0c001a22, 0x1e820182, 0x82f3ff21, 0xffe624a3, 0x82dbffe8, 0xffcf2201, 0x851282e3, + 0x82162002, 0x002b2a37, 0x0042002b, 0x005a0041, 0x2007825b, 0x200d8242, 0x2015822b, 0x27208515, 0x40fe51ff, 0x9a018800, 0xfc240d86, 0xf9fffcff, + 0xf5220182, 0x8982f6ff, 0xcaffe328, 0xb2ffcbff, 0x0782b3ff, 0xe3ffca26, 0xf2ffe2ff, 0x22068d62, 0x825e0001, 0x822320ff, 0x991720ff, 0x222382fd, + 0x59540171, 0x08830837, 0xe8004d22, 0xb2220f84, 0x078319ff, 0x01570023, 0x220f8408, 0x83adfe8f, 0x4b038407, 0x002306e5, 0x8cbf003f, 0x6634200f, + 0x3b200843, 0x51203384, 0x01280582, 0x00007500, 0xbe022902, 0x821df74b, 0x00182225, 0x242f824a, 0x003d0000, 0x223d84b9, 0x8348ffc2, 0x55002307, + 0x0f84fd00, 0xafffcb24, 0xe982b0ff, 0xdbffd624, 0xfb4bdaff, 0x21188306, 0x2b530052, 0x00132205, 0x230e8339, 0xa6003800, 0x0f870784, 0x00230c84, + 0x82ffff00, 0x00172c03, 0xff330001, 0x022802f3, 0x415f00cb, 0x75431917, 0x31f54916, 0xf582cd20, 0x16001724, 0x84831500, 0xffc6ff23, 0x23078354, + 0x65002100, 0xfa230f84, 0x6efffaff, 0x098305a9, 0xf3fffa24, 0x0182f1ff, 0xcefff024, 0x0182dcff, 0xf4ffe824, 0x0182f7ff, 0xf7601b83, 0x000c2207, + 0x2651820c, 0x00260018, 0x82300025, 0x000b210b, 0x0c200183, 0x0c210582, 0x052d5300, 0x15850583, 0x63840a20, 0xebffed26, 0xe9ffecff, 0xe9200582, + 0xe7240582, 0xc9ffbaff, 0xd8200182, 0x8305374a, 0x14002521, 0x27001300, 0x182e0382, 0x1b001800, 0x1f001c00, 0x24002000, 0x09821e00, 0x05001b26, + 0x0d000900, 0x11200182, 0xca20b182, 0xc5204f86, 0xd0220784, 0xfd5d73ff, 0x239d8208, 0xfffffeff, 0xfe220f82, 0x1d83feff, 0x82120021, 0x82232001, + 0x82162003, 0x001a22fb, 0x2051821a, 0x21b18220, 0xff430049, 0x05c95b0f, 0x5efffe21, 0xdd5e05db, 0xfff92105, 0xf8260183, 0x2100f6ff, 0xe3824100, + 0xd9820920, 0x07000624, 0x01820300, 0xff2f5c82, 0xffe8ffe7, 0xffd1ffd0, 0xffbdffbc, 0x82abffa9, 0x82bd2005, 0x055b480f, 0xf4fff323, 0x070744ff, + 0xbd820420, 0x01000028, 0x00004500, 0x07432402, 0x0045241e, 0x824c0019, 0x8200205c, 0x0539452d, 0x0f851a20, 0xffe6ff23, 0x22ef84b4, 0x8431ffbb, + 0x85e72007, 0x230b830f, 0xfb005300, 0xac221384, 0x078306ff, 0x02af0023, 0x220f840e, 0x8328ffb9, 0x48002307, 0x0743d700, 0x0064240a, 0x9e030200, + 0x00642487, 0x84370168, 0xffd92233, 0x2307838a, 0x75002800, 0x98220f84, 0x0783c9fe, 0x1f870f88, 0x8f431483, 0x01872207, 0x0c0b5d97, 0x41ffec21, + 0x782205ab, 0x43846afe, 0x0582ec20, 0x3d000126, 0xde01f7ff, 0x7f6c8782, 0x007e242f, 0x82120019, 0x650c2001, 0x00250993, 0xffb7ff00, 0x24558225, + 0x00300000, 0x2207848f, 0x82f9ff00, 0x82f22001, 0xfff62403, 0x82f2fff5, 0xfff12c01, 0xffeffff1, 0xffbbffde, 0x84c2ffec, 0x00172a23, 0x001c0046, + 0x00290054, 0x2207821d, 0x820d000a, 0x00132255, 0x2801821b, 0x00240023, 0x019e002c, 0x8227833a, 0x26bf852f, 0xffd9fe9e, 0x82dfffd1, 0x43ee2001, + 0xff21090f, 0x07d354fe, 0x315a0020, 0x82c72005, 0x22028706, 0x82040005, 0x05fb410a, 0xeb826420, 0xeb432920, 0x4200202b, 0x1326090d, 0x10003a00, + 0x01821500, 0x2b001724, 0x01822d00, 0xb5821d20, 0xedff5124, 0x0182e6ff, 0xcbffe424, 0x0182c9ff, 0x6100db28, 0xe2ffc200, 0xb182a7ff, 0xe5ffe422, + 0xc8220982, 0x0182c6ff, 0x3142da20, 0x00452610, 0x001400cd, 0x0ce77b39, 0xd5ffc022, 0xfd822783, 0xfd822420, 0x4a002724, 0x01824c00, 0x5f003322, + 0x82055d45, 0x82e52053, 0xffe32253, 0x265182c8, 0x00daffc7, 0x84d00068, 0x00512857, 0x006c0001, 0x82390200, 0x8d0b20df, 0x221782df, 0x845a0173, + 0xfea62225, 0x428590f2, 0x9b22072f, 0x9f42d201, 0x8226200a, 0x4244204b, 0x00253117, 0x00160026, 0x21478342, 0xc3821100, 0x19001b30, 0x0d000e00, + 0x09000c00, 0x33001a00, 0x09820a00, 0x11820c20, 0x0d821a20, 0x12001b22, 0x2f862784, 0xffdeff27, 0xfff8ff9a, 0x240182f4, 0xffe8fff3, 0x240182e7, + 0xffd3ffef, 0x201782a6, 0x8327849b, 0x019a2e04, 0xffd4ffcc, 0xffbcffbb, 0xffddffbe, 0x200182e0, 0x231683e8, 0x20001800, 0x23200182, 0x44287982, + 0x2c004500, 0x66fe34ff, 0x83431784, 0xffea3207, 0xffe3ffe2, 0xffc3ffdf, 0xffc0ffc1, 0x007300d6, 0x20eb8ae5, 0x061b4746, 0x21224f6b, 0x6b824600, + 0x3b834920, 0x1520df82, 0x182ceb82, 0x2f002c00, 0x1f002e00, 0x56002a00, 0xe7225384, 0x0784b8ff, 0xeaffef24, 0xc982ebff, 0xd2ffd322, 0xe1220182, + 0xdd4ad5ff, 0x261c8306, 0xffac018f, 0x82cfffdb, 0xffc92401, 0x8297ff9b, 0x8cba2001, 0xfe7226af, 0x00260053, 0x24018231, 0x00660036, 0x20018269, + 0x2aaf8845, 0xff3a0002, 0x022e02f7, 0x4a2700c6, 0xa1204c45, 0x1424d982, 0x10001400, 0x260c1760, 0xffe2fff0, 0x82ecfff0, 0x82e82001, 0xffe528cb, + 0xffe1ffe5, 0x82d1ffc2, 0x82e12001, 0xfff02209, 0x829783f0, 0x000f2233, 0x2401821f, 0x002f002f, 0x2407823f, 0xff1b001b, 0x105d593d, 0x1c001122, + 0x25200182, 0x1b20b782, 0x11210782, 0x11875f00, 0x5f82e420, 0xdbffd92a, 0xe4ffe4ff, 0x0b000c00, 0x112c2182, 0x2d001800, 0x43004400, 0x5a005900, + 0x43240582, 0x17002e00, 0x0b201784, 0x240ad552, 0xffeaffe9, 0x200182d3, 0x0a9d6abd, 0x0f82d420, 0xe9ffea22, 0x05289f84, 0x84000600, 0x36002200, + 0x4a220182, 0x05824b00, 0x0d823520, 0xab662120, 0x82ef2008, 0x70df20ab, 0xb5260649, 0xcaffb5ff, 0x0d82c9ff, 0xf982df20, 0x102cdf87, 0x56000200, + 0x2e020000, 0x1d00bd02, 0x3b674018, 0x5d464582, 0x001e2a07, 0x003f0057, 0x002f0030, 0x22018220, 0x6c100010, 0xf4220c61, 0x7f82f3ff, 0xd0ffdf2a, + 0xc2ffd1ff, 0x6fffb7ff, 0x65201d82, 0x00220382, 0x37821e00, 0x1b002422, 0x14230182, 0x4d001300, 0xf626091f, 0xf6ffedff, 0x0182f5ff, 0xf2fff322, + 0xf0203b82, 0xd9200f82, 0x00243184, 0xd4004600, 0x0d220986, 0x3b840d00, 0x27002728, 0x18003400, 0x01821700, 0x2205f741, 0x820e0010, 0x841f8319, + 0x51ff272a, 0x42005aff, 0x0c84c600, 0xf7ff002a, 0xeffff8ff, 0xe8ffeeff, 0xe1220182, 0x0784e0ff, 0x47ffee21, 0xfc24059f, 0xfefffbff, 0x26066178, + 0xff3a0003, 0x4268029f, 0x4018069f, 0x01205a09, 0x248fb142, 0x001f00d6, 0x2503821e, 0x0015001f, 0x0082002b, 0x86e2ff21, 0xffef2601, 0x00f0ffef, + 0x0ad1420d, 0xd1424320, 0x42ea2038, 0x35210ed1, 0x25d14200, 0xe0ffca24, 0x8784dfff, 0x10264083, 0xc5ff1100, 0x0185ddff, 0x00251083, 0x002c000f, + 0x26018423, 0xfff2ff22, 0x82f2fff1, 0x00022c15, 0x02000048, 0x00bd0232, 0x46530039, 0x154b0d55, 0x43618247, 0x0c24070f, 0x0c002500, 0x0a250184, + 0x18000d00, 0x05b35d00, 0x05000624, 0x01820800, 0x10000a24, 0x01821c00, 0x23001134, 0xedff4800, 0xe3ffe4ff, 0xf6ffe7ff, 0xf9fffaff, 0x0182fdff, + 0x0b82f720, 0x1a00f02e, 0x16001700, 0x18001300, 0x0c000b00, 0x0020c182, 0xf782f183, 0xd4ffe52a, 0xc3ffd3ff, 0x6effb7ff, 0x24084743, 0x0059001d, + 0x20558212, 0x206d8210, 0x202f820d, 0x2071820a, 0x20038213, 0x2437840a, 0xfff7fff7, 0x203d82ee, 0x226782e3, 0x83dbffd8, 0x22038213, 0x82de004a, + 0x48028205, 0x2582096f, 0xf1fff222, 0xf5207d82, 0xf0200582, 0xdf249982, 0xc8ffc9ff, 0x23053974, 0x36002400, 0x2f200182, 0x0c209182, 0x07248f82, + 0x11000600, 0x1d200182, 0x0e227182, 0x7d820f00, 0x1e001a22, 0x2d220182, 0xfb822c00, 0x09822520, 0x8b841a20, 0x00295f82, 0xff51ff00, 0x003e0069, + 0x220c84bb, 0x82feff00, 0xfffb2101, 0x2405154b, 0xfff0fff8, 0x240182e8, 0xffe1ffe2, 0x200182e9, 0x220f82f1, 0x84f9fff8, 0x05635029, 0xcb022524, + 0xb1418700, 0x34f94155, 0x1000e323, 0x0fbb6700, 0xf4fff422, 0xe722c382, 0x0182daff, 0xe5ffcc2c, 0xf9fffaff, 0xdbfff3ff, 0x0182e7ff, 0x0b82f220, + 0x22059f61, 0x4cfffffc, 0x0b240647, 0x15000a00, 0x1c260182, 0x25001b00, 0x01821700, 0x03821820, 0x4f0bf54c, 0xf320095f, 0xf4204982, 0xf5200386, + 0xe9226582, 0x0182eaff, 0x5982e420, 0x0984e620, 0xecffed26, 0xdefff0ff, 0xef210382, 0x20008300, 0x209d820b, 0x24038218, 0x000f0010, 0x28018213, + 0x00160016, 0x001b0019, 0x22018207, 0x8212000e, 0x20bf8515, 0x2083820b, 0x630d8208, 0xf52407ab, 0xebfff5ff, 0xe3225182, 0xc582e2ff, 0xe6ffe622, + 0xe6206184, 0xe420cd82, 0x2206954e, 0x821a001b, 0x821b2001, 0x2009834b, 0x06f1451b, 0x6b882720, 0x69821420, 0x1d821720, 0x21002a24, 0x73822200, + 0x6d821920, 0x65821220, 0x6f6b0620, 0x00072206, 0x2201820b, 0x5f06000d, 0x0c240cf5, 0x15001c00, 0x10243982, 0x08001000, 0xc382a382, 0x82fdff21, + 0xfff92101, 0x2405e75f, 0xfffbfffa, 0x260182fa, 0x002000f9, 0x5f040040, 0x032108c7, 0x20018300, 0x084f5104, 0x2782fc20, 0x9f4bf920, 0x82f32006, + 0xffda24b5, 0x82d1ffd9, 0x82e220c9, 0xffea24cf, 0x51f6fff4, 0xfa2006bb, 0xfb202382, 0xff200382, 0xfd200082, 0x9b416382, 0x28638305, 0xfff8fff9, + 0xffeefff2, 0x26fb82ed, 0xffe9ffe2, 0x64f0ffe8, 0x05200a53, 0x08207b82, 0x0d28a182, 0x11000c00, 0xbdffdeff, 0xf7204f82, 0x3f833182, 0xd741fd20, + 0x05714606, 0x18000128, 0x51020000, 0x4818bd02, 0x01211325, 0x08934d02, 0xaf003b22, 0x0024ec82, 0x55fe72ff, 0x00230783, 0x84b0003a, 0x22048307, + 0x4cd3019b, 0x642014f3, 0x01261582, 0xf3ff3c00, 0x8f6b2b02, 0x0070226a, 0x22f5820e, 0x4f09000d, 0x09200a8d, 0x09220d82, 0x17821100, 0x07000c26, + 0x02000300, 0x02220384, 0x01820100, 0x0022a482, 0x534eff00, 0xffff2108, 0xff240d82, 0xfdfffeff, 0xfc2c0182, 0xf4fff9ff, 0xf0fff5ff, 0xebfff1ff, + 0xe3240182, 0xeaffe5ff, 0x0f830782, 0xf8221783, 0x2784fcff, 0x85072b43, 0xffe6224b, 0x210884b3, 0xbd6d0000, 0x41012005, 0x042106fd, 0x5b431800, + 0x09c75e09, 0x0b000b22, 0x2028ab86, 0x1c001b00, 0x0f001500, 0x0f22c182, 0x9b82f6ff, 0x20053742, 0x83378203, 0x8206203b, 0x82062007, 0x052b43bf, + 0x0a001722, 0x11202984, 0x1828d782, 0x1e001900, 0x20019000, 0xff237783, 0x829bfe89, 0xffee22cf, 0x084742ed, 0xf3fff922, 0xf622c582, 0xcf82f8ff, + 0x22070f54, 0x82040004, 0x8207204b, 0x820b2045, 0x0006226f, 0x20858208, 0x220d820b, 0x82120013, 0x019f224d, 0x264b843c, 0xffbcfe94, 0x82e9ffe3, + 0xffee2401, 0x82f1ffee, 0x84f52001, 0x6af5204b, 0xf9200a67, 0x24084351, 0xfffbfffc, 0x726382fd, 0x01200923, 0x012a4582, 0x00001d00, 0xbd024c02, + 0x1b452500, 0xf7002527, 0x5c001f00, 0x8d839782, 0x27001524, 0x01822800, 0xdfff1b24, 0xc782beff, 0x8582f020, 0xe0ffee22, 0xde220d82, 0x0182eaff, + 0xdeffdf22, 0xef210d82, 0x059541ff, 0xbfffdf22, 0x8282378e, 0x2e260282, 0x3d003c00, 0x21584200, 0xffd8220c, 0x240182cb, 0xff92ffc6, 0x2401828f, + 0x004b00b5, 0x24018271, 0x003a006e, 0x20018235, 0x0c455828, 0x7fff832c, 0x01007fff, 0x00000200, 0xcb826602, 0xcba74b20, 0x2925b945, 0x18007000, + 0x04004a00, 0x01840500, 0x0c000b22, 0x09260184, 0x08000900, 0x01820600, 0x07820920, 0x0b000a28, 0x0c000d00, 0x0f820a00, 0x2b820520, 0x21000422, + 0x0d22d182, 0x01841400, 0x17820a20, 0x07000928, 0xc6ffe4ff, 0x0382edff, 0xf9fffa23, 0x071b57ff, 0xf7ffef28, 0xb6ffdaff, 0x1182fbff, 0xf0211583, + 0x200183ff, 0x068744f6, 0xf2fff922, 0xf6260184, 0xc7ffe3ff, 0x47840700, 0x13000b22, 0x00205584, 0x163a0084, 0x1d001e00, 0x40002300, 0x4b004c00, + 0x3b004700, 0x33003200, 0xdeff2200, 0x0182cdff, 0xbaffc52a, 0xb5ffb4ff, 0xddffc0ff, 0xe2214182, 0x052d49ff, 0x81005522, 0x7d240182, 0x3c004300, + 0x2e200182, 0xff274783, 0x005bfe74, 0x82300020, 0x00372401, 0x826c0067, 0x843b2001, 0xffe02a17, 0xffd0ffd1, 0xff99ffc9, 0x22018294, 0x842500c5, + 0x00362223, 0x22258263, 0x41440067, 0x002a1289, 0x09000100, 0x5f020000, 0x914dbd02, 0x2653824b, 0x0052001b, 0x8211000d, 0x82132001, 0x002428f1, + 0x00180024, 0x4c210017, 0x102406bb, 0x0c001000, 0x48201382, 0x24061344, 0xffd5ffea, 0x2c0182d4, 0x000e00e3, 0x00130014, 0x00280015, 0x24038229, + 0xffdcff1c, 0x067f51b7, 0xe2fff024, 0x0382e1ff, 0xecffeb22, 0xe2240582, 0xf0ffe3ff, 0x26066f41, 0x00b8ffdb, 0x8227001b, 0x8226202f, 0x82122039, + 0x820e203f, 0xffd22a21, 0xffd3ffd2, 0xffeaffe9, 0x82f983eb, 0x00142203, 0x3001821a, 0x0035001d, 0x00370038, 0xffdbff25, 0xffc8ffc9, 0x244982cb, + 0xffe6ffe6, 0x242182ec, 0x00180000, 0x24018220, 0x00420024, 0x24018244, 0x0016002e, 0x2701821c, 0x003a0020, 0x003c003d, 0x2005cd42, 0x265582ef, + 0xffe7ffe9, 0x82d0ffd1, 0x82df2001, 0x003024d5, 0x822e0031, 0x8216205b, 0x831120e3, 0xd8ff2b47, 0xc4ffc3ff, 0xe0ffc6ff, 0x5f82e4ff, 0x8b82eb20, + 0xbcffbc24, 0xcf82beff, 0xe0ffe022, 0x01212182, 0x072f5c00, 0x212cd351, 0x4d460101, 0x82102008, 0x821420eb, 0x002b226f, 0x2001822c, 0x0629411d, + 0x280dd743, 0xfff1fff4, 0xffeffff0, 0x220182df, 0x82eaffde, 0x00b82123, 0x2a203787, 0x8b823785, 0x4f220285, 0xc182ec00, 0xcd822120, 0xf9822520, + 0x48004722, 0x1982d182, 0xffecff2b, 0xffe5ffe6, 0xffcaffe2, 0x200182c7, 0x2c7582da, 0x001b001a, 0x0037001d, 0x00380039, 0x20ed8426, 0x246184e7, + 0xffbbffdb, 0x240182b9, 0x0097ffd1, 0x251f8201, 0x02310200, 0x9b5000bd, 0x00372423, 0x187b017f, 0x2008394f, 0x267b822f, 0x00450048, 0x82220025, + 0x841a208d, 0xfe872217, 0x27078394, 0x14015c00, 0xe0ffe7ff, 0xdc246f82, 0xbaffbdff, 0xd1207182, 0x04831784, 0x3c001422, 0x00230683, 0x82650043, + 0x00622a01, 0x00300034, 0x0024002f, 0x53058218, 0xc520055b, 0xdc2c4b84, 0xd1ffd0ff, 0x9effccff, 0x9cff9bff, 0xe7204582, 0x01281582, 0xa6ff9400, + 0x1803cd01, 0x2513c347, 0x4f009400, 0x3b84ea00, 0x5bffc922, 0xdd820783, 0x0f84a520, 0x15ffb226, 0xa6ff0000, 0x00230b83, 0x84380013, 0x02b72207, + 0x20078426, 0x210f8512, 0x5f8423ff, 0xd2ff3e28, 0xe9022802, 0xf3441b00, 0x9e002f1d, 0xb8ffe8ff, 0x2a002000, 0x2e002b00, 0x01861900, 0x22002522, + 0x1a200182, 0x40241782, 0xdeffe6ff, 0xdb220182, 0x0182e7ff, 0x2d82e620, 0xd5ffd124, 0x5982d6ff, 0xff296682, 0xffaaffc2, 0xffa3ffab, 0x240184cd, + 0xffb5ffcf, 0x200182bc, 0x241a82cc, 0x00340000, 0x24018244, 0x0032004b, 0x24038433, 0x0055005d, 0x249b8456, 0x01a7ff9a, 0x22fb96d2, 0x864e009a, + 0xffb222fb, 0x202d8216, 0x22fb8800, 0x825bffc9, 0x84a720fb, 0x02dc2213, 0x23078395, 0xc9ffedff, 0x49220784, 0x0784dbfd, 0x5f84ed20, 0xb1013d24, + 0xbb462b02, 0x003d2c2c, 0x0053001c, 0x000c0009, 0x410d000b, 0x10220603, 0x09841100, 0x11821820, 0x19820c20, 0x2500082a, 0xf3ff4a00, 0xefffeeff, + 0xdb217782, 0x240183ff, 0xffe3ffe7, 0x201382c5, 0x281582ef, 0xffdcffed, 0x01dbffda, 0x208382b1, 0x30338200, 0x00100010, 0x00220012, 0x00230024, + 0xffe9ff17, 0x201f82dd, 0x242782de, 0xfff0fff0, 0x222384f3, 0x82170012, 0x00192801, 0x00320030, 0x84200031, 0x05ed43c1, 0xd0ffe62e, 0xcfffcfff, + 0xf7ff0100, 0x7202a7ff, 0x07202f82, 0x2509c741, 0x9f00f7ff, 0x2d84dc01, 0x24fe6122, 0x22081341, 0x41390013, 0xa7280a03, 0xa9013302, 0x13000203, + 0x2016ff41, 0x268982a9, 0xffe5ffe5, 0x82f2ffe6, 0x82f320bf, 0xffdb2467, 0x820a00b6, 0x000d22e7, 0x22f7820e, 0x821b001b, 0x022622bd, 0x220b8233, + 0x82260026, 0x821420fb, 0x8212200f, 0x826482d7, 0x82ee2031, 0x82ec203f, 0x82d920d1, 0x82e720f3, 0x00002e12, 0xff440002, 0x021302f3, 0x005b001b, + 0x5a75967f, 0x31b9310b, 0x1a006e26, 0x15001400, 0x8c85cd82, 0x294aa482, 0x2a002105, 0x0b20e782, 0x01201b82, 0x028c1282, 0x82feff21, 0xfffc2401, + 0x82f4fffb, 0xffef2801, 0xffecffef, 0x86e8ffeb, 0xffe72201, 0x220f82e7, 0x82f0ffec, 0x82ed2001, 0x84ea20fd, 0x0014303a, 0x00120013, 0x001c0011, + 0x00210038, 0x8219001a, 0x0013250d, 0x00080009, 0xff250084, 0xffa3ffe2, 0x280582e0, 0xffe4ffe2, 0xffeaffe3, 0x0c1d5ee9, 0x9d820d20, 0x35821a20, + 0x3b822220, 0x2205d757, 0x826eff1b, 0x6df82077, 0x0628066d, 0x0c000600, 0x0f000d00, 0x67830182, 0x6d821320, 0x26001424, 0x5c844e00, 0xfcff0022, + 0xf8200182, 0x2008117b, 0x205d82ee, 0x206782e9, 0x22b582e5, 0x820400eb, 0x00112c85, 0xff180010, 0xfff8fff5, 0x82fbfff9, 0x82f62001, 0x4ff1202b, + 0x15220891, 0x01821800, 0x21001b24, 0x83824100, 0x23005124, 0x07821b00, 0x13821220, 0x17601320, 0x820b2008, 0x82062081, 0x8303204b, 0x6d398571, + 0xe7240815, 0x0100d0ff, 0x47411782, 0x22658208, 0x82f3fff9, 0x82e92001, 0x82de2089, 0x82f7209b, 0x7002821d, 0x1b83063f, 0xedfff222, 0xe5280182, + 0xdfffe5ff, 0xe1ffd6ff, 0xea200182, 0xf6222b82, 0x2682f5ff, 0x67820020, 0x58000422, 0xe783f182, 0x16001924, 0x01821100, 0x0f820b20, 0x08000722, + 0x02231b84, 0x84000200, 0xfcff2500, 0xe7fff2ff, 0xeb24ef84, 0xefffeaff, 0x77830182, 0xdb4ff920, 0x00072206, 0x2a298206, 0x02f3ff60, 0x00f5022c, + 0x42770037, 0xbb247a8f, 0x10001500, 0x7a06c94c, 0x0520059f, 0x6e08955b, 0xf7210929, 0x057342ff, 0xebfff026, 0xe6ffecff, 0xe220db82, 0xec20df86, + 0xf0240f82, 0xf4fff0ff, 0xf182f883, 0x0783bb20, 0x00150023, 0x20e1823e, 0x34498202, 0x00180002, 0x00260027, 0x001e0035, 0xff1a0019, 0xfff2ff60, + 0x06f341f5, 0xfbfffa26, 0xfdfffeff, 0x22081950, 0x84010002, 0x00052831, 0x00070006, 0x820b0008, 0x000e2201, 0x0847760e, 0x13001322, 0x0e200d82, + 0x1f831784, 0x05000522, 0x37836584, 0x50187682, 0xfb2008eb, 0x8306954a, 0x18f22067, 0x220ac548, 0x82eeffed, 0x820d203b, 0x001022ef, 0x50018214, + 0x1820051d, 0x20064745, 0x85a98219, 0x55162003, 0x0c220a4b, 0x41180c00, 0xa342089d, 0xfff62205, 0x240182f1, 0x006300ec, 0x22f384c7, 0x83c8fd43, + 0x83278207, 0x5d11209f, 0x06200a85, 0x50203982, 0x2406b544, 0x000f000f, 0x66018211, 0x112005b7, 0x0f898384, 0x99501020, 0x820a2008, 0x42d7832f, + 0xfb220597, 0x0182f6ff, 0xf4fff424, 0x7382f0ff, 0x83ffef21, 0x82ee2001, 0x0535660b, 0x07830f87, 0xf3209383, 0x1806e94f, 0x2a0baf56, 0xff520001, + 0x020302f3, 0x424f001b, 0x02205165, 0x22057743, 0x82eefff0, 0xffec2499, 0x82ecffed, 0xffe92401, 0x82e5ffdf, 0x240b8301, 0xfff2fff1, 0x22c182f7, + 0x82fcfffc, 0x000026d0, 0x00040005, 0x20018209, 0x24ef820e, 0x00140014, 0x2201821b, 0x82180021, 0x00142409, 0x86120011, 0x842a8201, 0x82ed204b, + 0xffee2e05, 0xffeaffeb, 0xffd4ffe9, 0xffdbffda, 0x200182e2, 0x240d82e8, 0xfff0fff1, 0x08f371f9, 0x10000722, 0x17244f82, 0x1e001700, 0x252a0182, + 0x2c002500, 0x28002e00, 0x5d822900, 0x44001626, 0xf5fff1ff, 0xf9208382, 0x230aab4e, 0x00070007, 0x510b5942, 0x1d2405db, 0x1a001900, 0x17204582, + 0x11208782, 0x820ccb75, 0xfaff21bf, 0xf4203f82, 0xf2204982, 0x3d206382, 0x2108d362, 0xf5430006, 0x20e78206, 0x0c5957f7, 0xddffdc24, 0x0182d7ff, + 0xdcffdc28, 0xe0ffe1ff, 0x0182e8ff, 0xeeffef22, 0x20088d7d, 0x2043820a, 0x283d8200, 0x02f3ff3d, 0x00f50209, 0x1d45182f, 0x82ad2074, 0x00032981, + 0x00010003, 0x0037001c, 0xff230082, 0x84bbffe9, 0x46f52007, 0xec22064b, 0x0182eaff, 0xceffe822, 0x20063d68, 0x08b976e3, 0x06303783, 0x09000500, + 0x0d000800, 0x11000c00, 0x15001000, 0x2d08d975, 0x00260033, 0xff4bff25, 0xfff6fff3, 0x7d41fff5, 0xfffb2205, 0x200184fe, 0x826183ff, 0x82022073, + 0x8202207d, 0x00042241, 0x22018207, 0x820a000b, 0x000d2247, 0x20018212, 0x20478216, 0x20518212, 0x2411820e, 0x000b000a, 0x831f8206, 0x2031856b, + 0x7ea18401, 0xfe21059f, 0x05bf52ff, 0x6582fa20, 0x6d82f620, 0xeffff223, 0x053542ff, 0xeeffee24, 0x11824300, 0xebffeb22, 0x23059f44, 0x3802bd00, + 0xb5263984, 0x140021ff, 0x01820f00, 0x820b6f43, 0xdbff212f, 0xce200182, 0xc122eb82, 0x4318e7ff, 0xe9200803, 0x4383ff82, 0xf982f020, 0x200b8d60, + 0x20438214, 0x4adf4334, 0xdf43f020, 0x82ef2006, 0xfff02107, 0xcb830d85, 0x2c1bdf43, 0xff3e0002, 0x022c02f3, 0x003b001b, 0x51e14355, 0x24066b50, + 0x001900b6, 0x26018418, 0xff000000, 0x82e9ffe8, 0x82e72001, 0x05754b07, 0xdeffd322, 0x13830182, 0x2947f420, 0x00002406, 0x822b0163, 0x2102822a, + 0xc982f1ff, 0xe1ffe228, 0xd5ffd4ff, 0x0382c8ff, 0xdcffdd28, 0xe4ffe3ff, 0x0182eaff, 0xf2fff122, 0x2408c743, 0x00120013, 0x24018225, 0x00320033, + 0x286f8241, 0xff190019, 0x00020004, 0x24018206, 0x000a0009, 0x2201820e, 0x42110011, 0x19220661, 0x01821400, 0x0f001023, 0x05814700, 0x04000622, + 0x002a0182, 0xfdff9bff, 0x08000500, 0x31820700, 0x3a001c26, 0xf6fff5ff, 0xf9220182, 0x4f18f8ff, 0x0d220843, 0xcd840c00, 0x20002126, 0x01002a00, + 0x2a06b347, 0x0020000a, 0x002e003c, 0x8222002f, 0x82102001, 0x27bb8367, 0xfff7fff6, 0xffedffee, 0xe020e783, 0xdc20c382, 0xd924bb82, 0xceffc1ff, + 0xdb200182, 0xee220b82, 0x2682eeff, 0x43820020, 0x3e010324, 0x91821600, 0xc5821320, 0x0d001222, 0xb542ab82, 0x83052005, 0xfbff231f, 0x8784faff, + 0xef82f220, 0x51823382, 0xd350ec20, 0x00012206, 0x223e8242, 0x18e00209, 0x252f4941, 0x1700e700, 0x5d834600, 0x7f20c582, 0xd5226584, 0x078382ff, + 0x04220382, 0xff820500, 0xc5820a20, 0xeb821120, 0x49002422, 0xe32e1f84, 0xd3ffaaff, 0xe0ffdfff, 0xebffeaff, 0xab41f5ff, 0xd7ff2307, 0x1f8384ff, + 0x00290023, 0x8307847c, 0x01642204, 0x0c71652d, 0x4c001a24, 0x4f841800, 0x09000922, 0xd7845d82, 0x12222182, 0x05823500, 0x20052b41, 0x205582f6, + 0x265d82ec, 0xffd5ffe0, 0x84c3ffe2, 0xffed2173, 0x20052547, 0x2a0d829c, 0xff4c0002, 0x02170203, 0x4b57001b, 0xde228483, 0xcb822500, 0x99820820, + 0x03820120, 0x85000021, 0x21078205, 0xb94de4ff, 0x23118305, 0xeffff2ff, 0xeb200182, 0x20068746, 0x22d982e7, 0x82e6ffe7, 0x49ec200d, 0xf72308d7, + 0x57fff6ff, 0xfd200509, 0x03244784, 0x05000300, 0x30068141, 0x000d000c, 0x00110010, 0x00150014, 0x0019001a, 0x2005821e, 0x420b8216, 0x12200527, + 0x83056742, 0xffff2f35, 0xdeffdfff, 0xdcffbeff, 0xcaffcbff, 0x1383d0ff, 0x00380029, 0x0040003f, 0x822d0027, 0xff1e2437, 0x82edff09, 0x84f72069, + 0x7b0a2019, 0x21220aa5, 0x47821600, 0x69821220, 0x0a000d22, 0x07220182, 0x7f840700, 0x87820220, 0xc3830120, 0xff000027, 0xfff7fff8, 0x22b182f0, + 0x82e7ffe7, 0x82df2067, 0xffe622c1, 0x24598245, 0x00320031, 0x24638231, 0x00610060, 0x200b825d, 0x206b822d, 0x82618322, 0xfff22469, 0x82f3fff1, + 0x20c38359, 0x226f8208, 0x84040004, 0xfffa2419, 0x82f4fffa, 0x82f02001, 0xffec261f, 0xffe9ffec, 0x200382ea, 0x088b4ce8, 0xea200987, 0x1f831782, + 0x410f3745, 0x0621051f, 0x20578300, 0x28478214, 0xfff5ffe8, 0xffc4ffe2, 0x210182d2, 0x0082fffe, 0xe6226584, 0x0782ccff, 0x0029bf86, 0x01130012, + 0x001a004e, 0x20018225, 0x20b18231, 0x22078224, 0x84180019, 0x092b49f3, 0x5d57f720, 0x82f22006, 0x053f45e9, 0xf0230583, 0x4fffcfff, 0xe620050f, + 0xdd4e1f82, 0x207b8305, 0x26f38201, 0x020d0200, 0x453300f5, 0x3f823539, 0x45001722, 0x02837e82, 0x03000424, 0x01820600, 0x0b000b24, 0x01821000, + 0x15001422, 0x1b22af82, 0x01821400, 0x454a0d20, 0x882a8209, 0x59ff2033, 0x954c05eb, 0xffee2405, 0x82e6ffed, 0x05537b01, 0xe6ffd722, 0x00212982, + 0x068d47ff, 0x00230b83, 0x82e0004a, 0x244f8353, 0x00130013, 0x2001820f, 0x83ff820c, 0x5f1e8273, 0xef2206d9, 0x4384e7ff, 0x26ff9322, 0x00251482, + 0xf5005200, 0x05bb5a00, 0x45001821, 0x10220733, 0x01820800, 0x02000024, 0x0182ecff, 0x6200d624, 0x6b84c400, 0x05824320, 0x9e00022c, 0x79010000, + 0x1700db02, 0x15414100, 0x0e9f5635, 0x6b826920, 0x04000322, 0x03836183, 0x82fcff21, 0x82f820f5, 0x45d020d7, 0x18830a93, 0x23820420, 0x18000824, + 0x0c833e00, 0x8b430020, 0x4d0c8407, 0xff2008d3, 0x048b0e84, 0xff232786, 0x845dffc9, 0x00202216, 0x0fd95d5f, 0x02170023, 0x8313826e, 0x00072783, + 0x0036001b, 0x8f8f0007, 0xe5fff926, 0xf9ffcaff, 0x29829b83, 0x92fd002e, 0x12001500, 0x10001300, 0x1e000f00, 0x0e209782, 0x10200f82, 0x0b2c0d82, + 0x0b002400, 0x0e000c00, 0x1d000f00, 0x36202182, 0x11202784, 0x15221982, 0xdd842b00, 0xc6ffed22, 0xbe260784, 0xd3ff3cff, 0x5782e4ff, 0xe6fff624, + 0x1383cdff, 0x0002002b, 0x0104ff76, 0x00db02b9, 0x37714217, 0x00a40123, 0x20bd8208, 0x824f8403, 0xfdff2104, 0xf8260182, 0xcfffe8ff, 0xcd73f8ff, + 0x84178208, 0x00082c23, 0x0003ff18, 0x00710026, 0x82200029, 0x82162001, 0x6f0b2077, 0xc522081f, 0x28834fff, 0x00240023, 0x2207846c, 0x82eaff00, + 0xffd22601, 0x00a2ffd1, 0x2f314100, 0x8596fc21, 0x0d002143, 0x19240182, 0x30001900, 0x2e240182, 0x7501bb00, 0x280c1541, 0xff96fe87, 0xffd8ffc6, + 0x251583d8, 0xecff0000, 0x9d820100, 0x54020025, 0x7200db02, 0x71203529, 0x4820d382, 0x0d224d84, 0x01821500, 0x0e000d24, 0x01821200, 0x25001322, + 0x2620f982, 0x26248982, 0xefff4b00, 0xe822db84, 0xf364d3ff, 0x22238205, 0x82130013, 0x00272e2d, 0x00280029, 0xffdbff1b, 0xfff0ffb6, 0x240182eb, + 0xffd5ffe9, 0x202782d4, 0x235383e3, 0xb9ffe8ff, 0x03840783, 0x9e003524, 0x35820b00, 0x0b001322, 0xe8284f82, 0xe6ffe9ff, 0xceffd0ff, 0xdf200182, + 0x16221f84, 0x01821c00, 0x1d571f20, 0x570d2008, 0x252408f1, 0x18002400, 0xf2204f84, 0x2206d14c, 0x82d8ffd9, 0x00e52401, 0x841a018d, 0x00492c17, + 0x00880001, 0x02720100, 0x432100be, 0x3d232475, 0x43000d00, 0x408305e1, 0x0120038d, 0x00244d82, 0x64ffb2ff, 0x23221684, 0x4d436800, 0x2215840d, + 0x860a0000, 0x00222207, 0x289f8265, 0x0015006d, 0x00100041, 0x20e18233, 0x220f823a, 0x823c003c, 0x82228205, 0x05d142b1, 0xd7ffc122, 0xed20b382, + 0xcd28f582, 0x7bffd3ff, 0x65ffccff, 0x012a1e82, 0x00002900, 0x1b024502, 0xb7a45b00, 0x1d440020, 0x820fa80e, 0x00152267, 0x8371823f, 0x24448302, + 0x00020002, 0x22038203, 0x82070004, 0x001028b7, 0x00120019, 0x820c000d, 0x8204200d, 0x00032117, 0x0d9d4518, 0x02203b89, 0x02207284, 0x05203d84, + 0x2008ff75, 0x213b8414, 0x3b830006, 0x1b820220, 0x6b836185, 0x88000021, 0xf9ff213b, 0xf22e0182, 0xe8fff2ff, 0xdeffe9ff, 0xe0ffd5ff, 0x0982dfff, + 0xeafff222, 0xe2280182, 0xe1ffd4ff, 0xefffe2ff, 0x01223484, 0xf7430000, 0x28108308, 0x00e2004b, 0x0017001c, 0x20ab8416, 0x226d820d, 0x180e0007, + 0x200c7b42, 0x245b82f3, 0xfff4fff3, 0x200182ef, 0x245582ea, 0xff9cffe4, 0x203a8337, 0x203b8300, 0x8539821d, 0x820c203b, 0x820820b3, 0x8208203b, + 0x211e823d, 0x3784faff, 0x3982f920, 0xf0fff322, 0xe9200182, 0xe2203b82, 0x4c2a3b88, 0x4500e500, 0x2f002e00, 0x7d821900, 0x33833b83, 0x2782ef20, + 0x2100df22, 0x11208b82, 0xff20a782, 0xf124d182, 0x0900e3ff, 0x0f235582, 0x82000800, 0x7dff2100, 0x01200482, 0x21061f47, 0x9759001b, 0x0c15472c, + 0x55820920, 0x12001122, 0x1a237d82, 0x47002100, 0x0e20050d, 0x0620fd82, 0x0d47bd85, 0xffd6280c, 0xffaaffd5, 0x82d7ffc7, 0xffe62301, 0x836effff, + 0xffe52205, 0x852582c8, 0x004a2e02, 0x002800e0, 0x001e001f, 0x00150016, 0x4601820b, 0x6a221df9, 0x9f4a3500, 0xe9ff2705, 0xd1ffeaff, 0x87820f00, + 0xe5821920, 0x0228e185, 0xf3ff4500, 0x1b022402, 0x40185182, 0xe62043d3, 0x0f224782, 0x5c821000, 0xf0ff0030, 0xe1fff1ff, 0xd3ffe2ff, 0xc5ffd4ff, + 0x0784c6ff, 0x5418e120, 0x1f221059, 0x01822d00, 0x3b003a28, 0x2c002c00, 0x451803ff, 0x1b261485, 0x23002200, 0x01821a00, 0x12001322, 0x1808d764, + 0x2c0b7d45, 0xffdeffdd, 0x00e6ffe5, 0x00240039, 0x22018233, 0x82440043, 0x82342005, 0x82232035, 0x84122031, 0xffee248f, 0x82dcffef, 0xffcc2401, + 0x82bdffcd, 0x82cd2001, 0xffdc2107, 0x09e15d18, 0x29821120, 0x63825b20, 0x26002524, 0x01823100, 0x07822620, 0x0d207383, 0x22085357, 0x82e6fff3, + 0xffda2401, 0x82cfffda, 0xffda2201, 0x220f84db, 0x83f2fff2, 0x0e00215f, 0x02280182, 0x03ff5f00, 0x1b022a02, 0x3b207982, 0x223d0d44, 0x49005f00, + 0x17200725, 0x26268982, 0x32003400, 0x01822700, 0x66181e20, 0xf22c0c1f, 0xe2ffe3ff, 0xd8ffd9ff, 0xccffceff, 0xda229182, 0x3742e8ff, 0x828c200e, + 0xd94618f7, 0x28e7830b, 0x0019001a, 0x00420022, 0x82018221, 0xdfff21bc, 0xbe240182, 0xe7ffdeff, 0x0320d182, 0x00241082, 0xf0005000, 0x280ac753, + 0x00130012, 0x00250024, 0x22018233, 0x82400040, 0x82332089, 0x0025210d, 0x2e821783, 0x82ecff21, 0x00d82601, 0x0016000c, 0x83058215, 0xff3e2211, + 0x0a4b4125, 0x4b412520, 0x820e2008, 0xff00221c, 0x22ad82cd, 0x829bff9a, 0x83cc2007, 0x4100200f, 0x4529053b, 0x0f0204ff, 0x2b001a02, 0x4e096000, + 0x18b30121, 0x2808995d, 0xffc1ffec, 0xfffdffff, 0x740382fe, 0x8b8305b7, 0xeb82d820, 0xe3ffe322, 0x24062d68, 0x00030000, 0x294d1802, 0x820d2008, + 0x001024d1, 0x82140011, 0x001926db, 0x001e001a, 0x26cd8235, 0x00180025, 0x520bff00, 0x08240acd, 0x12000900, 0x19242782, 0x20001900, 0x2b830182, + 0x11821120, 0xe4821783, 0xfff7ff23, 0x262d82f8, 0xffe6ffef, 0x82e0ffe7, 0x82e72001, 0x82042007, 0x00002418, 0x834602c2, 0xf4ff2307, 0x2183edff, + 0x77280021, 0xdb230c03, 0x83ffdaff, 0x82bf20a3, 0x11574c2f, 0x3582ef20, 0x4b18f420, 0x14200847, 0x29243982, 0x970096ff, 0x2620a782, 0x3020a582, + 0x2228c742, 0x42f3ffe5, 0x0d2c08c7, 0x81000100, 0x19020000, 0x2d001b02, 0x822fc542, 0x00172239, 0xff591845, 0x09af4a08, 0x0c000c24, 0x01821700, + 0x21002128, 0x2b002a00, 0x01822300, 0xf7841b20, 0xdfffe622, 0xd9280182, 0xfdfffeff, 0xe5ffe1ff, 0xe9260182, 0xedffe8ff, 0x9184eeff, 0x23840120, + 0xc4ffe222, 0x03840783, 0x3f001f22, 0x3a240182, 0x1e002700, 0x55830182, 0x16001622, 0x16255982, 0x0b000b00, 0x2e0083ff, 0xfff4fff4, 0x001d00e9, + 0x0014003b, 0x820a0009, 0x203884cf, 0x05bf56ff, 0x2205d753, 0x840d00eb, 0x840d2035, 0x827d205f, 0xff6a2123, 0x52052756, 0xc8205945, 0x0f229382, + 0x71840f00, 0xddffdd24, 0xa782bbff, 0xe4ffe72c, 0xe9ffeaff, 0xf1fff2ff, 0x474ff6ff, 0x83fe2008, 0x28dd8223, 0x003d001e, 0x0028002b, 0x82ed8229, + 0xd8ff2312, 0x0182d6ff, 0xceffd524, 0x0182d9ff, 0x3b82e520, 0xad5cf220, 0x82092006, 0x001222e9, 0x20618213, 0x242b821d, 0x00050013, 0x22f98204, + 0x82180020, 0x670e2001, 0x87420ae9, 0x82ee2005, 0xffe92671, 0xffd7ffe3, 0x200182d1, 0x265a82cb, 0x00360000, 0x822f0030, 0x8233206b, 0x00282803, + 0x00160020, 0x821e001f, 0x003a280b, 0x00240023, 0x8202000d, 0x00052251, 0x20598206, 0x22038205, 0x82070006, 0x82082001, 0x820a2075, 0x7827201b, + 0xf528084b, 0xebfff5ff, 0x38001c00, 0x08207382, 0x83064b47, 0xffec22d7, 0x266f82eb, 0xffdaffe3, 0x82e8ffe2, 0x09135a7d, 0x83fffc21, 0xfffe2400, + 0x82f8fffa, 0x2a2b8301, 0xfff2fff2, 0xffedffef, 0x82f0fff1, 0x74f4204d, 0x0d2008fd, 0x19206982, 0xc4203f82, 0x2b821782, 0x0b2cb584, 0x01000b00, + 0xfeff8000, 0xad02e501, 0x212da747, 0x4183e501, 0xffd8ff23, 0x22998288, 0x79ecffeb, 0xd95e0c71, 0x0000270e, 0xe5fff7ff, 0x2382fcff, 0xe2fff622, + 0x03863783, 0x7f820a20, 0x15001624, 0x01822400, 0x38003429, 0x1400feff, 0x85003b00, 0x00042400, 0x82090005, 0x00142801, 0x001d0013, 0x84b7005c, + 0x221f8716, 0x84770028, 0x2304860f, 0xb7fe92ff, 0xc926f382, 0xdfffd0ff, 0x8d82deff, 0xeb50ec20, 0x00012908, 0x02f2ff54, 0x000d0214, 0x2532f579, + 0x3d001e01, 0x01822800, 0x68841320, 0x40001622, 0xff26758c, 0xe2ff0000, 0x0582c2ff, 0x7950ff20, 0xf8ff2105, 0xef24e982, 0xe6fff0ff, 0xdd260182, + 0xe0ffc3ff, 0x3185e1ff, 0xffe9ff23, 0x210985bc, 0x01822e00, 0xdd825c20, 0x04000424, 0x1382f2ff, 0x12001124, 0xbd822400, 0x0b82da20, 0x22000022, + 0x2d261d82, 0x5d003200, 0x01826100, 0x13833f20, 0xffc4ff2b, 0xffa4ffa5, 0xffe3ffb0, 0x200182e8, 0x242b82ec, 0xfff6fff5, 0x281b82fc, 0x00230023, + 0x006c0045, 0x282784d9, 0xff0cffaf, 0xffcbff95, 0x440d84cb, 0x0120053f, 0x00244b82, 0x0e023602, 0x242aef66, 0x001e00f9, 0x0c756459, 0x18002526, + 0xc0ffe1ff, 0x22083164, 0x82f2fff1, 0x75f52001, 0xe32208d1, 0x0182e2ff, 0x2383ec20, 0x24213788, 0x83018300, 0x8200208a, 0x002d21a5, 0x4020d589, + 0xca229f84, 0x0182afff, 0xd6ffb224, 0x0182daff, 0x1d00e324, 0x01822600, 0x4e002a24, 0x01825100, 0x23843620, 0xd2ffde2e, 0xceffd3ff, 0x9fffa3ff, + 0x01009fff, 0x02211383, 0x20cb8268, 0x2f5b4549, 0x2f1b394c, 0x16008300, 0x06004200, 0x07000800, 0x10000900, 0x0b200184, 0x1e220f90, 0x1d823a00, + 0x0b000b22, 0x1722e182, 0x01821800, 0xf3821020, 0xc566c320, 0xfff12608, 0xfff1fff0, 0x06c566f5, 0xf2fff822, 0xf6240f84, 0xbcffdeff, 0x2406c75e, + 0xfff9fff3, 0x200182fa, 0x06af43fb, 0x22055553, 0x83f4ffef, 0x835b8e47, 0x000024ea, 0x82190013, 0x001c2967, 0x00350033, 0xff230036, 0x28054d56, + 0xffcdffe5, 0xffcbffca, 0x212484dd, 0x5b410023, 0xffe52211, 0x2a0182dd, 0xffb7ffd9, 0xffb5ffb4, 0x821100ce, 0x821620e1, 0x002e224b, 0x20018230, + 0x23378320, 0xd0ffe0ff, 0xd2240182, 0xeaffe7ff, 0xef240182, 0x23001b00, 0x27280182, 0x4c004900, 0x32004b00, 0x26147f41, 0x02000026, 0x660e0243, + 0x26204ce3, 0x4f247982, 0x0e000b00, 0x10240182, 0x1e001d00, 0x14200182, 0x242e0f90, 0xe5ff4700, 0xd8ffd7ff, 0xebffd9ff, 0x0182edff, 0x2f82f120, + 0xd9821120, 0x32055f49, 0xff180025, 0xffbbffde, 0xfff3fff6, 0xfff2fff4, 0x82e4ffe6, 0x41ee202f, 0x0f890679, 0x37902382, 0x4f84f220, 0x5982eb20, + 0xf7835f82, 0x09500382, 0x00142205, 0x22018226, 0x821a0027, 0xffee2651, 0xffecffee, 0x200182da, 0x055f53d9, 0x0021002f, 0x00320033, 0x001a0031, + 0x00170018, 0x228b8212, 0x82150016, 0x002d220b, 0x2001822e, 0x2045821f, 0x228b8200, 0x82effff0, 0xffde2239, 0x220182dd, 0x820c00e9, 0x82102025, + 0x0022222b, 0x20018223, 0x22238417, 0x82eafff0, 0xffe82801, 0xffd2ffd4, 0x82e1ffd1, 0xffe9222d, 0x24c182e8, 0xffceffcf, 0x292182cd, 0xff460001, + 0x02190202, 0x4b73000f, 0x7700215a, 0x28067948, 0x00580001, 0x001900b0, 0x23018224, 0x000e001a, 0x44068549, 0x00210a53, 0x055b44ff, 0xb3820786, + 0xe782f520, 0x0100e922, 0x8405a143, 0xffef2a29, 0xffe7ffcc, 0xffe0ffb5, 0x22db82eb, 0x18f5fff4, 0x83072d41, 0x0000271d, 0xe4ffeeff, 0xef4ee3ff, + 0x854d8705, 0x32002119, 0x54280182, 0x7e003f00, 0xfdff0100, 0xef240182, 0xf2fff7ff, 0xea240182, 0xe8ffefff, 0xe62c0182, 0xd3ffd0ff, 0x51ffd4ff, + 0xedffecff, 0x6f680382, 0x00002205, 0x22018216, 0x82150028, 0x001922b9, 0x2489821c, 0x003d0001, 0x24478240, 0x002a0059, 0x20018228, 0x20cf8225, + 0x20078229, 0x0861492b, 0xcaffcc2a, 0xc8ffcbff, 0x67ffb4ff, 0x06837b86, 0x06000722, 0x0e22f582, 0x01821e00, 0x33002228, 0x27006600, 0x18837600, + 0xf582ff20, 0xe420cb82, 0xe024b982, 0xbfffc5ff, 0xc9260182, 0xceffb9ff, 0x1d83ceff, 0xff000027, 0xffd7ffe2, 0x22d582d8, 0x82f6fff1, 0x09bf49b3, + 0x3b831e82, 0x65269382, 0x08020000, 0xcb670f02, 0x00652224, 0x06f77a69, 0x0fffb022, 0x1b20d782, 0x1f24d582, 0x3b003900, 0x27200182, 0x00245282, + 0xcffe9bff, 0x00250783, 0xffe8004d, 0x249582eb, 0xffe1ffe5, 0x229982c7, 0x84d9ffc4, 0x21048317, 0x63590012, 0x00182a05, 0x00200021, 0x00430024, + 0x24018246, 0x001a002e, 0x22438434, 0x84cdffef, 0xffe73007, 0xffe0ffdf, 0xffbcffdc, 0xffbaffbb, 0x82e5ffd2, 0x00012815, 0x0297ff5c, 0x18260303, + 0x215d114b, 0x81840302, 0xe5fff726, 0xeaffddff, 0xf5220182, 0x7018f5ff, 0x1a82082d, 0x82faff21, 0x82f4200d, 0xffee2213, 0x229782ee, 0x8212001b, + 0x000b2701, 0x0005000c, 0x00870006, 0x0d820520, 0x0b000b24, 0x01821600, 0x0c002324, 0x53841800, 0xe7fff826, 0xd7ffc1ff, 0xeb200182, 0x210bb55a, + 0xf9500000, 0xfff32206, 0x220182e8, 0x41ecffdd, 0x0f260631, 0x23002c00, 0x3d821700, 0x0d000e24, 0x5f8a0700, 0x15205b83, 0x292c5b82, 0x3d002a00, + 0x97ff0b00, 0x3e001500, 0x03826383, 0x04000422, 0x0a382b82, 0x14001300, 0x27002100, 0x25004e00, 0x1b001a00, 0x10001100, 0x0e000f00, 0x51424582, + 0x82112005, 0x821b2011, 0x84252019, 0x84222023, 0x820a202f, 0x82032039, 0x8246823f, 0x00152202, 0x8205823f, 0x06116002, 0xdbffef26, 0xccffdaff, + 0xb4220382, 0xcb82deff, 0xf2ffe822, 0x230b1b41, 0xbeffeaff, 0x23412c82, 0x82f22009, 0xffe722cd, 0x202f82dd, 0x06d34eb5, 0x8379ef20, 0x0101280a, + 0x01b5ff06, 0x1809035c, 0x230c7b6b, 0x00160006, 0x26059147, 0x00bfffeb, 0x82b5ff00, 0x0000244e, 0x837f02d5, 0x2bff2107, 0x012a0582, 0x97ff6600, + 0x26031002, 0x77476900, 0x1b93474b, 0x00291b83, 0x00080066, 0x003e0017, 0x2601822a, 0x00150015, 0x820b000a, 0x2302858d, 0x00030002, 0x2209eb63, + 0x821c0013, 0x82252001, 0x8415201f, 0xfff822b5, 0x22f782e8, 0x82f1fff0, 0xfff23301, 0xfff4fff3, 0xfff5fff6, 0xfff9fff8, 0xfffbfffa, 0x234cfffd, + 0x822a8205, 0xfff62215, 0x240182eb, 0xffd6ffd7, 0x202582c1, 0x261482eb, 0x00090000, 0x82240019, 0x8417207b, 0x0b674273, 0x83000121, 0x82032079, + 0x8204207b, 0x000c2803, 0x00100011, 0x82e4ff1c, 0x4bef206d, 0xfb200603, 0x93414184, 0x82f52007, 0xffe92453, 0x82dcffe9, 0x00e92469, 0x8297ff00, + 0x20028318, 0x06db5208, 0x2500262a, 0x26003400, 0x12004a00, 0x0f204982, 0x0c20c182, 0x09237382, 0x42000700, 0x16230bdf, 0x85004200, 0x82012000, + 0x00032106, 0x2009f760, 0x22a18409, 0x820f000c, 0x82122001, 0x844b2047, 0x5d25204d, 0x2e82086d, 0xeb227582, 0x0884c1ff, 0xfdff0026, 0xf9fffcff, + 0xec289382, 0xdfffecff, 0xb2ffd9ff, 0xf0200782, 0x0ab96718, 0x0b82f820, 0xf1fff224, 0x0182faff, 0xf0200783, 0xe524d982, 0xdbffe5ff, 0xb3202b82, + 0xed203182, 0xf6202f82, 0x2b0b7d59, 0x0100ebff, 0xf1002800, 0xd7013d02, 0x21532764, 0xb382f001, 0xb582fb20, 0x7582f720, 0xf2fff222, 0xf4227f82, + 0xc182f5ff, 0xf3fff522, 0xf8220186, 0x0182f7ff, 0xf9200583, 0xf8202382, 0x084b7218, 0xe3ffdb24, 0x2f82e2ff, 0x1582f520, 0xfafff726, 0x0a002700, + 0x13240182, 0x06000200, 0x07270182, 0x0e000800, 0x4e000d00, 0x092005e7, 0x0e221b84, 0x0f820e00, 0x24058941, 0x000f000d, 0x24018211, 0x00290014, + 0x2201821e, 0x84090012, 0x00042237, 0x24418204, 0xff000002, 0x267582d9, 0xffb401f6, 0x82eaffe5, 0xffef2201, 0x206783ef, 0x22008300, 0x82050006, + 0x820b204f, 0x20438341, 0x2039820b, 0x206d8209, 0x203f8408, 0x83098205, 0x054b5543, 0xdeffef24, 0x4182edff, 0xddffe422, 0xfe244d82, 0xfbfffeff, + 0x16267382, 0x1b001600, 0x37821000, 0x82000821, 0xfdff2100, 0xf9240182, 0xf0fffaff, 0xe5220182, 0x0582e9ff, 0xe984f120, 0xfcfffc22, 0x00201e82, + 0x11223182, 0x2f822200, 0x71820e20, 0x0d24d383, 0x0c000d00, 0x03206782, 0x0020a982, 0xe8280382, 0x8a01e3ff, 0x1f00c102, 0x223cb77c, 0x18f4ffff, + 0x210c5d67, 0xe187000c, 0x77841120, 0x67180f83, 0xf4220d9d, 0x0182f2ff, 0xefffee28, 0xf1fff1ff, 0x1b4b1200, 0x82f92006, 0x43fc20cd, 0x21220885, + 0xe3846300, 0xe584fe20, 0xe582fd20, 0xfc26e983, 0xaa02ecff, 0x3783f5ff, 0xffeeff23, 0x204582ed, 0x460d82f1, 0x05200917, 0x2406ef45, 0x000e000f, + 0x79581813, 0x82fa2012, 0xff09246b, 0x82cfffe0, 0xffd12401, 0x82e9ffe7, 0xffee2401, 0x8374ffba, 0x3500236b, 0x33829d00, 0x17001728, 0x2f001900, + 0x01823100, 0x17822020, 0x6900022b, 0x12026dff, 0x6100a102, 0xb1671800, 0x5d012276, 0x079b5900, 0x10000e29, 0x11000f00, 0x75000800, 0x0724059f, + 0x09000a00, 0x25050145, 0xf7fff9ff, 0x0182f8ff, 0xf8200585, 0x11830d86, 0xcb820384, 0x37820020, 0x09203987, 0x09200b82, 0x10204982, 0x10205182, + 0xff231b83, 0x82efffed, 0xfff12101, 0x20052145, 0x201384f0, 0x050347f4, 0xffe3ff23, 0x220182e6, 0x82eaffeb, 0x18ed2025, 0x2214f177, 0x82040005, + 0x00092289, 0x0a01590c, 0x16001628, 0x1a001900, 0x4b841b00, 0xe5ffdf22, 0xec264382, 0xf6ffecff, 0x1183f6ff, 0x820a0021, 0x00142201, 0x24218414, + 0xff000021, 0x2215846d, 0x82660021, 0x05895907, 0x83000121, 0x00022207, 0x205d8202, 0x26038204, 0xff36001b, 0x82fbfffc, 0x82fc2003, 0x05cf5703, + 0xfefffd22, 0xf5500184, 0x00ff2405, 0x83110189, 0x2003840a, 0x210582fe, 0x3f42fffe, 0xfff82205, 0x208982f7, 0x22f78236, 0x82060006, 0x86032057, + 0x002c225b, 0x246f825a, 0xffdeff00, 0x2429829c, 0xfff9fff9, 0x06c34ef5, 0xeeffef23, 0x22f383ff, 0x82e7ffe8, 0xffe524bb, 0x84e4ffe3, 0x200f83c3, + 0x201982eb, 0x22cb82ee, 0x83f1fff2, 0xfaff21cf, 0xfe243782, 0x7400d3ff, 0x10245582, 0x1c000f00, 0x24246b82, 0x2b002400, 0x24220182, 0x0d822300, + 0x15821c20, 0x0300102c, 0x010078ff, 0x00004600, 0x4b182c02, 0x53824def, 0x6d017922, 0xbd20c984, 0x2206e759, 0x848b002e, 0xffd2220f, 0x82078375, + 0x00082c03, 0x00100007, 0x00180011, 0x41220019, 0x0f2206fd, 0x7d180600, 0x28820e05, 0xf720d384, 0xf8220584, 0xdd82f8ff, 0x83ffef21, 0xffee2401, + 0x82d7ffca, 0x05295301, 0x2205a957, 0x48e8ff00, 0x1922061f, 0x6f844a00, 0xa8ffe322, 0x03840783, 0x3c001422, 0x36220784, 0x0784a400, 0x33001122, + 0x19260784, 0x2d004d00, 0x01822100, 0x250ac547, 0xfdfffeff, 0x0582fbff, 0x0782fc20, 0xfcfffd22, 0xfb280b82, 0x1d00fbff, 0x04003900, 0x2406b141, + 0x00020003, 0x42038201, 0x0f660517, 0xfff12e05, 0xffe3ffe2, 0xffd3ffd4, 0xffdbffc4, 0x0cc34ab6, 0xc75fc920, 0xecff2105, 0x022a1582, 0x5c006600, + 0x00022602, 0x057d6700, 0x9400258b, 0x17001000, 0x14220182, 0x01861800, 0x79180c20, 0x0b280829, 0x0c000b00, 0x1a000f00, 0x10220182, 0x09820800, + 0x09000f2a, 0xe8fff0ff, 0xebffe9ff, 0x2008cb42, 0x057d4604, 0xff000023, 0x063d41fe, 0xfafffb24, 0x3784f8ff, 0x0f001b26, 0xf2fff7ff, 0xf8200182, + 0xe9203782, 0xff213783, 0x833f82e7, 0xfff32441, 0x84f4fff5, 0x22058503, 0x82e6fff1, 0x82f12001, 0xfff1212f, 0x00210582, 0x26958211, 0xff140018, + 0x82fbfff9, 0x18fc204f, 0x410abd49, 0x03220583, 0x01820600, 0x2b820820, 0xf0243783, 0x0e000900, 0x6e207382, 0xf9206782, 0x0c3d6018, 0x13000f22, + 0xe3830182, 0x0f200783, 0x0720ef82, 0x7e18bb82, 0xf1220993, 0x0182edff, 0x07829b83, 0x825c0021, 0x00152643, 0xff130015, 0x207982f3, 0x222682f9, + 0x82020000, 0x00032201, 0x226d8204, 0x82070005, 0x82e8206f, 0x82f120c1, 0x820d206f, 0x82082071, 0x0016222f, 0x22618216, 0x8c0b000a, 0x860c2001, + 0x8409200d, 0x820d2007, 0x00192227, 0x21058218, 0x37840008, 0xea244782, 0xedffeaff, 0x240a395d, 0xfffefffe, 0x20e782fd, 0x20f182fa, 0x212f87f9, + 0x3f41f8ff, 0x82f12006, 0x82e9202d, 0xfff621a9, 0xf4220183, 0x0184f5ff, 0x20053b41, 0x221384f5, 0x82f4fff5, 0x82f120b5, 0x82e8209d, 0x82f8205d, + 0x00f3220b, 0x26ef8281, 0x00120012, 0x82160015, 0x6c122005, 0xf9200c09, 0xf220e182, 0xee222982, 0x5b82efff, 0xeeffeb22, 0xf0200182, 0xdb6f6d82, + 0x00072209, 0x08cf7601, 0x6b4b4d20, 0x09f37650, 0x96003323, 0x23008200, 0x69ffceff, 0x00220682, 0xa7860800, 0x84003521, 0xe1ff230f, 0x8151a1ff, + 0x001f240a, 0x7714001e, 0x0b202817, 0x0d244b82, 0x1c001000, 0x1e263582, 0xd8ff1300, 0x6384aeff, 0x74002722, 0x0f206784, 0x7b850582, 0x06826a20, + 0x32000022, 0x0b848b85, 0xb9003e22, 0x03470784, 0x00042207, 0x2201820d, 0x82160017, 0x22188305, 0x8327000d, 0x11002206, 0x07bb4700, 0xcf523020, + 0x235f7708, 0xeaffef24, 0x7178e9ff, 0xffcf2206, 0x214b83e0, 0xf746f3ff, 0x84f32006, 0xfff3221b, 0x05ef6bfb, 0xda201782, 0xc22b1f84, 0x0a010200, + 0x6001bcff, 0x18000203, 0x21140b5b, 0x414d0a01, 0x4d35820d, 0x01210c51, 0x2411829e, 0x01590000, 0x224f840b, 0x8313fda7, 0x5a002107, 0x002d0f87, + 0xff630002, 0x020602a4, 0x00a500cb, 0x50f541d1, 0x674d0020, 0x241fe21f, 0x001a00b2, 0x05c3410c, 0x2808ab47, 0xfffefffd, 0xfff8fffc, 0x260182f5, + 0x001700f1, 0x82110012, 0x000b2523, 0x00050006, 0x26052d44, 0xffeffff8, 0x82f4fff9, 0xfff02401, 0x82e9fff1, 0xffe22201, 0x283582f6, 0xfffbfffd, + 0xffecffe5, 0x583982eb, 0x354409e1, 0x84032005, 0x8207203f, 0x7c072005, 0x0b20083b, 0x1e227982, 0x01822300, 0x59842a20, 0xedffea22, 0xee200182, + 0xf5467b82, 0x82f62005, 0x21098355, 0x0183ffee, 0x22071949, 0x67e7fff3, 0x042208f1, 0x4d820400, 0x0b000722, 0x0f220182, 0x9782eaff, 0x7b8cee20, + 0x08000824, 0x1b821000, 0x69820e20, 0xc7821120, 0x15001524, 0x83821900, 0x1c209385, 0x16200d82, 0x0d201982, 0x82829584, 0xf824d582, 0xf2fff3ff, + 0xed20c382, 0xe2226582, 0x0182dbff, 0x1882d420, 0x43820020, 0x03822020, 0x0a000a24, 0x53820900, 0x40180920, 0x2b260c39, 0x22002200, 0x7d8277ff, + 0x3b82f220, 0xad82f620, 0xf7fff722, 0x01203584, 0x20082747, 0x22a98403, 0x820c000b, 0x003c288f, 0x00270028, 0x82080012, 0x690620bb, 0x308208d5, + 0x4767ff20, 0x82f92005, 0xfff524df, 0x82defff0, 0xffe62683, 0x001400cc, 0x2001821a, 0x83798420, 0x82072033, 0x820620af, 0x820d203b, 0x820c204d, + 0x7f0c20bf, 0xe14408e3, 0x82182005, 0x001522d7, 0x205f8213, 0x20af820a, 0x2203820b, 0x820e000e, 0x82052023, 0x0001228d, 0x20098203, 0x830f820d, + 0x000c218b, 0x754d0583, 0x88072005, 0x8204208d, 0x730420ab, 0xcf820c85, 0x82edff21, 0x82332083, 0x82052023, 0x8403207d, 0x820120d7, 0x05164305, + 0x20050b4d, 0x2abf82fe, 0xfff9fffb, 0xfff6fffa, 0x82e8ffed, 0xffe128bd, 0xfff2ffef, 0x82f3fff1, 0x82f42001, 0x49f620d5, 0xed200ad5, 0xeb202382, + 0xec242382, 0xeeffebff, 0xf5201b86, 0xf4201f82, 0xfd232384, 0x83fffeff, 0x82f02000, 0x203d853f, 0x220982f3, 0x84f0fff2, 0x18f6204b, 0x240a7961, + 0x00090009, 0x24478212, 0xfffdffcc, 0x830382f7, 0x18fe2037, 0x2412f76b, 0x010a000a, 0x22ef8240, 0x820a0009, 0x00102231, 0x20018411, 0xb77e1807, + 0x00052208, 0x28f78205, 0x000b000a, 0xff0a000c, 0x20bf82e2, 0x206d82e8, 0x4bcf82f9, 0xf72005c7, 0xbf835d82, 0x2005ad47, 0x26a582f7, 0x00f6fff5, + 0x820e0010, 0x00002c01, 0x02a00002, 0x02c9017b, 0x5a1700d9, 0x002133d1, 0x15eb67ae, 0x00300023, 0x21958207, 0x00860004, 0x82fcff21, 0xfff92401, + 0x699500e8, 0x7b831469, 0x2f900820, 0xe9fff822, 0x00219782, 0x05ad4eff, 0xd3ffe922, 0x0c7d4118, 0x03000022, 0x07200182, 0x2d20b782, 0x0b836b82, + 0x2fab6b87, 0x34820320, 0x68023a2a, 0x4b007e02, 0xd7009300, 0x21d42d45, 0x01830100, 0x0f00aa26, 0x0d000c00, 0x08498318, 0x0d820a20, 0x0a000928, + 0x09000800, 0x05820700, 0x63180520, 0xfb22109b, 0x194ef9ff, 0xfff62406, 0x82f3fff6, 0xfff42203, 0x200782f5, 0x260382f4, 0xfff1fff3, 0x82e3ffe4, + 0xffe02401, 0x82e2ffe1, 0x82e52001, 0xffe7220f, 0x08bb50e8, 0xdd4ff420, 0x000c2110, 0x2205cb44, 0x8237002d, 0x003f2c01, 0x001e0020, 0xff44ff1d, + 0x82ebffe9, 0x84ee2035, 0xfff8226d, 0x220784f8, 0x18fafffa, 0x200ea564, 0x28a7820a, 0x000e000e, 0x00120013, 0x20018215, 0x24038217, 0x00190019, + 0x2601821b, 0x00180019, 0x84160017, 0x82122017, 0x000e2221, 0x222d820f, 0x82050009, 0x00002801, 0xfffcff00, 0x82f7fffb, 0x83558303, 0x82f7205f, + 0xfff72265, 0x207782ee, 0x207d82eb, 0x22b582e8, 0x82e6ffe8, 0x21098201, 0x3082c600, 0x11820020, 0x0f82e720, 0xdfffe422, 0xe7200582, 0x0cb97218, + 0x08000822, 0x0921c782, 0x05714300, 0x0c000d24, 0x6d820d00, 0x20098b44, 0x201f8207, 0x83a78207, 0x840e20ab, 0x44f2204b, 0xf020060b, 0xf1200782, + 0xd4220382, 0x0182dcff, 0xf3206f83, 0x83063160, 0x001a2443, 0x8224001a, 0x002d2801, 0x001d001e, 0x8250001c, 0x000824bb, 0x82090007, 0x4a03834f, + 0x3945079f, 0x20058305, 0x49258218, 0x1b220515, 0x3d821b00, 0x20051945, 0x8591820c, 0x880a2003, 0x8207203b, 0x18052047, 0x280a6f77, 0xfffbfffb, + 0xfff6fff5, 0x220182f0, 0x88ebffeb, 0xffe522ff, 0x06cb41e4, 0xe7ffe524, 0x294ce5ff, 0xd5ff2105, 0xea202182, 0x0021c983, 0x20938206, 0x20558238, + 0x20df820d, 0x20538211, 0x200b8208, 0x83038209, 0x05c3616f, 0x18001726, 0x17001900, 0x15240182, 0x14001600, 0x11240182, 0x0d001200, 0x27839382, + 0x0b5d8e18, 0xf8fff723, 0x23ff82ff, 0xefffeeff, 0x085d5a18, 0xe9ffe822, 0xe7207782, 0xea200582, 0xf5207382, 0x8205ab44, 0xfff621a7, 0xef222d83, + 0x3182f4ff, 0x55780b83, 0x824f200b, 0x8225205b, 0xfffa2217, 0x24a384fa, 0x00080009, 0x20018211, 0x22838218, 0x841f001e, 0x0011228f, 0x0d6b530a, + 0x00202984, 0x260aeb4f, 0xfffbfffd, 0x82f9fffc, 0x82222037, 0x000421e3, 0x200d4746, 0x247982f5, 0xffe8ffe8, 0x240182e0, 0xffd7ffd7, 0x830782e1, + 0x8417820f, 0x82052049, 0x0000305d, 0x00870003, 0x02e001dc, 0x004d00cb, 0x4475006d, 0x5c28784b, 0x0f001000, 0x0d000e00, 0x2208d576, 0x842b0015, + 0xff0022a7, 0x180182f5, 0x21095173, 0xe954fff7, 0xfff92205, 0x260182f8, 0xfff0fff7, 0x5befffee, 0x43820545, 0x03821120, 0x4b861020, 0x1b4d1020, + 0x000a240a, 0x8209000a, 0x00072361, 0x00840008, 0xffe9ff27, 0xffd5ffbb, 0x200182df, 0x410b82e8, 0x09200715, 0x12302782, 0x1a001300, 0x1f001900, + 0x12001600, 0x9aff1300, 0x0ad77518, 0xfffffe22, 0x08223e84, 0x65840700, 0x89050143, 0x82f720ab, 0x82f02093, 0xffea2493, 0x82e6ffeb, 0xfff22899, + 0x00a1fff1, 0x83fa0054, 0xadff2735, 0x000005ff, 0x83825801, 0x9b820b20, 0x8f180f20, 0x1c8308b3, 0x9e003524, 0x73822c00, 0x14001f22, 0x0a200182, + 0x15821f82, 0x0082ff20, 0xf3410020, 0x21798205, 0x8982fdff, 0xf9fffb26, 0xd9ffecff, 0x06227f82, 0x3d480600, 0x822b8608, 0xfffe2221, 0x220182fc, + 0x82f5fffa, 0xfff02285, 0x823d83ea, 0x054d4a1c, 0x1382f720, 0xed82ef20, 0xe2ffe822, 0xea209d82, 0xef20a382, 0x200a0b63, 0x204d8204, 0x0aa56342, + 0x0920e383, 0x22080943, 0x82050007, 0x8247821b, 0x82fd2051, 0xffe5215d, 0xef203f85, 0x82089179, 0x53ff211f, 0x0f202084, 0x0882c982, 0x00f1ff2e, + 0x00280002, 0x01f50143, 0x001d00f2, 0x213ed368, 0x52821201, 0xe4ff0024, 0x0182d1ff, 0x1c00e424, 0x01822f00, 0x13841c20, 0xecfff122, 0xe9280182, + 0xd5ffd7ff, 0xe4ffd4ff, 0x1f821383, 0x2b002c28, 0x17002900, 0x01821400, 0x2784f220, 0x3982e320, 0xe3ffd222, 0x2e208b82, 0x1d203b82, 0xf0201384, + 0xea223b84, 0x3b82d6ff, 0x1b82d520, 0x10201483, 0x16223384, 0x41822a00, 0x43002b24, 0x03821600, 0xc9821720, 0x18002722, 0x28214f82, 0x26078300, + 0xff3c001e, 0x82effff3, 0xffed2401, 0x82dcffdd, 0x82e82001, 0xffe7220f, 0x220b84e8, 0x84edffdd, 0xacf4201b, 0x204f833b, 0x843982f0, 0x01002b4f, + 0xae002c00, 0x96013c02, 0x97430b00, 0x00e8220e, 0x05255b15, 0xfe7cff23, 0x23b08374, 0x4d016f00, 0x654e0782, 0x003a2105, 0xff230784, 0x84c4ffeb, + 0x82da20e1, 0x00012805, 0x01e100b2, 0x5a2e01b6, 0x13820bf7, 0x86184120, 0xff21075f, 0x2025823d, 0x240382e1, 0x00130000, 0x6b42183a, 0x48042008, + 0xc9220c6b, 0x898ee300, 0xd383594d, 0x79081083, 0xff262601, 0x001000cb, 0x00830031, 0x1400072a, 0x0a000c00, 0x07000900, 0x0b200182, 0x0c240982, + 0x23001200, 0x36200382, 0x21068b44, 0x4f18fff2, 0xcf560995, 0xfff82605, 0xfffafffb, 0x203982fb, 0x20478210, 0x0aed470b, 0xf7fff728, 0xeeffefff, + 0x0182e5ff, 0xd8ffda24, 0x6282b1ff, 0x17514120, 0x05c96f08, 0xd7560920, 0x051f4d0a, 0x4f820020, 0xf6fffc22, 0x83453b82, 0x10ef2005, 0x28019108, + 0x83004a21, 0x52232000, 0x002105fb, 0x06474600, 0xf4fffb22, 0xec240182, 0xc9ffe5ff, 0x00231e83, 0x82190011, 0x00162201, 0x21018205, 0x01830006, + 0x05820520, 0x07000422, 0x01221184, 0x09820300, 0x4f000821, 0x11200705, 0x200cd150, 0x28418406, 0xffaeff00, 0x001b00be, 0x200d8651, 0x206982fd, + 0x260382fa, 0xfffcfffb, 0x82fbfffa, 0xfffa2803, 0xfff1fff9, 0x84f5fff6, 0x841f820b, 0x00012829, 0x0187029f, 0x44cd02ca, 0x01250bbf, 0xffb5ffca, + 0x261f8420, 0x00e1004a, 0x83cd0200, 0xeeff230b, 0x0783ccff, 0x82120021, 0x00022c05, 0x01a00196, 0x00cb02d3, 0x446b003f, 0x72216ebb, 0x05875c00, + 0x17000b22, 0x08875518, 0xe582cf82, 0xbd490583, 0x18fb2005, 0x200aed60, 0x85f982f9, 0x82f82003, 0x05dd4809, 0x2205e548, 0x82e4ffde, 0xffea2201, + 0x08757ce9, 0x03000324, 0x87180600, 0x0b22088f, 0x01820d00, 0x6f820f20, 0x0f000f26, 0x11001000, 0x10220382, 0x57558eff, 0x0799510e, 0x994f1420, + 0x00082106, 0x2005454d, 0x61378206, 0xff2406e7, 0xfffeffff, 0x50059341, 0x8585055d, 0x20058f4f, 0x05d346f6, 0x00ab0123, 0x26398205, 0x000a0008, + 0x821b0014, 0x82202001, 0x820e2073, 0x820d2003, 0x82062017, 0x00072103, 0x9d834d83, 0x0d820420, 0x18000521, 0x20097753, 0x06dd4904, 0x07820120, + 0x82000121, 0xf4ff2100, 0xeb24d182, 0xe5ffeaff, 0xe0220182, 0x9a18f0ff, 0x17830837, 0x1b82f720, 0xfb207f83, 0x82053141, 0x8200202e, 0x000322f5, + 0x24eb844f, 0x00120010, 0x20e98213, 0x20fb8411, 0x49698206, 0xfe200503, 0x83066544, 0x82f32035, 0x82f02051, 0x224583b5, 0x4df7fff8, 0xf92206a7, + 0x5182faff, 0x2784fb20, 0x3682ef82, 0xb1840020, 0x2c00022a, 0x3c020000, 0x17002602, 0x21239d64, 0x85470a01, 0x38002307, 0xcd84a600, 0x59ffc922, + 0xeb200784, 0x20056b60, 0x850f86ff, 0x22ff211f, 0x0e2f7018, 0x2b83a020, 0x00270022, 0x2005c147, 0x06395a14, 0xff230f86, 0x848cffd9, 0x47ec204b, + 0xd92006c5, 0x083f7018, 0x17853c20, 0x0001002a, 0x010e02a1, 0x009f03be, 0x25502757, 0x4700a100, 0x6784d600, 0x67ffcd2e, 0x1d001400, 0x1a001e00, + 0x13001c00, 0x0c240182, 0x03000500, 0x02200182, 0x77450382, 0xfffe3007, 0xfffafffe, 0xfff7fffb, 0xfff5fff8, 0x82e4ffeb, 0xffdd2601, 0xfff2fff0, + 0x200584f1, 0x635618f0, 0x00102208, 0x2001820f, 0x061b430e, 0x4f820e20, 0x10001124, 0x01820c00, 0x91750720, 0xfffb2608, 0xfffcfff6, 0x205182f9, + 0x204f82f9, 0x205182f4, 0x285382f0, 0xffdbffdc, 0x020000eb, 0x2397830e, 0x28000e00, 0x12220784, 0x01821b00, 0x19001826, 0x16001500, 0x06204982, + 0xd94e4582, 0x00082207, 0x24578208, 0x000b000b, 0x2001840a, 0x200f8209, 0x2003820f, 0x4bd98408, 0xfd200551, 0xfb206582, 0xed226b82, 0x1982d9ff, + 0x0f8f8318, 0x8518fb20, 0xf52008e5, 0xf421cb82, 0x051953ff, 0x20059543, 0x20eb84f8, 0x341782f5, 0xffdfffec, 0xffecffe0, 0x000100ee, 0x010902a3, + 0x00a103ce, 0x6e6d4481, 0x22150549, 0x4418009f, 0xfa20087b, 0xf324e982, 0xeefff4ff, 0xe9200182, 0x230a7347, 0x00060006, 0xff210082, 0x280182f5, + 0xffeaffec, 0xffe3ffe4, 0x21e986dd, 0xeb83fff2, 0xf720ef85, 0x2208db61, 0x88070008, 0x82082001, 0x000e213d, 0x22055350, 0x82110015, 0x820b2001, + 0x139e180d, 0x82fa2009, 0x22738349, 0x82e9ffef, 0x82e82009, 0x00002268, 0x20958208, 0x086f7a1b, 0x2107f741, 0xbb43fffe, 0xfffb2205, 0x4b7582fb, + 0xe82005d3, 0x20067541, 0x458784f3, 0xf8200917, 0x07204784, 0x07204982, 0x07837f82, 0x99899385, 0x09000832, 0x21002b00, 0x29022200, 0x16001000, + 0x1c001700, 0x0f20f384, 0x0d209d82, 0x09243782, 0x05000400, 0x08220782, 0xb5560b00, 0x00172308, 0xaf5a0013, 0x05655f0d, 0x754ffe20, 0x83a18306, + 0xffed2403, 0x430200da, 0x01200c03, 0x02200d82, 0x96821382, 0x82fcff21, 0x82f92001, 0xfff522af, 0x22f182f5, 0x82f6fff2, 0x3d471807, 0x8200200b, + 0x82da2015, 0x222b8728, 0x82f7fff6, 0xfff32211, 0x410782f0, 0xf920056d, 0x18069f44, 0x2209f376, 0x82010002, 0x000121af, 0x03206383, 0x03250586, + 0xdbffedff, 0x090f60ff, 0xa987a583, 0x5e82b082, 0x08200285, 0x0126e582, 0x5102ee00, 0x4e18dd01, 0xdd241a33, 0xb6ffe7ff, 0xf4248182, 0xf2fff4ff, + 0xe6200b82, 0xef280382, 0x33001900, 0x1e001400, 0x1d200182, 0x8205b543, 0x05b74541, 0xf1fff128, 0xe1ffefff, 0x0182dfff, 0x1282eb20, 0x15000024, + 0x01822100, 0x11001f22, 0x0f202982, 0x012a1182, 0x37ff5300, 0x0e024102, 0x0b435100, 0x53002153, 0x85087f68, 0x182c2079, 0x2a0cc35f, 0x000b000e, + 0x00070003, 0x510a0006, 0x102206ed, 0x8e180800, 0x09220abf, 0xa3820a00, 0x46ff0021, 0xfc20050d, 0x25056346, 0xf8fffeff, 0xfb5dfaff, 0x071b4606, + 0xe9ff0024, 0x6c18baff, 0xe8220edb, 0xfb82e8ff, 0xebffe322, 0xf1200182, 0xfa214384, 0x0b2f5eff, 0xbc223383, 0x99600000, 0x00412206, 0xed4418c3, + 0x0004220a, 0x28918205, 0x000e0009, 0xff13000d, 0x062342ee, 0x8f18f720, 0x012008a3, 0x2007df41, 0x24298300, 0xff2f0017, 0x209782fd, 0x674d82fd, + 0xd98208b3, 0xdb820320, 0x47820720, 0x47820a20, 0x0f018722, 0xff2a9f83, 0xff19ffb4, 0xffe3ffd9, 0x7762ffe2, 0x5309200d, 0x0a2206fd, 0x73820c00, + 0x0f000f26, 0x6d001300, 0x2c063171, 0x0001004b, 0x02a4ff35, 0x00bd0203, 0x26a74123, 0x4f821720, 0x2007536b, 0x22798347, 0x84001200, 0xc8ff2b0f, + 0xcaff58ff, 0xd6ffd5ff, 0x0182dfff, 0x9751f020, 0x82042006, 0x820820c9, 0x000b22af, 0x227b820a, 0x822a001d, 0x00362401, 0x84a4ff00, 0x02b8223b, + 0x23078328, 0xd8fd48ff, 0x00220783, 0x455002c6, 0xff002605, 0xfff2fff3, 0x260182e5, 0xffdbffdc, 0x84eaffd4, 0xffef22d5, 0x201582ef, 0x221b82f2, + 0x82f1ffe5, 0xfffc2201, 0x2835827c, 0x01e30001, 0x0185010e, 0x24b947ae, 0x8d186e20, 0x9a181043, 0xf2200937, 0xf5205382, 0x0a336918, 0x06000624, + 0x2f820c00, 0x0e000f22, 0x1120f582, 0x0e22bf82, 0x0f822501, 0x09820e20, 0xf7821120, 0xd7830783, 0x220bf565, 0x82f5fff6, 0xfff22245, 0x20ab82ee, + 0x20ad82f1, 0x200f82f5, 0x06eb53fa, 0x01262785, 0x47ffc600, 0xb9829401, 0x363b4318, 0x82230121, 0x00082283, 0x479d8208, 0x4a82058d, 0x82f0ff21, + 0xffe12475, 0x82edffec, 0x82ef2001, 0x00002210, 0x2025820a, 0x85bf820b, 0x820b2007, 0x000e22b3, 0x2013840d, 0x201b8209, 0x450f8207, 0xe944077d, + 0x07ff4905, 0xf6fff922, 0xf2280182, 0x0000ecff, 0xf4fff1ff, 0x0f830182, 0xf7fff724, 0x456cf8ff, 0x0004240a, 0x82070004, 0x42d7206f, 0x4e1805a1, + 0x7a830889, 0x01000124, 0x01840300, 0x05000422, 0x0f247182, 0x14001000, 0x1d4aad82, 0x82052009, 0x820d200d, 0x000e228d, 0x8230830e, 0x02ac282f, + 0x03ca010e, 0x42190097, 0x00251b87, 0x004500b5, 0x233183d0, 0xb3ffe6ff, 0xef2a0784, 0xeaffcdff, 0xddffdcff, 0x0f83eaff, 0x00150023, 0x20018223, + 0x841b8415, 0x06334823, 0x28000d22, 0x00231383, 0x84ff0055, 0xfffc221b, 0x240182fa, 0xffeefffd, 0x20c982dc, 0x24a78206, 0xffa1ff04, 0x201b8441, + 0x2cbb82f3, 0x01dc007a, 0x00cb02ef, 0x005b0033, 0x5e939b63, 0x83234a3f, 0x42001100, 0x1a220553, 0x3d7c0c00, 0x82f42008, 0x055342eb, 0x7b56ef20, + 0xffe92408, 0x82ecffed, 0x050f430d, 0xe7fff424, 0xb75ff3ff, 0x0c1d4405, 0x45820b20, 0x51820e20, 0x10001024, 0x01821400, 0x17001822, 0x13220582, + 0x1d4c72ff, 0x830f2010, 0x1a002117, 0x0c222b82, 0x80180b00, 0x23420867, 0x62fe200b, 0x3f820b2d, 0x7f82ec20, 0x7782e620, 0x97210783, 0x956e1800, + 0xffac2807, 0x01000002, 0x84070056, 0x820c2043, 0x00232451, 0x822c0023, 0x20078301, 0x208f821b, 0x2019820a, 0x201f8206, 0x4f921804, 0xfffa220c, + 0x240182f6, 0xffe5fff4, 0x220182dd, 0x82e9ffd4, 0x43eb205d, 0x83420643, 0xfff72305, 0x4947fff7, 0x8203200b, 0x0054223f, 0x22618212, 0x82210019, + 0x001a2401, 0x82130019, 0x0009230f, 0x00820008, 0xfe20ad82, 0x089d5218, 0xedfff822, 0xe623a982, 0x5dffe0ff, 0xf6230927, 0x83fff5ff, 0x0ae17c17, + 0x544bff21, 0x00280ec1, 0x74000200, 0x41024300, 0x8243c354, 0x001c2449, 0x542c002b, 0xb7450897, 0x09bf5405, 0xd5ffd422, 0x2408bf54, 0x002f002f, + 0x08ef541c, 0xe2000029, 0x14000f00, 0x54001500, 0xbf540797, 0x05fb540b, 0x2007bf54, 0x2439821c, 0xff1d002f, 0x062b55e3, 0x43000026, 0x24001800, + 0x23250182, 0x10001300, 0x05334d00, 0xa7761920, 0x82222008, 0x00252e19, 0xffe2ff18, 0xffe8ffc4, 0xffd8ffd9, 0x240788e9, 0x00c5ffe2, 0x7d5b180c, + 0x000d210e, 0x00293ba6, 0xff0d0004, 0x032d0281, 0x2231820b, 0x714d0031, 0x00215d45, 0x31194434, 0x00e6ff32, 0x002d0023, 0x0033002e, 0x0061005e, + 0xff410062, 0x32053342, 0xffddfffe, 0xffd3ffd2, 0xffa2ffcd, 0xff9fff9e, 0x820300bf, 0x01042401, 0x8211008d, 0x8200202b, 0x000f2200, 0x2405822c, + 0xfff1ff00, 0x260784d4, 0xffc4ffec, 0x82f0fff4, 0xffef2601, 0xffdfffe0, 0x068d44de, 0x91003132, 0x77ff0000, 0x1a001000, 0x18001900, 0x0c000d00, + 0x09200182, 0xde223384, 0x07838301, 0x27201382, 0x99440784, 0xfffd2e07, 0xfffafffb, 0xffedfffd, 0x000300dc, 0x22018206, 0x44a0ff04, 0xff2a0799, + 0x00080043, 0x000b000a, 0xb97c000c, 0x820f2005, 0x0010210d, 0xff230582, 0x84f5fff8, 0xffea2401, 0x82eaffe9, 0xfff72699, 0xfef0ffef, 0x225b848b, + 0x84410016, 0x000d2107, 0x40226b85, 0x8384bd00, 0x2982f020, 0x2f82eb20, 0xef84d420, 0x8779e120, 0x20bd8207, 0x0635424a, 0xa54d2220, 0xff0d2406, + 0x837effbf, 0x41938233, 0x58180bd7, 0xfb418211, 0xee002363, 0x154f4800, 0x00662608, 0x001e0014, 0x06154f1d, 0x0b001424, 0x656b0500, 0x4c012008, + 0xfd2e0609, 0xfbfffeff, 0xf8fffaff, 0xf6fff7ff, 0x154feaff, 0xfff12106, 0x154f0187, 0x000f240f, 0x820e000d, 0x820d2003, 0x0010245b, 0x180c0011, + 0x200a9f4a, 0x204982fb, 0x204b82f7, 0x244f84fa, 0xfff5fff8, 0x224782f4, 0x82dcffea, 0x00ea2201, 0x6a474200, 0x21074547, 0x794f0013, 0x00152509, + 0x00070010, 0x20077b4f, 0x220b8208, 0x820b0009, 0x054746bf, 0x0a000926, 0x0f000800, 0x07210382, 0x20008200, 0x076548ff, 0x2205e94d, 0x18d9ffec, + 0x2108d5a0, 0x3b410005, 0x4ffc2007, 0xf3210c79, 0x200183ff, 0x51fb82f1, 0xe74205c5, 0xfff22405, 0x82dfffec, 0xffec2201, 0x445682ef, 0x1328076b, + 0x99008100, 0xc100b500, 0x4f66b147, 0x15c71579, 0x18002d25, 0x67000c00, 0xfa200537, 0xf430ff82, 0xeffff3ff, 0xe8ffeeff, 0x10001500, 0x0a001100, + 0x240a0361, 0xfff6fff5, 0x066742eb, 0x2782dc20, 0x21053341, 0xff52fff9, 0xfff92205, 0x200183f7, 0x22008300, 0x4f080008, 0x072008c1, 0x75420982, + 0x000b2205, 0x20538416, 0x2271820c, 0x83050006, 0x21718228, 0x7387fffa, 0x0982e920, 0x1583e720, 0x19283d82, 0x14001b00, 0x0e001500, 0x06200182, + 0x4f06b951, 0xfa280bc1, 0xedfff0ff, 0xe8ffecff, 0x5008a372, 0x08222149, 0x97880600, 0xc14fa183, 0xff212205, 0x7ea34505, 0x10009c24, 0x01821600, + 0xf1821d20, 0x0b820f20, 0x0d000c22, 0x2008ab61, 0x29b18207, 0x000b000b, 0x000e000d, 0x41500011, 0x0006210b, 0xff230084, 0x50fdffff, 0xff22083f, + 0x0184feff, 0xdbffed22, 0x2006e54d, 0x08fd6502, 0x15550320, 0xfffd2408, 0x18f9fffc, 0x24080798, 0xfff5fff2, 0x220f84f6, 0x84fdfffc, 0x0d415052, + 0xf7fffb22, 0xf3240182, 0xf0fff4ff, 0xf8200782, 0xf9203782, 0x08376a18, 0x200d4150, 0x206b8603, 0x06a94402, 0xedff0325, 0x85ffd9ff, 0x82fe2091, + 0x200385a3, 0x826383fe, 0x2389180d, 0x00082409, 0x4661ff08, 0x022c8073, 0xf4ff6000, 0xdb02ef01, 0x9b002300, 0x249edb43, 0x000b007c, 0x08dd4a05, + 0xf5fffb22, 0x08218b18, 0x51fff721, 0xfb200be3, 0x220c3164, 0x820a0006, 0x000d2c37, 0x0010000c, 0x000d000f, 0x48eeff0d, 0x9918062d, 0x1d830999, + 0x174c0c20, 0xffe72206, 0x470184e9, 0xf62005f3, 0xf6204b82, 0xe6266984, 0xebffeaff, 0x9750efff, 0xfffb2208, 0x09ef77fe, 0x00020022, 0x2005ad52, + 0x209f8203, 0x22a58205, 0x84070006, 0x00052405, 0x82060016, 0x000c2409, 0x820e0015, 0x0007217f, 0x240adf66, 0xb8ffe8ff, 0x21008a00, 0x0c87ffff, + 0x5b82ff20, 0xfffbff24, 0xbf70fffd, 0xfffa2105, 0x2005a146, 0x830782ea, 0xfff025f7, 0xfff3fff4, 0x20079542, 0x872782fd, 0x820e208b, 0x001c2865, + 0x0026001b, 0x822f0025, 0x23ef82f3, 0x0a006002, 0x0d23db82, 0x46001000, 0x0a2005fd, 0x04200f82, 0x0e15ab18, 0xfc204383, 0xf320eb82, 0xef205982, + 0x15719f18, 0x88a1fd21, 0x83e585e3, 0x00062143, 0x1e22e983, 0x33823b00, 0x3b82f420, 0x5373f820, 0x83cd870a, 0x640d2023, 0x81850cc5, 0x038f1783, + 0x2009c569, 0x26318215, 0x000b0005, 0x82120013, 0x821020b7, 0x00132903, 0x00170014, 0x00300018, 0xff230082, 0x82d5fff2, 0xfff822f7, 0x09c951fe, + 0x82f1ff21, 0xfff32181, 0x2005d147, 0x06a941fb, 0x0782f920, 0xfbffec22, 0xf6200182, 0xf3201f82, 0xcf413782, 0x82f52005, 0x05e341ed, 0xdafff324, + 0x0182e2ff, 0x5f18e920, 0x00200a57, 0x1226eb84, 0x56020000, 0x85826503, 0x3d002b22, 0x20401d43, 0x22cb8225, 0x82edff3a, 0x84e12069, 0x00c22805, + 0x00230016, 0x1803ff23, 0x22615982, 0x8300e802, 0x00172400, 0x18270028, 0x2408779f, 0xfdd8ffd9, 0x82168301, 0x71821885, 0x7003205b, 0x0321057b, + 0x45474168, 0x00f70029, 0x003a0013, 0x82240015, 0xff152601, 0xffc2ffe1, 0x220582ee, 0x4109ffe1, 0xed216247, 0x05474100, 0x47412620, 0xfcda220c, + 0x411683fc, 0x66206647, 0x3520fb82, 0x4c2b4318, 0x11009c28, 0x10003400, 0x01821a00, 0x07880f20, 0x2f001722, 0x22080b4a, 0x84c1ffe1, 0xffe0220b, + 0x62654162, 0x8300e921, 0x2a8f8300, 0xff0f001b, 0xffe5fff1, 0x83f0ffe6, 0x18002312, 0x79412700, 0xfcd9210c, 0x18056544, 0x44613385, 0x5126050b, + 0x79005900, 0x0b448b00, 0x47c94a40, 0x00224784, 0x008500ce, 0x03000224, 0x01820500, 0x07000626, 0x04000900, 0x03200d82, 0x06200584, 0x02200982, + 0x04220382, 0x0f840e00, 0x08000723, 0x05696000, 0x0f820420, 0x09200383, 0x082a1182, 0x15000700, 0x10001100, 0x27820d00, 0x01241f83, 0xd7ffebff, + 0xff255a85, 0xfffefffd, 0xc9b118fa, 0x5efc2008, 0xfb200a11, 0xf1201582, 0xfc281f82, 0xf3fff9ff, 0xf6fff7ff, 0xf7200782, 0xf7200782, 0xea242f82, + 0xeffff0ff, 0xf9201582, 0xcf462382, 0xffff2205, 0x225182fe, 0x426eff15, 0x01206447, 0x0a20f582, 0x2008237d, 0x210d8204, 0xef690000, 0x82fd2009, + 0x05a9490b, 0x4bfff921, 0xfd200767, 0xa382c982, 0x82057755, 0x20af8515, 0x22438200, 0x820e0007, 0x00132401, 0x82180012, 0x20458344, 0x22e582fe, + 0x61f8fff8, 0x00240e55, 0x01000200, 0x02200382, 0x07206d82, 0x04220788, 0x17860400, 0x3d840120, 0xf9fff924, 0x576df2ff, 0xfff72a08, 0xfff5fff6, + 0xfd0000f4, 0x441d8317, 0x00205e49, 0xcf428b82, 0x00652805, 0x002f0017, 0x4261004f, 0x002363d1, 0x6f0700f6, 0xf92410dd, 0xd0ffe8ff, 0x21163d70, + 0x2d4900f3, 0x0000230a, 0x0182fcff, 0xe9fff824, 0x3d70d1ff, 0x88fe2115, 0x23615342, 0x00000603, 0x0624c384, 0x2c001700, 0x0320cf84, 0x02841182, + 0x634cff20, 0xffea2405, 0x18faffd3, 0x8308db5f, 0x82042019, 0x212fa631, 0x3083fafc, 0x2060ff41, 0x06934703, 0x49007e24, 0x5e186d00, 0x8b1883f9, + 0xf2201e5f, 0x2808156a, 0xffd9ffda, 0x000f00dd, 0x2001820b, 0x091f4208, 0x21089f44, 0xe54dfff8, 0x70f62005, 0xf22408a3, 0xedfff1ff, 0x2006f356, + 0x067759f0, 0xfcfff725, 0x4100fbff, 0x4783079b, 0x0c000b26, 0xe6ff0e00, 0xd9245d82, 0xebffdaff, 0xed222f82, 0x635adf00, 0x2673830e, 0x000d000c, + 0x4f070010, 0x33710ceb, 0xfff62211, 0x200182f2, 0x06494bf0, 0x8b18c020, 0x0d2410fb, 0x13001400, 0x0a270182, 0x09000a00, 0x18ff0700, 0x2e1ffb8b, + 0x0035002b, 0x003a0034, 0x0076006c, 0x826a0077, 0x228b8335, 0x820e000d, 0x000f228b, 0x20078211, 0x8397820e, 0x205183c3, 0x20538208, 0x24738206, + 0x00050006, 0x06375303, 0xf182fb20, 0xf7fff822, 0xf422d182, 0x9b82f1ff, 0xefffef22, 0xee20e382, 0xf0200b82, 0xf3220d82, 0x1982f4ff, 0xb0fff824, + 0x018287ff, 0xc1ff8c28, 0xc7ffc8ff, 0x67829f02, 0x0c000d24, 0x394d0f00, 0x200d8205, 0x2151820a, 0x00820006, 0xfffeff23, 0x08196dff, 0xf6fffb23, + 0x051751ff, 0x2005814b, 0x200f82f6, 0x21be18fa, 0xfe062608, 0x00170043, 0x2401821f, 0x003f0022, 0x24018242, 0xffd5ff2b, 0x240182be, 0xffdeffc1, + 0x470182e1, 0x022105ef, 0x25008200, 0xbd024e02, 0xed822700, 0xff590020, 0x22428235, 0x82450017, 0x001022ff, 0x22058210, 0x8275003b, 0x00002411, + 0x84cc0044, 0xffd322b5, 0x2307837b, 0x73002600, 0xda220f84, 0x07838dff, 0x002a0023, 0x2c0f847f, 0xffe6fea2, 0xffeffff2, 0xffedffee, 0x260182db, + 0x008b00da, 0x82080007, 0x000a2449, 0x82130011, 0x000c2401, 0x6c230012, 0x08830803, 0x38002222, 0x22200182, 0xd3221384, 0x078379ff, 0x88180020, + 0xd22227bb, 0x0182c4ff, 0x83ffbd2c, 0x7fff7fff, 0x1800ae00, 0x01821f00, 0x40002328, 0x43004200, 0x53842d00, 0x48fea521, 0x012a05fb, 0x47ff4600, + 0xcb021902, 0xad458300, 0x227f4163, 0x1500c922, 0x1422e982, 0xa7841300, 0xecffec24, 0x0382edff, 0xeaffec22, 0xe9280182, 0xc9ffb9ff, 0xd9ffc8ff, + 0xf0201182, 0x08495318, 0x2983fc20, 0x14282f82, 0x25002700, 0x33003200, 0x0424e982, 0x03000400, 0x454f0384, 0x05f35505, 0x24057b5d, 0xffe2fff0, + 0x05bd43eb, 0x00241082, 0x0a000b00, 0x20080355, 0x2109820b, 0x7b5d000f, 0x09896411, 0x4e051952, 0xf82805db, 0xf6fff8ff, 0x10000800, 0x83086369, + 0x001421b7, 0x0fdb8c18, 0xeb22bb83, 0x7582e6ff, 0xeeffea22, 0xf1267982, 0xf4fff2ff, 0x075ce8ff, 0x000c2608, 0x0018000d, 0x22bd8219, 0x82310024, + 0x001624ff, 0x826f0215, 0xfff5235b, 0x8c18fff5, 0x0722095b, 0xd1840500, 0x82000321, 0xe7ff2100, 0xd0203f82, 0xe3240382, 0xdeffe4ff, 0xd9240182, + 0xd6ffd9ff, 0x085b8c18, 0x1982d420, 0xfcffe924, 0x0382faff, 0x4218fb20, 0xfc230899, 0x5efff6ff, 0x0924511b, 0x0a000b00, 0x0124c182, 0x01000200, + 0x07839a82, 0x1d538d18, 0x59610520, 0x0011280a, 0x00360024, 0x82480035, 0x00362101, 0x10638d18, 0x02284f82, 0x00006200, 0x68032702, 0xf9606782, + 0x00372427, 0x4d3a0013, 0xee2e06c3, 0xc3ffe1ff, 0x23001500, 0x40ff2400, 0x8c187100, 0xf9200835, 0x00245b82, 0xf5005100, 0xff230783, 0x830bffaf, + 0x55002207, 0x054b4901, 0xb3fe9122, 0x9b4d7582, 0x2791431d, 0xb2005121, 0x18934ec3, 0xc3fe5920, 0x15006622, 0x32315818, 0x0f4ea520, 0x00182214, + 0x06034e2e, 0xe0ffec24, 0x0b82c1ff, 0xdfffe024, 0xe1aea9ff, 0x4131db4d, 0x002229b9, 0x7f420300, 0x05d74a06, 0x4a0b9118, 0x00ff0023, 0x185d8208, + 0x220f3364, 0x18d0ffe8, 0x2009a363, 0x28008300, 0x00040003, 0x00180007, 0x16eb4af4, 0x2005bb4a, 0x872b84fd, 0x0008242f, 0x41cffe17, 0x874a2d47, + 0x2b7b4166, 0x64000226, 0x03020000, 0x282cfb43, 0x0013002b, 0xffedff3b, 0x430182e1, 0x135305fb, 0x184e2005, 0x202da18c, 0x25fb4302, 0x21b98c18, + 0xfb43c3b2, 0xfe5b2018, 0x35fb43c3, 0x11009b28, 0x10003500, 0x0b521900, 0x5218200c, 0xc0200c0b, 0x20060744, 0x43e1aeb5, 0xb94139fb, 0x00002221, + 0x067f4203, 0x4e51fb43, 0xda205fb7, 0x432d4741, 0x7b416efb, 0x00022a23, 0x02000004, 0x00bd0227, 0xad4f1821, 0x43002753, 0x72002500, 0x05822a00, + 0x20002526, 0x1a001f00, 0x15220182, 0x5f182900, 0xec240897, 0xd7ffecff, 0xc1290182, 0xabffc1ff, 0x9bffceff, 0x053f4a00, 0x0682d120, 0x10000024, + 0x07822f00, 0x03826720, 0x9f820020, 0x1b846320, 0x9dffdf22, 0x00230783, 0x8224000c, 0x001c2951, 0x0016001b, 0x00120015, 0x2405c763, 0x000a0009, + 0x22018206, 0x84030003, 0xfffd242d, 0x82fafffd, 0x59f62001, 0xef200823, 0xeb267182, 0xe5ffe4ff, 0x9b54ddff, 0x22288306, 0x82050005, 0x820b2039, + 0x82112045, 0x6f95184d, 0x825a2007, 0x184220bf, 0x200e6f95, 0x056573b6, 0xffefff23, 0x266184cb, 0x0054ffad, 0x83bf0040, 0x203d820b, 0x22078435, + 0x84a60037, 0x6c002007, 0xf0210cff, 0x05db64ff, 0xe8ffe72c, 0xdfffdeff, 0xd8ffd6ff, 0x0782e0ff, 0xe6ffe624, 0x9582ebff, 0xf2fff022, 0x08cf7618, + 0x07c94f18, 0x4600022c, 0x23020000, 0x5b006603, 0x3d4c7b00, 0x1ead547d, 0x03000222, 0x2108c55d, 0xb1540003, 0x18a2208b, 0x2a28a18f, 0xffd1ffe1, + 0xffd4ffd2, 0x82eaffe8, 0xfff02501, 0x00abffd5, 0x0021d682, 0x24018201, 0x0008000a, 0x0b5b4209, 0x4d4f0020, 0x06d05e07, 0x82feff21, 0xffff2201, + 0x180784f8, 0x18090db0, 0x28110bb0, 0x00070007, 0x000d000e, 0x54018213, 0x00240535, 0xf7fffdff, 0xf9243982, 0xf9fffaff, 0x087b6b18, 0x2205c84d, + 0x82020002, 0x82032082, 0x200f8333, 0x069d4804, 0x15820120, 0x83830f83, 0xf2203583, 0xf8203d82, 0xf7204382, 0xf6270382, 0xf4fff6ff, 0x82fd0000, + 0x3002821b, 0xffb20190, 0xffceffda, 0xffc8ffcf, 0xff96ff9a, 0x06bf6d95, 0x0e02af22, 0x702ec184, 0x46004ffe, 0x6a006b00, 0x37006600, 0x01823200, + 0x17842520, 0x75825120, 0xf3ff3a2a, 0x68032e02, 0x33000b00, 0x57ed8b18, 0x00300129, 0xff3a0014, 0x48e0ffee, 0x00210d49, 0x7d901886, 0x17a9488d, + 0x1804fd21, 0x290c9590, 0x005b0045, 0x0045005c, 0x90180044, 0xbb241b95, 0xa4ffbbff, 0x07830182, 0xb018d420, 0x05280af5, 0x85000500, 0x37002200, + 0x4c220182, 0x05824d00, 0x21003822, 0x11200182, 0x08096818, 0xdfffef26, 0xc9ffe0ff, 0xb1220182, 0x0784b2ff, 0x1182e020, 0xefffef23, 0x22008300, + 0x82110011, 0x00032106, 0x2162b741, 0xcd5bfc00, 0x93002115, 0x01b70110, 0x00662640, 0x003d0015, 0x5fed455d, 0x2d4e0020, 0xe800212a, 0x4a8ed541, + 0xfd212a91, 0x8ea14307, 0x24079f43, 0x005b0066, 0x3bca1883, 0xb7fd47a7, 0x42fd0021, 0x03208db9, 0x4805d643, 0x0820b14d, 0x228e4543, 0x46040000, + 0x374e06e7, 0x00572105, 0x7afb8218, 0x215f215d, 0xc5421700, 0x5e4d5d8e, 0x4202fd21, 0x01288e6d, 0x52004b00, 0x09021e02, 0x2454254f, 0x00150086, + 0x7a018220, 0x0b22072f, 0x0d841600, 0x0b2a0f89, 0x13001200, 0xebff0b00, 0x0184e0ff, 0xf1fff022, 0xf5200182, 0x08715d18, 0x3f841f20, 0xf5ff1626, + 0xedffeeff, 0x27850582, 0xefffe122, 0xf4202784, 0xf1201182, 0xef220982, 0x3d84e1ff, 0x0f82ea20, 0x2982ee20, 0xf4203f91, 0xf0202f84, 0xe0222584, + 0x5f82ebff, 0x522c7783, 0x1e001400, 0x1d001f00, 0x0e001000, 0x0b220182, 0x4982ecff, 0x092b8e18, 0x11204783, 0x0b201b82, 0x1e202784, 0x0f202b82, + 0x56182785, 0x00270f35, 0x0012000a, 0x820a0011, 0xffe2213f, 0xf0220183, 0x0182f2ff, 0x57833f83, 0x39821020, 0x14223d83, 0xb982f6ff, 0x0582ee20, + 0x1f84f520, 0xe3fff022, 0xec206f84, 0x08616a18, 0x0f833d85, 0xeffff034, 0x03000000, 0xdfff0400, 0xdd025802, 0x91006700, 0x3b49c500, 0x22635b5f, + 0x8d36075d, 0x37002b59, 0x15000d00, 0x12001400, 0x2f4e0f00, 0x000c2106, 0x0d200183, 0x0d221782, 0x01820e00, 0x1c002226, 0x17001d00, 0x13200182, + 0x9d182182, 0xff230bab, 0x4eff0000, 0x05830593, 0x20054d5b, 0x06ab5afd, 0x1000fb24, 0x01821a00, 0xf7ff1024, 0x0182f0ff, 0xf3fff72a, 0xedffecff, + 0xf2ffeeff, 0xee260382, 0xf5ffebff, 0x0382f4ff, 0x0582f320, 0x1b82f220, 0xe1fff024, 0x0182e5ff, 0xe9ffe922, 0x33832784, 0x1b82f420, 0x18fff921, + 0x85090d81, 0x840220ba, 0x054d57f8, 0x07000724, 0x3582efff, 0xefffe424, 0x71820a00, 0x7c000f24, 0x9582feff, 0x082f6818, 0x396bff20, 0x00002308, + 0x01820200, 0x04000424, 0x01820600, 0x07000924, 0xe9820b00, 0x112ae783, 0x15001000, 0x13001600, 0xdf641200, 0x00062206, 0x20238205, 0x24058204, + 0xffacff03, 0x83bf8298, 0x00f8248b, 0x82190020, 0x00132401, 0x820d0011, 0x820b2029, 0x821520df, 0x82212039, 0x82012057, 0x84002003, 0x87058399, + 0x82748209, 0x21058213, 0x9918fdff, 0xf920084b, 0x08cdc918, 0xf782f320, 0xbf82ef20, 0xc95ceb20, 0x82df2006, 0x001b287f, 0xff17001b, 0x82f2ffed, + 0x5bf72001, 0xfe2206f3, 0xd388fdff, 0xb7839783, 0x83821120, 0x2d001624, 0x01824400, 0x14005b22, 0xbd83bb82, 0x0f001222, 0x0d20cb82, 0x9f830582, + 0x0a20db83, 0x0a20e582, 0x24221f82, 0x05822400, 0x0b22f383, 0x73820600, 0xe5ffe524, 0x3582e8ff, 0xc7820f20, 0x935c0920, 0x72022008, 0xfa240811, + 0xf5fffaff, 0xf0200182, 0xe9252b82, 0xe3ffe9ff, 0x05a15cff, 0xd8ffd728, 0xecffd0ff, 0x1782eeff, 0xf0ffef22, 0xf1260182, 0xe1fff1ff, 0x0182e8ff, + 0xeafff026, 0xdbffdaff, 0xfa260582, 0xf5fff6ff, 0x6972f800, 0x0009240a, 0x82070008, 0x82062001, 0x0017248f, 0x8226002e, 0x001d2601, 0x0017001d, + 0x57441818, 0x000a2408, 0x82040009, 0x82002001, 0x05976bed, 0x2305337a, 0xfff9fff9, 0x22057750, 0x8297fe8f, 0x820e203f, 0x001223b3, 0x8578002b, + 0x00172205, 0x20018212, 0x24df820f, 0x001c001b, 0x20b7822d, 0x0ae16bfa, 0xf8fff822, 0xf5203b84, 0x089d5218, 0xdeffd522, 0x13530182, 0x82ea2005, + 0xfff024bb, 0x84f3fff4, 0x60fc2025, 0x062c0699, 0x02000500, 0xf3ff4a00, 0x66031f02, 0x6f206f82, 0x2072ed43, 0x0a136c2e, 0xe1ffee28, 0x1600c2ff, + 0xe3822300, 0x0c005022, 0x0a249182, 0x0a000900, 0x05850182, 0x08220d83, 0x19821200, 0x07000c22, 0x08294118, 0x20052743, 0x21008300, 0xa618e6ff, + 0xff210935, 0x0aa161ff, 0xf5fff822, 0xf128fd82, 0xedfff1ff, 0xeaffeeff, 0x20068742, 0x830f82f0, 0xfff82117, 0x5206416e, 0x49830580, 0x18000021, + 0x82092d98, 0x0525520f, 0x73820320, 0x05000422, 0x04200182, 0x06207f82, 0x07200382, 0x08fb5118, 0xad820b20, 0x1522a585, 0x01821800, 0x0f001a28, + 0x0e000d00, 0x3d82ea02, 0x0f820020, 0x220f2f6b, 0x180100f4, 0x21088d5f, 0x97180005, 0x3f42b9f9, 0x42682007, 0x0027753f, 0x001300ee, 0x6d160039, + 0xed260a0b, 0xe1ffe2ff, 0x3f426900, 0x17d75bc6, 0x3f42f220, 0x006624ce, 0x44790015, 0x5d48727f, 0x6e002008, 0x00212a03, 0xc65d42b9, 0x212afd51, + 0x7142f5fc, 0x000022c6, 0x06f34603, 0x2005ef4e, 0x7b754293, 0x8b0da54a, 0x5f094f0d, 0x42dfff21, 0x0b5ec5c3, 0x42f02060, 0x0220c8f7, 0x2206f36c, + 0x6a0b0066, 0x71473a5f, 0x05651817, 0xf99b1809, 0x183d4948, 0x8300fe21, 0x184f2000, 0x244c119c, 0x00020000, 0x24048264, 0x00bd0247, 0x49db1821, + 0x00642444, 0x834c001a, 0x1f0027a8, 0x40006000, 0x01823000, 0x10001f23, 0x9f961800, 0x83052009, 0xf0ff211d, 0xe1240182, 0xd0ffe1ff, 0xc0240182, + 0xacffd5ff, 0xcb4a1584, 0x83662005, 0x1d00270b, 0x15005700, 0x01821200, 0x0f000e24, 0x01820c00, 0x0a000928, 0x07000800, 0x01820500, 0xb9820220, + 0xff212682, 0x2a0182f6, 0xffecffed, 0xffe3ffe2, 0x82daffd8, 0x22028312, 0x8381002b, 0x24038206, 0x000d000d, 0x2a3b8218, 0x000f0010, 0x00120013, + 0x82170016, 0x003324a1, 0x82270026, 0x82192017, 0x820c2019, 0x22028325, 0x845f0020, 0xfe512683, 0x003e00ec, 0x270b83b9, 0xfdff0000, 0xfcfffeff, + 0x6e060760, 0xf7220563, 0x0182f4ff, 0xf2fff322, 0xe1210182, 0x059418ff, 0x00012a0f, 0x02f3ff5e, 0x00db023e, 0x956345a1, 0x270d7d45, 0x10000602, + 0x0b000a00, 0x0cbf9818, 0xb118fa20, 0xf6200865, 0x086f9718, 0xed82ec20, 0xfdfffc22, 0x08c54e18, 0x85fffb21, 0x18fc2001, 0x200acd94, 0x2447820b, + 0x00160014, 0x2401821e, 0xffffff26, 0x2a0182f3, 0xffe6ffe6, 0xffd8ffd9, 0x84cbffcc, 0x82e52007, 0x4117820f, 0x0023055d, 0x86450018, 0x00072409, + 0x820f0007, 0x84162001, 0x181c203f, 0x200c15c9, 0x26398201, 0xffe2ffe2, 0x82f6ffec, 0xfff9226d, 0x1fac18fa, 0x26ce830a, 0x00030003, 0x82040005, + 0x000522c3, 0x08b96d08, 0x0c20d583, 0x0c204782, 0x0b209582, 0x08854718, 0x21820620, 0x2407874e, 0xfffeffff, 0x200182fc, 0x265182fa, 0xffeffff8, + 0x82eaffeb, 0xfff0249d, 0x82f0fff1, 0xffee2101, 0x9f840184, 0x09000a22, 0x08200188, 0x10226b82, 0x01821100, 0x30001324, 0x01822600, 0x5d821c20, + 0x0d000e22, 0x0e22bd82, 0x01821000, 0x1a001122, 0x1722d982, 0x75841400, 0x4d07cf4d, 0x0222052d, 0xd2180200, 0x042008ed, 0xb7850982, 0xa3820920, + 0x0c000a22, 0x22068751, 0x840f000e, 0x0003216d, 0x2205a742, 0x821a001a, 0x830c205d, 0xf4ff2589, 0xe7fff5ff, 0xdb280182, 0xcfffdbff, 0x9cfe4dff, + 0x00251583, 0x008f0185, 0x203d8222, 0x207d8218, 0x1d42180f, 0xfffa2408, 0x82f3fff9, 0xffed2201, 0x203182ec, 0x20d782f8, 0x200982f2, 0x08437df6, + 0x1b82f220, 0x18fff221, 0x7c098f4a, 0x058b055b, 0x20056d4f, 0x834782f4, 0x82f92009, 0xfff92207, 0x57b118f8, 0x86f12008, 0x2213853b, 0x82fafff9, + 0xfffb229d, 0x839184fa, 0x000421e7, 0x0931c818, 0xfdffcd22, 0x0969e918, 0xff200982, 0xff200f82, 0x2206c151, 0x820a000a, 0xff442c29, 0x033002f3, + 0x00130012, 0x43b50095, 0x4943a33b, 0x280d860d, 0x0014002f, 0xffefff3a, 0x240182e6, 0xfff2ffe7, 0x280182f4, 0xffdffff7, 0x000b00be, 0x2401820e, + 0x001d000f, 0x2003821e, 0x20f38252, 0x8313820c, 0x82092003, 0x0006210b, 0x00214086, 0x06715200, 0x24051d6f, 0x001f0003, 0xf540183d, 0x058b5308, + 0x18091562, 0x18096b40, 0x410aa750, 0xbf530655, 0x82fc2005, 0xfffd2118, 0x0b275718, 0xf7fff925, 0x7dfff8ff, 0x05830505, 0xe3ffe62a, 0xddffe4ff, + 0xe9ffe8ff, 0xea220182, 0x6318f3ff, 0xf42008e5, 0xf620bb82, 0x00288f82, 0x17001600, 0x19001800, 0x07830382, 0x2500182b, 0x1a001b00, 0x11001000, + 0xc39d1800, 0xffc4260d, 0xffd2ffd1, 0xcbb118e1, 0x22c5830a, 0x84070007, 0x820d2027, 0x00222641, 0x002c0022, 0x243f821f, 0xff8bff1c, 0x238b82f6, + 0xfff9fff7, 0x09d3bc18, 0x0a000a26, 0x14001500, 0x1e232182, 0x18002800, 0x2009c39d, 0x242b82f5, 0xffebffe9, 0x200182e2, 0x05bb72da, 0x86610221, + 0x0021229b, 0x22018220, 0x820f0011, 0x830b2001, 0x43dd8213, 0xe02705c3, 0xe0ffdfff, 0x500092fd, 0x092005b7, 0x0b208582, 0x0c245f82, 0xfbfffcff, + 0xfa200382, 0x2006c344, 0x83f182fb, 0x056f6e5f, 0x83000221, 0x833185b3, 0x180520b9, 0x430aa5a6, 0x478305cb, 0x0d28a783, 0x0e000c00, 0x48002300, + 0x1a200382, 0x1020d182, 0x0820e782, 0x05830384, 0xf5860720, 0x07820920, 0x43840720, 0x7b820420, 0x46000521, 0xfe2205ff, 0x7d82feff, 0xfdfffe22, + 0x0a937218, 0xe3fffc24, 0x5382c6ff, 0x07205f83, 0x87833182, 0xff23ce82, 0x82f9fff8, 0xfff226f1, 0xffeaffe9, 0x2f9e18e0, 0x82f4200a, 0x82e920e7, + 0xffdf2515, 0xffd5ffde, 0x09e14b18, 0xcf82f320, 0x5818f620, 0x05200ae3, 0x44204b82, 0x7b83d582, 0x0d000628, 0x13001200, 0xaf821800, 0x14001422, + 0x0d200d82, 0x06201d82, 0x02826682, 0x82fcff21, 0xffd52267, 0x224f82dd, 0x82e7ffe7, 0x43f32045, 0x032108cb, 0xc49f4300, 0x00ef0025, 0x823a0013, + 0x001e30f7, 0x001c001e, 0x000e0010, 0xff0b000d, 0x18bfffdf, 0x220cb153, 0x106d00e6, 0x4a019f03, 0x21002026, 0x10002000, 0x0f210182, 0x099f4300, + 0xeffff124, 0x0182e0ff, 0x0310df20, 0x244e019f, 0x00970015, 0xb83f47b7, 0x96000026, 0x34001100, 0x1c220382, 0x05821c00, 0x1d001122, 0x17280784, + 0xe9ff2e00, 0xd9ffdaff, 0xe8220582, 0x0582cfff, 0xdaffd924, 0x0310c000, 0x254a01a5, 0x00240024, 0x4d18ff16, 0x00270807, 0x00210000, 0x82370038, + 0x270a8205, 0xc9ffdfff, 0x87fdc8ff, 0x01490710, 0x00002142, 0x27064b47, 0x4f00fa02, 0xf100d100, 0x4bb9ab43, 0xc84a1401, 0x211d9b08, 0x2682cf00, + 0x02000224, 0x01820500, 0x23052949, 0x00030004, 0x092f4118, 0x2005b76c, 0x20118202, 0x2403820e, 0x00070003, 0x23018409, 0x00080008, 0x27058d4d, + 0x00120016, 0x000e0011, 0x2406bf48, 0xd7ffebff, 0x05af4f00, 0xfcfffb24, 0x0182f9ff, 0x5b49f720, 0xfffc2206, 0x06e949fd, 0x0982f120, 0xf7201b83, + 0x8506774a, 0xfff72807, 0xffefffe9, 0x82f3ffee, 0xfffa2801, 0x000000f9, 0x10c70015, 0x42015904, 0x13007624, 0x01820e00, 0x5d000821, 0x002508fb, + 0xffffff00, 0x4c0582fd, 0x154e07b9, 0xfff32205, 0x200182fd, 0x435c18f9, 0x21158308, 0x008300ff, 0x12243b83, 0x18001100, 0x20200182, 0xff271083, + 0xfff3ffed, 0x82f7fff2, 0x5dfc2001, 0x012206d3, 0xe76e0100, 0x00042606, 0x000d0005, 0x22018203, 0x5f080006, 0x032006e7, 0x2408f75e, 0xfff8fff7, + 0x280182ee, 0xffe8ffe8, 0xfd0000e1, 0xcd041093, 0x04204201, 0x2705174c, 0x1700d902, 0xb1002f00, 0xd5737818, 0x00f80026, 0x00040007, 0x0ff34318, + 0xd0ffe829, 0xfdfff8ff, 0x8700fcff, 0x82042000, 0x00082523, 0x00f30018, 0x2015377a, 0x212f95d1, 0x0410e1ff, 0x2142016d, 0x7618007b, 0x46824515, + 0x13757618, 0x108efd21, 0x42012d04, 0x44000021, 0x0329062f, 0x001f004d, 0x00c1003f, 0xe4fd48e1, 0x14009827, 0x09000a00, 0x25008200, 0xf6fff7ff, + 0x0182ecff, 0xe7ffe728, 0xe4ffe3ff, 0x0182e8ff, 0xf6220f83, 0x1e82f5ff, 0xd3650020, 0x00142206, 0x2a018218, 0x001d001c, 0xff190019, 0x18f5ff7c, + 0x200c2d87, 0x2425820b, 0x000d000d, 0x22018210, 0x840e000e, 0x00062133, 0x22055952, 0x68fafffb, 0xf0260afb, 0xf3fff3ff, 0x04106200, 0x2442015f, + 0x00120071, 0x22018217, 0x821b001b, 0x82182005, 0x4112200d, 0x59480cd3, 0x68e92005, 0xee2108e9, 0x25a718ff, 0x82092009, 0x823c2029, 0x000c2403, + 0x1810000c, 0x180c5747, 0x220de9dd, 0x82f2fff3, 0xfff02201, 0x180182f4, 0x210e4f47, 0x041079fd, 0x2e44017f, 0xff140003, 0x025802f3, 0x0091001b, + 0x44cf00af, 0x0623d27d, 0x6a001000, 0x0822051d, 0x09820e00, 0xb7421320, 0x00142208, 0x20018211, 0x201f820f, 0x2119820f, 0x00820010, 0xfff3ff23, + 0x200382f2, 0x08ef5aef, 0xf4200d83, 0x08757918, 0xfafff926, 0xfcfffbff, 0xfd200182, 0x0cf95618, 0x3a820120, 0x3e220289, 0x0c85b800, 0x82f7ff21, + 0xffee2401, 0x82e1ffef, 0xffd42401, 0x82e0ffd1, 0x55ef2001, 0xf0210659, 0xad8518ff, 0x07615b07, 0x69fff721, 0x358305bf, 0xf7fff622, 0x08214384, + 0x22018d00, 0x840f0010, 0x056f4301, 0x0c000c22, 0x260aad56, 0xffd4fff2, 0x82dcffd0, 0x82e72001, 0x052f43c3, 0x017bfa20, 0x00032608, 0x00050003, + 0x204f8404, 0x06f1550a, 0x19002624, 0x0b821500, 0x6b846d20, 0x05000022, 0x09244d82, 0x10000900, 0x15200182, 0x6d695b82, 0x05394c05, 0x04203b83, + 0x02213f82, 0x86018300, 0xd7ff23f1, 0xe55aa0fe, 0x0008220a, 0x249d8407, 0x001d001d, 0x2069822a, 0x20578510, 0x4c0083ff, 0xfd2205d9, 0xff82fbff, + 0xf0ffef2a, 0xecffe8ff, 0xf0fff1ff, 0x0a227382, 0x01820e00, 0xeeff1222, 0x20087f5b, 0x06434afb, 0x2609114f, 0x000a0008, 0x8235001b, 0x82f8206b, + 0xfffa233f, 0x5a18fffa, 0x032007b3, 0x04228f82, 0x79820300, 0xb9820620, 0x0b000822, 0x4f842982, 0x00120023, 0x205d8217, 0x211f8209, 0xaf830001, + 0x0d820320, 0xe1820220, 0x0a269483, 0x48002000, 0x01823200, 0x1c001b22, 0x89187f84, 0xfb820803, 0x45820b20, 0x51820720, 0x1783ef83, 0xfefffe22, + 0xff216f82, 0x05375aff, 0x0b82fd20, 0xe6220383, 0x5182cbff, 0x09b94918, 0x85820320, 0x03208983, 0x00243282, 0xf9fff8ff, 0x0a4fc218, 0xe4fff322, + 0x00271583, 0xfff6ff00, 0x82ebfff5, 0xfff22205, 0x20ff82f2, 0x22f582f1, 0x82ecffee, 0x18f02005, 0x200c3f64, 0x5a2182ec, 0x0424056b, 0x39010500, + 0x0f236782, 0x59002500, 0x10220555, 0x01820800, 0xfb229789, 0x0182faff, 0x6f82f920, 0x3582f620, 0xf3fff322, 0xf0205782, 0xf8225182, 0x6f82f0ff, + 0xcb821d20, 0x2205f56d, 0x8212001a, 0x20db8301, 0x06054105, 0xf7ff0028, 0xe8ffe7ff, 0x0182edff, 0x3f838f83, 0xbb823582, 0x5e82f820, 0x25820020, + 0x07820620, 0x5200012a, 0x030247ff, 0x8f001b02, 0x20921f44, 0x22d584ba, 0x82130012, 0xff0022a9, 0x22cb84eb, 0x82efffed, 0xffec2209, 0x13b018e9, + 0x095b4208, 0x2007254f, 0x2a378212, 0x00210025, 0x002d002e, 0x4104003a, 0xdf4208bb, 0x18062005, 0x61086db7, 0x68180599, 0x0b260bfb, 0x0a000b00, + 0x03840c00, 0x0f240b83, 0x0e000d00, 0x0b221382, 0x01820900, 0x60180720, 0x816c0c8f, 0xfffd2409, 0x82f8fffb, 0x00f62101, 0x05212183, 0x5b018500, + 0xdf6c0541, 0x84082007, 0xfff822c3, 0x202782f9, 0x220382f7, 0x42f7fff6, 0xf62206f1, 0x4570f6ff, 0x05d56d08, 0x1982e820, 0x1f82f720, 0x200bfd5f, + 0x2485820c, 0x00170017, 0x20018222, 0x2407822b, 0x01150014, 0x204d82c5, 0x243b82f5, 0x001e00f0, 0x22b3823d, 0x82080008, 0x000522ed, 0x05bf4d02, + 0xffedff25, 0x82dcffee, 0xffeb2403, 0x82e7ffeb, 0xffe22e01, 0xffdeffe3, 0xffccffc0, 0xffdbffcd, 0x221982df, 0x18fdffee, 0x2064974b, 0x20bd820a, + 0x1803820b, 0x200b974b, 0x20ab8202, 0x22038203, 0x84050004, 0x001e22b5, 0x20cf823c, 0x838f82fa, 0x078b45f7, 0x2005bb6d, 0x276a18ff, 0x000e2408, + 0x821b000d, 0x05956003, 0x16001324, 0x03821500, 0x25003122, 0x2306a95d, 0x000e000d, 0xd7820082, 0x0682fd20, 0x3e00032c, 0x2c02f3ff, 0x13001203, + 0x4e186300, 0x35208857, 0x3a208d82, 0x2008395f, 0x18395ff3, 0x80186120, 0x0c220ae3, 0xd9820b00, 0xf9820e20, 0xf220e187, 0x08256118, 0x0982f420, + 0xf218f420, 0xed240a37, 0xf0ffecff, 0xf2260182, 0xf5fff1ff, 0x5f83e8ff, 0x00850020, 0xb4186320, 0xf1260a23, 0xe1ffe2ff, 0x0182d5ff, 0xe3ffca22, + 0x2006c55f, 0x063d6fe8, 0x5b84ef20, 0xf7fff722, 0x08519818, 0x22055343, 0x82330025, 0x82412001, 0x000c268b, 0x002cff0c, 0x2c8f8204, 0x0016000c, + 0x001c0015, 0x0022001b, 0x28058221, 0x0012001a, 0x00070008, 0x28018206, 0x00030005, 0xff010002, 0x206182da, 0x205b84e3, 0x249784f1, 0xffe7ffe2, + 0x08d55ee8, 0x8315355b, 0x05d55ec1, 0x01007e22, 0x0c856018, 0x77820420, 0x03820520, 0x75820620, 0x33423a20, 0x47fb2006, 0xf92008bd, 0x5e08a750, + 0x062005dd, 0x09248d82, 0x18000b00, 0x22229d82, 0xb4182b00, 0x47831e7f, 0xf224f783, 0xedfff2ff, 0x2a0e3b43, 0xffc0ffdf, 0xffceffcd, 0x83dcffdb, + 0x0552411b, 0x01000027, 0x00250042, 0x188b821d, 0x240ba78f, 0xfff6fff6, 0x5f0819ec, 0xffee220c, 0x893187ec, 0x06c16007, 0x2594a742, 0x1300f500, + 0x03823a00, 0x1e001e22, 0x1022df82, 0x01820e00, 0xdfff0a24, 0xd782beff, 0xf4fff426, 0xe7fff2ff, 0xe6220182, 0x02107c00, 0x24f201a7, 0x00650015, + 0x87334885, 0x2206dd6f, 0x821c0011, 0x00112101, 0x1d200783, 0x495d0582, 0xffe8260f, 0x00daffda, 0xe6ad42cf, 0x2023e55c, 0xde594573, 0xff470420, + 0x06b35705, 0x9f007f22, 0x5c87b142, 0x00241931, 0x000800fe, 0x0fe78b18, 0xe8fff824, 0x7f6ad0ff, 0x8200200a, 0x00042800, 0x00070004, 0x4cf30018, + 0x158209cd, 0xfcff0022, 0xf9200182, 0x5c182f82, 0xff211645, 0xdeff42f1, 0x205f1d57, 0xde33437a, 0x6d00022a, 0x2202fcff, 0x13000603, 0x3bf79c18, + 0x000f0125, 0x4a390014, 0xe82006e5, 0x500c1f6a, 0x10290515, 0x1e001d00, 0x27011d00, 0x27008200, 0xafffe5ff, 0xf0ffeaff, 0x77182f82, 0x00240b49, + 0x5fffcbff, 0x00241e82, 0x5b001f00, 0x00260784, 0x0b000c00, 0x05821700, 0x0d000e26, 0x11001000, 0x12200182, 0x27226982, 0x1f845502, 0x0b517a18, + 0x83651020, 0xfff02208, 0x2a5982f1, 0xffdfffe1, 0x0092fddf, 0x84380012, 0x00002c2b, 0x00080007, 0x000f000e, 0x82150016, 0x0071228b, 0x228b84e2, + 0x84ceffef, 0xffbc3007, 0xffd3ff34, 0xffddffdc, 0xfff3ffe7, 0x18f6fff7, 0x220c0961, 0x41860002, 0x00244427, 0x3b001300, 0x1d20c182, 0x1d208182, + 0x0e208b82, 0x0b209182, 0x240e6549, 0x01e6ffe6, 0x41938411, 0xe0226727, 0x274191fd, 0x180d2050, 0x203671b8, 0x24898286, 0x00160034, 0x2e038444, + 0xff350011, 0xffa4ffe1, 0xffc9ffed, 0x414001e1, 0x56204615, 0x00274783, 0xff56001d, 0x84aaffe3, 0x002c220b, 0x225b8484, 0x4122fdd4, 0x00224609, + 0x33420300, 0x068f4605, 0x8d465320, 0xec002155, 0x18161146, 0x5d1d8762, 0xf8220df3, 0x7146e9ff, 0x41a22018, 0xa9454673, 0x4181205f, 0x022a48b7, + 0xf3ff4500, 0xdb022402, 0x29536300, 0x00992494, 0x82130016, 0x00102701, 0x000f0020, 0x00820010, 0x82fdff21, 0xfffb2c01, 0xfff8fffa, 0xfff5fff7, + 0x82dcffe9, 0x00ce2401, 0x82270018, 0x84172001, 0x82fb201b, 0xffe52e05, 0xffd2ffd3, 0xfff3ffe6, 0xffecffed, 0x202382f4, 0x2e3f82b7, 0x001d001d, + 0xffd8ff11, 0x000300b1, 0x82040005, 0x001a2205, 0x20378228, 0x9d851822, 0x05b35108, 0x0f840420, 0x06000522, 0x042a2584, 0xfcff0100, 0xfefffeff, + 0x09820100, 0x0982fd20, 0x0382fb20, 0x6582fe20, 0xc3fff622, 0x20082f6f, 0xe90b19f1, 0x00102208, 0x2caf821f, 0x002c002c, 0x001c0039, 0xff190019, + 0x8fb71849, 0x000a220a, 0x83d3840a, 0x8225208b, 0x054f530b, 0xff720420, 0x84052008, 0x840d2009, 0x00072119, 0x21088560, 0xfd18f6ff, 0xdd260a25, + 0xe5ffdeff, 0xbf82e6ff, 0x0d00092a, 0x11000e00, 0x2f002400, 0x3e200182, 0x18246d82, 0x17001800, 0x16220186, 0x17842d00, 0x07003224, 0x01820c00, + 0x0f204f83, 0x09202f82, 0xf3244b82, 0xf8fff2ff, 0x14223d82, 0x05821500, 0x00000026, 0xe3ffeeff, 0xee270182, 0xe7fff4ff, 0x82fff8ff, 0x201f82cf, + 0x20378408, 0x08676f0b, 0x2005c352, 0x200f82fb, 0x08c973f9, 0xfefffc24, 0x40820100, 0x0d8a0289, 0x82efff21, 0x27af8357, 0xffd0ffcf, 0xffc2ffc1, + 0xdc200783, 0xee20bf82, 0x0a117f18, 0xb7827320, 0xc3822320, 0xad822d20, 0x07822420, 0x0f821820, 0x79820c20, 0x5f825186, 0x09f98f18, 0x20057764, + 0x83e218f0, 0x82e72008, 0xffe524ad, 0x82ddffd3, 0x0bf36e01, 0xd5820d20, 0x6100022b, 0x0d020000, 0x4f00e102, 0x85841800, 0xce002584, 0x02000100, + 0x35670382, 0x000a2407, 0x82030004, 0x52042001, 0x69180a09, 0x35670df3, 0x000d2415, 0x8206000e, 0x67002001, 0xf8240e35, 0xf7fff9ff, 0x2306ed57, + 0xfffdfffc, 0x2005af41, 0x083567f1, 0x1d82f820, 0xf8fff824, 0x0782f6ff, 0x22053567, 0x18f3ffef, 0x22086d9f, 0x18bdff15, 0x2307e1b7, 0x09000000, + 0x112c0182, 0x19001100, 0x21001800, 0x15001c00, 0x0e220182, 0x75820d00, 0x1d820720, 0x17220283, 0x06834500, 0x23580020, 0x2f4b8309, 0xfff0fff0, + 0xffeeffed, 0xffc7ffe9, 0xffd7ffd6, 0x0e81bb18, 0x665c0221, 0x05200c55, 0xff204183, 0xfe200083, 0xfe210588, 0x200183ff, 0x209782fc, 0x21c384fd, + 0x0753fff8, 0x09c35a05, 0x08000924, 0x01821200, 0x9d821820, 0x41841f20, 0xf2ffee22, 0xf7200182, 0xfb20db82, 0x24068b59, 0x00010000, 0xa1a91803, + 0x000d2208, 0x720d8204, 0x0520050f, 0x02200b84, 0x3a821b82, 0xf7203182, 0xef2aad82, 0xe8ffe7ff, 0x0000e0ff, 0x1482a4fd, 0x4a000028, 0x2900e000, + 0xbc181e00, 0x35222821, 0x01822800, 0x0d001a22, 0x08f98d18, 0x65820320, 0xbc184a82, 0x00201431, 0x452c8b82, 0x2402f3ff, 0x13001203, 0x57003700, + 0x21553347, 0x01820001, 0x97552e20, 0x74de2014, 0x102208d1, 0xe7841c00, 0xbc18cc20, 0xdb832a75, 0x08000824, 0x01820b00, 0x37821020, 0x2d002c26, + 0x3b003a00, 0x2c220582, 0x9c1802ff, 0x09260a8b, 0x12000900, 0xe9181100, 0x1a2008bf, 0x0f830982, 0xf1180920, 0xef200ac5, 0xe52a2f82, 0xdcffe6ff, + 0xe5ffddff, 0x3f55e5ff, 0x00c22a28, 0x00330023, 0x00440034, 0x22078243, 0x82240033, 0x8212200f, 0x0000246d, 0x82eeff00, 0x82dd2001, 0xffcd2851, + 0xffbdffcd, 0x82e3ffdf, 0x24638301, 0xffeaffeb, 0x446782ed, 0x1120077d, 0x5a242f82, 0x26001900, 0x32220182, 0x07843200, 0x0f821a20, 0x0d000d22, + 0x00224682, 0x0182f3ff, 0x9b82e720, 0xdaffda24, 0x0182ceff, 0x0f830783, 0x73fff221, 0xb5560559, 0x47032005, 0xcb410547, 0x7c002061, 0x861805c7, + 0x00200c87, 0x2211554b, 0x10e700e7, 0x4201cb01, 0xfb181520, 0x00235ffd, 0x71120094, 0x1c260c29, 0x11001c00, 0x29711800, 0xffce280c, 0xffdaffe9, + 0x413a01da, 0x87538ed1, 0x43b72023, 0x9f4386a1, 0xe1022506, 0x73004f00, 0x971b0819, 0x219f1b48, 0x81424201, 0x9f3f4886, 0xf542dd20, 0x00002286, + 0x05974604, 0x1808974f, 0x1876c7ae, 0x215f1546, 0x99425c00, 0x5ff94f86, 0x5942be20, 0x00032c86, 0x0247002c, 0x0016023c, 0x551f0017, 0x62223c4d, + 0x74180800, 0xf824105b, 0xc2ffe2ff, 0x2214676f, 0x1807ff1f, 0x210d3994, 0x3fad3601, 0x00a20124, 0x074c0000, 0x001d2205, 0x144f523a, 0xc6ffe324, + 0x6b5ff9ff, 0x64ff2107, 0x00242f82, 0x3c001400, 0xff230783, 0x8205ffec, 0x82032007, 0x00072141, 0xd1583f85, 0xfff9210f, 0x80183f85, 0x002f089f, + 0xff180003, 0x024b02d3, 0x00570039, 0x4baf007f, 0xb7755ae7, 0x19a15924, 0x002d1997, 0x000f0046, 0x00170016, 0x000d0014, 0x24018211, 0x00090014, + 0x4f8d180b, 0x000c2608, 0x003b000e, 0x2001822d, 0x0a85431e, 0x2209a551, 0x82f5fff9, 0x001a2c3f, 0xff100019, 0xfff2fff7, 0x82f8fff1, 0xffeb2405, + 0x82eeffeb, 0x55971809, 0xfff72209, 0x181f82f6, 0x28070952, 0xfff3fff4, 0xffc6fff4, 0x180182d4, 0x240bedc8, 0x00020002, 0x21038206, 0x01850003, + 0x05000528, 0xefff0600, 0x0182e6ff, 0x0800f022, 0x0e256982, 0xfcff7500, 0x871319ff, 0x8300200a, 0x76032000, 0x12220ca9, 0x01821b00, 0x10002222, + 0x0c237318, 0xe3ff0924, 0x0182eaff, 0xf0ffef22, 0xf4207b82, 0xe8208f82, 0xed24a382, 0xfaff4400, 0x2208c163, 0x4ffbfffa, 0x09820653, 0x001d0023, + 0x20018216, 0x2c478211, 0x000c000c, 0x0018000a, 0x00130012, 0x189b821e, 0x20097154, 0x207e8201, 0xcf821802, 0x4ce38308, 0xe52205ef, 0xff86dcff, + 0x3f82d320, 0x3b821920, 0xf2ff1622, 0xf5207382, 0xb5676b82, 0x82ff2005, 0x82ff20c5, 0x2002833d, 0x20598211, 0x08fd4323, 0x19001d26, 0x17001a00, + 0x13207b82, 0x10241782, 0x1d001100, 0x11247582, 0x0b000600, 0x07240182, 0xe9fff1ff, 0xeb200182, 0x085ba918, 0x04000522, 0x31410182, 0x00022105, + 0x97838d85, 0x220f274d, 0x82e7ffe5, 0xffea2201, 0x698784f5, 0x0b8206d5, 0xe3ffee26, 0xefffe2ff, 0xf5249982, 0xc600f5ff, 0x0f26af82, 0x0e000f00, + 0x01860d00, 0x14001924, 0x85821500, 0x4f411220, 0x18192006, 0x4208ed44, 0xf8200907, 0xdf205582, 0xed225f84, 0xe982eeff, 0xf4fff326, 0xebffe5ff, + 0x7c200182, 0x95839182, 0x8307ab4f, 0x000522ab, 0x22cd8205, 0x821a0021, 0x821320e9, 0x820e2059, 0x820c206d, 0x8216200d, 0xff232267, 0x528982f7, + 0xfa22077f, 0x3164fbff, 0xffcf2408, 0x82dbffda, 0x83e62063, 0x8300205f, 0x00012100, 0x29057f41, 0x02f3ff61, 0x0005030d, 0xc2180013, 0x01204c2d, + 0x22275b4f, 0x82140055, 0x001122c5, 0x25db180c, 0x00002117, 0x08e5bb18, 0xc182e720, 0xf1ffe022, 0xf422d582, 0x0182f6ff, 0x1982f820, 0xd182fa20, + 0xf9fffa22, 0x2982d283, 0xbbffe922, 0x00210985, 0x2401820b, 0x00150014, 0x28018220, 0x001d002b, 0x02190018, 0x26315a54, 0x8d82a120, 0x95821120, + 0x6b821720, 0xe8ffe722, 0x2206bf54, 0x838a0183, 0xb6ff273f, 0xd8ff21ff, 0x0182e1ff, 0xebffea22, 0x0a6d9b18, 0x64000221, 0x072a05a3, 0x10000700, + 0x1b001a00, 0xc4182400, 0xca200c73, 0xd8243582, 0xe5ffe6ff, 0x087d4218, 0x06000622, 0x02215182, 0x56834100, 0x2206134f, 0x820e000b, 0x50102001, + 0x142406cb, 0xbeffdfff, 0x210d8b66, 0x83417800, 0x000c2270, 0x2401820f, 0x001f0011, 0x21018221, 0x00820015, 0x82ebff21, 0xffdf2299, 0x249b82e1, + 0xfdf1fff1, 0x768341aa, 0x80181120, 0xc74e4c89, 0x00172305, 0x03830043, 0x34001222, 0x4e0ae97f, 0x002106bf, 0x707d41c3, 0x7f0bf55a, 0x95201109, + 0x206a7941, 0x05fb4203, 0x2006874b, 0x67034865, 0x215f774b, 0xd341e5ff, 0x5f5b4b6a, 0x0f428f20, 0x00022c6a, 0x0237ff34, 0x00050341, 0x42710013, + 0xdf49670d, 0x2733450b, 0x8265ff21, 0x003721a1, 0x09370219, 0xdd560920, 0x00072108, 0x094b5a18, 0xcb700520, 0x20298308, 0x096e180d, 0x0004220c, + 0x24298205, 0x00080008, 0x303b820b, 0x000d000c, 0x001a000e, 0x001c001b, 0xffdfff12, 0x35ca18bf, 0xffe1220c, 0x200f86ec, 0xf35f18f0, 0x82238208, + 0x00122231, 0x26898211, 0x00260024, 0x47230027, 0xf9200613, 0x5a069749, 0xfa24058d, 0xf9fff8ff, 0xf7281982, 0xeefff4ff, 0x0000dcff, 0x45063961, + 0x20200983, 0x200c8345, 0x078345e0, 0x00d6fc22, 0x02220085, 0x594a0100, 0x05314908, 0x0622b983, 0x01820900, 0x03840d20, 0x10000d22, 0x19200182, + 0x2120bf82, 0x0141fd84, 0x860a2005, 0x0014221b, 0x18198214, 0x830e337d, 0xe5ff235a, 0x0182ddff, 0xb7ffd828, 0xb4ffb5ff, 0xfd82ceff, 0x24002322, + 0x4921c982, 0x5dc91800, 0xffd7320b, 0xffd2ffd7, 0xffa2ffac, 0xffabffa3, 0xffedffe7, 0x0baf6cec, 0xfffcff23, 0xd3f318fb, 0xeeff210d, 0x022a5d82, + 0x37ff5f00, 0xe0022a02, 0xdb182900, 0x00214567, 0x08035a5f, 0x0f000b22, 0x1320ef82, 0x0142df82, 0x000a2205, 0x2201820c, 0x8233000f, 0x002722bb, + 0x41d3181e, 0xffd92214, 0x240182cd, 0xffdaffda, 0x22fb84e8, 0x82bbffe9, 0x187f2007, 0x28103dd3, 0x00190011, 0x0022001a, 0x20038242, 0x24298422, + 0xffdeffde, 0x200382be, 0x20fb82e6, 0x2b118337, 0xc9004300, 0xf2ffecff, 0xf5fff1ff, 0x0a654b18, 0x5d6cff20, 0x00122406, 0x82240012, 0x82342001, + 0x8240208f, 0x823220fb, 0x00252207, 0x4dd31825, 0x005c220e, 0x225d84b9, 0x577afe16, 0xcd241ae7, 0x9affceff, 0x0a49d318, 0x0e000d22, 0x03203582, + 0x2505a743, 0x1700cc02, 0x37542f00, 0xe7741898, 0x00d2275f, 0x00370013, 0xe34b0017, 0x000a2205, 0x6ba01808, 0x00062408, 0x82040005, 0x0004220d, + 0x23018606, 0x00090008, 0x5c05d35c, 0x012309d1, 0x4c000100, 0xe54b0575, 0x00042205, 0x222d8203, 0x44070005, 0x6d206e0f, 0x2208bb4f, 0x4f2c0016, + 0xea2414fb, 0xf9ffd4ff, 0x8208a775, 0x0300212e, 0x0721df82, 0x212fa400, 0x3083cafc, 0x05240382, 0x09000500, 0x06200382, 0x0720e582, 0x08226782, + 0x0f820800, 0x11000822, 0x0c2e0b82, 0x0f000b00, 0x15000e00, 0x1a001400, 0x17820c00, 0x07202983, 0x04206582, 0x08f78718, 0x0d820420, 0x3b820720, + 0x08000924, 0x23820d00, 0x44001221, 0x03286f53, 0x00001200, 0x4e035602, 0x2722b182, 0xa1463900, 0x9f00263b, 0xe1004a00, 0x27008200, 0x20ffb5ff, + 0x73ff0000, 0x62ed8518, 0x83000821, 0x00122200, 0x23068334, 0xc4fceeff, 0x00200783, 0x5d6d8a18, 0x4400032e, 0x3002f3ff, 0x0700bf02, 0xa9008900, + 0x513b3341, 0x17d71789, 0x41a00021, 0x00210da3, 0x6d3e10cd, 0x7a214201, 0x20008300, 0x06834211, 0x5bfdef22, 0x01fd3d10, 0x07974442, 0x13005c26, + 0x45003300, 0x28486343, 0xfff1ffd1, 0xfff8ffd4, 0x220182e8, 0x82d5ffd7, 0xffe73005, 0xffecfffa, 0x000500d9, 0x00280027, 0x83490048, 0x46fe2107, + 0x2162bb44, 0x0082005c, 0x51e6ff21, 0x0d24083d, 0x1a000d00, 0xc7241384, 0xe3ffe4ff, 0x00250983, 0xfc1c001d, 0x440984dd, 0xe82665d3, 0x99001700, + 0x6f41b900, 0x56a95648, 0x301c1f45, 0xfff1ffd3, 0xfff9ffd3, 0xffe7ffe8, 0xffe9ffd6, 0x08936def, 0xfdfff930, 0xd8ffecff, 0x28000500, 0x48002700, + 0x07824900, 0x9fff2822, 0x01030510, 0x05014c42, 0x67ffdd21, 0x052109eb, 0x054d4d00, 0x10000e23, 0x25008200, 0xdeffbdff, 0x0882deff, 0x22000026, + 0x64fd2200, 0x01230510, 0x00022a42, 0x0247ff12, 0x00bd0268, 0x4578184b, 0xfb012861, 0x02000000, 0x4a000300, 0x082605f3, 0x10000c00, 0x19191f00, + 0xff252157, 0x002300e4, 0x97191946, 0x83ff2013, 0x18f02000, 0x220859cb, 0x82fdfffd, 0x00002261, 0x2001821d, 0xbd8d183a, 0x05934f08, 0x19830a20, + 0x0758ff20, 0xfff92c09, 0xfff8fffa, 0xfff2ffe5, 0x18cffef2, 0x2210bb8d, 0x82090007, 0x000b2201, 0x26018213, 0xff0d0014, 0x82aaffb9, 0x2013834f, + 0x79f1180a, 0x19508308, 0x2120af19, 0x7945abff, 0xf0ff211b, 0xf226fd82, 0xf3fff4ff, 0x0582f5ff, 0xd7fff522, 0x0a95d618, 0x58000121, 0x022a058d, + 0x15000300, 0xfcff2900, 0x0184feff, 0x2d09e959, 0x010a000b, 0x0018006e, 0x001e001f, 0x1a190023, 0x022a1b0f, 0x48ff4400, 0x1b025902, 0x4619ab00, + 0x0124cf91, 0x000000e4, 0x2005b15b, 0x06b54104, 0x16000b22, 0xd5435d18, 0x46170021, 0xff232767, 0x82f5fff1, 0x03b41801, 0x00072c0b, 0x000e0008, + 0x0015000f, 0x821b0016, 0x00092247, 0xdb6d1809, 0x0000260a, 0xfff1ff00, 0x280182f0, 0xffe4fff1, 0xfff2fff3, 0x181182d2, 0x2012875d, 0x211383ff, + 0x5d18fff7, 0xff2120c7, 0x206f82ab, 0x43638208, 0x5d180d31, 0x0b20d56f, 0x22208b46, 0x82f6fff2, 0xfff92401, 0x82f2fff0, 0xfff52201, 0x240184f4, + 0xffebfff5, 0x831382f1, 0xfffb231b, 0x008500fb, 0x2205f943, 0x82020003, 0x00152201, 0xe7811829, 0x000a250a, 0xff60010a, 0x15b35d18, 0x5d180420, + 0x538225f3, 0xf3ff4628, 0x66031902, 0x496c0b00, 0x181b205c, 0x2216b76e, 0x8214009d, 0x958f1819, 0x16002144, 0x3c9d9018, 0x38002828, 0x48003700, + 0x47821700, 0x67181620, 0xfa211889, 0x3d8f1800, 0xf9ff2448, 0x18fff8ff, 0x25394590, 0xffe8ffd0, 0x008300e9, 0x83000221, 0xff522801, 0x030302f3, + 0x18130012, 0x2074c3f9, 0x2177820b, 0x5d6c003a, 0xfff62213, 0x2c0182f4, 0xffe7fff3, 0x00e6ffe6, 0x000b0074, 0x2001820a, 0xe5721808, 0x000a210c, + 0x520d4618, 0x12219182, 0x18018300, 0x22312d47, 0x82250013, 0x00322601, 0x003f0032, 0x20a9820d, 0x28596e0b, 0x0b994318, 0x47190420, 0x04230825, + 0x18000500, 0x2150cd45, 0x4618f9ff, 0xcd2236ed, 0x4318cdff, 0x07440fb1, 0x4f15200a, 0x0029491d, 0x001200b9, 0x000f0035, 0x2001821a, 0x2007840f, + 0x2605821b, 0xff2e0017, 0x82dfffed, 0xffec2601, 0xffc1ffe1, 0x2a0982ec, 0x00a600df, 0x00150017, 0x88140016, 0x00003001, 0xffdaff00, 0xffd7ffd6, + 0xff9dffd3, 0x82cfffd0, 0x00002210, 0x28018231, 0x002d0062, 0x002a0029, 0x21118326, 0x2182d9ff, 0xd4ffd622, 0x087f9418, 0x3749d820, 0x82132008, + 0x0027274b, 0x00380028, 0x6f180237, 0xf2202bfb, 0x4b185782, 0x072a098f, 0x20000a00, 0xe3ff4100, 0xe960f1ff, 0x00482806, 0x008f0048, 0x82470090, + 0x822a8207, 0xfff22217, 0x212383e3, 0x2b821300, 0x19055d4a, 0x43154f1c, 0x022107b5, 0x07af4300, 0x19001521, 0x2a5d9123, 0x001100a6, 0x00100035, + 0x821c001d, 0x11421809, 0x00172607, 0xffe9ff2e, 0x210182da, 0x5f18ffe8, 0xa7240953, 0x28002c00, 0x23200182, 0x0021d482, 0x05f173ff, 0xce18f720, + 0xee2208df, 0x0182ebff, 0xd5ffe826, 0xdfffdeff, 0xe8243582, 0xf4fff5ff, 0x00202983, 0x0f8b4918, 0x14001526, 0x13001200, 0x22820386, 0x08ab4a18, + 0xecffee22, 0x4a180182, 0xdb2009ab, 0x08374618, 0x2d821220, 0x24002526, 0x33003200, 0x6e086d43, 0x71202329, 0x0a225e82, 0x71820a00, 0x3c001e22, + 0xfa21ab82, 0x200183ff, 0x06f559fb, 0x9b18f920, 0x0e240897, 0x1a000e00, 0x1a11ed18, 0xfdfffd24, 0x0182f9ff, 0xd582f420, 0x4a18f120, 0xee24163f, + 0xdbffeeff, 0xcd240182, 0xbfffceff, 0x08374a18, 0x1582dc20, 0x47054f5b, 0x1720074b, 0x224b2361, 0x18007e01, 0x2015ff40, 0xff4018cf, 0x00cc2116, + 0x22093943, 0x439effd2, 0x30260a39, 0x17006200, 0x03821600, 0x14001522, 0x13210182, 0x051b4500, 0xd7ffda22, 0xd4240182, 0xc8ffb8ff, 0xd9200182, + 0x0a77ee18, 0x28094143, 0x00480038, 0x002a002c, 0x81701829, 0x002d210c, 0x131d5918, 0xd2ffea22, 0x09119d18, 0x0013fd25, 0x43490018, 0x45191a3d, + 0xf3200b09, 0x420e4543, 0xd026059d, 0xbcffbdff, 0x0182aaff, 0xbeffbd22, 0xfb46cf82, 0x00092309, 0x4b430009, 0xd9022106, 0x417cd782, 0x6e012156, + 0x2014f559, 0x208b82e8, 0x10f559f8, 0xef820820, 0x8200c521, 0xe1ff2f00, 0xd9ffd8ff, 0xd5ffd1ff, 0xdeffdfff, 0x0182e9ff, 0x240f3143, 0x00220021, + 0x22b7822b, 0x43150015, 0xed220e31, 0x0182ecff, 0x85ffed21, 0xffec2407, 0x82ceffbf, 0xffdb2101, 0x460b3143, 0x412809a7, 0x27002900, 0x7a022700, + 0x0a095918, 0xb3822e20, 0x2211656a, 0x4ad2ffe9, 0xfd290943, 0x001600a1, 0xffe3ff44, 0x06d944f2, 0x240f2543, 0x00260026, 0x2001821a, 0x06d5740d, + 0x22412543, 0x820a0000, 0x00022101, 0x20072b43, 0x8ba01815, 0x32012965, 0x46001800, 0x21001400, 0x14260182, 0xd1ffe9ff, 0xfb69f1ff, 0x22078805, + 0x82d2ffe9, 0x8220201f, 0x4aac201f, 0xc3469695, 0x13a51805, 0xfff1220b, 0x29c582e5, 0x001000f0, 0x001b001a, 0x3578000f, 0xffd92405, 0x4afbfcd9, + 0x002096a9, 0x2307af43, 0x15001203, 0x3575c362, 0x12002d01, 0x17003800, 0x27002600, 0xe8ff1700, 0xefffd2ff, 0x0182e4ff, 0x0788ef20, 0xd1ffe922, + 0x27201f82, 0x7a202182, 0x20bcb14a, 0x23e78221, 0x00210037, 0x2a058347, 0xffdbffdc, 0x001500eb, 0x82240025, 0xdb651805, 0xf5481809, 0xabb54a0b, + 0x0300002a, 0x00004500, 0x66032902, 0x2b20cf82, 0x214da16b, 0x3144de00, 0x7bff2929, 0x72002500, 0x3f005500, 0x29200182, 0x1ea79418, 0x83006521, + 0x000c2600, 0x002a0024, 0x24018222, 0x001a0019, 0xad541811, 0x83052008, 0xfbff211c, 0xf52c0182, 0xeefff5ff, 0xe6ffefff, 0xdeffe7ff, 0xd6220182, + 0xc54af0ff, 0x25014406, 0x4983ff20, 0x2a190382, 0x4222090b, 0x01825a00, 0x18004221, 0x190f9b94, 0x280d0b2a, 0xfffafff9, 0xfff4fff3, 0x240182eb, + 0xffe2ffe2, 0x240182d7, 0xffcdffcc, 0x830782d8, 0x2017830f, 0x79d118f3, 0x00032c0a, 0x02f3ff2e, 0x00dc0290, 0x182f000b, 0x25434976, 0x13000a02, + 0x4d823a00, 0x12001228, 0xdfff0a00, 0x9182beff, 0x9182f520, 0x01008e24, 0x01820300, 0x08190220, 0xe9221029, 0x0182daff, 0xceffcc24, 0x0182d9ff, + 0x6d48e220, 0x000f3c0a, 0x001d000e, 0x0027001e, 0x00320028, 0x00260034, 0x0008ff26, 0x00220000, 0x82440021, 0x82222001, 0x210e8209, 0x0182deff, + 0xbcffbc22, 0xde226d82, 0x10822b02, 0x13036918, 0xf582f720, 0xf54afd83, 0x02b72205, 0x82278324, 0x82342033, 0x07c3505b, 0x4d0f234a, 0x27830f6d, + 0x6600ec22, 0x33208b82, 0x3f643d84, 0x0034210f, 0x02211783, 0x5f971800, 0x001d2207, 0x453d5b43, 0xa3424782, 0xff002329, 0x9718fff0, 0xc342254b, + 0x84f58330, 0xa32c1903, 0x3397180d, 0x2fb74241, 0x3d00022a, 0x6802f3ff, 0x4300db02, 0x70d7ca18, 0xff507020, 0x00062206, 0x20018407, 0x0fdd6f05, + 0x00180024, 0xcd470047, 0x67b82005, 0x00240a0d, 0x8dffdaff, 0x00230f83, 0x84720027, 0xfff52217, 0x240182f1, 0xffecffed, 0x280182ea, 0xffceffe7, + 0xffd8ffd7, 0x0c0143e3, 0x1d000f22, 0x0ebdbe18, 0x19001b30, 0x15001600, 0xf2ff90ff, 0xf5fff6ff, 0x2519f8ff, 0x10201063, 0x19262182, 0x12002200, + 0x01820f00, 0x07510c20, 0x22ab8205, 0x18090011, 0x2008cd60, 0x223582f7, 0x82e7ffef, 0x54de2001, 0x1f8205cb, 0x2005cf65, 0x24098208, 0x00080009, + 0x0c31430a, 0xc5019722, 0x8b82b383, 0xe3602c20, 0xccff210d, 0xf122cb84, 0x0784d5ff, 0x93ffdc26, 0x10001300, 0x0a207782, 0x0a377318, 0x200b5943, + 0x087d4dc0, 0xc182ef20, 0xc382f320, 0x18fff621, 0x2607bd41, 0x00050005, 0x8206004b, 0x820a2039, 0x7f1a20b5, 0xcb4a18a1, 0xfff62407, 0x7ff4fff7, + 0x03221aa9, 0xa2180400, 0x4e200823, 0x1f20d782, 0x21218f43, 0x8182a800, 0xcb84e020, 0x2005bb64, 0xed9f18ba, 0x1587642e, 0x3c001423, 0x19008300, + 0x2821212f, 0xff3e0003, 0x022c02f3, 0x20af82bf, 0x1701193f, 0x8db02060, 0x020125ed, 0x19001800, 0x1b200182, 0xff27ac83, 0xffcfffca, 0x50d4ffd0, + 0xf4200a37, 0x19063750, 0x2013a30b, 0x242782d5, 0xffd8ffc9, 0x240182de, 0xffe3ffe2, 0x220182e9, 0x18f0fff0, 0x1808a75b, 0x200d7757, 0x22698218, + 0x1808ff17, 0x260c7757, 0x0022001c, 0x821a0021, 0x222b8301, 0x180a0009, 0x63186f57, 0x4f260f69, 0x07000500, 0x31820800, 0x3a001c28, 0xf3ffe5ff, + 0xc183f2ff, 0x820c0021, 0x18172001, 0x24142f57, 0x002f003b, 0x206f822e, 0x01281922, 0x82f72008, 0xffef22a9, 0xdd2619ef, 0xffdb2808, 0xffd6ffdb, + 0x18ceffc0, 0x280e2757, 0x01030002, 0x0026003d, 0x1801821d, 0x240badd6, 0xfff6fff6, 0x200182eb, 0x20fb82e4, 0x8c7d84db, 0x06c16a04, 0x6200022c, + 0x27020000, 0x13006a03, 0x8f422b00, 0x0cdf6021, 0xf2ffe524, 0xa582d3ff, 0xe7ffe826, 0xd5ffd8ff, 0xf920a984, 0x280ac760, 0x00490049, 0xfe280027, + 0x2eb34282, 0xa8836a20, 0x20147f62, 0x20cb82c8, 0x251d83e4, 0x1d001c00, 0x0984cefc, 0x2431cb42, 0x001f00e8, 0x8bb1186b, 0xb201258f, 0x0b001400, + 0x03280182, 0xd9ffecff, 0xf8fffcff, 0xf4240182, 0xeffff5ff, 0xeb220182, 0x4f18e9ff, 0xf92008c1, 0xfd201782, 0x2a081964, 0x00490027, 0x001c0024, + 0x18e4ff1c, 0x25087d52, 0x00190019, 0x33430018, 0xcb5a1805, 0x008422c1, 0x21cf8211, 0x7b4c0019, 0x6eef2005, 0xf820068f, 0x0c455919, 0x09000824, + 0x01820d00, 0x82001121, 0xbdff2400, 0x61ffdfff, 0x092805d1, 0x82fd0800, 0x02000100, 0x05220184, 0x93430800, 0x18f92008, 0x180e0d5d, 0x43b3db5a, + 0x662007bb, 0x357be118, 0x00610126, 0x00030008, 0x1399a618, 0xed54f820, 0x82002008, 0x00042800, 0x00080004, 0x4331ff18, 0x06202ec7, 0x06203b86, + 0xdf539f82, 0xfafc2122, 0x2036cf43, 0x205f82d9, 0x7079494f, 0x08005f22, 0x1812377e, 0x2019cf6d, 0xaacb4683, 0x03000327, 0x17000700, 0x23f95300, + 0xeb468320, 0x000128a8, 0x0247ff62, 0x4dbd0227, 0x02224709, 0x00820027, 0xfea8ff23, 0x180682f9, 0x821e65ac, 0x00502521, 0xfff0ffef, 0x0f4dd718, + 0x41610820, 0x6b4d180c, 0x20098309, 0x205f840b, 0x833582f1, 0xffe52203, 0x064748f2, 0x02000322, 0x2208d374, 0x8219000c, 0x28054725, 0x84f2fd21, + 0x0b236453, 0xf5fff526, 0xf0ffebff, 0x20083160, 0x822183fc, 0x13316003, 0x0b241b85, 0x15000a00, 0x2a14bb64, 0xff3e0002, 0x022c0247, 0x1865001b, + 0x2185ef4e, 0xc9822c02, 0xff210282, 0x23df82f1, 0xffe1ffe2, 0x222d174a, 0x8209000a, 0xff0928eb, 0xfff7fff4, 0x82fbfff8, 0xfffe2201, 0x224e82fe, + 0x82070000, 0x000e2401, 0x8216000f, 0x821c2001, 0x1ef96225, 0x02283384, 0x06000200, 0x08000500, 0x0b212f82, 0x20018300, 0x875d820c, 0x4a228209, + 0x00231de3, 0x841200aa, 0xf761188f, 0xd8ff2116, 0x2016bf4a, 0x216582f3, 0x634a0020, 0x00002539, 0xff010001, 0x22054b48, 0x82f5fff6, 0x055d4a01, + 0x83333342, 0x820a20fb, 0x000d248f, 0x760f000d, 0x032008ed, 0x0423b982, 0x4b000500, 0xb620212f, 0x4b20d34a, 0xb018140b, 0xaa180a63, 0x012934df, + 0x00170017, 0x00140048, 0x08f75720, 0xe6fff022, 0xf1240182, 0xe7fff0ff, 0xe8220784, 0x1f82d1ff, 0x21002124, 0x29475fff, 0x328d532d, 0x1828ef43, + 0x230cab65, 0x004d0015, 0x6c33fb18, 0x00220127, 0x00360012, 0x06215718, 0xd2ffe926, 0xe3ffefff, 0x23082157, 0xfff0ffe3, 0x41571382, 0x47a72006, + 0x6120a621, 0x2110d553, 0x1157ffeb, 0x477b2017, 0x0229a61d, 0xf3ff3300, 0x66032802, 0x66475b00, 0x252bd361, 0x120089ff, 0x01821a00, 0x2100212e, + 0x28002900, 0x3c002f00, 0x32003300, 0x00260b82, 0xcdff0000, 0x068266ff, 0x1b000024, 0x07835200, 0xffecff23, 0x240182e6, 0xffe1ffdf, 0x200182e7, + 0xed7918ee, 0xfff62608, 0xfffafff9, 0x190382fb, 0x220daf3e, 0x82250019, 0x00302601, 0x00160018, 0x22ff8217, 0x82140017, 0x84132005, 0xffd9224b, + 0x200182d4, 0x973e19d0, 0x00092212, 0x2b0b6208, 0xff9afd23, 0x289182d7, 0xffebffe0, 0xfff5ffea, 0x215d83f6, 0x01821100, 0x3e192420, 0xf12014bb, + 0x084b1c19, 0x05000624, 0x01820c00, 0x0f000e26, 0x13001200, 0x15260184, 0x20001a00, 0xb5821f00, 0x18004921, 0x320f4fb5, 0xfffcfffc, 0xfff6fff8, + 0xfff3fff2, 0x002100ef, 0x82190041, 0x840d203d, 0x054b62cd, 0x2007055f, 0x06d15fc7, 0x4c000328, 0x170231ff, 0xf5821203, 0x495b5520, 0xa4002175, + 0x0cb18118, 0x1d001022, 0x11210182, 0x67641800, 0xffe9240f, 0x82daffd9, 0x003a26a1, 0x002c002b, 0x2201821e, 0x830f000f, 0x000027d9, 0xc2ffebff, + 0x0184feff, 0x57fffd21, 0xcf2007c5, 0xd8242f82, 0xe3ffe2ff, 0x080f0e19, 0x06000724, 0x01820d00, 0x13001328, 0x19001800, 0x67821c00, 0x36002026, + 0x26002700, 0x4a84fd82, 0x82f7ff21, 0xfff02401, 0x82e5ffef, 0xffdc2401, 0x82d7ffdd, 0x05c35601, 0x28002b26, 0x94002900, 0xe7241b82, 0xdfffe8ff, + 0xe6240182, 0xeeffe7ff, 0xf7200182, 0x2406d141, 0x00090009, 0x20018212, 0x7c5b8219, 0x21200559, 0xff235483, 0x62f7fff8, 0xfc212b8d, 0x203582af, + 0x20db8210, 0x27e3821f, 0x002d002d, 0x01a3003b, 0x2205c755, 0x82edfff3, 0x82ef206f, 0x85142087, 0x2c0f84b1, 0xffdbffdb, 0xffcfffce, 0xffd8ffc2, + 0x22b382dc, 0x82e1ffe1, 0x82e920a1, 0x13e818a9, 0x00162609, 0xff2c0016, 0x22cd82eb, 0x82e2ffd6, 0xffee221f, 0x83cc18ec, 0x000a3208, 0xff16000a, + 0xffc7ffe3, 0xfff9fff3, 0xff4601fa, 0xdd6a18e6, 0x000c2408, 0x821a000d, 0x00252601, 0x002f0025, 0x20058231, 0x200d8225, 0x61471819, 0x82ce2008, + 0xff9d2279, 0x218182d0, 0x474400da, 0x005c2207, 0xb3fc1813, 0x26975278, 0x19edff21, 0x440cfd42, 0xe5261345, 0xe8ffe0ff, 0x9a18ebff, 0xf4200af7, + 0x08416e18, 0x44fffa21, 0x18200d45, 0x2af54219, 0xd4ffda22, 0xcf240182, 0xe1ffdcff, 0xe4226182, 0x6582e5ff, 0xedffe828, 0xf1ffecff, 0x8356f2ff, + 0x00fb2106, 0x14200083, 0x19fd4219, 0xa7750320, 0x51e22027, 0x6521081d, 0x25431900, 0x09694411, 0x04000422, 0x08222982, 0x01820e00, 0x12001224, + 0x01821600, 0x43191a20, 0x79443c1d, 0x05116509, 0xeefff422, 0x1806d154, 0x200dd1ba, 0x254319ab, 0x069f441c, 0x00e80225, 0x1877001f, 0x53a06dcc, + 0x00213ec7, 0x18d5443d, 0xf1fff430, 0xeefff0ff, 0xe9ffedff, 0xe6ffeaff, 0x2419cfff, 0xf2210ac5, 0x24008300, 0x000f000e, 0x2701821d, 0x00280027, + 0x001b0031, 0x0bf5fa18, 0x39190a20, 0xf9240eb5, 0xf8fffaff, 0x8308e544, 0x050f4455, 0x09ff4c18, 0xf3fff522, 0x16243384, 0x15001400, 0x0b200382, + 0x260e6b6b, 0x002c003a, 0x4413ff2c, 0x102218fd, 0x01820e00, 0x0c000d24, 0x01820b00, 0x10000922, 0x083f0219, 0x1f19f820, 0x454508c1, 0x53022008, + 0xfc213ee7, 0x182945fc, 0x015a1520, 0x67ed2010, 0x3145067f, 0xffc32205, 0x200182ce, 0x0a1165dc, 0x06000522, 0x0b22eb82, 0x01821100, 0xebff1626, + 0xeaffd7ff, 0xed253182, 0xf1fff2ff, 0x050144ff, 0x74093945, 0x0583057b, 0x8207c34c, 0xe3ff263d, 0xf9ffc7ff, 0x052971ff, 0x0826f018, 0x57000021, + 0x10250675, 0x28010f00, 0x07774800, 0x24115145, 0xfffdfffd, 0x263f82fa, 0xfff7fff7, 0x82e7fff3, 0xffda2499, 0x19d0ffcf, 0x2410f91f, 0x000c000d, + 0x08734500, 0x17006622, 0x64354819, 0x68007e21, 0xdb202d47, 0xa549a382, 0x58e02017, 0xe82006cd, 0x0a4d7118, 0xd5820b20, 0x18001923, 0x053b6d00, + 0x95491820, 0x07956f06, 0x50194c82, 0xeb20087b, 0x08b13319, 0xd8ffd828, 0xdfffdeff, 0x0182e6ff, 0x5b18ee20, 0x14240afd, 0x27001400, 0x37240182, + 0x46003800, 0x6805354a, 0x33243077, 0xe3004c00, 0xed22c384, 0x0784c5ff, 0x73ffd023, 0x093745ff, 0x12001230, 0x23002200, 0x36003500, 0x49004800, + 0xbe183700, 0x122008e1, 0x91492d84, 0xfff72205, 0x2b0182f3, 0x002100ed, 0x000d0041, 0x00090008, 0x0b3f6719, 0xf5fff429, 0xeaffebff, 0x19ffe1ff, + 0x680d454c, 0x11230fa7, 0x45001100, 0xd924070f, 0x5b001700, 0x7b75aa18, 0x82660121, 0x000321c7, 0x22284156, 0x8200e100, 0x0ca94900, 0x6f61ea20, + 0xffde2706, 0xffe4ffe3, 0x0547ffe7, 0x0b156205, 0x280fb149, 0x001d001d, 0x00360021, 0x0ab14925, 0x49074f44, 0xee2105b1, 0x07ed68ff, 0x6b82ea20, + 0x7282e620, 0x49000021, 0x262805b9, 0x3a007600, 0xb9fe3b00, 0x101f5e18, 0x63581220, 0x00432206, 0x825d8222, 0x44ff2032, 0xe72009a3, 0x6907e949, + 0xa8243015, 0x70017a00, 0xb549f384, 0x82f82011, 0xffef2461, 0x82e9ffef, 0xffe22af3, 0xffdcffe1, 0xffd6ffdd, 0x200782d7, 0x200d82dc, 0x491782e1, + 0xd72017bd, 0xe2201f82, 0x8344e382, 0x0002210b, 0x2007ff78, 0x09c5490b, 0x00217983, 0x2001823c, 0x24dd82ce, 0x00250026, 0x22018231, 0x49240025, + 0x241912bd, 0xf4200b55, 0x0c213784, 0x065b4400, 0x02f3fe27, 0x00cb0228, 0x81b51847, 0x28022157, 0x258d1f44, 0x12000dff, 0x03823700, 0x1d001d30, + 0xd9ff1100, 0xf8ffb0ff, 0xf1fff1ff, 0x07443900, 0xdefe228d, 0x26008300, 0x0033001e, 0x831e0032, 0xe2ff250a, 0xcdffceff, 0x24071f44, 0x0b000403, + 0x71175900, 0x8b820120, 0x08005a24, 0x01820f00, 0xe7ff092c, 0xefffcfff, 0xe3ffe3ff, 0xa1840401, 0x430ba54d, 0xf551adfb, 0x001f2605, 0x00320033, + 0x26cb841f, 0xffceffe1, 0x43a2fdcd, 0x4525c2e3, 0x24020000, 0x34175503, 0x2bffa318, 0x0095ff23, 0xc74e1919, 0x2b5f512b, 0x00fffc22, 0x53200083, + 0x2af34e19, 0x61000222, 0x0d20f782, 0x4120f784, 0x202efb60, 0x0c096100, 0x00290d86, 0x001200dc, 0x000f0034, 0x2001821a, 0x28078810, 0xff2e0017, + 0xffe0ffec, 0x200584df, 0x05a774c2, 0x1871ff21, 0x203ce766, 0x274f82eb, 0xffd5ffe0, 0xffd6ffc7, 0x0c5f2919, 0x18323341, 0x22376766, 0x820d001b, + 0x5f661801, 0x005f2209, 0x220c82bd, 0x8249ff00, 0x00022a05, 0x02000001, 0x00bd0267, 0x17001927, 0xf1501934, 0x11002318, 0x65843200, 0xcdfff022, + 0xe6220784, 0x0784b4ff, 0x31ffbb22, 0xe7200784, 0xef200f86, 0x2f821f85, 0x17823320, 0x22052b6b, 0x84cf0045, 0x83bb2023, 0x42038205, 0x82220f2d, + 0x15828501, 0x0875f718, 0x001a0023, 0x222f844f, 0x83b1ffe6, 0x230f8f07, 0xc6ffedff, 0x7e221f84, 0x1b8e1900, 0x23000122, 0x0d22ff82, 0x5c18db02, + 0x00213b9b, 0x14234261, 0x21001929, 0x15001c00, 0x18001400, 0x26170b69, 0xffd6ffd6, 0x82c6ffaa, 0xffd72205, 0x22a183e7, 0x84002c00, 0xd4ff23d9, + 0x05687bff, 0xfff1210c, 0x2205d952, 0x832f000f, 0x42038417, 0x24192f0f, 0x32220f99, 0x45416400, 0x000e220c, 0x2073842b, 0x069567f2, 0x20073541, + 0x2015826b, 0x252b8302, 0x66030302, 0x2f525b00, 0x59b81877, 0xc0ff21b7, 0x2efdc318, 0xb7f9b718, 0x00840020, 0x3c001422, 0xc4180784, 0x022a2155, + 0xfcff8600, 0xd4022202, 0xea183f00, 0x00216729, 0x2f4218c4, 0xb59d180a, 0x00082c09, 0x000f000a, 0x00040003, 0x84110007, 0x00122c01, 0x00130017, + 0x000c0012, 0x8206000d, 0xff003315, 0x00d6ffeb, 0xfffeff00, 0xfffbfffd, 0xfff9fffc, 0x9418fffa, 0xfc200973, 0xfb201182, 0xf1201182, 0x1b831d82, + 0xefffef24, 0x0182eeff, 0x0584e920, 0x9418f420, 0x0121096b, 0x39721887, 0x18502046, 0x2012196d, 0x209982fb, 0x506b82f7, 0xf1200595, 0x08170d19, + 0x09000922, 0x1122c982, 0x01821800, 0x0d016d18, 0xd318f720, 0x02220825, 0x01820100, 0x04000224, 0xef820300, 0x05820d20, 0x07820320, 0x07000f22, + 0x25190182, 0xee22094b, 0x0182e8ff, 0x0000e124, 0x7218acfd, 0x57444659, 0x37676b07, 0x5b43bc20, 0x1d676b2e, 0x2229b342, 0x690700b2, 0x00212f87, + 0x0e356b86, 0x0b429c20, 0x6d6d2046, 0xfd210d5b, 0x4e9b415b, 0x2833736a, 0xfff1ffd1, 0xfff8ffd4, 0x274d18e7, 0xffe82208, 0x06736afa, 0x28002726, + 0x49004800, 0x28220582, 0xbf4198fe, 0x35736a2e, 0x2229d741, 0x641f00e8, 0x01214775, 0x0a296a9f, 0xfdffd822, 0x2406296a, 0xffeffff4, 0x3d0719f0, + 0xfffa220c, 0x261d82f9, 0x00d8ffec, 0x82270006, 0x00482801, 0x001c0024, 0x4297001d, 0xb155461f, 0x89fd213e, 0x26464f42, 0xff640001, 0x65030247, + 0x03204ad7, 0x1cd35a19, 0x95003228, 0xf5fff1ff, 0x3719f4ff, 0x07240c29, 0x0e000800, 0x22060f64, 0x820a001b, 0x0947180d, 0x82f12011, 0xfff02237, + 0x0cc765e4, 0x6a000621, 0x0c240597, 0x68003500, 0xd9227784, 0x07838aff, 0x02280027, 0x0014006e, 0x2013843b, 0x2b5b19ec, 0xc4ff210f, 0x475cc765, + 0x022a0f6d, 0x4cff8600, 0xdb022402, 0x677b1700, 0x004c2166, 0x23135f69, 0xffd2ffe9, 0x22139d6a, 0x18910017, 0x2208c1b9, 0x82070005, 0x000a2401, + 0x4234001a, 0x142034e9, 0x1b243982, 0xf2ff2100, 0xf7286982, 0xfafffbff, 0xfdfffeff, 0x91824983, 0x2405e341, 0x00160015, 0x4d9c181b, 0x09ab670a, + 0x41fff021, 0xe52005e3, 0xf2203d82, 0x2f793419, 0x8441fd21, 0x84082061, 0x000b2259, 0x055d4d0b, 0x26342543, 0xfff3ffeb, 0x82fdfff4, 0x82f3208d, + 0x05b36509, 0xf6fff422, 0x200ae767, 0x194818fc, 0x0001220c, 0x19481802, 0x83dc1808, 0x000b2209, 0x0ca34b0a, 0xcb4d1720, 0x58012133, 0x9818d582, + 0xf8230ff9, 0x18ffe8ff, 0x22157740, 0x453cff19, 0x676c2ebb, 0x21c3453d, 0x4f4a0120, 0x180e2006, 0x212793f7, 0x77422202, 0x000c2134, 0x0e797f18, + 0x41fcff21, 0x7f1834fb, 0x00241151, 0x44000200, 0x26240482, 0x3500be02, 0x4191e618, 0x452c4b82, 0x1c00d100, 0x19001a00, 0x17001800, 0x1220a582, + 0x0e21bb82, 0x06d54900, 0x0020fd83, 0x09952519, 0xe9ffef2a, 0xe7ffeaff, 0xd0ffd2ff, 0xe0200182, 0x28221d84, 0x07827700, 0x01000122, 0x24082159, + 0xfff9fff9, 0x240182f7, 0xfff5fff4, 0x240182f3, 0xffa3fff2, 0x821d8347, 0x4f4c2063, 0x0b830bd9, 0x06200382, 0x0d246d82, 0x11000d00, 0x16220182, + 0x87841600, 0x22001a24, 0x01822c00, 0x5b003124, 0x01825e00, 0x37833e20, 0xff270387, 0xff0000ff, 0x83cbffe6, 0xafff270f, 0x87ff86ff, 0x4f1894ff, + 0xf6200823, 0xfa207b84, 0x0b7b5b18, 0x84e8ff21, 0x000024a3, 0x847f0180, 0x82812033, 0x00042805, 0x0237ff58, 0x82db0216, 0x002f22f5, 0x57135737, + 0x00670025, 0x43360012, 0xd0201637, 0x11af4318, 0x885e0121, 0x3311192f, 0xdf84180d, 0xa6fe2116, 0x08473119, 0xbbffe922, 0x5c28d782, 0x80002b00, + 0x20002a00, 0x16200182, 0xf9431b82, 0x23188205, 0x57ffc8ff, 0x00230682, 0x4f002100, 0x002e05d5, 0xe9ffeaff, 0xcbffd3ff, 0x000094ff, 0x1b846e02, + 0xe34c0020, 0x913a1906, 0x23318424, 0x00040003, 0x22c13a19, 0x8492fd21, 0x0184222d, 0x2307838a, 0xacfd7dff, 0x03820783, 0x0d000d30, 0x19001800, + 0x24002300, 0xb2002e00, 0x82186501, 0x8b280c5f, 0xc5ffa1fe, 0xe2ffe3ff, 0x002f1583, 0x00eeff00, 0xff360002, 0x034502f3, 0x7c130066, 0x01214359, + 0x0ae95313, 0x1c000f28, 0x11003800, 0xe6183500, 0xdf2410f5, 0x170073ff, 0x1928a784, 0x2b003c00, 0x1b002c00, 0x0ccf5c19, 0x25ffb722, 0x3022a184, + 0x05198f00, 0xfa220c83, 0x0182f6ff, 0xf2fff324, 0x0182edff, 0xccffe824, 0x0182cfff, 0x2384d220, 0xf5821a20, 0xe5531920, 0xffe4220e, 0x7d1b84c8, + 0xe9260bcf, 0xd9ffd9ff, 0x2419fcfc, 0x0e220a5f, 0xa9820d00, 0x2e001c28, 0x42002f00, 0x62199e00, 0xe02112c5, 0x053167ff, 0xf3ffee26, 0xf8fff4ff, + 0x0a016f18, 0x1300132a, 0xdbff2600, 0xf5ffb7ff, 0xf82a1582, 0x77000200, 0x140237ff, 0xf7820603, 0x31593219, 0x3582d520, 0x16003424, 0x8a184400, + 0xe72c1451, 0xe1ffd0ff, 0x200046ff, 0x29005f00, 0x20220582, 0x2b821700, 0x0b000b22, 0x0024e384, 0x45ffc1ff, 0x27200984, 0x26069f43, 0xffe9ff00, + 0x82d3ffea, 0x00b223ef, 0x82180200, 0xea20096f, 0x0a85fa18, 0x37002122, 0x0887a618, 0x5dfcd422, 0x00213f84, 0x2f454200, 0x00275e82, 0x0200ff45, + 0x82bd0264, 0x56352099, 0x00203733, 0x2009dd54, 0xc1631913, 0x00bc2248, 0x28e18212, 0x001e0011, 0xff12001d, 0x06b55ad8, 0xe986f020, 0x4cd96319, + 0x6d62fc20, 0x001f2405, 0x59330032, 0xcd22080b, 0x6b82ceff, 0x7100022a, 0x540200ff, 0x3100db02, 0x20426746, 0x113d1971, 0x5b992062, 0x1c2208ed, + 0xed5b1200, 0x82cc820a, 0x00352202, 0x293d199e, 0xdcfc2159, 0x00216182, 0x13474100, 0x5d000128, 0x3f020000, 0x85180e02, 0x5d2236d9, 0xf77d1800, + 0x19002005, 0x24154b3e, 0x0025001a, 0x062f4e4a, 0xd2ffe824, 0x0182d1ff, 0x3e19e220, 0x29260c4b, 0xdaff1b00, 0x2382b5ff, 0x3e19ec20, 0xd420084b, + 0x23055145, 0xb8ffe9ff, 0x0483b984, 0x22532141, 0x83910049, 0x7dff2d5a, 0x6c000200, 0x39020000, 0x0b006803, 0x1b559219, 0x13202582, 0x13cfc018, + 0x00eeff24, 0x66190173, 0xd3181269, 0xfc21174d, 0x0c6b54fc, 0x66199b20, 0x02280881, 0xfcff5000, 0x74030502, 0x27208782, 0x2329f743, 0x1400be00, + 0x232d9786, 0xe1ff1600, 0xedffc2ff, 0xe1ffe2ff, 0x07994c01, 0xd2ffb026, 0xe9ffeaff, 0x00247584, 0x4cffc5ff, 0x25210984, 0x07574700, 0x6f820c20, + 0xf9821620, 0x20002028, 0x27002900, 0x1f84f802, 0x18001721, 0x200fcdec, 0x0a294aed, 0x1e001d27, 0xb6003a00, 0x05d35001, 0xceffef22, 0xff233383, + 0x829afe89, 0xffdd266b, 0xffe7ffdd, 0xdb5d18e8, 0x00022808, 0x0200ff6c, 0x41bd0239, 0x4741205f, 0x93002114, 0x191c7544, 0x4410c967, 0x02221839, + 0x87825000, 0xdb020524, 0xdb821b00, 0x5d5b0020, 0x21139313, 0xdb840502, 0x41ffe521, 0xff212e47, 0x20b78213, 0x20038236, 0x062d451d, 0xf7ffb124, + 0x0182f1ff, 0x410b714b, 0xff212a47, 0x43878304, 0xbf4212c9, 0x385f4106, 0x1300d926, 0x0b003900, 0x1122a982, 0x44180b00, 0xf52008c1, 0x00216d84, + 0x105f4100, 0x46069b74, 0xdf250bed, 0xc9ffc9ff, 0x05bf4200, 0x5f414320, 0x06002167, 0xb7839b82, 0xb9821120, 0xdeff0b2a, 0xfaffbeff, 0xf6fff5ff, + 0x410cd14c, 0x02212a5f, 0x93f1842f, 0x196c20d7, 0x1808636a, 0x212637e4, 0x13446c00, 0xf5002115, 0x3723ab82, 0x18000800, 0x4e0feb4c, 0x928417ab, + 0x21118341, 0x1885f0fe, 0x19040021, 0x2c245f1c, 0x000200fc, 0x02fcff5a, 0x00db020f, 0x4b45191b, 0x009b2438, 0x4357001d, 0xd324080b, 0xeaffe9ff, + 0x00230d83, 0x44c4ff00, 0x6f200853, 0x00211185, 0x2001820b, 0x06534417, 0xf3864520, 0x18199f4f, 0x200c71e2, 0x051f45ff, 0x09e78d18, 0x1819c341, + 0x2607df8d, 0xfff3ffe8, 0x410201f3, 0x01222e13, 0xd741fbff, 0x95401806, 0x11dd412e, 0x00180023, 0x24018224, 0x00130023, 0x24018211, 0xfff8ff0d, + 0x280182f4, 0xffe2fff9, 0xffceffcf, 0x0c355ee3, 0xdcffeb2a, 0xebffddff, 0x0c000800, 0x08260182, 0x16000e00, 0x05821700, 0x03832483, 0x43181420, + 0x0f200a39, 0x18205982, 0x0c221d82, 0x2b840b00, 0x10000a22, 0x0a240182, 0xe0ffedff, 0xed240182, 0xc0006000, 0xa7265b84, 0xf2fff4fe, 0x0182e9ff, + 0xf6fff224, 0x0182f0ff, 0x0900f622, 0x09222b84, 0x2182a7ff, 0x26000128, 0x0502fcff, 0x5118db02, 0x19454bed, 0xffe9220a, 0x837382ef, 0xfffb22f3, + 0x836f82fa, 0xd1451902, 0x0613410e, 0xe3fff826, 0xcfffceff, 0x4606e547, 0xbf820e8d, 0xddffdd26, 0xeeffdfff, 0x23414f85, 0x001b2608, 0x002f0030, + 0x8256831b, 0x000c2603, 0x0017000b, 0x2001820d, 0x26e3840e, 0x00110012, 0x43270014, 0x90180cf9, 0x42240d1d, 0x09008200, 0x0b223582, 0x39820c00, + 0x18001722, 0x4b413782, 0xffdf260b, 0x005a00ed, 0x0ce14db4, 0x3cffbe26, 0xeafff1ff, 0xea269382, 0xf5fff4ff, 0xc182f6ff, 0x9784f620, 0x1300f62c, + 0x1f001e00, 0xd2ff1300, 0x9018a4ff, 0x00241a65, 0x46000200, 0x23220482, 0x7b826803, 0x212e6542, 0x65820b01, 0x16003a26, 0x24002300, 0x2408d747, + 0xffe2ffe1, 0xebdd1828, 0x1e97483d, 0x394bdd18, 0x2007eb62, 0x18b78212, 0x214091f8, 0xfd84f800, 0x1d001423, 0xbf9a1800, 0xffe82217, 0x200182e6, + 0x43bf6058, 0x0d054319, 0x28415918, 0xcb608920, 0x190f2044, 0x2c0c6545, 0x00020000, 0x0200ff46, 0x00bd0223, 0x30a75b1f, 0x1b424620, 0x9b00213d, + 0x84169768, 0x420020e8, 0x9349381b, 0x8261201a, 0x020d22eb, 0x3ceb4e1b, 0x4244c362, 0x00240d03, 0x00130083, 0x6907bd49, 0x09410ba1, 0x3fbf6205, + 0x210cf341, 0x548475fd, 0x4413a34d, 0x6622073f, 0xc6181500, 0x577c3917, 0x4243202c, 0x677c3d41, 0x38554232, 0x00000022, 0x20097344, 0x44735315, + 0x13000924, 0x53183700, 0xe922086d, 0x5318d1ff, 0xff21196d, 0x5879446f, 0x25095318, 0x7d447e20, 0x00022152, 0x02250082, 0x00db0266, 0x1171180b, + 0x0000283e, 0x003a0013, 0x824a0018, 0xff002450, 0x84a1ffe1, 0x00f42207, 0x0a354195, 0x09000824, 0x01821100, 0x19001922, 0x087b8f18, 0x62000d21, + 0x2f8306b5, 0x8f183f82, 0xeb240d7b, 0xdfffe0ff, 0x24089368, 0xfffeffe7, 0x280382fd, 0xffe5fffe, 0x010000c8, 0x223384c7, 0x8287002d, 0x84482037, + 0xffe8266f, 0xfdd3ffb8, 0x342941b2, 0x28003522, 0x1a200182, 0x20094d55, 0x154b19ff, 0x27768213, 0x37ff4a00, 0xcc021f02, 0x2b418d52, 0x1a000c01, + 0x29004d00, 0x1f002000, 0x20069154, 0x82bb840c, 0xd1ff2104, 0xa3280182, 0xd2ffc1ff, 0xe4ffd3ff, 0x2406ad44, 0xffe1ffff, 0x241c82c3, 0x00190000, + 0x0677494b, 0x0a000924, 0x01821300, 0xb9821b20, 0x1e002422, 0x17284782, 0x0e000f00, 0x07000800, 0xfa244b88, 0xf5fffbff, 0x1d700182, 0xffe52205, + 0xbb1219c8, 0x0fb15408, 0x3f01a028, 0x3d007b00, 0x3b833e00, 0x82e5ff21, 0x00cb2479, 0x821d0012, 0x84112001, 0xfd512211, 0x250783f2, 0x4a016e00, + 0xb7793000, 0xfff62410, 0x82ecfff7, 0xffe12c01, 0xffd6ffe0, 0xffc4fe62, 0x82e8ffdd, 0x72f22001, 0x002c0adb, 0x0100eeff, 0x37ff6100, 0x1b020d02, + 0x243e7542, 0x001900fb, 0x0a63584d, 0xd1550a20, 0x00002207, 0x0cb168ff, 0x200eed45, 0x2ccb4300, 0x22070d56, 0x41c3ffe1, 0x70231837, 0x6800e000, + 0xf5450fb5, 0x45fe200c, 0x494605f5, 0xff902223, 0x0e6b5820, 0x3a00032c, 0x2e02f3ff, 0x07004e03, 0xf5612300, 0xc5741847, 0x8f01210f, 0x4418dd82, + 0xd12407d3, 0xc1ffd0ff, 0xd1240182, 0xe1ffd1ff, 0x17820182, 0x00830020, 0x0f001024, 0x01821f00, 0x2f002e26, 0x7d003f00, 0x3f220382, 0x511898fe, + 0x112010a1, 0x2b057719, 0xe9640320, 0x22fe2d0e, 0x45005c00, 0x2e004400, 0x16002d00, 0x08230219, 0xd3ffea26, 0xbbffd2ff, 0xa4240182, 0xbcffa4ff, + 0xe6180782, 0x5a250b67, 0xdaff5b00, 0x67e61800, 0xff452a41, 0x022402f3, 0x000700be, 0x3c676b27, 0x0e217618, 0x00470124, 0x4e19001f, 0x0e2027fd, + 0x20066341, 0x2cff822d, 0x003b003a, 0xfe2d002c, 0x000000de, 0x24018224, 0x00480046, 0x82078223, 0xdcff270e, 0xb8ffddff, 0x0782baff, 0x7902dc22, + 0x200e5965, 0x2323828c, 0x00330033, 0x15ed4e19, 0x3982ee20, 0xccffdd28, 0xbcffcdff, 0x0784bdff, 0xe7184b83, 0x12220973, 0x5618f100, 0x93422007, + 0x005c2207, 0x20a38213, 0x29c1545b, 0xa0137553, 0xcd721813, 0x07896419, 0x27004929, 0xd5ff2800, 0x19001800, 0x7d8ae179, 0xe5202851, 0x8e1de018, + 0x08cb9518, 0x00e80225, 0x6a43001f, 0x012167f5, 0xb35018a4, 0xfff92210, 0x660182f4, 0xf5240b89, 0xf9fff3ff, 0x50180182, 0x002112b3, 0x2a674356, + 0x5bef9518, 0x203fc966, 0x158d18c6, 0x93e41886, 0x00692409, 0x1817000b, 0x215935ed, 0xeb18ac00, 0x162c0a7d, 0xc2ffe0ff, 0xe1ffeeff, 0x8e00e1ff, + 0x1695eb18, 0xad46d020, 0xee022275, 0x24008300, 0x00270017, 0x089b4626, 0xd9ffda22, 0x90067159, 0x59fe2117, 0x2076cd46, 0xbf971804, 0x820b2008, + 0x543720a7, 0x00394b09, 0x001100ac, 0x00140034, 0x00240023, 0xffe4ff14, 0xffefffc7, 0x00e2ffe2, 0x2017828e, 0x286d8232, 0x00270027, 0xffe3ff17, + 0x05b954c4, 0x43870021, 0xfd462a95, 0x3f491833, 0x9f7a1911, 0x0b5f4d0b, 0xfd211784, 0x5e1d47b7, 0x5f820220, 0x60020028, 0x3100bd02, 0x19474f00, + 0x60022251, 0x23008200, 0x76ffd2ff, 0x00230682, 0x73002900, 0xd7220581, 0x0f8485ff, 0x86002d22, 0xb6261f84, 0xdaff21ff, 0x0182e0ff, 0xe7ffe624, + 0x0182ecff, 0xf2fff02a, 0xf5fff4ff, 0xf9fff8ff, 0x08ed5418, 0x10001028, 0x0f001e00, 0x01821400, 0x19001834, 0x21002000, 0x65002700, 0xd3ff90ff, + 0xe1ffe2ff, 0x1019efff, 0xfc200871, 0x086db718, 0x02000330, 0x05000400, 0x07000600, 0x11000800, 0x41821f00, 0x0a002d24, 0x77841500, 0x0582f820, + 0x820bd556, 0x08d3580e, 0x9c003422, 0x0f820e83, 0x07843b20, 0xfcff0022, 0xf6248982, 0xf1fff6ff, 0xed209b82, 0xe724a382, 0xdfffe6ff, 0xd62e0182, + 0xccffd6ff, 0xbdff9fff, 0xd8ffbcff, 0x1f82edff, 0x4418f120, 0x50200cc7, 0x0e283f82, 0x1b000d00, 0x13000e00, 0x1a2a4f82, 0x23001a00, 0x2a002200, + 0x07842b00, 0x19821a20, 0x21851783, 0x2d820e20, 0xff230282, 0x826afe78, 0x00032c06, 0x02f3ff07, 0x001b025d, 0x189b0063, 0x23bad7d1, 0x00080004, + 0x0dff0319, 0x2500182a, 0x31002400, 0x11001400, 0x10200182, 0x2206a141, 0x82090008, 0x82072027, 0x23fc822d, 0xf2fff4ff, 0xf0230182, 0x18fff7ff, + 0x20095ff3, 0x220d82f7, 0x82ebffe4, 0x82f42001, 0xfffa221f, 0x832882f9, 0x45b91802, 0xffe02613, 0xffd3ffd5, 0x210182e0, 0xe618ffed, 0xf12a07cd, + 0xecffedff, 0xd1ffe9ff, 0x0182deff, 0xf6ffea22, 0xf9245b82, 0xfbfffaff, 0x08d34618, 0x0b000b28, 0x0a001500, 0x01820d00, 0x9b821020, 0x0d821420, + 0x17001828, 0x13001300, 0x7d829bff, 0xf9fff922, 0xfa202d82, 0x08b50f19, 0x795cff20, 0x00012106, 0x0bd17919, 0xc7860420, 0x2005dd57, 0x2247820d, + 0x820e000e, 0x840a2055, 0x00042217, 0x51b51805, 0x15041908, 0xffee240f, 0x82e6ffee, 0xfff624db, 0x83cd00f6, 0x220382da, 0x82050005, 0x0009223b, + 0x22018210, 0x84160015, 0x820a2007, 0x00052211, 0x861d8204, 0xffff2502, 0xcaff0000, 0x8f185782, 0x072009c3, 0x09266d82, 0xf0ffe1ff, 0x2484f1ff, + 0x1d820220, 0xa78e0520, 0xb9180620, 0xfd210c29, 0x1db518ff, 0x184f8209, 0x200889a0, 0x24258212, 0x0026001b, 0x06ed580d, 0xb9180a20, 0xf0202c11, + 0xdf208182, 0xec220382, 0xdb82ecff, 0xdfffe72a, 0xd8ffe0ff, 0xcbffb7ff, 0xe0200182, 0x08594418, 0x5718f820, 0x0424087b, 0x49000300, 0x0822db82, + 0xe5820800, 0x0e000a22, 0x14200182, 0x24063b50, 0x00240022, 0x2485821c, 0x00120013, 0x2017820f, 0x0633420a, 0x05190620, 0xf12012b9, 0x2406e761, + 0xffdeffdf, 0x207582d6, 0x247d82e6, 0xffedffee, 0x207382f2, 0x134519f6, 0x0003240a, 0x82f70002, 0x000f213f, 0x0935b918, 0x7b820920, 0xff21fe82, + 0x830182f8, 0xffe624bf, 0x82dcffe7, 0xfffa22a1, 0x052341fa, 0x032c1c82, 0x00004800, 0x68036802, 0x47000b00, 0x5e856e18, 0x7748d920, 0xffe12a0c, + 0xffeeffc1, 0xffe2ffe1, 0x07256a5c, 0x82180021, 0x0010228d, 0x2201820e, 0x190c000c, 0x2008f303, 0x260b820d, 0x0011000d, 0x821c001b, 0x00242205, + 0x22ff8248, 0x82e3ffe4, 0xfff222cd, 0x056742f5, 0xf6200782, 0x085b4119, 0x2400f222, 0x1d222982, 0x01821400, 0x2506a750, 0xf0ffefff, 0x0182dfff, + 0xd1ffd128, 0xbaffc3ff, 0x577a76ff, 0x001b2408, 0x82240050, 0x821b205b, 0x1813209d, 0x2608d1bf, 0xffdcffdc, 0x59dbffb9, 0x4a221ed3, 0x4782df00, + 0xff290282, 0xfffdfffe, 0xfffbfffc, 0x220182f8, 0x82f3fff3, 0x82ec20a1, 0x0b1b479f, 0x36002422, 0x2f220182, 0x97841a00, 0x0e000d22, 0x0a22df82, + 0x01840600, 0x04000525, 0x83000500, 0x00162ce7, 0x001d0016, 0x0026001e, 0x8225002f, 0x181a2097, 0x2009776b, 0xc3811900, 0x07d7410f, 0xe9ffe824, + 0xd582e0ff, 0xe2ffe122, 0x00248a82, 0x97000200, 0x24220482, 0xd1821203, 0x13473920, 0x820e203c, 0x823920ab, 0xb9d618a7, 0x001e2109, 0x121b9118, + 0x007fff25, 0x5e460017, 0x16260ca1, 0x22002100, 0x03822b00, 0x20002022, 0x1c82d182, 0xffe6ff23, 0x240182e2, 0xffddffde, 0x200182e3, 0x457f18e9, + 0x42fe2008, 0x6b54058d, 0x62022105, 0x00212a82, 0x778b1800, 0x82212009, 0x8315203f, 0xebff2113, 0x9018e582, 0x922009fb, 0x00271383, 0x00c40042, + 0x82240031, 0x181a2001, 0x2e0a2b4f, 0xfff6fff6, 0x001d00eb, 0x0010003b, 0x84090008, 0xfff8243d, 0x82f1fff9, 0x82ea2001, 0x00e52347, 0x97830013, + 0x19841320, 0x05827d20, 0x48000328, 0x680200ff, 0x3382bd02, 0x07434d20, 0x4248205e, 0x002299ef, 0x8968000e, 0x095b6305, 0xf1fff822, 0x21067b45, + 0xef420000, 0x5cfd2094, 0xe559052d, 0x00022a11, 0x0200ff72, 0x001b0224, 0x36896725, 0xd7429720, 0xdbff2149, 0x690a015c, 0xf72005e3, 0x420a5941, + 0xef5a44c7, 0x07e7451a, 0x15006624, 0x63505100, 0xea002667, 0x47001800, 0x77571800, 0xff222223, 0x99154371, 0x43327b5b, 0x00209429, 0x200b1b46, + 0x473a1915, 0x00242240, 0x0cd35b12, 0x1a1f5818, 0x438aff21, 0x45604949, 0x2bcb5b06, 0x29445d43, 0x46000200, 0x2502f3ff, 0xeb186803, 0xfd1876f7, + 0xd5201735, 0x0ae5fd18, 0xf5fff424, 0x0182e8ff, 0xd9ffda27, 0xe5ffcbff, 0x058919ff, 0xffe62409, 0x7df2fff3, 0x0b2408ff, 0x15000a00, 0x1b260182, + 0x23001c00, 0x01842f00, 0x82002e21, 0xccff2300, 0x0182d0ff, 0xdbffd528, 0xe0ffdfff, 0x4382e4ff, 0xebffeb28, 0xf1fff0ff, 0xab4cf8ff, 0x000b2406, + 0x8217000c, 0x00262401, 0x19340026, 0x2608d588, 0x001a0024, 0x820f0019, 0xcd881901, 0x82f62009, 0xffea2839, 0xffe2ffe3, 0x82cdffda, 0xffca228f, + 0x206282c9, 0x19338200, 0x240de9c0, 0x0030003e, 0x176b492f, 0x8223fd21, 0x00272659, 0x00330027, 0x20e98229, 0x2e678420, 0x00120012, 0x0006000b, + 0x00020001, 0x82070003, 0x000b21cd, 0x2005ef4c, 0x20d58210, 0x209d821d, 0x20898216, 0x20198210, 0x20d58408, 0x24fb82f2, 0x002000e5, 0x20378240, + 0x0611480a, 0xf9fff924, 0x0182f3ff, 0xeeffee24, 0x0182e9ff, 0xed82e420, 0xf782e120, 0xea24af83, 0xefffeaff, 0xf5200182, 0xff202382, 0xfd200082, + 0x08a33219, 0x2d82f220, 0xe8ffed22, 0x0817f118, 0x09956818, 0x11001128, 0xdeff2100, 0x3519bdff, 0xfe200c6f, 0x9b847f83, 0x6a000222, 0x089f7d18, + 0x78214019, 0x18fb0021, 0x2308a57d, 0x001d001d, 0x11bfbe18, 0xe7fff328, 0xe6ffe6ff, 0x1d82bc00, 0x11256319, 0xfd82ea20, 0xf1ffee24, 0xe382f2ff, + 0xfafff522, 0xfa220582, 0xe184fbff, 0x1e001e28, 0x16003d00, 0x01821500, 0x63821420, 0x83001421, 0x191a8201, 0x22082d63, 0x82d9ffcd, 0xffe52201, + 0x203d82e5, 0x281882f3, 0x00080000, 0x00110009, 0x26398212, 0x0029001d, 0x410c0006, 0xb44a06d3, 0x00212205, 0x22018218, 0x180e000e, 0x240c7140, + 0xffefffef, 0x240182e9, 0xffd6ffe1, 0x200182d1, 0x224984cc, 0x8219001b, 0x82162001, 0x8217207f, 0x00162203, 0x204f8233, 0x286f6428, 0x3382a820, + 0x2826bf83, 0x25003b00, 0x87822400, 0x04000222, 0x05220184, 0x07820300, 0x22059f4b, 0x820d0008, 0x00122201, 0x18dd8427, 0x220d4db2, 0x19f5fff9, + 0x24186d63, 0xffdaffe2, 0x20b182e3, 0x28b982e8, 0xfff4ffee, 0xfff9fff3, 0x651819fe, 0xffff2709, 0xf9ff0000, 0x0182f8ff, 0xf5fff622, 0xf2241d82, + 0xeefff0ff, 0x63190382, 0xf8221775, 0x0182faff, 0x0b253119, 0x0a000b22, 0x9f448e82, 0x00662407, 0x4b7d0015, 0x00203cf7, 0xa020255a, 0x19002021, + 0x222b2100, 0x841a0001, 0x001c2601, 0x0030003f, 0xb702192f, 0xd78d190c, 0x09d1441d, 0x44000a21, 0x1c2605d1, 0x25001c00, 0x01822e00, 0x03822f20, + 0x0000002c, 0xd1ffcdff, 0xd3ffd0ff, 0xd144dcff, 0x44ea2008, 0x182212d1, 0x37821800, 0xd1442520, 0x0014220a, 0x24018210, 0x000c000b, 0xa78d1909, + 0xffce221c, 0x200182cb, 0x206a82c8, 0x227b8200, 0x751b001b, 0xf1200ee1, 0x1ccb1c19, 0x240be575, 0x000d000d, 0x2c01821a, 0x00270026, 0x002a0033, + 0x00220021, 0x22978219, 0x82130012, 0x09ed4481, 0x44000b21, 0x112207ed, 0x73821500, 0x44001621, 0xfa2023ed, 0x2206ed44, 0x44e8ffef, 0xda2208ed, + 0x0182e2ff, 0x2007ed44, 0x08ed44f6, 0xfb219583, 0x200583ff, 0x191382fa, 0x441b938d, 0x00220ef5, 0xe7440000, 0x00152209, 0x7f87427f, 0x00000123, + 0x9f5c1897, 0x0011210c, 0x1805f744, 0x21159f5c, 0x3f440020, 0x00162405, 0x82280033, 0x001e2601, 0x000e001e, 0x21d5820f, 0x6a19ff00, 0xe626093b, + 0xf4ffddff, 0x0182e7ff, 0xedffed24, 0x0182f3ff, 0xf6fff722, 0x21089543, 0xd818fffd, 0x1e2809bf, 0x3d001f00, 0x29002a00, 0x27204b82, 0xd8224584, + 0x0182d6ff, 0x45ffd521, 0x0926110d, 0x12000900, 0x9f821300, 0x2d821c20, 0x220f0d45, 0x8218001f, 0x228b8301, 0x84080007, 0x188f8349, 0x26098552, + 0xffeaffec, 0x82e8ffe9, 0x20978305, 0x091545e5, 0x2bbb5c18, 0xff79fd22, 0x24097b56, 0x000a000b, 0x06194517, 0x1e002722, 0x18207d82, 0x11289f82, + 0x0c000d00, 0x02000700, 0x21061745, 0x23450004, 0x18032005, 0x2008d9a1, 0x201d8206, 0x45038408, 0x68190929, 0xec20198f, 0x20061f48, 0x21bb82e2, + 0xcf83ffe8, 0x20152145, 0x062145fa, 0xf2fff624, 0x2782f3ff, 0x2145ed20, 0x82042010, 0x00062491, 0x82090006, 0xff0d2401, 0x82c4ffe2, 0xfffa2e31, + 0x000100fa, 0x0247ff46, 0x00cb0225, 0x818d42df, 0x9e415945, 0xffb32841, 0xffeaffed, 0x49e7ffeb, 0xdc2208fd, 0x0d82e6ff, 0xf8fff222, 0x18072556, + 0x450819a6, 0x09220533, 0x01820c00, 0x0f000f24, 0x01821000, 0x17001322, 0x18200182, 0x0a220382, 0x01820b00, 0x03840c20, 0xa2190d20, 0x9319086b, + 0x2d4a150b, 0x00032219, 0x41e71803, 0x20678308, 0x24678210, 0x00130013, 0x20018216, 0x083d4a19, 0x15821120, 0x0d000f22, 0x0b200182, 0x0ae5ed18, + 0x04000322, 0x22086556, 0x84fdfffd, 0x052747bf, 0xe2ffea22, 0xdb220182, 0xe818f4ff, 0x777e08ad, 0x82e62005, 0xffe423f5, 0x008300e4, 0x0d204d83, + 0x081fca18, 0x18000d22, 0x1a226d82, 0x8f841e00, 0x05820420, 0x09d1a618, 0x19000321, 0x2053fb35, 0x23b182fe, 0xfffcfffc, 0x23064745, 0x1f002800, + 0x17230182, 0x19001000, 0x2a15bb94, 0xffeffff3, 0x007301ef, 0x82070008, 0x4a052001, 0xef450add, 0x18062005, 0x280a6142, 0x000a0009, 0x0015001c, + 0x204d8216, 0x22298207, 0x82040006, 0x93bc1901, 0x19f9200b, 0x230f0d42, 0x40002000, 0x05202382, 0xf9850382, 0x5f410583, 0x19f92009, 0x2a0ad53c, + 0xffe9ffe8, 0xffe4ffe5, 0x83ecffe0, 0xf1ff2593, 0xf3fff2ff, 0x20066f7f, 0xc39319f6, 0x20e78316, 0x834382fb, 0x48f82003, 0xf62408cf, 0xf4fff5ff, + 0xf0203982, 0xed6f3f84, 0xfff72105, 0x0b73cf18, 0x01000223, 0x24038300, 0x00030003, 0xdb931905, 0x41fb200c, 0xd2180639, 0x6119077f, 0xcd180a6d, + 0x0420649f, 0x08351a19, 0x09860620, 0x0c000c24, 0xf0181300, 0x9519084d, 0x0d220f6b, 0x01820b00, 0xcf820020, 0x47ff6a26, 0x1b020302, 0xd50ddd18, + 0xff780125, 0x46e4fff7, 0xf6220afb, 0xfb46f5ff, 0x4aff2008, 0xff2d05d7, 0x000000ff, 0x00080007, 0x0010000f, 0x22018217, 0x4c15001e, 0x39831219, + 0xf6200385, 0xf7245382, 0xeaffecff, 0x1908c546, 0x4c0ba53a, 0x23470931, 0x190a2005, 0x470e4154, 0xfe24212b, 0xfcfffeff, 0x08a34d18, 0xe9ffef27, + 0xe2ffe8ff, 0x058f42ff, 0xbf82f520, 0x0b84f520, 0xb1420985, 0xfff32205, 0x22c382ef, 0x820e0000, 0x4103836b, 0x0a2205dd, 0x01821600, 0x214cd183, + 0x07494305, 0x02000223, 0x55454400, 0x4405cf5a, 0xfb220547, 0x8747faff, 0x00142206, 0x4dca190e, 0x0a9f4810, 0x00290125, 0x82050001, 0x84042001, + 0xdd5e1803, 0x33701909, 0x2445830d, 0x0009000f, 0x4c2b840a, 0x042015d1, 0x0383d782, 0x0220e983, 0x04205582, 0x08335c19, 0xfefffd26, 0xfcfffbff, + 0x47069747, 0x8d830fc7, 0x09a97318, 0x5c054d6c, 0xff240669, 0xff0000ff, 0x210fcf47, 0x3183fff8, 0xf9210583, 0x203783ff, 0x202182f4, 0x209282fa, + 0x206f8200, 0x5b251901, 0x076f4108, 0x04000424, 0x01820600, 0xe2ff0824, 0x6745c4ff, 0x07294106, 0x9382ff20, 0x6383fe20, 0x29443d83, 0x84052068, + 0x078b458f, 0x0a000a24, 0x03820f00, 0x0d000d22, 0x0f260782, 0x12001100, 0x43491400, 0x0baf4d0e, 0x9948bd20, 0x000d26c0, 0x00470018, 0x5b851813, + 0x00212c20, 0x00980020, 0x00150019, 0x82100014, 0x1a0b4701, 0x10edff21, 0x2001cb08, 0x4e001f21, 0x8218096f, 0xfe212511, 0x1d311900, 0x0013210d, + 0x2015c746, 0x87081009, 0x03222201, 0xef4e0300, 0xa1b3180e, 0x0f0122b2, 0x059b7300, 0x26002725, 0x73ff1700, 0x1820179b, 0x26251d82, 0x15008900, + 0x05ef6200, 0x4f1c7f46, 0x2348101f, 0x001824f5, 0x58160017, 0x7b282caf, 0x09000500, 0x0c000800, 0x4f1e3b46, 0xcf4b097f, 0x00042205, 0x20398204, + 0x20038405, 0x08b96306, 0x2ce1df47, 0x00030002, 0xff180001, 0x02510247, 0xb59218bd, 0x51022349, 0xa01972ff, 0x07240e11, 0x09001400, 0x2810694d, + 0xfff0fff1, 0xfff4ffe1, 0x200184f7, 0x230582f8, 0x00f7fff6, 0x15280083, 0x15001600, 0x1d001700, 0x17200382, 0x0c21b819, 0xfcfffd28, 0xfdfffaff, + 0x6619feff, 0xf9220aad, 0x0719fbff, 0xfc200891, 0x1a206782, 0x00274283, 0x00af003b, 0x83bd0200, 0xecff230b, 0x0784c5ff, 0x2efe6422, 0xf3200784, + 0xf5227582, 0x0186f6ff, 0x18fff721, 0x500965b3, 0x02220520, 0x01820300, 0x37820420, 0x1b66d720, 0x0005240a, 0x820b0004, 0x000f2201, 0x66cf8210, + 0x0d200523, 0x214a1382, 0x00042205, 0x20018205, 0x21398507, 0x01820200, 0x6b830420, 0x019b0023, 0x280784d3, 0x00010014, 0x024fff42, 0x18938204, + 0x205b73c4, 0x22e18433, 0x82e3ffef, 0x84ef2001, 0xffdb220b, 0x23078390, 0x70002500, 0x002a0784, 0x06000700, 0x0c000d00, 0xc7821500, 0x05821d20, + 0xd5820a20, 0x09bb4519, 0x67051941, 0xf6200777, 0x25089141, 0x00170016, 0x2f55001e, 0x84072009, 0xfffd215d, 0x08eb6919, 0x00f7ff25, 0x8455002a, + 0xffe62615, 0xffecffb3, 0x200182f0, 0x06d159f5, 0xfbfffa22, 0x084f5218, 0x34000024, 0x27849d00, 0x0e02cc2a, 0x83002c00, 0xf4fffaff, 0xfa240182, + 0xa4ffd1ff, 0x240cef7e, 0xff29ffb8, 0x20c982da, 0x204d82e4, 0x222182ed, 0x82f9fff3, 0xffeb220d, 0x410b82eb, 0x052015b5, 0xb5411b82, 0x0005210d, + 0xb541df83, 0x820b2005, 0x820d20f5, 0x200783fb, 0x8317820b, 0x0011226c, 0x82068335, 0x00022803, 0x00060002, 0x82080004, 0x000c2c01, 0x0010000b, + 0x0014000f, 0x82bf0060, 0x0000241b, 0x84320011, 0x00022c07, 0x02000018, 0x00660351, 0x4a250015, 0x0820287b, 0x8f183582, 0x0e20273f, 0x2208cf5f, + 0x83af003b, 0x0d514373, 0x4232535f, 0x3b200985, 0x11434f84, 0x280d8208, 0xff420002, 0x030402fe, 0x3f5f7917, 0x00780127, 0x003a0013, 0xb545180a, + 0xfff9240a, 0x6bf5fff6, 0xe62706e9, 0xe2ffb3ff, 0x19ffecff, 0x420d2f64, 0xff210a0b, 0x22bb4263, 0xa5820a20, 0x1600152c, 0x25002400, 0x26003300, + 0x33836502, 0x00210023, 0x20018238, 0x273f8421, 0xffc8ffdf, 0x0078fdc8, 0x2209d741, 0x82060005, 0x000c2635, 0x00150014, 0x10cf411d, 0x221f7f42, + 0x82deffd0, 0xffed2201, 0x43cb82ed, 0x0022050d, 0x03420100, 0x0f9e1905, 0x02012125, 0x2208cf41, 0x84640021, 0xffde22a3, 0x4407839d, 0x002005a5, + 0x1043a519, 0x86dfff21, 0x0021221f, 0x83278463, 0x00442204, 0x820683cb, 0x843c20c5, 0x410f8907, 0xbc220dd3, 0x511935ff, 0xbd200cb5, 0x01200d82, + 0x8205e341, 0x423d20af, 0x002028b1, 0x21152d55, 0xe1430402, 0x13cd4108, 0x56001d22, 0xe3221f84, 0x0783aaff, 0x4109e943, 0xff2021dd, 0x43863387, + 0xed413f82, 0xfeff210e, 0x2218d541, 0x824a0025, 0x0000222f, 0x06a54310, 0x52001c22, 0xb5430f84, 0x05e54107, 0xf6fff628, 0xd0fffaff, 0x6544a1ff, + 0xffe4220c, 0x220f84ae, 0x84cefff0, 0xffe42207, 0x412382ad, 0x022a0ff5, 0xf3ff4a00, 0x66031f02, 0x1a194700, 0x0724b83d, 0x09000600, 0x092e0384, + 0x0e000b00, 0x03000400, 0x0c000700, 0x15820a00, 0x093de618, 0x12001724, 0x15821100, 0x29820d20, 0x19000621, 0x2219d536, 0x82f7fff9, 0xfff52201, + 0xe5cc18f1, 0x2417850e, 0xffe8fff6, 0x220182ee, 0x61f4fff4, 0x1526063b, 0x1400ef00, 0x5d841300, 0x0d001124, 0x7b820e00, 0x02208183, 0x2008a750, + 0x23008300, 0xb4ffe6ff, 0x03830783, 0x18ffff21, 0x221283ce, 0x82f5fff9, 0xfff02201, 0x9f0f19f0, 0xfff2210e, 0x2005df41, 0x208f84f9, 0x9f0f19fe, + 0x00042124, 0xf7490183, 0x19102009, 0x2e08bb96, 0x00190019, 0x001a001b, 0x03170017, 0x82010000, 0x000b2201, 0x20018208, 0xe7241906, 0x7b221910, + 0xfffb2107, 0x8306595e, 0x82bd8379, 0x000622df, 0x83e7820f, 0x841720f3, 0xff002211, 0x51a582fd, 0xf92005a7, 0x2208776e, 0x82030003, 0x8407202b, + 0x09155a65, 0x0f840320, 0xff253682, 0xfffafff9, 0x280182f2, 0xffeeffed, 0xfd0000e8, 0x22838200, 0x820a000a, 0x000e2259, 0x22018213, 0x180c0019, + 0x5408bf74, 0x90220533, 0x38822001, 0x89ff0026, 0xe7ff9bfe, 0xed203582, 0xfa207582, 0x20081556, 0x237983fd, 0xf5fff3ff, 0x8b830182, 0x2d83b782, + 0x86040021, 0x00082287, 0x69c01809, 0x19678308, 0x221301a8, 0x82e9ffe8, 0x18ee2057, 0x490883a1, 0xf822094f, 0x5b82f8ff, 0x5b850f83, 0x5d82ae82, + 0x28050553, 0x02f3ff61, 0x00d3020d, 0x917d183f, 0xe3c7186d, 0x0006240e, 0x8207000a, 0x820920e3, 0x860e2007, 0x001123f5, 0x03830012, 0x05841820, + 0x62180c20, 0xf7180aa9, 0xfd22131d, 0x0182fcff, 0xb557fd20, 0xa9621806, 0x42ef200d, 0x012211f9, 0x554a000d, 0xa5991905, 0x18002010, 0x24097fbe, + 0xffe7ffe8, 0xd9be19df, 0x77be180c, 0x002b2c11, 0x0054002b, 0x0029003b, 0x184f022a, 0x217db562, 0xbe1800fe, 0x09242abf, 0x11000800, 0x1a220182, + 0xbe181a00, 0x83190eb7, 0x0021082b, 0x21018217, 0x67450000, 0x004e2207, 0x686d6907, 0x210e097d, 0xa744f400, 0x0ea57eb6, 0x44c4fc21, 0xb122be27, + 0x7f6c0700, 0x0ed14136, 0x43120121, 0x6c21527f, 0x20008300, 0x69b21811, 0x43af2008, 0x5c225c0f, 0x76181300, 0x962064e7, 0x218fb118, 0xff05002d, + 0x002300ec, 0x000a0010, 0x8206000b, 0x00032401, 0x47030004, 0xc34706c5, 0xfdff2514, 0xf6fff5ff, 0x2408af47, 0xffebffe6, 0x220182ee, 0x82f2fff3, + 0xfff52617, 0xfff9fffa, 0x057b58fb, 0x22083b47, 0x48e7ff00, 0x03200807, 0x08225d82, 0x6d820900, 0x75820c20, 0x12001028, 0x18001300, 0x03821600, + 0x03821920, 0x83001b21, 0x82162005, 0x2117820f, 0x8f185c03, 0xb1181443, 0x00250cc3, 0xfc000039, 0x065f58cd, 0xe6191020, 0x19220ad7, 0xaf191a00, + 0x5f611635, 0x82f52005, 0x19fb20ad, 0x2208093b, 0x82070003, 0x820820fb, 0x820a2005, 0x820a209b, 0x180d209d, 0x2008e744, 0x2daf199f, 0xffca240a, + 0x82d9ffda, 0x82e720f1, 0x05f362ff, 0xf6fff624, 0x9e18f8ff, 0xdd820947, 0x45820420, 0x3d820720, 0x02000a23, 0x05234700, 0xe382e820, 0x2140ad4b, + 0x65829901, 0xe8ffe824, 0x0182d5ff, 0x0782e720, 0xecfffb24, 0xb118d9ff, 0x00210d71, 0x24138205, 0x001500f9, 0x236d183e, 0x0a97460b, 0xe7ffe724, + 0x9746e0ff, 0xfff22108, 0x130fc518, 0x26059746, 0x0029003a, 0x4319002a, 0x0224056b, 0xffddffe8, 0x09af4118, 0x23001122, 0x8e185f84, 0x222809a7, + 0x43002100, 0x18fd0000, 0x00201783, 0x1dffc418, 0x18053f46, 0x4613f7c4, 0x2e200d3f, 0x82058343, 0x4b032051, 0x7e2606af, 0x4f002f00, 0xf74cab00, + 0x150d4d3f, 0x7f2415d8, 0x0c001000, 0x09220182, 0x615c0900, 0xfffb2408, 0x82f7fffb, 0xfff42201, 0x28e582f3, 0xffeefff1, 0xffecffef, 0x220582ed, + 0x82f0ffef, 0xfff42201, 0x201d82f4, 0x856a18f6, 0x00042408, 0x820a0004, 0x820d203f, 0x00102a47, 0x0012000f, 0x00130011, 0x22058214, 0x1993ff12, + 0x241015fb, 0x000e000b, 0x2075820d, 0x20078410, 0x1939820b, 0x200f4f58, 0xa33d19f3, 0x00f22208, 0xb5214785, 0x448d0221, 0x0e200645, 0x2008b363, + 0x21f38612, 0x6f41000f, 0x19082005, 0x240cdfce, 0xfff7fff8, 0x200182f4, 0x24fb86f1, 0xffedffee, 0x830182f0, 0xfff4220f, 0x181d82f5, 0x200d9391, + 0x0a7d5645, 0x51820d20, 0x2105a979, 0x00820006, 0xfffaff25, 0x82f6fffb, 0x84f32001, 0xfff1224f, 0x200182f3, 0x0c8741f6, 0x40fd0622, 0x22b6b147, + 0x44030000, 0x032605b7, 0x002f0038, 0x1919004f, 0x01257c9d, 0x000f0082, 0x083d430d, 0x82000421, 0xfcff2100, 0x20183d43, 0x143d43ee, 0x3d430520, + 0x430c2006, 0x1220083d, 0x200e3d43, 0x255682fa, 0x00060000, 0x556a0005, 0x099f780b, 0x0f55fa18, 0xeffff322, 0xf3246982, 0xa000f3ff, 0x22528d48, + 0x82080048, 0x820b20a9, 0x000e26f9, 0x00100011, 0x20018212, 0x22078210, 0x420e000f, 0xd38308d9, 0x42070b41, 0xf22207d9, 0x1119f1ff, 0xf02008b5, + 0x0f83a182, 0xf4fff522, 0x0cfb1f19, 0xd9423783, 0x84102009, 0x000a224f, 0x83fb840a, 0xfffb244f, 0x82f6fffa, 0x05994401, 0x82fff221, 0x47ff20e3, + 0xfc20052b, 0x00261e82, 0x05000500, 0x1d49d5fd, 0x07e34552, 0x0b006624, 0x73181700, 0x44187849, 0x35202f15, 0x19b63b45, 0x22169d20, 0x8300e8ff, + 0x00182100, 0x0fb52019, 0x50052f5f, 0xcb44b1a5, 0x00052409, 0x1817000b, 0x2046ddc5, 0x8f4418ac, 0x4452202e, 0x54215223, 0x18008300, 0x21106b44, + 0x1795dfff, 0x43dafd21, 0x012952b3, 0x3eff4a00, 0xbd021f02, 0xefef1800, 0xb9012188, 0x0482ff84, 0x22706f54, 0x820f000d, 0x49112001, 0x15230699, + 0x54fff2ff, 0x2d5b05c3, 0x00082209, 0x24238407, 0x00150015, 0x7d6d181c, 0x00072208, 0x8786190a, 0x45f02008, 0xeb6706c1, 0x00022409, 0x82050001, + 0x00082601, 0x000b0008, 0x22018212, 0x44100011, 0x02212575, 0x783354bd, 0xf8fff522, 0x085d5f19, 0xfffffb2c, 0xf3fff0ff, 0xf4fff2ff, 0x0382f5ff, + 0xec200583, 0x45181182, 0x7b47075f, 0x05af5d05, 0x03000024, 0x03820200, 0x29001522, 0x0941d618, 0x820a0021, 0x00152601, 0x00090007, 0x7f651908, + 0x000f2408, 0x82040000, 0x49052029, 0x012a2665, 0x46ff6100, 0x0c025802, 0x3f4c5500, 0x82e32058, 0x21951893, 0x000c240b, 0x4dfeff00, 0x21541689, + 0x1800212e, 0x00274783, 0xff1a0009, 0x19f5fff1, 0x8408cf6e, 0x1800205d, 0x842ec3b8, 0xb9bb1891, 0xffff2112, 0x2124b94d, 0xf9530011, 0x182e201f, + 0x2208a56c, 0x82f2fff0, 0xc9bb1801, 0xa5971809, 0x00022519, 0x00020003, 0x220df741, 0x820a000b, 0x82002011, 0x82002017, 0x03682204, 0x200d8266, + 0x58bd415f, 0x82420020, 0x00012105, 0x2c118018, 0x1700c024, 0x1b194800, 0x1228086f, 0x13001200, 0x0d000c00, 0x12200784, 0x2406e343, 0x001f0007, + 0x22138240, 0x82140015, 0x29d58301, 0xff070009, 0xffbeffe0, 0x6149fff8, 0x09236a05, 0xf9fff822, 0xc7491582, 0xfff52705, 0xffbaffdd, 0x0d83fff5, + 0x1582f120, 0x1b82f920, 0xfbfffa24, 0x0182faff, 0xf3fff922, 0xf7200184, 0xb7504783, 0x820b2006, 0x7563825d, 0xff212c79, 0x22008300, 0x8224001b, + 0x00282401, 0x824d0049, 0xff332401, 0x82b3ffcd, 0xffb72401, 0x82dcffd8, 0x83e52001, 0x19002022, 0x2213f1bd, 0x8297ffbb, 0xff9b2401, 0x82cfffc9, + 0x00db2601, 0x00200019, 0x26498221, 0x00450043, 0x832e0046, 0xd2ff2337, 0xc582bbff, 0x7976be20, 0x00e72406, 0x82310025, 0x00372601, 0x00680065, + 0x82278269, 0x19238224, 0x210b0d4a, 0xef410002, 0x41062005, 0xe21866ef, 0xff222a43, 0x981900d7, 0xfa243bdb, 0xf8fff7ff, 0xef220382, 0x0182eeff, + 0xfbfff424, 0x0182f9ff, 0xf2fff824, 0x0182f1ff, 0xe6fff624, 0x1386cbff, 0x0f82f920, 0xf6231583, 0x83fff4ff, 0xffef222d, 0x203982f6, 0x242d82f8, + 0x00c3ffe2, 0x06a74c09, 0x18001727, 0x55021800, 0x22008300, 0x19250015, 0x2208bd12, 0x48ebffdb, 0x8a201607, 0x13201784, 0x36079919, 0xdcffe42a, + 0xd8ffdbff, 0xb2ffb4ff, 0xcc220182, 0x7f821200, 0x1a001726, 0x32003000, 0xb55f0182, 0xffee2405, 0x82e8ffe9, 0xffd022c9, 0x210182ce, 0xe11900df, + 0xde21134b, 0x879a19ff, 0x9f22190b, 0x675b1809, 0x2bbf4344, 0x19510021, 0x4351b7be, 0x2219327f, 0x022a4dd1, 0x37ff3400, 0x06034102, 0xbb181500, + 0x00217303, 0x0e6b789b, 0x1d001c24, 0xe5181000, 0xcf240e93, 0xdaffe8ff, 0xaa260182, 0x37001300, 0xa9821900, 0x23821520, 0x2207b152, 0x86070006, + 0x000a2801, 0x000d000b, 0x82040005, 0x00022103, 0x0f234119, 0x06000322, 0xcf181782, 0x6f436f05, 0xc1fc222a, 0x20008500, 0x24a98205, 0x00090009, + 0x20cd820e, 0x20078212, 0x1807820d, 0x20099d5c, 0x20e5820d, 0x85f1820a, 0x832b83f7, 0x00092209, 0x24258208, 0x0011000c, 0x45501917, 0x2152830d, + 0xd318e5ff, 0x03205811, 0x082f2619, 0x2f001722, 0x5e074818, 0x5e79d118, 0x4377ff21, 0x032551df, 0x00000007, 0x18018204, 0x1809d5d0, 0x240d21f3, + 0xffeafff9, 0xe37418d4, 0xa6002011, 0x5efc202f, 0x1344052b, 0x0037264f, 0x03310200, 0x2b661866, 0xe4002531, 0x39001400, 0x0e2b6618, 0xe1ffe224, + 0xc31940ff, 0xc0183d1d, 0xfe21185b, 0x22008300, 0x833c0014, 0x19002006, 0x223135c3, 0x82650002, 0x030824eb, 0x18130007, 0x20388f6a, 0x203b8219, + 0xc7bf1839, 0xfff72214, 0x240182f4, 0xffe7fff2, 0x200382e6, 0x559c193b, 0x5602213d, 0x2669de18, 0x27849520, 0x397d9c19, 0x41000221, 0x172007ff, + 0x3b695c18, 0x005a0126, 0x00040008, 0x180def42, 0x24175f6c, 0xff190007, 0x3d23420d, 0x2feb9218, 0x0e83a718, 0x22383b42, 0x4100cd02, 0x58203d27, + 0x202e2741, 0x3e47423d, 0x00006e22, 0x0869d518, 0x17aba818, 0xb319d320, 0x30820c55, 0x4f420020, 0x18152043, 0x32393b66, 0x1700ee00, 0x14004800, + 0x20002100, 0xe9ff1400, 0x18ffd1ff, 0x201993a2, 0x3d49425d, 0x44326b6b, 0x00213981, 0x09834400, 0x723a1f41, 0xff212b95, 0x3e41426d, 0x18058944, + 0x240d514a, 0xffdcffdb, 0x06a36bea, 0x18001521, 0x200927b9, 0x200a8289, 0x3a3d4200, 0x0100002a, 0x81ff7100, 0xdb023702, 0x2b2d7318, 0x181b0121, + 0x280a4963, 0x00040005, 0x0005000a, 0x24038206, 0x00080009, 0x2201820b, 0x4e23000e, 0xe52c0651, 0xd4ffadff, 0xdeffdfff, 0xeaffebff, 0x2309ef6b, + 0x81ffd5ff, 0x2a24bb84, 0x00008000, 0xaf280b86, 0x19000d02, 0x10001100, 0x7c194f84, 0x2d820e8d, 0x36001222, 0x02820582, 0x82f6ff21, 0xffeb2601, + 0xffe1ffec, 0x225d82e0, 0x6ae7fff4, 0x6d200c7d, 0x01260d82, 0x37ff0000, 0xd7825802, 0x237c375b, 0x0d00f600, 0x0b22cd82, 0x01820900, 0xf9180720, + 0x04220885, 0x11840500, 0x11820a20, 0x83003621, 0xff0026af, 0x008effdb, 0x200f8204, 0x831b8207, 0x000a221d, 0x086b530e, 0x0b000a22, 0x0d204582, + 0x06201d84, 0x05204584, 0x04202582, 0x49830982, 0x31840620, 0x3d820420, 0xff20f882, 0x22058f50, 0x82f4fff5, 0x82f42009, 0xffda2205, 0x200182e1, + 0x200982e8, 0x06bb4ef6, 0xfafffb2c, 0xf8fffcff, 0xddfff0ff, 0x32829aff, 0x1f000028, 0xf5ff5f00, 0x1182efff, 0xf9fff122, 0xf6220982, 0x7419f1ff, + 0x43830809, 0xfa200383, 0x39833582, 0x49052351, 0x4118051b, 0x0e20098f, 0x0d28ad82, 0x24003000, 0x6eff2400, 0x1324f382, 0x17001300, 0x1a240182, + 0x1d001b00, 0x1a280b82, 0x1c001a00, 0x37003600, 0x25200382, 0x10207384, 0x2608576c, 0x00290029, 0x821e0025, 0x0016222d, 0x20f3820f, 0x06ff6205, + 0xdf460220, 0x05bf6205, 0x08c96a19, 0xab72ff20, 0x06b37206, 0x34205782, 0x2d42f982, 0x19022005, 0x200c8380, 0x20c982e8, 0x06655ef2, 0xedffed28, + 0xccffebff, 0x976c98ff, 0xffc3220c, 0x260182a5, 0xffdcffaf, 0x19e6ffe5, 0x7c0cb5e9, 0x8583095d, 0x61840320, 0x23820420, 0xfaffcd26, 0xfcfffdff, + 0xfe200382, 0x8205d956, 0x000e234f, 0x2582000e, 0x02f3ff27, 0x00dc0254, 0xd7841841, 0x18022065, 0x240b51fb, 0xfff6fff5, 0x219982e9, 0xb752fff8, + 0x82f72005, 0xfff52e0f, 0xffd6ffe2, 0xffc9ffd5, 0xffd1ffc1, 0x180d82d0, 0x2809b958, 0x0010000f, 0x001e001f, 0x2401822f, 0x007d003f, 0x8201823f, + 0x263d82c8, 0x00f1fff8, 0x820a0009, 0x00092203, 0x19258216, 0x190d8b6e, 0x2a09214e, 0xfffdffff, 0xffc9feea, 0x82e4ffda, 0xffef2201, 0x823b83ef, + 0x00002242, 0x24018208, 0x00110011, 0x2201821c, 0x84260026, 0x18112007, 0x8212b39d, 0xdc022137, 0x20067151, 0x0a6164f2, 0x02000124, 0x01820300, + 0x04000526, 0x22000700, 0x11204982, 0xdf825783, 0x6618ea20, 0x00251f0b, 0x004100b6, 0x20018235, 0x41c71929, 0x0007240a, 0x820e0008, 0x00132401, + 0x841b0014, 0x5409209d, 0x08260627, 0x00000a00, 0x5d8263fd, 0x2120af83, 0x38476618, 0x1000022a, 0x5902f3ff, 0x43001b02, 0x57c78118, 0x820c0221, + 0x07e143b9, 0xf5fff528, 0xf7ffeaff, 0x0384f6ff, 0xceffe22c, 0xb9ffcdff, 0xd3ffc6ff, 0x6718d4ff, 0x0f200cb5, 0x0c516618, 0x2d003a26, 0x1f002c00, + 0x0cd9ec18, 0xfafffe23, 0x75558300, 0x0a280571, 0x11001600, 0x0b001000, 0x230a875e, 0xff0000ff, 0xfe300083, 0xfdfffeff, 0x39feeaff, 0x24000000, + 0x47002300, 0x07830182, 0xff230e82, 0x82dcffdd, 0x83b9207f, 0x17022307, 0x0182f1ff, 0x0382f220, 0x09f7d718, 0x83000221, 0x0035245f, 0x821b001a, + 0xff00222e, 0x200182ee, 0x182d82dd, 0x201b8966, 0xab5f1823, 0x001c2208, 0x20018219, 0x0b7b6e16, 0x07244582, 0x0e000700, 0x14220182, 0x57821400, + 0x09000824, 0x01820800, 0x09000722, 0x0a240182, 0xf0fe0000, 0x1ec96618, 0x0200022a, 0x66020000, 0x2900bd02, 0x43536e18, 0x4e8e0021, 0x1d2208df, + 0x51825800, 0x19003021, 0x280dfbde, 0xfff0fff0, 0xffdfffe0, 0x2a0182d1, 0xffb8ffc1, 0xffecff6e, 0x82eeffed, 0x65df2015, 0x002808d1, 0x42001600, + 0x0d000000, 0x1a200182, 0x65200782, 0x00220382, 0x4f821d00, 0x5a182420, 0x0b200813, 0x21056375, 0x0182f6ff, 0x4382ec20, 0xe6ffe526, 0xd9ffdcff, + 0xdf192984, 0x3422190b, 0x01822700, 0x0ae56c18, 0xff292f83, 0xfffcfffd, 0xfff1fff9, 0x200182e5, 0x208b82da, 0x231583dc, 0x18003100, 0x0024cb82, + 0xc8ff30ff, 0xc6208d82, 0x516d1384, 0x82e2200d, 0xffe822c9, 0x17cd19e8, 0x0001280c, 0x02f3ff04, 0x19dd0264, 0x2487c311, 0x07001802, 0x0d314300, + 0x0a2b7319, 0xffe7ff23, 0x18d986b5, 0x420855a1, 0xff2608e7, 0xfafffeff, 0x0182f4ff, 0xf0fff022, 0xed24e582, 0xeaffebff, 0xee220782, 0x0182f1ff, + 0x200e3d7c, 0x9f861800, 0xffe72209, 0x1a5385b3, 0x21145306, 0x55520006, 0x000a2b05, 0x0012000f, 0x00150013, 0x11710016, 0x00192205, 0x22018218, + 0x84140016, 0x00112417, 0x820d0010, 0x82082001, 0x000322bd, 0x20018402, 0x85518200, 0x8207205a, 0x820720d5, 0x834b8349, 0x82172051, 0x0010222d, + 0x2001820b, 0x516f1905, 0x82c88208, 0x06b14395, 0xffdd0223, 0x200182f2, 0x430382f1, 0x01200991, 0x04245582, 0x2f001700, 0x9d5c5483, 0xfff32178, + 0x8313d170, 0x1d8971dd, 0xc8006522, 0x0a218319, 0x1144ed84, 0x0015220c, 0x0ae7451a, 0x0b820820, 0x1f820a20, 0x0100002c, 0xf3ff1300, 0x17025502, + 0xbd5a4d00, 0x8302204f, 0x0d6d4265, 0xf5fff622, 0xf220df82, 0x2412775c, 0xffeffff0, 0x280182e7, 0xffe5ffdf, 0xffebffea, 0x200182f3, 0x517918f9, + 0xe9ff2307, 0x3383baff, 0x99700382, 0x1800220a, 0x07755500, 0x37001c22, 0x00261b82, 0x0f001100, 0x03821000, 0x4512a547, 0x93450db3, 0x00032814, + 0x00060003, 0x833b001e, 0x21ef184b, 0x27617016, 0x2106216a, 0x4b83f1ff, 0x015e0024, 0x9318ff1b, 0xa74509b7, 0x73a4181e, 0x1815200a, 0x1862e3d9, + 0x212a73c9, 0xa0180a01, 0x374f8d4d, 0x38fd212b, 0x8d61a018, 0x18000021, 0x25084ba0, 0x00150012, 0x56180059, 0x01287871, 0x0012001e, 0x00170037, + 0x075f4218, 0x7dffd221, 0xf02005d9, 0x08037618, 0xd2ffe922, 0x26241f82, 0x10012700, 0xc469a018, 0x210d4950, 0xc918ffdc, 0xa0201571, 0xbe7da018, + 0x04000430, 0x5802dfff, 0x0b006803, 0x65004700, 0xe1458900, 0x3b976e4f, 0x18a16119, 0x8d602e20, 0x00122e06, 0x002c001f, 0x003b002d, 0x002f0040, + 0x220d8230, 0x8210001e, 0x00002401, 0x1afeff00, 0x22080722, 0x19f5fff8, 0x2218ed4c, 0x82d5ffe4, 0xffc52601, 0xffc2ff84, 0x253682c1, 0x00030000, + 0x434d0002, 0xbd4c1905, 0x77511814, 0x00022408, 0x82040001, 0x05774701, 0x796b0720, 0x0015280c, 0x00130017, 0x820e0012, 0x000a2801, 0xff06000a, + 0x1968ffac, 0x20189d4c, 0x7a498203, 0x01200779, 0x4c198383, 0xef2c0e8d, 0xe5ffe4ff, 0xd3ffdaff, 0xe1ffe1ff, 0x17615b18, 0x19dbfc21, 0x20089d4c, + 0x8bd318da, 0x00162808, 0x002e0016, 0x8244002d, 0x005b2801, 0x00230027, 0x821e0022, 0x00192201, 0x219f8219, 0x4c190014, 0x26221575, 0x1d821400, + 0xff218882, 0x260182a4, 0xffdbff4a, 0x83deffdf, 0xe8ff257b, 0xefffe9ff, 0x10454c19, 0x18001022, 0x23244f82, 0x25002b00, 0x1f220182, 0x0f841f00, + 0x49001321, 0x0a20058f, 0x0c354c19, 0x09bbce19, 0x8fffed24, 0x3382d0fe, 0x21002125, 0x19001a00, 0x260f254c, 0xfff2fff6, 0x82f0fff3, 0xffed2201, + 0x267782ec, 0xffdcffd4, 0x82e6ffdd, 0xffeb2201, 0x0cfd4beb, 0xad821420, 0x0400002a, 0xd3ff1800, 0x12034b02, 0x4b23b982, 0x19006f00, 0x1992f51f, + 0x2127b905, 0xfb1847ff, 0x1c22086d, 0x01822800, 0x3b003224, 0xfb182c00, 0xf5240e5d, 0xebfff5ff, 0x1855fb18, 0xd8ffe32a, 0xceffd9ff, 0xd3ffc6ff, + 0xfb180182, 0x0a240b3d, 0x14000a00, 0x222dfb18, 0x09000a24, 0x51421300, 0x00232106, 0x0b49ae18, 0xfb184182, 0xff211525, 0x0dfb18ff, 0x0003241a, + 0x84010002, 0x05e14203, 0xf7fff622, 0xee228582, 0x0182e5ff, 0xe0ffdc26, 0xe7ffe7ff, 0x28e95b18, 0x8f825c20, 0x18001926, 0xe4ff1600, 0x08d9c518, + 0x11001134, 0x24002300, 0x34003300, 0x3a004400, 0x2d002c00, 0x13821f00, 0x1515fb18, 0x0c001b25, 0x82000d00, 0xeeff2100, 0xdd240182, 0xcdffddff, + 0xbd260182, 0xd3ffc9ff, 0x0d82d4ff, 0xfa18ee20, 0x11240eed, 0x0f000e00, 0xad530382, 0x000d2205, 0x206b822e, 0xc5a91823, 0xfffd230c, 0x0e19fffe, + 0xfa180993, 0xa52115e5, 0xcdfa1800, 0x83f22017, 0x200382c7, 0x280784f3, 0xffd0fff2, 0xffdcffdb, 0x4b2a1ae6, 0x000b2e0a, 0x0002000b, 0x0201ff46, + 0x00cb0225, 0x73176163, 0x18e30121, 0x29c5a360, 0x12000aff, 0x11003800, 0x8f181d00, 0xf72608a9, 0xf1fff1ff, 0x60182700, 0xfe22c5a3, 0x008300f4, + 0x90181f20, 0x022c101d, 0x01ff6a00, 0x1b020302, 0x6d006100, 0x2070e747, 0x8b6018c8, 0x22ff21c1, 0x20163942, 0x7b60181f, 0xf9fe21c1, 0x20163542, + 0x9b4b1800, 0x4237200a, 0x67203a35, 0x17634618, 0x00080027, 0x000c0019, 0x24018209, 0x00040005, 0x052f6b03, 0xfff0ff29, 0xffdffff1, 0x86f6fff7, + 0x82f82001, 0x24a3850b, 0x00160016, 0x24038215, 0x001e003c, 0x25b5831d, 0xfcfffdff, 0x0182faff, 0xf1202b83, 0x06244182, 0x6e020000, 0x00201983, + 0x0fbf9d18, 0x07794b18, 0xff18f020, 0xf720085b, 0x635b5783, 0xd7181a0a, 0x794b180c, 0x8214200e, 0x002a224f, 0x20ad820d, 0x2005840c, 0x2005820d, + 0x2067840f, 0x2805829b, 0xff420001, 0x0204024e, 0x58cd56bd, 0xed840420, 0x4618cc20, 0x461821c1, 0x102a08b1, 0x1a001900, 0x0b002100, 0x01820700, + 0x05000524, 0x5f410100, 0xfff12406, 0x41e0fff0, 0xf7200a5f, 0x21088958, 0x61410016, 0x003c2205, 0x1801821e, 0x260d5156, 0x00f4fff7, 0x18410020, + 0x231c7947, 0x00cb0134, 0x0ded4618, 0x19534b18, 0xdeffd022, 0xed220182, 0x8982f1ff, 0xfcfff722, 0xf5210782, 0x05f175ff, 0x20059359, 0xabbd18eb, + 0x114d1808, 0xffeb210d, 0x0b5b4b18, 0x22059741, 0x1a0c000c, 0x47081f2a, 0x471806df, 0x602218a5, 0xc383bf00, 0x0001002b, 0x01510294, 0x000203d4, + 0x18db4215, 0xeeff5928, 0xe9ffc8ff, 0x0182daff, 0x1800e824, 0x55822e00, 0x1c001c22, 0xad590582, 0xaf0d1905, 0x8247820a, 0xdfff2156, 0xc9202f82, + 0x6a06cb72, 0x372215d7, 0x7ba33800, 0x00940025, 0x82260018, 0x00172401, 0x4f310019, 0x85180a7f, 0x0321127b, 0x21778c02, 0x63830021, 0x8e822120, + 0xebff0023, 0x0f095fff, 0x98000129, 0xd1016d02, 0x1800f402, 0x202305d1, 0x05f11898, 0x82242008, 0x001c22f7, 0x777c1814, 0xf402252d, 0xdeffbcff, + 0x24060f41, 0x00080008, 0x24018211, 0x0019001a, 0x2a9d8422, 0xfff2ffee, 0xfff7fff3, 0x19fcfff8, 0x20087b78, 0x26258204, 0x000d0009, 0x8312000e, + 0x01002b23, 0x7a020101, 0xd9026701, 0xa7411700, 0x01002218, 0x14b56610, 0x30001822, 0xf5634d82, 0x204d8212, 0x27361900, 0x82d22008, 0xfffd213b, + 0x0b6d8f18, 0xc9180320, 0x022a1283, 0x4b02ab00, 0x4d03bd01, 0xff581f00, 0x96012743, 0xe7ffecff, 0xb518e8ff, 0x9619087d, 0x0a220dab, 0x01821400, + 0x19001827, 0x1d001c00, 0x20078300, 0xdff71914, 0xffc1220e, 0xb17a19f6, 0xfff5220c, 0x735918f5, 0x00062408, 0x820b0006, 0x000c2401, 0x8210000d, + 0x000f2201, 0x218b190e, 0xfffb260c, 0x002803fa, 0x19138212, 0x2209d534, 0x82eeffee, 0x0133198d, 0x19132019, 0x210d4133, 0x7f8284ff, 0xb541fa20, + 0x82062008, 0x000a214b, 0x2a213319, 0x00010029, 0x0147ffd2, 0x6600008c, 0x082038e9, 0xf620ff82, 0xf9208582, 0x240abf41, 0x00070007, 0x28f5820f, + 0x00170017, 0x0006001f, 0x21018208, 0x01870009, 0x2b826c82, 0x44fff921, 0x05830561, 0x4818f720, 0x02221225, 0x39820300, 0x3b840520, 0xecff0c26, + 0xf2ff0000, 0xf3200182, 0xf3222982, 0x0182f4ff, 0xe9fff623, 0x7fc718ff, 0x00002511, 0x00000002, 0x09e5e918, 0xfefffc24, 0x0382fdff, 0x4218ff20, + 0xa35d084d, 0x82062005, 0x000822a1, 0x5b5d820b, 0x35410579, 0x054b4605, 0x8f000128, 0xd9016702, 0x7b18ec02, 0x0121530d, 0x06074132, 0x27091341, + 0x00120017, 0x000d0011, 0x154f1819, 0xf9fff924, 0x4819f6ff, 0x1d5908e3, 0x20058705, 0x714b18fd, 0xfff82210, 0x220184f7, 0x19eeffe9, 0x230ca9e6, + 0x002a0015, 0x13f71819, 0x83000421, 0x82052001, 0x82062005, 0x0004287f, 0xff840203, 0x60fbfff8, 0xff20062d, 0x84057f74, 0x821120b1, 0x001825a5, + 0x00200018, 0xff210082, 0xeb1719ed, 0x605d8310, 0x694e05c7, 0x00022105, 0x0d200183, 0x03265982, 0x08000600, 0x05820500, 0x99410320, 0x83418306, + 0x82ef20a7, 0xffe824a5, 0x82e0ffe8, 0x00002410, 0x820d0014, 0x84092083, 0x0569472b, 0x2009c15d, 0x249382fc, 0xfffcfff3, 0x282982fd, 0x02ac0002, + 0x030b0251, 0xb3971802, 0x6001291d, 0xc0ffebff, 0xe2ffefff, 0xee240182, 0x2e001700, 0x23286182, 0xbf002400, 0xbdffeaff, 0xe028c182, 0xedffe0ff, + 0x2d001600, 0x27221b82, 0x3b462700, 0x0bc34512, 0x850b5346, 0xfe012617, 0xff510223, 0x20378212, 0x15134513, 0x00c6fe25, 0x82390013, 0x05eb6981, + 0xf4fff222, 0x14c94c19, 0x51021e22, 0x9c19d582, 0x0c200fb3, 0x2f821383, 0xf1fff122, 0xe1244182, 0xdfffdfff, 0x01221182, 0x738285fe, 0x739a7520, + 0x4919d220, 0x0e220c99, 0x39820b00, 0xf7ffbd22, 0x0b3dea18, 0x00efff23, 0x2073821a, 0x239d1915, 0x726f920c, 0x01280605, 0x670227fe, 0xec0271ff, + 0x3fed7018, 0x000fff22, 0x2207eb42, 0x1807000d, 0x220cfdad, 0x72fbfffe, 0xf62206b9, 0xad82faff, 0xf6fff72a, 0xfcfff2ff, 0xf9fffdff, 0xee20fd82, + 0xd3420384, 0x45f22007, 0x15220661, 0x43192900, 0x04220801, 0x4f820800, 0x79640920, 0x00052208, 0x22018209, 0x82110006, 0x02122401, 0x19000067, + 0x420c4b1b, 0x042117c3, 0x20378300, 0x06b3420d, 0x4d820e20, 0x0d256818, 0xe7ffe722, 0x2018ab42, 0x20bf82fc, 0x220382f7, 0x82f8fff8, 0x82f22005, + 0x00f92c05, 0xfe010000, 0xff530264, 0x822f0333, 0x475118ab, 0x13a15516, 0x8264fe21, 0x8200203b, 0x001326bb, 0x00150014, 0x7b1f191e, 0xfffa240c, + 0x82f2fff4, 0x84ef2001, 0x00122223, 0x20078438, 0xa351190d, 0x84c58308, 0xfeff3712, 0xe3ffe2ff, 0xe9ffc6ff, 0xeaffebff, 0xf0ff2403, 0x0800d2ff, + 0xdf820300, 0xff201f82, 0x20058f61, 0x83a982f3, 0x82f420b1, 0xfff92607, 0xffeffffa, 0x241c82de, 0x000a0000, 0x202b821f, 0x2207820a, 0x510c000c, + 0x0220067b, 0x28203b82, 0x08936e18, 0xfdfffd22, 0x9828df82, 0xfffe3dff, 0x07009eff, 0x21090343, 0x9a19fffe, 0x098209ed, 0x3dff1926, 0x48001900, + 0xe8221384, 0x0783b7ff, 0xa0190020, 0xad532003, 0x2a3b4327, 0x7900032c, 0xe2017002, 0x13007a03, 0x8a182b00, 0xf3204897, 0x180ce96d, 0x21110b70, + 0xfd43fff2, 0x00cc2205, 0x59991808, 0xcda41814, 0x07002512, 0x1d011800, 0x04202f82, 0x2005a941, 0x19008200, 0x211fc385, 0x4344ca02, 0x00202608, + 0x0011001f, 0x4301820f, 0xe02211d3, 0x278291ff, 0x03000322, 0x16246382, 0x06002e00, 0x8d6d6182, 0xfffa220d, 0x29b619e9, 0x282fa716, 0x00e2ff03, + 0x02560200, 0x23fc18bd, 0x2f00214d, 0x20144f6f, 0x0fd944f6, 0x187f0021, 0x1a13d5f6, 0x25256d10, 0x2300e4ff, 0xf6189500, 0x022721b9, 0x0016000d, + 0x41210020, 0x4d190869, 0xf0240993, 0xe0fff0ff, 0xea240184, 0xf3fd0000, 0x39f30019, 0x00abff25, 0x18030100, 0x282289f6, 0x008fff02, 0x02680200, + 0xc3da18bd, 0x21398231, 0x7c180014, 0x5741159d, 0x0401260c, 0x53017100, 0x23008200, 0xf8fea9ff, 0x00240682, 0xf5005200, 0xae210f84, 0x22fb84ff, + 0x83015600, 0xff00240e, 0x82b4fe91, 0x840d208d, 0x817c180c, 0xfff52313, 0x2341fff1, 0xddfd2108, 0x180cab71, 0x22218fdd, 0x826cff02, 0xb460205d, + 0x006c22eb, 0x20eb8813, 0xa50e1910, 0xfff7240c, 0x82f3fff4, 0xffe72401, 0x82e6ffe6, 0x001a22eb, 0x2297844c, 0x84cf0046, 0x85192007, 0x874c180f, + 0xbbff2307, 0xfb8430ff, 0xb3ffe722, 0xb918ebb0, 0x0a1a0f73, 0x02221995, 0x5d8290ff, 0xebb44420, 0x14009022, 0x1421eb82, 0x2da51900, 0x0b00260a, + 0xbeffdfff, 0x0dd741ff, 0x67000524, 0xcb843701, 0x8bffd922, 0x00230783, 0x84750027, 0xfe98210f, 0x87055144, 0x201f840f, 0x05d74102, 0x4120fb42, + 0xac180ed7, 0x032c2163, 0xf3ffa7ff, 0xcb024c02, 0x2f001b00, 0x2353774b, 0x00004c02, 0x08c9dd19, 0xd1ffd022, 0x082f9018, 0xe1ffe222, 0xf0201782, + 0x0029f383, 0x0010000f, 0x001e001f, 0x065f6a30, 0x3f003e24, 0x75185bfd, 0x0b2412eb, 0xbeffdeff, 0x26085349, 0xffe7ffe6, 0x182c01e6, 0x21145790, + 0x4b6a001b, 0xdaff211e, 0xe5250182, 0x5e01e4ff, 0x47901800, 0xffbc2119, 0x15af7619, 0x5b005a23, 0x056d6701, 0x21209141, 0x276a5ffe, 0x00002238, + 0x24018211, 0xff020000, 0x26048216, 0x00c30264, 0x4a8d0079, 0xcb4815f1, 0x2113e613, 0xb5430003, 0x25a48207, 0x04000200, 0x011a0300, 0x0b200ca1, + 0x2006894f, 0x2017860e, 0x220f820c, 0x820c000d, 0x7a072001, 0x0520082d, 0x20060f47, 0x853f8202, 0x830020e0, 0xf9ff2900, 0xf1fff8ff, 0xeffff0ff, + 0xec220182, 0x0d82fcff, 0x0582fc20, 0xfafffc2a, 0xe7ffe5ff, 0xeaffe8ff, 0x22066767, 0x84f6fff0, 0x82eb2027, 0x82e5200f, 0x82de201b, 0xfff72129, + 0x20054355, 0x240782f8, 0xfff3fff9, 0x200182f5, 0x215583f8, 0x018a0500, 0xaf820420, 0x09a1ba19, 0x4905bb4a, 0x0b2207d1, 0x01820a00, 0x09000722, + 0x0520cf84, 0x9f852982, 0x13fe0022, 0x8425d144, 0x0000246d, 0x82e5004c, 0x05bb552f, 0x17001622, 0x2006c555, 0x24138214, 0x00120012, 0x2001820d, + 0x18e38209, 0x830fcb4c, 0x7f70186b, 0x82072009, 0x860620b3, 0x82062087, 0x67132089, 0x6b850fc7, 0x8b68ff20, 0x82f02005, 0xffe7244f, 0x82dbffe7, + 0x00d02801, 0x00250032, 0x82190024, 0x820f2001, 0x5c062035, 0x32830891, 0x04830120, 0x82feff21, 0xfffd2537, 0x00cbffe6, 0x01200f83, 0x1a830586, + 0x19820020, 0x0979011a, 0xfafffd22, 0x08f95918, 0xedffec26, 0xeaffe9ff, 0xe9220382, 0x8b41e8ff, 0xffea2406, 0x4642019a, 0x25822581, 0xa1ff022a, + 0x5a020000, 0x1300ae02, 0x8273d75b, 0x0013237d, 0x3019003a, 0x00230cbb, 0x19dfff14, 0x20100d39, 0x20258289, 0x22af82ae, 0x18ebff00, 0x24085170, + 0xfff6fff6, 0x0a7553f8, 0x0c000b24, 0x01821600, 0x1e001f27, 0x26002700, 0x20078300, 0x830f8217, 0x09754f17, 0xe9ffef22, 0xe3200182, 0x00201082, + 0xad205382, 0xe1225384, 0x2d82a3ff, 0x0e203b83, 0x0a2d7a18, 0xf7fff824, 0x0182f0ff, 0xe2242f83, 0xddffe2ff, 0xd8220182, 0x0784d8ff, 0xe3ffe224, + 0x8551e8ff, 0xfff82106, 0x2205d342, 0x82070007, 0x840e203d, 0xff1e2383, 0xaf82ffd7, 0x41fe0121, 0x20240e89, 0x15002100, 0xf4227384, 0xdd4ef1ff, + 0xffe02406, 0x83edfddf, 0x14002713, 0x0b003d00, 0x01821100, 0x17001624, 0x01821900, 0x1c001d22, 0x2024c784, 0x2c003900, 0x20080b6e, 0x8341840f, + 0xffe1243f, 0x82d4ffe1, 0xffc72401, 0x82d3ffce, 0x82d92007, 0xffe5279f, 0xffefffe4, 0xc346ffe5, 0x83538305, 0x821f202e, 0x00202279, 0x26018222, + 0x00270027, 0x8231002b, 0x002a2603, 0x00240025, 0x2063821b, 0x0edb5313, 0xedffed22, 0xe52a4582, 0xdbffdcff, 0xd5ffd6ff, 0x5d82cfff, 0xdaffd924, + 0x0182deff, 0xe0ffe024, 0x8184e1ff, 0x0400ec2a, 0xfcff7900, 0x7903e701, 0x2b243f82, 0x67004300, 0x20691b45, 0x867d4c00, 0x00590022, 0x2e05514e, + 0xffefffdf, 0xfff2fff1, 0xfff7fff6, 0x19f9fffa, 0x230df544, 0x6bffceff, 0x00242682, 0x4f001a00, 0x00220784, 0x01820a00, 0x1500152c, 0x21002000, + 0x13002d00, 0xc54cc902, 0x198f2026, 0x225d490e, 0x4f008ffd, 0x00220757, 0x01820200, 0x04000524, 0x0e190800, 0x1126080d, 0x73001700, 0xbd75e500, + 0xffbc220c, 0x2adf8234, 0xffdbffdc, 0xffeaffe9, 0x83f5fff4, 0x3f1d121d, 0x532c0e01, 0x38020000, 0x1d00bd02, 0x49003300, 0x294b2543, 0x37005300, + 0x8400a600, 0x01824200, 0x00000024, 0x0182f6ff, 0xebffea2c, 0xe4ffe3ff, 0x4100dcff, 0x01822100, 0xf0281783, 0xe1fff0ff, 0xd4ffe2ff, 0xc6240182, + 0x6dffb6ff, 0x2608af70, 0x0058001e, 0x821a0026, 0x00112601, 0x00080010, 0x22198207, 0x82f8ff00, 0xfff02301, 0xaf70ffef, 0xb1ff2106, 0x00271583, + 0x005a001e, 0x821f002a, 0x00142201, 0x05b97114, 0x73850020, 0xeeffee24, 0x6182e0ff, 0xd8ffd422, 0x04832984, 0x2f003026, 0x27006000, 0x18282f84, + 0x0f001900, 0x06000e00, 0x24283582, 0x40002400, 0x22002c00, 0x1c1a9b82, 0xeb2223ef, 0x8782ecff, 0xd582e420, 0xf3ffeb22, 0xfa200182, 0x20057b6d, + 0xef1c1afe, 0xffe8221d, 0xb38218f1, 0x0001210a, 0x1993141a, 0x2306e54c, 0x0e015a00, 0xff23b683, 0x83a6fe8d, 0x18038407, 0x200f3766, 0x22158251, + 0x4f120002, 0x661808e7, 0x338228ff, 0xb3019122, 0xec259382, 0xeaffedff, 0xf71f1aff, 0x18652019, 0x240a338b, 0x001e001d, 0x190f8413, 0x200bc9cc, + 0x83838295, 0x2f061902, 0x00fb2c21, 0x002e0023, 0x0033002f, 0x82630060, 0xff412401, 0x82d2ffdd, 0xffcc2801, 0xff9cffa1, 0x83bfff9d, 0x01002346, + 0xcf826200, 0x181a2720, 0x62201e03, 0x2ddbde18, 0x00215984, 0x61921800, 0x51ff2126, 0x041a2f82, 0x4524b163, 0x24020000, 0x181e3741, 0x2018d1c8, + 0xc1c818ff, 0x83002016, 0x292d4f00, 0x03000022, 0x24062771, 0x004f008e, 0x65d2197f, 0x8213208c, 0x000621ca, 0x0983d819, 0x1400132e, 0x17001600, + 0x1b001a00, 0x18001c00, 0x03200382, 0x0322bd82, 0x09820400, 0x15821a20, 0x17201783, 0x142b1782, 0x0f001500, 0x0b001000, 0x83000c00, 0x8746823f, + 0xfbff2d02, 0xf7fffaff, 0xf2fff5ff, 0xedfff1ff, 0xea240182, 0xe6ffe9ff, 0xe3200182, 0xe5260382, 0xfcfffdff, 0x0382feff, 0xe4ffe326, 0xe7ffe5ff, + 0xe8240382, 0xecffe8ff, 0xf1220182, 0x3582f0ff, 0x4519f520, 0x0025087f, 0xc701ffff, 0x05b74cff, 0xebffec22, 0xe0224384, 0xeb69e1ff, 0x49051908, + 0x8205200f, 0x000a22a5, 0x2095820a, 0x209d820f, 0x22c18214, 0x8221001a, 0x821b2001, 0x82142009, 0x000f22d7, 0x201d820f, 0x3b59180a, 0xfffa2408, + 0x62dbfefb, 0xc627087b, 0x000050ff, 0x83ff3701, 0xffe22461, 0x82e2ffe3, 0x82e52067, 0xffe922b9, 0x440182ee, 0xfb2105d5, 0x28008b00, 0x00060006, + 0x000d000b, 0x22018211, 0x82170017, 0x001c2465, 0x821f001e, 0x001d2871, 0x00040020, 0x82020005, 0x82202005, 0x821e2013, 0x001d2203, 0x8321821c, + 0x00122227, 0x20358213, 0x1037410d, 0xfafffa28, 0xf3fff4ff, 0x6f82edff, 0xe8ffe824, 0x0182e5ff, 0x8782e120, 0x9382df20, 0xffffdd24, 0x0382feff, + 0x99828d20, 0x9582ea20, 0xd34ff020, 0x8208200c, 0x821120f3, 0x84172081, 0x841f2063, 0x84222083, 0x001c2477, 0x8216001d, 0x00112219, 0xe3d71812, + 0xffee220c, 0x204582f0, 0x204d82ea, 0x206182e4, 0x266182e2, 0xffe1ffde, 0x843600e1, 0x001422e0, 0x2107833b, 0x0582ecff, 0x64000123, 0x7f1c1a00, + 0x82452085, 0x1a642087, 0x46da931b, 0xb14607b3, 0x001b262b, 0x000c004e, 0x28018210, 0x00200012, 0x00220023, 0x200f8816, 0x220d8221, 0x56170022, + 0x0020255f, 0x282a0085, 0x35003600, 0x6d003b00, 0x01827200, 0xd8ff4b24, 0x0182cbff, 0x92ffc524, 0x01828eff, 0x2484b520, 0x2920d546, 0x2b000100, + 0x3d020000, 0x6318bd02, 0x2b203619, 0x084f8c18, 0xcd820920, 0x0d000b24, 0x01821800, 0xe5821920, 0x32001a22, 0x19200582, 0x18200d82, 0x0b201582, + 0x08211d82, 0x22008300, 0x83460018, 0xdeff2906, 0xf8ff9aff, 0xf5fff4ff, 0x754f0382, 0xfff02405, 0x82e8fff1, 0x84e92001, 0xfff52515, 0xffd3fff7, + 0x2c0b3d48, 0xffe7ffd1, 0xffe0ffe1, 0xffbfffdc, 0x200182bc, 0x204783d3, 0x05196f00, 0x2400412c, 0x1f002000, 0x31ff1900, 0x178463fe, 0x24071355, + 0xffe1ffe9, 0x226d82e2, 0x82beffc0, 0x82d52001, 0x004228ef, 0x00400042, 0x821e0022, 0x8417202f, 0x0051228b, 0x21958301, 0x6d182302, 0x2b822583, + 0x1a001821, 0x19252f1c, 0x83148d8c, 0x18038273, 0x233b17aa, 0x00450003, 0x22052f47, 0x630f0007, 0x27821b4f, 0x68017722, 0x8822e584, 0x078299fe, + 0x11826520, 0x0f84cf20, 0x31ffbb27, 0x9bff0000, 0x671f8c00, 0xfe210f73, 0x202b83a5, 0x067b4800, 0xfeecff23, 0x820f8d76, 0x00022c0d, 0x02f3ff3a, + 0x00cb022e, 0x4b4b001b, 0x01234b91, 0x182e0200, 0x2436f39e, 0xfff3ffc4, 0x4bf718f4, 0x82112014, 0x551c20a5, 0x07250a51, 0x06000700, 0x05034600, + 0xcd820320, 0xb9710020, 0x82f8200e, 0x82f52045, 0xfff3224d, 0x220182ef, 0x82ecffeb, 0x55f02005, 0xa5181c69, 0xa8241bb1, 0x0d000800, 0x10240182, + 0x37002100, 0x4d220182, 0xe3654c00, 0x7f212006, 0xf02008ed, 0xdf236182, 0x83fff0ff, 0xffe5246b, 0x82deffe6, 0xffd62201, 0x200582d6, 0x065147dd, + 0x15537d19, 0xc5820420, 0x17420120, 0x410f2008, 0x1b821189, 0x173bd418, 0x83051b42, 0x180020fe, 0x23076574, 0x2efe64ff, 0x4b0c4943, 0x1d1a05af, + 0x1120072f, 0x2b354518, 0x00560022, 0x1e287987, 0x7f005700, 0x40003f00, 0xff295b83, 0xffc1ffc0, 0xffb7ff81, 0x0a434d6f, 0x23005727, 0x1b001c00, + 0x0f276500, 0xbb4ced20, 0x7ddd2006, 0x342412f3, 0x69003500, 0x34220182, 0x49823400, 0xff200282, 0x13e71c1a, 0xe7ffef28, 0xe1ffe8ff, 0x0782e0ff, + 0xefffe722, 0xf8220182, 0x2c82f7ff, 0x0100002a, 0x00003c00, 0xbd023602, 0x339dc518, 0x7f203b82, 0x0aa30f1a, 0xb9840f20, 0x28001632, 0x29002a00, + 0xe4ff1c00, 0xd7ffd6ff, 0xeaffd8ff, 0xed26bf82, 0x8500f1ff, 0xfb840b01, 0x84fe8222, 0xeb820783, 0x28222783, 0x37841600, 0xd74c0f20, 0x84d82008, + 0x84e42037, 0x20048323, 0x83678214, 0x00122207, 0x18018217, 0x2209f152, 0x82320021, 0x00302201, 0x2017841a, 0x0d174812, 0xffc5ff25, 0x82ceffdf, + 0xffd02201, 0x082349e6, 0xfa19e920, 0xff210bad, 0x203182e5, 0x83721801, 0x12374208, 0x44a7171a, 0x00001126, 0xc3025c02, 0x7dcb6118, 0x42fc0021, + 0x8e820887, 0x20062f4b, 0x339e1806, 0x000b240a, 0x820c000b, 0x000f2401, 0x82070002, 0x840c2001, 0x000b210f, 0x20056b62, 0x22298408, 0x82050006, + 0x82032001, 0x19012021, 0x280c1feb, 0xfff9fff9, 0xfff1fff0, 0x0ce157ee, 0xfbfffb29, 0xe8ffe4ff, 0x7fffe7ff, 0xe1570949, 0x57e42009, 0xf82208e1, + 0x0182f6ff, 0xf7fff826, 0xf3fff8ff, 0xf5200982, 0x22069942, 0x82040006, 0x20738501, 0x12e15705, 0xb583a183, 0x09000b22, 0x08200182, 0x830ae157, + 0x880020a1, 0x574c2000, 0x002debb9, 0x003b0003, 0x022d0200, 0x004b00bd, 0xcb61185d, 0x00b82578, 0x00ba003e, 0xff220082, 0x9554ffee, 0x001e2205, + 0x2201821a, 0x18160016, 0x830c1573, 0xfffa2821, 0xfff2fffb, 0x82effff4, 0xffea242b, 0x82e6ffea, 0x82e22001, 0x00002218, 0x05eb4b13, 0xffc2ff23, + 0x220f8446, 0x84370012, 0x84e32053, 0xffea2223, 0x183384e9, 0x240bc5a0, 0x00060007, 0x2401820c, 0x00110012, 0x836b8217, 0x841d2073, 0x23878533, + 0xffedff49, 0x21056155, 0x3d1affef, 0x0a240d2b, 0x0f000e00, 0x00247182, 0x14006600, 0x0b200b84, 0x2f1a4382, 0xfb200dd9, 0xfa24a982, 0xf9fff8ff, + 0xf7203b82, 0x4406a354, 0x0d240b9f, 0x03002900, 0x20083d43, 0x26838411, 0x001e0017, 0x8225001d, 0x20078301, 0x83958217, 0x000c2217, 0x2227840b, + 0x82130003, 0x18438519, 0x240d7f76, 0xffd6fff2, 0x246982fd, 0xfff5fff9, 0x58e782f4, 0xff230675, 0x82dbffe2, 0x82e32001, 0xbf9c1807, 0x84f42009, + 0x18fd2027, 0x2507cd43, 0x9d00ecff, 0x5f840400, 0x10000a22, 0x087de918, 0x1b001b22, 0x0a220d82, 0x01820600, 0xa8ff0428, 0xfcff5800, 0x0182faff, + 0xf0fff628, 0xe6ffe5ff, 0x5782daff, 0x0782e620, 0x6819f020, 0xfc200ab5, 0xfe228382, 0xa0825900, 0x12000121, 0x77011318, 0x43003a21, 0x432005cf, + 0x5e11d748, 0x0023331d, 0x433f00b7, 0xc821089b, 0x2c008300, 0x0023002c, 0x00190022, 0x0010001e, 0x2010830f, 0x356e1800, 0xf6ff210a, 0xee220182, + 0x2b51f4ff, 0x231d8305, 0xb4ffe7ff, 0xee220784, 0x0182f1ff, 0x1f82f520, 0xe618fa20, 0xfe2008af, 0x00211983, 0x7d761800, 0x2253830a, 0x8418001f, + 0x832c2063, 0xeeff221d, 0x427785ff, 0x3c2005f7, 0x7d820683, 0x07004b2c, 0x15001600, 0x2d002400, 0x01824500, 0x35005c24, 0x2f846b00, 0x88ffd824, + 0x9570b4ff, 0xebff2105, 0xf2267182, 0x9200f8ff, 0x1b842401, 0xb7fe9326, 0x0e000800, 0x1522b782, 0x3d821000, 0x1b001624, 0xcd821a00, 0x29002122, + 0xa4223f8c, 0x0182bbff, 0xdcffd322, 0xea204182, 0xdf22ad82, 0x3f84bdff, 0x0582ec20, 0x25000128, 0x44020000, 0x7018ae02, 0x6b826319, 0xad003a22, + 0xe3247b84, 0xe8ffe9ff, 0x280c8d49, 0x000b000c, 0x000a0016, 0x2d69180d, 0x82112008, 0x001324d3, 0x82110012, 0x820f20dd, 0x820d2017, 0x820c2021, + 0x000826f1, 0x00050006, 0x82018203, 0xf8ff234a, 0x2344f7ff, 0x053b4508, 0xae003a22, 0x2008995c, 0x2653821e, 0x000f0016, 0x8207000e, 0x82168235, + 0xffee282b, 0xffeeffdc, 0x82ecffeb, 0xffe82a81, 0xffe5ffe4, 0xffc4ffe0, 0x200182d0, 0x201984dc, 0x202682ee, 0x202f8200, 0x22358207, 0x8217000d, + 0x5c1f2041, 0x17840591, 0x14000024, 0x95823d00, 0x1c001c30, 0x26002800, 0x2d002c00, 0x39003200, 0x01822b00, 0x31821f20, 0xa5820b20, 0xa5820920, + 0x04000522, 0xfc228584, 0xa384fcff, 0xf4fff527, 0xf0fff2ff, 0x057353ff, 0xe7ffea22, 0xe52c7d82, 0xd3ffceff, 0xdaffd4ff, 0xe3ffd9ff, 0xee208982, + 0x2614795c, 0x00220021, 0x82270021, 0x002e246b, 0x823a0049, 0x002b2601, 0x00100015, 0xb94a1811, 0xffeb240c, 0x82d5ffea, 0xffc6264b, 0xffb7ffc7, + 0x245384d2, 0xffdeffdf, 0x200182df, 0x08ef41e1, 0x65000328, 0x03020000, 0xd7826603, 0xab182f20, 0x59184c2d, 0xfe255e51, 0x016800db, 0x14716436, + 0x47fe9921, 0x71640567, 0x2d59180c, 0x079f4b66, 0x2821a964, 0x00030000, 0x02000011, 0x067b415c, 0xad672819, 0x215edd41, 0xa34b72ff, 0x66a142f1, + 0x2aef034c, 0x02f5ff23, 0x0012034a, 0x185f0013, 0x25bb4d42, 0x11006500, 0x01820e00, 0x37590c20, 0x0014240a, 0x82170014, 0x05ff47d9, 0xdffff522, + 0x08bb6119, 0xfafff628, 0xfdfffbff, 0x0582fcff, 0xfcfffa24, 0x25820c00, 0x12001326, 0x09000a00, 0x062e0182, 0xc9ffe5ff, 0xf2fff7ff, 0xf4fff1ff, + 0x0582f9ff, 0xe9fff122, 0xe3260182, 0xdeffe4ff, 0x0582e2ff, 0x2182e520, 0xecffe724, 0x1b82ebff, 0x517af020, 0x000f2408, 0x821d000f, 0x00282c01, + 0x00330028, 0x001a0022, 0x8270ff19, 0xfff52245, 0x204d82f5, 0x71ab18f6, 0x00022208, 0x22a58203, 0x82080005, 0x82092001, 0x000a2403, 0x180c000a, + 0x2108bf96, 0x01830010, 0x4b820e20, 0x17820b20, 0x29820620, 0x07000724, 0xa9820400, 0x4582f720, 0xeffff828, 0xe7ffe6ff, 0x7982e0ff, 0x42189f82, + 0x9c20284d, 0x14225582, 0x91821400, 0xeeffec22, 0xbb180182, 0x85610c7d, 0x8205200a, 0x820b206f, 0x2203858b, 0x82200013, 0x00142401, 0x82340023, + 0x00332901, 0x0019001b, 0x00130018, 0x85820082, 0xdaffda26, 0x2600ddff, 0x0821ac18, 0x5418c783, 0x9f820827, 0xe9ffe930, 0xe1ffe2ff, 0xd9ffd8ff, + 0xc0ffd0ff, 0x0182ceff, 0xdcffdc22, 0xef20c182, 0x00202682, 0x0822d582, 0x6b824e00, 0x1622ef83, 0x5d821700, 0x21001b22, 0x16220782, 0xa9821500, + 0x95821420, 0x0f001125, 0x67000d00, 0x06200597, 0x24085171, 0xfff9fffa, 0x220182f3, 0x82eaffeb, 0xffec225d, 0x240182de, 0xfff0ffec, 0x200182e8, + 0x226382eb, 0x84e6ffe7, 0x0006225f, 0x28078206, 0xff550002, 0x031402f6, 0x18b78213, 0x7178594a, 0x00212767, 0x22ff82b7, 0x82180017, 0x29ba8201, + 0xd2ffd9ff, 0xcfffd3ff, 0xe182d5ff, 0xed82df20, 0x1a19ea20, 0x0b2408c3, 0x15000a00, 0x1d270182, 0x26001d00, 0x47001a00, 0xeb2205eb, 0x2982c2ff, + 0xe6ffe524, 0x535beeff, 0x0009240a, 0x82120009, 0x001b24fd, 0x8423001b, 0x00142209, 0x203b8216, 0x20658219, 0x2466821a, 0xffccff00, 0x246982d1, + 0xffcbffd9, 0x180182d7, 0x240bdbbb, 0x00080008, 0x20018210, 0x24978217, 0xffe0ff1e, 0x245b82e7, 0xffedffed, 0x067b51f7, 0x11001122, 0x22225382, + 0x01823000, 0x4f823e20, 0x02212782, 0x82538362, 0x00202461, 0x84200021, 0x190f203d, 0x6e08c957, 0xdf280795, 0x84fde0ff, 0x05000300, 0x07240182, + 0x36001b00, 0x0a330b19, 0x06000624, 0x01820c00, 0xa7835b83, 0x43821120, 0x0d000d22, 0x8207934a, 0x0011225d, 0x83058232, 0x82062002, 0x000a223f, + 0x201d820a, 0x2025820d, 0x83078410, 0x8217830f, 0xfeff251f, 0xfdffffff, 0xfb280182, 0xfafffbff, 0x34001a00, 0x05225782, 0xf5840600, 0xc582f620, + 0xcb82ee20, 0xd582e820, 0xeaffe022, 0xed220982, 0x8782f1ff, 0xf6fff724, 0x0182faff, 0x091dbf18, 0xe5ffe926, 0xe2ffdbff, 0xeb200182, 0xf6202782, + 0x2e06d14f, 0x00020001, 0x00020000, 0x0237ff61, 0x1813030d, 0x42433f7a, 0xb2202827, 0x09635b18, 0x47d5be18, 0x2127b741, 0xf582bffc, 0x84000024, + 0xbe188c01, 0x502048dd, 0x022a5182, 0xfcff9b00, 0x0603e701, 0x737c1300, 0xf9391943, 0xf0002127, 0x22365367, 0x18020003, 0x2208edb4, 0x4209000a, + 0x14280881, 0x18001400, 0x56021300, 0x00205783, 0x20953919, 0x679afd21, 0xe82a3403, 0xebffeaff, 0xeeffedff, 0x8b18f1ff, 0xfa200cf5, 0x08e38418, + 0x1a000426, 0x3402fdff, 0x20088775, 0x45155097, 0x9f334950, 0x885f6933, 0x18001424, 0x01821500, 0x10001024, 0x994e0c00, 0x19042006, 0x26080b98, + 0xfff6fffa, 0x82f2fff5, 0xffee2601, 0x00c2ffe1, 0x24258217, 0x0009000f, 0x21218208, 0x00880004, 0x00ffff2b, 0xfffeff00, 0xfffbfffa, 0x243182f7, + 0xfff3fff3, 0x240182f0, 0xffecffeb, 0x26b769e6, 0x4c824e20, 0x03820120, 0x0a210283, 0x05e94500, 0x2100212a, 0x20002d00, 0x1c001d00, 0x25878576, + 0x0d00a8fd, 0x01821200, 0x16001523, 0x054d4600, 0x1b001b24, 0x01821a00, 0xa9822420, 0x1c002022, 0x18200182, 0x15201982, 0xff21c883, 0x22ff82e5, + 0x82e7ffe6, 0xffe92a05, 0xffeaffe8, 0xfff8fffb, 0x200182fd, 0x630382fc, 0x21830541, 0x49063f5c, 0x176a0855, 0x00722215, 0xab5d18e2, 0xffcd260c, + 0xffb4ffb5, 0x066148bd, 0xe9ffe922, 0x30081b6a, 0x00060007, 0xff230002, 0x024a02f5, 0x004b001b, 0x7e07437b, 0xa94a6420, 0x130021f5, 0x2af6814a, + 0xff4c0002, 0x02310237, 0x4d4900e2, 0x4c209461, 0x26089f62, 0x00130017, 0x82110014, 0x00122101, 0x24220183, 0x01821f00, 0x1c001a28, 0x15001600, + 0x17821000, 0xaf6b0720, 0xfffc2806, 0xfff8fffb, 0x82f4fff7, 0xfff02801, 0xffeeffef, 0x86ebffed, 0x000a2423, 0x4905000b, 0xfb200661, 0x08817f18, + 0x20050345, 0x202982ee, 0x202b82ec, 0x240382ed, 0xffe5ffee, 0x210184e7, 0x1383ffe8, 0xad18f020, 0x5d240ab7, 0x04000000, 0x09220182, 0x04190a00, + 0x0f220895, 0x83820f00, 0x83000d21, 0x820e2001, 0x820c200b, 0x820a2067, 0x0005221f, 0x202d8205, 0x22898200, 0x82e9fff5, 0xffde2401, 0x83d3ffde, + 0x83178211, 0x248b8343, 0x0063000c, 0x82018231, 0x20918216, 0x20b982fc, 0x202f82f6, 0x227182f3, 0x82f0fff2, 0x82ee2001, 0x82ef2003, 0x82ef20c7, + 0x82f12007, 0xfff32415, 0x82f6fff3, 0x18f92001, 0x2208dbc7, 0x82af003b, 0x82f82013, 0x19d383f5, 0x830b9d0b, 0x0013228f, 0xcf621812, 0x001e2208, + 0x06bf4c15, 0x11001322, 0x2206eb43, 0x82080009, 0x840b208d, 0x8218200f, 0x00182829, 0x001a0018, 0x55160019, 0xdb8306b3, 0x2005ff63, 0x55278209, + 0xfb2209ad, 0xd559faff, 0xffe82c08, 0xffe2ffe8, 0xffdaffe1, 0x82ee000f, 0x23738343, 0x000f000e, 0x20051d4d, 0x08e15507, 0xfefffd22, 0xfb20e382, + 0xf820a982, 0xf520e382, 0xec22df84, 0x3d82e3ff, 0xedffe824, 0x1782eeff, 0x0200f727, 0xcbffe5ff, 0x46008300, 0x00220765, 0x0182e0ff, 0xeaffc024, + 0x2382efff, 0x7918f220, 0x4f480817, 0x05b54e09, 0x07000622, 0x0c776418, 0x01007829, 0x37ff2100, 0x18024802, 0x213643dc, 0xcb821601, 0x8a834820, + 0x000d002b, 0x00120013, 0x00250014, 0x20018227, 0x208f841a, 0x19a319f6, 0x82e22008, 0x82ec20fd, 0xffdc22c5, 0x221982dd, 0x82dffff0, 0x82d02001, + 0x84e920e1, 0x8206203b, 0x00182239, 0x20018211, 0x060d4c0c, 0x1b000e22, 0x1c200182, 0xdd195382, 0x32260793, 0x23009700, 0x01822d00, 0x5e003228, + 0x61006000, 0x3b834000, 0x82e6ff21, 0xffdd2e51, 0xffb8ffda, 0xffb5ffb6, 0x003d00cf, 0x2401825a, 0x002a0050, 0x838d8215, 0x5c002022, 0x0022089d, + 0x0182f1ff, 0x3382e220, 0xdeffdf22, 0xba203382, 0xb8303582, 0xbdffd0ff, 0x45000200, 0x2402f3ff, 0x6b00e102, 0x24806346, 0x001f00e7, 0x8201820f, + 0xc4ff21bb, 0x88240182, 0xf0ffe7ff, 0xf9210182, 0x08c774ff, 0x089f6418, 0x03000326, 0x0a000700, 0x02240582, 0x08000500, 0x09200186, 0x03830782, + 0x0b000624, 0x01841400, 0x05821320, 0x12001224, 0x54821000, 0xf2ff0024, 0x0182ebff, 0xfaffec25, 0x83fff8ff, 0x82f62055, 0xfff62259, 0x06414ef7, + 0x0bcf1b19, 0x02000223, 0x07874300, 0x93430820, 0x82042008, 0x0003246f, 0x82f4ff02, 0x82f72033, 0xfff12241, 0x200182f5, 0x75e918f8, 0x20bf830a, + 0x26c7821f, 0x002d002c, 0x823b003a, 0xfe2d2205, 0x207b82dd, 0xf1c81824, 0x38002119, 0x081b5318, 0x45008722, 0x03200182, 0x7f832f82, 0x20056f51, + 0x217d8205, 0x01830006, 0xd5820820, 0x09000822, 0x07220b82, 0x01820100, 0x2205874e, 0x82020004, 0x820f8395, 0x24028236, 0xffffff01, 0x49c819fe, + 0x1b002309, 0xb14e3600, 0x82042006, 0x83012029, 0x43002021, 0xf720093f, 0xec24c982, 0xe6ffedff, 0xe0200182, 0x20060d41, 0x85cf82f7, 0x48fc2003, + 0xa21806e7, 0x1585075d, 0xf0fff828, 0xeaffebff, 0x0182e7ff, 0xe1ffe228, 0xbdffddff, 0x0182ccff, 0x0982dc20, 0x0bc98718, 0x6218f220, 0x01201eaf, + 0x2105e350, 0x66181b02, 0x0121655d, 0xc1a550b6, 0x50fcff21, 0x0129c27d, 0x36ff4d00, 0xdb021302, 0x6b4b1900, 0x71012d68, 0x1f002800, 0x13001e00, + 0x09001400, 0x0a5b1f19, 0xedffec2a, 0xe4ffe5ff, 0xf1ffddff, 0xf0230182, 0x85ffefff, 0x270d8303, 0xfff3fff2, 0xfff4fff5, 0x21054379, 0x008700ff, + 0x17001724, 0x01822d00, 0x44004524, 0x14835a00, 0xfe94ff23, 0x310783b9, 0xc7004300, 0xd8ffd1ff, 0xe1ffd7ff, 0xe9ffe0ff, 0x6955e8ff, 0x0006250c, + 0x000c0007, 0x2005f151, 0x20898213, 0x218b8215, 0x05830016, 0x12001322, 0x4d087347, 0x072005c3, 0x04222b82, 0x5d840300, 0x20074f47, 0x248b82f4, + 0xff0000f3, 0x20158236, 0x20c3820a, 0x243f8214, 0x00180018, 0x22d7821b, 0x82160016, 0x84102041, 0x000221db, 0x03200185, 0x76183f82, 0x13200b1b, + 0x1a262f82, 0x21001a00, 0x5d820500, 0x06000626, 0x2e003000, 0x2d200186, 0x1d220784, 0x5b823a00, 0xeaff0022, 0x2305f572, 0xe2ffe4ff, 0xde21c982, + 0x220183ff, 0x84dbffdd, 0x82dc2001, 0xffdd2205, 0x201982e3, 0x23e182ea, 0xffefffef, 0x0f9faf18, 0x85fffe21, 0xffff2201, 0x085162fd, 0xf7fff622, + 0xf022bd82, 0x0582f5ff, 0xf9fff922, 0xfd251982, 0xe8ff0100, 0x3fd11800, 0x4c292009, 0xb1202ce1, 0x21514952, 0xfb8337ff, 0x204e2152, 0x065f4703, + 0x1f00c124, 0x52183900, 0x0121577b, 0x185d82e6, 0x462793cf, 0x2c300fa1, 0xdffe2d00, 0x04000100, 0x07000500, 0x0c000800, 0x4b830182, 0x13001326, + 0x18001700, 0x13220582, 0x01820f00, 0x08201783, 0x04201f82, 0x01262782, 0x83ffa1ff, 0x1d43f1ff, 0xfffb2a08, 0x00fffffc, 0xffbd005e, 0x08c549ff, + 0x7bfff521, 0xed2205c1, 0xc549edff, 0x00ed2606, 0x002e004e, 0x22018243, 0x84580057, 0x822e2007, 0x1817200f, 0x22087bca, 0x82d2ffe9, 0xffbd2601, + 0xffa8ffbd, 0x200582a9, 0x230f84bd, 0x00eaffe9, 0x16280083, 0x65011700, 0x20002300, 0x1b24eb82, 0x16001b00, 0x97830182, 0x200bc364, 0x249382f1, + 0xffeaffea, 0x280182e5, 0xffe0ffe1, 0xfe0000dd, 0x083761d7, 0x39821c20, 0x41821f20, 0xff214d82, 0x211d82dd, 0xb918ffe1, 0xf7200d7d, 0x00221882, + 0xe3820900, 0x01000022, 0x2305d753, 0x2b000e02, 0x222c9742, 0x53e70100, 0xde185599, 0x5d500c23, 0x13757a15, 0x83217153, 0x4fe710de, 0x01280501, + 0x00002200, 0xdb024302, 0x2444c955, 0x00180022, 0x22038249, 0x82240023, 0x00132857, 0x00110010, 0x820a000d, 0x000e2403, 0x821c000f, 0x001d2a01, + 0x00210013, 0xffe0ff41, 0x240182d5, 0xffe8ffd3, 0x380382e7, 0xfff8ffea, 0xfff2fff1, 0xffebffea, 0xffe5ffe4, 0xfff9ffdf, 0xfff6fff5, 0x08314cf9, + 0x3f821420, 0x0c001022, 0x0a200182, 0x06244f82, 0x0b000700, 0x07260b82, 0xd2ffe2ff, 0x4982d3ff, 0x3982e820, 0x2d84eb20, 0x2f000024, 0x01824800, + 0x25004522, 0x22226982, 0x61821900, 0x5182de20, 0xbbffdb24, 0x0182b8ff, 0x2584d120, 0x6c004f22, 0x722b0182, 0x3c003e00, 0x39003d00, 0x75001500, + 0x314a0ba7, 0x82288205, 0x1ace209b, 0x200c9910, 0x269782f9, 0xfff0fff5, 0x82e3ffee, 0xffef2e01, 0xffa4ffc2, 0xffa6ffa3, 0xffd4ffd0, 0x452982d5, + 0x4f2205db, 0x55820e02, 0x4d550020, 0x211f9d1f, 0x95826100, 0x53823f20, 0xe9820020, 0x0d000d22, 0x102aa182, 0x13001400, 0x2d001700, 0xdb822200, + 0x07001624, 0x0f821200, 0x10001f22, 0x11200782, 0x2c820982, 0x1a06b565, 0x2109930c, 0x176efff0, 0xff002407, 0x82bbffe9, 0x4e028222, 0xe5220643, + 0x0182eaff, 0xf2fff122, 0x8608c353, 0x1beb1923, 0x18ed200a, 0x22080d55, 0x82fcfffb, 0x8200203a, 0x0013246b, 0x18dcff24, 0x2408d561, 0x00040005, + 0x1995820b, 0x26130beb, 0x000e000d, 0x7b87001b, 0xb4260641, 0xb1ff19ff, 0x0b7cd9ff, 0x000a2406, 0x82110009, 0x0019224d, 0x22cf821a, 0x83d9006d, + 0x4bff2b5d, 0x3a000100, 0x21020000, 0x69180e02, 0x002751df, 0x001900e5, 0x840f0049, 0x00122277, 0x207d8213, 0x220b8212, 0x820e0011, 0x0b0f5113, + 0xfefffd28, 0xfafffbff, 0x0182f9ff, 0xf7fff724, 0x0382f6ff, 0xe1fff524, 0x2782c2ff, 0xed820b20, 0x83056971, 0x480320f9, 0xcc410679, 0x82c28205, + 0x82fb2035, 0xfff6262f, 0xfff3fff2, 0x240182ef, 0xffedffed, 0x223f82eb, 0x82f4fff3, 0xffe62413, 0x82e5ffe6, 0xffdf2a15, 0x001500be, 0x001f0020, + 0x8381821e, 0x823b827f, 0x820d2002, 0x0010220d, 0x209b8214, 0x221f8215, 0x18160017, 0x20083bb5, 0x20098217, 0x20a98216, 0x20bf8610, 0x20bd8211, + 0x242d8211, 0x0010000f, 0x2039820d, 0x22558200, 0x82f1fff0, 0x84f22063, 0xfff32203, 0x838784f5, 0xfff922bd, 0x20cf82f8, 0x228982f0, 0x82eaffec, + 0xffe92101, 0xea200185, 0xec219982, 0xdb1c1a00, 0x0052220b, 0x364b8435, 0xff9fffc0, 0xffa2ffa0, 0xffd3ffce, 0x000100d3, 0x0236ff50, 0x18db021c, + 0x25837db9, 0x29007e01, 0x01821e00, 0x13001326, 0x0a000900, 0xf720af84, 0xf024e182, 0xe3fff0ff, 0xd7200182, 0x2d52ff82, 0xffed2405, 0x82efffee, + 0xffee2203, 0x3bec19f1, 0x5d12200e, 0x3624060f, 0x49003600, 0xbb224184, 0x0182cdff, 0xcc18e120, 0x132c0a19, 0x27001400, 0x3a002800, 0x4f003b00, + 0x9d222384, 0x0783d9fe, 0x001a0023, 0x8f9c184d, 0x84fa200c, 0x82082015, 0x0011228d, 0x05575712, 0x82d9ff21, 0xffe12249, 0xfd4018ea, 0x0007280a, + 0x000d0006, 0x8210000e, 0x057b527b, 0x16001522, 0x14220182, 0x35821500, 0x19821220, 0x08000d22, 0x0c201d82, 0x0e3b8519, 0x42fffb21, 0xf4240551, + 0xf0fff3ff, 0x20080d4b, 0x22fd820a, 0x82190013, 0x001d2201, 0x22a9821b, 0x820f0015, 0x0569533b, 0x03000223, 0x21038500, 0x4d4f0004, 0x82082005, + 0x820b2059, 0x820f2057, 0x00122225, 0x2037841d, 0x227b8217, 0x820d000e, 0x001a2695, 0x00010036, 0x06574507, 0x59821220, 0x1e001a24, 0x01821800, + 0xab821120, 0x3b820920, 0x33820020, 0x200d294b, 0x598d82f6, 0xe7250931, 0xe8ffe4ff, 0x05bf6dff, 0xf5fff524, 0x1d82fcff, 0xecffec22, 0xe4221582, + 0x0182e1ff, 0x44ffdf21, 0x3d4b056d, 0x19db830f, 0x230a1b5f, 0xfdffffff, 0xfb26ed82, 0xf8fff7ff, 0x0182f6ff, 0xf2fff522, 0x0f830784, 0x4bfffc21, + 0x00200541, 0x2208c351, 0x721f001b, 0x3d4a33e5, 0xd3d2182c, 0xaf281a32, 0xc1d9181e, 0x00012841, 0x02eeff28, 0x4705024f, 0x022543b7, 0x000b002b, + 0x06054a08, 0xfeff0024, 0x6e18ffff, 0xfd260879, 0xfafffcff, 0x0184fbff, 0x7719f320, 0x00221099, 0x2d441200, 0xfe792306, 0x0083006e, 0x36001222, + 0x00230683, 0x84440016, 0x00352207, 0x210784a1, 0xd0180000, 0x05260909, 0x0c000500, 0x01821400, 0x73821c20, 0x0a000924, 0x1d82f1ff, 0x03000222, + 0x15220182, 0x71182900, 0x39830989, 0x8b84ff20, 0x03820983, 0x04000422, 0x0720a782, 0x0c263d82, 0x6e001100, 0x5119dc00, 0xef220c55, 0x3184cbff, + 0xb0fe9122, 0x00220783, 0xb3430170, 0xffb02205, 0x0c2d550f, 0xf8fff522, 0x830ac156, 0x00002c99, 0xff5a0002, 0x02250237, 0x7a21001b, 0x5a20363d, + 0x22089d4d, 0x82260017, 0x00342401, 0x82270032, 0x001d2401, 0x1a0e001e, 0x2608c574, 0xffe2fff2, 0x82d5ffe3, 0xffc52601, 0xffd7ffcb, 0x210d82d6, + 0xd018ffe2, 0x5c200789, 0x2226b782, 0x44002200, 0x05824300, 0xcd842220, 0xdeffde26, 0xbcffbdff, 0xde200582, 0x28069547, 0xffc90043, 0xffecffd8, + 0x201f83ec, 0x05ff5700, 0x33002522, 0x42220182, 0x75824000, 0x25003322, 0x17830182, 0xff212082, 0x245d82ef, 0xffddffdd, 0x240182ca, 0x0068ffb6, + 0x1ea152a1, 0x0100002a, 0x36ff5300, 0x1b020302, 0x6bb94718, 0x455c0121, 0x0a200ad3, 0x2208d345, 0x82eefff6, 0xffe42e01, 0xffdbffe4, 0xfff6fffa, + 0xfff5fff7, 0x220182f4, 0x19f3fff5, 0x8308dd44, 0x82f72015, 0x65f9201d, 0x0c2408b7, 0x17000b00, 0x232c0182, 0x2c002200, 0x14001800, 0x12001500, + 0x085fa518, 0x00000026, 0xd8ffdaff, 0xd6220182, 0xeb64c1ff, 0xffed2208, 0x241882ee, 0x00050000, 0x243d8206, 0x000f000c, 0x2033820e, 0x20378412, + 0x203b8414, 0x08b76212, 0x11000722, 0x07202384, 0x755e2b82, 0x84f6200d, 0x09a34597, 0x14000922, 0x17200182, 0x1b228382, 0x91821b00, 0x39821620, + 0xdd821220, 0x02000923, 0x85b61800, 0x18032009, 0x200adb5b, 0x201d820b, 0x2069820f, 0x20798212, 0x20378218, 0xe9291a1c, 0x820e200c, 0x83002035, + 0x1aef84e7, 0x2009b33d, 0x20358214, 0x241b840a, 0xffeeffee, 0x2c0182db, 0xffccffcc, 0xffd9ffbc, 0xffdfffe0, 0x240182e7, 0xffecffed, 0x180182f2, + 0x210bf774, 0x0183fffe, 0x0082ff20, 0x4f82fd20, 0x22077345, 0x19f6fff7, 0x220ef9c9, 0x84e8ff01, 0xff3b29ad, 0x022c02f3, 0x0025000e, 0x49e95019, + 0x1c00a924, 0x01821500, 0x0be5c718, 0xaf82e620, 0x2800cc24, 0xd1845000, 0x3fffc026, 0xd3ffc4ff, 0xe2260182, 0xf1ffe2ff, 0x1583f1ff, 0x0010002f, + 0x0020000f, 0x002b001f, 0x0037002c, 0x220b8226, 0x8210ff20, 0x00092819, 0x00120009, 0x821a0011, 0x82222001, 0x000f2223, 0x2205820e, 0x8216002b, + 0x37561863, 0x18f82009, 0x2a081776, 0xffecffec, 0xffbaffe8, 0x82ddffdd, 0x82112035, 0x00162225, 0x8393821b, 0x0024265b, 0x00350042, 0x825d8234, + 0x20418239, 0x27068340, 0xefff0000, 0xdeffeeff, 0xcf2b3182, 0xc0ffcfff, 0xcdffbdff, 0x56ffceff, 0x072a0b09, 0x06010700, 0x23003200, 0x7d532200, + 0xfcff2309, 0x0182f8ff, 0xc382f620, 0xd4ffd424, 0x7582c7ff, 0xe9ffea22, 0xec207d82, 0xc518d382, 0x34220d97, 0x69823300, 0xff830120, 0x02190223, + 0x4c47820d, 0x874f254b, 0xffe62209, 0x22a382ed, 0x43f7fff7, 0x00240813, 0x89002e00, 0x00245582, 0xaafe8dff, 0x00230783, 0x8487002d, 0x18002007, + 0x820f754a, 0xed491815, 0x00052409, 0x820b0006, 0x00162701, 0x00210017, 0x3b850055, 0x3f001622, 0xeb224b84, 0x0784c0ff, 0x44ffc228, 0xdbffcfff, + 0xd182dcff, 0x0909ff19, 0xb6820020, 0x00001a26, 0x0e023402, 0x53c35218, 0x00a20124, 0x05620019, 0x000c2209, 0x20018208, 0x08056203, 0x0562fb20, + 0x62ed2008, 0xf2242c05, 0xefffeeff, 0xe822c782, 0xcd54e4ff, 0xfff92406, 0x4cfdfff8, 0x002006fd, 0x0ab54b18, 0xfb824e20, 0x03820120, 0x0b220283, + 0x8b840a00, 0x20001f38, 0x23002900, 0x1e001d00, 0x0d001b00, 0x12001100, 0x17001600, 0xab821800, 0x531a1b20, 0x21220867, 0x01821f00, 0x1c001c22, + 0x19201582, 0x41821f82, 0x20087561, 0x237582e7, 0xffebffe8, 0xfd20bf83, 0x03837782, 0x8b82e220, 0x1a1ae420, 0xef2408b5, 0xf9fff0ff, 0x08614e18, + 0x65820620, 0x7b840d20, 0x72001e24, 0x4b18e300, 0x6d610c85, 0x119b4107, 0x07000722, 0x022a2982, 0x37ff2600, 0x12024302, 0x4f184d00, 0x012173eb, + 0x08354706, 0x1c002126, 0x19001d00, 0x14280182, 0x0f001400, 0x08000e00, 0xa2820182, 0x08d18f18, 0xedffee24, 0x0182eaff, 0xe9ffe826, 0xe4ffe7ff, + 0xea220582, 0x0182f1ff, 0x0941f720, 0x82002006, 0x82ea2015, 0x82ed2015, 0x1af72027, 0x2308d71b, 0x00130009, 0x2005cd45, 0x834c8210, 0xffe82223, + 0x184582e8, 0x200967a3, 0x066750fa, 0x10000f28, 0x20001f00, 0x01822800, 0x2b823220, 0x03825c20, 0x07000822, 0x60198b82, 0x0822094d, 0x11820900, + 0x07220383, 0x01820500, 0x02000322, 0xfc245584, 0xf7fffbff, 0x8308e34d, 0xfff12295, 0x08935ef0, 0x8e003022, 0x10224b86, 0xf1821100, 0x67821720, + 0x26001e22, 0x2d240182, 0x25002e00, 0x1d200782, 0x5018fb82, 0x60180f6b, 0xe6280711, 0xdcffe5ff, 0x29ff95ff, 0x0c244382, 0x18000c00, 0x26204182, + 0x32223582, 0x05822d00, 0x1b002422, 0x0c225382, 0x97820b00, 0x33001924, 0x8582fcff, 0xf3fff628, 0xecfff2ff, 0x3982ebff, 0x3b82e420, 0xd3ffdd22, + 0x2006af5a, 0x220d82db, 0x82eeffef, 0x01c12499, 0x822200ce, 0x82122039, 0xff002255, 0x200182fd, 0x26c382fa, 0xfff8fff8, 0x82f4fff6, 0xfff1263d, + 0xffefffee, 0x200182ea, 0xbfcc18e6, 0x19e92008, 0x2a0e474c, 0x0001006b, 0x0237ff2c, 0x190e023c, 0x20600b36, 0x22f7824c, 0x82090047, 0x000b22e7, + 0x200b820d, 0x20038219, 0x2c098210, 0x00140014, 0x00080012, 0x000e000f, 0x26018215, 0x001a0019, 0x550c0020, 0xfa200661, 0xd922c582, 0x0182e6ff, + 0xdd86f420, 0xf0fff722, 0xef22d782, 0x2182f5ff, 0x23002228, 0x11002100, 0x01821000, 0xe0ff0d24, 0xfd82c0ff, 0xf5fff428, 0xe9fff3ff, 0x0182e7ff, + 0x0982f020, 0xebffec22, 0xf0242f82, 0xd8ffd7ff, 0xf4231f82, 0x8300e8ff, 0x00062800, 0x00270013, 0x8219001a, 0x82062069, 0x8208207d, 0x2a478303, + 0xff0b0011, 0xffddffea, 0x82dfffde, 0x82f02079, 0x8337206b, 0x2263822e, 0x82160017, 0x002e222d, 0x20018230, 0x06c77e20, 0x5b82d320, 0x18fff021, + 0x240db997, 0x00130000, 0x20338438, 0x20d38400, 0x2005821e, 0x2c138214, 0x00280016, 0x002a0029, 0x002d001c, 0x20018243, 0x24bb8241, 0x001f0020, + 0x822b8318, 0x84ea20a1, 0xffd222b3, 0x240182d0, 0x002200e0, 0x20018232, 0x1c195f2c, 0xedfff124, 0xad82ecff, 0xd6ffd822, 0xe4240182, 0xbdffd3ff, + 0xbf200182, 0xe122bd82, 0x5582e0ff, 0x42000129, 0x270237ff, 0x18000e02, 0x434e0943, 0x18200af5, 0x1722bf82, 0x05821600, 0xe3821220, 0xeb820e20, + 0x07000722, 0x02827b82, 0x420aad52, 0xf928099d, 0xf9fff6ff, 0xf7fff8ff, 0xf8200382, 0xf9200384, 0xe920ff84, 0x5105d952, 0xf6200801, 0xfb221b84, + 0x6569fbff, 0x0afd5208, 0x07216182, 0x206b8300, 0x20738213, 0x207d8416, 0x60818217, 0xad43077d, 0x28878305, 0x0010000f, 0x00140015, 0x2801821a, + 0x001e001f, 0x00660022, 0x2e6f84ca, 0xff1effb5, 0xffedffec, 0xfff3ffee, 0x82f4fff2, 0x20978305, 0x0a7d53fa, 0x9900fe24, 0x2b843301, 0xa7fe8d26, + 0x0a000600, 0x0e200182, 0x0d220382, 0x7b820c00, 0x83000d21, 0x001424ef, 0x84c80065, 0xffb42a23, 0xffdeff1c, 0xffe1ffe2, 0x200182e6, 0x061742ec, + 0x82fff921, 0xc1ff21dd, 0x01282182, 0xf3ff2300, 0x0e024602, 0x8bc74b18, 0x000a0123, 0x22d18210, 0x8405000b, 0x000b22df, 0x280f820f, 0x00140014, + 0x002a001a, 0x2001821d, 0x0a6f7d11, 0xfffffe24, 0xdb4ffcff, 0x21d78206, 0x0182f6ff, 0xef82f420, 0x1f00c122, 0x0f203582, 0x0286e382, 0xffffff22, + 0x06822b83, 0xcc180782, 0x2f83092d, 0xf7fff623, 0xa1ef19ff, 0x82fa2009, 0x84fd204d, 0x822f872d, 0x2744850c, 0xc7ffe4ff, 0xffff0000, 0x1b830382, + 0xfefffd22, 0xfc222b82, 0x0182faff, 0x2409e95f, 0xfff1ffe0, 0x232f84f0, 0x00010002, 0x2407834b, 0x00070007, 0x26018209, 0xffe0ff0c, 0x82f4ffc0, + 0x05d94171, 0xb918fa20, 0x3384094d, 0x2407f143, 0x001e001d, 0x2ef18229, 0x00150014, 0x000d000b, 0x000f000e, 0x82eeff12, 0xfff2225b, 0x823f82f3, + 0x272f8473, 0x00110011, 0x00240023, 0x20057f6f, 0x5bd0181b, 0x00162208, 0x83398216, 0x44172005, 0xc02206b3, 0x0182beff, 0x6f82bc20, 0xe3fff626, + 0xebffecff, 0xf4214582, 0x20fb85ff, 0x210b82f4, 0x0183fff5, 0xfafffb22, 0x04225784, 0xb1820400, 0x0a000722, 0x0d200182, 0x07850982, 0x6d820c20, + 0x57821020, 0x1b001526, 0x21001c00, 0xff292983, 0xffdcffcf, 0xffe7ffdb, 0x209d82e8, 0x204f82ef, 0x4d5386f3, 0x2e240937, 0x5b002d00, 0x1a202f82, + 0x8d83cf82, 0x18001722, 0x0b859b84, 0xff214482, 0x220182e9, 0x82eaffea, 0x83058393, 0x82e72003, 0xffe52351, 0x677affc2, 0x72dd2005, 0x06220833, + 0x30820600, 0x535a0320, 0x82cc2006, 0x462f20db, 0xcd776023, 0x5d00215e, 0x2155e75a, 0x57826d02, 0x2ad76319, 0x00202d82, 0x2b076419, 0x36bd5518, + 0x2723475b, 0x001a0003, 0x02340200, 0x2005df41, 0x2e375c7f, 0xac25d54c, 0x42002025, 0x18205f03, 0x209d734c, 0xb9901802, 0x002c250b, 0x00040007, + 0x0dcf6418, 0x19fff921, 0x9c1f5366, 0xadfd212f, 0x20a0d34c, 0x057f6003, 0x00130325, 0x18330013, 0x1948d766, 0x5653e780, 0xfb733259, 0xc1fd2327, + 0xfd822400, 0x4420ff83, 0x12313f1a, 0x22418156, 0x43020000, 0x032305fb, 0x18130006, 0x41688fb4, 0x73190585, 0xab202159, 0x749ea543, 0xb9202773, + 0x209e6d43, 0x05974a02, 0x00060323, 0x892d1913, 0x4200209f, 0x1320273b, 0x01d50a10, 0x281f770d, 0x0a10a920, 0x210e01fd, 0x52180003, 0x3120094b, + 0x18478746, 0x20384552, 0x06dd6d78, 0x07000724, 0x01820b00, 0x0f000e22, 0x2206db4e, 0x821a0027, 0x82102001, 0x0009360f, 0xff040008, 0xff63ffa1, + 0xfff7ffef, 0x00fffff8, 0xffc10060, 0x220b82ff, 0x82f0fff7, 0xffe42601, 0xffd9ffe5, 0x200582da, 0x355218e5, 0xf6002537, 0x1e002100, 0x19200182, + 0x13247382, 0x0e001300, 0x0ac34618, 0xf2fff224, 0x0182e2ff, 0xd7ffd631, 0x0000ccff, 0x2000e3fe, 0x33003400, 0x82004600, 0xb9ff2700, 0xccffcdff, + 0x0182e0ff, 0xde19f020, 0x01280c5f, 0xf3ff5100, 0x1b020402, 0x215f5f4c, 0xbb827d01, 0x19001923, 0xd7581800, 0xffed240b, 0x82d9ffec, 0xffcb2801, + 0xffbbffcb, 0x82e6ffe8, 0xffe52401, 0x82fbfffa, 0xfffc2101, 0x4d055759, 0x0a2205a9, 0x01840900, 0x0c000b22, 0x0d210182, 0x20018300, 0x26fd820c, + 0x00230030, 0x82180024, 0x820f2057, 0xff05240d, 0x821eff8f, 0x000024ee, 0x82fe0055, 0xfff22247, 0x285582f1, 0xffdaffe9, 0xffcfffdb, 0x200182f3, + 0xf7d418f4, 0x1af72008, 0x240ab511, 0x000b000b, 0x5003820a, 0x0e20055f, 0x0d204982, 0x2e266182, 0x27002600, 0xb1821300, 0x61821820, 0x1e001f22, + 0x25240f82, 0x41002b00, 0x2110275c, 0x6d82fffd, 0xff000022, 0x07820084, 0x83fffe21, 0xffe72601, 0x000400cc, 0x21018203, 0x01870002, 0x09820120, + 0xa1830120, 0x82f5ff21, 0xffe92401, 0x82e1ffe9, 0x84d92001, 0xffef2211, 0x200784cd, 0x221384d8, 0x7feaffe9, 0xe2190807, 0x04260d3d, 0xecff0800, + 0x6c82c5ff, 0x69837783, 0x0f1a0783, 0x438208d5, 0x08000822, 0x02280582, 0x00006200, 0x66032702, 0x0919d982, 0x012026cf, 0x160bd119, 0x1849ff21, + 0x202da95e, 0xd5af1802, 0x18fc2016, 0x180d4f9f, 0x2021a36d, 0x21c38803, 0x48180017, 0x01224c9b, 0x72180012, 0x002008bd, 0xff200082, 0x1f7f501a, + 0x2f82f220, 0x250f0f4c, 0xffe8fff8, 0x7219ffd1, 0x18221363, 0x3141bcfe, 0xf945182d, 0x3b601866, 0xe9ff282c, 0x370223ff, 0x1800be02, 0x2d8c498a, + 0x1a00d501, 0x12001300, 0x0b000c00, 0x01820600, 0x00850020, 0x82f6ff21, 0x19ea2001, 0x300ecbb6, 0xffeafffe, 0xffe1ffe2, 0xfffcffd7, 0xfffefff8, + 0x220184fd, 0x82e5ffda, 0x44f12001, 0xff200665, 0xe3521782, 0x05af6109, 0x79440583, 0x00382205, 0x235f83a7, 0xb8fe93ff, 0x00230783, 0x8454001d, + 0x00192207, 0x2a07844c, 0x00030000, 0x00050002, 0x82070004, 0x8208208b, 0x82032007, 0x5e042003, 0x05200695, 0x0ab3db18, 0xb1820c20, 0x3f820c20, + 0x15001622, 0x180bb945, 0x240cf1ca, 0xfff7fff7, 0x220182f3, 0x82edffed, 0xfffd22b9, 0x209b82f9, 0x22b982fb, 0x59f4fff4, 0x01200669, 0x06202f82, + 0x062af986, 0x2b000600, 0x23002400, 0x5b823aff, 0x01191320, 0x232a080b, 0x45002d00, 0x36008a00, 0x01822800, 0x01001a22, 0x02200182, 0x0320a582, + 0x01210784, 0x08f15e00, 0x02824b82, 0x2008cb7d, 0x206982fa, 0x227182fd, 0x540000fe, 0xfc210849, 0x75aa19ff, 0xfffb2609, 0x005200fa, 0x203282a5, + 0x18438200, 0x220da151, 0x842dfe64, 0x002f2217, 0x211b828d, 0xf15f0013, 0x00092409, 0x84030004, 0x86022001, 0x82042005, 0x45042011, 0x36820813, + 0xf82f7782, 0xeffff0ff, 0xe5ffe6ff, 0xbfffdcff, 0x19ff7eff, 0x20133f17, 0x872a82fd, 0x82012002, 0x0002224b, 0x24358202, 0xffe8ffe8, 0x211685eb, + 0x0785ffff, 0x82060021, 0x00022801, 0x0200006c, 0x18660339, 0x201edb79, 0x57121911, 0x48ff2215, 0xc5641800, 0x1edb4414, 0x11dd6418, 0x41000128, + 0x1302f3ff, 0xf95fcb02, 0x13022149, 0xff23e783, 0x82ecffee, 0xffeb2401, 0x82ebffea, 0xffea2401, 0x82e5ffdf, 0x300d8301, 0xfff0ffef, 0xfff5fff6, + 0xfffbfffa, 0x006900ff, 0x292f84d3, 0x0014ffb2, 0x00070004, 0x51570008, 0x000f2205, 0x2c018213, 0x001a001a, 0x002f0020, 0x002a002b, 0x2e278425, + 0xffd7ffda, 0xffd5ffd6, 0xffc9ffb8, 0x82d8ffc8, 0xffec2201, 0x821983ed, 0x0013222d, 0x24018228, 0x00380038, 0x28318448, 0x00190029, 0xff490018, + 0x226d82f1, 0x5df8fff6, 0x45180aed, 0x15600955, 0x00202207, 0x44458423, 0x28220785, 0x11822200, 0x1c001b26, 0x14001500, 0x20061343, 0x23818407, + 0xfff2fff1, 0x0fbd6119, 0x09775e19, 0xa9ffbd22, 0x16775e19, 0x46000128, 0x2502f3ff, 0x554fcb02, 0x49891867, 0x318918c7, 0xff6218c7, 0x0003228a, + 0x57511864, 0x19da20b6, 0x202e3522, 0x85aa1807, 0x57511864, 0x0001262b, 0x01f3ff36, 0xc75d18de, 0xaa012535, 0x0d001a00, 0xd6820182, 0x14f7801a, + 0x2005535d, 0x082d60f9, 0xeeffed28, 0xe4ffe9ff, 0x0182e6ff, 0x0982e820, 0x82ffe821, 0x203c8405, 0x2049821c, 0x08477a1a, 0x3c00192c, 0x2c002b00, + 0x1c002a00, 0x01822f00, 0x1e194120, 0xe1201439, 0x10391e19, 0x3f63fc20, 0x00062406, 0x82090005, 0x000e2a01, 0xff13000e, 0xffb7ffdb, 0x08ab5df4, + 0x4bfffe21, 0x0e20055b, 0x0221b784, 0x21008200, 0xff826802, 0x2d7b4b20, 0x286e8265, 0x0028003a, 0x00190029, 0x209d8215, 0x22a9820d, 0x82020005, + 0x82188201, 0x00162202, 0x28058240, 0x001a0000, 0x0018004e, 0x22038417, 0x82130017, 0x5e102001, 0x751809b7, 0xee24081b, 0xe9ffedff, 0x4b410182, + 0xfffc2205, 0x233b83fa, 0x34ffbbff, 0x03850783, 0x00ffff24, 0x2c1aff00, 0xfc210b45, 0x702782ff, 0x41490671, 0xffee2605, 0x010000e8, 0x222f8496, + 0x82080002, 0x246f9773, 0xffecffed, 0x066341ea, 0x8f820e20, 0x19001b24, 0x01822400, 0x30003124, 0x01823900, 0xbd824120, 0x47838120, 0x080b6118, + 0x06000022, 0x0c5b5b18, 0x1d001722, 0x23240182, 0x1e002200, 0x17200782, 0x1226e182, 0x0b001200, 0xa14a0c00, 0x4746200a, 0xcf270685, 0xe7ff6aff, + 0x83ffb7ff, 0x82ea20dd, 0xffeb2677, 0xffeeffef, 0x086b68f2, 0x83ffef21, 0x82f920bf, 0x83fd20cb, 0xe6ff2393, 0x9e181b00, 0xee200e85, 0xe7203182, + 0x0aa97d1a, 0x7350ef20, 0x82a18305, 0x00022a03, 0x02000016, 0x00bd0268, 0x4739512d, 0x17205182, 0x23054950, 0x94003100, 0xc9416382, 0x82f3201f, + 0xffe424cf, 0x82dbffe5, 0xffd42101, 0x2207c141, 0x83baffe8, 0xcfff233b, 0x07846cff, 0xbbffe826, 0x80010000, 0x210ca141, 0xbf640014, 0x05074805, + 0xf8fff925, 0x71fff1ff, 0xfc20077b, 0x00212984, 0xc96b1800, 0x00002a0f, 0x00050006, 0x000b000c, 0x24018212, 0x00190018, 0x2801821f, 0x00320026, + 0x00250026, 0x220f821a, 0x860d000c, 0x0785413b, 0x10b9851a, 0x4140fe21, 0xd1621a65, 0x82ef2005, 0x84f8208d, 0xff012847, 0x020000ee, 0x43be0237, + 0x5a20665d, 0x4c088b4a, 0xbb4c436f, 0x5e334d08, 0xbcfe9423, 0x22008300, 0x8351001b, 0x481f4c06, 0x6fffb822, 0x39224b84, 0xe34cac00, 0x0200286d, + 0x00004500, 0x19036402, 0x213dbfd8, 0x0d1a00fb, 0x3820153d, 0x1908e541, 0x1848cb22, 0x2312339d, 0xffd9ffe9, 0x07b30b1a, 0x4ccb2219, 0x00000023, + 0xe3f61902, 0x7b0b2008, 0x7b523009, 0x002d2717, 0x00600020, 0x6d640010, 0x002c2605, 0x002f002e, 0x226b821f, 0x74180000, 0xe02e067d, 0xefffa0ff, + 0xeaffebff, 0xd3ffe8ff, 0x0182d2ff, 0x5f44e120, 0x82b72006, 0xa1671992, 0x0b014111, 0x3100262a, 0x37003200, 0x6a006700, 0x47240182, 0x7ffe3fff, + 0x0ced6618, 0xceffdb22, 0xc9200182, 0x086ff519, 0x8101c022, 0x51205b84, 0x3e20eb82, 0x4b245d82, 0x13006603, 0x62b79f18, 0x19ffdb21, 0x1919d57e, + 0x2209e97c, 0x8290fe27, 0x0037248d, 0x8215001a, 0x00102a01, 0x000f0010, 0x000b000e, 0xf1441809, 0x84072008, 0x00192209, 0x32018226, 0x00140024, + 0x00110012, 0xffdcff0e, 0xfff6ffb9, 0x82f2fff3, 0xffe42101, 0xed200183, 0x08d9131a, 0xe3ffe522, 0xed201182, 0xb7202382, 0x24245782, 0x25002300, + 0x14203782, 0x12210382, 0x094364ff, 0x83fffe21, 0x82f82001, 0x18f62045, 0x270a4f7b, 0x00dbffee, 0x00660300, 0xcd180082, 0xc8201441, 0x0c855c19, + 0x2682d220, 0x05220283, 0xa14e0500, 0x820e2006, 0x820c20c1, 0xff1a19c1, 0x00132409, 0x825c003d, 0x00592401, 0x822b0030, 0x84212001, 0xffe7285b, + 0xffdfffde, 0x82baffdb, 0xffb822c7, 0x22a782d0, 0x82220021, 0x004522a7, 0x20018248, 0x2823842f, 0xffadffc2, 0xffa7ffac, 0x240182d0, 0xffd4ffd1, + 0x7fed18f9, 0x82fc2008, 0xfffc22c7, 0x4efb82ee, 0xfa2005c5, 0x23057148, 0xecff0000, 0x01243982, 0x68ff4500, 0x1f937218, 0x6e090121, 0x214708e3, + 0x8b721806, 0x00312218, 0x20598293, 0x24598268, 0x00260000, 0x0c6d4272, 0x2efe6522, 0x23190f84, 0xfd21082d, 0x210f83f2, 0x7518daff, 0x1f200c23, + 0x20366773, 0xf1801912, 0x83a78261, 0xc9801902, 0x0000245d, 0x82530002, 0x02382504, 0x002100bd, 0x3ac99418, 0x37264582, 0x4400a600, 0x01823200, + 0x20002024, 0x01821000, 0x1b1abf82, 0xe62a0ec9, 0xc5ffc4ff, 0xd9ffa1ff, 0x1c82b1ff, 0x58000024, 0x07830601, 0xfe8fff23, 0x200782ae, 0x21038265, + 0x77180000, 0x0c2a2dc7, 0x18000d00, 0x24001900, 0x79822500, 0x0f000f22, 0x10227984, 0x01820e00, 0x2d000c22, 0x04201b84, 0x34225784, 0x07849f00, + 0x3a001322, 0x51267384, 0x400040fe, 0x0b83c100, 0xff000023, 0x2c0182f8, 0xfff0fff0, 0xffe6ffe7, 0xffdfffde, 0x200182e8, 0xa37718f1, 0x4103200a, + 0x79100827, 0x28c70127, 0x0268ff10, 0x00bd0258, 0x5315722b, 0x00100026, 0x003f0016, 0x68220083, 0x06833601, 0x00150023, 0x23078340, 0xd3fff1ff, + 0x95210784, 0x077b42fe, 0x0084ff20, 0x83fffe21, 0x09235601, 0x23054b45, 0xfffbfffc, 0xfb240383, 0xe6fff3ff, 0xbe203782, 0x7f0acd69, 0x195b0dba, + 0x56032005, 0x0220080d, 0x2008ad56, 0x82098200, 0x2002823a, 0x06835738, 0x45ffc621, 0xff230c35, 0x828effda, 0x0000241d, 0x45ae003a, 0xca280c35, + 0xe7ff5bff, 0xe5ffe6ff, 0xe4200182, 0xe6200384, 0xe8220d82, 0x6d4de8ff, 0x82f02006, 0xfff42495, 0x84f9fffa, 0xff002235, 0x204182c6, 0x21818200, + 0xb34e0003, 0x00032105, 0x07248f83, 0x0d000800, 0x112c0182, 0x15001100, 0x18001400, 0x19001700, 0x1a200582, 0x19200582, 0x17200382, 0x15230f82, + 0x68002f00, 0x782205d9, 0x4d826afe, 0x89f77918, 0xd0820720, 0xbd026122, 0x20542542, 0x26fd8207, 0x0008004a, 0x820a0009, 0x00142601, 0x00150014, + 0x220d820d, 0x820e000d, 0x82002015, 0x00182200, 0x20058246, 0x89138800, 0x8415202b, 0x0021262b, 0xfff6ff41, 0x210182f3, 0x6f48fff2, 0x00ee2805, + 0xff60002f, 0x82b3ffe6, 0xb7bb1917, 0x0559780a, 0xffe9ff23, 0x204f83b9, 0x5d8918ff, 0xefff290c, 0xbbffddff, 0x6c002400, 0xf1224b86, 0x4d83e5ff, + 0x03822983, 0x1b00142a, 0x1d001a00, 0x38003600, 0x25220182, 0x1d84f0ff, 0xb7fff022, 0x26063d4c, 0x00a30037, 0x821c0010, 0xff102225, 0x267982ec, + 0xffe2ffe6, 0x82c8ffca, 0x18db2001, 0x220c89c4, 0x824d004b, 0x00332401, 0x84bc005e, 0xffee2283, 0x2c0182e8, 0xffcfffe5, 0xffcdffcc, 0x005d00de, + 0x261784ba, 0x002effbb, 0x82180012, 0x001b2701, 0x00330032, 0x9b480034, 0xffba2205, 0x2695822c, 0xffdcffdd, 0x82b6ffd7, 0x82b320df, 0x0001282d, + 0x02f3ff45, 0x18cb021c, 0x226ad34a, 0x722300d6, 0xf62408b3, 0xedfff6ff, 0xe3200182, 0xdb229982, 0x4b194300, 0x6f4f08a9, 0xfff12205, 0x240182eb, + 0xffe5ffe6, 0x220182e1, 0x82ecffdd, 0xffea220d, 0x22f584e9, 0x82e2ffe5, 0x000026bf, 0x0019001b, 0x26eb821a, 0x00160017, 0x82140015, 0x821a205b, + 0x18122013, 0x870a8396, 0x82e52063, 0xffdc2247, 0x05dd5ee7, 0x00130029, 0x00260039, 0x821e001f, 0x00172237, 0x335d180a, 0x82f62008, 0xffea265f, + 0xffdfffe0, 0x206782d6, 0x200382e8, 0x203382e7, 0x200382e8, 0x246f84e6, 0x00330035, 0x22038234, 0x8230003f, 0x00292401, 0x8225001c, 0x00312447, + 0x821d0024, 0x00172201, 0x26db8217, 0x00090011, 0x82260010, 0x823c2019, 0x096d6a13, 0x89511120, 0xe7e7180b, 0xfffa2408, 0x1af8fffb, 0x21085fb5, + 0x42180007, 0x6e820791, 0x82f9ff21, 0xfff12201, 0x20f984f2, 0x23bf82e6, 0xffebffec, 0x200b5747, 0x18198200, 0x220b17b0, 0x84eeffee, 0x20bf83b1, + 0x18b382e8, 0x240b995e, 0x00030002, 0x20018206, 0x20ed8209, 0x20e1820d, 0x1f651ac2, 0x000d220a, 0x7376180d, 0x3c0d4d30, 0x0283dc82, 0x4d39f54c, + 0x13220be3, 0xb56c3300, 0x4cd12036, 0xd6220acd, 0x8b19d6ff, 0x7a2018a3, 0x4c3dfb4d, 0x15412e79, 0x50012039, 0x7a180517, 0x0724daeb, 0x28020000, + 0x6d4bdf82, 0x0007343b, 0x002d003f, 0x0019002c, 0x000b000f, 0x0006000a, 0x82040007, 0x5e022001, 0x00200697, 0x33220084, 0x07849900, 0x615f1920, + 0x9aff2305, 0x0f84cffe, 0xff210482, 0x840482ff, 0x67411802, 0xffff2108, 0x0949f618, 0xf6fff524, 0x0182f2ff, 0xedffee22, 0x22066b76, 0x820e0000, + 0x001b246b, 0x82150010, 0x001b2c01, 0x0020001b, 0x0023001f, 0x82260024, 0x00282401, 0x83880044, 0x08d7554e, 0x0e02af22, 0xcf230f84, 0x44ff6aff, + 0xe9210983, 0x25a755ff, 0xc7820020, 0x00002b24, 0x7b183c02, 0x17204a47, 0x08477b18, 0xc5823320, 0x0d821920, 0x0f477b18, 0xb1844520, 0x7b18df20, + 0x81188e47, 0x022085c7, 0x200a4768, 0x36ab443b, 0xb04a0020, 0x383d6805, 0x3e252019, 0x21372d68, 0x8f18daff, 0x7a183ea5, 0x62286143, 0x3a020000, + 0x1100bd02, 0x2c437a18, 0x8f186220, 0x1d26089d, 0x7f005700, 0xb14c4000, 0xc1ff2c05, 0x81ffc0ff, 0x6effb8ff, 0x19000000, 0x2009b3ec, 0x8f8b1824, + 0x18da201e, 0x201037b8, 0x437a1834, 0x07a41240, 0x01237501, 0x1a001800, 0x205d6392, 0x225f823e, 0x18bd024b, 0x204e6f8a, 0x91b15566, 0x21061343, + 0x89550000, 0x00032c8b, 0x02000021, 0x00bd0248, 0x1855003b, 0x20747141, 0x08794401, 0x22002c22, 0x19288d82, 0x12001800, 0x0a001100, 0x0aa15f18, + 0xfafffb22, 0x2606f36d, 0xffe8ffef, 0x82deffe7, 0x18d22001, 0x2309e197, 0xd5ff0000, 0x1b831384, 0xefffef24, 0x0182f6ff, 0x1afffb21, 0x200d3fd5, + 0x83538211, 0x8222205b, 0x842b2065, 0xffe4223b, 0x240182ec, 0xfff4fff4, 0x1a5d82f8, 0x280b6d2a, 0x00020002, 0x00040003, 0x24018208, 0x000c000c, + 0x20018214, 0x2233821c, 0x841c0066, 0x000c240b, 0x8207000d, 0x0767491b, 0xff201a82, 0x24073349, 0xfff9fff8, 0x835382f3, 0x82e4205b, 0x2a028518, + 0x00360012, 0x000a0001, 0x82130009, 0x001930dd, 0x00200019, 0x0026001f, 0x00290025, 0x82230028, 0x82212001, 0x07836e11, 0x0b000a22, 0x0e11d81a, + 0xd182ff20, 0xedfff724, 0xfd82eeff, 0xe1ffe62e, 0xddffe0ff, 0xd8ffdcff, 0xdbffd9ff, 0xe0200782, 0xe6220f82, 0x1f82e6ff, 0xf5ffec22, 0xff260182, + 0x6400e8ff, 0xa1820500, 0xa9820820, 0x71820d20, 0x16001128, 0x1b001500, 0x75821a00, 0x07842020, 0x12240f83, 0x0e001100, 0x08202182, 0x04282982, + 0x8b0075ff, 0xf8fffcff, 0xf3240182, 0xeffff2ff, 0xeb226b82, 0x5582eaff, 0x5d82e520, 0x0784e120, 0x17830f83, 0xe182f320, 0xfb222783, 0xde828c00, + 0x79100120, 0x247801b7, 0x0268ff32, 0xd78b1855, 0x0002211d, 0x1a086d54, 0x2109bb68, 0x008200b4, 0xffbbff23, 0x21078431, 0x0f84ffe6, 0x01740023, + 0x0843595a, 0x590ffd53, 0xd3481b43, 0x82222005, 0x4a3f2087, 0x01213d0d, 0x20018200, 0x070f44bc, 0x2308eb59, 0xfff3fff2, 0x2205677e, 0x82f5fff4, + 0xfff52109, 0xf1211183, 0x716218ff, 0x83fc2013, 0x20c582d1, 0x22d386e7, 0x82040000, 0x00082401, 0x720a0008, 0x10280663, 0x13001000, 0x14001200, + 0x17200184, 0x13200584, 0x16220582, 0x79821600, 0x00223e85, 0xb34caf00, 0xffb62606, 0xfff6ff21, 0x200182f8, 0x086f7ffc, 0xa618ff20, 0x022208ab, + 0x5d820200, 0x07000322, 0x0c225f82, 0x57820d00, 0xbd841320, 0x46839820, 0xffc4ff25, 0x82e0ff4c, 0xffe722c5, 0x8fa518ec, 0xfff72208, 0xbba518fa, + 0x8202200e, 0x000422f4, 0x24418203, 0xff0c0008, 0x26398299, 0x00390001, 0x41300200, 0x23821dd7, 0x79017e22, 0xe9206784, 0x22060162, 0x94acffe4, + 0xffe8220f, 0x841783bb, 0x41d78703, 0x0f8f0fcf, 0x87845120, 0x68ff2e24, 0x87186802, 0x022125b7, 0x07e55613, 0xfff0ff23, 0x20878ece, 0x134318ab, + 0xffe4210c, 0xba200f87, 0x00231783, 0x426c0179, 0xa7902877, 0x240ccb5b, 0x0200001a, 0x20af8245, 0x2f275f15, 0x009d0029, 0x0080002a, 0x8240007e, + 0x21948201, 0x0182c0ff, 0xe8ff8224, 0x0c82d2ff, 0xc6ff0024, 0x078353ff, 0x00200023, 0x20078263, 0x2b038264, 0x00110000, 0x00230035, 0x001b001c, + 0x13979618, 0xe4ffe524, 0x2f4fddff, 0x00002108, 0x2005ff4a, 0x20338268, 0x0e336335, 0xc5ffec22, 0x64226384, 0x2b637cfe, 0xffef210e, 0x2205ed46, + 0x82e0ffe1, 0xfdb11a89, 0x05b7470d, 0xeb823720, 0xc4182120, 0x21244669, 0x6e002400, 0x1d24e182, 0x19001d00, 0x15220182, 0x35641400, 0xfff22210, + 0xd7df19f1, 0x82e2200a, 0xfff12297, 0x26bd84e1, 0x00b5ffe7, 0x19b10100, 0x210d0b49, 0x1b83b3fe, 0x000c0029, 0x001e0022, 0x82160017, 0x0010214f, + 0x09595319, 0xdf82f720, 0x1555ef20, 0x84f12006, 0x66048329, 0x51203903, 0x43050b42, 0x512008bb, 0x41107d64, 0xdd240951, 0xe7ffe6ff, 0xf020cd82, + 0x08b74a18, 0x02000023, 0x373b4d00, 0xa3003722, 0x2210334d, 0x19b2ffda, 0x4d14eff9, 0x3342273b, 0x42d99b1b, 0x0126112b, 0xf3ff5500, 0x2b6f2802, + 0xd801254b, 0x14002800, 0xe2820182, 0x82ecff21, 0xffd82f01, 0xffc9ffd8, 0xffb9ffc8, 0xffd7ffd4, 0x014effd6, 0x00262205, 0x2401822a, 0x001f0030, + 0x20018219, 0x182f8212, 0x26097768, 0xff050008, 0x822fff98, 0x00002840, 0x00ed004f, 0x18faff00, 0x240a359c, 0xffebffea, 0x210182e5, 0x0983ffe0, + 0x67830385, 0x2f84ee20, 0x29345783, 0x47002c00, 0x37003800, 0x30005200, 0x43004200, 0x57005600, 0x43200582, 0x31200d82, 0x08077518, 0x25052f57, + 0x00c0ffdf, 0x7b83001d, 0x65823e82, 0xf3fff922, 0x4f830182, 0xe6ffe524, 0x0182dcff, 0x1882d520, 0xc7820020, 0x0784c420, 0xe0ffdc22, 0xe4200182, + 0xea207f82, 0x7f197f82, 0x04240b95, 0x07000400, 0x0b250182, 0x0f000b00, 0x825782ff, 0xfff72233, 0x213583f7, 0x75821700, 0x2800022c, 0x5502f3ff, + 0x2900cb02, 0x0d475500, 0x5b002042, 0x0d850dd8, 0x1a230221, 0x280a8d87, 0xffcdffce, 0xffceff9c, 0x240182db, 0xffe9ffe9, 0x24d982f2, 0xffedfffe, + 0x47c984db, 0xf7530707, 0x0e002706, 0x02002a00, 0x01820d00, 0x43821820, 0x2400252f, 0x33003200, 0x25002600, 0xf4ff35ff, 0xc34518ff, 0x00062407, + 0x820c0005, 0x00132601, 0x001b0013, 0x2409820f, 0x0009000b, 0x19f7820a, 0x200b37de, 0x209c8203, 0x26658402, 0xfffffffe, 0x82fcfffd, 0x21418201, + 0x7d82f5ff, 0xe5ffed22, 0xed280182, 0x4d00ecff, 0x44002d00, 0x5c260182, 0x5b00b600, 0x2f845c00, 0xebffea24, 0x0182d6ff, 0xc5ffc424, 0x1183b4ff, + 0xe7202582, 0x0c113419, 0xeb004e22, 0xb1240f84, 0xc3ffc4ff, 0xd5222982, 0x8f72ecff, 0x00162406, 0x18630016, 0x2208e18b, 0x8237004e, 0x82212001, + 0x0011220f, 0x83318410, 0xfff82285, 0x20cd82f7, 0x065f44f4, 0x8b84ea20, 0xdeffdf24, 0x0182d8ff, 0x9b830783, 0xeaffeb24, 0x181af0ff, 0x0223101b, + 0x55001700, 0x2f220593, 0xbf414100, 0x244f8243, 0x0051001a, 0x22a18215, 0x821f0020, 0x820f20a3, 0x000b2403, 0x83610030, 0x190021ad, 0x0882f982, + 0xffc6ff23, 0x24e78250, 0xffd0ffd1, 0x220182e0, 0x82f0ffef, 0x00002214, 0x24018205, 0x000b000a, 0x2001820d, 0x21378210, 0x01820012, 0x82e9ff21, + 0x82de20c9, 0x82ee20b9, 0x01f128bf, 0xffb9ff17, 0x84dcffdc, 0x1909202f, 0x220cbd35, 0x8358002c, 0xdeff2115, 0x03820583, 0x3700242a, 0x35003600, + 0x1a001c00, 0x13200182, 0xb6221b84, 0x078321ff, 0x21073345, 0xfc190000, 0xdb2208d1, 0x8d82dbff, 0x6d82e320, 0xeeffe826, 0xf1ffedff, 0xf52c0182, + 0xf8fff5ff, 0xfafff7ff, 0xc7ffdaff, 0xc828b382, 0xe5ffe2ff, 0x6301e5ff, 0x1e204382, 0x3d22dd82, 0xef822000, 0xa9821820, 0x08001022, 0x16820182, + 0xc1225182, 0x088446ff, 0x4400022a, 0x3002f3ff, 0x81001b02, 0xa539fe19, 0x006d0122, 0x095f7b18, 0x0b820920, 0x01c1fa11, 0x09002132, 0x20259c19, + 0x6118f320, 0x774f0a5b, 0x18062005, 0x200cf1a3, 0x22438206, 0x820a0008, 0x84092001, 0x21058303, 0xfa19000a, 0x002ceb99, 0x3e000200, 0x2402f3ff, + 0x7700ec02, 0x8c714d18, 0x13f56618, 0xd4ffd428, 0xe8ffc6ff, 0x0182e9ff, 0xebffea2e, 0xecffedff, 0x0300f0ff, 0x01000000, 0x03210382, 0x056d7100, + 0x12000f28, 0x17001300, 0xfc180b00, 0x0b2c0cbf, 0x0f003c00, 0x1e001000, 0x05000600, 0x05260388, 0xeeff0500, 0x0182fbff, 0xfafff822, 0xfc200784, + 0xfa200584, 0xe2260d82, 0xe3ffe4ff, 0x0182e6ff, 0xe6206f85, 0xea227182, 0x0182f0ff, 0xa550f420, 0x82fa2006, 0x82fc202b, 0xff002279, 0x840583ff, + 0x83088385, 0x095e478d, 0x038d1183, 0x89820f20, 0x0b476e18, 0x07393719, 0x24002324, 0x01824700, 0x07822420, 0xff253182, 0xffddffdc, 0x068545b9, + 0x46183920, 0xfc241ae5, 0xf9fffdff, 0xf6280182, 0xf0fff5ff, 0x04000e00, 0x0c775f19, 0x6d821120, 0x0c000e24, 0x15820500, 0xe17e0420, 0x8205200a, + 0x820220af, 0x28ad8d0f, 0x00210002, 0x00090008, 0x20538211, 0x215d18ff, 0x82002007, 0xffff21e1, 0x20085b7a, 0x286b86fa, 0xfff1fff1, 0xffeeffed, + 0x254d18eb, 0xffe92608, 0xfffbffea, 0x220184fa, 0x82f8fffb, 0x82f52027, 0x82f42093, 0xfff32403, 0x82f6ffd9, 0x82ec2001, 0x5ffc2045, 0xf72a06d5, + 0xf2fffcff, 0xcfffc1ff, 0xe982d0ff, 0x4d18de20, 0x11220851, 0x37191200, 0x33221cd9, 0xb7823300, 0x0000782a, 0x0e020f02, 0x3f002900, 0x21591149, + 0x6b827800, 0x30009b23, 0x059b7000, 0x0d001a22, 0x00240182, 0xf9ff0000, 0xf220e382, 0xe927bd82, 0xdfffe8ff, 0x7c001800, 0x0d2205e3, 0xe37c0500, + 0x201d8205, 0x062948f9, 0xecffee26, 0xe9ffebff, 0xe6240182, 0x7cffbeff, 0x5c203c82, 0x00220382, 0xb5821c00, 0x10001522, 0x0b220182, 0xf5180b00, + 0xf5260ce1, 0xf1fff5ff, 0x3582f0ff, 0xc548da20, 0x001e2406, 0x821a005b, 0x18132063, 0x190c3188, 0x200d7516, 0x835584d8, 0x63092004, 0x1d2006e7, + 0x27286382, 0x15001900, 0x11001400, 0x06216786, 0x05274300, 0x11821020, 0x12001222, 0x16201b82, 0x0f205784, 0x0aef6318, 0x23820420, 0x00830020, + 0xff7dff27, 0x002400ad, 0x230b836c, 0xfaff0000, 0x0b9d6118, 0xf3209f82, 0xf622e182, 0xdd49f6ff, 0x0fff2507, 0x81002a00, 0xc7832b8a, 0xc982f220, + 0xecffef24, 0x0182efff, 0xf3fff322, 0x0823b918, 0x9a000128, 0x11020000, 0xd1820e02, 0x820c8b4a, 0x00172217, 0x22458445, 0x83d40047, 0xa2ff2307, + 0x0783e7fe, 0x72220384, 0x07845601, 0x35001122, 0x087f2a19, 0x34000226, 0x34027aff, 0x2b204b82, 0x4fc15318, 0x00340025, 0x83390013, 0x5a002369, + 0x07840f01, 0x38001322, 0x63677984, 0x749d8b07, 0xfe200de5, 0x230a6d67, 0xfffdfffc, 0x2205ad7e, 0x82e9fff5, 0x82a5203f, 0xfffc230d, 0x6343fffc, + 0x22118206, 0x82010000, 0x055d5f01, 0x18000221, 0x84106d65, 0x00302221, 0x227b848e, 0x837affcf, 0x21002307, 0x0f846500, 0x9cffde22, 0x00230783, + 0x849a0033, 0x01722207, 0x2c178455, 0xff6effcf, 0xfff3fff7, 0xfff0fff4, 0x220384ef, 0x82eeffee, 0x84ef2009, 0xfff3210d, 0x0d737719, 0xccff0022, + 0x3883ef82, 0x00228983, 0x8f840200, 0x20058952, 0x28918204, 0x00120013, 0x00200023, 0x2b01821b, 0x00150014, 0x000f000e, 0x002a0007, 0x9f226b85, + 0x3a82e0fe, 0x23054f46, 0x001b022c, 0x58235819, 0x00b20125, 0x82190018, 0x1d8d1901, 0xfdff249e, 0x19000500, 0x26a30d8d, 0x001e0001, 0x184c0200, + 0x2862db58, 0x0016001e, 0x00060043, 0x20018208, 0x06814409, 0x0a000b24, 0x01821000, 0x83000a21, 0x00152200, 0x8806833f, 0x840c2013, 0x00112225, + 0x22318209, 0x82070008, 0xff3c24a9, 0x82e8fff0, 0xffe92201, 0x220182f4, 0x82f8fff5, 0x22438315, 0x8215000c, 0x00162a5d, 0xffdeff0f, 0xfff8ffbe, + 0xa59c18f5, 0x4ce92008, 0xff2305f5, 0x83c1ffeb, 0x211b8a5b, 0x1b82ffe9, 0xffdfff23, 0x245d82be, 0x000a000a, 0x8343880b, 0x201d8363, 0x204582f3, + 0x823583f5, 0x82102003, 0x0015265f, 0x002c0018, 0x2001822d, 0x73e0181f, 0xffc92208, 0x281d8292, 0x00290000, 0x000f007c, 0x2401821a, 0xffe1ff10, + 0x200182d3, 0x22a782d4, 0x85eaffeb, 0x281f827f, 0x003e003e, 0x0020003c, 0x2401821d, 0x000c0016, 0x22dd8410, 0x82230021, 0x84172001, 0xfff32a9b, + 0xffefffee, 0xffdcffed, 0x240182db, 0x004300e7, 0x26178487, 0x0068ffce, 0x8212000d, 0x0013242f, 0x82250024, 0x84192001, 0x82f42017, 0x82f02085, + 0xffdf222f, 0x240182dd, 0xffd7ffe9, 0x260182c2, 0xffe0ffc4, 0x82e3ffe3, 0x87751821, 0x4e5d2009, 0x35504375, 0x22138813, 0x842200cf, 0x237682a1, + 0xf6fff7ff, 0xec2a9582, 0xe6ffe7ff, 0x1e00e0ff, 0x01821700, 0xef821020, 0x08000922, 0xf120b784, 0xe224b782, 0xd6ffe1ff, 0xcc24b182, 0xd2ffd9ff, + 0xcb200182, 0x00211983, 0x2129821b, 0x73180018, 0x2320093b, 0x1c201182, 0x13215782, 0x01691800, 0xfff72209, 0x200182ee, 0x245b82e6, 0xffe4ffde, + 0x243784c9, 0x003c0013, 0x22698225, 0x8215001d, 0x000a223d, 0x2867840a, 0xfff5fff5, 0xffeaffe9, 0x260182df, 0xffcdffd4, 0x52d3ffd4, 0x31220643, + 0x01822e00, 0x3f002b24, 0x01823000, 0x35822120, 0x3d821e20, 0x6d822520, 0x81821720, 0x11001124, 0x01820b00, 0x06000622, 0x09204982, 0x0f22b982, + 0x01821300, 0x20001626, 0x18001900, 0x12200982, 0xfa248f88, 0xf4fffbff, 0xcc208b82, 0x05242b82, 0x03000500, 0x01220182, 0x7f840200, 0xfafffb24, + 0x0182f6ff, 0xf3fff322, 0xf020f182, 0xf3200582, 0x17820f84, 0x00231f83, 0x69f0ff00, 0x0020066b, 0x23083f52, 0xffeffff0, 0x2005115b, 0x205782ef, + 0x083347f4, 0x08000828, 0xe5ff1000, 0x4582caff, 0x2a19fa20, 0x0a2a084f, 0x61000100, 0x0d020000, 0xc2180e02, 0x61202453, 0x4520dd82, 0x1520cf82, + 0x1720f182, 0x2006cb42, 0x478b841d, 0xff250677, 0xffbbffe9, 0x06bf42e3, 0x8982e920, 0xbf42eb20, 0xa75a1805, 0x322d8209, 0x00210019, 0x00250020, + 0x00460043, 0xff2f0045, 0x1903ff81, 0x220cb15c, 0x82baffd2, 0xffbd2401, 0x82dfffdc, 0x00e72401, 0x47fd007f, 0xaf850aaf, 0xe518dd20, 0x97683e2b, + 0xfff92205, 0x200182e7, 0x239d82d6, 0xffeffff0, 0x09837418, 0xb419ec20, 0x95201043, 0x0221f9bd, 0x19c184dd, 0x221353b1, 0x8411000d, 0x19bd201b, + 0x620c53b1, 0x294105d7, 0x00012639, 0x02000076, 0xc77c1859, 0x223d8237, 0x83470018, 0x0d002597, 0x16001500, 0x0d220582, 0x01821200, 0x24001424, + 0x01822600, 0x03821920, 0xefff4b2c, 0xebffeaff, 0xd3ffe7ff, 0x0182d1ff, 0x0f00e124, 0x23821300, 0x27001522, 0x7e57971a, 0x91004922, 0xff2bbb83, + 0x0001007d, 0x02000019, 0x740e0217, 0x19243c3d, 0x15000600, 0x14224982, 0xe3821400, 0x0d000f22, 0x0a200182, 0x09240382, 0x05000900, 0x03221b82, + 0x6f820400, 0x8205f948, 0x22028208, 0x439c0035, 0x9d220c17, 0x0f84dafe, 0x5b180484, 0xff200873, 0x280a7d4d, 0xffefffef, 0xfffaffea, 0x852284f4, + 0x00042404, 0x82070003, 0x000a2601, 0x000e000a, 0x22838211, 0x48180014, 0x1a2108c1, 0x22018300, 0x53260019, 0x8e2206af, 0x4743aafe, 0xffd1260c, + 0xffebff74, 0x200182ec, 0x260782eb, 0xfff0fff0, 0x82e0fff3, 0x6ce92063, 0xee200ee1, 0x1f24bb84, 0x4e020000, 0x21382f42, 0x0144001f, 0x09002506, + 0x0d000c00, 0x19200182, 0x11269d84, 0x3d001f00, 0x0b841200, 0x15821920, 0x1d820c20, 0x19410a20, 0xffe9240c, 0x18e9ffbb, 0x200c0d60, 0x200f82f3, + 0x221182de, 0x82eeffdf, 0xfff026b3, 0xffe1fff4, 0x833384c3, 0x01572204, 0xbda81805, 0xffd82208, 0x200182d6, 0x231683e5, 0x2a001b00, 0x28210182, + 0x06934c00, 0xff8cff23, 0x0c0d4118, 0xc4ffd922, 0xc7200182, 0xe4284b82, 0xebffe4ff, 0x3c002700, 0x39200182, 0x1c249f82, 0x15001c00, 0x26082f42, + 0x0200005e, 0x180e020a, 0x201c63a3, 0x22ed885e, 0x8fb7003d, 0x224984cd, 0x8449ffc3, 0x83dd8207, 0x22038407, 0x84b6003c, 0xffc32213, 0x22998c4b, + 0x845fffcb, 0x0036220f, 0x0ae744a0, 0xf3ff4525, 0x18022402, 0x41f9bb6d, 0x0f200787, 0x20117b48, 0x197f4100, 0xbffe9523, 0x4d008700, 0xff2006ef, + 0x200f1743, 0x2a20827d, 0xff5f0002, 0x022a0237, 0x6e23001b, 0x002137db, 0xcd6c185f, 0x591e2016, 0xf12e0ad7, 0xe3fff2ff, 0xdaffe2ff, 0xceffd9ff, + 0x0782ccff, 0x961ada20, 0x5c2010a3, 0x22268f82, 0x45002200, 0x6c184200, 0xbe220cd1, 0x6c18bbff, 0xc31924d1, 0x0c261945, 0x15001600, 0x5f820c00, + 0x4bff0024, 0x6c18aeff, 0x01261ed5, 0xf3ff5200, 0x52180302, 0x90246223, 0x0a000b00, 0xae190182, 0x12219d89, 0x078b5a00, 0x0d004022, 0x0b22ad82, + 0xd54ef5ff, 0x00022406, 0x19040002, 0x249661ae, 0xffcdffcc, 0xcb9a18db, 0x8400200a, 0x00012900, 0x0100006a, 0x000e02fe, 0x20124f43, 0x61681801, + 0x00272209, 0x232f8375, 0xd1fe9bff, 0x00200783, 0x0b840f86, 0x220f3f51, 0x84cbffef, 0x828e202b, 0x00012605, 0x0237ff39, 0x205f8246, 0x11af4359, + 0x511cf94b, 0x299f0cc1, 0x18610021, 0x2226bbf5, 0x18040005, 0x220845e0, 0x67030002, 0x0422063b, 0x01820500, 0x0a000723, 0x05a95700, 0x1c001a30, + 0x12001b00, 0xbfffdfff, 0xf2fff6ff, 0x0182f1ff, 0xe2ffe328, 0xedffe1ff, 0x281af4ff, 0x23820ec5, 0x000f0023, 0x06454d11, 0x26002724, 0x33822300, + 0xf8fff824, 0x0182f9ff, 0x0382fa20, 0x0fd1c819, 0x4582f520, 0x6818dc20, 0x002008df, 0x06207982, 0x22066756, 0x1812000d, 0x26a08ff5, 0x0237ff34, + 0x69db0235, 0x93427883, 0x00252209, 0x2701821e, 0x00170017, 0x00110012, 0x135b0a19, 0xefffef24, 0x0182e9ff, 0xe1ffe222, 0x4706635e, 0xff230677, + 0x82e2ffdb, 0x251b8301, 0xffeeffef, 0x011afff6, 0x0a200fcf, 0x5b835384, 0x2405c14d, 0xff000000, 0x08a957ec, 0xa154f720, 0xfdff2205, 0xa1e61aff, + 0x00062c09, 0x000a0005, 0x000d0009, 0x8210000c, 0x82142001, 0x005c2232, 0x20998214, 0x20118211, 0x2119820c, 0x23830009, 0x09550420, 0x97971805, + 0x5df72008, 0xec200aff, 0x2e081542, 0x008d002f, 0x00080004, 0x000f0009, 0x8216000e, 0x001e2401, 0x8226001d, 0x002f2201, 0x2007842f, 0x830f821d, + 0x201f8317, 0x25278209, 0x00400004, 0x00820080, 0xffd0ff25, 0x82fcff70, 0xfff72655, 0xfff1fff2, 0x240182ea, 0xffe3ffe3, 0x220182da, 0x84d1ffd1, + 0x82e32007, 0x831783fb, 0xfff7221f, 0x222d82f8, 0x828700c1, 0x8207206f, 0x204b83a1, 0x2075820f, 0x06bd4e14, 0x27002624, 0x6b821c00, 0xcb821420, + 0x93831783, 0x27820620, 0x7aff0424, 0x39828600, 0xfafff922, 0xf8206b82, 0xf2226b82, 0x0182ecff, 0xd9206b83, 0xe2206582, 0xeb206382, 0xf1200f82, + 0xe3838382, 0xf9fffa24, 0x6582fcff, 0x01000022, 0x0024bf82, 0x0e024302, 0x4c6b9e18, 0x1b002628, 0x0b004f00, 0x01820e00, 0xaf821020, 0x1e001e22, + 0x0f8fb182, 0x47002422, 0xfa6b941a, 0x7aff5c24, 0xc34a4d02, 0x0202261d, 0x38001300, 0x23008200, 0xccffeeff, 0x230bab4a, 0x4affc3ff, 0x00250f8b, + 0x003c016a, 0x06355600, 0x220f2556, 0x56abfe8e, 0x7d210c35, 0x053f46fe, 0x1582de20, 0x53000128, 0xff010000, 0x7b4d0f02, 0xa301213b, 0x20076549, + 0x07d343ff, 0xf1fff022, 0xf2220184, 0x8518f0ff, 0xf3240a95, 0xf5fff2ff, 0xe7420182, 0x82fb2005, 0x2302827f, 0xbcffe9ff, 0x02830682, 0x0d000c28, + 0x19001800, 0x01822100, 0x254c2a20, 0x00102206, 0x63971810, 0x4307200a, 0x2c8305b1, 0x01840023, 0x2b07838b, 0x50ffc5ff, 0xfbfff7ff, 0xfdfffaff, + 0xff200182, 0x2008ad5b, 0x262b8201, 0x00070003, 0x820a0006, 0x05474301, 0x72003a22, 0xd5263384, 0xd4ff7fff, 0x0182e0ff, 0xedffec22, 0xf6203d82, + 0x00211583, 0x20018202, 0x20358203, 0x20038404, 0x220f8404, 0x82b7ff01, 0x0001261b, 0x0200003e, 0x1daf412b, 0x7c222382, 0x5f847101, 0xc0ffeb22, + 0xe2220784, 0x0784a6ff, 0x9b54eb20, 0x4c0f8e06, 0xa7410c63, 0x200f8f0f, 0x2487847d, 0x027aff34, 0x250b5268, 0x001e0223, 0x063f4212, 0xcaffef22, + 0xa7948796, 0x017b0023, 0x284f426f, 0x5f42a790, 0x00022a0a, 0x0200001e, 0x000e0255, 0x38c34b1d, 0x37009a2a, 0x3600a500, 0x29002800, 0x8f654d82, + 0xfff12309, 0xab19fff2, 0xd520097f, 0x22061d6a, 0x835effca, 0x1f0023e9, 0x8b5b5d00, 0x220b8308, 0x8218001e, 0x00112301, 0x44190011, 0xf82109f5, + 0x07d967ff, 0xd6ffe222, 0x02852d82, 0x0a000a24, 0x01821300, 0xb3821d20, 0x75822820, 0x1e001d22, 0x14220d82, 0x17820900, 0x36222185, 0x08839f00, + 0x5d493d82, 0xf4fe2506, 0x7e002a00, 0x5b0e1b5b, 0xea2005e3, 0x0e6b7018, 0x0300002c, 0x00003400, 0x0e023402, 0x45181900, 0x34283e31, 0x66002200, + 0x29003600, 0xad830182, 0x79180f20, 0xf120089f, 0x22061941, 0x82cbffd8, 0x84e2207f, 0xffea26ad, 0x010000bb, 0x0dab43a4, 0x83b7fe21, 0x0b00211b, + 0x1f21e382, 0x05214100, 0x11cf8e19, 0xe8ffe826, 0xf3ffe1ff, 0x44322141, 0x0023066b, 0x848a0184, 0xfe7d2483, 0x472a00be, 0x0025051b, 0xfffaff00, + 0x9f4818fb, 0xffeb2408, 0x82f0ffea, 0x0b837101, 0x02000024, 0x04827100, 0x0e022b24, 0x97761900, 0x4271202c, 0x29220633, 0x33422800, 0x054b7a06, + 0x23093342, 0xffccffd8, 0x44073342, 0x5c2005b5, 0x0027a183, 0x005d001f, 0x82200040, 0x5f821801, 0x131b4209, 0x28001c22, 0x1e200182, 0x22181b42, + 0x8abdfe7d, 0xffea24e9, 0x82d6ffeb, 0x66eb206f, 0x012a068d, 0xf3ff7100, 0x1b022202, 0x8b4b4d00, 0x82a22050, 0x001723c3, 0xeb420017, 0xffed240b, + 0x82dbffee, 0xffcf2601, 0xffc0ffce, 0x067352ec, 0xedffed22, 0x087f7b18, 0x12001122, 0x13240184, 0x15001400, 0x2f433d82, 0x82132005, 0x000f2213, + 0x0631490f, 0x03000625, 0x82ffa7ff, 0x00002db1, 0xcc004400, 0xf4fffdff, 0xeafff3ff, 0xdf2a4d82, 0xd2ffdfff, 0xdaffd3ff, 0xd96bd9ff, 0x83458205, + 0x20038349, 0x22518414, 0x8224002b, 0xc15f1801, 0xfffb2427, 0x82f8fffc, 0xfff62601, 0x00c4ffe1, 0xa57a180e, 0xfff52414, 0x1af1fff6, 0x2008adb3, + 0x055941ed, 0x6eefff21, 0xd6200645, 0x21059956, 0xa383e6ff, 0x0020af82, 0x0e28c582, 0xe2ff1d00, 0xf5ffc4ff, 0xf9205982, 0x0cf59e19, 0x0800082e, + 0x3b000200, 0x5c02f3ff, 0x35001b02, 0x6a094218, 0x1500fc26, 0x11001200, 0x0d24e382, 0x07000600, 0xff20a983, 0x2005f95f, 0x088768f2, 0xe8ffe828, + 0xdaffe5ff, 0x0182e0ff, 0x0982e520, 0xf782f120, 0x1382fc20, 0x0348d120, 0x07dd530c, 0x36001124, 0xed820400, 0x1b000f22, 0x20300182, 0x27002100, + 0x18001900, 0x5fff1700, 0xfffffcff, 0x2008274b, 0x21258202, 0x6d4d0003, 0x820e2005, 0x00112681, 0x00130014, 0x20018210, 0x228d820d, 0x84080007, + 0x61fe205d, 0xfb2406cd, 0xfafffbff, 0xf8200182, 0xf7249d82, 0xf7fff6ff, 0xf6220182, 0xa382ebff, 0xf3ffee22, 0x1f821782, 0x16267384, 0x1e001700, + 0x73821f00, 0x2f002822, 0x27220182, 0x0d822600, 0x82001e21, 0x871f847f, 0xe1c51857, 0xffd32209, 0x236983c4, 0xab003900, 0x33447184, 0x00392207, + 0x220f84aa, 0x47d4ffc8, 0xf02006ab, 0x2105a958, 0x01820700, 0xab82af20, 0x2205a942, 0x82150017, 0x00122201, 0x22c38412, 0x6b1c000e, 0xf33008b1, + 0xe7fff4ff, 0xdbffe6ff, 0xd1ffdcff, 0xeaffe9ff, 0xed230182, 0x82ffedff, 0x20b38247, 0x064d58f1, 0x09137918, 0x39820e20, 0x0d001c22, 0x002ca784, + 0x59000200, 0xf1010000, 0x37000e02, 0x285a8162, 0x00170059, 0x00100043, 0x20018218, 0x287b8216, 0x000b000b, 0x00210008, 0x23fb8341, 0x45001600, + 0xff230783, 0x826cffce, 0x82e920c9, 0xffeb22c3, 0x106d61eb, 0x03000324, 0x01820600, 0x07000826, 0x09000a00, 0x07830184, 0x49820820, 0xf7ff0622, + 0xf322e784, 0x4182e8ff, 0xb900e722, 0x08a9f518, 0x611af620, 0x65830b31, 0xcb564582, 0x20378305, 0x8349820a, 0x00092203, 0x06fb7f26, 0x2384e320, + 0x1a000026, 0x27002800, 0x14251582, 0x12001300, 0x05574500, 0x45071f55, 0x002106e7, 0x5be31a00, 0xfff42208, 0x20af84f4, 0x22b782ea, 0x60edffe5, + 0xf3200699, 0x2208074a, 0x82fafff9, 0x82fb202b, 0xfffd2403, 0x82f1fffd, 0xffed3021, 0xffd8ffea, 0x01d6ffd7, 0x00000002, 0x18020001, 0x830837ea, + 0x000c26d3, 0x0010000c, 0x2005820f, 0x20e7840d, 0x20f38207, 0x20218204, 0x08d56202, 0x80ffd522, 0x00203782, 0x3e200f82, 0x08cb051a, 0x80184b20, + 0x20246c03, 0x3a001300, 0xe625e982, 0xe7ffe6ff, 0x1fd818ff, 0xa6002118, 0x18a5e960, 0x2028f3a5, 0xa6116186, 0x04000032, 0xf3ff3e00, 0xd8022c02, + 0x2f001700, 0x83006700, 0x53508547, 0x53532c33, 0xf97d1808, 0x8200200a, 0xfcff2700, 0xf8fffdff, 0x5b1ae8ff, 0x002217e1, 0x711800f4, 0xe8201319, + 0x18415c1a, 0x71421620, 0x827920a6, 0x000422fc, 0x22dd8203, 0x822d0016, 0x8d951905, 0xfff9250f, 0xffd3ffea, 0x09ddac19, 0x00202e82, 0xfd212faa, + 0xa6a94284, 0x26000128, 0x3e0237ff, 0xf966db02, 0x4b01234f, 0xe7623c00, 0xb7781805, 0xf5ff2109, 0xea240182, 0xdeffebff, 0xd1290182, 0xd6ffc4ff, + 0xe7ffd5ff, 0x22008300, 0x83a90038, 0xc7ff2306, 0x734858ff, 0x0b4c180b, 0x17002307, 0x17834700, 0x45200782, 0xdb180784, 0x1b280997, 0x25001a00, + 0x16002100, 0x0c200182, 0x0c4b8d1a, 0xf6fffc22, 0xf32b0182, 0xeffff2ff, 0xedfff0ff, 0x53ffeeff, 0x0a240573, 0x1d001c00, 0x3a249b84, 0x44003900, + 0x2a240382, 0x1b002b00, 0x280ad747, 0xffe8ffe9, 0x003f00d2, 0x226b847c, 0x84320011, 0x00342207, 0x229b8499, 0x8466ffcd, 0x07094a07, 0xa8fe8d22, + 0x00270f83, 0x005c001f, 0x821e0029, 0x00162207, 0x20898215, 0x2025840a, 0x208382f7, 0x267d82ee, 0xffe5ffe5, 0x84d8ffdc, 0xffe322fb, 0x4cd982e4, + 0xfc22098f, 0x2b82e6ff, 0x9a00022a, 0x1f020000, 0x13000503, 0x21238961, 0x27822f01, 0xc8183a20, 0x1e200aed, 0x14247b82, 0xbdffdfff, 0x0e39de18, + 0x35416220, 0x0c116908, 0x82540221, 0x19002073, 0x200ced53, 0x82b78221, 0xe9e41914, 0x57a0200e, 0x7d2414f9, 0x53000100, 0x20062b5a, 0x52dd444f, + 0x4a19b420, 0xe1280cc7, 0xdaffd9ff, 0xd3ffd2ff, 0xdf22df82, 0xa182eaff, 0xf4fff428, 0x5a00fdff, 0x9d83b500, 0xffcdff2b, 0xffb5ffb4, 0x000300bd, + 0x24018207, 0x00090009, 0x2001820e, 0x26438212, 0x00190019, 0x4918001d, 0x132206c3, 0xbf181100, 0xeb200873, 0x0861c41a, 0x22051f5f, 0x74ceffc1, + 0xee2206af, 0x5583eeff, 0x82080021, 0x18102047, 0x22088980, 0x8224001f, 0x002a2801, 0x00140016, 0x43fcff14, 0x0b2406e1, 0x3c001e00, 0x0ac1c119, + 0x0c000d24, 0x63521a00, 0x42468308, 0xff21063f, 0x200c82ff, 0x223b8215, 0x82120013, 0x000e2401, 0x420a000f, 0xc41a0aaf, 0x0f1a135f, 0xba190f3f, + 0xd52a0ddb, 0xdaffdbff, 0xe1ffe2ff, 0x0182e8ff, 0xf0ffef22, 0x0c61a418, 0x01000024, 0x9f416a00, 0x41612006, 0x7f46529f, 0x00c82211, 0xa39d181d, + 0xffdd2808, 0xffbbffdd, 0x18e7fff4, 0x530849fc, 0xfa230599, 0x19fff5ff, 0x209ab54c, 0x11ec1800, 0x02002cc2, 0xfcff7200, 0xdb020e02, 0x18001700, + 0x283e0749, 0x08003801, 0x05000400, 0x20008600, 0x05374fff, 0xd5ffeb22, 0x0af5e718, 0x05201b83, 0x08262582, 0x3c001500, 0xc960caff, 0x001e2206, + 0x8218835d, 0x000b2203, 0x1889820b, 0x240bd959, 0x00140012, 0x06b16227, 0xb0ffe526, 0xefffeaff, 0xf4200182, 0x19091b42, 0x212f0188, 0x9145a0ff, + 0x27051a0c, 0x1800201d, 0x200a9faa, 0x24df8207, 0x000f000e, 0x24bb8216, 0x0071001e, 0x063b4103, 0xb182cc20, 0x53002f22, 0x21553743, 0x5549c900, + 0x83fc201c, 0x200384cb, 0xd3201a04, 0x41ec2036, 0x7d184685, 0xff215e6f, 0x46b541a1, 0x0200002c, 0x37ff7700, 0xdb02a201, 0x07561700, 0x92012537, + 0x04000800, 0x94830182, 0x614e0382, 0xffeb2306, 0x5e19ffd4, 0x1782095b, 0x08252384, 0x10ff1600, 0x69831900, 0x186e2035, 0x1908c57e, 0x2124f785, + 0x2f82c9fc, 0x0d210283, 0xbb851900, 0x0008292f, 0x02680200, 0x0051000e, 0x63bf1a19, 0x05000828, 0x1b000f00, 0x01821500, 0x69500e20, 0x82092006, + 0x00092207, 0x080d5d0a, 0x4c000221, 0xcf83058a, 0x1c000024, 0x08845600, 0x48001722, 0x19243782, 0x16001900, 0x13220182, 0x35821200, 0x07000d22, + 0x230a0b73, 0xfff2fff2, 0x09d78818, 0xe5ffe824, 0xc16afcff, 0xb9ff2305, 0x66182dff, 0xff270d25, 0xff0000ff, 0x74fdffff, 0xf024083f, 0xeaffefff, + 0x21055567, 0x2b849001, 0x59820120, 0x1a003422, 0x0e826f82, 0xffe7ff27, 0xffccffe6, 0x850a82fd, 0x48042002, 0x08240845, 0x10000b00, 0x1420cd82, + 0x08c56618, 0x18001822, 0x16260f82, 0x31001200, 0x2e836300, 0x22085964, 0x82040000, 0x5f0820ff, 0x16200ad3, 0x1a22cb82, 0x2f861b00, 0xd3841120, + 0x08000922, 0x04202582, 0x03823983, 0x2007e757, 0x28a567d1, 0xf3551320, 0x0002281a, 0x02000035, 0x820e0263, 0xf144189b, 0x214d8242, 0x4d6f0015, + 0x002e2205, 0x20ad8288, 0x20fb8200, 0x0aa74147, 0x13001222, 0x230ca741, 0xfffafff9, 0x2205a741, 0x82eaffee, 0xffe72101, 0x200ba741, 0x06a15aeb, + 0x77ffd322, 0x2109295a, 0x0b835e01, 0x00020029, 0x00340005, 0x841a0019, 0xffe62419, 0x54ccffe7, 0x00220645, 0x31673c00, 0x3b67410e, 0x57106567, + 0x21261e43, 0x2b020000, 0xbb5cdb02, 0x8000253b, 0x44001700, 0x200eb34c, 0x26eb8219, 0x001d0021, 0x41150014, 0x25820b41, 0x8f531720, 0x00002905, + 0xd5ffd6ff, 0xc6ffabff, 0xd7200782, 0x2008234d, 0x222182a8, 0x4dc8ff00, 0xbc200823, 0xe8220f84, 0x0783b9ff, 0x4d180021, 0x0c830623, 0x24158b4c, + 0xfff8fff8, 0x063752ef, 0xcdffdd24, 0x2a839bff, 0x00260029, 0x006a0072, 0x84360035, 0x2efb4c4d, 0x02203382, 0x2305676c, 0x13000603, 0x49f57018, + 0x00050125, 0x823a0014, 0x001e2103, 0x1a05795a, 0x2116850c, 0xf78860ff, 0x2058a56c, 0xc90d1a02, 0xfde02325, 0x00830095, 0x9e003524, 0xc41a0b00, + 0xcd6c4e25, 0x19002009, 0x20081f78, 0x18638206, 0x20379357, 0x0c41544e, 0xf4fff325, 0x1afff3ff, 0x25112b39, 0x0027ff1e, 0xed6f0017, 0x2639413a, + 0x96fddf23, 0x6e008300, 0x022039eb, 0x20067b66, 0x19af82dc, 0x2d7497ef, 0xf1ffd601, 0xf9ffd4ff, 0xe8ffe7ff, 0x4d70d5ff, 0x00282616, 0x00480027, + 0x22058249, 0x6690fe28, 0x0221b1c5, 0x2dc170dc, 0x199efc21, 0x26b2851c, 0x00010000, 0x6d7aff5e, 0x01211fff, 0x08d9790e, 0x84002c22, 0x6d0cb352, + 0x1f840ff7, 0x5e0d7179, 0xdb6008af, 0x0010241d, 0x183a0200, 0x2440f764, 0x002b0092, 0x0748187f, 0xffea2210, 0x22b583d2, 0x5f002e00, 0xd2220539, + 0x481876ff, 0x00230a17, 0x41ffe0ff, 0x212205bd, 0x17826100, 0x03826620, 0x11000024, 0xe0183300, 0xea2020f3, 0x04832984, 0x115b4a18, 0x4a001922, + 0x00231883, 0x843a0013, 0x27a21907, 0x17a2190e, 0xc9fe2109, 0x2a734a18, 0x19000228, 0x50020000, 0x4a18db02, 0x96264671, 0xa5003600, 0x4d823500, + 0x260f0f62, 0xffe2fff1, 0x82d7ffe3, 0x08db5f01, 0xa0202782, 0xff23cb83, 0x8461ffca, 0x066d6407, 0xffe0ff23, 0x230f83a3, 0x5e001f00, 0x5b200782, + 0x00200382, 0x5d200b82, 0x0a2d9e18, 0x22412762, 0x846d0024, 0x00112257, 0x16a15433, 0x9384cd20, 0xf3fe8d22, 0x182c3f62, 0x20098f81, 0x379d182d, + 0xd1d31844, 0x00772837, 0x00080002, 0x82100009, 0x001b2801, 0x0026001b, 0x821a0027, 0x200f8307, 0x32198209, 0xffa0ff03, 0xfff0ff64, 0xfff7fff8, + 0x005f00fe, 0x82fdffc0, 0xfff72209, 0x241382f1, 0xffe5ffe5, 0x210182da, 0x8118ffe4, 0xdd243983, 0x2f003e00, 0x1e200182, 0x830ac356, 0xffe1245b, + 0x82d1ffe2, 0x00c22401, 0x82f9fe00, 0x002c251b, 0x0039002d, 0x99180082, 0x0023167f, 0x71000300, 0x232207cb, 0x63183500, 0x9f1853a7, 0xd32216a9, + 0xab82c5ff, 0x6f1ae620, 0xe1200c5f, 0x081b9a18, 0x13494218, 0x0200df24, 0x01820900, 0x11001124, 0x01821a00, 0x24002322, 0x0f830784, 0x17820820, + 0xa1ff0324, 0x676785ff, 0x6cf82006, 0xfe2506f1, 0xb9005d00, 0x915219ff, 0x05396109, 0xeefff126, 0xe8ffedff, 0x07820182, 0x82390021, 0x00332847, + 0x00430034, 0x82330044, 0x00232401, 0x82120023, 0x05694f01, 0xf7fffb22, 0xf2280182, 0xeffff3ff, 0xcdffdcff, 0xbd210182, 0xb37919ff, 0x18ee2009, + 0x2608c782, 0x00090112, 0x82210029, 0x00182401, 0x820c0018, 0x223f8301, 0x84f4fff4, 0xffdf2e67, 0x00d7ffdf, 0x0031ff00, 0x000e000a, 0x22c1820d, + 0x82130011, 0x82152001, 0xff002224, 0x208d82eb, 0x205f82ed, 0x216582ef, 0x4018fff2, 0x00230a79, 0x82050006, 0x00012821, 0x0200006c, 0x824e0339, + 0x6e002037, 0x1d821185, 0x0f237c18, 0xc1ffec22, 0x08997418, 0x53ff8321, 0xd5180825, 0x0023074d, 0x82a80038, 0xff002857, 0xffd3ffe5, 0x18e5ffd2, + 0x200877d8, 0x2267829f, 0x6fa20217, 0x00211387, 0x0aad579f, 0x7318d520, 0x00250939, 0xffb9ff00, 0x840f832c, 0x016e2103, 0x22054945, 0x83af003b, + 0xdbff230f, 0x377491ff, 0x00012208, 0x245f822f, 0x00bd023e, 0x1dbf521b, 0x00710022, 0x4421d187, 0x05294400, 0x44ffbc21, 0x5a200549, 0x0dcbe118, + 0xffefff23, 0x215f83cf, 0x0b591000, 0x220c8306, 0x83240162, 0x14002306, 0x07843c00, 0xfb682620, 0x200f8205, 0x228b843b, 0x8452ffc7, 0x61ec2007, + 0xff20057f, 0x0023f582, 0x845d0001, 0xa00e20fb, 0x0907419b, 0x9c003422, 0xcc224784, 0x078364ff, 0x00470022, 0x22051741, 0x84e6fea2, 0x229b8717, + 0x83310011, 0x4103840f, 0x00210617, 0x209b8615, 0x068d5420, 0x40001622, 0xcc203384, 0x2006ad45, 0x055576ec, 0x82c6ff21, 0x00012615, 0x023fff57, + 0xf7601826, 0x2701293d, 0x1d000900, 0x29003900, 0x1a200182, 0x0b5b7818, 0xff000033, 0xfff1fff2, 0xffe4ffe5, 0xffdbffda, 0xffcdffd1, 0x22758298, + 0x415b0000, 0x8c22066b, 0x0f84a5fe, 0x0f611a20, 0x22002905, 0x3e006500, 0x20001f00, 0x04821584, 0xfff8ff23, 0x2d4382f9, 0xffe9fff2, 0xffdfffe8, + 0x00ecfff5, 0xa14fff00, 0x00002405, 0x820e000f, 0x001d2277, 0x2601822e, 0x0030003f, 0x82370060, 0x5a2a2081, 0x0e2006d7, 0x93473e82, 0x839c2005, + 0x08a34106, 0x079b5018, 0xfb005322, 0x00221784, 0x0182dbff, 0xd3ffb524, 0x0382a5ff, 0xe0ffe02a, 0xefffeeff, 0xf7fff7ff, 0x71821d86, 0x00010027, + 0x0237ff72, 0xef96181a, 0x000d2652, 0x00490018, 0x22f1822d, 0x82150021, 0x000a22a3, 0x2077850b, 0x0d4a1a00, 0xfff82409, 0x82f6fff8, 0xfff030fb, + 0xffebfff1, 0xffe5ffec, 0xffdfffe6, 0x18adffd6, 0x200cf343, 0x051b42a3, 0x26084b43, 0x00620020, 0x82110016, 0x000c2301, 0x5759000d, 0x00022109, + 0xff210086, 0x210182fe, 0x0219fffc, 0xf228098f, 0xedfff2ff, 0xc6ffe4ff, 0x2208a76f, 0x820c0000, 0x8217208f, 0x05137453, 0x55002a22, 0x190add51, + 0x220da173, 0x82020004, 0x225b8501, 0x846b0024, 0x077b4208, 0x20097f64, 0x201784ac, 0x197b8400, 0x2009d9db, 0x207782f3, 0x26d782ed, 0xffaeffd6, + 0x82eeffe9, 0xfff32401, 0x19f7fff3, 0x2008435e, 0x203586fe, 0x260782ee, 0xff070001, 0x19610268, 0x215d134e, 0x55180c02, 0xf9240843, 0xf1ffeaff, + 0xe92a9582, 0xf4ffebff, 0xf6fff5ff, 0x6918f8ff, 0xff2549cb, 0x002100ed, 0x6b6a1842, 0x0004223c, 0xb3551809, 0x00292210, 0x3741183f, 0x821e2008, + 0xdb6918c9, 0x06797f48, 0x6a181420, 0xff2d3d7b, 0x000000da, 0xff1e0001, 0x0257027a, 0x5d74180e, 0x0c022161, 0x2608f56f, 0xffe3fff6, 0x18b3ffe7, + 0x26610143, 0x1d00f8ff, 0x18003c00, 0x223bb943, 0x6e110009, 0x42221031, 0x4318c800, 0xff206105, 0x1805d14c, 0x2b3ebd43, 0x0100deff, 0x47ff4500, + 0xcb021c02, 0x9043d119, 0xedfff523, 0x1d6c18ff, 0x003224a9, 0x82310030, 0x00092203, 0x53681807, 0x00022108, 0xff210082, 0x220182f0, 0x84f7ffdf, + 0xfff62201, 0x200782f6, 0x052558f6, 0x82160021, 0x82152001, 0x003c2203, 0x8301821e, 0xfffd282b, 0xfffafffe, 0x82f8fffb, 0x00f52425, 0x82280033, + 0x001c2401, 0x680e001d, 0x3f820671, 0x18360121, 0x20ac696c, 0x21cb84ef, 0xfb68ffff, 0x21d78305, 0x0183fff9, 0x82ffea21, 0x1bf282cb, 0x230efb21, + 0xd7ffecff, 0x0af79d18, 0x14001426, 0x0b002a00, 0x0c200182, 0x0a220382, 0x01820c00, 0x05000d26, 0x0f001000, 0x0803181a, 0x24002b24, 0x01821d00, + 0x55264983, 0x140247ff, 0x4f181b02, 0xee208cf5, 0xe720d382, 0x98314618, 0x18001928, 0x15001700, 0x01841600, 0x0a001524, 0xbf420800, 0x19012006, + 0x220a3b0b, 0x42f6ffe0, 0xf7230abf, 0x8300f8ff, 0x13bf4200, 0xfafffd24, 0x2b84fbff, 0x3200f428, 0x27002600, 0x01821b00, 0x0d000e22, 0x17823083, + 0xf100f622, 0x9c854618, 0xbd82f920, 0x19fffb21, 0x4e08b169, 0xf7200853, 0x4206376c, 0x0c202bb7, 0x2008b942, 0x22ff820c, 0x1804000d, 0x2408eba5, + 0x001b001b, 0x22038221, 0x18170017, 0x2008df79, 0xb36b1864, 0xfa012537, 0x50001a00, 0x00204782, 0xd532ad82, 0xebfff0ff, 0xe9ffecff, 0xd3ffd5ff, + 0xe2ffd4ff, 0x041b6100, 0x714d222f, 0xf57d1807, 0x00062213, 0x10bd480a, 0x1d00162e, 0x20001c00, 0x3d003c00, 0x29003e00, 0x213f041b, 0x83f2fd21, + 0x1800209f, 0x2b1aed7d, 0x0100daff, 0x7aff6c00, 0x0e024f02, 0x22382d5f, 0x531800ed, 0xff2905cd, 0xffceffef, 0x0073ffd1, 0x066b4f0e, 0x09f94518, + 0xf1ffb524, 0xdd1aebff, 0x17221851, 0xa9844800, 0x15699f19, 0x05001924, 0xf1470a00, 0x00372108, 0x22051b4d, 0x4fb6003c, 0x232408d7, 0x24002500, + 0x44828582, 0xfff2ff25, 0x82eeffed, 0xffd92269, 0x210182d8, 0x2f5900e5, 0x052b7608, 0x93590020, 0xdeff211e, 0x01224482, 0x60181f00, 0x01252957, + 0x001b00fe, 0x2435824f, 0xffe6ff00, 0x220784b0, 0x84b4ffe7, 0xffba2207, 0xe35a1831, 0x00452214, 0x4f1783d0, 0xff210573, 0x180b8468, 0x180fcf62, + 0x4110a982, 0x831806cd, 0x334a0e05, 0x775b2006, 0x07242aab, 0x49001800, 0xe8229784, 0xaf56b7ff, 0x0017221c, 0x201f8345, 0xd7441800, 0x7aff210c, + 0x87411384, 0x067f5007, 0xffccff23, 0x20178463, 0x06a34f35, 0x2207db4c, 0x84b3003b, 0xffc42263, 0x4107844e, 0x6a24055f, 0x68020000, 0x20229750, + 0x20ab826a, 0x23378346, 0x89002d00, 0x93870784, 0x82002421, 0x00002443, 0x43ffc6ff, 0xd2230585, 0x820078ff, 0xe8ff2300, 0x0682baff, 0x2b410285, + 0x088d510e, 0x50001421, 0x63410597, 0x22368210, 0x845c0001, 0x2197509b, 0x15005c24, 0x31823f00, 0x34000024, 0x07849a00, 0x26220f87, 0x8b847000, + 0xcc229b87, 0xe95e66ff, 0x82098309, 0x0fcd5e03, 0x0f4f4118, 0x8410a15e, 0xff46269b, 0x02190247, 0x592572cb, 0x00cb0123, 0x19018214, 0x24218fec, + 0x00120012, 0x20018225, 0x21fd8234, 0x81490043, 0x09c14609, 0x46fff021, 0x11190fc1, 0x1e2011fd, 0xd14fd582, 0x09814905, 0x1f002124, 0x9b492000, + 0xffda2606, 0xffd7ffd6, 0x3bed19d2, 0x6e022515, 0xf5fff8ff, 0xf3200182, 0x41202f82, 0x0a7bf918, 0x09338e18, 0xaaffbc26, 0xbfffadff, 0xd0240182, + 0xe7ffd0ff, 0xfd220182, 0xad4ef3ff, 0xf7ff2305, 0x3f82f9ff, 0x46fff921, 0x15492b5d, 0x8203200f, 0x000822f9, 0x217f8310, 0x4d55e3ff, 0x95f01908, + 0xfffc2c0f, 0x000100fc, 0x0247ff53, 0x751b0203, 0x022269f1, 0x00820003, 0xdd6aff20, 0x00102821, 0x00230011, 0x822f0022, 0x413b2001, 0x032008cb, + 0x2107b950, 0x1219f0ff, 0xf8200e69, 0x0837e418, 0x2007c548, 0x084d4b3b, 0xb618fe20, 0xf4260a8d, 0x0e001000, 0x01820f00, 0x03830583, 0x20059b4b, + 0x21f01aee, 0xffd4260c, 0xffddffde, 0x200182e9, 0xc5f019f4, 0x2f93830e, 0x002b002c, 0x01270026, 0x00160098, 0x000a0045, 0x2a1d096b, 0xffceffc1, + 0xffdcffcf, 0x82edffdb, 0x05eb4101, 0x4bfff521, 0x01224501, 0x01820300, 0x05000524, 0x01820600, 0xf1820920, 0xf1ff3c22, 0x104df01a, 0xf1820e20, + 0xf0191a20, 0xf12a1add, 0x0100f2ff, 0x68ff1800, 0x67185102, 0x01241d3f, 0x001b0067, 0x2005db44, 0x055746e5, 0x5d190020, 0x002114c3, 0x14474600, + 0x1787de18, 0x2efe6422, 0x00203182, 0x24063746, 0x017aff6a, 0x1d6b7efe, 0x82620121, 0x052f465f, 0x2f46e720, 0xe1031905, 0x17461808, 0x0017220f, + 0x10a74745, 0x0b015922, 0x210b1b45, 0xfd63ebff, 0xfe922106, 0x46052347, 0xfb1a050f, 0x2e26dff3, 0x3a0237ff, 0x0b190e02, 0x01232dc3, 0x49180004, + 0x09770619, 0x00152207, 0x24018212, 0xffe0ff0e, 0x750f1abe, 0xffe1220a, 0x750f1ae2, 0xffe2220c, 0x220f82e1, 0x77bfffe0, 0xff211141, 0x08a54737, + 0x60003f2e, 0x5c005f00, 0x2c003200, 0x21002d00, 0xff201783, 0x23d33b19, 0xa1ffc132, 0xa5ffa0ff, 0xd3ffceff, 0xdeffd4ff, 0x0100bbff, 0x00269382, + 0xbd025602, 0x67583900, 0x114b591d, 0x0120118c, 0x22088558, 0x18640022, 0x240c8f58, 0x00150010, 0xd3fd1a14, 0xdfff2345, 0x5b839dff, 0x5f19f182, + 0x31210911, 0x05b16300, 0x3c001422, 0x09251b84, 0x1a001c00, 0xf3fd1a00, 0x65f42045, 0xff2305b5, 0x84c4ffec, 0x00ce23d3, 0x0f420001, 0x3d2f4107, + 0x22091f42, 0x184b0019, 0x8209e568, 0x482f4209, 0xff000025, 0x82b5ffe7, 0x00002151, 0x3f426384, 0x001d2106, 0x22050965, 0x84350012, 0x0006231b, + 0x4f420012, 0x7bf82047, 0xff23057b, 0x83cbffee, 0xe4ff295b, 0x09000100, 0x5f0268ff, 0x55d78018, 0x4df50121, 0xf32808c9, 0xe9ffdaff, 0xdeffddff, + 0xee220182, 0x0182f0ff, 0x0e00f426, 0x13001400, 0x4f77011b, 0x00efff25, 0x4c490024, 0x24200abf, 0x18260f82, 0x21001700, 0x03822200, 0x10001122, + 0x0c200182, 0x0220fd82, 0x2210054e, 0x82360023, 0x00342401, 0x8219001b, 0x001322b7, 0x87011b16, 0xe8ff2253, 0x20008300, 0x25618214, 0x001d001a, + 0x021b0035, 0x47461817, 0xff302606, 0x024d027a, 0x54cf5e0e, 0xe982ea20, 0x8e834a20, 0xffeeff23, 0x3f8218cc, 0xffe52608, 0xffe4ffe5, 0x084341ee, + 0x25002422, 0x18240182, 0xbbffdeff, 0xf4262382, 0xf2fff3ff, 0x2385e6ff, 0x82f7ff21, 0x200f850d, 0x201182e4, 0x222382ee, 0x841800bc, 0x0023242f, + 0x82110014, 0x820d2001, 0xffed222d, 0x06374eed, 0xe5ffd72c, 0x47002400, 0x0e000a00, 0x01820f00, 0x18001d21, 0x22155748, 0x46050003, 0x591810ef, + 0x22220b8b, 0x5b821700, 0xdc1a1620, 0xe1223443, 0x0182d2ff, 0xe8ffd322, 0xea229382, 0xfb82efff, 0x0a43dc1a, 0x00dfff22, 0x0e220083, 0x01821200, + 0x26001422, 0x19d3dc1a, 0x2606cf4e, 0x02000050, 0x1abe022d, 0x215b5900, 0x90185000, 0x042c0ead, 0x06000500, 0x08000700, 0x03000400, 0x3d490386, + 0x510b2005, 0x0d2008a3, 0x0e1d9d18, 0xd9832f83, 0x4b890020, 0x82f6ff21, 0xffea2101, 0x00200082, 0x21051f5b, 0x0183fffe, 0x09913f1b, 0xeeffee2e, + 0xf4ffebff, 0xfcfffdff, 0xf2fffaff, 0xf1240184, 0xf3fff1ff, 0xf7201382, 0xfd201784, 0xf4221782, 0x0182f5ff, 0x8f4ff720, 0x270c830c, 0x00920031, + 0x00110014, 0x0db99c18, 0x0322b183, 0xb7820200, 0x05200583, 0x0d83bf84, 0x01000122, 0xf8244184, 0xf0fff8ff, 0xe5280182, 0xdcffe6ff, 0x6bffb6ff, + 0x002b1583, 0x00af003b, 0x00290036, 0x821a0028, 0x832b8327, 0x82022033, 0x4b022047, 0x05220655, 0x0d840600, 0xff212e84, 0x194b84ff, 0x200b9508, + 0x20a982fb, 0x20ea82fe, 0x069b4cfd, 0x6b00f722, 0x2006e35e, 0x282b8251, 0x00610001, 0x020d0200, 0xa14418db, 0x3fa4192c, 0x0b275044, 0x346fa019, + 0x0f2d9e19, 0xc8195f20, 0xfc180aeb, 0x022887bb, 0x00000700, 0x66036102, 0x699fab18, 0x83180120, 0x3b232713, 0x18001900, 0x189a7d87, 0x5d2e7383, + 0x00233e29, 0x8224001b, 0x00282101, 0x51a58718, 0x1e000228, 0x4c020000, 0x0b19f402, 0x0f4275cb, 0x053d6c06, 0xd5ffd628, 0xe7ffe8ff, 0xec19fbff, + 0x282008ad, 0x2008356c, 0x01611852, 0xf40222b5, 0x23008200, 0xefffdcff, 0x2406597b, 0x00110012, 0x22138424, 0x46deffbc, 0x212406d7, 0x50fd2200, + 0x00201383, 0x183e6b5d, 0x28722961, 0xff450001, 0x025c023f, 0xe75018bd, 0x1301294b, 0x1c000a00, 0x2a003900, 0x21084b64, 0x0086000c, 0x82f2ff21, + 0xffe32401, 0x82dbffe4, 0xffd32c01, 0x00f7fffc, 0x00350024, 0x82330036, 0x00192a31, 0xff130019, 0xffb0ffd9, 0x252182ec, 0xffe2ffe5, 0x1c1bffc8, + 0x895811b9, 0x000f2407, 0x8213002c, 0x003e2265, 0x8701821f, 0xfff9225f, 0x226182f9, 0x82e8fff3, 0xffde2401, 0x64ebfff6, 0x38201c6b, 0x21086b64, + 0x6b64000d, 0x82232007, 0x0034218f, 0x2005b34a, 0x06e96719, 0xe5ffec22, 0xe3200182, 0x11f51c1b, 0x220ab558, 0x642d000f, 0x6c242a8b, 0x2c0237ff, + 0x21633761, 0x9d640b01, 0x64f72022, 0xeb220c9d, 0xed82e6ff, 0xf6ffe028, 0x1100edff, 0x01821600, 0xdb821920, 0x30002f27, 0xdbff1f00, 0x251d59ff, + 0x0500042a, 0x04000600, 0x4a002500, 0x11243f82, 0x0b001200, 0x1816c164, 0x2107e97d, 0x2f19fffa, 0xc1640bad, 0x000f2243, 0x24018214, 0x00290015, + 0x2101822a, 0x7159001c, 0x82032027, 0x180620b9, 0x23083747, 0xfffefffe, 0x4333e564, 0x2422055b, 0x7918bd02, 0x01212f3d, 0x088b6725, 0x1a002a22, + 0x0c200182, 0x22051b5d, 0x19ff0000, 0x43173b08, 0x45220713, 0xe482cf00, 0xff220282, 0x7367fffa, 0x67e82005, 0x1c221873, 0x01822e00, 0xda004024, + 0x3082b201, 0x58ff0021, 0xc359105f, 0xffb9220e, 0x1a5b672a, 0x37ff6626, 0x0e021202, 0x34adcb18, 0x18000524, 0x8b824900, 0x21002028, 0x15001400, + 0x01820a00, 0x00249283, 0xbbffe9ff, 0x53189b84, 0xba2009d7, 0x00220f83, 0x67590017, 0x003c2205, 0x4b0f84b7, 0xfc22056b, 0xf784fcff, 0xf6fff62c, + 0xf2fff3ff, 0xe3ffedff, 0x0767c7ff, 0x01b22218, 0x5a3b8365, 0xc222200b, 0xcf6647ff, 0xff412422, 0x4c1f0268, 0x01215db3, 0x07fb4f4f, 0x0fd37d18, + 0xff830020, 0xfbfffd22, 0xfa220182, 0x0182f9ff, 0xf8fffa22, 0xf5200182, 0x084bc918, 0x0984f320, 0xe3fff62a, 0xebffeaff, 0xf2fff3ff, 0x085d6518, + 0x22085342, 0x19000000, 0x220b8324, 0x84030009, 0x00052401, 0x821f0016, 0x00282201, 0x220f840c, 0x840e0006, 0x6b4a1801, 0x880b2009, 0x000b2417, + 0x8207000b, 0x065b5c47, 0x0d099318, 0x02b00023, 0x221b840e, 0x827bffd4, 0xffed2683, 0xfff0ffee, 0x209784ef, 0x20b182f7, 0x839182fb, 0xfffd26bf, + 0xfffefffc, 0x8f4d18fd, 0x00092408, 0x82100008, 0x001b2601, 0x0024001b, 0x05575b44, 0xffcaff23, 0x9b2f1b5c, 0xfff0220a, 0x20d382f1, 0x283582fd, + 0xfffbfffc, 0xfff7ffec, 0x206982f6, 0x83038201, 0x00012102, 0x04200183, 0x0424a584, 0x06000500, 0x0120e782, 0x07200d82, 0x08265982, 0xaaff0900, + 0x978454ff, 0x0582c620, 0x57000128, 0x03027aff, 0x1b540f02, 0x0046243e, 0x824a0018, 0x0000224f, 0x18b38217, 0x1a0ccd55, 0x220c752b, 0x82e3ffdf, + 0x5b3c19af, 0x4755201d, 0x15200619, 0x0522af82, 0xbd840500, 0x0f000223, 0x096d4100, 0xb7ffe722, 0x2208d94f, 0x82650021, 0x0000246e, 0x838b0184, + 0xe8ff2707, 0xd7ffb7ff, 0x0182e2ff, 0x7719ea20, 0x09200aef, 0x112b4b82, 0x19001100, 0x23001a00, 0x41002a00, 0xe1260501, 0x96ffa1ff, 0xc952cbff, + 0x06002105, 0x0c206b82, 0x03226f84, 0x01840100, 0x0a000922, 0x0c240182, 0x88ffc4ff, 0xc9205b84, 0xe3261582, 0x3f010000, 0x2119e002, 0x00210b0f, + 0x4b5318e3, 0x822b830d, 0x02b82203, 0x20358428, 0x19058248, 0x22093351, 0x79330013, 0x9f4c4a7d, 0x4ad7200b, 0xfa20068f, 0x20128f4a, 0x659a1846, + 0x2e634c61, 0x39002322, 0x22210182, 0x23008200, 0xc7ffdeff, 0x4ecd2f1b, 0x4800032a, 0x3402f3ff, 0x1700e802, 0xc0571b1a, 0x2eff6818, 0x00a4ff22, + 0x0d757818, 0x00000725, 0x51000200, 0x0583051b, 0x04000224, 0x01840300, 0x3e001f23, 0x210083ff, 0x0187fffe, 0x089b8619, 0x0b881182, 0x8f183f82, + 0x00200ce7, 0x2005135e, 0x2b7418fc, 0xfffc280a, 0xfffbfffc, 0x82f7fff9, 0xfff52401, 0x82f6fff5, 0xfff52403, 0x82e2ffe7, 0xffde2601, 0xffeaffe8, + 0x200382e9, 0x47301af3, 0x1af52008, 0x260c3773, 0x00190017, 0x82170018, 0x00182c03, 0x001b0025, 0x0011001a, 0x82090010, 0x82778201, 0xffe1296d, + 0xffc4ffa3, 0xffd2ffd1, 0x0bcdd418, 0x0722c383, 0x25820700, 0x1921ef83, 0x37731a00, 0xff1b2209, 0x2081828c, 0x220382f7, 0x82f0fffa, 0x05d95e95, + 0x0a000a24, 0x01821500, 0x1e001e28, 0x27002800, 0x5c844d00, 0xad840020, 0xebffe922, 0xe2245b82, 0xf1ffdbff, 0xf4229982, 0x1b83e802, 0x18ddff21, + 0x2208ab74, 0x84050004, 0x000d228f, 0x8299820d, 0xbdff251c, 0xdeffdfff, 0x00200882, 0x21217782, 0x571b12fd, 0x04204301, 0x2405a75a, 0x17006603, + 0x7bab1200, 0x07222d01, 0x56190000, 0xb1456271, 0x45c1835d, 0xd92005b3, 0xdc27691a, 0x5ecfc318, 0x10e6ff21, 0x4201fd05, 0x29197b20, 0x17260843, + 0x07002d00, 0x1b4f0300, 0x00002107, 0x1906194f, 0xa4174329, 0x2769122f, 0x02214601, 0x25008200, 0xbd024e02, 0x56192700, 0x00283a63, 0x45001700, + 0x10000900, 0xd017ad1a, 0x1a000321, 0x2307c765, 0x00770061, 0x9a85f718, 0x003a0125, 0x1a0d0008, 0x220c8765, 0x82210025, 0x001c2101, 0xff270082, + 0xffe1ffe7, 0x4fd9ffe0, 0xf42606cb, 0xf9fff4ff, 0x1882faff, 0x01200285, 0x52220684, 0x0784a400, 0xfcff0022, 0xf9240182, 0xf3fff8ff, 0xf0240182, + 0xe9ffefff, 0xe3200182, 0x0a83ce18, 0x3f82f420, 0xeefff822, 0xe12a5382, 0xe2ffd3ff, 0xdeffdfff, 0x3b84daff, 0x1f002122, 0x1d240182, 0x18003100, + 0x12840182, 0xfff2ff2b, 0xffd0ffd4, 0xffdbffdc, 0x828782e8, 0x24168453, 0x000a000a, 0x24018214, 0x001e001e, 0x222f8226, 0x62220021, 0x6a180699, + 0x10260939, 0x15001000, 0xde181600, 0x042208c3, 0x3b840500, 0xd7ff0026, 0xf5ffa0fe, 0x20088f50, 0x20fb8209, 0x242b820f, 0x001c001c, 0x200b8229, + 0x20258610, 0x200082ff, 0x735d18fd, 0x82f72008, 0x82f020c9, 0xffec2683, 0x00f1fff0, 0x200d823d, 0x7d9b82f2, 0xfc20051b, 0x09203184, 0x1b229384, + 0xef823500, 0xf3fff422, 0x09221386, 0x01821100, 0x1d001c28, 0x06002800, 0x83820d00, 0x04000322, 0x1e830182, 0x20000a24, 0xbf822f00, 0x1b002722, + 0x14207b82, 0x0c22cf82, 0x25820c00, 0x1c830620, 0x82fcff21, 0x69f72001, 0x1e2008c1, 0x08315218, 0x1382f820, 0xe6fff024, 0xd169cbff, 0xffe3260a, + 0xffc5ffe3, 0xcf641af3, 0xffec280e, 0xffe1ffe0, 0x82dbffd6, 0x1ae3201d, 0x260c25ce, 0x01130012, 0x8205001d, 0xbf641a53, 0x205f8511, 0x226182f1, + 0x83ddffe6, 0x00002b6b, 0x0b001cff, 0x11001200, 0x01821800, 0x09821220, 0xeb820a20, 0xa9820520, 0x0020a883, 0x20af641a, 0x26820520, 0x18000221, + 0x1a0777bf, 0x20310708, 0x179f18da, 0x0f634f0a, 0x27002827, 0x49004800, 0x21078200, 0xbe188dfe, 0xab182e5d, 0xbe182d81, 0x032c2925, 0xf3ff3e00, + 0xe8022c02, 0x4f001700, 0x7037041a, 0xf1ffd828, 0xf9ffd4ff, 0x0182e8ff, 0xe9ffd524, 0x0182efff, 0x0fad7718, 0x220a3541, 0x1800dfff, 0x4ea4e57d, + 0x58203011, 0xa6595a18, 0x18000021, 0x20098f9d, 0x45991837, 0xf101284d, 0x10001e00, 0x82000f00, 0xf1ff2d00, 0xe1fff0ff, 0xd1ffe0ff, 0xc0ffd0ff, + 0x0aeb7618, 0xecffed24, 0x2082ecff, 0x12000024, 0x01821400, 0x16001522, 0x13230784, 0x18002800, 0x200973d3, 0x24218409, 0xfe9dff00, 0x840985d9, + 0xfbbd1957, 0x00402609, 0xfe30002f, 0xc5a318f7, 0x005f2208, 0x634418bf, 0xffe6240a, 0x82dbffe5, 0xffe52301, 0x8c1800e4, 0x5c22094f, 0x01824500, + 0x2c002d24, 0x01821700, 0x31825682, 0xc750fd20, 0xfff92806, 0xffdffff6, 0x190d00c0, 0x20104196, 0x20c782f0, 0x281b82df, 0xffd3ffd4, 0xffffffc7, + 0x26dd84fd, 0xffe3fff6, 0x19bbffa4, 0x200e07be, 0x20cb8216, 0x49f4185e, 0x77441808, 0x00022a1b, 0x02f3ff47, 0x001b0235, 0x0966183b, 0x00b92252, + 0x2289821e, 0x19100017, 0x22102f12, 0x82e8fff0, 0xffe12801, 0xffdaffe2, 0x84d5ffdb, 0xffe8210d, 0x2205cb64, 0x82e5ffe7, 0x000024b2, 0x82310036, + 0x002c2801, 0x0021002b, 0x82180022, 0x000b2201, 0x2419840c, 0xfe9cff00, 0x210985d6, 0x01820f00, 0xde181f20, 0x272008bf, 0x22222982, 0x6b182dff, + 0x653e0853, 0xfbffca00, 0xf3fff4ff, 0xeaffebff, 0xe4ffe5ff, 0xdfffdeff, 0xe6ffe6ff, 0x11001400, 0x53821900, 0x3b822020, 0x24002524, 0x01822a00, + 0x25002522, 0x1e200d82, 0x0aa96918, 0x82000821, 0xfeff2100, 0x26080b7a, 0xfff6fff9, 0x19c7ffe3, 0x220a1fc3, 0x18f5fff4, 0x20085b44, 0x074d57d5, + 0xe1241382, 0xd1ffc5ff, 0xde200182, 0xf0227182, 0x4682efff, 0x08000026, 0x5f000900, 0x1d247982, 0x26001e00, 0xda205984, 0x200aa346, 0x08e347f5, + 0x096fba19, 0x22059350, 0x6b790067, 0x00203c41, 0xb00c4f6b, 0x0bd2180d, 0x43672060, 0xc51891af, 0xfd215f83, 0x5f901846, 0x8b0f4408, 0x0f440420, + 0x050b5106, 0x19006b21, 0x2580aba6, 0x08000001, 0x074f0400, 0xfffc2a0c, 0xffe8fff8, 0xfff9ffd0, 0x955518fc, 0x8203200a, 0x00072625, 0x00f40018, + 0x08694a07, 0x00000022, 0x0e5d621a, 0x1282fd20, 0x03200285, 0x08242582, 0x25001700, 0x2099a344, 0x5f0f5002, 0x03459920, 0x6703209c, 0x17240877, + 0x7f002f00, 0x457b0145, 0x0745053f, 0x7dfe215f, 0x559ecd67, 0x056865ef, 0x00002e99, 0x001e0003, 0x024c0200, 0x001700cc, 0xa743182f, 0x609f428f, + 0x5d689420, 0xa75e18b6, 0x93fd225e, 0x68008300, 0x0028b195, 0x45000300, 0x1c02f3ff, 0x2006fb5a, 0x81634595, 0x2115a94a, 0xd547ee00, 0xffd02216, + 0x100548f8, 0x18000826, 0x0800f300, 0x1a100548, 0x201b2164, 0x0fb31854, 0x60b94ac9, 0xb3182220, 0x0327ca6f, 0xf6ff5500, 0x4a021402, 0x8d2005ef, + 0x218fff42, 0xf742ef00, 0xab6c1832, 0x1b2d4b0f, 0x8d184d20, 0x1d4bb953, 0x18a62060, 0x26bcb38d, 0x02f3ff0d, 0x18bd025b, 0x25591342, 0x27000e02, + 0x01821300, 0x30072151, 0xfffbfffb, 0xfff8fff9, 0xffecfff5, 0xffe7ffe8, 0x280182e3, 0xffe4ffe4, 0x000d00e6, 0x28018210, 0x00210012, 0x00230022, + 0x24308217, 0xfe87ff00, 0x2e078394, 0x14015d00, 0xddffeaff, 0xdfffdeff, 0x79ffefff, 0x1883055d, 0x42001524, 0x31822800, 0x2f822120, 0x51001721, + 0xff2306f9, 0x84f4fff3, 0xffdb265b, 0xffd0ffdc, 0x0a2159d1, 0x0000f426, 0xbdffdeff, 0x93833a82, 0x2600262a, 0x37003600, 0x48004700, 0x2b220784, + 0x4d821c00, 0x33002826, 0x0f001100, 0x5b690182, 0x820e2005, 0x00192299, 0x26018212, 0x000c000c, 0x82060007, 0xc38c183d, 0x191a200d, 0x2208edf0, + 0x82c5ffec, 0xff00241d, 0x82daffe6, 0x82dc2001, 0xffee22e3, 0x228f82ee, 0x83ccffe6, 0x19002017, 0x20091368, 0x20fb82e7, 0x20cd82e0, 0xfbb718e6, + 0x0008220e, 0x207d8209, 0x21518212, 0x7f66001a, 0xffcc2605, 0xffd7ffd8, 0x220182e4, 0x84f2fff1, 0x26978345, 0xff490001, 0x18340233, 0x2153b7fb, + 0xb341e701, 0xfff6220a, 0x20c582f5, 0x41d182eb, 0xe52605ab, 0xe7ffe5ff, 0xa3840e00, 0x24001424, 0x01822600, 0x95831920, 0xd418ff20, 0x532607ef, + 0xf2fffb00, 0xf782edff, 0xdaffeb24, 0xbd82d9ff, 0x1f83e620, 0xab410020, 0x00202207, 0x22018217, 0x840c000c, 0xfff32835, 0xffe8fff3, 0x82dcffe7, + 0xffd02401, 0x82cfffc9, 0x83d52001, 0x1c002919, 0x1b001a00, 0x19001800, 0x18200382, 0x44260382, 0x35003500, 0x17826cff, 0x28002728, 0x21003300, + 0x01821d00, 0x25821920, 0x13001322, 0x0b224d82, 0x01820500, 0x0f000022, 0x14200d82, 0x28226d82, 0x01822900, 0x43821b20, 0x0ddd121b, 0xcf82f020, + 0xeaffec26, 0xd5ffd6ff, 0xe3200182, 0xcb20d982, 0x00266f84, 0xf7fff8ff, 0xb782efff, 0x2005a56d, 0x55cd18df, 0x84178208, 0x000c2821, 0xff17000b, + 0x82c3ffe2, 0xfff92427, 0x19fcfff9, 0x220885c5, 0x820e0000, 0xcbc61801, 0x77072009, 0x9f242c65, 0xe1004a00, 0xff286183, 0x0020ffb5, 0x00a7ff00, + 0x3cb1b918, 0x83210321, 0x1100224b, 0x21f78600, 0x0f84abfc, 0x39abb818, 0x78000221, 0xb221053b, 0x20d7bd00, 0x076218c2, 0x13f9193e, 0x845f200f, + 0xef6118d7, 0x18032039, 0x65087bc8, 0xf35405d3, 0x15874a30, 0x6b4d1589, 0x42bc2060, 0xab4f3e29, 0x39794265, 0x03000022, 0x4f067b42, 0x7218054b, + 0xa3415223, 0x42d72060, 0x6b183ef5, 0x162409e9, 0x07002c00, 0x1810e754, 0x203f63e8, 0x3e454392, 0x200f8758, 0x6fd55d4b, 0x215fc141, 0x3419a400, + 0x9820364b, 0x0cc13919, 0x2907ed60, 0x0025001c, 0x001b0027, 0x8018001c, 0xf7220bfb, 0x2d82f8ff, 0xe4ffef28, 0xd9ffe5ff, 0x0782dbff, 0xa34de420, + 0x57fe235f, 0xda195c00, 0x0420743d, 0x0c97641a, 0x6e184f20, 0xd9686457, 0x5c00225e, 0xb5da1900, 0x5fe5575d, 0x1800be21, 0x105dc1ea, 0x67019fe5, + 0x64100320, 0x26a20123, 0xff3a0005, 0x552e02f3, 0x4b22064f, 0x34196100, 0x15457867, 0x3739475f, 0x02007823, 0x8db01800, 0x3fe9180b, 0x9749473e, + 0x529fe918, 0x5b470520, 0x0053220c, 0xe3135d65, 0x18167d47, 0x5488b768, 0xbd476085, 0x17691805, 0x0003269b, 0x02f3ff59, 0x06f3442c, 0x79712a19, + 0x2b57f020, 0x18d12046, 0x200ab7e4, 0x2c008200, 0x00030004, 0x00170008, 0x0028005a, 0x06ef5414, 0xb618ed20, 0xd6220e3b, 0xcd6dd6ff, 0x00262506, + 0x002a002b, 0x173bb618, 0x97ff0622, 0x093bb618, 0xffffff23, 0x260182fa, 0xfff5fff5, 0x66f0fff1, 0xe52106a1, 0x3bb618ff, 0x82ed200f, 0x00002283, + 0x28558226, 0x002c002a, 0x00380047, 0x5ff54437, 0x184bfd21, 0x268a9bb6, 0xff6c0003, 0x591d02f3, 0x916406a3, 0xec002180, 0x20166742, 0x148b5cd1, + 0x8b5c1720, 0x0df81806, 0x1b8b5c0d, 0x1e001d24, 0x8f181800, 0x1920423f, 0x12254582, 0x0e001300, 0x3f8f1800, 0xffcb3015, 0xfff3fffe, 0xffeafff4, + 0xffdfffeb, 0x82d3ffde, 0xffd92501, 0x00e1ffda, 0x13200083, 0x0861be18, 0x0a3f8f18, 0x2060ed44, 0x61ef1898, 0xfffb2126, 0x739f8f18, 0x00003e2a, + 0x66034b02, 0x51000700, 0x2153295c, 0x0e1aa900, 0xff240d71, 0x001300bd, 0x8fbfdb18, 0x18158156, 0x2c8d1dc6, 0x00020000, 0x0237ff34, 0x00b20241, + 0x95e11807, 0x0fe95766, 0x2005bb41, 0x41941919, 0x0e8557ac, 0x08b13f1b, 0xab259419, 0x03000023, 0x07a74300, 0x2f001722, 0x6a7d396d, 0xfe215fbd, + 0x922144d2, 0x44657958, 0x03208d71, 0x24066f44, 0x001700c8, 0x23f3182f, 0x5f43578d, 0x44068342, 0x6820ade9, 0x10b94018, 0x11820420, 0xff210284, + 0x590182fc, 0xe5780979, 0x26198305, 0x00040004, 0x59160007, 0x2f9c06a9, 0x18cffc21, 0x45b2d97c, 0x0b220937, 0x35471700, 0x19b62066, 0x2115effd, + 0x17828c00, 0x15003b24, 0x01822400, 0xe0ff162c, 0xeeffc2ff, 0xe0ffe1ff, 0xef44fffe, 0x03f41891, 0xb5a81917, 0x051c421a, 0xe4180520, 0xbf448ad9, + 0x06032506, 0x15000b00, 0x734fcf18, 0x00ac0023, 0x4ded1911, 0xfee72226, 0x1b8118c3, 0x19042026, 0x218a9d9d, 0x00830056, 0x37002122, 0x082f0d1a, + 0xc9ffdf22, 0xdf200182, 0x0d1a1790, 0x77490947, 0x003f24af, 0x521d0200, 0x6f200607, 0x6153214d, 0x00211d95, 0x2c994ff1, 0xf2001822, 0x1a16256c, + 0x21168996, 0x50183200, 0xff200f0f, 0x0fe3cd18, 0xf3fff422, 0xcd180182, 0xab7413e3, 0xe7ff2408, 0x8500b3ff, 0x00052200, 0x22818204, 0x180b0008, + 0x2208aba6, 0x18120010, 0x2408d792, 0x00140017, 0x220d8215, 0x82160013, 0x001a2201, 0x5ff55100, 0x84f9fc21, 0x43ce1896, 0x00032c7b, 0x01000053, + 0x00cd02ff, 0x182f0017, 0x246b339b, 0x0800fb00, 0x2b396b00, 0x4217616e, 0x1420173b, 0x0fab4f18, 0xfff0ff25, 0x82f1fff2, 0xfff32203, 0x200182ef, + 0x200f82ee, 0x201384f1, 0x9b9c18f3, 0x19fc2008, 0x20082b17, 0xa3a618e9, 0xbf0a192f, 0x17b14812, 0x480d1377, 0x2f8421e1, 0x5b62fd20, 0x18842005, + 0x276c03a7, 0x0268ff6c, 0x00bd0239, 0x16177519, 0x18d10021, 0x190f736f, 0x22107360, 0x184c0019, 0x18103b63, 0x230f1369, 0x00f2fd51, 0xff210082, + 0x280482da, 0xff920001, 0x020a027a, 0x2073980e, 0xe77018ee, 0xffe72208, 0x213182b7, 0x7e180000, 0xf7410e7f, 0x1f6f1805, 0x0159210e, 0x1805597e, + 0x210ef37b, 0x4182deff, 0x29000526, 0x3f020000, 0x22064745, 0x47590051, 0xff22748f, 0x48180800, 0x496e107f, 0x0f154b09, 0xf3001822, 0x2a2c7b45, + 0x0097fe17, 0x006d0025, 0x181c0021, 0x200cb7cf, 0x2145820f, 0xe3180008, 0xf1260975, 0xebffecff, 0x0182e7ff, 0xe3ffe324, 0xa618dfff, 0xe722084b, + 0xcf18b4ff, 0x138212b7, 0x0c203a82, 0x1e275582, 0x16001700, 0x83001000, 0x8407204f, 0xfff8284f, 0xffeffff7, 0x82eafff0, 0xffe62201, 0x664b45f1, + 0x3b1bf618, 0x3f17d018, 0x34000522, 0x0a531019, 0x51004922, 0x5e6c4f45, 0xfe215e7f, 0x7ba818aa, 0x5b12196d, 0x00932160, 0xa9180085, 0xa81829fd, + 0xe8183fdb, 0x02217277, 0x23e4831c, 0xe7ffe6ff, 0xe8200184, 0xe82a0582, 0xd6ffe8ff, 0xdfffe0ff, 0x0182eaff, 0xf5fff522, 0x00212183, 0x2a01820b, + 0x00160016, 0x001e001f, 0x6c190026, 0xec2906ef, 0xdcffc7ff, 0xe4ffe5ff, 0x9b1c19ff, 0x00092c0b, 0x00120009, 0x001b0013, 0x8224001a, 0x82152007, + 0x18182037, 0x200cdd45, 0x223382e2, 0x82e9ffe5, 0xffea2269, 0x223b82eb, 0x82e1ffdc, 0x82e52001, 0x82eb2015, 0xfff2210f, 0x0973361a, 0x21002224, + 0xa3674300, 0x24278205, 0xfff6ffec, 0x208f84f7, 0x2a618211, 0x00230022, 0x00310030, 0x8233003e, 0x8234208f, 0x00172465, 0x83f3ff47, 0xfaff2123, + 0xfd220182, 0x2b84feff, 0x8f820820, 0x19202f83, 0x21228382, 0xbd822000, 0x3d821820, 0x15821220, 0x2005f345, 0x20a38200, 0x2029843b, 0x41191900, + 0x00152208, 0x83bf8414, 0x440e2007, 0xfe210ab5, 0x194418ff, 0x1d002d0a, 0x08003a00, 0x06000500, 0x03000400, 0x08518519, 0xf4247b83, 0xeffff5ff, + 0x08f7f418, 0xe3ffe824, 0xc582c5ff, 0xf0ffda24, 0x1784f7ff, 0xfd82e920, 0x1582e320, 0xcfffdc24, 0xdf86daff, 0xf3fff322, 0xc118af88, 0x612009c7, + 0x2264b74b, 0x821700b6, 0xf5471901, 0xfcff21bc, 0xc24f3719, 0x3a00022b, 0x59025bff, 0x3900cb02, 0x95b71800, 0xe301295c, 0x58001e00, 0xcdffdeff, + 0xd3220182, 0xbf181200, 0x0b270823, 0x08000b00, 0x18001100, 0x220db9c3, 0x82ecfff0, 0xffe82401, 0x82e5ffe8, 0xffe12401, 0x82d1ffc2, 0xffe12101, + 0x09537519, 0x00820020, 0x10001024, 0x01821f00, 0x2f002f24, 0xe2193e00, 0x022a083b, 0x1d000200, 0x30003100, 0xa56b00ff, 0x5bff213d, 0x00226382, + 0x4b822000, 0x2c003122, 0x0b22a182, 0xb7820c00, 0xad821020, 0x15001226, 0x38002a00, 0x44210182, 0x07696b00, 0x17821720, 0xcd821120, 0x05000b24, + 0x39830600, 0xffe9ff25, 0x82d3ffea, 0xffbb2e01, 0xffa4ffbb, 0xfffbfffd, 0xffbeffa9, 0x201182bd, 0x201982d1, 0x83a782e9, 0x2c038326, 0xff000001, + 0xffd0ffe3, 0x000a01d1, 0x27ec1a22, 0x0002283e, 0x0236ff42, 0x181a020d, 0x2139b7bc, 0x5f18b001, 0xff2507f9, 0xffc1ffeb, 0x050d73ff, 0xda2acf82, + 0xccffdbff, 0xd8ffceff, 0xaf82d9ff, 0x74ffe321, 0x0f2209b7, 0x01821d00, 0x2800272a, 0x34003200, 0x26002500, 0x00224182, 0xdc82f4fe, 0x21002226, + 0x44004300, 0x082b6d19, 0xdfffdf26, 0xbdffbcff, 0xde220582, 0x1f8236ff, 0xb6000024, 0x07832002, 0x511bff20, 0xed2013df, 0x0cd1651a, 0xcdffcd22, + 0xef220f84, 0x3183eeff, 0x82140021, 0xff292801, 0x001d01a6, 0x82330065, 0x82148201, 0xffcd2221, 0xf17f1a9b, 0x8234200a, 0x82012017, 0x02002218, + 0xafe31868, 0x00702150, 0x9067b519, 0x0382e983, 0xb5191b20, 0x7f418c3b, 0x180e2007, 0x2f4de94b, 0x16008300, 0x06004200, 0x07000800, 0x10000900, + 0x0b200184, 0x4d1b0f90, 0xfa2017d3, 0x53f7b419, 0x00850020, 0x19001329, 0x1c001800, 0x1b003300, 0x202dd34d, 0xcbb419e4, 0x00012854, 0x02e3ff3b, + 0x6fbd022d, 0x02256391, 0xffefff2d, 0x230182f0, 0x000800f2, 0x091fad18, 0x18410120, 0xe7ff2305, 0x9d18b4ff, 0xfe280e91, 0xfdfffeff, 0xf4fff2ff, + 0xf62a0182, 0xf7fff6ff, 0xf9fff8ff, 0x0582ddff, 0xeffff722, 0x0a2e4182, 0x0b000a00, 0x0d000c00, 0x0f000e00, 0x5d84f3ff, 0xe3ffee23, 0x07bd49ff, + 0xfb223183, 0x4582fbff, 0x11635b19, 0x20056353, 0x263d8207, 0x0010000b, 0x822b001e, 0x00382401, 0x8223002a, 0x841c2001, 0x205b8315, 0x835f820b, + 0x00122603, 0x00050004, 0x8373822e, 0x820820b9, 0x00102471, 0x8211000f, 0x00142801, 0x00150014, 0x834401a2, 0x7fff23bb, 0xa1827dfe, 0xf920a583, + 0x0784a582, 0x080fd418, 0x0c224783, 0x9d820c00, 0x9382fa20, 0xd382f520, 0xd984f320, 0xb982f420, 0xa7830383, 0x4583fd20, 0x05226982, 0xdb820900, + 0x00202d82, 0x2209917a, 0x845801ac, 0xfe872263, 0x22e38293, 0x82e6ffe7, 0xffea2249, 0x200182ee, 0x199519f2, 0x0007250a, 0xff100008, 0x0dbf901a, + 0x2500fb22, 0x0a204d82, 0x01293d82, 0x00003f00, 0xcb022802, 0x1b5d1900, 0x543f2047, 0x002207fb, 0xbd7a0161, 0xfe9f2205, 0x836982de, 0x00022202, + 0x20cb8402, 0x24cd820a, 0x000f000f, 0x24018215, 0x001c001c, 0x83078216, 0x8209200f, 0x00052117, 0x8305b34a, 0x0000242f, 0x854d0019, 0x63ff2008, + 0xf52807c9, 0xf1fff4ff, 0xd5ffe2ff, 0xc7220182, 0x0582c8ff, 0x0d82d620, 0x1582f120, 0xf8fff422, 0x0e4da418, 0x35000024, 0x3f849f00, 0x3c001422, + 0x38220784, 0x4141a800, 0x820d2006, 0x000c2207, 0x2071820c, 0x2071820a, 0x841d8305, 0xfff62263, 0x244b84f7, 0xfff3fff2, 0x220184f2, 0x83bbffdd, + 0x1300271d, 0x1e003800, 0x93821800, 0x1224af83, 0x0d001200, 0x3019bb82, 0xe4200b6b, 0xee2a3382, 0xebffeeff, 0xe7ffeaff, 0x9782e8ff, 0x39825e20, + 0x2b00022a, 0x3e020000, 0x3300cb02, 0x21635543, 0xa1829b01, 0x77824c20, 0x10000024, 0xd7842e00, 0xd1fff122, 0x00200783, 0x0947711b, 0x20054541, + 0x20ab82f0, 0x20ad84ed, 0x28af82e8, 0xffc9ffe4, 0xffd4ffd5, 0x22b782e1, 0x84f1fff1, 0x00042431, 0x48080004, 0x1e2008d1, 0x2a26c982, 0x2d003700, + 0x4b825a00, 0x39827920, 0xefffee22, 0xf320f382, 0x0891a219, 0xfcfffb22, 0x0ce3a919, 0x02000324, 0x43820500, 0x43820a20, 0xf1410e20, 0x001d2508, + 0x00160015, 0x17830f83, 0x06000522, 0xf7662582, 0x42ff2006, 0xb941072b, 0x002b260f, 0x00220081, 0x2401821d, 0x00170018, 0x20018213, 0x4bd4180f, + 0xc94b1808, 0xf1ff2308, 0xbd82f2ff, 0xd1ffe32a, 0xbeffd0ff, 0xe4ffddff, 0x08df4719, 0xf0ffed22, 0x0024d78a, 0x8500cbff, 0x0322e182, 0x7d820300, + 0x9d820620, 0x0c000926, 0x0e000b00, 0x2008837e, 0x20618211, 0x85698219, 0x8210206b, 0x85691b6b, 0x82f32013, 0x82f020fd, 0xfff02259, 0x220182ef, + 0x8277ffbb, 0x00012653, 0x0200001b, 0x4953434e, 0x418b0121, 0x172208d1, 0x61824700, 0xe8ff0024, 0x0783baff, 0xff000023, 0x260182fc, 0xfff9fff8, + 0x84f5fff4, 0x091743e1, 0xef84d520, 0x17431783, 0x85fc2005, 0x824b8831, 0x21fd82a4, 0x5b440004, 0x059d4105, 0x1c001626, 0x15001d00, 0x9d410182, + 0x41052009, 0x4184099d, 0x220f9941, 0x43920031, 0xe7223017, 0x4b84ceff, 0x4e001a22, 0x20308f43, 0x26398254, 0xff3f0001, 0x182802f3, 0x284e276f, + 0x0017008c, 0x00130012, 0x2401820f, 0x000b000c, 0xb5a81808, 0xeb6b180b, 0x18002007, 0x2409db69, 0xfff7fff7, 0x240182f1, 0xffeaffeb, 0x220182e4, + 0x84ebffeb, 0xfff7220f, 0xb5b718f6, 0x4500200c, 0xdb590f0b, 0x000c2212, 0x2675820c, 0x002a001e, 0x7e38002b, 0x002006f5, 0x2406d346, 0x000e000f, + 0x28018212, 0x00150016, 0x0019001a, 0x2103821d, 0x00820033, 0xffe5ff23, 0x08a744b1, 0xf4fff222, 0x93830182, 0xfafffb22, 0x00201c82, 0x22163746, + 0x45ae0057, 0x2c220c13, 0x47468300, 0x00032222, 0x28258203, 0x00300001, 0x02380200, 0x70e179cb, 0x6e194620, 0xd326086b, 0x090079ff, 0x01820a00, + 0x03840b20, 0x0c000b22, 0x83069547, 0x4fb6180f, 0x06002108, 0x0222ff84, 0xdd840200, 0xedffed2c, 0xefffd8ff, 0xecffebff, 0x0182e9ff, 0xe7ffe628, + 0xdbffe3ff, 0x0182dfff, 0x0982e320, 0x6b191383, 0x7b460bd5, 0x326d820a, 0x00130009, 0x001e0014, 0x0029001d, 0x00110016, 0x460e0012, 0x0b22083f, + 0x01820700, 0x18000521, 0x2308ab93, 0xf5fff4ff, 0xf5206182, 0x0865de1a, 0xf2fff126, 0xe2fff0ff, 0xe4266582, 0xf7ffe6ff, 0x9184efff, 0x8208df48, + 0x4614200d, 0x0320069f, 0x08f57818, 0x0c22c783, 0x01840d00, 0x0f001024, 0x01821000, 0x85821120, 0x15228783, 0x85821500, 0x19001626, 0x37004800, + 0x26200182, 0x2b838f82, 0xaf420720, 0xf9ff2109, 0x77830182, 0xe8ffe924, 0x0182e0ff, 0xd5ffd526, 0xfdffcaff, 0x20061942, 0x20b18202, 0x20cb823c, + 0x2043822a, 0xff981818, 0xfffd2408, 0x82fafffe, 0x82f72001, 0xfff326a3, 0xffeffff1, 0x170a1bee, 0x82ea2008, 0xffd2263d, 0xffd8ffd1, 0x0f4e19ed, + 0xfff32208, 0x20e982f3, 0x20e782ea, 0x83c382f5, 0x00132202, 0x20db8439, 0x200582d9, 0x21d38301, 0x87592c02, 0x003c241a, 0x8440016b, 0xffaf222f, + 0x2307830c, 0x28016200, 0x9d210f84, 0x184183fe, 0x220b0b6d, 0x83140000, 0x221d824f, 0x8212015c, 0x420f8905, 0x512007bf, 0x200acf48, 0x4e3f4ccc, + 0x7b003f24, 0x99846e01, 0x2653cd48, 0xffedfff1, 0x48e9ffee, 0xe5200635, 0x2014d548, 0x207d84fd, 0x830583ff, 0x87ff2003, 0x07154109, 0x47016d24, + 0x01820e00, 0x0d000f22, 0x22069942, 0x4809000a, 0xfb200ad9, 0x08cd3719, 0xf3fff224, 0xd948f1ff, 0x48192012, 0x0f210cd9, 0x05ef4600, 0x480d5b47, + 0xe7260de1, 0xe0ffe2ff, 0x0182d6ff, 0xa9ffd234, 0xa6ffa7ff, 0x25000200, 0x6202f3ff, 0x6700cb02, 0x21549300, 0xb1411864, 0x00bb2231, 0x06234110, + 0x09000b29, 0x06000800, 0x44000700, 0x002005dd, 0x10220082, 0x05823100, 0xf0ff0023, 0x069b65ff, 0xfffbff25, 0x18f7fffc, 0x2608b15f, 0xffd2ffdf, + 0x82c4ffd1, 0x82d12001, 0x18df2007, 0x240a61e5, 0x00180000, 0x823b8349, 0x00042203, 0x26578404, 0x000c000c, 0x82100011, 0x00182219, 0xe946191f, + 0x207b870c, 0x22298206, 0x82020004, 0x293682c6, 0xefff0000, 0xdcffccff, 0xb748e2ff, 0xfff52206, 0x201684f4, 0x244d8205, 0x000b000a, 0x17d3180f, + 0x00152408, 0x82120017, 0xff112401, 0x82f9ffb0, 0x84fa20a3, 0x08095ea5, 0x01204f84, 0x01200582, 0x03203f82, 0x05203d82, 0x0822e982, 0x43820a00, + 0x39820d20, 0x15822e20, 0xff200282, 0xdb822f82, 0xc519fb20, 0xf8200895, 0x086bbb18, 0x1e82f920, 0x2f820720, 0x0e000a24, 0xc3840d00, 0x26057944, + 0x001a0016, 0x825a002c, 0x0000241d, 0x843f0014, 0x82062007, 0x0024221f, 0x20e1821e, 0x221d821a, 0x82150015, 0x959d1897, 0x82ef2009, 0xffdd22d3, + 0x26d782dd, 0xffbbffcd, 0x84dbfe6e, 0x016b2433, 0x84260040, 0x82172033, 0x8211208f, 0x229b8341, 0x83050005, 0x44ff201d, 0xf6200789, 0xf3229d82, + 0x4182f3ff, 0x53fff021, 0xe72205e9, 0xb582e2ff, 0x28829d83, 0x82f2ff21, 0xffe5241b, 0x82d7ffe6, 0x18c92001, 0x210ca1c9, 0xd719fff0, 0x03260b23, + 0x4c000300, 0x07410200, 0x820f2006, 0x821a20a5, 0x000a227d, 0x20018209, 0x21038208, 0x01830007, 0xeb841320, 0x04220983, 0x5e820400, 0xff230282, + 0x829cffde, 0xffe72657, 0xfff0ffe7, 0xbdc518f8, 0x57fe2008, 0x022206c3, 0x55820100, 0xf3ff2328, 0xbd023602, 0x21192f00, 0x702a6011, 0x13001500, + 0x0f001200, 0x03822000, 0xa0821020, 0x0f200283, 0x07827982, 0xe74bff20, 0x20ab8206, 0x280e82b4, 0xffdfff00, 0xffcbff9a, 0x200182d5, 0x211b82e1, + 0xd419fff5, 0x0f370d25, 0x1e001000, 0x2b001f00, 0x39002c00, 0x19001a00, 0x5cff1800, 0x48fff2ff, 0xfc200541, 0x0aa9ca18, 0x0322e383, 0x01820500, + 0x42000621, 0x0d240513, 0x11000d00, 0x15200182, 0x84050b4c, 0xfffe256d, 0xfffafffe, 0x20056744, 0x2a4782f1, 0xffebffeb, 0xffe3ffe4, 0x82eaffea, + 0x0007251f, 0x000c000b, 0x2f28b783, 0x41003000, 0x8b004600, 0x2214c545, 0x847cffd5, 0xff002217, 0x200182ef, 0x200382de, 0x244782ea, 0xffe6ffe7, + 0x280182e2, 0xffbeffde, 0xffcfffce, 0x2d5b18de, 0x0003240a, 0x82610003, 0x0721498f, 0x18001822, 0x1524cb82, 0x13001200, 0x1122a182, 0x75820e00, + 0x0b24af83, 0x08000a00, 0x04200182, 0x08497618, 0x4affc422, 0xef226584, 0x0182f0ff, 0x6218f320, 0x3d4908b1, 0x00072c05, 0x00010007, 0x0200005d, + 0x18bd0232, 0x823f01b3, 0x001a2247, 0x0c074f4c, 0x0a000422, 0x0f200182, 0x15249f82, 0x1d001500, 0x2008074f, 0x2115820e, 0x074f0009, 0x854b200f, + 0x3f64183b, 0x09c14d08, 0xeaffee26, 0xe8ffebff, 0xe6280182, 0xddffd8ff, 0xe4ffdeff, 0xff212b83, 0x073f51e6, 0x54220d82, 0x3950fd00, 0x000e2108, + 0x200ff74e, 0x06b541fc, 0xf4fff424, 0x0188f2ff, 0x634cdd20, 0x00132606, 0x001d0039, 0x081d461a, 0x49841120, 0x0a000b22, 0x08379718, 0xff216082, + 0x200182f6, 0x27dc18ee, 0x18512008, 0x24080b8f, 0x00bd022a, 0x0d09460b, 0x005c0025, 0x845a0174, 0xfea622a3, 0x8b0784f2, 0x07d146ab, 0x0d7f961b, + 0xf3ff2e24, 0x881b3a02, 0x012551db, 0x001100e8, 0x2401820c, 0x0009000a, 0x23981906, 0x0000230d, 0x674de9ff, 0x82ff2008, 0xfffe2e0d, 0xfffdffff, + 0xfffcfffe, 0xfff1fff9, 0x201d82f0, 0x210582e9, 0x5f4dfff0, 0xd2ff230c, 0xd38475ff, 0x17223b87, 0x90184600, 0x00210c7b, 0x57f31800, 0x18062009, + 0x220affcd, 0x82160011, 0x001b2801, 0x0015001b, 0x82ffff15, 0xbf61198b, 0x0014240b, 0x82180014, 0x001d2401, 0x84d9006d, 0xffac225f, 0xdff91a02, + 0xfff42408, 0x82f7fff6, 0x18f22095, 0x24084d70, 0x00070007, 0x8301820e, 0x00232433, 0x83e10071, 0x49002033, 0xbb62082b, 0x6f002305, 0x4b844d01, + 0x49ffc322, 0x22067146, 0x84ecffec, 0xfff321d3, 0xf9205387, 0xe319f382, 0x00200939, 0x1b2abd82, 0x4d02f3ff, 0x7300cb02, 0xd941c300, 0x1d77670d, + 0x249a1d40, 0x00140098, 0x25018212, 0x000f0010, 0xbc19000c, 0x0624097b, 0x05000600, 0x03240182, 0x01000300, 0x00300182, 0xfaff0000, 0xf4fffbff, + 0xeffff5ff, 0xebfff0ff, 0xe6280182, 0xe1ffe6ff, 0xdbffe2ff, 0xd6260182, 0x11000e00, 0x49821000, 0x15001322, 0x17200182, 0x16200382, 0x17220784, + 0x01821900, 0x40821b20, 0x3b820020, 0x87fff621, 0x82f72001, 0x19eb200d, 0x26083d8c, 0xffeaffeb, 0x82edffee, 0x82ee2003, 0xffdf285d, 0xffe3ffe4, + 0x4cf8ffe7, 0xe9220631, 0x3f83bbff, 0x34206182, 0xf7223582, 0x141af7ff, 0xa3830c33, 0x200b2748, 0x32d38214, 0x001a0019, 0x00210020, 0x001b0027, + 0xff170018, 0x84f2ff73, 0x203b83bb, 0xe17718f9, 0x0000210d, 0x8505534a, 0x0ea94405, 0x08000828, 0x02000b00, 0x4b820400, 0x1c001d22, 0x0c23961b, + 0x0c000c24, 0x0d440900, 0x092b4106, 0x2d410220, 0x2d221905, 0xffff220c, 0x200182fd, 0x207782fa, 0x22bb82f8, 0x63f3fff4, 0xe4220869, 0xf382ebff, + 0xfdffef24, 0x69820500, 0x2107dd4d, 0xd14a000c, 0x820f2005, 0x841020f1, 0x82122003, 0x00132205, 0x22d98213, 0x82220027, 0x851c2001, 0x061347d7, + 0x85820e20, 0x06000a22, 0x01224382, 0x0b840c00, 0x49000721, 0xff2108db, 0x227b84fc, 0x82f5fff9, 0x82f02001, 0x824420c7, 0x000422cd, 0x20018603, + 0x20078202, 0x07e95004, 0x2006e543, 0x22a982fb, 0x82f8fffa, 0xffe824a5, 0x84e2ffe9, 0x001c22cb, 0x23078356, 0x6fffd0ff, 0xe7240784, 0xe6ffe7ff, + 0xe5280182, 0xe3ffe2ff, 0xe1ffdfff, 0xe4210582, 0x240183ff, 0xffe8ffe8, 0x23d782ec, 0xfff0fff0, 0x0d81a21b, 0x50000322, 0x06217b82, 0x229d8300, + 0x82090008, 0x000b22f1, 0x22b1820b, 0x860d000c, 0x830d8507, 0x8206200f, 0x001e2211, 0x8301821d, 0x001924eb, 0x18170019, 0x830c617b, 0x82fb20a3, + 0x18f820a3, 0x8308ed99, 0xfff324df, 0x86f1fff3, 0x207f8301, 0x08d554ef, 0x8b82f220, 0x0382f320, 0xf2fff022, 0x5b190182, 0xff2208cf, 0x3b4afff9, + 0x00022a07, 0x00010002, 0x0200004a, 0x41f7461f, 0x6bb90121, 0x3f510f0b, 0xfff22610, 0xffebffea, 0x083f51e3, 0xf6fff222, 0x4954ad82, 0x05774405, + 0x09458c18, 0x04000026, 0x08000300, 0x0c300182, 0x0f000c00, 0x2a001f00, 0x35002900, 0x14001700, 0x10220182, 0x13821000, 0x0d000f22, 0x82052141, + 0x01842205, 0x2405828a, 0xffd8ff00, 0x08d74687, 0x51050141, 0x13530527, 0x00042105, 0x24115f57, 0x0070000e, 0x223b84e0, 0x8219ffb4, 0xffe6229d, + 0x24a582e6, 0xffefffea, 0x204982ee, 0x43441ae5, 0x00022208, 0x223d8202, 0x82070005, 0xff092201, 0x263182bc, 0xff240001, 0x183102e6, 0x205e4ba3, + 0x229b8431, 0x829dffbe, 0x82a92001, 0xfff5268d, 0xfff8fff5, 0xa33919fd, 0xffff2208, 0x212183ff, 0xfa180400, 0x0e220c1f, 0x01821000, 0x66181320, + 0x162808c9, 0x17001800, 0x19001a00, 0x1a260382, 0xecff1c00, 0x0182deff, 0xd8ffec26, 0x1100b1ff, 0x16241384, 0xd9ffdaff, 0xdc2f0382, 0xe1ffdcff, + 0xe5ffe2ff, 0xeaffe3ff, 0x18ffe9ff, 0x410b45e9, 0x06280703, 0x09000700, 0x16000f00, 0x1d240182, 0x4a003100, 0x47280182, 0x22002600, 0xe6ff2300, + 0x49206982, 0x26206782, 0x05220f84, 0x01840600, 0x09258918, 0x5b058743, 0x082207a1, 0x72180b00, 0x0c220827, 0x01960d00, 0x6f000c21, 0xe5270b27, + 0xd7ffd6ff, 0x56ffdbff, 0xea2005d1, 0xea22a582, 0x0182ebff, 0x0984e820, 0xeeffee2c, 0xf0ffefff, 0xf6fff1ff, 0x9518f8ff, 0xfa2108bd, 0x053955ff, + 0xf5fff522, 0xe5243782, 0xe6ffe4ff, 0xf1622182, 0x00022c05, 0x02e9ff2f, 0x00cb0239, 0x469d0085, 0x02219fe7, 0x20bf8239, 0x20e982e9, 0x060743e7, + 0x0b000c24, 0x60190700, 0xe1830a6d, 0xf2fff228, 0xefffeeff, 0x0182ebff, 0xe8ffe922, 0xe620eb82, 0xe522f182, 0x0b82e7ff, 0x0382e820, 0xecffeb22, + 0xef201d82, 0xf3222582, 0x0182f6ff, 0xfbfffa23, 0x22008500, 0x854d001a, 0x080b5308, 0x1d001d24, 0x614b2800, 0x4b102006, 0x7b530661, 0x150d1905, + 0xfffd260d, 0xfffafffc, 0x244d82f9, 0xfff3fff5, 0xa31f19e9, 0x05374508, 0x7f82da20, 0xb582e320, 0xf7fff624, 0x2784f8ff, 0x43fffe21, 0xbf8305f3, + 0x41001621, 0x0f2405fb, 0x10000e00, 0x11220182, 0x01821c00, 0x1a001b26, 0x18001900, 0x16200182, 0x08218d84, 0x22778500, 0x82080009, 0x000a2491, + 0x8270fe0a, 0x117918ab, 0x0011240b, 0x82220021, 0xff242201, 0x20df82f0, 0x21038aee, 0x0d82ffde, 0x1f244f82, 0x1d001c00, 0x1d205182, 0x20262982, + 0x24002300, 0x4b822700, 0x05822a20, 0x22056546, 0x8216001d, 0x00112401, 0x820d0011, 0x82072001, 0x00042269, 0x57658204, 0xf320097f, 0x4b82dd82, + 0xea20df82, 0xe422d382, 0x0182deff, 0xfb83d720, 0x00212583, 0x53318202, 0xfb20156f, 0xac18f582, 0xef2009b3, 0x2408cb4b, 0xffe0ffe5, 0x240182e2, + 0xffe5ffe5, 0x200182e6, 0x069948e7, 0xf3820920, 0x7b860520, 0xf6fff724, 0xcb18edff, 0xf3220837, 0x0182f1ff, 0xdfffef22, 0xee202f84, 0xfa221b82, + 0x8182f9ff, 0xfefffb22, 0x24060b44, 0x00050005, 0x2601820b, 0x0010000f, 0x86f5ff14, 0xfff42201, 0x200982f4, 0x24fd82f2, 0x00060006, 0x06cb4171, + 0x67820820, 0x03000422, 0x5783e384, 0xefffe222, 0xff1ae182, 0x10200d89, 0x00214782, 0x09ef5800, 0x25433f20, 0x008b2442, 0x84920031, 0x7be35875, + 0x2207834c, 0x58310166, 0x022a70db, 0x00002b00, 0xcb023d02, 0x99184300, 0x3a216aed, 0x23008200, 0xedfff1ff, 0xeb2c0182, 0xd6ffd9ff, 0xdaffd5ff, + 0x1f002100, 0x1e210182, 0x05814800, 0x23841a20, 0xdcffda26, 0xddffdbff, 0xdc200182, 0xed240584, 0xe2ffe3ff, 0xda263582, 0x1b00b4ff, 0x01822900, + 0xe7432520, 0xffea2208, 0x240182ef, 0xfff6fff6, 0x064b44fc, 0x0ba9671b, 0x0a000924, 0x01820b00, 0x2407df45, 0xff82000e, 0x243b82bf, 0xffeeffee, + 0x200182f4, 0x06ad56fa, 0x04000322, 0x2008f347, 0x9def1a10, 0x8207200c, 0x000c210d, 0x22051b44, 0x82220020, 0xff1722af, 0x24a582ba, 0x003a0013, + 0x28bb8419, 0x00400022, 0x00460045, 0x2097823f, 0x53c71820, 0x001b2a0c, 0xff000038, 0xfff5fff4, 0x247382ea, 0xffe0ffe1, 0x22e782d7, 0x82310031, + 0x23428205, 0xbdffd3ff, 0xc4220182, 0xe584e1ff, 0xf382da20, 0x0b82e220, 0xe7ffe822, 0xea222f82, 0xf95cecff, 0xfff8240a, 0x82f9fff8, 0x1afb2001, + 0x200e9fa5, 0x0a615c52, 0x1022e783, 0xc1530d00, 0x00172608, 0x001b0017, 0x8301820c, 0x410b2019, 0x55820509, 0xe6ffe728, 0xcbffe4ff, 0x0182c9ff, + 0x3f82dc20, 0x0100002a, 0xf3ff2b00, 0xbd025d02, 0x2347a35f, 0x16007801, 0x2008ed4c, 0x2181820b, 0xb3450008, 0x656e8405, 0xd02208d1, 0x10856eff, + 0xd951ff20, 0xfffc2205, 0x510182f6, 0xeb230bd9, 0x83ffeaff, 0x41f7200f, 0xf91905df, 0x81520957, 0x223f8207, 0x82050004, 0x8408205d, 0x000f21e7, + 0x24055761, 0x001a0039, 0x5a018219, 0x882219df, 0x3b820f01, 0x14000025, 0x82003b00, 0x7fff2300, 0xe75a7dfe, 0x251f6130, 0x03000322, 0x01296082, + 0xf3ff2000, 0xcb024902, 0xdb621800, 0xbb012398, 0xe54a1800, 0x000c2208, 0x0c7d510c, 0xf7fff824, 0x0182f1ff, 0xe7ffe72c, 0x1700deff, 0x13001200, + 0x21820d00, 0x05000524, 0x01820400, 0x02000123, 0x23008200, 0xfbfffcff, 0x0c457c19, 0x20090d48, 0x243982e9, 0xffe2ffdf, 0x220782e3, 0x82ecffe7, + 0xfff22601, 0xfff9fff2, 0x223682f8, 0x82460024, 0x00072405, 0x49100007, 0x1e2606dd, 0x1e003d00, 0x53841f00, 0xfefffe24, 0x0182fdff, 0x5b82fb20, + 0xff202f82, 0x26094161, 0xfff0fff2, 0x833bff9d, 0x4a002525, 0x2400de00, 0x083dae19, 0x0a000922, 0xf8203b84, 0xee20b782, 0x2006c146, 0x226f82f1, + 0x82efffef, 0x82ea2079, 0x19ee2005, 0x8308cff3, 0x6b5b1823, 0xddff230c, 0x3d82bbff, 0x06000722, 0x0d24e382, 0x14001500, 0x1d225782, 0x01822400, + 0x21002d22, 0x1d209782, 0x0920f182, 0x85691b82, 0x00132205, 0x20218212, 0x20038414, 0x221d8215, 0x181b001b, 0x220ac5fb, 0x820e0007, 0x5c142001, + 0x0c200849, 0x0d200d82, 0x17223b82, 0xdd481300, 0x5b0f2006, 0x092008e9, 0x07207182, 0x15475b82, 0x094f6d05, 0xebfff02a, 0xe7ffeaff, 0xe3ffe8ff, + 0x00209782, 0xbf186382, 0x07200991, 0xe626e784, 0xcaffe5ff, 0x7147f4ff, 0xfff62206, 0x20f382f6, 0x063544f7, 0x9164fc20, 0xffec220c, 0x203183c4, + 0x275e1800, 0x82e82009, 0xffe22257, 0x220582e1, 0x82edffe8, 0x05694439, 0x9551fa20, 0x19042008, 0x220c699e, 0x820c000a, 0x820d2001, 0x180e20c1, + 0x22081377, 0x82e4ffe2, 0x82e6207f, 0xffeb26a1, 0xfff0ffec, 0x847983f1, 0x051b4265, 0xf3ff1b24, 0x5f444e02, 0x00c5264a, 0x00120016, 0x207f8213, + 0x35fc1a10, 0x338b180f, 0x44098209, 0xf7200957, 0x074e9382, 0x07934423, 0x07611720, 0x83c38205, 0x4e0720c1, 0xa162080f, 0x00382605, 0x0019001b, + 0x08c15818, 0x444d3f5f, 0x5f180757, 0x9a2207e9, 0x7f65cffe, 0x075f441a, 0xf3ff3026, 0xbd023802, 0x82296f18, 0x17009d22, 0x088bf718, 0x51000f21, + 0x514a0533, 0x00002106, 0x2109b945, 0x0182f7ff, 0xeeffed24, 0xdd82e2ff, 0xd7ffd722, 0xe2200782, 0xeb700d82, 0x00032209, 0x082f5502, 0x04000424, + 0x01820500, 0xc9560620, 0x4d252006, 0x0d2208bd, 0x01820900, 0x73820620, 0x26002622, 0x2705bb50, 0xbaffd0ff, 0xc0ffb9ff, 0x22087b57, 0x82f2ffef, + 0xfff32501, 0x00d7ffec, 0x05220083, 0xc9671100, 0x000e280a, 0x000f000d, 0x82060016, 0x860c205f, 0x82ef2033, 0xfff02207, 0x223582f0, 0x19f4fff1, + 0x830e6dee, 0x0012246f, 0x82180012, 0x001e2401, 0x8221001e, 0x00242401, 0x8219001b, 0x00022401, 0x820c0008, 0x8211204f, 0x0581471f, 0x22001c29, + 0x29002300, 0x43000300, 0xfd2c05a9, 0xc4fff9ff, 0xd5ffd6ff, 0xe7ffe8ff, 0xf4205982, 0x31829083, 0x3f840c20, 0x2a002a24, 0x43443a00, 0x840c2008, + 0x81d618a5, 0x2b1b1909, 0x82ff2009, 0xfffe2200, 0x061945fd, 0xf1fff722, 0xf720ab82, 0x42246982, 0x1c001300, 0x1a200182, 0x04206d82, 0x53065754, + 0xff820829, 0x6d84c520, 0x18ff0021, 0x24095d7b, 0xfffafffc, 0x224982f7, 0x82fcfffd, 0xfffb2114, 0x09e1b818, 0xedffee24, 0xa582e9ff, 0xe3ffe429, + 0xdeffdfff, 0x59ffdaff, 0xe02005eb, 0x17830d82, 0x0b7b1a19, 0xdf820420, 0x51000121, 0xcc2105d3, 0x42a74b00, 0x19224b82, 0xad854b00, 0x64030021, + 0x15201047, 0x1d21e382, 0x09e56500, 0x04000a22, 0x0220ed82, 0x82058546, 0x080b5935, 0xfc21cf82, 0x09bf64ff, 0xd382f120, 0xeaffee22, 0xe728d784, + 0xc8ffe5ff, 0xd5ffd6ff, 0x200cdf67, 0x07eb7afd, 0x00244582, 0x83018100, 0x2230f55e, 0x84a8fe54, 0x017a253b, 0x001e006d, 0x2035f55e, 0x2941825e, + 0xff300001, 0x023802e4, 0x501800cb, 0x012178cb, 0x2c8782e6, 0xffebff00, 0xffe0ffdf, 0x000f00e3, 0x22018210, 0x84110011, 0x82102007, 0x000c240f, + 0x820a000c, 0x06df4301, 0xfffbff24, 0x0950fffc, 0x50f12005, 0xec201c09, 0x18080950, 0x690e9bf9, 0x00210991, 0x20578209, 0x63cc1b12, 0x002a2810, + 0x001f001e, 0x82130012, 0x84092019, 0x051b489d, 0x83fff921, 0x18f62001, 0x6208819d, 0xed20055d, 0x8f830f82, 0x1357f420, 0xfff82406, 0x82dbffea, + 0x83e92001, 0x1a002139, 0x0b43a118, 0x82e4ff21, 0x004b247b, 0x820d0008, 0x820c2001, 0x0004221f, 0x200d8205, 0x200d8209, 0x256f840e, 0x00170018, + 0xcf43001d, 0x00272305, 0xb94f0028, 0x821c2005, 0x00172215, 0x20218211, 0x2029820c, 0x4fb58208, 0x3b2231b9, 0x01822a00, 0x3f821920, 0x2205cb44, + 0x82030005, 0x2f828201, 0xf3fff4ff, 0xe6ffe8ff, 0xd6ffd7ff, 0xe0ffc7ff, 0xe5220982, 0x4951e9ff, 0xfff02208, 0x541f82f2, 0x01220b69, 0xe3180100, + 0x032008bd, 0x0f288b82, 0x09000f00, 0xbeffdfff, 0x24061741, 0xffe5fff1, 0x20e982e3, 0x6ab58201, 0x45200533, 0x8242534f, 0x00012574, 0x1800df01, + 0x18073547, 0x2008e3f5, 0x1b8e1aeb, 0xffcd240a, 0x82d8ffce, 0xffe12201, 0x20c382e2, 0x20bb82ea, 0xc98018f2, 0x0017220a, 0x0c135848, 0xbd820520, + 0xbd820920, 0x16000e26, 0x1d001500, 0x95471b84, 0x00162207, 0x20018212, 0xa17e190d, 0x65072008, 0x86820889, 0x04852984, 0x48016e26, 0x24002900, + 0x1f220182, 0x9d821f00, 0x210cff76, 0x0182f7ff, 0xeeffee24, 0x0182e8ff, 0xe0ffe128, 0xdcffddff, 0x3d65d7ff, 0x22518207, 0x5d1c000e, 0x162006e9, + 0x08db6a19, 0x95820820, 0x77ff0424, 0x6084edfe, 0x35016724, 0x935efeff, 0x5cf52008, 0xf02006dd, 0x0a81fc18, 0x70ffed24, 0xd3660200, 0x00752208, + 0x486d41bd, 0xf0057341, 0x46002505, 0x67017700, 0xff27fd83, 0x007affd3, 0x82130012, 0x24058303, 0x00100010, 0x2301820e, 0x000a000b, 0x0a3dcc18, + 0x82fdff21, 0xfff92801, 0xfff5fff9, 0x19f1fff4, 0x2808ff0c, 0xffe0ffe8, 0xffdaffe1, 0x8bde18e6, 0xffef2408, 0x6ff2fff0, 0xf9220a7b, 0x991af8ff, + 0xfd2208a1, 0x9218feff, 0x7a83081f, 0xf6860120, 0x2a055359, 0x00060004, 0x00080005, 0x84090007, 0x05a54481, 0x0f200583, 0x09201182, 0x0b208f82, + 0x2006a544, 0x20078208, 0x06b35405, 0x55855082, 0xe224a184, 0xe2ffe3ff, 0xfa210182, 0x052f5eff, 0xb4ffe727, 0x41010000, 0x05254b00, 0xf3ffed22, + 0xf0209b84, 0xf520a386, 0xf5220f82, 0x0184f6ff, 0xba18f820, 0xfd2008ef, 0x0ce5fe18, 0x83000321, 0x48032097, 0x072208b7, 0x8d820800, 0x8d820820, + 0x85820a20, 0x0f000b2a, 0x10000e00, 0x1f002d00, 0x12200182, 0x20111b5e, 0x51f918ff, 0x00ee230b, 0x8e820002, 0x02830382, 0x44073b52, 0x112805a9, + 0x14001100, 0x16001500, 0x19240382, 0x1b001800, 0x1f260182, 0x21001e00, 0x01821a00, 0x03821920, 0x20058d4c, 0x20258215, 0x1871820f, 0x2009616a, + 0x20f98400, 0x226982fa, 0x82f9fff8, 0xfff721cb, 0x20052945, 0x20ed84f3, 0x0ce159f1, 0xefffef22, 0xf9222782, 0x2982faff, 0x22056945, 0x82f7fff8, + 0x833983f9, 0x82f92003, 0xfff7221d, 0x410582fc, 0x351905ab, 0x0f830905, 0x1d84fa20, 0xedfff326, 0xe8ffecff, 0xf5206982, 0x6d850384, 0xebfff422, + 0x0883bd19, 0x67000021, 0x792609df, 0x1c002200, 0xd5821d00, 0x09001022, 0x04220182, 0xf5410400, 0x00002206, 0x20098402, 0x22118202, 0x82060004, + 0x07b31a05, 0x8208200b, 0x82132031, 0x00122147, 0x20056f41, 0x71078209, 0x062105fd, 0x0fad4e00, 0x22057754, 0x82eefff2, 0x82ec20dd, 0x279f839b, + 0xffdbffed, 0xffe0ffe1, 0x24051755, 0x00e8ffe5, 0x2a7d820a, 0x0000000a, 0x00310001, 0x6d630200, 0x4f824977, 0xb3611920, 0x6e03200a, 0xb36108c9, + 0x840a2015, 0x4602201f, 0x8f820519, 0x17223b87, 0x0f604600, 0xff00280c, 0xfffbfffc, 0x43f8fff9, 0xe2260673, 0xd4ffd5ff, 0x0182c8ff, 0xd6ffd528, + 0xf0ffe2ff, 0x0182f4ff, 0x915b1f83, 0x203e8307, 0x08eb4800, 0xe1670e20, 0x82092008, 0x1b0420fb, 0x700cf1f3, 0xeb480fbb, 0x43b36d07, 0x2405f348, + 0x02f3ff4a, 0x0b15191f, 0x4e962046, 0xfd222827, 0x0182fbff, 0x4efff721, 0xe7222727, 0x3441b5ff, 0x0e2f5c05, 0x73271f4e, 0xf3200bbf, 0x6d08395c, + 0x7752255f, 0x0010242d, 0x41570200, 0x8024464f, 0xa1003600, 0xff23f783, 0x84aaffe4, 0x75e72007, 0xfe220843, 0x4341feff, 0x82f62006, 0xfff124cf, + 0x82eaffeb, 0x84e32025, 0xfff22307, 0xa548fff1, 0x231b7505, 0x2a001f22, 0x35210182, 0x07215100, 0x0e001024, 0x03820f00, 0x03837083, 0x6307ff44, + 0xac2207bf, 0x7b5d04ff, 0x00352230, 0x22bf846c, 0x5d9dffdf, 0x34262e7b, 0x3302f3ff, 0xc71acb02, 0x012bb367, 0x001700a6, 0x00140013, 0x82200010, + 0x000f2103, 0xff210082, 0x065953fe, 0x5ffff821, 0xf52605e1, 0xf3fff6ff, 0x0382f5ff, 0x2205ef59, 0x82f2fff3, 0x84fa200b, 0xfffe2127, 0x22056161, + 0x82fcfffc, 0x84f8202d, 0xfff32223, 0x200782f4, 0x203182f4, 0x081146f4, 0x84fffb21, 0x225e822f, 0x82020000, 0x050b4701, 0x08000622, 0x09240182, + 0x0c000900, 0x08674a18, 0x18002022, 0x40180182, 0x23260969, 0x00004600, 0x3f82f9ff, 0x5782f420, 0xeeffed2e, 0xe7ffe6ff, 0xe0ffdfff, 0xdaffd9ff, + 0xe1200582, 0xe8200d82, 0xee201582, 0xfa207384, 0x2006bf57, 0x08457404, 0x97520b20, 0x82102008, 0x481220e1, 0x1121089f, 0x20018300, 0x2213820f, + 0x180f000d, 0x2310d384, 0xfffdfffd, 0xf920b383, 0xf724d582, 0xe5ffecff, 0xde220182, 0xbf42deff, 0x82e92006, 0x82f520db, 0xffdd2295, 0x19d182b9, + 0x22094142, 0x821d0017, 0x00232401, 0x4f280024, 0x022206b1, 0x5b820800, 0x0e000c22, 0x25241782, 0x30002600, 0x77837f82, 0x73820e20, 0x2209f563, + 0x8207000a, 0x82062027, 0x00062405, 0x82050006, 0x00032403, 0x82010002, 0x8200205b, 0x82012005, 0x84022003, 0x82032003, 0x460420d5, 0x052006b3, + 0x07202784, 0x07202b82, 0xd7583782, 0x820a2009, 0x051f506f, 0x361a0820, 0x04200a21, 0x02203982, 0x52825382, 0xf922d182, 0x7749f0ff, 0x24108207, + 0x001a0000, 0x23018217, 0x00150016, 0x20096f5c, 0x21198307, 0x0182f9ff, 0xf3fff324, 0x0182efff, 0xeaffeb24, 0x0182e9ff, 0x0382e620, 0xedffee24, + 0xb75ef2ff, 0x51431905, 0x05054808, 0xfafffa22, 0x0a090b19, 0x0d82f920, 0x20054542, 0x202782f6, 0x493384f4, 0x558305d7, 0xf6fff422, 0xf7200182, + 0x0aa7c518, 0xb3820a20, 0x14001324, 0x01821b00, 0x81842320, 0xe3ffdf22, 0xe6210182, 0x072156ff, 0x6f66f320, 0x00042408, 0x62000003, 0x63500837, + 0x0d3378ff, 0x20396350, 0x08975802, 0x9b4c7d20, 0xbb0125c1, 0x14001900, 0x700c9f60, 0xc158095d, 0x19f12027, 0x2808b34e, 0xffcbffd6, 0xffe8ffe4, + 0x419f1be7, 0xfff22208, 0x2beb18f1, 0x00043110, 0x00090004, 0x000d0008, 0xff10000c, 0x00a5ffd2, 0x4a2a0083, 0x2500df00, 0x1c001b00, 0x8f821300, + 0x0a000922, 0xff211483, 0x220182fe, 0x19fcfffc, 0x2208b75c, 0x82f4fff4, 0xfff22251, 0x240182ee, 0xffe5ffeb, 0x200182ea, 0x0f9f49f0, 0xffddff29, + 0x00ffffbb, 0x82070006, 0x050d4f63, 0x57821c20, 0x22002230, 0x02002900, 0x21000500, 0x1d001d00, 0x99826aff, 0x19fff721, 0x8309db5c, 0x5ffe206b, + 0x01200697, 0x03222782, 0x2b820300, 0x47840420, 0x71790a20, 0x820f2008, 0x20bd839f, 0x20178409, 0x22638207, 0x820b0005, 0x201383ad, 0x086f4a07, + 0xc0823f83, 0x20082f4c, 0x226782f6, 0x84f3fff3, 0x82e920b7, 0xfff12205, 0x081159f2, 0x10001024, 0x8a181100, 0x142208cb, 0x9d821500, 0x1b001a26, + 0x19001800, 0x10221982, 0x63820800, 0x0e000e22, 0x0a207782, 0x0b206982, 0x0c200382, 0x0d20d782, 0x2b201182, 0x2120c982, 0x1a202982, 0x85180f84, + 0xfa200933, 0xf7216d82, 0x054d44ff, 0xeffff122, 0xee220184, 0x0782edff, 0x7b82ee20, 0xf4200f83, 0xf9208b82, 0x00213082, 0x0ddd58ff, 0xf0fff024, + 0x0182e9ff, 0x9b18e320, 0xf3200877, 0x2108db7d, 0x5f4efff8, 0x53fd2005, 0x551806ef, 0x0d200905, 0x1120bf82, 0x1222c182, 0x53841400, 0xe5ffe326, + 0xe6ffe4ff, 0xec200182, 0xef205f82, 0x0c6b6c19, 0xf7820020, 0xaa010422, 0x07200582, 0x21086d67, 0xd987000a, 0xc9820a20, 0x24059d45, 0x0009000a, + 0x45018408, 0x042205f3, 0x01820200, 0x00215e83, 0x07894eff, 0xfeffff25, 0x45fffcff, 0x8d470543, 0x05274d05, 0xff82f620, 0x7f45f120, 0x82f5200a, + 0x6d7e18b9, 0x2a478509, 0x004e0001, 0x022f0200, 0x500f00bd, 0x1b821161, 0x22072b4c, 0x841d015f, 0xfea122d3, 0x0dbf49e3, 0x6f200d82, 0x2305ab6b, + 0x3d001500, 0x00210d82, 0x08cb6b00, 0x03220d82, 0x5f822300, 0x5f824520, 0x61004322, 0x83ef6718, 0x18030121, 0x22087db6, 0x8222002d, 0x8219209d, + 0x0012240f, 0x82090011, 0x07e57101, 0x2c07d34b, 0xffeeffef, 0xffe7ffe8, 0xffdeffdd, 0x22f784d3, 0x84b8ffe8, 0xffde2807, 0xffe4ffe5, 0x18ebffea, + 0x1a084bee, 0x20090790, 0x242183fd, 0x03000200, 0x484f8300, 0x0d2005b7, 0x122a6182, 0x15001600, 0x1b001c00, 0x43842100, 0x5982dc20, 0xf2ffe822, + 0x180abd71, 0x20095bf0, 0x203d8201, 0x089f5003, 0x9b820a20, 0x0c000d24, 0x01820f00, 0x3b821220, 0x13006022, 0x13830b84, 0xe16a0a20, 0x0611480e, + 0xfffdff24, 0xc783fffc, 0xf7fff622, 0xf2226382, 0x0182edff, 0x3b82e720, 0x12240285, 0x01003800, 0x09213982, 0x2efb8300, 0x00180019, 0x001f0020, + 0x00250026, 0x822c002b, 0x84252005, 0x2017830f, 0x83b98211, 0x82012063, 0x84262073, 0xfff226b7, 0xffffffd5, 0x225d82fa, 0x86f6fff6, 0xffee225b, + 0x240182ea, 0xffe6ffe6, 0x220182e2, 0x84ddffdf, 0x05034507, 0xefffeb24, 0x2784ecff, 0xfb202f83, 0xff263982, 0x6200e7ff, 0xd1820200, 0x79820d20, + 0x10000d22, 0x14240182, 0x18001400, 0x1c220182, 0x05821c00, 0x0d821720, 0x15821320, 0xfc181020, 0xc16b086f, 0x75ff2308, 0x4f4a8b00, 0x1afb2006, + 0x2208b104, 0x82f0fff4, 0x82ed2001, 0xffe92467, 0x73e3ffe8, 0xfa201271, 0x00217783, 0x20c1828b, 0x26f38202, 0x02470200, 0x184900cb, 0x227d5d5f, + 0x58007200, 0x5b2207ab, 0x99821001, 0xa5ff0024, 0x0783f0fe, 0x840a0021, 0x00162cfb, 0x00150011, 0x00160014, 0x8218001d, 0x82162001, 0x8212200d, + 0x000d22bd, 0x0a456c0f, 0x39840420, 0xf9fffa23, 0x05fb4aff, 0xe6ffed22, 0xdf260182, 0xd6ffdfff, 0x0b84e2ff, 0xe9ffea22, 0x08fb7419, 0xf5fff622, + 0x3b6f2982, 0xff002109, 0x4306d342, 0x84220617, 0x5d5ff0ff, 0x00002206, 0x06734507, 0x1b001a25, 0x41002700, 0x0e20058f, 0x20069b44, 0x411b8208, + 0x73420793, 0xf3b11807, 0x05715f07, 0xf6fff924, 0x9382f7ff, 0x9b41f320, 0xffda2406, 0x83e5ffe5, 0x200382ab, 0x05ad6c1d, 0x3e20db82, 0x00240d82, + 0x73002600, 0xf6202982, 0xf8223182, 0xd51bfaff, 0x08240cb3, 0x0b000900, 0x0d26ed82, 0x11000e00, 0x85821000, 0x6e001221, 0x1e2005c1, 0x1b08a352, + 0x4c0f1166, 0xf9200567, 0xf522e982, 0x974af1ff, 0xffee2c06, 0xffecffed, 0xffeaffeb, 0x8331ff98, 0x200b8273, 0x220784c3, 0x5b4701e3, 0x1c220895, + 0x01821700, 0x0f821220, 0x77820920, 0x2407e74c, 0xfffbfffc, 0x229782f9, 0x82f8fff7, 0x82f62053, 0xfff522a9, 0x200182f2, 0x20d982f1, 0x205f82f3, + 0x850382f4, 0x84f820bb, 0x20ff8327, 0x062f68fe, 0x47840a20, 0x014faa11, 0x00032c8b, 0x02f3ff24, 0x00bd0245, 0x1981006f, 0x259fad5c, 0x0d006901, + 0x01840b00, 0x22050972, 0x8210000e, 0x000d2211, 0x082f570a, 0x03000624, 0x03820400, 0x4905dd54, 0xfe2c056f, 0xfbfffaff, 0xf6fff7ff, 0xf4fff1ff, + 0x24081172, 0xffe5ffe5, 0x282082dd, 0xffeaff00, 0xffceffbb, 0x240182db, 0xfff3ffe8, 0x662982f8, 0xfe200523, 0x6d841d83, 0x16001724, 0x01822400, + 0x20072b43, 0x204582ef, 0x204b82f3, 0x202b82f6, 0x617e18fa, 0x095f5709, 0x24084744, 0x00020000, 0x22918201, 0x82070004, 0x820c2001, 0x8211204d, + 0x821620b3, 0x00112103, 0x2605bb43, 0x001a001a, 0x820c001e, 0xff0b2201, 0x833782a6, 0x2057855b, 0x247f84fb, 0x00060005, 0x24df8209, 0x00110011, + 0x24118218, 0x001c0060, 0x22018214, 0x820e000e, 0x7f082017, 0xfe200c3f, 0x20063f52, 0x06e746f8, 0xecffec28, 0x0000e4ff, 0x3782f4ff, 0x03820120, + 0x22078747, 0x5f080007, 0x0d2008bb, 0x10204782, 0x91838f84, 0x83001321, 0x00152201, 0x20938222, 0x2299821e, 0x8215001a, 0x82122001, 0x20a18323, + 0x20378209, 0x24718205, 0x003b0001, 0x824f8274, 0xf9ff2502, 0xf1fff8ff, 0xf6260382, 0xf4fff6ff, 0x0182f3ff, 0xeffff222, 0x2006dd5e, 0x201984f0, + 0x228182f8, 0x82fffe80, 0x0004222c, 0xb3ed1803, 0x500d2008, 0x102008bf, 0x19206384, 0x06201b82, 0x00222382, 0x5382feff, 0xe7ffe622, 0xe92c0182, + 0xeaffe8ff, 0xeeffebff, 0xf2ffedff, 0xf6200182, 0xfc201982, 0x7d08bf67, 0x02210867, 0x2837821b, 0x00020003, 0x00030004, 0x2201820a, 0x84110010, + 0x08cf5edf, 0x6e238f82, 0x48ff0000, 0xf6200503, 0x0ca16d18, 0xe0ffdf26, 0xe6ffe5ff, 0xf0206784, 0x08f7b419, 0x5182fa20, 0x03828020, 0xf0000128, + 0x7901d901, 0xae18db02, 0x7920308f, 0xf3204b82, 0x9b18b384, 0x062209a7, 0xf5820600, 0x0e000a26, 0x10000d00, 0x00205d82, 0xee22d782, 0x2982efff, + 0xf4fff122, 0x830e855c, 0x000921bb, 0x41092165, 0x0022059d, 0x37821302, 0x05000522, 0x0b224782, 0x47820c00, 0xd76d0e20, 0x820a2008, 0x8205205d, + 0x0013241d, 0x66000026, 0xf1200e45, 0xee226584, 0x6b82eeff, 0x200b9161, 0x06f369f8, 0xeb841420, 0xe001ea24, 0xff4a7e01, 0x00ea2416, 0x82300011, + 0x001a226b, 0x8205821b, 0xe6ff232e, 0x0682b0ff, 0xf9ff0022, 0xf322e582, 0x0b83e001, 0x001d0023, 0x2401822e, 0x0018001d, 0x281b842f, 0xffcaffef, + 0xffd2ffe3, 0x265f84d2, 0x015402bd, 0x180503ac, 0x23187f59, 0x001400bd, 0x0b69c819, 0x1e001d28, 0xdfff1400, 0xd61abfff, 0x02210d23, 0x204d8254, + 0x20fd8200, 0x1a89820f, 0x841ab7d5, 0x02712673, 0x03f80153, 0xabb3185b, 0xbc00214b, 0x02255982, 0x03000100, 0xa52f1900, 0x000c2409, 0x5b0d000b, + 0x11240a3b, 0x11001000, 0x0c201182, 0x0383a782, 0x07820b20, 0x1200092c, 0x09000a00, 0xe6ff0000, 0x0582cdff, 0xfeffff22, 0xfc240184, 0xfcfffdff, + 0x2408236e, 0xfff1fff2, 0x200182f2, 0x200584e6, 0x200582ff, 0x082554f3, 0x4718f420, 0xfb200ac5, 0x2206fd7b, 0x82530219, 0x00082353, 0x174d0008, + 0x00052205, 0x08074b04, 0x3f750420, 0x20098308, 0x53b18205, 0x0620052d, 0x09203182, 0x15229182, 0x01821800, 0xcf821c20, 0xf8ff0024, 0xb147f9ff, + 0x054d4a08, 0x1382f820, 0xfafffa22, 0xa1839b82, 0x0782fb20, 0x0000fd24, 0x1182fdff, 0x2b84fb20, 0x1f82f720, 0xf5219183, 0x05f943ff, 0xf220a783, + 0x00274b83, 0x02bc0001, 0x19ac0151, 0x211983d0, 0xe4185f01, 0xf4261095, 0xdffff7ff, 0x1744bdff, 0x001d2308, 0xd019001d, 0x00282cf7, 0x024e0259, + 0x0054030f, 0x7139dd19, 0x0c00c424, 0xb9820a00, 0x07000924, 0xfa180600, 0x02210845, 0x5bec1800, 0xfff82209, 0x083f60f5, 0xf0fff124, 0x0384efff, + 0xf0200583, 0xf1200982, 0x2406395b, 0xffeeffef, 0x220182f1, 0x41f3fff2, 0xfd2208e9, 0x4682fdff, 0x35001a22, 0x082c0582, 0x10000800, 0x18000f00, + 0x20001900, 0x01200f82, 0x0c207382, 0x0d2a7b82, 0x11001600, 0x0d001200, 0x7f840e00, 0xff211a82, 0x200182fe, 0x531619fa, 0xfff82408, 0x82f9fff8, + 0xfff9240d, 0x82fcfffd, 0xffe52619, 0x000400c8, 0x4f018205, 0x08200775, 0x0920c182, 0x0a200382, 0x08b74518, 0x4d821020, 0x57020d22, 0x06242382, + 0x08000600, 0x0821d782, 0x20218500, 0x2073820d, 0x216f820e, 0x23830011, 0x85820e20, 0xfb180b20, 0x04220a41, 0x994f0200, 0x20678205, 0x426d82ff, + 0xf620052d, 0x08db1619, 0xe582f120, 0xebffee22, 0xe8220182, 0x097de8ff, 0x25002705, 0x1e001d00, 0x01821700, 0xdf820f20, 0x83000821, 0x82032000, + 0x41012045, 0xfb200643, 0xf5263d82, 0xf1fff2ff, 0x0982edff, 0xcd82f720, 0x47057947, 0xfd450525, 0x82cf8507, 0xf3ff2532, 0xf4fff5ff, 0xd5422582, + 0x05c54207, 0x9182fe20, 0x2007d151, 0x265d8402, 0x0253025e, 0x7cdb020a, 0x5e2410ff, 0x41016b00, 0xa7227b84, 0x0784f3fe, 0xccffee26, 0x53020000, + 0x00230b83, 0x842b000e, 0x00142207, 0x201b843b, 0x280582de, 0xff330001, 0x023402f4, 0x1f981a0e, 0x00ef2276, 0x22c5820c, 0x4609000a, 0x21450a65, + 0x00202205, 0x20018219, 0x24a38211, 0x00150000, 0x22b1843e, 0x83c2ffeb, 0x23038307, 0xfeffffff, 0x2408454e, 0xfffbfffd, 0x2a0382fc, 0xfff8fffa, + 0xfff6fff7, 0x82f3ffed, 0x82fa2001, 0x58fe2013, 0xff2008bf, 0x00253583, 0xffebff00, 0x0e3b7ac1, 0x0b254619, 0x85fff921, 0xfff52643, 0xfff5ffee, + 0x835584f4, 0x826b831f, 0x8839866e, 0x08736343, 0xbf820620, 0xe5580720, 0x820f200e, 0x001124b7, 0x82030010, 0x820c20dd, 0xff1122e7, 0x419582ef, + 0xfd2005df, 0x26067d52, 0x000e000e, 0x7af1ff1d, 0x84220603, 0x61838a01, 0xffb5ff26, 0xffe6ff1e, 0x0997bd1b, 0xd582f420, 0xdf84fa20, 0x20050743, + 0x212583fd, 0x01820700, 0x77820d20, 0x0a000a24, 0x01820f00, 0x18001828, 0x65002300, 0x4388c800, 0xeaffe326, 0xf0ffe9ff, 0xf4200182, 0xf820cd82, + 0x20084970, 0x08516ffc, 0x19000621, 0x2409dd4c, 0x00110011, 0x20018217, 0x2643881b, 0xff1bffb4, 0x82e3ffdb, 0x51ea2001, 0xf2200829, 0xf6208b82, + 0xc9458b82, 0x82002007, 0x00042adf, 0xff600001, 0x02110237, 0xafd1181b, 0x60002137, 0x45207982, 0x0023b983, 0x84ff0056, 0x49ab20c1, 0x0922082c, + 0x9b820900, 0x19001122, 0x871a0182, 0xf6201f23, 0xeb30e982, 0xdfffecff, 0xd5ffe0ff, 0xd6ffc6ff, 0xe7ffd7ff, 0xe9224f84, 0xb618bbff, 0x32220823, + 0x13839700, 0x33205582, 0x39290784, 0x2900ad00, 0x1e001f00, 0x1bf91800, 0xfff8220d, 0x280182ef, 0xffe6ffe7, 0xffd9ffdd, 0x202b84b4, 0x22a1821d, + 0x82280035, 0x181a2001, 0x240a879d, 0xffeaffe9, 0x118a18d1, 0x824b2008, 0x00022a29, 0x0237ff25, 0x001a0244, 0x4861712f, 0x45719320, 0x15002107, + 0x08b97b19, 0x6b82c120, 0xebff0025, 0x44ffc1ff, 0xfd2a0529, 0xdbffe9ff, 0xccffdaff, 0xb382ceff, 0x5718d820, 0x0e240e27, 0x0f001d00, 0x08515218, + 0x4f821620, 0x34001926, 0x25002600, 0x00220982, 0x4b82f3fe, 0x0933b418, 0x22001824, 0x03824400, 0x61842120, 0xdeffdf22, 0x08375718, 0x11833720, + 0x45410020, 0x0172220f, 0x22298458, 0x82edfff3, 0x00ef2401, 0x82140028, 0x84128201, 0x82db200f, 0xffcd2695, 0xffbfffcd, 0x209982c0, 0x230d82ce, + 0xfff1ffef, 0x08174418, 0x00202682, 0x14282d82, 0xa7ff2900, 0x33001c01, 0x1a229384, 0x15561900, 0x203b8308, 0x5757189b, 0xff5c2610, 0x02520237, + 0x09a9181b, 0xab012139, 0x21085341, 0xd7840013, 0xc920ad82, 0x00218d84, 0x054d42ff, 0xe0ffeb22, 0x180b4d42, 0x21088f58, 0x2785ffe4, 0x42001721, + 0x002105b9, 0x093b4100, 0x21001926, 0x15001d00, 0x0d20d182, 0x0721c182, 0x05274c00, 0x22153741, 0x82c30040, 0x155142bf, 0x19000f22, 0x0e200182, + 0x0c190419, 0xe0004a22, 0x2a20ad42, 0x00010050, 0x02f3ff5c, 0x43db0221, 0x01213793, 0x417583ab, 0xff20071d, 0x09b34218, 0xf7fff824, 0x0182efff, + 0xe7ffe824, 0x8719dfff, 0xf9200c3f, 0x00223184, 0x67735a00, 0xa6ff2305, 0xc318f1fe, 0x0a240ea3, 0x15000a00, 0x0857e21a, 0x2a003a22, 0x4f20c982, + 0x2208a16c, 0x84fe0054, 0xffe5232f, 0xe21affad, 0xf3191123, 0x56220d01, 0x2b83ad00, 0xfc180020, 0x7b260fff, 0xcaff72fe, 0x3f82d7ff, 0x5119e620, + 0x17200ae7, 0x002cc782, 0x33000200, 0x530237ff, 0x2b001a02, 0x2543ad6c, 0x2c00a201, 0xb1848500, 0x5746eb20, 0x08874305, 0xfefffd26, 0xdbffe9ff, + 0xcb200182, 0x24088743, 0xfff2ffe2, 0x252d83f1, 0x0e000f00, 0x03821e00, 0x2005c565, 0x269b8214, 0x00190016, 0x43250035, 0xf4200687, 0x07202582, + 0x08bbb718, 0x22001924, 0x03824300, 0x69842220, 0xdeffde24, 0x0182bdff, 0xdfffdf23, 0x054f42ff, 0x34001122, 0x00231983, 0x43ed01a5, 0x7226707f, + 0x0a020000, 0x1f4ddb02, 0x00722418, 0x8413015b, 0xffbc2295, 0x22078332, 0x85004f00, 0xffb121a5, 0xe9221785, 0x1784bbff, 0x11220483, 0x06833500, + 0x01610023, 0x41078424, 0x49200fdb, 0x01281582, 0x37ff5b00, 0x1b020c02, 0x36795219, 0x6c005b24, 0x61464501, 0x001d221c, 0x08b74314, 0x29830720, + 0x0cf9f218, 0xf6fff624, 0x0182ebff, 0xdfffe022, 0x44096146, 0x97410d13, 0x055d4608, 0x43016c22, 0x2220af43, 0x8226ff93, 0x00002465, 0x44f50052, + 0x4b2e240b, 0x35000200, 0x5b0237ff, 0x5b001b02, 0xfd598100, 0x15451811, 0x45b78271, 0x0a280909, 0x13000a00, 0x1c001400, 0x24240182, 0x20002a00, + 0x16200182, 0x07221382, 0x47180800, 0x0124080f, 0xbdffdeff, 0x250a454c, 0xfff2fff2, 0xfd18fff4, 0x43830981, 0x15001624, 0x43821d00, 0x07822320, + 0x03821520, 0x49181420, 0x0e20087d, 0x09274982, 0x11000400, 0x82002300, 0x28398200, 0xfffdffda, 0xffeffff0, 0x204782e1, 0x062f56ee, 0xe8ffe726, + 0xe4ffe2ff, 0xe8200582, 0xeb201182, 0xee200382, 0xff202182, 0xfd2a2982, 0xe5fffeff, 0x0000c8ff, 0x716a1901, 0x18f82008, 0x2408ad42, 0x00020001, + 0x20018203, 0x20618204, 0x23591805, 0x00202208, 0x20358242, 0x089d59fd, 0x3982fa20, 0x7384f420, 0xf6ffec24, 0x0182f8ff, 0x24059143, 0x0071017b, + 0x2297822f, 0x82140022, 0x000a2201, 0x83a1840b, 0x69e520df, 0xed24065f, 0xeaffeeff, 0xe6200182, 0x00211983, 0x08bb6700, 0xf020ff83, 0xec225182, + 0xb382ecff, 0x0382e020, 0xaf82e720, 0xf7ffee24, 0x2984f8ff, 0x09208f83, 0x0cf7ff18, 0x29002022, 0x10211984, 0x056d4200, 0x3200402a, 0x26003100, + 0x0d001200, 0x20088573, 0x20218305, 0x05214fff, 0x7982f520, 0xe5ffee2a, 0x18001000, 0x0f001900, 0x4b221984, 0xeb84dffe, 0x05000322, 0x2006ad4a, + 0xc14c1810, 0x00062208, 0x20018207, 0x095f5b04, 0x6f000021, 0xf5220ac5, 0x9b82f5ff, 0x9f88f020, 0x01000222, 0x022a5182, 0xf3ff2e00, 0xdb024e02, + 0x4c183b00, 0x962060bb, 0x1324c582, 0x0c001300, 0x0620ef82, 0x82056747, 0x0f1f4981, 0x3206bd46, 0x98ffddff, 0xe6ffe2ff, 0xebffe5ff, 0xefffeaff, + 0x4effeeff, 0xfa2109b7, 0x07974bff, 0x03000422, 0x07224982, 0x01820a00, 0x0e000e22, 0x0873a519, 0x2605f954, 0x00210028, 0x4d34ff20, 0x338206cf, + 0x08f95b18, 0x09000922, 0x132a2b82, 0x18001700, 0x2e001d00, 0x89825c00, 0xff210282, 0x200182f8, 0x206b82f0, 0x227982e6, 0x82deffdf, 0x82e72005, + 0x001122b1, 0x24018216, 0x001c001d, 0x24018220, 0x00490025, 0x14f54494, 0x66ffcd22, 0x0d541784, 0xfff52105, 0x2005bd58, 0x184f82ed, 0x22097141, + 0x77e3ffe7, 0xe620088d, 0xea22d982, 0x0182edff, 0xf1fff222, 0x0cd54119, 0x0800082a, 0x0d006f00, 0x11001000, 0x08e96f18, 0x30001626, 0x24002500, + 0x290b815f, 0xcfff0000, 0xd0ff6dff, 0x0182dbff, 0xe5ffe622, 0x2a08b746, 0x000e000e, 0xff5e0001, 0x540a0237, 0x0021315f, 0x08e34b5e, 0x230d2949, + 0x001c0022, 0x21052949, 0xc141000e, 0x00172209, 0x0c854946, 0x221fd34b, 0x4576017d, 0xcc184465, 0x17200703, 0x01267d82, 0x37ffcc00, 0x2d19ed01, + 0xcc2412c7, 0xd9004800, 0x00242182, 0x6dffceff, 0x20105f4c, 0x068b4311, 0xee01a522, 0x4b201b84, 0x34264b84, 0x340237ff, 0x6d18db02, 0x3420744f, + 0x8407454f, 0x00012189, 0x24091b62, 0x00040003, 0x28018405, 0x00080009, 0x0012000b, 0x2401820d, 0x00030007, 0x20038402, 0x202b8202, 0x85358201, + 0x83398702, 0x00062a31, 0x0016000e, 0x00200017, 0x0cad4f21, 0x11493f20, 0x0000230b, 0x0382ffff, 0xfffffe28, 0xfefffdff, 0x0582fbff, 0x5428ad4f, + 0x33830a6f, 0xf2fffa24, 0x0182e9ff, 0xdeffe027, 0xe7ffe8ff, 0x055b41ff, 0xc2ffeb22, 0x37202782, 0x00257383, 0x0078017e, 0x6693821a, 0x082209e3, + 0x01820600, 0xe3820520, 0x02000422, 0x26820182, 0x82f9ff21, 0xfff32401, 0x82f6fffa, 0x82f12001, 0x82e72053, 0xffdd244d, 0x82b1ffd9, 0xffec2207, + 0xd14518eb, 0x18f32008, 0x4f0afbb2, 0x282a51a9, 0x18004f00, 0x14001500, 0x01821200, 0x0e000f24, 0xed180d00, 0x9582098f, 0xe3fff126, 0xa6005400, + 0x0022b082, 0x058217ff, 0x4500022b, 0x2402f3ff, 0x5300e602, 0x299e1800, 0xa1012390, 0xc7841700, 0x10000e24, 0x01820b00, 0x06000726, 0x03000400, + 0x0383bd83, 0x061aff20, 0x3d4709ab, 0xfffc2207, 0x230183f9, 0x1e000f00, 0xde282184, 0xd8ff9aff, 0x0a0088ff, 0x10224182, 0xeb410a00, 0xfff22c06, + 0xffe0ffed, 0x00edffdf, 0x82260019, 0xff222301, 0x6359ffe5, 0x05bd4505, 0xf3fff322, 0x20084d74, 0x22718203, 0x84070007, 0x0545527f, 0x95821220, + 0x71001621, 0x2020051b, 0x1c260782, 0xf7ff3bff, 0x0182faff, 0xfcfffc22, 0x8308fb5a, 0x203787a7, 0x2a7d8210, 0x00150015, 0x0019001a, 0x540c0033, + 0x05220821, 0xcd820500, 0x20054342, 0x20af8301, 0x53f91900, 0xfffc2209, 0x225182fd, 0x82f8fffb, 0x45f4205b, 0xef22069d, 0xb982efff, 0xe4ffdb24, + 0x9184e4ff, 0x0e000e22, 0x12205982, 0x15225982, 0x5b821800, 0x1d001d24, 0x53822000, 0x6f470920, 0x820c2006, 0x180d206b, 0x200c8f48, 0x83c7820c, + 0x00142268, 0x8206833c, 0x824a2033, 0x8216201f, 0x820d20d1, 0x000e3433, 0xff08000f, 0xffd5ffe7, 0xffe6ffd6, 0xffe9fff0, 0x82ebffe8, 0x82f620d3, + 0x82f0207f, 0x82ea200f, 0x82e3200d, 0xffdc227d, 0x222182dd, 0x82e5ffe3, 0x82e82001, 0x82eb2025, 0x18ee2017, 0x200c47b5, 0x245d84fb, 0x00040005, + 0x7c5f8279, 0x555b07d3, 0x821b2005, 0x001822ab, 0x20018216, 0x08174412, 0x2f840620, 0xf6ff0022, 0xf5210182, 0x5b6218ff, 0xe5c01809, 0xfff62409, + 0x82fafff7, 0x28838395, 0xffeeffee, 0xfff1fff2, 0x202982f4, 0x709b82f5, 0x6b830b7f, 0x4f460020, 0xad012139, 0x20339b4e, 0x096f4cff, 0x220d8b4e, + 0x8229003b, 0x44192001, 0xb622084b, 0xe9832102, 0xffb6ff23, 0x208b4e20, 0x6201b122, 0x7b4e2b84, 0xff2e2219, 0x232182a3, 0x005e0001, 0x20052f4d, + 0x29b14b27, 0x220e3747, 0x82110009, 0x00192301, 0x37470018, 0x11a94c0d, 0x0c7d711a, 0xfb899f84, 0x1a000021, 0x4c230571, 0x6a220b95, 0xbe1b3500, + 0xd3180ca9, 0x022c0b2b, 0xf2ff5300, 0xdb021002, 0xa5006b00, 0xa34cd9a9, 0x2c718c71, 0x000d0048, 0x000c000b, 0x0014000a, 0x21018210, 0x0083000a, + 0x2008c34c, 0x053a1bff, 0xfff7220d, 0x290182f4, 0xfff0fff1, 0xffedffee, 0x334700ea, 0x00052405, 0x830f0007, 0xf9ff2236, 0x05b757ff, 0xd744f920, + 0x220d8205, 0x82f7fff8, 0x7ef0200b, 0xfb210849, 0x056b43ff, 0x3b820420, 0x0600072e, 0x09000800, 0xdfff0500, 0xfbffbeff, 0xfa203d84, 0xfb203382, + 0x55061956, 0x0e3405dd, 0x15001600, 0xd2ff1c00, 0xdeffddff, 0xe8ffe7ff, 0xf4fff3ff, 0x3d826d83, 0xb7820620, 0xb5820c20, 0x21820f20, 0x19001526, + 0x1d001a00, 0x0e220d84, 0x4d8294ff, 0x8763fa20, 0x08994a05, 0x03000322, 0xcb4b7582, 0x82092005, 0x5d0b2077, 0x1a260c8d, 0x13001200, 0x2c190d00, + 0x0522082f, 0x2f820200, 0x00216884, 0x0cbf6a00, 0xa382f820, 0x6405814a, 0xee290517, 0xeaffe2ff, 0xf9ffe9ff, 0x05294d00, 0x43820620, 0x11001128, + 0xe5ff1600, 0x4084caff, 0xb5003c22, 0x1422a184, 0x63821400, 0x69821220, 0x10201f83, 0x0025ab85, 0x000e000f, 0x2d51180c, 0x82042008, 0x00152499, + 0x84fcff3f, 0x88fb2001, 0xfffd2105, 0x09774e18, 0x911a0520, 0xc5830a47, 0xc9820c20, 0x43820820, 0x08000c23, 0x05dd4700, 0xf5fff628, 0xf3fff7ff, + 0x0182f2ff, 0x5218f020, 0xf02208f5, 0x0182f6ff, 0xdbfffd32, 0xd9ffdaff, 0xd6ffd7ff, 0xd5ffd4ff, 0xe0ffd2ff, 0x20061b45, 0x202982e8, 0x463582ed, + 0x0126094f, 0x73000200, 0xd1820a00, 0xa5820c20, 0x0f000d22, 0x14200184, 0x1320c182, 0xc987c58a, 0x23820d20, 0x0d000e26, 0xf1fff4ff, 0xee220182, + 0x7984eeff, 0x5584ed20, 0xf0ffee22, 0xe5225982, 0x1982efff, 0x8509cb5e, 0x088f46a7, 0x0020bc82, 0x0b20cb82, 0x01260782, 0x37ff6100, 0xe3505702, + 0xb0012537, 0x7d002a00, 0x00204782, 0xc8208582, 0x501b454b, 0xe52108b7, 0x542785ff, 0x1a2113cb, 0x0d755700, 0x220bcb54, 0x84330011, 0x0173225f, + 0x24b75059, 0x07357418, 0x2c25c354, 0xff4d0002, 0x021702f3, 0x006300db, 0x94574491, 0x44007b21, 0x0b20053b, 0x0897d918, 0x38001b23, 0x25008400, + 0xefffeeff, 0x0182ddff, 0xd0ffd027, 0x0a00c4ff, 0x07734300, 0x0c000c24, 0x4a180d00, 0x5b420c9f, 0x820d2005, 0x830b2017, 0xfeff213a, 0xfd200182, + 0x089dc818, 0xfafffd23, 0x05075dff, 0xe2ffe022, 0xe5220182, 0x0182e6ff, 0xeaffe722, 0xec220182, 0x6584edff, 0x3783ba20, 0x00120023, 0x08bf6137, + 0xcb50f920, 0x07fb4308, 0x4205f743, 0x112205cb, 0xb9821000, 0x1700152a, 0x19002000, 0x78ff1a00, 0x0c354618, 0x4d84fd20, 0x20071749, 0x28bb8209, + 0x0036000d, 0x00260027, 0x20018218, 0x0699480c, 0xff202482, 0x83073368, 0x63f920a1, 0xf3240653, 0xf0fff3ff, 0xed209582, 0xeb22a582, 0xd582ebff, + 0x11000d2c, 0x15001000, 0xe7fff1ff, 0x0355e8ff, 0x00462a06, 0x003500d3, 0x002a002b, 0x24838221, 0x00120012, 0x24238204, 0x000f000f, 0x2001820d, + 0x2573820b, 0x0008000a, 0xfd5f0007, 0x83c38305, 0xfffd246f, 0x82fbfffe, 0x002f2283, 0x830e8201, 0x00002103, 0x0b850985, 0x20050144, 0x228182fa, + 0x82eefff2, 0xffe92201, 0x208582e9, 0x05615be5, 0xce209382, 0x00222082, 0x0182dfff, 0xdcffde26, 0xe0ffdbff, 0xe4200982, 0x20060d50, 0x201f82ee, + 0x83b982f0, 0x05cb68bf, 0x091b1b19, 0x87820620, 0x09005d22, 0x0b209582, 0x13289f84, 0x19001400, 0x1f001c00, 0x21200182, 0x0783c182, 0xfdff1d24, + 0x7982f2ff, 0x2005c36a, 0x225f82e2, 0x82d4ffea, 0x82f22011, 0x200383f7, 0x241b82f4, 0xfff4fff5, 0x200182f7, 0x195518f9, 0x8208200a, 0x26c583e7, + 0x02f3ff48, 0x54db0248, 0x012535d7, 0x00010098, 0x21018203, 0x81420002, 0x00152207, 0x20ed843f, 0xfb5c18d4, 0xfff72108, 0x2009d15a, 0x20f584df, + 0x20b184eb, 0x01fa1afa, 0x000a2412, 0x8215000b, 0x002028e5, 0x002b0020, 0x822a003a, 0x414f2001, 0xa6220cc1, 0x5f83f301, 0x00100023, 0x22678432, + 0x4987fe82, 0x6d202029, 0x2206354f, 0x570bffaf, 0x012616a5, 0x37ff6d00, 0xe5189801, 0x00261dff, 0x001f006d, 0x901a0060, 0xe9211347, 0x050b43ff, + 0xeaff0022, 0xd2240182, 0xb3ffd9ff, 0x0c317a1a, 0x18000c26, 0x24001900, 0x2e240182, 0x6501b200, 0x7a22b984, 0x791a6ffe, 0x00280eed, 0x0c000100, + 0x0c02f3ff, 0x20388f41, 0x061144af, 0x1c000122, 0x59051144, 0xff202b41, 0x4107b341, 0xa58206c3, 0x2111ad4a, 0x8f41002a, 0x0184220d, 0x4acd848a, + 0xef222bb1, 0x3384cfff, 0xa4fe8b22, 0x28188f41, 0x0237ff54, 0x001c020f, 0x8c814589, 0xb784f620, 0x36ffbc26, 0xf8fff3ff, 0xfc200182, 0x0aef4a18, + 0x04000424, 0x01820700, 0x0a000a24, 0x01820d00, 0x03820c20, 0x87780e20, 0x84092008, 0x056d441b, 0x10000e22, 0x0871fe1a, 0x09db5918, 0x03000422, + 0x240c0763, 0xfff4fff4, 0x8f411af0, 0xffe92a0a, 0xffe7ffea, 0xffe2ffdd, 0x200782e1, 0x240d82e7, 0x00eeffeb, 0x24618222, 0x00110009, 0x2053840a, + 0x286f8a12, 0x000a000b, 0x0020000c, 0x2201821a, 0x840b0014, 0x0005247f, 0x18010005, 0x22083f4d, 0x82f9fffd, 0xfff62201, 0x20cd82f6, 0x062f44f4, + 0xef227183, 0x5d82efff, 0xebffea24, 0x0182ecff, 0x2105cb5f, 0xaf43fff3, 0x00062207, 0x20df8406, 0x24758210, 0xff6d0015, 0x08d15e37, 0x04000022, + 0xa419c382, 0x0b6309df, 0x00092205, 0x2001840a, 0x208d820b, 0x2003820c, 0x203f820d, 0x20a78608, 0x240b8206, 0x000e0005, 0xef45180f, 0x05ad490a, + 0x83001221, 0x0013245f, 0x7f140012, 0x12200865, 0x0d202784, 0x53832f82, 0xd1820620, 0x8207a145, 0xf4ff219b, 0xee200182, 0xe920b984, 0xfa22ab82, + 0x4182f4ff, 0x6f820d20, 0x93820a20, 0x99820420, 0xf7820220, 0x09b5e018, 0xf0fff724, 0xf982f8ff, 0x3582f620, 0xf5fff522, 0xef203d84, 0x2d491382, + 0x83f38305, 0xfff12103, 0xf0200183, 0xf2200582, 0xec211b82, 0x05b57fff, 0x83ffee21, 0x82ef2001, 0x2203876b, 0x84f2fff2, 0x7af92043, 0x734d0625, + 0x181b2007, 0x4d2de7e8, 0x5f494575, 0x82002010, 0x3f794d00, 0x290c135e, 0x79000100, 0xef0137ff, 0x1d192602, 0xef2088c5, 0x0026e382, 0x52ffc6ff, + 0xa167f6ff, 0xfffd2108, 0x30055348, 0x00050005, 0x0009000a, 0x000d000e, 0x00110012, 0x24018214, 0x00180018, 0x2601821a, 0xfff0ff1b, 0x82fcfffd, + 0x050f4d33, 0x0982f920, 0xa419f820, 0xf6200841, 0xf6204d82, 0x3d470d82, 0x63fa2007, 0x57850611, 0x04000426, 0x07000800, 0x0c215b84, 0x05d35400, + 0xecff0324, 0x3582d7ff, 0xe36ff320, 0xfffa210a, 0x87093b71, 0x820b2033, 0x000d2135, 0x20050f43, 0x8399820e, 0x820c2009, 0xfff22233, 0x220584f2, + 0x82f4fff4, 0x82f02007, 0x84f2200d, 0x9dea1949, 0x7702200f, 0x0d200c67, 0x0f204182, 0x6020db82, 0x200e8d43, 0x229d8204, 0x82090008, 0x000b2101, + 0x12221f83, 0x01821700, 0x03821820, 0x87001921, 0x001a2201, 0x220f8216, 0x821a0016, 0x0007242b, 0x82feff0d, 0x06277601, 0x00850020, 0x06820120, + 0x6f8a0320, 0x20058755, 0x4a5b8407, 0x0c200561, 0x8306d34e, 0x060741d5, 0x00110025, 0x84f7ff24, 0x18f520c5, 0x6908ef52, 0xf22405b1, 0xf1ffefff, + 0xf3480182, 0xfff52205, 0x08a566f8, 0x82061f53, 0x22f58335, 0x82f0fff1, 0x82f02025, 0xffeb2605, 0xffeaffe9, 0x200182e8, 0x260984ea, 0xffecffea, + 0x78eeffed, 0xf9280887, 0xf9fffaff, 0xf6fffbff, 0xfa200382, 0x0283ad82, 0x31000126, 0x320237ff, 0x21776766, 0x2f63de01, 0x0c95560f, 0xfcfffd22, + 0x0a115d1a, 0x200b4366, 0x661782f9, 0x87661c43, 0x82fc200a, 0x82fb2045, 0x83ff8303, 0xfff52443, 0x82f4ffee, 0x1a138301, 0x660f7774, 0x6d6f0a87, + 0x00052208, 0x08b34605, 0x0b000c24, 0x01820e00, 0xb7820f20, 0x3b451020, 0x820b2006, 0x00092213, 0x084d7306, 0x2205e154, 0x82180021, 0x52112001, + 0xb52010b5, 0x20b04366, 0x20276708, 0x0200ae2e, 0x37ff5400, 0x1c021402, 0xcd008d00, 0x208c8d48, 0x0c595200, 0xfc200db5, 0x2108d148, 0x0183fffa, + 0x0bff6518, 0x2407db56, 0x00090009, 0x2601820a, 0x000e000e, 0x82080013, 0xe9461801, 0x00072409, 0x840f0010, 0x820f2003, 0x000d221d, 0x2001820c, + 0x222f820a, 0x18070007, 0x28085d54, 0xffeffff0, 0xffeeffdf, 0x220182ed, 0x82ebffea, 0x82ec2001, 0x82e82003, 0xffea2203, 0x08d75dec, 0x2007b352, + 0xa17a1af8, 0x229a8308, 0x82020002, 0x210583d8, 0x77440005, 0x86062005, 0x82042081, 0x2103855f, 0xa9830003, 0x83056149, 0x4801200b, 0xff2006e1, + 0x00204083, 0x09eff019, 0x20072d43, 0x216182fb, 0xa145fffb, 0x097b5107, 0x0d22b383, 0xcd820d00, 0x13001026, 0xf7ff6d00, 0xfe223b82, 0xa943feff, + 0x4ffa200a, 0xd7180513, 0x51830895, 0x3d46fd20, 0xfffb2206, 0x220182fd, 0x84feffff, 0x000a2275, 0x27438209, 0x00160010, 0x001b0015, 0x4e055f4e, + 0x0b240563, 0x14000a00, 0x09200382, 0x4f822783, 0xf2fff92b, 0xeffff1ff, 0xebffeeff, 0x051d41ff, 0x0c00eb26, 0x07000600, 0x200ccb45, 0x83d38202, + 0x821782ed, 0x4607203b, 0x65830677, 0x83059d41, 0x8211205b, 0x00082235, 0x20018607, 0x200d8208, 0x0a59490f, 0x12001022, 0x20086d7c, 0x209b8211, + 0x22858214, 0x8222002b, 0x00192201, 0x204f820e, 0x3d6e1809, 0x22d3820b, 0x82fafffc, 0xfff72601, 0xfff6fff7, 0x200182f3, 0x1b7618f2, 0x41ef2008, + 0xff210505, 0x200182fb, 0x200382fa, 0x65ab19fc, 0x222b8308, 0x44f5fff6, 0xfb200695, 0x25830784, 0x83fff421, 0x82f52001, 0x20498305, 0x203984f1, + 0x205f84fb, 0x204b82f9, 0x463f82f9, 0x71830503, 0xf2220383, 0xf945f2ff, 0xffee2606, 0xffedffef, 0x207f84ee, 0x825982f5, 0x82002035, 0x6d012100, + 0x8308816d, 0x190820ff, 0x24088329, 0x00020008, 0x22038203, 0x82040005, 0x000522cf, 0xfd771905, 0x0535410a, 0x12001424, 0xf1821100, 0x1f820d20, + 0x22055552, 0x88fffffe, 0x58f820ef, 0xe82008c7, 0x20066f46, 0x079541ea, 0x82ecff21, 0x82ed2001, 0x0014223d, 0x29828313, 0x00005b00, 0x1b023f02, + 0x15445700, 0x53638259, 0x0824091d, 0x10000800, 0x18240182, 0x21001800, 0x0f24c382, 0x0d000f00, 0x086f4c18, 0xef840820, 0x20058d4f, 0x559f8201, + 0xfb280943, 0xf9fffbff, 0xe9fff1ff, 0xe0200182, 0x00231983, 0x84c00041, 0xffdb2521, 0x000e0091, 0x20058f56, 0x0e775a0a, 0xbb5c0320, 0xaf481808, + 0xfff03209, 0xffebffec, 0xffe5ffe4, 0xffc6ffde, 0xffd8ffd7, 0x0d8564e7, 0x03825583, 0xe6004d22, 0x1b22a182, 0xb6181c00, 0x82190cc9, 0xf5220b37, + 0x0184f3ff, 0x9782f020, 0x47fff121, 0xee2005e3, 0x48067773, 0xe4200525, 0xe6205b82, 0xec220382, 0x5182d6ff, 0xef820020, 0x07843320, 0xb1820d20, + 0x4c05f754, 0x11200737, 0x03831b82, 0x83001221, 0x82212001, 0x001d2a75, 0x00190018, 0x00130014, 0x2201820f, 0x84070006, 0x82e820ed, 0x00d122ff, + 0x62198210, 0x7d200783, 0x01281782, 0xf3ff5e00, 0x0d020a02, 0x212dab4b, 0x6b4fae01, 0x5837200a, 0xdf180de9, 0xad680887, 0x20898218, 0x823383bb, + 0x002b2103, 0x087d4c1a, 0x200e5b4f, 0xbd0a1b83, 0x0d99681c, 0x1429cf1b, 0x82170021, 0x05bb6601, 0xdb025d22, 0x343fe318, 0x2d00ab22, 0x20086d68, + 0x50e5babf, 0xd9510d49, 0x48192005, 0x11200841, 0x22064d68, 0x518702d8, 0xff5a4ad5, 0xff342807, 0x023402f4, 0x4377001b, 0x894759a7, 0xdf00291f, + 0x0a000d00, 0x09000b00, 0x0c1ffd18, 0x00200c84, 0x00223c87, 0xc37f0300, 0x000b2608, 0x0011000c, 0x22358213, 0x8207000e, 0x00022115, 0xc14e0185, + 0x20388206, 0x05695315, 0x2010af60, 0x05e743f3, 0x20066f5d, 0x06df4ef3, 0x1f61f720, 0xfffa2222, 0x2bcd70fb, 0x01209182, 0xef4b0382, 0x82062005, + 0x001728a9, 0x00200018, 0x820e0010, 0x82012001, 0x820b20b5, 0x700f20ef, 0x4f220869, 0x6355ed00, 0x000a2408, 0x82090008, 0x09977a21, 0x05000622, + 0x2761a184, 0x82f0200b, 0xffe8263b, 0xffdeffe8, 0x06dd689c, 0x00015626, 0x15001900, 0x12230182, 0x44001200, 0x1a2205ff, 0x57820c00, 0xff213c82, + 0xb55319fc, 0x000f220c, 0x0895701e, 0x223fd970, 0x82fffeab, 0xffeb2687, 0xffedffeb, 0x249582ee, 0xfff3fff1, 0x08175be7, 0x03000322, 0xa3646982, + 0x001b2207, 0x2f67422d, 0x200ef74f, 0x08797008, 0x200d6d5d, 0x83658206, 0x1ea56402, 0x410dff4f, 0xa9640639, 0x0b075047, 0x02004b2c, 0x31ff4a00, + 0x1b021602, 0x80184300, 0x0221630f, 0x70fe8316, 0xbd1a0c77, 0xec2011f9, 0x4e088b73, 0x07240509, 0x0d000600, 0x13220182, 0x05611300, 0x00212308, + 0xc11a0036, 0x29322ff5, 0x26002900, 0x3a007600, 0xb8fe3b00, 0xf8ffeeff, 0x8d83f7ff, 0x0009002f, 0x00120008, 0x001a0011, 0x00210019, 0x08bb7043, + 0xff241f82, 0xffeffff0, 0x0a5be61b, 0xc11a1b82, 0x0126bdc5, 0x00009b00, 0x9b660902, 0x6d9b2012, 0xff200f73, 0x210bf75f, 0xbb470011, 0x07ad7105, + 0x66057747, 0x9745079b, 0x0a01227a, 0x08474500, 0x00830020, 0x20d38b45, 0x097b460c, 0x22060d44, 0x45830182, 0x54216c8b, 0x05536600, 0x84fe8222, + 0x45406576, 0x0720218b, 0x30087b46, 0x000000ae, 0xff280002, 0x02390237, 0x0037001b, 0x2f99454b, 0x251dd747, 0x18006300, 0x63824600, 0x5e000024, + 0x07831a01, 0xfea2ff22, 0x22055d6d, 0x82250017, 0x00332201, 0x5f72181a, 0x00112608, 0x000f0010, 0x2003821c, 0x2429840e, 0xfff2fff2, 0x280182e3, + 0xffd8ffd8, 0xffccffce, 0x230182db, 0xfffeffe9, 0x2005b751, 0x051b5fe4, 0xfff1ff23, 0x822d83d4, 0x822c2035, 0x825e2007, 0x00212303, 0x49190021, + 0x5f5b0b13, 0xffe72409, 0x82bbffdf, 0x07a37103, 0x23000c22, 0x394b2f82, 0x00262209, 0x226b8273, 0x84ecffec, 0x00042115, 0x09f75a18, 0xab821120, + 0x32003228, 0x41004000, 0x0c1b3300, 0x0c261479, 0x15001600, 0xb9840c00, 0x35fe6722, 0xef220784, 0x0784cdff, 0xac01f524, 0x3d826600, 0x0d843320, + 0xcd82cd20, 0xcdff9a28, 0xd9ffdaff, 0x0d73e8ff, 0x8234200a, 0x074f6857, 0x19001b21, 0x2af57bb9, 0xff0c0003, 0x024d0237, 0x184f00db, 0x2285db4a, + 0x4e00f100, 0x2e22075f, 0x01822500, 0x1d001c28, 0x15001400, 0x01820c00, 0x374d0720, 0xfff12806, 0xffe2fff1, 0x82cfffe3, 0x00bb2101, 0xff290082, + 0xffbeffea, 0xffd9ffcd, 0xc9c318d8, 0x001c2810, 0x0027001c, 0x84320026, 0xffe52a27, 0xffe9ffe8, 0xfff6ffeb, 0x210184f7, 0x5b57fff6, 0x82e12005, + 0xfff92207, 0x226584f0, 0x820b000c, 0x000d2207, 0x06d74d0e, 0x2205f162, 0x82130012, 0x82448287, 0x82e92079, 0xfff1226f, 0xe96518f0, 0x00072408, + 0x820f0008, 0x0017242d, 0x82200016, 0x005c2c22, 0x00190021, 0x0011001a, 0x860d0012, 0x000322b7, 0x20818404, 0x06bf51fd, 0xf9fff922, 0x2006c950, + 0x264982f4, 0xffecfff0, 0x4ce8ffed, 0x3222087f, 0x2d829500, 0x47000921, 0x182405c9, 0x1f001800, 0x23280182, 0x28002400, 0x2f003d00, 0x21200182, + 0x10226382, 0x25821000, 0x8a004522, 0x02820582, 0x82f7ff21, 0xffed2a91, 0xffe5ffee, 0xffdfffe6, 0xb74d18e0, 0xfff62208, 0x225982f6, 0x8201ff81, + 0x00062224, 0x20938207, 0x22598206, 0x82090007, 0x820a2005, 0x820b2005, 0x82f820d3, 0xfff0238f, 0x2b82fff4, 0x49830382, 0xfafff822, 0xfc201382, + 0x09c55a19, 0xbe224382, 0x43825002, 0x43000521, 0x0e2005a9, 0x11204982, 0xe3838382, 0x47820920, 0x00241783, 0x55ffd1ff, 0x0cb34318, 0xdb82f120, + 0xe8ffec22, 0xe4220182, 0x0b82e9ff, 0x1805b34a, 0x18094f5c, 0x200bd34d, 0x265d827f, 0xff380001, 0x4e5802f3, 0x8720361f, 0x00244182, 0x9d003400, + 0xff230783, 0x84a9ffe3, 0x11b77707, 0x20050549, 0x91ee18e4, 0x83f9200a, 0x18002029, 0x820887f1, 0x1b0a200d, 0x260cff19, 0x0029003b, 0x774f002a, + 0x434808a7, 0x2b715e0f, 0x23192369, 0x01020000, 0x01237a82, 0x1a8f0169, 0x2736fbe2, 0x0008005a, 0x00030004, 0xff290086, 0xfffcfffd, 0xffe7fff8, + 0xadd518cd, 0x001a2214, 0x212fad32, 0x58821901, 0x03000328, 0x1e000700, 0x55553d00, 0x846f8309, 0xfff9246b, 0x5ac3ffe2, 0xfe210961, 0x831982e7, + 0x0007248f, 0x843c001f, 0x8304202f, 0x8203832b, 0x82fc2099, 0x202f8729, 0x291383fc, 0xb2000100, 0xb601c600, 0xff822e01, 0xf1460c82, 0x20238215, + 0x214f821f, 0x01830020, 0x17782220, 0x54ef2008, 0x0b830a13, 0x83ffe021, 0x82e12001, 0x1be12057, 0x280ae31b, 0x00060007, 0x001a000e, 0x0c0d7e33, + 0x2582fe20, 0x9f820020, 0x0e000724, 0x0b82e6ff, 0x5c000530, 0x300273ff, 0x3100db02, 0x4b003900, 0x70185300, 0x01256931, 0x000c0018, 0x28838226, + 0x00370000, 0x002b002a, 0x2201821e, 0x830f000f, 0xf6ff2111, 0xec280182, 0xe4ffecff, 0xdcffe5ff, 0x17241782, 0x10001800, 0x08220182, 0x1f840900, + 0xe982f120, 0x1d82e320, 0xdaffdb22, 0x2305ab47, 0xdbfff3ff, 0xd1221984, 0x078373ff, 0x002f0027, 0xff00008d, 0x220b84a6, 0x83430017, 0xe9ff2707, + 0x19004900, 0x01821400, 0x0d000e22, 0x08696d19, 0xf9fff928, 0xf0fff1ff, 0x0182edff, 0x0000e924, 0x339074ff, 0x99181e20, 0x7f87085b, 0xf7fff822, + 0xf0203182, 0x8205674c, 0x26738533, 0x006a0023, 0x820b0002, 0x00152201, 0x24cf8415, 0x00220029, 0x2201821b, 0x82160015, 0x000d2471, 0x82040005, + 0x000922c1, 0x20cb8211, 0x2c138216, 0x0027001d, 0x001d001c, 0x00130012, 0x2437820a, 0x00280002, 0x237f834e, 0xa7ffe3ff, 0x67220784, 0x078434fe, + 0x8b01dd22, 0x8b20d382, 0xd1220b84, 0x078275ff, 0xfeffb926, 0xfafffbff, 0xf7228982, 0x8d82efff, 0xe6ffe824, 0x0182eeff, 0xf6fff622, 0xfa2a1582, + 0x3e00feff, 0x38009efe, 0x3384a800, 0x58ffc822, 0xdf200782, 0xed4f3382, 0xfff32a05, 0xffebffea, 0xffe4ffe1, 0x220182ec, 0x82f4fff3, 0xfff92e33, + 0x004a00ff, 0x00500001, 0x021a0200, 0x4fb9491b, 0x82df0121, 0x07e141e9, 0xf5fff522, 0xeb267782, 0xdeffddff, 0x8782cfff, 0xf1fff028, 0xe2ffffff, + 0x7f82c3ff, 0x25002428, 0x1a004900, 0x01821200, 0x0b556219, 0x0b372c19, 0x3782de20, 0xe7ffe722, 0xef20f982, 0x08171e19, 0x03000228, 0x05000400, + 0x01820800, 0xe0ff0d24, 0xd582c1ff, 0xf8fff723, 0x0b0370ff, 0x0e000e24, 0x87821c00, 0x2a002928, 0x3a003800, 0x01822c00, 0x1e003b24, 0x01822800, + 0x13823320, 0xd7462120, 0x00152a06, 0x00110016, 0x0018000d, 0x05a54219, 0xffbfff23, 0x220182d3, 0x19f6ffe8, 0x280891f7, 0xffeaffea, 0xffdcffe5, + 0x200182e4, 0x20cd82ed, 0x089d4ef6, 0x14000a26, 0x1b001300, 0x2122c382, 0xeb550f00, 0x820c2008, 0x05874a4f, 0x4382f120, 0x20059d57, 0x240982f2, + 0xffcffff2, 0x200182da, 0x6bec1ae5, 0x0527410a, 0x8b410220, 0x00dc2206, 0x911b1941, 0xe1012561, 0x0e001d00, 0x00240182, 0xf5ff0000, 0xea280182, + 0xdeffe9ff, 0xd2ffddff, 0x02821082, 0x82ecff21, 0xffd82601, 0xfff0ffe1, 0x222182f0, 0x18c4ffe2, 0x230c4567, 0x0012000d, 0x22051759, 0x180a0009, + 0x20080b55, 0x2d831803, 0xffd02608, 0xffdcffdb, 0x220182e7, 0x82f4fff5, 0x82002039, 0x820e2069, 0x001d2671, 0x002b002c, 0x24018239, 0xff2b002b, + 0x3f5a180a, 0x0022260a, 0x00440022, 0x06674823, 0x53841120, 0x0fdbd11a, 0xa182de20, 0xe6ffe630, 0x20004100, 0x2e002d00, 0x33003b00, 0x01822800, + 0x59821e20, 0x16001624, 0x03821000, 0x61822d20, 0x0f821c20, 0x06000d22, 0x0d227382, 0x44821500, 0xdb820020, 0xeeffef22, 0x08894518, 0x6b18fc20, + 0xb15a086d, 0x09bb4805, 0xd5ffeb24, 0x4e19f6ff, 0xd52e0867, 0xcaffd6ff, 0xd1ffc4ff, 0xe0ffd2ff, 0x0b41dfff, 0x264f8205, 0x00100010, 0x82180054, + 0x002324ad, 0x8258002d, 0x842c20d1, 0x82f52065, 0xffea223b, 0x22a582eb, 0x82d3ffde, 0x82de2001, 0xffe82409, 0x18f4ffe8, 0x2008819e, 0x2a27820c, + 0xff370002, 0x01300238, 0x7b5900ec, 0x012385e3, 0x182000f1, 0x2a08435e, 0xfff7fff7, 0xffeeffed, 0x45e3ffe4, 0xa9450565, 0xffd0280a, 0xff9fffd0, + 0x82dfffd1, 0x20e783d7, 0x28d786f5, 0x00050006, 0x0022000c, 0x22018209, 0x6efdff10, 0x1724089f, 0x2c001600, 0x15223f82, 0x1f821500, 0x06000d22, + 0x58180182, 0x1d64090b, 0xffd22407, 0x18daffd9, 0x2208e5f6, 0x18f1fff1, 0x4510eb52, 0x1d28053d, 0x25002600, 0x39002d00, 0x2c285382, 0xecffe9fe, + 0xf6fff5ff, 0x00224e82, 0x57820700, 0x61820c20, 0x0f000f26, 0x14001300, 0x05830382, 0x09821420, 0x12001422, 0x10240182, 0x0b001000, 0x7f871f82, + 0xf6fff623, 0xcd6818ff, 0xffd82209, 0x240182e1, 0x001b006f, 0x20018229, 0x26038236, 0x00210021, 0x8419001a, 0x000d2247, 0x225f8203, 0x821d0013, + 0x00272401, 0x82230045, 0x23748201, 0xf8fff7ff, 0xf02aa982, 0xe8ffe9ff, 0xe7ffe0ff, 0x0182eaff, 0x3182ef20, 0x04000524, 0x5d180a00, 0x212208c9, + 0x7b821100, 0xfa262f83, 0xf3fffaff, 0x775bf4ff, 0x82f22006, 0x20038307, 0x069342f1, 0xa919ff20, 0xea2008c7, 0xe7229982, 0x0182e6ff, 0xe4ffe524, + 0x5982e5ff, 0x0384e720, 0x1782ec20, 0x7182f120, 0x337cf820, 0x000e2406, 0x8251000d, 0x821b20db, 0x002126b7, 0x0016001c, 0x776b8217, 0x092305e7, + 0x18000800, 0x200db96a, 0x247982f7, 0xffeefff3, 0x20af82ef, 0x205782e9, 0x205982df, 0x200f82e5, 0x417782ed, 0x0a220543, 0xa6820900, 0x1c00022c, + 0x4d0238ff, 0x6b00e601, 0xcb4f8500, 0x15f7484d, 0xea2215a4, 0x0184f3ff, 0xf2fff124, 0x0182f0ff, 0xedffee22, 0xe624c784, 0xebffe8ff, 0xef200182, + 0xf220c982, 0xf6221b82, 0x7818f6ff, 0xcc82083b, 0x82100021, 0x00202601, 0x000e0008, 0x83dd8212, 0x261583df, 0x002b0000, 0x8256002c, 0x822a2001, + 0x22118509, 0x82d3ff00, 0xffa72801, 0xffe4ffd5, 0x82f1ffe3, 0x82fa2045, 0xfff52271, 0x205182f5, 0x200982f6, 0x221382f4, 0x82e2ffd9, 0x19eb2001, + 0x200ac513, 0x20558209, 0x06834111, 0x48832520, 0xf1208b82, 0xf6222982, 0x435b0700, 0x000f2308, 0x7d670010, 0x42142005, 0x12200699, 0x0d241184, + 0x9dff2200, 0x03823383, 0x21820e20, 0x0c001e28, 0x25001800, 0x01821300, 0x4d841282, 0xfbfffb22, 0xf7837f84, 0xd2ffec22, 0xe9247982, 0x160038ff, + 0x08d14d18, 0x33820b20, 0x0b218383, 0x23098300, 0x000d000a, 0x10224983, 0x69821500, 0x19001924, 0x01822100, 0x11002826, 0x4b002200, 0xa1845982, + 0xd7835784, 0xdbffeb26, 0x85ffb6ff, 0x08cb301a, 0x3c003c2e, 0x03007700, 0x6f000600, 0x36003700, 0xf4222786, 0x0983e9ff, 0x09215782, 0x976f1800, + 0xf3ff250c, 0xe5fff2ff, 0xd7260182, 0xc8ffd8ff, 0x9d82ceff, 0xd4ffd122, 0xda240182, 0xdfffdaff, 0x2206ef5d, 0x82f9fff9, 0xffef22bf, 0x213b82df, + 0xbf190006, 0xf6201195, 0xf0221d82, 0x6383f1ff, 0x00a20127, 0x0058001d, 0x20bb822b, 0x82718415, 0xe4ff2104, 0xc7200182, 0xbd224d82, 0xfb84e0ff, + 0x2b82f220, 0x1a825382, 0xd9820020, 0x07822020, 0x50000128, 0x1a0238ff, 0x917eec01, 0x1a02215f, 0x8f466d82, 0x18f82005, 0x2508fb6a, 0xffe8ffe8, + 0xad43ffe6, 0x82e92005, 0x18e9200b, 0x870a5f61, 0xbfba19a7, 0x8208200b, 0x183b20e3, 0x2a0acb57, 0x001c001d, 0x003c003b, 0x881f001e, 0xffdf28f3, + 0xffbeffde, 0x82e5ffdc, 0xffee2201, 0x089f43ee, 0x04000525, 0x41000900, 0x122505e3, 0xc2ffe0ff, 0x05e56dff, 0x70fff821, 0x0f220913, 0x61820f00, + 0x2d001d34, 0x3a002c00, 0x37007000, 0xf1ff3800, 0xeb004e00, 0x7e192100, 0x102108e7, 0x05cb7900, 0x38190520, 0x634208e9, 0xffed2209, 0x24c582ec, + 0xffe2ffe8, 0x494f18f3, 0xfff52208, 0x06e948f5, 0x19001822, 0x1b220182, 0x05823400, 0xaf831a20, 0xe12c8582, 0x96ffc1ff, 0xc7ff2dff, 0xe4ffe3ff, + 0x00231383, 0x82070008, 0x000f2461, 0x82160015, 0x001322dd, 0x210d8211, 0x0183000e, 0x455a0f20, 0xfff12306, 0x0383fff2, 0xf0fff229, 0xedffefff, + 0x83ffd5ff, 0xffe822f3, 0x08ef59e9, 0x2e002e22, 0x012a4b82, 0x38ff4f00, 0xec011902, 0x89448700, 0x01002488, 0x821d00df, 0x830f20cd, 0x210383ff, + 0xf982e2ff, 0x0983c520, 0x841e0021, 0x20e983f3, 0x06d75107, 0xe982f220, 0xe6ffe624, 0x0182d8ff, 0xceffc922, 0x100f8d1a, 0x0f262783, 0x36001b00, + 0x0182fbff, 0x1e19fc20, 0x4f820997, 0x09000830, 0x11001000, 0x15001600, 0x17001a00, 0x01821200, 0x09245b83, 0x06000a00, 0x03200182, 0x2a0cf77c, + 0xffeafff2, 0xffe4ffeb, 0x82e8fff3, 0x8200203b, 0x001c223b, 0x2091823b, 0x460d841d, 0xef2007af, 0x22062d59, 0x82dcffe0, 0x4be62095, 0x03240c4f, + 0x05000300, 0x0b285782, 0x11000b00, 0xc0ffe0ff, 0x08835418, 0x09154c18, 0x42000e21, 0x2c2c055f, 0x3a002c00, 0x29003800, 0x64ff2a00, 0x21229b82, + 0x11822200, 0x19000d28, 0x23003d00, 0xa1822400, 0x49840320, 0x2f820f20, 0xb7821120, 0xc5821720, 0x2a001d26, 0x20002100, 0x17200982, 0x0c206182, + 0xff219783, 0x066b49f5, 0xe1ffe228, 0xe3ffd8ff, 0x0182e7ff, 0x1983ec20, 0xeb833782, 0x0d000d22, 0x0b204b82, 0x1821cd82, 0x47478300, 0xfc250bc3, + 0xf8fffcff, 0x050f63ff, 0x26051d46, 0xfff2fff3, 0x82ecffea, 0x3f2a1901, 0xffef220d, 0x225384cf, 0x82e3ff00, 0xffc72201, 0x226d82f1, 0x82edffe6, + 0x20318301, 0x062571fa, 0x200bb742, 0x2077821b, 0x217b840c, 0x8783000a, 0xad841220, 0x5f82f020, 0xb182f120, 0x24055961, 0xffd6fff1, 0x420182df, + 0x0b200bb7, 0x002ed982, 0x5b000300, 0x26020000, 0x2700db02, 0x40184700, 0x02257317, 0xff000026, 0x209f82d7, 0x23b783af, 0x0c001700, 0x0a820182, + 0x82d5ff21, 0xffab2201, 0x201982ab, 0x210e82d5, 0xb7490000, 0x000b2605, 0x00140013, 0x2511831a, 0xe6ffcfff, 0x0983e7ff, 0x82390021, 0x00722801, + 0x003a0073, 0x18a1fe3a, 0x230a5f7f, 0x00070007, 0x2005cd43, 0x87671810, 0x0b614f08, 0xfbfffb24, 0x0182f5ff, 0x8c18ef20, 0xef2408f3, 0xefff0900, + 0x2408cd5b, 0x00050005, 0xed7a1a0a, 0x1811200c, 0x2008b189, 0x2b5b1b0f, 0x82f72012, 0x82ef2039, 0x18e6203f, 0x240a6543, 0x006300ee, 0x22018237, + 0x8203000b, 0x001528c3, 0x001d001c, 0x464a0026, 0xff2907e3, 0xffdaffd9, 0xffe5ffb1, 0x830182e9, 0x82f4203b, 0xfff832bf, 0xfffafffd, 0xffd1ffee, + 0xffb3ffd0, 0xffc5ff89, 0x24e784c5, 0x013c003b, 0x42d18271, 0x1b2005a7, 0x20089b55, 0x06c34306, 0x3582fa20, 0xeb263f83, 0xe3ffecff, 0x4182eaff, + 0xf3ffed22, 0x17820182, 0x00830020, 0x06000728, 0x150094fe, 0x01821e00, 0x20002624, 0x01821a00, 0x45821420, 0xcb820e20, 0x09000922, 0x775f9f82, + 0x4ffb2005, 0xf22006bd, 0x08f5471a, 0xe0ffe622, 0x08c75a19, 0xcb4aea20, 0x000a2208, 0x2a56820a, 0x00170002, 0x01480200, 0x184900e6, 0x216b61ad, + 0xb9824601, 0x08c10519, 0x22089f72, 0x550c0005, 0x1482089d, 0xff000023, 0x280182e6, 0x001b00cb, 0x003c0036, 0x84f9821d, 0x20178215, 0x08d143f6, + 0xdb82e320, 0xeb82f120, 0xd982f320, 0x0384f420, 0xfdfff624, 0x1f82fcff, 0xf4fff422, 0xef281784, 0xeefff0ff, 0xd1ffa2ff, 0x8207734e, 0x820b2044, + 0x82182069, 0x002226fb, 0x002c0022, 0x22598229, 0x8258ff1e, 0x7bfc203d, 0x22820665, 0x00050028, 0x000a0006, 0xb141000b, 0x820e2005, 0x0011247f, + 0x83090008, 0x2703831a, 0xecffebff, 0xeaffd7ff, 0xf0245d82, 0x1c003800, 0x2c264782, 0x23003b00, 0x5d484500, 0xffdf240e, 0x82beffdf, 0xffdb2481, + 0x82c6ffb4, 0x83d72001, 0x2700233d, 0x01823d00, 0x61825220, 0xfb781520, 0x001a2208, 0x06bb460e, 0xfefffe28, 0xfbfffaff, 0x0182f7ff, 0x2f84f320, + 0x79820d20, 0x93840920, 0x91450220, 0xffc72406, 0x848effc7, 0xffc32823, 0xffd2ffd3, 0x82e2ffe1, 0x84f1208b, 0x000e282d, 0x0047000f, 0x821a0010, + 0x82232001, 0x003c24b9, 0x82180021, 0x820f2001, 0x82092017, 0x232484c5, 0xefff0000, 0xde220182, 0x4782c8ff, 0xe4ffc722, 0x20065947, 0x511f8207, + 0x192205af, 0xd182ec01, 0x3b4b0020, 0x24259724, 0xffcfff10, 0x06eb43e7, 0xc3820920, 0x12001224, 0x01821900, 0x03822020, 0x13001322, 0x0f228f82, + 0x01820b00, 0x05720720, 0xfffa220c, 0x220182f3, 0x82eeffed, 0x00182239, 0x29551831, 0x820e2008, 0x8307209b, 0x20fb82bc, 0x24b582c7, 0xffc6ff8e, + 0x820f83c7, 0x0007263d, 0x000d000e, 0x20018217, 0x2a5b821f, 0x003f0000, 0x00400041, 0x822a0043, 0x001f223d, 0x42018215, 0xff270671, 0xfffafffb, + 0x19f6fff5, 0x2808d13f, 0xffebffec, 0xffe0ffea, 0x240182de, 0xffddffdd, 0x200b82df, 0x225584e2, 0x821c0019, 0x00212e01, 0x00250020, 0x00290024, + 0x003a0073, 0x207f843b, 0x247982c5, 0xffd8ff8c, 0x200182dc, 0x223182e0, 0x86e3ffe4, 0x000128e5, 0x0239ff4f, 0x19e2011a, 0x4a67bbad, 0xf7280833, + 0xeefff7ff, 0xe6ffedff, 0xdd200182, 0xb582a583, 0x1a001a22, 0x0c538219, 0x1f82ed20, 0xdaffdb24, 0x0182c8ff, 0x2384b420, 0x28003722, 0x19200182, + 0x0a2d5118, 0xf8fff928, 0xf2fff3ff, 0x0182eaff, 0xf5ffe424, 0x2784ebff, 0x18000822, 0x1e20fb82, 0x830a8543, 0xffbf24f7, 0x82e5ffdd, 0x82ee206f, + 0x847f8279, 0x00032429, 0x82060003, 0x000a2a01, 0xff0c0009, 0xffc6ffe4, 0x224582f0, 0x18fafff5, 0x4a0adf61, 0x3b200b43, 0x2006434a, 0x283382f2, + 0x00240011, 0x001c001b, 0x24018214, 0x000e000d, 0x224b8405, 0x820b0007, 0x000f2201, 0x24178410, 0x002a0019, 0x22018221, 0x84170017, 0xff002817, + 0x00d0ffe8, 0x82f9ff00, 0x82f2205f, 0x84eb20b7, 0x82ea20b7, 0xe58e1875, 0x8200200d, 0x84ca20a3, 0xff0022a1, 0x200182e0, 0x26e782c0, 0xffc5fff1, + 0x84e3ffe2, 0x00082415, 0x82110008, 0x05434201, 0x6d821220, 0x83001021, 0x520e2083, 0x5d8308c1, 0x20056d44, 0x245d82ef, 0xffd3ffee, 0x20ff82dc, + 0x21ff82e7, 0xa743fff4, 0x002e2205, 0x082f4c2f, 0xec011922, 0x24885773, 0xff0000dc, 0x220182fa, 0x42f5fff6, 0xef2206f7, 0x0182eeff, 0xefffed22, + 0x0b830184, 0xf1fff223, 0x82c782ff, 0x82fa2025, 0x000026c3, 0x00090008, 0x26018210, 0x001a001a, 0x58450022, 0x1519082d, 0xfc2409df, 0xfdfffbff, + 0xfe200184, 0xff220582, 0x3784ffff, 0x01000024, 0x33820200, 0x00003522, 0x82087b7f, 0x201b8409, 0x24198202, 0x00030004, 0x21018404, 0x4e1a0007, + 0x02210921, 0x84008200, 0xffe32c9b, 0xffd4ffe4, 0xffc5ffd5, 0x43c8ff8f, 0x082206df, 0x89820700, 0x18000f26, 0x20001700, 0xfe206b82, 0x27825983, + 0xeaffea26, 0x1300f1ff, 0x05224782, 0xb1820a00, 0x40180a20, 0x0d22089b, 0x2b820d00, 0x16001528, 0x14001500, 0x0d820e00, 0x39820620, 0x07823820, + 0x0f831983, 0x8305d741, 0x820f2005, 0x000c221f, 0x18618211, 0x200b8b66, 0x21f18223, 0x3f440027, 0x44178305, 0xda24073f, 0xb3ffd9ff, 0x0a074518, + 0xf6fff722, 0xfa240182, 0xf8fff9ff, 0xf9220182, 0x0182f5ff, 0x1384f220, 0x9554f620, 0x1b052006, 0x830a9d7b, 0x001022f9, 0x5401820c, 0x072005d3, + 0x0c20d982, 0x0a22bb82, 0x01820900, 0x89820f20, 0x32001424, 0x01822800, 0x1c001b22, 0x28087942, 0xffc8ffc8, 0xffd7ff91, 0x830182d8, 0xffde2c7f, + 0xffe1ffdd, 0x00fffffd, 0x82feff00, 0xfff42407, 0x82eafff4, 0xfffa2401, 0x82f5fffa, 0x00072247, 0x4b738406, 0xf3220dbf, 0x0182ecff, 0x8300e521, + 0x00022a00, 0x02000049, 0x00dc0214, 0x39a11843, 0x1402216f, 0xb9828083, 0xc6ffc62a, 0x98ff8cff, 0xccffcdff, 0x840f1367, 0x000924bd, 0x820b0008, + 0x07a94101, 0x09759318, 0x0d001022, 0x1b830182, 0x04000522, 0xff233b85, 0x18f8fffe, 0x280a7566, 0xffebffea, 0xffc9ffe6, 0x220182d6, 0x18e3ffe3, + 0x2f08efad, 0x003b003b, 0x00700075, 0xfe380038, 0xfff0ffd2, 0x4e05b549, 0x042409dd, 0x07000300, 0x0c2c7784, 0x10000f00, 0x14001300, 0x20001800, + 0x19200382, 0x11220d82, 0xa31a0900, 0xf0240af9, 0xe9ffefff, 0xe2220182, 0x6d82e7ff, 0xe800eb2c, 0xf1005100, 0x2d005900, 0x93832c00, 0xffdeff27, + 0xffbbffdd, 0x06a961f6, 0x16000822, 0x08296d18, 0x63820820, 0xb9820620, 0x9d6d0520, 0xfffd2208, 0x09f347fc, 0xf0209582, 0xed239b82, 0x4bffd8ff, + 0x1022055d, 0xdc190a00, 0xf0200e11, 0xe12ad182, 0xd3ffe1ff, 0xc3ffd2ff, 0x038284ff, 0x7383c220, 0x003a0029, 0x00eaff3a, 0x8211000d, 0x00152101, + 0x16200183, 0x16207782, 0x16200982, 0x08e96e18, 0x0b575618, 0xf5fff424, 0x0182e8ff, 0xad82dd20, 0xd5ffd228, 0xe0ffdfff, 0xcd82ecff, 0xf554f620, + 0x00062206, 0x2aa38206, 0x02000050, 0x00d00219, 0x4f410031, 0xdf4e4425, 0x08f3430a, 0xd6ffd626, 0xe5ffc9ff, 0xec207d82, 0xf122fb82, 0x0182f4ff, + 0xfafff722, 0x2206fd55, 0x82120000, 0x002424d1, 0x83a00050, 0xc7ff29e7, 0xacff53ff, 0xd7ffd7ff, 0x03880d83, 0x3800372c, 0x3a007000, 0x2c002d00, + 0x1582e7fe, 0x22002324, 0xbb444500, 0xffdd260a, 0xffbaffdd, 0x2aeb82bd, 0x003f00de, 0x002e0021, 0x823d002f, 0x822e2001, 0x0b2d5c31, 0xfcfffc24, + 0x0182f9ff, 0xf1208383, 0x00244782, 0x67002300, 0x0b4bcf19, 0x33208b82, 0x00221784, 0x0182d7ff, 0xfeffb12a, 0x93ffffff, 0x8dff27ff, 0xc6209982, + 0x10281984, 0xd8000f00, 0x2c005900, 0x10825b82, 0xffd4ff2b, 0xffa9ffd5, 0xffd3ffa4, 0x200e82d3, 0x28178600, 0x001c0001, 0x014d0200, 0x5c7f70e6, + 0xceffe022, 0x83088749, 0x00122a7c, 0x00250013, 0x001a000c, 0x0ad54a10, 0x3c001422, 0x03821c83, 0x08000822, 0x0d241982, 0x26001900, 0x260c2b54, + 0xffeaffe9, 0x821d00d4, 0x002e2227, 0x82018218, 0x2102832a, 0x0182f4ff, 0x6182e820, 0xdfffde26, 0xf0ffd6ff, 0xf3200d82, 0x26060145, 0xfff5fff5, + 0x82fafffd, 0x82f62005, 0x051b4511, 0xeefff322, 0x5808d74e, 0x488309b7, 0x71821820, 0x20003222, 0x2d2c0a82, 0x30002f00, 0x29003200, 0x36005200, + 0x1b20a782, 0x03836783, 0xe8266582, 0xd4ffd0ff, 0x0d83aaff, 0x62202b82, 0x37832782, 0x00230e84, 0x82e6ff01, 0x82cd2021, 0x82a8201f, 0xffd12225, + 0x066d41d1, 0x3600332e, 0x37003500, 0x21001100, 0x2a003800, 0x1c220182, 0x714b1c00, 0xfffb220c, 0x41a584fc, 0x0d2205ef, 0x01820a00, 0x0a09aa18, + 0x08e5a119, 0x2805a742, 0xffe1fff0, 0xffcaffc8, 0x06bb44c9, 0x5c000121, 0xd92005e3, 0x5b6c494d, 0xf9240b5f, 0xf2fff9ff, 0x4a06b749, 0x182105bf, + 0x05ef5c00, 0x13590a20, 0xfff53108, 0xffeafff6, 0xffdfffeb, 0xffd5ffe0, 0xffe3ffc4, 0xff2b2982, 0x00c6ffe4, 0x00240000, 0x82490025, 0x001a2205, + 0x05e0181b, 0xfff9220c, 0x265784f8, 0xffedffec, 0x4cf3ffe5, 0x08280627, 0x45001800, 0x22002300, 0x00203982, 0xf8222182, 0x0182f0ff, 0xe7ffe624, + 0x5d82ddff, 0x0782e720, 0x2f82ee20, 0x2407134a, 0x000b000c, 0x206d8217, 0x0a6f6dc5, 0x0e000f24, 0x01821e00, 0x2a002b26, 0x3b003700, 0x2b200582, + 0x1c220782, 0x01822800, 0x87823420, 0x1c001d26, 0x15001600, 0x1326c382, 0x03000d00, 0x01820700, 0x0c000b24, 0x01821000, 0x13001326, 0x20001700, + 0x18208382, 0x11201f82, 0x0b245d82, 0x0a000500, 0x0d202782, 0x9282bb82, 0x82d7ff21, 0x20ad83ab, 0x21f182fb, 0x837afff7, 0x18f12009, 0x2008c58b, + 0x06e57dfa, 0x09910e1b, 0xd9ff0028, 0xb1ffd8ff, 0xa982daff, 0xbd82e320, 0x075eee20, 0x82082008, 0x8211207b, 0x001a2259, 0x20f18219, 0x22798224, + 0x841d0021, 0x82eb20f9, 0xffdf24ed, 0x82ceffd4, 0xffda2135, 0xf320ff83, 0x2c0a8b5c, 0x00010000, 0x0239ff50, 0x00f9011a, 0x44394545, 0x02215082, + 0x2679841a, 0xffabffc8, 0x82afffac, 0x82d9207b, 0x05f141b7, 0x194b2c20, 0x000c2208, 0x2025840b, 0x28ff82f6, 0xffecffec, 0xffdeffdd, 0x251183ce, + 0x32004400, 0x27823100, 0x0f002024, 0x23841000, 0x22053942, 0x82ebfff3, 0x83e42001, 0x37002311, 0x0784a300, 0xdbff0028, 0xb7ffdcff, 0xe583beff, + 0xff010025, 0x82c2ffe1, 0x05654517, 0x3b00752e, 0xf8ff3b00, 0x81018000, 0xf5fff8ff, 0xf6240182, 0xfbfffaff, 0xfc200382, 0xd7206f82, 0x26083542, + 0xffe9ffec, 0x18e8ffea, 0x2a0889aa, 0xfffcfff7, 0xff0000fc, 0x82ccffe5, 0x0009284b, 0x00130009, 0x821c0012, 0x00252801, 0x0017001a, 0x82140016, + 0x820f2011, 0x840a209d, 0x00062c1b, 0xfe92ff12, 0xffc1ffb7, 0x82e1ffe0, 0x00002231, 0x2027821b, 0x25098335, 0xd5ffaaff, 0x0983d5ff, 0x82300021, + 0x45012001, 0x0221054b, 0x03ca18dc, 0xffee2266, 0x089156c6, 0x0c228483, 0x99820d00, 0x29001522, 0xbb82cf82, 0x45060f4b, 0x0f260f55, 0x21001d00, + 0xa7421100, 0x24c58405, 0xffe5ffe4, 0x241382ca, 0x00350042, 0x83418219, 0x21038214, 0x0182d8ff, 0xd9ffb122, 0xe32a6382, 0xfeffeeff, 0xeffffbff, + 0x0182e2ff, 0xe943d620, 0xfff82e06, 0x00f8fffc, 0x00490037, 0xff5b0048, 0x262182fa, 0xfffdfffe, 0x82d3ffcb, 0xffdb2201, 0x222982dc, 0x82e9ffe3, + 0xffef2201, 0xcb5518f0, 0x825b820c, 0x001a2465, 0x82230034, 0x002c220a, 0x20018233, 0x2011823b, 0x09294734, 0xed229784, 0x7d82ecff, 0x415ace20, + 0x00252806, 0x00270070, 0x83130014, 0x2103831b, 0x0182ddff, 0xe1ffbb2a, 0xcdffc3ff, 0xd1ffd0ff, 0x20068941, 0x28c58231, 0x003a0035, 0x002d0017, + 0x20638266, 0x0ee55933, 0x0c001727, 0x00000b00, 0x05df50ff, 0x1d83fb20, 0x84530021, 0x00142c83, 0x00090022, 0xff120008, 0x82ebfff2, 0xffe6227b, + 0x24fb82e6, 0xffe0ffe4, 0x220182df, 0x82deffe0, 0x82e12005, 0xffe3220d, 0x260582ef, 0xffc7ffbe, 0x82cfffc6, 0x4501203f, 0xcb21067b, 0x018e1900, + 0xe0012158, 0x21099157, 0x0182fcff, 0x2207995d, 0x58f4ffeb, 0x8d5908c7, 0x00042207, 0x28c58204, 0x000e0009, 0xff14000d, 0x06794dea, 0xd553e620, + 0x22278708, 0x18050006, 0x180ad949, 0x200beba5, 0x45d58203, 0xef210555, 0x057b70ff, 0xbbffdd22, 0xdd20ff82, 0x10f96b19, 0x57000e21, 0x2b26052d, + 0x39002a00, 0x05823a00, 0x3c002b2a, 0x2c001e00, 0x38002b00, 0x1728b382, 0x13001700, 0x10001200, 0x0d202782, 0x08209582, 0x0a200382, 0x08f36618, + 0x06000723, 0x20038500, 0x20078207, 0x202f8207, 0x26078208, 0xfff2ff0f, 0x82f1fff0, 0x82f02003, 0x82ef207d, 0x82ef2007, 0xfff32311, 0xf583fff6, + 0xf5200383, 0xf1200f84, 0xed2c0582, 0xe8ffedff, 0xe2ffd9ff, 0xebffe1ff, 0xf520eb82, 0x2806374a, 0x002b002b, 0x019d0057, 0x23c9843c, 0xff9efe89, + 0x2005a752, 0x202982e2, 0xcb5e18f1, 0x000f2c08, 0xff170002, 0x02520239, 0x7235004f, 0x0125637b, 0x001c00b1, 0x10c55e17, 0xa5840520, 0xfbfffc26, + 0xf8fff9ff, 0x084ba118, 0xdb82ec20, 0xe9ffe928, 0xe5ffe4ff, 0xa982e1ff, 0x03000224, 0x0b820100, 0x0b84c820, 0x0b820220, 0xc1ff8224, 0x3b83c1ff, + 0x00110024, 0x2b6e0012, 0x00332a05, 0x00270041, 0xfe220022, 0x281982df, 0x0009000a, 0x00130014, 0x2001821e, 0xcb541828, 0x23088208, 0xffff0000, + 0x37208b82, 0xcb600a82, 0x822a2005, 0x821f2021, 0x82132029, 0x820a2031, 0x82002039, 0xfff42687, 0xffe7ffe8, 0x240182dc, 0xffa0ffcf, 0x220182d0, + 0x820e0054, 0x84132069, 0x001a22c3, 0x2241821a, 0x841d001d, 0x821e205d, 0x22098307, 0x821b001d, 0x00182217, 0x08ef4b18, 0x0a000b24, 0x31820500, + 0x26002622, 0x5a820582, 0xffeaff2b, 0xffdeffdd, 0xffecffe2, 0x220182ac, 0x82adff6c, 0xffc226c7, 0xffd7ffd6, 0x06ef51eb, 0x06000728, 0x3a003e01, + 0x01822f00, 0x24002322, 0x192a4d82, 0xe1ff0d00, 0xd2ffd1ff, 0x9582d3ff, 0x4382ea20, 0x4a82f020, 0x1f820020, 0x48004826, 0xf2ff3f00, 0xe820a982, + 0xdd20a982, 0xc6242384, 0xceffbfff, 0xde200182, 0x0a8faa18, 0x4200422c, 0x1c000100, 0x250239ff, 0x9418e701, 0x022199d7, 0x26d78425, 0xfff7ff00, + 0x82edfff6, 0xffe52401, 0x18e0ffe6, 0x240885a4, 0xfff4fff3, 0x220182f5, 0x4afafffc, 0xf62006d1, 0xf4220d82, 0x0182f3ff, 0xf9fff722, 0x517d0182, + 0xfffb2407, 0x86fcfffd, 0x82fa2001, 0x84fa202d, 0x2009851d, 0x190b82f8, 0x2108cd27, 0x01821400, 0x1200132c, 0x09000a00, 0x04000800, 0x03820500, + 0x83052551, 0x82052009, 0x0007220f, 0x221d8206, 0x820e001b, 0x09484801, 0x2d001622, 0x0228ab82, 0x02000100, 0x06000000, 0xa1182782, 0x0c2209b7, + 0x31820b00, 0x03820920, 0x17820420, 0x02831e82, 0x82dfff21, 0xffbf24c9, 0x82e5ffdb, 0x5ded2001, 0x04220af9, 0x79820300, 0x5f840720, 0xe2ff132a, + 0xebffc5ff, 0xf1fff2ff, 0x0c4b2f1a, 0x0f000f28, 0x1d001e00, 0x75822e00, 0x6e003b2e, 0x37003700, 0x5700ecff, 0x27000801, 0x1d221582, 0x117f1300, + 0xfffc220a, 0x203b82fb, 0x226182f8, 0x83e6ffef, 0x19002379, 0x01821100, 0x2108f16c, 0x4e180000, 0x2b830801, 0x2f82fb20, 0x63052b41, 0x032009d9, + 0x0620d582, 0x3383bb82, 0xd6ff0c28, 0xf5fff6ff, 0x0182eaff, 0x6149f520, 0x82032006, 0x201f83b3, 0x20238205, 0x23bd8205, 0x00060006, 0x0220c783, + 0x01203782, 0xe02c5d82, 0xc1ffe1ff, 0xe3ffefff, 0xefffe4ff, 0x11208384, 0x1a228582, 0x0f571700, 0x8208200a, 0x211a8237, 0x7f82faff, 0x098bc218, + 0x16ff8b23, 0x091357ff, 0x09000822, 0x1620bb84, 0x1d203982, 0x10220982, 0x9d5a0f00, 0x263d830a, 0xfff3fff3, 0x82f1fff2, 0x82ee2003, 0xffeb246f, + 0x54deffd3, 0x2d2e0e19, 0x02002c00, 0x38ff1700, 0xe6014a02, 0x50187b00, 0x63269693, 0x39007400, 0xd2823a00, 0xff250284, 0xffecffeb, 0x200a84d8, + 0x24f38414, 0x000a000a, 0x82018205, 0xf7ff2112, 0xee240182, 0xe5ffedff, 0xdc200182, 0xe226ed82, 0xe9ffe2ff, 0x1543fdff, 0xfff32c08, 0xfff1fff3, + 0xffeefff0, 0x82deffd4, 0xffe92101, 0x240deb4d, 0x00060005, 0x2601820c, 0x00100010, 0x82130014, 0x82152003, 0x00172203, 0x20018215, 0x20038214, + 0x50178211, 0x072005a9, 0x02856e82, 0x08000724, 0x01820e00, 0x1a001b22, 0x15853b84, 0x73820020, 0xf2fffa22, 0xe5206f82, 0x0a221084, 0x23821e00, + 0x5f820720, 0x00220e84, 0x8951ff00, 0x82f82005, 0xffc1248f, 0x82e1ffe1, 0xffe12211, 0x271c82c4, 0x00360035, 0xff09006c, 0x2106f143, 0x01821400, + 0x59822920, 0xcf5c1a20, 0x22258209, 0x82ecff00, 0x82d820e7, 0xffea24c7, 0x8238ffeb, 0x002b2e11, 0x0055002b, 0x00200011, 0x001b0022, 0x20ad821c, + 0x226d8203, 0x820f000a, 0x20cb8301, 0x229f821a, 0x822d0020, 0x0021221d, 0x83018218, 0x253682e7, 0xf4fff5ff, 0x0882e9ff, 0x0d000022, 0x2010d159, + 0x241b82f4, 0xffe8ffe8, 0x200182dc, 0x247182d0, 0xffe1ffd7, 0x240182e6, 0xffeaffea, 0x220182f0, 0x55f6fff5, 0x0620089b, 0x0d206d82, 0x1224a782, + 0x19001300, 0x1f206b82, 0x26208982, 0x3f200382, 0x0e20f984, 0x04826184, 0xe82a4d82, 0xe3ffd1ff, 0xddffc7ff, 0x0343eeff, 0x0b075706, 0xd784ec20, + 0xe0fff124, 0x6982ccff, 0x8205a743, 0x1d002537, 0x3b001c00, 0xff250883, 0xffd3ffa4, 0x290983d2, 0x0e00b901, 0x3d002a00, 0x01821f00, 0x03821083, + 0xec203d82, 0x2206334d, 0x4be2ffc3, 0x2322069d, 0x1a822300, 0x42000128, 0x090238ff, 0x9618cb02, 0xd320825f, 0x0d20cd82, 0x25055b5b, 0xebff0000, + 0x9f82bfff, 0xff210286, 0x250883ff, 0xfbfffdff, 0xcd82f2ff, 0xe7ffed22, 0x20086d63, 0x06fb48ed, 0x2209cd50, 0x83fcfffb, 0x1800202d, 0x280bc543, + 0x001e0009, 0xfff6ff3c, 0xcd7d18f9, 0x28238409, 0x00060007, 0x000c000b, 0x24018210, 0x00280017, 0x2401821d, 0x00130012, 0x84018209, 0x82048d20, + 0x82f9203d, 0x82f0206f, 0xffe6267f, 0xffddffdc, 0x200182e6, 0x229182ee, 0x59f8fff7, 0x07220855, 0x51820700, 0x12000c26, 0xc5ffe3ff, 0xf3221b82, + 0x7782f3ff, 0x4f0d9963, 0x2b2a0551, 0x39003a00, 0x29002a00, 0x9b5c71ff, 0x01e32208, 0x22eb84c8, 0x82e5ffeb, 0xffe2285b, 0xffc7ffc8, 0x83daffc6, + 0x14002313, 0xa7821100, 0x5d820c20, 0x041a0620, 0x01530837, 0xfff02609, 0xffebfff0, 0x833582ea, 0x22038309, 0x82f1ffef, 0x84f32001, 0x0009223b, + 0x2001820e, 0x24418410, 0x000f0010, 0x44098417, 0xf0200b29, 0xe0242b82, 0xd1ffe1ff, 0xbf200182, 0xf220e582, 0xf520b782, 0x07830f82, 0xd6ffe622, + 0xe1220982, 0x0182ecff, 0x3b4af520, 0x45092006, 0x1622086f, 0x97821d00, 0x0d225f83, 0x5b820d00, 0x354d0f20, 0x214f8205, 0x3d83fff3, 0x26056144, + 0xffd5ffed, 0x82deffdd, 0x1ae5209f, 0x8308c7dc, 0x00012833, 0x0237ff1c, 0x18e7014d, 0x268e7f50, 0xfff7ffe8, 0x84f4fff5, 0x05e755c1, 0xe9ffed24, + 0xbf82eaff, 0x574bf220, 0x20098308, 0x182382f4, 0x200f314c, 0x24008200, 0x00130012, 0x08bd5326, 0x85000821, 0x00142100, 0x2809bd53, 0x000f0007, + 0x00210010, 0x0c674e22, 0xf1fff02e, 0x2400e2ff, 0x09000800, 0x2a001200, 0x200c0567, 0x0aad6af5, 0xdaffd82c, 0xe4ffe3ff, 0xfeffeeff, 0xab86faff, + 0x09c75018, 0x2005af41, 0x20b182ea, 0x089b55f6, 0x25000022, 0x4c209182, 0xff208883, 0xf1226583, 0x7f82f2ff, 0x04000322, 0x0b206982, 0x0c20a982, + 0x084b5118, 0x18000d22, 0x2006e34f, 0x20178214, 0x2021820b, 0x211b8333, 0x158237ff, 0xd7821420, 0x09c55518, 0x0e223385, 0x91180600, 0x0c240a05, + 0x0f000e00, 0x1120bb82, 0x1928bb84, 0x1d001900, 0x2b001600, 0x280e9544, 0xffebffec, 0xffcfffd7, 0x828f83a0, 0x006d22ef, 0x202f8229, 0x820d8414, + 0x2ad98204, 0xffc8ffe3, 0xffbcffde, 0x82d8ffd6, 0x82d92001, 0x82012014, 0x00002403, 0x8231002a, 0x003a2201, 0x262f820b, 0x00280035, 0x191b0027, + 0x200c310d, 0x06e55df4, 0x2005bd45, 0x219b8206, 0xab4d0003, 0xfff22405, 0x82e3fff1, 0xffd53401, 0xffc6ffd4, 0xffe7fff3, 0xffbfffbb, 0xffc3ffbe, + 0x60f9fffd, 0xea2208b3, 0x0182fbff, 0xb018f520, 0x052008a9, 0x2408ff57, 0xfff9fff9, 0x240182f2, 0xffeeffee, 0x228b83ea, 0x5e00ffff, 0x1923054b, + 0x1800dd01, 0x2154b5e3, 0x67841902, 0xbdffe922, 0x00230783, 0x82f7ff00, 0x82ef2001, 0x82e8207f, 0xffe226bd, 0xffe4ffdc, 0x0cbd65e5, 0x0400043c, + 0x08000700, 0x0d000c00, 0x10001100, 0x16001700, 0xdbff1d00, 0xdaffb8ff, 0x0182e6ff, 0x2d82f020, 0x7109396c, 0x8b4c0b15, 0x000d2409, 0x820b000e, + 0x86062047, 0xffdf2673, 0xffbdffdf, 0x206d82ba, 0x228182dd, 0x82c1ffe1, 0x593b2017, 0x372806a3, 0xe9ff3800, 0x74017c00, 0x00241382, 0x48ffc3ff, + 0xeb248f82, 0xf2ffebff, 0x8305f744, 0x4d002015, 0x1a24075f, 0x22001a00, 0x13208f82, 0x08295c18, 0xa3841020, 0x12001122, 0x2a820182, 0xe9223782, + 0xd982e9ff, 0xe2ffe722, 0xdc210182, 0xd1231bff, 0x4ef22009, 0x9d66068f, 0x00092207, 0x42a38209, 0xaa200529, 0x240a074a, 0x001e001e, 0x248b843e, + 0xffd1ffa2, 0x210983d1, 0x01822c00, 0x1c00022c, 0x1a020000, 0x7d00db02, 0xe5539900, 0x3c776147, 0x28178f61, 0x001b00e6, 0x000d000c, 0x05f74600, + 0x048ec184, 0x42f6ff21, 0xe5280605, 0xdcffe6ff, 0xecffe7ff, 0xf2240182, 0xf5fff3ff, 0xf8230182, 0x4ffffdff, 0xf4220521, 0x0182f0ff, 0xeeffee26, + 0xe4ffeaff, 0xeb220382, 0x2b76f2ff, 0x001a2208, 0x67a41833, 0x00052208, 0x2001820a, 0x1173650e, 0x14232182, 0x85003b00, 0x00122400, 0x82230012, + 0x45122001, 0x9f8205df, 0x8e18fe20, 0xef22082f, 0x8384efff, 0xdbffe926, 0xe1ffe0ff, 0xe7229582, 0x7782edff, 0x8d189383, 0xb55b0bcf, 0x0013220d, + 0x24018218, 0x001c001c, 0x248d8221, 0xff270027, 0x82358207, 0x207084db, 0x20158221, 0x226f8243, 0x821a001a, 0x00112179, 0x84061563, 0x82f120db, + 0xffe830d7, 0xffdfffe8, 0xffe5ffde, 0x003900e5, 0x822a001d, 0x00362401, 0x8222002d, 0x821a2001, 0x00132257, 0x20d18213, 0x245d8225, 0x002f001d, + 0x20078224, 0x95a4191c, 0xfffb260c, 0xfff6fffa, 0x20b982f5, 0x062b69ef, 0xd9821720, 0x0b001226, 0x06000a00, 0x18063f4b, 0x200b0d6e, 0x229584d4, + 0x8215001e, 0x700b2001, 0xf9200a43, 0x0ad78e18, 0xfbffe722, 0x20066f45, 0x20478204, 0x43b98231, 0xe62805bf, 0xceffe7ff, 0xa5ffd3ff, 0x0f204384, + 0x0b223d82, 0x01820800, 0x04000422, 0xff201183, 0x2207d543, 0x82e9ffe9, 0xffe422cf, 0x200182e3, 0x220b82e1, 0x82eaffe9, 0xffe92201, 0x240182ec, + 0xffeeffee, 0x830182f2, 0x65fa20b3, 0x0e200605, 0x5522e182, 0xf1821700, 0xe3822320, 0x2b005622, 0x2105c76e, 0xd782f4ff, 0xdd244b83, 0xd1ffdcff, + 0x6812315c, 0x0222059f, 0x13434f00, 0x68532006, 0x7d82739d, 0x43001622, 0x0382ff83, 0x2000202a, 0x03004100, 0x02000500, 0x16220186, 0x01821200, + 0xe1820f20, 0x790f575d, 0xf82005f7, 0xf522e382, 0x0182f1ff, 0xeeffed2c, 0x1e00e9ff, 0x24003b00, 0x2d421900, 0xf54d1808, 0xfff2300b, 0xffebffea, + 0x001800e2, 0xff0c000c, 0x82fcffff, 0xfff22235, 0x260182e6, 0xffdcffdc, 0x82d1ffd2, 0xffdd2205, 0x200182e9, 0x0a2f47f4, 0x20078143, 0x839f8259, + 0x4b062002, 0x1a240ad1, 0x1f003500, 0x07237382, 0x46ff0000, 0xed480517, 0xfff42805, 0xffe0ffce, 0x66f3ffe1, 0x452408a7, 0x4600ce00, 0x23209982, + 0x03834283, 0x1907d743, 0x2008217c, 0x248d82f2, 0xffedffee, 0x200182ec, 0x18a982eb, 0x830b8153, 0x201b830f, 0x233983f1, 0x1b001600, 0x1d200182, + 0x24207782, 0x2a245182, 0x21002500, 0x1d240182, 0x15001d00, 0x0c220182, 0x19822600, 0x17001e22, 0x27831782, 0x210acb4a, 0x8f67f6ff, 0xffe22608, + 0xffdbffd7, 0x280182cf, 0xff9affca, 0x0197ff97, 0x2743826a, 0x001a0064, 0x00130014, 0x0b2d1b19, 0xd3248783, 0xe7fff0ff, 0xe0260182, 0x00000200, + 0xbf840100, 0x47fff421, 0x01280563, 0x39ff2b00, 0xf3013d02, 0x2286bd74, 0x732000fc, 0xfb240865, 0xf5fffaff, 0xed22a782, 0x0d5becff, 0x00152206, + 0x19018210, 0x200bbd85, 0x06415efc, 0xf8fff724, 0x0182f6ff, 0xf7fff722, 0x08d16318, 0x089d5118, 0xffe1ff23, 0x24f782c3, 0x00030003, 0x26018206, + 0x00070007, 0x82090008, 0x20098303, 0x091d1914, 0xfbff210f, 0x4b830182, 0xf1fff024, 0x116eebff, 0x00172308, 0x5b510045, 0x0bd97805, 0x7382f520, + 0xeaffe924, 0x0182e2ff, 0xd2ffd927, 0xdfffdeff, 0x820f83ff, 0x870020b7, 0x00152600, 0xff290015, 0x229982dc, 0x4eedfff7, 0x11200e01, 0x2226ed82, + 0x35002100, 0x5f823400, 0x2f003f36, 0x75ff3000, 0x28001e00, 0x32002900, 0x17001b00, 0x12001600, 0x03832382, 0xbf841020, 0x62180a20, 0x3b8308ed, + 0x1b821320, 0x09d54e18, 0x05000722, 0x04200182, 0x03202782, 0x08f58c18, 0x2f840920, 0x8c831020, 0xf1207d82, 0xdb83d382, 0xf9fff822, 0x22060952, + 0x82fefffd, 0x0527530b, 0xf3fff822, 0xee240182, 0xf0ffeeff, 0xa5440182, 0x8200200b, 0x83d0200f, 0x43002043, 0x2783052b, 0xebffeb28, 0xd5ffe4ff, + 0xf382e0ff, 0xeaffea24, 0x7743f5ff, 0x00102206, 0x20d18210, 0x24bf8221, 0x00430033, 0x22078219, 0x82400043, 0x823c2001, 0x000428c9, 0xff0a0004, + 0x82b0ffac, 0x82b42001, 0x82e1208b, 0xffc1260b, 0xffd7ffc1, 0x204d82d8, 0x2e6184ec, 0x000f000f, 0x00450002, 0x020f0200, 0x181700cb, 0x212f2583, + 0x45830f02, 0xbd208f82, 0xfe240784, 0xf4fff8ff, 0xe028a182, 0x8effcaff, 0xc7ffc7ff, 0x00201583, 0x2409116d, 0xffb4fe39, 0x08a576ef, 0xb9822220, + 0x44004422, 0x24088565, 0xffddffde, 0x280382bb, 0x00e7ffe7, 0x017600f3, 0x233d8362, 0x30ffbaff, 0x00200783, 0x20072754, 0x28c18200, 0xff84ffc1, + 0xffc4ff86, 0x261984c4, 0xff3c003d, 0x821500f6, 0x0021264d, 0x005a002d, 0x8205822e, 0xd3ff2b18, 0xa6ffd4ff, 0xd5ffa7ff, 0x0e82d4ff, 0x0a000022, + 0x02220182, 0xeb825100, 0xdb024e26, 0xa3007300, 0x209cd748, 0x082d4900, 0x17009324, 0x01821300, 0x63000e21, 0x96181133, 0xe1250f25, 0xdaffe1ff, + 0x050147ff, 0xf0ffef24, 0x0182f3ff, 0xaf4bf720, 0x83002005, 0x00122400, 0x48240011, 0x00210b95, 0x08b14814, 0x06000524, 0x01820a00, 0x0c000d22, + 0x0e206982, 0x09200982, 0x05221182, 0x01820300, 0x1a000024, 0xbb453300, 0xfff22208, 0x200182eb, 0x220382e3, 0x82edffed, 0x078d7765, 0x24054949, + 0xfff5fff5, 0x280182f2, 0xffecffed, 0xffdeffe7, 0x5f0182e5, 0x00200b39, 0x0e2e0082, 0x1b000e00, 0x28001c00, 0x34002700, 0x0b821f00, 0x2e001b24, + 0xaf84f7ff, 0x2009d95e, 0x08af50ef, 0xf623c783, 0x47fff6ff, 0x052007c9, 0x0cd58919, 0xaf820f20, 0x12200383, 0x11200782, 0x10200382, 0x08558818, + 0x6e822783, 0xfffcff25, 0x821600fb, 0x820e20d1, 0x00122477, 0x82140011, 0x82172001, 0x00162211, 0x26018217, 0x001d001f, 0x821c001e, 0x830d8385, + 0x5009201f, 0x378205d3, 0xf8fffc22, 0xf5220182, 0x514bf4ff, 0x00222506, 0x00320066, 0x8206d35c, 0xffe624df, 0x4ffbffcf, 0x042206e5, 0x19820c00, + 0x17461220, 0x82072008, 0x05a5687a, 0xf5fff424, 0x0182ebff, 0x2009d35e, 0x12c16b20, 0xef84f420, 0x3583ea20, 0x11204782, 0x0b20a782, 0x240e9d54, + 0xffeeffed, 0x2a0182e3, 0xff91ffdb, 0xffc2ff22, 0x6dd1ffd2, 0xf0200627, 0x05243584, 0x87000600, 0x0ceb7218, 0x8305df51, 0x820b2017, 0x0010229d, + 0x20f58210, 0x205d8215, 0x22f18219, 0x8218001d, 0x22af8301, 0x570e000d, 0x488208a7, 0xfb26d182, 0xf6fff7ff, 0x0182f1ff, 0xecffec22, 0x2408634c, + 0x00e7ffe7, 0x05ff5f02, 0x00cb0223, 0x7fc4186f, 0x0b456298, 0xefffee2a, 0xd5ffdcff, 0xebffeaff, 0x20064b48, 0x22e28201, 0x820a0015, 0x00002401, + 0x823f001f, 0xff002a0d, 0x00bbffe9, 0xfff4ff00, 0x05dd4af5, 0xc520f382, 0xf9201784, 0xf5261182, 0xb0fff6ff, 0x3756d8ff, 0x00272706, 0x004e0026, + 0x9b580016, 0x00012805, 0x000f000e, 0x822c001c, 0x84162011, 0x07d34631, 0xf3fff323, 0x09715cff, 0xf0ffef22, 0xf1200182, 0xf4200382, 0xf7201782, + 0x27825182, 0x00212f83, 0x24018205, 0xffdbff0a, 0x200182f7, 0x1a6d82ef, 0x850fe715, 0x001d225f, 0x2201822b, 0x823a0039, 0xff2b2205, 0x8727820a, + 0x8207203f, 0x000d2289, 0xad60180d, 0x820f2008, 0x200f8309, 0xe5a11806, 0xfffe2108, 0xfd240183, 0xfbfffcff, 0x87837782, 0xebffeb22, 0x68248d84, + 0x23001800, 0x2e220182, 0x05823200, 0x17002426, 0x14001900, 0x0f220182, 0x95821100, 0x09000422, 0x12245782, 0x19001300, 0x1222a984, 0x07843900, + 0x13202383, 0x50226582, 0xf184a000, 0x66ffcd22, 0x2208ae44, 0x82d9ff00, 0xffb12201, 0x200582b4, 0x201d82da, 0x22198404, 0x84e8ff02, 0x82e52001, + 0x05a34405, 0xefffec22, 0x200a716a, 0x1f9b1af9, 0x0551470c, 0x7d840a20, 0x10000d22, 0x14200182, 0xd3838f82, 0x18000924, 0xd7820700, 0xff190c20, + 0xf4240829, 0xf2fff3ff, 0xd522cb82, 0x0182deff, 0xe9ffe822, 0x77821983, 0x0c000028, 0xcf010c00, 0x39820b00, 0x15001024, 0x0c191a00, 0xc177085b, + 0x82f4200b, 0xffef242d, 0x48e7ffee, 0xf72206cf, 0x0184f8ff, 0x5582fa20, 0x4d63fb20, 0x82062006, 0x0002286f, 0x02000059, 0x18cb0224, 0x25351f4a, + 0x00002402, 0xa782f1ff, 0xe4ffe324, 0x0182d7ff, 0xe8ffcb24, 0x0182ecff, 0xa345f120, 0x82f62006, 0x83f220ff, 0x55ff20b5, 0x3a2c09cb, 0x72003a00, + 0x39007300, 0x92fe3900, 0x23231b82, 0x47002200, 0xde220d2f, 0x0182bcff, 0xddffde28, 0x3d00f600, 0x01822e00, 0x9f821f20, 0x22070363, 0x67fdfffc, + 0xef2008f1, 0x00243f82, 0xd6004700, 0x8b226384, 0x5f69a1fe, 0x003d240a, 0x677c003e, 0xd3240ad5, 0xa7ffd4ff, 0x07820182, 0x00242d83, 0x002d002c, + 0x2106f363, 0x85184702, 0x0123751b, 0x181d00e0, 0x24089f4c, 0xfffbfffa, 0x2a0182f5, 0xffedffee, 0xffcbffe6, 0x84e5ffe5, 0x000028a7, 0x0035001f, + 0x84200034, 0xffe022e3, 0x201b82cc, 0x220b84e1, 0x84c9ffee, 0xffe12207, 0x840182cd, 0x222b8213, 0x82330033, 0x22188305, 0x82150000, 0x192b2001, + 0x200877a5, 0x08d14e0b, 0x19053143, 0x2109c944, 0x9346fff0, 0x05d74305, 0x20075f47, 0x209182f6, 0x204884fb, 0x06fb4a02, 0x41820720, 0x874a0a20, + 0xffee2406, 0x82f6fff1, 0x18fa20af, 0x210a97de, 0x4b52000e, 0x002a2105, 0x2805e360, 0xff2c002b, 0x001b0071, 0x24018226, 0x001c002f, 0x22018218, + 0x82160015, 0x00172601, 0x002b0019, 0x2401821f, 0x00140010, 0x06a34b27, 0x2382f420, 0x0c003722, 0x2206d342, 0x8455002a, 0xffe422df, 0x261384ae, + 0xff0c0013, 0x82c8ffe3, 0x82ee2073, 0xfff526af, 0xffceffe7, 0x248d82e1, 0xffd7ffdc, 0x260182ec, 0xffedffed, 0x82ebffee, 0xffea2209, 0x200f84e9, + 0x089744ef, 0x09e55c18, 0x05000426, 0x09000800, 0x0c265182, 0x11001000, 0x01821300, 0x0a001722, 0x2608d96d, 0x000d000d, 0x8215000f, 0x00062225, + 0x4351820a, 0xf12005cf, 0xef207182, 0xd1225b82, 0x0182daff, 0xd518e520, 0xf3830a25, 0x4600012a, 0x11020000, 0x9f00db02, 0x20a27d49, 0x154f18d8, + 0xfffc240a, 0x82f7fffb, 0xfff02501, 0x00ebfff1, 0x24220083, 0x39641300, 0x22fb8205, 0x83d9ffed, 0x25002512, 0x12001100, 0xff210983, 0xe39a18fd, + 0x255a190a, 0xfff62209, 0x210182f8, 0x4742fff9, 0x19f02005, 0x280a59a7, 0x00fbfffa, 0xffe5ff00, 0x283d82c8, 0x00030004, 0x00060007, 0x23018208, + 0x000a0009, 0x0a200383, 0x0f830782, 0x1a000728, 0x13001400, 0x01820e00, 0x06221983, 0x2d820500, 0x18000221, 0x20092b91, 0x24a784fa, 0xffd7fff5, + 0x261482ad, 0x001f0000, 0x820c005e, 0x820a203d, 0x49062051, 0x002006cd, 0xfd229f82, 0x0182faff, 0xf6fff626, 0xd6fff4ff, 0x6b832b90, 0x4c180320, + 0x494408ab, 0xfff52205, 0x081148f5, 0xbcffe628, 0xdeffdfff, 0x79840100, 0x6a18e820, 0x00210767, 0x2601823a, 0x00390074, 0x822b002a, 0x00162201, + 0x2001821d, 0x24b18226, 0x00100010, 0x2001860d, 0x2085820e, 0x26bf8206, 0x00160015, 0x8220001e, 0x82172005, 0x000326a1, 0x000b0006, 0x200d8217, + 0x202b8422, 0x21f7840c, 0x694d0007, 0x82022009, 0x00012137, 0x0937a719, 0x9f820420, 0x05000422, 0x07202182, 0x09202b82, 0x8c824382, 0x5d18ff20, + 0xf8220993, 0xe182f8ff, 0x2005875f, 0x24f182fe, 0xfffefffe, 0x08bf60ff, 0x0984fc20, 0x2182fb20, 0xf9fff924, 0xdb82f7ff, 0x2005a741, 0x05cd67f8, + 0xee22d784, 0x0783cbff, 0xff000023, 0x835818fc, 0x58298508, 0xf72005c5, 0x09374118, 0x88efff21, 0x82fa202b, 0x82f42053, 0x0501484f, 0x83fff421, + 0x09f95807, 0x20285f89, 0x41002100, 0x20000f00, 0xff296383, 0xffddfff4, 0xffcfff9e, 0x200d83cf, 0x05735200, 0x4500012a, 0x240239ff, 0xd700db02, + 0x20a22f43, 0x35e15500, 0x00240225, 0x82e9ff00, 0x84d42001, 0x001729f9, 0x00120011, 0x000b000a, 0x200da947, 0x0a1d4bf5, 0x23821720, 0x23841120, + 0x06000622, 0x3d823583, 0xe74de920, 0x002c2206, 0x18018217, 0x2409b98d, 0xfff7fff9, 0x210382f8, 0xd15cfff6, 0x84ed2005, 0x08715747, 0xffe4ff23, + 0x262c82c9, 0x00120012, 0x6b180025, 0x5787087b, 0xfcfffb22, 0xf3263f84, 0xf0fff3ff, 0x7b6deaff, 0x00102206, 0x09895a33, 0xdf204f84, 0xd3208182, + 0x00204782, 0x33249982, 0x0d001000, 0x08240182, 0x04000900, 0x16820182, 0xde202384, 0x11223f8c, 0x23880c00, 0xc3840520, 0xa182f920, 0xf1fff122, + 0xe121cb84, 0x07e968ff, 0x7982ee20, 0xf6fff322, 0x18098d5d, 0x83086bbe, 0x00022234, 0x855b1801, 0x050f4308, 0x01201183, 0x83067d52, 0x82002007, + 0xfff92939, 0xffe1fff2, 0x000800c3, 0x09dd8e18, 0x77841b84, 0x6518fe20, 0xf92008b9, 0x0ae75d19, 0x1b83fe20, 0x820f0021, 0x001d2201, 0x2eef821d, + 0x00480032, 0x0036006d, 0x00c7ff37, 0x821f002f, 0x05c74301, 0x55820620, 0xcb820920, 0x2b840b20, 0x13001226, 0x11001000, 0x0e20d982, 0x0820fd82, + 0x0720ff84, 0x0820a182, 0x0d220d82, 0x1b840e00, 0x26001324, 0x01821800, 0x17820a20, 0x18263d83, 0x27001700, 0x1d821000, 0x0a000d22, 0x200a495a, + 0x20d98403, 0x85b38206, 0x09c55803, 0xe7ffd725, 0x83ffe6ff, 0x82f920ad, 0xfff621dd, 0xf5220183, 0x0782f5ff, 0xf7fff822, 0xfc22ef84, 0xbf84fdff, + 0xefff0024, 0x0986ccff, 0xf0fff12a, 0xddffe0ff, 0xeeffeeff, 0xf0201186, 0x20066d43, 0x83f78400, 0x05955145, 0x3919df20, 0x002208f5, 0x656cf0ff, + 0xff002206, 0x200182fa, 0xd37418f3, 0x82ea2008, 0x84f02023, 0xfffc2279, 0x834f84fb, 0x000722af, 0x22c38407, 0x840c000c, 0x09b359cf, 0x12000e22, + 0x17210182, 0x05d54700, 0x1424ff83, 0x13001500, 0x0b202d84, 0x24085747, 0x002f000a, 0x2001822c, 0x8251832a, 0xffe928e5, 0xffeaffe8, 0x82ebffe9, + 0x5deb2005, 0xf720083d, 0x0383e582, 0xdfffdf22, 0x0583d182, 0xe4ffe422, 0xc1262182, 0xd2ffd1ff, 0x0182e2ff, 0x4183eb82, 0x00240023, 0x2b078223, + 0xff500002, 0x011a0282, 0x003300ec, 0x57297f19, 0x38006424, 0x01823400, 0x26003022, 0x34226582, 0xc1844200, 0xe3ffdc22, 0xe9228d82, 0x87824600, + 0x11842420, 0xf8fff823, 0xfdeb18ff, 0xffe62209, 0x200182e5, 0x83bd82e3, 0xffe622c1, 0x899e18e6, 0x60f72008, 0x22260627, 0x44002100, 0x2182ecff, + 0xdaffe322, 0x68224182, 0x4182f0ff, 0x0982f820, 0x08000026, 0x11000900, 0x19240182, 0x22001900, 0x1a226182, 0x0f841a00, 0x19820820, 0x096b8218, + 0xbb56f020, 0x245f8308, 0x00100082, 0x2401821f, 0xffd3ff2d, 0x300182e1, 0x002000f0, 0x00ffff41, 0x000b000a, 0x00280016, 0x2001823b, 0x2007824c, + 0x28518222, 0x001b001b, 0x00150014, 0x2101820e, 0xa6180007, 0xf2240921, 0xebfff2ff, 0xe4229384, 0x0182deff, 0xb4ffd824, 0x0182c6ff, 0x1382d820, + 0xf5fff52a, 0xe0ff0000, 0x1800ba00, 0x20246582, 0x29002700, 0x21206182, 0x16245b82, 0x0b000c00, 0x00249682, 0xf4fff5ff, 0xea22e782, 0x0182dfff, + 0xd9ffd625, 0x58ffe0ff, 0xee2205bf, 0x3d82efff, 0xc3840c20, 0x09a34518, 0x6407e818, 0x00ae0029, 0x00040002, 0x82020003, 0xffe42283, 0x220582e4, + 0x47fcfffd, 0x0824060b, 0x10000900, 0x15209582, 0x1a26c582, 0x1b001a00, 0x01821c00, 0x07841d20, 0x15220d83, 0xb3841500, 0xe0832783, 0xff210382, + 0x240182de, 0x004600ba, 0x2e018222, 0xffcaff00, 0xffafffb0, 0xffd6ffb3, 0x7adaffdb, 0x1622069f, 0x28824000, 0x1e000024, 0x01822c00, 0x17002b22, + 0x14224582, 0x13841000, 0xf7ff0126, 0xeefff8ff, 0xe5208b84, 0xed223382, 0x1784daff, 0x2b000e28, 0x27005000, 0x0d842800, 0xff210482, 0x226782df, + 0x84bdffbd, 0x00f72407, 0x820e0007, 0x00082201, 0x20c98201, 0x2dcb8203, 0xfff1fff6, 0xfff3fff2, 0xffe6ffe0, 0xf74effe5, 0xfff52107, 0x0f599c19, + 0x0f000b22, 0xdf877982, 0x05002024, 0x9d820a00, 0x2d002d22, 0x2b26ed82, 0x4c004d00, 0x59186e00, 0xfe200803, 0x2206f56a, 0x8292ffca, 0x00002480, + 0x87490018, 0x4500206f, 0x0124057d, 0xe9fff4ff, 0x08ff7318, 0xaf55ea20, 0xff002208, 0x061555ed, 0xddff0122, 0xb926b782, 0xf6fffbff, 0xc165c2ff, + 0x2c4b8205, 0x001f001f, 0xff4c0001, 0x02160238, 0xcd4e18dc, 0x16022161, 0x02827382, 0xffd9ff25, 0x82b3ffda, 0x82002008, 0x002622e9, 0x20098427, + 0x06934300, 0x0782e420, 0xa182e120, 0xb5ffdf26, 0xdbffdbff, 0x09281b84, 0x13000a00, 0x1d001400, 0x2d840182, 0xffc6ff23, 0x200182d5, 0x202b82e3, + 0x3f1b19f2, 0x000d2208, 0x2601821c, 0x002b002a, 0x8412003a, 0xb3421801, 0x82002009, 0xffdd24fd, 0x45e6ffbb, 0x1420069d, 0x917b2382, 0x21638308, + 0x0182dfff, 0xbdffbc22, 0xdf260582, 0xe0ff0000, 0x1582c1ff, 0x26074b56, 0xff3a0039, 0x820600f7, 0x003b2e83, 0x00240023, 0x0003000f, 0x00190007, + 0x2b45823b, 0x0029005d, 0xffecff52, 0xfff1fff2, 0x0b1d3519, 0x1a001a26, 0x1b003300, 0x1420b582, 0x220a417e, 0x822d0016, 0xfff4245d, 0x82e9fff4, + 0x82de2001, 0xffd5226d, 0x226d82d6, 0x78ebffe0, 0x00220a33, 0x23650100, 0xff042808, 0xffcdff9f, 0x82feffce, 0xff00248f, 0x83c9ffed, 0x00002b07, + 0xe5ffe4ff, 0xf8ffc8ff, 0xcf41efff, 0x833e200e, 0xa1ff251f, 0xd0ffd0ff, 0x00210983, 0x28018230, 0x00390003, 0x02310200, 0x20b182dc, 0x8349184b, + 0xf901215f, 0x0e217784, 0x05534600, 0xd6fff222, 0x00260f94, 0xf1fff2ff, 0xc582e6ff, 0xd7ffd622, 0x8f20c982, 0x2608c157, 0x000e000e, 0x821c001d, + 0x822a203f, 0x002d22b7, 0x22d1845c, 0x8299ffde, 0xffd62221, 0x20f982d6, 0x203b82e3, 0x821583f2, 0x0038301f, 0x006f0071, 0xff380037, 0xffbeff22, + 0x84e0ffdf, 0x00212417, 0x82430022, 0x84078301, 0xdeff2310, 0x088216ff, 0x21002025, 0x86004200, 0x00002353, 0x3182deff, 0xbdffbd22, 0x00240783, + 0x0015009e, 0x20052144, 0x05a55315, 0x00130023, 0x24338238, 0x00120000, 0x26078434, 0x004c0019, 0x821e0029, 0x47132001, 0x16820649, 0x82d8ff21, + 0x82af20bf, 0xffe02605, 0xffeaffe1, 0x0c7d43eb, 0x2082c820, 0xff210282, 0x200182f5, 0x201d82eb, 0x222382e2, 0x82b0ffd8, 0x82d82031, 0x00002616, + 0x01280027, 0x28098289, 0x00180019, 0x00300031, 0x82078217, 0xe9ff210e, 0xd1202b82, 0xbc279b82, 0xc9fe0000, 0x83002f00, 0x8217821f, 0xffe926b1, + 0xffceffbb, 0x08155fe7, 0x4e181820, 0xec220a0f, 0x8b7c4d00, 0xb400256f, 0x2b005400, 0x02210182, 0x24008300, 0x00050002, 0xf99c1904, 0x000d2408, + 0x5f11000e, 0x09220add, 0x24830a00, 0xff210383, 0x220182da, 0x56d2ffb3, 0xfe24064f, 0xeffffaff, 0xe1200b82, 0xb4201182, 0x7d451982, 0x24288305, + 0x00270027, 0x20318450, 0x9f4318e0, 0x260e8308, 0x000f000e, 0x8219001c, 0x0006256f, 0x0014000c, 0x03225b89, 0x0182eaff, 0x2482d220, 0xb754c120, + 0x820e820a, 0x00092623, 0x000d0012, 0x094d4b1a, 0xfc285984, 0xf8fffcff, 0xf4fff9ff, 0xf0240182, 0xf1ffedff, 0x38200182, 0x2e281982, 0x5c002d00, + 0x30001700, 0xf2202584, 0x10854118, 0x0b000c24, 0x01821800, 0xe3822420, 0xa7822f20, 0x5d004c24, 0x01822f00, 0x8208814b, 0x89002008, 0xd1ff216b, + 0xa32c0182, 0xb5ffdbff, 0xd4ffa7ff, 0xffffd3ff, 0x2e203b82, 0x1a242382, 0x32001a00, 0x64200182, 0x4b09d755, 0x00220651, 0xcb82ebff, 0x86ffd734, + 0xcaff0dff, 0xe5ffe5ff, 0xe9ff0000, 0x0c00f800, 0xc9821300, 0x3c001924, 0x77827700, 0xff821420, 0x02833082, 0x82ecff21, 0xffd62401, 0x827cffbf, + 0x22c78307, 0x18f7fff7, 0x2e08496e, 0x00060006, 0xff350001, 0x01330239, 0x4d8d00ec, 0xf02090e3, 0x2d09d775, 0xf3fff4ff, 0xe6ffe7ff, 0x1000cdff, + 0x01820800, 0xff21dc82, 0x064543f6, 0xe3ffe42c, 0xe4ffdbff, 0xe9ffe8ff, 0x0182eeff, 0x2b82f320, 0xe782f820, 0x5f6afc20, 0x00052406, 0x82090004, + 0x000d2433, 0x8211000d, 0x00162a01, 0x001b0015, 0x001f002a, 0x24098220, 0x000a0016, 0x244e820b, 0xfffbff00, 0x223582fc, 0x82f2fff6, 0xffec2201, + 0x266f82ed, 0xffe1ffe8, 0x82e0ffd7, 0x5cea2001, 0x012008f7, 0x22066547, 0x821a000f, 0x570f2001, 0x058405d5, 0x06000624, 0x4b820c00, 0xa3820f20, + 0x59821320, 0x0f001022, 0x0c05ce19, 0x2005c35e, 0x20b782f8, 0xa94d18f6, 0x18f22008, 0x6908dd74, 0xf62009b7, 0x20082b7e, 0x204f8207, 0x2449820c, + 0x001d0014, 0x069f531c, 0x2e003b2a, 0x6aff2e00, 0x25001900, 0x31280182, 0x22002900, 0x1a002100, 0xe320b382, 0xec284b82, 0xe3ffebff, 0xe6ffddff, + 0xef200182, 0x088d3619, 0x04000022, 0x0a01d118, 0x03839f83, 0x83001121, 0x84122001, 0x22ab8305, 0x840e000e, 0x000622af, 0x2273820f, 0x881b0015, + 0x82122001, 0x202183d1, 0x20dd820f, 0xe1a9180c, 0xfff6220c, 0x286582f7, 0xffe5ffed, 0xffdbffe4, 0x24db84fb, 0x000200fa, 0x20718203, 0x21038202, + 0x01830007, 0x20093152, 0x24878204, 0xff000000, 0x200182fb, 0x202d82f5, 0x24b782f2, 0xfff1fff0, 0x20bb82f4, 0x244b82f7, 0xfff8fff8, 0x200186fa, + 0x202584fc, 0x220d82fc, 0x82e9ffef, 0x82e32001, 0xffe022d9, 0x20dd82df, 0xe1a118e5, 0x82ed2008, 0x82f1207d, 0xfff9213f, 0x2c056746, 0x000c000d, + 0xff590001, 0x01240239, 0x65b778f4, 0x82230221, 0x82ba209b, 0x86fa20d3, 0x82f320ff, 0xfff024cb, 0x82effff0, 0x5cee2003, 0xf0200845, 0xf3201582, + 0x260e3778, 0x00070003, 0x82210016, 0x002f2801, 0x00010000, 0x82200027, 0x001a2601, 0x00120019, 0xfd541813, 0x82f7200c, 0x82ee2039, 0xffe628eb, + 0xffdfffe6, 0x82f5ffd5, 0x82eb2001, 0x82192037, 0x0010262b, 0x00080010, 0x22418209, 0x82f7ff00, 0x82ef2001, 0xffe52873, 0xffdbffe5, 0x82e7ffe2, + 0x22378301, 0x83f7fff6, 0x0000251f, 0xbfffeaff, 0x00200985, 0x2405e357, 0x00390072, 0x05d15f39, 0x84ebff21, 0xfff222b3, 0x3f9e18f2, 0x0000210e, + 0x200b5d4e, 0x06494f0e, 0x24001524, 0x4b834700, 0x46ecff21, 0x0f8209e5, 0x06000724, 0x01820d00, 0x11001024, 0xdf821500, 0x17001724, 0xab821a00, + 0x85002321, 0x001f2c01, 0xff19001e, 0xfffcfff1, 0x82f8fffd, 0xffe82473, 0x82e8ffe9, 0xffe424a7, 0x82deffe3, 0x82e62001, 0x4dc3830b, 0x3f5c0783, + 0x82112009, 0x0058224d, 0x247384b1, 0xff8ffe85, 0x083768a3, 0x2f002f2e, 0x32000200, 0x2d0238ff, 0x5d00f301, 0x2482256f, 0x001800bf, 0x8301820c, + 0x820020ac, 0x84be20e1, 0xff002508, 0xfffafff9, 0x20072142, 0x088b70ec, 0xc557f520, 0x00082408, 0x82100008, 0x05f34801, 0x23002f22, 0x15200182, + 0x0a20f782, 0x2206a544, 0x1af7fff7, 0x28085b58, 0xffe3ffe3, 0xffe2ffe1, 0x200584e0, 0x220d82e1, 0x82e8ffe3, 0x0bf14101, 0x83820d20, 0x1a001928, + 0x27002600, 0x2b823500, 0x7382ea20, 0x0baf5718, 0x57820b20, 0x21265f83, 0x2d002200, 0x05822b00, 0x12ff2125, 0x44ffecff, 0x0a240785, 0x14000900, + 0x1e240182, 0x28001e00, 0x1e220182, 0x0f841d00, 0x0a000a22, 0x2783d183, 0x6f83ff20, 0x5b82e220, 0xd8ffd622, 0xe2260582, 0x110059ff, 0xff821900, + 0x7b822120, 0x25841820, 0xe5fff723, 0xcb7418ff, 0x09994509, 0x45820520, 0x0e000a22, 0x13200182, 0x13225582, 0xf9821200, 0x0f001122, 0x10260582, + 0x17001500, 0xb9821800, 0x79821a20, 0x83001e21, 0x001c229f, 0x2013821c, 0x205d8217, 0x0c1d4311, 0xfafffa25, 0x53fff4ff, 0xe92005a3, 0xe32aff82, + 0xdeffe3ff, 0xe1ffdaff, 0x0d82e0ff, 0x9f84e720, 0xff23cf82, 0x82f1fff2, 0xffed210b, 0xdc202385, 0x106b4918, 0x08000824, 0x5d827d01, 0xbd821820, + 0x8f182120, 0x591a084b, 0xef220f73, 0x0182e7ff, 0x5d82df20, 0x0782e820, 0x5182ef20, 0x7b82f520, 0x0400fb22, 0x26083755, 0x02c1ff50, 0x4dec011a, + 0x01216143, 0x24738278, 0x000f000f, 0x208d820e, 0x24f182db, 0xffe4ffd4, 0x220182ec, 0x19f3fff4, 0x200ce141, 0x28d58211, 0x001b001b, 0x00420024, + 0x28018220, 0xff000000, 0xfff2fff3, 0x241182e5, 0x00090009, 0x21078213, 0x3d580012, 0xffc92405, 0x7a95ffca, 0x0722125f, 0x69830800, 0x82160021, + 0x821e2001, 0xff002a40, 0xffeaffe2, 0x00efffe9, 0x22198221, 0x82100008, 0x000b2405, 0x820c000a, 0x000f2601, 0x0011000e, 0x209d820d, 0x215d820b, + 0x3b83000a, 0x04000724, 0x03820500, 0x05820620, 0x03000324, 0x2f82c1ff, 0x23840c20, 0x53842220, 0x15000a2c, 0x17001800, 0x19001a00, 0x01821c00, + 0x27002022, 0x97830784, 0x45820820, 0xff217282, 0x240182e5, 0xffdfffca, 0x200182d2, 0x36bf82c8, 0xfffcfffc, 0x004300f9, 0x00370036, 0x004b002b, + 0x002a0029, 0x82ffff09, 0xfff426db, 0xffe7ffe6, 0x240182d9, 0xffdbffcb, 0x200182de, 0x2caf82e3, 0xffe8ffe7, 0xfffbffeb, 0xfffafff7, 0x220182f1, + 0x82efffe8, 0xfffc220d, 0x208782f8, 0x394d180a, 0x57fe200e, 0xfb2006af, 0xfa202b82, 0xfb206782, 0x0b832982, 0xfdfffd2c, 0x91000300, 0xd7011800, + 0xaf82d401, 0xa6182f20, 0xe2244c1f, 0x04000800, 0xed820182, 0x230a8d4a, 0xffd5ffea, 0x8309bb57, 0x26238318, 0x01160008, 0x90070011, 0x82f9202f, + 0x18d620e3, 0x870a6356, 0x0007242f, 0x8243ff15, 0x8c03205f, 0x0585455f, 0x15225f95, 0x3c828101, 0xef820420, 0x12000724, 0x6b822500, 0xf9243b8f, + 0xdbffeeff, 0xfd206b82, 0x21056d49, 0x2f8a55ff, 0x2f962420, 0x2f8adc20, 0x2f824220, 0x5f835383, 0xcb842320, 0xf7830320, 0xff200383, 0x29825382, + 0xddffee22, 0x0c356418, 0xcb00022a, 0x9e016301, 0x3300db02, 0x54516419, 0x0c006e29, 0x0a000900, 0x5a000500, 0xfb220fb1, 0xa31bf7ff, 0xec200c19, + 0x082f4718, 0x31820820, 0x2b001224, 0xb7845600, 0xa8ffe228, 0xe9ffd2ff, 0x0d83e9ff, 0x06200384, 0x0c6f6f18, 0x10001326, 0xa6ff0f00, 0x23090541, + 0x03000400, 0x0ae5ab18, 0x4a181d20, 0x234708a9, 0xfff92805, 0xfff6fff5, 0x82f0fff1, 0x01f42207, 0x08634377, 0x47820f20, 0x77641020, 0x000f2408, + 0x840d000f, 0x820920bb, 0x00042cbb, 0xfff4ff00, 0x001200e8, 0x75140037, 0x0a220a27, 0x91841c00, 0x29054b4c, 0xffccffd6, 0xffdfff98, 0x561affe6, + 0x05200df3, 0x38204182, 0x0addab18, 0x0e206583, 0x07200f82, 0x3e82c782, 0xffebff25, 0x82d3ffea, 0xffee2205, 0x206582ef, 0x18c982f4, 0x21095770, + 0x00820002, 0x03680225, 0x180b0066, 0x2c5a4140, 0x0013002e, 0xffedff3a, 0xffe1ffe2, 0x290382ee, 0x001600c2, 0xff240023, 0xf7180057, 0x0c199089, + 0xfc221719, 0x008300fe, 0x8da1f718, 0x02000023, 0x05bf4100, 0x13000622, 0x2262c146, 0x1b14000e, 0x24236d9d, 0x160089ff, 0xe1f71800, 0x5502228e, + 0x22008300, 0x82210015, 0x001f2101, 0x2005b748, 0x2f12830b, 0xf0fff5ff, 0xeffff1ff, 0xdfffe1ff, 0x96fddfff, 0x00201383, 0x8d09f818, 0x2009e741, + 0x5ba74368, 0x82ee0021, 0x003921f7, 0x1009d71b, 0x4370ff21, 0xed2192a7, 0x24008300, 0x00260017, 0x829d8227, 0xe9ff270b, 0xdaffd9ff, 0x0310fcfc, + 0x240201a7, 0x0014000d, 0x21791a39, 0x10652022, 0x5001a703, 0x45000321, 0x6622058f, 0x18191700, 0x00217fc7, 0x146d4af6, 0xd1ffe824, 0x9f18f8ff, + 0xad8208b3, 0x00040029, 0x00080003, 0x82f20018, 0x11cd4a05, 0x2f84e920, 0xd118fc20, 0xcd4a0ae9, 0xfe172205, 0x911544e6, 0x82070321, 0x000422d0, + 0x22f98205, 0x842c0015, 0x0fa14aff, 0xd5ffea24, 0x5755f9ff, 0x202e8208, 0x202faa00, 0x05b952fc, 0x848d0548, 0x680223e1, 0x7342cc02, 0xffd0229a, + 0xe1ba18f8, 0x82002008, 0x42032000, 0x0f190673, 0xfe212e91, 0x92b144f9, 0x65a94019, 0x198d9148, 0x20092351, 0xed5b184b, 0xe7002767, 0x06000500, + 0xa5440700, 0x00042206, 0x08f16703, 0x85000e21, 0x000d210d, 0x50051750, 0x062205c3, 0x69181500, 0x072608b1, 0x00000600, 0xd15cecff, 0xff002506, + 0xfffdfffe, 0x22052b50, 0x82f8fffa, 0xfff72801, 0xfff6fff7, 0x82fcfff2, 0x18f92017, 0x200893b3, 0x261582f6, 0xfffafff8, 0x82efffea, 0x51f32001, + 0x152308a7, 0x85002900, 0x00032700, 0xff450102, 0x1744fea8, 0x00512205, 0x231683f5, 0x0bffafff, 0x00230783, 0x84010155, 0xfe91210f, 0x2605335f, + 0x00540171, 0x4e230300, 0x1d8409ab, 0x2f60fe20, 0x82f82008, 0x82fe2009, 0x82fa2083, 0x82fc2003, 0x83ff200b, 0x82238300, 0x000726e9, 0x000d000e, + 0x20018213, 0x21118417, 0xf41bff00, 0x032213a7, 0x2b840300, 0x01000124, 0x67820400, 0x05000422, 0x02200982, 0x89850382, 0xcd82f920, 0xe782f220, + 0xeeffed22, 0x8306875c, 0x000a2629, 0xfd090008, 0x1a578433, 0x2120d311, 0x2784f2fd, 0x69821420, 0xf3ff3e2a, 0xd4022c02, 0x73003b00, 0x9435481a, + 0x0800fd22, 0x09260182, 0x0e000a00, 0x01820400, 0x11000622, 0x08cfd11a, 0x09821220, 0x0c000d24, 0x19420600, 0xffff2107, 0x22067d41, 0x82f9fffb, + 0x82f72001, 0xfff82803, 0xfff5fff7, 0x82fcfff2, 0x18fa2001, 0x24082f5c, 0xffeeffe8, 0x2f5c18ed, 0x0014260a, 0x0000002a, 0x20018203, 0x06a14204, + 0xe7185f20, 0x18200813, 0x19210982, 0x95d01900, 0xffd4220d, 0x220182df, 0x70e8ffe8, 0x00240881, 0x2b016300, 0x02824382, 0xfff1ff35, 0xffe2fff0, + 0xffd6ffe1, 0xffcaffd5, 0xffe5ffe3, 0x82e7ffe6, 0xffea222b, 0x207782eb, 0x6d6d19dc, 0x00122a0a, 0x00240025, 0xff340033, 0x83db8290, 0x001624cb, + 0x821c0015, 0x00212201, 0x20738221, 0x22e1821a, 0x82090012, 0xff022201, 0x224982da, 0x82eaffe3, 0x205f8343, 0x055d53f2, 0x00990222, 0x2205dd59, + 0x6bf3fff7, 0xf12006e7, 0xcb42f582, 0x24378305, 0x00110012, 0x20018218, 0x2098821f, 0x23f38200, 0xfff2fff2, 0x2005ad5b, 0x821183fb, 0x000424ed, + 0x840d000a, 0x000622fb, 0x0574180f, 0x1bf72008, 0x820d19c8, 0x0012222b, 0x8301820e, 0x00042453, 0x825afd05, 0x00022211, 0x213f8202, 0x5a1b0005, + 0xe5200987, 0x5b428582, 0x000c2405, 0x8217000c, 0x00212677, 0x002b0022, 0x82298201, 0x0a002730, 0x3c002000, 0x01822e00, 0x995d2220, 0x85db180a, + 0xfff12209, 0x26e782ee, 0xffcdffce, 0x82c0ffc1, 0x2fc31905, 0x42012508, 0x1d002400, 0x15220182, 0x415c1500, 0xfff62408, 0x82ecfff6, 0xffe324d3, + 0x83d9ffe3, 0x21038d5e, 0x0f84ffff, 0x1200022c, 0x56020000, 0x0b006603, 0x755d3500, 0x17ff5038, 0x1900e824, 0x67844c00, 0x7b191020, 0xbf504715, + 0x004f261e, 0x001a00ec, 0x28018221, 0x00440025, 0x00480047, 0x2b7f832e, 0xe6ffecff, 0xe2ffe5ff, 0xc7ffcaff, 0xda200182, 0x1a2c8d82, 0x1d001b00, + 0x39003700, 0x26003800, 0xe7222384, 0x0182dfff, 0xbbffdb24, 0x0182b9ff, 0x97ffd122, 0x022a1582, 0x37ff3400, 0x06034102, 0xdb181300, 0x14207a79, + 0x21089750, 0xb319ffe7, 0x7d1a0d3b, 0x1e220b49, 0xa5825bff, 0x18003722, 0x14262d82, 0x11001200, 0x01820e00, 0x02000b24, 0xbd430400, 0x00052208, + 0x24018206, 0x00090009, 0x2215820b, 0x82030002, 0x8201201d, 0x00022203, 0x83018401, 0x05315d07, 0x2b833383, 0x0a000826, 0x0d000c00, 0x1a234982, + 0x1b001b00, 0x5067478d, 0xfc2220c7, 0x008500cd, 0xcf860520, 0xa3820e20, 0x85001221, 0x5e0720df, 0x0e2408fd, 0x16001500, 0x0a20b782, 0x07201182, + 0x0520f182, 0xd9830382, 0x2207cd44, 0x82070005, 0x820a2001, 0x000e28e3, 0x0012000f, 0x821f0017, 0x00222401, 0x8242003f, 0x832b2001, 0xe5ff2162, + 0x583dba1a, 0x43000021, 0x4b20097f, 0x2a795f42, 0x0500dd00, 0x06000700, 0x41000900, 0x0420051b, 0x20187948, 0x20238209, 0x22298208, 0x82110015, + 0x055d7701, 0x00000724, 0x7d56ebff, 0xfdff2307, 0x7948feff, 0x82f12012, 0xfffc2a17, 0xfff4fff9, 0xfff6fff7, 0x200384f8, 0x0e7948f7, 0x0000f926, + 0x2a001500, 0x02830582, 0x03000225, 0x44008e00, 0x52824837, 0x4c001922, 0x21999d48, 0xb7441efe, 0x2eff2149, 0x0022ed82, 0xbf444f00, 0xe1022309, + 0x8a1b4b00, 0x0123ad25, 0x84040002, 0x00032201, 0x20018605, 0x260f820e, 0x00070003, 0x820a0009, 0x43db1803, 0x00162609, 0x00130012, 0x2001820c, + 0x2d1d8207, 0xffecff00, 0xffffffd6, 0xfffdfffe, 0xeb48fffc, 0x82fc2007, 0x480f850b, 0xf22005eb, 0xf9220f84, 0x0f71f6ff, 0x84f82008, 0xffea2209, + 0x200182ee, 0x690b1bf3, 0x00142208, 0x0afb4829, 0xff215f82, 0x206382fe, 0x59571808, 0x05616b0c, 0x9d820320, 0x0520b183, 0x8508795c, 0x860620c1, + 0x830785bd, 0x474f4505, 0x9118fb20, 0x9d5a0ac5, 0xfffa2205, 0x22f182fa, 0x82f0fff4, 0x82ec2001, 0x82dc20c7, 0x00002cbb, 0x00370013, 0x00140016, + 0x18a50214, 0x410a6b93, 0x1749050d, 0x82f82007, 0x18fa2039, 0x220c1f93, 0x6e090009, 0x1f490851, 0x50f8200d, 0x73710a5d, 0x00032205, 0x22e58203, + 0x8204000d, 0x00072307, 0xe5830007, 0x02231383, 0x82000200, 0x62ff2000, 0xf0220509, 0x0182e7ff, 0x1082e020, 0x0d209383, 0x21092f49, 0x3982a5fc, + 0xbb450520, 0x20778306, 0x063b490c, 0x26050d4d, 0x000a0008, 0x82190012, 0x00202201, 0x240b8206, 0x0010000b, 0x2101820c, 0x0183000d, 0x05840c20, + 0x2147b745, 0x3d71fff3, 0xfff62405, 0x82f9fff8, 0x84f22001, 0x82fc20bb, 0xfffa2215, 0x22b984fa, 0x6aeeff00, 0xb18207e9, 0x13820520, 0xb2000128, + 0xb601e100, 0xf9822e01, 0x86010021, 0x22138201, 0x84c30041, 0xffbf22fd, 0x2007823d, 0x830382e1, 0x843a20f7, 0xbced2013, 0x00472637, 0x012202e7, + 0x246f8c2a, 0x01760047, 0x225b8465, 0x829cfe89, 0x82e72007, 0x00002403, 0x84320011, 0x84ef2013, 0x009b246f, 0x8ece01e7, 0x009b2337, 0x2b84004c, + 0xffb3ff23, 0x2037961a, 0x206f8200, 0x24378e68, 0x019a0000, 0x215b84ce, 0x6383fe66, 0x37b56f93, 0x8e000228, 0xd9011dff, 0xdf82df02, 0x934a0f20, + 0x8e002511, 0x40001600, 0xeb227984, 0x0782bfff, 0x0f8df520, 0x821dff21, 0x00002413, 0x84d202f0, 0xfd102123, 0x88050d45, 0x0200290f, 0x1dff0000, + 0xb3ff6802, 0xd98f5f96, 0xff220f8e, 0x0083008d, 0x1c000a22, 0xff230683, 0x8373fff7, 0x09002207, 0x2c778400, 0x0100f6ff, 0xc701e700, 0xdb029701, + 0x24bd9300, 0x002000e7, 0x2031845e, 0x271f820a, 0xff0a000f, 0xffcdffe6, 0x20053b5c, 0x20ed82ed, 0x281b84c7, 0x00490018, 0x00380022, 0x82058237, + 0xdeff2510, 0xc8ffc9ff, 0xe0200582, 0x5f890c82, 0x1d410b20, 0xe700290d, 0x39001400, 0x4a001900, 0xe0229984, 0x0784a2ff, 0x8501f321, 0x8f1f1b53, + 0x264b8410, 0x0179ffca, 0x188e0079, 0x261037c2, 0x001300ca, 0x8e18003a, 0xfff4224b, 0x21358279, 0x4b850000, 0x089b8f19, 0x9bd3ff21, 0x4a012197, + 0xff214b83, 0x05336ff3, 0xffe1ff23, 0x222d82a1, 0x9a190000, 0x00022c97, 0x01c70169, 0x00db02ff, 0x8d1f000f, 0x135b77e5, 0x00690025, 0x415f0020, + 0xe1201255, 0xed206d82, 0xe7201782, 0x1f854582, 0x51820920, 0x09001028, 0xcdffe6ff, 0x1d82eeff, 0xeeffe122, 0x21217541, 0x9541bfff, 0x20af851e, + 0x22af82fe, 0x9917000b, 0x41a782af, 0x002114a1, 0x156d41c1, 0x41172141, 0x48200c85, 0xff269b83, 0xffb8ffe8, 0x878200d3, 0x0179ff26, 0x008e00fe, + 0x6f8c87cc, 0x970af541, 0x22878317, 0x4101c701, 0xcc20210f, 0x20161942, 0x2017842f, 0x063142f4, 0x2106c942, 0x0f411800, 0x00012630, 0x02a4ff51, + 0xbf8c1918, 0x0008251e, 0x00420016, 0x2e200083, 0x0e59a819, 0xbeffea22, 0xff231683, 0x8377ffd2, 0x2e002707, 0x00008900, 0x0b84a4ff, 0x82018321, + 0x2209820b, 0x82360012, 0x00002405, 0x83940031, 0xcfff2307, 0x07846cff, 0xcaffee22, 0x7d200784, 0x87890582, 0x2ae3af18, 0x97980120, 0x8a208782, + 0xd2225b84, 0x078476ff, 0x0021a794, 0x22b79400, 0x83930031, 0x13002133, 0x4021b786, 0x05dd4200, 0xc022c79f, 0x378341ff, 0xff46ff20, 0xcfff2106, + 0xa027d784, 0xc901da00, 0xab00f101, 0x009d22d7, 0xc3771815, 0xfffd2608, 0xfff9fffd, 0x068d52fa, 0xe5ffea2a, 0xe0ffe6ff, 0xf2fff0ff, 0xf4240186, + 0xf6fff5ff, 0x0a337d18, 0x0a000a24, 0x3f821600, 0x1a001b24, 0x01821f00, 0x1a001a24, 0x0f820301, 0x18001828, 0x10001d00, 0x01820e00, 0x0c000d22, + 0x0a205f82, 0x14202982, 0x0a200382, 0xfd22b584, 0x6582feff, 0xf8fffb22, 0xf7246982, 0xe7ffecff, 0xe2240182, 0xe8ffe3ff, 0xeb200182, 0xf6200f82, + 0x8405776a, 0x00002c37, 0x00a00001, 0x02f101b5, 0x43110017, 0x1d8213cd, 0x6d821620, 0x20001d26, 0x3e003c00, 0x29200182, 0xe320a182, 0xe0244d82, + 0xc2ffc4ff, 0xd7200182, 0xb5207382, 0x0f228582, 0x41820f00, 0x21001f22, 0x15202982, 0x20200f88, 0x21240d82, 0x8aff1600, 0xf5206782, 0x73225f82, + 0x35448f00, 0x6301251b, 0x04000800, 0x54820182, 0xfc22cb84, 0xc782fcff, 0xc0ffe022, 0x20147558, 0x29238320, 0x03000400, 0x27000700, 0x05824c00, + 0x00200b83, 0xff200085, 0x2205294a, 0x63b3ffda, 0x00240af1, 0x80000200, 0xe8208782, 0x2f208784, 0x7545f193, 0x19138913, 0x83161354, 0xc35818a1, + 0x83808309, 0x000724c5, 0x842a0120, 0x0dbb5ad1, 0xe0fff824, 0xd182c1ff, 0xb3118b5b, 0x410020d1, 0x03262c01, 0x00002800, 0xff863f02, 0x01414720, + 0x171f4131, 0x00970023, 0x10bb4107, 0xe982f920, 0x1367c020, 0x01202214, 0x2deb410c, 0x410d0121, 0xfd211c49, 0x20008700, 0x21858203, 0x49410008, + 0x426f8361, 0x01282d7b, 0x0e01e300, 0xae018501, 0x2523e947, 0x0b006e01, 0x01820600, 0xff216782, 0x280182fa, 0xfff4fff5, 0xfff1fff2, 0x830182ef, + 0x4b0f8307, 0x057107ab, 0x000e2209, 0x24018211, 0x010e000f, 0x223f8225, 0x820f000e, 0x0012220d, 0x2207820e, 0x8c0a000b, 0xfff6224f, 0x224d82f5, + 0x82eefff2, 0x82f1204f, 0x4bf52059, 0x77850afb, 0x7a820720, 0x68020031, 0x2f00a102, 0x67004f00, 0xc3009300, 0x4801eb00, 0x234222a5, 0xe7174017, + 0x00d80025, 0x820d0010, 0x18092001, 0x450ad77a, 0xf92609ff, 0xebfff7ff, 0x0182e7ff, 0xf1ffe124, 0x0182f2ff, 0xf3fff326, 0xf4fff5ff, 0xf6201784, + 0x24069f45, 0x000a000a, 0x223f8215, 0x840b000c, 0x000e224b, 0x2655820e, 0x00130014, 0x4f8dff12, 0x002008b7, 0x0ad38518, 0x8208fb41, 0x410c202f, + 0xfb2208eb, 0x2d82faff, 0x6982f320, 0x20053b42, 0x246f82f1, 0x002200c3, 0x2401822d, 0x005d0032, 0x22018260, 0x82fcff40, 0xfffa2625, 0xffc0fffd, + 0x240182a0, 0xffceffa3, 0x220182d3, 0x820400de, 0x00052247, 0x205184be, 0x208d820b, 0x08674615, 0xb182f620, 0xb182eb20, 0x0782f520, 0xc783bf83, + 0xe2fff022, 0x08838518, 0x5173f520, 0x820a2006, 0x821320bf, 0x820b2035, 0x180e2003, 0x2608b54a, 0x000f000f, 0x9241010e, 0xfffe2157, 0x2207bf46, + 0x18f6fff8, 0x200e87ff, 0x225f84f1, 0x18ecffe6, 0x2008ad5e, 0x088d5efb, 0x22052f41, 0x82190014, 0x001f2201, 0x215f8310, 0xd34265fe, 0x0002220a, + 0x20cd8201, 0x22038204, 0x46050003, 0xe75308a1, 0x00082205, 0x20e78207, 0x20178206, 0x0837410d, 0xfbfffa26, 0xf4fff3ff, 0x220b2343, 0x83ff2701, + 0x5b738415, 0x358508d1, 0x37820520, 0x45820720, 0x08000824, 0x01840900, 0xd1180983, 0x578909e3, 0x3982fe20, 0xb582fd20, 0xfcfffc24, 0x4154f9ff, + 0x5cf82006, 0xef2008bb, 0xf1226f82, 0x4182a401, 0x0d000c22, 0x0f26c382, 0x11001200, 0x09821300, 0x0e000e22, 0x0c24b582, 0x0a000b00, 0x13201d82, + 0xef470382, 0x05015d09, 0xf7fff926, 0xe7ffedff, 0x20068b6f, 0x200782e8, 0x201182ec, 0x216586f9, 0x2345fffe, 0x00052405, 0x82470004, 0x224f8349, + 0x48100011, 0xc7830845, 0x200b6b44, 0x22fd82f3, 0x82effff0, 0xfff22205, 0x0a4741f4, 0xff21e982, 0x289b8233, 0x00110011, 0x00230012, 0x20018224, + 0x20f58218, 0x2049820e, 0x22738209, 0x82ddffdc, 0x82ee2001, 0x203b8339, 0x22cf82f8, 0x41f8fef2, 0x0924061d, 0x18001400, 0x1c240182, 0x17001d00, + 0xc5830782, 0x3b820720, 0x05000522, 0x08d34618, 0xb382f720, 0xc782ec20, 0xe322bf83, 0x5182e3ff, 0x0d82e720, 0xd218f720, 0xfd2008eb, 0x8205877b, + 0x8203202f, 0x00062235, 0x89018207, 0x092b5157, 0x0a000b22, 0x085b4218, 0xf6205f8b, 0xf7205f84, 0x08af8618, 0xe182f220, 0xe4fff122, 0xe8206782, + 0xec206782, 0x20088371, 0x22618203, 0x820b004a, 0x000e22d5, 0x06d14110, 0x06206b83, 0x0420cb82, 0x200a9b45, 0x13c518fe, 0xfffc2408, 0x18f5fffb, + 0x20082fa4, 0x220982f2, 0x18f4fff5, 0x200807aa, 0x20ad8206, 0x0607410c, 0xb3820620, 0x03820820, 0x11000722, 0x0b205f84, 0x04201b82, 0x73830382, + 0x02000122, 0x210c4d5e, 0x578bfffc, 0xf9fff922, 0x0817d218, 0xb343f920, 0x05f35306, 0x1741ff20, 0x05c74106, 0x250fbb45, 0x011f01ff, 0xbe19013f, + 0xe3456269, 0x22e797e7, 0x4300d700, 0x80180553, 0x534313d3, 0xfff02405, 0x18edffee, 0x2308b35a, 0xfff0fff0, 0xf6221783, 0x8f74f7ff, 0x00052808, + 0x00090005, 0x190d000a, 0x2208391d, 0x82140012, 0x00122401, 0x458eff12, 0x0e2812fb, 0x11000e00, 0x0f001200, 0x1806cd43, 0x4509cb46, 0xf2230dfb, + 0x45fff1ff, 0xac212ffb, 0x23ea8d00, 0x00020002, 0x200b364a, 0x24778202, 0x00160016, 0x207b8219, 0xcf8b180b, 0x00092208, 0x20278208, 0x22038204, + 0x82010001, 0x8602202f, 0x84002045, 0x82022011, 0x20df831d, 0x22e5820a, 0x820c000d, 0x821120e5, 0x20bd83bb, 0x2041840e, 0x978b1808, 0xfff82610, + 0xfff5fff6, 0x200182f2, 0x24c382f1, 0xfff3ffef, 0x830f82f4, 0x05db6113, 0x7b18fe20, 0xff230851, 0x19fffeff, 0x8408ddf4, 0xfff92309, 0x4b46fff7, + 0x055d7c05, 0xebffe626, 0xeeffeaff, 0x028b1b82, 0xfefffe24, 0x108a0000, 0xeffffe22, 0xe8202784, 0xf1220782, 0x7982f0ff, 0x7182f320, 0x6a18f520, + 0x08200c4d, 0x08e56318, 0x1a00152a, 0x15001800, 0x8dff1500, 0x5418a982, 0x062209b5, 0x01820a00, 0xe3820b20, 0x83079b41, 0xabe3180f, 0x82f6200b, + 0x82f4202f, 0x82f220cf, 0x21d382d7, 0x5218b200, 0x3f820f29, 0x3f820c20, 0x0f000e22, 0x0c200582, 0x06204f84, 0x850ad179, 0x05a7463f, 0xf4fff322, + 0xf7203f82, 0x0a355518, 0x47420620, 0x420c2006, 0x7f9d081b, 0x7b46f320, 0x00142410, 0x82110012, 0x000f2201, 0x207f8410, 0x1a818209, 0x20092f50, + 0x21ad82fc, 0xb782fff7, 0x0869851a, 0xedffee24, 0x217aefff, 0x82f42006, 0x42f72019, 0x04220cd7, 0x45824800, 0x0d000e23, 0x1d7b4600, 0x4f82f220, + 0xf3ffef22, 0x4a06e741, 0xff210ae7, 0x2d7b4632, 0x0015ff25, 0x42020001, 0x01200675, 0x01220b82, 0xe541feff, 0x77fe200c, 0x05190a77, 0x02220d47, + 0x37840400, 0x01000122, 0xf61b3182, 0xd3820c53, 0x201af820, 0xfe2108b7, 0x20008300, 0x202d8204, 0x06ab4109, 0x774b1020, 0x00132206, 0x83e78413, + 0x820c200f, 0x670819f7, 0xfffe240b, 0x59fbfffd, 0xf62006b7, 0xfc205f82, 0xfe226384, 0xad84feff, 0x52820320, 0x7f847782, 0x9d480820, 0x18062006, + 0x2008cb4d, 0x207f82f6, 0x85938eec, 0x84022037, 0x84022037, 0x481420f3, 0xfc200823, 0xf7206782, 0xf4283382, 0xf1fff4ff, 0xeffff0ff, 0xed280182, + 0xe7ffe4ff, 0xedffe8ff, 0xf6200182, 0x2208ab49, 0x463c000a, 0x102008f3, 0x0e20c582, 0x0c200d82, 0x081d5118, 0xfafffa22, 0xf5224182, 0x0182f2ff, + 0x4782f020, 0x4715e346, 0x3ff50733, 0xfb820020, 0x0e02d625, 0x18029201, 0x201517e8, 0x28d182d6, 0x00120021, 0x001b001a, 0x062f4519, 0xdfff0924, + 0xcf82bcff, 0xe4ffe525, 0x83000e02, 0x00162200, 0x21018220, 0x9744001f, 0x830b2005, 0x22238212, 0x82c9ffca, 0x00022209, 0x205f828b, 0x4d5f84dd, + 0x0021220d, 0x28718e8b, 0x000c000c, 0xffdeff0a, 0x217185bd, 0x1f848600, 0x8f821120, 0x0c249185, 0x09000d00, 0xe4221f86, 0x919fe5ff, 0x9edfff21, + 0x000326b1, 0x020e023f, 0x50af8628, 0x3f2033f5, 0x2222a182, 0xa1821100, 0x1a001a24, 0xbf820e00, 0xef24a187, 0xe5ffe5ff, 0x5341c186, 0x94e18a18, + 0x41e1bf3f, 0x13422001, 0x6701211e, 0x2022df82, 0xcb82f0ff, 0xefffe626, 0xbcffdeff, 0x20069746, 0x22ed820e, 0x861b001b, 0x0021279f, 0x00360037, + 0x00820021, 0x4df5ff21, 0xe124064f, 0xe0ffe0ff, 0x25311342, 0x0a001c01, 0x71842100, 0x0582e520, 0x0a217183, 0x05e54500, 0x73841a20, 0x9188a820, + 0x09221f87, 0x21820d00, 0xff2191a6, 0x209382ea, 0x97ab8200, 0x411342b1, 0xa18ed120, 0x3f63bb20, 0x001a210c, 0x5341c189, 0xa7002114, 0xbc203f8e, + 0x8506f34c, 0x411a20e1, 0xe19f1f73, 0x002d1f9f, 0x00010000, 0x01430080, 0x00f2016a, 0x2007531d, 0x2f826a20, 0xe4ff0024, 0x0182d1ff, 0x1c00e424, + 0x01822f00, 0x13841c20, 0xecfff122, 0xe9280182, 0xd5ffd7ff, 0xe4ffd4ff, 0x00231383, 0x8214000f, 0x00172401, 0x822b002a, 0x00432c01, 0x00430016, + 0x00280017, 0x88180027, 0x001e2407, 0x45f3ff3c, 0xdd220689, 0x0182dcff, 0x0f82e820, 0x1384e720, 0xedfff023, 0x821384ff, 0x82ff20a3, 0xa3e920a3, + 0xff0021a3, 0x29227788, 0x77822c00, 0xe4209f85, 0xd7229784, 0xa784e9ff, 0x9f84f120, 0x1d22bf85, 0xcf86e3ff, 0x9f820020, 0x11000c22, 0x13200182, + 0x2208d14d, 0x8219000d, 0x002422ad, 0x20118224, 0x2a1b8413, 0xffe2ff0d, 0xffe8ffc4, 0x82d8ffd9, 0x2a07874d, 0x000400e2, 0x02e3ff7a, 0x82c10211, + 0x002f24db, 0x416f004f, 0x524a204d, 0x0d604a0e, 0x00210db3, 0x21fb82ae, 0x8b5f002d, 0x00042205, 0x20018406, 0x23eb8304, 0x9cffdfff, 0x00230783, + 0x84070005, 0x82042001, 0x00042225, 0x202f84f7, 0x20318402, 0x202d8203, 0x87038207, 0x849d202f, 0x8a04202f, 0xff03242f, 0x180c0065, 0x4a109d52, + 0xef230589, 0x4ffff1ff, 0x06200d21, 0x0b204b82, 0x0e242f82, 0x12000e00, 0x21054146, 0xcd530001, 0x203f8512, 0x203f9cf0, 0x06d54b11, 0x22055742, + 0x82170012, 0x00192401, 0x8231002f, 0x00212401, 0x848c0046, 0xffcb22e3, 0x28e78263, 0xffcfffcf, 0xffe7ffd1, 0x200182e9, 0x821783ee, 0x202fa73b, + 0x229f8204, 0x820f000f, 0x54132031, 0xf01a0a2d, 0xe7830de3, 0x07fb4318, 0x2011d94e, 0x0d52180b, 0x096d5408, 0x032c3fa9, 0xeeff7a00, 0xcb020802, + 0x59003f00, 0x81494218, 0x00f70026, 0x00470018, 0x90420085, 0x05e56205, 0x06000524, 0x01820900, 0x17000b23, 0x200b8300, 0x2227820a, 0x82100010, + 0x00082211, 0x82018204, 0xf2ff2531, 0xe4fff3ff, 0xdb280182, 0xd0ffdaff, 0xe7ffe8ff, 0xe8200382, 0xe9200384, 0x2106ab6d, 0x0187000c, 0x83000b21, + 0x84032001, 0x2005833b, 0x20098205, 0x20448205, 0x2203825f, 0x84080000, 0x8209206b, 0x00072105, 0x20057b50, 0x9bbf1803, 0xfffd2608, 0xfff9fffa, + 0x2a0182f6, 0xfffcfff2, 0x00f9fff8, 0x610b0002, 0xd31806a9, 0xf320092b, 0xf1208b82, 0x52060552, 0xfc200709, 0x0a934918, 0x31820620, 0x24079953, + 0x000f000f, 0x2099820d, 0x247b84bc, 0x003c0014, 0x85d7840a, 0x8207207b, 0x8407208d, 0x000b2211, 0x24678414, 0x0015000a, 0x83018213, 0x001127ff, + 0x00110010, 0xa61a0025, 0xfc220f9b, 0xa582fdff, 0xa784fa20, 0xe2fff324, 0x4584c5ff, 0x06000722, 0x05200182, 0x04210382, 0x0d1f4e00, 0x6cff022a, + 0x3300cbff, 0xfeff9800, 0xfc22d582, 0xdb85fbff, 0x654cc182, 0x4df22005, 0xf62208f9, 0xc782f4ff, 0x1f82f320, 0xfe21d782, 0x0a2d4f4f, 0xe54cc383, + 0x0971530b, 0x2d82fd20, 0x3782f620, 0x4ffff321, 0xf6200975, 0x2008e563, 0x28d58204, 0x02000001, 0x026802b1, 0x0c7362d7, 0x210e1961, 0x1961b102, + 0x2a0d820d, 0xffdeff01, 0xff8a021c, 0x442300c7, 0xdd2426fd, 0x2c002a00, 0x08119d18, 0x83ffd521, 0xffd62201, 0x220784d6, 0x82eaffd3, 0xffeb2101, + 0xec200183, 0xea200582, 0x19841782, 0x00246982, 0x55005800, 0x53200182, 0x22055d46, 0x690037ff, 0x142807fb, 0xe7ff2800, 0xedffeeff, 0x230c1d7e, + 0x00010002, 0x26055f42, 0x00060005, 0x8213000b, 0xff192801, 0xffd8ffec, 0x46e4ffc9, 0x072006af, 0x00201982, 0x3f262782, 0x29025600, 0x0b5c6d03, + 0x003f2e16, 0x00480019, 0xff270162, 0xffb9ffe8, 0x204382ef, 0x2ea582eb, 0xffd1ffd5, 0xffd3ffd0, 0xffdeffda, 0x845600de, 0x02c622a1, 0x82078351, + 0xffd72211, 0x221b82d7, 0x82a1ffab, 0xffa42601, 0xffbcffb5, 0x266782bc, 0x0181ffe7, 0x5cdb02bb, 0x00251b0b, 0x003500e7, 0x2245849f, 0x83a7ffe2, + 0x1e002307, 0x0f945900, 0x61ffcb26, 0x81ff0000, 0xb9821b83, 0x07843320, 0xf5005222, 0x11210784, 0x200f8700, 0x200f84f7, 0x06276410, 0x0d822a20, + 0xad000122, 0x81208782, 0xad20879e, 0x67848788, 0x1e223782, 0x05825a00, 0xe2ff0024, 0x0783a6ff, 0x0f8c0020, 0xd7228786, 0xc0198302, 0xff230bff, + 0x180affad, 0x200ca9aa, 0x055972ae, 0x82efff21, 0x00042f15, 0x02eeff11, 0x00cb0258, 0x00a70053, 0x138200cb, 0x40330347, 0x0026bb33, 0x00180054, + 0x00850049, 0x2c05b142, 0x00080003, 0x000b0007, 0x0003000f, 0x20098204, 0x08f9500f, 0x24070345, 0xfff7fff7, 0x2a0182ef, 0xffe8ffe8, 0xfffdffe0, + 0x82fffffc, 0xffea2605, 0xffedffee, 0x200182f1, 0x200382f0, 0x225284ef, 0x820d0010, 0x820c2001, 0x051f564d, 0x0e001022, 0x0b200f82, 0x180a2f45, + 0x22099da9, 0x18f6fffa, 0x20082749, 0x246182f2, 0xfffafff8, 0x205782fb, 0x214983fe, 0xa78e3001, 0x9d820420, 0xa7980720, 0x82000221, 0xf8ff2100, + 0xfe20a78c, 0xa78f4d82, 0xf0fff022, 0x00202882, 0x9783eb82, 0xfe20a79b, 0xe9838982, 0x9582f920, 0x0b83a783, 0xf2fff822, 0xa7836384, 0x73841f82, + 0x0b463620, 0xfff62210, 0x200182f3, 0x202982f0, 0x830382f8, 0x82fb203f, 0x46fb2089, 0x0b24100b, 0x0d000c00, 0x10208982, 0x0d230582, 0x18003c01, + 0x2009ed6f, 0x207384fb, 0x214582f5, 0x4785fff4, 0x7e18f920, 0x478b082b, 0x05000522, 0x0b207d82, 0x47843f83, 0x53464f83, 0x520f2009, 0x0d200845, + 0x11200982, 0x22084b46, 0x82130016, 0x000f2101, 0x2a054d46, 0x00260012, 0x001d001e, 0x84140015, 0x8303202f, 0x210385d5, 0x5346fdff, 0xfff2250a, + 0x00bcffdd, 0x09819318, 0x84000421, 0xd9021929, 0xffed220c, 0x1d2219f6, 0x82f42008, 0xfff322bd, 0x201f82eb, 0x201582fa, 0x294c18ec, 0x07715808, + 0xfb46cf20, 0x9da74008, 0xef461420, 0x0d251946, 0x3b37470b, 0x2a05c344, 0x00cb0212, 0x006b0053, 0x47b3008f, 0x00202605, 0x448db544, 0x5920a887, + 0x212def4c, 0x0f4411ff, 0x904b2046, 0xfff52147, 0x2411634a, 0xfffcfffb, 0x0c8556f5, 0xaf420b20, 0x0f634a08, 0x489d6743, 0x774d0535, 0x21e78929, + 0x4f430010, 0x4997433b, 0x5b485320, 0x00632408, 0x43ab0087, 0x8420ae97, 0x25a56f47, 0x1400effe, 0x53183c00, 0x00260883, 0xe6ff0000, 0x0682b4ff, + 0x50000021, 0x60220593, 0x3b190b00, 0xf5200c11, 0x082d6418, 0xd15df720, 0xfff92106, 0x20058f47, 0x0a055cf6, 0x0a000622, 0x0d2c3782, 0x10000c00, + 0x0d000f00, 0x27010d00, 0x4bee8f47, 0x202a05c5, 0x35003400, 0x67001f00, 0x2619cc00, 0xe126083d, 0xccffcbff, 0x0747fffe, 0x0001288e, 0x02a4ff65, + 0x4ebd0233, 0x00232707, 0x82120065, 0x50d683db, 0x0f870771, 0x29003526, 0x1e002a00, 0x0e200182, 0x0865d918, 0xf1fff922, 0xeb280182, 0xe6ffebff, + 0xe1ffe5ff, 0xdc240182, 0x6affb5ff, 0x2208ab6b, 0x832802b8, 0x48ff234a, 0x0783d8fd, 0x01630025, 0x8204002a, 0x000e263d, 0x001a001b, 0x20018222, + 0x834f822b, 0x0016240b, 0x82110017, 0x000c247b, 0x8206000c, 0x212e8401, 0x06823aff, 0x9f000328, 0xcb010e02, 0x3782a603, 0x4f182720, 0x01254b67, + 0xff0000cb, 0x220182da, 0x82b6ffb5, 0x82db2005, 0x0000286b, 0x00260025, 0x824b004a, 0xff262205, 0x50118212, 0x11240791, 0x16001000, 0x07830182, + 0x240ba94b, 0xffeaffeb, 0x820182d4, 0x74002107, 0x2109817f, 0x2b19feff, 0xf8260805, 0xf8fff7ff, 0x0182f9ff, 0x0382fa20, 0x55821782, 0x83058743, + 0x0007225b, 0x29018208, 0x00070009, 0x00da0208, 0x44190066, 0x9a200bb9, 0x0e61ed18, 0x7f416520, 0x18142006, 0x2109ed9f, 0x0182f6ff, 0xecffec24, + 0x0182e2ff, 0xafffd624, 0x1178d8ff, 0x00292606, 0x00390028, 0x22578204, 0x82080006, 0x82062001, 0x216f839b, 0x054c0003, 0xa9401805, 0x229b830f, + 0x18fbfffc, 0x85088df0, 0x00022a27, 0x010e0286, 0x009703c7, 0x2c696c1b, 0x4e004821, 0x0f2307e9, 0x82002c00, 0xf1ff2300, 0x0784d4ff, 0xc3ffec26, + 0xf0fff5ff, 0xef260182, 0xdeffe0ff, 0x1957dfff, 0x00312606, 0xff000091, 0x28378276, 0x001a0019, 0x000d0018, 0x2001820c, 0x20338409, 0x089159dd, + 0x0f834120, 0x28201b82, 0x3f210784, 0x05256e00, 0x2a05195f, 0xffd4ffe9, 0xffd2ffd3, 0x7dedffe2, 0xff270579, 0x004a00eb, 0x82240017, 0x00222101, + 0x24053356, 0xffbfff0c, 0x283b827f, 0x01a00001, 0x03be01fe, 0x8f9f188d, 0x82922040, 0x180b2061, 0x240a0755, 0xffebffea, 0x200182e4, 0x20f182dc, + 0x3b8318f3, 0x002c2208, 0x22c98485, 0x8350ffc5, 0x20338207, 0x22e38218, 0x821b0018, 0x00142897, 0x000f000e, 0x84080007, 0xfff92421, 0x82f2fff8, + 0xffec2437, 0x82e5ffec, 0xffe324cb, 0x83e5ffe3, 0x302f8219, 0x001f001e, 0x00260025, 0x021e001e, 0x00110021, 0x20018219, 0x2013821f, 0x22078218, + 0x18120011, 0x28084999, 0xfffefffe, 0x002000fc, 0x21378440, 0x235a000c, 0xffcf2205, 0x22a7826d, 0x84050004, 0xfffa2867, 0xfff5fffa, 0x82f0fff4, + 0x20b38301, 0x690782ef, 0x07260dc3, 0xeeff0d00, 0x8f82dcff, 0x2007196c, 0x2ca38409, 0x02a50002, 0x03d10106, 0x0031009e, 0x4cbf4749, 0x1300ab22, + 0xf341a182, 0xfff72205, 0x2a7d82f6, 0xffe5ffee, 0xffdfffe6, 0x82e7ffdd, 0x82f02007, 0x29fb82b9, 0x18003d00, 0x16001500, 0xc9841400, 0xe9ffea23, + 0x200383ff, 0x202782d5, 0x200982df, 0x895818ea, 0x00092208, 0x2e518209, 0x001e0012, 0x0028001f, 0x001a0022, 0x6568ff1b, 0x0c221003, 0x01821000, + 0x2a001322, 0x51855382, 0xebffec2e, 0xedffd6ff, 0xf0fff0ff, 0x12002902, 0x18226d82, 0x56182000, 0x1020080b, 0x24086741, 0xfff2fff3, 0x052b44e4, + 0xfb268984, 0xf6fffbff, 0x2b821100, 0x04000822, 0x14820182, 0x82f3ff21, 0x28c38301, 0xffdaffdb, 0xffcbffce, 0x180782d9, 0x260b3bde, 0x00080009, + 0x820c0031, 0x84112035, 0x821120d3, 0xd57b1809, 0xffe9220d, 0x495218d2, 0x051b450a, 0x9f00012a, 0xc3010e02, 0x19009703, 0x211b8141, 0x4d82db00, + 0x14003122, 0x1e2aff82, 0x10001d00, 0x0f000e00, 0xab840b00, 0x25ffb722, 0x00250783, 0xffa70037, 0x20a382f5, 0x24ed82f2, 0xffe2ffe3, 0x066b43e3, + 0x44002d28, 0x41004500, 0xcd822300, 0x18002022, 0x0f20a582, 0xf5223784, 0x0784deff, 0x2b82ea20, 0xdfffe232, 0xc0ffc2ff, 0x0300c0ff, 0x09029e00, + 0xa003cb01, 0x47204f82, 0x67b94518, 0x45a30121, 0xe7240a07, 0xd0ffe8ff, 0x9f450f82, 0x33b01807, 0xffee240b, 0x82e6ffed, 0xffe02201, 0x058818e0, + 0x83f7200a, 0x180020c7, 0x240995a4, 0xff140010, 0x204582d0, 0x221784e8, 0x820a000a, 0x0014284d, 0x001c001b, 0x83240023, 0x58ff2107, 0x14261982, + 0x26001300, 0x6f182700, 0xff210d7b, 0x226182da, 0x180d00ec, 0x280a6fa7, 0x00160016, 0x0015002c, 0x20018210, 0x0a6d590c, 0x7743fb20, 0xfff0280e, + 0x002702f0, 0x8214000f, 0x001b282b, 0x0019002b, 0x8209001a, 0x00082295, 0x22358208, 0x820e000c, 0x00112201, 0x206f8217, 0x05681812, 0x24db8314, + 0xffefffe9, 0x06f559f2, 0xf8fff826, 0xf7fffbff, 0xd520e784, 0xeb230582, 0x18ffecff, 0x280beb59, 0x01070008, 0x0021001d, 0x82978211, 0xf0ff21ce, + 0xdf223b82, 0x0782e0ff, 0x0e82f020, 0x15820020, 0x31ff1022, 0x2008977f, 0x20e78826, 0x215582fb, 0xa318fff6, 0xf12009e3, 0x0f836f82, 0x0b457618, + 0x0200002a, 0x0b029800, 0xa303c401, 0x26501b44, 0x00160097, 0x830c000b, 0x218582a3, 0xf783fff7, 0xe3ffe226, 0xddffd7ff, 0xe522e582, 0x1182edff, + 0x0bdbb518, 0x12001124, 0x01821a00, 0x24002324, 0x01821900, 0x00000f24, 0x0182e2ff, 0xe9ffc324, 0x0182eaff, 0x4983eb20, 0x82170021, 0x26038355, + 0x0021002b, 0x8255ff21, 0x82152013, 0x002a2611, 0x000f0014, 0x186f8410, 0x260f036e, 0xfff1fff0, 0x83d6ffec, 0x3f022d41, 0x25001b00, 0x32002600, + 0x27003500, 0x19240782, 0x0d001800, 0x0d54a386, 0xffe72809, 0xffdfffe0, 0x1ae7ffe8, 0x260c9798, 0x000e000d, 0x18b5ff1b, 0x2608d962, 0x00050006, + 0x82efff0a, 0xe357182b, 0x820d2009, 0x00f8224d, 0x4f6e182e, 0xfffa2608, 0xfff3fffb, 0x222582f4, 0x82ebffee, 0x82f020c7, 0x42f42009, 0x17200a73, + 0x002a2982, 0x8e000100, 0xdb015801, 0xcf566f02, 0x1a01211b, 0x23084547, 0x00690023, 0xff230082, 0x8497ffdd, 0xfff32207, 0x860784d8, 0x8400200f, + 0x5801211f, 0x00221383, 0x0785001d, 0x53460b20, 0x200f8205, 0x222b8459, 0x84a8ffe2, 0x60f52007, 0xff2105fb, 0x830d82e3, 0x01cd2487, 0x58f901db, + 0x8e240cbb, 0xf9005400, 0xad262b84, 0x000006ff, 0x0b83cd01, 0x4f860020, 0x82f5ff21, 0x8202200d, 0x829720bf, 0x822f20bf, 0x13c97937, 0x3182418e, + 0x0222518c, 0x00830002, 0x22000b22, 0xf5206584, 0x8706277a, 0x00f42c0f, 0x00ec0001, 0x027d01f3, 0x451b00d3, 0x01251b3b, 0xff7d0100, 0xbd9318d6, + 0x00152c08, 0xff2a0015, 0xffdeffef, 0x19eeffe8, 0x200881ec, 0x216383fa, 0x01820600, 0x0c000b28, 0x12001100, 0x05821800, 0x3c00f322, 0x2682018e, + 0xffe0ff27, 0xffe1ffe2, 0x200184e3, 0x200b82e2, 0x850982e2, 0x20178303, 0x832282e1, 0x209b878e, 0x229b9613, 0x182f001f, 0x24081366, 0xffe9ffe8, + 0x228b82d1, 0x822900de, 0x8415209d, 0x82eb20ef, 0x84d720b1, 0x843d2083, 0x003b2283, 0x2007843b, 0x261d843d, 0xffc4ffc4, 0x82c5ffc3, 0x20078301, + 0x291383c4, 0x8e000100, 0xdb011e00, 0x2f423401, 0x1e00214b, 0x1d225b84, 0x07845700, 0x2f420c20, 0x851e2006, 0x42f9820f, 0x4d46072f, 0x062f4205, + 0x01920025, 0x42bf00db, 0x00211b2f, 0x0cd34892, 0x21062f42, 0x37825c00, 0x2f42f520, 0xc9002135, 0x81425184, 0x72ff2108, 0x290d3f42, 0xec000100, + 0x7d01b9ff, 0x2f429901, 0xb9ff2557, 0x3c003d00, 0x4206a741, 0x82820539, 0x42e0ff21, 0xe3200623, 0xe2200784, 0x09830582, 0x08ef5f18, 0x00202282, + 0x2f429b8a, 0x2083823e, 0x2281843e, 0x823a003b, 0x003c228b, 0x082f423e, 0xc5ffc422, 0xc3240182, 0xc3ffc4ff, 0x73821383, 0xf5ff0526, 0xc6026602, + 0x54795b18, 0x44005724, 0x7b84cb00, 0x5fffcb22, 0x00230783, 0x84960032, 0xffce220f, 0x3fcc196a, 0xffbe220c, 0x2a178438, 0xffdfffe4, 0xffdaffe0, + 0x82e5ffdd, 0x18ec2001, 0x280a9388, 0x000a0009, 0x00140013, 0x2801821b, 0x00260023, 0x00210020, 0x2033841c, 0x203382e3, 0x223382df, 0x82dbffd0, + 0x82e42001, 0x18f22037, 0x2008356c, 0x222d820e, 0x8225001c, 0x822f2001, 0x0012283d, 0x00110012, 0x840f0010, 0xff002203, 0x823f83f5, 0x842f200d, + 0x00312207, 0x22078493, 0x842e000f, 0x00282207, 0x250f8b77, 0x44ffc2ff, 0x7118deff, 0x0e2108cb, 0x245b8500, 0x00290029, 0x83018236, 0x821c2007, + 0x820d2091, 0x83368217, 0xdfff2527, 0x33001900, 0x0d228182, 0xa9840d00, 0xecffed22, 0xda22a182, 0x0182cdff, 0xbfffbf22, 0xda200784, 0x17821182, + 0x00251f83, 0x00030004, 0x83018207, 0xff0d22eb, 0x2e1382b9, 0xff3d0003, 0x023102d6, 0x006700ed, 0x449f0087, 0xe9561647, 0x8100288a, 0x35001200, + 0x60000300, 0x0d22056d, 0x01830e00, 0xfffeff2b, 0xfffcfffd, 0x001800fe, 0x20ac822f, 0x831f8202, 0x82032003, 0x82032007, 0x00092429, 0x82310035, + 0x822c2001, 0xff0024f1, 0x82d0ffd6, 0x82ca2001, 0x00fb2c31, 0x000b000a, 0x000d000c, 0x821a0017, 0x85182001, 0x064d414d, 0xf8fff82a, 0xf6fff7ff, + 0x07000400, 0x04240182, 0xd1ffe8ff, 0xfc206782, 0xf2226984, 0x0182f1ff, 0x6b82f220, 0x63820420, 0x1b840220, 0x1982ff20, 0x2182fd20, 0xdcffd822, + 0xe2240182, 0xe7ffe1ff, 0x2206ff45, 0x83f7fff7, 0x15002579, 0x28001400, 0x04204f82, 0x05220382, 0x5d84faff, 0x4783a020, 0xfff2ff23, 0x20d782f5, + 0x2079820e, 0x2093820b, 0x20718408, 0x259b840f, 0x00100013, 0x1982000f, 0x84eeff21, 0xfff52229, 0x209782f6, 0x223d82f8, 0x82f4fff1, 0x48812001, + 0x0e200acb, 0x1d202782, 0xcb836382, 0x2d822120, 0x1f82f320, 0x2d82f720, 0x20056d71, 0x223982f4, 0x84d6fff6, 0x000c2289, 0x206f8211, 0x83051911, + 0xfff82108, 0xf8202b83, 0x05241b84, 0x08000900, 0x00220182, 0x0f84ffff, 0x11200485, 0x22288782, 0x43002100, 0xeaffd3ff, 0x2406874f, 0x00230000, + 0x2801822a, 0x0057002f, 0x0060005f, 0x24618256, 0xfff5fff4, 0x212782f2, 0x45500042, 0x82062005, 0x00192293, 0x82c38218, 0x201f8247, 0x24eb82f3, + 0x000500f3, 0x20018203, 0x22e78202, 0x180c000b, 0x2008ab72, 0x20db84f6, 0x228b82fd, 0x82ebfff3, 0xffe12465, 0x82d9ffe2, 0xffcf2801, 0xffc7ffd0, + 0x82beffac, 0xffcf2401, 0x84fcfffb, 0xffec2603, 0x00deffde, 0x204b8262, 0x24418207, 0x00430009, 0x26018233, 0x00240027, 0x821c001b, 0x82362071, + 0x002b2299, 0x4f801846, 0xffbb3608, 0xffccffcb, 0xffdbffd7, 0xffe3ffe4, 0xffc8ffe8, 0x00d4ffd4, 0x30c38215, 0x002d002e, 0x00450037, 0x00350036, + 0x001a0025, 0x22018211, 0x83c6ff07, 0x2063821f, 0x202b82e1, 0x208f82e8, 0x06f751d2, 0x2f00012a, 0x2c02f3ff, 0x6900cb02, 0x226b2f43, 0x82002a02, + 0xeaff2100, 0xea208982, 0xea200582, 0x82059b4a, 0x22028312, 0x82070008, 0x001022b3, 0x4d018217, 0x0e2005bb, 0x08a56a18, 0x3141fb20, 0x82fc2008, + 0xffcf2609, 0xffdcffdd, 0x214b84eb, 0x3d45ffee, 0x84e82005, 0xffed2753, 0xfff1ffed, 0x1f65fff0, 0x000f340b, 0x001d000e, 0x0029001c, 0x00350028, + 0x001a001e, 0x8218001b, 0x82162001, 0x05434867, 0xceffd522, 0xc7240182, 0xd7ffd1ff, 0xdd280182, 0xe6ffdeff, 0xeeffe5ff, 0xf6200182, 0x220a996d, + 0x82120012, 0x001a2439, 0x84230022, 0x002f244b, 0x82320038, 0x00362401, 0x4a4b0019, 0x2f82069d, 0x82faff21, 0x00ff2401, 0x827c003d, 0x69f11b25, + 0xfffc240f, 0x82f9fffc, 0x00352145, 0x2205296e, 0x83010000, 0x820383c5, 0xffeb22bf, 0x204b82d5, 0x240d8431, 0x00d0fe9b, 0x24ff8204, 0x0010000a, + 0xf90e1a0f, 0x00252608, 0x002e0026, 0x06e54146, 0x90182520, 0xfb240899, 0xf4fffbff, 0xef20f582, 0xea24fb82, 0x42002100, 0x11200382, 0xc1181d82, + 0xea220935, 0x0182e0ff, 0xdf82d820, 0xcfffcf24, 0x0182c8ff, 0x0f830783, 0xe1ffe123, 0x8b9318ff, 0x8211200b, 0x21958471, 0x47552202, 0x8275202a, + 0x824b20b9, 0x0000246e, 0x845d001f, 0xffe122c1, 0x230783a3, 0xde004a00, 0xb6220f84, 0x078322ff, 0x00520023, 0x210f84f7, 0xcd52fe95, 0x4be32005, + 0x6b4b054b, 0x221c8308, 0x836e0025, 0x08002306, 0x07841800, 0x75002722, 0x14220784, 0x07843c00, 0x19003321, 0x220dabe1, 0x8478fe7e, 0x65f82053, + 0xff2105e1, 0x280d82dc, 0x00460001, 0x02360200, 0x53b747cb, 0x7c225b82, 0x73847401, 0x47ffbb21, 0x3222051b, 0x0f849500, 0xb747cf20, 0x49312006, + 0xff2105bb, 0x733419cf, 0x07002107, 0x0d220182, 0xd9690e00, 0x18122006, 0x2008f3bf, 0x20098213, 0x243b8413, 0xffedffec, 0x2a0386ee, 0xffecffec, + 0xffd7ffc9, 0x82e6ffd8, 0x07af4701, 0xe8ff0024, 0x2b83b5ff, 0x4a204582, 0xe9223384, 0x0783b8ff, 0x00180023, 0x410f8447, 0x0c83074f, 0x22072f41, + 0x83710026, 0x1100230e, 0x07863200, 0x07843320, 0x85001021, 0x82092007, 0x0030244d, 0x84220023, 0xbf121989, 0xfff92611, 0x001c00f6, 0x28bf8239, + 0x00060005, 0x00030004, 0x82018202, 0xf1ff2942, 0xe2fff2ff, 0xd3ffe3ff, 0xc4200182, 0x83840b83, 0xceffef22, 0x870c6f63, 0xffdb220f, 0x2017848e, + 0x280582ec, 0xff360001, 0x023702a7, 0x9f8d1867, 0xaa002e85, 0x27000d00, 0x0e000900, 0x08000f00, 0x22008300, 0x833f0015, 0x22038206, 0x82010002, + 0x00022201, 0x20f98202, 0x06c54105, 0x0b001322, 0x08220982, 0x3d780600, 0x84042008, 0x8201201f, 0x84012005, 0x21438c3f, 0x0182f9ff, 0x3368f320, + 0xfff42206, 0x5bb618f3, 0x82f22008, 0x46f4200b, 0x052c0601, 0xddffeeff, 0xf7fffaff, 0xf8fff6ff, 0xf8200782, 0xf5202f82, 0x0871b118, 0xe7ffdf22, + 0xef220182, 0xa547ffff, 0x41e72006, 0x00200565, 0xa585a789, 0x20059d41, 0x20ab8204, 0x5df91804, 0x820b200c, 0x20af85d7, 0x08bd4605, 0x37832b85, + 0xe0ff0024, 0xb283a7ff, 0x00200023, 0x24018236, 0xffe4ff20, 0x260f84c9, 0x00e2004b, 0x8216001c, 0x00102601, 0x000d0010, 0x2047820c, 0xa554180f, + 0x33681808, 0x82fb2009, 0xfff922b1, 0x066555f4, 0xe9ffe924, 0xd718e2ff, 0x4c2608b1, 0x4500e500, 0x01822e00, 0xde181820, 0x02200a65, 0x6282a382, + 0xfe26cf82, 0x1100f9ff, 0x67821b00, 0x10821020, 0x3b820020, 0xdeffde24, 0xb184e2ff, 0x36190720, 0xf2260c17, 0xe3fff1ff, 0x45820900, 0x1d820e20, + 0xff222c82, 0x1d44fe7d, 0x22a78305, 0x82170020, 0x820f2001, 0x000a22a7, 0x1837820b, 0x8f1181f9, 0xfff624af, 0x18f0fff5, 0x2208057e, 0x8205007d, + 0x02002c52, 0x00bd0268, 0x004b0043, 0x185f0055, 0x216b8fab, 0x49185100, 0x0023070b, 0x8256001d, 0x820920bf, 0x000a22e9, 0x24018413, 0x002e000d, + 0x0b07455b, 0xffecff23, 0x230f93c4, 0xb6ffe7ff, 0xff291783, 0xffaaffe4, 0xfff7fff9, 0x200182f6, 0x222d82ee, 0x18f3ffed, 0x8207e793, 0x05df4c0d, + 0x3d001422, 0xec212b84, 0x200f8bff, 0x27138362, 0x0c000800, 0x08000b00, 0xe6203582, 0x10240f84, 0x05002f00, 0x09289182, 0xe2ff0500, 0xfaff8700, + 0xf7245b82, 0x1e00fbff, 0xf1224386, 0x6f820f00, 0xf4fff428, 0x0d00f8ff, 0x33841a00, 0x41220483, 0x6384c100, 0xeaffef22, 0xe7280182, 0xd1ffd2ff, + 0xe1ffd0ff, 0x1b861f84, 0x000f0023, 0x200f842b, 0x06934412, 0x1f860f87, 0xffc0ff23, 0x281f843e, 0x00160011, 0x00180017, 0x228b822e, 0x841f0030, + 0x231b8657, 0xd4fff2ff, 0xef220f84, 0x0784ccff, 0xc0220f87, 0x3182f900, 0xedff492d, 0xe2ffe3ff, 0x0000edff, 0x860081ff, 0x20db8267, 0x209382eb, + 0x822f83f3, 0x001622b3, 0x063b4b15, 0xff214384, 0x20278266, 0x20df821e, 0x211f8312, 0x0582e8ff, 0xfb820220, 0x6602f328, 0xa100bd02, 0x3d49b700, + 0x4dab636b, 0x00480225, 0x4a08000f, 0xfb2406b7, 0xf5fffbff, 0xef280182, 0xe9ffeeff, 0xfefff9ff, 0xfc240182, 0xf4ffedff, 0xfa210182, 0x9b0019ff, + 0x00112609, 0x00220011, 0x21018216, 0xb1460015, 0xffed2a05, 0xffebffea, 0xffe5ffe8, 0x220782ec, 0x18f2fff2, 0x2008f958, 0x57d41805, 0x00102208, + 0x28698215, 0x00030002, 0x00120004, 0x1801820d, 0x200bed84, 0x227b82fc, 0x84f7fff8, 0x84f0206b, 0x20758305, 0x200982f3, 0x05a34ef3, 0xde209782, + 0xf6205782, 0xfb222382, 0xb15bfcff, 0x00002208, 0x852a1918, 0x00b92108, 0x27820082, 0x0784dd20, 0xf0fffb24, 0x2982fdff, 0x8b83fc20, 0x08b7e218, + 0xefffef22, 0xda20a382, 0x22063d47, 0x8325000d, 0x1000252b, 0x1f002f00, 0x18224982, 0x01820f00, 0x01229783, 0x01420600, 0x201f8205, 0x220b8205, + 0x820a000a, 0x001222b5, 0x241f821a, 0x001b001e, 0x202d8219, 0x24078217, 0xfd150014, 0x202382ff, 0x22438400, 0x820e0011, 0x202b8335, 0x82e58205, + 0x227f8216, 0x4cf6fffb, 0xef28062d, 0x1d00ebff, 0x1e001500, 0x28200182, 0x2008c15a, 0x20318211, 0x215d820e, 0x33460003, 0x217d8305, 0x05830009, + 0x0b000c22, 0x28226d82, 0x01821400, 0x47834b83, 0x7382ee20, 0x65823720, 0xb3410720, 0x20138306, 0x28d182ec, 0xffe3ffe3, 0xffe2ffda, 0x240182e8, + 0xffeeffef, 0x200182f3, 0x827d82f8, 0xfeff239b, 0xff82f8ff, 0x8305e360, 0xffed2417, 0x82f0ffeb, 0x223b8301, 0x82fafffa, 0x0000245a, 0x82030004, + 0x000528e5, 0x0009000a, 0x18faff0e, 0x83086196, 0x820a20c7, 0x8215208d, 0x002122b7, 0x057b5c5f, 0x22084148, 0x83700025, 0xdbff233d, 0x078390ff, + 0x14232382, 0x18001300, 0x22090d58, 0x8205000b, 0x201a8401, 0xcd6b19ff, 0x00462207, 0x221084d4, 0x820d0000, 0x001a2401, 0x8224001a, 0x842f2001, + 0xffb92647, 0xffceff2a, 0x200182de, 0x0a774bed, 0x80180020, 0x0a280a7b, 0x61010a00, 0xc6004200, 0x00222f83, 0xd618ff00, 0xe82209ef, 0x7156e1ff, + 0xffef2206, 0xc1bf18ef, 0x05a74308, 0xbd026424, 0x77639d00, 0x3d0223af, 0x195c1400, 0xfffa2408, 0x82f2fffa, 0xffea2a01, 0xffe2ffe9, 0xfffdfff6, + 0x221182fe, 0x82f0ffe8, 0x55881a01, 0x0016280b, 0x002b0015, 0x821b001d, 0x001a2101, 0xff230082, 0x82f3fff4, 0xfff22201, 0x580186f1, 0xef210539, + 0xb3dc18ff, 0x00062609, 0x000d0005, 0x206d820c, 0x22358214, 0x8203000a, 0x00052201, 0x7fa11818, 0xffea2610, 0xffd5ffeb, 0x200182e1, 0x200382e0, + 0x065b43f1, 0xf7fff622, 0x05830182, 0xf5fff624, 0x4582f4ff, 0x0f001024, 0x01820b00, 0xfb410420, 0x22ad8205, 0x82ecfff6, 0x82e22001, 0xffd72435, + 0x829fffcf, 0x00002496, 0x84310010, 0x00112207, 0x2f711835, 0x00072210, 0x6f018408, 0x0b270529, 0x2f001700, 0x43ff0000, 0x04200567, 0xa3839f84, + 0x05200983, 0x19482782, 0x84072005, 0x00092809, 0x001c0022, 0x841dfe1b, 0x0014225b, 0x2039823d, 0x18cb8218, 0x2009c5a4, 0x0a8343e5, 0x19001e22, + 0xe6181b82, 0x0a200701, 0x83435982, 0x00082209, 0x20018209, 0x21c7820c, 0x8343000e, 0x82072013, 0x820520dd, 0x4b042031, 0x8b430805, 0xfff92425, + 0x82f8fff7, 0xfff72101, 0x22058b43, 0x50ebffd6, 0x0d220685, 0x8f820c00, 0x0a002a22, 0x15200182, 0x1720a582, 0x11229b82, 0x81821100, 0x06000b22, + 0x0f28dd82, 0x15001000, 0x1c001600, 0x242a1b82, 0x24003100, 0x19002500, 0x35821a00, 0xde820c20, 0x63430282, 0x1b4a2008, 0x2308fb5d, 0xfffdfffd, + 0x280b797c, 0xffeeffed, 0xffdeffe9, 0x200182c8, 0x223282de, 0x82010000, 0x7d058201, 0x0a850a8f, 0x84086b7d, 0x82048325, 0x70012597, 0xbb003e00, + 0x00230c83, 0x82e1ff00, 0xffc22401, 0x47e0ffc2, 0x062006c3, 0x2a083349, 0x00730067, 0x0089007d, 0x47ad009b, 0x0031af1b, 0x00170070, 0x00060048, + 0x00080009, 0x0012000a, 0x26038213, 0x0003000c, 0x1a0c0004, 0x220e2b2f, 0x8240001f, 0x051d5215, 0x114b0c20, 0x001d2108, 0xff250082, 0x00e7fff8, + 0x22358201, 0x82020003, 0x84102047, 0xfffd2213, 0x264784f5, 0xff030004, 0x53beffe0, 0xff2307eb, 0x419fffd0, 0xfd2606a5, 0xd2ffe9ff, 0x0182fcff, + 0x1182fb20, 0x9bffcd22, 0x0813361a, 0x3b882f82, 0x8f50fc20, 0x82062006, 0x2363869b, 0xe9fff5ff, 0x00236383, 0x8221000b, 0x820d206f, 0x000c24ab, + 0x82050007, 0x821220c7, 0x82fe2067, 0x00ff2403, 0x8456002b, 0xfffd2673, 0x00daffff, 0xb1e61863, 0x84022008, 0xff012409, 0x874300fb, 0x202b861f, + 0x820f82ff, 0xe4fe222b, 0x05d54bff, 0x8f87f920, 0x001f0023, 0x063b7f3d, 0xf6fffb22, 0xf5220182, 0x0f8a0e01, 0x1182f520, 0x2382f920, 0xc9823e20, + 0xf9fff924, 0x0782faff, 0xfdfffd22, 0x0021a184, 0xf1671800, 0x2b15830e, 0xb3ffcdff, 0xb6ffb4ff, 0xdcffd8ff, 0xe5200182, 0x00231383, 0x8224001c, + 0x00282701, 0x004d004b, 0xa34e004e, 0x07bb4e05, 0x12000a22, 0x0a200182, 0x10202784, 0x2208cf4e, 0x5d1d001d, 0xe32208e1, 0xab18e3ff, 0x17ac08ad, + 0x4df0ff21, 0xc3820551, 0xeeffee22, 0x82056b41, 0x86cd2013, 0x82b220a7, 0x85b520a9, 0xcc0122a7, 0x8b878a00, 0x9317872f, 0x20478413, 0x845982f6, + 0x9cfe215b, 0x3522e382, 0xdf823500, 0x19001b22, 0x13200182, 0xed221f84, 0x0182e7ff, 0xcdffe524, 0x0182cbff, 0x1300db22, 0x1c201b84, 0x2b832582, + 0x23842420, 0x1b84dc20, 0xe4ffcd22, 0xe7202982, 0x022a1182, 0xf3ff1600, 0xbd025402, 0x31662100, 0x1600254b, 0x37001200, 0x00245f82, 0x65002200, + 0x1924ad82, 0x10001a00, 0x08230182, 0x85000800, 0x00122200, 0x25088538, 0xf2fff3ff, 0x0182e5ff, 0xd9ffda22, 0xd922bb82, 0x0182bfff, 0x0000d924, + 0x1f853d02, 0x01200584, 0xe822bd84, 0x8218d0ff, 0xdc2008d1, 0xe620c182, 0x0cefa31a, 0xedff0024, 0x1f83c8ff, 0x0d220382, 0x71820e00, 0x27001b22, + 0x33230182, 0x4bff4500, 0x9f2205a5, 0x1b82df01, 0xff230282, 0x82f4fff3, 0xffe8223f, 0x240182d7, 0xffcaffc8, 0x30148295, 0x002b0000, 0x00450081, + 0x00340035, 0x00220023, 0x84018211, 0xffff2b16, 0x13ff0000, 0x2f0024fe, 0x01823d00, 0x7e004528, 0x83008400, 0x1c835700, 0xfe61ff23, 0x82078321, + 0x058b4503, 0x29001822, 0x38240182, 0x6b003600, 0xd5261f84, 0xbcff7eff, 0xd982ccff, 0xddffdc22, 0x2c08e158, 0xff7b0003, 0x02a60258, 0x003300db, + 0x9bd61843, 0x00ea2450, 0x82030002, 0x00022203, 0x0665411b, 0x18001821, 0x84088555, 0xffe92295, 0x220784bb, 0x838effda, 0x26002307, 0x0f847200, + 0x09851519, 0x19ffd821, 0x220f8515, 0x821d000f, 0x00282401, 0x1b320027, 0x200c73c8, 0x20c18222, 0x71151945, 0xffbb280c, 0xffdeffbd, 0x190100de, + 0x250d9b89, 0xf3ff4300, 0x0182ebff, 0x6b83f420, 0x01970023, 0x220784c5, 0x842c000e, 0x82112007, 0x21088255, 0x834defff, 0xfff12206, 0x229384d5, + 0x4793ffdc, 0xee240a4d, 0xdbffeeff, 0xcd240182, 0xbfffceff, 0x0a676418, 0x19ffed21, 0x2209dd6c, 0x186600ec, 0x220e4de0, 0x85cdff9b, 0x22638255, + 0x48b6fe33, 0x08820845, 0x012a3784, 0xf3ff1200, 0xcb021202, 0x7d469700, 0x00ca229a, 0x20018212, 0x05974213, 0x24061148, 0xfff7fff8, 0x2a0184f6, + 0xffecffed, 0xffebffed, 0x82e3ffdb, 0x82ea2001, 0xfff13409, 0x00fbfff2, 0x00640032, 0x00080005, 0xff050007, 0x4988ffc4, 0xfb820815, 0x01200294, + 0x37221586, 0x3782a600, 0x39820720, 0xb0ff0428, 0x060060ff, 0x01820e00, 0x16001524, 0x01821d00, 0x15002424, 0x01821400, 0x09001324, 0x03860a00, + 0x07820820, 0x41000821, 0xed2005c3, 0x83088d54, 0xffc82693, 0xffd2ffd3, 0x0a7f63df, 0xb782f720, 0xb182f920, 0xfbffd624, 0xcb82f9ff, 0x1c00fb23, + 0x05314400, 0xb7493f83, 0x49002005, 0x918706bf, 0x00200787, 0xd420d782, 0x1d223788, 0x97823a00, 0x97821620, 0x20002128, 0x2d002e00, 0x9b853b00, + 0x84fcff21, 0x820720bf, 0x0020229f, 0x20658241, 0x69c11bfa, 0xfffb2208, 0x1f6919fc, 0x07b9430a, 0x24002424, 0x7e823000, 0x31820020, 0x10001022, + 0x0c830582, 0x4d430320, 0x00042306, 0x93790006, 0x820e2005, 0x820e2057, 0x0006220b, 0x20018403, 0x20058202, 0x822a8306, 0x203783ff, 0x200b8409, + 0x244d8230, 0x00190024, 0x08eb6218, 0x7582fc20, 0x0382f920, 0xbb82fb20, 0xbf84fa20, 0xfafff923, 0x829b8200, 0x00072269, 0x20558207, 0x414f8404, + 0xef300541, 0xefffdeff, 0xecffebff, 0xe7ffe6ff, 0xe2ffe3ff, 0x22065166, 0x82f0fff7, 0x82f72001, 0xff002224, 0x214582ff, 0x0183fffe, 0xf6220983, + 0xe182f6ff, 0xf7fffb22, 0xfa220182, 0x1784fdff, 0xfc201b83, 0xf6202b84, 0xf6203784, 0xbb220b84, 0x0182ceff, 0xe0ffdf22, 0xef221382, 0x1382ffff, + 0x0200022e, 0x01000000, 0x00001600, 0xbd025402, 0x213fef69, 0x49825a00, 0x51824020, 0x26000024, 0x01823800, 0x1d003628, 0x1a001b00, 0x0f821400, + 0xdaff4c24, 0x0182c6ff, 0xd382c920, 0xe5ffe528, 0x4000ecff, 0x97848000, 0x6fffd02a, 0x35002300, 0x34003600, 0x192e2d82, 0x13001900, 0xb6ffdcff, + 0xe8ffedff, 0x2982e7ff, 0xccffcd26, 0xddffcbff, 0x0a5d5d18, 0xefff0024, 0x9b56cdff, 0x260c830c, 0xfffe0054, 0x82c2ffd7, 0xffc42201, 0x050f43df, + 0x00211683, 0x2669822a, 0x003d0040, 0x821e0021, 0x8417208f, 0x000e2213, 0x20078428, 0x20a58225, 0x207b8237, 0x20a5821d, 0x08a5501a, 0xe6ffe724, + 0x7582e4ff, 0xc9ffc922, 0x62227782, 0x7b84c500, 0x1effb522, 0xf3200784, 0x2105456c, 0x0d82aaff, 0x18000126, 0x51020000, 0x4e876719, 0x19000224, + 0x5d824c00, 0xb1820020, 0x30003028, 0xf8ff1d00, 0x0182f4ff, 0xebfff824, 0x0182dcff, 0x1ba0ea20, 0x16ebe619, 0xffe5ff2d, 0xffd4ffd3, 0x000700e5, + 0x820d000c, 0x00142205, 0x20018220, 0x20d78414, 0x871982e5, 0x820c201b, 0x0013221b, 0x20018221, 0x841b8313, 0x00452303, 0x2f8500cd, 0x2b431320, + 0xf1ff2f07, 0xe8ffe9ff, 0x1600f1ff, 0x13002b00, 0x4b821f00, 0xf3221b89, 0x1b82e7ff, 0x2a00f324, 0x3f845500, 0x1a001421, 0x280dfd7a, 0xff6effcf, + 0xffe0ffed, 0x2e0582e1, 0xfff0fff6, 0x00f6ffef, 0x0017000f, 0x820e0018, 0xffd622e7, 0x201b82ec, 0x201b84e0, 0x221d82f1, 0x820e00f6, 0x201b8319, + 0x324d82bb, 0xff0f0005, 0x0263022a, 0x008100cb, 0x010101c1, 0x4545012d, 0x00219ac3, 0xaa014001, 0x00830023, 0x08e14402, 0xb8820020, 0x0d820020, + 0x04000424, 0x01820600, 0x05880720, 0x07260987, 0x17000700, 0x01821500, 0x08001422, 0x17850182, 0x05000622, 0x09200182, 0x03203184, 0x01213b82, + 0x05991800, 0x05ad440b, 0xf2fff628, 0xf0fff1ff, 0x0182ecff, 0xeaffea26, 0xe7ffe6ff, 0xeb200982, 0xf8211382, 0x240183ff, 0xfffafffa, 0x240182fb, + 0x000f00fc, 0x203f821f, 0x08934502, 0x05208d83, 0x06208984, 0xfc202384, 0x0807701b, 0x2f83fe20, 0xfa230d82, 0x8200ffff, 0x89ff2000, 0xfff62400, + 0x82f7fff6, 0xfff12401, 0x82f4fff5, 0x18f7205f, 0x20084998, 0x24a98205, 0x000a000a, 0xb94d180c, 0xff5a220a, 0x202d84f9, 0x204f82f5, 0x204482fe, + 0x06c041fe, 0x01208383, 0x02200b82, 0x05207d82, 0x0422d782, 0x95860300, 0x2405e34f, 0x000e0006, 0x2001820d, 0x2003820c, 0x2153820b, 0x0f410009, + 0x20b18305, 0x2d521802, 0x84fb200e, 0x836785a7, 0x82f4209d, 0x84f22097, 0x00f922f9, 0x06594ed8, 0x394e0820, 0x05b75008, 0xa5840720, 0x0b000c22, + 0x08220782, 0x25820900, 0x3d460620, 0x82fc2008, 0x82f820ab, 0x5af92003, 0x2348060b, 0x46fb2005, 0x094708ff, 0x53f72005, 0x5f4108e3, 0x54fd2005, + 0xf82008fd, 0xfb207b82, 0x10245382, 0x43000f00, 0xfe239b82, 0x8300feff, 0x82012000, 0x4f661804, 0x4604200f, 0x082008b7, 0x04208386, 0x2983dd82, + 0x83ff0021, 0x823b8200, 0x82fe2057, 0x82fa2003, 0x20738355, 0x218783f8, 0x101953fe, 0x14430acd, 0x056b4205, 0x45840620, 0x05000622, 0x20082947, + 0x223b82fc, 0x821a00fd, 0x820720ff, 0x8509201b, 0x83ff208b, 0x4efb2057, 0x1f42082d, 0x20ab8406, 0x08e348fd, 0x0c000c24, 0x841a1900, 0x0f200c99, + 0x1e2ad182, 0x1f001e00, 0x21002000, 0x01821b00, 0x09821920, 0x1d220d83, 0x2b821d00, 0x16001a22, 0x13226982, 0x27821400, 0x07000f25, 0x82000800, + 0x22b78200, 0x82f1fff8, 0x19f42005, 0x22082911, 0x82ebffee, 0x00f0220f, 0x205d820c, 0x8525820a, 0x820520b5, 0x8204209f, 0xff032aa7, 0xffdaffce, + 0xffe3ffd9, 0x262782e6, 0xffefffeb, 0x82e0ffd7, 0x82cc2001, 0x1afb20f9, 0x2208db69, 0x82f9fffb, 0x18032061, 0x83082dad, 0xfff12263, 0x240182ee, + 0xffe8ffea, 0x190182ed, 0x260b9f4e, 0x000a0009, 0x8205004c, 0x000a2205, 0x2467820d, 0x00020001, 0x21798203, 0x19830009, 0x0d261383, 0x33001000, + 0x01822700, 0xd7821f20, 0xc9821520, 0x29001222, 0x2124e582, 0xfeff3600, 0xfa227582, 0x0182f7ff, 0xf2fff124, 0xcd82ecff, 0xea205f83, 0xe8209d82, + 0xe5216b82, 0x207183ff, 0xb34719e8, 0xffe92208, 0x201982e9, 0x19b782ec, 0x28092519, 0xfe030003, 0x002f00dd, 0x22018246, 0x84f4ff3e, 0x82fa204b, + 0x4ffc20cf, 0x072006a5, 0x0e288b82, 0x14000f00, 0x17001300, 0x1a240182, 0x1d001900, 0x1b207d82, 0x14228b82, 0xa5840c00, 0xef820720, 0xb5820420, + 0xbb180020, 0xc3410a83, 0xfff42205, 0x836d82f0, 0xffe32477, 0x18dcffe2, 0x220eaf5e, 0x82fdffd6, 0x01fa2469, 0x820b002e, 0x180c2049, 0x20080740, + 0x206b8208, 0x063f570e, 0x42000621, 0x5b4305ff, 0x82fb2007, 0xfff622f1, 0x22e982f5, 0x82edfff2, 0xfff32105, 0xb7850183, 0x6d82f920, 0xf8fff822, + 0x00208682, 0x05223582, 0x9382f9ff, 0x18000521, 0x440929aa, 0xfc260ba7, 0xf8fffcff, 0x0382f2ff, 0x2f84f920, 0x022b5f83, 0xf3ff1700, 0xcb024702, + 0x19008500, 0x23a93b10, 0x002a0055, 0x092d9718, 0x0d001322, 0x06220182, 0xd5830700, 0x59faff21, 0xef2208c9, 0x5141e9ff, 0x00072208, 0x0a997f04, + 0xf6fff526, 0xf2fff1ff, 0x08d53819, 0xe0ffec24, 0x0182e5ff, 0xeaffeb23, 0x375a18ff, 0x001c2507, 0xff38001d, 0x097d4519, 0xef4a5783, 0x82fa2005, + 0x82f92015, 0xfff72441, 0x82f7fff4, 0x82f62007, 0x82f42033, 0x82f52003, 0x82ee2003, 0xfff02253, 0x245d82f0, 0xffeeffee, 0x28a582ec, 0x00080009, + 0x000c0012, 0x2201820b, 0x82090008, 0x820820a5, 0x220d8311, 0x6f0e000c, 0x0b2208f7, 0x01820f00, 0x11821320, 0x03820e20, 0x0b821020, 0x11001022, + 0x39833782, 0x11450c20, 0x226d830c, 0x82ebffec, 0xffe626ad, 0x000000de, 0xdf521812, 0x20e3830a, 0x21618207, 0x4543000b, 0x820a2005, 0xd75a1907, + 0x0969440b, 0xf8fffa24, 0xa582edff, 0xf3fff222, 0x06204382, 0x0d243382, 0x13000d00, 0x17287182, 0x19001700, 0x1b001a00, 0x0b830182, 0x89001421, + 0x499a1801, 0x82182009, 0x001e2425, 0x82190018, 0x20b58533, 0x0a6b7409, 0x9218f420, 0xe22a08eb, 0xc4ffd8ff, 0xccffcdff, 0x3919d6ff, 0xff2009fb, + 0x22078545, 0x82030003, 0x00062279, 0x20018209, 0x24ab840e, 0x00040007, 0x08754505, 0xfafffa24, 0x0182f3ff, 0xeaffea28, 0xe9ffe2ff, 0x0f82fbff, + 0x7182f520, 0x5518ab83, 0xf8200ba3, 0xf0225b82, 0x0182f9ff, 0x18fff821, 0x410bef53, 0x0c26090f, 0xf0ff1000, 0x0182f2ff, 0x9b82f620, 0xf2205383, + 0xea205182, 0xf0205382, 0x3f821782, 0xff000027, 0x00b601e7, 0x225d8210, 0x82160012, 0x82102005, 0x2067830b, 0x035f1807, 0xfff3280a, 0xffeefff4, + 0x18e8ffed, 0x2008c375, 0x265182ee, 0x00f4fff1, 0x820f000e, 0x0000252f, 0x00350004, 0x24053b5f, 0x00430039, 0x69951851, 0x6200255f, 0x4c001a00, + 0x2208796d, 0x822a0038, 0x001c2801, 0x0012001d, 0x82090013, 0x83262003, 0x21f1821b, 0xeb5600dc, 0x820e8305, 0xfeff2103, 0x1f20ad82, 0xf1221b84, + 0xcf82d3ff, 0xc4ffc526, 0xb8ff9fff, 0x8205a963, 0x051f572f, 0x21000c22, 0xf5212384, 0x200f8bff, 0x226f8866, 0x821e002a, 0xff132401, 0x8462ffb1, + 0x00412213, 0x22678ec6, 0x77a8ffff, 0x3d260601, 0xedffb600, 0x0182e0ff, 0x1affd421, 0x22116b63, 0x840a0009, 0x001822b3, 0x83bd8218, 0x000d224c, + 0x21068329, 0x5a180600, 0x07200ab3, 0x2105e343, 0xe5820e00, 0x3e221c83, 0x7f821f00, 0x00240983, 0xa4ffe1ff, 0xf220ab84, 0x23051d69, 0xd8fff3ff, + 0x07850f86, 0x0b019826, 0x23000b00, 0x00231383, 0x56f4ff00, 0xff250535, 0x000d0093, 0x23138328, 0xf9fff8ff, 0xfa200382, 0xfb280582, 0xfafffaff, + 0x93ff0000, 0x83846782, 0x18e5ff21, 0x2a086d96, 0xff1b0002, 0x034502b2, 0x7451000a, 0x232168f5, 0x06515200, 0x1d22eb82, 0x01841c00, 0x83001a21, + 0x21b88201, 0xa782dbff, 0x00230782, 0x832e000f, 0xf1ff2106, 0xf0220182, 0x0182efff, 0x83058144, 0x821b2014, 0x001b222d, 0x20018619, 0x26278418, + 0xffe8ffe8, 0x86e6ffe7, 0x84e52001, 0x52ef2013, 0xff27055b, 0xffdeffda, 0x82e2ffdf, 0xffe82201, 0x0cc572e9, 0x09000822, 0x12218d82, 0x87531900, + 0x0563420b, 0xe5ffde22, 0xec204b82, 0x2010596d, 0x247b8414, 0xff000022, 0x266383b2, 0x31001000, 0x5f000100, 0x0f26091b, 0x64001400, 0x1b83c900, + 0xffecff23, 0x2a0784c6, 0xff72ffd1, 0xfff9fff7, 0x5efcfffa, 0xbe2408ef, 0xffff7d01, 0x21050144, 0xdf84f6ff, 0x2100ea24, 0xa5434300, 0x00082208, + 0x24558204, 0x00150001, 0x2243842b, 0x82ceffef, 0xfff3242d, 0x82ebfff3, 0xffe22257, 0x22d582e3, 0x82d0ffd9, 0xffc72401, 0x82d1ffc7, 0x05d74807, + 0x1f82e220, 0x2582eb20, 0x6982f320, 0x6800e923, 0x05836900, 0x24001924, 0x01823600, 0x48004624, 0x01823500, 0xc5822420, 0x6b821020, 0x45ff0831, + 0x13000300, 0x55020000, 0x5700bd02, 0x19006100, 0x82703b30, 0x8219207d, 0x00092295, 0x081f760f, 0x06000626, 0x9a004c00, 0x0720ff82, 0x08220982, + 0x19840d00, 0x20000a25, 0x52ff4000, 0xf82d0595, 0xf0fff2ff, 0xf6fff1ff, 0x2d001600, 0x2f008200, 0xc0ffeaff, 0xf7fff9ff, 0xfafff6ff, 0x4f002700, + 0xdd221384, 0x2f8499ff, 0xf8fff922, 0x24064742, 0xffdefff6, 0x202382ba, 0x450f84f1, 0xfb220561, 0xd968d2ff, 0x001e2206, 0x2843825a, 0xfff5fff6, + 0xffe3fffa, 0x234383c7, 0x32001000, 0xf2204388, 0xf0243582, 0x0900e700, 0x0f20ab82, 0x07860582, 0xffe0ff23, 0x20ab8290, 0x2411820a, 0x002c0006, + 0x83b38258, 0xff07220b, 0x224184bf, 0x821e0000, 0x002d26a3, 0x0018002b, 0x20018215, 0x229b8410, 0x82ebfff0, 0xffe82401, 0x82d3ffd5, 0x83e22001, + 0x836b8213, 0x8218201f, 0x822d2029, 0x841e2031, 0x410e2013, 0x002105ff, 0x22458213, 0x8412001e, 0x820f2013, 0x20088365, 0x204f8410, 0x202f8617, + 0x2057841d, 0x224f84e3, 0x84e9ffd5, 0x84f0205f, 0x63f12013, 0xee220645, 0x2d63e2ff, 0x00002305, 0xc555f2ff, 0x25878c06, 0x1c00ac01, 0x01822f00, + 0xe4ff1c24, 0x0182d1ff, 0x2982e420, 0x7b8b6420, 0x4389ff20, 0x1b820120, 0x6802f324, 0x3f19cb02, 0xb12484cb, 0x1b001a00, 0xf2820184, 0xffc8ff23, + 0x220182cb, 0x84d9ffce, 0xffeb24f1, 0x61f6ffeb, 0x06270607, 0x0a000600, 0x41018f00, 0xb925052d, 0x04002bff, 0x051d4c00, 0x16001a22, 0x12200182, + 0x0f28ed82, 0x0d000e00, 0x4d002700, 0x00244a82, 0xc6ffedff, 0x02202182, 0x28066f49, 0xfff9fff8, 0xfff1fff0, 0x245382ea, 0xffe4ffe4, 0x260182e0, + 0xffd5ffdb, 0x44d1ffd0, 0x0021056d, 0x2c01842e, 0x0023002f, 0x001c001d, 0x00140015, 0x8201820b, 0x2439824a, 0xfff2fff9, 0x240184fe, 0xfe75fffd, + 0x241482eb, 0x00370000, 0x066549a6, 0xf3fff324, 0xa982f5ff, 0xbb5bf920, 0xdbff2107, 0x22060b6a, 0x193b0014, 0x240a9110, 0x00100010, 0x24018221, + 0x002f0030, 0x22f3843f, 0x49fdff1b, 0x2122087b, 0xc9184400, 0x08220a61, 0x2d820800, 0x17001022, 0x1e200182, 0x1120df84, 0x7883dd82, 0x59420f20, + 0x00012406, 0x82020001, 0x00052203, 0x06cd4907, 0x09000922, 0x0020b185, 0x0f202387, 0x0f244382, 0x1f001200, 0x1b20d182, 0x18204982, 0x12200b82, + 0x200ca74a, 0x24b782f7, 0xffe0ffee, 0x208f82c0, 0x2061850e, 0x092b41ff, 0xe4ffea24, 0xe582ebff, 0xe182ef20, 0xfffffd22, 0x21073149, 0x9942f2ff, + 0xfffb2106, 0x20058b43, 0x203382f9, 0x210b82f7, 0x3b71fffe, 0x88a78205, 0x82f12023, 0xfff0293f, 0xffcfffed, 0xffdaffd9, 0x0b8f2b19, 0x2c059b41, + 0xff410002, 0x02280273, 0x005500db, 0x7e69527b, 0x0c004124, 0xbc822600, 0x17000022, 0x694a0184, 0x00172205, 0x21138316, 0x0182eaff, 0xebffe922, + 0xe9220584, 0x1383e7ff, 0x86190021, 0x82152027, 0x18162023, 0x200893cb, 0x242b84e9, 0xffe9ffea, 0x05155ee8, 0xfff6ff23, 0x086556f1, 0x05831d85, + 0xecffeb22, 0xee200182, 0xf1201b82, 0x0c5d6418, 0x05245a83, 0x0b000600, 0x0a8f5418, 0x83001521, 0x22978363, 0x84180016, 0x82f4208f, 0x84f52055, + 0x82f72003, 0xfff92205, 0x240b84f3, 0xfff7fff8, 0x250182fa, 0x00fffffd, 0x0084ff00, 0x03842d83, 0x03000424, 0x01820700, 0x0e000f22, 0x11224d82, + 0x01821300, 0xab784b82, 0x00202206, 0x28258260, 0x00040005, 0x00090008, 0x2b01820c, 0x00210011, 0xffe7ff43, 0xffefffee, 0x093ba218, 0x4601a322, + 0xfb205982, 0xf5206382, 0x1b837182, 0x2782e820, 0x66194220, 0x01240ec1, 0x47002300, 0x83824f82, 0xff000029, 0xffb9ffdc, 0x84f9fffd, 0x82f52033, + 0xfff222ef, 0x4ef982ed, 0xe422059f, 0x0182dfff, 0xfeffda22, 0xdb201d82, 0xe0220982, 0x0182e4ff, 0xb34fe920, 0x43f02008, 0xf920065d, 0xd4244182, + 0x02007a00, 0x0521a182, 0x83018300, 0x000722cb, 0x22cd820b, 0x8212000e, 0x00132401, 0x18160014, 0x200c7fb9, 0x20c98209, 0x0c494c19, 0x0f001322, + 0x0a343182, 0x60ff0600, 0x08000300, 0x6802a1ff, 0xb500cb02, 0x0901dd00, 0x547e7d42, 0x00258cc9, 0x000b0008, 0x08c74f21, 0x0f820720, 0x67440820, + 0xff082e08, 0xfffbfffe, 0x00fefffc, 0x001e000e, 0x20258202, 0x26038203, 0x00120010, 0x82110011, 0x0505441b, 0x1d000f22, 0x2208ed54, 0x8232003c, + 0x18252001, 0x240aed40, 0xfff7fff7, 0x069746ed, 0xe2ffd722, 0x26067544, 0xffeaffe0, 0x7cf4ffe9, 0x0c280a5d, 0x1a000d00, 0x22001900, 0x2a2a0182, + 0x2c002e00, 0x29002b00, 0x75840a00, 0xcfff042e, 0xd3ffd2ff, 0xc0ffd6ff, 0xcbffccff, 0x0cf7ce18, 0x21820320, 0x04000522, 0x0620b382, 0x0a41e618, + 0xf3421020, 0x001a2206, 0x20018206, 0x22b1820c, 0x840f000e, 0x0008221f, 0x20118208, 0xe55f180b, 0x82f32008, 0x82e62083, 0xffe4248b, 0x82deffe4, + 0x099f544b, 0x09f96318, 0x28073042, 0xff000000, 0xfffdfffc, 0x830182f9, 0xfff428d7, 0xfff1ffec, 0x82f5fff0, 0x82f42013, 0xffec2205, 0x220f82ef, + 0x82f4fff2, 0xff002428, 0x18e3fff6, 0x2008d395, 0x221d82f6, 0x848900f6, 0xfff1231f, 0xb18300f1, 0xdb420420, 0x00082206, 0x0ac55a09, 0x3e827f83, + 0x200b7d55, 0x05df4300, 0x1682fe20, 0x08a1df18, 0x6b201f84, 0xef204f82, 0xf0207f82, 0xa385b782, 0x89410320, 0x07ab4106, 0x59820620, 0xf7820820, + 0x6b840720, 0x02221583, 0x47830100, 0x63180020, 0x098308fd, 0xfd200d86, 0xff20c782, 0xa1200b82, 0x16222184, 0x01822100, 0x37191e20, 0x1f830a5b, + 0xeefffe28, 0xe2ffe1ff, 0x2384eeff, 0x19001122, 0x16200182, 0xfe213782, 0x829f82ff, 0xffe7228b, 0x2dd218e6, 0x00172408, 0x82150017, 0x00103691, + 0x001d0010, 0x002b0020, 0x0036002a, 0x001b0021, 0x0013001a, 0x22158212, 0x820c0010, 0x20f383fd, 0x20a58205, 0x20038209, 0x2203820a, 0x820e000e, + 0x4f1d201d, 0x0a2008f1, 0x6b462382, 0xfff22405, 0x823000e5, 0x000c2233, 0x87218218, 0xffef2417, 0x82dfffef, 0xffd62401, 0x82ceffd6, 0x05a94783, + 0xf6fff525, 0x55fff5ff, 0xf7220539, 0x0188f9ff, 0x7c18f820, 0x53540845, 0x82fa200b, 0x82f1202b, 0xffee223b, 0x22c182e0, 0x82ebffe6, 0x82f620e7, + 0x00ff2141, 0x24055742, 0x00050006, 0x20018208, 0x20cf8205, 0x20138205, 0x43038204, 0x0c20052d, 0x09229d82, 0x01820700, 0x85480320, 0xfff72208, + 0x209f82ee, 0x482f8209, 0xf0200759, 0x22089d64, 0x82e5ffec, 0xffe22861, 0xffc7ffc9, 0x829100c7, 0x84082047, 0x84112041, 0x530820d7, 0xfc200eeb, + 0x08396318, 0xb784fd20, 0x0f82fd20, 0xfafffa22, 0x18086f6b, 0x21084963, 0x1982ffff, 0xe6fffd23, 0x05fb4100, 0x0b000422, 0x05220984, 0x0d520f00, + 0x20c38308, 0x22878205, 0x82040004, 0x82002096, 0x82fe2031, 0x18fd2047, 0x20089963, 0x200984fb, 0x206782f8, 0x201782fe, 0x240d82ff, 0xfff7fffa, + 0x200b82f0, 0x5b4b82fb, 0x072007a7, 0x251bc97d, 0x8e001800, 0x5d84ab01, 0x55fe7222, 0xea200782, 0x5b08895b, 0x02211451, 0x2223826e, 0x5a140000, + 0xfd2107d9, 0x220f8457, 0x846c0179, 0x00142207, 0x204b843c, 0x05796fec, 0x0087ff2b, 0x00340001, 0x02380200, 0xa7fa18bd, 0x0092286a, 0xff51001c, + 0x82e3ffed, 0xffe72201, 0x2ddd18f2, 0xfff6220c, 0x240f82f7, 0x00f3fff5, 0x55c41825, 0x0002320c, 0x004c0026, 0x00080005, 0xff050009, 0xff9fffd0, + 0x263982fb, 0x00ebfff2, 0x88730039, 0xfe5e2617, 0xfffaffba, 0x2c0182f8, 0x002900fa, 0x00180050, 0x00130014, 0x2201820f, 0x420b000c, 0x0526066f, + 0xb1ff0200, 0x278862ff, 0xb2005924, 0x7582feff, 0xf0fff72f, 0xe6ffefff, 0xdcffe5ff, 0xb7ffdbff, 0x26008300, 0x00490018, 0x820e0010, 0x000b2201, + 0x2001820c, 0x8545820b, 0x000d2209, 0x839f8411, 0x4e002025, 0x2f22066f, 0x6f821b00, 0x0d001526, 0x0a000e00, 0x49180182, 0x042009c5, 0x0c201382, + 0x0a917518, 0x0b203583, 0x12209982, 0x2606794a, 0x0018001e, 0x83120019, 0x66118216, 0xff230821, 0x82eefff6, 0x84f52001, 0x0b2b4517, 0x4509b554, + 0xf520051b, 0xed202582, 0x2505f34b, 0xecffe9ff, 0xcb84ebff, 0x5b56f820, 0x4f002006, 0x0021079b, 0x08ab4300, 0xff211b82, 0x200182f3, 0x281b82ed, + 0xffdfffe7, 0x00c8ffc9, 0x2a018204, 0x02560200, 0x001f00bd, 0x18670043, 0x24748b5f, 0x0008005c, 0x2401820a, 0x0015000c, 0x24038216, 0x0020000f, + 0x23ff8341, 0xbeffeaff, 0xf2200784, 0xea200982, 0xf528e182, 0xf6fff5ff, 0xe0fff8ff, 0x2c06794e, 0x00420016, 0x00fa0100, 0xfff8ff00, 0x20ff82f7, + 0x222784f0, 0x84e5ffe3, 0x82ef2007, 0x83178211, 0x09002141, 0x10206382, 0x09206784, 0x2406cf41, 0x000e000d, 0x0823741d, 0xff211f82, 0x22298240, + 0x82050005, 0x1809202b, 0x20081ba1, 0x2009820d, 0x839b8209, 0x231e8217, 0xfffffeff, 0xfd200382, 0x08317718, 0xf344f420, 0xfff32206, 0x2a9982f4, + 0xfffbfff7, 0xffb400fb, 0x825bffc9, 0x0000242c, 0x82a50037, 0xff932c9f, 0xffddffe6, 0xffd9ffde, 0x82b6ffb9, 0x84ce2001, 0x02af221b, 0x2707830e, + 0xb5fe92ff, 0x51003600, 0x4e260182, 0x26002b00, 0x95822500, 0x280b1f6b, 0x00970165, 0x0022002c, 0x97cb1823, 0xfff3220c, 0x205582f2, 0x225784e5, + 0x82d3ffd4, 0xffdc2407, 0x19f3ffe7, 0x22082d21, 0x82fcfffd, 0x82002044, 0x000e22bd, 0x2001821a, 0x223f8223, 0x8220002c, 0x00192209, 0x20018213, + 0x8ba21808, 0xffed210a, 0x2005c167, 0x220782e1, 0x82f1fff1, 0xc56f18d1, 0x82092011, 0x8212202f, 0x00192437, 0x842dff1a, 0x4cf220b7, 0x002305d9, + 0x8202000e, 0x02ae28e3, 0x00bd0233, 0x4a31000f, 0xfb823319, 0x22070550, 0x843d0014, 0xffc9225d, 0x2007835c, 0x200f8500, 0x084154b4, 0xcd841020, + 0x0a000f24, 0x6d821200, 0x18001822, 0x28830582, 0xff233f86, 0x82bfffeb, 0xffec22bf, 0x220582ec, 0x82eafff3, 0xfff3240f, 0x82c7ffe4, 0x83ae2095, + 0x39002326, 0x4218aa00, 0xdf200e4d, 0xc8226f84, 0x078355ff, 0xa9221f82, 0x8360e6ff, 0x22108306, 0x822c001b, 0xff1a2401, 0x8369ffb5, 0x4400230e, + 0x2f84cb00, 0xdbffea2c, 0xeaffdaff, 0x26001600, 0x05822500, 0xff211482, 0x200482bd, 0x240d8201, 0x02440200, 0x604956ae, 0x3a002524, 0x8b84ad00, + 0xeeffec24, 0x2b57efff, 0x18f92008, 0x220a0f4c, 0x820b000c, 0x0017249b, 0x821f001e, 0x842720a7, 0x82162007, 0x82178311, 0x89a4183a, 0xffe92408, + 0x82e3ffe9, 0x82002010, 0x6fe91a53, 0x8217200b, 0x000e262b, 0x0007000e, 0x20698406, 0x245b82f8, 0xfff0fff0, 0x282f82e8, 0xffe3ffe2, 0xffddffdc, + 0x200182d8, 0x830782de, 0x8317830f, 0x44f7201f, 0x07220685, 0x3d820800, 0x45820e20, 0x1e001622, 0x1077e91a, 0x11000b22, 0x16240182, 0x19001700, + 0x1d220182, 0xa5821c00, 0x20001e22, 0x96e1051b, 0x0300002a, 0x81ff0d00, 0x0b032d02, 0x3120ad82, 0x264f3b69, 0x45003400, 0x8200d000, 0xe6ff2300, + 0x0784b3ff, 0xcdffef28, 0xdcffeaff, 0x736fddff, 0x00152206, 0x20018223, 0x841b8415, 0xe6ff2123, 0x2d2e0f82, 0x33002e00, 0x61005e00, 0x41006200, + 0x6d4cfeff, 0x22338205, 0x82d3ffd2, 0xffa2263f, 0xff9fff9e, 0x2ebb82bf, 0x01040003, 0x00110028, 0x000b0031, 0x820f000e, 0x001e2101, 0x4f850183, + 0x076d4c18, 0xa6003826, 0xf2fff6ff, 0xf1280182, 0xe2ffe3ff, 0x8301e2ff, 0x00236f83, 0x8427000d, 0x00552207, 0x207f84ff, 0x2a6782fd, 0xfffdfffa, + 0x00dcffed, 0x82060003, 0xff042301, 0xb545ffa0, 0xfff32605, 0x00080043, 0x2467820a, 0x0016000c, 0x20038217, 0x200d820f, 0x24718210, 0xfff8ff0a, + 0x220184f5, 0x82e9ffea, 0xfff128db, 0xffeffff7, 0x838bfef0, 0x18002353, 0x01822000, 0x4100232a, 0x44004500, 0x07002d00, 0x25753182, 0x05a34305, + 0x4c18e920, 0x00260cd1, 0x0d000400, 0x8f417fff, 0x51632008, 0xc1417f13, 0x43e52064, 0xf6200abd, 0x180c174e, 0x451147c5, 0x112a05b3, 0x1a001b00, + 0x24002200, 0x01821900, 0x0000102c, 0xe1ffe2ff, 0xe9ffc4ff, 0x0382eaff, 0x8300ec21, 0x00162200, 0x28018217, 0x002b0016, 0xff220021, 0x28128254, + 0x00150015, 0x0014002a, 0x06474910, 0x70180620, 0xfa250841, 0xf4fff5ff, 0x053363ff, 0xebffd624, 0x2142ebff, 0x82bc2064, 0x002726c3, 0x00320026, + 0x22058235, 0x82180027, 0x000c22cb, 0x18a9820d, 0x27094fa9, 0xffe8ffe7, 0xffe0ffdf, 0xee200783, 0x280a3374, 0x000e000e, 0xffb4ff1b, 0x06c75adb, + 0x06000526, 0xf0ff0900, 0x7d182b82, 0x0d260983, 0xf8000c00, 0x57822e00, 0x53841720, 0xfafffa22, 0x0a972319, 0x2d82ea20, 0x0d43a118, 0x1700172a, + 0x0d000300, 0x32027aff, 0x20060f44, 0x33f9467f, 0x424d9365, 0xec246481, 0x0c001800, 0x2105c34a, 0x0182e8ff, 0x2b00d024, 0x01471500, 0xedad1806, + 0xffdc220b, 0x240184f3, 0xfff1fff1, 0xbd4e18f0, 0x001d2208, 0x2001821b, 0x222f8218, 0x84110011, 0x46062047, 0xe826065b, 0xd0ffe9ff, 0x2d54f4ff, + 0x00082606, 0x00360019, 0x562b821c, 0xf1260957, 0xebffecff, 0x2782e7ff, 0xe4ffe323, 0x05e15cff, 0x1d001e22, 0x1c260182, 0x22002c00, 0x89422200, + 0x00a42464, 0x8217000f, 0x001d2101, 0x22058542, 0x8209000a, 0x821520cd, 0x0017267f, 0x00120013, 0x2001820e, 0x06f75c06, 0xffff0023, 0x07734eff, + 0xedfffc26, 0x0a00dbff, 0x20083551, 0x060551fc, 0xf5fff526, 0xe3fff3ff, 0x2008b15c, 0x200d8200, 0x82f482d9, 0xefff2102, 0xdd200182, 0x08a5c918, + 0x09e95918, 0x45820720, 0x4f820d20, 0xf6ffd922, 0x085fbe18, 0x08000822, 0x93423282, 0x00132607, 0x0055003d, 0x819342a3, 0x2523e142, 0x47002000, + 0xbd82d600, 0xcdff002c, 0x140067ff, 0x1e001d00, 0x05821a00, 0x0b821420, 0x0b037318, 0xf5fff62d, 0xebffeaff, 0xe4ffe3ff, 0x1affddff, 0x200d3750, + 0x213f83f0, 0x35821f00, 0x18001c27, 0x10001500, 0x050d5000, 0x67620720, 0xfff6280a, 0xffeefff6, 0x82e6ffef, 0xffdc2843, 0x00ebffdb, 0x47faff00, + 0xff422e43, 0x000e23a1, 0x00830028, 0x43001321, 0x1b22056b, 0x01821500, 0x0d000e23, 0x20038500, 0x450d8219, 0x082005d9, 0x4c061b41, 0xfd2d05d3, + 0xfbfffcff, 0xecfff9ff, 0x1100d8ff, 0x07795100, 0x1582fc20, 0x2605a953, 0xfff2fff4, 0x82f4fff3, 0x82f22003, 0xffed2409, 0x82e9ffed, 0xffdf222b, + 0x220582df, 0x4747ffef, 0x47432ef3, 0x07eb49a3, 0x4a71335e, 0xe022630d, 0xb95b1600, 0x09b94508, 0xdcffe424, 0x0182f2ff, 0xf3fff323, 0x20008300, + 0x1959182c, 0x83512008, 0x1700210e, 0x182c0182, 0x1a001900, 0x14001300, 0x0e000f00, 0x2208937f, 0x84fafff9, 0xffeb2739, 0xffe6ffec, 0x5918ffe1, + 0x1f201519, 0x2064a545, 0x7d5918a8, 0x180b2028, 0x18147d59, 0x200d0556, 0x06ff47ea, 0x09a36218, 0x06000628, 0xeeff0e00, 0x3619dcff, 0x09220a85, + 0x13480900, 0x032d2106, 0x20057f45, 0x937f4591, 0x42ac6d45, 0x49457da3, 0x81eb42a5, 0x65004d24, 0xeb42a100, 0x107d4893, 0x18001e22, 0x08a55818, + 0x220fbd4a, 0x19f6fff5, 0x4a08916b, 0xf22205bd, 0xbd4af2ff, 0x00ef2106, 0x1e200083, 0x200cbd4a, 0x0961180b, 0x83ff2009, 0xffd1244b, 0x83e8fff3, + 0x08002126, 0x37206582, 0x2208bd4a, 0x82f9fff8, 0xfff22245, 0x200182ec, 0x08275be6, 0xbd4a4f85, 0x14ff210a, 0x432e8948, 0x9c20771b, 0x200a014b, + 0x4be98219, 0x07221301, 0xe0830600, 0x014b0020, 0x67431811, 0xfdff2508, 0xf9fffcff, 0xf6200182, 0x2206014b, 0x86f2fff1, 0x4df32033, 0x002506a9, + 0xeeffefff, 0x2a014bff, 0x4861ff21, 0x3b432e85, 0x00042e77, 0x027aff05, 0x000b032d, 0x0027001b, 0x80bb503f, 0x6218c720, 0x0922380f, 0x01820c00, + 0x18000d26, 0x19001a00, 0x00264582, 0xddff0000, 0xcb4276ff, 0x828320a6, 0x000024ae, 0x84420016, 0x07e55207, 0xbd003f22, 0xff310f83, 0xffeafff0, + 0xffe9ffeb, 0xffd2ffd4, 0xffe1ffd3, 0x059742ee, 0x00eaff25, 0x820d004a, 0x001026eb, 0x00220013, 0x28eb8224, 0xffbfff18, 0xfe00007f, 0xa87f42de, + 0x7aff0d24, 0xbb503502, 0xe53b5306, 0x1400f822, 0x08196218, 0x28075361, 0xffe6ffe6, 0xffddffde, 0x240182e7, 0x000000f0, 0x2401821e, 0x0018003c, + 0x20018216, 0x240f8214, 0xffeaff00, 0x240184e9, 0xffdfffd5, 0x200982e0, 0xbd6218ea, 0x000a230a, 0xb7680012, 0x00282805, 0x001b0022, 0x1868ff1a, + 0x2210c76c, 0x8210000c, 0x18142001, 0x250f015c, 0xf0ffecff, 0x0b4bf0ff, 0x4ba72064, 0x2024060b, 0x19002000, 0x11200182, 0x2a0add4d, 0xfff2fff3, + 0x004b00e5, 0x84250026, 0xfffb24ed, 0x82f6fffb, 0x002122af, 0x08817108, 0xf3fff424, 0x0182e6ff, 0x6318da20, 0xe7200c21, 0x08c5a418, 0x09000824, + 0xbf183000, 0x162008b7, 0x11203d82, 0x0c210d82, 0x79cd1800, 0x2163180b, 0x8205200b, 0x00042119, 0x26077f42, 0x0053003b, 0x489d0085, 0x1124a03d, + 0x0b001700, 0x50476618, 0xedfff222, 0x1d476618, 0x451fff21, 0xe5422e49, 0x4da02093, 0x6e20328d, 0x0c378618, 0x0f0b6718, 0xf4ffef22, 0x220a6943, + 0x18070006, 0x20080b67, 0x06f95cfb, 0x09000924, 0x8d455fff, 0x9329432e, 0x05000022, 0x7a22db82, 0xab452f02, 0x00692206, 0x47f41879, 0x64815699, + 0x1400f024, 0x89430a00, 0xffe82406, 0x82d1ffe8, 0x0010220f, 0x20118210, 0x0873440b, 0xf6fff624, 0x0182eeff, 0xe6ffe626, 0xdfffe0ff, 0x0841e718, + 0x4818f720, 0x0522088f, 0x01820b00, 0x14243783, 0xe7ffd1ff, 0x8306b94b, 0x82142057, 0x001c274f, 0x0024001b, 0x07820023, 0x0059ff25, 0x82130000, + 0x00272201, 0x20198226, 0x280d8213, 0xffedff00, 0xffdaffec, 0x240782d9, 0xff0c00ed, 0xc7bd18f5, 0x00162408, 0x842c0016, 0xfdbe188f, 0x18fb200f, + 0x2208ef58, 0x45ebffeb, 0xa22468fb, 0x15000e00, 0x1a200182, 0x192c9582, 0x09001a00, 0x07000500, 0x0c000800, 0x0f28fb82, 0x11000e00, 0x12001700, + 0xb556db82, 0x5508190a, 0xffed2408, 0x18e9ffee, 0x200a3d94, 0x281982f8, 0xfff7fffb, 0xffe5ffe6, 0x200582d5, 0x20c782ec, 0xe96f19f2, 0x2557820a, + 0x21001d01, 0x48181000, 0xf02408d7, 0xe0ffdfff, 0x3d4deb82, 0x00112105, 0x07b96618, 0x71820e20, 0x03822620, 0x82001221, 0xfcff2100, 0x0cb96618, + 0xf2ffed22, 0x12b96618, 0x2a070343, 0x004d0013, 0x009d0065, 0x46c900ad, 0xa56aa031, 0xcb974e2b, 0x4ec79f43, 0x0744cbe7, 0x000b28cf, 0x0053003b, + 0x189b008b, 0x20bbd156, 0xa7534a01, 0x4ac7d143, 0xad43a787, 0xadbb4ac7, 0x10005a24, 0x71183200, 0xff212d8b, 0x2e9d4dac, 0x53c74943, 0x2d220537, + 0x01824400, 0x72184220, 0xb1650883, 0xffe32a13, 0xffc3ffde, 0xffbfffc0, 0x2e8d4d40, 0x24c70543, 0x000d0002, 0x08a766ed, 0x862b154a, 0x64554d2b, + 0x2b62e767, 0x01000000, 0xb1002100, 0xe8016802, 0x23d3a018, 0x00b20025, 0x820e0009, 0xff082c01, 0xffe7fff1, 0x00f0ffe8, 0x823b019e, 0xff003045, + 0x009dfe8a, 0x00180010, 0xff0f0019, 0x82f2fff8, 0xfff72801, 0xffd2ffe5, 0x83e5ffd3, 0x1b002b1f, 0x2e002d00, 0x0800b100, 0x01820d00, 0x17220583, + 0x2f661700, 0x6c002005, 0x00200553, 0x17205782, 0x0d204182, 0x0e222384, 0x61820700, 0xd6ffd526, 0xf3ffe6ff, 0xe7240382, 0xd5ffd5ff, 0x01224982, + 0xb4828e00, 0x0502da22, 0x0125afa3, 0x0015000b, 0x2035823d, 0x889b8700, 0x829b86bf, 0xffe522a7, 0x22a582e4, 0x18e4ffd3, 0x86081162, 0x833784c7, + 0x01672204, 0x20278237, 0x20ef82e8, 0x209b86f2, 0x22e78208, 0x822b002b, 0x841f8205, 0x82d520a7, 0x22f78305, 0x18f8fff3, 0x2008934c, 0x24af8476, + 0x02b10000, 0x255f4148, 0x00b60125, 0x822d001c, 0x821c2001, 0x87002039, 0x074f4197, 0x22085f41, 0x83c5fe62, 0x7600231f, 0x87416301, 0x05974108, + 0x9788b120, 0x1a000d22, 0x2a200182, 0xff21a383, 0x82bd82f9, 0xf3ff2197, 0xe920c182, 0x2105d359, 0x7d72ebff, 0xfff32206, 0x850182e9, 0x41f3201d, + 0x2024305f, 0x1f000a00, 0x2006db41, 0x08f7411b, 0x82071b42, 0xecff234e, 0xcb84c2ff, 0xcb881386, 0x1a83e785, 0xb3820020, 0xa7832c20, 0x2008f741, + 0x20a782f2, 0x22a782e8, 0x8414018a, 0xfe99223b, 0x085341c9, 0xe724cb87, 0xd4ffd5ff, 0x2126af84, 0x48026c00, 0x581aa401, 0xd7423c47, 0x006e2211, + 0x0e5b41dc, 0x9b410820, 0xff922224, 0x22074324, 0x07006c22, 0xe942d182, 0x00182205, 0x820b8218, 0x066342ca, 0x22058b41, 0x41f9fff2, 0x1a2406cb, + 0x1a000c00, 0xff230b87, 0x82f3fff8, 0x42f82001, 0x3782088f, 0x23071b41, 0x0d000800, 0x08240182, 0xd5ffe6ff, 0xe7200182, 0xe7202782, 0xd7410b85, + 0x4f37200c, 0xef413aa7, 0x37674320, 0x42076b41, 0x68222c1f, 0x9743cf00, 0xff982234, 0x1a4f4231, 0x00005c26, 0x97010c02, 0x27ff7f18, 0x00d30125, + 0x8212000b, 0xff0a2401, 0x82c7ffda, 0xcb521801, 0x00262309, 0x0082004c, 0xffccff27, 0xfffaff66, 0x20db82f7, 0x240e82fa, 0x00100000, 0x22078430, + 0x82390026, 0x00372601, 0x001b001e, 0x2211821a, 0x8211000a, 0x000a2401, 0x82360024, 0x00342301, 0x5918001c, 0x002308d3, 0x842d000f, 0x82fa204b, + 0xfff72245, 0x05dd5afb, 0x1b281182, 0xdcff5000, 0xcaffcbff, 0xe4246582, 0xe7ffe7ff, 0x01211382, 0x25c3ae00, 0x14009600, 0x01821b00, 0x38001d22, + 0x26209384, 0xa7834582, 0x73842f20, 0xbb82fb20, 0xbb227383, 0x0f8377ff, 0x55219782, 0x09f177ff, 0xf382c620, 0x0341da20, 0x18002006, 0x20086b5a, + 0x22c18234, 0x82240035, 0x84b9209b, 0x00312833, 0x00050091, 0x5e080009, 0xff230587, 0x84d3fff1, 0x83ed205b, 0xe4ff21b3, 0xca20bd82, 0xdc26c382, + 0xeffff6ff, 0xc3b3efff, 0x00220125, 0x849b0033, 0x82092063, 0x23428205, 0xd1fff0ff, 0x97416384, 0xffc82405, 0x82e5ffe3, 0xffec2401, 0x82eefff5, + 0x00f52401, 0x821a0015, 0x001e22f3, 0x26f38237, 0xff25003a, 0x83b4ffdb, 0x8703842f, 0x004022ab, 0x24438481, 0x00b0ffe6, 0x41d38423, 0x14200797, + 0xee20ab82, 0xf621ad82, 0x84c38eff, 0xb3f2202f, 0x790021c3, 0x3a82c384, 0xab20ab82, 0x85069341, 0x0039229f, 0x206f8426, 0x22bd82ee, 0x82e6ffeb, + 0x79e220c7, 0x015d056d, 0xfff02206, 0x243682d0, 0x00060000, 0x05497408, 0x0f220d82, 0x05822c00, 0x13000022, 0x1924e782, 0x34001c00, 0x3620bf82, + 0x0a28c582, 0x12001100, 0xecff0a00, 0x24087b41, 0xffcaffcb, 0x08f57edd, 0x6fffd028, 0xf8fffaff, 0x5f45f7ff, 0x443b200c, 0x00223a37, 0x3b480001, + 0x00412812, 0xfff7ff81, 0x82f1fff0, 0x000d2269, 0x24018216, 0x000e000d, 0x24018217, 0x0033000e, 0x207d8265, 0x20e98200, 0x2acf82b2, 0x00100010, + 0xfff3ff09, 0x82e9ffea, 0x82f22005, 0xffe92605, 0xffaffff2, 0x3a6b455f, 0xfd82e720, 0xe782f120, 0x5182f320, 0x7b82fa20, 0x25002422, 0x74830582, + 0x3a001322, 0x00250683, 0x0019000f, 0x26058218, 0x000c0007, 0x8207000d, 0xffdb227d, 0x06fb71db, 0x19820e20, 0xad821820, 0x461d7345, 0x3b41079b, + 0x419e203f, 0x0d240617, 0xa1005100, 0x24349746, 0x007fffc0, 0x22cb8209, 0x820a000f, 0x82e920ef, 0xfff321cb, 0x22074741, 0x849bffce, 0x001a23ef, + 0xb577ff4d, 0x82f72005, 0x001724ef, 0x416c0017, 0x9f460b17, 0x1a474138, 0xffedff23, 0x827b83c6, 0x0a8f415b, 0x01281182, 0xb9002c00, 0x97013c02, + 0x83eb4518, 0x10208b82, 0x2a06b345, 0x000f000a, 0x000e0010, 0x820a0008, 0x000c2401, 0x820d000b, 0x000f2201, 0x8501860c, 0x00082409, 0x82060009, + 0x00052201, 0x21018201, 0x01830002, 0x05820320, 0x13820420, 0x89000721, 0x82062001, 0x850d8347, 0x84082007, 0x00042233, 0x20338204, 0x2425821b, + 0xff0d0006, 0x210182fd, 0xd57dfffc, 0xfff82209, 0x240182f6, 0xfff4fff5, 0x200382f3, 0x200382f0, 0x220b84f4, 0x18f5fff2, 0x2208e774, 0x82fcfff9, + 0x82ff2035, 0x6efe2000, 0xfc2006ef, 0x08c96518, 0xf7fff824, 0x0e19f8ff, 0xfc220803, 0x4d84f1ff, 0xfafffb22, 0xfe256984, 0x59002d00, 0x0bb34600, + 0xfbfff622, 0xc3450e82, 0x001b2205, 0x2273844f, 0x82f0ffef, 0x82f92045, 0xf5511847, 0x0003220b, 0x26dd8403, 0x000a0009, 0x820c000d, 0x000a2205, + 0x20138209, 0x83cf8203, 0x820420d3, 0x8204200b, 0x27a718d5, 0x82ff2011, 0xb1af197b, 0x21538409, 0x35841000, 0x200d2b41, 0x205f8207, 0x18418209, + 0x82093d55, 0x20b7849a, 0xbd4018fa, 0xfff52108, 0xf6220183, 0x0184fcff, 0x1d84fd20, 0x0b82fd20, 0x09938d19, 0x01000222, 0x05215b84, 0x20018300, + 0x20a78210, 0x2053840b, 0x200f8204, 0x20508201, 0x116b4700, 0x180c8f42, 0x237fe945, 0x001000fd, 0x24099747, 0xfffbfff6, 0x069747bb, 0x64002122, + 0x08da5618, 0x3742fe20, 0xfffa2206, 0x200182f7, 0x242582f4, 0xfffafffb, 0x220182f9, 0x82f8fff8, 0x20098311, 0x201182f9, 0x181384f6, 0x20072b57, + 0x088f7ffc, 0x1b82fd20, 0x0382fb20, 0xe9ffed2a, 0xe5ffeaff, 0xf4fff2ff, 0xf5200182, 0xf6220586, 0x4584f6ff, 0x4200fb21, 0x002706a7, 0x00050002, + 0x82090004, 0x84062005, 0x05874603, 0x07000824, 0x03820600, 0x13840820, 0x05840720, 0x41180420, 0x032108b7, 0x20018300, 0x22158405, 0x82160014, + 0x001a2201, 0xe993180e, 0x000a2108, 0x11220185, 0x09821200, 0x48000021, 0xf8851d47, 0xbf82fe20, 0xe983cb83, 0xa382f720, 0xf784f220, 0x83fffb21, + 0xffff2313, 0x008300fe, 0x2005ff41, 0x83858406, 0x82072005, 0x820820a1, 0x82052003, 0x052d7e03, 0xb1820720, 0x896d1520, 0xfffd2108, 0x41050b41, + 0xf5220547, 0x0184f3ff, 0x5384f020, 0x4582f920, 0x08000722, 0x06200182, 0x08311119, 0x09d15718, 0x09779219, 0x8782fa20, 0xf8fff822, 0xfb209182, + 0x0873c018, 0x20058141, 0x08bd62eb, 0x20053f43, 0x244d8405, 0x000c000a, 0x22f78213, 0x47ddff0c, 0x19285e83, 0x18003200, 0x26002700, 0x08220582, + 0xdb4f0f00, 0x005c220c, 0x247d82b8, 0xffbbff00, 0x0c674731, 0xc982f120, 0xdaffe82a, 0xe8ffd9ff, 0xceffe7ff, 0xf2211b8c, 0x13f74fff, 0x2615ef4c, + 0xffdbffea, 0x4deaffdc, 0xfd82130b, 0x7b833a20, 0x8310db4c, 0x2d834733, 0x47072f50, 0x4b503e83, 0x060b411a, 0x3b50af84, 0x51092007, 0x67500627, + 0x87ff2026, 0x41378643, 0x53840753, 0x41260483, 0xf2ffc100, 0x8350e9ff, 0x00072c0a, 0x00240017, 0x00160025, 0x4d2f0018, 0xe8233407, 0x41ffd1ff, + 0xe9220583, 0x4182f9ff, 0x2407bb50, 0xff0e0017, 0x4b7742aa, 0x82110121, 0x002722a3, 0x22b18227, 0x48320019, 0xe72234bf, 0xfd82ceff, 0xd9ffd924, + 0x0f51e8ff, 0xffa42210, 0x24ad8249, 0x00450000, 0x485b8ece, 0x162245bf, 0x01822500, 0x7b4f1620, 0x0abf4813, 0x9982e820, 0x4f06bb4f, 0x77420c6f, + 0x21734f3f, 0x5106bf43, 0x33862c7f, 0x0020a982, 0x23347b4f, 0x002f0018, 0x50061741, 0xf2200877, 0x22065f52, 0x18ac0056, 0x26085373, 0x0017000e, + 0x410e0018, 0xea22083b, 0x0182dbff, 0xe9ffea24, 0x834fd0ff, 0x07374b1a, 0x734c3520, 0x126d4c37, 0xb5005a22, 0x26228982, 0x05822700, 0x0e000822, + 0x09200182, 0xda208582, 0xe9208d82, 0x2528a382, 0x17002600, 0xf2fff7ff, 0xf8200182, 0xd922c782, 0x0582daff, 0x4bffa622, 0x2848dd44, 0x00230015, + 0x00150024, 0x20058216, 0x22058223, 0x820d0008, 0x4c082001, 0x01212e55, 0x411b4100, 0x07414e20, 0x005a2208, 0x0e3143b4, 0x2225e552, 0x414cffa6, + 0x33410823, 0x08434106, 0x41ffe921, 0x63410553, 0x55814305, 0xddffea28, 0xeaffdcff, 0x0582ebff, 0x0582dd20, 0xf3fff825, 0x4100f2ff, 0xbb18091b, + 0x29422ae3, 0x00782112, 0x20051f63, 0xb9811914, 0x00c32108, 0xff230082, 0x42f3fea6, 0xe322380d, 0x4282a8ff, 0x4e000024, 0x4b84ea00, 0x0f86e220, + 0x4625474e, 0xd7ab07c3, 0x53008e24, 0x6b84f900, 0xa2ffe122, 0x9b530783, 0x4f3f8738, 0x54220b1b, 0x7346fd00, 0xff8f2234, 0x20938420, 0x0c5f46ed, + 0x2121d7ab, 0x06974100, 0x01590023, 0x34bd420d, 0x11ff8922, 0xeb228384, 0x0782c3ff, 0x03826c20, 0x1d000024, 0x13845800, 0x45fff221, 0x83550ac7, + 0x861e202a, 0x45b2203f, 0xd7aa0cfb, 0xe7450120, 0x001f2221, 0x22a3845e, 0x8307ffad, 0x20002307, 0x0f845d00, 0x22335b57, 0x83e00071, 0x1400233b, + 0x43843900, 0x2207874f, 0x4503ffac, 0x87421a97, 0x453f2007, 0xff733797, 0x42002009, 0xc3460d9f, 0x38b7421a, 0x870f1741, 0xffd72263, 0x84f383ac, + 0x51132003, 0x162606eb, 0x24002500, 0x8b4a1700, 0xf2ff2107, 0x2206cb46, 0x42a80054, 0xac2334e7, 0x460058ff, 0xf2270bfb, 0xe9fff9ff, 0x4affdcff, + 0xff2006bb, 0x220bff42, 0x415300f2, 0x5975414f, 0x15735310, 0xcf00682c, 0x0b000800, 0x0d000a00, 0x07820c00, 0x03840b20, 0x13820820, 0x06000527, + 0x03000200, 0x21008200, 0x0182f5ff, 0x5b50eb20, 0xfff3240a, 0x82f2fff3, 0x86002018, 0x00092235, 0x49751804, 0x82012008, 0x251a8235, 0xfcfffbff, + 0x6318f6ff, 0xfa2208a9, 0xf182f8ff, 0x9ffff824, 0x33453eff, 0x20548237, 0x4d5b8203, 0x082205a3, 0xa9840900, 0x81820b20, 0x85840d20, 0x1c000d24, + 0x01821800, 0xcb821420, 0x0422bf83, 0xbf850500, 0xffe6ff25, 0x840000cd, 0x51f7208f, 0xfb22083d, 0x8f82faff, 0xd382f920, 0xdb82f620, 0x1b501783, + 0xfffe2405, 0x82fffffe, 0x45028369, 0x7f47258b, 0x00f22205, 0x55b34157, 0x82000121, 0x25075c01, 0x3eff9f22, 0xf820d382, 0x0a435d19, 0xf018fc20, + 0x01200aa9, 0x08dd5218, 0x0400022a, 0x0c000900, 0x0d000b00, 0xff21e683, 0x200184f3, 0x08d34ff2, 0x6718f720, 0xfd220859, 0x2183fdff, 0xd4183982, + 0x0d200913, 0x0b203782, 0x08616618, 0x08000a26, 0xcf006700, 0x200e7745, 0x28ab5a6c, 0xde820020, 0x99880220, 0x97820320, 0x0a000b22, 0x07235d82, + 0x4f000700, 0x05200593, 0x1783ad82, 0x05000422, 0x192c8b82, 0x00003400, 0xfefffdff, 0xfcfffbff, 0xf920a782, 0x0cf3a719, 0x09594219, 0xd382f520, + 0xb142f420, 0xfff62106, 0x0f33bb18, 0xbb540020, 0x2057820d, 0x06474902, 0x5300f224, 0xc9417300, 0x43ee825a, 0x13831399, 0x22127948, 0x82660034, + 0x0000249b, 0x843e0014, 0x00132707, 0x00070038, 0xad430009, 0x000c2105, 0x4f180183, 0xad430743, 0xfff6210f, 0x09996118, 0xf0fff222, 0xf2240182, + 0xf3fff1ff, 0xf5260182, 0xf8fff4ff, 0xa418f5ff, 0xfe200835, 0x24060951, 0xffdaff00, 0x229d438c, 0x8b84e420, 0x04000022, 0x8b830182, 0x0b000b22, + 0xe7518982, 0x05b54107, 0x0a000422, 0x0c1f9d18, 0x7d18f620, 0xee21088f, 0x15fd4f00, 0xb5ffe722, 0x19225784, 0x07844b00, 0x03000024, 0x43840200, + 0xf3820820, 0x83051542, 0x820d2067, 0x000d2b6b, 0x001d000d, 0x00190018, 0x1d830014, 0x05000722, 0x0c67e818, 0x0343fe20, 0x82f92006, 0x82f620e3, + 0x84f520e9, 0x82f320f7, 0x18f22005, 0x5007db98, 0x255d1049, 0x00a92611, 0x002b000f, 0x5b52180d, 0x82042008, 0x189a8265, 0x5508634e, 0xf820058b, + 0xf6205f82, 0xf4215982, 0x054944ff, 0x4318f820, 0x534208f1, 0x26416082, 0x99ffcd22, 0x0282d882, 0x82ffff21, 0x52fa20dd, 0xf720089d, 0xf522db82, + 0xdd82f2ff, 0xf1fff224, 0x0382f0ff, 0x09ddc018, 0xf7fff524, 0x5c18eaff, 0x022408d5, 0x05000300, 0x08250182, 0x0c000800, 0x071f4400, 0x0a260983, + 0x19000700, 0x5c823200, 0x14000022, 0x22067d61, 0x44730027, 0xff210d31, 0x190f8208, 0x20158193, 0x20578404, 0x068d5307, 0x5d820520, 0x5f820a20, + 0x09000922, 0x56841784, 0x00f2ff22, 0x22297144, 0x542b000f, 0x0d200655, 0x2006db41, 0x0875570a, 0xf1460720, 0x07e55308, 0x28052155, 0xffe7ffec, + 0xffe3ffe8, 0x830182f3, 0xfff423a5, 0xef41fff5, 0xfff92305, 0x8018fff8, 0x29820c43, 0x440cc742, 0xbb200e69, 0x0522b082, 0x71820400, 0x42000921, + 0x0d2105d3, 0x20cf8300, 0x21138208, 0x01830003, 0x47000221, 0xf7200b41, 0xf5225f82, 0x7782f6ff, 0xd8ffed22, 0x6f0c234b, 0xfb44cc5f, 0x00022412, + 0x82040002, 0x052d5903, 0x05000522, 0x58060142, 0x08210503, 0x20018500, 0x91851806, 0x82062008, 0x0004262d, 0x00000003, 0x82018201, 0x20058406, + 0x0a6d5802, 0x65414987, 0x2a198505, 0x000c0006, 0x000e000d, 0x580a0010, 0x6b850849, 0x05000222, 0x83444182, 0x00012205, 0x0daf4202, 0x99637d82, + 0xffff2a23, 0xfffdfffe, 0xfff4ffff, 0x440182f8, 0xfb22052f, 0x2619faff, 0x1d830857, 0x2382fe20, 0xff200383, 0x081f6b19, 0x0d850983, 0x1382fd20, + 0x56ffff21, 0xfb2005c1, 0x200ead57, 0x224782f8, 0x82f6fff1, 0xfffa2201, 0xe15818ff, 0x82fd2008, 0x19fb206f, 0x2008c3ae, 0x207b82fd, 0x200d82fe, + 0x202b82f9, 0x207784fa, 0x204582f9, 0x201582f6, 0x22e745fd, 0x2014a745, 0x84008400, 0x82fb20ab, 0x20cd834b, 0xf59e18fc, 0x0002240a, 0x82040003, + 0x00062603, 0x00080007, 0x20038409, 0xb1bb1809, 0x0500220f, 0x06155700, 0xdd18b783, 0xfa2208dd, 0x0186f7ff, 0x091f0219, 0x22051158, 0x82060004, + 0x82062033, 0x4a052035, 0x8484055d, 0x4d0ec547, 0x2f41299d, 0x41ff2005, 0xbd83058f, 0xfc20c983, 0x0713ac18, 0x0c51da18, 0xa9840120, 0x7d820320, + 0x03860420, 0xdf820520, 0xe1820520, 0x0f820720, 0x4b05335a, 0xfe200725, 0xfc28c982, 0xf0fff8ff, 0xecfff1ff, 0xff200b82, 0x13850082, 0x04225b91, + 0x3f820900, 0x4b820620, 0x61840420, 0xd1840120, 0x2821714a, 0x00210001, 0x01480262, 0x57234cad, 0x002f0125, 0x820a0005, 0x0006249d, 0x425d002f, + 0xd72234f5, 0x0946adff, 0x5e052006, 0xfb2a085b, 0xf7fff6ff, 0xd5fffaff, 0x7942a8ff, 0x681b2022, 0x27381057, 0xfbff4c00, 0xf8fff9ff, 0x0e00fbff, + 0x16001500, 0x18006200, 0x27002800, 0x2b650582, 0x0015223b, 0x24018223, 0x00030015, 0x26b38204, 0xffe8ff03, 0x76d8ffd9, 0x8d41066b, 0xe7ff2120, + 0x2513ab58, 0xdcffecff, 0x0582ddff, 0xb182fd20, 0x9c82fb20, 0x39000128, 0x2f020000, 0x9f18a002, 0x88244eed, 0x34002000, 0x1f260182, 0xf5fff9ff, + 0x0582f4ff, 0xe3ffef22, 0xef240182, 0x11000b00, 0x10220182, 0x9f820900, 0x06000826, 0xbfffd5ff, 0xc2320182, 0xe2ffdeff, 0xe9ffe1ff, 0x1e000f00, + 0xe7fff1ff, 0x0582e6ff, 0xfafffb22, 0xf9243982, 0xf2fff3ff, 0xf7240182, 0x1e001800, 0x22240182, 0x41003f00, 0x2b200182, 0x08115218, 0x20053f44, + 0x206782fc, 0x24db82eb, 0xfff6fff4, 0x220182f0, 0x571700f6, 0x0023050d, 0x820d0008, 0x00002101, 0x2207d754, 0x820f0009, 0x82092001, 0xffed3a2f, + 0x00f4ffed, 0x005e003e, 0x005a005d, 0x002b0031, 0xff21002c, 0xffdbffe8, 0x220182dc, 0x82efffed, 0x00f32501, 0x00a60053, 0x22056743, 0x84e4ff03, + 0xffd82419, 0x82b3ffb5, 0x82cd2001, 0x00112657, 0x00130012, 0x246b8423, 0xffd6ff19, 0x180182c1, 0x2609c177, 0x001b0010, 0x8210001c, 0xfff422c9, + 0x220582f5, 0x82cfffe2, 0x43e22001, 0x0020057f, 0x2205ff64, 0x6589020d, 0xbb2028c3, 0x3d21c582, 0x23008200, 0x0effafff, 0x2306f761, 0xfff7ff10, + 0x6a050d56, 0x1b2011c7, 0x4156fd82, 0x82f02005, 0xffe726d7, 0x005000f1, 0x853e82a1, 0x01852202, 0x10dd438e, 0xcf6a0e20, 0xffd42106, 0x23059767, + 0xffd5ffe7, 0x0f6b0b82, 0x077b4208, 0xff203882, 0xc3b03d83, 0x6a5c0021, 0x3c2308eb, 0x87ffb400, 0x56082097, 0x002705e9, 0x002d001c, 0x841b002e, + 0x20cf85e3, 0x88df87e4, 0xff9522ef, 0x841f8329, 0x01722203, 0x532b8455, 0xf224050f, 0xf3fff8ff, 0xf8260182, 0x2c001900, 0x05822b00, 0x03820d20, + 0x5f6a0b86, 0x842b8608, 0x647c2037, 0x874108ff, 0xed00212a, 0x22105741, 0x84d7006c, 0x6aec204f, 0xc4220647, 0x9f414bff, 0x41002022, 0x00201357, + 0x23069741, 0xabfe8fff, 0x00275383, 0x0018000d, 0x860e0017, 0xff072173, 0x82069341, 0x85e720e7, 0x21c3b30b, 0x6b417b01, 0xffb02224, 0x23d78b60, + 0xf1005100, 0x6b0eb341, 0x6b410917, 0xfff22a0f, 0xfff2fff8, 0xffe8ffe9, 0x214383f3, 0xab417100, 0xfe7b2206, 0x11b34172, 0x5d26c384, 0x0b020000, + 0x0f430802, 0x00512428, 0x841f000a, 0x002d21c7, 0x2215d76b, 0x821bffb4, 0x00002459, 0x84a70038, 0xfff12273, 0x208f82e7, 0x065342f1, 0x3b86f720, + 0xdf6b1a83, 0x018b2219, 0x223b8416, 0x84c5ffed, 0xffac2207, 0x1a7b5401, 0xc3822020, 0x94014922, 0x0021c3a7, 0x105346b1, 0x27019422, 0x240af755, + 0xfea6ff00, 0x229b46f1, 0x20154b42, 0x06974247, 0x63ffcc22, 0x4b425383, 0x00292626, 0x013f02a2, 0x5b3b52d5, 0x00ba0025, 0x411e000b, 0x1c20067f, + 0x4408c344, 0xac84070f, 0x00010025, 0x19030002, 0x22086540, 0x82170013, 0x001a2201, 0x22c5820f, 0x820c000d, 0x46082001, 0x07200649, 0x20088749, + 0x25388203, 0x00320019, 0x2219ff00, 0xf22a0d9d, 0xf0fff1ff, 0xeeffefff, 0x0182ecff, 0xd5ffea2c, 0xdcffddff, 0xf2ffe2ff, 0x0182f5ff, 0x4dfff721, + 0xff20052d, 0x00203d82, 0xe6222982, 0x0582e7ff, 0x5745f820, 0x20a38605, 0x231b83a2, 0x2b001900, 0x19220182, 0x83820800, 0x08000e22, 0x22087355, + 0x82070004, 0x000c2211, 0x2405860b, 0x000a000c, 0x209d8211, 0x2051840a, 0x248d82fd, 0xfffbfffa, 0x200182fa, 0x4b7418f9, 0xfff4220a, 0x061b43f4, + 0x2d821420, 0x09ffc618, 0x45820d20, 0x09af0e19, 0x43840420, 0xf3fff224, 0x0382e5ff, 0x9982f020, 0xc982ee20, 0xedffec24, 0x5782ebff, 0x8b42f820, + 0x82f82008, 0x82f3208d, 0x098370c9, 0x2007c741, 0x5239524f, 0x7b438520, 0x82f32010, 0xfff122d9, 0x200182e7, 0x20b184f1, 0x20f182ff, 0x228f82fc, + 0x82f5fff8, 0xfff124e7, 0x82dcffe3, 0x82d62001, 0xffe72407, 0x82e9ffe6, 0xffee2201, 0x24d182ee, 0xfff9fff2, 0x223182f9, 0x82330019, 0x00092c05, + 0x00130009, 0x00180011, 0x821b0017, 0x000c24db, 0x820b000c, 0x820a2001, 0x4d09206f, 0x0322060d, 0xa94b0400, 0x0633420a, 0x22082746, 0x822d001b, + 0x21af4101, 0x67821420, 0x12226983, 0x01821000, 0x6d820e20, 0x0e000d22, 0xf922b984, 0x9782faff, 0xeffff422, 0xeb220182, 0xa982eaff, 0xe6ffe822, + 0x00251983, 0x0015001a, 0x20378216, 0x0cdb4112, 0xfcfffb22, 0xeb82c383, 0x8218f620, 0xf32208dd, 0x3d82f2ff, 0x6771fd20, 0x0f9f410a, 0x1900022c, + 0x4f020000, 0x0700ee01, 0xa1412b00, 0x2239822d, 0x84a9018d, 0xfe7222ab, 0x203b8258, 0x45dd6dba, 0x83c80121, 0x20db8253, 0x235b841d, 0x001cfef6, + 0x2245ed6d, 0x82210002, 0x024824eb, 0x18270046, 0x5b54a598, 0xfd41096d, 0x451c2005, 0x2d5d1055, 0x141d5d06, 0xd3ffe422, 0xe5200182, 0x21097545, + 0xf5434301, 0x831c2006, 0x5d002013, 0x2f850f61, 0xe161e420, 0x06b15b10, 0x2111f15b, 0x47840d01, 0x67002323, 0x05cf53ff, 0x0800e624, 0x01820e00, + 0x03820720, 0x17001822, 0x64057742, 0x1d83104d, 0x08000d22, 0xd6283382, 0xe6ffd5ff, 0x5b002e00, 0xb222a384, 0xe14808fe, 0xd2ff2307, 0x1383a5ff, + 0x2208b15d, 0x8899ffde, 0xfff9211b, 0x2005194a, 0x098547f2, 0xffecff23, 0x127d47c7, 0x2c000128, 0x3c020000, 0x7418de01, 0x892068ed, 0x1420f582, + 0x1222f182, 0x9a182500, 0xfb260815, 0xf6fffcff, 0xb582f7ff, 0xedfff324, 0x0d82fdff, 0xfdfffc24, 0x79552600, 0xcdff2505, 0xfaff65ff, 0xf7221d82, + 0xc183fbff, 0x00100023, 0x2207842f, 0x82050003, 0x00042401, 0x8209000b, 0x00072501, 0x00030007, 0x20053345, 0x316a18fd, 0xfff5290a, 0xffe2ffe7, + 0xffddffe1, 0x09bb7918, 0x20053753, 0x914818e7, 0x000c2408, 0x8219000d, 0xfff92225, 0x208382f8, 0x208382db, 0x206184ed, 0x24a78213, 0x00110025, + 0x20018214, 0x24b78217, 0x00180018, 0x8301821a, 0x00122407, 0x820c000a, 0x00112801, 0x002a0022, 0x8232002b, 0x1816201f, 0x20083994, 0x83358214, + 0x8204208d, 0x82002093, 0x000f2200, 0x2205822d, 0x82fbff00, 0x71f820c7, 0xef860e1f, 0xf3207b82, 0xf0249182, 0xeffff0ff, 0x05830382, 0x85fff121, + 0xfff42601, 0xfff5fff3, 0x201d82e9, 0x824583f5, 0x00032253, 0x22018206, 0x82080009, 0x001722fd, 0x2601821d, 0x00210022, 0x821c001b, 0x001b22a1, + 0x2c018207, 0xffdcff0d, 0xffd6ffd7, 0xffceffd1, 0x200782d5, 0x205582de, 0x224182f4, 0x56f7fff6, 0x05220811, 0x4f820400, 0x24710342, 0x001700a2, + 0x20018214, 0x0a034211, 0xeeffed32, 0xe2ffdbff, 0xf9fff8ff, 0x1a00f1ff, 0x0c000d00, 0x00209b82, 0xf422b182, 0xfd82e6ff, 0xcf18f320, 0xf024089b, + 0xddffedff, 0xe1222982, 0x536ce8ff, 0xfffd220a, 0x212f83fd, 0xd3820300, 0x0924ff83, 0x0b000900, 0x05220d82, 0x83410500, 0x6d102006, 0x4b420523, + 0xbbff2307, 0x318476ff, 0x56001c22, 0x08853a19, 0x5b82db20, 0x1584ee20, 0x0a243783, 0x0e000a00, 0x4206ed4d, 0x17220903, 0x03421b00, 0x002f2618, + 0x0029002a, 0x20b18224, 0x20c782f9, 0x28a182f2, 0xffe5ffe4, 0xffdeffdf, 0x200182e3, 0x18c782e9, 0x85094570, 0x000b24af, 0x4817000c, 0x0f21063f, + 0x22018500, 0x82100011, 0x20058501, 0x207f820c, 0x1f8f1808, 0xffdc2208, 0x229d84b9, 0x82920030, 0x820820d7, 0x830520e3, 0xf1ff210f, 0x5206af72, + 0xdd260743, 0xd7ffd6ff, 0x8782cfff, 0xe9ffea26, 0xebffeaff, 0xed22d782, 0x0342f0ff, 0x0021271a, 0x014802e1, 0xa61800a4, 0x00251677, 0x01890021, + 0x226b849e, 0x4ab5fe92, 0xe5181a97, 0xd5580c9f, 0x56ed2018, 0x2e200a3b, 0xf7767398, 0x01932211, 0x21838426, 0xd74afe76, 0x05b77905, 0x22151954, + 0x843a0013, 0xfff2222b, 0x057d45d5, 0x01220d82, 0x9f790b01, 0x69e79606, 0x974e1a47, 0xffe52405, 0x79d7ffeb, 0x7f20287b, 0x8e20e784, 0x5d227382, + 0xe7970502, 0xff237389, 0x79d2fff1, 0xef790757, 0x01812218, 0x20d78484, 0x79d782e7, 0xcf4119d7, 0x17d54629, 0xdbfe6d22, 0xcf416782, 0x000f2205, + 0x1be3772b, 0x410c2f60, 0xfd5918cf, 0x07c3410e, 0x4a016e22, 0x590ed753, 0x1321093d, 0x05ef4100, 0x68098771, 0xcf410ec7, 0x00102222, 0x23037a2e, + 0x0b4eeb82, 0x07eb7919, 0x2405cf41, 0x010000a4, 0x1acf4173, 0x83003521, 0x23508273, 0xc3ffebff, 0x00210682, 0x11ab4aff, 0x11462e20, 0x411d8205, + 0x477a07cf, 0x0747491b, 0x1f001c23, 0x42dd6200, 0x420e8941, 0x00211d01, 0x10a14100, 0x4904ff21, 0x99431067, 0x1d1d4407, 0x89410020, 0x00e32406, + 0x822b001a, 0x001a2401, 0x8719000c, 0xf8ff210b, 0x5106154c, 0xf9410ba9, 0xfff2240d, 0x82f2fff9, 0x51152025, 0xf1431441, 0x22ed4e06, 0x16000228, + 0x53020000, 0x4f410502, 0x92002145, 0x6d08dd52, 0xd3241161, 0xe5ffd2ff, 0x200ac97d, 0x20bb82e5, 0x22a3820e, 0x820f0009, 0x821920fb, 0x01002405, + 0x820a0007, 0x001a2289, 0x2001822e, 0x08154f1b, 0x7c0b554d, 0x097e23a9, 0xecfe2138, 0x4224fd42, 0x9f4219a1, 0x127f5b4e, 0x212c5f42, 0x0d7d1f01, + 0x05e14424, 0x2512df42, 0x0800e300, 0xa74b0d00, 0x4b182008, 0xd52720a7, 0xe6ffd5ff, 0x7cfff4ff, 0xff2106d1, 0x18895403, 0x4b0e1d53, 0x374d1897, + 0x7e1c2005, 0x45414e37, 0x051b5313, 0x9300f021, 0x2b41181b, 0x00132213, 0x2401821f, 0xffedff13, 0x4b0182e1, 0x87470529, 0x158b5205, 0x560f9543, + 0xf94c0a4b, 0x0951411a, 0xe2ffee22, 0xee220182, 0x0582efff, 0xeeffe322, 0x430eff54, 0x377e07c7, 0x12bd433a, 0x2007c543, 0x20008200, 0x06256015, + 0x2107ad43, 0x5b570008, 0xffe52205, 0x260182d2, 0xfff2ffe6, 0x41ecffe5, 0x9d82050b, 0xe0ffe022, 0x13830582, 0x43055545, 0x538212ed, 0xad430283, + 0x0613410b, 0x4376ff21, 0xc9430689, 0xffee221f, 0x240182e3, 0x001200ee, 0x2001821d, 0x240f4812, 0x48020023, 0x3c4f4202, 0x220e3546, 0x82e2ffec, + 0x00ec26f5, 0x001f0014, 0x8205821e, 0x13421884, 0x13694318, 0x20066341, 0x221b93ff, 0x820e0009, 0x098f4701, 0x19000d22, 0x1e22eb84, 0x07821100, + 0x6f821e20, 0x39461220, 0x210d4f30, 0x01000022, 0x42081746, 0xa7243b4f, 0x1f000a00, 0x2022a782, 0x05822000, 0x25052f43, 0x000d0014, 0xe145001c, + 0xa742182b, 0xffe72b17, 0xfff7fff1, 0xfff2fff3, 0xf55000f8, 0x84002005, 0x00122600, 0x001e001d, 0x07274311, 0x03591384, 0xbb421806, 0xd7421824, + 0x00022b2b, 0x021f0021, 0x00f10148, 0x456c0013, 0x27454c2a, 0x45950121, 0x294a0cbf, 0x2e012118, 0x6144e584, 0x06454307, 0x2a08256b, 0xffd6ffe6, + 0xffe6ffd5, 0x55cafeed, 0xaf8408c1, 0xff000022, 0x22075748, 0x82e8fff3, 0x48f22001, 0x0020057b, 0x4b49d7c1, 0x4991201d, 0xd14c1837, 0x24d7860c, + 0x002b000f, 0x2203821a, 0x491a002a, 0xfe21151b, 0x08f15db7, 0x6f52fb85, 0x00142305, 0x00820039, 0xfff2ff29, 0xffe7ffd4, 0x84d5ffd5, 0x026c28d7, + 0x00a40148, 0x54550045, 0x1f682d73, 0x47179117, 0xf9220ab5, 0x0182f4ff, 0x2600f824, 0xbd654c00, 0x00fa2606, 0x000e000a, 0x20ff820f, 0x20078208, + 0x22b7820e, 0x8494004a, 0xffcf22a5, 0x08eb4c6c, 0x65003322, 0xe0221384, 0xb35fa3ff, 0xfff72208, 0x210182f1, 0xd552fff7, 0xffba2607, 0x00080074, + 0x2001820c, 0xcb471807, 0x21198219, 0x135cfff9, 0x00082205, 0x2401820d, 0x004b0007, 0x07374397, 0x67c3ff21, 0x06200af5, 0x0b204982, 0x78828f82, + 0xf0221f82, 0x0582f0ff, 0x2506a751, 0x18000e00, 0x05821900, 0xbf821b82, 0x06831d20, 0x820f0021, 0x82172013, 0x22138b05, 0x8210000a, 0x000a2211, + 0x22998206, 0x19060008, 0x220cc995, 0x820b0007, 0x18072061, 0x201aff44, 0x847d825c, 0x200782cf, 0x822b840d, 0xa794185b, 0x210b8208, 0x0f6a0300, + 0x00bb2406, 0x6a630053, 0xdf418211, 0x00152207, 0x08af532a, 0x15000e26, 0x0d001600, 0x0522ab82, 0x05820400, 0x4c002623, 0x050358ff, 0xdf41f820, + 0x1ba56408, 0xf9820820, 0x08000b26, 0xccffe7ff, 0x06243f82, 0x04000600, 0x5708af61, 0xfc240567, 0xbfffdfff, 0x2234fb41, 0x8256002b, 0xfffb22a7, + 0x220582fa, 0x846f00db, 0x820620a3, 0x002a2205, 0x204f8255, 0x2079820d, 0x20ab8208, 0x226f82f4, 0x42d0fff8, 0xf622161b, 0x0182edff, 0xef88f520, + 0x21059f5d, 0x0082000d, 0xfff9ff25, 0x82f4fff5, 0x06c14c5d, 0x201c6f6c, 0x222982f9, 0x82f9fff5, 0x00002636, 0x001c0010, 0x2205821b, 0x82050003, + 0x820320f3, 0xffe0235f, 0x5349ffe0, 0x43374205, 0x820aab42, 0x20df83a3, 0x200784f9, 0x207f86f4, 0x06574202, 0x205d1744, 0x08f556b3, 0x8c004622, + 0x22341342, 0x43b4ffda, 0x0526065b, 0xf2fff7ff, 0x0582f1ff, 0x23075759, 0x006cffb6, 0x31220083, 0x0f449300, 0xffce2208, 0x2512839b, 0x5e001f00, + 0x1582faff, 0xfbfff826, 0x0f000900, 0x4e200182, 0x22087d4d, 0x4179003c, 0xb52610fb, 0x0e006c00, 0xf3431900, 0x38d74107, 0x10000922, 0x09200182, + 0x240a0f44, 0xffe8ffe8, 0x239383f1, 0xe3fff6ff, 0xf1220784, 0x1388e9ff, 0xe2fff722, 0xf6201384, 0xf020d982, 0xfb202182, 0x0021df83, 0x0b6b4470, + 0x7614bf41, 0x2d200953, 0x452fd545, 0x852212ad, 0x85840b01, 0xb5fe9222, 0x3d456d82, 0x071d4c0d, 0xd4fe9c22, 0x43218143, 0x41451541, 0x00072108, + 0x8a10ed44, 0x1f2d451b, 0x09634d18, 0xe224f3b1, 0x1e000b00, 0xc382e383, 0x21051546, 0x07850008, 0x2005cd45, 0x8206831f, 0x820c201b, 0x18082027, + 0x20248d4d, 0x84cb8608, 0x23048238, 0x00370167, 0x0d28df83, 0xf9ff0700, 0xf4fff3ff, 0xd54b0582, 0x015e2207, 0x240d8219, 0xfff5fff4, 0xa94d18f9, + 0x06014424, 0x7883ff21, 0xf3b00a3b, 0x480eb54b, 0xbf830f9f, 0x08000b26, 0xf6fe7bff, 0x0024bd82, 0x4a016e00, 0x4b101543, 0x642107a1, 0x057f6501, + 0x45fff421, 0xe76c07d1, 0x0ae9441d, 0x8308f542, 0x19f32013, 0x20084736, 0x207383f9, 0x07fd42ff, 0x820c4545, 0x07cf75f3, 0xad76f3b1, 0x078d4615, + 0x8f827482, 0x7b84e120, 0x42062548, 0x1b8d08ef, 0x82fff421, 0xf54b18eb, 0x24bb8524, 0x007d00f9, 0x265784fa, 0xffc9fe99, 0x82f3fffa, 0x00fa263f, + 0x000c0006, 0x2205820d, 0x8414018a, 0xfea2241b, 0x820700e7, 0x000b2213, 0x20778207, 0x262582f2, 0xffe7fff8, 0x49d4ffd5, 0x37200aa7, 0x50317a18, + 0x47094d57, 0x532207bd, 0x8d45a500, 0xffae2234, 0x2103445a, 0x22128149, 0x42dc006e, 0x9220105b, 0x45152b44, 0x35473879, 0x11974237, 0x51180220, + 0x8b4108cb, 0x164d7950, 0x440a9f42, 0xff203783, 0x4206db41, 0x30200eb3, 0x440bdf42, 0x1f8513fb, 0x00850020, 0x420f354e, 0x4e2207db, 0xbf449b00, + 0xffb22234, 0x16ef4265, 0x1b432920, 0x00682208, 0x103745cf, 0x31ff9822, 0x29054343, 0x4e000100, 0x1b02e4ff, 0xa1189701, 0x01253fef, 0x000500a7, + 0x20018209, 0x0f4f1806, 0xffe6220c, 0x23fa84eb, 0x002b000f, 0x0bf74e18, 0x14001b22, 0xdd2a2f88, 0xcdffccff, 0xe5ffceff, 0x0182e8ff, 0x1200ed24, + 0x33832500, 0x65221382, 0x9f5efbff, 0x00232e12, 0x00330034, 0x001b0032, 0xff180018, 0x20e982e4, 0x22778208, 0x18230005, 0x870e3f4f, 0xffdd2247, + 0x280182ca, 0xffe4ffcc, 0xffe6ffe7, 0x222f88ed, 0x82310020, 0x002f2401, 0x82170019, 0x83112001, 0x03481873, 0x7fff2111, 0x0e261784, 0xdfff2800, + 0x0182cfff, 0xfb5bd120, 0x41158205, 0x0021483b, 0x82f382c2, 0x20d182cb, 0x22db8232, 0x82220034, 0x0000215d, 0x2011575d, 0x26178477, 0xff29000e, + 0x84e8ffee, 0xffce22cd, 0x200182cc, 0x064b41de, 0x2600052a, 0x39003a00, 0x1e003700, 0x1a234b82, 0x59001500, 0xda2207e7, 0x0182c7ff, 0xe3ffc924, + 0x0182e5ff, 0x2f85ec20, 0x82e4ff21, 0x00172877, 0x001a0016, 0x8231002f, 0x82212001, 0x18dc2057, 0x221cb74f, 0x82e9ffef, 0xffe72401, 0x82cfffd1, + 0xffe02801, 0xfff7fffb, 0x18fafff8, 0x2313bb50, 0xd7fff2ff, 0x0da35018, 0x85edff21, 0x2861822f, 0x004e0001, 0x011b0200, 0x407742b2, 0x34003024, + 0xcf859a00, 0x82060021, 0x95451959, 0xdeff2308, 0x0182ccff, 0x20075742, 0x08eb60ee, 0x1b001422, 0x085b0b19, 0x26003922, 0x1808cb5c, 0x220b5f4f, + 0x42daffc6, 0x1224087b, 0x18001900, 0x23099b41, 0xdaffeeff, 0x50183383, 0xf323142f, 0x4200d9ff, 0x9b600e57, 0xffec2208, 0x240182e7, 0xffcdffe4, + 0x240182ca, 0xffedffdd, 0x184384db, 0x880ea74f, 0xffee2e2f, 0xffeaffe9, 0xffd1ffe6, 0xffcfffd0, 0x41a785df, 0x00254b3b, 0x0034006a, 0x2357859a, + 0x2200d7ff, 0x34200d82, 0x21075743, 0xcf5f1300, 0xffec2208, 0x775018e5, 0x0859770b, 0x18001521, 0x22094751, 0x88260039, 0xffed222f, 0x220182e8, + 0x82ceffe5, 0xffcc22e9, 0x225f84dd, 0x41d1fff0, 0x0920082f, 0x00240984, 0x2c000f00, 0x21260984, 0x30003100, 0x4d822f00, 0x1700162c, 0x05001200, + 0x09000800, 0x51180500, 0x0025135f, 0x002a000e, 0xd7ac1813, 0x00362408, 0x88240036, 0x079b422f, 0x9b42d020, 0x20498205, 0x187b8423, 0x6615d750, + 0xe5472f21, 0x78002308, 0x5784f100, 0xd3fe9b26, 0xeefff5ff, 0xf524a782, 0x34019900, 0x8c231384, 0x1800a7fe, 0x21075d88, 0x69610186, 0xfea62205, + 0x194f51f1, 0x830aa547, 0x00092140, 0x20050b51, 0x20bd820b, 0x8b498211, 0x8a0a2013, 0x860a2013, 0x87501827, 0x4aebae25, 0xff231dd9, 0x8310ff88, + 0x64002596, 0x0c002d01, 0x12269382, 0x66ff0c00, 0x1384cdfe, 0x5a017326, 0xeefff4ff, 0xf4240182, 0xf5fe7aff, 0x5a221384, 0xf14b0e01, 0x1cd54a06, + 0xff212b83, 0x06c34df6, 0xeffff522, 0x0847af18, 0xe4fff622, 0x13851b84, 0xff215384, 0x242786f7, 0xfff3fff8, 0x0af360f2, 0x5100a422, 0x532faf4d, + 0x1191116f, 0x2212375b, 0x86200010, 0x000924d5, 0x8218000d, 0x660e2001, 0x3354087b, 0x200f8305, 0x22178417, 0x820f0008, 0x8409201b, 0x82fc20c5, + 0x82fb20b1, 0xfff728e7, 0xfff2fffb, 0x82e9ffe8, 0x06215605, 0xe9200982, 0xf2201182, 0x20084b78, 0x05fd46fa, 0xffeaff23, 0x1a1962d5, 0x61000021, + 0x79531aad, 0x28818207, 0x001a001a, 0xfff1ff0f, 0x200182e6, 0x4f0f90f1, 0x1a220759, 0xa7843300, 0xa382fa20, 0xfafff622, 0x19207782, 0xe7223788, + 0x0f90f0ff, 0x0a000622, 0x06200182, 0x95623383, 0xfff32218, 0x062962e7, 0x4109574f, 0xb94254a7, 0x0843411d, 0xd5ffeb22, 0x4108ad44, 0xab830f7b, + 0xf3ffe822, 0x41089b41, 0xfa200583, 0x08015119, 0x2107cb41, 0xdb41000e, 0x000d2605, 0x00190018, 0x10fb410d, 0x11820820, 0x08000f22, 0x20207382, + 0x18188561, 0x821ee159, 0xfff621a3, 0x232e8341, 0xc6ffedff, 0x7530f341, 0x17551059, 0x00a42408, 0x1927001f, 0x4333f799, 0x2b221231, 0x68825600, + 0xe0ff0024, 0xcd429fff, 0x00b82122, 0x0d2be619, 0x18009b24, 0x3f844600, 0xbaffe822, 0x9b640782, 0x2289421c, 0x43825c20, 0x13000022, 0x5806cb64, + 0x0f8906b5, 0x03201d82, 0x4108a74c, 0xf3643603, 0xfff22122, 0x1d875e18, 0x2106235d, 0x0773ecff, 0x08af7405, 0x01210f84, 0x24a58224, 0x001e0000, + 0xab44185c, 0xffd72234, 0x223f841c, 0x83420016, 0xeaff2307, 0x0f8d2dff, 0x1f570d82, 0x38074207, 0x22269143, 0x82aaffd5, 0x0000246d, 0x43610020, + 0xfe230d2d, 0x1a170073, 0x420ce715, 0x19201107, 0x1808f162, 0x5a1c2f5d, 0x47180899, 0x00210ceb, 0x4277846e, 0x07222507, 0x0b430f00, 0x09074233, + 0x2115c741, 0x5f181500, 0x01213d4f, 0x20c384ae, 0xad8f1816, 0x0ec74108, 0x5ca2fe21, 0x29221cb3, 0x1f835100, 0xffe2ff23, 0x1a8773a4, 0x5a002121, + 0x955c05e7, 0x0014222d, 0x205b833e, 0x44456e00, 0x8f560020, 0x6d222005, 0x977908f5, 0x10fb6014, 0x230e2349, 0x5c002d00, 0xb220ef84, 0xaa0c3748, + 0x640123d7, 0x45821c00, 0x05822d20, 0xcd6e4282, 0x42d78241, 0x7d6e06c3, 0x002b2216, 0x06a95c2b, 0x18fff321, 0x420c0360, 0x002b16d3, 0x0c000200, + 0x48025800, 0x8300b701, 0x48002059, 0x119911d1, 0x83c70021, 0x600023d4, 0x07832101, 0xfe9fff23, 0x220784e0, 0x82f0fff3, 0xffef3801, 0xffdeffdf, + 0x00e9ffdd, 0x00220017, 0x00210023, 0x00100011, 0x82e6ff10, 0xffe22889, 0x00edffe2, 0x821e0013, 0x83132001, 0x61002133, 0x8205a144, 0x82dc2043, + 0x1858200f, 0x22089bef, 0x82790028, 0x8300200f, 0x91f5180f, 0xffdf260a, 0xffeaffe0, 0x220582eb, 0x82e1ffdf, 0xfff1246b, 0x824800f1, 0x001d225f, + 0x2205821c, 0x821d0011, 0xff112201, 0x06d157f2, 0xb16be820, 0xf5ff2105, 0x7a26eb82, 0xef010000, 0xebb21902, 0x2b00de24, 0x8b848100, 0x4c001923, + 0x20e385ff, 0x208182ee, 0x20e582dd, 0x838d82e9, 0xffdf2207, 0x20fb84ee, 0x20ed82f4, 0x4c2b8243, 0xf5260555, 0x1200ddff, 0xeb821f00, 0xf3871220, + 0xfb542582, 0x82e72005, 0x22028325, 0x830f015a, 0x0c002306, 0x01820f00, 0x2d821120, 0x20002024, 0x57821600, 0x6382e020, 0xefffe124, 0x0182f1ff, + 0x2383f420, 0xffa6ff27, 0x015b0012, 0x820b8312, 0x20eb83ed, 0x244f8210, 0xffe3ffe3, 0x221f84ef, 0x82eefea5, 0x82022007, 0x02582283, 0x33d7415c, + 0x1ba20121, 0x200c2789, 0x20878223, 0x20d784f4, 0x06d341ee, 0x6784ea20, 0xdffea022, 0x00200783, 0x2005ff41, 0x22138427, 0x83ddfe9e, 0x07cf4107, + 0x82120021, 0x001f2af5, 0xffeeff12, 0x00e2ffe1, 0x83578258, 0x821020df, 0x822120df, 0x8c1520df, 0x002122ef, 0x20258215, 0x224784c0, 0x8487ffd8, + 0x00e82407, 0x820b000d, 0x200c83c9, 0x05dd4518, 0xff210f83, 0x82ed82ef, 0x220782ef, 0x41e3ffe4, 0x01213bd7, 0x069f4234, 0x12002024, 0x01821000, + 0xdeff0d24, 0x7b84bdff, 0xd151d520, 0xe7ff2905, 0x1600b5ff, 0x22002300, 0x23858782, 0xcf820c20, 0xab82e220, 0x0f00ee22, 0x2c83c982, 0x4c001a22, + 0xcf820683, 0xdf422320, 0x200d8205, 0x202f8215, 0x201f8220, 0x20258211, 0x06a14d0f, 0x10015a22, 0xa5215b84, 0x05194efe, 0xdfffeb24, 0xc342e0ff, + 0x42232008, 0x248308c3, 0xe3415c20, 0xa4ff2305, 0x3384eefe, 0x8dffef21, 0x512120eb, 0x00253f11, 0x015d007a, 0x225b8418, 0x42b4ffe7, 0x00242edb, + 0xb5ffe7ff, 0x23203382, 0x00240382, 0x4b001900, 0xeb424784, 0x1a00211a, 0x69852386, 0x21000024, 0x33836300, 0x00390023, 0x420784ac, 0xc72223fb, + 0x678454ff, 0xbeffdf26, 0x31001000, 0x55820b83, 0x0784e120, 0x4305f743, 0xb5220d0b, 0x2f841fff, 0xcffff022, 0x03200782, 0xff43f182, 0x00212405, + 0x4d47002b, 0x494149ff, 0x00962444, 0x820b0007, 0x87072001, 0xe8ff2307, 0xb5825dff, 0x830d5d41, 0x820c2023, 0x00282221, 0x21058250, 0x0b82000c, + 0x41074d44, 0x01224d61, 0xb14d0066, 0x085d4c06, 0x58fe0022, 0x20107541, 0x20818206, 0xc1ab180b, 0xfff52308, 0x7d59fff4, 0x0d794105, 0x41000021, + 0x31220b7b, 0x7b414100, 0x44754143, 0x2411bf42, 0x0019000f, 0x26e78218, 0xff000000, 0x824500de, 0x00002106, 0x69411386, 0x84de2010, 0x51cb421d, + 0x81820e20, 0x0e001722, 0x260c9967, 0xffe9fff2, 0x83f2ffe8, 0x41ff2071, 0x5b410d5d, 0x00252209, 0x50b55a39, 0x220df946, 0x82e1ffec, 0x00ed2401, + 0x47430022, 0xff232305, 0x82e0ffee, 0x47ee2001, 0xff210511, 0x100947f5, 0xdeffef25, 0x64fff8ff, 0x0787055f, 0x0d00ef22, 0x201f4d44, 0x073947ff, + 0xc8004322, 0x57822b83, 0x1e001d24, 0x49441100, 0xffef2528, 0xffe3ffe2, 0x22055945, 0x47c600bd, 0x00211349, 0x22878209, 0x8208000e, 0x82f2209f, + 0x00f728eb, 0x0093fe00, 0x84cb0044, 0x00112663, 0x001c001d, 0x05814611, 0x22067947, 0x8435ffbc, 0x098f411b, 0x41002d22, 0x60579818, 0x4115c545, + 0x00203ca7, 0x2007dd45, 0x25af4159, 0x44a9ff21, 0xf14810a7, 0x18a34416, 0x77662220, 0x3cc74105, 0x7362de20, 0xdfff2305, 0xcf412b01, 0x07454628, + 0x9a003422, 0x2118d741, 0x1367ffcd, 0x05454605, 0x49000021, 0x8347095b, 0x00212441, 0x84690023, 0x003d2279, 0x200784b8, 0xcf631a0c, 0xff16210c, + 0x22137b49, 0x8348ffc3, 0xddff232b, 0x834797ff, 0x00112108, 0x22057d42, 0x82ef0050, 0x49002013, 0xe9420d7b, 0xffb02206, 0x22378411, 0x835800ef, + 0x49002007, 0xff230653, 0x49b9ffe8, 0x3388279b, 0x1affa823, 0xe5401800, 0xffe82107, 0x0b22bb85, 0x9b492100, 0xefff230d, 0x81560f00, 0x24638405, + 0x00020000, 0x24048223, 0x00020246, 0x33214f0b, 0x09223d82, 0xbb841c00, 0x7f017f22, 0x7726cb84, 0x000066fe, 0x4f82e801, 0x13001226, 0xebff0b00, + 0x0a6ba218, 0xdaffc624, 0x9b492600, 0x10255c05, 0x6b180f20, 0x1a221065, 0x51831b00, 0x78220382, 0x05826801, 0x09000024, 0x63841900, 0x7efe8022, + 0x59088f7d, 0x1f830e85, 0x18180d5c, 0x89117d6b, 0xb42320ff, 0x00e826ff, 0x009a0034, 0x18998206, 0x280fc56a, 0xffc6ffdb, 0xffc9ffc7, 0x24ff84e2, + 0xfff5ffeb, 0x200182ee, 0xb96b18f5, 0xdaff2b0f, 0x0000b4ff, 0x89003bff, 0xbb839a01, 0xfff6ff23, 0x220784e5, 0x8282fe80, 0x826c2007, 0x59002003, + 0x00210729, 0x05f34c41, 0xb0245182, 0x35002400, 0x0b756c18, 0xef223782, 0x0582efff, 0xe7ffed24, 0x6b18e6ff, 0xdd2008a1, 0xf1214b84, 0x053f41ff, + 0x81018122, 0x88220f84, 0x078499fe, 0xab4bf720, 0x4c81490a, 0x2019c74b, 0x29af4d00, 0x4b05f544, 0xff201eeb, 0x211be34a, 0xff4b000c, 0x002f221d, + 0x28a1468b, 0x74ffd222, 0xff202b83, 0x221b234c, 0x44c30041, 0x1d2108b5, 0x0dfb4a00, 0x3dffbf22, 0xef243f84, 0xe3ffe4ff, 0x240aa755, 0x0073005b, + 0x437f4987, 0xac191950, 0xcb561819, 0xffd82325, 0x0085ffb1, 0xfcfffe22, 0x08a94d18, 0x0b82fd20, 0xf7fffb28, 0xf5fff4ff, 0x0582f3ff, 0xf2fff228, + 0xedfff1ff, 0x0182efff, 0x0b82f320, 0xef7bf520, 0x05776a06, 0x635cee20, 0x0d002705, 0x03002800, 0x01820600, 0x6b4b0820, 0x000e2406, 0x8211000d, + 0x00132201, 0x2a078414, 0x000e000e, 0x000b000c, 0x82080009, 0x82052025, 0x0028222d, 0x0e6f544f, 0x2819e420, 0x0c26088b, 0x0e000f00, 0x2d821200, + 0x03820920, 0x53820720, 0x5d840720, 0x87000221, 0xff042401, 0x84a0ffdb, 0xfffd28b5, 0x003100fb, 0x82feff62, 0x82fe20b9, 0x20038305, 0x205982f2, + 0x20b182f0, 0x18b182ee, 0x202bb952, 0x20818404, 0x22a38402, 0x82050006, 0x82042001, 0x00032203, 0x2011820a, 0x200f8407, 0x24818203, 0xff000000, + 0x207b82fc, 0x9dbe18f8, 0xfff52208, 0x556618f6, 0x08175207, 0x1385f620, 0xf6200582, 0x0919b418, 0x00223a82, 0x49820400, 0x07000622, 0x0a22dd84, + 0x01820b00, 0x61820a20, 0x20110958, 0x207f84bb, 0x202f8204, 0x18fd840c, 0x200fb9bb, 0x20ed84fa, 0x228982ff, 0x82fafffd, 0x82a22093, 0x8205209b, + 0x8206202d, 0x82002028, 0x84f9201b, 0xfffe261f, 0xfff4ffff, 0x05454cfb, 0x05204782, 0x02201d82, 0x204e2b78, 0x25bf82a7, 0x001b001f, 0x4818002e, + 0xeb7717bd, 0x11ed710b, 0x6b78f920, 0x1b917408, 0x1f357618, 0x710fe363, 0xfb4a28fd, 0x1fa17406, 0x28199d7c, 0xff210001, 0x02480288, 0x11441887, + 0x0ec75753, 0x9313a374, 0x0f156913, 0xb71b9b74, 0x00092a1b, 0xff0e000e, 0x001a0088, 0xa34c182b, 0x00122808, 0x001e001d, 0x82110012, 0x20078305, + 0x871d820c, 0x201b830b, 0x201b821d, 0xcb4c180d, 0x5f75180a, 0xedff2112, 0x0ad94318, 0x200aa55d, 0x82008200, 0x84c6201b, 0x05dd4107, 0x84082d5c, + 0x0f597b13, 0x6b565b84, 0x452f200c, 0x4f5b31a7, 0x003a2212, 0x20558274, 0x08b54200, 0x85462e20, 0xd2ff2305, 0x878475ff, 0x2207ed42, 0x5b7dffd5, + 0x4f5b226f, 0x18ff2014, 0x590f63df, 0x00200627, 0x07f76018, 0x2dcf6218, 0xb3074358, 0x88d920ff, 0x002c22e7, 0x0db34582, 0x64180020, 0xc62225bd, + 0x17418cff, 0xffd2220c, 0x230f8376, 0x8a002e00, 0x18082149, 0x41470f62, 0x27420617, 0x41e32008, 0xa3520cff, 0xcb41184b, 0x002a2211, 0x426d8252, + 0x1f200917, 0x3adf5318, 0xb35a4882, 0xe1ff2307, 0x4742a3ff, 0x2d591847, 0xd155180d, 0x3e774229, 0x4342e17f, 0x6f411287, 0x000f230f, 0x0083002b, + 0x4d07fb5a, 0x7b180b8d, 0xd5200d1b, 0x410c8f42, 0xb7434b5f, 0x3dc74327, 0x21434f41, 0x2741007f, 0x660e2007, 0xf35e060f, 0x42002006, 0xf22347b7, + 0x1800d4ff, 0x220b3342, 0x82baffe8, 0x0000240e, 0x43470017, 0x374110f7, 0x48a7420e, 0x440e6741, 0x62181617, 0xb7425a5b, 0x001c2212, 0x24ff8238, + 0x00110000, 0x22078432, 0x84150007, 0x64102007, 0x0d820501, 0x67453f20, 0xffe42234, 0xcbe318c8, 0x1af9200c, 0x220ee5eb, 0x44c1ffeb, 0xaf414847, + 0x224f6266, 0x200d735d, 0x25e14723, 0x25486b5d, 0x00220058, 0x00830067, 0x8207a147, 0x305b5d0f, 0x0353c320, 0x1819200a, 0x5c277153, 0x22220e57, + 0xdb521700, 0xffde220c, 0x17575ce9, 0x5c0dcb52, 0xd3222247, 0x4b84a4ff, 0x26076149, 0x00edffde, 0x5289002e, 0x00240d9b, 0x000c0003, 0x2205235d, + 0x1835002b, 0x4143d545, 0x362206a5, 0xc953a500, 0x22ed9710, 0x5f5cffc9, 0x01213535, 0x41378329, 0xdd411019, 0xdeff2306, 0xd15399ff, 0x06254120, + 0x01420020, 0x86ff2134, 0x24125141, 0x00020000, 0x24048212, 0x00bd0256, 0x5bb0181f, 0x82f72036, 0x005c2c39, 0x0013000f, 0x00160014, 0x822a0028, + 0xff1c2801, 0xffbbffdd, 0x82eefff6, 0xfff62401, 0x5252ffa9, 0xdd24087d, 0x1c00baff, 0x29222384, 0x31821500, 0x4c001422, 0x2406e74e, 0xffedfff6, + 0x260382ec, 0x004700f3, 0x84f3ff8e, 0x4eed200b, 0x002005df, 0x2e220085, 0x01823c00, 0x7d004324, 0x01828100, 0x14835520, 0xffdeff25, 0x50c8ffc7, + 0x23260627, 0x39003800, 0x17842200, 0x7fffab22, 0x832a0182, 0xc4ffbdff, 0x2600c4ff, 0xa5821800, 0x1b821e20, 0x42004024, 0x8f464100, 0xd4ff2705, + 0xbeffbfff, 0x4382c0ff, 0xe1ffe222, 0x01293582, 0xf3ff3a00, 0xcb022e02, 0x5aaf4500, 0x82a60121, 0x001228f7, 0x000e0011, 0x820b000d, 0x00082101, + 0x20057d50, 0x20878204, 0xd77718bd, 0xfff82208, 0x2e0182f4, 0xfff1fff1, 0xffeeffef, 0xffb2ffeb, 0x82d9ffd9, 0x000022a3, 0x20018227, 0x2443864e, + 0x000f000f, 0x8501820c, 0x00052843, 0x00210005, 0x1afcff44, 0x26084708, 0xfff5fff5, 0x82f2fff3, 0x82ef2043, 0xffea2243, 0x200182e6, 0x24f182e0, + 0xffd0ffcf, 0x210182df, 0x7b56fff0, 0x00052405, 0x82080004, 0x820d2087, 0x00113293, 0x00300021, 0x003f0031, 0x001a001f, 0x00060019, 0x2415820a, + 0x000f000c, 0x22018410, 0x84120013, 0x83112001, 0x2059828d, 0x20a382f0, 0x830782f3, 0x18f72067, 0x260a7bc9, 0x00480049, 0x82910090, 0x84482005, + 0x82fb2029, 0xfff72297, 0x208f86f6, 0x203582f3, 0x05e556f2, 0x11205582, 0x03855182, 0x87836385, 0x77820a20, 0xd1820620, 0xff213c82, 0x240182e8, + 0xffd1ffd2, 0x260182bc, 0xffd4ffa7, 0x82d9ffda, 0xffde24bd, 0x82e3ffe4, 0x19d12019, 0x2008654e, 0x2a2f8404, 0xff5f0002, 0x020b02f5, 0x1987006f, + 0x21b7f708, 0x4f187401, 0x102108f1, 0x070d4100, 0x51180520, 0xf62c0ead, 0xf3fff6ff, 0xddffe5ff, 0xd3ffdcff, 0xea240782, 0xefffebff, 0x20060d52, + 0xedc118fb, 0x0003220a, 0x086d5203, 0x09820420, 0x02220f83, 0x01880600, 0x83000821, 0x19092001, 0x200a5b12, 0x220b8208, 0x820e0011, 0x19092001, + 0x180c69e0, 0x200897bb, 0x20008200, 0x230088ff, 0xfeff0000, 0xff200182, 0xfa200584, 0xfa207982, 0x08c9ba18, 0xf0fff924, 0x0182ecff, 0xedffe824, + 0x0384eeff, 0xa382ee20, 0x0979ca18, 0xfc222983, 0x4e82fdff, 0xe7820020, 0x19000c22, 0x0f200582, 0x42066b42, 0x1b200511, 0x19221382, 0x558275ff, + 0x82fffc21, 0x82038229, 0x222f8477, 0x84040003, 0x180c20b3, 0x24086b95, 0x00110010, 0x203d8214, 0x5311820f, 0x0221055f, 0x84018300, 0xf8ff23b7, + 0x8382f7ff, 0xe9fff022, 0xe4200182, 0xf1229382, 0x2b82f1ff, 0x31820d20, 0x09052519, 0x21002124, 0x01822400, 0x20002724, 0x01821d00, 0x18001928, + 0x15001600, 0x13821200, 0x13001222, 0xff207783, 0xf420e183, 0xfa20e588, 0xf9205782, 0xf9201382, 0xfa20f382, 0xfc200782, 0xfe209e82, 0xff230382, + 0x82ff0000, 0x83318203, 0x82042081, 0x530520ab, 0x07830699, 0x21058341, 0x00820002, 0xf8223782, 0x9b82f1ff, 0xf5fff622, 0xf4250182, 0xf3fff2ff, + 0xbdcb18ff, 0x82f62009, 0xfff72119, 0x094b2f1a, 0xf3180986, 0x08240855, 0x07000600, 0xa1185d82, 0xfd200bf7, 0x4b7a5382, 0x82f02005, 0xffee2249, + 0x20ed82ef, 0x2c0382ec, 0xffebffed, 0xffe0ffd7, 0xffe7ffdf, 0x835384f4, 0x41fd20b1, 0x0720067f, 0x29284982, 0x08000700, 0x0b000900, 0x0d440182, + 0x001d2205, 0x2401821b, 0x00190019, 0x22018214, 0x820f000e, 0xff072425, 0x840000fe, 0x82f12063, 0x20a183f1, 0x066944f6, 0xd3fff028, 0xd9ffdaff, + 0x6719e2ff, 0x07200a01, 0x01265382, 0x00005900, 0x31190e02, 0x23821d0f, 0x48016d23, 0x20008200, 0x657d1aff, 0x01572207, 0x220f8403, 0x83fcfeaa, + 0x8f002007, 0x2214830f, 0x840e02af, 0xffec2223, 0x220784c5, 0x1853ffc6, 0x880c91bb, 0x2415820f, 0xff590003, 0x248782d4, 0x003b00ea, 0x5be74549, + 0x00790029, 0x003a0013, 0x82050002, 0x00022401, 0x84d10069, 0xffe62293, 0x291387b1, 0xccffe6ff, 0xfcfffeff, 0x0582fbff, 0x56ffab22, 0x31821f83, + 0x1182ac20, 0x83fffa21, 0xfff32a01, 0xfff3fff4, 0xffcafff8, 0x15571894, 0x84fc2008, 0x84f92019, 0x221b8319, 0x84d2ffe9, 0x000b221b, 0x2a458222, + 0x00fcfffb, 0x000800ce, 0x820c000d, 0x06574601, 0x19200d82, 0x53207b86, 0x0869d418, 0x15820c20, 0x29820d20, 0x57002c22, 0xce221b84, 0x0783d4ff, + 0x0e221182, 0x05820e00, 0x180a5741, 0x220c59ed, 0x82f2fff8, 0x41f72001, 0xf02c0c6f, 0xecffedff, 0xd7ffeaff, 0xd5ffd6ff, 0x2206d371, 0x84c4ffec, + 0x82f12023, 0x201b8519, 0x201d82d5, 0x0c9741e4, 0x01314b84, 0x001c00ab, 0x002a002b, 0x00160029, 0x00130014, 0x09c34110, 0x00c9fe23, 0x2013820f, + 0x20198214, 0x20238429, 0x821b891c, 0x00032c09, 0x022e0025, 0x002d0245, 0x457f004b, 0x0023b7e9, 0x580b0056, 0x112008c3, 0x14200982, 0x1826f182, + 0x1b001700, 0x03821d00, 0x83001a21, 0x0016260b, 0x00130015, 0xfde91827, 0xfffc2808, 0xfff7fffc, 0x82f6fff8, 0x82f42005, 0x8213203f, 0x820b201d, + 0xfff1220d, 0x220582f1, 0x82effff6, 0x053b4801, 0x2805f943, 0xffe8ffe9, 0xffc9ffe4, 0x240182d1, 0xffd9ffd8, 0xe9bf19ec, 0x00042408, 0x82090008, + 0x000a2601, 0xfff5ff0b, 0x200182ee, 0x260d82f5, 0x0010000f, 0x88fdff45, 0xfffe2101, 0xf9200183, 0xfd217582, 0x24008300, 0x00030003, 0x23018207, + 0x000b000b, 0x2007ad45, 0x83838212, 0x82132087, 0x052348a5, 0x06000522, 0x08776718, 0x05000428, 0xe6ffddff, 0x7b82e5ff, 0xa582ee20, 0xf4fff222, + 0xea249182, 0x3100eaff, 0x082be418, 0xe345fb20, 0x22002105, 0x1420f784, 0x0e204f82, 0x0c245d82, 0x16001c00, 0x24200182, 0x08a17218, 0x45000321, + 0x062205d5, 0x01820400, 0x97828f82, 0xfafffc24, 0xc182f9ff, 0x59fff521, 0xee20099d, 0xed226b82, 0x7184edff, 0x2e00ed22, 0x1020ab82, 0x0d20d782, + 0x20083359, 0x823783f8, 0x0000223e, 0x7dd51805, 0x000d2608, 0x00250012, 0x2401822d, 0x00190034, 0x83778217, 0x001024d7, 0x5e0d0011, 0x0b220651, + 0x95820800, 0x08000f22, 0x20066f41, 0x211782f2, 0x3d470009, 0x288f8705, 0xffeeffed, 0xffdbffda, 0x260182d3, 0xffe7ffcc, 0x82eaffe9, 0xffed2287, + 0x200182f0, 0x203782f2, 0x281f82ef, 0xfff8fff6, 0x00f1fff1, 0x83c3828d, 0x05af4637, 0x0d820520, 0x09b1cc19, 0x0b9fe219, 0x5e180e20, 0x15450ceb, + 0x82fd2005, 0x058759c1, 0xfefffd22, 0x08eb8118, 0x7182df20, 0x6f82e720, 0xf2ffef2a, 0xf4fff3ff, 0xebffe6ff, 0x9d200182, 0x2008dd5a, 0x20098203, + 0x20678203, 0x25e18220, 0x00130019, 0x5b830011, 0x1a000c24, 0x01821500, 0x53822220, 0x0be13d19, 0xb382fc20, 0xbb47ee20, 0x05bd4708, 0xf322c785, + 0xcb82f5ff, 0x0d397819, 0x00000426, 0xfdff0200, 0x6d220482, 0x5b829d02, 0x2f4f2520, 0x00012125, 0x9c283382, 0xefffd401, 0xeaffe9ff, 0xd222bf82, + 0x0182d0ff, 0xdeffe024, 0x1382baff, 0x1389ea20, 0x00600025, 0x8210000c, 0x00112401, 0x82220021, 0x86162001, 0x0012220f, 0x220f8420, 0x8285ff17, + 0x2a028383, 0x0039002c, 0x0040003a, 0x827b0076, 0x83522001, 0xd4ff2b12, 0xc7ffc6ff, 0x89ffc0ff, 0x278485ff, 0x2b00202a, 0x2f002a00, 0x5b005700, + 0x3b2e0182, 0xd6ffe0ff, 0xd2ffd5ff, 0xa5ffa8ff, 0xc344a6ff, 0x19cf8c05, 0x251c6d06, 0x1a000001, 0x87824e00, 0x30003032, 0x19002e00, 0x17001600, + 0x30ff1100, 0x110060fe, 0x16200b82, 0x2e201182, 0x30221982, 0x61825300, 0x5c007624, 0x3d791501, 0x00002206, 0x20a38451, 0x83ad8277, 0x922c20b3, + 0x000f24ab, 0x8471017b, 0x2adf8317, 0x00410001, 0x02280200, 0x414500b0, 0xe55d2761, 0x2802211f, 0xc5365d84, 0xeaff4fff, 0xebffecff, 0xeeffedff, + 0xf0fff1ff, 0xf8fff4ff, 0x0182faff, 0x8500ff24, 0x23840a01, 0xd5fe9c22, 0x02200782, 0x2e089143, 0x00040002, 0x000f000a, 0x0013000e, 0x84150014, + 0x004f22f7, 0x204f889d, 0x8bb81bdf, 0x81441a08, 0x83f82009, 0x0800211d, 0x112c0182, 0x18001000, 0x1c001700, 0x20001d00, 0x22220182, 0x1b824f00, + 0x3c001422, 0x02830582, 0x11202385, 0x19222382, 0x27822100, 0x5f821720, 0x18831820, 0x23870020, 0x19000c21, 0x200bbf1d, 0x2049820a, 0x832d8217, + 0x0009228b, 0x20298409, 0x222b8800, 0x82f5ff00, 0xffe924d1, 0x82e1ffe8, 0xffd92495, 0x82d5ffd9, 0xffd02201, 0x830784d2, 0x1a17830f, 0x2c0b6bc7, + 0xff410003, 0x032802ad, 0x00570003, 0x0b1f196b, 0x00f12282, 0x21d58205, 0x5b6a0008, 0x820b2005, 0x0b6b41fb, 0x83fffa21, 0x82fc2001, 0x000d2121, + 0x06200183, 0x06202782, 0x3d233182, 0x82007c00, 0xd8ff2300, 0x0d8289ff, 0x83000621, 0x24218517, 0x001d0009, 0x221b843b, 0x18d1fff1, 0x2208494a, + 0x82e6fff1, 0xfff12401, 0x82f8fffb, 0xfffa2401, 0x6cc7ffe4, 0xe22306fd, 0x41ffe3ff, 0x092211c7, 0x01821100, 0x18001728, 0xf9ff1e00, 0x0182f6ff, + 0x0f00fa2a, 0x19001900, 0x0100b7ff, 0x06226d82, 0x0d820800, 0x24002428, 0x14002e00, 0x63182700, 0xf32108e5, 0x220183ff, 0x82cefff7, 0xfff2225d, + 0x200182f4, 0x241b82f7, 0xfffdfffd, 0x2a0384fe, 0x00fffffe, 0xff54002a, 0x82f0fff5, 0x82ad2001, 0x21538263, 0xd5191600, 0xdb410a51, 0x2069820a, + 0x22038200, 0x8229001b, 0x00272401, 0x82130015, 0x830e206b, 0x420782db, 0x0f22054f, 0x01821300, 0x27001622, 0x29225582, 0x1b8c1b00, 0x12000c22, + 0x0c240182, 0x07000400, 0x05280182, 0xe6fff1ff, 0xf1ffe5ff, 0x37422384, 0xffe92607, 0xffe0ffe1, 0x240182d8, 0xffd5ffd6, 0x220182d1, 0x84d4ffd5, + 0x2217830f, 0x82edffe9, 0x82df20c7, 0xfffb2805, 0x01fafff9, 0x861700ce, 0x00422201, 0x06196f21, 0x57820020, 0x2182ed20, 0x3582eb20, 0xd6ffd72a, + 0x0000e5ff, 0x100000ff, 0x1524ad82, 0x0b001a00, 0x0c200188, 0xbb840982, 0xce225182, 0xd782cfff, 0x4e004126, 0x0d022702, 0x204af343, 0x0cf34327, + 0xf0ffed26, 0xf3ffefff, 0xf6220182, 0xbf83f6ff, 0x00fcff25, 0x84060183, 0xfe9e2823, 0x000400d9, 0x1a070006, 0x230e2f43, 0x00160013, 0x240feb43, + 0xffe3ffe0, 0x102342e4, 0x8307074d, 0x82082043, 0x00172cef, 0x001d0017, 0x001f001e, 0x82210020, 0x414e2043, 0x002008a3, 0x99486982, 0x09db4309, + 0x00820020, 0x17441420, 0x180c2006, 0x2008a574, 0x2409820a, 0x00090008, 0x82358203, 0x20238a20, 0x26c38200, 0xfff2fff8, 0x82ecfff1, 0xffe62201, + 0x229782e6, 0x82e1ffe3, 0x86f22011, 0x84f32003, 0x82e62007, 0x84eb201d, 0xfff82227, 0x213f82f9, 0x5f450000, 0x41002752, 0xb1003b00, 0xef842200, + 0xf9821d20, 0x16001724, 0x01821100, 0x7482bb83, 0xfff7ff29, 0xffeffff8, 0x82e9fff0, 0x82e32001, 0x82e020a9, 0xffde24a9, 0x8263ffb1, 0x8400201c, + 0x0016223b, 0x24018215, 0x00120013, 0x2401820e, 0x000a000a, 0x20018206, 0x8b481802, 0x01632208, 0x258c182c, 0xfffd2408, 0x82fcfffd, 0x82f62003, + 0xfff022fd, 0x240182ee, 0xffebffeb, 0x844f88e8, 0x0c002554, 0x17000b00, 0x20200182, 0x282c9582, 0x2b002800, 0x30002a00, 0x2c002e00, 0x27230982, + 0x83002700, 0x831f8317, 0x18318427, 0x200861f8, 0x20ad8200, 0x205582f7, 0x24af84ef, 0xffe6ffe6, 0x200182e7, 0x0ce14be8, 0xf4fff323, 0x240383ff, + 0xfff5fff4, 0x20df82f6, 0x207f82e3, 0x203382e8, 0x200b82ed, 0x242983f7, 0xecff0000, 0x0b5f4500, 0x81006522, 0x4647cf46, 0x1f9b1fef, 0x00bc0025, + 0x82080006, 0x00052401, 0x4139001d, 0xef2220b3, 0xd982e9ff, 0x3382e220, 0x0b000a28, 0xf0ff0600, 0x0182e7ff, 0xfafff124, 0x0182f8ff, 0xfd82f920, + 0x0384f420, 0x200bcb41, 0x282d8206, 0xff050005, 0xfff2fff7, 0x200182f3, 0x272d82f9, 0xfffbfffa, 0x0085ffc2, 0x28220083, 0x1b827800, 0x1d84f320, + 0x24055f50, 0xffe3fffc, 0x251a83c6, 0x2f000f00, 0x2f82fcff, 0xfcfff92a, 0x19001000, 0xa7001a00, 0x0f207782, 0x0e200b82, 0x0b221b82, 0xb9820c00, + 0x05000922, 0x02246182, 0x4affd7ff, 0x20080b46, 0x26118207, 0x00040007, 0x42640033, 0xf0201227, 0x20089744, 0x22cf82ec, 0x82adffec, 0x821b204b, + 0x05eb745b, 0x2b420020, 0x421f2008, 0x2b2a082b, 0x30002f00, 0x2b002a00, 0x01822800, 0x17822020, 0x13001824, 0x01822100, 0x65821420, 0x05246d83, + 0xe7ffefff, 0xea240182, 0x02000300, 0x08d7cd18, 0x83061d4e, 0x228782cb, 0x82e5ffff, 0xffd726a5, 0xffebffd9, 0x200182ed, 0x0c4342f1, 0xd6ffe522, + 0xd9201d82, 0x8d06414b, 0xfff4221b, 0x280182ee, 0xfffbfff5, 0x01f9fff9, 0x287782ce, 0x00310032, 0xfff0ff2c, 0x224b82ec, 0x82e8ffe8, 0x2d0582c7, + 0xd0fe0000, 0x2a001b00, 0x27002900, 0xa1821600, 0xd9821320, 0x78186482, 0x9f42080d, 0x82e22007, 0x82e72031, 0x42ee20b1, 0x0121089f, 0x07734500, + 0x97424120, 0x08034443, 0x20002026, 0x1e001c00, 0x17228d82, 0x01821000, 0x08000922, 0xf720f584, 0x20060344, 0x1a0344ea, 0x14001422, 0x17543182, + 0x00072809, 0xff040007, 0x83fafe7d, 0x62002741, 0xfcff2701, 0x8347f9ff, 0x65691906, 0xffec2209, 0x06fb43ea, 0x27844e20, 0x07000022, 0x7b830182, + 0x14001426, 0x1b001a00, 0x91830182, 0xdb181e20, 0x1423084f, 0x18001500, 0x210a7fba, 0xfb430000, 0xfffc240a, 0x82f7fffd, 0xfff524ab, 0x84f4fff6, + 0xfff52201, 0x0cb741f4, 0x7d180f82, 0xf72008bf, 0xfc222b84, 0x2183fcff, 0x47820020, 0x00010029, 0x0100007d, 0x825b02ec, 0x430c8283, 0x1382058b, + 0x13015c22, 0xff232383, 0x83edfea4, 0x22038407, 0x84c40197, 0x82692013, 0x00012805, 0x0233ff4c, 0x82ca021d, 0x85378899, 0x0001273d, 0x13004c00, + 0x25823b00, 0x4d000024, 0x0784e800, 0xff270f86, 0x00a4fe8b, 0x8433ff00, 0x02d62213, 0x23078382, 0x7efd2aff, 0x00230783, 0x84b102e6, 0xa21a200f, + 0x0174225f, 0x202b845d, 0x058943ec, 0xffb3ff23, 0x860f8918, 0x204f875f, 0x225f8629, 0x8a8302d6, 0x8248205f, 0x821f20bf, 0x332b63bf, 0x75004824, + 0x4b846201, 0xe5fea228, 0x16001100, 0x534c1700, 0x4d202008, 0x00220f3b, 0x9141007a, 0xfe8d2205, 0x213383a7, 0x2d821200, 0x1a00183a, 0x32003100, + 0x21003300, 0xe8ffeeff, 0xe6ffe9ff, 0xceffcfff, 0xdfffcdff, 0x20081f41, 0x83218210, 0x001b2230, 0x26018223, 0x00490027, 0x824b004c, 0x00192e33, + 0x00210020, 0x00420024, 0x00450046, 0x8222832e, 0x83322083, 0xf4ff2307, 0x4982dfff, 0xdeffdd2a, 0xbaffdaff, 0xb7ffb6ff, 0xe4225582, 0x0182dbff, + 0xb3ffd72a, 0xb1ffb0ff, 0xf2ffcbff, 0x01282982, 0x06012c00, 0x56013c02, 0x240cf741, 0x0184002c, 0x2647848c, 0x0074fe7c, 0x83060100, 0x1400210b, + 0x2105e947, 0x0d82ecff, 0x2c000228, 0x3c020000, 0x37822602, 0x89431f20, 0x8c2d8221, 0xde002551, 0x3f001500, 0x00244782, 0xa6003800, 0xc9226984, + 0x078459ff, 0xc1ffeb22, 0x1f850f8b, 0x83d60121, 0x21818913, 0x0f84eefd, 0x99652720, 0x42142006, 0x27220665, 0x3b847500, 0x8bffd922, 0xed200784, + 0x2b05314e, 0x0100d9ff, 0xa7ff3300, 0xbd021c02, 0x332fe78c, 0x47001800, 0x27016300, 0xb8ffe8ff, 0x41ff9eff, 0xc6220597, 0x3d845002, 0x05823b20, + 0x53000128, 0x16025200, 0x2d780902, 0x1801253f, 0x2b000e00, 0x00285182, 0x35001f00, 0x20003400, 0x08974b18, 0xc8ffde22, 0xde220182, 0xeb822200, + 0x22003822, 0x08314318, 0x8519e020, 0xf2220ab1, 0x9384d5ff, 0x49181386, 0x33830863, 0x33823720, 0xc9ffde22, 0x05224384, 0x01820900, 0x63880620, + 0x52000022, 0x00253783, 0xff85002c, 0x06b373ee, 0x0f000822, 0x09248b82, 0x1d001100, 0x11200182, 0x1c200784, 0x09200582, 0x0f241582, 0xefff0800, + 0xe2222782, 0xf182eeff, 0x73847620, 0x7bffd426, 0x1e001200, 0x11280182, 0xf1fff8ff, 0xf7fff2ff, 0xe4222382, 0x0582e3ff, 0x0582ef20, 0xf7200783, + 0x8205ad49, 0x821d2027, 0xff122227, 0x2a3982c5, 0x00960002, 0x01d3019a, 0x692f00c5, 0x83225429, 0xb1841300, 0x0b000a24, 0x4d1a0600, 0xfd2408c3, + 0xfafffbff, 0xf725a782, 0xe9fff4ff, 0x24a583ff, 0xffeaffdf, 0x200182ec, 0x20af82ed, 0x22a782f2, 0x19f5fff5, 0x220a431e, 0x820a0005, 0x000e2401, + 0x8211000f, 0x001424bd, 0x82160014, 0x00152401, 0x8280ff14, 0x4af9202b, 0x0722067f, 0x6b820700, 0x2009e56c, 0x202d8212, 0x29cc180e, 0x8227820a, + 0x82f2202d, 0x84ef2061, 0xfff0246b, 0x82ad00ef, 0x6d0d2057, 0x15200a19, 0x0e206382, 0x13830f82, 0x0c000d22, 0x16200182, 0x0c21b982, 0x82008200, + 0xfffb22b1, 0x200182f6, 0xf33019f2, 0x82ed2008, 0xffeb22b5, 0x200182ed, 0x205582ef, 0x06034cf4, 0xb345fb20, 0x82042006, 0x824c20ef, 0x000f224b, + 0x20b58210, 0x20058213, 0x20598411, 0x084b7806, 0x3182fa20, 0xf0fff322, 0xed220182, 0x0784eeff, 0x8206d548, 0x8200206e, 0x00072c25, 0x01f50001, + 0x01730107, 0x43170097, 0x63241ac1, 0x04000800, 0x46190182, 0x01212673, 0x20288207, 0x262f8203, 0x00270006, 0x9007004d, 0xfff9243b, 0x82b2ffda, + 0x07655aef, 0x1e287a83, 0x5002eeff, 0x33001d03, 0x5d46879a, 0x092f4a10, 0x82fc0021, 0x002f2cff, 0x002f001f, 0x002d002e, 0x82160018, 0x82102001, + 0x821020b7, 0xff00258b, 0xffc9ffed, 0x2405714c, 0xffd7ffe9, 0x240182d5, 0xfff8ffe4, 0x200182f7, 0x251b82f5, 0xffecffec, 0x3f6bfff2, 0x82e52005, + 0x000622ad, 0x22058206, 0x8219000f, 0x820f2047, 0x000b2443, 0x840c000a, 0x5d172051, 0x5b2a061f, 0x8a008b00, 0x48008600, 0x01824100, 0x63833120, + 0x82100021, 0x23088279, 0xc5ffd2ff, 0xbd240182, 0x81ff86ff, 0xab300182, 0x1e001700, 0x21001d00, 0x3f003d00, 0x2a004000, 0x3f437382, 0x82f62005, + 0xffed2279, 0x235c18f5, 0xffe62c08, 0xffdeffdf, 0xffbcffdb, 0x82b9ffb8, 0x00022148, 0x23051341, 0x00590082, 0x91057719, 0x18005122, 0x2008b942, + 0x13c918e8, 0xffe42218, 0x08d94ddd, 0xf0fff122, 0x0817b118, 0x2405d148, 0x00150019, 0x26018210, 0x000c000b, 0x82070006, 0x820020f3, 0xffe72149, + 0x0b55be18, 0x18001921, 0x2009cbc5, 0x06d94207, 0x4efff921, 0xed220541, 0x2f82edff, 0x21058f4b, 0xe942fff2, 0x05154605, 0x83000f21, 0x000d2201, + 0x285f840e, 0x002a0010, 0xff210021, 0x652342c3, 0x82090221, 0x00162e67, 0x001c0016, 0x00190028, 0x000a001a, 0x2ae98209, 0x00220016, 0x00120017, + 0x820d0013, 0x86082097, 0x82ff20ef, 0x07275600, 0xcf82fc20, 0x0b00d924, 0xe7860600, 0xfcfffc22, 0xf923e982, 0x18fff6ff, 0x21112fc9, 0x008400da, + 0x7758ff20, 0x82f62005, 0x71f420fd, 0xf35f08b3, 0x84fc2005, 0x00012320, 0x7f180002, 0x5f8208f1, 0xfbffdb24, 0xc31afdff, 0x8b820e5b, 0x84f5fd21, + 0x63d7422d, 0xd7420320, 0x007a2406, 0x7927001b, 0xfa2460db, 0x34001100, 0x0f20db84, 0x21057b47, 0x4747f1ff, 0xffec2406, 0x42f4ffc3, 0xff250593, + 0xffdfffe0, 0xf51f19de, 0x00772a0c, 0x000b0009, 0x000d000c, 0x20018419, 0x23438311, 0x2400deff, 0x21654342, 0x6f83f201, 0x00150022, 0x0fa5bd18, + 0x8784be20, 0xebffef22, 0xe82a0182, 0xd3ffd4ff, 0xe2ffd2ff, 0xbd18edff, 0x10200ca5, 0x1222f382, 0x01822300, 0x1700242a, 0x7fffc0ff, 0x71fd0000, + 0x2a68df41, 0x005d0002, 0x010b0276, 0x184b00da, 0x21735bd7, 0xfd823b01, 0x83001021, 0x00132201, 0x200b8212, 0x200b8211, 0x21098212, 0x00820014, + 0xfff2ff23, 0x240182f3, 0xfffbfff4, 0x082f60fa, 0xf8fff928, 0x0d000b00, 0x8b190c00, 0x0e20088b, 0xe92a2b84, 0xecffebff, 0xeeffedff, 0x0182f1ff, + 0x3b82f520, 0xf0fff024, 0x0382efff, 0x1782ec20, 0xdfffe924, 0x0182e5ff, 0xf7220b83, 0x3183f6ff, 0x00050027, 0x000a0004, 0x44478209, 0x13260579, + 0x16001300, 0x05821500, 0x85ff1323, 0xcdcc18ff, 0x00052409, 0x820b0006, 0x000e226f, 0x2099820f, 0x2077840f, 0x203d820c, 0x91851806, 0xff08210a, + 0x8305af4d, 0x84f120af, 0x82ef2077, 0x00f22285, 0x202d828f, 0x24538215, 0xffe2ff1c, 0x20a182ea, 0x222782f4, 0x82fafffa, 0x0016227f, 0x8305822b, + 0x224b8343, 0x82080008, 0x000a228b, 0x2201820e, 0x841d0013, 0x450b8387, 0x16250569, 0x00002c00, 0x83f982ff, 0x22478453, 0x821e00e4, 0x82162023, + 0x000e225d, 0x069d4407, 0xf4fff424, 0x0182e7ff, 0xe1ffe124, 0xeb82d9ff, 0x41ffe821, 0xf0200513, 0x77858f82, 0x7182fb20, 0x06000022, 0x54200182, + 0x1426cb82, 0x19001300, 0x9d821a00, 0x10001522, 0xab190f82, 0xfb220d77, 0x9f4ef8ff, 0xfff22406, 0x1aeffff2, 0x2008794d, 0xff9819f1, 0x2e2f8308, + 0x00140003, 0x01540276, 0x005b00da, 0x48af0087, 0x4952350f, 0x251bdf1b, 0x0900cd00, 0x03820a00, 0x10000922, 0x11200182, 0x13220382, 0x01821200, + 0x12280d83, 0x15001300, 0x1a001f00, 0x14220182, 0x27821400, 0x82000b21, 0xfdff2100, 0xfa2c0182, 0xf8fffaff, 0xf7fff9ff, 0xf4fff6ff, 0x08fd2819, + 0xf0fff22a, 0xdcffd1ff, 0xe8ffddff, 0xf8201b82, 0x05832184, 0xf7200383, 0x03852b82, 0xf4222f83, 0x2b82efff, 0xf2fff124, 0x3d82f3ff, 0x4582f520, + 0x3182f620, 0xfcfff924, 0x5d82fbff, 0x6682fd20, 0x06000022, 0x0cedd918, 0x8d821020, 0x0a208f83, 0x0a228782, 0x2d82bbff, 0x20051743, 0x418982f6, + 0x0c1a05d9, 0x0c220de7, 0xb1420f00, 0x580b200a, 0x062208b5, 0x01830700, 0xb142b386, 0x82f12005, 0x82f7208b, 0x01f822ad, 0x919d1808, 0x84fa2008, + 0x00f8228f, 0x2001840c, 0x06bd4a0d, 0x47191020, 0x518308e3, 0xa7830420, 0xf5203184, 0x08a5e918, 0x4783f920, 0xf0200382, 0xf324d982, 0x03007b00, + 0x05207982, 0x0d267182, 0x15001400, 0x09431d00, 0x84002010, 0x0019245f, 0x82200018, 0x82272001, 0x82132023, 0x001022e9, 0x06694310, 0x77180c20, + 0xe426106f, 0xc6ffe3ff, 0x1f841100, 0x0a000b24, 0x21820800, 0x5a190620, 0xfd2112bf, 0x05ef61ff, 0xf6fff722, 0xf420ed82, 0x2108f14b, 0x0183ffee, + 0xe9ffe622, 0x28162143, 0x00010001, 0x00040047, 0x22018206, 0x820f0007, 0x00142491, 0x840e0019, 0x860a20a7, 0x4317836f, 0xe2221d31, 0x0182ebff, + 0x7582f220, 0xf8fff923, 0x22008300, 0x82030002, 0x840620d9, 0x204783af, 0x2053820d, 0x10ed4312, 0xf8ff002e, 0xf1fff9ff, 0xedfff0ff, 0xe7ffecff, + 0x47830182, 0xa218f020, 0xff23095f, 0x83fefffd, 0x209d824e, 0x2a078206, 0x003f0001, 0x022a0287, 0x430b0054, 0x17820d7f, 0x70017b22, 0x00242182, + 0xcffe9bff, 0xeb220784, 0x0782c0ff, 0x03828720, 0x14000024, 0x07843c00, 0x1e015f22, 0x8d201b84, 0x11204b8c, 0x87434b8d, 0x39518a05, 0x0002ffac, + 0xfff60052, 0xffc1ffea, 0xffb8ffcf, 0xffbaffb7, 0xffdeffda, 0x5d9500df, 0xabffc822, 0xaf300182, 0xd8ffd4ff, 0x0100d9ff, 0x1dff0901, 0xdf025f01, + 0x220bdf4f, 0x19000901, 0x190c215a, 0x840f115a, 0x0052279f, 0x02160200, 0x195f002d, 0x22a58228, 0x65470018, 0x17220893, 0x01821800, 0x10001022, + 0x17220784, 0x01820c00, 0x08000b36, 0x40002000, 0xf1fff5ff, 0xf0fff2ff, 0xe2ffe3ff, 0xecffe1ff, 0xb122a982, 0x0b84ebff, 0xab43e320, 0x83818205, + 0x001d2202, 0x24018226, 0x004e002a, 0x24018251, 0xffcaff36, 0x240182af, 0xffd6ffb2, 0x200182da, 0x232283e3, 0x30002400, 0x35280182, 0x67006300, + 0x44006600, 0xff2f1383, 0xff9affbc, 0xff9dff99, 0xffd0ffcb, 0x820100d0, 0x24cbaf99, 0x001e00f9, 0x03b41859, 0xe0ff250f, 0xf8ffc0ff, 0xf422bd82, + 0xb155f4ff, 0x20ad8205, 0x200b82f8, 0x210382f5, 0x0183ffe8, 0x2382f020, 0x3784c120, 0x1d001f22, 0x0f22fb82, 0x91830e00, 0x44200382, 0x63229f84, + 0xaf843500, 0xa7842420, 0xc784e320, 0xb2ffd622, 0xca20d784, 0xef8c3182, 0xcb972384, 0x37426720, 0x55c54513, 0x00520025, 0x83410016, 0x8d03868d, + 0x26888766, 0x00020002, 0x820d0007, 0x00112401, 0x84130012, 0x82142003, 0x82142007, 0x82122009, 0x000c2315, 0x39870006, 0x09860220, 0x00200785, + 0x5e850d86, 0x40001522, 0xff200885, 0x2105074c, 0x0b4cffff, 0xfffc2305, 0xa218fffc, 0xf2220bc7, 0x0182eeff, 0xe9ffea24, 0x0182e7ff, 0x0382e520, + 0xe8ffe924, 0x0f82eaff, 0x2205d94f, 0x82f5fff1, 0x5dfa2001, 0x4382069d, 0xff000023, 0x845985ff, 0x004f2205, 0x06674eec, 0x80180b20, 0x05200893, + 0x084fa318, 0x09820420, 0xb5820420, 0x073b4918, 0x03000423, 0x09f37c00, 0xf6fff822, 0xf3220182, 0x5d82feff, 0x0384fc20, 0xfafffb22, 0x17850182, + 0x7782f420, 0xf8fff728, 0x97fff9ff, 0x34822dff, 0x44000028, 0x2100cc00, 0x01821900, 0xd7451220, 0x860a2006, 0x0009245b, 0x82080009, 0x63062001, + 0x7c180a37, 0xf6200fef, 0xf2236b82, 0x83fff2ff, 0xffe726d7, 0xfff0fff4, 0x20f982f1, 0x24e982ed, 0xffe3ffe9, 0x0caf43a6, 0x17426320, 0x00942466, + 0x82120016, 0x000f2801, 0x000a0010, 0x1807000b, 0x220a5590, 0x82010001, 0x21028293, 0xb554eaff, 0x00002205, 0x860084ff, 0x84fe2007, 0xffff210c, + 0xff220787, 0xd582fbff, 0xd382f420, 0xecffee22, 0xea20e582, 0x2208856b, 0x82f3ffef, 0x82f92001, 0x6b2b892f, 0x088308cf, 0x02866482, 0xffeaff23, + 0x830a86bf, 0x0002217d, 0x03200185, 0x220c554a, 0x82170013, 0x00182601, 0x00180019, 0x2203821a, 0x820d0018, 0x000b22b9, 0x2207820a, 0x8213000d, + 0x86192001, 0x0011220b, 0x26218211, 0x00220019, 0x83b6005a, 0xb1ff2b57, 0xf9ff13ff, 0xf7fff8ff, 0xad82f5ff, 0xf6fff622, 0xf9220b82, 0xbb82faff, + 0x6b1afb20, 0xf5200869, 0xf6201582, 0x220c4558, 0x82040004, 0x00072161, 0x03216385, 0x22018700, 0x82050006, 0x820a2017, 0x057d4217, 0x08000822, + 0x69221182, 0x6b84d200, 0x34ffbc22, 0x2106bd60, 0x694bffed, 0xfff42405, 0x82edffe8, 0xf1831901, 0x83fc200d, 0x2c53842d, 0x00010000, 0x0252ff41, + 0x00d80226, 0x66034289, 0x0a447282, 0x220d940d, 0x480c002c, 0x04200859, 0x0221e382, 0x839e8500, 0x840a8205, 0x84012002, 0x00032805, 0x000f0010, + 0x8404001a, 0x074542d1, 0x00225485, 0x15820100, 0x22053541, 0x82080007, 0x000a2251, 0x0899700e, 0x33820520, 0xff214282, 0x200182fa, 0x200382f3, + 0x06314af8, 0xf7fff824, 0x934cf6ff, 0x19ea2006, 0x20084312, 0x201d82f5, 0x819918f8, 0x8339820a, 0xffff2702, 0xfeff0000, 0x0182fcff, 0x098fce18, + 0x61fffc21, 0xad4205e3, 0x83238208, 0x058d440b, 0x774a6f83, 0xfff12205, 0xcbff18f5, 0x09254a0e, 0x06000523, 0x05235500, 0x2f00152c, 0x24002400, + 0x1800b3ff, 0x01821f00, 0x27002728, 0x31003200, 0x1f823c00, 0xcf820d20, 0x3b190f20, 0x0d2008cb, 0x0820e382, 0x9122d582, 0x01824900, 0xff219e82, + 0x209782fb, 0x08eb68f8, 0x2005375f, 0xfbf618fe, 0x48a78308, 0x714205ad, 0x00082805, 0x0009000a, 0x8410000c, 0x000a2259, 0x224b8205, 0x82020004, + 0x06574101, 0xe928af84, 0xdcffe9ff, 0xceffddff, 0xbf280182, 0xb1ffbeff, 0xf9fff7ff, 0xfc200182, 0xf2200382, 0x2006694a, 0x261582f6, 0xffc4ffc4, + 0x19d7ffd6, 0x22086527, 0x82030002, 0x1805204f, 0x8308cda8, 0x0003225d, 0x830f8406, 0x1901207f, 0x20086301, 0x224982fc, 0x82f6fff8, 0x6ff42001, + 0xfa200a6d, 0xfa205b82, 0xfc221382, 0xda82fbff, 0x18000024, 0x31821900, 0x4aff202a, 0x4d034902, 0xb1005d00, 0x428cc142, 0x003125e7, 0x0e00bf00, + 0x0b000a00, 0x07000600, 0x03000400, 0x20008700, 0x200b8203, 0xed221a06, 0x82052008, 0x83038309, 0x82072025, 0x8211200b, 0x0004241d, 0x82f4ff09, + 0xfff52601, 0xfff2fff3, 0x240182f5, 0xffecfff6, 0x430182f0, 0xfd200def, 0xff205287, 0x860bc946, 0xfdff2114, 0x0cc35d19, 0x24056341, 0xfffafffa, + 0x240182f9, 0xffeffffa, 0x200182fc, 0x239f82f8, 0x000c000c, 0x09959618, 0x11001426, 0xe6001000, 0x0a201182, 0xbb85bd82, 0xbb8c0420, 0x27470520, + 0x4f092006, 0xd1830c8d, 0xe7821120, 0xf320bb8b, 0xf622c584, 0x6d82edff, 0xc982f020, 0x6f4df320, 0x9fbb890a, 0x90fb20a7, 0x820c20a7, 0x82142099, + 0xff1122a5, 0x20bf825f, 0x83ab820e, 0x820f20b3, 0x000f2511, 0x00ec01f6, 0x09e5be1b, 0x48070944, 0xfe200535, 0x23052f43, 0x08001e00, 0x0e230182, + 0x70000700, 0xfa240fd5, 0xf5fffaff, 0xf224a582, 0xf0fff3ff, 0xf13a0186, 0xbaffa3ff, 0xcaffb9ff, 0xdaffceff, 0xe0ffd9ff, 0xc4ffb5ff, 0x9fffc5ff, + 0x2182eaff, 0x54fff121, 0xe7430d4b, 0x00022705, 0xff040003, 0x534cffe2, 0x1f991905, 0x05a9410b, 0x0b207783, 0x0a22bbe4, 0xa7be14fe, 0xcb820020, + 0x56ff1b2c, 0x3f034f02, 0x97004b00, 0x8d43e300, 0x148b46b3, 0x251cc943, 0x0c00a800, 0xe5510600, 0x0aff4205, 0x04000222, 0x05220182, 0x07860300, + 0x05000622, 0x09210184, 0x05f34100, 0xf8fff726, 0xf9fff7ff, 0x22084563, 0x82ecffe5, 0xfff42201, 0x698319f4, 0x254c8208, 0x0000ffff, 0xeb18fdff, + 0xfd200883, 0x22080b6e, 0x82fbfffb, 0x82f7200b, 0xfffe2219, 0x0cdb74fc, 0x0800082a, 0x13001c00, 0xaf001400, 0x06209784, 0x02854682, 0xc6820120, + 0x2205c156, 0x84060002, 0x82052097, 0x21978507, 0x97830004, 0x05000122, 0xf8209382, 0xf9209982, 0x20081f51, 0x209582e4, 0x209582ed, 0x207182f3, + 0x494885fa, 0x7b82088f, 0xfb209d82, 0xfc200384, 0x9583c982, 0x9788fa20, 0x0a00fb24, 0x8d820700, 0x05840720, 0x09820820, 0x95821b20, 0x97981320, + 0x978f9b83, 0x43820320, 0x02000222, 0x1b4b9784, 0x41998705, 0x979b072f, 0xfb4bfc20, 0x05895106, 0xf6fffc2a, 0xfeffffff, 0x0900fbff, 0x08208b82, + 0x9d839582, 0x13329785, 0x7bff1400, 0x17001200, 0x1a001600, 0xff01ff00, 0x1f820b00, 0x04000824, 0x7d820300, 0x41000221, 0x1619078b, 0x00210831, + 0x22438221, 0x4a110009, 0x25820cbf, 0xff000023, 0x240182f7, 0xffedffee, 0x2a0182ea, 0xfe01ffe6, 0xfff5ff02, 0x82f9fff8, 0x48fc208b, 0x9f480a3d, + 0xff022209, 0x221f82df, 0x4ceffff7, 0xa5830873, 0x2005ff43, 0x20ab8209, 0x4397ec13, 0x974009b4, 0x00002eb7, 0x005d0003, 0x020c023f, 0x00170020, + 0x5b57182f, 0x6301234b, 0x5d820800, 0x2508e746, 0xfdfffcff, 0xe14ff8ff, 0x5efd2006, 0x0020064d, 0x04200082, 0x08242582, 0xaaff2000, 0x820dd347, + 0xfffc222d, 0x642f86f9, 0x2f840831, 0x82000421, 0x7101212f, 0x03205f84, 0x02841182, 0x5f892f82, 0x90202f93, 0x03203b84, 0x26206582, 0x20181f5e, + 0x867182b3, 0xaffe219b, 0x4e222f8a, 0x6f480600, 0x256b820b, 0xfffafffc, 0x2f8affd9, 0x00222d82, 0xcb820400, 0x26000723, 0x262fa500, 0x005e0003, + 0x410a023f, 0x0021517b, 0x14ff5ecd, 0x41055d51, 0x0121127b, 0x2d4b416f, 0x41a9ff21, 0x01202ddb, 0x412e7b41, 0xcb5f0c4b, 0x3dab4117, 0xf4000226, + 0x74013f00, 0x46067b41, 0xe7461cb5, 0x2edd4214, 0x41420021, 0xad425d31, 0x43042030, 0x5f200ef7, 0x42618148, 0x11206095, 0x428d4144, 0x714462c5, + 0x6702202d, 0x02230573, 0x18170020, 0x212465c5, 0x81630064, 0x08ff212c, 0x430ebd67, 0xff222ef5, 0x00830076, 0xed671420, 0x00032608, 0x023f0025, + 0x18af8644, 0x213a5782, 0xc9963402, 0xf8ffc122, 0x8308cb78, 0x0003227b, 0x22298204, 0x1830fe20, 0x2608615f, 0x00e9fea2, 0xad0e0200, 0x2fef443f, + 0xfe21f98f, 0x307b46fd, 0x2b000527, 0x3e023f00, 0x05c74702, 0x4f003723, 0x6bbf5600, 0x6f469b20, 0x79f92018, 0xd282085b, 0x82040021, 0x00072601, + 0x00d20120, 0x104f4708, 0x6b19f820, 0xfe21197d, 0x0d59423e, 0x966f0021, 0x4abf206f, 0x6a83053b, 0x6f870384, 0x6f9cd520, 0x2008374f, 0x06ff4100, + 0x432fbf41, 0xef412fe9, 0x2df94342, 0xd9820020, 0x3f002c2a, 0x20023c02, 0x57001700, 0x44742161, 0x1321314d, 0x22018300, 0x82110012, 0x00122607, + 0x000f0014, 0x2201820e, 0x840c000c, 0x00112409, 0x82020009, 0x82042001, 0x000d220d, 0x2015820d, 0x2403820b, 0x000e000c, 0x20378815, 0x08477e12, + 0xddffdc22, 0xde240182, 0xe6ffe8ff, 0xe4230182, 0x58fff8ff, 0xef200559, 0x0afb1c1a, 0xf4fff326, 0xdaffd9ff, 0x00230183, 0x47380100, 0xff215db1, + 0x2bd78259, 0x000b000b, 0x00060007, 0x00040003, 0x93820082, 0xfcffff22, 0xfb2e0182, 0xf9fffbff, 0xfffffdff, 0xfeff0000, 0xe919faff, 0x81540a5b, + 0x0007240b, 0x820a0009, 0x001b26f9, 0xffe2ff38, 0x069f76f2, 0x0d204f83, 0xb6484f82, 0x18082005, 0x20084f56, 0x06315401, 0x2982f220, 0xe5ffe524, + 0x63441fff, 0x00012930, 0x02e9002c, 0x0072013c, 0x43174e18, 0x41002c21, 0x00217cdf, 0x7d7f41e9, 0x00000022, 0x20094f41, 0x457d4943, 0x00f30025, + 0x820d000c, 0x000e2203, 0x205d8203, 0x20638201, 0x24098200, 0x00050003, 0x08f75611, 0x0e000e22, 0x14200b82, 0x200a2343, 0x820b8212, 0xdbff232a, + 0x0182daff, 0xc218d920, 0xf12a0853, 0xf0fff1ff, 0xf8ffefff, 0x0182feff, 0xe3fffc24, 0x0182e6ff, 0xdfffe824, 0x0182ddff, 0x3282db20, 0x12000022, + 0x12203b82, 0x11200582, 0x0f204f86, 0xf1207f84, 0x2108bd56, 0x00870002, 0x91820120, 0x651a0220, 0xb37f14a5, 0x00f02409, 0x1936001c, 0x280af707, + 0xfffffffe, 0xfffdfffe, 0x220182fb, 0x82fcfff8, 0x2202830d, 0x6dfafff3, 0x0f20061d, 0x1e28cb82, 0xc9ffe4ff, 0xf6fff2ff, 0xfa200182, 0xfb4d1982, + 0x00033007, 0x00000002, 0x002c0001, 0x023c0252, 0x414d0003, 0x0d4c4563, 0x0024230a, 0x5b5a0008, 0x057d4405, 0x0d860b20, 0x14000c22, 0x44081541, + 0xee261181, 0xecffebff, 0x8a18eaff, 0xf3200859, 0xeb260f82, 0xf8fff3ff, 0xc384f5ff, 0x0584f920, 0x8541f520, 0xffd92208, 0x51f518da, 0x00232608, + 0x00240025, 0x22f58226, 0x820d000c, 0x82042001, 0x00032645, 0x00040003, 0x203f8204, 0x204582f2, 0x281582f7, 0x00150015, 0x00200052, 0x20018230, + 0x1279692b, 0x44051547, 0x0520153d, 0x08204b82, 0x36243b82, 0x21003500, 0x084da718, 0xd2ffe222, 0xd8200182, 0x20085b5b, 0xdbac1802, 0x074d4408, + 0x1e00c922, 0x0f219582, 0x23008200, 0xfffffeff, 0x5c05957b, 0xde260848, 0xc7ffc6ff, 0x1582deff, 0xfcfffc2e, 0x2c000200, 0x3c028f00, 0x0700b501, + 0x71519541, 0x002210f1, 0x01861200, 0x13001124, 0x03821400, 0x0c000a22, 0xe3560182, 0x82112005, 0x07474611, 0x1a001b22, 0x08b7fd18, 0x4205c567, + 0xd38305d9, 0x46ffdc21, 0xf4210541, 0x240187ff, 0xfff3fff2, 0x2ad182f1, 0xfffbfffa, 0xff0000fd, 0x82f0ffff, 0x6cf1200f, 0xf3240879, 0xeeffecff, + 0x2006675d, 0x240782ed, 0x010000ed, 0x0de14a65, 0x6ceefe21, 0x04230a87, 0x18000300, 0x200ff9fe, 0x08f342f7, 0xfafff424, 0x1e82faff, 0x41000021, + 0x0a2007bd, 0x200afb45, 0x06fb45f1, 0x01000222, 0x087bc318, 0xc6180720, 0x368308a1, 0x05000722, 0x03203982, 0x02201d84, 0xfc206784, 0x53825b82, + 0xfff5ff23, 0x20b782f6, 0x2a1382e5, 0x002c0002, 0x013c02a6, 0x523f00c5, 0x55824b09, 0x207de945, 0x0d3d4a00, 0x003c0125, 0x820b0011, 0x00062201, + 0x0a794707, 0x47050f48, 0xfc221579, 0xa964ffff, 0x0f7d4106, 0xe2ff3727, 0xf2fff2ff, 0x30008300, 0x00060006, 0x0004000d, 0x00000001, 0x00080002, + 0x20018205, 0x47618202, 0x33200f79, 0x00211f82, 0x5d331900, 0x272f8208, 0x022e002c, 0x0046023d, 0x77b1b418, 0x0f00ad24, 0x01821700, 0x6c000f24, + 0x9d83d800, 0xffbbff27, 0x000a0030, 0x23178210, 0x000c000e, 0x098d7119, 0xd7820820, 0x0d000b22, 0x0f201382, 0x0e201b84, 0x255e0b82, 0x84092005, + 0xfff22637, 0xfff1fff0, 0x260182ee, 0xffedffed, 0x84f8ffec, 0x82f72001, 0x001a2649, 0xff0f001a, 0x221982f6, 0x82f5ffef, 0xffe02205, 0x200582e1, + 0x221182fb, 0x19fbffff, 0x4308eb74, 0xf320055d, 0xed204582, 0xeb221d82, 0x4382ebff, 0x5b830582, 0x87837982, 0x0b000b22, 0x0a208f82, 0x10210382, + 0x051b4a00, 0x18001922, 0x17260182, 0xe9fff2ff, 0x0582eaff, 0x8fffc822, 0x1d242f84, 0xf7ff5800, 0xf2220f82, 0xcb82f8ff, 0x2d821220, 0x16002e24, + 0x01822600, 0x1f841620, 0x82068141, 0x821820c7, 0xff1522fb, 0x065556fc, 0xed41ff20, 0x00022808, 0x00040002, 0x68050003, 0x07200873, 0x1b227782, + 0x0f193800, 0xb418085f, 0x18460925, 0x001a2205, 0x2001822a, 0x20ab821a, 0x2457820f, 0xffe2ff09, 0x200182cd, 0x224782e2, 0x82010005, 0x82062005, + 0x2051834f, 0x200d8204, 0x84858301, 0xfffa2e73, 0xfff5fffb, 0xffeffff4, 0x00caffe5, 0x20018207, 0x086f5806, 0x0d820320, 0x20071f4a, 0x282782fb, + 0xffecfff6, 0xffdfffde, 0x223d84eb, 0x84c3ffec, 0x82f22007, 0x82e920f9, 0xfff821eb, 0x2d050b44, 0x002c0003, 0x023c025a, 0x00470025, 0x5018004f, + 0xdd435ac7, 0xffdd2254, 0x08317ef4, 0x21056745, 0x9f43fff8, 0xffeb2605, 0xfff0ffef, 0x280182f3, 0xfff5fff5, 0xffecfff7, 0x200382ed, 0x830582ee, + 0x00eb2107, 0xf1770083, 0x0ffd430d, 0x73459d20, 0x00062208, 0x06734503, 0x0082ff20, 0x820c774b, 0x48fe200f, 0xf419054b, 0x03210cd3, 0x056b6200, + 0x0a00092a, 0x1c000d00, 0xe3ff3700, 0x22066f41, 0x70020000, 0x052108f3, 0x42598300, 0x0920050f, 0x6b107f4b, 0xf9220573, 0x0182f6ff, 0xe4fff123, + 0x51b518ff, 0x20cb820c, 0x0b9b4218, 0x2008f378, 0x06cb4117, 0x7ea5ca18, 0x2490ed41, 0x000a009f, 0x25018210, 0x006a000a, 0x008200d3, 0xffc0ff2b, + 0x00120040, 0x002f0034, 0x260f848b, 0x00a4ffe1, 0x82070003, 0xff042801, 0xffeffff5, 0x82f6ffee, 0x82f02001, 0xfff62409, 0x832cff97, 0x40002323, + 0x0f82c000, 0xd2ffcb24, 0x0f8474ff, 0x5e001f2c, 0xf9fffcff, 0xfcfff8ff, 0x4d820b00, 0x42011121, 0xfe278e35, 0x000c0044, 0x82160015, 0x44b08305, + 0x172207c9, 0xd9444300, 0x0005210c, 0x20059579, 0x28278207, 0xff07000d, 0xffebfff3, 0x089f7dea, 0x22053944, 0x44bcffea, 0xfb220c49, 0x0182f7ff, + 0xfafffa22, 0xf32b2d82, 0x2c000100, 0x3c020000, 0x1a007002, 0x267d6ddf, 0x000700e9, 0x820a000b, 0x00662205, 0x24af84ca, 0x0033ffbc, 0x06c74706, + 0x9f005022, 0xcc261384, 0x050064ff, 0x01820800, 0xb95c0720, 0x4e082006, 0x12200e65, 0xcb492784, 0xffde2405, 0x82fdfffc, 0x82ff2001, 0x000c2a2f, + 0xff08000c, 0xffe8fff1, 0x270582e9, 0xfff2fff8, 0xfff8fff3, 0x21050b41, 0xc778fff9, 0x09934405, 0xecffe922, 0x830bdd49, 0x23002353, 0x01822500, + 0x656e2820, 0x0010220a, 0x4b7d8210, 0x0229052b, 0xe7fff4ff, 0x52ffc6ff, 0x26008300, 0xff970032, 0x82f5fffa, 0xfffa2401, 0x8391ffc8, 0x22002312, + 0x8f826600, 0x7582f720, 0x0e00fc24, 0x01821900, 0x11000024, 0x01821c00, 0xd3411120, 0x2613930c, 0x0015000e, 0x5d130014, 0x03240a33, 0x06000300, + 0x0b220182, 0x4d820a00, 0x640da944, 0x4118059f, 0x0520079f, 0x092bfd82, 0xebff0500, 0xddffdcff, 0x4600ebff, 0x032005f1, 0x05221582, 0x45820500, + 0x2209eb4b, 0x82fdfffc, 0xfff922b5, 0x26b782f6, 0xffe4fff3, 0x821d00ca, 0x830e205b, 0x83ff209d, 0x05d94400, 0x236efb20, 0x24108205, 0xffe0fffe, + 0x0c5b42be, 0x3582ef20, 0xefffe422, 0xf422138c, 0x0182ecff, 0x82fff421, 0x4c398237, 0xc524071b, 0xb9005f00, 0x5950b14d, 0x31b831e7, 0x002c0025, + 0x180a0009, 0x260a134e, 0x00100008, 0x82140013, 0x000d2401, 0x820d000c, 0x00072601, 0x00070008, 0x22018206, 0x82090009, 0x00092113, 0x8305cf52, + 0x2023831b, 0x2025840b, 0x08c1420e, 0x12001222, 0x11210b82, 0x21008200, 0x0182eeff, 0x83ffef21, 0x84ee2001, 0xfff32305, 0x0383fff2, 0xf3220583, + 0x6b77f5ff, 0x2e298405, 0xfffeffff, 0xfff6fffb, 0xfff8fff7, 0x84f9fffa, 0x054f6101, 0x1782f920, 0x0384fc20, 0xe6fffc26, 0xebffecff, 0xee204982, + 0x83054947, 0x836d8439, 0x057f5373, 0xab841220, 0x9d480720, 0x82052008, 0x85bf83b7, 0x820820e3, 0x0d474dcb, 0xb7841820, 0x54823f8b, 0x8308bd69, + 0x7203838d, 0x0583054f, 0xa182f620, 0xbf18f620, 0x5f4d0aed, 0xffe02611, 0xffe4ffe3, 0x204384e7, 0x200584f6, 0x210582f7, 0x654dfff9, 0x00eb2405, + 0x823c0100, 0x82072085, 0x00052403, 0x82040005, 0x00032101, 0x2008077c, 0x05954eff, 0x0782fe20, 0x0219fe20, 0xfb20082b, 0x62086353, 0xfd200525, + 0x0ae1d01a, 0x46000421, 0x0a290535, 0x0d000b00, 0x37001b00, 0x058168ff, 0xf9fffa22, 0x22083358, 0x82020002, 0x24698325, 0x00060004, 0x200d8201, + 0x82e48201, 0x20058288, 0x377a1902, 0x8402200a, 0x05494319, 0x00202189, 0xfc226d82, 0x0182faff, 0xf5fff622, 0xe5225d82, 0x0f4e1cff, 0x00002311, + 0x1319ffff, 0x4f180901, 0xfd200add, 0x09055718, 0x19ffff21, 0x8f0a9d14, 0xff3822b7, 0x65b182f7, 0x476b052f, 0x41fc2005, 0x38820803, 0xbb48a982, + 0x20c7830f, 0x83b18202, 0x750d201a, 0xfe200895, 0x03852c82, 0x2605e743, 0xfff6fff6, 0x82e5fff0, 0x00012a24, 0x0217002c, 0x003d023c, 0x86b14383, + 0x09000226, 0x0f001000, 0x03240582, 0x05000400, 0x53430382, 0x22058705, 0x8225000c, 0x00242201, 0x0c0d4624, 0xe6ffea29, 0xe3ffe7ff, 0x45000d00, + 0x1221053d, 0x05bd4200, 0x27822620, 0xf4202b8f, 0x21056d43, 0x65820900, 0x59476782, 0xfff32206, 0x280982f8, 0xfff4fff3, 0xfff1ffec, 0x200782f0, + 0x06d142f4, 0x1182e920, 0xa942eb20, 0xffee2206, 0x207783ed, 0x05314600, 0x6f822620, 0x0c000b22, 0x574d0182, 0xff0e2405, 0x82fdfff2, 0x05096d01, + 0x5182f720, 0xf7fff922, 0xf8240182, 0xdbffd9ff, 0x53080952, 0x0b830b77, 0x0c243f83, 0xf6ff0d00, 0xf1227782, 0x5382f6ff, 0x15001628, 0x1c001700, + 0x01823000, 0xffff1c22, 0xff205384, 0x4e08d34a, 0x0e2409d1, 0x1b000e00, 0x38220182, 0xcb4ae2ff, 0x00072208, 0x22418206, 0x820a0029, 0x7f152001, + 0x2b870a33, 0x260bf54e, 0x00020001, 0x851d0003, 0x04002167, 0x06263982, 0xe5ff0300, 0x0182d7ff, 0x0800db24, 0x13820500, 0x03820320, 0x22057546, + 0x84fcff00, 0x05ff4adb, 0x2782f220, 0x200f3952, 0x20a984fe, 0x227582fc, 0x82f5ffd7, 0x4feb2001, 0x02200641, 0x2109c370, 0x0182f2ff, 0x3b84e420, + 0x0b001024, 0x0f6a0c00, 0x42ff200b, 0xe22205a3, 0x0182d0ff, 0x6d82e320, 0xfafffa25, 0x4d000000, 0x2624070f, 0x85003f00, 0x4b91d97e, 0xed585457, + 0x5300202a, 0x8b828a25, 0x210cc14d, 0xb14d9f01, 0x19fe2012, 0x59083fc6, 0xb14d0629, 0x07c54518, 0xc5450a20, 0x01081906, 0x09af5109, 0x01000122, + 0x4808a942, 0xf32f09ef, 0xe5fff3ff, 0x1cffe4ff, 0x0b000f00, 0x18000c00, 0x6a0b29af, 0xfa2407fd, 0xf7fffaff, 0x0895d918, 0x2209a553, 0x84040003, + 0x4e0a202f, 0x04221a29, 0x23820500, 0x46000221, 0xf682051d, 0x73490d82, 0x55032005, 0x7349085f, 0x82f2200b, 0x0f3b528b, 0x2c000327, 0x3c024600, + 0x05d74202, 0x7f45cb20, 0x63be8286, 0x17ae1435, 0x01150310, 0x89c7560e, 0x01910310, 0x441f200b, 0xe746891d, 0x0025240a, 0x1853004b, 0x5c60e742, + 0xec203d6f, 0x2208454f, 0x82edffed, 0xfff7220b, 0xaf121af5, 0xfff8220c, 0x240182fe, 0xfff0fffc, 0x560184f3, 0xde20071b, 0x211f7f5c, 0xf15746ff, + 0x1051460d, 0x9f5ca320, 0x05f74512, 0x61730720, 0x8201200a, 0xff002137, 0x20058b49, 0x2a9b82f9, 0x00f1fff5, 0x0037001b, 0x820a000f, 0x00072101, + 0x20093f54, 0x0aa75cfe, 0xb75ff720, 0x83fd2014, 0x2239824b, 0x5c1d000f, 0xf52108af, 0x756118ff, 0x0001240b, 0x4f65ff02, 0x0b540be9, 0x002b2816, + 0x013c0267, 0x181300f4, 0x212b3fa6, 0xcb843c02, 0xbeffac28, 0xd1ffbdff, 0x0782d2ff, 0xa9ffbe22, 0x00271383, 0x00430052, 0x82320042, 0x23078201, + 0x550041fe, 0x42240d82, 0x2e002f00, 0x56200784, 0xae203784, 0xce222f84, 0x0784ceff, 0x0000ae2e, 0x1500a001, 0xd9ff3f00, 0xedffedff, 0x01222182, + 0x8f821400, 0xd9822520, 0xdbffc826, 0xeeffeeff, 0x00261382, 0x12001200, 0xa582ecfe, 0x1b821320, 0xffff0022, 0xed28cf82, 0x1c00dbff, 0x25003800, + 0x12201182, 0xee205984, 0xdb304182, 0x0200e4ff, 0x20002c00, 0x3a023c02, 0x91004900, 0x8293c546, 0x002b249f, 0x82010080, 0x05294201, 0x2205b747, + 0x82080006, 0x000b2101, 0x0e220185, 0x01860600, 0x07840520, 0x0a000524, 0x1f820900, 0x04221583, 0xf1820400, 0x72003922, 0xe426f784, 0xfdffacff, + 0x0182fcff, 0xf7fffa24, 0x0182f1ff, 0x24050343, 0xffecffec, 0x06db4ef5, 0xc718f720, 0xf5220845, 0x0b79f4ff, 0x05134308, 0xabffe428, 0x56010000, + 0xd1180f00, 0x03200ce7, 0x08ad4619, 0x4b002522, 0xd6246784, 0x00007fff, 0x83083f7b, 0x205d8351, 0x206382f5, 0x2f3d19f3, 0xfffa2208, 0x200184fb, + 0x206382f5, 0x831584f8, 0xffff2499, 0x838effc7, 0x1c002343, 0xf5885500, 0x28055f5c, 0x000c0004, 0x00110010, 0x20018214, 0x20078211, 0x2209840f, + 0x84660113, 0x820b202f, 0x000a22f5, 0x22f98408, 0x82070009, 0x000c221f, 0x220f840d, 0x82040004, 0x7a002049, 0xfc20089d, 0xfb209982, 0xf4207582, + 0x54188f82, 0xe9210775, 0x22008300, 0x833b0014, 0x10002106, 0x0c206982, 0x13224f82, 0x15190f00, 0x0f190e21, 0xfb220b4b, 0x4182f6ff, 0xf4204583, + 0x20086150, 0x233f83ef, 0x95feedff, 0x0a228d84, 0x49820b00, 0x0b860a20, 0x95820720, 0x678b0420, 0xffe9ff23, 0x200182ee, 0x220382f3, 0x19f3fff4, + 0x5d0c83a5, 0x02210553, 0x053b5d00, 0x45820820, 0x1022fb83, 0x01821300, 0x63841620, 0xc5ffec22, 0xf9200784, 0x0c79a81a, 0x5382f920, 0xf0fff024, + 0x6918f7ff, 0x06220a0b, 0x29820600, 0x2306675d, 0x49003a02, 0x56cd9418, 0x42002c21, 0x834590ab, 0x922b4210, 0x1342ff20, 0x823c2007, 0xff0022ad, + 0x200582ec, 0x05135f03, 0x00650225, 0x451f0017, 0x01202b71, 0x4c31ef66, 0x2f410cf5, 0x82d62010, 0x00042111, 0x28539519, 0x6b06035d, 0xff21084d, + 0x0d5b4605, 0x07260d82, 0xf5ff2c00, 0xdb823c02, 0x0f000722, 0x0372df86, 0xf600214c, 0x02836582, 0x0300032d, 0xfbff0800, 0xfcff7500, 0x6c00f4ff, + 0xff210855, 0x22178282, 0x18f8ff0b, 0x20082746, 0x232c837e, 0xfcff0000, 0xf8240182, 0xc3fe0500, 0x17410f84, 0x0d23410b, 0x3b84d820, 0x2584fc20, + 0x04200483, 0x08244f82, 0x40002000, 0x03216382, 0x107b7200, 0x82650221, 0x00f52169, 0x820d3b7a, 0x26158237, 0x00f9fffc, 0x827aff05, 0x2002830c, + 0x28478204, 0xfffcff07, 0x000400f6, 0x0913720a, 0xffdfff25, 0x83c4ffec, 0x14002720, 0x00003c00, 0x5341f1fe, 0xa1ff210d, 0x2f48bb82, 0xffd92205, + 0xa7bb19b3, 0x8200200c, 0x82042051, 0x00272279, 0x5c05824d, 0x3d820677, 0x2c000426, 0x3c02f7ff, 0x67085f42, 0x8d6b4359, 0xd1ff212e, 0x221d2d49, + 0x6b000102, 0x01202cad, 0x224ea942, 0x410014ff, 0x2620073d, 0x41063d41, 0xf9220dd9, 0x6d41daff, 0x0004220c, 0x4f53412b, 0x412d0221, 0xb16c2d03, + 0x0e855e10, 0x4130c16c, 0x252c8153, 0x44028e00, 0x1700cd01, 0x37001f00, 0x2044016a, 0x14a5438c, 0xc5ffe322, 0x2714c56d, 0x006f001e, 0x00230160, + 0xff270082, 0x00defe9f, 0xbdcbff00, 0x4d01213f, 0x04284a82, 0x07000300, 0x42002100, 0x04210582, 0x0b574200, 0x8582fc20, 0xbeffdf22, 0x2009fd43, + 0x6b641800, 0xecff230c, 0x3f8aedfe, 0xd5434320, 0x07354c0c, 0xbdffdf22, 0x3d203f92, 0x00253782, 0x0400ecff, 0x50534100, 0x2216e970, 0x45c5ffe3, + 0x7e830a65, 0xf7820320, 0x1e000828, 0x61002bfe, 0x8f842201, 0xdefe9f26, 0x0f020000, 0x84099d45, 0xfffc2215, 0xa83982fc, 0x8053413f, 0x24065b49, + 0x2b00b501, 0x47556b00, 0x1f452c20, 0xffda2608, 0x0004008b, 0x23018602, 0x00010000, 0xff200082, 0x2a05a56d, 0xfffefffe, 0x00fdfffd, 0x18670034, + 0x8209c15a, 0x00282209, 0xdbc01978, 0xff06240e, 0x8296ffcb, 0xffe62119, 0x0997c419, 0x06000628, 0x18000d00, 0x05823000, 0x07000622, 0xfe224184, + 0x5182ffff, 0xfbfffc22, 0xfa240182, 0xa600e8ff, 0x79461583, 0x20098205, 0x20258209, 0x20358208, 0x22078207, 0x65080006, 0x082008a3, 0x0520a182, + 0x8205d762, 0x843b202b, 0x46ed2049, 0x6f8205b5, 0xf2fff223, 0x08a368ff, 0xec201b84, 0x0b222582, 0x01820e00, 0x4d181120, 0x18820811, 0x84f4ff21, + 0xfff02229, 0x83bd82f8, 0xfff92203, 0x200982fa, 0x201a82fb, 0x06134904, 0x2b00dc22, 0x22636550, 0x18007d01, 0x2209e35e, 0x84050005, 0xfff524b5, + 0x82ecfff5, 0xffe62401, 0x82e0ffe7, 0xffed2607, 0xffefffee, 0x22b582f0, 0x82f6fff3, 0xf7421801, 0x18042007, 0x220c794e, 0x82120011, 0x00152201, + 0x22058215, 0x418aff13, 0x0c22107f, 0x6b820f00, 0x10202383, 0x0d260982, 0x07000c00, 0x6f840600, 0xf420fb83, 0xa94d2f82, 0x82ee2005, 0xfff12269, + 0x1d374729, 0x00e70123, 0x83418209, 0x000e2253, 0x26018211, 0x001b0012, 0x83180017, 0x0a00217b, 0x58820182, 0x0c875319, 0xf1fff222, 0xee20c382, + 0xcb83c982, 0x0d82ef20, 0xe582f220, 0xf7fff522, 0x0afb1819, 0x4221cf83, 0xc98f1900, 0x000e2209, 0x200d820e, 0xbd55180c, 0x09901908, 0x50ff2122, + 0x00217882, 0x19194a00, 0x2207f34a, 0x8213007d, 0xe97a18b1, 0x005b2227, 0x22018237, 0x86360036, 0x83352005, 0xceff2365, 0x0182caff, 0xc7ffc622, + 0xc9240582, 0x0000ccff, 0x211f6d48, 0x1d50e201, 0xff013206, 0xffedfffe, 0x00dcffee, 0x0038001c, 0x00110024, 0x28518412, 0xffefffee, 0xffe4ffdc, + 0x9a0d834b, 0x000021c5, 0xf222c787, 0x53821d00, 0x300bad18, 0x82970021, 0x00382471, 0x821a0010, 0x820f2001, 0x001b2207, 0x2605821b, 0xff300018, + 0x82f6fff8, 0xfff52201, 0x240182eb, 0xfff2ffea, 0x22dd82e5, 0x84eafff2, 0xfff5220f, 0x201b82f5, 0x1e1b428e, 0xbd84d720, 0x3e002622, 0x26240182, + 0xc2ffdaff, 0xda200182, 0x13211384, 0x29a81800, 0x05ef460b, 0xccffdd22, 0xce200182, 0xe8246782, 0x7bffe8ff, 0xbf412784, 0x29f7b621, 0x15000c01, + 0x08003c00, 0x01820a00, 0x0b820b20, 0x16001524, 0x77820e00, 0xf0ffd022, 0xe5208182, 0xf1220582, 0x0182e6ff, 0xe7fff026, 0x0e00cfff, 0x15201d82, + 0x0b202582, 0xff212d83, 0x93f7a427, 0x070341e3, 0x83061341, 0xb4ff20e3, 0x200325f7, 0x2b002300, 0x38d35b18, 0x1400c724, 0x01822200, 0x2320d383, + 0xff230783, 0x82f2fff8, 0x82f92001, 0x261783e3, 0xffd4ff14, 0x84f9ffa6, 0x84f82013, 0x82f32007, 0x82138221, 0x8621201f, 0x82f3202f, 0x415e201d, + 0xe4281e09, 0x18000e00, 0x0e001700, 0xe9242b82, 0xf2ffe8ff, 0x26240b82, 0x16002600, 0x17201782, 0x0e210b82, 0x20008300, 0x26118216, 0xff170026, + 0x82daffe9, 0x83ea2001, 0x202f8412, 0x200582e9, 0x201384ea, 0x1e0d426a, 0x45000021, 0x032306af, 0x43130024, 0x99283609, 0xea004d00, 0xf5fff7ff, + 0x08336d18, 0xf0ffe826, 0xdeffefff, 0xe8200582, 0xe922bb82, 0x0182f4ff, 0x4800f522, 0x0f25a318, 0xfeceff23, 0x1e0741de, 0x2c050b5f, 0x001b0014, + 0x001e001a, 0x003a0037, 0x82f38239, 0x2edd82d4, 0xffc6ffc7, 0xffe2ffc9, 0x00e5ffe6, 0x82220020, 0x003a2219, 0x28758222, 0xffc7ffc6, 0xff0000de, + 0x36fba044, 0x00230007, 0x024602a6, 0x002b00df, 0x00810057, 0x00b300a1, 0x54c300bb, 0x315b9361, 0x9b002231, 0x05014800, 0x85000521, 0x0000253c, + 0x0014000b, 0xff230082, 0x84e6fff8, 0xfffb2407, 0x82fafff9, 0x0541600d, 0xedfff626, 0xf1fff0ff, 0x0cd31119, 0x06000522, 0x0c283582, 0x10000f00, + 0x0a001300, 0x09265182, 0x09005301, 0x3f831800, 0x000e0023, 0x22478429, 0x83d6fff3, 0x20038207, 0x246b8202, 0x00040004, 0x20018206, 0x202f8209, + 0x261f8416, 0xffe9fff8, 0x82f3ffef, 0x82f92001, 0x0783736d, 0x0b820020, 0x2605cf53, 0x00170008, 0x84c4ff00, 0x82ee202b, 0x82ee2085, 0x84de202d, + 0x00fe2307, 0x0b520032, 0x82002005, 0xfffa22a9, 0x209d82f5, 0x23a582ef, 0xffeaffeb, 0xf2202583, 0x0a91f919, 0x9d820720, 0x93820d20, 0xe5821320, + 0xad821820, 0x13001324, 0xc37bbdfe, 0x8203200a, 0x82082097, 0x820a2023, 0x000d22d1, 0x209d820d, 0x220d820a, 0x49030008, 0xff21050f, 0x200182fd, + 0x06bd45f8, 0xf524ab83, 0xbd00f6ff, 0x0520cf82, 0x0e20378a, 0xf5195f82, 0xff230cb9, 0x42c4fed9, 0xdb201ec3, 0x07243f82, 0x09000600, 0xf724c182, + 0xfbfff7ff, 0x0022e783, 0x17540042, 0xffe72405, 0x5e0800b3, 0x0220083d, 0x08f7201a, 0xf2fffa22, 0xee200182, 0xe920e582, 0xee20eb84, 0xf220e982, + 0x08256119, 0x01202783, 0x29224784, 0x07847c00, 0xf1820620, 0x04220883, 0x4f840c00, 0xd5820620, 0x4d820420, 0x85000221, 0x86062000, 0x05ef551f, + 0x4982f920, 0x20055755, 0x069167fb, 0x9757f920, 0xd7ff2305, 0x3f828dff, 0x55481620, 0x0010240a, 0x84210010, 0x00042544, 0x0016000b, 0x0f7b7919, + 0xd782f920, 0xe820ab89, 0xab85b182, 0x27099372, 0x00270003, 0x000d000a, 0x8305e948, 0x820a2007, 0x1a04200f, 0x200caf8b, 0x20df82f6, 0x08d341f3, + 0x5a18f620, 0x05220c99, 0xaf415100, 0x09b36508, 0xfcfffc22, 0x08dd4c18, 0x0000f324, 0xef431dff, 0x07f34720, 0x994adb20, 0x6f002363, 0x37410b00, + 0x3b761806, 0x820e2009, 0x691120c7, 0xb1820919, 0x22000b22, 0x02830582, 0x05000524, 0x27410a00, 0x84102006, 0x830f2023, 0x88038216, 0xfaff2347, + 0x1219fbff, 0xea2808c1, 0xe8ffe1ff, 0xf0ffe9ff, 0xf8231582, 0x45fff9ff, 0xf324057f, 0xf1fff2ff, 0xf3202382, 0xf6220f82, 0x0182f7ff, 0x70fff921, + 0x198206b3, 0x0000e624, 0xaf42bdff, 0x82d3201e, 0x00002c71, 0x006d0025, 0x000e0014, 0x820b000f, 0x829b8301, 0xeeff2116, 0xdc240182, 0x99ffccff, + 0x23a50c82, 0x75002724, 0x49821a00, 0x5b181520, 0xf2200cc5, 0xe5208b82, 0x0b205d82, 0x0720ef82, 0x23091d4f, 0xfdfffeff, 0xfa20cd82, 0xf826b582, + 0x0800f4ff, 0x01820c00, 0x82000821, 0xbfff2300, 0xdf41d1fe, 0x07cb4620, 0x4b003826, 0x6b006300, 0x21773173, 0xb5820f01, 0xad842420, 0x01000022, + 0x02200782, 0xb3430384, 0x00052205, 0x22ef8204, 0x8203000b, 0x18062001, 0x230fc5ea, 0xf9ff0000, 0x4d430182, 0x19ed2005, 0x20088192, 0x2a3f82e8, + 0x00190000, 0x00160017, 0x190d0014, 0x18106d9f, 0x28091151, 0xfffafffb, 0xfffdfff4, 0x200782fe, 0x1a4b84f5, 0x210beb65, 0x5d550022, 0x0abf4f08, + 0xf3fff922, 0x820b9545, 0x00042219, 0x22298204, 0x4209ff06, 0x02211d29, 0x202b8231, 0x22cd8200, 0x820b0016, 0x0008232f, 0x09590005, 0x82032007, + 0x0004240b, 0x820a0006, 0x84022011, 0x00092207, 0x08796d09, 0x59000a21, 0xfa2011b1, 0xf326ad82, 0xe3fff1ff, 0x26191000, 0x4b6808cb, 0x82fa2005, + 0xfff7219d, 0xfa20cd83, 0xe183d582, 0x2005f34e, 0x20e782f6, 0x08bd6afd, 0x3f82f920, 0xf6fff622, 0xf422cb82, 0x978289ff, 0x03000422, 0x0b229982, + 0xd1551500, 0x2033820d, 0x222982fc, 0x4febfff5, 0xff210977, 0x1e594292, 0x2c000129, 0x3c021100, 0x18004902, 0x24399bf4, 0x0017007d, 0x24018227, + 0x006c0017, 0x296f83d7, 0x3dffc0ff, 0x1d001100, 0x05821e00, 0x6f003722, 0xe7221384, 0xad18b4ff, 0xf42e089b, 0xecffedff, 0xd8fff4ff, 0xafffaeff, + 0x1f830dff, 0x00400024, 0x6818ffc1, 0xc92007dd, 0x1930b786, 0xf1ff4b00, 0xe7ffe6ff, 0x0c00f0ff, 0x13001400, 0x1c244f82, 0x2e002f00, 0x08a1a618, + 0x3b843d20, 0x22001524, 0x1f822300, 0x14220c83, 0x06833c00, 0x1f222b82, 0x05822000, 0x0e000922, 0x0a240182, 0x9dffcfff, 0xc9568784, 0x227f8206, + 0x74deffdd, 0xed220e4d, 0x0182e1ff, 0xf6ffee22, 0xf1207582, 0x24083b67, 0x00070000, 0xb367180f, 0x127b791b, 0x550daf57, 0x01210e05, 0x0e9541b0, + 0x4f571920, 0x110b730e, 0x63820120, 0x3c020525, 0x18005702, 0x2748ef78, 0x0800cf00, 0x0d000c00, 0xfd760582, 0xffb92a07, 0x000b002b, 0x003c0022, + 0x239183b3, 0x6affceff, 0x27220f84, 0x0f847400, 0xa8ffe322, 0x0895b218, 0xeafff322, 0xf9690182, 0xfff22605, 0xff93fff9, 0x2f238327, 0xd7004800, + 0xf3fff7ff, 0xf8fff2ff, 0x5effafff, 0x33221384, 0x13889800, 0x24050352, 0x001e0000, 0x2035825a, 0x227f82eb, 0x82160017, 0x00102655, 0x001a001b, + 0x0cf36f10, 0x890fd771, 0x05e3410f, 0x11000b28, 0x0a001200, 0x03820600, 0x05000a2a, 0xe5fff0ff, 0xf0ffe4ff, 0x6f0ce741, 0x1393137b, 0xd7fff224, + 0xa582faff, 0x0400f622, 0x2006fb71, 0x06f74151, 0x336f6d18, 0x5a0ef141, 0x0f8f0fd5, 0x42010221, 0xff202d11, 0x2c0f2142, 0x002b0002, 0x013b0200, + 0x001900ff, 0x23e54b21, 0x21530220, 0xffe63a05, 0xffddffde, 0xffb9ffda, 0xffb7ffb6, 0x001a00cf, 0x00220023, 0x00470026, 0x2001824a, 0x0cd15330, + 0x7cff8422, 0x2a0e3545, 0x00150079, 0x00070040, 0x8209000a, 0x00142103, 0xf15e0183, 0x00092405, 0x8213000b, 0x00132e0f, 0x001d000e, 0xffd9ff3a, + 0xffedff8b, 0x206982c4, 0x18e98d12, 0xa909db6e, 0x126f43bb, 0xaf843120, 0xb9824720, 0x1a22bf83, 0xcd82cfff, 0xd582b620, 0xdf84d920, 0x6582e620, + 0x240f9141, 0x00270079, 0x20a18274, 0x2607823b, 0xffeaff75, 0x82f2ffbf, 0x82ec20a1, 0xfff52203, 0x230182f7, 0xfff3fff8, 0x2205a963, 0x82f6fff6, + 0xfff9240f, 0x904fffe3, 0x00032ebb, 0x02afff2b, 0x002c023b, 0x00210019, 0x23794129, 0x85000121, 0x44814101, 0xa620d58f, 0x24189141, 0x000a000a, + 0x26ef8213, 0x000d0015, 0x4139001d, 0xc5200691, 0x91410782, 0x46ff210e, 0x200d8d44, 0x21e3ba00, 0x31422b00, 0x0000270e, 0x00490031, 0xa941004a, + 0x0f814209, 0x3d457c83, 0xa600251c, 0x75002700, 0xb941cb82, 0xffeb2a05, 0xfff3ffbf, 0xffecffeb, 0x080361ed, 0xf7fff922, 0xbf410b84, 0xfff32405, + 0x414effe4, 0xe3900db9, 0x2b000224, 0xc74164ff, 0x414b2006, 0xbd4e2bc5, 0x33e74121, 0x000a002d, 0x0017000f, 0x000e0018, 0x83ce0068, 0xc8ff25bb, + 0x090055ff, 0x0f260f82, 0x3d000800, 0x13847800, 0xb5ffe728, 0x10000500, 0xfb82f4ff, 0x0582ed20, 0xe9fff129, 0xf1ffe8ff, 0x48ff99ff, 0x392a05bf, + 0xf5ffac00, 0xd2ffdeff, 0x2f8376ff, 0x0019002b, 0xfffcff4c, 0x000b00f1, 0x42018213, 0xfe21322b, 0x08e95049, 0x14205083, 0x07838982, 0xad820820, + 0x97820e20, 0x9b451385, 0x82052005, 0x000a2213, 0x21018212, 0xd318ff0a, 0x7f470b9f, 0x75978207, 0xfb200c0f, 0xf5252582, 0xefffefff, 0x5a8b4100, + 0x20348f42, 0x648b418e, 0x2130d342, 0x8b4185fe, 0x00012862, 0x0200002b, 0x185b023c, 0x2450a7a7, 0x001200c3, 0x2901821b, 0x00360018, 0x00470046, + 0x00820056, 0xffbaff23, 0x300182c4, 0x001800d0, 0x00060007, 0x0029000c, 0x0030002f, 0x261b8435, 0xffddffda, 0x82e1ffde, 0x00142815, 0xff0d0014, + 0x82e8fff1, 0xfff22401, 0x82e5ffed, 0xffe82401, 0x82b9ffca, 0x05dd673f, 0x3c004722, 0x30280182, 0xfaffe7ff, 0xf3fffbff, 0xea222382, 0x2d82eaff, + 0xe6ffe922, 0xe4201382, 0x00234f83, 0x82230026, 0xff1e2401, 0x82ecfff4, 0x00f42201, 0x2075820e, 0x28198218, 0x00320022, 0x002d0033, 0x28358202, + 0x00d8ffec, 0x0038001c, 0x22ad8221, 0x82050011, 0x000c2c15, 0x0017000b, 0x000f0009, 0x83190010, 0xefff211b, 0xf2225f82, 0x3d82f6ff, 0x25002522, + 0x07201b82, 0x0b222182, 0xab820700, 0xceffce28, 0xfeffd3ff, 0x01821300, 0xe4ff2826, 0xdfffc8ff, 0xef202d82, 0xd3209182, 0xf5247582, 0xfcffe9ff, + 0x2408134e, 0xfff6fff6, 0x5a2383f3, 0x0a20068d, 0xda221d82, 0x0582daff, 0xf5fff924, 0x9782f5ff, 0x2c00022a, 0x3c02f3ff, 0x43006802, 0x54df7318, + 0xb7820120, 0xa9821220, 0x20000a26, 0x30002f00, 0x1922eb82, 0x01821600, 0x7b821020, 0x99820020, 0xd6ffd522, 0xea220182, 0x0182ecff, 0x6974f120, + 0x00232208, 0x20018239, 0x24238622, 0xffd0ffd1, 0xe9ab18e4, 0xfff12208, 0x20bf82e8, 0x22bf82f1, 0x82eeffee, 0x82ed20df, 0xffe82a0f, 0xffcfffe5, + 0xffcdffcc, 0x253383dd, 0x94003100, 0x1d82f4ff, 0xf4ffee26, 0x17000f00, 0x16240182, 0xdbffebff, 0xea240182, 0x2e001c00, 0x1c200182, 0x29059749, + 0x2100f3ff, 0x37003600, 0x2f822100, 0x3182ef20, 0xf7ffef24, 0x0182f8ff, 0x2782fa20, 0x0a003a22, 0x0f243d82, 0x08000e00, 0x07227d82, 0x99730500, + 0x000c2208, 0x20018214, 0x8423830d, 0xffef2287, 0x22d382f5, 0x82220023, 0x00052205, 0x242d8206, 0xffe0ff04, 0x200182cb, 0x206784df, 0x4ca784f7, + 0xe620059f, 0xee26a782, 0xdfffc8ff, 0x0582c7ff, 0xfcffde27, 0xf9fff9ff, 0x22638301, 0x820c000c, 0x000a2269, 0x24018210, 0xffefff0a, 0x41f582e3, + 0x3f20099f, 0x24502d43, 0x000b00ea, 0x83018212, 0x00182a05, 0x001a0019, 0x00330032, 0x2ac58234, 0xff000000, 0xffc2ffdc, 0x82dbffc3, 0x83132023, + 0xf2ff2123, 0x24067741, 0xffedfff6, 0x22f582ee, 0x82eaffef, 0xffe72401, 0x82d1ffd3, 0x82e02001, 0x00002432, 0x82b0003a, 0xfff022e9, 0x200582f1, + 0x20df82de, 0x068f41c7, 0x30001c26, 0x1d002f00, 0xf425e982, 0xf9fff4ff, 0x05154300, 0x06006624, 0x01820900, 0x1600062c, 0x24002500, 0xe4ff1600, + 0x0182d2ff, 0x2000f324, 0x01823500, 0x1f862120, 0x13000a22, 0x14220182, 0xa1820c00, 0x3b823420, 0x17001622, 0x21200582, 0x41062342, 0xdf26076f, + 0xc9ffcaff, 0x3384dfff, 0x55820820, 0x2205255c, 0x82e3ff0c, 0x82eb2087, 0xffe322c9, 0x200182d0, 0x079943e4, 0x00211783, 0x22d9820a, 0x820b0011, + 0xffde22c7, 0x410582dd, 0x0320058b, 0x1c261582, 0x12001c00, 0x2d82f8ff, 0x0582f420, 0xf0fff631, 0x0200f0ff, 0x8dff2c00, 0x5d023c02, 0x18005300, + 0x2263e353, 0x820800e3, 0x000d27f3, 0x00660007, 0x008200cb, 0xffbbff23, 0x20138230, 0x2415820b, 0x000f0008, 0x24018215, 0x002b0016, 0x2001822c, + 0x261f841c, 0xffbeffd8, 0x84d8ffbd, 0x820c2037, 0x05db4237, 0x1b842020, 0xd4ffe622, 0x08c16419, 0xff231b82, 0x82e7fff1, 0x05474301, 0xf5ffef24, + 0x0f84edff, 0xcdffe524, 0x0182cbff, 0x24054743, 0xff9d0034, 0x202982f7, 0x220582f2, 0x8394ffca, 0x22002747, 0xfaff6400, 0x1182f6ff, 0x1000f924, + 0x01821900, 0xecff4224, 0x0182dfff, 0x1800ec24, 0x01822800, 0xfcff182e, 0xf8fff9ff, 0x16008dff, 0x23002400, 0x38830582, 0x47001421, 0x152005c3, + 0x23224182, 0xa5441400, 0x758d1806, 0x1c002308, 0x8f423900, 0x82162008, 0x83378335, 0x000e26e5, 0x001d0009, 0x5ded183a, 0x84152008, 0x0015221b, + 0x24e58204, 0xff040008, 0x20b182e1, 0x200582cc, 0x065d5ffb, 0xf0fff122, 0xf522b182, 0xc582e6ff, 0xd2fff122, 0xd524d582, 0xe7ffd6ff, 0x2410bf4d, + 0xffefffe5, 0x263382fb, 0x008d01f8, 0x82090005, 0x00052101, 0x22056545, 0x82f4ff06, 0x41ed20d1, 0x59200aef, 0x69754a19, 0x41b70021, 0x752208f5, + 0xb584e800, 0x0fffb022, 0x2408f541, 0x00180012, 0xfbc41819, 0xdaff230d, 0x0182c0ff, 0x0a00da23, 0x05a94300, 0xf382f120, 0x41ffe621, 0xed2605d9, + 0xf0fff6ff, 0x0182ebff, 0xd5ffe928, 0xd4ffd3ff, 0x5383e2ff, 0x430e0021, 0x27220653, 0x01822800, 0x99431a20, 0xdeff2707, 0xc8ffc9ff, 0x2384deff, + 0x2d001c2a, 0x1b002e00, 0xf7fffbff, 0xfb240182, 0xb1ffd9ff, 0x16221784, 0xd5444300, 0x07014206, 0x03009a28, 0x06000700, 0x55820400, 0x20002126, + 0xe9ff1300, 0xda202d82, 0x42180142, 0x05200515, 0x07203382, 0x0f21d982, 0x20018300, 0x22d5820a, 0x840c0034, 0x000c24c3, 0x8234001e, 0x411f2001, + 0xcc240ae5, 0xe0ffcdff, 0x0f658718, 0xffe3ff23, 0x6d5d18c6, 0x052d5e08, 0xeb82f920, 0xc782dd20, 0xb382eb20, 0xf1fff022, 0xe3220582, 0x6582c8ff, + 0x0d000d26, 0xf0ff0900, 0x097d8618, 0x354aff20, 0xffef2307, 0x0d42ffe4, 0x00882409, 0x8214000b, 0x860b2001, 0x82fa20f7, 0xfff522eb, 0x24f982f6, + 0xff2b0002, 0x060f4fec, 0xcf4b6120, 0x15f14b4d, 0x2133e54b, 0x41187cff, 0x13220ea5, 0x0e191000, 0x0f200831, 0x51180982, 0x122225eb, 0xcf7b1100, + 0x4346180a, 0x18ec202b, 0x2208a74b, 0x82ebffec, 0x32cf4f43, 0x82fefe21, 0xcf5118b3, 0xcb4b1809, 0xfffc2109, 0xa5780183, 0xfff12231, 0x248982f2, + 0x00020000, 0x08ad7201, 0x15574618, 0xf5840120, 0xfefffd28, 0xfafff9ff, 0x0182f6ff, 0xe5fff022, 0x4c73fb41, 0x47511255, 0x4eff200e, 0x4c1813e5, + 0xfb410d1d, 0x0f0f5181, 0xf6fff924, 0x0382f7ff, 0xedffec26, 0xf2ffecff, 0x08377f19, 0x0d82ec20, 0xf3ffec26, 0x3bffe3ff, 0x2694fb41, 0x023b028d, + 0x7c83005d, 0xe32892ed, 0x0d000a00, 0x0b000e00, 0x06240782, 0x02000600, 0x01240184, 0x09000100, 0x04200984, 0x8306fd43, 0x820d201f, 0x440f2029, + 0x45180e1f, 0xe8220dc5, 0x0182e6ff, 0x19ffe421, 0x200d1b14, 0x205782fd, 0x2261820a, 0x190f0006, 0x2408fbd5, 0x002c002b, 0x0875481d, 0x7548be20, + 0x000d2906, 0x00210007, 0x00360035, 0x200b7548, 0x0abd4be6, 0x220d7548, 0x82cbffdd, 0xffcc2301, 0x1783ffe5, 0x4f83ed20, 0x00340023, 0x067b439d, + 0xfdfff724, 0x0382f9ff, 0x18fff721, 0x220fb951, 0x18260025, 0x4808a551, 0xe52c0785, 0x1900b0ff, 0x27002800, 0xfbff1900, 0xf9264182, 0x1a008dff, + 0x0f822600, 0xcf822220, 0xfefffd22, 0x0c13fc18, 0x0082ff20, 0x6d18fe20, 0x1d86080f, 0x03227f82, 0xed820300, 0x83000621, 0x000e27ef, 0xff37001b, + 0x3f44ffe3, 0x82072007, 0x180d2019, 0x200cb9fb, 0x220d8200, 0x821e0013, 0x48122001, 0xf32108d1, 0x240183ff, 0x001c00f8, 0x20d1483a, 0xf8fff423, + 0x05114900, 0x2211d148, 0x82f0fff6, 0x74f12079, 0xd1480849, 0xffed2207, 0x200182e4, 0x86ab82e7, 0xf3ff2502, 0xe5fff2ff, 0x46180182, 0xff230845, + 0x82d9ffe8, 0x48e82001, 0x072008e1, 0x07206582, 0x0b288d82, 0xf4ff0700, 0xecffecff, 0x02233a82, 0x42ff2b00, 0x912205d7, 0xcf469b00, 0x15e54663, + 0x002515a3, 0x000a00b7, 0x2001820e, 0x28c3820d, 0x00080009, 0x00060005, 0x20138209, 0xb958180d, 0x000d2a12, 0x000d000c, 0x00240026, 0x95421825, + 0xb158180e, 0x0976180f, 0xfffa2409, 0x82fdfffa, 0x000a2255, 0x2a598209, 0x00190012, 0x001b0018, 0x4d340031, 0xda22080f, 0x6549c1ff, 0xffe82422, + 0x19d4ffd5, 0x49083b60, 0x15200565, 0x282a8b82, 0x1a002900, 0xf5fff8ff, 0x0582f4ff, 0x240d6549, 0x002f002e, 0x089d6a1b, 0xf2fff126, 0xf0fff1ff, + 0xee230182, 0x43ffeeff, 0x12210511, 0x24018500, 0x00030003, 0x21018904, 0x2b82f9ff, 0xf8fff223, 0x05014300, 0x05009a36, 0x13000f00, 0x1f002000, + 0xe9ff1300, 0xdbffdaff, 0x1c008dff, 0x2a227982, 0x4f182500, 0xfe22088f, 0x0b82fcff, 0x677ffa20, 0x82fa2008, 0x376e180f, 0x83002008, 0x000d2200, + 0x42fb820d, 0x042113f9, 0x05ac4100, 0x83056344, 0x2209838d, 0x84110000, 0x8211202f, 0x0007217f, 0x8311d149, 0x000c24bb, 0x4935001e, 0xc7244ad1, + 0x0e000800, 0x0924a782, 0xf2fff7ff, 0xf4210182, 0x22d787ff, 0x82f6fffb, 0xfff22601, 0x00caffe5, 0x05f1420f, 0xbd85b588, 0x05510120, 0x05ff4b08, + 0x27828920, 0xed492e20, 0x293f820a, 0x2b000200, 0x3b02aaff, 0xe7184502, 0xc949459b, 0x00232232, 0x2a01822d, 0x005d0033, 0xfe610062, 0x83400030, + 0x200d8207, 0x22158233, 0x5922002e, 0x19480c45, 0x00bd2221, 0x23418216, 0x00090008, 0x200bb357, 0x830d8207, 0x00132211, 0x59018214, 0xec360955, + 0xf6ffc5ff, 0xf3fff2ff, 0xe4fff1ff, 0xe3ffe3ff, 0x1300dafe, 0x01821d00, 0x0f001c24, 0x01820d00, 0x1a000b27, 0x26003500, 0x05e55800, 0x2007d547, + 0x06c547ed, 0xf7fff822, 0xf6213f82, 0x200f83ff, 0x204582eb, 0x4f4f41e3, 0x412b0021, 0x0f581c0f, 0xffd0220f, 0x2d0182b6, 0xffdaffb9, 0xffddffde, + 0x020000e6, 0x00820010, 0x8e104149, 0x0c634137, 0x210c8f41, 0x0f41bd00, 0x000e260c, 0x001a000a, 0x0af55935, 0x3b58ec20, 0xfff72406, 0x58f9fff6, + 0xe427104b, 0x1500b3fe, 0x41004100, 0x0b20057f, 0x7f414b82, 0x000d2105, 0x13200783, 0x28069541, 0x001d0007, 0xffd9ff3a, 0x204b828c, 0x4d7c18c5, + 0xffe43208, 0x00e3ffe3, 0xff2b0003, 0x023b0244, 0x007500ad, 0x92954881, 0xc382d320, 0x11001122, 0x14240582, 0x1a001b00, 0x3722c982, 0x01823800, + 0x82002521, 0xf1ff2100, 0xed26d182, 0xd7ffeaff, 0x0182d6ff, 0x0400e424, 0x25820800, 0x28002824, 0x91182600, 0x2783088b, 0x70ffd022, 0x0c221982, + 0x05820c00, 0x30001c22, 0x1c200182, 0xe9223f84, 0x0182daff, 0x0600e924, 0x01820d00, 0xf9180620, 0xf6260835, 0xefffeeff, 0x5d82f6ff, 0xe6ffe528, + 0xc9ffe3ff, 0x0182c7ff, 0x3383db20, 0x9c180020, 0x2a2c09f5, 0x1c002a00, 0xf8fffcff, 0xedfff2ff, 0xec240182, 0xd8ffd9ff, 0xe6208b82, 0x24262784, + 0x3c003d00, 0x1d822500, 0xf3fff42c, 0xe2fff9ff, 0xd0ffd1ff, 0x1b84e3ff, 0x27001726, 0x17002800, 0xf3241582, 0xf9fff4ff, 0x1a205382, 0x6520db82, + 0x23076d47, 0x2f001c00, 0x1d220182, 0x3d82fbff, 0xf8fff922, 0x0820d784, 0x18200582, 0x2305cb60, 0xd2ffe4ff, 0x44204d82, 0x08d98918, 0xd7820520, + 0x09000826, 0x11001000, 0x53430182, 0x82042005, 0x820620d5, 0x20f58303, 0x20fd840d, 0x248b8419, 0xfff5fff4, 0x280182fa, 0x00fbfffb, 0x0039001d, + 0x8589830e, 0x07002357, 0x01820d00, 0x17820820, 0x9b823a20, 0x2982f520, 0x1600f924, 0x01822400, 0x7d821720, 0x1f820720, 0xe1ff0524, 0x0182cbff, + 0x4182e020, 0x4f82f820, 0xf0fff824, 0x0182efff, 0xe6fff522, 0x9f181582, 0xf3830901, 0xf782f820, 0x3782e820, 0x05000622, 0x0b2a8784, 0x08000c00, + 0xc6ffe3ff, 0x3582f6ff, 0x0582f020, 0xd9ffe922, 0xe9200182, 0x82079351, 0x00c7231b, 0x27830007, 0xeaff0726, 0xdcffdbff, 0xfc200582, 0xf9228982, + 0x41861602, 0xd9180620, 0xf2260873, 0xe8ffe8ff, 0xaf82d9fe, 0x18001824, 0x8f820d00, 0x5182f520, 0x4b85fa20, 0x240ad742, 0x0087007b, 0x95954893, + 0x82d30021, 0x001422eb, 0x22058213, 0x82370025, 0x00352601, 0x0019001d, 0x2c11821a, 0xff000000, 0xffcdffdf, 0xffcfffce, 0x22e982e6, 0x47eeffe9, + 0x05260615, 0x16001000, 0xf3821500, 0x2e002d22, 0x1e200182, 0x00242a82, 0x5affc9ff, 0x2208d347, 0x82400027, 0x84272001, 0xffe52217, 0x200182d2, + 0x246182e4, 0x00140015, 0x08e1420b, 0xecfff42a, 0xf4ffedff, 0xc8ffdcff, 0xcb223b82, 0x6582e3ff, 0xecffe722, 0x00213383, 0x265b8212, 0x001a0018, + 0x82330031, 0xff212401, 0x82f9fffc, 0xfffb2401, 0x82d1ffe1, 0x82d3204b, 0xffea248d, 0x84efffeb, 0x181c202b, 0x200dcd97, 0x053f7fff, 0xbafffd24, + 0x1f8675ff, 0x2f002f24, 0x2b4a1c00, 0xf4ff2105, 0x2206e942, 0x820200c4, 0x000322ad, 0x715d1801, 0xfff72808, 0xffeffff0, 0x18f8ff46, 0x20081b58, + 0x22e78210, 0x82ffff0a, 0xfffe2c51, 0x00240044, 0x003c003b, 0x84f5ff24, 0xfff12227, 0x279182f7, 0x00fafff8, 0x0039001d, 0x24054563, 0x0007000e, + 0x24038206, 0x000e0005, 0x21c18217, 0x0143000e, 0x001d220f, 0x203d823a, 0x207382cf, 0x6023820e, 0x2d430705, 0x00082205, 0x2013820d, 0x20678208, + 0x2067823d, 0x08ed4225, 0xc4ffdc22, 0xdc230182, 0x83000b00, 0x820f208f, 0x00072a6b, 0xff060008, 0xffc6ffe3, 0x208382fb, 0x220382fa, 0x82f3fff2, + 0x82f720b5, 0xffe82203, 0x200582e9, 0x200f82f8, 0x20f182f3, 0x066743fa, 0xc6ffe422, 0x0c22e784, 0x93430c00, 0x82042006, 0x84f120e7, 0xffeb2629, + 0xffecffd8, 0x83cf82c5, 0xfff82443, 0x83c3ffdc, 0x0573416f, 0x822c0221, 0x82092087, 0xff04223b, 0x201182fe, 0x200582fc, 0x237582fe, 0x00ebfefc, + 0x2005c149, 0xafa21803, 0x82fb2008, 0x00f72e51, 0x00010000, 0x02eaff2b, 0x0070023b, 0x17f34215, 0xff3b0225, 0x82a2ffb1, 0x00962801, 0x005d0069, + 0x8251005e, 0xff002437, 0x827cffb0, 0x83482001, 0xb700230b, 0x01828400, 0x5b281783, 0x35005200, 0x17003400, 0x34204f82, 0x55280782, 0x4b002600, + 0xb9ff95ff, 0xdd260182, 0xccffe6ff, 0x0b84ddff, 0x17829520, 0x2c000122, 0x3c207b82, 0x00217b9b, 0x206d822c, 0x205b8285, 0x207384b6, 0x20738449, + 0x820b83af, 0x825e2017, 0x8269208b, 0xffa22c5b, 0x00b0ffa3, 0x00eaff00, 0x8247006b, 0x00232201, 0x2079821a, 0x260b8423, 0xffdaff6b, 0x82abffb5, + 0xffcc2477, 0x82e9ffeb, 0xffcb2607, 0x00dbffae, 0x20f78202, 0x24f78289, 0x001d00ad, 0x4cf99741, 0x01612321, 0xb7ff2f09, 0xa9ffaaff, 0x66009bff, + 0x57005600, 0xa5834800, 0xffd2ff23, 0x240182c9, 0xffbfffbf, 0x200182b3, 0x821383a8, 0x004c241d, 0x8242004c, 0x00382401, 0x842e0038, 0xffdf2227, + 0x200182dc, 0x24ad82da, 0xffd6ffd6, 0x240182d1, 0xffcaffca, 0x231b83c3, 0x2b003500, 0x22240182, 0x1e002200, 0x1c240182, 0x14001200, 0x16220182, + 0x01861500, 0x11821420, 0x0e001122, 0xd4222b82, 0x4f824400, 0x17822d20, 0x2d001322, 0x47280182, 0x4b002600, 0xd8ffd0ff, 0xdf220182, 0xff82e0ff, + 0xf1ffe926, 0xccffe6ff, 0x24067f70, 0xffdfffdf, 0x261b82d9, 0xff2600d0, 0x84230076, 0x001b245f, 0x8216001b, 0x82122001, 0x000e2b55, 0xff08000d, + 0xffc2ffe1, 0xc719fff8, 0xef220b0b, 0x4182f4ff, 0xeffff324, 0x0382f0ff, 0x0382ef20, 0x0384ee20, 0x2800f022, 0x5b418582, 0x49e1650b, 0xd9822b20, + 0x38003824, 0x01824200, 0x4c004c24, 0x69825600, 0xa8ff0028, 0xb3ffb4ff, 0x0182bfff, 0xc8ffc924, 0x1383d2ff, 0x00480023, 0x24018257, 0xff9cff65, + 0x200182a9, 0x221384b7, 0x8211000f, 0x00142101, 0x15200183, 0x3b41dd82, 0x00142205, 0x62118213, 0x17220549, 0xf9821700, 0x1e001a22, 0xb1730182, + 0xffc32205, 0x240182ca, 0xffd1ffd1, 0x240182d6, 0xffdbffda, 0x200182dc, 0x224f82de, 0x82300064, 0x002722e9, 0x83018221, 0x000e2637, 0x0034001a, + 0x2241820f, 0x82200017, 0x82282013, 0x8230201d, 0xffb4242f, 0x82d3ffb9, 0xffed2201, 0x260582eb, 0xffbcffd2, 0x1adafedb, 0x83085fa4, 0x84112091, + 0x000d240d, 0x180d000e, 0x2208db42, 0x82080009, 0x44062001, 0x1f2a089f, 0xf8ff3e00, 0xf2fff3ff, 0x0182eeff, 0xeaffea24, 0x0182e5ff, 0xe2ffe226, + 0xd8ffddff, 0x20066f41, 0x06cb42cb, 0xcb425d20, 0x1bf74243, 0x423b0221, 0xfd2139e7, 0x0e0352f0, 0x18432754, 0x432b214f, 0x41203b1f, 0x2cc14e18, + 0xfdfffb22, 0xaa180182, 0x4e1809dd, 0x022131c1, 0x05135600, 0xf3fff326, 0xe4ffe5ff, 0x246fe741, 0x2f002b00, 0x096f4300, 0x6f434b20, 0x510f562e, + 0x432be741, 0x2820059f, 0x20089f43, 0x299f430d, 0x0abf5518, 0x0d1b4a18, 0x41150358, 0xb22457e7, 0xa8023b02, 0x5cafee18, 0x0f00fe31, 0x16001700, + 0x4a001400, 0x3b003c00, 0x82002c00, 0xd0ff2300, 0x0182cbff, 0x0600c524, 0x01820400, 0x0a000322, 0x08200784, 0x15212984, 0x05394500, 0x33821420, + 0xe6262b83, 0xdfffdeff, 0x2382d9ff, 0x11001026, 0xf0ff0a00, 0x08ed8919, 0xeaffea28, 0xc3ffecff, 0x0182b8ff, 0x2a82ae20, 0x3a000029, 0x36003500, + 0x5dff3000, 0xf120092d, 0xf6202f82, 0x1a248382, 0x29001a00, 0xeb282d82, 0xecffebff, 0x0c000d00, 0x0c200384, 0x03820782, 0xfff8ff2b, 0xfffdfffe, + 0x002e00b2, 0x22018246, 0x82dbff3d, 0xffd12aa1, 0x002600c5, 0x0032004b, 0x22018227, 0x8210001c, 0x820d202b, 0x821d2085, 0x000d2239, 0x5a058218, + 0x1124056f, 0x12001300, 0x2b82b382, 0xffdcff23, 0x220182e0, 0x821e00e4, 0x82322035, 0x00052205, 0x24018207, 0xffd1ff05, 0x220182ba, 0x47e2ffc2, + 0xf5220a1b, 0x0182f1ff, 0x60ffee21, 0xd0220b69, 0xbb82e1ff, 0xf9fff924, 0x61186001, 0x022408d5, 0x03000400, 0x04200184, 0x05260982, 0xf9ffe7ff, + 0xa743faff, 0x61bf4106, 0x0f00cd2c, 0x17001600, 0x3c001400, 0x01824800, 0x79825220, 0xc7ff0024, 0x0182cbff, 0xa382cf20, 0x820c1153, 0x82e720cf, + 0x82f0209f, 0xffe92807, 0xffecffea, 0x82c5ffb5, 0x83d32001, 0x30002733, 0x35003600, 0xdf823a00, 0x0382fc20, 0xf7fffd22, 0xf8240984, 0xebffe9ff, + 0x03832b82, 0x0982ec20, 0x2205eb4b, 0x8221001b, 0x4d272001, 0x83820791, 0x19001a24, 0x85829200, 0x15001424, 0x4d181500, 0xf33808e3, 0xf4fff5ff, + 0x0800f3ff, 0x02000300, 0x2f00b2ff, 0x47004600, 0x1e003e00, 0x0f26b384, 0x34001a00, 0x3d820b00, 0x12001024, 0x13821100, 0x19001624, 0x25822d00, + 0x1f002f23, 0x079b4100, 0xbbffd222, 0xc2220182, 0x17842500, 0xdaff3b22, 0xce22b582, 0x0182d9ff, 0xf0ffe422, 0x85825d83, 0x7182e320, 0xd982f420, + 0xf2fff322, 0xef26db82, 0xedffefff, 0xad82eeff, 0xb4ffdb22, 0x1f2c3782, 0x1c002000, 0xcdffe3ff, 0xe2ffceff, 0x2406bf41, 0xfff9ff8d, 0x200b82fa, + 0x63a918fb, 0x05834c08, 0x8182fb20, 0x0600062e, 0x01000000, 0x4d002c00, 0x0e023c02, 0x3fb79918, 0x823c0221, 0xff00264d, 0xff27ffb8, 0x209382e9, + 0x209982eb, 0x4ea784ed, 0xfa200579, 0xed821d83, 0x0a000626, 0x0f000b00, 0xaf420182, 0x00152605, 0x00600017, 0x223b88c1, 0x82e1ffdf, 0xffe524bd, + 0x82eaffe5, 0xd37b1945, 0x241f8208, 0x00080008, 0x24018210, 0x00160015, 0x2401821b, 0x001e001e, 0x223b8222, 0x6611004d, 0x23820567, 0x05000522, + 0x0a225f82, 0x5f820e00, 0x12001123, 0x05ed4800, 0x5c181620, 0x0d200819, 0x0b201982, 0x05207f82, 0x3082fb84, 0xff293b89, 0xfff8fff9, 0xfff0fff1, + 0x240182ec, 0xffe6ffe7, 0x200182e4, 0x208d82e0, 0x220782e3, 0x84e7ffe6, 0x82f02017, 0xfff92221, 0x823883f9, 0x483b4103, 0x002c0025, 0x4ada0048, + 0xdb8306f3, 0xeb83e383, 0xa3190820, 0xf820088d, 0xf0249982, 0xebffeaff, 0x24080f49, 0xff9fffde, 0x2085823f, 0x203b8400, 0xb7961917, 0x750f2008, + 0x0620081f, 0xff211d83, 0x210182fa, 0xe743fff5, 0x82ed2007, 0x82eb20c7, 0x203b8547, 0x8221834d, 0x00072203, 0x22358207, 0x82140010, 0x00192a01, + 0x001c001a, 0x001f001d, 0x20078220, 0x200d821c, 0x20178419, 0x86218210, 0x0000218f, 0x0cb31c1a, 0x5d82fb20, 0xf2fff622, 0x2206b349, 0x82eeffed, + 0x82eb205f, 0x20098367, 0x251784ef, 0xfff6fff6, 0x0342fffb, 0x823b8205, 0x00022a71, 0x02e3ff2c, 0x0077023c, 0x64e76345, 0x0600ec24, 0x01820c00, + 0x64000724, 0x6118c700, 0x0720088f, 0x0887c619, 0x0e24f983, 0x6c003600, 0xde221b84, 0x2f8299ff, 0x08000923, 0x09f75200, 0xf4fff922, 0xf9250182, + 0xd7ffebff, 0x19a542ff, 0x11001228, 0x07002300, 0x01840900, 0x5f820a20, 0x0b000a34, 0xf5fffaff, 0xf9fff6ff, 0x19000f00, 0xf9ff1900, 0x0f82f3ff, + 0x0382f520, 0x5182e820, 0x7183f420, 0x26161943, 0xff18000c, 0x82e2ffed, 0x00e32401, 0x82210014, 0x84142001, 0x07f1422d, 0x1a001522, 0x0f95f119, + 0x35207f82, 0x10222384, 0x6d821800, 0x59820f20, 0xc7820720, 0xecff0524, 0xb782e0ff, 0x2005d944, 0x08ed4200, 0xa618ed20, 0xe0260a5f, 0xd9ffd3ff, + 0x2582d8ff, 0x1f82f920, 0xb582f920, 0x3d44fa20, 0x84ee2006, 0xffee2883, 0xfff8fffb, 0x82b900f8, 0x82082053, 0x430a20df, 0x1f200689, 0x14240782, + 0x12001300, 0x0e220182, 0xf3840e00, 0x26086143, 0xadffc8ff, 0x4100adff, 0xe9236fef, 0x41000700, 0x152205ef, 0x59432a00, 0xffef241a, 0x82deffee, + 0xfff721d5, 0xf6240185, 0xf4fff6ff, 0x0a283b82, 0x07000b00, 0xe7fff0ff, 0xf1200182, 0x2308b963, 0x0039ff9c, 0x44220083, 0x555fcd00, 0xffeb260c, + 0xffcafff3, 0x821a8393, 0xff67226b, 0x204d84fb, 0x05ef41fb, 0x004f0025, 0x821e0014, 0x441a2001, 0x0b24067d, 0x0d001700, 0x2e829d82, 0x22089d43, + 0x82f1fff2, 0xffed2989, 0xffebffec, 0xfff4ffe9, 0x200def41, 0x43918200, 0x1a2a09a1, 0x1c001b00, 0x20001d00, 0x994d2d00, 0x84072006, 0x8206201f, + 0x00052105, 0x12200183, 0x12206f84, 0x4313fb41, 0x678207b9, 0xe5ffe62c, 0xc9ffe3ff, 0xc7ffc8ff, 0x8c82daff, 0x8208d543, 0x84e820f7, 0x05ef41f7, + 0x3800ab28, 0x53005200, 0xd7824900, 0xf782f820, 0xa182f620, 0xe6ffe526, 0xeaffe0ff, 0xec20af82, 0xe543b782, 0x73022011, 0x5922068b, 0x46183b00, + 0x614647d7, 0xb1fe2177, 0x200e0b71, 0x14714699, 0x12000e22, 0x96180182, 0x0d820acb, 0x0e001122, 0x21087146, 0x00850005, 0x34001222, 0xff210885, + 0x220182f9, 0x19f1fff0, 0x2608518f, 0xffe4ffe4, 0x82e0ffe1, 0xffe42105, 0x21127146, 0x378467ff, 0x08474318, 0x63410020, 0x415a2007, 0x89464963, + 0x41002078, 0xec841063, 0x460cf742, 0x1c260599, 0x1f002000, 0x01821c00, 0x14260f83, 0x0f001500, 0x27821000, 0x84000821, 0xeeff2300, 0x0884cbff, + 0x121a0020, 0xef200ca7, 0x20085d43, 0x069946ea, 0xf3ffee22, 0xf6220182, 0x9518f6ff, 0x002208c5, 0x6a18efff, 0x3c2008dd, 0xff2e4383, 0x000200ec, + 0x029dff2c, 0x00be023c, 0x771a0059, 0x00217ad5, 0x22e182d2, 0x820b000b, 0x006d2205, 0x269b84d9, 0x0020ffb6, 0x82080005, 0x00052311, 0x3354005b, + 0xffc22205, 0x220f8247, 0x750a0009, 0x2e220ad5, 0x2f845c00, 0xacffe426, 0x09000400, 0x04260182, 0xe6fff2ff, 0x0582e7ff, 0x9746f920, 0xe2ff2305, + 0xd346c5ff, 0x8206201a, 0x000e2853, 0x0011000d, 0x82140010, 0x82132001, 0x5d122003, 0xd12208cb, 0x5f83a2ff, 0x001c002a, 0xfffaff56, 0xfff7fff8, + 0x2007f744, 0x2261822b, 0x84f3fff2, 0xfff52205, 0x258918f4, 0x0005210c, 0x2613094a, 0xff2a0015, 0x82e1ffec, 0x009d2601, 0x001f0012, 0x83058220, + 0x06f3425c, 0x8308976c, 0x49112013, 0x142206f5, 0x01821b00, 0x37001d28, 0x39003800, 0x1a832500, 0x35203582, 0xed560784, 0x00092409, 0x19040008, + 0x200cc902, 0x24ab8200, 0xfff0fff9, 0x227182f1, 0x49e5ffec, 0xe22008f1, 0x40180b84, 0xf7240be1, 0xfcfff6ff, 0x83070b46, 0x20318257, 0x240784c4, + 0xffe9fff2, 0x20df82e8, 0x264b82fc, 0x004301f8, 0x82070004, 0x00092801, 0x000c0009, 0x820f000d, 0x82122001, 0x0015248b, 0x82140015, 0xe9911801, + 0x820a2009, 0x060f44fd, 0xffc8ff25, 0x42aaffab, 0x5b210a67, 0xb96a1800, 0x46d2207d, 0x002207fd, 0x1546006d, 0xffb62605, 0x0005001f, 0x20018208, + 0x20d78205, 0x204d4717, 0x83fff321, 0x82f22001, 0x4218202b, 0xf6240a69, 0xf7fff6ff, 0xf8200386, 0x4e0cbb4a, 0x02210559, 0x09b766ff, 0xecffec22, + 0xbf234382, 0x830080ff, 0x002a2600, 0xfffbff7d, 0x210182f8, 0x6d42fffb, 0x82552009, 0x83f72013, 0x06654713, 0x1300812c, 0x1d001c00, 0x07001900, + 0x01840600, 0x09000b22, 0x06200182, 0x03220f82, 0x48830300, 0x21160b4b, 0x6d42fffc, 0x0d814721, 0x1a001922, 0x81476982, 0x00282407, 0x820b0021, + 0x820a2069, 0x00232269, 0x08975844, 0xe3ffed22, 0xe6230182, 0x88000200, 0x09374b00, 0xff000023, 0x220382ff, 0x82e6ffec, 0xffe22601, 0xffc7ffca, + 0x0e8547c8, 0xe9fff224, 0x5569eaff, 0x16714205, 0x35003e2a, 0x4f005000, 0xfbff4700, 0xf6260186, 0xf4fff3ff, 0x0184f2ff, 0xf0fff122, 0x4408a147, + 0x002912ed, 0xff2c0001, 0x023c029f, 0x64814b5a, 0x0f00f52d, 0x1a001b00, 0x51001000, 0x8200a200, 0xd5ff3700, 0x08007cff, 0x0d000c00, 0xfaff0700, + 0xf7fff6ff, 0x3700faff, 0x0b4e6f00, 0x6b474e08, 0x2d001626, 0xecfff5ff, 0xf5240182, 0x5dffafff, 0x00358383, 0xff84002c, 0xfff4fff8, 0x00f8fff3, + 0x009fff16, 0x001e0012, 0x0e91441f, 0x0e000922, 0x0920d782, 0x4e081f43, 0xb9180c53, 0x0e20089f, 0x1d482582, 0x05b94427, 0x20099d44, 0x239382eb, + 0xffe7ffe6, 0x21051d48, 0x8f4effe1, 0x42ff2018, 0xf722132f, 0x0182f1ff, 0xeffff722, 0xef419882, 0x64596d09, 0xf1410020, 0x054f4d1d, 0x1400f522, + 0x15220184, 0xbc181500, 0xa418084d, 0xf0210bc1, 0x37f54eff, 0xf4fffb22, 0x4f16f54e, 0x02230531, 0x82000600, 0x3cf54103, 0x0a000628, 0x08000900, + 0x05820400, 0x0e000926, 0x13000d00, 0x16240182, 0x1a001700, 0x1f240182, 0x1d001f00, 0x19220182, 0xe3841b00, 0x484ba748, 0x002006e3, 0xf9410084, + 0x00022b1e, 0x02f3ff42, 0x005b0227, 0x2f19003b, 0x012156e1, 0x20ef82c1, 0x24fb8214, 0x000d000c, 0x075d5106, 0xffeaff23, 0x22a084c0, 0x82fcff00, + 0xfff82401, 0x82f3fff8, 0xffef2201, 0x251982ef, 0xffe4ffe9, 0x6747ffe5, 0x43ef2005, 0xff250565, 0xfffdfff7, 0x883186fc, 0x234f843b, 0x000c000c, + 0x1b2a5f83, 0x23001b00, 0x2c002200, 0x07822b00, 0xb3ff2426, 0x04000800, 0x2005dd45, 0x1a008200, 0x2020ab78, 0x20478209, 0x83a78213, 0x00252847, + 0x002e0024, 0x84f7007c, 0xfea92839, 0xffdafffa, 0x18e3ffe2, 0x83083d9e, 0x83b782af, 0x2063821d, 0x22698204, 0x820e0008, 0x00152c01, 0x001d0015, + 0x0026001e, 0x84e90074, 0xfea3283b, 0xffd2ffea, 0x82dbffdc, 0xffe522d1, 0x180182ed, 0x240bf7a1, 0x00060005, 0x242782d4, 0x00030003, 0x20bf8207, + 0x09914634, 0xfd203d84, 0xf926b582, 0xcbffe6ff, 0x0982f9ff, 0x1383fd20, 0xb3410020, 0x007524db, 0x8427000c, 0x001522e5, 0x1d9f1840, 0xff00220a, + 0x060147f3, 0xc1ffea22, 0xb3411f8a, 0x84a12077, 0x00142283, 0x2207843d, 0x4d24000b, 0xff200d7f, 0x2005034a, 0x057f77f4, 0x00ebff2b, 0x002c0001, + 0x023c0238, 0xe3b11823, 0x95551814, 0xfe922209, 0x224984b3, 0x664c016f, 0x38200afd, 0x00235d8b, 0x8cf80053, 0x8285206d, 0x225fa70d, 0x8c74fe7c, + 0x856f855f, 0x017b225f, 0x20738470, 0x22bd86ec, 0x8508ffad, 0x2005820f, 0x20bf8202, 0x20bf8206, 0x35451854, 0x4dc99528, 0x92200fcb, 0x4920d98c, + 0x2305bf4c, 0x3c001400, 0x90227984, 0x078322fe, 0xec210f88, 0x9587b100, 0x218795f1, 0xd3610171, 0x07014105, 0x26ffb822, 0xec218784, 0x0c8141ff, + 0x00ecff2b, 0x002f0001, 0x02390200, 0x14cf415b, 0x42002f21, 0x002406bd, 0x00080158, 0x16220083, 0x49843f00, 0x78fe7e22, 0x03840783, 0x88018322, + 0x7d201384, 0xb4181386, 0x5f9d0d13, 0x87018322, 0x220c1d43, 0x8bf8fea8, 0x200b830f, 0x874f8700, 0x206f875f, 0x281d8269, 0x00280003, 0x02410232, + 0x2097822c, 0x9f7d6e83, 0x009f0125, 0x82150018, 0x00122301, 0x45540014, 0x84052009, 0xfffb24f1, 0x82f6fffb, 0xfff12301, 0xf358fff2, 0xffea2605, + 0xffe7ffe8, 0x220182e5, 0x82e6ffe3, 0x84e72009, 0xffea220f, 0x221f82ea, 0x82f1ffed, 0x55571801, 0x0005240b, 0x820a0004, 0x05775801, 0x16001122, + 0x19206782, 0x1b216f82, 0x05eb5600, 0x1b001a28, 0xefff62ff, 0x0182f0ff, 0x6382f220, 0x6b82f520, 0x4505fd45, 0x0320058d, 0x07243f82, 0x0b000700, + 0x10224386, 0xeb511000, 0x00132106, 0x0937c418, 0x21820820, 0x09000824, 0x01840800, 0x23820720, 0x0c000b22, 0x06201382, 0x7f4c3d82, 0xabac1805, + 0x82f2200d, 0xffef226d, 0x200182ee, 0x22b582ed, 0x82ecffec, 0x00ed2205, 0x20598217, 0x23f58334, 0x67002300, 0xde22fd84, 0x9d5398ff, 0x860f860c, + 0x1847201f, 0x20089f4d, 0x20d58212, 0x203f8215, 0x20d98217, 0x83038218, 0x841820e1, 0x0557410f, 0x57411120, 0x82f72014, 0xfff222eb, 0x065741f3, + 0xe9ffeb22, 0xe8200182, 0x51410382, 0x4b098305, 0xef210787, 0x182783ff, 0x220d074f, 0x82450006, 0x840a20e1, 0x000d2283, 0x2261820f, 0x82110011, + 0x001224c1, 0x84130014, 0x82112009, 0x84102005, 0x820d2019, 0x820a2025, 0x4107202d, 0xfd26080f, 0xf9fffcff, 0x0582fdff, 0x0384fb20, 0xfafffa24, + 0x6582f8ff, 0xdf5af120, 0xffef2406, 0x41eeffef, 0x09820517, 0xf1207f83, 0xf320a982, 0x10439a18, 0x51820320, 0x83001121, 0x00212200, 0x82068360, + 0x84312073, 0x00202207, 0x23078362, 0x9fffdfff, 0x0c47db19, 0x1f43e020, 0x628b2010, 0x69625f4d, 0x101b921b, 0x06010f03, 0x188dff21, 0x100e3bcb, + 0x0701ef02, 0x22055547, 0x42310011, 0xcf4205d7, 0x42b32010, 0x00208ecf, 0x9312e342, 0xf7021013, 0xda240701, 0x1e001200, 0x0bcdf318, 0x08374f19, + 0xe3ffed22, 0x0bd9f418, 0xfff6ff27, 0xfff0fff1, 0x06295cf7, 0xeeffed22, 0xe1201d82, 0xf7200582, 0x17821582, 0x1f244782, 0x12001f00, 0x085d8c19, + 0x10000922, 0x03100182, 0x34070147, 0x00110029, 0x001d001c, 0xffefff11, 0xffe4ffe3, 0x000800ef, 0x2201820f, 0x82110009, 0x821c2015, 0x20078705, + 0x20178409, 0x20278408, 0x832782e3, 0x26378317, 0xfff1fff8, 0x18f7fff2, 0x20080551, 0x824582ef, 0x2211821f, 0x43f1fff1, 0x05781097, 0x8709109e, + 0xff290701, 0x001e00da, 0x002c002d, 0x06974a2b, 0x67431020, 0x19e22008, 0x100e6998, 0x0f014f03, 0x2a001c22, 0x29280182, 0x13001600, 0x0f001400, + 0x2406b744, 0xffe4ff08, 0x280182d6, 0xffeaffd7, 0xffecffed, 0x161f43f1, 0x01870910, 0x00fb2597, 0x005f001f, 0xff230082, 0x82a2ffe0, 0x3f061006, + 0x66210701, 0x20008300, 0x06396424, 0x0c82dc20, 0x774f0420, 0x00ab220c, 0xb68949cb, 0x83139d49, 0xa1091013, 0x00290601, 0x000f007d, 0x000d000c, + 0x23018209, 0x00040004, 0xff210082, 0x240182f7, 0xffeeffec, 0x200182e8, 0x270782e3, 0xffefffef, 0xfff0fff1, 0x2005ff5e, 0x5d9a18f6, 0x00092408, + 0x8213000a, 0x00172401, 0x821c0018, 0x00112407, 0x6a9dff10, 0x4682058d, 0x4d820020, 0x21820520, 0x5f820a20, 0x0e000b22, 0x0c220182, 0x0f840b00, + 0x5e180520, 0xfb2208a1, 0x0182f6ff, 0xed5bf420, 0x20078206, 0x91031000, 0x482b0701, 0x0b000800, 0x0f000a00, 0x51000e00, 0x1a2a05a9, 0x15001600, + 0x13001200, 0x68180900, 0xfc2008c7, 0x08b9af18, 0xf1fff224, 0x0182f0ff, 0xe6ffee24, 0x0182eaff, 0x18ffee21, 0x240947c9, 0x00040005, 0x204f8248, + 0x2051820c, 0xa1b1180d, 0x0b87410a, 0xf7fff728, 0xf5fff6ff, 0x0182f3ff, 0x2005e741, 0x08e741f7, 0x05000424, 0x0f440700, 0x00512a0a, 0x00750065, + 0x00970085, 0xac1544a9, 0x247ff343, 0xffe8ff92, 0x210182dc, 0xb75b00e0, 0x00072405, 0x840e000f, 0x000f2201, 0x2301840d, 0x00390000, 0x0c200083, + 0x0e200d82, 0x1f831982, 0x25820f20, 0x31820220, 0x03000122, 0x06200582, 0xd8244382, 0x14ffd8ff, 0x0ae97218, 0x22059359, 0x822b001a, 0xff1a2c01, + 0xffdaffe6, 0x00c300d9, 0x8227001a, 0x00232101, 0x2a0db953, 0xffe5fffa, 0xffd5ffd6, 0x84f3ff9c, 0x5ff12001, 0xfd2a0867, 0xfefffbff, 0x1700faff, + 0x01822800, 0x86821820, 0x18003929, 0x23002400, 0x85ff2000, 0x88f9201b, 0x82f2202b, 0xfff32209, 0x814147f4, 0x001b0125, 0x8214000e, 0x41132001, + 0x0d260853, 0x0b000a00, 0x01820500, 0x04000428, 0xd1ff0100, 0xc582a0ff, 0x18ff6b21, 0x2209e59b, 0x82f6fff5, 0x82fe20fb, 0x84fd20ed, 0x5cfb2003, + 0x8121067b, 0x05f75300, 0x076a1320, 0x19102006, 0x2808d11d, 0xffecfff3, 0x003500ec, 0x226b840d, 0x54f0ff12, 0xee2408f1, 0xefffefff, 0x17261782, + 0x55ff1600, 0x71820100, 0x7b840420, 0x85820b20, 0x03000d22, 0x02220b82, 0xa3820600, 0x16001628, 0xd1ff0e00, 0x6b822f00, 0x3f824b82, 0xfafffe22, + 0xfa207d82, 0xf6246382, 0xfbfff5ff, 0xfc260182, 0xfffffcff, 0x43822f00, 0x200bf356, 0x97dd7c8b, 0x01650d10, 0x009c2508, 0x00ee004f, 0xff230082, + 0x8212ffb1, 0x8e002006, 0xd306100f, 0xd4210701, 0x05db4400, 0x06832420, 0xfff4ff23, 0x200f8d69, 0x0deb5900, 0x01430d10, 0x00d62597, 0x00970032, + 0xff230082, 0x466affcd, 0xbb598101, 0x15cb5688, 0x42023128, 0x07002b02, 0x7c180f00, 0x00262bc7, 0x01860028, 0x00820094, 0xfe79ff23, 0x2006826d, + 0x24038246, 0x01630000, 0x22138429, 0x5b7aff9d, 0xcf18085f, 0xef200f05, 0x2305396c, 0x8cffd9ff, 0x75822b83, 0x07827420, 0x03823120, 0x7f000024, + 0x3f847b01, 0xc6fe8222, 0x086ba718, 0xe8fea322, 0x08211382, 0x22008300, 0x836e0024, 0x11002206, 0x862f8500, 0xdcff220f, 0x23db84ff, 0xcfffefff, + 0xdc203f84, 0x03200582, 0xdb89a382, 0x1a53cc18, 0xfe21cb9f, 0x0e1b59f0, 0x9a20ab9f, 0x00207d82, 0xff21a387, 0x188b90ef, 0x4143cd7b, 0x19241f7f, + 0x2a001900, 0x18200182, 0x29200782, 0x0a220784, 0x01820f00, 0xe8ff092b, 0xd7ffd6ff, 0x1a00e7ff, 0x22178300, 0x5df6ff1a, 0xe72006c7, 0xe6211784, + 0x200783ff, 0x200582d6, 0x221782f7, 0x84f7fff0, 0x00292247, 0x20118219, 0x223784d7, 0x82100009, 0x1f034147, 0x17000f2c, 0x27002800, 0xe9ff1700, + 0x0182d9ff, 0x5f18e920, 0x1720089d, 0x17821582, 0x84180021, 0x00182207, 0x204f8408, 0x79461808, 0x1b561908, 0x82f12009, 0x18f82081, 0x1808ff4d, + 0x2209a945, 0x41f0fff1, 0xdf411053, 0x5eff213a, 0x9f0e7351, 0x058342db, 0x260b8b50, 0x002c0001, 0x603c0200, 0x2c2416c3, 0x3f001500, 0x0024b182, + 0x4d016f00, 0xff210783, 0x059b6291, 0x63ebff21, 0x14830681, 0xc4004222, 0x200cc161, 0x210f8541, 0x158269ff, 0x01215f9c, 0x875f87e8, 0x875f874f, + 0x2041826f, 0x08c36000, 0x3cffbf22, 0x200c9b62, 0x205fa0bf, 0x22bf880a, 0x18a60038, 0x860c494a, 0x2013830f, 0x06136100, 0x62096162, 0x7d2006fb, + 0x022c1d82, 0x43002c00, 0x1a023c02, 0x19000700, 0x201b914d, 0x629b8502, 0x84240769, 0xd7ff3801, 0x0c0d4819, 0x1700e930, 0x1e001d00, 0x3d002000, + 0x3f003e00, 0x5d822900, 0x75004334, 0xceff6201, 0xedff6dff, 0xcfffc5ff, 0x0f00e0ff, 0xb3821600, 0x0b001622, 0x08eb6f18, 0x0b820a20, 0x15820b20, + 0x03821620, 0xb0ff0f22, 0x651893ab, 0x5420104f, 0x00203d82, 0x1e204782, 0x87838982, 0x87833f20, 0xc330a786, 0xe3ffe0ff, 0x4300e2ff, 0x93003100, + 0x3a001400, 0x942e0782, 0x12ff8aff, 0xb4003c00, 0xf6fff8ff, 0x0182f5ff, 0x83ffea21, 0xfff12201, 0x220784f2, 0x82f4ffeb, 0x82f62017, 0x42032055, + 0x01230547, 0x180700ff, 0x4128a966, 0xec321131, 0xe4ffe5ff, 0xc8ffe2ff, 0xc5ffc6ff, 0x1500daff, 0x01821b00, 0x38001e24, 0x8f823b00, 0x00002624, + 0x077244fe, 0x0079240e, 0x18250161, 0x200a8566, 0x1ba619f7, 0x000f2208, 0x20018210, 0x230f8f0a, 0xa8fec7ff, 0x0021af82, 0x09277300, 0x5941bbb2, + 0x82272016, 0x823b20a5, 0x821e20ad, 0x001c24b5, 0x82ecff14, 0x84e520cd, 0x82c520cf, 0x908520d1, 0x995518bb, 0xff9e2a0b, 0x002b0048, 0xfff6ff81, + 0x200182f0, 0x715218f1, 0x09257e08, 0x10201783, 0x022cbb8e, 0xa9000e00, 0xb5015a02, 0x55003500, 0x5d1b9f42, 0xd353265d, 0x16022514, 0x0c001000, + 0x0a240182, 0x05000900, 0x089be618, 0xf7fffb22, 0xf424ad82, 0xeffff3ff, 0x2206b54d, 0x82edffec, 0xffef2809, 0xfff2fff1, 0x18f5fff4, 0x2208799b, + 0x7399fffd, 0x4e240639, 0x0300e800, 0x06204382, 0x088deb18, 0x0f000e24, 0x01821100, 0x15001428, 0x12001200, 0x717397ff, 0x0005240a, 0x820a0006, + 0x217b8301, 0xc718000f, 0x838b09e7, 0x8386f620, 0x7582f220, 0x00217382, 0x20a382ba, 0x20ab820b, 0x5b44180f, 0x84132008, 0x5310205f, 0x3f890a8d, + 0xf8fffd22, 0x08c3d218, 0xb182f520, 0x00200382, 0xff230082, 0x84c5ffec, 0x205d8307, 0x201784f6, 0x20cd82f7, 0xc97f18f8, 0x8204200a, 0x824f20c5, + 0x000c246b, 0x820d000b, 0x20078301, 0x830f8209, 0x213a82b3, 0x0b1afbff, 0xf9510a0b, 0x79d4180b, 0x00002a0b, 0xff420001, 0x02270233, 0x3f5f7dd7, + 0x00420025, 0x82410015, 0x24028378, 0x00040004, 0x22018208, 0x840c000d, 0x001728fb, 0x001b0017, 0x8216001c, 0x00112201, 0x20ad8412, 0x831f8209, + 0x202f8327, 0x213b8900, 0x0182faff, 0xf4fff323, 0x05f979ff, 0xddffe522, 0xd4240182, 0xdeffd4ff, 0xe5220782, 0x1784e5ff, 0x9718f420, 0xff21099f, + 0x28408433, 0x00f301a6, 0x001d0026, 0x2249821e, 0x820e0014, 0x867f8301, 0x08dd6b5f, 0xf2fff230, 0xebffecff, 0xe3ffe2ff, 0x22ffdaff, 0x3b8445fe, + 0x0202ac26, 0x25002e00, 0x1b200182, 0x1322a582, 0xb5821300, 0xd6180b20, 0xfb200889, 0xf5208f82, 0xed208f84, 0xe5227d82, 0x0182dbff, 0x1cffd222, + 0x01283982, 0x26ff4200, 0xca022702, 0x6c3f3b41, 0x3c20789d, 0x200a6d6c, 0x24ff8224, 0x01e4002f, 0x24d982ca, 0xfe5aff00, 0x086d6c0d, 0xf1ffec26, + 0xf8fff2ff, 0xfd200182, 0x2406fd6c, 0x00030004, 0x24018208, 0x000f000e, 0x086d6c14, 0xbb01de22, 0x54283b84, 0xd1fffefd, 0xdcffdbff, 0x2c186d6c, + 0x00020000, 0x023d0034, 0x001e0233, 0x7b46191f, 0x3401252f, 0x16001100, 0x18240182, 0x2f002d00, 0x1f220182, 0x6218f0ff, 0xd0200887, 0xe1227982, + 0x0582e1ff, 0xd3ffd124, 0x1784e8ff, 0x6382ef20, 0x64182f20, 0xff230b77, 0x82d5ffe7, 0x82e72001, 0x005a243f, 0x822a001a, 0xff192681, 0x003d00d3, + 0xd9581810, 0x002c2408, 0x8e1d002c, 0xff1e240f, 0x82d4ffe2, 0xffd62601, 0xffebffe9, 0x207582ec, 0x216382e3, 0x0f85ffd4, 0x6100eb26, 0x28001800, + 0x18200182, 0x55205182, 0x2206cb53, 0x18d6ffe8, 0x288a9fd7, 0x01c20084, 0x00fb01e4, 0x25a94523, 0x00c80029, 0x00220014, 0x82150021, 0x18222001, + 0x200a8b7b, 0x211784f9, 0x7b180022, 0xf32109bb, 0xbb7b18ff, 0x2037830d, 0x2a1f8223, 0xfff3fff8, 0x00c200f3, 0x8217000d, 0xff0e2401, 0x82e9fff2, + 0x00f32501, 0x00250016, 0x159b7b18, 0xeaff1622, 0x169b7b18, 0xa918db20, 0xce190c53, 0xad185005, 0x911887ed, 0x01270f6d, 0x00030044, 0x82050004, + 0x00022101, 0xad180087, 0x03220dfd, 0xc4180200, 0xfa260cbf, 0xf5fff4ff, 0xad18f0ff, 0xfd2312fd, 0x18fffeff, 0x2011fdad, 0x2a5684fa, 0x000e000e, + 0xffe4ff1e, 0x82f2ffca, 0xfff6213d, 0x0bfdad18, 0x03000222, 0x0f4d9118, 0xff010029, 0x020000fc, 0x185b026a, 0x2119af4e, 0x59825d01, 0x4300432e, + 0xd9ff8700, 0xa5ffb0ff, 0xd1ffd0ff, 0xfc207f82, 0xd02a0782, 0xd8ffa4ff, 0x8700b0ff, 0x1f824400, 0xab820020, 0xd2000026, 0x97009600, 0x21060f7a, + 0x0183ffba, 0x4600bb22, 0x45200182, 0x48820382, 0x69243182, 0x2eff6aff, 0x7ba20a82, 0x00740029, 0x0030005a, 0x82040031, 0x82302001, 0x005c3009, + 0xff4f0028, 0xffbdff79, 0xff0000bd, 0x82c8ffe5, 0xffbd2405, 0x8279ffbc, 0x84002017, 0x00472467, 0x84b9ff46, 0x82ba2077, 0x82002063, 0x82972089, + 0x83d22091, 0x2eff210b, 0x69227982, 0x0b82a4ff, 0x2d000228, 0x3b02fdff, 0xb7825e02, 0x217a737b, 0x97843b02, 0x68ffce26, 0xe2ffdeff, 0x28954418, + 0x21001f22, 0x0869271b, 0x3b84cd20, 0xe1ffe024, 0x3f82e3ff, 0xe7ffe628, 0xeaffe9ff, 0x0182efff, 0x8318f420, 0x112312cb, 0x74001200, 0x1d28073b, + 0x1f001d00, 0x22002000, 0x87834b88, 0xf4fff122, 0xf7200182, 0x22104149, 0x820c0009, 0x8c0f2001, 0xffea242b, 0x84ecffed, 0xfff2226b, 0x7c3182f2, + 0x754909e7, 0x000d2a07, 0x0012000e, 0x00140011, 0x22778213, 0x82fdff43, 0x833c2009, 0x260382f3, 0x00080007, 0x180f0010, 0x200e1144, 0x1144181f, + 0x183b8919, 0x220e157d, 0x82e8ffeb, 0xffe524f7, 0x82e3ffe4, 0xffe02401, 0x82e2ffe1, 0xffe42201, 0x221582e5, 0x82ebffe8, 0x82f02001, 0xfff422a5, + 0x31ae18f5, 0x89a02008, 0x0500214b, 0x09200182, 0x20068549, 0x1185490e, 0x1423a982, 0x84003b00, 0xfcff2100, 0x0ec34f1a, 0xeeffed23, 0x06556dff, + 0x14a7091a, 0x28866742, 0x33002d00, 0x22009900, 0xf3c71900, 0x0016220d, 0x21018212, 0x8518000c, 0xf4200f2b, 0x08194f18, 0xe6ffe622, 0x25085341, + 0xffbcffde, 0x00830079, 0x98003322, 0x211aa17b, 0x4618fff9, 0x3b8b1349, 0x14001522, 0x11200182, 0x0895ce18, 0x5e000a21, 0xf2230f73, 0x7ffff2ff, + 0x3b8b094f, 0x09d94f18, 0x8415c14b, 0x6fff202b, 0x00220553, 0x01820600, 0xdf820b20, 0x10001124, 0x01821500, 0x19001822, 0x08cbe518, 0x22050b41, + 0x821c001e, 0x00172201, 0x201f8418, 0x22938210, 0x840b000c, 0x22e98337, 0x4fecff00, 0xf71805c9, 0xf02008d3, 0x0abd4718, 0xe1ffe322, 0x0ebd4718, + 0xf0fff122, 0xf920fd82, 0x3b823a84, 0x85640021, 0x086b5f09, 0x0d000d22, 0x10228982, 0x01821300, 0x14001424, 0x07821200, 0x11821020, 0x0a231783, + 0x86000a00, 0x206d82d3, 0x053d4cec, 0x054c0982, 0x5bf52009, 0xe77e05d7, 0x88fb2008, 0x00032c67, 0x022eff2c, 0x00dc023c, 0x4a27001f, 0x02213fcb, + 0x2057833c, 0x976418ff, 0x001a210f, 0x19ff7518, 0x0c555b18, 0x4e30fe21, 0x25730ea5, 0x0000240f, 0x182d0164, 0x21118775, 0x5b185501, 0x0720144d, + 0x0aed5c18, 0x0d001422, 0x194d5b18, 0xe819ff20, 0xff3a0cf7, 0x0015feec, 0x00750027, 0x003c0013, 0xff750026, 0xffc0ffeb, 0xffadffe5, 0xb143fff2, + 0xfff62805, 0xfff6fff7, 0x82e3fff9, 0x4c3f41ed, 0x182c0021, 0x411cd55c, 0x67410e47, 0x418e8210, 0x02210d3f, 0x41128310, 0x8622102f, 0x8f520b01, + 0x0184220c, 0xcd5c1855, 0x000d210c, 0x0fdd5d18, 0x09cd5d18, 0xf3ffec23, 0xdd5d18ff, 0xc3761810, 0x15fe230f, 0xc9821600, 0x55820e20, 0x03821420, + 0x09000b22, 0x08280182, 0x49002500, 0x40001500, 0x08d15c18, 0x8582d920, 0x09637818, 0x78180720, 0x67182563, 0x5d180f17, 0x842232c9, 0xc950af01, + 0x18af860d, 0x220f0d5f, 0x8214000d, 0x7f1320af, 0x1c20083f, 0x0be17618, 0x0c637818, 0x1b000722, 0x511d554b, 0xd94210b3, 0x18a99127, 0x420dd373, + 0x02201799, 0x08575718, 0x18002721, 0x224bfb55, 0x8236003d, 0x002f2401, 0x822a002f, 0x00262401, 0x82240026, 0x00212101, 0xff230082, 0x82effff2, + 0xffec2401, 0x84ebffec, 0x82ea2001, 0x05314309, 0xe9241387, 0xe6ffe9ff, 0xe2380182, 0xddffe1ff, 0x10020000, 0xa9ffb8ff, 0x9affaaff, 0x57006500, + 0x49005600, 0xd2224784, 0x0182c8ff, 0xbeffbe24, 0x0182b4ff, 0x1383aa20, 0x00580023, 0x2401824d, 0x00410041, 0x30018237, 0x0100002e, 0x0009002e, + 0x000e000d, 0x00130011, 0x2e018216, 0x001b001a, 0x001e001f, 0x00280022, 0x84f0ff4f, 0x84ee208b, 0x75ef2005, 0xf426083b, 0xf5fff4ff, 0xbf43f6ff, + 0x18f82006, 0x2a0a494a, 0x008efee1, 0x002d0047, 0x8212002e, 0x822d204b, 0x82442009, 0x184a20db, 0x2008b357, 0x05bb4cdf, 0xcc20bb82, 0xe820e782, + 0xe0280d82, 0xd7ffe0ff, 0xd0ffd8ff, 0xca822782, 0x20086f41, 0xc7581823, 0xffcb2248, 0x280182d5, 0xffdfffde, 0xffe2ffe1, 0x26cb82e4, 0xffecffeb, + 0x82eaffeb, 0x20098503, 0x211382ef, 0x008300f1, 0x24002222, 0x25200182, 0x2a248b82, 0x2f002a00, 0x362e0182, 0x3d003600, 0xf0fd0000, 0x38002e00, + 0x95823700, 0x4d004126, 0x58004c00, 0xff232e83, 0x82b4ffab, 0xffbd2401, 0x82c8ffbd, 0x83d32001, 0x49002313, 0x01825700, 0x9bff6424, 0x0182a9ff, + 0x0000b826, 0x08008b01, 0x260a0353, 0x0011000f, 0x640e000b, 0x112006b9, 0x4d750d82, 0x00112805, 0xffd8ff10, 0x82deffb1, 0x18e120a5, 0x320aa144, + 0xfff2ffef, 0x00f7fff3, 0x003cfe1f, 0x00280030, 0x82200029, 0x00172201, 0x26418218, 0x0034001a, 0x8217000d, 0x18212001, 0x240aa757, 0xffbcffb5, + 0x240182d3, 0xffeeffea, 0x220782d2, 0x82daffb9, 0x00022a99, 0x0251ff2b, 0x00e5023b, 0xe960187d, 0x00d83092, 0x00190011, 0x0016001a, 0x00020004, + 0x82010003, 0x00062605, 0x00090005, 0x22d98224, 0x821e0021, 0x201f8301, 0x24c98214, 0xffe7ff00, 0x240182e4, 0xffe0ffe1, 0x210182e2, 0x0082ffe3, + 0xff000023, 0x2c3b82ff, 0x00070008, 0x00400006, 0x00340035, 0x262b842a, 0xffd2ffd7, 0x82cdffd3, 0x8205204b, 0x0003211f, 0x2405ff54, 0x00270008, + 0x20018223, 0x2223841f, 0x82e8ffec, 0x82e52001, 0x000d213b, 0x09d57118, 0xf3fff024, 0x0182eaff, 0xfbfff328, 0xf9fff8ff, 0x2382faff, 0xe1ffe124, + 0x0182d8ff, 0xd6ffd623, 0x05ef41ff, 0x3b004426, 0x35003c00, 0xfc222b82, 0x2382fdff, 0x4b85ea20, 0xffe5ff23, 0x209b82e3, 0x825f83e1, 0x002e268d, + 0xff28002e, 0x064943f5, 0x4f82f720, 0xfafff824, 0xf3821000, 0x6c001922, 0xf6221782, 0x0584f6ff, 0x0782f520, 0x1a00f422, 0x19260182, 0xf7ff1a00, + 0x0182feff, 0x32005124, 0x01824b00, 0x0d844320, 0x0084ff20, 0x20055177, 0x206b84e9, 0x240586e7, 0x002800e9, 0x2139824f, 0x01850018, 0x14001428, + 0x00000f00, 0x03820100, 0x0e00002c, 0x16001500, 0xdeff1300, 0x0182daff, 0x2600d424, 0x03824a00, 0x20002022, 0x10202d82, 0x0c24f582, 0x1d000a00, + 0x0d200782, 0xb5570f82, 0x821f2005, 0xff4b211f, 0x26058544, 0x001600ec, 0x82240023, 0x00042205, 0x24018208, 0xffd9ff04, 0x200182bf, 0x219382d8, + 0xf983fffc, 0x098bb018, 0xc382f620, 0xe6fff924, 0x0782ccff, 0xf0fff022, 0xd9204182, 0xf622c982, 0x3984edff, 0x06000822, 0x05200182, 0x04260382, + 0xc2ffe1ff, 0xf782f9ff, 0xf1fff422, 0xcd269782, 0xd0ffcdff, 0xcd82e5ff, 0xedffe922, 0xf8285382, 0x1b02f9ff, 0x04000300, 0x03200382, 0x02200382, + 0x05220384, 0x3b820700, 0x5f820920, 0xfafffa22, 0x210cd742, 0xb418006f, 0xb9207f8b, 0x9d839982, 0x0e000824, 0x03820f00, 0xb1840a20, 0x1c22bb83, + 0x01822000, 0x25002428, 0x2a002900, 0xb7822f00, 0xb1ff0024, 0x0182beff, 0x0b00cc28, 0x33001700, 0x01823900, 0x17844020, 0xd5ffd226, 0xd9ffd6ff, + 0x07224b84, 0x4b840800, 0x0a000f22, 0x10f55418, 0xff20ff82, 0xfb260387, 0xdffffbff, 0x0182e0ff, 0xe2ffe128, 0xe5ffe6ff, 0x4b83eaff, 0x0037002b, + 0x003f003e, 0xfff6ff47, 0x240182fe, 0xffc0fffa, 0x200182c6, 0x281b84cd, 0x00310026, 0xff3b0030, 0x203b82ec, 0x262182fc, 0xffdaffd5, 0x84ddffd9, + 0x00162a1b, 0x001b001a, 0xfff8ff1d, 0x210182f3, 0xa94200f7, 0x00cc2105, 0x20054b42, 0x26d78201, 0x00040004, 0x82fdff03, 0xfffb223b, 0x221f8251, + 0x82150014, 0x002a26c7, 0x002c002d, 0x2127821e, 0x01830002, 0x19821120, 0x79580f20, 0x00072808, 0xff3e001f, 0x82eefff5, 0x00e82801, 0x00440021, + 0x820f0013, 0x820a2001, 0x8234206d, 0x000922e9, 0x242b820a, 0x00150010, 0x224b8216, 0x822e002c, 0x821e204d, 0x05714267, 0xbcffd326, 0xc4ffbbff, + 0x03205784, 0x03208182, 0x03830982, 0x13001024, 0x31821200, 0x33821520, 0x18001728, 0xb4ffdbff, 0xc982cbff, 0xe8ffda24, 0xc182e2ff, 0xf1fff826, + 0xdcffe7ff, 0xd0200182, 0xb5241b82, 0x24002800, 0x21240182, 0xf2ffc5ff, 0xe3241982, 0xe0ffe4ff, 0xdc280182, 0xb1ffd8ff, 0x18001900, 0x715e0382, + 0x82d82005, 0x82fc2035, 0x02f9223f, 0x2069822f, 0x18038301, 0x2309f9ae, 0xffff0000, 0x2c291182, 0x3c02b2ff, 0x3100a802, 0x43595f00, 0xff82c120, + 0xcb821220, 0x6b000b25, 0x8200d700, 0xb8ff2700, 0x090028ff, 0x01820c00, 0x97820e20, 0x1a001a24, 0x6b821100, 0x1b846220, 0xabffe422, 0x08bf6918, + 0xab82f120, 0xcd82e820, 0x24055b41, 0xff94fff6, 0x27238329, 0x56001c00, 0xf3fff7ff, 0xf821e982, 0x20418300, 0x05a56019, 0x00330023, 0x6c178299, + 0xe722055b, 0x3d82e6ff, 0xeaffef24, 0x995fb2ff, 0x84192006, 0x0014223b, 0x2007843c, 0x26458216, 0x001f001d, 0x823d003b, 0x8c282001, 0x0013281b, + 0x00200021, 0x82060013, 0x000a22a5, 0x24478205, 0xffd7ffd6, 0x229f84e7, 0x8490fe85, 0xffed2207, 0x220182df, 0x82faffed, 0x00f72271, 0xf94018d0, + 0x2c6f8207, 0xffe4ffe4, 0xffc5ffe0, 0xffc3ffc4, 0x212b82d7, 0x4f410002, 0x2333415f, 0xd9004822, 0x22101b41, 0x829dffce, 0x4100209f, 0x0021114f, + 0x109f416a, 0x29001522, 0xcd20f784, 0x220e4f41, 0x8370017b, 0x41002017, 0xec201b33, 0x4105ef4e, 0x0b4f121b, 0x41ff2008, 0x9f410f4f, 0xadff2312, + 0x6b8208ff, 0x2c000128, 0x3c02a5ff, 0x88185402, 0x47183a43, 0xd42611e3, 0x08007cff, 0x01820d00, 0xd97d0720, 0x00fd2206, 0x056b4f32, 0x4218ff20, + 0x4a26172f, 0xf6ffde00, 0x0182f0ff, 0x4918f620, 0x0c2c147d, 0x14001500, 0x1200a5ff, 0x1e001f00, 0x10814918, 0x0f000f28, 0x02000900, 0x01820400, + 0x7f420220, 0x6b42180c, 0x83ae2011, 0xf5ff271f, 0xeeffedff, 0x6d60f4ff, 0xfff7260c, 0xfff1fff2, 0x820182f7, 0x41002087, 0x4218711b, 0x1b4117c3, + 0xff42184f, 0x00c42119, 0x1b410082, 0xff2b2824, 0x013b027f, 0x4d6b00ff, 0x935e1d91, 0x223b943b, 0x4e06002d, 0xc41806e7, 0x77181bc1, 0xde280d57, + 0xebffeeff, 0xeaffecff, 0x08a34b18, 0x3d002522, 0x24200182, 0x4751ed84, 0x0020222b, 0x24018231, 0x00190030, 0x2e018217, 0xfff8ff11, 0xfff9fff0, + 0xfff6fff7, 0x82f4fff5, 0xfff32201, 0x8fc918f1, 0x285d8209, 0x00250023, 0x00260024, 0x2401860d, 0x00080004, 0x051b4703, 0x82faff21, 0xfff62c33, + 0x000e00f9, 0xff150014, 0x8218007f, 0x00242a29, 0xfffbff20, 0xfffcfffd, 0x4f6118fe, 0xfff1221e, 0x235f82f2, 0x00050000, 0x14225383, 0x01822000, + 0x39471420, 0x00f52406, 0x183a001c, 0x202cdb87, 0x22b782f7, 0x82f2fff2, 0x82fa20cf, 0xfffb24cf, 0x47beffdf, 0x01230a3f, 0x82000200, 0x18ff2000, + 0x2110ff72, 0x6b4a0000, 0x82ff2006, 0x240385af, 0xffe5ffff, 0x200182d5, 0x20c584e6, 0x213682fc, 0x2b420001, 0x42752007, 0x00206e2b, 0x42084142, + 0x06223d35, 0x01820a00, 0xfaff0634, 0xf4fff5ff, 0x0f00faff, 0x14001300, 0x28001500, 0x01822900, 0xe5511b20, 0x233d520c, 0x2207e357, 0x8231002f, + 0x19202001, 0x42082fde, 0x18208349, 0x2822d582, 0x9f491900, 0x256a1808, 0x0007260d, 0x0034001b, 0x8f701827, 0x6578180e, 0x00c72119, 0x4a058d4b, + 0x0e2605a3, 0xedff0a00, 0x0182e4ff, 0x5d42e720, 0x00022a46, 0x0232ff2b, 0x00ad023b, 0x6f89441d, 0x3b196618, 0x00e8fe23, 0x3fb71807, 0x000b210a, + 0x1587c918, 0x2717c544, 0x000d0008, 0xff07000e, 0x3387c918, 0x20138944, 0x064150f8, 0x15000d22, 0x66180182, 0xfe253a35, 0x002000a8, 0x22018230, + 0x84fcff2b, 0xfffe2201, 0x91e518fe, 0x00032108, 0x19156618, 0xc9180320, 0x372008c3, 0x0d834182, 0x0300042a, 0xd3ffe2ff, 0xd9ffd2ff, 0x02203782, + 0x1806c94b, 0x180e2566, 0x4412cfbd, 0x77830785, 0xc7ffde22, 0xdf200182, 0xfb208984, 0x2b424182, 0x5d661878, 0x42f8203c, 0x66189a2b, 0xfe213a79, + 0x9a2b4283, 0x28000329, 0x3f02e600, 0x18007601, 0x244e63dc, 0x07009700, 0xb5a51800, 0xffe02111, 0x77db3e1a, 0x0000e622, 0x07248f84, 0x4c002600, + 0xda229b94, 0xa618b4ff, 0x2fd714dd, 0x49000128, 0x1f0281ff, 0x4363c900, 0x34012527, 0x14001000, 0x16240182, 0x2b002a00, 0x1d2a0182, 0xcaffe5ff, + 0xf3fff6ff, 0x0182f2ff, 0x83ffe421, 0x84ed2001, 0xfff3220f, 0x201b82f1, 0x201182e3, 0x240382ee, 0x001c00ca, 0x282f822c, 0x0016002a, 0xff140015, + 0x20078281, 0x2913821c, 0x003a001f, 0x003c003d, 0x00820028, 0xed264182, 0xecffeeff, 0x0184d9ff, 0x0e00e624, 0x01821200, 0x26001524, 0x21822700, + 0x23841a20, 0xc4ffd828, 0xc6ffc3ff, 0x5582e1ff, 0x1182e420, 0xe700012a, 0xbb0181ff, 0x0b00db02, 0x250df348, 0x1700e700, 0x21824600, 0x1e000024, + 0x3b845900, 0x0b73261a, 0x5202c622, 0xcf821383, 0x1b843220, 0x4b842a20, 0x4b82ad20, 0x4b918120, 0x82250121, 0x8945204b, 0x26098243, 0x005a001e, + 0x8281ff00, 0x00002109, 0x0f37261a, 0x979e3a20, 0x271a3520, 0xff230d23, 0x88baffe9, 0x0011224b, 0x243d8233, 0x02c50000, 0x2297a151, 0x8700ad00, + 0xffe9224b, 0x222f84bb, 0x90a6ffe2, 0xfd3b2297, 0x201b84af, 0x269784ef, 0x02ae002c, 0x4196013c, 0x2c20102f, 0x4d109f6e, 0xae200525, 0x00243582, + 0x71002600, 0x14220784, 0x4b843d00, 0x0582c620, 0x00010128, 0x26020fff, 0x91597d03, 0x00012549, 0x4a001900, 0xcc415b82, 0x00022605, 0x00040000, + 0x2201820f, 0x8202001a, 0x84012001, 0x821b8505, 0x0803532a, 0x09820120, 0x05000324, 0x01840600, 0x09000924, 0xb2180a00, 0x072008fd, 0x2208656b, + 0x18fafffa, 0x300895fa, 0xffcfffea, 0xffdcffdb, 0xfff5ffe8, 0xfff6fff7, 0x241b82f9, 0xfffcfffc, 0x055752fe, 0x0f20e384, 0x002d0583, 0x00e801a3, + 0x0029001a, 0x00230028, 0x0fea1891, 0x84ff2008, 0xfffe2200, 0x200182fd, 0x200382fa, 0x200382fc, 0x833d82fe, 0x82fd2007, 0x18fb2051, 0x200899d5, + 0x204584fe, 0x0c934704, 0x0d001024, 0x637e0c00, 0xffe6240c, 0x82cbffe6, 0xffde2403, 0x82d5ffde, 0xffcc2e01, 0xffc2ffcc, 0xffedffe2, 0xfff8ffec, + 0x28df8236, 0x011cff3e, 0x008a0363, 0x0de7423d, 0x8214bb4d, 0x20179a2e, 0x247b822c, 0x00090009, 0x22018207, 0x84050004, 0x84a4842c, 0xffe722f5, + 0x820784b6, 0x000027e0, 0xfcffffff, 0x0182f1ff, 0xcd18e620, 0xff200c01, 0xfe22e982, 0x4f4bfbff, 0x82f62006, 0x18f420ef, 0x200cc94f, 0x214183fc, + 0x01820600, 0x6b820c20, 0x11001130, 0x31001700, 0x24002400, 0x1a0084ff, 0x01822200, 0x2b002b26, 0x34003500, 0x1e22cd82, 0x01821400, 0xca000824, + 0x35839401, 0xfe5dff27, 0xffe5ff18, 0x260182d8, 0xff6effdd, 0x83b7ffb8, 0x04002115, 0x08220182, 0x53840800, 0x07000524, 0x09820500, 0x02210383, + 0xed4f1800, 0xfff92409, 0x82f6fff9, 0x82f32001, 0xfff322af, 0x6c0b84f3, 0x1a200721, 0x01287782, 0x08ff8c00, 0x8903dc01, 0x232fa569, 0x19008c00, + 0x8205cb5b, 0x0002228b, 0x208b8202, 0x59a91804, 0x22e18308, 0x180e000d, 0x2008b15f, 0x28eb8217, 0xffe6ff1a, 0xffecffca, 0x200182ea, 0x200382e9, + 0x220b82eb, 0x82edffec, 0xfff02297, 0x0aef6bf4, 0x83000821, 0x001c2200, 0x245d8252, 0x00430044, 0x2401823b, 0x00370037, 0x24018232, 0x002f0030, + 0x2001842d, 0x2205822c, 0x8230002c, 0x8331200f, 0xe2ff292e, 0xdaffdbff, 0xd2ffd3ff, 0xcb226382, 0x0182c1ff, 0xb6ffb628, 0xacffadff, 0x0182a0ff, + 0xdbff9522, 0xeb832582, 0xee000d24, 0xf4188a03, 0xc7890b7b, 0xffe7ff27, 0xff0000b7, 0x2429820d, 0x03200100, 0x2107835d, 0x3786e1fe, 0xdc011922, + 0x2b203782, 0x222e6742, 0x82ebffdc, 0xffed24e1, 0x82efffee, 0xffee2201, 0x088541f2, 0x8619f520, 0x0d430a6b, 0x85002005, 0x226f827f, 0x82050000, + 0x000a2401, 0x450e000a, 0x142406ef, 0x17001500, 0x192c0182, 0x1a001800, 0x19ff1b00, 0x27002600, 0x05830182, 0x29002924, 0x01822b00, 0x2f003028, + 0x34003300, 0x01823a00, 0x40004024, 0x01824800, 0x24005122, 0x2705a341, 0xaeffe5ff, 0xa9ffa0ff, 0xb2280182, 0xbaffb1ff, 0xc2ffb9ff, 0xc8240182, + 0xcfffc8ff, 0xd4240182, 0xdaffd4ff, 0x0f427984, 0x7b012138, 0x49209b82, 0x00284384, 0xfafffbff, 0xf3fff4ff, 0xf020ed82, 0xeb24ff84, 0xeaffebff, + 0xeb240186, 0xcaffe6ff, 0xcf83c582, 0x14001426, 0x10001100, 0x0c29e784, 0x08000c00, 0x06000900, 0x05a34800, 0xf74f0220, 0x090f4206, 0x60006b22, + 0x54240182, 0x4a005300, 0x3f310182, 0x35003f00, 0x2e003600, 0x26002d00, 0x1e002500, 0x82008200, 0xffd122cb, 0x20cd82d0, 0x230384d3, 0xffd2ffd3, + 0xce280f83, 0xcaffceff, 0xc5ffc9ff, 0xbd240182, 0xb7ffbcff, 0x25050f42, 0x0dff7b01, 0x0f42dc01, 0x21c7890d, 0x0f42e8ff, 0xdc00214f, 0x1924f782, + 0x17001800, 0x14220382, 0xfb821500, 0xfb821220, 0x0a000f22, 0x04220182, 0xc0820500, 0x77850282, 0xfd24cd84, 0xfafffdff, 0xf8220182, 0xa018f8ff, + 0xf12208cb, 0x0f71f1ff, 0xffed2408, 0x42ebffed, 0x2c24060f, 0x31002c00, 0x38240182, 0x3e003800, 0x47280182, 0x4f004600, 0x57004e00, 0x60200182, + 0x220c0742, 0x82b8ffaf, 0x59c02001, 0xcc28066d, 0xd1ffcdff, 0xd5ffd0ff, 0xd7260182, 0xd9ffd7ff, 0x0382daff, 0x0f420582, 0x010d2408, 0x477e03dc, + 0xff43101b, 0x003b2209, 0x22ad84b3, 0x4304ffac, 0x0522083f, 0x13831003, 0x4520e982, 0xfe210783, 0x447f43e4, 0x240fcf48, 0x0054008c, 0x245982fc, + 0xffc5ff00, 0x4307844d, 0x192005c3, 0x7b870b83, 0x8b860120, 0xcf938389, 0x840af741, 0x204182c7, 0x44d7833c, 0x1c22060f, 0x5f845503, 0x21065348, + 0x0d82fbfe, 0x3f420120, 0x44832006, 0x3f420b4f, 0x031e2216, 0x22318258, 0x44e3fe00, 0x83200a4f, 0x87125341, 0x45e820cf, 0xff2105e3, 0x20d783c4, + 0x23cf84ff, 0x50031a01, 0xfc224384, 0x8b85f6fc, 0x06268384, 0x600205ff, 0xe2187e03, 0x062024a1, 0x2208ff49, 0x82080000, 0x000f2401, 0x8215000f, + 0x00192401, 0x845d002f, 0xffde2653, 0xffe1ff99, 0x280182e5, 0xffe9ffe8, 0xffeeffed, 0x220182f3, 0x84f9fff9, 0x05a1421d, 0xa402e126, 0x1d002400, + 0x16240182, 0x0c001600, 0x1d83c583, 0x3e204782, 0x00200784, 0x2107c556, 0x0182eaff, 0x22070b5f, 0x84d5fedd, 0xff0826fb, 0x0363010d, 0x89941889, + 0x18df8a54, 0x260a2bca, 0xfff4fff6, 0x82fbfffc, 0x27c78201, 0xfafff9ff, 0x1000f8ff, 0x0c26b782, 0x19000900, 0x01820d00, 0x00219882, 0x05734a00, + 0x83087743, 0x82f7202f, 0x82f320c9, 0xffee223d, 0x22c982ef, 0x82e5ffeb, 0xffe02401, 0x83ebfff6, 0x06002325, 0x41820800, 0x1a000828, 0x17001600, + 0x01821300, 0x56181020, 0x08200c67, 0x05202182, 0x20066b52, 0x20578402, 0x2d05830d, 0xbd003f00, 0x2c003600, 0x21002d00, 0x3d822200, 0x12001922, + 0xa7492982, 0x00062205, 0x20018205, 0x30598204, 0x000b000b, 0x0024000d, 0x00460045, 0x00540067, 0x264184a8, 0xff46ffc3, 0x82d8ffcd, 0xffe42401, + 0x82ebffe3, 0xfff32201, 0x20a582f3, 0x77d318f8, 0x8200200c, 0x00be24ad, 0x84ffff00, 0xb5031b33, 0x41fc2009, 0xf6260603, 0xf1fff5ff, 0x3f84f2ff, + 0xe6ffe624, 0x0182deff, 0xaeffd622, 0x24064f42, 0x03600219, 0x234f4289, 0x84600221, 0xffdd245f, 0x84e7ff97, 0x82f1204b, 0xfff82255, 0x201583f8, + 0x0a4f4100, 0x82070021, 0x05ed6b01, 0x17001226, 0x1b001800, 0x1f280182, 0x19ff2e00, 0x3f001400, 0x00212d85, 0x24ef820a, 0x00160017, 0x2401821d, + 0x022a0124, 0x27178353, 0x65fd22ff, 0xe0ffddff, 0xe4220182, 0xd582e5ff, 0x18ffe921, 0x2a0b9371, 0x01010000, 0x0109ff06, 0x438c0363, 0x07420c83, + 0x05d34108, 0x8309ff21, 0x2101234b, 0x07836203, 0x42e0fe21, 0x05220687, 0x37436201, 0x43052026, 0xff250937, 0xfff9fffa, 0x240182f3, 0xffeeffee, + 0x280182e8, 0xffe4ffe5, 0xffd3ffe1, 0x265582a4, 0x00230000, 0x821a0069, 0x156a18d5, 0x43ff200c, 0xe0220537, 0x1f82a102, 0x1f002024, 0x01821c00, + 0x53821620, 0x10001027, 0x08000900, 0x23008400, 0xc2ffebff, 0x00240884, 0xf4fff5ff, 0xea22eb82, 0x0182e3ff, 0xd4fedc22, 0x01261582, 0x0dff0501, + 0x37436002, 0x21df8a56, 0x01820200, 0x04000324, 0x01820500, 0x9b820820, 0x0a000a24, 0x01820d00, 0x79561020, 0x00162406, 0x821b0016, 0x05916a1b, + 0xff299a82, 0xffe9fff9, 0xffe5ffdf, 0x26b382e6, 0xffeeffeb, 0x6af3ffef, 0xfa200885, 0x08516018, 0x830b0f42, 0x8419204f, 0x05f54261, 0x67820720, + 0xf2ff0722, 0xf5203784, 0xf6223b82, 0x5582f7ff, 0xdd453b83, 0x05374305, 0xb9003e24, 0x33432a00, 0x001b2206, 0x20018215, 0x2093820e, 0x229f820b, + 0x82070007, 0x8204204d, 0x07e24bb9, 0x00219782, 0x22048201, 0x823b001d, 0x220d8505, 0x82030002, 0x00082201, 0x83cf8409, 0x001d243f, 0x8228001c, + 0x00332401, 0x83a40053, 0xc1ff2b24, 0x99ff43ff, 0xbbffbaff, 0xbd60dcff, 0xfffb220c, 0x839182fc, 0x82f2209b, 0x82e720e1, 0x82de20eb, 0xffd326f3, + 0xffcaffd4, 0x263982ac, 0xff080001, 0x43620119, 0xed822537, 0x67002226, 0x1b001f00, 0x18260182, 0x12001800, 0x93841300, 0x06000722, 0x02824b82, + 0x200a8b44, 0xa56d18f8, 0xffd2240c, 0x460000a2, 0x2682050f, 0x08000824, 0x01821000, 0x16001724, 0xcb821b00, 0x20002028, 0x29012300, 0x1b825002, + 0x21ff0024, 0xc58262fd, 0xe3ffe324, 0x4f82eaff, 0xf6fff522, 0x00231583, 0x82ebff00, 0x01012607, 0x010fff00, 0x0efb4863, 0x2308694e, 0xb6ffe7ff, + 0x0f202982, 0x00242982, 0x5c031f01, 0xfe210783, 0x280582e2, 0x01f6ff01, 0x01730223, 0x0b6f4374, 0x9f225982, 0x1d82de01, 0x60ff0027, 0x000023fe, + 0x82038201, 0x07174f0d, 0x23826f84, 0x3782fa20, 0x379b9c20, 0x82fa0021, 0x00002435, 0x847a0028, 0x84d7204b, 0xff0c26a7, 0x035c0107, 0x0cdf4394, + 0x4b7d0c20, 0x07ff210d, 0x75822982, 0x846a0321, 0x82dd20a7, 0x00012205, 0x203782e4, 0x21378d84, 0x5b82e400, 0x5b847820, 0x88ffd824, 0x37920000, + 0x1e000322, 0x4b20df82, 0x0f21df84, 0x1b3b7f00, 0x24001e24, 0x4b846d00, 0x93ffdc22, 0xce200782, 0xcd220f8e, 0x1f862500, 0x1f83db20, 0x5f0f1341, + 0xc7820549, 0x43843d20, 0x0f8feb20, 0x8b821582, 0x02fa0025, 0x829c014b, 0x418bccfb, 0xff210f67, 0x416d8287, 0x0f8f0a77, 0x03281d82, 0x43ff0c01, + 0x53035c01, 0x01208b9f, 0x820e9b41, 0x1914203b, 0x410de9e1, 0x02210dbb, 0x24218231, 0x00490000, 0x210783d9, 0x9751b7ff, 0x200f8205, 0x200f86da, + 0x220783b0, 0x85004800, 0x82b8200f, 0x0003220d, 0x208b82e4, 0x418ba184, 0x3b820fef, 0x41002821, 0x0f8f0aff, 0x04208bb2, 0x180e2f42, 0x2123f3a5, + 0x5119001e, 0x9a230dc1, 0x19001800, 0x200bc953, 0x221f889a, 0x82b9ffe9, 0x200f83a3, 0x22078248, 0x83e8ff00, 0x2f49420f, 0x82105942, 0x0c5742b3, + 0x7142b3e2, 0x1081422f, 0x7f420420, 0x42b3a20e, 0xa9422f89, 0x8e02210f, 0x00231182, 0x51003100, 0xcf220583, 0x0f8653fe, 0x07839320, 0xfecfff23, + 0x99078354, 0x0400211f, 0xa20ea742, 0x2fb142b3, 0xbf10c142, 0x010128b3, 0x0207ff0c, 0x4c740173, 0x4d410f9b, 0x46002309, 0x7782d100, 0xa6ff0025, + 0x4500f3fe, 0x00230643, 0x83950187, 0x45002013, 0x652007f3, 0x8207bb45, 0xae9c204b, 0x017d224b, 0x0c8f4476, 0x0d825b20, 0xe4000122, 0x31419795, + 0x3c002109, 0x2206874e, 0x9dd5fe9c, 0x904b8697, 0x944b9e97, 0xf6ff2597, 0x5c0107ff, 0x231b2f41, 0xf3fea7ff, 0x0024c182, 0xd1004500, 0x9b229788, + 0xf745d201, 0x79ff210b, 0x84055b47, 0x4197904b, 0x4b94097b, 0xf001a522, 0xd7204b84, 0x21053543, 0x4b8883ff, 0x97918420, 0xff23e389, 0x82d5fe9d, + 0x00002429, 0xa2b3003b, 0x01842197, 0x4b9e9790, 0x01279794, 0x0223010c, 0x42940373, 0x5a221213, 0x8f830d01, 0xffbaff23, 0x2207842f, 0x48c4ffec, + 0x00230f4b, 0x84980188, 0x4264201b, 0x0021055f, 0x444babfa, 0x00220d85, 0x6748017e, 0x425a2005, 0x9795055f, 0x6422e382, 0x73842b01, 0x6350c420, + 0xffd82206, 0x82979d88, 0x97979433, 0x25979b4b, 0x2301f6ff, 0x2f415c01, 0xf6ff2311, 0x2f415900, 0x45ec2006, 0xff2305e1, 0x882fffbb, 0x019c2297, + 0x22b384d5, 0x8468fe78, 0x08834907, 0x97864bab, 0xf301a722, 0x82224384, 0x974986fe, 0x20978409, 0x20979484, 0x062f4163, 0x88ffd822, 0xc5222f84, + 0x97a24dff, 0x979b4baa, 0x8205bf44, 0x550f2097, 0x9b4812ab, 0x08c34408, 0x4a0c6b42, 0xcb44050f, 0x0773420f, 0x44ddfe21, 0x5fbc09d3, 0x420e4744, + 0x5f850787, 0x82059b44, 0x9213205f, 0x010022bf, 0x12874500, 0x820c9742, 0x000a22a3, 0x17ff441e, 0x20093f43, 0x05d342fe, 0x5b457920, 0x45739909, + 0x37411217, 0x226d820c, 0xa0e2fff6, 0x078b4273, 0x738c6520, 0x9212a741, 0x41e38c6f, 0x474123a7, 0x16b3414e, 0xfe5aff23, 0x20cd820c, 0x05734500, + 0xd792739f, 0x971b4741, 0x07874373, 0x420a1747, 0x6f92158f, 0x96134741, 0x058f4267, 0x9505df46, 0x1161495f, 0x20058344, 0x0ceb4600, 0x4d230121, + 0xff200597, 0x44088b44, 0xf34606af, 0x445fc40a, 0x0747089f, 0x19db4211, 0x0022c389, 0x4358000a, 0x0cb74405, 0x1b44cb8d, 0x105f4508, 0x8420d390, + 0x97417399, 0xf6ff2309, 0xeb46e2ff, 0x00002109, 0x47083f41, 0xbb431293, 0x19474108, 0x4f437383, 0x8fff201c, 0x41678adb, 0xd39a22a7, 0x422e4741, + 0x5b460773, 0x2bbb4110, 0x482e4741, 0xf747068f, 0x1d2f4208, 0x98414741, 0x7302235f, 0x6f187401, 0xdb4513d3, 0xfe602112, 0x4a054b51, 0x6b4b0b3b, + 0x063b500f, 0x8209434a, 0x009c215f, 0x44293f46, 0xa74a0783, 0x436b8e13, 0x6b4a0823, 0x2073ae10, 0x05134ba6, 0x20132f44, 0x0e8f4400, 0x95082343, + 0x12a741e7, 0x8f264741, 0x41d39367, 0x574514a7, 0x07a74112, 0x440a4f43, 0x0753082b, 0x0f234408, 0x921b3341, 0x07bb4563, 0x4113b74b, 0x739244a7, + 0x234c9c20, 0x075f5b05, 0x410c2b4c, 0xcb440f3f, 0x28a74107, 0x47416f92, 0x41678f13, 0xb74b0ea7, 0x12074206, 0x470a9754, 0x2b4b0f67, 0x069f410b, + 0x4d115f45, 0x634c0547, 0x164f4306, 0x4a09874b, 0xd3451553, 0x82fa2008, 0x0000244d, 0x181f000a, 0x4c0cd575, 0x5b4b07cf, 0x22739d0e, 0x4d000c01, + 0x6b88142b, 0x4c067f47, 0x3f461657, 0x8cf6200f, 0x324741e7, 0xd38e6796, 0x4824a741, 0xcf820c9f, 0x410b3b4c, 0x974c3fa7, 0x08275006, 0xcb866b94, + 0x4d44a741, 0xaf5e18ef, 0x054f4308, 0x41163f41, 0xdb9b3ba7, 0x5f572820, 0x11074705, 0x25050742, 0x730207ff, 0xfb569403, 0x125f451b, 0x49145f43, + 0xc741163b, 0x111f4518, 0xaf4787ec, 0x4487d41a, 0x8f410ed7, 0x0ff74108, 0x4108274b, 0x87975697, 0x424b0f41, 0x274c158f, 0x0f2f470c, 0x42118f45, + 0x5f462f1f, 0x17a74212, 0xd41ab747, 0x170f4187, 0x441887c1, 0xa74b1ea5, 0x1e0f4511, 0x420da341, 0x1f45072b, 0x0fc74b20, 0x03730223, 0x41451894, + 0x1257441f, 0x501c2741, 0xc7420eeb, 0x0f4f4317, 0xe1fff622, 0xb34f3982, 0xf6ff2106, 0x4106ef44, 0x4b421e37, 0x4d9b8712, 0x9f4923c3, 0x11834516, + 0x92333741, 0x0fe7429b, 0xc520a387, 0x4905c354, 0x93901bc7, 0x451ad749, 0xcf413017, 0x0bdf4c17, 0x4417c741, 0x1f41388f, 0x56bb2022, 0x17410573, + 0x0e874a2c, 0x92213747, 0x170f4187, 0x41230744, 0x87a34b0f, 0x43179741, 0xaf460f5f, 0x360f4128, 0x0f418797, 0x5d022013, 0x00200c9f, 0x260f016e, + 0x3e001e00, 0x8200ba00, 0xc2ff2700, 0x000046ff, 0x0f8e3501, 0x5d0ec960, 0x5f82104b, 0xb00a4b5d, 0x0df9495f, 0x5142ff20, 0x61002006, 0x022a0901, + 0x69ff0c01, 0x2d035c01, 0x31500700, 0x8b4e181d, 0x0c6d5f08, 0x829c0121, 0x000024da, 0x842d0164, 0xfc9c22e3, 0x230783a0, 0x2c016500, 0x00230f85, + 0x82e40002, 0x9784205f, 0x1f8f5c5f, 0xff275fa1, 0x02d200f6, 0x95c50173, 0x0f3962bf, 0x49629582, 0x4d74200d, 0xff230b2d, 0x8c22ffeb, 0x82ec200f, + 0xffbc26bf, 0x03ac0107, 0x215f9594, 0x6d60bc00, 0xa000210d, 0x01620f8d, 0x96fc210f, 0x5d0e4962, 0xc520070f, 0x5d314f51, 0x73221427, 0xc18b5801, + 0x3d208d82, 0x5020d18c, 0x01210d82, 0x23d38200, 0x74017302, 0xd5897397, 0x0788cd87, 0x95003222, 0x00244182, 0xb7fe92ff, 0x230f8f57, 0x6bfe79ff, + 0x67491b83, 0x65ff210f, 0x02201582, 0xc5227386, 0xf94b0b00, 0x4e798a1b, 0x69840781, 0x20095741, 0x22818700, 0x5c2fffba, 0xa5820f55, 0xff23ed84, + 0x82f2fd50, 0x00002173, 0x230e0d41, 0x010079ff, 0x20056f56, 0x226f4101, 0x4e0d0b5d, 0xd9410ffb, 0xb0002305, 0x675d0e02, 0x079b500c, 0xc3ffec22, + 0x8d201784, 0x20082b5d, 0x336f41ac, 0xfe92ff23, 0x244182b8, 0x00310000, 0x186f4195, 0x2013eb5d, 0x20e78402, 0x41e782ac, 0x01211c6f, 0x08af425c, + 0x59226987, 0x69820d01, 0x17886020, 0x8b07b946, 0x22f58f81, 0x842efe65, 0x068548a5, 0xfd89ff20, 0x0c010126, 0x7302d200, 0x5019ab56, 0xe750116b, + 0x84d22016, 0x07db4d61, 0x7422078f, 0x1f835b01, 0xdf42ff20, 0x060b5006, 0x25165351, 0x6e00bc00, 0x2f844901, 0x6bffce22, 0x180c1f57, 0x5e0985cb, + 0x7820191b, 0x5e05f35c, 0x02200c2b, 0xe7855382, 0x8a1c6f41, 0x07a15479, 0xa0207185, 0x918df588, 0x1558f58d, 0xfe502207, 0x0c0d4190, 0x7828fd87, + 0xf6ff0100, 0x5c01d200, 0x5d196f41, 0x4f8217d7, 0x77614520, 0x05f14106, 0xb1227985, 0x19821102, 0x8dff0023, 0x05bf68fe, 0x4207df42, 0x1d8208e7, + 0x01237382, 0x9cac0123, 0x416d2073, 0x5f41066f, 0x1800200c, 0x2209d545, 0x5d6bffcf, 0x1f4d17c3, 0x20738211, 0x83e78402, 0x1c6f4173, 0x798f2582, + 0x8f0c8556, 0x8d002081, 0x5c6420f5, 0xec2206c5, 0x73826500, 0x89880020, 0x20080d41, 0x06bf4500, 0x2030a74a, 0x060f4aba, 0x4b07eb62, 0x5b440c4f, + 0x0ebd4406, 0x200fcb45, 0x06f54100, 0x45ddfe21, 0x8782095f, 0x5f450720, 0x41ff2025, 0xaf460589, 0x08574508, 0x460c7f42, 0xe14515bf, 0x0ac15e0f, + 0xe7450320, 0x20878405, 0x23e36d13, 0x41124147, 0x898c0713, 0x46093d65, 0x5b5a1301, 0xddfe2307, 0x298203ff, 0x44000021, 0x1943071f, 0xfbfb2108, + 0x53411784, 0x09d3580e, 0x415c0121, 0x394127c3, 0x094b5b06, 0x4e0d3743, 0xf35a0ccf, 0x183f4308, 0x450a2746, 0x878206b3, 0x481d8d69, 0x00220f73, + 0xc544cfff, 0x05254605, 0x5d1d8348, 0xb5471125, 0x09414105, 0x46030021, 0x8782053b, 0x41000b21, 0xff2124c3, 0x057b64f6, 0x210f4d43, 0x0d496601, + 0x1655460e, 0x85490120, 0x63882005, 0x2b41067b, 0x57fd2208, 0x89008200, 0x053d4999, 0x46077d42, 0x00220a65, 0x674f0200, 0xc5012205, 0x1cff4200, + 0x210f0f4a, 0xd9481601, 0x07754208, 0x860c115b, 0x08615999, 0x57489185, 0x0aef4610, 0x74208786, 0x49258543, 0x8587185f, 0x4f1bf747, 0xff200ef3, + 0x200b1759, 0x0a0f4103, 0x4b27c341, 0x00210c19, 0x150148c6, 0x41178949, 0x11481629, 0xa8fe2210, 0x43008300, 0x02201387, 0x4205cb4b, 0x75591fff, + 0x1de34b1f, 0x46073545, 0xf34b0ad1, 0xff01220f, 0x063f48f6, 0x8a1a9f6d, 0x0ea74485, 0x45081f44, 0x9d430561, 0x0d556b06, 0x8f0fd346, 0xebff210f, + 0x0320c582, 0x22080f41, 0x4517000b, 0x8743234b, 0x1453451a, 0x009afe22, 0x430cf341, 0x954e1787, 0x0841410d, 0xc6fd7822, 0x6b45a582, 0xecff2108, + 0x200cdf57, 0x165f6427, 0x6410c34e, 0x1f471473, 0x0f8b4b1c, 0x3f470f8f, 0x19db482d, 0x230fc34b, 0x94037302, 0x2cab7118, 0x4308a945, 0x3b4218e7, + 0x4b002024, 0x07441dff, 0x0f4b420e, 0x27440f8f, 0x4404200c, 0xd7820527, 0x17000b24, 0x6f192300, 0x7542334b, 0x46ff202f, 0x59441605, 0x101d461e, + 0x47179542, 0x794406e9, 0x09936c29, 0x561ea355, 0x002b0a3f, 0x16001700, 0x3f002d00, 0x82007e00, 0xd1ff2700, 0xe4ff72ff, 0x0182e8ff, 0xeeffed28, + 0xf2fff1ff, 0x0182f7ff, 0xfbfffb22, 0x07201d84, 0x00270583, 0x003c016a, 0x821e003a, 0x480e8401, 0x002408a3, 0xf9fff8ff, 0xf2203182, 0xee223982, + 0x0182e9ff, 0xe6224783, 0x3b4e73ff, 0x015c2208, 0x2adb5674, 0xfbff0026, 0xf6fffcff, 0xf2200182, 0xec225582, 0x5384edff, 0xc1ffe424, 0x518283ff, + 0x2f000024, 0xb9828d00, 0x0e82bf83, 0x83062b43, 0x001a249b, 0x82180019, 0x001726d5, 0x00130012, 0x2101820e, 0xb9850007, 0x33420020, 0x00002307, + 0x0182e2ff, 0x9b87c620, 0x41063b6a, 0xff211e37, 0x227384f6, 0x8217001c, 0xff90185f, 0x09937c0b, 0x09e96018, 0xad82ea20, 0xab85d320, 0x20063345, + 0x08df7700, 0x99821320, 0xa1821620, 0x2205a77e, 0x821d018f, 0xff002ac0, 0xffbffe95, 0xffe3ffc6, 0x200d83e3, 0x077f7400, 0x9e07076c, 0x7302219b, + 0xff263583, 0xff72ffd1, 0x7b82ffd3, 0x00200d83, 0x8208974c, 0x0005280d, 0x00090005, 0x820e000a, 0x00132201, 0x24c18213, 0x001b0018, 0x229b823f, + 0x823d0014, 0x2502831f, 0x001d001d, 0x8f8b003a, 0x9118e620, 0xee2408af, 0xf2ffedff, 0x8209e37a, 0xff01282e, 0x0207ffd5, 0x418f0394, 0xff211fd3, + 0x24eb82d5, 0x001a0042, 0x28018220, 0x00420023, 0x004b004a, 0x24698247, 0x00350035, 0x24f18228, 0xffd8ffc4, 0x240182cb, 0xffb9ffc6, 0x200182b6, + 0x06cb78be, 0x2a05b541, 0x003b0032, 0x0043003c, 0x828c007c, 0x00862801, 0x0064006f, 0x824c0063, 0xff002c81, 0xff9dffb4, 0xff91ff9c, 0x8274ff7a, + 0xff842601, 0xffc4ffbd, 0x259babc5, 0x17003b02, 0x7f8a4200, 0x7f8ab520, 0x9b82e620, 0x2800c522, 0x3524a582, 0x46003b00, 0x4a24b582, 0x24004100, + 0x1f20c582, 0x20066f42, 0x248b824c, 0x006e0064, 0x209b8486, 0x20a5827c, 0x20ab823c, 0x209ba631, 0x2a5b4647, 0x8a136f46, 0x06634113, 0xcd821120, + 0x1a001628, 0x31002e00, 0xa7823000, 0x17220f83, 0x0f881900, 0x3b001e23, 0xcb9e18ff, 0x0014220f, 0x2831821b, 0x0036001e, 0x00390038, 0x2cf38225, + 0xffe0ffc4, 0xffcfffd0, 0xffe7ffd2, 0x200182e9, 0x220f88ef, 0x84eaffe6, 0xffe3240f, 0x822500c5, 0x8239202d, 0x841d2035, 0x8414203f, 0x18e52057, + 0x4108a9a6, 0x212405bb, 0x2a002b00, 0x58228982, 0x01825c00, 0xdfff3d26, 0xd6ffd5ff, 0xa8225b82, 0x0182a4ff, 0x8300c321, 0x00262200, 0x29018232, + 0x00670037, 0x006b006a, 0x0f890047, 0x11826b20, 0x22834720, 0xffc3ff23, 0x202f82a5, 0x067f7fa8, 0x3d00e024, 0x4f825b00, 0x59825820, 0x61822b20, + 0x23842020, 0x96ffb92a, 0x99ff95ff, 0xceffc9ff, 0xda220182, 0x0784daff, 0x1182c920, 0xdf4f1782, 0x77342008, 0x4f221093, 0x3f84ef00, 0x11ffb122, + 0x210faf6e, 0x1982ebff, 0x0c010124, 0x5b774b01, 0x4b01211f, 0x00242982, 0xb7019200, 0x6e204b84, 0x34203784, 0x23110378, 0x50003401, 0xb0206f86, + 0xff236f99, 0x825c0107, 0x42072051, 0x2f760a1f, 0x067f420e, 0xb3019122, 0x6f206f84, 0x0024df85, 0x013401fa, 0x820c3b78, 0x201a826f, 0x82db84ff, + 0x004f2208, 0x093557fa, 0x2305435b, 0xe4000100, 0x0378df82, 0x20df951e, 0x10ab7800, 0xb957df8f, 0x0973780f, 0x4157df8d, 0x21df970f, 0xdf827302, + 0x25127b63, 0x4e003e01, 0x5d82e700, 0x19ff0021, 0x2207334b, 0x830affae, 0x5200230f, 0x0782f600, 0x200d3379, 0x064f6af6, 0x83076b4c, 0x090b7921, + 0x9f8a5f92, 0x6d0fc75c, 0x8f410bd3, 0x09074206, 0x9f53fe20, 0x089f4105, 0xff21bf97, 0x20a786f6, 0x65c79600, 0x0a211517, 0x058b6b00, 0x5741d720, + 0x1f236c09, 0x20089b68, 0x057770d8, 0x6f410f85, 0x25bf950d, 0x4b010000, 0x2b7a6802, 0x2b731a0e, 0x1327420e, 0xff000027, 0xff68020f, 0x0b9b7aa5, + 0x951aaf82, 0xff210c67, 0x2411820f, 0x00260000, 0x21078370, 0xcf84daff, 0x00213784, 0x2037a232, 0x06f77849, 0x378ab720, 0x37a2be20, 0x43016c22, + 0x95206f84, 0x97423789, 0x86df8e0e, 0x018f22a7, 0x203784ad, 0x20378a71, 0x226fa2d8, 0x841602b3, 0x894e2037, 0x64022137, 0xd62237a2, 0x37847f02, + 0x378a2b20, 0x37a2f120, 0xe902f922, 0x07203784, 0xbf413789, 0x23df851d, 0x63032201, 0x00223182, 0x3788dffe, 0x37902320, 0x9a018922, 0x77225b84, + 0x037d66fe, 0x21379008, 0x3790d301, 0x5e017522, 0x8b223784, 0x379aa2fe, 0x37908320, 0x18016121, 0x970a51f4, 0x340121a7, 0x4d203790, 0x20081744, + 0x216f9919, 0x3790e400, 0xab003922, 0xc722a784, 0x379a55ff, 0x37909620, 0x71002522, 0xda223784, 0x379a90ff, 0x37904520, 0x34001122, 0xee223784, + 0x3795cdff, 0xff340123, 0x0f7f430f, 0x00340122, 0x1020df9f, 0x19244d82, 0x7e031c02, 0x086fe118, 0x2f002734, 0x3f003700, 0x4f004700, 0x5f005700, + 0x6f006700, 0xe3197700, 0x00218439, 0x518d1900, 0x8cdd820c, 0x67ff210f, 0x39211f82, 0x25008200, 0xc7ffedff, 0x1f8a0000, 0x0f83ec20, 0x4031fe21, + 0x0321bd3f, 0x24da8216, 0x001a0000, 0x22e3844e, 0x83b2ffe6, 0x200f8a07, 0xb70f8e20, 0x864f201f, 0x83b1205f, 0x875f8207, 0xa41f200f, 0x881b205f, + 0x893f859f, 0x203f9f0f, 0x295f9d21, 0x00001e00, 0x680219ff, 0xab427d03, 0x00873a20, 0x0097008f, 0x00a7009f, 0x00b700af, 0x00c700bf, 0x00d700cf, + 0x00e700df, 0x49554bef, 0x400f0761, 0x0023970f, 0x4d1a0000, 0xe7220611, 0x0d82b3ff, 0x1900ce23, 0xe9491800, 0x200f8307, 0x420f82cd, 0x0f820753, + 0x42cbfe21, 0xce200e63, 0x2f850f82, 0x3f86e620, 0xfd214f8c, 0x8d5f40fe, 0x8d670021, 0x32ff218f, 0x0f84bf8d, 0x210a4343, 0x2f8d9aff, 0x1f410020, + 0x0c0322ae, 0x22008300, 0x1855001c, 0x9d083364, 0x833c200f, 0x1c00231e, 0x2f865300, 0x0783ad20, 0x2f870f9a, 0x3a205fa7, 0x1d224f84, 0x8f8c5400, + 0x3b200f99, 0x7f822783, 0xac202f87, 0x2f870f9e, 0x5faf8fa7, 0x8f40ef87, 0x0a002286, 0x05f74400, 0x3b007e32, 0x4b004300, 0x5b005300, 0x6b006300, + 0x7b007300, 0x87fd1419, 0x00000025, 0x82740026, 0x08a34705, 0x003a0022, 0x20055742, 0x83b58213, 0x00132118, 0x22059b47, 0x8352ffc7, 0xedff230e, + 0x0784c6ff, 0x42ffc621, 0x0f860587, 0x820da347, 0x0ce34721, 0x9a200f90, 0x73881182, 0x4eedff21, 0x73860651, 0xffecff23, 0x8f1f8d2c, 0x202fd00f, + 0x476f8419, 0xb22019a3, 0x01231f83, 0x474c0319, 0x1f8416c3, 0xffd1ff22, 0x4705b153, 0x0fa006e3, 0xfe02dc22, 0x480eb345, 0xff210e27, 0x841f8d6e, + 0x17e7470f, 0x0000b122, 0xd7472f92, 0x252f9219, 0x00000100, 0x8f4af102, 0x0fd74d0f, 0x82f10221, 0x00002411, 0x837a0029, 0xd8ff2107, 0x01220582, + 0xc74a2302, 0x23022211, 0x07ff4a00, 0xccffef22, 0x8315ff4a, 0x34012115, 0x4a109f4d, 0x002012ff, 0x4b0c9f4d, 0x378d0537, 0x8d15374b, 0x00002337, + 0x4f4c4b01, 0x18ef4e1f, 0xf37f6920, 0x22fb8211, 0x82cf019a, 0x09a35005, 0x4cffb321, 0x7b870893, 0x21077b4f, 0x2982dffe, 0x00000225, 0x83020fff, + 0x14d7684b, 0x4b000021, 0xd5820dfd, 0x8f0c0551, 0x0dfc219d, 0x00203182, 0xff236987, 0x88010071, 0x3352185f, 0x5059880f, 0x6622088f, 0x974131fe, + 0x98ab9407, 0x84958a4b, 0x22838243, 0x41e7004d, 0xff210fe3, 0x062b516e, 0x3b537120, 0x864b2006, 0x09e554f7, 0x1b513420, 0x41dd8f0d, 0x1f41212f, + 0xccfe210f, 0x530e3f41, 0x2f410ec5, 0x1adb412c, 0x8d074f4f, 0x030027e3, 0x6502dbff, 0xc74f1902, 0x0003240c, 0x82c90199, 0xff0028c9, 0x0036fe68, + 0x83dbff00, 0x8f00230b, 0x0783af01, 0x8470ff21, 0x523789e3, 0x418e13a9, 0x23059345, 0x74017c00, 0x84204184, 0xfe25518f, 0x01750088, 0x221b845d, + 0x8ca2fe8c, 0x5b17205f, 0x01273347, 0x005600ba, 0x832b002a, 0x2b038351, 0xd6ffd5ff, 0xa7ffaaff, 0xabff4dff, 0x08fb041b, 0x2b201883, 0x55282382, + 0xa6ff5a00, 0xe4ffc7ff, 0x8207f558, 0x001d2218, 0x22b3821c, 0x82b2005a, 0x820b8305, 0x82478412, 0x20298223, 0x2cbf84a7, 0x00280028, 0x00540051, + 0x005000a8, 0x830b8229, 0x2b038220, 0xd7ffd8ff, 0xacffb0ff, 0xafff58ff, 0xd8200b82, 0x00221282, 0x05823600, 0x1a001b22, 0x2f830782, 0x09823620, + 0x4f831b20, 0xff250383, 0xffe6ffe5, 0x202f84ca, 0x200982ca, 0x211383e5, 0x97410300, 0x1dc1620a, 0x251e6941, 0x6300befe, 0x67842a01, 0xd6fe9d22, + 0x4111cb41, 0x7d681079, 0x015e2205, 0x20338417, 0x200582a3, 0x198b8e06, 0x8236519e, 0x0c5542d3, 0x210f1342, 0x6b828cfe, 0x23420020, 0x420faf09, + 0x00250f53, 0x000d0028, 0x2ac58425, 0x00dafff4, 0x0099ff00, 0x8426000c, 0x83f3200f, 0x97ff212b, 0x27201fa2, 0xd9202f86, 0x20600741, 0x0541420d, + 0x00f3ff23, 0x226b8246, 0x8e0e0000, 0x8f1f8f0f, 0x000e220f, 0x20ab8429, 0x0f0741f2, 0x2010e141, 0x0e6b4300, 0x1a200faf, 0x51140f42, 0x1f4f13cb, + 0x1e435a13, 0x9997dd4e, 0x16d74297, 0x21119f41, 0x00820028, 0x8f08df41, 0x410f8f1f, 0xfe2108cf, 0x2136821e, 0x1f910000, 0xff214fb6, 0x884f84d7, + 0x69ff215f, 0x5f880f84, 0x8e6aff21, 0x421f850f, 0x2f90088f, 0x2f8dd820, 0xd03fbf42, 0x0fbd46ef, 0x820e1744, 0x0c2744bd, 0x57440faf, 0x443f820f, + 0x0faf0c67, 0xaf0f9744, 0xd42f8f8f, 0x0b17459f, 0x0d000023, 0x200fbb00, 0x0a4f4408, 0x33001f2a, 0x4b004300, 0x71006100, 0x7edbbe18, 0x320e5747, + 0xe2ff0402, 0xd8ffd9ff, 0xafffd4ff, 0xabffacff, 0x8300c8ff, 0x000a2600, 0x001e001c, 0x24ff8228, 0x0051002c, 0x20018254, 0x35168338, 0x0900f7ff, + 0xe0ffe7ff, 0xddffdfff, 0xbaffbdff, 0xd2ffbbff, 0xdb821900, 0x37002522, 0x36200182, 0x1a243582, 0x14001a00, 0xe5202b84, 0xd7205582, 0xeb225b82, + 0x0182edff, 0x1700f22a, 0x1d002d00, 0x30002f00, 0x20822582, 0xfff3ff29, 0xffe9ffea, 0x821800f3, 0xff002313, 0x3b5fff40, 0xffe32405, 0x82c8ffca, + 0x05dd4201, 0x21001930, 0x24002000, 0x46004300, 0x2e004500, 0x3182f2ff, 0x5dffe828, 0xd0ffe3ff, 0x675cd1ff, 0x0f002305, 0x01821300, 0x28001524, + 0x01822900, 0x21821b20, 0x0021ab84, 0x2471820e, 0xff0e0016, 0x123946e8, 0x25001d22, 0x292a0182, 0x50004c00, 0x35004f00, 0x2b820b00, 0x66199383, + 0xb12809f7, 0xcbffb1ff, 0xe8fff5ff, 0x70201682, 0x1f201d82, 0x0b99db19, 0x00241382, 0xccffdeff, 0xce222182, 0x6182e5ff, 0xeeffe722, 0x63202982, + 0x2622fb82, 0x59822600, 0x12001422, 0x0d200182, 0xe5222784, 0x0182d4ff, 0xeaffe528, 0x0c006200, 0x01821500, 0x17840c20, 0x3dfef022, 0x1926b782, + 0x1c001800, 0x83823200, 0x23003422, 0x2f200b82, 0xe2224d82, 0x5d82e1ff, 0xbfffc122, 0xd4200182, 0xff262b84, 0x1b000100, 0x01822d00, 0x16001b26, + 0xf3ff2b00, 0xee2a6f82, 0xdbffecff, 0xdaffd9ff, 0x2383e6ff, 0x33206f82, 0x641a1782, 0x7f4209ff, 0x0017240b, 0x4233001f, 0x2d49937f, 0x07174206, + 0x2e001726, 0xedfff1ff, 0xeb200182, 0xd823d982, 0x4affd7ff, 0x12220537, 0x2f423500, 0x22ec8308, 0x821a0014, 0x001d3001, 0x00380035, 0x00250037, + 0xff320019, 0x82e0ffe7, 0xffdc2701, 0xffbbffbd, 0xa56fffba, 0x001f2205, 0x0cc34227, 0x29820d20, 0xff233f82, 0x82d8ffe2, 0x08f3425f, 0x00f4ff23, + 0xd30719a8, 0x002e2c08, 0x00450046, 0x00240043, 0x86200021, 0x099b422f, 0xc8ffc927, 0x1b002c00, 0xa5721900, 0x07934210, 0x00eaff23, 0x077b4267, + 0x00226a82, 0x7f42eeff, 0x8aff250f, 0x31001100, 0x2c204382, 0x0b434984, 0x82ee2005, 0xffec2827, 0xffdaffdb, 0x187400da, 0x2708ff68, 0xffebfff4, + 0x00d4feeb, 0x0382ff82, 0x8d821820, 0x2b421b20, 0x84222006, 0xffe9225b, 0x21cb82e1, 0x2b42ffde, 0x00652805, 0x001a0009, 0x4226001c, 0x34200adb, + 0xf8222784, 0x9f82e6ff, 0x5f82db20, 0xb3ffd724, 0x0182b1ff, 0x0000cb24, 0x1b82ffff, 0x03820120, 0x87820020, 0x41004131, 0x22003f00, 0x1e001f00, + 0xe8ff1800, 0x1affd1ff, 0x200ddf55, 0x225982de, 0x42270026, 0xff2509db, 0xffd5ffea, 0x55d419e5, 0x0d002909, 0x15001600, 0xe9ff0d00, 0x49067b41, + 0x15200b4f, 0x2c083982, 0x00470039, 0x00670057, 0x00870077, 0x00a70097, 0x00c900b9, 0x00e900d9, 0x010d01fb, 0x012d011d, 0x014d013d, 0x016d015d, + 0x018f017d, 0xf16758a1, 0x40198949, 0x214a9719, 0xff4a2410, 0x46f3fffc, 0x0332083f, 0x06000500, 0xf9ff0300, 0xf4fff4ff, 0xfaff9200, 0x0182f5ff, + 0x3582fa20, 0x19820520, 0x0e000326, 0x02001d00, 0x04220982, 0x23860200, 0xf3189520, 0x178308b9, 0x1d820520, 0x1c000e24, 0x23820400, 0x47820520, + 0x4782fa20, 0x9400f522, 0x5f832388, 0x00201782, 0x2207d343, 0x880cfffc, 0x0007221b, 0x2001820c, 0x0fea1807, 0x21838408, 0x1f825dff, 0x8384f620, + 0x0b000722, 0x0b201f86, 0x06200982, 0xf3249b82, 0x3301f3ff, 0x06203f88, 0x06201f84, 0x086de018, 0x0f20bb85, 0xfa221f86, 0x5f930600, 0xbf890020, + 0xfe267f94, 0xfffcffc1, 0x008300f6, 0x41820320, 0x0722bb83, 0x69820a00, 0x57850720, 0x84cd0121, 0xfff52207, 0x831d82f9, 0x4106209f, 0x3382082b, + 0x82fdff21, 0xfffc223d, 0x892388af, 0x84cb8463, 0xfef42217, 0x87c388c2, 0x000622e3, 0x8301820d, 0xfff422e3, 0x21a39ff3, 0x678213ff, 0xfafffa24, + 0x7282fdff, 0x7f840020, 0x05820420, 0x3f414b86, 0xc7012105, 0x22104741, 0x82040003, 0x83032001, 0x223f8433, 0x41c8fefb, 0x87823d2b, 0x4105b341, + 0x0b23050b, 0x83000700, 0x000c21c7, 0xf524c783, 0x2b01f5ff, 0x89084f42, 0x000b21e7, 0x37851f83, 0x7f826020, 0xf4fff524, 0x3982f9ff, 0x83000c21, + 0x062f413f, 0xf7449786, 0x82032005, 0x8a062055, 0x82fd20df, 0x23fb8255, 0xb201f4ff, 0xff21c785, 0x070342fd, 0x05202582, 0xe3852d82, 0xb3fef722, + 0x20082741, 0x205d8206, 0x8719820b, 0xfffd245f, 0x82fbfffc, 0x00f3221d, 0x8409827c, 0x4243820b, 0x5742058f, 0x223b8606, 0x46f3fffc, 0x00290f1b, + 0x00040027, 0x0008000d, 0x064b411a, 0xcb843f84, 0xfcfff522, 0x0b226582, 0x85840a00, 0x6f410520, 0x84fe2008, 0x86fe2065, 0x20ef8323, 0x20ef840b, + 0x20218202, 0xb3911804, 0x2693830a, 0xfff6fffa, 0x18f7fff5, 0x210849cb, 0x47890003, 0xe6fff822, 0xad20b782, 0x101ba519, 0x3182f920, 0x5d82f520, + 0x1f820786, 0x83840a20, 0x65820720, 0x07000b23, 0x205385ff, 0x207f90fa, 0x821f8206, 0x841787ab, 0xfff62227, 0x413f84b1, 0x0c2005cf, 0x22067b43, + 0x82f4fff5, 0x215f831d, 0xbf83fff6, 0xbf840a20, 0x95000621, 0x8203201f, 0x000a237d, 0xbb86001d, 0xf7205784, 0xa7823f86, 0x0622bf88, 0x29820900, + 0x41ff0621, 0xdf82088f, 0xe182fe20, 0xb4fffc22, 0x4341e3a2, 0x41e38705, 0x1f871103, 0xe384ab84, 0x0784bb82, 0xb3fff522, 0x2a08b743, 0x001a000d, + 0x00040002, 0x41020005, 0xf7200c07, 0x9f84e784, 0xff208b87, 0xfe229b85, 0xa782f3ff, 0xa782fd20, 0xfafffb22, 0x0a201b84, 0x0b410582, 0xfff92307, + 0x8b41fff6, 0x88078405, 0x0007221f, 0x22eb820b, 0x82faff07, 0x054b411d, 0xb3201f83, 0x87100b41, 0x82fa203f, 0x82f62047, 0x8206205f, 0x000a2235, + 0x82278406, 0x0e4b4167, 0x1784f620, 0x8305db42, 0x067b43ef, 0x0f45c982, 0x00c52205, 0x45df8209, 0xf52009e7, 0xf9215582, 0x44bb83ff, 0x0620093f, + 0x0320fb82, 0x8207f341, 0x82fa201b, 0x4bfd20d9, 0x00210657, 0x07074500, 0x07208785, 0x44082341, 0xfd2105eb, 0x21008300, 0x5b440003, 0x098b4105, + 0x6782f620, 0x49826182, 0x01286787, 0x3f006e00, 0xb401fb01, 0x200cef55, 0x0d23546e, 0x833f0021, 0x5400204e, 0x02200b03, 0xef55378a, 0x20418f13, + 0x21418439, 0x954b0047, 0x8fb92005, 0x1eff2551, 0xc8004200, 0xff222383, 0x2b83ffbd, 0xe1820120, 0x65027123, 0x9f691801, 0x1037470c, 0x31837120, + 0x00440023, 0x203984ce, 0x200582bb, 0x93378a02, 0x0ec54d97, 0x200f7354, 0x23518e00, 0x2a0068ff, 0x22068570, 0x8282ffd6, 0x0001265f, 0x01dbffa2, + 0x0e1f57c6, 0x4900a224, 0x8384db00, 0x25ffb722, 0x84115355, 0x93378997, 0x86418e97, 0x002d2297, 0x223b8285, 0x44d4ff00, 0xc3530fed, 0x092f4110, + 0x2417977d, 0x01720003, 0x6bbf1857, 0x001b2208, 0x3201821c, 0xfe68ff13, 0xfff6ffd0, 0xfff3fff2, 0xffe5fff1, 0x41e4ffe4, 0x122a0601, 0x18001700, + 0x30001a00, 0x01823300, 0x85842120, 0xe9ffee2c, 0xe6ffe8ff, 0xceffcfff, 0x6b41cdff, 0x6f13200c, 0x00201f6d, 0x44207da7, 0x46247582, 0x00015600, + 0xb9226b82, 0x8da8abff, 0xa7411420, 0x078f5810, 0x114b1120, 0x05494213, 0x200e394f, 0x200f88da, 0x0a494fc9, 0x31002622, 0x372a0182, 0x69006600, + 0x46006a00, 0xff84daff, 0x9affca28, 0x97ff96ff, 0xab500200, 0x00112108, 0x27b99918, 0x99000324, 0x7b9dc901, 0x4f300021, 0x1422069d, 0x01842800, + 0x1b001b24, 0x09822900, 0x15002724, 0x01821300, 0x6eff0e22, 0x9c061342, 0xf0ff239f, 0x97821c00, 0x27002426, 0x4c004900, 0x32240182, 0xb4ffceff, + 0xb72b0182, 0xdcffd9ff, 0xe4ffddff, 0x44000000, 0x2b410903, 0x006e2815, 0xff2a0163, 0x82effff3, 0x82ed2001, 0xffdb2433, 0x82e8ffdb, 0x82dc2001, + 0xffdd2607, 0xffeeffed, 0x06cf43ef, 0x20001922, 0x24300182, 0x44004200, 0x2d004500, 0xbbffd3ff, 0xbeffbcff, 0xe0236982, 0x4400e0ff, 0x2b410933, + 0x247ba329, 0x00070049, 0x2201840a, 0x82150014, 0x000e2401, 0x82090008, 0x000b220f, 0x24018214, 0xff0e0015, 0x249fa4b4, 0x000e001d, 0x2a018212, + 0x00250015, 0x00270028, 0x82f2ff1a, 0xffed26db, 0xffdaffec, 0x240182d9, 0x000000e6, 0x08ef4101, 0x0c830520, 0x10820120, 0x5b064b42, 0x48230719, + 0x8200d700, 0x70ff2103, 0x200a1b42, 0x1cb17a05, 0x84050f42, 0x08d54f3f, 0x26002636, 0x4e002a00, 0x51005000, 0xcaff3600, 0xb0ffafff, 0xd6ffb2ff, + 0xda228982, 0x5f83dbff, 0xfe256385, 0x016700a2, 0x20a78437, 0x20a782ef, 0x221f84db, 0x84e7ffe7, 0x82db2007, 0xffee2211, 0x22df41ee, 0x22001a22, + 0x26240182, 0x49004600, 0x31240182, 0xb7ffcfff, 0xba200182, 0xde234582, 0x83ffdeff, 0x003f24f7, 0x8210000d, 0x00122201, 0x202b8421, 0x83d18217, + 0x00212233, 0x22178412, 0x4184ff0c, 0xdd790cdf, 0x6e00221a, 0x466fa100, 0x3825052f, 0xc8ffa900, 0x2b7ba200, 0x360057ff, 0xe6ff9f00, 0xe5ffb0ff, + 0x0327ef82, 0x65023f00, 0x4200b401, 0x240815cf, 0x004a0003, 0x00700071, 0x003a006c, 0x00340035, 0xffd8ff28, 0xffcbffcc, 0xff94ffc6, 0xff8fff90, + 0x000000b6, 0x20df823f, 0x20e98223, 0x20438221, 0x22e18210, 0x8d0c000d, 0x89ef84ff, 0x29fb4367, 0xfb857ba1, 0x24001b24, 0xb7432300, 0x004b2406, + 0x1ae5ff32, 0xa30b19cb, 0x0613419f, 0xf7fff922, 0xf6240182, 0xecffedff, 0xf3210382, 0x200f85ff, 0x820b82f5, 0x0acf4211, 0x2d142b41, 0x14003401, + 0x1a001b00, 0x36001d00, 0x01823800, 0x35ff2524, 0x138269fe, 0x9d731a20, 0xff382308, 0x834400db, 0x8200200e, 0x41274500, 0x00257ba3, 0xffe8ff25, + 0x206b82db, 0xaf9a18dd, 0x87002307, 0x13820e01, 0x1582da20, 0x1384dc20, 0x9fa4ee20, 0x2f003f28, 0x46004500, 0xbd524400, 0xffd2220c, 0x260182ba, + 0xffdcffbd, 0x43dfffdf, 0xaf821f47, 0x25001822, 0x23240182, 0x11001300, 0x0d260182, 0xf8fe7bff, 0x51821800, 0x87002521, 0x003f2413, 0x8245002e, + 0x82422065, 0x00202215, 0x221d8220, 0x45000000, 0x7ba44127, 0xf9ff0d24, 0x0182f6ff, 0xecfff524, 0x0382ebff, 0x4b00f228, 0xf8ff9700, 0x1386f7ff, + 0x00201582, 0x53209fa3, 0x220a2745, 0x4d270027, 0xf2220671, 0x0182eeff, 0xdbffeb26, 0xd9ffd9ff, 0x21132745, 0xea826502, 0x2c054160, 0x00dbff99, + 0xffaf018f, 0xff29ffb8, 0x272745b8, 0x01253f8b, 0xffcbff90, 0x450182af, 0xdb260513, 0x1d00e3ff, 0x33452500, 0x00512606, 0x00350051, 0x23638b00, + 0x190079ff, 0x26201d82, 0x20068553, 0x22c18211, 0x8212000d, 0x00142201, 0x24c18224, 0xff190026, 0x20df4176, 0xbf84fb20, 0x440f1b45, 0x3f280dcb, + 0x17015e00, 0xdeffe9ff, 0xdf240182, 0xf0ffeeff, 0xf4210182, 0x6fb819ff, 0x0c27450c, 0x20263744, 0x257ba201, 0xe4fff8ff, 0x0182d6ff, 0xeaffd928, + 0xedffecff, 0x6f18f1ff, 0x272208f5, 0x01822a00, 0xbf821c20, 0x39249fa3, 0x14000d00, 0x12240182, 0x09000b00, 0x07220182, 0x07840700, 0x13000a22, + 0x13241582, 0xb9ff0d00, 0x411f6345, 0x574506ab, 0x00282d0f, 0x00340035, 0x006c003a, 0x00700071, 0xf4208b85, 0x0ab7b719, 0xe9ffde22, 0x45102b41, + 0x7ba43063, 0x4f451120, 0xceff220d, 0x0e6f4500, 0x9d082b41, 0x1839209f, 0x26082d89, 0x00130013, 0x410d0014, 0x5363152b, 0x456a1806, 0x12f54422, + 0x4a0ddf59, 0x142111a5, 0x0d8d4500, 0x1900132e, 0x1c001800, 0x34003300, 0x23003500, 0x18209782, 0x1b201182, 0x35200f82, 0x06190f83, 0xcc220c49, + 0x0f84ddff, 0xe4ffe828, 0xccffcdff, 0x6b63cbff, 0x47e2190c, 0x11434645, 0x0025d1ac, 0xffe7ff25, 0x830182d9, 0xffee24f9, 0x44f2ffee, 0x1424067f, + 0x27002600, 0x19200182, 0x13240f84, 0x25001400, 0x26200d82, 0x2406b749, 0xffecffee, 0x220182da, 0x5adbffd9, 0x1141082d, 0x00352235, 0x22598218, + 0x45240024, 0x002307d7, 0x8211000d, 0x00132201, 0x24178223, 0xff180025, 0x219582f3, 0x1b4bffef, 0xffdc2205, 0x082b4be8, 0xdcffdc22, 0xbb637d82, + 0x001f2209, 0x2fd9183f, 0x3f434263, 0xff250023, 0x26cd82f1, 0xffeaffec, 0x82d6ffd7, 0x44e42001, 0x29200849, 0x22064944, 0x8214000f, 0x00162201, + 0x220f8228, 0x821c002b, 0xffec212f, 0xd8202f83, 0xd52e2d82, 0x1700e4ff, 0x22002100, 0x11002000, 0x3b821000, 0x49820c20, 0xdeffdf27, 0xefffe0ff, + 0x051145ff, 0x0d82ea20, 0xdfffdf22, 0x5d490f87, 0x82112006, 0x41378235, 0x252040b1, 0x4b061142, 0x1b2007c9, 0xff210f8f, 0x2adf82f2, 0xffebffee, + 0xffd9ffda, 0x8de6ffd8, 0x20b5820f, 0x22bb8215, 0x841f001f, 0x000f23bd, 0x0f8e000b, 0xe0223982, 0x0182e1ff, 0xf982f020, 0xf5fff122, 0xf1200182, + 0xf0200982, 0x17821182, 0x0000002f, 0xff030003, 0x026502d8, 0x003f001c, 0x6377197f, 0x7f0124b3, 0x45001400, 0x252405ef, 0x1b001c00, 0x14220d82, + 0x01820a00, 0xff21dc82, 0x2a0182f6, 0xffecffec, 0xffe4ffe5, 0x82edffdb, 0x20038309, 0x200982ec, 0x060943ee, 0xdc20138b, 0xe4202582, 0xec202382, + 0xf6203582, 0x00203e82, 0x0a204582, 0x1c204f84, 0x24205982, 0x6b876584, 0x11001324, 0x01821200, 0x8dff1324, 0x0182f0ff, 0x0382f120, 0xeaffe322, + 0x0d830182, 0xf7fff822, 0x09243f84, 0x10000800, 0x16240182, 0x1d001600, 0x0f200782, 0x10220d84, 0x01820f00, 0x03840e20, 0x47820e20, 0x03830f83, + 0x17001e22, 0x0f200182, 0x08202382, 0x40823782, 0x82f8ff21, 0xfff02401, 0x82e9fff1, 0x82e22001, 0x240b8307, 0xffeffff0, 0x200182f2, 0x220384f1, + 0x829000f1, 0x058b5e33, 0x07000d22, 0x084be918, 0x093f7818, 0xfd82e920, 0xe7ffe824, 0x0182e8ff, 0x0782e720, 0xed230383, 0x18ffedff, 0x210a0f81, + 0x01820600, 0x0c000c24, 0x01821300, 0x85001921, 0x00182201, 0x22098218, 0x82e2ff18, 0x8207201b, 0x820a208f, 0x821a201b, 0x001f2411, 0x82250020, + 0x002a2201, 0x8307842a, 0x8219200f, 0x00142217, 0x227d820a, 0x82050008, 0x0002212f, 0x26054557, 0xfffefffd, 0x82fbfffa, 0xfff924c5, 0x84ecfff6, + 0xffdf287d, 0xffdcffe0, 0x82d7ffdb, 0x82db2001, 0x240f8309, 0xffe6ffe6, 0x5b7019ee, 0x8237820a, 0x000022fe, 0x20478202, 0x2003823e, 0x24538207, + 0x00100008, 0x28018214, 0x00190019, 0x001d001e, 0x20018222, 0x8307821d, 0x20178393, 0x24a38210, 0x00060006, 0x20018204, 0x06155702, 0x7f82fe20, + 0xfcfffc22, 0xfa208382, 0xef208382, 0xeb208182, 0xe6228382, 0x0182e3ff, 0x8782e020, 0xe2ffe322, 0x0e037719, 0xfdfff922, 0xfe202f82, 0x26081d59, + 0x00410002, 0x8211000c, 0x0015247b, 0x82180014, 0x001c2201, 0x2207841c, 0x82150015, 0x590f2015, 0x7741057b, 0xfffa2208, 0x066545f3, 0xebffeb24, + 0x0182e9ff, 0xdb82e620, 0xe8ffe922, 0xef207b84, 0x1f83e582, 0xf9fffa22, 0xd783df84, 0xab820020, 0x20ff3a26, 0x09032e02, 0x45230019, 0x82340121, + 0x002e2447, 0x822c002e, 0x001528a7, 0xff100016, 0x82eafff0, 0xffe8248d, 0x82d2ffd4, 0x82e12001, 0x200783f5, 0x839582d4, 0x90ef2017, 0xfff4222f, + 0x343382ef, 0xffdeffed, 0xffdcffdd, 0x001700e9, 0x00230024, 0x00120022, 0x20018211, 0x20f3820c, 0x20078210, 0x20138212, 0x20038223, 0x20f18218, + 0x203182f0, 0x202f82ee, 0x2c3182dc, 0x003d0020, 0x005d005c, 0x00300059, 0x2201822b, 0x84200022, 0x00302207, 0x22178258, 0x183d005b, 0x330f9140, + 0xa4ffc2ff, 0xa7ffa3ff, 0xd5ffd0ff, 0x5100d5ff, 0x21001a00, 0x25266d82, 0x48004400, 0x45824700, 0x05822e20, 0x45004622, 0x21208582, 0x1a241982, + 0xdfffe6ff, 0xdc260182, 0xbaffbbff, 0xd182b9ff, 0x0d318319, 0xd3440220, 0x81b7670c, 0x10fea144, 0x00014104, 0x8f420820, 0x00152c08, 0x0045002d, + 0x0075005d, 0x19a1008b, 0x21be4b4d, 0xc74600f8, 0x0005260f, 0xffeeff0a, 0x860184ed, 0x08002707, 0x01000200, 0xee1876ff, 0x0b210a2b, 0x23018200, + 0xfcfff1ff, 0xf9240182, 0xf3fff2ff, 0xf32e0384, 0xf4fff5ff, 0x1a00f5ff, 0x07000600, 0x0d82d201, 0x0382f520, 0x1d82f320, 0xf2240383, 0xfdfff0ff, + 0xf8242f82, 0x0a000c00, 0x0a203f82, 0x09200582, 0x08280382, 0x07001900, 0x23fe0600, 0xb3451d82, 0xff03260b, 0xfff8ffe2, 0x236584f9, 0x00fefffe, + 0x02200083, 0x04228982, 0x91821e00, 0x25020722, 0x20102346, 0x242d82e2, 0x00f2fff8, 0x21258203, 0x00820002, 0x3782ff20, 0x82fdff21, 0x0007242f, + 0x866bfe08, 0xfff6248f, 0x84f7fff6, 0x82e72001, 0xfffa222f, 0x208b82f3, 0x2403820c, 0x000d000d, 0x2203840e, 0x8227010a, 0x180c2009, 0x220cf3f4, + 0x82faffe7, 0x82f4202d, 0x833f873b, 0x00f42407, 0x82c7ff0a, 0x476784a5, 0xed820dd3, 0xfffff822, 0xfc208182, 0x085ff918, 0x09831320, 0x84da0121, + 0x840120b7, 0x241f879f, 0x00050024, 0x086f4703, 0xfbfffd24, 0x6d82e5ff, 0x97fff922, 0x0a219782, 0x7bfa1800, 0x00072809, 0x00070018, 0x820d0006, + 0x05695373, 0xf4fff622, 0xf220d782, 0xfc247b82, 0x1900fcff, 0x0b22b782, 0x4f190c00, 0x0821081f, 0x20e385ff, 0x204d84f4, 0x203582fa, 0x058151f8, + 0x82110021, 0xff032285, 0x202b822b, 0x2233820e, 0x82100010, 0x820e2005, 0x0007220d, 0x20018202, 0x20bd8204, 0x235382ee, 0xffecffec, 0xf0200783, + 0x17827582, 0x82f5ff21, 0x00112427, 0x82140012, 0x20078301, 0x83578210, 0x82fc20fb, 0xfff22285, 0x203582f2, 0x200582f0, 0x200d82f2, 0x22f982f9, + 0x827cfffe, 0x1a0720ab, 0x22084b62, 0x840c000a, 0x82fb20a7, 0x20238387, 0x4f1d19f5, 0x00f82608, 0x00f0ff10, 0x20018208, 0x20ed8209, 0x24878209, + 0x000f000d, 0x24a38210, 0xff090004, 0x20b382f3, 0x203382f7, 0x24c586f8, 0x00bffff0, 0x2055841c, 0x0ee7470e, 0xe4ff0422, 0x82050342, 0x47fd2017, + 0x032408ff, 0x06000000, 0x2908bf43, 0x0053003f, 0x008d006d, 0xbf640097, 0x7f7946a5, 0x8300ae21, 0x00062200, 0xbbef1807, 0x05f14808, 0xfaff0022, + 0x20068f41, 0x210783f9, 0xb7496800, 0x5e042006, 0x0722062f, 0x09820500, 0xc5490420, 0xffff2706, 0xff0000fb, 0x0782fffe, 0x84f6ff21, 0x82f72001, + 0xff59240f, 0x82fbfffc, 0x82fc2047, 0x82f32003, 0x8bfe201d, 0x82768303, 0x8c02203d, 0x00072403, 0x8204000c, 0x82052069, 0x01002605, 0x001a0015, + 0x8201820d, 0xf3ff212a, 0xe62a0182, 0x7cfe0000, 0xf4ffe7ff, 0x1282f3ff, 0x19820020, 0x19000c22, 0xff4a6782, 0x0037267f, 0x00590173, 0x86938401, + 0xffff2504, 0xccfe67ff, 0xff210c83, 0x820583ff, 0x0101221d, 0x20ff86be, 0x210784ff, 0x0183fffd, 0x26051341, 0x0002ff81, 0x82fdff00, 0x82ff2003, + 0x05796000, 0x0f82fc20, 0x71ff9022, 0x08059918, 0x06000324, 0x0d840200, 0x2209865c, 0x8efc007f, 0x00022113, 0x02202785, 0x02281782, 0x480070ff, + 0xdcffe3ff, 0xd5220182, 0x0582d5ff, 0xe2ffdd30, 0xa3ff6000, 0x24001c00, 0x2a002300, 0x07822900, 0x1c002428, 0x0000a2ff, 0x93490400, 0x1baf200c, + 0x10dbb111, 0x0001910e, 0x0d006a24, 0x01820b00, 0x08000923, 0x3dbb1800, 0xfff7220d, 0x210182f5, 0x8350fff3, 0xfff02205, 0x200182f9, 0x220384f8, + 0x82f7fff8, 0x82e22007, 0x00f02119, 0x10260083, 0x1e000f00, 0xbf460700, 0x82072006, 0x82072049, 0x0010210d, 0xff231782, 0x1bf0ffaf, 0x22084592, + 0x82090008, 0x05f94513, 0x05000722, 0x05856f84, 0x11207983, 0x09203782, 0x2f834e83, 0xffefff23, 0x200186fc, 0x200784fb, 0x06635afb, 0x4e7fe143, + 0x80307fe1, 0x0b000600, 0x0c000a00, 0x0e000d00, 0x12000f00, 0x0f200182, 0x0f830782, 0x17820920, 0x09000722, 0x4408c741, 0xfe2e0541, 0xfefffdff, + 0xf0fffbff, 0xe8ffe7ff, 0x0182deff, 0xf0200783, 0x17831182, 0x27820383, 0x00830020, 0x39820420, 0x3f823620, 0x5b820d20, 0x57821320, 0x07820e20, + 0x05000924, 0xdb450300, 0x00002105, 0xfe202882, 0xfe200384, 0xf7235182, 0x6efff2ff, 0x078305f9, 0x1182f720, 0x8205cd44, 0x06e94420, 0x01203783, + 0x4d0a4b44, 0x234741dd, 0x7f7d427f, 0x4f000021, 0x61200b2f, 0x6c138562, 0x7341509f, 0x53c9207f, 0x17483f7b, 0x04022181, 0xdf528382, 0x009b213d, + 0x200dfb41, 0x5cfb4159, 0x2380f341, 0xe1ffe2ff, 0xea270386, 0xf0ffe9ff, 0x55fff1ff, 0x0f2a0ba7, 0x17001000, 0x1e001600, 0x03861f00, 0xb9500020, + 0x00352480, 0x82080000, 0x3db81801, 0x541d200b, 0x19270afb, 0x15001800, 0x83001400, 0x2227831f, 0x4166ff00, 0xc5180ed3, 0xe548584f, 0xd4fe217f, + 0x0923e982, 0x41000800, 0x1f2211b7, 0x01821e00, 0x3e001f22, 0x00220584, 0xc7415dff, 0x1d01257f, 0x1d002200, 0xaf410182, 0x00002210, 0x05e357ff, + 0xcfffde26, 0xbeffceff, 0x9343d382, 0xe58f450d, 0x22194359, 0x414601a4, 0x07590823, 0x7fe3411c, 0xc5490020, 0x82002019, 0xffe021c1, 0x41236b58, + 0x6a190dfb, 0xd9437679, 0x3a515b7f, 0x00820020, 0xb8003d22, 0x44c03142, 0xd95a052d, 0xb3ff2318, 0xe98266ff, 0xc15a0020, 0x0bdf4926, 0xe3474f20, + 0x7ed94752, 0x241a0946, 0xff000000, 0x7f1944c3, 0x4119fd45, 0x012806c7, 0xd8ff9c00, 0x1c02cd01, 0x25b9bc18, 0xffcd0123, 0x220182ee, 0x5eecffed, + 0xed2706cf, 0xe3ffdbff, 0x83ffe4ff, 0x1af72011, 0x2a0803a9, 0x00140009, 0x001c0013, 0x8225001d, 0x200b8307, 0x29118414, 0x00120012, 0x001c0200, + 0x9d5dff00, 0xffe6230f, 0x9d5dffe7, 0xffdc2205, 0x220182d7, 0x84ddffdc, 0xffe6220f, 0x206982e6, 0xed5419f6, 0x24378208, 0xc1000000, 0x20b78900, + 0x1b554219, 0x629c0021, 0x262206ef, 0x8d822700, 0x8d821d20, 0x0a001223, 0x07974f00, 0xcd84f620, 0xc182e220, 0x0763d920, 0xff002208, 0x2a6182d8, + 0x000b000b, 0x00160015, 0x821a0019, 0x821e2037, 0x00242c45, 0x0029002a, 0x00240023, 0x8220001f, 0x821a2015, 0x8214201d, 0x820a2025, 0x003e2ecd, + 0xfff6ff02, 0x027302f7, 0x000700e4, 0x4c919b37, 0x68181dcf, 0x00250f1f, 0xfff0fff2, 0xd7a018f2, 0x0004220e, 0x353e1905, 0x8411200a, 0x6e1520d3, + 0x112606f3, 0x0e001100, 0xa2180d00, 0xfa220c67, 0x9d82fbff, 0xf818f620, 0xed24081b, 0xebffedff, 0xee200182, 0xf7200782, 0x0024eb82, 0x3202bb00, + 0xff240783, 0x00c4fe45, 0x2405c556, 0x00100010, 0x224b8212, 0x82140013, 0x82122005, 0x8210200d, 0x820c2055, 0x1809201d, 0x230cafc2, 0xfff7fff7, + 0x2209bb67, 0x82ecffef, 0xffef2253, 0x20b582ee, 0x206f82f0, 0x201d82f4, 0xe3a219f6, 0x0004220a, 0x20898203, 0x0627410f, 0xd0194720, 0x79418bbf, + 0x82f32010, 0x05e542c9, 0x19349b61, 0x2108c901, 0x1b620013, 0x73002234, 0x3c9b6100, 0x84f0ff21, 0x381b6201, 0x000fff22, 0xf6220083, 0x0683df02, + 0xfd0bff23, 0x088b61f3, 0x1a001222, 0x20240182, 0x24002100, 0x2922db82, 0x05822900, 0x20002422, 0x8b610f82, 0xffe0242b, 0x82dbffe1, 0xffd62201, + 0x830784d6, 0xffe7240f, 0x61edffe6, 0x1523228b, 0x61001500, 0x2020078b, 0x8b617982, 0x00152407, 0x61110014, 0xf020208b, 0x08c5c418, 0xe3ffe324, + 0x0182deff, 0x20071f49, 0x251982ec, 0xfff8fff0, 0x8b61fffa, 0x00002c11, 0x00f6ff02, 0x027302fa, 0x192900e4, 0x824fc730, 0x00032359, 0xf563000a, + 0x1a594224, 0xd9440520, 0xfe602606, 0x02000023, 0x268b4833, 0x22092942, 0x82e9ffe5, 0x220f8301, 0x82f9fff8, 0x00a2228d, 0x200582fa, 0x3fe14100, + 0x7a224384, 0x07837001, 0xfe86ff23, 0x30b14190, 0xb141f120, 0xffe2220a, 0x204782de, 0x05474402, 0x1d209f82, 0x33eb4c18, 0x200aed43, 0x260b82fc, + 0xffdaff00, 0x82b3ffdb, 0x84d92005, 0xffee2403, 0x82eeffed, 0x86ed2073, 0xffb42107, 0x00291782, 0xfffcff00, 0x010000f7, 0x09dd4db8, 0x82b9fe21, + 0x0020248b, 0x4f3c001f, 0x1f2408b9, 0x1e001e00, 0x20063d43, 0x28f3867b, 0xffc2ffad, 0xffd6ffc3, 0x20b582eb, 0x223182f5, 0x82030000, 0x00042401, + 0x82080005, 0x000b2401, 0x823d002a, 0x83532053, 0x85ff2719, 0x2100b4ff, 0x01823200, 0x0f844220, 0xceffbe22, 0xdf260182, 0xf8ffefff, 0x1183f8ff, + 0x082a3182, 0x9c000100, 0xcd01fa00, 0x35731c02, 0x82d9201c, 0x2461832f, 0x00100010, 0x20298216, 0x20a5841d, 0x8205821e, 0x82d38318, 0xffda22ed, + 0x820583b4, 0x00142410, 0x822200fa, 0x001d26bd, 0x00180019, 0x0bdb4f14, 0x27220b82, 0x036f0000, 0x82d62006, 0xffc222cd, 0x203182ad, 0x18878a00, + 0x211ee766, 0x3f84cd01, 0xecfff622, 0xe4240182, 0xdcffe3ff, 0x08e3c818, 0x84064d48, 0x821d204f, 0x001f227f, 0x064f4120, 0x15000022, 0x2b209382, + 0x830aeb65, 0x65092097, 0x032208eb, 0x55820300, 0x82ffec21, 0x12cb4ee7, 0xdb480120, 0x73418205, 0x21481b69, 0x001c240b, 0x8213001d, 0x00092201, + 0x2257820a, 0x82d7ffeb, 0xffe22605, 0xffc4ffe1, 0x220582e0, 0x82e3ffe2, 0x091d480f, 0x20078344, 0x209f841e, 0x13ad412a, 0x82edff21, 0x2187a415, + 0x6184cd01, 0xe3246d83, 0xeaffe9ff, 0x0907a018, 0x83ecff21, 0x26002187, 0x4c200182, 0x26220584, 0x55822700, 0x9f511220, 0x0014260a, 0x00180015, + 0x22bd8219, 0x8423001d, 0x0f714287, 0x87841420, 0xfa000326, 0x1c026502, 0x300ba918, 0xef503f20, 0x14002427, 0x43002800, 0x2b82264d, 0x9b50fa20, + 0x0053222c, 0x2001823e, 0x2237822a, 0x820a000b, 0xff002291, 0x240182fd, 0xfffcfffb, 0x210182f8, 0x9742fff6, 0xff03260d, 0x006502d8, 0x3b8d49fa, + 0x00cd012d, 0x0025004d, 0xff000026, 0x45d8ffec, 0x9369304d, 0x8243850e, 0x0027224d, 0x22c3824c, 0x82130012, 0x00142201, 0x22058212, 0x84270012, + 0x44022017, 0xb74f0c09, 0x68042025, 0x002018a3, 0x0742b182, 0xfff52207, 0x200182f8, 0x0a5f60fb, 0x77054341, 0x3c8218ab, 0x68ff0022, 0x24063f79, + 0xffaf018f, 0x13af7270, 0x830ed777, 0x182ba734, 0x92091953, 0x11077383, 0x702e8f84, 0xa0000200, 0xc901da00, 0x2f00f101, 0x674b5700, 0x1d854b39, + 0x7f241d82, 0x0d001100, 0x2008474b, 0x4b7d8406, 0xef201b47, 0x232da74b, 0xefff71ff, 0x200c0156, 0x246f8211, 0x00160015, 0x24078218, 0x000f000f, + 0x257b820e, 0x000b000b, 0xae180008, 0xfc2009cb, 0x5c06e942, 0xf22205c7, 0x7382f1ff, 0x4769f020, 0xee002105, 0x2014b74b, 0x24b74b11, 0x8b82ee20, + 0x210bb74b, 0xb74bfff4, 0x0005220f, 0x24498233, 0x00140013, 0x20018217, 0x20078214, 0x200f8210, 0x239d8209, 0xff000000, 0x75054d65, 0xf4240537, + 0xf2fff3ff, 0xf0200182, 0x07839d82, 0xbb4cf320, 0x19f82006, 0x830a6f58, 0x09137cd3, 0x151f5718, 0x55180320, 0x01210d4d, 0x21688231, 0x80180000, + 0x4e1809cb, 0xeb7d0e9f, 0x215fae10, 0x5fba3900, 0x18194d7e, 0x2e0fbb53, 0x002a0021, 0x002f002b, 0x005b0058, 0x183c005c, 0x2218d755, 0x8228001f, + 0x002d2c01, 0x00560052, 0xff390055, 0x72c9fe65, 0x07210c73, 0x8273a900, 0x7c002738, 0xe0ff7401, 0x0182d5ff, 0xa8ffd124, 0x0182a5ff, 0x22193f41, + 0x82d8ffe2, 0xffd32601, 0xffaaffae, 0x535518aa, 0x00372240, 0x22e584a5, 0x837000c9, 0x37002307, 0x0f85a400, 0x1820ad7f, 0x72116153, 0x11240923, + 0x43002300, 0x7e45fd43, 0x697e23e5, 0x00e52124, 0x11c9d118, 0xf4fff524, 0x0182f2ff, 0x0782f420, 0xf6fff626, 0xfcfffbff, 0x0020fd83, 0x0975d318, + 0xbf660c20, 0x7e0c2006, 0x6d2448a9, 0x0b000900, 0x0d220182, 0x05820d00, 0x0d820c20, 0x2409415f, 0xfffcfffc, 0x200182f7, 0x4def18f4, 0x19f52008, + 0x200c3510, 0x20998204, 0x0caf7f00, 0x65411d20, 0x233f411f, 0x840c0121, 0x7f1b20f5, 0xb7200e9d, 0x6823f3a6, 0x7fff3501, 0xa7d21191, 0x8212e741, + 0xc9ff21b8, 0x4018a7a6, 0x77220f45, 0x3e82ecfe, 0xff29a782, 0x02cdfff6, 0x00280273, 0xe3121937, 0xd301297b, 0x1e002700, 0x15001d00, 0x2c0a4149, + 0xfff5fff6, 0xffebffec, 0xffe2ffe3, 0x260182d9, 0xffd8ffd8, 0x50edffd7, 0xec2006fb, 0xd9200786, 0xe2201d82, 0x0cab651b, 0x0a000a22, 0x1e204784, + 0x27205182, 0x2008914e, 0x2e098214, 0x00130013, 0x00280029, 0xff4bff28, 0x84effff0, 0xffe32201, 0x830182e9, 0x72f7200b, 0x11260a9d, 0x17001100, + 0x91821800, 0xab460983, 0x000f2405, 0x820e0010, 0x82102003, 0x83158303, 0x820f200f, 0x20278363, 0x202f8210, 0x06734609, 0xf7fff822, 0xf0225982, + 0x9d72e8ff, 0x205f830a, 0x207382f0, 0x067f46f0, 0x1500f732, 0x1a001b00, 0x21002000, 0x26002500, 0x2c002d00, 0x26200582, 0x1a200f84, 0x16201782, + 0x0b231f82, 0x82000b00, 0xfeff2500, 0xfbfffdff, 0x0889b018, 0xe6ffea22, 0xdf240182, 0xdaffe0ff, 0xd4220182, 0x0582d3ff, 0x8f54db20, 0xffe52506, + 0xfff4ffeb, 0x20054d49, 0x203782fb, 0x223e82fe, 0x820a0000, 0x002f2b01, 0x00060004, 0x00090007, 0x5b83000f, 0x1f246383, 0x24001f00, 0x07830182, + 0x15200f83, 0x10207382, 0x2d722182, 0x09ad7209, 0xfcfffb22, 0xf9228182, 0xc382f9ff, 0x6582ea20, 0xe1248383, 0xddffe1ff, 0x07830182, 0x17830f83, + 0x7d82f020, 0x2982fa20, 0x8505cd49, 0x0002227f, 0x0eab4503, 0x181e8f4d, 0x47102746, 0xaf450501, 0x5bff2108, 0x4622d784, 0x0784cf00, 0x1807b745, + 0x2510855c, 0x34008bff, 0x23839b00, 0xffcdff27, 0xfe000064, 0x200f82fd, 0x230f839a, 0xc3004100, 0x0a9d5c18, 0x9f8c0020, 0x230d4518, 0x210c3d47, + 0x4b844e01, 0x30ffbb22, 0x00230783, 0x8474017c, 0xfec9220f, 0x20078347, 0x46b78900, 0x412211d9, 0x2384c200, 0x8c22a787, 0x0f86a2fe, 0xb782a784, + 0x0f846520, 0x21095f46, 0x9fb00007, 0x0e254718, 0x31ffbb22, 0x2230f746, 0x8464ffcd, 0xffc02233, 0x419fd83d, 0x00210627, 0x05d74145, 0xff84ff23, + 0x0cdf41a1, 0x4b07eb44, 0x5949089d, 0x89e6190a, 0xffcd2607, 0x01000065, 0x0df74103, 0x210ecf77, 0x415c0067, 0xff8421f7, 0x24053556, 0xffedffee, + 0x240182f0, 0xfff3fff3, 0x250182f8, 0x005a00fd, 0x008300b5, 0x0b000c22, 0x05830182, 0x83000c21, 0x062b6001, 0xff000027, 0xffe2ffe1, 0x200584c2, + 0x450982e2, 0x3f2c053d, 0x1e000500, 0x36001f00, 0x18001700, 0x43820384, 0x5acaff21, 0x00217f59, 0x24978241, 0x00080009, 0x24c3820d, 0x00100010, + 0x24018213, 0x00190018, 0x259e821b, 0x00400000, 0x4d1affc1, 0xfb250917, 0xfafffbff, 0x066760ff, 0xd152ff20, 0x00032811, 0x00fc0003, 0x822b0039, + 0x821e2001, 0x82072051, 0xff032457, 0x4378ffbc, 0x277a0897, 0x18732007, 0x5e83ed6e, 0xe62a80a5, 0x35ffbcff, 0x07000300, 0xb0180800, 0x12240abb, + 0x14001300, 0x11210184, 0x05537c00, 0x79000f21, 0x18200fe3, 0x0bcd1b19, 0x4547ff20, 0xffef2205, 0x220182ea, 0x82f5ffe4, 0x19f42001, 0x2808cf8c, + 0xff0000f5, 0xffe8ffc7, 0x2a0384e9, 0xffe1ffca, 0x00fbffe2, 0x668f0047, 0x0122817f, 0x00830037, 0x17001c24, 0xef841800, 0x10001024, 0x01820c00, + 0x09000924, 0x01820500, 0x47000321, 0xa3660555, 0xffe62a13, 0xffe4ffe5, 0xffe0ffe3, 0x22d182dd, 0x82e7ffe3, 0xffed2601, 0xfff1ffec, 0x200184fb, + 0x2c0582fc, 0xfffdfffe, 0xff5600fe, 0x000400aa, 0x24018207, 0x001e000d, 0x2001822b, 0x21768338, 0x0410ceff, 0x200801eb, 0x081f42ad, 0xe1ffc425, + 0x8300e0ff, 0x00202600, 0x003c001f, 0x49018210, 0x0e2105bb, 0x05a97300, 0x7f731320, 0x00132106, 0x515c0183, 0x000d2a07, 0x00090008, 0xffa5ff02, + 0x263c824c, 0x00350039, 0x82fbffa1, 0xffe2224b, 0x225b84c9, 0x42e9ffe9, 0x0021816f, 0x08074237, 0x2a079957, 0x00320042, 0x00220031, 0x7b070008, + 0x012008f7, 0x105bb718, 0xf4fff422, 0x08011d19, 0xcf82e820, 0x2184e420, 0x734ac020, 0xffc82a06, 0xffd4ffd5, 0xfff3ffe3, 0x220182f9, 0x424400fc, + 0xd5180e57, 0xe7448051, 0x099b6580, 0x1357e220, 0x59f12006, 0x09240805, 0x0f000800, 0x2108d758, 0x1d470019, 0x82002005, 0x00432400, 0x82fdffcc, + 0xfff72227, 0xdbf619f3, 0x4ced2008, 0x254c08d3, 0xfff22605, 0x00f1fff1, 0x202d8249, 0x20398200, 0x283d8417, 0x001e0037, 0xff05001f, 0x805b47b9, + 0x240bcf65, 0x00150015, 0x2601821a, 0x001d001d, 0x67210020, 0x0d2a0ecb, 0x08000700, 0xabff0300, 0xcb8354ff, 0xffe5ff25, 0x84e8ffe7, 0xfff024eb, + 0x82f4fff0, 0xfff827ff, 0xfffbfff7, 0x5776fffa, 0x00022609, 0x003300fd, 0x22118299, 0x82f9fff8, 0xffe22221, 0x200182d5, 0x183f83c7, 0x180c6748, + 0x5514ed4a, 0xf34a0bf1, 0x01673306, 0xffceff34, 0xffb5ffb4, 0xffd9ffb7, 0xffddffdc, 0x3f4a00db, 0x00d82409, 0x84210161, 0xffd1229b, 0x240182b9, + 0xffdbffbc, 0x05c35bdf, 0x0a274e18, 0x48186b94, 0xe5200ecd, 0xdd245982, 0xb8ffd8ff, 0xb4286b82, 0x8900ceff, 0x00001201, 0x192a6b8e, 0x21002200, + 0x44002500, 0x01824700, 0x77842f20, 0x3b53a020, 0x1805200c, 0x2318f14c, 0xffc90199, 0x0b614e18, 0x50181b20, 0x4b260815, 0x32004c00, 0xb35277ff, + 0x70ff2309, 0xd78388fe, 0x82e7ff21, 0x82df20cb, 0x82bc20d1, 0xffb822d9, 0x2a6982d1, 0x00020000, 0x02060030, 0x18ee0137, 0x2416b393, 0x01820030, + 0x22998485, 0x827afe7f, 0x057b5407, 0x30016622, 0x9b221384, 0x07830600, 0x017a0023, 0x240f846e, 0x00c7fe86, 0x19e11b60, 0x82e22008, 0x8a012013, + 0x5600205f, 0x138207c9, 0x458e558d, 0x02283782, 0x2b005700, 0xca011002, 0x57249796, 0x4b016e00, 0x92227384, 0x9788b5fe, 0xf5005222, 0xae221384, + 0x07832b00, 0x47680021, 0xff27057d, 0x00fefe98, 0x84e6004d, 0xffb4221b, 0x20078219, 0x895f8a01, 0x8e558f97, 0x299b4145, 0x68236984, 0x4100c4fe, + 0x17840e97, 0x9b419920, 0x001a220e, 0x0b074221, 0x8280ff21, 0x292883ad, 0xff1b0001, 0x024e028a, 0x716e00bd, 0x0e02255c, 0xe6ffeeff, 0xe0240182, + 0xd3ffe9ff, 0x00287883, 0xffffff00, 0xfffcfffe, 0x24051146, 0xffedffed, 0x220182eb, 0x82e8ffea, 0xffea2221, 0x430b82ec, 0xd81b05b1, 0x0c220dd5, + 0xc4180c00, 0x16260865, 0x18001600, 0x03821e00, 0x9d5d1920, 0x000f2e08, 0x0009000e, 0x0007000a, 0x00030006, 0x23698504, 0x10001700, 0x0a203582, + 0x07221784, 0x01820200, 0x19820120, 0x82052a42, 0x22002308, 0x35820800, 0x93821120, 0xfdfffc2e, 0xf9fffaff, 0xf4fff3ff, 0x20004402, 0x1e225d82, + 0x22831d00, 0xfe71ff25, 0x84f1ff50, 0x82f32001, 0x18092083, 0x1908b9c2, 0x240d6915, 0xfff5fff5, 0x833d82f2, 0x83bf8329, 0x82f32007, 0x82f4200f, + 0x19f92017, 0x200a6360, 0x209b8203, 0x20a38207, 0x8393820b, 0x001322b3, 0x22cd8212, 0x821c0017, 0x0023266d, 0xff4001a0, 0x200182e2, 0x220382e3, + 0x82e8ffe6, 0x4aea2001, 0xf220068d, 0x5b845d82, 0x0420e782, 0x0724e182, 0x23002700, 0x1e220182, 0xad822100, 0x55822020, 0xfdff162e, 0x18025302, + 0x1f000f00, 0x3f002f00, 0x591faf54, 0x002a20f9, 0x19003501, 0x29002800, 0x87821800, 0xd8ffd724, 0x0787e7ff, 0xff231785, 0x8218007b, 0x0028221d, + 0x22198219, 0x82d7ffd8, 0x82e7201d, 0x85078225, 0x52012117, 0xff211f9d, 0x275f9d7d, 0x17002401, 0x26002500, 0x17200582, 0xf9180582, 0xda220749, + 0x0182e9ff, 0xdbffda24, 0x6d1b56ff, 0x1f83085f, 0x17842782, 0xda221f87, 0x1f82e8ff, 0x3f882720, 0xd9201f8f, 0x57823f86, 0x3f8a4787, 0xdaffd92c, + 0x78000100, 0xf101d1ff, 0x3b5d9702, 0xfff1243c, 0x82d8ffd2, 0xffde2701, 0xfff0ffdf, 0x008300ef, 0x04000423, 0x07334e00, 0x11001123, 0x07b14c00, + 0x15001522, 0x21828b82, 0xffdaff26, 0xffdcffdd, 0xe0283383, 0xe4ffe1ff, 0xebffe6ff, 0xf2220182, 0xe818f3ff, 0x07280859, 0x0e000700, 0x14000f00, + 0x1a243382, 0x43003800, 0x4d240182, 0xe2ff0000, 0x19303e82, 0x32001900, 0x3c003100, 0x46003b00, 0x20002300, 0x2406ef60, 0x001b001b, 0x201b821a, + 0x26718213, 0x000c000d, 0x82060005, 0x0006222d, 0x2237820d, 0x82f9fff9, 0x19f3205d, 0x20083d70, 0x837582e3, 0x82de207b, 0xffdb2285, 0x200582db, + 0x228982dd, 0x84e5ffe0, 0xffcb248d, 0x84e6ffe7, 0x4100203b, 0x47200a27, 0x82427542, 0x8201204e, 0x78002303, 0xa9821800, 0x05821920, 0xe1821520, + 0x715b1620, 0x82122008, 0x82152015, 0x820f20f5, 0x000723fb, 0x00820008, 0xbb85b982, 0xeaffeb22, 0xe5229d82, 0xa982e2ff, 0xdc20b783, 0xdb20b782, + 0x00222082, 0x01820e00, 0x0c203183, 0x0d200984, 0x0c240582, 0x0b000c00, 0x07834382, 0x47820920, 0x04000522, 0xfd244b84, 0xf8fffcff, 0x2208cd67, + 0x82d8ffdf, 0x00d12601, 0x00d1ff00, 0x22018205, 0x82070006, 0x82082001, 0x000a262f, 0x000c000a, 0x2601820d, 0x001c0016, 0x8623001b, 0x00242201, + 0x06934321, 0x17822120, 0x19821d20, 0x2305a544, 0x000e000e, 0x00243d83, 0xf4fffaff, 0xfa206382, 0x08a7c218, 0xf7206d83, 0xf5261382, 0xebfff2ff, + 0x7155e5ff, 0x22bf8306, 0x82dfffdd, 0x82e120c9, 0x82e220cf, 0xffe42417, 0x82ceffe8, 0x82e72003, 0x82fa208d, 0x000128ab, 0x01c7ffb3, 0x628002b5, + 0x01231bfb, 0x18caffb5, 0x2a081970, 0x001a001b, 0xffd3ff36, 0x83c3ffa4, 0x20438253, 0x22c98200, 0x820f0008, 0x00172e01, 0x001e0016, 0x00c7ff2e, + 0x00570056, 0x20018258, 0x83078257, 0x23268203, 0xa9ffa7ff, 0xab220182, 0x0188d5ff, 0xd4ffd322, 0x2206d145, 0x82b70001, 0x02b12287, 0x20879c6a, + 0x205d823b, 0x20218216, 0x226b820e, 0x82070007, 0xff002254, 0x200182e3, 0x244782c4, 0x003500a8, 0x829b8219, 0x24ab8214, 0x00cbffe7, 0x2887822c, + 0x002c002b, 0x002a002b, 0x24038429, 0x0052002b, 0x20018254, 0x21398456, 0x0185ffac, 0x0782aa20, 0xacffab22, 0x00291383, 0xffa20001, 0x02c701c3, + 0x5d591882, 0x5c012527, 0x50001b00, 0x26081b4b, 0xffdeffdf, 0x18e9ffdd, 0x280cbd56, 0xff170023, 0xffb9ffdc, 0x221982ea, 0x69dfffde, 0xf42206d1, + 0x63821600, 0x2100222a, 0x10001200, 0xc3ff1000, 0x17207f84, 0x1e28e182, 0x3e002200, 0x41004000, 0x0f89b982, 0x0f844120, 0x441a2482, 0xe2220ca9, + 0x0f84e9ff, 0xc2ffc022, 0xe2217982, 0x05d348ff, 0x0025c3ae, 0x001a00a2, 0x71561850, 0x8223200a, 0xff172181, 0x09895018, 0x5b82dd20, 0xbd82e920, + 0x2386ba20, 0xb5821120, 0x16202383, 0xde20238a, 0xc3a92382, 0xe2ffe92c, 0xdfffe1ff, 0xbfffc1ff, 0xc182c0ff, 0x0d82e920, 0x0f84e220, 0xbfffc022, + 0x0128e482, 0xb0ff6900, 0x7002ff01, 0x28288741, 0x0029005a, 0xfff0ff7c, 0x200182eb, 0x255182e8, 0xffd3ffd3, 0xab1a00e2, 0xff230ed5, 0x8492ffc9, + 0xffec2223, 0x222382e9, 0x82d4ffd4, 0x00102123, 0x26053345, 0x002c002a, 0x41b0ff2d, 0x41240e87, 0x2b004000, 0x41260182, 0x3e004100, 0x51822200, + 0x5f451f20, 0x82e82006, 0x82e220c3, 0x82c220f5, 0x84bf20c3, 0x82e220c3, 0xffde2211, 0xb4d182c2, 0x690026c3, 0x7b002a00, 0x228f8300, 0x82180014, + 0x822c200b, 0x8f1e2091, 0x21c383af, 0xb3861100, 0x2d002b22, 0x1e200182, 0xef837782, 0xd582d520, 0xc395ff83, 0x5b421820, 0x094b4208, 0x83057741, + 0x82bf20b3, 0x82d520c5, 0x82c020c5, 0x0b4b4207, 0xa7ff6726, 0xbb020102, 0x26288741, 0x00320038, 0x18f2ff97, 0x220ef76a, 0x8212000e, 0x00142401, + 0x82270025, 0xff192e01, 0xff7affbd, 0xffd9ffe7, 0xffdbffda, 0x182b84ec, 0x27096551, 0x00260025, 0x00a7ff27, 0x1a220083, 0x01822200, 0x46002529, + 0x48004900, 0x87003000, 0x8247200f, 0x0049220d, 0x2722832f, 0xb8ffd0ff, 0xbaffb7ff, 0xde244982, 0xe6ffdeff, 0xdf200182, 0xda200782, 0x17821182, + 0x01212182, 0x20c38500, 0x25c3a7bc, 0x33006700, 0x51189600, 0x8f8408f5, 0x8f190021, 0x8ac383af, 0x00272223, 0x18238226, 0x890def6b, 0x822120c3, + 0x20c3871d, 0x20cb8230, 0x20d18249, 0x20db8426, 0x20c38419, 0x21b182e7, 0xb383ffde, 0xcb82b720, 0xc392d020, 0x7cffe426, 0x91028401, 0x1ff95e18, + 0x1a580121, 0x2208a305, 0x82e1ffee, 0x83ee2001, 0x1200235f, 0x01821f00, 0xf8ff1230, 0xf3fff2ff, 0xebfff7ff, 0xdcffdbff, 0x1b84eaff, 0x2400162a, + 0x7cff2500, 0x0c000800, 0x08240182, 0x1d001100, 0x11240182, 0x5d01af00, 0x1e220b84, 0x1b821000, 0x0d000d26, 0xecff0700, 0xdf20a782, 0x41223d82, + 0x0b8582fe, 0x01244182, 0x7effe400, 0x93209b82, 0x10219ba0, 0x216b8400, 0xf3841500, 0x93878386, 0x82130021, 0x821e20a1, 0x231c8205, 0xe2ffedff, + 0xed20bb82, 0xff21cb85, 0x2731827e, 0x00220021, 0x01bf0014, 0x6b480b88, 0xfff82406, 0x82e3fff0, 0xffef2601, 0xffa2fe52, 0x200b86ef, 0x20e582f8, + 0x269b84f4, 0x0165ff8c, 0x1a8502dc, 0x216d73db, 0xe184dc01, 0xeefffa22, 0xf3209182, 0xf7208b82, 0x2106675c, 0x5219fffd, 0x22820959, 0x4560ff20, + 0x05954105, 0xdf82ec20, 0x0e000d24, 0xf5820800, 0x49480420, 0x23228205, 0x00010000, 0x2205915c, 0x84060006, 0x000d241b, 0x8211000d, 0x84102009, + 0xffed2463, 0x6ce2ffc7, 0xf524086b, 0xfafff5ff, 0x820aa150, 0xfbff2122, 0xf6220182, 0x8982f7ff, 0xe7ffee22, 0xf1208782, 0x00201482, 0x11224b82, + 0x47821900, 0x0a001122, 0x84096d61, 0x00032219, 0x261d8203, 0x000c0006, 0x7b10000b, 0x1a22084d, 0x0b8265ff, 0x21842e20, 0x02000022, 0xa3830182, + 0x0b692219, 0x2300142a, 0x21004600, 0x17001800, 0x0f202982, 0x06225784, 0x45820500, 0x0f000a24, 0x17820e00, 0x22001822, 0x45222382, 0x1f861400, + 0x21190b20, 0x03200861, 0x5a854f82, 0x2d000f22, 0xff210885, 0x200182fd, 0x20cb82f9, 0x20d382f4, 0x20bd82ef, 0x28bd82e8, 0xffdfffe1, 0xffe1ffbc, + 0x220182ea, 0x82f4fff4, 0x86f9201d, 0x4ef1202d, 0xff83081b, 0x1b82f320, 0xebffea22, 0x2f852d82, 0xe8ffe822, 0xef204182, 0xf5221582, 0x0182f9ff, + 0x3d62fd20, 0x00012806, 0x0162ff7d, 0x428b02ec, 0x00296d1f, 0x0015007d, 0x0020003e, 0x22018219, 0x18120011, 0x4108a56a, 0x05240bf7, 0x0b000400, + 0x13240182, 0x1c001300, 0x2608ef41, 0xffeefffa, 0x82edffe4, 0xfff52601, 0xfffcfff5, 0x66ff85fb, 0xf4200a3b, 0xee20e582, 0xe724ed82, 0xe0ffe7ff, + 0xc9202b82, 0x07262184, 0x12001400, 0xe34e0e00, 0x4101200e, 0x00200877, 0x05226d82, 0x01820900, 0x0f000f28, 0xebff1500, 0x0182f0ff, 0xf8fff822, + 0x19086963, 0x4e0945ab, 0xf62605e7, 0xf2fff6ff, 0x8f82f3ff, 0xeefff722, 0x62207f82, 0x02832082, 0x03000423, 0x05174200, 0x11000c22, 0x18200182, + 0x1f28e382, 0x44002200, 0x16002100, 0x0c220182, 0xc54a0d00, 0x822c8305, 0x0753426b, 0x15820620, 0x0c000c24, 0x23821700, 0x23001f28, 0x1f004500, + 0x01821800, 0x17834383, 0x03205383, 0x82058d58, 0xfff1226d, 0x243f84d2, 0xfffeff00, 0x200182fd, 0xf96818fc, 0x82f12008, 0xffed2bb7, 0xffbaffdc, + 0xffe8ffde, 0x0f83ffe7, 0xfb22ab83, 0xb182faff, 0x0f84f620, 0x1982e820, 0x2382df20, 0xecffb922, 0xf1202d82, 0x08ad6718, 0xfcfffc22, 0xfe204f82, + 0xf02a5986, 0x2a000100, 0x3e028e00, 0x9918d501, 0x012523b3, 0x001c0020, 0x22c18255, 0x820e000f, 0x001f22f7, 0x22358220, 0x82f5ff15, 0xfff22671, + 0xffe1ffef, 0x240182e0, 0xffdbffeb, 0x28d582b4, 0x00290029, 0xff82ff19, 0x266b8405, 0xff1b015e, 0x848e00df, 0x820b200b, 0x000e223d, 0x254b8210, + 0x001e001e, 0x0f870014, 0x0d821d20, 0x24820f83, 0xffe9ff23, 0x200182d9, 0x200a82e9, 0x20c18200, 0x200784c4, 0x280582e1, 0x003a0001, 0x022e0245, + 0x525d821c, 0xa74f0837, 0x2e022521, 0xfafffdff, 0x2006db54, 0x200b82fe, 0x24af82fe, 0xffe3ffe3, 0x24ad82ee, 0xffc9ffc8, 0x220b82ca, 0x82e6ffe6, + 0xffe8256b, 0x001600ce, 0x22054155, 0x823d003b, 0xff292401, 0x82d5ffe7, 0x82e72001, 0xed7118ab, 0x00452a0b, 0x00340022, 0x00320035, 0x24ef821b, + 0xff120019, 0x24b382e8, 0x00e8ffd8, 0x22a58227, 0x82380039, 0x821b20cf, 0x8215201b, 0xffd22217, 0x2c0582ed, 0xffe4ffe8, 0xffcbffce, 0xffddffcc, + 0x200b82f0, 0x210582e4, 0x8f85fffe, 0x9f83fb20, 0x2a26d282, 0x3e02c500, 0xdfade901, 0x4b800121, 0x13240691, 0x23002100, 0x17220182, 0x6382e9ff, + 0xdfffdd22, 0x2307595e, 0x07000500, 0x05200182, 0xe0228582, 0x1b82e1ff, 0xbdffbf27, 0xd4ffbcff, 0x26008300, 0x0044002c, 0x82410043, 0x001f2437, + 0x4d180020, 0x00230575, 0x820900c5, 0x000c2455, 0x821a000e, 0x001b22c5, 0x83018212, 0x821a20cf, 0x820c2011, 0x82092019, 0xffda2463, 0x82e9ffda, + 0x450120b5, 0x032608c5, 0xe5ff0200, 0xd345cbff, 0x850d8206, 0x822b851d, 0x003a260b, 0x022e025b, 0x21dfad31, 0x7b418400, 0x00362608, 0x00370038, + 0x478b8225, 0x042005c5, 0x0620d982, 0x2006c75b, 0x227b8202, 0x82e6ffec, 0xffe32c01, 0xffc8ffcb, 0x00dbffc9, 0x822b0019, 0xff193001, 0xffe3ffea, + 0xffe0ffe4, 0xffc3ffc5, 0x82d7ffc2, 0x005b2217, 0x20d78415, 0x244f821e, 0x0039003a, 0x22a38226, 0x82d8ffd8, 0x0fd741cf, 0x2207a341, 0x82fbfffa, + 0xfffc2201, 0x20e182f0, 0x066f46e5, 0xc81ae820, 0xde200879, 0x01283982, 0xc4001700, 0xd3015202, 0x9f425b82, 0xe1003516, 0x5c004200, 0x76005d00, + 0xa3ff8aff, 0xbeffa4ff, 0x13000d00, 0x0d250182, 0x4fffa7ff, 0x24008300, 0xffc80042, 0x295f83f3, 0x2d00c400, 0x23002200, 0x01821600, 0x09822220, + 0xc7822d20, 0xddffdd22, 0x2205d948, 0x75fff5ff, 0xeb240571, 0xe0ffe0ff, 0x25286e82, 0x44028c00, 0x4900fe01, 0x2d496350, 0xa0010001, 0x71002500, + 0x03000700, 0x9c830400, 0x0085ff20, 0x27051341, 0xffcefffc, 0xfff9ff9c, 0x22059f4f, 0x82f7fff7, 0x0b7f4609, 0x26052b45, 0xff2f0017, 0x8404ffac, + 0x84f82025, 0x079f4621, 0x07241f85, 0x09000800, 0x70220182, 0xf782e000, 0xedffec24, 0xc346eeff, 0x2023890a, 0xa9091908, 0x00992408, 0x826a0023, + 0x20398593, 0x20998205, 0x209f8405, 0x24058203, 0x002f0003, 0x451b825f, 0xff20064b, 0x20056747, 0x857784f9, 0x82f820a1, 0xffea225d, 0x23cd83d5, + 0xfcff0000, 0x83068747, 0x39c819b7, 0x83fa2009, 0x20218617, 0x228f82f3, 0x84f0ffed, 0xfff922e7, 0x83e582f6, 0x79c31b4d, 0x286b830b, 0x002a0001, + 0x013e02ce, 0x153558f3, 0x00a30131, 0x0031001d, 0xff1d0030, 0xffd0ffe3, 0x83e3ffcf, 0xa2ff235d, 0x0783e5fe, 0x015e0023, 0x2407821b, 0x001b00ce, + 0x2401822e, 0x001c001b, 0x2407822d, 0xffd3ff1c, 0x222784a8, 0x84ecfff9, 0x00df2a07, 0x00170001, 0x015202b1, 0x250b19ea, 0xab01291d, 0x0e000b00, + 0x10000f00, 0x1f2a7782, 0x15001e00, 0xe2ffebff, 0x7d82e1ff, 0x5705716d, 0x9b2205ab, 0x5783d1fe, 0x01650023, 0x2207822f, 0x820a00b1, 0x820d2033, + 0x821c2035, 0x001d2235, 0x20018213, 0x2009821d, 0x2811821b, 0x000d000e, 0xffd9ff0a, 0x228784b2, 0x84c5ffec, 0x00e32207, 0x24b38204, 0x014e02af, + 0x228f82e4, 0x82290021, 0x16f942e3, 0x201ca745, 0x0c0746a9, 0x14001f24, 0xab82ecff, 0xad84e220, 0xf2fff223, 0x22ad85ff, 0x838fffda, 0x26002b75, + 0x00007100, 0x050072fe, 0x85841100, 0xeffffb22, 0x35200782, 0x22204382, 0xf5220f84, 0x0782deff, 0x16004b24, 0x0f844400, 0xbdffe922, 0xaf200782, + 0x1b21dd88, 0x83df8300, 0x821c20dd, 0x821c2009, 0x840d20dd, 0xffe422dd, 0x222f84c8, 0x8496ffdd, 0x4beb2007, 0x002305cb, 0x8b6a0023, 0x820f9917, + 0x00042a25, 0x02c2002a, 0x00e6013e, 0x06114111, 0x222b0f41, 0x822100a3, 0x002728dd, 0xffd3ff2d, 0x43daffd9, 0xdc2206e1, 0x598295ff, 0x24000024, + 0xf7826b00, 0xf7828720, 0x8f841020, 0xf0fffb22, 0x31200782, 0x2020f782, 0xf5220f84, 0x0782e0ff, 0xb5824820, 0x0f844020, 0xc0ffeb22, 0xc2220782, + 0x39823300, 0x16002522, 0x25281782, 0x33002500, 0xe1fff1ff, 0xce211f84, 0x22d785ff, 0x830c00f4, 0x3200220f, 0x86f78500, 0x820f9917, 0x8201202d, + 0x02b724e7, 0x42db013e, 0xb7243aef, 0x2d001c00, 0x1c240182, 0x2e001b00, 0xff230783, 0x84caffe6, 0xffdf2299, 0x2c07849c, 0x000200ec, 0x02af0030, + 0x00ed0138, 0x4121821f, 0x2b822b4b, 0x22203b82, 0x31346184, 0x5f005d00, 0x3f006000, 0xa0ffc1ff, 0xa3ffa1ff, 0xd3ffcfff, 0xde2a0182, 0x0f000b00, + 0x10000e00, 0x5f821e00, 0x14002025, 0x75ffecff, 0xf02805c1, 0xf1fff2ff, 0xedffcb00, 0xed200f84, 0x2c062d46, 0x0038001d, 0x003a0039, 0x00b9ff26, + 0x203b82af, 0x203b820d, 0x26c5820f, 0x001d001d, 0x82130014, 0x821e2005, 0x000f210d, 0x0b201783, 0x2408f158, 0xffe2ffe4, 0x204982e3, 0x240582ec, + 0xffe4ffe3, 0x245b82f1, 0x009400f3, 0x25758211, 0xff12001e, 0x4145fffa, 0xffef2405, 0x42eeffef, 0xf78205eb, 0xc6003d2a, 0xf3012b02, 0x25001700, + 0x2527d145, 0x3c003d00, 0x01825b00, 0x2f00582c, 0x2b002a00, 0xc4ff2000, 0x0182a5ff, 0xd0ffa924, 0x0182d6ff, 0x7182df20, 0x32003224, 0x91821e00, + 0xceffce26, 0x12004d00, 0x1124f984, 0x87004300, 0xe722fb82, 0x9f82e6ff, 0xc9ffcb26, 0xc600c9ff, 0x1c221b82, 0x01821b00, 0xcf820e20, 0x0a000d22, + 0x1b20df82, 0x1b20dd82, 0x2f43f382, 0xffe32405, 0x82d2ffd1, 0x82e420d3, 0x00d12207, 0x20cf821f, 0x431f821d, 0xd3830593, 0xf7fff924, 0xd382f0ff, + 0x8300ef21, 0x003d26c0, 0x022b0287, 0x236b4a39, 0xe022c792, 0xbf82d5ff, 0x9570d120, 0x00c42c06, 0x0018000f, 0x00160017, 0x820b000c, 0xff082499, + 0x82e9fff1, 0xffea2801, 0xfff5fff4, 0x198700f5, 0x200a6159, 0x22b78212, 0x820e000e, 0x00132605, 0x00260015, 0x20018228, 0x28e7821a, 0xffd8ffd8, + 0xffebffda, 0x200182ed, 0x200f86f2, 0x05cb79d9, 0x1b26af84, 0x4e02ba00, 0xab48fe01, 0x4401202d, 0xb32425c9, 0xeeff19ff, 0xf022b382, 0x0182f2ff, + 0xf9fffa22, 0x02857182, 0x06000722, 0x0e22ab82, 0xe1821000, 0x66001224, 0x1682ce00, 0xe382ba20, 0x0d000d22, 0x1b241182, 0x1c001d00, 0x1c20c984, + 0x1b200982, 0x2206b944, 0x5ee8ff0b, 0x00220651, 0x3f820700, 0x0e202b83, 0x11261b82, 0x8fffc8ff, 0x6782efff, 0xf3fff122, 0xfa220182, 0x4d82faff, + 0xff270282, 0x000100ef, 0xb1b9001b, 0x853582df, 0x820e2063, 0x20a38ba5, 0x24c14500, 0xb922f795, 0xad821100, 0xe1821020, 0xbd820c20, 0x20058f5e, + 0x22b78200, 0x820a00cc, 0x058f4613, 0xf7861c20, 0xf785ff83, 0x0a000e22, 0xff20f789, 0xff21db82, 0x20e382f4, 0x22ed82f1, 0x82c8ffef, 0x00a826df, + 0x02c1017b, 0x1e27474b, 0x63823220, 0x0bb7f518, 0xeeff1224, 0x0182e6ff, 0x8d71e720, 0x82002007, 0xdeff2300, 0x068298ff, 0x22000024, 0x07826800, + 0xad827b20, 0x14001428, 0x29001600, 0x01822b00, 0x1d001c24, 0x07822a00, 0x11822920, 0x17821320, 0xd6ff1022, 0x23057157, 0x61ffcbff, 0xe0203f84, + 0x1b268f82, 0x4e02ac00, 0x2f45e101, 0x00713016, 0x0037001b, 0xff530038, 0xffc8ffad, 0x84e5ffc9, 0xffaa2137, 0x00240683, 0x01015500, 0xac240882, + 0x27003600, 0x17220182, 0x07841700, 0xab823520, 0x2784da20, 0x6cffcf22, 0xf22a0784, 0x32000200, 0x3602ab00, 0x9382f101, 0x37442f20, 0x0a9b4727, + 0xc3822f20, 0x0b004322, 0x0f20e182, 0x1f22a982, 0x01822000, 0xebff1524, 0x0182e0ff, 0x4b42e120, 0xfff52206, 0x06ff47e2, 0x42ffc122, 0x00237783, + 0x82be003f, 0x841d2007, 0x20138d83, 0x094a1a00, 0xffe52608, 0x00d3ffd2, 0x822383ab, 0x000e225f, 0x2163820e, 0x054e001d, 0x84142005, 0x001c2207, + 0x20158210, 0x191d820e, 0x220b1910, 0x8482ffd6, 0xffec2657, 0x001300e0, 0x230b833b, 0x55001d00, 0x14220784, 0x9f4d3c00, 0xe6ff2507, 0xd5ffd6ff, + 0x8e20ff84, 0xd520ff82, 0x1520ffbc, 0x2120f582, 0x11209382, 0x0f22a382, 0xff880b00, 0xf1fff022, 0xf4200182, 0x5220ff96, 0x2e24ff96, 0x1a002e00, + 0xd2229f82, 0x054fd2ff, 0x20ef8506, 0x205d821d, 0x20f1820e, 0x11481b0b, 0x20ff8d08, 0x224f84c4, 0x8483ffd6, 0xffec2207, 0x182782df, 0x820cc793, + 0x883b200f, 0xffe722ff, 0x28ff84d5, 0x0256001b, 0x00df014e, 0x44e35e23, 0x0d001624, 0xf6192700, 0x6d480e7d, 0xfff12805, 0xffe9ffe8, 0x82f4fff1, + 0x82f72007, 0xfff02607, 0xff9cfff7, 0x20e78239, 0x25af83b4, 0xc2004000, 0x0184feff, 0x0f82ff20, 0x09002f22, 0x1022ed82, 0x23830900, 0x16215382, + 0x26598300, 0x00c70064, 0x820e000a, 0x000a2419, 0x8213000b, 0x190c2001, 0x210d2f5f, 0x3b825600, 0x23820020, 0x25840d20, 0x2807b949, 0x002d0016, + 0x00360020, 0x82058235, 0xf2ff2320, 0x0182e7ff, 0x0a82f120, 0xd6ff0028, 0xf0ff82ff, 0x0b84ceff, 0x50fffe21, 0xe92205f3, 0x63823100, 0x18001922, + 0x18830582, 0x23001622, 0x16200182, 0x57820a83, 0x19001a24, 0x3f420f00, 0x20058205, 0x22d182f8, 0x82f3fff4, 0x2d5382d5, 0x30000200, 0x38026500, + 0x2500b901, 0x4f434100, 0x11b14832, 0x0800d122, 0x0d208782, 0x1720ff82, 0x0817a81b, 0xebffeb28, 0xd5ffeaff, 0x0182d4ff, 0xefffe322, 0x8205f749, + 0x8203203a, 0xff02227f, 0x054544b0, 0x00120023, 0x2401821e, 0x005c0011, 0x204382b8, 0x22b9820f, 0x82f8ff16, 0xfff226fb, 0xffa4fff7, 0x24b38249, + 0xffecffec, 0x821f83f4, 0x82f22011, 0x82f82019, 0x182720d9, 0x280a2f81, 0xfff5ff0f, 0x00efffee, 0x30f98465, 0x002f001c, 0x001c002e, 0x00260013, + 0x000c0009, 0x208f820b, 0x229b8218, 0x83100019, 0x223f821f, 0x19feffd4, 0x2109d9aa, 0x9d82f1ff, 0xd3ffe522, 0x9d440182, 0x83f32005, 0x0a0021b5, + 0x15243582, 0x0e001500, 0xa3823383, 0x1f001f22, 0x0c835182, 0x15820d20, 0x0d001522, 0x08c31619, 0x8952f520, 0xffe92406, 0x82dbffdc, 0x00022820, + 0x0267003f, 0x8205022a, 0x413920a1, 0x4a203c5b, 0x1f268582, 0x22001600, 0x01822100, 0xbf821120, 0x0c001026, 0xf4fff9ff, 0x05830182, 0xf0fff026, + 0xdfffefff, 0xde220182, 0x8f82eaff, 0xc720bf85, 0x18050b67, 0x24089b7d, 0x00850043, 0x22498205, 0x84feff09, 0xffc621ff, 0x22056544, 0x83ac0039, + 0x1c002f0f, 0x31003000, 0xe4ff1c00, 0xd0ffcfff, 0x13846700, 0x20001522, 0x1e220182, 0xff821100, 0x0b000f22, 0x15200582, 0x0d208782, 0x0f220982, + 0x87820f00, 0x1d821f20, 0x474c1f20, 0x20778205, 0x225786d7, 0x82f3ff51, 0xffea2287, 0x200f84f3, 0x229b82f5, 0x825800ef, 0x832a203b, 0x2c00230f, + 0x07848300, 0x2a000e2a, 0xd2ffe6ff, 0xe5ffd3ff, 0xd3220182, 0x1582d4ff, 0x2b00022a, 0x3e023d00, 0x2700fe01, 0x20468f42, 0x22ab8223, 0x820d0022, + 0x00112dc1, 0x00230013, 0x00250024, 0x00070018, 0x20051359, 0x219b82f4, 0x6b18ffee, 0xf126098d, 0xfaffe2ff, 0x0182f6ff, 0xb8fffa25, 0x43ff70ff, + 0xf820052d, 0x440a157b, 0xc222051d, 0x138a46ff, 0x14000026, 0x1e001f00, 0x10200182, 0x2305e145, 0xf2fff5ff, 0xf0200182, 0xe2234d82, 0x7200e1ff, + 0x751805c7, 0x0e200f15, 0x17228782, 0xbb5d0f00, 0x0022220a, 0x069f5c22, 0xeefff422, 0x23072b4b, 0xe8fff1ff, 0xf2240182, 0x58ffacff, 0x0f827383, + 0x7955f120, 0x002f2108, 0x2205334e, 0x822d000f, 0xffe3242f, 0x4be5ffe3, 0xc384057f, 0xf3fff222, 0xe4240d82, 0xe3ffe4ff, 0x022b3982, 0x9d001a00, + 0x19024f02, 0x61002f00, 0x01214aa9, 0x149d426f, 0xfbfffc28, 0xfcfffaff, 0x8182f4ff, 0x9b82f020, 0xdeffe026, 0xe9ffdfff, 0x22089d42, 0x820effb0, + 0x00122837, 0xff0b0011, 0x82effff5, 0x00f62c21, 0x00060003, 0x00040005, 0x82cb0065, 0x820020af, 0x00052209, 0x05d34406, 0xffb4ff2d, 0x0007001c, + 0x000d000e, 0x82f8ff08, 0xfff222d7, 0x262788f9, 0x0031001c, 0x821c0030, 0xffd024e7, 0x849d00cf, 0x0015223b, 0x06b9421f, 0x35820f20, 0x3b820c20, + 0x0b000b22, 0xe1550584, 0x821e2005, 0x4220201d, 0xf12206b9, 0x3383d6ff, 0xd55aff20, 0xffeb2405, 0x82dbffea, 0xffeb2201, 0x209982f9, 0x05bd4af5, + 0xf022cd82, 0x0f83faff, 0x42390021, 0x112408c9, 0x1b001c00, 0x1020c182, 0x44830786, 0x2a000d23, 0x054544ff, 0x0782e620, 0xd3ffd22c, 0x16000200, + 0x54027700, 0x7741f801, 0x005d224e, 0x22e3820a, 0x84220017, 0x00112201, 0x21018210, 0xff59000d, 0xff042105, 0x0f577218, 0xe4fff224, 0xc182fcff, + 0x3d59fb20, 0xb3ff2305, 0x0f8218ff, 0x1182fb20, 0x8741fd20, 0x006d2210, 0x20ca82da, 0x2803821f, 0xffb2ff00, 0x00080018, 0x2101820d, 0x496cff09, + 0x00f82405, 0x83cf0067, 0x1d00231b, 0x01823000, 0xe2ff1e28, 0xd0ffd0ff, 0x31447700, 0x18212008, 0x41080d6d, 0x49440977, 0x821f2005, 0x000f24a3, + 0x840c000f, 0xfff9265b, 0xfff6fff5, 0x460182f9, 0xfa2005db, 0x82056f41, 0xffdc24bb, 0x41eaffdb, 0xea200687, 0xf2222b84, 0x3782f1ff, 0x0b832b20, + 0x00110025, 0x821c001b, 0x83078705, 0x000e2214, 0x056f412b, 0xe42ee782, 0xd2ffd3ff, 0x49000100, 0x20025900, 0x0d193202, 0x01213f0b, 0x57581ad6, + 0x82da2010, 0xffd42661, 0xffe7ffce, 0x200182e8, 0x24b182e9, 0xffedffed, 0x280182f0, 0xfff4fff4, 0x005100f9, 0x219483a3, 0xb3820d00, 0x18001021, + 0x41080979, 0xf1200c95, 0x28061f45, 0x0049ffc4, 0x000a0008, 0x222d820b, 0x822c0026, 0x00332401, 0x822d0034, 0x009f2407, 0x82290024, 0x00302401, + 0x822a0031, 0x00232201, 0x5cf58423, 0xf720097d, 0xf4226d82, 0x7782f1ff, 0x0582f220, 0x1882f320, 0x71820020, 0x15822e20, 0x0f82f120, 0x2009b758, + 0x0de14aea, 0x18140021, 0x2208f191, 0x82f3fff3, 0xffdc242d, 0x84efffef, 0x8211203d, 0x00002261, 0x247d8209, 0x013c029d, 0x2e278273, 0x00410035, + 0x0059004d, 0x00710065, 0x4689007d, 0x2f483cc9, 0x8211bc11, 0x003026a5, 0x000c0090, 0x24018215, 0x002f000c, 0x26c3845c, 0x00200020, 0x83220021, + 0x7b0382d3, 0x0582050b, 0xff231b83, 0x8297ffde, 0xffeb22ef, 0x220582eb, 0x8680ffc0, 0x840d203b, 0x82f3201b, 0x00eb2615, 0xfff5ff4c, 0x283782ee, + 0x000700f5, 0x000b000e, 0x24018212, 0x00f8ff0b, 0x2017821c, 0x20178aef, 0x20178611, 0x20178a1d, 0x832f8a0d, 0x85478b17, 0xfff9222f, 0x84238239, + 0x485f820b, 0xee2005b1, 0xf9224182, 0x17841d00, 0x05821120, 0x85000721, 0x96ef2017, 0x202f8b17, 0x202f8412, 0x21b3870e, 0xff44f9ff, 0x00112206, + 0x2051821e, 0x26d78412, 0x00baffe9, 0x821b001f, 0x82152001, 0x820c202d, 0x000d24f3, 0x820f000d, 0xff102401, 0x83c2ffe1, 0x11002123, 0x1d202d82, + 0x0c82d182, 0xe322fd82, 0xe982e3ff, 0x0982f720, 0x0982ee20, 0x6800e222, 0x18222b82, 0x8b451900, 0xfff12606, 0xffe8ffe7, 0x202a82f1, 0x2117c500, + 0x478294ff, 0x1a001922, 0xe6205f88, 0x5f876182, 0x032e17c3, 0x57003a00, 0x2d022e02, 0x27001300, 0xc3424b00, 0x0071214e, 0xff230082, 0x82e0ffeb, + 0xffe22601, 0xfff2ffef, 0x06e752f1, 0xd1820b20, 0x11000e2e, 0x20001e00, 0x8bff2000, 0x56001d00, 0x0cff7118, 0x3582e020, 0xb3ffda23, 0x0c1d4500, + 0x82410121, 0x26a2834e, 0xfff3ff02, 0x82eaffe9, 0xffed2205, 0x205b82df, 0x05bd5aed, 0x82fbff21, 0x822120c5, 0x82142051, 0xffed2469, 0x68eeffec, + 0x232208d5, 0x6b821f00, 0xf8ff1c22, 0xfc272982, 0x1b001f01, 0x4e005100, 0x0d260b7d, 0xdcff0b00, 0x9f48b8ff, 0xfff12406, 0x82e2ffe3, 0x84d72001, + 0x840b206f, 0x820f2045, 0x821e20a3, 0x84132043, 0x84ed20d3, 0x82e3201f, 0x82f220cf, 0x00b9226b, 0x2101850d, 0x9582f4ff, 0xf3ffeb22, 0x0801301a, + 0xf9fffc22, 0xfc220182, 0x2f82eeff, 0x0582e120, 0x9582f420, 0xefffed26, 0x01000200, 0x00234783, 0x82fcff00, 0x00f82201, 0x2c5d841c, 0x00030000, + 0x02da002a, 0x009c013e, 0x20118211, 0x2c8f4129, 0xd582c720, 0x2022a183, 0x6d82e0ff, 0x4b50e220, 0xffe02206, 0x2a6984a0, 0x00600020, 0x00aafe00, + 0x41a00035, 0xb922083d, 0xb78272ff, 0x17001624, 0x1783c6ff, 0x00220b85, 0x1782ff0d, 0x00232385, 0x5e2000da, 0x182008af, 0x20220982, 0x2d57e4ff, + 0xfff92206, 0x215783ed, 0xb164ebff, 0x0c002505, 0x16001500, 0x14820582, 0x20060541, 0x200a8296, 0x44538200, 0x17850583, 0x2f82eb20, 0x3a00032c, + 0x2e023d00, 0x27001302, 0xed183b00, 0x71225407, 0xb7821300, 0x05822120, 0x95820d20, 0x12001423, 0x820082ff, 0x21028280, 0x0482ffff, 0x04240283, + 0x08000500, 0xe124cd82, 0xddffe1ff, 0xf324ed82, 0xf2fff2ff, 0x1620ad82, 0x0e26c582, 0xe0ffecff, 0xe182dfff, 0x0600052a, 0xcefe0700, 0x56001d00, + 0x250d8b42, 0xdaff0b00, 0xb342b3ff, 0x7600210d, 0x490cff4b, 0xff420745, 0xffe12105, 0x25054550, 0x010000f5, 0x7f55004c, 0xff122405, 0x82edfff4, + 0x18ef206b, 0x82088568, 0x210b826d, 0x354b0006, 0xff1a2305, 0x9748fff9, 0x01002106, 0x59410183, 0x22358306, 0x82e2ffe2, 0xfffc223b, 0x202382fa, + 0x42d0836f, 0x1d2406cf, 0x0e000f00, 0x0a200182, 0xff211383, 0x33c01af6, 0x6aff210b, 0x240e8151, 0x00240013, 0x227f8248, 0x59e3ffe2, 0xf6220873, + 0x3982dcff, 0x28000128, 0x41025700, 0xa77d5102, 0x2f022177, 0xf5828584, 0x25063b48, 0xfffcfff8, 0x0083fffe, 0x64ffef21, 0xe220057d, 0xf2260782, + 0xfaffe8ff, 0x0182fbff, 0xfdfffd22, 0xfe201c82, 0x00233582, 0x64000200, 0x0528055f, 0x07000500, 0xeeffe9ff, 0xf2240182, 0xedffd7ff, 0xdd220782, + 0x2b6ef1ff, 0x0008240a, 0x82f9ff0f, 0xfff7220f, 0x220186f6, 0x84f5fff7, 0xfff72109, 0xf8260183, 0x1700f8ff, 0x01821200, 0x29000e22, 0x13220582, + 0x21462200, 0x00132206, 0x22018208, 0x84070009, 0x00072407, 0x82110006, 0x000d2419, 0x821e0009, 0x000e2207, 0x20af8218, 0x245b82f9, 0xffecfff7, + 0x220182ef, 0x410f00f0, 0x24200699, 0x22224382, 0x65821f00, 0xfcfffc25, 0x5300d400, 0x0e220513, 0xe982f2ff, 0xa382ef20, 0x3582f720, 0xfdfff926, + 0x0c001000, 0x09220182, 0x05821c00, 0x85820d20, 0x20051b42, 0x83718607, 0x4208207d, 0x07200637, 0x16220784, 0x83841000, 0xa7822720, 0x21001122, + 0xef20e782, 0xeb20ef82, 0xf1207f86, 0x05202382, 0x190e8b78, 0x20092592, 0x207382fa, 0x22a784ea, 0x82dafff3, 0xffee2207, 0x207582e0, 0x232f8206, + 0xff000000, 0xfd242783, 0xfbfffdff, 0xfa20d382, 0x28068f41, 0xffe5fff7, 0xfff4fff3, 0x221f82e9, 0x82fefffd, 0xfff82219, 0x200182f5, 0x0cdb44f1, + 0xf8fffb28, 0x20001d00, 0x46821f00, 0x16000128, 0x5302b900, 0x654d8901, 0x5302294b, 0xdfffddff, 0xe3ffe0ff, 0x04226182, 0xe5820300, 0x05820320, + 0x04000226, 0x93ffc9ff, 0xf220ab82, 0xf524a584, 0xfbfffaff, 0xb322a982, 0x278268ff, 0x06000624, 0x03820e00, 0x2d820820, 0x08000924, 0x03820900, + 0xf6ff0a26, 0xf7fff8ff, 0xe95d0384, 0x82f22005, 0x82fa2033, 0x004c222d, 0x20058299, 0x242f8205, 0x000c000b, 0x2439820d, 0x00360010, 0x22f1826e, + 0x82fdfffe, 0x82f92001, 0x82fc2003, 0x26e78321, 0x00210121, 0x821a0012, 0xff222201, 0x240182ee, 0xfff1ffef, 0x204782f9, 0x751919fb, 0x00052608, + 0x000b0005, 0x2247820a, 0x8210000c, 0x82002035, 0x82f12025, 0x19f320a7, 0x22084733, 0x44fefffc, 0x078205a5, 0x5b83fe20, 0x20067741, 0x224b82f4, + 0x83eefff1, 0x0f002133, 0x0a203f84, 0x4f834982, 0x29821284, 0x2982fb20, 0x2582f920, 0xefffee26, 0x2200edff, 0x19208582, 0x012a1a82, 0x53003a00, + 0x28022e02, 0x4f466500, 0x3b814a2c, 0xf3827120, 0x9543fc20, 0x0006240e, 0x700c0006, 0x1b200859, 0x0c220b82, 0x9f841800, 0x01000122, 0xb5430782, + 0x82072005, 0x000b22d3, 0x9bc0190f, 0x0da9450a, 0x45fff221, 0x0e2205a9, 0x01821000, 0x0800132e, 0x07000600, 0xd7ff0500, 0xf4ffaeff, 0x4543fb82, + 0xfff12205, 0x240d82f2, 0xffefffeb, 0x222f82f0, 0x82eeffda, 0x00df2a09, 0x0011000f, 0x00140012, 0x20018809, 0x20098208, 0x55621907, 0x8207200a, + 0x000f224b, 0x24278215, 0x000d0010, 0x24078226, 0x00f50011, 0x43158205, 0x0820057d, 0x07200982, 0x087f4d18, 0xab840f20, 0x1a000824, 0x09820c00, + 0x35191620, 0xfd230895, 0x83fffcff, 0x82f02003, 0x2189827d, 0x4b820e00, 0x23820d20, 0x1e002028, 0x1a001d00, 0x6760f8ff, 0x82f78309, 0x05ef4da1, + 0x4183fd20, 0xff00002b, 0xffb2ffda, 0xfffbfff5, 0x201d82fa, 0x24df8200, 0xff0b0005, 0x224b84ec, 0x82dcfff4, 0xffef2207, 0xb1b918e2, 0x0002260a, + 0x00040002, 0x22038203, 0x82070005, 0x82f120f7, 0xffed2221, 0x82fb85ed, 0x001022ed, 0x209d8210, 0x20058224, 0x2a258210, 0x028c001b, 0x00d7014e, + 0x184f0023, 0x227c6d48, 0x84fdffcb, 0xfffc2101, 0x22077b45, 0x43f6fff4, 0xfc200683, 0x20058b4f, 0x05616400, 0x08000524, 0xc1820700, 0x15001126, + 0x19001600, 0x1e300182, 0x23001e00, 0xdfffd5ff, 0xa1fedfff, 0x73003d00, 0xa8280182, 0xbaffaeff, 0xc7ffbbff, 0xd3220182, 0x1b82d2ff, 0xfafff824, + 0x0182f9ff, 0xf118f220, 0x51410859, 0x051d4607, 0x04000224, 0xf1180500, 0x43450885, 0x26698305, 0x00060009, 0x84300107, 0x0b616219, 0x21001722, + 0x2a240182, 0xe5ffe4ff, 0xe6240182, 0xe8ffe7ff, 0xe9220382, 0x0184fbff, 0xc782fd20, 0x0420b787, 0x09205982, 0x0a24b582, 0x0c000a00, 0x06224784, + 0x7b45b701, 0x82032006, 0x796c18cb, 0x077d460b, 0x4584f520, 0xb382fc20, 0xb584f620, 0x6c18fc20, 0xf8220c7f, 0xfd82f7ff, 0x2200212a, 0x170066ff, + 0x11001000, 0x05205982, 0x06215182, 0x23678500, 0x000d0009, 0x24053f43, 0xff000000, 0x284b82fa, 0xfff6fff5, 0xfff5fff4, 0x204d84f0, 0x201382f9, + 0x471582f9, 0xfc22072b, 0x0182fdff, 0x097f7418, 0xa2ff0124, 0x01840300, 0x0a1b0420, 0x2d20084f, 0x1520ef84, 0xf8223f84, 0x0782f8ff, 0x0582f720, + 0xb741f820, 0x82f92008, 0x82f720f1, 0x63f42061, 0xb741081d, 0x8200200b, 0x000e268f, 0x015a02ac, 0x20b182bb, 0x5179444f, 0xff5a0229, 0xffdcffcd, + 0x84ecffdd, 0x82f820e3, 0x000026f8, 0x00070008, 0x270f8f10, 0x23001400, 0x92fe2400, 0x08574518, 0x39002122, 0x52240182, 0xc7ffaeff, 0xdf200182, + 0xf520bf82, 0x0583c784, 0xf6200383, 0xf720e782, 0xf920dd82, 0xfa21f584, 0x200183ff, 0x200584f9, 0x232b82f6, 0x000e00f3, 0x25055f6c, 0x00040006, + 0x05830005, 0x77820720, 0x03851383, 0x69830b20, 0x0034012d, 0x00220016, 0xff2e0021, 0x82effff2, 0x43ed2001, 0xf0220693, 0x0f84f1ff, 0x9947ee20, + 0x822e2008, 0xff232227, 0x204d84bc, 0x24498205, 0x00110013, 0x20658212, 0x2207820f, 0x19130011, 0x4c0ac7e9, 0xff200637, 0x2407b947, 0xfffcfffc, + 0x830182fb, 0x82f420ad, 0x05c146c3, 0xbb82f920, 0x0d82f620, 0xbf82f720, 0xb782f820, 0x1805c166, 0x220d0f4a, 0x82010001, 0x02d22459, 0x18b70156, + 0x21bded77, 0xc9821c01, 0x2205fb42, 0x84020003, 0x00122601, 0x00040005, 0x08c04609, 0x15820420, 0x26231b83, 0x42004d00, 0x278505e5, 0x84000121, + 0x83ff2000, 0x84fb2000, 0x00fd2405, 0x84ffff00, 0x44048514, 0x03200581, 0x3f834d82, 0x22055948, 0x820c0003, 0x00092a5b, 0x00150008, 0x000b000a, + 0x465d8212, 0x338305c1, 0x4b845384, 0x1d430485, 0xffea2207, 0x240182f6, 0xfffdffee, 0x850382fe, 0x84fc2005, 0x089b4c0d, 0x00203e83, 0x05203f83, + 0x0320b984, 0x14840584, 0x08856e18, 0x22053345, 0x84b3ffda, 0x1afe205c, 0x24085f2e, 0xffedffff, 0x200182fc, 0x857988f7, 0xfffd2465, 0x865affad, + 0x823b8371, 0x8450841e, 0x180025a5, 0x06000500, 0xb78acd82, 0xff230a83, 0x82faffe9, 0x84f42001, 0x050d410b, 0x8b820120, 0x24070141, 0x00530003, + 0x821b83d2, 0x051f4103, 0x0300022a, 0x08002300, 0x11000900, 0x22068b41, 0x82020001, 0x82658501, 0x83bf8a26, 0xffff2297, 0x201182fe, 0x22b384fd, + 0x84f7fffb, 0x2110820d, 0xa9880000, 0xab89d983, 0x0c204d83, 0x08245d82, 0x15000700, 0x67830782, 0x2005c741, 0x205c8203, 0x83878802, 0x202b838d, + 0x2223840b, 0x84140007, 0x41112007, 0x3541099f, 0x05474108, 0x0b03f119, 0xfcffec23, 0x208b83ff, 0x05454cfd, 0x2185ff20, 0x9b85fd20, 0x02896182, + 0x75180120, 0x232008b9, 0x5f879384, 0xf183f39d, 0xd4220383, 0x0182f5ff, 0x0f19eb20, 0x178508b3, 0xd5fffe22, 0xea201784, 0x1b847d83, 0x09257518, + 0x28090741, 0x02a80013, 0x00da0156, 0x514d45bf, 0x201ca767, 0x291dd200, 0x001500ae, 0x0010000f, 0x9948000c, 0x411f2005, 0x002009a5, 0x3542de83, + 0x84fb8205, 0xffeb2502, 0xfff0fff1, 0x2205fd48, 0x42e1fff0, 0x4b420a27, 0x84fe2005, 0x4eff2025, 0x7b420a03, 0x09094405, 0x02834f82, 0x7d432784, + 0x82fd2005, 0xfff3222d, 0x4c1184e7, 0x9b4205e1, 0xffe62905, 0xfffafff9, 0xff0000f2, 0xfd265589, 0xa6fffcff, 0x49434dff, 0x00082218, 0x22018206, + 0x840e0005, 0x000c2107, 0x73897d85, 0xdaffec22, 0x82098350, 0x0001211d, 0x20054d43, 0x22078204, 0x82b30059, 0x00012405, 0x84000002, 0x82022015, + 0x84182009, 0x430d2047, 0x02200c61, 0x0d221d82, 0xc1441900, 0x0a1f4408, 0xff24ab82, 0xfbffefff, 0xf620a582, 0xc3443382, 0x00022207, 0x20598401, + 0x08214501, 0x2005f948, 0x21158203, 0xaf4e00ac, 0x000a2205, 0x22b5821f, 0x881a000d, 0x84002091, 0x89338d89, 0x820d202b, 0x411a202d, 0x6d820cab, + 0x84ffff21, 0x05454181, 0x8541fd20, 0x83ff2005, 0xffd6220d, 0x220182f5, 0x84feffec, 0x82fe200d, 0x82fd2019, 0x0bdd430b, 0x00860020, 0x24095543, + 0x000d0032, 0x83e7820c, 0x41858711, 0xc143084f, 0x2349850e, 0xfff2fffe, 0x2005fd46, 0x210782e5, 0x5d43fff4, 0x2287830d, 0x86b6ffdc, 0x43ff2039, + 0xfe200cd9, 0x06837d86, 0x02216383, 0x24018300, 0x002e0004, 0x2001820b, 0x08954c17, 0x45000221, 0xf01a09e1, 0xcf8909c5, 0xd7206383, 0x200ed943, + 0x206984fd, 0x05f741fe, 0x200afd41, 0x204b8600, 0x28e38203, 0x0150027e, 0x001b00bc, 0x6eab734d, 0x5e00192a, 0xecff1a01, 0xf1fff0ff, 0xfe21b582, + 0x074741ff, 0xff26a683, 0xe6fff3ff, 0x01840400, 0x06000522, 0x08240184, 0x34ff9aff, 0x6a21b882, 0x052f4200, 0x1100112c, 0x15001600, 0x18001700, + 0x2f821a00, 0xf4fff422, 0x22083551, 0x82e5fff8, 0xffec2259, 0x200182f2, 0x083a44e5, 0x2f821020, 0x1e001722, 0x0b204d82, 0x0e214382, 0x078d4aff, + 0xfcfffa22, 0xe2240184, 0xeaffe9ff, 0xff228f82, 0x5b70c1ff, 0x00012108, 0x28058f41, 0x000f000b, 0xff140010, 0x06597283, 0xe6004c24, 0x6d19f8ff, + 0x3f84081f, 0x010d0024, 0x00830042, 0x18209183, 0x03219582, 0x85018300, 0x07156ec5, 0xa382f620, 0xa982f520, 0xf382f520, 0xf3fff522, 0x47822e83, + 0x07832320, 0x821c0021, 0x00182233, 0x20018213, 0x226b8211, 0x8407000d, 0x05154cf7, 0x19240583, 0x1b001a00, 0xcd460382, 0xfffd2209, 0x056755df, + 0xc54b8982, 0x82fb2005, 0x210383c9, 0x014efffc, 0x84e52005, 0x82df201f, 0x00fb220d, 0x488f8804, 0xa787054d, 0xf7224f83, 0x8b84e7ff, 0x9b88f420, + 0xa983f520, 0x1f7f3919, 0x0a712519, 0x59ffc922, 0x0c1a4184, 0x14830f95, 0x3c001422, 0x130b5b19, 0x84ecff21, 0xff9b265f, 0x02cd0163, 0x6a1b50e3, + 0xa984cd20, 0xf8fffd22, 0x2c06254f, 0xfff7fffb, 0xfff2fff1, 0xffdcffec, 0x190182e5, 0x240be100, 0x00060006, 0x2601820c, 0x00100010, 0x822a0015, + 0x84152003, 0x82f8203d, 0x2427833d, 0xffedffed, 0x200186eb, 0x204182ec, 0x224782f3, 0x482200fa, 0x3d83068b, 0x2005c741, 0x20118208, 0x2003820a, + 0x83038208, 0x07114211, 0xfafffa23, 0x05254dff, 0x4582ef20, 0xf0ffec26, 0xf3ffefff, 0xf9200182, 0x22067b4f, 0x1a0c000d, 0x200875a9, 0x203b843c, + 0x06194208, 0x0500062a, 0x63ff0a00, 0x32001100, 0x00209183, 0x22067345, 0x8300ffff, 0x0005245b, 0x820b0009, 0x000e2401, 0x8214000e, 0x001a2401, + 0x821e0018, 0x00252401, 0x822d0025, 0x00362401, 0x824a0070, 0x00242601, 0x00120019, 0x20658213, 0xe94b1b0b, 0x2483830c, 0xffedffec, 0x229d82e7, + 0x82fdfffd, 0x0013228d, 0x2001820d, 0x877d8207, 0x82fe20bb, 0xd1021917, 0xfff42209, 0x06455de8, 0xd2ffd328, 0xcaffc8ff, 0x0782d1ff, 0xd8ffd82e, + 0xddffdeff, 0xdbffe2ff, 0xe0ffe1ff, 0xe7224f82, 0xe382eeff, 0xb145f720, 0x82b78707, 0x000128c3, 0x0163ff9c, 0x44e302ce, 0x9c206e8b, 0x1720d382, + 0x0520fd82, 0x6f430382, 0x00082605, 0x003b0008, 0x2201822a, 0x841a001b, 0x259e82f7, 0xf9fffaff, 0x0182f3ff, 0xf0ffef24, 0xeb82ecff, 0xc782f020, + 0xf5fff522, 0xfb201782, 0x4d0ce379, 0x0720078b, 0x01424582, 0x42118305, 0x43840613, 0x3f82f220, 0x0382ec20, 0xeaffeb22, 0xed220582, 0x5182edff, + 0x1982ef20, 0x2205434e, 0x82150015, 0x00142279, 0x20018210, 0x837d820c, 0x23608243, 0xf7fff8ff, 0xf0222782, 0x0182e6ff, 0xf6ffdb22, 0xf8200f82, + 0xfb200384, 0xff218183, 0x06cd42fc, 0x82fffc21, 0x63ff2145, 0x02853082, 0x06820120, 0x24053b46, 0x00090001, 0x30018211, 0x00190019, 0x001f0020, + 0x001d0026, 0x00220023, 0x24018228, 0x002f002f, 0x22f38236, 0x822e002f, 0x0020221b, 0x22018216, 0x180a000d, 0x2108df5f, 0xdd190003, 0xf92e0b85, + 0xf4fff3ff, 0x0c00edff, 0x04000300, 0x4f820500, 0x14001322, 0x0d22a982, 0x0d820600, 0x09d77019, 0xff272382, 0xffe7ffee, 0x82b6ffdc, 0xff902601, + 0xffd3ffca, 0x260d82d2, 0xffe1ffdc, 0x82e8ffe2, 0x82ec20c7, 0xfff224ff, 0x82f5fff2, 0xfff72201, 0x570182fe, 0x47820945, 0x0482bb84, 0xff000023, + 0x208182ef, 0x0b3b190e, 0xe0002561, 0x0b000f00, 0x080b0b19, 0xe1820620, 0x44006721, 0xb32c0531, 0xfdff18ff, 0xfbfffaff, 0xf8fff7ff, 0xf520ff82, + 0x594fb782, 0xffec2205, 0x22e782eb, 0x82f0ffed, 0x7b031901, 0x05154209, 0x05000524, 0x01820900, 0x0d000d24, 0x01821000, 0x13001224, 0x03821400, + 0x11001126, 0xf6ff9aff, 0x27894d82, 0x2005af51, 0x2081820c, 0x1981820e, 0x200d8d0f, 0x192982fb, 0x220f0b3b, 0x820800b7, 0x840a2059, 0x210583af, + 0x0083000a, 0x50076f45, 0x7f83090b, 0x2b820820, 0x04000322, 0xff212083, 0x204b82fc, 0x20c582f8, 0x20c582f5, 0x50b382f1, 0xef20091d, 0x2006e74a, + 0x199982f4, 0x8309c54c, 0x82522037, 0x820c2069, 0x820d2095, 0x820c20c7, 0x83538371, 0x0b3b19db, 0x224f830b, 0x82f3fff3, 0xed6d1955, 0x0004220d, + 0x21268205, 0x8b180003, 0x312109cb, 0x1f5f1800, 0x18012046, 0x253ed18b, 0x16005cff, 0x01822100, 0x7d182020, 0x0c2808d9, 0x10000f00, 0x20001100, + 0x16241784, 0xc4ff88ff, 0x22082741, 0x82dfffe0, 0x00ea2601, 0xfff00078, 0x210b84ea, 0x3341ffe0, 0xd98b1805, 0xf001293e, 0x42002c00, 0x40004100, + 0x0a87aa18, 0xe1ffe234, 0xc0ffdeff, 0xbeffbfff, 0x0000d4ff, 0x180061fe, 0x01821f00, 0x25822320, 0x43004222, 0x00263182, 0xd4ff0000, 0x1f82bdff, + 0xddffc022, 0xe1202d82, 0x02281082, 0x81ff9400, 0xdb02d501, 0x6818c782, 0x94241b59, 0xf0005100, 0x00242f82, 0xa5ffe2ff, 0x00230783, 0x845b001e, + 0xffb0220f, 0x2007820f, 0x24038233, 0x00190000, 0x2213844b, 0x8381ffe7, 0x0c002207, 0x05af4800, 0x3d02bf22, 0xff240f8b, 0x00abfd2a, 0xff231386, + 0x88c3fd41, 0xa2d42087, 0x86502087, 0xffb02287, 0x20378210, 0x20878200, 0x2273845a, 0x82a6ffe2, 0x82aa2007, 0x19879103, 0x2207e114, 0x84ddfff4, + 0x2273852b, 0x82f4ff00, 0x28878da1, 0xffc40001, 0x02a50181, 0xab4218da, 0x50012927, 0x40001500, 0xe6ffefff, 0xe7200182, 0x4207cf42, 0x192208ff, + 0x01821a00, 0xe4ff1127, 0xf7ffc7ff, 0x252519ff, 0x41238d0c, 0x34220631, 0x01824f00, 0x29004c24, 0x01822500, 0x1c001c22, 0x29240784, 0x4e004c00, + 0x34201782, 0xe422bd84, 0x0182dbff, 0xb4ffd728, 0xb1ffb2ff, 0x5b82ccff, 0xb1220f87, 0x2182b1ff, 0x0021c3b0, 0x8dc383c4, 0x1100218f, 0xff23af8f, + 0x9ec8ffe3, 0x05f54123, 0xcb83b389, 0xc3b43420, 0x5f00022a, 0x040281ff, 0x2300da02, 0x214b815b, 0xe983ec00, 0xfff6ff23, 0x240182f4, 0xffe7fff3, + 0x240182e6, 0x001100ef, 0x2401821a, 0x000d0019, 0x2001820c, 0x41e9830a, 0xf3200ad1, 0xf7202b82, 0x0e9b2519, 0xf541d420, 0x1c194228, 0x4106f541, + 0x34250f31, 0x4e004f00, 0x09054200, 0x0000002e, 0xb1ffccff, 0xb4ffb2ff, 0xdbffd7ff, 0xe4200182, 0x210df541, 0x2282ccff, 0x42000021, 0x479c233d, + 0x77410020, 0x41092005, 0x5f245077, 0x40001500, 0x41106741, 0xd3820e87, 0x2390c720, 0x26073f41, 0xfff4fff2, 0x42c000f4, 0x0e220aa9, 0x01821900, + 0x11001a23, 0x232383ff, 0xffe7ffe7, 0xff212384, 0x224784f7, 0x820c0009, 0x43238901, 0xf341057d, 0x05a94207, 0x22332f41, 0x82b1ffcc, 0x08874101, + 0x00830020, 0x4323bf41, 0x01291db5, 0x6c00ceff, 0xa4019b02, 0x339a1800, 0x5f002322, 0xb81a0900, 0xca220ed3, 0x88839501, 0xfe68ff27, 0x00100039, + 0xd3b81a18, 0xffd3220e, 0x056163d2, 0x001b0029, 0x002d002e, 0x8207006c, 0x000d243f, 0x820d0008, 0x8218202b, 0x223c830b, 0x833a0013, 0x200d8206, + 0x20158218, 0x821d840e, 0x9bb51a23, 0x23afab15, 0x1c000902, 0x2d207582, 0x60820582, 0xffe4ff23, 0x240182d3, 0xfff8ffe4, 0x200182f2, 0x22af88f7, + 0x826cfe36, 0x0000251e, 0xffc70197, 0x20059d66, 0x7b5f1af0, 0x79a81923, 0xbf401a0c, 0x82f3200d, 0xfff32263, 0x415582f2, 0x7618095f, 0x77413ad1, + 0x01a62212, 0x20ab8e4a, 0x22eba408, 0x41b5fe5b, 0x3b1a37a7, 0x0e2038d7, 0x2006eb41, 0x73b71a08, 0x00022a1a, 0x0181ff96, 0x00da02d3, 0x48754921, + 0xd6ffd324, 0x0182dbff, 0xe2ffe324, 0x0182e7ff, 0xeeffed22, 0x1905f941, 0x200ec358, 0x06ed4109, 0x13001322, 0x2808395d, 0x00240024, 0xff00002a, + 0x203382ce, 0x220382ef, 0x82f0fff0, 0xfff1223b, 0x06c351f4, 0x5519f920, 0x04220c9f, 0x01820700, 0x260b194b, 0x00100010, 0x82110012, 0x02002203, + 0x266f82da, 0xfff1fff1, 0x84eaffeb, 0xffe22c87, 0xffe1ffe3, 0xffdeffe0, 0x84ddffdf, 0x82dc2001, 0x82dc2005, 0x82dd200f, 0x82e02015, 0x84e3201d, + 0x82ea2027, 0x82f12031, 0x01f72a77, 0x0037ff1e, 0x000a0005, 0x2255820b, 0x82140010, 0x00182a01, 0x001b0018, 0x001c001a, 0x2201841d, 0x841e001e, + 0x821d2007, 0x821a2011, 0x201f8317, 0x83278215, 0x23378387, 0x001bff04, 0x27526341, 0x2a009600, 0x25002400, 0x1e227d82, 0xa74f1900, 0x000e2206, + 0x21ab820d, 0x514b0009, 0xff002e05, 0xfffcfffb, 0xfff6fff7, 0xfff1fff2, 0x240182ed, 0xffe8ffe8, 0x2c0182e2, 0xffdcffdb, 0x000000d7, 0x00110032, + 0x83038212, 0x000f21ab, 0x0c203d83, 0x080dd219, 0x0d4c0420, 0x05c56508, 0x320b5d4c, 0xfff0fff0, 0xffeeffef, 0xff0000ef, 0x00090081, 0x5e0f0010, + 0x1d2808fd, 0x1f001d00, 0x22002000, 0x23210182, 0x20018300, 0x20058424, 0x20058222, 0x20178220, 0x83b1821d, 0x821620af, 0x820f2031, 0xfe092437, + 0x82c900e2, 0x82f520a7, 0x245783a7, 0xffecffec, 0x26a782e7, 0xffe5ffe6, 0x84e3ffe4, 0x20b38301, 0x200d84e3, 0x201582e4, 0x201d82e6, 0x202582e8, + 0x218582ec, 0x3783fff0, 0xe500fb2e, 0xc8000100, 0xec0168ff, 0x2100f402, 0x20247f58, 0x24e982b9, 0x0010000f, 0x2551820a, 0xffd4ffd5, 0x008300e6, + 0x69002322, 0xf1208784, 0xec250584, 0xe9ffebff, 0x221d83ff, 0x83e3ffd3, 0x202f821e, 0x28b78214, 0x002b0017, 0xff2d002c, 0x20438468, 0x2a05820e, + 0x00290018, 0x00190028, 0x827001b7, 0x426320e3, 0x0a2006d7, 0x08659d18, 0xd7ffd824, 0xc182d6ff, 0xd1fe6922, 0xb782138d, 0x68ff7d24, 0xb7a7a101, + 0x18af0021, 0x200aad4e, 0x2085822d, 0x2197831e, 0xa982f0ff, 0xd422ab87, 0x611ae2ff, 0x2e220853, 0x1f845d00, 0xc584e620, 0x9782e620, 0x10001022, + 0x0f26b782, 0x13001400, 0xb3821600, 0x29002a29, 0x97001c00, 0x8e002f01, 0xf6ff2113, 0x2606b343, 0xffa9ffd4, 0x1863fe76, 0x83082f56, 0x82f12017, + 0x09af4db7, 0x83590c82, 0x3f874d1e, 0x2d3e3f4d, 0x01000000, 0x35002c00, 0x26023c02, 0x1f422700, 0x21d38424, 0x2019a600, 0x1d220863, 0x45825700, + 0x0f880020, 0x5c001e22, 0xff230f83, 0x54a4ffe2, 0xe3220cdb, 0x0f8ca9ff, 0x3d4de120, 0x202f8308, 0x231b8335, 0x9d003400, 0xcc202384, 0x86068951, + 0x1400230f, 0x17833c00, 0x9c201f82, 0x64201f86, 0x0f8f0783, 0xffecff23, 0x8c1f85c4, 0x3be746d7, 0xd7886520, 0x83861520, 0x3f001522, 0x00205d82, + 0x3d209382, 0x0f870784, 0x2b000e22, 0xf2227b84, 0xe78cd5ff, 0xc3ffec22, 0x2f860f9c, 0x3f850020, 0x201c0741, 0x361741ff, 0x2d1c2741, 0xff280003, + 0x02410226, 0x000f00d7, 0x2b41001f, 0x4102253a, 0xbdff0000, 0x79260182, 0xbcff7bff, 0xf583bdff, 0x00430027, 0x00850044, 0x22078287, 0x822dfe43, + 0x00312411, 0x82630032, 0x82322001, 0x210e8207, 0x0182ceff, 0x9dff9d22, 0xcf260582, 0x0800f500, 0x01820400, 0x02831782, 0x82fcff21, 0xfff82101, + 0x197f661b, 0xec00fe26, 0x76007700, 0x8a2a2b84, 0x14ff89ff, 0x8bff13ff, 0x0f838aff, 0x75281582, 0xcb00ed00, 0x67006600, 0x992a1f84, 0x35ff9aff, + 0x9bff34ff, 0x0f839aff, 0x65221782, 0x201a7f00, 0x4b26324b, 0x1e025200, 0xff6c0902, 0x86002153, 0x2208ab6c, 0x820f0011, 0x000b2601, 0x00200016, + 0x8701821f, 0x000b2a0f, 0x00130012, 0xffebff0b, 0x220184e0, 0x82f1fff0, 0x7ef52001, 0x16260e01, 0xeefff5ff, 0x0582edff, 0x200d097e, 0x731182f4, + 0xea200b47, 0xee212784, 0x203f91ff, 0x205784f4, 0x226384f0, 0x82ebffe0, 0x2477835f, 0x00140052, 0x248d821e, 0x0010001d, 0x2001820e, 0xf745180b, + 0x000b2210, 0x201b8211, 0x2027840b, 0x202b821e, 0x1827850f, 0x200a6d40, 0x2415821f, 0x000a0014, 0x20298212, 0x213f820a, 0x0183ffe2, 0xf2fff022, + 0x87830182, 0x10205783, 0x3d832382, 0xf6ff1424, 0xc982efff, 0x7f78f620, 0xffe32208, 0x202f82e1, 0x200f86ec, 0x203b84f1, 0x324582e2, 0xfff0fff5, + 0x000000ef, 0x002c0002, 0x023c02e9, 0x18170020, 0x205c4776, 0x2da94264, 0x0008ff22, 0x0ded9019, 0x41001421, 0x0c220519, 0xfa190c00, 0x902c64e5, + 0x04000000, 0x07000300, 0x4d002600, 0x65430582, 0xfff9240f, 0x18b3ffda, 0x1909c749, 0x827fb5fa, 0x002c22a9, 0x08c7413f, 0x97466f20, 0x1e6d4729, + 0x87218f47, 0x41dc2021, 0xc12016e1, 0x220e056a, 0x82040003, 0xfe202229, 0x7de1418f, 0x41c00021, 0xe02114d5, 0x232b19ff, 0xae114217, 0x421fff21, + 0x4e270ac1, 0x04000600, 0x86000300, 0xa7071a00, 0xf3481816, 0xc600211e, 0x5e223e84, 0x07831a01, 0xfea2ff23, 0x320784e6, 0xffd0ffe2, 0x00e3ffcf, + 0x0031001d, 0x00b70030, 0x833b0014, 0x21002217, 0x05714800, 0x3c00142a, 0xd3ffe4ff, 0xe5ffd2ff, 0xd32a0784, 0x99000100, 0xd0014f00, 0x44184402, + 0x0025152b, 0x002300ed, 0x2443846c, 0xff3f0015, 0x825d82e3, 0x2007845f, 0x226782d0, 0x8238001c, 0x824f201b, 0x00002403, 0x840a0158, 0x001c2607, + 0x002e002d, 0x205f821c, 0x206982d2, 0x209784e4, 0x21679fa8, 0xb3843401, 0x1d003122, 0x2208eb73, 0x4895ffdc, 0x1d200879, 0x3122cd82, 0x4c184f00, + 0x188308b3, 0x6f855920, 0xfea7ff23, 0x202784f6, 0x20d582e5, 0x266782d2, 0x01680046, 0x51fa01f1, 0xaa2c247f, 0x32002000, 0x2f003100, 0x17001a00, + 0x11240182, 0x12000c00, 0x0c200182, 0xc9225184, 0x0f825aff, 0x0f831320, 0xffeeff23, 0x2a0182e9, 0xffd1ffe7, 0xffcfffce, 0x821300e0, 0x001f225f, + 0x20058268, 0x2aed822e, 0x0018002d, 0x00160015, 0x82f6ff10, 0xffef2629, 0x004500f5, 0x2043848a, 0x060346f5, 0xebffef28, 0xe8ffeaff, 0xa583d4ff, + 0x82e2ff21, 0xffe22225, 0x262182e2, 0x00780001, 0xa5230268, 0xbe0123af, 0x77841400, 0x8f881320, 0x8d82d020, 0x0b208f83, 0x12269182, 0xb7ff0c00, + 0x55826dff, 0x85000021, 0x000b220f, 0x24dd8221, 0x00300031, 0x20df8419, 0x22cb8268, 0x821e001e, 0x82102005, 0x821520ad, 0x822c20b5, 0x822e20bd, + 0x05d34653, 0xb3840b20, 0x65ffcc22, 0x11203f82, 0x0a202582, 0xd220a982, 0xd420f382, 0xea22b982, 0xafb0ebff, 0x73184720, 0xf4200803, 0xee26b182, + 0xeffff4ff, 0x0182e9ff, 0x5382e620, 0xb982cf20, 0xedffdf24, 0x0182e1ff, 0x2000ed22, 0x8741a784, 0xf5ff2108, 0xee221982, 0x71826800, 0x34000024, + 0x57419b00, 0xeb9f1908, 0x821f200d, 0x82e32055, 0x82ef20a3, 0xffd22443, 0x82d3ffd2, 0xffeb24a7, 0x82f0ffea, 0xffef223f, 0x42af84ee, 0x46202b0f, + 0xa582af83, 0x5782ee20, 0xff82f420, 0x17001726, 0x2f001900, 0x21209b84, 0x08078a1a, 0xb982e020, 0xc182ce20, 0xc982e620, 0x2982ea20, 0xff21ab84, + 0x856d82f5, 0x820b20af, 0x00112339, 0xab8e000b, 0x00110027, 0x001d001e, 0x41ab8f12, 0xbb20086b, 0x2a26af84, 0x3e02b700, 0x5a18db01, 0x01441f03, + 0x00372206, 0x203582a6, 0xf14f1800, 0xffc92114, 0x44075159, 0xcf821415, 0x4d18c520, 0x00201715, 0x20112944, 0x0ac34300, 0x1ec77518, 0x2011cd43, + 0x193d4400, 0xebff0024, 0xbf82c1ff, 0x43003021, 0x34220fe1, 0x51449c00, 0xffcc2218, 0x0af54364, 0x6a180020, 0x1f200a23, 0x36175018, 0xf3823420, + 0x0d31b518, 0xe6ffec22, 0xe3240182, 0xc8ffcaff, 0xaf180182, 0x00211ebf, 0x208f8325, 0x5fad1800, 0x00db221d, 0xe3af1813, 0x0025263c, 0xff43016b, + 0x03ad18f2, 0x840b411c, 0x20080d51, 0x87ae18d7, 0xff002116, 0x25410b41, 0x0012000e, 0xae180013, 0x7120192b, 0x0cc76918, 0x41781742, 0x9922100b, + 0x13823201, 0x18ffec21, 0x410977af, 0xfa82510b, 0x410d2742, 0xff2d830b, 0x000f0040, 0x00140013, 0x00290016, 0x2001822a, 0x102f431c, 0x17426720, + 0x18fc2040, 0x201f33b0, 0x20008300, 0xe76d180c, 0x820b2008, 0x001b3091, 0x002f0027, 0x003f0037, 0x00530047, 0x1a67005f, 0x21737d08, 0xb9820300, + 0x9c832b20, 0x000b0023, 0x23078320, 0xb5ffe7ff, 0xb1240782, 0x43001700, 0xea220f84, 0x0782bcff, 0x1a00a721, 0x20096571, 0x200f82bf, 0x823787d1, + 0x82b3202f, 0x8200200f, 0x0022243f, 0x88d7fd00, 0xfff22617, 0x020000d5, 0xa20f8d29, 0x6019201f, 0xf6220607, 0x1d52dfff, 0xfc012509, 0x4c001a00, + 0x260c2d52, 0x00defff5, 0x9db5fe00, 0xba0121a7, 0x9b823383, 0x07841e20, 0x28000e22, 0xe8224384, 0x0f8ce2ff, 0xd8fff222, 0xaf200f8e, 0x18220f84, + 0x2f844700, 0xff231f86, 0x5246fff6, 0xff200bc1, 0x21068568, 0xe1521500, 0x200f8205, 0x221f8426, 0x843d0014, 0x06c95237, 0x0f890020, 0x678b1a20, + 0x1f209782, 0xe8222784, 0x0783b8ff, 0x00180023, 0x220f8448, 0x84e0fff6, 0xfff32207, 0x90978cd7, 0x03002f0f, 0x44ff6000, 0x1a02ef01, 0x63002300, + 0xf74d7900, 0x4e002072, 0x78200841, 0x1a33521b, 0xf9fff822, 0x43760184, 0x0b8d6405, 0x0a000622, 0x0d283782, 0x10000c00, 0x0d000f00, 0x22220182, + 0x01861800, 0x1561fc82, 0xfff42206, 0x830182f5, 0xfffd2405, 0x86fcfffd, 0x77fb2001, 0xff20053f, 0x83073f41, 0x05276f2f, 0x85fffc21, 0x052f7469, + 0xfaffea22, 0xf5200f82, 0xf0242782, 0xf8fff0ff, 0x2e0ac176, 0x000e000e, 0x001b001c, 0x00250026, 0x82190030, 0xff192277, 0x2073849a, 0x200582f3, + 0x06197bf3, 0x03000026, 0x06000400, 0x0a200182, 0x0f20ad82, 0x07220b82, 0x13820800, 0x9f010022, 0xb3830f82, 0xbd821020, 0x2f75c383, 0x82052005, + 0x05556f88, 0xad82fc20, 0xf622b185, 0x5182f4ff, 0x33197f83, 0x9165099f, 0xbcfd2108, 0x0e245b86, 0x3b001e00, 0xf920a182, 0x8306f76b, 0xfffc24c5, + 0x6d0000fe, 0x088208d5, 0x01930023, 0x22618427, 0x82c4ffec, 0x41e383cb, 0x0583055d, 0xf624dd83, 0xecfff6ff, 0xfb20f182, 0xea220782, 0x0b82edff, + 0xf1fff124, 0xfb82efff, 0xdbffee2e, 0xe2ffe1ff, 0xe9ffeaff, 0xf5fff5ff, 0xc7824583, 0x4b000422, 0x06200582, 0x2506ff5a, 0x000f0010, 0xcd830016, + 0xdd820b20, 0x0c000922, 0x0d200182, 0x062ff384, 0xbdff0400, 0x2c000200, 0x3c023f00, 0x1a007201, 0x20cd0f05, 0x056719c9, 0x090b1a0e, 0x1fff227e, + 0x22008300, 0x836b0024, 0xdcff2b06, 0xe7000100, 0xbb018401, 0x2119db02, 0x39190f53, 0x012117ef, 0x23398384, 0xd0004500, 0x10220784, 0x49843200, + 0x0582aa20, 0xad000122, 0x81204b82, 0x01214b91, 0xef391925, 0x224b8615, 0x84010156, 0xffef2243, 0x200784cf, 0xef3919ba, 0xd8002109, 0x39199792, + 0x442123ef, 0x864b8500, 0x81ff2397, 0x4b928101, 0x1def3919, 0xbb219787, 0x54e385ff, 0x6d2a05db, 0xfc01eeff, 0x5700cb02, 0x19457b00, 0x0100227c, + 0x07db451f, 0x17440020, 0x69fd2005, 0xf82406e1, 0xf4fff9ff, 0xf1210182, 0x05a344ff, 0xf2fff426, 0xf6fff7ff, 0xf9201582, 0x08a97618, 0x6b5b0820, + 0x15002705, 0x1a001600, 0x05821400, 0x17001522, 0x294e0582, 0x82002005, 0xffd32a51, 0xffd0ffcf, 0xffd2ffcd, 0x200182da, 0xe3b21be4, 0x6a05200a, + 0xd3430615, 0x82172005, 0x0006260d, 0x000c000a, 0x22018208, 0x1a060005, 0x200c7b1c, 0x834a8201, 0x23068203, 0x0b006300, 0x0cdf9618, 0xb219f520, + 0xf72008b3, 0xf9209b84, 0xfb240582, 0xfcfffaff, 0x0cbb391a, 0x35820620, 0x09452e19, 0x67820d20, 0x4c83bc20, 0x00130023, 0xfb541836, 0x6a0c2008, + 0x0c200845, 0x0e201f82, 0x0620cf82, 0x0b226982, 0xec190d00, 0x0b200889, 0x0d201782, 0x22089b7e, 0x1a07000d, 0x200c8135, 0x2a7182f7, 0x00effff5, + 0x003b001e, 0x820e001a, 0x21628237, 0x1582f4ff, 0xe9ffe92c, 0xe3ffe2ff, 0xedffdbff, 0x0182eeff, 0xf1fff022, 0xec200784, 0x20080b45, 0xc35f18f5, + 0xfffa2108, 0xf920bd85, 0xcb83c382, 0x1982f620, 0x2782f420, 0xcf451e20, 0x05cb451e, 0x651bfd20, 0x022c2097, 0x82ff8b00, 0x46032c02, 0x55000900, + 0x27577b42, 0x17008b00, 0x26002700, 0x00260582, 0xe1ff0000, 0x0682a4ff, 0x1f000022, 0x82054f5c, 0x93da190b, 0x4108200d, 0x0b22069d, 0x09841700, + 0xeb820a20, 0x92180920, 0x05250843, 0x03000500, 0x21318300, 0x00850002, 0x45001726, 0xd8ffe8ff, 0xe8220182, 0x0784e7ff, 0x5b82e720, 0x1c853d20, + 0x82fcff21, 0x82f82001, 0x41fa2003, 0xf8260641, 0xf6fff7ff, 0x0582dfff, 0xeffff722, 0xee272f82, 0xf3ffedff, 0x82ffeeff, 0x27318317, 0x0e002501, + 0x18001700, 0x9c220582, 0x11833a01, 0xfc77ff23, 0x290783c5, 0x97003200, 0x0f001200, 0x01421000, 0x00082108, 0x05839785, 0xa1840e20, 0x83000921, + 0x22b18313, 0x820c000b, 0x840d2043, 0x0011262f, 0x00130011, 0x05214535, 0x001b0023, 0x2401822c, 0xffe5ff1b, 0x200182d4, 0x226384e5, 0x8299ffdd, + 0xffea220f, 0x209382eb, 0x228b82fa, 0x82f9fff8, 0x82f92005, 0x82fa2005, 0xfffb2213, 0x20b382fb, 0x201b82f2, 0x280382f0, 0xffe2ffe8, 0xffdbffe1, + 0x2a3982bd, 0xff850002, 0x03f30182, 0x5b0b0046, 0x01213be1, 0x2285849a, 0x8470ffcf, 0x072f4a07, 0x29014526, 0xc0ffeaff, 0x03821383, 0x20054049, + 0x05037402, 0x24062d6d, 0xffe8fff3, 0x200182e7, 0x8b5718f0, 0xf55e1807, 0xfffe2608, 0xfffcfffd, 0xd15418fe, 0x0011290e, 0x003c001e, 0x007a0100, + 0x2106e545, 0x23486300, 0xfe8d2406, 0x1a0000a7, 0x200a6537, 0xf9d718f2, 0x00e6240c, 0x821a0013, 0x001d2201, 0x22e78235, 0x82250037, 0xff00248f, + 0x6ba6fe8d, 0x2626080b, 0x3d003e00, 0x5d182600, 0xca22083d, 0x0182c9ff, 0x1f84dc20, 0x0300732e, 0x82ff3100, 0x46033802, 0x47003100, 0x246a5b73, + 0x002d00dd, 0x05f74217, 0xed20b184, 0xd9209f82, 0x00260983, 0xfffdff00, 0xd343fffc, 0xfff32a07, 0xffdfffe7, 0xffd9ffe0, 0x220582da, 0x63e6ffe0, + 0x94190afb, 0xda200903, 0xec203d82, 0x05823d85, 0x57821620, 0x71002c25, 0x44007e00, 0x5582087b, 0x72ffd122, 0x02831b82, 0x06000622, 0x0d261982, + 0x11001200, 0x01821500, 0x12001122, 0xee223f82, 0x1c83caff, 0xffebff25, 0x83f4fff5, 0x21258209, 0xe3440006, 0x000e2205, 0x22018210, 0x820e000e, + 0x840a2037, 0x82208217, 0xfff62627, 0xff0000ea, 0x26738482, 0x002a0016, 0x8814018a, 0x003d25d7, 0x0016007a, 0x0949f219, 0x1b203b83, 0x0d204f82, + 0x00222d82, 0xc782f3ff, 0x0582e520, 0x7ffff221, 0xec200563, 0xea288182, 0x86ffc3ff, 0xe9ff0000, 0xd3280182, 0xecfe76ff, 0xeaffd6ff, 0x00236183, + 0x82580300, 0x82eb2027, 0x85e62023, 0x00002723, 0x89002e00, 0x5f841a00, 0x0f000f23, 0x4f8a1800, 0xfdf82209, 0x261d8227, 0x00310000, 0x820a0092, + 0x821020e1, 0x84102085, 0x460c20b9, 0xf0361613, 0xf0ffe8ff, 0xf6ffefff, 0x0100bfff, 0x19ffd8ff, 0x83036802, 0xf5441500, 0x066b4d17, 0x3c001424, + 0x65822600, 0x37003226, 0x6a006600, 0x46240182, 0x96ffbaff, 0x9a300182, 0xceffc9ff, 0xdaffcfff, 0x8303e5ff, 0xb1fce5fe, 0x24228f84, 0x01823000, + 0x63003622, 0x67262d82, 0x46004500, 0x01826900, 0x36006522, 0x31204382, 0x6e824982, 0xfec8ff23, 0x207b82e3, 0x099918b8, 0x68022133, 0xcb24b982, + 0xc5ffcbff, 0xd8227782, 0x0182d9ff, 0xbdffb724, 0x8782beff, 0xdb82f520, 0xf6ffee24, 0x81882500, 0x82006721, 0xdbff2381, 0x1d82d0ff, 0x9cffcb24, + 0x018299ff, 0x0a00bc2c, 0x11001200, 0x29000b00, 0x01823500, 0x27003a22, 0x28200182, 0x49260382, 0x43004200, 0x17844801, 0x3c003622, 0x2921ab82, + 0x28178300, 0x0044004a, 0xff310043, 0x063d41f6, 0x4d82da20, 0xcaffcf2a, 0x97ff9aff, 0xbaff98ff, 0xd0205f84, 0x9d200f82, 0x99221182, 0x2782bcff, + 0x8982ef20, 0x4782f620, 0x5f843420, 0x45842620, 0x48002722, 0x42215f82, 0x25ff8200, 0x19ff0000, 0x7b419002, 0x4125821b, 0x47220d73, 0x4b821a00, + 0xff211682, 0x20f984ec, 0x208382ce, 0x24cd82c9, 0x0196ff96, 0x20818848, 0x82e1869e, 0x9d3a1927, 0x87ff2007, 0x829b20ad, 0x009729ad, 0xfe000001, + 0x03a102e3, 0x20357b41, 0x104b41a1, 0x67004422, 0x63240182, 0x30003600, 0x25200182, 0xee22fb82, 0x0582eeff, 0x41ffd821, 0x734114a3, 0x2a398215, + 0x0012000b, 0x0019ff11, 0x82310024, 0x0035220d, 0x20558263, 0x123d4266, 0x2205e942, 0x82d7ff0a, 0xffca225f, 0x2cdd82c4, 0xffd8ffd7, 0xffb6ffd9, + 0xffbdffbc, 0x201782cf, 0x201982cc, 0x081b42c6, 0xbeffb822, 0xcf210182, 0x23378300, 0x00000011, 0x2a063b49, 0xd074607a, 0xf53c0f5f, 0x82040b00, + 0x00002414, 0x884063d8, 0x23fe2707, 0xa602e3fe, 0x1082b803, 0x02000722, 0x00203184, 0x032d0583, 0x00b8feb6, 0xfe68028f, 0x02c2ff23, 0x821786a6, + 0x23028524, 0x1f020d06, 0x05830985, 0x00680227, 0x00680200, 0x200382ed, 0x200382a9, 0x20038201, 0x2003825b, 0x24038213, 0x0168021d, 0x2007820a, + 0x200382a8, 0x200382cd, 0x2003822e, 0x200b8629, 0x20338653, 0x20078241, 0x20038243, 0x20038281, 0x2003824c, 0x2003824b, 0x20038228, 0x20178648, + 0x20078246, 0x20038242, 0x2003823f, 0x200382ea, 0x204386cc, 0x2007822d, 0x2403822c, 0xff680251, 0x200782fb, 0x20038212, 0x8303824f, 0x8245202f, + 0x825e2007, 0x82752003, 0x82332003, 0x200f8303, 0x20078264, 0x200b863d, 0x2007826c, 0x202b8626, 0x2007823a, 0x83038256, 0x83738307, 0x8218203f, + 0x853c200f, 0x020021bf, 0x09200782, 0x37205f86, 0x94200782, 0x3e200382, 0x9a200382, 0xff214f85, 0x200782f7, 0x200382a7, 0x20038244, 0x20038260, + 0x20178552, 0x83238300, 0x20d383b7, 0x20138261, 0x2003829e, 0x20038276, 0x20038271, 0x83c38688, 0x209b8317, 0x830f825f, 0x82812007, 0x826a2007, + 0x82802003, 0x82542003, 0x41322003, 0xab87065b, 0x0f826520, 0x68025c24, 0x07820601, 0x27416620, 0x82002006, 0x82e82007, 0x86692003, 0x201783cf, + 0x06774112, 0x13826320, 0x4386a020, 0x2f868720, 0x07822c20, 0x1386b220, 0x07829f20, 0x03829620, 0xa1201383, 0xa3200782, 0xee200382, 0x53200382, + 0x35200382, 0xe3200382, 0xc6200382, 0xac200382, 0x7a200382, 0x74200382, 0x0d200382, 0xef83038a, 0x00206b82, 0x97830393, 0x2b824620, 0x038e6220, + 0x0f826420, 0x0420038b, 0x3a20b786, 0x8b068341, 0x824b2007, 0x201f8313, 0x8b07824a, 0x836f8303, 0x825e2043, 0x96442017, 0x41142003, 0x3e20068b, + 0x8706af41, 0x826d2007, 0x8a86200f, 0x82452003, 0x0787410b, 0x038b0b83, 0x1b822c20, 0x1f861820, 0x03872383, 0x13823420, 0x03825f20, 0x8b830783, + 0x078f8383, 0x7f864620, 0x67830797, 0xdf862e20, 0x23413d20, 0x20a38306, 0x97af8662, 0x43332007, 0x07970627, 0xa7835783, 0x27820120, 0x6b412320, + 0x20ef8306, 0x97f38664, 0x82442007, 0x8258201f, 0x82362003, 0x42772003, 0x7120068f, 0x5d200782, 0x6c200382, 0x50200382, 0x5a200796, 0x42067f43, + 0x7b8307a3, 0x33414620, 0x20078706, 0x06bf4100, 0x3a201b83, 0x078f5b86, 0x17822420, 0xf7430720, 0x86972006, 0x8a722007, 0x204b830f, 0x062b426a, + 0x18200793, 0x8f062744, 0x864a2007, 0x8307a78b, 0x200383ab, 0x0adf4112, 0x0b823720, 0x03826520, 0x7120078f, 0x20064743, 0x20078203, 0x20038210, + 0x06cf4102, 0x77441320, 0x864c2006, 0x8793830f, 0x209f87bf, 0x831b8294, 0x02982403, 0x82010168, 0x82ab200b, 0x82d22003, 0x828f2003, 0x00ac2403, + 0x8223fe00, 0x82852003, 0x82272003, 0x82642003, 0x21278203, 0x1b82ee00, 0x68027924, 0x0382e2ff, 0xff212782, 0x2007826c, 0x20038290, 0x200382a7, + 0x20038216, 0x211f85a1, 0xc3431200, 0x841f8206, 0x8662200b, 0x454520bb, 0x64200697, 0x83068341, 0x452b2027, 0x93410a33, 0x44562007, 0xab8306ff, + 0x0b821120, 0x03453b20, 0x201f8306, 0x060b4125, 0x23201783, 0x55200b82, 0x20065f41, 0x2007829b, 0x0673421a, 0x2120f783, 0x1f836386, 0x63434d20, + 0x2027830a, 0x200f825d, 0x83138622, 0x86502053, 0x8228202b, 0x865a2007, 0x837383bb, 0x20538317, 0x06a34426, 0x5f864220, 0xcf836b87, 0x47837387, + 0x6b445120, 0xe9ff2109, 0x2006af42, 0x83df8641, 0x200383f3, 0x06b34136, 0x68021624, 0x7786eeff, 0x73434620, 0x204f8306, 0x207f8612, 0x203f8653, + 0x20538610, 0x832b8a07, 0x832b832f, 0x422b2013, 0x62200ecf, 0x18206f86, 0x21205386, 0x20063b41, 0x20278632, 0x06074739, 0x07821a20, 0x2f831b83, + 0x9b455520, 0x44172006, 0x3e2006cb, 0x78200782, 0x20066346, 0x20478634, 0x0a6b411e, 0x4b466120, 0x82192006, 0x461f2007, 0x8f8306eb, 0x97445e20, + 0x46522006, 0x6b830647, 0x26203f83, 0x20053746, 0x83d38300, 0x8313835b, 0x2007834f, 0x06934671, 0x07823b20, 0x2b455920, 0x2033830a, 0x060b419a, + 0x07826a20, 0x03867220, 0x07827720, 0x1f460820, 0x20bf8306, 0x06c74176, 0x87863920, 0x07821020, 0x3a209783, 0x200a6b47, 0x200b829f, 0x064b442f, + 0x47865720, 0x07820720, 0xb7838383, 0x2b8a5520, 0x5b20cf83, 0x5c20bf86, 0x83064b41, 0x861820b7, 0x41122013, 0x0787063f, 0x0f820920, 0x9f443020, + 0x44612006, 0x5b8b06ef, 0x5b866c20, 0x07826620, 0x03824120, 0xd7465720, 0x203f8306, 0x06d74748, 0x00200783, 0x14200b82, 0x830a8745, 0x464720bf, + 0x07830693, 0x0d20af8f, 0x49201b82, 0xf3449f86, 0x0fd7440b, 0x59200f87, 0x41064f42, 0x078f077f, 0xb3433f20, 0x8292200a, 0x4429200b, 0x1f41067f, + 0x20478307, 0x06bb4242, 0x3b20ab83, 0x20061349, 0x2007822b, 0x200b861b, 0x06b74330, 0x25204b83, 0x20062b43, 0x06fb415d, 0x27862e20, 0x07824a20, + 0x8f412420, 0x83378306, 0x2003833f, 0x831f8620, 0x83238343, 0x41172007, 0x3120065b, 0x2006bf45, 0x83938610, 0x202f831f, 0x2063864e, 0x06274112, + 0xf0205783, 0x2006a749, 0x065742bd, 0x5742bc20, 0x455e2006, 0x60200613, 0x9b830782, 0x97865c20, 0x0f423320, 0x425b2006, 0xa7830653, 0xe7495e20, + 0x41342006, 0x0f8306bb, 0x53200383, 0x20066b42, 0x0617464d, 0x07826d20, 0x2b490c20, 0x201f8306, 0x200b8279, 0x830f8631, 0x8313834f, 0x83478307, + 0x20b7830b, 0x20c3869b, 0x835b8628, 0x0238243f, 0x49000168, 0x5c200617, 0x20064b42, 0x06334550, 0x0f861c20, 0xd74a4f20, 0x8a172006, 0x2023830f, + 0x870f8649, 0x87138327, 0x832b830b, 0x2007830b, 0x83278242, 0x8747830b, 0x073b4407, 0x43865120, 0x07865920, 0x83075f44, 0x2003834b, 0x2017824c, + 0x203f8639, 0x064f4135, 0x2b863220, 0x07829120, 0x1742cb20, 0x8bc7830a, 0x07474803, 0x200bcf46, 0x8f2f9a34, 0x0717413f, 0x3382b220, 0x03824720, + 0x3b8a9b20, 0x0b868e20, 0x0782e720, 0xca200383, 0x69200786, 0x87068f4a, 0x83df8307, 0x4aa02003, 0xf520068f, 0x80200782, 0x2006f344, 0x208b8ee3, + 0x200f82d6, 0x06cf428b, 0x2f830b8b, 0x874aff20, 0x857a2006, 0xdeff2133, 0x7b832786, 0x0b82ad20, 0x03861120, 0xa3465320, 0x20bb8306, 0x06f7489f, + 0xa5207b83, 0x0f830b82, 0x07829e20, 0x03829820, 0x0387bf83, 0x0f82ec20, 0x13930383, 0xd34b0520, 0x852f2006, 0x46002177, 0x83062749, 0x831b835f, + 0x200b8303, 0x20178216, 0x0653447b, 0x18200b83, 0x0f200b82, 0x17200382, 0x2006db42, 0x067f471b, 0x41202b83, 0x83064745, 0x48342023, 0x17830627, + 0x634b2520, 0x0b6f4b0e, 0x6b830b83, 0x0f8b138f, 0xd7862120, 0xcb834b83, 0x5c200f87, 0x87066f43, 0x83178307, 0x472c2003, 0x2787065b, 0x2387078b, + 0x0b87478b, 0x078b1b87, 0x638e3920, 0x5d206b83, 0x20201382, 0x29200382, 0x19200386, 0x8b06f746, 0x21438277, 0xb7860b01, 0x0f844f86, 0x2b86a420, + 0x07861620, 0x0b871b83, 0x8b8f138b, 0xcf87af8b, 0x43824e20, 0x338f038b, 0x0c20ff97, 0x83067342, 0x427a201f, 0x0b8b0a7f, 0x23201b83, 0x03831b82, + 0xa78b1783, 0x13836793, 0x07875783, 0x20073f45, 0x06db435f, 0x23455920, 0xfdff2305, 0x03836802, 0x46410021, 0x078f06bb, 0x0b4c7d20, 0x454c2006, + 0x5341060f, 0x46332007, 0x9620064b, 0xf5200782, 0x20066747, 0x2007861e, 0x06e7465d, 0x3b433f20, 0x09012105, 0x52200782, 0x6783038e, 0x83070f46, + 0x825e202f, 0x82f4201f, 0x830b8303, 0x82252063, 0x422b200b, 0x73870637, 0x3f9707af, 0x5f831783, 0x539b0383, 0x7f9a2320, 0x3b834383, 0x8b07db46, + 0x93538f07, 0x97138f23, 0x8fc3974b, 0x200f8363, 0x069f4c42, 0x2f201b8f, 0x03831782, 0x0f452820, 0x8f07ab06, 0x200f8b4b, 0x836f860e, 0x42342077, + 0x84200607, 0x23053341, 0x6802fcff, 0x00210383, 0x830f822d, 0x41378703, 0x678f1737, 0x830f1f41, 0x824920b3, 0x0787454b, 0x37820787, 0x4a000121, + 0x8c200653, 0x038a0782, 0x8d7b0121, 0x8600200f, 0x2117871b, 0x1f450601, 0x88078305, 0x8605200b, 0x21538213, 0xc382f6ff, 0x01210382, 0x2013820c, + 0x09e342e4, 0x17830f97, 0x2f821b88, 0x478b3f87, 0x00201fab, 0x038b4382, 0x0f404f8f, 0x4300208f, 0xe38706ff, 0x00239f83, 0x846802bc, 0x8307820f, + 0xafb38b0b, 0x83efa317, 0x0b6f4153, 0x02d5ff23, 0x41038868, 0x012106cb, 0x84938534, 0x82e4209f, 0x200f820b, 0x06af4100, 0x0020078b, 0xaa13a748, + 0x8f678313, 0x23022143, 0x9305df47, 0x8c2b831b, 0x82032017, 0x2003a32b, 0x8327826e, 0x202b8703, 0x830f82a2, 0x8f3b8f03, 0x870f8f27, 0x8f178f2f, + 0x20578f0f, 0x87a7a63a, 0x829c2037, 0x4103822f, 0x00200fcf, 0x07881786, 0x0f87678f, 0x6fa1a020, 0x00205b83, 0x17933f97, 0x874c3020, 0x4d572006, + 0x238306bf, 0x0b821b20, 0x274f1620, 0x82782006, 0x82b32007, 0x41b72003, 0xa220065b, 0x200a7f4a, 0x830b8267, 0x07af4303, 0x0f828c20, 0x03827d20, + 0xb34c2a20, 0x20078706, 0x05734717, 0x0f830020, 0x5f830b83, 0x03830b83, 0x3d207f83, 0x8306034a, 0x20038317, 0x062f4da8, 0x07823220, 0x13830383, + 0x934d3020, 0x861a200a, 0x8249209f, 0x8e2c2007, 0x8628206b, 0x863a201b, 0x4a0e2043, 0x13200617, 0x83063b4f, 0x419b202f, 0x00200587, 0x27831b83, + 0x0f829420, 0xc4200383, 0x03830782, 0xeb4f5f20, 0xceff2305, 0x03876802, 0x55960021, 0xc82006cf, 0x3783e386, 0x8307bb45, 0x474b2073, 0x2a200a33, + 0x99200b82, 0x46200386, 0x830a4741, 0x411b870b, 0x6020138b, 0xeb454386, 0x4b6d200f, 0x852006b7, 0x31200782, 0xd8209382, 0x87830382, 0x23089343, + 0x01000000, 0x0e200382, 0x08820584, 0x6020028a, 0x038a0b82, 0x82880121, 0x00e8272a, 0x00b00300, 0x03820600, 0x00c40a25, 0x820c0e00, 0x00442c03, + 0x001c0f00, 0x00081000, 0x82581100, 0x00e02403, 0x82101300, 0x00502303, 0x42821400, 0x00381425, 0x827c1600, 0x00f82703, 0x004c1900, 0x33821c00, + 0x0b821c20, 0x00fc1e30, 0x00c82100, 0x00582200, 0x00502500, 0x2b822800, 0x07822920, 0x00242b28, 0x00b42b00, 0x3c822c00, 0x00a42c2c, 0x00782e00, + 0x002c3200, 0x47823300, 0x3b823520, 0x00843624, 0x03823700, 0x0b823820, 0x009c3828, 0x008c3a00, 0x2b823b00, 0x0b823b20, 0x00883c25, 0x82683d00, + 0x243f8203, 0x0000a03e, 0x304f823f, 0x0000c840, 0x0000f041, 0x0000bc43, 0x00007045, 0x20688248, 0x20278248, 0x2037824a, 0x297b824b, 0x0000e44c, + 0x00005c4e, 0x03823c4f, 0x0000ec23, 0x28a38250, 0x0000e850, 0x00004851, 0x20578252, 0x240f8252, 0x0000c052, 0x244b8255, 0x0000b857, 0x24338259, + 0x0000985b, 0x2807825d, 0x0000445e, 0x0000d460, 0x202f8261, 0x200b8263, 0x2c138264, 0x00006065, 0x00001866, 0x0000f467, 0x201b8268, 0x20cf826a, + 0x2013826b, 0x245b826c, 0x0000e06d, 0x24a7826f, 0x00007c70, 0x20038271, 0x20638272, 0x259f8273, 0x00004075, 0x03820877, 0x79205f82, 0x79249b82, + 0x7b0000c0, 0x7d242b82, 0x7d000080, 0x7e300382, 0x800000a8, 0x820000fc, 0x85000074, 0x8600002c, 0x87241f82, 0x8b000020, 0x8c209b82, 0x90200382, + 0x92258f82, 0x940000f8, 0x82038234, 0x8294202f, 0x82992047, 0x78992c53, 0xa49b0000, 0x549c0000, 0x829d0000, 0x82a020a3, 0x82a0201b, 0x82a22097, + 0x82a32083, 0x10a42493, 0x82a50000, 0xb4a5289f, 0xbca70000, 0x82a80000, 0xd0aa2843, 0x64ad0000, 0x82b10000, 0x82b420cf, 0x82b52023, 0xf0b62c7b, + 0x6cb80000, 0x3cbb0000, 0x82bd0000, 0x82bf2003, 0x82c02023, 0x94c32413, 0x82c40000, 0x1cc52cf3, 0x14c60000, 0x90c70000, 0x82c80000, 0x82c9206b, + 0x82ca20ff, 0x8ccb245b, 0x82cd0000, 0x82cf20af, 0x82d12043, 0x82d3204b, 0x00d52417, 0x82d80000, 0x82da20f7, 0x82dc2073, 0x82e0202b, 0x84e23c67, + 0xc4e40000, 0x38e70000, 0x30ea0000, 0x50eb0000, 0xa0ec0000, 0xd8ef0000, 0x82f30000, 0x82f720c3, 0x82fa2037, 0x90ff3c1f, 0xc0030100, 0x40080100, + 0x640c0100, 0x440f0100, 0xec110100, 0x94140100, 0x82170100, 0x781a3c0b, 0xa01b0100, 0xc81c0100, 0xd41d0100, 0x8c1f0100, 0x6c220100, 0x08250100, + 0x82260100, 0x8228200f, 0x742a241b, 0x822d0100, 0xc42f2813, 0xf0300100, 0x82340100, 0x3524080f, 0x370100f8, 0x3801007c, 0x3b0100f4, 0x3d010004, + 0x3e010050, 0x410100ac, 0x420100a4, 0x460100d8, 0x4701003c, 0x4b380f82, 0x4d010060, 0x51010048, 0x53010054, 0x5501001c, 0x5601005c, 0x580100cc, + 0x5a245782, 0x5b010018, 0x5d200b82, 0x60287b82, 0x61010014, 0x62010098, 0x64209b82, 0x66204b82, 0x67255b82, 0x6901002c, 0x2303820c, 0x6c0100f8, + 0x6d202382, 0x6f200382, 0x71200b82, 0x73204382, 0x74200782, 0x77208b82, 0x79243782, 0x7b010010, 0x7d281382, 0x800100b0, 0x820100d0, 0x8520ef82, + 0x86243b82, 0x890100e0, 0x8a201b82, 0x8b24cb82, 0x8c010064, 0x8d200382, 0x8f20df82, 0x912c1782, 0x920100e4, 0x93010094, 0x94010080, 0x9520db82, + 0x97283782, 0x99010034, 0x9a010030, 0xd7820383, 0xc3829c20, 0x07829d20, 0x00449f24, 0x0b82a001, 0x6382a120, 0xdf82a220, 0xd782a320, 0x2b82a420, + 0x9b82a520, 0x4382a520, 0x3f82a620, 0x2782a620, 0xcb82a720, 0x0090a824, 0x2382a901, 0x0782aa20, 0x7782ac20, 0x1782ac20, 0x3b82ae20, 0x0028af30, + 0x0048b001, 0x0068b101, 0x00b8b201, 0xe782b301, 0x6782b520, 0x0060b624, 0xd782b701, 0x2782b820, 0x00d4ba28, 0x00dcbc01, 0x5382be01, 0xb782c020, + 0xcf82c120, 0x0050c52c, 0x0024c701, 0x0058c801, 0xd382ca01, 0x0038cb34, 0x0040cd01, 0x007cce01, 0x00bcd001, 0x001cd301, 0x6f82d501, 0x8f82d820, + 0x0782dc20, 0x8382e020, 0x3f82e420, 0x0014e824, 0xdb82e901, 0x7382eb20, 0x0018ec25, 0x824ced01, 0x00fc2303, 0x3b82ef01, 0x0084f228, 0x00a8f401, + 0xc782f601, 0x8b82f720, 0x0b82f920, 0xf0fa2808, 0x60fe0100, 0xd4000200, 0x2c030200, 0x88040200, 0x34070200, 0xf0080200, 0xe00a0200, 0xd00c0200, + 0x200e0200, 0x82100200, 0x82122023, 0x82132017, 0x8214200b, 0x15200807, 0x1602005c, 0x17020084, 0x180200a4, 0x190200c4, 0x1c02009c, 0x1e02000c, + 0x1f020008, 0x210200bc, 0x23280b82, 0x250200b0, 0x27020044, 0x29305782, 0x2c02008c, 0x2f020054, 0x31020038, 0x33020078, 0x34241b82, 0x360200d8, + 0x37201782, 0x37203382, 0x38204b82, 0x38205782, 0x3a203b82, 0x3b203b82, 0x3c256782, 0x3d0200c0, 0x82038248, 0x303e2913, 0x6c3f0200, 0x4c400200, + 0x2b820382, 0x00f84024, 0x93824202, 0x9f824320, 0x1f824420, 0x00a84528, 0x00944602, 0x5f824802, 0x00104b28, 0x00504d02, 0x2f824f02, 0x6b825020, + 0x00fc5124, 0x47825202, 0x00185328, 0x00a05302, 0x1b825402, 0x7b825420, 0x2f825720, 0x001c5824, 0x1f825802, 0x00c85924, 0x4b825a02, 0x00805b24, + 0x7f825c02, 0x00985d24, 0x63825d02, 0x13825e20, 0x03825f20, 0x7f826020, 0x3b826220, 0x13826420, 0x00706628, 0x00d46702, 0xf7826902, 0x00406b30, + 0x00a46e02, 0x00887102, 0x00e87302, 0x27827502, 0x43827620, 0xd7827920, 0xd7827c20, 0x13827e20, 0x00f07f24, 0x8b828202, 0x00648424, 0x3b828602, + 0x7f828720, 0x1b828920, 0x00f48924, 0x7b828a02, 0xd3828c20, 0x00908d2c, 0x00248f02, 0x00b49102, 0x03829202, 0x00049424, 0xc7829502, 0x00289724, + 0x8b829802, 0x005c9924, 0x2b829a02, 0x003c9d24, 0xc7829f02, 0x7382a020, 0x1382a320, 0x0f82a520, 0x9f82a720, 0xf782a920, 0x0b82ab20, 0x0058ae34, + 0x00c0af02, 0x009cb102, 0x0060b202, 0x00dcb302, 0x0b82b602, 0x5b82b720, 0x6382b820, 0xf382ba20, 0xf382bb20, 0x5382bc20, 0x0382bd20, 0x0f82bf20, + 0xd382c020, 0xa382c220, 0x6f82c420, 0x6382c420, 0x00e4c624, 0xaf82c702, 0x0078c824, 0xf382c902, 0x3b82cb20, 0xb782cb20, 0x1f82cd20, 0x3382cd20, + 0x6b82cf20, 0x0044d124, 0xbf82d102, 0xc782d320, 0xe382d320, 0x1b82d520, 0x9782d620, 0x2f82d620, 0x7382d720, 0x003cd829, 0x0014d902, 0x828cda02, + 0x00ec2303, 0x4f82dc02, 0x00b0de24, 0xcf82e002, 0x0782e020, 0x0000e228, 0x0088e202, 0x4b82e302, 0x5f82e420, 0x6b82e520, 0x0050e630, 0x00bce702, + 0x007ce902, 0x00d8ea02, 0x3f82ee02, 0x00ccf024, 0x4382f202, 0x0f82f220, 0x0064f424, 0x6382f602, 0x7782f720, 0x0f82f920, 0x3f82fa20, 0x4b82fb20, + 0x00b8fc28, 0x00e0fd02, 0x8782fe02, 0x0070ff24, 0x03830003, 0x0300d03b, 0x0300e401, 0x0300c003, 0x03002004, 0x0300f005, 0x03003408, 0x0300ac09, + 0x2407820a, 0x03005c0b, 0x2c1f820b, 0x0300940c, 0x0300a80d, 0x0300d40e, 0x301b820f, 0x03004011, 0x03005013, 0x03001015, 0x03002c17, 0x24178219, + 0x0300601b, 0x240f821c, 0x0300b01d, 0x202b821f, 0x24378220, 0x03009c22, 0x240f8223, 0x0300a025, 0x285b8226, 0x03001828, 0x03008829, 0x2417822a, + 0x0300e82c, 0x2483822d, 0x0300982e, 0x290b822f, 0x03003c31, 0x0300e032, 0x03824833, 0x34243f82, 0x34030044, 0x36240f82, 0x37030008, 0x39207f82, + 0x3b208b82, 0x3e2c7782, 0x4003000c, 0x410300c4, 0x420300cc, 0x43241f82, 0x44030090, 0x44281782, 0x450300dc, 0x47030078, 0x4920b782, 0x49240f82, + 0x4a0300c8, 0x4b24a382, 0x4c030030, 0x4d209782, 0x4e201382, 0x50206f82, 0x51200b82, 0x53209382, 0x54202b82, 0x54241f82, 0x560300d8, 0x59243b82, + 0x5a03001c, 0x5c206782, 0x5d241782, 0x5e030064, 0x60200382, 0x6120db82, 0x61207782, 0x63281782, 0x66030004, 0x680300b8, 0x6c200382, 0x6e20af82, + 0x71289782, 0x72030014, 0x74030000, 0x75286382, 0x770300b4, 0x7903004c, 0x7c209b82, 0x7e205782, 0x8120ff82, 0x84201382, 0x87240382, 0x8903008c, + 0x8a20d782, 0x8b206782, 0x8c200f82, 0x8e200f82, 0x8f243382, 0x920300d4, 0x93285782, 0x950300f8, 0x97030060, 0x99200b82, 0x9b200782, 0x9e240f82, + 0xa0030058, 0xa220df82, 0xa4302b82, 0xa6030088, 0xa90300fc, 0xab0300c0, 0xae0300bc, 0xb0247382, 0xb2030044, 0xb2202b82, 0xb3204382, 0xb5245b82, + 0xb7030090, 0xb920d782, 0xbb201f82, 0xbd206382, 0xbe243382, 0xc003009c, 0xc120d782, 0xc3200782, 0xc4244782, 0xc60300f0, 0xc8205382, 0xc9203b82, + 0xcb202782, 0xcc20c782, 0xcd20df82, 0xd0289782, 0xd20300d0, 0xd30300ac, 0xd4241382, 0xd5030034, 0xd9246b82, 0xda0300a4, 0xdc242f82, 0xdf0300a8, + 0xe1241f82, 0xe3030020, 0xe424b782, 0xe7030094, 0xe8306f82, 0xeb0300f4, 0xec030078, 0xef0300c8, 0xf0030024, 0xf4201382, 0xf520b782, 0xf7245b82, + 0xf803000c, 0xfb205b82, 0xfd345b82, 0x0004002c, 0x010400f4, 0x03040054, 0x060400e8, 0x0704005c, 0x0b240782, 0x0b040008, 0x0c201782, 0x0c251782, + 0x0e0400c8, 0x23038240, 0x100400b4, 0x112c1b82, 0x13040034, 0x1404007c, 0x15040090, 0x17292382, 0x18040010, 0x19040024, 0x82038274, 0xf01a2c1f, + 0x8c1d0400, 0x681f0400, 0x82200400, 0xa020303f, 0xe0220400, 0xb8250400, 0xa4260400, 0x82270400, 0xcc2a2c3b, 0xd42b0400, 0xc02e0400, 0x822f0400, + 0x5030295f, 0x58310400, 0x18340400, 0xf8330382, 0x9c370400, 0xe4390400, 0xfc3d0400, 0xc43f0400, 0x82400400, 0x82412037, 0x0c442803, 0x00450400, + 0x82460400, 0x3c472463, 0x82490400, 0x304b2413, 0x824c0400, 0x824e2003, 0x824f2027, 0x82502003, 0x4c512c03, 0x60530400, 0xec540400, 0x82560400, + 0x70592867, 0x205c0400, 0x825d0400, 0x8260204f, 0x826220c7, 0x82652063, 0x826620b7, 0x82682027, 0x826a207b, 0x826d20c7, 0x826e201f, 0x4470289b, + 0x5c720400, 0x82730400, 0x82752097, 0x8277209f, 0x6c792413, 0x827c0400, 0x827f20cf, 0xd8812ccf, 0x98840400, 0x40860400, 0x82890400, 0x948b280f, + 0x2c8e0400, 0x828f0400, 0x829220bb, 0x82952037, 0x8296204f, 0x82982003, 0x829b2023, 0x82a02043, 0x82a12067, 0xbca33093, 0xa0a50400, 0x80a70400, + 0xaca90400, 0x82ac0400, 0x78ae2407, 0x82b10400, 0x82b220cf, 0x82b420eb, 0x82b620af, 0x82b7200b, 0xa8b92473, 0x82bb0400, 0x82bd206f, 0x82bf2047, + 0x38c2243b, 0x82c40400, 0x82c720ef, 0x82c820a3, 0x82ca2077, 0x82cd2047, 0x64d0232b, 0x03ac0400, 0x2f829c20, 0x0400d424, 0x03820cd1, 0xd120e782, + 0xd125db82, 0xd20400b4, 0x20038214, 0x82038274, 0x82d3201b, 0x82d32063, 0xb8d324ef, 0x82d40400, 0xf0d42483, 0x82d50400, 0x82d620a7, 0x88d6246f, + 0x82d70400, 0x82d820a7, 0x82d8208f, 0x28d92483, 0x82da0400, 0xa4db2503, 0x54dc0400, 0xe2200385, 0xe920ef82, 0xe9205f82, 0xea244382, 0xeb04001c, + 0xeb204f82, 0xec25eb82, 0xed040030, 0x23038234, 0xee0400d8, 0xf0207782, 0xf324e782, 0xf3040048, 0xf4201b82, 0xf4248b82, 0xf50400ac, 0xf5241f82, + 0xfa0400bc, 0xfe291382, 0x01050018, 0x02050088, 0x2d03854c, 0x0500c803, 0x0500a004, 0x0500dc05, 0x03826007, 0x0500f02c, 0x0500f809, 0x05007c0b, + 0x0382040c, 0x03823c20, 0x05009c24, 0x0382380d, 0x0500ac24, 0x0382340e, 0x03826c20, 0x0500cc24, 0x0382680f, 0x11203782, 0x142c2b82, 0x160500b0, + 0x170500d0, 0x19050094, 0x1b202382, 0x1d241f82, 0x210500ec, 0x25280f82, 0x28050000, 0x29050080, 0x2b205782, 0x2e247b82, 0x2f050090, 0x31301f82, + 0x37050044, 0x3b0500b8, 0x3c050008, 0x3e0500e8, 0x412d2f82, 0x43050024, 0x460500b4, 0x4b050030, 0x23038274, 0x4e0500fc, 0x50201f82, 0x5124af82, + 0x53050058, 0x54245b82, 0x570500c4, 0x59283b82, 0x5d0500d8, 0x5f050020, 0x62201782, 0x65200f82, 0x68206382, 0x6a206b82, 0x6d200782, 0x7020ab82, + 0x74209382, 0x78205f82, 0x7b20a782, 0x7c25b382, 0x7d050078, 0x82038228, 0x827e2037, 0x827f2087, 0x828020d3, 0x828120f3, 0x8282200b, 0x10832c5f, + 0xd4830500, 0x98840500, 0x82850500, 0x82872007, 0xa089280f, 0x1c8c0500, 0x828d0500, 0x828e2063, 0x828f20cb, 0x0c9124e3, 0x82920500, 0x82932047, + 0x82942073, 0xf494241b, 0x82950500, 0xa49624cf, 0x82970500, 0xa899280b, 0x709b0500, 0x829d0500, 0x18a024a7, 0x82a40500, 0x82a52003, 0x82a7201f, + 0x82a82063, 0x82a82053, 0x82a9205b, 0x5caa2463, 0x82ab0500, 0xe4ab24bf, 0x82ad0500, 0x82af20af, 0x82b0201f, 0x82b12093, 0xdcb3299f, 0xe0b50500, + 0x54b60500, 0xc8240382, 0x3cb70500, 0xcf820382, 0x0024b824, 0x3b82b805, 0x8382b920, 0xe782b920, 0x8f82ba20, 0x4382bc20, 0x6f82bd20, 0x1782be20, + 0x00c0bf28, 0x00e8c005, 0x6782c205, 0x0782c220, 0x0f82c320, 0x2782c520, 0x5382c720, 0x1f82c920, 0x008cca24, 0x0f82cb05, 0x0074cc28, 0x0068cd05, + 0xaf82ce05, 0x0f82d020, 0x00bcd12c, 0x00f8d205, 0x0034d405, 0x4b82d505, 0x9b82d620, 0x0048d728, 0x00f0d805, 0x3782da05, 0x009cdb2c, 0x00a0dc05, + 0x00a4dd05, 0xdf82de05, 0x3382df20, 0x0058e034, 0x0044e105, 0x0030e205, 0x001ce305, 0x0008e405, 0x0f82e505, 0x7382e620, 0x0f82e820, 0xd382e920, + 0x6f82eb20, 0xbf82ec20, 0x0382ed20, 0x0382ee20, 0x0040f028, 0x00fcf205, 0xeb82f405, 0x00ecf524, 0x0382f605, 0x0382f720, 0x64f92508, 0xb4fa0500, + 0x04fc0500, 0xccfd0500, 0x90fe0500, 0x54ff0500, 0xa8000600, 0xb4010600, 0x7c030600, 0x10070600, 0x98330382, 0x64090600, 0xfc0c0600, 0xcc0d0600, + 0x600e0600, 0x820f0600, 0x82122007, 0xc0132d2b, 0x2c150600, 0xc8170600, 0x20190600, 0x58200382, 0xb8270382, 0x181a0600, 0x831b0600, 0x00502403, + 0x82001c06, 0x00382803, 0x00741d06, 0x82141f06, 0x009c2f03, 0x00b02006, 0x00882306, 0x00682506, 0x6f822706, 0x43822b20, 0x00782b28, 0x00e02b06, + 0x37822c06, 0x00e42c24, 0x23822d06, 0x57822f20, 0x6b823120, 0x008c3424, 0x17823806, 0x00a03c28, 0x001c3e06, 0x93823f06, 0x03824020, 0x17824220, + 0x003c4324, 0x47824406, 0x4f824620, 0x2b824820, 0x1f824a20, 0x00804b24, 0x6b824d06, 0x00ac4e28, 0x00245006, 0x5b825206, 0x00445424, 0xaf825606, + 0x00305924, 0x5f825c06, 0x2f825f20, 0xcb826220, 0x00706624, 0xa7826806, 0x00286924, 0x33826c06, 0x23826d20, 0xa3826e20, 0xcf827020, 0xb3827120, + 0x83827220, 0x53827420, 0x27827520, 0x00d4762c, 0x00b47806, 0x007c7906, 0x1b827a06, 0x006c7b28, 0x00847c06, 0x6f827d06, 0x1f828120, 0x47828320, + 0xcf828520, 0x00c48624, 0x0b828706, 0x00bc8824, 0x17828906, 0xdf828a20, 0x00e88a24, 0x9f828b06, 0xd7828c20, 0xb3828e20, 0x57828f20, 0x00549128, + 0x00f49206, 0x3f829406, 0x27829620, 0x07829820, 0x5b829a20, 0xaf829c20, 0x3f829f20, 0x5f82a220, 0x4382a320, 0x000ca524, 0xb382a706, 0x00dcaa25, + 0x8258ab06, 0x20878203, 0x24c782ad, 0x0600a0ae, 0x20c782b0, 0x203b82b2, 0x240f82b4, 0x0600f0b5, 0x246b82b7, 0x060068b8, 0x2c2782ba, 0x060048bc, + 0x0600acbd, 0x060010bf, 0x245382c1, 0x0600ecc3, 0x204382c5, 0x203f82c7, 0x203782c9, 0x208782cb, 0x24eb82cb, 0x0600fccb, 0x20c782cc, 0x206782cd, + 0x207382cd, 0x20a782cd, 0x202b82d0, 0x207b82d3, 0x20a382d7, 0x24eb82da, 0x060044dd, 0x280b82e1, 0x0600c0e4, 0x0600b8e7, 0x243f82ea, 0x060064eb, + 0x207382eb, 0x241b82ed, 0x0600d0ed, 0x218382ee, 0x078290ee, 0xef201382, 0xf0244f82, 0xf0060018, 0xf1206b82, 0xf3201382, 0xf424cf82, 0xf506008c, + 0xf624f782, 0xf70600b4, 0xf8247b82, 0xf9060000, 0xfa241382, 0xfa060008, 0xfc202f82, 0x24087382, 0x070054ff, 0x07009400, 0x0700d401, 0x07009002, + 0x07002c03, 0x07009c04, 0x0700f805, 0x0700d008, 0x07004c0b, 0x080f820c, 0x00ec0d21, 0x00080f07, 0x00241007, 0x00501207, 0x00ac1407, 0x00d81607, + 0x00041907, 0x00801a07, 0x82441b07, 0x253f8203, 0x0700dc1b, 0x0382281c, 0x03827420, 0x0700c023, 0x254f821e, 0x0700701f, 0x03825c20, 0x21206782, + 0x22282b82, 0x2207006c, 0x230700a4, 0x23202f82, 0x24252f82, 0x24070014, 0x82038260, 0xe4242553, 0x30250700, 0xe0230382, 0x82270700, 0x8228202b, + 0x68282c0b, 0x18290700, 0xb82a0700, 0x822b0700, 0xa02b210b, 0x7b820782, 0x00102c25, 0x82482c07, 0x28278203, 0x07000c2d, 0x0700982d, 0x289f822e, + 0x0700b02e, 0x0700642f, 0x24338230, 0x0700cc30, 0x201f8231, 0x20078231, 0x200f8232, 0x20178232, 0x241f8232, 0x0700fc32, 0x203b8233, 0x20938233, + 0x206b8233, 0x28a78234, 0x07007834, 0x0700c434, 0x20578235, 0x21af8235, 0x0b82a835, 0x0700f424, 0x03824036, 0x37247382, 0x37070000, 0x3724d782, + 0x380700e8, 0x38243b82, 0x390700bc, 0x39209f82, 0x3925c782, 0x3a0700f0, 0x82038250, 0x383b243f, 0x823b0700, 0x823c208b, 0x823c2093, 0x823c207b, + 0x823d205f, 0xb43d2543, 0x283e0700, 0x88200382, 0x43820382, 0x63823f20, 0x00d03f24, 0x43824007, 0x43824020, 0x00044124, 0x83824107, 0xdb824120, + 0x43824220, 0x00ac4225, 0x82204307, 0x24438203, 0x07000844, 0x24238244, 0x07001845, 0x208b8245, 0x20478246, 0x20c78246, 0x28278247, 0x0700d447, + 0x07007048, 0x206f8249, 0x20b38249, 0x244f824a, 0x0700b84a, 0x2473824b, 0x0700c84b, 0x2097824c, 0x202b824c, 0x20d7824d, 0x2027824d, 0x2073824d, + 0x2023824e, 0x204f824e, 0x2073824f, 0x2073824f, 0x20db8250, 0x20db8250, 0x20978250, 0x25238251, 0x0700e451, 0x03825852, 0x5324bb82, 0x53070054, + 0x54204782, 0x54204782, 0x55259b82, 0x56070060, 0x24038214, 0x5707009c, 0x82038224, 0x82582013, 0x82582013, 0x8259203b, 0x825a2013, 0x825a2013, + 0x825b20bb, 0x825c2013, 0x825d209f, 0x825e2077, 0x825e202f, 0x4c5f2483, 0x825f0700, 0x84602427, 0x82610700, 0xbc6125db, 0x34630700, 0x6c200382, + 0xa4200382, 0xdc230382, 0x82640700, 0x8264202b, 0x82642027, 0x82642023, 0xf464241f, 0x82650700, 0xb4652483, 0x82660700, 0x8266201b, 0x826620a7, + 0x8266205f, 0x1c6724a3, 0x82670700, 0x8c67211b, 0xc4200782, 0xfc230382, 0x82680700, 0x8268204f, 0x8268204f, 0x8268204f, 0x8269204f, 0x82692033, + 0x8269204f, 0x8269204f, 0x8269204f, 0x2c6a244f, 0x826c0700, 0xd07124b7, 0x82740700, 0x82742017, 0x82742017, 0x82752017, 0x64752417, 0x82750700, + 0x827520c7, 0x487625a7, 0x94760700, 0xe0240382, 0x18770700, 0x78200382, 0x67820382, 0x67827720, 0x005c7824, 0x03837907, 0x7a302782, 0x7b0700f0, + 0x800700f8, 0x82070048, 0x850700c8, 0x8d200782, 0x8d24af82, 0x8e0700ec, 0x8e207b82, 0x8e206382, 0x8f20af82, 0x8f24af82, 0x8f07007c, 0x90202f82, + 0x9020b382, 0x91257382, 0x920700b8, 0x82038220, 0x1093291f, 0x98930700, 0x00940700, 0x88200382, 0x27820382, 0x47829520, 0x37829620, 0x83829620, + 0x57829720, 0x000c9825, 0x82389807, 0x00c02403, 0x82289907, 0x24638203, 0x0700549a, 0x209f829b, 0x207b829b, 0x2007829d, 0x2423829f, 0x070090a2, + 0x2c3382a3, 0x070070a6, 0x070030aa, 0x070074ad, 0x203382b1, 0x206382b3, 0x201f82b5, 0x241b82b6, 0x0700a0b8, 0x24eb82ba, 0x0700f0bc, 0x202f82be, + 0x245f82bf, 0x0700d8bf, 0x247f82c1, 0x0700bcc3, 0x200f82c5, 0x240383c6, 0xc70700d0, 0x8203826c, 0x82c820af, 0x68c924bf, 0x82ca0700, 0x82ca202f, + 0x82ca2023, 0x14cb29ff, 0x40cb0700, 0x08cd0700, 0x1b820382, 0x00c8cd25, 0x823cce07, 0x00b02303, 0x0782cf07, 0x00a4d025, 0x824cd107, 0x283f8203, + 0x07005cd4, 0x0700fcd4, 0x207782d5, 0x281b82d6, 0x0700dcd6, 0x070034d9, 0x243382db, 0x070020de, 0x209382e0, 0x299f82e1, 0x070078e1, 0x0700e4e1, + 0x038244e2, 0xe2207382, 0xe3202782, 0xe3286782, 0xe5070080, 0xe6070050, 0xe7245382, 0xe90700cc, 0xe9201f82, 0xea240782, 0xeb070054, 0xeb20fb82, + 0xec202782, 0xed254382, 0xee070064, 0x2b038228, 0xef0700ec, 0xf0070088, 0xf2070024, 0xf4202b82, 0xf5201782, 0xf5204782, 0xf62c8b82, 0xf70700d4, + 0xf80700b4, 0xf9070030, 0xfa20ab82, 0xfa283f82, 0xfb0700a8, 0xfc0700b8, 0xfd204382, 0xfe24cf82, 0xfe070000, 0xff29ff82, 0x00080080, 0x01080060, + 0x27038240, 0x020800d0, 0x03080038, 0x04200382, 0x21080382, 0x08008805, 0x0800e406, 0x08001808, 0x08007409, 0x0800ec0a, 0x0800640c, 0x0800a00d, + 0x08007010, 0x03820012, 0x14201f82, 0x16282782, 0x180800dc, 0x1a080054, 0x1c2c4b82, 0x1e0800cc, 0x2208006c, 0x2508001c, 0x28243382, 0x28080010, + 0x2a312f82, 0x2c08007c, 0x2e08009c, 0x2f08005c, 0x300800c4, 0x2703824c, 0x310800d4, 0x32080098, 0x33201382, 0x35200b82, 0x35281382, 0x360800fc, + 0x370800ac, 0x39200f82, 0x3a208782, 0x3b203382, 0x3c2c5b82, 0x3c08000c, 0x3d0800bc, 0x3e080094, 0x3f240782, 0x410800e8, 0x43247b82, 0x45080050, + 0x45241382, 0x460800fc, 0x46209f82, 0x47207f82, 0x48246b82, 0x4808002c, 0x49259782, 0x4a08008c, 0x82038228, 0x824b2073, 0x824c20e3, 0x824d2013, + 0xf44e283b, 0x48510800, 0x82530800, 0x3455254b, 0x80550800, 0x3b820382, 0xef825620, 0x47825620, 0x00e05824, 0xeb825a08, 0x00c85b28, 0x00d85d08, + 0x83825e08, 0x03835f20, 0x60204382, 0x01290385, 0x0d060000, 0x1e00a201, 0x82008300, 0x8c06830d, 0x011c2303, 0x17870056, 0x19828520, 0x01240b85, + 0x85000c00, 0x02241786, 0x91000700, 0x03200b86, 0x98201782, 0x04200b86, 0xa4200b82, 0x05240b86, 0xb0000500, 0x06200b86, 0xb5201782, 0x07240b86, + 0xc1003000, 0x09240b86, 0xf1000f00, 0x0a220b86, 0x68823300, 0x0b246b85, 0x33012700, 0x0c201786, 0x5a200b82, 0x0d240b86, 0x8101f60e, 0x0e300b86, + 0x77102300, 0x01000300, 0x00000904, 0x9a101001, 0x01240b86, 0xaa111800, 0x02240b86, 0xc2110e00, 0x03200b86, 0xd0201782, 0x04200b86, 0xe8200b82, + 0x05240b86, 0x00120a00, 0x06240b86, 0x0a121800, 0x07240b86, 0x22126000, 0x09240b86, 0x82121e00, 0x0a240b86, 0xa0126600, 0x0b240b86, 0x06134e00, + 0x0c200b86, 0x54200b82, 0x0d240b86, 0xa213501e, 0x26080b86, 0x3146000e, 0x706f43f2, 0x67697279, 0x28207468, 0x32202963, 0x20393130, 0x73697254, + 0x206e6174, 0x6d697247, 0x9072656d, 0x20383721, 0x72756f53, 0x46206563, 0x646e756f, 0x41207972, 0x6f687475, 0x288f7372, 0x2033303a, 0x42207962, + 0x74737469, 0x6d616572, 0x6e49202c, 0x41202e63, 0x52206c6c, 0x733d7083, 0x73655220, 0x65767265, 0x72502e64, 0x7967676f, 0x74746f44, 0x65526465, + 0x616c7567, 0x8b128b72, 0x2e31240b, 0x8b352e31, 0x365f8810, 0x72655620, 0x73692061, 0x74206120, 0x65646172, 0x6b72616d, 0x8f666f20, 0x30dd8e80, + 0x65762041, 0x726f7463, 0x6163732f, 0x6c62616c, 0x240f8265, 0x6f697372, 0x233a836e, 0x20656874, 0x22086b85, 0x656c4320, 0x66206e61, 0x2e746e6f, + 0x70747468, 0x2f2f3a73, 0x68746967, 0x632e6275, 0x622f6d6f, 0x8265756c, 0x2f6e2240, 0x83c98470, 0xa6732026, 0x82542026, 0x6f772163, 0x6922aa82, + 0x6f89206e, 0x20050b41, 0x204e8220, 0x839e826a, 0x095d41d5, 0x3213a441, 0x646e6120, 0x63696c20, 0x65736e65, 0x6e752064, 0x84726564, 0x494d244d, + 0x854c2054, 0x23688f16, 0x6b636148, 0xe3416098, 0x2567b217, 0x616a6544, 0x69887556, 0x7361772a, 0x6d6f6320, 0x7474696d, 0x7421a982, 0x22a6846f, + 0x82627570, 0x642027bc, 0x69616d6f, 0xd2412e6e, 0x6153290e, 0x4d20736e, 0x206f6e6f, 0x210b0341, 0xd9413330, 0x05594209, 0x8e160241, 0x060d414d, + 0x69772024, 0x81426874, 0x46202c08, 0x20746e6f, 0x656d614e, 0x88222073, 0x84222030, 0x562230ed, 0x22617265, 0x2054494d, 0x4543494c, 0x4245534e, + 0x32430fe7, 0x502f083a, 0x696d7265, 0x6f697373, 0x7369206e, 0x72656820, 0x20796265, 0x6e617267, 0x2c646574, 0x65726620, 0x666f2065, 0x61686320, + 0x2c656772, 0x826f7420, 0x20792590, 0x73726570, 0x6f2f3082, 0x69617462, 0x676e696e, 0x63206120, 0x8279706f, 0x68742128, 0x73274582, 0x7774666f, + 0x84657261, 0x736135bc, 0x69636f73, 0x64657461, 0x636f6420, 0x6e656d75, 0x69746174, 0x66223d82, 0xeb826c69, 0x68742826, 0x53222065, 0x22213186, + 0x23638429, 0x6c616564, 0x87068c42, 0x77202f19, 0x6f687469, 0x72207475, 0x72747365, 0x42836369, 0x69202c27, 0x756c636e, 0x87818364, 0x696c231e, + 0x6086696d, 0x72255983, 0x74686769, 0x21b68273, 0xbe827375, 0xa4826320, 0x6d202c27, 0x6669646f, 0x20078279, 0x2ad38465, 0x6c627570, 0x2c687369, + 0x83696420, 0x75622259, 0x20298274, 0x22148373, 0x836e6563, 0x6e612a35, 0x726f2f64, 0x6c657320, 0x2040826c, 0x84b48269, 0x206521e8, 0x2c209b87, + 0x6482e884, 0x72657022, 0x1e417d82, 0x20732106, 0x77241182, 0x206d6f68, 0xc7888883, 0x66736925, 0x826e7275, 0x057b4270, 0x206f6426, 0x202c6f73, + 0x6a236f82, 0x83746365, 0x252d8332, 0x6c6c6f66, 0xd783776f, 0x6e6f6335, 0x69746964, 0x3a736e6f, 0x20656854, 0x766f6261, 0x45632065, 0x6e240832, + 0x6369746f, 0x23056841, 0x73696874, 0xce417a83, 0x271a8607, 0x6c616873, 0x6562206c, 0x82062b41, 0x6e692275, 0x87128220, 0x2dd882ca, 0x74736275, + 0x69746e61, 0x70206c61, 0x6c84726f, 0xe28e2020, 0x48542e3c, 0x4f532045, 0x41575446, 0x49204552, 0x52502053, 0x4449564f, 0x22204445, 0x0f825341, + 0x202c222a, 0x48544957, 0x2054554f, 0x22082182, 0x544e4152, 0x464f2059, 0x594e4120, 0x4e494b20, 0x45202c44, 0x45525058, 0x4f205353, 0x504d4952, + 0x8245494c, 0x4e492a12, 0x44554c43, 0x20474e49, 0x28368242, 0x20544f4e, 0x494d494c, 0x22538254, 0x83204f54, 0x2149866f, 0x36824549, 0x4d204626, + 0x48435245, 0x412b5882, 0x494c4942, 0x462c5954, 0x834e5449, 0x4f463751, 0x20412052, 0x54524150, 0x4c554349, 0x50205241, 0x4f505255, 0x7c824553, + 0x4e204428, 0x4e494e4f, 0x64825246, 0x454d4528, 0x202e544e, 0x13824e49, 0x56452022, 0x20250c82, 0x4c414853, 0x2169834c, 0xba825541, 0x65825220, + 0x43205230, 0x5259504f, 0x54484749, 0x4c4f4820, 0x14824544, 0x82454221, 0x42412497, 0x8420454c, 0x2bd18269, 0x49414c43, 0x44202c4d, 0x47414d41, + 0x52229b83, 0xae824f20, 0x494c5222, 0x20239a87, 0x83454857, 0x2b6d8311, 0x41204e41, 0x4f495443, 0x464f204e, 0x4e225d82, 0x0e825254, 0x54202c26, + 0x2054524f, 0x3984b982, 0x53495729, 0x41202c45, 0x82534952, 0x462027a8, 0x2c4d4f52, 0x1e82554f, 0x21834620, 0x4324b182, 0x454e4e4f, 0x57234485, + 0x83485449, 0x098c41b2, 0x6b824482, 0x82552021, 0x244f87f1, 0x41454420, 0x204a824c, 0x82808353, 0x07b8411c, 0x49422e2e, 0x52545354, 0x204d4145, + 0x41524556, 0x47174e44, 0x00452936, 0x25fb460a, 0x424b6e44, 0x663607a3, 0x73746e6f, 0x63636120, 0x61706d6f, 0x6e69796e, 0x68742067, 0x8c467369, + 0x28202307, 0x21834622, 0x44292221, 0x3083298f, 0x4408de43, 0x72260694, 0x6f727065, 0x6d437564, 0x092c4406, 0x65206c82, 0x4305bd45, 0x974407e3, + 0x44202028, 0x90440e98, 0x0a84441a, 0x85442020, 0x44ab8c0d, 0x308c238a, 0x73692023, 0x4b904420, 0xfc48a782, 0x0583440a, 0x84207321, 0x2d9f4415, + 0x6f29e58a, 0x6f20656e, 0x6f6d2072, 0x20078272, 0x116f4166, 0x7974202c, 0x61666570, 0x2e736563, 0x8b416854, 0x6d20260e, 0x62207961, 0x05f44565, + 0x64656929, 0x6c61202c, 0x83726574, 0x27528208, 0x65646461, 0x6f742064, 0x2b053641, 0x70206e69, 0x69747261, 0x616c7563, 0x2f05bc48, 0x69736564, + 0x20736e67, 0x6720666f, 0x6870796c, 0x72270982, 0x61686320, 0x82636172, 0x20732144, 0x2406a446, 0x746e6f46, 0x84698f73, 0x266082f4, 0x6f697469, + 0x956c616e, 0x879d8640, 0x28db8887, 0x6f202c73, 0x20796c6e, 0x42ee8569, 0xff8206e2, 0x6e657224, 0xb3846d61, 0x08832020, 0x6e207326, 0x6320746f, + 0x89477f82, 0x69652306, 0x79496874, 0x6f772306, 0x4c486472, 0x82f1820d, 0x8320201d, 0x48202018, 0x2e240554, 0x73696854, 0x26079f49, 0x63656220, + 0x82656d6f, 0x6c752253, 0x23be846c, 0x64696f76, 0x30079346, 0x65747865, 0x6120746e, 0x696c7070, 0x6c626163, 0x85188365, 0x425782f9, 0x74270d54, + 0x20746168, 0x82736168, 0x6e652151, 0x84087b41, 0x436e8252, 0x284a093b, 0x09f5480b, 0x65562025, 0x85226172, 0x19d141df, 0x6c6f7324, 0x62822064, + 0x7261702d, 0x666f2074, 0x6c206120, 0x82677261, 0x087e48fb, 0x63617032, 0x6567616b, 0x74756220, 0x206f6e20, 0x79706f63, 0x4e422883, 0x07d24129, + 0x62316a84, 0x74692079, 0x666c6573, 0x4548542e, 0x4e4f4620, 0x46104754, 0x11472020, 0x4e412225, 0x075b4759, 0x20161147, 0x33124720, 0x46059646, + 0x2c3306f4, 0x54415020, 0x2c544e45, 0x41525420, 0x414d4544, 0x462c4b52, 0x202408a5, 0x48474952, 0x46144247, 0x8c460956, 0x4e473006, 0x20454d4f, + 0x4e554f46, 0x49544144, 0x47204e4f, 0x20202844, 0x480a4547, 0xfb830920, 0x4e45472d, 0x4c415245, 0x5053202c, 0x83494345, 0x4e492608, 0x45524944, + 0x82ad8243, 0x44492129, 0x1583b782, 0x43268282, 0x45534e4f, 0x10825551, 0xa7472782, 0x472c2007, 0x20204295, 0x47069647, 0x49210a70, 0x06f5474e, + 0x4f542027, 0x45535520, 0x111d4220, 0x46239182, 0x484d4f52, 0x9b470525, 0x0d49420f, 0x78452e2a, 0x74706563, 0x20736120, 0x4906d443, 0x742405b0, + 0x20736968, 0x24054d45, 0x6874202c, 0x051c4365, 0x666f2028, 0x6f6e4720, 0x1385656d, 0x134f0a84, 0x4b612005, 0x6122051f, 0xa247646e, 0x6e49250a, + 0x202c2e63, 0x8205104a, 0x6220254b, 0x73752065, 0x612f5f85, 0x72657664, 0x69736974, 0x6f20676e, 0x826f2072, 0x77722e62, 0x20657369, 0x70206f74, + 0x6f6d6f72, 0x820a8274, 0x61732276, 0x826c826c, 0x20258835, 0x05ac4b20, 0x0c456720, 0x44a68206, 0x984b0d0a, 0x72702207, 0x2f588269, 0x74697277, + 0x206e6574, 0x68747561, 0x7a69726f, 0x2021a784, 0x84618266, 0x83c18fd5, 0x080c4d65, 0xbf852020, 0x7365722c, 0x74636570, 0x6c657669, 0xed822e79, + 0x66207224, 0xaf837275, 0x6e692026, 0x6d726f66, 0x2c205284, 0x23053e41, 0x203a7463, 0x2a063b45, 0x6e672074, 0x20656d6f, 0x82746f64, 0x4f672055, + 0x6f2e0843, 0x736e6570, 0x6372756f, 0x726f2e65, 0xc14e2f67, 0x2f733e06, 0x0054494d, 0x006f0043, 0x00790070, 0x00690072, 0x00680067, 0x00200074, + 0x00630028, 0x26078229, 0x00300032, 0x82390031, 0x84542009, 0x8273201f, 0x0061221d, 0x200f826e, 0x240f8447, 0x006d006d, 0x20098265, 0x2045a20a, + 0x20358238, 0x206b8253, 0x202f8275, 0x22358263, 0x84460020, 0x006e220d, 0x20118264, 0x221d8279, 0x82750041, 0x8268205f, 0x00722315, 0x53a10073, + 0x33003022, 0x62203582, 0x2022bb82, 0xbd824200, 0x35827420, 0x4b827420, 0x61006522, 0x2c209782, 0x49201b82, 0x6322ab82, 0x5b842e00, 0x6c006c22, + 0x52200782, 0x7320e588, 0x65200d84, 0xc1833382, 0x91827620, 0x29826420, 0x50000a22, 0x6f224182, 0x01826700, 0x44007922, 0x74208b82, 0x65209382, + 0x5220a382, 0x67202182, 0x6c20a182, 0x72205d82, 0x3d972598, 0x5b823120, 0x35200383, 0xc1913998, 0x56002022, 0x72207382, 0x20206f82, 0xaf83b582, + 0xb3826120, 0x6120e183, 0x65208f82, 0x6120e382, 0x6b20ab82, 0x6f221382, 0x05826600, 0x03414191, 0x1dc1410b, 0x3f824120, 0x6d827620, 0xed826320, + 0x55826f20, 0x73002f24, 0x79826300, 0x03826c20, 0x6c006222, 0x20211982, 0x201f8300, 0x24178272, 0x006f0069, 0x2275886e, 0x84680074, 0x22f98b1d, + 0x84430020, 0x052b4233, 0x2f846620, 0x2e007422, 0x74202982, 0x70205f82, 0x3a224382, 0x01822f00, 0xd7826720, 0x75223f83, 0x1d826200, 0x27826320, + 0x15826d20, 0x3b826220, 0x53827520, 0x6e208185, 0x70201182, 0x870a9341, 0xce73204d, 0x8654204d, 0x827720c7, 0x00722285, 0x20df826b, 0x93e58469, + 0x0b1742df, 0x85002021, 0x416a209d, 0xab41063d, 0x13574307, 0x22274f43, 0x82610020, 0x8264207b, 0x006c2483, 0x82630069, 0x006e2259, 0x83058273, + 0x84752011, 0x00652219, 0x871d8272, 0x004d249b, 0x82540049, 0x8c4c200f, 0x000a232d, 0xd59f000a, 0x69824820, 0xed846320, 0xcf43c5af, 0x24d3e92f, + 0x00650044, 0x23d7826a, 0x00750056, 0x20119d41, 0x20198277, 0x42178273, 0x6d24056d, 0x74006900, 0x2006e143, 0x20078220, 0x0a55416f, 0x3f827020, + 0x41006221, 0x20260581, 0x6f006400, 0x3b826d00, 0x6e006926, 0x0a002e00, 0x6f430182, 0x0bb14311, 0x2b825320, 0x83006e21, 0x824d2069, 0x826e2039, + 0x45202003, 0x32221425, 0x01823000, 0xbf433320, 0x00202114, 0x4209c144, 0x9b9d2d11, 0x240d2742, 0x00770020, 0x20fb8269, 0x12114568, 0x2005a545, + 0x221d826e, 0x824e0020, 0x006d22d1, 0x20d38465, 0x12714522, 0x3f822220, 0x2220a587, 0x2208bb44, 0x820a0022, 0x09a14201, 0x43004924, 0x4b824500, + 0x05825320, 0x27431983, 0x857f4613, 0x50000a22, 0x7224ed82, 0x69006d00, 0x7320f382, 0xf7440582, 0x220d8305, 0x84680020, 0x0065211b, 0x23057f46, + 0x00720067, 0x7420fb83, 0x64261582, 0x20002c00, 0x11826600, 0x0d826520, 0x45002021, 0x6320059d, 0x61203182, 0x67201382, 0x1f831382, 0x17827420, + 0x20051343, 0x202d8279, 0x204d8470, 0x08594573, 0x74006222, 0x24066b42, 0x006e0069, 0x20218267, 0x06b34261, 0x79007024, 0x53860a00, 0x53827420, + 0x39838d85, 0x33826620, 0x35827720, 0x75847220, 0x20078941, 0x24bb8461, 0x0063006f, 0x851b8269, 0x05cd429f, 0x75006322, 0x6520db82, 0x6b835f82, + 0xdf887420, 0x09826620, 0x43826c20, 0x71827320, 0x53822820, 0x2205df45, 0x84530022, 0x00742175, 0x22226387, 0xe9842900, 0x6420c985, 0x61223182, + 0x9b826c00, 0x8f0d3745, 0x096d4235, 0x7f826f20, 0x63827420, 0x7320af83, 0x72206782, 0x63207782, 0x5f460782, 0x452c2005, 0x63200681, 0x75225382, + 0x1b826400, 0x42050741, 0x3d8707ab, 0x19826c20, 0x2005c543, 0x203b8861, 0x48b58820, 0x732009d5, 0xa9859982, 0x73007522, 0x20068341, 0x06fb4863, + 0x6d206b83, 0x64200b82, 0x66224b82, 0xd5847900, 0x4105d948, 0x0b4407ad, 0x00732209, 0x831f8468, 0x8673202b, 0x846220b5, 0x846520c9, 0x44732017, + 0x65210a35, 0x05b74500, 0x61205f83, 0x64220b82, 0x65822f00, 0xd9827220, 0x6c208183, 0x0a21d982, 0x20838500, 0x066f4169, 0x20052b42, 0x20638274, + 0x062f4965, 0x890bd541, 0x20e18347, 0x0837426f, 0x2021ff85, 0x0b454200, 0x1d827320, 0x7720ef85, 0x6f224d82, 0x0f846d00, 0x4105cb41, 0x69261193, + 0x0a007300, 0xbb826600, 0xa7827220, 0x29830d83, 0x43886420, 0xb7826420, 0x23822020, 0xe38a6f20, 0x8509f146, 0x20b58767, 0x832b8266, 0x006f22db, + 0x08b54177, 0x6e22e583, 0x0f826400, 0x22076742, 0x823a0073, 0x09a14671, 0x62006122, 0x76213782, 0x41f78300, 0x934a0513, 0x826e200d, 0x203b831d, + 0x0cdd4263, 0x01437383, 0x43fb8505, 0x358d0fab, 0x68007325, 0x4a006100, 0x62200509, 0x69204784, 0x6320ed82, 0x20066142, 0x209f8265, 0x20b18420, + 0x41258620, 0xbb41119d, 0x82752005, 0x070b4bab, 0x61209383, 0x20224182, 0xa1827000, 0x83427220, 0x49732008, 0x75411021, 0x0545460f, 0x48005424, + 0x2b824500, 0x4f00532c, 0x54004600, 0x41005700, 0x11845200, 0x53004922, 0x50201782, 0x4f260d82, 0x49005600, 0x15824400, 0x11824420, 0x21822220, + 0x1f831983, 0x2c002222, 0x57201182, 0x47831d82, 0x55004f22, 0x20204182, 0x52204386, 0x4e202782, 0x59200f82, 0x5b832182, 0x0f842020, 0x4b200d83, + 0x4e202f82, 0x3b834f82, 0x58004524, 0x71845000, 0x6f845320, 0x0b824f20, 0x1f820a20, 0x15824d20, 0x07824c20, 0x27864520, 0x4e004926, 0x4c004300, + 0x44206182, 0x47203d84, 0x42205582, 0x4e206f86, 0x7f48bb82, 0x00492105, 0x8305e945, 0x82202035, 0x824f207b, 0x86542025, 0x87d985e1, 0x82492095, + 0x85c583cd, 0x824d2099, 0x8252200d, 0x8448205f, 0x825420a3, 0x82422005, 0x844c2065, 0x825920d7, 0x000a22e3, 0x200b8446, 0x8335844e, 0x82462037, + 0x82522073, 0x8241205d, 0x82502003, 0x8252202f, 0x8249206d, 0x82552041, 0x824120a3, 0x822020c3, 0x825520bf, 0x82502007, 0x82532027, 0x20fd8535, + 0x832d8244, 0x844e20ad, 0x824620c3, 0x8249201f, 0x824720d7, 0x2481831f, 0x0054004e, 0x8321822e, 0x82202013, 0x22bd8317, 0x82560045, 0x2219831d, + 0x82530020, 0x824120c9, 0x884c205f, 0x820a20d5, 0x82552079, 0x82482035, 0x41522065, 0x2022083f, 0x0f824300, 0x59005022, 0x47205f84, 0x54203582, + 0x23833182, 0x44004c22, 0xc183e984, 0x95844220, 0x89824c20, 0x42004122, 0x45205582, 0xd5892382, 0x3d824e20, 0x4c204783, 0x49246182, 0x2c004d00, + 0x44201d82, 0x4d200b82, 0xaf830382, 0x20053b41, 0x20158252, 0x207f844f, 0x206b8245, 0x2045820a, 0x103b4149, 0x57002022, 0x45208182, 0x20202588, + 0x0f41fb84, 0x20058305, 0x20198243, 0x20af8249, 0x0827424e, 0x0d844320, 0x51825420, 0xc9824120, 0x7b845420, 0xe1845420, 0x4f20c783, 0x20201782, + 0x54200d82, 0x52225584, 0x4f825700, 0xcb825320, 0x4120a183, 0x5320f184, 0x20082142, 0x200f8246, 0x20bd844f, 0x4231820a, 0xf141059d, 0x41458505, + 0x6f850569, 0x43824e20, 0xd5428b8b, 0x86202007, 0x002021b9, 0x85112343, 0x22898545, 0x82550020, 0x84452021, 0x0d1741c5, 0x44002022, 0x41225b82, + 0x97864c00, 0x83053d43, 0x845420ef, 0x900a20c3, 0x059b4359, 0x2f824220, 0x1b825420, 0xc5825420, 0x41004522, 0x2022c782, 0x49825600, 0x0b825220, + 0x4d842020, 0x4e2dcb48, 0xfb4e53b1, 0x4d394e13, 0x49000a21, 0x5d499909, 0x0b7b4607, 0x74006e23, 0x052d4f00, 0x4b006321, 0x702605e5, 0x6e006100, + 0x8d467900, 0x09354608, 0x280d5f4d, 0x00280020, 0x00460022, 0x832d826f, 0x00222243, 0x0ad34a29, 0x87494949, 0x49202061, 0x72221e53, 0x5d4e6500, + 0x00642206, 0x20cb8275, 0x488d8a65, 0x2020137f, 0x9908f748, 0x51574961, 0x6f207583, 0x57499982, 0x4a652017, 0x47490af5, 0x152f4929, 0x2f492020, + 0x85f59d1c, 0x3d394951, 0xf74f6199, 0x9b434907, 0x21090141, 0x43520072, 0x0b29490f, 0x21053d43, 0xff49006e, 0x00682105, 0x41596149, 0x6f2a15cf, + 0x65006e00, 0x6f002000, 0x05827200, 0x07846d20, 0x66200f85, 0x674a0f82, 0x1b8b4107, 0x79007424, 0x43827000, 0xe7826620, 0x07826320, 0xb34f7320, + 0x4b542006, 0x3b9b0659, 0x33826d20, 0x67827920, 0x83846220, 0x2009174c, 0x08db4d69, 0x6c006124, 0x0d827400, 0x11887220, 0x6122a985, 0x01826400, + 0x2005474a, 0x4bb58274, 0x69200baf, 0x2020d382, 0x61209382, 0x7424d382, 0x63006900, 0x43084b54, 0x642009b5, 0x6922a984, 0x2b826700, 0x20093f4a, + 0x836d8267, 0x006821cd, 0x72201385, 0x63209b82, 0x4983c782, 0x47826120, 0x1b838985, 0x440d794d, 0x202109c7, 0x51d39d00, 0x6120099b, 0xa54bbf82, + 0x8261200b, 0x8220207b, 0x006c218f, 0x678d81a5, 0x440f0f41, 0x7322119f, 0xcd822c00, 0xef826f20, 0x20236183, 0x41006900, 0xeb530be1, 0x4ea18309, + 0x058305d7, 0x89506e20, 0x099f4c06, 0x73201187, 0xc9424d82, 0x05594205, 0x474f6e20, 0x82652010, 0x05414263, 0x240b4153, 0x006f0077, 0x83fb8272, + 0x17db503f, 0x8505e341, 0x0020213b, 0x20213187, 0x0beb5000, 0x20053748, 0x08974f54, 0x230f6951, 0x00650062, 0x51059346, 0x6e230547, 0x4c007500, + 0x6122058f, 0x7f826e00, 0x76002022, 0x69208982, 0x554d0984, 0x0065220d, 0x20cb8278, 0x20258265, 0x22e38274, 0x82700061, 0x006c2201, 0x214d8269, + 0xa1550061, 0x41318507, 0xb3850bf7, 0x831bed42, 0x826120cf, 0x82202059, 0x006121b3, 0x6220ff83, 0x6783a382, 0x42002021, 0x20200ffb, 0x20089754, + 0x46298469, 0xa3541383, 0x13554117, 0x2009a748, 0x41d38222, 0x454109c3, 0x82652009, 0x42bd9b17, 0x73250d6f, 0x6c006f00, 0x20818300, 0x209f8461, + 0x20af8270, 0x22db8472, 0x8266006f, 0x82612049, 0x846c2003, 0x82672013, 0x827220e3, 0x1137510d, 0x63223383, 0x25826b00, 0x20242383, 0x75006200, + 0xc1534184, 0x07994e05, 0x69822020, 0xa9445183, 0x0fad4353, 0x6b52d589, 0x82692005, 0x053f508f, 0xd5446620, 0x05434e08, 0xb74b4620, 0x13294b06, + 0x20794d4e, 0x4c4d4e20, 0x4d004121, 0x4d4e0519, 0x4e20203b, 0x2021684d, 0x05ed4c00, 0x2a110f4e, 0x0020002c, 0x00410050, 0x82450054, 0x07634dd1, + 0x11825220, 0x11824420, 0x07824d20, 0x4b005223, 0x4d258300, 0x20200f6f, 0x4e0a554e, 0xc94c27ad, 0x0d3b4d13, 0x85824720, 0x4d004f22, 0x20227b82, + 0xb5824600, 0x0f825520, 0x9f844420, 0x4e071b4e, 0x434d51af, 0x00412105, 0x210deb4f, 0x6b500020, 0x07f74113, 0xa1824720, 0x834d4e20, 0x004c2806, + 0x0020002c, 0x82500053, 0x8243200f, 0x00412135, 0x3f831185, 0x0f824420, 0x17845220, 0x85055b41, 0x00492253, 0x203f8444, 0x85d98254, 0x0505412b, + 0x2005814e, 0x221b8253, 0x86550051, 0x84492021, 0x82202023, 0x00412231, 0x08754f4d, 0x4f4f7183, 0x4f202083, 0x034f0e4f, 0x41f58315, 0x95510d5f, + 0x072b4f07, 0x3b443787, 0x0523411b, 0x4f07cb4f, 0x594f0bfb, 0x054b421f, 0x54004e22, 0x4512e152, 0x452905e5, 0x63007800, 0x70006500, 0x05d74600, + 0x47079b59, 0x975309b9, 0x09b94d0b, 0x200baf4a, 0x0a154a2c, 0x45094546, 0x472107a3, 0x202b8300, 0x06f3556d, 0x65204183, 0x15892f82, 0x560b895e, + 0xbb490943, 0x134d590b, 0x83079959, 0x0b575427, 0x20229785, 0x6f826200, 0x4d002021, 0x64200513, 0x2506cb56, 0x00610020, 0x475d0064, 0x00742405, + 0x4e730069, 0xa7470891, 0x4d6f2005, 0x722206bf, 0x1d847700, 0xd347a783, 0x00702605, 0x006f0072, 0x2003826d, 0x87578474, 0x827320c5, 0x866c2051, + 0x836b85d9, 0x827220f5, 0x204b896f, 0x20738220, 0x24278465, 0x006e0069, 0x20758267, 0x20778420, 0x4b6d8420, 0x634705db, 0x0f71571b, 0x69208b83, + 0x65838982, 0x97827720, 0x47826920, 0x83827420, 0x75826e20, 0xc35f6120, 0x0069220a, 0x5875827a, 0xc3850b57, 0x4109054a, 0xcb871f83, 0x201f7f41, + 0x227d8272, 0x82700073, 0x82632005, 0x0069228b, 0x24098276, 0x0079006c, 0x8391822e, 0x4da983d9, 0xf9490597, 0x00692409, 0x8466006e, 0x8a6d20c5, + 0x822c20a5, 0x4f632031, 0x5b4b06ff, 0x823a2005, 0x0d874a11, 0x11827420, 0x53426720, 0x00202408, 0x826f0064, 0x20ab8575, 0x06914767, 0x9d5e0a20, + 0x846f2010, 0x006e229f, 0x242d8273, 0x00720075, 0x20a38263, 0x227f842e, 0x5c2f0067, 0x65200665, 0x73205582, 0x73201782, 0x4d291182, 0x54004900, + 0x02000000, 0x23008400, 0x23009aff, 0x048e0884, 0x820d0621, 0x82012010, 0x00032825, 0x00050004, 0x18070006, 0x080add97, 0x0e000d24, 0x10000f00, + 0x12001100, 0x14001300, 0x16001500, 0x18001700, 0x1a001900, 0x1c001b00, 0x1e001d00, 0xcd821f00, 0x22002122, 0x24325d82, 0x26002500, 0x28002700, + 0x2a002900, 0x2c002b00, 0xcd822d00, 0x002f3208, 0x00310030, 0x00330032, 0x00350034, 0x00370036, 0x00390038, 0x003b003a, 0x003d003c, 0x003f003e, + 0x00410040, 0x00430042, 0x00450044, 0x00470046, 0x32b98248, 0x004b004a, 0x004d004c, 0x004f004e, 0x00510050, 0x82530052, 0x760b07cd, 0x00560055, + 0x00580057, 0x005a0059, 0x005c005b, 0x005e005d, 0x0060005f, 0x00ac0061, 0x008400a3, 0x00bd0085, 0x00e80096, 0x008e0086, 0x009d008b, 0x01a400a9, + 0x008a0002, 0x008300da, 0x00f20093, 0x008d00f3, 0x00880097, 0x00de00c3, 0x009e00f1, 0x00f500aa, 0x00f600f4, 0x00ad00a2, 0x00c700c9, 0x006200ae, + 0x00900063, 0x00cb0064, 0x00c80065, 0x00cf00ca, 0x00cd00cc, 0x00e900ce, 0x00d30066, 0x00d100d0, 0x006700af, 0x009100f0, 0x00d400d6, 0x006800d5, + 0x00ed00eb, 0x006a0089, 0x006b0069, 0x006c006d, 0x00a0006e, 0x0071006f, 0x00720070, 0x00750073, 0x00760074, 0x00ea0077, 0x007a0078, 0x007b0079, + 0x007c007d, 0x00a100b8, 0x007e007f, 0x00810080, 0x00ee00ec, 0x010301ba, 0x01050104, 0x01070106, 0x00fd0008, 0x010901fe, 0x010b010a, 0x01ff000c, + 0x010d0100, 0x010f010e, 0x01100101, 0x01120111, 0x01140113, 0x01160115, 0x01180117, 0x011a0119, 0x00f8001b, 0x011c01f9, 0x011e011d, 0x0120011f, + 0x01220121, 0x01240123, 0x01260125, 0x01280127, 0x012a0129, 0x00fa002b, 0x012c01d7, 0x012e012d, 0x0130012f, 0x01320131, 0x01340133, 0x01360135, + 0x01380137, 0x003a0139, 0x01e300e2, 0x013c013b, 0x013e013d, 0x0140013f, 0x01420141, 0x01440143, 0x01460145, 0x01480147, 0x00b00049, 0x014a01b1, + 0x014c014b, 0x014e014d, 0x0150014f, 0x01520151, 0x00fb0053, 0x00e400fc, 0x015401e5, 0x01560155, 0x01580157, 0x015a0159, 0x015c015b, 0x015e015d, + 0x0160015f, 0x01620161, 0x01640163, 0x01660165, 0x01680167, 0x01bb0069, 0x016b016a, 0x006d016c, 0x01e700e6, 0x01a6006e, 0x0170016f, 0x01720171, + 0x01740173, 0x01760175, 0x01780177, 0x017a0179, 0x00d8007b, 0x00db00e1, 0x00dd00dc, 0x00d900e0, 0x017c01df, 0x017e017d, 0x0180017f, 0x01820181, + 0x01840183, 0x01860185, 0x01880187, 0x018a0189, 0x018c018b, 0x018e018d, 0x0190018f, 0x01920191, 0x01940193, 0x01960195, 0x01980197, 0x019a0199, + 0x019c019b, 0x019e019d, 0x01a0019f, 0x01a201a1, 0x01a401a3, 0x01a601a5, 0x01a801a7, 0x01aa01a9, 0x01ac01ab, 0x01ae01ad, 0x01b001af, 0x01b201b1, + 0x01b401b3, 0x01b601b5, 0x00b801b7, 0x01b9019b, 0x01bb01ba, 0x01bd01bc, 0x01bf01be, 0x01c101c0, 0x01c301c2, 0x01c501c4, 0x01c701c6, 0x01c901c8, + 0x01cb01ca, 0x01cd01cc, 0x01cf01ce, 0x01d101d0, 0x01d301d2, 0x01d501d4, 0x01d701d6, 0x01d901d8, 0x01db01da, 0x01dd01dc, 0x01df01de, 0x01e101e0, + 0x01e301e2, 0x01e501e4, 0x01e701e6, 0x01e901e8, 0x01eb01ea, 0x01ed01ec, 0x01ef01ee, 0x01f101f0, 0x01f301f2, 0x01f501f4, 0x01f701f6, 0x01f901f8, + 0x01fb01fa, 0x01fd01fc, 0x02ff01fe, 0x02010200, 0x02030202, 0x02050204, 0x02070206, 0x02090208, 0x020b020a, 0x020d020c, 0x020f020e, 0x02110210, + 0x02130212, 0x02150214, 0x02170216, 0x02190218, 0x021b021a, 0x021d021c, 0x021f021e, 0x02210220, 0x02230222, 0x02250224, 0x02270226, 0x02290228, + 0x022b022a, 0x022d022c, 0x022f022e, 0x02310230, 0x02330232, 0x02350234, 0x02370236, 0x02390238, 0x023b023a, 0x023d023c, 0x023f023e, 0x02410240, + 0x02430242, 0x02450244, 0x02470246, 0x02490248, 0x024b024a, 0x024d024c, 0x024f024e, 0x02510250, 0x02530252, 0x02550254, 0x02570256, 0x02590258, + 0x025b025a, 0x025d025c, 0x025f025e, 0x02610260, 0x02630262, 0x02650264, 0x02670266, 0x02690268, 0x026b026a, 0x026d026c, 0x026f026e, 0x02710270, + 0x02730272, 0x02750274, 0x02770276, 0x02790278, 0x027b027a, 0x027d027c, 0x027f027e, 0x02810280, 0x02830282, 0x02850284, 0x02870286, 0x02890288, + 0x028b028a, 0x028d028c, 0x028f028e, 0x02910290, 0x02930292, 0x02950294, 0x02970296, 0x02990298, 0x029b029a, 0x029d029c, 0x029f029e, 0x02a102a0, + 0x02a302a2, 0x02a502a4, 0x02a702a6, 0x02a902a8, 0x02ab02aa, 0x02ad02ac, 0x02af02ae, 0x02b102b0, 0x02b302b2, 0x02b502b4, 0x02b702b6, 0x02b902b8, + 0x02bb02ba, 0x02bd02bc, 0x02bf02be, 0x02c102c0, 0x02c302c2, 0x02c502c4, 0x02c702c6, 0x02c902c8, 0x02cb02ca, 0x02cd02cc, 0x02cf02ce, 0x02d102d0, + 0x02d302d2, 0x02d502d4, 0x02d702d6, 0x02d902d8, 0x02db02da, 0x02dd02dc, 0x02df02de, 0x02e102e0, 0x02e302e2, 0x02e502e4, 0x02e702e6, 0x02e902e8, + 0x02eb02ea, 0x02ed02ec, 0x02ef02ee, 0x02f102f0, 0x02f302f2, 0x02f502f4, 0x02f702f6, 0x02f902f8, 0x02fb02fa, 0x02fd02fc, 0x03ff02fe, 0x03010300, + 0x03030302, 0x03050304, 0x03070306, 0x03090308, 0x030b030a, 0x030d030c, 0x030f030e, 0x03110310, 0x03130312, 0x03150314, 0x03170316, 0x03190318, + 0x031b031a, 0x031d031c, 0x031f031e, 0x00b20020, 0x032103b3, 0x00230322, 0x00b700b6, 0x002403c4, 0x00b500b4, 0x002503c5, 0x00c20082, 0x03260387, + 0x00280327, 0x032903ab, 0x03c6002a, 0x032c032b, 0x032e032d, 0x0330032f, 0x00be0031, 0x033203bf, 0x03340333, 0x03bc0035, 0x03370336, 0x03390338, + 0x033b033a, 0x033d033c, 0x033f033e, 0x03410340, 0x03430342, 0x03450344, 0x03470346, 0x03490348, 0x034b034a, 0x034d034c, 0x034f034e, 0x03f70050, + 0x03520351, 0x03540353, 0x03560355, 0x03580357, 0x035a0359, 0x035c035b, 0x035e035d, 0x0360035f, 0x03620361, 0x03640363, 0x00660365, 0x039f008c, + 0x03680367, 0x036a0369, 0x036c036b, 0x036e036d, 0x0370036f, 0x03720371, 0x03740373, 0x03760375, 0x03780377, 0x037a0379, 0x037c037b, 0x037e037d, + 0x0380037f, 0x03820381, 0x03840383, 0x03860385, 0x03880387, 0x038a0389, 0x038c038b, 0x038e038d, 0x0390038f, 0x03920391, 0x03940393, 0x03960395, + 0x03980397, 0x039a0399, 0x039c039b, 0x039e039d, 0x03a0039f, 0x03a203a1, 0x03a403a3, 0x03a603a5, 0x03a803a7, 0x03aa03a9, 0x03ac03ab, 0x03ae03ad, + 0x03b003af, 0x03b203b1, 0x03b403b3, 0x03b603b5, 0x03b803b7, 0x03ba03b9, 0x03bc03bb, 0x03be03bd, 0x03c003bf, 0x03c203c1, 0x03c403c3, 0x03c603c5, + 0x03c803c7, 0x03ca03c9, 0x03cc03cb, 0x03ce03cd, 0x03d003cf, 0x03d203d1, 0x03d403d3, 0x03d603d5, 0x03d803d7, 0x03da03d9, 0x03dc03db, 0x03de03dd, + 0x03e003df, 0x03e203e1, 0x00e403e3, 0x03e50398, 0x00e703e6, 0x03e803a8, 0x03ea03e9, 0x03ec03eb, 0x03ee03ed, 0x039a00ef, 0x009900f0, 0x03f103ef, + 0x03f303f2, 0x00f503f4, 0x03f603a5, 0x00f803f7, 0x03f90392, 0x03fb03fa, 0x03fd03fc, 0x00ff03fe, 0x0400049c, 0x04020401, 0x04040403, 0x04060405, + 0x04080407, 0x040a0409, 0x040c040b, 0x040e040d, 0x0410040f, 0x00120411, 0x041304a7, 0x04150414, 0x04170416, 0x04190418, 0x041b041a, 0x041d041c, + 0x041f041e, 0x04210420, 0x04230422, 0x04250424, 0x04270426, 0x00290428, 0x042a048f, 0x002c042b, 0x04950094, 0x042e042d, 0x0430042f, 0x04320431, + 0x04340433, 0x04360435, 0x04380437, 0x043a0439, 0x043c043b, 0x043e043d, 0x0440043f, 0x04420441, 0x04440443, 0x04460445, 0x04480447, 0x044a0449, + 0x044c044b, 0x044e044d, 0x0450044f, 0x04520451, 0x04540453, 0x04560455, 0x04580457, 0x045a0459, 0x045c045b, 0x045e045d, 0x0460045f, 0x04620461, + 0x04640463, 0x04660465, 0x04680467, 0x046a0469, 0x046c046b, 0x046e046d, 0x0470046f, 0x04720471, 0x04740473, 0x04760475, 0x04780477, 0x047a0479, + 0x047c047b, 0x047e047d, 0x0480047f, 0x04820481, 0x04840483, 0x04860485, 0x04880487, 0x048a0489, 0x048c048b, 0x048e048d, 0x0490048f, 0x04920491, + 0x04940493, 0x04960495, 0x04980497, 0x049a0499, 0x049c049b, 0x049e049d, 0x04a0049f, 0x04a204a1, 0x04a404a3, 0x04a604a5, 0x04a804a7, 0x04aa04a9, + 0x04ac04ab, 0x04ae04ad, 0x04b004af, 0x04b204b1, 0x04b404b3, 0x04b604b5, 0x04b804b7, 0x04ba04b9, 0x04bc04bb, 0x04be04bd, 0x04c004bf, 0x04c204c1, + 0x04c404c3, 0x04c604c5, 0x04c804c7, 0x04ca04c9, 0x04cc04cb, 0x04ce04cd, 0x04d004cf, 0x04d204d1, 0x04d404d3, 0x04d604d5, 0x04d804d7, 0x04da04d9, + 0x04dc04db, 0x04de04dd, 0x04e004df, 0x04e204e1, 0x04e404e3, 0x04e604e5, 0x04e804e7, 0x04ea04e9, 0x04ec04eb, 0x04ee04ed, 0x04f004ef, 0x04f204f1, + 0x04f404f3, 0x04f604f5, 0x04f804f7, 0x04fa04f9, 0x04fc04fb, 0x04fe04fd, 0x050005ff, 0x05020501, 0x05040503, 0x05060505, 0x05080507, 0x050a0509, + 0x050c050b, 0x050e050d, 0x0510050f, 0x05120511, 0x05140513, 0x05160515, 0x05180517, 0x051a0519, 0x051c051b, 0x051e051d, 0x0520051f, 0x05220521, + 0x05240523, 0x05260525, 0x05280527, 0x052a0529, 0x052c052b, 0x052e052d, 0x0530052f, 0x05320531, 0x05340533, 0x05360535, 0x05380537, 0x053a0539, + 0x053c053b, 0x053e053d, 0x0540053f, 0x05420541, 0x05440543, 0x05460545, 0x05480547, 0x054a0549, 0x054c054b, 0x054e054d, 0x0550054f, 0x05520551, + 0x05540553, 0x05560555, 0x05580557, 0x055a0559, 0x055c055b, 0x055e055d, 0x0560055f, 0x05620561, 0x05640563, 0x05660565, 0x05680567, 0x056a0569, + 0x056c056b, 0x05b9006d, 0x056f056e, 0x05710570, 0x05730572, 0x05750574, 0x05770576, 0x05790578, 0x057b057a, 0x057d057c, 0x057f057e, 0x05810580, + 0x05830582, 0x05850584, 0x05870586, 0x05890588, 0x058b058a, 0x058d058c, 0x058f058e, 0x05910590, 0x05930592, 0x05950594, 0x05970596, 0x05990598, + 0x059b059a, 0x059d059c, 0x059f059e, 0x05a105a0, 0x05a305a2, 0x05a505a4, 0x05a705a6, 0x05a905a8, 0x05ab05aa, 0x05ad05ac, 0x05af05ae, 0x05b105b0, + 0x05b305b2, 0x05b505b4, 0x05b705b6, 0x05b905b8, 0x05bb05ba, 0x05bd05bc, 0x05bf05be, 0x05c105c0, 0x05c305c2, 0x05c505c4, 0x05c705c6, 0x05c905c8, + 0x05cb05ca, 0x05cd05cc, 0x05cf05ce, 0x05d105d0, 0x05d305d2, 0x05d505d4, 0x05d705d6, 0x05d905d8, 0x05db05da, 0x05dd05dc, 0x05df05de, 0x05e105e0, + 0x05e305e2, 0x05e505e4, 0x05e705e6, 0x05e905e8, 0x05eb05ea, 0x05ed05ec, 0x05ef05ee, 0x05f105f0, 0x05f305f2, 0x05f505f4, 0x05f705f6, 0x05f905f8, + 0x05fb05fa, 0x05fd05fc, 0x06ff05fe, 0x06010600, 0x06030602, 0x06050604, 0x06070606, 0x06090608, 0x060b060a, 0x060d060c, 0x070f060e, 0x30696e75, + 0x84646130, 0x30312207, 0x20078630, 0x20078631, 0x20078632, 0x20078633, 0x20078634, 0x20078635, 0x20078638, 0x20078639, 0x20078661, 0x20078662, + 0x20078665, 0x21078566, 0x07863031, 0x31205786, 0x31205786, 0x31205786, 0x31215786, 0x20278636, 0x86078637, 0x86312067, 0x86312067, 0x86312067, + 0x63312167, 0xc7862786, 0x85303221, 0x3132210f, 0x6f860786, 0x6f863220, 0x6f863220, 0x6f863220, 0x6f863220, 0x6f863220, 0x6f863220, 0x6f863220, + 0x6f863220, 0x6f863220, 0x6f863220, 0x6f873220, 0x3220e786, 0x3320e786, 0x33206f86, 0x33206f86, 0x33206f86, 0x33206f86, 0x33206f86, 0x33206f86, + 0x33206f86, 0x33206f86, 0x33206f86, 0x33206f86, 0x33206f86, 0x33206f86, 0x33206f86, 0x34216f86, 0x20e78530, 0x206f8634, 0x206f8634, 0x206f8634, + 0x206f8634, 0x206f8634, 0x206f8634, 0x206f8634, 0x206f8634, 0x206f8634, 0x206f8634, 0x206f8634, 0x206f8634, 0x206f8634, 0x216f8635, 0x77853135, + 0x6f863520, 0x6f863520, 0x6f863520, 0x6f863520, 0x6f863520, 0x6f863520, 0x6f863520, 0x6f863520, 0x6f863520, 0x6f863520, 0x3f413620, 0x86362006, + 0x863620cf, 0x8636205f, 0x8636205f, 0x8636205f, 0x8636205f, 0x8636205f, 0x8636205f, 0x8636205f, 0x8636205f, 0x8736205f, 0x20cf865f, 0x21cf8636, + 0xc7853037, 0x86313721, 0x207f8607, 0x207f8637, 0x207f8637, 0x207f8637, 0x207f8637, 0x207f8637, 0x20778637, 0x20778637, 0x20778637, 0x20778637, + 0x20678637, 0x21678661, 0x67853161, 0x57866120, 0x1f866120, 0x1f866220, 0x5f866520, 0x5f866520, 0xaf866620, 0x27856620, 0x85313221, 0x433220ef, + 0x3220060f, 0x20060f43, 0x060f4332, 0xc7433320, 0x30332106, 0x33216785, 0x21c78530, 0xa7853033, 0x07433320, 0x38332106, 0x33217f85, 0x21d78538, + 0x77853833, 0x85383321, 0x3833215f, 0x38202f86, 0x3321d785, 0x21cf8538, 0x8f853833, 0x85383321, 0x3933218f, 0x3322b785, 0xd7843139, 0x41393321, + 0x3321053f, 0x20778639, 0x20678639, 0x20678639, 0x20678639, 0x21df8539, 0x6f863933, 0x6f863920, 0x6f863920, 0x47413920, 0x39332105, 0x39207786, + 0x2105bf41, 0x7f863933, 0x7f863920, 0x20065741, 0x06574133, 0x86613321, 0x065f4177, 0x86613321, 0x86612077, 0x86612077, 0x86612077, 0x86612077, + 0x86612077, 0x86612077, 0x86612077, 0x061f4577, 0x86613321, 0x06af4177, 0xaf413320, 0x62332206, 0x20f78531, 0x20f78662, 0x207f8662, 0x20f78662, + 0x207f8662, 0x207f8662, 0x207f8662, 0x207f8662, 0x207f8662, 0x207f8662, 0x207f8662, 0x207f8662, 0x20f78662, 0x207f8662, 0x21f78662, 0x77853163, + 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, 0x77866320, + 0x77866320, 0x57866620, 0x4f856620, 0x67423420, 0x42342006, 0x34210667, 0x20878530, 0x066f4234, 0x85303421, 0x3034212f, 0x34218785, 0x85378730, + 0x30342187, 0x34208785, 0x21069742, 0x87853034, 0x85303421, 0x30342187, 0x34218785, 0x21878530, 0x87853034, 0x85303421, 0x463420ff, 0x3429064f, + 0x75073131, 0x3430696e, 0x207f8631, 0x05074131, 0x86313421, 0x8631207f, 0x8631207f, 0x8631207f, 0x0647437f, 0x47433420, 0x43342006, 0x34200647, + 0x21064743, 0x7f863134, 0x7f863120, 0x7f863120, 0x85663121, 0x0667466f, 0x67463420, 0x32342106, 0x5f437f86, 0x46342006, 0x34200667, 0x21066746, + 0x7f863234, 0x20066746, 0x06674634, 0x67463420, 0x46342006, 0x34200667, 0x20066746, 0x06674634, 0x67463420, 0x32342106, 0x67467f86, 0x33342206, + 0x20878530, 0x46ff8633, 0x34200677, 0x20067746, 0x06774634, 0x77463420, 0x46342006, 0x34200677, 0x20067746, 0x06774634, 0x77463420, 0x46342006, + 0x34210677, 0x067f4133, 0x20067746, 0x06774634, 0x77463420, 0x46342006, 0x34200677, 0x21067746, 0x7f863434, 0xff863420, 0x20068746, 0x06874634, + 0x87463420, 0x46342006, 0x34210687, 0x067f4134, 0x20068746, 0x06874634, 0x87463420, 0x46342006, 0x34200687, 0x20068746, 0x06874634, 0x87463420, + 0x46342006, 0x34200687, 0x20068746, 0x06874634, 0x86353421, 0x4135207f, 0x974606ff, 0x46342006, 0x34200697, 0x20069746, 0x06974634, 0x97463420, + 0x46342006, 0x34200697, 0x20069746, 0x06974634, 0x97463420, 0x46342006, 0x34210697, 0x067f4135, 0xff413520, 0x06a74606, 0xa7463420, 0x37342106, + 0x37467f86, 0x45342006, 0x34200617, 0x20061745, 0x06174534, 0x17453420, 0x45342006, 0x34200617, 0x20061745, 0x06174534, 0x17453420, 0x45342006, + 0x34200617, 0x20061745, 0x06174534, 0x17453420, 0x61342106, 0xef446f86, 0x44342006, 0x342006ef, 0x2106ef44, 0x4f436134, 0x06cf4406, 0xcf443420, + 0x44342006, 0x342006cf, 0x2006cf44, 0x06cf4434, 0xcf443420, 0x44342006, 0x342006cf, 0x2006cf44, 0x06cf4434, 0x9f443420, 0x44342006, 0x3421069f, + 0x067f4263, 0x20068744, 0x06874434, 0x87443420, 0x44342006, 0x34200687, 0x20067744, 0x06774434, 0x67443420, 0x44342006, 0x34210667, 0x064f4163, + 0x4f866420, 0x4f426420, 0x86642006, 0x416420df, 0x642006cf, 0x2006cf43, 0x06cf4364, 0x4f436420, 0x42642006, 0x6420064f, 0x20064f44, 0x05d74464, + 0x86643421, 0x426420ff, 0x642006cf, 0x2006cf43, 0x06cf4364, 0xcf416420, 0x86642006, 0x3065217f, 0x21054f43, 0x07863165, 0x65207f86, 0x65207f86, + 0x65207f86, 0xa7477f86, 0x47342006, 0x342106a7, 0x207f8665, 0x207f8665, 0x207f8665, 0x207f8665, 0x207f8665, 0x207f8665, 0x207f8665, 0x217f8665, + 0x77853066, 0x86316621, 0x207f8607, 0x457f8666, 0x3421067f, 0x457f8666, 0x66200787, 0x6620ff86, 0x66207f86, 0x35207f85, 0x22066f4b, 0x84313135, + 0x3135214f, 0x35218f85, 0x208f8531, 0x06df4435, 0xdf443520, 0x44352006, 0x35200647, 0x20064744, 0x06474435, 0x47443520, 0x44352006, 0x35200647, + 0x20064744, 0x06474435, 0x47443520, 0x44352006, 0x35210647, 0x44678633, 0x35200647, 0x20064744, 0x06474435, 0x47443520, 0x44352006, 0x35200647, + 0x20064744, 0x06474435, 0x47443520, 0x44352006, 0x35200647, 0x20064744, 0x06474435, 0x47443520, 0x44352006, 0x35200647, 0x20064744, 0x06474435, + 0x47443520, 0x44352006, 0x35200647, 0x20064744, 0x06474435, 0x47443520, 0x44352006, 0x35200647, 0x20064744, 0x06474435, 0x47443520, 0x44352006, + 0x35200647, 0x20064744, 0x06474435, 0x47443520, 0x44352006, 0x35200637, 0x20063744, 0x06374435, 0x37443520, 0x44352006, 0x35200637, 0x20063744, + 0x06374435, 0x41363521, 0x3f44068f, 0x44352006, 0x3521063f, 0x055f4236, 0xe74a3520, 0x4a352006, 0x352006e7, 0x2006e74a, 0x06e74a35, 0xe74a3520, + 0x36352106, 0x4a066741, 0x352006e7, 0x2006e74a, 0x06e74a35, 0x42363521, 0x3520055f, 0x2006e74a, 0x06e74a35, 0xe74a3520, 0x44352006, 0x352006af, + 0x2006af44, 0x06e74a35, 0xe74a3520, 0x4a352006, 0x352006e7, 0x2106e74a, 0x5f423735, 0x4a352005, 0x352006ef, 0x2006ef4a, 0x06ef4a35, 0xef4a3520, + 0x37352106, 0x2105df42, 0x7f863735, 0x2206ff4a, 0x42303835, 0x38200587, 0x3820ff86, 0x2105df42, 0xdf423835, 0x4a352005, 0x3520068f, 0x20068f4a, + 0x068f4a35, 0x42383521, 0x352005df, 0x20068f4a, 0x068f4a35, 0x3f426520, 0x30312105, 0x82053744, 0x82578407, 0x82578407, 0x82578407, 0x83342007, + 0x20078277, 0x20078635, 0x84078636, 0x84178257, 0x200782d7, 0x20178639, 0x20078661, 0x20078662, 0x84078663, 0x842782d7, 0x200782d7, 0x44178566, + 0x31210537, 0x05374430, 0x7f860782, 0x82053744, 0x447f860f, 0x0f820537, 0x37447f86, 0x860f8205, 0x0537447f, 0x7f860f82, 0x82053744, 0x447f860f, + 0x0f820537, 0x37447f86, 0x30312105, 0x82053744, 0x85312007, 0x8666208f, 0x0537447f, 0x7f861782, 0x82053744, 0x447f860f, 0x0f820537, 0x37447f86, + 0x860f8205, 0x8666207f, 0x856620ff, 0x4165207f, 0x312105bf, 0x05bf4165, 0x67850782, 0xbf416520, 0x850f8205, 0x41652067, 0x312105bf, 0x05bf4a65, + 0x37410782, 0x86652005, 0x86652097, 0x44652097, 0x312105af, 0x23778565, 0x30303032, 0x3222bf83, 0xc7843030, 0x5f840782, 0x33200782, 0x5f841786, + 0x35200f82, 0xc7840f86, 0x37200f82, 0xc7840f86, 0x39200f82, 0xc7840f86, 0x45303221, 0x07820507, 0x17853120, 0x57863120, 0x47863120, 0x47863120, + 0x47863120, 0x82051f45, 0x8566202f, 0x05cf492f, 0x49303221, 0x078205cf, 0xc7493786, 0x860f8205, 0x053f4527, 0x45303221, 0x0782053f, 0x3f45b786, + 0x860f8205, 0x053f4537, 0x6f860f82, 0x82051f45, 0x8564200f, 0x051f456f, 0x57860f82, 0x2105f744, 0xf7443032, 0x86078205, 0x05f74437, 0xef860f82, + 0x2105ef44, 0x67443032, 0x30322105, 0x8205ef43, 0x06374107, 0x8205d743, 0x43ef860f, 0x0f8205d7, 0x43063741, 0x0f8205d7, 0x43063741, 0x0f8205d7, + 0x97856320, 0x8205d743, 0x8565200f, 0x0587430f, 0x38303223, 0x860f8662, 0x86382027, 0x05274ec7, 0x4d303221, 0x0782059f, 0x27853120, 0x8205b748, + 0x4897860f, 0x0f8205af, 0x9f4d9786, 0x860f8205, 0x059f4d97, 0x97860f82, 0x8205cf48, 0x486f860f, 0x0f8205cf, 0xcf489786, 0x30322105, 0x8205cf48, + 0x48778607, 0x0f8205cf, 0x4d069741, 0x0f82059f, 0x4d069741, 0x0f820597, 0x974d7786, 0x31322105, 0x20061f42, 0x05274631, 0x46313221, 0x07820527, + 0x31204785, 0x82051f46, 0x2047850f, 0x051f4631, 0xa7410f82, 0x4a312005, 0x0f820567, 0x2005a741, 0x052f4631, 0x37410f82, 0x46312005, 0x0f82052f, + 0x20053741, 0x052f4631, 0xff410f82, 0x4a312005, 0x32210547, 0x05474a31, 0xbf420782, 0x4a312005, 0x0f820547, 0x20054741, 0x05474a31, 0x47410f82, + 0x4a312005, 0x0f820547, 0x3120cf85, 0x8205474a, 0x0547410f, 0x474a3120, 0x410f8205, 0x31200547, 0x82055f4f, 0x0547410f, 0x5f4f3120, 0x31322105, + 0x2006bf41, 0x055f4f31, 0x7f860f82, 0x8205774a, 0x417f860f, 0x312006c7, 0x8205674f, 0x4fff8617, 0x0f820567, 0x974aff86, 0x860f8205, 0x05974aff, + 0xff860f82, 0x8205974a, 0x41ff860f, 0x312006c7, 0x2105974a, 0xc7413132, 0x4a312006, 0x0f820597, 0x674f7f86, 0x860f8205, 0x06cf41ff, 0x674f3120, + 0x86178205, 0x05c74a7f, 0x7f860f82, 0x8205a744, 0x4f7f860f, 0x0f820567, 0xe74a7f86, 0x31322705, 0x75073163, 0x0782696e, 0xe74aff86, 0x860f8205, + 0x056f4f7f, 0x7f860f82, 0x8205f74a, 0x067f410f, 0x7f866320, 0x82056f4f, 0x4b7f8617, 0x0f820507, 0x6f4f7f86, 0x860f8205, 0x05df467f, 0x4b313221, + 0x07820517, 0x174b7f86, 0x860f8205, 0x05174b7f, 0x7f860f82, 0x8205174b, 0x4b7f860f, 0x0f820517, 0x4b06ff41, 0x0f820517, 0x4b06ff41, 0x32210517, + 0x05cf4631, 0xef860782, 0x6f866520, 0x8205cf46, 0x466f8617, 0x0f8205cf, 0xcf466f86, 0x860f8205, 0x05cf466f, 0xe7860f82, 0x8205ff4a, 0x4ae7860f, + 0x0f8205ff, 0xc746e786, 0x31322105, 0x8205ff4a, 0x46778607, 0x0f82052f, 0xc7467786, 0x860f8205, 0x05c74677, 0x77860f82, 0x21064f46, 0xe7866631, + 0x8205c746, 0x20e7861f, 0x537f8666, 0x17820557, 0x32207f85, 0x20067f46, 0x067f4632, 0x43303221, 0x322105df, 0x21778530, 0xdf433032, 0x30322105, + 0x2005d742, 0x05bf5032, 0x30323222, 0x2105d741, 0x6f853032, 0x85303221, 0x503220ef, 0x1f8205bf, 0x32216f85, 0x05574330, 0x8f463220, 0x31322106, + 0x87465f86, 0x46322006, 0xdf53067f, 0x53322006, 0x078206df, 0xaf4b4f86, 0x860f8205, 0x8631204f, 0x058750b7, 0x46323221, 0x322106a7, 0x509f8632, + 0x1782055f, 0x5f509f86, 0x410f8205, 0x32200507, 0x82055750, 0x4bdf8636, 0x0f8205df, 0x20055741, 0x05df4b32, 0x57410f82, 0x4b322005, 0x0f8205df, + 0xdf4be786, 0x860f8205, 0x05df4b4f, 0x4b323221, 0x078205c7, 0x2005bf41, 0x05c74b32, 0x67860f82, 0x2006cf46, 0x06cf4632, 0xc74b3220, 0x861f8205, + 0x05bf4ba7, 0xf7860f82, 0x8205bf4b, 0x4bf7860f, 0x0f8205bf, 0x9745ff86, 0x45322006, 0x32200697, 0x2105bf4b, 0xbf4b3232, 0x86078205, 0x05bf4b77, + 0xdf860f82, 0x82050750, 0x4bdf860f, 0x0f8205cf, 0xcf4bdf86, 0x860f8205, 0x863520df, 0x069f457f, 0x67473220, 0x4b322006, 0x322105cf, 0x05cf4b32, + 0xd7410782, 0x05bf4b06, 0x8f410f82, 0x05bf4b06, 0xe7860f82, 0x8205a74b, 0x0617420f, 0x2105a74b, 0xb7473232, 0x4b322006, 0x0f8205a7, 0x4b064741, + 0x0f8205a7, 0xcf47cf86, 0x4b322006, 0x178205a7, 0xa74b6786, 0x860f8205, 0x05a74b67, 0x4f410f82, 0x05a74b06, 0xcf860f82, 0x8205a74b, 0x064f410f, + 0x2105e749, 0xe7493232, 0x86078205, 0x05e7497f, 0x7f860f82, 0x8205e749, 0x064f410f, 0x8205a74b, 0x064f410f, 0x8205af4b, 0x064f410f, 0x7f863820, + 0x20061f48, 0x061f4832, 0x47563220, 0x32322105, 0x2006e746, 0x06e74632, 0x2f513220, 0x41178205, 0x2f51064f, 0x430f8205, 0x2f510687, 0x860f8205, + 0x052f51f7, 0xf7860f82, 0x82052f51, 0x5677860f, 0x0f820547, 0x4756f786, 0x860f8205, 0x06e746f7, 0xe7463220, 0x48322006, 0x322006a7, 0x2006e746, + 0x055f5132, 0x46323221, 0x3220067f, 0x20067f46, 0x06474832, 0x7f463220, 0x46322006, 0x3220066f, 0x21050f51, 0x27463232, 0x51322006, 0x0f82050f, + 0x9755bf86, 0x860f8205, 0x06f7458f, 0x86633221, 0x06f7458f, 0xf7453220, 0x50322006, 0x322105cf, 0x06b74532, 0xcf503220, 0x860f8205, 0x05cf503f, + 0x3f860f82, 0x2006c745, 0x05974c32, 0x45323221, 0x322006c7, 0x2006c745, 0x05cf5032, 0x8f861782, 0x8205cf50, 0x064f410f, 0x8205cf50, 0x064f410f, + 0x21056f4c, 0x0f453332, 0x44332006, 0x575806ff, 0x41178206, 0x332005e7, 0x2006ff44, 0x06e74433, 0x9f443320, 0x55332006, 0x32210527, 0x06774833, + 0x8206d757, 0x57bf850f, 0x0f8206d7, 0x3320bf85, 0x20068f41, 0x068f4133, 0x8f413320, 0x06df5706, 0x41333221, 0xdf57068f, 0x420f8206, 0x33200587, + 0x20063f4a, 0x06774833, 0x3f4a3320, 0x48332006, 0x33200677, 0x20063f4a, 0x06774833, 0x3f4a3320, 0x06df5706, 0x30353227, 0x6e750730, 0x20078269, + 0x42078631, 0x352105ff, 0x05874230, 0xff863520, 0x0f463520, 0x30352106, 0x35217785, 0x05374130, 0x17413520, 0x46352006, 0x35200617, 0x20061746, + 0x06174135, 0x17463520, 0x30352106, 0x3520f785, 0x21061746, 0xf7853035, 0x2006b751, 0x06b75132, 0x7f860782, 0x21062f46, 0x7f433135, 0x46352005, + 0x35200637, 0x21069f4a, 0x7f863135, 0x7f433120, 0x31352105, 0x5105b741, 0x478206f7, 0x51050743, 0x0f8206f7, 0x31207f86, 0x20057f44, 0x064f4635, + 0xaf413520, 0x41352006, 0x352006af, 0x2105d756, 0x5f463532, 0x4d352006, 0x35200607, 0x8205d756, 0x46ff8617, 0x35200677, 0x20067746, 0x05d75635, + 0x17421f82, 0x56352005, 0x0f8205d7, 0x20054f45, 0x067f4635, 0x86323521, 0x8632207f, 0x303321ff, 0x4d057741, 0x8f52064f, 0x52322006, 0x0782068f, + 0xaf46ff86, 0x068f5206, 0xff861782, 0x82058f52, 0x52ff860f, 0x0f82058f, 0x6f4dff86, 0x46352006, 0x8f5206af, 0x861f8206, 0x058f527f, 0x8f523220, + 0x41078206, 0xc746067f, 0x068f5206, 0x37431782, 0x068f5205, 0x7f860f82, 0x82058f52, 0x467f860f, 0x8f5206cf, 0x86178206, 0x058f52ff, 0xff860f82, + 0x21058f52, 0xcf463532, 0x068f5206, 0x7f860f82, 0x5206cf46, 0x1782068f, 0x6f4c7f86, 0x46352006, 0x352006cf, 0x20066f4c, 0x06cf4635, 0x6f4c3520, + 0x46352006, 0x352006cf, 0x20066f4c, 0x06cf4635, 0x82069f52, 0x20ff864f, 0x067f4136, 0x2006d746, 0x06d74635, 0x2006a752, 0x06a75232, 0x7f860782, + 0x5206e746, 0x178206a7, 0x52067f42, 0x0f8205a7, 0x5206ff41, 0x0f8205a7, 0xff46ff86, 0x06a75206, 0x7f861782, 0x5206ff46, 0x322006a7, 0x8206a752, + 0x067f4307, 0x8205a752, 0x467f860f, 0xa75206ff, 0x86178206, 0x06cf4e7f, 0x8206a752, 0x06ff4117, 0x5206ff46, 0x178206a7, 0x52067f41, 0x322005a7, + 0x8206a752, 0x42312007, 0xa7520587, 0x860f8205, 0x05a7527f, 0x7f860f82, 0x8205a752, 0x06ff410f, 0x82053f5d, 0x06ff410f, 0x2006274f, 0x06ff4635, + 0x86383521, 0x060747ff, 0x07473520, 0x47352006, 0x35200607, 0x20060747, 0x06074735, 0x07473520, 0x4d352006, 0x352006ef, 0x20060747, 0x06ef4d35, + 0x07473520, 0x4d352006, 0x352006ef, 0x20060747, 0x06ef4d35, 0x07473520, 0x45352006, 0x35200677, 0x20060747, 0x06ef4d35, 0x07473520, 0x4d352006, + 0x352006ef, 0x20067745, 0x06774535, 0x77453520, 0x47352006, 0x35200607, 0x20067745, 0x06ef4d35, 0xef4d3520, 0x45352006, 0x35200677, 0x20067745, + 0x06774535, 0x77453520, 0x45352006, 0x35200677, 0x20067745, 0x06774535, 0xef4d3520, 0x4f352006, 0x352006b7, 0x2006ef4d, 0x06ef4d35, 0x6f473520, + 0x47352006, 0x3520066f, 0x20066f47, 0x066f4735, 0x575d3520, 0x35322105, 0x2006ef4d, 0x067f4735, 0xbf4f3520, 0x4d352006, 0x352006ef, 0x8205b758, + 0x067f4127, 0x8205575d, 0x06ff410f, 0x2105575d, 0xef4d3532, 0x63352206, 0x05ff4131, 0x2006c747, 0x06c74735, 0xc7473520, 0x63352106, 0x4706ff41, + 0x352006c7, 0x2006ef4d, 0x05e75835, 0xff414782, 0x05ef5806, 0x77860f82, 0x8205575d, 0x4777860f, 0x352006ef, 0x2006ef47, 0x06ef4735, 0x43643521, + 0xe74d06f7, 0x58352006, 0x322105ff, 0x06e74d35, 0x45643521, 0xe74d0677, 0x58352006, 0x1f8205ff, 0x2f487786, 0x48352006, 0x3520062f, 0x20062f48, + 0x06e74d35, 0x2f483520, 0x58352006, 0x322105ff, 0x062f4835, 0x2f483520, 0x48352006, 0x3520062f, 0x20062f48, 0x062f4835, 0xf74d3520, 0x48352006, + 0x3520062f, 0x2006f74d, 0x062f4835, 0xf74d3520, 0x58352006, 0x578205ff, 0x4d067743, 0x352006ff, 0x8205c754, 0x48ff8617, 0x35200657, 0x2006ff4d, + 0x06ff4d35, 0x2f543520, 0x35322105, 0x2006ff4d, 0x05ff5835, 0x77410f82, 0x05ff5806, 0x77430f82, 0x054f5406, 0xff860f82, 0x2006ff4d, 0x06ff4d35, + 0xc7543520, 0x201f8205, 0x05d74164, 0x2006ff4d, 0x05576135, 0x57363221, 0x3221054f, 0x064f4537, 0xaf4b3720, 0x44372006, 0x372006c7, 0xc7441f87, + 0x57372006, 0x3221056f, 0x06c74437, 0x85363721, 0x4b3720cf, 0x372006c7, 0x2006c744, 0x06c74b37, 0x6f573720, 0x37322105, 0x2006c74b, 0x06c74437, + 0xc74b3720, 0x43372006, 0x372006d7, 0x2006bf43, 0x06bf4337, 0xbf433720, 0x43372006, 0x372006bf, 0x2006bf43, 0x06bf4337, 0xbf433720, 0x43372006, + 0x372006bf, 0x2006bf43, 0x06bf4337, 0xbf433720, 0x43372006, 0x372006bf, 0x2006bf43, 0x06bf4337, 0xbf433720, 0x43372006, 0x372006bf, 0x2006bf43, + 0x06bf4337, 0xbf433720, 0x43372006, 0x372006bf, 0x2006bf43, 0x06bf4337, 0xbf433720, 0x43372006, 0x372006bf, 0x2006b743, 0x06b74337, 0xb7433720, + 0x43372006, 0x372006b7, 0x2006b743, 0x06b74337, 0xb7433720, 0x43372006, 0x372006b7, 0x2006b743, 0x06b74337, 0xb7433720, 0x51372006, 0x372006a7, + 0x2006b743, 0x06a75137, 0x9f433720, 0x43372006, 0x3720068f, 0x20068f43, 0x06ef4237, 0xd7423720, 0x42372006, 0x372006af, 0x2006af42, 0x06af4237, + 0xaf423720, 0x42372006, 0x372006af, 0x21057757, 0x67503732, 0x42372006, 0x37200667, 0x20066750, 0x06e74c39, 0xe7453920, 0x45392006, 0x39200677, + 0x2006b741, 0x203f8639, 0x067f4239, 0x7f423920, 0x4a612006, 0x61200657, 0x2006e748, 0x064f4261, 0x4f426120, 0x4a622006, 0x6220064f, 0x21064f4a, + 0xd7423062, 0x30622105, 0x2005cf46, 0x064f4a62, 0x4f4a6220, 0x30622106, 0x20055743, 0x064f4a62, 0x42306221, 0x622005d7, 0x20060f4a, 0x060f4a62, + 0x86316221, 0x060f4a3f, 0x47316221, 0x6520058f, 0x65211786, 0x05774731, 0xe7496520, 0x49652006, 0x652006e7, 0x2006e749, 0x06e74965, 0xa7496520, + 0x55652005, 0x078206cf, 0x75073124, 0x0782696e, 0x07853220, 0x2105b745, 0xff413065, 0x87078205, 0x07332817, 0x66696e75, 0x05666665, 0x16526ffa, + 0x00000059, +}; + diff --git a/thirdparty/imgui_suite/generated/fonts/src/imgui_DroidSans.cpp b/thirdparty/imgui_suite/generated/fonts/src/imgui_DroidSans.cpp new file mode 100644 index 00000000000..82d11f1f57f --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/imgui_DroidSans.cpp @@ -0,0 +1,5 @@ +#include "imgui_DroidSans.h" +#include "DroidSans.inc" +ImFont* ImGui::AddFontDroidSans(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { + return io.Fonts->AddFontFromMemoryCompressedTTF(DroidSans_compressed_data, DroidSans_compressed_size, size_pixels, font_cfg, glyph_ranges); +} diff --git a/thirdparty/imgui_suite/generated/fonts/src/imgui_FiraCodeRetina.cpp b/thirdparty/imgui_suite/generated/fonts/src/imgui_FiraCodeRetina.cpp new file mode 100644 index 00000000000..82bbf8c5701 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/imgui_FiraCodeRetina.cpp @@ -0,0 +1,5 @@ +#include "imgui_FiraCodeRetina.h" +#include "FiraCodeRetina.inc" +ImFont* ImGui::AddFontFiraCodeRetina(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { + return io.Fonts->AddFontFromMemoryCompressedTTF(FiraCodeRetina_compressed_data, FiraCodeRetina_compressed_size, size_pixels, font_cfg, glyph_ranges); +} diff --git a/thirdparty/imgui_suite/generated/fonts/src/imgui_FontAwesomeRegular.cpp b/thirdparty/imgui_suite/generated/fonts/src/imgui_FontAwesomeRegular.cpp new file mode 100644 index 00000000000..04825064884 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/imgui_FontAwesomeRegular.cpp @@ -0,0 +1,5 @@ +#include "imgui_FontAwesomeRegular.h" +#include "FontAwesomeRegular.inc" +ImFont* ImGui::AddFontFontAwesomeRegular(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { + return io.Fonts->AddFontFromMemoryCompressedTTF(FontAwesomeRegular_compressed_data, FontAwesomeRegular_compressed_size, size_pixels, font_cfg, glyph_ranges); +} diff --git a/thirdparty/imgui_suite/generated/fonts/src/imgui_FontAwesomeSolid.cpp b/thirdparty/imgui_suite/generated/fonts/src/imgui_FontAwesomeSolid.cpp new file mode 100644 index 00000000000..8c30041defa --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/imgui_FontAwesomeSolid.cpp @@ -0,0 +1,5 @@ +#include "imgui_FontAwesomeSolid.h" +#include "FontAwesomeSolid.inc" +ImFont* ImGui::AddFontFontAwesomeSolid(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { + return io.Fonts->AddFontFromMemoryCompressedTTF(FontAwesomeSolid_compressed_data, FontAwesomeSolid_compressed_size, size_pixels, font_cfg, glyph_ranges); +} diff --git a/thirdparty/imgui_suite/generated/fonts/src/imgui_ProggyDotted.cpp b/thirdparty/imgui_suite/generated/fonts/src/imgui_ProggyDotted.cpp new file mode 100644 index 00000000000..52bf5811868 --- /dev/null +++ b/thirdparty/imgui_suite/generated/fonts/src/imgui_ProggyDotted.cpp @@ -0,0 +1,5 @@ +#include "imgui_ProggyDotted.h" +#include "ProggyDotted.inc" +ImFont* ImGui::AddFontProggyDotted(ImGuiIO& io, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { + return io.Fonts->AddFontFromMemoryCompressedTTF(ProggyDotted_compressed_data, ProggyDotted_compressed_size, size_pixels, font_cfg, glyph_ranges); +} diff --git a/thirdparty/imgui_suite/generated/gl3w/include/GL/gl3w.h b/thirdparty/imgui_suite/generated/gl3w/include/GL/gl3w.h new file mode 100644 index 00000000000..9026c629dd8 --- /dev/null +++ b/thirdparty/imgui_suite/generated/gl3w/include/GL/gl3w.h @@ -0,0 +1,1393 @@ +/* + * This file was generated with gl3w_gen.py, part of gl3w + * (hosted at https://github.com/skaslev/gl3w) + * + * This is free and unencumbered software released into the public domain. + * + * Anyone is free to copy, modify, publish, use, compile, sell, or + * distribute this software, either in source code form or as a compiled + * binary, for any purpose, commercial or non-commercial, and by any + * means. + * + * In jurisdictions that recognize copyright laws, the author or authors + * of this software dedicate any and all copyright interest in the + * software to the public domain. We make this dedication for the benefit + * of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * software under copyright law. + * + * 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 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. + */ + +#ifndef __gl3w_h_ +#define __gl3w_h_ + +#include + +#ifndef GL3W_API +#define GL3W_API +#endif + +#ifndef __gl_h_ +#define __gl_h_ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define GL3W_OK 0 +#define GL3W_ERROR_INIT -1 +#define GL3W_ERROR_LIBRARY_OPEN -2 +#define GL3W_ERROR_OPENGL_VERSION -3 + +typedef void (*GL3WglProc)(void); +typedef GL3WglProc (*GL3WGetProcAddressProc)(const char *proc); + +/* gl3w api */ +GL3W_API int gl3wInit(void); +GL3W_API int gl3wInit2(GL3WGetProcAddressProc proc); +GL3W_API int gl3wIsSupported(int major, int minor); +GL3W_API GL3WglProc gl3wGetProcAddress(const char *proc); + +/* gl3w internal state */ +union GL3WProcs { + GL3WglProc ptr[659]; + struct { + PFNGLACTIVESHADERPROGRAMPROC ActiveShaderProgram; + PFNGLACTIVETEXTUREPROC ActiveTexture; + PFNGLATTACHSHADERPROC AttachShader; + PFNGLBEGINCONDITIONALRENDERPROC BeginConditionalRender; + PFNGLBEGINQUERYPROC BeginQuery; + PFNGLBEGINQUERYINDEXEDPROC BeginQueryIndexed; + PFNGLBEGINTRANSFORMFEEDBACKPROC BeginTransformFeedback; + PFNGLBINDATTRIBLOCATIONPROC BindAttribLocation; + PFNGLBINDBUFFERPROC BindBuffer; + PFNGLBINDBUFFERBASEPROC BindBufferBase; + PFNGLBINDBUFFERRANGEPROC BindBufferRange; + PFNGLBINDBUFFERSBASEPROC BindBuffersBase; + PFNGLBINDBUFFERSRANGEPROC BindBuffersRange; + PFNGLBINDFRAGDATALOCATIONPROC BindFragDataLocation; + PFNGLBINDFRAGDATALOCATIONINDEXEDPROC BindFragDataLocationIndexed; + PFNGLBINDFRAMEBUFFERPROC BindFramebuffer; + PFNGLBINDIMAGETEXTUREPROC BindImageTexture; + PFNGLBINDIMAGETEXTURESPROC BindImageTextures; + PFNGLBINDPROGRAMPIPELINEPROC BindProgramPipeline; + PFNGLBINDRENDERBUFFERPROC BindRenderbuffer; + PFNGLBINDSAMPLERPROC BindSampler; + PFNGLBINDSAMPLERSPROC BindSamplers; + PFNGLBINDTEXTUREPROC BindTexture; + PFNGLBINDTEXTUREUNITPROC BindTextureUnit; + PFNGLBINDTEXTURESPROC BindTextures; + PFNGLBINDTRANSFORMFEEDBACKPROC BindTransformFeedback; + PFNGLBINDVERTEXARRAYPROC BindVertexArray; + PFNGLBINDVERTEXBUFFERPROC BindVertexBuffer; + PFNGLBINDVERTEXBUFFERSPROC BindVertexBuffers; + PFNGLBLENDCOLORPROC BlendColor; + PFNGLBLENDEQUATIONPROC BlendEquation; + PFNGLBLENDEQUATIONSEPARATEPROC BlendEquationSeparate; + PFNGLBLENDEQUATIONSEPARATEIPROC BlendEquationSeparatei; + PFNGLBLENDEQUATIONIPROC BlendEquationi; + PFNGLBLENDFUNCPROC BlendFunc; + PFNGLBLENDFUNCSEPARATEPROC BlendFuncSeparate; + PFNGLBLENDFUNCSEPARATEIPROC BlendFuncSeparatei; + PFNGLBLENDFUNCIPROC BlendFunci; + PFNGLBLITFRAMEBUFFERPROC BlitFramebuffer; + PFNGLBLITNAMEDFRAMEBUFFERPROC BlitNamedFramebuffer; + PFNGLBUFFERDATAPROC BufferData; + PFNGLBUFFERSTORAGEPROC BufferStorage; + PFNGLBUFFERSUBDATAPROC BufferSubData; + PFNGLCHECKFRAMEBUFFERSTATUSPROC CheckFramebufferStatus; + PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC CheckNamedFramebufferStatus; + PFNGLCLAMPCOLORPROC ClampColor; + PFNGLCLEARPROC Clear; + PFNGLCLEARBUFFERDATAPROC ClearBufferData; + PFNGLCLEARBUFFERSUBDATAPROC ClearBufferSubData; + PFNGLCLEARBUFFERFIPROC ClearBufferfi; + PFNGLCLEARBUFFERFVPROC ClearBufferfv; + PFNGLCLEARBUFFERIVPROC ClearBufferiv; + PFNGLCLEARBUFFERUIVPROC ClearBufferuiv; + PFNGLCLEARCOLORPROC ClearColor; + PFNGLCLEARDEPTHPROC ClearDepth; + PFNGLCLEARDEPTHFPROC ClearDepthf; + PFNGLCLEARNAMEDBUFFERDATAPROC ClearNamedBufferData; + PFNGLCLEARNAMEDBUFFERSUBDATAPROC ClearNamedBufferSubData; + PFNGLCLEARNAMEDFRAMEBUFFERFIPROC ClearNamedFramebufferfi; + PFNGLCLEARNAMEDFRAMEBUFFERFVPROC ClearNamedFramebufferfv; + PFNGLCLEARNAMEDFRAMEBUFFERIVPROC ClearNamedFramebufferiv; + PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC ClearNamedFramebufferuiv; + PFNGLCLEARSTENCILPROC ClearStencil; + PFNGLCLEARTEXIMAGEPROC ClearTexImage; + PFNGLCLEARTEXSUBIMAGEPROC ClearTexSubImage; + PFNGLCLIENTWAITSYNCPROC ClientWaitSync; + PFNGLCLIPCONTROLPROC ClipControl; + PFNGLCOLORMASKPROC ColorMask; + PFNGLCOLORMASKIPROC ColorMaski; + PFNGLCOMPILESHADERPROC CompileShader; + PFNGLCOMPRESSEDTEXIMAGE1DPROC CompressedTexImage1D; + PFNGLCOMPRESSEDTEXIMAGE2DPROC CompressedTexImage2D; + PFNGLCOMPRESSEDTEXIMAGE3DPROC CompressedTexImage3D; + PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC CompressedTexSubImage1D; + PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC CompressedTexSubImage2D; + PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC CompressedTexSubImage3D; + PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC CompressedTextureSubImage1D; + PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC CompressedTextureSubImage2D; + PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC CompressedTextureSubImage3D; + PFNGLCOPYBUFFERSUBDATAPROC CopyBufferSubData; + PFNGLCOPYIMAGESUBDATAPROC CopyImageSubData; + PFNGLCOPYNAMEDBUFFERSUBDATAPROC CopyNamedBufferSubData; + PFNGLCOPYTEXIMAGE1DPROC CopyTexImage1D; + PFNGLCOPYTEXIMAGE2DPROC CopyTexImage2D; + PFNGLCOPYTEXSUBIMAGE1DPROC CopyTexSubImage1D; + PFNGLCOPYTEXSUBIMAGE2DPROC CopyTexSubImage2D; + PFNGLCOPYTEXSUBIMAGE3DPROC CopyTexSubImage3D; + PFNGLCOPYTEXTURESUBIMAGE1DPROC CopyTextureSubImage1D; + PFNGLCOPYTEXTURESUBIMAGE2DPROC CopyTextureSubImage2D; + PFNGLCOPYTEXTURESUBIMAGE3DPROC CopyTextureSubImage3D; + PFNGLCREATEBUFFERSPROC CreateBuffers; + PFNGLCREATEFRAMEBUFFERSPROC CreateFramebuffers; + PFNGLCREATEPROGRAMPROC CreateProgram; + PFNGLCREATEPROGRAMPIPELINESPROC CreateProgramPipelines; + PFNGLCREATEQUERIESPROC CreateQueries; + PFNGLCREATERENDERBUFFERSPROC CreateRenderbuffers; + PFNGLCREATESAMPLERSPROC CreateSamplers; + PFNGLCREATESHADERPROC CreateShader; + PFNGLCREATESHADERPROGRAMVPROC CreateShaderProgramv; + PFNGLCREATETEXTURESPROC CreateTextures; + PFNGLCREATETRANSFORMFEEDBACKSPROC CreateTransformFeedbacks; + PFNGLCREATEVERTEXARRAYSPROC CreateVertexArrays; + PFNGLCULLFACEPROC CullFace; + PFNGLDEBUGMESSAGECALLBACKPROC DebugMessageCallback; + PFNGLDEBUGMESSAGECONTROLPROC DebugMessageControl; + PFNGLDEBUGMESSAGEINSERTPROC DebugMessageInsert; + PFNGLDELETEBUFFERSPROC DeleteBuffers; + PFNGLDELETEFRAMEBUFFERSPROC DeleteFramebuffers; + PFNGLDELETEPROGRAMPROC DeleteProgram; + PFNGLDELETEPROGRAMPIPELINESPROC DeleteProgramPipelines; + PFNGLDELETEQUERIESPROC DeleteQueries; + PFNGLDELETERENDERBUFFERSPROC DeleteRenderbuffers; + PFNGLDELETESAMPLERSPROC DeleteSamplers; + PFNGLDELETESHADERPROC DeleteShader; + PFNGLDELETESYNCPROC DeleteSync; + PFNGLDELETETEXTURESPROC DeleteTextures; + PFNGLDELETETRANSFORMFEEDBACKSPROC DeleteTransformFeedbacks; + PFNGLDELETEVERTEXARRAYSPROC DeleteVertexArrays; + PFNGLDEPTHFUNCPROC DepthFunc; + PFNGLDEPTHMASKPROC DepthMask; + PFNGLDEPTHRANGEPROC DepthRange; + PFNGLDEPTHRANGEARRAYVPROC DepthRangeArrayv; + PFNGLDEPTHRANGEINDEXEDPROC DepthRangeIndexed; + PFNGLDEPTHRANGEFPROC DepthRangef; + PFNGLDETACHSHADERPROC DetachShader; + PFNGLDISABLEPROC Disable; + PFNGLDISABLEVERTEXARRAYATTRIBPROC DisableVertexArrayAttrib; + PFNGLDISABLEVERTEXATTRIBARRAYPROC DisableVertexAttribArray; + PFNGLDISABLEIPROC Disablei; + PFNGLDISPATCHCOMPUTEPROC DispatchCompute; + PFNGLDISPATCHCOMPUTEINDIRECTPROC DispatchComputeIndirect; + PFNGLDRAWARRAYSPROC DrawArrays; + PFNGLDRAWARRAYSINDIRECTPROC DrawArraysIndirect; + PFNGLDRAWARRAYSINSTANCEDPROC DrawArraysInstanced; + PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC DrawArraysInstancedBaseInstance; + PFNGLDRAWBUFFERPROC DrawBuffer; + PFNGLDRAWBUFFERSPROC DrawBuffers; + PFNGLDRAWELEMENTSPROC DrawElements; + PFNGLDRAWELEMENTSBASEVERTEXPROC DrawElementsBaseVertex; + PFNGLDRAWELEMENTSINDIRECTPROC DrawElementsIndirect; + PFNGLDRAWELEMENTSINSTANCEDPROC DrawElementsInstanced; + PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC DrawElementsInstancedBaseInstance; + PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC DrawElementsInstancedBaseVertex; + PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC DrawElementsInstancedBaseVertexBaseInstance; + PFNGLDRAWRANGEELEMENTSPROC DrawRangeElements; + PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC DrawRangeElementsBaseVertex; + PFNGLDRAWTRANSFORMFEEDBACKPROC DrawTransformFeedback; + PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC DrawTransformFeedbackInstanced; + PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC DrawTransformFeedbackStream; + PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC DrawTransformFeedbackStreamInstanced; + PFNGLENABLEPROC Enable; + PFNGLENABLEVERTEXARRAYATTRIBPROC EnableVertexArrayAttrib; + PFNGLENABLEVERTEXATTRIBARRAYPROC EnableVertexAttribArray; + PFNGLENABLEIPROC Enablei; + PFNGLENDCONDITIONALRENDERPROC EndConditionalRender; + PFNGLENDQUERYPROC EndQuery; + PFNGLENDQUERYINDEXEDPROC EndQueryIndexed; + PFNGLENDTRANSFORMFEEDBACKPROC EndTransformFeedback; + PFNGLFENCESYNCPROC FenceSync; + PFNGLFINISHPROC Finish; + PFNGLFLUSHPROC Flush; + PFNGLFLUSHMAPPEDBUFFERRANGEPROC FlushMappedBufferRange; + PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC FlushMappedNamedBufferRange; + PFNGLFRAMEBUFFERPARAMETERIPROC FramebufferParameteri; + PFNGLFRAMEBUFFERPARAMETERIMESAPROC FramebufferParameteriMESA; + PFNGLFRAMEBUFFERRENDERBUFFERPROC FramebufferRenderbuffer; + PFNGLFRAMEBUFFERTEXTUREPROC FramebufferTexture; + PFNGLFRAMEBUFFERTEXTURE1DPROC FramebufferTexture1D; + PFNGLFRAMEBUFFERTEXTURE2DPROC FramebufferTexture2D; + PFNGLFRAMEBUFFERTEXTURE3DPROC FramebufferTexture3D; + PFNGLFRAMEBUFFERTEXTURELAYERPROC FramebufferTextureLayer; + PFNGLFRONTFACEPROC FrontFace; + PFNGLGENBUFFERSPROC GenBuffers; + PFNGLGENFRAMEBUFFERSPROC GenFramebuffers; + PFNGLGENPROGRAMPIPELINESPROC GenProgramPipelines; + PFNGLGENQUERIESPROC GenQueries; + PFNGLGENRENDERBUFFERSPROC GenRenderbuffers; + PFNGLGENSAMPLERSPROC GenSamplers; + PFNGLGENTEXTURESPROC GenTextures; + PFNGLGENTRANSFORMFEEDBACKSPROC GenTransformFeedbacks; + PFNGLGENVERTEXARRAYSPROC GenVertexArrays; + PFNGLGENERATEMIPMAPPROC GenerateMipmap; + PFNGLGENERATETEXTUREMIPMAPPROC GenerateTextureMipmap; + PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC GetActiveAtomicCounterBufferiv; + PFNGLGETACTIVEATTRIBPROC GetActiveAttrib; + PFNGLGETACTIVESUBROUTINENAMEPROC GetActiveSubroutineName; + PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC GetActiveSubroutineUniformName; + PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC GetActiveSubroutineUniformiv; + PFNGLGETACTIVEUNIFORMPROC GetActiveUniform; + PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC GetActiveUniformBlockName; + PFNGLGETACTIVEUNIFORMBLOCKIVPROC GetActiveUniformBlockiv; + PFNGLGETACTIVEUNIFORMNAMEPROC GetActiveUniformName; + PFNGLGETACTIVEUNIFORMSIVPROC GetActiveUniformsiv; + PFNGLGETATTACHEDSHADERSPROC GetAttachedShaders; + PFNGLGETATTRIBLOCATIONPROC GetAttribLocation; + PFNGLGETBOOLEANI_VPROC GetBooleani_v; + PFNGLGETBOOLEANVPROC GetBooleanv; + PFNGLGETBUFFERPARAMETERI64VPROC GetBufferParameteri64v; + PFNGLGETBUFFERPARAMETERIVPROC GetBufferParameteriv; + PFNGLGETBUFFERPOINTERVPROC GetBufferPointerv; + PFNGLGETBUFFERSUBDATAPROC GetBufferSubData; + PFNGLGETCOMPRESSEDTEXIMAGEPROC GetCompressedTexImage; + PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC GetCompressedTextureImage; + PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC GetCompressedTextureSubImage; + PFNGLGETDEBUGMESSAGELOGPROC GetDebugMessageLog; + PFNGLGETDOUBLEI_VPROC GetDoublei_v; + PFNGLGETDOUBLEVPROC GetDoublev; + PFNGLGETERRORPROC GetError; + PFNGLGETFLOATI_VPROC GetFloati_v; + PFNGLGETFLOATVPROC GetFloatv; + PFNGLGETFRAGDATAINDEXPROC GetFragDataIndex; + PFNGLGETFRAGDATALOCATIONPROC GetFragDataLocation; + PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC GetFramebufferAttachmentParameteriv; + PFNGLGETFRAMEBUFFERPARAMETERIVPROC GetFramebufferParameteriv; + PFNGLGETFRAMEBUFFERPARAMETERIVMESAPROC GetFramebufferParameterivMESA; + PFNGLGETGRAPHICSRESETSTATUSPROC GetGraphicsResetStatus; + PFNGLGETINTEGER64I_VPROC GetInteger64i_v; + PFNGLGETINTEGER64VPROC GetInteger64v; + PFNGLGETINTEGERI_VPROC GetIntegeri_v; + PFNGLGETINTEGERVPROC GetIntegerv; + PFNGLGETINTERNALFORMATI64VPROC GetInternalformati64v; + PFNGLGETINTERNALFORMATIVPROC GetInternalformativ; + PFNGLGETMULTISAMPLEFVPROC GetMultisamplefv; + PFNGLGETNAMEDBUFFERPARAMETERI64VPROC GetNamedBufferParameteri64v; + PFNGLGETNAMEDBUFFERPARAMETERIVPROC GetNamedBufferParameteriv; + PFNGLGETNAMEDBUFFERPOINTERVPROC GetNamedBufferPointerv; + PFNGLGETNAMEDBUFFERSUBDATAPROC GetNamedBufferSubData; + PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC GetNamedFramebufferAttachmentParameteriv; + PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC GetNamedFramebufferParameteriv; + PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC GetNamedRenderbufferParameteriv; + PFNGLGETOBJECTLABELPROC GetObjectLabel; + PFNGLGETOBJECTPTRLABELPROC GetObjectPtrLabel; + PFNGLGETPOINTERVPROC GetPointerv; + PFNGLGETPROGRAMBINARYPROC GetProgramBinary; + PFNGLGETPROGRAMINFOLOGPROC GetProgramInfoLog; + PFNGLGETPROGRAMINTERFACEIVPROC GetProgramInterfaceiv; + PFNGLGETPROGRAMPIPELINEINFOLOGPROC GetProgramPipelineInfoLog; + PFNGLGETPROGRAMPIPELINEIVPROC GetProgramPipelineiv; + PFNGLGETPROGRAMRESOURCEINDEXPROC GetProgramResourceIndex; + PFNGLGETPROGRAMRESOURCELOCATIONPROC GetProgramResourceLocation; + PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC GetProgramResourceLocationIndex; + PFNGLGETPROGRAMRESOURCENAMEPROC GetProgramResourceName; + PFNGLGETPROGRAMRESOURCEIVPROC GetProgramResourceiv; + PFNGLGETPROGRAMSTAGEIVPROC GetProgramStageiv; + PFNGLGETPROGRAMIVPROC GetProgramiv; + PFNGLGETQUERYBUFFEROBJECTI64VPROC GetQueryBufferObjecti64v; + PFNGLGETQUERYBUFFEROBJECTIVPROC GetQueryBufferObjectiv; + PFNGLGETQUERYBUFFEROBJECTUI64VPROC GetQueryBufferObjectui64v; + PFNGLGETQUERYBUFFEROBJECTUIVPROC GetQueryBufferObjectuiv; + PFNGLGETQUERYINDEXEDIVPROC GetQueryIndexediv; + PFNGLGETQUERYOBJECTI64VPROC GetQueryObjecti64v; + PFNGLGETQUERYOBJECTIVPROC GetQueryObjectiv; + PFNGLGETQUERYOBJECTUI64VPROC GetQueryObjectui64v; + PFNGLGETQUERYOBJECTUIVPROC GetQueryObjectuiv; + PFNGLGETQUERYIVPROC GetQueryiv; + PFNGLGETRENDERBUFFERPARAMETERIVPROC GetRenderbufferParameteriv; + PFNGLGETSAMPLERPARAMETERIIVPROC GetSamplerParameterIiv; + PFNGLGETSAMPLERPARAMETERIUIVPROC GetSamplerParameterIuiv; + PFNGLGETSAMPLERPARAMETERFVPROC GetSamplerParameterfv; + PFNGLGETSAMPLERPARAMETERIVPROC GetSamplerParameteriv; + PFNGLGETSHADERINFOLOGPROC GetShaderInfoLog; + PFNGLGETSHADERPRECISIONFORMATPROC GetShaderPrecisionFormat; + PFNGLGETSHADERSOURCEPROC GetShaderSource; + PFNGLGETSHADERIVPROC GetShaderiv; + PFNGLGETSTRINGPROC GetString; + PFNGLGETSTRINGIPROC GetStringi; + PFNGLGETSUBROUTINEINDEXPROC GetSubroutineIndex; + PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC GetSubroutineUniformLocation; + PFNGLGETSYNCIVPROC GetSynciv; + PFNGLGETTEXIMAGEPROC GetTexImage; + PFNGLGETTEXLEVELPARAMETERFVPROC GetTexLevelParameterfv; + PFNGLGETTEXLEVELPARAMETERIVPROC GetTexLevelParameteriv; + PFNGLGETTEXPARAMETERIIVPROC GetTexParameterIiv; + PFNGLGETTEXPARAMETERIUIVPROC GetTexParameterIuiv; + PFNGLGETTEXPARAMETERFVPROC GetTexParameterfv; + PFNGLGETTEXPARAMETERIVPROC GetTexParameteriv; + PFNGLGETTEXTUREIMAGEPROC GetTextureImage; + PFNGLGETTEXTURELEVELPARAMETERFVPROC GetTextureLevelParameterfv; + PFNGLGETTEXTURELEVELPARAMETERIVPROC GetTextureLevelParameteriv; + PFNGLGETTEXTUREPARAMETERIIVPROC GetTextureParameterIiv; + PFNGLGETTEXTUREPARAMETERIUIVPROC GetTextureParameterIuiv; + PFNGLGETTEXTUREPARAMETERFVPROC GetTextureParameterfv; + PFNGLGETTEXTUREPARAMETERIVPROC GetTextureParameteriv; + PFNGLGETTEXTURESUBIMAGEPROC GetTextureSubImage; + PFNGLGETTRANSFORMFEEDBACKVARYINGPROC GetTransformFeedbackVarying; + PFNGLGETTRANSFORMFEEDBACKI64_VPROC GetTransformFeedbacki64_v; + PFNGLGETTRANSFORMFEEDBACKI_VPROC GetTransformFeedbacki_v; + PFNGLGETTRANSFORMFEEDBACKIVPROC GetTransformFeedbackiv; + PFNGLGETUNIFORMBLOCKINDEXPROC GetUniformBlockIndex; + PFNGLGETUNIFORMINDICESPROC GetUniformIndices; + PFNGLGETUNIFORMLOCATIONPROC GetUniformLocation; + PFNGLGETUNIFORMSUBROUTINEUIVPROC GetUniformSubroutineuiv; + PFNGLGETUNIFORMDVPROC GetUniformdv; + PFNGLGETUNIFORMFVPROC GetUniformfv; + PFNGLGETUNIFORMIVPROC GetUniformiv; + PFNGLGETUNIFORMUIVPROC GetUniformuiv; + PFNGLGETVERTEXARRAYINDEXED64IVPROC GetVertexArrayIndexed64iv; + PFNGLGETVERTEXARRAYINDEXEDIVPROC GetVertexArrayIndexediv; + PFNGLGETVERTEXARRAYIVPROC GetVertexArrayiv; + PFNGLGETVERTEXATTRIBIIVPROC GetVertexAttribIiv; + PFNGLGETVERTEXATTRIBIUIVPROC GetVertexAttribIuiv; + PFNGLGETVERTEXATTRIBLDVPROC GetVertexAttribLdv; + PFNGLGETVERTEXATTRIBPOINTERVPROC GetVertexAttribPointerv; + PFNGLGETVERTEXATTRIBDVPROC GetVertexAttribdv; + PFNGLGETVERTEXATTRIBFVPROC GetVertexAttribfv; + PFNGLGETVERTEXATTRIBIVPROC GetVertexAttribiv; + PFNGLGETNCOMPRESSEDTEXIMAGEPROC GetnCompressedTexImage; + PFNGLGETNTEXIMAGEPROC GetnTexImage; + PFNGLGETNUNIFORMDVPROC GetnUniformdv; + PFNGLGETNUNIFORMFVPROC GetnUniformfv; + PFNGLGETNUNIFORMIVPROC GetnUniformiv; + PFNGLGETNUNIFORMUIVPROC GetnUniformuiv; + PFNGLHINTPROC Hint; + PFNGLINVALIDATEBUFFERDATAPROC InvalidateBufferData; + PFNGLINVALIDATEBUFFERSUBDATAPROC InvalidateBufferSubData; + PFNGLINVALIDATEFRAMEBUFFERPROC InvalidateFramebuffer; + PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC InvalidateNamedFramebufferData; + PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC InvalidateNamedFramebufferSubData; + PFNGLINVALIDATESUBFRAMEBUFFERPROC InvalidateSubFramebuffer; + PFNGLINVALIDATETEXIMAGEPROC InvalidateTexImage; + PFNGLINVALIDATETEXSUBIMAGEPROC InvalidateTexSubImage; + PFNGLISBUFFERPROC IsBuffer; + PFNGLISENABLEDPROC IsEnabled; + PFNGLISENABLEDIPROC IsEnabledi; + PFNGLISFRAMEBUFFERPROC IsFramebuffer; + PFNGLISPROGRAMPROC IsProgram; + PFNGLISPROGRAMPIPELINEPROC IsProgramPipeline; + PFNGLISQUERYPROC IsQuery; + PFNGLISRENDERBUFFERPROC IsRenderbuffer; + PFNGLISSAMPLERPROC IsSampler; + PFNGLISSHADERPROC IsShader; + PFNGLISSYNCPROC IsSync; + PFNGLISTEXTUREPROC IsTexture; + PFNGLISTRANSFORMFEEDBACKPROC IsTransformFeedback; + PFNGLISVERTEXARRAYPROC IsVertexArray; + PFNGLLINEWIDTHPROC LineWidth; + PFNGLLINKPROGRAMPROC LinkProgram; + PFNGLLOGICOPPROC LogicOp; + PFNGLMAPBUFFERPROC MapBuffer; + PFNGLMAPBUFFERRANGEPROC MapBufferRange; + PFNGLMAPNAMEDBUFFERPROC MapNamedBuffer; + PFNGLMAPNAMEDBUFFERRANGEPROC MapNamedBufferRange; + PFNGLMEMORYBARRIERPROC MemoryBarrier; + PFNGLMEMORYBARRIERBYREGIONPROC MemoryBarrierByRegion; + PFNGLMINSAMPLESHADINGPROC MinSampleShading; + PFNGLMULTIDRAWARRAYSPROC MultiDrawArrays; + PFNGLMULTIDRAWARRAYSINDIRECTPROC MultiDrawArraysIndirect; + PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC MultiDrawArraysIndirectCount; + PFNGLMULTIDRAWELEMENTSPROC MultiDrawElements; + PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC MultiDrawElementsBaseVertex; + PFNGLMULTIDRAWELEMENTSINDIRECTPROC MultiDrawElementsIndirect; + PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC MultiDrawElementsIndirectCount; + PFNGLNAMEDBUFFERDATAPROC NamedBufferData; + PFNGLNAMEDBUFFERSTORAGEPROC NamedBufferStorage; + PFNGLNAMEDBUFFERSUBDATAPROC NamedBufferSubData; + PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC NamedFramebufferDrawBuffer; + PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC NamedFramebufferDrawBuffers; + PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC NamedFramebufferParameteri; + PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC NamedFramebufferReadBuffer; + PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC NamedFramebufferRenderbuffer; + PFNGLNAMEDFRAMEBUFFERTEXTUREPROC NamedFramebufferTexture; + PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC NamedFramebufferTextureLayer; + PFNGLNAMEDRENDERBUFFERSTORAGEPROC NamedRenderbufferStorage; + PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC NamedRenderbufferStorageMultisample; + PFNGLOBJECTLABELPROC ObjectLabel; + PFNGLOBJECTPTRLABELPROC ObjectPtrLabel; + PFNGLPATCHPARAMETERFVPROC PatchParameterfv; + PFNGLPATCHPARAMETERIPROC PatchParameteri; + PFNGLPAUSETRANSFORMFEEDBACKPROC PauseTransformFeedback; + PFNGLPIXELSTOREFPROC PixelStoref; + PFNGLPIXELSTOREIPROC PixelStorei; + PFNGLPOINTPARAMETERFPROC PointParameterf; + PFNGLPOINTPARAMETERFVPROC PointParameterfv; + PFNGLPOINTPARAMETERIPROC PointParameteri; + PFNGLPOINTPARAMETERIVPROC PointParameteriv; + PFNGLPOINTSIZEPROC PointSize; + PFNGLPOLYGONMODEPROC PolygonMode; + PFNGLPOLYGONOFFSETPROC PolygonOffset; + PFNGLPOLYGONOFFSETCLAMPPROC PolygonOffsetClamp; + PFNGLPOPDEBUGGROUPPROC PopDebugGroup; + PFNGLPRIMITIVERESTARTINDEXPROC PrimitiveRestartIndex; + PFNGLPROGRAMBINARYPROC ProgramBinary; + PFNGLPROGRAMPARAMETERIPROC ProgramParameteri; + PFNGLPROGRAMUNIFORM1DPROC ProgramUniform1d; + PFNGLPROGRAMUNIFORM1DVPROC ProgramUniform1dv; + PFNGLPROGRAMUNIFORM1FPROC ProgramUniform1f; + PFNGLPROGRAMUNIFORM1FVPROC ProgramUniform1fv; + PFNGLPROGRAMUNIFORM1IPROC ProgramUniform1i; + PFNGLPROGRAMUNIFORM1IVPROC ProgramUniform1iv; + PFNGLPROGRAMUNIFORM1UIPROC ProgramUniform1ui; + PFNGLPROGRAMUNIFORM1UIVPROC ProgramUniform1uiv; + PFNGLPROGRAMUNIFORM2DPROC ProgramUniform2d; + PFNGLPROGRAMUNIFORM2DVPROC ProgramUniform2dv; + PFNGLPROGRAMUNIFORM2FPROC ProgramUniform2f; + PFNGLPROGRAMUNIFORM2FVPROC ProgramUniform2fv; + PFNGLPROGRAMUNIFORM2IPROC ProgramUniform2i; + PFNGLPROGRAMUNIFORM2IVPROC ProgramUniform2iv; + PFNGLPROGRAMUNIFORM2UIPROC ProgramUniform2ui; + PFNGLPROGRAMUNIFORM2UIVPROC ProgramUniform2uiv; + PFNGLPROGRAMUNIFORM3DPROC ProgramUniform3d; + PFNGLPROGRAMUNIFORM3DVPROC ProgramUniform3dv; + PFNGLPROGRAMUNIFORM3FPROC ProgramUniform3f; + PFNGLPROGRAMUNIFORM3FVPROC ProgramUniform3fv; + PFNGLPROGRAMUNIFORM3IPROC ProgramUniform3i; + PFNGLPROGRAMUNIFORM3IVPROC ProgramUniform3iv; + PFNGLPROGRAMUNIFORM3UIPROC ProgramUniform3ui; + PFNGLPROGRAMUNIFORM3UIVPROC ProgramUniform3uiv; + PFNGLPROGRAMUNIFORM4DPROC ProgramUniform4d; + PFNGLPROGRAMUNIFORM4DVPROC ProgramUniform4dv; + PFNGLPROGRAMUNIFORM4FPROC ProgramUniform4f; + PFNGLPROGRAMUNIFORM4FVPROC ProgramUniform4fv; + PFNGLPROGRAMUNIFORM4IPROC ProgramUniform4i; + PFNGLPROGRAMUNIFORM4IVPROC ProgramUniform4iv; + PFNGLPROGRAMUNIFORM4UIPROC ProgramUniform4ui; + PFNGLPROGRAMUNIFORM4UIVPROC ProgramUniform4uiv; + PFNGLPROGRAMUNIFORMMATRIX2DVPROC ProgramUniformMatrix2dv; + PFNGLPROGRAMUNIFORMMATRIX2FVPROC ProgramUniformMatrix2fv; + PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC ProgramUniformMatrix2x3dv; + PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC ProgramUniformMatrix2x3fv; + PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC ProgramUniformMatrix2x4dv; + PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC ProgramUniformMatrix2x4fv; + PFNGLPROGRAMUNIFORMMATRIX3DVPROC ProgramUniformMatrix3dv; + PFNGLPROGRAMUNIFORMMATRIX3FVPROC ProgramUniformMatrix3fv; + PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC ProgramUniformMatrix3x2dv; + PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC ProgramUniformMatrix3x2fv; + PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC ProgramUniformMatrix3x4dv; + PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC ProgramUniformMatrix3x4fv; + PFNGLPROGRAMUNIFORMMATRIX4DVPROC ProgramUniformMatrix4dv; + PFNGLPROGRAMUNIFORMMATRIX4FVPROC ProgramUniformMatrix4fv; + PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC ProgramUniformMatrix4x2dv; + PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC ProgramUniformMatrix4x2fv; + PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC ProgramUniformMatrix4x3dv; + PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC ProgramUniformMatrix4x3fv; + PFNGLPROVOKINGVERTEXPROC ProvokingVertex; + PFNGLPUSHDEBUGGROUPPROC PushDebugGroup; + PFNGLQUERYCOUNTERPROC QueryCounter; + PFNGLREADBUFFERPROC ReadBuffer; + PFNGLREADPIXELSPROC ReadPixels; + PFNGLREADNPIXELSPROC ReadnPixels; + PFNGLRELEASESHADERCOMPILERPROC ReleaseShaderCompiler; + PFNGLRENDERBUFFERSTORAGEPROC RenderbufferStorage; + PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC RenderbufferStorageMultisample; + PFNGLRESUMETRANSFORMFEEDBACKPROC ResumeTransformFeedback; + PFNGLSAMPLECOVERAGEPROC SampleCoverage; + PFNGLSAMPLEMASKIPROC SampleMaski; + PFNGLSAMPLERPARAMETERIIVPROC SamplerParameterIiv; + PFNGLSAMPLERPARAMETERIUIVPROC SamplerParameterIuiv; + PFNGLSAMPLERPARAMETERFPROC SamplerParameterf; + PFNGLSAMPLERPARAMETERFVPROC SamplerParameterfv; + PFNGLSAMPLERPARAMETERIPROC SamplerParameteri; + PFNGLSAMPLERPARAMETERIVPROC SamplerParameteriv; + PFNGLSCISSORPROC Scissor; + PFNGLSCISSORARRAYVPROC ScissorArrayv; + PFNGLSCISSORINDEXEDPROC ScissorIndexed; + PFNGLSCISSORINDEXEDVPROC ScissorIndexedv; + PFNGLSHADERBINARYPROC ShaderBinary; + PFNGLSHADERSOURCEPROC ShaderSource; + PFNGLSHADERSTORAGEBLOCKBINDINGPROC ShaderStorageBlockBinding; + PFNGLSPECIALIZESHADERPROC SpecializeShader; + PFNGLSTENCILFUNCPROC StencilFunc; + PFNGLSTENCILFUNCSEPARATEPROC StencilFuncSeparate; + PFNGLSTENCILMASKPROC StencilMask; + PFNGLSTENCILMASKSEPARATEPROC StencilMaskSeparate; + PFNGLSTENCILOPPROC StencilOp; + PFNGLSTENCILOPSEPARATEPROC StencilOpSeparate; + PFNGLTEXBUFFERPROC TexBuffer; + PFNGLTEXBUFFERRANGEPROC TexBufferRange; + PFNGLTEXIMAGE1DPROC TexImage1D; + PFNGLTEXIMAGE2DPROC TexImage2D; + PFNGLTEXIMAGE2DMULTISAMPLEPROC TexImage2DMultisample; + PFNGLTEXIMAGE3DPROC TexImage3D; + PFNGLTEXIMAGE3DMULTISAMPLEPROC TexImage3DMultisample; + PFNGLTEXPARAMETERIIVPROC TexParameterIiv; + PFNGLTEXPARAMETERIUIVPROC TexParameterIuiv; + PFNGLTEXPARAMETERFPROC TexParameterf; + PFNGLTEXPARAMETERFVPROC TexParameterfv; + PFNGLTEXPARAMETERIPROC TexParameteri; + PFNGLTEXPARAMETERIVPROC TexParameteriv; + PFNGLTEXSTORAGE1DPROC TexStorage1D; + PFNGLTEXSTORAGE2DPROC TexStorage2D; + PFNGLTEXSTORAGE2DMULTISAMPLEPROC TexStorage2DMultisample; + PFNGLTEXSTORAGE3DPROC TexStorage3D; + PFNGLTEXSTORAGE3DMULTISAMPLEPROC TexStorage3DMultisample; + PFNGLTEXSUBIMAGE1DPROC TexSubImage1D; + PFNGLTEXSUBIMAGE2DPROC TexSubImage2D; + PFNGLTEXSUBIMAGE3DPROC TexSubImage3D; + PFNGLTEXTUREBARRIERPROC TextureBarrier; + PFNGLTEXTUREBUFFERPROC TextureBuffer; + PFNGLTEXTUREBUFFERRANGEPROC TextureBufferRange; + PFNGLTEXTUREPARAMETERIIVPROC TextureParameterIiv; + PFNGLTEXTUREPARAMETERIUIVPROC TextureParameterIuiv; + PFNGLTEXTUREPARAMETERFPROC TextureParameterf; + PFNGLTEXTUREPARAMETERFVPROC TextureParameterfv; + PFNGLTEXTUREPARAMETERIPROC TextureParameteri; + PFNGLTEXTUREPARAMETERIVPROC TextureParameteriv; + PFNGLTEXTURESTORAGE1DPROC TextureStorage1D; + PFNGLTEXTURESTORAGE2DPROC TextureStorage2D; + PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC TextureStorage2DMultisample; + PFNGLTEXTURESTORAGE3DPROC TextureStorage3D; + PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC TextureStorage3DMultisample; + PFNGLTEXTURESUBIMAGE1DPROC TextureSubImage1D; + PFNGLTEXTURESUBIMAGE2DPROC TextureSubImage2D; + PFNGLTEXTURESUBIMAGE3DPROC TextureSubImage3D; + PFNGLTEXTUREVIEWPROC TextureView; + PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC TransformFeedbackBufferBase; + PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC TransformFeedbackBufferRange; + PFNGLTRANSFORMFEEDBACKVARYINGSPROC TransformFeedbackVaryings; + PFNGLUNIFORM1DPROC Uniform1d; + PFNGLUNIFORM1DVPROC Uniform1dv; + PFNGLUNIFORM1FPROC Uniform1f; + PFNGLUNIFORM1FVPROC Uniform1fv; + PFNGLUNIFORM1IPROC Uniform1i; + PFNGLUNIFORM1IVPROC Uniform1iv; + PFNGLUNIFORM1UIPROC Uniform1ui; + PFNGLUNIFORM1UIVPROC Uniform1uiv; + PFNGLUNIFORM2DPROC Uniform2d; + PFNGLUNIFORM2DVPROC Uniform2dv; + PFNGLUNIFORM2FPROC Uniform2f; + PFNGLUNIFORM2FVPROC Uniform2fv; + PFNGLUNIFORM2IPROC Uniform2i; + PFNGLUNIFORM2IVPROC Uniform2iv; + PFNGLUNIFORM2UIPROC Uniform2ui; + PFNGLUNIFORM2UIVPROC Uniform2uiv; + PFNGLUNIFORM3DPROC Uniform3d; + PFNGLUNIFORM3DVPROC Uniform3dv; + PFNGLUNIFORM3FPROC Uniform3f; + PFNGLUNIFORM3FVPROC Uniform3fv; + PFNGLUNIFORM3IPROC Uniform3i; + PFNGLUNIFORM3IVPROC Uniform3iv; + PFNGLUNIFORM3UIPROC Uniform3ui; + PFNGLUNIFORM3UIVPROC Uniform3uiv; + PFNGLUNIFORM4DPROC Uniform4d; + PFNGLUNIFORM4DVPROC Uniform4dv; + PFNGLUNIFORM4FPROC Uniform4f; + PFNGLUNIFORM4FVPROC Uniform4fv; + PFNGLUNIFORM4IPROC Uniform4i; + PFNGLUNIFORM4IVPROC Uniform4iv; + PFNGLUNIFORM4UIPROC Uniform4ui; + PFNGLUNIFORM4UIVPROC Uniform4uiv; + PFNGLUNIFORMBLOCKBINDINGPROC UniformBlockBinding; + PFNGLUNIFORMMATRIX2DVPROC UniformMatrix2dv; + PFNGLUNIFORMMATRIX2FVPROC UniformMatrix2fv; + PFNGLUNIFORMMATRIX2X3DVPROC UniformMatrix2x3dv; + PFNGLUNIFORMMATRIX2X3FVPROC UniformMatrix2x3fv; + PFNGLUNIFORMMATRIX2X4DVPROC UniformMatrix2x4dv; + PFNGLUNIFORMMATRIX2X4FVPROC UniformMatrix2x4fv; + PFNGLUNIFORMMATRIX3DVPROC UniformMatrix3dv; + PFNGLUNIFORMMATRIX3FVPROC UniformMatrix3fv; + PFNGLUNIFORMMATRIX3X2DVPROC UniformMatrix3x2dv; + PFNGLUNIFORMMATRIX3X2FVPROC UniformMatrix3x2fv; + PFNGLUNIFORMMATRIX3X4DVPROC UniformMatrix3x4dv; + PFNGLUNIFORMMATRIX3X4FVPROC UniformMatrix3x4fv; + PFNGLUNIFORMMATRIX4DVPROC UniformMatrix4dv; + PFNGLUNIFORMMATRIX4FVPROC UniformMatrix4fv; + PFNGLUNIFORMMATRIX4X2DVPROC UniformMatrix4x2dv; + PFNGLUNIFORMMATRIX4X2FVPROC UniformMatrix4x2fv; + PFNGLUNIFORMMATRIX4X3DVPROC UniformMatrix4x3dv; + PFNGLUNIFORMMATRIX4X3FVPROC UniformMatrix4x3fv; + PFNGLUNIFORMSUBROUTINESUIVPROC UniformSubroutinesuiv; + PFNGLUNMAPBUFFERPROC UnmapBuffer; + PFNGLUNMAPNAMEDBUFFERPROC UnmapNamedBuffer; + PFNGLUSEPROGRAMPROC UseProgram; + PFNGLUSEPROGRAMSTAGESPROC UseProgramStages; + PFNGLVALIDATEPROGRAMPROC ValidateProgram; + PFNGLVALIDATEPROGRAMPIPELINEPROC ValidateProgramPipeline; + PFNGLVERTEXARRAYATTRIBBINDINGPROC VertexArrayAttribBinding; + PFNGLVERTEXARRAYATTRIBFORMATPROC VertexArrayAttribFormat; + PFNGLVERTEXARRAYATTRIBIFORMATPROC VertexArrayAttribIFormat; + PFNGLVERTEXARRAYATTRIBLFORMATPROC VertexArrayAttribLFormat; + PFNGLVERTEXARRAYBINDINGDIVISORPROC VertexArrayBindingDivisor; + PFNGLVERTEXARRAYELEMENTBUFFERPROC VertexArrayElementBuffer; + PFNGLVERTEXARRAYVERTEXBUFFERPROC VertexArrayVertexBuffer; + PFNGLVERTEXARRAYVERTEXBUFFERSPROC VertexArrayVertexBuffers; + PFNGLVERTEXATTRIB1DPROC VertexAttrib1d; + PFNGLVERTEXATTRIB1DVPROC VertexAttrib1dv; + PFNGLVERTEXATTRIB1FPROC VertexAttrib1f; + PFNGLVERTEXATTRIB1FVPROC VertexAttrib1fv; + PFNGLVERTEXATTRIB1SPROC VertexAttrib1s; + PFNGLVERTEXATTRIB1SVPROC VertexAttrib1sv; + PFNGLVERTEXATTRIB2DPROC VertexAttrib2d; + PFNGLVERTEXATTRIB2DVPROC VertexAttrib2dv; + PFNGLVERTEXATTRIB2FPROC VertexAttrib2f; + PFNGLVERTEXATTRIB2FVPROC VertexAttrib2fv; + PFNGLVERTEXATTRIB2SPROC VertexAttrib2s; + PFNGLVERTEXATTRIB2SVPROC VertexAttrib2sv; + PFNGLVERTEXATTRIB3DPROC VertexAttrib3d; + PFNGLVERTEXATTRIB3DVPROC VertexAttrib3dv; + PFNGLVERTEXATTRIB3FPROC VertexAttrib3f; + PFNGLVERTEXATTRIB3FVPROC VertexAttrib3fv; + PFNGLVERTEXATTRIB3SPROC VertexAttrib3s; + PFNGLVERTEXATTRIB3SVPROC VertexAttrib3sv; + PFNGLVERTEXATTRIB4NBVPROC VertexAttrib4Nbv; + PFNGLVERTEXATTRIB4NIVPROC VertexAttrib4Niv; + PFNGLVERTEXATTRIB4NSVPROC VertexAttrib4Nsv; + PFNGLVERTEXATTRIB4NUBPROC VertexAttrib4Nub; + PFNGLVERTEXATTRIB4NUBVPROC VertexAttrib4Nubv; + PFNGLVERTEXATTRIB4NUIVPROC VertexAttrib4Nuiv; + PFNGLVERTEXATTRIB4NUSVPROC VertexAttrib4Nusv; + PFNGLVERTEXATTRIB4BVPROC VertexAttrib4bv; + PFNGLVERTEXATTRIB4DPROC VertexAttrib4d; + PFNGLVERTEXATTRIB4DVPROC VertexAttrib4dv; + PFNGLVERTEXATTRIB4FPROC VertexAttrib4f; + PFNGLVERTEXATTRIB4FVPROC VertexAttrib4fv; + PFNGLVERTEXATTRIB4IVPROC VertexAttrib4iv; + PFNGLVERTEXATTRIB4SPROC VertexAttrib4s; + PFNGLVERTEXATTRIB4SVPROC VertexAttrib4sv; + PFNGLVERTEXATTRIB4UBVPROC VertexAttrib4ubv; + PFNGLVERTEXATTRIB4UIVPROC VertexAttrib4uiv; + PFNGLVERTEXATTRIB4USVPROC VertexAttrib4usv; + PFNGLVERTEXATTRIBBINDINGPROC VertexAttribBinding; + PFNGLVERTEXATTRIBDIVISORPROC VertexAttribDivisor; + PFNGLVERTEXATTRIBFORMATPROC VertexAttribFormat; + PFNGLVERTEXATTRIBI1IPROC VertexAttribI1i; + PFNGLVERTEXATTRIBI1IVPROC VertexAttribI1iv; + PFNGLVERTEXATTRIBI1UIPROC VertexAttribI1ui; + PFNGLVERTEXATTRIBI1UIVPROC VertexAttribI1uiv; + PFNGLVERTEXATTRIBI2IPROC VertexAttribI2i; + PFNGLVERTEXATTRIBI2IVPROC VertexAttribI2iv; + PFNGLVERTEXATTRIBI2UIPROC VertexAttribI2ui; + PFNGLVERTEXATTRIBI2UIVPROC VertexAttribI2uiv; + PFNGLVERTEXATTRIBI3IPROC VertexAttribI3i; + PFNGLVERTEXATTRIBI3IVPROC VertexAttribI3iv; + PFNGLVERTEXATTRIBI3UIPROC VertexAttribI3ui; + PFNGLVERTEXATTRIBI3UIVPROC VertexAttribI3uiv; + PFNGLVERTEXATTRIBI4BVPROC VertexAttribI4bv; + PFNGLVERTEXATTRIBI4IPROC VertexAttribI4i; + PFNGLVERTEXATTRIBI4IVPROC VertexAttribI4iv; + PFNGLVERTEXATTRIBI4SVPROC VertexAttribI4sv; + PFNGLVERTEXATTRIBI4UBVPROC VertexAttribI4ubv; + PFNGLVERTEXATTRIBI4UIPROC VertexAttribI4ui; + PFNGLVERTEXATTRIBI4UIVPROC VertexAttribI4uiv; + PFNGLVERTEXATTRIBI4USVPROC VertexAttribI4usv; + PFNGLVERTEXATTRIBIFORMATPROC VertexAttribIFormat; + PFNGLVERTEXATTRIBIPOINTERPROC VertexAttribIPointer; + PFNGLVERTEXATTRIBL1DPROC VertexAttribL1d; + PFNGLVERTEXATTRIBL1DVPROC VertexAttribL1dv; + PFNGLVERTEXATTRIBL2DPROC VertexAttribL2d; + PFNGLVERTEXATTRIBL2DVPROC VertexAttribL2dv; + PFNGLVERTEXATTRIBL3DPROC VertexAttribL3d; + PFNGLVERTEXATTRIBL3DVPROC VertexAttribL3dv; + PFNGLVERTEXATTRIBL4DPROC VertexAttribL4d; + PFNGLVERTEXATTRIBL4DVPROC VertexAttribL4dv; + PFNGLVERTEXATTRIBLFORMATPROC VertexAttribLFormat; + PFNGLVERTEXATTRIBLPOINTERPROC VertexAttribLPointer; + PFNGLVERTEXATTRIBP1UIPROC VertexAttribP1ui; + PFNGLVERTEXATTRIBP1UIVPROC VertexAttribP1uiv; + PFNGLVERTEXATTRIBP2UIPROC VertexAttribP2ui; + PFNGLVERTEXATTRIBP2UIVPROC VertexAttribP2uiv; + PFNGLVERTEXATTRIBP3UIPROC VertexAttribP3ui; + PFNGLVERTEXATTRIBP3UIVPROC VertexAttribP3uiv; + PFNGLVERTEXATTRIBP4UIPROC VertexAttribP4ui; + PFNGLVERTEXATTRIBP4UIVPROC VertexAttribP4uiv; + PFNGLVERTEXATTRIBPOINTERPROC VertexAttribPointer; + PFNGLVERTEXBINDINGDIVISORPROC VertexBindingDivisor; + PFNGLVIEWPORTPROC Viewport; + PFNGLVIEWPORTARRAYVPROC ViewportArrayv; + PFNGLVIEWPORTINDEXEDFPROC ViewportIndexedf; + PFNGLVIEWPORTINDEXEDFVPROC ViewportIndexedfv; + PFNGLWAITSYNCPROC WaitSync; + } gl; +}; + +GL3W_API extern union GL3WProcs gl3wProcs; + +/* OpenGL functions */ +#define glActiveShaderProgram gl3wProcs.gl.ActiveShaderProgram +#define glActiveTexture gl3wProcs.gl.ActiveTexture +#define glAttachShader gl3wProcs.gl.AttachShader +#define glBeginConditionalRender gl3wProcs.gl.BeginConditionalRender +#define glBeginQuery gl3wProcs.gl.BeginQuery +#define glBeginQueryIndexed gl3wProcs.gl.BeginQueryIndexed +#define glBeginTransformFeedback gl3wProcs.gl.BeginTransformFeedback +#define glBindAttribLocation gl3wProcs.gl.BindAttribLocation +#define glBindBuffer gl3wProcs.gl.BindBuffer +#define glBindBufferBase gl3wProcs.gl.BindBufferBase +#define glBindBufferRange gl3wProcs.gl.BindBufferRange +#define glBindBuffersBase gl3wProcs.gl.BindBuffersBase +#define glBindBuffersRange gl3wProcs.gl.BindBuffersRange +#define glBindFragDataLocation gl3wProcs.gl.BindFragDataLocation +#define glBindFragDataLocationIndexed gl3wProcs.gl.BindFragDataLocationIndexed +#define glBindFramebuffer gl3wProcs.gl.BindFramebuffer +#define glBindImageTexture gl3wProcs.gl.BindImageTexture +#define glBindImageTextures gl3wProcs.gl.BindImageTextures +#define glBindProgramPipeline gl3wProcs.gl.BindProgramPipeline +#define glBindRenderbuffer gl3wProcs.gl.BindRenderbuffer +#define glBindSampler gl3wProcs.gl.BindSampler +#define glBindSamplers gl3wProcs.gl.BindSamplers +#define glBindTexture gl3wProcs.gl.BindTexture +#define glBindTextureUnit gl3wProcs.gl.BindTextureUnit +#define glBindTextures gl3wProcs.gl.BindTextures +#define glBindTransformFeedback gl3wProcs.gl.BindTransformFeedback +#define glBindVertexArray gl3wProcs.gl.BindVertexArray +#define glBindVertexBuffer gl3wProcs.gl.BindVertexBuffer +#define glBindVertexBuffers gl3wProcs.gl.BindVertexBuffers +#define glBlendColor gl3wProcs.gl.BlendColor +#define glBlendEquation gl3wProcs.gl.BlendEquation +#define glBlendEquationSeparate gl3wProcs.gl.BlendEquationSeparate +#define glBlendEquationSeparatei gl3wProcs.gl.BlendEquationSeparatei +#define glBlendEquationi gl3wProcs.gl.BlendEquationi +#define glBlendFunc gl3wProcs.gl.BlendFunc +#define glBlendFuncSeparate gl3wProcs.gl.BlendFuncSeparate +#define glBlendFuncSeparatei gl3wProcs.gl.BlendFuncSeparatei +#define glBlendFunci gl3wProcs.gl.BlendFunci +#define glBlitFramebuffer gl3wProcs.gl.BlitFramebuffer +#define glBlitNamedFramebuffer gl3wProcs.gl.BlitNamedFramebuffer +#define glBufferData gl3wProcs.gl.BufferData +#define glBufferStorage gl3wProcs.gl.BufferStorage +#define glBufferSubData gl3wProcs.gl.BufferSubData +#define glCheckFramebufferStatus gl3wProcs.gl.CheckFramebufferStatus +#define glCheckNamedFramebufferStatus gl3wProcs.gl.CheckNamedFramebufferStatus +#define glClampColor gl3wProcs.gl.ClampColor +#define glClear gl3wProcs.gl.Clear +#define glClearBufferData gl3wProcs.gl.ClearBufferData +#define glClearBufferSubData gl3wProcs.gl.ClearBufferSubData +#define glClearBufferfi gl3wProcs.gl.ClearBufferfi +#define glClearBufferfv gl3wProcs.gl.ClearBufferfv +#define glClearBufferiv gl3wProcs.gl.ClearBufferiv +#define glClearBufferuiv gl3wProcs.gl.ClearBufferuiv +#define glClearColor gl3wProcs.gl.ClearColor +#define glClearDepth gl3wProcs.gl.ClearDepth +#define glClearDepthf gl3wProcs.gl.ClearDepthf +#define glClearNamedBufferData gl3wProcs.gl.ClearNamedBufferData +#define glClearNamedBufferSubData gl3wProcs.gl.ClearNamedBufferSubData +#define glClearNamedFramebufferfi gl3wProcs.gl.ClearNamedFramebufferfi +#define glClearNamedFramebufferfv gl3wProcs.gl.ClearNamedFramebufferfv +#define glClearNamedFramebufferiv gl3wProcs.gl.ClearNamedFramebufferiv +#define glClearNamedFramebufferuiv gl3wProcs.gl.ClearNamedFramebufferuiv +#define glClearStencil gl3wProcs.gl.ClearStencil +#define glClearTexImage gl3wProcs.gl.ClearTexImage +#define glClearTexSubImage gl3wProcs.gl.ClearTexSubImage +#define glClientWaitSync gl3wProcs.gl.ClientWaitSync +#define glClipControl gl3wProcs.gl.ClipControl +#define glColorMask gl3wProcs.gl.ColorMask +#define glColorMaski gl3wProcs.gl.ColorMaski +#define glCompileShader gl3wProcs.gl.CompileShader +#define glCompressedTexImage1D gl3wProcs.gl.CompressedTexImage1D +#define glCompressedTexImage2D gl3wProcs.gl.CompressedTexImage2D +#define glCompressedTexImage3D gl3wProcs.gl.CompressedTexImage3D +#define glCompressedTexSubImage1D gl3wProcs.gl.CompressedTexSubImage1D +#define glCompressedTexSubImage2D gl3wProcs.gl.CompressedTexSubImage2D +#define glCompressedTexSubImage3D gl3wProcs.gl.CompressedTexSubImage3D +#define glCompressedTextureSubImage1D gl3wProcs.gl.CompressedTextureSubImage1D +#define glCompressedTextureSubImage2D gl3wProcs.gl.CompressedTextureSubImage2D +#define glCompressedTextureSubImage3D gl3wProcs.gl.CompressedTextureSubImage3D +#define glCopyBufferSubData gl3wProcs.gl.CopyBufferSubData +#define glCopyImageSubData gl3wProcs.gl.CopyImageSubData +#define glCopyNamedBufferSubData gl3wProcs.gl.CopyNamedBufferSubData +#define glCopyTexImage1D gl3wProcs.gl.CopyTexImage1D +#define glCopyTexImage2D gl3wProcs.gl.CopyTexImage2D +#define glCopyTexSubImage1D gl3wProcs.gl.CopyTexSubImage1D +#define glCopyTexSubImage2D gl3wProcs.gl.CopyTexSubImage2D +#define glCopyTexSubImage3D gl3wProcs.gl.CopyTexSubImage3D +#define glCopyTextureSubImage1D gl3wProcs.gl.CopyTextureSubImage1D +#define glCopyTextureSubImage2D gl3wProcs.gl.CopyTextureSubImage2D +#define glCopyTextureSubImage3D gl3wProcs.gl.CopyTextureSubImage3D +#define glCreateBuffers gl3wProcs.gl.CreateBuffers +#define glCreateFramebuffers gl3wProcs.gl.CreateFramebuffers +#define glCreateProgram gl3wProcs.gl.CreateProgram +#define glCreateProgramPipelines gl3wProcs.gl.CreateProgramPipelines +#define glCreateQueries gl3wProcs.gl.CreateQueries +#define glCreateRenderbuffers gl3wProcs.gl.CreateRenderbuffers +#define glCreateSamplers gl3wProcs.gl.CreateSamplers +#define glCreateShader gl3wProcs.gl.CreateShader +#define glCreateShaderProgramv gl3wProcs.gl.CreateShaderProgramv +#define glCreateTextures gl3wProcs.gl.CreateTextures +#define glCreateTransformFeedbacks gl3wProcs.gl.CreateTransformFeedbacks +#define glCreateVertexArrays gl3wProcs.gl.CreateVertexArrays +#define glCullFace gl3wProcs.gl.CullFace +#define glDebugMessageCallback gl3wProcs.gl.DebugMessageCallback +#define glDebugMessageControl gl3wProcs.gl.DebugMessageControl +#define glDebugMessageInsert gl3wProcs.gl.DebugMessageInsert +#define glDeleteBuffers gl3wProcs.gl.DeleteBuffers +#define glDeleteFramebuffers gl3wProcs.gl.DeleteFramebuffers +#define glDeleteProgram gl3wProcs.gl.DeleteProgram +#define glDeleteProgramPipelines gl3wProcs.gl.DeleteProgramPipelines +#define glDeleteQueries gl3wProcs.gl.DeleteQueries +#define glDeleteRenderbuffers gl3wProcs.gl.DeleteRenderbuffers +#define glDeleteSamplers gl3wProcs.gl.DeleteSamplers +#define glDeleteShader gl3wProcs.gl.DeleteShader +#define glDeleteSync gl3wProcs.gl.DeleteSync +#define glDeleteTextures gl3wProcs.gl.DeleteTextures +#define glDeleteTransformFeedbacks gl3wProcs.gl.DeleteTransformFeedbacks +#define glDeleteVertexArrays gl3wProcs.gl.DeleteVertexArrays +#define glDepthFunc gl3wProcs.gl.DepthFunc +#define glDepthMask gl3wProcs.gl.DepthMask +#define glDepthRange gl3wProcs.gl.DepthRange +#define glDepthRangeArrayv gl3wProcs.gl.DepthRangeArrayv +#define glDepthRangeIndexed gl3wProcs.gl.DepthRangeIndexed +#define glDepthRangef gl3wProcs.gl.DepthRangef +#define glDetachShader gl3wProcs.gl.DetachShader +#define glDisable gl3wProcs.gl.Disable +#define glDisableVertexArrayAttrib gl3wProcs.gl.DisableVertexArrayAttrib +#define glDisableVertexAttribArray gl3wProcs.gl.DisableVertexAttribArray +#define glDisablei gl3wProcs.gl.Disablei +#define glDispatchCompute gl3wProcs.gl.DispatchCompute +#define glDispatchComputeIndirect gl3wProcs.gl.DispatchComputeIndirect +#define glDrawArrays gl3wProcs.gl.DrawArrays +#define glDrawArraysIndirect gl3wProcs.gl.DrawArraysIndirect +#define glDrawArraysInstanced gl3wProcs.gl.DrawArraysInstanced +#define glDrawArraysInstancedBaseInstance gl3wProcs.gl.DrawArraysInstancedBaseInstance +#define glDrawBuffer gl3wProcs.gl.DrawBuffer +#define glDrawBuffers gl3wProcs.gl.DrawBuffers +#define glDrawElements gl3wProcs.gl.DrawElements +#define glDrawElementsBaseVertex gl3wProcs.gl.DrawElementsBaseVertex +#define glDrawElementsIndirect gl3wProcs.gl.DrawElementsIndirect +#define glDrawElementsInstanced gl3wProcs.gl.DrawElementsInstanced +#define glDrawElementsInstancedBaseInstance gl3wProcs.gl.DrawElementsInstancedBaseInstance +#define glDrawElementsInstancedBaseVertex gl3wProcs.gl.DrawElementsInstancedBaseVertex +#define glDrawElementsInstancedBaseVertexBaseInstance gl3wProcs.gl.DrawElementsInstancedBaseVertexBaseInstance +#define glDrawRangeElements gl3wProcs.gl.DrawRangeElements +#define glDrawRangeElementsBaseVertex gl3wProcs.gl.DrawRangeElementsBaseVertex +#define glDrawTransformFeedback gl3wProcs.gl.DrawTransformFeedback +#define glDrawTransformFeedbackInstanced gl3wProcs.gl.DrawTransformFeedbackInstanced +#define glDrawTransformFeedbackStream gl3wProcs.gl.DrawTransformFeedbackStream +#define glDrawTransformFeedbackStreamInstanced gl3wProcs.gl.DrawTransformFeedbackStreamInstanced +#define glEnable gl3wProcs.gl.Enable +#define glEnableVertexArrayAttrib gl3wProcs.gl.EnableVertexArrayAttrib +#define glEnableVertexAttribArray gl3wProcs.gl.EnableVertexAttribArray +#define glEnablei gl3wProcs.gl.Enablei +#define glEndConditionalRender gl3wProcs.gl.EndConditionalRender +#define glEndQuery gl3wProcs.gl.EndQuery +#define glEndQueryIndexed gl3wProcs.gl.EndQueryIndexed +#define glEndTransformFeedback gl3wProcs.gl.EndTransformFeedback +#define glFenceSync gl3wProcs.gl.FenceSync +#define glFinish gl3wProcs.gl.Finish +#define glFlush gl3wProcs.gl.Flush +#define glFlushMappedBufferRange gl3wProcs.gl.FlushMappedBufferRange +#define glFlushMappedNamedBufferRange gl3wProcs.gl.FlushMappedNamedBufferRange +#define glFramebufferParameteri gl3wProcs.gl.FramebufferParameteri +#define glFramebufferParameteriMESA gl3wProcs.gl.FramebufferParameteriMESA +#define glFramebufferRenderbuffer gl3wProcs.gl.FramebufferRenderbuffer +#define glFramebufferTexture gl3wProcs.gl.FramebufferTexture +#define glFramebufferTexture1D gl3wProcs.gl.FramebufferTexture1D +#define glFramebufferTexture2D gl3wProcs.gl.FramebufferTexture2D +#define glFramebufferTexture3D gl3wProcs.gl.FramebufferTexture3D +#define glFramebufferTextureLayer gl3wProcs.gl.FramebufferTextureLayer +#define glFrontFace gl3wProcs.gl.FrontFace +#define glGenBuffers gl3wProcs.gl.GenBuffers +#define glGenFramebuffers gl3wProcs.gl.GenFramebuffers +#define glGenProgramPipelines gl3wProcs.gl.GenProgramPipelines +#define glGenQueries gl3wProcs.gl.GenQueries +#define glGenRenderbuffers gl3wProcs.gl.GenRenderbuffers +#define glGenSamplers gl3wProcs.gl.GenSamplers +#define glGenTextures gl3wProcs.gl.GenTextures +#define glGenTransformFeedbacks gl3wProcs.gl.GenTransformFeedbacks +#define glGenVertexArrays gl3wProcs.gl.GenVertexArrays +#define glGenerateMipmap gl3wProcs.gl.GenerateMipmap +#define glGenerateTextureMipmap gl3wProcs.gl.GenerateTextureMipmap +#define glGetActiveAtomicCounterBufferiv gl3wProcs.gl.GetActiveAtomicCounterBufferiv +#define glGetActiveAttrib gl3wProcs.gl.GetActiveAttrib +#define glGetActiveSubroutineName gl3wProcs.gl.GetActiveSubroutineName +#define glGetActiveSubroutineUniformName gl3wProcs.gl.GetActiveSubroutineUniformName +#define glGetActiveSubroutineUniformiv gl3wProcs.gl.GetActiveSubroutineUniformiv +#define glGetActiveUniform gl3wProcs.gl.GetActiveUniform +#define glGetActiveUniformBlockName gl3wProcs.gl.GetActiveUniformBlockName +#define glGetActiveUniformBlockiv gl3wProcs.gl.GetActiveUniformBlockiv +#define glGetActiveUniformName gl3wProcs.gl.GetActiveUniformName +#define glGetActiveUniformsiv gl3wProcs.gl.GetActiveUniformsiv +#define glGetAttachedShaders gl3wProcs.gl.GetAttachedShaders +#define glGetAttribLocation gl3wProcs.gl.GetAttribLocation +#define glGetBooleani_v gl3wProcs.gl.GetBooleani_v +#define glGetBooleanv gl3wProcs.gl.GetBooleanv +#define glGetBufferParameteri64v gl3wProcs.gl.GetBufferParameteri64v +#define glGetBufferParameteriv gl3wProcs.gl.GetBufferParameteriv +#define glGetBufferPointerv gl3wProcs.gl.GetBufferPointerv +#define glGetBufferSubData gl3wProcs.gl.GetBufferSubData +#define glGetCompressedTexImage gl3wProcs.gl.GetCompressedTexImage +#define glGetCompressedTextureImage gl3wProcs.gl.GetCompressedTextureImage +#define glGetCompressedTextureSubImage gl3wProcs.gl.GetCompressedTextureSubImage +#define glGetDebugMessageLog gl3wProcs.gl.GetDebugMessageLog +#define glGetDoublei_v gl3wProcs.gl.GetDoublei_v +#define glGetDoublev gl3wProcs.gl.GetDoublev +#define glGetError gl3wProcs.gl.GetError +#define glGetFloati_v gl3wProcs.gl.GetFloati_v +#define glGetFloatv gl3wProcs.gl.GetFloatv +#define glGetFragDataIndex gl3wProcs.gl.GetFragDataIndex +#define glGetFragDataLocation gl3wProcs.gl.GetFragDataLocation +#define glGetFramebufferAttachmentParameteriv gl3wProcs.gl.GetFramebufferAttachmentParameteriv +#define glGetFramebufferParameteriv gl3wProcs.gl.GetFramebufferParameteriv +#define glGetFramebufferParameterivMESA gl3wProcs.gl.GetFramebufferParameterivMESA +#define glGetGraphicsResetStatus gl3wProcs.gl.GetGraphicsResetStatus +#define glGetInteger64i_v gl3wProcs.gl.GetInteger64i_v +#define glGetInteger64v gl3wProcs.gl.GetInteger64v +#define glGetIntegeri_v gl3wProcs.gl.GetIntegeri_v +#define glGetIntegerv gl3wProcs.gl.GetIntegerv +#define glGetInternalformati64v gl3wProcs.gl.GetInternalformati64v +#define glGetInternalformativ gl3wProcs.gl.GetInternalformativ +#define glGetMultisamplefv gl3wProcs.gl.GetMultisamplefv +#define glGetNamedBufferParameteri64v gl3wProcs.gl.GetNamedBufferParameteri64v +#define glGetNamedBufferParameteriv gl3wProcs.gl.GetNamedBufferParameteriv +#define glGetNamedBufferPointerv gl3wProcs.gl.GetNamedBufferPointerv +#define glGetNamedBufferSubData gl3wProcs.gl.GetNamedBufferSubData +#define glGetNamedFramebufferAttachmentParameteriv gl3wProcs.gl.GetNamedFramebufferAttachmentParameteriv +#define glGetNamedFramebufferParameteriv gl3wProcs.gl.GetNamedFramebufferParameteriv +#define glGetNamedRenderbufferParameteriv gl3wProcs.gl.GetNamedRenderbufferParameteriv +#define glGetObjectLabel gl3wProcs.gl.GetObjectLabel +#define glGetObjectPtrLabel gl3wProcs.gl.GetObjectPtrLabel +#define glGetPointerv gl3wProcs.gl.GetPointerv +#define glGetProgramBinary gl3wProcs.gl.GetProgramBinary +#define glGetProgramInfoLog gl3wProcs.gl.GetProgramInfoLog +#define glGetProgramInterfaceiv gl3wProcs.gl.GetProgramInterfaceiv +#define glGetProgramPipelineInfoLog gl3wProcs.gl.GetProgramPipelineInfoLog +#define glGetProgramPipelineiv gl3wProcs.gl.GetProgramPipelineiv +#define glGetProgramResourceIndex gl3wProcs.gl.GetProgramResourceIndex +#define glGetProgramResourceLocation gl3wProcs.gl.GetProgramResourceLocation +#define glGetProgramResourceLocationIndex gl3wProcs.gl.GetProgramResourceLocationIndex +#define glGetProgramResourceName gl3wProcs.gl.GetProgramResourceName +#define glGetProgramResourceiv gl3wProcs.gl.GetProgramResourceiv +#define glGetProgramStageiv gl3wProcs.gl.GetProgramStageiv +#define glGetProgramiv gl3wProcs.gl.GetProgramiv +#define glGetQueryBufferObjecti64v gl3wProcs.gl.GetQueryBufferObjecti64v +#define glGetQueryBufferObjectiv gl3wProcs.gl.GetQueryBufferObjectiv +#define glGetQueryBufferObjectui64v gl3wProcs.gl.GetQueryBufferObjectui64v +#define glGetQueryBufferObjectuiv gl3wProcs.gl.GetQueryBufferObjectuiv +#define glGetQueryIndexediv gl3wProcs.gl.GetQueryIndexediv +#define glGetQueryObjecti64v gl3wProcs.gl.GetQueryObjecti64v +#define glGetQueryObjectiv gl3wProcs.gl.GetQueryObjectiv +#define glGetQueryObjectui64v gl3wProcs.gl.GetQueryObjectui64v +#define glGetQueryObjectuiv gl3wProcs.gl.GetQueryObjectuiv +#define glGetQueryiv gl3wProcs.gl.GetQueryiv +#define glGetRenderbufferParameteriv gl3wProcs.gl.GetRenderbufferParameteriv +#define glGetSamplerParameterIiv gl3wProcs.gl.GetSamplerParameterIiv +#define glGetSamplerParameterIuiv gl3wProcs.gl.GetSamplerParameterIuiv +#define glGetSamplerParameterfv gl3wProcs.gl.GetSamplerParameterfv +#define glGetSamplerParameteriv gl3wProcs.gl.GetSamplerParameteriv +#define glGetShaderInfoLog gl3wProcs.gl.GetShaderInfoLog +#define glGetShaderPrecisionFormat gl3wProcs.gl.GetShaderPrecisionFormat +#define glGetShaderSource gl3wProcs.gl.GetShaderSource +#define glGetShaderiv gl3wProcs.gl.GetShaderiv +#define glGetString gl3wProcs.gl.GetString +#define glGetStringi gl3wProcs.gl.GetStringi +#define glGetSubroutineIndex gl3wProcs.gl.GetSubroutineIndex +#define glGetSubroutineUniformLocation gl3wProcs.gl.GetSubroutineUniformLocation +#define glGetSynciv gl3wProcs.gl.GetSynciv +#define glGetTexImage gl3wProcs.gl.GetTexImage +#define glGetTexLevelParameterfv gl3wProcs.gl.GetTexLevelParameterfv +#define glGetTexLevelParameteriv gl3wProcs.gl.GetTexLevelParameteriv +#define glGetTexParameterIiv gl3wProcs.gl.GetTexParameterIiv +#define glGetTexParameterIuiv gl3wProcs.gl.GetTexParameterIuiv +#define glGetTexParameterfv gl3wProcs.gl.GetTexParameterfv +#define glGetTexParameteriv gl3wProcs.gl.GetTexParameteriv +#define glGetTextureImage gl3wProcs.gl.GetTextureImage +#define glGetTextureLevelParameterfv gl3wProcs.gl.GetTextureLevelParameterfv +#define glGetTextureLevelParameteriv gl3wProcs.gl.GetTextureLevelParameteriv +#define glGetTextureParameterIiv gl3wProcs.gl.GetTextureParameterIiv +#define glGetTextureParameterIuiv gl3wProcs.gl.GetTextureParameterIuiv +#define glGetTextureParameterfv gl3wProcs.gl.GetTextureParameterfv +#define glGetTextureParameteriv gl3wProcs.gl.GetTextureParameteriv +#define glGetTextureSubImage gl3wProcs.gl.GetTextureSubImage +#define glGetTransformFeedbackVarying gl3wProcs.gl.GetTransformFeedbackVarying +#define glGetTransformFeedbacki64_v gl3wProcs.gl.GetTransformFeedbacki64_v +#define glGetTransformFeedbacki_v gl3wProcs.gl.GetTransformFeedbacki_v +#define glGetTransformFeedbackiv gl3wProcs.gl.GetTransformFeedbackiv +#define glGetUniformBlockIndex gl3wProcs.gl.GetUniformBlockIndex +#define glGetUniformIndices gl3wProcs.gl.GetUniformIndices +#define glGetUniformLocation gl3wProcs.gl.GetUniformLocation +#define glGetUniformSubroutineuiv gl3wProcs.gl.GetUniformSubroutineuiv +#define glGetUniformdv gl3wProcs.gl.GetUniformdv +#define glGetUniformfv gl3wProcs.gl.GetUniformfv +#define glGetUniformiv gl3wProcs.gl.GetUniformiv +#define glGetUniformuiv gl3wProcs.gl.GetUniformuiv +#define glGetVertexArrayIndexed64iv gl3wProcs.gl.GetVertexArrayIndexed64iv +#define glGetVertexArrayIndexediv gl3wProcs.gl.GetVertexArrayIndexediv +#define glGetVertexArrayiv gl3wProcs.gl.GetVertexArrayiv +#define glGetVertexAttribIiv gl3wProcs.gl.GetVertexAttribIiv +#define glGetVertexAttribIuiv gl3wProcs.gl.GetVertexAttribIuiv +#define glGetVertexAttribLdv gl3wProcs.gl.GetVertexAttribLdv +#define glGetVertexAttribPointerv gl3wProcs.gl.GetVertexAttribPointerv +#define glGetVertexAttribdv gl3wProcs.gl.GetVertexAttribdv +#define glGetVertexAttribfv gl3wProcs.gl.GetVertexAttribfv +#define glGetVertexAttribiv gl3wProcs.gl.GetVertexAttribiv +#define glGetnCompressedTexImage gl3wProcs.gl.GetnCompressedTexImage +#define glGetnTexImage gl3wProcs.gl.GetnTexImage +#define glGetnUniformdv gl3wProcs.gl.GetnUniformdv +#define glGetnUniformfv gl3wProcs.gl.GetnUniformfv +#define glGetnUniformiv gl3wProcs.gl.GetnUniformiv +#define glGetnUniformuiv gl3wProcs.gl.GetnUniformuiv +#define glHint gl3wProcs.gl.Hint +#define glInvalidateBufferData gl3wProcs.gl.InvalidateBufferData +#define glInvalidateBufferSubData gl3wProcs.gl.InvalidateBufferSubData +#define glInvalidateFramebuffer gl3wProcs.gl.InvalidateFramebuffer +#define glInvalidateNamedFramebufferData gl3wProcs.gl.InvalidateNamedFramebufferData +#define glInvalidateNamedFramebufferSubData gl3wProcs.gl.InvalidateNamedFramebufferSubData +#define glInvalidateSubFramebuffer gl3wProcs.gl.InvalidateSubFramebuffer +#define glInvalidateTexImage gl3wProcs.gl.InvalidateTexImage +#define glInvalidateTexSubImage gl3wProcs.gl.InvalidateTexSubImage +#define glIsBuffer gl3wProcs.gl.IsBuffer +#define glIsEnabled gl3wProcs.gl.IsEnabled +#define glIsEnabledi gl3wProcs.gl.IsEnabledi +#define glIsFramebuffer gl3wProcs.gl.IsFramebuffer +#define glIsProgram gl3wProcs.gl.IsProgram +#define glIsProgramPipeline gl3wProcs.gl.IsProgramPipeline +#define glIsQuery gl3wProcs.gl.IsQuery +#define glIsRenderbuffer gl3wProcs.gl.IsRenderbuffer +#define glIsSampler gl3wProcs.gl.IsSampler +#define glIsShader gl3wProcs.gl.IsShader +#define glIsSync gl3wProcs.gl.IsSync +#define glIsTexture gl3wProcs.gl.IsTexture +#define glIsTransformFeedback gl3wProcs.gl.IsTransformFeedback +#define glIsVertexArray gl3wProcs.gl.IsVertexArray +#define glLineWidth gl3wProcs.gl.LineWidth +#define glLinkProgram gl3wProcs.gl.LinkProgram +#define glLogicOp gl3wProcs.gl.LogicOp +#define glMapBuffer gl3wProcs.gl.MapBuffer +#define glMapBufferRange gl3wProcs.gl.MapBufferRange +#define glMapNamedBuffer gl3wProcs.gl.MapNamedBuffer +#define glMapNamedBufferRange gl3wProcs.gl.MapNamedBufferRange +#define glMemoryBarrier gl3wProcs.gl.MemoryBarrier +#define glMemoryBarrierByRegion gl3wProcs.gl.MemoryBarrierByRegion +#define glMinSampleShading gl3wProcs.gl.MinSampleShading +#define glMultiDrawArrays gl3wProcs.gl.MultiDrawArrays +#define glMultiDrawArraysIndirect gl3wProcs.gl.MultiDrawArraysIndirect +#define glMultiDrawArraysIndirectCount gl3wProcs.gl.MultiDrawArraysIndirectCount +#define glMultiDrawElements gl3wProcs.gl.MultiDrawElements +#define glMultiDrawElementsBaseVertex gl3wProcs.gl.MultiDrawElementsBaseVertex +#define glMultiDrawElementsIndirect gl3wProcs.gl.MultiDrawElementsIndirect +#define glMultiDrawElementsIndirectCount gl3wProcs.gl.MultiDrawElementsIndirectCount +#define glNamedBufferData gl3wProcs.gl.NamedBufferData +#define glNamedBufferStorage gl3wProcs.gl.NamedBufferStorage +#define glNamedBufferSubData gl3wProcs.gl.NamedBufferSubData +#define glNamedFramebufferDrawBuffer gl3wProcs.gl.NamedFramebufferDrawBuffer +#define glNamedFramebufferDrawBuffers gl3wProcs.gl.NamedFramebufferDrawBuffers +#define glNamedFramebufferParameteri gl3wProcs.gl.NamedFramebufferParameteri +#define glNamedFramebufferReadBuffer gl3wProcs.gl.NamedFramebufferReadBuffer +#define glNamedFramebufferRenderbuffer gl3wProcs.gl.NamedFramebufferRenderbuffer +#define glNamedFramebufferTexture gl3wProcs.gl.NamedFramebufferTexture +#define glNamedFramebufferTextureLayer gl3wProcs.gl.NamedFramebufferTextureLayer +#define glNamedRenderbufferStorage gl3wProcs.gl.NamedRenderbufferStorage +#define glNamedRenderbufferStorageMultisample gl3wProcs.gl.NamedRenderbufferStorageMultisample +#define glObjectLabel gl3wProcs.gl.ObjectLabel +#define glObjectPtrLabel gl3wProcs.gl.ObjectPtrLabel +#define glPatchParameterfv gl3wProcs.gl.PatchParameterfv +#define glPatchParameteri gl3wProcs.gl.PatchParameteri +#define glPauseTransformFeedback gl3wProcs.gl.PauseTransformFeedback +#define glPixelStoref gl3wProcs.gl.PixelStoref +#define glPixelStorei gl3wProcs.gl.PixelStorei +#define glPointParameterf gl3wProcs.gl.PointParameterf +#define glPointParameterfv gl3wProcs.gl.PointParameterfv +#define glPointParameteri gl3wProcs.gl.PointParameteri +#define glPointParameteriv gl3wProcs.gl.PointParameteriv +#define glPointSize gl3wProcs.gl.PointSize +#define glPolygonMode gl3wProcs.gl.PolygonMode +#define glPolygonOffset gl3wProcs.gl.PolygonOffset +#define glPolygonOffsetClamp gl3wProcs.gl.PolygonOffsetClamp +#define glPopDebugGroup gl3wProcs.gl.PopDebugGroup +#define glPrimitiveRestartIndex gl3wProcs.gl.PrimitiveRestartIndex +#define glProgramBinary gl3wProcs.gl.ProgramBinary +#define glProgramParameteri gl3wProcs.gl.ProgramParameteri +#define glProgramUniform1d gl3wProcs.gl.ProgramUniform1d +#define glProgramUniform1dv gl3wProcs.gl.ProgramUniform1dv +#define glProgramUniform1f gl3wProcs.gl.ProgramUniform1f +#define glProgramUniform1fv gl3wProcs.gl.ProgramUniform1fv +#define glProgramUniform1i gl3wProcs.gl.ProgramUniform1i +#define glProgramUniform1iv gl3wProcs.gl.ProgramUniform1iv +#define glProgramUniform1ui gl3wProcs.gl.ProgramUniform1ui +#define glProgramUniform1uiv gl3wProcs.gl.ProgramUniform1uiv +#define glProgramUniform2d gl3wProcs.gl.ProgramUniform2d +#define glProgramUniform2dv gl3wProcs.gl.ProgramUniform2dv +#define glProgramUniform2f gl3wProcs.gl.ProgramUniform2f +#define glProgramUniform2fv gl3wProcs.gl.ProgramUniform2fv +#define glProgramUniform2i gl3wProcs.gl.ProgramUniform2i +#define glProgramUniform2iv gl3wProcs.gl.ProgramUniform2iv +#define glProgramUniform2ui gl3wProcs.gl.ProgramUniform2ui +#define glProgramUniform2uiv gl3wProcs.gl.ProgramUniform2uiv +#define glProgramUniform3d gl3wProcs.gl.ProgramUniform3d +#define glProgramUniform3dv gl3wProcs.gl.ProgramUniform3dv +#define glProgramUniform3f gl3wProcs.gl.ProgramUniform3f +#define glProgramUniform3fv gl3wProcs.gl.ProgramUniform3fv +#define glProgramUniform3i gl3wProcs.gl.ProgramUniform3i +#define glProgramUniform3iv gl3wProcs.gl.ProgramUniform3iv +#define glProgramUniform3ui gl3wProcs.gl.ProgramUniform3ui +#define glProgramUniform3uiv gl3wProcs.gl.ProgramUniform3uiv +#define glProgramUniform4d gl3wProcs.gl.ProgramUniform4d +#define glProgramUniform4dv gl3wProcs.gl.ProgramUniform4dv +#define glProgramUniform4f gl3wProcs.gl.ProgramUniform4f +#define glProgramUniform4fv gl3wProcs.gl.ProgramUniform4fv +#define glProgramUniform4i gl3wProcs.gl.ProgramUniform4i +#define glProgramUniform4iv gl3wProcs.gl.ProgramUniform4iv +#define glProgramUniform4ui gl3wProcs.gl.ProgramUniform4ui +#define glProgramUniform4uiv gl3wProcs.gl.ProgramUniform4uiv +#define glProgramUniformMatrix2dv gl3wProcs.gl.ProgramUniformMatrix2dv +#define glProgramUniformMatrix2fv gl3wProcs.gl.ProgramUniformMatrix2fv +#define glProgramUniformMatrix2x3dv gl3wProcs.gl.ProgramUniformMatrix2x3dv +#define glProgramUniformMatrix2x3fv gl3wProcs.gl.ProgramUniformMatrix2x3fv +#define glProgramUniformMatrix2x4dv gl3wProcs.gl.ProgramUniformMatrix2x4dv +#define glProgramUniformMatrix2x4fv gl3wProcs.gl.ProgramUniformMatrix2x4fv +#define glProgramUniformMatrix3dv gl3wProcs.gl.ProgramUniformMatrix3dv +#define glProgramUniformMatrix3fv gl3wProcs.gl.ProgramUniformMatrix3fv +#define glProgramUniformMatrix3x2dv gl3wProcs.gl.ProgramUniformMatrix3x2dv +#define glProgramUniformMatrix3x2fv gl3wProcs.gl.ProgramUniformMatrix3x2fv +#define glProgramUniformMatrix3x4dv gl3wProcs.gl.ProgramUniformMatrix3x4dv +#define glProgramUniformMatrix3x4fv gl3wProcs.gl.ProgramUniformMatrix3x4fv +#define glProgramUniformMatrix4dv gl3wProcs.gl.ProgramUniformMatrix4dv +#define glProgramUniformMatrix4fv gl3wProcs.gl.ProgramUniformMatrix4fv +#define glProgramUniformMatrix4x2dv gl3wProcs.gl.ProgramUniformMatrix4x2dv +#define glProgramUniformMatrix4x2fv gl3wProcs.gl.ProgramUniformMatrix4x2fv +#define glProgramUniformMatrix4x3dv gl3wProcs.gl.ProgramUniformMatrix4x3dv +#define glProgramUniformMatrix4x3fv gl3wProcs.gl.ProgramUniformMatrix4x3fv +#define glProvokingVertex gl3wProcs.gl.ProvokingVertex +#define glPushDebugGroup gl3wProcs.gl.PushDebugGroup +#define glQueryCounter gl3wProcs.gl.QueryCounter +#define glReadBuffer gl3wProcs.gl.ReadBuffer +#define glReadPixels gl3wProcs.gl.ReadPixels +#define glReadnPixels gl3wProcs.gl.ReadnPixels +#define glReleaseShaderCompiler gl3wProcs.gl.ReleaseShaderCompiler +#define glRenderbufferStorage gl3wProcs.gl.RenderbufferStorage +#define glRenderbufferStorageMultisample gl3wProcs.gl.RenderbufferStorageMultisample +#define glResumeTransformFeedback gl3wProcs.gl.ResumeTransformFeedback +#define glSampleCoverage gl3wProcs.gl.SampleCoverage +#define glSampleMaski gl3wProcs.gl.SampleMaski +#define glSamplerParameterIiv gl3wProcs.gl.SamplerParameterIiv +#define glSamplerParameterIuiv gl3wProcs.gl.SamplerParameterIuiv +#define glSamplerParameterf gl3wProcs.gl.SamplerParameterf +#define glSamplerParameterfv gl3wProcs.gl.SamplerParameterfv +#define glSamplerParameteri gl3wProcs.gl.SamplerParameteri +#define glSamplerParameteriv gl3wProcs.gl.SamplerParameteriv +#define glScissor gl3wProcs.gl.Scissor +#define glScissorArrayv gl3wProcs.gl.ScissorArrayv +#define glScissorIndexed gl3wProcs.gl.ScissorIndexed +#define glScissorIndexedv gl3wProcs.gl.ScissorIndexedv +#define glShaderBinary gl3wProcs.gl.ShaderBinary +#define glShaderSource gl3wProcs.gl.ShaderSource +#define glShaderStorageBlockBinding gl3wProcs.gl.ShaderStorageBlockBinding +#define glSpecializeShader gl3wProcs.gl.SpecializeShader +#define glStencilFunc gl3wProcs.gl.StencilFunc +#define glStencilFuncSeparate gl3wProcs.gl.StencilFuncSeparate +#define glStencilMask gl3wProcs.gl.StencilMask +#define glStencilMaskSeparate gl3wProcs.gl.StencilMaskSeparate +#define glStencilOp gl3wProcs.gl.StencilOp +#define glStencilOpSeparate gl3wProcs.gl.StencilOpSeparate +#define glTexBuffer gl3wProcs.gl.TexBuffer +#define glTexBufferRange gl3wProcs.gl.TexBufferRange +#define glTexImage1D gl3wProcs.gl.TexImage1D +#define glTexImage2D gl3wProcs.gl.TexImage2D +#define glTexImage2DMultisample gl3wProcs.gl.TexImage2DMultisample +#define glTexImage3D gl3wProcs.gl.TexImage3D +#define glTexImage3DMultisample gl3wProcs.gl.TexImage3DMultisample +#define glTexParameterIiv gl3wProcs.gl.TexParameterIiv +#define glTexParameterIuiv gl3wProcs.gl.TexParameterIuiv +#define glTexParameterf gl3wProcs.gl.TexParameterf +#define glTexParameterfv gl3wProcs.gl.TexParameterfv +#define glTexParameteri gl3wProcs.gl.TexParameteri +#define glTexParameteriv gl3wProcs.gl.TexParameteriv +#define glTexStorage1D gl3wProcs.gl.TexStorage1D +#define glTexStorage2D gl3wProcs.gl.TexStorage2D +#define glTexStorage2DMultisample gl3wProcs.gl.TexStorage2DMultisample +#define glTexStorage3D gl3wProcs.gl.TexStorage3D +#define glTexStorage3DMultisample gl3wProcs.gl.TexStorage3DMultisample +#define glTexSubImage1D gl3wProcs.gl.TexSubImage1D +#define glTexSubImage2D gl3wProcs.gl.TexSubImage2D +#define glTexSubImage3D gl3wProcs.gl.TexSubImage3D +#define glTextureBarrier gl3wProcs.gl.TextureBarrier +#define glTextureBuffer gl3wProcs.gl.TextureBuffer +#define glTextureBufferRange gl3wProcs.gl.TextureBufferRange +#define glTextureParameterIiv gl3wProcs.gl.TextureParameterIiv +#define glTextureParameterIuiv gl3wProcs.gl.TextureParameterIuiv +#define glTextureParameterf gl3wProcs.gl.TextureParameterf +#define glTextureParameterfv gl3wProcs.gl.TextureParameterfv +#define glTextureParameteri gl3wProcs.gl.TextureParameteri +#define glTextureParameteriv gl3wProcs.gl.TextureParameteriv +#define glTextureStorage1D gl3wProcs.gl.TextureStorage1D +#define glTextureStorage2D gl3wProcs.gl.TextureStorage2D +#define glTextureStorage2DMultisample gl3wProcs.gl.TextureStorage2DMultisample +#define glTextureStorage3D gl3wProcs.gl.TextureStorage3D +#define glTextureStorage3DMultisample gl3wProcs.gl.TextureStorage3DMultisample +#define glTextureSubImage1D gl3wProcs.gl.TextureSubImage1D +#define glTextureSubImage2D gl3wProcs.gl.TextureSubImage2D +#define glTextureSubImage3D gl3wProcs.gl.TextureSubImage3D +#define glTextureView gl3wProcs.gl.TextureView +#define glTransformFeedbackBufferBase gl3wProcs.gl.TransformFeedbackBufferBase +#define glTransformFeedbackBufferRange gl3wProcs.gl.TransformFeedbackBufferRange +#define glTransformFeedbackVaryings gl3wProcs.gl.TransformFeedbackVaryings +#define glUniform1d gl3wProcs.gl.Uniform1d +#define glUniform1dv gl3wProcs.gl.Uniform1dv +#define glUniform1f gl3wProcs.gl.Uniform1f +#define glUniform1fv gl3wProcs.gl.Uniform1fv +#define glUniform1i gl3wProcs.gl.Uniform1i +#define glUniform1iv gl3wProcs.gl.Uniform1iv +#define glUniform1ui gl3wProcs.gl.Uniform1ui +#define glUniform1uiv gl3wProcs.gl.Uniform1uiv +#define glUniform2d gl3wProcs.gl.Uniform2d +#define glUniform2dv gl3wProcs.gl.Uniform2dv +#define glUniform2f gl3wProcs.gl.Uniform2f +#define glUniform2fv gl3wProcs.gl.Uniform2fv +#define glUniform2i gl3wProcs.gl.Uniform2i +#define glUniform2iv gl3wProcs.gl.Uniform2iv +#define glUniform2ui gl3wProcs.gl.Uniform2ui +#define glUniform2uiv gl3wProcs.gl.Uniform2uiv +#define glUniform3d gl3wProcs.gl.Uniform3d +#define glUniform3dv gl3wProcs.gl.Uniform3dv +#define glUniform3f gl3wProcs.gl.Uniform3f +#define glUniform3fv gl3wProcs.gl.Uniform3fv +#define glUniform3i gl3wProcs.gl.Uniform3i +#define glUniform3iv gl3wProcs.gl.Uniform3iv +#define glUniform3ui gl3wProcs.gl.Uniform3ui +#define glUniform3uiv gl3wProcs.gl.Uniform3uiv +#define glUniform4d gl3wProcs.gl.Uniform4d +#define glUniform4dv gl3wProcs.gl.Uniform4dv +#define glUniform4f gl3wProcs.gl.Uniform4f +#define glUniform4fv gl3wProcs.gl.Uniform4fv +#define glUniform4i gl3wProcs.gl.Uniform4i +#define glUniform4iv gl3wProcs.gl.Uniform4iv +#define glUniform4ui gl3wProcs.gl.Uniform4ui +#define glUniform4uiv gl3wProcs.gl.Uniform4uiv +#define glUniformBlockBinding gl3wProcs.gl.UniformBlockBinding +#define glUniformMatrix2dv gl3wProcs.gl.UniformMatrix2dv +#define glUniformMatrix2fv gl3wProcs.gl.UniformMatrix2fv +#define glUniformMatrix2x3dv gl3wProcs.gl.UniformMatrix2x3dv +#define glUniformMatrix2x3fv gl3wProcs.gl.UniformMatrix2x3fv +#define glUniformMatrix2x4dv gl3wProcs.gl.UniformMatrix2x4dv +#define glUniformMatrix2x4fv gl3wProcs.gl.UniformMatrix2x4fv +#define glUniformMatrix3dv gl3wProcs.gl.UniformMatrix3dv +#define glUniformMatrix3fv gl3wProcs.gl.UniformMatrix3fv +#define glUniformMatrix3x2dv gl3wProcs.gl.UniformMatrix3x2dv +#define glUniformMatrix3x2fv gl3wProcs.gl.UniformMatrix3x2fv +#define glUniformMatrix3x4dv gl3wProcs.gl.UniformMatrix3x4dv +#define glUniformMatrix3x4fv gl3wProcs.gl.UniformMatrix3x4fv +#define glUniformMatrix4dv gl3wProcs.gl.UniformMatrix4dv +#define glUniformMatrix4fv gl3wProcs.gl.UniformMatrix4fv +#define glUniformMatrix4x2dv gl3wProcs.gl.UniformMatrix4x2dv +#define glUniformMatrix4x2fv gl3wProcs.gl.UniformMatrix4x2fv +#define glUniformMatrix4x3dv gl3wProcs.gl.UniformMatrix4x3dv +#define glUniformMatrix4x3fv gl3wProcs.gl.UniformMatrix4x3fv +#define glUniformSubroutinesuiv gl3wProcs.gl.UniformSubroutinesuiv +#define glUnmapBuffer gl3wProcs.gl.UnmapBuffer +#define glUnmapNamedBuffer gl3wProcs.gl.UnmapNamedBuffer +#define glUseProgram gl3wProcs.gl.UseProgram +#define glUseProgramStages gl3wProcs.gl.UseProgramStages +#define glValidateProgram gl3wProcs.gl.ValidateProgram +#define glValidateProgramPipeline gl3wProcs.gl.ValidateProgramPipeline +#define glVertexArrayAttribBinding gl3wProcs.gl.VertexArrayAttribBinding +#define glVertexArrayAttribFormat gl3wProcs.gl.VertexArrayAttribFormat +#define glVertexArrayAttribIFormat gl3wProcs.gl.VertexArrayAttribIFormat +#define glVertexArrayAttribLFormat gl3wProcs.gl.VertexArrayAttribLFormat +#define glVertexArrayBindingDivisor gl3wProcs.gl.VertexArrayBindingDivisor +#define glVertexArrayElementBuffer gl3wProcs.gl.VertexArrayElementBuffer +#define glVertexArrayVertexBuffer gl3wProcs.gl.VertexArrayVertexBuffer +#define glVertexArrayVertexBuffers gl3wProcs.gl.VertexArrayVertexBuffers +#define glVertexAttrib1d gl3wProcs.gl.VertexAttrib1d +#define glVertexAttrib1dv gl3wProcs.gl.VertexAttrib1dv +#define glVertexAttrib1f gl3wProcs.gl.VertexAttrib1f +#define glVertexAttrib1fv gl3wProcs.gl.VertexAttrib1fv +#define glVertexAttrib1s gl3wProcs.gl.VertexAttrib1s +#define glVertexAttrib1sv gl3wProcs.gl.VertexAttrib1sv +#define glVertexAttrib2d gl3wProcs.gl.VertexAttrib2d +#define glVertexAttrib2dv gl3wProcs.gl.VertexAttrib2dv +#define glVertexAttrib2f gl3wProcs.gl.VertexAttrib2f +#define glVertexAttrib2fv gl3wProcs.gl.VertexAttrib2fv +#define glVertexAttrib2s gl3wProcs.gl.VertexAttrib2s +#define glVertexAttrib2sv gl3wProcs.gl.VertexAttrib2sv +#define glVertexAttrib3d gl3wProcs.gl.VertexAttrib3d +#define glVertexAttrib3dv gl3wProcs.gl.VertexAttrib3dv +#define glVertexAttrib3f gl3wProcs.gl.VertexAttrib3f +#define glVertexAttrib3fv gl3wProcs.gl.VertexAttrib3fv +#define glVertexAttrib3s gl3wProcs.gl.VertexAttrib3s +#define glVertexAttrib3sv gl3wProcs.gl.VertexAttrib3sv +#define glVertexAttrib4Nbv gl3wProcs.gl.VertexAttrib4Nbv +#define glVertexAttrib4Niv gl3wProcs.gl.VertexAttrib4Niv +#define glVertexAttrib4Nsv gl3wProcs.gl.VertexAttrib4Nsv +#define glVertexAttrib4Nub gl3wProcs.gl.VertexAttrib4Nub +#define glVertexAttrib4Nubv gl3wProcs.gl.VertexAttrib4Nubv +#define glVertexAttrib4Nuiv gl3wProcs.gl.VertexAttrib4Nuiv +#define glVertexAttrib4Nusv gl3wProcs.gl.VertexAttrib4Nusv +#define glVertexAttrib4bv gl3wProcs.gl.VertexAttrib4bv +#define glVertexAttrib4d gl3wProcs.gl.VertexAttrib4d +#define glVertexAttrib4dv gl3wProcs.gl.VertexAttrib4dv +#define glVertexAttrib4f gl3wProcs.gl.VertexAttrib4f +#define glVertexAttrib4fv gl3wProcs.gl.VertexAttrib4fv +#define glVertexAttrib4iv gl3wProcs.gl.VertexAttrib4iv +#define glVertexAttrib4s gl3wProcs.gl.VertexAttrib4s +#define glVertexAttrib4sv gl3wProcs.gl.VertexAttrib4sv +#define glVertexAttrib4ubv gl3wProcs.gl.VertexAttrib4ubv +#define glVertexAttrib4uiv gl3wProcs.gl.VertexAttrib4uiv +#define glVertexAttrib4usv gl3wProcs.gl.VertexAttrib4usv +#define glVertexAttribBinding gl3wProcs.gl.VertexAttribBinding +#define glVertexAttribDivisor gl3wProcs.gl.VertexAttribDivisor +#define glVertexAttribFormat gl3wProcs.gl.VertexAttribFormat +#define glVertexAttribI1i gl3wProcs.gl.VertexAttribI1i +#define glVertexAttribI1iv gl3wProcs.gl.VertexAttribI1iv +#define glVertexAttribI1ui gl3wProcs.gl.VertexAttribI1ui +#define glVertexAttribI1uiv gl3wProcs.gl.VertexAttribI1uiv +#define glVertexAttribI2i gl3wProcs.gl.VertexAttribI2i +#define glVertexAttribI2iv gl3wProcs.gl.VertexAttribI2iv +#define glVertexAttribI2ui gl3wProcs.gl.VertexAttribI2ui +#define glVertexAttribI2uiv gl3wProcs.gl.VertexAttribI2uiv +#define glVertexAttribI3i gl3wProcs.gl.VertexAttribI3i +#define glVertexAttribI3iv gl3wProcs.gl.VertexAttribI3iv +#define glVertexAttribI3ui gl3wProcs.gl.VertexAttribI3ui +#define glVertexAttribI3uiv gl3wProcs.gl.VertexAttribI3uiv +#define glVertexAttribI4bv gl3wProcs.gl.VertexAttribI4bv +#define glVertexAttribI4i gl3wProcs.gl.VertexAttribI4i +#define glVertexAttribI4iv gl3wProcs.gl.VertexAttribI4iv +#define glVertexAttribI4sv gl3wProcs.gl.VertexAttribI4sv +#define glVertexAttribI4ubv gl3wProcs.gl.VertexAttribI4ubv +#define glVertexAttribI4ui gl3wProcs.gl.VertexAttribI4ui +#define glVertexAttribI4uiv gl3wProcs.gl.VertexAttribI4uiv +#define glVertexAttribI4usv gl3wProcs.gl.VertexAttribI4usv +#define glVertexAttribIFormat gl3wProcs.gl.VertexAttribIFormat +#define glVertexAttribIPointer gl3wProcs.gl.VertexAttribIPointer +#define glVertexAttribL1d gl3wProcs.gl.VertexAttribL1d +#define glVertexAttribL1dv gl3wProcs.gl.VertexAttribL1dv +#define glVertexAttribL2d gl3wProcs.gl.VertexAttribL2d +#define glVertexAttribL2dv gl3wProcs.gl.VertexAttribL2dv +#define glVertexAttribL3d gl3wProcs.gl.VertexAttribL3d +#define glVertexAttribL3dv gl3wProcs.gl.VertexAttribL3dv +#define glVertexAttribL4d gl3wProcs.gl.VertexAttribL4d +#define glVertexAttribL4dv gl3wProcs.gl.VertexAttribL4dv +#define glVertexAttribLFormat gl3wProcs.gl.VertexAttribLFormat +#define glVertexAttribLPointer gl3wProcs.gl.VertexAttribLPointer +#define glVertexAttribP1ui gl3wProcs.gl.VertexAttribP1ui +#define glVertexAttribP1uiv gl3wProcs.gl.VertexAttribP1uiv +#define glVertexAttribP2ui gl3wProcs.gl.VertexAttribP2ui +#define glVertexAttribP2uiv gl3wProcs.gl.VertexAttribP2uiv +#define glVertexAttribP3ui gl3wProcs.gl.VertexAttribP3ui +#define glVertexAttribP3uiv gl3wProcs.gl.VertexAttribP3uiv +#define glVertexAttribP4ui gl3wProcs.gl.VertexAttribP4ui +#define glVertexAttribP4uiv gl3wProcs.gl.VertexAttribP4uiv +#define glVertexAttribPointer gl3wProcs.gl.VertexAttribPointer +#define glVertexBindingDivisor gl3wProcs.gl.VertexBindingDivisor +#define glViewport gl3wProcs.gl.Viewport +#define glViewportArrayv gl3wProcs.gl.ViewportArrayv +#define glViewportIndexedf gl3wProcs.gl.ViewportIndexedf +#define glViewportIndexedfv gl3wProcs.gl.ViewportIndexedfv +#define glWaitSync gl3wProcs.gl.WaitSync + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/thirdparty/imgui_suite/generated/gl3w/include/GL/glcorearb.h b/thirdparty/imgui_suite/generated/gl3w/include/GL/glcorearb.h new file mode 100644 index 00000000000..2d95c385f6f --- /dev/null +++ b/thirdparty/imgui_suite/generated/gl3w/include/GL/glcorearb.h @@ -0,0 +1,5997 @@ +#ifndef __gl_glcorearb_h_ +#define __gl_glcorearb_h_ 1 + +#ifdef __cplusplus +extern "C" { +#endif + +/* +** Copyright 2013-2020 The Khronos Group Inc. +** SPDX-License-Identifier: MIT +** +** This header is generated from the Khronos OpenGL / OpenGL ES XML +** API Registry. The current version of the Registry, generator scripts +** used to make the header, and the header can be found at +** https://github.com/KhronosGroup/OpenGL-Registry +*/ + +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif +#ifndef GLAPI +#define GLAPI extern +#endif + +/* glcorearb.h is for use with OpenGL core profile implementations. +** It should should be placed in the same directory as gl.h and +** included as . +** +** glcorearb.h includes only APIs in the latest OpenGL core profile +** implementation together with APIs in newer ARB extensions which +** can be supported by the core profile. It does not, and never will +** include functionality removed from the core profile, such as +** fixed-function vertex and fragment processing. +** +** Do not #include both and either of or +** in the same source file. +*/ + +/* Generated C header for: + * API: gl + * Profile: core + * Versions considered: .* + * Versions emitted: .* + * Default extensions included: glcore + * Additional extensions included: _nomatch_^ + * Extensions removed: _nomatch_^ + */ + +#ifndef GL_VERSION_1_0 +#define GL_VERSION_1_0 1 +typedef void GLvoid; +typedef unsigned int GLenum; +#include +typedef khronos_float_t GLfloat; +typedef int GLint; +typedef int GLsizei; +typedef unsigned int GLbitfield; +typedef double GLdouble; +typedef unsigned int GLuint; +typedef unsigned char GLboolean; +typedef khronos_uint8_t GLubyte; +#define GL_DEPTH_BUFFER_BIT 0x00000100 +#define GL_STENCIL_BUFFER_BIT 0x00000400 +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_FALSE 0 +#define GL_TRUE 1 +#define GL_POINTS 0x0000 +#define GL_LINES 0x0001 +#define GL_LINE_LOOP 0x0002 +#define GL_LINE_STRIP 0x0003 +#define GL_TRIANGLES 0x0004 +#define GL_TRIANGLE_STRIP 0x0005 +#define GL_TRIANGLE_FAN 0x0006 +#define GL_QUADS 0x0007 +#define GL_NEVER 0x0200 +#define GL_LESS 0x0201 +#define GL_EQUAL 0x0202 +#define GL_LEQUAL 0x0203 +#define GL_GREATER 0x0204 +#define GL_NOTEQUAL 0x0205 +#define GL_GEQUAL 0x0206 +#define GL_ALWAYS 0x0207 +#define GL_ZERO 0 +#define GL_ONE 1 +#define GL_SRC_COLOR 0x0300 +#define GL_ONE_MINUS_SRC_COLOR 0x0301 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_DST_ALPHA 0x0304 +#define GL_ONE_MINUS_DST_ALPHA 0x0305 +#define GL_DST_COLOR 0x0306 +#define GL_ONE_MINUS_DST_COLOR 0x0307 +#define GL_SRC_ALPHA_SATURATE 0x0308 +#define GL_NONE 0 +#define GL_FRONT_LEFT 0x0400 +#define GL_FRONT_RIGHT 0x0401 +#define GL_BACK_LEFT 0x0402 +#define GL_BACK_RIGHT 0x0403 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_LEFT 0x0406 +#define GL_RIGHT 0x0407 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_NO_ERROR 0 +#define GL_INVALID_ENUM 0x0500 +#define GL_INVALID_VALUE 0x0501 +#define GL_INVALID_OPERATION 0x0502 +#define GL_OUT_OF_MEMORY 0x0505 +#define GL_CW 0x0900 +#define GL_CCW 0x0901 +#define GL_POINT_SIZE 0x0B11 +#define GL_POINT_SIZE_RANGE 0x0B12 +#define GL_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_LINE_SMOOTH 0x0B20 +#define GL_LINE_WIDTH 0x0B21 +#define GL_LINE_WIDTH_RANGE 0x0B22 +#define GL_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_POLYGON_MODE 0x0B40 +#define GL_POLYGON_SMOOTH 0x0B41 +#define GL_CULL_FACE 0x0B44 +#define GL_CULL_FACE_MODE 0x0B45 +#define GL_FRONT_FACE 0x0B46 +#define GL_DEPTH_RANGE 0x0B70 +#define GL_DEPTH_TEST 0x0B71 +#define GL_DEPTH_WRITEMASK 0x0B72 +#define GL_DEPTH_CLEAR_VALUE 0x0B73 +#define GL_DEPTH_FUNC 0x0B74 +#define GL_STENCIL_TEST 0x0B90 +#define GL_STENCIL_CLEAR_VALUE 0x0B91 +#define GL_STENCIL_FUNC 0x0B92 +#define GL_STENCIL_VALUE_MASK 0x0B93 +#define GL_STENCIL_FAIL 0x0B94 +#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 +#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 +#define GL_STENCIL_REF 0x0B97 +#define GL_STENCIL_WRITEMASK 0x0B98 +#define GL_VIEWPORT 0x0BA2 +#define GL_DITHER 0x0BD0 +#define GL_BLEND_DST 0x0BE0 +#define GL_BLEND_SRC 0x0BE1 +#define GL_BLEND 0x0BE2 +#define GL_LOGIC_OP_MODE 0x0BF0 +#define GL_DRAW_BUFFER 0x0C01 +#define GL_READ_BUFFER 0x0C02 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_COLOR_CLEAR_VALUE 0x0C22 +#define GL_COLOR_WRITEMASK 0x0C23 +#define GL_DOUBLEBUFFER 0x0C32 +#define GL_STEREO 0x0C33 +#define GL_LINE_SMOOTH_HINT 0x0C52 +#define GL_POLYGON_SMOOTH_HINT 0x0C53 +#define GL_UNPACK_SWAP_BYTES 0x0CF0 +#define GL_UNPACK_LSB_FIRST 0x0CF1 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_UNPACK_SKIP_ROWS 0x0CF3 +#define GL_UNPACK_SKIP_PIXELS 0x0CF4 +#define GL_UNPACK_ALIGNMENT 0x0CF5 +#define GL_PACK_SWAP_BYTES 0x0D00 +#define GL_PACK_LSB_FIRST 0x0D01 +#define GL_PACK_ROW_LENGTH 0x0D02 +#define GL_PACK_SKIP_ROWS 0x0D03 +#define GL_PACK_SKIP_PIXELS 0x0D04 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_MAX_TEXTURE_SIZE 0x0D33 +#define GL_MAX_VIEWPORT_DIMS 0x0D3A +#define GL_SUBPIXEL_BITS 0x0D50 +#define GL_TEXTURE_1D 0x0DE0 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_TEXTURE_WIDTH 0x1000 +#define GL_TEXTURE_HEIGHT 0x1001 +#define GL_TEXTURE_BORDER_COLOR 0x1004 +#define GL_DONT_CARE 0x1100 +#define GL_FASTEST 0x1101 +#define GL_NICEST 0x1102 +#define GL_BYTE 0x1400 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_SHORT 0x1402 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_INT 0x1404 +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_STACK_OVERFLOW 0x0503 +#define GL_STACK_UNDERFLOW 0x0504 +#define GL_CLEAR 0x1500 +#define GL_AND 0x1501 +#define GL_AND_REVERSE 0x1502 +#define GL_COPY 0x1503 +#define GL_AND_INVERTED 0x1504 +#define GL_NOOP 0x1505 +#define GL_XOR 0x1506 +#define GL_OR 0x1507 +#define GL_NOR 0x1508 +#define GL_EQUIV 0x1509 +#define GL_INVERT 0x150A +#define GL_OR_REVERSE 0x150B +#define GL_COPY_INVERTED 0x150C +#define GL_OR_INVERTED 0x150D +#define GL_NAND 0x150E +#define GL_SET 0x150F +#define GL_TEXTURE 0x1702 +#define GL_COLOR 0x1800 +#define GL_DEPTH 0x1801 +#define GL_STENCIL 0x1802 +#define GL_STENCIL_INDEX 0x1901 +#define GL_DEPTH_COMPONENT 0x1902 +#define GL_RED 0x1903 +#define GL_GREEN 0x1904 +#define GL_BLUE 0x1905 +#define GL_ALPHA 0x1906 +#define GL_RGB 0x1907 +#define GL_RGBA 0x1908 +#define GL_POINT 0x1B00 +#define GL_LINE 0x1B01 +#define GL_FILL 0x1B02 +#define GL_KEEP 0x1E00 +#define GL_REPLACE 0x1E01 +#define GL_INCR 0x1E02 +#define GL_DECR 0x1E03 +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 +#define GL_EXTENSIONS 0x1F03 +#define GL_NEAREST 0x2600 +#define GL_LINEAR 0x2601 +#define GL_NEAREST_MIPMAP_NEAREST 0x2700 +#define GL_LINEAR_MIPMAP_NEAREST 0x2701 +#define GL_NEAREST_MIPMAP_LINEAR 0x2702 +#define GL_LINEAR_MIPMAP_LINEAR 0x2703 +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +#define GL_TEXTURE_WRAP_S 0x2802 +#define GL_TEXTURE_WRAP_T 0x2803 +#define GL_REPEAT 0x2901 +typedef void (APIENTRYP PFNGLCULLFACEPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode); +typedef void (APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width); +typedef void (APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size); +typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode); +typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum buf); +typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s); +typedef void (APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble depth); +typedef void (APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask); +typedef void (APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +typedef void (APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag); +typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLFINISHPROC) (void); +typedef void (APIENTRYP PFNGLFLUSHPROC) (void); +typedef void (APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor); +typedef void (APIENTRYP PFNGLLOGICOPPROC) (GLenum opcode); +typedef void (APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass); +typedef void (APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func); +typedef void (APIENTRYP PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLREADBUFFERPROC) (GLenum src); +typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *data); +typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *data); +typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void); +typedef void (APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data); +typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGPROC) (GLenum name); +typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params); +typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLDEPTHRANGEPROC) (GLdouble n, GLdouble f); +typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCullFace (GLenum mode); +GLAPI void APIENTRY glFrontFace (GLenum mode); +GLAPI void APIENTRY glHint (GLenum target, GLenum mode); +GLAPI void APIENTRY glLineWidth (GLfloat width); +GLAPI void APIENTRY glPointSize (GLfloat size); +GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode); +GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glDrawBuffer (GLenum buf); +GLAPI void APIENTRY glClear (GLbitfield mask); +GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void APIENTRY glClearStencil (GLint s); +GLAPI void APIENTRY glClearDepth (GLdouble depth); +GLAPI void APIENTRY glStencilMask (GLuint mask); +GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +GLAPI void APIENTRY glDepthMask (GLboolean flag); +GLAPI void APIENTRY glDisable (GLenum cap); +GLAPI void APIENTRY glEnable (GLenum cap); +GLAPI void APIENTRY glFinish (void); +GLAPI void APIENTRY glFlush (void); +GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); +GLAPI void APIENTRY glLogicOp (GLenum opcode); +GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); +GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); +GLAPI void APIENTRY glDepthFunc (GLenum func); +GLAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param); +GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); +GLAPI void APIENTRY glReadBuffer (GLenum src); +GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *data); +GLAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *data); +GLAPI GLenum APIENTRY glGetError (void); +GLAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *data); +GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *data); +GLAPI const GLubyte *APIENTRY glGetString (GLenum name); +GLAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); +GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap); +GLAPI void APIENTRY glDepthRange (GLdouble n, GLdouble f); +GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_VERSION_1_0 */ + +#ifndef GL_VERSION_1_1 +#define GL_VERSION_1_1 1 +typedef khronos_float_t GLclampf; +typedef double GLclampd; +#define GL_COLOR_LOGIC_OP 0x0BF2 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_POLYGON_OFFSET_FILL 0x8037 +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_TEXTURE_BINDING_1D 0x8068 +#define GL_TEXTURE_BINDING_2D 0x8069 +#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 +#define GL_TEXTURE_RED_SIZE 0x805C +#define GL_TEXTURE_GREEN_SIZE 0x805D +#define GL_TEXTURE_BLUE_SIZE 0x805E +#define GL_TEXTURE_ALPHA_SIZE 0x805F +#define GL_DOUBLE 0x140A +#define GL_PROXY_TEXTURE_1D 0x8063 +#define GL_PROXY_TEXTURE_2D 0x8064 +#define GL_R3_G3_B2 0x2A10 +#define GL_RGB4 0x804F +#define GL_RGB5 0x8050 +#define GL_RGB8 0x8051 +#define GL_RGB10 0x8052 +#define GL_RGB12 0x8053 +#define GL_RGB16 0x8054 +#define GL_RGBA2 0x8055 +#define GL_RGBA4 0x8056 +#define GL_RGB5_A1 0x8057 +#define GL_RGBA8 0x8058 +#define GL_RGB10_A2 0x8059 +#define GL_RGBA12 0x805A +#define GL_RGBA16 0x805B +#define GL_VERTEX_ARRAY 0x8074 +typedef void (APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices); +typedef void (APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, void **params); +typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units); +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures); +typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); +GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices); +GLAPI void APIENTRY glGetPointerv (GLenum pname, void **params); +GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); +GLAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +GLAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); +GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); +GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); +GLAPI GLboolean APIENTRY glIsTexture (GLuint texture); +#endif +#endif /* GL_VERSION_1_1 */ + +#ifndef GL_VERSION_1_2 +#define GL_VERSION_1_2 1 +#define GL_UNSIGNED_BYTE_3_3_2 0x8032 +#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 +#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 +#define GL_UNSIGNED_INT_8_8_8_8 0x8035 +#define GL_UNSIGNED_INT_10_10_10_2 0x8036 +#define GL_TEXTURE_BINDING_3D 0x806A +#define GL_PACK_SKIP_IMAGES 0x806B +#define GL_PACK_IMAGE_HEIGHT 0x806C +#define GL_UNPACK_SKIP_IMAGES 0x806D +#define GL_UNPACK_IMAGE_HEIGHT 0x806E +#define GL_TEXTURE_3D 0x806F +#define GL_PROXY_TEXTURE_3D 0x8070 +#define GL_TEXTURE_DEPTH 0x8071 +#define GL_TEXTURE_WRAP_R 0x8072 +#define GL_MAX_3D_TEXTURE_SIZE 0x8073 +#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 +#define GL_UNSIGNED_SHORT_5_6_5 0x8363 +#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 +#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 +#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 +#define GL_BGR 0x80E0 +#define GL_BGRA 0x80E1 +#define GL_MAX_ELEMENTS_VERTICES 0x80E8 +#define GL_MAX_ELEMENTS_INDICES 0x80E9 +#define GL_CLAMP_TO_EDGE 0x812F +#define GL_TEXTURE_MIN_LOD 0x813A +#define GL_TEXTURE_MAX_LOD 0x813B +#define GL_TEXTURE_BASE_LEVEL 0x813C +#define GL_TEXTURE_MAX_LEVEL 0x813D +#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 +#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 +#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); +typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); +GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_VERSION_1_2 */ + +#ifndef GL_VERSION_1_3 +#define GL_VERSION_1_3 1 +#define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 +#define GL_TEXTURE2 0x84C2 +#define GL_TEXTURE3 0x84C3 +#define GL_TEXTURE4 0x84C4 +#define GL_TEXTURE5 0x84C5 +#define GL_TEXTURE6 0x84C6 +#define GL_TEXTURE7 0x84C7 +#define GL_TEXTURE8 0x84C8 +#define GL_TEXTURE9 0x84C9 +#define GL_TEXTURE10 0x84CA +#define GL_TEXTURE11 0x84CB +#define GL_TEXTURE12 0x84CC +#define GL_TEXTURE13 0x84CD +#define GL_TEXTURE14 0x84CE +#define GL_TEXTURE15 0x84CF +#define GL_TEXTURE16 0x84D0 +#define GL_TEXTURE17 0x84D1 +#define GL_TEXTURE18 0x84D2 +#define GL_TEXTURE19 0x84D3 +#define GL_TEXTURE20 0x84D4 +#define GL_TEXTURE21 0x84D5 +#define GL_TEXTURE22 0x84D6 +#define GL_TEXTURE23 0x84D7 +#define GL_TEXTURE24 0x84D8 +#define GL_TEXTURE25 0x84D9 +#define GL_TEXTURE26 0x84DA +#define GL_TEXTURE27 0x84DB +#define GL_TEXTURE28 0x84DC +#define GL_TEXTURE29 0x84DD +#define GL_TEXTURE30 0x84DE +#define GL_TEXTURE31 0x84DF +#define GL_ACTIVE_TEXTURE 0x84E0 +#define GL_MULTISAMPLE 0x809D +#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E +#define GL_SAMPLE_ALPHA_TO_ONE 0x809F +#define GL_SAMPLE_COVERAGE 0x80A0 +#define GL_SAMPLE_BUFFERS 0x80A8 +#define GL_SAMPLES 0x80A9 +#define GL_SAMPLE_COVERAGE_VALUE 0x80AA +#define GL_SAMPLE_COVERAGE_INVERT 0x80AB +#define GL_TEXTURE_CUBE_MAP 0x8513 +#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A +#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C +#define GL_COMPRESSED_RGB 0x84ED +#define GL_COMPRESSED_RGBA 0x84EE +#define GL_TEXTURE_COMPRESSION_HINT 0x84EF +#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 +#define GL_TEXTURE_COMPRESSED 0x86A1 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 +#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 +#define GL_CLAMP_TO_BORDER 0x812D +typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); +typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTexture (GLenum texture); +GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert); +GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img); +#endif +#endif /* GL_VERSION_1_3 */ + +#ifndef GL_VERSION_1_4 +#define GL_VERSION_1_4 1 +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 +#define GL_DEPTH_COMPONENT16 0x81A5 +#define GL_DEPTH_COMPONENT24 0x81A6 +#define GL_DEPTH_COMPONENT32 0x81A7 +#define GL_MIRRORED_REPEAT 0x8370 +#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD +#define GL_TEXTURE_LOD_BIAS 0x8501 +#define GL_INCR_WRAP 0x8507 +#define GL_DECR_WRAP 0x8508 +#define GL_TEXTURE_DEPTH_SIZE 0x884A +#define GL_TEXTURE_COMPARE_MODE 0x884C +#define GL_TEXTURE_COMPARE_FUNC 0x884D +#define GL_BLEND_COLOR 0x8005 +#define GL_BLEND_EQUATION 0x8009 +#define GL_CONSTANT_COLOR 0x8001 +#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002 +#define GL_CONSTANT_ALPHA 0x8003 +#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004 +#define GL_FUNC_ADD 0x8006 +#define GL_FUNC_REVERSE_SUBTRACT 0x800B +#define GL_FUNC_SUBTRACT 0x800A +#define GL_MIN 0x8007 +#define GL_MAX 0x8008 +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); +GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); +GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param); +GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param); +GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params); +GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void APIENTRY glBlendEquation (GLenum mode); +#endif +#endif /* GL_VERSION_1_4 */ + +#ifndef GL_VERSION_1_5 +#define GL_VERSION_1_5 1 +typedef khronos_ssize_t GLsizeiptr; +typedef khronos_intptr_t GLintptr; +#define GL_BUFFER_SIZE 0x8764 +#define GL_BUFFER_USAGE 0x8765 +#define GL_QUERY_COUNTER_BITS 0x8864 +#define GL_CURRENT_QUERY 0x8865 +#define GL_QUERY_RESULT 0x8866 +#define GL_QUERY_RESULT_AVAILABLE 0x8867 +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F +#define GL_READ_ONLY 0x88B8 +#define GL_WRITE_ONLY 0x88B9 +#define GL_READ_WRITE 0x88BA +#define GL_BUFFER_ACCESS 0x88BB +#define GL_BUFFER_MAPPED 0x88BC +#define GL_BUFFER_MAP_POINTER 0x88BD +#define GL_STREAM_DRAW 0x88E0 +#define GL_STREAM_READ 0x88E1 +#define GL_STREAM_COPY 0x88E2 +#define GL_STATIC_DRAW 0x88E4 +#define GL_STATIC_READ 0x88E5 +#define GL_STATIC_COPY 0x88E6 +#define GL_DYNAMIC_DRAW 0x88E8 +#define GL_DYNAMIC_READ 0x88E9 +#define GL_DYNAMIC_COPY 0x88EA +#define GL_SAMPLES_PASSED 0x8914 +#define GL_SRC1_ALPHA 0x8589 +typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id); +typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data); +typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids); +GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids); +GLAPI GLboolean APIENTRY glIsQuery (GLuint id); +GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id); +GLAPI void APIENTRY glEndQuery (GLenum target); +GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params); +GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer); +GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); +GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); +GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer); +GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data); +GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access); +GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target); +GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params); +#endif +#endif /* GL_VERSION_1_5 */ + +#ifndef GL_VERSION_2_0 +#define GL_VERSION_2_0 1 +typedef char GLchar; +typedef khronos_int16_t GLshort; +typedef khronos_int8_t GLbyte; +typedef khronos_uint16_t GLushort; +#define GL_BLEND_EQUATION_RGB 0x8009 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_CURRENT_VERTEX_ATTRIB 0x8626 +#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_STENCIL_BACK_FUNC 0x8800 +#define GL_STENCIL_BACK_FAIL 0x8801 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 +#define GL_MAX_DRAW_BUFFERS 0x8824 +#define GL_DRAW_BUFFER0 0x8825 +#define GL_DRAW_BUFFER1 0x8826 +#define GL_DRAW_BUFFER2 0x8827 +#define GL_DRAW_BUFFER3 0x8828 +#define GL_DRAW_BUFFER4 0x8829 +#define GL_DRAW_BUFFER5 0x882A +#define GL_DRAW_BUFFER6 0x882B +#define GL_DRAW_BUFFER7 0x882C +#define GL_DRAW_BUFFER8 0x882D +#define GL_DRAW_BUFFER9 0x882E +#define GL_DRAW_BUFFER10 0x882F +#define GL_DRAW_BUFFER11 0x8830 +#define GL_DRAW_BUFFER12 0x8831 +#define GL_DRAW_BUFFER13 0x8832 +#define GL_DRAW_BUFFER14 0x8833 +#define GL_DRAW_BUFFER15 0x8834 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_MAX_VERTEX_ATTRIBS 0x8869 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 +#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A +#define GL_MAX_VARYING_FLOATS 0x8B4B +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D +#define GL_SHADER_TYPE 0x8B4F +#define GL_FLOAT_VEC2 0x8B50 +#define GL_FLOAT_VEC3 0x8B51 +#define GL_FLOAT_VEC4 0x8B52 +#define GL_INT_VEC2 0x8B53 +#define GL_INT_VEC3 0x8B54 +#define GL_INT_VEC4 0x8B55 +#define GL_BOOL 0x8B56 +#define GL_BOOL_VEC2 0x8B57 +#define GL_BOOL_VEC3 0x8B58 +#define GL_BOOL_VEC4 0x8B59 +#define GL_FLOAT_MAT2 0x8B5A +#define GL_FLOAT_MAT3 0x8B5B +#define GL_FLOAT_MAT4 0x8B5C +#define GL_SAMPLER_1D 0x8B5D +#define GL_SAMPLER_2D 0x8B5E +#define GL_SAMPLER_3D 0x8B5F +#define GL_SAMPLER_CUBE 0x8B60 +#define GL_SAMPLER_1D_SHADOW 0x8B61 +#define GL_SAMPLER_2D_SHADOW 0x8B62 +#define GL_DELETE_STATUS 0x8B80 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_VALIDATE_STATUS 0x8B83 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_ATTACHED_SHADERS 0x8B85 +#define GL_ACTIVE_UNIFORMS 0x8B86 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 +#define GL_SHADER_SOURCE_LENGTH 0x8B88 +#define GL_ACTIVE_ATTRIBUTES 0x8B89 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 +#define GL_LOWER_LEFT 0x8CA1 +#define GL_UPPER_LEFT 0x8CA2 +#define GL_STENCIL_BACK_REF 0x8CA3 +#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 +#define GL_STENCIL_BACK_WRITEMASK 0x8CA5 +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask); +typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name); +typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); +typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params); +typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); +typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); +typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); +typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); +typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs); +GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); +GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask); +GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask); +GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name); +GLAPI void APIENTRY glCompileShader (GLuint shader); +GLAPI GLuint APIENTRY glCreateProgram (void); +GLAPI GLuint APIENTRY glCreateShader (GLenum type); +GLAPI void APIENTRY glDeleteProgram (GLuint program); +GLAPI void APIENTRY glDeleteShader (GLuint shader); +GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index); +GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index); +GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); +GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); +GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); +GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params); +GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params); +GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params); +GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer); +GLAPI GLboolean APIENTRY glIsProgram (GLuint program); +GLAPI GLboolean APIENTRY glIsShader (GLuint shader); +GLAPI void APIENTRY glLinkProgram (GLuint program); +GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +GLAPI void APIENTRY glUseProgram (GLuint program); +GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0); +GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1); +GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +GLAPI void APIENTRY glUniform1i (GLint location, GLint v0); +GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1); +GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2); +GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glValidateProgram (GLuint program); +GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x); +GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x); +GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x); +GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y); +GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y); +GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y); +GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z); +GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v); +GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); +GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v); +GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v); +GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v); +GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); +GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v); +GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v); +GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#endif +#endif /* GL_VERSION_2_0 */ + +#ifndef GL_VERSION_2_1 +#define GL_VERSION_2_1 1 +#define GL_PIXEL_PACK_BUFFER 0x88EB +#define GL_PIXEL_UNPACK_BUFFER 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF +#define GL_FLOAT_MAT2x3 0x8B65 +#define GL_FLOAT_MAT2x4 0x8B66 +#define GL_FLOAT_MAT3x2 0x8B67 +#define GL_FLOAT_MAT3x4 0x8B68 +#define GL_FLOAT_MAT4x2 0x8B69 +#define GL_FLOAT_MAT4x3 0x8B6A +#define GL_SRGB 0x8C40 +#define GL_SRGB8 0x8C41 +#define GL_SRGB_ALPHA 0x8C42 +#define GL_SRGB8_ALPHA8 0x8C43 +#define GL_COMPRESSED_SRGB 0x8C48 +#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +#endif +#endif /* GL_VERSION_2_1 */ + +#ifndef GL_VERSION_3_0 +#define GL_VERSION_3_0 1 +typedef khronos_uint16_t GLhalf; +#define GL_COMPARE_REF_TO_TEXTURE 0x884E +#define GL_CLIP_DISTANCE0 0x3000 +#define GL_CLIP_DISTANCE1 0x3001 +#define GL_CLIP_DISTANCE2 0x3002 +#define GL_CLIP_DISTANCE3 0x3003 +#define GL_CLIP_DISTANCE4 0x3004 +#define GL_CLIP_DISTANCE5 0x3005 +#define GL_CLIP_DISTANCE6 0x3006 +#define GL_CLIP_DISTANCE7 0x3007 +#define GL_MAX_CLIP_DISTANCES 0x0D32 +#define GL_MAJOR_VERSION 0x821B +#define GL_MINOR_VERSION 0x821C +#define GL_NUM_EXTENSIONS 0x821D +#define GL_CONTEXT_FLAGS 0x821E +#define GL_COMPRESSED_RED 0x8225 +#define GL_COMPRESSED_RG 0x8226 +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 +#define GL_RGBA32F 0x8814 +#define GL_RGB32F 0x8815 +#define GL_RGBA16F 0x881A +#define GL_RGB16F 0x881B +#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD +#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF +#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 +#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 +#define GL_CLAMP_READ_COLOR 0x891C +#define GL_FIXED_ONLY 0x891D +#define GL_MAX_VARYING_COMPONENTS 0x8B4B +#define GL_TEXTURE_1D_ARRAY 0x8C18 +#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 +#define GL_TEXTURE_2D_ARRAY 0x8C1A +#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B +#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C +#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D +#define GL_R11F_G11F_B10F 0x8C3A +#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B +#define GL_RGB9_E5 0x8C3D +#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E +#define GL_TEXTURE_SHARED_SIZE 0x8C3F +#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 +#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 +#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 +#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 +#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 +#define GL_PRIMITIVES_GENERATED 0x8C87 +#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 +#define GL_RASTERIZER_DISCARD 0x8C89 +#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A +#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B +#define GL_INTERLEAVED_ATTRIBS 0x8C8C +#define GL_SEPARATE_ATTRIBS 0x8C8D +#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E +#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F +#define GL_RGBA32UI 0x8D70 +#define GL_RGB32UI 0x8D71 +#define GL_RGBA16UI 0x8D76 +#define GL_RGB16UI 0x8D77 +#define GL_RGBA8UI 0x8D7C +#define GL_RGB8UI 0x8D7D +#define GL_RGBA32I 0x8D82 +#define GL_RGB32I 0x8D83 +#define GL_RGBA16I 0x8D88 +#define GL_RGB16I 0x8D89 +#define GL_RGBA8I 0x8D8E +#define GL_RGB8I 0x8D8F +#define GL_RED_INTEGER 0x8D94 +#define GL_GREEN_INTEGER 0x8D95 +#define GL_BLUE_INTEGER 0x8D96 +#define GL_RGB_INTEGER 0x8D98 +#define GL_RGBA_INTEGER 0x8D99 +#define GL_BGR_INTEGER 0x8D9A +#define GL_BGRA_INTEGER 0x8D9B +#define GL_SAMPLER_1D_ARRAY 0x8DC0 +#define GL_SAMPLER_2D_ARRAY 0x8DC1 +#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 +#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 +#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 +#define GL_UNSIGNED_INT_VEC2 0x8DC6 +#define GL_UNSIGNED_INT_VEC3 0x8DC7 +#define GL_UNSIGNED_INT_VEC4 0x8DC8 +#define GL_INT_SAMPLER_1D 0x8DC9 +#define GL_INT_SAMPLER_2D 0x8DCA +#define GL_INT_SAMPLER_3D 0x8DCB +#define GL_INT_SAMPLER_CUBE 0x8DCC +#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE +#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF +#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 +#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 +#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 +#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 +#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 +#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 +#define GL_QUERY_WAIT 0x8E13 +#define GL_QUERY_NO_WAIT 0x8E14 +#define GL_QUERY_BY_REGION_WAIT 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 +#define GL_BUFFER_ACCESS_FLAGS 0x911F +#define GL_BUFFER_MAP_LENGTH 0x9120 +#define GL_BUFFER_MAP_OFFSET 0x9121 +#define GL_DEPTH_COMPONENT32F 0x8CAC +#define GL_DEPTH32F_STENCIL8 0x8CAD +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD +#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 +#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 +#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 +#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 +#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 +#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 +#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 +#define GL_FRAMEBUFFER_DEFAULT 0x8218 +#define GL_FRAMEBUFFER_UNDEFINED 0x8219 +#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A +#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 +#define GL_DEPTH_STENCIL 0x84F9 +#define GL_UNSIGNED_INT_24_8 0x84FA +#define GL_DEPTH24_STENCIL8 0x88F0 +#define GL_TEXTURE_STENCIL_SIZE 0x88F1 +#define GL_TEXTURE_RED_TYPE 0x8C10 +#define GL_TEXTURE_GREEN_TYPE 0x8C11 +#define GL_TEXTURE_BLUE_TYPE 0x8C12 +#define GL_TEXTURE_ALPHA_TYPE 0x8C13 +#define GL_TEXTURE_DEPTH_TYPE 0x8C16 +#define GL_UNSIGNED_NORMALIZED 0x8C17 +#define GL_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 +#define GL_RENDERBUFFER_BINDING 0x8CA7 +#define GL_READ_FRAMEBUFFER 0x8CA8 +#define GL_DRAW_FRAMEBUFFER 0x8CA9 +#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA +#define GL_RENDERBUFFER_SAMPLES 0x8CAB +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 +#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 +#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB +#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC +#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD +#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_COLOR_ATTACHMENT1 0x8CE1 +#define GL_COLOR_ATTACHMENT2 0x8CE2 +#define GL_COLOR_ATTACHMENT3 0x8CE3 +#define GL_COLOR_ATTACHMENT4 0x8CE4 +#define GL_COLOR_ATTACHMENT5 0x8CE5 +#define GL_COLOR_ATTACHMENT6 0x8CE6 +#define GL_COLOR_ATTACHMENT7 0x8CE7 +#define GL_COLOR_ATTACHMENT8 0x8CE8 +#define GL_COLOR_ATTACHMENT9 0x8CE9 +#define GL_COLOR_ATTACHMENT10 0x8CEA +#define GL_COLOR_ATTACHMENT11 0x8CEB +#define GL_COLOR_ATTACHMENT12 0x8CEC +#define GL_COLOR_ATTACHMENT13 0x8CED +#define GL_COLOR_ATTACHMENT14 0x8CEE +#define GL_COLOR_ATTACHMENT15 0x8CEF +#define GL_COLOR_ATTACHMENT16 0x8CF0 +#define GL_COLOR_ATTACHMENT17 0x8CF1 +#define GL_COLOR_ATTACHMENT18 0x8CF2 +#define GL_COLOR_ATTACHMENT19 0x8CF3 +#define GL_COLOR_ATTACHMENT20 0x8CF4 +#define GL_COLOR_ATTACHMENT21 0x8CF5 +#define GL_COLOR_ATTACHMENT22 0x8CF6 +#define GL_COLOR_ATTACHMENT23 0x8CF7 +#define GL_COLOR_ATTACHMENT24 0x8CF8 +#define GL_COLOR_ATTACHMENT25 0x8CF9 +#define GL_COLOR_ATTACHMENT26 0x8CFA +#define GL_COLOR_ATTACHMENT27 0x8CFB +#define GL_COLOR_ATTACHMENT28 0x8CFC +#define GL_COLOR_ATTACHMENT29 0x8CFD +#define GL_COLOR_ATTACHMENT30 0x8CFE +#define GL_COLOR_ATTACHMENT31 0x8CFF +#define GL_DEPTH_ATTACHMENT 0x8D00 +#define GL_STENCIL_ATTACHMENT 0x8D20 +#define GL_FRAMEBUFFER 0x8D40 +#define GL_RENDERBUFFER 0x8D41 +#define GL_RENDERBUFFER_WIDTH 0x8D42 +#define GL_RENDERBUFFER_HEIGHT 0x8D43 +#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 +#define GL_STENCIL_INDEX1 0x8D46 +#define GL_STENCIL_INDEX4 0x8D47 +#define GL_STENCIL_INDEX8 0x8D48 +#define GL_STENCIL_INDEX16 0x8D49 +#define GL_RENDERBUFFER_RED_SIZE 0x8D50 +#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 +#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 +#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 +#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 +#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 +#define GL_MAX_SAMPLES 0x8D57 +#define GL_FRAMEBUFFER_SRGB 0x8DB9 +#define GL_HALF_FLOAT 0x140B +#define GL_MAP_READ_BIT 0x0001 +#define GL_MAP_WRITE_BIT 0x0002 +#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 +#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 +#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 +#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 +#define GL_COMPRESSED_RED_RGTC1 0x8DBB +#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC +#define GL_COMPRESSED_RG_RGTC2 0x8DBD +#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE +#define GL_RG 0x8227 +#define GL_RG_INTEGER 0x8228 +#define GL_R8 0x8229 +#define GL_R16 0x822A +#define GL_RG8 0x822B +#define GL_RG16 0x822C +#define GL_R16F 0x822D +#define GL_R32F 0x822E +#define GL_RG16F 0x822F +#define GL_RG32F 0x8230 +#define GL_R8I 0x8231 +#define GL_R8UI 0x8232 +#define GL_R16I 0x8233 +#define GL_R16UI 0x8234 +#define GL_R32I 0x8235 +#define GL_R32UI 0x8236 +#define GL_RG8I 0x8237 +#define GL_RG8UI 0x8238 +#define GL_RG16I 0x8239 +#define GL_RG16UI 0x823A +#define GL_RG32I 0x823B +#define GL_RG32UI 0x823C +#define GL_VERTEX_ARRAY_BINDING 0x85B5 +typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); +typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); +typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index); +typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode); +typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void); +typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); +typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp); +typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode); +typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void); +typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v); +typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params); +typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0); +typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value); +typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value); +typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value); +typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); +typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); +typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); +typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); +typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers); +typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); +typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target); +typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); +typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); +typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); +typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); +GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data); +GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data); +GLAPI void APIENTRY glEnablei (GLenum target, GLuint index); +GLAPI void APIENTRY glDisablei (GLenum target, GLuint index); +GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index); +GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode); +GLAPI void APIENTRY glEndTransformFeedback (void); +GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer); +GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); +GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); +GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp); +GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode); +GLAPI void APIENTRY glEndConditionalRender (void); +GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params); +GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x); +GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y); +GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z); +GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w); +GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x); +GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y); +GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z); +GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v); +GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v); +GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v); +GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v); +GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v); +GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v); +GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params); +GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name); +GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0); +GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1); +GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2); +GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params); +GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value); +GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value); +GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value); +GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index); +GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer); +GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer); +GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers); +GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers); +GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer); +GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer); +GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers); +GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers); +GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target); +GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params); +GLAPI void APIENTRY glGenerateMipmap (GLenum target); +GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); +GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glBindVertexArray (GLuint array); +GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays); +GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays); +GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array); +#endif +#endif /* GL_VERSION_3_0 */ + +#ifndef GL_VERSION_3_1 +#define GL_VERSION_3_1 1 +#define GL_SAMPLER_2D_RECT 0x8B63 +#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 +#define GL_SAMPLER_BUFFER 0x8DC2 +#define GL_INT_SAMPLER_2D_RECT 0x8DCD +#define GL_INT_SAMPLER_BUFFER 0x8DD0 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 +#define GL_TEXTURE_BUFFER 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D +#define GL_TEXTURE_RECTANGLE 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 +#define GL_R8_SNORM 0x8F94 +#define GL_RG8_SNORM 0x8F95 +#define GL_RGB8_SNORM 0x8F96 +#define GL_RGBA8_SNORM 0x8F97 +#define GL_R16_SNORM 0x8F98 +#define GL_RG16_SNORM 0x8F99 +#define GL_RGB16_SNORM 0x8F9A +#define GL_RGBA16_SNORM 0x8F9B +#define GL_SIGNED_NORMALIZED 0x8F9C +#define GL_PRIMITIVE_RESTART 0x8F9D +#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E +#define GL_COPY_READ_BUFFER 0x8F36 +#define GL_COPY_WRITE_BUFFER 0x8F37 +#define GL_UNIFORM_BUFFER 0x8A11 +#define GL_UNIFORM_BUFFER_BINDING 0x8A28 +#define GL_UNIFORM_BUFFER_START 0x8A29 +#define GL_UNIFORM_BUFFER_SIZE 0x8A2A +#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C +#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D +#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E +#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F +#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 +#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 +#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 +#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 +#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 +#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 +#define GL_UNIFORM_TYPE 0x8A37 +#define GL_UNIFORM_SIZE 0x8A38 +#define GL_UNIFORM_NAME_LENGTH 0x8A39 +#define GL_UNIFORM_BLOCK_INDEX 0x8A3A +#define GL_UNIFORM_OFFSET 0x8A3B +#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C +#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D +#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E +#define GL_UNIFORM_BLOCK_BINDING 0x8A3F +#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 +#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 +#define GL_INVALID_INDEX 0xFFFFFFFFu +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); +typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index); +typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); +typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); +typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); +GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); +GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index); +GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); +GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); +GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName); +GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); +GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); +#endif +#endif /* GL_VERSION_3_1 */ + +#ifndef GL_VERSION_3_2 +#define GL_VERSION_3_2 1 +typedef struct __GLsync *GLsync; +typedef khronos_uint64_t GLuint64; +typedef khronos_int64_t GLint64; +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_LINES_ADJACENCY 0x000A +#define GL_LINE_STRIP_ADJACENCY 0x000B +#define GL_TRIANGLES_ADJACENCY 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D +#define GL_PROGRAM_POINT_SIZE 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 +#define GL_GEOMETRY_SHADER 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT 0x8916 +#define GL_GEOMETRY_INPUT_TYPE 0x8917 +#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 +#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 +#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#define GL_DEPTH_CLAMP 0x864F +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C +#define GL_FIRST_VERTEX_CONVENTION 0x8E4D +#define GL_LAST_VERTEX_CONVENTION 0x8E4E +#define GL_PROVOKING_VERTEX 0x8E4F +#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F +#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 +#define GL_OBJECT_TYPE 0x9112 +#define GL_SYNC_CONDITION 0x9113 +#define GL_SYNC_STATUS 0x9114 +#define GL_SYNC_FLAGS 0x9115 +#define GL_SYNC_FENCE 0x9116 +#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 +#define GL_UNSIGNALED 0x9118 +#define GL_SIGNALED 0x9119 +#define GL_ALREADY_SIGNALED 0x911A +#define GL_TIMEOUT_EXPIRED 0x911B +#define GL_CONDITION_SATISFIED 0x911C +#define GL_WAIT_FAILED 0x911D +#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull +#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 +#define GL_SAMPLE_POSITION 0x8E50 +#define GL_SAMPLE_MASK 0x8E51 +#define GL_SAMPLE_MASK_VALUE 0x8E52 +#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 +#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 +#define GL_TEXTURE_SAMPLES 0x9106 +#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 +#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 +#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A +#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B +#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D +#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E +#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F +#define GL_MAX_INTEGER_SAMPLES 0x9110 +typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); +typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode); +typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags); +typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync); +typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync); +typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); +typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); +typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data); +typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values); +typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val); +typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); +GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); +GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); +GLAPI void APIENTRY glProvokingVertex (GLenum mode); +GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags); +GLAPI GLboolean APIENTRY glIsSync (GLsync sync); +GLAPI void APIENTRY glDeleteSync (GLsync sync); +GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); +GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); +GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data); +GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values); +GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data); +GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params); +GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val); +GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask); +#endif +#endif /* GL_VERSION_3_2 */ + +#ifndef GL_VERSION_3_3 +#define GL_VERSION_3_3 1 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE +#define GL_SRC1_COLOR 0x88F9 +#define GL_ONE_MINUS_SRC1_COLOR 0x88FA +#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB +#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC +#define GL_ANY_SAMPLES_PASSED 0x8C2F +#define GL_SAMPLER_BINDING 0x8919 +#define GL_RGB10_A2UI 0x906F +#define GL_TEXTURE_SWIZZLE_R 0x8E42 +#define GL_TEXTURE_SWIZZLE_G 0x8E43 +#define GL_TEXTURE_SWIZZLE_B 0x8E44 +#define GL_TEXTURE_SWIZZLE_A 0x8E45 +#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 +#define GL_TIME_ELAPSED 0x88BF +#define GL_TIMESTAMP 0x8E28 +#define GL_INT_2_10_10_10_REV 0x8D9F +typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers); +typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers); +typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler); +typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params); +typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params); +typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); +GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers); +GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers); +GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler); +GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler); +GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param); +GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param); +GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param); +GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param); +GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param); +GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param); +GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params); +GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target); +GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params); +GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params); +GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor); +GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); +GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); +#endif +#endif /* GL_VERSION_3_3 */ + +#ifndef GL_VERSION_4_0 +#define GL_VERSION_4_0 1 +#define GL_SAMPLE_SHADING 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F +#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F +#define GL_DRAW_INDIRECT_BUFFER 0x8F3F +#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 +#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F +#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C +#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D +#define GL_MAX_VERTEX_STREAMS 0x8E71 +#define GL_DOUBLE_VEC2 0x8FFC +#define GL_DOUBLE_VEC3 0x8FFD +#define GL_DOUBLE_VEC4 0x8FFE +#define GL_DOUBLE_MAT2 0x8F46 +#define GL_DOUBLE_MAT3 0x8F47 +#define GL_DOUBLE_MAT4 0x8F48 +#define GL_DOUBLE_MAT2x3 0x8F49 +#define GL_DOUBLE_MAT2x4 0x8F4A +#define GL_DOUBLE_MAT3x2 0x8F4B +#define GL_DOUBLE_MAT3x4 0x8F4C +#define GL_DOUBLE_MAT4x2 0x8F4D +#define GL_DOUBLE_MAT4x3 0x8F4E +#define GL_ACTIVE_SUBROUTINES 0x8DE5 +#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 +#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 +#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 +#define GL_MAX_SUBROUTINES 0x8DE7 +#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 +#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A +#define GL_COMPATIBLE_SUBROUTINES 0x8E4B +#define GL_PATCHES 0x000E +#define GL_PATCH_VERTICES 0x8E72 +#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 +#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 +#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 +#define GL_TESS_GEN_MODE 0x8E76 +#define GL_TESS_GEN_SPACING 0x8E77 +#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 +#define GL_TESS_GEN_POINT_MODE 0x8E79 +#define GL_ISOLINES 0x8E7A +#define GL_FRACTIONAL_ODD 0x8E7B +#define GL_FRACTIONAL_EVEN 0x8E7C +#define GL_MAX_PATCH_VERTICES 0x8E7D +#define GL_MAX_TESS_GEN_LEVEL 0x8E7E +#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F +#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 +#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 +#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 +#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 +#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 +#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 +#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 +#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 +#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A +#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C +#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D +#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E +#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 +#define GL_TESS_EVALUATION_SHADER 0x8E87 +#define GL_TESS_CONTROL_SHADER 0x8E88 +#define GL_TRANSFORM_FEEDBACK 0x8E22 +#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23 +#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24 +#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 +#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 +typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value); +typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect); +typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); +typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params); +typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name); +typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); +typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices); +typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values); +typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values); +typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); +typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids); +typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); +typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); +typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); +typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); +typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); +typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMinSampleShading (GLfloat value); +GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode); +GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst); +GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect); +GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect); +GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x); +GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y); +GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params); +GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name); +GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name); +GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); +GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices); +GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params); +GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values); +GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value); +GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values); +GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id); +GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids); +GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids); +GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id); +GLAPI void APIENTRY glPauseTransformFeedback (void); +GLAPI void APIENTRY glResumeTransformFeedback (void); +GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id); +GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream); +GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id); +GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index); +GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params); +#endif +#endif /* GL_VERSION_4_0 */ + +#ifndef GL_VERSION_4_1 +#define GL_VERSION_4_1 1 +#define GL_FIXED 0x140C +#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B +#define GL_LOW_FLOAT 0x8DF0 +#define GL_MEDIUM_FLOAT 0x8DF1 +#define GL_HIGH_FLOAT 0x8DF2 +#define GL_LOW_INT 0x8DF3 +#define GL_MEDIUM_INT 0x8DF4 +#define GL_HIGH_INT 0x8DF5 +#define GL_SHADER_COMPILER 0x8DFA +#define GL_SHADER_BINARY_FORMATS 0x8DF8 +#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 +#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB +#define GL_MAX_VARYING_VECTORS 0x8DFC +#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD +#define GL_RGB565 0x8D62 +#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 +#define GL_PROGRAM_BINARY_LENGTH 0x8741 +#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE +#define GL_PROGRAM_BINARY_FORMATS 0x87FF +#define GL_VERTEX_SHADER_BIT 0x00000001 +#define GL_FRAGMENT_SHADER_BIT 0x00000002 +#define GL_GEOMETRY_SHADER_BIT 0x00000004 +#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 +#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 +#define GL_ALL_SHADER_BITS 0xFFFFFFFF +#define GL_PROGRAM_SEPARABLE 0x8258 +#define GL_ACTIVE_PROGRAM 0x8259 +#define GL_PROGRAM_PIPELINE_BINDING 0x825A +#define GL_MAX_VIEWPORTS 0x825B +#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C +#define GL_VIEWPORT_BOUNDS_RANGE 0x825D +#define GL_LAYER_PROVOKING_VERTEX 0x825E +#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F +#define GL_UNDEFINED_VERTEX 0x8260 +typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void); +typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length); +typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); +typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f); +typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d); +typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); +typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program); +typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings); +typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines); +typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline); +typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); +typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v); +typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v); +typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v); +typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f); +typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glReleaseShaderCompiler (void); +GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length); +GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); +GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f); +GLAPI void APIENTRY glClearDepthf (GLfloat d); +GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); +GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); +GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value); +GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program); +GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program); +GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings); +GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline); +GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines); +GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines); +GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline); +GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params); +GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0); +GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0); +GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0); +GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0); +GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1); +GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1); +GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1); +GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1); +GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); +GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); +GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline); +GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x); +GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y); +GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v); +GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params); +GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); +GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v); +GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v); +GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); +GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v); +GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v); +GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f); +GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data); +GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data); +#endif +#endif /* GL_VERSION_4_1 */ + +#ifndef GL_VERSION_4_2 +#define GL_VERSION_4_2 1 +#define GL_COPY_READ_BUFFER_BINDING 0x8F36 +#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37 +#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24 +#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23 +#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127 +#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128 +#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129 +#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A +#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B +#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C +#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D +#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E +#define GL_NUM_SAMPLE_COUNTS 0x9380 +#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC +#define GL_ATOMIC_COUNTER_BUFFER 0x92C0 +#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1 +#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2 +#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3 +#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4 +#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5 +#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9 +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB +#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE +#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF +#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0 +#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1 +#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2 +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3 +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4 +#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5 +#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6 +#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7 +#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8 +#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC +#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9 +#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA +#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB +#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001 +#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002 +#define GL_UNIFORM_BARRIER_BIT 0x00000004 +#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008 +#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020 +#define GL_COMMAND_BARRIER_BIT 0x00000040 +#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080 +#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100 +#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200 +#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400 +#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800 +#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000 +#define GL_ALL_BARRIER_BITS 0xFFFFFFFF +#define GL_MAX_IMAGE_UNITS 0x8F38 +#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39 +#define GL_IMAGE_BINDING_NAME 0x8F3A +#define GL_IMAGE_BINDING_LEVEL 0x8F3B +#define GL_IMAGE_BINDING_LAYERED 0x8F3C +#define GL_IMAGE_BINDING_LAYER 0x8F3D +#define GL_IMAGE_BINDING_ACCESS 0x8F3E +#define GL_IMAGE_1D 0x904C +#define GL_IMAGE_2D 0x904D +#define GL_IMAGE_3D 0x904E +#define GL_IMAGE_2D_RECT 0x904F +#define GL_IMAGE_CUBE 0x9050 +#define GL_IMAGE_BUFFER 0x9051 +#define GL_IMAGE_1D_ARRAY 0x9052 +#define GL_IMAGE_2D_ARRAY 0x9053 +#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054 +#define GL_IMAGE_2D_MULTISAMPLE 0x9055 +#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056 +#define GL_INT_IMAGE_1D 0x9057 +#define GL_INT_IMAGE_2D 0x9058 +#define GL_INT_IMAGE_3D 0x9059 +#define GL_INT_IMAGE_2D_RECT 0x905A +#define GL_INT_IMAGE_CUBE 0x905B +#define GL_INT_IMAGE_BUFFER 0x905C +#define GL_INT_IMAGE_1D_ARRAY 0x905D +#define GL_INT_IMAGE_2D_ARRAY 0x905E +#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F +#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060 +#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061 +#define GL_UNSIGNED_INT_IMAGE_1D 0x9062 +#define GL_UNSIGNED_INT_IMAGE_2D 0x9063 +#define GL_UNSIGNED_INT_IMAGE_3D 0x9064 +#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065 +#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066 +#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067 +#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068 +#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069 +#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B +#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C +#define GL_MAX_IMAGE_SAMPLES 0x906D +#define GL_IMAGE_BINDING_FORMAT 0x906E +#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7 +#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8 +#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9 +#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA +#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB +#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC +#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD +#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE +#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF +#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F +#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); +typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params); +typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); +typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers); +typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount); +typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); +GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); +GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); +GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params); +GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); +GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); +GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers); +GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount); +GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); +#endif +#endif /* GL_VERSION_4_2 */ + +#ifndef GL_VERSION_4_3 +#define GL_VERSION_4_3 1 +typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 +#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E +#define GL_COMPRESSED_RGB8_ETC2 0x9274 +#define GL_COMPRESSED_SRGB8_ETC2 0x9275 +#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276 +#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277 +#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278 +#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279 +#define GL_COMPRESSED_R11_EAC 0x9270 +#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271 +#define GL_COMPRESSED_RG11_EAC 0x9272 +#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273 +#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69 +#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A +#define GL_MAX_ELEMENT_INDEX 0x8D6B +#define GL_COMPUTE_SHADER 0x91B9 +#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB +#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC +#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD +#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262 +#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263 +#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264 +#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265 +#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266 +#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB +#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE +#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF +#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED +#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE +#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF +#define GL_COMPUTE_SHADER_BIT 0x00000020 +#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245 +#define GL_DEBUG_SOURCE_API 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION 0x824A +#define GL_DEBUG_SOURCE_OTHER 0x824B +#define GL_DEBUG_TYPE_ERROR 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E +#define GL_DEBUG_TYPE_PORTABILITY 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 +#define GL_DEBUG_TYPE_OTHER 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES 0x9145 +#define GL_DEBUG_SEVERITY_HIGH 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 +#define GL_DEBUG_SEVERITY_LOW 0x9148 +#define GL_DEBUG_TYPE_MARKER 0x8268 +#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 +#define GL_DEBUG_TYPE_POP_GROUP 0x826A +#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B +#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C +#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D +#define GL_BUFFER 0x82E0 +#define GL_SHADER 0x82E1 +#define GL_PROGRAM 0x82E2 +#define GL_QUERY 0x82E3 +#define GL_PROGRAM_PIPELINE 0x82E4 +#define GL_SAMPLER 0x82E6 +#define GL_MAX_LABEL_LENGTH 0x82E8 +#define GL_DEBUG_OUTPUT 0x92E0 +#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 +#define GL_MAX_UNIFORM_LOCATIONS 0x826E +#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310 +#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311 +#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312 +#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313 +#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314 +#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315 +#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316 +#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317 +#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318 +#define GL_INTERNALFORMAT_SUPPORTED 0x826F +#define GL_INTERNALFORMAT_PREFERRED 0x8270 +#define GL_INTERNALFORMAT_RED_SIZE 0x8271 +#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272 +#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273 +#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274 +#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275 +#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276 +#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277 +#define GL_INTERNALFORMAT_RED_TYPE 0x8278 +#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279 +#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A +#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B +#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C +#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D +#define GL_MAX_WIDTH 0x827E +#define GL_MAX_HEIGHT 0x827F +#define GL_MAX_DEPTH 0x8280 +#define GL_MAX_LAYERS 0x8281 +#define GL_MAX_COMBINED_DIMENSIONS 0x8282 +#define GL_COLOR_COMPONENTS 0x8283 +#define GL_DEPTH_COMPONENTS 0x8284 +#define GL_STENCIL_COMPONENTS 0x8285 +#define GL_COLOR_RENDERABLE 0x8286 +#define GL_DEPTH_RENDERABLE 0x8287 +#define GL_STENCIL_RENDERABLE 0x8288 +#define GL_FRAMEBUFFER_RENDERABLE 0x8289 +#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A +#define GL_FRAMEBUFFER_BLEND 0x828B +#define GL_READ_PIXELS 0x828C +#define GL_READ_PIXELS_FORMAT 0x828D +#define GL_READ_PIXELS_TYPE 0x828E +#define GL_TEXTURE_IMAGE_FORMAT 0x828F +#define GL_TEXTURE_IMAGE_TYPE 0x8290 +#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291 +#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292 +#define GL_MIPMAP 0x8293 +#define GL_MANUAL_GENERATE_MIPMAP 0x8294 +#define GL_AUTO_GENERATE_MIPMAP 0x8295 +#define GL_COLOR_ENCODING 0x8296 +#define GL_SRGB_READ 0x8297 +#define GL_SRGB_WRITE 0x8298 +#define GL_FILTER 0x829A +#define GL_VERTEX_TEXTURE 0x829B +#define GL_TESS_CONTROL_TEXTURE 0x829C +#define GL_TESS_EVALUATION_TEXTURE 0x829D +#define GL_GEOMETRY_TEXTURE 0x829E +#define GL_FRAGMENT_TEXTURE 0x829F +#define GL_COMPUTE_TEXTURE 0x82A0 +#define GL_TEXTURE_SHADOW 0x82A1 +#define GL_TEXTURE_GATHER 0x82A2 +#define GL_TEXTURE_GATHER_SHADOW 0x82A3 +#define GL_SHADER_IMAGE_LOAD 0x82A4 +#define GL_SHADER_IMAGE_STORE 0x82A5 +#define GL_SHADER_IMAGE_ATOMIC 0x82A6 +#define GL_IMAGE_TEXEL_SIZE 0x82A7 +#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8 +#define GL_IMAGE_PIXEL_FORMAT 0x82A9 +#define GL_IMAGE_PIXEL_TYPE 0x82AA +#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC +#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD +#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE +#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF +#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1 +#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2 +#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3 +#define GL_CLEAR_BUFFER 0x82B4 +#define GL_TEXTURE_VIEW 0x82B5 +#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6 +#define GL_FULL_SUPPORT 0x82B7 +#define GL_CAVEAT_SUPPORT 0x82B8 +#define GL_IMAGE_CLASS_4_X_32 0x82B9 +#define GL_IMAGE_CLASS_2_X_32 0x82BA +#define GL_IMAGE_CLASS_1_X_32 0x82BB +#define GL_IMAGE_CLASS_4_X_16 0x82BC +#define GL_IMAGE_CLASS_2_X_16 0x82BD +#define GL_IMAGE_CLASS_1_X_16 0x82BE +#define GL_IMAGE_CLASS_4_X_8 0x82BF +#define GL_IMAGE_CLASS_2_X_8 0x82C0 +#define GL_IMAGE_CLASS_1_X_8 0x82C1 +#define GL_IMAGE_CLASS_11_11_10 0x82C2 +#define GL_IMAGE_CLASS_10_10_10_2 0x82C3 +#define GL_VIEW_CLASS_128_BITS 0x82C4 +#define GL_VIEW_CLASS_96_BITS 0x82C5 +#define GL_VIEW_CLASS_64_BITS 0x82C6 +#define GL_VIEW_CLASS_48_BITS 0x82C7 +#define GL_VIEW_CLASS_32_BITS 0x82C8 +#define GL_VIEW_CLASS_24_BITS 0x82C9 +#define GL_VIEW_CLASS_16_BITS 0x82CA +#define GL_VIEW_CLASS_8_BITS 0x82CB +#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC +#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD +#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE +#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF +#define GL_VIEW_CLASS_RGTC1_RED 0x82D0 +#define GL_VIEW_CLASS_RGTC2_RG 0x82D1 +#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2 +#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3 +#define GL_UNIFORM 0x92E1 +#define GL_UNIFORM_BLOCK 0x92E2 +#define GL_PROGRAM_INPUT 0x92E3 +#define GL_PROGRAM_OUTPUT 0x92E4 +#define GL_BUFFER_VARIABLE 0x92E5 +#define GL_SHADER_STORAGE_BLOCK 0x92E6 +#define GL_VERTEX_SUBROUTINE 0x92E8 +#define GL_TESS_CONTROL_SUBROUTINE 0x92E9 +#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA +#define GL_GEOMETRY_SUBROUTINE 0x92EB +#define GL_FRAGMENT_SUBROUTINE 0x92EC +#define GL_COMPUTE_SUBROUTINE 0x92ED +#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE +#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF +#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0 +#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1 +#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2 +#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3 +#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4 +#define GL_ACTIVE_RESOURCES 0x92F5 +#define GL_MAX_NAME_LENGTH 0x92F6 +#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7 +#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8 +#define GL_NAME_LENGTH 0x92F9 +#define GL_TYPE 0x92FA +#define GL_ARRAY_SIZE 0x92FB +#define GL_OFFSET 0x92FC +#define GL_BLOCK_INDEX 0x92FD +#define GL_ARRAY_STRIDE 0x92FE +#define GL_MATRIX_STRIDE 0x92FF +#define GL_IS_ROW_MAJOR 0x9300 +#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301 +#define GL_BUFFER_BINDING 0x9302 +#define GL_BUFFER_DATA_SIZE 0x9303 +#define GL_NUM_ACTIVE_VARIABLES 0x9304 +#define GL_ACTIVE_VARIABLES 0x9305 +#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306 +#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307 +#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308 +#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309 +#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A +#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B +#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C +#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D +#define GL_LOCATION 0x930E +#define GL_LOCATION_INDEX 0x930F +#define GL_IS_PER_PATCH 0x92E7 +#define GL_SHADER_STORAGE_BUFFER 0x90D2 +#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3 +#define GL_SHADER_STORAGE_BUFFER_START 0x90D4 +#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5 +#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6 +#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7 +#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8 +#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9 +#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA +#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB +#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC +#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD +#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE +#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF +#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000 +#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39 +#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA +#define GL_TEXTURE_BUFFER_OFFSET 0x919D +#define GL_TEXTURE_BUFFER_SIZE 0x919E +#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F +#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB +#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC +#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD +#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE +#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF +#define GL_VERTEX_ATTRIB_BINDING 0x82D4 +#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5 +#define GL_VERTEX_BINDING_DIVISOR 0x82D6 +#define GL_VERTEX_BINDING_OFFSET 0x82D7 +#define GL_VERTEX_BINDING_STRIDE 0x82D8 +#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9 +#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA +#define GL_VERTEX_BINDING_BUFFER 0x8F4F +typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); +typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect); +typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); +typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params); +typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments); +typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params); +typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params); +typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name); +typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); +typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); +typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); +typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex); +typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor); +typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam); +typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message); +typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void); +typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); +typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); +typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label); +typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); +GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect); +GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); +GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params); +GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level); +GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer); +GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments); +GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); +GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params); +GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name); +GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); +GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params); +GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name); +GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name); +GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); +GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); +GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex); +GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor); +GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam); +GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message); +GLAPI void APIENTRY glPopDebugGroup (void); +GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); +GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); +GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label); +GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); +#endif +#endif /* GL_VERSION_4_3 */ + +#ifndef GL_VERSION_4_4 +#define GL_VERSION_4_4 1 +#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 +#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 +#define GL_TEXTURE_BUFFER_BINDING 0x8C2A +#define GL_MAP_PERSISTENT_BIT 0x0040 +#define GL_MAP_COHERENT_BIT 0x0080 +#define GL_DYNAMIC_STORAGE_BIT 0x0100 +#define GL_CLIENT_STORAGE_BIT 0x0200 +#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000 +#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F +#define GL_BUFFER_STORAGE_FLAGS 0x8220 +#define GL_CLEAR_TEXTURE 0x9365 +#define GL_LOCATION_COMPONENT 0x934A +#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B +#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C +#define GL_QUERY_BUFFER 0x9192 +#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000 +#define GL_QUERY_BUFFER_BINDING 0x9193 +#define GL_QUERY_RESULT_NO_WAIT 0x9194 +#define GL_MIRROR_CLAMP_TO_EDGE 0x8743 +typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); +typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers); +typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); +typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures); +typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers); +typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures); +typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); +GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers); +GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); +GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures); +GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers); +GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures); +GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +#endif +#endif /* GL_VERSION_4_4 */ + +#ifndef GL_VERSION_4_5 +#define GL_VERSION_4_5 1 +#define GL_CONTEXT_LOST 0x0507 +#define GL_NEGATIVE_ONE_TO_ONE 0x935E +#define GL_ZERO_TO_ONE 0x935F +#define GL_CLIP_ORIGIN 0x935C +#define GL_CLIP_DEPTH_MODE 0x935D +#define GL_QUERY_WAIT_INVERTED 0x8E17 +#define GL_QUERY_NO_WAIT_INVERTED 0x8E18 +#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19 +#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A +#define GL_MAX_CULL_DISTANCES 0x82F9 +#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA +#define GL_TEXTURE_TARGET 0x1006 +#define GL_QUERY_TARGET 0x82EA +#define GL_GUILTY_CONTEXT_RESET 0x8253 +#define GL_INNOCENT_CONTEXT_RESET 0x8254 +#define GL_UNKNOWN_CONTEXT_RESET 0x8255 +#define GL_RESET_NOTIFICATION_STRATEGY 0x8256 +#define GL_LOSE_CONTEXT_ON_RESET 0x8252 +#define GL_NO_RESET_NOTIFICATION 0x8261 +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004 +#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB +#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC +typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth); +typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer); +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); +typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64 *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void **params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC) (GLuint framebuffer, GLenum src); +typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); +typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); +typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC) (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC) (GLuint framebuffer, GLenum target); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC) (GLuint framebuffer, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC) (GLuint renderbuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCREATETEXTURESPROC) (GLenum target, GLsizei n, GLuint *textures); +typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC) (GLuint texture, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC) (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC) (GLuint texture, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, const GLfloat *param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC) (GLuint texture, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, const GLint *param); +typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC) (GLuint texture); +typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC) (GLuint unit, GLuint texture); +typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC) (GLuint texture, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC) (GLuint texture, GLint level, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); +typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC) (GLuint vaobj, GLuint buffer); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC) (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC) (GLuint vaobj, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); +typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC) (GLsizei n, GLuint *samplers); +typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines); +typedef void (APIENTRYP PFNGLCREATEQUERIESPROC) (GLenum target, GLsizei n, GLuint *ids); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC) (GLbitfield barriers); +typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); +typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC) (void); +typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +typedef void (APIENTRYP PFNGLREADNPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glClipControl (GLenum origin, GLenum depth); +GLAPI void APIENTRY glCreateTransformFeedbacks (GLsizei n, GLuint *ids); +GLAPI void APIENTRY glTransformFeedbackBufferBase (GLuint xfb, GLuint index, GLuint buffer); +GLAPI void APIENTRY glTransformFeedbackBufferRange (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glGetTransformFeedbackiv (GLuint xfb, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetTransformFeedbacki_v (GLuint xfb, GLenum pname, GLuint index, GLint *param); +GLAPI void APIENTRY glGetTransformFeedbacki64_v (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); +GLAPI void APIENTRY glCreateBuffers (GLsizei n, GLuint *buffers); +GLAPI void APIENTRY glNamedBufferStorage (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +GLAPI void APIENTRY glNamedBufferData (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +GLAPI void APIENTRY glCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +GLAPI void APIENTRY glClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +GLAPI void *APIENTRY glMapNamedBuffer (GLuint buffer, GLenum access); +GLAPI void *APIENTRY glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +GLAPI GLboolean APIENTRY glUnmapNamedBuffer (GLuint buffer); +GLAPI void APIENTRY glFlushMappedNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glGetNamedBufferParameteriv (GLuint buffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 *params); +GLAPI void APIENTRY glGetNamedBufferPointerv (GLuint buffer, GLenum pname, void **params); +GLAPI void APIENTRY glGetNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +GLAPI void APIENTRY glCreateFramebuffers (GLsizei n, GLuint *framebuffers); +GLAPI void APIENTRY glNamedFramebufferRenderbuffer (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +GLAPI void APIENTRY glNamedFramebufferParameteri (GLuint framebuffer, GLenum pname, GLint param); +GLAPI void APIENTRY glNamedFramebufferTexture (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTextureLayer (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void APIENTRY glNamedFramebufferDrawBuffer (GLuint framebuffer, GLenum buf); +GLAPI void APIENTRY glNamedFramebufferDrawBuffers (GLuint framebuffer, GLsizei n, const GLenum *bufs); +GLAPI void APIENTRY glNamedFramebufferReadBuffer (GLuint framebuffer, GLenum src); +GLAPI void APIENTRY glInvalidateNamedFramebufferData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); +GLAPI void APIENTRY glInvalidateNamedFramebufferSubData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glClearNamedFramebufferiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); +GLAPI void APIENTRY glClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); +GLAPI void APIENTRY glClearNamedFramebufferfv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); +GLAPI void APIENTRY glClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); +GLAPI void APIENTRY glBlitNamedFramebuffer (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); +GLAPI GLenum APIENTRY glCheckNamedFramebufferStatus (GLuint framebuffer, GLenum target); +GLAPI void APIENTRY glGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +GLAPI void APIENTRY glCreateRenderbuffers (GLsizei n, GLuint *renderbuffers); +GLAPI void APIENTRY glNamedRenderbufferStorage (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisample (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glCreateTextures (GLenum target, GLsizei n, GLuint *textures); +GLAPI void APIENTRY glTextureBuffer (GLuint texture, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glTextureBufferRange (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glTextureStorage1D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTextureStorage2D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTextureStorage3D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glTextureStorage2DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureStorage3DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCompressedTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); +GLAPI void APIENTRY glCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTextureParameterf (GLuint texture, GLenum pname, GLfloat param); +GLAPI void APIENTRY glTextureParameterfv (GLuint texture, GLenum pname, const GLfloat *param); +GLAPI void APIENTRY glTextureParameteri (GLuint texture, GLenum pname, GLint param); +GLAPI void APIENTRY glTextureParameterIiv (GLuint texture, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTextureParameterIuiv (GLuint texture, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glTextureParameteriv (GLuint texture, GLenum pname, const GLint *param); +GLAPI void APIENTRY glGenerateTextureMipmap (GLuint texture); +GLAPI void APIENTRY glBindTextureUnit (GLuint unit, GLuint texture); +GLAPI void APIENTRY glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetCompressedTextureImage (GLuint texture, GLint level, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureLevelParameteriv (GLuint texture, GLint level, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureParameterfv (GLuint texture, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureParameterIiv (GLuint texture, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureParameterIuiv (GLuint texture, GLenum pname, GLuint *params); +GLAPI void APIENTRY glGetTextureParameteriv (GLuint texture, GLenum pname, GLint *params); +GLAPI void APIENTRY glCreateVertexArrays (GLsizei n, GLuint *arrays); +GLAPI void APIENTRY glDisableVertexArrayAttrib (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glEnableVertexArrayAttrib (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glVertexArrayElementBuffer (GLuint vaobj, GLuint buffer); +GLAPI void APIENTRY glVertexArrayVertexBuffer (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +GLAPI void APIENTRY glVertexArrayVertexBuffers (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); +GLAPI void APIENTRY glVertexArrayAttribBinding (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +GLAPI void APIENTRY glVertexArrayAttribFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayAttribIFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayAttribLFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayBindingDivisor (GLuint vaobj, GLuint bindingindex, GLuint divisor); +GLAPI void APIENTRY glGetVertexArrayiv (GLuint vaobj, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayIndexediv (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayIndexed64iv (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); +GLAPI void APIENTRY glCreateSamplers (GLsizei n, GLuint *samplers); +GLAPI void APIENTRY glCreateProgramPipelines (GLsizei n, GLuint *pipelines); +GLAPI void APIENTRY glCreateQueries (GLenum target, GLsizei n, GLuint *ids); +GLAPI void APIENTRY glGetQueryBufferObjecti64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glGetQueryBufferObjectiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glGetQueryBufferObjectui64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glGetQueryBufferObjectuiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset); +GLAPI void APIENTRY glMemoryBarrierByRegion (GLbitfield barriers); +GLAPI void APIENTRY glGetTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); +GLAPI GLenum APIENTRY glGetGraphicsResetStatus (void); +GLAPI void APIENTRY glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetnTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); +GLAPI void APIENTRY glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +GLAPI void APIENTRY glGetnUniformfv (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +GLAPI void APIENTRY glGetnUniformiv (GLuint program, GLint location, GLsizei bufSize, GLint *params); +GLAPI void APIENTRY glGetnUniformuiv (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +GLAPI void APIENTRY glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +GLAPI void APIENTRY glTextureBarrier (void); +#endif +#endif /* GL_VERSION_4_5 */ + +#ifndef GL_VERSION_4_6 +#define GL_VERSION_4_6 1 +#define GL_SHADER_BINARY_FORMAT_SPIR_V 0x9551 +#define GL_SPIR_V_BINARY 0x9552 +#define GL_PARAMETER_BUFFER 0x80EE +#define GL_PARAMETER_BUFFER_BINDING 0x80EF +#define GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008 +#define GL_VERTICES_SUBMITTED 0x82EE +#define GL_PRIMITIVES_SUBMITTED 0x82EF +#define GL_VERTEX_SHADER_INVOCATIONS 0x82F0 +#define GL_TESS_CONTROL_SHADER_PATCHES 0x82F1 +#define GL_TESS_EVALUATION_SHADER_INVOCATIONS 0x82F2 +#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED 0x82F3 +#define GL_FRAGMENT_SHADER_INVOCATIONS 0x82F4 +#define GL_COMPUTE_SHADER_INVOCATIONS 0x82F5 +#define GL_CLIPPING_INPUT_PRIMITIVES 0x82F6 +#define GL_CLIPPING_OUTPUT_PRIMITIVES 0x82F7 +#define GL_POLYGON_OFFSET_CLAMP 0x8E1B +#define GL_SPIR_V_EXTENSIONS 0x9553 +#define GL_NUM_SPIR_V_EXTENSIONS 0x9554 +#define GL_TEXTURE_MAX_ANISOTROPY 0x84FE +#define GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF +#define GL_TRANSFORM_FEEDBACK_OVERFLOW 0x82EC +#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW 0x82ED +typedef void (APIENTRYP PFNGLSPECIALIZESHADERPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPPROC) (GLfloat factor, GLfloat units, GLfloat clamp); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSpecializeShader (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +GLAPI void APIENTRY glMultiDrawArraysIndirectCount (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawElementsIndirectCount (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +GLAPI void APIENTRY glPolygonOffsetClamp (GLfloat factor, GLfloat units, GLfloat clamp); +#endif +#endif /* GL_VERSION_4_6 */ + +#ifndef GL_ARB_ES2_compatibility +#define GL_ARB_ES2_compatibility 1 +#endif /* GL_ARB_ES2_compatibility */ + +#ifndef GL_ARB_ES3_1_compatibility +#define GL_ARB_ES3_1_compatibility 1 +#endif /* GL_ARB_ES3_1_compatibility */ + +#ifndef GL_ARB_ES3_2_compatibility +#define GL_ARB_ES3_2_compatibility 1 +#define GL_PRIMITIVE_BOUNDING_BOX_ARB 0x92BE +#define GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB 0x9381 +#define GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB 0x9382 +typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXARBPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPrimitiveBoundingBoxARB (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); +#endif +#endif /* GL_ARB_ES3_2_compatibility */ + +#ifndef GL_ARB_ES3_compatibility +#define GL_ARB_ES3_compatibility 1 +#endif /* GL_ARB_ES3_compatibility */ + +#ifndef GL_ARB_arrays_of_arrays +#define GL_ARB_arrays_of_arrays 1 +#endif /* GL_ARB_arrays_of_arrays */ + +#ifndef GL_ARB_base_instance +#define GL_ARB_base_instance 1 +#endif /* GL_ARB_base_instance */ + +#ifndef GL_ARB_bindless_texture +#define GL_ARB_bindless_texture 1 +typedef khronos_uint64_t GLuint64EXT; +#define GL_UNSIGNED_INT64_ARB 0x140F +typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture); +typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle); +typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle); +typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture); +GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler); +GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle); +GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle); +GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access); +GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle); +GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value); +GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value); +GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle); +GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle); +GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x); +GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params); +#endif +#endif /* GL_ARB_bindless_texture */ + +#ifndef GL_ARB_blend_func_extended +#define GL_ARB_blend_func_extended 1 +#endif /* GL_ARB_blend_func_extended */ + +#ifndef GL_ARB_buffer_storage +#define GL_ARB_buffer_storage 1 +#endif /* GL_ARB_buffer_storage */ + +#ifndef GL_ARB_cl_event +#define GL_ARB_cl_event 1 +struct _cl_context; +struct _cl_event; +#define GL_SYNC_CL_EVENT_ARB 0x8240 +#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 +typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags); +#endif +#endif /* GL_ARB_cl_event */ + +#ifndef GL_ARB_clear_buffer_object +#define GL_ARB_clear_buffer_object 1 +#endif /* GL_ARB_clear_buffer_object */ + +#ifndef GL_ARB_clear_texture +#define GL_ARB_clear_texture 1 +#endif /* GL_ARB_clear_texture */ + +#ifndef GL_ARB_clip_control +#define GL_ARB_clip_control 1 +#endif /* GL_ARB_clip_control */ + +#ifndef GL_ARB_compressed_texture_pixel_storage +#define GL_ARB_compressed_texture_pixel_storage 1 +#endif /* GL_ARB_compressed_texture_pixel_storage */ + +#ifndef GL_ARB_compute_shader +#define GL_ARB_compute_shader 1 +#endif /* GL_ARB_compute_shader */ + +#ifndef GL_ARB_compute_variable_group_size +#define GL_ARB_compute_variable_group_size 1 +#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344 +#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB +#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345 +#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF +typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); +#endif +#endif /* GL_ARB_compute_variable_group_size */ + +#ifndef GL_ARB_conditional_render_inverted +#define GL_ARB_conditional_render_inverted 1 +#endif /* GL_ARB_conditional_render_inverted */ + +#ifndef GL_ARB_conservative_depth +#define GL_ARB_conservative_depth 1 +#endif /* GL_ARB_conservative_depth */ + +#ifndef GL_ARB_copy_buffer +#define GL_ARB_copy_buffer 1 +#endif /* GL_ARB_copy_buffer */ + +#ifndef GL_ARB_copy_image +#define GL_ARB_copy_image 1 +#endif /* GL_ARB_copy_image */ + +#ifndef GL_ARB_cull_distance +#define GL_ARB_cull_distance 1 +#endif /* GL_ARB_cull_distance */ + +#ifndef GL_ARB_debug_output +#define GL_ARB_debug_output 1 +typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 +#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 +#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 +#define GL_DEBUG_SOURCE_API_ARB 0x8246 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 +#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 +#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 +#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A +#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B +#define GL_DEBUG_TYPE_ERROR_ARB 0x824C +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E +#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F +#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 +#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 +#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 +#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 +#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 +#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 +#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 +typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam); +typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); +GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); +GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam); +GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); +#endif +#endif /* GL_ARB_debug_output */ + +#ifndef GL_ARB_depth_buffer_float +#define GL_ARB_depth_buffer_float 1 +#endif /* GL_ARB_depth_buffer_float */ + +#ifndef GL_ARB_depth_clamp +#define GL_ARB_depth_clamp 1 +#endif /* GL_ARB_depth_clamp */ + +#ifndef GL_ARB_derivative_control +#define GL_ARB_derivative_control 1 +#endif /* GL_ARB_derivative_control */ + +#ifndef GL_ARB_direct_state_access +#define GL_ARB_direct_state_access 1 +#endif /* GL_ARB_direct_state_access */ + +#ifndef GL_ARB_draw_buffers_blend +#define GL_ARB_draw_buffers_blend 1 +typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode); +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst); +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode); +GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst); +GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); +#endif +#endif /* GL_ARB_draw_buffers_blend */ + +#ifndef GL_ARB_draw_elements_base_vertex +#define GL_ARB_draw_elements_base_vertex 1 +#endif /* GL_ARB_draw_elements_base_vertex */ + +#ifndef GL_ARB_draw_indirect +#define GL_ARB_draw_indirect 1 +#endif /* GL_ARB_draw_indirect */ + +#ifndef GL_ARB_draw_instanced +#define GL_ARB_draw_instanced 1 +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount); +GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#endif +#endif /* GL_ARB_draw_instanced */ + +#ifndef GL_ARB_enhanced_layouts +#define GL_ARB_enhanced_layouts 1 +#endif /* GL_ARB_enhanced_layouts */ + +#ifndef GL_ARB_explicit_attrib_location +#define GL_ARB_explicit_attrib_location 1 +#endif /* GL_ARB_explicit_attrib_location */ + +#ifndef GL_ARB_explicit_uniform_location +#define GL_ARB_explicit_uniform_location 1 +#endif /* GL_ARB_explicit_uniform_location */ + +#ifndef GL_ARB_fragment_coord_conventions +#define GL_ARB_fragment_coord_conventions 1 +#endif /* GL_ARB_fragment_coord_conventions */ + +#ifndef GL_ARB_fragment_layer_viewport +#define GL_ARB_fragment_layer_viewport 1 +#endif /* GL_ARB_fragment_layer_viewport */ + +#ifndef GL_ARB_fragment_shader_interlock +#define GL_ARB_fragment_shader_interlock 1 +#endif /* GL_ARB_fragment_shader_interlock */ + +#ifndef GL_ARB_framebuffer_no_attachments +#define GL_ARB_framebuffer_no_attachments 1 +#endif /* GL_ARB_framebuffer_no_attachments */ + +#ifndef GL_ARB_framebuffer_object +#define GL_ARB_framebuffer_object 1 +#endif /* GL_ARB_framebuffer_object */ + +#ifndef GL_ARB_framebuffer_sRGB +#define GL_ARB_framebuffer_sRGB 1 +#endif /* GL_ARB_framebuffer_sRGB */ + +#ifndef GL_ARB_geometry_shader4 +#define GL_ARB_geometry_shader4 1 +#define GL_LINES_ADJACENCY_ARB 0x000A +#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B +#define GL_TRIANGLES_ADJACENCY_ARB 0x000C +#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D +#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9 +#define GL_GEOMETRY_SHADER_ARB 0x8DD9 +#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA +#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB +#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC +#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD +#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value); +GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); +#endif +#endif /* GL_ARB_geometry_shader4 */ + +#ifndef GL_ARB_get_program_binary +#define GL_ARB_get_program_binary 1 +#endif /* GL_ARB_get_program_binary */ + +#ifndef GL_ARB_get_texture_sub_image +#define GL_ARB_get_texture_sub_image 1 +#endif /* GL_ARB_get_texture_sub_image */ + +#ifndef GL_ARB_gl_spirv +#define GL_ARB_gl_spirv 1 +#define GL_SHADER_BINARY_FORMAT_SPIR_V_ARB 0x9551 +#define GL_SPIR_V_BINARY_ARB 0x9552 +typedef void (APIENTRYP PFNGLSPECIALIZESHADERARBPROC) (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSpecializeShaderARB (GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); +#endif +#endif /* GL_ARB_gl_spirv */ + +#ifndef GL_ARB_gpu_shader5 +#define GL_ARB_gpu_shader5 1 +#endif /* GL_ARB_gpu_shader5 */ + +#ifndef GL_ARB_gpu_shader_fp64 +#define GL_ARB_gpu_shader_fp64 1 +#endif /* GL_ARB_gpu_shader_fp64 */ + +#ifndef GL_ARB_gpu_shader_int64 +#define GL_ARB_gpu_shader_int64 1 +#define GL_INT64_ARB 0x140E +#define GL_INT64_VEC2_ARB 0x8FE9 +#define GL_INT64_VEC3_ARB 0x8FEA +#define GL_INT64_VEC4_ARB 0x8FEB +#define GL_UNSIGNED_INT64_VEC2_ARB 0x8FF5 +#define GL_UNSIGNED_INT64_VEC3_ARB 0x8FF6 +#define GL_UNSIGNED_INT64_VEC4_ARB 0x8FF7 +typedef void (APIENTRYP PFNGLUNIFORM1I64ARBPROC) (GLint location, GLint64 x); +typedef void (APIENTRYP PFNGLUNIFORM2I64ARBPROC) (GLint location, GLint64 x, GLint64 y); +typedef void (APIENTRYP PFNGLUNIFORM3I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z); +typedef void (APIENTRYP PFNGLUNIFORM4I64ARBPROC) (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +typedef void (APIENTRYP PFNGLUNIFORM1I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM2I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM3I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM4I64VARBPROC) (GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM1UI64ARBPROC) (GLint location, GLuint64 x); +typedef void (APIENTRYP PFNGLUNIFORM2UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y); +typedef void (APIENTRYP PFNGLUNIFORM3UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +typedef void (APIENTRYP PFNGLUNIFORM4UI64ARBPROC) (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +typedef void (APIENTRYP PFNGLUNIFORM1UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM2UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM3UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLUNIFORM4UI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLGETUNIFORMI64VARBPROC) (GLuint program, GLint location, GLint64 *params); +typedef void (APIENTRYP PFNGLGETUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLuint64 *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint64 *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMUI64VARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64ARBPROC) (GLuint program, GLint location, GLint64 x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64ARBPROC) (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64ARBPROC) (GLuint program, GLint location, GLuint64 x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64ARBPROC) (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniform1i64ARB (GLint location, GLint64 x); +GLAPI void APIENTRY glUniform2i64ARB (GLint location, GLint64 x, GLint64 y); +GLAPI void APIENTRY glUniform3i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z); +GLAPI void APIENTRY glUniform4i64ARB (GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +GLAPI void APIENTRY glUniform1i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform2i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform3i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform4i64vARB (GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glUniform1ui64ARB (GLint location, GLuint64 x); +GLAPI void APIENTRY glUniform2ui64ARB (GLint location, GLuint64 x, GLuint64 y); +GLAPI void APIENTRY glUniform3ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +GLAPI void APIENTRY glUniform4ui64ARB (GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +GLAPI void APIENTRY glUniform1ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glUniform2ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glUniform3ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glUniform4ui64vARB (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glGetUniformi64vARB (GLuint program, GLint location, GLint64 *params); +GLAPI void APIENTRY glGetUniformui64vARB (GLuint program, GLint location, GLuint64 *params); +GLAPI void APIENTRY glGetnUniformi64vARB (GLuint program, GLint location, GLsizei bufSize, GLint64 *params); +GLAPI void APIENTRY glGetnUniformui64vARB (GLuint program, GLint location, GLsizei bufSize, GLuint64 *params); +GLAPI void APIENTRY glProgramUniform1i64ARB (GLuint program, GLint location, GLint64 x); +GLAPI void APIENTRY glProgramUniform2i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y); +GLAPI void APIENTRY glProgramUniform3i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z); +GLAPI void APIENTRY glProgramUniform4i64ARB (GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); +GLAPI void APIENTRY glProgramUniform1i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform2i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform3i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform4i64vARB (GLuint program, GLint location, GLsizei count, const GLint64 *value); +GLAPI void APIENTRY glProgramUniform1ui64ARB (GLuint program, GLint location, GLuint64 x); +GLAPI void APIENTRY glProgramUniform2ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y); +GLAPI void APIENTRY glProgramUniform3ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z); +GLAPI void APIENTRY glProgramUniform4ui64ARB (GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); +GLAPI void APIENTRY glProgramUniform1ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniform2ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniform3ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniform4ui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *value); +#endif +#endif /* GL_ARB_gpu_shader_int64 */ + +#ifndef GL_ARB_half_float_vertex +#define GL_ARB_half_float_vertex 1 +#endif /* GL_ARB_half_float_vertex */ + +#ifndef GL_ARB_imaging +#define GL_ARB_imaging 1 +#endif /* GL_ARB_imaging */ + +#ifndef GL_ARB_indirect_parameters +#define GL_ARB_indirect_parameters 1 +#define GL_PARAMETER_BUFFER_ARB 0x80EE +#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#endif +#endif /* GL_ARB_indirect_parameters */ + +#ifndef GL_ARB_instanced_arrays +#define GL_ARB_instanced_arrays 1 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE +typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor); +#endif +#endif /* GL_ARB_instanced_arrays */ + +#ifndef GL_ARB_internalformat_query +#define GL_ARB_internalformat_query 1 +#endif /* GL_ARB_internalformat_query */ + +#ifndef GL_ARB_internalformat_query2 +#define GL_ARB_internalformat_query2 1 +#define GL_SRGB_DECODE_ARB 0x8299 +#define GL_VIEW_CLASS_EAC_R11 0x9383 +#define GL_VIEW_CLASS_EAC_RG11 0x9384 +#define GL_VIEW_CLASS_ETC2_RGB 0x9385 +#define GL_VIEW_CLASS_ETC2_RGBA 0x9386 +#define GL_VIEW_CLASS_ETC2_EAC_RGBA 0x9387 +#define GL_VIEW_CLASS_ASTC_4x4_RGBA 0x9388 +#define GL_VIEW_CLASS_ASTC_5x4_RGBA 0x9389 +#define GL_VIEW_CLASS_ASTC_5x5_RGBA 0x938A +#define GL_VIEW_CLASS_ASTC_6x5_RGBA 0x938B +#define GL_VIEW_CLASS_ASTC_6x6_RGBA 0x938C +#define GL_VIEW_CLASS_ASTC_8x5_RGBA 0x938D +#define GL_VIEW_CLASS_ASTC_8x6_RGBA 0x938E +#define GL_VIEW_CLASS_ASTC_8x8_RGBA 0x938F +#define GL_VIEW_CLASS_ASTC_10x5_RGBA 0x9390 +#define GL_VIEW_CLASS_ASTC_10x6_RGBA 0x9391 +#define GL_VIEW_CLASS_ASTC_10x8_RGBA 0x9392 +#define GL_VIEW_CLASS_ASTC_10x10_RGBA 0x9393 +#define GL_VIEW_CLASS_ASTC_12x10_RGBA 0x9394 +#define GL_VIEW_CLASS_ASTC_12x12_RGBA 0x9395 +#endif /* GL_ARB_internalformat_query2 */ + +#ifndef GL_ARB_invalidate_subdata +#define GL_ARB_invalidate_subdata 1 +#endif /* GL_ARB_invalidate_subdata */ + +#ifndef GL_ARB_map_buffer_alignment +#define GL_ARB_map_buffer_alignment 1 +#endif /* GL_ARB_map_buffer_alignment */ + +#ifndef GL_ARB_map_buffer_range +#define GL_ARB_map_buffer_range 1 +#endif /* GL_ARB_map_buffer_range */ + +#ifndef GL_ARB_multi_bind +#define GL_ARB_multi_bind 1 +#endif /* GL_ARB_multi_bind */ + +#ifndef GL_ARB_multi_draw_indirect +#define GL_ARB_multi_draw_indirect 1 +#endif /* GL_ARB_multi_draw_indirect */ + +#ifndef GL_ARB_occlusion_query2 +#define GL_ARB_occlusion_query2 1 +#endif /* GL_ARB_occlusion_query2 */ + +#ifndef GL_ARB_parallel_shader_compile +#define GL_ARB_parallel_shader_compile 1 +#define GL_MAX_SHADER_COMPILER_THREADS_ARB 0x91B0 +#define GL_COMPLETION_STATUS_ARB 0x91B1 +typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSARBPROC) (GLuint count); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMaxShaderCompilerThreadsARB (GLuint count); +#endif +#endif /* GL_ARB_parallel_shader_compile */ + +#ifndef GL_ARB_pipeline_statistics_query +#define GL_ARB_pipeline_statistics_query 1 +#define GL_VERTICES_SUBMITTED_ARB 0x82EE +#define GL_PRIMITIVES_SUBMITTED_ARB 0x82EF +#define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82F0 +#define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82F1 +#define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82F2 +#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82F3 +#define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82F4 +#define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82F5 +#define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82F6 +#define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82F7 +#endif /* GL_ARB_pipeline_statistics_query */ + +#ifndef GL_ARB_pixel_buffer_object +#define GL_ARB_pixel_buffer_object 1 +#define GL_PIXEL_PACK_BUFFER_ARB 0x88EB +#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC +#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED +#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF +#endif /* GL_ARB_pixel_buffer_object */ + +#ifndef GL_ARB_polygon_offset_clamp +#define GL_ARB_polygon_offset_clamp 1 +#endif /* GL_ARB_polygon_offset_clamp */ + +#ifndef GL_ARB_post_depth_coverage +#define GL_ARB_post_depth_coverage 1 +#endif /* GL_ARB_post_depth_coverage */ + +#ifndef GL_ARB_program_interface_query +#define GL_ARB_program_interface_query 1 +#endif /* GL_ARB_program_interface_query */ + +#ifndef GL_ARB_provoking_vertex +#define GL_ARB_provoking_vertex 1 +#endif /* GL_ARB_provoking_vertex */ + +#ifndef GL_ARB_query_buffer_object +#define GL_ARB_query_buffer_object 1 +#endif /* GL_ARB_query_buffer_object */ + +#ifndef GL_ARB_robust_buffer_access_behavior +#define GL_ARB_robust_buffer_access_behavior 1 +#endif /* GL_ARB_robust_buffer_access_behavior */ + +#ifndef GL_ARB_robustness +#define GL_ARB_robustness 1 +#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 +#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 +#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 +#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 +typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void); +typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img); +typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void *img); +typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void); +GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img); +GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); +GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void *img); +GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); +GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params); +GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params); +GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); +#endif +#endif /* GL_ARB_robustness */ + +#ifndef GL_ARB_robustness_isolation +#define GL_ARB_robustness_isolation 1 +#endif /* GL_ARB_robustness_isolation */ + +#ifndef GL_ARB_sample_locations +#define GL_ARB_sample_locations 1 +#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB 0x933D +#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB 0x933E +#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB 0x933F +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB 0x9340 +#define GL_SAMPLE_LOCATION_ARB 0x8E50 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB 0x9341 +#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB 0x9342 +#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB 0x9343 +typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLEVALUATEDEPTHVALUESARBPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferSampleLocationsfvARB (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvARB (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glEvaluateDepthValuesARB (void); +#endif +#endif /* GL_ARB_sample_locations */ + +#ifndef GL_ARB_sample_shading +#define GL_ARB_sample_shading 1 +#define GL_SAMPLE_SHADING_ARB 0x8C36 +#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 +typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value); +#endif +#endif /* GL_ARB_sample_shading */ + +#ifndef GL_ARB_sampler_objects +#define GL_ARB_sampler_objects 1 +#endif /* GL_ARB_sampler_objects */ + +#ifndef GL_ARB_seamless_cube_map +#define GL_ARB_seamless_cube_map 1 +#endif /* GL_ARB_seamless_cube_map */ + +#ifndef GL_ARB_seamless_cubemap_per_texture +#define GL_ARB_seamless_cubemap_per_texture 1 +#endif /* GL_ARB_seamless_cubemap_per_texture */ + +#ifndef GL_ARB_separate_shader_objects +#define GL_ARB_separate_shader_objects 1 +#endif /* GL_ARB_separate_shader_objects */ + +#ifndef GL_ARB_shader_atomic_counter_ops +#define GL_ARB_shader_atomic_counter_ops 1 +#endif /* GL_ARB_shader_atomic_counter_ops */ + +#ifndef GL_ARB_shader_atomic_counters +#define GL_ARB_shader_atomic_counters 1 +#endif /* GL_ARB_shader_atomic_counters */ + +#ifndef GL_ARB_shader_ballot +#define GL_ARB_shader_ballot 1 +#endif /* GL_ARB_shader_ballot */ + +#ifndef GL_ARB_shader_bit_encoding +#define GL_ARB_shader_bit_encoding 1 +#endif /* GL_ARB_shader_bit_encoding */ + +#ifndef GL_ARB_shader_clock +#define GL_ARB_shader_clock 1 +#endif /* GL_ARB_shader_clock */ + +#ifndef GL_ARB_shader_draw_parameters +#define GL_ARB_shader_draw_parameters 1 +#endif /* GL_ARB_shader_draw_parameters */ + +#ifndef GL_ARB_shader_group_vote +#define GL_ARB_shader_group_vote 1 +#endif /* GL_ARB_shader_group_vote */ + +#ifndef GL_ARB_shader_image_load_store +#define GL_ARB_shader_image_load_store 1 +#endif /* GL_ARB_shader_image_load_store */ + +#ifndef GL_ARB_shader_image_size +#define GL_ARB_shader_image_size 1 +#endif /* GL_ARB_shader_image_size */ + +#ifndef GL_ARB_shader_precision +#define GL_ARB_shader_precision 1 +#endif /* GL_ARB_shader_precision */ + +#ifndef GL_ARB_shader_stencil_export +#define GL_ARB_shader_stencil_export 1 +#endif /* GL_ARB_shader_stencil_export */ + +#ifndef GL_ARB_shader_storage_buffer_object +#define GL_ARB_shader_storage_buffer_object 1 +#endif /* GL_ARB_shader_storage_buffer_object */ + +#ifndef GL_ARB_shader_subroutine +#define GL_ARB_shader_subroutine 1 +#endif /* GL_ARB_shader_subroutine */ + +#ifndef GL_ARB_shader_texture_image_samples +#define GL_ARB_shader_texture_image_samples 1 +#endif /* GL_ARB_shader_texture_image_samples */ + +#ifndef GL_ARB_shader_viewport_layer_array +#define GL_ARB_shader_viewport_layer_array 1 +#endif /* GL_ARB_shader_viewport_layer_array */ + +#ifndef GL_ARB_shading_language_420pack +#define GL_ARB_shading_language_420pack 1 +#endif /* GL_ARB_shading_language_420pack */ + +#ifndef GL_ARB_shading_language_include +#define GL_ARB_shading_language_include 1 +#define GL_SHADER_INCLUDE_ARB 0x8DAE +#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 +#define GL_NAMED_STRING_TYPE_ARB 0x8DEA +typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); +typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); +typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length); +typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); +typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); +typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); +GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name); +GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length); +GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name); +GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); +GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params); +#endif +#endif /* GL_ARB_shading_language_include */ + +#ifndef GL_ARB_shading_language_packing +#define GL_ARB_shading_language_packing 1 +#endif /* GL_ARB_shading_language_packing */ + +#ifndef GL_ARB_sparse_buffer +#define GL_ARB_sparse_buffer 1 +#define GL_SPARSE_STORAGE_BIT_ARB 0x0400 +#define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82F8 +typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTARBPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit); +typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferPageCommitmentARB (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit); +GLAPI void APIENTRY glNamedBufferPageCommitmentEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +GLAPI void APIENTRY glNamedBufferPageCommitmentARB (GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); +#endif +#endif /* GL_ARB_sparse_buffer */ + +#ifndef GL_ARB_sparse_texture +#define GL_ARB_sparse_texture 1 +#define GL_TEXTURE_SPARSE_ARB 0x91A6 +#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91A7 +#define GL_NUM_SPARSE_LEVELS_ARB 0x91AA +#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91A8 +#define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195 +#define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196 +#define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197 +#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198 +#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199 +#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A +#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9 +typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexPageCommitmentARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +#endif +#endif /* GL_ARB_sparse_texture */ + +#ifndef GL_ARB_sparse_texture2 +#define GL_ARB_sparse_texture2 1 +#endif /* GL_ARB_sparse_texture2 */ + +#ifndef GL_ARB_sparse_texture_clamp +#define GL_ARB_sparse_texture_clamp 1 +#endif /* GL_ARB_sparse_texture_clamp */ + +#ifndef GL_ARB_spirv_extensions +#define GL_ARB_spirv_extensions 1 +#endif /* GL_ARB_spirv_extensions */ + +#ifndef GL_ARB_stencil_texturing +#define GL_ARB_stencil_texturing 1 +#endif /* GL_ARB_stencil_texturing */ + +#ifndef GL_ARB_sync +#define GL_ARB_sync 1 +#endif /* GL_ARB_sync */ + +#ifndef GL_ARB_tessellation_shader +#define GL_ARB_tessellation_shader 1 +#endif /* GL_ARB_tessellation_shader */ + +#ifndef GL_ARB_texture_barrier +#define GL_ARB_texture_barrier 1 +#endif /* GL_ARB_texture_barrier */ + +#ifndef GL_ARB_texture_border_clamp +#define GL_ARB_texture_border_clamp 1 +#define GL_CLAMP_TO_BORDER_ARB 0x812D +#endif /* GL_ARB_texture_border_clamp */ + +#ifndef GL_ARB_texture_buffer_object +#define GL_ARB_texture_buffer_object 1 +#define GL_TEXTURE_BUFFER_ARB 0x8C2A +#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B +#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D +#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E +typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer); +#endif +#endif /* GL_ARB_texture_buffer_object */ + +#ifndef GL_ARB_texture_buffer_object_rgb32 +#define GL_ARB_texture_buffer_object_rgb32 1 +#endif /* GL_ARB_texture_buffer_object_rgb32 */ + +#ifndef GL_ARB_texture_buffer_range +#define GL_ARB_texture_buffer_range 1 +#endif /* GL_ARB_texture_buffer_range */ + +#ifndef GL_ARB_texture_compression_bptc +#define GL_ARB_texture_compression_bptc 1 +#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F +#endif /* GL_ARB_texture_compression_bptc */ + +#ifndef GL_ARB_texture_compression_rgtc +#define GL_ARB_texture_compression_rgtc 1 +#endif /* GL_ARB_texture_compression_rgtc */ + +#ifndef GL_ARB_texture_cube_map_array +#define GL_ARB_texture_cube_map_array 1 +#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B +#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F +#endif /* GL_ARB_texture_cube_map_array */ + +#ifndef GL_ARB_texture_filter_anisotropic +#define GL_ARB_texture_filter_anisotropic 1 +#endif /* GL_ARB_texture_filter_anisotropic */ + +#ifndef GL_ARB_texture_filter_minmax +#define GL_ARB_texture_filter_minmax 1 +#define GL_TEXTURE_REDUCTION_MODE_ARB 0x9366 +#define GL_WEIGHTED_AVERAGE_ARB 0x9367 +#endif /* GL_ARB_texture_filter_minmax */ + +#ifndef GL_ARB_texture_gather +#define GL_ARB_texture_gather 1 +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F +#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F +#endif /* GL_ARB_texture_gather */ + +#ifndef GL_ARB_texture_mirror_clamp_to_edge +#define GL_ARB_texture_mirror_clamp_to_edge 1 +#endif /* GL_ARB_texture_mirror_clamp_to_edge */ + +#ifndef GL_ARB_texture_mirrored_repeat +#define GL_ARB_texture_mirrored_repeat 1 +#define GL_MIRRORED_REPEAT_ARB 0x8370 +#endif /* GL_ARB_texture_mirrored_repeat */ + +#ifndef GL_ARB_texture_multisample +#define GL_ARB_texture_multisample 1 +#endif /* GL_ARB_texture_multisample */ + +#ifndef GL_ARB_texture_non_power_of_two +#define GL_ARB_texture_non_power_of_two 1 +#endif /* GL_ARB_texture_non_power_of_two */ + +#ifndef GL_ARB_texture_query_levels +#define GL_ARB_texture_query_levels 1 +#endif /* GL_ARB_texture_query_levels */ + +#ifndef GL_ARB_texture_query_lod +#define GL_ARB_texture_query_lod 1 +#endif /* GL_ARB_texture_query_lod */ + +#ifndef GL_ARB_texture_rg +#define GL_ARB_texture_rg 1 +#endif /* GL_ARB_texture_rg */ + +#ifndef GL_ARB_texture_rgb10_a2ui +#define GL_ARB_texture_rgb10_a2ui 1 +#endif /* GL_ARB_texture_rgb10_a2ui */ + +#ifndef GL_ARB_texture_stencil8 +#define GL_ARB_texture_stencil8 1 +#endif /* GL_ARB_texture_stencil8 */ + +#ifndef GL_ARB_texture_storage +#define GL_ARB_texture_storage 1 +#endif /* GL_ARB_texture_storage */ + +#ifndef GL_ARB_texture_storage_multisample +#define GL_ARB_texture_storage_multisample 1 +#endif /* GL_ARB_texture_storage_multisample */ + +#ifndef GL_ARB_texture_swizzle +#define GL_ARB_texture_swizzle 1 +#endif /* GL_ARB_texture_swizzle */ + +#ifndef GL_ARB_texture_view +#define GL_ARB_texture_view 1 +#endif /* GL_ARB_texture_view */ + +#ifndef GL_ARB_timer_query +#define GL_ARB_timer_query 1 +#endif /* GL_ARB_timer_query */ + +#ifndef GL_ARB_transform_feedback2 +#define GL_ARB_transform_feedback2 1 +#endif /* GL_ARB_transform_feedback2 */ + +#ifndef GL_ARB_transform_feedback3 +#define GL_ARB_transform_feedback3 1 +#endif /* GL_ARB_transform_feedback3 */ + +#ifndef GL_ARB_transform_feedback_instanced +#define GL_ARB_transform_feedback_instanced 1 +#endif /* GL_ARB_transform_feedback_instanced */ + +#ifndef GL_ARB_transform_feedback_overflow_query +#define GL_ARB_transform_feedback_overflow_query 1 +#define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82EC +#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ED +#endif /* GL_ARB_transform_feedback_overflow_query */ + +#ifndef GL_ARB_uniform_buffer_object +#define GL_ARB_uniform_buffer_object 1 +#endif /* GL_ARB_uniform_buffer_object */ + +#ifndef GL_ARB_vertex_array_bgra +#define GL_ARB_vertex_array_bgra 1 +#endif /* GL_ARB_vertex_array_bgra */ + +#ifndef GL_ARB_vertex_array_object +#define GL_ARB_vertex_array_object 1 +#endif /* GL_ARB_vertex_array_object */ + +#ifndef GL_ARB_vertex_attrib_64bit +#define GL_ARB_vertex_attrib_64bit 1 +#endif /* GL_ARB_vertex_attrib_64bit */ + +#ifndef GL_ARB_vertex_attrib_binding +#define GL_ARB_vertex_attrib_binding 1 +#endif /* GL_ARB_vertex_attrib_binding */ + +#ifndef GL_ARB_vertex_type_10f_11f_11f_rev +#define GL_ARB_vertex_type_10f_11f_11f_rev 1 +#endif /* GL_ARB_vertex_type_10f_11f_11f_rev */ + +#ifndef GL_ARB_vertex_type_2_10_10_10_rev +#define GL_ARB_vertex_type_2_10_10_10_rev 1 +#endif /* GL_ARB_vertex_type_2_10_10_10_rev */ + +#ifndef GL_ARB_viewport_array +#define GL_ARB_viewport_array 1 +typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYDVNVPROC) (GLuint first, GLsizei count, const GLdouble *v); +typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDDNVPROC) (GLuint index, GLdouble n, GLdouble f); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDepthRangeArraydvNV (GLuint first, GLsizei count, const GLdouble *v); +GLAPI void APIENTRY glDepthRangeIndexeddNV (GLuint index, GLdouble n, GLdouble f); +#endif +#endif /* GL_ARB_viewport_array */ + +#ifndef GL_KHR_blend_equation_advanced +#define GL_KHR_blend_equation_advanced 1 +#define GL_MULTIPLY_KHR 0x9294 +#define GL_SCREEN_KHR 0x9295 +#define GL_OVERLAY_KHR 0x9296 +#define GL_DARKEN_KHR 0x9297 +#define GL_LIGHTEN_KHR 0x9298 +#define GL_COLORDODGE_KHR 0x9299 +#define GL_COLORBURN_KHR 0x929A +#define GL_HARDLIGHT_KHR 0x929B +#define GL_SOFTLIGHT_KHR 0x929C +#define GL_DIFFERENCE_KHR 0x929E +#define GL_EXCLUSION_KHR 0x92A0 +#define GL_HSL_HUE_KHR 0x92AD +#define GL_HSL_SATURATION_KHR 0x92AE +#define GL_HSL_COLOR_KHR 0x92AF +#define GL_HSL_LUMINOSITY_KHR 0x92B0 +typedef void (APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendBarrierKHR (void); +#endif +#endif /* GL_KHR_blend_equation_advanced */ + +#ifndef GL_KHR_blend_equation_advanced_coherent +#define GL_KHR_blend_equation_advanced_coherent 1 +#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285 +#endif /* GL_KHR_blend_equation_advanced_coherent */ + +#ifndef GL_KHR_context_flush_control +#define GL_KHR_context_flush_control 1 +#endif /* GL_KHR_context_flush_control */ + +#ifndef GL_KHR_debug +#define GL_KHR_debug 1 +#endif /* GL_KHR_debug */ + +#ifndef GL_KHR_no_error +#define GL_KHR_no_error 1 +#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 +#endif /* GL_KHR_no_error */ + +#ifndef GL_KHR_parallel_shader_compile +#define GL_KHR_parallel_shader_compile 1 +#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0 +#define GL_COMPLETION_STATUS_KHR 0x91B1 +typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC) (GLuint count); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMaxShaderCompilerThreadsKHR (GLuint count); +#endif +#endif /* GL_KHR_parallel_shader_compile */ + +#ifndef GL_KHR_robust_buffer_access_behavior +#define GL_KHR_robust_buffer_access_behavior 1 +#endif /* GL_KHR_robust_buffer_access_behavior */ + +#ifndef GL_KHR_robustness +#define GL_KHR_robustness 1 +#define GL_CONTEXT_ROBUST_ACCESS 0x90F3 +#endif /* GL_KHR_robustness */ + +#ifndef GL_KHR_shader_subgroup +#define GL_KHR_shader_subgroup 1 +#define GL_SUBGROUP_SIZE_KHR 0x9532 +#define GL_SUBGROUP_SUPPORTED_STAGES_KHR 0x9533 +#define GL_SUBGROUP_SUPPORTED_FEATURES_KHR 0x9534 +#define GL_SUBGROUP_QUAD_ALL_STAGES_KHR 0x9535 +#define GL_SUBGROUP_FEATURE_BASIC_BIT_KHR 0x00000001 +#define GL_SUBGROUP_FEATURE_VOTE_BIT_KHR 0x00000002 +#define GL_SUBGROUP_FEATURE_ARITHMETIC_BIT_KHR 0x00000004 +#define GL_SUBGROUP_FEATURE_BALLOT_BIT_KHR 0x00000008 +#define GL_SUBGROUP_FEATURE_SHUFFLE_BIT_KHR 0x00000010 +#define GL_SUBGROUP_FEATURE_SHUFFLE_RELATIVE_BIT_KHR 0x00000020 +#define GL_SUBGROUP_FEATURE_CLUSTERED_BIT_KHR 0x00000040 +#define GL_SUBGROUP_FEATURE_QUAD_BIT_KHR 0x00000080 +#endif /* GL_KHR_shader_subgroup */ + +#ifndef GL_KHR_texture_compression_astc_hdr +#define GL_KHR_texture_compression_astc_hdr 1 +#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0 +#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1 +#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2 +#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3 +#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4 +#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5 +#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6 +#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7 +#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8 +#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9 +#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA +#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB +#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC +#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD +#endif /* GL_KHR_texture_compression_astc_hdr */ + +#ifndef GL_KHR_texture_compression_astc_ldr +#define GL_KHR_texture_compression_astc_ldr 1 +#endif /* GL_KHR_texture_compression_astc_ldr */ + +#ifndef GL_KHR_texture_compression_astc_sliced_3d +#define GL_KHR_texture_compression_astc_sliced_3d 1 +#endif /* GL_KHR_texture_compression_astc_sliced_3d */ + +#ifndef GL_AMD_framebuffer_multisample_advanced +#define GL_AMD_framebuffer_multisample_advanced 1 +#define GL_RENDERBUFFER_STORAGE_SAMPLES_AMD 0x91B2 +#define GL_MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD 0x91B3 +#define GL_MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD 0x91B4 +#define GL_MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD 0x91B5 +#define GL_NUM_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B6 +#define GL_SUPPORTED_MULTISAMPLE_MODES_AMD 0x91B7 +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC) (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRenderbufferStorageMultisampleAdvancedAMD (GLenum target, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleAdvancedAMD (GLuint renderbuffer, GLsizei samples, GLsizei storageSamples, GLenum internalformat, GLsizei width, GLsizei height); +#endif +#endif /* GL_AMD_framebuffer_multisample_advanced */ + +#ifndef GL_AMD_performance_monitor +#define GL_AMD_performance_monitor 1 +#define GL_COUNTER_TYPE_AMD 0x8BC0 +#define GL_COUNTER_RANGE_AMD 0x8BC1 +#define GL_UNSIGNED_INT64_AMD 0x8BC2 +#define GL_PERCENTAGE_AMD 0x8BC3 +#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 +#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 +#define GL_PERFMON_RESULT_AMD 0x8BC6 +typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); +typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data); +typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); +typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors); +typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); +typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); +typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups); +GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); +GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); +GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); +GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data); +GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors); +GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors); +GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); +GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor); +GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor); +GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); +#endif +#endif /* GL_AMD_performance_monitor */ + +#ifndef GL_APPLE_rgb_422 +#define GL_APPLE_rgb_422 1 +#define GL_RGB_422_APPLE 0x8A1F +#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB +#define GL_RGB_RAW_422_APPLE 0x8A51 +#endif /* GL_APPLE_rgb_422 */ + +#ifndef GL_EXT_EGL_image_storage +#define GL_EXT_EGL_image_storage 1 +typedef void *GLeglImageOES; +typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC) (GLenum target, GLeglImageOES image, const GLint* attrib_list); +typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC) (GLuint texture, GLeglImageOES image, const GLint* attrib_list); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glEGLImageTargetTexStorageEXT (GLenum target, GLeglImageOES image, const GLint* attrib_list); +GLAPI void APIENTRY glEGLImageTargetTextureStorageEXT (GLuint texture, GLeglImageOES image, const GLint* attrib_list); +#endif +#endif /* GL_EXT_EGL_image_storage */ + +#ifndef GL_EXT_EGL_sync +#define GL_EXT_EGL_sync 1 +#endif /* GL_EXT_EGL_sync */ + +#ifndef GL_EXT_debug_label +#define GL_EXT_debug_label 1 +#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F +#define GL_PROGRAM_OBJECT_EXT 0x8B40 +#define GL_SHADER_OBJECT_EXT 0x8B48 +#define GL_BUFFER_OBJECT_EXT 0x9151 +#define GL_QUERY_OBJECT_EXT 0x9153 +#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154 +typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label); +typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label); +GLAPI void APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); +#endif +#endif /* GL_EXT_debug_label */ + +#ifndef GL_EXT_debug_marker +#define GL_EXT_debug_marker 1 +typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker); +typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker); +typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker); +GLAPI void APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker); +GLAPI void APIENTRY glPopGroupMarkerEXT (void); +#endif +#endif /* GL_EXT_debug_marker */ + +#ifndef GL_EXT_direct_state_access +#define GL_EXT_direct_state_access 1 +#define GL_PROGRAM_MATRIX_EXT 0x8E2D +#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E +#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F +typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC) (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC) (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC) (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC) (GLenum mode); +typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer); +typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); +typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); +typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); +typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); +typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat *data); +typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble *data); +typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, void **data); +typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); +typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLint *data); +typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum target, GLuint index, GLboolean *data); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint lod, void *img); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint lod, void *img); +typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum mode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum mode, const GLdouble *m); +typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); +typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void **params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint *params); +typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); +typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble *params); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void *string); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); +typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); +typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); +typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs); +typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); +typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); +typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); +typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, void **param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param); +typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); +typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC) (GLuint vaobj, GLuint index, GLuint divisor); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMatrixLoadfEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoaddEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glMatrixMultfEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMultdEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glMatrixLoadIdentityEXT (GLenum mode); +GLAPI void APIENTRY glMatrixRotatefEXT (GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glMatrixRotatedEXT (GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glMatrixScalefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glMatrixScaledEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glMatrixTranslatefEXT (GLenum mode, GLfloat x, GLfloat y, GLfloat z); +GLAPI void APIENTRY glMatrixTranslatedEXT (GLenum mode, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glMatrixFrustumEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +GLAPI void APIENTRY glMatrixOrthoEXT (GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +GLAPI void APIENTRY glMatrixPopEXT (GLenum mode); +GLAPI void APIENTRY glMatrixPushEXT (GLenum mode); +GLAPI void APIENTRY glClientAttribDefaultEXT (GLbitfield mask); +GLAPI void APIENTRY glPushClientAttribDefaultEXT (GLbitfield mask); +GLAPI void APIENTRY glTextureParameterfEXT (GLuint texture, GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glTextureParameteriEXT (GLuint texture, GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +GLAPI void APIENTRY glCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +GLAPI void APIENTRY glCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetTextureImageEXT (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetTextureParameterfvEXT (GLuint texture, GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureParameterivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureLevelParameterfvEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetTextureLevelParameterivEXT (GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); +GLAPI void APIENTRY glTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture); +GLAPI void APIENTRY glMultiTexCoordPointerEXT (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer); +GLAPI void APIENTRY glMultiTexEnvfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glMultiTexEnviEXT (GLenum texunit, GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glMultiTexGendEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); +GLAPI void APIENTRY glMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); +GLAPI void APIENTRY glMultiTexGenfEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); +GLAPI void APIENTRY glMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glMultiTexGeniEXT (GLenum texunit, GLenum coord, GLenum pname, GLint param); +GLAPI void APIENTRY glMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, const GLint *params); +GLAPI void APIENTRY glGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); +GLAPI void APIENTRY glGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params); +GLAPI void APIENTRY glMultiTexParameteriEXT (GLenum texunit, GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glMultiTexParameterfEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat param); +GLAPI void APIENTRY glMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); +GLAPI void APIENTRY glCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +GLAPI void APIENTRY glCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +GLAPI void APIENTRY glCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); +GLAPI void APIENTRY glGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); +GLAPI void APIENTRY glGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); +GLAPI void APIENTRY glMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glEnableClientStateIndexedEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glDisableClientStateIndexedEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glGetFloatIndexedvEXT (GLenum target, GLuint index, GLfloat *data); +GLAPI void APIENTRY glGetDoubleIndexedvEXT (GLenum target, GLuint index, GLdouble *data); +GLAPI void APIENTRY glGetPointerIndexedvEXT (GLenum target, GLuint index, void **data); +GLAPI void APIENTRY glEnableIndexedEXT (GLenum target, GLuint index); +GLAPI void APIENTRY glDisableIndexedEXT (GLenum target, GLuint index); +GLAPI GLboolean APIENTRY glIsEnabledIndexedEXT (GLenum target, GLuint index); +GLAPI void APIENTRY glGetIntegerIndexedvEXT (GLenum target, GLuint index, GLint *data); +GLAPI void APIENTRY glGetBooleanIndexedvEXT (GLenum target, GLuint index, GLboolean *data); +GLAPI void APIENTRY glCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, void *img); +GLAPI void APIENTRY glCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); +GLAPI void APIENTRY glGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, void *img); +GLAPI void APIENTRY glMatrixLoadTransposefEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoadTransposedEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glMatrixMultTransposefEXT (GLenum mode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMultTransposedEXT (GLenum mode, const GLdouble *m); +GLAPI void APIENTRY glNamedBufferDataEXT (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); +GLAPI void *APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access); +GLAPI GLboolean APIENTRY glUnmapNamedBufferEXT (GLuint buffer); +GLAPI void APIENTRY glGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, void **params); +GLAPI void APIENTRY glGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); +GLAPI void APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0); +GLAPI void APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1); +GLAPI void APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); +GLAPI void APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); +GLAPI void APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0); +GLAPI void APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1); +GLAPI void APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +GLAPI void APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +GLAPI void APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value); +GLAPI void APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value); +GLAPI void APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glTextureBufferEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glMultiTexBufferEXT (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); +GLAPI void APIENTRY glTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glGetTextureParameterIivEXT (GLuint texture, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetTextureParameterIuivEXT (GLuint texture, GLenum target, GLenum pname, GLuint *params); +GLAPI void APIENTRY glMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, const GLint *params); +GLAPI void APIENTRY glMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, const GLuint *params); +GLAPI void APIENTRY glGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params); +GLAPI void APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0); +GLAPI void APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1); +GLAPI void APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +GLAPI void APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +GLAPI void APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value); +GLAPI void APIENTRY glNamedProgramLocalParameters4fvEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); +GLAPI void APIENTRY glNamedProgramLocalParameterI4iEXT (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); +GLAPI void APIENTRY glNamedProgramLocalParameterI4ivEXT (GLuint program, GLenum target, GLuint index, const GLint *params); +GLAPI void APIENTRY glNamedProgramLocalParametersI4ivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); +GLAPI void APIENTRY glNamedProgramLocalParameterI4uiEXT (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +GLAPI void APIENTRY glNamedProgramLocalParameterI4uivEXT (GLuint program, GLenum target, GLuint index, const GLuint *params); +GLAPI void APIENTRY glNamedProgramLocalParametersI4uivEXT (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params); +GLAPI void APIENTRY glEnableClientStateiEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glDisableClientStateiEXT (GLenum array, GLuint index); +GLAPI void APIENTRY glGetFloati_vEXT (GLenum pname, GLuint index, GLfloat *params); +GLAPI void APIENTRY glGetDoublei_vEXT (GLenum pname, GLuint index, GLdouble *params); +GLAPI void APIENTRY glGetPointeri_vEXT (GLenum pname, GLuint index, void **params); +GLAPI void APIENTRY glNamedProgramStringEXT (GLuint program, GLenum target, GLenum format, GLsizei len, const void *string); +GLAPI void APIENTRY glNamedProgramLocalParameter4dEXT (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glNamedProgramLocalParameter4dvEXT (GLuint program, GLenum target, GLuint index, const GLdouble *params); +GLAPI void APIENTRY glNamedProgramLocalParameter4fEXT (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); +GLAPI void APIENTRY glNamedProgramLocalParameter4fvEXT (GLuint program, GLenum target, GLuint index, const GLfloat *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params); +GLAPI void APIENTRY glGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params); +GLAPI void APIENTRY glGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, void *string); +GLAPI void APIENTRY glNamedRenderbufferStorageEXT (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleEXT (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glNamedRenderbufferStorageMultisampleCoverageEXT (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI GLenum APIENTRY glCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target); +GLAPI void APIENTRY glNamedFramebufferTexture1DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTexture2DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTexture3DEXT (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); +GLAPI void APIENTRY glNamedFramebufferRenderbufferEXT (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); +GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); +GLAPI void APIENTRY glGenerateTextureMipmapEXT (GLuint texture, GLenum target); +GLAPI void APIENTRY glGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target); +GLAPI void APIENTRY glFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode); +GLAPI void APIENTRY glFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs); +GLAPI void APIENTRY glFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode); +GLAPI void APIENTRY glGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glNamedCopyBufferSubDataEXT (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); +GLAPI void APIENTRY glNamedFramebufferTextureEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); +GLAPI void APIENTRY glNamedFramebufferTextureLayerEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); +GLAPI void APIENTRY glNamedFramebufferTextureFaceEXT (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); +GLAPI void APIENTRY glTextureRenderbufferEXT (GLuint texture, GLenum target, GLuint renderbuffer); +GLAPI void APIENTRY glMultiTexRenderbufferEXT (GLenum texunit, GLenum target, GLuint renderbuffer); +GLAPI void APIENTRY glVertexArrayVertexOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayEdgeFlagOffsetEXT (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayIndexOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayNormalOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayMultiTexCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayFogCoordOffsetEXT (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArraySecondaryColorOffsetEXT (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayVertexAttribOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glVertexArrayVertexAttribIOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glEnableVertexArrayEXT (GLuint vaobj, GLenum array); +GLAPI void APIENTRY glDisableVertexArrayEXT (GLuint vaobj, GLenum array); +GLAPI void APIENTRY glEnableVertexArrayAttribEXT (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glDisableVertexArrayAttribEXT (GLuint vaobj, GLuint index); +GLAPI void APIENTRY glGetVertexArrayIntegervEXT (GLuint vaobj, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayPointervEXT (GLuint vaobj, GLenum pname, void **param); +GLAPI void APIENTRY glGetVertexArrayIntegeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +GLAPI void APIENTRY glGetVertexArrayPointeri_vEXT (GLuint vaobj, GLuint index, GLenum pname, void **param); +GLAPI void *APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); +GLAPI void APIENTRY glFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length); +GLAPI void APIENTRY glNamedBufferStorageEXT (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); +GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); +GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param); +GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params); +GLAPI void APIENTRY glProgramUniform1dEXT (GLuint program, GLint location, GLdouble x); +GLAPI void APIENTRY glProgramUniform2dEXT (GLuint program, GLint location, GLdouble x, GLdouble y); +GLAPI void APIENTRY glProgramUniform3dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); +GLAPI void APIENTRY glProgramUniform4dEXT (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); +GLAPI void APIENTRY glProgramUniform1dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform2dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform3dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniform4dvEXT (GLuint program, GLint location, GLsizei count, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix2x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix3x4dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x2dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glProgramUniformMatrix4x3dvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); +GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); +GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); +GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); +GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); +GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex); +GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor); +GLAPI void APIENTRY glVertexArrayVertexAttribLOffsetEXT (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); +GLAPI void APIENTRY glTexturePageCommitmentEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); +GLAPI void APIENTRY glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor); +#endif +#endif /* GL_EXT_direct_state_access */ + +#ifndef GL_EXT_draw_instanced +#define GL_EXT_draw_instanced 1 +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount); +GLAPI void APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); +#endif +#endif /* GL_EXT_draw_instanced */ + +#ifndef GL_EXT_multiview_tessellation_geometry_shader +#define GL_EXT_multiview_tessellation_geometry_shader 1 +#endif /* GL_EXT_multiview_tessellation_geometry_shader */ + +#ifndef GL_EXT_multiview_texture_multisample +#define GL_EXT_multiview_texture_multisample 1 +#endif /* GL_EXT_multiview_texture_multisample */ + +#ifndef GL_EXT_multiview_timer_query +#define GL_EXT_multiview_timer_query 1 +#endif /* GL_EXT_multiview_timer_query */ + +#ifndef GL_EXT_polygon_offset_clamp +#define GL_EXT_polygon_offset_clamp 1 +#define GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B +typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp); +#endif +#endif /* GL_EXT_polygon_offset_clamp */ + +#ifndef GL_EXT_post_depth_coverage +#define GL_EXT_post_depth_coverage 1 +#endif /* GL_EXT_post_depth_coverage */ + +#ifndef GL_EXT_raster_multisample +#define GL_EXT_raster_multisample 1 +#define GL_RASTER_MULTISAMPLE_EXT 0x9327 +#define GL_RASTER_SAMPLES_EXT 0x9328 +#define GL_MAX_RASTER_SAMPLES_EXT 0x9329 +#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A +#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B +#define GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C +typedef void (APIENTRYP PFNGLRASTERSAMPLESEXTPROC) (GLuint samples, GLboolean fixedsamplelocations); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRasterSamplesEXT (GLuint samples, GLboolean fixedsamplelocations); +#endif +#endif /* GL_EXT_raster_multisample */ + +#ifndef GL_EXT_separate_shader_objects +#define GL_EXT_separate_shader_objects 1 +#define GL_ACTIVE_PROGRAM_EXT 0x8B8D +typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program); +typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC) (GLuint program); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const GLchar *string); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUseShaderProgramEXT (GLenum type, GLuint program); +GLAPI void APIENTRY glActiveProgramEXT (GLuint program); +GLAPI GLuint APIENTRY glCreateShaderProgramEXT (GLenum type, const GLchar *string); +#endif +#endif /* GL_EXT_separate_shader_objects */ + +#ifndef GL_EXT_shader_framebuffer_fetch +#define GL_EXT_shader_framebuffer_fetch 1 +#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52 +#endif /* GL_EXT_shader_framebuffer_fetch */ + +#ifndef GL_EXT_shader_framebuffer_fetch_non_coherent +#define GL_EXT_shader_framebuffer_fetch_non_coherent 1 +typedef void (APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferFetchBarrierEXT (void); +#endif +#endif /* GL_EXT_shader_framebuffer_fetch_non_coherent */ + +#ifndef GL_EXT_shader_integer_mix +#define GL_EXT_shader_integer_mix 1 +#endif /* GL_EXT_shader_integer_mix */ + +#ifndef GL_EXT_texture_compression_s3tc +#define GL_EXT_texture_compression_s3tc 1 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3 +#endif /* GL_EXT_texture_compression_s3tc */ + +#ifndef GL_EXT_texture_filter_minmax +#define GL_EXT_texture_filter_minmax 1 +#define GL_TEXTURE_REDUCTION_MODE_EXT 0x9366 +#define GL_WEIGHTED_AVERAGE_EXT 0x9367 +#endif /* GL_EXT_texture_filter_minmax */ + +#ifndef GL_EXT_texture_sRGB_R8 +#define GL_EXT_texture_sRGB_R8 1 +#define GL_SR8_EXT 0x8FBD +#endif /* GL_EXT_texture_sRGB_R8 */ + +#ifndef GL_EXT_texture_sRGB_RG8 +#define GL_EXT_texture_sRGB_RG8 1 +#define GL_SRG8_EXT 0x8FBE +#endif /* GL_EXT_texture_sRGB_RG8 */ + +#ifndef GL_EXT_texture_sRGB_decode +#define GL_EXT_texture_sRGB_decode 1 +#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48 +#define GL_DECODE_EXT 0x8A49 +#define GL_SKIP_DECODE_EXT 0x8A4A +#endif /* GL_EXT_texture_sRGB_decode */ + +#ifndef GL_EXT_texture_shadow_lod +#define GL_EXT_texture_shadow_lod 1 +#endif /* GL_EXT_texture_shadow_lod */ + +#ifndef GL_EXT_texture_storage +#define GL_EXT_texture_storage 1 +#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F +#define GL_ALPHA8_EXT 0x803C +#define GL_LUMINANCE8_EXT 0x8040 +#define GL_LUMINANCE8_ALPHA8_EXT 0x8045 +#define GL_RGBA32F_EXT 0x8814 +#define GL_RGB32F_EXT 0x8815 +#define GL_ALPHA32F_EXT 0x8816 +#define GL_LUMINANCE32F_EXT 0x8818 +#define GL_LUMINANCE_ALPHA32F_EXT 0x8819 +#define GL_RGBA16F_EXT 0x881A +#define GL_RGB16F_EXT 0x881B +#define GL_ALPHA16F_EXT 0x881C +#define GL_LUMINANCE16F_EXT 0x881E +#define GL_LUMINANCE_ALPHA16F_EXT 0x881F +#define GL_RGB10_A2_EXT 0x8059 +#define GL_RGB10_EXT 0x8052 +#define GL_BGRA8_EXT 0x93A1 +#define GL_R8_EXT 0x8229 +#define GL_RG8_EXT 0x822B +#define GL_R32F_EXT 0x822E +#define GL_RG32F_EXT 0x8230 +#define GL_R16F_EXT 0x822D +#define GL_RG16F_EXT 0x822F +typedef void (APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +typedef void (APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); +GLAPI void APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); +#endif +#endif /* GL_EXT_texture_storage */ + +#ifndef GL_EXT_window_rectangles +#define GL_EXT_window_rectangles 1 +#define GL_INCLUSIVE_EXT 0x8F10 +#define GL_EXCLUSIVE_EXT 0x8F11 +#define GL_WINDOW_RECTANGLE_EXT 0x8F12 +#define GL_WINDOW_RECTANGLE_MODE_EXT 0x8F13 +#define GL_MAX_WINDOW_RECTANGLES_EXT 0x8F14 +#define GL_NUM_WINDOW_RECTANGLES_EXT 0x8F15 +typedef void (APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC) (GLenum mode, GLsizei count, const GLint *box); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glWindowRectanglesEXT (GLenum mode, GLsizei count, const GLint *box); +#endif +#endif /* GL_EXT_window_rectangles */ + +#ifndef GL_INTEL_blackhole_render +#define GL_INTEL_blackhole_render 1 +#define GL_BLACKHOLE_RENDER_INTEL 0x83FC +#endif /* GL_INTEL_blackhole_render */ + +#ifndef GL_INTEL_conservative_rasterization +#define GL_INTEL_conservative_rasterization 1 +#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE +#endif /* GL_INTEL_conservative_rasterization */ + +#ifndef GL_INTEL_framebuffer_CMAA +#define GL_INTEL_framebuffer_CMAA 1 +typedef void (APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glApplyFramebufferAttachmentCMAAINTEL (void); +#endif +#endif /* GL_INTEL_framebuffer_CMAA */ + +#ifndef GL_INTEL_performance_query +#define GL_INTEL_performance_query 1 +#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000 +#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001 +#define GL_PERFQUERY_WAIT_INTEL 0x83FB +#define GL_PERFQUERY_FLUSH_INTEL 0x83FA +#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9 +#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0 +#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1 +#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2 +#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3 +#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4 +#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5 +#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8 +#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9 +#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA +#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB +#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC +#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD +#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE +#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF +#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500 +typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle); +typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle); +typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle); +typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle); +typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId); +typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId); +typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue); +typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten); +typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId); +typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle); +GLAPI void APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle); +GLAPI void APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle); +GLAPI void APIENTRY glEndPerfQueryINTEL (GLuint queryHandle); +GLAPI void APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId); +GLAPI void APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId); +GLAPI void APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue); +GLAPI void APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten); +GLAPI void APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId); +GLAPI void APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask); +#endif +#endif /* GL_INTEL_performance_query */ + +#ifndef GL_MESA_framebuffer_flip_x +#define GL_MESA_framebuffer_flip_x 1 +#define GL_FRAMEBUFFER_FLIP_X_MESA 0x8BBC +#endif /* GL_MESA_framebuffer_flip_x */ + +#ifndef GL_MESA_framebuffer_flip_y +#define GL_MESA_framebuffer_flip_y 1 +#define GL_FRAMEBUFFER_FLIP_Y_MESA 0x8BBB +typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIMESAPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVMESAPROC) (GLenum target, GLenum pname, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferParameteriMESA (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glGetFramebufferParameterivMESA (GLenum target, GLenum pname, GLint *params); +#endif +#endif /* GL_MESA_framebuffer_flip_y */ + +#ifndef GL_MESA_framebuffer_swap_xy +#define GL_MESA_framebuffer_swap_xy 1 +#define GL_FRAMEBUFFER_SWAP_XY_MESA 0x8BBD +#endif /* GL_MESA_framebuffer_swap_xy */ + +#ifndef GL_NV_bindless_multi_draw_indirect +#define GL_NV_bindless_multi_draw_indirect 1 +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); +#endif +#endif /* GL_NV_bindless_multi_draw_indirect */ + +#ifndef GL_NV_bindless_multi_draw_indirect_count +#define GL_NV_bindless_multi_draw_indirect_count 1 +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMultiDrawArraysIndirectBindlessCountNV (GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +GLAPI void APIENTRY glMultiDrawElementsIndirectBindlessCountNV (GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); +#endif +#endif /* GL_NV_bindless_multi_draw_indirect_count */ + +#ifndef GL_NV_bindless_texture +#define GL_NV_bindless_texture 1 +typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture); +typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle); +typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access); +typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle); +typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint64 APIENTRY glGetTextureHandleNV (GLuint texture); +GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler); +GLAPI void APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle); +GLAPI void APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle); +GLAPI GLuint64 APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); +GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access); +GLAPI void APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle); +GLAPI void APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value); +GLAPI void APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value); +GLAPI void APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value); +GLAPI void APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values); +GLAPI GLboolean APIENTRY glIsTextureHandleResidentNV (GLuint64 handle); +GLAPI GLboolean APIENTRY glIsImageHandleResidentNV (GLuint64 handle); +#endif +#endif /* GL_NV_bindless_texture */ + +#ifndef GL_NV_blend_equation_advanced +#define GL_NV_blend_equation_advanced 1 +#define GL_BLEND_OVERLAP_NV 0x9281 +#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280 +#define GL_BLUE_NV 0x1905 +#define GL_COLORBURN_NV 0x929A +#define GL_COLORDODGE_NV 0x9299 +#define GL_CONJOINT_NV 0x9284 +#define GL_CONTRAST_NV 0x92A1 +#define GL_DARKEN_NV 0x9297 +#define GL_DIFFERENCE_NV 0x929E +#define GL_DISJOINT_NV 0x9283 +#define GL_DST_ATOP_NV 0x928F +#define GL_DST_IN_NV 0x928B +#define GL_DST_NV 0x9287 +#define GL_DST_OUT_NV 0x928D +#define GL_DST_OVER_NV 0x9289 +#define GL_EXCLUSION_NV 0x92A0 +#define GL_GREEN_NV 0x1904 +#define GL_HARDLIGHT_NV 0x929B +#define GL_HARDMIX_NV 0x92A9 +#define GL_HSL_COLOR_NV 0x92AF +#define GL_HSL_HUE_NV 0x92AD +#define GL_HSL_LUMINOSITY_NV 0x92B0 +#define GL_HSL_SATURATION_NV 0x92AE +#define GL_INVERT_OVG_NV 0x92B4 +#define GL_INVERT_RGB_NV 0x92A3 +#define GL_LIGHTEN_NV 0x9298 +#define GL_LINEARBURN_NV 0x92A5 +#define GL_LINEARDODGE_NV 0x92A4 +#define GL_LINEARLIGHT_NV 0x92A7 +#define GL_MINUS_CLAMPED_NV 0x92B3 +#define GL_MINUS_NV 0x929F +#define GL_MULTIPLY_NV 0x9294 +#define GL_OVERLAY_NV 0x9296 +#define GL_PINLIGHT_NV 0x92A8 +#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2 +#define GL_PLUS_CLAMPED_NV 0x92B1 +#define GL_PLUS_DARKER_NV 0x9292 +#define GL_PLUS_NV 0x9291 +#define GL_RED_NV 0x1903 +#define GL_SCREEN_NV 0x9295 +#define GL_SOFTLIGHT_NV 0x929C +#define GL_SRC_ATOP_NV 0x928E +#define GL_SRC_IN_NV 0x928A +#define GL_SRC_NV 0x9286 +#define GL_SRC_OUT_NV 0x928C +#define GL_SRC_OVER_NV 0x9288 +#define GL_UNCORRELATED_NV 0x9282 +#define GL_VIVIDLIGHT_NV 0x92A6 +#define GL_XOR_NV 0x1506 +typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendParameteriNV (GLenum pname, GLint value); +GLAPI void APIENTRY glBlendBarrierNV (void); +#endif +#endif /* GL_NV_blend_equation_advanced */ + +#ifndef GL_NV_blend_equation_advanced_coherent +#define GL_NV_blend_equation_advanced_coherent 1 +#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285 +#endif /* GL_NV_blend_equation_advanced_coherent */ + +#ifndef GL_NV_blend_minmax_factor +#define GL_NV_blend_minmax_factor 1 +#define GL_FACTOR_MIN_AMD 0x901C +#define GL_FACTOR_MAX_AMD 0x901D +#endif /* GL_NV_blend_minmax_factor */ + +#ifndef GL_NV_clip_space_w_scaling +#define GL_NV_clip_space_w_scaling 1 +#define GL_VIEWPORT_POSITION_W_SCALE_NV 0x937C +#define GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV 0x937D +#define GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV 0x937E +typedef void (APIENTRYP PFNGLVIEWPORTPOSITIONWSCALENVPROC) (GLuint index, GLfloat xcoeff, GLfloat ycoeff); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glViewportPositionWScaleNV (GLuint index, GLfloat xcoeff, GLfloat ycoeff); +#endif +#endif /* GL_NV_clip_space_w_scaling */ + +#ifndef GL_NV_command_list +#define GL_NV_command_list 1 +#define GL_TERMINATE_SEQUENCE_COMMAND_NV 0x0000 +#define GL_NOP_COMMAND_NV 0x0001 +#define GL_DRAW_ELEMENTS_COMMAND_NV 0x0002 +#define GL_DRAW_ARRAYS_COMMAND_NV 0x0003 +#define GL_DRAW_ELEMENTS_STRIP_COMMAND_NV 0x0004 +#define GL_DRAW_ARRAYS_STRIP_COMMAND_NV 0x0005 +#define GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV 0x0006 +#define GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV 0x0007 +#define GL_ELEMENT_ADDRESS_COMMAND_NV 0x0008 +#define GL_ATTRIBUTE_ADDRESS_COMMAND_NV 0x0009 +#define GL_UNIFORM_ADDRESS_COMMAND_NV 0x000A +#define GL_BLEND_COLOR_COMMAND_NV 0x000B +#define GL_STENCIL_REF_COMMAND_NV 0x000C +#define GL_LINE_WIDTH_COMMAND_NV 0x000D +#define GL_POLYGON_OFFSET_COMMAND_NV 0x000E +#define GL_ALPHA_REF_COMMAND_NV 0x000F +#define GL_VIEWPORT_COMMAND_NV 0x0010 +#define GL_SCISSOR_COMMAND_NV 0x0011 +#define GL_FRONT_FACE_COMMAND_NV 0x0012 +typedef void (APIENTRYP PFNGLCREATESTATESNVPROC) (GLsizei n, GLuint *states); +typedef void (APIENTRYP PFNGLDELETESTATESNVPROC) (GLsizei n, const GLuint *states); +typedef GLboolean (APIENTRYP PFNGLISSTATENVPROC) (GLuint state); +typedef void (APIENTRYP PFNGLSTATECAPTURENVPROC) (GLuint state, GLenum mode); +typedef GLuint (APIENTRYP PFNGLGETCOMMANDHEADERNVPROC) (GLenum tokenID, GLuint size); +typedef GLushort (APIENTRYP PFNGLGETSTAGEINDEXNVPROC) (GLenum shadertype); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSNVPROC) (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSADDRESSNVPROC) (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESNVPROC) (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC) (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +typedef void (APIENTRYP PFNGLCREATECOMMANDLISTSNVPROC) (GLsizei n, GLuint *lists); +typedef void (APIENTRYP PFNGLDELETECOMMANDLISTSNVPROC) (GLsizei n, const GLuint *lists); +typedef GLboolean (APIENTRYP PFNGLISCOMMANDLISTNVPROC) (GLuint list); +typedef void (APIENTRYP PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC) (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +typedef void (APIENTRYP PFNGLCOMMANDLISTSEGMENTSNVPROC) (GLuint list, GLuint segments); +typedef void (APIENTRYP PFNGLCOMPILECOMMANDLISTNVPROC) (GLuint list); +typedef void (APIENTRYP PFNGLCALLCOMMANDLISTNVPROC) (GLuint list); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCreateStatesNV (GLsizei n, GLuint *states); +GLAPI void APIENTRY glDeleteStatesNV (GLsizei n, const GLuint *states); +GLAPI GLboolean APIENTRY glIsStateNV (GLuint state); +GLAPI void APIENTRY glStateCaptureNV (GLuint state, GLenum mode); +GLAPI GLuint APIENTRY glGetCommandHeaderNV (GLenum tokenID, GLuint size); +GLAPI GLushort APIENTRY glGetStageIndexNV (GLenum shadertype); +GLAPI void APIENTRY glDrawCommandsNV (GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count); +GLAPI void APIENTRY glDrawCommandsAddressNV (GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count); +GLAPI void APIENTRY glDrawCommandsStatesNV (GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +GLAPI void APIENTRY glDrawCommandsStatesAddressNV (const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +GLAPI void APIENTRY glCreateCommandListsNV (GLsizei n, GLuint *lists); +GLAPI void APIENTRY glDeleteCommandListsNV (GLsizei n, const GLuint *lists); +GLAPI GLboolean APIENTRY glIsCommandListNV (GLuint list); +GLAPI void APIENTRY glListDrawCommandsStatesClientNV (GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); +GLAPI void APIENTRY glCommandListSegmentsNV (GLuint list, GLuint segments); +GLAPI void APIENTRY glCompileCommandListNV (GLuint list); +GLAPI void APIENTRY glCallCommandListNV (GLuint list); +#endif +#endif /* GL_NV_command_list */ + +#ifndef GL_NV_compute_shader_derivatives +#define GL_NV_compute_shader_derivatives 1 +#endif /* GL_NV_compute_shader_derivatives */ + +#ifndef GL_NV_conditional_render +#define GL_NV_conditional_render 1 +#define GL_QUERY_WAIT_NV 0x8E13 +#define GL_QUERY_NO_WAIT_NV 0x8E14 +#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15 +#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16 +typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); +typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode); +GLAPI void APIENTRY glEndConditionalRenderNV (void); +#endif +#endif /* GL_NV_conditional_render */ + +#ifndef GL_NV_conservative_raster +#define GL_NV_conservative_raster 1 +#define GL_CONSERVATIVE_RASTERIZATION_NV 0x9346 +#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347 +#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348 +#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349 +typedef void (APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC) (GLuint xbits, GLuint ybits); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glSubpixelPrecisionBiasNV (GLuint xbits, GLuint ybits); +#endif +#endif /* GL_NV_conservative_raster */ + +#ifndef GL_NV_conservative_raster_dilate +#define GL_NV_conservative_raster_dilate 1 +#define GL_CONSERVATIVE_RASTER_DILATE_NV 0x9379 +#define GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV 0x937A +#define GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV 0x937B +typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERFNVPROC) (GLenum pname, GLfloat value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glConservativeRasterParameterfNV (GLenum pname, GLfloat value); +#endif +#endif /* GL_NV_conservative_raster_dilate */ + +#ifndef GL_NV_conservative_raster_pre_snap +#define GL_NV_conservative_raster_pre_snap 1 +#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV 0x9550 +#endif /* GL_NV_conservative_raster_pre_snap */ + +#ifndef GL_NV_conservative_raster_pre_snap_triangles +#define GL_NV_conservative_raster_pre_snap_triangles 1 +#define GL_CONSERVATIVE_RASTER_MODE_NV 0x954D +#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E +#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F +typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC) (GLenum pname, GLint param); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glConservativeRasterParameteriNV (GLenum pname, GLint param); +#endif +#endif /* GL_NV_conservative_raster_pre_snap_triangles */ + +#ifndef GL_NV_conservative_raster_underestimation +#define GL_NV_conservative_raster_underestimation 1 +#endif /* GL_NV_conservative_raster_underestimation */ + +#ifndef GL_NV_depth_buffer_float +#define GL_NV_depth_buffer_float 1 +#define GL_DEPTH_COMPONENT32F_NV 0x8DAB +#define GL_DEPTH32F_STENCIL8_NV 0x8DAC +#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD +#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF +typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); +typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); +typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDepthRangedNV (GLdouble zNear, GLdouble zFar); +GLAPI void APIENTRY glClearDepthdNV (GLdouble depth); +GLAPI void APIENTRY glDepthBoundsdNV (GLdouble zmin, GLdouble zmax); +#endif +#endif /* GL_NV_depth_buffer_float */ + +#ifndef GL_NV_draw_vulkan_image +#define GL_NV_draw_vulkan_image 1 +typedef void (APIENTRY *GLVULKANPROCNV)(void); +typedef void (APIENTRYP PFNGLDRAWVKIMAGENVPROC) (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); +typedef GLVULKANPROCNV (APIENTRYP PFNGLGETVKPROCADDRNVPROC) (const GLchar *name); +typedef void (APIENTRYP PFNGLWAITVKSEMAPHORENVPROC) (GLuint64 vkSemaphore); +typedef void (APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC) (GLuint64 vkSemaphore); +typedef void (APIENTRYP PFNGLSIGNALVKFENCENVPROC) (GLuint64 vkFence); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawVkImageNV (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); +GLAPI GLVULKANPROCNV APIENTRY glGetVkProcAddrNV (const GLchar *name); +GLAPI void APIENTRY glWaitVkSemaphoreNV (GLuint64 vkSemaphore); +GLAPI void APIENTRY glSignalVkSemaphoreNV (GLuint64 vkSemaphore); +GLAPI void APIENTRY glSignalVkFenceNV (GLuint64 vkFence); +#endif +#endif /* GL_NV_draw_vulkan_image */ + +#ifndef GL_NV_fill_rectangle +#define GL_NV_fill_rectangle 1 +#define GL_FILL_RECTANGLE_NV 0x933C +#endif /* GL_NV_fill_rectangle */ + +#ifndef GL_NV_fragment_coverage_to_color +#define GL_NV_fragment_coverage_to_color 1 +#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD +#define GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE +typedef void (APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC) (GLuint color); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFragmentCoverageColorNV (GLuint color); +#endif +#endif /* GL_NV_fragment_coverage_to_color */ + +#ifndef GL_NV_fragment_shader_barycentric +#define GL_NV_fragment_shader_barycentric 1 +#endif /* GL_NV_fragment_shader_barycentric */ + +#ifndef GL_NV_fragment_shader_interlock +#define GL_NV_fragment_shader_interlock 1 +#endif /* GL_NV_fragment_shader_interlock */ + +#ifndef GL_NV_framebuffer_mixed_samples +#define GL_NV_framebuffer_mixed_samples 1 +#define GL_COVERAGE_MODULATION_TABLE_NV 0x9331 +#define GL_COLOR_SAMPLES_NV 0x8E20 +#define GL_DEPTH_SAMPLES_NV 0x932D +#define GL_STENCIL_SAMPLES_NV 0x932E +#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F +#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330 +#define GL_COVERAGE_MODULATION_NV 0x9332 +#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333 +typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC) (GLsizei n, const GLfloat *v); +typedef void (APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC) (GLsizei bufSize, GLfloat *v); +typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC) (GLenum components); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glCoverageModulationTableNV (GLsizei n, const GLfloat *v); +GLAPI void APIENTRY glGetCoverageModulationTableNV (GLsizei bufSize, GLfloat *v); +GLAPI void APIENTRY glCoverageModulationNV (GLenum components); +#endif +#endif /* GL_NV_framebuffer_mixed_samples */ + +#ifndef GL_NV_framebuffer_multisample_coverage +#define GL_NV_framebuffer_multisample_coverage 1 +#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB +#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 +#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 +#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 +typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glRenderbufferStorageMultisampleCoverageNV (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); +#endif +#endif /* GL_NV_framebuffer_multisample_coverage */ + +#ifndef GL_NV_geometry_shader_passthrough +#define GL_NV_geometry_shader_passthrough 1 +#endif /* GL_NV_geometry_shader_passthrough */ + +#ifndef GL_NV_gpu_shader5 +#define GL_NV_gpu_shader5 1 +typedef khronos_int64_t GLint64EXT; +#define GL_INT64_NV 0x140E +#define GL_UNSIGNED_INT64_NV 0x140F +#define GL_INT8_NV 0x8FE0 +#define GL_INT8_VEC2_NV 0x8FE1 +#define GL_INT8_VEC3_NV 0x8FE2 +#define GL_INT8_VEC4_NV 0x8FE3 +#define GL_INT16_NV 0x8FE4 +#define GL_INT16_VEC2_NV 0x8FE5 +#define GL_INT16_VEC3_NV 0x8FE6 +#define GL_INT16_VEC4_NV 0x8FE7 +#define GL_INT64_VEC2_NV 0x8FE9 +#define GL_INT64_VEC3_NV 0x8FEA +#define GL_INT64_VEC4_NV 0x8FEB +#define GL_UNSIGNED_INT8_NV 0x8FEC +#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED +#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE +#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF +#define GL_UNSIGNED_INT16_NV 0x8FF0 +#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1 +#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2 +#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3 +#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5 +#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6 +#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7 +#define GL_FLOAT16_NV 0x8FF8 +#define GL_FLOAT16_VEC2_NV 0x8FF9 +#define GL_FLOAT16_VEC3_NV 0x8FFA +#define GL_FLOAT16_VEC4_NV 0x8FFB +typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x); +typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y); +typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x); +typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y); +typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x); +GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y); +GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x); +GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y); +GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params); +GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x); +GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); +GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); +GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value); +GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x); +GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); +GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#endif +#endif /* GL_NV_gpu_shader5 */ + +#ifndef GL_NV_internalformat_sample_query +#define GL_NV_internalformat_sample_query 1 +#define GL_MULTISAMPLES_NV 0x9371 +#define GL_SUPERSAMPLE_SCALE_X_NV 0x9372 +#define GL_SUPERSAMPLE_SCALE_Y_NV 0x9373 +#define GL_CONFORMANT_NV 0x9374 +typedef void (APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC) (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei count, GLint *params); +#endif +#endif /* GL_NV_internalformat_sample_query */ + +#ifndef GL_NV_memory_attachment +#define GL_NV_memory_attachment 1 +#define GL_ATTACHED_MEMORY_OBJECT_NV 0x95A4 +#define GL_ATTACHED_MEMORY_OFFSET_NV 0x95A5 +#define GL_MEMORY_ATTACHABLE_ALIGNMENT_NV 0x95A6 +#define GL_MEMORY_ATTACHABLE_SIZE_NV 0x95A7 +#define GL_MEMORY_ATTACHABLE_NV 0x95A8 +#define GL_DETACHED_MEMORY_INCARNATION_NV 0x95A9 +#define GL_DETACHED_TEXTURES_NV 0x95AA +#define GL_DETACHED_BUFFERS_NV 0x95AB +#define GL_MAX_DETACHED_TEXTURES_NV 0x95AC +#define GL_MAX_DETACHED_BUFFERS_NV 0x95AD +typedef void (APIENTRYP PFNGLGETMEMORYOBJECTDETACHEDRESOURCESUIVNVPROC) (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params); +typedef void (APIENTRYP PFNGLRESETMEMORYOBJECTPARAMETERNVPROC) (GLuint memory, GLenum pname); +typedef void (APIENTRYP PFNGLTEXATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset); +typedef void (APIENTRYP PFNGLBUFFERATTACHMEMORYNVPROC) (GLenum target, GLuint memory, GLuint64 offset); +typedef void (APIENTRYP PFNGLTEXTUREATTACHMEMORYNVPROC) (GLuint texture, GLuint memory, GLuint64 offset); +typedef void (APIENTRYP PFNGLNAMEDBUFFERATTACHMEMORYNVPROC) (GLuint buffer, GLuint memory, GLuint64 offset); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGetMemoryObjectDetachedResourcesuivNV (GLuint memory, GLenum pname, GLint first, GLsizei count, GLuint *params); +GLAPI void APIENTRY glResetMemoryObjectParameterNV (GLuint memory, GLenum pname); +GLAPI void APIENTRY glTexAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset); +GLAPI void APIENTRY glBufferAttachMemoryNV (GLenum target, GLuint memory, GLuint64 offset); +GLAPI void APIENTRY glTextureAttachMemoryNV (GLuint texture, GLuint memory, GLuint64 offset); +GLAPI void APIENTRY glNamedBufferAttachMemoryNV (GLuint buffer, GLuint memory, GLuint64 offset); +#endif +#endif /* GL_NV_memory_attachment */ + +#ifndef GL_NV_memory_object_sparse +#define GL_NV_memory_object_sparse 1 +typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTMEMNVPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTMEMNVPROC) (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTMEMNVPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTMEMNVPROC) (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferPageCommitmentMemNV (GLenum target, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +GLAPI void APIENTRY glTexPageCommitmentMemNV (GLenum target, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +GLAPI void APIENTRY glNamedBufferPageCommitmentMemNV (GLuint buffer, GLintptr offset, GLsizeiptr size, GLuint memory, GLuint64 memOffset, GLboolean commit); +GLAPI void APIENTRY glTexturePageCommitmentMemNV (GLuint texture, GLint layer, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset, GLboolean commit); +#endif +#endif /* GL_NV_memory_object_sparse */ + +#ifndef GL_NV_mesh_shader +#define GL_NV_mesh_shader 1 +#define GL_MESH_SHADER_NV 0x9559 +#define GL_TASK_SHADER_NV 0x955A +#define GL_MAX_MESH_UNIFORM_BLOCKS_NV 0x8E60 +#define GL_MAX_MESH_TEXTURE_IMAGE_UNITS_NV 0x8E61 +#define GL_MAX_MESH_IMAGE_UNIFORMS_NV 0x8E62 +#define GL_MAX_MESH_UNIFORM_COMPONENTS_NV 0x8E63 +#define GL_MAX_MESH_ATOMIC_COUNTER_BUFFERS_NV 0x8E64 +#define GL_MAX_MESH_ATOMIC_COUNTERS_NV 0x8E65 +#define GL_MAX_MESH_SHADER_STORAGE_BLOCKS_NV 0x8E66 +#define GL_MAX_COMBINED_MESH_UNIFORM_COMPONENTS_NV 0x8E67 +#define GL_MAX_TASK_UNIFORM_BLOCKS_NV 0x8E68 +#define GL_MAX_TASK_TEXTURE_IMAGE_UNITS_NV 0x8E69 +#define GL_MAX_TASK_IMAGE_UNIFORMS_NV 0x8E6A +#define GL_MAX_TASK_UNIFORM_COMPONENTS_NV 0x8E6B +#define GL_MAX_TASK_ATOMIC_COUNTER_BUFFERS_NV 0x8E6C +#define GL_MAX_TASK_ATOMIC_COUNTERS_NV 0x8E6D +#define GL_MAX_TASK_SHADER_STORAGE_BLOCKS_NV 0x8E6E +#define GL_MAX_COMBINED_TASK_UNIFORM_COMPONENTS_NV 0x8E6F +#define GL_MAX_MESH_WORK_GROUP_INVOCATIONS_NV 0x95A2 +#define GL_MAX_TASK_WORK_GROUP_INVOCATIONS_NV 0x95A3 +#define GL_MAX_MESH_TOTAL_MEMORY_SIZE_NV 0x9536 +#define GL_MAX_TASK_TOTAL_MEMORY_SIZE_NV 0x9537 +#define GL_MAX_MESH_OUTPUT_VERTICES_NV 0x9538 +#define GL_MAX_MESH_OUTPUT_PRIMITIVES_NV 0x9539 +#define GL_MAX_TASK_OUTPUT_COUNT_NV 0x953A +#define GL_MAX_DRAW_MESH_TASKS_COUNT_NV 0x953D +#define GL_MAX_MESH_VIEWS_NV 0x9557 +#define GL_MESH_OUTPUT_PER_VERTEX_GRANULARITY_NV 0x92DF +#define GL_MESH_OUTPUT_PER_PRIMITIVE_GRANULARITY_NV 0x9543 +#define GL_MAX_MESH_WORK_GROUP_SIZE_NV 0x953B +#define GL_MAX_TASK_WORK_GROUP_SIZE_NV 0x953C +#define GL_MESH_WORK_GROUP_SIZE_NV 0x953E +#define GL_TASK_WORK_GROUP_SIZE_NV 0x953F +#define GL_MESH_VERTICES_OUT_NV 0x9579 +#define GL_MESH_PRIMITIVES_OUT_NV 0x957A +#define GL_MESH_OUTPUT_TYPE_NV 0x957B +#define GL_UNIFORM_BLOCK_REFERENCED_BY_MESH_SHADER_NV 0x959C +#define GL_UNIFORM_BLOCK_REFERENCED_BY_TASK_SHADER_NV 0x959D +#define GL_REFERENCED_BY_MESH_SHADER_NV 0x95A0 +#define GL_REFERENCED_BY_TASK_SHADER_NV 0x95A1 +#define GL_MESH_SHADER_BIT_NV 0x00000040 +#define GL_TASK_SHADER_BIT_NV 0x00000080 +#define GL_MESH_SUBROUTINE_NV 0x957C +#define GL_TASK_SUBROUTINE_NV 0x957D +#define GL_MESH_SUBROUTINE_UNIFORM_NV 0x957E +#define GL_TASK_SUBROUTINE_UNIFORM_NV 0x957F +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_MESH_SHADER_NV 0x959E +#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TASK_SHADER_NV 0x959F +typedef void (APIENTRYP PFNGLDRAWMESHTASKSNVPROC) (GLuint first, GLuint count); +typedef void (APIENTRYP PFNGLDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect); +typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTNVPROC) (GLintptr indirect, GLsizei drawcount, GLsizei stride); +typedef void (APIENTRYP PFNGLMULTIDRAWMESHTASKSINDIRECTCOUNTNVPROC) (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawMeshTasksNV (GLuint first, GLuint count); +GLAPI void APIENTRY glDrawMeshTasksIndirectNV (GLintptr indirect); +GLAPI void APIENTRY glMultiDrawMeshTasksIndirectNV (GLintptr indirect, GLsizei drawcount, GLsizei stride); +GLAPI void APIENTRY glMultiDrawMeshTasksIndirectCountNV (GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); +#endif +#endif /* GL_NV_mesh_shader */ + +#ifndef GL_NV_path_rendering +#define GL_NV_path_rendering 1 +#define GL_PATH_FORMAT_SVG_NV 0x9070 +#define GL_PATH_FORMAT_PS_NV 0x9071 +#define GL_STANDARD_FONT_NAME_NV 0x9072 +#define GL_SYSTEM_FONT_NAME_NV 0x9073 +#define GL_FILE_NAME_NV 0x9074 +#define GL_PATH_STROKE_WIDTH_NV 0x9075 +#define GL_PATH_END_CAPS_NV 0x9076 +#define GL_PATH_INITIAL_END_CAP_NV 0x9077 +#define GL_PATH_TERMINAL_END_CAP_NV 0x9078 +#define GL_PATH_JOIN_STYLE_NV 0x9079 +#define GL_PATH_MITER_LIMIT_NV 0x907A +#define GL_PATH_DASH_CAPS_NV 0x907B +#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C +#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D +#define GL_PATH_DASH_OFFSET_NV 0x907E +#define GL_PATH_CLIENT_LENGTH_NV 0x907F +#define GL_PATH_FILL_MODE_NV 0x9080 +#define GL_PATH_FILL_MASK_NV 0x9081 +#define GL_PATH_FILL_COVER_MODE_NV 0x9082 +#define GL_PATH_STROKE_COVER_MODE_NV 0x9083 +#define GL_PATH_STROKE_MASK_NV 0x9084 +#define GL_COUNT_UP_NV 0x9088 +#define GL_COUNT_DOWN_NV 0x9089 +#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A +#define GL_CONVEX_HULL_NV 0x908B +#define GL_BOUNDING_BOX_NV 0x908D +#define GL_TRANSLATE_X_NV 0x908E +#define GL_TRANSLATE_Y_NV 0x908F +#define GL_TRANSLATE_2D_NV 0x9090 +#define GL_TRANSLATE_3D_NV 0x9091 +#define GL_AFFINE_2D_NV 0x9092 +#define GL_AFFINE_3D_NV 0x9094 +#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096 +#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098 +#define GL_UTF8_NV 0x909A +#define GL_UTF16_NV 0x909B +#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C +#define GL_PATH_COMMAND_COUNT_NV 0x909D +#define GL_PATH_COORD_COUNT_NV 0x909E +#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F +#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0 +#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1 +#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2 +#define GL_SQUARE_NV 0x90A3 +#define GL_ROUND_NV 0x90A4 +#define GL_TRIANGULAR_NV 0x90A5 +#define GL_BEVEL_NV 0x90A6 +#define GL_MITER_REVERT_NV 0x90A7 +#define GL_MITER_TRUNCATE_NV 0x90A8 +#define GL_SKIP_MISSING_GLYPH_NV 0x90A9 +#define GL_USE_MISSING_GLYPH_NV 0x90AA +#define GL_PATH_ERROR_POSITION_NV 0x90AB +#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD +#define GL_ADJACENT_PAIRS_NV 0x90AE +#define GL_FIRST_TO_REST_NV 0x90AF +#define GL_PATH_GEN_MODE_NV 0x90B0 +#define GL_PATH_GEN_COEFF_NV 0x90B1 +#define GL_PATH_GEN_COMPONENTS_NV 0x90B3 +#define GL_PATH_STENCIL_FUNC_NV 0x90B7 +#define GL_PATH_STENCIL_REF_NV 0x90B8 +#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9 +#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD +#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE +#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF +#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4 +#define GL_MOVE_TO_RESETS_NV 0x90B5 +#define GL_MOVE_TO_CONTINUES_NV 0x90B6 +#define GL_CLOSE_PATH_NV 0x00 +#define GL_MOVE_TO_NV 0x02 +#define GL_RELATIVE_MOVE_TO_NV 0x03 +#define GL_LINE_TO_NV 0x04 +#define GL_RELATIVE_LINE_TO_NV 0x05 +#define GL_HORIZONTAL_LINE_TO_NV 0x06 +#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07 +#define GL_VERTICAL_LINE_TO_NV 0x08 +#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09 +#define GL_QUADRATIC_CURVE_TO_NV 0x0A +#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B +#define GL_CUBIC_CURVE_TO_NV 0x0C +#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D +#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E +#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F +#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10 +#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11 +#define GL_SMALL_CCW_ARC_TO_NV 0x12 +#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13 +#define GL_SMALL_CW_ARC_TO_NV 0x14 +#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15 +#define GL_LARGE_CCW_ARC_TO_NV 0x16 +#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17 +#define GL_LARGE_CW_ARC_TO_NV 0x18 +#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19 +#define GL_RESTART_PATH_NV 0xF0 +#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2 +#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4 +#define GL_RECT_NV 0xF6 +#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8 +#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA +#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC +#define GL_ARC_TO_NV 0xFE +#define GL_RELATIVE_ARC_TO_NV 0xFF +#define GL_BOLD_BIT_NV 0x01 +#define GL_ITALIC_BIT_NV 0x02 +#define GL_GLYPH_WIDTH_BIT_NV 0x01 +#define GL_GLYPH_HEIGHT_BIT_NV 0x02 +#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04 +#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08 +#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10 +#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20 +#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40 +#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80 +#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100 +#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000 +#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000 +#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000 +#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000 +#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000 +#define GL_FONT_ASCENDER_BIT_NV 0x00200000 +#define GL_FONT_DESCENDER_BIT_NV 0x00400000 +#define GL_FONT_HEIGHT_BIT_NV 0x00800000 +#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000 +#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000 +#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000 +#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000 +#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000 +#define GL_ROUNDED_RECT_NV 0xE8 +#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9 +#define GL_ROUNDED_RECT2_NV 0xEA +#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB +#define GL_ROUNDED_RECT4_NV 0xEC +#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED +#define GL_ROUNDED_RECT8_NV 0xEE +#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF +#define GL_RELATIVE_RECT_NV 0xF7 +#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368 +#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369 +#define GL_FONT_UNAVAILABLE_NV 0x936A +#define GL_FONT_UNINTELLIGIBLE_NV 0x936B +#define GL_CONIC_CURVE_TO_NV 0x1A +#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B +#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000 +#define GL_STANDARD_FONT_FORMAT_NV 0x936C +#define GL_PATH_PROJECTION_NV 0x1701 +#define GL_PATH_MODELVIEW_NV 0x1700 +#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3 +#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6 +#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36 +#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3 +#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4 +#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7 +#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38 +#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4 +#define GL_FRAGMENT_INPUT_NV 0x936D +typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range); +typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range); +typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC) (GLuint path); +typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords); +typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString); +typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights); +typedef void (APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath); +typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); +typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value); +typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value); +typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value); +typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value); +typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray); +typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask); +typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units); +typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask); +typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func); +typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode); +typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode); +typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value); +typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value); +typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands); +typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords); +typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray); +typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics); +typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics); +typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing); +typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y); +typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y); +typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments); +typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY); +typedef void (APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount); +typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef GLenum (APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +typedef void (APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs); +typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI GLuint APIENTRY glGenPathsNV (GLsizei range); +GLAPI void APIENTRY glDeletePathsNV (GLuint path, GLsizei range); +GLAPI GLboolean APIENTRY glIsPathNV (GLuint path); +GLAPI void APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords); +GLAPI void APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString); +GLAPI void APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI void APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI void APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights); +GLAPI void APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath); +GLAPI void APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); +GLAPI void APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value); +GLAPI void APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value); +GLAPI void APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value); +GLAPI void APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value); +GLAPI void APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray); +GLAPI void APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask); +GLAPI void APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units); +GLAPI void APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask); +GLAPI void APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask); +GLAPI void APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glPathCoverDepthFuncNV (GLenum func); +GLAPI void APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode); +GLAPI void APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode); +GLAPI void APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value); +GLAPI void APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value); +GLAPI void APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands); +GLAPI void APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords); +GLAPI void APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray); +GLAPI void APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics); +GLAPI void APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics); +GLAPI void APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing); +GLAPI GLboolean APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y); +GLAPI GLboolean APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y); +GLAPI GLfloat APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments); +GLAPI GLboolean APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY); +GLAPI void APIENTRY glMatrixLoad3x2fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoad3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixLoadTranspose3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMult3x2fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMult3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glMatrixMultTranspose3x3fNV (GLenum matrixMode, const GLfloat *m); +GLAPI void APIENTRY glStencilThenCoverFillPathNV (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); +GLAPI void APIENTRY glStencilThenCoverStrokePathNV (GLuint path, GLint reference, GLuint mask, GLenum coverMode); +GLAPI void APIENTRY glStencilThenCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI void APIENTRY glStencilThenCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); +GLAPI GLenum APIENTRY glPathGlyphIndexRangeNV (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint *baseAndCount); +GLAPI GLenum APIENTRY glPathGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI GLenum APIENTRY glPathMemoryGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); +GLAPI void APIENTRY glProgramPathFragmentInputGenNV (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs); +GLAPI void APIENTRY glGetProgramResourcefvNV (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLfloat *params); +#endif +#endif /* GL_NV_path_rendering */ + +#ifndef GL_NV_path_rendering_shared_edge +#define GL_NV_path_rendering_shared_edge 1 +#define GL_SHARED_EDGE_NV 0xC0 +#endif /* GL_NV_path_rendering_shared_edge */ + +#ifndef GL_NV_primitive_shading_rate +#define GL_NV_primitive_shading_rate 1 +#define GL_SHADING_RATE_IMAGE_PER_PRIMITIVE_NV 0x95B1 +#define GL_SHADING_RATE_IMAGE_PALETTE_COUNT_NV 0x95B2 +#endif /* GL_NV_primitive_shading_rate */ + +#ifndef GL_NV_representative_fragment_test +#define GL_NV_representative_fragment_test 1 +#define GL_REPRESENTATIVE_FRAGMENT_TEST_NV 0x937F +#endif /* GL_NV_representative_fragment_test */ + +#ifndef GL_NV_sample_locations +#define GL_NV_sample_locations 1 +#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D +#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E +#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340 +#define GL_SAMPLE_LOCATION_NV 0x8E50 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341 +#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342 +#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343 +typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +typedef void (APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); +GLAPI void APIENTRY glResolveDepthValuesNV (void); +#endif +#endif /* GL_NV_sample_locations */ + +#ifndef GL_NV_sample_mask_override_coverage +#define GL_NV_sample_mask_override_coverage 1 +#endif /* GL_NV_sample_mask_override_coverage */ + +#ifndef GL_NV_scissor_exclusive +#define GL_NV_scissor_exclusive 1 +#define GL_SCISSOR_TEST_EXCLUSIVE_NV 0x9555 +#define GL_SCISSOR_BOX_EXCLUSIVE_NV 0x9556 +typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVENVPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLSCISSOREXCLUSIVEARRAYVNVPROC) (GLuint first, GLsizei count, const GLint *v); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glScissorExclusiveNV (GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glScissorExclusiveArrayvNV (GLuint first, GLsizei count, const GLint *v); +#endif +#endif /* GL_NV_scissor_exclusive */ + +#ifndef GL_NV_shader_atomic_counters +#define GL_NV_shader_atomic_counters 1 +#endif /* GL_NV_shader_atomic_counters */ + +#ifndef GL_NV_shader_atomic_float +#define GL_NV_shader_atomic_float 1 +#endif /* GL_NV_shader_atomic_float */ + +#ifndef GL_NV_shader_atomic_float64 +#define GL_NV_shader_atomic_float64 1 +#endif /* GL_NV_shader_atomic_float64 */ + +#ifndef GL_NV_shader_atomic_fp16_vector +#define GL_NV_shader_atomic_fp16_vector 1 +#endif /* GL_NV_shader_atomic_fp16_vector */ + +#ifndef GL_NV_shader_atomic_int64 +#define GL_NV_shader_atomic_int64 1 +#endif /* GL_NV_shader_atomic_int64 */ + +#ifndef GL_NV_shader_buffer_load +#define GL_NV_shader_buffer_load 1 +#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D +#define GL_GPU_ADDRESS_NV 0x8F34 +#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35 +typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); +typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target); +typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC) (GLenum target); +typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); +typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer); +typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer); +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT *result); +typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value); +typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value); +typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value); +typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access); +GLAPI void APIENTRY glMakeBufferNonResidentNV (GLenum target); +GLAPI GLboolean APIENTRY glIsBufferResidentNV (GLenum target); +GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access); +GLAPI void APIENTRY glMakeNamedBufferNonResidentNV (GLuint buffer); +GLAPI GLboolean APIENTRY glIsNamedBufferResidentNV (GLuint buffer); +GLAPI void APIENTRY glGetBufferParameterui64vNV (GLenum target, GLenum pname, GLuint64EXT *params); +GLAPI void APIENTRY glGetNamedBufferParameterui64vNV (GLuint buffer, GLenum pname, GLuint64EXT *params); +GLAPI void APIENTRY glGetIntegerui64vNV (GLenum value, GLuint64EXT *result); +GLAPI void APIENTRY glUniformui64NV (GLint location, GLuint64EXT value); +GLAPI void APIENTRY glUniformui64vNV (GLint location, GLsizei count, const GLuint64EXT *value); +GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params); +GLAPI void APIENTRY glProgramUniformui64NV (GLuint program, GLint location, GLuint64EXT value); +GLAPI void APIENTRY glProgramUniformui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); +#endif +#endif /* GL_NV_shader_buffer_load */ + +#ifndef GL_NV_shader_buffer_store +#define GL_NV_shader_buffer_store 1 +#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010 +#endif /* GL_NV_shader_buffer_store */ + +#ifndef GL_NV_shader_subgroup_partitioned +#define GL_NV_shader_subgroup_partitioned 1 +#define GL_SUBGROUP_FEATURE_PARTITIONED_BIT_NV 0x00000100 +#endif /* GL_NV_shader_subgroup_partitioned */ + +#ifndef GL_NV_shader_texture_footprint +#define GL_NV_shader_texture_footprint 1 +#endif /* GL_NV_shader_texture_footprint */ + +#ifndef GL_NV_shader_thread_group +#define GL_NV_shader_thread_group 1 +#define GL_WARP_SIZE_NV 0x9339 +#define GL_WARPS_PER_SM_NV 0x933A +#define GL_SM_COUNT_NV 0x933B +#endif /* GL_NV_shader_thread_group */ + +#ifndef GL_NV_shader_thread_shuffle +#define GL_NV_shader_thread_shuffle 1 +#endif /* GL_NV_shader_thread_shuffle */ + +#ifndef GL_NV_shading_rate_image +#define GL_NV_shading_rate_image 1 +#define GL_SHADING_RATE_IMAGE_NV 0x9563 +#define GL_SHADING_RATE_NO_INVOCATIONS_NV 0x9564 +#define GL_SHADING_RATE_1_INVOCATION_PER_PIXEL_NV 0x9565 +#define GL_SHADING_RATE_1_INVOCATION_PER_1X2_PIXELS_NV 0x9566 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X1_PIXELS_NV 0x9567 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X2_PIXELS_NV 0x9568 +#define GL_SHADING_RATE_1_INVOCATION_PER_2X4_PIXELS_NV 0x9569 +#define GL_SHADING_RATE_1_INVOCATION_PER_4X2_PIXELS_NV 0x956A +#define GL_SHADING_RATE_1_INVOCATION_PER_4X4_PIXELS_NV 0x956B +#define GL_SHADING_RATE_2_INVOCATIONS_PER_PIXEL_NV 0x956C +#define GL_SHADING_RATE_4_INVOCATIONS_PER_PIXEL_NV 0x956D +#define GL_SHADING_RATE_8_INVOCATIONS_PER_PIXEL_NV 0x956E +#define GL_SHADING_RATE_16_INVOCATIONS_PER_PIXEL_NV 0x956F +#define GL_SHADING_RATE_IMAGE_BINDING_NV 0x955B +#define GL_SHADING_RATE_IMAGE_TEXEL_WIDTH_NV 0x955C +#define GL_SHADING_RATE_IMAGE_TEXEL_HEIGHT_NV 0x955D +#define GL_SHADING_RATE_IMAGE_PALETTE_SIZE_NV 0x955E +#define GL_MAX_COARSE_FRAGMENT_SAMPLES_NV 0x955F +#define GL_SHADING_RATE_SAMPLE_ORDER_DEFAULT_NV 0x95AE +#define GL_SHADING_RATE_SAMPLE_ORDER_PIXEL_MAJOR_NV 0x95AF +#define GL_SHADING_RATE_SAMPLE_ORDER_SAMPLE_MAJOR_NV 0x95B0 +typedef void (APIENTRYP PFNGLBINDSHADINGRATEIMAGENVPROC) (GLuint texture); +typedef void (APIENTRYP PFNGLGETSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint entry, GLenum *rate); +typedef void (APIENTRYP PFNGLGETSHADINGRATESAMPLELOCATIONIVNVPROC) (GLenum rate, GLuint samples, GLuint index, GLint *location); +typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEBARRIERNVPROC) (GLboolean synchronize); +typedef void (APIENTRYP PFNGLSHADINGRATEIMAGEPALETTENVPROC) (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates); +typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERNVPROC) (GLenum order); +typedef void (APIENTRYP PFNGLSHADINGRATESAMPLEORDERCUSTOMNVPROC) (GLenum rate, GLuint samples, const GLint *locations); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindShadingRateImageNV (GLuint texture); +GLAPI void APIENTRY glGetShadingRateImagePaletteNV (GLuint viewport, GLuint entry, GLenum *rate); +GLAPI void APIENTRY glGetShadingRateSampleLocationivNV (GLenum rate, GLuint samples, GLuint index, GLint *location); +GLAPI void APIENTRY glShadingRateImageBarrierNV (GLboolean synchronize); +GLAPI void APIENTRY glShadingRateImagePaletteNV (GLuint viewport, GLuint first, GLsizei count, const GLenum *rates); +GLAPI void APIENTRY glShadingRateSampleOrderNV (GLenum order); +GLAPI void APIENTRY glShadingRateSampleOrderCustomNV (GLenum rate, GLuint samples, const GLint *locations); +#endif +#endif /* GL_NV_shading_rate_image */ + +#ifndef GL_NV_stereo_view_rendering +#define GL_NV_stereo_view_rendering 1 +#endif /* GL_NV_stereo_view_rendering */ + +#ifndef GL_NV_texture_barrier +#define GL_NV_texture_barrier 1 +typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC) (void); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glTextureBarrierNV (void); +#endif +#endif /* GL_NV_texture_barrier */ + +#ifndef GL_NV_texture_rectangle_compressed +#define GL_NV_texture_rectangle_compressed 1 +#endif /* GL_NV_texture_rectangle_compressed */ + +#ifndef GL_NV_uniform_buffer_std430_layout +#define GL_NV_uniform_buffer_std430_layout 1 +#endif /* GL_NV_uniform_buffer_std430_layout */ + +#ifndef GL_NV_uniform_buffer_unified_memory +#define GL_NV_uniform_buffer_unified_memory 1 +#define GL_UNIFORM_BUFFER_UNIFIED_NV 0x936E +#define GL_UNIFORM_BUFFER_ADDRESS_NV 0x936F +#define GL_UNIFORM_BUFFER_LENGTH_NV 0x9370 +#endif /* GL_NV_uniform_buffer_unified_memory */ + +#ifndef GL_NV_vertex_attrib_integer_64bit +#define GL_NV_vertex_attrib_integer_64bit 1 +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT *v); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT *params); +typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glVertexAttribL1i64NV (GLuint index, GLint64EXT x); +GLAPI void APIENTRY glVertexAttribL2i64NV (GLuint index, GLint64EXT x, GLint64EXT y); +GLAPI void APIENTRY glVertexAttribL3i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); +GLAPI void APIENTRY glVertexAttribL4i64NV (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); +GLAPI void APIENTRY glVertexAttribL1i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL2i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL3i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL4i64vNV (GLuint index, const GLint64EXT *v); +GLAPI void APIENTRY glVertexAttribL1ui64NV (GLuint index, GLuint64EXT x); +GLAPI void APIENTRY glVertexAttribL2ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y); +GLAPI void APIENTRY glVertexAttribL3ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); +GLAPI void APIENTRY glVertexAttribL4ui64NV (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); +GLAPI void APIENTRY glVertexAttribL1ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glVertexAttribL2ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glVertexAttribL3ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glVertexAttribL4ui64vNV (GLuint index, const GLuint64EXT *v); +GLAPI void APIENTRY glGetVertexAttribLi64vNV (GLuint index, GLenum pname, GLint64EXT *params); +GLAPI void APIENTRY glGetVertexAttribLui64vNV (GLuint index, GLenum pname, GLuint64EXT *params); +GLAPI void APIENTRY glVertexAttribLFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride); +#endif +#endif /* GL_NV_vertex_attrib_integer_64bit */ + +#ifndef GL_NV_vertex_buffer_unified_memory +#define GL_NV_vertex_buffer_unified_memory 1 +#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E +#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F +#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20 +#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21 +#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22 +#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23 +#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24 +#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25 +#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26 +#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27 +#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28 +#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29 +#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A +#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B +#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C +#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D +#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E +#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F +#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30 +#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31 +#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32 +#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33 +#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40 +#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41 +#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42 +typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); +typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride); +typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); +typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); +typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBufferAddressRangeNV (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); +GLAPI void APIENTRY glVertexFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glNormalFormatNV (GLenum type, GLsizei stride); +GLAPI void APIENTRY glColorFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glIndexFormatNV (GLenum type, GLsizei stride); +GLAPI void APIENTRY glTexCoordFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glEdgeFlagFormatNV (GLsizei stride); +GLAPI void APIENTRY glSecondaryColorFormatNV (GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glFogCoordFormatNV (GLenum type, GLsizei stride); +GLAPI void APIENTRY glVertexAttribFormatNV (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); +GLAPI void APIENTRY glVertexAttribIFormatNV (GLuint index, GLint size, GLenum type, GLsizei stride); +GLAPI void APIENTRY glGetIntegerui64i_vNV (GLenum value, GLuint index, GLuint64EXT *result); +#endif +#endif /* GL_NV_vertex_buffer_unified_memory */ + +#ifndef GL_NV_viewport_array2 +#define GL_NV_viewport_array2 1 +#endif /* GL_NV_viewport_array2 */ + +#ifndef GL_NV_viewport_swizzle +#define GL_NV_viewport_swizzle 1 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357 +#define GL_VIEWPORT_SWIZZLE_X_NV 0x9358 +#define GL_VIEWPORT_SWIZZLE_Y_NV 0x9359 +#define GL_VIEWPORT_SWIZZLE_Z_NV 0x935A +#define GL_VIEWPORT_SWIZZLE_W_NV 0x935B +typedef void (APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC) (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glViewportSwizzleNV (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew); +#endif +#endif /* GL_NV_viewport_swizzle */ + +#ifndef GL_OVR_multiview +#define GL_OVR_multiview 1 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632 +#define GL_MAX_VIEWS_OVR 0x9631 +#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633 +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glFramebufferTextureMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +GLAPI void APIENTRY glNamedFramebufferTextureMultiviewOVR (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); +#endif +#endif /* GL_OVR_multiview */ + +#ifndef GL_OVR_multiview2 +#define GL_OVR_multiview2 1 +#endif /* GL_OVR_multiview2 */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/thirdparty/imgui_suite/generated/gl3w/include/KHR/khrplatform.h b/thirdparty/imgui_suite/generated/gl3w/include/KHR/khrplatform.h new file mode 100644 index 00000000000..01646449cae --- /dev/null +++ b/thirdparty/imgui_suite/generated/gl3w/include/KHR/khrplatform.h @@ -0,0 +1,311 @@ +#ifndef __khrplatform_h_ +#define __khrplatform_h_ + +/* +** Copyright (c) 2008-2018 The Khronos Group Inc. +** +** Permission is hereby granted, free of charge, to any person obtaining a +** copy of this software and/or associated documentation files (the +** "Materials"), to deal in the Materials without restriction, including +** without limitation the rights to use, copy, modify, merge, publish, +** distribute, sublicense, and/or sell copies of the Materials, and to +** permit persons to whom the Materials are 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 Materials. +** +** THE MATERIALS ARE 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 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. +*/ + +/* Khronos platform-specific types and definitions. + * + * The master copy of khrplatform.h is maintained in the Khronos EGL + * Registry repository at https://github.com/KhronosGroup/EGL-Registry + * The last semantic modification to khrplatform.h was at commit ID: + * 67a3e0864c2d75ea5287b9f3d2eb74a745936692 + * + * Adopters may modify this file to suit their platform. Adopters are + * encouraged to submit platform specific modifications to the Khronos + * group so that they can be included in future versions of this file. + * Please submit changes by filing pull requests or issues on + * the EGL Registry repository linked above. + * + * + * See the Implementer's Guidelines for information about where this file + * should be located on your system and for more details of its use: + * http://www.khronos.org/registry/implementers_guide.pdf + * + * This file should be included as + * #include + * by Khronos client API header files that use its types and defines. + * + * The types in khrplatform.h should only be used to define API-specific types. + * + * Types defined in khrplatform.h: + * khronos_int8_t signed 8 bit + * khronos_uint8_t unsigned 8 bit + * khronos_int16_t signed 16 bit + * khronos_uint16_t unsigned 16 bit + * khronos_int32_t signed 32 bit + * khronos_uint32_t unsigned 32 bit + * khronos_int64_t signed 64 bit + * khronos_uint64_t unsigned 64 bit + * khronos_intptr_t signed same number of bits as a pointer + * khronos_uintptr_t unsigned same number of bits as a pointer + * khronos_ssize_t signed size + * khronos_usize_t unsigned size + * khronos_float_t signed 32 bit floating point + * khronos_time_ns_t unsigned 64 bit time in nanoseconds + * khronos_utime_nanoseconds_t unsigned time interval or absolute time in + * nanoseconds + * khronos_stime_nanoseconds_t signed time interval in nanoseconds + * khronos_boolean_enum_t enumerated boolean type. This should + * only be used as a base type when a client API's boolean type is + * an enum. Client APIs which use an integer or other type for + * booleans cannot use this as the base type for their boolean. + * + * Tokens defined in khrplatform.h: + * + * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values. + * + * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0. + * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0. + * + * Calling convention macros defined in this file: + * KHRONOS_APICALL + * KHRONOS_APIENTRY + * KHRONOS_APIATTRIBUTES + * + * These may be used in function prototypes as: + * + * KHRONOS_APICALL void KHRONOS_APIENTRY funcname( + * int arg1, + * int arg2) KHRONOS_APIATTRIBUTES; + */ + +#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC) +# define KHRONOS_STATIC 1 +#endif + +/*------------------------------------------------------------------------- + * Definition of KHRONOS_APICALL + *------------------------------------------------------------------------- + * This precedes the return type of the function in the function prototype. + */ +#if defined(KHRONOS_STATIC) + /* If the preprocessor constant KHRONOS_STATIC is defined, make the + * header compatible with static linking. */ +# define KHRONOS_APICALL +#elif defined(_WIN32) +# define KHRONOS_APICALL __declspec(dllimport) +#elif defined (__SYMBIAN32__) +# define KHRONOS_APICALL IMPORT_C +#elif defined(__ANDROID__) +# define KHRONOS_APICALL __attribute__((visibility("default"))) +#else +# define KHRONOS_APICALL +#endif + +/*------------------------------------------------------------------------- + * Definition of KHRONOS_APIENTRY + *------------------------------------------------------------------------- + * This follows the return type of the function and precedes the function + * name in the function prototype. + */ +#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) + /* Win32 but not WinCE */ +# define KHRONOS_APIENTRY __stdcall +#else +# define KHRONOS_APIENTRY +#endif + +/*------------------------------------------------------------------------- + * Definition of KHRONOS_APIATTRIBUTES + *------------------------------------------------------------------------- + * This follows the closing parenthesis of the function prototype arguments. + */ +#if defined (__ARMCC_2__) +#define KHRONOS_APIATTRIBUTES __softfp +#else +#define KHRONOS_APIATTRIBUTES +#endif + +/*------------------------------------------------------------------------- + * basic type definitions + *-----------------------------------------------------------------------*/ +#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) + + +/* + * Using + */ +#include +typedef int32_t khronos_int32_t; +typedef uint32_t khronos_uint32_t; +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 +/* + * To support platform where unsigned long cannot be used interchangeably with + * inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t. + * Ideally, we could just use (u)intptr_t everywhere, but this could result in + * ABI breakage if khronos_uintptr_t is changed from unsigned long to + * unsigned long long or similar (this results in different C++ name mangling). + * To avoid changes for existing platforms, we restrict usage of intptr_t to + * platforms where the size of a pointer is larger than the size of long. + */ +#if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__) +#if __SIZEOF_POINTER__ > __SIZEOF_LONG__ +#define KHRONOS_USE_INTPTR_T +#endif +#endif + +#elif defined(__VMS ) || defined(__sgi) + +/* + * Using + */ +#include +typedef int32_t khronos_int32_t; +typedef uint32_t khronos_uint32_t; +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#elif defined(_WIN32) && !defined(__SCITECH_SNAP__) + +/* + * Win32 + */ +typedef __int32 khronos_int32_t; +typedef unsigned __int32 khronos_uint32_t; +typedef __int64 khronos_int64_t; +typedef unsigned __int64 khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#elif defined(__sun__) || defined(__digital__) + +/* + * Sun or Digital + */ +typedef int khronos_int32_t; +typedef unsigned int khronos_uint32_t; +#if defined(__arch64__) || defined(_LP64) +typedef long int khronos_int64_t; +typedef unsigned long int khronos_uint64_t; +#else +typedef long long int khronos_int64_t; +typedef unsigned long long int khronos_uint64_t; +#endif /* __arch64__ */ +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#elif 0 + +/* + * Hypothetical platform with no float or int64 support + */ +typedef int khronos_int32_t; +typedef unsigned int khronos_uint32_t; +#define KHRONOS_SUPPORT_INT64 0 +#define KHRONOS_SUPPORT_FLOAT 0 + +#else + +/* + * Generic fallback + */ +#include +typedef int32_t khronos_int32_t; +typedef uint32_t khronos_uint32_t; +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#define KHRONOS_SUPPORT_INT64 1 +#define KHRONOS_SUPPORT_FLOAT 1 + +#endif + + +/* + * Types that are (so far) the same on all platforms + */ +typedef signed char khronos_int8_t; +typedef unsigned char khronos_uint8_t; +typedef signed short int khronos_int16_t; +typedef unsigned short int khronos_uint16_t; + +/* + * Types that differ between LLP64 and LP64 architectures - in LLP64, + * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears + * to be the only LLP64 architecture in current use. + */ +#ifdef KHRONOS_USE_INTPTR_T +typedef intptr_t khronos_intptr_t; +typedef uintptr_t khronos_uintptr_t; +#elif defined(_WIN64) +typedef signed long long int khronos_intptr_t; +typedef unsigned long long int khronos_uintptr_t; +#else +typedef signed long int khronos_intptr_t; +typedef unsigned long int khronos_uintptr_t; +#endif + +#if defined(_WIN64) +typedef signed long long int khronos_ssize_t; +typedef unsigned long long int khronos_usize_t; +#else +typedef signed long int khronos_ssize_t; +typedef unsigned long int khronos_usize_t; +#endif + +#if KHRONOS_SUPPORT_FLOAT +/* + * Float type + */ +typedef float khronos_float_t; +#endif + +#if KHRONOS_SUPPORT_INT64 +/* Time types + * + * These types can be used to represent a time interval in nanoseconds or + * an absolute Unadjusted System Time. Unadjusted System Time is the number + * of nanoseconds since some arbitrary system event (e.g. since the last + * time the system booted). The Unadjusted System Time is an unsigned + * 64 bit value that wraps back to 0 every 584 years. Time intervals + * may be either signed or unsigned. + */ +typedef khronos_uint64_t khronos_utime_nanoseconds_t; +typedef khronos_int64_t khronos_stime_nanoseconds_t; +#endif + +/* + * Dummy value used to pad enum types to 32 bits. + */ +#ifndef KHRONOS_MAX_ENUM +#define KHRONOS_MAX_ENUM 0x7FFFFFFF +#endif + +/* + * Enumerated boolean type + * + * Values other than zero should be considered to be true. Therefore + * comparisons should not be made against KHRONOS_TRUE. + */ +typedef enum { + KHRONOS_FALSE = 0, + KHRONOS_TRUE = 1, + KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM +} khronos_boolean_enum_t; + +#endif /* __khrplatform_h_ */ diff --git a/thirdparty/imgui_suite/generated/gl3w/src/gl3w.c b/thirdparty/imgui_suite/generated/gl3w/src/gl3w.c new file mode 100644 index 00000000000..d65dfdaebf0 --- /dev/null +++ b/thirdparty/imgui_suite/generated/gl3w/src/gl3w.c @@ -0,0 +1,926 @@ +/* + * This file was generated with gl3w_gen.py, part of gl3w + * (hosted at https://github.com/skaslev/gl3w) + * + * This is free and unencumbered software released into the public domain. + * + * Anyone is free to copy, modify, publish, use, compile, sell, or + * distribute this software, either in source code form or as a compiled + * binary, for any purpose, commercial or non-commercial, and by any + * means. + * + * In jurisdictions that recognize copyright laws, the author or authors + * of this software dedicate any and all copyright interest in the + * software to the public domain. We make this dedication for the benefit + * of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * software under copyright law. + * + * 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 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. + */ + +#include +#include + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +#if defined(_WIN32) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include + +static HMODULE libgl; +typedef PROC(__stdcall* GL3WglGetProcAddr)(LPCSTR); +static GL3WglGetProcAddr wgl_get_proc_address; + +static int open_libgl(void) +{ + libgl = LoadLibraryA("opengl32.dll"); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + + wgl_get_proc_address = (GL3WglGetProcAddr)GetProcAddress(libgl, "wglGetProcAddress"); + return GL3W_OK; +} + +static void close_libgl(void) +{ + FreeLibrary(libgl); +} + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + + res = (GL3WglProc)wgl_get_proc_address(proc); + if (!res) + res = (GL3WglProc)GetProcAddress(libgl, proc); + return res; +} +#elif defined(__APPLE__) +#include + +static void *libgl; + +static int open_libgl(void) +{ + libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + + return GL3W_OK; +} + +static void close_libgl(void) +{ + dlclose(libgl); +} + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + + *(void **)(&res) = dlsym(libgl, proc); + return res; +} +#else +#include + +static void *libgl; /* OpenGL library */ +static void *libglx; /* GLX library */ +static void *libegl; /* EGL library */ +static GL3WGetProcAddressProc gl_get_proc_address; + +static void close_libgl(void) +{ + if (libgl) { + dlclose(libgl); + libgl = NULL; + } + if (libegl) { + dlclose(libegl); + libegl = NULL; + } + if (libglx) { + dlclose(libglx); + libglx = NULL; + } +} + +static int is_library_loaded(const char *name, void **lib) +{ + *lib = dlopen(name, RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); + return *lib != NULL; +} + +static int open_libs(void) +{ + /* On Linux we have two APIs to get process addresses: EGL and GLX. + * EGL is supported under both X11 and Wayland, whereas GLX is X11-specific. + * First check what's already loaded, the windowing library might have + * already loaded either EGL or GLX and we want to use the same one. + */ + + if (is_library_loaded("libEGL.so.1", &libegl) || + is_library_loaded("libGLX.so.0", &libglx)) { + libgl = dlopen("libOpenGL.so.0", RTLD_LAZY | RTLD_LOCAL); + if (libgl) + return GL3W_OK; + else + close_libgl(); + } + + if (is_library_loaded("libGL.so.1", &libgl)) + return GL3W_OK; + + /* Neither is already loaded, so we have to load one. Try EGL first + * because it is supported under both X11 and Wayland. + */ + + /* Load OpenGL + EGL */ + libgl = dlopen("libOpenGL.so.0", RTLD_LAZY | RTLD_LOCAL); + libegl = dlopen("libEGL.so.1", RTLD_LAZY | RTLD_LOCAL); + if (libgl && libegl) + return GL3W_OK; + + /* Fall back to legacy libGL, which includes GLX */ + close_libgl(); + libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL); + if (libgl) + return GL3W_OK; + + return GL3W_ERROR_LIBRARY_OPEN; +} + +static int open_libgl(void) +{ + int res = open_libs(); + if (res) + return res; + + if (libegl) + *(void **)(&gl_get_proc_address) = dlsym(libegl, "eglGetProcAddress"); + else if (libglx) + *(void **)(&gl_get_proc_address) = dlsym(libglx, "glXGetProcAddressARB"); + else + *(void **)(&gl_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB"); + + if (!gl_get_proc_address) { + close_libgl(); + return GL3W_ERROR_LIBRARY_OPEN; + } + + return GL3W_OK; +} + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res = NULL; + + /* Before EGL version 1.5, eglGetProcAddress doesn't support querying core + * functions and may return a dummy function if we try, so try to load the + * function from the GL library directly first. + */ + if (libegl) + *(void **)(&res) = dlsym(libgl, proc); + + if (!res) + res = gl_get_proc_address(proc); + + if (!libegl && !res) + *(void **)(&res) = dlsym(libgl, proc); + + return res; +} +#endif + +static struct { + int major, minor; +} version; + +static int parse_version(void) +{ + if (!glGetIntegerv) + return GL3W_ERROR_INIT; + + glGetIntegerv(GL_MAJOR_VERSION, &version.major); + glGetIntegerv(GL_MINOR_VERSION, &version.minor); + + if (version.major < 3) + return GL3W_ERROR_OPENGL_VERSION; + return GL3W_OK; +} + +static void load_procs(GL3WGetProcAddressProc proc); + +int gl3wInit(void) +{ + int res; + + res = open_libgl(); + if (res) + return res; + + atexit(close_libgl); + return gl3wInit2(get_proc); +} + +int gl3wInit2(GL3WGetProcAddressProc proc) +{ + load_procs(proc); + return parse_version(); +} + +int gl3wIsSupported(int major, int minor) +{ + if (major < 3) + return 0; + if (version.major == major) + return version.minor >= minor; + return version.major >= major; +} + +GL3WglProc gl3wGetProcAddress(const char *proc) +{ + return get_proc(proc); +} + +static const char *proc_names[] = { + "glActiveShaderProgram", + "glActiveTexture", + "glAttachShader", + "glBeginConditionalRender", + "glBeginQuery", + "glBeginQueryIndexed", + "glBeginTransformFeedback", + "glBindAttribLocation", + "glBindBuffer", + "glBindBufferBase", + "glBindBufferRange", + "glBindBuffersBase", + "glBindBuffersRange", + "glBindFragDataLocation", + "glBindFragDataLocationIndexed", + "glBindFramebuffer", + "glBindImageTexture", + "glBindImageTextures", + "glBindProgramPipeline", + "glBindRenderbuffer", + "glBindSampler", + "glBindSamplers", + "glBindTexture", + "glBindTextureUnit", + "glBindTextures", + "glBindTransformFeedback", + "glBindVertexArray", + "glBindVertexBuffer", + "glBindVertexBuffers", + "glBlendColor", + "glBlendEquation", + "glBlendEquationSeparate", + "glBlendEquationSeparatei", + "glBlendEquationi", + "glBlendFunc", + "glBlendFuncSeparate", + "glBlendFuncSeparatei", + "glBlendFunci", + "glBlitFramebuffer", + "glBlitNamedFramebuffer", + "glBufferData", + "glBufferStorage", + "glBufferSubData", + "glCheckFramebufferStatus", + "glCheckNamedFramebufferStatus", + "glClampColor", + "glClear", + "glClearBufferData", + "glClearBufferSubData", + "glClearBufferfi", + "glClearBufferfv", + "glClearBufferiv", + "glClearBufferuiv", + "glClearColor", + "glClearDepth", + "glClearDepthf", + "glClearNamedBufferData", + "glClearNamedBufferSubData", + "glClearNamedFramebufferfi", + "glClearNamedFramebufferfv", + "glClearNamedFramebufferiv", + "glClearNamedFramebufferuiv", + "glClearStencil", + "glClearTexImage", + "glClearTexSubImage", + "glClientWaitSync", + "glClipControl", + "glColorMask", + "glColorMaski", + "glCompileShader", + "glCompressedTexImage1D", + "glCompressedTexImage2D", + "glCompressedTexImage3D", + "glCompressedTexSubImage1D", + "glCompressedTexSubImage2D", + "glCompressedTexSubImage3D", + "glCompressedTextureSubImage1D", + "glCompressedTextureSubImage2D", + "glCompressedTextureSubImage3D", + "glCopyBufferSubData", + "glCopyImageSubData", + "glCopyNamedBufferSubData", + "glCopyTexImage1D", + "glCopyTexImage2D", + "glCopyTexSubImage1D", + "glCopyTexSubImage2D", + "glCopyTexSubImage3D", + "glCopyTextureSubImage1D", + "glCopyTextureSubImage2D", + "glCopyTextureSubImage3D", + "glCreateBuffers", + "glCreateFramebuffers", + "glCreateProgram", + "glCreateProgramPipelines", + "glCreateQueries", + "glCreateRenderbuffers", + "glCreateSamplers", + "glCreateShader", + "glCreateShaderProgramv", + "glCreateTextures", + "glCreateTransformFeedbacks", + "glCreateVertexArrays", + "glCullFace", + "glDebugMessageCallback", + "glDebugMessageControl", + "glDebugMessageInsert", + "glDeleteBuffers", + "glDeleteFramebuffers", + "glDeleteProgram", + "glDeleteProgramPipelines", + "glDeleteQueries", + "glDeleteRenderbuffers", + "glDeleteSamplers", + "glDeleteShader", + "glDeleteSync", + "glDeleteTextures", + "glDeleteTransformFeedbacks", + "glDeleteVertexArrays", + "glDepthFunc", + "glDepthMask", + "glDepthRange", + "glDepthRangeArrayv", + "glDepthRangeIndexed", + "glDepthRangef", + "glDetachShader", + "glDisable", + "glDisableVertexArrayAttrib", + "glDisableVertexAttribArray", + "glDisablei", + "glDispatchCompute", + "glDispatchComputeIndirect", + "glDrawArrays", + "glDrawArraysIndirect", + "glDrawArraysInstanced", + "glDrawArraysInstancedBaseInstance", + "glDrawBuffer", + "glDrawBuffers", + "glDrawElements", + "glDrawElementsBaseVertex", + "glDrawElementsIndirect", + "glDrawElementsInstanced", + "glDrawElementsInstancedBaseInstance", + "glDrawElementsInstancedBaseVertex", + "glDrawElementsInstancedBaseVertexBaseInstance", + "glDrawRangeElements", + "glDrawRangeElementsBaseVertex", + "glDrawTransformFeedback", + "glDrawTransformFeedbackInstanced", + "glDrawTransformFeedbackStream", + "glDrawTransformFeedbackStreamInstanced", + "glEnable", + "glEnableVertexArrayAttrib", + "glEnableVertexAttribArray", + "glEnablei", + "glEndConditionalRender", + "glEndQuery", + "glEndQueryIndexed", + "glEndTransformFeedback", + "glFenceSync", + "glFinish", + "glFlush", + "glFlushMappedBufferRange", + "glFlushMappedNamedBufferRange", + "glFramebufferParameteri", + "glFramebufferParameteriMESA", + "glFramebufferRenderbuffer", + "glFramebufferTexture", + "glFramebufferTexture1D", + "glFramebufferTexture2D", + "glFramebufferTexture3D", + "glFramebufferTextureLayer", + "glFrontFace", + "glGenBuffers", + "glGenFramebuffers", + "glGenProgramPipelines", + "glGenQueries", + "glGenRenderbuffers", + "glGenSamplers", + "glGenTextures", + "glGenTransformFeedbacks", + "glGenVertexArrays", + "glGenerateMipmap", + "glGenerateTextureMipmap", + "glGetActiveAtomicCounterBufferiv", + "glGetActiveAttrib", + "glGetActiveSubroutineName", + "glGetActiveSubroutineUniformName", + "glGetActiveSubroutineUniformiv", + "glGetActiveUniform", + "glGetActiveUniformBlockName", + "glGetActiveUniformBlockiv", + "glGetActiveUniformName", + "glGetActiveUniformsiv", + "glGetAttachedShaders", + "glGetAttribLocation", + "glGetBooleani_v", + "glGetBooleanv", + "glGetBufferParameteri64v", + "glGetBufferParameteriv", + "glGetBufferPointerv", + "glGetBufferSubData", + "glGetCompressedTexImage", + "glGetCompressedTextureImage", + "glGetCompressedTextureSubImage", + "glGetDebugMessageLog", + "glGetDoublei_v", + "glGetDoublev", + "glGetError", + "glGetFloati_v", + "glGetFloatv", + "glGetFragDataIndex", + "glGetFragDataLocation", + "glGetFramebufferAttachmentParameteriv", + "glGetFramebufferParameteriv", + "glGetFramebufferParameterivMESA", + "glGetGraphicsResetStatus", + "glGetInteger64i_v", + "glGetInteger64v", + "glGetIntegeri_v", + "glGetIntegerv", + "glGetInternalformati64v", + "glGetInternalformativ", + "glGetMultisamplefv", + "glGetNamedBufferParameteri64v", + "glGetNamedBufferParameteriv", + "glGetNamedBufferPointerv", + "glGetNamedBufferSubData", + "glGetNamedFramebufferAttachmentParameteriv", + "glGetNamedFramebufferParameteriv", + "glGetNamedRenderbufferParameteriv", + "glGetObjectLabel", + "glGetObjectPtrLabel", + "glGetPointerv", + "glGetProgramBinary", + "glGetProgramInfoLog", + "glGetProgramInterfaceiv", + "glGetProgramPipelineInfoLog", + "glGetProgramPipelineiv", + "glGetProgramResourceIndex", + "glGetProgramResourceLocation", + "glGetProgramResourceLocationIndex", + "glGetProgramResourceName", + "glGetProgramResourceiv", + "glGetProgramStageiv", + "glGetProgramiv", + "glGetQueryBufferObjecti64v", + "glGetQueryBufferObjectiv", + "glGetQueryBufferObjectui64v", + "glGetQueryBufferObjectuiv", + "glGetQueryIndexediv", + "glGetQueryObjecti64v", + "glGetQueryObjectiv", + "glGetQueryObjectui64v", + "glGetQueryObjectuiv", + "glGetQueryiv", + "glGetRenderbufferParameteriv", + "glGetSamplerParameterIiv", + "glGetSamplerParameterIuiv", + "glGetSamplerParameterfv", + "glGetSamplerParameteriv", + "glGetShaderInfoLog", + "glGetShaderPrecisionFormat", + "glGetShaderSource", + "glGetShaderiv", + "glGetString", + "glGetStringi", + "glGetSubroutineIndex", + "glGetSubroutineUniformLocation", + "glGetSynciv", + "glGetTexImage", + "glGetTexLevelParameterfv", + "glGetTexLevelParameteriv", + "glGetTexParameterIiv", + "glGetTexParameterIuiv", + "glGetTexParameterfv", + "glGetTexParameteriv", + "glGetTextureImage", + "glGetTextureLevelParameterfv", + "glGetTextureLevelParameteriv", + "glGetTextureParameterIiv", + "glGetTextureParameterIuiv", + "glGetTextureParameterfv", + "glGetTextureParameteriv", + "glGetTextureSubImage", + "glGetTransformFeedbackVarying", + "glGetTransformFeedbacki64_v", + "glGetTransformFeedbacki_v", + "glGetTransformFeedbackiv", + "glGetUniformBlockIndex", + "glGetUniformIndices", + "glGetUniformLocation", + "glGetUniformSubroutineuiv", + "glGetUniformdv", + "glGetUniformfv", + "glGetUniformiv", + "glGetUniformuiv", + "glGetVertexArrayIndexed64iv", + "glGetVertexArrayIndexediv", + "glGetVertexArrayiv", + "glGetVertexAttribIiv", + "glGetVertexAttribIuiv", + "glGetVertexAttribLdv", + "glGetVertexAttribPointerv", + "glGetVertexAttribdv", + "glGetVertexAttribfv", + "glGetVertexAttribiv", + "glGetnCompressedTexImage", + "glGetnTexImage", + "glGetnUniformdv", + "glGetnUniformfv", + "glGetnUniformiv", + "glGetnUniformuiv", + "glHint", + "glInvalidateBufferData", + "glInvalidateBufferSubData", + "glInvalidateFramebuffer", + "glInvalidateNamedFramebufferData", + "glInvalidateNamedFramebufferSubData", + "glInvalidateSubFramebuffer", + "glInvalidateTexImage", + "glInvalidateTexSubImage", + "glIsBuffer", + "glIsEnabled", + "glIsEnabledi", + "glIsFramebuffer", + "glIsProgram", + "glIsProgramPipeline", + "glIsQuery", + "glIsRenderbuffer", + "glIsSampler", + "glIsShader", + "glIsSync", + "glIsTexture", + "glIsTransformFeedback", + "glIsVertexArray", + "glLineWidth", + "glLinkProgram", + "glLogicOp", + "glMapBuffer", + "glMapBufferRange", + "glMapNamedBuffer", + "glMapNamedBufferRange", + "glMemoryBarrier", + "glMemoryBarrierByRegion", + "glMinSampleShading", + "glMultiDrawArrays", + "glMultiDrawArraysIndirect", + "glMultiDrawArraysIndirectCount", + "glMultiDrawElements", + "glMultiDrawElementsBaseVertex", + "glMultiDrawElementsIndirect", + "glMultiDrawElementsIndirectCount", + "glNamedBufferData", + "glNamedBufferStorage", + "glNamedBufferSubData", + "glNamedFramebufferDrawBuffer", + "glNamedFramebufferDrawBuffers", + "glNamedFramebufferParameteri", + "glNamedFramebufferReadBuffer", + "glNamedFramebufferRenderbuffer", + "glNamedFramebufferTexture", + "glNamedFramebufferTextureLayer", + "glNamedRenderbufferStorage", + "glNamedRenderbufferStorageMultisample", + "glObjectLabel", + "glObjectPtrLabel", + "glPatchParameterfv", + "glPatchParameteri", + "glPauseTransformFeedback", + "glPixelStoref", + "glPixelStorei", + "glPointParameterf", + "glPointParameterfv", + "glPointParameteri", + "glPointParameteriv", + "glPointSize", + "glPolygonMode", + "glPolygonOffset", + "glPolygonOffsetClamp", + "glPopDebugGroup", + "glPrimitiveRestartIndex", + "glProgramBinary", + "glProgramParameteri", + "glProgramUniform1d", + "glProgramUniform1dv", + "glProgramUniform1f", + "glProgramUniform1fv", + "glProgramUniform1i", + "glProgramUniform1iv", + "glProgramUniform1ui", + "glProgramUniform1uiv", + "glProgramUniform2d", + "glProgramUniform2dv", + "glProgramUniform2f", + "glProgramUniform2fv", + "glProgramUniform2i", + "glProgramUniform2iv", + "glProgramUniform2ui", + "glProgramUniform2uiv", + "glProgramUniform3d", + "glProgramUniform3dv", + "glProgramUniform3f", + "glProgramUniform3fv", + "glProgramUniform3i", + "glProgramUniform3iv", + "glProgramUniform3ui", + "glProgramUniform3uiv", + "glProgramUniform4d", + "glProgramUniform4dv", + "glProgramUniform4f", + "glProgramUniform4fv", + "glProgramUniform4i", + "glProgramUniform4iv", + "glProgramUniform4ui", + "glProgramUniform4uiv", + "glProgramUniformMatrix2dv", + "glProgramUniformMatrix2fv", + "glProgramUniformMatrix2x3dv", + "glProgramUniformMatrix2x3fv", + "glProgramUniformMatrix2x4dv", + "glProgramUniformMatrix2x4fv", + "glProgramUniformMatrix3dv", + "glProgramUniformMatrix3fv", + "glProgramUniformMatrix3x2dv", + "glProgramUniformMatrix3x2fv", + "glProgramUniformMatrix3x4dv", + "glProgramUniformMatrix3x4fv", + "glProgramUniformMatrix4dv", + "glProgramUniformMatrix4fv", + "glProgramUniformMatrix4x2dv", + "glProgramUniformMatrix4x2fv", + "glProgramUniformMatrix4x3dv", + "glProgramUniformMatrix4x3fv", + "glProvokingVertex", + "glPushDebugGroup", + "glQueryCounter", + "glReadBuffer", + "glReadPixels", + "glReadnPixels", + "glReleaseShaderCompiler", + "glRenderbufferStorage", + "glRenderbufferStorageMultisample", + "glResumeTransformFeedback", + "glSampleCoverage", + "glSampleMaski", + "glSamplerParameterIiv", + "glSamplerParameterIuiv", + "glSamplerParameterf", + "glSamplerParameterfv", + "glSamplerParameteri", + "glSamplerParameteriv", + "glScissor", + "glScissorArrayv", + "glScissorIndexed", + "glScissorIndexedv", + "glShaderBinary", + "glShaderSource", + "glShaderStorageBlockBinding", + "glSpecializeShader", + "glStencilFunc", + "glStencilFuncSeparate", + "glStencilMask", + "glStencilMaskSeparate", + "glStencilOp", + "glStencilOpSeparate", + "glTexBuffer", + "glTexBufferRange", + "glTexImage1D", + "glTexImage2D", + "glTexImage2DMultisample", + "glTexImage3D", + "glTexImage3DMultisample", + "glTexParameterIiv", + "glTexParameterIuiv", + "glTexParameterf", + "glTexParameterfv", + "glTexParameteri", + "glTexParameteriv", + "glTexStorage1D", + "glTexStorage2D", + "glTexStorage2DMultisample", + "glTexStorage3D", + "glTexStorage3DMultisample", + "glTexSubImage1D", + "glTexSubImage2D", + "glTexSubImage3D", + "glTextureBarrier", + "glTextureBuffer", + "glTextureBufferRange", + "glTextureParameterIiv", + "glTextureParameterIuiv", + "glTextureParameterf", + "glTextureParameterfv", + "glTextureParameteri", + "glTextureParameteriv", + "glTextureStorage1D", + "glTextureStorage2D", + "glTextureStorage2DMultisample", + "glTextureStorage3D", + "glTextureStorage3DMultisample", + "glTextureSubImage1D", + "glTextureSubImage2D", + "glTextureSubImage3D", + "glTextureView", + "glTransformFeedbackBufferBase", + "glTransformFeedbackBufferRange", + "glTransformFeedbackVaryings", + "glUniform1d", + "glUniform1dv", + "glUniform1f", + "glUniform1fv", + "glUniform1i", + "glUniform1iv", + "glUniform1ui", + "glUniform1uiv", + "glUniform2d", + "glUniform2dv", + "glUniform2f", + "glUniform2fv", + "glUniform2i", + "glUniform2iv", + "glUniform2ui", + "glUniform2uiv", + "glUniform3d", + "glUniform3dv", + "glUniform3f", + "glUniform3fv", + "glUniform3i", + "glUniform3iv", + "glUniform3ui", + "glUniform3uiv", + "glUniform4d", + "glUniform4dv", + "glUniform4f", + "glUniform4fv", + "glUniform4i", + "glUniform4iv", + "glUniform4ui", + "glUniform4uiv", + "glUniformBlockBinding", + "glUniformMatrix2dv", + "glUniformMatrix2fv", + "glUniformMatrix2x3dv", + "glUniformMatrix2x3fv", + "glUniformMatrix2x4dv", + "glUniformMatrix2x4fv", + "glUniformMatrix3dv", + "glUniformMatrix3fv", + "glUniformMatrix3x2dv", + "glUniformMatrix3x2fv", + "glUniformMatrix3x4dv", + "glUniformMatrix3x4fv", + "glUniformMatrix4dv", + "glUniformMatrix4fv", + "glUniformMatrix4x2dv", + "glUniformMatrix4x2fv", + "glUniformMatrix4x3dv", + "glUniformMatrix4x3fv", + "glUniformSubroutinesuiv", + "glUnmapBuffer", + "glUnmapNamedBuffer", + "glUseProgram", + "glUseProgramStages", + "glValidateProgram", + "glValidateProgramPipeline", + "glVertexArrayAttribBinding", + "glVertexArrayAttribFormat", + "glVertexArrayAttribIFormat", + "glVertexArrayAttribLFormat", + "glVertexArrayBindingDivisor", + "glVertexArrayElementBuffer", + "glVertexArrayVertexBuffer", + "glVertexArrayVertexBuffers", + "glVertexAttrib1d", + "glVertexAttrib1dv", + "glVertexAttrib1f", + "glVertexAttrib1fv", + "glVertexAttrib1s", + "glVertexAttrib1sv", + "glVertexAttrib2d", + "glVertexAttrib2dv", + "glVertexAttrib2f", + "glVertexAttrib2fv", + "glVertexAttrib2s", + "glVertexAttrib2sv", + "glVertexAttrib3d", + "glVertexAttrib3dv", + "glVertexAttrib3f", + "glVertexAttrib3fv", + "glVertexAttrib3s", + "glVertexAttrib3sv", + "glVertexAttrib4Nbv", + "glVertexAttrib4Niv", + "glVertexAttrib4Nsv", + "glVertexAttrib4Nub", + "glVertexAttrib4Nubv", + "glVertexAttrib4Nuiv", + "glVertexAttrib4Nusv", + "glVertexAttrib4bv", + "glVertexAttrib4d", + "glVertexAttrib4dv", + "glVertexAttrib4f", + "glVertexAttrib4fv", + "glVertexAttrib4iv", + "glVertexAttrib4s", + "glVertexAttrib4sv", + "glVertexAttrib4ubv", + "glVertexAttrib4uiv", + "glVertexAttrib4usv", + "glVertexAttribBinding", + "glVertexAttribDivisor", + "glVertexAttribFormat", + "glVertexAttribI1i", + "glVertexAttribI1iv", + "glVertexAttribI1ui", + "glVertexAttribI1uiv", + "glVertexAttribI2i", + "glVertexAttribI2iv", + "glVertexAttribI2ui", + "glVertexAttribI2uiv", + "glVertexAttribI3i", + "glVertexAttribI3iv", + "glVertexAttribI3ui", + "glVertexAttribI3uiv", + "glVertexAttribI4bv", + "glVertexAttribI4i", + "glVertexAttribI4iv", + "glVertexAttribI4sv", + "glVertexAttribI4ubv", + "glVertexAttribI4ui", + "glVertexAttribI4uiv", + "glVertexAttribI4usv", + "glVertexAttribIFormat", + "glVertexAttribIPointer", + "glVertexAttribL1d", + "glVertexAttribL1dv", + "glVertexAttribL2d", + "glVertexAttribL2dv", + "glVertexAttribL3d", + "glVertexAttribL3dv", + "glVertexAttribL4d", + "glVertexAttribL4dv", + "glVertexAttribLFormat", + "glVertexAttribLPointer", + "glVertexAttribP1ui", + "glVertexAttribP1uiv", + "glVertexAttribP2ui", + "glVertexAttribP2uiv", + "glVertexAttribP3ui", + "glVertexAttribP3uiv", + "glVertexAttribP4ui", + "glVertexAttribP4uiv", + "glVertexAttribPointer", + "glVertexBindingDivisor", + "glViewport", + "glViewportArrayv", + "glViewportIndexedf", + "glViewportIndexedfv", + "glWaitSync", +}; + +GL3W_API union GL3WProcs gl3wProcs; + +static void load_procs(GL3WGetProcAddressProc proc) +{ + size_t i; + + for (i = 0; i < ARRAY_SIZE(proc_names); i++) + gl3wProcs.ptr[i] = proc(proc_names[i]); +} diff --git a/thirdparty/imgui_suite/gl3w/gl3w_gen.py b/thirdparty/imgui_suite/gl3w/gl3w_gen.py new file mode 100644 index 00000000000..27bfb6c0937 --- /dev/null +++ b/thirdparty/imgui_suite/gl3w/gl3w_gen.py @@ -0,0 +1,430 @@ +#!/usr/bin/env python + +# This file is part of gl3w, hosted at https://github.com/skaslev/gl3w +# +# This is free and unencumbered software released into the public domain. +# +# Anyone is free to copy, modify, publish, use, compile, sell, or +# distribute this software, either in source code form or as a compiled +# binary, for any purpose, commercial or non-commercial, and by any +# means. +# +# In jurisdictions that recognize copyright laws, the author or authors +# of this software dedicate any and all copyright interest in the +# software to the public domain. We make this dedication for the benefit +# of the public at large and to the detriment of our heirs and +# successors. We intend this dedication to be an overt act of +# relinquishment in perpetuity of all present and future rights to this +# software under copyright law. +# +# 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 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. + +# Allow Python 2.6+ to use the print() function +from __future__ import print_function + +import argparse +import os +import re + +# Try to import Python 3 library urllib.request +# and if it fails, fall back to Python 2 urllib2 +try: + import urllib.request as urllib2 +except ImportError: + import urllib2 + +# UNLICENSE copyright header +UNLICENSE = r'''/* + * This file was generated with gl3w_gen.py, part of gl3w + * (hosted at https://github.com/skaslev/gl3w) + * + * This is free and unencumbered software released into the public domain. + * + * Anyone is free to copy, modify, publish, use, compile, sell, or + * distribute this software, either in source code form or as a compiled + * binary, for any purpose, commercial or non-commercial, and by any + * means. + * + * In jurisdictions that recognize copyright laws, the author or authors + * of this software dedicate any and all copyright interest in the + * software to the public domain. We make this dedication for the benefit + * of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * software under copyright law. + * + * 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 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. + */ + +''' + +EXT_SUFFIX = ['ARB', 'EXT', 'KHR', 'OVR', 'NV', 'AMD', 'INTEL'] + +def is_ext(proc): + return any(proc.endswith(suffix) for suffix in EXT_SUFFIX) + +def write(f, s): + f.write(s.encode('utf-8')) + +def touch_dir(path): + if not os.path.exists(path): + os.makedirs(path) + +def download(url, dst): + if os.path.exists(dst): + print('Reusing {0}...'.format(dst)) + return + + print('Downloading {0}...'.format(dst)) + web = urllib2.urlopen(urllib2.Request(url, headers={'User-Agent': 'Mozilla/5.0'})) + with open(dst, 'wb') as f: + f.writelines(web.readlines()) + +parser = argparse.ArgumentParser(description='gl3w generator script') +parser.add_argument('--ext', action='store_true', help='Load extensions') +parser.add_argument('--root', type=str, default='', help='Root directory') +args = parser.parse_args() + +# Create directories +touch_dir(os.path.join(args.root, 'include/GL')) +touch_dir(os.path.join(args.root, 'include/KHR')) +touch_dir(os.path.join(args.root, 'src')) + +# Download glcorearb.h and khrplatform.h +download('https://www.khronos.org/registry/OpenGL/api/GL/glcorearb.h', + os.path.join(args.root, 'include/GL/glcorearb.h')) +download('https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h', + os.path.join(args.root, 'include/KHR/khrplatform.h')) + +# Parse function names from glcorearb.h +print('Parsing glcorearb.h header...') +procs = [] +p = re.compile(r'GLAPI.*APIENTRY\s+(\w+)') +with open(os.path.join(args.root, 'include/GL/glcorearb.h'), 'r') as f: + for line in f: + m = p.match(line) + if not m: + continue + proc = m.group(1) + if args.ext or not is_ext(proc): + procs.append(proc) +procs.sort() + +# Generate gl3w.h +print('Generating {0}...'.format(os.path.join(args.root, 'include/GL/gl3w.h'))) +with open(os.path.join(args.root, 'include/GL/gl3w.h'), 'wb') as f: + write(f, UNLICENSE) + write(f, r'''#ifndef __gl3w_h_ +#define __gl3w_h_ + +#include + +#ifndef GL3W_API +#define GL3W_API +#endif + +#ifndef __gl_h_ +#define __gl_h_ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define GL3W_OK 0 +#define GL3W_ERROR_INIT -1 +#define GL3W_ERROR_LIBRARY_OPEN -2 +#define GL3W_ERROR_OPENGL_VERSION -3 + +typedef void (*GL3WglProc)(void); +typedef GL3WglProc (*GL3WGetProcAddressProc)(const char *proc); + +/* gl3w api */ +GL3W_API int gl3wInit(void); +GL3W_API int gl3wInit2(GL3WGetProcAddressProc proc); +GL3W_API int gl3wIsSupported(int major, int minor); +GL3W_API GL3WglProc gl3wGetProcAddress(const char *proc); + +/* gl3w internal state */ +''') + write(f, 'union GL3WProcs {\n') + write(f, '\tGL3WglProc ptr[{0}];\n'.format(len(procs))) + write(f, '\tstruct {\n') + for proc in procs: + write(f, '\t\t{0: <55} {1};\n'.format('PFN{0}PROC'.format(proc.upper()), proc[2:])) + write(f, r''' } gl; +}; + +GL3W_API extern union GL3WProcs gl3wProcs; + +/* OpenGL functions */ +''') + for proc in procs: + write(f, '#define {0: <48} gl3wProcs.gl.{1}\n'.format(proc, proc[2:])) + write(f, r''' +#ifdef __cplusplus +} +#endif + +#endif +''') + +# Generate gl3w.c +print('Generating {0}...'.format(os.path.join(args.root, 'src/gl3w.c'))) +with open(os.path.join(args.root, 'src/gl3w.c'), 'wb') as f: + write(f, UNLICENSE) + write(f, r'''#include +#include + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +#if defined(_WIN32) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include + +static HMODULE libgl; +typedef PROC(__stdcall* GL3WglGetProcAddr)(LPCSTR); +static GL3WglGetProcAddr wgl_get_proc_address; + +static int open_libgl(void) +{ + libgl = LoadLibraryA("opengl32.dll"); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + + wgl_get_proc_address = (GL3WglGetProcAddr)GetProcAddress(libgl, "wglGetProcAddress"); + return GL3W_OK; +} + +static void close_libgl(void) +{ + FreeLibrary(libgl); +} + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + + res = (GL3WglProc)wgl_get_proc_address(proc); + if (!res) + res = (GL3WglProc)GetProcAddress(libgl, proc); + return res; +} +#elif defined(__APPLE__) +#include + +static void *libgl; + +static int open_libgl(void) +{ + libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + + return GL3W_OK; +} + +static void close_libgl(void) +{ + dlclose(libgl); +} + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + + *(void **)(&res) = dlsym(libgl, proc); + return res; +} +#else +#include + +static void *libgl; /* OpenGL library */ +static void *libglx; /* GLX library */ +static void *libegl; /* EGL library */ +static GL3WGetProcAddressProc gl_get_proc_address; + +static void close_libgl(void) +{ + if (libgl) { + dlclose(libgl); + libgl = NULL; + } + if (libegl) { + dlclose(libegl); + libegl = NULL; + } + if (libglx) { + dlclose(libglx); + libglx = NULL; + } +} + +static int is_library_loaded(const char *name, void **lib) +{ + *lib = dlopen(name, RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD); + return *lib != NULL; +} + +static int open_libs(void) +{ + /* On Linux we have two APIs to get process addresses: EGL and GLX. + * EGL is supported under both X11 and Wayland, whereas GLX is X11-specific. + * First check what's already loaded, the windowing library might have + * already loaded either EGL or GLX and we want to use the same one. + */ + + if (is_library_loaded("libEGL.so.1", &libegl) || + is_library_loaded("libGLX.so.0", &libglx)) { + libgl = dlopen("libOpenGL.so.0", RTLD_LAZY | RTLD_LOCAL); + if (libgl) + return GL3W_OK; + else + close_libgl(); + } + + if (is_library_loaded("libGL.so.1", &libgl)) + return GL3W_OK; + + /* Neither is already loaded, so we have to load one. Try EGL first + * because it is supported under both X11 and Wayland. + */ + + /* Load OpenGL + EGL */ + libgl = dlopen("libOpenGL.so.0", RTLD_LAZY | RTLD_LOCAL); + libegl = dlopen("libEGL.so.1", RTLD_LAZY | RTLD_LOCAL); + if (libgl && libegl) + return GL3W_OK; + + /* Fall back to legacy libGL, which includes GLX */ + close_libgl(); + libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL); + if (libgl) + return GL3W_OK; + + return GL3W_ERROR_LIBRARY_OPEN; +} + +static int open_libgl(void) +{ + int res = open_libs(); + if (res) + return res; + + if (libegl) + *(void **)(&gl_get_proc_address) = dlsym(libegl, "eglGetProcAddress"); + else if (libglx) + *(void **)(&gl_get_proc_address) = dlsym(libglx, "glXGetProcAddressARB"); + else + *(void **)(&gl_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB"); + + if (!gl_get_proc_address) { + close_libgl(); + return GL3W_ERROR_LIBRARY_OPEN; + } + + return GL3W_OK; +} + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res = NULL; + + /* Before EGL version 1.5, eglGetProcAddress doesn't support querying core + * functions and may return a dummy function if we try, so try to load the + * function from the GL library directly first. + */ + if (libegl) + *(void **)(&res) = dlsym(libgl, proc); + + if (!res) + res = gl_get_proc_address(proc); + + if (!libegl && !res) + *(void **)(&res) = dlsym(libgl, proc); + + return res; +} +#endif + +static struct { + int major, minor; +} version; + +static int parse_version(void) +{ + if (!glGetIntegerv) + return GL3W_ERROR_INIT; + + glGetIntegerv(GL_MAJOR_VERSION, &version.major); + glGetIntegerv(GL_MINOR_VERSION, &version.minor); + + if (version.major < 3) + return GL3W_ERROR_OPENGL_VERSION; + return GL3W_OK; +} + +static void load_procs(GL3WGetProcAddressProc proc); + +int gl3wInit(void) +{ + int res; + + res = open_libgl(); + if (res) + return res; + + atexit(close_libgl); + return gl3wInit2(get_proc); +} + +int gl3wInit2(GL3WGetProcAddressProc proc) +{ + load_procs(proc); + return parse_version(); +} + +int gl3wIsSupported(int major, int minor) +{ + if (major < 3) + return 0; + if (version.major == major) + return version.minor >= minor; + return version.major >= major; +} + +GL3WglProc gl3wGetProcAddress(const char *proc) +{ + return get_proc(proc); +} + +static const char *proc_names[] = { +''') + for proc in procs: + write(f, '\t"{0}",\n'.format(proc)) + write(f, r'''}; + +GL3W_API union GL3WProcs gl3wProcs; + +static void load_procs(GL3WGetProcAddressProc proc) +{ + size_t i; + + for (i = 0; i < ARRAY_SIZE(proc_names); i++) + gl3wProcs.ptr[i] = proc(proc_names[i]); +} +''') diff --git a/thirdparty/imgui_suite/glfw/CMake/GenerateMappings.cmake b/thirdparty/imgui_suite/glfw/CMake/GenerateMappings.cmake new file mode 100644 index 00000000000..c8c9e23f290 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/GenerateMappings.cmake @@ -0,0 +1,48 @@ +# Usage: +# cmake -P GenerateMappings.cmake + +set(source_url "https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt") +set(source_path "${CMAKE_CURRENT_BINARY_DIR}/gamecontrollerdb.txt") +set(template_path "${CMAKE_ARGV3}") +set(target_path "${CMAKE_ARGV4}") + +if (NOT EXISTS "${template_path}") + message(FATAL_ERROR "Failed to find template file ${template_path}") +endif() + +file(DOWNLOAD "${source_url}" "${source_path}" + STATUS download_status + TLS_VERIFY on) + +list(GET download_status 0 status_code) +list(GET download_status 1 status_message) + +if (status_code) + message(FATAL_ERROR "Failed to download ${source_url}: ${status_message}") +endif() + +file(STRINGS "${source_path}" lines) +foreach(line ${lines}) + if (line MATCHES "^[0-9a-fA-F]") + if (line MATCHES "platform:Windows") + if (GLFW_WIN32_MAPPINGS) + string(APPEND GLFW_WIN32_MAPPINGS "\n") + endif() + string(APPEND GLFW_WIN32_MAPPINGS "\"${line}\",") + elseif (line MATCHES "platform:Mac OS X") + if (GLFW_COCOA_MAPPINGS) + string(APPEND GLFW_COCOA_MAPPINGS "\n") + endif() + string(APPEND GLFW_COCOA_MAPPINGS "\"${line}\",") + elseif (line MATCHES "platform:Linux") + if (GLFW_LINUX_MAPPINGS) + string(APPEND GLFW_LINUX_MAPPINGS "\n") + endif() + string(APPEND GLFW_LINUX_MAPPINGS "\"${line}\",") + endif() + endif() +endforeach() + +configure_file("${template_path}" "${target_path}" @ONLY NEWLINE_STYLE UNIX) +file(REMOVE "${source_path}") + diff --git a/thirdparty/imgui_suite/glfw/CMake/Info.plist.in b/thirdparty/imgui_suite/glfw/CMake/Info.plist.in new file mode 100644 index 00000000000..684ad79087f --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/Info.plist.in @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleGetInfoString + ${MACOSX_BUNDLE_INFO_STRING} + CFBundleIconFile + ${MACOSX_BUNDLE_ICON_FILE} + CFBundleIdentifier + ${MACOSX_BUNDLE_GUI_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + ${MACOSX_BUNDLE_LONG_VERSION_STRING} + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + CFBundleSignature + ???? + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + CSResourcesFileMapped + + LSRequiresCarbon + + NSHumanReadableCopyright + ${MACOSX_BUNDLE_COPYRIGHT} + NSHighResolutionCapable + + + diff --git a/thirdparty/imgui_suite/glfw/CMake/cmake_uninstall.cmake.in b/thirdparty/imgui_suite/glfw/CMake/cmake_uninstall.cmake.in new file mode 100644 index 00000000000..5ecc476db22 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/cmake_uninstall.cmake.in @@ -0,0 +1,29 @@ + +if (NOT EXISTS "@GLFW_BINARY_DIR@/install_manifest.txt") + message(FATAL_ERROR "Cannot find install manifest: \"@GLFW_BINARY_DIR@/install_manifest.txt\"") +endif() + +file(READ "@GLFW_BINARY_DIR@/install_manifest.txt" files) +string(REGEX REPLACE "\n" ";" files "${files}") + +foreach (file ${files}) + message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + if (EXISTS "$ENV{DESTDIR}${file}") + exec_program("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval) + if (NOT "${rm_retval}" STREQUAL 0) + MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + endif() + elseif (IS_SYMLINK "$ENV{DESTDIR}${file}") + EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval) + if (NOT "${rm_retval}" STREQUAL 0) + message(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"") + endif() + else() + message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") + endif() +endforeach() + diff --git a/thirdparty/imgui_suite/glfw/CMake/glfw3.pc.in b/thirdparty/imgui_suite/glfw/CMake/glfw3.pc.in new file mode 100644 index 00000000000..37f4efd91ff --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/glfw3.pc.in @@ -0,0 +1,13 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ + +Name: GLFW +Description: A multi-platform library for OpenGL, window and input +Version: @GLFW_VERSION@ +URL: https://www.glfw.org/ +Requires.private: @GLFW_PKG_CONFIG_REQUIRES_PRIVATE@ +Libs: -L${libdir} -l@GLFW_LIB_NAME@ +Libs.private: @GLFW_PKG_CONFIG_LIBS_PRIVATE@ +Cflags: -I${includedir} diff --git a/thirdparty/imgui_suite/glfw/CMake/glfw3Config.cmake.in b/thirdparty/imgui_suite/glfw/CMake/glfw3Config.cmake.in new file mode 100644 index 00000000000..4a13a88b9eb --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/glfw3Config.cmake.in @@ -0,0 +1,3 @@ +include(CMakeFindDependencyMacro) +find_dependency(Threads) +include("${CMAKE_CURRENT_LIST_DIR}/glfw3Targets.cmake") diff --git a/thirdparty/imgui_suite/glfw/CMake/i686-w64-mingw32-clang.cmake b/thirdparty/imgui_suite/glfw/CMake/i686-w64-mingw32-clang.cmake new file mode 100644 index 00000000000..8726b2382fb --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/i686-w64-mingw32-clang.cmake @@ -0,0 +1,13 @@ +# Define the environment for cross-compiling with 32-bit MinGW-w64 Clang +SET(CMAKE_SYSTEM_NAME Windows) # Target system name +SET(CMAKE_SYSTEM_VERSION 1) +SET(CMAKE_C_COMPILER "i686-w64-mingw32-clang") +SET(CMAKE_CXX_COMPILER "i686-w64-mingw32-clang++") +SET(CMAKE_RC_COMPILER "i686-w64-mingw32-windres") +SET(CMAKE_RANLIB "i686-w64-mingw32-ranlib") + +# Configure the behaviour of the find commands +SET(CMAKE_FIND_ROOT_PATH "/usr/i686-w64-mingw32") +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/thirdparty/imgui_suite/glfw/CMake/i686-w64-mingw32.cmake b/thirdparty/imgui_suite/glfw/CMake/i686-w64-mingw32.cmake new file mode 100644 index 00000000000..2ca4dcd9559 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/i686-w64-mingw32.cmake @@ -0,0 +1,13 @@ +# Define the environment for cross-compiling with 32-bit MinGW-w64 GCC +SET(CMAKE_SYSTEM_NAME Windows) # Target system name +SET(CMAKE_SYSTEM_VERSION 1) +SET(CMAKE_C_COMPILER "i686-w64-mingw32-gcc") +SET(CMAKE_CXX_COMPILER "i686-w64-mingw32-g++") +SET(CMAKE_RC_COMPILER "i686-w64-mingw32-windres") +SET(CMAKE_RANLIB "i686-w64-mingw32-ranlib") + +# Configure the behaviour of the find commands +SET(CMAKE_FIND_ROOT_PATH "/usr/i686-w64-mingw32") +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/thirdparty/imgui_suite/glfw/CMake/modules/FindEpollShim.cmake b/thirdparty/imgui_suite/glfw/CMake/modules/FindEpollShim.cmake new file mode 100644 index 00000000000..f34d07090ef --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/modules/FindEpollShim.cmake @@ -0,0 +1,17 @@ +# Find EpollShim +# Once done, this will define +# +# EPOLLSHIM_FOUND - System has EpollShim +# EPOLLSHIM_INCLUDE_DIRS - The EpollShim include directories +# EPOLLSHIM_LIBRARIES - The libraries needed to use EpollShim + +find_path(EPOLLSHIM_INCLUDE_DIRS NAMES sys/epoll.h sys/timerfd.h HINTS /usr/local/include/libepoll-shim) +find_library(EPOLLSHIM_LIBRARIES NAMES epoll-shim libepoll-shim HINTS /usr/local/lib) + +if (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) + set(EPOLLSHIM_FOUND TRUE) +endif (EPOLLSHIM_INCLUDE_DIRS AND EPOLLSHIM_LIBRARIES) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(EpollShim DEFAULT_MSG EPOLLSHIM_LIBRARIES EPOLLSHIM_INCLUDE_DIRS) +mark_as_advanced(EPOLLSHIM_INCLUDE_DIRS EPOLLSHIM_LIBRARIES) diff --git a/thirdparty/imgui_suite/glfw/CMake/modules/FindOSMesa.cmake b/thirdparty/imgui_suite/glfw/CMake/modules/FindOSMesa.cmake new file mode 100644 index 00000000000..3194bd91aba --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/modules/FindOSMesa.cmake @@ -0,0 +1,18 @@ +# Try to find OSMesa on a Unix system +# +# This will define: +# +# OSMESA_LIBRARIES - Link these to use OSMesa +# OSMESA_INCLUDE_DIR - Include directory for OSMesa +# +# Copyright (c) 2014 Brandon Schaefer + +if (NOT WIN32) + + find_package (PkgConfig) + pkg_check_modules (PKG_OSMESA QUIET osmesa) + + set (OSMESA_INCLUDE_DIR ${PKG_OSMESA_INCLUDE_DIRS}) + set (OSMESA_LIBRARIES ${PKG_OSMESA_LIBRARIES}) + +endif () diff --git a/thirdparty/imgui_suite/glfw/CMake/x86_64-w64-mingw32-clang.cmake b/thirdparty/imgui_suite/glfw/CMake/x86_64-w64-mingw32-clang.cmake new file mode 100644 index 00000000000..60f7914df9c --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/x86_64-w64-mingw32-clang.cmake @@ -0,0 +1,13 @@ +# Define the environment for cross-compiling with 64-bit MinGW-w64 Clang +SET(CMAKE_SYSTEM_NAME Windows) # Target system name +SET(CMAKE_SYSTEM_VERSION 1) +SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-clang") +SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-clang++") +SET(CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres") +SET(CMAKE_RANLIB "x86_64-w64-mingw32-ranlib") + +# Configure the behaviour of the find commands +SET(CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32") +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/thirdparty/imgui_suite/glfw/CMake/x86_64-w64-mingw32.cmake b/thirdparty/imgui_suite/glfw/CMake/x86_64-w64-mingw32.cmake new file mode 100644 index 00000000000..063e845aac4 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMake/x86_64-w64-mingw32.cmake @@ -0,0 +1,13 @@ +# Define the environment for cross-compiling with 64-bit MinGW-w64 GCC +SET(CMAKE_SYSTEM_NAME Windows) # Target system name +SET(CMAKE_SYSTEM_VERSION 1) +SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-gcc") +SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-g++") +SET(CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres") +SET(CMAKE_RANLIB "x86_64-w64-mingw32-ranlib") + +# Configure the behaviour of the find commands +SET(CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32") +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/thirdparty/imgui_suite/glfw/CMakeLists.txt b/thirdparty/imgui_suite/glfw/CMakeLists.txt new file mode 100644 index 00000000000..f5e538bf7cc --- /dev/null +++ b/thirdparty/imgui_suite/glfw/CMakeLists.txt @@ -0,0 +1,179 @@ +cmake_minimum_required(VERSION 3.4...3.20 FATAL_ERROR) + +project(GLFW VERSION 3.4.0 LANGUAGES C) + +set(CMAKE_LEGACY_CYGWIN_WIN32 OFF) + +if (POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() + +if (POLICY CMP0069) + cmake_policy(SET CMP0069 NEW) +endif() + +if (POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() + +set_property(GLOBAL PROPERTY USE_FOLDERS ON) + +if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) + set(GLFW_STANDALONE TRUE) +endif() + +option(BUILD_SHARED_LIBS "Build shared libraries" OFF) +option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ${GLFW_STANDALONE}) +option(GLFW_BUILD_TESTS "Build the GLFW test programs" ${GLFW_STANDALONE}) +option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON) +option(GLFW_INSTALL "Generate installation target" ON) + +include(GNUInstallDirs) +include(CMakeDependentOption) + +if (GLFW_USE_OSMESA) + message(FATAL_ERROR "GLFW_USE_OSMESA has been removed; set the GLFW_PLATFORM init hint") +endif() + +cmake_dependent_option(GLFW_BUILD_WIN32 "Build support for Win32" ON "WIN32" OFF) +cmake_dependent_option(GLFW_BUILD_COCOA "Build support for Cocoa" ON "APPLE" OFF) +cmake_dependent_option(GLFW_BUILD_X11 "Build support for X11" ON "UNIX;NOT APPLE" OFF) +cmake_dependent_option(GLFW_BUILD_WAYLAND "Build support for Wayland" + "${GLFW_USE_WAYLAND}" "UNIX;NOT APPLE" OFF) + +cmake_dependent_option(GLFW_USE_HYBRID_HPG "Force use of high-performance GPU on hybrid systems" OFF + "WIN32" OFF) +cmake_dependent_option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON + "MSVC" OFF) + +set(GLFW_LIBRARY_TYPE "${GLFW_LIBRARY_TYPE}" CACHE STRING + "Library type override for GLFW (SHARED, STATIC, OBJECT, or empty to follow BUILD_SHARED_LIBS)") + +if (GLFW_LIBRARY_TYPE) + if (GLFW_LIBRARY_TYPE STREQUAL "SHARED") + set(GLFW_BUILD_SHARED_LIBRARY TRUE) + else() + set(GLFW_BUILD_SHARED_LIBRARY FALSE) + endif() +else() + set(GLFW_BUILD_SHARED_LIBRARY ${BUILD_SHARED_LIBS}) +endif() + +list(APPEND CMAKE_MODULE_PATH "${GLFW_SOURCE_DIR}/CMake/modules") + +find_package(Threads REQUIRED) + +if (GLFW_BUILD_DOCS) + set(DOXYGEN_SKIP_DOT TRUE) + find_package(Doxygen) +endif() + +#-------------------------------------------------------------------- +# Report backend selection +#-------------------------------------------------------------------- +if (GLFW_BUILD_WIN32) + message(STATUS "Including Win32 support") +endif() +if (GLFW_BUILD_COCOA) + message(STATUS "Including Cocoa support") +endif() +if (GLFW_BUILD_WAYLAND) + message(STATUS "Including Wayland support") +endif() +if (GLFW_BUILD_X11) + message(STATUS "Including X11 support") +endif() + +#-------------------------------------------------------------------- +# Apply Microsoft C runtime library option +# This is here because it also applies to tests and examples +#-------------------------------------------------------------------- +if (MSVC AND NOT USE_MSVC_RUNTIME_LIBRARY_DLL) + if (CMAKE_VERSION VERSION_LESS 3.15) + foreach (flag CMAKE_C_FLAGS + CMAKE_C_FLAGS_DEBUG + CMAKE_C_FLAGS_RELEASE + CMAKE_C_FLAGS_MINSIZEREL + CMAKE_C_FLAGS_RELWITHDEBINFO) + + if (flag MATCHES "/MD") + string(REGEX REPLACE "/MD" "/MT" ${flag} "${${flag}}") + endif() + if (flag MATCHES "/MDd") + string(REGEX REPLACE "/MDd" "/MTd" ${flag} "${${flag}}") + endif() + + endforeach() + else() + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") + endif() +endif() + +#-------------------------------------------------------------------- +# Create generated files +#-------------------------------------------------------------------- +include(CMakePackageConfigHelpers) + +set(GLFW_CONFIG_PATH "${CMAKE_INSTALL_LIBDIR}/cmake/glfw3") + +configure_package_config_file(CMake/glfw3Config.cmake.in + src/glfw3Config.cmake + INSTALL_DESTINATION "${GLFW_CONFIG_PATH}" + NO_CHECK_REQUIRED_COMPONENTS_MACRO) + +write_basic_package_version_file(src/glfw3ConfigVersion.cmake + VERSION ${GLFW_VERSION} + COMPATIBILITY SameMajorVersion) + +#-------------------------------------------------------------------- +# Add subdirectories +#-------------------------------------------------------------------- +add_subdirectory(src) + +if (GLFW_BUILD_EXAMPLES) + add_subdirectory(examples) +endif() + +if (GLFW_BUILD_TESTS) + add_subdirectory(tests) +endif() + +if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) + add_subdirectory(docs) +endif() + +#-------------------------------------------------------------------- +# Install files other than the library +# The library is installed by src/CMakeLists.txt +#-------------------------------------------------------------------- +if (GLFW_INSTALL) + install(DIRECTORY include/GLFW DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILES_MATCHING PATTERN glfw3.h PATTERN glfw3native.h) + + install(FILES "${GLFW_BINARY_DIR}/src/glfw3Config.cmake" + "${GLFW_BINARY_DIR}/src/glfw3ConfigVersion.cmake" + DESTINATION "${GLFW_CONFIG_PATH}") + + install(EXPORT glfwTargets FILE glfw3Targets.cmake + EXPORT_LINK_INTERFACE_LIBRARIES + DESTINATION "${GLFW_CONFIG_PATH}") + install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + + if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) + install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html" + DESTINATION "${CMAKE_INSTALL_DOCDIR}") + endif() + + # Only generate this target if no higher-level project already has + if (NOT TARGET uninstall) + configure_file(CMake/cmake_uninstall.cmake.in + cmake_uninstall.cmake IMMEDIATE @ONLY) + + add_custom_target(uninstall + "${CMAKE_COMMAND}" -P + "${GLFW_BINARY_DIR}/cmake_uninstall.cmake") + set_target_properties(uninstall PROPERTIES FOLDER "GLFW3") + endif() +endif() + diff --git a/thirdparty/imgui_suite/glfw/include/GLFW/glfw3.h b/thirdparty/imgui_suite/glfw/include/GLFW/glfw3.h new file mode 100644 index 00000000000..2687546570d --- /dev/null +++ b/thirdparty/imgui_suite/glfw/include/GLFW/glfw3.h @@ -0,0 +1,6423 @@ +/************************************************************************* + * GLFW 3.4 - www.glfw.org + * A library for OpenGL, window and input + *------------------------------------------------------------------------ + * Copyright (c) 2002-2006 Marcus Geelnard + * Copyright (c) 2006-2019 Camilla Löwy + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would + * be appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must not + * be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source + * distribution. + * + *************************************************************************/ + +#ifndef _glfw3_h_ +#define _glfw3_h_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/************************************************************************* + * Doxygen documentation + *************************************************************************/ + +/*! @file glfw3.h + * @brief The header of the GLFW 3 API. + * + * This is the header file of the GLFW 3 API. It defines all its types and + * declares all its functions. + * + * For more information about how to use this file, see @ref build_include. + */ +/*! @defgroup context Context reference + * @brief Functions and types related to OpenGL and OpenGL ES contexts. + * + * This is the reference documentation for OpenGL and OpenGL ES context related + * functions. For more task-oriented information, see the @ref context_guide. + */ +/*! @defgroup vulkan Vulkan support reference + * @brief Functions and types related to Vulkan. + * + * This is the reference documentation for Vulkan related functions and types. + * For more task-oriented information, see the @ref vulkan_guide. + */ +/*! @defgroup init Initialization, version and error reference + * @brief Functions and types related to initialization and error handling. + * + * This is the reference documentation for initialization and termination of + * the library, version management and error handling. For more task-oriented + * information, see the @ref intro_guide. + */ +/*! @defgroup input Input reference + * @brief Functions and types related to input handling. + * + * This is the reference documentation for input related functions and types. + * For more task-oriented information, see the @ref input_guide. + */ +/*! @defgroup monitor Monitor reference + * @brief Functions and types related to monitors. + * + * This is the reference documentation for monitor related functions and types. + * For more task-oriented information, see the @ref monitor_guide. + */ +/*! @defgroup window Window reference + * @brief Functions and types related to windows. + * + * This is the reference documentation for window related functions and types, + * including creation, deletion and event polling. For more task-oriented + * information, see the @ref window_guide. + */ + + +/************************************************************************* + * Compiler- and platform-specific preprocessor work + *************************************************************************/ + +/* If we are we on Windows, we want a single define for it. + */ +#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)) + #define _WIN32 +#endif /* _WIN32 */ + +/* Include because most Windows GLU headers need wchar_t and + * the macOS OpenGL header blocks the definition of ptrdiff_t by glext.h. + * Include it unconditionally to avoid surprising side-effects. + */ +#include + +/* Include because it is needed by Vulkan and related functions. + * Include it unconditionally to avoid surprising side-effects. + */ +#include + +#if defined(GLFW_INCLUDE_VULKAN) + #include +#endif /* Vulkan header */ + +/* The Vulkan header may have indirectly included windows.h (because of + * VK_USE_PLATFORM_WIN32_KHR) so we offer our replacement symbols after it. + */ + +/* It is customary to use APIENTRY for OpenGL function pointer declarations on + * all platforms. Additionally, the Windows OpenGL header needs APIENTRY. + */ +#if !defined(APIENTRY) + #if defined(_WIN32) + #define APIENTRY __stdcall + #else + #define APIENTRY + #endif + #define GLFW_APIENTRY_DEFINED +#endif /* APIENTRY */ + +/* Some Windows OpenGL headers need this. + */ +#if !defined(WINGDIAPI) && defined(_WIN32) + #define WINGDIAPI __declspec(dllimport) + #define GLFW_WINGDIAPI_DEFINED +#endif /* WINGDIAPI */ + +/* Some Windows GLU headers need this. + */ +#if !defined(CALLBACK) && defined(_WIN32) + #define CALLBACK __stdcall + #define GLFW_CALLBACK_DEFINED +#endif /* CALLBACK */ + +/* Include the chosen OpenGL or OpenGL ES headers. + */ +#if defined(GLFW_INCLUDE_ES1) + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + +#elif defined(GLFW_INCLUDE_ES2) + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + +#elif defined(GLFW_INCLUDE_ES3) + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + +#elif defined(GLFW_INCLUDE_ES31) + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + +#elif defined(GLFW_INCLUDE_ES32) + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + +#elif defined(GLFW_INCLUDE_GLCOREARB) + + #if defined(__APPLE__) + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif /*GLFW_INCLUDE_GLEXT*/ + + #else /*__APPLE__*/ + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + + #endif /*__APPLE__*/ + +#elif defined(GLFW_INCLUDE_GLU) + + #if defined(__APPLE__) + + #if defined(GLFW_INCLUDE_GLU) + #include + #endif + + #else /*__APPLE__*/ + + #if defined(GLFW_INCLUDE_GLU) + #include + #endif + + #endif /*__APPLE__*/ + +#elif !defined(GLFW_INCLUDE_NONE) && \ + !defined(__gl_h_) && \ + !defined(__gles1_gl_h_) && \ + !defined(__gles2_gl2_h_) && \ + !defined(__gles2_gl3_h_) && \ + !defined(__gles2_gl31_h_) && \ + !defined(__gles2_gl32_h_) && \ + !defined(__gl_glcorearb_h_) && \ + !defined(__gl2_h_) /*legacy*/ && \ + !defined(__gl3_h_) /*legacy*/ && \ + !defined(__gl31_h_) /*legacy*/ && \ + !defined(__gl32_h_) /*legacy*/ && \ + !defined(__glcorearb_h_) /*legacy*/ && \ + !defined(__GL_H__) /*non-standard*/ && \ + !defined(__gltypes_h_) /*non-standard*/ && \ + !defined(__glee_h_) /*non-standard*/ + + #if defined(__APPLE__) + + #if !defined(GLFW_INCLUDE_GLEXT) + #define GL_GLEXT_LEGACY + #endif + #include + + #else /*__APPLE__*/ + + #include + #if defined(GLFW_INCLUDE_GLEXT) + #include + #endif + + #endif /*__APPLE__*/ + +#endif /* OpenGL and OpenGL ES headers */ + +#if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL) + /* GLFW_DLL must be defined by applications that are linking against the DLL + * version of the GLFW library. _GLFW_BUILD_DLL is defined by the GLFW + * configuration header when compiling the DLL version of the library. + */ + #error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined" +#endif + +/* GLFWAPI is used to declare public API functions for export + * from the DLL / shared library / dynamic library. + */ +#if defined(_WIN32) && defined(_GLFW_BUILD_DLL) + /* We are building GLFW as a Win32 DLL */ + #define GLFWAPI __declspec(dllexport) +#elif defined(_WIN32) && defined(GLFW_DLL) + /* We are calling a GLFW Win32 DLL */ + #define GLFWAPI __declspec(dllimport) +#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL) + /* We are building GLFW as a Unix shared library */ + #define GLFWAPI __attribute__((visibility("default"))) +#else + #define GLFWAPI +#endif + + +/************************************************************************* + * GLFW API tokens + *************************************************************************/ + +/*! @name GLFW version macros + * @{ */ +/*! @brief The major version number of the GLFW header. + * + * The major version number of the GLFW header. This is incremented when the + * API is changed in non-compatible ways. + * @ingroup init + */ +#define GLFW_VERSION_MAJOR 3 +/*! @brief The minor version number of the GLFW header. + * + * The minor version number of the GLFW header. This is incremented when + * features are added to the API but it remains backward-compatible. + * @ingroup init + */ +#define GLFW_VERSION_MINOR 4 +/*! @brief The revision number of the GLFW header. + * + * The revision number of the GLFW header. This is incremented when a bug fix + * release is made that does not contain any API changes. + * @ingroup init + */ +#define GLFW_VERSION_REVISION 0 +/*! @} */ + +/*! @brief One. + * + * This is only semantic sugar for the number 1. You can instead use `1` or + * `true` or `_True` or `GL_TRUE` or `VK_TRUE` or anything else that is equal + * to one. + * + * @ingroup init + */ +#define GLFW_TRUE 1 +/*! @brief Zero. + * + * This is only semantic sugar for the number 0. You can instead use `0` or + * `false` or `_False` or `GL_FALSE` or `VK_FALSE` or anything else that is + * equal to zero. + * + * @ingroup init + */ +#define GLFW_FALSE 0 + +/*! @name Key and button actions + * @{ */ +/*! @brief The key or mouse button was released. + * + * The key or mouse button was released. + * + * @ingroup input + */ +#define GLFW_RELEASE 0 +/*! @brief The key or mouse button was pressed. + * + * The key or mouse button was pressed. + * + * @ingroup input + */ +#define GLFW_PRESS 1 +/*! @brief The key was held down until it repeated. + * + * The key was held down until it repeated. + * + * @ingroup input + */ +#define GLFW_REPEAT 2 +/*! @} */ + +/*! @defgroup hat_state Joystick hat states + * @brief Joystick hat states. + * + * See [joystick hat input](@ref joystick_hat) for how these are used. + * + * @ingroup input + * @{ */ +#define GLFW_HAT_CENTERED 0 +#define GLFW_HAT_UP 1 +#define GLFW_HAT_RIGHT 2 +#define GLFW_HAT_DOWN 4 +#define GLFW_HAT_LEFT 8 +#define GLFW_HAT_RIGHT_UP (GLFW_HAT_RIGHT | GLFW_HAT_UP) +#define GLFW_HAT_RIGHT_DOWN (GLFW_HAT_RIGHT | GLFW_HAT_DOWN) +#define GLFW_HAT_LEFT_UP (GLFW_HAT_LEFT | GLFW_HAT_UP) +#define GLFW_HAT_LEFT_DOWN (GLFW_HAT_LEFT | GLFW_HAT_DOWN) +/*! @} */ + +/*! @defgroup keys Keyboard keys + * @brief Keyboard key IDs. + * + * See [key input](@ref input_key) for how these are used. + * + * These key codes are inspired by the _USB HID Usage Tables v1.12_ (p. 53-60), + * but re-arranged to map to 7-bit ASCII for printable keys (function keys are + * put in the 256+ range). + * + * The naming of the key codes follow these rules: + * - The US keyboard layout is used + * - Names of printable alphanumeric characters are used (e.g. "A", "R", + * "3", etc.) + * - For non-alphanumeric characters, Unicode:ish names are used (e.g. + * "COMMA", "LEFT_SQUARE_BRACKET", etc.). Note that some names do not + * correspond to the Unicode standard (usually for brevity) + * - Keys that lack a clear US mapping are named "WORLD_x" + * - For non-printable keys, custom names are used (e.g. "F4", + * "BACKSPACE", etc.) + * + * @ingroup input + * @{ + */ + +/* The unknown key */ +#define GLFW_KEY_UNKNOWN -1 + +/* Printable keys */ +#define GLFW_KEY_SPACE 32 +#define GLFW_KEY_APOSTROPHE 39 /* ' */ +#define GLFW_KEY_COMMA 44 /* , */ +#define GLFW_KEY_MINUS 45 /* - */ +#define GLFW_KEY_PERIOD 46 /* . */ +#define GLFW_KEY_SLASH 47 /* / */ +#define GLFW_KEY_0 48 +#define GLFW_KEY_1 49 +#define GLFW_KEY_2 50 +#define GLFW_KEY_3 51 +#define GLFW_KEY_4 52 +#define GLFW_KEY_5 53 +#define GLFW_KEY_6 54 +#define GLFW_KEY_7 55 +#define GLFW_KEY_8 56 +#define GLFW_KEY_9 57 +#define GLFW_KEY_SEMICOLON 59 /* ; */ +#define GLFW_KEY_EQUAL 61 /* = */ +#define GLFW_KEY_A 65 +#define GLFW_KEY_B 66 +#define GLFW_KEY_C 67 +#define GLFW_KEY_D 68 +#define GLFW_KEY_E 69 +#define GLFW_KEY_F 70 +#define GLFW_KEY_G 71 +#define GLFW_KEY_H 72 +#define GLFW_KEY_I 73 +#define GLFW_KEY_J 74 +#define GLFW_KEY_K 75 +#define GLFW_KEY_L 76 +#define GLFW_KEY_M 77 +#define GLFW_KEY_N 78 +#define GLFW_KEY_O 79 +#define GLFW_KEY_P 80 +#define GLFW_KEY_Q 81 +#define GLFW_KEY_R 82 +#define GLFW_KEY_S 83 +#define GLFW_KEY_T 84 +#define GLFW_KEY_U 85 +#define GLFW_KEY_V 86 +#define GLFW_KEY_W 87 +#define GLFW_KEY_X 88 +#define GLFW_KEY_Y 89 +#define GLFW_KEY_Z 90 +#define GLFW_KEY_LEFT_BRACKET 91 /* [ */ +#define GLFW_KEY_BACKSLASH 92 /* \ */ +#define GLFW_KEY_RIGHT_BRACKET 93 /* ] */ +#define GLFW_KEY_GRAVE_ACCENT 96 /* ` */ +#define GLFW_KEY_WORLD_1 161 /* non-US #1 */ +#define GLFW_KEY_WORLD_2 162 /* non-US #2 */ + +/* Function keys */ +#define GLFW_KEY_ESCAPE 256 +#define GLFW_KEY_ENTER 257 +#define GLFW_KEY_TAB 258 +#define GLFW_KEY_BACKSPACE 259 +#define GLFW_KEY_INSERT 260 +#define GLFW_KEY_DELETE 261 +#define GLFW_KEY_RIGHT 262 +#define GLFW_KEY_LEFT 263 +#define GLFW_KEY_DOWN 264 +#define GLFW_KEY_UP 265 +#define GLFW_KEY_PAGE_UP 266 +#define GLFW_KEY_PAGE_DOWN 267 +#define GLFW_KEY_HOME 268 +#define GLFW_KEY_END 269 +#define GLFW_KEY_CAPS_LOCK 280 +#define GLFW_KEY_SCROLL_LOCK 281 +#define GLFW_KEY_NUM_LOCK 282 +#define GLFW_KEY_PRINT_SCREEN 283 +#define GLFW_KEY_PAUSE 284 +#define GLFW_KEY_F1 290 +#define GLFW_KEY_F2 291 +#define GLFW_KEY_F3 292 +#define GLFW_KEY_F4 293 +#define GLFW_KEY_F5 294 +#define GLFW_KEY_F6 295 +#define GLFW_KEY_F7 296 +#define GLFW_KEY_F8 297 +#define GLFW_KEY_F9 298 +#define GLFW_KEY_F10 299 +#define GLFW_KEY_F11 300 +#define GLFW_KEY_F12 301 +#define GLFW_KEY_F13 302 +#define GLFW_KEY_F14 303 +#define GLFW_KEY_F15 304 +#define GLFW_KEY_F16 305 +#define GLFW_KEY_F17 306 +#define GLFW_KEY_F18 307 +#define GLFW_KEY_F19 308 +#define GLFW_KEY_F20 309 +#define GLFW_KEY_F21 310 +#define GLFW_KEY_F22 311 +#define GLFW_KEY_F23 312 +#define GLFW_KEY_F24 313 +#define GLFW_KEY_F25 314 +#define GLFW_KEY_KP_0 320 +#define GLFW_KEY_KP_1 321 +#define GLFW_KEY_KP_2 322 +#define GLFW_KEY_KP_3 323 +#define GLFW_KEY_KP_4 324 +#define GLFW_KEY_KP_5 325 +#define GLFW_KEY_KP_6 326 +#define GLFW_KEY_KP_7 327 +#define GLFW_KEY_KP_8 328 +#define GLFW_KEY_KP_9 329 +#define GLFW_KEY_KP_DECIMAL 330 +#define GLFW_KEY_KP_DIVIDE 331 +#define GLFW_KEY_KP_MULTIPLY 332 +#define GLFW_KEY_KP_SUBTRACT 333 +#define GLFW_KEY_KP_ADD 334 +#define GLFW_KEY_KP_ENTER 335 +#define GLFW_KEY_KP_EQUAL 336 +#define GLFW_KEY_LEFT_SHIFT 340 +#define GLFW_KEY_LEFT_CONTROL 341 +#define GLFW_KEY_LEFT_ALT 342 +#define GLFW_KEY_LEFT_SUPER 343 +#define GLFW_KEY_RIGHT_SHIFT 344 +#define GLFW_KEY_RIGHT_CONTROL 345 +#define GLFW_KEY_RIGHT_ALT 346 +#define GLFW_KEY_RIGHT_SUPER 347 +#define GLFW_KEY_MENU 348 + +#define GLFW_KEY_LAST GLFW_KEY_MENU + +/*! @} */ + +/*! @defgroup mods Modifier key flags + * @brief Modifier key flags. + * + * See [key input](@ref input_key) for how these are used. + * + * @ingroup input + * @{ */ + +/*! @brief If this bit is set one or more Shift keys were held down. + * + * If this bit is set one or more Shift keys were held down. + */ +#define GLFW_MOD_SHIFT 0x0001 +/*! @brief If this bit is set one or more Control keys were held down. + * + * If this bit is set one or more Control keys were held down. + */ +#define GLFW_MOD_CONTROL 0x0002 +/*! @brief If this bit is set one or more Alt keys were held down. + * + * If this bit is set one or more Alt keys were held down. + */ +#define GLFW_MOD_ALT 0x0004 +/*! @brief If this bit is set one or more Super keys were held down. + * + * If this bit is set one or more Super keys were held down. + */ +#define GLFW_MOD_SUPER 0x0008 +/*! @brief If this bit is set the Caps Lock key is enabled. + * + * If this bit is set the Caps Lock key is enabled and the @ref + * GLFW_LOCK_KEY_MODS input mode is set. + */ +#define GLFW_MOD_CAPS_LOCK 0x0010 +/*! @brief If this bit is set the Num Lock key is enabled. + * + * If this bit is set the Num Lock key is enabled and the @ref + * GLFW_LOCK_KEY_MODS input mode is set. + */ +#define GLFW_MOD_NUM_LOCK 0x0020 + +/*! @} */ + +/*! @defgroup buttons Mouse buttons + * @brief Mouse button IDs. + * + * See [mouse button input](@ref input_mouse_button) for how these are used. + * + * @ingroup input + * @{ */ +#define GLFW_MOUSE_BUTTON_1 0 +#define GLFW_MOUSE_BUTTON_2 1 +#define GLFW_MOUSE_BUTTON_3 2 +#define GLFW_MOUSE_BUTTON_4 3 +#define GLFW_MOUSE_BUTTON_5 4 +#define GLFW_MOUSE_BUTTON_6 5 +#define GLFW_MOUSE_BUTTON_7 6 +#define GLFW_MOUSE_BUTTON_8 7 +#define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8 +#define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1 +#define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2 +#define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3 +/*! @} */ + +/*! @defgroup joysticks Joysticks + * @brief Joystick IDs. + * + * See [joystick input](@ref joystick) for how these are used. + * + * @ingroup input + * @{ */ +#define GLFW_JOYSTICK_1 0 +#define GLFW_JOYSTICK_2 1 +#define GLFW_JOYSTICK_3 2 +#define GLFW_JOYSTICK_4 3 +#define GLFW_JOYSTICK_5 4 +#define GLFW_JOYSTICK_6 5 +#define GLFW_JOYSTICK_7 6 +#define GLFW_JOYSTICK_8 7 +#define GLFW_JOYSTICK_9 8 +#define GLFW_JOYSTICK_10 9 +#define GLFW_JOYSTICK_11 10 +#define GLFW_JOYSTICK_12 11 +#define GLFW_JOYSTICK_13 12 +#define GLFW_JOYSTICK_14 13 +#define GLFW_JOYSTICK_15 14 +#define GLFW_JOYSTICK_16 15 +#define GLFW_JOYSTICK_LAST GLFW_JOYSTICK_16 +/*! @} */ + +/*! @defgroup gamepad_buttons Gamepad buttons + * @brief Gamepad buttons. + * + * See @ref gamepad for how these are used. + * + * @ingroup input + * @{ */ +#define GLFW_GAMEPAD_BUTTON_A 0 +#define GLFW_GAMEPAD_BUTTON_B 1 +#define GLFW_GAMEPAD_BUTTON_X 2 +#define GLFW_GAMEPAD_BUTTON_Y 3 +#define GLFW_GAMEPAD_BUTTON_LEFT_BUMPER 4 +#define GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER 5 +#define GLFW_GAMEPAD_BUTTON_BACK 6 +#define GLFW_GAMEPAD_BUTTON_START 7 +#define GLFW_GAMEPAD_BUTTON_GUIDE 8 +#define GLFW_GAMEPAD_BUTTON_LEFT_THUMB 9 +#define GLFW_GAMEPAD_BUTTON_RIGHT_THUMB 10 +#define GLFW_GAMEPAD_BUTTON_DPAD_UP 11 +#define GLFW_GAMEPAD_BUTTON_DPAD_RIGHT 12 +#define GLFW_GAMEPAD_BUTTON_DPAD_DOWN 13 +#define GLFW_GAMEPAD_BUTTON_DPAD_LEFT 14 +#define GLFW_GAMEPAD_BUTTON_LAST GLFW_GAMEPAD_BUTTON_DPAD_LEFT + +#define GLFW_GAMEPAD_BUTTON_CROSS GLFW_GAMEPAD_BUTTON_A +#define GLFW_GAMEPAD_BUTTON_CIRCLE GLFW_GAMEPAD_BUTTON_B +#define GLFW_GAMEPAD_BUTTON_SQUARE GLFW_GAMEPAD_BUTTON_X +#define GLFW_GAMEPAD_BUTTON_TRIANGLE GLFW_GAMEPAD_BUTTON_Y +/*! @} */ + +/*! @defgroup gamepad_axes Gamepad axes + * @brief Gamepad axes. + * + * See @ref gamepad for how these are used. + * + * @ingroup input + * @{ */ +#define GLFW_GAMEPAD_AXIS_LEFT_X 0 +#define GLFW_GAMEPAD_AXIS_LEFT_Y 1 +#define GLFW_GAMEPAD_AXIS_RIGHT_X 2 +#define GLFW_GAMEPAD_AXIS_RIGHT_Y 3 +#define GLFW_GAMEPAD_AXIS_LEFT_TRIGGER 4 +#define GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER 5 +#define GLFW_GAMEPAD_AXIS_LAST GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER +/*! @} */ + +/*! @defgroup errors Error codes + * @brief Error codes. + * + * See [error handling](@ref error_handling) for how these are used. + * + * @ingroup init + * @{ */ +/*! @brief No error has occurred. + * + * No error has occurred. + * + * @analysis Yay. + */ +#define GLFW_NO_ERROR 0 +/*! @brief GLFW has not been initialized. + * + * This occurs if a GLFW function was called that must not be called unless the + * library is [initialized](@ref intro_init). + * + * @analysis Application programmer error. Initialize GLFW before calling any + * function that requires initialization. + */ +#define GLFW_NOT_INITIALIZED 0x00010001 +/*! @brief No context is current for this thread. + * + * This occurs if a GLFW function was called that needs and operates on the + * current OpenGL or OpenGL ES context but no context is current on the calling + * thread. One such function is @ref glfwSwapInterval. + * + * @analysis Application programmer error. Ensure a context is current before + * calling functions that require a current context. + */ +#define GLFW_NO_CURRENT_CONTEXT 0x00010002 +/*! @brief One of the arguments to the function was an invalid enum value. + * + * One of the arguments to the function was an invalid enum value, for example + * requesting @ref GLFW_RED_BITS with @ref glfwGetWindowAttrib. + * + * @analysis Application programmer error. Fix the offending call. + */ +#define GLFW_INVALID_ENUM 0x00010003 +/*! @brief One of the arguments to the function was an invalid value. + * + * One of the arguments to the function was an invalid value, for example + * requesting a non-existent OpenGL or OpenGL ES version like 2.7. + * + * Requesting a valid but unavailable OpenGL or OpenGL ES version will instead + * result in a @ref GLFW_VERSION_UNAVAILABLE error. + * + * @analysis Application programmer error. Fix the offending call. + */ +#define GLFW_INVALID_VALUE 0x00010004 +/*! @brief A memory allocation failed. + * + * A memory allocation failed. + * + * @analysis A bug in GLFW or the underlying operating system. Report the bug + * to our [issue tracker](https://github.com/glfw/glfw/issues). + */ +#define GLFW_OUT_OF_MEMORY 0x00010005 +/*! @brief GLFW could not find support for the requested API on the system. + * + * GLFW could not find support for the requested API on the system. + * + * @analysis The installed graphics driver does not support the requested + * API, or does not support it via the chosen context creation API. + * Below are a few examples. + * + * @par + * Some pre-installed Windows graphics drivers do not support OpenGL. AMD only + * supports OpenGL ES via EGL, while Nvidia and Intel only support it via + * a WGL or GLX extension. macOS does not provide OpenGL ES at all. The Mesa + * EGL, OpenGL and OpenGL ES libraries do not interface with the Nvidia binary + * driver. Older graphics drivers do not support Vulkan. + */ +#define GLFW_API_UNAVAILABLE 0x00010006 +/*! @brief The requested OpenGL or OpenGL ES version is not available. + * + * The requested OpenGL or OpenGL ES version (including any requested context + * or framebuffer hints) is not available on this machine. + * + * @analysis The machine does not support your requirements. If your + * application is sufficiently flexible, downgrade your requirements and try + * again. Otherwise, inform the user that their machine does not match your + * requirements. + * + * @par + * Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if 5.0 + * comes out before the 4.x series gets that far, also fail with this error and + * not @ref GLFW_INVALID_VALUE, because GLFW cannot know what future versions + * will exist. + */ +#define GLFW_VERSION_UNAVAILABLE 0x00010007 +/*! @brief A platform-specific error occurred that does not match any of the + * more specific categories. + * + * A platform-specific error occurred that does not match any of the more + * specific categories. + * + * @analysis A bug or configuration error in GLFW, the underlying operating + * system or its drivers, or a lack of required resources. Report the issue to + * our [issue tracker](https://github.com/glfw/glfw/issues). + */ +#define GLFW_PLATFORM_ERROR 0x00010008 +/*! @brief The requested format is not supported or available. + * + * If emitted during window creation, the requested pixel format is not + * supported. + * + * If emitted when querying the clipboard, the contents of the clipboard could + * not be converted to the requested format. + * + * @analysis If emitted during window creation, one or more + * [hard constraints](@ref window_hints_hard) did not match any of the + * available pixel formats. If your application is sufficiently flexible, + * downgrade your requirements and try again. Otherwise, inform the user that + * their machine does not match your requirements. + * + * @par + * If emitted when querying the clipboard, ignore the error or report it to + * the user, as appropriate. + */ +#define GLFW_FORMAT_UNAVAILABLE 0x00010009 +/*! @brief The specified window does not have an OpenGL or OpenGL ES context. + * + * A window that does not have an OpenGL or OpenGL ES context was passed to + * a function that requires it to have one. + * + * @analysis Application programmer error. Fix the offending call. + */ +#define GLFW_NO_WINDOW_CONTEXT 0x0001000A +/*! @brief The specified cursor shape is not available. + * + * The specified standard cursor shape is not available, either because the + * current platform cursor theme does not provide it or because it is not + * available on the platform. + * + * @analysis Platform or system settings limitation. Pick another + * [standard cursor shape](@ref shapes) or create a + * [custom cursor](@ref cursor_custom). + */ +#define GLFW_CURSOR_UNAVAILABLE 0x0001000B +/*! @brief The requested feature is not provided by the platform. + * + * The requested feature is not provided by the platform, so GLFW is unable to + * implement it. The documentation for each function notes if it could emit + * this error. + * + * @analysis Platform or platform version limitation. The error can be ignored + * unless the feature is critical to the application. + * + * @par + * A function call that emits this error has no effect other than the error and + * updating any existing out parameters. + */ +#define GLFW_FEATURE_UNAVAILABLE 0x0001000C +/*! @brief The requested feature is not implemented for the platform. + * + * The requested feature has not yet been implemented in GLFW for this platform. + * + * @analysis An incomplete implementation of GLFW for this platform, hopefully + * fixed in a future release. The error can be ignored unless the feature is + * critical to the application. + * + * @par + * A function call that emits this error has no effect other than the error and + * updating any existing out parameters. + */ +#define GLFW_FEATURE_UNIMPLEMENTED 0x0001000D +/*! @brief Platform unavailable or no matching platform was found. + * + * If emitted during initialization, no matching platform was found. If @ref + * GLFW_PLATFORM is set to `GLFW_ANY_PLATFORM`, GLFW could not detect any of the + * platforms supported by this library binary, except for the Null platform. If set to + * a specific platform, it is either not supported by this library binary or GLFW was not + * able to detect it. + * + * If emitted by a native access function, GLFW was initialized for a different platform + * than the function is for. + * + * @analysis Failure to detect any platform usually only happens on non-macOS Unix + * systems, either when no window system is running or the program was run from + * a terminal that does not have the necessary environment variables. Fall back to + * a different platform if possible or notify the user that no usable platform was + * detected. + * + * Failure to detect a specific platform may have the same cause as above or be because + * support for that platform was not compiled in. Call @ref glfwPlatformSupported to + * check whether a specific platform is supported by a library binary. + */ +#define GLFW_PLATFORM_UNAVAILABLE 0x0001000E +/*! @} */ + +/*! @addtogroup window + * @{ */ +/*! @brief Input focus window hint and attribute + * + * Input focus [window hint](@ref GLFW_FOCUSED_hint) or + * [window attribute](@ref GLFW_FOCUSED_attrib). + */ +#define GLFW_FOCUSED 0x00020001 +/*! @brief Window iconification window attribute + * + * Window iconification [window attribute](@ref GLFW_ICONIFIED_attrib). + */ +#define GLFW_ICONIFIED 0x00020002 +/*! @brief Window resize-ability window hint and attribute + * + * Window resize-ability [window hint](@ref GLFW_RESIZABLE_hint) and + * [window attribute](@ref GLFW_RESIZABLE_attrib). + */ +#define GLFW_RESIZABLE 0x00020003 +/*! @brief Window visibility window hint and attribute + * + * Window visibility [window hint](@ref GLFW_VISIBLE_hint) and + * [window attribute](@ref GLFW_VISIBLE_attrib). + */ +#define GLFW_VISIBLE 0x00020004 +/*! @brief Window decoration window hint and attribute + * + * Window decoration [window hint](@ref GLFW_DECORATED_hint) and + * [window attribute](@ref GLFW_DECORATED_attrib). + */ +#define GLFW_DECORATED 0x00020005 +/*! @brief Window auto-iconification window hint and attribute + * + * Window auto-iconification [window hint](@ref GLFW_AUTO_ICONIFY_hint) and + * [window attribute](@ref GLFW_AUTO_ICONIFY_attrib). + */ +#define GLFW_AUTO_ICONIFY 0x00020006 +/*! @brief Window decoration window hint and attribute + * + * Window decoration [window hint](@ref GLFW_FLOATING_hint) and + * [window attribute](@ref GLFW_FLOATING_attrib). + */ +#define GLFW_FLOATING 0x00020007 +/*! @brief Window maximization window hint and attribute + * + * Window maximization [window hint](@ref GLFW_MAXIMIZED_hint) and + * [window attribute](@ref GLFW_MAXIMIZED_attrib). + */ +#define GLFW_MAXIMIZED 0x00020008 +/*! @brief Cursor centering window hint + * + * Cursor centering [window hint](@ref GLFW_CENTER_CURSOR_hint). + */ +#define GLFW_CENTER_CURSOR 0x00020009 +/*! @brief Window framebuffer transparency hint and attribute + * + * Window framebuffer transparency + * [window hint](@ref GLFW_TRANSPARENT_FRAMEBUFFER_hint) and + * [window attribute](@ref GLFW_TRANSPARENT_FRAMEBUFFER_attrib). + */ +#define GLFW_TRANSPARENT_FRAMEBUFFER 0x0002000A +/*! @brief Mouse cursor hover window attribute. + * + * Mouse cursor hover [window attribute](@ref GLFW_HOVERED_attrib). + */ +#define GLFW_HOVERED 0x0002000B +/*! @brief Input focus on calling show window hint and attribute + * + * Input focus [window hint](@ref GLFW_FOCUS_ON_SHOW_hint) or + * [window attribute](@ref GLFW_FOCUS_ON_SHOW_attrib). + */ +#define GLFW_FOCUS_ON_SHOW 0x0002000C + +/*! @brief Mouse input transparency window hint and attribute + * + * Mouse input transparency [window hint](@ref GLFW_MOUSE_PASSTHROUGH_hint) or + * [window attribute](@ref GLFW_MOUSE_PASSTHROUGH_attrib). + */ +#define GLFW_MOUSE_PASSTHROUGH 0x0002000D + +/*! @brief Initial position x-coordinate window hint. + * + * Initial position x-coordinate [window hint](@ref GLFW_POSITION_X). + */ +#define GLFW_POSITION_X 0x0002000E + +/*! @brief Initial position y-coordinate window hint. + * + * Initial position y-coordinate [window hint](@ref GLFW_POSITION_Y). + */ +#define GLFW_POSITION_Y 0x0002000F + +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_RED_BITS). + */ +#define GLFW_RED_BITS 0x00021001 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_GREEN_BITS). + */ +#define GLFW_GREEN_BITS 0x00021002 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_BLUE_BITS). + */ +#define GLFW_BLUE_BITS 0x00021003 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_ALPHA_BITS). + */ +#define GLFW_ALPHA_BITS 0x00021004 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_DEPTH_BITS). + */ +#define GLFW_DEPTH_BITS 0x00021005 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_STENCIL_BITS). + */ +#define GLFW_STENCIL_BITS 0x00021006 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_ACCUM_RED_BITS). + */ +#define GLFW_ACCUM_RED_BITS 0x00021007 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_ACCUM_GREEN_BITS). + */ +#define GLFW_ACCUM_GREEN_BITS 0x00021008 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_ACCUM_BLUE_BITS). + */ +#define GLFW_ACCUM_BLUE_BITS 0x00021009 +/*! @brief Framebuffer bit depth hint. + * + * Framebuffer bit depth [hint](@ref GLFW_ACCUM_ALPHA_BITS). + */ +#define GLFW_ACCUM_ALPHA_BITS 0x0002100A +/*! @brief Framebuffer auxiliary buffer hint. + * + * Framebuffer auxiliary buffer [hint](@ref GLFW_AUX_BUFFERS). + */ +#define GLFW_AUX_BUFFERS 0x0002100B +/*! @brief OpenGL stereoscopic rendering hint. + * + * OpenGL stereoscopic rendering [hint](@ref GLFW_STEREO). + */ +#define GLFW_STEREO 0x0002100C +/*! @brief Framebuffer MSAA samples hint. + * + * Framebuffer MSAA samples [hint](@ref GLFW_SAMPLES). + */ +#define GLFW_SAMPLES 0x0002100D +/*! @brief Framebuffer sRGB hint. + * + * Framebuffer sRGB [hint](@ref GLFW_SRGB_CAPABLE). + */ +#define GLFW_SRGB_CAPABLE 0x0002100E +/*! @brief Monitor refresh rate hint. + * + * Monitor refresh rate [hint](@ref GLFW_REFRESH_RATE). + */ +#define GLFW_REFRESH_RATE 0x0002100F +/*! @brief Framebuffer double buffering hint and attribute. + * + * Framebuffer double buffering [hint](@ref GLFW_DOUBLEBUFFER_hint) and + * [attribute](@ref GLFW_DOUBLEBUFFER_attrib). + */ +#define GLFW_DOUBLEBUFFER 0x00021010 + +/*! @brief Context client API hint and attribute. + * + * Context client API [hint](@ref GLFW_CLIENT_API_hint) and + * [attribute](@ref GLFW_CLIENT_API_attrib). + */ +#define GLFW_CLIENT_API 0x00022001 +/*! @brief Context client API major version hint and attribute. + * + * Context client API major version [hint](@ref GLFW_CONTEXT_VERSION_MAJOR_hint) + * and [attribute](@ref GLFW_CONTEXT_VERSION_MAJOR_attrib). + */ +#define GLFW_CONTEXT_VERSION_MAJOR 0x00022002 +/*! @brief Context client API minor version hint and attribute. + * + * Context client API minor version [hint](@ref GLFW_CONTEXT_VERSION_MINOR_hint) + * and [attribute](@ref GLFW_CONTEXT_VERSION_MINOR_attrib). + */ +#define GLFW_CONTEXT_VERSION_MINOR 0x00022003 +/*! @brief Context client API revision number attribute. + * + * Context client API revision number + * [attribute](@ref GLFW_CONTEXT_REVISION_attrib). + */ +#define GLFW_CONTEXT_REVISION 0x00022004 +/*! @brief Context robustness hint and attribute. + * + * Context client API revision number [hint](@ref GLFW_CONTEXT_ROBUSTNESS_hint) + * and [attribute](@ref GLFW_CONTEXT_ROBUSTNESS_attrib). + */ +#define GLFW_CONTEXT_ROBUSTNESS 0x00022005 +/*! @brief OpenGL forward-compatibility hint and attribute. + * + * OpenGL forward-compatibility [hint](@ref GLFW_OPENGL_FORWARD_COMPAT_hint) + * and [attribute](@ref GLFW_OPENGL_FORWARD_COMPAT_attrib). + */ +#define GLFW_OPENGL_FORWARD_COMPAT 0x00022006 +/*! @brief Debug mode context hint and attribute. + * + * Debug mode context [hint](@ref GLFW_CONTEXT_DEBUG_hint) and + * [attribute](@ref GLFW_CONTEXT_DEBUG_attrib). + */ +#define GLFW_CONTEXT_DEBUG 0x00022007 +/*! @brief Legacy name for compatibility. + * + * This is an alias for compatibility with earlier versions. + */ +#define GLFW_OPENGL_DEBUG_CONTEXT GLFW_CONTEXT_DEBUG +/*! @brief OpenGL profile hint and attribute. + * + * OpenGL profile [hint](@ref GLFW_OPENGL_PROFILE_hint) and + * [attribute](@ref GLFW_OPENGL_PROFILE_attrib). + */ +#define GLFW_OPENGL_PROFILE 0x00022008 +/*! @brief Context flush-on-release hint and attribute. + * + * Context flush-on-release [hint](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_hint) and + * [attribute](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_attrib). + */ +#define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009 +/*! @brief Context error suppression hint and attribute. + * + * Context error suppression [hint](@ref GLFW_CONTEXT_NO_ERROR_hint) and + * [attribute](@ref GLFW_CONTEXT_NO_ERROR_attrib). + */ +#define GLFW_CONTEXT_NO_ERROR 0x0002200A +/*! @brief Context creation API hint and attribute. + * + * Context creation API [hint](@ref GLFW_CONTEXT_CREATION_API_hint) and + * [attribute](@ref GLFW_CONTEXT_CREATION_API_attrib). + */ +#define GLFW_CONTEXT_CREATION_API 0x0002200B +/*! @brief Window content area scaling window + * [window hint](@ref GLFW_SCALE_TO_MONITOR). + */ +#define GLFW_SCALE_TO_MONITOR 0x0002200C +/*! @brief macOS specific + * [window hint](@ref GLFW_COCOA_RETINA_FRAMEBUFFER_hint). + */ +#define GLFW_COCOA_RETINA_FRAMEBUFFER 0x00023001 +/*! @brief macOS specific + * [window hint](@ref GLFW_COCOA_FRAME_NAME_hint). + */ +#define GLFW_COCOA_FRAME_NAME 0x00023002 +/*! @brief macOS specific + * [window hint](@ref GLFW_COCOA_GRAPHICS_SWITCHING_hint). + */ +#define GLFW_COCOA_GRAPHICS_SWITCHING 0x00023003 +/*! @brief X11 specific + * [window hint](@ref GLFW_X11_CLASS_NAME_hint). + */ +#define GLFW_X11_CLASS_NAME 0x00024001 +/*! @brief X11 specific + * [window hint](@ref GLFW_X11_CLASS_NAME_hint). + */ +#define GLFW_X11_INSTANCE_NAME 0x00024002 +#define GLFW_WIN32_KEYBOARD_MENU 0x00025001 +/*! @brief Wayland specific + * [window hint](@ref GLFW_WAYLAND_APP_ID_hint). + * + * Allows specification of the Wayland app_id. + */ +#define GLFW_WAYLAND_APP_ID 0x00026001 +/*! @} */ + +#define GLFW_NO_API 0 +#define GLFW_OPENGL_API 0x00030001 +#define GLFW_OPENGL_ES_API 0x00030002 + +#define GLFW_NO_ROBUSTNESS 0 +#define GLFW_NO_RESET_NOTIFICATION 0x00031001 +#define GLFW_LOSE_CONTEXT_ON_RESET 0x00031002 + +#define GLFW_OPENGL_ANY_PROFILE 0 +#define GLFW_OPENGL_CORE_PROFILE 0x00032001 +#define GLFW_OPENGL_COMPAT_PROFILE 0x00032002 + +#define GLFW_CURSOR 0x00033001 +#define GLFW_STICKY_KEYS 0x00033002 +#define GLFW_STICKY_MOUSE_BUTTONS 0x00033003 +#define GLFW_LOCK_KEY_MODS 0x00033004 +#define GLFW_RAW_MOUSE_MOTION 0x00033005 + +#define GLFW_CURSOR_NORMAL 0x00034001 +#define GLFW_CURSOR_HIDDEN 0x00034002 +#define GLFW_CURSOR_DISABLED 0x00034003 +#define GLFW_CURSOR_CAPTURED 0x00034004 + +#define GLFW_ANY_RELEASE_BEHAVIOR 0 +#define GLFW_RELEASE_BEHAVIOR_FLUSH 0x00035001 +#define GLFW_RELEASE_BEHAVIOR_NONE 0x00035002 + +#define GLFW_NATIVE_CONTEXT_API 0x00036001 +#define GLFW_EGL_CONTEXT_API 0x00036002 +#define GLFW_OSMESA_CONTEXT_API 0x00036003 + +#define GLFW_ANGLE_PLATFORM_TYPE_NONE 0x00037001 +#define GLFW_ANGLE_PLATFORM_TYPE_OPENGL 0x00037002 +#define GLFW_ANGLE_PLATFORM_TYPE_OPENGLES 0x00037003 +#define GLFW_ANGLE_PLATFORM_TYPE_D3D9 0x00037004 +#define GLFW_ANGLE_PLATFORM_TYPE_D3D11 0x00037005 +#define GLFW_ANGLE_PLATFORM_TYPE_VULKAN 0x00037007 +#define GLFW_ANGLE_PLATFORM_TYPE_METAL 0x00037008 + +#define GLFW_ANY_POSITION 0x80000000 + +/*! @defgroup shapes Standard cursor shapes + * @brief Standard system cursor shapes. + * + * These are the [standard cursor shapes](@ref cursor_standard) that can be + * requested from the platform (window system). + * + * @ingroup input + * @{ */ + +/*! @brief The regular arrow cursor shape. + * + * The regular arrow cursor shape. + */ +#define GLFW_ARROW_CURSOR 0x00036001 +/*! @brief The text input I-beam cursor shape. + * + * The text input I-beam cursor shape. + */ +#define GLFW_IBEAM_CURSOR 0x00036002 +/*! @brief The crosshair cursor shape. + * + * The crosshair cursor shape. + */ +#define GLFW_CROSSHAIR_CURSOR 0x00036003 +/*! @brief The pointing hand cursor shape. + * + * The pointing hand cursor shape. + */ +#define GLFW_POINTING_HAND_CURSOR 0x00036004 +/*! @brief The horizontal resize/move arrow shape. + * + * The horizontal resize/move arrow shape. This is usually a horizontal + * double-headed arrow. + */ +#define GLFW_RESIZE_EW_CURSOR 0x00036005 +/*! @brief The vertical resize/move arrow shape. + * + * The vertical resize/move shape. This is usually a vertical double-headed + * arrow. + */ +#define GLFW_RESIZE_NS_CURSOR 0x00036006 +/*! @brief The top-left to bottom-right diagonal resize/move arrow shape. + * + * The top-left to bottom-right diagonal resize/move shape. This is usually + * a diagonal double-headed arrow. + * + * @note @macos This shape is provided by a private system API and may fail + * with @ref GLFW_CURSOR_UNAVAILABLE in the future. + * + * @note @x11 This shape is provided by a newer standard not supported by all + * cursor themes. + * + * @note @wayland This shape is provided by a newer standard not supported by + * all cursor themes. + */ +#define GLFW_RESIZE_NWSE_CURSOR 0x00036007 +/*! @brief The top-right to bottom-left diagonal resize/move arrow shape. + * + * The top-right to bottom-left diagonal resize/move shape. This is usually + * a diagonal double-headed arrow. + * + * @note @macos This shape is provided by a private system API and may fail + * with @ref GLFW_CURSOR_UNAVAILABLE in the future. + * + * @note @x11 This shape is provided by a newer standard not supported by all + * cursor themes. + * + * @note @wayland This shape is provided by a newer standard not supported by + * all cursor themes. + */ +#define GLFW_RESIZE_NESW_CURSOR 0x00036008 +/*! @brief The omni-directional resize/move cursor shape. + * + * The omni-directional resize cursor/move shape. This is usually either + * a combined horizontal and vertical double-headed arrow or a grabbing hand. + */ +#define GLFW_RESIZE_ALL_CURSOR 0x00036009 +/*! @brief The operation-not-allowed shape. + * + * The operation-not-allowed shape. This is usually a circle with a diagonal + * line through it. + * + * @note @x11 This shape is provided by a newer standard not supported by all + * cursor themes. + * + * @note @wayland This shape is provided by a newer standard not supported by + * all cursor themes. + */ +#define GLFW_NOT_ALLOWED_CURSOR 0x0003600A +/*! @brief Legacy name for compatibility. + * + * This is an alias for compatibility with earlier versions. + */ +#define GLFW_HRESIZE_CURSOR GLFW_RESIZE_EW_CURSOR +/*! @brief Legacy name for compatibility. + * + * This is an alias for compatibility with earlier versions. + */ +#define GLFW_VRESIZE_CURSOR GLFW_RESIZE_NS_CURSOR +/*! @brief Legacy name for compatibility. + * + * This is an alias for compatibility with earlier versions. + */ +#define GLFW_HAND_CURSOR GLFW_POINTING_HAND_CURSOR +/*! @} */ + +#define GLFW_CONNECTED 0x00040001 +#define GLFW_DISCONNECTED 0x00040002 + +/*! @addtogroup init + * @{ */ +/*! @brief Joystick hat buttons init hint. + * + * Joystick hat buttons [init hint](@ref GLFW_JOYSTICK_HAT_BUTTONS). + */ +#define GLFW_JOYSTICK_HAT_BUTTONS 0x00050001 +/*! @brief ANGLE rendering backend init hint. + * + * ANGLE rendering backend [init hint](@ref GLFW_ANGLE_PLATFORM_TYPE_hint). + */ +#define GLFW_ANGLE_PLATFORM_TYPE 0x00050002 +/*! @brief Platform selection init hint. + * + * Platform selection [init hint](@ref GLFW_PLATFORM). + */ +#define GLFW_PLATFORM 0x00050003 +/*! @brief macOS specific init hint. + * + * macOS specific [init hint](@ref GLFW_COCOA_CHDIR_RESOURCES_hint). + */ +#define GLFW_COCOA_CHDIR_RESOURCES 0x00051001 +/*! @brief macOS specific init hint. + * + * macOS specific [init hint](@ref GLFW_COCOA_MENUBAR_hint). + */ +#define GLFW_COCOA_MENUBAR 0x00051002 +/*! @brief X11 specific init hint. + * + * X11 specific [init hint](@ref GLFW_X11_XCB_VULKAN_SURFACE_hint). + */ +#define GLFW_X11_XCB_VULKAN_SURFACE 0x00052001 +/*! @} */ + +/*! @addtogroup init + * @{ */ +/*! @brief Hint value that enables automatic platform selection. + * + * Hint value for @ref GLFW_PLATFORM that enables automatic platform selection. + */ +#define GLFW_ANY_PLATFORM 0x00060000 +#define GLFW_PLATFORM_WIN32 0x00060001 +#define GLFW_PLATFORM_COCOA 0x00060002 +#define GLFW_PLATFORM_WAYLAND 0x00060003 +#define GLFW_PLATFORM_X11 0x00060004 +#define GLFW_PLATFORM_NULL 0x00060005 +/*! @} */ + +#define GLFW_DONT_CARE -1 + + +/************************************************************************* + * GLFW API types + *************************************************************************/ + +/*! @brief Client API function pointer type. + * + * Generic function pointer used for returning client API function pointers + * without forcing a cast from a regular pointer. + * + * @sa @ref context_glext + * @sa @ref glfwGetProcAddress + * + * @since Added in version 3.0. + * + * @ingroup context + */ +typedef void (*GLFWglproc)(void); + +/*! @brief Vulkan API function pointer type. + * + * Generic function pointer used for returning Vulkan API function pointers + * without forcing a cast from a regular pointer. + * + * @sa @ref vulkan_proc + * @sa @ref glfwGetInstanceProcAddress + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +typedef void (*GLFWvkproc)(void); + +/*! @brief Opaque monitor object. + * + * Opaque monitor object. + * + * @see @ref monitor_object + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +typedef struct GLFWmonitor GLFWmonitor; + +/*! @brief Opaque window object. + * + * Opaque window object. + * + * @see @ref window_object + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef struct GLFWwindow GLFWwindow; + +/*! @brief Opaque cursor object. + * + * Opaque cursor object. + * + * @see @ref cursor_object + * + * @since Added in version 3.1. + * + * @ingroup input + */ +typedef struct GLFWcursor GLFWcursor; + +/*! @brief The function pointer type for memory allocation callbacks. + * + * This is the function pointer type for memory allocation callbacks. A memory + * allocation callback function has the following signature: + * @code + * void* function_name(size_t size, void* user) + * @endcode + * + * This function must return either a memory block at least `size` bytes long, + * or `NULL` if allocation failed. Note that not all parts of GLFW handle allocation + * failures gracefully yet. + * + * This function may be called during @ref glfwInit but before the library is + * flagged as initialized, as well as during @ref glfwTerminate after the + * library is no longer flagged as initialized. + * + * Any memory allocated by this function will be deallocated during library + * termination or earlier. + * + * The size will always be greater than zero. Allocations of size zero are filtered out + * before reaching the custom allocator. + * + * @param[in] size The minimum size, in bytes, of the memory block. + * @param[in] user The user-defined pointer from the allocator. + * @return The address of the newly allocated memory block, or `NULL` if an + * error occurred. + * + * @pointer_lifetime The returned memory block must be valid at least until it + * is deallocated. + * + * @reentrancy This function should not call any GLFW function. + * + * @thread_safety This function may be called from any thread that calls GLFW functions. + * + * @sa @ref init_allocator + * @sa @ref GLFWallocator + * + * @since Added in version 3.4. + * + * @ingroup init + */ +typedef void* (* GLFWallocatefun)(size_t size, void* user); + +/*! @brief The function pointer type for memory reallocation callbacks. + * + * This is the function pointer type for memory reallocation callbacks. + * A memory reallocation callback function has the following signature: + * @code + * void* function_name(void* block, size_t size, void* user) + * @endcode + * + * This function must return a memory block at least `size` bytes long, or + * `NULL` if allocation failed. Note that not all parts of GLFW handle allocation + * failures gracefully yet. + * + * This function may be called during @ref glfwInit but before the library is + * flagged as initialized, as well as during @ref glfwTerminate after the + * library is no longer flagged as initialized. + * + * Any memory allocated by this function will be deallocated during library + * termination or earlier. + * + * The block address will never be `NULL` and the size will always be greater than zero. + * Reallocations of a block to size zero are converted into deallocations. Reallocations + * of `NULL` to a non-zero size are converted into regular allocations. + * + * @param[in] block The address of the memory block to reallocate. + * @param[in] size The new minimum size, in bytes, of the memory block. + * @param[in] user The user-defined pointer from the allocator. + * @return The address of the newly allocated or resized memory block, or + * `NULL` if an error occurred. + * + * @pointer_lifetime The returned memory block must be valid at least until it + * is deallocated. + * + * @reentrancy This function should not call any GLFW function. + * + * @thread_safety This function may be called from any thread that calls GLFW functions. + * + * @sa @ref init_allocator + * @sa @ref GLFWallocator + * + * @since Added in version 3.4. + * + * @ingroup init + */ +typedef void* (* GLFWreallocatefun)(void* block, size_t size, void* user); + +/*! @brief The function pointer type for memory deallocation callbacks. + * + * This is the function pointer type for memory deallocation callbacks. + * A memory deallocation callback function has the following signature: + * @code + * void function_name(void* block, void* user) + * @endcode + * + * This function may deallocate the specified memory block. This memory block + * will have been allocated with the same allocator. + * + * This function may be called during @ref glfwInit but before the library is + * flagged as initialized, as well as during @ref glfwTerminate after the + * library is no longer flagged as initialized. + * + * The block address will never be `NULL`. Deallocations of `NULL` are filtered out + * before reaching the custom allocator. + * + * @param[in] block The address of the memory block to deallocate. + * @param[in] user The user-defined pointer from the allocator. + * + * @pointer_lifetime The specified memory block will not be accessed by GLFW + * after this function is called. + * + * @reentrancy This function should not call any GLFW function. + * + * @thread_safety This function may be called from any thread that calls GLFW functions. + * + * @sa @ref init_allocator + * @sa @ref GLFWallocator + * + * @since Added in version 3.4. + * + * @ingroup init + */ +typedef void (* GLFWdeallocatefun)(void* block, void* user); + +/*! @brief The function pointer type for error callbacks. + * + * This is the function pointer type for error callbacks. An error callback + * function has the following signature: + * @code + * void callback_name(int error_code, const char* description) + * @endcode + * + * @param[in] error_code An [error code](@ref errors). Future releases may add + * more error codes. + * @param[in] description A UTF-8 encoded string describing the error. + * + * @pointer_lifetime The error description string is valid until the callback + * function returns. + * + * @sa @ref error_handling + * @sa @ref glfwSetErrorCallback + * + * @since Added in version 3.0. + * + * @ingroup init + */ +typedef void (* GLFWerrorfun)(int error_code, const char* description); + +/*! @brief The function pointer type for window position callbacks. + * + * This is the function pointer type for window position callbacks. A window + * position callback function has the following signature: + * @code + * void callback_name(GLFWwindow* window, int xpos, int ypos) + * @endcode + * + * @param[in] window The window that was moved. + * @param[in] xpos The new x-coordinate, in screen coordinates, of the + * upper-left corner of the content area of the window. + * @param[in] ypos The new y-coordinate, in screen coordinates, of the + * upper-left corner of the content area of the window. + * + * @sa @ref window_pos + * @sa @ref glfwSetWindowPosCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWwindowposfun)(GLFWwindow* window, int xpos, int ypos); + +/*! @brief The function pointer type for window size callbacks. + * + * This is the function pointer type for window size callbacks. A window size + * callback function has the following signature: + * @code + * void callback_name(GLFWwindow* window, int width, int height) + * @endcode + * + * @param[in] window The window that was resized. + * @param[in] width The new width, in screen coordinates, of the window. + * @param[in] height The new height, in screen coordinates, of the window. + * + * @sa @ref window_size + * @sa @ref glfwSetWindowSizeCallback + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +typedef void (* GLFWwindowsizefun)(GLFWwindow* window, int width, int height); + +/*! @brief The function pointer type for window close callbacks. + * + * This is the function pointer type for window close callbacks. A window + * close callback function has the following signature: + * @code + * void function_name(GLFWwindow* window) + * @endcode + * + * @param[in] window The window that the user attempted to close. + * + * @sa @ref window_close + * @sa @ref glfwSetWindowCloseCallback + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +typedef void (* GLFWwindowclosefun)(GLFWwindow* window); + +/*! @brief The function pointer type for window content refresh callbacks. + * + * This is the function pointer type for window content refresh callbacks. + * A window content refresh callback function has the following signature: + * @code + * void function_name(GLFWwindow* window); + * @endcode + * + * @param[in] window The window whose content needs to be refreshed. + * + * @sa @ref window_refresh + * @sa @ref glfwSetWindowRefreshCallback + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +typedef void (* GLFWwindowrefreshfun)(GLFWwindow* window); + +/*! @brief The function pointer type for window focus callbacks. + * + * This is the function pointer type for window focus callbacks. A window + * focus callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int focused) + * @endcode + * + * @param[in] window The window that gained or lost input focus. + * @param[in] focused `GLFW_TRUE` if the window was given input focus, or + * `GLFW_FALSE` if it lost it. + * + * @sa @ref window_focus + * @sa @ref glfwSetWindowFocusCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWwindowfocusfun)(GLFWwindow* window, int focused); + +/*! @brief The function pointer type for window iconify callbacks. + * + * This is the function pointer type for window iconify callbacks. A window + * iconify callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int iconified) + * @endcode + * + * @param[in] window The window that was iconified or restored. + * @param[in] iconified `GLFW_TRUE` if the window was iconified, or + * `GLFW_FALSE` if it was restored. + * + * @sa @ref window_iconify + * @sa @ref glfwSetWindowIconifyCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWwindowiconifyfun)(GLFWwindow* window, int iconified); + +/*! @brief The function pointer type for window maximize callbacks. + * + * This is the function pointer type for window maximize callbacks. A window + * maximize callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int maximized) + * @endcode + * + * @param[in] window The window that was maximized or restored. + * @param[in] maximized `GLFW_TRUE` if the window was maximized, or + * `GLFW_FALSE` if it was restored. + * + * @sa @ref window_maximize + * @sa glfwSetWindowMaximizeCallback + * + * @since Added in version 3.3. + * + * @ingroup window + */ +typedef void (* GLFWwindowmaximizefun)(GLFWwindow* window, int maximized); + +/*! @brief The function pointer type for framebuffer size callbacks. + * + * This is the function pointer type for framebuffer size callbacks. + * A framebuffer size callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int width, int height) + * @endcode + * + * @param[in] window The window whose framebuffer was resized. + * @param[in] width The new width, in pixels, of the framebuffer. + * @param[in] height The new height, in pixels, of the framebuffer. + * + * @sa @ref window_fbsize + * @sa @ref glfwSetFramebufferSizeCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +typedef void (* GLFWframebuffersizefun)(GLFWwindow* window, int width, int height); + +/*! @brief The function pointer type for window content scale callbacks. + * + * This is the function pointer type for window content scale callbacks. + * A window content scale callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, float xscale, float yscale) + * @endcode + * + * @param[in] window The window whose content scale changed. + * @param[in] xscale The new x-axis content scale of the window. + * @param[in] yscale The new y-axis content scale of the window. + * + * @sa @ref window_scale + * @sa @ref glfwSetWindowContentScaleCallback + * + * @since Added in version 3.3. + * + * @ingroup window + */ +typedef void (* GLFWwindowcontentscalefun)(GLFWwindow* window, float xscale, float yscale); + +/*! @brief The function pointer type for mouse button callbacks. + * + * This is the function pointer type for mouse button callback functions. + * A mouse button callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int button, int action, int mods) + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] button The [mouse button](@ref buttons) that was pressed or + * released. + * @param[in] action One of `GLFW_PRESS` or `GLFW_RELEASE`. Future releases + * may add more actions. + * @param[in] mods Bit field describing which [modifier keys](@ref mods) were + * held down. + * + * @sa @ref input_mouse_button + * @sa @ref glfwSetMouseButtonCallback + * + * @since Added in version 1.0. + * @glfw3 Added window handle and modifier mask parameters. + * + * @ingroup input + */ +typedef void (* GLFWmousebuttonfun)(GLFWwindow* window, int button, int action, int mods); + +/*! @brief The function pointer type for cursor position callbacks. + * + * This is the function pointer type for cursor position callbacks. A cursor + * position callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, double xpos, double ypos); + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] xpos The new cursor x-coordinate, relative to the left edge of + * the content area. + * @param[in] ypos The new cursor y-coordinate, relative to the top edge of the + * content area. + * + * @sa @ref cursor_pos + * @sa @ref glfwSetCursorPosCallback + * + * @since Added in version 3.0. Replaces `GLFWmouseposfun`. + * + * @ingroup input + */ +typedef void (* GLFWcursorposfun)(GLFWwindow* window, double xpos, double ypos); + +/*! @brief The function pointer type for cursor enter/leave callbacks. + * + * This is the function pointer type for cursor enter/leave callbacks. + * A cursor enter/leave callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int entered) + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] entered `GLFW_TRUE` if the cursor entered the window's content + * area, or `GLFW_FALSE` if it left it. + * + * @sa @ref cursor_enter + * @sa @ref glfwSetCursorEnterCallback + * + * @since Added in version 3.0. + * + * @ingroup input + */ +typedef void (* GLFWcursorenterfun)(GLFWwindow* window, int entered); + +/*! @brief The function pointer type for scroll callbacks. + * + * This is the function pointer type for scroll callbacks. A scroll callback + * function has the following signature: + * @code + * void function_name(GLFWwindow* window, double xoffset, double yoffset) + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] xoffset The scroll offset along the x-axis. + * @param[in] yoffset The scroll offset along the y-axis. + * + * @sa @ref scrolling + * @sa @ref glfwSetScrollCallback + * + * @since Added in version 3.0. Replaces `GLFWmousewheelfun`. + * + * @ingroup input + */ +typedef void (* GLFWscrollfun)(GLFWwindow* window, double xoffset, double yoffset); + +/*! @brief The function pointer type for keyboard key callbacks. + * + * This is the function pointer type for keyboard key callbacks. A keyboard + * key callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int key, int scancode, int action, int mods) + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] key The [keyboard key](@ref keys) that was pressed or released. + * @param[in] scancode The platform-specific scancode of the key. + * @param[in] action `GLFW_PRESS`, `GLFW_RELEASE` or `GLFW_REPEAT`. Future + * releases may add more actions. + * @param[in] mods Bit field describing which [modifier keys](@ref mods) were + * held down. + * + * @sa @ref input_key + * @sa @ref glfwSetKeyCallback + * + * @since Added in version 1.0. + * @glfw3 Added window handle, scancode and modifier mask parameters. + * + * @ingroup input + */ +typedef void (* GLFWkeyfun)(GLFWwindow* window, int key, int scancode, int action, int mods); + +/*! @brief The function pointer type for Unicode character callbacks. + * + * This is the function pointer type for Unicode character callbacks. + * A Unicode character callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint) + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] codepoint The Unicode code point of the character. + * + * @sa @ref input_char + * @sa @ref glfwSetCharCallback + * + * @since Added in version 2.4. + * @glfw3 Added window handle parameter. + * + * @ingroup input + */ +typedef void (* GLFWcharfun)(GLFWwindow* window, unsigned int codepoint); + +/*! @brief The function pointer type for Unicode character with modifiers + * callbacks. + * + * This is the function pointer type for Unicode character with modifiers + * callbacks. It is called for each input character, regardless of what + * modifier keys are held down. A Unicode character with modifiers callback + * function has the following signature: + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint, int mods) + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] codepoint The Unicode code point of the character. + * @param[in] mods Bit field describing which [modifier keys](@ref mods) were + * held down. + * + * @sa @ref input_char + * @sa @ref glfwSetCharModsCallback + * + * @deprecated Scheduled for removal in version 4.0. + * + * @since Added in version 3.1. + * + * @ingroup input + */ +typedef void (* GLFWcharmodsfun)(GLFWwindow* window, unsigned int codepoint, int mods); + +/*! @brief The function pointer type for path drop callbacks. + * + * This is the function pointer type for path drop callbacks. A path drop + * callback function has the following signature: + * @code + * void function_name(GLFWwindow* window, int path_count, const char* paths[]) + * @endcode + * + * @param[in] window The window that received the event. + * @param[in] path_count The number of dropped paths. + * @param[in] paths The UTF-8 encoded file and/or directory path names. + * + * @pointer_lifetime The path array and its strings are valid until the + * callback function returns. + * + * @sa @ref path_drop + * @sa @ref glfwSetDropCallback + * + * @since Added in version 3.1. + * + * @ingroup input + */ +typedef void (* GLFWdropfun)(GLFWwindow* window, int path_count, const char* paths[]); + +/*! @brief The function pointer type for monitor configuration callbacks. + * + * This is the function pointer type for monitor configuration callbacks. + * A monitor callback function has the following signature: + * @code + * void function_name(GLFWmonitor* monitor, int event) + * @endcode + * + * @param[in] monitor The monitor that was connected or disconnected. + * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. Future + * releases may add more events. + * + * @sa @ref monitor_event + * @sa @ref glfwSetMonitorCallback + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +typedef void (* GLFWmonitorfun)(GLFWmonitor* monitor, int event); + +/*! @brief The function pointer type for joystick configuration callbacks. + * + * This is the function pointer type for joystick configuration callbacks. + * A joystick configuration callback function has the following signature: + * @code + * void function_name(int jid, int event) + * @endcode + * + * @param[in] jid The joystick that was connected or disconnected. + * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. Future + * releases may add more events. + * + * @sa @ref joystick_event + * @sa @ref glfwSetJoystickCallback + * + * @since Added in version 3.2. + * + * @ingroup input + */ +typedef void (* GLFWjoystickfun)(int jid, int event); + +/*! @brief Video mode type. + * + * This describes a single video mode. + * + * @sa @ref monitor_modes + * @sa @ref glfwGetVideoMode + * @sa @ref glfwGetVideoModes + * + * @since Added in version 1.0. + * @glfw3 Added refresh rate member. + * + * @ingroup monitor + */ +typedef struct GLFWvidmode +{ + /*! The width, in screen coordinates, of the video mode. + */ + int width; + /*! The height, in screen coordinates, of the video mode. + */ + int height; + /*! The bit depth of the red channel of the video mode. + */ + int redBits; + /*! The bit depth of the green channel of the video mode. + */ + int greenBits; + /*! The bit depth of the blue channel of the video mode. + */ + int blueBits; + /*! The refresh rate, in Hz, of the video mode. + */ + int refreshRate; +} GLFWvidmode; + +/*! @brief Gamma ramp. + * + * This describes the gamma ramp for a monitor. + * + * @sa @ref monitor_gamma + * @sa @ref glfwGetGammaRamp + * @sa @ref glfwSetGammaRamp + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +typedef struct GLFWgammaramp +{ + /*! An array of value describing the response of the red channel. + */ + unsigned short* red; + /*! An array of value describing the response of the green channel. + */ + unsigned short* green; + /*! An array of value describing the response of the blue channel. + */ + unsigned short* blue; + /*! The number of elements in each array. + */ + unsigned int size; +} GLFWgammaramp; + +/*! @brief Image data. + * + * This describes a single 2D image. See the documentation for each related + * function what the expected pixel format is. + * + * @sa @ref cursor_custom + * @sa @ref window_icon + * + * @since Added in version 2.1. + * @glfw3 Removed format and bytes-per-pixel members. + * + * @ingroup window + */ +typedef struct GLFWimage +{ + /*! The width, in pixels, of this image. + */ + int width; + /*! The height, in pixels, of this image. + */ + int height; + /*! The pixel data of this image, arranged left-to-right, top-to-bottom. + */ + unsigned char* pixels; +} GLFWimage; + +/*! @brief Gamepad input state + * + * This describes the input state of a gamepad. + * + * @sa @ref gamepad + * @sa @ref glfwGetGamepadState + * + * @since Added in version 3.3. + * + * @ingroup input + */ +typedef struct GLFWgamepadstate +{ + /*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS` + * or `GLFW_RELEASE`. + */ + unsigned char buttons[15]; + /*! The states of each [gamepad axis](@ref gamepad_axes), in the range -1.0 + * to 1.0 inclusive. + */ + float axes[6]; +} GLFWgamepadstate; + +/*! @brief + * + * @sa @ref init_allocator + * @sa @ref glfwInitAllocator + * + * @since Added in version 3.4. + * + * @ingroup init + */ +typedef struct GLFWallocator +{ + GLFWallocatefun allocate; + GLFWreallocatefun reallocate; + GLFWdeallocatefun deallocate; + void* user; +} GLFWallocator; + + +/************************************************************************* + * GLFW API functions + *************************************************************************/ + +/*! @brief Initializes the GLFW library. + * + * This function initializes the GLFW library. Before most GLFW functions can + * be used, GLFW must be initialized, and before an application terminates GLFW + * should be terminated in order to free any resources allocated during or + * after initialization. + * + * If this function fails, it calls @ref glfwTerminate before returning. If it + * succeeds, you should call @ref glfwTerminate before the application exits. + * + * Additional calls to this function after successful initialization but before + * termination will return `GLFW_TRUE` immediately. + * + * The @ref GLFW_PLATFORM init hint controls which platforms are considered during + * initialization. This also depends on which platforms the library was compiled to + * support. + * + * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_PLATFORM_UNAVAILABLE and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @macos This function will change the current directory of the + * application to the `Contents/Resources` subdirectory of the application's + * bundle, if present. This can be disabled with the @ref + * GLFW_COCOA_CHDIR_RESOURCES init hint. + * + * @remark @macos This function will create the main menu and dock icon for the + * application. If GLFW finds a `MainMenu.nib` it is loaded and assumed to + * contain a menu bar. Otherwise a minimal menu bar is created manually with + * common commands like Hide, Quit and About. The About entry opens a minimal + * about dialog with information from the application's bundle. The menu bar + * and dock icon can be disabled entirely with the @ref GLFW_COCOA_MENUBAR init + * hint. + * + * @remark @x11 This function will set the `LC_CTYPE` category of the + * application locale according to the current environment if that category is + * still "C". This is because the "C" locale breaks Unicode text input. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref intro_init + * @sa @ref glfwInitHint + * @sa @ref glfwInitAllocator + * @sa @ref glfwTerminate + * + * @since Added in version 1.0. + * + * @ingroup init + */ +GLFWAPI int glfwInit(void); + +/*! @brief Terminates the GLFW library. + * + * This function destroys all remaining windows and cursors, restores any + * modified gamma ramps and frees any other allocated resources. Once this + * function is called, you must again call @ref glfwInit successfully before + * you will be able to use most GLFW functions. + * + * If GLFW has been successfully initialized, this function should be called + * before the application exits. If initialization fails, there is no need to + * call this function, as it is called by @ref glfwInit before it returns + * failure. + * + * This function has no effect if GLFW is not initialized. + * + * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. + * + * @remark This function may be called before @ref glfwInit. + * + * @warning The contexts of any remaining windows must not be current on any + * other thread when this function is called. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref intro_init + * @sa @ref glfwInit + * + * @since Added in version 1.0. + * + * @ingroup init + */ +GLFWAPI void glfwTerminate(void); + +/*! @brief Sets the specified init hint to the desired value. + * + * This function sets hints for the next initialization of GLFW. + * + * The values you set hints to are never reset by GLFW, but they only take + * effect during initialization. Once GLFW has been initialized, any values + * you set will be ignored until the library is terminated and initialized + * again. + * + * Some hints are platform specific. These may be set on any platform but they + * will only affect their specific platform. Other platforms will ignore them. + * Setting these hints requires no platform specific headers or functions. + * + * @param[in] hint The [init hint](@ref init_hints) to set. + * @param[in] value The new value of the init hint. + * + * @errors Possible errors include @ref GLFW_INVALID_ENUM and @ref + * GLFW_INVALID_VALUE. + * + * @remarks This function may be called before @ref glfwInit. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa init_hints + * @sa glfwInit + * + * @since Added in version 3.3. + * + * @ingroup init + */ +GLFWAPI void glfwInitHint(int hint, int value); + +/*! @brief Sets the init allocator to the desired value. + * + * To use the default allocator, call this function with a `NULL` argument. + * + * If you specify an allocator struct, every member must be a valid function + * pointer. If any member is `NULL`, this function emits @ref + * GLFW_INVALID_VALUE and the init allocator is unchanged. + * + * @param[in] allocator The allocator to use at the next initialization, or + * `NULL` to use the default one. + * + * @errors Possible errors include @ref GLFW_INVALID_VALUE. + * + * @pointer_lifetime The specified allocator is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref init_allocator + * @sa @ref glfwInit + * + * @since Added in version 3.4. + * + * @ingroup init + */ +GLFWAPI void glfwInitAllocator(const GLFWallocator* allocator); + +#if defined(VK_VERSION_1_0) + +/*! @brief Sets the desired Vulkan `vkGetInstanceProcAddr` function. + * + * This function sets the `vkGetInstanceProcAddr` function that GLFW will use for all + * Vulkan related entry point queries. + * + * This feature is mostly useful on macOS, if your copy of the Vulkan loader is in + * a location where GLFW cannot find it through dynamic loading, or if you are still + * using the static library version of the loader. + * + * If set to `NULL`, GLFW will try to load the Vulkan loader dynamically by its standard + * name and get this function from there. This is the default behavior. + * + * The standard name of the loader is `vulkan-1.dll` on Windows, `libvulkan.so.1` on + * Linux and other Unix-like systems and `libvulkan.1.dylib` on macOS. If your code is + * also loading it via these names then you probably don't need to use this function. + * + * The function address you set is never reset by GLFW, but it only takes effect during + * initialization. Once GLFW has been initialized, any updates will be ignored until the + * library is terminated and initialized again. + * + * @param[in] loader The address of the function to use, or `NULL`. + * + * @par Loader function signature + * @code + * PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance instance, const char* name) + * @endcode + * For more information about this function, see the + * [Vulkan Registry](https://www.khronos.org/registry/vulkan/). + * + * @errors None. + * + * @remark This function may be called before @ref glfwInit. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref vulkan_loader + * @sa @ref glfwInit + * + * @since Added in version 3.4. + * + * @ingroup init + */ +GLFWAPI void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader); + +#endif /*VK_VERSION_1_0*/ + +/*! @brief Retrieves the version of the GLFW library. + * + * This function retrieves the major, minor and revision numbers of the GLFW + * library. It is intended for when you are using GLFW as a shared library and + * want to ensure that you are using the minimum required version. + * + * Any or all of the version arguments may be `NULL`. + * + * @param[out] major Where to store the major version number, or `NULL`. + * @param[out] minor Where to store the minor version number, or `NULL`. + * @param[out] rev Where to store the revision number, or `NULL`. + * + * @errors None. + * + * @remark This function may be called before @ref glfwInit. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref intro_version + * @sa @ref glfwGetVersionString + * + * @since Added in version 1.0. + * + * @ingroup init + */ +GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev); + +/*! @brief Returns a string describing the compile-time configuration. + * + * This function returns the compile-time generated + * [version string](@ref intro_version_string) of the GLFW library binary. It describes + * the version, platforms, compiler and any platform or operating system specific + * compile-time options. It should not be confused with the OpenGL or OpenGL ES version + * string, queried with `glGetString`. + * + * __Do not use the version string__ to parse the GLFW library version. The + * @ref glfwGetVersion function provides the version of the running library + * binary in numerical format. + * + * __Do not use the version string__ to parse what platforms are supported. The @ref + * glfwPlatformSupported function lets you query platform support. + * + * @return The ASCII encoded GLFW version string. + * + * @errors None. + * + * @remark This function may be called before @ref glfwInit. + * + * @pointer_lifetime The returned string is static and compile-time generated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref intro_version + * @sa @ref glfwGetVersion + * + * @since Added in version 3.0. + * + * @ingroup init + */ +GLFWAPI const char* glfwGetVersionString(void); + +/*! @brief Returns and clears the last error for the calling thread. + * + * This function returns and clears the [error code](@ref errors) of the last + * error that occurred on the calling thread, and optionally a UTF-8 encoded + * human-readable description of it. If no error has occurred since the last + * call, it returns @ref GLFW_NO_ERROR (zero) and the description pointer is + * set to `NULL`. + * + * @param[in] description Where to store the error description pointer, or `NULL`. + * @return The last error code for the calling thread, or @ref GLFW_NO_ERROR + * (zero). + * + * @errors None. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is guaranteed to be valid only until the + * next error occurs or the library is terminated. + * + * @remark This function may be called before @ref glfwInit. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref error_handling + * @sa @ref glfwSetErrorCallback + * + * @since Added in version 3.3. + * + * @ingroup init + */ +GLFWAPI int glfwGetError(const char** description); + +/*! @brief Sets the error callback. + * + * This function sets the error callback, which is called with an error code + * and a human-readable description each time a GLFW error occurs. + * + * The error code is set before the callback is called. Calling @ref + * glfwGetError from the error callback will return the same value as the error + * code argument. + * + * The error callback is called on the thread where the error occurred. If you + * are using GLFW from multiple threads, your error callback needs to be + * written accordingly. + * + * Because the description string may have been generated specifically for that + * error, it is not guaranteed to be valid after the callback has returned. If + * you wish to use it after the callback returns, you need to make a copy. + * + * Once set, the error callback remains set even after the library has been + * terminated. + * + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set. + * + * @callback_signature + * @code + * void callback_name(int error_code, const char* description) + * @endcode + * For more information about the callback parameters, see the + * [callback pointer type](@ref GLFWerrorfun). + * + * @errors None. + * + * @remark This function may be called before @ref glfwInit. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref error_handling + * @sa @ref glfwGetError + * + * @since Added in version 3.0. + * + * @ingroup init + */ +GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback); + +/*! @brief Returns the currently selected platform. + * + * This function returns the platform that was selected during initialization. The + * returned value will be one of `GLFW_PLATFORM_WIN32`, `GLFW_PLATFORM_COCOA`, + * `GLFW_PLATFORM_WAYLAND`, `GLFW_PLATFORM_X11` or `GLFW_PLATFORM_NULL`. + * + * @return The currently selected platform, or zero if an error occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref platform + * @sa @ref glfwPlatformSupported + * + * @since Added in version 3.4. + * + * @ingroup init + */ +GLFWAPI int glfwGetPlatform(void); + +/*! @brief Returns whether the library includes support for the specified platform. + * + * This function returns whether the library was compiled with support for the specified + * platform. The platform must be one of `GLFW_PLATFORM_WIN32`, `GLFW_PLATFORM_COCOA`, + * `GLFW_PLATFORM_WAYLAND`, `GLFW_PLATFORM_X11` or `GLFW_PLATFORM_NULL`. + * + * @param[in] platform The platform to query. + * @return `GLFW_TRUE` if the platform is supported, or `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_INVALID_ENUM. + * + * @remark This function may be called before @ref glfwInit. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref platform + * @sa @ref glfwGetPlatform + * + * @since Added in version 3.4. + * + * @ingroup init + */ +GLFWAPI int glfwPlatformSupported(int platform); + +/*! @brief Returns the currently connected monitors. + * + * This function returns an array of handles for all currently connected + * monitors. The primary monitor is always first in the returned array. If no + * monitors were found, this function returns `NULL`. + * + * @param[out] count Where to store the number of monitors in the returned + * array. This is set to zero if an error occurred. + * @return An array of monitor handles, or `NULL` if no monitors were found or + * if an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is guaranteed to be valid only until the + * monitor configuration changes or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_monitors + * @sa @ref monitor_event + * @sa @ref glfwGetPrimaryMonitor + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI GLFWmonitor** glfwGetMonitors(int* count); + +/*! @brief Returns the primary monitor. + * + * This function returns the primary monitor. This is usually the monitor + * where elements like the task bar or global menu bar are located. + * + * @return The primary monitor, or `NULL` if no monitors were found or if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @remark The primary monitor is always first in the array returned by @ref + * glfwGetMonitors. + * + * @sa @ref monitor_monitors + * @sa @ref glfwGetMonitors + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void); + +/*! @brief Returns the position of the monitor's viewport on the virtual screen. + * + * This function returns the position, in screen coordinates, of the upper-left + * corner of the specified monitor. + * + * Any or all of the position arguments may be `NULL`. If an error occurs, all + * non-`NULL` position arguments will be set to zero. + * + * @param[in] monitor The monitor to query. + * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`. + * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_properties + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos); + +/*! @brief Retrieves the work area of the monitor. + * + * This function returns the position, in screen coordinates, of the upper-left + * corner of the work area of the specified monitor along with the work area + * size in screen coordinates. The work area is defined as the area of the + * monitor not occluded by the window system task bar where present. If no + * task bar exists then the work area is the monitor resolution in screen + * coordinates. + * + * Any or all of the position and size arguments may be `NULL`. If an error + * occurs, all non-`NULL` position and size arguments will be set to zero. + * + * @param[in] monitor The monitor to query. + * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`. + * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`. + * @param[out] width Where to store the monitor width, or `NULL`. + * @param[out] height Where to store the monitor height, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_workarea + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); + +/*! @brief Returns the physical size of the monitor. + * + * This function returns the size, in millimetres, of the display area of the + * specified monitor. + * + * Some platforms do not provide accurate monitor size information, either + * because the monitor + * [EDID](https://en.wikipedia.org/wiki/Extended_display_identification_data) + * data is incorrect or because the driver does not report it accurately. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] monitor The monitor to query. + * @param[out] widthMM Where to store the width, in millimetres, of the + * monitor's display area, or `NULL`. + * @param[out] heightMM Where to store the height, in millimetres, of the + * monitor's display area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark @win32 On Windows 8 and earlier the physical size is calculated from + * the current resolution and system DPI instead of querying the monitor EDID data. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_properties + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM); + +/*! @brief Retrieves the content scale for the specified monitor. + * + * This function retrieves the content scale for the specified monitor. The + * content scale is the ratio between the current DPI and the platform's + * default DPI. This is especially important for text and any UI elements. If + * the pixel dimensions of your UI scaled by this look appropriate on your + * machine then it should appear at a reasonable size on other machines + * regardless of their DPI and scaling settings. This relies on the system DPI + * and scaling settings being somewhat correct. + * + * The content scale may depend on both the monitor resolution and pixel + * density and on user settings. It may be very different from the raw DPI + * calculated from the physical size and current resolution. + * + * @param[in] monitor The monitor to query. + * @param[out] xscale Where to store the x-axis content scale, or `NULL`. + * @param[out] yscale Where to store the y-axis content scale, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_scale + * @sa @ref glfwGetWindowContentScale + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void glfwGetMonitorContentScale(GLFWmonitor* monitor, float* xscale, float* yscale); + +/*! @brief Returns the name of the specified monitor. + * + * This function returns a human-readable name, encoded as UTF-8, of the + * specified monitor. The name typically reflects the make and model of the + * monitor and is not guaranteed to be unique among the connected monitors. + * + * @param[in] monitor The monitor to query. + * @return The UTF-8 encoded name of the monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified monitor is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_properties + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor); + +/*! @brief Sets the user pointer of the specified monitor. + * + * This function sets the user-defined pointer of the specified monitor. The + * current value is retained until the monitor is disconnected. The initial + * value is `NULL`. + * + * This function may be called from the monitor callback, even for a monitor + * that is being disconnected. + * + * @param[in] monitor The monitor whose pointer to set. + * @param[in] pointer The new value. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref monitor_userptr + * @sa @ref glfwGetMonitorUserPointer + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void glfwSetMonitorUserPointer(GLFWmonitor* monitor, void* pointer); + +/*! @brief Returns the user pointer of the specified monitor. + * + * This function returns the current value of the user-defined pointer of the + * specified monitor. The initial value is `NULL`. + * + * This function may be called from the monitor callback, even for a monitor + * that is being disconnected. + * + * @param[in] monitor The monitor whose pointer to return. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref monitor_userptr + * @sa @ref glfwSetMonitorUserPointer + * + * @since Added in version 3.3. + * + * @ingroup monitor + */ +GLFWAPI void* glfwGetMonitorUserPointer(GLFWmonitor* monitor); + +/*! @brief Sets the monitor configuration callback. + * + * This function sets the monitor configuration callback, or removes the + * currently set callback. This is called when a monitor is connected to or + * disconnected from the system. + * + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWmonitor* monitor, int event) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWmonitorfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_event + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun callback); + +/*! @brief Returns the available video modes for the specified monitor. + * + * This function returns an array of all video modes supported by the specified + * monitor. The returned array is sorted in ascending order, first by color + * bit depth (the sum of all channel depths), then by resolution area (the + * product of width and height), then resolution width and finally by refresh + * rate. + * + * @param[in] monitor The monitor to query. + * @param[out] count Where to store the number of video modes in the returned + * array. This is set to zero if an error occurred. + * @return An array of video modes, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified monitor is + * disconnected, this function is called again for that monitor or the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_modes + * @sa @ref glfwGetVideoMode + * + * @since Added in version 1.0. + * @glfw3 Changed to return an array of modes for a specific monitor. + * + * @ingroup monitor + */ +GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* monitor, int* count); + +/*! @brief Returns the current mode of the specified monitor. + * + * This function returns the current video mode of the specified monitor. If + * you have created a full screen window for that monitor, the return value + * will depend on whether that window is iconified. + * + * @param[in] monitor The monitor to query. + * @return The current mode of the monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified monitor is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_modes + * @sa @ref glfwGetVideoModes + * + * @since Added in version 3.0. Replaces `glfwGetDesktopMode`. + * + * @ingroup monitor + */ +GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor); + +/*! @brief Generates a gamma ramp and sets it for the specified monitor. + * + * This function generates an appropriately sized gamma ramp from the specified + * exponent and then calls @ref glfwSetGammaRamp with it. The value must be + * a finite number greater than zero. + * + * The software controlled gamma ramp is applied _in addition_ to the hardware + * gamma correction, which today is usually an approximation of sRGB gamma. + * This means that setting a perfectly linear ramp, or gamma 1.0, will produce + * the default (usually sRGB-like) behavior. + * + * For gamma correct rendering with OpenGL or OpenGL ES, see the @ref + * GLFW_SRGB_CAPABLE hint. + * + * @param[in] monitor The monitor whose gamma ramp to set. + * @param[in] gamma The desired exponent. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @remark @wayland Gamma handling is a privileged protocol, this function + * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_gamma + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma); + +/*! @brief Returns the current gamma ramp for the specified monitor. + * + * This function returns the current gamma ramp of the specified monitor. + * + * @param[in] monitor The monitor to query. + * @return The current gamma ramp, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @wayland Gamma handling is a privileged protocol, this function + * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR while + * returning `NULL`. + * + * @pointer_lifetime The returned structure and its arrays are allocated and + * freed by GLFW. You should not free them yourself. They are valid until the + * specified monitor is disconnected, this function is called again for that + * monitor or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_gamma + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor); + +/*! @brief Sets the current gamma ramp for the specified monitor. + * + * This function sets the current gamma ramp for the specified monitor. The + * original gamma ramp for that monitor is saved by GLFW the first time this + * function is called and is restored by @ref glfwTerminate. + * + * The software controlled gamma ramp is applied _in addition_ to the hardware + * gamma correction, which today is usually an approximation of sRGB gamma. + * This means that setting a perfectly linear ramp, or gamma 1.0, will produce + * the default (usually sRGB-like) behavior. + * + * For gamma correct rendering with OpenGL or OpenGL ES, see the @ref + * GLFW_SRGB_CAPABLE hint. + * + * @param[in] monitor The monitor whose gamma ramp to set. + * @param[in] ramp The gamma ramp to use. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark The size of the specified gamma ramp should match the size of the + * current ramp for that monitor. + * + * @remark @win32 The gamma ramp size must be 256. + * + * @remark @wayland Gamma handling is a privileged protocol, this function + * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The specified gamma ramp is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref monitor_gamma + * + * @since Added in version 3.0. + * + * @ingroup monitor + */ +GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +/*! @brief Resets all window hints to their default values. + * + * This function resets all window hints to their + * [default values](@ref window_hints_values). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hints + * @sa @ref glfwWindowHint + * @sa @ref glfwWindowHintString + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwDefaultWindowHints(void); + +/*! @brief Sets the specified window hint to the desired value. + * + * This function sets hints for the next call to @ref glfwCreateWindow. The + * hints, once set, retain their values until changed by a call to this + * function or @ref glfwDefaultWindowHints, or until the library is terminated. + * + * Only integer value hints can be set with this function. String value hints + * are set with @ref glfwWindowHintString. + * + * This function does not check whether the specified hint values are valid. + * If you set hints to invalid values this will instead be reported by the next + * call to @ref glfwCreateWindow. + * + * Some hints are platform specific. These may be set on any platform but they + * will only affect their specific platform. Other platforms will ignore them. + * Setting these hints requires no platform specific headers or functions. + * + * @param[in] hint The [window hint](@ref window_hints) to set. + * @param[in] value The new value of the window hint. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hints + * @sa @ref glfwWindowHintString + * @sa @ref glfwDefaultWindowHints + * + * @since Added in version 3.0. Replaces `glfwOpenWindowHint`. + * + * @ingroup window + */ +GLFWAPI void glfwWindowHint(int hint, int value); + +/*! @brief Sets the specified window hint to the desired value. + * + * This function sets hints for the next call to @ref glfwCreateWindow. The + * hints, once set, retain their values until changed by a call to this + * function or @ref glfwDefaultWindowHints, or until the library is terminated. + * + * Only string type hints can be set with this function. Integer value hints + * are set with @ref glfwWindowHint. + * + * This function does not check whether the specified hint values are valid. + * If you set hints to invalid values this will instead be reported by the next + * call to @ref glfwCreateWindow. + * + * Some hints are platform specific. These may be set on any platform but they + * will only affect their specific platform. Other platforms will ignore them. + * Setting these hints requires no platform specific headers or functions. + * + * @param[in] hint The [window hint](@ref window_hints) to set. + * @param[in] value The new value of the window hint. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @pointer_lifetime The specified string is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hints + * @sa @ref glfwWindowHint + * @sa @ref glfwDefaultWindowHints + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwWindowHintString(int hint, const char* value); + +/*! @brief Creates a window and its associated context. + * + * This function creates a window and its associated OpenGL or OpenGL ES + * context. Most of the options controlling how the window and its context + * should be created are specified with [window hints](@ref window_hints). + * + * Successful creation does not change which context is current. Before you + * can use the newly created context, you need to + * [make it current](@ref context_current). For information about the `share` + * parameter, see @ref context_sharing. + * + * The created window, framebuffer and context may differ from what you + * requested, as not all parameters and hints are + * [hard constraints](@ref window_hints_hard). This includes the size of the + * window, especially for full screen windows. To query the actual attributes + * of the created window, framebuffer and context, see @ref + * glfwGetWindowAttrib, @ref glfwGetWindowSize and @ref glfwGetFramebufferSize. + * + * To create a full screen window, you need to specify the monitor the window + * will cover. If no monitor is specified, the window will be windowed mode. + * Unless you have a way for the user to choose a specific monitor, it is + * recommended that you pick the primary monitor. For more information on how + * to query connected monitors, see @ref monitor_monitors. + * + * For full screen windows, the specified size becomes the resolution of the + * window's _desired video mode_. As long as a full screen window is not + * iconified, the supported video mode most closely matching the desired video + * mode is set for the specified monitor. For more information about full + * screen windows, including the creation of so called _windowed full screen_ + * or _borderless full screen_ windows, see @ref window_windowed_full_screen. + * + * Once you have created the window, you can switch it between windowed and + * full screen mode with @ref glfwSetWindowMonitor. This will not affect its + * OpenGL or OpenGL ES context. + * + * By default, newly created windows use the placement recommended by the + * window system. To create the window at a specific position, set the @ref + * GLFW_POSITION_X and @ref GLFW_POSITION_Y window hints before creation. To + * restore the default behavior, set either or both hints back to + * `GLFW_ANY_POSITION`. + * + * As long as at least one full screen window is not iconified, the screensaver + * is prohibited from starting. + * + * Window systems put limits on window sizes. Very large or very small window + * dimensions may be overridden by the window system on creation. Check the + * actual [size](@ref window_size) after creation. + * + * The [swap interval](@ref buffer_swap) is not set during window creation and + * the initial value may vary depending on driver settings and defaults. + * + * @param[in] width The desired width, in screen coordinates, of the window. + * This must be greater than zero. + * @param[in] height The desired height, in screen coordinates, of the window. + * This must be greater than zero. + * @param[in] title The initial, UTF-8 encoded window title. + * @param[in] monitor The monitor to use for full screen mode, or `NULL` for + * windowed mode. + * @param[in] share The window whose context to share resources with, or `NULL` + * to not share resources. + * @return The handle of the created window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE, @ref GLFW_API_UNAVAILABLE, @ref + * GLFW_VERSION_UNAVAILABLE, @ref GLFW_FORMAT_UNAVAILABLE and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @win32 Window creation will fail if the Microsoft GDI software + * OpenGL implementation is the only one available. + * + * @remark @win32 If the executable has an icon resource named `GLFW_ICON,` it + * will be set as the initial icon for the window. If no such icon is present, + * the `IDI_APPLICATION` icon will be used instead. To set a different icon, + * see @ref glfwSetWindowIcon. + * + * @remark @win32 The context to share resources with must not be current on + * any other thread. + * + * @remark @macos The OS only supports core profile contexts for OpenGL + * versions 3.2 and later. Before creating an OpenGL context of version 3.2 or + * later you must set the [GLFW_OPENGL_PROFILE](@ref GLFW_OPENGL_PROFILE_hint) + * hint accordingly. OpenGL 3.0 and 3.1 contexts are not supported at all + * on macOS. + * + * @remark @macos The GLFW window has no icon, as it is not a document + * window, but the dock icon will be the same as the application bundle's icon. + * For more information on bundles, see the + * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) + * in the Mac Developer Library. + * + * @remark @macos On OS X 10.10 and later the window frame will not be rendered + * at full resolution on Retina displays unless the + * [GLFW_COCOA_RETINA_FRAMEBUFFER](@ref GLFW_COCOA_RETINA_FRAMEBUFFER_hint) + * hint is `GLFW_TRUE` and the `NSHighResolutionCapable` key is enabled in the + * application bundle's `Info.plist`. For more information, see + * [High Resolution Guidelines for OS X](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html) + * in the Mac Developer Library. The GLFW test and example programs use + * a custom `Info.plist` template for this, which can be found as + * `CMake/Info.plist.in` in the source tree. + * + * @remark @macos When activating frame autosaving with + * [GLFW_COCOA_FRAME_NAME](@ref GLFW_COCOA_FRAME_NAME_hint), the specified + * window size and position may be overridden by previously saved values. + * + * @remark @x11 Some window managers will not respect the placement of + * initially hidden windows. + * + * @remark @x11 Due to the asynchronous nature of X11, it may take a moment for + * a window to reach its requested state. This means you may not be able to + * query the final size, position or other attributes directly after window + * creation. + * + * @remark @x11 The class part of the `WM_CLASS` window property will by + * default be set to the window title passed to this function. The instance + * part will use the contents of the `RESOURCE_NAME` environment variable, if + * present and not empty, or fall back to the window title. Set the + * [GLFW_X11_CLASS_NAME](@ref GLFW_X11_CLASS_NAME_hint) and + * [GLFW_X11_INSTANCE_NAME](@ref GLFW_X11_INSTANCE_NAME_hint) window hints to + * override this. + * + * @remark @wayland Compositors should implement the xdg-decoration protocol + * for GLFW to decorate the window properly. If this protocol isn't + * supported, or if the compositor prefers client-side decorations, a very + * simple fallback frame will be drawn using the wp_viewporter protocol. A + * compositor can still emit close, maximize or fullscreen events, using for + * instance a keybind mechanism. If neither of these protocols is supported, + * the window won't be decorated. + * + * @remark @wayland A full screen window will not attempt to change the mode, + * no matter what the requested size or refresh rate. + * + * @remark @wayland Screensaver inhibition requires the idle-inhibit protocol + * to be implemented in the user's compositor. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_creation + * @sa @ref glfwDestroyWindow + * + * @since Added in version 3.0. Replaces `glfwOpenWindow`. + * + * @ingroup window + */ +GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share); + +/*! @brief Destroys the specified window and its context. + * + * This function destroys the specified window and its context. On calling + * this function, no further callbacks will be called for that window. + * + * If the context of the specified window is current on the main thread, it is + * detached before being destroyed. + * + * @param[in] window The window to destroy. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @note The context of the specified window must not be current on any other + * thread when this function is called. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_creation + * @sa @ref glfwCreateWindow + * + * @since Added in version 3.0. Replaces `glfwCloseWindow`. + * + * @ingroup window + */ +GLFWAPI void glfwDestroyWindow(GLFWwindow* window); + +/*! @brief Checks the close flag of the specified window. + * + * This function returns the value of the close flag of the specified window. + * + * @param[in] window The window to query. + * @return The value of the close flag. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_close + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI int glfwWindowShouldClose(GLFWwindow* window); + +/*! @brief Sets the close flag of the specified window. + * + * This function sets the value of the close flag of the specified window. + * This can be used to override the user's attempt to close the window, or + * to signal that it should be closed. + * + * @param[in] window The window whose flag to change. + * @param[in] value The new value. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_close + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value); + +/*! @brief Sets the title of the specified window. + * + * This function sets the window title, encoded as UTF-8, of the specified + * window. + * + * @param[in] window The window whose title to change. + * @param[in] title The UTF-8 encoded window title. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @macos The window title will not be updated until the next time you + * process events. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_title + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title); + +/*! @brief Sets the icon for the specified window. + * + * This function sets the icon of the specified window. If passed an array of + * candidate images, those of or closest to the sizes desired by the system are + * selected. If no images are specified, the window reverts to its default + * icon. + * + * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight + * bits per channel with the red channel first. They are arranged canonically + * as packed sequential rows, starting from the top-left corner. + * + * The desired image sizes varies depending on platform and system settings. + * The selected images will be rescaled as needed. Good sizes include 16x16, + * 32x32 and 48x48. + * + * @param[in] window The window whose icon to set. + * @param[in] count The number of images in the specified array, or zero to + * revert to the default window icon. + * @param[in] images The images to create the icon from. This is ignored if + * count is zero. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE, @ref GLFW_PLATFORM_ERROR and @ref + * GLFW_FEATURE_UNAVAILABLE (see remarks). + * + * @pointer_lifetime The specified image data is copied before this function + * returns. + * + * @remark @macos Regular windows do not have icons on macOS. This function + * will emit @ref GLFW_FEATURE_UNAVAILABLE. The dock icon will be the same as + * the application bundle's icon. For more information on bundles, see the + * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) + * in the Mac Developer Library. + * + * @remark @wayland There is no existing protocol to change an icon, the + * window will thus inherit the one defined in the application's desktop file. + * This function will emit @ref GLFW_FEATURE_UNAVAILABLE. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_icon + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* images); + +/*! @brief Retrieves the position of the content area of the specified window. + * + * This function retrieves the position, in screen coordinates, of the + * upper-left corner of the content area of the specified window. + * + * Any or all of the position arguments may be `NULL`. If an error occurs, all + * non-`NULL` position arguments will be set to zero. + * + * @param[in] window The window to query. + * @param[out] xpos Where to store the x-coordinate of the upper-left corner of + * the content area, or `NULL`. + * @param[out] ypos Where to store the y-coordinate of the upper-left corner of + * the content area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks). + * + * @remark @wayland There is no way for an application to retrieve the global + * position of its windows. This function will emit @ref + * GLFW_FEATURE_UNAVAILABLE. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_pos + * @sa @ref glfwSetWindowPos + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); + +/*! @brief Sets the position of the content area of the specified window. + * + * This function sets the position, in screen coordinates, of the upper-left + * corner of the content area of the specified windowed mode window. If the + * window is a full screen window, this function does nothing. + * + * __Do not use this function__ to move an already visible window unless you + * have very good reasons for doing so, as it will confuse and annoy the user. + * + * The window manager may put limits on what positions are allowed. GLFW + * cannot and should not override these limits. + * + * @param[in] window The window to query. + * @param[in] xpos The x-coordinate of the upper-left corner of the content area. + * @param[in] ypos The y-coordinate of the upper-left corner of the content area. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks). + * + * @remark @wayland There is no way for an application to set the global + * position of its windows. This function will emit @ref + * GLFW_FEATURE_UNAVAILABLE. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_pos + * @sa @ref glfwGetWindowPos + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos); + +/*! @brief Retrieves the size of the content area of the specified window. + * + * This function retrieves the size, in screen coordinates, of the content area + * of the specified window. If you wish to retrieve the size of the + * framebuffer of the window in pixels, see @ref glfwGetFramebufferSize. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] window The window whose size to retrieve. + * @param[out] width Where to store the width, in screen coordinates, of the + * content area, or `NULL`. + * @param[out] height Where to store the height, in screen coordinates, of the + * content area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * @sa @ref glfwSetWindowSize + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height); + +/*! @brief Sets the size limits of the specified window. + * + * This function sets the size limits of the content area of the specified + * window. If the window is full screen, the size limits only take effect + * once it is made windowed. If the window is not resizable, this function + * does nothing. + * + * The size limits are applied immediately to a windowed mode window and may + * cause it to be resized. + * + * The maximum dimensions must be greater than or equal to the minimum + * dimensions and all must be greater than or equal to zero. + * + * @param[in] window The window to set limits for. + * @param[in] minwidth The minimum width, in screen coordinates, of the content + * area, or `GLFW_DONT_CARE`. + * @param[in] minheight The minimum height, in screen coordinates, of the + * content area, or `GLFW_DONT_CARE`. + * @param[in] maxwidth The maximum width, in screen coordinates, of the content + * area, or `GLFW_DONT_CARE`. + * @param[in] maxheight The maximum height, in screen coordinates, of the + * content area, or `GLFW_DONT_CARE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @remark If you set size limits and an aspect ratio that conflict, the + * results are undefined. + * + * @remark @wayland The size limits will not be applied until the window is + * actually resized, either by the user or by the compositor. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_sizelimits + * @sa @ref glfwSetWindowAspectRatio + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); + +/*! @brief Sets the aspect ratio of the specified window. + * + * This function sets the required aspect ratio of the content area of the + * specified window. If the window is full screen, the aspect ratio only takes + * effect once it is made windowed. If the window is not resizable, this + * function does nothing. + * + * The aspect ratio is specified as a numerator and a denominator and both + * values must be greater than zero. For example, the common 16:9 aspect ratio + * is specified as 16 and 9, respectively. + * + * If the numerator and denominator is set to `GLFW_DONT_CARE` then the aspect + * ratio limit is disabled. + * + * The aspect ratio is applied immediately to a windowed mode window and may + * cause it to be resized. + * + * @param[in] window The window to set limits for. + * @param[in] numer The numerator of the desired aspect ratio, or + * `GLFW_DONT_CARE`. + * @param[in] denom The denominator of the desired aspect ratio, or + * `GLFW_DONT_CARE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @remark If you set size limits and an aspect ratio that conflict, the + * results are undefined. + * + * @remark @wayland The aspect ratio will not be applied until the window is + * actually resized, either by the user or by the compositor. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_sizelimits + * @sa @ref glfwSetWindowSizeLimits + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom); + +/*! @brief Sets the size of the content area of the specified window. + * + * This function sets the size, in screen coordinates, of the content area of + * the specified window. + * + * For full screen windows, this function updates the resolution of its desired + * video mode and switches to the video mode closest to it, without affecting + * the window's context. As the context is unaffected, the bit depths of the + * framebuffer remain unchanged. + * + * If you wish to update the refresh rate of the desired video mode in addition + * to its resolution, see @ref glfwSetWindowMonitor. + * + * The window manager may put limits on what sizes are allowed. GLFW cannot + * and should not override these limits. + * + * @param[in] window The window to resize. + * @param[in] width The desired width, in screen coordinates, of the window + * content area. + * @param[in] height The desired height, in screen coordinates, of the window + * content area. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @wayland A full screen window will not attempt to change the mode, + * no matter what the requested size. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * @sa @ref glfwGetWindowSize + * @sa @ref glfwSetWindowMonitor + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowSize(GLFWwindow* window, int width, int height); + +/*! @brief Retrieves the size of the framebuffer of the specified window. + * + * This function retrieves the size, in pixels, of the framebuffer of the + * specified window. If you wish to retrieve the size of the window in screen + * coordinates, see @ref glfwGetWindowSize. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] window The window whose framebuffer to query. + * @param[out] width Where to store the width, in pixels, of the framebuffer, + * or `NULL`. + * @param[out] height Where to store the height, in pixels, of the framebuffer, + * or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_fbsize + * @sa @ref glfwSetFramebufferSizeCallback + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height); + +/*! @brief Retrieves the size of the frame of the window. + * + * This function retrieves the size, in screen coordinates, of each edge of the + * frame of the specified window. This size includes the title bar, if the + * window has one. The size of the frame may vary depending on the + * [window-related hints](@ref window_hints_wnd) used to create it. + * + * Because this function retrieves the size of each window frame edge and not + * the offset along a particular coordinate axis, the retrieved values will + * always be zero or positive. + * + * Any or all of the size arguments may be `NULL`. If an error occurs, all + * non-`NULL` size arguments will be set to zero. + * + * @param[in] window The window whose frame size to query. + * @param[out] left Where to store the size, in screen coordinates, of the left + * edge of the window frame, or `NULL`. + * @param[out] top Where to store the size, in screen coordinates, of the top + * edge of the window frame, or `NULL`. + * @param[out] right Where to store the size, in screen coordinates, of the + * right edge of the window frame, or `NULL`. + * @param[out] bottom Where to store the size, in screen coordinates, of the + * bottom edge of the window frame, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * + * @since Added in version 3.1. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom); + +/*! @brief Retrieves the content scale for the specified window. + * + * This function retrieves the content scale for the specified window. The + * content scale is the ratio between the current DPI and the platform's + * default DPI. This is especially important for text and any UI elements. If + * the pixel dimensions of your UI scaled by this look appropriate on your + * machine then it should appear at a reasonable size on other machines + * regardless of their DPI and scaling settings. This relies on the system DPI + * and scaling settings being somewhat correct. + * + * On platforms where each monitors can have its own content scale, the window + * content scale will depend on which monitor the system considers the window + * to be on. + * + * @param[in] window The window to query. + * @param[out] xscale Where to store the x-axis content scale, or `NULL`. + * @param[out] yscale Where to store the y-axis content scale, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_scale + * @sa @ref glfwSetWindowContentScaleCallback + * @sa @ref glfwGetMonitorContentScale + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwGetWindowContentScale(GLFWwindow* window, float* xscale, float* yscale); + +/*! @brief Returns the opacity of the whole window. + * + * This function returns the opacity of the window, including any decorations. + * + * The opacity (or alpha) value is a positive finite number between zero and + * one, where zero is fully transparent and one is fully opaque. If the system + * does not support whole window transparency, this function always returns one. + * + * The initial opacity value for newly created windows is one. + * + * @param[in] window The window to query. + * @return The opacity value of the specified window. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_transparency + * @sa @ref glfwSetWindowOpacity + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI float glfwGetWindowOpacity(GLFWwindow* window); + +/*! @brief Sets the opacity of the whole window. + * + * This function sets the opacity of the window, including any decorations. + * + * The opacity (or alpha) value is a positive finite number between zero and + * one, where zero is fully transparent and one is fully opaque. + * + * The initial opacity value for newly created windows is one. + * + * A window created with framebuffer transparency may not use whole window + * transparency. The results of doing this are undefined. + * + * @param[in] window The window to set the opacity for. + * @param[in] opacity The desired opacity of the specified window. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks). + * + * @remark @wayland There is no way to set an opacity factor for a window. + * This function will emit @ref GLFW_FEATURE_UNAVAILABLE. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_transparency + * @sa @ref glfwGetWindowOpacity + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowOpacity(GLFWwindow* window, float opacity); + +/*! @brief Iconifies the specified window. + * + * This function iconifies (minimizes) the specified window if it was + * previously restored. If the window is already iconified, this function does + * nothing. + * + * If the specified window is a full screen window, GLFW restores the original + * video mode of the monitor. The window's desired video mode is set again + * when the window is restored. + * + * @param[in] window The window to iconify. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @wayland Once a window is iconified, @ref glfwRestoreWindow won’t + * be able to restore it. This is a design decision of the xdg-shell + * protocol. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_iconify + * @sa @ref glfwRestoreWindow + * @sa @ref glfwMaximizeWindow + * + * @since Added in version 2.1. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwIconifyWindow(GLFWwindow* window); + +/*! @brief Restores the specified window. + * + * This function restores the specified window if it was previously iconified + * (minimized) or maximized. If the window is already restored, this function + * does nothing. + * + * If the specified window is an iconified full screen window, its desired + * video mode is set again for its monitor when the window is restored. + * + * @param[in] window The window to restore. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_iconify + * @sa @ref glfwIconifyWindow + * @sa @ref glfwMaximizeWindow + * + * @since Added in version 2.1. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwRestoreWindow(GLFWwindow* window); + +/*! @brief Maximizes the specified window. + * + * This function maximizes the specified window if it was previously not + * maximized. If the window is already maximized, this function does nothing. + * + * If the specified window is a full screen window, this function does nothing. + * + * @param[in] window The window to maximize. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @par Thread Safety + * This function may only be called from the main thread. + * + * @sa @ref window_iconify + * @sa @ref glfwIconifyWindow + * @sa @ref glfwRestoreWindow + * + * @since Added in GLFW 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwMaximizeWindow(GLFWwindow* window); + +/*! @brief Makes the specified window visible. + * + * This function makes the specified window visible if it was previously + * hidden. If the window is already visible or is in full screen mode, this + * function does nothing. + * + * By default, windowed mode windows are focused when shown + * Set the [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) window hint + * to change this behavior for all newly created windows, or change the + * behavior for an existing window with @ref glfwSetWindowAttrib. + * + * @param[in] window The window to make visible. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @wayland Because Wayland wants every frame of the desktop to be + * complete, this function does not immediately make the window visible. + * Instead it will become visible the next time the window framebuffer is + * updated after this call. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hide + * @sa @ref glfwHideWindow + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwShowWindow(GLFWwindow* window); + +/*! @brief Hides the specified window. + * + * This function hides the specified window if it was previously visible. If + * the window is already hidden or is in full screen mode, this function does + * nothing. + * + * @param[in] window The window to hide. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_hide + * @sa @ref glfwShowWindow + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwHideWindow(GLFWwindow* window); + +/*! @brief Brings the specified window to front and sets input focus. + * + * This function brings the specified window to front and sets input focus. + * The window should already be visible and not iconified. + * + * By default, both windowed and full screen mode windows are focused when + * initially created. Set the [GLFW_FOCUSED](@ref GLFW_FOCUSED_hint) to + * disable this behavior. + * + * Also by default, windowed mode windows are focused when shown + * with @ref glfwShowWindow. Set the + * [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) to disable this behavior. + * + * __Do not use this function__ to steal focus from other applications unless + * you are certain that is what the user wants. Focus stealing can be + * extremely disruptive. + * + * For a less disruptive way of getting the user's attention, see + * [attention requests](@ref window_attention). + * + * @param[in] window The window to give input focus. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks). + * + * @remark @wayland It is not possible for an application to set the input + * focus. This function will emit @ref GLFW_FEATURE_UNAVAILABLE. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_focus + * @sa @ref window_attention + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwFocusWindow(GLFWwindow* window); + +/*! @brief Requests user attention to the specified window. + * + * This function requests user attention to the specified window. On + * platforms where this is not supported, attention is requested to the + * application as a whole. + * + * Once the user has given attention, usually by focusing the window or + * application, the system will end the request automatically. + * + * @param[in] window The window to request attention to. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @macos Attention is requested to the application as a whole, not the + * specific window. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_attention + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwRequestWindowAttention(GLFWwindow* window); + +/*! @brief Returns the monitor that the window uses for full screen mode. + * + * This function returns the handle of the monitor that the specified window is + * in full screen on. + * + * @param[in] window The window to query. + * @return The monitor, or `NULL` if the window is in windowed mode or an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_monitor + * @sa @ref glfwSetWindowMonitor + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window); + +/*! @brief Sets the mode, monitor, video mode and placement of a window. + * + * This function sets the monitor that the window uses for full screen mode or, + * if the monitor is `NULL`, makes it windowed mode. + * + * When setting a monitor, this function updates the width, height and refresh + * rate of the desired video mode and switches to the video mode closest to it. + * The window position is ignored when setting a monitor. + * + * When the monitor is `NULL`, the position, width and height are used to + * place the window content area. The refresh rate is ignored when no monitor + * is specified. + * + * If you only wish to update the resolution of a full screen window or the + * size of a windowed mode window, see @ref glfwSetWindowSize. + * + * When a window transitions from full screen to windowed mode, this function + * restores any previous window settings such as whether it is decorated, + * floating, resizable, has size or aspect ratio limits, etc. + * + * @param[in] window The window whose monitor, size or video mode to set. + * @param[in] monitor The desired monitor, or `NULL` to set windowed mode. + * @param[in] xpos The desired x-coordinate of the upper-left corner of the + * content area. + * @param[in] ypos The desired y-coordinate of the upper-left corner of the + * content area. + * @param[in] width The desired with, in screen coordinates, of the content + * area or video mode. + * @param[in] height The desired height, in screen coordinates, of the content + * area or video mode. + * @param[in] refreshRate The desired refresh rate, in Hz, of the video mode, + * or `GLFW_DONT_CARE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark The OpenGL or OpenGL ES context will not be destroyed or otherwise + * affected by any resizing or mode switching, although you may need to update + * your viewport if the framebuffer size has changed. + * + * @remark @wayland The desired window position is ignored, as there is no way + * for an application to set this property. + * + * @remark @wayland Setting the window to full screen will not attempt to + * change the mode, no matter what the requested size or refresh rate. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_monitor + * @sa @ref window_full_screen + * @sa @ref glfwGetWindowMonitor + * @sa @ref glfwSetWindowSize + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowMonitor(GLFWwindow* window, GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); + +/*! @brief Returns an attribute of the specified window. + * + * This function returns the value of an attribute of the specified window or + * its OpenGL or OpenGL ES context. + * + * @param[in] window The window to query. + * @param[in] attrib The [window attribute](@ref window_attribs) whose value to + * return. + * @return The value of the attribute, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @remark Framebuffer related hints are not window attributes. See @ref + * window_attribs_fb for more information. + * + * @remark Zero is a valid value for many window and context related + * attributes so you cannot use a return value of zero as an indication of + * errors. However, this function should not fail as long as it is passed + * valid arguments and the library has been [initialized](@ref intro_init). + * + * @remark @wayland The Wayland protocol provides no way to check whether a + * window is iconfied, so @ref GLFW_ICONIFIED always returns `GLFW_FALSE`. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_attribs + * @sa @ref glfwSetWindowAttrib + * + * @since Added in version 3.0. Replaces `glfwGetWindowParam` and + * `glfwGetGLVersion`. + * + * @ingroup window + */ +GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib); + +/*! @brief Sets an attribute of the specified window. + * + * This function sets the value of an attribute of the specified window. + * + * The supported attributes are [GLFW_DECORATED](@ref GLFW_DECORATED_attrib), + * [GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib), + * [GLFW_FLOATING](@ref GLFW_FLOATING_attrib), + * [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) and + * [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_attrib). + * [GLFW_MOUSE_PASSTHROUGH](@ref GLFW_MOUSE_PASSTHROUGH_attrib) + * + * Some of these attributes are ignored for full screen windows. The new + * value will take effect if the window is later made windowed. + * + * Some of these attributes are ignored for windowed mode windows. The new + * value will take effect if the window is later made full screen. + * + * @param[in] window The window to set the attribute for. + * @param[in] attrib A supported window attribute. + * @param[in] value `GLFW_TRUE` or `GLFW_FALSE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @remark Calling @ref glfwGetWindowAttrib will always return the latest + * value, even if that value is ignored by the current mode of the window. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_attribs + * @sa @ref glfwGetWindowAttrib + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowAttrib(GLFWwindow* window, int attrib, int value); + +/*! @brief Sets the user pointer of the specified window. + * + * This function sets the user-defined pointer of the specified window. The + * current value is retained until the window is destroyed. The initial value + * is `NULL`. + * + * @param[in] window The window whose pointer to set. + * @param[in] pointer The new value. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_userptr + * @sa @ref glfwGetWindowUserPointer + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* window, void* pointer); + +/*! @brief Returns the user pointer of the specified window. + * + * This function returns the current value of the user-defined pointer of the + * specified window. The initial value is `NULL`. + * + * @param[in] window The window whose pointer to return. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref window_userptr + * @sa @ref glfwSetWindowUserPointer + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window); + +/*! @brief Sets the position callback for the specified window. + * + * This function sets the position callback of the specified window, which is + * called when the window is moved. The callback is provided with the + * position, in screen coordinates, of the upper-left corner of the content + * area of the window. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int xpos, int ypos) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowposfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark @wayland This callback will never be called, as there is no way for + * an application to know its global position. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_pos + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun callback); + +/*! @brief Sets the size callback for the specified window. + * + * This function sets the size callback of the specified window, which is + * called when the window is resized. The callback is provided with the size, + * in screen coordinates, of the content area of the window. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int width, int height) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowsizefun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_size + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup window + */ +GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun callback); + +/*! @brief Sets the close callback for the specified window. + * + * This function sets the close callback of the specified window, which is + * called when the user attempts to close the window, for example by clicking + * the close widget in the title bar. + * + * The close flag is set before this callback is called, but you can modify it + * at any time with @ref glfwSetWindowShouldClose. + * + * The close callback is not triggered by @ref glfwDestroyWindow. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowclosefun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark @macos Selecting Quit from the application menu will trigger the + * close callback for all windows. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_close + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup window + */ +GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun callback); + +/*! @brief Sets the refresh callback for the specified window. + * + * This function sets the refresh callback of the specified window, which is + * called when the content area of the window needs to be redrawn, for example + * if the window has been exposed after having been covered by another window. + * + * On compositing window systems such as Aero, Compiz, Aqua or Wayland, where + * the window contents are saved off-screen, this callback may be called only + * very infrequently or never at all. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window); + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowrefreshfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_refresh + * + * @since Added in version 2.5. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup window + */ +GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun callback); + +/*! @brief Sets the focus callback for the specified window. + * + * This function sets the focus callback of the specified window, which is + * called when the window gains or loses input focus. + * + * After the focus callback is called for a window that lost input focus, + * synthetic key and mouse button release events will be generated for all such + * that had been pressed. For more information, see @ref glfwSetKeyCallback + * and @ref glfwSetMouseButtonCallback. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int focused) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowfocusfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_focus + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun callback); + +/*! @brief Sets the iconify callback for the specified window. + * + * This function sets the iconification callback of the specified window, which + * is called when the window is iconified or restored. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int iconified) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowiconifyfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_iconify + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun callback); + +/*! @brief Sets the maximize callback for the specified window. + * + * This function sets the maximization callback of the specified window, which + * is called when the window is maximized or restored. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int maximized) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowmaximizefun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_maximize + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* window, GLFWwindowmaximizefun callback); + +/*! @brief Sets the framebuffer resize callback for the specified window. + * + * This function sets the framebuffer resize callback of the specified window, + * which is called when the framebuffer of the specified window is resized. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int width, int height) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWframebuffersizefun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_fbsize + * + * @since Added in version 3.0. + * + * @ingroup window + */ +GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun callback); + +/*! @brief Sets the window content scale callback for the specified window. + * + * This function sets the window content scale callback of the specified window, + * which is called when the content scale of the specified window changes. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, float xscale, float yscale) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWwindowcontentscalefun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref window_scale + * @sa @ref glfwGetWindowContentScale + * + * @since Added in version 3.3. + * + * @ingroup window + */ +GLFWAPI GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback(GLFWwindow* window, GLFWwindowcontentscalefun callback); + +/*! @brief Processes all pending events. + * + * This function processes only those events that are already in the event + * queue and then returns immediately. Processing events will cause the window + * and input callbacks associated with those events to be called. + * + * On some platforms, a window move, resize or menu operation will cause event + * processing to block. This is due to how event processing is designed on + * those platforms. You can use the + * [window refresh callback](@ref window_refresh) to redraw the contents of + * your window when necessary during such operations. + * + * Do not assume that callbacks you set will _only_ be called in response to + * event processing functions like this one. While it is necessary to poll for + * events, window systems that require GLFW to register callbacks of its own + * can pass events to GLFW in response to many window system function calls. + * GLFW will pass those events on to the application callbacks before + * returning. + * + * Event processing is not required for joystick input to work. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref events + * @sa @ref glfwWaitEvents + * @sa @ref glfwWaitEventsTimeout + * + * @since Added in version 1.0. + * + * @ingroup window + */ +GLFWAPI void glfwPollEvents(void); + +/*! @brief Waits until events are queued and processes them. + * + * This function puts the calling thread to sleep until at least one event is + * available in the event queue. Once one or more events are available, + * it behaves exactly like @ref glfwPollEvents, i.e. the events in the queue + * are processed and the function then returns immediately. Processing events + * will cause the window and input callbacks associated with those events to be + * called. + * + * Since not all events are associated with callbacks, this function may return + * without a callback having been called even if you are monitoring all + * callbacks. + * + * On some platforms, a window move, resize or menu operation will cause event + * processing to block. This is due to how event processing is designed on + * those platforms. You can use the + * [window refresh callback](@ref window_refresh) to redraw the contents of + * your window when necessary during such operations. + * + * Do not assume that callbacks you set will _only_ be called in response to + * event processing functions like this one. While it is necessary to poll for + * events, window systems that require GLFW to register callbacks of its own + * can pass events to GLFW in response to many window system function calls. + * GLFW will pass those events on to the application callbacks before + * returning. + * + * Event processing is not required for joystick input to work. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref events + * @sa @ref glfwPollEvents + * @sa @ref glfwWaitEventsTimeout + * + * @since Added in version 2.5. + * + * @ingroup window + */ +GLFWAPI void glfwWaitEvents(void); + +/*! @brief Waits with timeout until events are queued and processes them. + * + * This function puts the calling thread to sleep until at least one event is + * available in the event queue, or until the specified timeout is reached. If + * one or more events are available, it behaves exactly like @ref + * glfwPollEvents, i.e. the events in the queue are processed and the function + * then returns immediately. Processing events will cause the window and input + * callbacks associated with those events to be called. + * + * The timeout value must be a positive finite number. + * + * Since not all events are associated with callbacks, this function may return + * without a callback having been called even if you are monitoring all + * callbacks. + * + * On some platforms, a window move, resize or menu operation will cause event + * processing to block. This is due to how event processing is designed on + * those platforms. You can use the + * [window refresh callback](@ref window_refresh) to redraw the contents of + * your window when necessary during such operations. + * + * Do not assume that callbacks you set will _only_ be called in response to + * event processing functions like this one. While it is necessary to poll for + * events, window systems that require GLFW to register callbacks of its own + * can pass events to GLFW in response to many window system function calls. + * GLFW will pass those events on to the application callbacks before + * returning. + * + * Event processing is not required for joystick input to work. + * + * @param[in] timeout The maximum amount of time, in seconds, to wait. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref events + * @sa @ref glfwPollEvents + * @sa @ref glfwWaitEvents + * + * @since Added in version 3.2. + * + * @ingroup window + */ +GLFWAPI void glfwWaitEventsTimeout(double timeout); + +/*! @brief Posts an empty event to the event queue. + * + * This function posts an empty event from the current thread to the event + * queue, causing @ref glfwWaitEvents or @ref glfwWaitEventsTimeout to return. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref events + * @sa @ref glfwWaitEvents + * @sa @ref glfwWaitEventsTimeout + * + * @since Added in version 3.1. + * + * @ingroup window + */ +GLFWAPI void glfwPostEmptyEvent(void); + +/*! @brief Returns the value of an input option for the specified window. + * + * This function returns the value of an input option for the specified window. + * The mode must be one of @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS, + * @ref GLFW_STICKY_MOUSE_BUTTONS, @ref GLFW_LOCK_KEY_MODS or + * @ref GLFW_RAW_MOUSE_MOTION. + * + * @param[in] window The window to query. + * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS`, + * `GLFW_STICKY_MOUSE_BUTTONS`, `GLFW_LOCK_KEY_MODS` or + * `GLFW_RAW_MOUSE_MOTION`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref glfwSetInputMode + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode); + +/*! @brief Sets an input option for the specified window. + * + * This function sets an input mode option for the specified window. The mode + * must be one of @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS, + * @ref GLFW_STICKY_MOUSE_BUTTONS, @ref GLFW_LOCK_KEY_MODS or + * @ref GLFW_RAW_MOUSE_MOTION. + * + * If the mode is `GLFW_CURSOR`, the value must be one of the following cursor + * modes: + * - `GLFW_CURSOR_NORMAL` makes the cursor visible and behaving normally. + * - `GLFW_CURSOR_HIDDEN` makes the cursor invisible when it is over the + * content area of the window but does not restrict the cursor from leaving. + * - `GLFW_CURSOR_DISABLED` hides and grabs the cursor, providing virtual + * and unlimited cursor movement. This is useful for implementing for + * example 3D camera controls. + * - `GLFW_CURSOR_CAPTURED` makes the cursor visible and confines it to the + * content area of the window. + * + * If the mode is `GLFW_STICKY_KEYS`, the value must be either `GLFW_TRUE` to + * enable sticky keys, or `GLFW_FALSE` to disable it. If sticky keys are + * enabled, a key press will ensure that @ref glfwGetKey returns `GLFW_PRESS` + * the next time it is called even if the key had been released before the + * call. This is useful when you are only interested in whether keys have been + * pressed but not when or in which order. + * + * If the mode is `GLFW_STICKY_MOUSE_BUTTONS`, the value must be either + * `GLFW_TRUE` to enable sticky mouse buttons, or `GLFW_FALSE` to disable it. + * If sticky mouse buttons are enabled, a mouse button press will ensure that + * @ref glfwGetMouseButton returns `GLFW_PRESS` the next time it is called even + * if the mouse button had been released before the call. This is useful when + * you are only interested in whether mouse buttons have been pressed but not + * when or in which order. + * + * If the mode is `GLFW_LOCK_KEY_MODS`, the value must be either `GLFW_TRUE` to + * enable lock key modifier bits, or `GLFW_FALSE` to disable them. If enabled, + * callbacks that receive modifier bits will also have the @ref + * GLFW_MOD_CAPS_LOCK bit set when the event was generated with Caps Lock on, + * and the @ref GLFW_MOD_NUM_LOCK bit when Num Lock was on. + * + * If the mode is `GLFW_RAW_MOUSE_MOTION`, the value must be either `GLFW_TRUE` + * to enable raw (unscaled and unaccelerated) mouse motion when the cursor is + * disabled, or `GLFW_FALSE` to disable it. If raw motion is not supported, + * attempting to set this will emit @ref GLFW_FEATURE_UNAVAILABLE. Call @ref + * glfwRawMouseMotionSupported to check for support. + * + * @param[in] window The window whose input mode to set. + * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS`, + * `GLFW_STICKY_MOUSE_BUTTONS`, `GLFW_LOCK_KEY_MODS` or + * `GLFW_RAW_MOUSE_MOTION`. + * @param[in] value The new value of the specified input mode. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM, @ref GLFW_PLATFORM_ERROR and @ref + * GLFW_FEATURE_UNAVAILABLE (see above). + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref glfwGetInputMode + * + * @since Added in version 3.0. Replaces `glfwEnable` and `glfwDisable`. + * + * @ingroup input + */ +GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value); + +/*! @brief Returns whether raw mouse motion is supported. + * + * This function returns whether raw mouse motion is supported on the current + * system. This status does not change after GLFW has been initialized so you + * only need to check this once. If you attempt to enable raw motion on + * a system that does not support it, @ref GLFW_PLATFORM_ERROR will be emitted. + * + * Raw mouse motion is closer to the actual motion of the mouse across + * a surface. It is not affected by the scaling and acceleration applied to + * the motion of the desktop cursor. That processing is suitable for a cursor + * while raw motion is better for controlling for example a 3D camera. Because + * of this, raw mouse motion is only provided when the cursor is disabled. + * + * @return `GLFW_TRUE` if raw mouse motion is supported on the current machine, + * or `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref raw_mouse_motion + * @sa @ref glfwSetInputMode + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI int glfwRawMouseMotionSupported(void); + +/*! @brief Returns the layout-specific name of the specified printable key. + * + * This function returns the name of the specified printable key, encoded as + * UTF-8. This is typically the character that key would produce without any + * modifier keys, intended for displaying key bindings to the user. For dead + * keys, it is typically the diacritic it would add to a character. + * + * __Do not use this function__ for [text input](@ref input_char). You will + * break text input for many languages even if it happens to work for yours. + * + * If the key is `GLFW_KEY_UNKNOWN`, the scancode is used to identify the key, + * otherwise the scancode is ignored. If you specify a non-printable key, or + * `GLFW_KEY_UNKNOWN` and a scancode that maps to a non-printable key, this + * function returns `NULL` but does not emit an error. + * + * This behavior allows you to always pass in the arguments in the + * [key callback](@ref input_key) without modification. + * + * The printable keys are: + * - `GLFW_KEY_APOSTROPHE` + * - `GLFW_KEY_COMMA` + * - `GLFW_KEY_MINUS` + * - `GLFW_KEY_PERIOD` + * - `GLFW_KEY_SLASH` + * - `GLFW_KEY_SEMICOLON` + * - `GLFW_KEY_EQUAL` + * - `GLFW_KEY_LEFT_BRACKET` + * - `GLFW_KEY_RIGHT_BRACKET` + * - `GLFW_KEY_BACKSLASH` + * - `GLFW_KEY_WORLD_1` + * - `GLFW_KEY_WORLD_2` + * - `GLFW_KEY_0` to `GLFW_KEY_9` + * - `GLFW_KEY_A` to `GLFW_KEY_Z` + * - `GLFW_KEY_KP_0` to `GLFW_KEY_KP_9` + * - `GLFW_KEY_KP_DECIMAL` + * - `GLFW_KEY_KP_DIVIDE` + * - `GLFW_KEY_KP_MULTIPLY` + * - `GLFW_KEY_KP_SUBTRACT` + * - `GLFW_KEY_KP_ADD` + * - `GLFW_KEY_KP_EQUAL` + * + * Names for printable keys depend on keyboard layout, while names for + * non-printable keys are the same across layouts but depend on the application + * language and should be localized along with other user interface text. + * + * @param[in] key The key to query, or `GLFW_KEY_UNKNOWN`. + * @param[in] scancode The scancode of the key to query. + * @return The UTF-8 encoded, layout-specific name of the key, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark The contents of the returned string may change when a keyboard + * layout change event is received. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_key_name + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetKeyName(int key, int scancode); + +/*! @brief Returns the platform-specific scancode of the specified key. + * + * This function returns the platform-specific scancode of the specified key. + * + * If the key is `GLFW_KEY_UNKNOWN` or does not exist on the keyboard this + * method will return `-1`. + * + * @param[in] key Any [named key](@ref keys). + * @return The platform-specific scancode for the key, or `-1` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref input_key + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI int glfwGetKeyScancode(int key); + +/*! @brief Returns the last reported state of a keyboard key for the specified + * window. + * + * This function returns the last state reported for the specified key to the + * specified window. The returned state is one of `GLFW_PRESS` or + * `GLFW_RELEASE`. The action `GLFW_REPEAT` is only reported to the key callback. + * + * If the @ref GLFW_STICKY_KEYS input mode is enabled, this function returns + * `GLFW_PRESS` the first time you call it for a key that was pressed, even if + * that key has already been released. + * + * The key functions deal with physical keys, with [key tokens](@ref keys) + * named after their use on the standard US keyboard layout. If you want to + * input text, use the Unicode character callback instead. + * + * The [modifier key bit masks](@ref mods) are not key tokens and cannot be + * used with this function. + * + * __Do not use this function__ to implement [text input](@ref input_char). + * + * @param[in] window The desired window. + * @param[in] key The desired [keyboard key](@ref keys). `GLFW_KEY_UNKNOWN` is + * not a valid key for this function. + * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_key + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup input + */ +GLFWAPI int glfwGetKey(GLFWwindow* window, int key); + +/*! @brief Returns the last reported state of a mouse button for the specified + * window. + * + * This function returns the last state reported for the specified mouse button + * to the specified window. The returned state is one of `GLFW_PRESS` or + * `GLFW_RELEASE`. + * + * If the @ref GLFW_STICKY_MOUSE_BUTTONS input mode is enabled, this function + * returns `GLFW_PRESS` the first time you call it for a mouse button that was + * pressed, even if that mouse button has already been released. + * + * @param[in] window The desired window. + * @param[in] button The desired [mouse button](@ref buttons). + * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_mouse_button + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup input + */ +GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); + +/*! @brief Retrieves the position of the cursor relative to the content area of + * the window. + * + * This function returns the position of the cursor, in screen coordinates, + * relative to the upper-left corner of the content area of the specified + * window. + * + * If the cursor is disabled (with `GLFW_CURSOR_DISABLED`) then the cursor + * position is unbounded and limited only by the minimum and maximum values of + * a `double`. + * + * The coordinate can be converted to their integer equivalents with the + * `floor` function. Casting directly to an integer type works for positive + * coordinates, but fails for negative ones. + * + * Any or all of the position arguments may be `NULL`. If an error occurs, all + * non-`NULL` position arguments will be set to zero. + * + * @param[in] window The desired window. + * @param[out] xpos Where to store the cursor x-coordinate, relative to the + * left edge of the content area, or `NULL`. + * @param[out] ypos Where to store the cursor y-coordinate, relative to the to + * top edge of the content area, or `NULL`. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_pos + * @sa @ref glfwSetCursorPos + * + * @since Added in version 3.0. Replaces `glfwGetMousePos`. + * + * @ingroup input + */ +GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); + +/*! @brief Sets the position of the cursor, relative to the content area of the + * window. + * + * This function sets the position, in screen coordinates, of the cursor + * relative to the upper-left corner of the content area of the specified + * window. The window must have input focus. If the window does not have + * input focus when this function is called, it fails silently. + * + * __Do not use this function__ to implement things like camera controls. GLFW + * already provides the `GLFW_CURSOR_DISABLED` cursor mode that hides the + * cursor, transparently re-centers it and provides unconstrained cursor + * motion. See @ref glfwSetInputMode for more information. + * + * If the cursor mode is `GLFW_CURSOR_DISABLED` then the cursor position is + * unconstrained and limited only by the minimum and maximum values of + * a `double`. + * + * @param[in] window The desired window. + * @param[in] xpos The desired x-coordinate, relative to the left edge of the + * content area. + * @param[in] ypos The desired y-coordinate, relative to the top edge of the + * content area. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @remark @wayland This function will only work when the cursor mode is + * `GLFW_CURSOR_DISABLED`, otherwise it will do nothing. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_pos + * @sa @ref glfwGetCursorPos + * + * @since Added in version 3.0. Replaces `glfwSetMousePos`. + * + * @ingroup input + */ +GLFWAPI void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos); + +/*! @brief Creates a custom cursor. + * + * Creates a new custom cursor image that can be set for a window with @ref + * glfwSetCursor. The cursor can be destroyed with @ref glfwDestroyCursor. + * Any remaining cursors are destroyed by @ref glfwTerminate. + * + * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight + * bits per channel with the red channel first. They are arranged canonically + * as packed sequential rows, starting from the top-left corner. + * + * The cursor hotspot is specified in pixels, relative to the upper-left corner + * of the cursor image. Like all other coordinate systems in GLFW, the X-axis + * points to the right and the Y-axis points down. + * + * @param[in] image The desired cursor image. + * @param[in] xhot The desired x-coordinate, in pixels, of the cursor hotspot. + * @param[in] yhot The desired y-coordinate, in pixels, of the cursor hotspot. + * @return The handle of the created cursor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The specified image data is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_object + * @sa @ref glfwDestroyCursor + * @sa @ref glfwCreateStandardCursor + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot); + +/*! @brief Creates a cursor with a standard shape. + * + * Returns a cursor with a standard shape, that can be set for a window with + * @ref glfwSetCursor. The images for these cursors come from the system + * cursor theme and their exact appearance will vary between platforms. + * + * Most of these shapes are guaranteed to exist on every supported platform but + * a few may not be present. See the table below for details. + * + * Cursor shape | Windows | macOS | X11 | Wayland + * ------------------------------ | ------- | ----- | ------ | ------- + * @ref GLFW_ARROW_CURSOR | Yes | Yes | Yes | Yes + * @ref GLFW_IBEAM_CURSOR | Yes | Yes | Yes | Yes + * @ref GLFW_CROSSHAIR_CURSOR | Yes | Yes | Yes | Yes + * @ref GLFW_POINTING_HAND_CURSOR | Yes | Yes | Yes | Yes + * @ref GLFW_RESIZE_EW_CURSOR | Yes | Yes | Yes | Yes + * @ref GLFW_RESIZE_NS_CURSOR | Yes | Yes | Yes | Yes + * @ref GLFW_RESIZE_NWSE_CURSOR | Yes | Yes1 | Maybe2 | Maybe2 + * @ref GLFW_RESIZE_NESW_CURSOR | Yes | Yes1 | Maybe2 | Maybe2 + * @ref GLFW_RESIZE_ALL_CURSOR | Yes | Yes | Yes | Yes + * @ref GLFW_NOT_ALLOWED_CURSOR | Yes | Yes | Maybe2 | Maybe2 + * + * 1) This uses a private system API and may fail in the future. + * + * 2) This uses a newer standard that not all cursor themes support. + * + * If the requested shape is not available, this function emits a @ref + * GLFW_CURSOR_UNAVAILABLE error and returns `NULL`. + * + * @param[in] shape One of the [standard shapes](@ref shapes). + * @return A new cursor ready to use or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM, @ref GLFW_CURSOR_UNAVAILABLE and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_standard + * @sa @ref glfwCreateCursor + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape); + +/*! @brief Destroys a cursor. + * + * This function destroys a cursor previously created with @ref + * glfwCreateCursor. Any remaining cursors will be destroyed by @ref + * glfwTerminate. + * + * If the specified cursor is current for any window, that window will be + * reverted to the default cursor. This does not affect the cursor mode. + * + * @param[in] cursor The cursor object to destroy. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @reentrancy This function must not be called from a callback. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_object + * @sa @ref glfwCreateCursor + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI void glfwDestroyCursor(GLFWcursor* cursor); + +/*! @brief Sets the cursor for the window. + * + * This function sets the cursor image to be used when the cursor is over the + * content area of the specified window. The set cursor will only be visible + * when the [cursor mode](@ref cursor_mode) of the window is + * `GLFW_CURSOR_NORMAL`. + * + * On some platforms, the set cursor may not be visible unless the window also + * has input focus. + * + * @param[in] window The window to set the cursor for. + * @param[in] cursor The cursor to set, or `NULL` to switch back to the default + * arrow cursor. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_object + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor); + +/*! @brief Sets the key callback. + * + * This function sets the key callback of the specified window, which is called + * when a key is pressed, repeated or released. + * + * The key functions deal with physical keys, with layout independent + * [key tokens](@ref keys) named after their values in the standard US keyboard + * layout. If you want to input text, use the + * [character callback](@ref glfwSetCharCallback) instead. + * + * When a window loses input focus, it will generate synthetic key release + * events for all pressed keys. You can tell these events from user-generated + * events by the fact that the synthetic ones are generated after the focus + * loss event has been processed, i.e. after the + * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. + * + * The scancode of a key is specific to that platform or sometimes even to that + * machine. Scancodes are intended to allow users to bind keys that don't have + * a GLFW key token. Such keys have `key` set to `GLFW_KEY_UNKNOWN`, their + * state is not saved and so it cannot be queried with @ref glfwGetKey. + * + * Sometimes GLFW needs to generate synthetic key events, in which case the + * scancode may be zero. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new key callback, or `NULL` to remove the currently + * set callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int key, int scancode, int action, int mods) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWkeyfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_key + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup input + */ +GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun callback); + +/*! @brief Sets the Unicode character callback. + * + * This function sets the character callback of the specified window, which is + * called when a Unicode character is input. + * + * The character callback is intended for Unicode text input. As it deals with + * characters, it is keyboard layout dependent, whereas the + * [key callback](@ref glfwSetKeyCallback) is not. Characters do not map 1:1 + * to physical keys, as a key may produce zero, one or more characters. If you + * want to know whether a specific physical key was pressed or released, see + * the key callback instead. + * + * The character callback behaves as system text input normally does and will + * not be called if modifier keys are held down that would prevent normal text + * input on that platform, for example a Super (Command) key on macOS or Alt key + * on Windows. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcharfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_char + * + * @since Added in version 2.4. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup input + */ +GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun callback); + +/*! @brief Sets the Unicode character with modifiers callback. + * + * This function sets the character with modifiers callback of the specified + * window, which is called when a Unicode character is input regardless of what + * modifier keys are used. + * + * The character with modifiers callback is intended for implementing custom + * Unicode character input. For regular Unicode text input, see the + * [character callback](@ref glfwSetCharCallback). Like the character + * callback, the character with modifiers callback deals with characters and is + * keyboard layout dependent. Characters do not map 1:1 to physical keys, as + * a key may produce zero, one or more characters. If you want to know whether + * a specific physical key was pressed or released, see the + * [key callback](@ref glfwSetKeyCallback) instead. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or an + * [error](@ref error_handling) occurred. + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, unsigned int codepoint, int mods) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcharmodsfun). + * + * @deprecated Scheduled for removal in version 4.0. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_char + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun callback); + +/*! @brief Sets the mouse button callback. + * + * This function sets the mouse button callback of the specified window, which + * is called when a mouse button is pressed or released. + * + * When a window loses input focus, it will generate synthetic mouse button + * release events for all pressed mouse buttons. You can tell these events + * from user-generated events by the fact that the synthetic ones are generated + * after the focus loss event has been processed, i.e. after the + * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int button, int action, int mods) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWmousebuttonfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref input_mouse_button + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter and return value. + * + * @ingroup input + */ +GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun callback); + +/*! @brief Sets the cursor position callback. + * + * This function sets the cursor position callback of the specified window, + * which is called when the cursor is moved. The callback is provided with the + * position, in screen coordinates, relative to the upper-left corner of the + * content area of the window. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, double xpos, double ypos); + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcursorposfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_pos + * + * @since Added in version 3.0. Replaces `glfwSetMousePosCallback`. + * + * @ingroup input + */ +GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun callback); + +/*! @brief Sets the cursor enter/leave callback. + * + * This function sets the cursor boundary crossing callback of the specified + * window, which is called when the cursor enters or leaves the content area of + * the window. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int entered) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWcursorenterfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref cursor_enter + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun callback); + +/*! @brief Sets the scroll callback. + * + * This function sets the scroll callback of the specified window, which is + * called when a scrolling device is used, such as a mouse wheel or scrolling + * area of a touchpad. + * + * The scroll callback receives all scrolling input, like that from a mouse + * wheel or a touchpad scrolling area. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new scroll callback, or `NULL` to remove the + * currently set callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, double xoffset, double yoffset) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWscrollfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref scrolling + * + * @since Added in version 3.0. Replaces `glfwSetMouseWheelCallback`. + * + * @ingroup input + */ +GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun callback); + +/*! @brief Sets the path drop callback. + * + * This function sets the path drop callback of the specified window, which is + * called when one or more dragged paths are dropped on the window. + * + * Because the path array and its strings may have been generated specifically + * for that event, they are not guaranteed to be valid after the callback has + * returned. If you wish to use them after the callback returns, you need to + * make a deep copy. + * + * @param[in] window The window whose callback to set. + * @param[in] callback The new file drop callback, or `NULL` to remove the + * currently set callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(GLFWwindow* window, int path_count, const char* paths[]) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWdropfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark @wayland File drop is currently unimplemented. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref path_drop + * + * @since Added in version 3.1. + * + * @ingroup input + */ +GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun callback); + +/*! @brief Returns whether the specified joystick is present. + * + * This function returns whether the specified joystick is present. + * + * There is no need to call this function before other functions that accept + * a joystick ID, as they all check for presence before performing any other + * work. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @return `GLFW_TRUE` if the joystick is present, or `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick + * + * @since Added in version 3.0. Replaces `glfwGetJoystickParam`. + * + * @ingroup input + */ +GLFWAPI int glfwJoystickPresent(int jid); + +/*! @brief Returns the values of all axes of the specified joystick. + * + * This function returns the values of all axes of the specified joystick. + * Each element in the array is a value between -1.0 and 1.0. + * + * If the specified joystick is not present this function will return `NULL` + * but will not generate an error. This can be used instead of first calling + * @ref glfwJoystickPresent. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @param[out] count Where to store the number of axis values in the returned + * array. This is set to zero if the joystick is not present or an error + * occurred. + * @return An array of axis values, or `NULL` if the joystick is not present or + * an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_axis + * + * @since Added in version 3.0. Replaces `glfwGetJoystickPos`. + * + * @ingroup input + */ +GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count); + +/*! @brief Returns the state of all buttons of the specified joystick. + * + * This function returns the state of all buttons of the specified joystick. + * Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`. + * + * For backward compatibility with earlier versions that did not have @ref + * glfwGetJoystickHats, the button array also includes all hats, each + * represented as four buttons. The hats are in the same order as returned by + * __glfwGetJoystickHats__ and are in the order _up_, _right_, _down_ and + * _left_. To disable these extra buttons, set the @ref + * GLFW_JOYSTICK_HAT_BUTTONS init hint before initialization. + * + * If the specified joystick is not present this function will return `NULL` + * but will not generate an error. This can be used instead of first calling + * @ref glfwJoystickPresent. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @param[out] count Where to store the number of button states in the returned + * array. This is set to zero if the joystick is not present or an error + * occurred. + * @return An array of button states, or `NULL` if the joystick is not present + * or an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_button + * + * @since Added in version 2.2. + * @glfw3 Changed to return a dynamic array. + * + * @ingroup input + */ +GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count); + +/*! @brief Returns the state of all hats of the specified joystick. + * + * This function returns the state of all hats of the specified joystick. + * Each element in the array is one of the following values: + * + * Name | Value + * ---- | ----- + * `GLFW_HAT_CENTERED` | 0 + * `GLFW_HAT_UP` | 1 + * `GLFW_HAT_RIGHT` | 2 + * `GLFW_HAT_DOWN` | 4 + * `GLFW_HAT_LEFT` | 8 + * `GLFW_HAT_RIGHT_UP` | `GLFW_HAT_RIGHT` \| `GLFW_HAT_UP` + * `GLFW_HAT_RIGHT_DOWN` | `GLFW_HAT_RIGHT` \| `GLFW_HAT_DOWN` + * `GLFW_HAT_LEFT_UP` | `GLFW_HAT_LEFT` \| `GLFW_HAT_UP` + * `GLFW_HAT_LEFT_DOWN` | `GLFW_HAT_LEFT` \| `GLFW_HAT_DOWN` + * + * The diagonal directions are bitwise combinations of the primary (up, right, + * down and left) directions and you can test for these individually by ANDing + * it with the corresponding direction. + * + * @code + * if (hats[2] & GLFW_HAT_RIGHT) + * { + * // State of hat 2 could be right-up, right or right-down + * } + * @endcode + * + * If the specified joystick is not present this function will return `NULL` + * but will not generate an error. This can be used instead of first calling + * @ref glfwJoystickPresent. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @param[out] count Where to store the number of hat states in the returned + * array. This is set to zero if the joystick is not present or an error + * occurred. + * @return An array of hat states, or `NULL` if the joystick is not present + * or an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected, this function is called again for that joystick or the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_hat + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count); + +/*! @brief Returns the name of the specified joystick. + * + * This function returns the name, encoded as UTF-8, of the specified joystick. + * The returned string is allocated and freed by GLFW. You should not free it + * yourself. + * + * If the specified joystick is not present this function will return `NULL` + * but will not generate an error. This can be used instead of first calling + * @ref glfwJoystickPresent. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick + * is not present or an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_name + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetJoystickName(int jid); + +/*! @brief Returns the SDL compatible GUID of the specified joystick. + * + * This function returns the SDL compatible GUID, as a UTF-8 encoded + * hexadecimal string, of the specified joystick. The returned string is + * allocated and freed by GLFW. You should not free it yourself. + * + * The GUID is what connects a joystick to a gamepad mapping. A connected + * joystick will always have a GUID even if there is no gamepad mapping + * assigned to it. + * + * If the specified joystick is not present this function will return `NULL` + * but will not generate an error. This can be used instead of first calling + * @ref glfwJoystickPresent. + * + * The GUID uses the format introduced in SDL 2.0.5. This GUID tries to + * uniquely identify the make and model of a joystick but does not identify + * a specific unit, e.g. all wired Xbox 360 controllers will have the same + * GUID on that platform. The GUID for a unit may vary between platforms + * depending on what hardware information the platform specific APIs provide. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @return The UTF-8 encoded GUID of the joystick, or `NULL` if the joystick + * is not present or an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref gamepad + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetJoystickGUID(int jid); + +/*! @brief Sets the user pointer of the specified joystick. + * + * This function sets the user-defined pointer of the specified joystick. The + * current value is retained until the joystick is disconnected. The initial + * value is `NULL`. + * + * This function may be called from the joystick callback, even for a joystick + * that is being disconnected. + * + * @param[in] jid The joystick whose pointer to set. + * @param[in] pointer The new value. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref joystick_userptr + * @sa @ref glfwGetJoystickUserPointer + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI void glfwSetJoystickUserPointer(int jid, void* pointer); + +/*! @brief Returns the user pointer of the specified joystick. + * + * This function returns the current value of the user-defined pointer of the + * specified joystick. The initial value is `NULL`. + * + * This function may be called from the joystick callback, even for a joystick + * that is being disconnected. + * + * @param[in] jid The joystick whose pointer to return. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @sa @ref joystick_userptr + * @sa @ref glfwSetJoystickUserPointer + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI void* glfwGetJoystickUserPointer(int jid); + +/*! @brief Returns whether the specified joystick has a gamepad mapping. + * + * This function returns whether the specified joystick is both present and has + * a gamepad mapping. + * + * If the specified joystick is present but does not have a gamepad mapping + * this function will return `GLFW_FALSE` but will not generate an error. Call + * @ref glfwJoystickPresent to check if a joystick is present regardless of + * whether it has a mapping. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @return `GLFW_TRUE` if a joystick is both present and has a gamepad mapping, + * or `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref gamepad + * @sa @ref glfwGetGamepadState + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI int glfwJoystickIsGamepad(int jid); + +/*! @brief Sets the joystick configuration callback. + * + * This function sets the joystick configuration callback, or removes the + * currently set callback. This is called when a joystick is connected to or + * disconnected from the system. + * + * For joystick connection and disconnection events to be delivered on all + * platforms, you need to call one of the [event processing](@ref events) + * functions. Joystick disconnection may also be detected and the callback + * called by joystick functions. The function will then return whatever it + * returns if the joystick is not present. + * + * @param[in] callback The new callback, or `NULL` to remove the currently set + * callback. + * @return The previously set callback, or `NULL` if no callback was set or the + * library had not been [initialized](@ref intro_init). + * + * @callback_signature + * @code + * void function_name(int jid, int event) + * @endcode + * For more information about the callback parameters, see the + * [function pointer type](@ref GLFWjoystickfun). + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref joystick_event + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun callback); + +/*! @brief Adds the specified SDL_GameControllerDB gamepad mappings. + * + * This function parses the specified ASCII encoded string and updates the + * internal list with any gamepad mappings it finds. This string may + * contain either a single gamepad mapping or many mappings separated by + * newlines. The parser supports the full format of the `gamecontrollerdb.txt` + * source file including empty lines and comments. + * + * See @ref gamepad_mapping for a description of the format. + * + * If there is already a gamepad mapping for a given GUID in the internal list, + * it will be replaced by the one passed to this function. If the library is + * terminated and re-initialized the internal list will revert to the built-in + * default. + * + * @param[in] string The string containing the gamepad mappings. + * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_VALUE. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref gamepad + * @sa @ref glfwJoystickIsGamepad + * @sa @ref glfwGetGamepadName + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI int glfwUpdateGamepadMappings(const char* string); + +/*! @brief Returns the human-readable gamepad name for the specified joystick. + * + * This function returns the human-readable name of the gamepad from the + * gamepad mapping assigned to the specified joystick. + * + * If the specified joystick is not present or does not have a gamepad mapping + * this function will return `NULL` but will not generate an error. Call + * @ref glfwJoystickPresent to check whether it is present regardless of + * whether it has a mapping. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @return The UTF-8 encoded name of the gamepad, or `NULL` if the + * joystick is not present, does not have a mapping or an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_INVALID_ENUM. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the specified joystick is + * disconnected, the gamepad mappings are updated or the library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref gamepad + * @sa @ref glfwJoystickIsGamepad + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetGamepadName(int jid); + +/*! @brief Retrieves the state of the specified joystick remapped as a gamepad. + * + * This function retrieves the state of the specified joystick remapped to + * an Xbox-like gamepad. + * + * If the specified joystick is not present or does not have a gamepad mapping + * this function will return `GLFW_FALSE` but will not generate an error. Call + * @ref glfwJoystickPresent to check whether it is present regardless of + * whether it has a mapping. + * + * The Guide button may not be available for input as it is often hooked by the + * system or the Steam client. + * + * Not all devices have all the buttons or axes provided by @ref + * GLFWgamepadstate. Unavailable buttons and axes will always report + * `GLFW_RELEASE` and 0.0 respectively. + * + * @param[in] jid The [joystick](@ref joysticks) to query. + * @param[out] state The gamepad input state of the joystick. + * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if no joystick is + * connected, it has no gamepad mapping or an [error](@ref error_handling) + * occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_ENUM. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref gamepad + * @sa @ref glfwUpdateGamepadMappings + * @sa @ref glfwJoystickIsGamepad + * + * @since Added in version 3.3. + * + * @ingroup input + */ +GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state); + +/*! @brief Sets the clipboard to the specified string. + * + * This function sets the system clipboard to the specified, UTF-8 encoded + * string. + * + * @param[in] window Deprecated. Any valid window or `NULL`. + * @param[in] string A UTF-8 encoded string. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The specified string is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref clipboard + * @sa @ref glfwGetClipboardString + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string); + +/*! @brief Returns the contents of the clipboard as a string. + * + * This function returns the contents of the system clipboard, if it contains + * or is convertible to a UTF-8 encoded string. If the clipboard is empty or + * if its contents cannot be converted, `NULL` is returned and a @ref + * GLFW_FORMAT_UNAVAILABLE error is generated. + * + * @param[in] window Deprecated. Any valid window or `NULL`. + * @return The contents of the clipboard as a UTF-8 encoded string, or `NULL` + * if an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_FORMAT_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the next call to @ref + * glfwGetClipboardString or @ref glfwSetClipboardString, or until the library + * is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref clipboard + * @sa @ref glfwSetClipboardString + * + * @since Added in version 3.0. + * + * @ingroup input + */ +GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); + +/*! @brief Returns the GLFW time. + * + * This function returns the current GLFW time, in seconds. Unless the time + * has been set using @ref glfwSetTime it measures time elapsed since GLFW was + * initialized. + * + * This function and @ref glfwSetTime are helper functions on top of @ref + * glfwGetTimerFrequency and @ref glfwGetTimerValue. + * + * The resolution of the timer is system dependent, but is usually on the order + * of a few micro- or nanoseconds. It uses the highest-resolution monotonic + * time source on each operating system. + * + * @return The current time, in seconds, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Reading and + * writing of the internal base time is not atomic, so it needs to be + * externally synchronized with calls to @ref glfwSetTime. + * + * @sa @ref time + * + * @since Added in version 1.0. + * + * @ingroup input + */ +GLFWAPI double glfwGetTime(void); + +/*! @brief Sets the GLFW time. + * + * This function sets the current GLFW time, in seconds. The value must be + * a positive finite number less than or equal to 18446744073.0, which is + * approximately 584.5 years. + * + * This function and @ref glfwGetTime are helper functions on top of @ref + * glfwGetTimerFrequency and @ref glfwGetTimerValue. + * + * @param[in] time The new value, in seconds. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_INVALID_VALUE. + * + * @remark The upper limit of GLFW time is calculated as + * floor((264 - 1) / 109) and is due to implementations + * storing nanoseconds in 64 bits. The limit may be increased in the future. + * + * @thread_safety This function may be called from any thread. Reading and + * writing of the internal base time is not atomic, so it needs to be + * externally synchronized with calls to @ref glfwGetTime. + * + * @sa @ref time + * + * @since Added in version 2.2. + * + * @ingroup input + */ +GLFWAPI void glfwSetTime(double time); + +/*! @brief Returns the current value of the raw timer. + * + * This function returns the current value of the raw timer, measured in + * 1 / frequency seconds. To get the frequency, call @ref + * glfwGetTimerFrequency. + * + * @return The value of the timer, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref time + * @sa @ref glfwGetTimerFrequency + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI uint64_t glfwGetTimerValue(void); + +/*! @brief Returns the frequency, in Hz, of the raw timer. + * + * This function returns the frequency, in Hz, of the raw timer. + * + * @return The frequency of the timer, in Hz, or zero if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref time + * @sa @ref glfwGetTimerValue + * + * @since Added in version 3.2. + * + * @ingroup input + */ +GLFWAPI uint64_t glfwGetTimerFrequency(void); + +/*! @brief Makes the context of the specified window current for the calling + * thread. + * + * This function makes the OpenGL or OpenGL ES context of the specified window + * current on the calling thread. A context must only be made current on + * a single thread at a time and each thread can have only a single current + * context at a time. + * + * When moving a context between threads, you must make it non-current on the + * old thread before making it current on the new one. + * + * By default, making a context non-current implicitly forces a pipeline flush. + * On machines that support `GL_KHR_context_flush_control`, you can control + * whether a context performs this flush by setting the + * [GLFW_CONTEXT_RELEASE_BEHAVIOR](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_hint) + * hint. + * + * The specified window must have an OpenGL or OpenGL ES context. Specifying + * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT + * error. + * + * @param[in] window The window whose context to make current, or `NULL` to + * detach the current context. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_current + * @sa @ref glfwGetCurrentContext + * + * @since Added in version 3.0. + * + * @ingroup context + */ +GLFWAPI void glfwMakeContextCurrent(GLFWwindow* window); + +/*! @brief Returns the window whose context is current on the calling thread. + * + * This function returns the window whose OpenGL or OpenGL ES context is + * current on the calling thread. + * + * @return The window whose context is current, or `NULL` if no window's + * context is current. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_current + * @sa @ref glfwMakeContextCurrent + * + * @since Added in version 3.0. + * + * @ingroup context + */ +GLFWAPI GLFWwindow* glfwGetCurrentContext(void); + +/*! @brief Swaps the front and back buffers of the specified window. + * + * This function swaps the front and back buffers of the specified window when + * rendering with OpenGL or OpenGL ES. If the swap interval is greater than + * zero, the GPU driver waits the specified number of screen updates before + * swapping the buffers. + * + * The specified window must have an OpenGL or OpenGL ES context. Specifying + * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT + * error. + * + * This function does not apply to Vulkan. If you are rendering with Vulkan, + * see `vkQueuePresentKHR` instead. + * + * @param[in] window The window whose buffers to swap. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @remark __EGL:__ The context of the specified window must be current on the + * calling thread. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref buffer_swap + * @sa @ref glfwSwapInterval + * + * @since Added in version 1.0. + * @glfw3 Added window handle parameter. + * + * @ingroup window + */ +GLFWAPI void glfwSwapBuffers(GLFWwindow* window); + +/*! @brief Sets the swap interval for the current context. + * + * This function sets the swap interval for the current OpenGL or OpenGL ES + * context, i.e. the number of screen updates to wait from the time @ref + * glfwSwapBuffers was called before swapping the buffers and returning. This + * is sometimes called _vertical synchronization_, _vertical retrace + * synchronization_ or just _vsync_. + * + * A context that supports either of the `WGL_EXT_swap_control_tear` and + * `GLX_EXT_swap_control_tear` extensions also accepts _negative_ swap + * intervals, which allows the driver to swap immediately even if a frame + * arrives a little bit late. You can check for these extensions with @ref + * glfwExtensionSupported. + * + * A context must be current on the calling thread. Calling this function + * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. + * + * This function does not apply to Vulkan. If you are rendering with Vulkan, + * see the present mode of your swapchain instead. + * + * @param[in] interval The minimum number of screen updates to wait for + * until the buffers are swapped by @ref glfwSwapBuffers. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @remark This function is not called during context creation, leaving the + * swap interval set to whatever is the default for that API. This is done + * because some swap interval extensions used by GLFW do not allow the swap + * interval to be reset to zero once it has been set to a non-zero value. + * + * @remark Some GPU drivers do not honor the requested swap interval, either + * because of a user setting that overrides the application's request or due to + * bugs in the driver. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref buffer_swap + * @sa @ref glfwSwapBuffers + * + * @since Added in version 1.0. + * + * @ingroup context + */ +GLFWAPI void glfwSwapInterval(int interval); + +/*! @brief Returns whether the specified extension is available. + * + * This function returns whether the specified + * [API extension](@ref context_glext) is supported by the current OpenGL or + * OpenGL ES context. It searches both for client API extension and context + * creation API extensions. + * + * A context must be current on the calling thread. Calling this function + * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. + * + * As this functions retrieves and searches one or more extension strings each + * call, it is recommended that you cache its results if it is going to be used + * frequently. The extension strings will not change during the lifetime of + * a context, so there is no danger in doing this. + * + * This function does not apply to Vulkan. If you are using Vulkan, see @ref + * glfwGetRequiredInstanceExtensions, `vkEnumerateInstanceExtensionProperties` + * and `vkEnumerateDeviceExtensionProperties` instead. + * + * @param[in] extension The ASCII encoded name of the extension. + * @return `GLFW_TRUE` if the extension is available, or `GLFW_FALSE` + * otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_CURRENT_CONTEXT, @ref GLFW_INVALID_VALUE and @ref + * GLFW_PLATFORM_ERROR. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_glext + * @sa @ref glfwGetProcAddress + * + * @since Added in version 1.0. + * + * @ingroup context + */ +GLFWAPI int glfwExtensionSupported(const char* extension); + +/*! @brief Returns the address of the specified function for the current + * context. + * + * This function returns the address of the specified OpenGL or OpenGL ES + * [core or extension function](@ref context_glext), if it is supported + * by the current context. + * + * A context must be current on the calling thread. Calling this function + * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. + * + * This function does not apply to Vulkan. If you are rendering with Vulkan, + * see @ref glfwGetInstanceProcAddress, `vkGetInstanceProcAddr` and + * `vkGetDeviceProcAddr` instead. + * + * @param[in] procname The ASCII encoded name of the function. + * @return The address of the function, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. + * + * @remark The address of a given function is not guaranteed to be the same + * between contexts. + * + * @remark This function may return a non-`NULL` address despite the + * associated version or extension not being available. Always check the + * context version or extension string first. + * + * @pointer_lifetime The returned function pointer is valid until the context + * is destroyed or the library is terminated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref context_glext + * @sa @ref glfwExtensionSupported + * + * @since Added in version 1.0. + * + * @ingroup context + */ +GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname); + +/*! @brief Returns whether the Vulkan loader and an ICD have been found. + * + * This function returns whether the Vulkan loader and any minimally functional + * ICD have been found. + * + * The availability of a Vulkan loader and even an ICD does not by itself guarantee that + * surface creation or even instance creation is possible. Call @ref + * glfwGetRequiredInstanceExtensions to check whether the extensions necessary for Vulkan + * surface creation are available and @ref glfwGetPhysicalDevicePresentationSupport to + * check whether a queue family of a physical device supports image presentation. + * + * @return `GLFW_TRUE` if Vulkan is minimally available, or `GLFW_FALSE` + * otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref vulkan_support + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI int glfwVulkanSupported(void); + +/*! @brief Returns the Vulkan instance extensions required by GLFW. + * + * This function returns an array of names of Vulkan instance extensions required + * by GLFW for creating Vulkan surfaces for GLFW windows. If successful, the + * list will always contain `VK_KHR_surface`, so if you don't require any + * additional extensions you can pass this list directly to the + * `VkInstanceCreateInfo` struct. + * + * If Vulkan is not available on the machine, this function returns `NULL` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported + * to check whether Vulkan is at least minimally available. + * + * If Vulkan is available but no set of extensions allowing window surface + * creation was found, this function returns `NULL`. You may still use Vulkan + * for off-screen rendering and compute work. + * + * @param[out] count Where to store the number of extensions in the returned + * array. This is set to zero if an error occurred. + * @return An array of ASCII encoded extension names, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_API_UNAVAILABLE. + * + * @remark Additional extensions may be required by future versions of GLFW. + * You should check if any extensions you wish to enable are already in the + * returned array, as it is an error to specify an extension more than once in + * the `VkInstanceCreateInfo` struct. + * + * @pointer_lifetime The returned array is allocated and freed by GLFW. You + * should not free it yourself. It is guaranteed to be valid only until the + * library is terminated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref vulkan_ext + * @sa @ref glfwCreateWindowSurface + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count); + +#if defined(VK_VERSION_1_0) + +/*! @brief Returns the address of the specified Vulkan instance function. + * + * This function returns the address of the specified Vulkan core or extension + * function for the specified instance. If instance is set to `NULL` it can + * return any function exported from the Vulkan loader, including at least the + * following functions: + * + * - `vkEnumerateInstanceExtensionProperties` + * - `vkEnumerateInstanceLayerProperties` + * - `vkCreateInstance` + * - `vkGetInstanceProcAddr` + * + * If Vulkan is not available on the machine, this function returns `NULL` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported + * to check whether Vulkan is at least minimally available. + * + * This function is equivalent to calling `vkGetInstanceProcAddr` with + * a platform-specific query of the Vulkan loader as a fallback. + * + * @param[in] instance The Vulkan instance to query, or `NULL` to retrieve + * functions related to instance creation. + * @param[in] procname The ASCII encoded name of the function. + * @return The address of the function, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_API_UNAVAILABLE. + * + * @pointer_lifetime The returned function pointer is valid until the library + * is terminated. + * + * @thread_safety This function may be called from any thread. + * + * @sa @ref vulkan_proc + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char* procname); + +/*! @brief Returns whether the specified queue family can present images. + * + * This function returns whether the specified queue family of the specified + * physical device supports presentation to the platform GLFW was built for. + * + * If Vulkan or the required window surface creation instance extensions are + * not available on the machine, or if the specified instance was not created + * with the required extensions, this function returns `GLFW_FALSE` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported + * to check whether Vulkan is at least minimally available and @ref + * glfwGetRequiredInstanceExtensions to check what instance extensions are + * required. + * + * @param[in] instance The instance that the physical device belongs to. + * @param[in] device The physical device that the queue family belongs to. + * @param[in] queuefamily The index of the queue family to query. + * @return `GLFW_TRUE` if the queue family supports presentation, or + * `GLFW_FALSE` otherwise. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. + * + * @remark @macos This function currently always returns `GLFW_TRUE`, as the + * `VK_MVK_macos_surface` and `VK_EXT_metal_surface` extensions do not provide + * a `vkGetPhysicalDevice*PresentationSupport` type function. + * + * @thread_safety This function may be called from any thread. For + * synchronization details of Vulkan objects, see the Vulkan specification. + * + * @sa @ref vulkan_present + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); + +/*! @brief Creates a Vulkan surface for the specified window. + * + * This function creates a Vulkan surface for the specified window. + * + * If the Vulkan loader or at least one minimally functional ICD were not found, + * this function returns `VK_ERROR_INITIALIZATION_FAILED` and generates a @ref + * GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported to check whether + * Vulkan is at least minimally available. + * + * If the required window surface creation instance extensions are not + * available or if the specified instance was not created with these extensions + * enabled, this function returns `VK_ERROR_EXTENSION_NOT_PRESENT` and + * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref + * glfwGetRequiredInstanceExtensions to check what instance extensions are + * required. + * + * The window surface cannot be shared with another API so the window must + * have been created with the [client api hint](@ref GLFW_CLIENT_API_attrib) + * set to `GLFW_NO_API` otherwise it generates a @ref GLFW_INVALID_VALUE error + * and returns `VK_ERROR_NATIVE_WINDOW_IN_USE_KHR`. + * + * The window surface must be destroyed before the specified Vulkan instance. + * It is the responsibility of the caller to destroy the window surface. GLFW + * does not destroy it for you. Call `vkDestroySurfaceKHR` to destroy the + * surface. + * + * @param[in] instance The Vulkan instance to create the surface in. + * @param[in] window The window to create the surface for. + * @param[in] allocator The allocator to use, or `NULL` to use the default + * allocator. + * @param[out] surface Where to store the handle of the surface. This is set + * to `VK_NULL_HANDLE` if an error occurred. + * @return `VK_SUCCESS` if successful, or a Vulkan error code if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref + * GLFW_API_UNAVAILABLE, @ref GLFW_PLATFORM_ERROR and @ref GLFW_INVALID_VALUE + * + * @remark If an error occurs before the creation call is made, GLFW returns + * the Vulkan error code most appropriate for the error. Appropriate use of + * @ref glfwVulkanSupported and @ref glfwGetRequiredInstanceExtensions should + * eliminate almost all occurrences of these errors. + * + * @remark @macos GLFW prefers the `VK_EXT_metal_surface` extension, with the + * `VK_MVK_macos_surface` extension as a fallback. The name of the selected + * extension, if any, is included in the array returned by @ref + * glfwGetRequiredInstanceExtensions. + * + * @remark @macos This function creates and sets a `CAMetalLayer` instance for + * the window content view, which is required for MoltenVK to function. + * + * @remark @x11 By default GLFW prefers the `VK_KHR_xcb_surface` extension, + * with the `VK_KHR_xlib_surface` extension as a fallback. You can make + * `VK_KHR_xlib_surface` the preferred extension by setting the + * [GLFW_X11_XCB_VULKAN_SURFACE](@ref GLFW_X11_XCB_VULKAN_SURFACE_hint) init + * hint. The name of the selected extension, if any, is included in the array + * returned by @ref glfwGetRequiredInstanceExtensions. + * + * @thread_safety This function may be called from any thread. For + * synchronization details of Vulkan objects, see the Vulkan specification. + * + * @sa @ref vulkan_surface + * @sa @ref glfwGetRequiredInstanceExtensions + * + * @since Added in version 3.2. + * + * @ingroup vulkan + */ +GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); + +#endif /*VK_VERSION_1_0*/ + + +/************************************************************************* + * Global definition cleanup + *************************************************************************/ + +/* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */ + +#ifdef GLFW_WINGDIAPI_DEFINED + #undef WINGDIAPI + #undef GLFW_WINGDIAPI_DEFINED +#endif + +#ifdef GLFW_CALLBACK_DEFINED + #undef CALLBACK + #undef GLFW_CALLBACK_DEFINED +#endif + +/* Some OpenGL related headers need GLAPIENTRY, but it is unconditionally + * defined by some gl.h variants (OpenBSD) so define it after if needed. + */ +#ifndef GLAPIENTRY + #define GLAPIENTRY APIENTRY + #define GLFW_GLAPIENTRY_DEFINED +#endif + +/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */ + + +#ifdef __cplusplus +} +#endif + +#endif /* _glfw3_h_ */ + diff --git a/thirdparty/imgui_suite/glfw/include/GLFW/glfw3native.h b/thirdparty/imgui_suite/glfw/include/GLFW/glfw3native.h new file mode 100644 index 00000000000..171abe36ad1 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/include/GLFW/glfw3native.h @@ -0,0 +1,634 @@ +/************************************************************************* + * GLFW 3.4 - www.glfw.org + * A library for OpenGL, window and input + *------------------------------------------------------------------------ + * Copyright (c) 2002-2006 Marcus Geelnard + * Copyright (c) 2006-2018 Camilla Löwy + * + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would + * be appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must not + * be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source + * distribution. + * + *************************************************************************/ + +#ifndef _glfw3_native_h_ +#define _glfw3_native_h_ + +#ifdef __cplusplus +extern "C" { +#endif + + +/************************************************************************* + * Doxygen documentation + *************************************************************************/ + +/*! @file glfw3native.h + * @brief The header of the native access functions. + * + * This is the header file of the native access functions. See @ref native for + * more information. + */ +/*! @defgroup native Native access + * @brief Functions related to accessing native handles. + * + * **By using the native access functions you assert that you know what you're + * doing and how to fix problems caused by using them. If you don't, you + * shouldn't be using them.** + * + * Before the inclusion of @ref glfw3native.h, you may define zero or more + * window system API macro and zero or more context creation API macros. + * + * The chosen backends must match those the library was compiled for. Failure + * to do this will cause a link-time error. + * + * The available window API macros are: + * * `GLFW_EXPOSE_NATIVE_WIN32` + * * `GLFW_EXPOSE_NATIVE_COCOA` + * * `GLFW_EXPOSE_NATIVE_X11` + * * `GLFW_EXPOSE_NATIVE_WAYLAND` + * + * The available context API macros are: + * * `GLFW_EXPOSE_NATIVE_WGL` + * * `GLFW_EXPOSE_NATIVE_NSGL` + * * `GLFW_EXPOSE_NATIVE_GLX` + * * `GLFW_EXPOSE_NATIVE_EGL` + * * `GLFW_EXPOSE_NATIVE_OSMESA` + * + * These macros select which of the native access functions that are declared + * and which platform-specific headers to include. It is then up your (by + * definition platform-specific) code to handle which of these should be + * defined. + * + * If you do not want the platform-specific headers to be included, define + * `GLFW_NATIVE_INCLUDE_NONE` before including the @ref glfw3native.h header. + * + * @code + * #define GLFW_EXPOSE_NATIVE_WIN32 + * #define GLFW_EXPOSE_NATIVE_WGL + * #define GLFW_NATIVE_INCLUDE_NONE + * #include + * @endcode + */ + + +/************************************************************************* + * System headers and types + *************************************************************************/ + +#if !defined(GLFW_NATIVE_INCLUDE_NONE) + + #if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL) + /* This is a workaround for the fact that glfw3.h needs to export APIENTRY (for + * example to allow applications to correctly declare a GL_KHR_debug callback) + * but windows.h assumes no one will define APIENTRY before it does + */ + #if defined(GLFW_APIENTRY_DEFINED) + #undef APIENTRY + #undef GLFW_APIENTRY_DEFINED + #endif + #include + #endif + + #if defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL) + #if defined(__OBJC__) + #import + #else + #include + #include + #endif + #endif + + #if defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX) + #include + #include + #endif + + #if defined(GLFW_EXPOSE_NATIVE_WAYLAND) + #include + #endif + + #if defined(GLFW_EXPOSE_NATIVE_WGL) + /* WGL is declared by windows.h */ + #endif + #if defined(GLFW_EXPOSE_NATIVE_NSGL) + /* NSGL is declared by Cocoa.h */ + #endif + #if defined(GLFW_EXPOSE_NATIVE_GLX) + /* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by + * default it also acts as an OpenGL header + * However, glx.h will include gl.h, which will define it unconditionally + */ + #if defined(GLFW_GLAPIENTRY_DEFINED) + #undef GLAPIENTRY + #undef GLFW_GLAPIENTRY_DEFINED + #endif + #include + #endif + #if defined(GLFW_EXPOSE_NATIVE_EGL) + #include + #endif + #if defined(GLFW_EXPOSE_NATIVE_OSMESA) + /* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by + * default it also acts as an OpenGL header + * However, osmesa.h will include gl.h, which will define it unconditionally + */ + #if defined(GLFW_GLAPIENTRY_DEFINED) + #undef GLAPIENTRY + #undef GLFW_GLAPIENTRY_DEFINED + #endif + #include + #endif + +#endif /*GLFW_NATIVE_INCLUDE_NONE*/ + + +/************************************************************************* + * Functions + *************************************************************************/ + +#if defined(GLFW_EXPOSE_NATIVE_WIN32) +/*! @brief Returns the adapter device name of the specified monitor. + * + * @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`) + * of the specified monitor, or `NULL` if an [error](@ref error_handling) + * occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor); + +/*! @brief Returns the display device name of the specified monitor. + * + * @return The UTF-8 encoded display device name (for example + * `\\.\DISPLAY1\Monitor0`) of the specified monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor); + +/*! @brief Returns the `HWND` of the specified window. + * + * @return The `HWND` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark The `HDC` associated with the window can be queried with the + * [GetDC](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdc) + * function. + * @code + * HDC dc = GetDC(glfwGetWin32Window(window)); + * @endcode + * This DC is private and does not need to be released. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_WGL) +/*! @brief Returns the `HGLRC` of the specified window. + * + * @return The `HGLRC` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @remark The `HDC` associated with the window can be queried with the + * [GetDC](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdc) + * function. + * @code + * HDC dc = GetDC(glfwGetWin32Window(window)); + * @endcode + * This DC is private and does not need to be released. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_COCOA) +/*! @brief Returns the `CGDirectDisplayID` of the specified monitor. + * + * @return The `CGDirectDisplayID` of the specified monitor, or + * `kCGNullDirectDisplay` if an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor); + +/*! @brief Returns the `NSWindow` of the specified window. + * + * @return The `NSWindow` of the specified window, or `nil` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_NSGL) +/*! @brief Returns the `NSOpenGLContext` of the specified window. + * + * @return The `NSOpenGLContext` of the specified window, or `nil` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI id glfwGetNSGLContext(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_X11) +/*! @brief Returns the `Display` used by GLFW. + * + * @return The `Display` used by GLFW, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI Display* glfwGetX11Display(void); + +/*! @brief Returns the `RRCrtc` of the specified monitor. + * + * @return The `RRCrtc` of the specified monitor, or `None` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor); + +/*! @brief Returns the `RROutput` of the specified monitor. + * + * @return The `RROutput` of the specified monitor, or `None` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.1. + * + * @ingroup native + */ +GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor); + +/*! @brief Returns the `Window` of the specified window. + * + * @return The `Window` of the specified window, or `None` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI Window glfwGetX11Window(GLFWwindow* window); + +/*! @brief Sets the current primary selection to the specified string. + * + * @param[in] string A UTF-8 encoded string. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The specified string is copied before this function + * returns. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref clipboard + * @sa glfwGetX11SelectionString + * @sa glfwSetClipboardString + * + * @since Added in version 3.3. + * + * @ingroup native + */ +GLFWAPI void glfwSetX11SelectionString(const char* string); + +/*! @brief Returns the contents of the current primary selection as a string. + * + * If the selection is empty or if its contents cannot be converted, `NULL` + * is returned and a @ref GLFW_FORMAT_UNAVAILABLE error is generated. + * + * @return The contents of the selection as a UTF-8 encoded string, or `NULL` + * if an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref + * GLFW_PLATFORM_ERROR. + * + * @pointer_lifetime The returned string is allocated and freed by GLFW. You + * should not free it yourself. It is valid until the next call to @ref + * glfwGetX11SelectionString or @ref glfwSetX11SelectionString, or until the + * library is terminated. + * + * @thread_safety This function must only be called from the main thread. + * + * @sa @ref clipboard + * @sa glfwSetX11SelectionString + * @sa glfwGetClipboardString + * + * @since Added in version 3.3. + * + * @ingroup native + */ +GLFWAPI const char* glfwGetX11SelectionString(void); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_GLX) +/*! @brief Returns the `GLXContext` of the specified window. + * + * @return The `GLXContext` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window); + +/*! @brief Returns the `GLXWindow` of the specified window. + * + * @return The `GLXWindow` of the specified window, or `None` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_WAYLAND) +/*! @brief Returns the `struct wl_display*` used by GLFW. + * + * @return The `struct wl_display*` used by GLFW, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI struct wl_display* glfwGetWaylandDisplay(void); + +/*! @brief Returns the `struct wl_output*` of the specified monitor. + * + * @return The `struct wl_output*` of the specified monitor, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor); + +/*! @brief Returns the main `struct wl_surface*` of the specified window. + * + * @return The main `struct wl_surface*` of the specified window, or `NULL` if + * an [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.2. + * + * @ingroup native + */ +GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_EGL) +/*! @brief Returns the `EGLDisplay` used by GLFW. + * + * @return The `EGLDisplay` used by GLFW, or `EGL_NO_DISPLAY` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. + * + * @remark Because EGL is initialized on demand, this function will return + * `EGL_NO_DISPLAY` until the first context has been created via EGL. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI EGLDisplay glfwGetEGLDisplay(void); + +/*! @brief Returns the `EGLContext` of the specified window. + * + * @return The `EGLContext` of the specified window, or `EGL_NO_CONTEXT` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window); + +/*! @brief Returns the `EGLSurface` of the specified window. + * + * @return The `EGLSurface` of the specified window, or `EGL_NO_SURFACE` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.0. + * + * @ingroup native + */ +GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window); +#endif + +#if defined(GLFW_EXPOSE_NATIVE_OSMESA) +/*! @brief Retrieves the color buffer associated with the specified window. + * + * @param[in] window The window whose color buffer to retrieve. + * @param[out] width Where to store the width of the color buffer, or `NULL`. + * @param[out] height Where to store the height of the color buffer, or `NULL`. + * @param[out] format Where to store the OSMesa pixel format of the color + * buffer, or `NULL`. + * @param[out] buffer Where to store the address of the color buffer, or + * `NULL`. + * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.3. + * + * @ingroup native + */ +GLFWAPI int glfwGetOSMesaColorBuffer(GLFWwindow* window, int* width, int* height, int* format, void** buffer); + +/*! @brief Retrieves the depth buffer associated with the specified window. + * + * @param[in] window The window whose depth buffer to retrieve. + * @param[out] width Where to store the width of the depth buffer, or `NULL`. + * @param[out] height Where to store the height of the depth buffer, or `NULL`. + * @param[out] bytesPerValue Where to store the number of bytes per depth + * buffer element, or `NULL`. + * @param[out] buffer Where to store the address of the depth buffer, or + * `NULL`. + * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.3. + * + * @ingroup native + */ +GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* window, int* width, int* height, int* bytesPerValue, void** buffer); + +/*! @brief Returns the `OSMesaContext` of the specified window. + * + * @return The `OSMesaContext` of the specified window, or `NULL` if an + * [error](@ref error_handling) occurred. + * + * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref + * GLFW_NOT_INITIALIZED. + * + * @thread_safety This function may be called from any thread. Access is not + * synchronized. + * + * @since Added in version 3.3. + * + * @ingroup native + */ +GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* window); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _glfw3_native_h_ */ + diff --git a/thirdparty/imgui_suite/glfw/src/CMakeLists.txt b/thirdparty/imgui_suite/glfw/src/CMakeLists.txt new file mode 100644 index 00000000000..01f191c9752 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/CMakeLists.txt @@ -0,0 +1,400 @@ + +add_library(glfw ${GLFW_LIBRARY_TYPE} + "${GLFW_SOURCE_DIR}/include/GLFW/glfw3.h" + "${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h" + internal.h platform.h mappings.h + context.c init.c input.c monitor.c platform.c vulkan.c window.c + egl_context.c osmesa_context.c null_platform.h null_joystick.h + null_init.c null_monitor.c null_window.c null_joystick.c) + +# The time, thread and module code is shared between all backends on a given OS, +# including the null backend, which still needs those bits to be functional +if (APPLE) + target_sources(glfw PRIVATE cocoa_time.h cocoa_time.c posix_thread.h + posix_module.c posix_thread.c) +elseif (WIN32) + target_sources(glfw PRIVATE win32_time.h win32_thread.h win32_module.c + win32_time.c win32_thread.c) +else() + target_sources(glfw PRIVATE posix_time.h posix_thread.h posix_module.c + posix_time.c posix_thread.c) +endif() + +add_custom_target(update_mappings + COMMAND "${CMAKE_COMMAND}" -P "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake" mappings.h.in mappings.h + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + COMMENT "Updating gamepad mappings from upstream repository" + SOURCES mappings.h.in "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake" + VERBATIM) + +set_target_properties(update_mappings PROPERTIES FOLDER "GLFW3") + +if (GLFW_BUILD_COCOA) + target_compile_definitions(glfw PRIVATE _GLFW_COCOA) + target_sources(glfw PRIVATE cocoa_platform.h cocoa_joystick.h cocoa_init.m + cocoa_joystick.m cocoa_monitor.m cocoa_window.m + nsgl_context.m) +endif() + +if (GLFW_BUILD_WIN32) + target_compile_definitions(glfw PRIVATE _GLFW_WIN32) + target_sources(glfw PRIVATE win32_platform.h win32_joystick.h win32_init.c + win32_joystick.c win32_monitor.c win32_window.c + wgl_context.c) +endif() + +if (GLFW_BUILD_X11) + target_compile_definitions(glfw PRIVATE _GLFW_X11) + target_sources(glfw PRIVATE x11_platform.h xkb_unicode.h x11_init.c + x11_monitor.c x11_window.c xkb_unicode.c + glx_context.c) +endif() + +if (GLFW_BUILD_WAYLAND) + target_compile_definitions(glfw PRIVATE _GLFW_WAYLAND) + target_sources(glfw PRIVATE wl_platform.h xkb_unicode.h wl_init.c + wl_monitor.c wl_window.c xkb_unicode.c) +endif() + +if (GLFW_BUILD_X11 OR GLFW_BUILD_WAYLAND) + if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + target_sources(glfw PRIVATE linux_joystick.h linux_joystick.c) + endif() + target_sources(glfw PRIVATE posix_poll.h posix_poll.c) +endif() + +if (GLFW_BUILD_WAYLAND) + include(CheckIncludeFiles) + include(CheckFunctionExists) + check_function_exists(memfd_create HAVE_MEMFD_CREATE) + if (HAVE_MEMFD_CREATE) + target_compile_definitions(glfw PRIVATE HAVE_MEMFD_CREATE) + endif() + + find_program(WAYLAND_SCANNER_EXECUTABLE NAMES wayland-scanner) + + include(FindPkgConfig) + pkg_check_modules(WAYLAND_PROTOCOLS REQUIRED wayland-protocols>=1.15) + pkg_get_variable(WAYLAND_PROTOCOLS_BASE wayland-protocols pkgdatadir) + pkg_get_variable(WAYLAND_CLIENT_PKGDATADIR wayland-client pkgdatadir) + + macro(wayland_generate protocol_file output_file) + add_custom_command(OUTPUT "${output_file}.h" + COMMAND "${WAYLAND_SCANNER_EXECUTABLE}" client-header "${protocol_file}" "${output_file}.h" + DEPENDS "${protocol_file}" + VERBATIM) + + add_custom_command(OUTPUT "${output_file}-code.h" + COMMAND "${WAYLAND_SCANNER_EXECUTABLE}" private-code "${protocol_file}" "${output_file}-code.h" + DEPENDS "${protocol_file}" + VERBATIM) + + target_sources(glfw PRIVATE "${output_file}.h" "${output_file}-code.h") + endmacro() + + wayland_generate( + "${WAYLAND_CLIENT_PKGDATADIR}/wayland.xml" + "${GLFW_BINARY_DIR}/src/wayland-client-protocol") + wayland_generate( + "${WAYLAND_PROTOCOLS_BASE}/stable/xdg-shell/xdg-shell.xml" + "${GLFW_BINARY_DIR}/src/wayland-xdg-shell-client-protocol") + wayland_generate( + "${WAYLAND_PROTOCOLS_BASE}/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml" + "${GLFW_BINARY_DIR}/src/wayland-xdg-decoration-client-protocol") + wayland_generate( + "${WAYLAND_PROTOCOLS_BASE}/stable/viewporter/viewporter.xml" + "${GLFW_BINARY_DIR}/src/wayland-viewporter-client-protocol") + wayland_generate( + "${WAYLAND_PROTOCOLS_BASE}/unstable/relative-pointer/relative-pointer-unstable-v1.xml" + "${GLFW_BINARY_DIR}/src/wayland-relative-pointer-unstable-v1-client-protocol") + wayland_generate( + "${WAYLAND_PROTOCOLS_BASE}/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml" + "${GLFW_BINARY_DIR}/src/wayland-pointer-constraints-unstable-v1-client-protocol") + wayland_generate( + "${WAYLAND_PROTOCOLS_BASE}/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml" + "${GLFW_BINARY_DIR}/src/wayland-idle-inhibit-unstable-v1-client-protocol") +endif() + +if (WIN32 AND GLFW_BUILD_SHARED_LIBRARY) + configure_file(glfw.rc.in glfw.rc @ONLY) + target_sources(glfw PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/glfw.rc") +endif() + +if (UNIX AND GLFW_BUILD_SHARED_LIBRARY) + # On Unix-like systems, shared libraries can use the soname system. + set(GLFW_LIB_NAME glfw) +else() + set(GLFW_LIB_NAME glfw3) +endif() + +set_target_properties(glfw PROPERTIES + OUTPUT_NAME ${GLFW_LIB_NAME} + VERSION ${GLFW_VERSION_MAJOR}.${GLFW_VERSION_MINOR} + SOVERSION ${GLFW_VERSION_MAJOR} + POSITION_INDEPENDENT_CODE ON + C_STANDARD 99 + C_EXTENSIONS OFF + DEFINE_SYMBOL _GLFW_BUILD_DLL + FOLDER "GLFW3") + +target_include_directories(glfw PUBLIC + "$" + "$") +target_include_directories(glfw PRIVATE + "${GLFW_SOURCE_DIR}/src" + "${GLFW_BINARY_DIR}/src") +target_link_libraries(glfw PRIVATE Threads::Threads) + +# Workaround for CMake not knowing about .m files before version 3.16 +if (CMAKE_VERSION VERSION_LESS "3.16" AND APPLE) + set_source_files_properties(cocoa_init.m cocoa_joystick.m cocoa_monitor.m + cocoa_window.m nsgl_context.m PROPERTIES + LANGUAGE C) +endif() + +if (GLFW_BUILD_WIN32) + list(APPEND glfw_PKG_LIBS "-lgdi32") +endif() + +if (GLFW_BUILD_COCOA) + target_link_libraries(glfw PRIVATE "-framework Cocoa" + "-framework IOKit" + "-framework CoreFoundation") + + set(glfw_PKG_DEPS "") + set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation") +endif() + +if (GLFW_BUILD_WAYLAND) + pkg_check_modules(Wayland REQUIRED + wayland-client>=0.2.7 + wayland-cursor>=0.2.7 + wayland-egl>=0.2.7 + xkbcommon>=0.5.0) + + target_include_directories(glfw PRIVATE ${Wayland_INCLUDE_DIRS}) + + if (NOT CMAKE_SYSTEM_NAME STREQUAL "Linux") + find_package(EpollShim) + if (EPOLLSHIM_FOUND) + target_include_directories(glfw PRIVATE ${EPOLLSHIM_INCLUDE_DIRS}) + target_link_libraries(glfw PRIVATE ${EPOLLSHIM_LIBRARIES}) + endif() + endif() +endif() + +if (GLFW_BUILD_X11) + find_package(X11 REQUIRED) + target_include_directories(glfw PRIVATE "${X11_X11_INCLUDE_PATH}") + + # Check for XRandR (modern resolution switching and gamma control) + if (NOT X11_Xrandr_INCLUDE_PATH) + message(FATAL_ERROR "RandR headers not found; install libxrandr development package") + endif() + target_include_directories(glfw PRIVATE "${X11_Xrandr_INCLUDE_PATH}") + + # Check for Xinerama (legacy multi-monitor support) + if (NOT X11_Xinerama_INCLUDE_PATH) + message(FATAL_ERROR "Xinerama headers not found; install libxinerama development package") + endif() + target_include_directories(glfw PRIVATE "${X11_Xinerama_INCLUDE_PATH}") + + # Check for Xkb (X keyboard extension) + if (NOT X11_Xkb_INCLUDE_PATH) + message(FATAL_ERROR "XKB headers not found; install X11 development package") + endif() + target_include_directories(glfw PRIVATE "${X11_Xkb_INCLUDE_PATH}") + + # Check for Xcursor (cursor creation from RGBA images) + if (NOT X11_Xcursor_INCLUDE_PATH) + message(FATAL_ERROR "Xcursor headers not found; install libxcursor development package") + endif() + target_include_directories(glfw PRIVATE "${X11_Xcursor_INCLUDE_PATH}") + + # Check for XInput (modern HID input) + if (NOT X11_Xi_INCLUDE_PATH) + message(FATAL_ERROR "XInput headers not found; install libxi development package") + endif() + target_include_directories(glfw PRIVATE "${X11_Xi_INCLUDE_PATH}") + + # Check for X Shape (custom window input shape) + if (NOT X11_Xshape_INCLUDE_PATH) + message(FATAL_ERROR "X Shape headers not found; install libxext development package") + endif() + target_include_directories(glfw PRIVATE "${X11_Xshape_INCLUDE_PATH}") +endif() + +if (UNIX AND NOT APPLE) + find_library(RT_LIBRARY rt) + mark_as_advanced(RT_LIBRARY) + if (RT_LIBRARY) + target_link_libraries(glfw PRIVATE "${RT_LIBRARY}") + list(APPEND glfw_PKG_LIBS "-lrt") + endif() + + find_library(MATH_LIBRARY m) + mark_as_advanced(MATH_LIBRARY) + if (MATH_LIBRARY) + target_link_libraries(glfw PRIVATE "${MATH_LIBRARY}") + list(APPEND glfw_PKG_LIBS "-lm") + endif() + + if (CMAKE_DL_LIBS) + target_link_libraries(glfw PRIVATE "${CMAKE_DL_LIBS}") + list(APPEND glfw_PKG_LIBS "-l${CMAKE_DL_LIBS}") + endif() +endif() + +# Make GCC warn about declarations that VS 2010 and 2012 won't accept for all +# source files that VS will build (Clang ignores this because we set -std=c99) +if (CMAKE_C_COMPILER_ID STREQUAL "GNU") + set_source_files_properties(context.c init.c input.c monitor.c platform.c vulkan.c + window.c null_init.c null_joystick.c null_monitor.c + null_window.c win32_init.c win32_joystick.c win32_module.c + win32_monitor.c win32_time.c win32_thread.c win32_window.c + wgl_context.c egl_context.c osmesa_context.c PROPERTIES + COMPILE_FLAGS -Wdeclaration-after-statement) +endif() + +if (WIN32) + if (GLFW_USE_HYBRID_HPG) + target_compile_definitions(glfw PRIVATE _GLFW_USE_HYBRID_HPG) + endif() +endif() + +# Enable a reasonable set of warnings +# NOTE: The order matters here, Clang-CL matches both MSVC and Clang +if (MSVC) + target_compile_options(glfw PRIVATE "/W3") +elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR + CMAKE_C_COMPILER_ID STREQUAL "Clang" OR + CMAKE_C_COMPILER_ID STREQUAL "AppleClang") + + target_compile_options(glfw PRIVATE "-Wall") +endif() + +if (GLFW_BUILD_WIN32) + target_compile_definitions(glfw PRIVATE UNICODE _UNICODE) +endif() + +# HACK: When building on MinGW, WINVER and UNICODE need to be defined before +# the inclusion of stddef.h (by glfw3.h), which is itself included before +# win32_platform.h. We define them here until a saner solution can be found +# NOTE: MinGW-w64 and Visual C++ do /not/ need this hack. +if (MINGW) + target_compile_definitions(glfw PRIVATE WINVER=0x0501) +endif() + +# Workaround for legacy MinGW not providing XInput and DirectInput +if (MINGW) + include(CheckIncludeFile) + check_include_file(dinput.h DINPUT_H_FOUND) + check_include_file(xinput.h XINPUT_H_FOUND) + if (NOT DINPUT_H_FOUND OR NOT XINPUT_H_FOUND) + target_include_directories(glfw PRIVATE "${GLFW_SOURCE_DIR}/deps/mingw") + endif() +endif() + +# Workaround for the MS CRT deprecating parts of the standard library +if (MSVC OR CMAKE_C_SIMULATE_ID STREQUAL "MSVC") + target_compile_definitions(glfw PRIVATE _CRT_SECURE_NO_WARNINGS) +endif() + +# Workaround for VS 2008 not shipping with stdint.h +if (MSVC90) + target_include_directories(glfw PUBLIC "${GLFW_SOURCE_DIR}/deps/vs2008") +endif() + +# Check for the DirectX 9 SDK as it is not included with VS 2008 +if (MSVC90) + include(CheckIncludeFile) + check_include_file(dinput.h DINPUT_H_FOUND) + if (NOT DINPUT_H_FOUND) + message(FATAL_ERROR "DirectX 9 headers not found; install DirectX 9 SDK") + endif() +endif() + +# Workaround for -std=c99 on Linux disabling _DEFAULT_SOURCE (POSIX 2008 and more) +if (GLFW_BUILD_X11 OR GLFW_BUILD_WAYLAND) + if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + target_compile_definitions(glfw PRIVATE _DEFAULT_SOURCE) + endif() +endif() + +if (GLFW_BUILD_SHARED_LIBRARY) + if (WIN32) + if (MINGW) + # Remove the dependency on the shared version of libgcc + # NOTE: MinGW-w64 has the correct default but MinGW needs this + target_link_libraries(glfw PRIVATE "-static-libgcc") + + # Remove the lib prefix on the DLL (but not the import library) + set_target_properties(glfw PROPERTIES PREFIX "") + + # Add a suffix to the import library to avoid naming conflicts + set_target_properties(glfw PROPERTIES IMPORT_SUFFIX "dll.a") + else() + # Add a suffix to the import library to avoid naming conflicts + set_target_properties(glfw PROPERTIES IMPORT_SUFFIX "dll.lib") + endif() + + target_compile_definitions(glfw INTERFACE GLFW_DLL) + endif() + + if (MINGW) + # Enable link-time exploit mitigation features enabled by default on MSVC + include(CheckCCompilerFlag) + + # Compatibility with data execution prevention (DEP) + set(CMAKE_REQUIRED_FLAGS "-Wl,--nxcompat") + check_c_compiler_flag("" _GLFW_HAS_DEP) + if (_GLFW_HAS_DEP) + target_link_libraries(glfw PRIVATE "-Wl,--nxcompat") + endif() + + # Compatibility with address space layout randomization (ASLR) + set(CMAKE_REQUIRED_FLAGS "-Wl,--dynamicbase") + check_c_compiler_flag("" _GLFW_HAS_ASLR) + if (_GLFW_HAS_ASLR) + target_link_libraries(glfw PRIVATE "-Wl,--dynamicbase") + endif() + + # Compatibility with 64-bit address space layout randomization (ASLR) + set(CMAKE_REQUIRED_FLAGS "-Wl,--high-entropy-va") + check_c_compiler_flag("" _GLFW_HAS_64ASLR) + if (_GLFW_HAS_64ASLR) + target_link_libraries(glfw PRIVATE "-Wl,--high-entropy-va") + endif() + + # Clear flags again to avoid breaking later tests + set(CMAKE_REQUIRED_FLAGS) + endif() + + if (UNIX) + # Hide symbols not explicitly tagged for export from the shared library + target_compile_options(glfw PRIVATE "-fvisibility=hidden") + endif() +endif() + +foreach(arg ${glfw_PKG_DEPS}) + string(APPEND deps " ${arg}") +endforeach() +foreach(arg ${glfw_PKG_LIBS}) + string(APPEND libs " ${arg}") +endforeach() + +set(GLFW_PKG_CONFIG_REQUIRES_PRIVATE "${deps}" CACHE INTERNAL + "GLFW pkg-config Requires.private") +set(GLFW_PKG_CONFIG_LIBS_PRIVATE "${libs}" CACHE INTERNAL + "GLFW pkg-config Libs.private") + +configure_file("${GLFW_SOURCE_DIR}/CMake/glfw3.pc.in" glfw3.pc @ONLY) + +if (GLFW_INSTALL) + install(TARGETS glfw + EXPORT glfwTargets + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") +endif() + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_init.m b/thirdparty/imgui_suite/glfw/src/cocoa_init.m new file mode 100644 index 00000000000..aa369f9c848 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_init.m @@ -0,0 +1,692 @@ +//======================================================================== +// GLFW 3.4 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" +#include // For MAXPATHLEN + +// Needed for _NSGetProgname +#include + +// Change to our application bundle's resources directory, if present +// +static void changeToResourcesDirectory(void) +{ + char resourcesPath[MAXPATHLEN]; + + CFBundleRef bundle = CFBundleGetMainBundle(); + if (!bundle) + return; + + CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(bundle); + + CFStringRef last = CFURLCopyLastPathComponent(resourcesURL); + if (CFStringCompare(CFSTR("Resources"), last, 0) != kCFCompareEqualTo) + { + CFRelease(last); + CFRelease(resourcesURL); + return; + } + + CFRelease(last); + + if (!CFURLGetFileSystemRepresentation(resourcesURL, + true, + (UInt8*) resourcesPath, + MAXPATHLEN)) + { + CFRelease(resourcesURL); + return; + } + + CFRelease(resourcesURL); + + chdir(resourcesPath); +} + +// Set up the menu bar (manually) +// This is nasty, nasty stuff -- calls to undocumented semi-private APIs that +// could go away at any moment, lots of stuff that really should be +// localize(d|able), etc. Add a nib to save us this horror. +// +static void createMenuBar(void) +{ + NSString* appName = nil; + NSDictionary* bundleInfo = [[NSBundle mainBundle] infoDictionary]; + NSString* nameKeys[] = + { + @"CFBundleDisplayName", + @"CFBundleName", + @"CFBundleExecutable", + }; + + // Try to figure out what the calling application is called + + for (size_t i = 0; i < sizeof(nameKeys) / sizeof(nameKeys[0]); i++) + { + id name = bundleInfo[nameKeys[i]]; + if (name && + [name isKindOfClass:[NSString class]] && + ![name isEqualToString:@""]) + { + appName = name; + break; + } + } + + if (!appName) + { + char** progname = _NSGetProgname(); + if (progname && *progname) + appName = @(*progname); + else + appName = @"GLFW Application"; + } + + NSMenu* bar = [[NSMenu alloc] init]; + [NSApp setMainMenu:bar]; + + NSMenuItem* appMenuItem = + [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; + NSMenu* appMenu = [[NSMenu alloc] init]; + [appMenuItem setSubmenu:appMenu]; + + [appMenu addItemWithTitle:[NSString stringWithFormat:@"About %@", appName] + action:@selector(orderFrontStandardAboutPanel:) + keyEquivalent:@""]; + [appMenu addItem:[NSMenuItem separatorItem]]; + NSMenu* servicesMenu = [[NSMenu alloc] init]; + [NSApp setServicesMenu:servicesMenu]; + [[appMenu addItemWithTitle:@"Services" + action:NULL + keyEquivalent:@""] setSubmenu:servicesMenu]; + [servicesMenu release]; + [appMenu addItem:[NSMenuItem separatorItem]]; + [appMenu addItemWithTitle:[NSString stringWithFormat:@"Hide %@", appName] + action:@selector(hide:) + keyEquivalent:@"h"]; + [[appMenu addItemWithTitle:@"Hide Others" + action:@selector(hideOtherApplications:) + keyEquivalent:@"h"] + setKeyEquivalentModifierMask:NSEventModifierFlagOption | NSEventModifierFlagCommand]; + [appMenu addItemWithTitle:@"Show All" + action:@selector(unhideAllApplications:) + keyEquivalent:@""]; + [appMenu addItem:[NSMenuItem separatorItem]]; + [appMenu addItemWithTitle:[NSString stringWithFormat:@"Quit %@", appName] + action:@selector(terminate:) + keyEquivalent:@"q"]; + + NSMenuItem* windowMenuItem = + [bar addItemWithTitle:@"" action:NULL keyEquivalent:@""]; + [bar release]; + NSMenu* windowMenu = [[NSMenu alloc] initWithTitle:@"Window"]; + [NSApp setWindowsMenu:windowMenu]; + [windowMenuItem setSubmenu:windowMenu]; + + [windowMenu addItemWithTitle:@"Minimize" + action:@selector(performMiniaturize:) + keyEquivalent:@"m"]; + [windowMenu addItemWithTitle:@"Zoom" + action:@selector(performZoom:) + keyEquivalent:@""]; + [windowMenu addItem:[NSMenuItem separatorItem]]; + [windowMenu addItemWithTitle:@"Bring All to Front" + action:@selector(arrangeInFront:) + keyEquivalent:@""]; + + // TODO: Make this appear at the bottom of the menu (for consistency) + [windowMenu addItem:[NSMenuItem separatorItem]]; + [[windowMenu addItemWithTitle:@"Enter Full Screen" + action:@selector(toggleFullScreen:) + keyEquivalent:@"f"] + setKeyEquivalentModifierMask:NSEventModifierFlagControl | NSEventModifierFlagCommand]; + + // Prior to Snow Leopard, we need to use this oddly-named semi-private API + // to get the application menu working properly. + SEL setAppleMenuSelector = NSSelectorFromString(@"setAppleMenu:"); + [NSApp performSelector:setAppleMenuSelector withObject:appMenu]; +} + +// Create key code translation tables +// +static void createKeyTables(void) +{ + memset(_glfw.ns.keycodes, -1, sizeof(_glfw.ns.keycodes)); + memset(_glfw.ns.scancodes, -1, sizeof(_glfw.ns.scancodes)); + + _glfw.ns.keycodes[0x1D] = GLFW_KEY_0; + _glfw.ns.keycodes[0x12] = GLFW_KEY_1; + _glfw.ns.keycodes[0x13] = GLFW_KEY_2; + _glfw.ns.keycodes[0x14] = GLFW_KEY_3; + _glfw.ns.keycodes[0x15] = GLFW_KEY_4; + _glfw.ns.keycodes[0x17] = GLFW_KEY_5; + _glfw.ns.keycodes[0x16] = GLFW_KEY_6; + _glfw.ns.keycodes[0x1A] = GLFW_KEY_7; + _glfw.ns.keycodes[0x1C] = GLFW_KEY_8; + _glfw.ns.keycodes[0x19] = GLFW_KEY_9; + _glfw.ns.keycodes[0x00] = GLFW_KEY_A; + _glfw.ns.keycodes[0x0B] = GLFW_KEY_B; + _glfw.ns.keycodes[0x08] = GLFW_KEY_C; + _glfw.ns.keycodes[0x02] = GLFW_KEY_D; + _glfw.ns.keycodes[0x0E] = GLFW_KEY_E; + _glfw.ns.keycodes[0x03] = GLFW_KEY_F; + _glfw.ns.keycodes[0x05] = GLFW_KEY_G; + _glfw.ns.keycodes[0x04] = GLFW_KEY_H; + _glfw.ns.keycodes[0x22] = GLFW_KEY_I; + _glfw.ns.keycodes[0x26] = GLFW_KEY_J; + _glfw.ns.keycodes[0x28] = GLFW_KEY_K; + _glfw.ns.keycodes[0x25] = GLFW_KEY_L; + _glfw.ns.keycodes[0x2E] = GLFW_KEY_M; + _glfw.ns.keycodes[0x2D] = GLFW_KEY_N; + _glfw.ns.keycodes[0x1F] = GLFW_KEY_O; + _glfw.ns.keycodes[0x23] = GLFW_KEY_P; + _glfw.ns.keycodes[0x0C] = GLFW_KEY_Q; + _glfw.ns.keycodes[0x0F] = GLFW_KEY_R; + _glfw.ns.keycodes[0x01] = GLFW_KEY_S; + _glfw.ns.keycodes[0x11] = GLFW_KEY_T; + _glfw.ns.keycodes[0x20] = GLFW_KEY_U; + _glfw.ns.keycodes[0x09] = GLFW_KEY_V; + _glfw.ns.keycodes[0x0D] = GLFW_KEY_W; + _glfw.ns.keycodes[0x07] = GLFW_KEY_X; + _glfw.ns.keycodes[0x10] = GLFW_KEY_Y; + _glfw.ns.keycodes[0x06] = GLFW_KEY_Z; + + _glfw.ns.keycodes[0x27] = GLFW_KEY_APOSTROPHE; + _glfw.ns.keycodes[0x2A] = GLFW_KEY_BACKSLASH; + _glfw.ns.keycodes[0x2B] = GLFW_KEY_COMMA; + _glfw.ns.keycodes[0x18] = GLFW_KEY_EQUAL; + _glfw.ns.keycodes[0x32] = GLFW_KEY_GRAVE_ACCENT; + _glfw.ns.keycodes[0x21] = GLFW_KEY_LEFT_BRACKET; + _glfw.ns.keycodes[0x1B] = GLFW_KEY_MINUS; + _glfw.ns.keycodes[0x2F] = GLFW_KEY_PERIOD; + _glfw.ns.keycodes[0x1E] = GLFW_KEY_RIGHT_BRACKET; + _glfw.ns.keycodes[0x29] = GLFW_KEY_SEMICOLON; + _glfw.ns.keycodes[0x2C] = GLFW_KEY_SLASH; + _glfw.ns.keycodes[0x0A] = GLFW_KEY_WORLD_1; + + _glfw.ns.keycodes[0x33] = GLFW_KEY_BACKSPACE; + _glfw.ns.keycodes[0x39] = GLFW_KEY_CAPS_LOCK; + _glfw.ns.keycodes[0x75] = GLFW_KEY_DELETE; + _glfw.ns.keycodes[0x7D] = GLFW_KEY_DOWN; + _glfw.ns.keycodes[0x77] = GLFW_KEY_END; + _glfw.ns.keycodes[0x24] = GLFW_KEY_ENTER; + _glfw.ns.keycodes[0x35] = GLFW_KEY_ESCAPE; + _glfw.ns.keycodes[0x7A] = GLFW_KEY_F1; + _glfw.ns.keycodes[0x78] = GLFW_KEY_F2; + _glfw.ns.keycodes[0x63] = GLFW_KEY_F3; + _glfw.ns.keycodes[0x76] = GLFW_KEY_F4; + _glfw.ns.keycodes[0x60] = GLFW_KEY_F5; + _glfw.ns.keycodes[0x61] = GLFW_KEY_F6; + _glfw.ns.keycodes[0x62] = GLFW_KEY_F7; + _glfw.ns.keycodes[0x64] = GLFW_KEY_F8; + _glfw.ns.keycodes[0x65] = GLFW_KEY_F9; + _glfw.ns.keycodes[0x6D] = GLFW_KEY_F10; + _glfw.ns.keycodes[0x67] = GLFW_KEY_F11; + _glfw.ns.keycodes[0x6F] = GLFW_KEY_F12; + _glfw.ns.keycodes[0x69] = GLFW_KEY_PRINT_SCREEN; + _glfw.ns.keycodes[0x6B] = GLFW_KEY_F14; + _glfw.ns.keycodes[0x71] = GLFW_KEY_F15; + _glfw.ns.keycodes[0x6A] = GLFW_KEY_F16; + _glfw.ns.keycodes[0x40] = GLFW_KEY_F17; + _glfw.ns.keycodes[0x4F] = GLFW_KEY_F18; + _glfw.ns.keycodes[0x50] = GLFW_KEY_F19; + _glfw.ns.keycodes[0x5A] = GLFW_KEY_F20; + _glfw.ns.keycodes[0x73] = GLFW_KEY_HOME; + _glfw.ns.keycodes[0x72] = GLFW_KEY_INSERT; + _glfw.ns.keycodes[0x7B] = GLFW_KEY_LEFT; + _glfw.ns.keycodes[0x3A] = GLFW_KEY_LEFT_ALT; + _glfw.ns.keycodes[0x3B] = GLFW_KEY_LEFT_CONTROL; + _glfw.ns.keycodes[0x38] = GLFW_KEY_LEFT_SHIFT; + _glfw.ns.keycodes[0x37] = GLFW_KEY_LEFT_SUPER; + _glfw.ns.keycodes[0x6E] = GLFW_KEY_MENU; + _glfw.ns.keycodes[0x47] = GLFW_KEY_NUM_LOCK; + _glfw.ns.keycodes[0x79] = GLFW_KEY_PAGE_DOWN; + _glfw.ns.keycodes[0x74] = GLFW_KEY_PAGE_UP; + _glfw.ns.keycodes[0x7C] = GLFW_KEY_RIGHT; + _glfw.ns.keycodes[0x3D] = GLFW_KEY_RIGHT_ALT; + _glfw.ns.keycodes[0x3E] = GLFW_KEY_RIGHT_CONTROL; + _glfw.ns.keycodes[0x3C] = GLFW_KEY_RIGHT_SHIFT; + _glfw.ns.keycodes[0x36] = GLFW_KEY_RIGHT_SUPER; + _glfw.ns.keycodes[0x31] = GLFW_KEY_SPACE; + _glfw.ns.keycodes[0x30] = GLFW_KEY_TAB; + _glfw.ns.keycodes[0x7E] = GLFW_KEY_UP; + + _glfw.ns.keycodes[0x52] = GLFW_KEY_KP_0; + _glfw.ns.keycodes[0x53] = GLFW_KEY_KP_1; + _glfw.ns.keycodes[0x54] = GLFW_KEY_KP_2; + _glfw.ns.keycodes[0x55] = GLFW_KEY_KP_3; + _glfw.ns.keycodes[0x56] = GLFW_KEY_KP_4; + _glfw.ns.keycodes[0x57] = GLFW_KEY_KP_5; + _glfw.ns.keycodes[0x58] = GLFW_KEY_KP_6; + _glfw.ns.keycodes[0x59] = GLFW_KEY_KP_7; + _glfw.ns.keycodes[0x5B] = GLFW_KEY_KP_8; + _glfw.ns.keycodes[0x5C] = GLFW_KEY_KP_9; + _glfw.ns.keycodes[0x45] = GLFW_KEY_KP_ADD; + _glfw.ns.keycodes[0x41] = GLFW_KEY_KP_DECIMAL; + _glfw.ns.keycodes[0x4B] = GLFW_KEY_KP_DIVIDE; + _glfw.ns.keycodes[0x4C] = GLFW_KEY_KP_ENTER; + _glfw.ns.keycodes[0x51] = GLFW_KEY_KP_EQUAL; + _glfw.ns.keycodes[0x43] = GLFW_KEY_KP_MULTIPLY; + _glfw.ns.keycodes[0x4E] = GLFW_KEY_KP_SUBTRACT; + + for (int scancode = 0; scancode < 256; scancode++) + { + // Store the reverse translation for faster key name lookup + if (_glfw.ns.keycodes[scancode] >= 0) + _glfw.ns.scancodes[_glfw.ns.keycodes[scancode]] = scancode; + } +} + +// Retrieve Unicode data for the current keyboard layout +// +static GLFWbool updateUnicodeData(void) +{ + if (_glfw.ns.inputSource) + { + CFRelease(_glfw.ns.inputSource); + _glfw.ns.inputSource = NULL; + _glfw.ns.unicodeData = nil; + } + + _glfw.ns.inputSource = TISCopyCurrentKeyboardLayoutInputSource(); + if (!_glfw.ns.inputSource) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to retrieve keyboard layout input source"); + return GLFW_FALSE; + } + + _glfw.ns.unicodeData = + TISGetInputSourceProperty(_glfw.ns.inputSource, + kTISPropertyUnicodeKeyLayoutData); + if (!_glfw.ns.unicodeData) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to retrieve keyboard layout Unicode data"); + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +// Load HIToolbox.framework and the TIS symbols we need from it +// +static GLFWbool initializeTIS(void) +{ + // This works only because Cocoa has already loaded it properly + _glfw.ns.tis.bundle = + CFBundleGetBundleWithIdentifier(CFSTR("com.apple.HIToolbox")); + if (!_glfw.ns.tis.bundle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to load HIToolbox.framework"); + return GLFW_FALSE; + } + + CFStringRef* kPropertyUnicodeKeyLayoutData = + CFBundleGetDataPointerForName(_glfw.ns.tis.bundle, + CFSTR("kTISPropertyUnicodeKeyLayoutData")); + _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource = + CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, + CFSTR("TISCopyCurrentKeyboardLayoutInputSource")); + _glfw.ns.tis.GetInputSourceProperty = + CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, + CFSTR("TISGetInputSourceProperty")); + _glfw.ns.tis.GetKbdType = + CFBundleGetFunctionPointerForName(_glfw.ns.tis.bundle, + CFSTR("LMGetKbdType")); + + if (!kPropertyUnicodeKeyLayoutData || + !TISCopyCurrentKeyboardLayoutInputSource || + !TISGetInputSourceProperty || + !LMGetKbdType) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to load TIS API symbols"); + return GLFW_FALSE; + } + + _glfw.ns.tis.kPropertyUnicodeKeyLayoutData = + *kPropertyUnicodeKeyLayoutData; + + return updateUnicodeData(); +} + +@interface GLFWHelper : NSObject +@end + +@implementation GLFWHelper + +- (void)selectedKeyboardInputSourceChanged:(NSObject* )object +{ + updateUnicodeData(); +} + +- (void)doNothing:(id)object +{ +} + +@end // GLFWHelper + +@interface GLFWApplicationDelegate : NSObject +@end + +@implementation GLFWApplicationDelegate + +- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender +{ + for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) + _glfwInputWindowCloseRequest(window); + + return NSTerminateCancel; +} + +- (void)applicationDidChangeScreenParameters:(NSNotification *) notification +{ + for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) + { + if (window->context.client != GLFW_NO_API) + [window->context.nsgl.object update]; + } + + _glfwPollMonitorsCocoa(); +} + +- (void)applicationWillFinishLaunching:(NSNotification *)notification +{ + if (_glfw.hints.init.ns.menubar) + { + // Menu bar setup must go between sharedApplication and finishLaunching + // in order to properly emulate the behavior of NSApplicationMain + + if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"]) + { + [[NSBundle mainBundle] loadNibNamed:@"MainMenu" + owner:NSApp + topLevelObjects:&_glfw.ns.nibObjects]; + } + else + createMenuBar(); + } +} + +- (void)applicationDidFinishLaunching:(NSNotification *)notification +{ + _glfwPostEmptyEventCocoa(); + [NSApp stop:nil]; +} + +- (void)applicationDidHide:(NSNotification *)notification +{ + for (int i = 0; i < _glfw.monitorCount; i++) + _glfwRestoreVideoModeCocoa(_glfw.monitors[i]); +} + +@end // GLFWApplicationDelegate + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +void* _glfwLoadLocalVulkanLoaderCocoa(void) +{ + CFBundleRef bundle = CFBundleGetMainBundle(); + if (!bundle) + return NULL; + + CFURLRef frameworksUrl = CFBundleCopyPrivateFrameworksURL(bundle); + if (!frameworksUrl) + return NULL; + + CFURLRef loaderUrl = CFURLCreateCopyAppendingPathComponent( + kCFAllocatorDefault, frameworksUrl, CFSTR("libvulkan.1.dylib"), false); + if (!loaderUrl) + { + CFRelease(frameworksUrl); + return NULL; + } + + char path[PATH_MAX]; + void* handle = NULL; + + if (CFURLGetFileSystemRepresentation(loaderUrl, true, (UInt8*) path, sizeof(path) - 1)) + handle = _glfwPlatformLoadModule(path); + + CFRelease(loaderUrl); + CFRelease(frameworksUrl); + return handle; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwConnectCocoa(int platformID, _GLFWplatform* platform) +{ + const _GLFWplatform cocoa = + { + GLFW_PLATFORM_COCOA, + _glfwInitCocoa, + _glfwTerminateCocoa, + _glfwGetCursorPosCocoa, + _glfwSetCursorPosCocoa, + _glfwSetCursorModeCocoa, + _glfwSetRawMouseMotionCocoa, + _glfwRawMouseMotionSupportedCocoa, + _glfwCreateCursorCocoa, + _glfwCreateStandardCursorCocoa, + _glfwDestroyCursorCocoa, + _glfwSetCursorCocoa, + _glfwGetScancodeNameCocoa, + _glfwGetKeyScancodeCocoa, + _glfwSetClipboardStringCocoa, + _glfwGetClipboardStringCocoa, + _glfwInitJoysticksCocoa, + _glfwTerminateJoysticksCocoa, + _glfwPollJoystickCocoa, + _glfwGetMappingNameCocoa, + _glfwUpdateGamepadGUIDCocoa, + _glfwFreeMonitorCocoa, + _glfwGetMonitorPosCocoa, + _glfwGetMonitorContentScaleCocoa, + _glfwGetMonitorWorkareaCocoa, + _glfwGetVideoModesCocoa, + _glfwGetVideoModeCocoa, + _glfwGetGammaRampCocoa, + _glfwSetGammaRampCocoa, + _glfwCreateWindowCocoa, + _glfwDestroyWindowCocoa, + _glfwSetWindowTitleCocoa, + _glfwSetWindowIconCocoa, + _glfwGetWindowPosCocoa, + _glfwSetWindowPosCocoa, + _glfwGetWindowSizeCocoa, + _glfwSetWindowSizeCocoa, + _glfwSetWindowSizeLimitsCocoa, + _glfwSetWindowAspectRatioCocoa, + _glfwGetFramebufferSizeCocoa, + _glfwGetWindowFrameSizeCocoa, + _glfwGetWindowContentScaleCocoa, + _glfwIconifyWindowCocoa, + _glfwRestoreWindowCocoa, + _glfwMaximizeWindowCocoa, + _glfwShowWindowCocoa, + _glfwHideWindowCocoa, + _glfwRequestWindowAttentionCocoa, + _glfwFocusWindowCocoa, + _glfwSetWindowMonitorCocoa, + _glfwWindowFocusedCocoa, + _glfwWindowIconifiedCocoa, + _glfwWindowVisibleCocoa, + _glfwWindowMaximizedCocoa, + _glfwWindowHoveredCocoa, + _glfwFramebufferTransparentCocoa, + _glfwGetWindowOpacityCocoa, + _glfwSetWindowResizableCocoa, + _glfwSetWindowDecoratedCocoa, + _glfwSetWindowFloatingCocoa, + _glfwSetWindowOpacityCocoa, + _glfwSetWindowMousePassthroughCocoa, + _glfwPollEventsCocoa, + _glfwWaitEventsCocoa, + _glfwWaitEventsTimeoutCocoa, + _glfwPostEmptyEventCocoa, + _glfwGetEGLPlatformCocoa, + _glfwGetEGLNativeDisplayCocoa, + _glfwGetEGLNativeWindowCocoa, + _glfwGetRequiredInstanceExtensionsCocoa, + _glfwGetPhysicalDevicePresentationSupportCocoa, + _glfwCreateWindowSurfaceCocoa, + }; + + *platform = cocoa; + return GLFW_TRUE; +} + +int _glfwInitCocoa(void) +{ + @autoreleasepool { + + _glfw.ns.helper = [[GLFWHelper alloc] init]; + + [NSThread detachNewThreadSelector:@selector(doNothing:) + toTarget:_glfw.ns.helper + withObject:nil]; + + [NSApplication sharedApplication]; + + _glfw.ns.delegate = [[GLFWApplicationDelegate alloc] init]; + if (_glfw.ns.delegate == nil) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create application delegate"); + return GLFW_FALSE; + } + + [NSApp setDelegate:_glfw.ns.delegate]; + + NSEvent* (^block)(NSEvent*) = ^ NSEvent* (NSEvent* event) + { + if ([event modifierFlags] & NSEventModifierFlagCommand) + [[NSApp keyWindow] sendEvent:event]; + + return event; + }; + + _glfw.ns.keyUpMonitor = + [NSEvent addLocalMonitorForEventsMatchingMask:NSEventMaskKeyUp + handler:block]; + + if (_glfw.hints.init.ns.chdir) + changeToResourcesDirectory(); + + // Press and Hold prevents some keys from emitting repeated characters + NSDictionary* defaults = @{@"ApplePressAndHoldEnabled":@NO}; + [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; + + [[NSNotificationCenter defaultCenter] + addObserver:_glfw.ns.helper + selector:@selector(selectedKeyboardInputSourceChanged:) + name:NSTextInputContextKeyboardSelectionDidChangeNotification + object:nil]; + + createKeyTables(); + + _glfw.ns.eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); + if (!_glfw.ns.eventSource) + return GLFW_FALSE; + + CGEventSourceSetLocalEventsSuppressionInterval(_glfw.ns.eventSource, 0.0); + + if (!initializeTIS()) + return GLFW_FALSE; + + _glfwPollMonitorsCocoa(); + + if (![[NSRunningApplication currentApplication] isFinishedLaunching]) + [NSApp run]; + + // In case we are unbundled, make us a proper UI application + if (_glfw.hints.init.ns.menubar) + [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; + + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwTerminateCocoa(void) +{ + @autoreleasepool { + + if (_glfw.ns.inputSource) + { + CFRelease(_glfw.ns.inputSource); + _glfw.ns.inputSource = NULL; + _glfw.ns.unicodeData = nil; + } + + if (_glfw.ns.eventSource) + { + CFRelease(_glfw.ns.eventSource); + _glfw.ns.eventSource = NULL; + } + + if (_glfw.ns.delegate) + { + [NSApp setDelegate:nil]; + [_glfw.ns.delegate release]; + _glfw.ns.delegate = nil; + } + + if (_glfw.ns.helper) + { + [[NSNotificationCenter defaultCenter] + removeObserver:_glfw.ns.helper + name:NSTextInputContextKeyboardSelectionDidChangeNotification + object:nil]; + [[NSNotificationCenter defaultCenter] + removeObserver:_glfw.ns.helper]; + [_glfw.ns.helper release]; + _glfw.ns.helper = nil; + } + + if (_glfw.ns.keyUpMonitor) + [NSEvent removeMonitor:_glfw.ns.keyUpMonitor]; + + _glfw_free(_glfw.ns.clipboardString); + + _glfwTerminateNSGL(); + _glfwTerminateEGL(); + _glfwTerminateOSMesa(); + + } // autoreleasepool +} + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_joystick.h b/thirdparty/imgui_suite/glfw/src/cocoa_joystick.h new file mode 100644 index 00000000000..fc7ba7a226f --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_joystick.h @@ -0,0 +1,51 @@ +//======================================================================== +// GLFW 3.4 Cocoa - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include +#include +#include + +#define GLFW_COCOA_JOYSTICK_STATE _GLFWjoystickNS ns; +#define GLFW_COCOA_LIBRARY_JOYSTICK_STATE + +#define GLFW_BUILD_COCOA_MAPPINGS + +// Cocoa-specific per-joystick data +// +typedef struct _GLFWjoystickNS +{ + IOHIDDeviceRef device; + CFMutableArrayRef axes; + CFMutableArrayRef buttons; + CFMutableArrayRef hats; +} _GLFWjoystickNS; + +GLFWbool _glfwInitJoysticksCocoa(void); +void _glfwTerminateJoysticksCocoa(void); +GLFWbool _glfwPollJoystickCocoa(_GLFWjoystick* js, int mode); +const char* _glfwGetMappingNameCocoa(void); +void _glfwUpdateGamepadGUIDCocoa(char* guid); + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_joystick.m b/thirdparty/imgui_suite/glfw/src/cocoa_joystick.m new file mode 100644 index 00000000000..ebcf5fdb94e --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_joystick.m @@ -0,0 +1,478 @@ +//======================================================================== +// GLFW 3.4 Cocoa - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// Copyright (c) 2012 Torsten Walluhn +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +#include +#include + +#include +#include + + +// Joystick element information +// +typedef struct _GLFWjoyelementNS +{ + IOHIDElementRef native; + uint32_t usage; + int index; + long minimum; + long maximum; + +} _GLFWjoyelementNS; + + +// Returns the value of the specified element of the specified joystick +// +static long getElementValue(_GLFWjoystick* js, _GLFWjoyelementNS* element) +{ + IOHIDValueRef valueRef; + long value = 0; + + if (js->ns.device) + { + if (IOHIDDeviceGetValue(js->ns.device, + element->native, + &valueRef) == kIOReturnSuccess) + { + value = IOHIDValueGetIntegerValue(valueRef); + } + } + + return value; +} + +// Comparison function for matching the SDL element order +// +static CFComparisonResult compareElements(const void* fp, + const void* sp, + void* user) +{ + const _GLFWjoyelementNS* fe = fp; + const _GLFWjoyelementNS* se = sp; + if (fe->usage < se->usage) + return kCFCompareLessThan; + if (fe->usage > se->usage) + return kCFCompareGreaterThan; + if (fe->index < se->index) + return kCFCompareLessThan; + if (fe->index > se->index) + return kCFCompareGreaterThan; + return kCFCompareEqualTo; +} + +// Removes the specified joystick +// +static void closeJoystick(_GLFWjoystick* js) +{ + _glfwInputJoystick(js, GLFW_DISCONNECTED); + + for (int i = 0; i < CFArrayGetCount(js->ns.axes); i++) + _glfw_free((void*) CFArrayGetValueAtIndex(js->ns.axes, i)); + CFRelease(js->ns.axes); + + for (int i = 0; i < CFArrayGetCount(js->ns.buttons); i++) + _glfw_free((void*) CFArrayGetValueAtIndex(js->ns.buttons, i)); + CFRelease(js->ns.buttons); + + for (int i = 0; i < CFArrayGetCount(js->ns.hats); i++) + _glfw_free((void*) CFArrayGetValueAtIndex(js->ns.hats, i)); + CFRelease(js->ns.hats); + + _glfwFreeJoystick(js); +} + +// Callback for user-initiated joystick addition +// +static void matchCallback(void* context, + IOReturn result, + void* sender, + IOHIDDeviceRef device) +{ + int jid; + char name[256]; + char guid[33]; + CFTypeRef property; + uint32_t vendor = 0, product = 0, version = 0; + _GLFWjoystick* js; + CFMutableArrayRef axes, buttons, hats; + + for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + if (_glfw.joysticks[jid].ns.device == device) + return; + } + + axes = CFArrayCreateMutable(NULL, 0, NULL); + buttons = CFArrayCreateMutable(NULL, 0, NULL); + hats = CFArrayCreateMutable(NULL, 0, NULL); + + property = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDProductKey)); + if (property) + { + CFStringGetCString(property, + name, + sizeof(name), + kCFStringEncodingUTF8); + } + else + strncpy(name, "Unknown", sizeof(name)); + + property = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDVendorIDKey)); + if (property) + CFNumberGetValue(property, kCFNumberSInt32Type, &vendor); + + property = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDProductIDKey)); + if (property) + CFNumberGetValue(property, kCFNumberSInt32Type, &product); + + property = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDVersionNumberKey)); + if (property) + CFNumberGetValue(property, kCFNumberSInt32Type, &version); + + // Generate a joystick GUID that matches the SDL 2.0.5+ one + if (vendor && product) + { + sprintf(guid, "03000000%02x%02x0000%02x%02x0000%02x%02x0000", + (uint8_t) vendor, (uint8_t) (vendor >> 8), + (uint8_t) product, (uint8_t) (product >> 8), + (uint8_t) version, (uint8_t) (version >> 8)); + } + else + { + sprintf(guid, "05000000%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x00", + name[0], name[1], name[2], name[3], + name[4], name[5], name[6], name[7], + name[8], name[9], name[10]); + } + + CFArrayRef elements = + IOHIDDeviceCopyMatchingElements(device, NULL, kIOHIDOptionsTypeNone); + + for (CFIndex i = 0; i < CFArrayGetCount(elements); i++) + { + IOHIDElementRef native = (IOHIDElementRef) + CFArrayGetValueAtIndex(elements, i); + if (CFGetTypeID(native) != IOHIDElementGetTypeID()) + continue; + + const IOHIDElementType type = IOHIDElementGetType(native); + if ((type != kIOHIDElementTypeInput_Axis) && + (type != kIOHIDElementTypeInput_Button) && + (type != kIOHIDElementTypeInput_Misc)) + { + continue; + } + + CFMutableArrayRef target = NULL; + + const uint32_t usage = IOHIDElementGetUsage(native); + const uint32_t page = IOHIDElementGetUsagePage(native); + if (page == kHIDPage_GenericDesktop) + { + switch (usage) + { + case kHIDUsage_GD_X: + case kHIDUsage_GD_Y: + case kHIDUsage_GD_Z: + case kHIDUsage_GD_Rx: + case kHIDUsage_GD_Ry: + case kHIDUsage_GD_Rz: + case kHIDUsage_GD_Slider: + case kHIDUsage_GD_Dial: + case kHIDUsage_GD_Wheel: + target = axes; + break; + case kHIDUsage_GD_Hatswitch: + target = hats; + break; + case kHIDUsage_GD_DPadUp: + case kHIDUsage_GD_DPadRight: + case kHIDUsage_GD_DPadDown: + case kHIDUsage_GD_DPadLeft: + case kHIDUsage_GD_SystemMainMenu: + case kHIDUsage_GD_Select: + case kHIDUsage_GD_Start: + target = buttons; + break; + } + } + else if (page == kHIDPage_Simulation) + { + switch (usage) + { + case kHIDUsage_Sim_Accelerator: + case kHIDUsage_Sim_Brake: + case kHIDUsage_Sim_Throttle: + case kHIDUsage_Sim_Rudder: + case kHIDUsage_Sim_Steering: + target = axes; + break; + } + } + else if (page == kHIDPage_Button || page == kHIDPage_Consumer) + target = buttons; + + if (target) + { + _GLFWjoyelementNS* element = _glfw_calloc(1, sizeof(_GLFWjoyelementNS)); + element->native = native; + element->usage = usage; + element->index = (int) CFArrayGetCount(target); + element->minimum = IOHIDElementGetLogicalMin(native); + element->maximum = IOHIDElementGetLogicalMax(native); + CFArrayAppendValue(target, element); + } + } + + CFRelease(elements); + + CFArraySortValues(axes, CFRangeMake(0, CFArrayGetCount(axes)), + compareElements, NULL); + CFArraySortValues(buttons, CFRangeMake(0, CFArrayGetCount(buttons)), + compareElements, NULL); + CFArraySortValues(hats, CFRangeMake(0, CFArrayGetCount(hats)), + compareElements, NULL); + + js = _glfwAllocJoystick(name, guid, + (int) CFArrayGetCount(axes), + (int) CFArrayGetCount(buttons), + (int) CFArrayGetCount(hats)); + + js->ns.device = device; + js->ns.axes = axes; + js->ns.buttons = buttons; + js->ns.hats = hats; + + _glfwInputJoystick(js, GLFW_CONNECTED); +} + +// Callback for user-initiated joystick removal +// +static void removeCallback(void* context, + IOReturn result, + void* sender, + IOHIDDeviceRef device) +{ + for (int jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + if (_glfw.joysticks[jid].connected && _glfw.joysticks[jid].ns.device == device) + { + closeJoystick(&_glfw.joysticks[jid]); + break; + } + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwInitJoysticksCocoa(void) +{ + CFMutableArrayRef matching; + const long usages[] = + { + kHIDUsage_GD_Joystick, + kHIDUsage_GD_GamePad, + kHIDUsage_GD_MultiAxisController + }; + + _glfw.ns.hidManager = IOHIDManagerCreate(kCFAllocatorDefault, + kIOHIDOptionsTypeNone); + + matching = CFArrayCreateMutable(kCFAllocatorDefault, + 0, + &kCFTypeArrayCallBacks); + if (!matching) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Cocoa: Failed to create array"); + return GLFW_FALSE; + } + + for (size_t i = 0; i < sizeof(usages) / sizeof(long); i++) + { + const long page = kHIDPage_GenericDesktop; + + CFMutableDictionaryRef dict = + CFDictionaryCreateMutable(kCFAllocatorDefault, + 0, + &kCFTypeDictionaryKeyCallBacks, + &kCFTypeDictionaryValueCallBacks); + if (!dict) + continue; + + CFNumberRef pageRef = CFNumberCreate(kCFAllocatorDefault, + kCFNumberLongType, + &page); + CFNumberRef usageRef = CFNumberCreate(kCFAllocatorDefault, + kCFNumberLongType, + &usages[i]); + if (pageRef && usageRef) + { + CFDictionarySetValue(dict, + CFSTR(kIOHIDDeviceUsagePageKey), + pageRef); + CFDictionarySetValue(dict, + CFSTR(kIOHIDDeviceUsageKey), + usageRef); + CFArrayAppendValue(matching, dict); + } + + if (pageRef) + CFRelease(pageRef); + if (usageRef) + CFRelease(usageRef); + + CFRelease(dict); + } + + IOHIDManagerSetDeviceMatchingMultiple(_glfw.ns.hidManager, matching); + CFRelease(matching); + + IOHIDManagerRegisterDeviceMatchingCallback(_glfw.ns.hidManager, + &matchCallback, NULL); + IOHIDManagerRegisterDeviceRemovalCallback(_glfw.ns.hidManager, + &removeCallback, NULL); + IOHIDManagerScheduleWithRunLoop(_glfw.ns.hidManager, + CFRunLoopGetMain(), + kCFRunLoopDefaultMode); + IOHIDManagerOpen(_glfw.ns.hidManager, kIOHIDOptionsTypeNone); + + // Execute the run loop once in order to register any initially-attached + // joysticks + CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); + return GLFW_TRUE; +} + +void _glfwTerminateJoysticksCocoa(void) +{ + for (int jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + if (_glfw.joysticks[jid].connected) + closeJoystick(&_glfw.joysticks[jid]); + } + + if (_glfw.ns.hidManager) + { + CFRelease(_glfw.ns.hidManager); + _glfw.ns.hidManager = NULL; + } +} + + +GLFWbool _glfwPollJoystickCocoa(_GLFWjoystick* js, int mode) +{ + if (mode & _GLFW_POLL_AXES) + { + for (CFIndex i = 0; i < CFArrayGetCount(js->ns.axes); i++) + { + _GLFWjoyelementNS* axis = (_GLFWjoyelementNS*) + CFArrayGetValueAtIndex(js->ns.axes, i); + + const long raw = getElementValue(js, axis); + // Perform auto calibration + if (raw < axis->minimum) + axis->minimum = raw; + if (raw > axis->maximum) + axis->maximum = raw; + + const long size = axis->maximum - axis->minimum; + if (size == 0) + _glfwInputJoystickAxis(js, (int) i, 0.f); + else + { + const float value = (2.f * (raw - axis->minimum) / size) - 1.f; + _glfwInputJoystickAxis(js, (int) i, value); + } + } + } + + if (mode & _GLFW_POLL_BUTTONS) + { + for (CFIndex i = 0; i < CFArrayGetCount(js->ns.buttons); i++) + { + _GLFWjoyelementNS* button = (_GLFWjoyelementNS*) + CFArrayGetValueAtIndex(js->ns.buttons, i); + const char value = getElementValue(js, button) - button->minimum; + const int state = (value > 0) ? GLFW_PRESS : GLFW_RELEASE; + _glfwInputJoystickButton(js, (int) i, state); + } + + for (CFIndex i = 0; i < CFArrayGetCount(js->ns.hats); i++) + { + const int states[9] = + { + GLFW_HAT_UP, + GLFW_HAT_RIGHT_UP, + GLFW_HAT_RIGHT, + GLFW_HAT_RIGHT_DOWN, + GLFW_HAT_DOWN, + GLFW_HAT_LEFT_DOWN, + GLFW_HAT_LEFT, + GLFW_HAT_LEFT_UP, + GLFW_HAT_CENTERED + }; + + _GLFWjoyelementNS* hat = (_GLFWjoyelementNS*) + CFArrayGetValueAtIndex(js->ns.hats, i); + long state = getElementValue(js, hat) - hat->minimum; + if (state < 0 || state > 8) + state = 8; + + _glfwInputJoystickHat(js, (int) i, states[state]); + } + } + + return js->connected; +} + +const char* _glfwGetMappingNameCocoa(void) +{ + return "Mac OS X"; +} + +void _glfwUpdateGamepadGUIDCocoa(char* guid) +{ + if ((strncmp(guid + 4, "000000000000", 12) == 0) && + (strncmp(guid + 20, "000000000000", 12) == 0)) + { + char original[33]; + strncpy(original, guid, sizeof(original) - 1); + sprintf(guid, "03000000%.4s0000%.4s000000000000", + original, original + 16); + } +} + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_monitor.m b/thirdparty/imgui_suite/glfw/src/cocoa_monitor.m new file mode 100644 index 00000000000..64d9eb2c777 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_monitor.m @@ -0,0 +1,627 @@ +//======================================================================== +// GLFW 3.4 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +#include +#include + + +// Get the name of the specified display, or NULL +// +static char* getMonitorName(CGDirectDisplayID displayID, NSScreen* screen) +{ + // IOKit doesn't work on Apple Silicon anymore + // Luckily, 10.15 introduced -[NSScreen localizedName]. + // Use it if available, and fall back to IOKit otherwise. + if (screen) + { + if ([screen respondsToSelector:@selector(localizedName)]) + { + NSString* name = [screen valueForKey:@"localizedName"]; + if (name) + return _glfw_strdup([name UTF8String]); + } + } + + io_iterator_t it; + io_service_t service; + CFDictionaryRef info; + + if (IOServiceGetMatchingServices(MACH_PORT_NULL, + IOServiceMatching("IODisplayConnect"), + &it) != 0) + { + // This may happen if a desktop Mac is running headless + return _glfw_strdup("Display"); + } + + while ((service = IOIteratorNext(it)) != 0) + { + info = IODisplayCreateInfoDictionary(service, + kIODisplayOnlyPreferredName); + + CFNumberRef vendorIDRef = + CFDictionaryGetValue(info, CFSTR(kDisplayVendorID)); + CFNumberRef productIDRef = + CFDictionaryGetValue(info, CFSTR(kDisplayProductID)); + if (!vendorIDRef || !productIDRef) + { + CFRelease(info); + continue; + } + + unsigned int vendorID, productID; + CFNumberGetValue(vendorIDRef, kCFNumberIntType, &vendorID); + CFNumberGetValue(productIDRef, kCFNumberIntType, &productID); + + if (CGDisplayVendorNumber(displayID) == vendorID && + CGDisplayModelNumber(displayID) == productID) + { + // Info dictionary is used and freed below + break; + } + + CFRelease(info); + } + + IOObjectRelease(it); + + if (!service) + return _glfw_strdup("Display"); + + CFDictionaryRef names = + CFDictionaryGetValue(info, CFSTR(kDisplayProductName)); + + CFStringRef nameRef; + + if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"), + (const void**) &nameRef)) + { + // This may happen if a desktop Mac is running headless + CFRelease(info); + return _glfw_strdup("Display"); + } + + const CFIndex size = + CFStringGetMaximumSizeForEncoding(CFStringGetLength(nameRef), + kCFStringEncodingUTF8); + char* name = _glfw_calloc(size + 1, 1); + CFStringGetCString(nameRef, name, size, kCFStringEncodingUTF8); + + CFRelease(info); + return name; +} + +// Check whether the display mode should be included in enumeration +// +static GLFWbool modeIsGood(CGDisplayModeRef mode) +{ + uint32_t flags = CGDisplayModeGetIOFlags(mode); + + if (!(flags & kDisplayModeValidFlag) || !(flags & kDisplayModeSafeFlag)) + return GLFW_FALSE; + if (flags & kDisplayModeInterlacedFlag) + return GLFW_FALSE; + if (flags & kDisplayModeStretchedFlag) + return GLFW_FALSE; + +#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 + CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); + if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) && + CFStringCompare(format, CFSTR(IO32BitDirectPixels), 0)) + { + CFRelease(format); + return GLFW_FALSE; + } + + CFRelease(format); +#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ + return GLFW_TRUE; +} + +// Convert Core Graphics display mode to GLFW video mode +// +static GLFWvidmode vidmodeFromCGDisplayMode(CGDisplayModeRef mode, + double fallbackRefreshRate) +{ + GLFWvidmode result; + result.width = (int) CGDisplayModeGetWidth(mode); + result.height = (int) CGDisplayModeGetHeight(mode); + result.refreshRate = (int) round(CGDisplayModeGetRefreshRate(mode)); + + if (result.refreshRate == 0) + result.refreshRate = (int) round(fallbackRefreshRate); + +#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 + CFStringRef format = CGDisplayModeCopyPixelEncoding(mode); + if (CFStringCompare(format, CFSTR(IO16BitDirectPixels), 0) == 0) + { + result.redBits = 5; + result.greenBits = 5; + result.blueBits = 5; + } + else +#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ + { + result.redBits = 8; + result.greenBits = 8; + result.blueBits = 8; + } + +#if MAC_OS_X_VERSION_MAX_ALLOWED <= 101100 + CFRelease(format); +#endif /* MAC_OS_X_VERSION_MAX_ALLOWED */ + return result; +} + +// Starts reservation for display fading +// +static CGDisplayFadeReservationToken beginFadeReservation(void) +{ + CGDisplayFadeReservationToken token = kCGDisplayFadeReservationInvalidToken; + + if (CGAcquireDisplayFadeReservation(5, &token) == kCGErrorSuccess) + { + CGDisplayFade(token, 0.3, + kCGDisplayBlendNormal, + kCGDisplayBlendSolidColor, + 0.0, 0.0, 0.0, + TRUE); + } + + return token; +} + +// Ends reservation for display fading +// +static void endFadeReservation(CGDisplayFadeReservationToken token) +{ + if (token != kCGDisplayFadeReservationInvalidToken) + { + CGDisplayFade(token, 0.5, + kCGDisplayBlendSolidColor, + kCGDisplayBlendNormal, + 0.0, 0.0, 0.0, + FALSE); + CGReleaseDisplayFadeReservation(token); + } +} + +// Returns the display refresh rate queried from the I/O registry +// +static double getFallbackRefreshRate(CGDirectDisplayID displayID) +{ + double refreshRate = 60.0; + + io_iterator_t it; + io_service_t service; + + if (IOServiceGetMatchingServices(MACH_PORT_NULL, + IOServiceMatching("IOFramebuffer"), + &it) != 0) + { + return refreshRate; + } + + while ((service = IOIteratorNext(it)) != 0) + { + const CFNumberRef indexRef = + IORegistryEntryCreateCFProperty(service, + CFSTR("IOFramebufferOpenGLIndex"), + kCFAllocatorDefault, + kNilOptions); + if (!indexRef) + continue; + + uint32_t index = 0; + CFNumberGetValue(indexRef, kCFNumberIntType, &index); + CFRelease(indexRef); + + if (CGOpenGLDisplayMaskToDisplayID(1 << index) != displayID) + continue; + + const CFNumberRef clockRef = + IORegistryEntryCreateCFProperty(service, + CFSTR("IOFBCurrentPixelClock"), + kCFAllocatorDefault, + kNilOptions); + const CFNumberRef countRef = + IORegistryEntryCreateCFProperty(service, + CFSTR("IOFBCurrentPixelCount"), + kCFAllocatorDefault, + kNilOptions); + + uint32_t clock = 0, count = 0; + + if (clockRef) + { + CFNumberGetValue(clockRef, kCFNumberIntType, &clock); + CFRelease(clockRef); + } + + if (countRef) + { + CFNumberGetValue(countRef, kCFNumberIntType, &count); + CFRelease(countRef); + } + + if (clock > 0 && count > 0) + refreshRate = clock / (double) count; + + break; + } + + IOObjectRelease(it); + return refreshRate; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Poll for changes in the set of connected monitors +// +void _glfwPollMonitorsCocoa(void) +{ + uint32_t displayCount; + CGGetOnlineDisplayList(0, NULL, &displayCount); + CGDirectDisplayID* displays = _glfw_calloc(displayCount, sizeof(CGDirectDisplayID)); + CGGetOnlineDisplayList(displayCount, displays, &displayCount); + + for (int i = 0; i < _glfw.monitorCount; i++) + _glfw.monitors[i]->ns.screen = nil; + + _GLFWmonitor** disconnected = NULL; + uint32_t disconnectedCount = _glfw.monitorCount; + if (disconnectedCount) + { + disconnected = _glfw_calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*)); + memcpy(disconnected, + _glfw.monitors, + _glfw.monitorCount * sizeof(_GLFWmonitor*)); + } + + for (uint32_t i = 0; i < displayCount; i++) + { + if (CGDisplayIsAsleep(displays[i])) + continue; + + const uint32_t unitNumber = CGDisplayUnitNumber(displays[i]); + NSScreen* screen = nil; + + for (screen in [NSScreen screens]) + { + NSNumber* screenNumber = [screen deviceDescription][@"NSScreenNumber"]; + + // HACK: Compare unit numbers instead of display IDs to work around + // display replacement on machines with automatic graphics + // switching + if (CGDisplayUnitNumber([screenNumber unsignedIntValue]) == unitNumber) + break; + } + + // HACK: Compare unit numbers instead of display IDs to work around + // display replacement on machines with automatic graphics + // switching + uint32_t j; + for (j = 0; j < disconnectedCount; j++) + { + if (disconnected[j] && disconnected[j]->ns.unitNumber == unitNumber) + { + disconnected[j]->ns.screen = screen; + disconnected[j] = NULL; + break; + } + } + + if (j < disconnectedCount) + continue; + + const CGSize size = CGDisplayScreenSize(displays[i]); + char* name = getMonitorName(displays[i], screen); + if (!name) + continue; + + _GLFWmonitor* monitor = _glfwAllocMonitor(name, size.width, size.height); + monitor->ns.displayID = displays[i]; + monitor->ns.unitNumber = unitNumber; + monitor->ns.screen = screen; + + _glfw_free(name); + + CGDisplayModeRef mode = CGDisplayCopyDisplayMode(displays[i]); + if (CGDisplayModeGetRefreshRate(mode) == 0.0) + monitor->ns.fallbackRefreshRate = getFallbackRefreshRate(displays[i]); + CGDisplayModeRelease(mode); + + _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_LAST); + } + + for (uint32_t i = 0; i < disconnectedCount; i++) + { + if (disconnected[i]) + _glfwInputMonitor(disconnected[i], GLFW_DISCONNECTED, 0); + } + + _glfw_free(disconnected); + _glfw_free(displays); +} + +// Change the current video mode +// +void _glfwSetVideoModeCocoa(_GLFWmonitor* monitor, const GLFWvidmode* desired) +{ + GLFWvidmode current; + _glfwGetVideoModeCocoa(monitor, ¤t); + + const GLFWvidmode* best = _glfwChooseVideoMode(monitor, desired); + if (_glfwCompareVideoModes(¤t, best) == 0) + return; + + CFArrayRef modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); + const CFIndex count = CFArrayGetCount(modes); + CGDisplayModeRef native = NULL; + + for (CFIndex i = 0; i < count; i++) + { + CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); + if (!modeIsGood(dm)) + continue; + + const GLFWvidmode mode = + vidmodeFromCGDisplayMode(dm, monitor->ns.fallbackRefreshRate); + if (_glfwCompareVideoModes(best, &mode) == 0) + { + native = dm; + break; + } + } + + if (native) + { + if (monitor->ns.previousMode == NULL) + monitor->ns.previousMode = CGDisplayCopyDisplayMode(monitor->ns.displayID); + + CGDisplayFadeReservationToken token = beginFadeReservation(); + CGDisplaySetDisplayMode(monitor->ns.displayID, native, NULL); + endFadeReservation(token); + } + + CFRelease(modes); +} + +// Restore the previously saved (original) video mode +// +void _glfwRestoreVideoModeCocoa(_GLFWmonitor* monitor) +{ + if (monitor->ns.previousMode) + { + CGDisplayFadeReservationToken token = beginFadeReservation(); + CGDisplaySetDisplayMode(monitor->ns.displayID, + monitor->ns.previousMode, NULL); + endFadeReservation(token); + + CGDisplayModeRelease(monitor->ns.previousMode); + monitor->ns.previousMode = NULL; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwFreeMonitorCocoa(_GLFWmonitor* monitor) +{ +} + +void _glfwGetMonitorPosCocoa(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + @autoreleasepool { + + const CGRect bounds = CGDisplayBounds(monitor->ns.displayID); + + if (xpos) + *xpos = (int) bounds.origin.x; + if (ypos) + *ypos = (int) bounds.origin.y; + + } // autoreleasepool +} + +void _glfwGetMonitorContentScaleCocoa(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + @autoreleasepool { + + if (!monitor->ns.screen) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Cannot query content scale without screen"); + } + + const NSRect points = [monitor->ns.screen frame]; + const NSRect pixels = [monitor->ns.screen convertRectToBacking:points]; + + if (xscale) + *xscale = (float) (pixels.size.width / points.size.width); + if (yscale) + *yscale = (float) (pixels.size.height / points.size.height); + + } // autoreleasepool +} + +void _glfwGetMonitorWorkareaCocoa(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + @autoreleasepool { + + if (!monitor->ns.screen) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Cannot query workarea without screen"); + } + + const NSRect frameRect = [monitor->ns.screen visibleFrame]; + + if (xpos) + *xpos = frameRect.origin.x; + if (ypos) + *ypos = _glfwTransformYCocoa(frameRect.origin.y + frameRect.size.height - 1); + if (width) + *width = frameRect.size.width; + if (height) + *height = frameRect.size.height; + + } // autoreleasepool +} + +GLFWvidmode* _glfwGetVideoModesCocoa(_GLFWmonitor* monitor, int* count) +{ + @autoreleasepool { + + *count = 0; + + CFArrayRef modes = CGDisplayCopyAllDisplayModes(monitor->ns.displayID, NULL); + const CFIndex found = CFArrayGetCount(modes); + GLFWvidmode* result = _glfw_calloc(found, sizeof(GLFWvidmode)); + + for (CFIndex i = 0; i < found; i++) + { + CGDisplayModeRef dm = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); + if (!modeIsGood(dm)) + continue; + + const GLFWvidmode mode = + vidmodeFromCGDisplayMode(dm, monitor->ns.fallbackRefreshRate); + CFIndex j; + + for (j = 0; j < *count; j++) + { + if (_glfwCompareVideoModes(result + j, &mode) == 0) + break; + } + + // Skip duplicate modes + if (j < *count) + continue; + + (*count)++; + result[*count - 1] = mode; + } + + CFRelease(modes); + return result; + + } // autoreleasepool +} + +void _glfwGetVideoModeCocoa(_GLFWmonitor* monitor, GLFWvidmode *mode) +{ + @autoreleasepool { + + CGDisplayModeRef native = CGDisplayCopyDisplayMode(monitor->ns.displayID); + *mode = vidmodeFromCGDisplayMode(native, monitor->ns.fallbackRefreshRate); + CGDisplayModeRelease(native); + + } // autoreleasepool +} + +GLFWbool _glfwGetGammaRampCocoa(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + @autoreleasepool { + + uint32_t size = CGDisplayGammaTableCapacity(monitor->ns.displayID); + CGGammaValue* values = _glfw_calloc(size * 3, sizeof(CGGammaValue)); + + CGGetDisplayTransferByTable(monitor->ns.displayID, + size, + values, + values + size, + values + size * 2, + &size); + + _glfwAllocGammaArrays(ramp, size); + + for (uint32_t i = 0; i < size; i++) + { + ramp->red[i] = (unsigned short) (values[i] * 65535); + ramp->green[i] = (unsigned short) (values[i + size] * 65535); + ramp->blue[i] = (unsigned short) (values[i + size * 2] * 65535); + } + + _glfw_free(values); + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwSetGammaRampCocoa(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ + @autoreleasepool { + + CGGammaValue* values = _glfw_calloc(ramp->size * 3, sizeof(CGGammaValue)); + + for (unsigned int i = 0; i < ramp->size; i++) + { + values[i] = ramp->red[i] / 65535.f; + values[i + ramp->size] = ramp->green[i] / 65535.f; + values[i + ramp->size * 2] = ramp->blue[i] / 65535.f; + } + + CGSetDisplayTransferByTable(monitor->ns.displayID, + ramp->size, + values, + values + ramp->size, + values + ramp->size * 2); + + _glfw_free(values); + + } // autoreleasepool +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(kCGNullDirectDisplay); + return monitor->ns.displayID; +} + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_platform.h b/thirdparty/imgui_suite/glfw/src/cocoa_platform.h new file mode 100644 index 00000000000..9f7d191db38 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_platform.h @@ -0,0 +1,302 @@ +//======================================================================== +// GLFW 3.4 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include + +#include +#include + +// NOTE: All of NSGL was deprecated in the 10.14 SDK +// This disables the pointless warnings for every symbol we use +#ifndef GL_SILENCE_DEPRECATION +#define GL_SILENCE_DEPRECATION +#endif + +#if defined(__OBJC__) +#import +#else +typedef void* id; +#endif + +// NOTE: Many Cocoa enum values have been renamed and we need to build across +// SDK versions where one is unavailable or deprecated. +// We use the newer names in code and replace them with the older names if +// the base SDK does not provide the newer names. + +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101400 + #define NSOpenGLContextParameterSwapInterval NSOpenGLCPSwapInterval + #define NSOpenGLContextParameterSurfaceOpacity NSOpenGLCPSurfaceOpacity +#endif + +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200 + #define NSBitmapFormatAlphaNonpremultiplied NSAlphaNonpremultipliedBitmapFormat + #define NSEventMaskAny NSAnyEventMask + #define NSEventMaskKeyUp NSKeyUpMask + #define NSEventModifierFlagCapsLock NSAlphaShiftKeyMask + #define NSEventModifierFlagCommand NSCommandKeyMask + #define NSEventModifierFlagControl NSControlKeyMask + #define NSEventModifierFlagDeviceIndependentFlagsMask NSDeviceIndependentModifierFlagsMask + #define NSEventModifierFlagOption NSAlternateKeyMask + #define NSEventModifierFlagShift NSShiftKeyMask + #define NSEventTypeApplicationDefined NSApplicationDefined + #define NSWindowStyleMaskBorderless NSBorderlessWindowMask + #define NSWindowStyleMaskClosable NSClosableWindowMask + #define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask + #define NSWindowStyleMaskResizable NSResizableWindowMask + #define NSWindowStyleMaskTitled NSTitledWindowMask +#endif + +// NOTE: Many Cocoa dynamically linked constants have been renamed and we need +// to build across SDK versions where one is unavailable or deprecated. +// We use the newer names in code and replace them with the older names if +// the deployment target is older than the newer names. + +#if MAC_OS_X_VERSION_MIN_REQUIRED < 101300 + #define NSPasteboardTypeURL NSURLPboardType +#endif + +typedef VkFlags VkMacOSSurfaceCreateFlagsMVK; +typedef VkFlags VkMetalSurfaceCreateFlagsEXT; + +typedef struct VkMacOSSurfaceCreateInfoMVK +{ + VkStructureType sType; + const void* pNext; + VkMacOSSurfaceCreateFlagsMVK flags; + const void* pView; +} VkMacOSSurfaceCreateInfoMVK; + +typedef struct VkMetalSurfaceCreateInfoEXT +{ + VkStructureType sType; + const void* pNext; + VkMetalSurfaceCreateFlagsEXT flags; + const void* pLayer; +} VkMetalSurfaceCreateInfoEXT; + +typedef VkResult (APIENTRY *PFN_vkCreateMacOSSurfaceMVK)(VkInstance,const VkMacOSSurfaceCreateInfoMVK*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkResult (APIENTRY *PFN_vkCreateMetalSurfaceEXT)(VkInstance,const VkMetalSurfaceCreateInfoEXT*,const VkAllocationCallbacks*,VkSurfaceKHR*); + +#define GLFW_COCOA_WINDOW_STATE _GLFWwindowNS ns; +#define GLFW_COCOA_LIBRARY_WINDOW_STATE _GLFWlibraryNS ns; +#define GLFW_COCOA_MONITOR_STATE _GLFWmonitorNS ns; +#define GLFW_COCOA_CURSOR_STATE _GLFWcursorNS ns; + +#define GLFW_NSGL_CONTEXT_STATE _GLFWcontextNSGL nsgl; +#define GLFW_NSGL_LIBRARY_CONTEXT_STATE _GLFWlibraryNSGL nsgl; + +// HIToolbox.framework pointer typedefs +#define kTISPropertyUnicodeKeyLayoutData _glfw.ns.tis.kPropertyUnicodeKeyLayoutData +typedef TISInputSourceRef (*PFN_TISCopyCurrentKeyboardLayoutInputSource)(void); +#define TISCopyCurrentKeyboardLayoutInputSource _glfw.ns.tis.CopyCurrentKeyboardLayoutInputSource +typedef void* (*PFN_TISGetInputSourceProperty)(TISInputSourceRef,CFStringRef); +#define TISGetInputSourceProperty _glfw.ns.tis.GetInputSourceProperty +typedef UInt8 (*PFN_LMGetKbdType)(void); +#define LMGetKbdType _glfw.ns.tis.GetKbdType + + +// NSGL-specific per-context data +// +typedef struct _GLFWcontextNSGL +{ + id pixelFormat; + id object; +} _GLFWcontextNSGL; + +// NSGL-specific global data +// +typedef struct _GLFWlibraryNSGL +{ + // dlopen handle for OpenGL.framework (for glfwGetProcAddress) + CFBundleRef framework; +} _GLFWlibraryNSGL; + +// Cocoa-specific per-window data +// +typedef struct _GLFWwindowNS +{ + id object; + id delegate; + id view; + id layer; + + GLFWbool maximized; + GLFWbool occluded; + GLFWbool retina; + + // Cached window properties to filter out duplicate events + int width, height; + int fbWidth, fbHeight; + float xscale, yscale; + + // The total sum of the distances the cursor has been warped + // since the last cursor motion event was processed + // This is kept to counteract Cocoa doing the same internally + double cursorWarpDeltaX, cursorWarpDeltaY; +} _GLFWwindowNS; + +// Cocoa-specific global data +// +typedef struct _GLFWlibraryNS +{ + CGEventSourceRef eventSource; + id delegate; + GLFWbool cursorHidden; + TISInputSourceRef inputSource; + IOHIDManagerRef hidManager; + id unicodeData; + id helper; + id keyUpMonitor; + id nibObjects; + + char keynames[GLFW_KEY_LAST + 1][17]; + short int keycodes[256]; + short int scancodes[GLFW_KEY_LAST + 1]; + char* clipboardString; + CGPoint cascadePoint; + // Where to place the cursor when re-enabled + double restoreCursorPosX, restoreCursorPosY; + // The window whose disabled cursor mode is active + _GLFWwindow* disabledCursorWindow; + + struct { + CFBundleRef bundle; + PFN_TISCopyCurrentKeyboardLayoutInputSource CopyCurrentKeyboardLayoutInputSource; + PFN_TISGetInputSourceProperty GetInputSourceProperty; + PFN_LMGetKbdType GetKbdType; + CFStringRef kPropertyUnicodeKeyLayoutData; + } tis; +} _GLFWlibraryNS; + +// Cocoa-specific per-monitor data +// +typedef struct _GLFWmonitorNS +{ + CGDirectDisplayID displayID; + CGDisplayModeRef previousMode; + uint32_t unitNumber; + id screen; + double fallbackRefreshRate; +} _GLFWmonitorNS; + +// Cocoa-specific per-cursor data +// +typedef struct _GLFWcursorNS +{ + id object; +} _GLFWcursorNS; + + +GLFWbool _glfwConnectCocoa(int platformID, _GLFWplatform* platform); +int _glfwInitCocoa(void); +void _glfwTerminateCocoa(void); + +GLFWbool _glfwCreateWindowCocoa(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig); +void _glfwDestroyWindowCocoa(_GLFWwindow* window); +void _glfwSetWindowTitleCocoa(_GLFWwindow* window, const char* title); +void _glfwSetWindowIconCocoa(_GLFWwindow* window, int count, const GLFWimage* images); +void _glfwGetWindowPosCocoa(_GLFWwindow* window, int* xpos, int* ypos); +void _glfwSetWindowPosCocoa(_GLFWwindow* window, int xpos, int ypos); +void _glfwGetWindowSizeCocoa(_GLFWwindow* window, int* width, int* height); +void _glfwSetWindowSizeCocoa(_GLFWwindow* window, int width, int height); +void _glfwSetWindowSizeLimitsCocoa(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); +void _glfwSetWindowAspectRatioCocoa(_GLFWwindow* window, int numer, int denom); +void _glfwGetFramebufferSizeCocoa(_GLFWwindow* window, int* width, int* height); +void _glfwGetWindowFrameSizeCocoa(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); +void _glfwGetWindowContentScaleCocoa(_GLFWwindow* window, float* xscale, float* yscale); +void _glfwIconifyWindowCocoa(_GLFWwindow* window); +void _glfwRestoreWindowCocoa(_GLFWwindow* window); +void _glfwMaximizeWindowCocoa(_GLFWwindow* window); +void _glfwShowWindowCocoa(_GLFWwindow* window); +void _glfwHideWindowCocoa(_GLFWwindow* window); +void _glfwRequestWindowAttentionCocoa(_GLFWwindow* window); +void _glfwFocusWindowCocoa(_GLFWwindow* window); +void _glfwSetWindowMonitorCocoa(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); +GLFWbool _glfwWindowFocusedCocoa(_GLFWwindow* window); +GLFWbool _glfwWindowIconifiedCocoa(_GLFWwindow* window); +GLFWbool _glfwWindowVisibleCocoa(_GLFWwindow* window); +GLFWbool _glfwWindowMaximizedCocoa(_GLFWwindow* window); +GLFWbool _glfwWindowHoveredCocoa(_GLFWwindow* window); +GLFWbool _glfwFramebufferTransparentCocoa(_GLFWwindow* window); +void _glfwSetWindowResizableCocoa(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowDecoratedCocoa(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowFloatingCocoa(_GLFWwindow* window, GLFWbool enabled); +float _glfwGetWindowOpacityCocoa(_GLFWwindow* window); +void _glfwSetWindowOpacityCocoa(_GLFWwindow* window, float opacity); +void _glfwSetWindowMousePassthroughCocoa(_GLFWwindow* window, GLFWbool enabled); + +void _glfwSetRawMouseMotionCocoa(_GLFWwindow *window, GLFWbool enabled); +GLFWbool _glfwRawMouseMotionSupportedCocoa(void); + +void _glfwPollEventsCocoa(void); +void _glfwWaitEventsCocoa(void); +void _glfwWaitEventsTimeoutCocoa(double timeout); +void _glfwPostEmptyEventCocoa(void); + +void _glfwGetCursorPosCocoa(_GLFWwindow* window, double* xpos, double* ypos); +void _glfwSetCursorPosCocoa(_GLFWwindow* window, double xpos, double ypos); +void _glfwSetCursorModeCocoa(_GLFWwindow* window, int mode); +const char* _glfwGetScancodeNameCocoa(int scancode); +int _glfwGetKeyScancodeCocoa(int key); +GLFWbool _glfwCreateCursorCocoa(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); +GLFWbool _glfwCreateStandardCursorCocoa(_GLFWcursor* cursor, int shape); +void _glfwDestroyCursorCocoa(_GLFWcursor* cursor); +void _glfwSetCursorCocoa(_GLFWwindow* window, _GLFWcursor* cursor); +void _glfwSetClipboardStringCocoa(const char* string); +const char* _glfwGetClipboardStringCocoa(void); + +EGLenum _glfwGetEGLPlatformCocoa(EGLint** attribs); +EGLNativeDisplayType _glfwGetEGLNativeDisplayCocoa(void); +EGLNativeWindowType _glfwGetEGLNativeWindowCocoa(_GLFWwindow* window); + +void _glfwGetRequiredInstanceExtensionsCocoa(char** extensions); +GLFWbool _glfwGetPhysicalDevicePresentationSupportCocoa(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); +VkResult _glfwCreateWindowSurfaceCocoa(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); + +void _glfwFreeMonitorCocoa(_GLFWmonitor* monitor); +void _glfwGetMonitorPosCocoa(_GLFWmonitor* monitor, int* xpos, int* ypos); +void _glfwGetMonitorContentScaleCocoa(_GLFWmonitor* monitor, float* xscale, float* yscale); +void _glfwGetMonitorWorkareaCocoa(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); +GLFWvidmode* _glfwGetVideoModesCocoa(_GLFWmonitor* monitor, int* count); +void _glfwGetVideoModeCocoa(_GLFWmonitor* monitor, GLFWvidmode* mode); +GLFWbool _glfwGetGammaRampCocoa(_GLFWmonitor* monitor, GLFWgammaramp* ramp); +void _glfwSetGammaRampCocoa(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +void _glfwPollMonitorsCocoa(void); +void _glfwSetVideoModeCocoa(_GLFWmonitor* monitor, const GLFWvidmode* desired); +void _glfwRestoreVideoModeCocoa(_GLFWmonitor* monitor); + +float _glfwTransformYCocoa(float y); + +void* _glfwLoadLocalVulkanLoaderCocoa(void); + +GLFWbool _glfwInitNSGL(void); +void _glfwTerminateNSGL(void); +GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig); +void _glfwDestroyContextNSGL(_GLFWwindow* window); + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_time.c b/thirdparty/imgui_suite/glfw/src/cocoa_time.c new file mode 100644 index 00000000000..c2bf8edaaa6 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_time.c @@ -0,0 +1,55 @@ +//======================================================================== +// GLFW 3.4 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2016 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformInitTimer(void) +{ + mach_timebase_info_data_t info; + mach_timebase_info(&info); + + _glfw.timer.ns.frequency = (info.denom * 1e9) / info.numer; +} + +uint64_t _glfwPlatformGetTimerValue(void) +{ + return mach_absolute_time(); +} + +uint64_t _glfwPlatformGetTimerFrequency(void) +{ + return _glfw.timer.ns.frequency; +} + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_time.h b/thirdparty/imgui_suite/glfw/src/cocoa_time.h new file mode 100644 index 00000000000..3512e8b6e95 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_time.h @@ -0,0 +1,35 @@ +//======================================================================== +// GLFW 3.4 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2021 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#define GLFW_COCOA_LIBRARY_TIMER_STATE _GLFWtimerNS ns; + +// Cocoa-specific global timer data +// +typedef struct _GLFWtimerNS +{ + uint64_t frequency; +} _GLFWtimerNS; + diff --git a/thirdparty/imgui_suite/glfw/src/cocoa_window.m b/thirdparty/imgui_suite/glfw/src/cocoa_window.m new file mode 100644 index 00000000000..daac39b3b75 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/cocoa_window.m @@ -0,0 +1,2049 @@ +//======================================================================== +// GLFW 3.4 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include + +// HACK: This enum value is missing from framework headers on OS X 10.11 despite +// having been (according to documentation) added in Mac OS X 10.7 +#define NSWindowCollectionBehaviorFullScreenNone (1 << 9) + +// Returns whether the cursor is in the content area of the specified window +// +static GLFWbool cursorInContentArea(_GLFWwindow* window) +{ + const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; + return [window->ns.view mouse:pos inRect:[window->ns.view frame]]; +} + +// Hides the cursor if not already hidden +// +static void hideCursor(_GLFWwindow* window) +{ + if (!_glfw.ns.cursorHidden) + { + [NSCursor hide]; + _glfw.ns.cursorHidden = GLFW_TRUE; + } +} + +// Shows the cursor if not already shown +// +static void showCursor(_GLFWwindow* window) +{ + if (_glfw.ns.cursorHidden) + { + [NSCursor unhide]; + _glfw.ns.cursorHidden = GLFW_FALSE; + } +} + +// Updates the cursor image according to its cursor mode +// +static void updateCursorImage(_GLFWwindow* window) +{ + if (window->cursorMode == GLFW_CURSOR_NORMAL) + { + showCursor(window); + + if (window->cursor) + [(NSCursor*) window->cursor->ns.object set]; + else + [[NSCursor arrowCursor] set]; + } + else + hideCursor(window); +} + +// Apply chosen cursor mode to a focused window +// +static void updateCursorMode(_GLFWwindow* window) +{ + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + _glfw.ns.disabledCursorWindow = window; + _glfwGetCursorPosCocoa(window, + &_glfw.ns.restoreCursorPosX, + &_glfw.ns.restoreCursorPosY); + _glfwCenterCursorInContentArea(window); + CGAssociateMouseAndMouseCursorPosition(false); + } + else if (_glfw.ns.disabledCursorWindow == window) + { + _glfw.ns.disabledCursorWindow = NULL; + _glfwSetCursorPosCocoa(window, + _glfw.ns.restoreCursorPosX, + _glfw.ns.restoreCursorPosY); + // NOTE: The matching CGAssociateMouseAndMouseCursorPosition call is + // made in _glfwSetCursorPosCocoa as part of a workaround + } + + if (cursorInContentArea(window)) + updateCursorImage(window); +} + +// Make the specified window and its video mode active on its monitor +// +static void acquireMonitor(_GLFWwindow* window) +{ + _glfwSetVideoModeCocoa(window->monitor, &window->videoMode); + const CGRect bounds = CGDisplayBounds(window->monitor->ns.displayID); + const NSRect frame = NSMakeRect(bounds.origin.x, + _glfwTransformYCocoa(bounds.origin.y + bounds.size.height - 1), + bounds.size.width, + bounds.size.height); + + [window->ns.object setFrame:frame display:YES]; + + _glfwInputMonitorWindow(window->monitor, window); +} + +// Remove the window and restore the original video mode +// +static void releaseMonitor(_GLFWwindow* window) +{ + if (window->monitor->window != window) + return; + + _glfwInputMonitorWindow(window->monitor, NULL); + _glfwRestoreVideoModeCocoa(window->monitor); +} + +// Translates macOS key modifiers into GLFW ones +// +static int translateFlags(NSUInteger flags) +{ + int mods = 0; + + if (flags & NSEventModifierFlagShift) + mods |= GLFW_MOD_SHIFT; + if (flags & NSEventModifierFlagControl) + mods |= GLFW_MOD_CONTROL; + if (flags & NSEventModifierFlagOption) + mods |= GLFW_MOD_ALT; + if (flags & NSEventModifierFlagCommand) + mods |= GLFW_MOD_SUPER; + if (flags & NSEventModifierFlagCapsLock) + mods |= GLFW_MOD_CAPS_LOCK; + + return mods; +} + +// Translates a macOS keycode to a GLFW keycode +// +static int translateKey(unsigned int key) +{ + if (key >= sizeof(_glfw.ns.keycodes) / sizeof(_glfw.ns.keycodes[0])) + return GLFW_KEY_UNKNOWN; + + return _glfw.ns.keycodes[key]; +} + +// Translate a GLFW keycode to a Cocoa modifier flag +// +static NSUInteger translateKeyToModifierFlag(int key) +{ + switch (key) + { + case GLFW_KEY_LEFT_SHIFT: + case GLFW_KEY_RIGHT_SHIFT: + return NSEventModifierFlagShift; + case GLFW_KEY_LEFT_CONTROL: + case GLFW_KEY_RIGHT_CONTROL: + return NSEventModifierFlagControl; + case GLFW_KEY_LEFT_ALT: + case GLFW_KEY_RIGHT_ALT: + return NSEventModifierFlagOption; + case GLFW_KEY_LEFT_SUPER: + case GLFW_KEY_RIGHT_SUPER: + return NSEventModifierFlagCommand; + case GLFW_KEY_CAPS_LOCK: + return NSEventModifierFlagCapsLock; + } + + return 0; +} + +// Defines a constant for empty ranges in NSTextInputClient +// +static const NSRange kEmptyRange = { NSNotFound, 0 }; + + +//------------------------------------------------------------------------ +// Delegate for window related notifications +//------------------------------------------------------------------------ + +@interface GLFWWindowDelegate : NSObject +{ + _GLFWwindow* window; +} + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow; + +@end + +@implementation GLFWWindowDelegate + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow +{ + self = [super init]; + if (self != nil) + window = initWindow; + + return self; +} + +- (BOOL)windowShouldClose:(id)sender +{ + _glfwInputWindowCloseRequest(window); + return NO; +} + +- (void)windowDidResize:(NSNotification *)notification +{ + if (window->context.source == GLFW_NATIVE_CONTEXT_API) + [window->context.nsgl.object update]; + + if (_glfw.ns.disabledCursorWindow == window) + _glfwCenterCursorInContentArea(window); + + const int maximized = [window->ns.object isZoomed]; + if (window->ns.maximized != maximized) + { + window->ns.maximized = maximized; + _glfwInputWindowMaximize(window, maximized); + } + + const NSRect contentRect = [window->ns.view frame]; + const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; + + if (fbRect.size.width != window->ns.fbWidth || + fbRect.size.height != window->ns.fbHeight) + { + window->ns.fbWidth = fbRect.size.width; + window->ns.fbHeight = fbRect.size.height; + _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); + } + + if (contentRect.size.width != window->ns.width || + contentRect.size.height != window->ns.height) + { + window->ns.width = contentRect.size.width; + window->ns.height = contentRect.size.height; + _glfwInputWindowSize(window, contentRect.size.width, contentRect.size.height); + } +} + +- (void)windowDidMove:(NSNotification *)notification +{ + if (window->context.source == GLFW_NATIVE_CONTEXT_API) + [window->context.nsgl.object update]; + + if (_glfw.ns.disabledCursorWindow == window) + _glfwCenterCursorInContentArea(window); + + int x, y; + _glfwGetWindowPosCocoa(window, &x, &y); + _glfwInputWindowPos(window, x, y); +} + +- (void)windowDidMiniaturize:(NSNotification *)notification +{ + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowIconify(window, GLFW_TRUE); +} + +- (void)windowDidDeminiaturize:(NSNotification *)notification +{ + if (window->monitor) + acquireMonitor(window); + + _glfwInputWindowIconify(window, GLFW_FALSE); +} + +- (void)windowDidBecomeKey:(NSNotification *)notification +{ + if (_glfw.ns.disabledCursorWindow == window) + _glfwCenterCursorInContentArea(window); + + _glfwInputWindowFocus(window, GLFW_TRUE); + updateCursorMode(window); +} + +- (void)windowDidResignKey:(NSNotification *)notification +{ + if (window->monitor && window->autoIconify) + _glfwIconifyWindowCocoa(window); + + _glfwInputWindowFocus(window, GLFW_FALSE); +} + +- (void)windowDidChangeOcclusionState:(NSNotification* )notification +{ + if ([window->ns.object occlusionState] & NSWindowOcclusionStateVisible) + window->ns.occluded = GLFW_FALSE; + else + window->ns.occluded = GLFW_TRUE; +} + +@end + + +//------------------------------------------------------------------------ +// Content view class for the GLFW window +//------------------------------------------------------------------------ + +@interface GLFWContentView : NSView +{ + _GLFWwindow* window; + NSTrackingArea* trackingArea; + NSMutableAttributedString* markedText; +} + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow; + +@end + +@implementation GLFWContentView + +- (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow +{ + self = [super init]; + if (self != nil) + { + window = initWindow; + trackingArea = nil; + markedText = [[NSMutableAttributedString alloc] init]; + + [self updateTrackingAreas]; + [self registerForDraggedTypes:@[NSPasteboardTypeURL]]; + } + + return self; +} + +- (void)dealloc +{ + [trackingArea release]; + [markedText release]; + [super dealloc]; +} + +- (BOOL)isOpaque +{ + return [window->ns.object isOpaque]; +} + +- (BOOL)canBecomeKeyView +{ + return YES; +} + +- (BOOL)acceptsFirstResponder +{ + return YES; +} + +- (BOOL)wantsUpdateLayer +{ + return YES; +} + +- (void)updateLayer +{ + if (window->context.source == GLFW_NATIVE_CONTEXT_API) + [window->context.nsgl.object update]; + + _glfwInputWindowDamage(window); +} + +- (void)cursorUpdate:(NSEvent *)event +{ + updateCursorImage(window); +} + +- (BOOL)acceptsFirstMouse:(NSEvent *)event +{ + return YES; +} + +- (void)mouseDown:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_LEFT, + GLFW_PRESS, + translateFlags([event modifierFlags])); +} + +- (void)mouseDragged:(NSEvent *)event +{ + [self mouseMoved:event]; +} + +- (void)mouseUp:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_LEFT, + GLFW_RELEASE, + translateFlags([event modifierFlags])); +} + +- (void)mouseMoved:(NSEvent *)event +{ + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + const double dx = [event deltaX] - window->ns.cursorWarpDeltaX; + const double dy = [event deltaY] - window->ns.cursorWarpDeltaY; + + _glfwInputCursorPos(window, + window->virtualCursorPosX + dx, + window->virtualCursorPosY + dy); + } + else + { + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [event locationInWindow]; + + _glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y); + } + + window->ns.cursorWarpDeltaX = 0; + window->ns.cursorWarpDeltaY = 0; +} + +- (void)rightMouseDown:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_RIGHT, + GLFW_PRESS, + translateFlags([event modifierFlags])); +} + +- (void)rightMouseDragged:(NSEvent *)event +{ + [self mouseMoved:event]; +} + +- (void)rightMouseUp:(NSEvent *)event +{ + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_RIGHT, + GLFW_RELEASE, + translateFlags([event modifierFlags])); +} + +- (void)otherMouseDown:(NSEvent *)event +{ + _glfwInputMouseClick(window, + (int) [event buttonNumber], + GLFW_PRESS, + translateFlags([event modifierFlags])); +} + +- (void)otherMouseDragged:(NSEvent *)event +{ + [self mouseMoved:event]; +} + +- (void)otherMouseUp:(NSEvent *)event +{ + _glfwInputMouseClick(window, + (int) [event buttonNumber], + GLFW_RELEASE, + translateFlags([event modifierFlags])); +} + +- (void)mouseExited:(NSEvent *)event +{ + if (window->cursorMode == GLFW_CURSOR_HIDDEN) + showCursor(window); + + _glfwInputCursorEnter(window, GLFW_FALSE); +} + +- (void)mouseEntered:(NSEvent *)event +{ + if (window->cursorMode == GLFW_CURSOR_HIDDEN) + hideCursor(window); + + _glfwInputCursorEnter(window, GLFW_TRUE); +} + +- (void)viewDidChangeBackingProperties +{ + const NSRect contentRect = [window->ns.view frame]; + const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; + const float xscale = fbRect.size.width / contentRect.size.width; + const float yscale = fbRect.size.height / contentRect.size.height; + + if (xscale != window->ns.xscale || yscale != window->ns.yscale) + { + if (window->ns.retina && window->ns.layer) + [window->ns.layer setContentsScale:[window->ns.object backingScaleFactor]]; + + window->ns.xscale = xscale; + window->ns.yscale = yscale; + _glfwInputWindowContentScale(window, xscale, yscale); + } + + if (fbRect.size.width != window->ns.fbWidth || + fbRect.size.height != window->ns.fbHeight) + { + window->ns.fbWidth = fbRect.size.width; + window->ns.fbHeight = fbRect.size.height; + _glfwInputFramebufferSize(window, fbRect.size.width, fbRect.size.height); + } +} + +- (void)drawRect:(NSRect)rect +{ + _glfwInputWindowDamage(window); +} + +- (void)updateTrackingAreas +{ + if (trackingArea != nil) + { + [self removeTrackingArea:trackingArea]; + [trackingArea release]; + } + + const NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | + NSTrackingActiveInKeyWindow | + NSTrackingEnabledDuringMouseDrag | + NSTrackingCursorUpdate | + NSTrackingInVisibleRect | + NSTrackingAssumeInside; + + trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] + options:options + owner:self + userInfo:nil]; + + [self addTrackingArea:trackingArea]; + [super updateTrackingAreas]; +} + +- (void)keyDown:(NSEvent *)event +{ + const int key = translateKey([event keyCode]); + const int mods = translateFlags([event modifierFlags]); + + _glfwInputKey(window, key, [event keyCode], GLFW_PRESS, mods); + + [self interpretKeyEvents:@[event]]; +} + +- (void)flagsChanged:(NSEvent *)event +{ + int action; + const unsigned int modifierFlags = + [event modifierFlags] & NSEventModifierFlagDeviceIndependentFlagsMask; + const int key = translateKey([event keyCode]); + const int mods = translateFlags(modifierFlags); + const NSUInteger keyFlag = translateKeyToModifierFlag(key); + + if (keyFlag & modifierFlags) + { + if (window->keys[key] == GLFW_PRESS) + action = GLFW_RELEASE; + else + action = GLFW_PRESS; + } + else + action = GLFW_RELEASE; + + _glfwInputKey(window, key, [event keyCode], action, mods); +} + +- (void)keyUp:(NSEvent *)event +{ + const int key = translateKey([event keyCode]); + const int mods = translateFlags([event modifierFlags]); + _glfwInputKey(window, key, [event keyCode], GLFW_RELEASE, mods); +} + +- (void)scrollWheel:(NSEvent *)event +{ + double deltaX = [event scrollingDeltaX]; + double deltaY = [event scrollingDeltaY]; + + if ([event hasPreciseScrollingDeltas]) + { + deltaX *= 0.1; + deltaY *= 0.1; + } + + if (fabs(deltaX) > 0.0 || fabs(deltaY) > 0.0) + _glfwInputScroll(window, deltaX, deltaY); +} + +- (NSDragOperation)draggingEntered:(id )sender +{ + // HACK: We don't know what to say here because we don't know what the + // application wants to do with the paths + return NSDragOperationGeneric; +} + +- (BOOL)performDragOperation:(id )sender +{ + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [sender draggingLocation]; + _glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y); + + NSPasteboard* pasteboard = [sender draggingPasteboard]; + NSDictionary* options = @{NSPasteboardURLReadingFileURLsOnlyKey:@YES}; + NSArray* urls = [pasteboard readObjectsForClasses:@[[NSURL class]] + options:options]; + const NSUInteger count = [urls count]; + if (count) + { + char** paths = _glfw_calloc(count, sizeof(char*)); + + for (NSUInteger i = 0; i < count; i++) + paths[i] = _glfw_strdup([urls[i] fileSystemRepresentation]); + + _glfwInputDrop(window, (int) count, (const char**) paths); + + for (NSUInteger i = 0; i < count; i++) + _glfw_free(paths[i]); + _glfw_free(paths); + } + + return YES; +} + +- (BOOL)hasMarkedText +{ + return [markedText length] > 0; +} + +- (NSRange)markedRange +{ + if ([markedText length] > 0) + return NSMakeRange(0, [markedText length] - 1); + else + return kEmptyRange; +} + +- (NSRange)selectedRange +{ + return kEmptyRange; +} + +- (void)setMarkedText:(id)string + selectedRange:(NSRange)selectedRange + replacementRange:(NSRange)replacementRange +{ + [markedText release]; + if ([string isKindOfClass:[NSAttributedString class]]) + markedText = [[NSMutableAttributedString alloc] initWithAttributedString:string]; + else + markedText = [[NSMutableAttributedString alloc] initWithString:string]; +} + +- (void)unmarkText +{ + [[markedText mutableString] setString:@""]; +} + +- (NSArray*)validAttributesForMarkedText +{ + return [NSArray array]; +} + +- (NSAttributedString*)attributedSubstringForProposedRange:(NSRange)range + actualRange:(NSRangePointer)actualRange +{ + return nil; +} + +- (NSUInteger)characterIndexForPoint:(NSPoint)point +{ + return 0; +} + +- (NSRect)firstRectForCharacterRange:(NSRange)range + actualRange:(NSRangePointer)actualRange +{ + const NSRect frame = [window->ns.view frame]; + return NSMakeRect(frame.origin.x, frame.origin.y, 0.0, 0.0); +} + +- (void)insertText:(id)string replacementRange:(NSRange)replacementRange +{ + NSString* characters; + NSEvent* event = [NSApp currentEvent]; + const int mods = translateFlags([event modifierFlags]); + const int plain = !(mods & GLFW_MOD_SUPER); + + if ([string isKindOfClass:[NSAttributedString class]]) + characters = [string string]; + else + characters = (NSString*) string; + + NSRange range = NSMakeRange(0, [characters length]); + while (range.length) + { + uint32_t codepoint = 0; + + if ([characters getBytes:&codepoint + maxLength:sizeof(codepoint) + usedLength:NULL + encoding:NSUTF32StringEncoding + options:0 + range:range + remainingRange:&range]) + { + if (codepoint >= 0xf700 && codepoint <= 0xf7ff) + continue; + + _glfwInputChar(window, codepoint, mods, plain); + } + } +} + +- (void)doCommandBySelector:(SEL)selector +{ +} + +@end + + +//------------------------------------------------------------------------ +// GLFW window class +//------------------------------------------------------------------------ + +@interface GLFWWindow : NSWindow {} +@end + +@implementation GLFWWindow + +- (BOOL)canBecomeKeyWindow +{ + // Required for NSWindowStyleMaskBorderless windows + return YES; +} + +- (BOOL)canBecomeMainWindow +{ + return YES; +} + +@end + + +// Create the Cocoa window +// +static GLFWbool createNativeWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig) +{ + window->ns.delegate = [[GLFWWindowDelegate alloc] initWithGlfwWindow:window]; + if (window->ns.delegate == nil) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create window delegate"); + return GLFW_FALSE; + } + + NSRect contentRect; + + if (window->monitor) + { + GLFWvidmode mode; + int xpos, ypos; + + _glfwGetVideoModeCocoa(window->monitor, &mode); + _glfwGetMonitorPosCocoa(window->monitor, &xpos, &ypos); + + contentRect = NSMakeRect(xpos, ypos, mode.width, mode.height); + } + else + { + if (wndconfig->xpos == GLFW_ANY_POSITION || + wndconfig->ypos == GLFW_ANY_POSITION) + { + contentRect = NSMakeRect(0, 0, wndconfig->width, wndconfig->height); + } + else + { + const int xpos = wndconfig->xpos; + const int ypos = _glfwTransformYCocoa(wndconfig->ypos + wndconfig->height - 1); + contentRect = NSMakeRect(xpos, ypos, wndconfig->width, wndconfig->height); + } + } + + NSUInteger styleMask = NSWindowStyleMaskMiniaturizable; + + if (window->monitor || !window->decorated) + styleMask |= NSWindowStyleMaskBorderless; + else + { + styleMask |= (NSWindowStyleMaskTitled | NSWindowStyleMaskClosable); + + if (window->resizable) + styleMask |= NSWindowStyleMaskResizable; + } + + window->ns.object = [[GLFWWindow alloc] + initWithContentRect:contentRect + styleMask:styleMask + backing:NSBackingStoreBuffered + defer:NO]; + + if (window->ns.object == nil) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Cocoa: Failed to create window"); + return GLFW_FALSE; + } + + if (window->monitor) + [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; + else + { + if (wndconfig->xpos == GLFW_ANY_POSITION || + wndconfig->ypos == GLFW_ANY_POSITION) + { + [(NSWindow*) window->ns.object center]; + _glfw.ns.cascadePoint = + NSPointToCGPoint([window->ns.object cascadeTopLeftFromPoint: + NSPointFromCGPoint(_glfw.ns.cascadePoint)]); + } + + if (wndconfig->resizable) + { + const NSWindowCollectionBehavior behavior = + NSWindowCollectionBehaviorFullScreenPrimary | + NSWindowCollectionBehaviorManaged; + [window->ns.object setCollectionBehavior:behavior]; + } + else + { + const NSWindowCollectionBehavior behavior = + NSWindowCollectionBehaviorFullScreenNone; + [window->ns.object setCollectionBehavior:behavior]; + } + + if (wndconfig->floating) + [window->ns.object setLevel:NSFloatingWindowLevel]; + + if (wndconfig->maximized) + [window->ns.object zoom:nil]; + } + + if (strlen(wndconfig->ns.frameName)) + [window->ns.object setFrameAutosaveName:@(wndconfig->ns.frameName)]; + + window->ns.view = [[GLFWContentView alloc] initWithGlfwWindow:window]; + window->ns.retina = wndconfig->ns.retina; + + if (fbconfig->transparent) + { + [window->ns.object setOpaque:NO]; + [window->ns.object setHasShadow:NO]; + [window->ns.object setBackgroundColor:[NSColor clearColor]]; + } + + [window->ns.object setContentView:window->ns.view]; + [window->ns.object makeFirstResponder:window->ns.view]; + [window->ns.object setTitle:@(wndconfig->title)]; + [window->ns.object setDelegate:window->ns.delegate]; + [window->ns.object setAcceptsMouseMovedEvents:YES]; + [window->ns.object setRestorable:NO]; + +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 + if ([window->ns.object respondsToSelector:@selector(setTabbingMode:)]) + [window->ns.object setTabbingMode:NSWindowTabbingModeDisallowed]; +#endif + + _glfwGetWindowSizeCocoa(window, &window->ns.width, &window->ns.height); + _glfwGetFramebufferSizeCocoa(window, &window->ns.fbWidth, &window->ns.fbHeight); + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Transforms a y-coordinate between the CG display and NS screen spaces +// +float _glfwTransformYCocoa(float y) +{ + return CGDisplayBounds(CGMainDisplayID()).size.height - y - 1; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwCreateWindowCocoa(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + @autoreleasepool { + + if (!createNativeWindow(window, wndconfig, fbconfig)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + if (!_glfwInitNSGL()) + return GLFW_FALSE; + if (!_glfwCreateContextNSGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) + { + // EGL implementation on macOS use CALayer* EGLNativeWindowType so we + // need to get the layer for EGL window surface creation. + [window->ns.view setWantsLayer:YES]; + window->ns.layer = [window->ns.view layer]; + + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + + if (!_glfwRefreshContextAttribs(window, ctxconfig)) + return GLFW_FALSE; + } + + if (wndconfig->mousePassthrough) + _glfwSetWindowMousePassthroughCocoa(window, GLFW_TRUE); + + if (window->monitor) + { + _glfwShowWindowCocoa(window); + _glfwFocusWindowCocoa(window); + acquireMonitor(window); + + if (wndconfig->centerCursor) + _glfwCenterCursorInContentArea(window); + } + else + { + if (wndconfig->visible) + { + _glfwShowWindowCocoa(window); + if (wndconfig->focused) + _glfwFocusWindowCocoa(window); + } + } + + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwDestroyWindowCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + + if (_glfw.ns.disabledCursorWindow == window) + _glfw.ns.disabledCursorWindow = NULL; + + [window->ns.object orderOut:nil]; + + if (window->monitor) + releaseMonitor(window); + + if (window->context.destroy) + window->context.destroy(window); + + [window->ns.object setDelegate:nil]; + [window->ns.delegate release]; + window->ns.delegate = nil; + + [window->ns.view release]; + window->ns.view = nil; + + [window->ns.object close]; + window->ns.object = nil; + + // HACK: Allow Cocoa to catch up before returning + _glfwPollEventsCocoa(); + + } // autoreleasepool +} + +void _glfwSetWindowTitleCocoa(_GLFWwindow* window, const char* title) +{ + @autoreleasepool { + NSString* string = @(title); + [window->ns.object setTitle:string]; + // HACK: Set the miniwindow title explicitly as setTitle: doesn't update it + // if the window lacks NSWindowStyleMaskTitled + [window->ns.object setMiniwindowTitle:string]; + } // autoreleasepool +} + +void _glfwSetWindowIconCocoa(_GLFWwindow* window, + int count, const GLFWimage* images) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Cocoa: Regular windows do not have icons on macOS"); +} + +void _glfwGetWindowPosCocoa(_GLFWwindow* window, int* xpos, int* ypos) +{ + @autoreleasepool { + + const NSRect contentRect = + [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; + + if (xpos) + *xpos = contentRect.origin.x; + if (ypos) + *ypos = _glfwTransformYCocoa(contentRect.origin.y + contentRect.size.height - 1); + + } // autoreleasepool +} + +void _glfwSetWindowPosCocoa(_GLFWwindow* window, int x, int y) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + const NSRect dummyRect = NSMakeRect(x, _glfwTransformYCocoa(y + contentRect.size.height - 1), 0, 0); + const NSRect frameRect = [window->ns.object frameRectForContentRect:dummyRect]; + [window->ns.object setFrameOrigin:frameRect.origin]; + + } // autoreleasepool +} + +void _glfwGetWindowSizeCocoa(_GLFWwindow* window, int* width, int* height) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + + if (width) + *width = contentRect.size.width; + if (height) + *height = contentRect.size.height; + + } // autoreleasepool +} + +void _glfwSetWindowSizeCocoa(_GLFWwindow* window, int width, int height) +{ + @autoreleasepool { + + if (window->monitor) + { + if (window->monitor->window == window) + acquireMonitor(window); + } + else + { + NSRect contentRect = + [window->ns.object contentRectForFrameRect:[window->ns.object frame]]; + contentRect.origin.y += contentRect.size.height - height; + contentRect.size = NSMakeSize(width, height); + [window->ns.object setFrame:[window->ns.object frameRectForContentRect:contentRect] + display:YES]; + } + + } // autoreleasepool +} + +void _glfwSetWindowSizeLimitsCocoa(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + @autoreleasepool { + + if (minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) + [window->ns.object setContentMinSize:NSMakeSize(0, 0)]; + else + [window->ns.object setContentMinSize:NSMakeSize(minwidth, minheight)]; + + if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE) + [window->ns.object setContentMaxSize:NSMakeSize(DBL_MAX, DBL_MAX)]; + else + [window->ns.object setContentMaxSize:NSMakeSize(maxwidth, maxheight)]; + + } // autoreleasepool +} + +void _glfwSetWindowAspectRatioCocoa(_GLFWwindow* window, int numer, int denom) +{ + @autoreleasepool { + if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) + [window->ns.object setResizeIncrements:NSMakeSize(1.0, 1.0)]; + else + [window->ns.object setContentAspectRatio:NSMakeSize(numer, denom)]; + } // autoreleasepool +} + +void _glfwGetFramebufferSizeCocoa(_GLFWwindow* window, int* width, int* height) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + const NSRect fbRect = [window->ns.view convertRectToBacking:contentRect]; + + if (width) + *width = (int) fbRect.size.width; + if (height) + *height = (int) fbRect.size.height; + + } // autoreleasepool +} + +void _glfwGetWindowFrameSizeCocoa(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + const NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect]; + + if (left) + *left = contentRect.origin.x - frameRect.origin.x; + if (top) + *top = frameRect.origin.y + frameRect.size.height - + contentRect.origin.y - contentRect.size.height; + if (right) + *right = frameRect.origin.x + frameRect.size.width - + contentRect.origin.x - contentRect.size.width; + if (bottom) + *bottom = contentRect.origin.y - frameRect.origin.y; + + } // autoreleasepool +} + +void _glfwGetWindowContentScaleCocoa(_GLFWwindow* window, + float* xscale, float* yscale) +{ + @autoreleasepool { + + const NSRect points = [window->ns.view frame]; + const NSRect pixels = [window->ns.view convertRectToBacking:points]; + + if (xscale) + *xscale = (float) (pixels.size.width / points.size.width); + if (yscale) + *yscale = (float) (pixels.size.height / points.size.height); + + } // autoreleasepool +} + +void _glfwIconifyWindowCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + [window->ns.object miniaturize:nil]; + } // autoreleasepool +} + +void _glfwRestoreWindowCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + if ([window->ns.object isMiniaturized]) + [window->ns.object deminiaturize:nil]; + else if ([window->ns.object isZoomed]) + [window->ns.object zoom:nil]; + } // autoreleasepool +} + +void _glfwMaximizeWindowCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + if (![window->ns.object isZoomed]) + [window->ns.object zoom:nil]; + } // autoreleasepool +} + +void _glfwShowWindowCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + [window->ns.object orderFront:nil]; + } // autoreleasepool +} + +void _glfwHideWindowCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + [window->ns.object orderOut:nil]; + } // autoreleasepool +} + +void _glfwRequestWindowAttentionCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + [NSApp requestUserAttention:NSInformationalRequest]; + } // autoreleasepool +} + +void _glfwFocusWindowCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + // Make us the active application + // HACK: This is here to prevent applications using only hidden windows from + // being activated, but should probably not be done every time any + // window is shown + [NSApp activateIgnoringOtherApps:YES]; + [window->ns.object makeKeyAndOrderFront:nil]; + } // autoreleasepool +} + +void _glfwSetWindowMonitorCocoa(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + @autoreleasepool { + + if (window->monitor == monitor) + { + if (monitor) + { + if (monitor->window == window) + acquireMonitor(window); + } + else + { + const NSRect contentRect = + NSMakeRect(xpos, _glfwTransformYCocoa(ypos + height - 1), width, height); + const NSUInteger styleMask = [window->ns.object styleMask]; + const NSRect frameRect = + [window->ns.object frameRectForContentRect:contentRect + styleMask:styleMask]; + + [window->ns.object setFrame:frameRect display:YES]; + } + + return; + } + + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowMonitor(window, monitor); + + // HACK: Allow the state cached in Cocoa to catch up to reality + // TODO: Solve this in a less terrible way + _glfwPollEventsCocoa(); + + NSUInteger styleMask = [window->ns.object styleMask]; + + if (window->monitor) + { + styleMask &= ~(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable); + styleMask |= NSWindowStyleMaskBorderless; + } + else + { + if (window->decorated) + { + styleMask &= ~NSWindowStyleMaskBorderless; + styleMask |= (NSWindowStyleMaskTitled | NSWindowStyleMaskClosable); + } + + if (window->resizable) + styleMask |= NSWindowStyleMaskResizable; + else + styleMask &= ~NSWindowStyleMaskResizable; + } + + [window->ns.object setStyleMask:styleMask]; + // HACK: Changing the style mask can cause the first responder to be cleared + [window->ns.object makeFirstResponder:window->ns.view]; + + if (window->monitor) + { + [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; + [window->ns.object setHasShadow:NO]; + + acquireMonitor(window); + } + else + { + NSRect contentRect = NSMakeRect(xpos, _glfwTransformYCocoa(ypos + height - 1), + width, height); + NSRect frameRect = [window->ns.object frameRectForContentRect:contentRect + styleMask:styleMask]; + [window->ns.object setFrame:frameRect display:YES]; + + if (window->numer != GLFW_DONT_CARE && + window->denom != GLFW_DONT_CARE) + { + [window->ns.object setContentAspectRatio:NSMakeSize(window->numer, + window->denom)]; + } + + if (window->minwidth != GLFW_DONT_CARE && + window->minheight != GLFW_DONT_CARE) + { + [window->ns.object setContentMinSize:NSMakeSize(window->minwidth, + window->minheight)]; + } + + if (window->maxwidth != GLFW_DONT_CARE && + window->maxheight != GLFW_DONT_CARE) + { + [window->ns.object setContentMaxSize:NSMakeSize(window->maxwidth, + window->maxheight)]; + } + + if (window->floating) + [window->ns.object setLevel:NSFloatingWindowLevel]; + else + [window->ns.object setLevel:NSNormalWindowLevel]; + + if (window->resizable) + { + const NSWindowCollectionBehavior behavior = + NSWindowCollectionBehaviorFullScreenPrimary | + NSWindowCollectionBehaviorManaged; + [window->ns.object setCollectionBehavior:behavior]; + } + else + { + const NSWindowCollectionBehavior behavior = + NSWindowCollectionBehaviorFullScreenNone; + [window->ns.object setCollectionBehavior:behavior]; + } + + [window->ns.object setHasShadow:YES]; + // HACK: Clearing NSWindowStyleMaskTitled resets and disables the window + // title property but the miniwindow title property is unaffected + [window->ns.object setTitle:[window->ns.object miniwindowTitle]]; + } + + } // autoreleasepool +} + +GLFWbool _glfwWindowFocusedCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + return [window->ns.object isKeyWindow]; + } // autoreleasepool +} + +GLFWbool _glfwWindowIconifiedCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + return [window->ns.object isMiniaturized]; + } // autoreleasepool +} + +GLFWbool _glfwWindowVisibleCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + return [window->ns.object isVisible]; + } // autoreleasepool +} + +GLFWbool _glfwWindowMaximizedCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + + if (window->resizable) + return [window->ns.object isZoomed]; + else + return GLFW_FALSE; + + } // autoreleasepool +} + +GLFWbool _glfwWindowHoveredCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + + const NSPoint point = [NSEvent mouseLocation]; + + if ([NSWindow windowNumberAtPoint:point belowWindowWithWindowNumber:0] != + [window->ns.object windowNumber]) + { + return GLFW_FALSE; + } + + return NSMouseInRect(point, + [window->ns.object convertRectToScreen:[window->ns.view frame]], NO); + + } // autoreleasepool +} + +GLFWbool _glfwFramebufferTransparentCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + return ![window->ns.object isOpaque] && ![window->ns.view isOpaque]; + } // autoreleasepool +} + +void _glfwSetWindowResizableCocoa(_GLFWwindow* window, GLFWbool enabled) +{ + @autoreleasepool { + + const NSUInteger styleMask = [window->ns.object styleMask]; + if (enabled) + { + [window->ns.object setStyleMask:(styleMask | NSWindowStyleMaskResizable)]; + const NSWindowCollectionBehavior behavior = + NSWindowCollectionBehaviorFullScreenPrimary | + NSWindowCollectionBehaviorManaged; + [window->ns.object setCollectionBehavior:behavior]; + } + else + { + [window->ns.object setStyleMask:(styleMask & ~NSWindowStyleMaskResizable)]; + const NSWindowCollectionBehavior behavior = + NSWindowCollectionBehaviorFullScreenNone; + [window->ns.object setCollectionBehavior:behavior]; + } + + } // autoreleasepool +} + +void _glfwSetWindowDecoratedCocoa(_GLFWwindow* window, GLFWbool enabled) +{ + @autoreleasepool { + + NSUInteger styleMask = [window->ns.object styleMask]; + if (enabled) + { + styleMask |= (NSWindowStyleMaskTitled | NSWindowStyleMaskClosable); + styleMask &= ~NSWindowStyleMaskBorderless; + } + else + { + styleMask |= NSWindowStyleMaskBorderless; + styleMask &= ~(NSWindowStyleMaskTitled | NSWindowStyleMaskClosable); + } + + [window->ns.object setStyleMask:styleMask]; + [window->ns.object makeFirstResponder:window->ns.view]; + + } // autoreleasepool +} + +void _glfwSetWindowFloatingCocoa(_GLFWwindow* window, GLFWbool enabled) +{ + @autoreleasepool { + if (enabled) + [window->ns.object setLevel:NSFloatingWindowLevel]; + else + [window->ns.object setLevel:NSNormalWindowLevel]; + } // autoreleasepool +} + +void _glfwSetWindowMousePassthroughCocoa(_GLFWwindow* window, GLFWbool enabled) +{ + @autoreleasepool { + [window->ns.object setIgnoresMouseEvents:enabled]; + } +} + +float _glfwGetWindowOpacityCocoa(_GLFWwindow* window) +{ + @autoreleasepool { + return (float) [window->ns.object alphaValue]; + } // autoreleasepool +} + +void _glfwSetWindowOpacityCocoa(_GLFWwindow* window, float opacity) +{ + @autoreleasepool { + [window->ns.object setAlphaValue:opacity]; + } // autoreleasepool +} + +void _glfwSetRawMouseMotionCocoa(_GLFWwindow *window, GLFWbool enabled) +{ + _glfwInputError(GLFW_FEATURE_UNIMPLEMENTED, + "Cocoa: Raw mouse motion not yet implemented"); +} + +GLFWbool _glfwRawMouseMotionSupportedCocoa(void) +{ + return GLFW_FALSE; +} + +void _glfwPollEventsCocoa(void) +{ + @autoreleasepool { + + for (;;) + { + NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny + untilDate:[NSDate distantPast] + inMode:NSDefaultRunLoopMode + dequeue:YES]; + if (event == nil) + break; + + [NSApp sendEvent:event]; + } + + } // autoreleasepool +} + +void _glfwWaitEventsCocoa(void) +{ + @autoreleasepool { + + // I wanted to pass NO to dequeue:, and rely on PollEvents to + // dequeue and send. For reasons not at all clear to me, passing + // NO to dequeue: causes this method never to return. + NSEvent *event = [NSApp nextEventMatchingMask:NSEventMaskAny + untilDate:[NSDate distantFuture] + inMode:NSDefaultRunLoopMode + dequeue:YES]; + [NSApp sendEvent:event]; + + _glfwPollEventsCocoa(); + + } // autoreleasepool +} + +void _glfwWaitEventsTimeoutCocoa(double timeout) +{ + @autoreleasepool { + + NSDate* date = [NSDate dateWithTimeIntervalSinceNow:timeout]; + NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny + untilDate:date + inMode:NSDefaultRunLoopMode + dequeue:YES]; + if (event) + [NSApp sendEvent:event]; + + _glfwPollEventsCocoa(); + + } // autoreleasepool +} + +void _glfwPostEmptyEventCocoa(void) +{ + @autoreleasepool { + + NSEvent* event = [NSEvent otherEventWithType:NSEventTypeApplicationDefined + location:NSMakePoint(0, 0) + modifierFlags:0 + timestamp:0 + windowNumber:0 + context:nil + subtype:0 + data1:0 + data2:0]; + [NSApp postEvent:event atStart:YES]; + + } // autoreleasepool +} + +void _glfwGetCursorPosCocoa(_GLFWwindow* window, double* xpos, double* ypos) +{ + @autoreleasepool { + + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; + + if (xpos) + *xpos = pos.x; + if (ypos) + *ypos = contentRect.size.height - pos.y; + + } // autoreleasepool +} + +void _glfwSetCursorPosCocoa(_GLFWwindow* window, double x, double y) +{ + @autoreleasepool { + + updateCursorImage(window); + + const NSRect contentRect = [window->ns.view frame]; + // NOTE: The returned location uses base 0,1 not 0,0 + const NSPoint pos = [window->ns.object mouseLocationOutsideOfEventStream]; + + window->ns.cursorWarpDeltaX += x - pos.x; + window->ns.cursorWarpDeltaY += y - contentRect.size.height + pos.y; + + if (window->monitor) + { + CGDisplayMoveCursorToPoint(window->monitor->ns.displayID, + CGPointMake(x, y)); + } + else + { + const NSRect localRect = NSMakeRect(x, contentRect.size.height - y - 1, 0, 0); + const NSRect globalRect = [window->ns.object convertRectToScreen:localRect]; + const NSPoint globalPoint = globalRect.origin; + + CGWarpMouseCursorPosition(CGPointMake(globalPoint.x, + _glfwTransformYCocoa(globalPoint.y))); + } + + // HACK: Calling this right after setting the cursor position prevents macOS + // from freezing the cursor for a fraction of a second afterwards + if (window->cursorMode != GLFW_CURSOR_DISABLED) + CGAssociateMouseAndMouseCursorPosition(true); + + } // autoreleasepool +} + +void _glfwSetCursorModeCocoa(_GLFWwindow* window, int mode) +{ + @autoreleasepool { + + if (mode == GLFW_CURSOR_CAPTURED) + { + _glfwInputError(GLFW_FEATURE_UNIMPLEMENTED, + "Cocoa: Captured cursor mode not yet implemented"); + } + + if (_glfwWindowFocusedCocoa(window)) + updateCursorMode(window); + + } // autoreleasepool +} + +const char* _glfwGetScancodeNameCocoa(int scancode) +{ + @autoreleasepool { + + if (scancode < 0 || scancode > 0xff || + _glfw.ns.keycodes[scancode] == GLFW_KEY_UNKNOWN) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode); + return NULL; + } + + const int key = _glfw.ns.keycodes[scancode]; + + UInt32 deadKeyState = 0; + UniChar characters[4]; + UniCharCount characterCount = 0; + + if (UCKeyTranslate([(NSData*) _glfw.ns.unicodeData bytes], + scancode, + kUCKeyActionDisplay, + 0, + LMGetKbdType(), + kUCKeyTranslateNoDeadKeysBit, + &deadKeyState, + sizeof(characters) / sizeof(characters[0]), + &characterCount, + characters) != noErr) + { + return NULL; + } + + if (!characterCount) + return NULL; + + CFStringRef string = CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, + characters, + characterCount, + kCFAllocatorNull); + CFStringGetCString(string, + _glfw.ns.keynames[key], + sizeof(_glfw.ns.keynames[key]), + kCFStringEncodingUTF8); + CFRelease(string); + + return _glfw.ns.keynames[key]; + + } // autoreleasepool +} + +int _glfwGetKeyScancodeCocoa(int key) +{ + return _glfw.ns.scancodes[key]; +} + +GLFWbool _glfwCreateCursorCocoa(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + @autoreleasepool { + + NSImage* native; + NSBitmapImageRep* rep; + + rep = [[NSBitmapImageRep alloc] + initWithBitmapDataPlanes:NULL + pixelsWide:image->width + pixelsHigh:image->height + bitsPerSample:8 + samplesPerPixel:4 + hasAlpha:YES + isPlanar:NO + colorSpaceName:NSCalibratedRGBColorSpace + bitmapFormat:NSBitmapFormatAlphaNonpremultiplied + bytesPerRow:image->width * 4 + bitsPerPixel:32]; + + if (rep == nil) + return GLFW_FALSE; + + memcpy([rep bitmapData], image->pixels, image->width * image->height * 4); + + native = [[NSImage alloc] initWithSize:NSMakeSize(image->width, image->height)]; + [native addRepresentation:rep]; + + cursor->ns.object = [[NSCursor alloc] initWithImage:native + hotSpot:NSMakePoint(xhot, yhot)]; + + [native release]; + [rep release]; + + if (cursor->ns.object == nil) + return GLFW_FALSE; + + return GLFW_TRUE; + + } // autoreleasepool +} + +GLFWbool _glfwCreateStandardCursorCocoa(_GLFWcursor* cursor, int shape) +{ + @autoreleasepool { + + SEL cursorSelector = NULL; + + // HACK: Try to use a private message + switch (shape) + { + case GLFW_RESIZE_EW_CURSOR: + cursorSelector = NSSelectorFromString(@"_windowResizeEastWestCursor"); + break; + case GLFW_RESIZE_NS_CURSOR: + cursorSelector = NSSelectorFromString(@"_windowResizeNorthSouthCursor"); + break; + case GLFW_RESIZE_NWSE_CURSOR: + cursorSelector = NSSelectorFromString(@"_windowResizeNorthWestSouthEastCursor"); + break; + case GLFW_RESIZE_NESW_CURSOR: + cursorSelector = NSSelectorFromString(@"_windowResizeNorthEastSouthWestCursor"); + break; + } + + if (cursorSelector && [NSCursor respondsToSelector:cursorSelector]) + { + id object = [NSCursor performSelector:cursorSelector]; + if ([object isKindOfClass:[NSCursor class]]) + cursor->ns.object = object; + } + + if (!cursor->ns.object) + { + switch (shape) + { + case GLFW_ARROW_CURSOR: + cursor->ns.object = [NSCursor arrowCursor]; + break; + case GLFW_IBEAM_CURSOR: + cursor->ns.object = [NSCursor IBeamCursor]; + break; + case GLFW_CROSSHAIR_CURSOR: + cursor->ns.object = [NSCursor crosshairCursor]; + break; + case GLFW_POINTING_HAND_CURSOR: + cursor->ns.object = [NSCursor pointingHandCursor]; + break; + case GLFW_RESIZE_EW_CURSOR: + cursor->ns.object = [NSCursor resizeLeftRightCursor]; + break; + case GLFW_RESIZE_NS_CURSOR: + cursor->ns.object = [NSCursor resizeUpDownCursor]; + break; + case GLFW_RESIZE_ALL_CURSOR: + cursor->ns.object = [NSCursor closedHandCursor]; + break; + case GLFW_NOT_ALLOWED_CURSOR: + cursor->ns.object = [NSCursor operationNotAllowedCursor]; + break; + } + } + + if (!cursor->ns.object) + { + _glfwInputError(GLFW_CURSOR_UNAVAILABLE, + "Cocoa: Standard cursor shape unavailable"); + return GLFW_FALSE; + } + + [cursor->ns.object retain]; + return GLFW_TRUE; + + } // autoreleasepool +} + +void _glfwDestroyCursorCocoa(_GLFWcursor* cursor) +{ + @autoreleasepool { + if (cursor->ns.object) + [(NSCursor*) cursor->ns.object release]; + } // autoreleasepool +} + +void _glfwSetCursorCocoa(_GLFWwindow* window, _GLFWcursor* cursor) +{ + @autoreleasepool { + if (cursorInContentArea(window)) + updateCursorImage(window); + } // autoreleasepool +} + +void _glfwSetClipboardStringCocoa(const char* string) +{ + @autoreleasepool { + NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; + [pasteboard declareTypes:@[NSPasteboardTypeString] owner:nil]; + [pasteboard setString:@(string) forType:NSPasteboardTypeString]; + } // autoreleasepool +} + +const char* _glfwGetClipboardStringCocoa(void) +{ + @autoreleasepool { + + NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; + + if (![[pasteboard types] containsObject:NSPasteboardTypeString]) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "Cocoa: Failed to retrieve string from pasteboard"); + return NULL; + } + + NSString* object = [pasteboard stringForType:NSPasteboardTypeString]; + if (!object) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to retrieve object from pasteboard"); + return NULL; + } + + _glfw_free(_glfw.ns.clipboardString); + _glfw.ns.clipboardString = _glfw_strdup([object UTF8String]); + + return _glfw.ns.clipboardString; + + } // autoreleasepool +} + +EGLenum _glfwGetEGLPlatformCocoa(EGLint** attribs) +{ + if (_glfw.egl.ANGLE_platform_angle) + { + int type = 0; + + if (_glfw.egl.ANGLE_platform_angle_opengl) + { + if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_OPENGL) + type = EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE; + } + + if (_glfw.egl.ANGLE_platform_angle_metal) + { + if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_METAL) + type = EGL_PLATFORM_ANGLE_TYPE_METAL_ANGLE; + } + + if (type) + { + *attribs = _glfw_calloc(3, sizeof(EGLint)); + (*attribs)[0] = EGL_PLATFORM_ANGLE_TYPE_ANGLE; + (*attribs)[1] = type; + (*attribs)[2] = EGL_NONE; + return EGL_PLATFORM_ANGLE_ANGLE; + } + } + + return 0; +} + +EGLNativeDisplayType _glfwGetEGLNativeDisplayCocoa(void) +{ + return EGL_DEFAULT_DISPLAY; +} + +EGLNativeWindowType _glfwGetEGLNativeWindowCocoa(_GLFWwindow* window) +{ + return window->ns.layer; +} + +void _glfwGetRequiredInstanceExtensionsCocoa(char** extensions) +{ + if (_glfw.vk.KHR_surface && _glfw.vk.EXT_metal_surface) + { + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_EXT_metal_surface"; + } + else if (_glfw.vk.KHR_surface && _glfw.vk.MVK_macos_surface) + { + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_MVK_macos_surface"; + } +} + +GLFWbool _glfwGetPhysicalDevicePresentationSupportCocoa(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + return GLFW_TRUE; +} + +VkResult _glfwCreateWindowSurfaceCocoa(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + @autoreleasepool { + +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 + // HACK: Dynamically load Core Animation to avoid adding an extra + // dependency for the majority who don't use MoltenVK + NSBundle* bundle = [NSBundle bundleWithPath:@"/System/Library/Frameworks/QuartzCore.framework"]; + if (!bundle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to find QuartzCore.framework"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + // NOTE: Create the layer here as makeBackingLayer should not return nil + window->ns.layer = [[bundle classNamed:@"CAMetalLayer"] layer]; + if (!window->ns.layer) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create layer for view"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + if (window->ns.retina) + [window->ns.layer setContentsScale:[window->ns.object backingScaleFactor]]; + + [window->ns.view setLayer:window->ns.layer]; + [window->ns.view setWantsLayer:YES]; + + VkResult err; + + if (_glfw.vk.EXT_metal_surface) + { + VkMetalSurfaceCreateInfoEXT sci; + + PFN_vkCreateMetalSurfaceEXT vkCreateMetalSurfaceEXT; + vkCreateMetalSurfaceEXT = (PFN_vkCreateMetalSurfaceEXT) + vkGetInstanceProcAddr(instance, "vkCreateMetalSurfaceEXT"); + if (!vkCreateMetalSurfaceEXT) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Cocoa: Vulkan instance missing VK_EXT_metal_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT; + sci.pLayer = window->ns.layer; + + err = vkCreateMetalSurfaceEXT(instance, &sci, allocator, surface); + } + else + { + VkMacOSSurfaceCreateInfoMVK sci; + + PFN_vkCreateMacOSSurfaceMVK vkCreateMacOSSurfaceMVK; + vkCreateMacOSSurfaceMVK = (PFN_vkCreateMacOSSurfaceMVK) + vkGetInstanceProcAddr(instance, "vkCreateMacOSSurfaceMVK"); + if (!vkCreateMacOSSurfaceMVK) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Cocoa: Vulkan instance missing VK_MVK_macos_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK; + sci.pView = window->ns.view; + + err = vkCreateMacOSSurfaceMVK(instance, &sci, allocator, surface); + } + + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Cocoa: Failed to create Vulkan surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; +#else + return VK_ERROR_EXTENSION_NOT_PRESENT; +#endif + + } // autoreleasepool +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI id glfwGetCocoaWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(nil); + + if (_glfw.platform.platformID != GLFW_PLATFORM_COCOA) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "Cocoa: Platform not initialized"); + return NULL; + } + + return window->ns.object; +} + diff --git a/thirdparty/imgui_suite/glfw/src/context.c b/thirdparty/imgui_suite/glfw/src/context.c new file mode 100644 index 00000000000..33b399c9b8a --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/context.c @@ -0,0 +1,765 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2016 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Checks whether the desired context attributes are valid +// +// This function checks things like whether the specified client API version +// exists and whether all relevant options have supported and non-conflicting +// values +// +GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig) +{ + if (ctxconfig->source != GLFW_NATIVE_CONTEXT_API && + ctxconfig->source != GLFW_EGL_CONTEXT_API && + ctxconfig->source != GLFW_OSMESA_CONTEXT_API) + { + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid context creation API 0x%08X", + ctxconfig->source); + return GLFW_FALSE; + } + + if (ctxconfig->client != GLFW_NO_API && + ctxconfig->client != GLFW_OPENGL_API && + ctxconfig->client != GLFW_OPENGL_ES_API) + { + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid client API 0x%08X", + ctxconfig->client); + return GLFW_FALSE; + } + + if (ctxconfig->share) + { + if (ctxconfig->client == GLFW_NO_API || + ctxconfig->share->context.client == GLFW_NO_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return GLFW_FALSE; + } + + if (ctxconfig->source != ctxconfig->share->context.source) + { + _glfwInputError(GLFW_INVALID_ENUM, + "Context creation APIs do not match between contexts"); + return GLFW_FALSE; + } + } + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if ((ctxconfig->major < 1 || ctxconfig->minor < 0) || + (ctxconfig->major == 1 && ctxconfig->minor > 5) || + (ctxconfig->major == 2 && ctxconfig->minor > 1) || + (ctxconfig->major == 3 && ctxconfig->minor > 3)) + { + // OpenGL 1.0 is the smallest valid version + // OpenGL 1.x series ended with version 1.5 + // OpenGL 2.x series ended with version 2.1 + // OpenGL 3.x series ended with version 3.3 + // For now, let everything else through + + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid OpenGL version %i.%i", + ctxconfig->major, ctxconfig->minor); + return GLFW_FALSE; + } + + if (ctxconfig->profile) + { + if (ctxconfig->profile != GLFW_OPENGL_CORE_PROFILE && + ctxconfig->profile != GLFW_OPENGL_COMPAT_PROFILE) + { + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid OpenGL profile 0x%08X", + ctxconfig->profile); + return GLFW_FALSE; + } + + if (ctxconfig->major <= 2 || + (ctxconfig->major == 3 && ctxconfig->minor < 2)) + { + // Desktop OpenGL context profiles are only defined for version 3.2 + // and above + + _glfwInputError(GLFW_INVALID_VALUE, + "Context profiles are only defined for OpenGL version 3.2 and above"); + return GLFW_FALSE; + } + } + + if (ctxconfig->forward && ctxconfig->major <= 2) + { + // Forward-compatible contexts are only defined for OpenGL version 3.0 and above + _glfwInputError(GLFW_INVALID_VALUE, + "Forward-compatibility is only defined for OpenGL version 3.0 and above"); + return GLFW_FALSE; + } + } + else if (ctxconfig->client == GLFW_OPENGL_ES_API) + { + if (ctxconfig->major < 1 || ctxconfig->minor < 0 || + (ctxconfig->major == 1 && ctxconfig->minor > 1) || + (ctxconfig->major == 2 && ctxconfig->minor > 0)) + { + // OpenGL ES 1.0 is the smallest valid version + // OpenGL ES 1.x series ended with version 1.1 + // OpenGL ES 2.x series ended with version 2.0 + // For now, let everything else through + + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid OpenGL ES version %i.%i", + ctxconfig->major, ctxconfig->minor); + return GLFW_FALSE; + } + } + + if (ctxconfig->robustness) + { + if (ctxconfig->robustness != GLFW_NO_RESET_NOTIFICATION && + ctxconfig->robustness != GLFW_LOSE_CONTEXT_ON_RESET) + { + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid context robustness mode 0x%08X", + ctxconfig->robustness); + return GLFW_FALSE; + } + } + + if (ctxconfig->release) + { + if (ctxconfig->release != GLFW_RELEASE_BEHAVIOR_NONE && + ctxconfig->release != GLFW_RELEASE_BEHAVIOR_FLUSH) + { + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid context release behavior 0x%08X", + ctxconfig->release); + return GLFW_FALSE; + } + } + + return GLFW_TRUE; +} + +// Chooses the framebuffer config that best matches the desired one +// +const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, + const _GLFWfbconfig* alternatives, + unsigned int count) +{ + unsigned int i; + unsigned int missing, leastMissing = UINT_MAX; + unsigned int colorDiff, leastColorDiff = UINT_MAX; + unsigned int extraDiff, leastExtraDiff = UINT_MAX; + const _GLFWfbconfig* current; + const _GLFWfbconfig* closest = NULL; + + for (i = 0; i < count; i++) + { + current = alternatives + i; + + if (desired->stereo > 0 && current->stereo == 0) + { + // Stereo is a hard constraint + continue; + } + + // Count number of missing buffers + { + missing = 0; + + if (desired->alphaBits > 0 && current->alphaBits == 0) + missing++; + + if (desired->depthBits > 0 && current->depthBits == 0) + missing++; + + if (desired->stencilBits > 0 && current->stencilBits == 0) + missing++; + + if (desired->auxBuffers > 0 && + current->auxBuffers < desired->auxBuffers) + { + missing += desired->auxBuffers - current->auxBuffers; + } + + if (desired->samples > 0 && current->samples == 0) + { + // Technically, several multisampling buffers could be + // involved, but that's a lower level implementation detail and + // not important to us here, so we count them as one + missing++; + } + + if (desired->transparent != current->transparent) + missing++; + } + + // These polynomials make many small channel size differences matter + // less than one large channel size difference + + // Calculate color channel size difference value + { + colorDiff = 0; + + if (desired->redBits != GLFW_DONT_CARE) + { + colorDiff += (desired->redBits - current->redBits) * + (desired->redBits - current->redBits); + } + + if (desired->greenBits != GLFW_DONT_CARE) + { + colorDiff += (desired->greenBits - current->greenBits) * + (desired->greenBits - current->greenBits); + } + + if (desired->blueBits != GLFW_DONT_CARE) + { + colorDiff += (desired->blueBits - current->blueBits) * + (desired->blueBits - current->blueBits); + } + } + + // Calculate non-color channel size difference value + { + extraDiff = 0; + + if (desired->alphaBits != GLFW_DONT_CARE) + { + extraDiff += (desired->alphaBits - current->alphaBits) * + (desired->alphaBits - current->alphaBits); + } + + if (desired->depthBits != GLFW_DONT_CARE) + { + extraDiff += (desired->depthBits - current->depthBits) * + (desired->depthBits - current->depthBits); + } + + if (desired->stencilBits != GLFW_DONT_CARE) + { + extraDiff += (desired->stencilBits - current->stencilBits) * + (desired->stencilBits - current->stencilBits); + } + + if (desired->accumRedBits != GLFW_DONT_CARE) + { + extraDiff += (desired->accumRedBits - current->accumRedBits) * + (desired->accumRedBits - current->accumRedBits); + } + + if (desired->accumGreenBits != GLFW_DONT_CARE) + { + extraDiff += (desired->accumGreenBits - current->accumGreenBits) * + (desired->accumGreenBits - current->accumGreenBits); + } + + if (desired->accumBlueBits != GLFW_DONT_CARE) + { + extraDiff += (desired->accumBlueBits - current->accumBlueBits) * + (desired->accumBlueBits - current->accumBlueBits); + } + + if (desired->accumAlphaBits != GLFW_DONT_CARE) + { + extraDiff += (desired->accumAlphaBits - current->accumAlphaBits) * + (desired->accumAlphaBits - current->accumAlphaBits); + } + + if (desired->samples != GLFW_DONT_CARE) + { + extraDiff += (desired->samples - current->samples) * + (desired->samples - current->samples); + } + + if (desired->sRGB && !current->sRGB) + extraDiff++; + } + + // Figure out if the current one is better than the best one found so far + // Least number of missing buffers is the most important heuristic, + // then color buffer size match and lastly size match for other buffers + + if (missing < leastMissing) + closest = current; + else if (missing == leastMissing) + { + if ((colorDiff < leastColorDiff) || + (colorDiff == leastColorDiff && extraDiff < leastExtraDiff)) + { + closest = current; + } + } + + if (current == closest) + { + leastMissing = missing; + leastColorDiff = colorDiff; + leastExtraDiff = extraDiff; + } + } + + return closest; +} + +// Retrieves the attributes of the current context +// +GLFWbool _glfwRefreshContextAttribs(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig) +{ + int i; + _GLFWwindow* previous; + const char* version; + const char* prefixes[] = + { + "OpenGL ES-CM ", + "OpenGL ES-CL ", + "OpenGL ES ", + NULL + }; + + window->context.source = ctxconfig->source; + window->context.client = GLFW_OPENGL_API; + + previous = _glfwPlatformGetTls(&_glfw.contextSlot); + glfwMakeContextCurrent((GLFWwindow*) window); + + window->context.GetIntegerv = (PFNGLGETINTEGERVPROC) + window->context.getProcAddress("glGetIntegerv"); + window->context.GetString = (PFNGLGETSTRINGPROC) + window->context.getProcAddress("glGetString"); + if (!window->context.GetIntegerv || !window->context.GetString) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Entry point retrieval is broken"); + glfwMakeContextCurrent((GLFWwindow*) previous); + return GLFW_FALSE; + } + + version = (const char*) window->context.GetString(GL_VERSION); + if (!version) + { + if (ctxconfig->client == GLFW_OPENGL_API) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "OpenGL version string retrieval is broken"); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "OpenGL ES version string retrieval is broken"); + } + + glfwMakeContextCurrent((GLFWwindow*) previous); + return GLFW_FALSE; + } + + for (i = 0; prefixes[i]; i++) + { + const size_t length = strlen(prefixes[i]); + + if (strncmp(version, prefixes[i], length) == 0) + { + version += length; + window->context.client = GLFW_OPENGL_ES_API; + break; + } + } + + if (!sscanf(version, "%d.%d.%d", + &window->context.major, + &window->context.minor, + &window->context.revision)) + { + if (window->context.client == GLFW_OPENGL_API) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "No version found in OpenGL version string"); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "No version found in OpenGL ES version string"); + } + + glfwMakeContextCurrent((GLFWwindow*) previous); + return GLFW_FALSE; + } + + if (window->context.major < ctxconfig->major || + (window->context.major == ctxconfig->major && + window->context.minor < ctxconfig->minor)) + { + // The desired OpenGL version is greater than the actual version + // This only happens if the machine lacks {GLX|WGL}_ARB_create_context + // /and/ the user has requested an OpenGL version greater than 1.0 + + // For API consistency, we emulate the behavior of the + // {GLX|WGL}_ARB_create_context extension and fail here + + if (window->context.client == GLFW_OPENGL_API) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "Requested OpenGL version %i.%i, got version %i.%i", + ctxconfig->major, ctxconfig->minor, + window->context.major, window->context.minor); + } + else + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "Requested OpenGL ES version %i.%i, got version %i.%i", + ctxconfig->major, ctxconfig->minor, + window->context.major, window->context.minor); + } + + glfwMakeContextCurrent((GLFWwindow*) previous); + return GLFW_FALSE; + } + + if (window->context.major >= 3) + { + // OpenGL 3.0+ uses a different function for extension string retrieval + // We cache it here instead of in glfwExtensionSupported mostly to alert + // users as early as possible that their build may be broken + + window->context.GetStringi = (PFNGLGETSTRINGIPROC) + window->context.getProcAddress("glGetStringi"); + if (!window->context.GetStringi) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Entry point retrieval is broken"); + glfwMakeContextCurrent((GLFWwindow*) previous); + return GLFW_FALSE; + } + } + + if (window->context.client == GLFW_OPENGL_API) + { + // Read back context flags (OpenGL 3.0 and above) + if (window->context.major >= 3) + { + GLint flags; + window->context.GetIntegerv(GL_CONTEXT_FLAGS, &flags); + + if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT) + window->context.forward = GLFW_TRUE; + + if (flags & GL_CONTEXT_FLAG_DEBUG_BIT) + window->context.debug = GLFW_TRUE; + else if (glfwExtensionSupported("GL_ARB_debug_output") && + ctxconfig->debug) + { + // HACK: This is a workaround for older drivers (pre KHR_debug) + // not setting the debug bit in the context flags for + // debug contexts + window->context.debug = GLFW_TRUE; + } + + if (flags & GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR) + window->context.noerror = GLFW_TRUE; + } + + // Read back OpenGL context profile (OpenGL 3.2 and above) + if (window->context.major >= 4 || + (window->context.major == 3 && window->context.minor >= 2)) + { + GLint mask; + window->context.GetIntegerv(GL_CONTEXT_PROFILE_MASK, &mask); + + if (mask & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) + window->context.profile = GLFW_OPENGL_COMPAT_PROFILE; + else if (mask & GL_CONTEXT_CORE_PROFILE_BIT) + window->context.profile = GLFW_OPENGL_CORE_PROFILE; + else if (glfwExtensionSupported("GL_ARB_compatibility")) + { + // HACK: This is a workaround for the compatibility profile bit + // not being set in the context flags if an OpenGL 3.2+ + // context was created without having requested a specific + // version + window->context.profile = GLFW_OPENGL_COMPAT_PROFILE; + } + } + + // Read back robustness strategy + if (glfwExtensionSupported("GL_ARB_robustness")) + { + // NOTE: We avoid using the context flags for detection, as they are + // only present from 3.0 while the extension applies from 1.1 + + GLint strategy; + window->context.GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, + &strategy); + + if (strategy == GL_LOSE_CONTEXT_ON_RESET_ARB) + window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET; + else if (strategy == GL_NO_RESET_NOTIFICATION_ARB) + window->context.robustness = GLFW_NO_RESET_NOTIFICATION; + } + } + else + { + // Read back robustness strategy + if (glfwExtensionSupported("GL_EXT_robustness")) + { + // NOTE: The values of these constants match those of the OpenGL ARB + // one, so we can reuse them here + + GLint strategy; + window->context.GetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, + &strategy); + + if (strategy == GL_LOSE_CONTEXT_ON_RESET_ARB) + window->context.robustness = GLFW_LOSE_CONTEXT_ON_RESET; + else if (strategy == GL_NO_RESET_NOTIFICATION_ARB) + window->context.robustness = GLFW_NO_RESET_NOTIFICATION; + } + } + + if (glfwExtensionSupported("GL_KHR_context_flush_control")) + { + GLint behavior; + window->context.GetIntegerv(GL_CONTEXT_RELEASE_BEHAVIOR, &behavior); + + if (behavior == GL_NONE) + window->context.release = GLFW_RELEASE_BEHAVIOR_NONE; + else if (behavior == GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH) + window->context.release = GLFW_RELEASE_BEHAVIOR_FLUSH; + } + + // Clearing the front buffer to black to avoid garbage pixels left over from + // previous uses of our bit of VRAM + { + PFNGLCLEARPROC glClear = (PFNGLCLEARPROC) + window->context.getProcAddress("glClear"); + glClear(GL_COLOR_BUFFER_BIT); + + if (window->doublebuffer) + window->context.swapBuffers(window); + } + + glfwMakeContextCurrent((GLFWwindow*) previous); + return GLFW_TRUE; +} + +// Searches an extension string for the specified extension +// +GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions) +{ + const char* start = extensions; + + for (;;) + { + const char* where; + const char* terminator; + + where = strstr(start, string); + if (!where) + return GLFW_FALSE; + + terminator = where + strlen(string); + if (where == start || *(where - 1) == ' ') + { + if (*terminator == ' ' || *terminator == '\0') + break; + } + + start = terminator; + } + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI void glfwMakeContextCurrent(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFWwindow* previous; + + _GLFW_REQUIRE_INIT(); + + previous = _glfwPlatformGetTls(&_glfw.contextSlot); + + if (window && window->context.client == GLFW_NO_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, + "Cannot make current with a window that has no OpenGL or OpenGL ES context"); + return; + } + + if (previous) + { + if (!window || window->context.source != previous->context.source) + previous->context.makeCurrent(NULL); + } + + if (window) + window->context.makeCurrent(window); +} + +GLFWAPI GLFWwindow* glfwGetCurrentContext(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return _glfwPlatformGetTls(&_glfw.contextSlot); +} + +GLFWAPI void glfwSwapBuffers(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + if (window->context.client == GLFW_NO_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, + "Cannot swap buffers of a window that has no OpenGL or OpenGL ES context"); + return; + } + + window->context.swapBuffers(window); +} + +GLFWAPI void glfwSwapInterval(int interval) +{ + _GLFWwindow* window; + + _GLFW_REQUIRE_INIT(); + + window = _glfwPlatformGetTls(&_glfw.contextSlot); + if (!window) + { + _glfwInputError(GLFW_NO_CURRENT_CONTEXT, + "Cannot set swap interval without a current OpenGL or OpenGL ES context"); + return; + } + + window->context.swapInterval(interval); +} + +GLFWAPI int glfwExtensionSupported(const char* extension) +{ + _GLFWwindow* window; + assert(extension != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + window = _glfwPlatformGetTls(&_glfw.contextSlot); + if (!window) + { + _glfwInputError(GLFW_NO_CURRENT_CONTEXT, + "Cannot query extension without a current OpenGL or OpenGL ES context"); + return GLFW_FALSE; + } + + if (*extension == '\0') + { + _glfwInputError(GLFW_INVALID_VALUE, "Extension name cannot be an empty string"); + return GLFW_FALSE; + } + + if (window->context.major >= 3) + { + int i; + GLint count; + + // Check if extension is in the modern OpenGL extensions string list + + window->context.GetIntegerv(GL_NUM_EXTENSIONS, &count); + + for (i = 0; i < count; i++) + { + const char* en = (const char*) + window->context.GetStringi(GL_EXTENSIONS, i); + if (!en) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Extension string retrieval is broken"); + return GLFW_FALSE; + } + + if (strcmp(en, extension) == 0) + return GLFW_TRUE; + } + } + else + { + // Check if extension is in the old style OpenGL extensions string + + const char* extensions = (const char*) + window->context.GetString(GL_EXTENSIONS); + if (!extensions) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Extension string retrieval is broken"); + return GLFW_FALSE; + } + + if (_glfwStringInExtensionString(extension, extensions)) + return GLFW_TRUE; + } + + // Check if extension is in the platform-specific string + return window->context.extensionSupported(extension); +} + +GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname) +{ + _GLFWwindow* window; + assert(procname != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + window = _glfwPlatformGetTls(&_glfw.contextSlot); + if (!window) + { + _glfwInputError(GLFW_NO_CURRENT_CONTEXT, + "Cannot query entry point without a current OpenGL or OpenGL ES context"); + return NULL; + } + + return window->context.getProcAddress(procname); +} + diff --git a/thirdparty/imgui_suite/glfw/src/egl_context.c b/thirdparty/imgui_suite/glfw/src/egl_context.c new file mode 100644 index 00000000000..bc5f3e600c3 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/egl_context.c @@ -0,0 +1,884 @@ +//======================================================================== +// GLFW 3.4 EGL - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include + + +// Return a description of the specified EGL error +// +static const char* getEGLErrorString(EGLint error) +{ + switch (error) + { + case EGL_SUCCESS: + return "Success"; + case EGL_NOT_INITIALIZED: + return "EGL is not or could not be initialized"; + case EGL_BAD_ACCESS: + return "EGL cannot access a requested resource"; + case EGL_BAD_ALLOC: + return "EGL failed to allocate resources for the requested operation"; + case EGL_BAD_ATTRIBUTE: + return "An unrecognized attribute or attribute value was passed in the attribute list"; + case EGL_BAD_CONTEXT: + return "An EGLContext argument does not name a valid EGL rendering context"; + case EGL_BAD_CONFIG: + return "An EGLConfig argument does not name a valid EGL frame buffer configuration"; + case EGL_BAD_CURRENT_SURFACE: + return "The current surface of the calling thread is a window, pixel buffer or pixmap that is no longer valid"; + case EGL_BAD_DISPLAY: + return "An EGLDisplay argument does not name a valid EGL display connection"; + case EGL_BAD_SURFACE: + return "An EGLSurface argument does not name a valid surface configured for GL rendering"; + case EGL_BAD_MATCH: + return "Arguments are inconsistent"; + case EGL_BAD_PARAMETER: + return "One or more argument values are invalid"; + case EGL_BAD_NATIVE_PIXMAP: + return "A NativePixmapType argument does not refer to a valid native pixmap"; + case EGL_BAD_NATIVE_WINDOW: + return "A NativeWindowType argument does not refer to a valid native window"; + case EGL_CONTEXT_LOST: + return "The application must destroy all contexts and reinitialise"; + default: + return "ERROR: UNKNOWN EGL ERROR"; + } +} + +// Returns the specified attribute of the specified EGLConfig +// +static int getEGLConfigAttrib(EGLConfig config, int attrib) +{ + int value; + eglGetConfigAttrib(_glfw.egl.display, config, attrib, &value); + return value; +} + +// Return the EGLConfig most closely matching the specified hints +// +static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* desired, + EGLConfig* result) +{ + EGLConfig* nativeConfigs; + _GLFWfbconfig* usableConfigs; + const _GLFWfbconfig* closest; + int i, nativeCount, usableCount; + + eglGetConfigs(_glfw.egl.display, NULL, 0, &nativeCount); + if (!nativeCount) + { + _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: No EGLConfigs returned"); + return GLFW_FALSE; + } + + nativeConfigs = _glfw_calloc(nativeCount, sizeof(EGLConfig)); + eglGetConfigs(_glfw.egl.display, nativeConfigs, nativeCount, &nativeCount); + + usableConfigs = _glfw_calloc(nativeCount, sizeof(_GLFWfbconfig)); + usableCount = 0; + + for (i = 0; i < nativeCount; i++) + { + const EGLConfig n = nativeConfigs[i]; + _GLFWfbconfig* u = usableConfigs + usableCount; + + // Only consider RGB(A) EGLConfigs + if (getEGLConfigAttrib(n, EGL_COLOR_BUFFER_TYPE) != EGL_RGB_BUFFER) + continue; + + // Only consider window EGLConfigs + if (!(getEGLConfigAttrib(n, EGL_SURFACE_TYPE) & EGL_WINDOW_BIT)) + continue; + +#if defined(_GLFW_X11) + if (_glfw.platform.platformID == GLFW_PLATFORM_X11) + { + XVisualInfo vi = {0}; + + // Only consider EGLConfigs with associated Visuals + vi.visualid = getEGLConfigAttrib(n, EGL_NATIVE_VISUAL_ID); + if (!vi.visualid) + continue; + + if (desired->transparent) + { + int count; + XVisualInfo* vis = + XGetVisualInfo(_glfw.x11.display, VisualIDMask, &vi, &count); + if (vis) + { + u->transparent = _glfwIsVisualTransparentX11(vis[0].visual); + XFree(vis); + } + } + } +#endif // _GLFW_X11 + + if (ctxconfig->client == GLFW_OPENGL_ES_API) + { + if (ctxconfig->major == 1) + { + if (!(getEGLConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_ES_BIT)) + continue; + } + else + { + if (!(getEGLConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_ES2_BIT)) + continue; + } + } + else if (ctxconfig->client == GLFW_OPENGL_API) + { + if (!(getEGLConfigAttrib(n, EGL_RENDERABLE_TYPE) & EGL_OPENGL_BIT)) + continue; + } + + u->redBits = getEGLConfigAttrib(n, EGL_RED_SIZE); + u->greenBits = getEGLConfigAttrib(n, EGL_GREEN_SIZE); + u->blueBits = getEGLConfigAttrib(n, EGL_BLUE_SIZE); + + u->alphaBits = getEGLConfigAttrib(n, EGL_ALPHA_SIZE); + u->depthBits = getEGLConfigAttrib(n, EGL_DEPTH_SIZE); + u->stencilBits = getEGLConfigAttrib(n, EGL_STENCIL_SIZE); + +#if defined(_GLFW_WAYLAND) + if (_glfw.platform.platformID == GLFW_PLATFORM_WAYLAND) + { + // NOTE: The wl_surface opaque region is no guarantee that its buffer + // is presented as opaque, if it also has an alpha channel + // HACK: If EGL_EXT_present_opaque is unavailable, ignore any config + // with an alpha channel to ensure the buffer is opaque + if (!_glfw.egl.EXT_present_opaque) + { + if (!desired->transparent && u->alphaBits > 0) + continue; + } + } +#endif // _GLFW_WAYLAND + + u->samples = getEGLConfigAttrib(n, EGL_SAMPLES); + u->doublebuffer = desired->doublebuffer; + + u->handle = (uintptr_t) n; + usableCount++; + } + + closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); + if (closest) + *result = (EGLConfig) closest->handle; + + _glfw_free(nativeConfigs); + _glfw_free(usableConfigs); + + return closest != NULL; +} + +static void makeContextCurrentEGL(_GLFWwindow* window) +{ + if (window) + { + if (!eglMakeCurrent(_glfw.egl.display, + window->context.egl.surface, + window->context.egl.surface, + window->context.egl.handle)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "EGL: Failed to make context current: %s", + getEGLErrorString(eglGetError())); + return; + } + } + else + { + if (!eglMakeCurrent(_glfw.egl.display, + EGL_NO_SURFACE, + EGL_NO_SURFACE, + EGL_NO_CONTEXT)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "EGL: Failed to clear current context: %s", + getEGLErrorString(eglGetError())); + return; + } + } + + _glfwPlatformSetTls(&_glfw.contextSlot, window); +} + +static void swapBuffersEGL(_GLFWwindow* window) +{ + if (window != _glfwPlatformGetTls(&_glfw.contextSlot)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "EGL: The context must be current on the calling thread when swapping buffers"); + return; + } + +#if defined(_GLFW_WAYLAND) + if (_glfw.platform.platformID == GLFW_PLATFORM_WAYLAND) + { + // NOTE: Swapping buffers on a hidden window on Wayland makes it visible + if (!window->wl.visible) + return; + } +#endif + + eglSwapBuffers(_glfw.egl.display, window->context.egl.surface); +} + +static void swapIntervalEGL(int interval) +{ + eglSwapInterval(_glfw.egl.display, interval); +} + +static int extensionSupportedEGL(const char* extension) +{ + const char* extensions = eglQueryString(_glfw.egl.display, EGL_EXTENSIONS); + if (extensions) + { + if (_glfwStringInExtensionString(extension, extensions)) + return GLFW_TRUE; + } + + return GLFW_FALSE; +} + +static GLFWglproc getProcAddressEGL(const char* procname) +{ + _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); + + if (window->context.egl.client) + { + GLFWglproc proc = (GLFWglproc) + _glfwPlatformGetModuleSymbol(window->context.egl.client, procname); + if (proc) + return proc; + } + + return eglGetProcAddress(procname); +} + +static void destroyContextEGL(_GLFWwindow* window) +{ + // NOTE: Do not unload libGL.so.1 while the X11 display is still open, + // as it will make XCloseDisplay segfault + if (_glfw.platform.platformID != GLFW_PLATFORM_X11 || + window->context.client != GLFW_OPENGL_API) + { + if (window->context.egl.client) + { + _glfwPlatformFreeModule(window->context.egl.client); + window->context.egl.client = NULL; + } + } + + if (window->context.egl.surface) + { + eglDestroySurface(_glfw.egl.display, window->context.egl.surface); + window->context.egl.surface = EGL_NO_SURFACE; + } + + if (window->context.egl.handle) + { + eglDestroyContext(_glfw.egl.display, window->context.egl.handle); + window->context.egl.handle = EGL_NO_CONTEXT; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Initialize EGL +// +GLFWbool _glfwInitEGL(void) +{ + int i; + EGLint* attribs = NULL; + const char* extensions; + const char* sonames[] = + { +#if defined(_GLFW_EGL_LIBRARY) + _GLFW_EGL_LIBRARY, +#elif defined(_GLFW_WIN32) + "libEGL.dll", + "EGL.dll", +#elif defined(_GLFW_COCOA) + "libEGL.dylib", +#elif defined(__CYGWIN__) + "libEGL-1.so", +#elif defined(__OpenBSD__) || defined(__NetBSD__) + "libEGL.so", +#else + "libEGL.so.1", +#endif + NULL + }; + + if (_glfw.egl.handle) + return GLFW_TRUE; + + for (i = 0; sonames[i]; i++) + { + _glfw.egl.handle = _glfwPlatformLoadModule(sonames[i]); + if (_glfw.egl.handle) + break; + } + + if (!_glfw.egl.handle) + { + _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: Library not found"); + return GLFW_FALSE; + } + + _glfw.egl.prefix = (strncmp(sonames[i], "lib", 3) == 0); + + _glfw.egl.GetConfigAttrib = (PFN_eglGetConfigAttrib) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetConfigAttrib"); + _glfw.egl.GetConfigs = (PFN_eglGetConfigs) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetConfigs"); + _glfw.egl.GetDisplay = (PFN_eglGetDisplay) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetDisplay"); + _glfw.egl.GetError = (PFN_eglGetError) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetError"); + _glfw.egl.Initialize = (PFN_eglInitialize) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglInitialize"); + _glfw.egl.Terminate = (PFN_eglTerminate) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglTerminate"); + _glfw.egl.BindAPI = (PFN_eglBindAPI) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglBindAPI"); + _glfw.egl.CreateContext = (PFN_eglCreateContext) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglCreateContext"); + _glfw.egl.DestroySurface = (PFN_eglDestroySurface) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglDestroySurface"); + _glfw.egl.DestroyContext = (PFN_eglDestroyContext) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglDestroyContext"); + _glfw.egl.CreateWindowSurface = (PFN_eglCreateWindowSurface) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglCreateWindowSurface"); + _glfw.egl.MakeCurrent = (PFN_eglMakeCurrent) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglMakeCurrent"); + _glfw.egl.SwapBuffers = (PFN_eglSwapBuffers) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglSwapBuffers"); + _glfw.egl.SwapInterval = (PFN_eglSwapInterval) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglSwapInterval"); + _glfw.egl.QueryString = (PFN_eglQueryString) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglQueryString"); + _glfw.egl.GetProcAddress = (PFN_eglGetProcAddress) + _glfwPlatformGetModuleSymbol(_glfw.egl.handle, "eglGetProcAddress"); + + if (!_glfw.egl.GetConfigAttrib || + !_glfw.egl.GetConfigs || + !_glfw.egl.GetDisplay || + !_glfw.egl.GetError || + !_glfw.egl.Initialize || + !_glfw.egl.Terminate || + !_glfw.egl.BindAPI || + !_glfw.egl.CreateContext || + !_glfw.egl.DestroySurface || + !_glfw.egl.DestroyContext || + !_glfw.egl.CreateWindowSurface || + !_glfw.egl.MakeCurrent || + !_glfw.egl.SwapBuffers || + !_glfw.egl.SwapInterval || + !_glfw.egl.QueryString || + !_glfw.egl.GetProcAddress) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "EGL: Failed to load required entry points"); + + _glfwTerminateEGL(); + return GLFW_FALSE; + } + + extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS); + if (extensions && eglGetError() == EGL_SUCCESS) + _glfw.egl.EXT_client_extensions = GLFW_TRUE; + + if (_glfw.egl.EXT_client_extensions) + { + _glfw.egl.EXT_platform_base = + _glfwStringInExtensionString("EGL_EXT_platform_base", extensions); + _glfw.egl.EXT_platform_x11 = + _glfwStringInExtensionString("EGL_EXT_platform_x11", extensions); + _glfw.egl.EXT_platform_wayland = + _glfwStringInExtensionString("EGL_EXT_platform_wayland", extensions); + _glfw.egl.ANGLE_platform_angle = + _glfwStringInExtensionString("EGL_ANGLE_platform_angle", extensions); + _glfw.egl.ANGLE_platform_angle_opengl = + _glfwStringInExtensionString("EGL_ANGLE_platform_angle_opengl", extensions); + _glfw.egl.ANGLE_platform_angle_d3d = + _glfwStringInExtensionString("EGL_ANGLE_platform_angle_d3d", extensions); + _glfw.egl.ANGLE_platform_angle_vulkan = + _glfwStringInExtensionString("EGL_ANGLE_platform_angle_vulkan", extensions); + _glfw.egl.ANGLE_platform_angle_metal = + _glfwStringInExtensionString("EGL_ANGLE_platform_angle_metal", extensions); + } + + if (_glfw.egl.EXT_platform_base) + { + _glfw.egl.GetPlatformDisplayEXT = (PFNEGLGETPLATFORMDISPLAYEXTPROC) + eglGetProcAddress("eglGetPlatformDisplayEXT"); + _glfw.egl.CreatePlatformWindowSurfaceEXT = (PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) + eglGetProcAddress("eglCreatePlatformWindowSurfaceEXT"); + } + + _glfw.egl.platform = _glfw.platform.getEGLPlatform(&attribs); + if (_glfw.egl.platform) + { + _glfw.egl.display = + eglGetPlatformDisplayEXT(_glfw.egl.platform, + _glfw.platform.getEGLNativeDisplay(), + attribs); + } + else + _glfw.egl.display = eglGetDisplay(_glfw.platform.getEGLNativeDisplay()); + + _glfw_free(attribs); + + if (_glfw.egl.display == EGL_NO_DISPLAY) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "EGL: Failed to get EGL display: %s", + getEGLErrorString(eglGetError())); + + _glfwTerminateEGL(); + return GLFW_FALSE; + } + + if (!eglInitialize(_glfw.egl.display, &_glfw.egl.major, &_glfw.egl.minor)) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "EGL: Failed to initialize EGL: %s", + getEGLErrorString(eglGetError())); + + _glfwTerminateEGL(); + return GLFW_FALSE; + } + + _glfw.egl.KHR_create_context = + extensionSupportedEGL("EGL_KHR_create_context"); + _glfw.egl.KHR_create_context_no_error = + extensionSupportedEGL("EGL_KHR_create_context_no_error"); + _glfw.egl.KHR_gl_colorspace = + extensionSupportedEGL("EGL_KHR_gl_colorspace"); + _glfw.egl.KHR_get_all_proc_addresses = + extensionSupportedEGL("EGL_KHR_get_all_proc_addresses"); + _glfw.egl.KHR_context_flush_control = + extensionSupportedEGL("EGL_KHR_context_flush_control"); + _glfw.egl.EXT_present_opaque = + extensionSupportedEGL("EGL_EXT_present_opaque"); + + return GLFW_TRUE; +} + +// Terminate EGL +// +void _glfwTerminateEGL(void) +{ + if (_glfw.egl.display) + { + eglTerminate(_glfw.egl.display); + _glfw.egl.display = EGL_NO_DISPLAY; + } + + if (_glfw.egl.handle) + { + _glfwPlatformFreeModule(_glfw.egl.handle); + _glfw.egl.handle = NULL; + } +} + +#define SET_ATTRIB(a, v) \ +{ \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[index++] = a; \ + attribs[index++] = v; \ +} + +// Create the OpenGL or OpenGL ES context +// +GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + EGLint attribs[40]; + EGLConfig config; + EGLContext share = NULL; + EGLNativeWindowType native; + int index = 0; + + if (!_glfw.egl.display) + { + _glfwInputError(GLFW_API_UNAVAILABLE, "EGL: API not available"); + return GLFW_FALSE; + } + + if (ctxconfig->share) + share = ctxconfig->share->context.egl.handle; + + if (!chooseEGLConfig(ctxconfig, fbconfig, &config)) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "EGL: Failed to find a suitable EGLConfig"); + return GLFW_FALSE; + } + + if (ctxconfig->client == GLFW_OPENGL_ES_API) + { + if (!eglBindAPI(EGL_OPENGL_ES_API)) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "EGL: Failed to bind OpenGL ES: %s", + getEGLErrorString(eglGetError())); + return GLFW_FALSE; + } + } + else + { + if (!eglBindAPI(EGL_OPENGL_API)) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "EGL: Failed to bind OpenGL: %s", + getEGLErrorString(eglGetError())); + return GLFW_FALSE; + } + } + + if (_glfw.egl.KHR_create_context) + { + int mask = 0, flags = 0; + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (ctxconfig->forward) + flags |= EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR; + + if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) + mask |= EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR; + else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) + mask |= EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR; + } + + if (ctxconfig->debug) + flags |= EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR; + + if (ctxconfig->robustness) + { + if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) + { + SET_ATTRIB(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, + EGL_NO_RESET_NOTIFICATION_KHR); + } + else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) + { + SET_ATTRIB(EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR, + EGL_LOSE_CONTEXT_ON_RESET_KHR); + } + + flags |= EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR; + } + + if (ctxconfig->noerror) + { + if (_glfw.egl.KHR_create_context_no_error) + SET_ATTRIB(EGL_CONTEXT_OPENGL_NO_ERROR_KHR, GLFW_TRUE); + } + + if (ctxconfig->major != 1 || ctxconfig->minor != 0) + { + SET_ATTRIB(EGL_CONTEXT_MAJOR_VERSION_KHR, ctxconfig->major); + SET_ATTRIB(EGL_CONTEXT_MINOR_VERSION_KHR, ctxconfig->minor); + } + + if (mask) + SET_ATTRIB(EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR, mask); + + if (flags) + SET_ATTRIB(EGL_CONTEXT_FLAGS_KHR, flags); + } + else + { + if (ctxconfig->client == GLFW_OPENGL_ES_API) + SET_ATTRIB(EGL_CONTEXT_CLIENT_VERSION, ctxconfig->major); + } + + if (_glfw.egl.KHR_context_flush_control) + { + if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) + { + SET_ATTRIB(EGL_CONTEXT_RELEASE_BEHAVIOR_KHR, + EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR); + } + else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) + { + SET_ATTRIB(EGL_CONTEXT_RELEASE_BEHAVIOR_KHR, + EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR); + } + } + + SET_ATTRIB(EGL_NONE, EGL_NONE); + + window->context.egl.handle = eglCreateContext(_glfw.egl.display, + config, share, attribs); + + if (window->context.egl.handle == EGL_NO_CONTEXT) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "EGL: Failed to create context: %s", + getEGLErrorString(eglGetError())); + return GLFW_FALSE; + } + + // Set up attributes for surface creation + index = 0; + + if (fbconfig->sRGB) + { + if (_glfw.egl.KHR_gl_colorspace) + SET_ATTRIB(EGL_GL_COLORSPACE_KHR, EGL_GL_COLORSPACE_SRGB_KHR); + } + + if (!fbconfig->doublebuffer) + SET_ATTRIB(EGL_RENDER_BUFFER, EGL_SINGLE_BUFFER); + + if (_glfw.egl.EXT_present_opaque) + SET_ATTRIB(EGL_PRESENT_OPAQUE_EXT, !fbconfig->transparent); + + SET_ATTRIB(EGL_NONE, EGL_NONE); + + native = _glfw.platform.getEGLNativeWindow(window); + // HACK: ANGLE does not implement eglCreatePlatformWindowSurfaceEXT + // despite reporting EGL_EXT_platform_base + if (_glfw.egl.platform && _glfw.egl.platform != EGL_PLATFORM_ANGLE_ANGLE) + { + window->context.egl.surface = + eglCreatePlatformWindowSurfaceEXT(_glfw.egl.display, config, native, attribs); + } + else + { + window->context.egl.surface = + eglCreateWindowSurface(_glfw.egl.display, config, native, attribs); + } + + if (window->context.egl.surface == EGL_NO_SURFACE) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "EGL: Failed to create window surface: %s", + getEGLErrorString(eglGetError())); + return GLFW_FALSE; + } + + window->context.egl.config = config; + + // Load the appropriate client library + if (!_glfw.egl.KHR_get_all_proc_addresses) + { + int i; + const char** sonames; + const char* es1sonames[] = + { +#if defined(_GLFW_GLESV1_LIBRARY) + _GLFW_GLESV1_LIBRARY, +#elif defined(_GLFW_WIN32) + "GLESv1_CM.dll", + "libGLES_CM.dll", +#elif defined(_GLFW_COCOA) + "libGLESv1_CM.dylib", +#elif defined(__OpenBSD__) || defined(__NetBSD__) + "libGLESv1_CM.so", +#else + "libGLESv1_CM.so.1", + "libGLES_CM.so.1", +#endif + NULL + }; + const char* es2sonames[] = + { +#if defined(_GLFW_GLESV2_LIBRARY) + _GLFW_GLESV2_LIBRARY, +#elif defined(_GLFW_WIN32) + "GLESv2.dll", + "libGLESv2.dll", +#elif defined(_GLFW_COCOA) + "libGLESv2.dylib", +#elif defined(__CYGWIN__) + "libGLESv2-2.so", +#elif defined(__OpenBSD__) || defined(__NetBSD__) + "libGLESv2.so", +#else + "libGLESv2.so.2", +#endif + NULL + }; + const char* glsonames[] = + { +#if defined(_GLFW_OPENGL_LIBRARY) + _GLFW_OPENGL_LIBRARY, +#elif defined(_GLFW_WIN32) +#elif defined(_GLFW_COCOA) +#elif defined(__OpenBSD__) || defined(__NetBSD__) + "libGL.so", +#else + "libOpenGL.so.0", + "libGL.so.1", +#endif + NULL + }; + + if (ctxconfig->client == GLFW_OPENGL_ES_API) + { + if (ctxconfig->major == 1) + sonames = es1sonames; + else + sonames = es2sonames; + } + else + sonames = glsonames; + + for (i = 0; sonames[i]; i++) + { + // HACK: Match presence of lib prefix to increase chance of finding + // a matching pair in the jungle that is Win32 EGL/GLES + if (_glfw.egl.prefix != (strncmp(sonames[i], "lib", 3) == 0)) + continue; + + window->context.egl.client = _glfwPlatformLoadModule(sonames[i]); + if (window->context.egl.client) + break; + } + + if (!window->context.egl.client) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "EGL: Failed to load client library"); + return GLFW_FALSE; + } + } + + window->context.makeCurrent = makeContextCurrentEGL; + window->context.swapBuffers = swapBuffersEGL; + window->context.swapInterval = swapIntervalEGL; + window->context.extensionSupported = extensionSupportedEGL; + window->context.getProcAddress = getProcAddressEGL; + window->context.destroy = destroyContextEGL; + + return GLFW_TRUE; +} + +#undef SET_ATTRIB + +// Returns the Visual and depth of the chosen EGLConfig +// +#if defined(_GLFW_X11) +GLFWbool _glfwChooseVisualEGL(const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig, + Visual** visual, int* depth) +{ + XVisualInfo* result; + XVisualInfo desired; + EGLConfig native; + EGLint visualID = 0, count = 0; + const long vimask = VisualScreenMask | VisualIDMask; + + if (!chooseEGLConfig(ctxconfig, fbconfig, &native)) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "EGL: Failed to find a suitable EGLConfig"); + return GLFW_FALSE; + } + + eglGetConfigAttrib(_glfw.egl.display, native, + EGL_NATIVE_VISUAL_ID, &visualID); + + desired.screen = _glfw.x11.screen; + desired.visualid = visualID; + + result = XGetVisualInfo(_glfw.x11.display, vimask, &desired, &count); + if (!result) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "EGL: Failed to retrieve Visual for EGLConfig"); + return GLFW_FALSE; + } + + *visual = result->visual; + *depth = result->depth; + + XFree(result); + return GLFW_TRUE; +} +#endif // _GLFW_X11 + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI EGLDisplay glfwGetEGLDisplay(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_DISPLAY); + return _glfw.egl.display; +} + +GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_CONTEXT); + + if (window->context.source != GLFW_EGL_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return EGL_NO_CONTEXT; + } + + return window->context.egl.handle; +} + +GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(EGL_NO_SURFACE); + + if (window->context.source != GLFW_EGL_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return EGL_NO_SURFACE; + } + + return window->context.egl.surface; +} + diff --git a/thirdparty/imgui_suite/glfw/src/glfw.rc.in b/thirdparty/imgui_suite/glfw/src/glfw.rc.in new file mode 100644 index 00000000000..ac3460a7ca1 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/glfw.rc.in @@ -0,0 +1,30 @@ + +#include + +VS_VERSION_INFO VERSIONINFO +FILEVERSION @GLFW_VERSION_MAJOR@,@GLFW_VERSION_MINOR@,@GLFW_VERSION_PATCH@,0 +PRODUCTVERSION @GLFW_VERSION_MAJOR@,@GLFW_VERSION_MINOR@,@GLFW_VERSION_PATCH@,0 +FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +FILEFLAGS 0 +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_DLL +FILESUBTYPE 0 +{ + BLOCK "StringFileInfo" + { + BLOCK "040904B0" + { + VALUE "CompanyName", "GLFW" + VALUE "FileDescription", "GLFW @GLFW_VERSION@ DLL" + VALUE "FileVersion", "@GLFW_VERSION@" + VALUE "OriginalFilename", "glfw3.dll" + VALUE "ProductName", "GLFW" + VALUE "ProductVersion", "@GLFW_VERSION@" + } + } + BLOCK "VarFileInfo" + { + VALUE "Translation", 0x409, 1200 + } +} + diff --git a/thirdparty/imgui_suite/glfw/src/glx_context.c b/thirdparty/imgui_suite/glfw/src/glx_context.c new file mode 100644 index 00000000000..3c38807f387 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/glx_context.c @@ -0,0 +1,716 @@ +//======================================================================== +// GLFW 3.4 GLX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +#ifndef GLXBadProfileARB + #define GLXBadProfileARB 13 +#endif + + +// Returns the specified attribute of the specified GLXFBConfig +// +static int getGLXFBConfigAttrib(GLXFBConfig fbconfig, int attrib) +{ + int value; + glXGetFBConfigAttrib(_glfw.x11.display, fbconfig, attrib, &value); + return value; +} + +// Return the GLXFBConfig most closely matching the specified hints +// +static GLFWbool chooseGLXFBConfig(const _GLFWfbconfig* desired, + GLXFBConfig* result) +{ + GLXFBConfig* nativeConfigs; + _GLFWfbconfig* usableConfigs; + const _GLFWfbconfig* closest; + int nativeCount, usableCount; + const char* vendor; + GLFWbool trustWindowBit = GLFW_TRUE; + + // HACK: This is a (hopefully temporary) workaround for Chromium + // (VirtualBox GL) not setting the window bit on any GLXFBConfigs + vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR); + if (vendor && strcmp(vendor, "Chromium") == 0) + trustWindowBit = GLFW_FALSE; + + nativeConfigs = + glXGetFBConfigs(_glfw.x11.display, _glfw.x11.screen, &nativeCount); + if (!nativeConfigs || !nativeCount) + { + _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: No GLXFBConfigs returned"); + return GLFW_FALSE; + } + + usableConfigs = _glfw_calloc(nativeCount, sizeof(_GLFWfbconfig)); + usableCount = 0; + + for (int i = 0; i < nativeCount; i++) + { + const GLXFBConfig n = nativeConfigs[i]; + _GLFWfbconfig* u = usableConfigs + usableCount; + + // Only consider RGBA GLXFBConfigs + if (!(getGLXFBConfigAttrib(n, GLX_RENDER_TYPE) & GLX_RGBA_BIT)) + continue; + + // Only consider window GLXFBConfigs + if (!(getGLXFBConfigAttrib(n, GLX_DRAWABLE_TYPE) & GLX_WINDOW_BIT)) + { + if (trustWindowBit) + continue; + } + + if (getGLXFBConfigAttrib(n, GLX_DOUBLEBUFFER) != desired->doublebuffer) + continue; + + if (desired->transparent) + { + XVisualInfo* vi = glXGetVisualFromFBConfig(_glfw.x11.display, n); + if (vi) + { + u->transparent = _glfwIsVisualTransparentX11(vi->visual); + XFree(vi); + } + } + + u->redBits = getGLXFBConfigAttrib(n, GLX_RED_SIZE); + u->greenBits = getGLXFBConfigAttrib(n, GLX_GREEN_SIZE); + u->blueBits = getGLXFBConfigAttrib(n, GLX_BLUE_SIZE); + + u->alphaBits = getGLXFBConfigAttrib(n, GLX_ALPHA_SIZE); + u->depthBits = getGLXFBConfigAttrib(n, GLX_DEPTH_SIZE); + u->stencilBits = getGLXFBConfigAttrib(n, GLX_STENCIL_SIZE); + + u->accumRedBits = getGLXFBConfigAttrib(n, GLX_ACCUM_RED_SIZE); + u->accumGreenBits = getGLXFBConfigAttrib(n, GLX_ACCUM_GREEN_SIZE); + u->accumBlueBits = getGLXFBConfigAttrib(n, GLX_ACCUM_BLUE_SIZE); + u->accumAlphaBits = getGLXFBConfigAttrib(n, GLX_ACCUM_ALPHA_SIZE); + + u->auxBuffers = getGLXFBConfigAttrib(n, GLX_AUX_BUFFERS); + + if (getGLXFBConfigAttrib(n, GLX_STEREO)) + u->stereo = GLFW_TRUE; + + if (_glfw.glx.ARB_multisample) + u->samples = getGLXFBConfigAttrib(n, GLX_SAMPLES); + + if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB) + u->sRGB = getGLXFBConfigAttrib(n, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB); + + u->handle = (uintptr_t) n; + usableCount++; + } + + closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); + if (closest) + *result = (GLXFBConfig) closest->handle; + + XFree(nativeConfigs); + _glfw_free(usableConfigs); + + return closest != NULL; +} + +// Create the OpenGL context using legacy API +// +static GLXContext createLegacyContextGLX(_GLFWwindow* window, + GLXFBConfig fbconfig, + GLXContext share) +{ + return glXCreateNewContext(_glfw.x11.display, + fbconfig, + GLX_RGBA_TYPE, + share, + True); +} + +static void makeContextCurrentGLX(_GLFWwindow* window) +{ + if (window) + { + if (!glXMakeCurrent(_glfw.x11.display, + window->context.glx.window, + window->context.glx.handle)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "GLX: Failed to make context current"); + return; + } + } + else + { + if (!glXMakeCurrent(_glfw.x11.display, None, NULL)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "GLX: Failed to clear current context"); + return; + } + } + + _glfwPlatformSetTls(&_glfw.contextSlot, window); +} + +static void swapBuffersGLX(_GLFWwindow* window) +{ + glXSwapBuffers(_glfw.x11.display, window->context.glx.window); +} + +static void swapIntervalGLX(int interval) +{ + _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); + + if (_glfw.glx.EXT_swap_control) + { + _glfw.glx.SwapIntervalEXT(_glfw.x11.display, + window->context.glx.window, + interval); + } + else if (_glfw.glx.MESA_swap_control) + _glfw.glx.SwapIntervalMESA(interval); + else if (_glfw.glx.SGI_swap_control) + { + if (interval > 0) + _glfw.glx.SwapIntervalSGI(interval); + } +} + +static int extensionSupportedGLX(const char* extension) +{ + const char* extensions = + glXQueryExtensionsString(_glfw.x11.display, _glfw.x11.screen); + if (extensions) + { + if (_glfwStringInExtensionString(extension, extensions)) + return GLFW_TRUE; + } + + return GLFW_FALSE; +} + +static GLFWglproc getProcAddressGLX(const char* procname) +{ + if (_glfw.glx.GetProcAddress) + return _glfw.glx.GetProcAddress((const GLubyte*) procname); + else if (_glfw.glx.GetProcAddressARB) + return _glfw.glx.GetProcAddressARB((const GLubyte*) procname); + else + { + // NOTE: glvnd provides GLX 1.4, so this can only happen with libGL + return _glfwPlatformGetModuleSymbol(_glfw.glx.handle, procname); + } +} + +static void destroyContextGLX(_GLFWwindow* window) +{ + if (window->context.glx.window) + { + glXDestroyWindow(_glfw.x11.display, window->context.glx.window); + window->context.glx.window = None; + } + + if (window->context.glx.handle) + { + glXDestroyContext(_glfw.x11.display, window->context.glx.handle); + window->context.glx.handle = NULL; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Initialize GLX +// +GLFWbool _glfwInitGLX(void) +{ + const char* sonames[] = + { +#if defined(_GLFW_GLX_LIBRARY) + _GLFW_GLX_LIBRARY, +#elif defined(__CYGWIN__) + "libGL-1.so", +#elif defined(__OpenBSD__) || defined(__NetBSD__) + "libGL.so", +#else + "libGLX.so.0", + "libGL.so.1", + "libGL.so", +#endif + NULL + }; + + if (_glfw.glx.handle) + return GLFW_TRUE; + + for (int i = 0; sonames[i]; i++) + { + _glfw.glx.handle = _glfwPlatformLoadModule(sonames[i]); + if (_glfw.glx.handle) + break; + } + + if (!_glfw.glx.handle) + { + _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: Failed to load GLX"); + return GLFW_FALSE; + } + + _glfw.glx.GetFBConfigs = (PFNGLXGETFBCONFIGSPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetFBConfigs"); + _glfw.glx.GetFBConfigAttrib = (PFNGLXGETFBCONFIGATTRIBPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetFBConfigAttrib"); + _glfw.glx.GetClientString = (PFNGLXGETCLIENTSTRINGPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetClientString"); + _glfw.glx.QueryExtension = (PFNGLXQUERYEXTENSIONPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXQueryExtension"); + _glfw.glx.QueryVersion = (PFNGLXQUERYVERSIONPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXQueryVersion"); + _glfw.glx.DestroyContext = (PFNGLXDESTROYCONTEXTPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXDestroyContext"); + _glfw.glx.MakeCurrent = (PFNGLXMAKECURRENTPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXMakeCurrent"); + _glfw.glx.SwapBuffers = (PFNGLXSWAPBUFFERSPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXSwapBuffers"); + _glfw.glx.QueryExtensionsString = (PFNGLXQUERYEXTENSIONSSTRINGPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXQueryExtensionsString"); + _glfw.glx.CreateNewContext = (PFNGLXCREATENEWCONTEXTPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXCreateNewContext"); + _glfw.glx.CreateWindow = (PFNGLXCREATEWINDOWPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXCreateWindow"); + _glfw.glx.DestroyWindow = (PFNGLXDESTROYWINDOWPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXDestroyWindow"); + _glfw.glx.GetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetVisualFromFBConfig"); + + if (!_glfw.glx.GetFBConfigs || + !_glfw.glx.GetFBConfigAttrib || + !_glfw.glx.GetClientString || + !_glfw.glx.QueryExtension || + !_glfw.glx.QueryVersion || + !_glfw.glx.DestroyContext || + !_glfw.glx.MakeCurrent || + !_glfw.glx.SwapBuffers || + !_glfw.glx.QueryExtensionsString || + !_glfw.glx.CreateNewContext || + !_glfw.glx.CreateWindow || + !_glfw.glx.DestroyWindow || + !_glfw.glx.GetVisualFromFBConfig) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "GLX: Failed to load required entry points"); + return GLFW_FALSE; + } + + // NOTE: Unlike GLX 1.3 entry points these are not required to be present + _glfw.glx.GetProcAddress = (PFNGLXGETPROCADDRESSPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddress"); + _glfw.glx.GetProcAddressARB = (PFNGLXGETPROCADDRESSPROC) + _glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddressARB"); + + if (!glXQueryExtension(_glfw.x11.display, + &_glfw.glx.errorBase, + &_glfw.glx.eventBase)) + { + _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: GLX extension not found"); + return GLFW_FALSE; + } + + if (!glXQueryVersion(_glfw.x11.display, &_glfw.glx.major, &_glfw.glx.minor)) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "GLX: Failed to query GLX version"); + return GLFW_FALSE; + } + + if (_glfw.glx.major == 1 && _glfw.glx.minor < 3) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "GLX: GLX version 1.3 is required"); + return GLFW_FALSE; + } + + if (extensionSupportedGLX("GLX_EXT_swap_control")) + { + _glfw.glx.SwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC) + getProcAddressGLX("glXSwapIntervalEXT"); + + if (_glfw.glx.SwapIntervalEXT) + _glfw.glx.EXT_swap_control = GLFW_TRUE; + } + + if (extensionSupportedGLX("GLX_SGI_swap_control")) + { + _glfw.glx.SwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC) + getProcAddressGLX("glXSwapIntervalSGI"); + + if (_glfw.glx.SwapIntervalSGI) + _glfw.glx.SGI_swap_control = GLFW_TRUE; + } + + if (extensionSupportedGLX("GLX_MESA_swap_control")) + { + _glfw.glx.SwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC) + getProcAddressGLX("glXSwapIntervalMESA"); + + if (_glfw.glx.SwapIntervalMESA) + _glfw.glx.MESA_swap_control = GLFW_TRUE; + } + + if (extensionSupportedGLX("GLX_ARB_multisample")) + _glfw.glx.ARB_multisample = GLFW_TRUE; + + if (extensionSupportedGLX("GLX_ARB_framebuffer_sRGB")) + _glfw.glx.ARB_framebuffer_sRGB = GLFW_TRUE; + + if (extensionSupportedGLX("GLX_EXT_framebuffer_sRGB")) + _glfw.glx.EXT_framebuffer_sRGB = GLFW_TRUE; + + if (extensionSupportedGLX("GLX_ARB_create_context")) + { + _glfw.glx.CreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC) + getProcAddressGLX("glXCreateContextAttribsARB"); + + if (_glfw.glx.CreateContextAttribsARB) + _glfw.glx.ARB_create_context = GLFW_TRUE; + } + + if (extensionSupportedGLX("GLX_ARB_create_context_robustness")) + _glfw.glx.ARB_create_context_robustness = GLFW_TRUE; + + if (extensionSupportedGLX("GLX_ARB_create_context_profile")) + _glfw.glx.ARB_create_context_profile = GLFW_TRUE; + + if (extensionSupportedGLX("GLX_EXT_create_context_es2_profile")) + _glfw.glx.EXT_create_context_es2_profile = GLFW_TRUE; + + if (extensionSupportedGLX("GLX_ARB_create_context_no_error")) + _glfw.glx.ARB_create_context_no_error = GLFW_TRUE; + + if (extensionSupportedGLX("GLX_ARB_context_flush_control")) + _glfw.glx.ARB_context_flush_control = GLFW_TRUE; + + return GLFW_TRUE; +} + +// Terminate GLX +// +void _glfwTerminateGLX(void) +{ + // NOTE: This function must not call any X11 functions, as it is called + // after XCloseDisplay (see _glfwTerminateX11 for details) + + if (_glfw.glx.handle) + { + _glfwPlatformFreeModule(_glfw.glx.handle); + _glfw.glx.handle = NULL; + } +} + +#define SET_ATTRIB(a, v) \ +{ \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[index++] = a; \ + attribs[index++] = v; \ +} + +// Create the OpenGL or OpenGL ES context +// +GLFWbool _glfwCreateContextGLX(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + int attribs[40]; + GLXFBConfig native = NULL; + GLXContext share = NULL; + + if (ctxconfig->share) + share = ctxconfig->share->context.glx.handle; + + if (!chooseGLXFBConfig(fbconfig, &native)) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "GLX: Failed to find a suitable GLXFBConfig"); + return GLFW_FALSE; + } + + if (ctxconfig->client == GLFW_OPENGL_ES_API) + { + if (!_glfw.glx.ARB_create_context || + !_glfw.glx.ARB_create_context_profile || + !_glfw.glx.EXT_create_context_es2_profile) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "GLX: OpenGL ES requested but GLX_EXT_create_context_es2_profile is unavailable"); + return GLFW_FALSE; + } + } + + if (ctxconfig->forward) + { + if (!_glfw.glx.ARB_create_context) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "GLX: Forward compatibility requested but GLX_ARB_create_context_profile is unavailable"); + return GLFW_FALSE; + } + } + + if (ctxconfig->profile) + { + if (!_glfw.glx.ARB_create_context || + !_glfw.glx.ARB_create_context_profile) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "GLX: An OpenGL profile requested but GLX_ARB_create_context_profile is unavailable"); + return GLFW_FALSE; + } + } + + _glfwGrabErrorHandlerX11(); + + if (_glfw.glx.ARB_create_context) + { + int index = 0, mask = 0, flags = 0; + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (ctxconfig->forward) + flags |= GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; + + if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) + mask |= GLX_CONTEXT_CORE_PROFILE_BIT_ARB; + else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) + mask |= GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; + } + else + mask |= GLX_CONTEXT_ES2_PROFILE_BIT_EXT; + + if (ctxconfig->debug) + flags |= GLX_CONTEXT_DEBUG_BIT_ARB; + + if (ctxconfig->robustness) + { + if (_glfw.glx.ARB_create_context_robustness) + { + if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) + { + SET_ATTRIB(GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, + GLX_NO_RESET_NOTIFICATION_ARB); + } + else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) + { + SET_ATTRIB(GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, + GLX_LOSE_CONTEXT_ON_RESET_ARB); + } + + flags |= GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB; + } + } + + if (ctxconfig->release) + { + if (_glfw.glx.ARB_context_flush_control) + { + if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) + { + SET_ATTRIB(GLX_CONTEXT_RELEASE_BEHAVIOR_ARB, + GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); + } + else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) + { + SET_ATTRIB(GLX_CONTEXT_RELEASE_BEHAVIOR_ARB, + GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); + } + } + } + + if (ctxconfig->noerror) + { + if (_glfw.glx.ARB_create_context_no_error) + SET_ATTRIB(GLX_CONTEXT_OPENGL_NO_ERROR_ARB, GLFW_TRUE); + } + + // NOTE: Only request an explicitly versioned context when necessary, as + // explicitly requesting version 1.0 does not always return the + // highest version supported by the driver + if (ctxconfig->major != 1 || ctxconfig->minor != 0) + { + SET_ATTRIB(GLX_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); + SET_ATTRIB(GLX_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); + } + + if (mask) + SET_ATTRIB(GLX_CONTEXT_PROFILE_MASK_ARB, mask); + + if (flags) + SET_ATTRIB(GLX_CONTEXT_FLAGS_ARB, flags); + + SET_ATTRIB(None, None); + + window->context.glx.handle = + _glfw.glx.CreateContextAttribsARB(_glfw.x11.display, + native, + share, + True, + attribs); + + // HACK: This is a fallback for broken versions of the Mesa + // implementation of GLX_ARB_create_context_profile that fail + // default 1.0 context creation with a GLXBadProfileARB error in + // violation of the extension spec + if (!window->context.glx.handle) + { + if (_glfw.x11.errorCode == _glfw.glx.errorBase + GLXBadProfileARB && + ctxconfig->client == GLFW_OPENGL_API && + ctxconfig->profile == GLFW_OPENGL_ANY_PROFILE && + ctxconfig->forward == GLFW_FALSE) + { + window->context.glx.handle = + createLegacyContextGLX(window, native, share); + } + } + } + else + { + window->context.glx.handle = + createLegacyContextGLX(window, native, share); + } + + _glfwReleaseErrorHandlerX11(); + + if (!window->context.glx.handle) + { + _glfwInputErrorX11(GLFW_VERSION_UNAVAILABLE, "GLX: Failed to create context"); + return GLFW_FALSE; + } + + window->context.glx.window = + glXCreateWindow(_glfw.x11.display, native, window->x11.handle, NULL); + if (!window->context.glx.window) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "GLX: Failed to create window"); + return GLFW_FALSE; + } + + window->context.makeCurrent = makeContextCurrentGLX; + window->context.swapBuffers = swapBuffersGLX; + window->context.swapInterval = swapIntervalGLX; + window->context.extensionSupported = extensionSupportedGLX; + window->context.getProcAddress = getProcAddressGLX; + window->context.destroy = destroyContextGLX; + + return GLFW_TRUE; +} + +#undef SET_ATTRIB + +// Returns the Visual and depth of the chosen GLXFBConfig +// +GLFWbool _glfwChooseVisualGLX(const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig, + Visual** visual, int* depth) +{ + GLXFBConfig native; + XVisualInfo* result; + + if (!chooseGLXFBConfig(fbconfig, &native)) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "GLX: Failed to find a suitable GLXFBConfig"); + return GLFW_FALSE; + } + + result = glXGetVisualFromFBConfig(_glfw.x11.display, native); + if (!result) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "GLX: Failed to retrieve Visual for GLXFBConfig"); + return GLFW_FALSE; + } + + *visual = result->visual; + *depth = result->depth; + + XFree(result); + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (_glfw.platform.platformID != GLFW_PLATFORM_X11) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "GLX: Platform not initialized"); + return NULL; + } + + if (window->context.source != GLFW_NATIVE_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return NULL; + } + + return window->context.glx.handle; +} + +GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(None); + + if (_glfw.platform.platformID != GLFW_PLATFORM_X11) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "GLX: Platform not initialized"); + return None; + } + + if (window->context.source != GLFW_NATIVE_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return None; + } + + return window->context.glx.window; +} + diff --git a/thirdparty/imgui_suite/glfw/src/init.c b/thirdparty/imgui_suite/glfw/src/init.c new file mode 100644 index 00000000000..d07a492ec66 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/init.c @@ -0,0 +1,545 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2018 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include + + +// NOTE: The global variables below comprise all mutable global data in GLFW +// Any other mutable global variable is a bug + +// This contains all mutable state shared between compilation units of GLFW +// +_GLFWlibrary _glfw = { GLFW_FALSE }; + +// These are outside of _glfw so they can be used before initialization and +// after termination without special handling when _glfw is cleared to zero +// +static _GLFWerror _glfwMainThreadError; +static GLFWerrorfun _glfwErrorCallback; +static GLFWallocator _glfwInitAllocator; +static _GLFWinitconfig _glfwInitHints = +{ + GLFW_TRUE, // hat buttons + GLFW_ANGLE_PLATFORM_TYPE_NONE, // ANGLE backend + GLFW_ANY_PLATFORM, // preferred platform + NULL, // vkGetInstanceProcAddr function + { + GLFW_TRUE, // macOS menu bar + GLFW_TRUE // macOS bundle chdir + }, + { + GLFW_TRUE, // X11 XCB Vulkan surface + }, +}; + +// The allocation function used when no custom allocator is set +// +static void* defaultAllocate(size_t size, void* user) +{ + return malloc(size); +} + +// The deallocation function used when no custom allocator is set +// +static void defaultDeallocate(void* block, void* user) +{ + free(block); +} + +// The reallocation function used when no custom allocator is set +// +static void* defaultReallocate(void* block, size_t size, void* user) +{ + return realloc(block, size); +} + +// Terminate the library +// +static void terminate(void) +{ + int i; + + memset(&_glfw.callbacks, 0, sizeof(_glfw.callbacks)); + + while (_glfw.windowListHead) + glfwDestroyWindow((GLFWwindow*) _glfw.windowListHead); + + while (_glfw.cursorListHead) + glfwDestroyCursor((GLFWcursor*) _glfw.cursorListHead); + + for (i = 0; i < _glfw.monitorCount; i++) + { + _GLFWmonitor* monitor = _glfw.monitors[i]; + if (monitor->originalRamp.size) + _glfw.platform.setGammaRamp(monitor, &monitor->originalRamp); + _glfwFreeMonitor(monitor); + } + + _glfw_free(_glfw.monitors); + _glfw.monitors = NULL; + _glfw.monitorCount = 0; + + _glfw_free(_glfw.mappings); + _glfw.mappings = NULL; + _glfw.mappingCount = 0; + + _glfwTerminateVulkan(); + _glfw.platform.terminateJoysticks(); + _glfw.platform.terminate(); + + _glfw.initialized = GLFW_FALSE; + + while (_glfw.errorListHead) + { + _GLFWerror* error = _glfw.errorListHead; + _glfw.errorListHead = error->next; + _glfw_free(error); + } + + _glfwPlatformDestroyTls(&_glfw.contextSlot); + _glfwPlatformDestroyTls(&_glfw.errorSlot); + _glfwPlatformDestroyMutex(&_glfw.errorLock); + + memset(&_glfw, 0, sizeof(_glfw)); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Encode a Unicode code point to a UTF-8 stream +// Based on cutef8 by Jeff Bezanson (Public Domain) +// +size_t _glfwEncodeUTF8(char* s, uint32_t codepoint) +{ + size_t count = 0; + + if (codepoint < 0x80) + s[count++] = (char) codepoint; + else if (codepoint < 0x800) + { + s[count++] = (codepoint >> 6) | 0xc0; + s[count++] = (codepoint & 0x3f) | 0x80; + } + else if (codepoint < 0x10000) + { + s[count++] = (codepoint >> 12) | 0xe0; + s[count++] = ((codepoint >> 6) & 0x3f) | 0x80; + s[count++] = (codepoint & 0x3f) | 0x80; + } + else if (codepoint < 0x110000) + { + s[count++] = (codepoint >> 18) | 0xf0; + s[count++] = ((codepoint >> 12) & 0x3f) | 0x80; + s[count++] = ((codepoint >> 6) & 0x3f) | 0x80; + s[count++] = (codepoint & 0x3f) | 0x80; + } + + return count; +} + +// Splits and translates a text/uri-list into separate file paths +// NOTE: This function destroys the provided string +// +char** _glfwParseUriList(char* text, int* count) +{ + const char* prefix = "file://"; + char** paths = NULL; + char* line; + + *count = 0; + + while ((line = strtok(text, "\r\n"))) + { + char* path; + + text = NULL; + + if (line[0] == '#') + continue; + + if (strncmp(line, prefix, strlen(prefix)) == 0) + { + line += strlen(prefix); + // TODO: Validate hostname + while (*line != '/') + line++; + } + + (*count)++; + + path = _glfw_calloc(strlen(line) + 1, 1); + paths = _glfw_realloc(paths, *count * sizeof(char*)); + paths[*count - 1] = path; + + while (*line) + { + if (line[0] == '%' && line[1] && line[2]) + { + const char digits[3] = { line[1], line[2], '\0' }; + *path = (char) strtol(digits, NULL, 16); + line += 2; + } + else + *path = *line; + + path++; + line++; + } + } + + return paths; +} + +char* _glfw_strdup(const char* source) +{ + const size_t length = strlen(source); + char* result = _glfw_calloc(length + 1, 1); + strcpy(result, source); + return result; +} + +int _glfw_min(int a, int b) +{ + return a < b ? a : b; +} + +int _glfw_max(int a, int b) +{ + return a > b ? a : b; +} + +float _glfw_fminf(float a, float b) +{ + if (a != a) + return b; + else if (b != b) + return a; + else if (a < b) + return a; + else + return b; +} + +float _glfw_fmaxf(float a, float b) +{ + if (a != a) + return b; + else if (b != b) + return a; + else if (a > b) + return a; + else + return b; +} + +void* _glfw_calloc(size_t count, size_t size) +{ + if (count && size) + { + void* block; + + if (count > SIZE_MAX / size) + { + _glfwInputError(GLFW_INVALID_VALUE, "Allocation size overflow"); + return NULL; + } + + block = _glfw.allocator.allocate(count * size, _glfw.allocator.user); + if (block) + return memset(block, 0, count * size); + else + { + _glfwInputError(GLFW_OUT_OF_MEMORY, NULL); + return NULL; + } + } + else + return NULL; +} + +void* _glfw_realloc(void* block, size_t size) +{ + if (block && size) + { + void* resized = _glfw.allocator.reallocate(block, size, _glfw.allocator.user); + if (resized) + return resized; + else + { + _glfwInputError(GLFW_OUT_OF_MEMORY, NULL); + return NULL; + } + } + else if (block) + { + _glfw_free(block); + return NULL; + } + else + return _glfw_calloc(1, size); +} + +void _glfw_free(void* block) +{ + if (block) + _glfw.allocator.deallocate(block, _glfw.allocator.user); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +// Notifies shared code of an error +// +void _glfwInputError(int code, const char* format, ...) +{ + _GLFWerror* error; + char description[_GLFW_MESSAGE_SIZE]; + + if (format) + { + va_list vl; + + va_start(vl, format); + vsnprintf(description, sizeof(description), format, vl); + va_end(vl); + + description[sizeof(description) - 1] = '\0'; + } + else + { + if (code == GLFW_NOT_INITIALIZED) + strcpy(description, "The GLFW library is not initialized"); + else if (code == GLFW_NO_CURRENT_CONTEXT) + strcpy(description, "There is no current context"); + else if (code == GLFW_INVALID_ENUM) + strcpy(description, "Invalid argument for enum parameter"); + else if (code == GLFW_INVALID_VALUE) + strcpy(description, "Invalid value for parameter"); + else if (code == GLFW_OUT_OF_MEMORY) + strcpy(description, "Out of memory"); + else if (code == GLFW_API_UNAVAILABLE) + strcpy(description, "The requested API is unavailable"); + else if (code == GLFW_VERSION_UNAVAILABLE) + strcpy(description, "The requested API version is unavailable"); + else if (code == GLFW_PLATFORM_ERROR) + strcpy(description, "A platform-specific error occurred"); + else if (code == GLFW_FORMAT_UNAVAILABLE) + strcpy(description, "The requested format is unavailable"); + else if (code == GLFW_NO_WINDOW_CONTEXT) + strcpy(description, "The specified window has no context"); + else if (code == GLFW_CURSOR_UNAVAILABLE) + strcpy(description, "The specified cursor shape is unavailable"); + else if (code == GLFW_FEATURE_UNAVAILABLE) + strcpy(description, "The requested feature cannot be implemented for this platform"); + else if (code == GLFW_FEATURE_UNIMPLEMENTED) + strcpy(description, "The requested feature has not yet been implemented for this platform"); + else if (code == GLFW_PLATFORM_UNAVAILABLE) + strcpy(description, "The requested platform is unavailable"); + else + strcpy(description, "ERROR: UNKNOWN GLFW ERROR"); + } + + if (_glfw.initialized) + { + error = _glfwPlatformGetTls(&_glfw.errorSlot); + if (!error) + { + error = _glfw_calloc(1, sizeof(_GLFWerror)); + _glfwPlatformSetTls(&_glfw.errorSlot, error); + _glfwPlatformLockMutex(&_glfw.errorLock); + error->next = _glfw.errorListHead; + _glfw.errorListHead = error; + _glfwPlatformUnlockMutex(&_glfw.errorLock); + } + } + else + error = &_glfwMainThreadError; + + error->code = code; + strcpy(error->description, description); + + if (_glfwErrorCallback) + _glfwErrorCallback(code, description); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI int glfwInit(void) +{ + if (_glfw.initialized) + return GLFW_TRUE; + + memset(&_glfw, 0, sizeof(_glfw)); + _glfw.hints.init = _glfwInitHints; + + _glfw.allocator = _glfwInitAllocator; + if (!_glfw.allocator.allocate) + { + _glfw.allocator.allocate = defaultAllocate; + _glfw.allocator.reallocate = defaultReallocate; + _glfw.allocator.deallocate = defaultDeallocate; + } + + if (!_glfwSelectPlatform(_glfw.hints.init.platformID, &_glfw.platform)) + return GLFW_FALSE; + + if (!_glfw.platform.init()) + { + terminate(); + return GLFW_FALSE; + } + + if (!_glfwPlatformCreateMutex(&_glfw.errorLock) || + !_glfwPlatformCreateTls(&_glfw.errorSlot) || + !_glfwPlatformCreateTls(&_glfw.contextSlot)) + { + terminate(); + return GLFW_FALSE; + } + + _glfwPlatformSetTls(&_glfw.errorSlot, &_glfwMainThreadError); + + _glfwInitGamepadMappings(); + + _glfwPlatformInitTimer(); + _glfw.timer.offset = _glfwPlatformGetTimerValue(); + + _glfw.initialized = GLFW_TRUE; + + glfwDefaultWindowHints(); + return GLFW_TRUE; +} + +GLFWAPI void glfwTerminate(void) +{ + if (!_glfw.initialized) + return; + + terminate(); +} + +GLFWAPI void glfwInitHint(int hint, int value) +{ + switch (hint) + { + case GLFW_JOYSTICK_HAT_BUTTONS: + _glfwInitHints.hatButtons = value; + return; + case GLFW_ANGLE_PLATFORM_TYPE: + _glfwInitHints.angleType = value; + return; + case GLFW_PLATFORM: + _glfwInitHints.platformID = value; + return; + case GLFW_COCOA_CHDIR_RESOURCES: + _glfwInitHints.ns.chdir = value; + return; + case GLFW_COCOA_MENUBAR: + _glfwInitHints.ns.menubar = value; + return; + case GLFW_X11_XCB_VULKAN_SURFACE: + _glfwInitHints.x11.xcbVulkanSurface = value; + return; + } + + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid init hint 0x%08X", hint); +} + +GLFWAPI void glfwInitAllocator(const GLFWallocator* allocator) +{ + if (allocator) + { + if (allocator->allocate && allocator->reallocate && allocator->deallocate) + _glfwInitAllocator = *allocator; + else + _glfwInputError(GLFW_INVALID_VALUE, "Missing function in allocator"); + } + else + memset(&_glfwInitAllocator, 0, sizeof(GLFWallocator)); +} + +GLFWAPI void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader) +{ + _glfwInitHints.vulkanLoader = loader; +} + +GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev) +{ + if (major != NULL) + *major = GLFW_VERSION_MAJOR; + if (minor != NULL) + *minor = GLFW_VERSION_MINOR; + if (rev != NULL) + *rev = GLFW_VERSION_REVISION; +} + +GLFWAPI int glfwGetError(const char** description) +{ + _GLFWerror* error; + int code = GLFW_NO_ERROR; + + if (description) + *description = NULL; + + if (_glfw.initialized) + error = _glfwPlatformGetTls(&_glfw.errorSlot); + else + error = &_glfwMainThreadError; + + if (error) + { + code = error->code; + error->code = GLFW_NO_ERROR; + if (description && code) + *description = error->description; + } + + return code; +} + +GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun) +{ + _GLFW_SWAP(GLFWerrorfun, _glfwErrorCallback, cbfun); + return cbfun; +} + diff --git a/thirdparty/imgui_suite/glfw/src/input.c b/thirdparty/imgui_suite/glfw/src/input.c new file mode 100644 index 00000000000..8726aa7ebc3 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/input.c @@ -0,0 +1,1504 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" +#include "mappings.h" + +#include +#include +#include +#include +#include + +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + +// Internal key state used for sticky keys +#define _GLFW_STICK 3 + +// Internal constants for gamepad mapping source types +#define _GLFW_JOYSTICK_AXIS 1 +#define _GLFW_JOYSTICK_BUTTON 2 +#define _GLFW_JOYSTICK_HATBIT 3 + +#define GLFW_MOD_MASK (GLFW_MOD_SHIFT | \ + GLFW_MOD_CONTROL | \ + GLFW_MOD_ALT | \ + GLFW_MOD_SUPER | \ + GLFW_MOD_CAPS_LOCK | \ + GLFW_MOD_NUM_LOCK) + +// Initializes the platform joystick API if it has not been already +// +static GLFWbool initJoysticks(void) +{ + if (!_glfw.joysticksInitialized) + { + if (!_glfw.platform.initJoysticks()) + { + _glfw.platform.terminateJoysticks(); + return GLFW_FALSE; + } + } + + return _glfw.joysticksInitialized = GLFW_TRUE; +} + +// Finds a mapping based on joystick GUID +// +static _GLFWmapping* findMapping(const char* guid) +{ + int i; + + for (i = 0; i < _glfw.mappingCount; i++) + { + if (strcmp(_glfw.mappings[i].guid, guid) == 0) + return _glfw.mappings + i; + } + + return NULL; +} + +// Checks whether a gamepad mapping element is present in the hardware +// +static GLFWbool isValidElementForJoystick(const _GLFWmapelement* e, + const _GLFWjoystick* js) +{ + if (e->type == _GLFW_JOYSTICK_HATBIT && (e->index >> 4) >= js->hatCount) + return GLFW_FALSE; + else if (e->type == _GLFW_JOYSTICK_BUTTON && e->index >= js->buttonCount) + return GLFW_FALSE; + else if (e->type == _GLFW_JOYSTICK_AXIS && e->index >= js->axisCount) + return GLFW_FALSE; + + return GLFW_TRUE; +} + +// Finds a mapping based on joystick GUID and verifies element indices +// +static _GLFWmapping* findValidMapping(const _GLFWjoystick* js) +{ + _GLFWmapping* mapping = findMapping(js->guid); + if (mapping) + { + int i; + + for (i = 0; i <= GLFW_GAMEPAD_BUTTON_LAST; i++) + { + if (!isValidElementForJoystick(mapping->buttons + i, js)) + return NULL; + } + + for (i = 0; i <= GLFW_GAMEPAD_AXIS_LAST; i++) + { + if (!isValidElementForJoystick(mapping->axes + i, js)) + return NULL; + } + } + + return mapping; +} + +// Parses an SDL_GameControllerDB line and adds it to the mapping list +// +static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string) +{ + const char* c = string; + size_t i, length; + struct + { + const char* name; + _GLFWmapelement* element; + } fields[] = + { + { "platform", NULL }, + { "a", mapping->buttons + GLFW_GAMEPAD_BUTTON_A }, + { "b", mapping->buttons + GLFW_GAMEPAD_BUTTON_B }, + { "x", mapping->buttons + GLFW_GAMEPAD_BUTTON_X }, + { "y", mapping->buttons + GLFW_GAMEPAD_BUTTON_Y }, + { "back", mapping->buttons + GLFW_GAMEPAD_BUTTON_BACK }, + { "start", mapping->buttons + GLFW_GAMEPAD_BUTTON_START }, + { "guide", mapping->buttons + GLFW_GAMEPAD_BUTTON_GUIDE }, + { "leftshoulder", mapping->buttons + GLFW_GAMEPAD_BUTTON_LEFT_BUMPER }, + { "rightshoulder", mapping->buttons + GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER }, + { "leftstick", mapping->buttons + GLFW_GAMEPAD_BUTTON_LEFT_THUMB }, + { "rightstick", mapping->buttons + GLFW_GAMEPAD_BUTTON_RIGHT_THUMB }, + { "dpup", mapping->buttons + GLFW_GAMEPAD_BUTTON_DPAD_UP }, + { "dpright", mapping->buttons + GLFW_GAMEPAD_BUTTON_DPAD_RIGHT }, + { "dpdown", mapping->buttons + GLFW_GAMEPAD_BUTTON_DPAD_DOWN }, + { "dpleft", mapping->buttons + GLFW_GAMEPAD_BUTTON_DPAD_LEFT }, + { "lefttrigger", mapping->axes + GLFW_GAMEPAD_AXIS_LEFT_TRIGGER }, + { "righttrigger", mapping->axes + GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER }, + { "leftx", mapping->axes + GLFW_GAMEPAD_AXIS_LEFT_X }, + { "lefty", mapping->axes + GLFW_GAMEPAD_AXIS_LEFT_Y }, + { "rightx", mapping->axes + GLFW_GAMEPAD_AXIS_RIGHT_X }, + { "righty", mapping->axes + GLFW_GAMEPAD_AXIS_RIGHT_Y } + }; + + length = strcspn(c, ","); + if (length != 32 || c[length] != ',') + { + _glfwInputError(GLFW_INVALID_VALUE, NULL); + return GLFW_FALSE; + } + + memcpy(mapping->guid, c, length); + c += length + 1; + + length = strcspn(c, ","); + if (length >= sizeof(mapping->name) || c[length] != ',') + { + _glfwInputError(GLFW_INVALID_VALUE, NULL); + return GLFW_FALSE; + } + + memcpy(mapping->name, c, length); + c += length + 1; + + while (*c) + { + // TODO: Implement output modifiers + if (*c == '+' || *c == '-') + return GLFW_FALSE; + + for (i = 0; i < sizeof(fields) / sizeof(fields[0]); i++) + { + length = strlen(fields[i].name); + if (strncmp(c, fields[i].name, length) != 0 || c[length] != ':') + continue; + + c += length + 1; + + if (fields[i].element) + { + _GLFWmapelement* e = fields[i].element; + int8_t minimum = -1; + int8_t maximum = 1; + + if (*c == '+') + { + minimum = 0; + c += 1; + } + else if (*c == '-') + { + maximum = 0; + c += 1; + } + + if (*c == 'a') + e->type = _GLFW_JOYSTICK_AXIS; + else if (*c == 'b') + e->type = _GLFW_JOYSTICK_BUTTON; + else if (*c == 'h') + e->type = _GLFW_JOYSTICK_HATBIT; + else + break; + + if (e->type == _GLFW_JOYSTICK_HATBIT) + { + const unsigned long hat = strtoul(c + 1, (char**) &c, 10); + const unsigned long bit = strtoul(c + 1, (char**) &c, 10); + e->index = (uint8_t) ((hat << 4) | bit); + } + else + e->index = (uint8_t) strtoul(c + 1, (char**) &c, 10); + + if (e->type == _GLFW_JOYSTICK_AXIS) + { + e->axisScale = 2 / (maximum - minimum); + e->axisOffset = -(maximum + minimum); + + if (*c == '~') + { + e->axisScale = -e->axisScale; + e->axisOffset = -e->axisOffset; + } + } + } + else + { + const char* name = _glfw.platform.getMappingName(); + length = strlen(name); + if (strncmp(c, name, length) != 0) + return GLFW_FALSE; + } + + break; + } + + c += strcspn(c, ","); + c += strspn(c, ","); + } + + for (i = 0; i < 32; i++) + { + if (mapping->guid[i] >= 'A' && mapping->guid[i] <= 'F') + mapping->guid[i] += 'a' - 'A'; + } + + _glfw.platform.updateGamepadGUID(mapping->guid); + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +// Notifies shared code of a physical key event +// +void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods) +{ + assert(window != NULL); + assert(key >= 0 || key == GLFW_KEY_UNKNOWN); + assert(key <= GLFW_KEY_LAST); + assert(action == GLFW_PRESS || action == GLFW_RELEASE); + assert(mods == (mods & GLFW_MOD_MASK)); + + if (key >= 0 && key <= GLFW_KEY_LAST) + { + GLFWbool repeated = GLFW_FALSE; + + if (action == GLFW_RELEASE && window->keys[key] == GLFW_RELEASE) + return; + + if (action == GLFW_PRESS && window->keys[key] == GLFW_PRESS) + repeated = GLFW_TRUE; + + if (action == GLFW_RELEASE && window->stickyKeys) + window->keys[key] = _GLFW_STICK; + else + window->keys[key] = (char) action; + + if (repeated) + action = GLFW_REPEAT; + } + + if (!window->lockKeyMods) + mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); + + if (window->callbacks.key) + window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods); +} + +// Notifies shared code of a Unicode codepoint input event +// The 'plain' parameter determines whether to emit a regular character event +// +void _glfwInputChar(_GLFWwindow* window, uint32_t codepoint, int mods, GLFWbool plain) +{ + assert(window != NULL); + assert(mods == (mods & GLFW_MOD_MASK)); + assert(plain == GLFW_TRUE || plain == GLFW_FALSE); + + if (codepoint < 32 || (codepoint > 126 && codepoint < 160)) + return; + + if (!window->lockKeyMods) + mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); + + if (window->callbacks.charmods) + window->callbacks.charmods((GLFWwindow*) window, codepoint, mods); + + if (plain) + { + if (window->callbacks.character) + window->callbacks.character((GLFWwindow*) window, codepoint); + } +} + +// Notifies shared code of a scroll event +// +void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset) +{ + assert(window != NULL); + assert(xoffset > -FLT_MAX); + assert(xoffset < FLT_MAX); + assert(yoffset > -FLT_MAX); + assert(yoffset < FLT_MAX); + + if (window->callbacks.scroll) + window->callbacks.scroll((GLFWwindow*) window, xoffset, yoffset); +} + +// Notifies shared code of a mouse button click event +// +void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods) +{ + assert(window != NULL); + assert(button >= 0); + assert(button <= GLFW_MOUSE_BUTTON_LAST); + assert(action == GLFW_PRESS || action == GLFW_RELEASE); + assert(mods == (mods & GLFW_MOD_MASK)); + + if (button < 0 || button > GLFW_MOUSE_BUTTON_LAST) + return; + + if (!window->lockKeyMods) + mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); + + if (action == GLFW_RELEASE && window->stickyMouseButtons) + window->mouseButtons[button] = _GLFW_STICK; + else + window->mouseButtons[button] = (char) action; + + if (window->callbacks.mouseButton) + window->callbacks.mouseButton((GLFWwindow*) window, button, action, mods); +} + +// Notifies shared code of a cursor motion event +// The position is specified in content area relative screen coordinates +// +void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos) +{ + assert(window != NULL); + assert(xpos > -FLT_MAX); + assert(xpos < FLT_MAX); + assert(ypos > -FLT_MAX); + assert(ypos < FLT_MAX); + + if (window->virtualCursorPosX == xpos && window->virtualCursorPosY == ypos) + return; + + window->virtualCursorPosX = xpos; + window->virtualCursorPosY = ypos; + + if (window->callbacks.cursorPos) + window->callbacks.cursorPos((GLFWwindow*) window, xpos, ypos); +} + +// Notifies shared code of a cursor enter/leave event +// +void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered) +{ + assert(window != NULL); + assert(entered == GLFW_TRUE || entered == GLFW_FALSE); + + if (window->callbacks.cursorEnter) + window->callbacks.cursorEnter((GLFWwindow*) window, entered); +} + +// Notifies shared code of files or directories dropped on a window +// +void _glfwInputDrop(_GLFWwindow* window, int count, const char** paths) +{ + assert(window != NULL); + assert(count > 0); + assert(paths != NULL); + + if (window->callbacks.drop) + window->callbacks.drop((GLFWwindow*) window, count, paths); +} + +// Notifies shared code of a joystick connection or disconnection +// +void _glfwInputJoystick(_GLFWjoystick* js, int event) +{ + assert(js != NULL); + assert(event == GLFW_CONNECTED || event == GLFW_DISCONNECTED); + + if (event == GLFW_CONNECTED) + js->connected = GLFW_TRUE; + else if (event == GLFW_DISCONNECTED) + js->connected = GLFW_FALSE; + + if (_glfw.callbacks.joystick) + _glfw.callbacks.joystick((int) (js - _glfw.joysticks), event); +} + +// Notifies shared code of the new value of a joystick axis +// +void _glfwInputJoystickAxis(_GLFWjoystick* js, int axis, float value) +{ + assert(js != NULL); + assert(axis >= 0); + assert(axis < js->axisCount); + + js->axes[axis] = value; +} + +// Notifies shared code of the new value of a joystick button +// +void _glfwInputJoystickButton(_GLFWjoystick* js, int button, char value) +{ + assert(js != NULL); + assert(button >= 0); + assert(button < js->buttonCount); + assert(value == GLFW_PRESS || value == GLFW_RELEASE); + + js->buttons[button] = value; +} + +// Notifies shared code of the new value of a joystick hat +// +void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value) +{ + int base; + + assert(js != NULL); + assert(hat >= 0); + assert(hat < js->hatCount); + + // Valid hat values only use the least significant nibble and have at most two bits + // set, which can be considered adjacent plus an arbitrary rotation within the nibble + assert((value & 0xf0) == 0); + assert((value & ((value << 2) | (value >> 2))) == 0); + + base = js->buttonCount + hat * 4; + + js->buttons[base + 0] = (value & 0x01) ? GLFW_PRESS : GLFW_RELEASE; + js->buttons[base + 1] = (value & 0x02) ? GLFW_PRESS : GLFW_RELEASE; + js->buttons[base + 2] = (value & 0x04) ? GLFW_PRESS : GLFW_RELEASE; + js->buttons[base + 3] = (value & 0x08) ? GLFW_PRESS : GLFW_RELEASE; + + js->hats[hat] = value; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Adds the built-in set of gamepad mappings +// +void _glfwInitGamepadMappings(void) +{ + size_t i; + const size_t count = sizeof(_glfwDefaultMappings) / sizeof(char*); + _glfw.mappings = _glfw_calloc(count, sizeof(_GLFWmapping)); + + for (i = 0; i < count; i++) + { + if (parseMapping(&_glfw.mappings[_glfw.mappingCount], _glfwDefaultMappings[i])) + _glfw.mappingCount++; + } +} + +// Returns an available joystick object with arrays and name allocated +// +_GLFWjoystick* _glfwAllocJoystick(const char* name, + const char* guid, + int axisCount, + int buttonCount, + int hatCount) +{ + int jid; + _GLFWjoystick* js; + + for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + if (!_glfw.joysticks[jid].allocated) + break; + } + + if (jid > GLFW_JOYSTICK_LAST) + return NULL; + + js = _glfw.joysticks + jid; + js->allocated = GLFW_TRUE; + js->axes = _glfw_calloc(axisCount, sizeof(float)); + js->buttons = _glfw_calloc(buttonCount + (size_t) hatCount * 4, 1); + js->hats = _glfw_calloc(hatCount, 1); + js->axisCount = axisCount; + js->buttonCount = buttonCount; + js->hatCount = hatCount; + + strncpy(js->name, name, sizeof(js->name) - 1); + strncpy(js->guid, guid, sizeof(js->guid) - 1); + js->mapping = findValidMapping(js); + + return js; +} + +// Frees arrays and name and flags the joystick object as unused +// +void _glfwFreeJoystick(_GLFWjoystick* js) +{ + _glfw_free(js->axes); + _glfw_free(js->buttons); + _glfw_free(js->hats); + memset(js, 0, sizeof(_GLFWjoystick)); +} + +// Center the cursor in the content area of the specified window +// +void _glfwCenterCursorInContentArea(_GLFWwindow* window) +{ + int width, height; + + _glfw.platform.getWindowSize(window, &width, &height); + _glfw.platform.setCursorPos(window, width / 2.0, height / 2.0); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI int glfwGetInputMode(GLFWwindow* handle, int mode) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(0); + + switch (mode) + { + case GLFW_CURSOR: + return window->cursorMode; + case GLFW_STICKY_KEYS: + return window->stickyKeys; + case GLFW_STICKY_MOUSE_BUTTONS: + return window->stickyMouseButtons; + case GLFW_LOCK_KEY_MODS: + return window->lockKeyMods; + case GLFW_RAW_MOUSE_MOTION: + return window->rawMouseMotion; + } + + _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode 0x%08X", mode); + return 0; +} + +GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + switch (mode) + { + case GLFW_CURSOR: + { + if (value != GLFW_CURSOR_NORMAL && + value != GLFW_CURSOR_HIDDEN && + value != GLFW_CURSOR_DISABLED && + value != GLFW_CURSOR_CAPTURED) + { + _glfwInputError(GLFW_INVALID_ENUM, + "Invalid cursor mode 0x%08X", + value); + return; + } + + if (window->cursorMode == value) + return; + + window->cursorMode = value; + + _glfw.platform.getCursorPos(window, + &window->virtualCursorPosX, + &window->virtualCursorPosY); + _glfw.platform.setCursorMode(window, value); + return; + } + + case GLFW_STICKY_KEYS: + { + value = value ? GLFW_TRUE : GLFW_FALSE; + if (window->stickyKeys == value) + return; + + if (!value) + { + int i; + + // Release all sticky keys + for (i = 0; i <= GLFW_KEY_LAST; i++) + { + if (window->keys[i] == _GLFW_STICK) + window->keys[i] = GLFW_RELEASE; + } + } + + window->stickyKeys = value; + return; + } + + case GLFW_STICKY_MOUSE_BUTTONS: + { + value = value ? GLFW_TRUE : GLFW_FALSE; + if (window->stickyMouseButtons == value) + return; + + if (!value) + { + int i; + + // Release all sticky mouse buttons + for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) + { + if (window->mouseButtons[i] == _GLFW_STICK) + window->mouseButtons[i] = GLFW_RELEASE; + } + } + + window->stickyMouseButtons = value; + return; + } + + case GLFW_LOCK_KEY_MODS: + { + window->lockKeyMods = value ? GLFW_TRUE : GLFW_FALSE; + return; + } + + case GLFW_RAW_MOUSE_MOTION: + { + if (!_glfw.platform.rawMouseMotionSupported()) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Raw mouse motion is not supported on this system"); + return; + } + + value = value ? GLFW_TRUE : GLFW_FALSE; + if (window->rawMouseMotion == value) + return; + + window->rawMouseMotion = value; + _glfw.platform.setRawMouseMotion(window, value); + return; + } + } + + _glfwInputError(GLFW_INVALID_ENUM, "Invalid input mode 0x%08X", mode); +} + +GLFWAPI int glfwRawMouseMotionSupported(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + return _glfw.platform.rawMouseMotionSupported(); +} + +GLFWAPI const char* glfwGetKeyName(int key, int scancode) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (key != GLFW_KEY_UNKNOWN) + { + if (key != GLFW_KEY_KP_EQUAL && + (key < GLFW_KEY_KP_0 || key > GLFW_KEY_KP_ADD) && + (key < GLFW_KEY_APOSTROPHE || key > GLFW_KEY_WORLD_2)) + { + return NULL; + } + + scancode = _glfw.platform.getKeyScancode(key); + } + + return _glfw.platform.getScancodeName(scancode); +} + +GLFWAPI int glfwGetKeyScancode(int key) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(-1); + + if (key < GLFW_KEY_SPACE || key > GLFW_KEY_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid key %i", key); + return GLFW_RELEASE; + } + + return _glfw.platform.getKeyScancode(key); +} + +GLFWAPI int glfwGetKey(GLFWwindow* handle, int key) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); + + if (key < GLFW_KEY_SPACE || key > GLFW_KEY_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid key %i", key); + return GLFW_RELEASE; + } + + if (window->keys[key] == _GLFW_STICK) + { + // Sticky mode: release key now + window->keys[key] = GLFW_RELEASE; + return GLFW_PRESS; + } + + return (int) window->keys[key]; +} + +GLFWAPI int glfwGetMouseButton(GLFWwindow* handle, int button) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); + + if (button < GLFW_MOUSE_BUTTON_1 || button > GLFW_MOUSE_BUTTON_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid mouse button %i", button); + return GLFW_RELEASE; + } + + if (window->mouseButtons[button] == _GLFW_STICK) + { + // Sticky mode: release mouse button now + window->mouseButtons[button] = GLFW_RELEASE; + return GLFW_PRESS; + } + + return (int) window->mouseButtons[button]; +} + +GLFWAPI void glfwGetCursorPos(GLFWwindow* handle, double* xpos, double* ypos) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 0; + + _GLFW_REQUIRE_INIT(); + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + if (xpos) + *xpos = window->virtualCursorPosX; + if (ypos) + *ypos = window->virtualCursorPosY; + } + else + _glfw.platform.getCursorPos(window, xpos, ypos); +} + +GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + if (xpos != xpos || xpos < -DBL_MAX || xpos > DBL_MAX || + ypos != ypos || ypos < -DBL_MAX || ypos > DBL_MAX) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid cursor position %f %f", + xpos, ypos); + return; + } + + if (!_glfw.platform.windowFocused(window)) + return; + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + // Only update the accumulated position if the cursor is disabled + window->virtualCursorPosX = xpos; + window->virtualCursorPosY = ypos; + } + else + { + // Update system cursor position + _glfw.platform.setCursorPos(window, xpos, ypos); + } +} + +GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot) +{ + _GLFWcursor* cursor; + + assert(image != NULL); + assert(image->pixels != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (image->width <= 0 || image->height <= 0) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid image dimensions for cursor"); + return NULL; + } + + cursor = _glfw_calloc(1, sizeof(_GLFWcursor)); + cursor->next = _glfw.cursorListHead; + _glfw.cursorListHead = cursor; + + if (!_glfw.platform.createCursor(cursor, image, xhot, yhot)) + { + glfwDestroyCursor((GLFWcursor*) cursor); + return NULL; + } + + return (GLFWcursor*) cursor; +} + +GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape) +{ + _GLFWcursor* cursor; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (shape != GLFW_ARROW_CURSOR && + shape != GLFW_IBEAM_CURSOR && + shape != GLFW_CROSSHAIR_CURSOR && + shape != GLFW_POINTING_HAND_CURSOR && + shape != GLFW_RESIZE_EW_CURSOR && + shape != GLFW_RESIZE_NS_CURSOR && + shape != GLFW_RESIZE_NWSE_CURSOR && + shape != GLFW_RESIZE_NESW_CURSOR && + shape != GLFW_RESIZE_ALL_CURSOR && + shape != GLFW_NOT_ALLOWED_CURSOR) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid standard cursor 0x%08X", shape); + return NULL; + } + + cursor = _glfw_calloc(1, sizeof(_GLFWcursor)); + cursor->next = _glfw.cursorListHead; + _glfw.cursorListHead = cursor; + + if (!_glfw.platform.createStandardCursor(cursor, shape)) + { + glfwDestroyCursor((GLFWcursor*) cursor); + return NULL; + } + + return (GLFWcursor*) cursor; +} + +GLFWAPI void glfwDestroyCursor(GLFWcursor* handle) +{ + _GLFWcursor* cursor = (_GLFWcursor*) handle; + + _GLFW_REQUIRE_INIT(); + + if (cursor == NULL) + return; + + // Make sure the cursor is not being used by any window + { + _GLFWwindow* window; + + for (window = _glfw.windowListHead; window; window = window->next) + { + if (window->cursor == cursor) + glfwSetCursor((GLFWwindow*) window, NULL); + } + } + + _glfw.platform.destroyCursor(cursor); + + // Unlink cursor from global linked list + { + _GLFWcursor** prev = &_glfw.cursorListHead; + + while (*prev != cursor) + prev = &((*prev)->next); + + *prev = cursor->next; + } + + _glfw_free(cursor); +} + +GLFWAPI void glfwSetCursor(GLFWwindow* windowHandle, GLFWcursor* cursorHandle) +{ + _GLFWwindow* window = (_GLFWwindow*) windowHandle; + _GLFWcursor* cursor = (_GLFWcursor*) cursorHandle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + window->cursor = cursor; + + _glfw.platform.setCursor(window, cursor); +} + +GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* handle, GLFWkeyfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWkeyfun, window->callbacks.key, cbfun); + return cbfun; +} + +GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* handle, GLFWcharfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWcharfun, window->callbacks.character, cbfun); + return cbfun; +} + +GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* handle, GLFWcharmodsfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWcharmodsfun, window->callbacks.charmods, cbfun); + return cbfun; +} + +GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* handle, + GLFWmousebuttonfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWmousebuttonfun, window->callbacks.mouseButton, cbfun); + return cbfun; +} + +GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* handle, + GLFWcursorposfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWcursorposfun, window->callbacks.cursorPos, cbfun); + return cbfun; +} + +GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* handle, + GLFWcursorenterfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWcursorenterfun, window->callbacks.cursorEnter, cbfun); + return cbfun; +} + +GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* handle, + GLFWscrollfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWscrollfun, window->callbacks.scroll, cbfun); + return cbfun; +} + +GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* handle, GLFWdropfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWdropfun, window->callbacks.drop, cbfun); + return cbfun; +} + +GLFWAPI int glfwJoystickPresent(int jid) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return GLFW_FALSE; + } + + if (!initJoysticks()) + return GLFW_FALSE; + + js = _glfw.joysticks + jid; + if (!js->connected) + return GLFW_FALSE; + + return _glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE); +} + +GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return NULL; + } + + if (!initJoysticks()) + return NULL; + + js = _glfw.joysticks + jid; + if (!js->connected) + return NULL; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_AXES)) + return NULL; + + *count = js->axisCount; + return js->axes; +} + +GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return NULL; + } + + if (!initJoysticks()) + return NULL; + + js = _glfw.joysticks + jid; + if (!js->connected) + return NULL; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_BUTTONS)) + return NULL; + + if (_glfw.hints.init.hatButtons) + *count = js->buttonCount + js->hatCount * 4; + else + *count = js->buttonCount; + + return js->buttons; +} + +GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return NULL; + } + + if (!initJoysticks()) + return NULL; + + js = _glfw.joysticks + jid; + if (!js->connected) + return NULL; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_BUTTONS)) + return NULL; + + *count = js->hatCount; + return js->hats; +} + +GLFWAPI const char* glfwGetJoystickName(int jid) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return NULL; + } + + if (!initJoysticks()) + return NULL; + + js = _glfw.joysticks + jid; + if (!js->connected) + return NULL; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE)) + return NULL; + + return js->name; +} + +GLFWAPI const char* glfwGetJoystickGUID(int jid) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return NULL; + } + + if (!initJoysticks()) + return NULL; + + js = _glfw.joysticks + jid; + if (!js->connected) + return NULL; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE)) + return NULL; + + return js->guid; +} + +GLFWAPI void glfwSetJoystickUserPointer(int jid, void* pointer) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT(); + + js = _glfw.joysticks + jid; + if (!js->allocated) + return; + + js->userPointer = pointer; +} + +GLFWAPI void* glfwGetJoystickUserPointer(int jid) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + js = _glfw.joysticks + jid; + if (!js->allocated) + return NULL; + + return js->userPointer; +} + +GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!initJoysticks()) + return NULL; + + _GLFW_SWAP(GLFWjoystickfun, _glfw.callbacks.joystick, cbfun); + return cbfun; +} + +GLFWAPI int glfwUpdateGamepadMappings(const char* string) +{ + int jid; + const char* c = string; + + assert(string != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + while (*c) + { + if ((*c >= '0' && *c <= '9') || + (*c >= 'a' && *c <= 'f') || + (*c >= 'A' && *c <= 'F')) + { + char line[1024]; + + const size_t length = strcspn(c, "\r\n"); + if (length < sizeof(line)) + { + _GLFWmapping mapping = {{0}}; + + memcpy(line, c, length); + line[length] = '\0'; + + if (parseMapping(&mapping, line)) + { + _GLFWmapping* previous = findMapping(mapping.guid); + if (previous) + *previous = mapping; + else + { + _glfw.mappingCount++; + _glfw.mappings = + _glfw_realloc(_glfw.mappings, + sizeof(_GLFWmapping) * _glfw.mappingCount); + _glfw.mappings[_glfw.mappingCount - 1] = mapping; + } + } + } + + c += length; + } + else + { + c += strcspn(c, "\r\n"); + c += strspn(c, "\r\n"); + } + } + + for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + _GLFWjoystick* js = _glfw.joysticks + jid; + if (js->connected) + js->mapping = findValidMapping(js); + } + + return GLFW_TRUE; +} + +GLFWAPI int glfwJoystickIsGamepad(int jid) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return GLFW_FALSE; + } + + if (!initJoysticks()) + return GLFW_FALSE; + + js = _glfw.joysticks + jid; + if (!js->connected) + return GLFW_FALSE; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE)) + return GLFW_FALSE; + + return js->mapping != NULL; +} + +GLFWAPI const char* glfwGetGamepadName(int jid) +{ + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return NULL; + } + + if (!initJoysticks()) + return NULL; + + js = _glfw.joysticks + jid; + if (!js->connected) + return NULL; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_PRESENCE)) + return NULL; + + if (!js->mapping) + return NULL; + + return js->mapping->name; +} + +GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state) +{ + int i; + _GLFWjoystick* js; + + assert(jid >= GLFW_JOYSTICK_1); + assert(jid <= GLFW_JOYSTICK_LAST); + assert(state != NULL); + + memset(state, 0, sizeof(GLFWgamepadstate)); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + if (jid < 0 || jid > GLFW_JOYSTICK_LAST) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick ID %i", jid); + return GLFW_FALSE; + } + + if (!initJoysticks()) + return GLFW_FALSE; + + js = _glfw.joysticks + jid; + if (!js->connected) + return GLFW_FALSE; + + if (!_glfw.platform.pollJoystick(js, _GLFW_POLL_ALL)) + return GLFW_FALSE; + + if (!js->mapping) + return GLFW_FALSE; + + for (i = 0; i <= GLFW_GAMEPAD_BUTTON_LAST; i++) + { + const _GLFWmapelement* e = js->mapping->buttons + i; + if (e->type == _GLFW_JOYSTICK_AXIS) + { + const float value = js->axes[e->index] * e->axisScale + e->axisOffset; + // HACK: This should be baked into the value transform + // TODO: Bake into transform when implementing output modifiers + if (e->axisOffset < 0 || (e->axisOffset == 0 && e->axisScale > 0)) + { + if (value >= 0.f) + state->buttons[i] = GLFW_PRESS; + } + else + { + if (value <= 0.f) + state->buttons[i] = GLFW_PRESS; + } + } + else if (e->type == _GLFW_JOYSTICK_HATBIT) + { + const unsigned int hat = e->index >> 4; + const unsigned int bit = e->index & 0xf; + if (js->hats[hat] & bit) + state->buttons[i] = GLFW_PRESS; + } + else if (e->type == _GLFW_JOYSTICK_BUTTON) + state->buttons[i] = js->buttons[e->index]; + } + + for (i = 0; i <= GLFW_GAMEPAD_AXIS_LAST; i++) + { + const _GLFWmapelement* e = js->mapping->axes + i; + if (e->type == _GLFW_JOYSTICK_AXIS) + { + const float value = js->axes[e->index] * e->axisScale + e->axisOffset; + state->axes[i] = _glfw_fminf(_glfw_fmaxf(value, -1.f), 1.f); + } + else if (e->type == _GLFW_JOYSTICK_HATBIT) + { + const unsigned int hat = e->index >> 4; + const unsigned int bit = e->index & 0xf; + if (js->hats[hat] & bit) + state->axes[i] = 1.f; + else + state->axes[i] = -1.f; + } + else if (e->type == _GLFW_JOYSTICK_BUTTON) + state->axes[i] = js->buttons[e->index] * 2.f - 1.f; + } + + return GLFW_TRUE; +} + +GLFWAPI void glfwSetClipboardString(GLFWwindow* handle, const char* string) +{ + assert(string != NULL); + + _GLFW_REQUIRE_INIT(); + _glfw.platform.setClipboardString(string); +} + +GLFWAPI const char* glfwGetClipboardString(GLFWwindow* handle) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return _glfw.platform.getClipboardString(); +} + +GLFWAPI double glfwGetTime(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(0.0); + return (double) (_glfwPlatformGetTimerValue() - _glfw.timer.offset) / + _glfwPlatformGetTimerFrequency(); +} + +GLFWAPI void glfwSetTime(double time) +{ + _GLFW_REQUIRE_INIT(); + + if (time != time || time < 0.0 || time > 18446744073.0) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid time %f", time); + return; + } + + _glfw.timer.offset = _glfwPlatformGetTimerValue() - + (uint64_t) (time * _glfwPlatformGetTimerFrequency()); +} + +GLFWAPI uint64_t glfwGetTimerValue(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(0); + return _glfwPlatformGetTimerValue(); +} + +GLFWAPI uint64_t glfwGetTimerFrequency(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(0); + return _glfwPlatformGetTimerFrequency(); +} + diff --git a/thirdparty/imgui_suite/glfw/src/internal.h b/thirdparty/imgui_suite/glfw/src/internal.h new file mode 100644 index 00000000000..5aa22f595cd --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/internal.h @@ -0,0 +1,1016 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#pragma once + +#if defined(_GLFW_USE_CONFIG_H) + #include "glfw_config.h" +#endif + +#if defined(GLFW_INCLUDE_GLCOREARB) || \ + defined(GLFW_INCLUDE_ES1) || \ + defined(GLFW_INCLUDE_ES2) || \ + defined(GLFW_INCLUDE_ES3) || \ + defined(GLFW_INCLUDE_ES31) || \ + defined(GLFW_INCLUDE_ES32) || \ + defined(GLFW_INCLUDE_NONE) || \ + defined(GLFW_INCLUDE_GLEXT) || \ + defined(GLFW_INCLUDE_GLU) || \ + defined(GLFW_INCLUDE_VULKAN) || \ + defined(GLFW_DLL) + #error "You must not define any header option macros when compiling GLFW" +#endif + +#define GLFW_INCLUDE_NONE +#include "../include/GLFW/glfw3.h" + +#define _GLFW_INSERT_FIRST 0 +#define _GLFW_INSERT_LAST 1 + +#define _GLFW_POLL_PRESENCE 0 +#define _GLFW_POLL_AXES 1 +#define _GLFW_POLL_BUTTONS 2 +#define _GLFW_POLL_ALL (_GLFW_POLL_AXES | _GLFW_POLL_BUTTONS) + +#define _GLFW_MESSAGE_SIZE 1024 + +typedef int GLFWbool; +typedef void (*GLFWproc)(void); + +typedef struct _GLFWerror _GLFWerror; +typedef struct _GLFWinitconfig _GLFWinitconfig; +typedef struct _GLFWwndconfig _GLFWwndconfig; +typedef struct _GLFWctxconfig _GLFWctxconfig; +typedef struct _GLFWfbconfig _GLFWfbconfig; +typedef struct _GLFWcontext _GLFWcontext; +typedef struct _GLFWwindow _GLFWwindow; +typedef struct _GLFWplatform _GLFWplatform; +typedef struct _GLFWlibrary _GLFWlibrary; +typedef struct _GLFWmonitor _GLFWmonitor; +typedef struct _GLFWcursor _GLFWcursor; +typedef struct _GLFWmapelement _GLFWmapelement; +typedef struct _GLFWmapping _GLFWmapping; +typedef struct _GLFWjoystick _GLFWjoystick; +typedef struct _GLFWtls _GLFWtls; +typedef struct _GLFWmutex _GLFWmutex; + +#define GL_VERSION 0x1f02 +#define GL_NONE 0 +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_EXTENSIONS 0x1f03 +#define GL_NUM_EXTENSIONS 0x821d +#define GL_CONTEXT_FLAGS 0x821e +#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 +#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 +#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82fb +#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82fc +#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 + +typedef int GLint; +typedef unsigned int GLuint; +typedef unsigned int GLenum; +typedef unsigned int GLbitfield; +typedef unsigned char GLubyte; + +typedef void (APIENTRY * PFNGLCLEARPROC)(GLbitfield); +typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGPROC)(GLenum); +typedef void (APIENTRY * PFNGLGETINTEGERVPROC)(GLenum,GLint*); +typedef const GLubyte* (APIENTRY * PFNGLGETSTRINGIPROC)(GLenum,GLuint); + +#if defined(_GLFW_WIN32) + #define EGLAPIENTRY __stdcall +#else + #define EGLAPIENTRY +#endif + +#define EGL_SUCCESS 0x3000 +#define EGL_NOT_INITIALIZED 0x3001 +#define EGL_BAD_ACCESS 0x3002 +#define EGL_BAD_ALLOC 0x3003 +#define EGL_BAD_ATTRIBUTE 0x3004 +#define EGL_BAD_CONFIG 0x3005 +#define EGL_BAD_CONTEXT 0x3006 +#define EGL_BAD_CURRENT_SURFACE 0x3007 +#define EGL_BAD_DISPLAY 0x3008 +#define EGL_BAD_MATCH 0x3009 +#define EGL_BAD_NATIVE_PIXMAP 0x300a +#define EGL_BAD_NATIVE_WINDOW 0x300b +#define EGL_BAD_PARAMETER 0x300c +#define EGL_BAD_SURFACE 0x300d +#define EGL_CONTEXT_LOST 0x300e +#define EGL_COLOR_BUFFER_TYPE 0x303f +#define EGL_RGB_BUFFER 0x308e +#define EGL_SURFACE_TYPE 0x3033 +#define EGL_WINDOW_BIT 0x0004 +#define EGL_RENDERABLE_TYPE 0x3040 +#define EGL_OPENGL_ES_BIT 0x0001 +#define EGL_OPENGL_ES2_BIT 0x0004 +#define EGL_OPENGL_BIT 0x0008 +#define EGL_ALPHA_SIZE 0x3021 +#define EGL_BLUE_SIZE 0x3022 +#define EGL_GREEN_SIZE 0x3023 +#define EGL_RED_SIZE 0x3024 +#define EGL_DEPTH_SIZE 0x3025 +#define EGL_STENCIL_SIZE 0x3026 +#define EGL_SAMPLES 0x3031 +#define EGL_OPENGL_ES_API 0x30a0 +#define EGL_OPENGL_API 0x30a2 +#define EGL_NONE 0x3038 +#define EGL_RENDER_BUFFER 0x3086 +#define EGL_SINGLE_BUFFER 0x3085 +#define EGL_EXTENSIONS 0x3055 +#define EGL_CONTEXT_CLIENT_VERSION 0x3098 +#define EGL_NATIVE_VISUAL_ID 0x302e +#define EGL_NO_SURFACE ((EGLSurface) 0) +#define EGL_NO_DISPLAY ((EGLDisplay) 0) +#define EGL_NO_CONTEXT ((EGLContext) 0) +#define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType) 0) + +#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 +#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 +#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 +#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 +#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31bd +#define EGL_NO_RESET_NOTIFICATION_KHR 0x31be +#define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31bf +#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 +#define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098 +#define EGL_CONTEXT_MINOR_VERSION_KHR 0x30fb +#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30fd +#define EGL_CONTEXT_FLAGS_KHR 0x30fc +#define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31b3 +#define EGL_GL_COLORSPACE_KHR 0x309d +#define EGL_GL_COLORSPACE_SRGB_KHR 0x3089 +#define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097 +#define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0 +#define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098 +#define EGL_PLATFORM_X11_EXT 0x31d5 +#define EGL_PLATFORM_WAYLAND_EXT 0x31d8 +#define EGL_PRESENT_OPAQUE_EXT 0x31df +#define EGL_PLATFORM_ANGLE_ANGLE 0x3202 +#define EGL_PLATFORM_ANGLE_TYPE_ANGLE 0x3203 +#define EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE 0x320d +#define EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE 0x320e +#define EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE 0x3207 +#define EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE 0x3208 +#define EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE 0x3450 +#define EGL_PLATFORM_ANGLE_TYPE_METAL_ANGLE 0x3489 +#define EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE 0x348f + +typedef int EGLint; +typedef unsigned int EGLBoolean; +typedef unsigned int EGLenum; +typedef void* EGLConfig; +typedef void* EGLContext; +typedef void* EGLDisplay; +typedef void* EGLSurface; + +typedef void* EGLNativeDisplayType; +typedef void* EGLNativeWindowType; + +// EGL function pointer typedefs +typedef EGLBoolean (EGLAPIENTRY * PFN_eglGetConfigAttrib)(EGLDisplay,EGLConfig,EGLint,EGLint*); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglGetConfigs)(EGLDisplay,EGLConfig*,EGLint,EGLint*); +typedef EGLDisplay (EGLAPIENTRY * PFN_eglGetDisplay)(EGLNativeDisplayType); +typedef EGLint (EGLAPIENTRY * PFN_eglGetError)(void); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglInitialize)(EGLDisplay,EGLint*,EGLint*); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglTerminate)(EGLDisplay); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglBindAPI)(EGLenum); +typedef EGLContext (EGLAPIENTRY * PFN_eglCreateContext)(EGLDisplay,EGLConfig,EGLContext,const EGLint*); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglDestroySurface)(EGLDisplay,EGLSurface); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglDestroyContext)(EGLDisplay,EGLContext); +typedef EGLSurface (EGLAPIENTRY * PFN_eglCreateWindowSurface)(EGLDisplay,EGLConfig,EGLNativeWindowType,const EGLint*); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglMakeCurrent)(EGLDisplay,EGLSurface,EGLSurface,EGLContext); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglSwapBuffers)(EGLDisplay,EGLSurface); +typedef EGLBoolean (EGLAPIENTRY * PFN_eglSwapInterval)(EGLDisplay,EGLint); +typedef const char* (EGLAPIENTRY * PFN_eglQueryString)(EGLDisplay,EGLint); +typedef GLFWglproc (EGLAPIENTRY * PFN_eglGetProcAddress)(const char*); +#define eglGetConfigAttrib _glfw.egl.GetConfigAttrib +#define eglGetConfigs _glfw.egl.GetConfigs +#define eglGetDisplay _glfw.egl.GetDisplay +#define eglGetError _glfw.egl.GetError +#define eglInitialize _glfw.egl.Initialize +#define eglTerminate _glfw.egl.Terminate +#define eglBindAPI _glfw.egl.BindAPI +#define eglCreateContext _glfw.egl.CreateContext +#define eglDestroySurface _glfw.egl.DestroySurface +#define eglDestroyContext _glfw.egl.DestroyContext +#define eglCreateWindowSurface _glfw.egl.CreateWindowSurface +#define eglMakeCurrent _glfw.egl.MakeCurrent +#define eglSwapBuffers _glfw.egl.SwapBuffers +#define eglSwapInterval _glfw.egl.SwapInterval +#define eglQueryString _glfw.egl.QueryString +#define eglGetProcAddress _glfw.egl.GetProcAddress + +typedef EGLDisplay (EGLAPIENTRY * PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum,void*,const EGLint*); +typedef EGLSurface (EGLAPIENTRY * PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC)(EGLDisplay,EGLConfig,void*,const EGLint*); +#define eglGetPlatformDisplayEXT _glfw.egl.GetPlatformDisplayEXT +#define eglCreatePlatformWindowSurfaceEXT _glfw.egl.CreatePlatformWindowSurfaceEXT + +#define OSMESA_RGBA 0x1908 +#define OSMESA_FORMAT 0x22 +#define OSMESA_DEPTH_BITS 0x30 +#define OSMESA_STENCIL_BITS 0x31 +#define OSMESA_ACCUM_BITS 0x32 +#define OSMESA_PROFILE 0x33 +#define OSMESA_CORE_PROFILE 0x34 +#define OSMESA_COMPAT_PROFILE 0x35 +#define OSMESA_CONTEXT_MAJOR_VERSION 0x36 +#define OSMESA_CONTEXT_MINOR_VERSION 0x37 + +typedef void* OSMesaContext; +typedef void (*OSMESAproc)(void); + +typedef OSMesaContext (GLAPIENTRY * PFN_OSMesaCreateContextExt)(GLenum,GLint,GLint,GLint,OSMesaContext); +typedef OSMesaContext (GLAPIENTRY * PFN_OSMesaCreateContextAttribs)(const int*,OSMesaContext); +typedef void (GLAPIENTRY * PFN_OSMesaDestroyContext)(OSMesaContext); +typedef int (GLAPIENTRY * PFN_OSMesaMakeCurrent)(OSMesaContext,void*,int,int,int); +typedef int (GLAPIENTRY * PFN_OSMesaGetColorBuffer)(OSMesaContext,int*,int*,int*,void**); +typedef int (GLAPIENTRY * PFN_OSMesaGetDepthBuffer)(OSMesaContext,int*,int*,int*,void**); +typedef GLFWglproc (GLAPIENTRY * PFN_OSMesaGetProcAddress)(const char*); +#define OSMesaCreateContextExt _glfw.osmesa.CreateContextExt +#define OSMesaCreateContextAttribs _glfw.osmesa.CreateContextAttribs +#define OSMesaDestroyContext _glfw.osmesa.DestroyContext +#define OSMesaMakeCurrent _glfw.osmesa.MakeCurrent +#define OSMesaGetColorBuffer _glfw.osmesa.GetColorBuffer +#define OSMesaGetDepthBuffer _glfw.osmesa.GetDepthBuffer +#define OSMesaGetProcAddress _glfw.osmesa.GetProcAddress + +#define VK_NULL_HANDLE 0 + +typedef void* VkInstance; +typedef void* VkPhysicalDevice; +typedef uint64_t VkSurfaceKHR; +typedef uint32_t VkFlags; +typedef uint32_t VkBool32; + +typedef enum VkStructureType +{ + VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, + VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, + VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, + VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, + VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK = 1000123000, + VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT = 1000217000, + VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF +} VkStructureType; + +typedef enum VkResult +{ + VK_SUCCESS = 0, + VK_NOT_READY = 1, + VK_TIMEOUT = 2, + VK_EVENT_SET = 3, + VK_EVENT_RESET = 4, + VK_INCOMPLETE = 5, + VK_ERROR_OUT_OF_HOST_MEMORY = -1, + VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, + VK_ERROR_INITIALIZATION_FAILED = -3, + VK_ERROR_DEVICE_LOST = -4, + VK_ERROR_MEMORY_MAP_FAILED = -5, + VK_ERROR_LAYER_NOT_PRESENT = -6, + VK_ERROR_EXTENSION_NOT_PRESENT = -7, + VK_ERROR_FEATURE_NOT_PRESENT = -8, + VK_ERROR_INCOMPATIBLE_DRIVER = -9, + VK_ERROR_TOO_MANY_OBJECTS = -10, + VK_ERROR_FORMAT_NOT_SUPPORTED = -11, + VK_ERROR_SURFACE_LOST_KHR = -1000000000, + VK_SUBOPTIMAL_KHR = 1000001003, + VK_ERROR_OUT_OF_DATE_KHR = -1000001004, + VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001, + VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, + VK_ERROR_VALIDATION_FAILED_EXT = -1000011001, + VK_RESULT_MAX_ENUM = 0x7FFFFFFF +} VkResult; + +typedef struct VkAllocationCallbacks VkAllocationCallbacks; + +typedef struct VkExtensionProperties +{ + char extensionName[256]; + uint32_t specVersion; +} VkExtensionProperties; + +typedef void (APIENTRY * PFN_vkVoidFunction)(void); + +typedef PFN_vkVoidFunction (APIENTRY * PFN_vkGetInstanceProcAddr)(VkInstance,const char*); +typedef VkResult (APIENTRY * PFN_vkEnumerateInstanceExtensionProperties)(const char*,uint32_t*,VkExtensionProperties*); +#define vkGetInstanceProcAddr _glfw.vk.GetInstanceProcAddr + +#include "platform.h" + +// Constructs a version number string from the public header macros +#define _GLFW_CONCAT_VERSION(m, n, r) #m "." #n "." #r +#define _GLFW_MAKE_VERSION(m, n, r) _GLFW_CONCAT_VERSION(m, n, r) +#define _GLFW_VERSION_NUMBER _GLFW_MAKE_VERSION(GLFW_VERSION_MAJOR, \ + GLFW_VERSION_MINOR, \ + GLFW_VERSION_REVISION) + +// Checks for whether the library has been initialized +#define _GLFW_REQUIRE_INIT() \ + if (!_glfw.initialized) \ + { \ + _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ + return; \ + } +#define _GLFW_REQUIRE_INIT_OR_RETURN(x) \ + if (!_glfw.initialized) \ + { \ + _glfwInputError(GLFW_NOT_INITIALIZED, NULL); \ + return x; \ + } + +// Swaps the provided pointers +#define _GLFW_SWAP(type, x, y) \ + { \ + type t; \ + t = x; \ + x = y; \ + y = t; \ + } + +// Per-thread error structure +// +struct _GLFWerror +{ + _GLFWerror* next; + int code; + char description[_GLFW_MESSAGE_SIZE]; +}; + +// Initialization configuration +// +// Parameters relating to the initialization of the library +// +struct _GLFWinitconfig +{ + GLFWbool hatButtons; + int angleType; + int platformID; + PFN_vkGetInstanceProcAddr vulkanLoader; + struct { + GLFWbool menubar; + GLFWbool chdir; + } ns; + struct { + GLFWbool xcbVulkanSurface; + } x11; +}; + +// Window configuration +// +// Parameters relating to the creation of the window but not directly related +// to the framebuffer. This is used to pass window creation parameters from +// shared code to the platform API. +// +struct _GLFWwndconfig +{ + int xpos; + int ypos; + int width; + int height; + const char* title; + GLFWbool resizable; + GLFWbool visible; + GLFWbool decorated; + GLFWbool focused; + GLFWbool autoIconify; + GLFWbool floating; + GLFWbool maximized; + GLFWbool centerCursor; + GLFWbool focusOnShow; + GLFWbool mousePassthrough; + GLFWbool scaleToMonitor; + struct { + GLFWbool retina; + char frameName[256]; + } ns; + struct { + char className[256]; + char instanceName[256]; + } x11; + struct { + GLFWbool keymenu; + } win32; + struct { + char appId[256]; + } wl; +}; + +// Context configuration +// +// Parameters relating to the creation of the context but not directly related +// to the framebuffer. This is used to pass context creation parameters from +// shared code to the platform API. +// +struct _GLFWctxconfig +{ + int client; + int source; + int major; + int minor; + GLFWbool forward; + GLFWbool debug; + GLFWbool noerror; + int profile; + int robustness; + int release; + _GLFWwindow* share; + struct { + GLFWbool offline; + } nsgl; +}; + +// Framebuffer configuration +// +// This describes buffers and their sizes. It also contains +// a platform-specific ID used to map back to the backend API object. +// +// It is used to pass framebuffer parameters from shared code to the platform +// API and also to enumerate and select available framebuffer configs. +// +struct _GLFWfbconfig +{ + int redBits; + int greenBits; + int blueBits; + int alphaBits; + int depthBits; + int stencilBits; + int accumRedBits; + int accumGreenBits; + int accumBlueBits; + int accumAlphaBits; + int auxBuffers; + GLFWbool stereo; + int samples; + GLFWbool sRGB; + GLFWbool doublebuffer; + GLFWbool transparent; + uintptr_t handle; +}; + +// Context structure +// +struct _GLFWcontext +{ + int client; + int source; + int major, minor, revision; + GLFWbool forward, debug, noerror; + int profile; + int robustness; + int release; + + PFNGLGETSTRINGIPROC GetStringi; + PFNGLGETINTEGERVPROC GetIntegerv; + PFNGLGETSTRINGPROC GetString; + + void (*makeCurrent)(_GLFWwindow*); + void (*swapBuffers)(_GLFWwindow*); + void (*swapInterval)(int); + int (*extensionSupported)(const char*); + GLFWglproc (*getProcAddress)(const char*); + void (*destroy)(_GLFWwindow*); + + struct { + EGLConfig config; + EGLContext handle; + EGLSurface surface; + void* client; + } egl; + + struct { + OSMesaContext handle; + int width; + int height; + void* buffer; + } osmesa; + + // This is defined in platform.h + GLFW_PLATFORM_CONTEXT_STATE +}; + +// Window and context structure +// +struct _GLFWwindow +{ + struct _GLFWwindow* next; + + // Window settings and state + GLFWbool resizable; + GLFWbool decorated; + GLFWbool autoIconify; + GLFWbool floating; + GLFWbool focusOnShow; + GLFWbool mousePassthrough; + GLFWbool shouldClose; + void* userPointer; + GLFWbool doublebuffer; + GLFWvidmode videoMode; + _GLFWmonitor* monitor; + _GLFWcursor* cursor; + + int minwidth, minheight; + int maxwidth, maxheight; + int numer, denom; + + GLFWbool stickyKeys; + GLFWbool stickyMouseButtons; + GLFWbool lockKeyMods; + int cursorMode; + char mouseButtons[GLFW_MOUSE_BUTTON_LAST + 1]; + char keys[GLFW_KEY_LAST + 1]; + // Virtual cursor position when cursor is disabled + double virtualCursorPosX, virtualCursorPosY; + GLFWbool rawMouseMotion; + + _GLFWcontext context; + + struct { + GLFWwindowposfun pos; + GLFWwindowsizefun size; + GLFWwindowclosefun close; + GLFWwindowrefreshfun refresh; + GLFWwindowfocusfun focus; + GLFWwindowiconifyfun iconify; + GLFWwindowmaximizefun maximize; + GLFWframebuffersizefun fbsize; + GLFWwindowcontentscalefun scale; + GLFWmousebuttonfun mouseButton; + GLFWcursorposfun cursorPos; + GLFWcursorenterfun cursorEnter; + GLFWscrollfun scroll; + GLFWkeyfun key; + GLFWcharfun character; + GLFWcharmodsfun charmods; + GLFWdropfun drop; + } callbacks; + + // This is defined in platform.h + GLFW_PLATFORM_WINDOW_STATE +}; + +// Monitor structure +// +struct _GLFWmonitor +{ + char name[128]; + void* userPointer; + + // Physical dimensions in millimeters. + int widthMM, heightMM; + + // The window whose video mode is current on this monitor + _GLFWwindow* window; + + GLFWvidmode* modes; + int modeCount; + GLFWvidmode currentMode; + + GLFWgammaramp originalRamp; + GLFWgammaramp currentRamp; + + // This is defined in platform.h + GLFW_PLATFORM_MONITOR_STATE +}; + +// Cursor structure +// +struct _GLFWcursor +{ + _GLFWcursor* next; + // This is defined in platform.h + GLFW_PLATFORM_CURSOR_STATE +}; + +// Gamepad mapping element structure +// +struct _GLFWmapelement +{ + uint8_t type; + uint8_t index; + int8_t axisScale; + int8_t axisOffset; +}; + +// Gamepad mapping structure +// +struct _GLFWmapping +{ + char name[128]; + char guid[33]; + _GLFWmapelement buttons[15]; + _GLFWmapelement axes[6]; +}; + +// Joystick structure +// +struct _GLFWjoystick +{ + GLFWbool allocated; + GLFWbool connected; + float* axes; + int axisCount; + unsigned char* buttons; + int buttonCount; + unsigned char* hats; + int hatCount; + char name[128]; + void* userPointer; + char guid[33]; + _GLFWmapping* mapping; + + // This is defined in platform.h + GLFW_PLATFORM_JOYSTICK_STATE +}; + +// Thread local storage structure +// +struct _GLFWtls +{ + // This is defined in platform.h + GLFW_PLATFORM_TLS_STATE +}; + +// Mutex structure +// +struct _GLFWmutex +{ + // This is defined in platform.h + GLFW_PLATFORM_MUTEX_STATE +}; + +// Platform API structure +// +struct _GLFWplatform +{ + int platformID; + // init + GLFWbool (*init)(void); + void (*terminate)(void); + // input + void (*getCursorPos)(_GLFWwindow*,double*,double*); + void (*setCursorPos)(_GLFWwindow*,double,double); + void (*setCursorMode)(_GLFWwindow*,int); + void (*setRawMouseMotion)(_GLFWwindow*,GLFWbool); + GLFWbool (*rawMouseMotionSupported)(void); + GLFWbool (*createCursor)(_GLFWcursor*,const GLFWimage*,int,int); + GLFWbool (*createStandardCursor)(_GLFWcursor*,int); + void (*destroyCursor)(_GLFWcursor*); + void (*setCursor)(_GLFWwindow*,_GLFWcursor*); + const char* (*getScancodeName)(int); + int (*getKeyScancode)(int); + void (*setClipboardString)(const char*); + const char* (*getClipboardString)(void); + GLFWbool (*initJoysticks)(void); + void (*terminateJoysticks)(void); + GLFWbool (*pollJoystick)(_GLFWjoystick*,int); + const char* (*getMappingName)(void); + void (*updateGamepadGUID)(char*); + // monitor + void (*freeMonitor)(_GLFWmonitor*); + void (*getMonitorPos)(_GLFWmonitor*,int*,int*); + void (*getMonitorContentScale)(_GLFWmonitor*,float*,float*); + void (*getMonitorWorkarea)(_GLFWmonitor*,int*,int*,int*,int*); + GLFWvidmode* (*getVideoModes)(_GLFWmonitor*,int*); + void (*getVideoMode)(_GLFWmonitor*,GLFWvidmode*); + GLFWbool (*getGammaRamp)(_GLFWmonitor*,GLFWgammaramp*); + void (*setGammaRamp)(_GLFWmonitor*,const GLFWgammaramp*); + // window + GLFWbool (*createWindow)(_GLFWwindow*,const _GLFWwndconfig*,const _GLFWctxconfig*,const _GLFWfbconfig*); + void (*destroyWindow)(_GLFWwindow*); + void (*setWindowTitle)(_GLFWwindow*,const char*); + void (*setWindowIcon)(_GLFWwindow*,int,const GLFWimage*); + void (*getWindowPos)(_GLFWwindow*,int*,int*); + void (*setWindowPos)(_GLFWwindow*,int,int); + void (*getWindowSize)(_GLFWwindow*,int*,int*); + void (*setWindowSize)(_GLFWwindow*,int,int); + void (*setWindowSizeLimits)(_GLFWwindow*,int,int,int,int); + void (*setWindowAspectRatio)(_GLFWwindow*,int,int); + void (*getFramebufferSize)(_GLFWwindow*,int*,int*); + void (*getWindowFrameSize)(_GLFWwindow*,int*,int*,int*,int*); + void (*getWindowContentScale)(_GLFWwindow*,float*,float*); + void (*iconifyWindow)(_GLFWwindow*); + void (*restoreWindow)(_GLFWwindow*); + void (*maximizeWindow)(_GLFWwindow*); + void (*showWindow)(_GLFWwindow*); + void (*hideWindow)(_GLFWwindow*); + void (*requestWindowAttention)(_GLFWwindow*); + void (*focusWindow)(_GLFWwindow*); + void (*setWindowMonitor)(_GLFWwindow*,_GLFWmonitor*,int,int,int,int,int); + GLFWbool (*windowFocused)(_GLFWwindow*); + GLFWbool (*windowIconified)(_GLFWwindow*); + GLFWbool (*windowVisible)(_GLFWwindow*); + GLFWbool (*windowMaximized)(_GLFWwindow*); + GLFWbool (*windowHovered)(_GLFWwindow*); + GLFWbool (*framebufferTransparent)(_GLFWwindow*); + float (*getWindowOpacity)(_GLFWwindow*); + void (*setWindowResizable)(_GLFWwindow*,GLFWbool); + void (*setWindowDecorated)(_GLFWwindow*,GLFWbool); + void (*setWindowFloating)(_GLFWwindow*,GLFWbool); + void (*setWindowOpacity)(_GLFWwindow*,float); + void (*setWindowMousePassthrough)(_GLFWwindow*,GLFWbool); + void (*pollEvents)(void); + void (*waitEvents)(void); + void (*waitEventsTimeout)(double); + void (*postEmptyEvent)(void); + // EGL + EGLenum (*getEGLPlatform)(EGLint**); + EGLNativeDisplayType (*getEGLNativeDisplay)(void); + EGLNativeWindowType (*getEGLNativeWindow)(_GLFWwindow*); + // vulkan + void (*getRequiredInstanceExtensions)(char**); + GLFWbool (*getPhysicalDevicePresentationSupport)(VkInstance,VkPhysicalDevice,uint32_t); + VkResult (*createWindowSurface)(VkInstance,_GLFWwindow*,const VkAllocationCallbacks*,VkSurfaceKHR*); +}; + +// Library global data +// +struct _GLFWlibrary +{ + GLFWbool initialized; + GLFWallocator allocator; + + _GLFWplatform platform; + + struct { + _GLFWinitconfig init; + _GLFWfbconfig framebuffer; + _GLFWwndconfig window; + _GLFWctxconfig context; + int refreshRate; + } hints; + + _GLFWerror* errorListHead; + _GLFWcursor* cursorListHead; + _GLFWwindow* windowListHead; + + _GLFWmonitor** monitors; + int monitorCount; + + GLFWbool joysticksInitialized; + _GLFWjoystick joysticks[GLFW_JOYSTICK_LAST + 1]; + _GLFWmapping* mappings; + int mappingCount; + + _GLFWtls errorSlot; + _GLFWtls contextSlot; + _GLFWmutex errorLock; + + struct { + uint64_t offset; + // This is defined in platform.h + GLFW_PLATFORM_LIBRARY_TIMER_STATE + } timer; + + struct { + EGLenum platform; + EGLDisplay display; + EGLint major, minor; + GLFWbool prefix; + + GLFWbool KHR_create_context; + GLFWbool KHR_create_context_no_error; + GLFWbool KHR_gl_colorspace; + GLFWbool KHR_get_all_proc_addresses; + GLFWbool KHR_context_flush_control; + GLFWbool EXT_client_extensions; + GLFWbool EXT_platform_base; + GLFWbool EXT_platform_x11; + GLFWbool EXT_platform_wayland; + GLFWbool EXT_present_opaque; + GLFWbool ANGLE_platform_angle; + GLFWbool ANGLE_platform_angle_opengl; + GLFWbool ANGLE_platform_angle_d3d; + GLFWbool ANGLE_platform_angle_vulkan; + GLFWbool ANGLE_platform_angle_metal; + + void* handle; + + PFN_eglGetConfigAttrib GetConfigAttrib; + PFN_eglGetConfigs GetConfigs; + PFN_eglGetDisplay GetDisplay; + PFN_eglGetError GetError; + PFN_eglInitialize Initialize; + PFN_eglTerminate Terminate; + PFN_eglBindAPI BindAPI; + PFN_eglCreateContext CreateContext; + PFN_eglDestroySurface DestroySurface; + PFN_eglDestroyContext DestroyContext; + PFN_eglCreateWindowSurface CreateWindowSurface; + PFN_eglMakeCurrent MakeCurrent; + PFN_eglSwapBuffers SwapBuffers; + PFN_eglSwapInterval SwapInterval; + PFN_eglQueryString QueryString; + PFN_eglGetProcAddress GetProcAddress; + + PFNEGLGETPLATFORMDISPLAYEXTPROC GetPlatformDisplayEXT; + PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC CreatePlatformWindowSurfaceEXT; + } egl; + + struct { + void* handle; + + PFN_OSMesaCreateContextExt CreateContextExt; + PFN_OSMesaCreateContextAttribs CreateContextAttribs; + PFN_OSMesaDestroyContext DestroyContext; + PFN_OSMesaMakeCurrent MakeCurrent; + PFN_OSMesaGetColorBuffer GetColorBuffer; + PFN_OSMesaGetDepthBuffer GetDepthBuffer; + PFN_OSMesaGetProcAddress GetProcAddress; + + } osmesa; + + struct { + GLFWbool available; + void* handle; + char* extensions[2]; + PFN_vkGetInstanceProcAddr GetInstanceProcAddr; + GLFWbool KHR_surface; + GLFWbool KHR_win32_surface; + GLFWbool MVK_macos_surface; + GLFWbool EXT_metal_surface; + GLFWbool KHR_xlib_surface; + GLFWbool KHR_xcb_surface; + GLFWbool KHR_wayland_surface; + } vk; + + struct { + GLFWmonitorfun monitor; + GLFWjoystickfun joystick; + } callbacks; + + // These are defined in platform.h + GLFW_PLATFORM_LIBRARY_WINDOW_STATE + GLFW_PLATFORM_LIBRARY_CONTEXT_STATE + GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE +}; + +// Global state shared between compilation units of GLFW +// +extern _GLFWlibrary _glfw; + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformInitTimer(void); +uint64_t _glfwPlatformGetTimerValue(void); +uint64_t _glfwPlatformGetTimerFrequency(void); + +GLFWbool _glfwPlatformCreateTls(_GLFWtls* tls); +void _glfwPlatformDestroyTls(_GLFWtls* tls); +void* _glfwPlatformGetTls(_GLFWtls* tls); +void _glfwPlatformSetTls(_GLFWtls* tls, void* value); + +GLFWbool _glfwPlatformCreateMutex(_GLFWmutex* mutex); +void _glfwPlatformDestroyMutex(_GLFWmutex* mutex); +void _glfwPlatformLockMutex(_GLFWmutex* mutex); +void _glfwPlatformUnlockMutex(_GLFWmutex* mutex); + +void* _glfwPlatformLoadModule(const char* path); +void _glfwPlatformFreeModule(void* module); +GLFWproc _glfwPlatformGetModuleSymbol(void* module, const char* name); + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused); +void _glfwInputWindowPos(_GLFWwindow* window, int xpos, int ypos); +void _glfwInputWindowSize(_GLFWwindow* window, int width, int height); +void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height); +void _glfwInputWindowContentScale(_GLFWwindow* window, + float xscale, float yscale); +void _glfwInputWindowIconify(_GLFWwindow* window, GLFWbool iconified); +void _glfwInputWindowMaximize(_GLFWwindow* window, GLFWbool maximized); +void _glfwInputWindowDamage(_GLFWwindow* window); +void _glfwInputWindowCloseRequest(_GLFWwindow* window); +void _glfwInputWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor); + +void _glfwInputKey(_GLFWwindow* window, + int key, int scancode, int action, int mods); +void _glfwInputChar(_GLFWwindow* window, + uint32_t codepoint, int mods, GLFWbool plain); +void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset); +void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods); +void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos); +void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered); +void _glfwInputDrop(_GLFWwindow* window, int count, const char** names); +void _glfwInputJoystick(_GLFWjoystick* js, int event); +void _glfwInputJoystickAxis(_GLFWjoystick* js, int axis, float value); +void _glfwInputJoystickButton(_GLFWjoystick* js, int button, char value); +void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value); + +void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement); +void _glfwInputMonitorWindow(_GLFWmonitor* monitor, _GLFWwindow* window); + +#if defined(__GNUC__) +void _glfwInputError(int code, const char* format, ...) + __attribute__((format(printf, 2, 3))); +#else +void _glfwInputError(int code, const char* format, ...); +#endif + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwSelectPlatform(int platformID, _GLFWplatform* platform); + +GLFWbool _glfwStringInExtensionString(const char* string, const char* extensions); +const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, + const _GLFWfbconfig* alternatives, + unsigned int count); +GLFWbool _glfwRefreshContextAttribs(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig); +GLFWbool _glfwIsValidContextConfig(const _GLFWctxconfig* ctxconfig); + +const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, + const GLFWvidmode* desired); +int _glfwCompareVideoModes(const GLFWvidmode* first, const GLFWvidmode* second); +_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM); +void _glfwFreeMonitor(_GLFWmonitor* monitor); +void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size); +void _glfwFreeGammaArrays(GLFWgammaramp* ramp); +void _glfwSplitBPP(int bpp, int* red, int* green, int* blue); + +void _glfwInitGamepadMappings(void); +_GLFWjoystick* _glfwAllocJoystick(const char* name, + const char* guid, + int axisCount, + int buttonCount, + int hatCount); +void _glfwFreeJoystick(_GLFWjoystick* js); +void _glfwCenterCursorInContentArea(_GLFWwindow* window); + +GLFWbool _glfwInitEGL(void); +void _glfwTerminateEGL(void); +GLFWbool _glfwCreateContextEGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig); +#if defined(_GLFW_X11) +GLFWbool _glfwChooseVisualEGL(const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig, + Visual** visual, int* depth); +#endif /*_GLFW_X11*/ + +GLFWbool _glfwInitOSMesa(void); +void _glfwTerminateOSMesa(void); +GLFWbool _glfwCreateContextOSMesa(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig); + +GLFWbool _glfwInitVulkan(int mode); +void _glfwTerminateVulkan(void); +const char* _glfwGetVulkanResultString(VkResult result); + +size_t _glfwEncodeUTF8(char* s, uint32_t codepoint); +char** _glfwParseUriList(char* text, int* count); + +char* _glfw_strdup(const char* source); +int _glfw_min(int a, int b); +int _glfw_max(int a, int b); +float _glfw_fminf(float a, float b); +float _glfw_fmaxf(float a, float b); + +void* _glfw_calloc(size_t count, size_t size); +void* _glfw_realloc(void* pointer, size_t size); +void _glfw_free(void* pointer); + diff --git a/thirdparty/imgui_suite/glfw/src/linux_joystick.c b/thirdparty/imgui_suite/glfw/src/linux_joystick.c new file mode 100644 index 00000000000..366bda2dfff --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/linux_joystick.c @@ -0,0 +1,431 @@ +//======================================================================== +// GLFW 3.4 Linux - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef SYN_DROPPED // < v2.6.39 kernel headers +// Workaround for CentOS-6, which is supported till 2020-11-30, but still on v2.6.32 +#define SYN_DROPPED 3 +#endif + +// Apply an EV_KEY event to the specified joystick +// +static void handleKeyEvent(_GLFWjoystick* js, int code, int value) +{ + _glfwInputJoystickButton(js, + js->linjs.keyMap[code - BTN_MISC], + value ? GLFW_PRESS : GLFW_RELEASE); +} + +// Apply an EV_ABS event to the specified joystick +// +static void handleAbsEvent(_GLFWjoystick* js, int code, int value) +{ + const int index = js->linjs.absMap[code]; + + if (code >= ABS_HAT0X && code <= ABS_HAT3Y) + { + static const char stateMap[3][3] = + { + { GLFW_HAT_CENTERED, GLFW_HAT_UP, GLFW_HAT_DOWN }, + { GLFW_HAT_LEFT, GLFW_HAT_LEFT_UP, GLFW_HAT_LEFT_DOWN }, + { GLFW_HAT_RIGHT, GLFW_HAT_RIGHT_UP, GLFW_HAT_RIGHT_DOWN }, + }; + + const int hat = (code - ABS_HAT0X) / 2; + const int axis = (code - ABS_HAT0X) % 2; + int* state = js->linjs.hats[hat]; + + // NOTE: Looking at several input drivers, it seems all hat events use + // -1 for left / up, 0 for centered and 1 for right / down + if (value == 0) + state[axis] = 0; + else if (value < 0) + state[axis] = 1; + else if (value > 0) + state[axis] = 2; + + _glfwInputJoystickHat(js, index, stateMap[state[0]][state[1]]); + } + else + { + const struct input_absinfo* info = &js->linjs.absInfo[code]; + float normalized = value; + + const int range = info->maximum - info->minimum; + if (range) + { + // Normalize to 0.0 -> 1.0 + normalized = (normalized - info->minimum) / range; + // Normalize to -1.0 -> 1.0 + normalized = normalized * 2.0f - 1.0f; + } + + _glfwInputJoystickAxis(js, index, normalized); + } +} + +// Poll state of absolute axes +// +static void pollAbsState(_GLFWjoystick* js) +{ + for (int code = 0; code < ABS_CNT; code++) + { + if (js->linjs.absMap[code] < 0) + continue; + + struct input_absinfo* info = &js->linjs.absInfo[code]; + + if (ioctl(js->linjs.fd, EVIOCGABS(code), info) < 0) + continue; + + handleAbsEvent(js, code, info->value); + } +} + +#define isBitSet(bit, arr) (arr[(bit) / 8] & (1 << ((bit) % 8))) + +// Attempt to open the specified joystick device +// +static GLFWbool openJoystickDevice(const char* path) +{ + for (int jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + if (!_glfw.joysticks[jid].connected) + continue; + if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0) + return GLFW_FALSE; + } + + _GLFWjoystickLinux linjs = {0}; + linjs.fd = open(path, O_RDONLY | O_NONBLOCK); + if (linjs.fd == -1) + return GLFW_FALSE; + + char evBits[(EV_CNT + 7) / 8] = {0}; + char keyBits[(KEY_CNT + 7) / 8] = {0}; + char absBits[(ABS_CNT + 7) / 8] = {0}; + struct input_id id; + + if (ioctl(linjs.fd, EVIOCGBIT(0, sizeof(evBits)), evBits) < 0 || + ioctl(linjs.fd, EVIOCGBIT(EV_KEY, sizeof(keyBits)), keyBits) < 0 || + ioctl(linjs.fd, EVIOCGBIT(EV_ABS, sizeof(absBits)), absBits) < 0 || + ioctl(linjs.fd, EVIOCGID, &id) < 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Linux: Failed to query input device: %s", + strerror(errno)); + close(linjs.fd); + return GLFW_FALSE; + } + + // Ensure this device supports the events expected of a joystick + if (!isBitSet(EV_ABS, evBits)) + { + close(linjs.fd); + return GLFW_FALSE; + } + + char name[256] = ""; + + if (ioctl(linjs.fd, EVIOCGNAME(sizeof(name)), name) < 0) + strncpy(name, "Unknown", sizeof(name)); + + char guid[33] = ""; + + // Generate a joystick GUID that matches the SDL 2.0.5+ one + if (id.vendor && id.product && id.version) + { + sprintf(guid, "%02x%02x0000%02x%02x0000%02x%02x0000%02x%02x0000", + id.bustype & 0xff, id.bustype >> 8, + id.vendor & 0xff, id.vendor >> 8, + id.product & 0xff, id.product >> 8, + id.version & 0xff, id.version >> 8); + } + else + { + sprintf(guid, "%02x%02x0000%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x00", + id.bustype & 0xff, id.bustype >> 8, + name[0], name[1], name[2], name[3], + name[4], name[5], name[6], name[7], + name[8], name[9], name[10]); + } + + int axisCount = 0, buttonCount = 0, hatCount = 0; + + for (int code = BTN_MISC; code < KEY_CNT; code++) + { + if (!isBitSet(code, keyBits)) + continue; + + linjs.keyMap[code - BTN_MISC] = buttonCount; + buttonCount++; + } + + for (int code = 0; code < ABS_CNT; code++) + { + linjs.absMap[code] = -1; + if (!isBitSet(code, absBits)) + continue; + + if (code >= ABS_HAT0X && code <= ABS_HAT3Y) + { + linjs.absMap[code] = hatCount; + hatCount++; + // Skip the Y axis + code++; + } + else + { + if (ioctl(linjs.fd, EVIOCGABS(code), &linjs.absInfo[code]) < 0) + continue; + + linjs.absMap[code] = axisCount; + axisCount++; + } + } + + _GLFWjoystick* js = + _glfwAllocJoystick(name, guid, axisCount, buttonCount, hatCount); + if (!js) + { + close(linjs.fd); + return GLFW_FALSE; + } + + strncpy(linjs.path, path, sizeof(linjs.path) - 1); + memcpy(&js->linjs, &linjs, sizeof(linjs)); + + pollAbsState(js); + + _glfwInputJoystick(js, GLFW_CONNECTED); + return GLFW_TRUE; +} + +#undef isBitSet + +// Frees all resources associated with the specified joystick +// +static void closeJoystick(_GLFWjoystick* js) +{ + _glfwInputJoystick(js, GLFW_DISCONNECTED); + close(js->linjs.fd); + _glfwFreeJoystick(js); +} + +// Lexically compare joysticks by name; used by qsort +// +static int compareJoysticks(const void* fp, const void* sp) +{ + const _GLFWjoystick* fj = fp; + const _GLFWjoystick* sj = sp; + return strcmp(fj->linjs.path, sj->linjs.path); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwDetectJoystickConnectionLinux(void) +{ + if (_glfw.linjs.inotify <= 0) + return; + + ssize_t offset = 0; + char buffer[16384]; + const ssize_t size = read(_glfw.linjs.inotify, buffer, sizeof(buffer)); + + while (size > offset) + { + regmatch_t match; + const struct inotify_event* e = (struct inotify_event*) (buffer + offset); + + offset += sizeof(struct inotify_event) + e->len; + + if (regexec(&_glfw.linjs.regex, e->name, 1, &match, 0) != 0) + continue; + + char path[PATH_MAX]; + snprintf(path, sizeof(path), "/dev/input/%s", e->name); + + if (e->mask & (IN_CREATE | IN_ATTRIB)) + openJoystickDevice(path); + else if (e->mask & IN_DELETE) + { + for (int jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + if (strcmp(_glfw.joysticks[jid].linjs.path, path) == 0) + { + closeJoystick(_glfw.joysticks + jid); + break; + } + } + } + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwInitJoysticksLinux(void) +{ + const char* dirname = "/dev/input"; + + _glfw.linjs.inotify = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); + if (_glfw.linjs.inotify > 0) + { + // HACK: Register for IN_ATTRIB to get notified when udev is done + // This works well in practice but the true way is libudev + + _glfw.linjs.watch = inotify_add_watch(_glfw.linjs.inotify, + dirname, + IN_CREATE | IN_ATTRIB | IN_DELETE); + } + + // Continue without device connection notifications if inotify fails + + if (regcomp(&_glfw.linjs.regex, "^event[0-9]\\+$", 0) != 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Linux: Failed to compile regex"); + return GLFW_FALSE; + } + + int count = 0; + + DIR* dir = opendir(dirname); + if (dir) + { + struct dirent* entry; + + while ((entry = readdir(dir))) + { + regmatch_t match; + + if (regexec(&_glfw.linjs.regex, entry->d_name, 1, &match, 0) != 0) + continue; + + char path[PATH_MAX]; + + snprintf(path, sizeof(path), "%s/%s", dirname, entry->d_name); + + if (openJoystickDevice(path)) + count++; + } + + closedir(dir); + } + + // Continue with no joysticks if enumeration fails + + qsort(_glfw.joysticks, count, sizeof(_GLFWjoystick), compareJoysticks); + return GLFW_TRUE; +} + +void _glfwTerminateJoysticksLinux(void) +{ + for (int jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + _GLFWjoystick* js = _glfw.joysticks + jid; + if (js->connected) + closeJoystick(js); + } + + if (_glfw.linjs.inotify > 0) + { + if (_glfw.linjs.watch > 0) + inotify_rm_watch(_glfw.linjs.inotify, _glfw.linjs.watch); + + close(_glfw.linjs.inotify); + regfree(&_glfw.linjs.regex); + } +} + +GLFWbool _glfwPollJoystickLinux(_GLFWjoystick* js, int mode) +{ + // Read all queued events (non-blocking) + for (;;) + { + struct input_event e; + + errno = 0; + if (read(js->linjs.fd, &e, sizeof(e)) < 0) + { + // Reset the joystick slot if the device was disconnected + if (errno == ENODEV) + closeJoystick(js); + + break; + } + + if (e.type == EV_SYN) + { + if (e.code == SYN_DROPPED) + _glfw.linjs.dropped = GLFW_TRUE; + else if (e.code == SYN_REPORT) + { + _glfw.linjs.dropped = GLFW_FALSE; + pollAbsState(js); + } + } + + if (_glfw.linjs.dropped) + continue; + + if (e.type == EV_KEY) + handleKeyEvent(js, e.code, e.value); + else if (e.type == EV_ABS) + handleAbsEvent(js, e.code, e.value); + } + + return js->connected; +} + +const char* _glfwGetMappingNameLinux(void) +{ + return "Linux"; +} + +void _glfwUpdateGamepadGUIDLinux(char* guid) +{ +} + diff --git a/thirdparty/imgui_suite/glfw/src/linux_joystick.h b/thirdparty/imgui_suite/glfw/src/linux_joystick.h new file mode 100644 index 00000000000..f898b2b9fcf --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/linux_joystick.h @@ -0,0 +1,65 @@ +//======================================================================== +// GLFW 3.4 Linux - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include +#include +#include + +#define GLFW_LINUX_JOYSTICK_STATE _GLFWjoystickLinux linjs; +#define GLFW_LINUX_LIBRARY_JOYSTICK_STATE _GLFWlibraryLinux linjs; + +#define GLFW_BUILD_LINUX_MAPPINGS + +// Linux-specific joystick data +// +typedef struct _GLFWjoystickLinux +{ + int fd; + char path[PATH_MAX]; + int keyMap[KEY_CNT - BTN_MISC]; + int absMap[ABS_CNT]; + struct input_absinfo absInfo[ABS_CNT]; + int hats[4][2]; +} _GLFWjoystickLinux; + +// Linux-specific joystick API data +// +typedef struct _GLFWlibraryLinux +{ + int inotify; + int watch; + regex_t regex; + GLFWbool dropped; +} _GLFWlibraryLinux; + +void _glfwDetectJoystickConnectionLinux(void); + +GLFWbool _glfwInitJoysticksLinux(void); +void _glfwTerminateJoysticksLinux(void); +GLFWbool _glfwPollJoystickLinux(_GLFWjoystick* js, int mode); +const char* _glfwGetMappingNameLinux(void); +void _glfwUpdateGamepadGUIDLinux(char* guid); + diff --git a/thirdparty/imgui_suite/glfw/src/mappings.h b/thirdparty/imgui_suite/glfw/src/mappings.h new file mode 100644 index 00000000000..d7c16579ad2 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/mappings.h @@ -0,0 +1,1009 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2006-2018 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// As mappings.h.in, this file is used by CMake to produce the mappings.h +// header file. If you are adding a GLFW specific gamepad mapping, this is +// where to put it. +//======================================================================== +// As mappings.h, this provides all pre-defined gamepad mappings, including +// all available in SDL_GameControllerDB. Do not edit this file. Any gamepad +// mappings not specific to GLFW should be submitted to SDL_GameControllerDB. +// This file can be re-generated from mappings.h.in and the upstream +// gamecontrollerdb.txt with the 'update_mappings' CMake target. +//======================================================================== + +// All gamepad mappings not labeled GLFW are copied from the +// SDL_GameControllerDB project under the following license: +// +// Simple DirectMedia Layer +// Copyright (C) 1997-2013 Sam Lantinga +// +// This software is provided 'as-is', without any express or implied warranty. +// In no event will the authors be held liable for any damages arising from the +// use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not be +// misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source distribution. + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" +#endif + +const char* _glfwDefaultMappings[] = +{ +#if defined(GLFW_BUILD_WIN32_MAPPINGS) +"03000000fa2d00000100000000000000,3DRUDDER,leftx:a0,lefty:a1,rightx:a5,righty:a2,platform:Windows,", +"03000000c82d00002038000000000000,8bitdo,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000951000000000000,8BitDo Dogbone Modkit,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,start:b11,platform:Windows,", +"03000000c82d000011ab000000000000,8BitDo F30,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00001038000000000000,8BitDo F30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a5,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000090000000000000,8BitDo FC30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000650000000000000,8BitDo M30,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:a4,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:b7,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c82d00005106000000000000,8BitDo M30 Gamepad,a:b1,b:b0,back:b10,guide:b2,leftshoulder:b6,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b9,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000151000000000000,8BitDo M30 ModKit,a:b0,b:b1,back:b10,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,rightshoulder:b6,righttrigger:b7,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c82d00000310000000000000,8BitDo N30,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c82d00002028000000000000,8BitDo N30,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a5,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00008010000000000000,8BitDo N30,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c82d00000451000000000000,8BitDo N30 Modkit,a:b1,b:b0,back:b10,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,start:b11,platform:Windows,", +"03000000c82d00000190000000000000,8BitDo N30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00001590000000000000,8BitDo N30 Pro 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a5,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00006528000000000000,8BitDo N30 Pro 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000022000000090000000000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000203800000900000000000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000360000000000000,8BitDo Pro 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00002867000000000000,8BitDo S30 Modkit,a:b0,b:b1,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b8,lefttrigger:b9,rightshoulder:b6,righttrigger:b7,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c82d00000130000000000000,8BitDo SF30,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a5,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000060000000000000,8Bitdo SF30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000061000000000000,8Bitdo SF30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d000021ab000000000000,8BitDo SFC30,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000102800000900000000000000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00003028000000000000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000030000000000000,8BitDo SN30,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00001290000000000000,8BitDo SN30,a:b1,b:b0,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d000020ab000000000000,8BitDo SN30,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a5,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00004028000000000000,8BitDo SN30,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a5,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00006228000000000000,8BitDo SN30,a:b1,b:b0,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000351000000000000,8BitDo SN30 Modkit,a:b1,b:b0,back:b10,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b6,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000160000000000000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000161000000000000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000121000000000000,8BitDo SN30 Pro for Android,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c82d00000260000000000000,8BitDo SN30 Pro+,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000261000000000000,8BitDo SN30 Pro+,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00000031000000000000,8BitDo Wireless Adapter,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c82d00001890000000000000,8BitDo Zero 2,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Windows,", +"03000000c82d00003032000000000000,8BitDo Zero 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Windows,", +"03000000a00500003232000000000000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Windows,", +"03000000a30c00002700000000000000,Astro City Mini,a:b2,b:b1,back:b8,leftx:a3,lefty:a4,rightshoulder:b4,righttrigger:b5,start:b9,x:b3,y:b0,platform:Windows,", +"03000000a30c00002800000000000000,Astro City Mini,a:b2,b:b1,back:b8,leftx:a3,lefty:a4,rightshoulder:b4,righttrigger:b5,start:b9,x:b3,y:b0,platform:Windows,", +"030000008f0e00001200000000000000,Acme GA-02,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Windows,", +"03000000c01100000355000011010000,ACRUX USB GAME PAD,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000fa190000f0ff000000000000,Acteck AGJ-3200,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"030000006f0e00001413000000000000,Afterglow,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000341a00003608000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00000263000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00001101000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00001401000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00001402000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00001901000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00001a01000000000000,Afterglow PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d62000001d57000000000000,Airflo PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000491900001904000000000000,Amazon Luna Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,misc1:b9,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b7,x:b2,y:b3,platform:Windows,", +"03000000710100001904000000000000,Amazon Luna Controller,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b11,leftshoulder:b5,leftstick:b8,leftx:a0,lefty:a1,misc1:b9,rightshoulder:b4,rightstick:b7,rightx:a3,righty:a4,start:b6,x:b3,y:b2,platform:Windows,", +"03000000ef0500000300000000000000,AxisPad,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,start:b11,x:b0,y:b1,platform:Windows,", +"03000000d6200000e557000000000000,Batarang,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000c01100001352000000000000,Battalife Joystick,a:b6,b:b7,back:b2,leftshoulder:b0,leftx:a0,lefty:a1,rightshoulder:b1,start:b3,x:b4,y:b5,platform:Windows,", +"030000006f0e00003201000000000000,Battlefield 4 PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d62000002a79000000000000,BDA PS4 Fightpad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000bc2000006012000000000000,Betop 2126F,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000bc2000000055000000000000,Betop BFM Gamepad,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000bc2000006312000000000000,Betop Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000bc2000006321000000000000,BETOP CONTROLLER,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000bc2000006412000000000000,Betop Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000c01100000555000000000000,Betop Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000c01100000655000000000000,Betop Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000790000000700000000000000,Betop Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b3,y:b0,platform:Windows,", +"03000000808300000300000000000000,Betop Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b3,y:b0,platform:Windows,", +"030000006b1400000055000000000000,Bigben PS3 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000006b1400000103000000000000,Bigben PS3 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Windows,", +"03000000120c0000210e000000000000,Brook Mars,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"0300000066f700000500000000000000,BrutalLegendTest,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d81d00000b00000000000000,BUFFALO BSGP1601 Series ,a:b5,b:b3,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b8,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b9,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b13,x:b4,y:b2,platform:Windows,", +"03000000e82000006058000000000000,Cideko AK08b,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000457500000401000000000000,Cobra,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000005e0400008e02000000000000,Controller (XBOX 360 For Windows),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:+a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:-a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"030000005e040000a102000000000000,Controller (Xbox 360 Wireless Receiver for Windows),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:+a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:-a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"030000005e040000ff02000000000000,Controller (Xbox One For Windows) - Wired,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:+a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:-a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"030000005e040000ea02000000000000,Controller (Xbox One For Windows) - Wireless,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:+a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:-a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"03000000260900008888000000000000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a4,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,platform:Windows,", +"03000000a306000022f6000000000000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000451300000830000000000000,Defender Game Racer X7,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000007d0400000840000000000000,Destroyer Tiltpad,+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b1,b:b2,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,x:b0,y:b3,platform:Windows,", +"03000000791d00000103000000000000,Dual Box WII,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000bd12000002e0000000000000,Dual USB Vibration Joystick,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b10,righttrigger:b5,rightx:a3,righty:a2,start:b11,x:b3,y:b0,platform:Windows,", +"030000008f0e00000910000000000000,DualShock 2,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b10,righttrigger:b5,rightx:a3,righty:a2,start:b11,x:b3,y:b0,platform:Windows,", +"030000006f0e00003001000000000000,EA SPORTS PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000b80500000410000000000000,Elecom Gamepad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b1,platform:Windows,", +"03000000b80500000610000000000000,Elecom Gamepad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b1,platform:Windows,", +"03000000120c0000f61c000000000000,Elite,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000008f0e00000f31000000000000,EXEQ,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Windows,", +"03000000341a00000108000000000000,EXEQ RF USB Gamepad 8206,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000006f0e00008401000000000000,Faceoff Deluxe+ Audio Wired Controller for Nintendo Switch,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00008001000000000000,Faceoff Wired Pro Controller for Nintendo Switch,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000852100000201000000000000,FF-GP1,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008500000000000000,Fighting Commander 2016 PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008400000000000000,Fighting Commander 5,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008700000000000000,Fighting Stick mini 4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008800000000000000,Fighting Stick mini 4,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b8,x:b0,y:b3,platform:Windows,", +"030000000d0f00002700000000000000,FIGHTING STICK V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"78696e70757403000000000000000000,Fightstick TES,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,start:b7,x:b2,y:b3,platform:Windows,", +"03000000790000002201000000000000,Game Controller for PC,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"0300000066f700000100000000000000,Game VIB Joystick,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,start:b11,x:b0,y:b1,platform:Windows,", +"03000000260900002625000000000000,Gamecube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b6,lefttrigger:a4,leftx:a0,lefty:a1,righttrigger:a5,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Windows,", +"03000000790000004618000000000000,GameCube Controller Adapter,a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"030000008f0e00000d31000000000000,GAMEPAD 3 TURBO,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000280400000140000000000000,GamePad Pro USB,a:b1,b:b2,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"03000000ac0500003d03000000000000,GameSir,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000ac0500004d04000000000000,GameSir,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000ffff00000000000000000000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000c01100000140000000000000,GameStop PS4 Fun Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000009b2800003200000000000000,GC/N64 to USB v3.4,a:b0,b:b7,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,lefttrigger:+a5,leftx:a0,lefty:a1,rightshoulder:b2,righttrigger:+a2,rightx:a3,righty:a4,start:b3,x:b1,y:b8,platform:Windows,", +"030000009b2800006000000000000000,GC/N64 to USB v3.6,a:b0,b:b7,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,lefttrigger:+a5,leftx:a0,lefty:a1,rightshoulder:b2,righttrigger:+a2,rightx:a3,righty:a4,start:b3,x:b1,y:b8,platform:Windows,", +"030000008305000009a0000000000000,Genius,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000008305000031b0000000000000,Genius Maxfire Blaze 3,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000451300000010000000000000,Genius Maxfire Grandias 12,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000005c1a00003330000000000000,Genius MaxFire Grandias 12V,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b4,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Windows,", +"03000000300f00000b01000000000000,GGE909 Recoil Pad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000f0250000c283000000000000,Gioteck,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000f025000021c1000000000000,Gioteck PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000f0250000c383000000000000,Gioteck VX2 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000f0250000c483000000000000,Gioteck VX2 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"030000007d0400000540000000000000,Gravis Eliminator GamePad Pro,a:b1,b:b2,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"03000000341a00000302000000000000,Hama Scorpad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00004900000000000000,Hatsune Miku Sho Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000001008000001e1000000000000,Havit HV-G60,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d81400000862000000000000,HitBox Edition Cthulhu+,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,lefttrigger:b4,rightshoulder:b7,righttrigger:b6,start:b9,x:b0,y:b3,platform:Windows,", +"03000000632500002605000000000000,HJD-X,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"030000000d0f00002d00000000000000,Hori Fighting Commander 3 Pro,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005f00000000000000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005e00000000000000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00004000000000000000,Hori Fighting Stick Mini 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,lefttrigger:b4,rightshoulder:b7,righttrigger:b6,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005400000000000000,Hori Pad 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00000900000000000000,Hori Pad 3 Turbo,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00004d00000000000000,Hori Pad A,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00009200000000000000,Hori Pokken Tournament DX Pro Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00001600000000007803,HORI Real Arcade Pro EX-SE (Xbox 360),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,start:b7,x:b2,y:b3,platform:Windows,", +"030000000d0f00009c00000000000000,Hori TAC Pro,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f0000c100000000000000,Horipad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006e00000000000000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006600000000000000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005500000000000000,Horipad 4 FPS,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f0000ee00000000000000,HORIPAD mini4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000250900000017000000000000,HRAP2 on PS/SS/N64 Joypad to USB BOX,a:b2,b:b1,back:b9,leftshoulder:b5,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b6,start:b8,x:b3,y:b0,platform:Windows,", +"030000008f0e00001330000000000000,HuiJia SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d81d00000f00000000000000,iBUFFALO BSGP1204 Series,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d81d00001000000000000000,iBUFFALO BSGP1204P Series,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000830500006020000000000000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Windows,", +"03000000b50700001403000000000000,Impact Black,a:b2,b:b3,back:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"030000006f0e00002401000000000000,INJUSTICE FightStick PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"03000000ac0500002c02000000000000,IPEGA,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b8,leftstick:b13,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b9,rightstick:b14,righttrigger:b7,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000491900000204000000000000,Ipega PG-9023,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000491900000304000000000000,Ipega PG-9087 - Bluetooth Gamepad,+righty:+a5,-righty:-a4,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,start:b11,x:b3,y:b4,platform:Windows,", +"030000006e0500000a20000000000000,JC-DUX60 ELECOM MMO Gamepad,a:b2,b:b3,back:b17,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b8,leftstick:b14,lefttrigger:b12,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b15,righttrigger:b13,rightx:a3,righty:a4,start:b20,x:b0,y:b1,platform:Windows,", +"030000006e0500000520000000000000,JC-P301U,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,start:b11,x:b0,y:b1,platform:Windows,", +"030000006e0500000320000000000000,JC-U3613M (DInput),a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,start:b11,x:b0,y:b1,platform:Windows,", +"030000006e0500000720000000000000,JC-W01U,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b1,platform:Windows,", +"030000007e0500000620000000000000,Joy-Con (L),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b13,leftshoulder:b4,leftstick:b10,rightshoulder:b5,start:b8,x:b2,y:b3,platform:Windows,", +"030000007e0500000620000001000000,Joy-Con (L),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b13,leftshoulder:b4,leftstick:b10,rightshoulder:b5,start:b8,x:b2,y:b3,platform:Windows,", +"030000007e0500000720000000000000,Joy-Con (R),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b12,leftshoulder:b4,leftstick:b11,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Windows,", +"030000007e0500000720000001000000,Joy-Con (R),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b12,leftshoulder:b4,leftstick:b11,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Windows,", +"03000000bd12000003c0000010010000,Joypad Alpha Shock,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000bd12000003c0000000000000,JY-P70UR,a:b1,b:b0,back:b5,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b8,rightstick:b11,righttrigger:b9,rightx:a3,righty:a2,start:b4,x:b3,y:b2,platform:Windows,", +"03000000242f00002d00000000000000,JYS Wireless Adapter,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000242f00008a00000000000000,JYS Wireless Adapter,a:b1,b:b4,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b0,y:b3,platform:Windows,", +"03000000790000000200000000000000,King PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b3,y:b0,platform:Windows,", +"030000006d040000d1ca000000000000,Logitech ChillStream,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d040000d2ca000000000000,Logitech Cordless Precision,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d04000011c2000000000000,Logitech Cordless Wingman,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b9,leftstick:b5,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b2,righttrigger:b7,rightx:a3,righty:a4,x:b4,platform:Windows,", +"030000006d04000016c2000000000000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d04000018c2000000000000,Logitech F510 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d04000019c2000000000000,Logitech F710 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d0400001ac2000000000000,Logitech Precision Gamepad,a:b1,b:b2,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000006d0400000ac2000000000000,Logitech WingMan RumblePad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b2,rightx:a3,righty:a4,x:b3,y:b4,platform:Windows,", +"03000000380700006652000000000000,Mad Catz C.T.R.L.R,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700005032000000000000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700005082000000000000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008433000000000000,Mad Catz FightStick TE S+ (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008483000000000000,Mad Catz FightStick TE S+ (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008134000000000000,Mad Catz FightStick TE2+ PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b7,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b4,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008184000000000000,Mad Catz FightStick TE2+ PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,leftstick:b10,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b4,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700006252000000000000,Mad Catz Micro C.T.R.L.R,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008034000000000000,Mad Catz TE2 PS3 Fightstick,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008084000000000000,Mad Catz TE2 PS4 Fightstick,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700008532000000000000,Madcatz Arcade Fightstick TE S PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700003888000000000000,Madcatz Arcade Fightstick TE S+ PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000380700001888000000000000,MadCatz SFIV FightStick PS3,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b5,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b4,righttrigger:b6,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000380700008081000000000000,MADCATZ SFV Arcade FightStick Alpha PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000002a0600001024000000000000,Matricom,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b2,y:b3,platform:Windows,", +"030000009f000000adbb000000000000,MaxJoypad Virtual Controller,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Windows,", +"03000000250900000128000000000000,Mayflash Arcade Stick,a:b1,b:b2,back:b8,leftshoulder:b0,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b3,righttrigger:b7,start:b9,x:b5,y:b6,platform:Windows,", +"03000000790000004418000000000000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000790000004318000000000000,Mayflash GameCube Controller Adapter,a:b1,b:b2,back:b0,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b0,leftshoulder:b4,leftstick:b0,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b0,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000242f00007300000000000000,Mayflash Magic NS,a:b1,b:b4,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b0,y:b3,platform:Windows,", +"0300000079000000d218000000000000,Mayflash Magic NS,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d620000010a7000000000000,Mayflash Magic NS,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000008f0e00001030000000000000,Mayflash USB Adapter for original Sega Saturn controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b5,rightshoulder:b2,righttrigger:b7,start:b9,x:b3,y:b4,platform:Windows,", +"0300000025090000e803000000000000,Mayflash Wii Classic Controller,a:b1,b:b0,back:b8,dpdown:b13,dpleft:b12,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Windows,", +"03000000790000000018000000000000,Mayflash WiiU Pro Game Controller Adapter (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000790000002418000000000000,Mega Drive,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,rightshoulder:b2,start:b9,x:b3,y:b4,platform:Windows,", +"03000000380700006382000000000000,MLG GamePad PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000c62400002a89000000000000,MOGA XP5-A Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c62400002b89000000000000,MOGA XP5-A Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c62400001a89000000000000,MOGA XP5-X Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000c62400001b89000000000000,MOGA XP5-X Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000efbe0000edfe000000000000,Monect Virtual Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b0,platform:Windows,", +"03000000250900006688000000000000,MP-8866 Super Dual Box,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Windows,", +"030000006b140000010c000000000000,NACON GC-400ES,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000921200004b46000000000000,NES 2-port Adapter,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,start:b11,platform:Windows,", +"03000000790000004518000000000000,NEXILUX GAMECUBE Controller Adapter,platform:Windows,a:b1,b:b0,x:b2,y:b3,start:b9,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a5,righty:a2,lefttrigger:a3,righttrigger:a4,", +"030000001008000001e5000000000000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,righttrigger:b6,start:b9,x:b3,y:b0,platform:Windows,", +"03000000152000000182000000000000,NGDS,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b3,y:b0,platform:Windows,", +"03000000bd12000015d0000000000000,Nintendo Retrolink USB Super SNES Classic Controller,a:b2,b:b1,back:b8,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Windows,", +"030000007e0500000920000000000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000000d0500000308000000000000,Nostromo N45,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,leftstick:b12,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b10,x:b2,y:b3,platform:Windows,", +"03000000550900001472000000000000,NVIDIA Controller v01.04,a:b11,b:b10,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b7,leftstick:b5,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b4,righttrigger:a5,rightx:a3,righty:a6,start:b3,x:b9,y:b8,platform:Windows,", +"030000004b120000014d000000000000,NYKO AIRFLO,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:a3,leftstick:a0,lefttrigger:b6,rightshoulder:b5,rightstick:a2,righttrigger:b7,start:b9,x:b2,y:b3,platform:Windows,", +"03000000d620000013a7000000000000,NSW wired controller,platform:Windows,a:b1,b:b2,x:b0,y:b3,back:b8,guide:b12,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,", +"03000000782300000a10000000000000,Onlive Wireless Controller,a:b15,b:b14,back:b7,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b11,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a3,righty:a4,start:b6,x:b13,y:b12,platform:Windows,", +"03000000d62000006d57000000000000,OPP PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006b14000001a1000000000000,Orange Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b2,y:b3,platform:Windows,", +"03000000362800000100000000000000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:b13,rightx:a3,righty:a4,x:b1,y:b2,platform:Windows,", +"03000000120c0000f60e000000000000,P4 Wired Gamepad,a:b1,b:b2,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b5,lefttrigger:b7,rightshoulder:b4,righttrigger:b6,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00000901000000000000,PDP Versus Fighting Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000008f0e00000300000000000000,Piranha xtreme,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"030000004c050000da0c000000000000,PlayStation Classic Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,lefttrigger:b4,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,platform:Windows,", +"030000004c0500003713000000000000,PlayStation Vita,a:b1,b:b2,back:b8,dpdown:b13,dpleft:b15,dpright:b14,dpup:b12,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d62000006dca000000000000,PowerA Pro Ex,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d62000009557000000000000,Pro Elite PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d62000009f31000000000000,Pro Ex mini PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000d6200000c757000000000000,Pro Ex mini PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000632500002306000000000000,PS Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Windows,", +"03000000e30500009605000000000000,PS to USB convert cable,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Windows,", +"03000000100800000100000000000000,PS1 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"030000008f0e00007530000000000000,PS1 Controller,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b1,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000100800000300000000000000,PS2 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a4,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000250900008888000000000000,PS2 Controller,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Windows,", +"03000000666600006706000000000000,PS2 Controller,a:b2,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,leftshoulder:b6,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b10,righttrigger:b5,rightx:a2,righty:a3,start:b11,x:b3,y:b0,platform:Windows,", +"030000006b1400000303000000000000,PS2 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000009d0d00001330000000000000,PS2 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000250900000500000000000000,PS3 Controller,a:b2,b:b1,back:b9,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b0,y:b3,platform:Windows,", +"030000004c0500006802000000000000,PS3 Controller,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b10,lefttrigger:a3~,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:a4~,rightx:a2,righty:a5,start:b8,x:b3,y:b0,platform:Windows,", +"03000000632500007505000000000000,PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000888800000803000000000000,PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b9,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:b7,rightx:a3,righty:a4,start:b11,x:b0,y:b3,platform:Windows,", +"030000008f0e00001431000000000000,PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000003807000056a8000000000000,PS3 RF pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000100000008200000000000000,PS360+ v1.66,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:h0.4,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000004c050000a00b000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000004c050000c405000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000004c050000cc09000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000004c050000e60c000000000000,PS5 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,misc1:b13,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000ff000000cb01000000000000,PSP,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b7,x:b2,y:b3,platform:Windows,", +"03000000300f00000011000000000000,QanBa Arcade JoyStick 1008,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b10,x:b0,y:b3,platform:Windows,", +"03000000300f00001611000000000000,QanBa Arcade JoyStick 4018,a:b1,b:b2,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b8,x:b0,y:b3,platform:Windows,", +"03000000222c00000020000000000000,QANBA DRONE ARCADE JOYSTICK,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,rightshoulder:b5,righttrigger:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00001210000000000000,QanBa Joystick Plus,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Windows,", +"03000000341a00000104000000000000,QanBa Joystick Q4RAF,a:b5,b:b6,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b0,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b3,righttrigger:b7,start:b9,x:b1,y:b2,platform:Windows,", +"03000000222c00000223000000000000,Qanba Obsidian Arcade Joystick PS3 Mode,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000222c00000023000000000000,Qanba Obsidian Arcade Joystick PS4 Mode,a:b1,b:b2,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000321500000003000000000000,Razer Hydra,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"03000000321500000204000000000000,Razer Panthera (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000321500000104000000000000,Razer Panthera (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000321500000507000000000000,Razer Raiju Mobile,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000321500000707000000000000,Razer Raiju Mobile,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000321500000011000000000000,Razer Raion Fightpad for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000321500000009000000000000,Razer Serval,+lefty:+a2,-lefty:-a1,a:b0,b:b1,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,leftx:a0,rightshoulder:b5,rightstick:b9,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"030000000d0f00001100000000000000,REAL ARCADE PRO.3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,rightstick:b11,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006a00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00006b00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008a00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00008b00000000000000,Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00007000000000000000,REAL ARCADE PRO.4 VLX,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,rightstick:b11,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00002200000000000000,REAL ARCADE Pro.V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005b00000000000000,Real Arcade Pro.V4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000000d0f00005c00000000000000,Real Arcade Pro.V4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000790000001100000000000000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Windows,", +"03000000bd12000013d0000000000000,Retrolink USB SEGA Saturn Classic,a:b0,b:b1,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b5,lefttrigger:b6,rightshoulder:b2,righttrigger:b7,start:b8,x:b3,y:b4,platform:Windows,", +"0300000000f000000300000000000000,RetroUSB.com RetroPad,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Windows,", +"0300000000f00000f100000000000000,RetroUSB.com Super RetroPort,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Windows,", +"030000006b140000010d000000000000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000006b140000020d000000000000,Revolution Pro Controller 2(1/2),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000006b140000130d000000000000,Revolution Pro Controller 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00001e01000000000000,Rock Candy PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00002801000000000000,Rock Candy PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00002f01000000000000,Rock Candy PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000004f04000003d0000000000000,run'n'drive,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b7,leftshoulder:a3,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:a4,rightstick:b11,righttrigger:b5,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a30600001af5000000000000,Saitek Cyborg,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a306000023f6000000000000,Saitek Cyborg V.1 Game pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00001201000000000000,Saitek Dual Analog Pad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"03000000a30600000701000000000000,Saitek P220,a:b2,b:b3,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,lefttrigger:b7,rightshoulder:b4,righttrigger:b5,x:b0,y:b1,platform:Windows,", +"03000000a30600000cff000000000000,Saitek P2500 Force Rumble Pad,a:b2,b:b3,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,start:b10,x:b0,y:b1,platform:Windows,", +"03000000a30600000c04000000000000,Saitek P2900,a:b1,b:b2,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00001001000000000000,Saitek P480 Rumble Pad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"03000000a30600000b04000000000000,Saitek P990,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a30600000b04000000010000,Saitek P990 Dual Analog Pad,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b8,x:b0,y:b3,platform:Windows,", +"03000000a30600002106000000000000,Saitek PS1000,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a306000020f6000000000000,Saitek PS2700,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Windows,", +"03000000300f00001101000000000000,Saitek Rumble Pad,a:b2,b:b3,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"03000000730700000401000000000000,Sanwa PlayOnline Mobile,a:b0,b:b1,back:b2,leftx:a0,lefty:a1,start:b3,platform:Windows,", +"0300000000050000289b000000000000,Saturn_Adapter_2.0,a:b1,b:b2,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b0,y:b3,platform:Windows,", +"030000009b2800000500000000000000,Saturn_Adapter_2.0,a:b1,b:b2,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b0,y:b3,platform:Windows,", +"03000000a30c00002500000000000000,Sega Genesis Mini 3B controller,a:b2,b:b1,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,righttrigger:b5,start:b9,platform:Windows,", +"03000000a30c00002400000000000000,Sega Mega Drive Mini 6B controller,a:b2,b:b1,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,rightshoulder:b4,righttrigger:b5,start:b9,x:b3,y:b0,platform:Windows,", +"03000000341a00000208000000000000,SL-6555-SBK,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:-a4,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a4,rightx:a3,righty:a2,start:b7,x:b2,y:b3,platform:Windows,", +"03000000341a00000908000000000000,SL-6566,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000008f0e00000800000000000000,SpeedLink Strike FX,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000c01100000591000000000000,Speedlink Torid,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000d11800000094000000000000,Stadia Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:b12,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:b11,rightx:a3,righty:a4,start:b9,x:b2,y:b3,platform:Windows,", +"03000000110100001914000000000000,SteelSeries,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftstick:b13,lefttrigger:b6,leftx:a0,lefty:a1,rightstick:b14,righttrigger:b7,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000381000001214000000000000,SteelSeries Free,a:b0,b:b1,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Windows,", +"03000000110100003114000000000000,SteelSeries Stratus Duo,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000381000001814000000000000,SteelSeries Stratus XL,a:b0,b:b1,back:b18,dpdown:b13,dpleft:b14,dpright:b15,dpup:b12,guide:b19,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b2,y:b3,platform:Windows,", +"03000000790000001c18000000000000,STK-7024X,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000ff1100003133000000000000,SVEN X-PAD,a:b2,b:b3,back:b4,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b9,rightx:a2,righty:a4,start:b5,x:b0,y:b1,platform:Windows,", +"03000000d620000011a7000000000000,Switch,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000457500002211000000000000,SZMY-POWER PC Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000004f04000007d0000000000000,T Mini Wireless,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000004f0400000ab1000000000000,T.16000M,a:b0,b:b1,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b11,leftshoulder:b4,lefttrigger:b9,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:b7,start:b10,x:b2,y:b3,platform:Windows,", +"03000000fa1900000706000000000000,Team 5,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000b50700001203000000000000,Techmobility X6-38V,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Windows,", +"030000004f04000015b3000000000000,Thrustmaster Dual Analog 4,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Windows,", +"030000004f04000023b3000000000000,Thrustmaster Dual Trigger 3-in-1,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000004f0400000ed0000000000000,ThrustMaster eSwap PRO Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"030000004f04000000b3000000000000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b11,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b10,x:b1,y:b3,platform:Windows,", +"030000004f04000004b3000000000000,Thrustmaster Firestorm Dual Power 3,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Windows,", +"03000000666600000488000000000000,TigerGame PS/PS2 Game Controller Adapter,a:b2,b:b1,back:b9,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Windows,", +"03000000d62000006000000000000000,Tournament PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"030000005f140000c501000000000000,Trust Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000b80500000210000000000000,Trust Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"030000004f04000087b6000000000000,TWCS Throttle,dpdown:b8,dpleft:b9,dpright:b7,dpup:b6,leftstick:b5,lefttrigger:-a5,leftx:a0,lefty:a1,righttrigger:+a5,platform:Windows,", +"03000000d90400000200000000000000,TwinShock PS2,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"030000006e0500001320000000000000,U4113,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000101c0000171c000000000000,uRage Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000300f00000701000000000000,USB 4-Axis 12-Button Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000341a00002308000000000000,USB gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"030000005509000000b4000000000000,USB gamepad,a:b10,b:b11,back:b5,dpdown:b1,dpleft:b2,dpright:b3,dpup:b0,guide:b14,leftshoulder:b8,leftstick:b6,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b9,rightstick:b7,righttrigger:a5,rightx:a2,righty:a3,start:b4,x:b12,y:b13,platform:Windows,", +"030000006b1400000203000000000000,USB gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000790000000a00000000000000,USB gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b3,y:b0,platform:Windows,", +"03000000f0250000c183000000000000,USB gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000ff1100004133000000000000,USB gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a4,righty:a2,start:b9,x:b3,y:b0,platform:Windows,", +"03000000632500002305000000000000,USB Vibration Joystick (BM),a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000790000001a18000000000000,Venom,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Windows,", +"03000000790000001b18000000000000,Venom Arcade Joystick,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00000302000000000000,Victrix Pro Fight Stick for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"030000006f0e00000702000000000000,Victrix Pro Fight Stick for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Windows,", +"0300000034120000adbe000000000000,vJoy Device,a:b0,b:b1,back:b15,dpdown:b6,dpleft:b7,dpright:b8,dpup:b5,guide:b16,leftshoulder:b9,leftstick:b13,lefttrigger:b11,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b14,righttrigger:b12,rightx:a3,righty:a4,start:b4,x:b2,y:b3,platform:Windows,", +"030000005e0400000a0b000000000000,Xbox Adaptive Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:+a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:-a2,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"030000005e040000130b000000000000,Xbox Series Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"03000000341a00000608000000000000,Xeox,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000450c00002043000000000000,XEOX Gamepad SL-6556-BK,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Windows,", +"03000000ac0500005b05000000000000,Xiaoji Gamesir-G3w,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Windows,", +"03000000172700004431000000000000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b20,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a7,rightx:a2,righty:a5,start:b11,x:b3,y:b4,platform:Windows,", +"03000000786901006e70000000000000,XInput Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Windows,", +"03000000790000004f18000000000000,ZD-T Android,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b3,y:b4,platform:Windows,", +"03000000120c0000101e000000000000,ZEROPLUS P4 Wired Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Windows,", +"78696e70757401000000000000000000,XInput Gamepad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757402000000000000000000,XInput Wheel (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757403000000000000000000,XInput Arcade Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757404000000000000000000,XInput Flight Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757405000000000000000000,XInput Dance Pad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757406000000000000000000,XInput Guitar (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757408000000000000000000,XInput Drum Kit (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +#endif // GLFW_BUILD_WIN32_MAPPINGS + +#if defined(GLFW_BUILD_COCOA_MAPPINGS) +"030000008f0e00000300000009010000,2In1 USB Joystick,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000c82d00000090000001000000,8BitDo FC30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00001038000000010000,8BitDo FC30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00000650000001000000,8BitDo M30,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b8,lefttrigger:b9,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:b7,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000c82d00005106000000010000,8BitDo M30 Gamepad,a:b1,b:b0,back:b10,guide:b2,leftshoulder:b6,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00001590000001000000,8BitDo N30 Pro 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00006528000000010000,8BitDo N30 Pro 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"030000003512000012ab000001000000,8BitDo NES30 Gamepad,a:b1,b:b0,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000022000000090000001000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000203800000900000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00000190000001000000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000102800000900000000000000,8Bitdo SFC30 GamePad Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00001290000001000000,8BitDo SN30 Gamepad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00004028000000010000,8Bitdo SN30 GamePad,a:b1,b:b0,x:b4,y:b3,back:b10,start:b11,leftshoulder:b6,rightshoulder:b7,dpup:-a1,dpdown:+a1,dpleft:-a0,dpright:+a0,platform:Mac OS X,", +"03000000c82d00000160000001000000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00000161000000010000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a5,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00000260000001000000,8BitDo SN30 Pro+,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00000261000000010000,8BitDo SN30 Pro+,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00000031000001000000,8BitDo Wireless Adapter,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000c82d00001890000001000000,8BitDo Zero 2,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000c82d00003032000000010000,8BitDo Zero 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,rightx:a2,righty:a31,start:b11,x:b4,y:b3,platform:Mac OS X,", +"03000000a00500003232000008010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000a00500003232000009010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000a30c00002700000003030000,Astro City Mini,a:b2,b:b1,back:b8,leftx:a3,lefty:a4,rightshoulder:b4,righttrigger:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000a30c00002800000003030000,Astro City Mini,a:b2,b:b1,back:b8,leftx:a3,lefty:a4,rightshoulder:b4,righttrigger:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000050b00000045000031000000,ASUS Gamepad,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,", +"03000000ef0500000300000000020000,AxisPad,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,start:b11,x:b0,y:b1,platform:Mac OS X,", +"03000000491900001904000001010000,Amazon Luna Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,misc1:b9,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b7,x:b2,y:b3,platform:Mac OS X,", +"03000000710100001904000000010000,Amazon Luna Controller,a:b0,b:b1,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,misc1:b9,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Mac OS X,", +"03000000c62400001a89000000010000,BDA MOGA XP5-X Plus,a:b0,b:b1,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b14,leftshoulder:b6,leftstick:b15,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b16,righttrigger:a4,rightx:a2,righty:a3,start:b13,x:b3,y:b4,platform:Mac OS X,", +"03000000c62400001b89000000010000,BDA MOGA XP5-X Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000d62000002a79000000010000,BDA PS4 Fightpad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000120c0000200e000000010000,Brook Mars,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000120c0000210e000000010000,Brook Mars,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000008305000031b0000000000000,Cideko AK08b,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000260900008888000088020000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a5,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,platform:Mac OS X,", +"03000000a306000022f6000001030000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000790000004618000000010000,GameCube Controller Adapter,a:b4,b:b0,dpdown:b56,dpleft:b60,dpright:b52,dpup:b48,lefttrigger:a12,leftx:a0,lefty:a4,rightshoulder:b28,righttrigger:a16,rightx:a20,righty:a8,start:b36,x:b8,y:b12,platform:Mac OS X,", +"03000000ad1b000001f9000000000000,Gamestop BB-070 X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,", +"03000000c01100000140000000010000,GameStop PS4 Fun Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006f0e00000102000000000000,GameStop Xbox 360 Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000007d0400000540000001010000,Gravis Eliminator GamePad Pro,a:b1,b:b2,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000280400000140000000020000,Gravis Gamepad Pro,a:b1,b:b2,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000008f0e00000300000007010000,GreenAsia Inc. USB Joystick,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Mac OS X,", +"030000000d0f00002d00000000100000,Hori Fighting Commander 3 Pro,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00005f00000000010000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00005e00000000010000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00005f00000000000000,HORI Fighting Commander 4 PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00005e00000000000000,HORI Fighting Commander 4 PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00004d00000000000000,HORI Gem Pad 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00009200000000010000,Hori Pokken Tournament DX Pro Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00006e00000000010000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00006600000000010000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f00006600000000000000,HORIPAD FPS PLUS 4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000000d0f0000ee00000000010000,HORIPAD mini4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000008f0e00001330000011010000,HuiJia SNES Controller,a:b4,b:b2,back:b16,dpdown:+a2,dpleft:-a0,dpright:+a0,dpup:-a2,leftshoulder:b12,rightshoulder:b14,start:b18,x:b6,y:b0,platform:Mac OS X,", +"03000000830500006020000000010000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Mac OS X,", +"03000000830500006020000000000000,iBuffalo USB 2-axis 8-button Gamepad,a:b1,b:b0,back:b6,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Mac OS X,", +"030000007e0500000620000001000000,Joy-Con (L),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b13,leftshoulder:b4,leftstick:b10,rightshoulder:b5,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000007e0500000720000001000000,Joy-Con (R),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b12,leftshoulder:b4,leftstick:b11,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Mac OS X,", +"03000000242f00002d00000007010000,JYS Wireless Adapter,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000006d04000016c2000000020000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000016c2000000030000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000016c2000014040000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000016c2000000000000,Logitech F310 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000018c2000000000000,Logitech F510 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000019c2000005030000,Logitech F710,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d0400001fc2000000000000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000006d04000018c2000000010000,Logitech RumblePad 2 USB,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3~,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006d04000019c2000000000000,Logitech Wireless Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000380700005032000000010000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000380700005082000000010000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000380700008433000000010000,Mad Catz FightStick TE S+ (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000380700008483000000010000,Mad Catz FightStick TE S+ (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000790000000600000007010000,Marvo GT-004,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Mac OS X,", +"03000000790000004418000000010000,Mayflash GameCube Controller,a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000242f00007300000000020000,Mayflash Magic NS,a:b1,b:b4,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b0,y:b3,platform:Mac OS X,", +"0300000079000000d218000026010000,Mayflash Magic NS,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000d620000010a7000003010000,Mayflash Magic NS,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"0300000025090000e803000000000000,Mayflash Wii Classic Controller,a:b1,b:b0,back:b8,dpdown:b13,dpleft:b12,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Mac OS X,", +"03000000790000000018000000010000,Mayflash Wii U Pro Controller Adapter,a:b4,b:b8,back:b32,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b16,leftstick:b40,lefttrigger:b24,leftx:a0,lefty:a4,rightshoulder:b20,rightstick:b44,righttrigger:b28,rightx:a8,righty:a12,start:b36,x:b0,y:b12,platform:Mac OS X,", +"03000000790000000018000000000000,Mayflash WiiU Pro Game Controller Adapter (DInput),a:b4,b:b8,back:b32,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b16,leftstick:b40,lefttrigger:b24,leftx:a0,lefty:a4,rightshoulder:b20,rightstick:b44,righttrigger:b28,rightx:a8,righty:a12,start:b36,x:b0,y:b12,platform:Mac OS X,", +"03000000d8140000cecf000000000000,MC Cthulhu,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000005e0400002700000001010000,Microsoft SideWinder Plug & Play Game Pad,a:b0,b:b1,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,lefttrigger:b4,leftx:a0,lefty:a1,righttrigger:b5,x:b2,y:b3,platform:Mac OS X,", +"03000000d62000007162000001000000,Moga Pro 2 HID,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Mac OS X,", +"03000000c62400002a89000000010000,MOGA XP5-A Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b21,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000c62400002b89000000010000,MOGA XP5-A Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000632500007505000000020000,NEOGEO mini PAD Controller,a:b1,b:b0,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,start:b9,x:b2,y:b3,platform:Mac OS X,", +"03000000921200004b46000003020000,NES 2-port Adapter,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,start:b11,platform:Mac OS X,", +"030000001008000001e5000006010000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,righttrigger:b6,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000d620000011a7000000020000,Nintendo Switch Core (Plus) Wired Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000d620000011a7000010050000,Nintendo Switch PowerA Wired Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000007e0500000920000000000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,", +"030000007e0500000920000001000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Mac OS X,", +"03000000550900001472000025050000,NVIDIA Controller v01.04,a:b0,b:b1,back:b17,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b4,leftstick:b7,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a5,start:b6,x:b2,y:b3,platform:Mac OS X,", +"030000006f0e00000901000002010000,PDP Versus Fighting Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000008f0e00000300000000000000,Piranha xtreme,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000004c050000da0c000000010000,Playstation Classic Controller,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000004c0500003713000000010000,PlayStation Vita,a:b1,b:b2,back:b8,dpdown:b13,dpleft:b15,dpright:b14,dpup:b12,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000d62000006dca000000010000,PowerA Pro Ex,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000100800000300000006010000,PS2 Adapter,a:b2,b:b1,back:b8,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a4,righty:a3,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000004c0500006802000000000000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Mac OS X,", +"030000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Mac OS X,", +"030000004c050000a00b000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000c405000000000000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"050000004c050000e60c000000010000,PS5 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,misc1:b13,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000008916000000fd000000000000,Razer Onza TE,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000321500000204000000010000,Razer Panthera (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000321500000104000000010000,Razer Panthera (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000321500000010000000010000,Razer RAIJU,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000321500000507000001010000,Razer Raiju Mobile,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b21,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000321500000011000000010000,Razer Raion Fightpad for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000321500000009000000020000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Mac OS X,", +"030000003215000000090000163a0000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Mac OS X,", +"0300000032150000030a000000000000,Razer Wildcat,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000790000001100000000000000,Retrolink Classic Controller,a:b2,b:b1,back:b8,leftshoulder:b4,leftx:a3,lefty:a4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000790000001100000006010000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a4,dpleft:-a3,dpright:+a3,dpup:-a4,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"030000006b140000010d000000010000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006b140000130d000000010000,Revolution Pro Controller 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000c6240000fefa000000000000,Rock Candy Gamepad for PS3,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000730700000401000000010000,Sanwa PlayOnline Mobile,a:b0,b:b1,back:b2,leftx:a0,lefty:a1,start:b3,platform:Mac OS X,", +"03000000811700007e05000000000000,Sega Saturn,a:b2,b:b4,dpdown:b16,dpleft:b15,dpright:b14,dpup:b17,leftshoulder:b8,lefttrigger:a5,leftx:a0,lefty:a2,rightshoulder:b9,righttrigger:a4,start:b13,x:b0,y:b6,platform:Mac OS X,", +"03000000b40400000a01000000000000,Sega Saturn USB Gamepad,a:b0,b:b1,back:b5,guide:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b8,x:b3,y:b4,platform:Mac OS X,", +"030000003512000021ab000000000000,SFC30 Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Mac OS X,", +"0300000000f00000f100000000000000,SNES RetroPort,a:b2,b:b3,back:b4,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b5,rightshoulder:b7,start:b6,x:b0,y:b1,platform:Mac OS X,", +"030000004c050000e60c000000010000,Sony DualSense,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000cc09000000000000,Sony DualShock 4 V2,a:b1,b:b2,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004c050000a00b000000000000,Sony DualShock 4 Wireless Adaptor,a:b1,b:b2,back:b13,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000d11800000094000000010000,Stadia Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Mac OS X,", +"030000005e0400008e02000001000000,Steam Virtual Gamepad,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000110100002014000000000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b12,x:b2,y:b3,platform:Mac OS X,", +"03000000110100002014000001000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,x:b2,y:b3,platform:Mac OS X,", +"03000000381000002014000001000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,x:b2,y:b3,platform:Mac OS X,", +"050000004e696d6275732b0000000000,SteelSeries Nimbus Plus,a:b0,b:b1,back:b15,dpdown:b11,dpleft:b13,dpright:b12,dpup:b10,guide:b16,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3~,start:b14,x:b2,y:b3,platform:Mac OS X,", +"03000000110100001714000000000000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,start:b12,x:b2,y:b3,platform:Mac OS X,", +"03000000110100001714000020010000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1~,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3~,start:b12,x:b2,y:b3,platform:Mac OS X,", +"03000000457500002211000000010000,SZMY-POWER PC Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004f04000015b3000000000000,Thrustmaster Dual Analog 3.2,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Mac OS X,", +"030000004f0400000ed0000000020000,ThrustMaster eSwap PRO Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000004f04000000b3000000000000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b11,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:b7,rightx:a2,righty:a3,start:b10,x:b1,y:b3,platform:Mac OS X,", +"03000000bd12000015d0000000000000,Tomee SNES USB Controller,a:b2,b:b1,back:b8,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000bd12000015d0000000010000,Tomee SNES USB Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Mac OS X,", +"03000000100800000100000000000000,Twin USB Joystick,a:b4,b:b2,back:b16,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b12,leftstick:b20,lefttrigger:b8,leftx:a0,lefty:a2,rightshoulder:b14,rightstick:b22,righttrigger:b10,rightx:a6,righty:a4,start:b18,x:b6,y:b0,platform:Mac OS X,", +"030000006f0e00000302000025040000,Victrix Pro Fight Stick for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"030000006f0e00000702000003060000,Victrix Pro Fight Stick for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000791d00000103000009010000,Wii Classic Controller,a:b2,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,guide:b10,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Mac OS X,", +"050000005769696d6f74652028303000,Wii Remote,a:b4,b:b5,back:b7,dpdown:b3,dpleft:b0,dpright:b1,dpup:b2,guide:b8,leftshoulder:b11,lefttrigger:b12,leftx:a0,lefty:a1,start:b6,x:b10,y:b9,platform:Mac OS X,", +"050000005769696d6f74652028313800,Wii U Pro Controller,a:b16,b:b15,back:b7,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b8,leftshoulder:b19,leftstick:b23,lefttrigger:b21,leftx:a0,lefty:a1,rightshoulder:b20,rightstick:b24,righttrigger:b22,rightx:a2,righty:a3,start:b6,x:b18,y:b17,platform:Mac OS X,", +"030000005e0400008e02000000000000,X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000006f0e00000104000000000000,Xbox 360 Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"03000000c6240000045d000000000000,Xbox 360 Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e0400000a0b000000000000,Xbox Adaptive Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000050b000003090000,Xbox Elite Wireless Controller Series 2,a:b0,b:b1,back:b31,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b53,leftshoulder:b6,leftstick:b13,lefttrigger:a6,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000c62400003a54000000000000,Xbox One PowerA Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000d102000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000dd02000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000e302000000000000,Xbox One Wired Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000130b000001050000,Xbox Series Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"030000005e040000130b000005050000,Xbox Series Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"030000005e040000e002000000000000,Xbox Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000e002000003090000,Xbox Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000ea02000000000000,Xbox Wireless Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,platform:Mac OS X,", +"030000005e040000fd02000003090000,Xbox Wireless Controller,a:b0,b:b1,back:b16,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000172700004431000029010000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a6,rightx:a2,righty:a5,start:b11,x:b3,y:b4,platform:Mac OS X,", +"03000000120c0000100e000000010000,ZEROPLUS P4 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +"03000000120c0000101e000000010000,ZEROPLUS P4 Wired Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Mac OS X,", +#endif // GLFW_BUILD_COCOA_MAPPINGS + +#if defined(GLFW_BUILD_LINUX_MAPPINGS) +"03000000c82d00000090000011010000,8BitDo FC30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00001038000000010000,8Bitdo FC30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00005106000000010000,8BitDo M30,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b8,lefttrigger:b9,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:b7,start:b11,x:b3,y:b4,platform:Linux,", +"03000000c82d00001590000011010000,8BitDo N30 Pro 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00006528000000010000,8BitDo N30 Pro 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000310000011010000,8BitDo NES30,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b7,lefttrigger:b6,rightshoulder:b9,righttrigger:b8,start:b11,x:b3,y:b4,platform:Linux,", +"05000000c82d00008010000000010000,8BitDo NES30,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b7,lefttrigger:b6,rightshoulder:b9,righttrigger:b8,start:b11,x:b3,y:b4,platform:Linux,", +"03000000022000000090000011010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000203800000900000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00002038000000010000,8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000190000011010000,8Bitdo NES30 Pro 8Bitdo NES30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00000060000000010000,8BitDo SF30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00000061000000010000,8Bitdo SF30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d000021ab000010010000,8BitDo SFC30,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Linux,", +"030000003512000012ab000010010000,8Bitdo SFC30 GamePad,a:b2,b:b1,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b0,platform:Linux,", +"05000000102800000900000000010000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00003028000000010000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000160000000000000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000160000011010000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000161000000000000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00001290000011010000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a3,righty:a4,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00000161000000010000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00006228000000010000,8BitDo SN30 Pro,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000260000011010000,8BitDo SN30 Pro+,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00000261000000010000,8BitDo SN30 Pro+,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"05000000202800000900000000010000,8BitDo SNES30 Gamepad,a:b1,b:b0,back:b10,dpdown:b122,dpleft:b119,dpright:b120,dpup:b117,leftshoulder:b6,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Linux,", +"03000000c82d00000031000011010000,8BitDo Wireless Adapter (DInput),a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b2,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000005e0400008e02000020010000,8BitDo Wireless Adapter (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c82d00001890000011010000,8BitDo Zero 2,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,platform:Linux,", +"05000000c82d00003032000000010000,8BitDo Zero 2,a:b1,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,rightx:a2,righty:a3,start:b11,x:b4,y:b3,platform:Linux,", +"050000005e040000e002000030110000,8BitDo Zero 2 (XInput),a:b0,b:b1,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b2,y:b3,platform:Linux,", +"05000000a00500003232000001000000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Linux,", +"05000000a00500003232000008010000,8Bitdo Zero GamePad,a:b0,b:b1,back:b10,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b11,x:b3,y:b4,platform:Linux,", +"03000000c01100000355000011010000,ACRUX USB GAME PAD,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e00001302000000010000,Afterglow,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00003901000020060000,Afterglow Controller for Xbox One,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00003901000000430000,Afterglow Prismatic Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00003901000013020000,Afterglow Prismatic Wired Controller 048-007-NA,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000100000008200000011010000,Akishop Customs PS360+ v1.66,a:b1,b:b2,back:b12,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000007c1800000006000010010000,Alienware Dual Compatible Game Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b3,platform:Linux,", +"05000000491900000204000021000000,Amazon Fire Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b17,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,misc1:b12,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000491900001904000011010000,Amazon Luna Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,misc1:b9,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b7,x:b2,y:b3,platform:Linux,", +"05000000710100001904000000010000,Amazon Luna Controller,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,misc1:b11,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Linux,", +"03000000790000003018000011010000,Arcade Fightstick F300,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"03000000a30c00002700000011010000,Astro City Mini,a:b2,b:b1,back:b8,leftx:a0,lefty:a1,rightshoulder:b4,righttrigger:b5,start:b9,x:b3,y:b0,platform:Linux,", +"03000000a30c00002800000011010000,Astro City Mini,a:b2,b:b1,back:b8,leftx:a0,lefty:a1,rightshoulder:b4,righttrigger:b5,start:b9,x:b3,y:b0,platform:Linux,", +"05000000050b00000045000031000000,ASUS Gamepad,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b6,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b10,x:b2,y:b3,platform:Linux,", +"05000000050b00000045000040000000,ASUS Gamepad,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b6,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b10,x:b2,y:b3,platform:Linux,", +"03000000503200000110000000000000,Atari Classic Controller,a:b0,back:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b4,start:b3,x:b1,platform:Linux,", +"05000000503200000110000000000000,Atari Classic Controller,a:b0,back:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b4,start:b3,x:b1,platform:Linux,", +"03000000503200000210000000000000,Atari Game Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b2,platform:Linux,", +"05000000503200000210000000000000,Atari Game Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b2,platform:Linux,", +"03000000120c00000500000010010000,AxisPad,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,start:b11,x:b0,y:b1,platform:Linux,", +"03000000ef0500000300000000010000,AxisPad,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,start:b11,x:b0,y:b1,platform:Linux,", +"03000000c62400001b89000011010000,BDA MOGA XP5-X Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000d62000002a79000011010000,BDA PS4 Fightpad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000c21100000791000011010000,Be1 GC101 Controller 1.03 mode,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000c31100000791000011010000,Be1 GC101 GAMEPAD 1.03 mode,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000005e0400008e02000003030000,Be1 GC101 Xbox 360 Controller mode,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"05000000bc2000000055000001000000,BETOP AX1 BFM,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000666600006706000000010000,boom PSX to PC Converter,a:b2,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,leftshoulder:b6,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b10,righttrigger:b5,rightx:a2,righty:a3,start:b11,x:b3,y:b0,platform:Linux,", +"03000000120c0000200e000011010000,Brook Mars,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000120c0000210e000011010000,Brook Mars,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000120c0000f70e000011010000,Brook Universal Fighting Board,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,rightstick:b11,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"03000000ffff0000ffff000000010000,Chinese-made Xbox Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b5,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b4,platform:Linux,", +"03000000e82000006058000001010000,Cideko AK08b,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000000b0400003365000000010000,Competition Pro,a:b0,b:b1,back:b2,leftx:a0,lefty:a1,start:b3,platform:Linux,", +"03000000260900008888000000010000,Cyber Gadget GameCube Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b6,righttrigger:a5,rightx:a2,righty:a3~,start:b7,x:b2,y:b3,platform:Linux,", +"03000000a306000022f6000011010000,Cyborg V.3 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:+a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:-a3,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000b40400000a01000000010000,CYPRESS USB Gamepad,a:b0,b:b1,back:b5,guide:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b8,x:b3,y:b4,platform:Linux,", +"03000000790000000600000010010000,DragonRise Inc. Generic USB Joystick,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b3,y:b0,platform:Linux,", +"030000004f04000004b3000010010000,Dual Power 2,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Linux,", +"030000006f0e00003001000001010000,EA Sports PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000341a000005f7000010010000,GameCube {HuiJia USB box},a:b1,b:b2,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Linux,", +"03000000bc2000000055000011010000,GameSir G3w,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"0500000047532047616d657061640000,GameStop Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000006f0e00000104000000010000,Gamestop Logic3 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000008f0e00000800000010010000,Gasia Co. Ltd PS(R) Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000006f0e00001304000000010000,Generic X-Box pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000451300000010000010010000,Genius Maxfire Grandias 12,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"03000000f0250000c183000010010000,Goodbetterbest Ltd USB Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"0300000079000000d418000000010000,GPD Win 2 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000007d0400000540000000010000,Gravis Eliminator GamePad Pro,a:b1,b:b2,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"03000000280400000140000000010000,Gravis GamePad Pro USB ,a:b1,b:b2,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000008f0e00000610000000010000,GreenAsia Electronics 4Axes 12Keys GamePad ,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b9,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b10,righttrigger:b5,rightx:a3,righty:a2,start:b11,x:b3,y:b0,platform:Linux,", +"030000008f0e00001200000010010000,GreenAsia Inc. USB Joystick,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Linux,", +"0500000047532067616d657061640000,GS gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"03000000f0250000c383000010010000,GT VX2,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"06000000adde0000efbe000002010000,Hidromancer Game Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000d81400000862000011010000,HitBox (PS3/PC) Analog Mode,a:b1,b:b2,back:b8,guide:b9,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b12,x:b0,y:b3,platform:Linux,", +"03000000c9110000f055000011010000,HJC Game GAMEPAD,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"03000000632500002605000010010000,HJD-X,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000000d0f00000d00000000010000,hori,a:b0,b:b6,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b3,leftx:b4,lefty:b5,rightshoulder:b7,start:b9,x:b1,y:b2,platform:Linux,", +"030000000d0f00001000000011010000,HORI CO. LTD. FIGHTING STICK 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f0000c100000011010000,HORI CO. LTD. HORIPAD S,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b13,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006a00000011010000,HORI CO. LTD. Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006b00000011010000,HORI CO. LTD. Real Arcade Pro.4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00002200000011010000,HORI CO. LTD. REAL ARCADE Pro.V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00008500000010010000,HORI Fighting Commander,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00008600000002010000,Hori Fighting Commander,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000000d0f00005f00000011010000,Hori Fighting Commander 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00005e00000011010000,Hori Fighting Commander 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000ad1b000001f5000033050000,Hori Pad EX Turbo 2,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000000d0f00009200000011010000,Hori Pokken Tournament DX Pro Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f0000aa00000011010000,HORI Real Arcade Pro,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000000d0f0000d800000072056800,HORI Real Arcade Pro S,a:b0,b:b1,back:b4,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b5,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Linux,", +"030000000d0f00001600000000010000,Hori Real Arcade Pro.EX-SE (Xbox 360),a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b2,y:b3,platform:Linux,", +"030000000d0f00006e00000011010000,HORIPAD 4 (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006600000011010000,HORIPAD 4 (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f0000ee00000011010000,HORIPAD mini4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000000d0f00006700000001010000,HORIPAD ONE,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000008f0e00001330000010010000,HuiJia SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,rightshoulder:b7,start:b9,x:b3,y:b0,platform:Linux,", +"03000000242e00008816000001010000,Hyperkin X91,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000830500006020000010010000,iBuffalo SNES Controller,a:b1,b:b0,back:b6,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Linux,", +"050000006964726f69643a636f6e0000,idroid:con,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000b50700001503000010010000,impact,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Linux,", +"03000000d80400008200000003000000,IMS PCU#0 Gamepad Interface,a:b1,b:b0,back:b4,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,start:b5,x:b3,y:b2,platform:Linux,", +"03000000fd0500000030000000010000,InterAct GoPad I-73000 (Fighting Game Layout),a:b3,b:b4,back:b6,leftx:a0,lefty:a1,rightshoulder:b2,righttrigger:b5,start:b7,x:b0,y:b1,platform:Linux,", +"0500000049190000020400001b010000,Ipega PG-9069 - Bluetooth Gamepad,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b161,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000632500007505000011010000,Ipega PG-9099 - Bluetooth Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000006e0500000320000010010000,JC-U3613M - DirectInput Mode,a:b2,b:b3,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,start:b11,x:b0,y:b1,platform:Linux,", +"03000000300f00001001000010010000,Jess Tech Dual Analog Rumble Pad,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Linux,", +"03000000300f00000b01000010010000,Jess Tech GGE909 PC Recoil Pad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"03000000ba2200002010000001010000,Jess Technology USB Game Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"030000007e0500000620000001000000,Joy-Con (L),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b13,leftshoulder:b4,leftstick:b10,rightshoulder:b5,start:b8,x:b2,y:b3,platform:Linux,", +"050000007e0500000620000001000000,Joy-Con (L),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b13,leftshoulder:b4,leftstick:b10,rightshoulder:b5,start:b8,x:b2,y:b3,platform:Linux,", +"030000007e0500000720000001000000,Joy-Con (R),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b12,leftshoulder:b4,leftstick:b11,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Linux,", +"050000007e0500000720000001000000,Joy-Con (R),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b12,leftshoulder:b4,leftstick:b11,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Linux,", +"03000000bd12000003c0000010010000,Joypad Alpha Shock,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000242f00002d00000011010000,JYS Wireless Adapter,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000242f00008a00000011010000,JYS Wireless Adapter,a:b1,b:b4,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b0,y:b3,platform:Linux,", +"030000006f0e00000103000000020000,Logic3 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d040000d1ca000000000000,Logitech ChillStream,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d04000019c2000010010000,Logitech Cordless RumblePad 2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d04000016c2000010010000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d04000016c2000011010000,Logitech Dual Action,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d0400001dc2000014400000,Logitech F310 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d0400001ec2000019200000,Logitech F510 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d0400001ec2000020200000,Logitech F510 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d04000019c2000011010000,Logitech F710 Gamepad (DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d0400001fc2000005030000,Logitech F710 Gamepad (XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d0400000ac2000010010000,Logitech Inc. WingMan RumblePad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b2,rightx:a3,righty:a4,x:b3,y:b4,platform:Linux,", +"030000006d04000018c2000010010000,Logitech RumblePad 2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006d04000011c2000010010000,Logitech WingMan Cordless RumblePad,a:b0,b:b1,back:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b5,leftshoulder:b6,lefttrigger:b9,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b10,rightx:a3,righty:a4,start:b8,x:b3,y:b4,platform:Linux,", +"050000004d4f435554452d3035305800,M54-PC,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"05000000380700006652000025010000,Mad Catz C.T.R.L.R ,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700005032000011010000,Mad Catz FightPad PRO (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700005082000011010000,Mad Catz FightPad PRO (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000ad1b00002ef0000090040000,Mad Catz Fightpad SFxT,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,lefttrigger:a2,rightshoulder:b5,righttrigger:a5,start:b7,x:b2,y:b3,platform:Linux,", +"03000000380700008034000011010000,Mad Catz fightstick (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700008084000011010000,Mad Catz fightstick (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700008433000011010000,Mad Catz FightStick TE S+ (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700008483000011010000,Mad Catz FightStick TE S+ (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700001647000010040000,Mad Catz Wired Xbox 360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000380700003847000090040000,Mad Catz Wired Xbox 360 Controller (SFIV),a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"03000000ad1b000016f0000090040000,Mad Catz Xbox 360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000380700001888000010010000,MadCatz PC USB Wired Stick 8818,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000380700003888000010010000,MadCatz PC USB Wired Stick 8838,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:a0,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000242f0000f700000001010000,Magic-S Pro,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000120c00000500000000010000,Manta Dualshock 2,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Linux,", +"03000000790000004418000010010000,Mayflash GameCube Controller,a:b1,b:b0,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b2,y:b3,platform:Linux,", +"03000000790000004318000010010000,Mayflash GameCube Controller Adapter,a:b1,b:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:a4,rightx:a5,righty:a2,start:b9,x:b0,y:b3,platform:Linux,", +"03000000242f00007300000011010000,Mayflash Magic NS,a:b1,b:b4,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b0,y:b3,platform:Linux,", +"0300000079000000d218000011010000,Mayflash Magic NS,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000d620000010a7000011010000,Mayflash Magic NS,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"0300000025090000e803000001010000,Mayflash Wii Classic Controller,a:b1,b:b0,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:a4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:a5,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Linux,", +"03000000780000000600000010010000,Microntek USB Joystick,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,platform:Linux,", +"030000005e0400000e00000000010000,Microsoft SideWinder,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,rightshoulder:b7,start:b8,x:b3,y:b4,platform:Linux,", +"030000005e0400008e02000004010000,Microsoft X-Box 360 pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000062230000,Microsoft X-Box 360 pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"050000005e040000050b000003090000,Microsoft X-Box One Elite 2 pad,a:b0,b:b1,back:b17,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a6,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000005e040000e302000003020000,Microsoft X-Box One Elite pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000d102000001010000,Microsoft X-Box One pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000dd02000003020000,Microsoft X-Box One pad (Firmware 2015),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000d102000003020000,Microsoft X-Box One pad v2,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008502000000010000,Microsoft X-Box pad (Japan),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b5,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b4,platform:Linux,", +"030000005e0400008902000021010000,Microsoft X-Box pad v2 (US),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b5,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b4,platform:Linux,", +"030000005e040000000b000008040000,Microsoft Xbox One Elite 2 pad - Wired,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000ea02000008040000,Microsoft Xbox One S pad - Wired,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c62400001a53000000010000,Mini PE,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000030000000300000002000000,Miroof,a:b1,b:b0,back:b6,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b7,x:b3,y:b2,platform:Linux,", +"05000000d6200000e589000001000000,Moga 2 HID,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Linux,", +"05000000d6200000ad0d000001000000,Moga Pro,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Linux,", +"05000000d62000007162000001000000,Moga Pro 2 HID,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b7,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a3,start:b6,x:b2,y:b3,platform:Linux,", +"03000000c62400002b89000011010000,MOGA XP5-A Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"05000000c62400002a89000000010000,MOGA XP5-A Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b22,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"05000000c62400001a89000000010000,MOGA XP5-X Plus,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000250900006688000000010000,MP-8866 Super Dual Box,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Linux,", +"030000006b140000010c000010010000,NACON GC-400ES,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000000d0f00000900000010010000,Natec Genesis P44,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000790000004518000010010000,NEXILUX GAMECUBE Controller Adapter,a:b1,b:b0,x:b2,y:b3,start:b9,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a5,righty:a2,lefttrigger:a3,righttrigger:a4,platform:Linux,", +"030000001008000001e5000010010000,NEXT SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,righttrigger:b6,start:b9,x:b3,y:b0,platform:Linux,", +"060000007e0500003713000000000000,Nintendo 3DS,a:b0,b:b1,back:b8,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Linux,", +"060000007e0500000820000000000000,Nintendo Combined Joy-Cons (joycond),a:b0,b:b1,back:b9,dpdown:b15,dpleft:b16,dpright:b17,dpup:b14,guide:b11,leftshoulder:b5,leftstick:b12,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b13,righttrigger:b8,rightx:a2,righty:a3,start:b10,x:b3,y:b2,platform:Linux,", +"030000007e0500003703000000016800,Nintendo GameCube Controller,a:b0,b:b2,dpdown:b6,dpleft:b4,dpright:b5,dpup:b7,lefttrigger:a4,leftx:a0,lefty:a1~,rightshoulder:b9,righttrigger:a5,rightx:a2,righty:a3~,start:b8,x:b1,y:b3,platform:Linux,", +"03000000790000004618000010010000,Nintendo GameCube Controller Adapter,a:b1,b:b0,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,rightx:a5~,righty:a2~,start:b9,x:b2,y:b3,platform:Linux,", +"050000007e0500000620000001800000,Nintendo Switch Left Joy-Con,a:b9,b:b8,back:b5,leftshoulder:b2,leftstick:b6,leftx:a1,lefty:a0~,rightshoulder:b4,start:b0,x:b7,y:b10,platform:Linux,", +"030000007e0500000920000011810000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b11,leftshoulder:b5,leftstick:b12,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b13,righttrigger:b8,rightx:a2,righty:a3,start:b10,x:b3,y:b2,platform:Linux,", +"050000007e0500000920000001000000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"050000007e0500000920000001800000,Nintendo Switch Pro Controller,a:b0,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b11,leftshoulder:b5,leftstick:b12,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b13,righttrigger:b8,rightx:a2,righty:a3,start:b10,x:b3,y:b2,platform:Linux,", +"050000007e0500000720000001800000,Nintendo Switch Right Joy-Con,a:b1,b:b2,back:b9,leftshoulder:b4,leftstick:b10,leftx:a1~,lefty:a0~,rightshoulder:b6,start:b8,x:b0,y:b3,platform:Linux,", +"050000007e0500001720000001000000,Nintendo Switch SNES Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Linux,", +"050000007e0500003003000001000000,Nintendo Wii Remote Pro Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b2,platform:Linux,", +"05000000010000000100000003000000,Nintendo Wiimote,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000000d0500000308000010010000,Nostromo n45 Dual Analog Gamepad,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b4,leftstick:b12,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b10,x:b2,y:b3,platform:Linux,", +"03000000550900001072000011010000,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b13,leftshoulder:b4,leftstick:b8,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000550900001472000011010000,NVIDIA Controller v01.04,a:b0,b:b1,back:b14,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b16,leftshoulder:b4,leftstick:b7,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a5,start:b6,x:b2,y:b3,platform:Linux,", +"05000000550900001472000001000000,NVIDIA Controller v01.04,a:b0,b:b1,back:b14,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b16,leftshoulder:b4,leftstick:b7,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b8,righttrigger:a4,rightx:a2,righty:a5,start:b6,x:b2,y:b3,platform:Linux,", +"03000000451300000830000010010000,NYKO CORE,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"19000000010000000100000001010000,odroidgo2_joypad,a:b1,b:b0,dpdown:b7,dpleft:b8,dpright:b9,dpup:b6,guide:b10,leftshoulder:b4,leftstick:b12,lefttrigger:b11,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b13,righttrigger:b14,start:b15,x:b2,y:b3,platform:Linux,", +"19000000010000000200000011000000,odroidgo2_joypad_v11,a:b1,b:b0,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b12,leftshoulder:b4,leftstick:b14,lefttrigger:b13,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b15,righttrigger:b16,start:b17,x:b2,y:b3,platform:Linux,", +"030000005e0400000202000000010000,Old Xbox pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b5,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b3,y:b4,platform:Linux,", +"03000000c0160000dc27000001010000,OnyxSoft Dual JoyDivision,a:b0,b:b1,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b6,x:b2,y:b3,platform:Linux,", +"05000000362800000100000002010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,platform:Linux,", +"05000000362800000100000003010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,platform:Linux,", +"03000000830500005020000010010000,Padix Co. Ltd. Rockfire PSX/USB Bridge,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a2,righty:a3,start:b11,x:b2,y:b3,platform:Linux,", +"03000000790000001c18000011010000,PC Game Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000ff1100003133000010010000,PC Game Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000006f0e0000b802000001010000,PDP AFTERGLOW Wired Xbox One Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e0000b802000013020000,PDP AFTERGLOW Wired Xbox One Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00006401000001010000,PDP Battlefield One,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00008001000011010000,PDP CO. LTD. Faceoff Wired Pro Controller for Nintendo Switch,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e00003101000000010000,PDP EA Sports Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e0000c802000012010000,PDP Kingdom Hearts Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00008701000011010000,PDP Rock Candy Wired Controller for Nintendo Switch,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b13,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000006f0e00000901000011010000,PDP Versus Fighting Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e0000a802000023020000,PDP Wired Controller for Xbox One,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000006f0e00008501000011010000,PDP Wired Fight Pad Pro for Nintendo Switch,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"0500000049190000030400001b010000,PG-9099,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"05000000491900000204000000000000,PG-9118,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000004c050000da0c000011010000,Playstation Controller,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,platform:Linux,", +"030000004c0500003713000011010000,PlayStation Vita,a:b1,b:b2,back:b8,dpdown:b13,dpleft:b15,dpright:b14,dpup:b12,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000c62400000053000000010000,PowerA,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c62400003a54000001010000,PowerA 1428124-01,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000d62000006dca000011010000,PowerA Pro Ex,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000d62000000228000001010000,PowerA Wired Controller for Xbox One,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c62400001a58000001010000,PowerA Xbox One Cabled,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c62400001a54000001010000,PowerA Xbox One Mini Wired Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006d040000d2ca000011010000,Precision Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000ff1100004133000010010000,PS2 Controller,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,platform:Linux,", +"03000000341a00003608000011010000,PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c0500006802000010010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"030000004c0500006802000010810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c0500006802000011010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"030000004c0500006802000011810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000006f0e00001402000011010000,PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000008f0e00000300000010010000,PS3 Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"050000004c0500006802000000000000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"050000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:a12,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:a13,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"050000004c0500006802000000800000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c0500006802000000810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"05000000504c415953544154494f4e00,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"060000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,platform:Linux,", +"030000004c050000a00b000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c050000a00b000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c050000c405000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c050000c405000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c050000cc09000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004c050000cc09000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"03000000c01100000140000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"050000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"050000004c050000c405000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c050000c405000001800000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"050000004c050000cc09000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c050000cc09000001800000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"030000004c050000e60c000011010000,PS5 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,misc1:b13,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"050000004c050000e60c000000010000,PS5 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,misc1:b13,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000ff000000cb01000010010000,PSP,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftx:a0,lefty:a1,rightshoulder:b5,start:b7,x:b2,y:b3,platform:Linux,", +"03000000300f00001211000011010000,QanBa Arcade JoyStick,a:b2,b:b0,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b5,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b6,start:b9,x:b1,y:b3,platform:Linux,", +"030000009b2800004200000001010000,Raphnet Technologies Dual NES to USB v2.0,a:b0,b:b1,back:b2,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,start:b3,platform:Linux,", +"030000009b2800003200000001010000,Raphnet Technologies GC/N64 to USB v3.4,a:b0,b:b7,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b2,righttrigger:b5,rightx:a3,righty:a4,start:b3,x:b1,y:b8,platform:Linux,", +"030000009b2800006000000001010000,Raphnet Technologies GC/N64 to USB v3.6,a:b0,b:b7,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b2,righttrigger:b5,rightx:a3,righty:a4,start:b3,x:b1,y:b8,platform:Linux,", +"030000009b2800000300000001010000,raphnet.net 4nes4snes v1.5,a:b0,b:b4,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b1,y:b5,platform:Linux,", +"030000008916000001fd000024010000,Razer Onza Classic Edition,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000008916000000fd000024010000,Razer Onza Tournament Edition,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000321500000204000011010000,Razer Panthera (PS3),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"03000000321500000104000011010000,Razer Panthera (PS4),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000321500000810000011010000,Razer Panthera Evo Arcade Stick for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b13,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000321500000010000011010000,Razer RAIJU,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000321500000507000000010000,Razer Raiju Mobile,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b21,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000321500000011000011010000,Razer Raion Fightpad for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000008916000000fe000024010000,Razer Sabertooth,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c6240000045d000024010000,Razer Sabertooth,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c6240000045d000025010000,Razer Sabertooth,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000321500000009000011010000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"050000003215000000090000163a0000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"0300000032150000030a000001010000,Razer Wildcat,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000790000001100000010010000,Retrolink SNES Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Linux,", +"0300000081170000990a000001010000,Retronic Adapter,a:b0,leftx:a0,lefty:a1,platform:Linux,", +"0300000000f000000300000000010000,RetroPad,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Linux,", +"030000006b140000010d000011010000,Revolution Pro Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000006b140000130d000011010000,Revolution Pro Controller 3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e00001f01000000010000,Rock Candy,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000006f0e00001e01000011010000,Rock Candy PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e00004601000001010000,Rock Candy Xbox One Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000a306000023f6000011010000,Saitek Cyborg V.1 Game Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000a30600001005000000010000,Saitek P150,a:b0,b:b1,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b7,lefttrigger:b6,rightshoulder:b2,righttrigger:b5,x:b3,y:b4,platform:Linux,", +"03000000a30600000701000000010000,Saitek P220,a:b2,b:b3,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b6,lefttrigger:b7,rightshoulder:b4,righttrigger:b5,x:b0,y:b1,platform:Linux,", +"03000000a30600000cff000010010000,Saitek P2500 Force Rumble Pad,a:b2,b:b3,back:b11,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,start:b10,x:b0,y:b1,platform:Linux,", +"03000000a30600000c04000011010000,Saitek P2900 Wireless Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b9,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b12,x:b0,y:b3,platform:Linux,", +"03000000300f00001201000010010000,Saitek P380,a:b2,b:b3,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b0,y:b1,platform:Linux,", +"03000000a30600000901000000010000,Saitek P880,a:b2,b:b3,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:b7,rightx:a3,righty:a2,x:b0,y:b1,platform:Linux,", +"03000000a30600000b04000000010000,Saitek P990 Dual Analog Pad,a:b1,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a2,start:b8,x:b0,y:b3,platform:Linux,", +"03000000a306000018f5000010010000,Saitek PLC Saitek P3200 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000a306000020f6000011010000,Saitek PS2700 Rumble Pad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a4,start:b9,x:b0,y:b3,platform:Linux,", +"03000000d81d00000e00000010010000,Savior,a:b0,b:b1,back:b8,leftshoulder:b6,leftstick:b10,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b2,rightstick:b11,righttrigger:b3,start:b9,x:b4,y:b5,platform:Linux,", +"03000000f025000021c1000010010000,ShanWan Gioteck PS3 Wired Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000632500007505000010010000,SHANWAN PS3/PC Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000bc2000000055000010010000,ShanWan PS3/PC Wired GamePad,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000005f140000c501000010010000,SHANWAN Trust Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000632500002305000010010000,ShanWan USB Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000341a00000908000010010000,SL-6566,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000004c050000e60c000011810000,Sony DualSense,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"050000004c050000e60c000000810000,Sony DualSense ,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux,", +"03000000250900000500000000010000,Sony PS2 pad with SmartJoy adapter,a:b2,b:b1,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Linux,", +"030000005e0400008e02000073050000,Speedlink TORID Wireless Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000020200000,SpeedLink XEOX Pro Analog Gamepad pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000d11800000094000011010000,Stadia Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de2800000112000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,paddle1:b11,paddle2:b10,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de2800000211000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,paddle1:b11,paddle2:b10,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de2800000211000011010000,Steam Controller,a:b2,b:b3,back:b10,dpdown:b18,dpleft:b19,dpright:b20,dpup:b17,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,paddle1:b15,paddle2:b16,rightshoulder:b7,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b5,platform:Linux,", +"03000000de2800004211000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,paddle1:b11,paddle2:b10,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de2800004211000011010000,Steam Controller,a:b2,b:b3,back:b10,dpdown:b18,dpleft:b19,dpright:b20,dpup:b17,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:b8,leftx:a0,lefty:a1,paddle1:b15,paddle2:b16,rightshoulder:b7,righttrigger:b9,rightx:a2,righty:a3,start:b11,x:b4,y:b5,platform:Linux,", +"03000000de280000fc11000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"05000000de2800000212000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,paddle1:b11,paddle2:b10,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,paddle1:b11,paddle2:b10,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"05000000de2800000611000001000000,Steam Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,paddle1:b11,paddle2:b10,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,platform:Linux,", +"03000000de280000ff11000001000000,Steam Virtual Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000381000003014000075010000,SteelSeries Stratus Duo,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000381000003114000075010000,SteelSeries Stratus Duo,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"0500000011010000311400001b010000,SteelSeries Stratus Duo,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b32,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"05000000110100001914000009010000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"03000000ad1b000038f0000090040000,Street Fighter IV FightStick TE,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000003b07000004a1000000010000,Suncom SFX Plus for USB,a:b0,b:b2,back:b7,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b9,righttrigger:b5,start:b8,x:b1,y:b3,platform:Linux,", +"03000000666600000488000000010000,Super Joy Box 5 Pro,a:b2,b:b1,back:b9,dpdown:b14,dpleft:b15,dpright:b13,dpup:b12,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b3,y:b0,platform:Linux,", +"0300000000f00000f100000000010000,Super RetroPort,a:b1,b:b5,back:b2,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b3,x:b0,y:b4,platform:Linux,", +"03000000457500002211000010010000,SZMY-POWER CO. LTD. GAMEPAD,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"030000008f0e00000d31000010010000,SZMY-POWER CO. LTD. GAMEPAD 3 TURBO,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000008f0e00001431000010010000,SZMY-POWER CO. LTD. PS3 gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000004f04000020b3000010010000,Thrustmaster 2 in 1 DT,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Linux,", +"030000004f04000015b3000010010000,Thrustmaster Dual Analog 4,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Linux,", +"030000004f04000023b3000000010000,Thrustmaster Dual Trigger 3-in-1,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004f0400000ed0000011010000,ThrustMaster eSwap PRO Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000b50700000399000000010000,Thrustmaster Firestorm Digital 2,a:b2,b:b4,back:b11,leftshoulder:b6,leftstick:b10,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b8,rightstick:b0,righttrigger:b9,start:b1,x:b3,y:b5,platform:Linux,", +"030000004f04000003b3000010010000,Thrustmaster Firestorm Dual Analog 2,a:b0,b:b2,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b9,rightx:a2,righty:a3,x:b1,y:b3,platform:Linux,", +"030000004f04000000b3000010010000,Thrustmaster Firestorm Dual Power,a:b0,b:b2,back:b9,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b11,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b10,x:b1,y:b3,platform:Linux,", +"030000004f04000026b3000002040000,Thrustmaster Gamepad GP XID,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c6240000025b000002020000,Thrustmaster GPX Gamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000004f04000008d0000000010000,Thrustmaster Run N Drive Wireless,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"030000004f04000009d0000000010000,Thrustmaster Run N Drive Wireless PS3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000004f04000007d0000000010000,Thrustmaster T Mini Wireless,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,platform:Linux,", +"030000004f04000012b3000010010000,Thrustmaster vibrating gamepad,a:b0,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b5,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b1,y:b3,platform:Linux,", +"03000000bd12000015d0000010010000,Tomee SNES USB Controller,a:b2,b:b1,back:b8,dpdown:+a1,dpleft:-a0,dpright:+a0,dpup:-a1,leftshoulder:b4,rightshoulder:b5,start:b9,x:b3,y:b0,platform:Linux,", +"03000000d814000007cd000011010000,Toodles 2008 Chimp PC/PS3,a:b0,b:b1,back:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,start:b9,x:b3,y:b2,platform:Linux,", +"030000005e0400008e02000070050000,Torid,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000c01100000591000011010000,Torid,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"03000000100800000100000010010000,Twin USB PS2 Adapter,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"03000000100800000300000010010000,USB Gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b3,y:b0,platform:Linux,", +"03000000790000000600000007010000,USB gamepad,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a3,righty:a4,start:b9,x:b3,y:b0,platform:Linux,", +"03000000790000001100000000010000,USB Gamepad1,a:b2,b:b1,back:b8,dpdown:a0,dpleft:a1,dpright:a2,dpup:a4,start:b9,platform:Linux,", +"030000006f0e00000302000011010000,Victrix Pro Fight Stick for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"030000006f0e00000702000011010000,Victrix Pro Fight Stick for PS4,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux,", +"05000000ac0500003232000001000000,VR-BOX,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a3,righty:a2,start:b9,x:b2,y:b3,platform:Linux,", +"03000000791d00000103000010010000,Wii Classic Controller,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"050000000d0f0000f600000001000000,Wireless HORIPAD Switch Pro Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000010010000,X360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000014010000,X360 Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400001907000000010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400009102000007010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000a102000000010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000a102000007010000,X360 Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"0000000058626f782033363020576900,Xbox 360 Wireless Controller,a:b0,b:b1,back:b14,dpdown:b11,dpleft:b12,dpright:b13,dpup:b10,guide:b7,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b6,x:b2,y:b3,platform:Linux,", +"030000005e040000a102000014010000,Xbox 360 Wireless Receiver (XBOX),a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"0000000058626f782047616d65706100,Xbox Gamepad (userspace driver),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000d102000002010000,Xbox One Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"050000005e040000fd02000030110000,Xbox One Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"050000005e040000050b000002090000,Xbox One Elite Series 2,a:b0,b:b1,back:b136,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b6,leftstick:b13,lefttrigger:a6,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a5,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000005e040000ea02000000000000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"050000005e040000e002000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"050000005e040000fd02000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b16,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000005e040000ea02000001030000,Xbox One Wireless Controller (Model 1708),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000120b000001050000,Xbox Series Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e040000130b000005050000,Xbox Series Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"050000005e040000130b000001050000,Xbox Series Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"050000005e040000130b000005050000,Xbox Series Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Linux,", +"030000005e040000120b000005050000,XBox Series pad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"030000005e0400008e02000000010000,xbox360 Wireless EasySMX,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux,", +"03000000450c00002043000010010000,XEOX Gamepad SL-6556-BK,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,platform:Linux,", +"03000000ac0500005b05000010010000,Xiaoji Gamesir-G3w,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b3,y:b0,platform:Linux,", +"05000000172700004431000029010000,XiaoMi Game Controller,a:b0,b:b1,back:b10,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b20,leftshoulder:b6,leftstick:b13,lefttrigger:a7,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a6,rightx:a2,righty:a5,start:b11,x:b3,y:b4,platform:Linux,", +"03000000c0160000e105000001010000,Xin-Mo Xin-Mo Dual Arcade,a:b4,b:b3,back:b6,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b9,leftshoulder:b2,leftx:a0,lefty:a1,rightshoulder:b5,start:b7,x:b1,y:b0,platform:Linux,", +"03000000120c0000100e000011010000,ZEROPLUS P4 Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +"03000000120c0000101e000011010000,ZEROPLUS P4 Wired Gamepad,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,", +#endif // GLFW_BUILD_LINUX_MAPPINGS +}; + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif diff --git a/thirdparty/imgui_suite/glfw/src/mappings.h.in b/thirdparty/imgui_suite/glfw/src/mappings.h.in new file mode 100644 index 00000000000..f2604390a43 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/mappings.h.in @@ -0,0 +1,82 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2006-2018 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// As mappings.h.in, this file is used by CMake to produce the mappings.h +// header file. If you are adding a GLFW specific gamepad mapping, this is +// where to put it. +//======================================================================== +// As mappings.h, this provides all pre-defined gamepad mappings, including +// all available in SDL_GameControllerDB. Do not edit this file. Any gamepad +// mappings not specific to GLFW should be submitted to SDL_GameControllerDB. +// This file can be re-generated from mappings.h.in and the upstream +// gamecontrollerdb.txt with the 'update_mappings' CMake target. +//======================================================================== + +// All gamepad mappings not labeled GLFW are copied from the +// SDL_GameControllerDB project under the following license: +// +// Simple DirectMedia Layer +// Copyright (C) 1997-2013 Sam Lantinga +// +// This software is provided 'as-is', without any express or implied warranty. +// In no event will the authors be held liable for any damages arising from the +// use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not be +// misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source distribution. + +const char* _glfwDefaultMappings[] = +{ +#if defined(GLFW_BUILD_WIN32_MAPPINGS) +@GLFW_WIN32_MAPPINGS@ +"78696e70757401000000000000000000,XInput Gamepad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757402000000000000000000,XInput Wheel (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757403000000000000000000,XInput Arcade Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757404000000000000000000,XInput Flight Stick (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757405000000000000000000,XInput Dance Pad (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757406000000000000000000,XInput Guitar (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +"78696e70757408000000000000000000,XInput Drum Kit (GLFW),platform:Windows,a:b0,b:b1,x:b2,y:b3,leftshoulder:b4,rightshoulder:b5,back:b6,start:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a4,righttrigger:a5,dpup:h0.1,dpright:h0.2,dpdown:h0.4,dpleft:h0.8,", +#endif // GLFW_BUILD_WIN32_MAPPINGS + +#if defined(GLFW_BUILD_COCOA_MAPPINGS) +@GLFW_COCOA_MAPPINGS@ +#endif // GLFW_BUILD_COCOA_MAPPINGS + +#if defined(GLFW_BUILD_LINUX_MAPPINGS) +@GLFW_LINUX_MAPPINGS@ +#endif // GLFW_BUILD_LINUX_MAPPINGS +}; + diff --git a/thirdparty/imgui_suite/glfw/src/monitor.c b/thirdparty/imgui_suite/glfw/src/monitor.c new file mode 100644 index 00000000000..6429493bfc8 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/monitor.c @@ -0,0 +1,548 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include +#include + + +// Lexically compare video modes, used by qsort +// +static int compareVideoModes(const void* fp, const void* sp) +{ + const GLFWvidmode* fm = fp; + const GLFWvidmode* sm = sp; + const int fbpp = fm->redBits + fm->greenBits + fm->blueBits; + const int sbpp = sm->redBits + sm->greenBits + sm->blueBits; + const int farea = fm->width * fm->height; + const int sarea = sm->width * sm->height; + + // First sort on color bits per pixel + if (fbpp != sbpp) + return fbpp - sbpp; + + // Then sort on screen area + if (farea != sarea) + return farea - sarea; + + // Then sort on width + if (fm->width != sm->width) + return fm->width - sm->width; + + // Lastly sort on refresh rate + return fm->refreshRate - sm->refreshRate; +} + +// Retrieves the available modes for the specified monitor +// +static GLFWbool refreshVideoModes(_GLFWmonitor* monitor) +{ + int modeCount; + GLFWvidmode* modes; + + if (monitor->modes) + return GLFW_TRUE; + + modes = _glfw.platform.getVideoModes(monitor, &modeCount); + if (!modes) + return GLFW_FALSE; + + qsort(modes, modeCount, sizeof(GLFWvidmode), compareVideoModes); + + _glfw_free(monitor->modes); + monitor->modes = modes; + monitor->modeCount = modeCount; + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +// Notifies shared code of a monitor connection or disconnection +// +void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement) +{ + assert(monitor != NULL); + assert(action == GLFW_CONNECTED || action == GLFW_DISCONNECTED); + assert(placement == _GLFW_INSERT_FIRST || placement == _GLFW_INSERT_LAST); + + if (action == GLFW_CONNECTED) + { + _glfw.monitorCount++; + _glfw.monitors = + _glfw_realloc(_glfw.monitors, + sizeof(_GLFWmonitor*) * _glfw.monitorCount); + + if (placement == _GLFW_INSERT_FIRST) + { + memmove(_glfw.monitors + 1, + _glfw.monitors, + ((size_t) _glfw.monitorCount - 1) * sizeof(_GLFWmonitor*)); + _glfw.monitors[0] = monitor; + } + else + _glfw.monitors[_glfw.monitorCount - 1] = monitor; + } + else if (action == GLFW_DISCONNECTED) + { + int i; + _GLFWwindow* window; + + for (window = _glfw.windowListHead; window; window = window->next) + { + if (window->monitor == monitor) + { + int width, height, xoff, yoff; + _glfw.platform.getWindowSize(window, &width, &height); + _glfw.platform.setWindowMonitor(window, NULL, 0, 0, width, height, 0); + _glfw.platform.getWindowFrameSize(window, &xoff, &yoff, NULL, NULL); + _glfw.platform.setWindowPos(window, xoff, yoff); + } + } + + for (i = 0; i < _glfw.monitorCount; i++) + { + if (_glfw.monitors[i] == monitor) + { + _glfw.monitorCount--; + memmove(_glfw.monitors + i, + _glfw.monitors + i + 1, + ((size_t) _glfw.monitorCount - i) * sizeof(_GLFWmonitor*)); + break; + } + } + } + + if (_glfw.callbacks.monitor) + _glfw.callbacks.monitor((GLFWmonitor*) monitor, action); + + if (action == GLFW_DISCONNECTED) + _glfwFreeMonitor(monitor); +} + +// Notifies shared code that a full screen window has acquired or released +// a monitor +// +void _glfwInputMonitorWindow(_GLFWmonitor* monitor, _GLFWwindow* window) +{ + assert(monitor != NULL); + monitor->window = window; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Allocates and returns a monitor object with the specified name and dimensions +// +_GLFWmonitor* _glfwAllocMonitor(const char* name, int widthMM, int heightMM) +{ + _GLFWmonitor* monitor = _glfw_calloc(1, sizeof(_GLFWmonitor)); + monitor->widthMM = widthMM; + monitor->heightMM = heightMM; + + strncpy(monitor->name, name, sizeof(monitor->name) - 1); + + return monitor; +} + +// Frees a monitor object and any data associated with it +// +void _glfwFreeMonitor(_GLFWmonitor* monitor) +{ + if (monitor == NULL) + return; + + _glfw.platform.freeMonitor(monitor); + + _glfwFreeGammaArrays(&monitor->originalRamp); + _glfwFreeGammaArrays(&monitor->currentRamp); + + _glfw_free(monitor->modes); + _glfw_free(monitor); +} + +// Allocates red, green and blue value arrays of the specified size +// +void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size) +{ + ramp->red = _glfw_calloc(size, sizeof(unsigned short)); + ramp->green = _glfw_calloc(size, sizeof(unsigned short)); + ramp->blue = _glfw_calloc(size, sizeof(unsigned short)); + ramp->size = size; +} + +// Frees the red, green and blue value arrays and clears the struct +// +void _glfwFreeGammaArrays(GLFWgammaramp* ramp) +{ + _glfw_free(ramp->red); + _glfw_free(ramp->green); + _glfw_free(ramp->blue); + + memset(ramp, 0, sizeof(GLFWgammaramp)); +} + +// Chooses the video mode most closely matching the desired one +// +const GLFWvidmode* _glfwChooseVideoMode(_GLFWmonitor* monitor, + const GLFWvidmode* desired) +{ + int i; + unsigned int sizeDiff, leastSizeDiff = UINT_MAX; + unsigned int rateDiff, leastRateDiff = UINT_MAX; + unsigned int colorDiff, leastColorDiff = UINT_MAX; + const GLFWvidmode* current; + const GLFWvidmode* closest = NULL; + + if (!refreshVideoModes(monitor)) + return NULL; + + for (i = 0; i < monitor->modeCount; i++) + { + current = monitor->modes + i; + + colorDiff = 0; + + if (desired->redBits != GLFW_DONT_CARE) + colorDiff += abs(current->redBits - desired->redBits); + if (desired->greenBits != GLFW_DONT_CARE) + colorDiff += abs(current->greenBits - desired->greenBits); + if (desired->blueBits != GLFW_DONT_CARE) + colorDiff += abs(current->blueBits - desired->blueBits); + + sizeDiff = abs((current->width - desired->width) * + (current->width - desired->width) + + (current->height - desired->height) * + (current->height - desired->height)); + + if (desired->refreshRate != GLFW_DONT_CARE) + rateDiff = abs(current->refreshRate - desired->refreshRate); + else + rateDiff = UINT_MAX - current->refreshRate; + + if ((colorDiff < leastColorDiff) || + (colorDiff == leastColorDiff && sizeDiff < leastSizeDiff) || + (colorDiff == leastColorDiff && sizeDiff == leastSizeDiff && rateDiff < leastRateDiff)) + { + closest = current; + leastSizeDiff = sizeDiff; + leastRateDiff = rateDiff; + leastColorDiff = colorDiff; + } + } + + return closest; +} + +// Performs lexical comparison between two @ref GLFWvidmode structures +// +int _glfwCompareVideoModes(const GLFWvidmode* fm, const GLFWvidmode* sm) +{ + return compareVideoModes(fm, sm); +} + +// Splits a color depth into red, green and blue bit depths +// +void _glfwSplitBPP(int bpp, int* red, int* green, int* blue) +{ + int delta; + + // We assume that by 32 the user really meant 24 + if (bpp == 32) + bpp = 24; + + // Convert "bits per pixel" to red, green & blue sizes + + *red = *green = *blue = bpp / 3; + delta = bpp - (*red * 3); + if (delta >= 1) + *green = *green + 1; + + if (delta == 2) + *red = *red + 1; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI GLFWmonitor** glfwGetMonitors(int* count) +{ + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + *count = _glfw.monitorCount; + return (GLFWmonitor**) _glfw.monitors; +} + +GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!_glfw.monitorCount) + return NULL; + + return (GLFWmonitor*) _glfw.monitors[0]; +} + +GLFWAPI void glfwGetMonitorPos(GLFWmonitor* handle, int* xpos, int* ypos) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 0; + + _GLFW_REQUIRE_INIT(); + + _glfw.platform.getMonitorPos(monitor, xpos, ypos); +} + +GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* handle, + int* xpos, int* ypos, + int* width, int* height) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 0; + if (width) + *width = 0; + if (height) + *height = 0; + + _GLFW_REQUIRE_INIT(); + + _glfw.platform.getMonitorWorkarea(monitor, xpos, ypos, width, height); +} + +GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* handle, int* widthMM, int* heightMM) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (widthMM) + *widthMM = 0; + if (heightMM) + *heightMM = 0; + + _GLFW_REQUIRE_INIT(); + + if (widthMM) + *widthMM = monitor->widthMM; + if (heightMM) + *heightMM = monitor->heightMM; +} + +GLFWAPI void glfwGetMonitorContentScale(GLFWmonitor* handle, + float* xscale, float* yscale) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + if (xscale) + *xscale = 0.f; + if (yscale) + *yscale = 0.f; + + _GLFW_REQUIRE_INIT(); + _glfw.platform.getMonitorContentScale(monitor, xscale, yscale); +} + +GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->name; +} + +GLFWAPI void glfwSetMonitorUserPointer(GLFWmonitor* handle, void* pointer) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT(); + monitor->userPointer = pointer; +} + +GLFWAPI void* glfwGetMonitorUserPointer(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->userPointer; +} + +GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWmonitorfun, _glfw.callbacks.monitor, cbfun); + return cbfun; +} + +GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!refreshVideoModes(monitor)) + return NULL; + + *count = monitor->modeCount; + return monitor->modes; +} + +GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + _glfw.platform.getVideoMode(monitor, &monitor->currentMode); + return &monitor->currentMode; +} + +GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) +{ + unsigned int i; + unsigned short* values; + GLFWgammaramp ramp; + const GLFWgammaramp* original; + assert(handle != NULL); + assert(gamma > 0.f); + assert(gamma <= FLT_MAX); + + _GLFW_REQUIRE_INIT(); + + if (gamma != gamma || gamma <= 0.f || gamma > FLT_MAX) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid gamma value %f", gamma); + return; + } + + original = glfwGetGammaRamp(handle); + if (!original) + return; + + values = _glfw_calloc(original->size, sizeof(unsigned short)); + + for (i = 0; i < original->size; i++) + { + float value; + + // Calculate intensity + value = i / (float) (original->size - 1); + // Apply gamma curve + value = powf(value, 1.f / gamma) * 65535.f + 0.5f; + // Clamp to value range + value = _glfw_fminf(value, 65535.f); + + values[i] = (unsigned short) value; + } + + ramp.red = values; + ramp.green = values; + ramp.blue = values; + ramp.size = original->size; + + glfwSetGammaRamp(handle, &ramp); + _glfw_free(values); +} + +GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + _glfwFreeGammaArrays(&monitor->currentRamp); + if (!_glfw.platform.getGammaRamp(monitor, &monitor->currentRamp)) + return NULL; + + return &monitor->currentRamp; +} + +GLFWAPI void glfwSetGammaRamp(GLFWmonitor* handle, const GLFWgammaramp* ramp) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + assert(monitor != NULL); + assert(ramp != NULL); + assert(ramp->size > 0); + assert(ramp->red != NULL); + assert(ramp->green != NULL); + assert(ramp->blue != NULL); + + _GLFW_REQUIRE_INIT(); + + if (ramp->size <= 0) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid gamma ramp size %i", + ramp->size); + return; + } + + if (!monitor->originalRamp.size) + { + if (!_glfw.platform.getGammaRamp(monitor, &monitor->originalRamp)) + return; + } + + _glfw.platform.setGammaRamp(monitor, ramp); +} + diff --git a/thirdparty/imgui_suite/glfw/src/nsgl_context.m b/thirdparty/imgui_suite/glfw/src/nsgl_context.m new file mode 100644 index 00000000000..fc1f752108c --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/nsgl_context.m @@ -0,0 +1,376 @@ +//======================================================================== +// GLFW 3.4 macOS - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2009-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include + +static void makeContextCurrentNSGL(_GLFWwindow* window) +{ + @autoreleasepool { + + if (window) + [window->context.nsgl.object makeCurrentContext]; + else + [NSOpenGLContext clearCurrentContext]; + + _glfwPlatformSetTls(&_glfw.contextSlot, window); + + } // autoreleasepool +} + +static void swapBuffersNSGL(_GLFWwindow* window) +{ + @autoreleasepool { + + // HACK: Simulate vsync with usleep as NSGL swap interval does not apply to + // windows with a non-visible occlusion state + if (window->ns.occluded) + { + int interval = 0; + [window->context.nsgl.object getValues:&interval + forParameter:NSOpenGLContextParameterSwapInterval]; + + if (interval > 0) + { + const double framerate = 60.0; + const uint64_t frequency = _glfwPlatformGetTimerFrequency(); + const uint64_t value = _glfwPlatformGetTimerValue(); + + const double elapsed = value / (double) frequency; + const double period = 1.0 / framerate; + const double delay = period - fmod(elapsed, period); + + usleep(floorl(delay * 1e6)); + } + } + + [window->context.nsgl.object flushBuffer]; + + } // autoreleasepool +} + +static void swapIntervalNSGL(int interval) +{ + @autoreleasepool { + + _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); + if (window) + { + [window->context.nsgl.object setValues:&interval + forParameter:NSOpenGLContextParameterSwapInterval]; + } + + } // autoreleasepool +} + +static int extensionSupportedNSGL(const char* extension) +{ + // There are no NSGL extensions + return GLFW_FALSE; +} + +static GLFWglproc getProcAddressNSGL(const char* procname) +{ + CFStringRef symbolName = CFStringCreateWithCString(kCFAllocatorDefault, + procname, + kCFStringEncodingASCII); + + GLFWglproc symbol = CFBundleGetFunctionPointerForName(_glfw.nsgl.framework, + symbolName); + + CFRelease(symbolName); + + return symbol; +} + +static void destroyContextNSGL(_GLFWwindow* window) +{ + @autoreleasepool { + + [window->context.nsgl.pixelFormat release]; + window->context.nsgl.pixelFormat = nil; + + [window->context.nsgl.object release]; + window->context.nsgl.object = nil; + + } // autoreleasepool +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Initialize OpenGL support +// +GLFWbool _glfwInitNSGL(void) +{ + if (_glfw.nsgl.framework) + return GLFW_TRUE; + + _glfw.nsgl.framework = + CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl")); + if (_glfw.nsgl.framework == NULL) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "NSGL: Failed to locate OpenGL framework"); + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +// Terminate OpenGL support +// +void _glfwTerminateNSGL(void) +{ +} + +// Create the OpenGL context +// +GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + if (ctxconfig->client == GLFW_OPENGL_ES_API) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "NSGL: OpenGL ES is not available on macOS"); + return GLFW_FALSE; + } + + if (ctxconfig->major > 2) + { + if (ctxconfig->major == 3 && ctxconfig->minor < 2) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "NSGL: The targeted version of macOS does not support OpenGL 3.0 or 3.1 but may support 3.2 and above"); + return GLFW_FALSE; + } + } + + // Context robustness modes (GL_KHR_robustness) are not yet supported by + // macOS but are not a hard constraint, so ignore and continue + + // Context release behaviors (GL_KHR_context_flush_control) are not yet + // supported by macOS but are not a hard constraint, so ignore and continue + + // Debug contexts (GL_KHR_debug) are not yet supported by macOS but are not + // a hard constraint, so ignore and continue + + // No-error contexts (GL_KHR_no_error) are not yet supported by macOS but + // are not a hard constraint, so ignore and continue + +#define ADD_ATTRIB(a) \ +{ \ + assert((size_t) index < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[index++] = a; \ +} +#define SET_ATTRIB(a, v) { ADD_ATTRIB(a); ADD_ATTRIB(v); } + + NSOpenGLPixelFormatAttribute attribs[40]; + int index = 0; + + ADD_ATTRIB(NSOpenGLPFAAccelerated); + ADD_ATTRIB(NSOpenGLPFAClosestPolicy); + + if (ctxconfig->nsgl.offline) + { + ADD_ATTRIB(NSOpenGLPFAAllowOfflineRenderers); + // NOTE: This replaces the NSSupportsAutomaticGraphicsSwitching key in + // Info.plist for unbundled applications + // HACK: This assumes that NSOpenGLPixelFormat will remain + // a straightforward wrapper of its CGL counterpart + ADD_ATTRIB(kCGLPFASupportsAutomaticGraphicsSwitching); + } + +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 + if (ctxconfig->major >= 4) + { + SET_ATTRIB(NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion4_1Core); + } + else +#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ + if (ctxconfig->major >= 3) + { + SET_ATTRIB(NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core); + } + + if (ctxconfig->major <= 2) + { + if (fbconfig->auxBuffers != GLFW_DONT_CARE) + SET_ATTRIB(NSOpenGLPFAAuxBuffers, fbconfig->auxBuffers); + + if (fbconfig->accumRedBits != GLFW_DONT_CARE && + fbconfig->accumGreenBits != GLFW_DONT_CARE && + fbconfig->accumBlueBits != GLFW_DONT_CARE && + fbconfig->accumAlphaBits != GLFW_DONT_CARE) + { + const int accumBits = fbconfig->accumRedBits + + fbconfig->accumGreenBits + + fbconfig->accumBlueBits + + fbconfig->accumAlphaBits; + + SET_ATTRIB(NSOpenGLPFAAccumSize, accumBits); + } + } + + if (fbconfig->redBits != GLFW_DONT_CARE && + fbconfig->greenBits != GLFW_DONT_CARE && + fbconfig->blueBits != GLFW_DONT_CARE) + { + int colorBits = fbconfig->redBits + + fbconfig->greenBits + + fbconfig->blueBits; + + // macOS needs non-zero color size, so set reasonable values + if (colorBits == 0) + colorBits = 24; + else if (colorBits < 15) + colorBits = 15; + + SET_ATTRIB(NSOpenGLPFAColorSize, colorBits); + } + + if (fbconfig->alphaBits != GLFW_DONT_CARE) + SET_ATTRIB(NSOpenGLPFAAlphaSize, fbconfig->alphaBits); + + if (fbconfig->depthBits != GLFW_DONT_CARE) + SET_ATTRIB(NSOpenGLPFADepthSize, fbconfig->depthBits); + + if (fbconfig->stencilBits != GLFW_DONT_CARE) + SET_ATTRIB(NSOpenGLPFAStencilSize, fbconfig->stencilBits); + + if (fbconfig->stereo) + { +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "NSGL: Stereo rendering is deprecated"); + return GLFW_FALSE; +#else + ADD_ATTRIB(NSOpenGLPFAStereo); +#endif + } + + if (fbconfig->doublebuffer) + ADD_ATTRIB(NSOpenGLPFADoubleBuffer); + + if (fbconfig->samples != GLFW_DONT_CARE) + { + if (fbconfig->samples == 0) + { + SET_ATTRIB(NSOpenGLPFASampleBuffers, 0); + } + else + { + SET_ATTRIB(NSOpenGLPFASampleBuffers, 1); + SET_ATTRIB(NSOpenGLPFASamples, fbconfig->samples); + } + } + + // NOTE: All NSOpenGLPixelFormats on the relevant cards support sRGB + // framebuffer, so there's no need (and no way) to request it + + ADD_ATTRIB(0); + +#undef ADD_ATTRIB +#undef SET_ATTRIB + + window->context.nsgl.pixelFormat = + [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs]; + if (window->context.nsgl.pixelFormat == nil) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "NSGL: Failed to find a suitable pixel format"); + return GLFW_FALSE; + } + + NSOpenGLContext* share = nil; + + if (ctxconfig->share) + share = ctxconfig->share->context.nsgl.object; + + window->context.nsgl.object = + [[NSOpenGLContext alloc] initWithFormat:window->context.nsgl.pixelFormat + shareContext:share]; + if (window->context.nsgl.object == nil) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "NSGL: Failed to create OpenGL context"); + return GLFW_FALSE; + } + + if (fbconfig->transparent) + { + GLint opaque = 0; + [window->context.nsgl.object setValues:&opaque + forParameter:NSOpenGLContextParameterSurfaceOpacity]; + } + + [window->ns.view setWantsBestResolutionOpenGLSurface:window->ns.retina]; + + [window->context.nsgl.object setView:window->ns.view]; + + window->context.makeCurrent = makeContextCurrentNSGL; + window->context.swapBuffers = swapBuffersNSGL; + window->context.swapInterval = swapIntervalNSGL; + window->context.extensionSupported = extensionSupportedNSGL; + window->context.getProcAddress = getProcAddressNSGL; + window->context.destroy = destroyContextNSGL; + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI id glfwGetNSGLContext(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(nil); + + if (_glfw.platform.platformID != GLFW_PLATFORM_COCOA) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "NSGL: Platform not initialized"); + return nil; + } + + if (window->context.source != GLFW_NATIVE_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return nil; + } + + return window->context.nsgl.object; +} + diff --git a/thirdparty/imgui_suite/glfw/src/null_init.c b/thirdparty/imgui_suite/glfw/src/null_init.c new file mode 100644 index 00000000000..de4b28f350c --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/null_init.c @@ -0,0 +1,133 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2016 Google Inc. +// Copyright (c) 2016-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwConnectNull(int platformID, _GLFWplatform* platform) +{ + const _GLFWplatform null = + { + GLFW_PLATFORM_NULL, + _glfwInitNull, + _glfwTerminateNull, + _glfwGetCursorPosNull, + _glfwSetCursorPosNull, + _glfwSetCursorModeNull, + _glfwSetRawMouseMotionNull, + _glfwRawMouseMotionSupportedNull, + _glfwCreateCursorNull, + _glfwCreateStandardCursorNull, + _glfwDestroyCursorNull, + _glfwSetCursorNull, + _glfwGetScancodeNameNull, + _glfwGetKeyScancodeNull, + _glfwSetClipboardStringNull, + _glfwGetClipboardStringNull, + _glfwInitJoysticksNull, + _glfwTerminateJoysticksNull, + _glfwPollJoystickNull, + _glfwGetMappingNameNull, + _glfwUpdateGamepadGUIDNull, + _glfwFreeMonitorNull, + _glfwGetMonitorPosNull, + _glfwGetMonitorContentScaleNull, + _glfwGetMonitorWorkareaNull, + _glfwGetVideoModesNull, + _glfwGetVideoModeNull, + _glfwGetGammaRampNull, + _glfwSetGammaRampNull, + _glfwCreateWindowNull, + _glfwDestroyWindowNull, + _glfwSetWindowTitleNull, + _glfwSetWindowIconNull, + _glfwGetWindowPosNull, + _glfwSetWindowPosNull, + _glfwGetWindowSizeNull, + _glfwSetWindowSizeNull, + _glfwSetWindowSizeLimitsNull, + _glfwSetWindowAspectRatioNull, + _glfwGetFramebufferSizeNull, + _glfwGetWindowFrameSizeNull, + _glfwGetWindowContentScaleNull, + _glfwIconifyWindowNull, + _glfwRestoreWindowNull, + _glfwMaximizeWindowNull, + _glfwShowWindowNull, + _glfwHideWindowNull, + _glfwRequestWindowAttentionNull, + _glfwFocusWindowNull, + _glfwSetWindowMonitorNull, + _glfwWindowFocusedNull, + _glfwWindowIconifiedNull, + _glfwWindowVisibleNull, + _glfwWindowMaximizedNull, + _glfwWindowHoveredNull, + _glfwFramebufferTransparentNull, + _glfwGetWindowOpacityNull, + _glfwSetWindowResizableNull, + _glfwSetWindowDecoratedNull, + _glfwSetWindowFloatingNull, + _glfwSetWindowOpacityNull, + _glfwSetWindowMousePassthroughNull, + _glfwPollEventsNull, + _glfwWaitEventsNull, + _glfwWaitEventsTimeoutNull, + _glfwPostEmptyEventNull, + _glfwGetEGLPlatformNull, + _glfwGetEGLNativeDisplayNull, + _glfwGetEGLNativeWindowNull, + _glfwGetRequiredInstanceExtensionsNull, + _glfwGetPhysicalDevicePresentationSupportNull, + _glfwCreateWindowSurfaceNull, + }; + + *platform = null; + return GLFW_TRUE; +} + +int _glfwInitNull(void) +{ + _glfwPollMonitorsNull(); + return GLFW_TRUE; +} + +void _glfwTerminateNull(void) +{ + free(_glfw.null.clipboardString); + _glfwTerminateOSMesa(); + _glfwTerminateEGL(); +} + diff --git a/thirdparty/imgui_suite/glfw/src/null_joystick.c b/thirdparty/imgui_suite/glfw/src/null_joystick.c new file mode 100644 index 00000000000..1fe50721b07 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/null_joystick.c @@ -0,0 +1,58 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2016-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwInitJoysticksNull(void) +{ + return GLFW_TRUE; +} + +void _glfwTerminateJoysticksNull(void) +{ +} + +GLFWbool _glfwPollJoystickNull(_GLFWjoystick* js, int mode) +{ + return GLFW_FALSE; +} + +const char* _glfwGetMappingNameNull(void) +{ + return ""; +} + +void _glfwUpdateGamepadGUIDNull(char* guid) +{ +} + diff --git a/thirdparty/imgui_suite/glfw/src/null_joystick.h b/thirdparty/imgui_suite/glfw/src/null_joystick.h new file mode 100644 index 00000000000..a2199c5602e --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/null_joystick.h @@ -0,0 +1,32 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +GLFWbool _glfwInitJoysticksNull(void); +void _glfwTerminateJoysticksNull(void); +GLFWbool _glfwPollJoystickNull(_GLFWjoystick* js, int mode); +const char* _glfwGetMappingNameNull(void); +void _glfwUpdateGamepadGUIDNull(char* guid); + diff --git a/thirdparty/imgui_suite/glfw/src/null_monitor.c b/thirdparty/imgui_suite/glfw/src/null_monitor.c new file mode 100644 index 00000000000..63a1cd20580 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/null_monitor.c @@ -0,0 +1,161 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2016 Google Inc. +// Copyright (c) 2016-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +// The the sole (fake) video mode of our (sole) fake monitor +// +static GLFWvidmode getVideoMode(void) +{ + GLFWvidmode mode; + mode.width = 1920; + mode.height = 1080; + mode.redBits = 8; + mode.greenBits = 8; + mode.blueBits = 8; + mode.refreshRate = 60; + return mode; +} + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPollMonitorsNull(void) +{ + const float dpi = 141.f; + const GLFWvidmode mode = getVideoMode(); + _GLFWmonitor* monitor = _glfwAllocMonitor("Null SuperNoop 0", + (int) (mode.width * 25.4f / dpi), + (int) (mode.height * 25.4f / dpi)); + _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_FIRST); +} + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwFreeMonitorNull(_GLFWmonitor* monitor) +{ + _glfwFreeGammaArrays(&monitor->null.ramp); +} + +void _glfwGetMonitorPosNull(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 0; +} + +void _glfwGetMonitorContentScaleNull(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = 1.f; + if (yscale) + *yscale = 1.f; +} + +void _glfwGetMonitorWorkareaNull(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + const GLFWvidmode mode = getVideoMode(); + + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 10; + if (width) + *width = mode.width; + if (height) + *height = mode.height - 10; +} + +GLFWvidmode* _glfwGetVideoModesNull(_GLFWmonitor* monitor, int* found) +{ + GLFWvidmode* mode = _glfw_calloc(1, sizeof(GLFWvidmode)); + *mode = getVideoMode(); + *found = 1; + return mode; +} + +void _glfwGetVideoModeNull(_GLFWmonitor* monitor, GLFWvidmode* mode) +{ + *mode = getVideoMode(); +} + +GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + if (!monitor->null.ramp.size) + { + unsigned int i; + + _glfwAllocGammaArrays(&monitor->null.ramp, 256); + + for (i = 0; i < monitor->null.ramp.size; i++) + { + const float gamma = 2.2f; + float value; + value = i / (float) (monitor->null.ramp.size - 1); + value = powf(value, 1.f / gamma) * 65535.f + 0.5f; + value = _glfw_fminf(value, 65535.f); + + monitor->null.ramp.red[i] = (unsigned short) value; + monitor->null.ramp.green[i] = (unsigned short) value; + monitor->null.ramp.blue[i] = (unsigned short) value; + } + } + + _glfwAllocGammaArrays(ramp, monitor->null.ramp.size); + memcpy(ramp->red, monitor->null.ramp.red, sizeof(short) * ramp->size); + memcpy(ramp->green, monitor->null.ramp.green, sizeof(short) * ramp->size); + memcpy(ramp->blue, monitor->null.ramp.blue, sizeof(short) * ramp->size); + return GLFW_TRUE; +} + +void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ + if (monitor->null.ramp.size != ramp->size) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Null: Gamma ramp size must match current ramp size"); + return; + } + + memcpy(monitor->null.ramp.red, ramp->red, sizeof(short) * ramp->size); + memcpy(monitor->null.ramp.green, ramp->green, sizeof(short) * ramp->size); + memcpy(monitor->null.ramp.blue, ramp->blue, sizeof(short) * ramp->size); +} + diff --git a/thirdparty/imgui_suite/glfw/src/null_platform.h b/thirdparty/imgui_suite/glfw/src/null_platform.h new file mode 100644 index 00000000000..b646acb3094 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/null_platform.h @@ -0,0 +1,149 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2016 Google Inc. +// Copyright (c) 2016-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#define GLFW_NULL_WINDOW_STATE _GLFWwindowNull null; +#define GLFW_NULL_LIBRARY_WINDOW_STATE _GLFWlibraryNull null; +#define GLFW_NULL_MONITOR_STATE _GLFWmonitorNull null; + +#define GLFW_NULL_CONTEXT_STATE +#define GLFW_NULL_CURSOR_STATE +#define GLFW_NULL_LIBRARY_CONTEXT_STATE + + +// Null-specific per-window data +// +typedef struct _GLFWwindowNull +{ + int xpos; + int ypos; + int width; + int height; + char* title; + GLFWbool visible; + GLFWbool iconified; + GLFWbool maximized; + GLFWbool resizable; + GLFWbool decorated; + GLFWbool floating; + GLFWbool transparent; + float opacity; +} _GLFWwindowNull; + +// Null-specific per-monitor data +// +typedef struct _GLFWmonitorNull +{ + GLFWgammaramp ramp; +} _GLFWmonitorNull; + +// Null-specific global data +// +typedef struct _GLFWlibraryNull +{ + int xcursor; + int ycursor; + char* clipboardString; + _GLFWwindow* focusedWindow; +} _GLFWlibraryNull; + +void _glfwPollMonitorsNull(void); + +GLFWbool _glfwConnectNull(int platformID, _GLFWplatform* platform); +int _glfwInitNull(void); +void _glfwTerminateNull(void); + +void _glfwFreeMonitorNull(_GLFWmonitor* monitor); +void _glfwGetMonitorPosNull(_GLFWmonitor* monitor, int* xpos, int* ypos); +void _glfwGetMonitorContentScaleNull(_GLFWmonitor* monitor, float* xscale, float* yscale); +void _glfwGetMonitorWorkareaNull(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); +GLFWvidmode* _glfwGetVideoModesNull(_GLFWmonitor* monitor, int* found); +void _glfwGetVideoModeNull(_GLFWmonitor* monitor, GLFWvidmode* mode); +GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp); +void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +GLFWbool _glfwCreateWindowNull(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig); +void _glfwDestroyWindowNull(_GLFWwindow* window); +void _glfwSetWindowTitleNull(_GLFWwindow* window, const char* title); +void _glfwSetWindowIconNull(_GLFWwindow* window, int count, const GLFWimage* images); +void _glfwSetWindowMonitorNull(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); +void _glfwGetWindowPosNull(_GLFWwindow* window, int* xpos, int* ypos); +void _glfwSetWindowPosNull(_GLFWwindow* window, int xpos, int ypos); +void _glfwGetWindowSizeNull(_GLFWwindow* window, int* width, int* height); +void _glfwSetWindowSizeNull(_GLFWwindow* window, int width, int height); +void _glfwSetWindowSizeLimitsNull(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); +void _glfwSetWindowAspectRatioNull(_GLFWwindow* window, int n, int d); +void _glfwGetFramebufferSizeNull(_GLFWwindow* window, int* width, int* height); +void _glfwGetWindowFrameSizeNull(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); +void _glfwGetWindowContentScaleNull(_GLFWwindow* window, float* xscale, float* yscale); +void _glfwIconifyWindowNull(_GLFWwindow* window); +void _glfwRestoreWindowNull(_GLFWwindow* window); +void _glfwMaximizeWindowNull(_GLFWwindow* window); +GLFWbool _glfwWindowMaximizedNull(_GLFWwindow* window); +GLFWbool _glfwWindowHoveredNull(_GLFWwindow* window); +GLFWbool _glfwFramebufferTransparentNull(_GLFWwindow* window); +void _glfwSetWindowResizableNull(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowDecoratedNull(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowFloatingNull(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowMousePassthroughNull(_GLFWwindow* window, GLFWbool enabled); +float _glfwGetWindowOpacityNull(_GLFWwindow* window); +void _glfwSetWindowOpacityNull(_GLFWwindow* window, float opacity); +void _glfwSetRawMouseMotionNull(_GLFWwindow *window, GLFWbool enabled); +GLFWbool _glfwRawMouseMotionSupportedNull(void); +void _glfwShowWindowNull(_GLFWwindow* window); +void _glfwRequestWindowAttentionNull(_GLFWwindow* window); +void _glfwRequestWindowAttentionNull(_GLFWwindow* window); +void _glfwHideWindowNull(_GLFWwindow* window); +void _glfwFocusWindowNull(_GLFWwindow* window); +GLFWbool _glfwWindowFocusedNull(_GLFWwindow* window); +GLFWbool _glfwWindowIconifiedNull(_GLFWwindow* window); +GLFWbool _glfwWindowVisibleNull(_GLFWwindow* window); +void _glfwPollEventsNull(void); +void _glfwWaitEventsNull(void); +void _glfwWaitEventsTimeoutNull(double timeout); +void _glfwPostEmptyEventNull(void); +void _glfwGetCursorPosNull(_GLFWwindow* window, double* xpos, double* ypos); +void _glfwSetCursorPosNull(_GLFWwindow* window, double x, double y); +void _glfwSetCursorModeNull(_GLFWwindow* window, int mode); +GLFWbool _glfwCreateCursorNull(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); +GLFWbool _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape); +void _glfwDestroyCursorNull(_GLFWcursor* cursor); +void _glfwSetCursorNull(_GLFWwindow* window, _GLFWcursor* cursor); +void _glfwSetClipboardStringNull(const char* string); +const char* _glfwGetClipboardStringNull(void); +const char* _glfwGetScancodeNameNull(int scancode); +int _glfwGetKeyScancodeNull(int key); + +EGLenum _glfwGetEGLPlatformNull(EGLint** attribs); +EGLNativeDisplayType _glfwGetEGLNativeDisplayNull(void); +EGLNativeWindowType _glfwGetEGLNativeWindowNull(_GLFWwindow* window); + +void _glfwGetRequiredInstanceExtensionsNull(char** extensions); +GLFWbool _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); +VkResult _glfwCreateWindowSurfaceNull(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); + +void _glfwPollMonitorsNull(void); + diff --git a/thirdparty/imgui_suite/glfw/src/null_window.c b/thirdparty/imgui_suite/glfw/src/null_window.c new file mode 100644 index 00000000000..7a40192931d --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/null_window.c @@ -0,0 +1,724 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2016 Google Inc. +// Copyright (c) 2016-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include + +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wsign-compare" +#endif + +static void applySizeLimits(_GLFWwindow* window, int* width, int* height) +{ + if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) + { + const float ratio = (float) window->numer / (float) window->denom; + *height = (int) (*width / ratio); + } + + if (window->minwidth != GLFW_DONT_CARE) + *width = _glfw_max(*width, window->minwidth); + else if (window->maxwidth != GLFW_DONT_CARE) + *width = _glfw_min(*width, window->maxwidth); + + if (window->minheight != GLFW_DONT_CARE) + *height = _glfw_min(*height, window->minheight); + else if (window->maxheight != GLFW_DONT_CARE) + *height = _glfw_max(*height, window->maxheight); +} + +static void fitToMonitor(_GLFWwindow* window) +{ + GLFWvidmode mode; + _glfwGetVideoModeNull(window->monitor, &mode); + _glfwGetMonitorPosNull(window->monitor, + &window->null.xpos, + &window->null.ypos); + window->null.width = mode.width; + window->null.height = mode.height; +} + +static void acquireMonitor(_GLFWwindow* window) +{ + _glfwInputMonitorWindow(window->monitor, window); +} + +static void releaseMonitor(_GLFWwindow* window) +{ + if (window->monitor->window != window) + return; + + _glfwInputMonitorWindow(window->monitor, NULL); +} + +static int createNativeWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig) +{ + if (window->monitor) + fitToMonitor(window); + else + { + if (wndconfig->xpos == GLFW_ANY_POSITION && wndconfig->ypos == GLFW_ANY_POSITION) + { + window->null.xpos = 17; + window->null.ypos = 17; + } + else + { + window->null.xpos = wndconfig->xpos; + window->null.ypos = wndconfig->ypos; + } + + window->null.width = wndconfig->width; + window->null.height = wndconfig->height; + } + + window->null.visible = wndconfig->visible; + window->null.decorated = wndconfig->decorated; + window->null.maximized = wndconfig->maximized; + window->null.floating = wndconfig->floating; + window->null.transparent = fbconfig->transparent; + window->null.opacity = 1.f; + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwCreateWindowNull(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + if (!createNativeWindow(window, wndconfig, fbconfig)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API || + ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) + { + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + + if (!_glfwRefreshContextAttribs(window, ctxconfig)) + return GLFW_FALSE; + } + + if (wndconfig->mousePassthrough) + _glfwSetWindowMousePassthroughNull(window, GLFW_TRUE); + + if (window->monitor) + { + _glfwShowWindowNull(window); + _glfwFocusWindowNull(window); + acquireMonitor(window); + + if (wndconfig->centerCursor) + _glfwCenterCursorInContentArea(window); + } + else + { + if (wndconfig->visible) + { + _glfwShowWindowNull(window); + if (wndconfig->focused) + _glfwFocusWindowNull(window); + } + } + + return GLFW_TRUE; +} + +void _glfwDestroyWindowNull(_GLFWwindow* window) +{ + if (window->monitor) + releaseMonitor(window); + + if (_glfw.null.focusedWindow == window) + _glfw.null.focusedWindow = NULL; + + if (window->context.destroy) + window->context.destroy(window); +} + +void _glfwSetWindowTitleNull(_GLFWwindow* window, const char* title) +{ +} + +void _glfwSetWindowIconNull(_GLFWwindow* window, int count, const GLFWimage* images) +{ +} + +void _glfwSetWindowMonitorNull(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + if (window->monitor == monitor) + { + if (!monitor) + { + _glfwSetWindowPosNull(window, xpos, ypos); + _glfwSetWindowSizeNull(window, width, height); + } + + return; + } + + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowMonitor(window, monitor); + + if (window->monitor) + { + window->null.visible = GLFW_TRUE; + acquireMonitor(window); + fitToMonitor(window); + } + else + { + _glfwSetWindowPosNull(window, xpos, ypos); + _glfwSetWindowSizeNull(window, width, height); + } +} + +void _glfwGetWindowPosNull(_GLFWwindow* window, int* xpos, int* ypos) +{ + if (xpos) + *xpos = window->null.xpos; + if (ypos) + *ypos = window->null.ypos; +} + +void _glfwSetWindowPosNull(_GLFWwindow* window, int xpos, int ypos) +{ + if (window->monitor) + return; + + if (window->null.xpos != xpos || window->null.ypos != ypos) + { + window->null.xpos = xpos; + window->null.ypos = ypos; + _glfwInputWindowPos(window, xpos, ypos); + } +} + +void _glfwGetWindowSizeNull(_GLFWwindow* window, int* width, int* height) +{ + if (width) + *width = window->null.width; + if (height) + *height = window->null.height; +} + +void _glfwSetWindowSizeNull(_GLFWwindow* window, int width, int height) +{ + if (window->monitor) + return; + + if (window->null.width != width || window->null.height != height) + { + window->null.width = width; + window->null.height = height; + _glfwInputWindowSize(window, width, height); + _glfwInputFramebufferSize(window, width, height); + } +} + +void _glfwSetWindowSizeLimitsNull(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + int width = window->null.width; + int height = window->null.height; + applySizeLimits(window, &width, &height); + _glfwSetWindowSizeNull(window, width, height); +} + +void _glfwSetWindowAspectRatioNull(_GLFWwindow* window, int n, int d) +{ + int width = window->null.width; + int height = window->null.height; + applySizeLimits(window, &width, &height); + _glfwSetWindowSizeNull(window, width, height); +} + +void _glfwGetFramebufferSizeNull(_GLFWwindow* window, int* width, int* height) +{ + if (width) + *width = window->null.width; + if (height) + *height = window->null.height; +} + +void _glfwGetWindowFrameSizeNull(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + if (window->null.decorated && !window->monitor) + { + if (left) + *left = 1; + if (top) + *top = 10; + if (right) + *right = 1; + if (bottom) + *bottom = 1; + } + else + { + if (left) + *left = 0; + if (top) + *top = 0; + if (right) + *right = 0; + if (bottom) + *bottom = 0; + } +} + +void _glfwGetWindowContentScaleNull(_GLFWwindow* window, float* xscale, float* yscale) +{ + if (xscale) + *xscale = 1.f; + if (yscale) + *yscale = 1.f; +} + +void _glfwIconifyWindowNull(_GLFWwindow* window) +{ + if (_glfw.null.focusedWindow == window) + { + _glfw.null.focusedWindow = NULL; + _glfwInputWindowFocus(window, GLFW_FALSE); + } + + if (!window->null.iconified) + { + window->null.iconified = GLFW_TRUE; + _glfwInputWindowIconify(window, GLFW_TRUE); + + if (window->monitor) + releaseMonitor(window); + } +} + +void _glfwRestoreWindowNull(_GLFWwindow* window) +{ + if (window->null.iconified) + { + window->null.iconified = GLFW_FALSE; + _glfwInputWindowIconify(window, GLFW_FALSE); + + if (window->monitor) + acquireMonitor(window); + } + else if (window->null.maximized) + { + window->null.maximized = GLFW_FALSE; + _glfwInputWindowMaximize(window, GLFW_FALSE); + } +} + +void _glfwMaximizeWindowNull(_GLFWwindow* window) +{ + if (!window->null.maximized) + { + window->null.maximized = GLFW_TRUE; + _glfwInputWindowMaximize(window, GLFW_TRUE); + } +} + +GLFWbool _glfwWindowMaximizedNull(_GLFWwindow* window) +{ + return window->null.maximized; +} + +GLFWbool _glfwWindowHoveredNull(_GLFWwindow* window) +{ + return _glfw.null.xcursor >= window->null.xpos && + _glfw.null.ycursor >= window->null.ypos && + _glfw.null.xcursor <= window->null.xpos + window->null.width - 1 && + _glfw.null.ycursor <= window->null.ypos + window->null.height - 1; +} + +GLFWbool _glfwFramebufferTransparentNull(_GLFWwindow* window) +{ + return window->null.transparent; +} + +void _glfwSetWindowResizableNull(_GLFWwindow* window, GLFWbool enabled) +{ + window->null.resizable = enabled; +} + +void _glfwSetWindowDecoratedNull(_GLFWwindow* window, GLFWbool enabled) +{ + window->null.decorated = enabled; +} + +void _glfwSetWindowFloatingNull(_GLFWwindow* window, GLFWbool enabled) +{ + window->null.floating = enabled; +} + +void _glfwSetWindowMousePassthroughNull(_GLFWwindow* window, GLFWbool enabled) +{ +} + +float _glfwGetWindowOpacityNull(_GLFWwindow* window) +{ + return window->null.opacity; +} + +void _glfwSetWindowOpacityNull(_GLFWwindow* window, float opacity) +{ + window->null.opacity = opacity; +} + +void _glfwSetRawMouseMotionNull(_GLFWwindow *window, GLFWbool enabled) +{ +} + +GLFWbool _glfwRawMouseMotionSupportedNull(void) +{ + return GLFW_TRUE; +} + +void _glfwShowWindowNull(_GLFWwindow* window) +{ + window->null.visible = GLFW_TRUE; +} + +void _glfwRequestWindowAttentionNull(_GLFWwindow* window) +{ +} + +void _glfwHideWindowNull(_GLFWwindow* window) +{ + if (_glfw.null.focusedWindow == window) + { + _glfw.null.focusedWindow = NULL; + _glfwInputWindowFocus(window, GLFW_FALSE); + } + + window->null.visible = GLFW_FALSE; +} + +void _glfwFocusWindowNull(_GLFWwindow* window) +{ + _GLFWwindow* previous; + + if (_glfw.null.focusedWindow == window) + return; + + if (!window->null.visible) + return; + + previous = _glfw.null.focusedWindow; + _glfw.null.focusedWindow = window; + + if (previous) + { + _glfwInputWindowFocus(previous, GLFW_FALSE); + if (previous->monitor && previous->autoIconify) + _glfwIconifyWindowNull(previous); + } + + _glfwInputWindowFocus(window, GLFW_TRUE); +} + +GLFWbool _glfwWindowFocusedNull(_GLFWwindow* window) +{ + return _glfw.null.focusedWindow == window; +} + +GLFWbool _glfwWindowIconifiedNull(_GLFWwindow* window) +{ + return window->null.iconified; +} + +GLFWbool _glfwWindowVisibleNull(_GLFWwindow* window) +{ + return window->null.visible; +} + +void _glfwPollEventsNull(void) +{ +} + +void _glfwWaitEventsNull(void) +{ +} + +void _glfwWaitEventsTimeoutNull(double timeout) +{ +} + +void _glfwPostEmptyEventNull(void) +{ +} + +void _glfwGetCursorPosNull(_GLFWwindow* window, double* xpos, double* ypos) +{ + if (xpos) + *xpos = _glfw.null.xcursor - window->null.xpos; + if (ypos) + *ypos = _glfw.null.ycursor - window->null.ypos; +} + +void _glfwSetCursorPosNull(_GLFWwindow* window, double x, double y) +{ + _glfw.null.xcursor = window->null.xpos + (int) x; + _glfw.null.ycursor = window->null.ypos + (int) y; +} + +void _glfwSetCursorModeNull(_GLFWwindow* window, int mode) +{ +} + +GLFWbool _glfwCreateCursorNull(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + return GLFW_TRUE; +} + +GLFWbool _glfwCreateStandardCursorNull(_GLFWcursor* cursor, int shape) +{ + return GLFW_TRUE; +} + +void _glfwDestroyCursorNull(_GLFWcursor* cursor) +{ +} + +void _glfwSetCursorNull(_GLFWwindow* window, _GLFWcursor* cursor) +{ +} + +void _glfwSetClipboardStringNull(const char* string) +{ + char* copy = _glfw_strdup(string); + _glfw_free(_glfw.null.clipboardString); + _glfw.null.clipboardString = copy; +} + +const char* _glfwGetClipboardStringNull(void) +{ + return _glfw.null.clipboardString; +} + +EGLenum _glfwGetEGLPlatformNull(EGLint** attribs) +{ + return 0; +} + +EGLNativeDisplayType _glfwGetEGLNativeDisplayNull(void) +{ + return 0; +} + +EGLNativeWindowType _glfwGetEGLNativeWindowNull(_GLFWwindow* window) +{ + return 0; +} + +const char* _glfwGetScancodeNameNull(int scancode) +{ + if (scancode < GLFW_KEY_SPACE || scancode > GLFW_KEY_LAST) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode); + return NULL; + } + + switch (scancode) + { + case GLFW_KEY_APOSTROPHE: + return "'"; + case GLFW_KEY_COMMA: + return ","; + case GLFW_KEY_MINUS: + case GLFW_KEY_KP_SUBTRACT: + return "-"; + case GLFW_KEY_PERIOD: + case GLFW_KEY_KP_DECIMAL: + return "."; + case GLFW_KEY_SLASH: + case GLFW_KEY_KP_DIVIDE: + return "/"; + case GLFW_KEY_SEMICOLON: + return ";"; + case GLFW_KEY_EQUAL: + case GLFW_KEY_KP_EQUAL: + return "="; + case GLFW_KEY_LEFT_BRACKET: + return "["; + case GLFW_KEY_RIGHT_BRACKET: + return "]"; + case GLFW_KEY_KP_MULTIPLY: + return "*"; + case GLFW_KEY_KP_ADD: + return "+"; + case GLFW_KEY_BACKSLASH: + case GLFW_KEY_WORLD_1: + case GLFW_KEY_WORLD_2: + return "\\"; + case GLFW_KEY_0: + case GLFW_KEY_KP_0: + return "0"; + case GLFW_KEY_1: + case GLFW_KEY_KP_1: + return "1"; + case GLFW_KEY_2: + case GLFW_KEY_KP_2: + return "2"; + case GLFW_KEY_3: + case GLFW_KEY_KP_3: + return "3"; + case GLFW_KEY_4: + case GLFW_KEY_KP_4: + return "4"; + case GLFW_KEY_5: + case GLFW_KEY_KP_5: + return "5"; + case GLFW_KEY_6: + case GLFW_KEY_KP_6: + return "6"; + case GLFW_KEY_7: + case GLFW_KEY_KP_7: + return "7"; + case GLFW_KEY_8: + case GLFW_KEY_KP_8: + return "8"; + case GLFW_KEY_9: + case GLFW_KEY_KP_9: + return "9"; + case GLFW_KEY_A: + return "a"; + case GLFW_KEY_B: + return "b"; + case GLFW_KEY_C: + return "c"; + case GLFW_KEY_D: + return "d"; + case GLFW_KEY_E: + return "e"; + case GLFW_KEY_F: + return "f"; + case GLFW_KEY_G: + return "g"; + case GLFW_KEY_H: + return "h"; + case GLFW_KEY_I: + return "i"; + case GLFW_KEY_J: + return "j"; + case GLFW_KEY_K: + return "k"; + case GLFW_KEY_L: + return "l"; + case GLFW_KEY_M: + return "m"; + case GLFW_KEY_N: + return "n"; + case GLFW_KEY_O: + return "o"; + case GLFW_KEY_P: + return "p"; + case GLFW_KEY_Q: + return "q"; + case GLFW_KEY_R: + return "r"; + case GLFW_KEY_S: + return "s"; + case GLFW_KEY_T: + return "t"; + case GLFW_KEY_U: + return "u"; + case GLFW_KEY_V: + return "v"; + case GLFW_KEY_W: + return "w"; + case GLFW_KEY_X: + return "x"; + case GLFW_KEY_Y: + return "y"; + case GLFW_KEY_Z: + return "z"; + } + + return NULL; +} + +int _glfwGetKeyScancodeNull(int key) +{ + return key; +} + +void _glfwGetRequiredInstanceExtensionsNull(char** extensions) +{ +} + +GLFWbool _glfwGetPhysicalDevicePresentationSupportNull(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + return GLFW_FALSE; +} + +VkResult _glfwCreateWindowSurfaceNull(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + // This seems like the most appropriate error to return here + return VK_ERROR_EXTENSION_NOT_PRESENT; +} + diff --git a/thirdparty/imgui_suite/glfw/src/osmesa_context.c b/thirdparty/imgui_suite/glfw/src/osmesa_context.c new file mode 100644 index 00000000000..38adabbc0ac --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/osmesa_context.c @@ -0,0 +1,386 @@ +//======================================================================== +// GLFW 3.4 OSMesa - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2016 Google Inc. +// Copyright (c) 2016-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include +#include +#include + +#include "internal.h" + + +static void makeContextCurrentOSMesa(_GLFWwindow* window) +{ + if (window) + { + int width, height; + _glfw.platform.getFramebufferSize(window, &width, &height); + + // Check to see if we need to allocate a new buffer + if ((window->context.osmesa.buffer == NULL) || + (width != window->context.osmesa.width) || + (height != window->context.osmesa.height)) + { + _glfw_free(window->context.osmesa.buffer); + + // Allocate the new buffer (width * height * 8-bit RGBA) + window->context.osmesa.buffer = _glfw_calloc(4, (size_t) width * height); + window->context.osmesa.width = width; + window->context.osmesa.height = height; + } + + if (!OSMesaMakeCurrent(window->context.osmesa.handle, + window->context.osmesa.buffer, + GL_UNSIGNED_BYTE, + width, height)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "OSMesa: Failed to make context current"); + return; + } + } + + _glfwPlatformSetTls(&_glfw.contextSlot, window); +} + +static GLFWglproc getProcAddressOSMesa(const char* procname) +{ + return (GLFWglproc) OSMesaGetProcAddress(procname); +} + +static void destroyContextOSMesa(_GLFWwindow* window) +{ + if (window->context.osmesa.handle) + { + OSMesaDestroyContext(window->context.osmesa.handle); + window->context.osmesa.handle = NULL; + } + + if (window->context.osmesa.buffer) + { + _glfw_free(window->context.osmesa.buffer); + window->context.osmesa.width = 0; + window->context.osmesa.height = 0; + } +} + +static void swapBuffersOSMesa(_GLFWwindow* window) +{ + // No double buffering on OSMesa +} + +static void swapIntervalOSMesa(int interval) +{ + // No swap interval on OSMesa +} + +static int extensionSupportedOSMesa(const char* extension) +{ + // OSMesa does not have extensions + return GLFW_FALSE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwInitOSMesa(void) +{ + int i; + const char* sonames[] = + { +#if defined(_GLFW_OSMESA_LIBRARY) + _GLFW_OSMESA_LIBRARY, +#elif defined(_WIN32) + "libOSMesa.dll", + "OSMesa.dll", +#elif defined(__APPLE__) + "libOSMesa.8.dylib", +#elif defined(__CYGWIN__) + "libOSMesa-8.so", +#elif defined(__OpenBSD__) || defined(__NetBSD__) + "libOSMesa.so", +#else + "libOSMesa.so.8", + "libOSMesa.so.6", +#endif + NULL + }; + + if (_glfw.osmesa.handle) + return GLFW_TRUE; + + for (i = 0; sonames[i]; i++) + { + _glfw.osmesa.handle = _glfwPlatformLoadModule(sonames[i]); + if (_glfw.osmesa.handle) + break; + } + + if (!_glfw.osmesa.handle) + { + _glfwInputError(GLFW_API_UNAVAILABLE, "OSMesa: Library not found"); + return GLFW_FALSE; + } + + _glfw.osmesa.CreateContextExt = (PFN_OSMesaCreateContextExt) + _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaCreateContextExt"); + _glfw.osmesa.CreateContextAttribs = (PFN_OSMesaCreateContextAttribs) + _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaCreateContextAttribs"); + _glfw.osmesa.DestroyContext = (PFN_OSMesaDestroyContext) + _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaDestroyContext"); + _glfw.osmesa.MakeCurrent = (PFN_OSMesaMakeCurrent) + _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaMakeCurrent"); + _glfw.osmesa.GetColorBuffer = (PFN_OSMesaGetColorBuffer) + _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaGetColorBuffer"); + _glfw.osmesa.GetDepthBuffer = (PFN_OSMesaGetDepthBuffer) + _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaGetDepthBuffer"); + _glfw.osmesa.GetProcAddress = (PFN_OSMesaGetProcAddress) + _glfwPlatformGetModuleSymbol(_glfw.osmesa.handle, "OSMesaGetProcAddress"); + + if (!_glfw.osmesa.CreateContextExt || + !_glfw.osmesa.DestroyContext || + !_glfw.osmesa.MakeCurrent || + !_glfw.osmesa.GetColorBuffer || + !_glfw.osmesa.GetDepthBuffer || + !_glfw.osmesa.GetProcAddress) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "OSMesa: Failed to load required entry points"); + + _glfwTerminateOSMesa(); + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +void _glfwTerminateOSMesa(void) +{ + if (_glfw.osmesa.handle) + { + _glfwPlatformFreeModule(_glfw.osmesa.handle); + _glfw.osmesa.handle = NULL; + } +} + +#define SET_ATTRIB(a, v) \ +{ \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[index++] = a; \ + attribs[index++] = v; \ +} + +GLFWbool _glfwCreateContextOSMesa(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + OSMesaContext share = NULL; + const int accumBits = fbconfig->accumRedBits + + fbconfig->accumGreenBits + + fbconfig->accumBlueBits + + fbconfig->accumAlphaBits; + + if (ctxconfig->client == GLFW_OPENGL_ES_API) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "OSMesa: OpenGL ES is not available on OSMesa"); + return GLFW_FALSE; + } + + if (ctxconfig->share) + share = ctxconfig->share->context.osmesa.handle; + + if (OSMesaCreateContextAttribs) + { + int index = 0, attribs[40]; + + SET_ATTRIB(OSMESA_FORMAT, OSMESA_RGBA); + SET_ATTRIB(OSMESA_DEPTH_BITS, fbconfig->depthBits); + SET_ATTRIB(OSMESA_STENCIL_BITS, fbconfig->stencilBits); + SET_ATTRIB(OSMESA_ACCUM_BITS, accumBits); + + if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) + { + SET_ATTRIB(OSMESA_PROFILE, OSMESA_CORE_PROFILE); + } + else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) + { + SET_ATTRIB(OSMESA_PROFILE, OSMESA_COMPAT_PROFILE); + } + + if (ctxconfig->major != 1 || ctxconfig->minor != 0) + { + SET_ATTRIB(OSMESA_CONTEXT_MAJOR_VERSION, ctxconfig->major); + SET_ATTRIB(OSMESA_CONTEXT_MINOR_VERSION, ctxconfig->minor); + } + + if (ctxconfig->forward) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "OSMesa: Forward-compatible contexts not supported"); + return GLFW_FALSE; + } + + SET_ATTRIB(0, 0); + + window->context.osmesa.handle = + OSMesaCreateContextAttribs(attribs, share); + } + else + { + if (ctxconfig->profile) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "OSMesa: OpenGL profiles unavailable"); + return GLFW_FALSE; + } + + window->context.osmesa.handle = + OSMesaCreateContextExt(OSMESA_RGBA, + fbconfig->depthBits, + fbconfig->stencilBits, + accumBits, + share); + } + + if (window->context.osmesa.handle == NULL) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "OSMesa: Failed to create context"); + return GLFW_FALSE; + } + + window->context.makeCurrent = makeContextCurrentOSMesa; + window->context.swapBuffers = swapBuffersOSMesa; + window->context.swapInterval = swapIntervalOSMesa; + window->context.extensionSupported = extensionSupportedOSMesa; + window->context.getProcAddress = getProcAddressOSMesa; + window->context.destroy = destroyContextOSMesa; + + return GLFW_TRUE; +} + +#undef SET_ATTRIB + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI int glfwGetOSMesaColorBuffer(GLFWwindow* handle, int* width, + int* height, int* format, void** buffer) +{ + void* mesaBuffer; + GLint mesaWidth, mesaHeight, mesaFormat; + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + if (window->context.source != GLFW_OSMESA_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return GLFW_FALSE; + } + + if (!OSMesaGetColorBuffer(window->context.osmesa.handle, + &mesaWidth, &mesaHeight, + &mesaFormat, &mesaBuffer)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "OSMesa: Failed to retrieve color buffer"); + return GLFW_FALSE; + } + + if (width) + *width = mesaWidth; + if (height) + *height = mesaHeight; + if (format) + *format = mesaFormat; + if (buffer) + *buffer = mesaBuffer; + + return GLFW_TRUE; +} + +GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* handle, + int* width, int* height, + int* bytesPerValue, + void** buffer) +{ + void* mesaBuffer; + GLint mesaWidth, mesaHeight, mesaBytes; + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + if (window->context.source != GLFW_OSMESA_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return GLFW_FALSE; + } + + if (!OSMesaGetDepthBuffer(window->context.osmesa.handle, + &mesaWidth, &mesaHeight, + &mesaBytes, &mesaBuffer)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "OSMesa: Failed to retrieve depth buffer"); + return GLFW_FALSE; + } + + if (width) + *width = mesaWidth; + if (height) + *height = mesaHeight; + if (bytesPerValue) + *bytesPerValue = mesaBytes; + if (buffer) + *buffer = mesaBuffer; + + return GLFW_TRUE; +} + +GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (window->context.source != GLFW_OSMESA_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return NULL; + } + + return window->context.osmesa.handle; +} + diff --git a/thirdparty/imgui_suite/glfw/src/platform.c b/thirdparty/imgui_suite/glfw/src/platform.c new file mode 100644 index 00000000000..d0bbd06df54 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/platform.c @@ -0,0 +1,189 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2018 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +static const struct +{ + int ID; + GLFWbool (*connect)(int,_GLFWplatform*); +} supportedPlatforms[] = +{ +#if defined(_GLFW_WIN32) + { GLFW_PLATFORM_WIN32, _glfwConnectWin32 }, +#endif +#if defined(_GLFW_COCOA) + { GLFW_PLATFORM_COCOA, _glfwConnectCocoa }, +#endif +#if defined(_GLFW_X11) + { GLFW_PLATFORM_X11, _glfwConnectX11 }, +#endif +#if defined(_GLFW_WAYLAND) + { GLFW_PLATFORM_WAYLAND, _glfwConnectWayland }, +#endif +}; + +GLFWbool _glfwSelectPlatform(int desiredID, _GLFWplatform* platform) +{ + const size_t count = sizeof(supportedPlatforms) / sizeof(supportedPlatforms[0]); + size_t i; + + if (desiredID != GLFW_ANY_PLATFORM && + desiredID != GLFW_PLATFORM_WIN32 && + desiredID != GLFW_PLATFORM_COCOA && + desiredID != GLFW_PLATFORM_WAYLAND && + desiredID != GLFW_PLATFORM_X11 && + desiredID != GLFW_PLATFORM_NULL) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid platform ID 0x%08X", desiredID); + return GLFW_FALSE; + } + + // Only allow the Null platform if specifically requested + if (desiredID == GLFW_PLATFORM_NULL) + return _glfwConnectNull(desiredID, platform); + else if (count == 0) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "This binary only supports the Null platform"); + return GLFW_FALSE; + } + + if (desiredID == GLFW_ANY_PLATFORM) + { + // If there is exactly one platform available for auto-selection, let it emit the + // error on failure as the platform-specific error description may be more helpful + if (count == 1) + return supportedPlatforms[0].connect(supportedPlatforms[0].ID, platform); + + for (i = 0; i < count; i++) + { + if (supportedPlatforms[i].connect(desiredID, platform)) + return GLFW_TRUE; + } + + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "Failed to detect any supported platform"); + } + else + { + for (i = 0; i < count; i++) + { + if (supportedPlatforms[i].ID == desiredID) + return supportedPlatforms[i].connect(desiredID, platform); + } + + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "The requested platform is not supported"); + } + + return GLFW_FALSE; +} + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI int glfwGetPlatform(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(0); + return _glfw.platform.platformID; +} + +GLFWAPI int glfwPlatformSupported(int platformID) +{ + const size_t count = sizeof(supportedPlatforms) / sizeof(supportedPlatforms[0]); + size_t i; + + if (platformID != GLFW_PLATFORM_WIN32 && + platformID != GLFW_PLATFORM_COCOA && + platformID != GLFW_PLATFORM_WAYLAND && + platformID != GLFW_PLATFORM_X11 && + platformID != GLFW_PLATFORM_NULL) + { + _glfwInputError(GLFW_INVALID_ENUM, "Invalid platform ID 0x%08X", platformID); + return GLFW_FALSE; + } + + if (platformID == GLFW_PLATFORM_NULL) + return GLFW_TRUE; + + for (i = 0; i < count; i++) + { + if (platformID == supportedPlatforms[i].ID) + return GLFW_TRUE; + } + + return GLFW_FALSE; +} + +GLFWAPI const char* glfwGetVersionString(void) +{ + return _GLFW_VERSION_NUMBER +#if defined(_GLFW_WIN32) + " Win32 WGL" +#endif +#if defined(_GLFW_COCOA) + " Cocoa NSGL" +#endif +#if defined(_GLFW_WAYLAND) + " Wayland" +#endif +#if defined(_GLFW_X11) + " X11 GLX" +#endif + " Null" + " EGL" + " OSMesa" +#if defined(__MINGW64_VERSION_MAJOR) + " MinGW-w64" +#elif defined(__MINGW32__) + " MinGW" +#elif defined(_MSC_VER) + " VisualC" +#endif +#if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) + " hybrid-GPU" +#endif +#if defined(_POSIX_MONOTONIC_CLOCK) + " monotonic" +#endif +#if defined(_GLFW_BUILD_DLL) +#if defined(_WIN32) + " DLL" +#elif defined(__APPLE__) + " dynamic" +#else + " shared" +#endif +#endif + ; +} + diff --git a/thirdparty/imgui_suite/glfw/src/platform.h b/thirdparty/imgui_suite/glfw/src/platform.h new file mode 100644 index 00000000000..0c593676c4f --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/platform.h @@ -0,0 +1,163 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2018 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include "null_platform.h" + +#if defined(_GLFW_WIN32) + #include "win32_platform.h" +#else + #define GLFW_WIN32_WINDOW_STATE + #define GLFW_WIN32_MONITOR_STATE + #define GLFW_WIN32_CURSOR_STATE + #define GLFW_WIN32_LIBRARY_WINDOW_STATE + #define GLFW_WGL_CONTEXT_STATE + #define GLFW_WGL_LIBRARY_CONTEXT_STATE +#endif + +#if defined(_GLFW_COCOA) + #include "cocoa_platform.h" +#else + #define GLFW_COCOA_WINDOW_STATE + #define GLFW_COCOA_MONITOR_STATE + #define GLFW_COCOA_CURSOR_STATE + #define GLFW_COCOA_LIBRARY_WINDOW_STATE + #define GLFW_NSGL_CONTEXT_STATE + #define GLFW_NSGL_LIBRARY_CONTEXT_STATE +#endif + +#if defined(_GLFW_WAYLAND) + #include "wl_platform.h" +#else + #define GLFW_WAYLAND_WINDOW_STATE + #define GLFW_WAYLAND_MONITOR_STATE + #define GLFW_WAYLAND_CURSOR_STATE + #define GLFW_WAYLAND_LIBRARY_WINDOW_STATE +#endif + +#if defined(_GLFW_X11) + #include "x11_platform.h" +#else + #define GLFW_X11_WINDOW_STATE + #define GLFW_X11_MONITOR_STATE + #define GLFW_X11_CURSOR_STATE + #define GLFW_X11_LIBRARY_WINDOW_STATE + #define GLFW_GLX_CONTEXT_STATE + #define GLFW_GLX_LIBRARY_CONTEXT_STATE +#endif + +#include "null_joystick.h" + +#if defined(_GLFW_WIN32) + #include "win32_joystick.h" +#else + #define GLFW_WIN32_JOYSTICK_STATE + #define GLFW_WIN32_LIBRARY_JOYSTICK_STATE +#endif + +#if defined(_GLFW_COCOA) + #include "cocoa_joystick.h" +#else + #define GLFW_COCOA_JOYSTICK_STATE + #define GLFW_COCOA_LIBRARY_JOYSTICK_STATE +#endif + +#if (defined(_GLFW_X11) || defined(_GLFW_WAYLAND)) && defined(__linux__) + #include "linux_joystick.h" +#else + #define GLFW_LINUX_JOYSTICK_STATE + #define GLFW_LINUX_LIBRARY_JOYSTICK_STATE +#endif + +#define GLFW_PLATFORM_WINDOW_STATE \ + GLFW_WIN32_WINDOW_STATE \ + GLFW_COCOA_WINDOW_STATE \ + GLFW_WAYLAND_WINDOW_STATE \ + GLFW_X11_WINDOW_STATE \ + GLFW_NULL_WINDOW_STATE \ + +#define GLFW_PLATFORM_MONITOR_STATE \ + GLFW_WIN32_MONITOR_STATE \ + GLFW_COCOA_MONITOR_STATE \ + GLFW_WAYLAND_MONITOR_STATE \ + GLFW_X11_MONITOR_STATE \ + GLFW_NULL_MONITOR_STATE \ + +#define GLFW_PLATFORM_CURSOR_STATE \ + GLFW_WIN32_CURSOR_STATE \ + GLFW_COCOA_CURSOR_STATE \ + GLFW_WAYLAND_CURSOR_STATE \ + GLFW_X11_CURSOR_STATE \ + GLFW_NULL_CURSOR_STATE \ + +#define GLFW_PLATFORM_JOYSTICK_STATE \ + GLFW_WIN32_JOYSTICK_STATE \ + GLFW_COCOA_JOYSTICK_STATE \ + GLFW_LINUX_JOYSTICK_STATE + +#define GLFW_PLATFORM_LIBRARY_WINDOW_STATE \ + GLFW_WIN32_LIBRARY_WINDOW_STATE \ + GLFW_COCOA_LIBRARY_WINDOW_STATE \ + GLFW_WAYLAND_LIBRARY_WINDOW_STATE \ + GLFW_X11_LIBRARY_WINDOW_STATE \ + GLFW_NULL_LIBRARY_WINDOW_STATE \ + +#define GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE \ + GLFW_WIN32_LIBRARY_JOYSTICK_STATE \ + GLFW_COCOA_LIBRARY_JOYSTICK_STATE \ + GLFW_LINUX_LIBRARY_JOYSTICK_STATE + +#define GLFW_PLATFORM_CONTEXT_STATE \ + GLFW_WGL_CONTEXT_STATE \ + GLFW_NSGL_CONTEXT_STATE \ + GLFW_GLX_CONTEXT_STATE + +#define GLFW_PLATFORM_LIBRARY_CONTEXT_STATE \ + GLFW_WGL_LIBRARY_CONTEXT_STATE \ + GLFW_NSGL_LIBRARY_CONTEXT_STATE \ + GLFW_GLX_LIBRARY_CONTEXT_STATE + +#if defined(_WIN32) + #include "win32_thread.h" + #define GLFW_PLATFORM_TLS_STATE GLFW_WIN32_TLS_STATE + #define GLFW_PLATFORM_MUTEX_STATE GLFW_WIN32_MUTEX_STATE +#else + #include "posix_thread.h" + #define GLFW_PLATFORM_TLS_STATE GLFW_POSIX_TLS_STATE + #define GLFW_PLATFORM_MUTEX_STATE GLFW_POSIX_MUTEX_STATE +#endif + +#if defined(_WIN32) + #include "win32_time.h" + #define GLFW_PLATFORM_LIBRARY_TIMER_STATE GLFW_WIN32_LIBRARY_TIMER_STATE +#elif defined(__APPLE__) + #include "cocoa_time.h" + #define GLFW_PLATFORM_LIBRARY_TIMER_STATE GLFW_COCOA_LIBRARY_TIMER_STATE +#else + #include "posix_time.h" + #define GLFW_PLATFORM_LIBRARY_TIMER_STATE GLFW_POSIX_LIBRARY_TIMER_STATE +#endif + diff --git a/thirdparty/imgui_suite/glfw/src/posix_module.c b/thirdparty/imgui_suite/glfw/src/posix_module.c new file mode 100644 index 00000000000..e838c1d10d5 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/posix_module.c @@ -0,0 +1,53 @@ +//======================================================================== +// GLFW 3.4 POSIX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2021 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include + +#pragma GCC diagnostic ignored "-Wpedantic" + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void* _glfwPlatformLoadModule(const char* path) +{ + return dlopen(path, RTLD_LAZY | RTLD_LOCAL); +} + +void _glfwPlatformFreeModule(void* module) +{ + dlclose(module); +} + +GLFWproc _glfwPlatformGetModuleSymbol(void* module, const char* name) +{ + return dlsym(module, name); +} + diff --git a/thirdparty/imgui_suite/glfw/src/posix_poll.c b/thirdparty/imgui_suite/glfw/src/posix_poll.c new file mode 100644 index 00000000000..676a8a51006 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/posix_poll.c @@ -0,0 +1,81 @@ +//======================================================================== +// GLFW 3.4 POSIX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2022 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#define _GNU_SOURCE + +#include "internal.h" + +#include +#include +#include + +GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout) +{ + for (;;) + { + if (timeout) + { + const uint64_t base = _glfwPlatformGetTimerValue(); + +#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) + const time_t seconds = (time_t) *timeout; + const long nanoseconds = (long) ((*timeout - seconds) * 1e9); + const struct timespec ts = { seconds, nanoseconds }; + const int result = ppoll(fds, count, &ts, NULL); +#elif defined(__NetBSD__) + const time_t seconds = (time_t) *timeout; + const long nanoseconds = (long) ((*timeout - seconds) * 1e9); + const struct timespec ts = { seconds, nanoseconds }; + const int result = pollts(fds, count, &ts, NULL); +#else + const int milliseconds = (int) (*timeout * 1e3); + const int result = poll(fds, count, milliseconds); +#endif + const int error = errno; // clock_gettime may overwrite our error + + *timeout -= (_glfwPlatformGetTimerValue() - base) / + (double) _glfwPlatformGetTimerFrequency(); + + if (result > 0) + return GLFW_TRUE; + else if (result == -1 && error != EINTR && error != EAGAIN) + return GLFW_FALSE; + else if (*timeout <= 0.0) + return GLFW_FALSE; + } + else + { + const int result = poll(fds, count, -1); + if (result > 0) + return GLFW_TRUE; + else if (result == -1 && errno != EINTR && errno != EAGAIN) + return GLFW_FALSE; + } + } +} + diff --git a/thirdparty/imgui_suite/glfw/src/posix_poll.h b/thirdparty/imgui_suite/glfw/src/posix_poll.h new file mode 100644 index 00000000000..1effd1cd39d --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/posix_poll.h @@ -0,0 +1,32 @@ +//======================================================================== +// GLFW 3.4 POSIX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2022 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include + +GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout); + diff --git a/thirdparty/imgui_suite/glfw/src/posix_thread.c b/thirdparty/imgui_suite/glfw/src/posix_thread.c new file mode 100644 index 00000000000..0236145781d --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/posix_thread.c @@ -0,0 +1,105 @@ +//======================================================================== +// GLFW 3.4 POSIX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwPlatformCreateTls(_GLFWtls* tls) +{ + assert(tls->posix.allocated == GLFW_FALSE); + + if (pthread_key_create(&tls->posix.key, NULL) != 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "POSIX: Failed to create context TLS"); + return GLFW_FALSE; + } + + tls->posix.allocated = GLFW_TRUE; + return GLFW_TRUE; +} + +void _glfwPlatformDestroyTls(_GLFWtls* tls) +{ + if (tls->posix.allocated) + pthread_key_delete(tls->posix.key); + memset(tls, 0, sizeof(_GLFWtls)); +} + +void* _glfwPlatformGetTls(_GLFWtls* tls) +{ + assert(tls->posix.allocated == GLFW_TRUE); + return pthread_getspecific(tls->posix.key); +} + +void _glfwPlatformSetTls(_GLFWtls* tls, void* value) +{ + assert(tls->posix.allocated == GLFW_TRUE); + pthread_setspecific(tls->posix.key, value); +} + +GLFWbool _glfwPlatformCreateMutex(_GLFWmutex* mutex) +{ + assert(mutex->posix.allocated == GLFW_FALSE); + + if (pthread_mutex_init(&mutex->posix.handle, NULL) != 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "POSIX: Failed to create mutex"); + return GLFW_FALSE; + } + + return mutex->posix.allocated = GLFW_TRUE; +} + +void _glfwPlatformDestroyMutex(_GLFWmutex* mutex) +{ + if (mutex->posix.allocated) + pthread_mutex_destroy(&mutex->posix.handle); + memset(mutex, 0, sizeof(_GLFWmutex)); +} + +void _glfwPlatformLockMutex(_GLFWmutex* mutex) +{ + assert(mutex->posix.allocated == GLFW_TRUE); + pthread_mutex_lock(&mutex->posix.handle); +} + +void _glfwPlatformUnlockMutex(_GLFWmutex* mutex) +{ + assert(mutex->posix.allocated == GLFW_TRUE); + pthread_mutex_unlock(&mutex->posix.handle); +} + diff --git a/thirdparty/imgui_suite/glfw/src/posix_thread.h b/thirdparty/imgui_suite/glfw/src/posix_thread.h new file mode 100644 index 00000000000..5a5d7b7c380 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/posix_thread.h @@ -0,0 +1,49 @@ +//======================================================================== +// GLFW 3.4 POSIX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include + +#define GLFW_POSIX_TLS_STATE _GLFWtlsPOSIX posix; +#define GLFW_POSIX_MUTEX_STATE _GLFWmutexPOSIX posix; + + +// POSIX-specific thread local storage data +// +typedef struct _GLFWtlsPOSIX +{ + GLFWbool allocated; + pthread_key_t key; +} _GLFWtlsPOSIX; + +// POSIX-specific mutex data +// +typedef struct _GLFWmutexPOSIX +{ + GLFWbool allocated; + pthread_mutex_t handle; +} _GLFWmutexPOSIX; + diff --git a/thirdparty/imgui_suite/glfw/src/posix_time.c b/thirdparty/imgui_suite/glfw/src/posix_time.c new file mode 100644 index 00000000000..f134be47eb4 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/posix_time.c @@ -0,0 +1,63 @@ +//======================================================================== +// GLFW 3.4 POSIX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformInitTimer(void) +{ + _glfw.timer.posix.clock = CLOCK_REALTIME; + _glfw.timer.posix.frequency = 1000000000; + +#if defined(_POSIX_MONOTONIC_CLOCK) + struct timespec ts; + if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) + _glfw.timer.posix.clock = CLOCK_MONOTONIC; +#endif +} + +uint64_t _glfwPlatformGetTimerValue(void) +{ + struct timespec ts; + clock_gettime(_glfw.timer.posix.clock, &ts); + return (uint64_t) ts.tv_sec * _glfw.timer.posix.frequency + (uint64_t) ts.tv_nsec; +} + +uint64_t _glfwPlatformGetTimerFrequency(void) +{ + return _glfw.timer.posix.frequency; +} + diff --git a/thirdparty/imgui_suite/glfw/src/posix_time.h b/thirdparty/imgui_suite/glfw/src/posix_time.h new file mode 100644 index 00000000000..94374adb8ab --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/posix_time.h @@ -0,0 +1,41 @@ +//======================================================================== +// GLFW 3.4 POSIX - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#define GLFW_POSIX_LIBRARY_TIMER_STATE _GLFWtimerPOSIX posix; + +#include +#include + + +// POSIX-specific global timer data +// +typedef struct _GLFWtimerPOSIX +{ + clockid_t clock; + uint64_t frequency; +} _GLFWtimerPOSIX; + diff --git a/thirdparty/imgui_suite/glfw/src/vulkan.c b/thirdparty/imgui_suite/glfw/src/vulkan.c new file mode 100644 index 00000000000..64a4650fc98 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/vulkan.c @@ -0,0 +1,330 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2018 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include + +#define _GLFW_FIND_LOADER 1 +#define _GLFW_REQUIRE_LOADER 2 + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwInitVulkan(int mode) +{ + VkResult err; + VkExtensionProperties* ep; + PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties; + uint32_t i, count; + + if (_glfw.vk.available) + return GLFW_TRUE; + + if (_glfw.hints.init.vulkanLoader) + _glfw.vk.GetInstanceProcAddr = _glfw.hints.init.vulkanLoader; + else + { +#if defined(_GLFW_VULKAN_LIBRARY) + _glfw.vk.handle = _glfwPlatformLoadModule(_GLFW_VULKAN_LIBRARY); +#elif defined(_GLFW_WIN32) + _glfw.vk.handle = _glfwPlatformLoadModule("vulkan-1.dll"); +#elif defined(_GLFW_COCOA) + _glfw.vk.handle = _glfwPlatformLoadModule("libvulkan.1.dylib"); + if (!_glfw.vk.handle) + _glfw.vk.handle = _glfwLoadLocalVulkanLoaderCocoa(); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.vk.handle = _glfwPlatformLoadModule("libvulkan.so"); +#else + _glfw.vk.handle = _glfwPlatformLoadModule("libvulkan.so.1"); +#endif + if (!_glfw.vk.handle) + { + if (mode == _GLFW_REQUIRE_LOADER) + _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: Loader not found"); + + return GLFW_FALSE; + } + + _glfw.vk.GetInstanceProcAddr = (PFN_vkGetInstanceProcAddr) + _glfwPlatformGetModuleSymbol(_glfw.vk.handle, "vkGetInstanceProcAddr"); + if (!_glfw.vk.GetInstanceProcAddr) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Loader does not export vkGetInstanceProcAddr"); + + _glfwTerminateVulkan(); + return GLFW_FALSE; + } + } + + vkEnumerateInstanceExtensionProperties = (PFN_vkEnumerateInstanceExtensionProperties) + vkGetInstanceProcAddr(NULL, "vkEnumerateInstanceExtensionProperties"); + if (!vkEnumerateInstanceExtensionProperties) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Failed to retrieve vkEnumerateInstanceExtensionProperties"); + + _glfwTerminateVulkan(); + return GLFW_FALSE; + } + + err = vkEnumerateInstanceExtensionProperties(NULL, &count, NULL); + if (err) + { + // NOTE: This happens on systems with a loader but without any Vulkan ICD + if (mode == _GLFW_REQUIRE_LOADER) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Failed to query instance extension count: %s", + _glfwGetVulkanResultString(err)); + } + + _glfwTerminateVulkan(); + return GLFW_FALSE; + } + + ep = _glfw_calloc(count, sizeof(VkExtensionProperties)); + + err = vkEnumerateInstanceExtensionProperties(NULL, &count, ep); + if (err) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Failed to query instance extensions: %s", + _glfwGetVulkanResultString(err)); + + _glfw_free(ep); + _glfwTerminateVulkan(); + return GLFW_FALSE; + } + + for (i = 0; i < count; i++) + { + if (strcmp(ep[i].extensionName, "VK_KHR_surface") == 0) + _glfw.vk.KHR_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_KHR_win32_surface") == 0) + _glfw.vk.KHR_win32_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_MVK_macos_surface") == 0) + _glfw.vk.MVK_macos_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_EXT_metal_surface") == 0) + _glfw.vk.EXT_metal_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_KHR_xlib_surface") == 0) + _glfw.vk.KHR_xlib_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_KHR_xcb_surface") == 0) + _glfw.vk.KHR_xcb_surface = GLFW_TRUE; + else if (strcmp(ep[i].extensionName, "VK_KHR_wayland_surface") == 0) + _glfw.vk.KHR_wayland_surface = GLFW_TRUE; + } + + _glfw_free(ep); + + _glfw.vk.available = GLFW_TRUE; + + _glfw.platform.getRequiredInstanceExtensions(_glfw.vk.extensions); + + return GLFW_TRUE; +} + +void _glfwTerminateVulkan(void) +{ + if (_glfw.vk.handle) + _glfwPlatformFreeModule(_glfw.vk.handle); +} + +const char* _glfwGetVulkanResultString(VkResult result) +{ + switch (result) + { + case VK_SUCCESS: + return "Success"; + case VK_NOT_READY: + return "A fence or query has not yet completed"; + case VK_TIMEOUT: + return "A wait operation has not completed in the specified time"; + case VK_EVENT_SET: + return "An event is signaled"; + case VK_EVENT_RESET: + return "An event is unsignaled"; + case VK_INCOMPLETE: + return "A return array was too small for the result"; + case VK_ERROR_OUT_OF_HOST_MEMORY: + return "A host memory allocation has failed"; + case VK_ERROR_OUT_OF_DEVICE_MEMORY: + return "A device memory allocation has failed"; + case VK_ERROR_INITIALIZATION_FAILED: + return "Initialization of an object could not be completed for implementation-specific reasons"; + case VK_ERROR_DEVICE_LOST: + return "The logical or physical device has been lost"; + case VK_ERROR_MEMORY_MAP_FAILED: + return "Mapping of a memory object has failed"; + case VK_ERROR_LAYER_NOT_PRESENT: + return "A requested layer is not present or could not be loaded"; + case VK_ERROR_EXTENSION_NOT_PRESENT: + return "A requested extension is not supported"; + case VK_ERROR_FEATURE_NOT_PRESENT: + return "A requested feature is not supported"; + case VK_ERROR_INCOMPATIBLE_DRIVER: + return "The requested version of Vulkan is not supported by the driver or is otherwise incompatible"; + case VK_ERROR_TOO_MANY_OBJECTS: + return "Too many objects of the type have already been created"; + case VK_ERROR_FORMAT_NOT_SUPPORTED: + return "A requested format is not supported on this device"; + case VK_ERROR_SURFACE_LOST_KHR: + return "A surface is no longer available"; + case VK_SUBOPTIMAL_KHR: + return "A swapchain no longer matches the surface properties exactly, but can still be used"; + case VK_ERROR_OUT_OF_DATE_KHR: + return "A surface has changed in such a way that it is no longer compatible with the swapchain"; + case VK_ERROR_INCOMPATIBLE_DISPLAY_KHR: + return "The display used by a swapchain does not use the same presentable image layout"; + case VK_ERROR_NATIVE_WINDOW_IN_USE_KHR: + return "The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API"; + case VK_ERROR_VALIDATION_FAILED_EXT: + return "A validation layer found an error"; + default: + return "ERROR: UNKNOWN VULKAN ERROR"; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI int glfwVulkanSupported(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + return _glfwInitVulkan(_GLFW_FIND_LOADER); +} + +GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count) +{ + assert(count != NULL); + + *count = 0; + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return NULL; + + if (!_glfw.vk.extensions[0]) + return NULL; + + *count = 2; + return (const char**) _glfw.vk.extensions; +} + +GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, + const char* procname) +{ + GLFWvkproc proc; + assert(procname != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return NULL; + + // NOTE: Vulkan 1.0 and 1.1 vkGetInstanceProcAddr cannot return itself + if (strcmp(procname, "vkGetInstanceProcAddr") == 0) + return (GLFWvkproc) vkGetInstanceProcAddr; + + proc = (GLFWvkproc) vkGetInstanceProcAddr(instance, procname); + if (!proc) + { + if (_glfw.vk.handle) + proc = (GLFWvkproc) _glfwPlatformGetModuleSymbol(_glfw.vk.handle, procname); + } + + return proc; +} + +GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + assert(instance != VK_NULL_HANDLE); + assert(device != VK_NULL_HANDLE); + + _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return GLFW_FALSE; + + if (!_glfw.vk.extensions[0]) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Window surface creation extensions not found"); + return GLFW_FALSE; + } + + return _glfw.platform.getPhysicalDevicePresentationSupport(instance, + device, + queuefamily); +} + +GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, + GLFWwindow* handle, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(instance != VK_NULL_HANDLE); + assert(window != NULL); + assert(surface != NULL); + + *surface = VK_NULL_HANDLE; + + _GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED); + + if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) + return VK_ERROR_INITIALIZATION_FAILED; + + if (!_glfw.vk.extensions[0]) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Vulkan: Window surface creation extensions not found"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + if (window->context.client != GLFW_NO_API) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Vulkan: Window surface creation requires the window to have the client API set to GLFW_NO_API"); + return VK_ERROR_NATIVE_WINDOW_IN_USE_KHR; + } + + return _glfw.platform.createWindowSurface(instance, window, allocator, surface); +} + diff --git a/thirdparty/imgui_suite/glfw/src/wgl_context.c b/thirdparty/imgui_suite/glfw/src/wgl_context.c new file mode 100644 index 00000000000..4a5e77a810c --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/wgl_context.c @@ -0,0 +1,778 @@ +//======================================================================== +// GLFW 3.4 WGL - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include + +// Return the value corresponding to the specified attribute +// +static int findPixelFormatAttribValueWGL(const int* attribs, + int attribCount, + const int* values, + int attrib) +{ + int i; + + for (i = 0; i < attribCount; i++) + { + if (attribs[i] == attrib) + return values[i]; + } + + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Unknown pixel format attribute requested"); + return 0; +} + +#define ADD_ATTRIB(a) \ +{ \ + assert((size_t) attribCount < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[attribCount++] = a; \ +} +#define FIND_ATTRIB_VALUE(a) \ + findPixelFormatAttribValueWGL(attribs, attribCount, values, a) + +// Return a list of available and usable framebuffer configs +// +static int choosePixelFormatWGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + _GLFWfbconfig* usableConfigs; + const _GLFWfbconfig* closest; + int i, pixelFormat, nativeCount, usableCount = 0, attribCount = 0; + int attribs[40]; + int values[sizeof(attribs) / sizeof(attribs[0])]; + + nativeCount = DescribePixelFormat(window->context.wgl.dc, + 1, + sizeof(PIXELFORMATDESCRIPTOR), + NULL); + + if (_glfw.wgl.ARB_pixel_format) + { + ADD_ATTRIB(WGL_SUPPORT_OPENGL_ARB); + ADD_ATTRIB(WGL_DRAW_TO_WINDOW_ARB); + ADD_ATTRIB(WGL_PIXEL_TYPE_ARB); + ADD_ATTRIB(WGL_ACCELERATION_ARB); + ADD_ATTRIB(WGL_RED_BITS_ARB); + ADD_ATTRIB(WGL_RED_SHIFT_ARB); + ADD_ATTRIB(WGL_GREEN_BITS_ARB); + ADD_ATTRIB(WGL_GREEN_SHIFT_ARB); + ADD_ATTRIB(WGL_BLUE_BITS_ARB); + ADD_ATTRIB(WGL_BLUE_SHIFT_ARB); + ADD_ATTRIB(WGL_ALPHA_BITS_ARB); + ADD_ATTRIB(WGL_ALPHA_SHIFT_ARB); + ADD_ATTRIB(WGL_DEPTH_BITS_ARB); + ADD_ATTRIB(WGL_STENCIL_BITS_ARB); + ADD_ATTRIB(WGL_ACCUM_BITS_ARB); + ADD_ATTRIB(WGL_ACCUM_RED_BITS_ARB); + ADD_ATTRIB(WGL_ACCUM_GREEN_BITS_ARB); + ADD_ATTRIB(WGL_ACCUM_BLUE_BITS_ARB); + ADD_ATTRIB(WGL_ACCUM_ALPHA_BITS_ARB); + ADD_ATTRIB(WGL_AUX_BUFFERS_ARB); + ADD_ATTRIB(WGL_STEREO_ARB); + ADD_ATTRIB(WGL_DOUBLE_BUFFER_ARB); + + if (_glfw.wgl.ARB_multisample) + ADD_ATTRIB(WGL_SAMPLES_ARB); + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (_glfw.wgl.ARB_framebuffer_sRGB || _glfw.wgl.EXT_framebuffer_sRGB) + ADD_ATTRIB(WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB); + } + else + { + if (_glfw.wgl.EXT_colorspace) + ADD_ATTRIB(WGL_COLORSPACE_EXT); + } + } + + usableConfigs = _glfw_calloc(nativeCount, sizeof(_GLFWfbconfig)); + + for (i = 0; i < nativeCount; i++) + { + _GLFWfbconfig* u = usableConfigs + usableCount; + pixelFormat = i + 1; + + if (_glfw.wgl.ARB_pixel_format) + { + // Get pixel format attributes through "modern" extension + + if (!wglGetPixelFormatAttribivARB(window->context.wgl.dc, + pixelFormat, 0, + attribCount, + attribs, values)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve pixel format attributes"); + + _glfw_free(usableConfigs); + return 0; + } + + if (!FIND_ATTRIB_VALUE(WGL_SUPPORT_OPENGL_ARB) || + !FIND_ATTRIB_VALUE(WGL_DRAW_TO_WINDOW_ARB)) + { + continue; + } + + if (FIND_ATTRIB_VALUE(WGL_PIXEL_TYPE_ARB) != WGL_TYPE_RGBA_ARB) + continue; + + if (FIND_ATTRIB_VALUE(WGL_ACCELERATION_ARB) == WGL_NO_ACCELERATION_ARB) + continue; + + if (FIND_ATTRIB_VALUE(WGL_DOUBLE_BUFFER_ARB) != fbconfig->doublebuffer) + continue; + + u->redBits = FIND_ATTRIB_VALUE(WGL_RED_BITS_ARB); + u->greenBits = FIND_ATTRIB_VALUE(WGL_GREEN_BITS_ARB); + u->blueBits = FIND_ATTRIB_VALUE(WGL_BLUE_BITS_ARB); + u->alphaBits = FIND_ATTRIB_VALUE(WGL_ALPHA_BITS_ARB); + + u->depthBits = FIND_ATTRIB_VALUE(WGL_DEPTH_BITS_ARB); + u->stencilBits = FIND_ATTRIB_VALUE(WGL_STENCIL_BITS_ARB); + + u->accumRedBits = FIND_ATTRIB_VALUE(WGL_ACCUM_RED_BITS_ARB); + u->accumGreenBits = FIND_ATTRIB_VALUE(WGL_ACCUM_GREEN_BITS_ARB); + u->accumBlueBits = FIND_ATTRIB_VALUE(WGL_ACCUM_BLUE_BITS_ARB); + u->accumAlphaBits = FIND_ATTRIB_VALUE(WGL_ACCUM_ALPHA_BITS_ARB); + + u->auxBuffers = FIND_ATTRIB_VALUE(WGL_AUX_BUFFERS_ARB); + + if (FIND_ATTRIB_VALUE(WGL_STEREO_ARB)) + u->stereo = GLFW_TRUE; + + if (_glfw.wgl.ARB_multisample) + u->samples = FIND_ATTRIB_VALUE(WGL_SAMPLES_ARB); + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (_glfw.wgl.ARB_framebuffer_sRGB || + _glfw.wgl.EXT_framebuffer_sRGB) + { + if (FIND_ATTRIB_VALUE(WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB)) + u->sRGB = GLFW_TRUE; + } + } + else + { + if (_glfw.wgl.EXT_colorspace) + { + if (FIND_ATTRIB_VALUE(WGL_COLORSPACE_EXT) == WGL_COLORSPACE_SRGB_EXT) + u->sRGB = GLFW_TRUE; + } + } + } + else + { + // Get pixel format attributes through legacy PFDs + + PIXELFORMATDESCRIPTOR pfd; + + if (!DescribePixelFormat(window->context.wgl.dc, + pixelFormat, + sizeof(PIXELFORMATDESCRIPTOR), + &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to describe pixel format"); + + _glfw_free(usableConfigs); + return 0; + } + + if (!(pfd.dwFlags & PFD_DRAW_TO_WINDOW) || + !(pfd.dwFlags & PFD_SUPPORT_OPENGL)) + { + continue; + } + + if (!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && + (pfd.dwFlags & PFD_GENERIC_FORMAT)) + { + continue; + } + + if (pfd.iPixelType != PFD_TYPE_RGBA) + continue; + + if (!!(pfd.dwFlags & PFD_DOUBLEBUFFER) != fbconfig->doublebuffer) + continue; + + u->redBits = pfd.cRedBits; + u->greenBits = pfd.cGreenBits; + u->blueBits = pfd.cBlueBits; + u->alphaBits = pfd.cAlphaBits; + + u->depthBits = pfd.cDepthBits; + u->stencilBits = pfd.cStencilBits; + + u->accumRedBits = pfd.cAccumRedBits; + u->accumGreenBits = pfd.cAccumGreenBits; + u->accumBlueBits = pfd.cAccumBlueBits; + u->accumAlphaBits = pfd.cAccumAlphaBits; + + u->auxBuffers = pfd.cAuxBuffers; + + if (pfd.dwFlags & PFD_STEREO) + u->stereo = GLFW_TRUE; + } + + u->handle = pixelFormat; + usableCount++; + } + + if (!usableCount) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "WGL: The driver does not appear to support OpenGL"); + + _glfw_free(usableConfigs); + return 0; + } + + closest = _glfwChooseFBConfig(fbconfig, usableConfigs, usableCount); + if (!closest) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "WGL: Failed to find a suitable pixel format"); + + _glfw_free(usableConfigs); + return 0; + } + + pixelFormat = (int) closest->handle; + _glfw_free(usableConfigs); + + return pixelFormat; +} + +#undef ADD_ATTRIB +#undef FIND_ATTRIB_VALUE + +static void makeContextCurrentWGL(_GLFWwindow* window) +{ + if (window) + { + if (wglMakeCurrent(window->context.wgl.dc, window->context.wgl.handle)) + _glfwPlatformSetTls(&_glfw.contextSlot, window); + else + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to make context current"); + _glfwPlatformSetTls(&_glfw.contextSlot, NULL); + } + } + else + { + if (!wglMakeCurrent(NULL, NULL)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to clear current context"); + } + + _glfwPlatformSetTls(&_glfw.contextSlot, NULL); + } +} + +static void swapBuffersWGL(_GLFWwindow* window) +{ + if (!window->monitor) + { + // HACK: Use DwmFlush when desktop composition is enabled on Windows Vista and 7 + if (!IsWindows8OrGreater() && IsWindowsVistaOrGreater()) + { + BOOL enabled = FALSE; + + if (SUCCEEDED(DwmIsCompositionEnabled(&enabled)) && enabled) + { + int count = abs(window->context.wgl.interval); + while (count--) + DwmFlush(); + } + } + } + + SwapBuffers(window->context.wgl.dc); +} + +static void swapIntervalWGL(int interval) +{ + _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); + + window->context.wgl.interval = interval; + + if (!window->monitor) + { + // HACK: Disable WGL swap interval when desktop composition is enabled on Windows + // Vista and 7 to avoid interfering with DWM vsync + if (!IsWindows8OrGreater() && IsWindowsVistaOrGreater()) + { + BOOL enabled = FALSE; + + if (SUCCEEDED(DwmIsCompositionEnabled(&enabled)) && enabled) + interval = 0; + } + } + + if (_glfw.wgl.EXT_swap_control) + wglSwapIntervalEXT(interval); +} + +static int extensionSupportedWGL(const char* extension) +{ + const char* extensions = NULL; + + if (_glfw.wgl.GetExtensionsStringARB) + extensions = wglGetExtensionsStringARB(wglGetCurrentDC()); + else if (_glfw.wgl.GetExtensionsStringEXT) + extensions = wglGetExtensionsStringEXT(); + + if (!extensions) + return GLFW_FALSE; + + return _glfwStringInExtensionString(extension, extensions); +} + +static GLFWglproc getProcAddressWGL(const char* procname) +{ + const GLFWglproc proc = (GLFWglproc) wglGetProcAddress(procname); + if (proc) + return proc; + + return (GLFWglproc) _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, procname); +} + +static void destroyContextWGL(_GLFWwindow* window) +{ + if (window->context.wgl.handle) + { + wglDeleteContext(window->context.wgl.handle); + window->context.wgl.handle = NULL; + } +} + +// Initialize WGL +// +GLFWbool _glfwInitWGL(void) +{ + PIXELFORMATDESCRIPTOR pfd; + HGLRC prc, rc; + HDC pdc, dc; + + if (_glfw.wgl.instance) + return GLFW_TRUE; + + _glfw.wgl.instance = _glfwPlatformLoadModule("opengl32.dll"); + if (!_glfw.wgl.instance) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to load opengl32.dll"); + return GLFW_FALSE; + } + + _glfw.wgl.CreateContext = (PFN_wglCreateContext) + _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, "wglCreateContext"); + _glfw.wgl.DeleteContext = (PFN_wglDeleteContext) + _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, "wglDeleteContext"); + _glfw.wgl.GetProcAddress = (PFN_wglGetProcAddress) + _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, "wglGetProcAddress"); + _glfw.wgl.GetCurrentDC = (PFN_wglGetCurrentDC) + _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, "wglGetCurrentDC"); + _glfw.wgl.GetCurrentContext = (PFN_wglGetCurrentContext) + _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, "wglGetCurrentContext"); + _glfw.wgl.MakeCurrent = (PFN_wglMakeCurrent) + _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, "wglMakeCurrent"); + _glfw.wgl.ShareLists = (PFN_wglShareLists) + _glfwPlatformGetModuleSymbol(_glfw.wgl.instance, "wglShareLists"); + + // NOTE: A dummy context has to be created for opengl32.dll to load the + // OpenGL ICD, from which we can then query WGL extensions + // NOTE: This code will accept the Microsoft GDI ICD; accelerated context + // creation failure occurs during manual pixel format enumeration + + dc = GetDC(_glfw.win32.helperWindowHandle); + + ZeroMemory(&pfd, sizeof(pfd)); + pfd.nSize = sizeof(pfd); + pfd.nVersion = 1; + pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; + pfd.iPixelType = PFD_TYPE_RGBA; + pfd.cColorBits = 24; + + if (!SetPixelFormat(dc, ChoosePixelFormat(dc, &pfd), &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to set pixel format for dummy context"); + return GLFW_FALSE; + } + + rc = wglCreateContext(dc); + if (!rc) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to create dummy context"); + return GLFW_FALSE; + } + + pdc = wglGetCurrentDC(); + prc = wglGetCurrentContext(); + + if (!wglMakeCurrent(dc, rc)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to make dummy context current"); + wglMakeCurrent(pdc, prc); + wglDeleteContext(rc); + return GLFW_FALSE; + } + + // NOTE: Functions must be loaded first as they're needed to retrieve the + // extension string that tells us whether the functions are supported + _glfw.wgl.GetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC) + wglGetProcAddress("wglGetExtensionsStringEXT"); + _glfw.wgl.GetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC) + wglGetProcAddress("wglGetExtensionsStringARB"); + _glfw.wgl.CreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC) + wglGetProcAddress("wglCreateContextAttribsARB"); + _glfw.wgl.SwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) + wglGetProcAddress("wglSwapIntervalEXT"); + _glfw.wgl.GetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC) + wglGetProcAddress("wglGetPixelFormatAttribivARB"); + + // NOTE: WGL_ARB_extensions_string and WGL_EXT_extensions_string are not + // checked below as we are already using them + _glfw.wgl.ARB_multisample = + extensionSupportedWGL("WGL_ARB_multisample"); + _glfw.wgl.ARB_framebuffer_sRGB = + extensionSupportedWGL("WGL_ARB_framebuffer_sRGB"); + _glfw.wgl.EXT_framebuffer_sRGB = + extensionSupportedWGL("WGL_EXT_framebuffer_sRGB"); + _glfw.wgl.ARB_create_context = + extensionSupportedWGL("WGL_ARB_create_context"); + _glfw.wgl.ARB_create_context_profile = + extensionSupportedWGL("WGL_ARB_create_context_profile"); + _glfw.wgl.EXT_create_context_es2_profile = + extensionSupportedWGL("WGL_EXT_create_context_es2_profile"); + _glfw.wgl.ARB_create_context_robustness = + extensionSupportedWGL("WGL_ARB_create_context_robustness"); + _glfw.wgl.ARB_create_context_no_error = + extensionSupportedWGL("WGL_ARB_create_context_no_error"); + _glfw.wgl.EXT_swap_control = + extensionSupportedWGL("WGL_EXT_swap_control"); + _glfw.wgl.EXT_colorspace = + extensionSupportedWGL("WGL_EXT_colorspace"); + _glfw.wgl.ARB_pixel_format = + extensionSupportedWGL("WGL_ARB_pixel_format"); + _glfw.wgl.ARB_context_flush_control = + extensionSupportedWGL("WGL_ARB_context_flush_control"); + + wglMakeCurrent(pdc, prc); + wglDeleteContext(rc); + return GLFW_TRUE; +} + +// Terminate WGL +// +void _glfwTerminateWGL(void) +{ + if (_glfw.wgl.instance) + _glfwPlatformFreeModule(_glfw.wgl.instance); +} + +#define SET_ATTRIB(a, v) \ +{ \ + assert(((size_t) index + 1) < sizeof(attribs) / sizeof(attribs[0])); \ + attribs[index++] = a; \ + attribs[index++] = v; \ +} + +// Create the OpenGL or OpenGL ES context +// +GLFWbool _glfwCreateContextWGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + int attribs[40]; + int pixelFormat; + PIXELFORMATDESCRIPTOR pfd; + HGLRC share = NULL; + + if (ctxconfig->share) + share = ctxconfig->share->context.wgl.handle; + + window->context.wgl.dc = GetDC(window->win32.handle); + if (!window->context.wgl.dc) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve DC for window"); + return GLFW_FALSE; + } + + pixelFormat = choosePixelFormatWGL(window, ctxconfig, fbconfig); + if (!pixelFormat) + return GLFW_FALSE; + + if (!DescribePixelFormat(window->context.wgl.dc, + pixelFormat, sizeof(pfd), &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to retrieve PFD for selected pixel format"); + return GLFW_FALSE; + } + + if (!SetPixelFormat(window->context.wgl.dc, pixelFormat, &pfd)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to set selected pixel format"); + return GLFW_FALSE; + } + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (ctxconfig->forward) + { + if (!_glfw.wgl.ARB_create_context) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: A forward compatible OpenGL context requested but WGL_ARB_create_context is unavailable"); + return GLFW_FALSE; + } + } + + if (ctxconfig->profile) + { + if (!_glfw.wgl.ARB_create_context_profile) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable"); + return GLFW_FALSE; + } + } + } + else + { + if (!_glfw.wgl.ARB_create_context || + !_glfw.wgl.ARB_create_context_profile || + !_glfw.wgl.EXT_create_context_es2_profile) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "WGL: OpenGL ES requested but WGL_ARB_create_context_es2_profile is unavailable"); + return GLFW_FALSE; + } + } + + if (_glfw.wgl.ARB_create_context) + { + int index = 0, mask = 0, flags = 0; + + if (ctxconfig->client == GLFW_OPENGL_API) + { + if (ctxconfig->forward) + flags |= WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; + + if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE) + mask |= WGL_CONTEXT_CORE_PROFILE_BIT_ARB; + else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE) + mask |= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; + } + else + mask |= WGL_CONTEXT_ES2_PROFILE_BIT_EXT; + + if (ctxconfig->debug) + flags |= WGL_CONTEXT_DEBUG_BIT_ARB; + + if (ctxconfig->robustness) + { + if (_glfw.wgl.ARB_create_context_robustness) + { + if (ctxconfig->robustness == GLFW_NO_RESET_NOTIFICATION) + { + SET_ATTRIB(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, + WGL_NO_RESET_NOTIFICATION_ARB); + } + else if (ctxconfig->robustness == GLFW_LOSE_CONTEXT_ON_RESET) + { + SET_ATTRIB(WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, + WGL_LOSE_CONTEXT_ON_RESET_ARB); + } + + flags |= WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB; + } + } + + if (ctxconfig->release) + { + if (_glfw.wgl.ARB_context_flush_control) + { + if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_NONE) + { + SET_ATTRIB(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, + WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB); + } + else if (ctxconfig->release == GLFW_RELEASE_BEHAVIOR_FLUSH) + { + SET_ATTRIB(WGL_CONTEXT_RELEASE_BEHAVIOR_ARB, + WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB); + } + } + } + + if (ctxconfig->noerror) + { + if (_glfw.wgl.ARB_create_context_no_error) + SET_ATTRIB(WGL_CONTEXT_OPENGL_NO_ERROR_ARB, GLFW_TRUE); + } + + // NOTE: Only request an explicitly versioned context when necessary, as + // explicitly requesting version 1.0 does not always return the + // highest version supported by the driver + if (ctxconfig->major != 1 || ctxconfig->minor != 0) + { + SET_ATTRIB(WGL_CONTEXT_MAJOR_VERSION_ARB, ctxconfig->major); + SET_ATTRIB(WGL_CONTEXT_MINOR_VERSION_ARB, ctxconfig->minor); + } + + if (flags) + SET_ATTRIB(WGL_CONTEXT_FLAGS_ARB, flags); + + if (mask) + SET_ATTRIB(WGL_CONTEXT_PROFILE_MASK_ARB, mask); + + SET_ATTRIB(0, 0); + + window->context.wgl.handle = + wglCreateContextAttribsARB(window->context.wgl.dc, share, attribs); + if (!window->context.wgl.handle) + { + const DWORD error = GetLastError(); + + if (error == (0xc0070000 | ERROR_INVALID_VERSION_ARB)) + { + if (ctxconfig->client == GLFW_OPENGL_API) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Driver does not support OpenGL version %i.%i", + ctxconfig->major, + ctxconfig->minor); + } + else + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Driver does not support OpenGL ES version %i.%i", + ctxconfig->major, + ctxconfig->minor); + } + } + else if (error == (0xc0070000 | ERROR_INVALID_PROFILE_ARB)) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Driver does not support the requested OpenGL profile"); + } + else if (error == (0xc0070000 | ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB)) + { + _glfwInputError(GLFW_INVALID_VALUE, + "WGL: The share context is not compatible with the requested context"); + } + else + { + if (ctxconfig->client == GLFW_OPENGL_API) + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Failed to create OpenGL context"); + } + else + { + _glfwInputError(GLFW_VERSION_UNAVAILABLE, + "WGL: Failed to create OpenGL ES context"); + } + } + + return GLFW_FALSE; + } + } + else + { + window->context.wgl.handle = wglCreateContext(window->context.wgl.dc); + if (!window->context.wgl.handle) + { + _glfwInputErrorWin32(GLFW_VERSION_UNAVAILABLE, + "WGL: Failed to create OpenGL context"); + return GLFW_FALSE; + } + + if (share) + { + if (!wglShareLists(share, window->context.wgl.handle)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WGL: Failed to enable sharing with specified OpenGL context"); + return GLFW_FALSE; + } + } + } + + window->context.makeCurrent = makeContextCurrentWGL; + window->context.swapBuffers = swapBuffersWGL; + window->context.swapInterval = swapIntervalWGL; + window->context.extensionSupported = extensionSupportedWGL; + window->context.getProcAddress = getProcAddressWGL; + window->context.destroy = destroyContextWGL; + + return GLFW_TRUE; +} + +#undef SET_ATTRIB + +GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (_glfw.platform.platformID != GLFW_PLATFORM_WIN32) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "WGL: Platform not initialized"); + return NULL; + } + + if (window->context.source != GLFW_NATIVE_CONTEXT_API) + { + _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL); + return NULL; + } + + return window->context.wgl.handle; +} + diff --git a/thirdparty/imgui_suite/glfw/src/win32_init.c b/thirdparty/imgui_suite/glfw/src/win32_init.c new file mode 100644 index 00000000000..8704150c574 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_init.c @@ -0,0 +1,727 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include + +static const GUID _glfw_GUID_DEVINTERFACE_HID = + {0x4d1e55b2,0xf16f,0x11cf,{0x88,0xcb,0x00,0x11,0x11,0x00,0x00,0x30}}; + +#define GUID_DEVINTERFACE_HID _glfw_GUID_DEVINTERFACE_HID + +#if defined(_GLFW_USE_HYBRID_HPG) || defined(_GLFW_USE_OPTIMUS_HPG) + +#if defined(_GLFW_BUILD_DLL) + #pragma message("These symbols must be exported by the executable and have no effect in a DLL") +#endif + +// Executables (but not DLLs) exporting this symbol with this value will be +// automatically directed to the high-performance GPU on Nvidia Optimus systems +// with up-to-date drivers +// +__declspec(dllexport) DWORD NvOptimusEnablement = 1; + +// Executables (but not DLLs) exporting this symbol with this value will be +// automatically directed to the high-performance GPU on AMD PowerXpress systems +// with up-to-date drivers +// +__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; + +#endif // _GLFW_USE_HYBRID_HPG + +#if defined(_GLFW_BUILD_DLL) + +// GLFW DLL entry point +// +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) +{ + return TRUE; +} + +#endif // _GLFW_BUILD_DLL + +// Load necessary libraries (DLLs) +// +static GLFWbool loadLibraries(void) +{ + if (!GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | + GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, + (const WCHAR*) &_glfw, + (HMODULE*) &_glfw.win32.instance)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to retrieve own module handle"); + return GLFW_FALSE; + } + + _glfw.win32.user32.instance = _glfwPlatformLoadModule("user32.dll"); + if (!_glfw.win32.user32.instance) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to load user32.dll"); + return GLFW_FALSE; + } + + _glfw.win32.user32.SetProcessDPIAware_ = (PFN_SetProcessDPIAware) + _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "SetProcessDPIAware"); + _glfw.win32.user32.ChangeWindowMessageFilterEx_ = (PFN_ChangeWindowMessageFilterEx) + _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "ChangeWindowMessageFilterEx"); + _glfw.win32.user32.EnableNonClientDpiScaling_ = (PFN_EnableNonClientDpiScaling) + _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "EnableNonClientDpiScaling"); + _glfw.win32.user32.SetProcessDpiAwarenessContext_ = (PFN_SetProcessDpiAwarenessContext) + _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "SetProcessDpiAwarenessContext"); + _glfw.win32.user32.GetDpiForWindow_ = (PFN_GetDpiForWindow) + _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "GetDpiForWindow"); + _glfw.win32.user32.AdjustWindowRectExForDpi_ = (PFN_AdjustWindowRectExForDpi) + _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "AdjustWindowRectExForDpi"); + _glfw.win32.user32.GetSystemMetricsForDpi_ = (PFN_GetSystemMetricsForDpi) + _glfwPlatformGetModuleSymbol(_glfw.win32.user32.instance, "GetSystemMetricsForDpi"); + + _glfw.win32.dinput8.instance = _glfwPlatformLoadModule("dinput8.dll"); + if (_glfw.win32.dinput8.instance) + { + _glfw.win32.dinput8.Create = (PFN_DirectInput8Create) + _glfwPlatformGetModuleSymbol(_glfw.win32.dinput8.instance, "DirectInput8Create"); + } + + { + int i; + const char* names[] = + { + "xinput1_4.dll", + "xinput1_3.dll", + "xinput9_1_0.dll", + "xinput1_2.dll", + "xinput1_1.dll", + NULL + }; + + for (i = 0; names[i]; i++) + { + _glfw.win32.xinput.instance = _glfwPlatformLoadModule(names[i]); + if (_glfw.win32.xinput.instance) + { + _glfw.win32.xinput.GetCapabilities = (PFN_XInputGetCapabilities) + _glfwPlatformGetModuleSymbol(_glfw.win32.xinput.instance, "XInputGetCapabilities"); + _glfw.win32.xinput.GetState = (PFN_XInputGetState) + _glfwPlatformGetModuleSymbol(_glfw.win32.xinput.instance, "XInputGetState"); + + break; + } + } + } + + _glfw.win32.dwmapi.instance = _glfwPlatformLoadModule("dwmapi.dll"); + if (_glfw.win32.dwmapi.instance) + { + _glfw.win32.dwmapi.IsCompositionEnabled = (PFN_DwmIsCompositionEnabled) + _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmIsCompositionEnabled"); + _glfw.win32.dwmapi.Flush = (PFN_DwmFlush) + _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmFlush"); + _glfw.win32.dwmapi.EnableBlurBehindWindow = (PFN_DwmEnableBlurBehindWindow) + _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmEnableBlurBehindWindow"); + _glfw.win32.dwmapi.GetColorizationColor = (PFN_DwmGetColorizationColor) + _glfwPlatformGetModuleSymbol(_glfw.win32.dwmapi.instance, "DwmGetColorizationColor"); + } + + _glfw.win32.shcore.instance = _glfwPlatformLoadModule("shcore.dll"); + if (_glfw.win32.shcore.instance) + { + _glfw.win32.shcore.SetProcessDpiAwareness_ = (PFN_SetProcessDpiAwareness) + _glfwPlatformGetModuleSymbol(_glfw.win32.shcore.instance, "SetProcessDpiAwareness"); + _glfw.win32.shcore.GetDpiForMonitor_ = (PFN_GetDpiForMonitor) + _glfwPlatformGetModuleSymbol(_glfw.win32.shcore.instance, "GetDpiForMonitor"); + } + + _glfw.win32.ntdll.instance = _glfwPlatformLoadModule("ntdll.dll"); + if (_glfw.win32.ntdll.instance) + { + _glfw.win32.ntdll.RtlVerifyVersionInfo_ = (PFN_RtlVerifyVersionInfo) + _glfwPlatformGetModuleSymbol(_glfw.win32.ntdll.instance, "RtlVerifyVersionInfo"); + } + + return GLFW_TRUE; +} + +// Unload used libraries (DLLs) +// +static void freeLibraries(void) +{ + if (_glfw.win32.xinput.instance) + _glfwPlatformFreeModule(_glfw.win32.xinput.instance); + + if (_glfw.win32.dinput8.instance) + _glfwPlatformFreeModule(_glfw.win32.dinput8.instance); + + if (_glfw.win32.user32.instance) + _glfwPlatformFreeModule(_glfw.win32.user32.instance); + + if (_glfw.win32.dwmapi.instance) + _glfwPlatformFreeModule(_glfw.win32.dwmapi.instance); + + if (_glfw.win32.shcore.instance) + _glfwPlatformFreeModule(_glfw.win32.shcore.instance); + + if (_glfw.win32.ntdll.instance) + _glfwPlatformFreeModule(_glfw.win32.ntdll.instance); +} + +// Create key code translation tables +// +static void createKeyTables(void) +{ + int scancode; + + memset(_glfw.win32.keycodes, -1, sizeof(_glfw.win32.keycodes)); + memset(_glfw.win32.scancodes, -1, sizeof(_glfw.win32.scancodes)); + + _glfw.win32.keycodes[0x00B] = GLFW_KEY_0; + _glfw.win32.keycodes[0x002] = GLFW_KEY_1; + _glfw.win32.keycodes[0x003] = GLFW_KEY_2; + _glfw.win32.keycodes[0x004] = GLFW_KEY_3; + _glfw.win32.keycodes[0x005] = GLFW_KEY_4; + _glfw.win32.keycodes[0x006] = GLFW_KEY_5; + _glfw.win32.keycodes[0x007] = GLFW_KEY_6; + _glfw.win32.keycodes[0x008] = GLFW_KEY_7; + _glfw.win32.keycodes[0x009] = GLFW_KEY_8; + _glfw.win32.keycodes[0x00A] = GLFW_KEY_9; + _glfw.win32.keycodes[0x01E] = GLFW_KEY_A; + _glfw.win32.keycodes[0x030] = GLFW_KEY_B; + _glfw.win32.keycodes[0x02E] = GLFW_KEY_C; + _glfw.win32.keycodes[0x020] = GLFW_KEY_D; + _glfw.win32.keycodes[0x012] = GLFW_KEY_E; + _glfw.win32.keycodes[0x021] = GLFW_KEY_F; + _glfw.win32.keycodes[0x022] = GLFW_KEY_G; + _glfw.win32.keycodes[0x023] = GLFW_KEY_H; + _glfw.win32.keycodes[0x017] = GLFW_KEY_I; + _glfw.win32.keycodes[0x024] = GLFW_KEY_J; + _glfw.win32.keycodes[0x025] = GLFW_KEY_K; + _glfw.win32.keycodes[0x026] = GLFW_KEY_L; + _glfw.win32.keycodes[0x032] = GLFW_KEY_M; + _glfw.win32.keycodes[0x031] = GLFW_KEY_N; + _glfw.win32.keycodes[0x018] = GLFW_KEY_O; + _glfw.win32.keycodes[0x019] = GLFW_KEY_P; + _glfw.win32.keycodes[0x010] = GLFW_KEY_Q; + _glfw.win32.keycodes[0x013] = GLFW_KEY_R; + _glfw.win32.keycodes[0x01F] = GLFW_KEY_S; + _glfw.win32.keycodes[0x014] = GLFW_KEY_T; + _glfw.win32.keycodes[0x016] = GLFW_KEY_U; + _glfw.win32.keycodes[0x02F] = GLFW_KEY_V; + _glfw.win32.keycodes[0x011] = GLFW_KEY_W; + _glfw.win32.keycodes[0x02D] = GLFW_KEY_X; + _glfw.win32.keycodes[0x015] = GLFW_KEY_Y; + _glfw.win32.keycodes[0x02C] = GLFW_KEY_Z; + + _glfw.win32.keycodes[0x028] = GLFW_KEY_APOSTROPHE; + _glfw.win32.keycodes[0x02B] = GLFW_KEY_BACKSLASH; + _glfw.win32.keycodes[0x033] = GLFW_KEY_COMMA; + _glfw.win32.keycodes[0x00D] = GLFW_KEY_EQUAL; + _glfw.win32.keycodes[0x029] = GLFW_KEY_GRAVE_ACCENT; + _glfw.win32.keycodes[0x01A] = GLFW_KEY_LEFT_BRACKET; + _glfw.win32.keycodes[0x00C] = GLFW_KEY_MINUS; + _glfw.win32.keycodes[0x034] = GLFW_KEY_PERIOD; + _glfw.win32.keycodes[0x01B] = GLFW_KEY_RIGHT_BRACKET; + _glfw.win32.keycodes[0x027] = GLFW_KEY_SEMICOLON; + _glfw.win32.keycodes[0x035] = GLFW_KEY_SLASH; + _glfw.win32.keycodes[0x056] = GLFW_KEY_WORLD_2; + + _glfw.win32.keycodes[0x00E] = GLFW_KEY_BACKSPACE; + _glfw.win32.keycodes[0x153] = GLFW_KEY_DELETE; + _glfw.win32.keycodes[0x14F] = GLFW_KEY_END; + _glfw.win32.keycodes[0x01C] = GLFW_KEY_ENTER; + _glfw.win32.keycodes[0x001] = GLFW_KEY_ESCAPE; + _glfw.win32.keycodes[0x147] = GLFW_KEY_HOME; + _glfw.win32.keycodes[0x152] = GLFW_KEY_INSERT; + _glfw.win32.keycodes[0x15D] = GLFW_KEY_MENU; + _glfw.win32.keycodes[0x151] = GLFW_KEY_PAGE_DOWN; + _glfw.win32.keycodes[0x149] = GLFW_KEY_PAGE_UP; + _glfw.win32.keycodes[0x045] = GLFW_KEY_PAUSE; + _glfw.win32.keycodes[0x039] = GLFW_KEY_SPACE; + _glfw.win32.keycodes[0x00F] = GLFW_KEY_TAB; + _glfw.win32.keycodes[0x03A] = GLFW_KEY_CAPS_LOCK; + _glfw.win32.keycodes[0x145] = GLFW_KEY_NUM_LOCK; + _glfw.win32.keycodes[0x046] = GLFW_KEY_SCROLL_LOCK; + _glfw.win32.keycodes[0x03B] = GLFW_KEY_F1; + _glfw.win32.keycodes[0x03C] = GLFW_KEY_F2; + _glfw.win32.keycodes[0x03D] = GLFW_KEY_F3; + _glfw.win32.keycodes[0x03E] = GLFW_KEY_F4; + _glfw.win32.keycodes[0x03F] = GLFW_KEY_F5; + _glfw.win32.keycodes[0x040] = GLFW_KEY_F6; + _glfw.win32.keycodes[0x041] = GLFW_KEY_F7; + _glfw.win32.keycodes[0x042] = GLFW_KEY_F8; + _glfw.win32.keycodes[0x043] = GLFW_KEY_F9; + _glfw.win32.keycodes[0x044] = GLFW_KEY_F10; + _glfw.win32.keycodes[0x057] = GLFW_KEY_F11; + _glfw.win32.keycodes[0x058] = GLFW_KEY_F12; + _glfw.win32.keycodes[0x064] = GLFW_KEY_F13; + _glfw.win32.keycodes[0x065] = GLFW_KEY_F14; + _glfw.win32.keycodes[0x066] = GLFW_KEY_F15; + _glfw.win32.keycodes[0x067] = GLFW_KEY_F16; + _glfw.win32.keycodes[0x068] = GLFW_KEY_F17; + _glfw.win32.keycodes[0x069] = GLFW_KEY_F18; + _glfw.win32.keycodes[0x06A] = GLFW_KEY_F19; + _glfw.win32.keycodes[0x06B] = GLFW_KEY_F20; + _glfw.win32.keycodes[0x06C] = GLFW_KEY_F21; + _glfw.win32.keycodes[0x06D] = GLFW_KEY_F22; + _glfw.win32.keycodes[0x06E] = GLFW_KEY_F23; + _glfw.win32.keycodes[0x076] = GLFW_KEY_F24; + _glfw.win32.keycodes[0x038] = GLFW_KEY_LEFT_ALT; + _glfw.win32.keycodes[0x01D] = GLFW_KEY_LEFT_CONTROL; + _glfw.win32.keycodes[0x02A] = GLFW_KEY_LEFT_SHIFT; + _glfw.win32.keycodes[0x15B] = GLFW_KEY_LEFT_SUPER; + _glfw.win32.keycodes[0x137] = GLFW_KEY_PRINT_SCREEN; + _glfw.win32.keycodes[0x138] = GLFW_KEY_RIGHT_ALT; + _glfw.win32.keycodes[0x11D] = GLFW_KEY_RIGHT_CONTROL; + _glfw.win32.keycodes[0x036] = GLFW_KEY_RIGHT_SHIFT; + _glfw.win32.keycodes[0x15C] = GLFW_KEY_RIGHT_SUPER; + _glfw.win32.keycodes[0x150] = GLFW_KEY_DOWN; + _glfw.win32.keycodes[0x14B] = GLFW_KEY_LEFT; + _glfw.win32.keycodes[0x14D] = GLFW_KEY_RIGHT; + _glfw.win32.keycodes[0x148] = GLFW_KEY_UP; + + _glfw.win32.keycodes[0x052] = GLFW_KEY_KP_0; + _glfw.win32.keycodes[0x04F] = GLFW_KEY_KP_1; + _glfw.win32.keycodes[0x050] = GLFW_KEY_KP_2; + _glfw.win32.keycodes[0x051] = GLFW_KEY_KP_3; + _glfw.win32.keycodes[0x04B] = GLFW_KEY_KP_4; + _glfw.win32.keycodes[0x04C] = GLFW_KEY_KP_5; + _glfw.win32.keycodes[0x04D] = GLFW_KEY_KP_6; + _glfw.win32.keycodes[0x047] = GLFW_KEY_KP_7; + _glfw.win32.keycodes[0x048] = GLFW_KEY_KP_8; + _glfw.win32.keycodes[0x049] = GLFW_KEY_KP_9; + _glfw.win32.keycodes[0x04E] = GLFW_KEY_KP_ADD; + _glfw.win32.keycodes[0x053] = GLFW_KEY_KP_DECIMAL; + _glfw.win32.keycodes[0x135] = GLFW_KEY_KP_DIVIDE; + _glfw.win32.keycodes[0x11C] = GLFW_KEY_KP_ENTER; + _glfw.win32.keycodes[0x059] = GLFW_KEY_KP_EQUAL; + _glfw.win32.keycodes[0x037] = GLFW_KEY_KP_MULTIPLY; + _glfw.win32.keycodes[0x04A] = GLFW_KEY_KP_SUBTRACT; + + for (scancode = 0; scancode < 512; scancode++) + { + if (_glfw.win32.keycodes[scancode] > 0) + _glfw.win32.scancodes[_glfw.win32.keycodes[scancode]] = scancode; + } +} + +// Window procedure for the hidden helper window +// +static LRESULT CALLBACK helperWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) +{ + switch (uMsg) + { + case WM_DISPLAYCHANGE: + _glfwPollMonitorsWin32(); + break; + + case WM_DEVICECHANGE: + { + if (!_glfw.joysticksInitialized) + break; + + if (wParam == DBT_DEVICEARRIVAL) + { + DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; + if (dbh && dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) + _glfwDetectJoystickConnectionWin32(); + } + else if (wParam == DBT_DEVICEREMOVECOMPLETE) + { + DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam; + if (dbh && dbh->dbch_devicetype == DBT_DEVTYP_DEVICEINTERFACE) + _glfwDetectJoystickDisconnectionWin32(); + } + + break; + } + } + + return DefWindowProcW(hWnd, uMsg, wParam, lParam); +} + +// Creates a dummy window for behind-the-scenes work +// +static GLFWbool createHelperWindow(void) +{ + MSG msg; + WNDCLASSEXW wc = { sizeof(wc) }; + + wc.style = CS_OWNDC; + wc.lpfnWndProc = (WNDPROC) helperWindowProc; + wc.hInstance = _glfw.win32.instance; + wc.lpszClassName = L"GLFW3 Helper"; + + _glfw.win32.helperWindowClass = RegisterClassExW(&wc); + if (!_glfw.win32.helperWindowClass) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "WIn32: Failed to register helper window class"); + return GLFW_FALSE; + } + + _glfw.win32.helperWindowHandle = + CreateWindowExW(WS_EX_OVERLAPPEDWINDOW, + MAKEINTATOM(_glfw.win32.helperWindowClass), + L"GLFW message window", + WS_CLIPSIBLINGS | WS_CLIPCHILDREN, + 0, 0, 1, 1, + NULL, NULL, + _glfw.win32.instance, + NULL); + + if (!_glfw.win32.helperWindowHandle) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create helper window"); + return GLFW_FALSE; + } + + // HACK: The command to the first ShowWindow call is ignored if the parent + // process passed along a STARTUPINFO, so clear that with a no-op call + ShowWindow(_glfw.win32.helperWindowHandle, SW_HIDE); + + // Register for HID device notifications + { + DEV_BROADCAST_DEVICEINTERFACE_W dbi; + ZeroMemory(&dbi, sizeof(dbi)); + dbi.dbcc_size = sizeof(dbi); + dbi.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE; + dbi.dbcc_classguid = GUID_DEVINTERFACE_HID; + + _glfw.win32.deviceNotificationHandle = + RegisterDeviceNotificationW(_glfw.win32.helperWindowHandle, + (DEV_BROADCAST_HDR*) &dbi, + DEVICE_NOTIFY_WINDOW_HANDLE); + } + + while (PeekMessageW(&msg, _glfw.win32.helperWindowHandle, 0, 0, PM_REMOVE)) + { + TranslateMessage(&msg); + DispatchMessageW(&msg); + } + + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Returns a wide string version of the specified UTF-8 string +// +WCHAR* _glfwCreateWideStringFromUTF8Win32(const char* source) +{ + WCHAR* target; + int count; + + count = MultiByteToWideChar(CP_UTF8, 0, source, -1, NULL, 0); + if (!count) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to convert string from UTF-8"); + return NULL; + } + + target = _glfw_calloc(count, sizeof(WCHAR)); + + if (!MultiByteToWideChar(CP_UTF8, 0, source, -1, target, count)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to convert string from UTF-8"); + _glfw_free(target); + return NULL; + } + + return target; +} + +// Returns a UTF-8 string version of the specified wide string +// +char* _glfwCreateUTF8FromWideStringWin32(const WCHAR* source) +{ + char* target; + int size; + + size = WideCharToMultiByte(CP_UTF8, 0, source, -1, NULL, 0, NULL, NULL); + if (!size) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to convert string to UTF-8"); + return NULL; + } + + target = _glfw_calloc(size, 1); + + if (!WideCharToMultiByte(CP_UTF8, 0, source, -1, target, size, NULL, NULL)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to convert string to UTF-8"); + _glfw_free(target); + return NULL; + } + + return target; +} + +// Reports the specified error, appending information about the last Win32 error +// +void _glfwInputErrorWin32(int error, const char* description) +{ + WCHAR buffer[_GLFW_MESSAGE_SIZE] = L""; + char message[_GLFW_MESSAGE_SIZE] = ""; + + FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM | + FORMAT_MESSAGE_IGNORE_INSERTS | + FORMAT_MESSAGE_MAX_WIDTH_MASK, + NULL, + GetLastError() & 0xffff, + MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), + buffer, + sizeof(buffer) / sizeof(WCHAR), + NULL); + WideCharToMultiByte(CP_UTF8, 0, buffer, -1, message, sizeof(message), NULL, NULL); + + _glfwInputError(error, "%s: %s", description, message); +} + +// Updates key names according to the current keyboard layout +// +void _glfwUpdateKeyNamesWin32(void) +{ + int key; + BYTE state[256] = {0}; + + memset(_glfw.win32.keynames, 0, sizeof(_glfw.win32.keynames)); + + for (key = GLFW_KEY_SPACE; key <= GLFW_KEY_LAST; key++) + { + UINT vk; + int scancode, length; + WCHAR chars[16]; + + scancode = _glfw.win32.scancodes[key]; + if (scancode == -1) + continue; + + if (key >= GLFW_KEY_KP_0 && key <= GLFW_KEY_KP_ADD) + { + const UINT vks[] = { + VK_NUMPAD0, VK_NUMPAD1, VK_NUMPAD2, VK_NUMPAD3, + VK_NUMPAD4, VK_NUMPAD5, VK_NUMPAD6, VK_NUMPAD7, + VK_NUMPAD8, VK_NUMPAD9, VK_DECIMAL, VK_DIVIDE, + VK_MULTIPLY, VK_SUBTRACT, VK_ADD + }; + + vk = vks[key - GLFW_KEY_KP_0]; + } + else + vk = MapVirtualKeyW(scancode, MAPVK_VSC_TO_VK); + + length = ToUnicode(vk, scancode, state, + chars, sizeof(chars) / sizeof(WCHAR), + 0); + + if (length == -1) + { + // This is a dead key, so we need a second simulated key press + // to make it output its own character (usually a diacritic) + length = ToUnicode(vk, scancode, state, + chars, sizeof(chars) / sizeof(WCHAR), + 0); + } + + if (length < 1) + continue; + + WideCharToMultiByte(CP_UTF8, 0, chars, 1, + _glfw.win32.keynames[key], + sizeof(_glfw.win32.keynames[key]), + NULL, NULL); + } +} + +// Replacement for IsWindowsVersionOrGreater, as we cannot rely on the +// application having a correct embedded manifest +// +BOOL _glfwIsWindowsVersionOrGreaterWin32(WORD major, WORD minor, WORD sp) +{ + OSVERSIONINFOEXW osvi = { sizeof(osvi), major, minor, 0, 0, {0}, sp }; + DWORD mask = VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR; + ULONGLONG cond = VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL); + cond = VerSetConditionMask(cond, VER_MINORVERSION, VER_GREATER_EQUAL); + cond = VerSetConditionMask(cond, VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL); + // HACK: Use RtlVerifyVersionInfo instead of VerifyVersionInfoW as the + // latter lies unless the user knew to embed a non-default manifest + // announcing support for Windows 10 via supportedOS GUID + return RtlVerifyVersionInfo(&osvi, mask, cond) == 0; +} + +// Checks whether we are on at least the specified build of Windows 10 +// +BOOL _glfwIsWindows10BuildOrGreaterWin32(WORD build) +{ + OSVERSIONINFOEXW osvi = { sizeof(osvi), 10, 0, build }; + DWORD mask = VER_MAJORVERSION | VER_MINORVERSION | VER_BUILDNUMBER; + ULONGLONG cond = VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL); + cond = VerSetConditionMask(cond, VER_MINORVERSION, VER_GREATER_EQUAL); + cond = VerSetConditionMask(cond, VER_BUILDNUMBER, VER_GREATER_EQUAL); + // HACK: Use RtlVerifyVersionInfo instead of VerifyVersionInfoW as the + // latter lies unless the user knew to embed a non-default manifest + // announcing support for Windows 10 via supportedOS GUID + return RtlVerifyVersionInfo(&osvi, mask, cond) == 0; +} + +GLFWbool _glfwConnectWin32(int platformID, _GLFWplatform* platform) +{ + const _GLFWplatform win32 = + { + GLFW_PLATFORM_WIN32, + _glfwInitWin32, + _glfwTerminateWin32, + _glfwGetCursorPosWin32, + _glfwSetCursorPosWin32, + _glfwSetCursorModeWin32, + _glfwSetRawMouseMotionWin32, + _glfwRawMouseMotionSupportedWin32, + _glfwCreateCursorWin32, + _glfwCreateStandardCursorWin32, + _glfwDestroyCursorWin32, + _glfwSetCursorWin32, + _glfwGetScancodeNameWin32, + _glfwGetKeyScancodeWin32, + _glfwSetClipboardStringWin32, + _glfwGetClipboardStringWin32, + _glfwInitJoysticksWin32, + _glfwTerminateJoysticksWin32, + _glfwPollJoystickWin32, + _glfwGetMappingNameWin32, + _glfwUpdateGamepadGUIDWin32, + _glfwFreeMonitorWin32, + _glfwGetMonitorPosWin32, + _glfwGetMonitorContentScaleWin32, + _glfwGetMonitorWorkareaWin32, + _glfwGetVideoModesWin32, + _glfwGetVideoModeWin32, + _glfwGetGammaRampWin32, + _glfwSetGammaRampWin32, + _glfwCreateWindowWin32, + _glfwDestroyWindowWin32, + _glfwSetWindowTitleWin32, + _glfwSetWindowIconWin32, + _glfwGetWindowPosWin32, + _glfwSetWindowPosWin32, + _glfwGetWindowSizeWin32, + _glfwSetWindowSizeWin32, + _glfwSetWindowSizeLimitsWin32, + _glfwSetWindowAspectRatioWin32, + _glfwGetFramebufferSizeWin32, + _glfwGetWindowFrameSizeWin32, + _glfwGetWindowContentScaleWin32, + _glfwIconifyWindowWin32, + _glfwRestoreWindowWin32, + _glfwMaximizeWindowWin32, + _glfwShowWindowWin32, + _glfwHideWindowWin32, + _glfwRequestWindowAttentionWin32, + _glfwFocusWindowWin32, + _glfwSetWindowMonitorWin32, + _glfwWindowFocusedWin32, + _glfwWindowIconifiedWin32, + _glfwWindowVisibleWin32, + _glfwWindowMaximizedWin32, + _glfwWindowHoveredWin32, + _glfwFramebufferTransparentWin32, + _glfwGetWindowOpacityWin32, + _glfwSetWindowResizableWin32, + _glfwSetWindowDecoratedWin32, + _glfwSetWindowFloatingWin32, + _glfwSetWindowOpacityWin32, + _glfwSetWindowMousePassthroughWin32, + _glfwPollEventsWin32, + _glfwWaitEventsWin32, + _glfwWaitEventsTimeoutWin32, + _glfwPostEmptyEventWin32, + _glfwGetEGLPlatformWin32, + _glfwGetEGLNativeDisplayWin32, + _glfwGetEGLNativeWindowWin32, + _glfwGetRequiredInstanceExtensionsWin32, + _glfwGetPhysicalDevicePresentationSupportWin32, + _glfwCreateWindowSurfaceWin32, + }; + + *platform = win32; + return GLFW_TRUE; +} + +int _glfwInitWin32(void) +{ + if (!loadLibraries()) + return GLFW_FALSE; + + createKeyTables(); + _glfwUpdateKeyNamesWin32(); + + if (_glfwIsWindows10Version1703OrGreaterWin32()) + SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); + else if (IsWindows8Point1OrGreater()) + SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE); + else if (IsWindowsVistaOrGreater()) + SetProcessDPIAware(); + + if (!createHelperWindow()) + return GLFW_FALSE; + + _glfwPollMonitorsWin32(); + return GLFW_TRUE; +} + +void _glfwTerminateWin32(void) +{ + if (_glfw.win32.deviceNotificationHandle) + UnregisterDeviceNotification(_glfw.win32.deviceNotificationHandle); + + if (_glfw.win32.helperWindowHandle) + DestroyWindow(_glfw.win32.helperWindowHandle); + if (_glfw.win32.helperWindowClass) + UnregisterClassW(MAKEINTATOM(_glfw.win32.helperWindowClass), _glfw.win32.instance); + if (_glfw.win32.mainWindowClass) + UnregisterClassW(MAKEINTATOM(_glfw.win32.mainWindowClass), _glfw.win32.instance); + + _glfw_free(_glfw.win32.clipboardString); + _glfw_free(_glfw.win32.rawInput); + + _glfwTerminateWGL(); + _glfwTerminateEGL(); + _glfwTerminateOSMesa(); + + freeLibraries(); +} + diff --git a/thirdparty/imgui_suite/glfw/src/win32_joystick.c b/thirdparty/imgui_suite/glfw/src/win32_joystick.c new file mode 100644 index 00000000000..3a28943b088 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_joystick.c @@ -0,0 +1,758 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include + +#define _GLFW_TYPE_AXIS 0 +#define _GLFW_TYPE_SLIDER 1 +#define _GLFW_TYPE_BUTTON 2 +#define _GLFW_TYPE_POV 3 + +// Data produced with DirectInput device object enumeration +// +typedef struct _GLFWobjenumWin32 +{ + IDirectInputDevice8W* device; + _GLFWjoyobjectWin32* objects; + int objectCount; + int axisCount; + int sliderCount; + int buttonCount; + int povCount; +} _GLFWobjenumWin32; + +// Define local copies of the necessary GUIDs +// +static const GUID _glfw_IID_IDirectInput8W = + {0xbf798031,0x483a,0x4da2,{0xaa,0x99,0x5d,0x64,0xed,0x36,0x97,0x00}}; +static const GUID _glfw_GUID_XAxis = + {0xa36d02e0,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; +static const GUID _glfw_GUID_YAxis = + {0xa36d02e1,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; +static const GUID _glfw_GUID_ZAxis = + {0xa36d02e2,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; +static const GUID _glfw_GUID_RxAxis = + {0xa36d02f4,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; +static const GUID _glfw_GUID_RyAxis = + {0xa36d02f5,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; +static const GUID _glfw_GUID_RzAxis = + {0xa36d02e3,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; +static const GUID _glfw_GUID_Slider = + {0xa36d02e4,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; +static const GUID _glfw_GUID_POV = + {0xa36d02f2,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; + +#define IID_IDirectInput8W _glfw_IID_IDirectInput8W +#define GUID_XAxis _glfw_GUID_XAxis +#define GUID_YAxis _glfw_GUID_YAxis +#define GUID_ZAxis _glfw_GUID_ZAxis +#define GUID_RxAxis _glfw_GUID_RxAxis +#define GUID_RyAxis _glfw_GUID_RyAxis +#define GUID_RzAxis _glfw_GUID_RzAxis +#define GUID_Slider _glfw_GUID_Slider +#define GUID_POV _glfw_GUID_POV + +// Object data array for our clone of c_dfDIJoystick +// Generated with https://github.com/elmindreda/c_dfDIJoystick2 +// +static DIOBJECTDATAFORMAT _glfwObjectDataFormats[] = +{ + { &GUID_XAxis,DIJOFS_X,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_YAxis,DIJOFS_Y,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_ZAxis,DIJOFS_Z,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_RxAxis,DIJOFS_RX,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_RyAxis,DIJOFS_RY,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_RzAxis,DIJOFS_RZ,DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_Slider,DIJOFS_SLIDER(0),DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_Slider,DIJOFS_SLIDER(1),DIDFT_AXIS|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,DIDOI_ASPECTPOSITION }, + { &GUID_POV,DIJOFS_POV(0),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { &GUID_POV,DIJOFS_POV(1),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { &GUID_POV,DIJOFS_POV(2),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { &GUID_POV,DIJOFS_POV(3),DIDFT_POV|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(0),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(1),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(2),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(3),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(4),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(5),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(6),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(7),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(8),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(9),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(10),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(11),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(12),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(13),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(14),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(15),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(16),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(17),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(18),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(19),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(20),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(21),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(22),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(23),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(24),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(25),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(26),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(27),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(28),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(29),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(30),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, + { NULL,DIJOFS_BUTTON(31),DIDFT_BUTTON|DIDFT_OPTIONAL|DIDFT_ANYINSTANCE,0 }, +}; + +// Our clone of c_dfDIJoystick +// +static const DIDATAFORMAT _glfwDataFormat = +{ + sizeof(DIDATAFORMAT), + sizeof(DIOBJECTDATAFORMAT), + DIDFT_ABSAXIS, + sizeof(DIJOYSTATE), + sizeof(_glfwObjectDataFormats) / sizeof(DIOBJECTDATAFORMAT), + _glfwObjectDataFormats +}; + +// Returns a description fitting the specified XInput capabilities +// +static const char* getDeviceDescription(const XINPUT_CAPABILITIES* xic) +{ + switch (xic->SubType) + { + case XINPUT_DEVSUBTYPE_WHEEL: + return "XInput Wheel"; + case XINPUT_DEVSUBTYPE_ARCADE_STICK: + return "XInput Arcade Stick"; + case XINPUT_DEVSUBTYPE_FLIGHT_STICK: + return "XInput Flight Stick"; + case XINPUT_DEVSUBTYPE_DANCE_PAD: + return "XInput Dance Pad"; + case XINPUT_DEVSUBTYPE_GUITAR: + return "XInput Guitar"; + case XINPUT_DEVSUBTYPE_DRUM_KIT: + return "XInput Drum Kit"; + case XINPUT_DEVSUBTYPE_GAMEPAD: + { + if (xic->Flags & XINPUT_CAPS_WIRELESS) + return "Wireless Xbox Controller"; + else + return "Xbox Controller"; + } + } + + return "Unknown XInput Device"; +} + +// Lexically compare device objects +// +static int compareJoystickObjects(const void* first, const void* second) +{ + const _GLFWjoyobjectWin32* fo = first; + const _GLFWjoyobjectWin32* so = second; + + if (fo->type != so->type) + return fo->type - so->type; + + return fo->offset - so->offset; +} + +// Checks whether the specified device supports XInput +// Technique from FDInputJoystickManager::IsXInputDeviceFast in ZDoom +// +static GLFWbool supportsXInput(const GUID* guid) +{ + UINT i, count = 0; + RAWINPUTDEVICELIST* ridl; + GLFWbool result = GLFW_FALSE; + + if (GetRawInputDeviceList(NULL, &count, sizeof(RAWINPUTDEVICELIST)) != 0) + return GLFW_FALSE; + + ridl = _glfw_calloc(count, sizeof(RAWINPUTDEVICELIST)); + + if (GetRawInputDeviceList(ridl, &count, sizeof(RAWINPUTDEVICELIST)) == (UINT) -1) + { + _glfw_free(ridl); + return GLFW_FALSE; + } + + for (i = 0; i < count; i++) + { + RID_DEVICE_INFO rdi; + char name[256]; + UINT size; + + if (ridl[i].dwType != RIM_TYPEHID) + continue; + + ZeroMemory(&rdi, sizeof(rdi)); + rdi.cbSize = sizeof(rdi); + size = sizeof(rdi); + + if ((INT) GetRawInputDeviceInfoA(ridl[i].hDevice, + RIDI_DEVICEINFO, + &rdi, &size) == -1) + { + continue; + } + + if (MAKELONG(rdi.hid.dwVendorId, rdi.hid.dwProductId) != (LONG) guid->Data1) + continue; + + memset(name, 0, sizeof(name)); + size = sizeof(name); + + if ((INT) GetRawInputDeviceInfoA(ridl[i].hDevice, + RIDI_DEVICENAME, + name, &size) == -1) + { + break; + } + + name[sizeof(name) - 1] = '\0'; + if (strstr(name, "IG_")) + { + result = GLFW_TRUE; + break; + } + } + + _glfw_free(ridl); + return result; +} + +// Frees all resources associated with the specified joystick +// +static void closeJoystick(_GLFWjoystick* js) +{ + _glfwInputJoystick(js, GLFW_DISCONNECTED); + + if (js->win32.device) + { + IDirectInputDevice8_Unacquire(js->win32.device); + IDirectInputDevice8_Release(js->win32.device); + } + + _glfw_free(js->win32.objects); + _glfwFreeJoystick(js); +} + +// DirectInput device object enumeration callback +// Insights gleaned from SDL +// +static BOOL CALLBACK deviceObjectCallback(const DIDEVICEOBJECTINSTANCEW* doi, + void* user) +{ + _GLFWobjenumWin32* data = user; + _GLFWjoyobjectWin32* object = data->objects + data->objectCount; + + if (DIDFT_GETTYPE(doi->dwType) & DIDFT_AXIS) + { + DIPROPRANGE dipr; + + if (memcmp(&doi->guidType, &GUID_Slider, sizeof(GUID)) == 0) + object->offset = DIJOFS_SLIDER(data->sliderCount); + else if (memcmp(&doi->guidType, &GUID_XAxis, sizeof(GUID)) == 0) + object->offset = DIJOFS_X; + else if (memcmp(&doi->guidType, &GUID_YAxis, sizeof(GUID)) == 0) + object->offset = DIJOFS_Y; + else if (memcmp(&doi->guidType, &GUID_ZAxis, sizeof(GUID)) == 0) + object->offset = DIJOFS_Z; + else if (memcmp(&doi->guidType, &GUID_RxAxis, sizeof(GUID)) == 0) + object->offset = DIJOFS_RX; + else if (memcmp(&doi->guidType, &GUID_RyAxis, sizeof(GUID)) == 0) + object->offset = DIJOFS_RY; + else if (memcmp(&doi->guidType, &GUID_RzAxis, sizeof(GUID)) == 0) + object->offset = DIJOFS_RZ; + else + return DIENUM_CONTINUE; + + ZeroMemory(&dipr, sizeof(dipr)); + dipr.diph.dwSize = sizeof(dipr); + dipr.diph.dwHeaderSize = sizeof(dipr.diph); + dipr.diph.dwObj = doi->dwType; + dipr.diph.dwHow = DIPH_BYID; + dipr.lMin = -32768; + dipr.lMax = 32767; + + if (FAILED(IDirectInputDevice8_SetProperty(data->device, + DIPROP_RANGE, + &dipr.diph))) + { + return DIENUM_CONTINUE; + } + + if (memcmp(&doi->guidType, &GUID_Slider, sizeof(GUID)) == 0) + { + object->type = _GLFW_TYPE_SLIDER; + data->sliderCount++; + } + else + { + object->type = _GLFW_TYPE_AXIS; + data->axisCount++; + } + } + else if (DIDFT_GETTYPE(doi->dwType) & DIDFT_BUTTON) + { + object->offset = DIJOFS_BUTTON(data->buttonCount); + object->type = _GLFW_TYPE_BUTTON; + data->buttonCount++; + } + else if (DIDFT_GETTYPE(doi->dwType) & DIDFT_POV) + { + object->offset = DIJOFS_POV(data->povCount); + object->type = _GLFW_TYPE_POV; + data->povCount++; + } + + data->objectCount++; + return DIENUM_CONTINUE; +} + +// DirectInput device enumeration callback +// +static BOOL CALLBACK deviceCallback(const DIDEVICEINSTANCE* di, void* user) +{ + int jid = 0; + DIDEVCAPS dc; + DIPROPDWORD dipd; + IDirectInputDevice8* device; + _GLFWobjenumWin32 data; + _GLFWjoystick* js; + char guid[33]; + char name[256]; + + for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + js = _glfw.joysticks + jid; + if (js->connected) + { + if (memcmp(&js->win32.guid, &di->guidInstance, sizeof(GUID)) == 0) + return DIENUM_CONTINUE; + } + } + + if (supportsXInput(&di->guidProduct)) + return DIENUM_CONTINUE; + + if (FAILED(IDirectInput8_CreateDevice(_glfw.win32.dinput8.api, + &di->guidInstance, + &device, + NULL))) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to create device"); + return DIENUM_CONTINUE; + } + + if (FAILED(IDirectInputDevice8_SetDataFormat(device, &_glfwDataFormat))) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to set device data format"); + + IDirectInputDevice8_Release(device); + return DIENUM_CONTINUE; + } + + ZeroMemory(&dc, sizeof(dc)); + dc.dwSize = sizeof(dc); + + if (FAILED(IDirectInputDevice8_GetCapabilities(device, &dc))) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to query device capabilities"); + + IDirectInputDevice8_Release(device); + return DIENUM_CONTINUE; + } + + ZeroMemory(&dipd, sizeof(dipd)); + dipd.diph.dwSize = sizeof(dipd); + dipd.diph.dwHeaderSize = sizeof(dipd.diph); + dipd.diph.dwHow = DIPH_DEVICE; + dipd.dwData = DIPROPAXISMODE_ABS; + + if (FAILED(IDirectInputDevice8_SetProperty(device, + DIPROP_AXISMODE, + &dipd.diph))) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to set device axis mode"); + + IDirectInputDevice8_Release(device); + return DIENUM_CONTINUE; + } + + memset(&data, 0, sizeof(data)); + data.device = device; + data.objects = _glfw_calloc(dc.dwAxes + (size_t) dc.dwButtons + dc.dwPOVs, + sizeof(_GLFWjoyobjectWin32)); + + if (FAILED(IDirectInputDevice8_EnumObjects(device, + deviceObjectCallback, + &data, + DIDFT_AXIS | DIDFT_BUTTON | DIDFT_POV))) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to enumerate device objects"); + + IDirectInputDevice8_Release(device); + _glfw_free(data.objects); + return DIENUM_CONTINUE; + } + + qsort(data.objects, data.objectCount, + sizeof(_GLFWjoyobjectWin32), + compareJoystickObjects); + + if (!WideCharToMultiByte(CP_UTF8, 0, + di->tszInstanceName, -1, + name, sizeof(name), + NULL, NULL)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to convert joystick name to UTF-8"); + + IDirectInputDevice8_Release(device); + _glfw_free(data.objects); + return DIENUM_STOP; + } + + // Generate a joystick GUID that matches the SDL 2.0.5+ one + if (memcmp(&di->guidProduct.Data4[2], "PIDVID", 6) == 0) + { + sprintf(guid, "03000000%02x%02x0000%02x%02x000000000000", + (uint8_t) di->guidProduct.Data1, + (uint8_t) (di->guidProduct.Data1 >> 8), + (uint8_t) (di->guidProduct.Data1 >> 16), + (uint8_t) (di->guidProduct.Data1 >> 24)); + } + else + { + sprintf(guid, "05000000%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x00", + name[0], name[1], name[2], name[3], + name[4], name[5], name[6], name[7], + name[8], name[9], name[10]); + } + + js = _glfwAllocJoystick(name, guid, + data.axisCount + data.sliderCount, + data.buttonCount, + data.povCount); + if (!js) + { + IDirectInputDevice8_Release(device); + _glfw_free(data.objects); + return DIENUM_STOP; + } + + js->win32.device = device; + js->win32.guid = di->guidInstance; + js->win32.objects = data.objects; + js->win32.objectCount = data.objectCount; + + _glfwInputJoystick(js, GLFW_CONNECTED); + return DIENUM_CONTINUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Checks for new joysticks after DBT_DEVICEARRIVAL +// +void _glfwDetectJoystickConnectionWin32(void) +{ + if (_glfw.win32.xinput.instance) + { + DWORD index; + + for (index = 0; index < XUSER_MAX_COUNT; index++) + { + int jid; + char guid[33]; + XINPUT_CAPABILITIES xic; + _GLFWjoystick* js; + + for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + if (_glfw.joysticks[jid].connected && + _glfw.joysticks[jid].win32.device == NULL && + _glfw.joysticks[jid].win32.index == index) + { + break; + } + } + + if (jid <= GLFW_JOYSTICK_LAST) + continue; + + if (XInputGetCapabilities(index, 0, &xic) != ERROR_SUCCESS) + continue; + + // Generate a joystick GUID that matches the SDL 2.0.5+ one + sprintf(guid, "78696e707574%02x000000000000000000", + xic.SubType & 0xff); + + js = _glfwAllocJoystick(getDeviceDescription(&xic), guid, 6, 10, 1); + if (!js) + continue; + + js->win32.index = index; + + _glfwInputJoystick(js, GLFW_CONNECTED); + } + } + + if (_glfw.win32.dinput8.api) + { + if (FAILED(IDirectInput8_EnumDevices(_glfw.win32.dinput8.api, + DI8DEVCLASS_GAMECTRL, + deviceCallback, + NULL, + DIEDFL_ALLDEVICES))) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Failed to enumerate DirectInput8 devices"); + return; + } + } +} + +// Checks for joystick disconnection after DBT_DEVICEREMOVECOMPLETE +// +void _glfwDetectJoystickDisconnectionWin32(void) +{ + int jid; + + for (jid = 0; jid <= GLFW_JOYSTICK_LAST; jid++) + { + _GLFWjoystick* js = _glfw.joysticks + jid; + if (js->connected) + _glfwPollJoystickWin32(js, _GLFW_POLL_PRESENCE); + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwInitJoysticksWin32(void) +{ + if (_glfw.win32.dinput8.instance) + { + if (FAILED(DirectInput8Create(_glfw.win32.instance, + DIRECTINPUT_VERSION, + &IID_IDirectInput8W, + (void**) &_glfw.win32.dinput8.api, + NULL))) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to create interface"); + return GLFW_FALSE; + } + } + + _glfwDetectJoystickConnectionWin32(); + return GLFW_TRUE; +} + +void _glfwTerminateJoysticksWin32(void) +{ + int jid; + + for (jid = GLFW_JOYSTICK_1; jid <= GLFW_JOYSTICK_LAST; jid++) + closeJoystick(_glfw.joysticks + jid); + + if (_glfw.win32.dinput8.api) + IDirectInput8_Release(_glfw.win32.dinput8.api); +} + +GLFWbool _glfwPollJoystickWin32(_GLFWjoystick* js, int mode) +{ + if (js->win32.device) + { + int i, ai = 0, bi = 0, pi = 0; + HRESULT result; + DIJOYSTATE state = {0}; + + IDirectInputDevice8_Poll(js->win32.device); + result = IDirectInputDevice8_GetDeviceState(js->win32.device, + sizeof(state), + &state); + if (result == DIERR_NOTACQUIRED || result == DIERR_INPUTLOST) + { + IDirectInputDevice8_Acquire(js->win32.device); + IDirectInputDevice8_Poll(js->win32.device); + result = IDirectInputDevice8_GetDeviceState(js->win32.device, + sizeof(state), + &state); + } + + if (FAILED(result)) + { + closeJoystick(js); + return GLFW_FALSE; + } + + if (mode == _GLFW_POLL_PRESENCE) + return GLFW_TRUE; + + for (i = 0; i < js->win32.objectCount; i++) + { + const void* data = (char*) &state + js->win32.objects[i].offset; + + switch (js->win32.objects[i].type) + { + case _GLFW_TYPE_AXIS: + case _GLFW_TYPE_SLIDER: + { + const float value = (*((LONG*) data) + 0.5f) / 32767.5f; + _glfwInputJoystickAxis(js, ai, value); + ai++; + break; + } + + case _GLFW_TYPE_BUTTON: + { + const char value = (*((BYTE*) data) & 0x80) != 0; + _glfwInputJoystickButton(js, bi, value); + bi++; + break; + } + + case _GLFW_TYPE_POV: + { + const int states[9] = + { + GLFW_HAT_UP, + GLFW_HAT_RIGHT_UP, + GLFW_HAT_RIGHT, + GLFW_HAT_RIGHT_DOWN, + GLFW_HAT_DOWN, + GLFW_HAT_LEFT_DOWN, + GLFW_HAT_LEFT, + GLFW_HAT_LEFT_UP, + GLFW_HAT_CENTERED + }; + + // Screams of horror are appropriate at this point + int stateIndex = LOWORD(*(DWORD*) data) / (45 * DI_DEGREES); + if (stateIndex < 0 || stateIndex > 8) + stateIndex = 8; + + _glfwInputJoystickHat(js, pi, states[stateIndex]); + pi++; + break; + } + } + } + } + else + { + int i, dpad = 0; + DWORD result; + XINPUT_STATE xis; + const WORD buttons[10] = + { + XINPUT_GAMEPAD_A, + XINPUT_GAMEPAD_B, + XINPUT_GAMEPAD_X, + XINPUT_GAMEPAD_Y, + XINPUT_GAMEPAD_LEFT_SHOULDER, + XINPUT_GAMEPAD_RIGHT_SHOULDER, + XINPUT_GAMEPAD_BACK, + XINPUT_GAMEPAD_START, + XINPUT_GAMEPAD_LEFT_THUMB, + XINPUT_GAMEPAD_RIGHT_THUMB + }; + + result = XInputGetState(js->win32.index, &xis); + if (result != ERROR_SUCCESS) + { + if (result == ERROR_DEVICE_NOT_CONNECTED) + closeJoystick(js); + + return GLFW_FALSE; + } + + if (mode == _GLFW_POLL_PRESENCE) + return GLFW_TRUE; + + _glfwInputJoystickAxis(js, 0, (xis.Gamepad.sThumbLX + 0.5f) / 32767.5f); + _glfwInputJoystickAxis(js, 1, -(xis.Gamepad.sThumbLY + 0.5f) / 32767.5f); + _glfwInputJoystickAxis(js, 2, (xis.Gamepad.sThumbRX + 0.5f) / 32767.5f); + _glfwInputJoystickAxis(js, 3, -(xis.Gamepad.sThumbRY + 0.5f) / 32767.5f); + _glfwInputJoystickAxis(js, 4, xis.Gamepad.bLeftTrigger / 127.5f - 1.f); + _glfwInputJoystickAxis(js, 5, xis.Gamepad.bRightTrigger / 127.5f - 1.f); + + for (i = 0; i < 10; i++) + { + const char value = (xis.Gamepad.wButtons & buttons[i]) ? 1 : 0; + _glfwInputJoystickButton(js, i, value); + } + + if (xis.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_UP) + dpad |= GLFW_HAT_UP; + if (xis.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_RIGHT) + dpad |= GLFW_HAT_RIGHT; + if (xis.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_DOWN) + dpad |= GLFW_HAT_DOWN; + if (xis.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_LEFT) + dpad |= GLFW_HAT_LEFT; + + _glfwInputJoystickHat(js, 0, dpad); + } + + return GLFW_TRUE; +} + +const char* _glfwGetMappingNameWin32(void) +{ + return "Windows"; +} + +void _glfwUpdateGamepadGUIDWin32(char* guid) +{ + if (strcmp(guid + 20, "504944564944") == 0) + { + char original[33]; + strncpy(original, guid, sizeof(original) - 1); + sprintf(guid, "03000000%.4s0000%.4s000000000000", + original, original + 4); + } +} + diff --git a/thirdparty/imgui_suite/glfw/src/win32_joystick.h b/thirdparty/imgui_suite/glfw/src/win32_joystick.h new file mode 100644 index 00000000000..d7c2bb6f7e4 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_joystick.h @@ -0,0 +1,53 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#define GLFW_WIN32_JOYSTICK_STATE _GLFWjoystickWin32 win32; +#define GLFW_WIN32_LIBRARY_JOYSTICK_STATE + +#define GLFW_BUILD_WIN32_MAPPINGS + +// Joystick element (axis, button or slider) +// +typedef struct _GLFWjoyobjectWin32 +{ + int offset; + int type; +} _GLFWjoyobjectWin32; + +// Win32-specific per-joystick data +// +typedef struct _GLFWjoystickWin32 +{ + _GLFWjoyobjectWin32* objects; + int objectCount; + IDirectInputDevice8W* device; + DWORD index; + GUID guid; +} _GLFWjoystickWin32; + +void _glfwDetectJoystickConnectionWin32(void); +void _glfwDetectJoystickDisconnectionWin32(void); + diff --git a/thirdparty/imgui_suite/glfw/src/win32_module.c b/thirdparty/imgui_suite/glfw/src/win32_module.c new file mode 100644 index 00000000000..35bdd71d57b --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_module.c @@ -0,0 +1,49 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2021 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void* _glfwPlatformLoadModule(const char* path) +{ + return LoadLibraryA(path); +} + +void _glfwPlatformFreeModule(void* module) +{ + FreeLibrary((HMODULE) module); +} + +GLFWproc _glfwPlatformGetModuleSymbol(void* module, const char* name) +{ + return (GLFWproc) GetProcAddress((HMODULE) module, name); +} + diff --git a/thirdparty/imgui_suite/glfw/src/win32_monitor.c b/thirdparty/imgui_suite/glfw/src/win32_monitor.c new file mode 100644 index 00000000000..57b44af3e18 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_monitor.c @@ -0,0 +1,547 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include + + +// Callback for EnumDisplayMonitors in createMonitor +// +static BOOL CALLBACK monitorCallback(HMONITOR handle, + HDC dc, + RECT* rect, + LPARAM data) +{ + MONITORINFOEXW mi; + ZeroMemory(&mi, sizeof(mi)); + mi.cbSize = sizeof(mi); + + if (GetMonitorInfoW(handle, (MONITORINFO*) &mi)) + { + _GLFWmonitor* monitor = (_GLFWmonitor*) data; + if (wcscmp(mi.szDevice, monitor->win32.adapterName) == 0) + monitor->win32.handle = handle; + } + + return TRUE; +} + +// Create monitor from an adapter and (optionally) a display +// +static _GLFWmonitor* createMonitor(DISPLAY_DEVICEW* adapter, + DISPLAY_DEVICEW* display) +{ + _GLFWmonitor* monitor; + int widthMM, heightMM; + char* name; + HDC dc; + DEVMODEW dm; + RECT rect; + + if (display) + name = _glfwCreateUTF8FromWideStringWin32(display->DeviceString); + else + name = _glfwCreateUTF8FromWideStringWin32(adapter->DeviceString); + if (!name) + return NULL; + + ZeroMemory(&dm, sizeof(dm)); + dm.dmSize = sizeof(dm); + EnumDisplaySettingsW(adapter->DeviceName, ENUM_CURRENT_SETTINGS, &dm); + + dc = CreateDCW(L"DISPLAY", adapter->DeviceName, NULL, NULL); + + if (IsWindows8Point1OrGreater()) + { + widthMM = GetDeviceCaps(dc, HORZSIZE); + heightMM = GetDeviceCaps(dc, VERTSIZE); + } + else + { + widthMM = (int) (dm.dmPelsWidth * 25.4f / GetDeviceCaps(dc, LOGPIXELSX)); + heightMM = (int) (dm.dmPelsHeight * 25.4f / GetDeviceCaps(dc, LOGPIXELSY)); + } + + DeleteDC(dc); + + monitor = _glfwAllocMonitor(name, widthMM, heightMM); + _glfw_free(name); + + if (adapter->StateFlags & DISPLAY_DEVICE_MODESPRUNED) + monitor->win32.modesPruned = GLFW_TRUE; + + wcscpy(monitor->win32.adapterName, adapter->DeviceName); + WideCharToMultiByte(CP_UTF8, 0, + adapter->DeviceName, -1, + monitor->win32.publicAdapterName, + sizeof(monitor->win32.publicAdapterName), + NULL, NULL); + + if (display) + { + wcscpy(monitor->win32.displayName, display->DeviceName); + WideCharToMultiByte(CP_UTF8, 0, + display->DeviceName, -1, + monitor->win32.publicDisplayName, + sizeof(monitor->win32.publicDisplayName), + NULL, NULL); + } + + rect.left = dm.dmPosition.x; + rect.top = dm.dmPosition.y; + rect.right = dm.dmPosition.x + dm.dmPelsWidth; + rect.bottom = dm.dmPosition.y + dm.dmPelsHeight; + + EnumDisplayMonitors(NULL, &rect, monitorCallback, (LPARAM) monitor); + return monitor; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Poll for changes in the set of connected monitors +// +void _glfwPollMonitorsWin32(void) +{ + int i, disconnectedCount; + _GLFWmonitor** disconnected = NULL; + DWORD adapterIndex, displayIndex; + DISPLAY_DEVICEW adapter, display; + _GLFWmonitor* monitor; + + disconnectedCount = _glfw.monitorCount; + if (disconnectedCount) + { + disconnected = _glfw_calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*)); + memcpy(disconnected, + _glfw.monitors, + _glfw.monitorCount * sizeof(_GLFWmonitor*)); + } + + for (adapterIndex = 0; ; adapterIndex++) + { + int type = _GLFW_INSERT_LAST; + + ZeroMemory(&adapter, sizeof(adapter)); + adapter.cb = sizeof(adapter); + + if (!EnumDisplayDevicesW(NULL, adapterIndex, &adapter, 0)) + break; + + if (!(adapter.StateFlags & DISPLAY_DEVICE_ACTIVE)) + continue; + + if (adapter.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE) + type = _GLFW_INSERT_FIRST; + + for (displayIndex = 0; ; displayIndex++) + { + ZeroMemory(&display, sizeof(display)); + display.cb = sizeof(display); + + if (!EnumDisplayDevicesW(adapter.DeviceName, displayIndex, &display, 0)) + break; + + if (!(display.StateFlags & DISPLAY_DEVICE_ACTIVE)) + continue; + + for (i = 0; i < disconnectedCount; i++) + { + if (disconnected[i] && + wcscmp(disconnected[i]->win32.displayName, + display.DeviceName) == 0) + { + disconnected[i] = NULL; + // handle may have changed, update + EnumDisplayMonitors(NULL, NULL, monitorCallback, (LPARAM) _glfw.monitors[i]); + break; + } + } + + if (i < disconnectedCount) + continue; + + monitor = createMonitor(&adapter, &display); + if (!monitor) + { + _glfw_free(disconnected); + return; + } + + _glfwInputMonitor(monitor, GLFW_CONNECTED, type); + + type = _GLFW_INSERT_LAST; + } + + // HACK: If an active adapter does not have any display devices + // (as sometimes happens), add it directly as a monitor + if (displayIndex == 0) + { + for (i = 0; i < disconnectedCount; i++) + { + if (disconnected[i] && + wcscmp(disconnected[i]->win32.adapterName, + adapter.DeviceName) == 0) + { + disconnected[i] = NULL; + break; + } + } + + if (i < disconnectedCount) + continue; + + monitor = createMonitor(&adapter, NULL); + if (!monitor) + { + _glfw_free(disconnected); + return; + } + + _glfwInputMonitor(monitor, GLFW_CONNECTED, type); + } + } + + for (i = 0; i < disconnectedCount; i++) + { + if (disconnected[i]) + _glfwInputMonitor(disconnected[i], GLFW_DISCONNECTED, 0); + } + + _glfw_free(disconnected); +} + +// Change the current video mode +// +void _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired) +{ + GLFWvidmode current; + const GLFWvidmode* best; + DEVMODEW dm; + LONG result; + + best = _glfwChooseVideoMode(monitor, desired); + _glfwGetVideoModeWin32(monitor, ¤t); + if (_glfwCompareVideoModes(¤t, best) == 0) + return; + + ZeroMemory(&dm, sizeof(dm)); + dm.dmSize = sizeof(dm); + dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | + DM_DISPLAYFREQUENCY; + dm.dmPelsWidth = best->width; + dm.dmPelsHeight = best->height; + dm.dmBitsPerPel = best->redBits + best->greenBits + best->blueBits; + dm.dmDisplayFrequency = best->refreshRate; + + if (dm.dmBitsPerPel < 15 || dm.dmBitsPerPel >= 24) + dm.dmBitsPerPel = 32; + + result = ChangeDisplaySettingsExW(monitor->win32.adapterName, + &dm, + NULL, + CDS_FULLSCREEN, + NULL); + if (result == DISP_CHANGE_SUCCESSFUL) + monitor->win32.modeChanged = GLFW_TRUE; + else + { + const char* description = "Unknown error"; + + if (result == DISP_CHANGE_BADDUALVIEW) + description = "The system uses DualView"; + else if (result == DISP_CHANGE_BADFLAGS) + description = "Invalid flags"; + else if (result == DISP_CHANGE_BADMODE) + description = "Graphics mode not supported"; + else if (result == DISP_CHANGE_BADPARAM) + description = "Invalid parameter"; + else if (result == DISP_CHANGE_FAILED) + description = "Graphics mode failed"; + else if (result == DISP_CHANGE_NOTUPDATED) + description = "Failed to write to registry"; + else if (result == DISP_CHANGE_RESTART) + description = "Computer restart required"; + + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to set video mode: %s", + description); + } +} + +// Restore the previously saved (original) video mode +// +void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor) +{ + if (monitor->win32.modeChanged) + { + ChangeDisplaySettingsExW(monitor->win32.adapterName, + NULL, NULL, CDS_FULLSCREEN, NULL); + monitor->win32.modeChanged = GLFW_FALSE; + } +} + +void _glfwGetHMONITORContentScaleWin32(HMONITOR handle, float* xscale, float* yscale) +{ + UINT xdpi, ydpi; + + if (xscale) + *xscale = 0.f; + if (yscale) + *yscale = 0.f; + + if (IsWindows8Point1OrGreater()) + { + if (GetDpiForMonitor(handle, MDT_EFFECTIVE_DPI, &xdpi, &ydpi) != S_OK) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to query monitor DPI"); + return; + } + } + else + { + const HDC dc = GetDC(NULL); + xdpi = GetDeviceCaps(dc, LOGPIXELSX); + ydpi = GetDeviceCaps(dc, LOGPIXELSY); + ReleaseDC(NULL, dc); + } + + if (xscale) + *xscale = xdpi / (float) USER_DEFAULT_SCREEN_DPI; + if (yscale) + *yscale = ydpi / (float) USER_DEFAULT_SCREEN_DPI; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwFreeMonitorWin32(_GLFWmonitor* monitor) +{ +} + +void _glfwGetMonitorPosWin32(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + DEVMODEW dm; + ZeroMemory(&dm, sizeof(dm)); + dm.dmSize = sizeof(dm); + + EnumDisplaySettingsExW(monitor->win32.adapterName, + ENUM_CURRENT_SETTINGS, + &dm, + EDS_ROTATEDMODE); + + if (xpos) + *xpos = dm.dmPosition.x; + if (ypos) + *ypos = dm.dmPosition.y; +} + +void _glfwGetMonitorContentScaleWin32(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + _glfwGetHMONITORContentScaleWin32(monitor->win32.handle, xscale, yscale); +} + +void _glfwGetMonitorWorkareaWin32(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + MONITORINFO mi = { sizeof(mi) }; + GetMonitorInfoW(monitor->win32.handle, &mi); + + if (xpos) + *xpos = mi.rcWork.left; + if (ypos) + *ypos = mi.rcWork.top; + if (width) + *width = mi.rcWork.right - mi.rcWork.left; + if (height) + *height = mi.rcWork.bottom - mi.rcWork.top; +} + +GLFWvidmode* _glfwGetVideoModesWin32(_GLFWmonitor* monitor, int* count) +{ + int modeIndex = 0, size = 0; + GLFWvidmode* result = NULL; + + *count = 0; + + for (;;) + { + int i; + GLFWvidmode mode; + DEVMODEW dm; + + ZeroMemory(&dm, sizeof(dm)); + dm.dmSize = sizeof(dm); + + if (!EnumDisplaySettingsW(monitor->win32.adapterName, modeIndex, &dm)) + break; + + modeIndex++; + + // Skip modes with less than 15 BPP + if (dm.dmBitsPerPel < 15) + continue; + + mode.width = dm.dmPelsWidth; + mode.height = dm.dmPelsHeight; + mode.refreshRate = dm.dmDisplayFrequency; + _glfwSplitBPP(dm.dmBitsPerPel, + &mode.redBits, + &mode.greenBits, + &mode.blueBits); + + for (i = 0; i < *count; i++) + { + if (_glfwCompareVideoModes(result + i, &mode) == 0) + break; + } + + // Skip duplicate modes + if (i < *count) + continue; + + if (monitor->win32.modesPruned) + { + // Skip modes not supported by the connected displays + if (ChangeDisplaySettingsExW(monitor->win32.adapterName, + &dm, + NULL, + CDS_TEST, + NULL) != DISP_CHANGE_SUCCESSFUL) + { + continue; + } + } + + if (*count == size) + { + size += 128; + result = (GLFWvidmode*) _glfw_realloc(result, size * sizeof(GLFWvidmode)); + } + + (*count)++; + result[*count - 1] = mode; + } + + if (!*count) + { + // HACK: Report the current mode if no valid modes were found + result = _glfw_calloc(1, sizeof(GLFWvidmode)); + _glfwGetVideoModeWin32(monitor, result); + *count = 1; + } + + return result; +} + +void _glfwGetVideoModeWin32(_GLFWmonitor* monitor, GLFWvidmode* mode) +{ + DEVMODEW dm; + ZeroMemory(&dm, sizeof(dm)); + dm.dmSize = sizeof(dm); + + EnumDisplaySettingsW(monitor->win32.adapterName, ENUM_CURRENT_SETTINGS, &dm); + + mode->width = dm.dmPelsWidth; + mode->height = dm.dmPelsHeight; + mode->refreshRate = dm.dmDisplayFrequency; + _glfwSplitBPP(dm.dmBitsPerPel, + &mode->redBits, + &mode->greenBits, + &mode->blueBits); +} + +GLFWbool _glfwGetGammaRampWin32(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + HDC dc; + WORD values[3][256]; + + dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); + GetDeviceGammaRamp(dc, values); + DeleteDC(dc); + + _glfwAllocGammaArrays(ramp, 256); + + memcpy(ramp->red, values[0], sizeof(values[0])); + memcpy(ramp->green, values[1], sizeof(values[1])); + memcpy(ramp->blue, values[2], sizeof(values[2])); + + return GLFW_TRUE; +} + +void _glfwSetGammaRampWin32(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ + HDC dc; + WORD values[3][256]; + + if (ramp->size != 256) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Gamma ramp size must be 256"); + return; + } + + memcpy(values[0], ramp->red, sizeof(values[0])); + memcpy(values[1], ramp->green, sizeof(values[1])); + memcpy(values[2], ramp->blue, sizeof(values[2])); + + dc = CreateDCW(L"DISPLAY", monitor->win32.adapterName, NULL, NULL); + SetDeviceGammaRamp(dc, values); + DeleteDC(dc); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->win32.publicAdapterName; +} + +GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->win32.publicDisplayName; +} + diff --git a/thirdparty/imgui_suite/glfw/src/win32_platform.h b/thirdparty/imgui_suite/glfw/src/win32_platform.h new file mode 100644 index 00000000000..82b34bb9dc4 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_platform.h @@ -0,0 +1,624 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +// We don't need all the fancy stuff +#ifndef NOMINMAX + #define NOMINMAX +#endif + +#ifndef VC_EXTRALEAN + #define VC_EXTRALEAN +#endif + +#ifndef WIN32_LEAN_AND_MEAN + #define WIN32_LEAN_AND_MEAN +#endif + +// This is a workaround for the fact that glfw3.h needs to export APIENTRY (for +// example to allow applications to correctly declare a GL_KHR_debug callback) +// but windows.h assumes no one will define APIENTRY before it does +#undef APIENTRY + +// GLFW on Windows is Unicode only and does not work in MBCS mode +#ifndef UNICODE + #define UNICODE +#endif + +// GLFW requires Windows XP or later +#if WINVER < 0x0501 + #undef WINVER + #define WINVER 0x0501 +#endif +#if _WIN32_WINNT < 0x0501 + #undef _WIN32_WINNT + #define _WIN32_WINNT 0x0501 +#endif + +// GLFW uses DirectInput8 interfaces +#define DIRECTINPUT_VERSION 0x0800 + +// GLFW uses OEM cursor resources +#define OEMRESOURCE + +#include +#include +#include +#include +#include + +// HACK: Define macros that some windows.h variants don't +#ifndef WM_MOUSEHWHEEL + #define WM_MOUSEHWHEEL 0x020E +#endif +#ifndef WM_DWMCOMPOSITIONCHANGED + #define WM_DWMCOMPOSITIONCHANGED 0x031E +#endif +#ifndef WM_DWMCOLORIZATIONCOLORCHANGED + #define WM_DWMCOLORIZATIONCOLORCHANGED 0x0320 +#endif +#ifndef WM_COPYGLOBALDATA + #define WM_COPYGLOBALDATA 0x0049 +#endif +#ifndef WM_UNICHAR + #define WM_UNICHAR 0x0109 +#endif +#ifndef UNICODE_NOCHAR + #define UNICODE_NOCHAR 0xFFFF +#endif +#ifndef WM_DPICHANGED + #define WM_DPICHANGED 0x02E0 +#endif +#ifndef GET_XBUTTON_WPARAM + #define GET_XBUTTON_WPARAM(w) (HIWORD(w)) +#endif +#ifndef EDS_ROTATEDMODE + #define EDS_ROTATEDMODE 0x00000004 +#endif +#ifndef DISPLAY_DEVICE_ACTIVE + #define DISPLAY_DEVICE_ACTIVE 0x00000001 +#endif +#ifndef _WIN32_WINNT_WINBLUE + #define _WIN32_WINNT_WINBLUE 0x0603 +#endif +#ifndef _WIN32_WINNT_WIN8 + #define _WIN32_WINNT_WIN8 0x0602 +#endif +#ifndef WM_GETDPISCALEDSIZE + #define WM_GETDPISCALEDSIZE 0x02e4 +#endif +#ifndef USER_DEFAULT_SCREEN_DPI + #define USER_DEFAULT_SCREEN_DPI 96 +#endif +#ifndef OCR_HAND + #define OCR_HAND 32649 +#endif + +#if WINVER < 0x0601 +typedef struct +{ + DWORD cbSize; + DWORD ExtStatus; +} CHANGEFILTERSTRUCT; +#ifndef MSGFLT_ALLOW + #define MSGFLT_ALLOW 1 +#endif +#endif /*Windows 7*/ + +#if WINVER < 0x0600 +#define DWM_BB_ENABLE 0x00000001 +#define DWM_BB_BLURREGION 0x00000002 +typedef struct +{ + DWORD dwFlags; + BOOL fEnable; + HRGN hRgnBlur; + BOOL fTransitionOnMaximized; +} DWM_BLURBEHIND; +#else + #include +#endif /*Windows Vista*/ + +#ifndef DPI_ENUMS_DECLARED +typedef enum +{ + PROCESS_DPI_UNAWARE = 0, + PROCESS_SYSTEM_DPI_AWARE = 1, + PROCESS_PER_MONITOR_DPI_AWARE = 2 +} PROCESS_DPI_AWARENESS; +typedef enum +{ + MDT_EFFECTIVE_DPI = 0, + MDT_ANGULAR_DPI = 1, + MDT_RAW_DPI = 2, + MDT_DEFAULT = MDT_EFFECTIVE_DPI +} MONITOR_DPI_TYPE; +#endif /*DPI_ENUMS_DECLARED*/ + +#ifndef DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((HANDLE) -4) +#endif /*DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2*/ + +// Replacement for versionhelpers.h macros, as we cannot rely on the +// application having a correct embedded manifest +// +#define IsWindowsVistaOrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_VISTA), \ + LOBYTE(_WIN32_WINNT_VISTA), 0) +#define IsWindows7OrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WIN7), \ + LOBYTE(_WIN32_WINNT_WIN7), 0) +#define IsWindows8OrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WIN8), \ + LOBYTE(_WIN32_WINNT_WIN8), 0) +#define IsWindows8Point1OrGreater() \ + _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WINBLUE), \ + LOBYTE(_WIN32_WINNT_WINBLUE), 0) + +// Windows 10 Anniversary Update +#define _glfwIsWindows10Version1607OrGreaterWin32() \ + _glfwIsWindows10BuildOrGreaterWin32(14393) +// Windows 10 Creators Update +#define _glfwIsWindows10Version1703OrGreaterWin32() \ + _glfwIsWindows10BuildOrGreaterWin32(15063) + +// HACK: Define macros that some xinput.h variants don't +#ifndef XINPUT_CAPS_WIRELESS + #define XINPUT_CAPS_WIRELESS 0x0002 +#endif +#ifndef XINPUT_DEVSUBTYPE_WHEEL + #define XINPUT_DEVSUBTYPE_WHEEL 0x02 +#endif +#ifndef XINPUT_DEVSUBTYPE_ARCADE_STICK + #define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 +#endif +#ifndef XINPUT_DEVSUBTYPE_FLIGHT_STICK + #define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 +#endif +#ifndef XINPUT_DEVSUBTYPE_DANCE_PAD + #define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 +#endif +#ifndef XINPUT_DEVSUBTYPE_GUITAR + #define XINPUT_DEVSUBTYPE_GUITAR 0x06 +#endif +#ifndef XINPUT_DEVSUBTYPE_DRUM_KIT + #define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 +#endif +#ifndef XINPUT_DEVSUBTYPE_ARCADE_PAD + #define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 +#endif +#ifndef XUSER_MAX_COUNT + #define XUSER_MAX_COUNT 4 +#endif + +// HACK: Define macros that some dinput.h variants don't +#ifndef DIDFT_OPTIONAL + #define DIDFT_OPTIONAL 0x80000000 +#endif + +#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 +#define WGL_SUPPORT_OPENGL_ARB 0x2010 +#define WGL_DRAW_TO_WINDOW_ARB 0x2001 +#define WGL_PIXEL_TYPE_ARB 0x2013 +#define WGL_TYPE_RGBA_ARB 0x202b +#define WGL_ACCELERATION_ARB 0x2003 +#define WGL_NO_ACCELERATION_ARB 0x2025 +#define WGL_RED_BITS_ARB 0x2015 +#define WGL_RED_SHIFT_ARB 0x2016 +#define WGL_GREEN_BITS_ARB 0x2017 +#define WGL_GREEN_SHIFT_ARB 0x2018 +#define WGL_BLUE_BITS_ARB 0x2019 +#define WGL_BLUE_SHIFT_ARB 0x201a +#define WGL_ALPHA_BITS_ARB 0x201b +#define WGL_ALPHA_SHIFT_ARB 0x201c +#define WGL_ACCUM_BITS_ARB 0x201d +#define WGL_ACCUM_RED_BITS_ARB 0x201e +#define WGL_ACCUM_GREEN_BITS_ARB 0x201f +#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 +#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 +#define WGL_DEPTH_BITS_ARB 0x2022 +#define WGL_STENCIL_BITS_ARB 0x2023 +#define WGL_AUX_BUFFERS_ARB 0x2024 +#define WGL_STEREO_ARB 0x2012 +#define WGL_DOUBLE_BUFFER_ARB 0x2011 +#define WGL_SAMPLES_ARB 0x2042 +#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20a9 +#define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 +#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 +#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 +#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 +#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 +#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 +#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 +#define WGL_CONTEXT_FLAGS_ARB 0x2094 +#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 +#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 +#define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 +#define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 +#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 +#define WGL_CONTEXT_OPENGL_NO_ERROR_ARB 0x31b3 +#define WGL_COLORSPACE_EXT 0x309d +#define WGL_COLORSPACE_SRGB_EXT 0x3089 + +#define ERROR_INVALID_VERSION_ARB 0x2095 +#define ERROR_INVALID_PROFILE_ARB 0x2096 +#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 + +// xinput.dll function pointer typedefs +typedef DWORD (WINAPI * PFN_XInputGetCapabilities)(DWORD,DWORD,XINPUT_CAPABILITIES*); +typedef DWORD (WINAPI * PFN_XInputGetState)(DWORD,XINPUT_STATE*); +#define XInputGetCapabilities _glfw.win32.xinput.GetCapabilities +#define XInputGetState _glfw.win32.xinput.GetState + +// dinput8.dll function pointer typedefs +typedef HRESULT (WINAPI * PFN_DirectInput8Create)(HINSTANCE,DWORD,REFIID,LPVOID*,LPUNKNOWN); +#define DirectInput8Create _glfw.win32.dinput8.Create + +// user32.dll function pointer typedefs +typedef BOOL (WINAPI * PFN_SetProcessDPIAware)(void); +typedef BOOL (WINAPI * PFN_ChangeWindowMessageFilterEx)(HWND,UINT,DWORD,CHANGEFILTERSTRUCT*); +typedef BOOL (WINAPI * PFN_EnableNonClientDpiScaling)(HWND); +typedef BOOL (WINAPI * PFN_SetProcessDpiAwarenessContext)(HANDLE); +typedef UINT (WINAPI * PFN_GetDpiForWindow)(HWND); +typedef BOOL (WINAPI * PFN_AdjustWindowRectExForDpi)(LPRECT,DWORD,BOOL,DWORD,UINT); +typedef int (WINAPI * PFN_GetSystemMetricsForDpi)(int,UINT); +#define SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_ +#define ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_ +#define EnableNonClientDpiScaling _glfw.win32.user32.EnableNonClientDpiScaling_ +#define SetProcessDpiAwarenessContext _glfw.win32.user32.SetProcessDpiAwarenessContext_ +#define GetDpiForWindow _glfw.win32.user32.GetDpiForWindow_ +#define AdjustWindowRectExForDpi _glfw.win32.user32.AdjustWindowRectExForDpi_ +#define GetSystemMetricsForDpi _glfw.win32.user32.GetSystemMetricsForDpi_ + +// dwmapi.dll function pointer typedefs +typedef HRESULT (WINAPI * PFN_DwmIsCompositionEnabled)(BOOL*); +typedef HRESULT (WINAPI * PFN_DwmFlush)(VOID); +typedef HRESULT(WINAPI * PFN_DwmEnableBlurBehindWindow)(HWND,const DWM_BLURBEHIND*); +typedef HRESULT (WINAPI * PFN_DwmGetColorizationColor)(DWORD*,BOOL*); +#define DwmIsCompositionEnabled _glfw.win32.dwmapi.IsCompositionEnabled +#define DwmFlush _glfw.win32.dwmapi.Flush +#define DwmEnableBlurBehindWindow _glfw.win32.dwmapi.EnableBlurBehindWindow +#define DwmGetColorizationColor _glfw.win32.dwmapi.GetColorizationColor + +// shcore.dll function pointer typedefs +typedef HRESULT (WINAPI * PFN_SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS); +typedef HRESULT (WINAPI * PFN_GetDpiForMonitor)(HMONITOR,MONITOR_DPI_TYPE,UINT*,UINT*); +#define SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness_ +#define GetDpiForMonitor _glfw.win32.shcore.GetDpiForMonitor_ + +// ntdll.dll function pointer typedefs +typedef LONG (WINAPI * PFN_RtlVerifyVersionInfo)(OSVERSIONINFOEXW*,ULONG,ULONGLONG); +#define RtlVerifyVersionInfo _glfw.win32.ntdll.RtlVerifyVersionInfo_ + +// WGL extension pointer typedefs +typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC)(int); +typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC)(HDC,int,int,UINT,const int*,int*); +typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void); +typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC); +typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC,HGLRC,const int*); +#define wglSwapIntervalEXT _glfw.wgl.SwapIntervalEXT +#define wglGetPixelFormatAttribivARB _glfw.wgl.GetPixelFormatAttribivARB +#define wglGetExtensionsStringEXT _glfw.wgl.GetExtensionsStringEXT +#define wglGetExtensionsStringARB _glfw.wgl.GetExtensionsStringARB +#define wglCreateContextAttribsARB _glfw.wgl.CreateContextAttribsARB + +// opengl32.dll function pointer typedefs +typedef HGLRC (WINAPI * PFN_wglCreateContext)(HDC); +typedef BOOL (WINAPI * PFN_wglDeleteContext)(HGLRC); +typedef PROC (WINAPI * PFN_wglGetProcAddress)(LPCSTR); +typedef HDC (WINAPI * PFN_wglGetCurrentDC)(void); +typedef HGLRC (WINAPI * PFN_wglGetCurrentContext)(void); +typedef BOOL (WINAPI * PFN_wglMakeCurrent)(HDC,HGLRC); +typedef BOOL (WINAPI * PFN_wglShareLists)(HGLRC,HGLRC); +#define wglCreateContext _glfw.wgl.CreateContext +#define wglDeleteContext _glfw.wgl.DeleteContext +#define wglGetProcAddress _glfw.wgl.GetProcAddress +#define wglGetCurrentDC _glfw.wgl.GetCurrentDC +#define wglGetCurrentContext _glfw.wgl.GetCurrentContext +#define wglMakeCurrent _glfw.wgl.MakeCurrent +#define wglShareLists _glfw.wgl.ShareLists + +typedef VkFlags VkWin32SurfaceCreateFlagsKHR; + +typedef struct VkWin32SurfaceCreateInfoKHR +{ + VkStructureType sType; + const void* pNext; + VkWin32SurfaceCreateFlagsKHR flags; + HINSTANCE hinstance; + HWND hwnd; +} VkWin32SurfaceCreateInfoKHR; + +typedef VkResult (APIENTRY *PFN_vkCreateWin32SurfaceKHR)(VkInstance,const VkWin32SurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice,uint32_t); + +#define GLFW_WIN32_WINDOW_STATE _GLFWwindowWin32 win32; +#define GLFW_WIN32_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32; +#define GLFW_WIN32_MONITOR_STATE _GLFWmonitorWin32 win32; +#define GLFW_WIN32_CURSOR_STATE _GLFWcursorWin32 win32; + +#define GLFW_WGL_CONTEXT_STATE _GLFWcontextWGL wgl; +#define GLFW_WGL_LIBRARY_CONTEXT_STATE _GLFWlibraryWGL wgl; + + +// WGL-specific per-context data +// +typedef struct _GLFWcontextWGL +{ + HDC dc; + HGLRC handle; + int interval; +} _GLFWcontextWGL; + +// WGL-specific global data +// +typedef struct _GLFWlibraryWGL +{ + HINSTANCE instance; + PFN_wglCreateContext CreateContext; + PFN_wglDeleteContext DeleteContext; + PFN_wglGetProcAddress GetProcAddress; + PFN_wglGetCurrentDC GetCurrentDC; + PFN_wglGetCurrentContext GetCurrentContext; + PFN_wglMakeCurrent MakeCurrent; + PFN_wglShareLists ShareLists; + + PFNWGLSWAPINTERVALEXTPROC SwapIntervalEXT; + PFNWGLGETPIXELFORMATATTRIBIVARBPROC GetPixelFormatAttribivARB; + PFNWGLGETEXTENSIONSSTRINGEXTPROC GetExtensionsStringEXT; + PFNWGLGETEXTENSIONSSTRINGARBPROC GetExtensionsStringARB; + PFNWGLCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; + GLFWbool EXT_swap_control; + GLFWbool EXT_colorspace; + GLFWbool ARB_multisample; + GLFWbool ARB_framebuffer_sRGB; + GLFWbool EXT_framebuffer_sRGB; + GLFWbool ARB_pixel_format; + GLFWbool ARB_create_context; + GLFWbool ARB_create_context_profile; + GLFWbool EXT_create_context_es2_profile; + GLFWbool ARB_create_context_robustness; + GLFWbool ARB_create_context_no_error; + GLFWbool ARB_context_flush_control; +} _GLFWlibraryWGL; + +// Win32-specific per-window data +// +typedef struct _GLFWwindowWin32 +{ + HWND handle; + HICON bigIcon; + HICON smallIcon; + + GLFWbool cursorTracked; + GLFWbool frameAction; + GLFWbool iconified; + GLFWbool maximized; + // Whether to enable framebuffer transparency on DWM + GLFWbool transparent; + GLFWbool scaleToMonitor; + GLFWbool keymenu; + + // Cached size used to filter out duplicate events + int width, height; + + // The last received cursor position, regardless of source + int lastCursorPosX, lastCursorPosY; + // The last received high surrogate when decoding pairs of UTF-16 messages + WCHAR highSurrogate; +} _GLFWwindowWin32; + +// Win32-specific global data +// +typedef struct _GLFWlibraryWin32 +{ + HINSTANCE instance; + HWND helperWindowHandle; + ATOM helperWindowClass; + ATOM mainWindowClass; + HDEVNOTIFY deviceNotificationHandle; + int acquiredMonitorCount; + char* clipboardString; + short int keycodes[512]; + short int scancodes[GLFW_KEY_LAST + 1]; + char keynames[GLFW_KEY_LAST + 1][5]; + // Where to place the cursor when re-enabled + double restoreCursorPosX, restoreCursorPosY; + // The window whose disabled cursor mode is active + _GLFWwindow* disabledCursorWindow; + // The window the cursor is captured in + _GLFWwindow* capturedCursorWindow; + RAWINPUT* rawInput; + int rawInputSize; + UINT mouseTrailSize; + + struct { + HINSTANCE instance; + PFN_DirectInput8Create Create; + IDirectInput8W* api; + } dinput8; + + struct { + HINSTANCE instance; + PFN_XInputGetCapabilities GetCapabilities; + PFN_XInputGetState GetState; + } xinput; + + struct { + HINSTANCE instance; + PFN_SetProcessDPIAware SetProcessDPIAware_; + PFN_ChangeWindowMessageFilterEx ChangeWindowMessageFilterEx_; + PFN_EnableNonClientDpiScaling EnableNonClientDpiScaling_; + PFN_SetProcessDpiAwarenessContext SetProcessDpiAwarenessContext_; + PFN_GetDpiForWindow GetDpiForWindow_; + PFN_AdjustWindowRectExForDpi AdjustWindowRectExForDpi_; + PFN_GetSystemMetricsForDpi GetSystemMetricsForDpi_; + } user32; + + struct { + HINSTANCE instance; + PFN_DwmIsCompositionEnabled IsCompositionEnabled; + PFN_DwmFlush Flush; + PFN_DwmEnableBlurBehindWindow EnableBlurBehindWindow; + PFN_DwmGetColorizationColor GetColorizationColor; + } dwmapi; + + struct { + HINSTANCE instance; + PFN_SetProcessDpiAwareness SetProcessDpiAwareness_; + PFN_GetDpiForMonitor GetDpiForMonitor_; + } shcore; + + struct { + HINSTANCE instance; + PFN_RtlVerifyVersionInfo RtlVerifyVersionInfo_; + } ntdll; +} _GLFWlibraryWin32; + +// Win32-specific per-monitor data +// +typedef struct _GLFWmonitorWin32 +{ + HMONITOR handle; + // This size matches the static size of DISPLAY_DEVICE.DeviceName + WCHAR adapterName[32]; + WCHAR displayName[32]; + char publicAdapterName[32]; + char publicDisplayName[32]; + GLFWbool modesPruned; + GLFWbool modeChanged; +} _GLFWmonitorWin32; + +// Win32-specific per-cursor data +// +typedef struct _GLFWcursorWin32 +{ + HCURSOR handle; +} _GLFWcursorWin32; + + +GLFWbool _glfwConnectWin32(int platformID, _GLFWplatform* platform); +int _glfwInitWin32(void); +void _glfwTerminateWin32(void); + +WCHAR* _glfwCreateWideStringFromUTF8Win32(const char* source); +char* _glfwCreateUTF8FromWideStringWin32(const WCHAR* source); +BOOL _glfwIsWindowsVersionOrGreaterWin32(WORD major, WORD minor, WORD sp); +BOOL _glfwIsWindows10BuildOrGreaterWin32(WORD build); +void _glfwInputErrorWin32(int error, const char* description); +void _glfwUpdateKeyNamesWin32(void); + +void _glfwPollMonitorsWin32(void); +void _glfwSetVideoModeWin32(_GLFWmonitor* monitor, const GLFWvidmode* desired); +void _glfwRestoreVideoModeWin32(_GLFWmonitor* monitor); +void _glfwGetHMONITORContentScaleWin32(HMONITOR handle, float* xscale, float* yscale); + +GLFWbool _glfwCreateWindowWin32(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig); +void _glfwDestroyWindowWin32(_GLFWwindow* window); +void _glfwSetWindowTitleWin32(_GLFWwindow* window, const char* title); +void _glfwSetWindowIconWin32(_GLFWwindow* window, int count, const GLFWimage* images); +void _glfwGetWindowPosWin32(_GLFWwindow* window, int* xpos, int* ypos); +void _glfwSetWindowPosWin32(_GLFWwindow* window, int xpos, int ypos); +void _glfwGetWindowSizeWin32(_GLFWwindow* window, int* width, int* height); +void _glfwSetWindowSizeWin32(_GLFWwindow* window, int width, int height); +void _glfwSetWindowSizeLimitsWin32(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); +void _glfwSetWindowAspectRatioWin32(_GLFWwindow* window, int numer, int denom); +void _glfwGetFramebufferSizeWin32(_GLFWwindow* window, int* width, int* height); +void _glfwGetWindowFrameSizeWin32(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); +void _glfwGetWindowContentScaleWin32(_GLFWwindow* window, float* xscale, float* yscale); +void _glfwIconifyWindowWin32(_GLFWwindow* window); +void _glfwRestoreWindowWin32(_GLFWwindow* window); +void _glfwMaximizeWindowWin32(_GLFWwindow* window); +void _glfwShowWindowWin32(_GLFWwindow* window); +void _glfwHideWindowWin32(_GLFWwindow* window); +void _glfwRequestWindowAttentionWin32(_GLFWwindow* window); +void _glfwFocusWindowWin32(_GLFWwindow* window); +void _glfwSetWindowMonitorWin32(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); +GLFWbool _glfwWindowFocusedWin32(_GLFWwindow* window); +GLFWbool _glfwWindowIconifiedWin32(_GLFWwindow* window); +GLFWbool _glfwWindowVisibleWin32(_GLFWwindow* window); +GLFWbool _glfwWindowMaximizedWin32(_GLFWwindow* window); +GLFWbool _glfwWindowHoveredWin32(_GLFWwindow* window); +GLFWbool _glfwFramebufferTransparentWin32(_GLFWwindow* window); +void _glfwSetWindowResizableWin32(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowDecoratedWin32(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowFloatingWin32(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowMousePassthroughWin32(_GLFWwindow* window, GLFWbool enabled); +float _glfwGetWindowOpacityWin32(_GLFWwindow* window); +void _glfwSetWindowOpacityWin32(_GLFWwindow* window, float opacity); + +void _glfwSetRawMouseMotionWin32(_GLFWwindow *window, GLFWbool enabled); +GLFWbool _glfwRawMouseMotionSupportedWin32(void); + +void _glfwPollEventsWin32(void); +void _glfwWaitEventsWin32(void); +void _glfwWaitEventsTimeoutWin32(double timeout); +void _glfwPostEmptyEventWin32(void); + +void _glfwGetCursorPosWin32(_GLFWwindow* window, double* xpos, double* ypos); +void _glfwSetCursorPosWin32(_GLFWwindow* window, double xpos, double ypos); +void _glfwSetCursorModeWin32(_GLFWwindow* window, int mode); +const char* _glfwGetScancodeNameWin32(int scancode); +int _glfwGetKeyScancodeWin32(int key); +GLFWbool _glfwCreateCursorWin32(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); +GLFWbool _glfwCreateStandardCursorWin32(_GLFWcursor* cursor, int shape); +void _glfwDestroyCursorWin32(_GLFWcursor* cursor); +void _glfwSetCursorWin32(_GLFWwindow* window, _GLFWcursor* cursor); +void _glfwSetClipboardStringWin32(const char* string); +const char* _glfwGetClipboardStringWin32(void); + +EGLenum _glfwGetEGLPlatformWin32(EGLint** attribs); +EGLNativeDisplayType _glfwGetEGLNativeDisplayWin32(void); +EGLNativeWindowType _glfwGetEGLNativeWindowWin32(_GLFWwindow* window); + +void _glfwGetRequiredInstanceExtensionsWin32(char** extensions); +GLFWbool _glfwGetPhysicalDevicePresentationSupportWin32(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); +VkResult _glfwCreateWindowSurfaceWin32(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); + +void _glfwFreeMonitorWin32(_GLFWmonitor* monitor); +void _glfwGetMonitorPosWin32(_GLFWmonitor* monitor, int* xpos, int* ypos); +void _glfwGetMonitorContentScaleWin32(_GLFWmonitor* monitor, float* xscale, float* yscale); +void _glfwGetMonitorWorkareaWin32(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); +GLFWvidmode* _glfwGetVideoModesWin32(_GLFWmonitor* monitor, int* count); +void _glfwGetVideoModeWin32(_GLFWmonitor* monitor, GLFWvidmode* mode); +GLFWbool _glfwGetGammaRampWin32(_GLFWmonitor* monitor, GLFWgammaramp* ramp); +void _glfwSetGammaRampWin32(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +GLFWbool _glfwInitJoysticksWin32(void); +void _glfwTerminateJoysticksWin32(void); +GLFWbool _glfwPollJoystickWin32(_GLFWjoystick* js, int mode); +const char* _glfwGetMappingNameWin32(void); +void _glfwUpdateGamepadGUIDWin32(char* guid); + +GLFWbool _glfwInitWGL(void); +void _glfwTerminateWGL(void); +GLFWbool _glfwCreateContextWGL(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig); + diff --git a/thirdparty/imgui_suite/glfw/src/win32_thread.c b/thirdparty/imgui_suite/glfw/src/win32_thread.c new file mode 100644 index 00000000000..35b8f99ebe4 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_thread.c @@ -0,0 +1,98 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwPlatformCreateTls(_GLFWtls* tls) +{ + assert(tls->win32.allocated == GLFW_FALSE); + + tls->win32.index = TlsAlloc(); + if (tls->win32.index == TLS_OUT_OF_INDEXES) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Failed to allocate TLS index"); + return GLFW_FALSE; + } + + tls->win32.allocated = GLFW_TRUE; + return GLFW_TRUE; +} + +void _glfwPlatformDestroyTls(_GLFWtls* tls) +{ + if (tls->win32.allocated) + TlsFree(tls->win32.index); + memset(tls, 0, sizeof(_GLFWtls)); +} + +void* _glfwPlatformGetTls(_GLFWtls* tls) +{ + assert(tls->win32.allocated == GLFW_TRUE); + return TlsGetValue(tls->win32.index); +} + +void _glfwPlatformSetTls(_GLFWtls* tls, void* value) +{ + assert(tls->win32.allocated == GLFW_TRUE); + TlsSetValue(tls->win32.index, value); +} + +GLFWbool _glfwPlatformCreateMutex(_GLFWmutex* mutex) +{ + assert(mutex->win32.allocated == GLFW_FALSE); + InitializeCriticalSection(&mutex->win32.section); + return mutex->win32.allocated = GLFW_TRUE; +} + +void _glfwPlatformDestroyMutex(_GLFWmutex* mutex) +{ + if (mutex->win32.allocated) + DeleteCriticalSection(&mutex->win32.section); + memset(mutex, 0, sizeof(_GLFWmutex)); +} + +void _glfwPlatformLockMutex(_GLFWmutex* mutex) +{ + assert(mutex->win32.allocated == GLFW_TRUE); + EnterCriticalSection(&mutex->win32.section); +} + +void _glfwPlatformUnlockMutex(_GLFWmutex* mutex) +{ + assert(mutex->win32.allocated == GLFW_TRUE); + LeaveCriticalSection(&mutex->win32.section); +} + diff --git a/thirdparty/imgui_suite/glfw/src/win32_thread.h b/thirdparty/imgui_suite/glfw/src/win32_thread.h new file mode 100644 index 00000000000..4b5a696f891 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_thread.h @@ -0,0 +1,48 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include + +#define GLFW_WIN32_TLS_STATE _GLFWtlsWin32 win32; +#define GLFW_WIN32_MUTEX_STATE _GLFWmutexWin32 win32; + +// Win32-specific thread local storage data +// +typedef struct _GLFWtlsWin32 +{ + GLFWbool allocated; + DWORD index; +} _GLFWtlsWin32; + +// Win32-specific mutex data +// +typedef struct _GLFWmutexWin32 +{ + GLFWbool allocated; + CRITICAL_SECTION section; +} _GLFWmutexWin32; + diff --git a/thirdparty/imgui_suite/glfw/src/win32_time.c b/thirdparty/imgui_suite/glfw/src/win32_time.c new file mode 100644 index 00000000000..a1c64141924 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_time.c @@ -0,0 +1,53 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwPlatformInitTimer(void) +{ + QueryPerformanceFrequency((LARGE_INTEGER*) &_glfw.timer.win32.frequency); +} + +uint64_t _glfwPlatformGetTimerValue(void) +{ + uint64_t value; + QueryPerformanceCounter((LARGE_INTEGER*) &value); + return value; +} + +uint64_t _glfwPlatformGetTimerFrequency(void) +{ + return _glfw.timer.win32.frequency; +} + diff --git a/thirdparty/imgui_suite/glfw/src/win32_time.h b/thirdparty/imgui_suite/glfw/src/win32_time.h new file mode 100644 index 00000000000..da5afa41e40 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_time.h @@ -0,0 +1,38 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include + +#define GLFW_WIN32_LIBRARY_TIMER_STATE _GLFWtimerWin32 win32; + +// Win32-specific global timer data +// +typedef struct _GLFWtimerWin32 +{ + uint64_t frequency; +} _GLFWtimerWin32; + diff --git a/thirdparty/imgui_suite/glfw/src/win32_window.c b/thirdparty/imgui_suite/glfw/src/win32_window.c new file mode 100644 index 00000000000..69fb6422858 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/win32_window.c @@ -0,0 +1,2512 @@ +//======================================================================== +// GLFW 3.4 Win32 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include + +// Returns the window style for the specified window +// +static DWORD getWindowStyle(const _GLFWwindow* window) +{ + DWORD style = WS_CLIPSIBLINGS | WS_CLIPCHILDREN; + + if (window->monitor) + style |= WS_POPUP; + else + { + style |= WS_SYSMENU | WS_MINIMIZEBOX; + + if (window->decorated) + { + style |= WS_CAPTION; + + if (window->resizable) + style |= WS_MAXIMIZEBOX | WS_THICKFRAME; + } + else + style |= WS_POPUP; + } + + return style; +} + +// Returns the extended window style for the specified window +// +static DWORD getWindowExStyle(const _GLFWwindow* window) +{ + DWORD style = WS_EX_APPWINDOW; + + if (window->monitor || window->floating) + style |= WS_EX_TOPMOST; + + return style; +} + +// Returns the image whose area most closely matches the desired one +// +static const GLFWimage* chooseImage(int count, const GLFWimage* images, + int width, int height) +{ + int i, leastDiff = INT_MAX; + const GLFWimage* closest = NULL; + + for (i = 0; i < count; i++) + { + const int currDiff = abs(images[i].width * images[i].height - + width * height); + if (currDiff < leastDiff) + { + closest = images + i; + leastDiff = currDiff; + } + } + + return closest; +} + +// Creates an RGBA icon or cursor +// +static HICON createIcon(const GLFWimage* image, int xhot, int yhot, GLFWbool icon) +{ + int i; + HDC dc; + HICON handle; + HBITMAP color, mask; + BITMAPV5HEADER bi; + ICONINFO ii; + unsigned char* target = NULL; + unsigned char* source = image->pixels; + + ZeroMemory(&bi, sizeof(bi)); + bi.bV5Size = sizeof(bi); + bi.bV5Width = image->width; + bi.bV5Height = -image->height; + bi.bV5Planes = 1; + bi.bV5BitCount = 32; + bi.bV5Compression = BI_BITFIELDS; + bi.bV5RedMask = 0x00ff0000; + bi.bV5GreenMask = 0x0000ff00; + bi.bV5BlueMask = 0x000000ff; + bi.bV5AlphaMask = 0xff000000; + + dc = GetDC(NULL); + color = CreateDIBSection(dc, + (BITMAPINFO*) &bi, + DIB_RGB_COLORS, + (void**) &target, + NULL, + (DWORD) 0); + ReleaseDC(NULL, dc); + + if (!color) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create RGBA bitmap"); + return NULL; + } + + mask = CreateBitmap(image->width, image->height, 1, 1, NULL); + if (!mask) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create mask bitmap"); + DeleteObject(color); + return NULL; + } + + for (i = 0; i < image->width * image->height; i++) + { + target[0] = source[2]; + target[1] = source[1]; + target[2] = source[0]; + target[3] = source[3]; + target += 4; + source += 4; + } + + ZeroMemory(&ii, sizeof(ii)); + ii.fIcon = icon; + ii.xHotspot = xhot; + ii.yHotspot = yhot; + ii.hbmMask = mask; + ii.hbmColor = color; + + handle = CreateIconIndirect(&ii); + + DeleteObject(color); + DeleteObject(mask); + + if (!handle) + { + if (icon) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create icon"); + } + else + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create cursor"); + } + } + + return handle; +} + +// Translate content area size to full window size according to styles and DPI +// +static void getFullWindowSize(DWORD style, DWORD exStyle, + int contentWidth, int contentHeight, + int* fullWidth, int* fullHeight, + UINT dpi) +{ + RECT rect = { 0, 0, contentWidth, contentHeight }; + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + AdjustWindowRectExForDpi(&rect, style, FALSE, exStyle, dpi); + else + AdjustWindowRectEx(&rect, style, FALSE, exStyle); + + *fullWidth = rect.right - rect.left; + *fullHeight = rect.bottom - rect.top; +} + +// Enforce the content area aspect ratio based on which edge is being dragged +// +static void applyAspectRatio(_GLFWwindow* window, int edge, RECT* area) +{ + int xoff, yoff; + UINT dpi = USER_DEFAULT_SCREEN_DPI; + const float ratio = (float) window->numer / (float) window->denom; + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + dpi = GetDpiForWindow(window->win32.handle); + + getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), + 0, 0, &xoff, &yoff, dpi); + + if (edge == WMSZ_LEFT || edge == WMSZ_BOTTOMLEFT || + edge == WMSZ_RIGHT || edge == WMSZ_BOTTOMRIGHT) + { + area->bottom = area->top + yoff + + (int) ((area->right - area->left - xoff) / ratio); + } + else if (edge == WMSZ_TOPLEFT || edge == WMSZ_TOPRIGHT) + { + area->top = area->bottom - yoff - + (int) ((area->right - area->left - xoff) / ratio); + } + else if (edge == WMSZ_TOP || edge == WMSZ_BOTTOM) + { + area->right = area->left + xoff + + (int) ((area->bottom - area->top - yoff) * ratio); + } +} + +// Updates the cursor image according to its cursor mode +// +static void updateCursorImage(_GLFWwindow* window) +{ + if (window->cursorMode == GLFW_CURSOR_NORMAL || + window->cursorMode == GLFW_CURSOR_CAPTURED) + { + if (window->cursor) + SetCursor(window->cursor->win32.handle); + else + SetCursor(LoadCursorW(NULL, IDC_ARROW)); + } + else + SetCursor(NULL); +} + +// Sets the cursor clip rect to the window content area +// +static void captureCursor(_GLFWwindow* window) +{ + RECT clipRect; + GetClientRect(window->win32.handle, &clipRect); + ClientToScreen(window->win32.handle, (POINT*) &clipRect.left); + ClientToScreen(window->win32.handle, (POINT*) &clipRect.right); + ClipCursor(&clipRect); + _glfw.win32.capturedCursorWindow = window; +} + +// Disabled clip cursor +// +static void releaseCursor(void) +{ + ClipCursor(NULL); + _glfw.win32.capturedCursorWindow = NULL; +} + +// Enables WM_INPUT messages for the mouse for the specified window +// +static void enableRawMouseMotion(_GLFWwindow* window) +{ + const RAWINPUTDEVICE rid = { 0x01, 0x02, 0, window->win32.handle }; + + if (!RegisterRawInputDevices(&rid, 1, sizeof(rid))) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to register raw input device"); + } +} + +// Disables WM_INPUT messages for the mouse +// +static void disableRawMouseMotion(_GLFWwindow* window) +{ + const RAWINPUTDEVICE rid = { 0x01, 0x02, RIDEV_REMOVE, NULL }; + + if (!RegisterRawInputDevices(&rid, 1, sizeof(rid))) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to remove raw input device"); + } +} + +// Apply disabled cursor mode to a focused window +// +static void disableCursor(_GLFWwindow* window) +{ + _glfw.win32.disabledCursorWindow = window; + _glfwGetCursorPosWin32(window, + &_glfw.win32.restoreCursorPosX, + &_glfw.win32.restoreCursorPosY); + updateCursorImage(window); + _glfwCenterCursorInContentArea(window); + captureCursor(window); + + if (window->rawMouseMotion) + enableRawMouseMotion(window); +} + +// Exit disabled cursor mode for the specified window +// +static void enableCursor(_GLFWwindow* window) +{ + if (window->rawMouseMotion) + disableRawMouseMotion(window); + + _glfw.win32.disabledCursorWindow = NULL; + releaseCursor(); + _glfwSetCursorPosWin32(window, + _glfw.win32.restoreCursorPosX, + _glfw.win32.restoreCursorPosY); + updateCursorImage(window); +} + +// Returns whether the cursor is in the content area of the specified window +// +static GLFWbool cursorInContentArea(_GLFWwindow* window) +{ + RECT area; + POINT pos; + + if (!GetCursorPos(&pos)) + return GLFW_FALSE; + + if (WindowFromPoint(pos) != window->win32.handle) + return GLFW_FALSE; + + GetClientRect(window->win32.handle, &area); + ClientToScreen(window->win32.handle, (POINT*) &area.left); + ClientToScreen(window->win32.handle, (POINT*) &area.right); + + return PtInRect(&area, pos); +} + +// Update native window styles to match attributes +// +static void updateWindowStyles(const _GLFWwindow* window) +{ + RECT rect; + DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); + style &= ~(WS_OVERLAPPEDWINDOW | WS_POPUP); + style |= getWindowStyle(window); + + GetClientRect(window->win32.handle, &rect); + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, style, FALSE, + getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + AdjustWindowRectEx(&rect, style, FALSE, getWindowExStyle(window)); + + ClientToScreen(window->win32.handle, (POINT*) &rect.left); + ClientToScreen(window->win32.handle, (POINT*) &rect.right); + SetWindowLongW(window->win32.handle, GWL_STYLE, style); + SetWindowPos(window->win32.handle, HWND_TOP, + rect.left, rect.top, + rect.right - rect.left, rect.bottom - rect.top, + SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOZORDER); +} + +// Update window framebuffer transparency +// +static void updateFramebufferTransparency(const _GLFWwindow* window) +{ + BOOL composition, opaque; + DWORD color; + + if (!IsWindowsVistaOrGreater()) + return; + + if (FAILED(DwmIsCompositionEnabled(&composition)) || !composition) + return; + + if (IsWindows8OrGreater() || + (SUCCEEDED(DwmGetColorizationColor(&color, &opaque)) && !opaque)) + { + HRGN region = CreateRectRgn(0, 0, -1, -1); + DWM_BLURBEHIND bb = {0}; + bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION; + bb.hRgnBlur = region; + bb.fEnable = TRUE; + + DwmEnableBlurBehindWindow(window->win32.handle, &bb); + DeleteObject(region); + } + else + { + // HACK: Disable framebuffer transparency on Windows 7 when the + // colorization color is opaque, because otherwise the window + // contents is blended additively with the previous frame instead + // of replacing it + DWM_BLURBEHIND bb = {0}; + bb.dwFlags = DWM_BB_ENABLE; + DwmEnableBlurBehindWindow(window->win32.handle, &bb); + } +} + +// Retrieves and translates modifier keys +// +static int getKeyMods(void) +{ + int mods = 0; + + if (GetKeyState(VK_SHIFT) & 0x8000) + mods |= GLFW_MOD_SHIFT; + if (GetKeyState(VK_CONTROL) & 0x8000) + mods |= GLFW_MOD_CONTROL; + if (GetKeyState(VK_MENU) & 0x8000) + mods |= GLFW_MOD_ALT; + if ((GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) & 0x8000) + mods |= GLFW_MOD_SUPER; + if (GetKeyState(VK_CAPITAL) & 1) + mods |= GLFW_MOD_CAPS_LOCK; + if (GetKeyState(VK_NUMLOCK) & 1) + mods |= GLFW_MOD_NUM_LOCK; + + return mods; +} + +static void fitToMonitor(_GLFWwindow* window) +{ + MONITORINFO mi = { sizeof(mi) }; + GetMonitorInfoW(window->monitor->win32.handle, &mi); + SetWindowPos(window->win32.handle, HWND_TOPMOST, + mi.rcMonitor.left, + mi.rcMonitor.top, + mi.rcMonitor.right - mi.rcMonitor.left, + mi.rcMonitor.bottom - mi.rcMonitor.top, + SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS); +} + +// Make the specified window and its video mode active on its monitor +// +static void acquireMonitor(_GLFWwindow* window) +{ + if (!_glfw.win32.acquiredMonitorCount) + { + SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED); + + // HACK: When mouse trails are enabled the cursor becomes invisible when + // the OpenGL ICD switches to page flipping + SystemParametersInfoW(SPI_GETMOUSETRAILS, 0, &_glfw.win32.mouseTrailSize, 0); + SystemParametersInfoW(SPI_SETMOUSETRAILS, 0, 0, 0); + } + + if (!window->monitor->window) + _glfw.win32.acquiredMonitorCount++; + + _glfwSetVideoModeWin32(window->monitor, &window->videoMode); + _glfwInputMonitorWindow(window->monitor, window); +} + +// Remove the window and restore the original video mode +// +static void releaseMonitor(_GLFWwindow* window) +{ + if (window->monitor->window != window) + return; + + _glfw.win32.acquiredMonitorCount--; + if (!_glfw.win32.acquiredMonitorCount) + { + SetThreadExecutionState(ES_CONTINUOUS); + + // HACK: Restore mouse trail length saved in acquireMonitor + SystemParametersInfoW(SPI_SETMOUSETRAILS, _glfw.win32.mouseTrailSize, 0, 0); + } + + _glfwInputMonitorWindow(window->monitor, NULL); + _glfwRestoreVideoModeWin32(window->monitor); +} + +// Manually maximize the window, for when SW_MAXIMIZE cannot be used +// +static void maximizeWindowManually(_GLFWwindow* window) +{ + RECT rect; + DWORD style; + MONITORINFO mi = { sizeof(mi) }; + + GetMonitorInfoW(MonitorFromWindow(window->win32.handle, + MONITOR_DEFAULTTONEAREST), &mi); + + rect = mi.rcWork; + + if (window->maxwidth != GLFW_DONT_CARE && window->maxheight != GLFW_DONT_CARE) + { + rect.right = _glfw_min(rect.right, rect.left + window->maxwidth); + rect.bottom = _glfw_min(rect.bottom, rect.top + window->maxheight); + } + + style = GetWindowLongW(window->win32.handle, GWL_STYLE); + style |= WS_MAXIMIZE; + SetWindowLongW(window->win32.handle, GWL_STYLE, style); + + if (window->decorated) + { + const DWORD exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + const UINT dpi = GetDpiForWindow(window->win32.handle); + AdjustWindowRectExForDpi(&rect, style, FALSE, exStyle, dpi); + OffsetRect(&rect, 0, GetSystemMetricsForDpi(SM_CYCAPTION, dpi)); + } + else + { + AdjustWindowRectEx(&rect, style, FALSE, exStyle); + OffsetRect(&rect, 0, GetSystemMetrics(SM_CYCAPTION)); + } + + rect.bottom = _glfw_min(rect.bottom, mi.rcWork.bottom); + } + + SetWindowPos(window->win32.handle, HWND_TOP, + rect.left, + rect.top, + rect.right - rect.left, + rect.bottom - rect.top, + SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED); +} + +// Window procedure for user-created windows +// +static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) +{ + _GLFWwindow* window = GetPropW(hWnd, L"GLFW"); + if (!window) + { + if (uMsg == WM_NCCREATE) + { + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + const CREATESTRUCTW* cs = (const CREATESTRUCTW*) lParam; + const _GLFWwndconfig* wndconfig = cs->lpCreateParams; + + // On per-monitor DPI aware V1 systems, only enable + // non-client scaling for windows that scale the client area + // We need WM_GETDPISCALEDSIZE from V2 to keep the client + // area static when the non-client area is scaled + if (wndconfig && wndconfig->scaleToMonitor) + EnableNonClientDpiScaling(hWnd); + } + } + + return DefWindowProcW(hWnd, uMsg, wParam, lParam); + } + + switch (uMsg) + { + case WM_MOUSEACTIVATE: + { + // HACK: Postpone cursor disabling when the window was activated by + // clicking a caption button + if (HIWORD(lParam) == WM_LBUTTONDOWN) + { + if (LOWORD(lParam) != HTCLIENT) + window->win32.frameAction = GLFW_TRUE; + } + + break; + } + + case WM_CAPTURECHANGED: + { + // HACK: Disable the cursor once the caption button action has been + // completed or cancelled + if (lParam == 0 && window->win32.frameAction) + { + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + captureCursor(window); + + window->win32.frameAction = GLFW_FALSE; + } + + break; + } + + case WM_SETFOCUS: + { + _glfwInputWindowFocus(window, GLFW_TRUE); + + // HACK: Do not disable cursor while the user is interacting with + // a caption button + if (window->win32.frameAction) + break; + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + captureCursor(window); + + return 0; + } + + case WM_KILLFOCUS: + { + if (window->cursorMode == GLFW_CURSOR_DISABLED) + enableCursor(window); + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + releaseCursor(); + + if (window->monitor && window->autoIconify) + _glfwIconifyWindowWin32(window); + + _glfwInputWindowFocus(window, GLFW_FALSE); + return 0; + } + + case WM_SYSCOMMAND: + { + switch (wParam & 0xfff0) + { + case SC_SCREENSAVE: + case SC_MONITORPOWER: + { + if (window->monitor) + { + // We are running in full screen mode, so disallow + // screen saver and screen blanking + return 0; + } + else + break; + } + + // User trying to access application menu using ALT? + case SC_KEYMENU: + { + if (!window->win32.keymenu) + return 0; + + break; + } + } + break; + } + + case WM_CLOSE: + { + _glfwInputWindowCloseRequest(window); + return 0; + } + + case WM_INPUTLANGCHANGE: + { + _glfwUpdateKeyNamesWin32(); + break; + } + + case WM_CHAR: + case WM_SYSCHAR: + { + if (wParam >= 0xd800 && wParam <= 0xdbff) + window->win32.highSurrogate = (WCHAR) wParam; + else + { + uint32_t codepoint = 0; + + if (wParam >= 0xdc00 && wParam <= 0xdfff) + { + if (window->win32.highSurrogate) + { + codepoint += (window->win32.highSurrogate - 0xd800) << 10; + codepoint += (WCHAR) wParam - 0xdc00; + codepoint += 0x10000; + } + } + else + codepoint = (WCHAR) wParam; + + window->win32.highSurrogate = 0; + _glfwInputChar(window, codepoint, getKeyMods(), uMsg != WM_SYSCHAR); + } + + if (uMsg == WM_SYSCHAR && window->win32.keymenu) + break; + + return 0; + } + + case WM_UNICHAR: + { + if (wParam == UNICODE_NOCHAR) + { + // WM_UNICHAR is not sent by Windows, but is sent by some + // third-party input method engine + // Returning TRUE here announces support for this message + return TRUE; + } + + _glfwInputChar(window, (uint32_t) wParam, getKeyMods(), GLFW_TRUE); + return 0; + } + + case WM_KEYDOWN: + case WM_SYSKEYDOWN: + case WM_KEYUP: + case WM_SYSKEYUP: + { + int key, scancode; + const int action = (HIWORD(lParam) & KF_UP) ? GLFW_RELEASE : GLFW_PRESS; + const int mods = getKeyMods(); + + scancode = (HIWORD(lParam) & (KF_EXTENDED | 0xff)); + if (!scancode) + { + // NOTE: Some synthetic key messages have a scancode of zero + // HACK: Map the virtual key back to a usable scancode + scancode = MapVirtualKeyW((UINT) wParam, MAPVK_VK_TO_VSC); + } + + // HACK: Alt+PrtSc has a different scancode than just PrtSc + if (scancode == 0x54) + scancode = 0x137; + + // HACK: Ctrl+Pause has a different scancode than just Pause + if (scancode == 0x146) + scancode = 0x45; + + // HACK: CJK IME sets the extended bit for right Shift + if (scancode == 0x136) + scancode = 0x36; + + key = _glfw.win32.keycodes[scancode]; + + // The Ctrl keys require special handling + if (wParam == VK_CONTROL) + { + if (HIWORD(lParam) & KF_EXTENDED) + { + // Right side keys have the extended key bit set + key = GLFW_KEY_RIGHT_CONTROL; + } + else + { + // NOTE: Alt Gr sends Left Ctrl followed by Right Alt + // HACK: We only want one event for Alt Gr, so if we detect + // this sequence we discard this Left Ctrl message now + // and later report Right Alt normally + MSG next; + const DWORD time = GetMessageTime(); + + if (PeekMessageW(&next, NULL, 0, 0, PM_NOREMOVE)) + { + if (next.message == WM_KEYDOWN || + next.message == WM_SYSKEYDOWN || + next.message == WM_KEYUP || + next.message == WM_SYSKEYUP) + { + if (next.wParam == VK_MENU && + (HIWORD(next.lParam) & KF_EXTENDED) && + next.time == time) + { + // Next message is Right Alt down so discard this + break; + } + } + } + + // This is a regular Left Ctrl message + key = GLFW_KEY_LEFT_CONTROL; + } + } + else if (wParam == VK_PROCESSKEY) + { + // IME notifies that keys have been filtered by setting the + // virtual key-code to VK_PROCESSKEY + break; + } + + if (action == GLFW_RELEASE && wParam == VK_SHIFT) + { + // HACK: Release both Shift keys on Shift up event, as when both + // are pressed the first release does not emit any event + // NOTE: The other half of this is in _glfwPollEventsWin32 + _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, action, mods); + _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, action, mods); + } + else if (wParam == VK_SNAPSHOT) + { + // HACK: Key down is not reported for the Print Screen key + _glfwInputKey(window, key, scancode, GLFW_PRESS, mods); + _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods); + } + else + _glfwInputKey(window, key, scancode, action, mods); + + break; + } + + case WM_LBUTTONDOWN: + case WM_RBUTTONDOWN: + case WM_MBUTTONDOWN: + case WM_XBUTTONDOWN: + case WM_LBUTTONUP: + case WM_RBUTTONUP: + case WM_MBUTTONUP: + case WM_XBUTTONUP: + { + int i, button, action; + + if (uMsg == WM_LBUTTONDOWN || uMsg == WM_LBUTTONUP) + button = GLFW_MOUSE_BUTTON_LEFT; + else if (uMsg == WM_RBUTTONDOWN || uMsg == WM_RBUTTONUP) + button = GLFW_MOUSE_BUTTON_RIGHT; + else if (uMsg == WM_MBUTTONDOWN || uMsg == WM_MBUTTONUP) + button = GLFW_MOUSE_BUTTON_MIDDLE; + else if (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) + button = GLFW_MOUSE_BUTTON_4; + else + button = GLFW_MOUSE_BUTTON_5; + + if (uMsg == WM_LBUTTONDOWN || uMsg == WM_RBUTTONDOWN || + uMsg == WM_MBUTTONDOWN || uMsg == WM_XBUTTONDOWN) + { + action = GLFW_PRESS; + } + else + action = GLFW_RELEASE; + + for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) + { + if (window->mouseButtons[i] == GLFW_PRESS) + break; + } + + if (i > GLFW_MOUSE_BUTTON_LAST) + SetCapture(hWnd); + + _glfwInputMouseClick(window, button, action, getKeyMods()); + + for (i = 0; i <= GLFW_MOUSE_BUTTON_LAST; i++) + { + if (window->mouseButtons[i] == GLFW_PRESS) + break; + } + + if (i > GLFW_MOUSE_BUTTON_LAST) + ReleaseCapture(); + + if (uMsg == WM_XBUTTONDOWN || uMsg == WM_XBUTTONUP) + return TRUE; + + return 0; + } + + case WM_MOUSEMOVE: + { + const int x = GET_X_LPARAM(lParam); + const int y = GET_Y_LPARAM(lParam); + + if (!window->win32.cursorTracked) + { + TRACKMOUSEEVENT tme; + ZeroMemory(&tme, sizeof(tme)); + tme.cbSize = sizeof(tme); + tme.dwFlags = TME_LEAVE; + tme.hwndTrack = window->win32.handle; + TrackMouseEvent(&tme); + + window->win32.cursorTracked = GLFW_TRUE; + _glfwInputCursorEnter(window, GLFW_TRUE); + } + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + const int dx = x - window->win32.lastCursorPosX; + const int dy = y - window->win32.lastCursorPosY; + + if (_glfw.win32.disabledCursorWindow != window) + break; + if (window->rawMouseMotion) + break; + + _glfwInputCursorPos(window, + window->virtualCursorPosX + dx, + window->virtualCursorPosY + dy); + } + else + _glfwInputCursorPos(window, x, y); + + window->win32.lastCursorPosX = x; + window->win32.lastCursorPosY = y; + + return 0; + } + + case WM_INPUT: + { + UINT size = 0; + HRAWINPUT ri = (HRAWINPUT) lParam; + RAWINPUT* data = NULL; + int dx, dy; + + if (_glfw.win32.disabledCursorWindow != window) + break; + if (!window->rawMouseMotion) + break; + + GetRawInputData(ri, RID_INPUT, NULL, &size, sizeof(RAWINPUTHEADER)); + if (size > (UINT) _glfw.win32.rawInputSize) + { + _glfw_free(_glfw.win32.rawInput); + _glfw.win32.rawInput = _glfw_calloc(size, 1); + _glfw.win32.rawInputSize = size; + } + + size = _glfw.win32.rawInputSize; + if (GetRawInputData(ri, RID_INPUT, + _glfw.win32.rawInput, &size, + sizeof(RAWINPUTHEADER)) == (UINT) -1) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to retrieve raw input data"); + break; + } + + data = _glfw.win32.rawInput; + if (data->data.mouse.usFlags & MOUSE_MOVE_ABSOLUTE) + { + dx = data->data.mouse.lLastX - window->win32.lastCursorPosX; + dy = data->data.mouse.lLastY - window->win32.lastCursorPosY; + } + else + { + dx = data->data.mouse.lLastX; + dy = data->data.mouse.lLastY; + } + + _glfwInputCursorPos(window, + window->virtualCursorPosX + dx, + window->virtualCursorPosY + dy); + + window->win32.lastCursorPosX += dx; + window->win32.lastCursorPosY += dy; + break; + } + + case WM_MOUSELEAVE: + { + window->win32.cursorTracked = GLFW_FALSE; + _glfwInputCursorEnter(window, GLFW_FALSE); + return 0; + } + + case WM_MOUSEWHEEL: + { + _glfwInputScroll(window, 0.0, (SHORT) HIWORD(wParam) / (double) WHEEL_DELTA); + return 0; + } + + case WM_MOUSEHWHEEL: + { + // This message is only sent on Windows Vista and later + // NOTE: The X-axis is inverted for consistency with macOS and X11 + _glfwInputScroll(window, -((SHORT) HIWORD(wParam) / (double) WHEEL_DELTA), 0.0); + return 0; + } + + case WM_ENTERSIZEMOVE: + case WM_ENTERMENULOOP: + { + if (window->win32.frameAction) + break; + + // HACK: Enable the cursor while the user is moving or + // resizing the window or using the window menu + if (window->cursorMode == GLFW_CURSOR_DISABLED) + enableCursor(window); + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + releaseCursor(); + + break; + } + + case WM_EXITSIZEMOVE: + case WM_EXITMENULOOP: + { + if (window->win32.frameAction) + break; + + // HACK: Disable the cursor once the user is done moving or + // resizing the window or using the menu + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + captureCursor(window); + + break; + } + + case WM_SIZE: + { + const int width = LOWORD(lParam); + const int height = HIWORD(lParam); + const GLFWbool iconified = wParam == SIZE_MINIMIZED; + const GLFWbool maximized = wParam == SIZE_MAXIMIZED || + (window->win32.maximized && + wParam != SIZE_RESTORED); + + if (_glfw.win32.capturedCursorWindow == window) + captureCursor(window); + + if (window->win32.iconified != iconified) + _glfwInputWindowIconify(window, iconified); + + if (window->win32.maximized != maximized) + _glfwInputWindowMaximize(window, maximized); + + if (width != window->win32.width || height != window->win32.height) + { + window->win32.width = width; + window->win32.height = height; + + _glfwInputFramebufferSize(window, width, height); + _glfwInputWindowSize(window, width, height); + } + + if (window->monitor && window->win32.iconified != iconified) + { + if (iconified) + releaseMonitor(window); + else + { + acquireMonitor(window); + fitToMonitor(window); + } + } + + window->win32.iconified = iconified; + window->win32.maximized = maximized; + return 0; + } + + case WM_MOVE: + { + if (_glfw.win32.capturedCursorWindow == window) + captureCursor(window); + + // NOTE: This cannot use LOWORD/HIWORD recommended by MSDN, as + // those macros do not handle negative window positions correctly + _glfwInputWindowPos(window, + GET_X_LPARAM(lParam), + GET_Y_LPARAM(lParam)); + return 0; + } + + case WM_SIZING: + { + if (window->numer == GLFW_DONT_CARE || + window->denom == GLFW_DONT_CARE) + { + break; + } + + applyAspectRatio(window, (int) wParam, (RECT*) lParam); + return TRUE; + } + + case WM_GETMINMAXINFO: + { + int xoff, yoff; + UINT dpi = USER_DEFAULT_SCREEN_DPI; + MINMAXINFO* mmi = (MINMAXINFO*) lParam; + + if (window->monitor) + break; + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + dpi = GetDpiForWindow(window->win32.handle); + + getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), + 0, 0, &xoff, &yoff, dpi); + + if (window->minwidth != GLFW_DONT_CARE && + window->minheight != GLFW_DONT_CARE) + { + mmi->ptMinTrackSize.x = window->minwidth + xoff; + mmi->ptMinTrackSize.y = window->minheight + yoff; + } + + if (window->maxwidth != GLFW_DONT_CARE && + window->maxheight != GLFW_DONT_CARE) + { + mmi->ptMaxTrackSize.x = window->maxwidth + xoff; + mmi->ptMaxTrackSize.y = window->maxheight + yoff; + } + + if (!window->decorated) + { + MONITORINFO mi; + const HMONITOR mh = MonitorFromWindow(window->win32.handle, + MONITOR_DEFAULTTONEAREST); + + ZeroMemory(&mi, sizeof(mi)); + mi.cbSize = sizeof(mi); + GetMonitorInfoW(mh, &mi); + + mmi->ptMaxPosition.x = mi.rcWork.left - mi.rcMonitor.left; + mmi->ptMaxPosition.y = mi.rcWork.top - mi.rcMonitor.top; + mmi->ptMaxSize.x = mi.rcWork.right - mi.rcWork.left; + mmi->ptMaxSize.y = mi.rcWork.bottom - mi.rcWork.top; + } + + return 0; + } + + case WM_PAINT: + { + _glfwInputWindowDamage(window); + break; + } + + case WM_ERASEBKGND: + { + return TRUE; + } + + case WM_NCACTIVATE: + case WM_NCPAINT: + { + // Prevent title bar from being drawn after restoring a minimized + // undecorated window + if (!window->decorated) + return TRUE; + + break; + } + + case WM_DWMCOMPOSITIONCHANGED: + case WM_DWMCOLORIZATIONCOLORCHANGED: + { + if (window->win32.transparent) + updateFramebufferTransparency(window); + return 0; + } + + case WM_GETDPISCALEDSIZE: + { + if (window->win32.scaleToMonitor) + break; + + // Adjust the window size to keep the content area size constant + if (_glfwIsWindows10Version1703OrGreaterWin32()) + { + RECT source = {0}, target = {0}; + SIZE* size = (SIZE*) lParam; + + AdjustWindowRectExForDpi(&source, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + AdjustWindowRectExForDpi(&target, getWindowStyle(window), + FALSE, getWindowExStyle(window), + LOWORD(wParam)); + + size->cx += (target.right - target.left) - + (source.right - source.left); + size->cy += (target.bottom - target.top) - + (source.bottom - source.top); + return TRUE; + } + + break; + } + + case WM_DPICHANGED: + { + const float xscale = HIWORD(wParam) / (float) USER_DEFAULT_SCREEN_DPI; + const float yscale = LOWORD(wParam) / (float) USER_DEFAULT_SCREEN_DPI; + + // Resize windowed mode windows that either permit rescaling or that + // need it to compensate for non-client area scaling + if (!window->monitor && + (window->win32.scaleToMonitor || + _glfwIsWindows10Version1703OrGreaterWin32())) + { + RECT* suggested = (RECT*) lParam; + SetWindowPos(window->win32.handle, HWND_TOP, + suggested->left, + suggested->top, + suggested->right - suggested->left, + suggested->bottom - suggested->top, + SWP_NOACTIVATE | SWP_NOZORDER); + } + + _glfwInputWindowContentScale(window, xscale, yscale); + break; + } + + case WM_SETCURSOR: + { + if (LOWORD(lParam) == HTCLIENT) + { + updateCursorImage(window); + return TRUE; + } + + break; + } + + case WM_DROPFILES: + { + HDROP drop = (HDROP) wParam; + POINT pt; + int i; + + const int count = DragQueryFileW(drop, 0xffffffff, NULL, 0); + char** paths = _glfw_calloc(count, sizeof(char*)); + + // Move the mouse to the position of the drop + DragQueryPoint(drop, &pt); + _glfwInputCursorPos(window, pt.x, pt.y); + + for (i = 0; i < count; i++) + { + const UINT length = DragQueryFileW(drop, i, NULL, 0); + WCHAR* buffer = _glfw_calloc((size_t) length + 1, sizeof(WCHAR)); + + DragQueryFileW(drop, i, buffer, length + 1); + paths[i] = _glfwCreateUTF8FromWideStringWin32(buffer); + + _glfw_free(buffer); + } + + _glfwInputDrop(window, count, (const char**) paths); + + for (i = 0; i < count; i++) + _glfw_free(paths[i]); + _glfw_free(paths); + + DragFinish(drop); + return 0; + } + } + + return DefWindowProcW(hWnd, uMsg, wParam, lParam); +} + +// Creates the GLFW window +// +static int createNativeWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig) +{ + int xpos, ypos, fullWidth, fullHeight; + WCHAR* wideTitle; + DWORD style = getWindowStyle(window); + DWORD exStyle = getWindowExStyle(window); + + if (!_glfw.win32.mainWindowClass) + { + WNDCLASSEXW wc = { sizeof(wc) }; + wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; + wc.lpfnWndProc = windowProc; + wc.hInstance = _glfw.win32.instance; + wc.hCursor = LoadCursorW(NULL, IDC_ARROW); +#if defined(_GLFW_WNDCLASSNAME) + wc.lpszClassName = _GLFW_WNDCLASSNAME; +#else + wc.lpszClassName = L"GLFW30"; +#endif + // Load user-provided icon if available + wc.hIcon = LoadImageW(GetModuleHandleW(NULL), + L"GLFW_ICON", IMAGE_ICON, + 0, 0, LR_DEFAULTSIZE | LR_SHARED); + if (!wc.hIcon) + { + // No user-provided icon found, load default icon + wc.hIcon = LoadImageW(NULL, + IDI_APPLICATION, IMAGE_ICON, + 0, 0, LR_DEFAULTSIZE | LR_SHARED); + } + + _glfw.win32.mainWindowClass = RegisterClassExW(&wc); + if (!_glfw.win32.mainWindowClass) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to register window class"); + return GLFW_FALSE; + } + } + + if (window->monitor) + { + MONITORINFO mi = { sizeof(mi) }; + GetMonitorInfoW(window->monitor->win32.handle, &mi); + + // NOTE: This window placement is temporary and approximate, as the + // correct position and size cannot be known until the monitor + // video mode has been picked in _glfwSetVideoModeWin32 + xpos = mi.rcMonitor.left; + ypos = mi.rcMonitor.top; + fullWidth = mi.rcMonitor.right - mi.rcMonitor.left; + fullHeight = mi.rcMonitor.bottom - mi.rcMonitor.top; + } + else + { + RECT rect = { 0, 0, wndconfig->width, wndconfig->height }; + + window->win32.maximized = wndconfig->maximized; + if (wndconfig->maximized) + style |= WS_MAXIMIZE; + + AdjustWindowRectEx(&rect, style, FALSE, exStyle); + + if (wndconfig->xpos == GLFW_ANY_POSITION && wndconfig->ypos == GLFW_ANY_POSITION) + { + xpos = CW_USEDEFAULT; + ypos = CW_USEDEFAULT; + } + else + { + xpos = wndconfig->xpos + rect.left; + ypos = wndconfig->ypos + rect.top; + } + + fullWidth = rect.right - rect.left; + fullHeight = rect.bottom - rect.top; + } + + wideTitle = _glfwCreateWideStringFromUTF8Win32(wndconfig->title); + if (!wideTitle) + return GLFW_FALSE; + + window->win32.handle = CreateWindowExW(exStyle, + MAKEINTATOM(_glfw.win32.mainWindowClass), + wideTitle, + style, + xpos, ypos, + fullWidth, fullHeight, + NULL, // No parent window + NULL, // No window menu + _glfw.win32.instance, + (LPVOID) wndconfig); + + _glfw_free(wideTitle); + + if (!window->win32.handle) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create window"); + return GLFW_FALSE; + } + + SetPropW(window->win32.handle, L"GLFW", window); + + if (IsWindows7OrGreater()) + { + ChangeWindowMessageFilterEx(window->win32.handle, + WM_DROPFILES, MSGFLT_ALLOW, NULL); + ChangeWindowMessageFilterEx(window->win32.handle, + WM_COPYDATA, MSGFLT_ALLOW, NULL); + ChangeWindowMessageFilterEx(window->win32.handle, + WM_COPYGLOBALDATA, MSGFLT_ALLOW, NULL); + } + + window->win32.scaleToMonitor = wndconfig->scaleToMonitor; + window->win32.keymenu = wndconfig->win32.keymenu; + + if (!window->monitor) + { + RECT rect = { 0, 0, wndconfig->width, wndconfig->height }; + WINDOWPLACEMENT wp = { sizeof(wp) }; + const HMONITOR mh = MonitorFromWindow(window->win32.handle, + MONITOR_DEFAULTTONEAREST); + + // Adjust window rect to account for DPI scaling of the window frame and + // (if enabled) DPI scaling of the content area + // This cannot be done until we know what monitor the window was placed on + // Only update the restored window rect as the window may be maximized + + if (wndconfig->scaleToMonitor) + { + float xscale, yscale; + _glfwGetHMONITORContentScaleWin32(mh, &xscale, &yscale); + + if (xscale > 0.f && yscale > 0.f) + { + rect.right = (int) (rect.right * xscale); + rect.bottom = (int) (rect.bottom * yscale); + } + } + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, style, FALSE, exStyle, + GetDpiForWindow(window->win32.handle)); + } + else + AdjustWindowRectEx(&rect, style, FALSE, exStyle); + + GetWindowPlacement(window->win32.handle, &wp); + OffsetRect(&rect, + wp.rcNormalPosition.left - rect.left, + wp.rcNormalPosition.top - rect.top); + + wp.rcNormalPosition = rect; + wp.showCmd = SW_HIDE; + SetWindowPlacement(window->win32.handle, &wp); + + // Adjust rect of maximized undecorated window, because by default Windows will + // make such a window cover the whole monitor instead of its workarea + + if (wndconfig->maximized && !wndconfig->decorated) + { + MONITORINFO mi = { sizeof(mi) }; + GetMonitorInfoW(mh, &mi); + + SetWindowPos(window->win32.handle, HWND_TOP, + mi.rcWork.left, + mi.rcWork.top, + mi.rcWork.right - mi.rcWork.left, + mi.rcWork.bottom - mi.rcWork.top, + SWP_NOACTIVATE | SWP_NOZORDER); + } + } + + DragAcceptFiles(window->win32.handle, TRUE); + + if (fbconfig->transparent) + { + updateFramebufferTransparency(window); + window->win32.transparent = GLFW_TRUE; + } + + _glfwGetWindowSizeWin32(window, &window->win32.width, &window->win32.height); + + return GLFW_TRUE; +} + +GLFWbool _glfwCreateWindowWin32(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + if (!createNativeWindow(window, wndconfig, fbconfig)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + if (!_glfwInitWGL()) + return GLFW_FALSE; + if (!_glfwCreateContextWGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) + { + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + + if (!_glfwRefreshContextAttribs(window, ctxconfig)) + return GLFW_FALSE; + } + + if (wndconfig->mousePassthrough) + _glfwSetWindowMousePassthroughWin32(window, GLFW_TRUE); + + if (window->monitor) + { + _glfwShowWindowWin32(window); + _glfwFocusWindowWin32(window); + acquireMonitor(window); + fitToMonitor(window); + + if (wndconfig->centerCursor) + _glfwCenterCursorInContentArea(window); + } + else + { + if (wndconfig->visible) + { + _glfwShowWindowWin32(window); + if (wndconfig->focused) + _glfwFocusWindowWin32(window); + } + } + + return GLFW_TRUE; +} + +void _glfwDestroyWindowWin32(_GLFWwindow* window) +{ + if (window->monitor) + releaseMonitor(window); + + if (window->context.destroy) + window->context.destroy(window); + + if (_glfw.win32.disabledCursorWindow == window) + enableCursor(window); + + if (_glfw.win32.capturedCursorWindow == window) + releaseCursor(); + + if (window->win32.handle) + { + RemovePropW(window->win32.handle, L"GLFW"); + DestroyWindow(window->win32.handle); + window->win32.handle = NULL; + } + + if (window->win32.bigIcon) + DestroyIcon(window->win32.bigIcon); + + if (window->win32.smallIcon) + DestroyIcon(window->win32.smallIcon); +} + +void _glfwSetWindowTitleWin32(_GLFWwindow* window, const char* title) +{ + WCHAR* wideTitle = _glfwCreateWideStringFromUTF8Win32(title); + if (!wideTitle) + return; + + SetWindowTextW(window->win32.handle, wideTitle); + _glfw_free(wideTitle); +} + +void _glfwSetWindowIconWin32(_GLFWwindow* window, int count, const GLFWimage* images) +{ + HICON bigIcon = NULL, smallIcon = NULL; + + if (count) + { + const GLFWimage* bigImage = chooseImage(count, images, + GetSystemMetrics(SM_CXICON), + GetSystemMetrics(SM_CYICON)); + const GLFWimage* smallImage = chooseImage(count, images, + GetSystemMetrics(SM_CXSMICON), + GetSystemMetrics(SM_CYSMICON)); + + bigIcon = createIcon(bigImage, 0, 0, GLFW_TRUE); + smallIcon = createIcon(smallImage, 0, 0, GLFW_TRUE); + } + else + { + bigIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICON); + smallIcon = (HICON) GetClassLongPtrW(window->win32.handle, GCLP_HICONSM); + } + + SendMessageW(window->win32.handle, WM_SETICON, ICON_BIG, (LPARAM) bigIcon); + SendMessageW(window->win32.handle, WM_SETICON, ICON_SMALL, (LPARAM) smallIcon); + + if (window->win32.bigIcon) + DestroyIcon(window->win32.bigIcon); + + if (window->win32.smallIcon) + DestroyIcon(window->win32.smallIcon); + + if (count) + { + window->win32.bigIcon = bigIcon; + window->win32.smallIcon = smallIcon; + } +} + +void _glfwGetWindowPosWin32(_GLFWwindow* window, int* xpos, int* ypos) +{ + POINT pos = { 0, 0 }; + ClientToScreen(window->win32.handle, &pos); + + if (xpos) + *xpos = pos.x; + if (ypos) + *ypos = pos.y; +} + +void _glfwSetWindowPosWin32(_GLFWwindow* window, int xpos, int ypos) +{ + RECT rect = { xpos, ypos, xpos, ypos }; + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, NULL, rect.left, rect.top, 0, 0, + SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSIZE); +} + +void _glfwGetWindowSizeWin32(_GLFWwindow* window, int* width, int* height) +{ + RECT area; + GetClientRect(window->win32.handle, &area); + + if (width) + *width = area.right; + if (height) + *height = area.bottom; +} + +void _glfwSetWindowSizeWin32(_GLFWwindow* window, int width, int height) +{ + if (window->monitor) + { + if (window->monitor->window == window) + { + acquireMonitor(window); + fitToMonitor(window); + } + } + else + { + RECT rect = { 0, 0, width, height }; + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, HWND_TOP, + 0, 0, rect.right - rect.left, rect.bottom - rect.top, + SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOZORDER); + } +} + +void _glfwSetWindowSizeLimitsWin32(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + RECT area; + + if ((minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) && + (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE)) + { + return; + } + + GetWindowRect(window->win32.handle, &area); + MoveWindow(window->win32.handle, + area.left, area.top, + area.right - area.left, + area.bottom - area.top, TRUE); +} + +void _glfwSetWindowAspectRatioWin32(_GLFWwindow* window, int numer, int denom) +{ + RECT area; + + if (numer == GLFW_DONT_CARE || denom == GLFW_DONT_CARE) + return; + + GetWindowRect(window->win32.handle, &area); + applyAspectRatio(window, WMSZ_BOTTOMRIGHT, &area); + MoveWindow(window->win32.handle, + area.left, area.top, + area.right - area.left, + area.bottom - area.top, TRUE); +} + +void _glfwGetFramebufferSizeWin32(_GLFWwindow* window, int* width, int* height) +{ + _glfwGetWindowSizeWin32(window, width, height); +} + +void _glfwGetWindowFrameSizeWin32(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + RECT rect; + int width, height; + + _glfwGetWindowSizeWin32(window, &width, &height); + SetRect(&rect, 0, 0, width, height); + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + if (left) + *left = -rect.left; + if (top) + *top = -rect.top; + if (right) + *right = rect.right - width; + if (bottom) + *bottom = rect.bottom - height; +} + +void _glfwGetWindowContentScaleWin32(_GLFWwindow* window, float* xscale, float* yscale) +{ + const HANDLE handle = MonitorFromWindow(window->win32.handle, + MONITOR_DEFAULTTONEAREST); + _glfwGetHMONITORContentScaleWin32(handle, xscale, yscale); +} + +void _glfwIconifyWindowWin32(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_MINIMIZE); +} + +void _glfwRestoreWindowWin32(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_RESTORE); +} + +void _glfwMaximizeWindowWin32(_GLFWwindow* window) +{ + if (IsWindowVisible(window->win32.handle)) + ShowWindow(window->win32.handle, SW_MAXIMIZE); + else + maximizeWindowManually(window); +} + +void _glfwShowWindowWin32(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_SHOWNA); +} + +void _glfwHideWindowWin32(_GLFWwindow* window) +{ + ShowWindow(window->win32.handle, SW_HIDE); +} + +void _glfwRequestWindowAttentionWin32(_GLFWwindow* window) +{ + FlashWindow(window->win32.handle, TRUE); +} + +void _glfwFocusWindowWin32(_GLFWwindow* window) +{ + BringWindowToTop(window->win32.handle); + SetForegroundWindow(window->win32.handle); + SetFocus(window->win32.handle); +} + +void _glfwSetWindowMonitorWin32(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + if (window->monitor == monitor) + { + if (monitor) + { + if (monitor->window == window) + { + acquireMonitor(window); + fitToMonitor(window); + } + } + else + { + RECT rect = { xpos, ypos, xpos + width, ypos + height }; + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, HWND_TOP, + rect.left, rect.top, + rect.right - rect.left, rect.bottom - rect.top, + SWP_NOCOPYBITS | SWP_NOACTIVATE | SWP_NOZORDER); + } + + return; + } + + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowMonitor(window, monitor); + + if (window->monitor) + { + MONITORINFO mi = { sizeof(mi) }; + UINT flags = SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOCOPYBITS; + + if (window->decorated) + { + DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); + style &= ~WS_OVERLAPPEDWINDOW; + style |= getWindowStyle(window); + SetWindowLongW(window->win32.handle, GWL_STYLE, style); + flags |= SWP_FRAMECHANGED; + } + + acquireMonitor(window); + + GetMonitorInfoW(window->monitor->win32.handle, &mi); + SetWindowPos(window->win32.handle, HWND_TOPMOST, + mi.rcMonitor.left, + mi.rcMonitor.top, + mi.rcMonitor.right - mi.rcMonitor.left, + mi.rcMonitor.bottom - mi.rcMonitor.top, + flags); + } + else + { + HWND after; + RECT rect = { xpos, ypos, xpos + width, ypos + height }; + DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE); + UINT flags = SWP_NOACTIVATE | SWP_NOCOPYBITS; + + if (window->decorated) + { + style &= ~WS_POPUP; + style |= getWindowStyle(window); + SetWindowLongW(window->win32.handle, GWL_STYLE, style); + + flags |= SWP_FRAMECHANGED; + } + + if (window->floating) + after = HWND_TOPMOST; + else + after = HWND_NOTOPMOST; + + if (_glfwIsWindows10Version1607OrGreaterWin32()) + { + AdjustWindowRectExForDpi(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window), + GetDpiForWindow(window->win32.handle)); + } + else + { + AdjustWindowRectEx(&rect, getWindowStyle(window), + FALSE, getWindowExStyle(window)); + } + + SetWindowPos(window->win32.handle, after, + rect.left, rect.top, + rect.right - rect.left, rect.bottom - rect.top, + flags); + } +} + +GLFWbool _glfwWindowFocusedWin32(_GLFWwindow* window) +{ + return window->win32.handle == GetActiveWindow(); +} + +GLFWbool _glfwWindowIconifiedWin32(_GLFWwindow* window) +{ + return IsIconic(window->win32.handle); +} + +GLFWbool _glfwWindowVisibleWin32(_GLFWwindow* window) +{ + return IsWindowVisible(window->win32.handle); +} + +GLFWbool _glfwWindowMaximizedWin32(_GLFWwindow* window) +{ + return IsZoomed(window->win32.handle); +} + +GLFWbool _glfwWindowHoveredWin32(_GLFWwindow* window) +{ + return cursorInContentArea(window); +} + +GLFWbool _glfwFramebufferTransparentWin32(_GLFWwindow* window) +{ + BOOL composition, opaque; + DWORD color; + + if (!window->win32.transparent) + return GLFW_FALSE; + + if (!IsWindowsVistaOrGreater()) + return GLFW_FALSE; + + if (FAILED(DwmIsCompositionEnabled(&composition)) || !composition) + return GLFW_FALSE; + + if (!IsWindows8OrGreater()) + { + // HACK: Disable framebuffer transparency on Windows 7 when the + // colorization color is opaque, because otherwise the window + // contents is blended additively with the previous frame instead + // of replacing it + if (FAILED(DwmGetColorizationColor(&color, &opaque)) || opaque) + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +void _glfwSetWindowResizableWin32(_GLFWwindow* window, GLFWbool enabled) +{ + updateWindowStyles(window); +} + +void _glfwSetWindowDecoratedWin32(_GLFWwindow* window, GLFWbool enabled) +{ + updateWindowStyles(window); +} + +void _glfwSetWindowFloatingWin32(_GLFWwindow* window, GLFWbool enabled) +{ + const HWND after = enabled ? HWND_TOPMOST : HWND_NOTOPMOST; + SetWindowPos(window->win32.handle, after, 0, 0, 0, 0, + SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); +} + +void _glfwSetWindowMousePassthroughWin32(_GLFWwindow* window, GLFWbool enabled) +{ + COLORREF key = 0; + BYTE alpha = 0; + DWORD flags = 0; + DWORD exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); + + if (exStyle & WS_EX_LAYERED) + GetLayeredWindowAttributes(window->win32.handle, &key, &alpha, &flags); + + if (enabled) + exStyle |= (WS_EX_TRANSPARENT | WS_EX_LAYERED); + else + { + exStyle &= ~WS_EX_TRANSPARENT; + // NOTE: Window opacity also needs the layered window style so do not + // remove it if the window is alpha blended + if (exStyle & WS_EX_LAYERED) + { + if (!(flags & LWA_ALPHA)) + exStyle &= ~WS_EX_LAYERED; + } + } + + SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle); + + if (enabled) + SetLayeredWindowAttributes(window->win32.handle, key, alpha, flags); +} + +float _glfwGetWindowOpacityWin32(_GLFWwindow* window) +{ + BYTE alpha; + DWORD flags; + + if ((GetWindowLongW(window->win32.handle, GWL_EXSTYLE) & WS_EX_LAYERED) && + GetLayeredWindowAttributes(window->win32.handle, NULL, &alpha, &flags)) + { + if (flags & LWA_ALPHA) + return alpha / 255.f; + } + + return 1.f; +} + +void _glfwSetWindowOpacityWin32(_GLFWwindow* window, float opacity) +{ + LONG exStyle = GetWindowLongW(window->win32.handle, GWL_EXSTYLE); + if (opacity < 1.f || (exStyle & WS_EX_TRANSPARENT)) + { + const BYTE alpha = (BYTE) (255 * opacity); + exStyle |= WS_EX_LAYERED; + SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle); + SetLayeredWindowAttributes(window->win32.handle, 0, alpha, LWA_ALPHA); + } + else if (exStyle & WS_EX_TRANSPARENT) + { + SetLayeredWindowAttributes(window->win32.handle, 0, 0, 0); + } + else + { + exStyle &= ~WS_EX_LAYERED; + SetWindowLongW(window->win32.handle, GWL_EXSTYLE, exStyle); + } +} + +void _glfwSetRawMouseMotionWin32(_GLFWwindow *window, GLFWbool enabled) +{ + if (_glfw.win32.disabledCursorWindow != window) + return; + + if (enabled) + enableRawMouseMotion(window); + else + disableRawMouseMotion(window); +} + +GLFWbool _glfwRawMouseMotionSupportedWin32(void) +{ + return GLFW_TRUE; +} + +void _glfwPollEventsWin32(void) +{ + MSG msg; + HWND handle; + _GLFWwindow* window; + + while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) + { + if (msg.message == WM_QUIT) + { + // NOTE: While GLFW does not itself post WM_QUIT, other processes + // may post it to this one, for example Task Manager + // HACK: Treat WM_QUIT as a close on all windows + + window = _glfw.windowListHead; + while (window) + { + _glfwInputWindowCloseRequest(window); + window = window->next; + } + } + else + { + TranslateMessage(&msg); + DispatchMessageW(&msg); + } + } + + // HACK: Release modifier keys that the system did not emit KEYUP for + // NOTE: Shift keys on Windows tend to "stick" when both are pressed as + // no key up message is generated by the first key release + // NOTE: Windows key is not reported as released by the Win+V hotkey + // Other Win hotkeys are handled implicitly by _glfwInputWindowFocus + // because they change the input focus + // NOTE: The other half of this is in the WM_*KEY* handler in windowProc + handle = GetActiveWindow(); + if (handle) + { + window = GetPropW(handle, L"GLFW"); + if (window) + { + int i; + const int keys[4][2] = + { + { VK_LSHIFT, GLFW_KEY_LEFT_SHIFT }, + { VK_RSHIFT, GLFW_KEY_RIGHT_SHIFT }, + { VK_LWIN, GLFW_KEY_LEFT_SUPER }, + { VK_RWIN, GLFW_KEY_RIGHT_SUPER } + }; + + for (i = 0; i < 4; i++) + { + const int vk = keys[i][0]; + const int key = keys[i][1]; + const int scancode = _glfw.win32.scancodes[key]; + + if ((GetKeyState(vk) & 0x8000)) + continue; + if (window->keys[key] != GLFW_PRESS) + continue; + + _glfwInputKey(window, key, scancode, GLFW_RELEASE, getKeyMods()); + } + } + } + + window = _glfw.win32.disabledCursorWindow; + if (window) + { + int width, height; + _glfwGetWindowSizeWin32(window, &width, &height); + + // NOTE: Re-center the cursor only if it has moved since the last call, + // to avoid breaking glfwWaitEvents with WM_MOUSEMOVE + if (window->win32.lastCursorPosX != width / 2 || + window->win32.lastCursorPosY != height / 2) + { + _glfwSetCursorPosWin32(window, width / 2, height / 2); + } + } +} + +void _glfwWaitEventsWin32(void) +{ + WaitMessage(); + + _glfwPollEventsWin32(); +} + +void _glfwWaitEventsTimeoutWin32(double timeout) +{ + MsgWaitForMultipleObjects(0, NULL, FALSE, (DWORD) (timeout * 1e3), QS_ALLEVENTS); + + _glfwPollEventsWin32(); +} + +void _glfwPostEmptyEventWin32(void) +{ + PostMessageW(_glfw.win32.helperWindowHandle, WM_NULL, 0, 0); +} + +void _glfwGetCursorPosWin32(_GLFWwindow* window, double* xpos, double* ypos) +{ + POINT pos; + + if (GetCursorPos(&pos)) + { + ScreenToClient(window->win32.handle, &pos); + + if (xpos) + *xpos = pos.x; + if (ypos) + *ypos = pos.y; + } +} + +void _glfwSetCursorPosWin32(_GLFWwindow* window, double xpos, double ypos) +{ + POINT pos = { (int) xpos, (int) ypos }; + + // Store the new position so it can be recognized later + window->win32.lastCursorPosX = pos.x; + window->win32.lastCursorPosY = pos.y; + + ClientToScreen(window->win32.handle, &pos); + SetCursorPos(pos.x, pos.y); +} + +void _glfwSetCursorModeWin32(_GLFWwindow* window, int mode) +{ + if (_glfwWindowFocusedWin32(window)) + { + if (mode == GLFW_CURSOR_DISABLED) + { + _glfwGetCursorPosWin32(window, + &_glfw.win32.restoreCursorPosX, + &_glfw.win32.restoreCursorPosY); + _glfwCenterCursorInContentArea(window); + if (window->rawMouseMotion) + enableRawMouseMotion(window); + } + else if (_glfw.win32.disabledCursorWindow == window) + { + if (window->rawMouseMotion) + disableRawMouseMotion(window); + } + + if (mode == GLFW_CURSOR_DISABLED || mode == GLFW_CURSOR_CAPTURED) + captureCursor(window); + else + releaseCursor(); + + if (mode == GLFW_CURSOR_DISABLED) + _glfw.win32.disabledCursorWindow = window; + else if (_glfw.win32.disabledCursorWindow == window) + { + _glfw.win32.disabledCursorWindow = NULL; + _glfwSetCursorPosWin32(window, + _glfw.win32.restoreCursorPosX, + _glfw.win32.restoreCursorPosY); + } + } + + if (cursorInContentArea(window)) + updateCursorImage(window); +} + +const char* _glfwGetScancodeNameWin32(int scancode) +{ + if (scancode < 0 || scancode > (KF_EXTENDED | 0xff) || + _glfw.win32.keycodes[scancode] == GLFW_KEY_UNKNOWN) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode); + return NULL; + } + + return _glfw.win32.keynames[_glfw.win32.keycodes[scancode]]; +} + +int _glfwGetKeyScancodeWin32(int key) +{ + return _glfw.win32.scancodes[key]; +} + +GLFWbool _glfwCreateCursorWin32(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + cursor->win32.handle = (HCURSOR) createIcon(image, xhot, yhot, GLFW_FALSE); + if (!cursor->win32.handle) + return GLFW_FALSE; + + return GLFW_TRUE; +} + +GLFWbool _glfwCreateStandardCursorWin32(_GLFWcursor* cursor, int shape) +{ + int id = 0; + + switch (shape) + { + case GLFW_ARROW_CURSOR: + id = OCR_NORMAL; + break; + case GLFW_IBEAM_CURSOR: + id = OCR_IBEAM; + break; + case GLFW_CROSSHAIR_CURSOR: + id = OCR_CROSS; + break; + case GLFW_POINTING_HAND_CURSOR: + id = OCR_HAND; + break; + case GLFW_RESIZE_EW_CURSOR: + id = OCR_SIZEWE; + break; + case GLFW_RESIZE_NS_CURSOR: + id = OCR_SIZENS; + break; + case GLFW_RESIZE_NWSE_CURSOR: + id = OCR_SIZENWSE; + break; + case GLFW_RESIZE_NESW_CURSOR: + id = OCR_SIZENESW; + break; + case GLFW_RESIZE_ALL_CURSOR: + id = OCR_SIZEALL; + break; + case GLFW_NOT_ALLOWED_CURSOR: + id = OCR_NO; + break; + default: + _glfwInputError(GLFW_PLATFORM_ERROR, "Win32: Unknown standard cursor"); + return GLFW_FALSE; + } + + cursor->win32.handle = LoadImageW(NULL, + MAKEINTRESOURCEW(id), IMAGE_CURSOR, 0, 0, + LR_DEFAULTSIZE | LR_SHARED); + if (!cursor->win32.handle) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to create standard cursor"); + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +void _glfwDestroyCursorWin32(_GLFWcursor* cursor) +{ + if (cursor->win32.handle) + DestroyIcon((HICON) cursor->win32.handle); +} + +void _glfwSetCursorWin32(_GLFWwindow* window, _GLFWcursor* cursor) +{ + if (cursorInContentArea(window)) + updateCursorImage(window); +} + +void _glfwSetClipboardStringWin32(const char* string) +{ + int characterCount; + HANDLE object; + WCHAR* buffer; + + characterCount = MultiByteToWideChar(CP_UTF8, 0, string, -1, NULL, 0); + if (!characterCount) + return; + + object = GlobalAlloc(GMEM_MOVEABLE, characterCount * sizeof(WCHAR)); + if (!object) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to allocate global handle for clipboard"); + return; + } + + buffer = GlobalLock(object); + if (!buffer) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to lock global handle"); + GlobalFree(object); + return; + } + + MultiByteToWideChar(CP_UTF8, 0, string, -1, buffer, characterCount); + GlobalUnlock(object); + + if (!OpenClipboard(_glfw.win32.helperWindowHandle)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to open clipboard"); + GlobalFree(object); + return; + } + + EmptyClipboard(); + SetClipboardData(CF_UNICODETEXT, object); + CloseClipboard(); +} + +const char* _glfwGetClipboardStringWin32(void) +{ + HANDLE object; + WCHAR* buffer; + + if (!OpenClipboard(_glfw.win32.helperWindowHandle)) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to open clipboard"); + return NULL; + } + + object = GetClipboardData(CF_UNICODETEXT); + if (!object) + { + _glfwInputErrorWin32(GLFW_FORMAT_UNAVAILABLE, + "Win32: Failed to convert clipboard to string"); + CloseClipboard(); + return NULL; + } + + buffer = GlobalLock(object); + if (!buffer) + { + _glfwInputErrorWin32(GLFW_PLATFORM_ERROR, + "Win32: Failed to lock global handle"); + CloseClipboard(); + return NULL; + } + + _glfw_free(_glfw.win32.clipboardString); + _glfw.win32.clipboardString = _glfwCreateUTF8FromWideStringWin32(buffer); + + GlobalUnlock(object); + CloseClipboard(); + + return _glfw.win32.clipboardString; +} + +EGLenum _glfwGetEGLPlatformWin32(EGLint** attribs) +{ + if (_glfw.egl.ANGLE_platform_angle) + { + int type = 0; + + if (_glfw.egl.ANGLE_platform_angle_opengl) + { + if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_OPENGL) + type = EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE; + else if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_OPENGLES) + type = EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE; + } + + if (_glfw.egl.ANGLE_platform_angle_d3d) + { + if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_D3D9) + type = EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE; + else if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_D3D11) + type = EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE; + } + + if (_glfw.egl.ANGLE_platform_angle_vulkan) + { + if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_VULKAN) + type = EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE; + } + + if (type) + { + *attribs = _glfw_calloc(3, sizeof(EGLint)); + (*attribs)[0] = EGL_PLATFORM_ANGLE_TYPE_ANGLE; + (*attribs)[1] = type; + (*attribs)[2] = EGL_NONE; + return EGL_PLATFORM_ANGLE_ANGLE; + } + } + + return 0; +} + +EGLNativeDisplayType _glfwGetEGLNativeDisplayWin32(void) +{ + return GetDC(_glfw.win32.helperWindowHandle); +} + +EGLNativeWindowType _glfwGetEGLNativeWindowWin32(_GLFWwindow* window) +{ + return window->win32.handle; +} + +void _glfwGetRequiredInstanceExtensionsWin32(char** extensions) +{ + if (!_glfw.vk.KHR_surface || !_glfw.vk.KHR_win32_surface) + return; + + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_KHR_win32_surface"; +} + +GLFWbool _glfwGetPhysicalDevicePresentationSupportWin32(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR + vkGetPhysicalDeviceWin32PresentationSupportKHR = + (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) + vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWin32PresentationSupportKHR"); + if (!vkGetPhysicalDeviceWin32PresentationSupportKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); + return GLFW_FALSE; + } + + return vkGetPhysicalDeviceWin32PresentationSupportKHR(device, queuefamily); +} + +VkResult _glfwCreateWindowSurfaceWin32(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + VkResult err; + VkWin32SurfaceCreateInfoKHR sci; + PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR; + + vkCreateWin32SurfaceKHR = (PFN_vkCreateWin32SurfaceKHR) + vkGetInstanceProcAddr(instance, "vkCreateWin32SurfaceKHR"); + if (!vkCreateWin32SurfaceKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Win32: Vulkan instance missing VK_KHR_win32_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR; + sci.hinstance = _glfw.win32.instance; + sci.hwnd = window->win32.handle; + + err = vkCreateWin32SurfaceKHR(instance, &sci, allocator, surface); + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Win32: Failed to create Vulkan surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; +} + +GLFWAPI HWND glfwGetWin32Window(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (_glfw.platform.platformID != GLFW_PLATFORM_WIN32) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "Win32: Platform not initialized"); + return NULL; + } + + return window->win32.handle; +} + diff --git a/thirdparty/imgui_suite/glfw/src/window.c b/thirdparty/imgui_suite/glfw/src/window.c new file mode 100644 index 00000000000..1c8519ff748 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/window.c @@ -0,0 +1,1155 @@ +//======================================================================== +// GLFW 3.4 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// Copyright (c) 2012 Torsten Walluhn +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// Please use C89 style variable declarations in this file because VS 2010 +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include + + +////////////////////////////////////////////////////////////////////////// +////// GLFW event API ////// +////////////////////////////////////////////////////////////////////////// + +// Notifies shared code that a window has lost or received input focus +// +void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused) +{ + assert(window != NULL); + assert(focused == GLFW_TRUE || focused == GLFW_FALSE); + + if (window->callbacks.focus) + window->callbacks.focus((GLFWwindow*) window, focused); + + if (!focused) + { + int key, button; + + for (key = 0; key <= GLFW_KEY_LAST; key++) + { + if (window->keys[key] == GLFW_PRESS) + { + const int scancode = _glfw.platform.getKeyScancode(key); + _glfwInputKey(window, key, scancode, GLFW_RELEASE, 0); + } + } + + for (button = 0; button <= GLFW_MOUSE_BUTTON_LAST; button++) + { + if (window->mouseButtons[button] == GLFW_PRESS) + _glfwInputMouseClick(window, button, GLFW_RELEASE, 0); + } + } +} + +// Notifies shared code that a window has moved +// The position is specified in content area relative screen coordinates +// +void _glfwInputWindowPos(_GLFWwindow* window, int x, int y) +{ + assert(window != NULL); + + if (window->callbacks.pos) + window->callbacks.pos((GLFWwindow*) window, x, y); +} + +// Notifies shared code that a window has been resized +// The size is specified in screen coordinates +// +void _glfwInputWindowSize(_GLFWwindow* window, int width, int height) +{ + assert(window != NULL); + assert(width >= 0); + assert(height >= 0); + + if (window->callbacks.size) + window->callbacks.size((GLFWwindow*) window, width, height); +} + +// Notifies shared code that a window has been iconified or restored +// +void _glfwInputWindowIconify(_GLFWwindow* window, GLFWbool iconified) +{ + assert(window != NULL); + assert(iconified == GLFW_TRUE || iconified == GLFW_FALSE); + + if (window->callbacks.iconify) + window->callbacks.iconify((GLFWwindow*) window, iconified); +} + +// Notifies shared code that a window has been maximized or restored +// +void _glfwInputWindowMaximize(_GLFWwindow* window, GLFWbool maximized) +{ + assert(window != NULL); + assert(maximized == GLFW_TRUE || maximized == GLFW_FALSE); + + if (window->callbacks.maximize) + window->callbacks.maximize((GLFWwindow*) window, maximized); +} + +// Notifies shared code that a window framebuffer has been resized +// The size is specified in pixels +// +void _glfwInputFramebufferSize(_GLFWwindow* window, int width, int height) +{ + assert(window != NULL); + assert(width >= 0); + assert(height >= 0); + + if (window->callbacks.fbsize) + window->callbacks.fbsize((GLFWwindow*) window, width, height); +} + +// Notifies shared code that a window content scale has changed +// The scale is specified as the ratio between the current and default DPI +// +void _glfwInputWindowContentScale(_GLFWwindow* window, float xscale, float yscale) +{ + assert(window != NULL); + assert(xscale > 0.f); + assert(xscale < FLT_MAX); + assert(yscale > 0.f); + assert(yscale < FLT_MAX); + + if (window->callbacks.scale) + window->callbacks.scale((GLFWwindow*) window, xscale, yscale); +} + +// Notifies shared code that the window contents needs updating +// +void _glfwInputWindowDamage(_GLFWwindow* window) +{ + assert(window != NULL); + + if (window->callbacks.refresh) + window->callbacks.refresh((GLFWwindow*) window); +} + +// Notifies shared code that the user wishes to close a window +// +void _glfwInputWindowCloseRequest(_GLFWwindow* window) +{ + assert(window != NULL); + + window->shouldClose = GLFW_TRUE; + + if (window->callbacks.close) + window->callbacks.close((GLFWwindow*) window); +} + +// Notifies shared code that a window has changed its desired monitor +// +void _glfwInputWindowMonitor(_GLFWwindow* window, _GLFWmonitor* monitor) +{ + assert(window != NULL); + window->monitor = monitor; +} + +////////////////////////////////////////////////////////////////////////// +////// GLFW public API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, + const char* title, + GLFWmonitor* monitor, + GLFWwindow* share) +{ + _GLFWfbconfig fbconfig; + _GLFWctxconfig ctxconfig; + _GLFWwndconfig wndconfig; + _GLFWwindow* window; + + assert(title != NULL); + assert(width >= 0); + assert(height >= 0); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (width <= 0 || height <= 0) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid window size %ix%i", + width, height); + + return NULL; + } + + fbconfig = _glfw.hints.framebuffer; + ctxconfig = _glfw.hints.context; + wndconfig = _glfw.hints.window; + + wndconfig.width = width; + wndconfig.height = height; + wndconfig.title = title; + ctxconfig.share = (_GLFWwindow*) share; + + if (!_glfwIsValidContextConfig(&ctxconfig)) + return NULL; + + window = _glfw_calloc(1, sizeof(_GLFWwindow)); + window->next = _glfw.windowListHead; + _glfw.windowListHead = window; + + window->videoMode.width = width; + window->videoMode.height = height; + window->videoMode.redBits = fbconfig.redBits; + window->videoMode.greenBits = fbconfig.greenBits; + window->videoMode.blueBits = fbconfig.blueBits; + window->videoMode.refreshRate = _glfw.hints.refreshRate; + + window->monitor = (_GLFWmonitor*) monitor; + window->resizable = wndconfig.resizable; + window->decorated = wndconfig.decorated; + window->autoIconify = wndconfig.autoIconify; + window->floating = wndconfig.floating; + window->focusOnShow = wndconfig.focusOnShow; + window->mousePassthrough = wndconfig.mousePassthrough; + window->cursorMode = GLFW_CURSOR_NORMAL; + + window->doublebuffer = fbconfig.doublebuffer; + + window->minwidth = GLFW_DONT_CARE; + window->minheight = GLFW_DONT_CARE; + window->maxwidth = GLFW_DONT_CARE; + window->maxheight = GLFW_DONT_CARE; + window->numer = GLFW_DONT_CARE; + window->denom = GLFW_DONT_CARE; + + if (!_glfw.platform.createWindow(window, &wndconfig, &ctxconfig, &fbconfig)) + { + glfwDestroyWindow((GLFWwindow*) window); + return NULL; + } + + return (GLFWwindow*) window; +} + +void glfwDefaultWindowHints(void) +{ + _GLFW_REQUIRE_INIT(); + + // The default is OpenGL with minimum version 1.0 + memset(&_glfw.hints.context, 0, sizeof(_glfw.hints.context)); + _glfw.hints.context.client = GLFW_OPENGL_API; + _glfw.hints.context.source = GLFW_NATIVE_CONTEXT_API; + _glfw.hints.context.major = 1; + _glfw.hints.context.minor = 0; + + // The default is a focused, visible, resizable window with decorations + memset(&_glfw.hints.window, 0, sizeof(_glfw.hints.window)); + _glfw.hints.window.resizable = GLFW_TRUE; + _glfw.hints.window.visible = GLFW_TRUE; + _glfw.hints.window.decorated = GLFW_TRUE; + _glfw.hints.window.focused = GLFW_TRUE; + _glfw.hints.window.autoIconify = GLFW_TRUE; + _glfw.hints.window.centerCursor = GLFW_TRUE; + _glfw.hints.window.focusOnShow = GLFW_TRUE; + _glfw.hints.window.xpos = GLFW_ANY_POSITION; + _glfw.hints.window.ypos = GLFW_ANY_POSITION; + + // The default is 24 bits of color, 24 bits of depth and 8 bits of stencil, + // double buffered + memset(&_glfw.hints.framebuffer, 0, sizeof(_glfw.hints.framebuffer)); + _glfw.hints.framebuffer.redBits = 8; + _glfw.hints.framebuffer.greenBits = 8; + _glfw.hints.framebuffer.blueBits = 8; + _glfw.hints.framebuffer.alphaBits = 8; + _glfw.hints.framebuffer.depthBits = 24; + _glfw.hints.framebuffer.stencilBits = 8; + _glfw.hints.framebuffer.doublebuffer = GLFW_TRUE; + + // The default is to select the highest available refresh rate + _glfw.hints.refreshRate = GLFW_DONT_CARE; + + // The default is to use full Retina resolution framebuffers + _glfw.hints.window.ns.retina = GLFW_TRUE; +} + +GLFWAPI void glfwWindowHint(int hint, int value) +{ + _GLFW_REQUIRE_INIT(); + + switch (hint) + { + case GLFW_RED_BITS: + _glfw.hints.framebuffer.redBits = value; + return; + case GLFW_GREEN_BITS: + _glfw.hints.framebuffer.greenBits = value; + return; + case GLFW_BLUE_BITS: + _glfw.hints.framebuffer.blueBits = value; + return; + case GLFW_ALPHA_BITS: + _glfw.hints.framebuffer.alphaBits = value; + return; + case GLFW_DEPTH_BITS: + _glfw.hints.framebuffer.depthBits = value; + return; + case GLFW_STENCIL_BITS: + _glfw.hints.framebuffer.stencilBits = value; + return; + case GLFW_ACCUM_RED_BITS: + _glfw.hints.framebuffer.accumRedBits = value; + return; + case GLFW_ACCUM_GREEN_BITS: + _glfw.hints.framebuffer.accumGreenBits = value; + return; + case GLFW_ACCUM_BLUE_BITS: + _glfw.hints.framebuffer.accumBlueBits = value; + return; + case GLFW_ACCUM_ALPHA_BITS: + _glfw.hints.framebuffer.accumAlphaBits = value; + return; + case GLFW_AUX_BUFFERS: + _glfw.hints.framebuffer.auxBuffers = value; + return; + case GLFW_STEREO: + _glfw.hints.framebuffer.stereo = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_DOUBLEBUFFER: + _glfw.hints.framebuffer.doublebuffer = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_TRANSPARENT_FRAMEBUFFER: + _glfw.hints.framebuffer.transparent = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_SAMPLES: + _glfw.hints.framebuffer.samples = value; + return; + case GLFW_SRGB_CAPABLE: + _glfw.hints.framebuffer.sRGB = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_RESIZABLE: + _glfw.hints.window.resizable = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_DECORATED: + _glfw.hints.window.decorated = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_FOCUSED: + _glfw.hints.window.focused = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_AUTO_ICONIFY: + _glfw.hints.window.autoIconify = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_FLOATING: + _glfw.hints.window.floating = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_MAXIMIZED: + _glfw.hints.window.maximized = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_VISIBLE: + _glfw.hints.window.visible = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_POSITION_X: + _glfw.hints.window.xpos = value; + return; + case GLFW_POSITION_Y: + _glfw.hints.window.ypos = value; + return; + case GLFW_COCOA_RETINA_FRAMEBUFFER: + _glfw.hints.window.ns.retina = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_WIN32_KEYBOARD_MENU: + _glfw.hints.window.win32.keymenu = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_COCOA_GRAPHICS_SWITCHING: + _glfw.hints.context.nsgl.offline = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_SCALE_TO_MONITOR: + _glfw.hints.window.scaleToMonitor = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_CENTER_CURSOR: + _glfw.hints.window.centerCursor = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_FOCUS_ON_SHOW: + _glfw.hints.window.focusOnShow = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_MOUSE_PASSTHROUGH: + _glfw.hints.window.mousePassthrough = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_CLIENT_API: + _glfw.hints.context.client = value; + return; + case GLFW_CONTEXT_CREATION_API: + _glfw.hints.context.source = value; + return; + case GLFW_CONTEXT_VERSION_MAJOR: + _glfw.hints.context.major = value; + return; + case GLFW_CONTEXT_VERSION_MINOR: + _glfw.hints.context.minor = value; + return; + case GLFW_CONTEXT_ROBUSTNESS: + _glfw.hints.context.robustness = value; + return; + case GLFW_OPENGL_FORWARD_COMPAT: + _glfw.hints.context.forward = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_CONTEXT_DEBUG: + _glfw.hints.context.debug = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_CONTEXT_NO_ERROR: + _glfw.hints.context.noerror = value ? GLFW_TRUE : GLFW_FALSE; + return; + case GLFW_OPENGL_PROFILE: + _glfw.hints.context.profile = value; + return; + case GLFW_CONTEXT_RELEASE_BEHAVIOR: + _glfw.hints.context.release = value; + return; + case GLFW_REFRESH_RATE: + _glfw.hints.refreshRate = value; + return; + } + + _glfwInputError(GLFW_INVALID_ENUM, "Invalid window hint 0x%08X", hint); +} + +GLFWAPI void glfwWindowHintString(int hint, const char* value) +{ + assert(value != NULL); + + _GLFW_REQUIRE_INIT(); + + switch (hint) + { + case GLFW_COCOA_FRAME_NAME: + strncpy(_glfw.hints.window.ns.frameName, value, + sizeof(_glfw.hints.window.ns.frameName) - 1); + return; + case GLFW_X11_CLASS_NAME: + strncpy(_glfw.hints.window.x11.className, value, + sizeof(_glfw.hints.window.x11.className) - 1); + return; + case GLFW_X11_INSTANCE_NAME: + strncpy(_glfw.hints.window.x11.instanceName, value, + sizeof(_glfw.hints.window.x11.instanceName) - 1); + return; + case GLFW_WAYLAND_APP_ID: + strncpy(_glfw.hints.window.wl.appId, value, + sizeof(_glfw.hints.window.wl.appId) - 1); + return; + } + + _glfwInputError(GLFW_INVALID_ENUM, "Invalid window hint string 0x%08X", hint); +} + +GLFWAPI void glfwDestroyWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + + _GLFW_REQUIRE_INIT(); + + // Allow closing of NULL (to match the behavior of free) + if (window == NULL) + return; + + // Clear all callbacks to avoid exposing a half torn-down window object + memset(&window->callbacks, 0, sizeof(window->callbacks)); + + // The window's context must not be current on another thread when the + // window is destroyed + if (window == _glfwPlatformGetTls(&_glfw.contextSlot)) + glfwMakeContextCurrent(NULL); + + _glfw.platform.destroyWindow(window); + + // Unlink window from global linked list + { + _GLFWwindow** prev = &_glfw.windowListHead; + + while (*prev != window) + prev = &((*prev)->next); + + *prev = window->next; + } + + _glfw_free(window); +} + +GLFWAPI int glfwWindowShouldClose(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(0); + return window->shouldClose; +} + +GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* handle, int value) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + window->shouldClose = value; +} + +GLFWAPI void glfwSetWindowTitle(GLFWwindow* handle, const char* title) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + assert(title != NULL); + + _GLFW_REQUIRE_INIT(); + _glfw.platform.setWindowTitle(window, title); +} + +GLFWAPI void glfwSetWindowIcon(GLFWwindow* handle, + int count, const GLFWimage* images) +{ + int i; + _GLFWwindow* window = (_GLFWwindow*) handle; + + assert(window != NULL); + assert(count >= 0); + assert(count == 0 || images != NULL); + + _GLFW_REQUIRE_INIT(); + + if (count < 0) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid image count for window icon"); + return; + } + + for (i = 0; i < count; i++) + { + assert(images[i].pixels != NULL); + + if (images[i].width <= 0 || images[i].height <= 0) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid image dimensions for window icon"); + return; + } + } + + _glfw.platform.setWindowIcon(window, count, images); +} + +GLFWAPI void glfwGetWindowPos(GLFWwindow* handle, int* xpos, int* ypos) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + if (xpos) + *xpos = 0; + if (ypos) + *ypos = 0; + + _GLFW_REQUIRE_INIT(); + _glfw.platform.getWindowPos(window, xpos, ypos); +} + +GLFWAPI void glfwSetWindowPos(GLFWwindow* handle, int xpos, int ypos) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + if (window->monitor) + return; + + _glfw.platform.setWindowPos(window, xpos, ypos); +} + +GLFWAPI void glfwGetWindowSize(GLFWwindow* handle, int* width, int* height) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + if (width) + *width = 0; + if (height) + *height = 0; + + _GLFW_REQUIRE_INIT(); + _glfw.platform.getWindowSize(window, width, height); +} + +GLFWAPI void glfwSetWindowSize(GLFWwindow* handle, int width, int height) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + assert(width >= 0); + assert(height >= 0); + + _GLFW_REQUIRE_INIT(); + + window->videoMode.width = width; + window->videoMode.height = height; + + _glfw.platform.setWindowSize(window, width, height); +} + +GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* handle, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + if (minwidth != GLFW_DONT_CARE && minheight != GLFW_DONT_CARE) + { + if (minwidth < 0 || minheight < 0) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid window minimum size %ix%i", + minwidth, minheight); + return; + } + } + + if (maxwidth != GLFW_DONT_CARE && maxheight != GLFW_DONT_CARE) + { + if (maxwidth < 0 || maxheight < 0 || + maxwidth < minwidth || maxheight < minheight) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid window maximum size %ix%i", + maxwidth, maxheight); + return; + } + } + + window->minwidth = minwidth; + window->minheight = minheight; + window->maxwidth = maxwidth; + window->maxheight = maxheight; + + if (window->monitor || !window->resizable) + return; + + _glfw.platform.setWindowSizeLimits(window, + minwidth, minheight, + maxwidth, maxheight); +} + +GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* handle, int numer, int denom) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + assert(numer != 0); + assert(denom != 0); + + _GLFW_REQUIRE_INIT(); + + if (numer != GLFW_DONT_CARE && denom != GLFW_DONT_CARE) + { + if (numer <= 0 || denom <= 0) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid window aspect ratio %i:%i", + numer, denom); + return; + } + } + + window->numer = numer; + window->denom = denom; + + if (window->monitor || !window->resizable) + return; + + _glfw.platform.setWindowAspectRatio(window, numer, denom); +} + +GLFWAPI void glfwGetFramebufferSize(GLFWwindow* handle, int* width, int* height) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + if (width) + *width = 0; + if (height) + *height = 0; + + _GLFW_REQUIRE_INIT(); + _glfw.platform.getFramebufferSize(window, width, height); +} + +GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* handle, + int* left, int* top, + int* right, int* bottom) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + if (left) + *left = 0; + if (top) + *top = 0; + if (right) + *right = 0; + if (bottom) + *bottom = 0; + + _GLFW_REQUIRE_INIT(); + _glfw.platform.getWindowFrameSize(window, left, top, right, bottom); +} + +GLFWAPI void glfwGetWindowContentScale(GLFWwindow* handle, + float* xscale, float* yscale) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + if (xscale) + *xscale = 0.f; + if (yscale) + *yscale = 0.f; + + _GLFW_REQUIRE_INIT(); + _glfw.platform.getWindowContentScale(window, xscale, yscale); +} + +GLFWAPI float glfwGetWindowOpacity(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(1.f); + return _glfw.platform.getWindowOpacity(window); +} + +GLFWAPI void glfwSetWindowOpacity(GLFWwindow* handle, float opacity) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + assert(opacity == opacity); + assert(opacity >= 0.f); + assert(opacity <= 1.f); + + _GLFW_REQUIRE_INIT(); + + if (opacity != opacity || opacity < 0.f || opacity > 1.f) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid window opacity %f", opacity); + return; + } + + _glfw.platform.setWindowOpacity(window, opacity); +} + +GLFWAPI void glfwIconifyWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + _glfw.platform.iconifyWindow(window); +} + +GLFWAPI void glfwRestoreWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + _glfw.platform.restoreWindow(window); +} + +GLFWAPI void glfwMaximizeWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + if (window->monitor) + return; + + _glfw.platform.maximizeWindow(window); +} + +GLFWAPI void glfwShowWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + if (window->monitor) + return; + + _glfw.platform.showWindow(window); + + if (window->focusOnShow) + _glfw.platform.focusWindow(window); +} + +GLFWAPI void glfwRequestWindowAttention(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + _glfw.platform.requestWindowAttention(window); +} + +GLFWAPI void glfwHideWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + if (window->monitor) + return; + + _glfw.platform.hideWindow(window); +} + +GLFWAPI void glfwFocusWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + _glfw.platform.focusWindow(window); +} + +GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(0); + + switch (attrib) + { + case GLFW_FOCUSED: + return _glfw.platform.windowFocused(window); + case GLFW_ICONIFIED: + return _glfw.platform.windowIconified(window); + case GLFW_VISIBLE: + return _glfw.platform.windowVisible(window); + case GLFW_MAXIMIZED: + return _glfw.platform.windowMaximized(window); + case GLFW_HOVERED: + return _glfw.platform.windowHovered(window); + case GLFW_FOCUS_ON_SHOW: + return window->focusOnShow; + case GLFW_MOUSE_PASSTHROUGH: + return window->mousePassthrough; + case GLFW_TRANSPARENT_FRAMEBUFFER: + return _glfw.platform.framebufferTransparent(window); + case GLFW_RESIZABLE: + return window->resizable; + case GLFW_DECORATED: + return window->decorated; + case GLFW_FLOATING: + return window->floating; + case GLFW_AUTO_ICONIFY: + return window->autoIconify; + case GLFW_DOUBLEBUFFER: + return window->doublebuffer; + case GLFW_CLIENT_API: + return window->context.client; + case GLFW_CONTEXT_CREATION_API: + return window->context.source; + case GLFW_CONTEXT_VERSION_MAJOR: + return window->context.major; + case GLFW_CONTEXT_VERSION_MINOR: + return window->context.minor; + case GLFW_CONTEXT_REVISION: + return window->context.revision; + case GLFW_CONTEXT_ROBUSTNESS: + return window->context.robustness; + case GLFW_OPENGL_FORWARD_COMPAT: + return window->context.forward; + case GLFW_CONTEXT_DEBUG: + return window->context.debug; + case GLFW_OPENGL_PROFILE: + return window->context.profile; + case GLFW_CONTEXT_RELEASE_BEHAVIOR: + return window->context.release; + case GLFW_CONTEXT_NO_ERROR: + return window->context.noerror; + } + + _glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute 0x%08X", attrib); + return 0; +} + +GLFWAPI void glfwSetWindowAttrib(GLFWwindow* handle, int attrib, int value) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + + value = value ? GLFW_TRUE : GLFW_FALSE; + + switch (attrib) + { + case GLFW_AUTO_ICONIFY: + window->autoIconify = value; + return; + + case GLFW_RESIZABLE: + window->resizable = value; + if (!window->monitor) + _glfw.platform.setWindowResizable(window, value); + return; + + case GLFW_DECORATED: + window->decorated = value; + if (!window->monitor) + _glfw.platform.setWindowDecorated(window, value); + return; + + case GLFW_FLOATING: + window->floating = value; + if (!window->monitor) + _glfw.platform.setWindowFloating(window, value); + return; + + case GLFW_FOCUS_ON_SHOW: + window->focusOnShow = value; + return; + + case GLFW_MOUSE_PASSTHROUGH: + window->mousePassthrough = value; + _glfw.platform.setWindowMousePassthrough(window, value); + return; + } + + _glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute 0x%08X", attrib); +} + +GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return (GLFWmonitor*) window->monitor; +} + +GLFWAPI void glfwSetWindowMonitor(GLFWwindow* wh, + GLFWmonitor* mh, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + _GLFWwindow* window = (_GLFWwindow*) wh; + _GLFWmonitor* monitor = (_GLFWmonitor*) mh; + assert(window != NULL); + assert(width >= 0); + assert(height >= 0); + + _GLFW_REQUIRE_INIT(); + + if (width <= 0 || height <= 0) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid window size %ix%i", + width, height); + return; + } + + if (refreshRate < 0 && refreshRate != GLFW_DONT_CARE) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Invalid refresh rate %i", + refreshRate); + return; + } + + window->videoMode.width = width; + window->videoMode.height = height; + window->videoMode.refreshRate = refreshRate; + + _glfw.platform.setWindowMonitor(window, monitor, + xpos, ypos, width, height, + refreshRate); +} + +GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* handle, void* pointer) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT(); + window->userPointer = pointer; +} + +GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return window->userPointer; +} + +GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* handle, + GLFWwindowposfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowposfun, window->callbacks.pos, cbfun); + return cbfun; +} + +GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* handle, + GLFWwindowsizefun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowsizefun, window->callbacks.size, cbfun); + return cbfun; +} + +GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* handle, + GLFWwindowclosefun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowclosefun, window->callbacks.close, cbfun); + return cbfun; +} + +GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* handle, + GLFWwindowrefreshfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowrefreshfun, window->callbacks.refresh, cbfun); + return cbfun; +} + +GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* handle, + GLFWwindowfocusfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowfocusfun, window->callbacks.focus, cbfun); + return cbfun; +} + +GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* handle, + GLFWwindowiconifyfun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowiconifyfun, window->callbacks.iconify, cbfun); + return cbfun; +} + +GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* handle, + GLFWwindowmaximizefun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowmaximizefun, window->callbacks.maximize, cbfun); + return cbfun; +} + +GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* handle, + GLFWframebuffersizefun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWframebuffersizefun, window->callbacks.fbsize, cbfun); + return cbfun; +} + +GLFWAPI GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback(GLFWwindow* handle, + GLFWwindowcontentscalefun cbfun) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + _GLFW_SWAP(GLFWwindowcontentscalefun, window->callbacks.scale, cbfun); + return cbfun; +} + +GLFWAPI void glfwPollEvents(void) +{ + _GLFW_REQUIRE_INIT(); + _glfw.platform.pollEvents(); +} + +GLFWAPI void glfwWaitEvents(void) +{ + _GLFW_REQUIRE_INIT(); + _glfw.platform.waitEvents(); +} + +GLFWAPI void glfwWaitEventsTimeout(double timeout) +{ + _GLFW_REQUIRE_INIT(); + assert(timeout == timeout); + assert(timeout >= 0.0); + assert(timeout <= DBL_MAX); + + if (timeout != timeout || timeout < 0.0 || timeout > DBL_MAX) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid time %f", timeout); + return; + } + + _glfw.platform.waitEventsTimeout(timeout); +} + +GLFWAPI void glfwPostEmptyEvent(void) +{ + _GLFW_REQUIRE_INIT(); + _glfw.platform.postEmptyEvent(); +} + diff --git a/thirdparty/imgui_suite/glfw/src/wl_init.c b/thirdparty/imgui_suite/glfw/src/wl_init.c new file mode 100644 index 00000000000..8cbcc6e8e97 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/wl_init.c @@ -0,0 +1,793 @@ +//======================================================================== +// GLFW 3.4 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "wayland-client-protocol.h" +#include "wayland-xdg-shell-client-protocol.h" +#include "wayland-xdg-decoration-client-protocol.h" +#include "wayland-viewporter-client-protocol.h" +#include "wayland-relative-pointer-unstable-v1-client-protocol.h" +#include "wayland-pointer-constraints-unstable-v1-client-protocol.h" +#include "wayland-idle-inhibit-unstable-v1-client-protocol.h" + +// NOTE: Versions of wayland-scanner prior to 1.17.91 named every global array of +// wl_interface pointers 'types', making it impossible to combine several unmodified +// private-code files into a single compilation unit +// HACK: We override this name with a macro for each file, allowing them to coexist + +#define types _glfw_wayland_types +#include "wayland-client-protocol-code.h" +#undef types + +#define types _glfw_xdg_shell_types +#include "wayland-xdg-shell-client-protocol-code.h" +#undef types + +#define types _glfw_xdg_decoration_types +#include "wayland-xdg-decoration-client-protocol-code.h" +#undef types + +#define types _glfw_viewporter_types +#include "wayland-viewporter-client-protocol-code.h" +#undef types + +#define types _glfw_relative_pointer_types +#include "wayland-relative-pointer-unstable-v1-client-protocol-code.h" +#undef types + +#define types _glfw_pointer_constraints_types +#include "wayland-pointer-constraints-unstable-v1-client-protocol-code.h" +#undef types + +#define types _glfw_idle_inhibit_types +#include "wayland-idle-inhibit-unstable-v1-client-protocol-code.h" +#undef types + +static void wmBaseHandlePing(void* userData, + struct xdg_wm_base* wmBase, + uint32_t serial) +{ + xdg_wm_base_pong(wmBase, serial); +} + +static const struct xdg_wm_base_listener wmBaseListener = +{ + wmBaseHandlePing +}; + +static void registryHandleGlobal(void* userData, + struct wl_registry* registry, + uint32_t name, + const char* interface, + uint32_t version) +{ + if (strcmp(interface, "wl_compositor") == 0) + { + _glfw.wl.compositorVersion = _glfw_min(3, version); + _glfw.wl.compositor = + wl_registry_bind(registry, name, &wl_compositor_interface, + _glfw.wl.compositorVersion); + } + else if (strcmp(interface, "wl_subcompositor") == 0) + { + _glfw.wl.subcompositor = + wl_registry_bind(registry, name, &wl_subcompositor_interface, 1); + } + else if (strcmp(interface, "wl_shm") == 0) + { + _glfw.wl.shm = + wl_registry_bind(registry, name, &wl_shm_interface, 1); + } + else if (strcmp(interface, "wl_output") == 0) + { + _glfwAddOutputWayland(name, version); + } + else if (strcmp(interface, "wl_seat") == 0) + { + if (!_glfw.wl.seat) + { + _glfw.wl.seatVersion = _glfw_min(4, version); + _glfw.wl.seat = + wl_registry_bind(registry, name, &wl_seat_interface, + _glfw.wl.seatVersion); + _glfwAddSeatListenerWayland(_glfw.wl.seat); + } + } + else if (strcmp(interface, "wl_data_device_manager") == 0) + { + if (!_glfw.wl.dataDeviceManager) + { + _glfw.wl.dataDeviceManager = + wl_registry_bind(registry, name, + &wl_data_device_manager_interface, 1); + } + } + else if (strcmp(interface, "xdg_wm_base") == 0) + { + _glfw.wl.wmBase = + wl_registry_bind(registry, name, &xdg_wm_base_interface, 1); + xdg_wm_base_add_listener(_glfw.wl.wmBase, &wmBaseListener, NULL); + } + else if (strcmp(interface, "zxdg_decoration_manager_v1") == 0) + { + _glfw.wl.decorationManager = + wl_registry_bind(registry, name, + &zxdg_decoration_manager_v1_interface, + 1); + } + else if (strcmp(interface, "wp_viewporter") == 0) + { + _glfw.wl.viewporter = + wl_registry_bind(registry, name, &wp_viewporter_interface, 1); + } + else if (strcmp(interface, "zwp_relative_pointer_manager_v1") == 0) + { + _glfw.wl.relativePointerManager = + wl_registry_bind(registry, name, + &zwp_relative_pointer_manager_v1_interface, + 1); + } + else if (strcmp(interface, "zwp_pointer_constraints_v1") == 0) + { + _glfw.wl.pointerConstraints = + wl_registry_bind(registry, name, + &zwp_pointer_constraints_v1_interface, + 1); + } + else if (strcmp(interface, "zwp_idle_inhibit_manager_v1") == 0) + { + _glfw.wl.idleInhibitManager = + wl_registry_bind(registry, name, + &zwp_idle_inhibit_manager_v1_interface, + 1); + } +} + +static void registryHandleGlobalRemove(void* userData, + struct wl_registry* registry, + uint32_t name) +{ + for (int i = 0; i < _glfw.monitorCount; ++i) + { + _GLFWmonitor* monitor = _glfw.monitors[i]; + if (monitor->wl.name == name) + { + _glfwInputMonitor(monitor, GLFW_DISCONNECTED, 0); + return; + } + } +} + + +static const struct wl_registry_listener registryListener = +{ + registryHandleGlobal, + registryHandleGlobalRemove +}; + +// Create key code translation tables +// +static void createKeyTables(void) +{ + memset(_glfw.wl.keycodes, -1, sizeof(_glfw.wl.keycodes)); + memset(_glfw.wl.scancodes, -1, sizeof(_glfw.wl.scancodes)); + + _glfw.wl.keycodes[KEY_GRAVE] = GLFW_KEY_GRAVE_ACCENT; + _glfw.wl.keycodes[KEY_1] = GLFW_KEY_1; + _glfw.wl.keycodes[KEY_2] = GLFW_KEY_2; + _glfw.wl.keycodes[KEY_3] = GLFW_KEY_3; + _glfw.wl.keycodes[KEY_4] = GLFW_KEY_4; + _glfw.wl.keycodes[KEY_5] = GLFW_KEY_5; + _glfw.wl.keycodes[KEY_6] = GLFW_KEY_6; + _glfw.wl.keycodes[KEY_7] = GLFW_KEY_7; + _glfw.wl.keycodes[KEY_8] = GLFW_KEY_8; + _glfw.wl.keycodes[KEY_9] = GLFW_KEY_9; + _glfw.wl.keycodes[KEY_0] = GLFW_KEY_0; + _glfw.wl.keycodes[KEY_SPACE] = GLFW_KEY_SPACE; + _glfw.wl.keycodes[KEY_MINUS] = GLFW_KEY_MINUS; + _glfw.wl.keycodes[KEY_EQUAL] = GLFW_KEY_EQUAL; + _glfw.wl.keycodes[KEY_Q] = GLFW_KEY_Q; + _glfw.wl.keycodes[KEY_W] = GLFW_KEY_W; + _glfw.wl.keycodes[KEY_E] = GLFW_KEY_E; + _glfw.wl.keycodes[KEY_R] = GLFW_KEY_R; + _glfw.wl.keycodes[KEY_T] = GLFW_KEY_T; + _glfw.wl.keycodes[KEY_Y] = GLFW_KEY_Y; + _glfw.wl.keycodes[KEY_U] = GLFW_KEY_U; + _glfw.wl.keycodes[KEY_I] = GLFW_KEY_I; + _glfw.wl.keycodes[KEY_O] = GLFW_KEY_O; + _glfw.wl.keycodes[KEY_P] = GLFW_KEY_P; + _glfw.wl.keycodes[KEY_LEFTBRACE] = GLFW_KEY_LEFT_BRACKET; + _glfw.wl.keycodes[KEY_RIGHTBRACE] = GLFW_KEY_RIGHT_BRACKET; + _glfw.wl.keycodes[KEY_A] = GLFW_KEY_A; + _glfw.wl.keycodes[KEY_S] = GLFW_KEY_S; + _glfw.wl.keycodes[KEY_D] = GLFW_KEY_D; + _glfw.wl.keycodes[KEY_F] = GLFW_KEY_F; + _glfw.wl.keycodes[KEY_G] = GLFW_KEY_G; + _glfw.wl.keycodes[KEY_H] = GLFW_KEY_H; + _glfw.wl.keycodes[KEY_J] = GLFW_KEY_J; + _glfw.wl.keycodes[KEY_K] = GLFW_KEY_K; + _glfw.wl.keycodes[KEY_L] = GLFW_KEY_L; + _glfw.wl.keycodes[KEY_SEMICOLON] = GLFW_KEY_SEMICOLON; + _glfw.wl.keycodes[KEY_APOSTROPHE] = GLFW_KEY_APOSTROPHE; + _glfw.wl.keycodes[KEY_Z] = GLFW_KEY_Z; + _glfw.wl.keycodes[KEY_X] = GLFW_KEY_X; + _glfw.wl.keycodes[KEY_C] = GLFW_KEY_C; + _glfw.wl.keycodes[KEY_V] = GLFW_KEY_V; + _glfw.wl.keycodes[KEY_B] = GLFW_KEY_B; + _glfw.wl.keycodes[KEY_N] = GLFW_KEY_N; + _glfw.wl.keycodes[KEY_M] = GLFW_KEY_M; + _glfw.wl.keycodes[KEY_COMMA] = GLFW_KEY_COMMA; + _glfw.wl.keycodes[KEY_DOT] = GLFW_KEY_PERIOD; + _glfw.wl.keycodes[KEY_SLASH] = GLFW_KEY_SLASH; + _glfw.wl.keycodes[KEY_BACKSLASH] = GLFW_KEY_BACKSLASH; + _glfw.wl.keycodes[KEY_ESC] = GLFW_KEY_ESCAPE; + _glfw.wl.keycodes[KEY_TAB] = GLFW_KEY_TAB; + _glfw.wl.keycodes[KEY_LEFTSHIFT] = GLFW_KEY_LEFT_SHIFT; + _glfw.wl.keycodes[KEY_RIGHTSHIFT] = GLFW_KEY_RIGHT_SHIFT; + _glfw.wl.keycodes[KEY_LEFTCTRL] = GLFW_KEY_LEFT_CONTROL; + _glfw.wl.keycodes[KEY_RIGHTCTRL] = GLFW_KEY_RIGHT_CONTROL; + _glfw.wl.keycodes[KEY_LEFTALT] = GLFW_KEY_LEFT_ALT; + _glfw.wl.keycodes[KEY_RIGHTALT] = GLFW_KEY_RIGHT_ALT; + _glfw.wl.keycodes[KEY_LEFTMETA] = GLFW_KEY_LEFT_SUPER; + _glfw.wl.keycodes[KEY_RIGHTMETA] = GLFW_KEY_RIGHT_SUPER; + _glfw.wl.keycodes[KEY_COMPOSE] = GLFW_KEY_MENU; + _glfw.wl.keycodes[KEY_NUMLOCK] = GLFW_KEY_NUM_LOCK; + _glfw.wl.keycodes[KEY_CAPSLOCK] = GLFW_KEY_CAPS_LOCK; + _glfw.wl.keycodes[KEY_PRINT] = GLFW_KEY_PRINT_SCREEN; + _glfw.wl.keycodes[KEY_SCROLLLOCK] = GLFW_KEY_SCROLL_LOCK; + _glfw.wl.keycodes[KEY_PAUSE] = GLFW_KEY_PAUSE; + _glfw.wl.keycodes[KEY_DELETE] = GLFW_KEY_DELETE; + _glfw.wl.keycodes[KEY_BACKSPACE] = GLFW_KEY_BACKSPACE; + _glfw.wl.keycodes[KEY_ENTER] = GLFW_KEY_ENTER; + _glfw.wl.keycodes[KEY_HOME] = GLFW_KEY_HOME; + _glfw.wl.keycodes[KEY_END] = GLFW_KEY_END; + _glfw.wl.keycodes[KEY_PAGEUP] = GLFW_KEY_PAGE_UP; + _glfw.wl.keycodes[KEY_PAGEDOWN] = GLFW_KEY_PAGE_DOWN; + _glfw.wl.keycodes[KEY_INSERT] = GLFW_KEY_INSERT; + _glfw.wl.keycodes[KEY_LEFT] = GLFW_KEY_LEFT; + _glfw.wl.keycodes[KEY_RIGHT] = GLFW_KEY_RIGHT; + _glfw.wl.keycodes[KEY_DOWN] = GLFW_KEY_DOWN; + _glfw.wl.keycodes[KEY_UP] = GLFW_KEY_UP; + _glfw.wl.keycodes[KEY_F1] = GLFW_KEY_F1; + _glfw.wl.keycodes[KEY_F2] = GLFW_KEY_F2; + _glfw.wl.keycodes[KEY_F3] = GLFW_KEY_F3; + _glfw.wl.keycodes[KEY_F4] = GLFW_KEY_F4; + _glfw.wl.keycodes[KEY_F5] = GLFW_KEY_F5; + _glfw.wl.keycodes[KEY_F6] = GLFW_KEY_F6; + _glfw.wl.keycodes[KEY_F7] = GLFW_KEY_F7; + _glfw.wl.keycodes[KEY_F8] = GLFW_KEY_F8; + _glfw.wl.keycodes[KEY_F9] = GLFW_KEY_F9; + _glfw.wl.keycodes[KEY_F10] = GLFW_KEY_F10; + _glfw.wl.keycodes[KEY_F11] = GLFW_KEY_F11; + _glfw.wl.keycodes[KEY_F12] = GLFW_KEY_F12; + _glfw.wl.keycodes[KEY_F13] = GLFW_KEY_F13; + _glfw.wl.keycodes[KEY_F14] = GLFW_KEY_F14; + _glfw.wl.keycodes[KEY_F15] = GLFW_KEY_F15; + _glfw.wl.keycodes[KEY_F16] = GLFW_KEY_F16; + _glfw.wl.keycodes[KEY_F17] = GLFW_KEY_F17; + _glfw.wl.keycodes[KEY_F18] = GLFW_KEY_F18; + _glfw.wl.keycodes[KEY_F19] = GLFW_KEY_F19; + _glfw.wl.keycodes[KEY_F20] = GLFW_KEY_F20; + _glfw.wl.keycodes[KEY_F21] = GLFW_KEY_F21; + _glfw.wl.keycodes[KEY_F22] = GLFW_KEY_F22; + _glfw.wl.keycodes[KEY_F23] = GLFW_KEY_F23; + _glfw.wl.keycodes[KEY_F24] = GLFW_KEY_F24; + _glfw.wl.keycodes[KEY_KPSLASH] = GLFW_KEY_KP_DIVIDE; + _glfw.wl.keycodes[KEY_KPASTERISK] = GLFW_KEY_KP_MULTIPLY; + _glfw.wl.keycodes[KEY_KPMINUS] = GLFW_KEY_KP_SUBTRACT; + _glfw.wl.keycodes[KEY_KPPLUS] = GLFW_KEY_KP_ADD; + _glfw.wl.keycodes[KEY_KP0] = GLFW_KEY_KP_0; + _glfw.wl.keycodes[KEY_KP1] = GLFW_KEY_KP_1; + _glfw.wl.keycodes[KEY_KP2] = GLFW_KEY_KP_2; + _glfw.wl.keycodes[KEY_KP3] = GLFW_KEY_KP_3; + _glfw.wl.keycodes[KEY_KP4] = GLFW_KEY_KP_4; + _glfw.wl.keycodes[KEY_KP5] = GLFW_KEY_KP_5; + _glfw.wl.keycodes[KEY_KP6] = GLFW_KEY_KP_6; + _glfw.wl.keycodes[KEY_KP7] = GLFW_KEY_KP_7; + _glfw.wl.keycodes[KEY_KP8] = GLFW_KEY_KP_8; + _glfw.wl.keycodes[KEY_KP9] = GLFW_KEY_KP_9; + _glfw.wl.keycodes[KEY_KPDOT] = GLFW_KEY_KP_DECIMAL; + _glfw.wl.keycodes[KEY_KPEQUAL] = GLFW_KEY_KP_EQUAL; + _glfw.wl.keycodes[KEY_KPENTER] = GLFW_KEY_KP_ENTER; + _glfw.wl.keycodes[KEY_102ND] = GLFW_KEY_WORLD_2; + + for (int scancode = 0; scancode < 256; scancode++) + { + if (_glfw.wl.keycodes[scancode] > 0) + _glfw.wl.scancodes[_glfw.wl.keycodes[scancode]] = scancode; + } +} + +static GLFWbool loadCursorTheme(void) +{ + int cursorSize = 32; + + const char* sizeString = getenv("XCURSOR_SIZE"); + if (sizeString) + { + errno = 0; + const long cursorSizeLong = strtol(sizeString, NULL, 10); + if (errno == 0 && cursorSizeLong > 0 && cursorSizeLong < INT_MAX) + cursorSize = (int) cursorSizeLong; + } + + const char* themeName = getenv("XCURSOR_THEME"); + + _glfw.wl.cursorTheme = wl_cursor_theme_load(themeName, cursorSize, _glfw.wl.shm); + if (!_glfw.wl.cursorTheme) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to load default cursor theme"); + return GLFW_FALSE; + } + + // If this happens to be NULL, we just fallback to the scale=1 version. + _glfw.wl.cursorThemeHiDPI = + wl_cursor_theme_load(themeName, cursorSize * 2, _glfw.wl.shm); + + _glfw.wl.cursorSurface = wl_compositor_create_surface(_glfw.wl.compositor); + _glfw.wl.cursorTimerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK); + return GLFW_TRUE; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwConnectWayland(int platformID, _GLFWplatform* platform) +{ + const _GLFWplatform wayland = + { + GLFW_PLATFORM_WAYLAND, + _glfwInitWayland, + _glfwTerminateWayland, + _glfwGetCursorPosWayland, + _glfwSetCursorPosWayland, + _glfwSetCursorModeWayland, + _glfwSetRawMouseMotionWayland, + _glfwRawMouseMotionSupportedWayland, + _glfwCreateCursorWayland, + _glfwCreateStandardCursorWayland, + _glfwDestroyCursorWayland, + _glfwSetCursorWayland, + _glfwGetScancodeNameWayland, + _glfwGetKeyScancodeWayland, + _glfwSetClipboardStringWayland, + _glfwGetClipboardStringWayland, +#if defined(__linux__) + _glfwInitJoysticksLinux, + _glfwTerminateJoysticksLinux, + _glfwPollJoystickLinux, + _glfwGetMappingNameLinux, + _glfwUpdateGamepadGUIDLinux, +#else + _glfwInitJoysticksNull, + _glfwTerminateJoysticksNull, + _glfwPollJoystickNull, + _glfwGetMappingNameNull, + _glfwUpdateGamepadGUIDNull, +#endif + _glfwFreeMonitorWayland, + _glfwGetMonitorPosWayland, + _glfwGetMonitorContentScaleWayland, + _glfwGetMonitorWorkareaWayland, + _glfwGetVideoModesWayland, + _glfwGetVideoModeWayland, + _glfwGetGammaRampWayland, + _glfwSetGammaRampWayland, + _glfwCreateWindowWayland, + _glfwDestroyWindowWayland, + _glfwSetWindowTitleWayland, + _glfwSetWindowIconWayland, + _glfwGetWindowPosWayland, + _glfwSetWindowPosWayland, + _glfwGetWindowSizeWayland, + _glfwSetWindowSizeWayland, + _glfwSetWindowSizeLimitsWayland, + _glfwSetWindowAspectRatioWayland, + _glfwGetFramebufferSizeWayland, + _glfwGetWindowFrameSizeWayland, + _glfwGetWindowContentScaleWayland, + _glfwIconifyWindowWayland, + _glfwRestoreWindowWayland, + _glfwMaximizeWindowWayland, + _glfwShowWindowWayland, + _glfwHideWindowWayland, + _glfwRequestWindowAttentionWayland, + _glfwFocusWindowWayland, + _glfwSetWindowMonitorWayland, + _glfwWindowFocusedWayland, + _glfwWindowIconifiedWayland, + _glfwWindowVisibleWayland, + _glfwWindowMaximizedWayland, + _glfwWindowHoveredWayland, + _glfwFramebufferTransparentWayland, + _glfwGetWindowOpacityWayland, + _glfwSetWindowResizableWayland, + _glfwSetWindowDecoratedWayland, + _glfwSetWindowFloatingWayland, + _glfwSetWindowOpacityWayland, + _glfwSetWindowMousePassthroughWayland, + _glfwPollEventsWayland, + _glfwWaitEventsWayland, + _glfwWaitEventsTimeoutWayland, + _glfwPostEmptyEventWayland, + _glfwGetEGLPlatformWayland, + _glfwGetEGLNativeDisplayWayland, + _glfwGetEGLNativeWindowWayland, + _glfwGetRequiredInstanceExtensionsWayland, + _glfwGetPhysicalDevicePresentationSupportWayland, + _glfwCreateWindowSurfaceWayland, + }; + + void* module = _glfwPlatformLoadModule("libwayland-client.so.0"); + if (!module) + { + if (platformID == GLFW_PLATFORM_WAYLAND) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to load libwayland-client"); + } + + return GLFW_FALSE; + } + + PFN_wl_display_connect wl_display_connect = (PFN_wl_display_connect) + _glfwPlatformGetModuleSymbol(module, "wl_display_connect"); + if (!wl_display_connect) + { + if (platformID == GLFW_PLATFORM_WAYLAND) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to load libwayland-client entry point"); + } + + _glfwPlatformFreeModule(module); + return GLFW_FALSE; + } + + struct wl_display* display = wl_display_connect(NULL); + if (!display) + { + if (platformID == GLFW_PLATFORM_WAYLAND) + _glfwInputError(GLFW_PLATFORM_ERROR, "Wayland: Failed to connect to display"); + + _glfwPlatformFreeModule(module); + return GLFW_FALSE; + } + + _glfw.wl.display = display; + _glfw.wl.client.handle = module; + + *platform = wayland; + return GLFW_TRUE; +} + +int _glfwInitWayland(void) +{ + // These must be set before any failure checks + _glfw.wl.keyRepeatTimerfd = -1; + _glfw.wl.cursorTimerfd = -1; + + _glfw.wl.client.display_flush = (PFN_wl_display_flush) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_flush"); + _glfw.wl.client.display_cancel_read = (PFN_wl_display_cancel_read) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_cancel_read"); + _glfw.wl.client.display_dispatch_pending = (PFN_wl_display_dispatch_pending) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_dispatch_pending"); + _glfw.wl.client.display_read_events = (PFN_wl_display_read_events) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_read_events"); + _glfw.wl.client.display_disconnect = (PFN_wl_display_disconnect) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_disconnect"); + _glfw.wl.client.display_roundtrip = (PFN_wl_display_roundtrip) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_roundtrip"); + _glfw.wl.client.display_get_fd = (PFN_wl_display_get_fd) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_get_fd"); + _glfw.wl.client.display_prepare_read = (PFN_wl_display_prepare_read) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_display_prepare_read"); + _glfw.wl.client.proxy_marshal = (PFN_wl_proxy_marshal) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_marshal"); + _glfw.wl.client.proxy_add_listener = (PFN_wl_proxy_add_listener) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_add_listener"); + _glfw.wl.client.proxy_destroy = (PFN_wl_proxy_destroy) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_destroy"); + _glfw.wl.client.proxy_marshal_constructor = (PFN_wl_proxy_marshal_constructor) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_marshal_constructor"); + _glfw.wl.client.proxy_marshal_constructor_versioned = (PFN_wl_proxy_marshal_constructor_versioned) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_marshal_constructor_versioned"); + _glfw.wl.client.proxy_get_user_data = (PFN_wl_proxy_get_user_data) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_get_user_data"); + _glfw.wl.client.proxy_set_user_data = (PFN_wl_proxy_set_user_data) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_set_user_data"); + _glfw.wl.client.proxy_get_version = (PFN_wl_proxy_get_version) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_get_version"); + _glfw.wl.client.proxy_marshal_flags = (PFN_wl_proxy_marshal_flags) + _glfwPlatformGetModuleSymbol(_glfw.wl.client.handle, "wl_proxy_marshal_flags"); + + if (!_glfw.wl.client.display_flush || + !_glfw.wl.client.display_cancel_read || + !_glfw.wl.client.display_dispatch_pending || + !_glfw.wl.client.display_read_events || + !_glfw.wl.client.display_disconnect || + !_glfw.wl.client.display_roundtrip || + !_glfw.wl.client.display_get_fd || + !_glfw.wl.client.display_prepare_read || + !_glfw.wl.client.proxy_marshal || + !_glfw.wl.client.proxy_add_listener || + !_glfw.wl.client.proxy_destroy || + !_glfw.wl.client.proxy_marshal_constructor || + !_glfw.wl.client.proxy_marshal_constructor_versioned || + !_glfw.wl.client.proxy_get_user_data || + !_glfw.wl.client.proxy_set_user_data) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to load libwayland-client entry point"); + return GLFW_FALSE; + } + + _glfw.wl.cursor.handle = _glfwPlatformLoadModule("libwayland-cursor.so.0"); + if (!_glfw.wl.cursor.handle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to load libwayland-cursor"); + return GLFW_FALSE; + } + + _glfw.wl.cursor.theme_load = (PFN_wl_cursor_theme_load) + _glfwPlatformGetModuleSymbol(_glfw.wl.cursor.handle, "wl_cursor_theme_load"); + _glfw.wl.cursor.theme_destroy = (PFN_wl_cursor_theme_destroy) + _glfwPlatformGetModuleSymbol(_glfw.wl.cursor.handle, "wl_cursor_theme_destroy"); + _glfw.wl.cursor.theme_get_cursor = (PFN_wl_cursor_theme_get_cursor) + _glfwPlatformGetModuleSymbol(_glfw.wl.cursor.handle, "wl_cursor_theme_get_cursor"); + _glfw.wl.cursor.image_get_buffer = (PFN_wl_cursor_image_get_buffer) + _glfwPlatformGetModuleSymbol(_glfw.wl.cursor.handle, "wl_cursor_image_get_buffer"); + + _glfw.wl.egl.handle = _glfwPlatformLoadModule("libwayland-egl.so.1"); + if (!_glfw.wl.egl.handle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to load libwayland-egl"); + return GLFW_FALSE; + } + + _glfw.wl.egl.window_create = (PFN_wl_egl_window_create) + _glfwPlatformGetModuleSymbol(_glfw.wl.egl.handle, "wl_egl_window_create"); + _glfw.wl.egl.window_destroy = (PFN_wl_egl_window_destroy) + _glfwPlatformGetModuleSymbol(_glfw.wl.egl.handle, "wl_egl_window_destroy"); + _glfw.wl.egl.window_resize = (PFN_wl_egl_window_resize) + _glfwPlatformGetModuleSymbol(_glfw.wl.egl.handle, "wl_egl_window_resize"); + + _glfw.wl.xkb.handle = _glfwPlatformLoadModule("libxkbcommon.so.0"); + if (!_glfw.wl.xkb.handle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to load libxkbcommon"); + return GLFW_FALSE; + } + + _glfw.wl.xkb.context_new = (PFN_xkb_context_new) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_context_new"); + _glfw.wl.xkb.context_unref = (PFN_xkb_context_unref) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_context_unref"); + _glfw.wl.xkb.keymap_new_from_string = (PFN_xkb_keymap_new_from_string) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_keymap_new_from_string"); + _glfw.wl.xkb.keymap_unref = (PFN_xkb_keymap_unref) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_keymap_unref"); + _glfw.wl.xkb.keymap_mod_get_index = (PFN_xkb_keymap_mod_get_index) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_keymap_mod_get_index"); + _glfw.wl.xkb.keymap_key_repeats = (PFN_xkb_keymap_key_repeats) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_keymap_key_repeats"); + _glfw.wl.xkb.keymap_key_get_syms_by_level = (PFN_xkb_keymap_key_get_syms_by_level) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_keymap_key_get_syms_by_level"); + _glfw.wl.xkb.state_new = (PFN_xkb_state_new) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_state_new"); + _glfw.wl.xkb.state_unref = (PFN_xkb_state_unref) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_state_unref"); + _glfw.wl.xkb.state_key_get_syms = (PFN_xkb_state_key_get_syms) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_state_key_get_syms"); + _glfw.wl.xkb.state_update_mask = (PFN_xkb_state_update_mask) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_state_update_mask"); + _glfw.wl.xkb.state_key_get_layout = (PFN_xkb_state_key_get_layout) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_state_key_get_layout"); + _glfw.wl.xkb.state_mod_index_is_active = (PFN_xkb_state_mod_index_is_active) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_state_mod_index_is_active"); + _glfw.wl.xkb.compose_table_new_from_locale = (PFN_xkb_compose_table_new_from_locale) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_compose_table_new_from_locale"); + _glfw.wl.xkb.compose_table_unref = (PFN_xkb_compose_table_unref) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_compose_table_unref"); + _glfw.wl.xkb.compose_state_new = (PFN_xkb_compose_state_new) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_compose_state_new"); + _glfw.wl.xkb.compose_state_unref = (PFN_xkb_compose_state_unref) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_compose_state_unref"); + _glfw.wl.xkb.compose_state_feed = (PFN_xkb_compose_state_feed) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_compose_state_feed"); + _glfw.wl.xkb.compose_state_get_status = (PFN_xkb_compose_state_get_status) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_compose_state_get_status"); + _glfw.wl.xkb.compose_state_get_one_sym = (PFN_xkb_compose_state_get_one_sym) + _glfwPlatformGetModuleSymbol(_glfw.wl.xkb.handle, "xkb_compose_state_get_one_sym"); + + _glfw.wl.registry = wl_display_get_registry(_glfw.wl.display); + wl_registry_add_listener(_glfw.wl.registry, ®istryListener, NULL); + + createKeyTables(); + + _glfw.wl.xkb.context = xkb_context_new(0); + if (!_glfw.wl.xkb.context) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to initialize xkb context"); + return GLFW_FALSE; + } + + // Sync so we got all registry objects + wl_display_roundtrip(_glfw.wl.display); + + // Sync so we got all initial output events + wl_display_roundtrip(_glfw.wl.display); + +#ifdef WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION + if (_glfw.wl.seatVersion >= WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION) + { + _glfw.wl.keyRepeatTimerfd = + timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK); + } +#endif + + if (!_glfw.wl.wmBase) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to find xdg-shell in your compositor"); + return GLFW_FALSE; + } + + if (!_glfw.wl.shm) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to find wl_shm in your compositor"); + return GLFW_FALSE; + } + + if (!loadCursorTheme()) + return GLFW_FALSE; + + if (_glfw.wl.seat && _glfw.wl.dataDeviceManager) + { + _glfw.wl.dataDevice = + wl_data_device_manager_get_data_device(_glfw.wl.dataDeviceManager, + _glfw.wl.seat); + _glfwAddDataDeviceListenerWayland(_glfw.wl.dataDevice); + } + + return GLFW_TRUE; +} + +void _glfwTerminateWayland(void) +{ + _glfwTerminateEGL(); + _glfwTerminateOSMesa(); + + if (_glfw.wl.egl.handle) + { + _glfwPlatformFreeModule(_glfw.wl.egl.handle); + _glfw.wl.egl.handle = NULL; + } + + if (_glfw.wl.xkb.composeState) + xkb_compose_state_unref(_glfw.wl.xkb.composeState); + if (_glfw.wl.xkb.keymap) + xkb_keymap_unref(_glfw.wl.xkb.keymap); + if (_glfw.wl.xkb.state) + xkb_state_unref(_glfw.wl.xkb.state); + if (_glfw.wl.xkb.context) + xkb_context_unref(_glfw.wl.xkb.context); + if (_glfw.wl.xkb.handle) + { + _glfwPlatformFreeModule(_glfw.wl.xkb.handle); + _glfw.wl.xkb.handle = NULL; + } + + if (_glfw.wl.cursorTheme) + wl_cursor_theme_destroy(_glfw.wl.cursorTheme); + if (_glfw.wl.cursorThemeHiDPI) + wl_cursor_theme_destroy(_glfw.wl.cursorThemeHiDPI); + if (_glfw.wl.cursor.handle) + { + _glfwPlatformFreeModule(_glfw.wl.cursor.handle); + _glfw.wl.cursor.handle = NULL; + } + + for (unsigned int i = 0; i < _glfw.wl.offerCount; i++) + wl_data_offer_destroy(_glfw.wl.offers[i].offer); + + _glfw_free(_glfw.wl.offers); + + if (_glfw.wl.cursorSurface) + wl_surface_destroy(_glfw.wl.cursorSurface); + if (_glfw.wl.subcompositor) + wl_subcompositor_destroy(_glfw.wl.subcompositor); + if (_glfw.wl.compositor) + wl_compositor_destroy(_glfw.wl.compositor); + if (_glfw.wl.shm) + wl_shm_destroy(_glfw.wl.shm); + if (_glfw.wl.viewporter) + wp_viewporter_destroy(_glfw.wl.viewporter); + if (_glfw.wl.decorationManager) + zxdg_decoration_manager_v1_destroy(_glfw.wl.decorationManager); + if (_glfw.wl.wmBase) + xdg_wm_base_destroy(_glfw.wl.wmBase); + if (_glfw.wl.selectionOffer) + wl_data_offer_destroy(_glfw.wl.selectionOffer); + if (_glfw.wl.dragOffer) + wl_data_offer_destroy(_glfw.wl.dragOffer); + if (_glfw.wl.selectionSource) + wl_data_source_destroy(_glfw.wl.selectionSource); + if (_glfw.wl.dataDevice) + wl_data_device_destroy(_glfw.wl.dataDevice); + if (_glfw.wl.dataDeviceManager) + wl_data_device_manager_destroy(_glfw.wl.dataDeviceManager); + if (_glfw.wl.pointer) + wl_pointer_destroy(_glfw.wl.pointer); + if (_glfw.wl.keyboard) + wl_keyboard_destroy(_glfw.wl.keyboard); + if (_glfw.wl.seat) + wl_seat_destroy(_glfw.wl.seat); + if (_glfw.wl.relativePointerManager) + zwp_relative_pointer_manager_v1_destroy(_glfw.wl.relativePointerManager); + if (_glfw.wl.pointerConstraints) + zwp_pointer_constraints_v1_destroy(_glfw.wl.pointerConstraints); + if (_glfw.wl.idleInhibitManager) + zwp_idle_inhibit_manager_v1_destroy(_glfw.wl.idleInhibitManager); + if (_glfw.wl.registry) + wl_registry_destroy(_glfw.wl.registry); + if (_glfw.wl.display) + { + wl_display_flush(_glfw.wl.display); + wl_display_disconnect(_glfw.wl.display); + } + + if (_glfw.wl.keyRepeatTimerfd >= 0) + close(_glfw.wl.keyRepeatTimerfd); + if (_glfw.wl.cursorTimerfd >= 0) + close(_glfw.wl.cursorTimerfd); + + _glfw_free(_glfw.wl.clipboardString); +} + diff --git a/thirdparty/imgui_suite/glfw/src/wl_monitor.c b/thirdparty/imgui_suite/glfw/src/wl_monitor.c new file mode 100644 index 00000000000..336681fdc74 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/wl_monitor.c @@ -0,0 +1,272 @@ +//======================================================================== +// GLFW 3.4 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include + +#include "wayland-client-protocol.h" + + +static void outputHandleGeometry(void* userData, + struct wl_output* output, + int32_t x, + int32_t y, + int32_t physicalWidth, + int32_t physicalHeight, + int32_t subpixel, + const char* make, + const char* model, + int32_t transform) +{ + struct _GLFWmonitor* monitor = userData; + + monitor->wl.x = x; + monitor->wl.y = y; + monitor->widthMM = physicalWidth; + monitor->heightMM = physicalHeight; + + if (strlen(monitor->name) == 0) + snprintf(monitor->name, sizeof(monitor->name), "%s %s", make, model); +} + +static void outputHandleMode(void* userData, + struct wl_output* output, + uint32_t flags, + int32_t width, + int32_t height, + int32_t refresh) +{ + struct _GLFWmonitor* monitor = userData; + GLFWvidmode mode; + + mode.width = width; + mode.height = height; + mode.redBits = 8; + mode.greenBits = 8; + mode.blueBits = 8; + mode.refreshRate = (int) round(refresh / 1000.0); + + monitor->modeCount++; + monitor->modes = + _glfw_realloc(monitor->modes, monitor->modeCount * sizeof(GLFWvidmode)); + monitor->modes[monitor->modeCount - 1] = mode; + + if (flags & WL_OUTPUT_MODE_CURRENT) + monitor->wl.currentMode = monitor->modeCount - 1; +} + +static void outputHandleDone(void* userData, struct wl_output* output) +{ + struct _GLFWmonitor* monitor = userData; + + if (monitor->widthMM <= 0 || monitor->heightMM <= 0) + { + // If Wayland does not provide a physical size, assume the default 96 DPI + const GLFWvidmode* mode = &monitor->modes[monitor->wl.currentMode]; + monitor->widthMM = (int) (mode->width * 25.4f / 96.f); + monitor->heightMM = (int) (mode->height * 25.4f / 96.f); + } + + for (int i = 0; i < _glfw.monitorCount; i++) + { + if (_glfw.monitors[i] == monitor) + return; + } + + _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_LAST); +} + +static void outputHandleScale(void* userData, + struct wl_output* output, + int32_t factor) +{ + struct _GLFWmonitor* monitor = userData; + + monitor->wl.scale = factor; + + for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) + { + for (int i = 0; i < window->wl.monitorsCount; i++) + { + if (window->wl.monitors[i] == monitor) + { + _glfwUpdateContentScaleWayland(window); + break; + } + } + } +} + +#ifdef WL_OUTPUT_NAME_SINCE_VERSION + +void outputHandleName(void* userData, struct wl_output* wl_output, const char* name) +{ + struct _GLFWmonitor* monitor = userData; + + strncpy(monitor->name, name, sizeof(monitor->name) - 1); +} + +void outputHandleDescription(void* userData, + struct wl_output* wl_output, + const char* description) +{ +} + +#endif // WL_OUTPUT_NAME_SINCE_VERSION + +static const struct wl_output_listener outputListener = +{ + outputHandleGeometry, + outputHandleMode, + outputHandleDone, + outputHandleScale, +#ifdef WL_OUTPUT_NAME_SINCE_VERSION + outputHandleName, + outputHandleDescription, +#endif +}; + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwAddOutputWayland(uint32_t name, uint32_t version) +{ + if (version < 2) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unsupported output interface version"); + return; + } + +#ifdef WL_OUTPUT_NAME_SINCE_VERSION + version = _glfw_min(version, WL_OUTPUT_NAME_SINCE_VERSION); +#else + version = 2; +#endif + + struct wl_output* output = wl_registry_bind(_glfw.wl.registry, + name, + &wl_output_interface, + version); + if (!output) + return; + + // The actual name of this output will be set in the geometry handler + _GLFWmonitor* monitor = _glfwAllocMonitor("", 0, 0); + monitor->wl.scale = 1; + monitor->wl.output = output; + monitor->wl.name = name; + + wl_output_add_listener(output, &outputListener, monitor); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwFreeMonitorWayland(_GLFWmonitor* monitor) +{ + if (monitor->wl.output) + wl_output_destroy(monitor->wl.output); +} + +void _glfwGetMonitorPosWayland(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + if (xpos) + *xpos = monitor->wl.x; + if (ypos) + *ypos = monitor->wl.y; +} + +void _glfwGetMonitorContentScaleWayland(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = (float) monitor->wl.scale; + if (yscale) + *yscale = (float) monitor->wl.scale; +} + +void _glfwGetMonitorWorkareaWayland(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + if (xpos) + *xpos = monitor->wl.x; + if (ypos) + *ypos = monitor->wl.y; + if (width) + *width = monitor->modes[monitor->wl.currentMode].width; + if (height) + *height = monitor->modes[monitor->wl.currentMode].height; +} + +GLFWvidmode* _glfwGetVideoModesWayland(_GLFWmonitor* monitor, int* found) +{ + *found = monitor->modeCount; + return monitor->modes; +} + +void _glfwGetVideoModeWayland(_GLFWmonitor* monitor, GLFWvidmode* mode) +{ + *mode = monitor->modes[monitor->wl.currentMode]; +} + +GLFWbool _glfwGetGammaRampWayland(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: Gamma ramp access is not available"); + return GLFW_FALSE; +} + +void _glfwSetGammaRampWayland(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: Gamma ramp access is not available"); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + return monitor->wl.output; +} + diff --git a/thirdparty/imgui_suite/glfw/src/wl_platform.h b/thirdparty/imgui_suite/glfw/src/wl_platform.h new file mode 100644 index 00000000000..238e1ed406b --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/wl_platform.h @@ -0,0 +1,521 @@ +//======================================================================== +// GLFW 3.4 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include +#include +#include + +typedef VkFlags VkWaylandSurfaceCreateFlagsKHR; + +typedef struct VkWaylandSurfaceCreateInfoKHR +{ + VkStructureType sType; + const void* pNext; + VkWaylandSurfaceCreateFlagsKHR flags; + struct wl_display* display; + struct wl_surface* surface; +} VkWaylandSurfaceCreateInfoKHR; + +typedef VkResult (APIENTRY *PFN_vkCreateWaylandSurfaceKHR)(VkInstance,const VkWaylandSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice,uint32_t,struct wl_display*); + +#include "xkb_unicode.h" +#include "posix_poll.h" + +typedef int (* PFN_wl_display_flush)(struct wl_display* display); +typedef void (* PFN_wl_display_cancel_read)(struct wl_display* display); +typedef int (* PFN_wl_display_dispatch_pending)(struct wl_display* display); +typedef int (* PFN_wl_display_read_events)(struct wl_display* display); +typedef struct wl_display* (* PFN_wl_display_connect)(const char*); +typedef void (* PFN_wl_display_disconnect)(struct wl_display*); +typedef int (* PFN_wl_display_roundtrip)(struct wl_display*); +typedef int (* PFN_wl_display_get_fd)(struct wl_display*); +typedef int (* PFN_wl_display_prepare_read)(struct wl_display*); +typedef void (* PFN_wl_proxy_marshal)(struct wl_proxy*,uint32_t,...); +typedef int (* PFN_wl_proxy_add_listener)(struct wl_proxy*,void(**)(void),void*); +typedef void (* PFN_wl_proxy_destroy)(struct wl_proxy*); +typedef struct wl_proxy* (* PFN_wl_proxy_marshal_constructor)(struct wl_proxy*,uint32_t,const struct wl_interface*,...); +typedef struct wl_proxy* (* PFN_wl_proxy_marshal_constructor_versioned)(struct wl_proxy*,uint32_t,const struct wl_interface*,uint32_t,...); +typedef void* (* PFN_wl_proxy_get_user_data)(struct wl_proxy*); +typedef void (* PFN_wl_proxy_set_user_data)(struct wl_proxy*,void*); +typedef uint32_t (* PFN_wl_proxy_get_version)(struct wl_proxy*); +typedef struct wl_proxy* (* PFN_wl_proxy_marshal_flags)(struct wl_proxy*,uint32_t,const struct wl_interface*,uint32_t,uint32_t,...); +#define wl_display_flush _glfw.wl.client.display_flush +#define wl_display_cancel_read _glfw.wl.client.display_cancel_read +#define wl_display_dispatch_pending _glfw.wl.client.display_dispatch_pending +#define wl_display_read_events _glfw.wl.client.display_read_events +#define wl_display_disconnect _glfw.wl.client.display_disconnect +#define wl_display_roundtrip _glfw.wl.client.display_roundtrip +#define wl_display_get_fd _glfw.wl.client.display_get_fd +#define wl_display_prepare_read _glfw.wl.client.display_prepare_read +#define wl_proxy_marshal _glfw.wl.client.proxy_marshal +#define wl_proxy_add_listener _glfw.wl.client.proxy_add_listener +#define wl_proxy_destroy _glfw.wl.client.proxy_destroy +#define wl_proxy_marshal_constructor _glfw.wl.client.proxy_marshal_constructor +#define wl_proxy_marshal_constructor_versioned _glfw.wl.client.proxy_marshal_constructor_versioned +#define wl_proxy_get_user_data _glfw.wl.client.proxy_get_user_data +#define wl_proxy_set_user_data _glfw.wl.client.proxy_set_user_data +#define wl_proxy_get_version _glfw.wl.client.proxy_get_version +#define wl_proxy_marshal_flags _glfw.wl.client.proxy_marshal_flags + +struct wl_shm; + +#define wl_display_interface _glfw_wl_display_interface +#define wl_subcompositor_interface _glfw_wl_subcompositor_interface +#define wl_compositor_interface _glfw_wl_compositor_interface +#define wl_shm_interface _glfw_wl_shm_interface +#define wl_data_device_manager_interface _glfw_wl_data_device_manager_interface +#define wl_shell_interface _glfw_wl_shell_interface +#define wl_buffer_interface _glfw_wl_buffer_interface +#define wl_callback_interface _glfw_wl_callback_interface +#define wl_data_device_interface _glfw_wl_data_device_interface +#define wl_data_offer_interface _glfw_wl_data_offer_interface +#define wl_data_source_interface _glfw_wl_data_source_interface +#define wl_keyboard_interface _glfw_wl_keyboard_interface +#define wl_output_interface _glfw_wl_output_interface +#define wl_pointer_interface _glfw_wl_pointer_interface +#define wl_region_interface _glfw_wl_region_interface +#define wl_registry_interface _glfw_wl_registry_interface +#define wl_seat_interface _glfw_wl_seat_interface +#define wl_shell_surface_interface _glfw_wl_shell_surface_interface +#define wl_shm_pool_interface _glfw_wl_shm_pool_interface +#define wl_subsurface_interface _glfw_wl_subsurface_interface +#define wl_surface_interface _glfw_wl_surface_interface +#define wl_touch_interface _glfw_wl_touch_interface +#define zwp_idle_inhibitor_v1_interface _glfw_zwp_idle_inhibitor_v1_interface +#define zwp_idle_inhibit_manager_v1_interface _glfw_zwp_idle_inhibit_manager_v1_interface +#define zwp_confined_pointer_v1_interface _glfw_zwp_confined_pointer_v1_interface +#define zwp_locked_pointer_v1_interface _glfw_zwp_locked_pointer_v1_interface +#define zwp_pointer_constraints_v1_interface _glfw_zwp_pointer_constraints_v1_interface +#define zwp_relative_pointer_v1_interface _glfw_zwp_relative_pointer_v1_interface +#define zwp_relative_pointer_manager_v1_interface _glfw_zwp_relative_pointer_manager_v1_interface +#define wp_viewport_interface _glfw_wp_viewport_interface +#define wp_viewporter_interface _glfw_wp_viewporter_interface +#define xdg_toplevel_interface _glfw_xdg_toplevel_interface +#define zxdg_toplevel_decoration_v1_interface _glfw_zxdg_toplevel_decoration_v1_interface +#define zxdg_decoration_manager_v1_interface _glfw_zxdg_decoration_manager_v1_interface +#define xdg_popup_interface _glfw_xdg_popup_interface +#define xdg_positioner_interface _glfw_xdg_positioner_interface +#define xdg_surface_interface _glfw_xdg_surface_interface +#define xdg_toplevel_interface _glfw_xdg_toplevel_interface +#define xdg_wm_base_interface _glfw_xdg_wm_base_interface + +#define GLFW_WAYLAND_WINDOW_STATE _GLFWwindowWayland wl; +#define GLFW_WAYLAND_LIBRARY_WINDOW_STATE _GLFWlibraryWayland wl; +#define GLFW_WAYLAND_MONITOR_STATE _GLFWmonitorWayland wl; +#define GLFW_WAYLAND_CURSOR_STATE _GLFWcursorWayland wl; + +struct wl_cursor_image { + uint32_t width; + uint32_t height; + uint32_t hotspot_x; + uint32_t hotspot_y; + uint32_t delay; +}; +struct wl_cursor { + unsigned int image_count; + struct wl_cursor_image** images; + char* name; +}; +typedef struct wl_cursor_theme* (* PFN_wl_cursor_theme_load)(const char*, int, struct wl_shm*); +typedef void (* PFN_wl_cursor_theme_destroy)(struct wl_cursor_theme*); +typedef struct wl_cursor* (* PFN_wl_cursor_theme_get_cursor)(struct wl_cursor_theme*, const char*); +typedef struct wl_buffer* (* PFN_wl_cursor_image_get_buffer)(struct wl_cursor_image*); +#define wl_cursor_theme_load _glfw.wl.cursor.theme_load +#define wl_cursor_theme_destroy _glfw.wl.cursor.theme_destroy +#define wl_cursor_theme_get_cursor _glfw.wl.cursor.theme_get_cursor +#define wl_cursor_image_get_buffer _glfw.wl.cursor.image_get_buffer + +typedef struct wl_egl_window* (* PFN_wl_egl_window_create)(struct wl_surface*, int, int); +typedef void (* PFN_wl_egl_window_destroy)(struct wl_egl_window*); +typedef void (* PFN_wl_egl_window_resize)(struct wl_egl_window*, int, int, int, int); +#define wl_egl_window_create _glfw.wl.egl.window_create +#define wl_egl_window_destroy _glfw.wl.egl.window_destroy +#define wl_egl_window_resize _glfw.wl.egl.window_resize + +typedef struct xkb_context* (* PFN_xkb_context_new)(enum xkb_context_flags); +typedef void (* PFN_xkb_context_unref)(struct xkb_context*); +typedef struct xkb_keymap* (* PFN_xkb_keymap_new_from_string)(struct xkb_context*, const char*, enum xkb_keymap_format, enum xkb_keymap_compile_flags); +typedef void (* PFN_xkb_keymap_unref)(struct xkb_keymap*); +typedef xkb_mod_index_t (* PFN_xkb_keymap_mod_get_index)(struct xkb_keymap*, const char*); +typedef int (* PFN_xkb_keymap_key_repeats)(struct xkb_keymap*, xkb_keycode_t); +typedef int (* PFN_xkb_keymap_key_get_syms_by_level)(struct xkb_keymap*,xkb_keycode_t,xkb_layout_index_t,xkb_level_index_t,const xkb_keysym_t**); +typedef struct xkb_state* (* PFN_xkb_state_new)(struct xkb_keymap*); +typedef void (* PFN_xkb_state_unref)(struct xkb_state*); +typedef int (* PFN_xkb_state_key_get_syms)(struct xkb_state*, xkb_keycode_t, const xkb_keysym_t**); +typedef enum xkb_state_component (* PFN_xkb_state_update_mask)(struct xkb_state*, xkb_mod_mask_t, xkb_mod_mask_t, xkb_mod_mask_t, xkb_layout_index_t, xkb_layout_index_t, xkb_layout_index_t); +typedef xkb_layout_index_t (* PFN_xkb_state_key_get_layout)(struct xkb_state*,xkb_keycode_t); +typedef int (* PFN_xkb_state_mod_index_is_active)(struct xkb_state*,xkb_mod_index_t,enum xkb_state_component); +#define xkb_context_new _glfw.wl.xkb.context_new +#define xkb_context_unref _glfw.wl.xkb.context_unref +#define xkb_keymap_new_from_string _glfw.wl.xkb.keymap_new_from_string +#define xkb_keymap_unref _glfw.wl.xkb.keymap_unref +#define xkb_keymap_mod_get_index _glfw.wl.xkb.keymap_mod_get_index +#define xkb_keymap_key_repeats _glfw.wl.xkb.keymap_key_repeats +#define xkb_keymap_key_get_syms_by_level _glfw.wl.xkb.keymap_key_get_syms_by_level +#define xkb_state_new _glfw.wl.xkb.state_new +#define xkb_state_unref _glfw.wl.xkb.state_unref +#define xkb_state_key_get_syms _glfw.wl.xkb.state_key_get_syms +#define xkb_state_update_mask _glfw.wl.xkb.state_update_mask +#define xkb_state_key_get_layout _glfw.wl.xkb.state_key_get_layout +#define xkb_state_mod_index_is_active _glfw.wl.xkb.state_mod_index_is_active + +typedef struct xkb_compose_table* (* PFN_xkb_compose_table_new_from_locale)(struct xkb_context*, const char*, enum xkb_compose_compile_flags); +typedef void (* PFN_xkb_compose_table_unref)(struct xkb_compose_table*); +typedef struct xkb_compose_state* (* PFN_xkb_compose_state_new)(struct xkb_compose_table*, enum xkb_compose_state_flags); +typedef void (* PFN_xkb_compose_state_unref)(struct xkb_compose_state*); +typedef enum xkb_compose_feed_result (* PFN_xkb_compose_state_feed)(struct xkb_compose_state*, xkb_keysym_t); +typedef enum xkb_compose_status (* PFN_xkb_compose_state_get_status)(struct xkb_compose_state*); +typedef xkb_keysym_t (* PFN_xkb_compose_state_get_one_sym)(struct xkb_compose_state*); +#define xkb_compose_table_new_from_locale _glfw.wl.xkb.compose_table_new_from_locale +#define xkb_compose_table_unref _glfw.wl.xkb.compose_table_unref +#define xkb_compose_state_new _glfw.wl.xkb.compose_state_new +#define xkb_compose_state_unref _glfw.wl.xkb.compose_state_unref +#define xkb_compose_state_feed _glfw.wl.xkb.compose_state_feed +#define xkb_compose_state_get_status _glfw.wl.xkb.compose_state_get_status +#define xkb_compose_state_get_one_sym _glfw.wl.xkb.compose_state_get_one_sym + +typedef enum _GLFWdecorationSideWayland +{ + mainWindow, + topDecoration, + leftDecoration, + rightDecoration, + bottomDecoration, +} _GLFWdecorationSideWayland; + +typedef struct _GLFWdecorationWayland +{ + struct wl_surface* surface; + struct wl_subsurface* subsurface; + struct wp_viewport* viewport; +} _GLFWdecorationWayland; + +typedef struct _GLFWofferWayland +{ + struct wl_data_offer* offer; + GLFWbool text_plain_utf8; + GLFWbool text_uri_list; +} _GLFWofferWayland; + +// Wayland-specific per-window data +// +typedef struct _GLFWwindowWayland +{ + int width, height; + GLFWbool visible; + GLFWbool maximized; + GLFWbool activated; + GLFWbool fullscreen; + GLFWbool hovered; + GLFWbool transparent; + struct wl_surface* surface; + struct wl_callback* callback; + + struct { + struct wl_egl_window* window; + } egl; + + struct { + int width, height; + GLFWbool maximized; + GLFWbool iconified; + GLFWbool activated; + GLFWbool fullscreen; + } pending; + + struct { + struct xdg_surface* surface; + struct xdg_toplevel* toplevel; + struct zxdg_toplevel_decoration_v1* decoration; + uint32_t decorationMode; + } xdg; + + _GLFWcursor* currentCursor; + double cursorPosX, cursorPosY; + + char* title; + char* appId; + + // We need to track the monitors the window spans on to calculate the + // optimal scaling factor. + int scale; + _GLFWmonitor** monitors; + int monitorsCount; + int monitorsSize; + + struct zwp_relative_pointer_v1* relativePointer; + struct zwp_locked_pointer_v1* lockedPointer; + struct zwp_confined_pointer_v1* confinedPointer; + + struct zwp_idle_inhibitor_v1* idleInhibitor; + + struct { + struct wl_buffer* buffer; + _GLFWdecorationWayland top, left, right, bottom; + _GLFWdecorationSideWayland focus; + } decorations; +} _GLFWwindowWayland; + +// Wayland-specific global data +// +typedef struct _GLFWlibraryWayland +{ + struct wl_display* display; + struct wl_registry* registry; + struct wl_compositor* compositor; + struct wl_subcompositor* subcompositor; + struct wl_shm* shm; + struct wl_seat* seat; + struct wl_pointer* pointer; + struct wl_keyboard* keyboard; + struct wl_data_device_manager* dataDeviceManager; + struct wl_data_device* dataDevice; + struct xdg_wm_base* wmBase; + struct zxdg_decoration_manager_v1* decorationManager; + struct wp_viewporter* viewporter; + struct zwp_relative_pointer_manager_v1* relativePointerManager; + struct zwp_pointer_constraints_v1* pointerConstraints; + struct zwp_idle_inhibit_manager_v1* idleInhibitManager; + + _GLFWofferWayland* offers; + unsigned int offerCount; + + struct wl_data_offer* selectionOffer; + struct wl_data_source* selectionSource; + + struct wl_data_offer* dragOffer; + _GLFWwindow* dragFocus; + uint32_t dragSerial; + + int compositorVersion; + int seatVersion; + + struct wl_cursor_theme* cursorTheme; + struct wl_cursor_theme* cursorThemeHiDPI; + struct wl_surface* cursorSurface; + const char* cursorPreviousName; + int cursorTimerfd; + uint32_t serial; + uint32_t pointerEnterSerial; + + int keyRepeatTimerfd; + int32_t keyRepeatRate; + int32_t keyRepeatDelay; + int keyRepeatScancode; + + char* clipboardString; + short int keycodes[256]; + short int scancodes[GLFW_KEY_LAST + 1]; + char keynames[GLFW_KEY_LAST + 1][5]; + + struct { + void* handle; + struct xkb_context* context; + struct xkb_keymap* keymap; + struct xkb_state* state; + + struct xkb_compose_state* composeState; + + xkb_mod_index_t controlIndex; + xkb_mod_index_t altIndex; + xkb_mod_index_t shiftIndex; + xkb_mod_index_t superIndex; + xkb_mod_index_t capsLockIndex; + xkb_mod_index_t numLockIndex; + unsigned int modifiers; + + PFN_xkb_context_new context_new; + PFN_xkb_context_unref context_unref; + PFN_xkb_keymap_new_from_string keymap_new_from_string; + PFN_xkb_keymap_unref keymap_unref; + PFN_xkb_keymap_mod_get_index keymap_mod_get_index; + PFN_xkb_keymap_key_repeats keymap_key_repeats; + PFN_xkb_keymap_key_get_syms_by_level keymap_key_get_syms_by_level; + PFN_xkb_state_new state_new; + PFN_xkb_state_unref state_unref; + PFN_xkb_state_key_get_syms state_key_get_syms; + PFN_xkb_state_update_mask state_update_mask; + PFN_xkb_state_key_get_layout state_key_get_layout; + PFN_xkb_state_mod_index_is_active state_mod_index_is_active; + + PFN_xkb_compose_table_new_from_locale compose_table_new_from_locale; + PFN_xkb_compose_table_unref compose_table_unref; + PFN_xkb_compose_state_new compose_state_new; + PFN_xkb_compose_state_unref compose_state_unref; + PFN_xkb_compose_state_feed compose_state_feed; + PFN_xkb_compose_state_get_status compose_state_get_status; + PFN_xkb_compose_state_get_one_sym compose_state_get_one_sym; + } xkb; + + _GLFWwindow* pointerFocus; + _GLFWwindow* keyboardFocus; + + struct { + void* handle; + PFN_wl_display_flush display_flush; + PFN_wl_display_cancel_read display_cancel_read; + PFN_wl_display_dispatch_pending display_dispatch_pending; + PFN_wl_display_read_events display_read_events; + PFN_wl_display_disconnect display_disconnect; + PFN_wl_display_roundtrip display_roundtrip; + PFN_wl_display_get_fd display_get_fd; + PFN_wl_display_prepare_read display_prepare_read; + PFN_wl_proxy_marshal proxy_marshal; + PFN_wl_proxy_add_listener proxy_add_listener; + PFN_wl_proxy_destroy proxy_destroy; + PFN_wl_proxy_marshal_constructor proxy_marshal_constructor; + PFN_wl_proxy_marshal_constructor_versioned proxy_marshal_constructor_versioned; + PFN_wl_proxy_get_user_data proxy_get_user_data; + PFN_wl_proxy_set_user_data proxy_set_user_data; + PFN_wl_proxy_get_version proxy_get_version; + PFN_wl_proxy_marshal_flags proxy_marshal_flags; + } client; + + struct { + void* handle; + + PFN_wl_cursor_theme_load theme_load; + PFN_wl_cursor_theme_destroy theme_destroy; + PFN_wl_cursor_theme_get_cursor theme_get_cursor; + PFN_wl_cursor_image_get_buffer image_get_buffer; + } cursor; + + struct { + void* handle; + + PFN_wl_egl_window_create window_create; + PFN_wl_egl_window_destroy window_destroy; + PFN_wl_egl_window_resize window_resize; + } egl; +} _GLFWlibraryWayland; + +// Wayland-specific per-monitor data +// +typedef struct _GLFWmonitorWayland +{ + struct wl_output* output; + uint32_t name; + int currentMode; + + int x; + int y; + int scale; +} _GLFWmonitorWayland; + +// Wayland-specific per-cursor data +// +typedef struct _GLFWcursorWayland +{ + struct wl_cursor* cursor; + struct wl_cursor* cursorHiDPI; + struct wl_buffer* buffer; + int width, height; + int xhot, yhot; + int currentImage; +} _GLFWcursorWayland; + +GLFWbool _glfwConnectWayland(int platformID, _GLFWplatform* platform); +int _glfwInitWayland(void); +void _glfwTerminateWayland(void); + +GLFWbool _glfwCreateWindowWayland(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig); +void _glfwDestroyWindowWayland(_GLFWwindow* window); +void _glfwSetWindowTitleWayland(_GLFWwindow* window, const char* title); +void _glfwSetWindowIconWayland(_GLFWwindow* window, int count, const GLFWimage* images); +void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos); +void _glfwSetWindowPosWayland(_GLFWwindow* window, int xpos, int ypos); +void _glfwGetWindowSizeWayland(_GLFWwindow* window, int* width, int* height); +void _glfwSetWindowSizeWayland(_GLFWwindow* window, int width, int height); +void _glfwSetWindowSizeLimitsWayland(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); +void _glfwSetWindowAspectRatioWayland(_GLFWwindow* window, int numer, int denom); +void _glfwGetFramebufferSizeWayland(_GLFWwindow* window, int* width, int* height); +void _glfwGetWindowFrameSizeWayland(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); +void _glfwGetWindowContentScaleWayland(_GLFWwindow* window, float* xscale, float* yscale); +void _glfwIconifyWindowWayland(_GLFWwindow* window); +void _glfwRestoreWindowWayland(_GLFWwindow* window); +void _glfwMaximizeWindowWayland(_GLFWwindow* window); +void _glfwShowWindowWayland(_GLFWwindow* window); +void _glfwHideWindowWayland(_GLFWwindow* window); +void _glfwRequestWindowAttentionWayland(_GLFWwindow* window); +void _glfwFocusWindowWayland(_GLFWwindow* window); +void _glfwSetWindowMonitorWayland(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); +GLFWbool _glfwWindowFocusedWayland(_GLFWwindow* window); +GLFWbool _glfwWindowIconifiedWayland(_GLFWwindow* window); +GLFWbool _glfwWindowVisibleWayland(_GLFWwindow* window); +GLFWbool _glfwWindowMaximizedWayland(_GLFWwindow* window); +GLFWbool _glfwWindowHoveredWayland(_GLFWwindow* window); +GLFWbool _glfwFramebufferTransparentWayland(_GLFWwindow* window); +void _glfwSetWindowResizableWayland(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowDecoratedWayland(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowFloatingWayland(_GLFWwindow* window, GLFWbool enabled); +float _glfwGetWindowOpacityWayland(_GLFWwindow* window); +void _glfwSetWindowOpacityWayland(_GLFWwindow* window, float opacity); +void _glfwSetWindowMousePassthroughWayland(_GLFWwindow* window, GLFWbool enabled); + +void _glfwSetRawMouseMotionWayland(_GLFWwindow* window, GLFWbool enabled); +GLFWbool _glfwRawMouseMotionSupportedWayland(void); + +void _glfwPollEventsWayland(void); +void _glfwWaitEventsWayland(void); +void _glfwWaitEventsTimeoutWayland(double timeout); +void _glfwPostEmptyEventWayland(void); + +void _glfwGetCursorPosWayland(_GLFWwindow* window, double* xpos, double* ypos); +void _glfwSetCursorPosWayland(_GLFWwindow* window, double xpos, double ypos); +void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode); +const char* _glfwGetScancodeNameWayland(int scancode); +int _glfwGetKeyScancodeWayland(int key); +GLFWbool _glfwCreateCursorWayland(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); +GLFWbool _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape); +void _glfwDestroyCursorWayland(_GLFWcursor* cursor); +void _glfwSetCursorWayland(_GLFWwindow* window, _GLFWcursor* cursor); +void _glfwSetClipboardStringWayland(const char* string); +const char* _glfwGetClipboardStringWayland(void); + +EGLenum _glfwGetEGLPlatformWayland(EGLint** attribs); +EGLNativeDisplayType _glfwGetEGLNativeDisplayWayland(void); +EGLNativeWindowType _glfwGetEGLNativeWindowWayland(_GLFWwindow* window); + +void _glfwGetRequiredInstanceExtensionsWayland(char** extensions); +GLFWbool _glfwGetPhysicalDevicePresentationSupportWayland(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); +VkResult _glfwCreateWindowSurfaceWayland(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); + +void _glfwFreeMonitorWayland(_GLFWmonitor* monitor); +void _glfwGetMonitorPosWayland(_GLFWmonitor* monitor, int* xpos, int* ypos); +void _glfwGetMonitorContentScaleWayland(_GLFWmonitor* monitor, float* xscale, float* yscale); +void _glfwGetMonitorWorkareaWayland(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); +GLFWvidmode* _glfwGetVideoModesWayland(_GLFWmonitor* monitor, int* count); +void _glfwGetVideoModeWayland(_GLFWmonitor* monitor, GLFWvidmode* mode); +GLFWbool _glfwGetGammaRampWayland(_GLFWmonitor* monitor, GLFWgammaramp* ramp); +void _glfwSetGammaRampWayland(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +void _glfwAddOutputWayland(uint32_t name, uint32_t version); +void _glfwUpdateContentScaleWayland(_GLFWwindow* window); + +void _glfwAddSeatListenerWayland(struct wl_seat* seat); +void _glfwAddDataDeviceListenerWayland(struct wl_data_device* device); + diff --git a/thirdparty/imgui_suite/glfw/src/wl_window.c b/thirdparty/imgui_suite/glfw/src/wl_window.c new file mode 100644 index 00000000000..76d5f15bca2 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/wl_window.c @@ -0,0 +1,2889 @@ +//======================================================================== +// GLFW 3.4 Wayland - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#define _GNU_SOURCE + +#include "internal.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "wayland-client-protocol.h" +#include "wayland-xdg-shell-client-protocol.h" +#include "wayland-xdg-decoration-client-protocol.h" +#include "wayland-viewporter-client-protocol.h" +#include "wayland-relative-pointer-unstable-v1-client-protocol.h" +#include "wayland-pointer-constraints-unstable-v1-client-protocol.h" +#include "wayland-idle-inhibit-unstable-v1-client-protocol.h" + +#define GLFW_BORDER_SIZE 4 +#define GLFW_CAPTION_HEIGHT 24 + +static int createTmpfileCloexec(char* tmpname) +{ + int fd; + + fd = mkostemp(tmpname, O_CLOEXEC); + if (fd >= 0) + unlink(tmpname); + + return fd; +} + +/* + * Create a new, unique, anonymous file of the given size, and + * return the file descriptor for it. The file descriptor is set + * CLOEXEC. The file is immediately suitable for mmap()'ing + * the given size at offset zero. + * + * The file should not have a permanent backing store like a disk, + * but may have if XDG_RUNTIME_DIR is not properly implemented in OS. + * + * The file name is deleted from the file system. + * + * The file is suitable for buffer sharing between processes by + * transmitting the file descriptor over Unix sockets using the + * SCM_RIGHTS methods. + * + * posix_fallocate() is used to guarantee that disk space is available + * for the file at the given size. If disk space is insufficient, errno + * is set to ENOSPC. If posix_fallocate() is not supported, program may + * receive SIGBUS on accessing mmap()'ed file contents instead. + */ +static int createAnonymousFile(off_t size) +{ + static const char template[] = "/glfw-shared-XXXXXX"; + const char* path; + char* name; + int fd; + int ret; + +#ifdef HAVE_MEMFD_CREATE + fd = memfd_create("glfw-shared", MFD_CLOEXEC | MFD_ALLOW_SEALING); + if (fd >= 0) + { + // We can add this seal before calling posix_fallocate(), as the file + // is currently zero-sized anyway. + // + // There is also no need to check for the return value, we couldn’t do + // anything with it anyway. + fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); + } + else +#elif defined(SHM_ANON) + fd = shm_open(SHM_ANON, O_RDWR | O_CLOEXEC, 0600); + if (fd < 0) +#endif + { + path = getenv("XDG_RUNTIME_DIR"); + if (!path) + { + errno = ENOENT; + return -1; + } + + name = _glfw_calloc(strlen(path) + sizeof(template), 1); + strcpy(name, path); + strcat(name, template); + + fd = createTmpfileCloexec(name); + _glfw_free(name); + if (fd < 0) + return -1; + } + +#if defined(SHM_ANON) + // posix_fallocate does not work on SHM descriptors + ret = ftruncate(fd, size); +#else + ret = posix_fallocate(fd, 0, size); +#endif + if (ret != 0) + { + close(fd); + errno = ret; + return -1; + } + return fd; +} + +static struct wl_buffer* createShmBuffer(const GLFWimage* image) +{ + const int stride = image->width * 4; + const int length = image->width * image->height * 4; + + const int fd = createAnonymousFile(length); + if (fd < 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create buffer file of size %d: %s", + length, strerror(errno)); + return NULL; + } + + void* data = mmap(NULL, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); + if (data == MAP_FAILED) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to map file: %s", strerror(errno)); + close(fd); + return NULL; + } + + struct wl_shm_pool* pool = wl_shm_create_pool(_glfw.wl.shm, fd, length); + + close(fd); + + unsigned char* source = (unsigned char*) image->pixels; + unsigned char* target = data; + for (int i = 0; i < image->width * image->height; i++, source += 4) + { + unsigned int alpha = source[3]; + + *target++ = (unsigned char) ((source[2] * alpha) / 255); + *target++ = (unsigned char) ((source[1] * alpha) / 255); + *target++ = (unsigned char) ((source[0] * alpha) / 255); + *target++ = (unsigned char) alpha; + } + + struct wl_buffer* buffer = + wl_shm_pool_create_buffer(pool, 0, + image->width, + image->height, + stride, WL_SHM_FORMAT_ARGB8888); + munmap(data, length); + wl_shm_pool_destroy(pool); + + return buffer; +} + +static void createFallbackDecoration(_GLFWdecorationWayland* decoration, + struct wl_surface* parent, + struct wl_buffer* buffer, + int x, int y, + int width, int height) +{ + decoration->surface = wl_compositor_create_surface(_glfw.wl.compositor); + decoration->subsurface = + wl_subcompositor_get_subsurface(_glfw.wl.subcompositor, + decoration->surface, parent); + wl_subsurface_set_position(decoration->subsurface, x, y); + decoration->viewport = wp_viewporter_get_viewport(_glfw.wl.viewporter, + decoration->surface); + wp_viewport_set_destination(decoration->viewport, width, height); + wl_surface_attach(decoration->surface, buffer, 0, 0); + + struct wl_region* region = wl_compositor_create_region(_glfw.wl.compositor); + wl_region_add(region, 0, 0, width, height); + wl_surface_set_opaque_region(decoration->surface, region); + wl_surface_commit(decoration->surface); + wl_region_destroy(region); +} + +static void createFallbackDecorations(_GLFWwindow* window) +{ + unsigned char data[] = { 224, 224, 224, 255 }; + const GLFWimage image = { 1, 1, data }; + + if (!_glfw.wl.viewporter) + return; + + if (!window->wl.decorations.buffer) + window->wl.decorations.buffer = createShmBuffer(&image); + if (!window->wl.decorations.buffer) + return; + + createFallbackDecoration(&window->wl.decorations.top, window->wl.surface, + window->wl.decorations.buffer, + 0, -GLFW_CAPTION_HEIGHT, + window->wl.width, GLFW_CAPTION_HEIGHT); + createFallbackDecoration(&window->wl.decorations.left, window->wl.surface, + window->wl.decorations.buffer, + -GLFW_BORDER_SIZE, -GLFW_CAPTION_HEIGHT, + GLFW_BORDER_SIZE, window->wl.height + GLFW_CAPTION_HEIGHT); + createFallbackDecoration(&window->wl.decorations.right, window->wl.surface, + window->wl.decorations.buffer, + window->wl.width, -GLFW_CAPTION_HEIGHT, + GLFW_BORDER_SIZE, window->wl.height + GLFW_CAPTION_HEIGHT); + createFallbackDecoration(&window->wl.decorations.bottom, window->wl.surface, + window->wl.decorations.buffer, + -GLFW_BORDER_SIZE, window->wl.height, + window->wl.width + GLFW_BORDER_SIZE * 2, GLFW_BORDER_SIZE); +} + +static void destroyFallbackDecoration(_GLFWdecorationWayland* decoration) +{ + if (decoration->subsurface) + wl_subsurface_destroy(decoration->subsurface); + if (decoration->surface) + wl_surface_destroy(decoration->surface); + if (decoration->viewport) + wp_viewport_destroy(decoration->viewport); + decoration->surface = NULL; + decoration->subsurface = NULL; + decoration->viewport = NULL; +} + +static void destroyFallbackDecorations(_GLFWwindow* window) +{ + destroyFallbackDecoration(&window->wl.decorations.top); + destroyFallbackDecoration(&window->wl.decorations.left); + destroyFallbackDecoration(&window->wl.decorations.right); + destroyFallbackDecoration(&window->wl.decorations.bottom); +} + +static void xdgDecorationHandleConfigure(void* userData, + struct zxdg_toplevel_decoration_v1* decoration, + uint32_t mode) +{ + _GLFWwindow* window = userData; + + window->wl.xdg.decorationMode = mode; + + if (mode == ZXDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE) + { + if (window->decorated && !window->monitor) + createFallbackDecorations(window); + } + else + destroyFallbackDecorations(window); +} + +static const struct zxdg_toplevel_decoration_v1_listener xdgDecorationListener = +{ + xdgDecorationHandleConfigure, +}; + +// Makes the surface considered as XRGB instead of ARGB. +static void setContentAreaOpaque(_GLFWwindow* window) +{ + struct wl_region* region; + + region = wl_compositor_create_region(_glfw.wl.compositor); + if (!region) + return; + + wl_region_add(region, 0, 0, window->wl.width, window->wl.height); + wl_surface_set_opaque_region(window->wl.surface, region); + wl_region_destroy(region); +} + + +static void resizeWindow(_GLFWwindow* window) +{ + int scale = window->wl.scale; + int scaledWidth = window->wl.width * scale; + int scaledHeight = window->wl.height * scale; + + if (window->wl.egl.window) + wl_egl_window_resize(window->wl.egl.window, scaledWidth, scaledHeight, 0, 0); + if (!window->wl.transparent) + setContentAreaOpaque(window); + _glfwInputFramebufferSize(window, scaledWidth, scaledHeight); + + if (!window->wl.decorations.top.surface) + return; + + wp_viewport_set_destination(window->wl.decorations.top.viewport, + window->wl.width, GLFW_CAPTION_HEIGHT); + wl_surface_commit(window->wl.decorations.top.surface); + + wp_viewport_set_destination(window->wl.decorations.left.viewport, + GLFW_BORDER_SIZE, window->wl.height + GLFW_CAPTION_HEIGHT); + wl_surface_commit(window->wl.decorations.left.surface); + + wl_subsurface_set_position(window->wl.decorations.right.subsurface, + window->wl.width, -GLFW_CAPTION_HEIGHT); + wp_viewport_set_destination(window->wl.decorations.right.viewport, + GLFW_BORDER_SIZE, window->wl.height + GLFW_CAPTION_HEIGHT); + wl_surface_commit(window->wl.decorations.right.surface); + + wl_subsurface_set_position(window->wl.decorations.bottom.subsurface, + -GLFW_BORDER_SIZE, window->wl.height); + wp_viewport_set_destination(window->wl.decorations.bottom.viewport, + window->wl.width + GLFW_BORDER_SIZE * 2, GLFW_BORDER_SIZE); + wl_surface_commit(window->wl.decorations.bottom.surface); +} + +void _glfwUpdateContentScaleWayland(_GLFWwindow* window) +{ + if (_glfw.wl.compositorVersion < WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION) + return; + + // Get the scale factor from the highest scale monitor. + int maxScale = 1; + + for (int i = 0; i < window->wl.monitorsCount; i++) + maxScale = _glfw_max(window->wl.monitors[i]->wl.scale, maxScale); + + // Only change the framebuffer size if the scale changed. + if (window->wl.scale != maxScale) + { + window->wl.scale = maxScale; + wl_surface_set_buffer_scale(window->wl.surface, maxScale); + _glfwInputWindowContentScale(window, maxScale, maxScale); + resizeWindow(window); + } +} + +static void surfaceHandleEnter(void* userData, + struct wl_surface* surface, + struct wl_output* output) +{ + _GLFWwindow* window = userData; + _GLFWmonitor* monitor = wl_output_get_user_data(output); + + if (window->wl.monitorsCount + 1 > window->wl.monitorsSize) + { + ++window->wl.monitorsSize; + window->wl.monitors = + _glfw_realloc(window->wl.monitors, + window->wl.monitorsSize * sizeof(_GLFWmonitor*)); + } + + window->wl.monitors[window->wl.monitorsCount++] = monitor; + + _glfwUpdateContentScaleWayland(window); +} + +static void surfaceHandleLeave(void* userData, + struct wl_surface* surface, + struct wl_output* output) +{ + _GLFWwindow* window = userData; + _GLFWmonitor* monitor = wl_output_get_user_data(output); + GLFWbool found = GLFW_FALSE; + + for (int i = 0; i < window->wl.monitorsCount - 1; ++i) + { + if (monitor == window->wl.monitors[i]) + found = GLFW_TRUE; + if (found) + window->wl.monitors[i] = window->wl.monitors[i + 1]; + } + window->wl.monitors[--window->wl.monitorsCount] = NULL; + + _glfwUpdateContentScaleWayland(window); +} + +static const struct wl_surface_listener surfaceListener = +{ + surfaceHandleEnter, + surfaceHandleLeave +}; + +static void setIdleInhibitor(_GLFWwindow* window, GLFWbool enable) +{ + if (enable && !window->wl.idleInhibitor && _glfw.wl.idleInhibitManager) + { + window->wl.idleInhibitor = + zwp_idle_inhibit_manager_v1_create_inhibitor( + _glfw.wl.idleInhibitManager, window->wl.surface); + if (!window->wl.idleInhibitor) + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create idle inhibitor"); + } + else if (!enable && window->wl.idleInhibitor) + { + zwp_idle_inhibitor_v1_destroy(window->wl.idleInhibitor); + window->wl.idleInhibitor = NULL; + } +} + +// Make the specified window and its video mode active on its monitor +// +static void acquireMonitor(_GLFWwindow* window) +{ + if (window->wl.xdg.toplevel) + { + xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, + window->monitor->wl.output); + } + + setIdleInhibitor(window, GLFW_TRUE); + + if (window->wl.decorations.top.surface) + destroyFallbackDecorations(window); +} + +// Remove the window and restore the original video mode +// +static void releaseMonitor(_GLFWwindow* window) +{ + if (window->wl.xdg.toplevel) + xdg_toplevel_unset_fullscreen(window->wl.xdg.toplevel); + + setIdleInhibitor(window, GLFW_FALSE); + + if (window->wl.xdg.decorationMode != ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE) + { + if (window->decorated) + createFallbackDecorations(window); + } +} + +static void xdgToplevelHandleConfigure(void* userData, + struct xdg_toplevel* toplevel, + int32_t width, + int32_t height, + struct wl_array* states) +{ + _GLFWwindow* window = userData; + uint32_t* state; + + window->wl.pending.activated = GLFW_FALSE; + window->wl.pending.maximized = GLFW_FALSE; + window->wl.pending.fullscreen = GLFW_FALSE; + + wl_array_for_each(state, states) + { + switch (*state) + { + case XDG_TOPLEVEL_STATE_MAXIMIZED: + window->wl.pending.maximized = GLFW_TRUE; + break; + case XDG_TOPLEVEL_STATE_FULLSCREEN: + window->wl.pending.fullscreen = GLFW_TRUE; + break; + case XDG_TOPLEVEL_STATE_RESIZING: + break; + case XDG_TOPLEVEL_STATE_ACTIVATED: + window->wl.pending.activated = GLFW_TRUE; + break; + } + } + + if (width && height) + { + if (window->wl.decorations.top.surface) + { + window->wl.pending.width = _glfw_max(0, width - GLFW_BORDER_SIZE * 2); + window->wl.pending.height = + _glfw_max(0, height - GLFW_BORDER_SIZE - GLFW_CAPTION_HEIGHT); + } + else + { + window->wl.pending.width = width; + window->wl.pending.height = height; + } + } + else + { + window->wl.pending.width = window->wl.width; + window->wl.pending.height = window->wl.height; + } +} + +static void xdgToplevelHandleClose(void* userData, + struct xdg_toplevel* toplevel) +{ + _GLFWwindow* window = userData; + _glfwInputWindowCloseRequest(window); +} + +static const struct xdg_toplevel_listener xdgToplevelListener = +{ + xdgToplevelHandleConfigure, + xdgToplevelHandleClose +}; + +static void xdgSurfaceHandleConfigure(void* userData, + struct xdg_surface* surface, + uint32_t serial) +{ + _GLFWwindow* window = userData; + + xdg_surface_ack_configure(surface, serial); + + if (window->wl.activated != window->wl.pending.activated) + { + window->wl.activated = window->wl.pending.activated; + if (!window->wl.activated) + { + if (window->monitor && window->autoIconify) + xdg_toplevel_set_minimized(window->wl.xdg.toplevel); + } + } + + if (window->wl.maximized != window->wl.pending.maximized) + { + window->wl.maximized = window->wl.pending.maximized; + _glfwInputWindowMaximize(window, window->wl.maximized); + } + + window->wl.fullscreen = window->wl.pending.fullscreen; + + int width = window->wl.pending.width; + int height = window->wl.pending.height; + + if (!window->wl.maximized && !window->wl.fullscreen) + { + if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) + { + const float aspectRatio = (float) width / (float) height; + const float targetRatio = (float) window->numer / (float) window->denom; + if (aspectRatio < targetRatio) + height = width / targetRatio; + else if (aspectRatio > targetRatio) + width = height * targetRatio; + } + } + + if (width != window->wl.width || height != window->wl.height) + { + window->wl.width = width; + window->wl.height = height; + resizeWindow(window); + + _glfwInputWindowSize(window, width, height); + + if (window->wl.visible) + _glfwInputWindowDamage(window); + } + + if (!window->wl.visible) + { + // Allow the window to be mapped only if it either has no XDG + // decorations or they have already received a configure event + if (!window->wl.xdg.decoration || window->wl.xdg.decorationMode) + { + window->wl.visible = GLFW_TRUE; + _glfwInputWindowDamage(window); + } + } +} + +static const struct xdg_surface_listener xdgSurfaceListener = +{ + xdgSurfaceHandleConfigure +}; + +static GLFWbool createShellObjects(_GLFWwindow* window) +{ + window->wl.xdg.surface = xdg_wm_base_get_xdg_surface(_glfw.wl.wmBase, + window->wl.surface); + if (!window->wl.xdg.surface) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create xdg-surface for window"); + return GLFW_FALSE; + } + + xdg_surface_add_listener(window->wl.xdg.surface, &xdgSurfaceListener, window); + + window->wl.xdg.toplevel = xdg_surface_get_toplevel(window->wl.xdg.surface); + if (!window->wl.xdg.toplevel) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create xdg-toplevel for window"); + return GLFW_FALSE; + } + + xdg_toplevel_add_listener(window->wl.xdg.toplevel, &xdgToplevelListener, window); + + if (window->wl.appId) + xdg_toplevel_set_app_id(window->wl.xdg.toplevel, window->wl.appId); + + if (window->wl.title) + xdg_toplevel_set_title(window->wl.xdg.toplevel, window->wl.title); + + if (window->monitor) + { + xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, window->monitor->wl.output); + setIdleInhibitor(window, GLFW_TRUE); + } + else + { + if (window->wl.maximized) + xdg_toplevel_set_maximized(window->wl.xdg.toplevel); + + setIdleInhibitor(window, GLFW_FALSE); + + if (_glfw.wl.decorationManager) + { + window->wl.xdg.decoration = + zxdg_decoration_manager_v1_get_toplevel_decoration( + _glfw.wl.decorationManager, window->wl.xdg.toplevel); + zxdg_toplevel_decoration_v1_add_listener(window->wl.xdg.decoration, + &xdgDecorationListener, + window); + + uint32_t mode; + + if (window->decorated) + mode = ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE; + else + mode = ZXDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE; + + zxdg_toplevel_decoration_v1_set_mode(window->wl.xdg.decoration, mode); + } + else + { + if (window->decorated) + createFallbackDecorations(window); + } + } + + if (window->minwidth != GLFW_DONT_CARE && window->minheight != GLFW_DONT_CARE) + { + int minwidth = window->minwidth; + int minheight = window->minheight; + + if (window->wl.decorations.top.surface) + { + minwidth += GLFW_BORDER_SIZE * 2; + minheight += GLFW_CAPTION_HEIGHT + GLFW_BORDER_SIZE; + } + + xdg_toplevel_set_min_size(window->wl.xdg.toplevel, minwidth, minheight); + } + + if (window->maxwidth != GLFW_DONT_CARE && window->maxheight != GLFW_DONT_CARE) + { + int maxwidth = window->maxwidth; + int maxheight = window->maxheight; + + if (window->wl.decorations.top.surface) + { + maxwidth += GLFW_BORDER_SIZE * 2; + maxheight += GLFW_CAPTION_HEIGHT + GLFW_BORDER_SIZE; + } + + xdg_toplevel_set_max_size(window->wl.xdg.toplevel, maxwidth, maxheight); + } + + wl_surface_commit(window->wl.surface); + wl_display_roundtrip(_glfw.wl.display); + + return GLFW_TRUE; +} + +static void destroyShellObjects(_GLFWwindow* window) +{ + destroyFallbackDecorations(window); + + if (window->wl.xdg.decoration) + zxdg_toplevel_decoration_v1_destroy(window->wl.xdg.decoration); + + if (window->wl.xdg.toplevel) + xdg_toplevel_destroy(window->wl.xdg.toplevel); + + if (window->wl.xdg.surface) + xdg_surface_destroy(window->wl.xdg.surface); + + window->wl.xdg.decoration = NULL; + window->wl.xdg.decorationMode = 0; + window->wl.xdg.toplevel = NULL; + window->wl.xdg.surface = NULL; +} + +static GLFWbool createNativeSurface(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWfbconfig* fbconfig) +{ + window->wl.surface = wl_compositor_create_surface(_glfw.wl.compositor); + if (!window->wl.surface) + { + _glfwInputError(GLFW_PLATFORM_ERROR, "Wayland: Failed to create window surface"); + return GLFW_FALSE; + } + + wl_surface_add_listener(window->wl.surface, + &surfaceListener, + window); + + wl_surface_set_user_data(window->wl.surface, window); + + window->wl.width = wndconfig->width; + window->wl.height = wndconfig->height; + window->wl.scale = 1; + window->wl.title = _glfw_strdup(wndconfig->title); + window->wl.appId = _glfw_strdup(wndconfig->wl.appId); + + window->wl.maximized = wndconfig->maximized; + + window->wl.transparent = fbconfig->transparent; + if (!window->wl.transparent) + setContentAreaOpaque(window); + + return GLFW_TRUE; +} + +static void setCursorImage(_GLFWwindow* window, + _GLFWcursorWayland* cursorWayland) +{ + struct itimerspec timer = {0}; + struct wl_cursor* wlCursor = cursorWayland->cursor; + struct wl_cursor_image* image; + struct wl_buffer* buffer; + struct wl_surface* surface = _glfw.wl.cursorSurface; + int scale = 1; + + if (!wlCursor) + buffer = cursorWayland->buffer; + else + { + if (window->wl.scale > 1 && cursorWayland->cursorHiDPI) + { + wlCursor = cursorWayland->cursorHiDPI; + scale = 2; + } + + image = wlCursor->images[cursorWayland->currentImage]; + buffer = wl_cursor_image_get_buffer(image); + if (!buffer) + return; + + timer.it_value.tv_sec = image->delay / 1000; + timer.it_value.tv_nsec = (image->delay % 1000) * 1000000; + timerfd_settime(_glfw.wl.cursorTimerfd, 0, &timer, NULL); + + cursorWayland->width = image->width; + cursorWayland->height = image->height; + cursorWayland->xhot = image->hotspot_x; + cursorWayland->yhot = image->hotspot_y; + } + + wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerEnterSerial, + surface, + cursorWayland->xhot / scale, + cursorWayland->yhot / scale); + wl_surface_set_buffer_scale(surface, scale); + wl_surface_attach(surface, buffer, 0, 0); + wl_surface_damage(surface, 0, 0, + cursorWayland->width, cursorWayland->height); + wl_surface_commit(surface); +} + +static void incrementCursorImage(_GLFWwindow* window) +{ + _GLFWcursor* cursor; + + if (!window || window->wl.decorations.focus != mainWindow) + return; + + cursor = window->wl.currentCursor; + if (cursor && cursor->wl.cursor) + { + cursor->wl.currentImage += 1; + cursor->wl.currentImage %= cursor->wl.cursor->image_count; + setCursorImage(window, &cursor->wl); + } +} + +static GLFWbool flushDisplay(void) +{ + while (wl_display_flush(_glfw.wl.display) == -1) + { + if (errno != EAGAIN) + return GLFW_FALSE; + + struct pollfd fd = { wl_display_get_fd(_glfw.wl.display), POLLOUT }; + + while (poll(&fd, 1, -1) == -1) + { + if (errno != EINTR && errno != EAGAIN) + return GLFW_FALSE; + } + } + + return GLFW_TRUE; +} + +static int translateKey(uint32_t scancode) +{ + if (scancode < sizeof(_glfw.wl.keycodes) / sizeof(_glfw.wl.keycodes[0])) + return _glfw.wl.keycodes[scancode]; + + return GLFW_KEY_UNKNOWN; +} + +static xkb_keysym_t composeSymbol(xkb_keysym_t sym) +{ + if (sym == XKB_KEY_NoSymbol || !_glfw.wl.xkb.composeState) + return sym; + if (xkb_compose_state_feed(_glfw.wl.xkb.composeState, sym) + != XKB_COMPOSE_FEED_ACCEPTED) + return sym; + switch (xkb_compose_state_get_status(_glfw.wl.xkb.composeState)) + { + case XKB_COMPOSE_COMPOSED: + return xkb_compose_state_get_one_sym(_glfw.wl.xkb.composeState); + case XKB_COMPOSE_COMPOSING: + case XKB_COMPOSE_CANCELLED: + return XKB_KEY_NoSymbol; + case XKB_COMPOSE_NOTHING: + default: + return sym; + } +} + +static void inputText(_GLFWwindow* window, uint32_t scancode) +{ + const xkb_keysym_t* keysyms; + const xkb_keycode_t keycode = scancode + 8; + + if (xkb_state_key_get_syms(_glfw.wl.xkb.state, keycode, &keysyms) == 1) + { + const xkb_keysym_t keysym = composeSymbol(keysyms[0]); + const uint32_t codepoint = _glfwKeySym2Unicode(keysym); + if (codepoint != GLFW_INVALID_CODEPOINT) + { + const int mods = _glfw.wl.xkb.modifiers; + const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); + _glfwInputChar(window, codepoint, mods, plain); + } + } +} + +static void handleEvents(double* timeout) +{ + GLFWbool event = GLFW_FALSE; + struct pollfd fds[] = + { + { wl_display_get_fd(_glfw.wl.display), POLLIN }, + { _glfw.wl.keyRepeatTimerfd, POLLIN }, + { _glfw.wl.cursorTimerfd, POLLIN }, + }; + + while (!event) + { + while (wl_display_prepare_read(_glfw.wl.display) != 0) + wl_display_dispatch_pending(_glfw.wl.display); + + // If an error other than EAGAIN happens, we have likely been disconnected + // from the Wayland session; try to handle that the best we can. + if (!flushDisplay()) + { + wl_display_cancel_read(_glfw.wl.display); + + _GLFWwindow* window = _glfw.windowListHead; + while (window) + { + _glfwInputWindowCloseRequest(window); + window = window->next; + } + + return; + } + + if (!_glfwPollPOSIX(fds, 3, timeout)) + { + wl_display_cancel_read(_glfw.wl.display); + return; + } + + if (fds[0].revents & POLLIN) + { + wl_display_read_events(_glfw.wl.display); + if (wl_display_dispatch_pending(_glfw.wl.display) > 0) + event = GLFW_TRUE; + } + else + wl_display_cancel_read(_glfw.wl.display); + + if (fds[1].revents & POLLIN) + { + uint64_t repeats; + + if (read(_glfw.wl.keyRepeatTimerfd, &repeats, sizeof(repeats)) == 8) + { + for (uint64_t i = 0; i < repeats; i++) + { + _glfwInputKey(_glfw.wl.keyboardFocus, + translateKey(_glfw.wl.keyRepeatScancode), + _glfw.wl.keyRepeatScancode, + GLFW_PRESS, + _glfw.wl.xkb.modifiers); + inputText(_glfw.wl.keyboardFocus, _glfw.wl.keyRepeatScancode); + } + + event = GLFW_TRUE; + } + } + + if (fds[2].revents & POLLIN) + { + uint64_t repeats; + + if (read(_glfw.wl.cursorTimerfd, &repeats, sizeof(repeats)) == 8) + { + incrementCursorImage(_glfw.wl.pointerFocus); + event = GLFW_TRUE; + } + } + } +} + +// Reads the specified data offer as the specified MIME type +// +static char* readDataOfferAsString(struct wl_data_offer* offer, const char* mimeType) +{ + int fds[2]; + + if (pipe2(fds, O_CLOEXEC) == -1) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create pipe for data offer: %s", + strerror(errno)); + return NULL; + } + + wl_data_offer_receive(offer, mimeType, fds[1]); + flushDisplay(); + close(fds[1]); + + char* string = NULL; + size_t size = 0; + size_t length = 0; + + for (;;) + { + const size_t readSize = 4096; + const size_t requiredSize = length + readSize + 1; + if (requiredSize > size) + { + char* longer = _glfw_realloc(string, requiredSize); + if (!longer) + { + _glfwInputError(GLFW_OUT_OF_MEMORY, NULL); + close(fds[0]); + return NULL; + } + + string = longer; + size = requiredSize; + } + + const ssize_t result = read(fds[0], string + length, readSize); + if (result == 0) + break; + else if (result == -1) + { + if (errno == EINTR) + continue; + + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to read from data offer pipe: %s", + strerror(errno)); + close(fds[0]); + return NULL; + } + + length += result; + } + + close(fds[0]); + + string[length] = '\0'; + return string; +} + +static _GLFWwindow* findWindowFromDecorationSurface(struct wl_surface* surface, + _GLFWdecorationSideWayland* which) +{ + _GLFWdecorationSideWayland focus; + _GLFWwindow* window = _glfw.windowListHead; + if (!which) + which = &focus; + while (window) + { + if (surface == window->wl.decorations.top.surface) + { + *which = topDecoration; + break; + } + if (surface == window->wl.decorations.left.surface) + { + *which = leftDecoration; + break; + } + if (surface == window->wl.decorations.right.surface) + { + *which = rightDecoration; + break; + } + if (surface == window->wl.decorations.bottom.surface) + { + *which = bottomDecoration; + break; + } + window = window->next; + } + return window; +} + +static void pointerHandleEnter(void* userData, + struct wl_pointer* pointer, + uint32_t serial, + struct wl_surface* surface, + wl_fixed_t sx, + wl_fixed_t sy) +{ + // Happens in the case we just destroyed the surface. + if (!surface) + return; + + _GLFWdecorationSideWayland focus = mainWindow; + _GLFWwindow* window = wl_surface_get_user_data(surface); + if (!window) + { + window = findWindowFromDecorationSurface(surface, &focus); + if (!window) + return; + } + + window->wl.decorations.focus = focus; + _glfw.wl.serial = serial; + _glfw.wl.pointerEnterSerial = serial; + _glfw.wl.pointerFocus = window; + + window->wl.hovered = GLFW_TRUE; + + _glfwSetCursorWayland(window, window->wl.currentCursor); + _glfwInputCursorEnter(window, GLFW_TRUE); +} + +static void pointerHandleLeave(void* userData, + struct wl_pointer* pointer, + uint32_t serial, + struct wl_surface* surface) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + + if (!window) + return; + + window->wl.hovered = GLFW_FALSE; + + _glfw.wl.serial = serial; + _glfw.wl.pointerFocus = NULL; + _glfw.wl.cursorPreviousName = NULL; + _glfwInputCursorEnter(window, GLFW_FALSE); +} + +static void setCursor(_GLFWwindow* window, const char* name) +{ + struct wl_buffer* buffer; + struct wl_cursor* cursor; + struct wl_cursor_image* image; + struct wl_surface* surface = _glfw.wl.cursorSurface; + struct wl_cursor_theme* theme = _glfw.wl.cursorTheme; + int scale = 1; + + if (window->wl.scale > 1 && _glfw.wl.cursorThemeHiDPI) + { + // We only support up to scale=2 for now, since libwayland-cursor + // requires us to load a different theme for each size. + scale = 2; + theme = _glfw.wl.cursorThemeHiDPI; + } + + cursor = wl_cursor_theme_get_cursor(theme, name); + if (!cursor) + { + _glfwInputError(GLFW_CURSOR_UNAVAILABLE, + "Wayland: Standard cursor shape unavailable"); + return; + } + // TODO: handle animated cursors too. + image = cursor->images[0]; + + if (!image) + return; + + buffer = wl_cursor_image_get_buffer(image); + if (!buffer) + return; + wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerEnterSerial, + surface, + image->hotspot_x / scale, + image->hotspot_y / scale); + wl_surface_set_buffer_scale(surface, scale); + wl_surface_attach(surface, buffer, 0, 0); + wl_surface_damage(surface, 0, 0, + image->width, image->height); + wl_surface_commit(surface); + _glfw.wl.cursorPreviousName = name; +} + +static void pointerHandleMotion(void* userData, + struct wl_pointer* pointer, + uint32_t time, + wl_fixed_t sx, + wl_fixed_t sy) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + const char* cursorName = NULL; + double x, y; + + if (!window) + return; + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + return; + x = wl_fixed_to_double(sx); + y = wl_fixed_to_double(sy); + window->wl.cursorPosX = x; + window->wl.cursorPosY = y; + + switch (window->wl.decorations.focus) + { + case mainWindow: + _glfw.wl.cursorPreviousName = NULL; + _glfwInputCursorPos(window, x, y); + return; + case topDecoration: + if (y < GLFW_BORDER_SIZE) + cursorName = "n-resize"; + else + cursorName = "left_ptr"; + break; + case leftDecoration: + if (y < GLFW_BORDER_SIZE) + cursorName = "nw-resize"; + else + cursorName = "w-resize"; + break; + case rightDecoration: + if (y < GLFW_BORDER_SIZE) + cursorName = "ne-resize"; + else + cursorName = "e-resize"; + break; + case bottomDecoration: + if (x < GLFW_BORDER_SIZE) + cursorName = "sw-resize"; + else if (x > window->wl.width + GLFW_BORDER_SIZE) + cursorName = "se-resize"; + else + cursorName = "s-resize"; + break; + default: + assert(0); + } + if (_glfw.wl.cursorPreviousName != cursorName) + setCursor(window, cursorName); +} + +static void pointerHandleButton(void* userData, + struct wl_pointer* pointer, + uint32_t serial, + uint32_t time, + uint32_t button, + uint32_t state) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + int glfwButton; + uint32_t edges = XDG_TOPLEVEL_RESIZE_EDGE_NONE; + + if (!window) + return; + if (button == BTN_LEFT) + { + switch (window->wl.decorations.focus) + { + case mainWindow: + break; + case topDecoration: + if (window->wl.cursorPosY < GLFW_BORDER_SIZE) + edges = XDG_TOPLEVEL_RESIZE_EDGE_TOP; + else + xdg_toplevel_move(window->wl.xdg.toplevel, _glfw.wl.seat, serial); + break; + case leftDecoration: + if (window->wl.cursorPosY < GLFW_BORDER_SIZE) + edges = XDG_TOPLEVEL_RESIZE_EDGE_TOP_LEFT; + else + edges = XDG_TOPLEVEL_RESIZE_EDGE_LEFT; + break; + case rightDecoration: + if (window->wl.cursorPosY < GLFW_BORDER_SIZE) + edges = XDG_TOPLEVEL_RESIZE_EDGE_TOP_RIGHT; + else + edges = XDG_TOPLEVEL_RESIZE_EDGE_RIGHT; + break; + case bottomDecoration: + if (window->wl.cursorPosX < GLFW_BORDER_SIZE) + edges = XDG_TOPLEVEL_RESIZE_EDGE_BOTTOM_LEFT; + else if (window->wl.cursorPosX > window->wl.width + GLFW_BORDER_SIZE) + edges = XDG_TOPLEVEL_RESIZE_EDGE_BOTTOM_RIGHT; + else + edges = XDG_TOPLEVEL_RESIZE_EDGE_BOTTOM; + break; + default: + assert(0); + } + if (edges != XDG_TOPLEVEL_RESIZE_EDGE_NONE) + { + xdg_toplevel_resize(window->wl.xdg.toplevel, _glfw.wl.seat, + serial, edges); + return; + } + } + else if (button == BTN_RIGHT) + { + if (window->wl.decorations.focus != mainWindow && window->wl.xdg.toplevel) + { + xdg_toplevel_show_window_menu(window->wl.xdg.toplevel, + _glfw.wl.seat, serial, + window->wl.cursorPosX, + window->wl.cursorPosY); + return; + } + } + + // Don’t pass the button to the user if it was related to a decoration. + if (window->wl.decorations.focus != mainWindow) + return; + + _glfw.wl.serial = serial; + + /* Makes left, right and middle 0, 1 and 2. Overall order follows evdev + * codes. */ + glfwButton = button - BTN_LEFT; + + _glfwInputMouseClick(window, + glfwButton, + state == WL_POINTER_BUTTON_STATE_PRESSED + ? GLFW_PRESS + : GLFW_RELEASE, + _glfw.wl.xkb.modifiers); +} + +static void pointerHandleAxis(void* userData, + struct wl_pointer* pointer, + uint32_t time, + uint32_t axis, + wl_fixed_t value) +{ + _GLFWwindow* window = _glfw.wl.pointerFocus; + double x = 0.0, y = 0.0; + // Wayland scroll events are in pointer motion coordinate space (think two + // finger scroll). The factor 10 is commonly used to convert to "scroll + // step means 1.0. + const double scrollFactor = 1.0 / 10.0; + + if (!window) + return; + + assert(axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL || + axis == WL_POINTER_AXIS_VERTICAL_SCROLL); + + if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL) + x = -wl_fixed_to_double(value) * scrollFactor; + else if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL) + y = -wl_fixed_to_double(value) * scrollFactor; + + _glfwInputScroll(window, x, y); +} + +static const struct wl_pointer_listener pointerListener = +{ + pointerHandleEnter, + pointerHandleLeave, + pointerHandleMotion, + pointerHandleButton, + pointerHandleAxis, +}; + +static void keyboardHandleKeymap(void* userData, + struct wl_keyboard* keyboard, + uint32_t format, + int fd, + uint32_t size) +{ + struct xkb_keymap* keymap; + struct xkb_state* state; + struct xkb_compose_table* composeTable; + struct xkb_compose_state* composeState; + + char* mapStr; + const char* locale; + + if (format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1) + { + close(fd); + return; + } + + mapStr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); + if (mapStr == MAP_FAILED) { + close(fd); + return; + } + + keymap = xkb_keymap_new_from_string(_glfw.wl.xkb.context, + mapStr, + XKB_KEYMAP_FORMAT_TEXT_V1, + 0); + munmap(mapStr, size); + close(fd); + + if (!keymap) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to compile keymap"); + return; + } + + state = xkb_state_new(keymap); + if (!state) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create XKB state"); + xkb_keymap_unref(keymap); + return; + } + + // Look up the preferred locale, falling back to "C" as default. + locale = getenv("LC_ALL"); + if (!locale) + locale = getenv("LC_CTYPE"); + if (!locale) + locale = getenv("LANG"); + if (!locale) + locale = "C"; + + composeTable = + xkb_compose_table_new_from_locale(_glfw.wl.xkb.context, locale, + XKB_COMPOSE_COMPILE_NO_FLAGS); + if (composeTable) + { + composeState = + xkb_compose_state_new(composeTable, XKB_COMPOSE_STATE_NO_FLAGS); + xkb_compose_table_unref(composeTable); + if (composeState) + _glfw.wl.xkb.composeState = composeState; + else + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create XKB compose state"); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create XKB compose table"); + } + + xkb_keymap_unref(_glfw.wl.xkb.keymap); + xkb_state_unref(_glfw.wl.xkb.state); + _glfw.wl.xkb.keymap = keymap; + _glfw.wl.xkb.state = state; + + _glfw.wl.xkb.controlIndex = xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Control"); + _glfw.wl.xkb.altIndex = xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod1"); + _glfw.wl.xkb.shiftIndex = xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Shift"); + _glfw.wl.xkb.superIndex = xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod4"); + _glfw.wl.xkb.capsLockIndex = xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Lock"); + _glfw.wl.xkb.numLockIndex = xkb_keymap_mod_get_index(_glfw.wl.xkb.keymap, "Mod2"); +} + +static void keyboardHandleEnter(void* userData, + struct wl_keyboard* keyboard, + uint32_t serial, + struct wl_surface* surface, + struct wl_array* keys) +{ + // Happens in the case we just destroyed the surface. + if (!surface) + return; + + _GLFWwindow* window = wl_surface_get_user_data(surface); + if (!window) + { + window = findWindowFromDecorationSurface(surface, NULL); + if (!window) + return; + } + + _glfw.wl.serial = serial; + _glfw.wl.keyboardFocus = window; + _glfwInputWindowFocus(window, GLFW_TRUE); +} + +static void keyboardHandleLeave(void* userData, + struct wl_keyboard* keyboard, + uint32_t serial, + struct wl_surface* surface) +{ + _GLFWwindow* window = _glfw.wl.keyboardFocus; + + if (!window) + return; + + struct itimerspec timer = {0}; + timerfd_settime(_glfw.wl.keyRepeatTimerfd, 0, &timer, NULL); + + _glfw.wl.serial = serial; + _glfw.wl.keyboardFocus = NULL; + _glfwInputWindowFocus(window, GLFW_FALSE); +} + +static void keyboardHandleKey(void* userData, + struct wl_keyboard* keyboard, + uint32_t serial, + uint32_t time, + uint32_t scancode, + uint32_t state) +{ + _GLFWwindow* window = _glfw.wl.keyboardFocus; + if (!window) + return; + + const int key = translateKey(scancode); + const int action = + state == WL_KEYBOARD_KEY_STATE_PRESSED ? GLFW_PRESS : GLFW_RELEASE; + + _glfw.wl.serial = serial; + + struct itimerspec timer = {0}; + + if (action == GLFW_PRESS) + { + const xkb_keycode_t keycode = scancode + 8; + + if (xkb_keymap_key_repeats(_glfw.wl.xkb.keymap, keycode) && + _glfw.wl.keyRepeatRate > 0) + { + _glfw.wl.keyRepeatScancode = scancode; + if (_glfw.wl.keyRepeatRate > 1) + timer.it_interval.tv_nsec = 1000000000 / _glfw.wl.keyRepeatRate; + else + timer.it_interval.tv_sec = 1; + + timer.it_value.tv_sec = _glfw.wl.keyRepeatDelay / 1000; + timer.it_value.tv_nsec = (_glfw.wl.keyRepeatDelay % 1000) * 1000000; + } + } + + timerfd_settime(_glfw.wl.keyRepeatTimerfd, 0, &timer, NULL); + + _glfwInputKey(window, key, scancode, action, _glfw.wl.xkb.modifiers); + + if (action == GLFW_PRESS) + inputText(window, scancode); +} + +static void keyboardHandleModifiers(void* userData, + struct wl_keyboard* keyboard, + uint32_t serial, + uint32_t modsDepressed, + uint32_t modsLatched, + uint32_t modsLocked, + uint32_t group) +{ + _glfw.wl.serial = serial; + + if (!_glfw.wl.xkb.keymap) + return; + + xkb_state_update_mask(_glfw.wl.xkb.state, + modsDepressed, + modsLatched, + modsLocked, + 0, + 0, + group); + + _glfw.wl.xkb.modifiers = 0; + + struct + { + xkb_mod_index_t index; + unsigned int bit; + } modifiers[] = + { + { _glfw.wl.xkb.controlIndex, GLFW_MOD_CONTROL }, + { _glfw.wl.xkb.altIndex, GLFW_MOD_ALT }, + { _glfw.wl.xkb.shiftIndex, GLFW_MOD_SHIFT }, + { _glfw.wl.xkb.superIndex, GLFW_MOD_SUPER }, + { _glfw.wl.xkb.capsLockIndex, GLFW_MOD_CAPS_LOCK }, + { _glfw.wl.xkb.numLockIndex, GLFW_MOD_NUM_LOCK } + }; + + for (size_t i = 0; i < sizeof(modifiers) / sizeof(modifiers[0]); i++) + { + if (xkb_state_mod_index_is_active(_glfw.wl.xkb.state, + modifiers[i].index, + XKB_STATE_MODS_EFFECTIVE) == 1) + { + _glfw.wl.xkb.modifiers |= modifiers[i].bit; + } + } +} + +#ifdef WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION +static void keyboardHandleRepeatInfo(void* userData, + struct wl_keyboard* keyboard, + int32_t rate, + int32_t delay) +{ + if (keyboard != _glfw.wl.keyboard) + return; + + _glfw.wl.keyRepeatRate = rate; + _glfw.wl.keyRepeatDelay = delay; +} +#endif + +static const struct wl_keyboard_listener keyboardListener = +{ + keyboardHandleKeymap, + keyboardHandleEnter, + keyboardHandleLeave, + keyboardHandleKey, + keyboardHandleModifiers, +#ifdef WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION + keyboardHandleRepeatInfo, +#endif +}; + +static void seatHandleCapabilities(void* userData, + struct wl_seat* seat, + enum wl_seat_capability caps) +{ + if ((caps & WL_SEAT_CAPABILITY_POINTER) && !_glfw.wl.pointer) + { + _glfw.wl.pointer = wl_seat_get_pointer(seat); + wl_pointer_add_listener(_glfw.wl.pointer, &pointerListener, NULL); + } + else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && _glfw.wl.pointer) + { + wl_pointer_destroy(_glfw.wl.pointer); + _glfw.wl.pointer = NULL; + } + + if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !_glfw.wl.keyboard) + { + _glfw.wl.keyboard = wl_seat_get_keyboard(seat); + wl_keyboard_add_listener(_glfw.wl.keyboard, &keyboardListener, NULL); + } + else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && _glfw.wl.keyboard) + { + wl_keyboard_destroy(_glfw.wl.keyboard); + _glfw.wl.keyboard = NULL; + } +} + +static void seatHandleName(void* userData, + struct wl_seat* seat, + const char* name) +{ +} + +static const struct wl_seat_listener seatListener = +{ + seatHandleCapabilities, + seatHandleName, +}; + +static void dataOfferHandleOffer(void* userData, + struct wl_data_offer* offer, + const char* mimeType) +{ + for (unsigned int i = 0; i < _glfw.wl.offerCount; i++) + { + if (_glfw.wl.offers[i].offer == offer) + { + if (strcmp(mimeType, "text/plain;charset=utf-8") == 0) + _glfw.wl.offers[i].text_plain_utf8 = GLFW_TRUE; + else if (strcmp(mimeType, "text/uri-list") == 0) + _glfw.wl.offers[i].text_uri_list = GLFW_TRUE; + + break; + } + } +} + +static const struct wl_data_offer_listener dataOfferListener = +{ + dataOfferHandleOffer +}; + +static void dataDeviceHandleDataOffer(void* userData, + struct wl_data_device* device, + struct wl_data_offer* offer) +{ + _GLFWofferWayland* offers = + _glfw_realloc(_glfw.wl.offers, _glfw.wl.offerCount + 1); + if (!offers) + { + _glfwInputError(GLFW_OUT_OF_MEMORY, NULL); + return; + } + + _glfw.wl.offers = offers; + _glfw.wl.offerCount++; + + _glfw.wl.offers[_glfw.wl.offerCount - 1] = (_GLFWofferWayland) { offer }; + wl_data_offer_add_listener(offer, &dataOfferListener, NULL); +} + +static void dataDeviceHandleEnter(void* userData, + struct wl_data_device* device, + uint32_t serial, + struct wl_surface* surface, + wl_fixed_t x, + wl_fixed_t y, + struct wl_data_offer* offer) +{ + if (_glfw.wl.dragOffer) + { + wl_data_offer_destroy(_glfw.wl.dragOffer); + _glfw.wl.dragOffer = NULL; + _glfw.wl.dragFocus = NULL; + } + + for (unsigned int i = 0; i < _glfw.wl.offerCount; i++) + { + if (_glfw.wl.offers[i].offer == offer) + { + _GLFWwindow* window = NULL; + + if (surface) + window = wl_surface_get_user_data(surface); + + if (window && _glfw.wl.offers[i].text_uri_list) + { + _glfw.wl.dragOffer = offer; + _glfw.wl.dragFocus = window; + _glfw.wl.dragSerial = serial; + } + + _glfw.wl.offers[i] = _glfw.wl.offers[_glfw.wl.offerCount - 1]; + _glfw.wl.offerCount--; + break; + } + } + + if (_glfw.wl.dragOffer) + wl_data_offer_accept(offer, serial, "text/uri-list"); + else + { + wl_data_offer_accept(offer, serial, NULL); + wl_data_offer_destroy(offer); + } +} + +static void dataDeviceHandleLeave(void* userData, + struct wl_data_device* device) +{ + if (_glfw.wl.dragOffer) + { + wl_data_offer_destroy(_glfw.wl.dragOffer); + _glfw.wl.dragOffer = NULL; + _glfw.wl.dragFocus = NULL; + } +} + +static void dataDeviceHandleMotion(void* userData, + struct wl_data_device* device, + uint32_t time, + wl_fixed_t x, + wl_fixed_t y) +{ +} + +static void dataDeviceHandleDrop(void* userData, + struct wl_data_device* device) +{ + if (!_glfw.wl.dragOffer) + return; + + char* string = readDataOfferAsString(_glfw.wl.dragOffer, "text/uri-list"); + if (string) + { + int count; + char** paths = _glfwParseUriList(string, &count); + if (paths) + _glfwInputDrop(_glfw.wl.dragFocus, count, (const char**) paths); + + for (int i = 0; i < count; i++) + _glfw_free(paths[i]); + + _glfw_free(paths); + } + + _glfw_free(string); +} + +static void dataDeviceHandleSelection(void* userData, + struct wl_data_device* device, + struct wl_data_offer* offer) +{ + if (_glfw.wl.selectionOffer) + { + wl_data_offer_destroy(_glfw.wl.selectionOffer); + _glfw.wl.selectionOffer = NULL; + } + + for (unsigned int i = 0; i < _glfw.wl.offerCount; i++) + { + if (_glfw.wl.offers[i].offer == offer) + { + if (_glfw.wl.offers[i].text_plain_utf8) + _glfw.wl.selectionOffer = offer; + else + wl_data_offer_destroy(offer); + + _glfw.wl.offers[i] = _glfw.wl.offers[_glfw.wl.offerCount - 1]; + _glfw.wl.offerCount--; + break; + } + } +} + +const struct wl_data_device_listener dataDeviceListener = +{ + dataDeviceHandleDataOffer, + dataDeviceHandleEnter, + dataDeviceHandleLeave, + dataDeviceHandleMotion, + dataDeviceHandleDrop, + dataDeviceHandleSelection, +}; + +void _glfwAddSeatListenerWayland(struct wl_seat* seat) +{ + wl_seat_add_listener(seat, &seatListener, NULL); +} + +void _glfwAddDataDeviceListenerWayland(struct wl_data_device* device) +{ + wl_data_device_add_listener(device, &dataDeviceListener, NULL); +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwCreateWindowWayland(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + if (!createNativeSurface(window, wndconfig, fbconfig)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_EGL_CONTEXT_API || + ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + window->wl.egl.window = wl_egl_window_create(window->wl.surface, + wndconfig->width, + wndconfig->height); + if (!window->wl.egl.window) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create EGL window"); + return GLFW_FALSE; + } + + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + + if (!_glfwRefreshContextAttribs(window, ctxconfig)) + return GLFW_FALSE; + } + + if (wndconfig->mousePassthrough) + _glfwSetWindowMousePassthroughWayland(window, GLFW_TRUE); + + if (window->monitor || wndconfig->visible) + { + if (!createShellObjects(window)) + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +void _glfwDestroyWindowWayland(_GLFWwindow* window) +{ + if (window == _glfw.wl.pointerFocus) + _glfw.wl.pointerFocus = NULL; + + if (window == _glfw.wl.keyboardFocus) + _glfw.wl.keyboardFocus = NULL; + + if (window->wl.idleInhibitor) + zwp_idle_inhibitor_v1_destroy(window->wl.idleInhibitor); + + if (window->wl.relativePointer) + zwp_relative_pointer_v1_destroy(window->wl.relativePointer); + + if (window->wl.lockedPointer) + zwp_locked_pointer_v1_destroy(window->wl.lockedPointer); + + if (window->wl.confinedPointer) + zwp_confined_pointer_v1_destroy(window->wl.confinedPointer); + + if (window->context.destroy) + window->context.destroy(window); + + destroyShellObjects(window); + + if (window->wl.decorations.buffer) + wl_buffer_destroy(window->wl.decorations.buffer); + + if (window->wl.egl.window) + wl_egl_window_destroy(window->wl.egl.window); + + if (window->wl.surface) + wl_surface_destroy(window->wl.surface); + + _glfw_free(window->wl.title); + _glfw_free(window->wl.appId); + _glfw_free(window->wl.monitors); +} + +void _glfwSetWindowTitleWayland(_GLFWwindow* window, const char* title) +{ + char* copy = _glfw_strdup(title); + _glfw_free(window->wl.title); + window->wl.title = copy; + + if (window->wl.xdg.toplevel) + xdg_toplevel_set_title(window->wl.xdg.toplevel, title); +} + +void _glfwSetWindowIconWayland(_GLFWwindow* window, + int count, const GLFWimage* images) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: The platform does not support setting the window icon"); +} + +void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos) +{ + // A Wayland client is not aware of its position, so just warn and leave it + // as (0, 0) + + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: The platform does not provide the window position"); +} + +void _glfwSetWindowPosWayland(_GLFWwindow* window, int xpos, int ypos) +{ + // A Wayland client can not set its position, so just warn + + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: The platform does not support setting the window position"); +} + +void _glfwGetWindowSizeWayland(_GLFWwindow* window, int* width, int* height) +{ + if (width) + *width = window->wl.width; + if (height) + *height = window->wl.height; +} + +void _glfwSetWindowSizeWayland(_GLFWwindow* window, int width, int height) +{ + if (window->monitor) + { + // Video mode setting is not available on Wayland + } + else + { + window->wl.width = width; + window->wl.height = height; + resizeWindow(window); + } +} + +void _glfwSetWindowSizeLimitsWayland(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + if (window->wl.xdg.toplevel) + { + if (minwidth == GLFW_DONT_CARE || minheight == GLFW_DONT_CARE) + minwidth = minheight = 0; + else + { + if (window->wl.decorations.top.surface) + { + minwidth += GLFW_BORDER_SIZE * 2; + minheight += GLFW_CAPTION_HEIGHT + GLFW_BORDER_SIZE; + } + } + + if (maxwidth == GLFW_DONT_CARE || maxheight == GLFW_DONT_CARE) + maxwidth = maxheight = 0; + else + { + if (window->wl.decorations.top.surface) + { + maxwidth += GLFW_BORDER_SIZE * 2; + maxheight += GLFW_CAPTION_HEIGHT + GLFW_BORDER_SIZE; + } + } + + xdg_toplevel_set_min_size(window->wl.xdg.toplevel, minwidth, minheight); + xdg_toplevel_set_max_size(window->wl.xdg.toplevel, maxwidth, maxheight); + wl_surface_commit(window->wl.surface); + } +} + +void _glfwSetWindowAspectRatioWayland(_GLFWwindow* window, int numer, int denom) +{ + if (window->wl.maximized || window->wl.fullscreen) + return; + + if (numer != GLFW_DONT_CARE && denom != GLFW_DONT_CARE) + { + const float aspectRatio = (float) window->wl.width / (float) window->wl.height; + const float targetRatio = (float) numer / (float) denom; + if (aspectRatio < targetRatio) + window->wl.height = window->wl.width / targetRatio; + else if (aspectRatio > targetRatio) + window->wl.width = window->wl.height * targetRatio; + + resizeWindow(window); + } +} + +void _glfwGetFramebufferSizeWayland(_GLFWwindow* window, int* width, int* height) +{ + _glfwGetWindowSizeWayland(window, width, height); + if (width) + *width *= window->wl.scale; + if (height) + *height *= window->wl.scale; +} + +void _glfwGetWindowFrameSizeWayland(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + if (window->decorated && !window->monitor && window->wl.decorations.top.surface) + { + if (top) + *top = GLFW_CAPTION_HEIGHT; + if (left) + *left = GLFW_BORDER_SIZE; + if (right) + *right = GLFW_BORDER_SIZE; + if (bottom) + *bottom = GLFW_BORDER_SIZE; + } +} + +void _glfwGetWindowContentScaleWayland(_GLFWwindow* window, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = (float) window->wl.scale; + if (yscale) + *yscale = (float) window->wl.scale; +} + +void _glfwIconifyWindowWayland(_GLFWwindow* window) +{ + if (window->wl.xdg.toplevel) + xdg_toplevel_set_minimized(window->wl.xdg.toplevel); +} + +void _glfwRestoreWindowWayland(_GLFWwindow* window) +{ + if (window->monitor) + { + // There is no way to unset minimized, or even to know if we are + // minimized, so there is nothing to do in this case. + } + else + { + // We assume we are not minimized and act only on maximization + + if (window->wl.maximized) + { + if (window->wl.xdg.toplevel) + xdg_toplevel_unset_maximized(window->wl.xdg.toplevel); + else + window->wl.maximized = GLFW_FALSE; + } + } +} + +void _glfwMaximizeWindowWayland(_GLFWwindow* window) +{ + if (window->wl.xdg.toplevel) + xdg_toplevel_set_maximized(window->wl.xdg.toplevel); + else + window->wl.maximized = GLFW_TRUE; +} + +void _glfwShowWindowWayland(_GLFWwindow* window) +{ + if (!window->wl.xdg.toplevel) + { + // NOTE: The XDG surface and role are created here so command-line applications + // with off-screen windows do not appear in for example the Unity dock + createShellObjects(window); + } +} + +void _glfwHideWindowWayland(_GLFWwindow* window) +{ + if (window->wl.visible) + { + window->wl.visible = GLFW_FALSE; + destroyShellObjects(window); + + wl_surface_attach(window->wl.surface, NULL, 0, 0); + wl_surface_commit(window->wl.surface); + } +} + +void _glfwRequestWindowAttentionWayland(_GLFWwindow* window) +{ + // TODO + _glfwInputError(GLFW_FEATURE_UNIMPLEMENTED, + "Wayland: Window attention request not implemented yet"); +} + +void _glfwFocusWindowWayland(_GLFWwindow* window) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: The platform does not support setting the input focus"); +} + +void _glfwSetWindowMonitorWayland(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + if (window->monitor == monitor) + { + if (!monitor) + _glfwSetWindowSizeWayland(window, width, height); + + return; + } + + if (window->monitor) + releaseMonitor(window); + + _glfwInputWindowMonitor(window, monitor); + + if (window->monitor) + acquireMonitor(window); + else + _glfwSetWindowSizeWayland(window, width, height); +} + +GLFWbool _glfwWindowFocusedWayland(_GLFWwindow* window) +{ + return _glfw.wl.keyboardFocus == window; +} + +GLFWbool _glfwWindowIconifiedWayland(_GLFWwindow* window) +{ + // xdg-shell doesn’t give any way to request whether a surface is + // iconified. + return GLFW_FALSE; +} + +GLFWbool _glfwWindowVisibleWayland(_GLFWwindow* window) +{ + return window->wl.visible; +} + +GLFWbool _glfwWindowMaximizedWayland(_GLFWwindow* window) +{ + return window->wl.maximized; +} + +GLFWbool _glfwWindowHoveredWayland(_GLFWwindow* window) +{ + return window->wl.hovered; +} + +GLFWbool _glfwFramebufferTransparentWayland(_GLFWwindow* window) +{ + return window->wl.transparent; +} + +void _glfwSetWindowResizableWayland(_GLFWwindow* window, GLFWbool enabled) +{ + // TODO + _glfwInputError(GLFW_FEATURE_UNIMPLEMENTED, + "Wayland: Window attribute setting not implemented yet"); +} + +void _glfwSetWindowDecoratedWayland(_GLFWwindow* window, GLFWbool enabled) +{ + if (window->wl.xdg.decoration) + { + uint32_t mode; + + if (enabled) + mode = ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE; + else + mode = ZXDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE; + + zxdg_toplevel_decoration_v1_set_mode(window->wl.xdg.decoration, mode); + } + else + { + if (enabled) + createFallbackDecorations(window); + else + destroyFallbackDecorations(window); + } +} + +void _glfwSetWindowFloatingWayland(_GLFWwindow* window, GLFWbool enabled) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: Platform does not support making a window floating"); +} + +void _glfwSetWindowMousePassthroughWayland(_GLFWwindow* window, GLFWbool enabled) +{ + if (enabled) + { + struct wl_region* region = wl_compositor_create_region(_glfw.wl.compositor); + wl_surface_set_input_region(window->wl.surface, region); + wl_region_destroy(region); + } + else + wl_surface_set_input_region(window->wl.surface, 0); +} + +float _glfwGetWindowOpacityWayland(_GLFWwindow* window) +{ + return 1.f; +} + +void _glfwSetWindowOpacityWayland(_GLFWwindow* window, float opacity) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: The platform does not support setting the window opacity"); +} + +void _glfwSetRawMouseMotionWayland(_GLFWwindow* window, GLFWbool enabled) +{ + // This is handled in relativePointerHandleRelativeMotion +} + +GLFWbool _glfwRawMouseMotionSupportedWayland(void) +{ + return GLFW_TRUE; +} + +void _glfwPollEventsWayland(void) +{ + double timeout = 0.0; + handleEvents(&timeout); +} + +void _glfwWaitEventsWayland(void) +{ + handleEvents(NULL); +} + +void _glfwWaitEventsTimeoutWayland(double timeout) +{ + handleEvents(&timeout); +} + +void _glfwPostEmptyEventWayland(void) +{ + wl_display_sync(_glfw.wl.display); + flushDisplay(); +} + +void _glfwGetCursorPosWayland(_GLFWwindow* window, double* xpos, double* ypos) +{ + if (xpos) + *xpos = window->wl.cursorPosX; + if (ypos) + *ypos = window->wl.cursorPosY; +} + +void _glfwSetCursorPosWayland(_GLFWwindow* window, double x, double y) +{ + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: The platform does not support setting the cursor position"); +} + +void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode) +{ + _glfwSetCursorWayland(window, window->wl.currentCursor); +} + +const char* _glfwGetScancodeNameWayland(int scancode) +{ + if (scancode < 0 || scancode > 255 || + _glfw.wl.keycodes[scancode] == GLFW_KEY_UNKNOWN) + { + _glfwInputError(GLFW_INVALID_VALUE, + "Wayland: Invalid scancode %i", + scancode); + return NULL; + } + + const int key = _glfw.wl.keycodes[scancode]; + const xkb_keycode_t keycode = scancode + 8; + const xkb_layout_index_t layout = + xkb_state_key_get_layout(_glfw.wl.xkb.state, keycode); + if (layout == XKB_LAYOUT_INVALID) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to retrieve layout for key name"); + return NULL; + } + + const xkb_keysym_t* keysyms = NULL; + xkb_keymap_key_get_syms_by_level(_glfw.wl.xkb.keymap, + keycode, + layout, + 0, + &keysyms); + if (keysyms == NULL) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to retrieve keysym for key name"); + return NULL; + } + + const uint32_t codepoint = _glfwKeySym2Unicode(keysyms[0]); + if (codepoint == GLFW_INVALID_CODEPOINT) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to retrieve codepoint for key name"); + return NULL; + } + + const size_t count = _glfwEncodeUTF8(_glfw.wl.keynames[key], codepoint); + if (count == 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to encode codepoint for key name"); + return NULL; + } + + _glfw.wl.keynames[key][count] = '\0'; + return _glfw.wl.keynames[key]; +} + +int _glfwGetKeyScancodeWayland(int key) +{ + return _glfw.wl.scancodes[key]; +} + +GLFWbool _glfwCreateCursorWayland(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + cursor->wl.buffer = createShmBuffer(image); + if (!cursor->wl.buffer) + return GLFW_FALSE; + + cursor->wl.width = image->width; + cursor->wl.height = image->height; + cursor->wl.xhot = xhot; + cursor->wl.yhot = yhot; + return GLFW_TRUE; +} + +GLFWbool _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape) +{ + const char* name = NULL; + + // Try the XDG names first + switch (shape) + { + case GLFW_ARROW_CURSOR: + name = "default"; + break; + case GLFW_IBEAM_CURSOR: + name = "text"; + break; + case GLFW_CROSSHAIR_CURSOR: + name = "crosshair"; + break; + case GLFW_POINTING_HAND_CURSOR: + name = "pointer"; + break; + case GLFW_RESIZE_EW_CURSOR: + name = "ew-resize"; + break; + case GLFW_RESIZE_NS_CURSOR: + name = "ns-resize"; + break; + case GLFW_RESIZE_NWSE_CURSOR: + name = "nwse-resize"; + break; + case GLFW_RESIZE_NESW_CURSOR: + name = "nesw-resize"; + break; + case GLFW_RESIZE_ALL_CURSOR: + name = "all-scroll"; + break; + case GLFW_NOT_ALLOWED_CURSOR: + name = "not-allowed"; + break; + } + + cursor->wl.cursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, name); + + if (_glfw.wl.cursorThemeHiDPI) + { + cursor->wl.cursorHiDPI = + wl_cursor_theme_get_cursor(_glfw.wl.cursorThemeHiDPI, name); + } + + if (!cursor->wl.cursor) + { + // Fall back to the core X11 names + switch (shape) + { + case GLFW_ARROW_CURSOR: + name = "left_ptr"; + break; + case GLFW_IBEAM_CURSOR: + name = "xterm"; + break; + case GLFW_CROSSHAIR_CURSOR: + name = "crosshair"; + break; + case GLFW_POINTING_HAND_CURSOR: + name = "hand2"; + break; + case GLFW_RESIZE_EW_CURSOR: + name = "sb_h_double_arrow"; + break; + case GLFW_RESIZE_NS_CURSOR: + name = "sb_v_double_arrow"; + break; + case GLFW_RESIZE_ALL_CURSOR: + name = "fleur"; + break; + default: + _glfwInputError(GLFW_CURSOR_UNAVAILABLE, + "Wayland: Standard cursor shape unavailable"); + return GLFW_FALSE; + } + + cursor->wl.cursor = wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, name); + if (!cursor->wl.cursor) + { + _glfwInputError(GLFW_CURSOR_UNAVAILABLE, + "Wayland: Failed to create standard cursor \"%s\"", + name); + return GLFW_FALSE; + } + + if (_glfw.wl.cursorThemeHiDPI) + { + if (!cursor->wl.cursorHiDPI) + { + cursor->wl.cursorHiDPI = + wl_cursor_theme_get_cursor(_glfw.wl.cursorThemeHiDPI, name); + } + } + } + + return GLFW_TRUE; +} + +void _glfwDestroyCursorWayland(_GLFWcursor* cursor) +{ + // If it's a standard cursor we don't need to do anything here + if (cursor->wl.cursor) + return; + + if (cursor->wl.buffer) + wl_buffer_destroy(cursor->wl.buffer); +} + +static void relativePointerHandleRelativeMotion(void* userData, + struct zwp_relative_pointer_v1* pointer, + uint32_t timeHi, + uint32_t timeLo, + wl_fixed_t dx, + wl_fixed_t dy, + wl_fixed_t dxUnaccel, + wl_fixed_t dyUnaccel) +{ + _GLFWwindow* window = userData; + double xpos = window->virtualCursorPosX; + double ypos = window->virtualCursorPosY; + + if (window->cursorMode != GLFW_CURSOR_DISABLED) + return; + + if (window->rawMouseMotion) + { + xpos += wl_fixed_to_double(dxUnaccel); + ypos += wl_fixed_to_double(dyUnaccel); + } + else + { + xpos += wl_fixed_to_double(dx); + ypos += wl_fixed_to_double(dy); + } + + _glfwInputCursorPos(window, xpos, ypos); +} + +static const struct zwp_relative_pointer_v1_listener relativePointerListener = +{ + relativePointerHandleRelativeMotion +}; + +static void lockedPointerHandleLocked(void* userData, + struct zwp_locked_pointer_v1* lockedPointer) +{ +} + +static void lockedPointerHandleUnlocked(void* userData, + struct zwp_locked_pointer_v1* lockedPointer) +{ +} + +static const struct zwp_locked_pointer_v1_listener lockedPointerListener = +{ + lockedPointerHandleLocked, + lockedPointerHandleUnlocked +}; + +static void lockPointer(_GLFWwindow* window) +{ + if (!_glfw.wl.relativePointerManager) + { + _glfwInputError(GLFW_FEATURE_UNAVAILABLE, + "Wayland: The compositor does not support pointer locking"); + return; + } + + window->wl.relativePointer = + zwp_relative_pointer_manager_v1_get_relative_pointer( + _glfw.wl.relativePointerManager, + _glfw.wl.pointer); + zwp_relative_pointer_v1_add_listener(window->wl.relativePointer, + &relativePointerListener, + window); + + window->wl.lockedPointer = + zwp_pointer_constraints_v1_lock_pointer( + _glfw.wl.pointerConstraints, + window->wl.surface, + _glfw.wl.pointer, + NULL, + ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT); + zwp_locked_pointer_v1_add_listener(window->wl.lockedPointer, + &lockedPointerListener, + window); +} + +static void unlockPointer(_GLFWwindow* window) +{ + zwp_relative_pointer_v1_destroy(window->wl.relativePointer); + window->wl.relativePointer = NULL; + + zwp_locked_pointer_v1_destroy(window->wl.lockedPointer); + window->wl.lockedPointer = NULL; +} + +static void confinedPointerHandleConfined(void* userData, + struct zwp_confined_pointer_v1* confinedPointer) +{ +} + +static void confinedPointerHandleUnconfined(void* userData, + struct zwp_confined_pointer_v1* confinedPointer) +{ +} + +static const struct zwp_confined_pointer_v1_listener confinedPointerListener = +{ + confinedPointerHandleConfined, + confinedPointerHandleUnconfined +}; + +static void confinePointer(_GLFWwindow* window) +{ + window->wl.confinedPointer = + zwp_pointer_constraints_v1_confine_pointer( + _glfw.wl.pointerConstraints, + window->wl.surface, + _glfw.wl.pointer, + NULL, + ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT); + + zwp_confined_pointer_v1_add_listener(window->wl.confinedPointer, + &confinedPointerListener, + window); +} + +static void unconfinePointer(_GLFWwindow* window) +{ + zwp_confined_pointer_v1_destroy(window->wl.confinedPointer); + window->wl.confinedPointer = NULL; +} + +void _glfwSetCursorWayland(_GLFWwindow* window, _GLFWcursor* cursor) +{ + if (!_glfw.wl.pointer) + return; + + window->wl.currentCursor = cursor; + + // If we're not in the correct window just save the cursor + // the next time the pointer enters the window the cursor will change + if (window != _glfw.wl.pointerFocus || window->wl.decorations.focus != mainWindow) + return; + + // Update pointer lock to match cursor mode + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + if (window->wl.confinedPointer) + unconfinePointer(window); + if (!window->wl.lockedPointer) + lockPointer(window); + } + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + { + if (window->wl.lockedPointer) + unlockPointer(window); + if (!window->wl.confinedPointer) + confinePointer(window); + } + else if (window->cursorMode == GLFW_CURSOR_NORMAL || + window->cursorMode == GLFW_CURSOR_HIDDEN) + { + if (window->wl.lockedPointer) + unlockPointer(window); + else if (window->wl.confinedPointer) + unconfinePointer(window); + } + + if (window->cursorMode == GLFW_CURSOR_NORMAL || + window->cursorMode == GLFW_CURSOR_CAPTURED) + { + if (cursor) + setCursorImage(window, &cursor->wl); + else + { + struct wl_cursor* defaultCursor = + wl_cursor_theme_get_cursor(_glfw.wl.cursorTheme, "left_ptr"); + if (!defaultCursor) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Standard cursor not found"); + return; + } + + struct wl_cursor* defaultCursorHiDPI = NULL; + if (_glfw.wl.cursorThemeHiDPI) + { + defaultCursorHiDPI = + wl_cursor_theme_get_cursor(_glfw.wl.cursorThemeHiDPI, "left_ptr"); + } + + _GLFWcursorWayland cursorWayland = + { + defaultCursor, + defaultCursorHiDPI, + NULL, + 0, 0, + 0, 0, + 0 + }; + + setCursorImage(window, &cursorWayland); + } + } + else if (window->cursorMode == GLFW_CURSOR_HIDDEN || + window->cursorMode == GLFW_CURSOR_DISABLED) + { + wl_pointer_set_cursor(_glfw.wl.pointer, _glfw.wl.pointerEnterSerial, NULL, 0, 0); + } +} + +static void dataSourceHandleTarget(void* userData, + struct wl_data_source* source, + const char* mimeType) +{ + if (_glfw.wl.selectionSource != source) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Unknown clipboard data source"); + return; + } +} + +static void dataSourceHandleSend(void* userData, + struct wl_data_source* source, + const char* mimeType, + int fd) +{ + // Ignore it if this is an outdated or invalid request + if (_glfw.wl.selectionSource != source || + strcmp(mimeType, "text/plain;charset=utf-8") != 0) + { + close(fd); + return; + } + + char* string = _glfw.wl.clipboardString; + size_t length = strlen(string); + + while (length > 0) + { + const ssize_t result = write(fd, string, length); + if (result == -1) + { + if (errno == EINTR) + continue; + + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Error while writing the clipboard: %s", + strerror(errno)); + break; + } + + length -= result; + string += result; + } + + close(fd); +} + +static void dataSourceHandleCancelled(void* userData, + struct wl_data_source* source) +{ + wl_data_source_destroy(source); + + if (_glfw.wl.selectionSource != source) + return; + + _glfw.wl.selectionSource = NULL; +} + +static const struct wl_data_source_listener dataSourceListener = +{ + dataSourceHandleTarget, + dataSourceHandleSend, + dataSourceHandleCancelled, +}; + +void _glfwSetClipboardStringWayland(const char* string) +{ + if (_glfw.wl.selectionSource) + { + wl_data_source_destroy(_glfw.wl.selectionSource); + _glfw.wl.selectionSource = NULL; + } + + char* copy = _glfw_strdup(string); + if (!copy) + { + _glfwInputError(GLFW_OUT_OF_MEMORY, NULL); + return; + } + + _glfw_free(_glfw.wl.clipboardString); + _glfw.wl.clipboardString = copy; + + _glfw.wl.selectionSource = + wl_data_device_manager_create_data_source(_glfw.wl.dataDeviceManager); + if (!_glfw.wl.selectionSource) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create clipboard data source"); + return; + } + wl_data_source_add_listener(_glfw.wl.selectionSource, + &dataSourceListener, + NULL); + wl_data_source_offer(_glfw.wl.selectionSource, "text/plain;charset=utf-8"); + wl_data_device_set_selection(_glfw.wl.dataDevice, + _glfw.wl.selectionSource, + _glfw.wl.serial); +} + +const char* _glfwGetClipboardStringWayland(void) +{ + if (!_glfw.wl.selectionOffer) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "Wayland: No clipboard data available"); + return NULL; + } + + if (_glfw.wl.selectionSource) + return _glfw.wl.clipboardString; + + _glfw_free(_glfw.wl.clipboardString); + _glfw.wl.clipboardString = + readDataOfferAsString(_glfw.wl.selectionOffer, "text/plain;charset=utf-8"); + return _glfw.wl.clipboardString; +} + +EGLenum _glfwGetEGLPlatformWayland(EGLint** attribs) +{ + if (_glfw.egl.EXT_platform_base && _glfw.egl.EXT_platform_wayland) + return EGL_PLATFORM_WAYLAND_EXT; + else + return 0; +} + +EGLNativeDisplayType _glfwGetEGLNativeDisplayWayland(void) +{ + return _glfw.wl.display; +} + +EGLNativeWindowType _glfwGetEGLNativeWindowWayland(_GLFWwindow* window) +{ + return window->wl.egl.window; +} + +void _glfwGetRequiredInstanceExtensionsWayland(char** extensions) +{ + if (!_glfw.vk.KHR_surface || !_glfw.vk.KHR_wayland_surface) + return; + + extensions[0] = "VK_KHR_surface"; + extensions[1] = "VK_KHR_wayland_surface"; +} + +GLFWbool _glfwGetPhysicalDevicePresentationSupportWayland(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR + vkGetPhysicalDeviceWaylandPresentationSupportKHR = + (PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR) + vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceWaylandPresentationSupportKHR"); + if (!vkGetPhysicalDeviceWaylandPresentationSupportKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); + return VK_NULL_HANDLE; + } + + return vkGetPhysicalDeviceWaylandPresentationSupportKHR(device, + queuefamily, + _glfw.wl.display); +} + +VkResult _glfwCreateWindowSurfaceWayland(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + VkResult err; + VkWaylandSurfaceCreateInfoKHR sci; + PFN_vkCreateWaylandSurfaceKHR vkCreateWaylandSurfaceKHR; + + vkCreateWaylandSurfaceKHR = (PFN_vkCreateWaylandSurfaceKHR) + vkGetInstanceProcAddr(instance, "vkCreateWaylandSurfaceKHR"); + if (!vkCreateWaylandSurfaceKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "Wayland: Vulkan instance missing VK_KHR_wayland_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR; + sci.display = _glfw.wl.display; + sci.surface = window->wl.surface; + + err = vkCreateWaylandSurfaceKHR(instance, &sci, allocator, surface); + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Wayland: Failed to create Vulkan surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI struct wl_display* glfwGetWaylandDisplay(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (_glfw.platform.platformID != GLFW_PLATFORM_WAYLAND) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "Wayland: Platform not initialized"); + return NULL; + } + + return _glfw.wl.display; +} + +GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (_glfw.platform.platformID != GLFW_PLATFORM_WAYLAND) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "Wayland: Platform not initialized"); + return NULL; + } + + return window->wl.surface; +} + diff --git a/thirdparty/imgui_suite/glfw/src/x11_init.c b/thirdparty/imgui_suite/glfw/src/x11_init.c new file mode 100644 index 00000000000..d8ebe90a20b --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/x11_init.c @@ -0,0 +1,1655 @@ +//======================================================================== +// GLFW 3.4 X11 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wsign-compare" + +// Translate the X11 KeySyms for a key to a GLFW key code +// NOTE: This is only used as a fallback, in case the XKB method fails +// It is layout-dependent and will fail partially on most non-US layouts +// +static int translateKeySyms(const KeySym* keysyms, int width) +{ + if (width > 1) + { + switch (keysyms[1]) + { + case XK_KP_0: return GLFW_KEY_KP_0; + case XK_KP_1: return GLFW_KEY_KP_1; + case XK_KP_2: return GLFW_KEY_KP_2; + case XK_KP_3: return GLFW_KEY_KP_3; + case XK_KP_4: return GLFW_KEY_KP_4; + case XK_KP_5: return GLFW_KEY_KP_5; + case XK_KP_6: return GLFW_KEY_KP_6; + case XK_KP_7: return GLFW_KEY_KP_7; + case XK_KP_8: return GLFW_KEY_KP_8; + case XK_KP_9: return GLFW_KEY_KP_9; + case XK_KP_Separator: + case XK_KP_Decimal: return GLFW_KEY_KP_DECIMAL; + case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; + case XK_KP_Enter: return GLFW_KEY_KP_ENTER; + default: break; + } + } + + switch (keysyms[0]) + { + case XK_Escape: return GLFW_KEY_ESCAPE; + case XK_Tab: return GLFW_KEY_TAB; + case XK_Shift_L: return GLFW_KEY_LEFT_SHIFT; + case XK_Shift_R: return GLFW_KEY_RIGHT_SHIFT; + case XK_Control_L: return GLFW_KEY_LEFT_CONTROL; + case XK_Control_R: return GLFW_KEY_RIGHT_CONTROL; + case XK_Meta_L: + case XK_Alt_L: return GLFW_KEY_LEFT_ALT; + case XK_Mode_switch: // Mapped to Alt_R on many keyboards + case XK_ISO_Level3_Shift: // AltGr on at least some machines + case XK_Meta_R: + case XK_Alt_R: return GLFW_KEY_RIGHT_ALT; + case XK_Super_L: return GLFW_KEY_LEFT_SUPER; + case XK_Super_R: return GLFW_KEY_RIGHT_SUPER; + case XK_Menu: return GLFW_KEY_MENU; + case XK_Num_Lock: return GLFW_KEY_NUM_LOCK; + case XK_Caps_Lock: return GLFW_KEY_CAPS_LOCK; + case XK_Print: return GLFW_KEY_PRINT_SCREEN; + case XK_Scroll_Lock: return GLFW_KEY_SCROLL_LOCK; + case XK_Pause: return GLFW_KEY_PAUSE; + case XK_Delete: return GLFW_KEY_DELETE; + case XK_BackSpace: return GLFW_KEY_BACKSPACE; + case XK_Return: return GLFW_KEY_ENTER; + case XK_Home: return GLFW_KEY_HOME; + case XK_End: return GLFW_KEY_END; + case XK_Page_Up: return GLFW_KEY_PAGE_UP; + case XK_Page_Down: return GLFW_KEY_PAGE_DOWN; + case XK_Insert: return GLFW_KEY_INSERT; + case XK_Left: return GLFW_KEY_LEFT; + case XK_Right: return GLFW_KEY_RIGHT; + case XK_Down: return GLFW_KEY_DOWN; + case XK_Up: return GLFW_KEY_UP; + case XK_F1: return GLFW_KEY_F1; + case XK_F2: return GLFW_KEY_F2; + case XK_F3: return GLFW_KEY_F3; + case XK_F4: return GLFW_KEY_F4; + case XK_F5: return GLFW_KEY_F5; + case XK_F6: return GLFW_KEY_F6; + case XK_F7: return GLFW_KEY_F7; + case XK_F8: return GLFW_KEY_F8; + case XK_F9: return GLFW_KEY_F9; + case XK_F10: return GLFW_KEY_F10; + case XK_F11: return GLFW_KEY_F11; + case XK_F12: return GLFW_KEY_F12; + case XK_F13: return GLFW_KEY_F13; + case XK_F14: return GLFW_KEY_F14; + case XK_F15: return GLFW_KEY_F15; + case XK_F16: return GLFW_KEY_F16; + case XK_F17: return GLFW_KEY_F17; + case XK_F18: return GLFW_KEY_F18; + case XK_F19: return GLFW_KEY_F19; + case XK_F20: return GLFW_KEY_F20; + case XK_F21: return GLFW_KEY_F21; + case XK_F22: return GLFW_KEY_F22; + case XK_F23: return GLFW_KEY_F23; + case XK_F24: return GLFW_KEY_F24; + case XK_F25: return GLFW_KEY_F25; + + // Numeric keypad + case XK_KP_Divide: return GLFW_KEY_KP_DIVIDE; + case XK_KP_Multiply: return GLFW_KEY_KP_MULTIPLY; + case XK_KP_Subtract: return GLFW_KEY_KP_SUBTRACT; + case XK_KP_Add: return GLFW_KEY_KP_ADD; + + // These should have been detected in secondary keysym test above! + case XK_KP_Insert: return GLFW_KEY_KP_0; + case XK_KP_End: return GLFW_KEY_KP_1; + case XK_KP_Down: return GLFW_KEY_KP_2; + case XK_KP_Page_Down: return GLFW_KEY_KP_3; + case XK_KP_Left: return GLFW_KEY_KP_4; + case XK_KP_Right: return GLFW_KEY_KP_6; + case XK_KP_Home: return GLFW_KEY_KP_7; + case XK_KP_Up: return GLFW_KEY_KP_8; + case XK_KP_Page_Up: return GLFW_KEY_KP_9; + case XK_KP_Delete: return GLFW_KEY_KP_DECIMAL; + case XK_KP_Equal: return GLFW_KEY_KP_EQUAL; + case XK_KP_Enter: return GLFW_KEY_KP_ENTER; + + // Last resort: Check for printable keys (should not happen if the XKB + // extension is available). This will give a layout dependent mapping + // (which is wrong, and we may miss some keys, especially on non-US + // keyboards), but it's better than nothing... + case XK_a: return GLFW_KEY_A; + case XK_b: return GLFW_KEY_B; + case XK_c: return GLFW_KEY_C; + case XK_d: return GLFW_KEY_D; + case XK_e: return GLFW_KEY_E; + case XK_f: return GLFW_KEY_F; + case XK_g: return GLFW_KEY_G; + case XK_h: return GLFW_KEY_H; + case XK_i: return GLFW_KEY_I; + case XK_j: return GLFW_KEY_J; + case XK_k: return GLFW_KEY_K; + case XK_l: return GLFW_KEY_L; + case XK_m: return GLFW_KEY_M; + case XK_n: return GLFW_KEY_N; + case XK_o: return GLFW_KEY_O; + case XK_p: return GLFW_KEY_P; + case XK_q: return GLFW_KEY_Q; + case XK_r: return GLFW_KEY_R; + case XK_s: return GLFW_KEY_S; + case XK_t: return GLFW_KEY_T; + case XK_u: return GLFW_KEY_U; + case XK_v: return GLFW_KEY_V; + case XK_w: return GLFW_KEY_W; + case XK_x: return GLFW_KEY_X; + case XK_y: return GLFW_KEY_Y; + case XK_z: return GLFW_KEY_Z; + case XK_1: return GLFW_KEY_1; + case XK_2: return GLFW_KEY_2; + case XK_3: return GLFW_KEY_3; + case XK_4: return GLFW_KEY_4; + case XK_5: return GLFW_KEY_5; + case XK_6: return GLFW_KEY_6; + case XK_7: return GLFW_KEY_7; + case XK_8: return GLFW_KEY_8; + case XK_9: return GLFW_KEY_9; + case XK_0: return GLFW_KEY_0; + case XK_space: return GLFW_KEY_SPACE; + case XK_minus: return GLFW_KEY_MINUS; + case XK_equal: return GLFW_KEY_EQUAL; + case XK_bracketleft: return GLFW_KEY_LEFT_BRACKET; + case XK_bracketright: return GLFW_KEY_RIGHT_BRACKET; + case XK_backslash: return GLFW_KEY_BACKSLASH; + case XK_semicolon: return GLFW_KEY_SEMICOLON; + case XK_apostrophe: return GLFW_KEY_APOSTROPHE; + case XK_grave: return GLFW_KEY_GRAVE_ACCENT; + case XK_comma: return GLFW_KEY_COMMA; + case XK_period: return GLFW_KEY_PERIOD; + case XK_slash: return GLFW_KEY_SLASH; + case XK_less: return GLFW_KEY_WORLD_1; // At least in some layouts... + default: break; + } + + // No matching translation was found + return GLFW_KEY_UNKNOWN; +} + +// Create key code translation tables +// +static void createKeyTables(void) +{ + int scancodeMin, scancodeMax; + + memset(_glfw.x11.keycodes, -1, sizeof(_glfw.x11.keycodes)); + memset(_glfw.x11.scancodes, -1, sizeof(_glfw.x11.scancodes)); + + if (_glfw.x11.xkb.available) + { + // Use XKB to determine physical key locations independently of the + // current keyboard layout + + XkbDescPtr desc = XkbGetMap(_glfw.x11.display, 0, XkbUseCoreKbd); + XkbGetNames(_glfw.x11.display, XkbKeyNamesMask | XkbKeyAliasesMask, desc); + + scancodeMin = desc->min_key_code; + scancodeMax = desc->max_key_code; + + const struct + { + int key; + char* name; + } keymap[] = + { + { GLFW_KEY_GRAVE_ACCENT, "TLDE" }, + { GLFW_KEY_1, "AE01" }, + { GLFW_KEY_2, "AE02" }, + { GLFW_KEY_3, "AE03" }, + { GLFW_KEY_4, "AE04" }, + { GLFW_KEY_5, "AE05" }, + { GLFW_KEY_6, "AE06" }, + { GLFW_KEY_7, "AE07" }, + { GLFW_KEY_8, "AE08" }, + { GLFW_KEY_9, "AE09" }, + { GLFW_KEY_0, "AE10" }, + { GLFW_KEY_MINUS, "AE11" }, + { GLFW_KEY_EQUAL, "AE12" }, + { GLFW_KEY_Q, "AD01" }, + { GLFW_KEY_W, "AD02" }, + { GLFW_KEY_E, "AD03" }, + { GLFW_KEY_R, "AD04" }, + { GLFW_KEY_T, "AD05" }, + { GLFW_KEY_Y, "AD06" }, + { GLFW_KEY_U, "AD07" }, + { GLFW_KEY_I, "AD08" }, + { GLFW_KEY_O, "AD09" }, + { GLFW_KEY_P, "AD10" }, + { GLFW_KEY_LEFT_BRACKET, "AD11" }, + { GLFW_KEY_RIGHT_BRACKET, "AD12" }, + { GLFW_KEY_A, "AC01" }, + { GLFW_KEY_S, "AC02" }, + { GLFW_KEY_D, "AC03" }, + { GLFW_KEY_F, "AC04" }, + { GLFW_KEY_G, "AC05" }, + { GLFW_KEY_H, "AC06" }, + { GLFW_KEY_J, "AC07" }, + { GLFW_KEY_K, "AC08" }, + { GLFW_KEY_L, "AC09" }, + { GLFW_KEY_SEMICOLON, "AC10" }, + { GLFW_KEY_APOSTROPHE, "AC11" }, + { GLFW_KEY_Z, "AB01" }, + { GLFW_KEY_X, "AB02" }, + { GLFW_KEY_C, "AB03" }, + { GLFW_KEY_V, "AB04" }, + { GLFW_KEY_B, "AB05" }, + { GLFW_KEY_N, "AB06" }, + { GLFW_KEY_M, "AB07" }, + { GLFW_KEY_COMMA, "AB08" }, + { GLFW_KEY_PERIOD, "AB09" }, + { GLFW_KEY_SLASH, "AB10" }, + { GLFW_KEY_BACKSLASH, "BKSL" }, + { GLFW_KEY_WORLD_1, "LSGT" }, + { GLFW_KEY_SPACE, "SPCE" }, + { GLFW_KEY_ESCAPE, "ESC" }, + { GLFW_KEY_ENTER, "RTRN" }, + { GLFW_KEY_TAB, "TAB" }, + { GLFW_KEY_BACKSPACE, "BKSP" }, + { GLFW_KEY_INSERT, "INS" }, + { GLFW_KEY_DELETE, "DELE" }, + { GLFW_KEY_RIGHT, "RGHT" }, + { GLFW_KEY_LEFT, "LEFT" }, + { GLFW_KEY_DOWN, "DOWN" }, + { GLFW_KEY_UP, "UP" }, + { GLFW_KEY_PAGE_UP, "PGUP" }, + { GLFW_KEY_PAGE_DOWN, "PGDN" }, + { GLFW_KEY_HOME, "HOME" }, + { GLFW_KEY_END, "END" }, + { GLFW_KEY_CAPS_LOCK, "CAPS" }, + { GLFW_KEY_SCROLL_LOCK, "SCLK" }, + { GLFW_KEY_NUM_LOCK, "NMLK" }, + { GLFW_KEY_PRINT_SCREEN, "PRSC" }, + { GLFW_KEY_PAUSE, "PAUS" }, + { GLFW_KEY_F1, "FK01" }, + { GLFW_KEY_F2, "FK02" }, + { GLFW_KEY_F3, "FK03" }, + { GLFW_KEY_F4, "FK04" }, + { GLFW_KEY_F5, "FK05" }, + { GLFW_KEY_F6, "FK06" }, + { GLFW_KEY_F7, "FK07" }, + { GLFW_KEY_F8, "FK08" }, + { GLFW_KEY_F9, "FK09" }, + { GLFW_KEY_F10, "FK10" }, + { GLFW_KEY_F11, "FK11" }, + { GLFW_KEY_F12, "FK12" }, + { GLFW_KEY_F13, "FK13" }, + { GLFW_KEY_F14, "FK14" }, + { GLFW_KEY_F15, "FK15" }, + { GLFW_KEY_F16, "FK16" }, + { GLFW_KEY_F17, "FK17" }, + { GLFW_KEY_F18, "FK18" }, + { GLFW_KEY_F19, "FK19" }, + { GLFW_KEY_F20, "FK20" }, + { GLFW_KEY_F21, "FK21" }, + { GLFW_KEY_F22, "FK22" }, + { GLFW_KEY_F23, "FK23" }, + { GLFW_KEY_F24, "FK24" }, + { GLFW_KEY_F25, "FK25" }, + { GLFW_KEY_KP_0, "KP0" }, + { GLFW_KEY_KP_1, "KP1" }, + { GLFW_KEY_KP_2, "KP2" }, + { GLFW_KEY_KP_3, "KP3" }, + { GLFW_KEY_KP_4, "KP4" }, + { GLFW_KEY_KP_5, "KP5" }, + { GLFW_KEY_KP_6, "KP6" }, + { GLFW_KEY_KP_7, "KP7" }, + { GLFW_KEY_KP_8, "KP8" }, + { GLFW_KEY_KP_9, "KP9" }, + { GLFW_KEY_KP_DECIMAL, "KPDL" }, + { GLFW_KEY_KP_DIVIDE, "KPDV" }, + { GLFW_KEY_KP_MULTIPLY, "KPMU" }, + { GLFW_KEY_KP_SUBTRACT, "KPSU" }, + { GLFW_KEY_KP_ADD, "KPAD" }, + { GLFW_KEY_KP_ENTER, "KPEN" }, + { GLFW_KEY_KP_EQUAL, "KPEQ" }, + { GLFW_KEY_LEFT_SHIFT, "LFSH" }, + { GLFW_KEY_LEFT_CONTROL, "LCTL" }, + { GLFW_KEY_LEFT_ALT, "LALT" }, + { GLFW_KEY_LEFT_SUPER, "LWIN" }, + { GLFW_KEY_RIGHT_SHIFT, "RTSH" }, + { GLFW_KEY_RIGHT_CONTROL, "RCTL" }, + { GLFW_KEY_RIGHT_ALT, "RALT" }, + { GLFW_KEY_RIGHT_ALT, "LVL3" }, + { GLFW_KEY_RIGHT_ALT, "MDSW" }, + { GLFW_KEY_RIGHT_SUPER, "RWIN" }, + { GLFW_KEY_MENU, "MENU" } + }; + + // Find the X11 key code -> GLFW key code mapping + for (int scancode = scancodeMin; scancode <= scancodeMax; scancode++) + { + int key = GLFW_KEY_UNKNOWN; + + // Map the key name to a GLFW key code. Note: We use the US + // keyboard layout. Because function keys aren't mapped correctly + // when using traditional KeySym translations, they are mapped + // here instead. + for (int i = 0; i < sizeof(keymap) / sizeof(keymap[0]); i++) + { + if (strncmp(desc->names->keys[scancode].name, + keymap[i].name, + XkbKeyNameLength) == 0) + { + key = keymap[i].key; + break; + } + } + + // Fall back to key aliases in case the key name did not match + for (int i = 0; i < desc->names->num_key_aliases; i++) + { + if (key != GLFW_KEY_UNKNOWN) + break; + + if (strncmp(desc->names->key_aliases[i].real, + desc->names->keys[scancode].name, + XkbKeyNameLength) != 0) + { + continue; + } + + for (int j = 0; j < sizeof(keymap) / sizeof(keymap[0]); j++) + { + if (strncmp(desc->names->key_aliases[i].alias, + keymap[j].name, + XkbKeyNameLength) == 0) + { + key = keymap[j].key; + break; + } + } + } + + _glfw.x11.keycodes[scancode] = key; + } + + XkbFreeNames(desc, XkbKeyNamesMask, True); + XkbFreeKeyboard(desc, 0, True); + } + else + XDisplayKeycodes(_glfw.x11.display, &scancodeMin, &scancodeMax); + + int width; + KeySym* keysyms = XGetKeyboardMapping(_glfw.x11.display, + scancodeMin, + scancodeMax - scancodeMin + 1, + &width); + + for (int scancode = scancodeMin; scancode <= scancodeMax; scancode++) + { + // Translate the un-translated key codes using traditional X11 KeySym + // lookups + if (_glfw.x11.keycodes[scancode] < 0) + { + const size_t base = (scancode - scancodeMin) * width; + _glfw.x11.keycodes[scancode] = translateKeySyms(&keysyms[base], width); + } + + // Store the reverse translation for faster key name lookup + if (_glfw.x11.keycodes[scancode] > 0) + _glfw.x11.scancodes[_glfw.x11.keycodes[scancode]] = scancode; + } + + XFree(keysyms); +} + +// Check whether the IM has a usable style +// +static GLFWbool hasUsableInputMethodStyle(void) +{ + GLFWbool found = GLFW_FALSE; + XIMStyles* styles = NULL; + + if (XGetIMValues(_glfw.x11.im, XNQueryInputStyle, &styles, NULL) != NULL) + return GLFW_FALSE; + + for (unsigned int i = 0; i < styles->count_styles; i++) + { + if (styles->supported_styles[i] == (XIMPreeditNothing | XIMStatusNothing)) + { + found = GLFW_TRUE; + break; + } + } + + XFree(styles); + return found; +} + +static void inputMethodDestroyCallback(XIM im, XPointer clientData, XPointer callData) +{ + _glfw.x11.im = NULL; +} + +static void inputMethodInstantiateCallback(Display* display, + XPointer clientData, + XPointer callData) +{ + if (_glfw.x11.im) + return; + + _glfw.x11.im = XOpenIM(_glfw.x11.display, 0, NULL, NULL); + if (_glfw.x11.im) + { + if (!hasUsableInputMethodStyle()) + { + XCloseIM(_glfw.x11.im); + _glfw.x11.im = NULL; + } + } + + if (_glfw.x11.im) + { + XIMCallback callback; + callback.callback = (XIMProc) inputMethodDestroyCallback; + callback.client_data = NULL; + XSetIMValues(_glfw.x11.im, XNDestroyCallback, &callback, NULL); + + for (_GLFWwindow* window = _glfw.windowListHead; window; window = window->next) + _glfwCreateInputContextX11(window); + } +} + +// Return the atom ID only if it is listed in the specified array +// +static Atom getAtomIfSupported(Atom* supportedAtoms, + unsigned long atomCount, + const char* atomName) +{ + const Atom atom = XInternAtom(_glfw.x11.display, atomName, False); + + for (unsigned long i = 0; i < atomCount; i++) + { + if (supportedAtoms[i] == atom) + return atom; + } + + return None; +} + +// Check whether the running window manager is EWMH-compliant +// +static void detectEWMH(void) +{ + // First we read the _NET_SUPPORTING_WM_CHECK property on the root window + + Window* windowFromRoot = NULL; + if (!_glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_SUPPORTING_WM_CHECK, + XA_WINDOW, + (unsigned char**) &windowFromRoot)) + { + return; + } + + _glfwGrabErrorHandlerX11(); + + // If it exists, it should be the XID of a top-level window + // Then we look for the same property on that window + + Window* windowFromChild = NULL; + if (!_glfwGetWindowPropertyX11(*windowFromRoot, + _glfw.x11.NET_SUPPORTING_WM_CHECK, + XA_WINDOW, + (unsigned char**) &windowFromChild)) + { + XFree(windowFromRoot); + return; + } + + _glfwReleaseErrorHandlerX11(); + + // If the property exists, it should contain the XID of the window + + if (*windowFromRoot != *windowFromChild) + { + XFree(windowFromRoot); + XFree(windowFromChild); + return; + } + + XFree(windowFromRoot); + XFree(windowFromChild); + + // We are now fairly sure that an EWMH-compliant WM is currently running + // We can now start querying the WM about what features it supports by + // looking in the _NET_SUPPORTED property on the root window + // It should contain a list of supported EWMH protocol and state atoms + + Atom* supportedAtoms = NULL; + const unsigned long atomCount = + _glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_SUPPORTED, + XA_ATOM, + (unsigned char**) &supportedAtoms); + + // See which of the atoms we support that are supported by the WM + + _glfw.x11.NET_WM_STATE = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE"); + _glfw.x11.NET_WM_STATE_ABOVE = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_ABOVE"); + _glfw.x11.NET_WM_STATE_FULLSCREEN = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_FULLSCREEN"); + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_VERT"); + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_MAXIMIZED_HORZ"); + _glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_STATE_DEMANDS_ATTENTION"); + _glfw.x11.NET_WM_FULLSCREEN_MONITORS = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_FULLSCREEN_MONITORS"); + _glfw.x11.NET_WM_WINDOW_TYPE = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE"); + _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WM_WINDOW_TYPE_NORMAL"); + _glfw.x11.NET_WORKAREA = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_WORKAREA"); + _glfw.x11.NET_CURRENT_DESKTOP = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_CURRENT_DESKTOP"); + _glfw.x11.NET_ACTIVE_WINDOW = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_ACTIVE_WINDOW"); + _glfw.x11.NET_FRAME_EXTENTS = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_FRAME_EXTENTS"); + _glfw.x11.NET_REQUEST_FRAME_EXTENTS = + getAtomIfSupported(supportedAtoms, atomCount, "_NET_REQUEST_FRAME_EXTENTS"); + + if (supportedAtoms) + XFree(supportedAtoms); +} + +// Look for and initialize supported X11 extensions +// +static GLFWbool initExtensions(void) +{ +#if defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.vidmode.handle = _glfwPlatformLoadModule("libXxf86vm.so"); +#else + _glfw.x11.vidmode.handle = _glfwPlatformLoadModule("libXxf86vm.so.1"); +#endif + if (_glfw.x11.vidmode.handle) + { + _glfw.x11.vidmode.QueryExtension = (PFN_XF86VidModeQueryExtension) + _glfwPlatformGetModuleSymbol(_glfw.x11.vidmode.handle, "XF86VidModeQueryExtension"); + _glfw.x11.vidmode.GetGammaRamp = (PFN_XF86VidModeGetGammaRamp) + _glfwPlatformGetModuleSymbol(_glfw.x11.vidmode.handle, "XF86VidModeGetGammaRamp"); + _glfw.x11.vidmode.SetGammaRamp = (PFN_XF86VidModeSetGammaRamp) + _glfwPlatformGetModuleSymbol(_glfw.x11.vidmode.handle, "XF86VidModeSetGammaRamp"); + _glfw.x11.vidmode.GetGammaRampSize = (PFN_XF86VidModeGetGammaRampSize) + _glfwPlatformGetModuleSymbol(_glfw.x11.vidmode.handle, "XF86VidModeGetGammaRampSize"); + + _glfw.x11.vidmode.available = + XF86VidModeQueryExtension(_glfw.x11.display, + &_glfw.x11.vidmode.eventBase, + &_glfw.x11.vidmode.errorBase); + } + +#if defined(__CYGWIN__) + _glfw.x11.xi.handle = _glfwPlatformLoadModule("libXi-6.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.xi.handle = _glfwPlatformLoadModule("libXi.so"); +#else + _glfw.x11.xi.handle = _glfwPlatformLoadModule("libXi.so.6"); +#endif + if (_glfw.x11.xi.handle) + { + _glfw.x11.xi.QueryVersion = (PFN_XIQueryVersion) + _glfwPlatformGetModuleSymbol(_glfw.x11.xi.handle, "XIQueryVersion"); + _glfw.x11.xi.SelectEvents = (PFN_XISelectEvents) + _glfwPlatformGetModuleSymbol(_glfw.x11.xi.handle, "XISelectEvents"); + + if (XQueryExtension(_glfw.x11.display, + "XInputExtension", + &_glfw.x11.xi.majorOpcode, + &_glfw.x11.xi.eventBase, + &_glfw.x11.xi.errorBase)) + { + _glfw.x11.xi.major = 2; + _glfw.x11.xi.minor = 0; + + if (XIQueryVersion(_glfw.x11.display, + &_glfw.x11.xi.major, + &_glfw.x11.xi.minor) == Success) + { + _glfw.x11.xi.available = GLFW_TRUE; + } + } + } + +#if defined(__CYGWIN__) + _glfw.x11.randr.handle = _glfwPlatformLoadModule("libXrandr-2.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.randr.handle = _glfwPlatformLoadModule("libXrandr.so"); +#else + _glfw.x11.randr.handle = _glfwPlatformLoadModule("libXrandr.so.2"); +#endif + if (_glfw.x11.randr.handle) + { + _glfw.x11.randr.AllocGamma = (PFN_XRRAllocGamma) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRAllocGamma"); + _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRFreeGamma"); + _glfw.x11.randr.FreeCrtcInfo = (PFN_XRRFreeCrtcInfo) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRFreeCrtcInfo"); + _glfw.x11.randr.FreeGamma = (PFN_XRRFreeGamma) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRFreeGamma"); + _glfw.x11.randr.FreeOutputInfo = (PFN_XRRFreeOutputInfo) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRFreeOutputInfo"); + _glfw.x11.randr.FreeScreenResources = (PFN_XRRFreeScreenResources) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRFreeScreenResources"); + _glfw.x11.randr.GetCrtcGamma = (PFN_XRRGetCrtcGamma) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRGetCrtcGamma"); + _glfw.x11.randr.GetCrtcGammaSize = (PFN_XRRGetCrtcGammaSize) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRGetCrtcGammaSize"); + _glfw.x11.randr.GetCrtcInfo = (PFN_XRRGetCrtcInfo) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRGetCrtcInfo"); + _glfw.x11.randr.GetOutputInfo = (PFN_XRRGetOutputInfo) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRGetOutputInfo"); + _glfw.x11.randr.GetOutputPrimary = (PFN_XRRGetOutputPrimary) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRGetOutputPrimary"); + _glfw.x11.randr.GetScreenResourcesCurrent = (PFN_XRRGetScreenResourcesCurrent) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRGetScreenResourcesCurrent"); + _glfw.x11.randr.QueryExtension = (PFN_XRRQueryExtension) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRQueryExtension"); + _glfw.x11.randr.QueryVersion = (PFN_XRRQueryVersion) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRQueryVersion"); + _glfw.x11.randr.SelectInput = (PFN_XRRSelectInput) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRSelectInput"); + _glfw.x11.randr.SetCrtcConfig = (PFN_XRRSetCrtcConfig) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRSetCrtcConfig"); + _glfw.x11.randr.SetCrtcGamma = (PFN_XRRSetCrtcGamma) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRSetCrtcGamma"); + _glfw.x11.randr.UpdateConfiguration = (PFN_XRRUpdateConfiguration) + _glfwPlatformGetModuleSymbol(_glfw.x11.randr.handle, "XRRUpdateConfiguration"); + + if (XRRQueryExtension(_glfw.x11.display, + &_glfw.x11.randr.eventBase, + &_glfw.x11.randr.errorBase)) + { + if (XRRQueryVersion(_glfw.x11.display, + &_glfw.x11.randr.major, + &_glfw.x11.randr.minor)) + { + // The GLFW RandR path requires at least version 1.3 + if (_glfw.x11.randr.major > 1 || _glfw.x11.randr.minor >= 3) + _glfw.x11.randr.available = GLFW_TRUE; + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to query RandR version"); + } + } + } + + if (_glfw.x11.randr.available) + { + XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, + _glfw.x11.root); + + if (!sr->ncrtc || !XRRGetCrtcGammaSize(_glfw.x11.display, sr->crtcs[0])) + { + // This is likely an older Nvidia driver with broken gamma support + // Flag it as useless and fall back to xf86vm gamma, if available + _glfw.x11.randr.gammaBroken = GLFW_TRUE; + } + + if (!sr->ncrtc) + { + // A system without CRTCs is likely a system with broken RandR + // Disable the RandR monitor path and fall back to core functions + _glfw.x11.randr.monitorBroken = GLFW_TRUE; + } + + XRRFreeScreenResources(sr); + } + + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRSelectInput(_glfw.x11.display, _glfw.x11.root, + RROutputChangeNotifyMask); + } + +#if defined(__CYGWIN__) + _glfw.x11.xcursor.handle = _glfwPlatformLoadModule("libXcursor-1.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.xcursor.handle = _glfwPlatformLoadModule("libXcursor.so"); +#else + _glfw.x11.xcursor.handle = _glfwPlatformLoadModule("libXcursor.so.1"); +#endif + if (_glfw.x11.xcursor.handle) + { + _glfw.x11.xcursor.ImageCreate = (PFN_XcursorImageCreate) + _glfwPlatformGetModuleSymbol(_glfw.x11.xcursor.handle, "XcursorImageCreate"); + _glfw.x11.xcursor.ImageDestroy = (PFN_XcursorImageDestroy) + _glfwPlatformGetModuleSymbol(_glfw.x11.xcursor.handle, "XcursorImageDestroy"); + _glfw.x11.xcursor.ImageLoadCursor = (PFN_XcursorImageLoadCursor) + _glfwPlatformGetModuleSymbol(_glfw.x11.xcursor.handle, "XcursorImageLoadCursor"); + _glfw.x11.xcursor.GetTheme = (PFN_XcursorGetTheme) + _glfwPlatformGetModuleSymbol(_glfw.x11.xcursor.handle, "XcursorGetTheme"); + _glfw.x11.xcursor.GetDefaultSize = (PFN_XcursorGetDefaultSize) + _glfwPlatformGetModuleSymbol(_glfw.x11.xcursor.handle, "XcursorGetDefaultSize"); + _glfw.x11.xcursor.LibraryLoadImage = (PFN_XcursorLibraryLoadImage) + _glfwPlatformGetModuleSymbol(_glfw.x11.xcursor.handle, "XcursorLibraryLoadImage"); + } + +#if defined(__CYGWIN__) + _glfw.x11.xinerama.handle = _glfwPlatformLoadModule("libXinerama-1.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.xinerama.handle = _glfwPlatformLoadModule("libXinerama.so"); +#else + _glfw.x11.xinerama.handle = _glfwPlatformLoadModule("libXinerama.so.1"); +#endif + if (_glfw.x11.xinerama.handle) + { + _glfw.x11.xinerama.IsActive = (PFN_XineramaIsActive) + _glfwPlatformGetModuleSymbol(_glfw.x11.xinerama.handle, "XineramaIsActive"); + _glfw.x11.xinerama.QueryExtension = (PFN_XineramaQueryExtension) + _glfwPlatformGetModuleSymbol(_glfw.x11.xinerama.handle, "XineramaQueryExtension"); + _glfw.x11.xinerama.QueryScreens = (PFN_XineramaQueryScreens) + _glfwPlatformGetModuleSymbol(_glfw.x11.xinerama.handle, "XineramaQueryScreens"); + + if (XineramaQueryExtension(_glfw.x11.display, + &_glfw.x11.xinerama.major, + &_glfw.x11.xinerama.minor)) + { + if (XineramaIsActive(_glfw.x11.display)) + _glfw.x11.xinerama.available = GLFW_TRUE; + } + } + + _glfw.x11.xkb.major = 1; + _glfw.x11.xkb.minor = 0; + _glfw.x11.xkb.available = + XkbQueryExtension(_glfw.x11.display, + &_glfw.x11.xkb.majorOpcode, + &_glfw.x11.xkb.eventBase, + &_glfw.x11.xkb.errorBase, + &_glfw.x11.xkb.major, + &_glfw.x11.xkb.minor); + + if (_glfw.x11.xkb.available) + { + Bool supported; + + if (XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported)) + { + if (supported) + _glfw.x11.xkb.detectable = GLFW_TRUE; + } + + XkbStateRec state; + if (XkbGetState(_glfw.x11.display, XkbUseCoreKbd, &state) == Success) + _glfw.x11.xkb.group = (unsigned int)state.group; + + XkbSelectEventDetails(_glfw.x11.display, XkbUseCoreKbd, XkbStateNotify, + XkbGroupStateMask, XkbGroupStateMask); + } + + if (_glfw.hints.init.x11.xcbVulkanSurface) + { +#if defined(__CYGWIN__) + _glfw.x11.x11xcb.handle = _glfwPlatformLoadModule("libX11-xcb-1.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.x11xcb.handle = _glfwPlatformLoadModule("libX11-xcb.so"); +#else + _glfw.x11.x11xcb.handle = _glfwPlatformLoadModule("libX11-xcb.so.1"); +#endif + } + + if (_glfw.x11.x11xcb.handle) + { + _glfw.x11.x11xcb.GetXCBConnection = (PFN_XGetXCBConnection) + _glfwPlatformGetModuleSymbol(_glfw.x11.x11xcb.handle, "XGetXCBConnection"); + } + +#if defined(__CYGWIN__) + _glfw.x11.xrender.handle = _glfwPlatformLoadModule("libXrender-1.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.xrender.handle = _glfwPlatformLoadModule("libXrender.so"); +#else + _glfw.x11.xrender.handle = _glfwPlatformLoadModule("libXrender.so.1"); +#endif + if (_glfw.x11.xrender.handle) + { + _glfw.x11.xrender.QueryExtension = (PFN_XRenderQueryExtension) + _glfwPlatformGetModuleSymbol(_glfw.x11.xrender.handle, "XRenderQueryExtension"); + _glfw.x11.xrender.QueryVersion = (PFN_XRenderQueryVersion) + _glfwPlatformGetModuleSymbol(_glfw.x11.xrender.handle, "XRenderQueryVersion"); + _glfw.x11.xrender.FindVisualFormat = (PFN_XRenderFindVisualFormat) + _glfwPlatformGetModuleSymbol(_glfw.x11.xrender.handle, "XRenderFindVisualFormat"); + + if (XRenderQueryExtension(_glfw.x11.display, + &_glfw.x11.xrender.errorBase, + &_glfw.x11.xrender.eventBase)) + { + if (XRenderQueryVersion(_glfw.x11.display, + &_glfw.x11.xrender.major, + &_glfw.x11.xrender.minor)) + { + _glfw.x11.xrender.available = GLFW_TRUE; + } + } + } + +#if defined(__CYGWIN__) + _glfw.x11.xshape.handle = _glfwPlatformLoadModule("libXext-6.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + _glfw.x11.xshape.handle = _glfwPlatformLoadModule("libXext.so"); +#else + _glfw.x11.xshape.handle = _glfwPlatformLoadModule("libXext.so.6"); +#endif + if (_glfw.x11.xshape.handle) + { + _glfw.x11.xshape.QueryExtension = (PFN_XShapeQueryExtension) + _glfwPlatformGetModuleSymbol(_glfw.x11.xshape.handle, "XShapeQueryExtension"); + _glfw.x11.xshape.ShapeCombineRegion = (PFN_XShapeCombineRegion) + _glfwPlatformGetModuleSymbol(_glfw.x11.xshape.handle, "XShapeCombineRegion"); + _glfw.x11.xshape.QueryVersion = (PFN_XShapeQueryVersion) + _glfwPlatformGetModuleSymbol(_glfw.x11.xshape.handle, "XShapeQueryVersion"); + _glfw.x11.xshape.ShapeCombineMask = (PFN_XShapeCombineMask) + _glfwPlatformGetModuleSymbol(_glfw.x11.xshape.handle, "XShapeCombineMask"); + + if (XShapeQueryExtension(_glfw.x11.display, + &_glfw.x11.xshape.errorBase, + &_glfw.x11.xshape.eventBase)) + { + if (XShapeQueryVersion(_glfw.x11.display, + &_glfw.x11.xshape.major, + &_glfw.x11.xshape.minor)) + { + _glfw.x11.xshape.available = GLFW_TRUE; + } + } + } + + // Update the key code LUT + // FIXME: We should listen to XkbMapNotify events to track changes to + // the keyboard mapping. + createKeyTables(); + + // String format atoms + _glfw.x11.NULL_ = XInternAtom(_glfw.x11.display, "NULL", False); + _glfw.x11.UTF8_STRING = XInternAtom(_glfw.x11.display, "UTF8_STRING", False); + _glfw.x11.ATOM_PAIR = XInternAtom(_glfw.x11.display, "ATOM_PAIR", False); + + // Custom selection property atom + _glfw.x11.GLFW_SELECTION = + XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False); + + // ICCCM standard clipboard atoms + _glfw.x11.TARGETS = XInternAtom(_glfw.x11.display, "TARGETS", False); + _glfw.x11.MULTIPLE = XInternAtom(_glfw.x11.display, "MULTIPLE", False); + _glfw.x11.PRIMARY = XInternAtom(_glfw.x11.display, "PRIMARY", False); + _glfw.x11.INCR = XInternAtom(_glfw.x11.display, "INCR", False); + _glfw.x11.CLIPBOARD = XInternAtom(_glfw.x11.display, "CLIPBOARD", False); + + // Clipboard manager atoms + _glfw.x11.CLIPBOARD_MANAGER = + XInternAtom(_glfw.x11.display, "CLIPBOARD_MANAGER", False); + _glfw.x11.SAVE_TARGETS = + XInternAtom(_glfw.x11.display, "SAVE_TARGETS", False); + + // Xdnd (drag and drop) atoms + _glfw.x11.XdndAware = XInternAtom(_glfw.x11.display, "XdndAware", False); + _glfw.x11.XdndEnter = XInternAtom(_glfw.x11.display, "XdndEnter", False); + _glfw.x11.XdndPosition = XInternAtom(_glfw.x11.display, "XdndPosition", False); + _glfw.x11.XdndStatus = XInternAtom(_glfw.x11.display, "XdndStatus", False); + _glfw.x11.XdndActionCopy = XInternAtom(_glfw.x11.display, "XdndActionCopy", False); + _glfw.x11.XdndDrop = XInternAtom(_glfw.x11.display, "XdndDrop", False); + _glfw.x11.XdndFinished = XInternAtom(_glfw.x11.display, "XdndFinished", False); + _glfw.x11.XdndSelection = XInternAtom(_glfw.x11.display, "XdndSelection", False); + _glfw.x11.XdndTypeList = XInternAtom(_glfw.x11.display, "XdndTypeList", False); + _glfw.x11.text_uri_list = XInternAtom(_glfw.x11.display, "text/uri-list", False); + + // ICCCM, EWMH and Motif window property atoms + // These can be set safely even without WM support + // The EWMH atoms that require WM support are handled in detectEWMH + _glfw.x11.WM_PROTOCOLS = + XInternAtom(_glfw.x11.display, "WM_PROTOCOLS", False); + _glfw.x11.WM_STATE = + XInternAtom(_glfw.x11.display, "WM_STATE", False); + _glfw.x11.WM_DELETE_WINDOW = + XInternAtom(_glfw.x11.display, "WM_DELETE_WINDOW", False); + _glfw.x11.NET_SUPPORTED = + XInternAtom(_glfw.x11.display, "_NET_SUPPORTED", False); + _glfw.x11.NET_SUPPORTING_WM_CHECK = + XInternAtom(_glfw.x11.display, "_NET_SUPPORTING_WM_CHECK", False); + _glfw.x11.NET_WM_ICON = + XInternAtom(_glfw.x11.display, "_NET_WM_ICON", False); + _glfw.x11.NET_WM_PING = + XInternAtom(_glfw.x11.display, "_NET_WM_PING", False); + _glfw.x11.NET_WM_PID = + XInternAtom(_glfw.x11.display, "_NET_WM_PID", False); + _glfw.x11.NET_WM_NAME = + XInternAtom(_glfw.x11.display, "_NET_WM_NAME", False); + _glfw.x11.NET_WM_ICON_NAME = + XInternAtom(_glfw.x11.display, "_NET_WM_ICON_NAME", False); + _glfw.x11.NET_WM_BYPASS_COMPOSITOR = + XInternAtom(_glfw.x11.display, "_NET_WM_BYPASS_COMPOSITOR", False); + _glfw.x11.NET_WM_WINDOW_OPACITY = + XInternAtom(_glfw.x11.display, "_NET_WM_WINDOW_OPACITY", False); + _glfw.x11.MOTIF_WM_HINTS = + XInternAtom(_glfw.x11.display, "_MOTIF_WM_HINTS", False); + + // The compositing manager selection name contains the screen number + { + char name[32]; + snprintf(name, sizeof(name), "_NET_WM_CM_S%u", _glfw.x11.screen); + _glfw.x11.NET_WM_CM_Sx = XInternAtom(_glfw.x11.display, name, False); + } + + // Detect whether an EWMH-conformant window manager is running + detectEWMH(); + + return GLFW_TRUE; +} + +// Retrieve system content scale via folklore heuristics +// +static void getSystemContentScale(float* xscale, float* yscale) +{ + // Start by assuming the default X11 DPI + // NOTE: Some desktop environments (KDE) may remove the Xft.dpi field when it + // would be set to 96, so assume that is the case if we cannot find it + float xdpi = 96.f, ydpi = 96.f; + + // NOTE: Basing the scale on Xft.dpi where available should provide the most + // consistent user experience (matches Qt, Gtk, etc), although not + // always the most accurate one + char* rms = XResourceManagerString(_glfw.x11.display); + if (rms) + { + XrmDatabase db = XrmGetStringDatabase(rms); + if (db) + { + XrmValue value; + char* type = NULL; + + if (XrmGetResource(db, "Xft.dpi", "Xft.Dpi", &type, &value)) + { + if (type && strcmp(type, "String") == 0) + xdpi = ydpi = atof(value.addr); + } + + XrmDestroyDatabase(db); + } + } + + *xscale = xdpi / 96.f; + *yscale = ydpi / 96.f; +} + +// Create a blank cursor for hidden and disabled cursor modes +// +static Cursor createHiddenCursor(void) +{ + unsigned char pixels[16 * 16 * 4] = { 0 }; + GLFWimage image = { 16, 16, pixels }; + return _glfwCreateNativeCursorX11(&image, 0, 0); +} + +// Create a helper window for IPC +// +static Window createHelperWindow(void) +{ + XSetWindowAttributes wa; + wa.event_mask = PropertyChangeMask; + + return XCreateWindow(_glfw.x11.display, _glfw.x11.root, + 0, 0, 1, 1, 0, 0, + InputOnly, + DefaultVisual(_glfw.x11.display, _glfw.x11.screen), + CWEventMask, &wa); +} + +// Create the pipe for empty events without assumuing the OS has pipe2(2) +// +static GLFWbool createEmptyEventPipe(void) +{ + if (pipe(_glfw.x11.emptyEventPipe) != 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to create empty event pipe: %s", + strerror(errno)); + return GLFW_FALSE; + } + + for (int i = 0; i < 2; i++) + { + const int sf = fcntl(_glfw.x11.emptyEventPipe[i], F_GETFL, 0); + const int df = fcntl(_glfw.x11.emptyEventPipe[i], F_GETFD, 0); + + if (sf == -1 || df == -1 || + fcntl(_glfw.x11.emptyEventPipe[i], F_SETFL, sf | O_NONBLOCK) == -1 || + fcntl(_glfw.x11.emptyEventPipe[i], F_SETFD, df | FD_CLOEXEC) == -1) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to set flags for empty event pipe: %s", + strerror(errno)); + return GLFW_FALSE; + } + } + + return GLFW_TRUE; +} + +// X error handler +// +static int errorHandler(Display *display, XErrorEvent* event) +{ + if (_glfw.x11.display != display) + return 0; + + _glfw.x11.errorCode = event->error_code; + return 0; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Sets the X error handler callback +// +void _glfwGrabErrorHandlerX11(void) +{ + assert(_glfw.x11.errorHandler == NULL); + _glfw.x11.errorCode = Success; + _glfw.x11.errorHandler = XSetErrorHandler(errorHandler); +} + +// Clears the X error handler callback +// +void _glfwReleaseErrorHandlerX11(void) +{ + // Synchronize to make sure all commands are processed + XSync(_glfw.x11.display, False); + XSetErrorHandler(_glfw.x11.errorHandler); + _glfw.x11.errorHandler = NULL; +} + +// Reports the specified error, appending information about the last X error +// +void _glfwInputErrorX11(int error, const char* message) +{ + char buffer[_GLFW_MESSAGE_SIZE]; + XGetErrorText(_glfw.x11.display, _glfw.x11.errorCode, + buffer, sizeof(buffer)); + + _glfwInputError(error, "%s: %s", message, buffer); +} + +// Creates a native cursor object from the specified image and hotspot +// +Cursor _glfwCreateNativeCursorX11(const GLFWimage* image, int xhot, int yhot) +{ + Cursor cursor; + + if (!_glfw.x11.xcursor.handle) + return None; + + XcursorImage* native = XcursorImageCreate(image->width, image->height); + if (native == NULL) + return None; + + native->xhot = xhot; + native->yhot = yhot; + + unsigned char* source = (unsigned char*) image->pixels; + XcursorPixel* target = native->pixels; + + for (int i = 0; i < image->width * image->height; i++, target++, source += 4) + { + unsigned int alpha = source[3]; + + *target = (alpha << 24) | + ((unsigned char) ((source[0] * alpha) / 255) << 16) | + ((unsigned char) ((source[1] * alpha) / 255) << 8) | + ((unsigned char) ((source[2] * alpha) / 255) << 0); + } + + cursor = XcursorImageLoadCursor(_glfw.x11.display, native); + XcursorImageDestroy(native); + + return cursor; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwConnectX11(int platformID, _GLFWplatform* platform) +{ + const _GLFWplatform x11 = + { + GLFW_PLATFORM_X11, + _glfwInitX11, + _glfwTerminateX11, + _glfwGetCursorPosX11, + _glfwSetCursorPosX11, + _glfwSetCursorModeX11, + _glfwSetRawMouseMotionX11, + _glfwRawMouseMotionSupportedX11, + _glfwCreateCursorX11, + _glfwCreateStandardCursorX11, + _glfwDestroyCursorX11, + _glfwSetCursorX11, + _glfwGetScancodeNameX11, + _glfwGetKeyScancodeX11, + _glfwSetClipboardStringX11, + _glfwGetClipboardStringX11, +#if defined(__linux__) + _glfwInitJoysticksLinux, + _glfwTerminateJoysticksLinux, + _glfwPollJoystickLinux, + _glfwGetMappingNameLinux, + _glfwUpdateGamepadGUIDLinux, +#else + _glfwInitJoysticksNull, + _glfwTerminateJoysticksNull, + _glfwPollJoystickNull, + _glfwGetMappingNameNull, + _glfwUpdateGamepadGUIDNull, +#endif + _glfwFreeMonitorX11, + _glfwGetMonitorPosX11, + _glfwGetMonitorContentScaleX11, + _glfwGetMonitorWorkareaX11, + _glfwGetVideoModesX11, + _glfwGetVideoModeX11, + _glfwGetGammaRampX11, + _glfwSetGammaRampX11, + _glfwCreateWindowX11, + _glfwDestroyWindowX11, + _glfwSetWindowTitleX11, + _glfwSetWindowIconX11, + _glfwGetWindowPosX11, + _glfwSetWindowPosX11, + _glfwGetWindowSizeX11, + _glfwSetWindowSizeX11, + _glfwSetWindowSizeLimitsX11, + _glfwSetWindowAspectRatioX11, + _glfwGetFramebufferSizeX11, + _glfwGetWindowFrameSizeX11, + _glfwGetWindowContentScaleX11, + _glfwIconifyWindowX11, + _glfwRestoreWindowX11, + _glfwMaximizeWindowX11, + _glfwShowWindowX11, + _glfwHideWindowX11, + _glfwRequestWindowAttentionX11, + _glfwFocusWindowX11, + _glfwSetWindowMonitorX11, + _glfwWindowFocusedX11, + _glfwWindowIconifiedX11, + _glfwWindowVisibleX11, + _glfwWindowMaximizedX11, + _glfwWindowHoveredX11, + _glfwFramebufferTransparentX11, + _glfwGetWindowOpacityX11, + _glfwSetWindowResizableX11, + _glfwSetWindowDecoratedX11, + _glfwSetWindowFloatingX11, + _glfwSetWindowOpacityX11, + _glfwSetWindowMousePassthroughX11, + _glfwPollEventsX11, + _glfwWaitEventsX11, + _glfwWaitEventsTimeoutX11, + _glfwPostEmptyEventX11, + _glfwGetEGLPlatformX11, + _glfwGetEGLNativeDisplayX11, + _glfwGetEGLNativeWindowX11, + _glfwGetRequiredInstanceExtensionsX11, + _glfwGetPhysicalDevicePresentationSupportX11, + _glfwCreateWindowSurfaceX11, + }; + + // HACK: If the application has left the locale as "C" then both wide + // character text input and explicit UTF-8 input via XIM will break + // This sets the CTYPE part of the current locale from the environment + // in the hope that it is set to something more sane than "C" + if (strcmp(setlocale(LC_CTYPE, NULL), "C") == 0) + setlocale(LC_CTYPE, ""); + +#if defined(__CYGWIN__) + void* module = _glfwPlatformLoadModule("libX11-6.so"); +#elif defined(__OpenBSD__) || defined(__NetBSD__) + void* module = _glfwPlatformLoadModule("libX11.so"); +#else + void* module = _glfwPlatformLoadModule("libX11.so.6"); +#endif + if (!module) + { + if (platformID == GLFW_PLATFORM_X11) + _glfwInputError(GLFW_PLATFORM_ERROR, "X11: Failed to load Xlib"); + + return GLFW_FALSE; + } + + PFN_XInitThreads XInitThreads = (PFN_XInitThreads) + _glfwPlatformGetModuleSymbol(module, "XInitThreads"); + PFN_XrmInitialize XrmInitialize = (PFN_XrmInitialize) + _glfwPlatformGetModuleSymbol(module, "XrmInitialize"); + PFN_XOpenDisplay XOpenDisplay = (PFN_XOpenDisplay) + _glfwPlatformGetModuleSymbol(module, "XOpenDisplay"); + if (!XInitThreads || !XrmInitialize || !XOpenDisplay) + { + if (platformID == GLFW_PLATFORM_X11) + _glfwInputError(GLFW_PLATFORM_ERROR, "X11: Failed to load Xlib entry point"); + + _glfwPlatformFreeModule(module); + return GLFW_FALSE; + } + + XInitThreads(); + XrmInitialize(); + + Display* display = XOpenDisplay(NULL); + if (!display) + { + if (platformID == GLFW_PLATFORM_X11) + { + const char* name = getenv("DISPLAY"); + if (name) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "X11: Failed to open display %s", name); + } + else + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, + "X11: The DISPLAY environment variable is missing"); + } + } + + _glfwPlatformFreeModule(module); + return GLFW_FALSE; + } + + _glfw.x11.display = display; + _glfw.x11.xlib.handle = module; + + *platform = x11; + return GLFW_TRUE; +} + +int _glfwInitX11(void) +{ + _glfw.x11.xlib.AllocClassHint = (PFN_XAllocClassHint) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XAllocClassHint"); + _glfw.x11.xlib.AllocSizeHints = (PFN_XAllocSizeHints) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XAllocSizeHints"); + _glfw.x11.xlib.AllocWMHints = (PFN_XAllocWMHints) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XAllocWMHints"); + _glfw.x11.xlib.ChangeProperty = (PFN_XChangeProperty) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XChangeProperty"); + _glfw.x11.xlib.ChangeWindowAttributes = (PFN_XChangeWindowAttributes) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XChangeWindowAttributes"); + _glfw.x11.xlib.CheckIfEvent = (PFN_XCheckIfEvent) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCheckIfEvent"); + _glfw.x11.xlib.CheckTypedWindowEvent = (PFN_XCheckTypedWindowEvent) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCheckTypedWindowEvent"); + _glfw.x11.xlib.CloseDisplay = (PFN_XCloseDisplay) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCloseDisplay"); + _glfw.x11.xlib.CloseIM = (PFN_XCloseIM) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCloseIM"); + _glfw.x11.xlib.ConvertSelection = (PFN_XConvertSelection) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XConvertSelection"); + _glfw.x11.xlib.CreateColormap = (PFN_XCreateColormap) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCreateColormap"); + _glfw.x11.xlib.CreateFontCursor = (PFN_XCreateFontCursor) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCreateFontCursor"); + _glfw.x11.xlib.CreateIC = (PFN_XCreateIC) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCreateIC"); + _glfw.x11.xlib.CreateRegion = (PFN_XCreateRegion) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCreateRegion"); + _glfw.x11.xlib.CreateWindow = (PFN_XCreateWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XCreateWindow"); + _glfw.x11.xlib.DefineCursor = (PFN_XDefineCursor) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XDefineCursor"); + _glfw.x11.xlib.DeleteContext = (PFN_XDeleteContext) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XDeleteContext"); + _glfw.x11.xlib.DeleteProperty = (PFN_XDeleteProperty) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XDeleteProperty"); + _glfw.x11.xlib.DestroyIC = (PFN_XDestroyIC) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XDestroyIC"); + _glfw.x11.xlib.DestroyRegion = (PFN_XDestroyRegion) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XDestroyRegion"); + _glfw.x11.xlib.DestroyWindow = (PFN_XDestroyWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XDestroyWindow"); + _glfw.x11.xlib.DisplayKeycodes = (PFN_XDisplayKeycodes) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XDisplayKeycodes"); + _glfw.x11.xlib.EventsQueued = (PFN_XEventsQueued) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XEventsQueued"); + _glfw.x11.xlib.FilterEvent = (PFN_XFilterEvent) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XFilterEvent"); + _glfw.x11.xlib.FindContext = (PFN_XFindContext) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XFindContext"); + _glfw.x11.xlib.Flush = (PFN_XFlush) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XFlush"); + _glfw.x11.xlib.Free = (PFN_XFree) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XFree"); + _glfw.x11.xlib.FreeColormap = (PFN_XFreeColormap) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XFreeColormap"); + _glfw.x11.xlib.FreeCursor = (PFN_XFreeCursor) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XFreeCursor"); + _glfw.x11.xlib.FreeEventData = (PFN_XFreeEventData) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XFreeEventData"); + _glfw.x11.xlib.GetErrorText = (PFN_XGetErrorText) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetErrorText"); + _glfw.x11.xlib.GetEventData = (PFN_XGetEventData) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetEventData"); + _glfw.x11.xlib.GetICValues = (PFN_XGetICValues) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetICValues"); + _glfw.x11.xlib.GetIMValues = (PFN_XGetIMValues) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetIMValues"); + _glfw.x11.xlib.GetInputFocus = (PFN_XGetInputFocus) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetInputFocus"); + _glfw.x11.xlib.GetKeyboardMapping = (PFN_XGetKeyboardMapping) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetKeyboardMapping"); + _glfw.x11.xlib.GetScreenSaver = (PFN_XGetScreenSaver) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetScreenSaver"); + _glfw.x11.xlib.GetSelectionOwner = (PFN_XGetSelectionOwner) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetSelectionOwner"); + _glfw.x11.xlib.GetVisualInfo = (PFN_XGetVisualInfo) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetVisualInfo"); + _glfw.x11.xlib.GetWMNormalHints = (PFN_XGetWMNormalHints) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetWMNormalHints"); + _glfw.x11.xlib.GetWindowAttributes = (PFN_XGetWindowAttributes) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetWindowAttributes"); + _glfw.x11.xlib.GetWindowProperty = (PFN_XGetWindowProperty) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGetWindowProperty"); + _glfw.x11.xlib.GrabPointer = (PFN_XGrabPointer) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XGrabPointer"); + _glfw.x11.xlib.IconifyWindow = (PFN_XIconifyWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XIconifyWindow"); + _glfw.x11.xlib.InternAtom = (PFN_XInternAtom) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XInternAtom"); + _glfw.x11.xlib.LookupString = (PFN_XLookupString) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XLookupString"); + _glfw.x11.xlib.MapRaised = (PFN_XMapRaised) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XMapRaised"); + _glfw.x11.xlib.MapWindow = (PFN_XMapWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XMapWindow"); + _glfw.x11.xlib.MoveResizeWindow = (PFN_XMoveResizeWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XMoveResizeWindow"); + _glfw.x11.xlib.MoveWindow = (PFN_XMoveWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XMoveWindow"); + _glfw.x11.xlib.NextEvent = (PFN_XNextEvent) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XNextEvent"); + _glfw.x11.xlib.OpenIM = (PFN_XOpenIM) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XOpenIM"); + _glfw.x11.xlib.PeekEvent = (PFN_XPeekEvent) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XPeekEvent"); + _glfw.x11.xlib.Pending = (PFN_XPending) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XPending"); + _glfw.x11.xlib.QueryExtension = (PFN_XQueryExtension) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XQueryExtension"); + _glfw.x11.xlib.QueryPointer = (PFN_XQueryPointer) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XQueryPointer"); + _glfw.x11.xlib.RaiseWindow = (PFN_XRaiseWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XRaiseWindow"); + _glfw.x11.xlib.RegisterIMInstantiateCallback = (PFN_XRegisterIMInstantiateCallback) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XRegisterIMInstantiateCallback"); + _glfw.x11.xlib.ResizeWindow = (PFN_XResizeWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XResizeWindow"); + _glfw.x11.xlib.ResourceManagerString = (PFN_XResourceManagerString) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XResourceManagerString"); + _glfw.x11.xlib.SaveContext = (PFN_XSaveContext) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSaveContext"); + _glfw.x11.xlib.SelectInput = (PFN_XSelectInput) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSelectInput"); + _glfw.x11.xlib.SendEvent = (PFN_XSendEvent) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSendEvent"); + _glfw.x11.xlib.SetClassHint = (PFN_XSetClassHint) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetClassHint"); + _glfw.x11.xlib.SetErrorHandler = (PFN_XSetErrorHandler) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetErrorHandler"); + _glfw.x11.xlib.SetICFocus = (PFN_XSetICFocus) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetICFocus"); + _glfw.x11.xlib.SetIMValues = (PFN_XSetIMValues) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetIMValues"); + _glfw.x11.xlib.SetInputFocus = (PFN_XSetInputFocus) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetInputFocus"); + _glfw.x11.xlib.SetLocaleModifiers = (PFN_XSetLocaleModifiers) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetLocaleModifiers"); + _glfw.x11.xlib.SetScreenSaver = (PFN_XSetScreenSaver) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetScreenSaver"); + _glfw.x11.xlib.SetSelectionOwner = (PFN_XSetSelectionOwner) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetSelectionOwner"); + _glfw.x11.xlib.SetWMHints = (PFN_XSetWMHints) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetWMHints"); + _glfw.x11.xlib.SetWMNormalHints = (PFN_XSetWMNormalHints) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetWMNormalHints"); + _glfw.x11.xlib.SetWMProtocols = (PFN_XSetWMProtocols) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSetWMProtocols"); + _glfw.x11.xlib.SupportsLocale = (PFN_XSupportsLocale) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSupportsLocale"); + _glfw.x11.xlib.Sync = (PFN_XSync) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XSync"); + _glfw.x11.xlib.TranslateCoordinates = (PFN_XTranslateCoordinates) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XTranslateCoordinates"); + _glfw.x11.xlib.UndefineCursor = (PFN_XUndefineCursor) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XUndefineCursor"); + _glfw.x11.xlib.UngrabPointer = (PFN_XUngrabPointer) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XUngrabPointer"); + _glfw.x11.xlib.UnmapWindow = (PFN_XUnmapWindow) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XUnmapWindow"); + _glfw.x11.xlib.UnsetICFocus = (PFN_XUnsetICFocus) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XUnsetICFocus"); + _glfw.x11.xlib.VisualIDFromVisual = (PFN_XVisualIDFromVisual) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XVisualIDFromVisual"); + _glfw.x11.xlib.WarpPointer = (PFN_XWarpPointer) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XWarpPointer"); + _glfw.x11.xkb.FreeKeyboard = (PFN_XkbFreeKeyboard) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbFreeKeyboard"); + _glfw.x11.xkb.FreeNames = (PFN_XkbFreeNames) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbFreeNames"); + _glfw.x11.xkb.GetMap = (PFN_XkbGetMap) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbGetMap"); + _glfw.x11.xkb.GetNames = (PFN_XkbGetNames) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbGetNames"); + _glfw.x11.xkb.GetState = (PFN_XkbGetState) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbGetState"); + _glfw.x11.xkb.KeycodeToKeysym = (PFN_XkbKeycodeToKeysym) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbKeycodeToKeysym"); + _glfw.x11.xkb.QueryExtension = (PFN_XkbQueryExtension) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbQueryExtension"); + _glfw.x11.xkb.SelectEventDetails = (PFN_XkbSelectEventDetails) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbSelectEventDetails"); + _glfw.x11.xkb.SetDetectableAutoRepeat = (PFN_XkbSetDetectableAutoRepeat) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XkbSetDetectableAutoRepeat"); + _glfw.x11.xrm.DestroyDatabase = (PFN_XrmDestroyDatabase) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XrmDestroyDatabase"); + _glfw.x11.xrm.GetResource = (PFN_XrmGetResource) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XrmGetResource"); + _glfw.x11.xrm.GetStringDatabase = (PFN_XrmGetStringDatabase) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XrmGetStringDatabase"); + _glfw.x11.xrm.UniqueQuark = (PFN_XrmUniqueQuark) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XrmUniqueQuark"); + _glfw.x11.xlib.UnregisterIMInstantiateCallback = (PFN_XUnregisterIMInstantiateCallback) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "XUnregisterIMInstantiateCallback"); + _glfw.x11.xlib.utf8LookupString = (PFN_Xutf8LookupString) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "Xutf8LookupString"); + _glfw.x11.xlib.utf8SetWMProperties = (PFN_Xutf8SetWMProperties) + _glfwPlatformGetModuleSymbol(_glfw.x11.xlib.handle, "Xutf8SetWMProperties"); + + if (_glfw.x11.xlib.utf8LookupString && _glfw.x11.xlib.utf8SetWMProperties) + _glfw.x11.xlib.utf8 = GLFW_TRUE; + + _glfw.x11.screen = DefaultScreen(_glfw.x11.display); + _glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen); + _glfw.x11.context = XUniqueContext(); + + getSystemContentScale(&_glfw.x11.contentScaleX, &_glfw.x11.contentScaleY); + + if (!createEmptyEventPipe()) + return GLFW_FALSE; + + if (!initExtensions()) + return GLFW_FALSE; + + _glfw.x11.helperWindowHandle = createHelperWindow(); + _glfw.x11.hiddenCursorHandle = createHiddenCursor(); + + if (XSupportsLocale() && _glfw.x11.xlib.utf8) + { + XSetLocaleModifiers(""); + + // If an IM is already present our callback will be called right away + XRegisterIMInstantiateCallback(_glfw.x11.display, + NULL, NULL, NULL, + inputMethodInstantiateCallback, + NULL); + } + + _glfwPollMonitorsX11(); + return GLFW_TRUE; +} + +void _glfwTerminateX11(void) +{ + if (_glfw.x11.helperWindowHandle) + { + if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == + _glfw.x11.helperWindowHandle) + { + _glfwPushSelectionToManagerX11(); + } + + XDestroyWindow(_glfw.x11.display, _glfw.x11.helperWindowHandle); + _glfw.x11.helperWindowHandle = None; + } + + if (_glfw.x11.hiddenCursorHandle) + { + XFreeCursor(_glfw.x11.display, _glfw.x11.hiddenCursorHandle); + _glfw.x11.hiddenCursorHandle = (Cursor) 0; + } + + _glfw_free(_glfw.x11.primarySelectionString); + _glfw_free(_glfw.x11.clipboardString); + + XUnregisterIMInstantiateCallback(_glfw.x11.display, + NULL, NULL, NULL, + inputMethodInstantiateCallback, + NULL); + + if (_glfw.x11.im) + { + XCloseIM(_glfw.x11.im); + _glfw.x11.im = NULL; + } + + if (_glfw.x11.display) + { + XCloseDisplay(_glfw.x11.display); + _glfw.x11.display = NULL; + } + + if (_glfw.x11.x11xcb.handle) + { + _glfwPlatformFreeModule(_glfw.x11.x11xcb.handle); + _glfw.x11.x11xcb.handle = NULL; + } + + if (_glfw.x11.xcursor.handle) + { + _glfwPlatformFreeModule(_glfw.x11.xcursor.handle); + _glfw.x11.xcursor.handle = NULL; + } + + if (_glfw.x11.randr.handle) + { + _glfwPlatformFreeModule(_glfw.x11.randr.handle); + _glfw.x11.randr.handle = NULL; + } + + if (_glfw.x11.xinerama.handle) + { + _glfwPlatformFreeModule(_glfw.x11.xinerama.handle); + _glfw.x11.xinerama.handle = NULL; + } + + if (_glfw.x11.xrender.handle) + { + _glfwPlatformFreeModule(_glfw.x11.xrender.handle); + _glfw.x11.xrender.handle = NULL; + } + + if (_glfw.x11.vidmode.handle) + { + _glfwPlatformFreeModule(_glfw.x11.vidmode.handle); + _glfw.x11.vidmode.handle = NULL; + } + + if (_glfw.x11.xi.handle) + { + _glfwPlatformFreeModule(_glfw.x11.xi.handle); + _glfw.x11.xi.handle = NULL; + } + + _glfwTerminateOSMesa(); + // NOTE: These need to be unloaded after XCloseDisplay, as they register + // cleanup callbacks that get called by that function + _glfwTerminateEGL(); + _glfwTerminateGLX(); + + if (_glfw.x11.xlib.handle) + { + _glfwPlatformFreeModule(_glfw.x11.xlib.handle); + _glfw.x11.xlib.handle = NULL; + } + + if (_glfw.x11.emptyEventPipe[0] || _glfw.x11.emptyEventPipe[1]) + { + close(_glfw.x11.emptyEventPipe[0]); + close(_glfw.x11.emptyEventPipe[1]); + } +} + diff --git a/thirdparty/imgui_suite/glfw/src/x11_monitor.c b/thirdparty/imgui_suite/glfw/src/x11_monitor.c new file mode 100644 index 00000000000..14baada9c54 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/x11_monitor.c @@ -0,0 +1,617 @@ +//======================================================================== +// GLFW 3.4 X11 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wsign-compare" + +// Check whether the display mode should be included in enumeration +// +static GLFWbool modeIsGood(const XRRModeInfo* mi) +{ + return (mi->modeFlags & RR_Interlace) == 0; +} + +// Calculates the refresh rate, in Hz, from the specified RandR mode info +// +static int calculateRefreshRate(const XRRModeInfo* mi) +{ + if (mi->hTotal && mi->vTotal) + return (int) round((double) mi->dotClock / ((double) mi->hTotal * (double) mi->vTotal)); + else + return 0; +} + +// Returns the mode info for a RandR mode XID +// +static const XRRModeInfo* getModeInfo(const XRRScreenResources* sr, RRMode id) +{ + for (int i = 0; i < sr->nmode; i++) + { + if (sr->modes[i].id == id) + return sr->modes + i; + } + + return NULL; +} + +// Convert RandR mode info to GLFW video mode +// +static GLFWvidmode vidmodeFromModeInfo(const XRRModeInfo* mi, + const XRRCrtcInfo* ci) +{ + GLFWvidmode mode; + + if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) + { + mode.width = mi->height; + mode.height = mi->width; + } + else + { + mode.width = mi->width; + mode.height = mi->height; + } + + mode.refreshRate = calculateRefreshRate(mi); + + _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), + &mode.redBits, &mode.greenBits, &mode.blueBits); + + return mode; +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Poll for changes in the set of connected monitors +// +void _glfwPollMonitorsX11(void) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + int disconnectedCount, screenCount = 0; + _GLFWmonitor** disconnected = NULL; + XineramaScreenInfo* screens = NULL; + XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, + _glfw.x11.root); + RROutput primary = XRRGetOutputPrimary(_glfw.x11.display, + _glfw.x11.root); + + if (_glfw.x11.xinerama.available) + screens = XineramaQueryScreens(_glfw.x11.display, &screenCount); + + disconnectedCount = _glfw.monitorCount; + if (disconnectedCount) + { + disconnected = _glfw_calloc(_glfw.monitorCount, sizeof(_GLFWmonitor*)); + memcpy(disconnected, + _glfw.monitors, + _glfw.monitorCount * sizeof(_GLFWmonitor*)); + } + + for (int i = 0; i < sr->noutput; i++) + { + int j, type, widthMM, heightMM; + + XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, sr->outputs[i]); + if (oi->connection != RR_Connected || oi->crtc == None) + { + XRRFreeOutputInfo(oi); + continue; + } + + for (j = 0; j < disconnectedCount; j++) + { + if (disconnected[j] && + disconnected[j]->x11.output == sr->outputs[i]) + { + disconnected[j] = NULL; + break; + } + } + + if (j < disconnectedCount) + { + XRRFreeOutputInfo(oi); + continue; + } + + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc); + if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) + { + widthMM = oi->mm_height; + heightMM = oi->mm_width; + } + else + { + widthMM = oi->mm_width; + heightMM = oi->mm_height; + } + + if (widthMM <= 0 || heightMM <= 0) + { + // HACK: If RandR does not provide a physical size, assume the + // X11 default 96 DPI and calculate from the CRTC viewport + // NOTE: These members are affected by rotation, unlike the mode + // info and output info members + widthMM = (int) (ci->width * 25.4f / 96.f); + heightMM = (int) (ci->height * 25.4f / 96.f); + } + + _GLFWmonitor* monitor = _glfwAllocMonitor(oi->name, widthMM, heightMM); + monitor->x11.output = sr->outputs[i]; + monitor->x11.crtc = oi->crtc; + + for (j = 0; j < screenCount; j++) + { + if (screens[j].x_org == ci->x && + screens[j].y_org == ci->y && + screens[j].width == ci->width && + screens[j].height == ci->height) + { + monitor->x11.index = j; + break; + } + } + + if (monitor->x11.output == primary) + type = _GLFW_INSERT_FIRST; + else + type = _GLFW_INSERT_LAST; + + _glfwInputMonitor(monitor, GLFW_CONNECTED, type); + + XRRFreeOutputInfo(oi); + XRRFreeCrtcInfo(ci); + } + + XRRFreeScreenResources(sr); + + if (screens) + XFree(screens); + + for (int i = 0; i < disconnectedCount; i++) + { + if (disconnected[i]) + _glfwInputMonitor(disconnected[i], GLFW_DISCONNECTED, 0); + } + + _glfw_free(disconnected); + } + else + { + const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen); + const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen); + + _glfwInputMonitor(_glfwAllocMonitor("Display", widthMM, heightMM), + GLFW_CONNECTED, + _GLFW_INSERT_FIRST); + } +} + +// Set the current video mode for the specified monitor +// +void _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + GLFWvidmode current; + RRMode native = None; + + const GLFWvidmode* best = _glfwChooseVideoMode(monitor, desired); + _glfwGetVideoModeX11(monitor, ¤t); + if (_glfwCompareVideoModes(¤t, best) == 0) + return; + + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); + + for (int i = 0; i < oi->nmode; i++) + { + const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); + if (!modeIsGood(mi)) + continue; + + const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); + if (_glfwCompareVideoModes(best, &mode) == 0) + { + native = mi->id; + break; + } + } + + if (native) + { + if (monitor->x11.oldMode == None) + monitor->x11.oldMode = ci->mode; + + XRRSetCrtcConfig(_glfw.x11.display, + sr, monitor->x11.crtc, + CurrentTime, + ci->x, ci->y, + native, + ci->rotation, + ci->outputs, + ci->noutput); + } + + XRRFreeOutputInfo(oi); + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + } +} + +// Restore the saved (original) video mode for the specified monitor +// +void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + if (monitor->x11.oldMode == None) + return; + + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + XRRSetCrtcConfig(_glfw.x11.display, + sr, monitor->x11.crtc, + CurrentTime, + ci->x, ci->y, + monitor->x11.oldMode, + ci->rotation, + ci->outputs, + ci->noutput); + + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + + monitor->x11.oldMode = None; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +void _glfwFreeMonitorX11(_GLFWmonitor* monitor) +{ +} + +void _glfwGetMonitorPosX11(_GLFWmonitor* monitor, int* xpos, int* ypos) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + if (ci) + { + if (xpos) + *xpos = ci->x; + if (ypos) + *ypos = ci->y; + + XRRFreeCrtcInfo(ci); + } + + XRRFreeScreenResources(sr); + } +} + +void _glfwGetMonitorContentScaleX11(_GLFWmonitor* monitor, + float* xscale, float* yscale) +{ + if (xscale) + *xscale = _glfw.x11.contentScaleX; + if (yscale) + *yscale = _glfw.x11.contentScaleY; +} + +void _glfwGetMonitorWorkareaX11(_GLFWmonitor* monitor, + int* xpos, int* ypos, + int* width, int* height) +{ + int areaX = 0, areaY = 0, areaWidth = 0, areaHeight = 0; + + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + areaX = ci->x; + areaY = ci->y; + + const XRRModeInfo* mi = getModeInfo(sr, ci->mode); + + if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) + { + areaWidth = mi->height; + areaHeight = mi->width; + } + else + { + areaWidth = mi->width; + areaHeight = mi->height; + } + + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + } + else + { + areaWidth = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); + areaHeight = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); + } + + if (_glfw.x11.NET_WORKAREA && _glfw.x11.NET_CURRENT_DESKTOP) + { + Atom* extents = NULL; + Atom* desktop = NULL; + const unsigned long extentCount = + _glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_WORKAREA, + XA_CARDINAL, + (unsigned char**) &extents); + + if (_glfwGetWindowPropertyX11(_glfw.x11.root, + _glfw.x11.NET_CURRENT_DESKTOP, + XA_CARDINAL, + (unsigned char**) &desktop) > 0) + { + if (extentCount >= 4 && *desktop < extentCount / 4) + { + const int globalX = extents[*desktop * 4 + 0]; + const int globalY = extents[*desktop * 4 + 1]; + const int globalWidth = extents[*desktop * 4 + 2]; + const int globalHeight = extents[*desktop * 4 + 3]; + + if (areaX < globalX) + { + areaWidth -= globalX - areaX; + areaX = globalX; + } + + if (areaY < globalY) + { + areaHeight -= globalY - areaY; + areaY = globalY; + } + + if (areaX + areaWidth > globalX + globalWidth) + areaWidth = globalX - areaX + globalWidth; + if (areaY + areaHeight > globalY + globalHeight) + areaHeight = globalY - areaY + globalHeight; + } + } + + if (extents) + XFree(extents); + if (desktop) + XFree(desktop); + } + + if (xpos) + *xpos = areaX; + if (ypos) + *ypos = areaY; + if (width) + *width = areaWidth; + if (height) + *height = areaHeight; +} + +GLFWvidmode* _glfwGetVideoModesX11(_GLFWmonitor* monitor, int* count) +{ + GLFWvidmode* result; + + *count = 0; + + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output); + + result = _glfw_calloc(oi->nmode, sizeof(GLFWvidmode)); + + for (int i = 0; i < oi->nmode; i++) + { + const XRRModeInfo* mi = getModeInfo(sr, oi->modes[i]); + if (!modeIsGood(mi)) + continue; + + const GLFWvidmode mode = vidmodeFromModeInfo(mi, ci); + int j; + + for (j = 0; j < *count; j++) + { + if (_glfwCompareVideoModes(result + j, &mode) == 0) + break; + } + + // Skip duplicate modes + if (j < *count) + continue; + + (*count)++; + result[*count - 1] = mode; + } + + XRRFreeOutputInfo(oi); + XRRFreeCrtcInfo(ci); + XRRFreeScreenResources(sr); + } + else + { + *count = 1; + result = _glfw_calloc(1, sizeof(GLFWvidmode)); + _glfwGetVideoModeX11(monitor, result); + } + + return result; +} + +void _glfwGetVideoModeX11(_GLFWmonitor* monitor, GLFWvidmode* mode) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) + { + XRRScreenResources* sr = + XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); + XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc); + + if (ci) + { + const XRRModeInfo* mi = getModeInfo(sr, ci->mode); + if (mi) // mi can be NULL if the monitor has been disconnected + *mode = vidmodeFromModeInfo(mi, ci); + + XRRFreeCrtcInfo(ci); + } + + XRRFreeScreenResources(sr); + } + else + { + mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen); + mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen); + mode->refreshRate = 0; + + _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen), + &mode->redBits, &mode->greenBits, &mode->blueBits); + } +} + +GLFWbool _glfwGetGammaRampX11(_GLFWmonitor* monitor, GLFWgammaramp* ramp) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) + { + const size_t size = XRRGetCrtcGammaSize(_glfw.x11.display, + monitor->x11.crtc); + XRRCrtcGamma* gamma = XRRGetCrtcGamma(_glfw.x11.display, + monitor->x11.crtc); + + _glfwAllocGammaArrays(ramp, size); + + memcpy(ramp->red, gamma->red, size * sizeof(unsigned short)); + memcpy(ramp->green, gamma->green, size * sizeof(unsigned short)); + memcpy(ramp->blue, gamma->blue, size * sizeof(unsigned short)); + + XRRFreeGamma(gamma); + return GLFW_TRUE; + } + else if (_glfw.x11.vidmode.available) + { + int size; + XF86VidModeGetGammaRampSize(_glfw.x11.display, _glfw.x11.screen, &size); + + _glfwAllocGammaArrays(ramp, size); + + XF86VidModeGetGammaRamp(_glfw.x11.display, + _glfw.x11.screen, + ramp->size, ramp->red, ramp->green, ramp->blue); + return GLFW_TRUE; + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Gamma ramp access not supported by server"); + return GLFW_FALSE; + } +} + +void _glfwSetGammaRampX11(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) +{ + if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) + { + if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Gamma ramp size must match current ramp size"); + return; + } + + XRRCrtcGamma* gamma = XRRAllocGamma(ramp->size); + + memcpy(gamma->red, ramp->red, ramp->size * sizeof(unsigned short)); + memcpy(gamma->green, ramp->green, ramp->size * sizeof(unsigned short)); + memcpy(gamma->blue, ramp->blue, ramp->size * sizeof(unsigned short)); + + XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma); + XRRFreeGamma(gamma); + } + else if (_glfw.x11.vidmode.available) + { + XF86VidModeSetGammaRamp(_glfw.x11.display, + _glfw.x11.screen, + ramp->size, + (unsigned short*) ramp->red, + (unsigned short*) ramp->green, + (unsigned short*) ramp->blue); + } + else + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Gamma ramp access not supported by server"); + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(None); + return monitor->x11.crtc; +} + +GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* handle) +{ + _GLFWmonitor* monitor = (_GLFWmonitor*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(None); + return monitor->x11.output; +} + diff --git a/thirdparty/imgui_suite/glfw/src/x11_platform.h b/thirdparty/imgui_suite/glfw/src/x11_platform.h new file mode 100644 index 00000000000..cdea395746b --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/x11_platform.h @@ -0,0 +1,1004 @@ +//======================================================================== +// GLFW 3.4 X11 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#include +#include +#include + +#include +#include +#include +#include +#include + +// The XRandR extension provides mode setting and gamma control +#include + +// The Xkb extension provides improved keyboard support +#include + +// The Xinerama extension provides legacy monitor indices +#include + +// The XInput extension provides raw mouse motion input +#include + +// The Shape extension provides custom window shapes +#include + +#define GLX_VENDOR 1 +#define GLX_RGBA_BIT 0x00000001 +#define GLX_WINDOW_BIT 0x00000001 +#define GLX_DRAWABLE_TYPE 0x8010 +#define GLX_RENDER_TYPE 0x8011 +#define GLX_RGBA_TYPE 0x8014 +#define GLX_DOUBLEBUFFER 5 +#define GLX_STEREO 6 +#define GLX_AUX_BUFFERS 7 +#define GLX_RED_SIZE 8 +#define GLX_GREEN_SIZE 9 +#define GLX_BLUE_SIZE 10 +#define GLX_ALPHA_SIZE 11 +#define GLX_DEPTH_SIZE 12 +#define GLX_STENCIL_SIZE 13 +#define GLX_ACCUM_RED_SIZE 14 +#define GLX_ACCUM_GREEN_SIZE 15 +#define GLX_ACCUM_BLUE_SIZE 16 +#define GLX_ACCUM_ALPHA_SIZE 17 +#define GLX_SAMPLES 0x186a1 +#define GLX_VISUAL_ID 0x800b + +#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20b2 +#define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001 +#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 +#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 +#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 +#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 +#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 +#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 +#define GLX_CONTEXT_FLAGS_ARB 0x2094 +#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 +#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 +#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 +#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 +#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 +#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 +#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 +#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 +#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31b3 + +typedef XID GLXWindow; +typedef XID GLXDrawable; +typedef struct __GLXFBConfig* GLXFBConfig; +typedef struct __GLXcontext* GLXContext; +typedef void (*__GLXextproc)(void); + +typedef XClassHint* (* PFN_XAllocClassHint)(void); +typedef XSizeHints* (* PFN_XAllocSizeHints)(void); +typedef XWMHints* (* PFN_XAllocWMHints)(void); +typedef int (* PFN_XChangeProperty)(Display*,Window,Atom,Atom,int,int,const unsigned char*,int); +typedef int (* PFN_XChangeWindowAttributes)(Display*,Window,unsigned long,XSetWindowAttributes*); +typedef Bool (* PFN_XCheckIfEvent)(Display*,XEvent*,Bool(*)(Display*,XEvent*,XPointer),XPointer); +typedef Bool (* PFN_XCheckTypedWindowEvent)(Display*,Window,int,XEvent*); +typedef int (* PFN_XCloseDisplay)(Display*); +typedef Status (* PFN_XCloseIM)(XIM); +typedef int (* PFN_XConvertSelection)(Display*,Atom,Atom,Atom,Window,Time); +typedef Colormap (* PFN_XCreateColormap)(Display*,Window,Visual*,int); +typedef Cursor (* PFN_XCreateFontCursor)(Display*,unsigned int); +typedef XIC (* PFN_XCreateIC)(XIM,...); +typedef Region (* PFN_XCreateRegion)(void); +typedef Window (* PFN_XCreateWindow)(Display*,Window,int,int,unsigned int,unsigned int,unsigned int,int,unsigned int,Visual*,unsigned long,XSetWindowAttributes*); +typedef int (* PFN_XDefineCursor)(Display*,Window,Cursor); +typedef int (* PFN_XDeleteContext)(Display*,XID,XContext); +typedef int (* PFN_XDeleteProperty)(Display*,Window,Atom); +typedef void (* PFN_XDestroyIC)(XIC); +typedef int (* PFN_XDestroyRegion)(Region); +typedef int (* PFN_XDestroyWindow)(Display*,Window); +typedef int (* PFN_XDisplayKeycodes)(Display*,int*,int*); +typedef int (* PFN_XEventsQueued)(Display*,int); +typedef Bool (* PFN_XFilterEvent)(XEvent*,Window); +typedef int (* PFN_XFindContext)(Display*,XID,XContext,XPointer*); +typedef int (* PFN_XFlush)(Display*); +typedef int (* PFN_XFree)(void*); +typedef int (* PFN_XFreeColormap)(Display*,Colormap); +typedef int (* PFN_XFreeCursor)(Display*,Cursor); +typedef void (* PFN_XFreeEventData)(Display*,XGenericEventCookie*); +typedef int (* PFN_XGetErrorText)(Display*,int,char*,int); +typedef Bool (* PFN_XGetEventData)(Display*,XGenericEventCookie*); +typedef char* (* PFN_XGetICValues)(XIC,...); +typedef char* (* PFN_XGetIMValues)(XIM,...); +typedef int (* PFN_XGetInputFocus)(Display*,Window*,int*); +typedef KeySym* (* PFN_XGetKeyboardMapping)(Display*,KeyCode,int,int*); +typedef int (* PFN_XGetScreenSaver)(Display*,int*,int*,int*,int*); +typedef Window (* PFN_XGetSelectionOwner)(Display*,Atom); +typedef XVisualInfo* (* PFN_XGetVisualInfo)(Display*,long,XVisualInfo*,int*); +typedef Status (* PFN_XGetWMNormalHints)(Display*,Window,XSizeHints*,long*); +typedef Status (* PFN_XGetWindowAttributes)(Display*,Window,XWindowAttributes*); +typedef int (* PFN_XGetWindowProperty)(Display*,Window,Atom,long,long,Bool,Atom,Atom*,int*,unsigned long*,unsigned long*,unsigned char**); +typedef int (* PFN_XGrabPointer)(Display*,Window,Bool,unsigned int,int,int,Window,Cursor,Time); +typedef Status (* PFN_XIconifyWindow)(Display*,Window,int); +typedef Status (* PFN_XInitThreads)(void); +typedef Atom (* PFN_XInternAtom)(Display*,const char*,Bool); +typedef int (* PFN_XLookupString)(XKeyEvent*,char*,int,KeySym*,XComposeStatus*); +typedef int (* PFN_XMapRaised)(Display*,Window); +typedef int (* PFN_XMapWindow)(Display*,Window); +typedef int (* PFN_XMoveResizeWindow)(Display*,Window,int,int,unsigned int,unsigned int); +typedef int (* PFN_XMoveWindow)(Display*,Window,int,int); +typedef int (* PFN_XNextEvent)(Display*,XEvent*); +typedef Display* (* PFN_XOpenDisplay)(const char*); +typedef XIM (* PFN_XOpenIM)(Display*,XrmDatabase*,char*,char*); +typedef int (* PFN_XPeekEvent)(Display*,XEvent*); +typedef int (* PFN_XPending)(Display*); +typedef Bool (* PFN_XQueryExtension)(Display*,const char*,int*,int*,int*); +typedef Bool (* PFN_XQueryPointer)(Display*,Window,Window*,Window*,int*,int*,int*,int*,unsigned int*); +typedef int (* PFN_XRaiseWindow)(Display*,Window); +typedef Bool (* PFN_XRegisterIMInstantiateCallback)(Display*,void*,char*,char*,XIDProc,XPointer); +typedef int (* PFN_XResizeWindow)(Display*,Window,unsigned int,unsigned int); +typedef char* (* PFN_XResourceManagerString)(Display*); +typedef int (* PFN_XSaveContext)(Display*,XID,XContext,const char*); +typedef int (* PFN_XSelectInput)(Display*,Window,long); +typedef Status (* PFN_XSendEvent)(Display*,Window,Bool,long,XEvent*); +typedef int (* PFN_XSetClassHint)(Display*,Window,XClassHint*); +typedef XErrorHandler (* PFN_XSetErrorHandler)(XErrorHandler); +typedef void (* PFN_XSetICFocus)(XIC); +typedef char* (* PFN_XSetIMValues)(XIM,...); +typedef int (* PFN_XSetInputFocus)(Display*,Window,int,Time); +typedef char* (* PFN_XSetLocaleModifiers)(const char*); +typedef int (* PFN_XSetScreenSaver)(Display*,int,int,int,int); +typedef int (* PFN_XSetSelectionOwner)(Display*,Atom,Window,Time); +typedef int (* PFN_XSetWMHints)(Display*,Window,XWMHints*); +typedef void (* PFN_XSetWMNormalHints)(Display*,Window,XSizeHints*); +typedef Status (* PFN_XSetWMProtocols)(Display*,Window,Atom*,int); +typedef Bool (* PFN_XSupportsLocale)(void); +typedef int (* PFN_XSync)(Display*,Bool); +typedef Bool (* PFN_XTranslateCoordinates)(Display*,Window,Window,int,int,int*,int*,Window*); +typedef int (* PFN_XUndefineCursor)(Display*,Window); +typedef int (* PFN_XUngrabPointer)(Display*,Time); +typedef int (* PFN_XUnmapWindow)(Display*,Window); +typedef void (* PFN_XUnsetICFocus)(XIC); +typedef VisualID (* PFN_XVisualIDFromVisual)(Visual*); +typedef int (* PFN_XWarpPointer)(Display*,Window,Window,int,int,unsigned int,unsigned int,int,int); +typedef void (* PFN_XkbFreeKeyboard)(XkbDescPtr,unsigned int,Bool); +typedef void (* PFN_XkbFreeNames)(XkbDescPtr,unsigned int,Bool); +typedef XkbDescPtr (* PFN_XkbGetMap)(Display*,unsigned int,unsigned int); +typedef Status (* PFN_XkbGetNames)(Display*,unsigned int,XkbDescPtr); +typedef Status (* PFN_XkbGetState)(Display*,unsigned int,XkbStatePtr); +typedef KeySym (* PFN_XkbKeycodeToKeysym)(Display*,KeyCode,int,int); +typedef Bool (* PFN_XkbQueryExtension)(Display*,int*,int*,int*,int*,int*); +typedef Bool (* PFN_XkbSelectEventDetails)(Display*,unsigned int,unsigned int,unsigned long,unsigned long); +typedef Bool (* PFN_XkbSetDetectableAutoRepeat)(Display*,Bool,Bool*); +typedef void (* PFN_XrmDestroyDatabase)(XrmDatabase); +typedef Bool (* PFN_XrmGetResource)(XrmDatabase,const char*,const char*,char**,XrmValue*); +typedef XrmDatabase (* PFN_XrmGetStringDatabase)(const char*); +typedef void (* PFN_XrmInitialize)(void); +typedef XrmQuark (* PFN_XrmUniqueQuark)(void); +typedef Bool (* PFN_XUnregisterIMInstantiateCallback)(Display*,void*,char*,char*,XIDProc,XPointer); +typedef int (* PFN_Xutf8LookupString)(XIC,XKeyPressedEvent*,char*,int,KeySym*,Status*); +typedef void (* PFN_Xutf8SetWMProperties)(Display*,Window,const char*,const char*,char**,int,XSizeHints*,XWMHints*,XClassHint*); +#define XAllocClassHint _glfw.x11.xlib.AllocClassHint +#define XAllocSizeHints _glfw.x11.xlib.AllocSizeHints +#define XAllocWMHints _glfw.x11.xlib.AllocWMHints +#define XChangeProperty _glfw.x11.xlib.ChangeProperty +#define XChangeWindowAttributes _glfw.x11.xlib.ChangeWindowAttributes +#define XCheckIfEvent _glfw.x11.xlib.CheckIfEvent +#define XCheckTypedWindowEvent _glfw.x11.xlib.CheckTypedWindowEvent +#define XCloseDisplay _glfw.x11.xlib.CloseDisplay +#define XCloseIM _glfw.x11.xlib.CloseIM +#define XConvertSelection _glfw.x11.xlib.ConvertSelection +#define XCreateColormap _glfw.x11.xlib.CreateColormap +#define XCreateFontCursor _glfw.x11.xlib.CreateFontCursor +#define XCreateIC _glfw.x11.xlib.CreateIC +#define XCreateRegion _glfw.x11.xlib.CreateRegion +#define XCreateWindow _glfw.x11.xlib.CreateWindow +#define XDefineCursor _glfw.x11.xlib.DefineCursor +#define XDeleteContext _glfw.x11.xlib.DeleteContext +#define XDeleteProperty _glfw.x11.xlib.DeleteProperty +#define XDestroyIC _glfw.x11.xlib.DestroyIC +#define XDestroyRegion _glfw.x11.xlib.DestroyRegion +#define XDestroyWindow _glfw.x11.xlib.DestroyWindow +#define XDisplayKeycodes _glfw.x11.xlib.DisplayKeycodes +#define XEventsQueued _glfw.x11.xlib.EventsQueued +#define XFilterEvent _glfw.x11.xlib.FilterEvent +#define XFindContext _glfw.x11.xlib.FindContext +#define XFlush _glfw.x11.xlib.Flush +#define XFree _glfw.x11.xlib.Free +#define XFreeColormap _glfw.x11.xlib.FreeColormap +#define XFreeCursor _glfw.x11.xlib.FreeCursor +#define XFreeEventData _glfw.x11.xlib.FreeEventData +#define XGetErrorText _glfw.x11.xlib.GetErrorText +#define XGetEventData _glfw.x11.xlib.GetEventData +#define XGetICValues _glfw.x11.xlib.GetICValues +#define XGetIMValues _glfw.x11.xlib.GetIMValues +#define XGetInputFocus _glfw.x11.xlib.GetInputFocus +#define XGetKeyboardMapping _glfw.x11.xlib.GetKeyboardMapping +#define XGetScreenSaver _glfw.x11.xlib.GetScreenSaver +#define XGetSelectionOwner _glfw.x11.xlib.GetSelectionOwner +#define XGetVisualInfo _glfw.x11.xlib.GetVisualInfo +#define XGetWMNormalHints _glfw.x11.xlib.GetWMNormalHints +#define XGetWindowAttributes _glfw.x11.xlib.GetWindowAttributes +#define XGetWindowProperty _glfw.x11.xlib.GetWindowProperty +#define XGrabPointer _glfw.x11.xlib.GrabPointer +#define XIconifyWindow _glfw.x11.xlib.IconifyWindow +#define XInternAtom _glfw.x11.xlib.InternAtom +#define XLookupString _glfw.x11.xlib.LookupString +#define XMapRaised _glfw.x11.xlib.MapRaised +#define XMapWindow _glfw.x11.xlib.MapWindow +#define XMoveResizeWindow _glfw.x11.xlib.MoveResizeWindow +#define XMoveWindow _glfw.x11.xlib.MoveWindow +#define XNextEvent _glfw.x11.xlib.NextEvent +#define XOpenIM _glfw.x11.xlib.OpenIM +#define XPeekEvent _glfw.x11.xlib.PeekEvent +#define XPending _glfw.x11.xlib.Pending +#define XQueryExtension _glfw.x11.xlib.QueryExtension +#define XQueryPointer _glfw.x11.xlib.QueryPointer +#define XRaiseWindow _glfw.x11.xlib.RaiseWindow +#define XRegisterIMInstantiateCallback _glfw.x11.xlib.RegisterIMInstantiateCallback +#define XResizeWindow _glfw.x11.xlib.ResizeWindow +#define XResourceManagerString _glfw.x11.xlib.ResourceManagerString +#define XSaveContext _glfw.x11.xlib.SaveContext +#define XSelectInput _glfw.x11.xlib.SelectInput +#define XSendEvent _glfw.x11.xlib.SendEvent +#define XSetClassHint _glfw.x11.xlib.SetClassHint +#define XSetErrorHandler _glfw.x11.xlib.SetErrorHandler +#define XSetICFocus _glfw.x11.xlib.SetICFocus +#define XSetIMValues _glfw.x11.xlib.SetIMValues +#define XSetInputFocus _glfw.x11.xlib.SetInputFocus +#define XSetLocaleModifiers _glfw.x11.xlib.SetLocaleModifiers +#define XSetScreenSaver _glfw.x11.xlib.SetScreenSaver +#define XSetSelectionOwner _glfw.x11.xlib.SetSelectionOwner +#define XSetWMHints _glfw.x11.xlib.SetWMHints +#define XSetWMNormalHints _glfw.x11.xlib.SetWMNormalHints +#define XSetWMProtocols _glfw.x11.xlib.SetWMProtocols +#define XSupportsLocale _glfw.x11.xlib.SupportsLocale +#define XSync _glfw.x11.xlib.Sync +#define XTranslateCoordinates _glfw.x11.xlib.TranslateCoordinates +#define XUndefineCursor _glfw.x11.xlib.UndefineCursor +#define XUngrabPointer _glfw.x11.xlib.UngrabPointer +#define XUnmapWindow _glfw.x11.xlib.UnmapWindow +#define XUnsetICFocus _glfw.x11.xlib.UnsetICFocus +#define XVisualIDFromVisual _glfw.x11.xlib.VisualIDFromVisual +#define XWarpPointer _glfw.x11.xlib.WarpPointer +#define XkbFreeKeyboard _glfw.x11.xkb.FreeKeyboard +#define XkbFreeNames _glfw.x11.xkb.FreeNames +#define XkbGetMap _glfw.x11.xkb.GetMap +#define XkbGetNames _glfw.x11.xkb.GetNames +#define XkbGetState _glfw.x11.xkb.GetState +#define XkbKeycodeToKeysym _glfw.x11.xkb.KeycodeToKeysym +#define XkbQueryExtension _glfw.x11.xkb.QueryExtension +#define XkbSelectEventDetails _glfw.x11.xkb.SelectEventDetails +#define XkbSetDetectableAutoRepeat _glfw.x11.xkb.SetDetectableAutoRepeat +#define XrmDestroyDatabase _glfw.x11.xrm.DestroyDatabase +#define XrmGetResource _glfw.x11.xrm.GetResource +#define XrmGetStringDatabase _glfw.x11.xrm.GetStringDatabase +#define XrmUniqueQuark _glfw.x11.xrm.UniqueQuark +#define XUnregisterIMInstantiateCallback _glfw.x11.xlib.UnregisterIMInstantiateCallback +#define Xutf8LookupString _glfw.x11.xlib.utf8LookupString +#define Xutf8SetWMProperties _glfw.x11.xlib.utf8SetWMProperties + +typedef XRRCrtcGamma* (* PFN_XRRAllocGamma)(int); +typedef void (* PFN_XRRFreeCrtcInfo)(XRRCrtcInfo*); +typedef void (* PFN_XRRFreeGamma)(XRRCrtcGamma*); +typedef void (* PFN_XRRFreeOutputInfo)(XRROutputInfo*); +typedef void (* PFN_XRRFreeScreenResources)(XRRScreenResources*); +typedef XRRCrtcGamma* (* PFN_XRRGetCrtcGamma)(Display*,RRCrtc); +typedef int (* PFN_XRRGetCrtcGammaSize)(Display*,RRCrtc); +typedef XRRCrtcInfo* (* PFN_XRRGetCrtcInfo) (Display*,XRRScreenResources*,RRCrtc); +typedef XRROutputInfo* (* PFN_XRRGetOutputInfo)(Display*,XRRScreenResources*,RROutput); +typedef RROutput (* PFN_XRRGetOutputPrimary)(Display*,Window); +typedef XRRScreenResources* (* PFN_XRRGetScreenResourcesCurrent)(Display*,Window); +typedef Bool (* PFN_XRRQueryExtension)(Display*,int*,int*); +typedef Status (* PFN_XRRQueryVersion)(Display*,int*,int*); +typedef void (* PFN_XRRSelectInput)(Display*,Window,int); +typedef Status (* PFN_XRRSetCrtcConfig)(Display*,XRRScreenResources*,RRCrtc,Time,int,int,RRMode,Rotation,RROutput*,int); +typedef void (* PFN_XRRSetCrtcGamma)(Display*,RRCrtc,XRRCrtcGamma*); +typedef int (* PFN_XRRUpdateConfiguration)(XEvent*); +#define XRRAllocGamma _glfw.x11.randr.AllocGamma +#define XRRFreeCrtcInfo _glfw.x11.randr.FreeCrtcInfo +#define XRRFreeGamma _glfw.x11.randr.FreeGamma +#define XRRFreeOutputInfo _glfw.x11.randr.FreeOutputInfo +#define XRRFreeScreenResources _glfw.x11.randr.FreeScreenResources +#define XRRGetCrtcGamma _glfw.x11.randr.GetCrtcGamma +#define XRRGetCrtcGammaSize _glfw.x11.randr.GetCrtcGammaSize +#define XRRGetCrtcInfo _glfw.x11.randr.GetCrtcInfo +#define XRRGetOutputInfo _glfw.x11.randr.GetOutputInfo +#define XRRGetOutputPrimary _glfw.x11.randr.GetOutputPrimary +#define XRRGetScreenResourcesCurrent _glfw.x11.randr.GetScreenResourcesCurrent +#define XRRQueryExtension _glfw.x11.randr.QueryExtension +#define XRRQueryVersion _glfw.x11.randr.QueryVersion +#define XRRSelectInput _glfw.x11.randr.SelectInput +#define XRRSetCrtcConfig _glfw.x11.randr.SetCrtcConfig +#define XRRSetCrtcGamma _glfw.x11.randr.SetCrtcGamma +#define XRRUpdateConfiguration _glfw.x11.randr.UpdateConfiguration + +typedef XcursorImage* (* PFN_XcursorImageCreate)(int,int); +typedef void (* PFN_XcursorImageDestroy)(XcursorImage*); +typedef Cursor (* PFN_XcursorImageLoadCursor)(Display*,const XcursorImage*); +typedef char* (* PFN_XcursorGetTheme)(Display*); +typedef int (* PFN_XcursorGetDefaultSize)(Display*); +typedef XcursorImage* (* PFN_XcursorLibraryLoadImage)(const char*,const char*,int); +#define XcursorImageCreate _glfw.x11.xcursor.ImageCreate +#define XcursorImageDestroy _glfw.x11.xcursor.ImageDestroy +#define XcursorImageLoadCursor _glfw.x11.xcursor.ImageLoadCursor +#define XcursorGetTheme _glfw.x11.xcursor.GetTheme +#define XcursorGetDefaultSize _glfw.x11.xcursor.GetDefaultSize +#define XcursorLibraryLoadImage _glfw.x11.xcursor.LibraryLoadImage + +typedef Bool (* PFN_XineramaIsActive)(Display*); +typedef Bool (* PFN_XineramaQueryExtension)(Display*,int*,int*); +typedef XineramaScreenInfo* (* PFN_XineramaQueryScreens)(Display*,int*); +#define XineramaIsActive _glfw.x11.xinerama.IsActive +#define XineramaQueryExtension _glfw.x11.xinerama.QueryExtension +#define XineramaQueryScreens _glfw.x11.xinerama.QueryScreens + +typedef XID xcb_window_t; +typedef XID xcb_visualid_t; +typedef struct xcb_connection_t xcb_connection_t; +typedef xcb_connection_t* (* PFN_XGetXCBConnection)(Display*); +#define XGetXCBConnection _glfw.x11.x11xcb.GetXCBConnection + +typedef Bool (* PFN_XF86VidModeQueryExtension)(Display*,int*,int*); +typedef Bool (* PFN_XF86VidModeGetGammaRamp)(Display*,int,int,unsigned short*,unsigned short*,unsigned short*); +typedef Bool (* PFN_XF86VidModeSetGammaRamp)(Display*,int,int,unsigned short*,unsigned short*,unsigned short*); +typedef Bool (* PFN_XF86VidModeGetGammaRampSize)(Display*,int,int*); +#define XF86VidModeQueryExtension _glfw.x11.vidmode.QueryExtension +#define XF86VidModeGetGammaRamp _glfw.x11.vidmode.GetGammaRamp +#define XF86VidModeSetGammaRamp _glfw.x11.vidmode.SetGammaRamp +#define XF86VidModeGetGammaRampSize _glfw.x11.vidmode.GetGammaRampSize + +typedef Status (* PFN_XIQueryVersion)(Display*,int*,int*); +typedef int (* PFN_XISelectEvents)(Display*,Window,XIEventMask*,int); +#define XIQueryVersion _glfw.x11.xi.QueryVersion +#define XISelectEvents _glfw.x11.xi.SelectEvents + +typedef Bool (* PFN_XRenderQueryExtension)(Display*,int*,int*); +typedef Status (* PFN_XRenderQueryVersion)(Display*dpy,int*,int*); +typedef XRenderPictFormat* (* PFN_XRenderFindVisualFormat)(Display*,Visual const*); +#define XRenderQueryExtension _glfw.x11.xrender.QueryExtension +#define XRenderQueryVersion _glfw.x11.xrender.QueryVersion +#define XRenderFindVisualFormat _glfw.x11.xrender.FindVisualFormat + +typedef Bool (* PFN_XShapeQueryExtension)(Display*,int*,int*); +typedef Status (* PFN_XShapeQueryVersion)(Display*dpy,int*,int*); +typedef void (* PFN_XShapeCombineRegion)(Display*,Window,int,int,int,Region,int); +typedef void (* PFN_XShapeCombineMask)(Display*,Window,int,int,int,Pixmap,int); + +#define XShapeQueryExtension _glfw.x11.xshape.QueryExtension +#define XShapeQueryVersion _glfw.x11.xshape.QueryVersion +#define XShapeCombineRegion _glfw.x11.xshape.ShapeCombineRegion +#define XShapeCombineMask _glfw.x11.xshape.ShapeCombineMask + +typedef int (*PFNGLXGETFBCONFIGATTRIBPROC)(Display*,GLXFBConfig,int,int*); +typedef const char* (*PFNGLXGETCLIENTSTRINGPROC)(Display*,int); +typedef Bool (*PFNGLXQUERYEXTENSIONPROC)(Display*,int*,int*); +typedef Bool (*PFNGLXQUERYVERSIONPROC)(Display*,int*,int*); +typedef void (*PFNGLXDESTROYCONTEXTPROC)(Display*,GLXContext); +typedef Bool (*PFNGLXMAKECURRENTPROC)(Display*,GLXDrawable,GLXContext); +typedef void (*PFNGLXSWAPBUFFERSPROC)(Display*,GLXDrawable); +typedef const char* (*PFNGLXQUERYEXTENSIONSSTRINGPROC)(Display*,int); +typedef GLXFBConfig* (*PFNGLXGETFBCONFIGSPROC)(Display*,int,int*); +typedef GLXContext (*PFNGLXCREATENEWCONTEXTPROC)(Display*,GLXFBConfig,int,GLXContext,Bool); +typedef __GLXextproc (* PFNGLXGETPROCADDRESSPROC)(const GLubyte *procName); +typedef void (*PFNGLXSWAPINTERVALEXTPROC)(Display*,GLXDrawable,int); +typedef XVisualInfo* (*PFNGLXGETVISUALFROMFBCONFIGPROC)(Display*,GLXFBConfig); +typedef GLXWindow (*PFNGLXCREATEWINDOWPROC)(Display*,GLXFBConfig,Window,const int*); +typedef void (*PFNGLXDESTROYWINDOWPROC)(Display*,GLXWindow); + +typedef int (*PFNGLXSWAPINTERVALMESAPROC)(int); +typedef int (*PFNGLXSWAPINTERVALSGIPROC)(int); +typedef GLXContext (*PFNGLXCREATECONTEXTATTRIBSARBPROC)(Display*,GLXFBConfig,GLXContext,Bool,const int*); + +// libGL.so function pointer typedefs +#define glXGetFBConfigs _glfw.glx.GetFBConfigs +#define glXGetFBConfigAttrib _glfw.glx.GetFBConfigAttrib +#define glXGetClientString _glfw.glx.GetClientString +#define glXQueryExtension _glfw.glx.QueryExtension +#define glXQueryVersion _glfw.glx.QueryVersion +#define glXDestroyContext _glfw.glx.DestroyContext +#define glXMakeCurrent _glfw.glx.MakeCurrent +#define glXSwapBuffers _glfw.glx.SwapBuffers +#define glXQueryExtensionsString _glfw.glx.QueryExtensionsString +#define glXCreateNewContext _glfw.glx.CreateNewContext +#define glXGetVisualFromFBConfig _glfw.glx.GetVisualFromFBConfig +#define glXCreateWindow _glfw.glx.CreateWindow +#define glXDestroyWindow _glfw.glx.DestroyWindow + +typedef VkFlags VkXlibSurfaceCreateFlagsKHR; +typedef VkFlags VkXcbSurfaceCreateFlagsKHR; + +typedef struct VkXlibSurfaceCreateInfoKHR +{ + VkStructureType sType; + const void* pNext; + VkXlibSurfaceCreateFlagsKHR flags; + Display* dpy; + Window window; +} VkXlibSurfaceCreateInfoKHR; + +typedef struct VkXcbSurfaceCreateInfoKHR +{ + VkStructureType sType; + const void* pNext; + VkXcbSurfaceCreateFlagsKHR flags; + xcb_connection_t* connection; + xcb_window_t window; +} VkXcbSurfaceCreateInfoKHR; + +typedef VkResult (APIENTRY *PFN_vkCreateXlibSurfaceKHR)(VkInstance,const VkXlibSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice,uint32_t,Display*,VisualID); +typedef VkResult (APIENTRY *PFN_vkCreateXcbSurfaceKHR)(VkInstance,const VkXcbSurfaceCreateInfoKHR*,const VkAllocationCallbacks*,VkSurfaceKHR*); +typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice,uint32_t,xcb_connection_t*,xcb_visualid_t); + +#include "xkb_unicode.h" +#include "posix_poll.h" + +#define GLFW_X11_WINDOW_STATE _GLFWwindowX11 x11; +#define GLFW_X11_LIBRARY_WINDOW_STATE _GLFWlibraryX11 x11; +#define GLFW_X11_MONITOR_STATE _GLFWmonitorX11 x11; +#define GLFW_X11_CURSOR_STATE _GLFWcursorX11 x11; + +#define GLFW_GLX_CONTEXT_STATE _GLFWcontextGLX glx; +#define GLFW_GLX_LIBRARY_CONTEXT_STATE _GLFWlibraryGLX glx; + + +// GLX-specific per-context data +// +typedef struct _GLFWcontextGLX +{ + GLXContext handle; + GLXWindow window; +} _GLFWcontextGLX; + +// GLX-specific global data +// +typedef struct _GLFWlibraryGLX +{ + int major, minor; + int eventBase; + int errorBase; + + void* handle; + + // GLX 1.3 functions + PFNGLXGETFBCONFIGSPROC GetFBConfigs; + PFNGLXGETFBCONFIGATTRIBPROC GetFBConfigAttrib; + PFNGLXGETCLIENTSTRINGPROC GetClientString; + PFNGLXQUERYEXTENSIONPROC QueryExtension; + PFNGLXQUERYVERSIONPROC QueryVersion; + PFNGLXDESTROYCONTEXTPROC DestroyContext; + PFNGLXMAKECURRENTPROC MakeCurrent; + PFNGLXSWAPBUFFERSPROC SwapBuffers; + PFNGLXQUERYEXTENSIONSSTRINGPROC QueryExtensionsString; + PFNGLXCREATENEWCONTEXTPROC CreateNewContext; + PFNGLXGETVISUALFROMFBCONFIGPROC GetVisualFromFBConfig; + PFNGLXCREATEWINDOWPROC CreateWindow; + PFNGLXDESTROYWINDOWPROC DestroyWindow; + + // GLX 1.4 and extension functions + PFNGLXGETPROCADDRESSPROC GetProcAddress; + PFNGLXGETPROCADDRESSPROC GetProcAddressARB; + PFNGLXSWAPINTERVALSGIPROC SwapIntervalSGI; + PFNGLXSWAPINTERVALEXTPROC SwapIntervalEXT; + PFNGLXSWAPINTERVALMESAPROC SwapIntervalMESA; + PFNGLXCREATECONTEXTATTRIBSARBPROC CreateContextAttribsARB; + GLFWbool SGI_swap_control; + GLFWbool EXT_swap_control; + GLFWbool MESA_swap_control; + GLFWbool ARB_multisample; + GLFWbool ARB_framebuffer_sRGB; + GLFWbool EXT_framebuffer_sRGB; + GLFWbool ARB_create_context; + GLFWbool ARB_create_context_profile; + GLFWbool ARB_create_context_robustness; + GLFWbool EXT_create_context_es2_profile; + GLFWbool ARB_create_context_no_error; + GLFWbool ARB_context_flush_control; +} _GLFWlibraryGLX; + +// X11-specific per-window data +// +typedef struct _GLFWwindowX11 +{ + Colormap colormap; + Window handle; + Window parent; + XIC ic; + + GLFWbool overrideRedirect; + GLFWbool iconified; + GLFWbool maximized; + + // Whether the visual supports framebuffer transparency + GLFWbool transparent; + + // Cached position and size used to filter out duplicate events + int width, height; + int xpos, ypos; + + // The last received cursor position, regardless of source + int lastCursorPosX, lastCursorPosY; + // The last position the cursor was warped to by GLFW + int warpCursorPosX, warpCursorPosY; + + // The time of the last KeyPress event per keycode, for discarding + // duplicate key events generated for some keys by ibus + Time keyPressTimes[256]; +} _GLFWwindowX11; + +// X11-specific global data +// +typedef struct _GLFWlibraryX11 +{ + Display* display; + int screen; + Window root; + + // System content scale + float contentScaleX, contentScaleY; + // Helper window for IPC + Window helperWindowHandle; + // Invisible cursor for hidden cursor mode + Cursor hiddenCursorHandle; + // Context for mapping window XIDs to _GLFWwindow pointers + XContext context; + // XIM input method + XIM im; + // The previous X error handler, to be restored later + XErrorHandler errorHandler; + // Most recent error code received by X error handler + int errorCode; + // Primary selection string (while the primary selection is owned) + char* primarySelectionString; + // Clipboard string (while the selection is owned) + char* clipboardString; + // Key name string + char keynames[GLFW_KEY_LAST + 1][5]; + // X11 keycode to GLFW key LUT + short int keycodes[256]; + // GLFW key to X11 keycode LUT + short int scancodes[GLFW_KEY_LAST + 1]; + // Where to place the cursor when re-enabled + double restoreCursorPosX, restoreCursorPosY; + // The window whose disabled cursor mode is active + _GLFWwindow* disabledCursorWindow; + int emptyEventPipe[2]; + + // Window manager atoms + Atom NET_SUPPORTED; + Atom NET_SUPPORTING_WM_CHECK; + Atom WM_PROTOCOLS; + Atom WM_STATE; + Atom WM_DELETE_WINDOW; + Atom NET_WM_NAME; + Atom NET_WM_ICON_NAME; + Atom NET_WM_ICON; + Atom NET_WM_PID; + Atom NET_WM_PING; + Atom NET_WM_WINDOW_TYPE; + Atom NET_WM_WINDOW_TYPE_NORMAL; + Atom NET_WM_STATE; + Atom NET_WM_STATE_ABOVE; + Atom NET_WM_STATE_FULLSCREEN; + Atom NET_WM_STATE_MAXIMIZED_VERT; + Atom NET_WM_STATE_MAXIMIZED_HORZ; + Atom NET_WM_STATE_DEMANDS_ATTENTION; + Atom NET_WM_BYPASS_COMPOSITOR; + Atom NET_WM_FULLSCREEN_MONITORS; + Atom NET_WM_WINDOW_OPACITY; + Atom NET_WM_CM_Sx; + Atom NET_WORKAREA; + Atom NET_CURRENT_DESKTOP; + Atom NET_ACTIVE_WINDOW; + Atom NET_FRAME_EXTENTS; + Atom NET_REQUEST_FRAME_EXTENTS; + Atom MOTIF_WM_HINTS; + + // Xdnd (drag and drop) atoms + Atom XdndAware; + Atom XdndEnter; + Atom XdndPosition; + Atom XdndStatus; + Atom XdndActionCopy; + Atom XdndDrop; + Atom XdndFinished; + Atom XdndSelection; + Atom XdndTypeList; + Atom text_uri_list; + + // Selection (clipboard) atoms + Atom TARGETS; + Atom MULTIPLE; + Atom INCR; + Atom CLIPBOARD; + Atom PRIMARY; + Atom CLIPBOARD_MANAGER; + Atom SAVE_TARGETS; + Atom NULL_; + Atom UTF8_STRING; + Atom COMPOUND_STRING; + Atom ATOM_PAIR; + Atom GLFW_SELECTION; + + struct { + void* handle; + GLFWbool utf8; + PFN_XAllocClassHint AllocClassHint; + PFN_XAllocSizeHints AllocSizeHints; + PFN_XAllocWMHints AllocWMHints; + PFN_XChangeProperty ChangeProperty; + PFN_XChangeWindowAttributes ChangeWindowAttributes; + PFN_XCheckIfEvent CheckIfEvent; + PFN_XCheckTypedWindowEvent CheckTypedWindowEvent; + PFN_XCloseDisplay CloseDisplay; + PFN_XCloseIM CloseIM; + PFN_XConvertSelection ConvertSelection; + PFN_XCreateColormap CreateColormap; + PFN_XCreateFontCursor CreateFontCursor; + PFN_XCreateIC CreateIC; + PFN_XCreateRegion CreateRegion; + PFN_XCreateWindow CreateWindow; + PFN_XDefineCursor DefineCursor; + PFN_XDeleteContext DeleteContext; + PFN_XDeleteProperty DeleteProperty; + PFN_XDestroyIC DestroyIC; + PFN_XDestroyRegion DestroyRegion; + PFN_XDestroyWindow DestroyWindow; + PFN_XDisplayKeycodes DisplayKeycodes; + PFN_XEventsQueued EventsQueued; + PFN_XFilterEvent FilterEvent; + PFN_XFindContext FindContext; + PFN_XFlush Flush; + PFN_XFree Free; + PFN_XFreeColormap FreeColormap; + PFN_XFreeCursor FreeCursor; + PFN_XFreeEventData FreeEventData; + PFN_XGetErrorText GetErrorText; + PFN_XGetEventData GetEventData; + PFN_XGetICValues GetICValues; + PFN_XGetIMValues GetIMValues; + PFN_XGetInputFocus GetInputFocus; + PFN_XGetKeyboardMapping GetKeyboardMapping; + PFN_XGetScreenSaver GetScreenSaver; + PFN_XGetSelectionOwner GetSelectionOwner; + PFN_XGetVisualInfo GetVisualInfo; + PFN_XGetWMNormalHints GetWMNormalHints; + PFN_XGetWindowAttributes GetWindowAttributes; + PFN_XGetWindowProperty GetWindowProperty; + PFN_XGrabPointer GrabPointer; + PFN_XIconifyWindow IconifyWindow; + PFN_XInternAtom InternAtom; + PFN_XLookupString LookupString; + PFN_XMapRaised MapRaised; + PFN_XMapWindow MapWindow; + PFN_XMoveResizeWindow MoveResizeWindow; + PFN_XMoveWindow MoveWindow; + PFN_XNextEvent NextEvent; + PFN_XOpenIM OpenIM; + PFN_XPeekEvent PeekEvent; + PFN_XPending Pending; + PFN_XQueryExtension QueryExtension; + PFN_XQueryPointer QueryPointer; + PFN_XRaiseWindow RaiseWindow; + PFN_XRegisterIMInstantiateCallback RegisterIMInstantiateCallback; + PFN_XResizeWindow ResizeWindow; + PFN_XResourceManagerString ResourceManagerString; + PFN_XSaveContext SaveContext; + PFN_XSelectInput SelectInput; + PFN_XSendEvent SendEvent; + PFN_XSetClassHint SetClassHint; + PFN_XSetErrorHandler SetErrorHandler; + PFN_XSetICFocus SetICFocus; + PFN_XSetIMValues SetIMValues; + PFN_XSetInputFocus SetInputFocus; + PFN_XSetLocaleModifiers SetLocaleModifiers; + PFN_XSetScreenSaver SetScreenSaver; + PFN_XSetSelectionOwner SetSelectionOwner; + PFN_XSetWMHints SetWMHints; + PFN_XSetWMNormalHints SetWMNormalHints; + PFN_XSetWMProtocols SetWMProtocols; + PFN_XSupportsLocale SupportsLocale; + PFN_XSync Sync; + PFN_XTranslateCoordinates TranslateCoordinates; + PFN_XUndefineCursor UndefineCursor; + PFN_XUngrabPointer UngrabPointer; + PFN_XUnmapWindow UnmapWindow; + PFN_XUnsetICFocus UnsetICFocus; + PFN_XVisualIDFromVisual VisualIDFromVisual; + PFN_XWarpPointer WarpPointer; + PFN_XUnregisterIMInstantiateCallback UnregisterIMInstantiateCallback; + PFN_Xutf8LookupString utf8LookupString; + PFN_Xutf8SetWMProperties utf8SetWMProperties; + } xlib; + + struct { + PFN_XrmDestroyDatabase DestroyDatabase; + PFN_XrmGetResource GetResource; + PFN_XrmGetStringDatabase GetStringDatabase; + PFN_XrmUniqueQuark UniqueQuark; + } xrm; + + struct { + GLFWbool available; + void* handle; + int eventBase; + int errorBase; + int major; + int minor; + GLFWbool gammaBroken; + GLFWbool monitorBroken; + PFN_XRRAllocGamma AllocGamma; + PFN_XRRFreeCrtcInfo FreeCrtcInfo; + PFN_XRRFreeGamma FreeGamma; + PFN_XRRFreeOutputInfo FreeOutputInfo; + PFN_XRRFreeScreenResources FreeScreenResources; + PFN_XRRGetCrtcGamma GetCrtcGamma; + PFN_XRRGetCrtcGammaSize GetCrtcGammaSize; + PFN_XRRGetCrtcInfo GetCrtcInfo; + PFN_XRRGetOutputInfo GetOutputInfo; + PFN_XRRGetOutputPrimary GetOutputPrimary; + PFN_XRRGetScreenResourcesCurrent GetScreenResourcesCurrent; + PFN_XRRQueryExtension QueryExtension; + PFN_XRRQueryVersion QueryVersion; + PFN_XRRSelectInput SelectInput; + PFN_XRRSetCrtcConfig SetCrtcConfig; + PFN_XRRSetCrtcGamma SetCrtcGamma; + PFN_XRRUpdateConfiguration UpdateConfiguration; + } randr; + + struct { + GLFWbool available; + GLFWbool detectable; + int majorOpcode; + int eventBase; + int errorBase; + int major; + int minor; + unsigned int group; + PFN_XkbFreeKeyboard FreeKeyboard; + PFN_XkbFreeNames FreeNames; + PFN_XkbGetMap GetMap; + PFN_XkbGetNames GetNames; + PFN_XkbGetState GetState; + PFN_XkbKeycodeToKeysym KeycodeToKeysym; + PFN_XkbQueryExtension QueryExtension; + PFN_XkbSelectEventDetails SelectEventDetails; + PFN_XkbSetDetectableAutoRepeat SetDetectableAutoRepeat; + } xkb; + + struct { + int count; + int timeout; + int interval; + int blanking; + int exposure; + } saver; + + struct { + int version; + Window source; + Atom format; + } xdnd; + + struct { + void* handle; + PFN_XcursorImageCreate ImageCreate; + PFN_XcursorImageDestroy ImageDestroy; + PFN_XcursorImageLoadCursor ImageLoadCursor; + PFN_XcursorGetTheme GetTheme; + PFN_XcursorGetDefaultSize GetDefaultSize; + PFN_XcursorLibraryLoadImage LibraryLoadImage; + } xcursor; + + struct { + GLFWbool available; + void* handle; + int major; + int minor; + PFN_XineramaIsActive IsActive; + PFN_XineramaQueryExtension QueryExtension; + PFN_XineramaQueryScreens QueryScreens; + } xinerama; + + struct { + void* handle; + PFN_XGetXCBConnection GetXCBConnection; + } x11xcb; + + struct { + GLFWbool available; + void* handle; + int eventBase; + int errorBase; + PFN_XF86VidModeQueryExtension QueryExtension; + PFN_XF86VidModeGetGammaRamp GetGammaRamp; + PFN_XF86VidModeSetGammaRamp SetGammaRamp; + PFN_XF86VidModeGetGammaRampSize GetGammaRampSize; + } vidmode; + + struct { + GLFWbool available; + void* handle; + int majorOpcode; + int eventBase; + int errorBase; + int major; + int minor; + PFN_XIQueryVersion QueryVersion; + PFN_XISelectEvents SelectEvents; + } xi; + + struct { + GLFWbool available; + void* handle; + int major; + int minor; + int eventBase; + int errorBase; + PFN_XRenderQueryExtension QueryExtension; + PFN_XRenderQueryVersion QueryVersion; + PFN_XRenderFindVisualFormat FindVisualFormat; + } xrender; + + struct { + GLFWbool available; + void* handle; + int major; + int minor; + int eventBase; + int errorBase; + PFN_XShapeQueryExtension QueryExtension; + PFN_XShapeCombineRegion ShapeCombineRegion; + PFN_XShapeQueryVersion QueryVersion; + PFN_XShapeCombineMask ShapeCombineMask; + } xshape; +} _GLFWlibraryX11; + +// X11-specific per-monitor data +// +typedef struct _GLFWmonitorX11 +{ + RROutput output; + RRCrtc crtc; + RRMode oldMode; + + // Index of corresponding Xinerama screen, + // for EWMH full screen window placement + int index; +} _GLFWmonitorX11; + +// X11-specific per-cursor data +// +typedef struct _GLFWcursorX11 +{ + Cursor handle; +} _GLFWcursorX11; + + +GLFWbool _glfwConnectX11(int platformID, _GLFWplatform* platform); +int _glfwInitX11(void); +void _glfwTerminateX11(void); + +GLFWbool _glfwCreateWindowX11(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig); +void _glfwDestroyWindowX11(_GLFWwindow* window); +void _glfwSetWindowTitleX11(_GLFWwindow* window, const char* title); +void _glfwSetWindowIconX11(_GLFWwindow* window, int count, const GLFWimage* images); +void _glfwGetWindowPosX11(_GLFWwindow* window, int* xpos, int* ypos); +void _glfwSetWindowPosX11(_GLFWwindow* window, int xpos, int ypos); +void _glfwGetWindowSizeX11(_GLFWwindow* window, int* width, int* height); +void _glfwSetWindowSizeX11(_GLFWwindow* window, int width, int height); +void _glfwSetWindowSizeLimitsX11(_GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); +void _glfwSetWindowAspectRatioX11(_GLFWwindow* window, int numer, int denom); +void _glfwGetFramebufferSizeX11(_GLFWwindow* window, int* width, int* height); +void _glfwGetWindowFrameSizeX11(_GLFWwindow* window, int* left, int* top, int* right, int* bottom); +void _glfwGetWindowContentScaleX11(_GLFWwindow* window, float* xscale, float* yscale); +void _glfwIconifyWindowX11(_GLFWwindow* window); +void _glfwRestoreWindowX11(_GLFWwindow* window); +void _glfwMaximizeWindowX11(_GLFWwindow* window); +void _glfwShowWindowX11(_GLFWwindow* window); +void _glfwHideWindowX11(_GLFWwindow* window); +void _glfwRequestWindowAttentionX11(_GLFWwindow* window); +void _glfwFocusWindowX11(_GLFWwindow* window); +void _glfwSetWindowMonitorX11(_GLFWwindow* window, _GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); +GLFWbool _glfwWindowFocusedX11(_GLFWwindow* window); +GLFWbool _glfwWindowIconifiedX11(_GLFWwindow* window); +GLFWbool _glfwWindowVisibleX11(_GLFWwindow* window); +GLFWbool _glfwWindowMaximizedX11(_GLFWwindow* window); +GLFWbool _glfwWindowHoveredX11(_GLFWwindow* window); +GLFWbool _glfwFramebufferTransparentX11(_GLFWwindow* window); +void _glfwSetWindowResizableX11(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowDecoratedX11(_GLFWwindow* window, GLFWbool enabled); +void _glfwSetWindowFloatingX11(_GLFWwindow* window, GLFWbool enabled); +float _glfwGetWindowOpacityX11(_GLFWwindow* window); +void _glfwSetWindowOpacityX11(_GLFWwindow* window, float opacity); +void _glfwSetWindowMousePassthroughX11(_GLFWwindow* window, GLFWbool enabled); + +void _glfwSetRawMouseMotionX11(_GLFWwindow *window, GLFWbool enabled); +GLFWbool _glfwRawMouseMotionSupportedX11(void); + +void _glfwPollEventsX11(void); +void _glfwWaitEventsX11(void); +void _glfwWaitEventsTimeoutX11(double timeout); +void _glfwPostEmptyEventX11(void); + +void _glfwGetCursorPosX11(_GLFWwindow* window, double* xpos, double* ypos); +void _glfwSetCursorPosX11(_GLFWwindow* window, double xpos, double ypos); +void _glfwSetCursorModeX11(_GLFWwindow* window, int mode); +const char* _glfwGetScancodeNameX11(int scancode); +int _glfwGetKeyScancodeX11(int key); +GLFWbool _glfwCreateCursorX11(_GLFWcursor* cursor, const GLFWimage* image, int xhot, int yhot); +GLFWbool _glfwCreateStandardCursorX11(_GLFWcursor* cursor, int shape); +void _glfwDestroyCursorX11(_GLFWcursor* cursor); +void _glfwSetCursorX11(_GLFWwindow* window, _GLFWcursor* cursor); +void _glfwSetClipboardStringX11(const char* string); +const char* _glfwGetClipboardStringX11(void); + +EGLenum _glfwGetEGLPlatformX11(EGLint** attribs); +EGLNativeDisplayType _glfwGetEGLNativeDisplayX11(void); +EGLNativeWindowType _glfwGetEGLNativeWindowX11(_GLFWwindow* window); + +void _glfwGetRequiredInstanceExtensionsX11(char** extensions); +GLFWbool _glfwGetPhysicalDevicePresentationSupportX11(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); +VkResult _glfwCreateWindowSurfaceX11(VkInstance instance, _GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); + +void _glfwFreeMonitorX11(_GLFWmonitor* monitor); +void _glfwGetMonitorPosX11(_GLFWmonitor* monitor, int* xpos, int* ypos); +void _glfwGetMonitorContentScaleX11(_GLFWmonitor* monitor, float* xscale, float* yscale); +void _glfwGetMonitorWorkareaX11(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); +GLFWvidmode* _glfwGetVideoModesX11(_GLFWmonitor* monitor, int* count); +void _glfwGetVideoModeX11(_GLFWmonitor* monitor, GLFWvidmode* mode); +GLFWbool _glfwGetGammaRampX11(_GLFWmonitor* monitor, GLFWgammaramp* ramp); +void _glfwSetGammaRampX11(_GLFWmonitor* monitor, const GLFWgammaramp* ramp); + +void _glfwPollMonitorsX11(void); +void _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired); +void _glfwRestoreVideoModeX11(_GLFWmonitor* monitor); + +Cursor _glfwCreateNativeCursorX11(const GLFWimage* image, int xhot, int yhot); + +unsigned long _glfwGetWindowPropertyX11(Window window, + Atom property, + Atom type, + unsigned char** value); +GLFWbool _glfwIsVisualTransparentX11(Visual* visual); + +void _glfwGrabErrorHandlerX11(void); +void _glfwReleaseErrorHandlerX11(void); +void _glfwInputErrorX11(int error, const char* message); + +void _glfwPushSelectionToManagerX11(void); +void _glfwCreateInputContextX11(_GLFWwindow* window); + +GLFWbool _glfwInitGLX(void); +void _glfwTerminateGLX(void); +GLFWbool _glfwCreateContextGLX(_GLFWwindow* window, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig); +void _glfwDestroyContextGLX(_GLFWwindow* window); +GLFWbool _glfwChooseVisualGLX(const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig, + Visual** visual, int* depth); + diff --git a/thirdparty/imgui_suite/glfw/src/x11_window.c b/thirdparty/imgui_suite/glfw/src/x11_window.c new file mode 100644 index 00000000000..89c30d3b6a4 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/x11_window.c @@ -0,0 +1,3354 @@ +//======================================================================== +// GLFW 3.4 X11 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2019 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + +#include +#include + +#include + +#include +#include +#include +#include +#include +#include + +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#pragma GCC diagnostic ignored "-Wsign-compare" + +// Action for EWMH client messages +#define _NET_WM_STATE_REMOVE 0 +#define _NET_WM_STATE_ADD 1 +#define _NET_WM_STATE_TOGGLE 2 + +// Additional mouse button names for XButtonEvent +#define Button6 6 +#define Button7 7 + +// Motif WM hints flags +#define MWM_HINTS_DECORATIONS 2 +#define MWM_DECOR_ALL 1 + +#define _GLFW_XDND_VERSION 5 + +// Wait for event data to arrive on the X11 display socket +// This avoids blocking other threads via the per-display Xlib lock that also +// covers GLX functions +// +static GLFWbool waitForX11Event(double* timeout) +{ + struct pollfd fd = { ConnectionNumber(_glfw.x11.display), POLLIN }; + + while (!XPending(_glfw.x11.display)) + { + if (!_glfwPollPOSIX(&fd, 1, timeout)) + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +// Wait for event data to arrive on any event file descriptor +// This avoids blocking other threads via the per-display Xlib lock that also +// covers GLX functions +// +static GLFWbool waitForAnyEvent(double* timeout) +{ + nfds_t count = 2; + struct pollfd fds[3] = + { + { ConnectionNumber(_glfw.x11.display), POLLIN }, + { _glfw.x11.emptyEventPipe[0], POLLIN } + }; + +#if defined(__linux__) + if (_glfw.joysticksInitialized) + fds[count++] = (struct pollfd) { _glfw.linjs.inotify, POLLIN }; +#endif + + while (!XPending(_glfw.x11.display)) + { + if (!_glfwPollPOSIX(fds, count, timeout)) + return GLFW_FALSE; + + for (int i = 1; i < count; i++) + { + if (fds[i].revents & POLLIN) + return GLFW_TRUE; + } + } + + return GLFW_TRUE; +} + +// Writes a byte to the empty event pipe +// +static void writeEmptyEvent(void) +{ + for (;;) + { + const char byte = 0; + const ssize_t result = write(_glfw.x11.emptyEventPipe[1], &byte, 1); + if (result == 1 || (result == -1 && errno != EINTR)) + break; + } +} + +// Drains available data from the empty event pipe +// +static void drainEmptyEvents(void) +{ + for (;;) + { + char dummy[64]; + const ssize_t result = read(_glfw.x11.emptyEventPipe[0], dummy, sizeof(dummy)); + if (result == -1 && errno != EINTR) + break; + } +} + +// Waits until a VisibilityNotify event arrives for the specified window or the +// timeout period elapses (ICCCM section 4.2.2) +// +static GLFWbool waitForVisibilityNotify(_GLFWwindow* window) +{ + XEvent dummy; + double timeout = 0.1; + + while (!XCheckTypedWindowEvent(_glfw.x11.display, + window->x11.handle, + VisibilityNotify, + &dummy)) + { + if (!waitForX11Event(&timeout)) + return GLFW_FALSE; + } + + return GLFW_TRUE; +} + +// Returns whether the window is iconified +// +static int getWindowState(_GLFWwindow* window) +{ + int result = WithdrawnState; + struct { + CARD32 state; + Window icon; + } *state = NULL; + + if (_glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.WM_STATE, + _glfw.x11.WM_STATE, + (unsigned char**) &state) >= 2) + { + result = state->state; + } + + if (state) + XFree(state); + + return result; +} + +// Returns whether the event is a selection event +// +static Bool isSelectionEvent(Display* display, XEvent* event, XPointer pointer) +{ + if (event->xany.window != _glfw.x11.helperWindowHandle) + return False; + + return event->type == SelectionRequest || + event->type == SelectionNotify || + event->type == SelectionClear; +} + +// Returns whether it is a _NET_FRAME_EXTENTS event for the specified window +// +static Bool isFrameExtentsEvent(Display* display, XEvent* event, XPointer pointer) +{ + _GLFWwindow* window = (_GLFWwindow*) pointer; + return event->type == PropertyNotify && + event->xproperty.state == PropertyNewValue && + event->xproperty.window == window->x11.handle && + event->xproperty.atom == _glfw.x11.NET_FRAME_EXTENTS; +} + +// Returns whether it is a property event for the specified selection transfer +// +static Bool isSelPropNewValueNotify(Display* display, XEvent* event, XPointer pointer) +{ + XEvent* notification = (XEvent*) pointer; + return event->type == PropertyNotify && + event->xproperty.state == PropertyNewValue && + event->xproperty.window == notification->xselection.requestor && + event->xproperty.atom == notification->xselection.property; +} + +// Translates an X event modifier state mask +// +static int translateState(int state) +{ + int mods = 0; + + if (state & ShiftMask) + mods |= GLFW_MOD_SHIFT; + if (state & ControlMask) + mods |= GLFW_MOD_CONTROL; + if (state & Mod1Mask) + mods |= GLFW_MOD_ALT; + if (state & Mod4Mask) + mods |= GLFW_MOD_SUPER; + if (state & LockMask) + mods |= GLFW_MOD_CAPS_LOCK; + if (state & Mod2Mask) + mods |= GLFW_MOD_NUM_LOCK; + + return mods; +} + +// Translates an X11 key code to a GLFW key token +// +static int translateKey(int scancode) +{ + // Use the pre-filled LUT (see createKeyTables() in x11_init.c) + if (scancode < 0 || scancode > 255) + return GLFW_KEY_UNKNOWN; + + return _glfw.x11.keycodes[scancode]; +} + +// Sends an EWMH or ICCCM event to the window manager +// +static void sendEventToWM(_GLFWwindow* window, Atom type, + long a, long b, long c, long d, long e) +{ + XEvent event = { ClientMessage }; + event.xclient.window = window->x11.handle; + event.xclient.format = 32; // Data is 32-bit longs + event.xclient.message_type = type; + event.xclient.data.l[0] = a; + event.xclient.data.l[1] = b; + event.xclient.data.l[2] = c; + event.xclient.data.l[3] = d; + event.xclient.data.l[4] = e; + + XSendEvent(_glfw.x11.display, _glfw.x11.root, + False, + SubstructureNotifyMask | SubstructureRedirectMask, + &event); +} + +// Updates the normal hints according to the window settings +// +static void updateNormalHints(_GLFWwindow* window, int width, int height) +{ + XSizeHints* hints = XAllocSizeHints(); + + long supplied; + XGetWMNormalHints(_glfw.x11.display, window->x11.handle, hints, &supplied); + + hints->flags &= ~(PMinSize | PMaxSize | PAspect); + + if (!window->monitor) + { + if (window->resizable) + { + if (window->minwidth != GLFW_DONT_CARE && + window->minheight != GLFW_DONT_CARE) + { + hints->flags |= PMinSize; + hints->min_width = window->minwidth; + hints->min_height = window->minheight; + } + + if (window->maxwidth != GLFW_DONT_CARE && + window->maxheight != GLFW_DONT_CARE) + { + hints->flags |= PMaxSize; + hints->max_width = window->maxwidth; + hints->max_height = window->maxheight; + } + + if (window->numer != GLFW_DONT_CARE && + window->denom != GLFW_DONT_CARE) + { + hints->flags |= PAspect; + hints->min_aspect.x = hints->max_aspect.x = window->numer; + hints->min_aspect.y = hints->max_aspect.y = window->denom; + } + } + else + { + hints->flags |= (PMinSize | PMaxSize); + hints->min_width = hints->max_width = width; + hints->min_height = hints->max_height = height; + } + } + + XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); + XFree(hints); +} + +// Updates the full screen status of the window +// +static void updateWindowMode(_GLFWwindow* window) +{ + if (window->monitor) + { + if (_glfw.x11.xinerama.available && + _glfw.x11.NET_WM_FULLSCREEN_MONITORS) + { + sendEventToWM(window, + _glfw.x11.NET_WM_FULLSCREEN_MONITORS, + window->monitor->x11.index, + window->monitor->x11.index, + window->monitor->x11.index, + window->monitor->x11.index, + 0); + } + + if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN) + { + sendEventToWM(window, + _glfw.x11.NET_WM_STATE, + _NET_WM_STATE_ADD, + _glfw.x11.NET_WM_STATE_FULLSCREEN, + 0, 1, 0); + } + else + { + // This is the butcher's way of removing window decorations + // Setting the override-redirect attribute on a window makes the + // window manager ignore the window completely (ICCCM, section 4) + // The good thing is that this makes undecorated full screen windows + // easy to do; the bad thing is that we have to do everything + // manually and some things (like iconify/restore) won't work at + // all, as those are tasks usually performed by the window manager + + XSetWindowAttributes attributes; + attributes.override_redirect = True; + XChangeWindowAttributes(_glfw.x11.display, + window->x11.handle, + CWOverrideRedirect, + &attributes); + + window->x11.overrideRedirect = GLFW_TRUE; + } + + // Enable compositor bypass + if (!window->x11.transparent) + { + const unsigned long value = 1; + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32, + PropModeReplace, (unsigned char*) &value, 1); + } + } + else + { + if (_glfw.x11.xinerama.available && + _glfw.x11.NET_WM_FULLSCREEN_MONITORS) + { + XDeleteProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_FULLSCREEN_MONITORS); + } + + if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN) + { + sendEventToWM(window, + _glfw.x11.NET_WM_STATE, + _NET_WM_STATE_REMOVE, + _glfw.x11.NET_WM_STATE_FULLSCREEN, + 0, 1, 0); + } + else + { + XSetWindowAttributes attributes; + attributes.override_redirect = False; + XChangeWindowAttributes(_glfw.x11.display, + window->x11.handle, + CWOverrideRedirect, + &attributes); + + window->x11.overrideRedirect = GLFW_FALSE; + } + + // Disable compositor bypass + if (!window->x11.transparent) + { + XDeleteProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_BYPASS_COMPOSITOR); + } + } +} + +// Decode a Unicode code point from a UTF-8 stream +// Based on cutef8 by Jeff Bezanson (Public Domain) +// +static uint32_t decodeUTF8(const char** s) +{ + uint32_t codepoint = 0, count = 0; + static const uint32_t offsets[] = + { + 0x00000000u, 0x00003080u, 0x000e2080u, + 0x03c82080u, 0xfa082080u, 0x82082080u + }; + + do + { + codepoint = (codepoint << 6) + (unsigned char) **s; + (*s)++; + count++; + } while ((**s & 0xc0) == 0x80); + + assert(count <= 6); + return codepoint - offsets[count - 1]; +} + +// Convert the specified Latin-1 string to UTF-8 +// +static char* convertLatin1toUTF8(const char* source) +{ + size_t size = 1; + const char* sp; + + for (sp = source; *sp; sp++) + size += (*sp & 0x80) ? 2 : 1; + + char* target = _glfw_calloc(size, 1); + char* tp = target; + + for (sp = source; *sp; sp++) + tp += _glfwEncodeUTF8(tp, *sp); + + return target; +} + +// Updates the cursor image according to its cursor mode +// +static void updateCursorImage(_GLFWwindow* window) +{ + if (window->cursorMode == GLFW_CURSOR_NORMAL || + window->cursorMode == GLFW_CURSOR_CAPTURED) + { + if (window->cursor) + { + XDefineCursor(_glfw.x11.display, window->x11.handle, + window->cursor->x11.handle); + } + else + XUndefineCursor(_glfw.x11.display, window->x11.handle); + } + else + { + XDefineCursor(_glfw.x11.display, window->x11.handle, + _glfw.x11.hiddenCursorHandle); + } +} + +// Grabs the cursor and confines it to the window +// +static void captureCursor(_GLFWwindow* window) +{ + XGrabPointer(_glfw.x11.display, window->x11.handle, True, + ButtonPressMask | ButtonReleaseMask | PointerMotionMask, + GrabModeAsync, GrabModeAsync, + window->x11.handle, + None, + CurrentTime); +} + +// Ungrabs the cursor +// +static void releaseCursor(void) +{ + XUngrabPointer(_glfw.x11.display, CurrentTime); +} + +// Enable XI2 raw mouse motion events +// +static void enableRawMouseMotion(_GLFWwindow* window) +{ + XIEventMask em; + unsigned char mask[XIMaskLen(XI_RawMotion)] = { 0 }; + + em.deviceid = XIAllMasterDevices; + em.mask_len = sizeof(mask); + em.mask = mask; + XISetMask(mask, XI_RawMotion); + + XISelectEvents(_glfw.x11.display, _glfw.x11.root, &em, 1); +} + +// Disable XI2 raw mouse motion events +// +static void disableRawMouseMotion(_GLFWwindow* window) +{ + XIEventMask em; + unsigned char mask[] = { 0 }; + + em.deviceid = XIAllMasterDevices; + em.mask_len = sizeof(mask); + em.mask = mask; + + XISelectEvents(_glfw.x11.display, _glfw.x11.root, &em, 1); +} + +// Apply disabled cursor mode to a focused window +// +static void disableCursor(_GLFWwindow* window) +{ + if (window->rawMouseMotion) + enableRawMouseMotion(window); + + _glfw.x11.disabledCursorWindow = window; + _glfwGetCursorPosX11(window, + &_glfw.x11.restoreCursorPosX, + &_glfw.x11.restoreCursorPosY); + updateCursorImage(window); + _glfwCenterCursorInContentArea(window); + captureCursor(window); +} + +// Exit disabled cursor mode for the specified window +// +static void enableCursor(_GLFWwindow* window) +{ + if (window->rawMouseMotion) + disableRawMouseMotion(window); + + _glfw.x11.disabledCursorWindow = NULL; + releaseCursor(); + _glfwSetCursorPosX11(window, + _glfw.x11.restoreCursorPosX, + _glfw.x11.restoreCursorPosY); + updateCursorImage(window); +} + +// Clear its handle when the input context has been destroyed +// +static void inputContextDestroyCallback(XIC ic, XPointer clientData, XPointer callData) +{ + _GLFWwindow* window = (_GLFWwindow*) clientData; + window->x11.ic = NULL; +} + +// Create the X11 window (and its colormap) +// +static GLFWbool createNativeWindow(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + Visual* visual, int depth) +{ + int width = wndconfig->width; + int height = wndconfig->height; + + if (wndconfig->scaleToMonitor) + { + width *= _glfw.x11.contentScaleX; + height *= _glfw.x11.contentScaleY; + } + + int xpos = 0, ypos = 0; + + if (wndconfig->xpos != GLFW_ANY_POSITION && wndconfig->ypos != GLFW_ANY_POSITION) + { + xpos = wndconfig->xpos; + ypos = wndconfig->ypos; + } + + // Create a colormap based on the visual used by the current context + window->x11.colormap = XCreateColormap(_glfw.x11.display, + _glfw.x11.root, + visual, + AllocNone); + + window->x11.transparent = _glfwIsVisualTransparentX11(visual); + + XSetWindowAttributes wa = { 0 }; + wa.colormap = window->x11.colormap; + wa.event_mask = StructureNotifyMask | KeyPressMask | KeyReleaseMask | + PointerMotionMask | ButtonPressMask | ButtonReleaseMask | + ExposureMask | FocusChangeMask | VisibilityChangeMask | + EnterWindowMask | LeaveWindowMask | PropertyChangeMask; + + _glfwGrabErrorHandlerX11(); + + window->x11.parent = _glfw.x11.root; + window->x11.handle = XCreateWindow(_glfw.x11.display, + _glfw.x11.root, + xpos, ypos, + width, height, + 0, // Border width + depth, // Color depth + InputOutput, + visual, + CWBorderPixel | CWColormap | CWEventMask, + &wa); + + _glfwReleaseErrorHandlerX11(); + + if (!window->x11.handle) + { + _glfwInputErrorX11(GLFW_PLATFORM_ERROR, + "X11: Failed to create window"); + return GLFW_FALSE; + } + + XSaveContext(_glfw.x11.display, + window->x11.handle, + _glfw.x11.context, + (XPointer) window); + + if (!wndconfig->decorated) + _glfwSetWindowDecoratedX11(window, GLFW_FALSE); + + if (_glfw.x11.NET_WM_STATE && !window->monitor) + { + Atom states[3]; + int count = 0; + + if (wndconfig->floating) + { + if (_glfw.x11.NET_WM_STATE_ABOVE) + states[count++] = _glfw.x11.NET_WM_STATE_ABOVE; + } + + if (wndconfig->maximized) + { + if (_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + { + states[count++] = _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT; + states[count++] = _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ; + window->x11.maximized = GLFW_TRUE; + } + } + + if (count) + { + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_STATE, XA_ATOM, 32, + PropModeReplace, (unsigned char*) states, count); + } + } + + // Declare the WM protocols supported by GLFW + { + Atom protocols[] = + { + _glfw.x11.WM_DELETE_WINDOW, + _glfw.x11.NET_WM_PING + }; + + XSetWMProtocols(_glfw.x11.display, window->x11.handle, + protocols, sizeof(protocols) / sizeof(Atom)); + } + + // Declare our PID + { + const long pid = getpid(); + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_PID, XA_CARDINAL, 32, + PropModeReplace, + (unsigned char*) &pid, 1); + } + + if (_glfw.x11.NET_WM_WINDOW_TYPE && _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL) + { + Atom type = _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL; + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_WINDOW_TYPE, XA_ATOM, 32, + PropModeReplace, (unsigned char*) &type, 1); + } + + // Set ICCCM WM_HINTS property + { + XWMHints* hints = XAllocWMHints(); + if (!hints) + { + _glfwInputError(GLFW_OUT_OF_MEMORY, + "X11: Failed to allocate WM hints"); + return GLFW_FALSE; + } + + hints->flags = StateHint; + hints->initial_state = NormalState; + + XSetWMHints(_glfw.x11.display, window->x11.handle, hints); + XFree(hints); + } + + // Set ICCCM WM_NORMAL_HINTS property + { + XSizeHints* hints = XAllocSizeHints(); + if (!hints) + { + _glfwInputError(GLFW_OUT_OF_MEMORY, "X11: Failed to allocate size hints"); + return GLFW_FALSE; + } + + if (!wndconfig->resizable) + { + hints->flags |= (PMinSize | PMaxSize); + hints->min_width = hints->max_width = width; + hints->min_height = hints->max_height = height; + } + + // HACK: Explicitly setting PPosition to any value causes some WMs, notably + // Compiz and Metacity, to honor the position of unmapped windows + if (wndconfig->xpos != GLFW_ANY_POSITION && wndconfig->ypos != GLFW_ANY_POSITION) + { + hints->flags |= PPosition; + hints->x = 0; + hints->y = 0; + } + + hints->flags |= PWinGravity; + hints->win_gravity = StaticGravity; + + XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); + XFree(hints); + } + + // Set ICCCM WM_CLASS property + { + XClassHint* hint = XAllocClassHint(); + + if (strlen(wndconfig->x11.instanceName) && + strlen(wndconfig->x11.className)) + { + hint->res_name = (char*) wndconfig->x11.instanceName; + hint->res_class = (char*) wndconfig->x11.className; + } + else + { + const char* resourceName = getenv("RESOURCE_NAME"); + if (resourceName && strlen(resourceName)) + hint->res_name = (char*) resourceName; + else if (strlen(wndconfig->title)) + hint->res_name = (char*) wndconfig->title; + else + hint->res_name = (char*) "glfw-application"; + + if (strlen(wndconfig->title)) + hint->res_class = (char*) wndconfig->title; + else + hint->res_class = (char*) "GLFW-Application"; + } + + XSetClassHint(_glfw.x11.display, window->x11.handle, hint); + XFree(hint); + } + + // Announce support for Xdnd (drag and drop) + { + const Atom version = _GLFW_XDND_VERSION; + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.XdndAware, XA_ATOM, 32, + PropModeReplace, (unsigned char*) &version, 1); + } + + if (_glfw.x11.im) + _glfwCreateInputContextX11(window); + + _glfwSetWindowTitleX11(window, wndconfig->title); + _glfwGetWindowPosX11(window, &window->x11.xpos, &window->x11.ypos); + _glfwGetWindowSizeX11(window, &window->x11.width, &window->x11.height); + + return GLFW_TRUE; +} + +// Set the specified property to the selection converted to the requested target +// +static Atom writeTargetToProperty(const XSelectionRequestEvent* request) +{ + char* selectionString = NULL; + const Atom formats[] = { _glfw.x11.UTF8_STRING, XA_STRING }; + const int formatCount = sizeof(formats) / sizeof(formats[0]); + + if (request->selection == _glfw.x11.PRIMARY) + selectionString = _glfw.x11.primarySelectionString; + else + selectionString = _glfw.x11.clipboardString; + + if (request->property == None) + { + // The requester is a legacy client (ICCCM section 2.2) + // We don't support legacy clients, so fail here + return None; + } + + if (request->target == _glfw.x11.TARGETS) + { + // The list of supported targets was requested + + const Atom targets[] = { _glfw.x11.TARGETS, + _glfw.x11.MULTIPLE, + _glfw.x11.UTF8_STRING, + XA_STRING }; + + XChangeProperty(_glfw.x11.display, + request->requestor, + request->property, + XA_ATOM, + 32, + PropModeReplace, + (unsigned char*) targets, + sizeof(targets) / sizeof(targets[0])); + + return request->property; + } + + if (request->target == _glfw.x11.MULTIPLE) + { + // Multiple conversions were requested + + Atom* targets; + const unsigned long count = + _glfwGetWindowPropertyX11(request->requestor, + request->property, + _glfw.x11.ATOM_PAIR, + (unsigned char**) &targets); + + for (unsigned long i = 0; i < count; i += 2) + { + int j; + + for (j = 0; j < formatCount; j++) + { + if (targets[i] == formats[j]) + break; + } + + if (j < formatCount) + { + XChangeProperty(_glfw.x11.display, + request->requestor, + targets[i + 1], + targets[i], + 8, + PropModeReplace, + (unsigned char *) selectionString, + strlen(selectionString)); + } + else + targets[i + 1] = None; + } + + XChangeProperty(_glfw.x11.display, + request->requestor, + request->property, + _glfw.x11.ATOM_PAIR, + 32, + PropModeReplace, + (unsigned char*) targets, + count); + + XFree(targets); + + return request->property; + } + + if (request->target == _glfw.x11.SAVE_TARGETS) + { + // The request is a check whether we support SAVE_TARGETS + // It should be handled as a no-op side effect target + + XChangeProperty(_glfw.x11.display, + request->requestor, + request->property, + _glfw.x11.NULL_, + 32, + PropModeReplace, + NULL, + 0); + + return request->property; + } + + // Conversion to a data target was requested + + for (int i = 0; i < formatCount; i++) + { + if (request->target == formats[i]) + { + // The requested target is one we support + + XChangeProperty(_glfw.x11.display, + request->requestor, + request->property, + request->target, + 8, + PropModeReplace, + (unsigned char *) selectionString, + strlen(selectionString)); + + return request->property; + } + } + + // The requested target is not supported + + return None; +} + +static void handleSelectionRequest(XEvent* event) +{ + const XSelectionRequestEvent* request = &event->xselectionrequest; + + XEvent reply = { SelectionNotify }; + reply.xselection.property = writeTargetToProperty(request); + reply.xselection.display = request->display; + reply.xselection.requestor = request->requestor; + reply.xselection.selection = request->selection; + reply.xselection.target = request->target; + reply.xselection.time = request->time; + + XSendEvent(_glfw.x11.display, request->requestor, False, 0, &reply); +} + +static const char* getSelectionString(Atom selection) +{ + char** selectionString = NULL; + const Atom targets[] = { _glfw.x11.UTF8_STRING, XA_STRING }; + const size_t targetCount = sizeof(targets) / sizeof(targets[0]); + + if (selection == _glfw.x11.PRIMARY) + selectionString = &_glfw.x11.primarySelectionString; + else + selectionString = &_glfw.x11.clipboardString; + + if (XGetSelectionOwner(_glfw.x11.display, selection) == + _glfw.x11.helperWindowHandle) + { + // Instead of doing a large number of X round-trips just to put this + // string into a window property and then read it back, just return it + return *selectionString; + } + + _glfw_free(*selectionString); + *selectionString = NULL; + + for (size_t i = 0; i < targetCount; i++) + { + char* data; + Atom actualType; + int actualFormat; + unsigned long itemCount, bytesAfter; + XEvent notification, dummy; + + XConvertSelection(_glfw.x11.display, + selection, + targets[i], + _glfw.x11.GLFW_SELECTION, + _glfw.x11.helperWindowHandle, + CurrentTime); + + while (!XCheckTypedWindowEvent(_glfw.x11.display, + _glfw.x11.helperWindowHandle, + SelectionNotify, + ¬ification)) + { + waitForX11Event(NULL); + } + + if (notification.xselection.property == None) + continue; + + XCheckIfEvent(_glfw.x11.display, + &dummy, + isSelPropNewValueNotify, + (XPointer) ¬ification); + + XGetWindowProperty(_glfw.x11.display, + notification.xselection.requestor, + notification.xselection.property, + 0, + LONG_MAX, + True, + AnyPropertyType, + &actualType, + &actualFormat, + &itemCount, + &bytesAfter, + (unsigned char**) &data); + + if (actualType == _glfw.x11.INCR) + { + size_t size = 1; + char* string = NULL; + + for (;;) + { + while (!XCheckIfEvent(_glfw.x11.display, + &dummy, + isSelPropNewValueNotify, + (XPointer) ¬ification)) + { + waitForX11Event(NULL); + } + + XFree(data); + XGetWindowProperty(_glfw.x11.display, + notification.xselection.requestor, + notification.xselection.property, + 0, + LONG_MAX, + True, + AnyPropertyType, + &actualType, + &actualFormat, + &itemCount, + &bytesAfter, + (unsigned char**) &data); + + if (itemCount) + { + size += itemCount; + string = _glfw_realloc(string, size); + string[size - itemCount - 1] = '\0'; + strcat(string, data); + } + + if (!itemCount) + { + if (string) + { + if (targets[i] == XA_STRING) + { + *selectionString = convertLatin1toUTF8(string); + _glfw_free(string); + } + else + *selectionString = string; + } + + break; + } + } + } + else if (actualType == targets[i]) + { + if (targets[i] == XA_STRING) + *selectionString = convertLatin1toUTF8(data); + else + *selectionString = _glfw_strdup(data); + } + + XFree(data); + + if (*selectionString) + break; + } + + if (!*selectionString) + { + _glfwInputError(GLFW_FORMAT_UNAVAILABLE, + "X11: Failed to convert selection to string"); + } + + return *selectionString; +} + +// Make the specified window and its video mode active on its monitor +// +static void acquireMonitor(_GLFWwindow* window) +{ + if (_glfw.x11.saver.count == 0) + { + // Remember old screen saver settings + XGetScreenSaver(_glfw.x11.display, + &_glfw.x11.saver.timeout, + &_glfw.x11.saver.interval, + &_glfw.x11.saver.blanking, + &_glfw.x11.saver.exposure); + + // Disable screen saver + XSetScreenSaver(_glfw.x11.display, 0, 0, DontPreferBlanking, + DefaultExposures); + } + + if (!window->monitor->window) + _glfw.x11.saver.count++; + + _glfwSetVideoModeX11(window->monitor, &window->videoMode); + + if (window->x11.overrideRedirect) + { + int xpos, ypos; + GLFWvidmode mode; + + // Manually position the window over its monitor + _glfwGetMonitorPosX11(window->monitor, &xpos, &ypos); + _glfwGetVideoModeX11(window->monitor, &mode); + + XMoveResizeWindow(_glfw.x11.display, window->x11.handle, + xpos, ypos, mode.width, mode.height); + } + + _glfwInputMonitorWindow(window->monitor, window); +} + +// Remove the window and restore the original video mode +// +static void releaseMonitor(_GLFWwindow* window) +{ + if (window->monitor->window != window) + return; + + _glfwInputMonitorWindow(window->monitor, NULL); + _glfwRestoreVideoModeX11(window->monitor); + + _glfw.x11.saver.count--; + + if (_glfw.x11.saver.count == 0) + { + // Restore old screen saver settings + XSetScreenSaver(_glfw.x11.display, + _glfw.x11.saver.timeout, + _glfw.x11.saver.interval, + _glfw.x11.saver.blanking, + _glfw.x11.saver.exposure); + } +} + +// Process the specified X event +// +static void processEvent(XEvent *event) +{ + int keycode = 0; + Bool filtered = False; + + // HACK: Save scancode as some IMs clear the field in XFilterEvent + if (event->type == KeyPress || event->type == KeyRelease) + keycode = event->xkey.keycode; + + filtered = XFilterEvent(event, None); + + if (_glfw.x11.randr.available) + { + if (event->type == _glfw.x11.randr.eventBase + RRNotify) + { + XRRUpdateConfiguration(event); + _glfwPollMonitorsX11(); + return; + } + } + + if (_glfw.x11.xkb.available) + { + if (event->type == _glfw.x11.xkb.eventBase + XkbEventCode) + { + if (((XkbEvent*) event)->any.xkb_type == XkbStateNotify && + (((XkbEvent*) event)->state.changed & XkbGroupStateMask)) + { + _glfw.x11.xkb.group = ((XkbEvent*) event)->state.group; + } + + return; + } + } + + if (event->type == GenericEvent) + { + if (_glfw.x11.xi.available) + { + _GLFWwindow* window = _glfw.x11.disabledCursorWindow; + + if (window && + window->rawMouseMotion && + event->xcookie.extension == _glfw.x11.xi.majorOpcode && + XGetEventData(_glfw.x11.display, &event->xcookie) && + event->xcookie.evtype == XI_RawMotion) + { + XIRawEvent* re = event->xcookie.data; + if (re->valuators.mask_len) + { + const double* values = re->raw_values; + double xpos = window->virtualCursorPosX; + double ypos = window->virtualCursorPosY; + + if (XIMaskIsSet(re->valuators.mask, 0)) + { + xpos += *values; + values++; + } + + if (XIMaskIsSet(re->valuators.mask, 1)) + ypos += *values; + + _glfwInputCursorPos(window, xpos, ypos); + } + } + + XFreeEventData(_glfw.x11.display, &event->xcookie); + } + + return; + } + + if (event->type == SelectionRequest) + { + handleSelectionRequest(event); + return; + } + + _GLFWwindow* window = NULL; + if (XFindContext(_glfw.x11.display, + event->xany.window, + _glfw.x11.context, + (XPointer*) &window) != 0) + { + // This is an event for a window that has already been destroyed + return; + } + + switch (event->type) + { + case ReparentNotify: + { + window->x11.parent = event->xreparent.parent; + return; + } + + case KeyPress: + { + const int key = translateKey(keycode); + const int mods = translateState(event->xkey.state); + const int plain = !(mods & (GLFW_MOD_CONTROL | GLFW_MOD_ALT)); + + if (window->x11.ic) + { + // HACK: Do not report the key press events duplicated by XIM + // Duplicate key releases are filtered out implicitly by + // the GLFW key repeat logic in _glfwInputKey + // A timestamp per key is used to handle simultaneous keys + // NOTE: Always allow the first event for each key through + // (the server never sends a timestamp of zero) + // NOTE: Timestamp difference is compared to handle wrap-around + Time diff = event->xkey.time - window->x11.keyPressTimes[keycode]; + if (diff == event->xkey.time || (diff > 0 && diff < ((Time)1 << 31))) + { + if (keycode) + _glfwInputKey(window, key, keycode, GLFW_PRESS, mods); + + window->x11.keyPressTimes[keycode] = event->xkey.time; + } + + if (!filtered) + { + int count; + Status status; + char buffer[100]; + char* chars = buffer; + + count = Xutf8LookupString(window->x11.ic, + &event->xkey, + buffer, sizeof(buffer) - 1, + NULL, &status); + + if (status == XBufferOverflow) + { + chars = _glfw_calloc(count + 1, 1); + count = Xutf8LookupString(window->x11.ic, + &event->xkey, + chars, count, + NULL, &status); + } + + if (status == XLookupChars || status == XLookupBoth) + { + const char* c = chars; + chars[count] = '\0'; + while (c - chars < count) + _glfwInputChar(window, decodeUTF8(&c), mods, plain); + } + + if (chars != buffer) + _glfw_free(chars); + } + } + else + { + KeySym keysym; + XLookupString(&event->xkey, NULL, 0, &keysym, NULL); + + _glfwInputKey(window, key, keycode, GLFW_PRESS, mods); + + const uint32_t codepoint = _glfwKeySym2Unicode(keysym); + if (codepoint != GLFW_INVALID_CODEPOINT) + _glfwInputChar(window, codepoint, mods, plain); + } + + return; + } + + case KeyRelease: + { + const int key = translateKey(keycode); + const int mods = translateState(event->xkey.state); + + if (!_glfw.x11.xkb.detectable) + { + // HACK: Key repeat events will arrive as KeyRelease/KeyPress + // pairs with similar or identical time stamps + // The key repeat logic in _glfwInputKey expects only key + // presses to repeat, so detect and discard release events + if (XEventsQueued(_glfw.x11.display, QueuedAfterReading)) + { + XEvent next; + XPeekEvent(_glfw.x11.display, &next); + + if (next.type == KeyPress && + next.xkey.window == event->xkey.window && + next.xkey.keycode == keycode) + { + // HACK: The time of repeat events sometimes doesn't + // match that of the press event, so add an + // epsilon + // Toshiyuki Takahashi can press a button + // 16 times per second so it's fairly safe to + // assume that no human is pressing the key 50 + // times per second (value is ms) + if ((next.xkey.time - event->xkey.time) < 20) + { + // This is very likely a server-generated key repeat + // event, so ignore it + return; + } + } + } + } + + _glfwInputKey(window, key, keycode, GLFW_RELEASE, mods); + return; + } + + case ButtonPress: + { + const int mods = translateState(event->xbutton.state); + + if (event->xbutton.button == Button1) + _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_LEFT, GLFW_PRESS, mods); + else if (event->xbutton.button == Button2) + _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_MIDDLE, GLFW_PRESS, mods); + else if (event->xbutton.button == Button3) + _glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_RIGHT, GLFW_PRESS, mods); + + // Modern X provides scroll events as mouse button presses + else if (event->xbutton.button == Button4) + _glfwInputScroll(window, 0.0, 1.0); + else if (event->xbutton.button == Button5) + _glfwInputScroll(window, 0.0, -1.0); + else if (event->xbutton.button == Button6) + _glfwInputScroll(window, 1.0, 0.0); + else if (event->xbutton.button == Button7) + _glfwInputScroll(window, -1.0, 0.0); + + else + { + // Additional buttons after 7 are treated as regular buttons + // We subtract 4 to fill the gap left by scroll input above + _glfwInputMouseClick(window, + event->xbutton.button - Button1 - 4, + GLFW_PRESS, + mods); + } + + return; + } + + case ButtonRelease: + { + const int mods = translateState(event->xbutton.state); + + if (event->xbutton.button == Button1) + { + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_LEFT, + GLFW_RELEASE, + mods); + } + else if (event->xbutton.button == Button2) + { + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_MIDDLE, + GLFW_RELEASE, + mods); + } + else if (event->xbutton.button == Button3) + { + _glfwInputMouseClick(window, + GLFW_MOUSE_BUTTON_RIGHT, + GLFW_RELEASE, + mods); + } + else if (event->xbutton.button > Button7) + { + // Additional buttons after 7 are treated as regular buttons + // We subtract 4 to fill the gap left by scroll input above + _glfwInputMouseClick(window, + event->xbutton.button - Button1 - 4, + GLFW_RELEASE, + mods); + } + + return; + } + + case EnterNotify: + { + // XEnterWindowEvent is XCrossingEvent + const int x = event->xcrossing.x; + const int y = event->xcrossing.y; + + // HACK: This is a workaround for WMs (KWM, Fluxbox) that otherwise + // ignore the defined cursor for hidden cursor mode + if (window->cursorMode == GLFW_CURSOR_HIDDEN) + updateCursorImage(window); + + _glfwInputCursorEnter(window, GLFW_TRUE); + _glfwInputCursorPos(window, x, y); + + window->x11.lastCursorPosX = x; + window->x11.lastCursorPosY = y; + return; + } + + case LeaveNotify: + { + _glfwInputCursorEnter(window, GLFW_FALSE); + return; + } + + case MotionNotify: + { + const int x = event->xmotion.x; + const int y = event->xmotion.y; + + if (x != window->x11.warpCursorPosX || + y != window->x11.warpCursorPosY) + { + // The cursor was moved by something other than GLFW + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + { + if (_glfw.x11.disabledCursorWindow != window) + return; + if (window->rawMouseMotion) + return; + + const int dx = x - window->x11.lastCursorPosX; + const int dy = y - window->x11.lastCursorPosY; + + _glfwInputCursorPos(window, + window->virtualCursorPosX + dx, + window->virtualCursorPosY + dy); + } + else + _glfwInputCursorPos(window, x, y); + } + + window->x11.lastCursorPosX = x; + window->x11.lastCursorPosY = y; + return; + } + + case ConfigureNotify: + { + if (event->xconfigure.width != window->x11.width || + event->xconfigure.height != window->x11.height) + { + _glfwInputFramebufferSize(window, + event->xconfigure.width, + event->xconfigure.height); + + _glfwInputWindowSize(window, + event->xconfigure.width, + event->xconfigure.height); + + window->x11.width = event->xconfigure.width; + window->x11.height = event->xconfigure.height; + } + + int xpos = event->xconfigure.x; + int ypos = event->xconfigure.y; + + // NOTE: ConfigureNotify events from the server are in local + // coordinates, so if we are reparented we need to translate + // the position into root (screen) coordinates + if (!event->xany.send_event && window->x11.parent != _glfw.x11.root) + { + _glfwGrabErrorHandlerX11(); + + Window dummy; + XTranslateCoordinates(_glfw.x11.display, + window->x11.parent, + _glfw.x11.root, + xpos, ypos, + &xpos, &ypos, + &dummy); + + _glfwReleaseErrorHandlerX11(); + if (_glfw.x11.errorCode == BadWindow) + return; + } + + if (xpos != window->x11.xpos || ypos != window->x11.ypos) + { + _glfwInputWindowPos(window, xpos, ypos); + window->x11.xpos = xpos; + window->x11.ypos = ypos; + } + + return; + } + + case ClientMessage: + { + // Custom client message, probably from the window manager + + if (filtered) + return; + + if (event->xclient.message_type == None) + return; + + if (event->xclient.message_type == _glfw.x11.WM_PROTOCOLS) + { + const Atom protocol = event->xclient.data.l[0]; + if (protocol == None) + return; + + if (protocol == _glfw.x11.WM_DELETE_WINDOW) + { + // The window manager was asked to close the window, for + // example by the user pressing a 'close' window decoration + // button + _glfwInputWindowCloseRequest(window); + } + else if (protocol == _glfw.x11.NET_WM_PING) + { + // The window manager is pinging the application to ensure + // it's still responding to events + + XEvent reply = *event; + reply.xclient.window = _glfw.x11.root; + + XSendEvent(_glfw.x11.display, _glfw.x11.root, + False, + SubstructureNotifyMask | SubstructureRedirectMask, + &reply); + } + } + else if (event->xclient.message_type == _glfw.x11.XdndEnter) + { + // A drag operation has entered the window + unsigned long count; + Atom* formats = NULL; + const GLFWbool list = event->xclient.data.l[1] & 1; + + _glfw.x11.xdnd.source = event->xclient.data.l[0]; + _glfw.x11.xdnd.version = event->xclient.data.l[1] >> 24; + _glfw.x11.xdnd.format = None; + + if (_glfw.x11.xdnd.version > _GLFW_XDND_VERSION) + return; + + if (list) + { + count = _glfwGetWindowPropertyX11(_glfw.x11.xdnd.source, + _glfw.x11.XdndTypeList, + XA_ATOM, + (unsigned char**) &formats); + } + else + { + count = 3; + formats = (Atom*) event->xclient.data.l + 2; + } + + for (unsigned int i = 0; i < count; i++) + { + if (formats[i] == _glfw.x11.text_uri_list) + { + _glfw.x11.xdnd.format = _glfw.x11.text_uri_list; + break; + } + } + + if (list && formats) + XFree(formats); + } + else if (event->xclient.message_type == _glfw.x11.XdndDrop) + { + // The drag operation has finished by dropping on the window + Time time = CurrentTime; + + if (_glfw.x11.xdnd.version > _GLFW_XDND_VERSION) + return; + + if (_glfw.x11.xdnd.format) + { + if (_glfw.x11.xdnd.version >= 1) + time = event->xclient.data.l[2]; + + // Request the chosen format from the source window + XConvertSelection(_glfw.x11.display, + _glfw.x11.XdndSelection, + _glfw.x11.xdnd.format, + _glfw.x11.XdndSelection, + window->x11.handle, + time); + } + else if (_glfw.x11.xdnd.version >= 2) + { + XEvent reply = { ClientMessage }; + reply.xclient.window = _glfw.x11.xdnd.source; + reply.xclient.message_type = _glfw.x11.XdndFinished; + reply.xclient.format = 32; + reply.xclient.data.l[0] = window->x11.handle; + reply.xclient.data.l[1] = 0; // The drag was rejected + reply.xclient.data.l[2] = None; + + XSendEvent(_glfw.x11.display, _glfw.x11.xdnd.source, + False, NoEventMask, &reply); + XFlush(_glfw.x11.display); + } + } + else if (event->xclient.message_type == _glfw.x11.XdndPosition) + { + // The drag operation has moved over the window + const int xabs = (event->xclient.data.l[2] >> 16) & 0xffff; + const int yabs = (event->xclient.data.l[2]) & 0xffff; + Window dummy; + int xpos, ypos; + + if (_glfw.x11.xdnd.version > _GLFW_XDND_VERSION) + return; + + XTranslateCoordinates(_glfw.x11.display, + _glfw.x11.root, + window->x11.handle, + xabs, yabs, + &xpos, &ypos, + &dummy); + + _glfwInputCursorPos(window, xpos, ypos); + + XEvent reply = { ClientMessage }; + reply.xclient.window = _glfw.x11.xdnd.source; + reply.xclient.message_type = _glfw.x11.XdndStatus; + reply.xclient.format = 32; + reply.xclient.data.l[0] = window->x11.handle; + reply.xclient.data.l[2] = 0; // Specify an empty rectangle + reply.xclient.data.l[3] = 0; + + if (_glfw.x11.xdnd.format) + { + // Reply that we are ready to copy the dragged data + reply.xclient.data.l[1] = 1; // Accept with no rectangle + if (_glfw.x11.xdnd.version >= 2) + reply.xclient.data.l[4] = _glfw.x11.XdndActionCopy; + } + + XSendEvent(_glfw.x11.display, _glfw.x11.xdnd.source, + False, NoEventMask, &reply); + XFlush(_glfw.x11.display); + } + + return; + } + + case SelectionNotify: + { + if (event->xselection.property == _glfw.x11.XdndSelection) + { + // The converted data from the drag operation has arrived + char* data; + const unsigned long result = + _glfwGetWindowPropertyX11(event->xselection.requestor, + event->xselection.property, + event->xselection.target, + (unsigned char**) &data); + + if (result) + { + int count; + char** paths = _glfwParseUriList(data, &count); + + _glfwInputDrop(window, count, (const char**) paths); + + for (int i = 0; i < count; i++) + _glfw_free(paths[i]); + _glfw_free(paths); + } + + if (data) + XFree(data); + + if (_glfw.x11.xdnd.version >= 2) + { + XEvent reply = { ClientMessage }; + reply.xclient.window = _glfw.x11.xdnd.source; + reply.xclient.message_type = _glfw.x11.XdndFinished; + reply.xclient.format = 32; + reply.xclient.data.l[0] = window->x11.handle; + reply.xclient.data.l[1] = result; + reply.xclient.data.l[2] = _glfw.x11.XdndActionCopy; + + XSendEvent(_glfw.x11.display, _glfw.x11.xdnd.source, + False, NoEventMask, &reply); + XFlush(_glfw.x11.display); + } + } + + return; + } + + case FocusIn: + { + if (event->xfocus.mode == NotifyGrab || + event->xfocus.mode == NotifyUngrab) + { + // Ignore focus events from popup indicator windows, window menu + // key chords and window dragging + return; + } + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + disableCursor(window); + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + captureCursor(window); + + if (window->x11.ic) + XSetICFocus(window->x11.ic); + + _glfwInputWindowFocus(window, GLFW_TRUE); + return; + } + + case FocusOut: + { + if (event->xfocus.mode == NotifyGrab || + event->xfocus.mode == NotifyUngrab) + { + // Ignore focus events from popup indicator windows, window menu + // key chords and window dragging + return; + } + + if (window->cursorMode == GLFW_CURSOR_DISABLED) + enableCursor(window); + else if (window->cursorMode == GLFW_CURSOR_CAPTURED) + releaseCursor(); + + if (window->x11.ic) + XUnsetICFocus(window->x11.ic); + + if (window->monitor && window->autoIconify) + _glfwIconifyWindowX11(window); + + _glfwInputWindowFocus(window, GLFW_FALSE); + return; + } + + case Expose: + { + _glfwInputWindowDamage(window); + return; + } + + case PropertyNotify: + { + if (event->xproperty.state != PropertyNewValue) + return; + + if (event->xproperty.atom == _glfw.x11.WM_STATE) + { + const int state = getWindowState(window); + if (state != IconicState && state != NormalState) + return; + + const GLFWbool iconified = (state == IconicState); + if (window->x11.iconified != iconified) + { + if (window->monitor) + { + if (iconified) + releaseMonitor(window); + else + acquireMonitor(window); + } + + window->x11.iconified = iconified; + _glfwInputWindowIconify(window, iconified); + } + } + else if (event->xproperty.atom == _glfw.x11.NET_WM_STATE) + { + const GLFWbool maximized = _glfwWindowMaximizedX11(window); + if (window->x11.maximized != maximized) + { + window->x11.maximized = maximized; + _glfwInputWindowMaximize(window, maximized); + } + } + + return; + } + + case DestroyNotify: + return; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Retrieve a single window property of the specified type +// Inspired by fghGetWindowProperty from freeglut +// +unsigned long _glfwGetWindowPropertyX11(Window window, + Atom property, + Atom type, + unsigned char** value) +{ + Atom actualType; + int actualFormat; + unsigned long itemCount, bytesAfter; + + XGetWindowProperty(_glfw.x11.display, + window, + property, + 0, + LONG_MAX, + False, + type, + &actualType, + &actualFormat, + &itemCount, + &bytesAfter, + value); + + return itemCount; +} + +GLFWbool _glfwIsVisualTransparentX11(Visual* visual) +{ + if (!_glfw.x11.xrender.available) + return GLFW_FALSE; + + XRenderPictFormat* pf = XRenderFindVisualFormat(_glfw.x11.display, visual); + return pf && pf->direct.alphaMask; +} + +// Push contents of our selection to clipboard manager +// +void _glfwPushSelectionToManagerX11(void) +{ + XConvertSelection(_glfw.x11.display, + _glfw.x11.CLIPBOARD_MANAGER, + _glfw.x11.SAVE_TARGETS, + None, + _glfw.x11.helperWindowHandle, + CurrentTime); + + for (;;) + { + XEvent event; + + while (XCheckIfEvent(_glfw.x11.display, &event, isSelectionEvent, NULL)) + { + switch (event.type) + { + case SelectionRequest: + handleSelectionRequest(&event); + break; + + case SelectionNotify: + { + if (event.xselection.target == _glfw.x11.SAVE_TARGETS) + { + // This means one of two things; either the selection + // was not owned, which means there is no clipboard + // manager, or the transfer to the clipboard manager has + // completed + // In either case, it means we are done here + return; + } + + break; + } + } + } + + waitForX11Event(NULL); + } +} + +void _glfwCreateInputContextX11(_GLFWwindow* window) +{ + XIMCallback callback; + callback.callback = (XIMProc) inputContextDestroyCallback; + callback.client_data = (XPointer) window; + + window->x11.ic = XCreateIC(_glfw.x11.im, + XNInputStyle, + XIMPreeditNothing | XIMStatusNothing, + XNClientWindow, + window->x11.handle, + XNFocusWindow, + window->x11.handle, + XNDestroyCallback, + &callback, + NULL); + + if (window->x11.ic) + { + XWindowAttributes attribs; + XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs); + + unsigned long filter = 0; + if (XGetICValues(window->x11.ic, XNFilterEvents, &filter, NULL) == NULL) + { + XSelectInput(_glfw.x11.display, + window->x11.handle, + attribs.your_event_mask | filter); + } + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW platform API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWbool _glfwCreateWindowX11(_GLFWwindow* window, + const _GLFWwndconfig* wndconfig, + const _GLFWctxconfig* ctxconfig, + const _GLFWfbconfig* fbconfig) +{ + Visual* visual = NULL; + int depth; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + if (!_glfwInitGLX()) + return GLFW_FALSE; + if (!_glfwChooseVisualGLX(wndconfig, ctxconfig, fbconfig, &visual, &depth)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) + { + if (!_glfwInitEGL()) + return GLFW_FALSE; + if (!_glfwChooseVisualEGL(wndconfig, ctxconfig, fbconfig, &visual, &depth)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwInitOSMesa()) + return GLFW_FALSE; + } + } + + if (!visual) + { + visual = DefaultVisual(_glfw.x11.display, _glfw.x11.screen); + depth = DefaultDepth(_glfw.x11.display, _glfw.x11.screen); + } + + if (!createNativeWindow(window, wndconfig, visual, depth)) + return GLFW_FALSE; + + if (ctxconfig->client != GLFW_NO_API) + { + if (ctxconfig->source == GLFW_NATIVE_CONTEXT_API) + { + if (!_glfwCreateContextGLX(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_EGL_CONTEXT_API) + { + if (!_glfwCreateContextEGL(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + else if (ctxconfig->source == GLFW_OSMESA_CONTEXT_API) + { + if (!_glfwCreateContextOSMesa(window, ctxconfig, fbconfig)) + return GLFW_FALSE; + } + + if (!_glfwRefreshContextAttribs(window, ctxconfig)) + return GLFW_FALSE; + } + + if (wndconfig->mousePassthrough) + _glfwSetWindowMousePassthroughX11(window, GLFW_TRUE); + + if (window->monitor) + { + _glfwShowWindowX11(window); + updateWindowMode(window); + acquireMonitor(window); + + if (wndconfig->centerCursor) + _glfwCenterCursorInContentArea(window); + } + else + { + if (wndconfig->visible) + { + _glfwShowWindowX11(window); + if (wndconfig->focused) + _glfwFocusWindowX11(window); + } + } + + XFlush(_glfw.x11.display); + return GLFW_TRUE; +} + +void _glfwDestroyWindowX11(_GLFWwindow* window) +{ + if (_glfw.x11.disabledCursorWindow == window) + enableCursor(window); + + if (window->monitor) + releaseMonitor(window); + + if (window->x11.ic) + { + XDestroyIC(window->x11.ic); + window->x11.ic = NULL; + } + + if (window->context.destroy) + window->context.destroy(window); + + if (window->x11.handle) + { + XDeleteContext(_glfw.x11.display, window->x11.handle, _glfw.x11.context); + XUnmapWindow(_glfw.x11.display, window->x11.handle); + XDestroyWindow(_glfw.x11.display, window->x11.handle); + window->x11.handle = (Window) 0; + } + + if (window->x11.colormap) + { + XFreeColormap(_glfw.x11.display, window->x11.colormap); + window->x11.colormap = (Colormap) 0; + } + + XFlush(_glfw.x11.display); +} + +void _glfwSetWindowTitleX11(_GLFWwindow* window, const char* title) +{ + if (_glfw.x11.xlib.utf8) + { + Xutf8SetWMProperties(_glfw.x11.display, + window->x11.handle, + title, title, + NULL, 0, + NULL, NULL, NULL); + } + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_NAME, _glfw.x11.UTF8_STRING, 8, + PropModeReplace, + (unsigned char*) title, strlen(title)); + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_ICON_NAME, _glfw.x11.UTF8_STRING, 8, + PropModeReplace, + (unsigned char*) title, strlen(title)); + + XFlush(_glfw.x11.display); +} + +void _glfwSetWindowIconX11(_GLFWwindow* window, int count, const GLFWimage* images) +{ + if (count) + { + int longCount = 0; + + for (int i = 0; i < count; i++) + longCount += 2 + images[i].width * images[i].height; + + unsigned long* icon = _glfw_calloc(longCount, sizeof(unsigned long)); + unsigned long* target = icon; + + for (int i = 0; i < count; i++) + { + *target++ = images[i].width; + *target++ = images[i].height; + + for (int j = 0; j < images[i].width * images[i].height; j++) + { + *target++ = (((unsigned long) images[i].pixels[j * 4 + 0]) << 16) | + (((unsigned long) images[i].pixels[j * 4 + 1]) << 8) | + (((unsigned long) images[i].pixels[j * 4 + 2]) << 0) | + (((unsigned long) images[i].pixels[j * 4 + 3]) << 24); + } + } + + // NOTE: XChangeProperty expects 32-bit values like the image data above to be + // placed in the 32 least significant bits of individual longs. This is + // true even if long is 64-bit and a WM protocol calls for "packed" data. + // This is because of a historical mistake that then became part of the Xlib + // ABI. Xlib will pack these values into a regular array of 32-bit values + // before sending it over the wire. + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_ICON, + XA_CARDINAL, 32, + PropModeReplace, + (unsigned char*) icon, + longCount); + + _glfw_free(icon); + } + else + { + XDeleteProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_ICON); + } + + XFlush(_glfw.x11.display); +} + +void _glfwGetWindowPosX11(_GLFWwindow* window, int* xpos, int* ypos) +{ + Window dummy; + int x, y; + + XTranslateCoordinates(_glfw.x11.display, window->x11.handle, _glfw.x11.root, + 0, 0, &x, &y, &dummy); + + if (xpos) + *xpos = x; + if (ypos) + *ypos = y; +} + +void _glfwSetWindowPosX11(_GLFWwindow* window, int xpos, int ypos) +{ + // HACK: Explicitly setting PPosition to any value causes some WMs, notably + // Compiz and Metacity, to honor the position of unmapped windows + if (!_glfwWindowVisibleX11(window)) + { + long supplied; + XSizeHints* hints = XAllocSizeHints(); + + if (XGetWMNormalHints(_glfw.x11.display, window->x11.handle, hints, &supplied)) + { + hints->flags |= PPosition; + hints->x = hints->y = 0; + + XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); + } + + XFree(hints); + } + + XMoveWindow(_glfw.x11.display, window->x11.handle, xpos, ypos); + XFlush(_glfw.x11.display); +} + +void _glfwGetWindowSizeX11(_GLFWwindow* window, int* width, int* height) +{ + XWindowAttributes attribs; + XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs); + + if (width) + *width = attribs.width; + if (height) + *height = attribs.height; +} + +void _glfwSetWindowSizeX11(_GLFWwindow* window, int width, int height) +{ + if (window->monitor) + { + if (window->monitor->window == window) + acquireMonitor(window); + } + else + { + if (!window->resizable) + updateNormalHints(window, width, height); + + XResizeWindow(_glfw.x11.display, window->x11.handle, width, height); + } + + XFlush(_glfw.x11.display); +} + +void _glfwSetWindowSizeLimitsX11(_GLFWwindow* window, + int minwidth, int minheight, + int maxwidth, int maxheight) +{ + int width, height; + _glfwGetWindowSizeX11(window, &width, &height); + updateNormalHints(window, width, height); + XFlush(_glfw.x11.display); +} + +void _glfwSetWindowAspectRatioX11(_GLFWwindow* window, int numer, int denom) +{ + int width, height; + _glfwGetWindowSizeX11(window, &width, &height); + updateNormalHints(window, width, height); + XFlush(_glfw.x11.display); +} + +void _glfwGetFramebufferSizeX11(_GLFWwindow* window, int* width, int* height) +{ + _glfwGetWindowSizeX11(window, width, height); +} + +void _glfwGetWindowFrameSizeX11(_GLFWwindow* window, + int* left, int* top, + int* right, int* bottom) +{ + long* extents = NULL; + + if (window->monitor || !window->decorated) + return; + + if (_glfw.x11.NET_FRAME_EXTENTS == None) + return; + + if (!_glfwWindowVisibleX11(window) && + _glfw.x11.NET_REQUEST_FRAME_EXTENTS) + { + XEvent event; + double timeout = 0.5; + + // Ensure _NET_FRAME_EXTENTS is set, allowing glfwGetWindowFrameSize to + // function before the window is mapped + sendEventToWM(window, _glfw.x11.NET_REQUEST_FRAME_EXTENTS, + 0, 0, 0, 0, 0); + + // HACK: Use a timeout because earlier versions of some window managers + // (at least Unity, Fluxbox and Xfwm) failed to send the reply + // They have been fixed but broken versions are still in the wild + // If you are affected by this and your window manager is NOT + // listed above, PLEASE report it to their and our issue trackers + while (!XCheckIfEvent(_glfw.x11.display, + &event, + isFrameExtentsEvent, + (XPointer) window)) + { + if (!waitForX11Event(&timeout)) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: The window manager has a broken _NET_REQUEST_FRAME_EXTENTS implementation; please report this issue"); + return; + } + } + } + + if (_glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.NET_FRAME_EXTENTS, + XA_CARDINAL, + (unsigned char**) &extents) == 4) + { + if (left) + *left = extents[0]; + if (top) + *top = extents[2]; + if (right) + *right = extents[1]; + if (bottom) + *bottom = extents[3]; + } + + if (extents) + XFree(extents); +} + +void _glfwGetWindowContentScaleX11(_GLFWwindow* window, float* xscale, float* yscale) +{ + if (xscale) + *xscale = _glfw.x11.contentScaleX; + if (yscale) + *yscale = _glfw.x11.contentScaleY; +} + +void _glfwIconifyWindowX11(_GLFWwindow* window) +{ + if (window->x11.overrideRedirect) + { + // Override-redirect windows cannot be iconified or restored, as those + // tasks are performed by the window manager + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Iconification of full screen windows requires a WM that supports EWMH full screen"); + return; + } + + XIconifyWindow(_glfw.x11.display, window->x11.handle, _glfw.x11.screen); + XFlush(_glfw.x11.display); +} + +void _glfwRestoreWindowX11(_GLFWwindow* window) +{ + if (window->x11.overrideRedirect) + { + // Override-redirect windows cannot be iconified or restored, as those + // tasks are performed by the window manager + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Iconification of full screen windows requires a WM that supports EWMH full screen"); + return; + } + + if (_glfwWindowIconifiedX11(window)) + { + XMapWindow(_glfw.x11.display, window->x11.handle); + waitForVisibilityNotify(window); + } + else if (_glfwWindowVisibleX11(window)) + { + if (_glfw.x11.NET_WM_STATE && + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + { + sendEventToWM(window, + _glfw.x11.NET_WM_STATE, + _NET_WM_STATE_REMOVE, + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, + 1, 0); + } + } + + XFlush(_glfw.x11.display); +} + +void _glfwMaximizeWindowX11(_GLFWwindow* window) +{ + if (!_glfw.x11.NET_WM_STATE || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + { + return; + } + + if (_glfwWindowVisibleX11(window)) + { + sendEventToWM(window, + _glfw.x11.NET_WM_STATE, + _NET_WM_STATE_ADD, + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, + 1, 0); + } + else + { + Atom* states = NULL; + unsigned long count = + _glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.NET_WM_STATE, + XA_ATOM, + (unsigned char**) &states); + + // NOTE: We don't check for failure as this property may not exist yet + // and that's fine (and we'll create it implicitly with append) + + Atom missing[2] = + { + _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, + _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ + }; + unsigned long missingCount = 2; + + for (unsigned long i = 0; i < count; i++) + { + for (unsigned long j = 0; j < missingCount; j++) + { + if (states[i] == missing[j]) + { + missing[j] = missing[missingCount - 1]; + missingCount--; + } + } + } + + if (states) + XFree(states); + + if (!missingCount) + return; + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_STATE, XA_ATOM, 32, + PropModeAppend, + (unsigned char*) missing, + missingCount); + } + + XFlush(_glfw.x11.display); +} + +void _glfwShowWindowX11(_GLFWwindow* window) +{ + if (_glfwWindowVisibleX11(window)) + return; + + XMapWindow(_glfw.x11.display, window->x11.handle); + waitForVisibilityNotify(window); +} + +void _glfwHideWindowX11(_GLFWwindow* window) +{ + XUnmapWindow(_glfw.x11.display, window->x11.handle); + XFlush(_glfw.x11.display); +} + +void _glfwRequestWindowAttentionX11(_GLFWwindow* window) +{ + if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION) + return; + + sendEventToWM(window, + _glfw.x11.NET_WM_STATE, + _NET_WM_STATE_ADD, + _glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION, + 0, 1, 0); +} + +void _glfwFocusWindowX11(_GLFWwindow* window) +{ + if (_glfw.x11.NET_ACTIVE_WINDOW) + sendEventToWM(window, _glfw.x11.NET_ACTIVE_WINDOW, 1, 0, 0, 0, 0); + else if (_glfwWindowVisibleX11(window)) + { + XRaiseWindow(_glfw.x11.display, window->x11.handle); + XSetInputFocus(_glfw.x11.display, window->x11.handle, + RevertToParent, CurrentTime); + } + + XFlush(_glfw.x11.display); +} + +void _glfwSetWindowMonitorX11(_GLFWwindow* window, + _GLFWmonitor* monitor, + int xpos, int ypos, + int width, int height, + int refreshRate) +{ + if (window->monitor == monitor) + { + if (monitor) + { + if (monitor->window == window) + acquireMonitor(window); + } + else + { + if (!window->resizable) + updateNormalHints(window, width, height); + + XMoveResizeWindow(_glfw.x11.display, window->x11.handle, + xpos, ypos, width, height); + } + + XFlush(_glfw.x11.display); + return; + } + + if (window->monitor) + { + _glfwSetWindowDecoratedX11(window, window->decorated); + _glfwSetWindowFloatingX11(window, window->floating); + releaseMonitor(window); + } + + _glfwInputWindowMonitor(window, monitor); + updateNormalHints(window, width, height); + + if (window->monitor) + { + if (!_glfwWindowVisibleX11(window)) + { + XMapRaised(_glfw.x11.display, window->x11.handle); + waitForVisibilityNotify(window); + } + + updateWindowMode(window); + acquireMonitor(window); + } + else + { + updateWindowMode(window); + XMoveResizeWindow(_glfw.x11.display, window->x11.handle, + xpos, ypos, width, height); + } + + XFlush(_glfw.x11.display); +} + +GLFWbool _glfwWindowFocusedX11(_GLFWwindow* window) +{ + Window focused; + int state; + + XGetInputFocus(_glfw.x11.display, &focused, &state); + return window->x11.handle == focused; +} + +GLFWbool _glfwWindowIconifiedX11(_GLFWwindow* window) +{ + return getWindowState(window) == IconicState; +} + +GLFWbool _glfwWindowVisibleX11(_GLFWwindow* window) +{ + XWindowAttributes wa; + XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &wa); + return wa.map_state == IsViewable; +} + +GLFWbool _glfwWindowMaximizedX11(_GLFWwindow* window) +{ + Atom* states; + GLFWbool maximized = GLFW_FALSE; + + if (!_glfw.x11.NET_WM_STATE || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT || + !_glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + { + return maximized; + } + + const unsigned long count = + _glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.NET_WM_STATE, + XA_ATOM, + (unsigned char**) &states); + + for (unsigned long i = 0; i < count; i++) + { + if (states[i] == _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT || + states[i] == _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) + { + maximized = GLFW_TRUE; + break; + } + } + + if (states) + XFree(states); + + return maximized; +} + +GLFWbool _glfwWindowHoveredX11(_GLFWwindow* window) +{ + Window w = _glfw.x11.root; + while (w) + { + Window root; + int rootX, rootY, childX, childY; + unsigned int mask; + + _glfwGrabErrorHandlerX11(); + + const Bool result = XQueryPointer(_glfw.x11.display, w, + &root, &w, &rootX, &rootY, + &childX, &childY, &mask); + + _glfwReleaseErrorHandlerX11(); + + if (_glfw.x11.errorCode == BadWindow) + w = _glfw.x11.root; + else if (!result) + return GLFW_FALSE; + else if (w == window->x11.handle) + return GLFW_TRUE; + } + + return GLFW_FALSE; +} + +GLFWbool _glfwFramebufferTransparentX11(_GLFWwindow* window) +{ + if (!window->x11.transparent) + return GLFW_FALSE; + + return XGetSelectionOwner(_glfw.x11.display, _glfw.x11.NET_WM_CM_Sx) != None; +} + +void _glfwSetWindowResizableX11(_GLFWwindow* window, GLFWbool enabled) +{ + int width, height; + _glfwGetWindowSizeX11(window, &width, &height); + updateNormalHints(window, width, height); +} + +void _glfwSetWindowDecoratedX11(_GLFWwindow* window, GLFWbool enabled) +{ + struct + { + unsigned long flags; + unsigned long functions; + unsigned long decorations; + long input_mode; + unsigned long status; + } hints = {0}; + + hints.flags = MWM_HINTS_DECORATIONS; + hints.decorations = enabled ? MWM_DECOR_ALL : 0; + + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.MOTIF_WM_HINTS, + _glfw.x11.MOTIF_WM_HINTS, 32, + PropModeReplace, + (unsigned char*) &hints, + sizeof(hints) / sizeof(long)); +} + +void _glfwSetWindowFloatingX11(_GLFWwindow* window, GLFWbool enabled) +{ + if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_ABOVE) + return; + + if (_glfwWindowVisibleX11(window)) + { + const long action = enabled ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE; + sendEventToWM(window, + _glfw.x11.NET_WM_STATE, + action, + _glfw.x11.NET_WM_STATE_ABOVE, + 0, 1, 0); + } + else + { + Atom* states = NULL; + const unsigned long count = + _glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.NET_WM_STATE, + XA_ATOM, + (unsigned char**) &states); + + // NOTE: We don't check for failure as this property may not exist yet + // and that's fine (and we'll create it implicitly with append) + + if (enabled) + { + unsigned long i; + + for (i = 0; i < count; i++) + { + if (states[i] == _glfw.x11.NET_WM_STATE_ABOVE) + break; + } + + if (i == count) + { + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_STATE, XA_ATOM, 32, + PropModeAppend, + (unsigned char*) &_glfw.x11.NET_WM_STATE_ABOVE, + 1); + } + } + else if (states) + { + for (unsigned long i = 0; i < count; i++) + { + if (states[i] == _glfw.x11.NET_WM_STATE_ABOVE) + { + states[i] = states[count - 1]; + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_STATE, XA_ATOM, 32, + PropModeReplace, (unsigned char*) states, count - 1); + break; + } + } + } + + if (states) + XFree(states); + } + + XFlush(_glfw.x11.display); +} + +void _glfwSetWindowMousePassthroughX11(_GLFWwindow* window, GLFWbool enabled) +{ + if (!_glfw.x11.xshape.available) + return; + + if (enabled) + { + Region region = XCreateRegion(); + XShapeCombineRegion(_glfw.x11.display, window->x11.handle, + ShapeInput, 0, 0, region, ShapeSet); + XDestroyRegion(region); + } + else + { + XShapeCombineMask(_glfw.x11.display, window->x11.handle, + ShapeInput, 0, 0, None, ShapeSet); + } +} + +float _glfwGetWindowOpacityX11(_GLFWwindow* window) +{ + float opacity = 1.f; + + if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.NET_WM_CM_Sx)) + { + CARD32* value = NULL; + + if (_glfwGetWindowPropertyX11(window->x11.handle, + _glfw.x11.NET_WM_WINDOW_OPACITY, + XA_CARDINAL, + (unsigned char**) &value)) + { + opacity = (float) (*value / (double) 0xffffffffu); + } + + if (value) + XFree(value); + } + + return opacity; +} + +void _glfwSetWindowOpacityX11(_GLFWwindow* window, float opacity) +{ + const CARD32 value = (CARD32) (0xffffffffu * (double) opacity); + XChangeProperty(_glfw.x11.display, window->x11.handle, + _glfw.x11.NET_WM_WINDOW_OPACITY, XA_CARDINAL, 32, + PropModeReplace, (unsigned char*) &value, 1); +} + +void _glfwSetRawMouseMotionX11(_GLFWwindow *window, GLFWbool enabled) +{ + if (!_glfw.x11.xi.available) + return; + + if (_glfw.x11.disabledCursorWindow != window) + return; + + if (enabled) + enableRawMouseMotion(window); + else + disableRawMouseMotion(window); +} + +GLFWbool _glfwRawMouseMotionSupportedX11(void) +{ + return _glfw.x11.xi.available; +} + +void _glfwPollEventsX11(void) +{ + drainEmptyEvents(); + +#if defined(__linux__) + if (_glfw.joysticksInitialized) + _glfwDetectJoystickConnectionLinux(); +#endif + XPending(_glfw.x11.display); + + while (QLength(_glfw.x11.display)) + { + XEvent event; + XNextEvent(_glfw.x11.display, &event); + processEvent(&event); + } + + _GLFWwindow* window = _glfw.x11.disabledCursorWindow; + if (window) + { + int width, height; + _glfwGetWindowSizeX11(window, &width, &height); + + // NOTE: Re-center the cursor only if it has moved since the last call, + // to avoid breaking glfwWaitEvents with MotionNotify + if (window->x11.lastCursorPosX != width / 2 || + window->x11.lastCursorPosY != height / 2) + { + _glfwSetCursorPosX11(window, width / 2, height / 2); + } + } + + XFlush(_glfw.x11.display); +} + +void _glfwWaitEventsX11(void) +{ + waitForAnyEvent(NULL); + _glfwPollEventsX11(); +} + +void _glfwWaitEventsTimeoutX11(double timeout) +{ + waitForAnyEvent(&timeout); + _glfwPollEventsX11(); +} + +void _glfwPostEmptyEventX11(void) +{ + writeEmptyEvent(); +} + +void _glfwGetCursorPosX11(_GLFWwindow* window, double* xpos, double* ypos) +{ + Window root, child; + int rootX, rootY, childX, childY; + unsigned int mask; + + XQueryPointer(_glfw.x11.display, window->x11.handle, + &root, &child, + &rootX, &rootY, &childX, &childY, + &mask); + + if (xpos) + *xpos = childX; + if (ypos) + *ypos = childY; +} + +void _glfwSetCursorPosX11(_GLFWwindow* window, double x, double y) +{ + // Store the new position so it can be recognized later + window->x11.warpCursorPosX = (int) x; + window->x11.warpCursorPosY = (int) y; + + XWarpPointer(_glfw.x11.display, None, window->x11.handle, + 0,0,0,0, (int) x, (int) y); + XFlush(_glfw.x11.display); +} + +void _glfwSetCursorModeX11(_GLFWwindow* window, int mode) +{ + if (_glfwWindowFocusedX11(window)) + { + if (mode == GLFW_CURSOR_DISABLED) + { + _glfwGetCursorPosX11(window, + &_glfw.x11.restoreCursorPosX, + &_glfw.x11.restoreCursorPosY); + _glfwCenterCursorInContentArea(window); + if (window->rawMouseMotion) + enableRawMouseMotion(window); + } + else if (_glfw.x11.disabledCursorWindow == window) + { + if (window->rawMouseMotion) + disableRawMouseMotion(window); + } + + if (mode == GLFW_CURSOR_DISABLED || mode == GLFW_CURSOR_CAPTURED) + captureCursor(window); + else + releaseCursor(); + + if (mode == GLFW_CURSOR_DISABLED) + _glfw.x11.disabledCursorWindow = window; + else if (_glfw.x11.disabledCursorWindow == window) + { + _glfw.x11.disabledCursorWindow = NULL; + _glfwSetCursorPosX11(window, + _glfw.x11.restoreCursorPosX, + _glfw.x11.restoreCursorPosY); + } + } + + updateCursorImage(window); + XFlush(_glfw.x11.display); +} + +const char* _glfwGetScancodeNameX11(int scancode) +{ + if (!_glfw.x11.xkb.available) + return NULL; + + if (scancode < 0 || scancode > 0xff || + _glfw.x11.keycodes[scancode] == GLFW_KEY_UNKNOWN) + { + _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode); + return NULL; + } + + const int key = _glfw.x11.keycodes[scancode]; + const KeySym keysym = XkbKeycodeToKeysym(_glfw.x11.display, + scancode, _glfw.x11.xkb.group, 0); + if (keysym == NoSymbol) + return NULL; + + const uint32_t codepoint = _glfwKeySym2Unicode(keysym); + if (codepoint == GLFW_INVALID_CODEPOINT) + return NULL; + + const size_t count = _glfwEncodeUTF8(_glfw.x11.keynames[key], codepoint); + if (count == 0) + return NULL; + + _glfw.x11.keynames[key][count] = '\0'; + return _glfw.x11.keynames[key]; +} + +int _glfwGetKeyScancodeX11(int key) +{ + return _glfw.x11.scancodes[key]; +} + +GLFWbool _glfwCreateCursorX11(_GLFWcursor* cursor, + const GLFWimage* image, + int xhot, int yhot) +{ + cursor->x11.handle = _glfwCreateNativeCursorX11(image, xhot, yhot); + if (!cursor->x11.handle) + return GLFW_FALSE; + + return GLFW_TRUE; +} + +GLFWbool _glfwCreateStandardCursorX11(_GLFWcursor* cursor, int shape) +{ + if (_glfw.x11.xcursor.handle) + { + char* theme = XcursorGetTheme(_glfw.x11.display); + if (theme) + { + const int size = XcursorGetDefaultSize(_glfw.x11.display); + const char* name = NULL; + + switch (shape) + { + case GLFW_ARROW_CURSOR: + name = "default"; + break; + case GLFW_IBEAM_CURSOR: + name = "text"; + break; + case GLFW_CROSSHAIR_CURSOR: + name = "crosshair"; + break; + case GLFW_POINTING_HAND_CURSOR: + name = "pointer"; + break; + case GLFW_RESIZE_EW_CURSOR: + name = "ew-resize"; + break; + case GLFW_RESIZE_NS_CURSOR: + name = "ns-resize"; + break; + case GLFW_RESIZE_NWSE_CURSOR: + name = "nwse-resize"; + break; + case GLFW_RESIZE_NESW_CURSOR: + name = "nesw-resize"; + break; + case GLFW_RESIZE_ALL_CURSOR: + name = "all-scroll"; + break; + case GLFW_NOT_ALLOWED_CURSOR: + name = "not-allowed"; + break; + } + + XcursorImage* image = XcursorLibraryLoadImage(name, theme, size); + if (image) + { + cursor->x11.handle = XcursorImageLoadCursor(_glfw.x11.display, image); + XcursorImageDestroy(image); + } + } + } + + if (!cursor->x11.handle) + { + unsigned int native = 0; + + switch (shape) + { + case GLFW_ARROW_CURSOR: + native = XC_left_ptr; + break; + case GLFW_IBEAM_CURSOR: + native = XC_xterm; + break; + case GLFW_CROSSHAIR_CURSOR: + native = XC_crosshair; + break; + case GLFW_POINTING_HAND_CURSOR: + native = XC_hand2; + break; + case GLFW_RESIZE_EW_CURSOR: + native = XC_sb_h_double_arrow; + break; + case GLFW_RESIZE_NS_CURSOR: + native = XC_sb_v_double_arrow; + break; + case GLFW_RESIZE_ALL_CURSOR: + native = XC_fleur; + break; + default: + _glfwInputError(GLFW_CURSOR_UNAVAILABLE, + "X11: Standard cursor shape unavailable"); + return GLFW_FALSE; + } + + cursor->x11.handle = XCreateFontCursor(_glfw.x11.display, native); + if (!cursor->x11.handle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to create standard cursor"); + return GLFW_FALSE; + } + } + + return GLFW_TRUE; +} + +void _glfwDestroyCursorX11(_GLFWcursor* cursor) +{ + if (cursor->x11.handle) + XFreeCursor(_glfw.x11.display, cursor->x11.handle); +} + +void _glfwSetCursorX11(_GLFWwindow* window, _GLFWcursor* cursor) +{ + if (window->cursorMode == GLFW_CURSOR_NORMAL || + window->cursorMode == GLFW_CURSOR_CAPTURED) + { + updateCursorImage(window); + XFlush(_glfw.x11.display); + } +} + +void _glfwSetClipboardStringX11(const char* string) +{ + char* copy = _glfw_strdup(string); + _glfw_free(_glfw.x11.clipboardString); + _glfw.x11.clipboardString = copy; + + XSetSelectionOwner(_glfw.x11.display, + _glfw.x11.CLIPBOARD, + _glfw.x11.helperWindowHandle, + CurrentTime); + + if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) != + _glfw.x11.helperWindowHandle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to become owner of clipboard selection"); + } +} + +const char* _glfwGetClipboardStringX11(void) +{ + return getSelectionString(_glfw.x11.CLIPBOARD); +} + +EGLenum _glfwGetEGLPlatformX11(EGLint** attribs) +{ + if (_glfw.egl.ANGLE_platform_angle) + { + int type = 0; + + if (_glfw.egl.ANGLE_platform_angle_opengl) + { + if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_OPENGL) + type = EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE; + } + + if (_glfw.egl.ANGLE_platform_angle_vulkan) + { + if (_glfw.hints.init.angleType == GLFW_ANGLE_PLATFORM_TYPE_VULKAN) + type = EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE; + } + + if (type) + { + *attribs = _glfw_calloc(5, sizeof(EGLint)); + (*attribs)[0] = EGL_PLATFORM_ANGLE_TYPE_ANGLE; + (*attribs)[1] = type; + (*attribs)[2] = EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE; + (*attribs)[3] = EGL_PLATFORM_X11_EXT; + (*attribs)[4] = EGL_NONE; + return EGL_PLATFORM_ANGLE_ANGLE; + } + } + + if (_glfw.egl.EXT_platform_base && _glfw.egl.EXT_platform_x11) + return EGL_PLATFORM_X11_EXT; + + return 0; +} + +EGLNativeDisplayType _glfwGetEGLNativeDisplayX11(void) +{ + return _glfw.x11.display; +} + +EGLNativeWindowType _glfwGetEGLNativeWindowX11(_GLFWwindow* window) +{ + if (_glfw.egl.platform) + return &window->x11.handle; + else + return (EGLNativeWindowType) window->x11.handle; +} + +void _glfwGetRequiredInstanceExtensionsX11(char** extensions) +{ + if (!_glfw.vk.KHR_surface) + return; + + if (!_glfw.vk.KHR_xcb_surface || !_glfw.x11.x11xcb.handle) + { + if (!_glfw.vk.KHR_xlib_surface) + return; + } + + extensions[0] = "VK_KHR_surface"; + + // NOTE: VK_KHR_xcb_surface is preferred due to some early ICDs exposing but + // not correctly implementing VK_KHR_xlib_surface + if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) + extensions[1] = "VK_KHR_xcb_surface"; + else + extensions[1] = "VK_KHR_xlib_surface"; +} + +GLFWbool _glfwGetPhysicalDevicePresentationSupportX11(VkInstance instance, + VkPhysicalDevice device, + uint32_t queuefamily) +{ + VisualID visualID = XVisualIDFromVisual(DefaultVisual(_glfw.x11.display, + _glfw.x11.screen)); + + if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) + { + PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR + vkGetPhysicalDeviceXcbPresentationSupportKHR = + (PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR) + vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceXcbPresentationSupportKHR"); + if (!vkGetPhysicalDeviceXcbPresentationSupportKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "X11: Vulkan instance missing VK_KHR_xcb_surface extension"); + return GLFW_FALSE; + } + + xcb_connection_t* connection = XGetXCBConnection(_glfw.x11.display); + if (!connection) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to retrieve XCB connection"); + return GLFW_FALSE; + } + + return vkGetPhysicalDeviceXcbPresentationSupportKHR(device, + queuefamily, + connection, + visualID); + } + else + { + PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR + vkGetPhysicalDeviceXlibPresentationSupportKHR = + (PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR) + vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceXlibPresentationSupportKHR"); + if (!vkGetPhysicalDeviceXlibPresentationSupportKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "X11: Vulkan instance missing VK_KHR_xlib_surface extension"); + return GLFW_FALSE; + } + + return vkGetPhysicalDeviceXlibPresentationSupportKHR(device, + queuefamily, + _glfw.x11.display, + visualID); + } +} + +VkResult _glfwCreateWindowSurfaceX11(VkInstance instance, + _GLFWwindow* window, + const VkAllocationCallbacks* allocator, + VkSurfaceKHR* surface) +{ + if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) + { + VkResult err; + VkXcbSurfaceCreateInfoKHR sci; + PFN_vkCreateXcbSurfaceKHR vkCreateXcbSurfaceKHR; + + xcb_connection_t* connection = XGetXCBConnection(_glfw.x11.display); + if (!connection) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to retrieve XCB connection"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + vkCreateXcbSurfaceKHR = (PFN_vkCreateXcbSurfaceKHR) + vkGetInstanceProcAddr(instance, "vkCreateXcbSurfaceKHR"); + if (!vkCreateXcbSurfaceKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "X11: Vulkan instance missing VK_KHR_xcb_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR; + sci.connection = connection; + sci.window = window->x11.handle; + + err = vkCreateXcbSurfaceKHR(instance, &sci, allocator, surface); + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to create Vulkan XCB surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; + } + else + { + VkResult err; + VkXlibSurfaceCreateInfoKHR sci; + PFN_vkCreateXlibSurfaceKHR vkCreateXlibSurfaceKHR; + + vkCreateXlibSurfaceKHR = (PFN_vkCreateXlibSurfaceKHR) + vkGetInstanceProcAddr(instance, "vkCreateXlibSurfaceKHR"); + if (!vkCreateXlibSurfaceKHR) + { + _glfwInputError(GLFW_API_UNAVAILABLE, + "X11: Vulkan instance missing VK_KHR_xlib_surface extension"); + return VK_ERROR_EXTENSION_NOT_PRESENT; + } + + memset(&sci, 0, sizeof(sci)); + sci.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR; + sci.dpy = _glfw.x11.display; + sci.window = window->x11.handle; + + err = vkCreateXlibSurfaceKHR(instance, &sci, allocator, surface); + if (err) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to create Vulkan X11 surface: %s", + _glfwGetVulkanResultString(err)); + } + + return err; + } +} + + +////////////////////////////////////////////////////////////////////////// +////// GLFW native API ////// +////////////////////////////////////////////////////////////////////////// + +GLFWAPI Display* glfwGetX11Display(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (_glfw.platform.platformID != GLFW_PLATFORM_X11) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "X11: Platform not initialized"); + return NULL; + } + + return _glfw.x11.display; +} + +GLFWAPI Window glfwGetX11Window(GLFWwindow* handle) +{ + _GLFWwindow* window = (_GLFWwindow*) handle; + _GLFW_REQUIRE_INIT_OR_RETURN(None); + + if (_glfw.platform.platformID != GLFW_PLATFORM_X11) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "X11: Platform not initialized"); + return None; + } + + return window->x11.handle; +} + +GLFWAPI void glfwSetX11SelectionString(const char* string) +{ + _GLFW_REQUIRE_INIT(); + + if (_glfw.platform.platformID != GLFW_PLATFORM_X11) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "X11: Platform not initialized"); + return; + } + + _glfw_free(_glfw.x11.primarySelectionString); + _glfw.x11.primarySelectionString = _glfw_strdup(string); + + XSetSelectionOwner(_glfw.x11.display, + _glfw.x11.PRIMARY, + _glfw.x11.helperWindowHandle, + CurrentTime); + + if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.PRIMARY) != + _glfw.x11.helperWindowHandle) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "X11: Failed to become owner of primary selection"); + } +} + +GLFWAPI const char* glfwGetX11SelectionString(void) +{ + _GLFW_REQUIRE_INIT_OR_RETURN(NULL); + + if (_glfw.platform.platformID != GLFW_PLATFORM_X11) + { + _glfwInputError(GLFW_PLATFORM_UNAVAILABLE, "X11: Platform not initialized"); + return NULL; + } + + return getSelectionString(_glfw.x11.PRIMARY); +} + diff --git a/thirdparty/imgui_suite/glfw/src/xkb_unicode.c b/thirdparty/imgui_suite/glfw/src/xkb_unicode.c new file mode 100644 index 00000000000..1b2482cdf38 --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/xkb_unicode.c @@ -0,0 +1,942 @@ +//======================================================================== +// GLFW 3.4 X11 - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2002-2006 Marcus Geelnard +// Copyright (c) 2006-2017 Camilla Löwy +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== +// It is fine to use C99 in this file because it will not be built with VS +//======================================================================== + +#include "internal.h" + + +/* + * Marcus: This code was originally written by Markus G. Kuhn. + * I have made some slight changes (trimmed it down a bit from >60 KB to + * 20 KB), but the functionality is the same. + */ + +/* + * This module converts keysym values into the corresponding ISO 10646 + * (UCS, Unicode) values. + * + * The array keysymtab[] contains pairs of X11 keysym values for graphical + * characters and the corresponding Unicode value. The function + * _glfwKeySym2Unicode() maps a keysym onto a Unicode value using a binary + * search, therefore keysymtab[] must remain SORTED by keysym value. + * + * We allow to represent any UCS character in the range U-00000000 to + * U-00FFFFFF by a keysym value in the range 0x01000000 to 0x01ffffff. + * This admittedly does not cover the entire 31-bit space of UCS, but + * it does cover all of the characters up to U-10FFFF, which can be + * represented by UTF-16, and more, and it is very unlikely that higher + * UCS codes will ever be assigned by ISO. So to get Unicode character + * U+ABCD you can directly use keysym 0x0100abcd. + * + * Original author: Markus G. Kuhn , University of + * Cambridge, April 2001 + * + * Special thanks to Richard Verhoeven for preparing + * an initial draft of the mapping table. + * + */ + + +//************************************************************************ +//**** KeySym to Unicode mapping table **** +//************************************************************************ + +static const struct codepair { + unsigned short keysym; + unsigned short ucs; +} keysymtab[] = { + { 0x01a1, 0x0104 }, + { 0x01a2, 0x02d8 }, + { 0x01a3, 0x0141 }, + { 0x01a5, 0x013d }, + { 0x01a6, 0x015a }, + { 0x01a9, 0x0160 }, + { 0x01aa, 0x015e }, + { 0x01ab, 0x0164 }, + { 0x01ac, 0x0179 }, + { 0x01ae, 0x017d }, + { 0x01af, 0x017b }, + { 0x01b1, 0x0105 }, + { 0x01b2, 0x02db }, + { 0x01b3, 0x0142 }, + { 0x01b5, 0x013e }, + { 0x01b6, 0x015b }, + { 0x01b7, 0x02c7 }, + { 0x01b9, 0x0161 }, + { 0x01ba, 0x015f }, + { 0x01bb, 0x0165 }, + { 0x01bc, 0x017a }, + { 0x01bd, 0x02dd }, + { 0x01be, 0x017e }, + { 0x01bf, 0x017c }, + { 0x01c0, 0x0154 }, + { 0x01c3, 0x0102 }, + { 0x01c5, 0x0139 }, + { 0x01c6, 0x0106 }, + { 0x01c8, 0x010c }, + { 0x01ca, 0x0118 }, + { 0x01cc, 0x011a }, + { 0x01cf, 0x010e }, + { 0x01d0, 0x0110 }, + { 0x01d1, 0x0143 }, + { 0x01d2, 0x0147 }, + { 0x01d5, 0x0150 }, + { 0x01d8, 0x0158 }, + { 0x01d9, 0x016e }, + { 0x01db, 0x0170 }, + { 0x01de, 0x0162 }, + { 0x01e0, 0x0155 }, + { 0x01e3, 0x0103 }, + { 0x01e5, 0x013a }, + { 0x01e6, 0x0107 }, + { 0x01e8, 0x010d }, + { 0x01ea, 0x0119 }, + { 0x01ec, 0x011b }, + { 0x01ef, 0x010f }, + { 0x01f0, 0x0111 }, + { 0x01f1, 0x0144 }, + { 0x01f2, 0x0148 }, + { 0x01f5, 0x0151 }, + { 0x01f8, 0x0159 }, + { 0x01f9, 0x016f }, + { 0x01fb, 0x0171 }, + { 0x01fe, 0x0163 }, + { 0x01ff, 0x02d9 }, + { 0x02a1, 0x0126 }, + { 0x02a6, 0x0124 }, + { 0x02a9, 0x0130 }, + { 0x02ab, 0x011e }, + { 0x02ac, 0x0134 }, + { 0x02b1, 0x0127 }, + { 0x02b6, 0x0125 }, + { 0x02b9, 0x0131 }, + { 0x02bb, 0x011f }, + { 0x02bc, 0x0135 }, + { 0x02c5, 0x010a }, + { 0x02c6, 0x0108 }, + { 0x02d5, 0x0120 }, + { 0x02d8, 0x011c }, + { 0x02dd, 0x016c }, + { 0x02de, 0x015c }, + { 0x02e5, 0x010b }, + { 0x02e6, 0x0109 }, + { 0x02f5, 0x0121 }, + { 0x02f8, 0x011d }, + { 0x02fd, 0x016d }, + { 0x02fe, 0x015d }, + { 0x03a2, 0x0138 }, + { 0x03a3, 0x0156 }, + { 0x03a5, 0x0128 }, + { 0x03a6, 0x013b }, + { 0x03aa, 0x0112 }, + { 0x03ab, 0x0122 }, + { 0x03ac, 0x0166 }, + { 0x03b3, 0x0157 }, + { 0x03b5, 0x0129 }, + { 0x03b6, 0x013c }, + { 0x03ba, 0x0113 }, + { 0x03bb, 0x0123 }, + { 0x03bc, 0x0167 }, + { 0x03bd, 0x014a }, + { 0x03bf, 0x014b }, + { 0x03c0, 0x0100 }, + { 0x03c7, 0x012e }, + { 0x03cc, 0x0116 }, + { 0x03cf, 0x012a }, + { 0x03d1, 0x0145 }, + { 0x03d2, 0x014c }, + { 0x03d3, 0x0136 }, + { 0x03d9, 0x0172 }, + { 0x03dd, 0x0168 }, + { 0x03de, 0x016a }, + { 0x03e0, 0x0101 }, + { 0x03e7, 0x012f }, + { 0x03ec, 0x0117 }, + { 0x03ef, 0x012b }, + { 0x03f1, 0x0146 }, + { 0x03f2, 0x014d }, + { 0x03f3, 0x0137 }, + { 0x03f9, 0x0173 }, + { 0x03fd, 0x0169 }, + { 0x03fe, 0x016b }, + { 0x047e, 0x203e }, + { 0x04a1, 0x3002 }, + { 0x04a2, 0x300c }, + { 0x04a3, 0x300d }, + { 0x04a4, 0x3001 }, + { 0x04a5, 0x30fb }, + { 0x04a6, 0x30f2 }, + { 0x04a7, 0x30a1 }, + { 0x04a8, 0x30a3 }, + { 0x04a9, 0x30a5 }, + { 0x04aa, 0x30a7 }, + { 0x04ab, 0x30a9 }, + { 0x04ac, 0x30e3 }, + { 0x04ad, 0x30e5 }, + { 0x04ae, 0x30e7 }, + { 0x04af, 0x30c3 }, + { 0x04b0, 0x30fc }, + { 0x04b1, 0x30a2 }, + { 0x04b2, 0x30a4 }, + { 0x04b3, 0x30a6 }, + { 0x04b4, 0x30a8 }, + { 0x04b5, 0x30aa }, + { 0x04b6, 0x30ab }, + { 0x04b7, 0x30ad }, + { 0x04b8, 0x30af }, + { 0x04b9, 0x30b1 }, + { 0x04ba, 0x30b3 }, + { 0x04bb, 0x30b5 }, + { 0x04bc, 0x30b7 }, + { 0x04bd, 0x30b9 }, + { 0x04be, 0x30bb }, + { 0x04bf, 0x30bd }, + { 0x04c0, 0x30bf }, + { 0x04c1, 0x30c1 }, + { 0x04c2, 0x30c4 }, + { 0x04c3, 0x30c6 }, + { 0x04c4, 0x30c8 }, + { 0x04c5, 0x30ca }, + { 0x04c6, 0x30cb }, + { 0x04c7, 0x30cc }, + { 0x04c8, 0x30cd }, + { 0x04c9, 0x30ce }, + { 0x04ca, 0x30cf }, + { 0x04cb, 0x30d2 }, + { 0x04cc, 0x30d5 }, + { 0x04cd, 0x30d8 }, + { 0x04ce, 0x30db }, + { 0x04cf, 0x30de }, + { 0x04d0, 0x30df }, + { 0x04d1, 0x30e0 }, + { 0x04d2, 0x30e1 }, + { 0x04d3, 0x30e2 }, + { 0x04d4, 0x30e4 }, + { 0x04d5, 0x30e6 }, + { 0x04d6, 0x30e8 }, + { 0x04d7, 0x30e9 }, + { 0x04d8, 0x30ea }, + { 0x04d9, 0x30eb }, + { 0x04da, 0x30ec }, + { 0x04db, 0x30ed }, + { 0x04dc, 0x30ef }, + { 0x04dd, 0x30f3 }, + { 0x04de, 0x309b }, + { 0x04df, 0x309c }, + { 0x05ac, 0x060c }, + { 0x05bb, 0x061b }, + { 0x05bf, 0x061f }, + { 0x05c1, 0x0621 }, + { 0x05c2, 0x0622 }, + { 0x05c3, 0x0623 }, + { 0x05c4, 0x0624 }, + { 0x05c5, 0x0625 }, + { 0x05c6, 0x0626 }, + { 0x05c7, 0x0627 }, + { 0x05c8, 0x0628 }, + { 0x05c9, 0x0629 }, + { 0x05ca, 0x062a }, + { 0x05cb, 0x062b }, + { 0x05cc, 0x062c }, + { 0x05cd, 0x062d }, + { 0x05ce, 0x062e }, + { 0x05cf, 0x062f }, + { 0x05d0, 0x0630 }, + { 0x05d1, 0x0631 }, + { 0x05d2, 0x0632 }, + { 0x05d3, 0x0633 }, + { 0x05d4, 0x0634 }, + { 0x05d5, 0x0635 }, + { 0x05d6, 0x0636 }, + { 0x05d7, 0x0637 }, + { 0x05d8, 0x0638 }, + { 0x05d9, 0x0639 }, + { 0x05da, 0x063a }, + { 0x05e0, 0x0640 }, + { 0x05e1, 0x0641 }, + { 0x05e2, 0x0642 }, + { 0x05e3, 0x0643 }, + { 0x05e4, 0x0644 }, + { 0x05e5, 0x0645 }, + { 0x05e6, 0x0646 }, + { 0x05e7, 0x0647 }, + { 0x05e8, 0x0648 }, + { 0x05e9, 0x0649 }, + { 0x05ea, 0x064a }, + { 0x05eb, 0x064b }, + { 0x05ec, 0x064c }, + { 0x05ed, 0x064d }, + { 0x05ee, 0x064e }, + { 0x05ef, 0x064f }, + { 0x05f0, 0x0650 }, + { 0x05f1, 0x0651 }, + { 0x05f2, 0x0652 }, + { 0x06a1, 0x0452 }, + { 0x06a2, 0x0453 }, + { 0x06a3, 0x0451 }, + { 0x06a4, 0x0454 }, + { 0x06a5, 0x0455 }, + { 0x06a6, 0x0456 }, + { 0x06a7, 0x0457 }, + { 0x06a8, 0x0458 }, + { 0x06a9, 0x0459 }, + { 0x06aa, 0x045a }, + { 0x06ab, 0x045b }, + { 0x06ac, 0x045c }, + { 0x06ae, 0x045e }, + { 0x06af, 0x045f }, + { 0x06b0, 0x2116 }, + { 0x06b1, 0x0402 }, + { 0x06b2, 0x0403 }, + { 0x06b3, 0x0401 }, + { 0x06b4, 0x0404 }, + { 0x06b5, 0x0405 }, + { 0x06b6, 0x0406 }, + { 0x06b7, 0x0407 }, + { 0x06b8, 0x0408 }, + { 0x06b9, 0x0409 }, + { 0x06ba, 0x040a }, + { 0x06bb, 0x040b }, + { 0x06bc, 0x040c }, + { 0x06be, 0x040e }, + { 0x06bf, 0x040f }, + { 0x06c0, 0x044e }, + { 0x06c1, 0x0430 }, + { 0x06c2, 0x0431 }, + { 0x06c3, 0x0446 }, + { 0x06c4, 0x0434 }, + { 0x06c5, 0x0435 }, + { 0x06c6, 0x0444 }, + { 0x06c7, 0x0433 }, + { 0x06c8, 0x0445 }, + { 0x06c9, 0x0438 }, + { 0x06ca, 0x0439 }, + { 0x06cb, 0x043a }, + { 0x06cc, 0x043b }, + { 0x06cd, 0x043c }, + { 0x06ce, 0x043d }, + { 0x06cf, 0x043e }, + { 0x06d0, 0x043f }, + { 0x06d1, 0x044f }, + { 0x06d2, 0x0440 }, + { 0x06d3, 0x0441 }, + { 0x06d4, 0x0442 }, + { 0x06d5, 0x0443 }, + { 0x06d6, 0x0436 }, + { 0x06d7, 0x0432 }, + { 0x06d8, 0x044c }, + { 0x06d9, 0x044b }, + { 0x06da, 0x0437 }, + { 0x06db, 0x0448 }, + { 0x06dc, 0x044d }, + { 0x06dd, 0x0449 }, + { 0x06de, 0x0447 }, + { 0x06df, 0x044a }, + { 0x06e0, 0x042e }, + { 0x06e1, 0x0410 }, + { 0x06e2, 0x0411 }, + { 0x06e3, 0x0426 }, + { 0x06e4, 0x0414 }, + { 0x06e5, 0x0415 }, + { 0x06e6, 0x0424 }, + { 0x06e7, 0x0413 }, + { 0x06e8, 0x0425 }, + { 0x06e9, 0x0418 }, + { 0x06ea, 0x0419 }, + { 0x06eb, 0x041a }, + { 0x06ec, 0x041b }, + { 0x06ed, 0x041c }, + { 0x06ee, 0x041d }, + { 0x06ef, 0x041e }, + { 0x06f0, 0x041f }, + { 0x06f1, 0x042f }, + { 0x06f2, 0x0420 }, + { 0x06f3, 0x0421 }, + { 0x06f4, 0x0422 }, + { 0x06f5, 0x0423 }, + { 0x06f6, 0x0416 }, + { 0x06f7, 0x0412 }, + { 0x06f8, 0x042c }, + { 0x06f9, 0x042b }, + { 0x06fa, 0x0417 }, + { 0x06fb, 0x0428 }, + { 0x06fc, 0x042d }, + { 0x06fd, 0x0429 }, + { 0x06fe, 0x0427 }, + { 0x06ff, 0x042a }, + { 0x07a1, 0x0386 }, + { 0x07a2, 0x0388 }, + { 0x07a3, 0x0389 }, + { 0x07a4, 0x038a }, + { 0x07a5, 0x03aa }, + { 0x07a7, 0x038c }, + { 0x07a8, 0x038e }, + { 0x07a9, 0x03ab }, + { 0x07ab, 0x038f }, + { 0x07ae, 0x0385 }, + { 0x07af, 0x2015 }, + { 0x07b1, 0x03ac }, + { 0x07b2, 0x03ad }, + { 0x07b3, 0x03ae }, + { 0x07b4, 0x03af }, + { 0x07b5, 0x03ca }, + { 0x07b6, 0x0390 }, + { 0x07b7, 0x03cc }, + { 0x07b8, 0x03cd }, + { 0x07b9, 0x03cb }, + { 0x07ba, 0x03b0 }, + { 0x07bb, 0x03ce }, + { 0x07c1, 0x0391 }, + { 0x07c2, 0x0392 }, + { 0x07c3, 0x0393 }, + { 0x07c4, 0x0394 }, + { 0x07c5, 0x0395 }, + { 0x07c6, 0x0396 }, + { 0x07c7, 0x0397 }, + { 0x07c8, 0x0398 }, + { 0x07c9, 0x0399 }, + { 0x07ca, 0x039a }, + { 0x07cb, 0x039b }, + { 0x07cc, 0x039c }, + { 0x07cd, 0x039d }, + { 0x07ce, 0x039e }, + { 0x07cf, 0x039f }, + { 0x07d0, 0x03a0 }, + { 0x07d1, 0x03a1 }, + { 0x07d2, 0x03a3 }, + { 0x07d4, 0x03a4 }, + { 0x07d5, 0x03a5 }, + { 0x07d6, 0x03a6 }, + { 0x07d7, 0x03a7 }, + { 0x07d8, 0x03a8 }, + { 0x07d9, 0x03a9 }, + { 0x07e1, 0x03b1 }, + { 0x07e2, 0x03b2 }, + { 0x07e3, 0x03b3 }, + { 0x07e4, 0x03b4 }, + { 0x07e5, 0x03b5 }, + { 0x07e6, 0x03b6 }, + { 0x07e7, 0x03b7 }, + { 0x07e8, 0x03b8 }, + { 0x07e9, 0x03b9 }, + { 0x07ea, 0x03ba }, + { 0x07eb, 0x03bb }, + { 0x07ec, 0x03bc }, + { 0x07ed, 0x03bd }, + { 0x07ee, 0x03be }, + { 0x07ef, 0x03bf }, + { 0x07f0, 0x03c0 }, + { 0x07f1, 0x03c1 }, + { 0x07f2, 0x03c3 }, + { 0x07f3, 0x03c2 }, + { 0x07f4, 0x03c4 }, + { 0x07f5, 0x03c5 }, + { 0x07f6, 0x03c6 }, + { 0x07f7, 0x03c7 }, + { 0x07f8, 0x03c8 }, + { 0x07f9, 0x03c9 }, + { 0x08a1, 0x23b7 }, + { 0x08a2, 0x250c }, + { 0x08a3, 0x2500 }, + { 0x08a4, 0x2320 }, + { 0x08a5, 0x2321 }, + { 0x08a6, 0x2502 }, + { 0x08a7, 0x23a1 }, + { 0x08a8, 0x23a3 }, + { 0x08a9, 0x23a4 }, + { 0x08aa, 0x23a6 }, + { 0x08ab, 0x239b }, + { 0x08ac, 0x239d }, + { 0x08ad, 0x239e }, + { 0x08ae, 0x23a0 }, + { 0x08af, 0x23a8 }, + { 0x08b0, 0x23ac }, + { 0x08bc, 0x2264 }, + { 0x08bd, 0x2260 }, + { 0x08be, 0x2265 }, + { 0x08bf, 0x222b }, + { 0x08c0, 0x2234 }, + { 0x08c1, 0x221d }, + { 0x08c2, 0x221e }, + { 0x08c5, 0x2207 }, + { 0x08c8, 0x223c }, + { 0x08c9, 0x2243 }, + { 0x08cd, 0x21d4 }, + { 0x08ce, 0x21d2 }, + { 0x08cf, 0x2261 }, + { 0x08d6, 0x221a }, + { 0x08da, 0x2282 }, + { 0x08db, 0x2283 }, + { 0x08dc, 0x2229 }, + { 0x08dd, 0x222a }, + { 0x08de, 0x2227 }, + { 0x08df, 0x2228 }, + { 0x08ef, 0x2202 }, + { 0x08f6, 0x0192 }, + { 0x08fb, 0x2190 }, + { 0x08fc, 0x2191 }, + { 0x08fd, 0x2192 }, + { 0x08fe, 0x2193 }, + { 0x09e0, 0x25c6 }, + { 0x09e1, 0x2592 }, + { 0x09e2, 0x2409 }, + { 0x09e3, 0x240c }, + { 0x09e4, 0x240d }, + { 0x09e5, 0x240a }, + { 0x09e8, 0x2424 }, + { 0x09e9, 0x240b }, + { 0x09ea, 0x2518 }, + { 0x09eb, 0x2510 }, + { 0x09ec, 0x250c }, + { 0x09ed, 0x2514 }, + { 0x09ee, 0x253c }, + { 0x09ef, 0x23ba }, + { 0x09f0, 0x23bb }, + { 0x09f1, 0x2500 }, + { 0x09f2, 0x23bc }, + { 0x09f3, 0x23bd }, + { 0x09f4, 0x251c }, + { 0x09f5, 0x2524 }, + { 0x09f6, 0x2534 }, + { 0x09f7, 0x252c }, + { 0x09f8, 0x2502 }, + { 0x0aa1, 0x2003 }, + { 0x0aa2, 0x2002 }, + { 0x0aa3, 0x2004 }, + { 0x0aa4, 0x2005 }, + { 0x0aa5, 0x2007 }, + { 0x0aa6, 0x2008 }, + { 0x0aa7, 0x2009 }, + { 0x0aa8, 0x200a }, + { 0x0aa9, 0x2014 }, + { 0x0aaa, 0x2013 }, + { 0x0aae, 0x2026 }, + { 0x0aaf, 0x2025 }, + { 0x0ab0, 0x2153 }, + { 0x0ab1, 0x2154 }, + { 0x0ab2, 0x2155 }, + { 0x0ab3, 0x2156 }, + { 0x0ab4, 0x2157 }, + { 0x0ab5, 0x2158 }, + { 0x0ab6, 0x2159 }, + { 0x0ab7, 0x215a }, + { 0x0ab8, 0x2105 }, + { 0x0abb, 0x2012 }, + { 0x0abc, 0x2329 }, + { 0x0abe, 0x232a }, + { 0x0ac3, 0x215b }, + { 0x0ac4, 0x215c }, + { 0x0ac5, 0x215d }, + { 0x0ac6, 0x215e }, + { 0x0ac9, 0x2122 }, + { 0x0aca, 0x2613 }, + { 0x0acc, 0x25c1 }, + { 0x0acd, 0x25b7 }, + { 0x0ace, 0x25cb }, + { 0x0acf, 0x25af }, + { 0x0ad0, 0x2018 }, + { 0x0ad1, 0x2019 }, + { 0x0ad2, 0x201c }, + { 0x0ad3, 0x201d }, + { 0x0ad4, 0x211e }, + { 0x0ad6, 0x2032 }, + { 0x0ad7, 0x2033 }, + { 0x0ad9, 0x271d }, + { 0x0adb, 0x25ac }, + { 0x0adc, 0x25c0 }, + { 0x0add, 0x25b6 }, + { 0x0ade, 0x25cf }, + { 0x0adf, 0x25ae }, + { 0x0ae0, 0x25e6 }, + { 0x0ae1, 0x25ab }, + { 0x0ae2, 0x25ad }, + { 0x0ae3, 0x25b3 }, + { 0x0ae4, 0x25bd }, + { 0x0ae5, 0x2606 }, + { 0x0ae6, 0x2022 }, + { 0x0ae7, 0x25aa }, + { 0x0ae8, 0x25b2 }, + { 0x0ae9, 0x25bc }, + { 0x0aea, 0x261c }, + { 0x0aeb, 0x261e }, + { 0x0aec, 0x2663 }, + { 0x0aed, 0x2666 }, + { 0x0aee, 0x2665 }, + { 0x0af0, 0x2720 }, + { 0x0af1, 0x2020 }, + { 0x0af2, 0x2021 }, + { 0x0af3, 0x2713 }, + { 0x0af4, 0x2717 }, + { 0x0af5, 0x266f }, + { 0x0af6, 0x266d }, + { 0x0af7, 0x2642 }, + { 0x0af8, 0x2640 }, + { 0x0af9, 0x260e }, + { 0x0afa, 0x2315 }, + { 0x0afb, 0x2117 }, + { 0x0afc, 0x2038 }, + { 0x0afd, 0x201a }, + { 0x0afe, 0x201e }, + { 0x0ba3, 0x003c }, + { 0x0ba6, 0x003e }, + { 0x0ba8, 0x2228 }, + { 0x0ba9, 0x2227 }, + { 0x0bc0, 0x00af }, + { 0x0bc2, 0x22a5 }, + { 0x0bc3, 0x2229 }, + { 0x0bc4, 0x230a }, + { 0x0bc6, 0x005f }, + { 0x0bca, 0x2218 }, + { 0x0bcc, 0x2395 }, + { 0x0bce, 0x22a4 }, + { 0x0bcf, 0x25cb }, + { 0x0bd3, 0x2308 }, + { 0x0bd6, 0x222a }, + { 0x0bd8, 0x2283 }, + { 0x0bda, 0x2282 }, + { 0x0bdc, 0x22a2 }, + { 0x0bfc, 0x22a3 }, + { 0x0cdf, 0x2017 }, + { 0x0ce0, 0x05d0 }, + { 0x0ce1, 0x05d1 }, + { 0x0ce2, 0x05d2 }, + { 0x0ce3, 0x05d3 }, + { 0x0ce4, 0x05d4 }, + { 0x0ce5, 0x05d5 }, + { 0x0ce6, 0x05d6 }, + { 0x0ce7, 0x05d7 }, + { 0x0ce8, 0x05d8 }, + { 0x0ce9, 0x05d9 }, + { 0x0cea, 0x05da }, + { 0x0ceb, 0x05db }, + { 0x0cec, 0x05dc }, + { 0x0ced, 0x05dd }, + { 0x0cee, 0x05de }, + { 0x0cef, 0x05df }, + { 0x0cf0, 0x05e0 }, + { 0x0cf1, 0x05e1 }, + { 0x0cf2, 0x05e2 }, + { 0x0cf3, 0x05e3 }, + { 0x0cf4, 0x05e4 }, + { 0x0cf5, 0x05e5 }, + { 0x0cf6, 0x05e6 }, + { 0x0cf7, 0x05e7 }, + { 0x0cf8, 0x05e8 }, + { 0x0cf9, 0x05e9 }, + { 0x0cfa, 0x05ea }, + { 0x0da1, 0x0e01 }, + { 0x0da2, 0x0e02 }, + { 0x0da3, 0x0e03 }, + { 0x0da4, 0x0e04 }, + { 0x0da5, 0x0e05 }, + { 0x0da6, 0x0e06 }, + { 0x0da7, 0x0e07 }, + { 0x0da8, 0x0e08 }, + { 0x0da9, 0x0e09 }, + { 0x0daa, 0x0e0a }, + { 0x0dab, 0x0e0b }, + { 0x0dac, 0x0e0c }, + { 0x0dad, 0x0e0d }, + { 0x0dae, 0x0e0e }, + { 0x0daf, 0x0e0f }, + { 0x0db0, 0x0e10 }, + { 0x0db1, 0x0e11 }, + { 0x0db2, 0x0e12 }, + { 0x0db3, 0x0e13 }, + { 0x0db4, 0x0e14 }, + { 0x0db5, 0x0e15 }, + { 0x0db6, 0x0e16 }, + { 0x0db7, 0x0e17 }, + { 0x0db8, 0x0e18 }, + { 0x0db9, 0x0e19 }, + { 0x0dba, 0x0e1a }, + { 0x0dbb, 0x0e1b }, + { 0x0dbc, 0x0e1c }, + { 0x0dbd, 0x0e1d }, + { 0x0dbe, 0x0e1e }, + { 0x0dbf, 0x0e1f }, + { 0x0dc0, 0x0e20 }, + { 0x0dc1, 0x0e21 }, + { 0x0dc2, 0x0e22 }, + { 0x0dc3, 0x0e23 }, + { 0x0dc4, 0x0e24 }, + { 0x0dc5, 0x0e25 }, + { 0x0dc6, 0x0e26 }, + { 0x0dc7, 0x0e27 }, + { 0x0dc8, 0x0e28 }, + { 0x0dc9, 0x0e29 }, + { 0x0dca, 0x0e2a }, + { 0x0dcb, 0x0e2b }, + { 0x0dcc, 0x0e2c }, + { 0x0dcd, 0x0e2d }, + { 0x0dce, 0x0e2e }, + { 0x0dcf, 0x0e2f }, + { 0x0dd0, 0x0e30 }, + { 0x0dd1, 0x0e31 }, + { 0x0dd2, 0x0e32 }, + { 0x0dd3, 0x0e33 }, + { 0x0dd4, 0x0e34 }, + { 0x0dd5, 0x0e35 }, + { 0x0dd6, 0x0e36 }, + { 0x0dd7, 0x0e37 }, + { 0x0dd8, 0x0e38 }, + { 0x0dd9, 0x0e39 }, + { 0x0dda, 0x0e3a }, + { 0x0ddf, 0x0e3f }, + { 0x0de0, 0x0e40 }, + { 0x0de1, 0x0e41 }, + { 0x0de2, 0x0e42 }, + { 0x0de3, 0x0e43 }, + { 0x0de4, 0x0e44 }, + { 0x0de5, 0x0e45 }, + { 0x0de6, 0x0e46 }, + { 0x0de7, 0x0e47 }, + { 0x0de8, 0x0e48 }, + { 0x0de9, 0x0e49 }, + { 0x0dea, 0x0e4a }, + { 0x0deb, 0x0e4b }, + { 0x0dec, 0x0e4c }, + { 0x0ded, 0x0e4d }, + { 0x0df0, 0x0e50 }, + { 0x0df1, 0x0e51 }, + { 0x0df2, 0x0e52 }, + { 0x0df3, 0x0e53 }, + { 0x0df4, 0x0e54 }, + { 0x0df5, 0x0e55 }, + { 0x0df6, 0x0e56 }, + { 0x0df7, 0x0e57 }, + { 0x0df8, 0x0e58 }, + { 0x0df9, 0x0e59 }, + { 0x0ea1, 0x3131 }, + { 0x0ea2, 0x3132 }, + { 0x0ea3, 0x3133 }, + { 0x0ea4, 0x3134 }, + { 0x0ea5, 0x3135 }, + { 0x0ea6, 0x3136 }, + { 0x0ea7, 0x3137 }, + { 0x0ea8, 0x3138 }, + { 0x0ea9, 0x3139 }, + { 0x0eaa, 0x313a }, + { 0x0eab, 0x313b }, + { 0x0eac, 0x313c }, + { 0x0ead, 0x313d }, + { 0x0eae, 0x313e }, + { 0x0eaf, 0x313f }, + { 0x0eb0, 0x3140 }, + { 0x0eb1, 0x3141 }, + { 0x0eb2, 0x3142 }, + { 0x0eb3, 0x3143 }, + { 0x0eb4, 0x3144 }, + { 0x0eb5, 0x3145 }, + { 0x0eb6, 0x3146 }, + { 0x0eb7, 0x3147 }, + { 0x0eb8, 0x3148 }, + { 0x0eb9, 0x3149 }, + { 0x0eba, 0x314a }, + { 0x0ebb, 0x314b }, + { 0x0ebc, 0x314c }, + { 0x0ebd, 0x314d }, + { 0x0ebe, 0x314e }, + { 0x0ebf, 0x314f }, + { 0x0ec0, 0x3150 }, + { 0x0ec1, 0x3151 }, + { 0x0ec2, 0x3152 }, + { 0x0ec3, 0x3153 }, + { 0x0ec4, 0x3154 }, + { 0x0ec5, 0x3155 }, + { 0x0ec6, 0x3156 }, + { 0x0ec7, 0x3157 }, + { 0x0ec8, 0x3158 }, + { 0x0ec9, 0x3159 }, + { 0x0eca, 0x315a }, + { 0x0ecb, 0x315b }, + { 0x0ecc, 0x315c }, + { 0x0ecd, 0x315d }, + { 0x0ece, 0x315e }, + { 0x0ecf, 0x315f }, + { 0x0ed0, 0x3160 }, + { 0x0ed1, 0x3161 }, + { 0x0ed2, 0x3162 }, + { 0x0ed3, 0x3163 }, + { 0x0ed4, 0x11a8 }, + { 0x0ed5, 0x11a9 }, + { 0x0ed6, 0x11aa }, + { 0x0ed7, 0x11ab }, + { 0x0ed8, 0x11ac }, + { 0x0ed9, 0x11ad }, + { 0x0eda, 0x11ae }, + { 0x0edb, 0x11af }, + { 0x0edc, 0x11b0 }, + { 0x0edd, 0x11b1 }, + { 0x0ede, 0x11b2 }, + { 0x0edf, 0x11b3 }, + { 0x0ee0, 0x11b4 }, + { 0x0ee1, 0x11b5 }, + { 0x0ee2, 0x11b6 }, + { 0x0ee3, 0x11b7 }, + { 0x0ee4, 0x11b8 }, + { 0x0ee5, 0x11b9 }, + { 0x0ee6, 0x11ba }, + { 0x0ee7, 0x11bb }, + { 0x0ee8, 0x11bc }, + { 0x0ee9, 0x11bd }, + { 0x0eea, 0x11be }, + { 0x0eeb, 0x11bf }, + { 0x0eec, 0x11c0 }, + { 0x0eed, 0x11c1 }, + { 0x0eee, 0x11c2 }, + { 0x0eef, 0x316d }, + { 0x0ef0, 0x3171 }, + { 0x0ef1, 0x3178 }, + { 0x0ef2, 0x317f }, + { 0x0ef3, 0x3181 }, + { 0x0ef4, 0x3184 }, + { 0x0ef5, 0x3186 }, + { 0x0ef6, 0x318d }, + { 0x0ef7, 0x318e }, + { 0x0ef8, 0x11eb }, + { 0x0ef9, 0x11f0 }, + { 0x0efa, 0x11f9 }, + { 0x0eff, 0x20a9 }, + { 0x13a4, 0x20ac }, + { 0x13bc, 0x0152 }, + { 0x13bd, 0x0153 }, + { 0x13be, 0x0178 }, + { 0x20ac, 0x20ac }, + { 0xfe50, '`' }, + { 0xfe51, 0x00b4 }, + { 0xfe52, '^' }, + { 0xfe53, '~' }, + { 0xfe54, 0x00af }, + { 0xfe55, 0x02d8 }, + { 0xfe56, 0x02d9 }, + { 0xfe57, 0x00a8 }, + { 0xfe58, 0x02da }, + { 0xfe59, 0x02dd }, + { 0xfe5a, 0x02c7 }, + { 0xfe5b, 0x00b8 }, + { 0xfe5c, 0x02db }, + { 0xfe5d, 0x037a }, + { 0xfe5e, 0x309b }, + { 0xfe5f, 0x309c }, + { 0xfe63, '/' }, + { 0xfe64, 0x02bc }, + { 0xfe65, 0x02bd }, + { 0xfe66, 0x02f5 }, + { 0xfe67, 0x02f3 }, + { 0xfe68, 0x02cd }, + { 0xfe69, 0xa788 }, + { 0xfe6a, 0x02f7 }, + { 0xfe6e, ',' }, + { 0xfe6f, 0x00a4 }, + { 0xfe80, 'a' }, // XK_dead_a + { 0xfe81, 'A' }, // XK_dead_A + { 0xfe82, 'e' }, // XK_dead_e + { 0xfe83, 'E' }, // XK_dead_E + { 0xfe84, 'i' }, // XK_dead_i + { 0xfe85, 'I' }, // XK_dead_I + { 0xfe86, 'o' }, // XK_dead_o + { 0xfe87, 'O' }, // XK_dead_O + { 0xfe88, 'u' }, // XK_dead_u + { 0xfe89, 'U' }, // XK_dead_U + { 0xfe8a, 0x0259 }, + { 0xfe8b, 0x018f }, + { 0xfe8c, 0x00b5 }, + { 0xfe90, '_' }, + { 0xfe91, 0x02c8 }, + { 0xfe92, 0x02cc }, + { 0xff80 /*XKB_KEY_KP_Space*/, ' ' }, + { 0xff95 /*XKB_KEY_KP_7*/, 0x0037 }, + { 0xff96 /*XKB_KEY_KP_4*/, 0x0034 }, + { 0xff97 /*XKB_KEY_KP_8*/, 0x0038 }, + { 0xff98 /*XKB_KEY_KP_6*/, 0x0036 }, + { 0xff99 /*XKB_KEY_KP_2*/, 0x0032 }, + { 0xff9a /*XKB_KEY_KP_9*/, 0x0039 }, + { 0xff9b /*XKB_KEY_KP_3*/, 0x0033 }, + { 0xff9c /*XKB_KEY_KP_1*/, 0x0031 }, + { 0xff9d /*XKB_KEY_KP_5*/, 0x0035 }, + { 0xff9e /*XKB_KEY_KP_0*/, 0x0030 }, + { 0xffaa /*XKB_KEY_KP_Multiply*/, '*' }, + { 0xffab /*XKB_KEY_KP_Add*/, '+' }, + { 0xffac /*XKB_KEY_KP_Separator*/, ',' }, + { 0xffad /*XKB_KEY_KP_Subtract*/, '-' }, + { 0xffae /*XKB_KEY_KP_Decimal*/, '.' }, + { 0xffaf /*XKB_KEY_KP_Divide*/, '/' }, + { 0xffb0 /*XKB_KEY_KP_0*/, 0x0030 }, + { 0xffb1 /*XKB_KEY_KP_1*/, 0x0031 }, + { 0xffb2 /*XKB_KEY_KP_2*/, 0x0032 }, + { 0xffb3 /*XKB_KEY_KP_3*/, 0x0033 }, + { 0xffb4 /*XKB_KEY_KP_4*/, 0x0034 }, + { 0xffb5 /*XKB_KEY_KP_5*/, 0x0035 }, + { 0xffb6 /*XKB_KEY_KP_6*/, 0x0036 }, + { 0xffb7 /*XKB_KEY_KP_7*/, 0x0037 }, + { 0xffb8 /*XKB_KEY_KP_8*/, 0x0038 }, + { 0xffb9 /*XKB_KEY_KP_9*/, 0x0039 }, + { 0xffbd /*XKB_KEY_KP_Equal*/, '=' } +}; + + +////////////////////////////////////////////////////////////////////////// +////// GLFW internal API ////// +////////////////////////////////////////////////////////////////////////// + +// Convert XKB KeySym to Unicode +// +uint32_t _glfwKeySym2Unicode(unsigned int keysym) +{ + int min = 0; + int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; + int mid; + + // First check for Latin-1 characters (1:1 mapping) + if ((keysym >= 0x0020 && keysym <= 0x007e) || + (keysym >= 0x00a0 && keysym <= 0x00ff)) + { + return keysym; + } + + // Also check for directly encoded 24-bit UCS characters + if ((keysym & 0xff000000) == 0x01000000) + return keysym & 0x00ffffff; + + // Binary search in table + while (max >= min) + { + mid = (min + max) / 2; + if (keysymtab[mid].keysym < keysym) + min = mid + 1; + else if (keysymtab[mid].keysym > keysym) + max = mid - 1; + else + return keysymtab[mid].ucs; + } + + // No matching Unicode value found + return GLFW_INVALID_CODEPOINT; +} + diff --git a/thirdparty/imgui_suite/glfw/src/xkb_unicode.h b/thirdparty/imgui_suite/glfw/src/xkb_unicode.h new file mode 100644 index 00000000000..b07408f617c --- /dev/null +++ b/thirdparty/imgui_suite/glfw/src/xkb_unicode.h @@ -0,0 +1,30 @@ +//======================================================================== +// GLFW 3.4 Linux - www.glfw.org +//------------------------------------------------------------------------ +// Copyright (c) 2014 Jonas Ådahl +// +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +//======================================================================== + +#define GLFW_INVALID_CODEPOINT 0xffffffffu + +uint32_t _glfwKeySym2Unicode(unsigned int keysym); + diff --git a/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_dx11.cpp b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_dx11.cpp new file mode 100644 index 00000000000..f2b20e4a440 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_dx11.cpp @@ -0,0 +1,739 @@ +// dear imgui: Renderer Backend for DirectX11 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-05-19: DirectX11: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-02-18: DirectX11: Change blending equation to preserve alpha in output buffer. +// 2019-08-01: DirectX11: Fixed code querying the Geometry Shader state (would generally error with Debug layer enabled). +// 2019-07-21: DirectX11: Backup, clear and restore Geometry Shader is any is bound when calling ImGui_ImplDX10_RenderDrawData. Clearing Hull/Domain/Compute shaders without backup/restore. +// 2019-05-29: DirectX11: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: DirectX11: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-08-01: DirectX11: Querying for IDXGIFactory instead of IDXGIFactory1 to increase compatibility. +// 2018-07-13: DirectX11: Fixed unreleased resources in Init and Shutdown functions. +// 2018-06-08: Misc: Extracted imgui_impl_dx11.cpp/.h away from the old combined DX11+Win32 example. +// 2018-06-08: DirectX11: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX11_RenderDrawData() in the .h file so you can call it yourself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2016-05-07: DirectX11: Disabling depth-write. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_dx11.h" + +// DirectX +#include +#include +#include +#ifdef _MSC_VER +#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. +#endif + +// DirectX11 data +struct ImGui_ImplDX11_Data +{ + ID3D11Device* pd3dDevice; + ID3D11DeviceContext* pd3dDeviceContext; + IDXGIFactory* pFactory; + ID3D11Buffer* pVB; + ID3D11Buffer* pIB; + ID3D11VertexShader* pVertexShader; + ID3D11InputLayout* pInputLayout; + ID3D11Buffer* pVertexConstantBuffer; + ID3D11PixelShader* pPixelShader; + ID3D11SamplerState* pFontSampler; + ID3D11ShaderResourceView* pFontTextureView; + ID3D11RasterizerState* pRasterizerState; + ID3D11BlendState* pBlendState; + ID3D11DepthStencilState* pDepthStencilState; + int VertexBufferSize; + int IndexBufferSize; + + ImGui_ImplDX11_Data() { memset((void*)this, 0, sizeof(*this)); VertexBufferSize = 5000; IndexBufferSize = 10000; } +}; + +struct VERTEX_CONSTANT_BUFFER_DX11 +{ + float mvp[4][4]; +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplDX11_Data* ImGui_ImplDX11_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplDX11_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplDX11_InitPlatformInterface(); +static void ImGui_ImplDX11_ShutdownPlatformInterface(); + +// Functions +static void ImGui_ImplDX11_SetupRenderState(ImDrawData* draw_data, ID3D11DeviceContext* ctx) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + + // Setup viewport + D3D11_VIEWPORT vp; + memset(&vp, 0, sizeof(D3D11_VIEWPORT)); + vp.Width = draw_data->DisplaySize.x; + vp.Height = draw_data->DisplaySize.y; + vp.MinDepth = 0.0f; + vp.MaxDepth = 1.0f; + vp.TopLeftX = vp.TopLeftY = 0; + ctx->RSSetViewports(1, &vp); + + // Setup shader and vertex buffers + unsigned int stride = sizeof(ImDrawVert); + unsigned int offset = 0; + ctx->IASetInputLayout(bd->pInputLayout); + ctx->IASetVertexBuffers(0, 1, &bd->pVB, &stride, &offset); + ctx->IASetIndexBuffer(bd->pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); + ctx->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); + ctx->VSSetShader(bd->pVertexShader, nullptr, 0); + ctx->VSSetConstantBuffers(0, 1, &bd->pVertexConstantBuffer); + ctx->PSSetShader(bd->pPixelShader, nullptr, 0); + ctx->PSSetSamplers(0, 1, &bd->pFontSampler); + ctx->GSSetShader(nullptr, nullptr, 0); + ctx->HSSetShader(nullptr, nullptr, 0); // In theory we should backup and restore this as well.. very infrequently used.. + ctx->DSSetShader(nullptr, nullptr, 0); // In theory we should backup and restore this as well.. very infrequently used.. + ctx->CSSetShader(nullptr, nullptr, 0); // In theory we should backup and restore this as well.. very infrequently used.. + + // Setup blend state + const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; + ctx->OMSetBlendState(bd->pBlendState, blend_factor, 0xffffffff); + ctx->OMSetDepthStencilState(bd->pDepthStencilState, 0); + ctx->RSSetState(bd->pRasterizerState); +} + +// Render function +void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ID3D11DeviceContext* ctx = bd->pd3dDeviceContext; + + // Create and grow vertex/index buffers if needed + if (!bd->pVB || bd->VertexBufferSize < draw_data->TotalVtxCount) + { + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + bd->VertexBufferSize = draw_data->TotalVtxCount + 5000; + D3D11_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.ByteWidth = bd->VertexBufferSize * sizeof(ImDrawVert); + desc.BindFlags = D3D11_BIND_VERTEX_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + if (bd->pd3dDevice->CreateBuffer(&desc, nullptr, &bd->pVB) < 0) + return; + } + if (!bd->pIB || bd->IndexBufferSize < draw_data->TotalIdxCount) + { + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + bd->IndexBufferSize = draw_data->TotalIdxCount + 10000; + D3D11_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.ByteWidth = bd->IndexBufferSize * sizeof(ImDrawIdx); + desc.BindFlags = D3D11_BIND_INDEX_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + if (bd->pd3dDevice->CreateBuffer(&desc, nullptr, &bd->pIB) < 0) + return; + } + + // Upload vertex/index data into a single contiguous GPU buffer + D3D11_MAPPED_SUBRESOURCE vtx_resource, idx_resource; + if (ctx->Map(bd->pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &vtx_resource) != S_OK) + return; + if (ctx->Map(bd->pIB, 0, D3D11_MAP_WRITE_DISCARD, 0, &idx_resource) != S_OK) + return; + ImDrawVert* vtx_dst = (ImDrawVert*)vtx_resource.pData; + ImDrawIdx* idx_dst = (ImDrawIdx*)idx_resource.pData; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + vtx_dst += cmd_list->VtxBuffer.Size; + idx_dst += cmd_list->IdxBuffer.Size; + } + ctx->Unmap(bd->pVB, 0); + ctx->Unmap(bd->pIB, 0); + + // Setup orthographic projection matrix into our constant buffer + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + { + D3D11_MAPPED_SUBRESOURCE mapped_resource; + if (ctx->Map(bd->pVertexConstantBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mapped_resource) != S_OK) + return; + VERTEX_CONSTANT_BUFFER_DX11* constant_buffer = (VERTEX_CONSTANT_BUFFER_DX11*)mapped_resource.pData; + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; + float mvp[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 0.5f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, + }; + memcpy(&constant_buffer->mvp, mvp, sizeof(mvp)); + ctx->Unmap(bd->pVertexConstantBuffer, 0); + } + + // Backup DX state that will be modified to restore it afterwards (unfortunately this is very ugly looking and verbose. Close your eyes!) + struct BACKUP_DX11_STATE + { + UINT ScissorRectsCount, ViewportsCount; + D3D11_RECT ScissorRects[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + D3D11_VIEWPORT Viewports[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + ID3D11RasterizerState* RS; + ID3D11BlendState* BlendState; + FLOAT BlendFactor[4]; + UINT SampleMask; + UINT StencilRef; + ID3D11DepthStencilState* DepthStencilState; + ID3D11ShaderResourceView* PSShaderResource; + ID3D11SamplerState* PSSampler; + ID3D11PixelShader* PS; + ID3D11VertexShader* VS; + ID3D11GeometryShader* GS; + UINT PSInstancesCount, VSInstancesCount, GSInstancesCount; + ID3D11ClassInstance *PSInstances[256], *VSInstances[256], *GSInstances[256]; // 256 is max according to PSSetShader documentation + D3D11_PRIMITIVE_TOPOLOGY PrimitiveTopology; + ID3D11Buffer* IndexBuffer, *VertexBuffer, *VSConstantBuffer; + UINT IndexBufferOffset, VertexBufferStride, VertexBufferOffset; + DXGI_FORMAT IndexBufferFormat; + ID3D11InputLayout* InputLayout; + }; + BACKUP_DX11_STATE old = {}; + old.ScissorRectsCount = old.ViewportsCount = D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; + ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); + ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); + ctx->RSGetState(&old.RS); + ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); + ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); + ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); + ctx->PSGetSamplers(0, 1, &old.PSSampler); + old.PSInstancesCount = old.VSInstancesCount = old.GSInstancesCount = 256; + ctx->PSGetShader(&old.PS, old.PSInstances, &old.PSInstancesCount); + ctx->VSGetShader(&old.VS, old.VSInstances, &old.VSInstancesCount); + ctx->VSGetConstantBuffers(0, 1, &old.VSConstantBuffer); + ctx->GSGetShader(&old.GS, old.GSInstances, &old.GSInstancesCount); + + ctx->IAGetPrimitiveTopology(&old.PrimitiveTopology); + ctx->IAGetIndexBuffer(&old.IndexBuffer, &old.IndexBufferFormat, &old.IndexBufferOffset); + ctx->IAGetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); + ctx->IAGetInputLayout(&old.InputLayout); + + // Setup desired DX state + ImGui_ImplDX11_SetupRenderState(draw_data, ctx); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_idx_offset = 0; + int global_vtx_offset = 0; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplDX11_SetupRenderState(draw_data, ctx); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle + const D3D11_RECT r = { (LONG)clip_min.x, (LONG)clip_min.y, (LONG)clip_max.x, (LONG)clip_max.y }; + ctx->RSSetScissorRects(1, &r); + + // Bind texture, Draw + ID3D11ShaderResourceView* texture_srv = (ID3D11ShaderResourceView*)pcmd->GetTexID(); + ctx->PSSetShaderResources(0, 1, &texture_srv); + ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } + + // Restore modified DX state + ctx->RSSetScissorRects(old.ScissorRectsCount, old.ScissorRects); + ctx->RSSetViewports(old.ViewportsCount, old.Viewports); + ctx->RSSetState(old.RS); if (old.RS) old.RS->Release(); + ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.BlendState->Release(); + ctx->OMSetDepthStencilState(old.DepthStencilState, old.StencilRef); if (old.DepthStencilState) old.DepthStencilState->Release(); + ctx->PSSetShaderResources(0, 1, &old.PSShaderResource); if (old.PSShaderResource) old.PSShaderResource->Release(); + ctx->PSSetSamplers(0, 1, &old.PSSampler); if (old.PSSampler) old.PSSampler->Release(); + ctx->PSSetShader(old.PS, old.PSInstances, old.PSInstancesCount); if (old.PS) old.PS->Release(); + for (UINT i = 0; i < old.PSInstancesCount; i++) if (old.PSInstances[i]) old.PSInstances[i]->Release(); + ctx->VSSetShader(old.VS, old.VSInstances, old.VSInstancesCount); if (old.VS) old.VS->Release(); + ctx->VSSetConstantBuffers(0, 1, &old.VSConstantBuffer); if (old.VSConstantBuffer) old.VSConstantBuffer->Release(); + ctx->GSSetShader(old.GS, old.GSInstances, old.GSInstancesCount); if (old.GS) old.GS->Release(); + for (UINT i = 0; i < old.VSInstancesCount; i++) if (old.VSInstances[i]) old.VSInstances[i]->Release(); + ctx->IASetPrimitiveTopology(old.PrimitiveTopology); + ctx->IASetIndexBuffer(old.IndexBuffer, old.IndexBufferFormat, old.IndexBufferOffset); if (old.IndexBuffer) old.IndexBuffer->Release(); + ctx->IASetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); if (old.VertexBuffer) old.VertexBuffer->Release(); + ctx->IASetInputLayout(old.InputLayout); if (old.InputLayout) old.InputLayout->Release(); +} + +static void ImGui_ImplDX11_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // Upload texture to graphics system + { + D3D11_TEXTURE2D_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Width = width; + desc.Height = height; + desc.MipLevels = 1; + desc.ArraySize = 1; + desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + desc.SampleDesc.Count = 1; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + + ID3D11Texture2D* pTexture = nullptr; + D3D11_SUBRESOURCE_DATA subResource; + subResource.pSysMem = pixels; + subResource.SysMemPitch = desc.Width * 4; + subResource.SysMemSlicePitch = 0; + bd->pd3dDevice->CreateTexture2D(&desc, &subResource, &pTexture); + IM_ASSERT(pTexture != nullptr); + + // Create texture view + D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc; + ZeroMemory(&srvDesc, sizeof(srvDesc)); + srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; + srvDesc.Texture2D.MipLevels = desc.MipLevels; + srvDesc.Texture2D.MostDetailedMip = 0; + bd->pd3dDevice->CreateShaderResourceView(pTexture, &srvDesc, &bd->pFontTextureView); + pTexture->Release(); + } + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)bd->pFontTextureView); + + // Create texture sampler + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + { + D3D11_SAMPLER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; + desc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; + desc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; + desc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; + desc.MipLODBias = 0.f; + desc.ComparisonFunc = D3D11_COMPARISON_ALWAYS; + desc.MinLOD = 0.f; + desc.MaxLOD = 0.f; + bd->pd3dDevice->CreateSamplerState(&desc, &bd->pFontSampler); + } +} + +bool ImGui_ImplDX11_CreateDeviceObjects() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + if (!bd->pd3dDevice) + return false; + if (bd->pFontSampler) + ImGui_ImplDX11_InvalidateDeviceObjects(); + + // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) + // If you would like to use this DX11 sample code but remove this dependency you can: + // 1) compile once, save the compiled shader blobs into a file or source code and pass them to CreateVertexShader()/CreatePixelShader() [preferred solution] + // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. + // See https://github.com/ocornut/imgui/pull/638 for sources and details. + + // Create the vertex shader + { + static const char* vertexShader = + "cbuffer vertexBuffer : register(b0) \ + {\ + float4x4 ProjectionMatrix; \ + };\ + struct VS_INPUT\ + {\ + float2 pos : POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + PS_INPUT main(VS_INPUT input)\ + {\ + PS_INPUT output;\ + output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ + output.col = input.col;\ + output.uv = input.uv;\ + return output;\ + }"; + + ID3DBlob* vertexShaderBlob; + if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), nullptr, nullptr, nullptr, "main", "vs_4_0", 0, 0, &vertexShaderBlob, nullptr))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (bd->pd3dDevice->CreateVertexShader(vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), nullptr, &bd->pVertexShader) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + + // Create the input layout + D3D11_INPUT_ELEMENT_DESC local_layout[] = + { + { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + }; + if (bd->pd3dDevice->CreateInputLayout(local_layout, 3, vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &bd->pInputLayout) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + vertexShaderBlob->Release(); + + // Create the constant buffer + { + D3D11_BUFFER_DESC desc; + desc.ByteWidth = sizeof(VERTEX_CONSTANT_BUFFER_DX11); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + bd->pd3dDevice->CreateBuffer(&desc, nullptr, &bd->pVertexConstantBuffer); + } + } + + // Create the pixel shader + { + static const char* pixelShader = + "struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + sampler sampler0;\ + Texture2D texture0;\ + \ + float4 main(PS_INPUT input) : SV_Target\ + {\ + float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ + return out_col; \ + }"; + + ID3DBlob* pixelShaderBlob; + if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), nullptr, nullptr, nullptr, "main", "ps_4_0", 0, 0, &pixelShaderBlob, nullptr))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (bd->pd3dDevice->CreatePixelShader(pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize(), nullptr, &bd->pPixelShader) != S_OK) + { + pixelShaderBlob->Release(); + return false; + } + pixelShaderBlob->Release(); + } + + // Create the blending setup + { + D3D11_BLEND_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.AlphaToCoverageEnable = false; + desc.RenderTarget[0].BlendEnable = true; + desc.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA; + desc.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD; + desc.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE; + desc.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD; + desc.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL; + bd->pd3dDevice->CreateBlendState(&desc, &bd->pBlendState); + } + + // Create the rasterizer state + { + D3D11_RASTERIZER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.FillMode = D3D11_FILL_SOLID; + desc.CullMode = D3D11_CULL_NONE; + desc.ScissorEnable = true; + desc.DepthClipEnable = true; + bd->pd3dDevice->CreateRasterizerState(&desc, &bd->pRasterizerState); + } + + // Create depth-stencil State + { + D3D11_DEPTH_STENCIL_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.DepthEnable = false; + desc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; + desc.DepthFunc = D3D11_COMPARISON_ALWAYS; + desc.StencilEnable = false; + desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; + desc.FrontFace.StencilFunc = D3D11_COMPARISON_ALWAYS; + desc.BackFace = desc.FrontFace; + bd->pd3dDevice->CreateDepthStencilState(&desc, &bd->pDepthStencilState); + } + + ImGui_ImplDX11_CreateFontsTexture(); + + return true; +} + +void ImGui_ImplDX11_InvalidateDeviceObjects() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + if (!bd->pd3dDevice) + return; + + if (bd->pFontSampler) { bd->pFontSampler->Release(); bd->pFontSampler = nullptr; } + if (bd->pFontTextureView) { bd->pFontTextureView->Release(); bd->pFontTextureView = nullptr; ImGui::GetIO().Fonts->SetTexID(0); } // We copied data->pFontTextureView to io.Fonts->TexID so let's clear that as well. + if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; } + if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; } + if (bd->pBlendState) { bd->pBlendState->Release(); bd->pBlendState = nullptr; } + if (bd->pDepthStencilState) { bd->pDepthStencilState->Release(); bd->pDepthStencilState = nullptr; } + if (bd->pRasterizerState) { bd->pRasterizerState->Release(); bd->pRasterizerState = nullptr; } + if (bd->pPixelShader) { bd->pPixelShader->Release(); bd->pPixelShader = nullptr; } + if (bd->pVertexConstantBuffer) { bd->pVertexConstantBuffer->Release(); bd->pVertexConstantBuffer = nullptr; } + if (bd->pInputLayout) { bd->pInputLayout->Release(); bd->pInputLayout = nullptr; } + if (bd->pVertexShader) { bd->pVertexShader->Release(); bd->pVertexShader = nullptr; } +} + +bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplDX11_Data* bd = IM_NEW(ImGui_ImplDX11_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_dx11"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + // Get factory from device + IDXGIDevice* pDXGIDevice = nullptr; + IDXGIAdapter* pDXGIAdapter = nullptr; + IDXGIFactory* pFactory = nullptr; + + if (device->QueryInterface(IID_PPV_ARGS(&pDXGIDevice)) == S_OK) + if (pDXGIDevice->GetParent(IID_PPV_ARGS(&pDXGIAdapter)) == S_OK) + if (pDXGIAdapter->GetParent(IID_PPV_ARGS(&pFactory)) == S_OK) + { + bd->pd3dDevice = device; + bd->pd3dDeviceContext = device_context; + bd->pFactory = pFactory; + } + if (pDXGIDevice) pDXGIDevice->Release(); + if (pDXGIAdapter) pDXGIAdapter->Release(); + bd->pd3dDevice->AddRef(); + bd->pd3dDeviceContext->AddRef(); + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplDX11_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplDX11_Shutdown() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplDX11_ShutdownPlatformInterface(); + ImGui_ImplDX11_InvalidateDeviceObjects(); + if (bd->pFactory) { bd->pFactory->Release(); } + if (bd->pd3dDevice) { bd->pd3dDevice->Release(); } + if (bd->pd3dDeviceContext) { bd->pd3dDeviceContext->Release(); } + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +void ImGui_ImplDX11_NewFrame() +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplDX11_Init()?"); + + if (!bd->pFontSampler) + ImGui_ImplDX11_CreateDeviceObjects(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplDX11_ViewportData +{ + IDXGISwapChain* SwapChain; + ID3D11RenderTargetView* RTView; + + ImGui_ImplDX11_ViewportData() { SwapChain = nullptr; RTView = nullptr; } + ~ImGui_ImplDX11_ViewportData() { IM_ASSERT(SwapChain == nullptr && RTView == nullptr); } +}; + +static void ImGui_ImplDX11_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ImGui_ImplDX11_ViewportData* vd = IM_NEW(ImGui_ImplDX11_ViewportData)(); + viewport->RendererUserData = vd; + + // PlatformHandleRaw should always be a HWND, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some backends will leave PlatformHandleRaw == 0, in which case we assume PlatformHandle will contain the HWND. + HWND hwnd = viewport->PlatformHandleRaw ? (HWND)viewport->PlatformHandleRaw : (HWND)viewport->PlatformHandle; + IM_ASSERT(hwnd != 0); + + // Create swap chain + DXGI_SWAP_CHAIN_DESC sd; + ZeroMemory(&sd, sizeof(sd)); + sd.BufferDesc.Width = (UINT)viewport->Size.x; + sd.BufferDesc.Height = (UINT)viewport->Size.y; + sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd.SampleDesc.Count = 1; + sd.SampleDesc.Quality = 0; + sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + sd.BufferCount = 1; + sd.OutputWindow = hwnd; + sd.Windowed = TRUE; + sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + sd.Flags = 0; + + IM_ASSERT(vd->SwapChain == nullptr && vd->RTView == nullptr); + bd->pFactory->CreateSwapChain(bd->pd3dDevice, &sd, &vd->SwapChain); + + // Create the render target + if (vd->SwapChain) + { + ID3D11Texture2D* pBackBuffer; + vd->SwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + bd->pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &vd->RTView); + pBackBuffer->Release(); + } +} + +static void ImGui_ImplDX11_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == nullptr since we didn't create the data for it. + if (ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData) + { + if (vd->SwapChain) + vd->SwapChain->Release(); + vd->SwapChain = nullptr; + if (vd->RTView) + vd->RTView->Release(); + vd->RTView = nullptr; + IM_DELETE(vd); + } + viewport->RendererUserData = nullptr; +} + +static void ImGui_ImplDX11_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData; + if (vd->RTView) + { + vd->RTView->Release(); + vd->RTView = nullptr; + } + if (vd->SwapChain) + { + ID3D11Texture2D* pBackBuffer = nullptr; + vd->SwapChain->ResizeBuffers(0, (UINT)size.x, (UINT)size.y, DXGI_FORMAT_UNKNOWN, 0); + vd->SwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); + if (pBackBuffer == nullptr) { fprintf(stderr, "ImGui_ImplDX11_SetWindowSize() failed creating buffers.\n"); return; } + bd->pd3dDevice->CreateRenderTargetView(pBackBuffer, nullptr, &vd->RTView); + pBackBuffer->Release(); + } +} + +static void ImGui_ImplDX11_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX11_Data* bd = ImGui_ImplDX11_GetBackendData(); + ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData; + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + bd->pd3dDeviceContext->OMSetRenderTargets(1, &vd->RTView, nullptr); + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + bd->pd3dDeviceContext->ClearRenderTargetView(vd->RTView, (float*)&clear_color); + ImGui_ImplDX11_RenderDrawData(viewport->DrawData); +} + +static void ImGui_ImplDX11_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplDX11_ViewportData* vd = (ImGui_ImplDX11_ViewportData*)viewport->RendererUserData; + vd->SwapChain->Present(0, 0); // Present without vsync +} + +static void ImGui_ImplDX11_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_CreateWindow = ImGui_ImplDX11_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplDX11_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplDX11_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplDX11_RenderWindow; + platform_io.Renderer_SwapBuffers = ImGui_ImplDX11_SwapBuffers; +} + +static void ImGui_ImplDX11_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_glfw.cpp b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_glfw.cpp new file mode 100644 index 00000000000..10be0b30409 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_glfw.cpp @@ -0,0 +1,1297 @@ +// dear imgui: Platform Backend for GLFW +// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..) +// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) +// (Requires: GLFW 3.1+. Prefer GLFW 3.3+ or GLFW 3.4+ for full feature support.) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen (Windows only). +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLFW_KEY_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange' (note: the resizing cursors requires GLFW 3.4+). +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// Issues: +// [ ] Platform: Multi-viewport support: ParentViewportID not honored, and so io.ConfigViewportsNoDefaultParent has no effect (minor). + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-07-18: Inputs: Revert ignoring mouse data on GLFW_CURSOR_DISABLED as it can be used differently. User may set ImGuiConfigFLags_NoMouse if desired. (#5625, #6609) +// 2023-06-12: Accept glfwGetTime() not returning a monotonically increasing value. This seems to happens on some Windows setup when peripherals disconnect, and is likely to also happen on browser + Emscripten. (#6491) +// 2023-04-04: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_TouchScreen/ImGuiMouseSource_Pen on Windows ONLY, using a custom WndProc hook. (#2702) +// 2023-03-16: Inputs: Fixed key modifiers handling on secondary viewports (docking branch). Broken on 2023/01/04. (#6248, #6034) +// 2023-03-14: Emscripten: Avoid using glfwGetError() and glfwGetGamepadState() which are not correctly implemented in Emscripten emulation. (#6240) +// 2023-02-03: Emscripten: Registering custom low-level mouse wheel handler to get more accurate scrolling impulses on Emscripten. (#4019, #6096) +// 2023-01-18: Handle unsupported glfwGetVideoMode() call on e.g. Emscripten. +// 2023-01-04: Inputs: Fixed mods state on Linux when using Alt-GR text input (e.g. German keyboard layout), could lead to broken text input. Revert a 2022/01/17 change were we resumed using mods provided by GLFW, turns out they were faulty. +// 2022-11-22: Perform a dummy glfwGetError() read to cancel missing names with glfwGetKeyName(). (#5908) +// 2022-10-18: Perform a dummy glfwGetError() read to cancel missing mouse cursors errors. Using GLFW_VERSION_COMBINED directly. (#5785) +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-09-26: Inputs: Renamed ImGuiKey_ModXXX introduced in 1.87 to ImGuiMod_XXX (old names still supported). +// 2022-09-01: Inputs: Honor GLFW_CURSOR_DISABLED by not setting mouse position *EDIT* Reverted 2023-07-18. +// 2022-04-30: Inputs: Fixed ImGui_ImplGlfw_TranslateUntranslatedKey() for lower case letters on OSX. +// 2022-03-23: Inputs: Fixed a regression in 1.87 which resulted in keyboard modifiers events being reported incorrectly on Linux/X11. +// 2022-02-07: Added ImGui_ImplGlfw_InstallCallbacks()/ImGui_ImplGlfw_RestoreCallbacks() helpers to facilitate user installing callbacks after initializing backend. +// 2022-01-26: Inputs: replaced short-lived io.AddKeyModsEvent() (added two weeks ago) with io.AddKeyEvent() using ImGuiKey_ModXXX flags. Sorry for the confusion. +// 2021-01-20: Inputs: calling new io.AddKeyAnalogEvent() for gamepad support, instead of writing directly to io.NavInputs[]. +// 2022-01-17: Inputs: calling new io.AddMousePosEvent(), io.AddMouseButtonEvent(), io.AddMouseWheelEvent() API (1.87+). +// 2022-01-17: Inputs: always update key mods next and before key event (not in NewFrame) to fix input queue with very low framerates. +// 2022-01-12: *BREAKING CHANGE*: Now using glfwSetCursorPosCallback(). If you called ImGui_ImplGlfw_InitXXX() with install_callbacks = false, you MUST install glfwSetCursorPosCallback() and forward it to the backend via ImGui_ImplGlfw_CursorPosCallback(). +// 2022-01-10: Inputs: calling new io.AddKeyEvent(), io.AddKeyModsEvent() + io.SetKeyEventNativeData() API (1.87+). Support for full ImGuiKey range. +// 2022-01-05: Inputs: Converting GLFW untranslated keycodes back to translated keycodes (in the ImGui_ImplGlfw_KeyCallback() function) in order to match the behavior of every other backend, and facilitate the use of GLFW with lettered-shortcuts API. +// 2021-08-17: *BREAKING CHANGE*: Now using glfwSetWindowFocusCallback() to calling io.AddFocusEvent(). If you called ImGui_ImplGlfw_InitXXX() with install_callbacks = false, you MUST install glfwSetWindowFocusCallback() and forward it to the backend via ImGui_ImplGlfw_WindowFocusCallback(). +// 2021-07-29: *BREAKING CHANGE*: Now using glfwSetCursorEnterCallback(). MousePos is correctly reported when the host platform window is hovered but not focused. If you called ImGui_ImplGlfw_InitXXX() with install_callbacks = false, you MUST install glfwSetWindowFocusCallback() callback and forward it to the backend via ImGui_ImplGlfw_CursorEnterCallback(). +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2020-01-17: Inputs: Disable error callback while assigning mouse cursors because some X11 setup don't have them and it generates errors. +// 2019-12-05: Inputs: Added support for new mouse cursors added in GLFW 3.4+ (resizing cursors, not allowed cursor). +// 2019-10-18: Misc: Previously installed user callbacks are now restored on shutdown. +// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. +// 2019-05-11: Inputs: Don't filter value from character callback before calling AddInputCharacter(). +// 2019-03-12: Misc: Preserve DisplayFramebufferScale when main window is minimized. +// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. +// 2018-11-07: Inputs: When installing our GLFW callbacks, we save user's previously installed ones - if any - and chain call them. +// 2018-08-01: Inputs: Workaround for Emscripten which doesn't seem to handle focus related calls. +// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. +// 2018-06-08: Misc: Extracted imgui_impl_glfw.cpp/.h away from the old combined GLFW+OpenGL/Vulkan examples. +// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors flag + honor ImGuiConfigFlags_NoMouseCursorChange flag. +// 2018-02-20: Inputs: Added support for mouse cursors (ImGui::GetMouseCursor() value, passed to glfwSetCursor()). +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. +// 2018-01-25: Inputs: Added gamepad support if ImGuiConfigFlags_NavEnableGamepad is set. +// 2018-01-25: Inputs: Honoring the io.WantSetMousePos by repositioning the mouse (when using navigation and ImGuiConfigFlags_NavMoveMouse is set). +// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. +// 2018-01-18: Inputs: Added mapping for ImGuiKey_Insert. +// 2017-08-25: Inputs: MousePos set to -FLT_MAX,-FLT_MAX when mouse is unavailable/missing (instead of -1,-1). +// 2016-10-15: Misc: Added a void* user_data parameter to Clipboard function handlers. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_glfw.h" + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#endif + +// GLFW +#include + +#ifdef _WIN32 +#undef APIENTRY +#define GLFW_EXPOSE_NATIVE_WIN32 +#include // for glfwGetWin32Window() +#endif +#ifdef __APPLE__ +#define GLFW_EXPOSE_NATIVE_COCOA +#include // for glfwGetCocoaWindow() +#endif + +#ifdef __EMSCRIPTEN__ +#include +#include +#endif + +// We gather version tests as define in order to easily see which features are version-dependent. +#define GLFW_VERSION_COMBINED (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 + GLFW_VERSION_REVISION) +#define GLFW_HAS_WINDOW_TOPMOST (GLFW_VERSION_COMBINED >= 3200) // 3.2+ GLFW_FLOATING +#define GLFW_HAS_WINDOW_HOVERED (GLFW_VERSION_COMBINED >= 3300) // 3.3+ GLFW_HOVERED +#define GLFW_HAS_WINDOW_ALPHA (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwSetWindowOpacity +#define GLFW_HAS_PER_MONITOR_DPI (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetMonitorContentScale +#if defined(__EMSCRIPTEN__) || defined(__SWITCH__) // no Vulkan support in GLFW for Emscripten or homebrew Nintendo Switch +#define GLFW_HAS_VULKAN (0) +#else +#define GLFW_HAS_VULKAN (GLFW_VERSION_COMBINED >= 3200) // 3.2+ glfwCreateWindowSurface +#endif +#define GLFW_HAS_FOCUS_WINDOW (GLFW_VERSION_COMBINED >= 3200) // 3.2+ glfwFocusWindow +#define GLFW_HAS_FOCUS_ON_SHOW (GLFW_VERSION_COMBINED >= 3300) // 3.3+ GLFW_FOCUS_ON_SHOW +#define GLFW_HAS_MONITOR_WORK_AREA (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetMonitorWorkarea +#define GLFW_HAS_OSX_WINDOW_POS_FIX (GLFW_VERSION_COMBINED >= 3301) // 3.3.1+ Fixed: Resizing window repositions it on MacOS #1553 +#ifdef GLFW_RESIZE_NESW_CURSOR // Let's be nice to people who pulled GLFW between 2019-04-16 (3.4 define) and 2019-11-29 (cursors defines) // FIXME: Remove when GLFW 3.4 is released? +#define GLFW_HAS_NEW_CURSORS (GLFW_VERSION_COMBINED >= 3400) // 3.4+ GLFW_RESIZE_ALL_CURSOR, GLFW_RESIZE_NESW_CURSOR, GLFW_RESIZE_NWSE_CURSOR, GLFW_NOT_ALLOWED_CURSOR +#else +#define GLFW_HAS_NEW_CURSORS (0) +#endif +#ifdef GLFW_MOUSE_PASSTHROUGH // Let's be nice to people who pulled GLFW between 2019-04-16 (3.4 define) and 2020-07-17 (passthrough) +#define GLFW_HAS_MOUSE_PASSTHROUGH (GLFW_VERSION_COMBINED >= 3400) // 3.4+ GLFW_MOUSE_PASSTHROUGH +#else +#define GLFW_HAS_MOUSE_PASSTHROUGH (0) +#endif +#define GLFW_HAS_GAMEPAD_API (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetGamepadState() new api +#define GLFW_HAS_GETKEYNAME (GLFW_VERSION_COMBINED >= 3200) // 3.2+ glfwGetKeyName() +#define GLFW_HAS_GETERROR (GLFW_VERSION_COMBINED >= 3300) // 3.3+ glfwGetError() + +// GLFW data +enum GlfwClientApi +{ + GlfwClientApi_Unknown, + GlfwClientApi_OpenGL, + GlfwClientApi_Vulkan +}; + +struct ImGui_ImplGlfw_Data +{ + GLFWwindow* Window; + GlfwClientApi ClientApi; + double Time; + GLFWwindow* MouseWindow; + GLFWcursor* MouseCursors[ImGuiMouseCursor_COUNT]; + ImVec2 LastValidMousePos; + GLFWwindow* KeyOwnerWindows[GLFW_KEY_LAST]; + bool InstalledCallbacks; + bool CallbacksChainForAllWindows; + bool WantUpdateMonitors; + + // Chain GLFW callbacks: our callbacks will call the user's previously installed callbacks, if any. + GLFWwindowfocusfun PrevUserCallbackWindowFocus; + GLFWcursorposfun PrevUserCallbackCursorPos; + GLFWcursorenterfun PrevUserCallbackCursorEnter; + GLFWmousebuttonfun PrevUserCallbackMousebutton; + GLFWscrollfun PrevUserCallbackScroll; + GLFWkeyfun PrevUserCallbackKey; + GLFWcharfun PrevUserCallbackChar; + GLFWmonitorfun PrevUserCallbackMonitor; +#ifdef _WIN32 + WNDPROC GlfwWndProc; +#endif + + ImGui_ImplGlfw_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendPlatformUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +// FIXME: multi-context support is not well tested and probably dysfunctional in this backend. +// - Because glfwPollEvents() process all windows and some events may be called outside of it, you will need to register your own callbacks +// (passing install_callbacks=false in ImGui_ImplGlfw_InitXXX functions), set the current dear imgui context and then call our callbacks. +// - Otherwise we may need to store a GLFWWindow* -> ImGuiContext* map and handle this in the backend, adding a little bit of extra complexity to it. +// FIXME: some shared resources (mouse cursor shape, gamepad) are mishandled when using multi-context. +static ImGui_ImplGlfw_Data* ImGui_ImplGlfw_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplGlfw_Data*)ImGui::GetIO().BackendPlatformUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplGlfw_UpdateMonitors(); +static void ImGui_ImplGlfw_InitPlatformInterface(); +static void ImGui_ImplGlfw_ShutdownPlatformInterface(); + +// Functions +static const char* ImGui_ImplGlfw_GetClipboardText(void* user_data) +{ + return glfwGetClipboardString((GLFWwindow*)user_data); +} + +static void ImGui_ImplGlfw_SetClipboardText(void* user_data, const char* text) +{ + glfwSetClipboardString((GLFWwindow*)user_data, text); +} + +static ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey(int key) +{ + switch (key) + { + case GLFW_KEY_TAB: return ImGuiKey_Tab; + case GLFW_KEY_LEFT: return ImGuiKey_LeftArrow; + case GLFW_KEY_RIGHT: return ImGuiKey_RightArrow; + case GLFW_KEY_UP: return ImGuiKey_UpArrow; + case GLFW_KEY_DOWN: return ImGuiKey_DownArrow; + case GLFW_KEY_PAGE_UP: return ImGuiKey_PageUp; + case GLFW_KEY_PAGE_DOWN: return ImGuiKey_PageDown; + case GLFW_KEY_HOME: return ImGuiKey_Home; + case GLFW_KEY_END: return ImGuiKey_End; + case GLFW_KEY_INSERT: return ImGuiKey_Insert; + case GLFW_KEY_DELETE: return ImGuiKey_Delete; + case GLFW_KEY_BACKSPACE: return ImGuiKey_Backspace; + case GLFW_KEY_SPACE: return ImGuiKey_Space; + case GLFW_KEY_ENTER: return ImGuiKey_Enter; + case GLFW_KEY_ESCAPE: return ImGuiKey_Escape; + case GLFW_KEY_APOSTROPHE: return ImGuiKey_Apostrophe; + case GLFW_KEY_COMMA: return ImGuiKey_Comma; + case GLFW_KEY_MINUS: return ImGuiKey_Minus; + case GLFW_KEY_PERIOD: return ImGuiKey_Period; + case GLFW_KEY_SLASH: return ImGuiKey_Slash; + case GLFW_KEY_SEMICOLON: return ImGuiKey_Semicolon; + case GLFW_KEY_EQUAL: return ImGuiKey_Equal; + case GLFW_KEY_LEFT_BRACKET: return ImGuiKey_LeftBracket; + case GLFW_KEY_BACKSLASH: return ImGuiKey_Backslash; + case GLFW_KEY_RIGHT_BRACKET: return ImGuiKey_RightBracket; + case GLFW_KEY_GRAVE_ACCENT: return ImGuiKey_GraveAccent; + case GLFW_KEY_CAPS_LOCK: return ImGuiKey_CapsLock; + case GLFW_KEY_SCROLL_LOCK: return ImGuiKey_ScrollLock; + case GLFW_KEY_NUM_LOCK: return ImGuiKey_NumLock; + case GLFW_KEY_PRINT_SCREEN: return ImGuiKey_PrintScreen; + case GLFW_KEY_PAUSE: return ImGuiKey_Pause; + case GLFW_KEY_KP_0: return ImGuiKey_Keypad0; + case GLFW_KEY_KP_1: return ImGuiKey_Keypad1; + case GLFW_KEY_KP_2: return ImGuiKey_Keypad2; + case GLFW_KEY_KP_3: return ImGuiKey_Keypad3; + case GLFW_KEY_KP_4: return ImGuiKey_Keypad4; + case GLFW_KEY_KP_5: return ImGuiKey_Keypad5; + case GLFW_KEY_KP_6: return ImGuiKey_Keypad6; + case GLFW_KEY_KP_7: return ImGuiKey_Keypad7; + case GLFW_KEY_KP_8: return ImGuiKey_Keypad8; + case GLFW_KEY_KP_9: return ImGuiKey_Keypad9; + case GLFW_KEY_KP_DECIMAL: return ImGuiKey_KeypadDecimal; + case GLFW_KEY_KP_DIVIDE: return ImGuiKey_KeypadDivide; + case GLFW_KEY_KP_MULTIPLY: return ImGuiKey_KeypadMultiply; + case GLFW_KEY_KP_SUBTRACT: return ImGuiKey_KeypadSubtract; + case GLFW_KEY_KP_ADD: return ImGuiKey_KeypadAdd; + case GLFW_KEY_KP_ENTER: return ImGuiKey_KeypadEnter; + case GLFW_KEY_KP_EQUAL: return ImGuiKey_KeypadEqual; + case GLFW_KEY_LEFT_SHIFT: return ImGuiKey_LeftShift; + case GLFW_KEY_LEFT_CONTROL: return ImGuiKey_LeftCtrl; + case GLFW_KEY_LEFT_ALT: return ImGuiKey_LeftAlt; + case GLFW_KEY_LEFT_SUPER: return ImGuiKey_LeftSuper; + case GLFW_KEY_RIGHT_SHIFT: return ImGuiKey_RightShift; + case GLFW_KEY_RIGHT_CONTROL: return ImGuiKey_RightCtrl; + case GLFW_KEY_RIGHT_ALT: return ImGuiKey_RightAlt; + case GLFW_KEY_RIGHT_SUPER: return ImGuiKey_RightSuper; + case GLFW_KEY_MENU: return ImGuiKey_Menu; + case GLFW_KEY_0: return ImGuiKey_0; + case GLFW_KEY_1: return ImGuiKey_1; + case GLFW_KEY_2: return ImGuiKey_2; + case GLFW_KEY_3: return ImGuiKey_3; + case GLFW_KEY_4: return ImGuiKey_4; + case GLFW_KEY_5: return ImGuiKey_5; + case GLFW_KEY_6: return ImGuiKey_6; + case GLFW_KEY_7: return ImGuiKey_7; + case GLFW_KEY_8: return ImGuiKey_8; + case GLFW_KEY_9: return ImGuiKey_9; + case GLFW_KEY_A: return ImGuiKey_A; + case GLFW_KEY_B: return ImGuiKey_B; + case GLFW_KEY_C: return ImGuiKey_C; + case GLFW_KEY_D: return ImGuiKey_D; + case GLFW_KEY_E: return ImGuiKey_E; + case GLFW_KEY_F: return ImGuiKey_F; + case GLFW_KEY_G: return ImGuiKey_G; + case GLFW_KEY_H: return ImGuiKey_H; + case GLFW_KEY_I: return ImGuiKey_I; + case GLFW_KEY_J: return ImGuiKey_J; + case GLFW_KEY_K: return ImGuiKey_K; + case GLFW_KEY_L: return ImGuiKey_L; + case GLFW_KEY_M: return ImGuiKey_M; + case GLFW_KEY_N: return ImGuiKey_N; + case GLFW_KEY_O: return ImGuiKey_O; + case GLFW_KEY_P: return ImGuiKey_P; + case GLFW_KEY_Q: return ImGuiKey_Q; + case GLFW_KEY_R: return ImGuiKey_R; + case GLFW_KEY_S: return ImGuiKey_S; + case GLFW_KEY_T: return ImGuiKey_T; + case GLFW_KEY_U: return ImGuiKey_U; + case GLFW_KEY_V: return ImGuiKey_V; + case GLFW_KEY_W: return ImGuiKey_W; + case GLFW_KEY_X: return ImGuiKey_X; + case GLFW_KEY_Y: return ImGuiKey_Y; + case GLFW_KEY_Z: return ImGuiKey_Z; + case GLFW_KEY_F1: return ImGuiKey_F1; + case GLFW_KEY_F2: return ImGuiKey_F2; + case GLFW_KEY_F3: return ImGuiKey_F3; + case GLFW_KEY_F4: return ImGuiKey_F4; + case GLFW_KEY_F5: return ImGuiKey_F5; + case GLFW_KEY_F6: return ImGuiKey_F6; + case GLFW_KEY_F7: return ImGuiKey_F7; + case GLFW_KEY_F8: return ImGuiKey_F8; + case GLFW_KEY_F9: return ImGuiKey_F9; + case GLFW_KEY_F10: return ImGuiKey_F10; + case GLFW_KEY_F11: return ImGuiKey_F11; + case GLFW_KEY_F12: return ImGuiKey_F12; + default: return ImGuiKey_None; + } +} + +// X11 does not include current pressed/released modifier key in 'mods' flags submitted by GLFW +// See https://github.com/ocornut/imgui/issues/6034 and https://github.com/glfw/glfw/issues/1630 +static void ImGui_ImplGlfw_UpdateKeyModifiers(GLFWwindow* window) +{ + ImGuiIO& io = ImGui::GetIO(); + io.AddKeyEvent(ImGuiMod_Ctrl, (glfwGetKey(window, GLFW_KEY_LEFT_CONTROL) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_CONTROL) == GLFW_PRESS)); + io.AddKeyEvent(ImGuiMod_Shift, (glfwGetKey(window, GLFW_KEY_LEFT_SHIFT) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_SHIFT) == GLFW_PRESS)); + io.AddKeyEvent(ImGuiMod_Alt, (glfwGetKey(window, GLFW_KEY_LEFT_ALT) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_ALT) == GLFW_PRESS)); + io.AddKeyEvent(ImGuiMod_Super, (glfwGetKey(window, GLFW_KEY_LEFT_SUPER) == GLFW_PRESS) || (glfwGetKey(window, GLFW_KEY_RIGHT_SUPER) == GLFW_PRESS)); +} + +static bool ImGui_ImplGlfw_ShouldChainCallback(GLFWwindow* window) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + return bd->CallbacksChainForAllWindows ? true : (window == bd->Window); +} + +void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackMousebutton != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackMousebutton(window, button, action, mods); + + ImGui_ImplGlfw_UpdateKeyModifiers(window); + + ImGuiIO& io = ImGui::GetIO(); + if (button >= 0 && button < ImGuiMouseButton_COUNT) + io.AddMouseButtonEvent(button, action == GLFW_PRESS); +} + +void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackScroll != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackScroll(window, xoffset, yoffset); + +#ifdef __EMSCRIPTEN__ + // Ignore GLFW events: will be processed in ImGui_ImplEmscripten_WheelCallback(). + return; +#endif + + ImGuiIO& io = ImGui::GetIO(); + io.AddMouseWheelEvent((float)xoffset, (float)yoffset); +} + +static int ImGui_ImplGlfw_TranslateUntranslatedKey(int key, int scancode) +{ +#if GLFW_HAS_GETKEYNAME && !defined(__EMSCRIPTEN__) + // GLFW 3.1+ attempts to "untranslate" keys, which goes the opposite of what every other framework does, making using lettered shortcuts difficult. + // (It had reasons to do so: namely GLFW is/was more likely to be used for WASD-type game controls rather than lettered shortcuts, but IHMO the 3.1 change could have been done differently) + // See https://github.com/glfw/glfw/issues/1502 for details. + // Adding a workaround to undo this (so our keys are translated->untranslated->translated, likely a lossy process). + // This won't cover edge cases but this is at least going to cover common cases. + if (key >= GLFW_KEY_KP_0 && key <= GLFW_KEY_KP_EQUAL) + return key; + GLFWerrorfun prev_error_callback = glfwSetErrorCallback(nullptr); + const char* key_name = glfwGetKeyName(key, scancode); + glfwSetErrorCallback(prev_error_callback); +#if GLFW_HAS_GETERROR && !defined(__EMSCRIPTEN__) // Eat errors (see #5908) + (void)glfwGetError(nullptr); +#endif + if (key_name && key_name[0] != 0 && key_name[1] == 0) + { + const char char_names[] = "`-=[]\\,;\'./"; + const int char_keys[] = { GLFW_KEY_GRAVE_ACCENT, GLFW_KEY_MINUS, GLFW_KEY_EQUAL, GLFW_KEY_LEFT_BRACKET, GLFW_KEY_RIGHT_BRACKET, GLFW_KEY_BACKSLASH, GLFW_KEY_COMMA, GLFW_KEY_SEMICOLON, GLFW_KEY_APOSTROPHE, GLFW_KEY_PERIOD, GLFW_KEY_SLASH, 0 }; + IM_ASSERT(IM_ARRAYSIZE(char_names) == IM_ARRAYSIZE(char_keys)); + if (key_name[0] >= '0' && key_name[0] <= '9') { key = GLFW_KEY_0 + (key_name[0] - '0'); } + else if (key_name[0] >= 'A' && key_name[0] <= 'Z') { key = GLFW_KEY_A + (key_name[0] - 'A'); } + else if (key_name[0] >= 'a' && key_name[0] <= 'z') { key = GLFW_KEY_A + (key_name[0] - 'a'); } + else if (const char* p = strchr(char_names, key_name[0])) { key = char_keys[p - char_names]; } + } + // if (action == GLFW_PRESS) printf("key %d scancode %d name '%s'\n", key, scancode, key_name); +#else + IM_UNUSED(scancode); +#endif + return key; +} + +void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int keycode, int scancode, int action, int mods) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackKey != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackKey(window, keycode, scancode, action, mods); + + if (action != GLFW_PRESS && action != GLFW_RELEASE) + return; + + ImGui_ImplGlfw_UpdateKeyModifiers(window); + + if (keycode >= 0 && keycode < IM_ARRAYSIZE(bd->KeyOwnerWindows)) + bd->KeyOwnerWindows[keycode] = (action == GLFW_PRESS) ? window : nullptr; + + keycode = ImGui_ImplGlfw_TranslateUntranslatedKey(keycode, scancode); + + ImGuiIO& io = ImGui::GetIO(); + ImGuiKey imgui_key = ImGui_ImplGlfw_KeyToImGuiKey(keycode); + io.AddKeyEvent(imgui_key, (action == GLFW_PRESS)); + io.SetKeyEventNativeData(imgui_key, keycode, scancode); // To support legacy indexing (<1.87 user code) +} + +void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window, int focused) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackWindowFocus != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackWindowFocus(window, focused); + + ImGuiIO& io = ImGui::GetIO(); + io.AddFocusEvent(focused != 0); +} + +void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window, double x, double y) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackCursorPos != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackCursorPos(window, x, y); + + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + int window_x, window_y; + glfwGetWindowPos(window, &window_x, &window_y); + x += window_x; + y += window_y; + } + io.AddMousePosEvent((float)x, (float)y); + bd->LastValidMousePos = ImVec2((float)x, (float)y); +} + +// Workaround: X11 seems to send spurious Leave/Enter events which would make us lose our position, +// so we back it up and restore on Leave/Enter (see https://github.com/ocornut/imgui/issues/4984) +void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window, int entered) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackCursorEnter != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackCursorEnter(window, entered); + + ImGuiIO& io = ImGui::GetIO(); + if (entered) + { + bd->MouseWindow = window; + io.AddMousePosEvent(bd->LastValidMousePos.x, bd->LastValidMousePos.y); + } + else if (!entered && bd->MouseWindow == window) + { + bd->LastValidMousePos = io.MousePos; + bd->MouseWindow = nullptr; + io.AddMousePosEvent(-FLT_MAX, -FLT_MAX); + } +} + +void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, unsigned int c) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (bd->PrevUserCallbackChar != nullptr && ImGui_ImplGlfw_ShouldChainCallback(window)) + bd->PrevUserCallbackChar(window, c); + + ImGuiIO& io = ImGui::GetIO(); + io.AddInputCharacter(c); +} + +void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor*, int) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + bd->WantUpdateMonitors = true; +} + +#ifdef __EMSCRIPTEN__ +static EM_BOOL ImGui_ImplEmscripten_WheelCallback(int, const EmscriptenWheelEvent* ev, void*) +{ + // Mimic Emscripten_HandleWheel() in SDL. + // Corresponding equivalent in GLFW JS emulation layer has incorrect quantizing preventing small values. See #6096 + float multiplier = 0.0f; + if (ev->deltaMode == DOM_DELTA_PIXEL) { multiplier = 1.0f / 100.0f; } // 100 pixels make up a step. + else if (ev->deltaMode == DOM_DELTA_LINE) { multiplier = 1.0f / 3.0f; } // 3 lines make up a step. + else if (ev->deltaMode == DOM_DELTA_PAGE) { multiplier = 80.0f; } // A page makes up 80 steps. + float wheel_x = ev->deltaX * -multiplier; + float wheel_y = ev->deltaY * -multiplier; + ImGuiIO& io = ImGui::GetIO(); + io.AddMouseWheelEvent(wheel_x, wheel_y); + //IMGUI_DEBUG_LOG("[Emsc] mode %d dx: %.2f, dy: %.2f, dz: %.2f --> feed %.2f %.2f\n", (int)ev->deltaMode, ev->deltaX, ev->deltaY, ev->deltaZ, wheel_x, wheel_y); + return EM_TRUE; +} +#endif + +#ifdef _WIN32 +// GLFW doesn't allow to distinguish Mouse vs TouchScreen vs Pen. +// Add support for Win32 (based on imgui_impl_win32), because we rely on _TouchScreen info to trickle inputs differently. +static ImGuiMouseSource GetMouseSourceFromMessageExtraInfo() +{ + LPARAM extra_info = ::GetMessageExtraInfo(); + if ((extra_info & 0xFFFFFF80) == 0xFF515700) + return ImGuiMouseSource_Pen; + if ((extra_info & 0xFFFFFF80) == 0xFF515780) + return ImGuiMouseSource_TouchScreen; + return ImGuiMouseSource_Mouse; +} +static LRESULT CALLBACK ImGui_ImplGlfw_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + switch (msg) + { + case WM_MOUSEMOVE: case WM_NCMOUSEMOVE: + case WM_LBUTTONDOWN: case WM_LBUTTONDBLCLK: case WM_LBUTTONUP: + case WM_RBUTTONDOWN: case WM_RBUTTONDBLCLK: case WM_RBUTTONUP: + case WM_MBUTTONDOWN: case WM_MBUTTONDBLCLK: case WM_MBUTTONUP: + case WM_XBUTTONDOWN: case WM_XBUTTONDBLCLK: case WM_XBUTTONUP: + ImGui::GetIO().AddMouseSourceEvent(GetMouseSourceFromMessageExtraInfo()); + break; + + // We have submitted https://github.com/glfw/glfw/pull/1568 to allow GLFW to support "transparent inputs". + // In the meanwhile we implement custom per-platform workarounds here (FIXME-VIEWPORT: Implement same work-around for Linux/OSX!) +#if !GLFW_HAS_MOUSE_PASSTHROUGH && GLFW_HAS_WINDOW_HOVERED + case WM_NCHITTEST: + { + // Let mouse pass-through the window. This will allow the backend to call io.AddMouseViewportEvent() properly (which is OPTIONAL). + // The ImGuiViewportFlags_NoInputs flag is set while dragging a viewport, as want to detect the window behind the one we are dragging. + // If you cannot easily access those viewport flags from your windowing/event code: you may manually synchronize its state e.g. in + // your main loop after calling UpdatePlatformWindows(). Iterate all viewports/platform windows and pass the flag to your windowing system. + ImGuiViewport* viewport = (ImGuiViewport*)::GetPropA(hWnd, "IMGUI_VIEWPORT"); + if (viewport && (viewport->Flags & ImGuiViewportFlags_NoInputs)) + return HTTRANSPARENT; + break; + } +#endif + } + return ::CallWindowProc(bd->GlfwWndProc, hWnd, msg, wParam, lParam); +} +#endif + +void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd->InstalledCallbacks == false && "Callbacks already installed!"); + IM_ASSERT(bd->Window == window); + + bd->PrevUserCallbackWindowFocus = glfwSetWindowFocusCallback(window, ImGui_ImplGlfw_WindowFocusCallback); + bd->PrevUserCallbackCursorEnter = glfwSetCursorEnterCallback(window, ImGui_ImplGlfw_CursorEnterCallback); + bd->PrevUserCallbackCursorPos = glfwSetCursorPosCallback(window, ImGui_ImplGlfw_CursorPosCallback); + bd->PrevUserCallbackMousebutton = glfwSetMouseButtonCallback(window, ImGui_ImplGlfw_MouseButtonCallback); + bd->PrevUserCallbackScroll = glfwSetScrollCallback(window, ImGui_ImplGlfw_ScrollCallback); + bd->PrevUserCallbackKey = glfwSetKeyCallback(window, ImGui_ImplGlfw_KeyCallback); + bd->PrevUserCallbackChar = glfwSetCharCallback(window, ImGui_ImplGlfw_CharCallback); + bd->PrevUserCallbackMonitor = glfwSetMonitorCallback(ImGui_ImplGlfw_MonitorCallback); + bd->InstalledCallbacks = true; +} + +void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd->InstalledCallbacks == true && "Callbacks not installed!"); + IM_ASSERT(bd->Window == window); + + glfwSetWindowFocusCallback(window, bd->PrevUserCallbackWindowFocus); + glfwSetCursorEnterCallback(window, bd->PrevUserCallbackCursorEnter); + glfwSetCursorPosCallback(window, bd->PrevUserCallbackCursorPos); + glfwSetMouseButtonCallback(window, bd->PrevUserCallbackMousebutton); + glfwSetScrollCallback(window, bd->PrevUserCallbackScroll); + glfwSetKeyCallback(window, bd->PrevUserCallbackKey); + glfwSetCharCallback(window, bd->PrevUserCallbackChar); + glfwSetMonitorCallback(bd->PrevUserCallbackMonitor); + bd->InstalledCallbacks = false; + bd->PrevUserCallbackWindowFocus = nullptr; + bd->PrevUserCallbackCursorEnter = nullptr; + bd->PrevUserCallbackCursorPos = nullptr; + bd->PrevUserCallbackMousebutton = nullptr; + bd->PrevUserCallbackScroll = nullptr; + bd->PrevUserCallbackKey = nullptr; + bd->PrevUserCallbackChar = nullptr; + bd->PrevUserCallbackMonitor = nullptr; +} + +// Set to 'true' to enable chaining installed callbacks for all windows (including secondary viewports created by backends or by user. +// This is 'false' by default meaning we only chain callbacks for the main viewport. +// We cannot set this to 'true' by default because user callbacks code may be not testing the 'window' parameter of their callback. +// If you set this to 'true' your user callback code will need to make sure you are testing the 'window' parameter. +void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + bd->CallbacksChainForAllWindows = chain_for_all_windows; +} + +static bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks, GlfwClientApi client_api) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendPlatformUserData == nullptr && "Already initialized a platform backend!"); + //printf("GLFW_VERSION: %d.%d.%d (%d)", GLFW_VERSION_MAJOR, GLFW_VERSION_MINOR, GLFW_VERSION_REVISION, GLFW_VERSION_COMBINED); + + // Setup backend capabilities flags + ImGui_ImplGlfw_Data* bd = IM_NEW(ImGui_ImplGlfw_Data)(); + io.BackendPlatformUserData = (void*)bd; + io.BackendPlatformName = "imgui_impl_glfw"; + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) +#ifndef __EMSCRIPTEN__ + io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional) +#endif +#if GLFW_HAS_MOUSE_PASSTHROUGH || (GLFW_HAS_WINDOW_HOVERED && defined(_WIN32)) + io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; // We can call io.AddMouseViewportEvent() with correct data (optional) +#endif + + bd->Window = window; + bd->Time = 0.0; + bd->WantUpdateMonitors = true; + + io.SetClipboardTextFn = ImGui_ImplGlfw_SetClipboardText; + io.GetClipboardTextFn = ImGui_ImplGlfw_GetClipboardText; + io.ClipboardUserData = bd->Window; + + // Create mouse cursors + // (By design, on X11 cursors are user configurable and some cursors may be missing. When a cursor doesn't exist, + // GLFW will emit an error which will often be printed by the app, so we temporarily disable error reporting. + // Missing cursors will return nullptr and our _UpdateMouseCursor() function will use the Arrow cursor instead.) + GLFWerrorfun prev_error_callback = glfwSetErrorCallback(nullptr); + bd->MouseCursors[ImGuiMouseCursor_Arrow] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_TextInput] = glfwCreateStandardCursor(GLFW_IBEAM_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = glfwCreateStandardCursor(GLFW_VRESIZE_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = glfwCreateStandardCursor(GLFW_HRESIZE_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_Hand] = glfwCreateStandardCursor(GLFW_HAND_CURSOR); +#if GLFW_HAS_NEW_CURSORS + bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = glfwCreateStandardCursor(GLFW_RESIZE_ALL_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = glfwCreateStandardCursor(GLFW_RESIZE_NESW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = glfwCreateStandardCursor(GLFW_RESIZE_NWSE_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = glfwCreateStandardCursor(GLFW_NOT_ALLOWED_CURSOR); +#else + bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); + bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); +#endif + glfwSetErrorCallback(prev_error_callback); +#if GLFW_HAS_GETERROR && !defined(__EMSCRIPTEN__) // Eat errors (see #5908) + (void)glfwGetError(nullptr); +#endif + + // Chain GLFW callbacks: our callbacks will call the user's previously installed callbacks, if any. + if (install_callbacks) + ImGui_ImplGlfw_InstallCallbacks(window); + // Register Emscripten Wheel callback to workaround issue in Emscripten GLFW Emulation (#6096) + // We intentionally do not check 'if (install_callbacks)' here, as some users may set it to false and call GLFW callback themselves. + // FIXME: May break chaining in case user registered their own Emscripten callback? +#ifdef __EMSCRIPTEN__ + emscripten_set_wheel_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, false, ImGui_ImplEmscripten_WheelCallback); +#endif + + // Update monitors the first time (note: monitor callback are broken in GLFW 3.2 and earlier, see github.com/glfw/glfw/issues/784) + ImGui_ImplGlfw_UpdateMonitors(); + glfwSetMonitorCallback(ImGui_ImplGlfw_MonitorCallback); + + // Set platform dependent data in viewport + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + main_viewport->PlatformHandle = (void*)bd->Window; +#ifdef _WIN32 + main_viewport->PlatformHandleRaw = glfwGetWin32Window(bd->Window); +#elif defined(__APPLE__) + main_viewport->PlatformHandleRaw = (void*)glfwGetCocoaWindow(bd->Window); +#else + IM_UNUSED(main_viewport); +#endif + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplGlfw_InitPlatformInterface(); + + // Windows: register a WndProc hook so we can intercept some messages. +#ifdef _WIN32 + bd->GlfwWndProc = (WNDPROC)::GetWindowLongPtr((HWND)main_viewport->PlatformHandleRaw, GWLP_WNDPROC); + IM_ASSERT(bd->GlfwWndProc != nullptr); + ::SetWindowLongPtr((HWND)main_viewport->PlatformHandleRaw, GWLP_WNDPROC, (LONG_PTR)ImGui_ImplGlfw_WndProc); +#endif + + bd->ClientApi = client_api; + return true; +} + +bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window, bool install_callbacks) +{ + return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_OpenGL); +} + +bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks) +{ + return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Vulkan); +} + +bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window, bool install_callbacks) +{ + return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Unknown); +} + +void ImGui_ImplGlfw_Shutdown() +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplGlfw_ShutdownPlatformInterface(); + + if (bd->InstalledCallbacks) + ImGui_ImplGlfw_RestoreCallbacks(bd->Window); +#ifdef __EMSCRIPTEN__ + emscripten_set_wheel_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, false, nullptr); +#endif + + for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_COUNT; cursor_n++) + glfwDestroyCursor(bd->MouseCursors[cursor_n]); + + // Windows: register a WndProc hook so we can intercept some messages. +#ifdef _WIN32 + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ::SetWindowLongPtr((HWND)main_viewport->PlatformHandleRaw, GWLP_WNDPROC, (LONG_PTR)bd->GlfwWndProc); + bd->GlfwWndProc = nullptr; +#endif + + io.BackendPlatformName = nullptr; + io.BackendPlatformUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports | ImGuiBackendFlags_HasMouseHoveredViewport); + IM_DELETE(bd); +} + +static void ImGui_ImplGlfw_UpdateMouseData() +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + + + ImGuiID mouse_viewport_id = 0; + const ImVec2 mouse_pos_prev = io.MousePos; + for (int n = 0; n < platform_io.Viewports.Size; n++) + { + ImGuiViewport* viewport = platform_io.Viewports[n]; + GLFWwindow* window = (GLFWwindow*)viewport->PlatformHandle; + +#ifdef __EMSCRIPTEN__ + const bool is_window_focused = true; +#else + const bool is_window_focused = glfwGetWindowAttrib(window, GLFW_FOCUSED) != 0; +#endif + if (is_window_focused) + { + // (Optional) Set OS mouse position from Dear ImGui if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) + // When multi-viewports are enabled, all Dear ImGui positions are same as OS positions. + if (io.WantSetMousePos) + glfwSetCursorPos(window, (double)(mouse_pos_prev.x - viewport->Pos.x), (double)(mouse_pos_prev.y - viewport->Pos.y)); + + // (Optional) Fallback to provide mouse position when focused (ImGui_ImplGlfw_CursorPosCallback already provides this when hovered or captured) + if (bd->MouseWindow == nullptr) + { + double mouse_x, mouse_y; + glfwGetCursorPos(window, &mouse_x, &mouse_y); + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + // Single viewport mode: mouse position in client window coordinates (io.MousePos is (0,0) when the mouse is on the upper-left corner of the app window) + // Multi-viewport mode: mouse position in OS absolute coordinates (io.MousePos is (0,0) when the mouse is on the upper-left of the primary monitor) + int window_x, window_y; + glfwGetWindowPos(window, &window_x, &window_y); + mouse_x += window_x; + mouse_y += window_y; + } + bd->LastValidMousePos = ImVec2((float)mouse_x, (float)mouse_y); + io.AddMousePosEvent((float)mouse_x, (float)mouse_y); + } + } + + // (Optional) When using multiple viewports: call io.AddMouseViewportEvent() with the viewport the OS mouse cursor is hovering. + // If ImGuiBackendFlags_HasMouseHoveredViewport is not set by the backend, Dear imGui will ignore this field and infer the information using its flawed heuristic. + // - [X] GLFW >= 3.3 backend ON WINDOWS ONLY does correctly ignore viewports with the _NoInputs flag. + // - [!] GLFW <= 3.2 backend CANNOT correctly ignore viewports with the _NoInputs flag, and CANNOT reported Hovered Viewport because of mouse capture. + // Some backend are not able to handle that correctly. If a backend report an hovered viewport that has the _NoInputs flag (e.g. when dragging a window + // for docking, the viewport has the _NoInputs flag in order to allow us to find the viewport under), then Dear ImGui is forced to ignore the value reported + // by the backend, and use its flawed heuristic to guess the viewport behind. + // - [X] GLFW backend correctly reports this regardless of another viewport behind focused and dragged from (we need this to find a useful drag and drop target). + // FIXME: This is currently only correct on Win32. See what we do below with the WM_NCHITTEST, missing an equivalent for other systems. + // See https://github.com/glfw/glfw/issues/1236 if you want to help in making this a GLFW feature. +#if GLFW_HAS_MOUSE_PASSTHROUGH || (GLFW_HAS_WINDOW_HOVERED && defined(_WIN32)) + const bool window_no_input = (viewport->Flags & ImGuiViewportFlags_NoInputs) != 0; +#if GLFW_HAS_MOUSE_PASSTHROUGH + glfwSetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH, window_no_input); +#endif + if (glfwGetWindowAttrib(window, GLFW_HOVERED) && !window_no_input) + mouse_viewport_id = viewport->ID; +#else + // We cannot use bd->MouseWindow maintained from CursorEnter/Leave callbacks, because it is locked to the window capturing mouse. +#endif + } + + if (io.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) + io.AddMouseViewportEvent(mouse_viewport_id); +} + +static void ImGui_ImplGlfw_UpdateMouseCursor() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if ((io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) || glfwGetInputMode(bd->Window, GLFW_CURSOR) == GLFW_CURSOR_DISABLED) + return; + + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int n = 0; n < platform_io.Viewports.Size; n++) + { + GLFWwindow* window = (GLFWwindow*)platform_io.Viewports[n]->PlatformHandle; + if (imgui_cursor == ImGuiMouseCursor_None || io.MouseDrawCursor) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN); + } + else + { + // Show OS mouse cursor + // FIXME-PLATFORM: Unfocused windows seems to fail changing the mouse cursor with GLFW 3.2, but 3.3 works here. + glfwSetCursor(window, bd->MouseCursors[imgui_cursor] ? bd->MouseCursors[imgui_cursor] : bd->MouseCursors[ImGuiMouseCursor_Arrow]); + glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); + } + } +} + +// Update gamepad inputs +static inline float Saturate(float v) { return v < 0.0f ? 0.0f : v > 1.0f ? 1.0f : v; } +static void ImGui_ImplGlfw_UpdateGamepads() +{ + ImGuiIO& io = ImGui::GetIO(); + if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. + return; + + io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; +#if GLFW_HAS_GAMEPAD_API && !defined(__EMSCRIPTEN__) + GLFWgamepadstate gamepad; + if (!glfwGetGamepadState(GLFW_JOYSTICK_1, &gamepad)) + return; + #define MAP_BUTTON(KEY_NO, BUTTON_NO, _UNUSED) do { io.AddKeyEvent(KEY_NO, gamepad.buttons[BUTTON_NO] != 0); } while (0) + #define MAP_ANALOG(KEY_NO, AXIS_NO, _UNUSED, V0, V1) do { float v = gamepad.axes[AXIS_NO]; v = (v - V0) / (V1 - V0); io.AddKeyAnalogEvent(KEY_NO, v > 0.10f, Saturate(v)); } while (0) +#else + int axes_count = 0, buttons_count = 0; + const float* axes = glfwGetJoystickAxes(GLFW_JOYSTICK_1, &axes_count); + const unsigned char* buttons = glfwGetJoystickButtons(GLFW_JOYSTICK_1, &buttons_count); + if (axes_count == 0 || buttons_count == 0) + return; + #define MAP_BUTTON(KEY_NO, _UNUSED, BUTTON_NO) do { io.AddKeyEvent(KEY_NO, (buttons_count > BUTTON_NO && buttons[BUTTON_NO] == GLFW_PRESS)); } while (0) + #define MAP_ANALOG(KEY_NO, _UNUSED, AXIS_NO, V0, V1) do { float v = (axes_count > AXIS_NO) ? axes[AXIS_NO] : V0; v = (v - V0) / (V1 - V0); io.AddKeyAnalogEvent(KEY_NO, v > 0.10f, Saturate(v)); } while (0) +#endif + io.BackendFlags |= ImGuiBackendFlags_HasGamepad; + MAP_BUTTON(ImGuiKey_GamepadStart, GLFW_GAMEPAD_BUTTON_START, 7); + MAP_BUTTON(ImGuiKey_GamepadBack, GLFW_GAMEPAD_BUTTON_BACK, 6); + MAP_BUTTON(ImGuiKey_GamepadFaceLeft, GLFW_GAMEPAD_BUTTON_X, 2); // Xbox X, PS Square + MAP_BUTTON(ImGuiKey_GamepadFaceRight, GLFW_GAMEPAD_BUTTON_B, 1); // Xbox B, PS Circle + MAP_BUTTON(ImGuiKey_GamepadFaceUp, GLFW_GAMEPAD_BUTTON_Y, 3); // Xbox Y, PS Triangle + MAP_BUTTON(ImGuiKey_GamepadFaceDown, GLFW_GAMEPAD_BUTTON_A, 0); // Xbox A, PS Cross + MAP_BUTTON(ImGuiKey_GamepadDpadLeft, GLFW_GAMEPAD_BUTTON_DPAD_LEFT, 13); + MAP_BUTTON(ImGuiKey_GamepadDpadRight, GLFW_GAMEPAD_BUTTON_DPAD_RIGHT, 11); + MAP_BUTTON(ImGuiKey_GamepadDpadUp, GLFW_GAMEPAD_BUTTON_DPAD_UP, 10); + MAP_BUTTON(ImGuiKey_GamepadDpadDown, GLFW_GAMEPAD_BUTTON_DPAD_DOWN, 12); + MAP_BUTTON(ImGuiKey_GamepadL1, GLFW_GAMEPAD_BUTTON_LEFT_BUMPER, 4); + MAP_BUTTON(ImGuiKey_GamepadR1, GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER, 5); + MAP_ANALOG(ImGuiKey_GamepadL2, GLFW_GAMEPAD_AXIS_LEFT_TRIGGER, 4, -0.75f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadR2, GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER, 5, -0.75f, +1.0f); + MAP_BUTTON(ImGuiKey_GamepadL3, GLFW_GAMEPAD_BUTTON_LEFT_THUMB, 8); + MAP_BUTTON(ImGuiKey_GamepadR3, GLFW_GAMEPAD_BUTTON_RIGHT_THUMB, 9); + MAP_ANALOG(ImGuiKey_GamepadLStickLeft, GLFW_GAMEPAD_AXIS_LEFT_X, 0, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickRight, GLFW_GAMEPAD_AXIS_LEFT_X, 0, +0.25f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickUp, GLFW_GAMEPAD_AXIS_LEFT_Y, 1, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadLStickDown, GLFW_GAMEPAD_AXIS_LEFT_Y, 1, +0.25f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickLeft, GLFW_GAMEPAD_AXIS_RIGHT_X, 2, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickRight, GLFW_GAMEPAD_AXIS_RIGHT_X, 2, +0.25f, +1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickUp, GLFW_GAMEPAD_AXIS_RIGHT_Y, 3, -0.25f, -1.0f); + MAP_ANALOG(ImGuiKey_GamepadRStickDown, GLFW_GAMEPAD_AXIS_RIGHT_Y, 3, +0.25f, +1.0f); + #undef MAP_BUTTON + #undef MAP_ANALOG +} + +static void ImGui_ImplGlfw_UpdateMonitors() +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + bd->WantUpdateMonitors = false; + + int monitors_count = 0; + GLFWmonitor** glfw_monitors = glfwGetMonitors(&monitors_count); + if (monitors_count == 0) // Preserve existing monitor list if there are none. Happens on macOS sleeping (#5683) + return; + + platform_io.Monitors.resize(0); + for (int n = 0; n < monitors_count; n++) + { + ImGuiPlatformMonitor monitor; + int x, y; + glfwGetMonitorPos(glfw_monitors[n], &x, &y); + const GLFWvidmode* vid_mode = glfwGetVideoMode(glfw_monitors[n]); + if (vid_mode == nullptr) + continue; // Failed to get Video mode (e.g. Emscripten does not support this function) + monitor.MainPos = monitor.WorkPos = ImVec2((float)x, (float)y); + monitor.MainSize = monitor.WorkSize = ImVec2((float)vid_mode->width, (float)vid_mode->height); +#if GLFW_HAS_MONITOR_WORK_AREA + int w, h; + glfwGetMonitorWorkarea(glfw_monitors[n], &x, &y, &w, &h); + if (w > 0 && h > 0) // Workaround a small GLFW issue reporting zero on monitor changes: https://github.com/glfw/glfw/pull/1761 + { + monitor.WorkPos = ImVec2((float)x, (float)y); + monitor.WorkSize = ImVec2((float)w, (float)h); + } +#endif +#if GLFW_HAS_PER_MONITOR_DPI + // Warning: the validity of monitor DPI information on Windows depends on the application DPI awareness settings, which generally needs to be set in the manifest or at runtime. + float x_scale, y_scale; + glfwGetMonitorContentScale(glfw_monitors[n], &x_scale, &y_scale); + monitor.DpiScale = x_scale; +#endif + monitor.PlatformHandle = (void*)glfw_monitors[n]; // [...] GLFW doc states: "guaranteed to be valid only until the monitor configuration changes" + platform_io.Monitors.push_back(monitor); + } +} + +void ImGui_ImplGlfw_NewFrame() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplGlfw_InitForXXX()?"); + + // Setup display size (every frame to accommodate for window resizing) + int w, h; + int display_w, display_h; + glfwGetWindowSize(bd->Window, &w, &h); + glfwGetFramebufferSize(bd->Window, &display_w, &display_h); + io.DisplaySize = ImVec2((float)w, (float)h); + if (w > 0 && h > 0) + io.DisplayFramebufferScale = ImVec2((float)display_w / (float)w, (float)display_h / (float)h); + if (bd->WantUpdateMonitors) + ImGui_ImplGlfw_UpdateMonitors(); + + // Setup time step + // (Accept glfwGetTime() not returning a monotonically increasing value. Seems to happens on disconnecting peripherals and probably on VMs and Emscripten, see #6491, #6189, #6114, #3644) + double current_time = glfwGetTime(); + if (current_time <= bd->Time) + current_time = bd->Time + 0.00001f; + io.DeltaTime = bd->Time > 0.0 ? (float)(current_time - bd->Time) : (float)(1.0f / 60.0f); + bd->Time = current_time; + + ImGui_ImplGlfw_UpdateMouseData(); + ImGui_ImplGlfw_UpdateMouseCursor(); + + // Update game controllers (if enabled and available) + ImGui_ImplGlfw_UpdateGamepads(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +// Helper structure we store in the void* RendererUserData field of each ImGuiViewport to easily retrieve our backend data. +struct ImGui_ImplGlfw_ViewportData +{ + GLFWwindow* Window; + bool WindowOwned; + int IgnoreWindowPosEventFrame; + int IgnoreWindowSizeEventFrame; + + ImGui_ImplGlfw_ViewportData() { Window = nullptr; WindowOwned = false; IgnoreWindowSizeEventFrame = IgnoreWindowPosEventFrame = -1; } + ~ImGui_ImplGlfw_ViewportData() { IM_ASSERT(Window == nullptr); } +}; + +static void ImGui_ImplGlfw_WindowCloseCallback(GLFWwindow* window) +{ + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle(window)) + viewport->PlatformRequestClose = true; +} + +// GLFW may dispatch window pos/size events after calling glfwSetWindowPos()/glfwSetWindowSize(). +// However: depending on the platform the callback may be invoked at different time: +// - on Windows it appears to be called within the glfwSetWindowPos()/glfwSetWindowSize() call +// - on Linux it is queued and invoked during glfwPollEvents() +// Because the event doesn't always fire on glfwSetWindowXXX() we use a frame counter tag to only +// ignore recent glfwSetWindowXXX() calls. +static void ImGui_ImplGlfw_WindowPosCallback(GLFWwindow* window, int, int) +{ + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle(window)) + { + if (ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData) + { + bool ignore_event = (ImGui::GetFrameCount() <= vd->IgnoreWindowPosEventFrame + 1); + //data->IgnoreWindowPosEventFrame = -1; + if (ignore_event) + return; + } + viewport->PlatformRequestMove = true; + } +} + +static void ImGui_ImplGlfw_WindowSizeCallback(GLFWwindow* window, int, int) +{ + if (ImGuiViewport* viewport = ImGui::FindViewportByPlatformHandle(window)) + { + if (ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData) + { + bool ignore_event = (ImGui::GetFrameCount() <= vd->IgnoreWindowSizeEventFrame + 1); + //data->IgnoreWindowSizeEventFrame = -1; + if (ignore_event) + return; + } + viewport->PlatformRequestResize = true; + } +} + +static void ImGui_ImplGlfw_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = IM_NEW(ImGui_ImplGlfw_ViewportData)(); + viewport->PlatformUserData = vd; + + // GLFW 3.2 unfortunately always set focus on glfwCreateWindow() if GLFW_VISIBLE is set, regardless of GLFW_FOCUSED + // With GLFW 3.3, the hint GLFW_FOCUS_ON_SHOW fixes this problem + glfwWindowHint(GLFW_VISIBLE, false); + glfwWindowHint(GLFW_FOCUSED, false); +#if GLFW_HAS_FOCUS_ON_SHOW + glfwWindowHint(GLFW_FOCUS_ON_SHOW, false); + #endif + glfwWindowHint(GLFW_DECORATED, (viewport->Flags & ImGuiViewportFlags_NoDecoration) ? false : true); +#if GLFW_HAS_WINDOW_TOPMOST + glfwWindowHint(GLFW_FLOATING, (viewport->Flags & ImGuiViewportFlags_TopMost) ? true : false); +#endif + GLFWwindow* share_window = (bd->ClientApi == GlfwClientApi_OpenGL) ? bd->Window : nullptr; + vd->Window = glfwCreateWindow((int)viewport->Size.x, (int)viewport->Size.y, "No Title Yet", nullptr, share_window); + vd->WindowOwned = true; + viewport->PlatformHandle = (void*)vd->Window; +#ifdef _WIN32 + viewport->PlatformHandleRaw = glfwGetWin32Window(vd->Window); +#elif defined(__APPLE__) + viewport->PlatformHandleRaw = (void*)glfwGetCocoaWindow(vd->Window); +#endif + glfwSetWindowPos(vd->Window, (int)viewport->Pos.x, (int)viewport->Pos.y); + + // Install GLFW callbacks for secondary viewports + glfwSetWindowFocusCallback(vd->Window, ImGui_ImplGlfw_WindowFocusCallback); + glfwSetCursorEnterCallback(vd->Window, ImGui_ImplGlfw_CursorEnterCallback); + glfwSetCursorPosCallback(vd->Window, ImGui_ImplGlfw_CursorPosCallback); + glfwSetMouseButtonCallback(vd->Window, ImGui_ImplGlfw_MouseButtonCallback); + glfwSetScrollCallback(vd->Window, ImGui_ImplGlfw_ScrollCallback); + glfwSetKeyCallback(vd->Window, ImGui_ImplGlfw_KeyCallback); + glfwSetCharCallback(vd->Window, ImGui_ImplGlfw_CharCallback); + glfwSetWindowCloseCallback(vd->Window, ImGui_ImplGlfw_WindowCloseCallback); + glfwSetWindowPosCallback(vd->Window, ImGui_ImplGlfw_WindowPosCallback); + glfwSetWindowSizeCallback(vd->Window, ImGui_ImplGlfw_WindowSizeCallback); + if (bd->ClientApi == GlfwClientApi_OpenGL) + { + glfwMakeContextCurrent(vd->Window); + glfwSwapInterval(0); + } +} + +static void ImGui_ImplGlfw_DestroyWindow(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + if (ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData) + { + if (vd->WindowOwned) + { +#if !GLFW_HAS_MOUSE_PASSTHROUGH && GLFW_HAS_WINDOW_HOVERED && defined(_WIN32) + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + ::RemovePropA(hwnd, "IMGUI_VIEWPORT"); +#endif + + // Release any keys that were pressed in the window being destroyed and are still held down, + // because we will not receive any release events after window is destroyed. + for (int i = 0; i < IM_ARRAYSIZE(bd->KeyOwnerWindows); i++) + if (bd->KeyOwnerWindows[i] == vd->Window) + ImGui_ImplGlfw_KeyCallback(vd->Window, i, 0, GLFW_RELEASE, 0); // Later params are only used for main viewport, on which this function is never called. + + glfwDestroyWindow(vd->Window); + } + vd->Window = nullptr; + IM_DELETE(vd); + } + viewport->PlatformUserData = viewport->PlatformHandle = nullptr; +} + +static void ImGui_ImplGlfw_ShowWindow(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + +#if defined(_WIN32) + // GLFW hack: Hide icon from task bar + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + if (viewport->Flags & ImGuiViewportFlags_NoTaskBarIcon) + { + LONG ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE); + ex_style &= ~WS_EX_APPWINDOW; + ex_style |= WS_EX_TOOLWINDOW; + ::SetWindowLong(hwnd, GWL_EXSTYLE, ex_style); + } + + // GLFW hack: install hook for WM_NCHITTEST message handler +#if !GLFW_HAS_MOUSE_PASSTHROUGH && GLFW_HAS_WINDOW_HOVERED && defined(_WIN32) + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ::SetPropA(hwnd, "IMGUI_VIEWPORT", viewport); + IM_ASSERT(bd->GlfwWndProc == (WNDPROC)::GetWindowLongPtr(hwnd, GWLP_WNDPROC)); + ::SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)ImGui_ImplGlfw_WndProc); +#endif + +#if !GLFW_HAS_FOCUS_ON_SHOW + // GLFW hack: GLFW 3.2 has a bug where glfwShowWindow() also activates/focus the window. + // The fix was pushed to GLFW repository on 2018/01/09 and should be included in GLFW 3.3 via a GLFW_FOCUS_ON_SHOW window attribute. + // See https://github.com/glfw/glfw/issues/1189 + // FIXME-VIEWPORT: Implement same work-around for Linux/OSX in the meanwhile. + if (viewport->Flags & ImGuiViewportFlags_NoFocusOnAppearing) + { + ::ShowWindow(hwnd, SW_SHOWNA); + return; + } +#endif +#endif + + glfwShowWindow(vd->Window); +} + +static ImVec2 ImGui_ImplGlfw_GetWindowPos(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + int x = 0, y = 0; + glfwGetWindowPos(vd->Window, &x, &y); + return ImVec2((float)x, (float)y); +} + +static void ImGui_ImplGlfw_SetWindowPos(ImGuiViewport* viewport, ImVec2 pos) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + vd->IgnoreWindowPosEventFrame = ImGui::GetFrameCount(); + glfwSetWindowPos(vd->Window, (int)pos.x, (int)pos.y); +} + +static ImVec2 ImGui_ImplGlfw_GetWindowSize(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + int w = 0, h = 0; + glfwGetWindowSize(vd->Window, &w, &h); + return ImVec2((float)w, (float)h); +} + +static void ImGui_ImplGlfw_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; +#if __APPLE__ && !GLFW_HAS_OSX_WINDOW_POS_FIX + // Native OS windows are positioned from the bottom-left corner on macOS, whereas on other platforms they are + // positioned from the upper-left corner. GLFW makes an effort to convert macOS style coordinates, however it + // doesn't handle it when changing size. We are manually moving the window in order for changes of size to be based + // on the upper-left corner. + int x, y, width, height; + glfwGetWindowPos(vd->Window, &x, &y); + glfwGetWindowSize(vd->Window, &width, &height); + glfwSetWindowPos(vd->Window, x, y - height + size.y); +#endif + vd->IgnoreWindowSizeEventFrame = ImGui::GetFrameCount(); + glfwSetWindowSize(vd->Window, (int)size.x, (int)size.y); +} + +static void ImGui_ImplGlfw_SetWindowTitle(ImGuiViewport* viewport, const char* title) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + glfwSetWindowTitle(vd->Window, title); +} + +static void ImGui_ImplGlfw_SetWindowFocus(ImGuiViewport* viewport) +{ +#if GLFW_HAS_FOCUS_WINDOW + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + glfwFocusWindow(vd->Window); +#else + // FIXME: What are the effect of not having this function? At the moment imgui doesn't actually call SetWindowFocus - we set that up ahead, will answer that question later. + (void)viewport; +#endif +} + +static bool ImGui_ImplGlfw_GetWindowFocus(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + return glfwGetWindowAttrib(vd->Window, GLFW_FOCUSED) != 0; +} + +static bool ImGui_ImplGlfw_GetWindowMinimized(ImGuiViewport* viewport) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + return glfwGetWindowAttrib(vd->Window, GLFW_ICONIFIED) != 0; +} + +#if GLFW_HAS_WINDOW_ALPHA +static void ImGui_ImplGlfw_SetWindowAlpha(ImGuiViewport* viewport, float alpha) +{ + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + glfwSetWindowOpacity(vd->Window, alpha); +} +#endif + +static void ImGui_ImplGlfw_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + if (bd->ClientApi == GlfwClientApi_OpenGL) + glfwMakeContextCurrent(vd->Window); +} + +static void ImGui_ImplGlfw_SwapBuffers(ImGuiViewport* viewport, void*) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + if (bd->ClientApi == GlfwClientApi_OpenGL) + { + glfwMakeContextCurrent(vd->Window); + glfwSwapBuffers(vd->Window); + } +} + +//-------------------------------------------------------------------------------------------------------- +// Vulkan support (the Vulkan renderer needs to call a platform-side support function to create the surface) +//-------------------------------------------------------------------------------------------------------- + +// Avoid including so we can build without it +#if GLFW_HAS_VULKAN +#ifndef VULKAN_H_ +#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; +#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) +#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object; +#else +#define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object; +#endif +VK_DEFINE_HANDLE(VkInstance) +VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR) +struct VkAllocationCallbacks; +enum VkResult { VK_RESULT_MAX_ENUM = 0x7FFFFFFF }; +#endif // VULKAN_H_ +extern "C" { extern GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); } +static int ImGui_ImplGlfw_CreateVkSurface(ImGuiViewport* viewport, ImU64 vk_instance, const void* vk_allocator, ImU64* out_vk_surface) +{ + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + IM_UNUSED(bd); + IM_ASSERT(bd->ClientApi == GlfwClientApi_Vulkan); + VkResult err = glfwCreateWindowSurface((VkInstance)vk_instance, vd->Window, (const VkAllocationCallbacks*)vk_allocator, (VkSurfaceKHR*)out_vk_surface); + return (int)err; +} +#endif // GLFW_HAS_VULKAN + +static void ImGui_ImplGlfw_InitPlatformInterface() +{ + // Register platform interface (will be coupled with a renderer interface) + ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Platform_CreateWindow = ImGui_ImplGlfw_CreateWindow; + platform_io.Platform_DestroyWindow = ImGui_ImplGlfw_DestroyWindow; + platform_io.Platform_ShowWindow = ImGui_ImplGlfw_ShowWindow; + platform_io.Platform_SetWindowPos = ImGui_ImplGlfw_SetWindowPos; + platform_io.Platform_GetWindowPos = ImGui_ImplGlfw_GetWindowPos; + platform_io.Platform_SetWindowSize = ImGui_ImplGlfw_SetWindowSize; + platform_io.Platform_GetWindowSize = ImGui_ImplGlfw_GetWindowSize; + platform_io.Platform_SetWindowFocus = ImGui_ImplGlfw_SetWindowFocus; + platform_io.Platform_GetWindowFocus = ImGui_ImplGlfw_GetWindowFocus; + platform_io.Platform_GetWindowMinimized = ImGui_ImplGlfw_GetWindowMinimized; + platform_io.Platform_SetWindowTitle = ImGui_ImplGlfw_SetWindowTitle; + platform_io.Platform_RenderWindow = ImGui_ImplGlfw_RenderWindow; + platform_io.Platform_SwapBuffers = ImGui_ImplGlfw_SwapBuffers; +#if GLFW_HAS_WINDOW_ALPHA + platform_io.Platform_SetWindowAlpha = ImGui_ImplGlfw_SetWindowAlpha; +#endif +#if GLFW_HAS_VULKAN + platform_io.Platform_CreateVkSurface = ImGui_ImplGlfw_CreateVkSurface; +#endif + + // Register main window handle (which is owned by the main application, not by us) + // This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports. + ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + ImGui_ImplGlfw_ViewportData* vd = IM_NEW(ImGui_ImplGlfw_ViewportData)(); + vd->Window = bd->Window; + vd->WindowOwned = false; + main_viewport->PlatformUserData = vd; + main_viewport->PlatformHandle = (void*)bd->Window; +} + +static void ImGui_ImplGlfw_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_metal.mm b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_metal.mm new file mode 100644 index 00000000000..55af1b1e3b9 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_metal.mm @@ -0,0 +1,750 @@ +// dear imgui: Renderer Backend for Metal +// This needs to be used along with a Platform Backend (e.g. OSX) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Metal: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-08-23: Metal: Update deprecated property 'sampleCount'->'rasterSampleCount'. +// 2022-07-05: Metal: Add dispatch synchronization. +// 2022-06-30: Metal: Use __bridge for ARC based systems. +// 2022-06-01: Metal: Fixed null dereference on exit inside command buffer completion handler. +// 2022-04-27: Misc: Store backend data in a per-context struct, allowing to use this backend with multiple contexts. +// 2022-01-03: Metal: Ignore ImDrawCmd where ElemCount == 0 (very rare but can technically be manufactured by user code). +// 2021-12-30: Metal: Added Metal C++ support. Enable with '#define IMGUI_IMPL_METAL_CPP' in your imconfig.h file. +// 2021-08-24: Metal: Fixed a crash when clipping rect larger than framebuffer is submitted. (#4464) +// 2021-05-19: Metal: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-02-18: Metal: Change blending equation to preserve alpha in output buffer. +// 2021-01-25: Metal: Fixed texture storage mode when building on Mac Catalyst. +// 2019-05-29: Metal: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: Metal: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-02-11: Metal: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-07-05: Metal: Added new Metal backend implementation. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_metal.h" +#import +#import + +// Forward Declarations +static void ImGui_ImplMetal_InitPlatformInterface(); +static void ImGui_ImplMetal_ShutdownPlatformInterface(); +static void ImGui_ImplMetal_CreateDeviceObjectsForPlatformWindows(); +static void ImGui_ImplMetal_InvalidateDeviceObjectsForPlatformWindows(); + +#pragma mark - Support classes + +// A wrapper around a MTLBuffer object that knows the last time it was reused +@interface MetalBuffer : NSObject +@property (nonatomic, strong) id buffer; +@property (nonatomic, assign) double lastReuseTime; +- (instancetype)initWithBuffer:(id)buffer; +@end + +// An object that encapsulates the data necessary to uniquely identify a +// render pipeline state. These are used as cache keys. +@interface FramebufferDescriptor : NSObject +@property (nonatomic, assign) unsigned long sampleCount; +@property (nonatomic, assign) MTLPixelFormat colorPixelFormat; +@property (nonatomic, assign) MTLPixelFormat depthPixelFormat; +@property (nonatomic, assign) MTLPixelFormat stencilPixelFormat; +- (instancetype)initWithRenderPassDescriptor:(MTLRenderPassDescriptor*)renderPassDescriptor; +@end + +// A singleton that stores long-lived objects that are needed by the Metal +// renderer backend. Stores the render pipeline state cache and the default +// font texture, and manages the reusable buffer cache. +@interface MetalContext : NSObject +@property (nonatomic, strong) id device; +@property (nonatomic, strong) id depthStencilState; +@property (nonatomic, strong) FramebufferDescriptor* framebufferDescriptor; // framebuffer descriptor for current frame; transient +@property (nonatomic, strong) NSMutableDictionary* renderPipelineStateCache; // pipeline cache; keyed on framebuffer descriptors +@property (nonatomic, strong, nullable) id fontTexture; +@property (nonatomic, strong) NSMutableArray* bufferCache; +@property (nonatomic, assign) double lastBufferCachePurge; +- (MetalBuffer*)dequeueReusableBufferOfLength:(NSUInteger)length device:(id)device; +- (id)renderPipelineStateForFramebufferDescriptor:(FramebufferDescriptor*)descriptor device:(id)device; +@end + +struct ImGui_ImplMetal_Data +{ + MetalContext* SharedMetalContext; + + ImGui_ImplMetal_Data() { memset(this, 0, sizeof(*this)); } +}; + +static ImGui_ImplMetal_Data* ImGui_ImplMetal_CreateBackendData() { return IM_NEW(ImGui_ImplMetal_Data)(); } +static ImGui_ImplMetal_Data* ImGui_ImplMetal_GetBackendData() { return ImGui::GetCurrentContext() ? (ImGui_ImplMetal_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; } +static void ImGui_ImplMetal_DestroyBackendData(){ IM_DELETE(ImGui_ImplMetal_GetBackendData()); } + +static inline CFTimeInterval GetMachAbsoluteTimeInSeconds() { return (CFTimeInterval)(double)(clock_gettime_nsec_np(CLOCK_UPTIME_RAW) / 1e9); } + +#ifdef IMGUI_IMPL_METAL_CPP + +#pragma mark - Dear ImGui Metal C++ Backend API + +bool ImGui_ImplMetal_Init(MTL::Device* device) +{ + return ImGui_ImplMetal_Init((__bridge id)(device)); +} + +void ImGui_ImplMetal_NewFrame(MTL::RenderPassDescriptor* renderPassDescriptor) +{ + ImGui_ImplMetal_NewFrame((__bridge MTLRenderPassDescriptor*)(renderPassDescriptor)); +} + +void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data, + MTL::CommandBuffer* commandBuffer, + MTL::RenderCommandEncoder* commandEncoder) +{ + ImGui_ImplMetal_RenderDrawData(draw_data, + (__bridge id)(commandBuffer), + (__bridge id)(commandEncoder)); + +} + +bool ImGui_ImplMetal_CreateFontsTexture(MTL::Device* device) +{ + return ImGui_ImplMetal_CreateFontsTexture((__bridge id)(device)); +} + +bool ImGui_ImplMetal_CreateDeviceObjects(MTL::Device* device) +{ + return ImGui_ImplMetal_CreateDeviceObjects((__bridge id)(device)); +} + +#endif // #ifdef IMGUI_IMPL_METAL_CPP + +#pragma mark - Dear ImGui Metal Backend API + +bool ImGui_ImplMetal_Init(id device) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_CreateBackendData(); + ImGuiIO& io = ImGui::GetIO(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_metal"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + bd->SharedMetalContext = [[MetalContext alloc] init]; + bd->SharedMetalContext.device = device; + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplMetal_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplMetal_Shutdown() +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGui_ImplMetal_ShutdownPlatformInterface(); + ImGui_ImplMetal_DestroyDeviceObjects(); + ImGui_ImplMetal_DestroyBackendData(); + + ImGuiIO& io = ImGui::GetIO(); + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); +} + +void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor* renderPassDescriptor) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + IM_ASSERT(bd->SharedMetalContext != nil && "No Metal context. Did you call ImGui_ImplMetal_Init() ?"); + bd->SharedMetalContext.framebufferDescriptor = [[FramebufferDescriptor alloc] initWithRenderPassDescriptor:renderPassDescriptor]; + + if (bd->SharedMetalContext.depthStencilState == nil) + ImGui_ImplMetal_CreateDeviceObjects(bd->SharedMetalContext.device); +} + +static void ImGui_ImplMetal_SetupRenderState(ImDrawData* drawData, id commandBuffer, + id commandEncoder, id renderPipelineState, + MetalBuffer* vertexBuffer, size_t vertexBufferOffset) +{ + IM_UNUSED(commandBuffer); + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + [commandEncoder setCullMode:MTLCullModeNone]; + [commandEncoder setDepthStencilState:bd->SharedMetalContext.depthStencilState]; + + // Setup viewport, orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to + // draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayMin is typically (0,0) for single viewport apps. + MTLViewport viewport = + { + .originX = 0.0, + .originY = 0.0, + .width = (double)(drawData->DisplaySize.x * drawData->FramebufferScale.x), + .height = (double)(drawData->DisplaySize.y * drawData->FramebufferScale.y), + .znear = 0.0, + .zfar = 1.0 + }; + [commandEncoder setViewport:viewport]; + + float L = drawData->DisplayPos.x; + float R = drawData->DisplayPos.x + drawData->DisplaySize.x; + float T = drawData->DisplayPos.y; + float B = drawData->DisplayPos.y + drawData->DisplaySize.y; + float N = (float)viewport.znear; + float F = (float)viewport.zfar; + const float ortho_projection[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 1/(F-N), 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), N/(F-N), 1.0f }, + }; + [commandEncoder setVertexBytes:&ortho_projection length:sizeof(ortho_projection) atIndex:1]; + + [commandEncoder setRenderPipelineState:renderPipelineState]; + + [commandEncoder setVertexBuffer:vertexBuffer.buffer offset:0 atIndex:0]; + [commandEncoder setVertexBufferOffset:vertexBufferOffset atIndex:0]; +} + +// Metal Render function. +void ImGui_ImplMetal_RenderDrawData(ImDrawData* drawData, id commandBuffer, id commandEncoder) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + MetalContext* ctx = bd->SharedMetalContext; + + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(drawData->DisplaySize.x * drawData->FramebufferScale.x); + int fb_height = (int)(drawData->DisplaySize.y * drawData->FramebufferScale.y); + if (fb_width <= 0 || fb_height <= 0 || drawData->CmdListsCount == 0) + return; + + // Try to retrieve a render pipeline state that is compatible with the framebuffer config for this frame + // The hit rate for this cache should be very near 100%. + id renderPipelineState = ctx.renderPipelineStateCache[ctx.framebufferDescriptor]; + if (renderPipelineState == nil) + { + // No luck; make a new render pipeline state + renderPipelineState = [ctx renderPipelineStateForFramebufferDescriptor:ctx.framebufferDescriptor device:commandBuffer.device]; + + // Cache render pipeline state for later reuse + ctx.renderPipelineStateCache[ctx.framebufferDescriptor] = renderPipelineState; + } + + size_t vertexBufferLength = (size_t)drawData->TotalVtxCount * sizeof(ImDrawVert); + size_t indexBufferLength = (size_t)drawData->TotalIdxCount * sizeof(ImDrawIdx); + MetalBuffer* vertexBuffer = [ctx dequeueReusableBufferOfLength:vertexBufferLength device:commandBuffer.device]; + MetalBuffer* indexBuffer = [ctx dequeueReusableBufferOfLength:indexBufferLength device:commandBuffer.device]; + + ImGui_ImplMetal_SetupRenderState(drawData, commandBuffer, commandEncoder, renderPipelineState, vertexBuffer, 0); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = drawData->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = drawData->FramebufferScale; // (1,1) unless using retina display which are often (2,2) + + // Render command lists + size_t vertexBufferOffset = 0; + size_t indexBufferOffset = 0; + for (int n = 0; n < drawData->CmdListsCount; n++) + { + const ImDrawList* cmd_list = drawData->CmdLists[n]; + + memcpy((char*)vertexBuffer.buffer.contents + vertexBufferOffset, cmd_list->VtxBuffer.Data, (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy((char*)indexBuffer.buffer.contents + indexBufferOffset, cmd_list->IdxBuffer.Data, (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplMetal_SetupRenderState(drawData, commandBuffer, commandEncoder, renderPipelineState, vertexBuffer, vertexBufferOffset); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + + // Clamp to viewport as setScissorRect() won't accept values that are off bounds + if (clip_min.x < 0.0f) { clip_min.x = 0.0f; } + if (clip_min.y < 0.0f) { clip_min.y = 0.0f; } + if (clip_max.x > fb_width) { clip_max.x = (float)fb_width; } + if (clip_max.y > fb_height) { clip_max.y = (float)fb_height; } + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + if (pcmd->ElemCount == 0) // drawIndexedPrimitives() validation doesn't accept this + continue; + + // Apply scissor/clipping rectangle + MTLScissorRect scissorRect = + { + .x = NSUInteger(clip_min.x), + .y = NSUInteger(clip_min.y), + .width = NSUInteger(clip_max.x - clip_min.x), + .height = NSUInteger(clip_max.y - clip_min.y) + }; + [commandEncoder setScissorRect:scissorRect]; + + // Bind texture, Draw + if (ImTextureID tex_id = pcmd->GetTexID()) + [commandEncoder setFragmentTexture:(__bridge id)(tex_id) atIndex:0]; + + [commandEncoder setVertexBufferOffset:(vertexBufferOffset + pcmd->VtxOffset * sizeof(ImDrawVert)) atIndex:0]; + [commandEncoder drawIndexedPrimitives:MTLPrimitiveTypeTriangle + indexCount:pcmd->ElemCount + indexType:sizeof(ImDrawIdx) == 2 ? MTLIndexTypeUInt16 : MTLIndexTypeUInt32 + indexBuffer:indexBuffer.buffer + indexBufferOffset:indexBufferOffset + pcmd->IdxOffset * sizeof(ImDrawIdx)]; + } + } + + vertexBufferOffset += (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert); + indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx); + } + + [commandBuffer addCompletedHandler:^(id) + { + dispatch_async(dispatch_get_main_queue(), ^{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + if (bd != nullptr) + { + @synchronized(bd->SharedMetalContext.bufferCache) + { + [bd->SharedMetalContext.bufferCache addObject:vertexBuffer]; + [bd->SharedMetalContext.bufferCache addObject:indexBuffer]; + } + } + }); + }]; +} + +bool ImGui_ImplMetal_CreateFontsTexture(id device) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + + // We are retrieving and uploading the font atlas as a 4-channels RGBA texture here. + // In theory we could call GetTexDataAsAlpha8() and upload a 1-channel texture to save on memory access bandwidth. + // However, using a shader designed for 1-channel texture would make it less obvious to use the ImTextureID facility to render users own textures. + // You can make that change in your implementation. + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + MTLTextureDescriptor* textureDescriptor = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA8Unorm + width:(NSUInteger)width + height:(NSUInteger)height + mipmapped:NO]; + textureDescriptor.usage = MTLTextureUsageShaderRead; +#if TARGET_OS_OSX || TARGET_OS_MACCATALYST + textureDescriptor.storageMode = MTLStorageModeManaged; +#else + textureDescriptor.storageMode = MTLStorageModeShared; +#endif + id texture = [device newTextureWithDescriptor:textureDescriptor]; + [texture replaceRegion:MTLRegionMake2D(0, 0, (NSUInteger)width, (NSUInteger)height) mipmapLevel:0 withBytes:pixels bytesPerRow:(NSUInteger)width * 4]; + bd->SharedMetalContext.fontTexture = texture; + io.Fonts->SetTexID((__bridge void*)bd->SharedMetalContext.fontTexture); // ImTextureID == void* + + return (bd->SharedMetalContext.fontTexture != nil); +} + +void ImGui_ImplMetal_DestroyFontsTexture() +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGuiIO& io = ImGui::GetIO(); + bd->SharedMetalContext.fontTexture = nil; + io.Fonts->SetTexID(0); +} + +bool ImGui_ImplMetal_CreateDeviceObjects(id device) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + MTLDepthStencilDescriptor* depthStencilDescriptor = [[MTLDepthStencilDescriptor alloc] init]; + depthStencilDescriptor.depthWriteEnabled = NO; + depthStencilDescriptor.depthCompareFunction = MTLCompareFunctionAlways; + bd->SharedMetalContext.depthStencilState = [device newDepthStencilStateWithDescriptor:depthStencilDescriptor]; + ImGui_ImplMetal_CreateDeviceObjectsForPlatformWindows(); + ImGui_ImplMetal_CreateFontsTexture(device); + + return true; +} + +void ImGui_ImplMetal_DestroyDeviceObjects() +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGui_ImplMetal_DestroyFontsTexture(); + ImGui_ImplMetal_InvalidateDeviceObjectsForPlatformWindows(); + [bd->SharedMetalContext.renderPipelineStateCache removeAllObjects]; +} + +#pragma mark - Multi-viewport support + +#import + +#if TARGET_OS_OSX +#import +#endif + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the back-end to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +struct ImGuiViewportDataMetal +{ + CAMetalLayer* MetalLayer; + id CommandQueue; + MTLRenderPassDescriptor* RenderPassDescriptor; + void* Handle = nullptr; + bool FirstFrame = true; +}; + +static void ImGui_ImplMetal_CreateWindow(ImGuiViewport* viewport) +{ + ImGui_ImplMetal_Data* bd = ImGui_ImplMetal_GetBackendData(); + ImGuiViewportDataMetal* data = IM_NEW(ImGuiViewportDataMetal)(); + viewport->RendererUserData = data; + + // PlatformHandleRaw should always be a NSWindow*, whereas PlatformHandle might be a higher-level handle (e.g. GLFWWindow*, SDL_Window*). + // Some back-ends will leave PlatformHandleRaw == 0, in which case we assume PlatformHandle will contain the NSWindow*. + void* handle = viewport->PlatformHandleRaw ? viewport->PlatformHandleRaw : viewport->PlatformHandle; + IM_ASSERT(handle != nullptr); + + id device = bd->SharedMetalContext.device; + CAMetalLayer* layer = [CAMetalLayer layer]; + layer.device = device; + layer.framebufferOnly = YES; + layer.pixelFormat = bd->SharedMetalContext.framebufferDescriptor.colorPixelFormat; +#if TARGET_OS_OSX + NSWindow* window = (__bridge NSWindow*)handle; + NSView* view = window.contentView; + view.layer = layer; + view.wantsLayer = YES; +#endif + data->MetalLayer = layer; + data->CommandQueue = [device newCommandQueue]; + data->RenderPassDescriptor = [[MTLRenderPassDescriptor alloc] init]; + data->Handle = handle; +} + +static void ImGui_ImplMetal_DestroyWindow(ImGuiViewport* viewport) +{ + // The main viewport (owned by the application) will always have RendererUserData == 0 since we didn't create the data for it. + if (ImGuiViewportDataMetal* data = (ImGuiViewportDataMetal*)viewport->RendererUserData) + IM_DELETE(data); + viewport->RendererUserData = nullptr; +} + +inline static CGSize MakeScaledSize(CGSize size, CGFloat scale) +{ + return CGSizeMake(size.width * scale, size.height * scale); +} + +static void ImGui_ImplMetal_SetWindowSize(ImGuiViewport* viewport, ImVec2 size) +{ + ImGuiViewportDataMetal* data = (ImGuiViewportDataMetal*)viewport->RendererUserData; + data->MetalLayer.drawableSize = MakeScaledSize(CGSizeMake(size.x, size.y), viewport->DpiScale); +} + +static void ImGui_ImplMetal_RenderWindow(ImGuiViewport* viewport, void*) +{ + ImGuiViewportDataMetal* data = (ImGuiViewportDataMetal*)viewport->RendererUserData; + +#if TARGET_OS_OSX + void* handle = viewport->PlatformHandleRaw ? viewport->PlatformHandleRaw : viewport->PlatformHandle; + NSWindow* window = (__bridge NSWindow*)handle; + + // Always render the first frame, regardless of occlusionState, to avoid an initial flicker + if ((window.occlusionState & NSWindowOcclusionStateVisible) == 0 && !data->FirstFrame) + { + // Do not render windows which are completely occluded. Calling -[CAMetalLayer nextDrawable] will hang for + // approximately 1 second if the Metal layer is completely occluded. + return; + } + data->FirstFrame = false; + + viewport->DpiScale = (float)window.backingScaleFactor; + if (data->MetalLayer.contentsScale != viewport->DpiScale) + { + data->MetalLayer.contentsScale = viewport->DpiScale; + data->MetalLayer.drawableSize = MakeScaledSize(window.frame.size, viewport->DpiScale); + } + viewport->DrawData->FramebufferScale = ImVec2(viewport->DpiScale, viewport->DpiScale); +#endif + + id drawable = [data->MetalLayer nextDrawable]; + if (drawable == nil) + return; + + MTLRenderPassDescriptor* renderPassDescriptor = data->RenderPassDescriptor; + renderPassDescriptor.colorAttachments[0].texture = drawable.texture; + renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(0, 0, 0, 0); + if ((viewport->Flags & ImGuiViewportFlags_NoRendererClear) == 0) + renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear; + + id commandBuffer = [data->CommandQueue commandBuffer]; + id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; + ImGui_ImplMetal_RenderDrawData(viewport->DrawData, commandBuffer, renderEncoder); + [renderEncoder endEncoding]; + + [commandBuffer presentDrawable:drawable]; + [commandBuffer commit]; +} + +static void ImGui_ImplMetal_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_CreateWindow = ImGui_ImplMetal_CreateWindow; + platform_io.Renderer_DestroyWindow = ImGui_ImplMetal_DestroyWindow; + platform_io.Renderer_SetWindowSize = ImGui_ImplMetal_SetWindowSize; + platform_io.Renderer_RenderWindow = ImGui_ImplMetal_RenderWindow; +} + +static void ImGui_ImplMetal_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +static void ImGui_ImplMetal_CreateDeviceObjectsForPlatformWindows() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + if (!platform_io.Viewports[i]->RendererUserData) + ImGui_ImplMetal_CreateWindow(platform_io.Viewports[i]); +} + +static void ImGui_ImplMetal_InvalidateDeviceObjectsForPlatformWindows() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + if (platform_io.Viewports[i]->RendererUserData) + ImGui_ImplMetal_DestroyWindow(platform_io.Viewports[i]); +} + +#pragma mark - MetalBuffer implementation + +@implementation MetalBuffer +- (instancetype)initWithBuffer:(id)buffer +{ + if ((self = [super init])) + { + _buffer = buffer; + _lastReuseTime = GetMachAbsoluteTimeInSeconds(); + } + return self; +} +@end + +#pragma mark - FramebufferDescriptor implementation + +@implementation FramebufferDescriptor +- (instancetype)initWithRenderPassDescriptor:(MTLRenderPassDescriptor*)renderPassDescriptor +{ + if ((self = [super init])) + { + _sampleCount = renderPassDescriptor.colorAttachments[0].texture.sampleCount; + _colorPixelFormat = renderPassDescriptor.colorAttachments[0].texture.pixelFormat; + _depthPixelFormat = renderPassDescriptor.depthAttachment.texture.pixelFormat; + _stencilPixelFormat = renderPassDescriptor.stencilAttachment.texture.pixelFormat; + } + return self; +} + +- (nonnull id)copyWithZone:(nullable NSZone*)zone +{ + FramebufferDescriptor* copy = [[FramebufferDescriptor allocWithZone:zone] init]; + copy.sampleCount = self.sampleCount; + copy.colorPixelFormat = self.colorPixelFormat; + copy.depthPixelFormat = self.depthPixelFormat; + copy.stencilPixelFormat = self.stencilPixelFormat; + return copy; +} + +- (NSUInteger)hash +{ + NSUInteger sc = _sampleCount & 0x3; + NSUInteger cf = _colorPixelFormat & 0x3FF; + NSUInteger df = _depthPixelFormat & 0x3FF; + NSUInteger sf = _stencilPixelFormat & 0x3FF; + NSUInteger hash = (sf << 22) | (df << 12) | (cf << 2) | sc; + return hash; +} + +- (BOOL)isEqual:(id)object +{ + FramebufferDescriptor* other = object; + if (![other isKindOfClass:[FramebufferDescriptor class]]) + return NO; + return other.sampleCount == self.sampleCount && + other.colorPixelFormat == self.colorPixelFormat && + other.depthPixelFormat == self.depthPixelFormat && + other.stencilPixelFormat == self.stencilPixelFormat; +} + +@end + +#pragma mark - MetalContext implementation + +@implementation MetalContext +- (instancetype)init +{ + if ((self = [super init])) + { + self.renderPipelineStateCache = [NSMutableDictionary dictionary]; + self.bufferCache = [NSMutableArray array]; + _lastBufferCachePurge = GetMachAbsoluteTimeInSeconds(); + } + return self; +} + +- (MetalBuffer*)dequeueReusableBufferOfLength:(NSUInteger)length device:(id)device +{ + uint64_t now = GetMachAbsoluteTimeInSeconds(); + + @synchronized(self.bufferCache) + { + // Purge old buffers that haven't been useful for a while + if (now - self.lastBufferCachePurge > 1.0) + { + NSMutableArray* survivors = [NSMutableArray array]; + for (MetalBuffer* candidate in self.bufferCache) + if (candidate.lastReuseTime > self.lastBufferCachePurge) + [survivors addObject:candidate]; + self.bufferCache = [survivors mutableCopy]; + self.lastBufferCachePurge = now; + } + + // See if we have a buffer we can reuse + MetalBuffer* bestCandidate = nil; + for (MetalBuffer* candidate in self.bufferCache) + if (candidate.buffer.length >= length && (bestCandidate == nil || bestCandidate.lastReuseTime > candidate.lastReuseTime)) + bestCandidate = candidate; + + if (bestCandidate != nil) + { + [self.bufferCache removeObject:bestCandidate]; + bestCandidate.lastReuseTime = now; + return bestCandidate; + } + } + + // No luck; make a new buffer + id backing = [device newBufferWithLength:length options:MTLResourceStorageModeShared]; + return [[MetalBuffer alloc] initWithBuffer:backing]; +} + +// Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling. +- (id)renderPipelineStateForFramebufferDescriptor:(FramebufferDescriptor*)descriptor device:(id)device +{ + NSError* error = nil; + + NSString* shaderSource = @"" + "#include \n" + "using namespace metal;\n" + "\n" + "struct Uniforms {\n" + " float4x4 projectionMatrix;\n" + "};\n" + "\n" + "struct VertexIn {\n" + " float2 position [[attribute(0)]];\n" + " float2 texCoords [[attribute(1)]];\n" + " uchar4 color [[attribute(2)]];\n" + "};\n" + "\n" + "struct VertexOut {\n" + " float4 position [[position]];\n" + " float2 texCoords;\n" + " float4 color;\n" + "};\n" + "\n" + "vertex VertexOut vertex_main(VertexIn in [[stage_in]],\n" + " constant Uniforms &uniforms [[buffer(1)]]) {\n" + " VertexOut out;\n" + " out.position = uniforms.projectionMatrix * float4(in.position, 0, 1);\n" + " out.texCoords = in.texCoords;\n" + " out.color = float4(in.color) / float4(255.0);\n" + " return out;\n" + "}\n" + "\n" + "fragment half4 fragment_main(VertexOut in [[stage_in]],\n" + " texture2d texture [[texture(0)]]) {\n" + " constexpr sampler linearSampler(coord::normalized, min_filter::linear, mag_filter::linear, mip_filter::linear);\n" + " half4 texColor = texture.sample(linearSampler, in.texCoords);\n" + " return half4(in.color) * texColor;\n" + "}\n"; + + id library = [device newLibraryWithSource:shaderSource options:nil error:&error]; + if (library == nil) + { + NSLog(@"Error: failed to create Metal library: %@", error); + return nil; + } + + id vertexFunction = [library newFunctionWithName:@"vertex_main"]; + id fragmentFunction = [library newFunctionWithName:@"fragment_main"]; + + if (vertexFunction == nil || fragmentFunction == nil) + { + NSLog(@"Error: failed to find Metal shader functions in library: %@", error); + return nil; + } + + MTLVertexDescriptor* vertexDescriptor = [MTLVertexDescriptor vertexDescriptor]; + vertexDescriptor.attributes[0].offset = IM_OFFSETOF(ImDrawVert, pos); + vertexDescriptor.attributes[0].format = MTLVertexFormatFloat2; // position + vertexDescriptor.attributes[0].bufferIndex = 0; + vertexDescriptor.attributes[1].offset = IM_OFFSETOF(ImDrawVert, uv); + vertexDescriptor.attributes[1].format = MTLVertexFormatFloat2; // texCoords + vertexDescriptor.attributes[1].bufferIndex = 0; + vertexDescriptor.attributes[2].offset = IM_OFFSETOF(ImDrawVert, col); + vertexDescriptor.attributes[2].format = MTLVertexFormatUChar4; // color + vertexDescriptor.attributes[2].bufferIndex = 0; + vertexDescriptor.layouts[0].stepRate = 1; + vertexDescriptor.layouts[0].stepFunction = MTLVertexStepFunctionPerVertex; + vertexDescriptor.layouts[0].stride = sizeof(ImDrawVert); + + MTLRenderPipelineDescriptor* pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init]; + pipelineDescriptor.vertexFunction = vertexFunction; + pipelineDescriptor.fragmentFunction = fragmentFunction; + pipelineDescriptor.vertexDescriptor = vertexDescriptor; + pipelineDescriptor.rasterSampleCount = self.framebufferDescriptor.sampleCount; + pipelineDescriptor.colorAttachments[0].pixelFormat = self.framebufferDescriptor.colorPixelFormat; + pipelineDescriptor.colorAttachments[0].blendingEnabled = YES; + pipelineDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd; + pipelineDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha; + pipelineDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOneMinusSourceAlpha; + pipelineDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd; + pipelineDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorOne; + pipelineDescriptor.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceAlpha; + pipelineDescriptor.depthAttachmentPixelFormat = self.framebufferDescriptor.depthPixelFormat; + pipelineDescriptor.stencilAttachmentPixelFormat = self.framebufferDescriptor.stencilPixelFormat; + + id renderPipelineState = [device newRenderPipelineStateWithDescriptor:pipelineDescriptor error:&error]; + if (error != nil) + NSLog(@"Error: failed to create Metal pipeline state: %@", error); + + return renderPipelineState; +} + +@end + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_opengl2.cpp b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_opengl2.cpp new file mode 100644 index 00000000000..8defd84baca --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_opengl2.cpp @@ -0,0 +1,343 @@ +// dear imgui: Renderer Backend for OpenGL2 (legacy OpenGL, fixed pipeline) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** +// **Prefer using the code in imgui_impl_opengl3.cpp** +// This code is mostly provided as a reference to learn how ImGui integration works, because it is shorter to read. +// If your code is using GL3+ context or any semi modern OpenGL calls, using this is likely to make everything more +// complicated, will require your code to reset every single OpenGL attributes to their initial state, and might +// confuse your GPU driver. +// The GL2 code is unable to reset attributes or even call e.g. "glUseProgram(0)" because they don't exist in that API. + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2021-12-08: OpenGL: Fixed mishandling of the the ImDrawCmd::IdxOffset field! This is an old bug but it never had an effect until some internal rendering changes in 1.86. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-05-19: OpenGL: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-01-03: OpenGL: Backup, setup and restore GL_SHADE_MODEL state, disable GL_STENCIL_TEST and disable GL_NORMAL_ARRAY client state to increase compatibility with legacy OpenGL applications. +// 2020-01-23: OpenGL: Backup, setup and restore GL_TEXTURE_ENV to increase compatibility with legacy OpenGL applications. +// 2019-04-30: OpenGL: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-02-11: OpenGL: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-08-03: OpenGL: Disabling/restoring GL_LIGHTING and GL_COLOR_MATERIAL to increase compatibility with legacy OpenGL applications. +// 2018-06-08: Misc: Extracted imgui_impl_opengl2.cpp/.h away from the old combined GLFW/SDL+OpenGL2 examples. +// 2018-06-08: OpenGL: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplOpenGL2_RenderDrawData() in the .h file so you can call it yourself. +// 2017-09-01: OpenGL: Save and restore current polygon mode. +// 2016-09-10: OpenGL: Uploading font texture as RGBA32 to increase compatibility with users shaders (not ideal). +// 2016-09-05: OpenGL: Fixed save and restore of current scissor rectangle. + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_opengl2.h" +#include // intptr_t + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used +#pragma clang diagnostic ignored "-Wnonportable-system-include-path" +#endif + +// Include OpenGL header (without an OpenGL loader) requires a bit of fiddling +#if defined(_WIN32) && !defined(APIENTRY) +#define APIENTRY __stdcall // It is customary to use APIENTRY for OpenGL function pointer declarations on all platforms. Additionally, the Windows OpenGL header needs APIENTRY. +#endif +#if defined(_WIN32) && !defined(WINGDIAPI) +#define WINGDIAPI __declspec(dllimport) // Some Windows OpenGL headers need this +#endif +#if defined(__APPLE__) +#define GL_SILENCE_DEPRECATION +#include +#else +#include +#endif + +struct ImGui_ImplOpenGL2_Data +{ + GLuint FontTexture; + + ImGui_ImplOpenGL2_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplOpenGL2_Data* ImGui_ImplOpenGL2_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplOpenGL2_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplOpenGL2_InitPlatformInterface(); +static void ImGui_ImplOpenGL2_ShutdownPlatformInterface(); + +// Functions +bool ImGui_ImplOpenGL2_Init() +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Setup backend capabilities flags + ImGui_ImplOpenGL2_Data* bd = IM_NEW(ImGui_ImplOpenGL2_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_opengl2"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplOpenGL2_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplOpenGL2_Shutdown() +{ + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplOpenGL2_ShutdownPlatformInterface(); + ImGui_ImplOpenGL2_DestroyDeviceObjects(); + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~ImGuiBackendFlags_RendererHasViewports; + IM_DELETE(bd); +} + +void ImGui_ImplOpenGL2_NewFrame() +{ + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplOpenGL2_Init()?"); + + if (!bd->FontTexture) + ImGui_ImplOpenGL2_CreateDeviceObjects(); +} + +static void ImGui_ImplOpenGL2_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height) +{ + // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, vertex/texcoord/color pointers, polygon fill. + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + //glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); // In order to composite our output buffer we need to preserve alpha + glDisable(GL_CULL_FACE); + glDisable(GL_DEPTH_TEST); + glDisable(GL_STENCIL_TEST); + glDisable(GL_LIGHTING); + glDisable(GL_COLOR_MATERIAL); + glEnable(GL_SCISSOR_TEST); + glEnableClientState(GL_VERTEX_ARRAY); + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + glEnableClientState(GL_COLOR_ARRAY); + glDisableClientState(GL_NORMAL_ARRAY); + glEnable(GL_TEXTURE_2D); + glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); + glShadeModel(GL_SMOOTH); + glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); + + // If you are using this code with non-legacy OpenGL header/contexts (which you should not, prefer using imgui_impl_opengl3.cpp!!), + // you may need to backup/reset/restore other state, e.g. for current shader using the commented lines below. + // (DO NOT MODIFY THIS FILE! Add the code in your calling function) + // GLint last_program; + // glGetIntegerv(GL_CURRENT_PROGRAM, &last_program); + // glUseProgram(0); + // ImGui_ImplOpenGL2_RenderDrawData(...); + // glUseProgram(last_program) + // There are potentially many more states you could need to clear/setup that we can't access from default headers. + // e.g. glBindBuffer(GL_ARRAY_BUFFER, 0), glDisable(GL_TEXTURE_CUBE_MAP). + + // Setup viewport, orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); + glMatrixMode(GL_PROJECTION); + glPushMatrix(); + glLoadIdentity(); + glOrtho(draw_data->DisplayPos.x, draw_data->DisplayPos.x + draw_data->DisplaySize.x, draw_data->DisplayPos.y + draw_data->DisplaySize.y, draw_data->DisplayPos.y, -1.0f, +1.0f); + glMatrixMode(GL_MODELVIEW); + glPushMatrix(); + glLoadIdentity(); +} + +// OpenGL2 Render function. +// Note that this implementation is little overcomplicated because we are saving/setting up/restoring every OpenGL state explicitly. +// This is in order to be able to run within an OpenGL engine that doesn't do so. +void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); + int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); + if (fb_width == 0 || fb_height == 0) + return; + + // Backup GL state + GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + GLint last_polygon_mode[2]; glGetIntegerv(GL_POLYGON_MODE, last_polygon_mode); + GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); + GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); + GLint last_shade_model; glGetIntegerv(GL_SHADE_MODEL, &last_shade_model); + GLint last_tex_env_mode; glGetTexEnviv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, &last_tex_env_mode); + glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_TRANSFORM_BIT); + + // Setup desired GL state + ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) + + // Render command lists + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; + glVertexPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, pos))); + glTexCoordPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, uv))); + glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, col))); + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle (Y is inverted in OpenGL) + glScissor((int)clip_min.x, (int)((float)fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(clip_max.y - clip_min.y)); + + // Bind texture, Draw + glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->GetTexID()); + glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset); + } + } + } + + // Restore modified GL state + glDisableClientState(GL_COLOR_ARRAY); + glDisableClientState(GL_TEXTURE_COORD_ARRAY); + glDisableClientState(GL_VERTEX_ARRAY); + glBindTexture(GL_TEXTURE_2D, (GLuint)last_texture); + glMatrixMode(GL_MODELVIEW); + glPopMatrix(); + glMatrixMode(GL_PROJECTION); + glPopMatrix(); + glPopAttrib(); + glPolygonMode(GL_FRONT, (GLenum)last_polygon_mode[0]); glPolygonMode(GL_BACK, (GLenum)last_polygon_mode[1]); + glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); + glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); + glShadeModel(last_shade_model); + glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, last_tex_env_mode); +} + +bool ImGui_ImplOpenGL2_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. + + // Upload texture to graphics system + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + GLint last_texture; + glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + glGenTextures(1, &bd->FontTexture); + glBindTexture(GL_TEXTURE_2D, bd->FontTexture); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); + + // Restore state + glBindTexture(GL_TEXTURE_2D, last_texture); + + return true; +} + +void ImGui_ImplOpenGL2_DestroyFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL2_Data* bd = ImGui_ImplOpenGL2_GetBackendData(); + if (bd->FontTexture) + { + glDeleteTextures(1, &bd->FontTexture); + io.Fonts->SetTexID(0); + bd->FontTexture = 0; + } +} + +bool ImGui_ImplOpenGL2_CreateDeviceObjects() +{ + return ImGui_ImplOpenGL2_CreateFontsTexture(); +} + +void ImGui_ImplOpenGL2_DestroyDeviceObjects() +{ + ImGui_ImplOpenGL2_DestroyFontsTexture(); +} + + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +static void ImGui_ImplOpenGL2_RenderWindow(ImGuiViewport* viewport, void*) +{ + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + { + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + } + ImGui_ImplOpenGL2_RenderDrawData(viewport->DrawData); +} + +static void ImGui_ImplOpenGL2_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_RenderWindow = ImGui_ImplOpenGL2_RenderWindow; +} + +static void ImGui_ImplOpenGL2_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_opengl3.cpp b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_opengl3.cpp new file mode 100644 index 00000000000..0c2cd3497fc --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/backends/imgui_impl_opengl3.cpp @@ -0,0 +1,984 @@ +// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline +// - Desktop GL: 2.x 3.x 4.x +// - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices (Desktop OpenGL only). +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// About WebGL/ES: +// - You need to '#define IMGUI_IMPL_OPENGL_ES2' or '#define IMGUI_IMPL_OPENGL_ES3' to use WebGL or OpenGL ES. +// - This is done automatically on iOS, Android and Emscripten targets. +// - For other targets, the define needs to be visible from the imgui_impl_opengl3.cpp compilation unit. If unsure, define globally or in imconfig.h. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface. +// 2023-06-20: OpenGL: Fixed erroneous use glGetIntegerv(GL_CONTEXT_PROFILE_MASK) on contexts lower than 3.2. (#6539, #6333) +// 2023-05-09: OpenGL: Support for glBindSampler() backup/restore on ES3. (#6375) +// 2023-04-18: OpenGL: Restore front and back polygon mode separately when supported by context. (#6333) +// 2023-03-23: OpenGL: Properly restoring "no shader program bound" if it was the case prior to running the rendering function. (#6267, #6220, #6224) +// 2023-03-15: OpenGL: Fixed GL loader crash when GL_VERSION returns NULL. (#6154, #4445, #3530) +// 2023-03-06: OpenGL: Fixed restoration of a potentially deleted OpenGL program, by calling glIsProgram(). (#6220, #6224) +// 2022-11-09: OpenGL: Reverted use of glBufferSubData(), too many corruptions issues + old issues seemingly can't be reproed with Intel drivers nowadays (revert 2021-12-15 and 2022-05-23 changes). +// 2022-10-11: Using 'nullptr' instead of 'NULL' as per our switch to C++11. +// 2022-09-27: OpenGL: Added ability to '#define IMGUI_IMPL_OPENGL_DEBUG'. +// 2022-05-23: OpenGL: Reworking 2021-12-15 "Using buffer orphaning" so it only happens on Intel GPU, seems to cause problems otherwise. (#4468, #4825, #4832, #5127). +// 2022-05-13: OpenGL: Fixed state corruption on OpenGL ES 2.0 due to not preserving GL_ELEMENT_ARRAY_BUFFER_BINDING and vertex attribute states. +// 2021-12-15: OpenGL: Using buffer orphaning + glBufferSubData(), seems to fix leaks with multi-viewports with some Intel HD drivers. +// 2021-08-23: OpenGL: Fixed ES 3.0 shader ("#version 300 es") use normal precision floats to avoid wobbly rendering at HD resolutions. +// 2021-08-19: OpenGL: Embed and use our own minimal GL loader (imgui_impl_opengl3_loader.h), removing requirement and support for third-party loader. +// 2021-06-29: Reorganized backend to pull data from a single structure to facilitate usage with multiple-contexts (all g_XXXX access changed to bd->XXXX). +// 2021-06-25: OpenGL: Use OES_vertex_array extension on Emscripten + backup/restore current state. +// 2021-06-21: OpenGL: Destroy individual vertex/fragment shader objects right after they are linked into the main shader. +// 2021-05-24: OpenGL: Access GL_CLIP_ORIGIN when "GL_ARB_clip_control" extension is detected, inside of just OpenGL 4.5 version. +// 2021-05-19: OpenGL: Replaced direct access to ImDrawCmd::TextureId with a call to ImDrawCmd::GetTexID(). (will become a requirement) +// 2021-04-06: OpenGL: Don't try to read GL_CLIP_ORIGIN unless we're OpenGL 4.5 or greater. +// 2021-02-18: OpenGL: Change blending equation to preserve alpha in output buffer. +// 2021-01-03: OpenGL: Backup, setup and restore GL_STENCIL_TEST state. +// 2020-10-23: OpenGL: Backup, setup and restore GL_PRIMITIVE_RESTART state. +// 2020-10-15: OpenGL: Use glGetString(GL_VERSION) instead of glGetIntegerv(GL_MAJOR_VERSION, ...) when the later returns zero (e.g. Desktop GL 2.x) +// 2020-09-17: OpenGL: Fix to avoid compiling/calling glBindSampler() on ES or pre 3.3 context which have the defines set by a loader. +// 2020-07-10: OpenGL: Added support for glad2 OpenGL loader. +// 2020-05-08: OpenGL: Made default GLSL version 150 (instead of 130) on OSX. +// 2020-04-21: OpenGL: Fixed handling of glClipControl(GL_UPPER_LEFT) by inverting projection matrix. +// 2020-04-12: OpenGL: Fixed context version check mistakenly testing for 4.0+ instead of 3.2+ to enable ImGuiBackendFlags_RendererHasVtxOffset. +// 2020-03-24: OpenGL: Added support for glbinding 2.x OpenGL loader. +// 2020-01-07: OpenGL: Added support for glbinding 3.x OpenGL loader. +// 2019-10-25: OpenGL: Using a combination of GL define and runtime GL version to decide whether to use glDrawElementsBaseVertex(). Fix building with pre-3.2 GL loaders. +// 2019-09-22: OpenGL: Detect default GL loader using __has_include compiler facility. +// 2019-09-16: OpenGL: Tweak initialization code to allow application calling ImGui_ImplOpenGL3_CreateFontsTexture() before the first NewFrame() call. +// 2019-05-29: OpenGL: Desktop GL only: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: OpenGL: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-03-29: OpenGL: Not calling glBindBuffer more than necessary in the render loop. +// 2019-03-15: OpenGL: Added a GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized GL function loaders early. +// 2019-03-03: OpenGL: Fix support for ES 2.0 (WebGL 1.0). +// 2019-02-20: OpenGL: Fix for OSX not supporting OpenGL 4.5, we don't try to read GL_CLIP_ORIGIN even if defined by the headers/loader. +// 2019-02-11: OpenGL: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. +// 2019-02-01: OpenGL: Using GLSL 410 shaders for any version over 410 (e.g. 430, 450). +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-11-13: OpenGL: Support for GL 4.5's glClipControl(GL_UPPER_LEFT) / GL_CLIP_ORIGIN. +// 2018-08-29: OpenGL: Added support for more OpenGL loaders: glew and glad, with comments indicative that any loader can be used. +// 2018-08-09: OpenGL: Default to OpenGL ES 3 on iOS and Android. GLSL version default to "#version 300 ES". +// 2018-07-30: OpenGL: Support for GLSL 300 ES and 410 core. Fixes for Emscripten compilation. +// 2018-07-10: OpenGL: Support for more GLSL versions (based on the GLSL version string). Added error output when shaders fail to compile/link. +// 2018-06-08: Misc: Extracted imgui_impl_opengl3.cpp/.h away from the old combined GLFW/SDL+OpenGL3 examples. +// 2018-06-08: OpenGL: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-05-25: OpenGL: Removed unnecessary backup/restore of GL_ELEMENT_ARRAY_BUFFER_BINDING since this is part of the VAO state. +// 2018-05-14: OpenGL: Making the call to glBindSampler() optional so 3.2 context won't fail if the function is a nullptr pointer. +// 2018-03-06: OpenGL: Added const char* glsl_version parameter to ImGui_ImplOpenGL3_Init() so user can override the GLSL version e.g. "#version 150". +// 2018-02-23: OpenGL: Create the VAO in the render function so the setup can more easily be used with multiple shared GL context. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplSdlGL3_RenderDrawData() in the .h file so you can call it yourself. +// 2018-01-07: OpenGL: Changed GLSL shader version from 330 to 150. +// 2017-09-01: OpenGL: Save and restore current bound sampler. Save and restore current polygon mode. +// 2017-05-01: OpenGL: Fixed save and restore of current blend func state. +// 2017-05-01: OpenGL: Fixed save and restore of current GL_ACTIVE_TEXTURE. +// 2016-09-05: OpenGL: Fixed save and restore of current scissor rectangle. +// 2016-07-29: OpenGL: Explicitly setting GL_UNPACK_ROW_LENGTH to reduce issues because SDL changes it. (#752) + +//---------------------------------------- +// OpenGL GLSL GLSL +// version version string +//---------------------------------------- +// 2.0 110 "#version 110" +// 2.1 120 "#version 120" +// 3.0 130 "#version 130" +// 3.1 140 "#version 140" +// 3.2 150 "#version 150" +// 3.3 330 "#version 330 core" +// 4.0 400 "#version 400 core" +// 4.1 410 "#version 410 core" +// 4.2 420 "#version 410 core" +// 4.3 430 "#version 430 core" +// ES 2.0 100 "#version 100" = WebGL 1.0 +// ES 3.0 300 "#version 300 es" = WebGL 2.0 +//---------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_impl_opengl3.h" +#include +#include // intptr_t +#if defined(__APPLE__) +#include +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used +#pragma clang diagnostic ignored "-Wnonportable-system-include-path" +#pragma clang diagnostic ignored "-Wcast-function-type" // warning: cast between incompatible function types (for loader) +#endif +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#pragma GCC diagnostic ignored "-Wcast-function-type" // warning: cast between incompatible function types (for loader) +#endif + +// GL includes +#if defined(IMGUI_IMPL_OPENGL_ES2) +#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) +#include // Use GL ES 2 +#else +#include // Use GL ES 2 +#endif +#if defined(__EMSCRIPTEN__) +#ifndef GL_GLEXT_PROTOTYPES +#define GL_GLEXT_PROTOTYPES +#endif +#include +#endif +#elif defined(IMGUI_IMPL_OPENGL_ES3) +#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) +#include // Use GL ES 3 +#else +#include // Use GL ES 3 +#endif +#elif !defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM) +// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers. +// Helper libraries are often used for this purpose! Here we are using our own minimal custom loader based on gl3w. +// In the rest of your app/engine, you can use another loader of your choice (gl3w, glew, glad, glbinding, glext, glLoadGen, etc.). +// If you happen to be developing a new feature for this backend (imgui_impl_opengl3.cpp): +// - You may need to regenerate imgui_impl_opengl3_loader.h to add new symbols. See https://github.com/dearimgui/gl3w_stripped +// - You can temporarily use an unstripped version. See https://github.com/dearimgui/gl3w_stripped/releases +// Changes to this backend using new APIs should be accompanied by a regenerated stripped loader version. +#define IMGL3W_IMPL +#include "imgui_impl_opengl3_loader.h" +#endif + +// Vertex arrays are not supported on ES2/WebGL1 unless Emscripten which uses an extension +#ifndef IMGUI_IMPL_OPENGL_ES2 +#define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY +#elif defined(__EMSCRIPTEN__) +#define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY +#define glBindVertexArray glBindVertexArrayOES +#define glGenVertexArrays glGenVertexArraysOES +#define glDeleteVertexArrays glDeleteVertexArraysOES +#define GL_VERTEX_ARRAY_BINDING GL_VERTEX_ARRAY_BINDING_OES +#endif + +// Desktop GL 2.0+ has glPolygonMode() which GL ES and WebGL don't have. +#ifdef GL_POLYGON_MODE +#define IMGUI_IMPL_HAS_POLYGON_MODE +#endif + +// Desktop GL 3.2+ has glDrawElementsBaseVertex() which GL ES and WebGL don't have. +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_2) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET +#endif + +// Desktop GL 3.3+ and GL ES 3.0+ have glBindSampler() +#if !defined(IMGUI_IMPL_OPENGL_ES2) && (defined(IMGUI_IMPL_OPENGL_ES3) || defined(GL_VERSION_3_3)) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER +#endif + +// Desktop GL 3.1+ has GL_PRIMITIVE_RESTART state +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_1) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART +#endif + +// Desktop GL use extension detection +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) +#define IMGUI_IMPL_OPENGL_MAY_HAVE_EXTENSIONS +#endif + +// [Debugging] +//#define IMGUI_IMPL_OPENGL_DEBUG +#ifdef IMGUI_IMPL_OPENGL_DEBUG +#include +#define GL_CALL(_CALL) do { _CALL; GLenum gl_err = glGetError(); if (gl_err != 0) fprintf(stderr, "GL error 0x%x returned from '%s'.\n", gl_err, #_CALL); } while (0) // Call with error check +#else +#define GL_CALL(_CALL) _CALL // Call without error check +#endif + +// OpenGL Data +struct ImGui_ImplOpenGL3_Data +{ + GLuint GlVersion; // Extracted at runtime using GL_MAJOR_VERSION, GL_MINOR_VERSION queries (e.g. 320 for GL 3.2) + char GlslVersionString[32]; // Specified by user or detected based on compile time GL settings. + bool GlProfileIsES2; + bool GlProfileIsES3; + bool GlProfileIsCompat; + GLint GlProfileMask; + GLuint FontTexture; + GLuint ShaderHandle; + GLint AttribLocationTex; // Uniforms location + GLint AttribLocationProjMtx; + GLuint AttribLocationVtxPos; // Vertex attributes location + GLuint AttribLocationVtxUV; + GLuint AttribLocationVtxColor; + unsigned int VboHandle, ElementsHandle; + GLsizeiptr VertexBufferSize; + GLsizeiptr IndexBufferSize; + bool HasClipOrigin; + bool UseBufferSubData; + + ImGui_ImplOpenGL3_Data() { memset((void*)this, 0, sizeof(*this)); } +}; + +// Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts +// It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. +static ImGui_ImplOpenGL3_Data* ImGui_ImplOpenGL3_GetBackendData() +{ + return ImGui::GetCurrentContext() ? (ImGui_ImplOpenGL3_Data*)ImGui::GetIO().BackendRendererUserData : nullptr; +} + +// Forward Declarations +static void ImGui_ImplOpenGL3_InitPlatformInterface(); +static void ImGui_ImplOpenGL3_ShutdownPlatformInterface(); + +// OpenGL vertex attribute state (for ES 1.0 and ES 2.0 only) +#ifndef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY +struct ImGui_ImplOpenGL3_VtxAttribState +{ + GLint Enabled, Size, Type, Normalized, Stride; + GLvoid* Ptr; + + void GetState(GLint index) + { + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_ENABLED, &Enabled); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_SIZE, &Size); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_TYPE, &Type); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, &Normalized); + glGetVertexAttribiv(index, GL_VERTEX_ATTRIB_ARRAY_STRIDE, &Stride); + glGetVertexAttribPointerv(index, GL_VERTEX_ATTRIB_ARRAY_POINTER, &Ptr); + } + void SetState(GLint index) + { + glVertexAttribPointer(index, Size, Type, (GLboolean)Normalized, Stride, Ptr); + if (Enabled) glEnableVertexAttribArray(index); else glDisableVertexAttribArray(index); + } +}; +#endif + +// Functions +bool ImGui_ImplOpenGL3_Init(const char* glsl_version) +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.BackendRendererUserData == nullptr && "Already initialized a renderer backend!"); + + // Initialize our loader +#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && !defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM) + if (imgl3wInit() != 0) + { + fprintf(stderr, "Failed to initialize OpenGL loader!\n"); + return false; + } +#endif + + // Setup backend capabilities flags + ImGui_ImplOpenGL3_Data* bd = IM_NEW(ImGui_ImplOpenGL3_Data)(); + io.BackendRendererUserData = (void*)bd; + io.BackendRendererName = "imgui_impl_opengl3"; + + // Query for GL version (e.g. 320 for GL 3.2) +#if defined(IMGUI_IMPL_OPENGL_ES2) + // GLES 2 + bd->GlVersion = 200; + bd->GlProfileIsES2 = true; +#else + // Desktop or GLES 3 + GLint major = 0; + GLint minor = 0; + glGetIntegerv(GL_MAJOR_VERSION, &major); + glGetIntegerv(GL_MINOR_VERSION, &minor); + if (major == 0 && minor == 0) + { + // Query GL_VERSION in desktop GL 2.x, the string will start with "." + const char* gl_version = (const char*)glGetString(GL_VERSION); + sscanf(gl_version, "%d.%d", &major, &minor); + } + bd->GlVersion = (GLuint)(major * 100 + minor * 10); +#if defined(GL_CONTEXT_PROFILE_MASK) + if (bd->GlVersion >= 320) + glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &bd->GlProfileMask); + bd->GlProfileIsCompat = (bd->GlProfileMask & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) != 0; +#endif + +#if defined(IMGUI_IMPL_OPENGL_ES3) + bd->GlProfileIsES3 = true; +#endif + + bd->UseBufferSubData = false; + /* + // Query vendor to enable glBufferSubData kludge +#ifdef _WIN32 + if (const char* vendor = (const char*)glGetString(GL_VENDOR)) + if (strncmp(vendor, "Intel", 5) == 0) + bd->UseBufferSubData = true; +#endif + */ +#endif + +#ifdef IMGUI_IMPL_OPENGL_DEBUG + printf("GlVersion = %d\nGlProfileIsCompat = %d\nGlProfileMask = 0x%X\nGlProfileIsES2 = %d, GlProfileIsES3 = %d\nGL_VENDOR = '%s'\nGL_RENDERER = '%s'\n", bd->GlVersion, bd->GlProfileIsCompat, bd->GlProfileMask, bd->GlProfileIsES2, bd->GlProfileIsES3, (const char*)glGetString(GL_VENDOR), (const char*)glGetString(GL_RENDERER)); // [DEBUG] +#endif + +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET + if (bd->GlVersion >= 320) + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. +#endif + io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports; // We can create multi-viewports on the Renderer side (optional) + + // Store GLSL version string so we can refer to it later in case we recreate shaders. + // Note: GLSL version is NOT the same as GL version. Leave this to nullptr if unsure. + if (glsl_version == nullptr) + { +#if defined(IMGUI_IMPL_OPENGL_ES2) + glsl_version = "#version 100"; +#elif defined(IMGUI_IMPL_OPENGL_ES3) + glsl_version = "#version 300 es"; +#elif defined(__APPLE__) + glsl_version = "#version 150"; +#else + glsl_version = "#version 130"; +#endif + } + IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(bd->GlslVersionString)); + strcpy(bd->GlslVersionString, glsl_version); + strcat(bd->GlslVersionString, "\n"); + + // Make an arbitrary GL call (we don't actually need the result) + // IF YOU GET A CRASH HERE: it probably means the OpenGL function loader didn't do its job. Let us know! + GLint current_texture; + glGetIntegerv(GL_TEXTURE_BINDING_2D, ¤t_texture); + + // Detect extensions we support + bd->HasClipOrigin = (bd->GlVersion >= 450); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_EXTENSIONS + GLint num_extensions = 0; + glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions); + for (GLint i = 0; i < num_extensions; i++) + { + const char* extension = (const char*)glGetStringi(GL_EXTENSIONS, i); + if (extension != nullptr && strcmp(extension, "GL_ARB_clip_control") == 0) + bd->HasClipOrigin = true; + } +#endif + + if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + ImGui_ImplOpenGL3_InitPlatformInterface(); + + return true; +} + +void ImGui_ImplOpenGL3_Shutdown() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + IM_ASSERT(bd != nullptr && "No renderer backend to shutdown, or already shutdown?"); + ImGuiIO& io = ImGui::GetIO(); + + ImGui_ImplOpenGL3_ShutdownPlatformInterface(); + ImGui_ImplOpenGL3_DestroyDeviceObjects(); + io.BackendRendererName = nullptr; + io.BackendRendererUserData = nullptr; + io.BackendFlags &= ~(ImGuiBackendFlags_RendererHasVtxOffset | ImGuiBackendFlags_RendererHasViewports); + IM_DELETE(bd); +} + +void ImGui_ImplOpenGL3_NewFrame() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + IM_ASSERT(bd != nullptr && "Did you call ImGui_ImplOpenGL3_Init()?"); + + if (!bd->ShaderHandle) + ImGui_ImplOpenGL3_CreateDeviceObjects(); +} + +static void ImGui_ImplOpenGL3_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height, GLuint vertex_array_object) +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, polygon fill + glEnable(GL_BLEND); + glBlendEquation(GL_FUNC_ADD); + glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); + glDisable(GL_CULL_FACE); + glDisable(GL_DEPTH_TEST); + glDisable(GL_STENCIL_TEST); + glEnable(GL_SCISSOR_TEST); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART + if (bd->GlVersion >= 310) + glDisable(GL_PRIMITIVE_RESTART); +#endif +#ifdef IMGUI_IMPL_HAS_POLYGON_MODE + glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); +#endif + + // Support for GL 4.5 rarely used glClipControl(GL_UPPER_LEFT) +#if defined(GL_CLIP_ORIGIN) + bool clip_origin_lower_left = true; + if (bd->HasClipOrigin) + { + GLenum current_clip_origin = 0; glGetIntegerv(GL_CLIP_ORIGIN, (GLint*)¤t_clip_origin); + if (current_clip_origin == GL_UPPER_LEFT) + clip_origin_lower_left = false; + } +#endif + + // Setup viewport, orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + GL_CALL(glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height)); + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; +#if defined(GL_CLIP_ORIGIN) + if (!clip_origin_lower_left) { float tmp = T; T = B; B = tmp; } // Swap top and bottom if origin is upper left +#endif + const float ortho_projection[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, -1.0f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.0f, 1.0f }, + }; + glUseProgram(bd->ShaderHandle); + glUniform1i(bd->AttribLocationTex, 0); + glUniformMatrix4fv(bd->AttribLocationProjMtx, 1, GL_FALSE, &ortho_projection[0][0]); + +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER + if (bd->GlVersion >= 330 || bd->GlProfileIsES3) + glBindSampler(0, 0); // We use combined texture/sampler state. Applications using GL 3.3 and GL ES 3.0 may set that otherwise. +#endif + + (void)vertex_array_object; +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindVertexArray(vertex_array_object); +#endif + + // Bind vertex/index buffers and setup attributes for ImDrawVert + GL_CALL(glBindBuffer(GL_ARRAY_BUFFER, bd->VboHandle)); + GL_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, bd->ElementsHandle)); + GL_CALL(glEnableVertexAttribArray(bd->AttribLocationVtxPos)); + GL_CALL(glEnableVertexAttribArray(bd->AttribLocationVtxUV)); + GL_CALL(glEnableVertexAttribArray(bd->AttribLocationVtxColor)); + GL_CALL(glVertexAttribPointer(bd->AttribLocationVtxPos, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, pos))); + GL_CALL(glVertexAttribPointer(bd->AttribLocationVtxUV, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, uv))); + GL_CALL(glVertexAttribPointer(bd->AttribLocationVtxColor, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, col))); +} + +// OpenGL3 Render function. +// Note that this implementation is little overcomplicated because we are saving/setting up/restoring every OpenGL state explicitly. +// This is in order to be able to run within an OpenGL engine that doesn't do so. +void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); + int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); + if (fb_width <= 0 || fb_height <= 0) + return; + + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Backup GL state + GLenum last_active_texture; glGetIntegerv(GL_ACTIVE_TEXTURE, (GLint*)&last_active_texture); + glActiveTexture(GL_TEXTURE0); + GLuint last_program; glGetIntegerv(GL_CURRENT_PROGRAM, (GLint*)&last_program); + GLuint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, (GLint*)&last_texture); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER + GLuint last_sampler; if (bd->GlVersion >= 330 || bd->GlProfileIsES3) { glGetIntegerv(GL_SAMPLER_BINDING, (GLint*)&last_sampler); } else { last_sampler = 0; } +#endif + GLuint last_array_buffer; glGetIntegerv(GL_ARRAY_BUFFER_BINDING, (GLint*)&last_array_buffer); +#ifndef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + // This is part of VAO on OpenGL 3.0+ and OpenGL ES 3.0+. + GLint last_element_array_buffer; glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &last_element_array_buffer); + ImGui_ImplOpenGL3_VtxAttribState last_vtx_attrib_state_pos; last_vtx_attrib_state_pos.GetState(bd->AttribLocationVtxPos); + ImGui_ImplOpenGL3_VtxAttribState last_vtx_attrib_state_uv; last_vtx_attrib_state_uv.GetState(bd->AttribLocationVtxUV); + ImGui_ImplOpenGL3_VtxAttribState last_vtx_attrib_state_color; last_vtx_attrib_state_color.GetState(bd->AttribLocationVtxColor); +#endif +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GLuint last_vertex_array_object; glGetIntegerv(GL_VERTEX_ARRAY_BINDING, (GLint*)&last_vertex_array_object); +#endif +#ifdef IMGUI_IMPL_HAS_POLYGON_MODE + GLint last_polygon_mode[2]; glGetIntegerv(GL_POLYGON_MODE, last_polygon_mode); +#endif + GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); + GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); + GLenum last_blend_src_rgb; glGetIntegerv(GL_BLEND_SRC_RGB, (GLint*)&last_blend_src_rgb); + GLenum last_blend_dst_rgb; glGetIntegerv(GL_BLEND_DST_RGB, (GLint*)&last_blend_dst_rgb); + GLenum last_blend_src_alpha; glGetIntegerv(GL_BLEND_SRC_ALPHA, (GLint*)&last_blend_src_alpha); + GLenum last_blend_dst_alpha; glGetIntegerv(GL_BLEND_DST_ALPHA, (GLint*)&last_blend_dst_alpha); + GLenum last_blend_equation_rgb; glGetIntegerv(GL_BLEND_EQUATION_RGB, (GLint*)&last_blend_equation_rgb); + GLenum last_blend_equation_alpha; glGetIntegerv(GL_BLEND_EQUATION_ALPHA, (GLint*)&last_blend_equation_alpha); + GLboolean last_enable_blend = glIsEnabled(GL_BLEND); + GLboolean last_enable_cull_face = glIsEnabled(GL_CULL_FACE); + GLboolean last_enable_depth_test = glIsEnabled(GL_DEPTH_TEST); + GLboolean last_enable_stencil_test = glIsEnabled(GL_STENCIL_TEST); + GLboolean last_enable_scissor_test = glIsEnabled(GL_SCISSOR_TEST); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART + GLboolean last_enable_primitive_restart = (bd->GlVersion >= 310) ? glIsEnabled(GL_PRIMITIVE_RESTART) : GL_FALSE; +#endif + + // Setup desired GL state + // Recreate the VAO every time (this is to easily allow multiple GL contexts to be rendered to. VAO are not shared among GL contexts) + // The renderer would actually work without any VAO bound, but then our VertexAttrib calls would overwrite the default one currently bound. + GLuint vertex_array_object = 0; +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GL_CALL(glGenVertexArrays(1, &vertex_array_object)); +#endif + ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); + + // Will project scissor/clipping rectangles into framebuffer space + ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports + ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) + + // Render command lists + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + + // Upload vertex/index buffers + // - OpenGL drivers are in a very sorry state nowadays.... + // During 2021 we attempted to switch from glBufferData() to orphaning+glBufferSubData() following reports + // of leaks on Intel GPU when using multi-viewports on Windows. + // - After this we kept hearing of various display corruptions issues. We started disabling on non-Intel GPU, but issues still got reported on Intel. + // - We are now back to using exclusively glBufferData(). So bd->UseBufferSubData IS ALWAYS FALSE in this code. + // We are keeping the old code path for a while in case people finding new issues may want to test the bd->UseBufferSubData path. + // - See https://github.com/ocornut/imgui/issues/4468 and please report any corruption issues. + const GLsizeiptr vtx_buffer_size = (GLsizeiptr)cmd_list->VtxBuffer.Size * (int)sizeof(ImDrawVert); + const GLsizeiptr idx_buffer_size = (GLsizeiptr)cmd_list->IdxBuffer.Size * (int)sizeof(ImDrawIdx); + if (bd->UseBufferSubData) + { + if (bd->VertexBufferSize < vtx_buffer_size) + { + bd->VertexBufferSize = vtx_buffer_size; + GL_CALL(glBufferData(GL_ARRAY_BUFFER, bd->VertexBufferSize, nullptr, GL_STREAM_DRAW)); + } + if (bd->IndexBufferSize < idx_buffer_size) + { + bd->IndexBufferSize = idx_buffer_size; + GL_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, bd->IndexBufferSize, nullptr, GL_STREAM_DRAW)); + } + GL_CALL(glBufferSubData(GL_ARRAY_BUFFER, 0, vtx_buffer_size, (const GLvoid*)cmd_list->VtxBuffer.Data)); + GL_CALL(glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, idx_buffer_size, (const GLvoid*)cmd_list->IdxBuffer.Data)); + } + else + { + GL_CALL(glBufferData(GL_ARRAY_BUFFER, vtx_buffer_size, (const GLvoid*)cmd_list->VtxBuffer.Data, GL_STREAM_DRAW)); + GL_CALL(glBufferData(GL_ELEMENT_ARRAY_BUFFER, idx_buffer_size, (const GLvoid*)cmd_list->IdxBuffer.Data, GL_STREAM_DRAW)); + } + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != nullptr) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); + ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // Apply scissor/clipping rectangle (Y is inverted in OpenGL) + GL_CALL(glScissor((int)clip_min.x, (int)((float)fb_height - clip_max.y), (int)(clip_max.x - clip_min.x), (int)(clip_max.y - clip_min.y))); + + // Bind texture, Draw + GL_CALL(glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->GetTexID())); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET + if (bd->GlVersion >= 320) + GL_CALL(glDrawElementsBaseVertex(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (void*)(intptr_t)(pcmd->IdxOffset * sizeof(ImDrawIdx)), (GLint)pcmd->VtxOffset)); + else +#endif + GL_CALL(glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (void*)(intptr_t)(pcmd->IdxOffset * sizeof(ImDrawIdx)))); + } + } + } + + // Destroy the temporary VAO +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GL_CALL(glDeleteVertexArrays(1, &vertex_array_object)); +#endif + + // Restore modified GL state + // This "glIsProgram()" check is required because if the program is "pending deletion" at the time of binding backup, it will have been deleted by now and will cause an OpenGL error. See #6220. + if (last_program == 0 || glIsProgram(last_program)) glUseProgram(last_program); + glBindTexture(GL_TEXTURE_2D, last_texture); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER + if (bd->GlVersion >= 330 || bd->GlProfileIsES3) + glBindSampler(0, last_sampler); +#endif + glActiveTexture(last_active_texture); +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindVertexArray(last_vertex_array_object); +#endif + glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer); +#ifndef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, last_element_array_buffer); + last_vtx_attrib_state_pos.SetState(bd->AttribLocationVtxPos); + last_vtx_attrib_state_uv.SetState(bd->AttribLocationVtxUV); + last_vtx_attrib_state_color.SetState(bd->AttribLocationVtxColor); +#endif + glBlendEquationSeparate(last_blend_equation_rgb, last_blend_equation_alpha); + glBlendFuncSeparate(last_blend_src_rgb, last_blend_dst_rgb, last_blend_src_alpha, last_blend_dst_alpha); + if (last_enable_blend) glEnable(GL_BLEND); else glDisable(GL_BLEND); + if (last_enable_cull_face) glEnable(GL_CULL_FACE); else glDisable(GL_CULL_FACE); + if (last_enable_depth_test) glEnable(GL_DEPTH_TEST); else glDisable(GL_DEPTH_TEST); + if (last_enable_stencil_test) glEnable(GL_STENCIL_TEST); else glDisable(GL_STENCIL_TEST); + if (last_enable_scissor_test) glEnable(GL_SCISSOR_TEST); else glDisable(GL_SCISSOR_TEST); +#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART + if (bd->GlVersion >= 310) { if (last_enable_primitive_restart) glEnable(GL_PRIMITIVE_RESTART); else glDisable(GL_PRIMITIVE_RESTART); } +#endif + +#ifdef IMGUI_IMPL_HAS_POLYGON_MODE + // Desktop OpenGL 3.0 and OpenGL 3.1 had separate polygon draw modes for front-facing and back-facing faces of polygons + if (bd->GlVersion <= 310 || bd->GlProfileIsCompat) + { + glPolygonMode(GL_FRONT, (GLenum)last_polygon_mode[0]); + glPolygonMode(GL_BACK, (GLenum)last_polygon_mode[1]); + } + else + { + glPolygonMode(GL_FRONT_AND_BACK, (GLenum)last_polygon_mode[0]); + } +#endif // IMGUI_IMPL_HAS_POLYGON_MODE + + glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); + glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); + (void)bd; // Not all compilation paths use this +} + +bool ImGui_ImplOpenGL3_CreateFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Build texture atlas + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. + + // Upload texture to graphics system + // (Bilinear sampling is required by default. Set 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines' or 'style.AntiAliasedLinesUseTex = false' to allow point/nearest sampling) + GLint last_texture; + GL_CALL(glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture)); + GL_CALL(glGenTextures(1, &bd->FontTexture)); + GL_CALL(glBindTexture(GL_TEXTURE_2D, bd->FontTexture)); + GL_CALL(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)); + GL_CALL(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); +#ifdef GL_UNPACK_ROW_LENGTH // Not on WebGL/ES + GL_CALL(glPixelStorei(GL_UNPACK_ROW_LENGTH, 0)); +#endif + GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels)); + + // Store our identifier + io.Fonts->SetTexID((ImTextureID)(intptr_t)bd->FontTexture); + + // Restore state + GL_CALL(glBindTexture(GL_TEXTURE_2D, last_texture)); + + return true; +} + +void ImGui_ImplOpenGL3_DestroyFontsTexture() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + if (bd->FontTexture) + { + glDeleteTextures(1, &bd->FontTexture); + io.Fonts->SetTexID(0); + bd->FontTexture = 0; + } +} + +// If you get an error please report on github. You may try different GL context version or GLSL version. See GL<>GLSL version table at the top of this file. +static bool CheckShader(GLuint handle, const char* desc) +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + GLint status = 0, log_length = 0; + glGetShaderiv(handle, GL_COMPILE_STATUS, &status); + glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &log_length); + if ((GLboolean)status == GL_FALSE) + fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile %s! With GLSL: %s\n", desc, bd->GlslVersionString); + if (log_length > 1) + { + ImVector buf; + buf.resize((int)(log_length + 1)); + glGetShaderInfoLog(handle, log_length, nullptr, (GLchar*)buf.begin()); + fprintf(stderr, "%s\n", buf.begin()); + } + return (GLboolean)status == GL_TRUE; +} + +// If you get an error please report on GitHub. You may try different GL context version or GLSL version. +static bool CheckProgram(GLuint handle, const char* desc) +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + GLint status = 0, log_length = 0; + glGetProgramiv(handle, GL_LINK_STATUS, &status); + glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length); + if ((GLboolean)status == GL_FALSE) + fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to link %s! With GLSL %s\n", desc, bd->GlslVersionString); + if (log_length > 1) + { + ImVector buf; + buf.resize((int)(log_length + 1)); + glGetProgramInfoLog(handle, log_length, nullptr, (GLchar*)buf.begin()); + fprintf(stderr, "%s\n", buf.begin()); + } + return (GLboolean)status == GL_TRUE; +} + +bool ImGui_ImplOpenGL3_CreateDeviceObjects() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + + // Backup GL state + GLint last_texture, last_array_buffer; + glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer); +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + GLint last_vertex_array; + glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array); +#endif + + // Parse GLSL version string + int glsl_version = 130; + sscanf(bd->GlslVersionString, "#version %d", &glsl_version); + + const GLchar* vertex_shader_glsl_120 = + "uniform mat4 ProjMtx;\n" + "attribute vec2 Position;\n" + "attribute vec2 UV;\n" + "attribute vec4 Color;\n" + "varying vec2 Frag_UV;\n" + "varying vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* vertex_shader_glsl_130 = + "uniform mat4 ProjMtx;\n" + "in vec2 Position;\n" + "in vec2 UV;\n" + "in vec4 Color;\n" + "out vec2 Frag_UV;\n" + "out vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* vertex_shader_glsl_300_es = + "precision highp float;\n" + "layout (location = 0) in vec2 Position;\n" + "layout (location = 1) in vec2 UV;\n" + "layout (location = 2) in vec4 Color;\n" + "uniform mat4 ProjMtx;\n" + "out vec2 Frag_UV;\n" + "out vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* vertex_shader_glsl_410_core = + "layout (location = 0) in vec2 Position;\n" + "layout (location = 1) in vec2 UV;\n" + "layout (location = 2) in vec4 Color;\n" + "uniform mat4 ProjMtx;\n" + "out vec2 Frag_UV;\n" + "out vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " Frag_UV = UV;\n" + " Frag_Color = Color;\n" + " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_120 = + "#ifdef GL_ES\n" + " precision mediump float;\n" + "#endif\n" + "uniform sampler2D Texture;\n" + "varying vec2 Frag_UV;\n" + "varying vec4 Frag_Color;\n" + "void main()\n" + "{\n" + " gl_FragColor = Frag_Color * texture2D(Texture, Frag_UV.st);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_130 = + "uniform sampler2D Texture;\n" + "in vec2 Frag_UV;\n" + "in vec4 Frag_Color;\n" + "out vec4 Out_Color;\n" + "void main()\n" + "{\n" + " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_300_es = + "precision mediump float;\n" + "uniform sampler2D Texture;\n" + "in vec2 Frag_UV;\n" + "in vec4 Frag_Color;\n" + "layout (location = 0) out vec4 Out_Color;\n" + "void main()\n" + "{\n" + " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" + "}\n"; + + const GLchar* fragment_shader_glsl_410_core = + "in vec2 Frag_UV;\n" + "in vec4 Frag_Color;\n" + "uniform sampler2D Texture;\n" + "layout (location = 0) out vec4 Out_Color;\n" + "void main()\n" + "{\n" + " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" + "}\n"; + + // Select shaders matching our GLSL versions + const GLchar* vertex_shader = nullptr; + const GLchar* fragment_shader = nullptr; + if (glsl_version < 130) + { + vertex_shader = vertex_shader_glsl_120; + fragment_shader = fragment_shader_glsl_120; + } + else if (glsl_version >= 410) + { + vertex_shader = vertex_shader_glsl_410_core; + fragment_shader = fragment_shader_glsl_410_core; + } + else if (glsl_version == 300) + { + vertex_shader = vertex_shader_glsl_300_es; + fragment_shader = fragment_shader_glsl_300_es; + } + else + { + vertex_shader = vertex_shader_glsl_130; + fragment_shader = fragment_shader_glsl_130; + } + + // Create shaders + const GLchar* vertex_shader_with_version[2] = { bd->GlslVersionString, vertex_shader }; + GLuint vert_handle = glCreateShader(GL_VERTEX_SHADER); + glShaderSource(vert_handle, 2, vertex_shader_with_version, nullptr); + glCompileShader(vert_handle); + CheckShader(vert_handle, "vertex shader"); + + const GLchar* fragment_shader_with_version[2] = { bd->GlslVersionString, fragment_shader }; + GLuint frag_handle = glCreateShader(GL_FRAGMENT_SHADER); + glShaderSource(frag_handle, 2, fragment_shader_with_version, nullptr); + glCompileShader(frag_handle); + CheckShader(frag_handle, "fragment shader"); + + // Link + bd->ShaderHandle = glCreateProgram(); + glAttachShader(bd->ShaderHandle, vert_handle); + glAttachShader(bd->ShaderHandle, frag_handle); + glLinkProgram(bd->ShaderHandle); + CheckProgram(bd->ShaderHandle, "shader program"); + + glDetachShader(bd->ShaderHandle, vert_handle); + glDetachShader(bd->ShaderHandle, frag_handle); + glDeleteShader(vert_handle); + glDeleteShader(frag_handle); + + bd->AttribLocationTex = glGetUniformLocation(bd->ShaderHandle, "Texture"); + bd->AttribLocationProjMtx = glGetUniformLocation(bd->ShaderHandle, "ProjMtx"); + bd->AttribLocationVtxPos = (GLuint)glGetAttribLocation(bd->ShaderHandle, "Position"); + bd->AttribLocationVtxUV = (GLuint)glGetAttribLocation(bd->ShaderHandle, "UV"); + bd->AttribLocationVtxColor = (GLuint)glGetAttribLocation(bd->ShaderHandle, "Color"); + + // Create buffers + glGenBuffers(1, &bd->VboHandle); + glGenBuffers(1, &bd->ElementsHandle); + + ImGui_ImplOpenGL3_CreateFontsTexture(); + + // Restore modified GL state + glBindTexture(GL_TEXTURE_2D, last_texture); + glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer); +#ifdef IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY + glBindVertexArray(last_vertex_array); +#endif + + return true; +} + +void ImGui_ImplOpenGL3_DestroyDeviceObjects() +{ + ImGui_ImplOpenGL3_Data* bd = ImGui_ImplOpenGL3_GetBackendData(); + if (bd->VboHandle) { glDeleteBuffers(1, &bd->VboHandle); bd->VboHandle = 0; } + if (bd->ElementsHandle) { glDeleteBuffers(1, &bd->ElementsHandle); bd->ElementsHandle = 0; } + if (bd->ShaderHandle) { glDeleteProgram(bd->ShaderHandle); bd->ShaderHandle = 0; } + ImGui_ImplOpenGL3_DestroyFontsTexture(); +} + +//-------------------------------------------------------------------------------------------------------- +// MULTI-VIEWPORT / PLATFORM INTERFACE SUPPORT +// This is an _advanced_ and _optional_ feature, allowing the backend to create and handle multiple viewports simultaneously. +// If you are new to dear imgui or creating a new binding for dear imgui, it is recommended that you completely ignore this section first.. +//-------------------------------------------------------------------------------------------------------- + +static void ImGui_ImplOpenGL3_RenderWindow(ImGuiViewport* viewport, void*) +{ + if (!(viewport->Flags & ImGuiViewportFlags_NoRendererClear)) + { + ImVec4 clear_color = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); + glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w); + glClear(GL_COLOR_BUFFER_BIT); + } + ImGui_ImplOpenGL3_RenderDrawData(viewport->DrawData); +} + +static void ImGui_ImplOpenGL3_InitPlatformInterface() +{ + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + platform_io.Renderer_RenderWindow = ImGui_ImplOpenGL3_RenderWindow; +} + +static void ImGui_ImplOpenGL3_ShutdownPlatformInterface() +{ + ImGui::DestroyPlatformWindows(); +} + +//----------------------------------------------------------------------------- + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/imgui.cpp b/thirdparty/imgui_suite/imgui/cpp/imgui.cpp new file mode 100644 index 00000000000..c2419f90e00 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/imgui.cpp @@ -0,0 +1,20817 @@ +// dear imgui, v1.90 WIP +// (main code and documentation) + +// Help: +// - See links below. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// - Read top of imgui.cpp for more details, links and comments. + +// Resources: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Homepage https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/6478 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues +// - Tests & Automation https://github.com/ocornut/imgui_test_engine + +// For first-time users having issues compiling/linking/running/loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. +// Everything else should be asked in 'Issues'! We are building a database of cross-linked knowledge there. + +// Copyright (c) 2014-2023 Omar Cornut +// Developed by Omar Cornut and every direct or indirect contributors to the GitHub. +// See LICENSE.txt for copyright and licensing details (standard MIT License). +// This library is free but needs your support to sustain development and maintenance. +// Businesses: you can support continued development via B2B invoiced technical support, maintenance and sponsoring contracts. +// PLEASE reach out at omar AT dearimgui DOT com. See https://github.com/ocornut/imgui/wiki/Sponsors +// Businesses: you can also purchase licenses for the Dear ImGui Automation/Test Engine. + +// It is recommended that you don't modify imgui.cpp! It will become difficult for you to update the library. +// Note that 'ImGui::' being a namespace, you can add functions into the namespace from your own source files, without +// modifying imgui.h or imgui.cpp. You may include imgui_internal.h to access internal data structures, but it doesn't +// come with any guarantee of forward compatibility. Discussing your changes on the GitHub Issue Tracker may lead you +// to a better solution or official support for them. + +/* + +Index of this file: + +DOCUMENTATION + +- MISSION STATEMENT +- CONTROLS GUIDE +- PROGRAMMER GUIDE + - READ FIRST + - HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + - GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + - HOW A SIMPLE APPLICATION MAY LOOK LIKE + - HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE +- API BREAKING CHANGES (read me when you update!) +- FREQUENTLY ASKED QUESTIONS (FAQ) + - Read all answers online: https://www.dearimgui.com/faq, or in docs/FAQ.md (with a Markdown viewer) + +CODE +(search for "[SECTION]" in the code to find them) + +// [SECTION] INCLUDES +// [SECTION] FORWARD DECLARATIONS +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +// [SECTION] MISC HELPERS/UTILITIES (File functions) +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// [SECTION] ImGuiStorage +// [SECTION] ImGuiTextFilter +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +// [SECTION] ImGuiListClipper +// [SECTION] STYLING +// [SECTION] RENDER HELPERS +// [SECTION] INITIALIZATION, SHUTDOWN +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +// [SECTION] INPUTS +// [SECTION] ERROR CHECKING +// [SECTION] LAYOUT +// [SECTION] SCROLLING +// [SECTION] TOOLTIPS +// [SECTION] POPUPS +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +// [SECTION] DRAG AND DROP +// [SECTION] LOGGING/CAPTURING +// [SECTION] SETTINGS +// [SECTION] LOCALIZATION +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +// [SECTION] DOCKING +// [SECTION] PLATFORM DEPENDENT HELPERS +// [SECTION] METRICS/DEBUGGER WINDOW +// [SECTION] DEBUG LOG WINDOW +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) + +*/ + +//----------------------------------------------------------------------------- +// DOCUMENTATION +//----------------------------------------------------------------------------- + +/* + + MISSION STATEMENT + ================= + + - Easy to use to create code-driven and data-driven tools. + - Easy to use to create ad hoc short-lived tools and long-lived, more elaborate tools. + - Easy to hack and improve. + - Minimize setup and maintenance. + - Minimize state storage on user side. + - Minimize state synchronization. + - Portable, minimize dependencies, run on target (consoles, phones, etc.). + - Efficient runtime and memory consumption. + + Designed primarily for developers and content-creators, not the typical end-user! + Some of the current weaknesses (which we aim to address in the future) includes: + + - Doesn't look fancy. + - Limited layout features, intricate layouts are typically crafted in code. + + + CONTROLS GUIDE + ============== + + - MOUSE CONTROLS + - Mouse wheel: Scroll vertically. + - SHIFT+Mouse wheel: Scroll horizontally. + - Click [X]: Close a window, available when 'bool* p_open' is passed to ImGui::Begin(). + - Click ^, Double-Click title: Collapse window. + - Drag on corner/border: Resize window (double-click to auto fit window to its contents). + - Drag on any empty space: Move window (unless io.ConfigWindowsMoveFromTitleBarOnly = true). + - Left-click outside popup: Close popup stack (right-click over underlying popup: Partially close popup stack). + + - TEXT EDITOR + - Hold SHIFT or Drag Mouse: Select text. + - CTRL+Left/Right: Word jump. + - CTRL+Shift+Left/Right: Select words. + - CTRL+A or Double-Click: Select All. + - CTRL+X, CTRL+C, CTRL+V: Use OS clipboard. + - CTRL+Z, CTRL+Y: Undo, Redo. + - ESCAPE: Revert text to its original value. + - On OSX, controls are automatically adjusted to match standard OSX text editing shortcuts and behaviors. + + - KEYBOARD CONTROLS + - Basic: + - Tab, SHIFT+Tab Cycle through text editable fields. + - CTRL+Tab, CTRL+Shift+Tab Cycle through windows. + - CTRL+Click Input text into a Slider or Drag widget. + - Extended features with `io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard`: + - Tab, SHIFT+Tab: Cycle through every items. + - Arrow keys Move through items using directional navigation. Tweak value. + - Arrow keys + Alt, Shift Tweak slower, tweak faster (when using arrow keys). + - Enter Activate item (prefer text input when possible). + - Space Activate item (prefer tweaking with arrows when possible). + - Escape Deactivate item, leave child window, close popup. + - Page Up, Page Down Previous page, next page. + - Home, End Scroll to top, scroll to bottom. + - Alt Toggle between scrolling layer and menu layer. + - CTRL+Tab then Ctrl+Arrows Move window. Hold SHIFT to resize instead of moving. + - Output when ImGuiConfigFlags_NavEnableKeyboard set, + - io.WantCaptureKeyboard flag is set when keyboard is claimed. + - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. + - io.NavVisible: true when the navigation cursor is visible (usually goes to back false when mouse is used). + + - GAMEPAD CONTROLS + - Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. + - Particularly useful to use Dear ImGui on a console system (e.g. PlayStation, Switch, Xbox) without a mouse! + - Download controller mapping PNG/PSD at http://dearimgui.com/controls_sheets + - Backend support: backend needs to: + - Set 'io.BackendFlags |= ImGuiBackendFlags_HasGamepad' + call io.AddKeyEvent/AddKeyAnalogEvent() with ImGuiKey_Gamepad_XXX keys. + - For analog values (0.0f to 1.0f), backend is responsible to handling a dead-zone and rescaling inputs accordingly. + Backend code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - BEFORE 1.87, BACKENDS USED TO WRITE TO io.NavInputs[]. This is now obsolete. Please call io functions instead! + - If you need to share inputs between your game and the Dear ImGui interface, the easiest approach is to go all-or-nothing, + with a buttons combo to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. + + - REMOTE INPUTS SHARING & MOUSE EMULATION + - PS4/PS5 users: Consider emulating a mouse cursor with DualShock touch pad or a spare analog stick as a mouse-emulation fallback. + - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + run examples/libs/synergy/uSynergy.c (on your console/tablet/phone app) + in order to share your PC mouse/keyboard. + - See https://github.com/ocornut/imgui/wiki/Useful-Extensions#remoting for other remoting solutions. + - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. + Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs Dear ImGui to move your mouse cursor along with navigation movements. + When enabled, the NewFrame() function may alter 'io.MousePos' and set 'io.WantSetMousePos' to notify you that it wants the mouse cursor to be moved. + When that happens your backend NEEDS to move the OS or underlying mouse cursor on the next frame. Some of the backends in examples/ do that. + (If you set the NavEnableSetMousePos flag but don't honor 'io.WantSetMousePos' properly, Dear ImGui will misbehave as it will see your mouse moving back & forth!) + (In a setup when you may not have easy control over the mouse cursor, e.g. uSynergy.c doesn't expose moving remote mouse cursor, you may want + to set a boolean to ignore your other external mouse positions until the external source is moved again.) + + + PROGRAMMER GUIDE + ================ + + READ FIRST + ---------- + - Remember to check the wonderful Wiki (https://github.com/ocornut/imgui/wiki) + - Your code creates the UI every frame of your application loop, if your code doesn't run the UI is gone! + The UI can be highly dynamic, there are no construction or destruction steps, less superfluous + data retention on your side, less state duplication, less state synchronization, fewer bugs. + - Call and read ImGui::ShowDemoWindow() for demo code demonstrating most features. + Or browse https://pthom.github.io/imgui_manual_online/manual/imgui_manual.html for interactive web version. + - The library is designed to be built from sources. Avoid pre-compiled binaries and packaged versions. See imconfig.h to configure your build. + - Dear ImGui is an implementation of the IMGUI paradigm (immediate-mode graphical user interface, a term coined by Casey Muratori). + You can learn about IMGUI principles at http://www.johno.se/book/imgui.html, http://mollyrocket.com/861 & more links in Wiki. + - Dear ImGui is a "single pass" rasterizing implementation of the IMGUI paradigm, aimed at ease of use and high-performances. + For every application frame, your UI code will be called only once. This is in contrast to e.g. Unity's implementation of an IMGUI, + where the UI code is called multiple times ("multiple passes") from a single entry point. There are pros and cons to both approaches. + - Our origin is on the top-left. In axis aligned bounding boxes, Min = top-left, Max = bottom-right. + - Please make sure you have asserts enabled (IM_ASSERT redirects to assert() by default, but can be redirected). + If you get an assert, read the messages and comments around the assert. + - This codebase aims to be highly optimized: + - A typical idle frame should never call malloc/free. + - We rely on a maximum of constant-time or O(N) algorithms. Limiting searches/scans as much as possible. + - We put particular energy in making sure performances are decent with typical "Debug" build settings as well. + Which mean we tend to avoid over-relying on "zero-cost abstraction" as they aren't zero-cost at all. + - This codebase aims to be both highly opinionated and highly flexible: + - This code works because of the things it choose to solve or not solve. + - C++: this is a pragmatic C-ish codebase: we don't use fancy C++ features, we don't include C++ headers, + and ImGui:: is a namespace. We rarely use member functions (and when we did, I am mostly regretting it now). + This is to increase compatibility, increase maintainability and facilitate use from other languages. + - C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types. + See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that. + We can can optionally export math operators for ImVec2/ImVec4 using IMGUI_DEFINE_MATH_OPERATORS, which we use internally. + - C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction + (so don't use ImVector in your code or at our own risk!). + - Building: We don't use nor mandate a build system for the main library. + This is in an effort to ensure that it works in the real world aka with any esoteric build setup. + This is also because providing a build system for the main library would be of little-value. + The build problems are almost never coming from the main library but from specific backends. + + + HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + ---------------------------------------------- + - Update submodule or copy/overwrite every file. + - About imconfig.h: + - You may modify your copy of imconfig.h, in this case don't overwrite it. + - or you may locally branch to modify imconfig.h and merge/rebase latest. + - or you may '#define IMGUI_USER_CONFIG "my_config_file.h"' globally from your build system to + specify a custom path for your imconfig.h file and instead not have to modify the default one. + + - Overwrite all the sources files except for imconfig.h (if you have modified your copy of imconfig.h) + - Or maintain your own branch where you have imconfig.h modified as a top-most commit which you can regularly rebase over "master". + - You can also use '#define IMGUI_USER_CONFIG "my_config_file.h" to redirect configuration to your own file. + - Read the "API BREAKING CHANGES" section (below). This is where we list occasional API breaking changes. + If a function/type has been renamed / or marked obsolete, try to fix the name in your code before it is permanently removed + from the public API. If you have a problem with a missing function/symbols, search for its name in the code, there will + likely be a comment about it. Please report any issue to the GitHub page! + - To find out usage of old API, you can add '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in your configuration file. + - Try to keep your copy of Dear ImGui reasonably up to date! + + + GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + --------------------------------------------------------------- + - See https://github.com/ocornut/imgui/wiki/Getting-Started. + - Run and study the examples and demo in imgui_demo.cpp to get acquainted with the library. + - In the majority of cases you should be able to use unmodified backends files available in the backends/ folder. + - Add the Dear ImGui source files + selected backend source files to your projects or using your preferred build system. + It is recommended you build and statically link the .cpp files as part of your project and NOT as a shared library (DLL). + - You can later customize the imconfig.h file to tweak some compile-time behavior, such as integrating Dear ImGui types with your own maths types. + - When using Dear ImGui, your programming IDE is your friend: follow the declaration of variables, functions and types to find comments about them. + - Dear ImGui never touches or knows about your GPU state. The only function that knows about GPU is the draw function that you provide. + Effectively it means you can create widgets at any time in your code, regardless of considerations of being in "update" vs "render" + phases of your own application. All rendering information is stored into command-lists that you will retrieve after calling ImGui::Render(). + - Refer to the backends and demo applications in the examples/ folder for instruction on how to setup your code. + - If you are running over a standard OS with a common graphics API, you should be able to use unmodified imgui_impl_*** files from the examples/ folder. + + + HOW A SIMPLE APPLICATION MAY LOOK LIKE + -------------------------------------- + EXHIBIT 1: USING THE EXAMPLE BACKENDS (= imgui_impl_XXX.cpp files from the backends/ folder). + The sub-folders in examples/ contain examples applications following this structure. + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Initialize helper Platform and Renderer backends (here we are using imgui_impl_win32.cpp and imgui_impl_dx11.cpp) + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); + + // Application main loop + while (true) + { + // Feed inputs to dear imgui, start new frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // Any application code here + ImGui::Text("Hello, world!"); + + // Render dear imgui into screen + ImGui::Render(); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + g_pSwapChain->Present(1, 0); + } + + // Shutdown + ImGui_ImplDX11_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + EXHIBIT 2: IMPLEMENTING CUSTOM BACKEND / CUSTOM ENGINE + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Build and load the texture atlas into a texture + // (In the examples/ app this is usually done within the ImGui_ImplXXX_Init() function from one of the demo Renderer) + int width, height; + unsigned char* pixels = nullptr; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // At this point you've got the texture data and you need to upload that to your graphic system: + // After we have created the texture, store its pointer/identifier (_in whichever format your engine uses_) in 'io.Fonts->TexID'. + // This will be passed back to your via the renderer. Basically ImTextureID == void*. Read FAQ for details about ImTextureID. + MyTexture* texture = MyEngine::CreateTextureFromMemoryPixels(pixels, width, height, TEXTURE_TYPE_RGBA32) + io.Fonts->SetTexID((void*)texture); + + // Application main loop + while (true) + { + // Setup low-level inputs, e.g. on Win32: calling GetKeyboardState(), or write to those fields from your Windows message handlers, etc. + // (In the examples/ app this is usually done within the ImGui_ImplXXX_NewFrame() function from one of the demo Platform Backends) + io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) + io.DisplaySize.x = 1920.0f; // set the current display width + io.DisplaySize.y = 1280.0f; // set the current display height here + io.AddMousePosEvent(mouse_x, mouse_y); // update mouse position + io.AddMouseButtonEvent(0, mouse_b[0]); // update mouse button states + io.AddMouseButtonEvent(1, mouse_b[1]); // update mouse button states + + // Call NewFrame(), after this point you can use ImGui::* functions anytime + // (So you want to try calling NewFrame() as early as you can in your main loop to be able to use Dear ImGui everywhere) + ImGui::NewFrame(); + + // Most of your application code here + ImGui::Text("Hello, world!"); + MyGameUpdate(); // may use any Dear ImGui functions, e.g. ImGui::Begin("My window"); ImGui::Text("Hello, world!"); ImGui::End(); + MyGameRender(); // may use any Dear ImGui functions as well! + + // Render dear imgui, swap buffers + // (You want to try calling EndFrame/Render as late as you can, to be able to use Dear ImGui in your own game rendering code) + ImGui::EndFrame(); + ImGui::Render(); + ImDrawData* draw_data = ImGui::GetDrawData(); + MyImGuiRenderFunction(draw_data); + SwapBuffers(); + } + + // Shutdown + ImGui::DestroyContext(); + + To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest of your application, + you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + Please read the FAQ and example applications for details about this! + + + HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + --------------------------------------------- + The backends in impl_impl_XXX.cpp files contain many working implementations of a rendering function. + + void MyImGuiRenderFunction(ImDrawData* draw_data) + { + // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled + // TODO: Setup texture sampling state: sample with bilinear filtering (NOT point/nearest filtering). Use 'io.Fonts->Flags |= ImFontAtlasFlags_NoBakedLines;' to allow point/nearest filtering. + // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; // vertex buffer generated by Dear ImGui + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; // index buffer generated by Dear ImGui + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Project scissor/clipping rectangles into framebuffer space + ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); + ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); + if (clip_max.x <= clip_min.x || clip_max.y <= clip_min.y) + continue; + + // We are using scissoring to clip some objects. All low-level graphics API should support it. + // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches + // (some elements visible outside their bounds) but you can fix that once everything else works! + // - Clipping coordinates are provided in imgui coordinates space: + // - For a given viewport, draw_data->DisplayPos == viewport->Pos and draw_data->DisplaySize == viewport->Size + // - In a single viewport application, draw_data->DisplayPos == (0,0) and draw_data->DisplaySize == io.DisplaySize, but always use GetMainViewport()->Pos/Size instead of hardcoding those values. + // - In the interest of supporting multi-viewport applications (see 'docking' branch on github), + // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. + // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) + MyEngineSetScissor(clip_min.x, clip_min.y, clip_max.x, clip_max.y); + + // The texture for the draw call is specified by pcmd->GetTexID(). + // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. + MyEngineBindTexture((MyTexture*)pcmd->GetTexID()); + + // Render 'pcmd->ElemCount/3' indexed triangles. + // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. + MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer + pcmd->IdxOffset, vtx_buffer, pcmd->VtxOffset); + } + } + } + } + + + API BREAKING CHANGES + ==================== + + Occasionally introducing changes that are breaking the API. We try to make the breakage minor and easy to fix. + Below is a change-log of API breaking changes only. If you are using one of the functions listed, expect to have to fix some code. + When you are not sure about an old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. + You can read releases logs https://github.com/ocornut/imgui/releases for more details. + +(Docking/Viewport Branch) + - 2023/XX/XX (1.XXXX) - when multi-viewports are enabled, all positions will be in your natural OS coordinates space. It means that: + - reference to hard-coded positions such as in SetNextWindowPos(ImVec2(0,0)) are probably not what you want anymore. + you may use GetMainViewport()->Pos to offset hard-coded positions, e.g. SetNextWindowPos(GetMainViewport()->Pos) + - likewise io.MousePos and GetMousePos() will use OS coordinates. + If you query mouse positions to interact with non-imgui coordinates you will need to offset them, e.g. subtract GetWindowViewport()->Pos. + + - 2023/09/15 (1.90.0) - ListBox, Combo: changed signature of "name getter" callback in old one-liner ListBox()/Combo() apis. kept inline redirection function (will obsolete). + - old: bool Combo(const char* label, int* current_item, bool (*getter)(void* user_data, int idx, const char** out_text), ...) + - new: bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...); + - old: bool ListBox(const char* label, int* current_item, bool (*getting)(void* user_data, int idx, const char** out_text), ...); + - new: bool ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), ...); + - 2023/09/08 (1.90.0) - commented out obsolete redirecting functions: + - GetWindowContentRegionWidth() -> use GetWindowContentRegionMax().x - GetWindowContentRegionMin().x. Consider that generally 'GetContentRegionAvail().x' is more useful. + - ImDrawCornerFlags_XXX -> use ImDrawFlags_RoundCornersXXX flags. Read 1.82 Changelog for details + grep commented names in sources. + - commented out runtime support for hardcoded ~0 or 0x01..0x0F rounding flags values for AddRect()/AddRectFilled()/PathRect()/AddImageRounded() -> use ImDrawFlags_RoundCornersXXX flags. Read 1.82 Changelog for details + - 2023/08/25 (1.89.9) - clipper: Renamed IncludeRangeByIndices() (also called ForceDisplayRangeByIndices() before 1.89.6) to IncludeItemsByIndex(). Kept inline redirection function. Sorry! + - 2023/07/12 (1.89.8) - ImDrawData: CmdLists now owned, changed from ImDrawList** to ImVector. Majority of users shouldn't be affected, but you cannot compare to NULL nor reassign manually anymore. Instead use AddDrawList(). (#6406, #4879, #1878) + - 2023/06/28 (1.89.7) - overlapping items: obsoleted 'SetItemAllowOverlap()' (called after item) in favor of calling 'SetNextItemAllowOverlap()' (called before item). 'SetItemAllowOverlap()' didn't and couldn't work reliably since 1.89 (2022-11-15). + - 2023/06/28 (1.89.7) - overlapping items: renamed 'ImGuiTreeNodeFlags_AllowItemOverlap' to 'ImGuiTreeNodeFlags_AllowOverlap', 'ImGuiSelectableFlags_AllowItemOverlap' to 'ImGuiSelectableFlags_AllowOverlap'. Kept redirecting enums (will obsolete). + - 2023/06/28 (1.89.7) - overlapping items: IsItemHovered() now by default return false when querying an item using AllowOverlap mode which is being overlapped. Use ImGuiHoveredFlags_AllowWhenOverlappedByItem to revert to old behavior. + - 2023/06/28 (1.89.7) - overlapping items: Selectable and TreeNode don't allow overlap when active so overlapping widgets won't appear as hovered. While this fixes a common small visual issue, it also means that calling IsItemHovered() after a non-reactive elements - e.g. Text() - overlapping an active one may fail if you don't use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem). (#6610) + - 2023/06/20 (1.89.7) - moved io.HoverDelayShort/io.HoverDelayNormal to style.HoverDelayShort/style.HoverDelayNormal. As the fields were added in 1.89 and expected to be left unchanged by most users, or only tweaked once during app initialization, we are exceptionally accepting the breakage. + - 2023/05/30 (1.89.6) - backends: renamed "imgui_impl_sdlrenderer.cpp" to "imgui_impl_sdlrenderer2.cpp" and "imgui_impl_sdlrenderer.h" to "imgui_impl_sdlrenderer2.h". This is in prevision for the future release of SDL3. + - 2023/05/22 (1.89.6) - listbox: commented out obsolete/redirecting functions that were marked obsolete more than two years ago: + - ListBoxHeader() -> use BeginListBox() (note how two variants of ListBoxHeader() existed. Check commented versions in imgui.h for reference) + - ListBoxFooter() -> use EndListBox() + - 2023/05/15 (1.89.6) - clipper: commented out obsolete redirection constructor 'ImGuiListClipper(int items_count, float items_height = -1.0f)' that was marked obsolete in 1.79. Use default constructor + clipper.Begin(). + - 2023/05/15 (1.89.6) - clipper: renamed ImGuiListClipper::ForceDisplayRangeByIndices() to ImGuiListClipper::IncludeRangeByIndices(). + - 2023/03/14 (1.89.4) - commented out redirecting enums/functions names that were marked obsolete two years ago: + - ImGuiSliderFlags_ClampOnInput -> use ImGuiSliderFlags_AlwaysClamp + - ImGuiInputTextFlags_AlwaysInsertMode -> use ImGuiInputTextFlags_AlwaysOverwrite + - ImDrawList::AddBezierCurve() -> use ImDrawList::AddBezierCubic() + - ImDrawList::PathBezierCurveTo() -> use ImDrawList::PathBezierCubicCurveTo() + - 2023/03/09 (1.89.4) - renamed PushAllowKeyboardFocus()/PopAllowKeyboardFocus() to PushTabStop()/PopTabStop(). Kept inline redirection functions (will obsolete). + - 2023/03/09 (1.89.4) - tooltips: Added 'bool' return value to BeginTooltip() for API consistency. Please only submit contents and call EndTooltip() if BeginTooltip() returns true. In reality the function will _currently_ always return true, but further changes down the line may change this, best to clarify API sooner. + - 2023/02/15 (1.89.4) - moved the optional "courtesy maths operators" implementation from imgui_internal.h in imgui.h. + Even though we encourage using your own maths types and operators by setting up IM_VEC2_CLASS_EXTRA, + it has been frequently requested by people to use our own. We had an opt-in define which was + previously fulfilled in imgui_internal.h. It is now fulfilled in imgui.h. (#6164) + - OK: #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui.h" / #include "imgui_internal.h" + - Error: #include "imgui.h" / #define IMGUI_DEFINE_MATH_OPERATORS / #include "imgui_internal.h" + - 2023/02/07 (1.89.3) - backends: renamed "imgui_impl_sdl.cpp" to "imgui_impl_sdl2.cpp" and "imgui_impl_sdl.h" to "imgui_impl_sdl2.h". (#6146) This is in prevision for the future release of SDL3. + - 2022/10/26 (1.89) - commented out redirecting OpenPopupContextItem() which was briefly the name of OpenPopupOnItemClick() from 1.77 to 1.79. + - 2022/10/12 (1.89) - removed runtime patching of invalid "%f"/"%0.f" format strings for DragInt()/SliderInt(). This was obsoleted in 1.61 (May 2018). See 1.61 changelog for details. + - 2022/09/26 (1.89) - renamed and merged keyboard modifiers key enums and flags into a same set. Kept inline redirection enums (will obsolete). + - ImGuiKey_ModCtrl and ImGuiModFlags_Ctrl -> ImGuiMod_Ctrl + - ImGuiKey_ModShift and ImGuiModFlags_Shift -> ImGuiMod_Shift + - ImGuiKey_ModAlt and ImGuiModFlags_Alt -> ImGuiMod_Alt + - ImGuiKey_ModSuper and ImGuiModFlags_Super -> ImGuiMod_Super + the ImGuiKey_ModXXX were introduced in 1.87 and mostly used by backends. + the ImGuiModFlags_XXX have been exposed in imgui.h but not really used by any public api only by third-party extensions. + exceptionally commenting out the older ImGuiKeyModFlags_XXX names ahead of obsolescence schedule to reduce confusion and because they were not meant to be used anyway. + - 2022/09/20 (1.89) - ImGuiKey is now a typed enum, allowing ImGuiKey_XXX symbols to be named in debuggers. + this will require uses of legacy backend-dependent indices to be casted, e.g. + - with imgui_impl_glfw: IsKeyPressed(GLFW_KEY_A) -> IsKeyPressed((ImGuiKey)GLFW_KEY_A); + - with imgui_impl_win32: IsKeyPressed('A') -> IsKeyPressed((ImGuiKey)'A') + - etc. However if you are upgrading code you might well use the better, backend-agnostic IsKeyPressed(ImGuiKey_A) now! + - 2022/09/12 (1.89) - removed the bizarre legacy default argument for 'TreePush(const void* ptr = NULL)', always pass a pointer value explicitly. NULL/nullptr is ok but require cast, e.g. TreePush((void*)nullptr); + - 2022/09/05 (1.89) - commented out redirecting functions/enums names that were marked obsolete in 1.77 and 1.78 (June 2020): + - DragScalar(), DragScalarN(), DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - SliderScalar(), SliderScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(): For old signatures ending with (..., const char* format, float power = 1.0f) -> use (..., format ImGuiSliderFlags_Logarithmic) if power != 1.0f. + - BeginPopupContextWindow(const char*, ImGuiMouseButton, bool) -> use BeginPopupContextWindow(const char*, ImGuiPopupFlags) + - 2022/09/02 (1.89) - obsoleted using SetCursorPos()/SetCursorScreenPos() to extend parent window/cell boundaries. + this relates to when moving the cursor position beyond current boundaries WITHOUT submitting an item. + - previously this would make the window content size ~200x200: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); + - instead, please submit an item: + Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); + - alternative: + Begin(...) + Dummy(ImVec2(200,200)) + End(); + - content size is now only extended when submitting an item! + - with '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will now be detected and assert. + - without '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' this will silently be fixed until we obsolete it. + - 2022/08/03 (1.89) - changed signature of ImageButton() function. Kept redirection function (will obsolete). + - added 'const char* str_id' parameter + removed 'int frame_padding = -1' parameter. + - old signature: bool ImageButton(ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), int frame_padding = -1, ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - used the ImTextureID value to create an ID. This was inconsistent with other functions, led to ID conflicts, and caused problems with engines using transient ImTextureID values. + - had a FramePadding override which was inconsistent with other functions and made the already-long signature even longer. + - new signature: bool ImageButton(const char* str_id, ImTextureID tex_id, ImVec2 size, ImVec2 uv0 = ImVec2(0,0), ImVec2 uv1 = ImVec2(1,1), ImVec4 bg_col = ImVec4(0,0,0,0), ImVec4 tint_col = ImVec4(1,1,1,1)); + - requires an explicit identifier. You may still use e.g. PushID() calls and then pass an empty identifier. + - always uses style.FramePadding for padding, to be consistent with other buttons. You may use PushStyleVar() to alter this. + - 2022/07/08 (1.89) - inputs: removed io.NavInputs[] and ImGuiNavInput enum (following 1.87 changes). + - Official backends from 1.87+ -> no issue. + - Official backends from 1.60 to 1.86 -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need updating! + - Custom backends not writing to io.NavInputs[] -> no issue. + - Custom backends writing to io.NavInputs[] -> will build and convert gamepad inputs, unless IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Need fixing! + - TL;DR: Backends should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values instead of filling io.NavInput[]. + - 2022/06/15 (1.88) - renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS for correctness. kept support for old define (will obsolete). + - 2022/05/03 (1.88) - backends: osx: removed ImGui_ImplOSX_HandleEvent() from backend API in favor of backend automatically handling event capture. All ImGui_ImplOSX_HandleEvent() calls should be removed as they are now unnecessary. + - 2022/04/05 (1.88) - inputs: renamed ImGuiKeyModFlags to ImGuiModFlags. Kept inline redirection enums (will obsolete). This was never used in public API functions but technically present in imgui.h and ImGuiIO. + - 2022/01/20 (1.87) - inputs: reworded gamepad IO. + - Backend writing to io.NavInputs[] -> backend should call io.AddKeyEvent()/io.AddKeyAnalogEvent() with ImGuiKey_GamepadXXX values. + - 2022/01/19 (1.87) - sliders, drags: removed support for legacy arithmetic operators (+,+-,*,/) when inputing text. This doesn't break any api/code but a feature that used to be accessible by end-users (which seemingly no one used). + - 2022/01/17 (1.87) - inputs: reworked mouse IO. + - Backend writing to io.MousePos -> backend should call io.AddMousePosEvent() + - Backend writing to io.MouseDown[] -> backend should call io.AddMouseButtonEvent() + - Backend writing to io.MouseWheel -> backend should call io.AddMouseWheelEvent() + - Backend writing to io.MouseHoveredViewport -> backend should call io.AddMouseViewportEvent() [Docking branch w/ multi-viewports only] + note: for all calls to IO new functions, the Dear ImGui context should be bound/current. + read https://github.com/ocornut/imgui/issues/4921 for details. + - 2022/01/10 (1.87) - inputs: reworked keyboard IO. Removed io.KeyMap[], io.KeysDown[] in favor of calling io.AddKeyEvent(). Removed GetKeyIndex(), now unecessary. All IsKeyXXX() functions now take ImGuiKey values. All features are still functional until IMGUI_DISABLE_OBSOLETE_KEYIO is defined. Read Changelog and Release Notes for details. + - IsKeyPressed(MY_NATIVE_KEY_XXX) -> use IsKeyPressed(ImGuiKey_XXX) + - IsKeyPressed(GetKeyIndex(ImGuiKey_XXX)) -> use IsKeyPressed(ImGuiKey_XXX) + - Backend writing to io.KeyMap[],io.KeysDown[] -> backend should call io.AddKeyEvent() (+ call io.SetKeyEventNativeData() if you want legacy user code to stil function with legacy key codes). + - Backend writing to io.KeyCtrl, io.KeyShift.. -> backend should call io.AddKeyEvent() with ImGuiMod_XXX values. *IF YOU PULLED CODE BETWEEN 2021/01/10 and 2021/01/27: We used to have a io.AddKeyModsEvent() function which was now replaced by io.AddKeyEvent() with ImGuiMod_XXX values.* + - one case won't work with backward compatibility: if your custom backend used ImGuiKey as mock native indices (e.g. "io.KeyMap[ImGuiKey_A] = ImGuiKey_A") because those values are now larger than the legacy KeyDown[] array. Will assert. + - inputs: added ImGuiKey_ModCtrl/ImGuiKey_ModShift/ImGuiKey_ModAlt/ImGuiKey_ModSuper values to submit keyboard modifiers using io.AddKeyEvent(), instead of writing directly to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper. + - 2022/01/05 (1.87) - inputs: renamed ImGuiKey_KeyPadEnter to ImGuiKey_KeypadEnter to align with new symbols. Kept redirection enum. + - 2022/01/05 (1.87) - removed io.ImeSetInputScreenPosFn() in favor of more flexible io.SetPlatformImeDataFn(). Removed 'void* io.ImeWindowHandle' in favor of writing to 'void* ImGuiViewport::PlatformHandleRaw'. + - 2022/01/01 (1.87) - commented out redirecting functions/enums names that were marked obsolete in 1.69, 1.70, 1.71, 1.72 (March-July 2019) + - ImGui::SetNextTreeNodeOpen() -> use ImGui::SetNextItemOpen() + - ImGui::GetContentRegionAvailWidth() -> use ImGui::GetContentRegionAvail().x + - ImGui::TreeAdvanceToLabelPos() -> use ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetTreeNodeToLabelSpacing()); + - ImFontAtlas::CustomRect -> use ImFontAtlasCustomRect + - ImGuiColorEditFlags_RGB/HSV/HEX -> use ImGuiColorEditFlags_DisplayRGB/HSV/Hex + - 2021/12/20 (1.86) - backends: removed obsolete Marmalade backend (imgui_impl_marmalade.cpp) + example. Find last supported version at https://github.com/ocornut/imgui/wiki/Bindings + - 2021/11/04 (1.86) - removed CalcListClipping() function. Prefer using ImGuiListClipper which can return non-contiguous ranges. Please open an issue if you think you really need this function. + - 2021/08/23 (1.85) - removed GetWindowContentRegionWidth() function. keep inline redirection helper. can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x' instead for generally 'GetContentRegionAvail().x' is more useful. + - 2021/07/26 (1.84) - commented out redirecting functions/enums names that were marked obsolete in 1.67 and 1.69 (March 2019): + - ImGui::GetOverlayDrawList() -> use ImGui::GetForegroundDrawList() + - ImFont::GlyphRangesBuilder -> use ImFontGlyphRangesBuilder + - 2021/05/19 (1.83) - backends: obsoleted direct access to ImDrawCmd::TextureId in favor of calling ImDrawCmd::GetTexID(). + - if you are using official backends from the source tree: you have nothing to do. + - if you have copied old backend code or using your own: change access to draw_cmd->TextureId to draw_cmd->GetTexID(). + - 2021/03/12 (1.82) - upgraded ImDrawList::AddRect(), AddRectFilled(), PathRect() to use ImDrawFlags instead of ImDrawCornersFlags. + - ImDrawCornerFlags_TopLeft -> use ImDrawFlags_RoundCornersTopLeft + - ImDrawCornerFlags_BotRight -> use ImDrawFlags_RoundCornersBottomRight + - ImDrawCornerFlags_None -> use ImDrawFlags_RoundCornersNone etc. + flags now sanely defaults to 0 instead of 0x0F, consistent with all other flags in the API. + breaking: the default with rounding > 0.0f is now "round all corners" vs old implicit "round no corners": + - rounding == 0.0f + flags == 0 --> meant no rounding --> unchanged (common use) + - rounding > 0.0f + flags != 0 --> meant rounding --> unchanged (common use) + - rounding == 0.0f + flags != 0 --> meant no rounding --> unchanged (unlikely use) + - rounding > 0.0f + flags == 0 --> meant no rounding --> BREAKING (unlikely use): will now round all corners --> use ImDrawFlags_RoundCornersNone or rounding == 0.0f. + this ONLY matters for hard coded use of 0 + rounding > 0.0f. Use of named ImDrawFlags_RoundCornersNone (new) or ImDrawCornerFlags_None (old) are ok. + the old ImDrawCornersFlags used awkward default values of ~0 or 0xF (4 lower bits set) to signify "round all corners" and we sometimes encouraged using them as shortcuts. + legacy path still support use of hard coded ~0 or any value from 0x1 or 0xF. They will behave the same with legacy paths enabled (will assert otherwise). + - 2021/03/11 (1.82) - removed redirecting functions/enums names that were marked obsolete in 1.66 (September 2018): + - ImGui::SetScrollHere() -> use ImGui::SetScrollHereY() + - 2021/03/11 (1.82) - clarified that ImDrawList::PathArcTo(), ImDrawList::PathArcToFast() won't render with radius < 0.0f. Previously it sorts of accidentally worked but would generally lead to counter-clockwise paths and have an effect on anti-aliasing. + - 2021/03/10 (1.82) - upgraded ImDrawList::AddPolyline() and PathStroke() "bool closed" parameter to "ImDrawFlags flags". The matching ImDrawFlags_Closed value is guaranteed to always stay == 1 in the future. + - 2021/02/22 (1.82) - (*undone in 1.84*) win32+mingw: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. + - 2021/02/17 (1.82) - renamed rarely used style.CircleSegmentMaxError (old default = 1.60f) to style.CircleTessellationMaxError (new default = 0.30f) as the meaning of the value changed. + - 2021/02/03 (1.81) - renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox(). Kept inline redirection function (will obsolete). + - removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. Kept inline redirection function (will obsolete). + - renamed ListBoxFooter() to EndListBox(). Kept inline redirection function (will obsolete). + - 2021/01/26 (1.81) - removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function. Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too. The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags. + - renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags. + - renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.63 (August 2018): + - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit(). + - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg + - ImGuiInputTextCallback -> use ImGuiTextEditCallback + - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData + - 2020/12/21 (1.80) - renamed ImDrawList::AddBezierCurve() to AddBezierCubic(), and PathBezierCurveTo() to PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete). + - 2020/12/04 (1.80) - added imgui_tables.cpp file! Manually constructed project files will need the new file added! + - 2020/11/18 (1.80) - renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* in prevision of incoming Tables API. + - 2020/11/03 (1.80) - renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature will apply to other data structures + - 2020/10/14 (1.80) - backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. + - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.60 (April 2018): + - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend + - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) + - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT + - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT + - removed redirecting functions names that were marked obsolete in 1.61 (May 2018): + - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X is your value for decimal_precision. + - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter. + - 2020/10/05 (1.79) - removed ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using the ImGuiListClipper::Begin() function, with misleading edge cases (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). + - 2020/09/25 (1.79) - renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete sooner because previous name was added recently). + - 2020/09/25 (1.79) - renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. + - 2020/09/21 (1.79) - renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting the change from 1.77. For varieties of reason this is more self-explanatory. + - 2020/09/21 (1.79) - removed return value from OpenPopupOnItemClick() - returned true on mouse release on an item - because it is inconsistent with other popup APIs and makes others misleading. It's also and unnecessary: you can use IsWindowAppearing() after BeginPopup() for a similar result. + - 2020/09/17 (1.79) - removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. If you scaled this value after calling AddFontDefault(), this is now done automatically. It was also getting in the way of better font scaling, so let's get rid of it now! + - 2020/08/17 (1.78) - obsoleted use of the trailing 'float power=1.0f' parameter for DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN(), VSliderFloat() and VSliderScalar(). + replaced the 'float power=1.0f' argument with integer-based flags defaulting to 0 (as with all our flags). + worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. in short, when calling those functions: + - if you omitted the 'power' parameter (likely!), you are not affected. + - if you set the 'power' parameter to 1.0f (same as previous default value): 1/ your compiler may warn on float>int conversion, 2/ everything else will work. 3/ you can replace the 1.0f value with 0 to fix the warning, and be technically correct. + - if you set the 'power' parameter to >1.0f (to enable non-linear editing): 1/ your compiler may warn on float>int conversion, 2/ code will assert at runtime, 3/ in case asserts are disabled, the code will not crash and enable the _Logarithmic flag. 4/ you can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert and get a _similar_ effect as previous uses of power >1.0f. + see https://github.com/ocornut/imgui/issues/3361 for all details. + kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). For those three the 'float power=1.0f' version was removed directly as they were most unlikely ever used. + for shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. + - obsoleted use of v_min > v_max in DragInt, DragFloat, DragScalar to lock edits (introduced in 1.73, was not demoed nor documented very), will be replaced by a more generic ReadOnly feature. You may use the ImGuiSliderFlags_ReadOnly internal flag in the meantime. + - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. + - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). [NOTE: THIS WAS REVERTED IN 1.79] + - 2020/06/15 (1.77) - removed CalcItemRectClosestPoint() entry point which was made obsolete and asserting in December 2017. + - 2020/04/23 (1.77) - removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular(). + - 2020/01/22 (1.75) - ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius any more. + - 2019/12/17 (1.75) - [undid this change in 1.76] made Columns() limited to 64 columns by asserting above that limit. While the current code technically supports it, future code may not so we're putting the restriction ahead. + - 2019/12/13 (1.75) - [imgui_internal.h] changed ImRect() default constructor initializes all fields to 0.0f instead of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by adding multiple points into it, you may need to fix your initial value. + - 2019/12/08 (1.75) - removed redirecting functions/enums that were marked obsolete in 1.53 (December 2017): + - ShowTestWindow() -> use ShowDemoWindow() + - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) + - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) + - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) + - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() + - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg + - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding + - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap + - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS + - 2019/12/08 (1.75) - obsoleted calling ImDrawList::PrimReserve() with a negative count (which was vaguely documented and rarely if ever used). Instead, we added an explicit PrimUnreserve() API. + - 2019/12/06 (1.75) - removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions (none of the other functions have it). + - 2019/11/21 (1.74) - ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS for consistency. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS for consistency. + - 2019/10/22 (1.74) - removed redirecting functions/enums that were marked obsolete in 1.52 (October 2017): + - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed + - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) + - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() + - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) + - ImFont::Glyph -> use ImFontGlyph + - 2019/10/14 (1.74) - inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. + if you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix. + The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). + If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. + - 2019/07/15 (1.72) - removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). Kept redirection function (will obsolete). + - 2019/07/12 (1.72) - renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). + - 2019/06/14 (1.72) - removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): ImGuiCol_Column*, ImGuiSetCond_*, IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow(), IMGUI_ONCE_UPON_A_FRAME. Grep this log for details and new names, or see how they were implemented until 1.71. + - 2019/06/07 (1.71) - rendering of child window outer decorations (bg color, border, scrollbars) is now performed as part of the parent window. If you have + overlapping child windows in a same parent, and relied on their relative z-order to be mapped to their submission order, this will affect your rendering. + This optimization is disabled if the parent window has no visual output, because it appears to be the most common situation leading to the creation of overlapping child windows. + Please reach out if you are affected. + - 2019/05/13 (1.71) - renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). + - 2019/05/11 (1.71) - changed io.AddInputCharacter(unsigned short c) signature to io.AddInputCharacter(unsigned int c). + - 2019/04/29 (1.70) - improved ImDrawList thick strokes (>1.0f) preserving correct thickness up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, they will appear thicker now. + - 2019/04/29 (1.70) - removed GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. Kept inline redirection function (will obsolete). + - 2019/03/04 (1.69) - renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). + - 2019/02/26 (1.69) - renamed ImGuiColorEditFlags_RGB/ImGuiColorEditFlags_HSV/ImGuiColorEditFlags_HEX to ImGuiColorEditFlags_DisplayRGB/ImGuiColorEditFlags_DisplayHSV/ImGuiColorEditFlags_DisplayHex. Kept redirection enums (will obsolete). + - 2019/02/14 (1.68) - made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). If for some reason your time step calculation gives you a zero value, replace it with an arbitrarily small value! + - 2019/02/01 (1.68) - removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). + - 2019/01/06 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! + - 2019/01/06 (1.67) - renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). + - 2018/12/20 (1.67) - made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable side-effects. + - 2018/12/10 (1.67) - renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges as we are doing a large pass on configuration flags. + - 2018/10/12 (1.66) - renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. + - 2018/09/28 (1.66) - renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). + - 2018/09/06 (1.65) - renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. + If you were conveniently using the imgui copy of those STB headers in your project you will have to update your include paths. + - 2018/09/05 (1.65) - renamed io.OptCursorBlink/io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) + - 2018/08/31 (1.64) - added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. Re-ordered some of the code remaining in imgui.cpp. + NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTION HAS BEEN MOVED. + Because of this, any local modifications to imgui.cpp will likely conflict when you update. Read docs/CHANGELOG.txt for suggestions. + - 2018/08/22 (1.63) - renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). + - 2018/08/21 (1.63) - renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData for consistency. Kept redirection types (will obsolete). + - 2018/08/21 (1.63) - removed ImGuiInputTextCallbackData::ReadOnly since it is a duplication of (ImGuiInputTextCallbackData::Flags & ImGuiInputTextFlags_ReadOnly). + - 2018/08/01 (1.63) - removed per-window ImGuiWindowFlags_ResizeFromAnySide beta flag in favor of a global io.ConfigResizeWindowsFromEdges [update 1.67 renamed to ConfigWindowsResizeFromEdges] to enable the feature. + - 2018/08/01 (1.63) - renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. + - 2018/07/22 (1.63) - changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. + - 2018/07/08 (1.63) - style: renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. Kept redirection enum (will obsolete). + - 2018/06/08 (1.62) - examples: the imgui_impl_XXX files have been split to separate platform (Win32, GLFW, SDL2, etc.) from renderer (DX11, OpenGL, Vulkan, etc.). + old backends will still work as is, however prefer using the separated backends as they will be updated to support multi-viewports. + when adopting new backends follow the main.cpp code of your preferred examples/ folder to know which functions to call. + in particular, note that old backends called ImGui::NewFrame() at the end of their ImGui_ImplXXXX_NewFrame() function. + - 2018/06/06 (1.62) - renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish other variants and discourage using the full set. + - 2018/06/06 (1.62) - TreeNodeEx()/TreeNodeBehavior(): the ImGuiTreeNodeFlags_CollapsingHeader helper now include the ImGuiTreeNodeFlags_NoTreePushOnOpen flag. See Changelog for details. + - 2018/05/03 (1.61) - DragInt(): the default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally any more. + If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. + To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, giving time to users to upgrade their code. + If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your codebase for e.g. "DragInt.*%f" to help you find them. + - 2018/04/28 (1.61) - obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more flexible "const char* format", + consistent with other functions. Kept redirection functions (will obsolete). + - 2018/04/09 (1.61) - IM_DELETE() helper function added in 1.60 doesn't clear the input _pointer_ reference, more consistent with expectation and allows passing r-value. + - 2018/03/20 (1.60) - renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, _not_ used by core and only honored by some backend ahead of merging the Nav branch). + - 2018/03/12 (1.60) - removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered as the closing cross uses regular button colors now. + - 2018/03/08 (1.60) - changed ImFont::DisplayOffset.y to default to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. If you were adding or subtracting to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. + - 2018/03/03 (1.60) - renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. + - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. + - 2018/02/16 (1.60) - obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). Use ImGui::GetDrawData() to retrieve the ImDrawData* to display. + - 2018/02/07 (1.60) - reorganized context handling to be more explicit, + - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. + - removed Shutdown() function, as DestroyContext() serve this purpose. + - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. + - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. + - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. + - 2018/01/31 (1.60) - moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. + - 2018/01/11 (1.60) - obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/11 (1.60) - obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/03 (1.60) - renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. + - 2017/12/29 (1.60) - removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it it's easy to replicate on your side. + - 2017/12/24 (1.53) - renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete). + - 2017/12/21 (1.53) - ImDrawList: renamed style.AntiAliasedShapes to style.AntiAliasedFill for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags + - 2017/12/21 (1.53) - ImDrawList: removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. + - 2017/12/14 (1.53) - using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. + - 2017/12/13 (1.53) - renamed GetItemsLineHeightWithSpacing() to GetFrameHeightWithSpacing(). Kept redirection function (will obsolete). + - 2017/12/13 (1.53) - obsoleted IsRootWindowFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootWindow). Kept redirection function (will obsolete). + - obsoleted IsRootWindowOrAnyChildFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows). Kept redirection function (will obsolete). + - 2017/12/12 (1.53) - renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. Kept redirection enum (will obsolete). + - 2017/12/10 (1.53) - removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete). + - 2017/11/27 (1.53) - renamed ImGuiTextBuffer::append() helper to appendf(), appendv() to appendfv(). If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. + - 2017/11/18 (1.53) - Style, Begin: removed ImGuiWindowFlags_ShowBorders window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. style.FrameBorderSize, style.WindowBorderSize). Use ImGui::ShowStyleEditor() to look them up. + Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. It is recommended you use the StyleColorsClassic(), StyleColorsDark(), StyleColorsLight() functions. + - 2017/11/18 (1.53) - Style: removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. + - 2017/11/18 (1.53) - Style: renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. + - 2017/11/18 (1.53) - Style: renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. + - 2017/11/02 (1.53) - obsoleted IsRootWindowOrAnyChildHovered() in favor of using IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); + - 2017/10/24 (1.52) - renamed IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS to IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS for consistency. + - 2017/10/20 (1.52) - changed IsWindowHovered() default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. + - 2017/10/20 (1.52) - marked IsItemHoveredRect()/IsMouseHoveringWindow() as obsolete, in favor of using the newly introduced flags for IsItemHovered() and IsWindowHovered(). See https://github.com/ocornut/imgui/issues/1382 for details. + removed the IsItemRectHovered()/IsWindowRectHovered() names introduced in 1.51 since they were merely more consistent names for the two functions we are now obsoleting. + IsItemHoveredRect() --> IsItemHovered(ImGuiHoveredFlags_RectOnly) + IsMouseHoveringAnyWindow() --> IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + IsMouseHoveringWindow() --> IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) [weird, old behavior] + - 2017/10/17 (1.52) - marked the old 5-parameters version of Begin() as obsolete (still available). Use SetNextWindowSize()+Begin() instead! + - 2017/10/11 (1.52) - renamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete). + - 2017/09/26 (1.52) - renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). + - 2017/09/25 (1.52) - removed SetNextWindowPosCenter() because SetNextWindowPos() now has the optional pivot information to do the same and more. Kept redirection function (will obsolete). + - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we now accept negative mouse coordinates. In your backend if you need to support unavailable mouse, make sure to replace "io.MousePos = ImVec2(-1,-1)" with "io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX)". + - 2017/08/22 (1.51) - renamed IsItemHoveredRect() to IsItemRectHovered(). Kept inline redirection function (will obsolete). -> (1.52) use IsItemHovered(ImGuiHoveredFlags_RectOnly)! + - renamed IsMouseHoveringAnyWindow() to IsAnyWindowHovered() for consistency. Kept inline redirection function (will obsolete). + - renamed IsMouseHoveringWindow() to IsWindowRectHovered() for consistency. Kept inline redirection function (will obsolete). + - 2017/08/20 (1.51) - renamed GetStyleColName() to GetStyleColorName() for consistency. + - 2017/08/20 (1.51) - added PushStyleColor(ImGuiCol idx, ImU32 col) overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicily to fix. + - 2017/08/15 (1.51) - marked the weird IMGUI_ONCE_UPON_A_FRAME helper macro as obsolete. prefer using the more explicit ImGuiOnceUponAFrame type. + - 2017/08/15 (1.51) - changed parameter order for BeginPopupContextWindow() from (const char*,int buttons,bool also_over_items) to (const char*,int buttons,bool also_over_items). Note that most calls relied on default parameters completely. + - 2017/08/13 (1.51) - renamed ImGuiCol_Column to ImGuiCol_Separator, ImGuiCol_ColumnHovered to ImGuiCol_SeparatorHovered, ImGuiCol_ColumnActive to ImGuiCol_SeparatorActive. Kept redirection enums (will obsolete). + - 2017/08/11 (1.51) - renamed ImGuiSetCond_Always to ImGuiCond_Always, ImGuiSetCond_Once to ImGuiCond_Once, ImGuiSetCond_FirstUseEver to ImGuiCond_FirstUseEver, ImGuiSetCond_Appearing to ImGuiCond_Appearing. Kept redirection enums (will obsolete). + - 2017/08/09 (1.51) - removed ValueColor() helpers, they are equivalent to calling Text(label) + SameLine() + ColorButton(). + - 2017/08/08 (1.51) - removed ColorEditMode() and ImGuiColorEditMode in favor of ImGuiColorEditFlags and parameters to the various Color*() functions. The SetColorEditOptions() allows to initialize default but the user can still change them with right-click context menu. + - changed prototype of 'ColorEdit4(const char* label, float col[4], bool show_alpha = true)' to 'ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)', where passing flags = 0x01 is a safe no-op (hello dodgy backward compatibility!). - check and run the demo window, under "Color/Picker Widgets", to understand the various new options. + - changed prototype of rarely used 'ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)' to 'ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0))' + - 2017/07/20 (1.51) - removed IsPosHoveringAnyWindow(ImVec2), which was partly broken and misleading. ASSERT + redirect user to io.WantCaptureMouse + - 2017/05/26 (1.50) - removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. + - 2017/05/01 (1.50) - renamed ImDrawList::PathFill() (rarely used directly) to ImDrawList::PathFillConvex() for clarity. + - 2016/11/06 (1.50) - BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetID() and use it instead of passing string to BeginChild(). + - 2016/10/15 (1.50) - avoid 'void* user_data' parameter to io.SetClipboardTextFn/io.GetClipboardTextFn pointers. We pass io.ClipboardUserData to it. + - 2016/09/25 (1.50) - style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. + - 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully, breakage should be minimal. + - 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore. + If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need to tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. + This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color: + ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); } + If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color. + - 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext(). + - 2016/05/02 (1.49) - renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(), no redirection. + - 2016/05/01 (1.49) - obsoleted old signature of CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false) as extra parameters were badly designed and rarely used. You can replace the "default_open = true" flag in new API with CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen). + - 2016/04/26 (1.49) - changed ImDrawList::PushClipRect(ImVec4 rect) to ImDrawList::PushClipRect(Imvec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false). Note that higher-level ImGui::PushClipRect() is preferable because it will clip at logic/widget level, whereas ImDrawList::PushClipRect() only affect your renderer. + - 2016/04/03 (1.48) - removed style.WindowFillAlphaDefault setting which was redundant. Bake default BG alpha inside style.Colors[ImGuiCol_WindowBg] and all other Bg color values. (ref GitHub issue #337). + - 2016/04/03 (1.48) - renamed ImGuiCol_TooltipBg to ImGuiCol_PopupBg, used by popups/menus and tooltips. popups/menus were previously using ImGuiCol_WindowBg. (ref github issue #337) + - 2016/03/21 (1.48) - renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). + - 2016/03/02 (1.48) - InputText() completion/history/always callbacks: if you modify the text buffer manually (without using DeleteChars()/InsertChars() helper) you need to maintain the BufTextLen field. added an assert. + - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you. + - 2015/12/27 (1.48) - fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. + - 2015/12/04 (1.47) - renamed Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. + - 2015/08/29 (1.45) - with the addition of horizontal scrollbar we made various fixes to inconsistencies with dealing with cursor position. + GetCursorPos()/SetCursorPos() functions now include the scrolled amount. It shouldn't affect the majority of users, but take note that SetCursorPosX(100.0f) puts you at +100 from the starting x position which may include scrolling, not at +100 from the window left side. + GetContentRegionMax()/GetWindowContentRegionMin()/GetWindowContentRegionMax() functions allow include the scrolled amount. Typically those were used in cases where no scrolling would happen so it may not be a problem, but watch out! + - 2015/08/29 (1.45) - renamed style.ScrollbarWidth to style.ScrollbarSize + - 2015/08/05 (1.44) - split imgui.cpp into extra files: imgui_demo.cpp imgui_draw.cpp imgui_internal.h that you need to add to your project. + - 2015/07/18 (1.44) - fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (introduced in 1.43) being off by an extra PI for no justifiable reason + - 2015/07/14 (1.43) - add new ImFontAtlas::AddFont() API. For the old AddFont***, moved the 'font_no' parameter of ImFontAtlas::AddFont** functions to the ImFontConfig structure. + you need to render your textured triangles with bilinear filtering to benefit from sub-pixel positioning of text. + - 2015/07/08 (1.43) - switched rendering data to use indexed rendering. this is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. + this necessary change will break your rendering function! the fix should be very easy. sorry for that :( + - if you are using a vanilla copy of one of the imgui_impl_XXX.cpp provided in the example, you just need to update your copy and you can ignore the rest. + - the signature of the io.RenderDrawListsFn handler has changed! + old: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) + new: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data). + parameters: 'cmd_lists' becomes 'draw_data->CmdLists', 'cmd_lists_count' becomes 'draw_data->CmdListsCount' + ImDrawList: 'commands' becomes 'CmdBuffer', 'vtx_buffer' becomes 'VtxBuffer', 'IdxBuffer' is new. + ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. + - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer. + - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! + - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade! + - 2015/07/10 (1.43) - changed SameLine() parameters from int to float. + - 2015/07/02 (1.42) - renamed SetScrollPosHere() to SetScrollFromCursorPos(). Kept inline redirection function (will obsolete). + - 2015/07/02 (1.42) - renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion along with other scrolling functions, because positions (e.g. cursor position) are not equivalent to scrolling amount. + - 2015/06/14 (1.41) - changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent) - makes a difference when texture have transparence + - 2015/06/14 (1.41) - changed Selectable() API from (label, selected, size) to (label, selected, flags, size). Size override should have been rarely used. Sorry! + - 2015/05/31 (1.40) - renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline redirection function (will obsolete). + - 2015/05/31 (1.40) - renamed IsRectClipped() to IsRectVisible() for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete). + - 2015/05/27 (1.40) - removed the third 'repeat_if_held' parameter from Button() - sorry! it was rarely used and inconsistent. Use PushButtonRepeat(true) / PopButtonRepeat() to enable repeat on desired buttons. + - 2015/05/11 (1.40) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "open" state of a popup. BeginPopup() returns true if the popup is opened. + - 2015/05/03 (1.40) - removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). + - 2015/04/13 (1.38) - renamed IsClipped() to IsRectClipped(). Kept inline redirection function until 1.50. + - 2015/04/09 (1.38) - renamed ImDrawList::AddArc() to ImDrawList::AddArcFast() for compatibility with future API + - 2015/04/03 (1.38) - removed ImGuiCol_CheckHovered, ImGuiCol_CheckActive, replaced with the more general ImGuiCol_FrameBgHovered, ImGuiCol_FrameBgActive. + - 2014/04/03 (1.38) - removed support for passing -FLT_MAX..+FLT_MAX as the range for a SliderFloat(). Use DragFloat() or Inputfloat() instead. + - 2015/03/17 (1.36) - renamed GetItemBoxMin()/GetItemBoxMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function until 1.50. + - 2015/03/15 (1.36) - renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing + - 2015/03/13 (1.36) - renamed GetWindowIsFocused() to IsWindowFocused(). Kept inline redirection function until 1.50. + - 2015/03/08 (1.35) - renamed style.ScrollBarWidth to style.ScrollbarWidth (casing) + - 2015/02/27 (1.34) - renamed OpenNextNode(bool) to SetNextTreeNodeOpened(bool, ImGuiSetCond). Kept inline redirection function until 1.50. + - 2015/02/27 (1.34) - renamed ImGuiSetCondition_*** to ImGuiSetCond_***, and _FirstUseThisSession becomes _Once. + - 2015/02/11 (1.32) - changed text input callback ImGuiTextEditCallback return type from void-->int. reserved for future use, return 0 for now. + - 2015/02/10 (1.32) - renamed GetItemWidth() to CalcItemWidth() to clarify its evolving behavior + - 2015/02/08 (1.31) - renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing() + - 2015/02/01 (1.31) - removed IO.MemReallocFn (unused) + - 2015/01/19 (1.30) - renamed ImGuiStorage::GetIntPtr()/GetFloatPtr() to GetIntRef()/GetIntRef() because Ptr was conflicting with actual pointer storage functions. + - 2015/01/11 (1.30) - big font/image API change! now loads TTF file. allow for multiple fonts. no need for a PNG loader. + - 2015/01/11 (1.30) - removed GetDefaultFontData(). uses io.Fonts->GetTextureData*() API to retrieve uncompressed pixels. + - old: const void* png_data; unsigned int png_size; ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size); [..Upload texture to GPU..]; + - new: unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); [..Upload texture to GPU..]; io.Fonts->SetTexID(YourTexIdentifier); + you now have more flexibility to load multiple TTF fonts and manage the texture buffer for internal needs. It is now recommended that you sample the font texture with bilinear interpolation. + - 2015/01/11 (1.30) - added texture identifier in ImDrawCmd passed to your render function (we can now render images). make sure to call io.Fonts->SetTexID() + - 2015/01/11 (1.30) - removed IO.PixelCenterOffset (unnecessary, can be handled in user projection matrix) + - 2015/01/11 (1.30) - removed ImGui::IsItemFocused() in favor of ImGui::IsItemActive() which handles all widgets + - 2014/12/10 (1.18) - removed SetNewWindowDefaultPos() in favor of new generic API SetNextWindowPos(pos, ImGuiSetCondition_FirstUseEver) + - 2014/11/28 (1.17) - moved IO.Font*** options to inside the IO.Font-> structure (FontYOffset, FontTexUvForWhite, FontBaseScale, FontFallbackGlyph) + - 2014/11/26 (1.17) - reworked syntax of IMGUI_ONCE_UPON_A_FRAME helper macro to increase compiler compatibility + - 2014/11/07 (1.15) - renamed IsHovered() to IsItemHovered() + - 2014/10/02 (1.14) - renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL and imgui_user.cpp to imgui_user.inl (more IDE friendly) + - 2014/09/25 (1.13) - removed 'text_end' parameter from IO.SetClipboardTextFn (the string is now always zero-terminated for simplicity) + - 2014/09/24 (1.12) - renamed SetFontScale() to SetWindowFontScale() + - 2014/09/24 (1.12) - moved IM_MALLOC/IM_REALLOC/IM_FREE preprocessor defines to IO.MemAllocFn/IO.MemReallocFn/IO.MemFreeFn + - 2014/08/30 (1.09) - removed IO.FontHeight (now computed automatically) + - 2014/08/30 (1.09) - moved IMGUI_FONT_TEX_UV_FOR_WHITE preprocessor define to IO.FontTexUvForWhite + - 2014/08/28 (1.09) - changed the behavior of IO.PixelCenterOffset following various rendering fixes + + + FREQUENTLY ASKED QUESTIONS (FAQ) + ================================ + + Read all answers online: + https://www.dearimgui.com/faq or https://github.com/ocornut/imgui/blob/master/docs/FAQ.md (same url) + Read all answers locally (with a text editor or ideally a Markdown viewer): + docs/FAQ.md + Some answers are copied down here to facilitate searching in code. + + Q&A: Basics + =========== + + Q: Where is the documentation? + A: This library is poorly documented at the moment and expects the user to be acquainted with C/C++. + - Run the examples/ applications and explore them. + - Read Getting Started (https://github.com/ocornut/imgui/wiki/Getting-Started) guide. + - See demo code in imgui_demo.cpp and particularly the ImGui::ShowDemoWindow() function. + - The demo covers most features of Dear ImGui, so you can read the code and see its output. + - See documentation and comments at the top of imgui.cpp + effectively imgui.h. + - 20+ standalone example applications using e.g. OpenGL/DirectX are provided in the + examples/ folder to explain how to integrate Dear ImGui with your own engine/application. + - The Wiki (https://github.com/ocornut/imgui/wiki) has many resources and links. + - The Glossary (https://github.com/ocornut/imgui/wiki/Glossary) page also may be useful. + - Your programming IDE is your friend, find the type or function declaration to find comments + associated with it. + + Q: What is this library called? + Q: Which version should I get? + >> This library is called "Dear ImGui", please don't call it "ImGui" :) + >> See https://www.dearimgui.com/faq for details. + + Q&A: Integration + ================ + + Q: How to get started? + A: Read https://github.com/ocornut/imgui/wiki/Getting-Started. Read 'PROGRAMMER GUIDE' above. Read examples/README.txt. + + Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application? + A: You should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + >> See https://www.dearimgui.com/faq for a fully detailed answer. You really want to read this. + + Q. How can I enable keyboard or gamepad controls? + Q: How can I use this on a machine without mouse, keyboard or screen? (input share, remote display) + Q: I integrated Dear ImGui in my engine and little squares are showing instead of text... + Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around... + Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries... + >> See https://www.dearimgui.com/faq + + Q&A: Usage + ---------- + + Q: About the ID Stack system.. + - Why is my widget not reacting when I click on it? + - How can I have widgets with an empty label? + - How can I have multiple widgets with the same label? + - How can I have multiple windows with the same label? + Q: How can I display an image? What is ImTextureID, how does it work? + Q: How can I use my own math types instead of ImVec2? + Q: How can I interact with standard C++ types (such as std::string and std::vector)? + Q: How can I display custom shapes? (using low-level ImDrawList API) + >> See https://www.dearimgui.com/faq + + Q&A: Fonts, Text + ================ + + Q: How should I handle DPI in my application? + Q: How can I load a different font than the default? + Q: How can I easily use icons in my application? + Q: How can I load multiple fonts? + Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? + >> See https://www.dearimgui.com/faq and https://github.com/ocornut/imgui/edit/master/docs/FONTS.md + + Q&A: Concerns + ============= + + Q: Who uses Dear ImGui? + Q: Can you create elaborate/serious tools with Dear ImGui? + Q: Can you reskin the look of Dear ImGui? + Q: Why using C++ (as opposed to C)? + >> See https://www.dearimgui.com/faq + + Q&A: Community + ============== + + Q: How can I help? + A: - Businesses: please reach out to "omar AT dearimgui DOT com" if you work in a place using Dear ImGui! + We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts. + This is among the most useful thing you can do for Dear ImGui. With increased funding, we sustain and grow work on this project. + Also see https://github.com/ocornut/imgui/wiki/Sponsors + - Businesses: you can also purchase licenses for the Dear ImGui Automation/Test Engine. + - If you are experienced with Dear ImGui and C++, look at the GitHub issues, look at the Wiki, and see how you want to help and can help! + - Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere etc. + You may post screenshot or links in the gallery threads. Visuals are ideal as they inspire other programmers. + But even without visuals, disclosing your use of dear imgui helps the library grow credibility, and help other teams and programmers with taking decisions. + - If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues (on GitHub or privately). + +*/ + +//------------------------------------------------------------------------- +// [SECTION] INCLUDES +//------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" + +// System includes +#include // vsnprintf, sscanf, printf +#include // intptr_t + +// [Windows] On non-Visual Studio compilers, we default to IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS unless explicitly enabled +#if defined(_WIN32) && !defined(_MSC_VER) && !defined(IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif + +// [Windows] OS specific includes (optional) +#if defined(_WIN32) && defined(IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_FUNCTIONS +#endif +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX +#define NOMINMAX +#endif +#ifndef __MINGW32__ +#include // _wfopen, OpenClipboard +#else +#include +#endif +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have all Win32 functions +#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif +#endif + +// [Apple] OS specific includes +#if defined(__APPLE__) +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to an 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wformat-pedantic" // warning: format specifies type 'void *' but the argument has type 'xxxx *' // unreasonable, would lead to casting every %p arg to void*. probably enabled by -pedantic. +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type 'int' +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +// We disable -Wpragmas because GCC doesn't provide a has_warning equivalent and some forks/patches may not follow the warning/version association. +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*' +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wstrict-overflow" // warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Debug options +#define IMGUI_DEBUG_NAV_SCORING 0 // Display navigation scoring preview when hovering items. Display last moving direction matches when holding CTRL +#define IMGUI_DEBUG_NAV_RECTS 0 // Display the reference navigation rectangle for each window + +// When using CTRL+TAB (or Gamepad Square+L/R) we delay the visual a little in order to reduce visual noise doing a fast switch. +static const float NAV_WINDOWING_HIGHLIGHT_DELAY = 0.20f; // Time before the highlight and screen dimming starts fading in +static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time before the window list starts to appear + +// Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by backend) +static const float WINDOWS_HOVER_PADDING = 4.0f; // Extend outside window for hovering/resizing (maxxed with TouchPadding) and inside windows for borders. Affect FindHoveredWindow(). +static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. +static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 0.70f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. + +// Tooltip offset +static const ImVec2 TOOLTIP_DEFAULT_OFFSET = ImVec2(16, 10); // Multiplied by g.Style.MouseCursorScale + +// Docking +static const float DOCKING_TRANSPARENT_PAYLOAD_ALPHA = 0.50f; // For use with io.ConfigDockingTransparentPayload. Apply to Viewport _or_ WindowBg in host viewport. + +//------------------------------------------------------------------------- +// [SECTION] FORWARD DECLARATIONS +//------------------------------------------------------------------------- + +static void SetCurrentWindow(ImGuiWindow* window); +static void FindHoveredWindow(); +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags); +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window); + +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window); + +// Settings +static void WindowSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); +static void WindowSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); +static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer* buf); + +// Platform Dependents default implementation for IO functions +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx); +static void SetClipboardTextFn_DefaultImpl(void* user_data_ctx, const char* text); +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data); + +namespace ImGui +{ +// Navigation +static void NavUpdate(); +static void NavUpdateWindowing(); +static void NavUpdateWindowingOverlay(); +static void NavUpdateCancelRequest(); +static void NavUpdateCreateMoveRequest(); +static void NavUpdateCreateTabbingRequest(); +static float NavUpdatePageUpPageDown(); +static inline void NavUpdateAnyRequestFlag(); +static void NavUpdateCreateWrappingRequest(); +static void NavEndFrame(); +static bool NavScoreItem(ImGuiNavItemData* result); +static void NavApplyItemToResult(ImGuiNavItemData* result); +static void NavProcessItem(); +static void NavProcessItemForTabbingRequest(ImGuiID id, ImGuiItemFlags item_flags, ImGuiNavMoveFlags move_flags); +static ImVec2 NavCalcPreferredRefPos(); +static void NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window); +static ImGuiWindow* NavRestoreLastChildNavWindow(ImGuiWindow* window); +static void NavRestoreLayer(ImGuiNavLayer layer); +static int FindWindowFocusIndex(ImGuiWindow* window); + +// Error Checking and Debug Tools +static void ErrorCheckNewFrameSanityChecks(); +static void ErrorCheckEndFrameSanityChecks(); +static void UpdateDebugToolItemPicker(); +static void UpdateDebugToolStackQueries(); + +// Inputs +static void UpdateKeyboardInputs(); +static void UpdateMouseInputs(); +static void UpdateMouseWheel(); +static void UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt); + +// Misc +static void UpdateSettings(); +static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); +static void RenderWindowOuterBorders(ImGuiWindow* window); +static void RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, bool handle_borders_and_resize_grips, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size); +static void RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open); +static void RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col); +static void RenderDimmedBackgrounds(); + +// Viewports +const ImGuiID IMGUI_VIEWPORT_DEFAULT_ID = 0x11111111; // Using an arbitrary constant instead of e.g. ImHashStr("ViewportDefault", 0); so it's easier to spot in the debugger. The exact value doesn't matter. +static ImGuiViewportP* AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImVec2& platform_pos, const ImVec2& size, ImGuiViewportFlags flags); +static void DestroyViewport(ImGuiViewportP* viewport); +static void UpdateViewportsNewFrame(); +static void UpdateViewportsEndFrame(); +static void WindowSelectViewport(ImGuiWindow* window); +static void WindowSyncOwnedViewport(ImGuiWindow* window, ImGuiWindow* parent_window_in_stack); +static bool UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImGuiViewportP* host_viewport); +static bool UpdateTryMergeWindowIntoHostViewports(ImGuiWindow* window); +static bool GetWindowAlwaysWantOwnViewport(ImGuiWindow* window); +static int FindPlatformMonitorForPos(const ImVec2& pos); +static int FindPlatformMonitorForRect(const ImRect& r); +static void UpdateViewportPlatformMonitor(ImGuiViewportP* viewport); + +} + +//----------------------------------------------------------------------------- +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +//----------------------------------------------------------------------------- + +// DLL users: +// - Heaps and globals are not shared across DLL boundaries! +// - You will need to call SetCurrentContext() + SetAllocatorFunctions() for each static/DLL boundary you are calling from. +// - Same applies for hot-reloading mechanisms that are reliant on reloading DLL (note that many hot-reloading mechanisms work without DLL). +// - Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// - Confused? In a debugger: add GImGui to your watch window and notice how its value changes depending on your current location (which DLL boundary you are in). + +// Current context pointer. Implicitly used by all Dear ImGui functions. Always assumed to be != NULL. +// - ImGui::CreateContext() will automatically set this pointer if it is NULL. +// Change to a different context by calling ImGui::SetCurrentContext(). +// - Important: Dear ImGui functions are not thread-safe because of this pointer. +// If you want thread-safety to allow N threads to access N different contexts: +// - Change this variable to use thread local storage so each thread can refer to a different context, in your imconfig.h: +// struct ImGuiContext; +// extern thread_local ImGuiContext* MyImGuiTLS; +// #define GImGui MyImGuiTLS +// And then define MyImGuiTLS in one of your cpp files. Note that thread_local is a C++11 keyword, earlier C++ uses compiler-specific keyword. +// - Future development aims to make this context pointer explicit to all calls. Also read https://github.com/ocornut/imgui/issues/586 +// - If you need a finite number of contexts, you may compile and use multiple instances of the ImGui code from a different namespace. +// - DLL users: read comments above. +#ifndef GImGui +ImGuiContext* GImGui = NULL; +#endif + +// Memory Allocator functions. Use SetAllocatorFunctions() to change them. +// - You probably don't want to modify that mid-program, and if you use global/static e.g. ImVector<> instances you may need to keep them accessible during program destruction. +// - DLL users: read comments above. +#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); } +#else +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(size); IM_ASSERT(0); return NULL; } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(ptr); IM_ASSERT(0); } +#endif +static ImGuiMemAllocFunc GImAllocatorAllocFunc = MallocWrapper; +static ImGuiMemFreeFunc GImAllocatorFreeFunc = FreeWrapper; +static void* GImAllocatorUserData = NULL; + +//----------------------------------------------------------------------------- +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +//----------------------------------------------------------------------------- + +ImGuiStyle::ImGuiStyle() +{ + Alpha = 1.0f; // Global alpha applies to everything in Dear ImGui. + DisabledAlpha = 0.60f; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + WindowPadding = ImVec2(8,8); // Padding within a window + WindowRounding = 0.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + WindowBorderSize = 1.0f; // Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested. + WindowMinSize = ImVec2(32,32); // Minimum window size + WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text + WindowMenuButtonPosition= ImGuiDir_Left; // Position of the collapsing/docking button in the title bar (left/right). Defaults to ImGuiDir_Left. + ChildRounding = 0.0f; // Radius of child window corners rounding. Set to 0.0f to have rectangular child windows + ChildBorderSize = 1.0f; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested. + PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows + PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested. + FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets) + FrameRounding = 0.0f; // Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets). + FrameBorderSize = 0.0f; // Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested. + ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lines + ItemInnerSpacing = ImVec2(4,4); // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label) + CellPadding = ImVec2(4,2); // Padding within a table cell. CellPadding.y may be altered between different rows. + TouchExtraPadding = ImVec2(0,0); // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar + ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar + GrabMinSize = 12.0f; // Minimum width/height of a grab box for slider/scrollbar + GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + TabBorderSize = 0.0f; // Thickness of border around tabs. + TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + TabBarBorderSize = 1.0f; // Thickness of tab-bar separator, which takes on the tab active color to denote focus. + ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. + SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + SeparatorTextBorderSize = 3.0f; // Thickkness of border in SeparatorText() + SeparatorTextAlign = ImVec2(0.0f,0.5f);// Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center). + SeparatorTextPadding = ImVec2(20.0f,3.f);// Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y. + DisplayWindowPadding = ImVec2(19,19); // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. + DockingSeparatorSize = 2.0f; // Thickness of resizing border between docked windows + MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. + AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. + AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). + CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + + // Behaviors + HoverStationaryDelay = 0.15f; // Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary. + HoverDelayShort = 0.15f; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay. + HoverDelayNormal = 0.40f; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). " + HoverFlagsForTooltipMouse = ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_AllowWhenDisabled; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse. + HoverFlagsForTooltipNav = ImGuiHoveredFlags_NoSharedDelay | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_AllowWhenDisabled; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad. + + // Default theme + ImGui::StyleColorsDark(this); +} + +// To scale your entire UI (e.g. if you want your app to use High DPI or generally be DPI aware) you may use this helper function. Scaling the fonts is done separately and is up to you. +// Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times. +void ImGuiStyle::ScaleAllSizes(float scale_factor) +{ + WindowPadding = ImFloor(WindowPadding * scale_factor); + WindowRounding = ImFloor(WindowRounding * scale_factor); + WindowMinSize = ImFloor(WindowMinSize * scale_factor); + ChildRounding = ImFloor(ChildRounding * scale_factor); + PopupRounding = ImFloor(PopupRounding * scale_factor); + FramePadding = ImFloor(FramePadding * scale_factor); + FrameRounding = ImFloor(FrameRounding * scale_factor); + ItemSpacing = ImFloor(ItemSpacing * scale_factor); + ItemInnerSpacing = ImFloor(ItemInnerSpacing * scale_factor); + CellPadding = ImFloor(CellPadding * scale_factor); + TouchExtraPadding = ImFloor(TouchExtraPadding * scale_factor); + IndentSpacing = ImFloor(IndentSpacing * scale_factor); + ColumnsMinSpacing = ImFloor(ColumnsMinSpacing * scale_factor); + ScrollbarSize = ImFloor(ScrollbarSize * scale_factor); + ScrollbarRounding = ImFloor(ScrollbarRounding * scale_factor); + GrabMinSize = ImFloor(GrabMinSize * scale_factor); + GrabRounding = ImFloor(GrabRounding * scale_factor); + LogSliderDeadzone = ImFloor(LogSliderDeadzone * scale_factor); + TabRounding = ImFloor(TabRounding * scale_factor); + TabMinWidthForCloseButton = (TabMinWidthForCloseButton != FLT_MAX) ? ImFloor(TabMinWidthForCloseButton * scale_factor) : FLT_MAX; + SeparatorTextPadding = ImFloor(SeparatorTextPadding * scale_factor); + DockingSeparatorSize = ImFloor(DockingSeparatorSize * scale_factor); + DisplayWindowPadding = ImFloor(DisplayWindowPadding * scale_factor); + DisplaySafeAreaPadding = ImFloor(DisplaySafeAreaPadding * scale_factor); + MouseCursorScale = ImFloor(MouseCursorScale * scale_factor); +} + +ImGuiIO::ImGuiIO() +{ + // Most fields are initialized with zero + memset(this, 0, sizeof(*this)); + IM_STATIC_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); + + // Settings + ConfigFlags = ImGuiConfigFlags_None; + BackendFlags = ImGuiBackendFlags_None; + DisplaySize = ImVec2(-1.0f, -1.0f); + DeltaTime = 1.0f / 60.0f; + IniSavingRate = 5.0f; + IniFilename = "imgui.ini"; // Important: "imgui.ini" is relative to current working dir, most apps will want to lock this to an absolute path (e.g. same path as executables). + LogFilename = "imgui_log.txt"; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int i = 0; i < ImGuiKey_COUNT; i++) + KeyMap[i] = -1; +#endif + UserData = NULL; + + Fonts = NULL; + FontGlobalScale = 1.0f; + FontDefault = NULL; + FontAllowUserScaling = false; + DisplayFramebufferScale = ImVec2(1.0f, 1.0f); + + // Docking options (when ImGuiConfigFlags_DockingEnable is set) + ConfigDockingNoSplit = false; + ConfigDockingWithShift = false; + ConfigDockingAlwaysTabBar = false; + ConfigDockingTransparentPayload = false; + + // Viewport options (when ImGuiConfigFlags_ViewportsEnable is set) + ConfigViewportsNoAutoMerge = false; + ConfigViewportsNoTaskBarIcon = false; + ConfigViewportsNoDecoration = true; + ConfigViewportsNoDefaultParent = false; + + // Miscellaneous options + MouseDrawCursor = false; +#ifdef __APPLE__ + ConfigMacOSXBehaviors = true; // Set Mac OS X style defaults based on __APPLE__ compile time flag +#else + ConfigMacOSXBehaviors = false; +#endif + ConfigInputTrickleEventQueue = true; + ConfigInputTextCursorBlink = true; + ConfigInputTextEnterKeepActive = false; + ConfigDragClickToInputText = false; + ConfigWindowsResizeFromEdges = true; + ConfigWindowsMoveFromTitleBarOnly = false; + ConfigMemoryCompactTimer = 60.0f; + ConfigDebugBeginReturnValueOnce = false; + ConfigDebugBeginReturnValueLoop = false; + + // Inputs Behaviors + MouseDoubleClickTime = 0.30f; + MouseDoubleClickMaxDist = 6.0f; + MouseDragThreshold = 6.0f; + KeyRepeatDelay = 0.275f; + KeyRepeatRate = 0.050f; + + // Platform Functions + // Note: Initialize() will setup default clipboard/ime handlers. + BackendPlatformName = BackendRendererName = NULL; + BackendPlatformUserData = BackendRendererUserData = BackendLanguageUserData = NULL; + PlatformLocaleDecimalPoint = '.'; + + // Input (NB: we already have memset zero the entire structure!) + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); + MouseSource = ImGuiMouseSource_Mouse; + for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(KeysData); i++) { KeysData[i].DownDuration = KeysData[i].DownDurationPrev = -1.0f; } + AppAcceptingEvents = true; + BackendUsingLegacyKeyArrays = (ImS8)-1; + BackendUsingLegacyNavInputArray = true; // assume using legacy array until proven wrong +} + +// Pass in translated ASCII characters for text input. +// - with glfw you can get those from the callback set in glfwSetCharCallback() +// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message +// FIXME: Should in theory be called "AddCharacterEvent()" to be consistent with new API +void ImGuiIO::AddInputCharacter(unsigned int c) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + if (c == 0 || !AppAcceptingEvents) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Text; + e.Source = ImGuiInputSource_Keyboard; + e.EventId = g.InputEventsNextEventId++; + e.Text.Char = c; + g.InputEventsQueue.push_back(e); +} + +// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so +// we should save the high surrogate. +void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) +{ + if ((c == 0 && InputQueueSurrogate == 0) || !AppAcceptingEvents) + return; + + if ((c & 0xFC00) == 0xD800) // High surrogate, must save + { + if (InputQueueSurrogate != 0) + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + InputQueueSurrogate = c; + return; + } + + ImWchar cp = c; + if (InputQueueSurrogate != 0) + { + if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate + { + AddInputCharacter(IM_UNICODE_CODEPOINT_INVALID); + } + else + { +#if IM_UNICODE_CODEPOINT_MAX == 0xFFFF + cp = IM_UNICODE_CODEPOINT_INVALID; // Codepoint will not fit in ImWchar +#else + cp = (ImWchar)(((InputQueueSurrogate - 0xD800) << 10) + (c - 0xDC00) + 0x10000); +#endif + } + + InputQueueSurrogate = 0; + } + AddInputCharacter((unsigned)cp); +} + +void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) +{ + if (!AppAcceptingEvents) + return; + while (*utf8_chars != 0) + { + unsigned int c = 0; + utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); + AddInputCharacter(c); + } +} + +// Clear all incoming events. +void ImGuiIO::ClearEventsQueue() +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + g.InputEventsQueue.clear(); +} + +// Clear current keyboard/mouse/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons. +void ImGuiIO::ClearInputKeys() +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + memset(KeysDown, 0, sizeof(KeysDown)); +#endif + for (int n = 0; n < IM_ARRAYSIZE(KeysData); n++) + { + KeysData[n].Down = false; + KeysData[n].DownDuration = -1.0f; + KeysData[n].DownDurationPrev = -1.0f; + } + KeyCtrl = KeyShift = KeyAlt = KeySuper = false; + KeyMods = ImGuiMod_None; + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + for (int n = 0; n < IM_ARRAYSIZE(MouseDown); n++) + { + MouseDown[n] = false; + MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; + } + MouseWheel = MouseWheelH = 0.0f; + InputQueueCharacters.resize(0); // Behavior of old ClearInputCharacters(). +} + +// Removed this as it is ambiguous/misleading and generally incorrect to use with the existence of a higher-level input queue. +// Current frame character buffer is now also cleared by ClearInputKeys(). +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +void ImGuiIO::ClearInputCharacters() +{ + InputQueueCharacters.resize(0); +} +#endif + +static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1) +{ + ImGuiContext& g = *ctx; + for (int n = g.InputEventsQueue.Size - 1; n >= 0; n--) + { + ImGuiInputEvent* e = &g.InputEventsQueue[n]; + if (e->Type != type) + continue; + if (type == ImGuiInputEventType_Key && e->Key.Key != arg) + continue; + if (type == ImGuiInputEventType_MouseButton && e->MouseButton.Button != arg) + continue; + return e; + } + return NULL; +} + +// Queue a new key down/up event. +// - ImGuiKey key: Translated key (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) +// - bool down: Is the key down? use false to signify a key release. +// - float analog_value: 0.0f..1.0f +// IMPORTANT: THIS FUNCTION AND OTHER "ADD" GRABS THE CONTEXT FROM OUR INSTANCE. +// WE NEED TO ENSURE THAT ALL FUNCTION CALLS ARE FULLFILLING THIS, WHICH IS WHY GetKeyData() HAS AN EXPLICIT CONTEXT. +void ImGuiIO::AddKeyAnalogEvent(ImGuiKey key, bool down, float analog_value) +{ + //if (e->Down) { IMGUI_DEBUG_LOG_IO("AddKeyEvent() Key='%s' %d, NativeKeycode = %d, NativeScancode = %d\n", ImGui::GetKeyName(e->Key), e->Down, e->NativeKeycode, e->NativeScancode); } + IM_ASSERT(Ctx != NULL); + if (key == ImGuiKey_None || !AppAcceptingEvents) + return; + ImGuiContext& g = *Ctx; + IM_ASSERT(ImGui::IsNamedKeyOrModKey(key)); // Backend needs to pass a valid ImGuiKey_ constant. 0..511 values are legacy native key codes which are not accepted by this API. + IM_ASSERT(ImGui::IsAliasKey(key) == false); // Backend cannot submit ImGuiKey_MouseXXX values they are automatically inferred from AddMouseXXX() events. + IM_ASSERT(key != ImGuiMod_Shortcut); // We could easily support the translation here but it seems saner to not accept it (TestEngine perform a translation itself) + + // Verify that backend isn't mixing up using new io.AddKeyEvent() api and old io.KeysDown[] + io.KeyMap[] data. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((BackendUsingLegacyKeyArrays == -1 || BackendUsingLegacyKeyArrays == 0) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + if (BackendUsingLegacyKeyArrays == -1) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + IM_ASSERT(KeyMap[n] == -1 && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + BackendUsingLegacyKeyArrays = 0; +#endif + if (ImGui::IsGamepadKey(key)) + BackendUsingLegacyNavInputArray = false; + + // Filter duplicate (in particular: key mods and gamepad analog values are commonly spammed) + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_Key, (int)key); + const ImGuiKeyData* key_data = ImGui::GetKeyData(&g, key); + const bool latest_key_down = latest_event ? latest_event->Key.Down : key_data->Down; + const float latest_key_analog = latest_event ? latest_event->Key.AnalogValue : key_data->AnalogValue; + if (latest_key_down == down && latest_key_analog == analog_value) + return; + + // Add event + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Key; + e.Source = ImGui::IsGamepadKey(key) ? ImGuiInputSource_Gamepad : ImGuiInputSource_Keyboard; + e.EventId = g.InputEventsNextEventId++; + e.Key.Key = key; + e.Key.Down = down; + e.Key.AnalogValue = analog_value; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) +{ + if (!AppAcceptingEvents) + return; + AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); +} + +// [Optional] Call after AddKeyEvent(). +// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. +// If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this. +void ImGuiIO::SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index) +{ + if (key == ImGuiKey_None) + return; + IM_ASSERT(ImGui::IsNamedKey(key)); // >= 512 + IM_ASSERT(native_legacy_index == -1 || ImGui::IsLegacyKey((ImGuiKey)native_legacy_index)); // >= 0 && <= 511 + IM_UNUSED(native_keycode); // Yet unused + IM_UNUSED(native_scancode); // Yet unused + + // Build native->imgui map so old user code can still call key functions with native 0..511 values. +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const int legacy_key = (native_legacy_index != -1) ? native_legacy_index : native_keycode; + if (!ImGui::IsLegacyKey((ImGuiKey)legacy_key)) + return; + KeyMap[legacy_key] = key; + KeyMap[key] = legacy_key; +#else + IM_UNUSED(key); + IM_UNUSED(native_legacy_index); +#endif +} + +// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. +void ImGuiIO::SetAppAcceptingEvents(bool accepting_events) +{ + AppAcceptingEvents = accepting_events; +} + +// Queue a mouse move event +void ImGuiIO::AddMousePosEvent(float x, float y) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + if (!AppAcceptingEvents) + return; + + // Apply same flooring as UpdateMouseInputs() + ImVec2 pos((x > -FLT_MAX) ? ImFloorSigned(x) : x, (y > -FLT_MAX) ? ImFloorSigned(y) : y); + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_MousePos); + const ImVec2 latest_pos = latest_event ? ImVec2(latest_event->MousePos.PosX, latest_event->MousePos.PosY) : g.IO.MousePos; + if (latest_pos.x == pos.x && latest_pos.y == pos.y) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MousePos; + e.Source = ImGuiInputSource_Mouse; + e.EventId = g.InputEventsNextEventId++; + e.MousePos.PosX = pos.x; + e.MousePos.PosY = pos.y; + e.MousePos.MouseSource = g.InputEventsNextMouseSource; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddMouseButtonEvent(int mouse_button, bool down) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_MouseButton, (int)mouse_button); + const bool latest_button_down = latest_event ? latest_event->MouseButton.Down : g.IO.MouseDown[mouse_button]; + if (latest_button_down == down) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseButton; + e.Source = ImGuiInputSource_Mouse; + e.EventId = g.InputEventsNextEventId++; + e.MouseButton.Button = mouse_button; + e.MouseButton.Down = down; + e.MouseButton.MouseSource = g.InputEventsNextMouseSource; + g.InputEventsQueue.push_back(e); +} + +// Queue a mouse wheel event (some mouse/API may only have a Y component) +void ImGuiIO::AddMouseWheelEvent(float wheel_x, float wheel_y) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + + // Filter duplicate (unlike most events, wheel values are relative and easy to filter) + if (!AppAcceptingEvents || (wheel_x == 0.0f && wheel_y == 0.0f)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseWheel; + e.Source = ImGuiInputSource_Mouse; + e.EventId = g.InputEventsNextEventId++; + e.MouseWheel.WheelX = wheel_x; + e.MouseWheel.WheelY = wheel_y; + e.MouseWheel.MouseSource = g.InputEventsNextMouseSource; + g.InputEventsQueue.push_back(e); +} + +// This is not a real event, the data is latched in order to be stored in actual Mouse events. +// This is so that duplicate events (e.g. Windows sending extraneous WM_MOUSEMOVE) gets filtered and are not leading to actual source changes. +void ImGuiIO::AddMouseSourceEvent(ImGuiMouseSource source) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + g.InputEventsNextMouseSource = source; +} + +void ImGuiIO::AddMouseViewportEvent(ImGuiID viewport_id) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + //IM_ASSERT(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport); + if (!AppAcceptingEvents) + return; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_MouseViewport); + const ImGuiID latest_viewport_id = latest_event ? latest_event->MouseViewport.HoveredViewportID : g.IO.MouseHoveredViewport; + if (latest_viewport_id == viewport_id) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_MouseViewport; + e.Source = ImGuiInputSource_Mouse; + e.MouseViewport.HoveredViewportID = viewport_id; + g.InputEventsQueue.push_back(e); +} + +void ImGuiIO::AddFocusEvent(bool focused) +{ + IM_ASSERT(Ctx != NULL); + ImGuiContext& g = *Ctx; + + // Filter duplicate + const ImGuiInputEvent* latest_event = FindLatestInputEvent(&g, ImGuiInputEventType_Focus); + const bool latest_focused = latest_event ? latest_event->AppFocused.Focused : !g.IO.AppFocusLost; + if (latest_focused == focused || (ConfigDebugIgnoreFocusLoss && !focused)) + return; + + ImGuiInputEvent e; + e.Type = ImGuiInputEventType_Focus; + e.EventId = g.InputEventsNextEventId++; + e.AppFocused.Focused = focused; + g.InputEventsQueue.push_back(e); +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +//----------------------------------------------------------------------------- + +ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments) +{ + IM_ASSERT(num_segments > 0); // Use ImBezierCubicClosestPointCasteljau() + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + { + ImVec2 p_current = ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + return p_closest; +} + +// Closely mimics PathBezierToCasteljau() in imgui_draw.cpp +static void ImBezierCubicClosestPointCasteljauStep(const ImVec2& p, ImVec2& p_closest, ImVec2& p_last, float& p_closest_dist2, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = ((x2 - x4) * dy - (y2 - y4) * dx); + float d3 = ((x3 - x4) * dy - (y3 - y4) * dx); + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + ImVec2 p_current(x4, y4); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + else if (level < 10) + { + float x12 = (x1 + x2)*0.5f, y12 = (y1 + y2)*0.5f; + float x23 = (x2 + x3)*0.5f, y23 = (y2 + y3)*0.5f; + float x34 = (x3 + x4)*0.5f, y34 = (y3 + y4)*0.5f; + float x123 = (x12 + x23)*0.5f, y123 = (y12 + y23)*0.5f; + float x234 = (x23 + x34)*0.5f, y234 = (y23 + y34)*0.5f; + float x1234 = (x123 + x234)*0.5f, y1234 = (y123 + y234)*0.5f; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +// tess_tol is generally the same value you would find in ImGui::GetStyle().CurveTessellationTol +// Because those ImXXX functions are lower-level than ImGui:: we cannot access this value automatically. +ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol) +{ + IM_ASSERT(tess_tol > 0.0f); + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0); + return p_closest; +} + +ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p) +{ + ImVec2 ap = p - a; + ImVec2 ab_dir = b - a; + float dot = ap.x * ab_dir.x + ap.y * ab_dir.y; + if (dot < 0.0f) + return a; + float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y; + if (dot > ab_len_sqr) + return b; + return a + ab_dir * dot / ab_len_sqr; +} + +bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + bool b1 = ((p.x - b.x) * (a.y - b.y) - (p.y - b.y) * (a.x - b.x)) < 0.0f; + bool b2 = ((p.x - c.x) * (b.y - c.y) - (p.y - c.y) * (b.x - c.x)) < 0.0f; + bool b3 = ((p.x - a.x) * (c.y - a.y) - (p.y - a.y) * (c.x - a.x)) < 0.0f; + return ((b1 == b2) && (b2 == b3)); +} + +void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w) +{ + ImVec2 v0 = b - a; + ImVec2 v1 = c - a; + ImVec2 v2 = p - a; + const float denom = v0.x * v1.y - v1.x * v0.y; + out_v = (v2.x * v1.y - v1.x * v2.y) / denom; + out_w = (v0.x * v2.y - v2.x * v0.y) / denom; + out_u = 1.0f - out_v - out_w; +} + +ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + ImVec2 proj_ab = ImLineClosestPoint(a, b, p); + ImVec2 proj_bc = ImLineClosestPoint(b, c, p); + ImVec2 proj_ca = ImLineClosestPoint(c, a, p); + float dist2_ab = ImLengthSqr(p - proj_ab); + float dist2_bc = ImLengthSqr(p - proj_bc); + float dist2_ca = ImLengthSqr(p - proj_ca); + float m = ImMin(dist2_ab, ImMin(dist2_bc, dist2_ca)); + if (m == dist2_ab) + return proj_ab; + if (m == dist2_bc) + return proj_bc; + return proj_ca; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +//----------------------------------------------------------------------------- + +// Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more. +int ImStricmp(const char* str1, const char* str2) +{ + int d; + while ((d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; } + return d; +} + +int ImStrnicmp(const char* str1, const char* str2, size_t count) +{ + int d = 0; + while (count > 0 && (d = ImToUpper(*str2) - ImToUpper(*str1)) == 0 && *str1) { str1++; str2++; count--; } + return d; +} + +void ImStrncpy(char* dst, const char* src, size_t count) +{ + if (count < 1) + return; + if (count > 1) + strncpy(dst, src, count - 1); + dst[count - 1] = 0; +} + +char* ImStrdup(const char* str) +{ + size_t len = strlen(str); + void* buf = IM_ALLOC(len + 1); + return (char*)memcpy(buf, (const void*)str, len + 1); +} + +char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src) +{ + size_t dst_buf_size = p_dst_size ? *p_dst_size : strlen(dst) + 1; + size_t src_size = strlen(src) + 1; + if (dst_buf_size < src_size) + { + IM_FREE(dst); + dst = (char*)IM_ALLOC(src_size); + if (p_dst_size) + *p_dst_size = src_size; + } + return (char*)memcpy(dst, (const void*)src, src_size); +} + +const char* ImStrchrRange(const char* str, const char* str_end, char c) +{ + const char* p = (const char*)memchr(str, (int)c, str_end - str); + return p; +} + +int ImStrlenW(const ImWchar* str) +{ + //return (int)wcslen((const wchar_t*)str); // FIXME-OPT: Could use this when wchar_t are 16-bit + int n = 0; + while (*str++) n++; + return n; +} + +// Find end-of-line. Return pointer will point to either first \n, either str_end. +const char* ImStreolRange(const char* str, const char* str_end) +{ + const char* p = (const char*)memchr(str, '\n', str_end - str); + return p ? p : str_end; +} + +const ImWchar* ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin) // find beginning-of-line +{ + while (buf_mid_line > buf_begin && buf_mid_line[-1] != '\n') + buf_mid_line--; + return buf_mid_line; +} + +const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end) +{ + if (!needle_end) + needle_end = needle + strlen(needle); + + const char un0 = (char)ImToUpper(*needle); + while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) + { + if (ImToUpper(*haystack) == un0) + { + const char* b = needle + 1; + for (const char* a = haystack + 1; b < needle_end; a++, b++) + if (ImToUpper(*a) != ImToUpper(*b)) + break; + if (b == needle_end) + return haystack; + } + haystack++; + } + return NULL; +} + +// Trim str by offsetting contents when there's leading data + writing a \0 at the trailing position. We use this in situation where the cost is negligible. +void ImStrTrimBlanks(char* buf) +{ + char* p = buf; + while (p[0] == ' ' || p[0] == '\t') // Leading blanks + p++; + char* p_start = p; + while (*p != 0) // Find end of string + p++; + while (p > p_start && (p[-1] == ' ' || p[-1] == '\t')) // Trailing blanks + p--; + if (p_start != buf) // Copy memory if we had leading blanks + memmove(buf, p_start, p - p_start); + buf[p - p_start] = 0; // Zero terminate +} + +const char* ImStrSkipBlank(const char* str) +{ + while (str[0] == ' ' || str[0] == '\t') + str++; + return str; +} + +// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size). +// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm. +// B) When buf==NULL vsnprintf() will return the output size. +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h) +// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are +// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) +#ifdef IMGUI_USE_STB_SPRINTF +#ifndef IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION +#define STB_SPRINTF_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_SPRINTF_FILENAME +#include IMGUI_STB_SPRINTF_FILENAME +#else +#include "stb_sprintf.h" +#endif +#endif // #ifdef IMGUI_USE_STB_SPRINTF + +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + va_end(args); + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} + +int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) +{ +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} +#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + va_list args; + va_start(args, fmt); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + { + const char* buf = va_arg(args, const char*); // Skip formatting when using "%s" + *out_buf = buf; + if (out_buf_end) { *out_buf_end = buf + strlen(buf); } + } + else + { + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } + } + va_end(args); +} + +void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + { + const char* buf = va_arg(args, const char*); // Skip formatting when using "%s" + *out_buf = buf; + if (out_buf_end) { *out_buf_end = buf + strlen(buf); } + } + else + { + int buf_len = ImFormatStringV(g.TempBuffer.Data, g.TempBuffer.Size, fmt, args); + *out_buf = g.TempBuffer.Data; + if (out_buf_end) { *out_buf_end = g.TempBuffer.Data + buf_len; } + } +} + +// CRC32 needs a 1KB lookup table (not cache friendly) +// Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: +// - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. +static const ImU32 GCrc32LookupTable[256] = +{ + 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91, + 0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5, + 0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59, + 0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D, + 0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01, + 0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65, + 0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9, + 0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD, + 0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1, + 0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5, + 0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79, + 0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D, + 0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21, + 0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45, + 0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9, + 0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D, +}; + +// Known size hash +// It is ok to call ImHashData on a string with known length but the ### operator won't be supported. +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashData(const void* data_p, size_t data_size, ImGuiID seed) +{ + ImU32 crc = ~seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + while (data_size-- != 0) + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++]; + return ~crc; +} + +// Zero-terminated string hash, with support for ### to reset back to seed value +// We support a syntax of "label###id" where only "###id" is included in the hash, and only "label" gets displayed. +// Because this syntax is rarely used we are optimizing for the common case. +// - If we reach ### in the string we discard the hash so far and reset to the seed. +// - We don't do 'current += 2; continue;' after handling ### to keep the code smaller/faster (measured ~10% diff in Debug build) +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImGuiID ImHashStr(const char* data_p, size_t data_size, ImGuiID seed) +{ + seed = ~seed; + ImU32 crc = seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + if (data_size != 0) + { + while (data_size-- != 0) + { + unsigned char c = *data++; + if (c == '#' && data_size >= 2 && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + else + { + while (unsigned char c = *data++) + { + if (c == '#' && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + return ~crc; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (File functions) +//----------------------------------------------------------------------------- + +// Default file functions +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +ImFileHandle ImFileOpen(const char* filename, const char* mode) +{ +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__) + // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames. + // Previously we used ImTextCountCharsFromUtf8/ImTextStrFromUtf8 here but we now need to support ImWchar16 and ImWchar32! + const int filename_wsize = ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); + const int mode_wsize = ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0); + ImVector buf; + buf.resize(filename_wsize + mode_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, (wchar_t*)&buf[0], filename_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, (wchar_t*)&buf[filename_wsize], mode_wsize); + return ::_wfopen((const wchar_t*)&buf[0], (const wchar_t*)&buf[filename_wsize]); +#else + return fopen(filename, mode); +#endif +} + +// We should in theory be using fseeko()/ftello() with off_t and _fseeki64()/_ftelli64() with __int64, waiting for the PR that does that in a very portable pre-C++11 zero-warnings way. +bool ImFileClose(ImFileHandle f) { return fclose(f) == 0; } +ImU64 ImFileGetSize(ImFileHandle f) { long off = 0, sz = 0; return ((off = ftell(f)) != -1 && !fseek(f, 0, SEEK_END) && (sz = ftell(f)) != -1 && !fseek(f, off, SEEK_SET)) ? (ImU64)sz : (ImU64)-1; } +ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); } +ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); } +#endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +// Helper: Load file content into memory +// Memory allocated with IM_ALLOC(), must be freed by user using IM_FREE() == ImGui::MemFree() +// This can't really be used with "rt" because fseek size won't match read size. +void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes) +{ + IM_ASSERT(filename && mode); + if (out_file_size) + *out_file_size = 0; + + ImFileHandle f; + if ((f = ImFileOpen(filename, mode)) == NULL) + return NULL; + + size_t file_size = (size_t)ImFileGetSize(f); + if (file_size == (size_t)-1) + { + ImFileClose(f); + return NULL; + } + + void* file_data = IM_ALLOC(file_size + padding_bytes); + if (file_data == NULL) + { + ImFileClose(f); + return NULL; + } + if (ImFileRead(file_data, 1, file_size, f) != file_size) + { + ImFileClose(f); + IM_FREE(file_data); + return NULL; + } + if (padding_bytes > 0) + memset((void*)(((char*)file_data) + file_size), 0, (size_t)padding_bytes); + + ImFileClose(f); + if (out_file_size) + *out_file_size = file_size; + + return file_data; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +//----------------------------------------------------------------------------- + +IM_MSVC_RUNTIME_CHECKS_OFF + +// Convert UTF-8 to 32-bit character, process single character input. +// A nearly-branchless UTF-8 decoder, based on work of Christopher Wellons (https://github.com/skeeto/branchless-utf8). +// We handle UTF-8 decoding error by skipping forward. +int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end) +{ + static const char lengths[32] = { 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, 0 }; + static const int masks[] = { 0x00, 0x7f, 0x1f, 0x0f, 0x07 }; + static const uint32_t mins[] = { 0x400000, 0, 0x80, 0x800, 0x10000 }; + static const int shiftc[] = { 0, 18, 12, 6, 0 }; + static const int shifte[] = { 0, 6, 4, 2, 0 }; + int len = lengths[*(const unsigned char*)in_text >> 3]; + int wanted = len + (len ? 0 : 1); + + if (in_text_end == NULL) + in_text_end = in_text + wanted; // Max length, nulls will be taken into account. + + // Copy at most 'len' bytes, stop copying at 0 or past in_text_end. Branch predictor does a good job here, + // so it is fast even with excessive branching. + unsigned char s[4]; + s[0] = in_text + 0 < in_text_end ? in_text[0] : 0; + s[1] = in_text + 1 < in_text_end ? in_text[1] : 0; + s[2] = in_text + 2 < in_text_end ? in_text[2] : 0; + s[3] = in_text + 3 < in_text_end ? in_text[3] : 0; + + // Assume a four-byte character and load four bytes. Unused bits are shifted out. + *out_char = (uint32_t)(s[0] & masks[len]) << 18; + *out_char |= (uint32_t)(s[1] & 0x3f) << 12; + *out_char |= (uint32_t)(s[2] & 0x3f) << 6; + *out_char |= (uint32_t)(s[3] & 0x3f) << 0; + *out_char >>= shiftc[len]; + + // Accumulate the various error conditions. + int e = 0; + e = (*out_char < mins[len]) << 6; // non-canonical encoding + e |= ((*out_char >> 11) == 0x1b) << 7; // surrogate half? + e |= (*out_char > IM_UNICODE_CODEPOINT_MAX) << 8; // out of range? + e |= (s[1] & 0xc0) >> 2; + e |= (s[2] & 0xc0) >> 4; + e |= (s[3] ) >> 6; + e ^= 0x2a; // top two bits of each tail byte correct? + e >>= shifte[len]; + + if (e) + { + // No bytes are consumed when *in_text == 0 || in_text == in_text_end. + // One byte is consumed in case of invalid first byte of in_text. + // All available bytes (at most `len` bytes) are consumed on incomplete/invalid second to last bytes. + // Invalid or incomplete input may consume less bytes than wanted, therefore every byte has to be inspected in s. + wanted = ImMin(wanted, !!s[0] + !!s[1] + !!s[2] + !!s[3]); + *out_char = IM_UNICODE_CODEPOINT_INVALID; + } + + return wanted; +} + +int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining) +{ + ImWchar* buf_out = buf; + ImWchar* buf_end = buf + buf_size; + while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + *buf_out++ = (ImWchar)c; + } + *buf_out = 0; + if (in_text_remaining) + *in_text_remaining = in_text; + return (int)(buf_out - buf); +} + +int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end) +{ + int char_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + char_count++; + } + return char_count; +} + +// Based on stb_to_utf8() from github.com/nothings/stb/ +static inline int ImTextCharToUtf8_inline(char* buf, int buf_size, unsigned int c) +{ + if (c < 0x80) + { + buf[0] = (char)c; + return 1; + } + if (c < 0x800) + { + if (buf_size < 2) return 0; + buf[0] = (char)(0xc0 + (c >> 6)); + buf[1] = (char)(0x80 + (c & 0x3f)); + return 2; + } + if (c < 0x10000) + { + if (buf_size < 3) return 0; + buf[0] = (char)(0xe0 + (c >> 12)); + buf[1] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[2] = (char)(0x80 + ((c ) & 0x3f)); + return 3; + } + if (c <= 0x10FFFF) + { + if (buf_size < 4) return 0; + buf[0] = (char)(0xf0 + (c >> 18)); + buf[1] = (char)(0x80 + ((c >> 12) & 0x3f)); + buf[2] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[3] = (char)(0x80 + ((c ) & 0x3f)); + return 4; + } + // Invalid code point, the max unicode is 0x10FFFF + return 0; +} + +const char* ImTextCharToUtf8(char out_buf[5], unsigned int c) +{ + int count = ImTextCharToUtf8_inline(out_buf, 5, c); + out_buf[count] = 0; + return out_buf; +} + +// Not optimal but we very rarely use this function. +int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) +{ + unsigned int unused = 0; + return ImTextCharFromUtf8(&unused, in_text, in_text_end); +} + +static inline int ImTextCountUtf8BytesFromChar(unsigned int c) +{ + if (c < 0x80) return 1; + if (c < 0x800) return 2; + if (c < 0x10000) return 3; + if (c <= 0x10FFFF) return 4; + return 3; +} + +int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end) +{ + char* buf_p = out_buf; + const char* buf_end = out_buf + out_buf_size; + while (buf_p < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + *buf_p++ = (char)c; + else + buf_p += ImTextCharToUtf8_inline(buf_p, (int)(buf_end - buf_p - 1), c); + } + *buf_p = 0; + return (int)(buf_p - out_buf); +} + +int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end) +{ + int bytes_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + bytes_count++; + else + bytes_count += ImTextCountUtf8BytesFromChar(c); + } + return bytes_count; +} + +const char* ImTextFindPreviousUtf8Codepoint(const char* in_text_start, const char* in_text_curr) +{ + while (in_text_curr > in_text_start) + { + in_text_curr--; + if ((*in_text_curr & 0xC0) != 0x80) + return in_text_curr; + } + return in_text_start; +} + +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// Note: The Convert functions are early design which are not consistent with other API. +//----------------------------------------------------------------------------- + +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b) +{ + float t = ((col_b >> IM_COL32_A_SHIFT) & 0xFF) / 255.f; + int r = ImLerp((int)(col_a >> IM_COL32_R_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_R_SHIFT) & 0xFF, t); + int g = ImLerp((int)(col_a >> IM_COL32_G_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_G_SHIFT) & 0xFF, t); + int b = ImLerp((int)(col_a >> IM_COL32_B_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_B_SHIFT) & 0xFF, t); + return IM_COL32(r, g, b, 0xFF); +} + +ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in) +{ + float s = 1.0f / 255.0f; + return ImVec4( + ((in >> IM_COL32_R_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_G_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_B_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_A_SHIFT) & 0xFF) * s); +} + +ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in) +{ + ImU32 out; + out = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM_COL32_A_SHIFT; + return out; +} + +// Convert rgb floats ([0-1],[0-1],[0-1]) to hsv floats ([0-1],[0-1],[0-1]), from Foley & van Dam p592 +// Optimized http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv +void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v) +{ + float K = 0.f; + if (g < b) + { + ImSwap(g, b); + K = -1.f; + } + if (r < g) + { + ImSwap(r, g); + K = -2.f / 6.f - K; + } + + const float chroma = r - (g < b ? g : b); + out_h = ImFabs(K + (g - b) / (6.f * chroma + 1e-20f)); + out_s = chroma / (r + 1e-20f); + out_v = r; +} + +// Convert hsv floats ([0-1],[0-1],[0-1]) to rgb floats ([0-1],[0-1],[0-1]), from Foley & van Dam p593 +// also http://en.wikipedia.org/wiki/HSL_and_HSV +void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b) +{ + if (s == 0.0f) + { + // gray + out_r = out_g = out_b = v; + return; + } + + h = ImFmod(h, 1.0f) / (60.0f / 360.0f); + int i = (int)h; + float f = h - (float)i; + float p = v * (1.0f - s); + float q = v * (1.0f - s * f); + float t = v * (1.0f - s * (1.0f - f)); + + switch (i) + { + case 0: out_r = v; out_g = t; out_b = p; break; + case 1: out_r = q; out_g = v; out_b = p; break; + case 2: out_r = p; out_g = v; out_b = t; break; + case 3: out_r = p; out_g = q; out_b = v; break; + case 4: out_r = t; out_g = p; out_b = v; break; + case 5: default: out_r = v; out_g = p; out_b = q; break; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStorage +// Helper: Key->value storage +//----------------------------------------------------------------------------- + +// std::lower_bound but without the bullshit +static ImGuiStorage::ImGuiStoragePair* LowerBound(ImVector& data, ImGuiID key) +{ + ImGuiStorage::ImGuiStoragePair* first = data.Data; + ImGuiStorage::ImGuiStoragePair* last = data.Data + data.Size; + size_t count = (size_t)(last - first); + while (count > 0) + { + size_t count2 = count >> 1; + ImGuiStorage::ImGuiStoragePair* mid = first + count2; + if (mid->key < key) + { + first = ++mid; + count -= count2 + 1; + } + else + { + count = count2; + } + } + return first; +} + +// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. +void ImGuiStorage::BuildSortByKey() +{ + struct StaticFunc + { + static int IMGUI_CDECL PairComparerByID(const void* lhs, const void* rhs) + { + // We can't just do a subtraction because qsort uses signed integers and subtracting our ID doesn't play well with that. + if (((const ImGuiStoragePair*)lhs)->key > ((const ImGuiStoragePair*)rhs)->key) return +1; + if (((const ImGuiStoragePair*)lhs)->key < ((const ImGuiStoragePair*)rhs)->key) return -1; + return 0; + } + }; + ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), StaticFunc::PairComparerByID); +} + +int ImGuiStorage::GetInt(ImGuiID key, int default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_i; +} + +bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const +{ + return GetInt(key, default_val ? 1 : 0) != 0; +} + +float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_f; +} + +void* ImGuiStorage::GetVoidPtr(ImGuiID key) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return NULL; + return it->val_p; +} + +// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. +int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_i; +} + +bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val) +{ + return (bool*)GetIntRef(key, default_val ? 1 : 0); +} + +float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_f; +} + +void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_p; +} + +// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame) +void ImGuiStorage::SetInt(ImGuiID key, int val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_i = val; +} + +void ImGuiStorage::SetBool(ImGuiID key, bool val) +{ + SetInt(key, val ? 1 : 0); +} + +void ImGuiStorage::SetFloat(ImGuiID key, float val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_f = val; +} + +void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_p = val; +} + +void ImGuiStorage::SetAllInt(int v) +{ + for (int i = 0; i < Data.Size; i++) + Data[i].val_i = v; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextFilter +//----------------------------------------------------------------------------- + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077 +{ + InputBuf[0] = 0; + CountGrep = 0; + if (default_filter) + { + ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); + Build(); + } +} + +bool ImGuiTextFilter::Draw(const char* label, float width) +{ + if (width != 0.0f) + ImGui::SetNextItemWidth(width); + bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); + if (value_changed) + Build(); + return value_changed; +} + +void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector* out) const +{ + out->resize(0); + const char* wb = b; + const char* we = wb; + while (we < e) + { + if (*we == separator) + { + out->push_back(ImGuiTextRange(wb, we)); + wb = we + 1; + } + we++; + } + if (wb != we) + out->push_back(ImGuiTextRange(wb, we)); +} + +void ImGuiTextFilter::Build() +{ + Filters.resize(0); + ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf)); + input_range.split(',', &Filters); + + CountGrep = 0; + for (ImGuiTextRange& f : Filters) + { + while (f.b < f.e && ImCharIsBlankA(f.b[0])) + f.b++; + while (f.e > f.b && ImCharIsBlankA(f.e[-1])) + f.e--; + if (f.empty()) + continue; + if (f.b[0] != '-') + CountGrep += 1; + } +} + +bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const +{ + if (Filters.empty()) + return true; + + if (text == NULL) + text = ""; + + for (const ImGuiTextRange& f : Filters) + { + if (f.empty()) + continue; + if (f.b[0] == '-') + { + // Subtract + if (ImStristr(text, text_end, f.b + 1, f.e) != NULL) + return false; + } + else + { + // Grep + if (ImStristr(text, text_end, f.b, f.e) != NULL) + return true; + } + } + + // Implicit * grep + if (CountGrep == 0) + return true; + + return false; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextBuffer, ImGuiTextIndex +//----------------------------------------------------------------------------- + +// On some platform vsnprintf() takes va_list by reference and modifies it. +// va_copy is the 'correct' way to copy a va_list but Visual Studio prior to 2013 doesn't have it. +#ifndef va_copy +#if defined(__GNUC__) || defined(__clang__) +#define va_copy(dest, src) __builtin_va_copy(dest, src) +#else +#define va_copy(dest, src) (dest = src) +#endif +#endif + +char ImGuiTextBuffer::EmptyString[1] = { 0 }; + +void ImGuiTextBuffer::append(const char* str, const char* str_end) +{ + int len = str_end ? (int)(str_end - str) : (int)strlen(str); + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + memcpy(&Buf[write_off - 1], str, (size_t)len); + Buf[write_off - 1 + len] = 0; +} + +void ImGuiTextBuffer::appendf(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + appendfv(fmt, args); + va_end(args); +} + +// Helper: Text buffer for logging/accumulating text +void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) +{ + va_list args_copy; + va_copy(args_copy, args); + + int len = ImFormatStringV(NULL, 0, fmt, args); // FIXME-OPT: could do a first pass write attempt, likely successful on first pass. + if (len <= 0) + { + va_end(args_copy); + return; + } + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + ImFormatStringV(&Buf[write_off - 1], (size_t)len + 1, fmt, args_copy); + va_end(args_copy); +} + +void ImGuiTextIndex::append(const char* base, int old_size, int new_size) +{ + IM_ASSERT(old_size >= 0 && new_size >= old_size && new_size >= EndOffset); + if (old_size == new_size) + return; + if (EndOffset == 0 || base[EndOffset - 1] == '\n') + LineOffsets.push_back(EndOffset); + const char* base_end = base + new_size; + for (const char* p = base + old_size; (p = (const char*)memchr(p, '\n', base_end - p)) != 0; ) + if (++p < base_end) // Don't push a trailing offset on last \n + LineOffsets.push_back((int)(intptr_t)(p - base)); + EndOffset = ImMax(EndOffset, new_size); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiListClipper +//----------------------------------------------------------------------------- + +// FIXME-TABLE: This prevents us from using ImGuiListClipper _inside_ a table cell. +// The problem we have is that without a Begin/End scheme for rows using the clipper is ambiguous. +static bool GetSkipItemForListClipping() +{ + ImGuiContext& g = *GImGui; + return (g.CurrentTable ? g.CurrentTable->HostSkipItems : g.CurrentWindow->SkipItems); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy helper to calculate coarse clipping of large list of evenly sized items. +// This legacy API is not ideal because it assumes we will return a single contiguous rectangle. +// Prefer using ImGuiListClipper which can returns non-contiguous ranges. +void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + *out_items_display_start = 0; + *out_items_display_end = items_count; + return; + } + if (GetSkipItemForListClipping()) + { + *out_items_display_start = *out_items_display_end = 0; + return; + } + + // We create the union of the ClipRect and the scoring rect which at worst should be 1 page away from ClipRect + // We don't include g.NavId's rectangle in there (unless g.NavJustMovedToId is set) because the rectangle enlargement can get costly. + ImRect rect = window->ClipRect; + if (g.NavMoveScoringItems) + rect.Add(g.NavScoringNoClipRect); + if (g.NavJustMovedToId && window->NavLastIds[0] == g.NavJustMovedToId) + rect.Add(WindowRectRelToAbs(window, window->NavRectRel[0])); // Could store and use NavJustMovedToRectRel + + const ImVec2 pos = window->DC.CursorPos; + int start = (int)((rect.Min.y - pos.y) / items_height); + int end = (int)((rect.Max.y - pos.y) / items_height); + + // When performing a navigation request, ensure we have one item extra in the direction we are moving to + // FIXME: Verify this works with tabbing + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) + start--; + if (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) + end++; + + start = ImClamp(start, 0, items_count); + end = ImClamp(end + 1, start, items_count); + *out_items_display_start = start; + *out_items_display_end = end; +} +#endif + +static void ImGuiListClipper_SortAndFuseRanges(ImVector& ranges, int offset = 0) +{ + if (ranges.Size - offset <= 1) + return; + + // Helper to order ranges and fuse them together if possible (bubble sort is fine as we are only sorting 2-3 entries) + for (int sort_end = ranges.Size - offset - 1; sort_end > 0; --sort_end) + for (int i = offset; i < sort_end + offset; ++i) + if (ranges[i].Min > ranges[i + 1].Min) + ImSwap(ranges[i], ranges[i + 1]); + + // Now fuse ranges together as much as possible. + for (int i = 1 + offset; i < ranges.Size; i++) + { + IM_ASSERT(!ranges[i].PosToIndexConvert && !ranges[i - 1].PosToIndexConvert); + if (ranges[i - 1].Max < ranges[i].Min) + continue; + ranges[i - 1].Min = ImMin(ranges[i - 1].Min, ranges[i].Min); + ranges[i - 1].Max = ImMax(ranges[i - 1].Max, ranges[i].Max); + ranges.erase(ranges.Data + i); + i--; + } +} + +static void ImGuiListClipper_SeekCursorAndSetupPrevLine(float pos_y, float line_height) +{ + // Set cursor position and a few other things so that SetScrollHereY() and Columns() can work when seeking cursor. + // FIXME: It is problematic that we have to do that here, because custom/equivalent end-user code would stumble on the same issue. + // The clipper should probably have a final step to display the last item in a regular manner, maybe with an opt-out flag for data sets which may have costly seek? + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float off_y = pos_y - window->DC.CursorPos.y; + window->DC.CursorPos.y = pos_y; + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, pos_y - g.Style.ItemSpacing.y); + window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. + window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. + if (ImGuiOldColumns* columns = window->DC.CurrentColumns) + columns->LineMinY = window->DC.CursorPos.y; // Setting this so that cell Y position are set properly + if (ImGuiTable* table = g.CurrentTable) + { + if (table->IsInsideRow) + ImGui::TableEndRow(table); + table->RowPosY2 = window->DC.CursorPos.y; + const int row_increase = (int)((off_y / line_height) + 0.5f); + //table->CurrentRow += row_increase; // Can't do without fixing TableEndRow() + table->RowBgColorCounter += row_increase; + } +} + +static void ImGuiListClipper_SeekCursorForItem(ImGuiListClipper* clipper, int item_n) +{ + // StartPosY starts from ItemsFrozen hence the subtraction + // Perform the add and multiply with double to allow seeking through larger ranges + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + float pos_y = (float)((double)clipper->StartPosY + data->LossynessOffset + (double)(item_n - data->ItemsFrozen) * clipper->ItemsHeight); + ImGuiListClipper_SeekCursorAndSetupPrevLine(pos_y, clipper->ItemsHeight); +} + +ImGuiListClipper::ImGuiListClipper() +{ + memset(this, 0, sizeof(*this)); +} + +ImGuiListClipper::~ImGuiListClipper() +{ + End(); +} + +void ImGuiListClipper::Begin(int items_count, float items_height) +{ + if (Ctx == NULL) + Ctx = ImGui::GetCurrentContext(); + + ImGuiContext& g = *Ctx; + ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Begin(%d,%.2f) in '%s'\n", items_count, items_height, window->Name); + + if (ImGuiTable* table = g.CurrentTable) + if (table->IsInsideRow) + ImGui::TableEndRow(table); + + StartPosY = window->DC.CursorPos.y; + ItemsHeight = items_height; + ItemsCount = items_count; + DisplayStart = -1; + DisplayEnd = 0; + + // Acquire temporary buffer + if (++g.ClipperTempDataStacked > g.ClipperTempData.Size) + g.ClipperTempData.resize(g.ClipperTempDataStacked, ImGuiListClipperData()); + ImGuiListClipperData* data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->Reset(this); + data->LossynessOffset = window->DC.CursorStartPosLossyness.y; + TempData = data; +} + +void ImGuiListClipper::End() +{ + if (ImGuiListClipperData* data = (ImGuiListClipperData*)TempData) + { + // In theory here we should assert that we are already at the right position, but it seems saner to just seek at the end and not assert/crash the user. + ImGuiContext& g = *Ctx; + IMGUI_DEBUG_LOG_CLIPPER("Clipper: End() in '%s'\n", g.CurrentWindow->Name); + if (ItemsCount >= 0 && ItemsCount < INT_MAX && DisplayStart >= 0) + ImGuiListClipper_SeekCursorForItem(this, ItemsCount); + + // Restore temporary buffer and fix back pointers which may be invalidated when nesting + IM_ASSERT(data->ListClipper == this); + data->StepNo = data->Ranges.Size; + if (--g.ClipperTempDataStacked > 0) + { + data = &g.ClipperTempData[g.ClipperTempDataStacked - 1]; + data->ListClipper->TempData = data; + } + TempData = NULL; + } + ItemsCount = -1; +} + +void ImGuiListClipper::IncludeItemsByIndex(int item_begin, int item_end) +{ + ImGuiListClipperData* data = (ImGuiListClipperData*)TempData; + IM_ASSERT(DisplayStart < 0); // Only allowed after Begin() and if there has not been a specified range yet. + IM_ASSERT(item_begin <= item_end); + if (item_begin < item_end) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(item_begin, item_end)); +} + +static bool ImGuiListClipper_StepInternal(ImGuiListClipper* clipper) +{ + ImGuiContext& g = *clipper->Ctx; + ImGuiWindow* window = g.CurrentWindow; + ImGuiListClipperData* data = (ImGuiListClipperData*)clipper->TempData; + IM_ASSERT(data != NULL && "Called ImGuiListClipper::Step() too many times, or before ImGuiListClipper::Begin() ?"); + + ImGuiTable* table = g.CurrentTable; + if (table && table->IsInsideRow) + ImGui::TableEndRow(table); + + // No items + if (clipper->ItemsCount == 0 || GetSkipItemForListClipping()) + return false; + + // While we are in frozen row state, keep displaying items one by one, unclipped + // FIXME: Could be stored as a table-agnostic state. + if (data->StepNo == 0 && table != NULL && !table->IsUnfrozenRows) + { + clipper->DisplayStart = data->ItemsFrozen; + clipper->DisplayEnd = ImMin(data->ItemsFrozen + 1, clipper->ItemsCount); + if (clipper->DisplayStart < clipper->DisplayEnd) + data->ItemsFrozen++; + return true; + } + + // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element height) + bool calc_clipping = false; + if (data->StepNo == 0) + { + clipper->StartPosY = window->DC.CursorPos.y; + if (clipper->ItemsHeight <= 0.0f) + { + // Submit the first item (or range) so we can measure its height (generally the first range is 0..1) + data->Ranges.push_front(ImGuiListClipperRange::FromIndices(data->ItemsFrozen, data->ItemsFrozen + 1)); + clipper->DisplayStart = ImMax(data->Ranges[0].Min, data->ItemsFrozen); + clipper->DisplayEnd = ImMin(data->Ranges[0].Max, clipper->ItemsCount); + data->StepNo = 1; + return true; + } + calc_clipping = true; // If on the first step with known item height, calculate clipping. + } + + // Step 1: Let the clipper infer height from first range + if (clipper->ItemsHeight <= 0.0f) + { + IM_ASSERT(data->StepNo == 1); + if (table) + IM_ASSERT(table->RowPosY1 == clipper->StartPosY && table->RowPosY2 == window->DC.CursorPos.y); + + clipper->ItemsHeight = (window->DC.CursorPos.y - clipper->StartPosY) / (float)(clipper->DisplayEnd - clipper->DisplayStart); + bool affected_by_floating_point_precision = ImIsFloatAboveGuaranteedIntegerPrecision(clipper->StartPosY) || ImIsFloatAboveGuaranteedIntegerPrecision(window->DC.CursorPos.y); + if (affected_by_floating_point_precision) + clipper->ItemsHeight = window->DC.PrevLineSize.y + g.Style.ItemSpacing.y; // FIXME: Technically wouldn't allow multi-line entries. + + IM_ASSERT(clipper->ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); + calc_clipping = true; // If item height had to be calculated, calculate clipping afterwards. + } + + // Step 0 or 1: Calculate the actual ranges of visible elements. + const int already_submitted = clipper->DisplayEnd; + if (calc_clipping) + { + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(0, clipper->ItemsCount)); + } + else + { + // Add range selected to be included for navigation + const bool is_nav_request = (g.NavMoveScoringItems && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (is_nav_request) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(g.NavScoringNoClipRect.Min.y, g.NavScoringNoClipRect.Max.y, 0, 0)); + if (is_nav_request && (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) && g.NavTabbingDir == -1) + data->Ranges.push_back(ImGuiListClipperRange::FromIndices(clipper->ItemsCount - 1, clipper->ItemsCount)); + + // Add focused/active item + ImRect nav_rect_abs = ImGui::WindowRectRelToAbs(window, window->NavRectRel[0]); + if (g.NavId != 0 && window->NavLastIds[0] == g.NavId) + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(nav_rect_abs.Min.y, nav_rect_abs.Max.y, 0, 0)); + + // Add visible range + const int off_min = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Up) ? -1 : 0; + const int off_max = (is_nav_request && g.NavMoveClipDir == ImGuiDir_Down) ? 1 : 0; + data->Ranges.push_back(ImGuiListClipperRange::FromPositions(window->ClipRect.Min.y, window->ClipRect.Max.y, off_min, off_max)); + } + + // Convert position ranges to item index ranges + // - Very important: when a starting position is after our maximum item, we set Min to (ItemsCount - 1). This allows us to handle most forms of wrapping. + // - Due to how Selectable extra padding they tend to be "unaligned" with exact unit in the item list, + // which with the flooring/ceiling tend to lead to 2 items instead of one being submitted. + for (ImGuiListClipperRange& range : data->Ranges) + if (range.PosToIndexConvert) + { + int m1 = (int)(((double)range.Min - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight); + int m2 = (int)((((double)range.Max - window->DC.CursorPos.y - data->LossynessOffset) / clipper->ItemsHeight) + 0.999999f); + range.Min = ImClamp(already_submitted + m1 + range.PosToIndexOffsetMin, already_submitted, clipper->ItemsCount - 1); + range.Max = ImClamp(already_submitted + m2 + range.PosToIndexOffsetMax, range.Min + 1, clipper->ItemsCount); + range.PosToIndexConvert = false; + } + ImGuiListClipper_SortAndFuseRanges(data->Ranges, data->StepNo); + } + + // Step 0+ (if item height is given in advance) or 1+: Display the next range in line. + while (data->StepNo < data->Ranges.Size) + { + clipper->DisplayStart = ImMax(data->Ranges[data->StepNo].Min, already_submitted); + clipper->DisplayEnd = ImMin(data->Ranges[data->StepNo].Max, clipper->ItemsCount); + if (clipper->DisplayStart > already_submitted) //-V1051 + ImGuiListClipper_SeekCursorForItem(clipper, clipper->DisplayStart); + data->StepNo++; + if (clipper->DisplayStart == clipper->DisplayEnd && data->StepNo < data->Ranges.Size) + continue; + return true; + } + + // After the last step: Let the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), + // Advance the cursor to the end of the list and then returns 'false' to end the loop. + if (clipper->ItemsCount < INT_MAX) + ImGuiListClipper_SeekCursorForItem(clipper, clipper->ItemsCount); + + return false; +} + +bool ImGuiListClipper::Step() +{ + ImGuiContext& g = *Ctx; + bool need_items_height = (ItemsHeight <= 0.0f); + bool ret = ImGuiListClipper_StepInternal(this); + if (ret && (DisplayStart == DisplayEnd)) + ret = false; + if (g.CurrentTable && g.CurrentTable->IsUnfrozenRows == false) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): inside frozen table row.\n"); + if (need_items_height && ItemsHeight > 0.0f) + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): computed ItemsHeight: %.2f.\n", ItemsHeight); + if (ret) + { + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): display %d to %d.\n", DisplayStart, DisplayEnd); + } + else + { + IMGUI_DEBUG_LOG_CLIPPER("Clipper: Step(): End.\n"); + End(); + } + return ret; +} + +//----------------------------------------------------------------------------- +// [SECTION] STYLING +//----------------------------------------------------------------------------- + +ImGuiStyle& ImGui::GetStyle() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->Style; +} + +ImU32 ImGui::GetColorU32(ImGuiCol idx, float alpha_mul) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = style.Colors[idx]; + c.w *= style.Alpha * alpha_mul; + return ColorConvertFloat4ToU32(c); +} + +ImU32 ImGui::GetColorU32(const ImVec4& col) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = col; + c.w *= style.Alpha; + return ColorConvertFloat4ToU32(c); +} + +const ImVec4& ImGui::GetStyleColorVec4(ImGuiCol idx) +{ + ImGuiStyle& style = GImGui->Style; + return style.Colors[idx]; +} + +ImU32 ImGui::GetColorU32(ImU32 col) +{ + ImGuiStyle& style = GImGui->Style; + if (style.Alpha >= 1.0f) + return col; + ImU32 a = (col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT; + a = (ImU32)(a * style.Alpha); // We don't need to clamp 0..255 because Style.Alpha is in 0..1 range. + return (col & ~IM_COL32_A_MASK) | (a << IM_COL32_A_SHIFT); +} + +// FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32 +void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = ColorConvertU32ToFloat4(col); +} + +void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorStack.push_back(backup); + g.Style.Colors[idx] = col; +} + +void ImGui::PopStyleColor(int count) +{ + ImGuiContext& g = *GImGui; + if (g.ColorStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.ColorStack.Size > count, "Calling PopStyleColor() too many times: stack underflow."); + count = g.ColorStack.Size; + } + while (count > 0) + { + ImGuiColorMod& backup = g.ColorStack.back(); + g.Style.Colors[backup.Col] = backup.BackupValue; + g.ColorStack.pop_back(); + count--; + } +} + +static const ImGuiCol GWindowDockStyleColors[ImGuiWindowDockStyleCol_COUNT] = +{ + ImGuiCol_Text, ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive +}; + +static const ImGuiDataVarInfo GStyleVarInfo[] = +{ + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, Alpha) }, // ImGuiStyleVar_Alpha + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, DisabledAlpha) }, // ImGuiStyleVar_DisabledAlpha + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowPadding) }, // ImGuiStyleVar_WindowPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowRounding) }, // ImGuiStyleVar_WindowRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowBorderSize) }, // ImGuiStyleVar_WindowBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowMinSize) }, // ImGuiStyleVar_WindowMinSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowTitleAlign) }, // ImGuiStyleVar_WindowTitleAlign + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildRounding) }, // ImGuiStyleVar_ChildRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildBorderSize) }, // ImGuiStyleVar_ChildBorderSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupRounding) }, // ImGuiStyleVar_PopupRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupBorderSize) }, // ImGuiStyleVar_PopupBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, FramePadding) }, // ImGuiStyleVar_FramePadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameRounding) }, // ImGuiStyleVar_FrameRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameBorderSize) }, // ImGuiStyleVar_FrameBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemSpacing) }, // ImGuiStyleVar_ItemSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemInnerSpacing) }, // ImGuiStyleVar_ItemInnerSpacing + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, IndentSpacing) }, // ImGuiStyleVar_IndentSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, CellPadding) }, // ImGuiStyleVar_CellPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarSize) }, // ImGuiStyleVar_ScrollbarSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarRounding) }, // ImGuiStyleVar_ScrollbarRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabMinSize) }, // ImGuiStyleVar_GrabMinSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabRounding) }, // ImGuiStyleVar_GrabRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabRounding) }, // ImGuiStyleVar_TabRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabBarBorderSize) }, // ImGuiStyleVar_TabBarBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ButtonTextAlign) }, // ImGuiStyleVar_ButtonTextAlign + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SelectableTextAlign) }, // ImGuiStyleVar_SelectableTextAlign + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, SeparatorTextBorderSize) },// ImGuiStyleVar_SeparatorTextBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SeparatorTextAlign) }, // ImGuiStyleVar_SeparatorTextAlign + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SeparatorTextPadding) }, // ImGuiStyleVar_SeparatorTextPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, DockingSeparatorSize) }, // ImGuiStyleVar_DockingSeparatorSize +}; + +const ImGuiDataVarInfo* ImGui::GetStyleVarInfo(ImGuiStyleVar idx) +{ + IM_ASSERT(idx >= 0 && idx < ImGuiStyleVar_COUNT); + IM_STATIC_ASSERT(IM_ARRAYSIZE(GStyleVarInfo) == ImGuiStyleVar_COUNT); + return &GStyleVarInfo[idx]; +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, float val) +{ + ImGuiContext& g = *GImGui; + const ImGuiDataVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) + { + float* pvar = (float*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT_USER_ERROR(0, "Called PushStyleVar() variant with wrong type!"); +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) +{ + ImGuiContext& g = *GImGui; + const ImGuiDataVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2) + { + ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&g.Style); + g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT_USER_ERROR(0, "Called PushStyleVar() variant with wrong type!"); +} + +void ImGui::PopStyleVar(int count) +{ + ImGuiContext& g = *GImGui; + if (g.StyleVarStack.Size < count) + { + IM_ASSERT_USER_ERROR(g.StyleVarStack.Size > count, "Calling PopStyleVar() too many times: stack underflow."); + count = g.StyleVarStack.Size; + } + while (count > 0) + { + // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. + ImGuiStyleMod& backup = g.StyleVarStack.back(); + const ImGuiDataVarInfo* info = GetStyleVarInfo(backup.VarIdx); + void* data = info->GetVarPtr(&g.Style); + if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; } + else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; } + g.StyleVarStack.pop_back(); + count--; + } +} + +const char* ImGui::GetStyleColorName(ImGuiCol idx) +{ + // Create switch-case from enum with regexp: ImGuiCol_{.*}, --> case ImGuiCol_\1: return "\1"; + switch (idx) + { + case ImGuiCol_Text: return "Text"; + case ImGuiCol_TextDisabled: return "TextDisabled"; + case ImGuiCol_WindowBg: return "WindowBg"; + case ImGuiCol_ChildBg: return "ChildBg"; + case ImGuiCol_PopupBg: return "PopupBg"; + case ImGuiCol_Border: return "Border"; + case ImGuiCol_BorderShadow: return "BorderShadow"; + case ImGuiCol_FrameBg: return "FrameBg"; + case ImGuiCol_FrameBgHovered: return "FrameBgHovered"; + case ImGuiCol_FrameBgActive: return "FrameBgActive"; + case ImGuiCol_TitleBg: return "TitleBg"; + case ImGuiCol_TitleBgActive: return "TitleBgActive"; + case ImGuiCol_TitleBgCollapsed: return "TitleBgCollapsed"; + case ImGuiCol_MenuBarBg: return "MenuBarBg"; + case ImGuiCol_ScrollbarBg: return "ScrollbarBg"; + case ImGuiCol_ScrollbarGrab: return "ScrollbarGrab"; + case ImGuiCol_ScrollbarGrabHovered: return "ScrollbarGrabHovered"; + case ImGuiCol_ScrollbarGrabActive: return "ScrollbarGrabActive"; + case ImGuiCol_CheckMark: return "CheckMark"; + case ImGuiCol_SliderGrab: return "SliderGrab"; + case ImGuiCol_SliderGrabActive: return "SliderGrabActive"; + case ImGuiCol_Button: return "Button"; + case ImGuiCol_ButtonHovered: return "ButtonHovered"; + case ImGuiCol_ButtonActive: return "ButtonActive"; + case ImGuiCol_Header: return "Header"; + case ImGuiCol_HeaderHovered: return "HeaderHovered"; + case ImGuiCol_HeaderActive: return "HeaderActive"; + case ImGuiCol_Separator: return "Separator"; + case ImGuiCol_SeparatorHovered: return "SeparatorHovered"; + case ImGuiCol_SeparatorActive: return "SeparatorActive"; + case ImGuiCol_ResizeGrip: return "ResizeGrip"; + case ImGuiCol_ResizeGripHovered: return "ResizeGripHovered"; + case ImGuiCol_ResizeGripActive: return "ResizeGripActive"; + case ImGuiCol_Tab: return "Tab"; + case ImGuiCol_TabHovered: return "TabHovered"; + case ImGuiCol_TabActive: return "TabActive"; + case ImGuiCol_TabUnfocused: return "TabUnfocused"; + case ImGuiCol_TabUnfocusedActive: return "TabUnfocusedActive"; + case ImGuiCol_DockingPreview: return "DockingPreview"; + case ImGuiCol_DockingEmptyBg: return "DockingEmptyBg"; + case ImGuiCol_PlotLines: return "PlotLines"; + case ImGuiCol_PlotLinesHovered: return "PlotLinesHovered"; + case ImGuiCol_PlotHistogram: return "PlotHistogram"; + case ImGuiCol_PlotHistogramHovered: return "PlotHistogramHovered"; + case ImGuiCol_TableHeaderBg: return "TableHeaderBg"; + case ImGuiCol_TableBorderStrong: return "TableBorderStrong"; + case ImGuiCol_TableBorderLight: return "TableBorderLight"; + case ImGuiCol_TableRowBg: return "TableRowBg"; + case ImGuiCol_TableRowBgAlt: return "TableRowBgAlt"; + case ImGuiCol_TextSelectedBg: return "TextSelectedBg"; + case ImGuiCol_DragDropTarget: return "DragDropTarget"; + case ImGuiCol_NavHighlight: return "NavHighlight"; + case ImGuiCol_NavWindowingHighlight: return "NavWindowingHighlight"; + case ImGuiCol_NavWindowingDimBg: return "NavWindowingDimBg"; + case ImGuiCol_ModalWindowDimBg: return "ModalWindowDimBg"; + } + IM_ASSERT(0); + return "Unknown"; +} + + +//----------------------------------------------------------------------------- +// [SECTION] RENDER HELPERS +// Some of those (internal) functions are currently quite a legacy mess - their signature and behavior will change, +// we need a nicer separation between low-level functions and high-level functions relying on the ImGui context. +// Also see imgui_draw.cpp for some more which have been reworked to not rely on ImGui:: context. +//----------------------------------------------------------------------------- + +const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end) +{ + const char* text_display_end = text; + if (!text_end) + text_end = (const char*)-1; + + while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#')) + text_display_end++; + return text_display_end; +} + +// Internal ImGui functions to render text +// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText() +void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Hide anything after a '##' string + const char* text_display_end; + if (hide_text_after_hash) + { + text_display_end = FindRenderedTextEnd(text, text_end); + } + else + { + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + text_display_end = text_end; + } + + if (text != text_display_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_display_end); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_display_end); + } +} + +void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + + if (text != text_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_end); + } +} + +// Default clip_rect uses (pos_min,pos_max) +// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) +// FIXME-OPT: Since we have or calculate text_size we could coarse clip whole block immediately, especally for text above draw_list->DrawList. +// Effectively as this is called from widget doing their own coarse clipping it's not very valuable presently. Next time function will take +// better advantage of the render function taking size into account for coarse clipping. +void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Perform CPU side clipping for single clipped element to avoid using scissor state + ImVec2 pos = pos_min; + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_display_end, false, 0.0f); + + const ImVec2* clip_min = clip_rect ? &clip_rect->Min : &pos_min; + const ImVec2* clip_max = clip_rect ? &clip_rect->Max : &pos_max; + bool need_clipping = (pos.x + text_size.x >= clip_max->x) || (pos.y + text_size.y >= clip_max->y); + if (clip_rect) // If we had no explicit clipping rectangle then pos==clip_min + need_clipping |= (pos.x < clip_min->x) || (pos.y < clip_min->y); + + // Align whole block. We should defer that to the better rendering function when we'll have support for individual line alignment. + if (align.x > 0.0f) pos.x = ImMax(pos.x, pos.x + (pos_max.x - pos.x - text_size.x) * align.x); + if (align.y > 0.0f) pos.y = ImMax(pos.y, pos.y + (pos_max.y - pos.y - text_size.y) * align.y); + + // Render + if (need_clipping) + { + ImVec4 fine_clip_rect(clip_min->x, clip_min->y, clip_max->x, clip_max->y); + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, &fine_clip_rect); + } + else + { + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, NULL); + } +} + +void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Hide anything after a '##' string + const char* text_display_end = FindRenderedTextEnd(text, text_end); + const int text_len = (int)(text_display_end - text); + if (text_len == 0) + return; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + RenderTextClippedEx(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect); + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_display_end); +} + +// Another overly complex function until we reorganize everything into a nice all-in-one helper. +// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) which define _where_ the ellipsis is, from actual clipping of text and limit of the ellipsis display. +// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move. +void ImGui::RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end_full, const ImVec2* text_size_if_known) +{ + ImGuiContext& g = *GImGui; + if (text_end_full == NULL) + text_end_full = FindRenderedTextEnd(text); + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_end_full, false, 0.0f); + + //draw_list->AddLine(ImVec2(pos_max.x, pos_min.y - 4), ImVec2(pos_max.x, pos_max.y + 4), IM_COL32(0, 0, 255, 255)); + //draw_list->AddLine(ImVec2(ellipsis_max_x, pos_min.y-2), ImVec2(ellipsis_max_x, pos_max.y+2), IM_COL32(0, 255, 0, 255)); + //draw_list->AddLine(ImVec2(clip_max_x, pos_min.y), ImVec2(clip_max_x, pos_max.y), IM_COL32(255, 0, 0, 255)); + // FIXME: We could technically remove (last_glyph->AdvanceX - last_glyph->X1) from text_size.x here and save a few pixels. + if (text_size.x > pos_max.x - pos_min.x) + { + // Hello wo... + // | | | + // min max ellipsis_max + // <-> this is generally some padding value + + const ImFont* font = draw_list->_Data->Font; + const float font_size = draw_list->_Data->FontSize; + const float font_scale = font_size / font->FontSize; + const char* text_end_ellipsis = NULL; + const float ellipsis_width = font->EllipsisWidth * font_scale; + + // We can now claim the space between pos_max.x and ellipsis_max.x + const float text_avail_width = ImMax((ImMax(pos_max.x, ellipsis_max_x) - ellipsis_width) - pos_min.x, 1.0f); + float text_size_clipped_x = font->CalcTextSizeA(font_size, text_avail_width, 0.0f, text, text_end_full, &text_end_ellipsis).x; + if (text == text_end_ellipsis && text_end_ellipsis < text_end_full) + { + // Always display at least 1 character if there's no room for character + ellipsis + text_end_ellipsis = text + ImTextCountUtf8BytesFromChar(text, text_end_full); + text_size_clipped_x = font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text, text_end_ellipsis).x; + } + while (text_end_ellipsis > text && ImCharIsBlankA(text_end_ellipsis[-1])) + { + // Trim trailing space before ellipsis (FIXME: Supporting non-ascii blanks would be nice, for this we need a function to backtrack in UTF-8 text) + text_end_ellipsis--; + text_size_clipped_x -= font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text_end_ellipsis, text_end_ellipsis + 1).x; // Ascii blanks are always 1 byte + } + + // Render text, render ellipsis + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_ellipsis, &text_size, ImVec2(0.0f, 0.0f)); + ImVec2 ellipsis_pos = ImFloor(ImVec2(pos_min.x + text_size_clipped_x, pos_min.y)); + if (ellipsis_pos.x + ellipsis_width <= ellipsis_max_x) + for (int i = 0; i < font->EllipsisCharCount; i++, ellipsis_pos.x += font->EllipsisCharStep * font_scale) + font->RenderChar(draw_list, font_size, ellipsis_pos, GetColorU32(ImGuiCol_Text), font->EllipsisChar); + } + else + { + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_full, &text_size, ImVec2(0.0f, 0.0f)); + } + + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_end_full); +} + +// Render a rectangle shaped with optional rounding and borders +void ImGui::RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding); + const float border_size = g.Style.FrameBorderSize; + if (border && border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const float border_size = g.Style.FrameBorderSize; + if (border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + } +} + +void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags) +{ + ImGuiContext& g = *GImGui; + if (id != g.NavId) + return; + if (g.NavDisableHighlight && !(flags & ImGuiNavHighlightFlags_AlwaysDraw)) + return; + ImGuiWindow* window = g.CurrentWindow; + if (window->DC.NavHideHighlightOneFrame) + return; + + float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding; + ImRect display_rect = bb; + display_rect.ClipWith(window->ClipRect); + if (flags & ImGuiNavHighlightFlags_TypeDefault) + { + const float THICKNESS = 2.0f; + const float DISTANCE = 3.0f + THICKNESS * 0.5f; + display_rect.Expand(ImVec2(DISTANCE, DISTANCE)); + bool fully_visible = window->ClipRect.Contains(display_rect); + if (!fully_visible) + window->DrawList->PushClipRect(display_rect.Min, display_rect.Max); + window->DrawList->AddRect(display_rect.Min + ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), display_rect.Max - ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), GetColorU32(ImGuiCol_NavHighlight), rounding, 0, THICKNESS); + if (!fully_visible) + window->DrawList->PopClipRect(); + } + if (flags & ImGuiNavHighlightFlags_TypeThin) + { + window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, 0, 1.0f); + } +} + +void ImGui::RenderMouseCursor(ImVec2 base_pos, float base_scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); + ImFontAtlas* font_atlas = g.DrawListSharedData.Font->ContainerAtlas; + for (ImGuiViewportP* viewport : g.Viewports) + { + // We scale cursor with current viewport/monitor, however Windows 10 for its own hardware cursor seems to be using a different scale factor. + ImVec2 offset, size, uv[4]; + if (!font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) + continue; + const ImVec2 pos = base_pos - offset; + const float scale = base_scale * viewport->DpiScale; + if (!viewport->GetMainRect().Overlaps(ImRect(pos, pos + ImVec2(size.x + 2, size.y + 2) * scale))) + continue; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + ImTextureID tex_id = font_atlas->TexID; + draw_list->PushTextureID(tex_id); + draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); + draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); + draw_list->PopTextureID(); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] INITIALIZATION, SHUTDOWN +//----------------------------------------------------------------------------- + +// Internal state access - if you want to share Dear ImGui state between modules (e.g. DLL) or allocate it yourself +// Note that we still point to some static data and members (such as GFontAtlas), so the state instance you end up using will point to the static data within its module +ImGuiContext* ImGui::GetCurrentContext() +{ + return GImGui; +} + +void ImGui::SetCurrentContext(ImGuiContext* ctx) +{ +#ifdef IMGUI_SET_CURRENT_CONTEXT_FUNC + IMGUI_SET_CURRENT_CONTEXT_FUNC(ctx); // For custom thread-based hackery you may want to have control over this. +#else + GImGui = ctx; +#endif +} + +void ImGui::SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data) +{ + GImAllocatorAllocFunc = alloc_func; + GImAllocatorFreeFunc = free_func; + GImAllocatorUserData = user_data; +} + +// This is provided to facilitate copying allocators from one static/DLL boundary to another (e.g. retrieve default allocator of your executable address space) +void ImGui::GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data) +{ + *p_alloc_func = GImAllocatorAllocFunc; + *p_free_func = GImAllocatorFreeFunc; + *p_user_data = GImAllocatorUserData; +} + +ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); + SetCurrentContext(ctx); + Initialize(); + if (prev_ctx != NULL) + SetCurrentContext(prev_ctx); // Restore previous context if any, else keep new one. + return ctx; +} + +void ImGui::DestroyContext(ImGuiContext* ctx) +{ + ImGuiContext* prev_ctx = GetCurrentContext(); + if (ctx == NULL) //-V1051 + ctx = prev_ctx; + SetCurrentContext(ctx); + Shutdown(); + SetCurrentContext((prev_ctx != ctx) ? prev_ctx : NULL); + IM_DELETE(ctx); +} + +// IMPORTANT: ###xxx suffixes must be same in ALL languages +static const ImGuiLocEntry GLocalizationEntriesEnUS[] = +{ + { ImGuiLocKey_VersionStr, "Dear ImGui " IMGUI_VERSION " (" IM_STRINGIFY(IMGUI_VERSION_NUM) ")" }, + { ImGuiLocKey_TableSizeOne, "Size column to fit###SizeOne" }, + { ImGuiLocKey_TableSizeAllFit, "Size all columns to fit###SizeAll" }, + { ImGuiLocKey_TableSizeAllDefault, "Size all columns to default###SizeAll" }, + { ImGuiLocKey_TableResetOrder, "Reset order###ResetOrder" }, + { ImGuiLocKey_WindowingMainMenuBar, "(Main menu bar)" }, + { ImGuiLocKey_WindowingPopup, "(Popup)" }, + { ImGuiLocKey_WindowingUntitled, "(Untitled)" }, + { ImGuiLocKey_DockingHideTabBar, "Hide tab bar###HideTabBar" }, + { ImGuiLocKey_DockingHoldShiftToDock, "Hold SHIFT to enable Docking window."}, +}; + +void ImGui::Initialize() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(!g.Initialized && !g.SettingsLoaded); + + // Add .ini handle for ImGuiWindow and ImGuiTable types + { + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Window"; + ini_handler.TypeHash = ImHashStr("Window"); + ini_handler.ClearAllFn = WindowSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); + } + TableSettingsAddSettingsHandler(); + + // Setup default localization table + LocalizeRegisterEntries(GLocalizationEntriesEnUS, IM_ARRAYSIZE(GLocalizationEntriesEnUS)); + + // Setup default platform clipboard/IME handlers. + g.IO.GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations + g.IO.SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; + g.IO.ClipboardUserData = (void*)&g; // Default implementation use the ImGuiContext as user data (ideally those would be arguments to the function) + g.IO.SetPlatformImeDataFn = SetPlatformImeDataFn_DefaultImpl; + + // Create default viewport + ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)(); + viewport->ID = IMGUI_VIEWPORT_DEFAULT_ID; + viewport->Idx = 0; + viewport->PlatformWindowCreated = true; + viewport->Flags = ImGuiViewportFlags_OwnedByApp; + g.Viewports.push_back(viewport); + g.TempBuffer.resize(1024 * 3 + 1, 0); + g.ViewportCreatedCount++; + g.PlatformIO.Viewports.push_back(g.Viewports[0]); + +#ifdef IMGUI_HAS_DOCK + // Initialize Docking + DockContextInitialize(&g); +#endif + + g.Initialized = true; +} + +// This function is merely here to free heap allocations. +void ImGui::Shutdown() +{ + // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) + ImGuiContext& g = *GImGui; + if (g.IO.Fonts && g.FontAtlasOwnedByContext) + { + g.IO.Fonts->Locked = false; + IM_DELETE(g.IO.Fonts); + } + g.IO.Fonts = NULL; + g.DrawListSharedData.TempBuffer.clear(); + + // Cleanup of other data are conditional on actually having initialized Dear ImGui. + if (!g.Initialized) + return; + + // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) + if (g.SettingsLoaded && g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + + // Destroy platform windows + DestroyPlatformWindows(); + + // Shutdown extensions + DockContextShutdown(&g); + + CallContextHooks(&g, ImGuiContextHookType_Shutdown); + + // Clear everything else + g.Windows.clear_delete(); + g.WindowsFocusOrder.clear(); + g.WindowsTempSortBuffer.clear(); + g.CurrentWindow = NULL; + g.CurrentWindowStack.clear(); + g.WindowsById.Clear(); + g.NavWindow = NULL; + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; + g.MovingWindow = NULL; + + g.KeysRoutingTable.Clear(); + + g.ColorStack.clear(); + g.StyleVarStack.clear(); + g.FontStack.clear(); + g.OpenPopupStack.clear(); + g.BeginPopupStack.clear(); + g.NavTreeNodeStack.clear(); + + g.CurrentViewport = g.MouseViewport = g.MouseLastHoveredViewport = NULL; + g.Viewports.clear_delete(); + + g.TabBars.Clear(); + g.CurrentTabBarStack.clear(); + g.ShrinkWidthBuffer.clear(); + + g.ClipperTempData.clear_destruct(); + + g.Tables.Clear(); + g.TablesTempData.clear_destruct(); + g.DrawChannelsTempMergeBuffer.clear(); + + g.ClipboardHandlerData.clear(); + g.MenusIdSubmittedThisFrame.clear(); + g.InputTextState.ClearFreeMemory(); + g.InputTextDeactivatedState.ClearFreeMemory(); + + g.SettingsWindows.clear(); + g.SettingsHandlers.clear(); + + if (g.LogFile) + { +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + if (g.LogFile != stdout) +#endif + ImFileClose(g.LogFile); + g.LogFile = NULL; + } + g.LogBuffer.clear(); + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + + g.Initialized = false; +} + +// No specific ordering/dependency support, will see as needed +ImGuiID ImGui::AddContextHook(ImGuiContext* ctx, const ImGuiContextHook* hook) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook->Callback != NULL && hook->HookId == 0 && hook->Type != ImGuiContextHookType_PendingRemoval_); + g.Hooks.push_back(*hook); + g.Hooks.back().HookId = ++g.HookIdNext; + return g.HookIdNext; +} + +// Deferred removal, avoiding issue with changing vector while iterating it +void ImGui::RemoveContextHook(ImGuiContext* ctx, ImGuiID hook_id) +{ + ImGuiContext& g = *ctx; + IM_ASSERT(hook_id != 0); + for (ImGuiContextHook& hook : g.Hooks) + if (hook.HookId == hook_id) + hook.Type = ImGuiContextHookType_PendingRemoval_; +} + +// Call context hooks (used by e.g. test engine) +// We assume a small number of hooks so all stored in same array +void ImGui::CallContextHooks(ImGuiContext* ctx, ImGuiContextHookType hook_type) +{ + ImGuiContext& g = *ctx; + for (ImGuiContextHook& hook : g.Hooks) + if (hook.Type == hook_type) + hook.Callback(&g, &hook); +} + + +//----------------------------------------------------------------------------- +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +//----------------------------------------------------------------------------- + +// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods +ImGuiWindow::ImGuiWindow(ImGuiContext* ctx, const char* name) : DrawListInst(NULL) +{ + memset(this, 0, sizeof(*this)); + Ctx = ctx; + Name = ImStrdup(name); + NameBufLen = (int)strlen(name) + 1; + ID = ImHashStr(name); + IDStack.push_back(ID); + ViewportAllowPlatformMonitorExtend = -1; + ViewportPos = ImVec2(FLT_MAX, FLT_MAX); + MoveId = GetID("#MOVE"); + TabId = GetID("#TAB"); + ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); + AutoFitFramesX = AutoFitFramesY = -1; + AutoPosLastDirection = ImGuiDir_None; + SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = SetWindowDockAllowFlags = 0; + SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX); + LastFrameActive = -1; + LastFrameJustFocused = -1; + LastTimeActive = -1.0f; + FontWindowScale = FontDpiScale = 1.0f; + SettingsOffset = -1; + DockOrder = -1; + DrawList = &DrawListInst; + DrawList->_Data = &Ctx->DrawListSharedData; + DrawList->_OwnerName = Name; + NavPreferredScoringPosRel[0] = NavPreferredScoringPosRel[1] = ImVec2(FLT_MAX, FLT_MAX); + IM_PLACEMENT_NEW(&WindowClass) ImGuiWindowClass(); +} + +ImGuiWindow::~ImGuiWindow() +{ + IM_ASSERT(DrawList == &DrawListInst); + IM_DELETE(Name); + ColumnsStorage.clear_destruct(); +} + +ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *Ctx; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +ImGuiID ImGuiWindow::GetID(const void* ptr) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); + ImGuiContext& g = *Ctx; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_Pointer, ptr, NULL); + return id; +} + +ImGuiID ImGuiWindow::GetID(int n) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&n, sizeof(n), seed); + ImGuiContext& g = *Ctx; + if (g.DebugHookIdInfo == id) + ImGui::DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); + return id; +} + +// This is only used in rare/specific situations to manufacture an ID out of nowhere. +ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) +{ + ImGuiID seed = IDStack.back(); + ImRect r_rel = ImGui::WindowRectAbsToRel(this, r_abs); + ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); + return id; +} + +static void SetCurrentWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow = window; + g.CurrentTable = window && window->DC.CurrentTableIdx != -1 ? g.Tables.GetByIndex(window->DC.CurrentTableIdx) : NULL; + if (window) + { + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); + ImGui::NavUpdateCurrentWindowIsScrollPushableX(); + } +} + +void ImGui::GcCompactTransientMiscBuffers() +{ + ImGuiContext& g = *GImGui; + g.ItemFlagsStack.clear(); + g.GroupStack.clear(); + TableGcCompactSettings(); +} + +// Free up/compact internal window buffers, we can use this when a window becomes unused. +// Not freed: +// - ImGuiWindow, ImGuiWindowSettings, Name, StateStorage, ColumnsStorage (may hold useful data) +// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost. +void ImGui::GcCompactTransientWindowBuffers(ImGuiWindow* window) +{ + window->MemoryCompacted = true; + window->MemoryDrawListIdxCapacity = window->DrawList->IdxBuffer.Capacity; + window->MemoryDrawListVtxCapacity = window->DrawList->VtxBuffer.Capacity; + window->IDStack.clear(); + window->DrawList->_ClearFreeMemory(); + window->DC.ChildWindows.clear(); + window->DC.ItemWidthStack.clear(); + window->DC.TextWrapPosStack.clear(); +} + +void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) +{ + // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening. + // The other buffers tends to amortize much faster. + window->MemoryCompacted = false; + window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity); + window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity); + window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0; +} + +void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + // Clear previous active id + if (g.ActiveId != 0) + { + // While most behaved code would make an effort to not steal active id during window move/drag operations, + // we at least need to be resilient to it. Canceling the move is rather aggressive and users of 'master' branch + // may prefer the weird ill-defined half working situation ('docking' did assert), so may need to rework that. + if (g.MovingWindow != NULL && g.ActiveId == g.MovingWindow->MoveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() cancel MovingWindow\n"); + g.MovingWindow = NULL; + } + + // This could be written in a more general way (e.g associate a hook to ActiveId), + // but since this is currently quite an exception we'll leave it as is. + // One common scenario leading to this is: pressing Key ->NavMoveRequestApplyResult() -> ClearActiveId() + if (g.InputTextState.ID == g.ActiveId) + InputTextDeactivateHook(g.ActiveId); + } + + // Set active id + g.ActiveIdIsJustActivated = (g.ActiveId != id); + if (g.ActiveIdIsJustActivated) + { + IMGUI_DEBUG_LOG_ACTIVEID("SetActiveID() old:0x%08X (window \"%s\") -> new:0x%08X (window \"%s\")\n", g.ActiveId, g.ActiveIdWindow ? g.ActiveIdWindow->Name : "", id, window ? window->Name : ""); + g.ActiveIdTimer = 0.0f; + g.ActiveIdHasBeenPressedBefore = false; + g.ActiveIdHasBeenEditedBefore = false; + g.ActiveIdMouseButton = -1; + if (id != 0) + { + g.LastActiveId = id; + g.LastActiveIdTimer = 0.0f; + } + } + g.ActiveId = id; + g.ActiveIdAllowOverlap = false; + g.ActiveIdNoClearOnFocusLoss = false; + g.ActiveIdWindow = window; + g.ActiveIdHasBeenEditedThisFrame = false; + if (id) + { + g.ActiveIdIsAlive = id; + g.ActiveIdSource = (g.NavActivateId == id || g.NavJustMovedToId == id) ? g.NavInputSource : ImGuiInputSource_Mouse; + IM_ASSERT(g.ActiveIdSource != ImGuiInputSource_None); + } + + // Clear declaration of inputs claimed by the widget + // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif +} + +void ImGui::ClearActiveID() +{ + SetActiveID(0, NULL); // g.ActiveId = 0; +} + +void ImGui::SetHoveredID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.HoveredId = id; + g.HoveredIdAllowOverlap = false; + if (id != 0 && g.HoveredIdPreviousFrame != id) + g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; +} + +ImGuiID ImGui::GetHoveredID() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; +} + +// This is called by ItemAdd(). +// Code not using ItemAdd() may need to call this manually otherwise ActiveId will be cleared. In IMGUI_VERSION_NUM < 18717 this was called by GetID(). +void ImGui::KeepAliveID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + g.ActiveIdIsAlive = id; + if (g.ActiveIdPreviousFrame == id) + g.ActiveIdPreviousFrameIsAlive = true; +} + +void ImGui::MarkItemEdited(ImGuiID id) +{ + // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). + // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need to fill the data. + ImGuiContext& g = *GImGui; + if (g.LockMarkEdited > 0) + return; + if (g.ActiveId == id || g.ActiveId == 0) + { + g.ActiveIdHasBeenEditedThisFrame = true; + g.ActiveIdHasBeenEditedBefore = true; + } + + // We accept a MarkItemEdited() on drag and drop targets (see https://github.com/ocornut/imgui/issues/1875#issuecomment-978243343) + // We accept 'ActiveIdPreviousFrame == id' for InputText() returning an edit after it has been taken ActiveId away (#4714) + IM_ASSERT(g.DragDropActive || g.ActiveId == id || g.ActiveId == 0 || g.ActiveIdPreviousFrame == id); + + //IM_ASSERT(g.CurrentWindow->DC.LastItemId == id); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; +} + +bool ImGui::IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags) +{ + // An active popup disable hovering on other windows (apart from its own children) + // FIXME-OPT: This could be cached/stored within the window. + ImGuiContext& g = *GImGui; + if (g.NavWindow) + if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindowDockTree) + if (focused_root_window->WasActive && focused_root_window != window->RootWindowDockTree) + { + // For the purpose of those flags we differentiate "standard popup" from "modal popup" + // NB: The 'else' is important because Modal windows are also Popups. + bool want_inhibit = false; + if (focused_root_window->Flags & ImGuiWindowFlags_Modal) + want_inhibit = true; + else if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + want_inhibit = true; + + // Inhibit hover unless the window is within the stack of our modal/popup + if (want_inhibit) + if (!IsWindowWithinBeginStackOf(window->RootWindow, focused_root_window)) + return false; + } + + // Filter by viewport + if (window->Viewport != g.MouseViewport) + if (g.MovingWindow == NULL || window->RootWindowDockTree != g.MovingWindow->RootWindowDockTree) + return false; + + return true; +} + +static inline float CalcDelayFromHoveredFlags(ImGuiHoveredFlags flags) +{ + ImGuiContext& g = *GImGui; + if (flags & ImGuiHoveredFlags_DelayShort) + return g.Style.HoverDelayShort; + if (flags & ImGuiHoveredFlags_DelayNormal) + return g.Style.HoverDelayNormal; + return 0.0f; +} + +// This is roughly matching the behavior of internal-facing ItemHoverable() +// - we allow hovering to be true when ActiveId==window->MoveID, so that clicking on non-interactive items such as a Text() item still returns true with IsItemHovered() +// - this should work even for non-interactive items that have no ID, so we cannot use LastItemId +bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT((flags & ~ImGuiHoveredFlags_AllowedMaskForIsItemHovered) == 0 && "Invalid flags for IsItemHovered()!"); + + if (g.NavDisableMouseHover && !g.NavDisableHighlight && !(flags & ImGuiHoveredFlags_NoNavOverride)) + { + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + if (!IsItemFocused()) + return false; + + if (flags & ImGuiHoveredFlags_ForTooltip) + flags |= g.Style.HoverFlagsForTooltipNav; + } + else + { + // Test for bounding box overlap, as updated as ItemAdd() + ImGuiItemStatusFlags status_flags = g.LastItemData.StatusFlags; + if (!(status_flags & ImGuiItemStatusFlags_HoveredRect)) + return false; + + if (flags & ImGuiHoveredFlags_ForTooltip) + flags |= g.Style.HoverFlagsForTooltipMouse; + + IM_ASSERT((flags & (ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy)) == 0); // Flags not supported by this function + + // Done with rectangle culling so we can perform heavier checks now + // Test if we are hovering the right window (our window could be behind another window) + // [2021/03/02] Reworked / reverted the revert, finally. Note we want e.g. BeginGroup/ItemAdd/EndGroup to work as well. (#3851) + // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable + // to use IsItemHovered() after EndChild() itself. Until a solution is found I believe reverting to the test from 2017/09/27 is safe since this was + // the test that has been running for a long while. + if (g.HoveredWindow != window && (status_flags & ImGuiItemStatusFlags_HoveredWindow) == 0) + if ((flags & ImGuiHoveredFlags_AllowWhenOverlappedByWindow) == 0) + return false; + + // Test if another item is active (e.g. being dragged) + const ImGuiID id = g.LastItemData.ID; + if ((flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) == 0) + if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) + if (g.ActiveId != window->MoveId && g.ActiveId != window->TabId) + return false; + + // Test if interactions on this window are blocked by an active popup or modal. + // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. + if (!IsWindowContentHoverable(window, flags) && !(g.LastItemData.InFlags & ImGuiItemFlags_NoWindowHoverableCheck)) + return false; + + // Test if the item is disabled + if ((g.LastItemData.InFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + + // Special handling for calling after Begin() which represent the title bar or tab. + // When the window is skipped/collapsed (SkipItems==true) that last item (always ->MoveId submitted by Begin) + // will never be overwritten so we need to detect the case. + if (id == window->MoveId && window->WriteAccessed) + return false; + + // Test if using AllowOverlap and overlapped + if ((g.LastItemData.InFlags & ImGuiItemFlags_AllowOverlap) && id != 0) + if ((flags & ImGuiHoveredFlags_AllowWhenOverlappedByItem) == 0) + if (g.HoveredIdPreviousFrame != g.LastItemData.ID) + return false; + } + + // Handle hover delay + // (some ideas: https://www.nngroup.com/articles/timing-exposing-content) + const float delay = CalcDelayFromHoveredFlags(flags); + if (delay > 0.0f || (flags & ImGuiHoveredFlags_Stationary)) + { + ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromRectangle(g.LastItemData.Rect); + if ((flags & ImGuiHoveredFlags_NoSharedDelay) && (g.HoverItemDelayIdPreviousFrame != hover_delay_id)) + g.HoverItemDelayTimer = 0.0f; + g.HoverItemDelayId = hover_delay_id; + + // When changing hovered item we requires a bit of stationary delay before activating hover timer, + // but once unlocked on a given item we also moving. + //if (g.HoverDelayTimer >= delay && (g.HoverDelayTimer - g.IO.DeltaTime < delay || g.MouseStationaryTimer - g.IO.DeltaTime < g.Style.HoverStationaryDelay)) { IMGUI_DEBUG_LOG("HoverDelayTimer = %f/%f, MouseStationaryTimer = %f\n", g.HoverDelayTimer, delay, g.MouseStationaryTimer); } + if ((flags & ImGuiHoveredFlags_Stationary) != 0 && g.HoverItemUnlockedStationaryId != hover_delay_id) + return false; + + if (g.HoverItemDelayTimer < delay) + return false; + } + + return true; +} + +// Internal facing ItemHoverable() used when submitting widgets. Differs slightly from IsItemHovered(). +// (this does not rely on LastItemData it can be called from a ButtonBehavior() call not following an ItemAdd() call) +// FIXME-LEGACY: the 'ImGuiItemFlags item_flags' parameter was added on 2023-06-28. +// If you used this in your legacy/custom widgets code: +// - Commonly: if your ItemHoverable() call comes after an ItemAdd() call: pass 'item_flags = g.LastItemData.InFlags'. +// - Rare: otherwise you may pass 'item_flags = 0' (ImGuiItemFlags_None) unless you want to benefit from special behavior handled by ItemHoverable. +bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id, ImGuiItemFlags item_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.HoveredWindow != window) + return false; + if (!IsMouseHoveringRect(bb.Min, bb.Max)) + return false; + + if (g.HoveredId != 0 && g.HoveredId != id && !g.HoveredIdAllowOverlap) + return false; + if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) + return false; + + // Done with rectangle culling so we can perform heavier checks now. + if (!(item_flags & ImGuiItemFlags_NoWindowHoverableCheck) && !IsWindowContentHoverable(window, ImGuiHoveredFlags_None)) + { + g.HoveredIdDisabled = true; + return false; + } + + // We exceptionally allow this function to be called with id==0 to allow using it for easy high-level + // hover test in widgets code. We could also decide to split this function is two. + if (id != 0) + { + // Drag source doesn't report as hovered + if (g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover)) + return false; + + SetHoveredID(id); + + // AllowOverlap mode (rarely used) requires previous frame HoveredId to be null or to match. + // This allows using patterns where a later submitted widget overlaps a previous one. Generally perceived as a front-to-back hit-test. + if (item_flags & ImGuiItemFlags_AllowOverlap) + { + g.HoveredIdAllowOverlap = true; + if (g.HoveredIdPreviousFrame != id) + return false; + } + } + + // When disabled we'll return false but still set HoveredId + if (item_flags & ImGuiItemFlags_Disabled) + { + // Release active id if turning disabled + if (g.ActiveId == id && id != 0) + ClearActiveID(); + g.HoveredIdDisabled = true; + return false; + } + + if (id != 0) + { + // [DEBUG] Item Picker tool! + // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making + // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered + // items if we performed the test in ItemAdd(), but that would incur a small runtime cost. + if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) + GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); + if (g.DebugItemPickerBreakId == id) + IM_DEBUG_BREAK(); + } + + if (g.NavDisableMouseHover) + return false; + + return true; +} + +// FIXME: This is inlined/duplicated in ItemAdd() +bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!bb.Overlaps(window->ClipRect)) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (!g.LogEnabled) + return true; + return false; +} + +// This is also inlined in ItemAdd() +// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set g.LastItemData.DisplayRect. +void ImGui::SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags item_flags, const ImRect& item_rect) +{ + ImGuiContext& g = *GImGui; + g.LastItemData.ID = item_id; + g.LastItemData.InFlags = in_flags; + g.LastItemData.StatusFlags = item_flags; + g.LastItemData.Rect = g.LastItemData.NavRect = item_rect; +} + +float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) +{ + if (wrap_pos_x < 0.0f) + return 0.0f; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (wrap_pos_x == 0.0f) + { + // We could decide to setup a default wrapping max point for auto-resizing windows, + // or have auto-wrap (with unspecified wrapping pos) behave as a ContentSize extending function? + //if (window->Hidden && (window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) + // wrap_pos_x = ImMax(window->WorkRect.Min.x + g.FontSize * 10.0f, window->WorkRect.Max.x); + //else + wrap_pos_x = window->WorkRect.Max.x; + } + else if (wrap_pos_x > 0.0f) + { + wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space + } + + return ImMax(wrap_pos_x - pos.x, 1.0f); +} + +// IM_ALLOC() == ImGui::MemAlloc() +void* ImGui::MemAlloc(size_t size) +{ + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations++; + return (*GImAllocatorAllocFunc)(size, GImAllocatorUserData); +} + +// IM_FREE() == ImGui::MemFree() +void ImGui::MemFree(void* ptr) +{ + if (ptr) + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations--; + return (*GImAllocatorFreeFunc)(ptr, GImAllocatorUserData); +} + +const char* ImGui::GetClipboardText() +{ + ImGuiContext& g = *GImGui; + return g.IO.GetClipboardTextFn ? g.IO.GetClipboardTextFn(g.IO.ClipboardUserData) : ""; +} + +void ImGui::SetClipboardText(const char* text) +{ + ImGuiContext& g = *GImGui; + if (g.IO.SetClipboardTextFn) + g.IO.SetClipboardTextFn(g.IO.ClipboardUserData, text); +} + +const char* ImGui::GetVersion() +{ + return IMGUI_VERSION; +} + +ImGuiIO& ImGui::GetIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->IO; +} + +ImGuiPlatformIO& ImGui::GetPlatformIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() or ImGui::SetCurrentContext()?"); + return GImGui->PlatformIO; +} + +// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame() +ImDrawData* ImGui::GetDrawData() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = g.Viewports[0]; + return viewport->DrawDataP.Valid ? &viewport->DrawDataP : NULL; +} + +double ImGui::GetTime() +{ + return GImGui->Time; +} + +int ImGui::GetFrameCount() +{ + return GImGui->FrameCount; +} + +static ImDrawList* GetViewportBgFgDrawList(ImGuiViewportP* viewport, size_t drawlist_no, const char* drawlist_name) +{ + // Create the draw list on demand, because they are not frequently used for all viewports + ImGuiContext& g = *GImGui; + IM_ASSERT(drawlist_no < IM_ARRAYSIZE(viewport->BgFgDrawLists)); + ImDrawList* draw_list = viewport->BgFgDrawLists[drawlist_no]; + if (draw_list == NULL) + { + draw_list = IM_NEW(ImDrawList)(&g.DrawListSharedData); + draw_list->_OwnerName = drawlist_name; + viewport->BgFgDrawLists[drawlist_no] = draw_list; + } + + // Our ImDrawList system requires that there is always a command + if (viewport->BgFgDrawListsLastFrame[drawlist_no] != g.FrameCount) + { + draw_list->_ResetForNewFrame(); + draw_list->PushTextureID(g.IO.Fonts->TexID); + draw_list->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size, false); + viewport->BgFgDrawListsLastFrame[drawlist_no] = g.FrameCount; + } + return draw_list; +} + +ImDrawList* ImGui::GetBackgroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportBgFgDrawList((ImGuiViewportP*)viewport, 0, "##Background"); +} + +ImDrawList* ImGui::GetBackgroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetBackgroundDrawList(g.CurrentWindow->Viewport); +} + +ImDrawList* ImGui::GetForegroundDrawList(ImGuiViewport* viewport) +{ + return GetViewportBgFgDrawList((ImGuiViewportP*)viewport, 1, "##Foreground"); +} + +ImDrawList* ImGui::GetForegroundDrawList() +{ + ImGuiContext& g = *GImGui; + return GetForegroundDrawList(g.CurrentWindow->Viewport); +} + +ImDrawListSharedData* ImGui::GetDrawListSharedData() +{ + return &GImGui->DrawListSharedData; +} + +void ImGui::StartMouseMovingWindow(ImGuiWindow* window) +{ + // Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows. + // We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward. + // This is because we want ActiveId to be set even when the window is not permitted to move. + ImGuiContext& g = *GImGui; + FocusWindow(window); + SetActiveID(window->MoveId, window); + g.NavDisableHighlight = true; + g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - window->RootWindowDockTree->Pos; + g.ActiveIdNoClearOnFocusLoss = true; + SetActiveIdUsingAllKeyboardKeys(); + + bool can_move_window = true; + if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindowDockTree->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (ImGuiDockNode* node = window->DockNodeAsHost) + if (node->VisibleWindow && (node->VisibleWindow->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (can_move_window) + g.MovingWindow = window; +} + +// We use 'undock_floating_node == false' when dragging from title bar to allow moving groups of floating nodes without undocking them. +// - undock_floating_node == true: when dragging from a floating node within a hierarchy, always undock the node. +// - undock_floating_node == false: when dragging from a floating node within a hierarchy, move root window. +void ImGui::StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node) +{ + ImGuiContext& g = *GImGui; + bool can_undock_node = false; + if (node != NULL && node->VisibleWindow && (node->VisibleWindow->Flags & ImGuiWindowFlags_NoMove) == 0 && (node->MergedFlags & ImGuiDockNodeFlags_NoUndocking) == 0) + { + // Can undock if: + // - part of a floating node hierarchy with more than one visible node (if only one is visible, we'll just move the whole hierarchy) + // - part of a dockspace node hierarchy (trivia: undocking from a fixed/central node will create a new node and copy windows) + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (root_node->OnlyNodeWithWindows != node || root_node->CentralNode != NULL) // -V1051 PVS-Studio thinks node should be root_node and is wrong about that. + if (undock_floating_node || root_node->IsDockSpace()) + can_undock_node = true; + } + + const bool clicked = IsMouseClicked(0); + const bool dragging = IsMouseDragging(0, g.IO.MouseDragThreshold * 1.70f); + if (can_undock_node && dragging) + DockContextQueueUndockNode(&g, node); // Will lead to DockNodeStartMouseMovingWindow() -> StartMouseMovingWindow() being called next frame + else if (!can_undock_node && (clicked || dragging) && g.MovingWindow != window) + StartMouseMovingWindow(window); +} + +// Handle mouse moving window +// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing() +// FIXME: We don't have strong guarantee that g.MovingWindow stay synched with g.ActiveId == g.MovingWindow->MoveId. +// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs, +// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other. +void ImGui::UpdateMouseMovingWindowNewFrame() +{ + ImGuiContext& g = *GImGui; + if (g.MovingWindow != NULL) + { + // We actually want to move the root window. g.MovingWindow == window we clicked on (could be a child window). + // We track it to preserve Focus and so that generally ActiveIdWindow == MovingWindow and ActiveId == MovingWindow->MoveId for consistency. + KeepAliveID(g.ActiveId); + IM_ASSERT(g.MovingWindow && g.MovingWindow->RootWindowDockTree); + ImGuiWindow* moving_window = g.MovingWindow->RootWindowDockTree; + + // When a window stop being submitted while being dragged, it may will its viewport until next Begin() + const bool window_disappared = (!moving_window->WasActive && !moving_window->Active); + if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos) && !window_disappared) + { + ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; + if (moving_window->Pos.x != pos.x || moving_window->Pos.y != pos.y) + { + SetWindowPos(moving_window, pos, ImGuiCond_Always); + if (moving_window->Viewport && moving_window->ViewportOwned) // Synchronize viewport immediately because some overlays may relies on clipping rectangle before we Begin() into the window. + { + moving_window->Viewport->Pos = pos; + moving_window->Viewport->UpdateWorkRect(); + } + } + FocusWindow(g.MovingWindow); + } + else + { + if (!window_disappared) + { + // Try to merge the window back into the main viewport. + // This works because MouseViewport should be != MovingWindow->Viewport on release (as per code in UpdateViewports) + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + UpdateTryMergeWindowIntoHostViewport(moving_window, g.MouseViewport); + + // Restore the mouse viewport so that we don't hover the viewport _under_ the moved window during the frame we released the mouse button. + if (moving_window->Viewport && !IsDragDropPayloadBeingAccepted()) + g.MouseViewport = moving_window->Viewport; + + // Clear the NoInput window flag set by the Viewport system + if (moving_window->Viewport) + moving_window->Viewport->Flags &= ~ImGuiViewportFlags_NoInputs; + } + + g.MovingWindow = NULL; + ClearActiveID(); + } + } + else + { + // When clicking/dragging from a window that has the _NoMove flag, we still set the ActiveId in order to prevent hovering others. + if (g.ActiveIdWindow && g.ActiveIdWindow->MoveId == g.ActiveId) + { + KeepAliveID(g.ActiveId); + if (!g.IO.MouseDown[0]) + ClearActiveID(); + } + } +} + +// Initiate moving window when clicking on empty space or title bar. +// Handle left-click and right-click focus. +void ImGui::UpdateMouseMovingWindowEndFrame() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId != 0 || g.HoveredId != 0) + return; + + // Unless we just made a window/popup appear + if (g.NavWindow && g.NavWindow->Appearing) + return; + + // Click on empty space to focus window and start moving + // (after we're done with all our widgets, so e.g. clicking on docking tab-bar which have set HoveredId already and not get us here!) + if (g.IO.MouseClicked[0]) + { + // Handle the edge case of a popup being closed while clicking in its empty space. + // If we try to focus it, FocusWindow() > ClosePopupsOverWindow() will accidentally close any parent popups because they are not linked together any more. + ImGuiWindow* root_window = g.HoveredWindow ? g.HoveredWindow->RootWindow : NULL; + const bool is_closed_popup = root_window && (root_window->Flags & ImGuiWindowFlags_Popup) && !IsPopupOpen(root_window->PopupId, ImGuiPopupFlags_AnyPopupLevel); + + if (root_window != NULL && !is_closed_popup) + { + StartMouseMovingWindow(g.HoveredWindow); //-V595 + + // Cancel moving if clicked outside of title bar + if (g.IO.ConfigWindowsMoveFromTitleBarOnly) + if (!(root_window->Flags & ImGuiWindowFlags_NoTitleBar) || root_window->DockIsActive) + if (!root_window->TitleBarRect().Contains(g.IO.MouseClickedPos[0])) + g.MovingWindow = NULL; + + // Cancel moving if clicked over an item which was disabled or inhibited by popups (note that we know HoveredId == 0 already) + if (g.HoveredIdDisabled) + g.MovingWindow = NULL; + } + else if (root_window == NULL && g.NavWindow != NULL) + { + // Clicking on void disable focus + FocusWindow(NULL, ImGuiFocusRequestFlags_UnlessBelowModal); + } + } + + // With right mouse button we close popups without changing focus based on where the mouse is aimed + // Instead, focus will be restored to the window under the bottom-most closed popup. + // (The left mouse button path calls FocusWindow on the hovered window, which will lead NewFrame->ClosePopupsOverWindow to trigger) + if (g.IO.MouseClicked[1]) + { + // Find the top-most window between HoveredWindow and the top-most Modal Window. + // This is where we can trim the popup stack. + ImGuiWindow* modal = GetTopMostPopupModal(); + bool hovered_window_above_modal = g.HoveredWindow && (modal == NULL || IsWindowAbove(g.HoveredWindow, modal)); + ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); + } +} + +// This is called during NewFrame()->UpdateViewportsNewFrame() only. +// Need to keep in sync with SetWindowPos() +static void TranslateWindow(ImGuiWindow* window, const ImVec2& delta) +{ + window->Pos += delta; + window->ClipRect.Translate(delta); + window->OuterRectClipped.Translate(delta); + window->InnerRect.Translate(delta); + window->DC.CursorPos += delta; + window->DC.CursorStartPos += delta; + window->DC.CursorMaxPos += delta; + window->DC.IdealMaxPos += delta; +} + +static void ScaleWindow(ImGuiWindow* window, float scale) +{ + ImVec2 origin = window->Viewport->Pos; + window->Pos = ImFloor((window->Pos - origin) * scale + origin); + window->Size = ImFloor(window->Size * scale); + window->SizeFull = ImFloor(window->SizeFull * scale); + window->ContentSize = ImFloor(window->ContentSize * scale); +} + +static bool IsWindowActiveAndVisible(ImGuiWindow* window) +{ + return (window->Active) && (!window->Hidden); +} + +// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering, we want to dispatch inputs to the right target (imgui vs imgui+app) +void ImGui::UpdateHoveredWindowAndCaptureFlags() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + g.WindowsHoverPadding = ImMax(g.Style.TouchExtraPadding, ImVec2(WINDOWS_HOVER_PADDING, WINDOWS_HOVER_PADDING)); + + // Find the window hovered by mouse: + // - Child windows can extend beyond the limit of their parent so we need to derive HoveredRootWindow from HoveredWindow. + // - When moving a window we can skip the search, which also conveniently bypasses the fact that window->WindowRectClipped is lagging as this point of the frame. + // - We also support the moved window toggling the NoInputs flag after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms. + bool clear_hovered_windows = false; + FindHoveredWindow(); + IM_ASSERT(g.HoveredWindow == NULL || g.HoveredWindow == g.MovingWindow || g.HoveredWindow->Viewport == g.MouseViewport); + + // Modal windows prevents mouse from hovering behind them. + ImGuiWindow* modal_window = GetTopMostPopupModal(); + if (modal_window && g.HoveredWindow && !IsWindowWithinBeginStackOf(g.HoveredWindow->RootWindow, modal_window)) // FIXME-MERGE: RootWindowDockTree ? + clear_hovered_windows = true; + + // Disabled mouse? + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + clear_hovered_windows = true; + + // We track click ownership. When clicked outside of a window the click is owned by the application and + // won't report hovering nor request capture even while dragging over our windows afterward. + const bool has_open_popup = (g.OpenPopupStack.Size > 0); + const bool has_open_modal = (modal_window != NULL); + int mouse_earliest_down = -1; + bool mouse_any_down = false; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + if (io.MouseClicked[i]) + { + io.MouseDownOwned[i] = (g.HoveredWindow != NULL) || has_open_popup; + io.MouseDownOwnedUnlessPopupClose[i] = (g.HoveredWindow != NULL) || has_open_modal; + } + mouse_any_down |= io.MouseDown[i]; + if (io.MouseDown[i]) + if (mouse_earliest_down == -1 || io.MouseClickedTime[i] < io.MouseClickedTime[mouse_earliest_down]) + mouse_earliest_down = i; + } + const bool mouse_avail = (mouse_earliest_down == -1) || io.MouseDownOwned[mouse_earliest_down]; + const bool mouse_avail_unless_popup_close = (mouse_earliest_down == -1) || io.MouseDownOwnedUnlessPopupClose[mouse_earliest_down]; + + // If mouse was first clicked outside of ImGui bounds we also cancel out hovering. + // FIXME: For patterns of drag and drop across OS windows, we may need to rework/remove this test (first committed 311c0ca9 on 2015/02) + const bool mouse_dragging_extern_payload = g.DragDropActive && (g.DragDropSourceFlags & ImGuiDragDropFlags_SourceExtern) != 0; + if (!mouse_avail && !mouse_dragging_extern_payload) + clear_hovered_windows = true; + + if (clear_hovered_windows) + g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; + + // Update io.WantCaptureMouse for the user application (true = dispatch mouse info to Dear ImGui only, false = dispatch mouse to Dear ImGui + underlying app) + // Update io.WantCaptureMouseAllowPopupClose (experimental) to give a chance for app to react to popup closure with a drag + if (g.WantCaptureMouseNextFrame != -1) + { + io.WantCaptureMouse = io.WantCaptureMouseUnlessPopupClose = (g.WantCaptureMouseNextFrame != 0); + } + else + { + io.WantCaptureMouse = (mouse_avail && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_popup; + io.WantCaptureMouseUnlessPopupClose = (mouse_avail_unless_popup_close && (g.HoveredWindow != NULL || mouse_any_down)) || has_open_modal; + } + + // Update io.WantCaptureKeyboard for the user application (true = dispatch keyboard info to Dear ImGui only, false = dispatch keyboard info to Dear ImGui + underlying app) + if (g.WantCaptureKeyboardNextFrame != -1) + io.WantCaptureKeyboard = (g.WantCaptureKeyboardNextFrame != 0); + else + io.WantCaptureKeyboard = (g.ActiveId != 0) || (modal_window != NULL); + if (io.NavActive && (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && !(io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard)) + io.WantCaptureKeyboard = true; + + // Update io.WantTextInput flag, this is to allow systems without a keyboard (e.g. mobile, hand-held) to show a software keyboard if possible + io.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; +} + +void ImGui::NewFrame() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + ImGuiContext& g = *GImGui; + + // Remove pending delete hooks before frame start. + // This deferred removal avoid issues of removal while iterating the hook vector + for (int n = g.Hooks.Size - 1; n >= 0; n--) + if (g.Hooks[n].Type == ImGuiContextHookType_PendingRemoval_) + g.Hooks.erase(&g.Hooks[n]); + + CallContextHooks(&g, ImGuiContextHookType_NewFramePre); + + // Check and assert for various common IO and Configuration mistakes + g.ConfigFlagsLastFrame = g.ConfigFlagsCurrFrame; + ErrorCheckNewFrameSanityChecks(); + g.ConfigFlagsCurrFrame = g.IO.ConfigFlags; + + // Load settings on first frame, save settings when modified (after a delay) + UpdateSettings(); + + g.Time += g.IO.DeltaTime; + g.WithinFrameScope = true; + g.FrameCount += 1; + g.TooltipOverrideCount = 0; + g.WindowsActiveCount = 0; + g.MenusIdSubmittedThisFrame.resize(0); + + // Calculate frame-rate for the user, as a purely luxurious feature + g.FramerateSecPerFrameAccum += g.IO.DeltaTime - g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx]; + g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx] = g.IO.DeltaTime; + g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); + g.FramerateSecPerFrameCount = ImMin(g.FramerateSecPerFrameCount + 1, IM_ARRAYSIZE(g.FramerateSecPerFrame)); + g.IO.Framerate = (g.FramerateSecPerFrameAccum > 0.0f) ? (1.0f / (g.FramerateSecPerFrameAccum / (float)g.FramerateSecPerFrameCount)) : FLT_MAX; + + // Process input queue (trickle as many events as possible), turn events into writes to IO structure + g.InputEventsTrail.resize(0); + UpdateInputEvents(g.IO.ConfigInputTrickleEventQueue); + + // Update viewports (after processing input queue, so io.MouseHoveredViewport is set) + UpdateViewportsNewFrame(); + + // Setup current font and draw list shared data + // FIXME-VIEWPORT: the concept of a single ClipRectFullscreen is not ideal! + g.IO.Fonts->Locked = true; + SetCurrentFont(GetDefaultFont()); + IM_ASSERT(g.Font->IsLoaded()); + ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (ImGuiViewportP* viewport : g.Viewports) + virtual_space.Add(viewport->GetMainRect()); + g.DrawListSharedData.ClipRectFullscreen = virtual_space.ToVec4(); + g.DrawListSharedData.CurveTessellationTol = g.Style.CurveTessellationTol; + g.DrawListSharedData.SetCircleTessellationMaxError(g.Style.CircleTessellationMaxError); + g.DrawListSharedData.InitialFlags = ImDrawListFlags_None; + if (g.Style.AntiAliasedLines) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLines; + if (g.Style.AntiAliasedLinesUseTex && !(g.Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLinesUseTex; + if (g.Style.AntiAliasedFill) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedFill; + if (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AllowVtxOffset; + + // Mark rendering data as invalid to prevent user who may have a handle on it to use it. + for (ImGuiViewportP* viewport : g.Viewports) + { + viewport->DrawData = NULL; + viewport->DrawDataP.Valid = false; + } + + // Drag and drop keep the source ID alive so even if the source disappear our state is consistent + if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId) + KeepAliveID(g.DragDropPayload.SourceId); + + // Update HoveredId data + if (!g.HoveredIdPreviousFrame) + g.HoveredIdTimer = 0.0f; + if (!g.HoveredIdPreviousFrame || (g.HoveredId && g.ActiveId == g.HoveredId)) + g.HoveredIdNotActiveTimer = 0.0f; + if (g.HoveredId) + g.HoveredIdTimer += g.IO.DeltaTime; + if (g.HoveredId && g.ActiveId != g.HoveredId) + g.HoveredIdNotActiveTimer += g.IO.DeltaTime; + g.HoveredIdPreviousFrame = g.HoveredId; + g.HoveredId = 0; + g.HoveredIdAllowOverlap = false; + g.HoveredIdDisabled = false; + + // Clear ActiveID if the item is not alive anymore. + // In 1.87, the common most call to KeepAliveID() was moved from GetID() to ItemAdd(). + // As a result, custom widget using ButtonBehavior() _without_ ItemAdd() need to call KeepAliveID() themselves. + if (g.ActiveId != 0 && g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId) + { + IMGUI_DEBUG_LOG_ACTIVEID("NewFrame(): ClearActiveID() because it isn't marked alive anymore!\n"); + ClearActiveID(); + } + + // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) + if (g.ActiveId) + g.ActiveIdTimer += g.IO.DeltaTime; + g.LastActiveIdTimer += g.IO.DeltaTime; + g.ActiveIdPreviousFrame = g.ActiveId; + g.ActiveIdPreviousFrameWindow = g.ActiveIdWindow; + g.ActiveIdPreviousFrameHasBeenEditedBefore = g.ActiveIdHasBeenEditedBefore; + g.ActiveIdIsAlive = 0; + g.ActiveIdHasBeenEditedThisFrame = false; + g.ActiveIdPreviousFrameIsAlive = false; + g.ActiveIdIsJustActivated = false; + if (g.TempInputId != 0 && g.ActiveId != g.TempInputId) + g.TempInputId = 0; + if (g.ActiveId == 0) + { + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + g.ActiveIdUsingNavInputMask = 0x00; +#endif + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (g.ActiveId == 0) + g.ActiveIdUsingNavInputMask = 0; + else if (g.ActiveIdUsingNavInputMask != 0) + { + // If your custom widget code used: { g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); } + // Since IMGUI_VERSION_NUM >= 18804 it should be: { SetKeyOwner(ImGuiKey_Escape, g.ActiveId); SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId); } + if (g.ActiveIdUsingNavInputMask & (1 << ImGuiNavInput_Cancel)) + SetKeyOwner(ImGuiKey_Escape, g.ActiveId); + if (g.ActiveIdUsingNavInputMask & ~(1 << ImGuiNavInput_Cancel)) + IM_ASSERT(0); // Other values unsupported + } +#endif + + // Record when we have been stationary as this state is preserved while over same item. + // FIXME: The way this is expressed means user cannot alter HoverStationaryDelay during the frame to use varying values. + // To allow this we should store HoverItemMaxStationaryTime+ID and perform the >= check in IsItemHovered() function. + if (g.HoverItemDelayId != 0 && g.MouseStationaryTimer >= g.Style.HoverStationaryDelay) + g.HoverItemUnlockedStationaryId = g.HoverItemDelayId; + else if (g.HoverItemDelayId == 0) + g.HoverItemUnlockedStationaryId = 0; + if (g.HoveredWindow != NULL && g.MouseStationaryTimer >= g.Style.HoverStationaryDelay) + g.HoverWindowUnlockedStationaryId = g.HoveredWindow->ID; + else if (g.HoveredWindow == NULL) + g.HoverWindowUnlockedStationaryId = 0; + + // Update hover delay for IsItemHovered() with delays and tooltips + g.HoverItemDelayIdPreviousFrame = g.HoverItemDelayId; + if (g.HoverItemDelayId != 0) + { + g.HoverItemDelayTimer += g.IO.DeltaTime; + g.HoverItemDelayClearTimer = 0.0f; + g.HoverItemDelayId = 0; + } + else if (g.HoverItemDelayTimer > 0.0f) + { + // This gives a little bit of leeway before clearing the hover timer, allowing mouse to cross gaps + // We could expose 0.25f as style.HoverClearDelay but I am not sure of the logic yet, this is particularly subtle. + g.HoverItemDelayClearTimer += g.IO.DeltaTime; + if (g.HoverItemDelayClearTimer >= ImMax(0.25f, g.IO.DeltaTime * 2.0f)) // ~7 frames at 30 Hz + allow for low framerate + g.HoverItemDelayTimer = g.HoverItemDelayClearTimer = 0.0f; // May want a decaying timer, in which case need to clamp at max first, based on max of caller last requested timer. + } + + // Drag and drop + g.DragDropAcceptIdPrev = g.DragDropAcceptIdCurr; + g.DragDropAcceptIdCurr = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropWithinSource = false; + g.DragDropWithinTarget = false; + g.DragDropHoldJustPressedId = 0; + + // Close popups on focus lost (currently wip/opt-in) + //if (g.IO.AppFocusLost) + // ClosePopupsExceptModals(); + + // Update keyboard input state + UpdateKeyboardInputs(); + + //IM_ASSERT(g.IO.KeyCtrl == IsKeyDown(ImGuiKey_LeftCtrl) || IsKeyDown(ImGuiKey_RightCtrl)); + //IM_ASSERT(g.IO.KeyShift == IsKeyDown(ImGuiKey_LeftShift) || IsKeyDown(ImGuiKey_RightShift)); + //IM_ASSERT(g.IO.KeyAlt == IsKeyDown(ImGuiKey_LeftAlt) || IsKeyDown(ImGuiKey_RightAlt)); + //IM_ASSERT(g.IO.KeySuper == IsKeyDown(ImGuiKey_LeftSuper) || IsKeyDown(ImGuiKey_RightSuper)); + + // Update gamepad/keyboard navigation + NavUpdate(); + + // Update mouse input state + UpdateMouseInputs(); + + // Undocking + // (needs to be before UpdateMouseMovingWindowNewFrame so the window is already offset and following the mouse on the detaching frame) + DockContextNewFrameUpdateUndocking(&g); + + // Find hovered window + // (needs to be before UpdateMouseMovingWindowNewFrame so we fill g.HoveredWindowUnderMovingWindow on the mouse release frame) + UpdateHoveredWindowAndCaptureFlags(); + + // Handle user moving window with mouse (at the beginning of the frame to avoid input lag or sheering) + UpdateMouseMovingWindowNewFrame(); + + // Background darkening/whitening + if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f)) + g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f); + else + g.DimBgRatio = ImMax(g.DimBgRatio - g.IO.DeltaTime * 10.0f, 0.0f); + + g.MouseCursor = ImGuiMouseCursor_Arrow; + g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; + + // Platform IME data: reset for the frame + g.PlatformImeDataPrev = g.PlatformImeData; + g.PlatformImeData.WantVisible = false; + + // Mouse wheel scrolling, scale + UpdateMouseWheel(); + + // Mark all windows as not visible and compact unused memory. + IM_ASSERT(g.WindowsFocusOrder.Size <= g.Windows.Size); + const float memory_compact_start_time = (g.GcCompactAll || g.IO.ConfigMemoryCompactTimer < 0.0f) ? FLT_MAX : (float)g.Time - g.IO.ConfigMemoryCompactTimer; + for (ImGuiWindow* window : g.Windows) + { + window->WasActive = window->Active; + window->Active = false; + window->WriteAccessed = false; + window->BeginCountPreviousFrame = window->BeginCount; + window->BeginCount = 0; + + // Garbage collect transient buffers of recently unused windows + if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) + GcCompactTransientWindowBuffers(window); + } + + // Garbage collect transient buffers of recently unused tables + for (int i = 0; i < g.TablesLastTimeActive.Size; i++) + if (g.TablesLastTimeActive[i] >= 0.0f && g.TablesLastTimeActive[i] < memory_compact_start_time) + TableGcCompactTransientBuffers(g.Tables.GetByIndex(i)); + for (ImGuiTableTempData& table_temp_data : g.TablesTempData) + if (table_temp_data.LastTimeActive >= 0.0f && table_temp_data.LastTimeActive < memory_compact_start_time) + TableGcCompactTransientBuffers(&table_temp_data); + if (g.GcCompactAll) + GcCompactTransientMiscBuffers(); + g.GcCompactAll = false; + + // Closing the focused window restore focus to the first active root window in descending z-order + if (g.NavWindow && !g.NavWindow->WasActive) + FocusTopMostWindowUnderOne(NULL, NULL, NULL, ImGuiFocusRequestFlags_RestoreFocusedChild); + + // No window should be open at the beginning of the frame. + // But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear. + g.CurrentWindowStack.resize(0); + g.BeginPopupStack.resize(0); + g.ItemFlagsStack.resize(0); + g.ItemFlagsStack.push_back(ImGuiItemFlags_None); + g.GroupStack.resize(0); + + // Docking + DockContextNewFrameUpdateDocking(&g); + + // [DEBUG] Update debug features + UpdateDebugToolItemPicker(); + UpdateDebugToolStackQueries(); + if (g.DebugLocateFrames > 0 && --g.DebugLocateFrames == 0) + g.DebugLocateId = 0; + if (g.DebugLogClipperAutoDisableFrames > 0 && --g.DebugLogClipperAutoDisableFrames == 0) + { + DebugLog("(Auto-disabled ImGuiDebugLogFlags_EventClipper to avoid spamming)\n"); + g.DebugLogFlags &= ~ImGuiDebugLogFlags_EventClipper; + } + + // Create implicit/fallback window - which we will only render it if the user has added something to it. + // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. + // This fallback is particularly important as it prevents ImGui:: calls from crashing. + g.WithinFrameScopeWithImplicitWindow = true; + SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); + Begin("Debug##Default"); + IM_ASSERT(g.CurrentWindow->IsFallbackWindow == true); + + // [DEBUG] When io.ConfigDebugBeginReturnValue is set, we make Begin()/BeginChild() return false at different level of the window-stack, + // allowing to validate correct Begin/End behavior in user code. + if (g.IO.ConfigDebugBeginReturnValueLoop) + g.DebugBeginReturnValueCullDepth = (g.DebugBeginReturnValueCullDepth == -1) ? 0 : ((g.DebugBeginReturnValueCullDepth + ((g.FrameCount % 4) == 0 ? 1 : 0)) % 10); + else + g.DebugBeginReturnValueCullDepth = -1; + + CallContextHooks(&g, ImGuiContextHookType_NewFramePost); +} + +// FIXME: Add a more explicit sort order in the window structure. +static int IMGUI_CDECL ChildWindowComparer(const void* lhs, const void* rhs) +{ + const ImGuiWindow* const a = *(const ImGuiWindow* const *)lhs; + const ImGuiWindow* const b = *(const ImGuiWindow* const *)rhs; + if (int d = (a->Flags & ImGuiWindowFlags_Popup) - (b->Flags & ImGuiWindowFlags_Popup)) + return d; + if (int d = (a->Flags & ImGuiWindowFlags_Tooltip) - (b->Flags & ImGuiWindowFlags_Tooltip)) + return d; + return (a->BeginOrderWithinParent - b->BeginOrderWithinParent); +} + +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window) +{ + out_sorted_windows->push_back(window); + if (window->Active) + { + int count = window->DC.ChildWindows.Size; + ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer); + for (int i = 0; i < count; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (child->Active) + AddWindowToSortBuffer(out_sorted_windows, child); + } + } +} + +static void AddWindowToDrawData(ImGuiWindow* window, int layer) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = window->Viewport; + IM_ASSERT(viewport != NULL); + g.IO.MetricsRenderWindows++; + if (window->DrawList->_Splitter._Count > 1) + window->DrawList->ChannelsMerge(); // Merge if user forgot to merge back. Also required in Docking branch for ImGuiWindowFlags_DockNodeHost windows. + ImGui::AddDrawListToDrawDataEx(&viewport->DrawDataP, viewport->DrawDataBuilder.Layers[layer], window->DrawList); + for (ImGuiWindow* child : window->DC.ChildWindows) + if (IsWindowActiveAndVisible(child)) // Clipped children may have been marked not active + AddWindowToDrawData(child, layer); +} + +static inline int GetWindowDisplayLayer(ImGuiWindow* window) +{ + return (window->Flags & ImGuiWindowFlags_Tooltip) ? 1 : 0; +} + +// Layer is locked for the root window, however child windows may use a different viewport (e.g. extruding menu) +static inline void AddRootWindowToDrawData(ImGuiWindow* window) +{ + AddWindowToDrawData(window, GetWindowDisplayLayer(window)); +} + +static void FlattenDrawDataIntoSingleLayer(ImDrawDataBuilder* builder) +{ + int n = builder->Layers[0]->Size; + int full_size = n; + for (int i = 1; i < IM_ARRAYSIZE(builder->Layers); i++) + full_size += builder->Layers[i]->Size; + builder->Layers[0]->resize(full_size); + for (int layer_n = 1; layer_n < IM_ARRAYSIZE(builder->Layers); layer_n++) + { + ImVector* layer = builder->Layers[layer_n]; + if (layer->empty()) + continue; + memcpy(builder->Layers[0]->Data + n, layer->Data, layer->Size * sizeof(ImDrawList*)); + n += layer->Size; + layer->resize(0); + } +} + +static void InitViewportDrawData(ImGuiViewportP* viewport) +{ + ImGuiIO& io = ImGui::GetIO(); + ImDrawData* draw_data = &viewport->DrawDataP; + + viewport->DrawData = draw_data; // Make publicly accessible + viewport->DrawDataBuilder.Layers[0] = &draw_data->CmdLists; + viewport->DrawDataBuilder.Layers[1] = &viewport->DrawDataBuilder.LayerData1; + viewport->DrawDataBuilder.Layers[0]->resize(0); + viewport->DrawDataBuilder.Layers[1]->resize(0); + + // When minimized, we report draw_data->DisplaySize as zero to be consistent with non-viewport mode, + // and to allow applications/backends to easily skip rendering. + // FIXME: Note that we however do NOT attempt to report "zero drawlist / vertices" into the ImDrawData structure. + // This is because the work has been done already, and its wasted! We should fix that and add optimizations for + // it earlier in the pipeline, rather than pretend to hide the data at the end of the pipeline. + const bool is_minimized = (viewport->Flags & ImGuiViewportFlags_IsMinimized) != 0; + + draw_data->Valid = true; + draw_data->CmdListsCount = 0; + draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0; + draw_data->DisplayPos = viewport->Pos; + draw_data->DisplaySize = is_minimized ? ImVec2(0.0f, 0.0f) : viewport->Size; + draw_data->FramebufferScale = io.DisplayFramebufferScale; // FIXME-VIEWPORT: This may vary on a per-monitor/viewport basis? + draw_data->OwnerViewport = viewport; +} + +// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering. +// - When using this function it is sane to ensure that float are perfectly rounded to integer values, +// so that e.g. (int)(max.x-min.x) in user's render produce correct result. +// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect(): +// some frequently called functions which to modify both channels and clipping simultaneously tend to use the +// more specialized SetWindowClipRectBeforeSetChannel() to avoid extraneous updates of underlying ImDrawCmds. +void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +void ImGui::PopClipRect() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PopClipRect(); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +static ImGuiWindow* FindFrontMostVisibleChildWindow(ImGuiWindow* window) +{ + for (int n = window->DC.ChildWindows.Size - 1; n >= 0; n--) + if (IsWindowActiveAndVisible(window->DC.ChildWindows[n])) + return FindFrontMostVisibleChildWindow(window->DC.ChildWindows[n]); + return window; +} + +static void ImGui::RenderDimmedBackgroundBehindWindow(ImGuiWindow* window, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + ImGuiViewportP* viewport = window->Viewport; + ImRect viewport_rect = viewport->GetMainRect(); + + // Draw behind window by moving the draw command at the FRONT of the draw list + { + // Draw list have been trimmed already, hence the explicit recreation of a draw command if missing. + // FIXME: This is creating complication, might be simpler if we could inject a drawlist in drawdata at a given position and not attempt to manipulate ImDrawCmd order. + ImDrawList* draw_list = window->RootWindowDockTree->DrawList; + draw_list->ChannelsMerge(); + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); + draw_list->PushClipRect(viewport_rect.Min - ImVec2(1, 1), viewport_rect.Max + ImVec2(1, 1), false); // FIXME: Need to stricty ensure ImDrawCmd are not merged (ElemCount==6 checks below will verify that) + draw_list->AddRectFilled(viewport_rect.Min, viewport_rect.Max, col); + ImDrawCmd cmd = draw_list->CmdBuffer.back(); + IM_ASSERT(cmd.ElemCount == 6); + draw_list->CmdBuffer.pop_back(); + draw_list->CmdBuffer.push_front(cmd); + draw_list->AddDrawCmd(); // We need to create a command as CmdBuffer.back().IdxOffset won't be correct if we append to same command. + draw_list->PopClipRect(); + } + + // Draw over sibling docking nodes in a same docking tree + if (window->RootWindow->DockIsActive) + { + ImDrawList* draw_list = FindFrontMostVisibleChildWindow(window->RootWindowDockTree)->DrawList; + draw_list->ChannelsMerge(); + if (draw_list->CmdBuffer.Size == 0) + draw_list->AddDrawCmd(); + draw_list->PushClipRect(viewport_rect.Min, viewport_rect.Max, false); + RenderRectFilledWithHole(draw_list, window->RootWindowDockTree->Rect(), window->RootWindow->Rect(), col, 0.0f);// window->RootWindowDockTree->WindowRounding); + draw_list->PopClipRect(); + } +} + +ImGuiWindow* ImGui::FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* parent_window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* bottom_most_visible_window = parent_window; + for (int i = FindWindowDisplayIndex(parent_window); i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + if (!IsWindowWithinBeginStackOf(window, parent_window)) + break; + if (IsWindowActiveAndVisible(window) && GetWindowDisplayLayer(window) <= GetWindowDisplayLayer(parent_window)) + bottom_most_visible_window = window; + } + return bottom_most_visible_window; +} + +// Important: AddWindowToDrawData() has not been called yet, meaning DockNodeHost windows needs a DrawList->ChannelsMerge() before usage. +// We call ChannelsMerge() lazily here at it is faster that doing a full iteration of g.Windows[] prior to calling RenderDimmedBackgrounds(). +static void ImGui::RenderDimmedBackgrounds() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* modal_window = GetTopMostAndVisiblePopupModal(); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + return; + const bool dim_bg_for_modal = (modal_window != NULL); + const bool dim_bg_for_window_list = (g.NavWindowingTargetAnim != NULL && g.NavWindowingTargetAnim->Active); + if (!dim_bg_for_modal && !dim_bg_for_window_list) + return; + + ImGuiViewport* viewports_already_dimmed[2] = { NULL, NULL }; + if (dim_bg_for_modal) + { + // Draw dimming behind modal or a begin stack child, whichever comes first in draw order. + ImGuiWindow* dim_behind_window = FindBottomMostVisibleWindowWithinBeginStack(modal_window); + RenderDimmedBackgroundBehindWindow(dim_behind_window, GetColorU32(ImGuiCol_ModalWindowDimBg, g.DimBgRatio)); + viewports_already_dimmed[0] = modal_window->Viewport; + } + else if (dim_bg_for_window_list) + { + // Draw dimming behind CTRL+Tab target window and behind CTRL+Tab UI window + RenderDimmedBackgroundBehindWindow(g.NavWindowingTargetAnim, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); + if (g.NavWindowingListWindow != NULL && g.NavWindowingListWindow->Viewport && g.NavWindowingListWindow->Viewport != g.NavWindowingTargetAnim->Viewport) + RenderDimmedBackgroundBehindWindow(g.NavWindowingListWindow, GetColorU32(ImGuiCol_NavWindowingDimBg, g.DimBgRatio)); + viewports_already_dimmed[0] = g.NavWindowingTargetAnim->Viewport; + viewports_already_dimmed[1] = g.NavWindowingListWindow ? g.NavWindowingListWindow->Viewport : NULL; + + // Draw border around CTRL+Tab target window + ImGuiWindow* window = g.NavWindowingTargetAnim; + ImGuiViewport* viewport = window->Viewport; + float distance = g.FontSize; + ImRect bb = window->Rect(); + bb.Expand(distance); + if (bb.GetWidth() >= viewport->Size.x && bb.GetHeight() >= viewport->Size.y) + bb.Expand(-distance - 1.0f); // If a window fits the entire viewport, adjust its highlight inward + window->DrawList->ChannelsMerge(); + if (window->DrawList->CmdBuffer.Size == 0) + window->DrawList->AddDrawCmd(); + window->DrawList->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size); + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha), window->WindowRounding, 0, 3.0f); + window->DrawList->PopClipRect(); + } + + // Draw dimming background on _other_ viewports than the ones our windows are in + for (ImGuiViewportP* viewport : g.Viewports) + { + if (viewport == viewports_already_dimmed[0] || viewport == viewports_already_dimmed[1]) + continue; + if (modal_window && viewport->Window && IsWindowAbove(viewport->Window, modal_window)) + continue; + ImDrawList* draw_list = GetForegroundDrawList(viewport); + const ImU32 dim_bg_col = GetColorU32(dim_bg_for_modal ? ImGuiCol_ModalWindowDimBg : ImGuiCol_NavWindowingDimBg, g.DimBgRatio); + draw_list->AddRectFilled(viewport->Pos, viewport->Pos + viewport->Size, dim_bg_col); + } +} + +// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal. +void ImGui::EndFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + // Don't process EndFrame() multiple times. + if (g.FrameCountEnded == g.FrameCount) + return; + IM_ASSERT(g.WithinFrameScope && "Forgot to call ImGui::NewFrame()?"); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePre); + + ErrorCheckEndFrameSanityChecks(); + + // Notify Platform/OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) + ImGuiPlatformImeData* ime_data = &g.PlatformImeData; + if (g.IO.SetPlatformImeDataFn && memcmp(ime_data, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0) + { + ImGuiViewport* viewport = FindViewportByID(g.PlatformImeViewport); + IMGUI_DEBUG_LOG_IO("[io] Calling io.SetPlatformImeDataFn(): WantVisible: %d, InputPos (%.2f,%.2f)\n", ime_data->WantVisible, ime_data->InputPos.x, ime_data->InputPos.y); + if (viewport == NULL) + viewport = GetMainViewport(); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (viewport->PlatformHandleRaw == NULL && g.IO.ImeWindowHandle != NULL) + { + viewport->PlatformHandleRaw = g.IO.ImeWindowHandle; + g.IO.SetPlatformImeDataFn(viewport, ime_data); + viewport->PlatformHandleRaw = NULL; + } + else +#endif + { + g.IO.SetPlatformImeDataFn(viewport, ime_data); + } + } + + // Hide implicit/fallback "Debug" window if it hasn't been used + g.WithinFrameScopeWithImplicitWindow = false; + if (g.CurrentWindow && !g.CurrentWindow->WriteAccessed) + g.CurrentWindow->Active = false; + End(); + + // Update navigation: CTRL+Tab, wrap-around requests + NavEndFrame(); + + // Update docking + DockContextEndFrame(&g); + + SetCurrentViewport(NULL, NULL); + + // Drag and Drop: Elapse payload (if delivered, or if source stops being submitted) + if (g.DragDropActive) + { + bool is_delivered = g.DragDropPayload.Delivery; + bool is_elapsed = (g.DragDropPayload.DataFrameCount + 1 < g.FrameCount) && ((g.DragDropSourceFlags & ImGuiDragDropFlags_SourceAutoExpirePayload) || !IsMouseDown(g.DragDropMouseButton)); + if (is_delivered || is_elapsed) + ClearDragDrop(); + } + + // Drag and Drop: Fallback for source tooltip. This is not ideal but better than nothing. + if (g.DragDropActive && g.DragDropSourceFrameCount < g.FrameCount && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + g.DragDropWithinSource = true; + SetTooltip("..."); + g.DragDropWithinSource = false; + } + + // End frame + g.WithinFrameScope = false; + g.FrameCountEnded = g.FrameCount; + + // Initiate moving window + handle left-click and right-click focus + UpdateMouseMovingWindowEndFrame(); + + // Update user-facing viewport list (g.Viewports -> g.PlatformIO.Viewports after filtering out some) + UpdateViewportsEndFrame(); + + // Sort the window list so that all child windows are after their parent + // We cannot do that on FocusWindow() because children may not exist yet + g.WindowsTempSortBuffer.resize(0); + g.WindowsTempSortBuffer.reserve(g.Windows.Size); + for (ImGuiWindow* window : g.Windows) + { + if (window->Active && (window->Flags & ImGuiWindowFlags_ChildWindow)) // if a child is active its parent will add it + continue; + AddWindowToSortBuffer(&g.WindowsTempSortBuffer, window); + } + + // This usually assert if there is a mismatch between the ImGuiWindowFlags_ChildWindow / ParentWindow values and DC.ChildWindows[] in parents, aka we've done something wrong. + IM_ASSERT(g.Windows.Size == g.WindowsTempSortBuffer.Size); + g.Windows.swap(g.WindowsTempSortBuffer); + g.IO.MetricsActiveWindows = g.WindowsActiveCount; + + // Unlock font atlas + g.IO.Fonts->Locked = false; + + // Clear Input data for next frame + g.IO.AppFocusLost = false; + g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; + g.IO.InputQueueCharacters.resize(0); + + CallContextHooks(&g, ImGuiContextHookType_EndFramePost); +} + +// Prepare the data for rendering so you can call GetDrawData() +// (As with anything within the ImGui:: namspace this doesn't touch your GPU or graphics API at all: +// it is the role of the ImGui_ImplXXXX_RenderDrawData() function provided by the renderer backend) +void ImGui::Render() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + if (g.FrameCountEnded != g.FrameCount) + EndFrame(); + if (g.FrameCountRendered == g.FrameCount) + return; + g.FrameCountRendered = g.FrameCount; + + g.IO.MetricsRenderWindows = 0; + CallContextHooks(&g, ImGuiContextHookType_RenderPre); + + // Add background ImDrawList (for each active viewport) + for (ImGuiViewportP* viewport : g.Viewports) + { + InitViewportDrawData(viewport); + if (viewport->BgFgDrawLists[0] != NULL) + AddDrawListToDrawDataEx(&viewport->DrawDataP, viewport->DrawDataBuilder.Layers[0], GetBackgroundDrawList(viewport)); + } + + // Draw modal/window whitening backgrounds + RenderDimmedBackgrounds(); + + // Add ImDrawList to render + ImGuiWindow* windows_to_render_top_most[2]; + windows_to_render_top_most[0] = (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus)) ? g.NavWindowingTarget->RootWindowDockTree : NULL; + windows_to_render_top_most[1] = (g.NavWindowingTarget ? g.NavWindowingListWindow : NULL); + for (ImGuiWindow* window : g.Windows) + { + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + if (IsWindowActiveAndVisible(window) && (window->Flags & ImGuiWindowFlags_ChildWindow) == 0 && window != windows_to_render_top_most[0] && window != windows_to_render_top_most[1]) + AddRootWindowToDrawData(window); + } + for (int n = 0; n < IM_ARRAYSIZE(windows_to_render_top_most); n++) + if (windows_to_render_top_most[n] && IsWindowActiveAndVisible(windows_to_render_top_most[n])) // NavWindowingTarget is always temporarily displayed as the top-most window + AddRootWindowToDrawData(windows_to_render_top_most[n]); + + // Draw software mouse cursor if requested by io.MouseDrawCursor flag + if (g.IO.MouseDrawCursor && g.MouseCursor != ImGuiMouseCursor_None) + RenderMouseCursor(g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); + + // Setup ImDrawData structures for end-user + g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = 0; + for (ImGuiViewportP* viewport : g.Viewports) + { + FlattenDrawDataIntoSingleLayer(&viewport->DrawDataBuilder); + + // Add foreground ImDrawList (for each active viewport) + if (viewport->BgFgDrawLists[1] != NULL) + AddDrawListToDrawDataEx(&viewport->DrawDataP, viewport->DrawDataBuilder.Layers[0], GetForegroundDrawList(viewport)); + + // We call _PopUnusedDrawCmd() last thing, as RenderDimmedBackgrounds() rely on a valid command being there (especially in docking branch). + ImDrawData* draw_data = &viewport->DrawDataP; + IM_ASSERT(draw_data->CmdLists.Size == draw_data->CmdListsCount); + for (ImDrawList* draw_list : draw_data->CmdLists) + draw_list->_PopUnusedDrawCmd(); + + g.IO.MetricsRenderVertices += draw_data->TotalVtxCount; + g.IO.MetricsRenderIndices += draw_data->TotalIdxCount; + } + + CallContextHooks(&g, ImGuiContextHookType_RenderPost); +} + +// Calculate text size. Text can be multi-line. Optionally ignore text after a ## marker. +// CalcTextSize("") should return ImVec2(0.0f, g.FontSize) +ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) +{ + ImGuiContext& g = *GImGui; + + const char* text_display_end; + if (hide_text_after_double_hash) + text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string + else + text_display_end = text_end; + + ImFont* font = g.Font; + const float font_size = g.FontSize; + if (text == text_display_end) + return ImVec2(0.0f, font_size); + ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); + + // Round + // FIXME: This has been here since Dec 2015 (7b0bf230) but down the line we want this out. + // FIXME: Investigate using ceilf or e.g. + // - https://git.musl-libc.org/cgit/musl/tree/src/math/ceilf.c + // - https://embarkstudios.github.io/rust-gpu/api/src/libm/math/ceilf.rs.html + text_size.x = IM_FLOOR(text_size.x + 0.99999f); + + return text_size; +} + +// Find window given position, search front-to-back +// FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically +// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is +// called, aka before the next Begin(). Moving window isn't affected. +static void FindHoveredWindow() +{ + ImGuiContext& g = *GImGui; + + // Special handling for the window being moved: Ignore the mouse viewport check (because it may reset/lose its viewport during the undocking frame) + ImGuiViewportP* moving_window_viewport = g.MovingWindow ? g.MovingWindow->Viewport : NULL; + if (g.MovingWindow) + g.MovingWindow->Viewport = g.MouseViewport; + + ImGuiWindow* hovered_window = NULL; + ImGuiWindow* hovered_window_ignoring_moving_window = NULL; + if (g.MovingWindow && !(g.MovingWindow->Flags & ImGuiWindowFlags_NoMouseInputs)) + hovered_window = g.MovingWindow; + + ImVec2 padding_regular = g.Style.TouchExtraPadding; + ImVec2 padding_for_resize = g.IO.ConfigWindowsResizeFromEdges ? g.WindowsHoverPadding : padding_regular; + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (!window->Active || window->Hidden) + continue; + if (window->Flags & ImGuiWindowFlags_NoMouseInputs) + continue; + IM_ASSERT(window->Viewport); + if (window->Viewport != g.MouseViewport) + continue; + + // Using the clipped AABB, a child window will typically be clipped by its parent (not always) + ImRect bb(window->OuterRectClipped); + if (window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize)) + bb.Expand(padding_regular); + else + bb.Expand(padding_for_resize); + if (!bb.Contains(g.IO.MousePos)) + continue; + + // Support for one rectangular hole in any given window + // FIXME: Consider generalizing hit-testing override (with more generic data, callback, etc.) (#1512) + if (window->HitTestHoleSize.x != 0) + { + ImVec2 hole_pos(window->Pos.x + (float)window->HitTestHoleOffset.x, window->Pos.y + (float)window->HitTestHoleOffset.y); + ImVec2 hole_size((float)window->HitTestHoleSize.x, (float)window->HitTestHoleSize.y); + if (ImRect(hole_pos, hole_pos + hole_size).Contains(g.IO.MousePos)) + continue; + } + + if (hovered_window == NULL) + hovered_window = window; + IM_MSVC_WARNING_SUPPRESS(28182); // [Static Analyzer] Dereferencing NULL pointer. + if (hovered_window_ignoring_moving_window == NULL && (!g.MovingWindow || window->RootWindowDockTree != g.MovingWindow->RootWindowDockTree)) + hovered_window_ignoring_moving_window = window; + if (hovered_window && hovered_window_ignoring_moving_window) + break; + } + + g.HoveredWindow = hovered_window; + g.HoveredWindowUnderMovingWindow = hovered_window_ignoring_moving_window; + + if (g.MovingWindow) + g.MovingWindow->Viewport = moving_window_viewport; +} + +bool ImGui::IsItemActive() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + return g.ActiveId == g.LastItemData.ID; + return false; +} + +bool ImGui::IsItemActivated() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + if (g.ActiveId == g.LastItemData.ID && g.ActiveIdPreviousFrame != g.LastItemData.ID) + return true; + return false; +} + +bool ImGui::IsItemDeactivated() +{ + ImGuiContext& g = *GImGui; + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDeactivated) + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Deactivated) != 0; + return (g.ActiveIdPreviousFrame == g.LastItemData.ID && g.ActiveIdPreviousFrame != 0 && g.ActiveId != g.LastItemData.ID); +} + +bool ImGui::IsItemDeactivatedAfterEdit() +{ + ImGuiContext& g = *GImGui; + return IsItemDeactivated() && (g.ActiveIdPreviousFrameHasBeenEditedBefore || (g.ActiveId == 0 && g.ActiveIdHasBeenEditedBefore)); +} + +// == GetItemID() == GetFocusID() +bool ImGui::IsItemFocused() +{ + ImGuiContext& g = *GImGui; + if (g.NavId != g.LastItemData.ID || g.NavId == 0) + return false; + + // Special handling for the dummy item after Begin() which represent the title bar or tab. + // When the window is collapsed (SkipItems==true) that last item will never be overwritten so we need to detect the case. + ImGuiWindow* window = g.CurrentWindow; + if (g.LastItemData.ID == window->ID && window->WriteAccessed) + return false; + + return true; +} + +// Important: this can be useful but it is NOT equivalent to the behavior of e.g.Button()! +// Most widgets have specific reactions based on mouse-up/down state, mouse position etc. +bool ImGui::IsItemClicked(ImGuiMouseButton mouse_button) +{ + return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); +} + +bool ImGui::IsItemToggledOpen() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledOpen) ? true : false; +} + +bool ImGui::IsItemToggledSelection() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false; +} + +bool ImGui::IsAnyItemHovered() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId != 0 || g.HoveredIdPreviousFrame != 0; +} + +bool ImGui::IsAnyItemActive() +{ + ImGuiContext& g = *GImGui; + return g.ActiveId != 0; +} + +bool ImGui::IsAnyItemFocused() +{ + ImGuiContext& g = *GImGui; + return g.NavId != 0 && !g.NavDisableHighlight; +} + +bool ImGui::IsItemVisible() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) != 0; +} + +bool ImGui::IsItemEdited() +{ + ImGuiContext& g = *GImGui; + return (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Edited) != 0; +} + +// Allow next item to be overlapped by subsequent items. +// This works by requiring HoveredId to match for two subsequent frames, +// so if a following items overwrite it our interactions will naturally be disabled. +void ImGui::SetNextItemAllowOverlap() +{ + ImGuiContext& g = *GImGui; + g.NextItemData.ItemFlags |= ImGuiItemFlags_AllowOverlap; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Allow last item to be overlapped by a subsequent item. Both may be activated during the same frame before the later one takes priority. +// FIXME-LEGACY: Use SetNextItemAllowOverlap() *before* your item instead. +void ImGui::SetItemAllowOverlap() +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (g.HoveredId == id) + g.HoveredIdAllowOverlap = true; + if (g.ActiveId == id) // Before we made this obsolete, most calls to SetItemAllowOverlap() used to avoid this path by testing g.ActiveId != id. + g.ActiveIdAllowOverlap = true; +} +#endif + +// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version for the two users of this function. +void ImGui::SetActiveIdUsingAllKeyboardKeys() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId != 0); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_COUNT) - 1; + g.ActiveIdUsingAllKeyboardKeys = true; + NavMoveRequestCancel(); +} + +ImGuiID ImGui::GetItemID() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.ID; +} + +ImVec2 ImGui::GetItemRectMin() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Min; +} + +ImVec2 ImGui::GetItemRectMax() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.Max; +} + +ImVec2 ImGui::GetItemRectSize() +{ + ImGuiContext& g = *GImGui; + return g.LastItemData.Rect.GetSize(); +} + +bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + + flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoDocking; + flags |= (parent_window->Flags & ImGuiWindowFlags_NoMove); // Inherit the NoMove flag + + // Size + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 size = ImFloor(size_arg); + const int auto_fit_axises = ((size.x == 0.0f) ? (1 << ImGuiAxis_X) : 0x00) | ((size.y == 0.0f) ? (1 << ImGuiAxis_Y) : 0x00); + if (size.x <= 0.0f) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too many issues) + if (size.y <= 0.0f) + size.y = ImMax(content_avail.y + size.y, 4.0f); + SetNextWindowSize(size); + + // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. + const char* temp_window_name; + if (name) + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%s_%08X", parent_window->Name, name, id); + else + ImFormatStringToTempBuffer(&temp_window_name, NULL, "%s/%08X", parent_window->Name, id); + + const float backup_border_size = g.Style.ChildBorderSize; + if (!border) + g.Style.ChildBorderSize = 0.0f; + bool ret = Begin(temp_window_name, NULL, flags); + g.Style.ChildBorderSize = backup_border_size; + + ImGuiWindow* child_window = g.CurrentWindow; + child_window->ChildId = id; + child_window->AutoFitChildAxises = (ImS8)auto_fit_axises; + + // Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually. + // While this is not really documented/defined, it seems that the expected thing to do. + if (child_window->BeginCount == 1) + parent_window->DC.CursorPos = child_window->Pos; + + // Process navigation-in immediately so NavInit can run on first frame + // Can enter a child if (A) it has navigatable items or (B) it can be scrolled. + const ImGuiID temp_id_for_activation = ImHashStr("##Child", 0, id); + if (g.ActiveId == temp_id_for_activation) + ClearActiveID(); + if (g.NavActivateId == id && !(flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavWindowHasScrollY)) + { + FocusWindow(child_window); + NavInitWindow(child_window, false); + SetActiveID(temp_id_for_activation, child_window); // Steal ActiveId with another arbitrary id so that key-press won't activate child item + g.ActiveIdSource = g.NavInputSource; + } + return ret; +} + +bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + return BeginChildEx(str_id, window->GetID(str_id), size_arg, border, extra_flags); +} + +bool ImGui::BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + IM_ASSERT(id != 0); + return BeginChildEx(NULL, id, size_arg, border, extra_flags); +} + +void ImGui::EndChild() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + IM_ASSERT(g.WithinEndChild == false); + IM_ASSERT(window->Flags & ImGuiWindowFlags_ChildWindow); // Mismatched BeginChild()/EndChild() calls + + g.WithinEndChild = true; + if (window->BeginCount > 1) + { + End(); + } + else + { + ImVec2 sz = window->Size; + if (window->AutoFitChildAxises & (1 << ImGuiAxis_X)) // Arbitrary minimum zero-ish child size of 4.0f causes less trouble than a 0.0f + sz.x = ImMax(4.0f, sz.x); + if (window->AutoFitChildAxises & (1 << ImGuiAxis_Y)) + sz.y = ImMax(4.0f, sz.y); + End(); + + ImGuiWindow* parent_window = g.CurrentWindow; + ImRect bb(parent_window->DC.CursorPos, parent_window->DC.CursorPos + sz); + ItemSize(sz); + if ((window->DC.NavLayersActiveMask != 0 || window->DC.NavWindowHasScrollY) && !(window->Flags & ImGuiWindowFlags_NavFlattened)) + { + ItemAdd(bb, window->ChildId); + RenderNavHighlight(bb, window->ChildId); + + // When browsing a window that has no activable items (scroll only) we keep a highlight on the child (pass g.NavId to trick into always displaying) + if (window->DC.NavLayersActiveMask == 0 && window == g.NavWindow) + RenderNavHighlight(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavHighlightFlags_TypeThin); + } + else + { + // Not navigable into + ItemAdd(bb, 0); + + // But when flattened we directly reach items, adjust active layer mask accordingly + if (window->Flags & ImGuiWindowFlags_NavFlattened) + parent_window->DC.NavLayersActiveMaskNext |= window->DC.NavLayersActiveMaskNext; + } + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + g.WithinEndChild = false; + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +// Helper to create a child window / scrolling region that looks like a normal widget frame. +bool ImGui::BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding); + bool ret = BeginChild(id, size, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding | extra_flags); + PopStyleVar(3); + PopStyleColor(); + return ret; +} + +void ImGui::EndChildFrame() +{ + EndChild(); +} + +static void SetWindowConditionAllowFlags(ImGuiWindow* window, ImGuiCond flags, bool enabled) +{ + window->SetWindowPosAllowFlags = enabled ? (window->SetWindowPosAllowFlags | flags) : (window->SetWindowPosAllowFlags & ~flags); + window->SetWindowSizeAllowFlags = enabled ? (window->SetWindowSizeAllowFlags | flags) : (window->SetWindowSizeAllowFlags & ~flags); + window->SetWindowCollapsedAllowFlags = enabled ? (window->SetWindowCollapsedAllowFlags | flags) : (window->SetWindowCollapsedAllowFlags & ~flags); + window->SetWindowDockAllowFlags = enabled ? (window->SetWindowDockAllowFlags | flags) : (window->SetWindowDockAllowFlags & ~flags); +} + +ImGuiWindow* ImGui::FindWindowByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return (ImGuiWindow*)g.WindowsById.GetVoidPtr(id); +} + +ImGuiWindow* ImGui::FindWindowByName(const char* name) +{ + ImGuiID id = ImHashStr(name); + return FindWindowByID(id); +} + +static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) +{ + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + window->ViewportPos = main_viewport->Pos; + if (settings->ViewportId) + { + window->ViewportId = settings->ViewportId; + window->ViewportPos = ImVec2(settings->ViewportPos.x, settings->ViewportPos.y); + } + window->Pos = ImFloor(ImVec2(settings->Pos.x + window->ViewportPos.x, settings->Pos.y + window->ViewportPos.y)); + if (settings->Size.x > 0 && settings->Size.y > 0) + window->Size = window->SizeFull = ImFloor(ImVec2(settings->Size.x, settings->Size.y)); + window->Collapsed = settings->Collapsed; + window->DockId = settings->DockId; + window->DockOrder = settings->DockOrder; +} + +static void UpdateWindowInFocusOrderList(ImGuiWindow* window, bool just_created, ImGuiWindowFlags new_flags) +{ + ImGuiContext& g = *GImGui; + + const bool new_is_explicit_child = (new_flags & ImGuiWindowFlags_ChildWindow) != 0 && ((new_flags & ImGuiWindowFlags_Popup) == 0 || (new_flags & ImGuiWindowFlags_ChildMenu) != 0); + const bool child_flag_changed = new_is_explicit_child != window->IsExplicitChild; + if ((just_created || child_flag_changed) && !new_is_explicit_child) + { + IM_ASSERT(!g.WindowsFocusOrder.contains(window)); + g.WindowsFocusOrder.push_back(window); + window->FocusOrder = (short)(g.WindowsFocusOrder.Size - 1); + } + else if (!just_created && child_flag_changed && new_is_explicit_child) + { + IM_ASSERT(g.WindowsFocusOrder[window->FocusOrder] == window); + for (int n = window->FocusOrder + 1; n < g.WindowsFocusOrder.Size; n++) + g.WindowsFocusOrder[n]->FocusOrder--; + g.WindowsFocusOrder.erase(g.WindowsFocusOrder.Data + window->FocusOrder); + window->FocusOrder = -1; + } + window->IsExplicitChild = new_is_explicit_child; +} + +static void InitOrLoadWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) +{ + // Initial window state with e.g. default/arbitrary window position + // Use SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. + const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); + window->Pos = main_viewport->Pos + ImVec2(60, 60); + window->Size = window->SizeFull = ImVec2(0, 0); + window->ViewportPos = main_viewport->Pos; + window->SetWindowPosAllowFlags = window->SetWindowSizeAllowFlags = window->SetWindowCollapsedAllowFlags = window->SetWindowDockAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing; + + if (settings != NULL) + { + SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); + ApplyWindowSettings(window, settings); + } + window->DC.CursorStartPos = window->DC.CursorMaxPos = window->DC.IdealMaxPos = window->Pos; // So first call to CalcWindowContentSizes() doesn't return crazy values + + if ((window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) + { + window->AutoFitFramesX = window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = false; + } + else + { + if (window->Size.x <= 0.0f) + window->AutoFitFramesX = 2; + if (window->Size.y <= 0.0f) + window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0); + } +} + +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) +{ + // Create window the first time + //IMGUI_DEBUG_LOG("CreateNewWindow '%s', flags = 0x%08X\n", name, flags); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = IM_NEW(ImGuiWindow)(&g, name); + window->Flags = flags; + g.WindowsById.SetVoidPtr(window->ID, window); + + ImGuiWindowSettings* settings = NULL; + if (!(flags & ImGuiWindowFlags_NoSavedSettings)) + if ((settings = ImGui::FindWindowSettingsByWindow(window)) != 0) + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + + InitOrLoadWindowSettings(window, settings); + + if (flags & ImGuiWindowFlags_NoBringToFrontOnFocus) + g.Windows.push_front(window); // Quite slow but rare and only once + else + g.Windows.push_back(window); + + return window; +} + +static ImGuiWindow* GetWindowForTitleDisplay(ImGuiWindow* window) +{ + return window->DockNodeAsHost ? window->DockNodeAsHost->VisibleWindow : window; +} + +static ImGuiWindow* GetWindowForTitleAndMenuHeight(ImGuiWindow* window) +{ + return (window->DockNodeAsHost && window->DockNodeAsHost->VisibleWindow) ? window->DockNodeAsHost->VisibleWindow : window; +} + +static ImVec2 CalcWindowSizeAfterConstraint(ImGuiWindow* window, const ImVec2& size_desired) +{ + ImGuiContext& g = *GImGui; + ImVec2 new_size = size_desired; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + // Using -1,-1 on either X/Y axis to preserve the current size. + ImRect cr = g.NextWindowData.SizeConstraintRect; + new_size.x = (cr.Min.x >= 0 && cr.Max.x >= 0) ? ImClamp(new_size.x, cr.Min.x, cr.Max.x) : window->SizeFull.x; + new_size.y = (cr.Min.y >= 0 && cr.Max.y >= 0) ? ImClamp(new_size.y, cr.Min.y, cr.Max.y) : window->SizeFull.y; + if (g.NextWindowData.SizeCallback) + { + ImGuiSizeCallbackData data; + data.UserData = g.NextWindowData.SizeCallbackUserData; + data.Pos = window->Pos; + data.CurrentSize = window->SizeFull; + data.DesiredSize = new_size; + g.NextWindowData.SizeCallback(&data); + new_size = data.DesiredSize; + } + new_size.x = IM_FLOOR(new_size.x); + new_size.y = IM_FLOOR(new_size.y); + } + + // Minimum size + if (!(window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysAutoResize))) + { + ImGuiWindow* window_for_height = GetWindowForTitleAndMenuHeight(window); + new_size = ImMax(new_size, g.Style.WindowMinSize); + const float minimum_height = window_for_height->TitleBarHeight() + window_for_height->MenuBarHeight() + ImMax(0.0f, g.Style.WindowRounding - 1.0f); + new_size.y = ImMax(new_size.y, minimum_height); // Reduce artifacts with very small windows + } + return new_size; +} + +static void CalcWindowContentSizes(ImGuiWindow* window, ImVec2* content_size_current, ImVec2* content_size_ideal) +{ + bool preserve_old_content_sizes = false; + if (window->Collapsed && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + preserve_old_content_sizes = true; + else if (window->Hidden && window->HiddenFramesCannotSkipItems == 0 && window->HiddenFramesCanSkipItems > 0) + preserve_old_content_sizes = true; + if (preserve_old_content_sizes) + { + *content_size_current = window->ContentSize; + *content_size_ideal = window->ContentSizeIdeal; + return; + } + + content_size_current->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(window->DC.CursorMaxPos.x - window->DC.CursorStartPos.x); + content_size_current->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(window->DC.CursorMaxPos.y - window->DC.CursorStartPos.y); + content_size_ideal->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(ImMax(window->DC.CursorMaxPos.x, window->DC.IdealMaxPos.x) - window->DC.CursorStartPos.x); + content_size_ideal->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(ImMax(window->DC.CursorMaxPos.y, window->DC.IdealMaxPos.y) - window->DC.CursorStartPos.y); +} + +static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_contents) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + const float decoration_w_without_scrollbars = window->DecoOuterSizeX1 + window->DecoOuterSizeX2 - window->ScrollbarSizes.x; + const float decoration_h_without_scrollbars = window->DecoOuterSizeY1 + window->DecoOuterSizeY2 - window->ScrollbarSizes.y; + ImVec2 size_pad = window->WindowPadding * 2.0f; + ImVec2 size_desired = size_contents + size_pad + ImVec2(decoration_w_without_scrollbars, decoration_h_without_scrollbars); + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Tooltip always resize + return size_desired; + } + else + { + // Maximum window size is determined by the viewport size or monitor size + const bool is_popup = (window->Flags & ImGuiWindowFlags_Popup) != 0; + const bool is_menu = (window->Flags & ImGuiWindowFlags_ChildMenu) != 0; + ImVec2 size_min = style.WindowMinSize; + if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) + size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); + + ImVec2 avail_size = window->Viewport->WorkSize; + if (window->ViewportOwned) + avail_size = ImVec2(FLT_MAX, FLT_MAX); + const int monitor_idx = window->ViewportAllowPlatformMonitorExtend; + if (monitor_idx >= 0 && monitor_idx < g.PlatformIO.Monitors.Size) + avail_size = g.PlatformIO.Monitors[monitor_idx].WorkSize; + ImVec2 size_auto_fit = ImClamp(size_desired, size_min, ImMax(size_min, avail_size - style.DisplaySafeAreaPadding * 2.0f)); + + // When the window cannot fit all contents (either because of constraints, either because screen is too small), + // we are growing the size on the other axis to compensate for expected scrollbar. FIXME: Might turn bigger than ViewportSize-WindowPadding. + ImVec2 size_auto_fit_after_constraint = CalcWindowSizeAfterConstraint(window, size_auto_fit); + bool will_have_scrollbar_x = (size_auto_fit_after_constraint.x - size_pad.x - decoration_w_without_scrollbars < size_contents.x && !(window->Flags & ImGuiWindowFlags_NoScrollbar) && (window->Flags & ImGuiWindowFlags_HorizontalScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar); + bool will_have_scrollbar_y = (size_auto_fit_after_constraint.y - size_pad.y - decoration_h_without_scrollbars < size_contents.y && !(window->Flags & ImGuiWindowFlags_NoScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysVerticalScrollbar); + if (will_have_scrollbar_x) + size_auto_fit.y += style.ScrollbarSize; + if (will_have_scrollbar_y) + size_auto_fit.x += style.ScrollbarSize; + return size_auto_fit; + } +} + +ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window) +{ + ImVec2 size_contents_current; + ImVec2 size_contents_ideal; + CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal); + ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal); + ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit); + return size_final; +} + +static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window) +{ + if (window->Flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + return ImGuiCol_PopupBg; + if ((window->Flags & ImGuiWindowFlags_ChildWindow) && !window->DockIsActive) + return ImGuiCol_ChildBg; + return ImGuiCol_WindowBg; +} + +static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size) +{ + ImVec2 pos_min = ImLerp(corner_target, window->Pos, corner_norm); // Expected window upper-left + ImVec2 pos_max = ImLerp(window->Pos + window->Size, corner_target, corner_norm); // Expected window lower-right + ImVec2 size_expected = pos_max - pos_min; + ImVec2 size_constrained = CalcWindowSizeAfterConstraint(window, size_expected); + *out_pos = pos_min; + if (corner_norm.x == 0.0f) + out_pos->x -= (size_constrained.x - size_expected.x); + if (corner_norm.y == 0.0f) + out_pos->y -= (size_constrained.y - size_expected.y); + *out_size = size_constrained; +} + +// Data for resizing from corner +struct ImGuiResizeGripDef +{ + ImVec2 CornerPosN; + ImVec2 InnerDir; + int AngleMin12, AngleMax12; +}; +static const ImGuiResizeGripDef resize_grip_def[4] = +{ + { ImVec2(1, 1), ImVec2(-1, -1), 0, 3 }, // Lower-right + { ImVec2(0, 1), ImVec2(+1, -1), 3, 6 }, // Lower-left + { ImVec2(0, 0), ImVec2(+1, +1), 6, 9 }, // Upper-left (Unused) + { ImVec2(1, 0), ImVec2(-1, +1), 9, 12 } // Upper-right (Unused) +}; + +// Data for resizing from borders +struct ImGuiResizeBorderDef +{ + ImVec2 InnerDir; + ImVec2 SegmentN1, SegmentN2; + float OuterAngle; +}; +static const ImGuiResizeBorderDef resize_border_def[4] = +{ + { ImVec2(+1, 0), ImVec2(0, 1), ImVec2(0, 0), IM_PI * 1.00f }, // Left + { ImVec2(-1, 0), ImVec2(1, 0), ImVec2(1, 1), IM_PI * 0.00f }, // Right + { ImVec2(0, +1), ImVec2(0, 0), ImVec2(1, 0), IM_PI * 1.50f }, // Up + { ImVec2(0, -1), ImVec2(1, 1), ImVec2(0, 1), IM_PI * 0.50f } // Down +}; + +static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness) +{ + ImRect rect = window->Rect(); + if (thickness == 0.0f) + rect.Max -= ImVec2(1, 1); + if (border_n == ImGuiDir_Left) { return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Right) { return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); } + if (border_n == ImGuiDir_Up) { return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); } + if (border_n == ImGuiDir_Down) { return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); } + IM_ASSERT(0); + return ImRect(); +} + +// 0..3: corners (Lower-right, Lower-left, Unused, Unused) +ImGuiID ImGui::GetWindowResizeCornerID(ImGuiWindow* window, int n) +{ + IM_ASSERT(n >= 0 && n < 4); + ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Borders (Left, Right, Up, Down) +ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) +{ + IM_ASSERT(dir >= 0 && dir < 4); + int n = (int)dir + 4; + ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Handle resize for: Resize Grips, Borders, Gamepad +// Return true when using auto-fit (double-click on resize grip) +static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + + if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + return false; + if (window->WasActive == false) // Early out to avoid running this code for e.g. a hidden implicit/fallback Debug window. + return false; + + bool ret_auto_fit = false; + const int resize_border_count = g.IO.ConfigWindowsResizeFromEdges ? 4 : 0; + const float grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.35f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + const float grip_hover_inner_size = IM_FLOOR(grip_draw_size * 0.75f); + const float grip_hover_outer_size = g.IO.ConfigWindowsResizeFromEdges ? WINDOWS_HOVER_PADDING : 0.0f; + + ImRect clamp_rect = visibility_rect; + const bool window_move_from_title_bar = g.IO.ConfigWindowsMoveFromTitleBarOnly && !(window->Flags & ImGuiWindowFlags_NoTitleBar); + if (window_move_from_title_bar) + clamp_rect.Min.y -= window->TitleBarHeight(); + + ImVec2 pos_target(FLT_MAX, FLT_MAX); + ImVec2 size_target(FLT_MAX, FLT_MAX); + + // Clip mouse interaction rectangles within the viewport rectangle (in practice the narrowing is going to happen most of the time). + // - Not narrowing would mostly benefit the situation where OS windows _without_ decoration have a threshold for hovering when outside their limits. + // This is however not the case with current backends under Win32, but a custom borderless window implementation would benefit from it. + // - When decoration are enabled we typically benefit from that distance, but then our resize elements would be conflicting with OS resize elements, so we also narrow. + // - Note that we are unable to tell if the platform setup allows hovering with a distance threshold (on Win32, decorated window have such threshold). + // We only clip interaction so we overwrite window->ClipRect, cannot call PushClipRect() yet as DrawList is not yet setup. + const bool clip_with_viewport_rect = !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) || (g.IO.MouseHoveredViewport != window->ViewportId) || !(window->Viewport->Flags & ImGuiViewportFlags_NoDecoration); + if (clip_with_viewport_rect) + window->ClipRect = window->Viewport->GetMainRect(); + + // Resize grips and borders are on layer 1 + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Manual resize grips + PushID("#RESIZE"); + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& def = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, def.CornerPosN); + + // Using the FlattenChilds button flag we make the resize button accessible even if we are hovering over a child window + bool hovered, held; + ImRect resize_rect(corner - def.InnerDir * grip_hover_outer_size, corner + def.InnerDir * grip_hover_inner_size); + if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); + if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); + ImGuiID resize_grip_id = window->GetID(resize_grip_n); // == GetWindowResizeCornerID() + ItemAdd(resize_rect, resize_grip_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(resize_rect, resize_grip_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); + if (hovered || held) + g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + + if (held && g.IO.MouseClickedCount[0] == 2 && resize_grip_n == 0) + { + // Manual auto-fit when double-clicking + size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit); + ret_auto_fit = true; + ClearActiveID(); + } + else if (held) + { + // Resize from any of the four corners + // We don't use an incremental MouseDelta but rather compute an absolute target size based on mouse position + ImVec2 clamp_min = ImVec2(def.CornerPosN.x == 1.0f ? clamp_rect.Min.x : -FLT_MAX, (def.CornerPosN.y == 1.0f || (def.CornerPosN.y == 0.0f && window_move_from_title_bar)) ? clamp_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max = ImVec2(def.CornerPosN.x == 0.0f ? clamp_rect.Max.x : +FLT_MAX, def.CornerPosN.y == 0.0f ? clamp_rect.Max.y : +FLT_MAX); + ImVec2 corner_target = g.IO.MousePos - g.ActiveIdClickOffset + ImLerp(def.InnerDir * grip_hover_outer_size, def.InnerDir * -grip_hover_inner_size, def.CornerPosN); // Corner of the window corresponding to our corner grip + corner_target = ImClamp(corner_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, corner_target, def.CornerPosN, &pos_target, &size_target); + } + + // Only lower-left grip is visible before hovering/activating + if (resize_grip_n == 0 || held || hovered) + resize_grip_col[resize_grip_n] = GetColorU32(held ? ImGuiCol_ResizeGripActive : hovered ? ImGuiCol_ResizeGripHovered : ImGuiCol_ResizeGrip); + } + for (int border_n = 0; border_n < resize_border_count; border_n++) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_n]; + const ImGuiAxis axis = (border_n == ImGuiDir_Left || border_n == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + + bool hovered, held; + ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_HOVER_PADDING); + ImGuiID border_id = window->GetID(border_n + 4); // == GetWindowResizeBorderID() + ItemAdd(border_rect, border_id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(border_rect, border_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); + if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) + { + g.MouseCursor = (axis == ImGuiAxis_X) ? ImGuiMouseCursor_ResizeEW : ImGuiMouseCursor_ResizeNS; + if (held) + *border_held = border_n; + } + if (held) + { + ImVec2 clamp_min(border_n == ImGuiDir_Right ? clamp_rect.Min.x : -FLT_MAX, border_n == ImGuiDir_Down || (border_n == ImGuiDir_Up && window_move_from_title_bar) ? clamp_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max(border_n == ImGuiDir_Left ? clamp_rect.Max.x : +FLT_MAX, border_n == ImGuiDir_Up ? clamp_rect.Max.y : +FLT_MAX); + ImVec2 border_target = window->Pos; + border_target[axis] = g.IO.MousePos[axis] - g.ActiveIdClickOffset[axis] + WINDOWS_HOVER_PADDING; + border_target = ImClamp(border_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, border_target, ImMin(def.SegmentN1, def.SegmentN2), &pos_target, &size_target); + } + } + PopID(); + + // Restore nav layer + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + + // Navigation resize (keyboard/gamepad) + // FIXME: This cannot be moved to NavUpdateWindowing() because CalcWindowSizeAfterConstraint() need to callback into user. + // Not even sure the callback works here. + if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindowDockTree == window) + { + ImVec2 nav_resize_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && g.IO.KeyShift) + nav_resize_dir = GetKeyMagnitude2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_resize_dir = GetKeyMagnitude2d(ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown); + if (nav_resize_dir.x != 0.0f || nav_resize_dir.y != 0.0f) + { + const float NAV_RESIZE_SPEED = 600.0f; + const float resize_step = NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaSize += nav_resize_dir * resize_step; + g.NavWindowingAccumDeltaSize = ImMax(g.NavWindowingAccumDeltaSize, clamp_rect.Min - window->Pos - window->Size); // We need Pos+Size >= clmap_rect.Min, so Size >= clmap_rect.Min - Pos, so size_delta >= clmap_rect.Min - window->Pos - window->Size + g.NavWindowingToggleLayer = false; + g.NavDisableMouseHover = true; + resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaSize); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. + size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + accum_floored); + g.NavWindowingAccumDeltaSize -= accum_floored; + } + } + } + + // Apply back modified position/size to window + if (size_target.x != FLT_MAX) + { + window->SizeFull = size_target; + MarkIniSettingsDirty(window); + } + if (pos_target.x != FLT_MAX) + { + window->Pos = ImFloor(pos_target); + MarkIniSettingsDirty(window); + } + + window->Size = window->SizeFull; + return ret_auto_fit; +} + +static inline void ClampWindowPos(ImGuiWindow* window, const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImVec2 size_for_clamping = window->Size; + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && (!(window->Flags & ImGuiWindowFlags_NoTitleBar) || window->DockNodeAsHost)) + size_for_clamping.y = ImGui::GetFrameHeight(); // Not using window->TitleBarHeight() as DockNodeAsHost will report 0.0f here. + window->Pos = ImClamp(window->Pos, visibility_rect.Min - size_for_clamping, visibility_rect.Max); +} + +static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + float rounding = window->WindowRounding; + float border_size = window->WindowBorderSize; + if (border_size > 0.0f && !(window->Flags & ImGuiWindowFlags_NoBackground)) + window->DrawList->AddRect(window->Pos, window->Pos + window->Size, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); + + int border_held = window->ResizeBorderHeld; + if (border_held != -1) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_held]; + ImRect border_r = GetResizeBorderRect(window, border_held, rounding, 0.0f); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN1) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle - IM_PI * 0.25f, def.OuterAngle); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.SegmentN2) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle, def.OuterAngle + IM_PI * 0.25f); + window->DrawList->PathStroke(GetColorU32(ImGuiCol_SeparatorActive), 0, ImMax(2.0f, border_size)); // Thicker than usual + } + if (g.Style.FrameBorderSize > 0 && !(window->Flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + { + float y = window->Pos.y + window->TitleBarHeight() - 1; + window->DrawList->AddLine(ImVec2(window->Pos.x + border_size, y), ImVec2(window->Pos.x + window->Size.x - border_size, y), GetColorU32(ImGuiCol_Border), g.Style.FrameBorderSize); + } +} + +// Draw background and borders +// Draw and handle scrollbars +void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, bool handle_borders_and_resize_grips, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + // Ensure that ScrollBar doesn't read last frame's SkipItems + IM_ASSERT(window->BeginCount == 0); + window->SkipItems = false; + + // Draw window + handle manual resize + // As we highlight the title bar when want_focus is set, multiple reappearing windows will have their title bar highlighted on their reappearing frame. + const float window_rounding = window->WindowRounding; + const float window_border_size = window->WindowBorderSize; + if (window->Collapsed) + { + // Title bar only + const float backup_border_size = style.FrameBorderSize; + g.Style.FrameBorderSize = window->WindowBorderSize; + ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && !g.NavDisableHighlight) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed); + if (window->ViewportOwned) + title_bar_col |= IM_COL32_A_MASK; // No alpha (we don't support is_docking_transparent_payload here because simpler and less meaningful, but could with a bit of code shuffle/reuse) + RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding); + g.Style.FrameBorderSize = backup_border_size; + } + else + { + // Window background + if (!(flags & ImGuiWindowFlags_NoBackground)) + { + bool is_docking_transparent_payload = false; + if (g.DragDropActive && (g.FrameCount - g.DragDropAcceptFrameCount) <= 1 && g.IO.ConfigDockingTransparentPayload) + if (g.DragDropPayload.IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) && *(ImGuiWindow**)g.DragDropPayload.Data == window) + is_docking_transparent_payload = true; + + ImU32 bg_col = GetColorU32(GetWindowBgColorIdx(window)); + if (window->ViewportOwned) + { + bg_col |= IM_COL32_A_MASK; // No alpha + if (is_docking_transparent_payload) + window->Viewport->Alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; + } + else + { + // Adjust alpha. For docking + bool override_alpha = false; + float alpha = 1.0f; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasBgAlpha) + { + alpha = g.NextWindowData.BgAlphaVal; + override_alpha = true; + } + if (is_docking_transparent_payload) + { + alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; // FIXME-DOCK: Should that be an override? + override_alpha = true; + } + if (override_alpha) + bg_col = (bg_col & ~IM_COL32_A_MASK) | (IM_F32_TO_INT8_SAT(alpha) << IM_COL32_A_SHIFT); + } + + // Render, for docked windows and host windows we ensure bg goes before decorations + if (window->DockIsActive) + window->DockNode->LastBgColor = bg_col; + ImDrawList* bg_draw_list = window->DockIsActive ? window->DockNode->HostWindow->DrawList : window->DrawList; + if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + bg_draw_list->AddRectFilled(window->Pos + ImVec2(0, window->TitleBarHeight()), window->Pos + window->Size, bg_col, window_rounding, (flags & ImGuiWindowFlags_NoTitleBar) ? 0 : ImDrawFlags_RoundCornersBottom); + if (window->DockIsActive || (flags & ImGuiWindowFlags_DockNodeHost)) + bg_draw_list->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); + } + if (window->DockIsActive) + window->DockNode->IsBgDrawnThisFrame = true; + + // Title bar + // (when docked, DockNode are drawing their own title bar. Individual windows however do NOT set the _NoTitleBar flag, + // in order for their pos/size to be matching their undocking state.) + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + { + ImU32 title_bar_col = GetColorU32(title_bar_is_highlight ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, window_rounding, ImDrawFlags_RoundCornersTop); + } + + // Menu bar + if (flags & ImGuiWindowFlags_MenuBar) + { + ImRect menu_bar_rect = window->MenuBarRect(); + menu_bar_rect.ClipWith(window->Rect()); // Soft clipping, in particular child window don't have minimum size covering the menu bar so this is useful for them. + window->DrawList->AddRectFilled(menu_bar_rect.Min + ImVec2(window_border_size, 0), menu_bar_rect.Max - ImVec2(window_border_size, 0), GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawFlags_RoundCornersTop); + if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y) + window->DrawList->AddLine(menu_bar_rect.GetBL(), menu_bar_rect.GetBR(), GetColorU32(ImGuiCol_Border), style.FrameBorderSize); + } + + // Docking: Unhide tab bar (small triangle in the corner), drag from small triangle to quickly undock + ImGuiDockNode* node = window->DockNode; + if (window->DockIsActive && node->IsHiddenTabBar() && !node->IsNoTabBar()) + { + float unhide_sz_draw = ImFloor(g.FontSize * 0.70f); + float unhide_sz_hit = ImFloor(g.FontSize * 0.55f); + ImVec2 p = node->Pos; + ImRect r(p, p + ImVec2(unhide_sz_hit, unhide_sz_hit)); + ImGuiID unhide_id = window->GetID("#UNHIDE"); + KeepAliveID(unhide_id); + bool hovered, held; + if (ButtonBehavior(r, unhide_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren)) + node->WantHiddenTabBarToggle = true; + else if (held && IsMouseDragging(0)) + StartMouseMovingWindowOrNode(window, node, true); + + // FIXME-DOCK: Ideally we'd use ImGuiCol_TitleBgActive/ImGuiCol_TitleBg here, but neither is guaranteed to be visible enough at this sort of size.. + ImU32 col = GetColorU32(((held && hovered) || (node->IsFocused && !hovered)) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + window->DrawList->AddTriangleFilled(p, p + ImVec2(unhide_sz_draw, 0.0f), p + ImVec2(0.0f, unhide_sz_draw), col); + } + + // Scrollbars + if (window->ScrollbarX) + Scrollbar(ImGuiAxis_X); + if (window->ScrollbarY) + Scrollbar(ImGuiAxis_Y); + + // Render resize grips (after their input handling so we don't have a frame of latency) + if (handle_borders_and_resize_grips && !(flags & ImGuiWindowFlags_NoResize)) + { + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImU32 col = resize_grip_col[resize_grip_n]; + if ((col & IM_COL32_A_MASK) == 0) + continue; + const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(window_border_size, resize_grip_draw_size) : ImVec2(resize_grip_draw_size, window_border_size))); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(resize_grip_draw_size, window_border_size) : ImVec2(window_border_size, resize_grip_draw_size))); + window->DrawList->PathArcToFast(ImVec2(corner.x + grip.InnerDir.x * (window_rounding + window_border_size), corner.y + grip.InnerDir.y * (window_rounding + window_border_size)), window_rounding, grip.AngleMin12, grip.AngleMax12); + window->DrawList->PathFillConvex(col); + } + } + + // Borders (for dock node host they will be rendered over after the tab bar) + if (handle_borders_and_resize_grips && !window->DockNodeAsHost) + RenderWindowOuterBorders(window); + } +} + +// When inside a dock node, this is handled in DockNodeCalcTabBarLayout() instead. +// Render title text, collapse button, close button +void ImGui::RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + const bool has_close_button = (p_open != NULL); + const bool has_collapse_button = !(flags & ImGuiWindowFlags_NoCollapse) && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // Close & Collapse button are on the Menu NavLayer and don't default focus (unless there's nothing else on that layer) + // FIXME-NAV: Might want (or not?) to set the equivalent of ImGuiButtonFlags_NoNavFocus so that mouse clicks on standard title bar items don't necessarily set nav/keyboard ref? + const ImGuiItemFlags item_flags_backup = g.CurrentItemFlags; + g.CurrentItemFlags |= ImGuiItemFlags_NoNavDefaultFocus; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Layout buttons + // FIXME: Would be nice to generalize the subtleties expressed here into reusable code. + float pad_l = style.FramePadding.x; + float pad_r = style.FramePadding.x; + float button_sz = g.FontSize; + ImVec2 close_button_pos; + ImVec2 collapse_button_pos; + if (has_close_button) + { + close_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - button_sz, title_bar_rect.Min.y + style.FramePadding.y); + pad_r += button_sz + style.ItemInnerSpacing.x; + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + collapse_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - button_sz, title_bar_rect.Min.y + style.FramePadding.y); + pad_r += button_sz + style.ItemInnerSpacing.x; + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + collapse_button_pos = ImVec2(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y + style.FramePadding.y); + pad_l += button_sz + style.ItemInnerSpacing.x; + } + + // Collapse button (submitting first so it gets priority when choosing a navigation init fallback) + if (has_collapse_button) + if (CollapseButton(window->GetID("#COLLAPSE"), collapse_button_pos, NULL)) + window->WantCollapseToggle = true; // Defer actual collapsing to next frame as we are too far in the Begin() function + + // Close button + if (has_close_button) + if (CloseButton(window->GetID("#CLOSE"), close_button_pos)) + *p_open = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + g.CurrentItemFlags = item_flags_backup; + + // Title bar text (with: horizontal alignment, avoiding collapse/close button, optional "unsaved document" marker) + // FIXME: Refactor text alignment facilities along with RenderText helpers, this is WAY too much messy code.. + const float marker_size_x = (flags & ImGuiWindowFlags_UnsavedDocument) ? button_sz * 0.80f : 0.0f; + const ImVec2 text_size = CalcTextSize(name, NULL, true) + ImVec2(marker_size_x, 0.0f); + + // As a nice touch we try to ensure that centered title text doesn't get affected by visibility of Close/Collapse button, + // while uncentered title text will still reach edges correctly. + if (pad_l > style.FramePadding.x) + pad_l += g.Style.ItemInnerSpacing.x; + if (pad_r > style.FramePadding.x) + pad_r += g.Style.ItemInnerSpacing.x; + if (style.WindowTitleAlign.x > 0.0f && style.WindowTitleAlign.x < 1.0f) + { + float centerness = ImSaturate(1.0f - ImFabs(style.WindowTitleAlign.x - 0.5f) * 2.0f); // 0.0f on either edges, 1.0f on center + float pad_extend = ImMin(ImMax(pad_l, pad_r), title_bar_rect.GetWidth() - pad_l - pad_r - text_size.x); + pad_l = ImMax(pad_l, pad_extend * centerness); + pad_r = ImMax(pad_r, pad_extend * centerness); + } + + ImRect layout_r(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y, title_bar_rect.Max.x - pad_r, title_bar_rect.Max.y); + ImRect clip_r(layout_r.Min.x, layout_r.Min.y, ImMin(layout_r.Max.x + g.Style.ItemInnerSpacing.x, title_bar_rect.Max.x), layout_r.Max.y); + if (flags & ImGuiWindowFlags_UnsavedDocument) + { + ImVec2 marker_pos; + marker_pos.x = ImClamp(layout_r.Min.x + (layout_r.GetWidth() - text_size.x) * style.WindowTitleAlign.x + text_size.x, layout_r.Min.x, layout_r.Max.x); + marker_pos.y = (layout_r.Min.y + layout_r.Max.y) * 0.5f; + if (marker_pos.x > layout_r.Min.x) + { + RenderBullet(window->DrawList, marker_pos, GetColorU32(ImGuiCol_Text)); + clip_r.Max.x = ImMin(clip_r.Max.x, marker_pos.x - (int)(marker_size_x * 0.5f)); + } + } + //if (g.IO.KeyShift) window->DrawList->AddRect(layout_r.Min, layout_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + //if (g.IO.KeyCtrl) window->DrawList->AddRect(clip_r.Min, clip_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + RenderTextClipped(layout_r.Min, layout_r.Max, name, NULL, &text_size, style.WindowTitleAlign, &clip_r); +} + +void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window) +{ + window->ParentWindow = parent_window; + window->RootWindow = window->RootWindowPopupTree = window->RootWindowDockTree = window->RootWindowForTitleBarHighlight = window->RootWindowForNav = window; + if (parent_window && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Tooltip)) + { + window->RootWindowDockTree = parent_window->RootWindowDockTree; + if (!window->DockIsActive && !(parent_window->Flags & ImGuiWindowFlags_DockNodeHost)) + window->RootWindow = parent_window->RootWindow; + } + if (parent_window && (flags & ImGuiWindowFlags_Popup)) + window->RootWindowPopupTree = parent_window->RootWindowPopupTree; + if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) // FIXME: simply use _NoTitleBar ? + window->RootWindowForTitleBarHighlight = parent_window->RootWindowForTitleBarHighlight; + while (window->RootWindowForNav->Flags & ImGuiWindowFlags_NavFlattened) + { + IM_ASSERT(window->RootWindowForNav->ParentWindow != NULL); + window->RootWindowForNav = window->RootWindowForNav->ParentWindow; + } +} + +// When a modal popup is open, newly created windows that want focus (i.e. are not popups and do not specify ImGuiWindowFlags_NoFocusOnAppearing) +// should be positioned behind that modal window, unless the window was created inside the modal begin-stack. +// In case of multiple stacked modals newly created window honors begin stack order and does not go below its own modal parent. +// - WindowA // FindBlockingModal() returns Modal1 +// - WindowB // .. returns Modal1 +// - Modal1 // .. returns Modal2 +// - WindowC // .. returns Modal2 +// - WindowD // .. returns Modal2 +// - Modal2 // .. returns Modal2 +// - WindowE // .. returns NULL +// Notes: +// - FindBlockingModal(NULL) == NULL is generally equivalent to GetTopMostPopupModal() == NULL. +// Only difference is here we check for ->Active/WasActive but it may be unecessary. +ImGuiWindow* ImGui::FindBlockingModal(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= 0) + return NULL; + + // Find a modal that has common parent with specified window. Specified window should be positioned behind that modal. + for (ImGuiPopupData& popup_data : g.OpenPopupStack) + { + ImGuiWindow* popup_window = popup_data.Window; + if (popup_window == NULL || !(popup_window->Flags & ImGuiWindowFlags_Modal)) + continue; + if (!popup_window->Active && !popup_window->WasActive) // Check WasActive, because this code may run before popup renders on current frame, also check Active to handle newly created windows. + continue; + if (window == NULL) // FindBlockingModal(NULL) test for if FocusWindow(NULL) is naturally possible via a mouse click. + return popup_window; + if (IsWindowWithinBeginStackOf(window, popup_window)) // Window may be over modal + continue; + return popup_window; // Place window right below first block modal + } + return NULL; +} + +// Push a new Dear ImGui window to add widgets to. +// - A default window called "Debug" is automatically stacked at the beginning of every frame so you can use widgets without explicitly calling a Begin/End pair. +// - Begin/End can be called multiple times during the frame with the same window name to append content. +// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file). +// You can use the "##" or "###" markers to use the same label with different id, or same id with different label. See documentation at the top of this file. +// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned. +// - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed. +bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + IM_ASSERT(name != NULL && name[0] != '\0'); // Window name required + IM_ASSERT(g.WithinFrameScope); // Forgot to call ImGui::NewFrame() + IM_ASSERT(g.FrameCountEnded != g.FrameCount); // Called ImGui::Render() or ImGui::EndFrame() and haven't called ImGui::NewFrame() again yet + + // Find or create + ImGuiWindow* window = FindWindowByName(name); + const bool window_just_created = (window == NULL); + if (window_just_created) + window = CreateNewWindow(name, flags); + + // Automatically disable manual moving/resizing when NoInputs is set + if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) + flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize; + + if (flags & ImGuiWindowFlags_NavFlattened) + IM_ASSERT(flags & ImGuiWindowFlags_ChildWindow); + + const int current_frame = g.FrameCount; + const bool first_begin_of_the_frame = (window->LastFrameActive != current_frame); + window->IsFallbackWindow = (g.CurrentWindowStack.Size == 0 && g.WithinFrameScopeWithImplicitWindow); + + // Update the Appearing flag (note: the BeginDocked() path may also set this to true later) + bool window_just_activated_by_user = (window->LastFrameActive < current_frame - 1); // Not using !WasActive because the implicit "Debug" window would always toggle off->on + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + window_just_activated_by_user |= (window->PopupId != popup_ref.PopupId); // We recycle popups so treat window as activated if popup id changed + window_just_activated_by_user |= (window != popup_ref.Window); + } + + // Update Flags, LastFrameActive, BeginOrderXXX fields + const bool window_was_appearing = window->Appearing; + if (first_begin_of_the_frame) + { + UpdateWindowInFocusOrderList(window, window_just_created, flags); + window->Appearing = window_just_activated_by_user; + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + window->FlagsPreviousFrame = window->Flags; + window->Flags = (ImGuiWindowFlags)flags; + window->LastFrameActive = current_frame; + window->LastTimeActive = (float)g.Time; + window->BeginOrderWithinParent = 0; + window->BeginOrderWithinContext = (short)(g.WindowsActiveCount++); + } + else + { + flags = window->Flags; + } + + // Docking + // (NB: during the frame dock nodes are created, it is possible that (window->DockIsActive == false) even though (window->DockNode->Windows.Size > 1) + IM_ASSERT(window->DockNode == NULL || window->DockNodeAsHost == NULL); // Cannot be both + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasDock) + SetWindowDock(window, g.NextWindowData.DockId, g.NextWindowData.DockCond); + if (first_begin_of_the_frame) + { + bool has_dock_node = (window->DockId != 0 || window->DockNode != NULL); + bool new_auto_dock_node = !has_dock_node && GetWindowAlwaysWantOwnTabBar(window); + bool dock_node_was_visible = window->DockNodeIsVisible; + bool dock_tab_was_visible = window->DockTabIsVisible; + if (has_dock_node || new_auto_dock_node) + { + BeginDocked(window, p_open); + flags = window->Flags; + if (window->DockIsActive) + { + IM_ASSERT(window->DockNode != NULL); + g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint; // Docking currently override constraints + } + + // Amend the Appearing flag + if (window->DockTabIsVisible && !dock_tab_was_visible && dock_node_was_visible && !window->Appearing && !window_was_appearing) + { + window->Appearing = true; + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + } + } + else + { + window->DockIsActive = window->DockNodeIsVisible = window->DockTabIsVisible = false; + } + } + + // Parent window is latched only on the first call to Begin() of the frame, so further append-calls can be done from a different window stack + ImGuiWindow* parent_window_in_stack = (window->DockIsActive && window->DockNode->HostWindow) ? window->DockNode->HostWindow : g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back().Window; + ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow; + IM_ASSERT(parent_window != NULL || !(flags & ImGuiWindowFlags_ChildWindow)); + + // We allow window memory to be compacted so recreate the base stack when needed. + if (window->IDStack.Size == 0) + window->IDStack.push_back(window->ID); + + // Add to stack + // We intentionally set g.CurrentWindow to NULL to prevent usage until when the viewport is set, then will call SetCurrentWindow() + g.CurrentWindow = window; + ImGuiWindowStackData window_stack_data; + window_stack_data.Window = window; + window_stack_data.ParentLastItemDataBackup = g.LastItemData; + window_stack_data.StackSizesOnBegin.SetToContextState(&g); + g.CurrentWindowStack.push_back(window_stack_data); + if (flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount++; + + // Update ->RootWindow and others pointers (before any possible call to FocusWindow) + if (first_begin_of_the_frame) + { + UpdateWindowParentAndRootLinks(window, flags, parent_window); + window->ParentWindowInBeginStack = parent_window_in_stack; + } + + // Add to focus scope stack + PushFocusScope(window->ID); + window->NavRootFocusScopeId = g.CurrentFocusScopeId; + g.CurrentWindow = NULL; + + // Add to popup stack + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + popup_ref.Window = window; + popup_ref.ParentNavLayer = parent_window_in_stack->DC.NavLayerCurrent; + g.BeginPopupStack.push_back(popup_ref); + window->PopupId = popup_ref.PopupId; + } + + // Process SetNextWindow***() calls + // (FIXME: Consider splitting the HasXXX flags into X/Y components + bool window_pos_set_by_api = false; + bool window_size_x_set_by_api = false, window_size_y_set_by_api = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) + { + window_pos_set_by_api = (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) != 0; + if (window_pos_set_by_api && ImLengthSqr(g.NextWindowData.PosPivotVal) > 0.00001f) + { + // May be processed on the next frame if this is our first frame and we are measuring size + // FIXME: Look into removing the branch so everything can go through this same code path for consistency. + window->SetWindowPosVal = g.NextWindowData.PosVal; + window->SetWindowPosPivot = g.NextWindowData.PosPivotVal; + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + } + else + { + SetWindowPos(window, g.NextWindowData.PosVal, g.NextWindowData.PosCond); + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) + { + window_size_x_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.x > 0.0f); + window_size_y_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.y > 0.0f); + SetWindowSize(window, g.NextWindowData.SizeVal, g.NextWindowData.SizeCond); + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) + { + if (g.NextWindowData.ScrollVal.x >= 0.0f) + { + window->ScrollTarget.x = g.NextWindowData.ScrollVal.x; + window->ScrollTargetCenterRatio.x = 0.0f; + } + if (g.NextWindowData.ScrollVal.y >= 0.0f) + { + window->ScrollTarget.y = g.NextWindowData.ScrollVal.y; + window->ScrollTargetCenterRatio.y = 0.0f; + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasContentSize) + window->ContentSizeExplicit = g.NextWindowData.ContentSizeVal; + else if (first_begin_of_the_frame) + window->ContentSizeExplicit = ImVec2(0.0f, 0.0f); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasWindowClass) + window->WindowClass = g.NextWindowData.WindowClass; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasCollapsed) + SetWindowCollapsed(window, g.NextWindowData.CollapsedVal, g.NextWindowData.CollapsedCond); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasFocus) + FocusWindow(window); + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, false); + + // When reusing window again multiple times a frame, just append content (don't need to setup again) + if (first_begin_of_the_frame) + { + // Initialize + const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) + const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); + window->Active = true; + window->HasCloseButton = (p_open != NULL); + window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); + window->IDStack.resize(1); + window->DrawList->_ResetForNewFrame(); + window->DC.CurrentTableIdx = -1; + if (flags & ImGuiWindowFlags_DockNodeHost) + { + window->DrawList->ChannelsSplit(2); + window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); // Render decorations on channel 1 as we will render the backgrounds manually later + } + + // Restore buffer capacity when woken from a compacted state, to avoid + if (window->MemoryCompacted) + GcAwakeTransientWindowBuffers(window); + + // Update stored window name when it changes (which can _only_ happen with the "###" operator, so the ID would stay unchanged). + // The title bar always display the 'name' parameter, so we only update the string storage if it needs to be visible to the end-user elsewhere. + bool window_title_visible_elsewhere = false; + if ((window->Viewport && window->Viewport->Window == window) || (window->DockIsActive)) + window_title_visible_elsewhere = true; + else if (g.NavWindowingListWindow != NULL && (window->Flags & ImGuiWindowFlags_NoNavFocus) == 0) // Window titles visible when using CTRL+TAB + window_title_visible_elsewhere = true; + if (window_title_visible_elsewhere && !window_just_created && strcmp(name, window->Name) != 0) + { + size_t buf_len = (size_t)window->NameBufLen; + window->Name = ImStrdupcpy(window->Name, &buf_len, name); + window->NameBufLen = (int)buf_len; + } + + // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS + + // Update contents size from last frame for auto-fitting (or use explicit size) + CalcWindowContentSizes(window, &window->ContentSize, &window->ContentSizeIdeal); + + // FIXME: These flags are decremented before they are used. This means that in order to have these fields produce their intended behaviors + // for one frame we must set them to at least 2, which is counter-intuitive. HiddenFramesCannotSkipItems is a more complicated case because + // it has a single usage before this code block and may be set below before it is finally checked. + if (window->HiddenFramesCanSkipItems > 0) + window->HiddenFramesCanSkipItems--; + if (window->HiddenFramesCannotSkipItems > 0) + window->HiddenFramesCannotSkipItems--; + if (window->HiddenFramesForRenderOnly > 0) + window->HiddenFramesForRenderOnly--; + + // Hide new windows for one frame until they calculate their size + if (window_just_created && (!window_size_x_set_by_api || !window_size_y_set_by_api)) + window->HiddenFramesCannotSkipItems = 1; + + // Hide popup/tooltip window when re-opening while we measure size (because we recycle the windows) + // We reset Size/ContentSize for reappearing popups/tooltips early in this function, so further code won't be tempted to use the old size. + if (window_just_activated_by_user && (flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) != 0) + { + window->HiddenFramesCannotSkipItems = 1; + if (flags & ImGuiWindowFlags_AlwaysAutoResize) + { + if (!window_size_x_set_by_api) + window->Size.x = window->SizeFull.x = 0.f; + if (!window_size_y_set_by_api) + window->Size.y = window->SizeFull.y = 0.f; + window->ContentSize = window->ContentSizeIdeal = ImVec2(0.f, 0.f); + } + } + + // SELECT VIEWPORT + // We need to do this before using any style/font sizes, as viewport with a different DPI may affect font sizes. + + WindowSelectViewport(window); + SetCurrentViewport(window, window->Viewport); + window->FontDpiScale = (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ? window->Viewport->DpiScale : 1.0f; + SetCurrentWindow(window); + flags = window->Flags; + + // LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies) + // We read Style data after the call to UpdateSelectWindowViewport() which might be swapping the style. + + if (!window->DockIsActive && (flags & ImGuiWindowFlags_ChildWindow)) + window->WindowBorderSize = style.ChildBorderSize; + else + window->WindowBorderSize = ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupBorderSize : style.WindowBorderSize; + if (!window->DockIsActive && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & (ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_Popup)) && window->WindowBorderSize == 0.0f) + window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); + else + window->WindowPadding = style.WindowPadding; + + // Lock menu offset so size calculation can use it as menu-bar windows need a minimum size. + window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); + window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; + + bool use_current_size_for_scrollbar_x = window_just_created; + bool use_current_size_for_scrollbar_y = window_just_created; + + // Collapse window by double-clicking on title bar + // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse) && !window->DockIsActive) + { + // We don't use a regular button+id to test for double-click on title bar (mostly due to legacy reason, could be fixed), so verify that we don't have items over the title bar. + ImRect title_bar_rect = window->TitleBarRect(); + if (g.HoveredWindow == window && g.HoveredId == 0 && g.HoveredIdPreviousFrame == 0 && IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max) && g.IO.MouseClickedCount[0] == 2) + window->WantCollapseToggle = true; + if (window->WantCollapseToggle) + { + window->Collapsed = !window->Collapsed; + if (!window->Collapsed) + use_current_size_for_scrollbar_y = true; + MarkIniSettingsDirty(window); + } + } + else + { + window->Collapsed = false; + } + window->WantCollapseToggle = false; + + // SIZE + + // Outer Decoration Sizes + // (we need to clear ScrollbarSize immediatly as CalcWindowAutoFitSize() needs it and can be called from other locations). + const ImVec2 scrollbar_sizes_from_last_frame = window->ScrollbarSizes; + window->DecoOuterSizeX1 = 0.0f; + window->DecoOuterSizeX2 = 0.0f; + window->DecoOuterSizeY1 = window->TitleBarHeight() + window->MenuBarHeight(); + window->DecoOuterSizeY2 = 0.0f; + window->ScrollbarSizes = ImVec2(0.0f, 0.0f); + + // Calculate auto-fit size, handle automatic resize + const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSizeIdeal); + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) + { + // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. + if (!window_size_x_set_by_api) + { + window->SizeFull.x = size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api) + { + window->SizeFull.y = size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + } + else if (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + { + // Auto-fit may only grow window during the first few frames + // We still process initial auto-fit on collapsed windows to get a window width, but otherwise don't honor ImGuiWindowFlags_AlwaysAutoResize when collapsed. + if (!window_size_x_set_by_api && window->AutoFitFramesX > 0) + { + window->SizeFull.x = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.x, size_auto_fit.x) : size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api && window->AutoFitFramesY > 0) + { + window->SizeFull.y = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.y, size_auto_fit.y) : size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + if (!window->Collapsed) + MarkIniSettingsDirty(window); + } + + // Apply minimum/maximum window size constraints and final size + window->SizeFull = CalcWindowSizeAfterConstraint(window, window->SizeFull); + window->Size = window->Collapsed && !(flags & ImGuiWindowFlags_ChildWindow) ? window->TitleBarRect().GetSize() : window->SizeFull; + + // POSITION + + // Popup latch its initial position, will position itself when it appears next frame + if (window_just_activated_by_user) + { + window->AutoPosLastDirection = ImGuiDir_None; + if ((flags & ImGuiWindowFlags_Popup) != 0 && !(flags & ImGuiWindowFlags_Modal) && !window_pos_set_by_api) // FIXME: BeginPopup() could use SetNextWindowPos() + window->Pos = g.BeginPopupStack.back().OpenPopupPos; + } + + // Position child window + if (flags & ImGuiWindowFlags_ChildWindow) + { + IM_ASSERT(parent_window && parent_window->Active); + window->BeginOrderWithinParent = (short)parent_window->DC.ChildWindows.Size; + parent_window->DC.ChildWindows.push_back(window); + if (!(flags & ImGuiWindowFlags_Popup) && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = parent_window->DC.CursorPos; + } + + const bool window_pos_with_pivot = (window->SetWindowPosVal.x != FLT_MAX && window->HiddenFramesCannotSkipItems == 0); + if (window_pos_with_pivot) + SetWindowPos(window, window->SetWindowPosVal - window->Size * window->SetWindowPosPivot, 0); // Position given a pivot (e.g. for centering) + else if ((flags & ImGuiWindowFlags_ChildMenu) != 0) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Popup) != 0 && !window_pos_set_by_api && window_just_appearing_after_hidden_for_resize) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = FindBestWindowPosForPopup(window); + + // Late create viewport if we don't fit within our current host viewport. + if (window->ViewportAllowPlatformMonitorExtend >= 0 && !window->ViewportOwned && !(window->Viewport->Flags & ImGuiViewportFlags_IsMinimized)) + if (!window->Viewport->GetMainRect().Contains(window->Rect())) + { + // This is based on the assumption that the DPI will be known ahead (same as the DPI of the selection done in UpdateSelectWindowViewport) + //ImGuiViewport* old_viewport = window->Viewport; + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_NoFocusOnAppearing); + + // FIXME-DPI + //IM_ASSERT(old_viewport->DpiScale == window->Viewport->DpiScale); // FIXME-DPI: Something went wrong + SetCurrentViewport(window, window->Viewport); + window->FontDpiScale = (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleFonts) ? window->Viewport->DpiScale : 1.0f; + SetCurrentWindow(window); + } + + if (window->ViewportOwned) + WindowSyncOwnedViewport(window, parent_window_in_stack); + + // Calculate the range of allowed position for that window (to be movable and visible past safe area padding) + // When clamping to stay visible, we will enforce that window->Pos stays inside of visibility_rect. + ImRect viewport_rect(window->Viewport->GetMainRect()); + ImRect viewport_work_rect(window->Viewport->GetWorkRect()); + ImVec2 visibility_padding = ImMax(style.DisplayWindowPadding, style.DisplaySafeAreaPadding); + ImRect visibility_rect(viewport_work_rect.Min + visibility_padding, viewport_work_rect.Max - visibility_padding); + + // Clamp position/size so window stays visible within its viewport or monitor + // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. + // FIXME: Similar to code in GetWindowAllowedExtentRect() + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow)) + { + if (!window->ViewportOwned && viewport_rect.GetWidth() > 0 && viewport_rect.GetHeight() > 0.0f) + { + ClampWindowPos(window, visibility_rect); + } + else if (window->ViewportOwned && g.PlatformIO.Monitors.Size > 0) + { + // Lost windows (e.g. a monitor disconnected) will naturally moved to the fallback/dummy monitor aka the main viewport. + const ImGuiPlatformMonitor* monitor = GetViewportPlatformMonitor(window->Viewport); + visibility_rect.Min = monitor->WorkPos + visibility_padding; + visibility_rect.Max = monitor->WorkPos + monitor->WorkSize - visibility_padding; + ClampWindowPos(window, visibility_rect); + } + } + window->Pos = ImFloor(window->Pos); + + // Lock window rounding for the frame (so that altering them doesn't cause inconsistencies) + // Large values tend to lead to variety of artifacts and are not recommended. + if (window->ViewportOwned || window->DockIsActive) + window->WindowRounding = 0.0f; + else + window->WindowRounding = (flags & ImGuiWindowFlags_ChildWindow) ? style.ChildRounding : ((flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupRounding : style.WindowRounding; + + // For windows with title bar or menu bar, we clamp to FrameHeight(FontSize + FramePadding.y * 2.0f) to completely hide artifacts. + //if ((window->Flags & ImGuiWindowFlags_MenuBar) || !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + // window->WindowRounding = ImMin(window->WindowRounding, g.FontSize + style.FramePadding.y * 2.0f); + + // Apply window focus (new and reactivated windows are moved to front) + bool want_focus = false; + if (window_just_activated_by_user && !(flags & ImGuiWindowFlags_NoFocusOnAppearing)) + { + if (flags & ImGuiWindowFlags_Popup) + want_focus = true; + else if ((window->DockIsActive || (flags & ImGuiWindowFlags_ChildWindow) == 0) && !(flags & ImGuiWindowFlags_Tooltip)) + want_focus = true; + } + + // [Test Engine] Register whole window in the item system (before submitting further decorations) +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.TestEngineHookItems) + { + IM_ASSERT(window->IDStack.Size == 1); + window->IDStack.Size = 0; // As window->IDStack[0] == window->ID here, make sure TestEngine doesn't erroneously see window as parent of itself. + IMGUI_TEST_ENGINE_ITEM_ADD(window->ID, window->Rect(), NULL); + IMGUI_TEST_ENGINE_ITEM_INFO(window->ID, window->Name, (g.HoveredWindow == window) ? ImGuiItemStatusFlags_HoveredRect : 0); + window->IDStack.Size = 1; + } +#endif + + // Decide if we are going to handle borders and resize grips + const bool handle_borders_and_resize_grips = (window->DockNodeAsHost || !window->DockIsActive); + + // Handle manual resize: Resize Grips, Borders, Gamepad + int border_held = -1; + ImU32 resize_grip_col[4] = {}; + const int resize_grip_count = g.IO.ConfigWindowsResizeFromEdges ? 2 : 1; // Allow resize from lower-left if we have the mouse cursor feedback for it. + const float resize_grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.10f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + if (handle_borders_and_resize_grips && !window->Collapsed) + if (UpdateWindowManualResize(window, size_auto_fit, &border_held, resize_grip_count, &resize_grip_col[0], visibility_rect)) + use_current_size_for_scrollbar_x = use_current_size_for_scrollbar_y = true; + window->ResizeBorderHeld = (signed char)border_held; + + // Synchronize window --> viewport again and one last time (clamping and manual resize may have affected either) + if (window->ViewportOwned) + { + if (!window->Viewport->PlatformRequestMove) + window->Viewport->Pos = window->Pos; + if (!window->Viewport->PlatformRequestResize) + window->Viewport->Size = window->Size; + window->Viewport->UpdateWorkRect(); + viewport_rect = window->Viewport->GetMainRect(); + } + + // Save last known viewport position within the window itself (so it can be saved in .ini file and restored) + window->ViewportPos = window->Viewport->Pos; + + // SCROLLBAR VISIBILITY + + // Update scrollbar visibility (based on the Size that was effective during last frame or the auto-resized Size). + if (!window->Collapsed) + { + // When reading the current size we need to read it after size constraints have been applied. + // Intentionally use previous frame values for InnerRect and ScrollbarSizes. + // And when we use window->DecorationUp here it doesn't have ScrollbarSizes.y applied yet. + ImVec2 avail_size_from_current_frame = ImVec2(window->SizeFull.x, window->SizeFull.y - (window->DecoOuterSizeY1 + window->DecoOuterSizeY2)); + ImVec2 avail_size_from_last_frame = window->InnerRect.GetSize() + scrollbar_sizes_from_last_frame; + ImVec2 needed_size_from_last_frame = window_just_created ? ImVec2(0, 0) : window->ContentSize + window->WindowPadding * 2.0f; + float size_x_for_scrollbars = use_current_size_for_scrollbar_x ? avail_size_from_current_frame.x : avail_size_from_last_frame.x; + float size_y_for_scrollbars = use_current_size_for_scrollbar_y ? avail_size_from_current_frame.y : avail_size_from_last_frame.y; + //bool scrollbar_y_from_last_frame = window->ScrollbarY; // FIXME: May want to use that in the ScrollbarX expression? How many pros vs cons? + window->ScrollbarY = (flags & ImGuiWindowFlags_AlwaysVerticalScrollbar) || ((needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar)); + window->ScrollbarX = (flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar) || ((needed_size_from_last_frame.x > size_x_for_scrollbars - (window->ScrollbarY ? style.ScrollbarSize : 0.0f)) && !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar)); + if (window->ScrollbarX && !window->ScrollbarY) + window->ScrollbarY = (needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar); + window->ScrollbarSizes = ImVec2(window->ScrollbarY ? style.ScrollbarSize : 0.0f, window->ScrollbarX ? style.ScrollbarSize : 0.0f); + + // Amend the partially filled window->DecorationXXX values. + window->DecoOuterSizeX2 += window->ScrollbarSizes.x; + window->DecoOuterSizeY2 += window->ScrollbarSizes.y; + } + + // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) + // Update various regions. Variables they depend on should be set above in this function. + // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. + + // Outer rectangle + // Not affected by window border size. Used by: + // - FindHoveredWindow() (w/ extra padding when border resize is enabled) + // - Begin() initial clipping rect for drawing window background and borders. + // - Begin() clipping whole child + const ImRect host_rect = ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) ? parent_window->ClipRect : viewport_rect; + const ImRect outer_rect = window->Rect(); + const ImRect title_bar_rect = window->TitleBarRect(); + window->OuterRectClipped = outer_rect; + if (window->DockIsActive) + window->OuterRectClipped.Min.y += window->TitleBarHeight(); + window->OuterRectClipped.ClipWith(host_rect); + + // Inner rectangle + // Not affected by window border size. Used by: + // - InnerClipRect + // - ScrollToRectEx() + // - NavUpdatePageUpPageDown() + // - Scrollbar() + window->InnerRect.Min.x = window->Pos.x + window->DecoOuterSizeX1; + window->InnerRect.Min.y = window->Pos.y + window->DecoOuterSizeY1; + window->InnerRect.Max.x = window->Pos.x + window->Size.x - window->DecoOuterSizeX2; + window->InnerRect.Max.y = window->Pos.y + window->Size.y - window->DecoOuterSizeY2; + + // Inner clipping rectangle. + // Will extend a little bit outside the normal work region. + // This is to allow e.g. Selectable or CollapsingHeader or some separators to cover that space. + // Force round operator last to ensure that e.g. (int)(max.x-min.x) in user's render code produce correct result. + // Note that if our window is collapsed we will end up with an inverted (~null) clipping rectangle which is the correct behavior. + // Affected by window/frame border size. Used by: + // - Begin() initial clip rect + float top_border_size = (((flags & ImGuiWindowFlags_MenuBar) || !(flags & ImGuiWindowFlags_NoTitleBar)) ? style.FrameBorderSize : window->WindowBorderSize); + window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerRect.Min.x + ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerRect.Min.y + top_border_size); + window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Max.y = ImFloor(0.5f + window->InnerRect.Max.y - window->WindowBorderSize); + window->InnerClipRect.ClipWithFull(host_rect); + + // Default item width. Make it proportional to window size if window manually resizes + if (window->Size.x > 0.0f && !(flags & ImGuiWindowFlags_Tooltip) && !(flags & ImGuiWindowFlags_AlwaysAutoResize)) + window->ItemWidthDefault = ImFloor(window->Size.x * 0.65f); + else + window->ItemWidthDefault = ImFloor(g.FontSize * 16.0f); + + // SCROLLING + + // Lock down maximum scrolling + // The value of ScrollMax are ahead from ScrollbarX/ScrollbarY which is intentionally using InnerRect from previous rect in order to accommodate + // for right/bottom aligned items without creating a scrollbar. + window->ScrollMax.x = ImMax(0.0f, window->ContentSize.x + window->WindowPadding.x * 2.0f - window->InnerRect.GetWidth()); + window->ScrollMax.y = ImMax(0.0f, window->ContentSize.y + window->WindowPadding.y * 2.0f - window->InnerRect.GetHeight()); + + // Apply scrolling + window->Scroll = CalcNextScrollFromScrollTargetAndClamp(window); + window->ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + window->DecoInnerSizeX1 = window->DecoInnerSizeY1 = 0.0f; + + // DRAWING + + // Setup draw list and outer clipping rectangle + IM_ASSERT(window->DrawList->CmdBuffer.Size == 1 && window->DrawList->CmdBuffer[0].ElemCount == 0); + window->DrawList->PushTextureID(g.Font->ContainerAtlas->TexID); + PushClipRect(host_rect.Min, host_rect.Max, false); + + // Child windows can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call (since 1.71) + // When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order. + // FIXME: User code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected (github #4493) + const bool is_undocked_or_docked_visible = !window->DockIsActive || window->DockTabIsVisible; + if (is_undocked_or_docked_visible) + { + bool render_decorations_in_parent = false; + if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) + { + // - We test overlap with the previous child window only (testing all would end up being O(log N) not a good investment here) + // - We disable this when the parent window has zero vertices, which is a common pattern leading to laying out multiple overlapping childs + ImGuiWindow* previous_child = parent_window->DC.ChildWindows.Size >= 2 ? parent_window->DC.ChildWindows[parent_window->DC.ChildWindows.Size - 2] : NULL; + bool previous_child_overlapping = previous_child ? previous_child->Rect().Overlaps(window->Rect()) : false; + bool parent_is_empty = (parent_window->DrawList->VtxBuffer.Size == 0); + if (window->DrawList->CmdBuffer.back().ElemCount == 0 && !parent_is_empty && !previous_child_overlapping) + render_decorations_in_parent = true; + } + if (render_decorations_in_parent) + window->DrawList = parent_window->DrawList; + + // Handle title bar, scrollbar, resize grips and resize borders + const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow; + const bool title_bar_is_highlight = want_focus || (window_to_highlight && (window->RootWindowForTitleBarHighlight == window_to_highlight->RootWindowForTitleBarHighlight || (window->DockNode && window->DockNode == window_to_highlight->DockNode))); + RenderWindowDecorations(window, title_bar_rect, title_bar_is_highlight, handle_borders_and_resize_grips, resize_grip_count, resize_grip_col, resize_grip_draw_size); + + if (render_decorations_in_parent) + window->DrawList = &window->DrawListInst; + } + + // UPDATE RECTANGLES (2- THOSE AFFECTED BY SCROLLING) + + // Work rectangle. + // Affected by window padding and border size. Used by: + // - Columns() for right-most edge + // - TreeNode(), CollapsingHeader() for right-most edge + // - BeginTabBar() for right-most edge + const bool allow_scrollbar_x = !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar); + const bool allow_scrollbar_y = !(flags & ImGuiWindowFlags_NoScrollbar); + const float work_rect_size_x = (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : ImMax(allow_scrollbar_x ? window->ContentSize.x : 0.0f, window->Size.x - window->WindowPadding.x * 2.0f - (window->DecoOuterSizeX1 + window->DecoOuterSizeX2))); + const float work_rect_size_y = (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : ImMax(allow_scrollbar_y ? window->ContentSize.y : 0.0f, window->Size.y - window->WindowPadding.y * 2.0f - (window->DecoOuterSizeY1 + window->DecoOuterSizeY2))); + window->WorkRect.Min.x = ImFloor(window->InnerRect.Min.x - window->Scroll.x + ImMax(window->WindowPadding.x, window->WindowBorderSize)); + window->WorkRect.Min.y = ImFloor(window->InnerRect.Min.y - window->Scroll.y + ImMax(window->WindowPadding.y, window->WindowBorderSize)); + window->WorkRect.Max.x = window->WorkRect.Min.x + work_rect_size_x; + window->WorkRect.Max.y = window->WorkRect.Min.y + work_rect_size_y; + window->ParentWorkRect = window->WorkRect; + + // [LEGACY] Content Region + // FIXME-OBSOLETE: window->ContentRegionRect.Max is currently very misleading / partly faulty, but some BeginChild() patterns relies on it. + // Unless explicit content size is specified by user, this currently represent the region leading to no scrolling. + // Used by: + // - Mouse wheel scrolling + many other things + window->ContentRegionRect.Min.x = window->Pos.x - window->Scroll.x + window->WindowPadding.x + window->DecoOuterSizeX1; + window->ContentRegionRect.Min.y = window->Pos.y - window->Scroll.y + window->WindowPadding.y + window->DecoOuterSizeY1; + window->ContentRegionRect.Max.x = window->ContentRegionRect.Min.x + (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : (window->Size.x - window->WindowPadding.x * 2.0f - (window->DecoOuterSizeX1 + window->DecoOuterSizeX2))); + window->ContentRegionRect.Max.y = window->ContentRegionRect.Min.y + (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : (window->Size.y - window->WindowPadding.y * 2.0f - (window->DecoOuterSizeY1 + window->DecoOuterSizeY2))); + + // Setup drawing context + // (NB: That term "drawing context / DC" lost its meaning a long time ago. Initially was meant to hold transient data only. Nowadays difference between window-> and window->DC-> is dubious.) + window->DC.Indent.x = window->DecoOuterSizeX1 + window->WindowPadding.x - window->Scroll.x; + window->DC.GroupOffset.x = 0.0f; + window->DC.ColumnsOffset.x = 0.0f; + + // Record the loss of precision of CursorStartPos which can happen due to really large scrolling amount. + // This is used by clipper to compensate and fix the most common use case of large scroll area. Easy and cheap, next best thing compared to switching everything to double or ImU64. + double start_pos_highp_x = (double)window->Pos.x + window->WindowPadding.x - (double)window->Scroll.x + window->DecoOuterSizeX1 + window->DC.ColumnsOffset.x; + double start_pos_highp_y = (double)window->Pos.y + window->WindowPadding.y - (double)window->Scroll.y + window->DecoOuterSizeY1; + window->DC.CursorStartPos = ImVec2((float)start_pos_highp_x, (float)start_pos_highp_y); + window->DC.CursorStartPosLossyness = ImVec2((float)(start_pos_highp_x - window->DC.CursorStartPos.x), (float)(start_pos_highp_y - window->DC.CursorStartPos.y)); + window->DC.CursorPos = window->DC.CursorStartPos; + window->DC.CursorPosPrevLine = window->DC.CursorPos; + window->DC.CursorMaxPos = window->DC.CursorStartPos; + window->DC.IdealMaxPos = window->DC.CursorStartPos; + window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.NavLayersActiveMask = window->DC.NavLayersActiveMaskNext; + window->DC.NavLayersActiveMaskNext = 0x00; + window->DC.NavIsScrollPushableX = true; + window->DC.NavHideHighlightOneFrame = false; + window->DC.NavWindowHasScrollY = (window->ScrollMax.y > 0.0f); + + window->DC.MenuBarAppending = false; + window->DC.MenuColumns.Update(style.ItemSpacing.x, window_just_activated_by_user); + window->DC.TreeDepth = 0; + window->DC.TreeJumpToParentOnPopMask = 0x00; + window->DC.ChildWindows.resize(0); + window->DC.StateStorage = &window->StateStorage; + window->DC.CurrentColumns = NULL; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.ParentLayoutType = parent_window ? parent_window->DC.LayoutType : ImGuiLayoutType_Vertical; + + window->DC.ItemWidth = window->ItemWidthDefault; + window->DC.TextWrapPos = -1.0f; // disabled + window->DC.ItemWidthStack.resize(0); + window->DC.TextWrapPosStack.resize(0); + + if (window->AutoFitFramesX > 0) + window->AutoFitFramesX--; + if (window->AutoFitFramesY > 0) + window->AutoFitFramesY--; + + // Apply focus (we need to call FocusWindow() AFTER setting DC.CursorStartPos so our initial navigation reference rectangle can start around there) + // We ImGuiFocusRequestFlags_UnlessBelowModal to: + // - Avoid focusing a window that is created outside of a modal. This will prevent active modal from being closed. + // - Position window behind the modal that is not a begin-parent of this window. + if (want_focus) + FocusWindow(window, ImGuiFocusRequestFlags_UnlessBelowModal); + if (want_focus && window == g.NavWindow) + NavInitWindow(window, false); // <-- this is in the way for us to be able to defer and sort reappearing FocusWindow() calls + + // Close requested by platform window (apply to all windows in this viewport) + if (p_open != NULL && window->Viewport->PlatformRequestClose && window->Viewport != GetMainViewport()) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' closed by PlatformRequestClose\n", window->Name); + *p_open = false; + g.NavWindowingToggleLayer = false; // Assume user mapped PlatformRequestClose on ALT-F4 so we disable ALT for menu toggle. False positive not an issue. // FIXME-NAV: Try removing. + } + + // Title bar + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !window->DockIsActive) + RenderWindowTitleBarContents(window, ImRect(title_bar_rect.Min.x + window->WindowBorderSize, title_bar_rect.Min.y, title_bar_rect.Max.x - window->WindowBorderSize, title_bar_rect.Max.y), name, p_open); + + // Clear hit test shape every frame + window->HitTestHoleSize.x = window->HitTestHoleSize.y = 0; + + // Pressing CTRL+C while holding on a window copy its content to the clipboard + // This works but 1. doesn't handle multiple Begin/End pairs, 2. recursing into another Begin/End pair - so we need to work that out and add better logging scope. + // Maybe we can support CTRL+C on every element? + /* + //if (g.NavWindow == window && g.ActiveId == 0) + if (g.ActiveId == window->MoveId) + if (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + LogToClipboard(); + */ + + if (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable) + { + // Docking: Dragging a dockable window (or any of its child) turns it into a drag and drop source. + // We need to do this _before_ we overwrite window->DC.LastItemId below because BeginDockableDragDropSource() also overwrites it. + if (g.MovingWindow == window && (window->RootWindowDockTree->Flags & ImGuiWindowFlags_NoDocking) == 0) + BeginDockableDragDropSource(window); + + // Docking: Any dockable window can act as a target. For dock node hosts we call BeginDockableDragDropTarget() in DockNodeUpdate() instead. + if (g.DragDropActive && !(flags & ImGuiWindowFlags_NoDocking)) + if (g.MovingWindow == NULL || g.MovingWindow->RootWindowDockTree != window) + if ((window == window->RootWindowDockTree) && !(window->Flags & ImGuiWindowFlags_DockNodeHost)) + BeginDockableDragDropTarget(window); + } + + // We fill last item data based on Title Bar/Tab, in order for IsItemHovered() and IsItemActive() to be usable after Begin(). + // This is useful to allow creating context menus on title bar only, etc. + if (window->DockIsActive) + SetLastItemData(window->MoveId, g.CurrentItemFlags, window->DockTabItemStatusFlags, window->DockTabItemRect); + else + SetLastItemData(window->MoveId, g.CurrentItemFlags, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (g.DebugLocateId != 0 && (window->ID == g.DebugLocateId || window->MoveId == g.DebugLocateId)) + DebugLocateItemResolveWithLastItem(); +#endif + + // [Test Engine] Register title bar / tab with MoveId. +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) + IMGUI_TEST_ENGINE_ITEM_ADD(g.LastItemData.ID, g.LastItemData.Rect, &g.LastItemData); +#endif + } + else + { + // Append + SetCurrentViewport(window, window->Viewport); + SetCurrentWindow(window); + } + + if (!(flags & ImGuiWindowFlags_DockNodeHost)) + PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); + + // Clear 'accessed' flag last thing (After PushClipRect which will set the flag. We want the flag to stay false when the default "Debug" window is unused) + window->WriteAccessed = false; + window->BeginCount++; + g.NextWindowData.ClearFlags(); + + // Update visibility + if (first_begin_of_the_frame) + { + // When we are about to select this tab (which will only be visible on the _next frame_), flag it with a non-zero HiddenFramesCannotSkipItems. + // This will have the important effect of actually returning true in Begin() and not setting SkipItems, allowing an earlier submission of the window contents. + // This is analogous to regular windows being hidden from one frame. + // It is especially important as e.g. nested TabBars would otherwise generate flicker in the form of one empty frame, or focus requests won't be processed. + if (window->DockIsActive && !window->DockTabIsVisible) + { + if (window->LastFrameJustFocused == g.FrameCount) + window->HiddenFramesCannotSkipItems = 1; + else + window->HiddenFramesCanSkipItems = 1; + } + + if (flags & ImGuiWindowFlags_ChildWindow) + { + // Child window can be out of sight and have "negative" clip windows. + // Mark them as collapsed so commands are skipped earlier (we can't manually collapse them because they have no title bar). + IM_ASSERT((flags& ImGuiWindowFlags_NoTitleBar) != 0 || (window->DockIsActive)); + if (!(flags & ImGuiWindowFlags_AlwaysAutoResize) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) // FIXME: Doesn't make sense for ChildWindow?? + { + const bool nav_request = (flags & ImGuiWindowFlags_NavFlattened) && (g.NavAnyRequest && g.NavWindow && g.NavWindow->RootWindowForNav == window->RootWindowForNav); + if (!g.LogEnabled && !nav_request) + if (window->OuterRectClipped.Min.x >= window->OuterRectClipped.Max.x || window->OuterRectClipped.Min.y >= window->OuterRectClipped.Max.y) + window->HiddenFramesCanSkipItems = 1; + } + + // Hide along with parent or if parent is collapsed + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCanSkipItems > 0)) + window->HiddenFramesCanSkipItems = 1; + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCannotSkipItems > 0)) + window->HiddenFramesCannotSkipItems = 1; + } + + // Don't render if style alpha is 0.0 at the time of Begin(). This is arbitrary and inconsistent but has been there for a long while (may remove at some point) + if (style.Alpha <= 0.0f) + window->HiddenFramesCanSkipItems = 1; + + // Update the Hidden flag + bool hidden_regular = (window->HiddenFramesCanSkipItems > 0) || (window->HiddenFramesCannotSkipItems > 0); + window->Hidden = hidden_regular || (window->HiddenFramesForRenderOnly > 0); + + // Disable inputs for requested number of frames + if (window->DisableInputsFrames > 0) + { + window->DisableInputsFrames--; + window->Flags |= ImGuiWindowFlags_NoInputs; + } + + // Update the SkipItems flag, used to early out of all items functions (no layout required) + bool skip_items = false; + if (window->Collapsed || !window->Active || hidden_regular) + if (window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0 && window->HiddenFramesCannotSkipItems <= 0) + skip_items = true; + window->SkipItems = skip_items; + + // Restore NavLayersActiveMaskNext to previous value when not visible, so a CTRL+Tab back can use a safe value. + if (window->SkipItems) + window->DC.NavLayersActiveMaskNext = window->DC.NavLayersActiveMask; + + // Sanity check: there are two spots which can set Appearing = true + // - when 'window_just_activated_by_user' is set -> HiddenFramesCannotSkipItems is set -> SkipItems always false + // - in BeginDocked() path when DockNodeIsVisible == DockTabIsVisible == true -> hidden _should_ be all zero // FIXME: Not formally proven, hence the assert. + if (window->SkipItems && !window->Appearing) + IM_ASSERT(window->Appearing == false); // Please report on GitHub if this triggers: https://github.com/ocornut/imgui/issues/4177 + } + + // [DEBUG] io.ConfigDebugBeginReturnValue override return value to test Begin/End and BeginChild/EndChild behaviors. + // (The implicit fallback window is NOT automatically ended allowing it to always be able to receive commands without crashing) + if (!window->IsFallbackWindow && ((g.IO.ConfigDebugBeginReturnValueOnce && window_just_created) || (g.IO.ConfigDebugBeginReturnValueLoop && g.DebugBeginReturnValueCullDepth == g.CurrentWindowStack.Size))) + { + if (window->AutoFitFramesX > 0) { window->AutoFitFramesX++; } + if (window->AutoFitFramesY > 0) { window->AutoFitFramesY++; } + return false; + } + + return !window->SkipItems; +} + +void ImGui::End() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Error checking: verify that user hasn't called End() too many times! + if (g.CurrentWindowStack.Size <= 1 && g.WithinFrameScopeWithImplicitWindow) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size > 1, "Calling End() too many times!"); + return; + } + IM_ASSERT(g.CurrentWindowStack.Size > 0); + + // Error checking: verify that user doesn't directly call End() on a child window. + if ((window->Flags & ImGuiWindowFlags_ChildWindow) && !(window->Flags & ImGuiWindowFlags_DockNodeHost) && !window->DockIsActive) + IM_ASSERT_USER_ERROR(g.WithinEndChild, "Must call EndChild() and not End()!"); + + // Close anything that is open + if (window->DC.CurrentColumns) + EndColumns(); + if (!(window->Flags & ImGuiWindowFlags_DockNodeHost)) // Pop inner window clip rectangle + PopClipRect(); + PopFocusScope(); + + // Stop logging + if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging + LogFinish(); + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Docking: report contents sizes to parent to allow for auto-resize + if (window->DockNode && window->DockTabIsVisible) + if (ImGuiWindow* host_window = window->DockNode->HostWindow) // FIXME-DOCK + host_window->DC.CursorMaxPos = window->DC.CursorMaxPos + window->WindowPadding - host_window->WindowPadding; + + // Pop from window stack + g.LastItemData = g.CurrentWindowStack.back().ParentLastItemDataBackup; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + g.BeginMenuCount--; + if (window->Flags & ImGuiWindowFlags_Popup) + g.BeginPopupStack.pop_back(); + g.CurrentWindowStack.back().StackSizesOnBegin.CompareWithContextState(&g); + g.CurrentWindowStack.pop_back(); + SetCurrentWindow(g.CurrentWindowStack.Size == 0 ? NULL : g.CurrentWindowStack.back().Window); + if (g.CurrentWindow) + SetCurrentViewport(g.CurrentWindow, g.CurrentWindow->Viewport); +} + +void ImGui::BringWindowToFocusFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window == window->RootWindow); + + const int cur_order = window->FocusOrder; + IM_ASSERT(g.WindowsFocusOrder[cur_order] == window); + if (g.WindowsFocusOrder.back() == window) + return; + + const int new_order = g.WindowsFocusOrder.Size - 1; + for (int n = cur_order; n < new_order; n++) + { + g.WindowsFocusOrder[n] = g.WindowsFocusOrder[n + 1]; + g.WindowsFocusOrder[n]->FocusOrder--; + IM_ASSERT(g.WindowsFocusOrder[n]->FocusOrder == n); + } + g.WindowsFocusOrder[new_order] = window; + window->FocusOrder = (short)new_order; +} + +void ImGui::BringWindowToDisplayFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* current_front_window = g.Windows.back(); + if (current_front_window == window || current_front_window->RootWindowDockTree == window) // Cheap early out (could be better) + return; + for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window + if (g.Windows[i] == window) + { + memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*)); + g.Windows[g.Windows.Size - 1] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBack(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.Windows[0] == window) + return; + for (int i = 0; i < g.Windows.Size; i++) + if (g.Windows[i] == window) + { + memmove(&g.Windows[1], &g.Windows[0], (size_t)i * sizeof(ImGuiWindow*)); + g.Windows[0] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* behind_window) +{ + IM_ASSERT(window != NULL && behind_window != NULL); + ImGuiContext& g = *GImGui; + window = window->RootWindow; + behind_window = behind_window->RootWindow; + int pos_wnd = FindWindowDisplayIndex(window); + int pos_beh = FindWindowDisplayIndex(behind_window); + if (pos_wnd < pos_beh) + { + size_t copy_bytes = (pos_beh - pos_wnd - 1) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_wnd], &g.Windows.Data[pos_wnd + 1], copy_bytes); + g.Windows[pos_beh - 1] = window; + } + else + { + size_t copy_bytes = (pos_wnd - pos_beh) * sizeof(ImGuiWindow*); + memmove(&g.Windows.Data[pos_beh + 1], &g.Windows.Data[pos_beh], copy_bytes); + g.Windows[pos_beh] = window; + } +} + +int ImGui::FindWindowDisplayIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + return g.Windows.index_from_ptr(g.Windows.find(window)); +} + +// Moving window to front of display and set focus (which happens to be back of our sorted list) +void ImGui::FocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags) +{ + ImGuiContext& g = *GImGui; + + // Modal check? + if ((flags & ImGuiFocusRequestFlags_UnlessBelowModal) && (g.NavWindow != window)) // Early out in common case. + if (ImGuiWindow* blocking_modal = FindBlockingModal(window)) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] FocusWindow(\"%s\", UnlessBelowModal): prevented by \"%s\".\n", window ? window->Name : "", blocking_modal->Name); + if (window && window == window->RootWindow && (window->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) + BringWindowToDisplayBehind(window, blocking_modal); // Still bring to right below modal. + return; + } + + // Find last focused child (if any) and focus it instead. + if ((flags & ImGuiFocusRequestFlags_RestoreFocusedChild) && window != NULL) + window = NavRestoreLastChildNavWindow(window); + + // Apply focus + if (g.NavWindow != window) + { + SetNavWindow(window); + if (window && g.NavDisableMouseHover) + g.NavMousePosDirty = true; + g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId + g.NavLayer = ImGuiNavLayer_Main; + g.NavFocusScopeId = window ? window->NavRootFocusScopeId : 0; + g.NavIdIsAlive = false; + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + + // Close popups if any + ClosePopupsOverWindow(window, false); + } + + // Move the root window to the top of the pile + IM_ASSERT(window == NULL || window->RootWindowDockTree != NULL); + ImGuiWindow* focus_front_window = window ? window->RootWindow : NULL; + ImGuiWindow* display_front_window = window ? window->RootWindowDockTree : NULL; + ImGuiDockNode* dock_node = window ? window->DockNode : NULL; + bool active_id_window_is_dock_node_host = (g.ActiveIdWindow && dock_node && dock_node->HostWindow == g.ActiveIdWindow); + + // Steal active widgets. Some of the cases it triggers includes: + // - Focus a window while an InputText in another window is active, if focus happens before the old InputText can run. + // - When using Nav to activate menu items (due to timing of activating on press->new window appears->losing ActiveId) + // - Using dock host items (tab, collapse button) can trigger this before we redirect the ActiveIdWindow toward the child window. + if (g.ActiveId != 0 && g.ActiveIdWindow && g.ActiveIdWindow->RootWindow != focus_front_window) + if (!g.ActiveIdNoClearOnFocusLoss && !active_id_window_is_dock_node_host) + ClearActiveID(); + + // Passing NULL allow to disable keyboard focus + if (!window) + return; + window->LastFrameJustFocused = g.FrameCount; + + // Select in dock node + if (dock_node && dock_node->TabBar) + dock_node->TabBar->SelectedTabId = dock_node->TabBar->NextSelectedTabId = window->TabId; + + // Bring to front + BringWindowToFocusFront(focus_front_window); + if (((window->Flags | focus_front_window->Flags | display_front_window->Flags) & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) + BringWindowToDisplayFront(display_front_window); +} + +void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags) +{ + ImGuiContext& g = *GImGui; + int start_idx = g.WindowsFocusOrder.Size - 1; + if (under_this_window != NULL) + { + // Aim at root window behind us, if we are in a child window that's our own root (see #4640) + int offset = -1; + while (under_this_window->Flags & ImGuiWindowFlags_ChildWindow) + { + under_this_window = under_this_window->ParentWindow; + offset = 0; + } + start_idx = FindWindowFocusIndex(under_this_window) + offset; + } + for (int i = start_idx; i >= 0; i--) + { + // We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user. + ImGuiWindow* window = g.WindowsFocusOrder[i]; + IM_ASSERT(window == window->RootWindow); + if (window == ignore_window || !window->WasActive) + continue; + if (filter_viewport != NULL && window->Viewport != filter_viewport) + continue; + if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) + { + // FIXME-DOCK: When ImGuiFocusRequestFlags_RestoreFocusedChild is set... + // This is failing (lagging by one frame) for docked windows. + // If A and B are docked into window and B disappear, at the NewFrame() call site window->NavLastChildNavWindow will still point to B. + // We might leverage the tab order implicitly stored in window->DockNodeAsHost->TabBar (essentially the 'most_recently_selected_tab' code in tab bar will do that but on next update) + // to tell which is the "previous" window. Or we may leverage 'LastFrameFocused/LastFrameJustFocused' and have this function handle child window itself? + FocusWindow(window, flags); + return; + } + } + FocusWindow(NULL, flags); +} + +// Important: this alone doesn't alter current ImDrawList state. This is called by PushFont/PopFont only. +void ImGui::SetCurrentFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ? + IM_ASSERT(font->Scale > 0.0f); + g.Font = font; + g.FontBaseSize = ImMax(1.0f, g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale); + g.FontSize = g.CurrentWindow ? g.CurrentWindow->CalcFontSize() : 0.0f; + + ImFontAtlas* atlas = g.Font->ContainerAtlas; + g.DrawListSharedData.TexUvWhitePixel = atlas->TexUvWhitePixel; + g.DrawListSharedData.TexUvLines = atlas->TexUvLines; + g.DrawListSharedData.Font = g.Font; + g.DrawListSharedData.FontSize = g.FontSize; +} + +void ImGui::PushFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + if (!font) + font = GetDefaultFont(); + SetCurrentFont(font); + g.FontStack.push_back(font); + g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID); +} + +void ImGui::PopFont() +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow->DrawList->PopTextureID(); + g.FontStack.pop_back(); + SetCurrentFont(g.FontStack.empty() ? GetDefaultFont() : g.FontStack.back()); +} + +void ImGui::PushItemFlag(ImGuiItemFlags option, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiItemFlags item_flags = g.CurrentItemFlags; + IM_ASSERT(item_flags == g.ItemFlagsStack.back()); + if (enabled) + item_flags |= option; + else + item_flags &= ~option; + g.CurrentItemFlags = item_flags; + g.ItemFlagsStack.push_back(item_flags); +} + +void ImGui::PopItemFlag() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ItemFlagsStack.Size > 1); // Too many calls to PopItemFlag() - we always leave a 0 at the bottom of the stack. + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); +} + +// BeginDisabled()/EndDisabled() +// - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) +// - Visually this is currently altering alpha, but it is expected that in a future styling system this would work differently. +// - Feedback welcome at https://github.com/ocornut/imgui/issues/211 +// - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. +// - Optimized shortcuts instead of PushStyleVar() + PushItemFlag() +void ImGui::BeginDisabled(bool disabled) +{ + ImGuiContext& g = *GImGui; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (!was_disabled && disabled) + { + g.DisabledAlphaBackup = g.Style.Alpha; + g.Style.Alpha *= g.Style.DisabledAlpha; // PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * g.Style.DisabledAlpha); + } + if (was_disabled || disabled) + g.CurrentItemFlags |= ImGuiItemFlags_Disabled; + g.ItemFlagsStack.push_back(g.CurrentItemFlags); + g.DisabledStackSize++; +} + +void ImGui::EndDisabled() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DisabledStackSize > 0); + g.DisabledStackSize--; + bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + //PopItemFlag(); + g.ItemFlagsStack.pop_back(); + g.CurrentItemFlags = g.ItemFlagsStack.back(); + if (was_disabled && (g.CurrentItemFlags & ImGuiItemFlags_Disabled) == 0) + g.Style.Alpha = g.DisabledAlphaBackup; //PopStyleVar(); +} + +void ImGui::PushTabStop(bool tab_stop) +{ + PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); +} + +void ImGui::PopTabStop() +{ + PopItemFlag(); +} + +void ImGui::PushButtonRepeat(bool repeat) +{ + PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); +} + +void ImGui::PopButtonRepeat() +{ + PopItemFlag(); +} + +void ImGui::PushTextWrapPos(float wrap_pos_x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPosStack.push_back(window->DC.TextWrapPos); + window->DC.TextWrapPos = wrap_pos_x; +} + +void ImGui::PopTextWrapPos() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPos = window->DC.TextWrapPosStack.back(); + window->DC.TextWrapPosStack.pop_back(); +} + +static ImGuiWindow* GetCombinedRootWindow(ImGuiWindow* window, bool popup_hierarchy, bool dock_hierarchy) +{ + ImGuiWindow* last_window = NULL; + while (last_window != window) + { + last_window = window; + window = window->RootWindow; + if (popup_hierarchy) + window = window->RootWindowPopupTree; + if (dock_hierarchy) + window = window->RootWindowDockTree; + } + return window; +} + +bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy) +{ + ImGuiWindow* window_root = GetCombinedRootWindow(window, popup_hierarchy, dock_hierarchy); + if (window_root == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + if (window == window_root) // end of chain + return false; + window = window->ParentWindow; + } + return false; +} + +bool ImGui::IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent) +{ + if (window->RootWindow == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + window = window->ParentWindowInBeginStack; + } + return false; +} + +bool ImGui::IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below) +{ + ImGuiContext& g = *GImGui; + + // It would be saner to ensure that display layer is always reflected in the g.Windows[] order, which would likely requires altering all manipulations of that array + const int display_layer_delta = GetWindowDisplayLayer(potential_above) - GetWindowDisplayLayer(potential_below); + if (display_layer_delta != 0) + return display_layer_delta > 0; + + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* candidate_window = g.Windows[i]; + if (candidate_window == potential_above) + return true; + if (candidate_window == potential_below) + return false; + } + return false; +} + +bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags) +{ + IM_ASSERT((flags & ~ImGuiHoveredFlags_AllowedMaskForIsWindowHovered) == 0 && "Invalid flags for IsWindowHovered()!"); + + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.HoveredWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + if (ref_window == NULL) + return false; + + if ((flags & ImGuiHoveredFlags_AnyWindow) == 0) + { + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiHoveredFlags_NoPopupHierarchy) == 0; + const bool dock_hierarchy = (flags & ImGuiHoveredFlags_DockHierarchy) != 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy, dock_hierarchy); + + bool result; + if (flags & ImGuiHoveredFlags_ChildWindows) + result = IsWindowChildOf(ref_window, cur_window, popup_hierarchy, dock_hierarchy); + else + result = (ref_window == cur_window); + if (!result) + return false; + } + + if (!IsWindowContentHoverable(ref_window, flags)) + return false; + if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != ref_window->MoveId) + return false; + + // When changing hovered window we requires a bit of stationary delay before activating hover timer. + // FIXME: We don't support delay other than stationary one for now, other delay would need a way + // to fullfill the possibility that multiple IsWindowHovered() with varying flag could return true + // for different windows of the hierarchy. Possibly need a Hash(Current+Flags) ==> (Timer) cache. + // We can implement this for _Stationary because the data is linked to HoveredWindow rather than CurrentWindow. + if (flags & ImGuiHoveredFlags_ForTooltip) + flags |= g.Style.HoverFlagsForTooltipMouse; + if ((flags & ImGuiHoveredFlags_Stationary) != 0 && g.HoverWindowUnlockedStationaryId != ref_window->ID) + return false; + + return true; +} + +bool ImGui::IsWindowFocused(ImGuiFocusedFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* ref_window = g.NavWindow; + ImGuiWindow* cur_window = g.CurrentWindow; + + if (ref_window == NULL) + return false; + if (flags & ImGuiFocusedFlags_AnyWindow) + return true; + + IM_ASSERT(cur_window); // Not inside a Begin()/End() + const bool popup_hierarchy = (flags & ImGuiFocusedFlags_NoPopupHierarchy) == 0; + const bool dock_hierarchy = (flags & ImGuiFocusedFlags_DockHierarchy) != 0; + if (flags & ImGuiHoveredFlags_RootWindow) + cur_window = GetCombinedRootWindow(cur_window, popup_hierarchy, dock_hierarchy); + + if (flags & ImGuiHoveredFlags_ChildWindows) + return IsWindowChildOf(ref_window, cur_window, popup_hierarchy, dock_hierarchy); + else + return (ref_window == cur_window); +} + +ImGuiID ImGui::GetWindowDockID() +{ + ImGuiContext& g = *GImGui; + return g.CurrentWindow->DockId; +} + +bool ImGui::IsWindowDocked() +{ + ImGuiContext& g = *GImGui; + return g.CurrentWindow->DockIsActive; +} + +// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext) +// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically. +// If you want a window to never be focused, you may use the e.g. NoInputs flag. +bool ImGui::IsWindowNavFocusable(ImGuiWindow* window) +{ + return window->WasActive && window == window->RootWindow && !(window->Flags & ImGuiWindowFlags_NoNavFocus); +} + +float ImGui::GetWindowWidth() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.x; +} + +float ImGui::GetWindowHeight() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.y; +} + +ImVec2 ImGui::GetWindowPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + return window->Pos; +} + +void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowPosAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + window->SetWindowPosVal = ImVec2(FLT_MAX, FLT_MAX); + + // Set + const ImVec2 old_pos = window->Pos; + window->Pos = ImFloor(pos); + ImVec2 offset = window->Pos - old_pos; + if (offset.x == 0.0f && offset.y == 0.0f) + return; + MarkIniSettingsDirty(window); + // FIXME: share code with TranslateWindow(), need to confirm whether the 3 rect modified by TranslateWindow() are desirable here. + window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor + window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. + window->DC.IdealMaxPos += offset; + window->DC.CursorStartPos += offset; +} + +void ImGui::SetWindowPos(const ImVec2& pos, ImGuiCond cond) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + SetWindowPos(window, pos, cond); +} + +void ImGui::SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowPos(window, pos, cond); +} + +ImVec2 ImGui::GetWindowSize() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Size; +} + +void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowSizeAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + ImVec2 old_size = window->SizeFull; + window->AutoFitFramesX = (size.x <= 0.0f) ? 2 : 0; + window->AutoFitFramesY = (size.y <= 0.0f) ? 2 : 0; + if (size.x <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.x = IM_FLOOR(size.x); + if (size.y <= 0.0f) + window->AutoFitOnlyGrows = false; + else + window->SizeFull.y = IM_FLOOR(size.y); + if (old_size.x != window->SizeFull.x || old_size.y != window->SizeFull.y) + MarkIniSettingsDirty(window); +} + +void ImGui::SetWindowSize(const ImVec2& size, ImGuiCond cond) +{ + SetWindowSize(GImGui->CurrentWindow, size, cond); +} + +void ImGui::SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowSize(window, size, cond); +} + +void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) + return; + window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + window->Collapsed = collapsed; +} + +void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) +{ + IM_ASSERT(window->HitTestHoleSize.x == 0); // We don't support multiple holes/hit test filters + window->HitTestHoleSize = ImVec2ih(size); + window->HitTestHoleOffset = ImVec2ih(pos - window->Pos); +} + +void ImGui::SetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* window) +{ + window->Hidden = window->SkipItems = true; + window->HiddenFramesCanSkipItems = 1; +} + +void ImGui::SetWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + SetWindowCollapsed(GImGui->CurrentWindow, collapsed, cond); +} + +bool ImGui::IsWindowCollapsed() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Collapsed; +} + +bool ImGui::IsWindowAppearing() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Appearing; +} + +void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowCollapsed(window, collapsed, cond); +} + +void ImGui::SetWindowFocus() +{ + FocusWindow(GImGui->CurrentWindow); +} + +void ImGui::SetWindowFocus(const char* name) +{ + if (name) + { + if (ImGuiWindow* window = FindWindowByName(name)) + FocusWindow(window); + } + else + { + FocusWindow(NULL); + } +} + +void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasPos; + g.NextWindowData.PosVal = pos; + g.NextWindowData.PosPivotVal = pivot; + g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always; + g.NextWindowData.PosUndock = true; +} + +void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSize; + g.NextWindowData.SizeVal = size; + g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback, void* custom_callback_user_data) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; + g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max); + g.NextWindowData.SizeCallback = custom_callback; + g.NextWindowData.SizeCallbackUserData = custom_callback_user_data; +} + +// Content size = inner scrollable rectangle, padded with WindowPadding. +// SetNextWindowContentSize(ImVec2(100,100) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item. +void ImGui::SetNextWindowContentSize(const ImVec2& size) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasContentSize; + g.NextWindowData.ContentSizeVal = ImFloor(size); +} + +void ImGui::SetNextWindowScroll(const ImVec2& scroll) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasScroll; + g.NextWindowData.ScrollVal = scroll; +} + +void ImGui::SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasCollapsed; + g.NextWindowData.CollapsedVal = collapsed; + g.NextWindowData.CollapsedCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowFocus() +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasFocus; +} + +void ImGui::SetNextWindowBgAlpha(float alpha) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasBgAlpha; + g.NextWindowData.BgAlphaVal = alpha; +} + +void ImGui::SetNextWindowViewport(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasViewport; + g.NextWindowData.ViewportId = id; +} + +void ImGui::SetNextWindowDockID(ImGuiID id, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasDock; + g.NextWindowData.DockCond = cond ? cond : ImGuiCond_Always; + g.NextWindowData.DockId = id; +} + +void ImGui::SetNextWindowClass(const ImGuiWindowClass* window_class) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT((window_class->ViewportFlagsOverrideSet & window_class->ViewportFlagsOverrideClear) == 0); // Cannot set both set and clear for the same bit + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasWindowClass; + g.NextWindowData.WindowClass = *window_class; +} + +ImDrawList* ImGui::GetWindowDrawList() +{ + ImGuiWindow* window = GetCurrentWindow(); + return window->DrawList; +} + +float ImGui::GetWindowDpiScale() +{ + ImGuiContext& g = *GImGui; + return g.CurrentDpiScale; +} + +ImGuiViewport* ImGui::GetWindowViewport() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.CurrentViewport != NULL && g.CurrentViewport == g.CurrentWindow->Viewport); + return g.CurrentViewport; +} + +ImFont* ImGui::GetFont() +{ + return GImGui->Font; +} + +float ImGui::GetFontSize() +{ + return GImGui->FontSize; +} + +ImVec2 ImGui::GetFontTexUvWhitePixel() +{ + return GImGui->DrawListSharedData.TexUvWhitePixel; +} + +void ImGui::SetWindowFontScale(float scale) +{ + IM_ASSERT(scale > 0.0f); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->FontWindowScale = scale; + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +void ImGui::PushFocusScope(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.FocusScopeStack.push_back(id); + g.CurrentFocusScopeId = id; +} + +void ImGui::PopFocusScope() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.FocusScopeStack.Size > 0); // Too many PopFocusScope() ? + g.FocusScopeStack.pop_back(); + g.CurrentFocusScopeId = g.FocusScopeStack.Size ? g.FocusScopeStack.back() : 0; +} + +// Focus = move navigation cursor, set scrolling, set focus window. +void ImGui::FocusItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IMGUI_DEBUG_LOG_FOCUS("FocusItem(0x%08x) in window \"%s\"\n", g.LastItemData.ID, window->Name); + if (g.DragDropActive || g.MovingWindow != NULL) // FIXME: Opt-in flags for this? + { + IMGUI_DEBUG_LOG_FOCUS("FocusItem() ignored while DragDropActive!\n"); + return; + } + + ImGuiNavMoveFlags move_flags = ImGuiNavMoveFlags_IsTabbing | ImGuiNavMoveFlags_FocusApi | ImGuiNavMoveFlags_NoSetNavHighlight | ImGuiNavMoveFlags_NoSelect; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + SetNavWindow(window); + NavMoveRequestSubmit(ImGuiDir_None, ImGuiDir_Up, move_flags, scroll_flags); + NavMoveRequestResolveWithLastItem(&g.NavMoveResultLocal); +} + +void ImGui::ActivateItemByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NavNextActivateId = id; + g.NavNextActivateFlags = ImGuiActivateFlags_None; +} + +// Note: this will likely be called ActivateItem() once we rework our Focus/Activation system! +// But ActivateItem() should function without altering scroll/focus? +void ImGui::SetKeyboardFocusHere(int offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(offset >= -1); // -1 is allowed but not below + IMGUI_DEBUG_LOG_FOCUS("SetKeyboardFocusHere(%d) in window \"%s\"\n", offset, window->Name); + + // It makes sense in the vast majority of cases to never interrupt a drag and drop. + // When we refactor this function into ActivateItem() we may want to make this an option. + // MovingWindow is protected from most user inputs using SetActiveIdUsingNavAndKeys(), but + // is also automatically dropped in the event g.ActiveId is stolen. + if (g.DragDropActive || g.MovingWindow != NULL) + { + IMGUI_DEBUG_LOG_FOCUS("SetKeyboardFocusHere() ignored while DragDropActive!\n"); + return; + } + + SetNavWindow(window); + + ImGuiNavMoveFlags move_flags = ImGuiNavMoveFlags_IsTabbing | ImGuiNavMoveFlags_Activate | ImGuiNavMoveFlags_FocusApi | ImGuiNavMoveFlags_NoSetNavHighlight; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + NavMoveRequestSubmit(ImGuiDir_None, offset < 0 ? ImGuiDir_Up : ImGuiDir_Down, move_flags, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + if (offset == -1) + { + NavMoveRequestResolveWithLastItem(&g.NavMoveResultLocal); + } + else + { + g.NavTabbingDir = 1; + g.NavTabbingCounter = offset + 1; + } +} + +void ImGui::SetItemDefaultFocus() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!window->Appearing) + return; + if (g.NavWindow != window->RootWindowForNav || (!g.NavInitRequest && g.NavInitResult.ID == 0) || g.NavLayer != window->DC.NavLayerCurrent) + return; + + g.NavInitRequest = false; + NavApplyItemToResult(&g.NavInitResult); + NavUpdateAnyRequestFlag(); + + // Scroll could be done in NavInitRequestApplyResult() via an opt-in flag (we however don't want regular init requests to scroll) + if (!window->ClipRect.Contains(g.LastItemData.Rect)) + ScrollToRectEx(window, g.LastItemData.Rect, ImGuiScrollFlags_None); +} + +void ImGui::SetStateStorage(ImGuiStorage* tree) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + window->DC.StateStorage = tree ? tree : &window->StateStorage; +} + +ImGuiStorage* ImGui::GetStateStorage() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->DC.StateStorage; +} + +void ImGui::PushID(const char* str_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(str_id_begin, str_id_end); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const void* ptr_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(ptr_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(int int_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetID(int_id); + window->IDStack.push_back(id); +} + +// Push a given id value ignoring the ID stack as a seed. +void ImGui::PushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_ID, NULL, NULL); + window->IDStack.push_back(id); +} + +// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call +// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level. +// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) +ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) +{ + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_String, str, str_end); + return id; +} + +ImGuiID ImGui::GetIDWithSeed(int n, ImGuiID seed) +{ + ImGuiID id = ImHashData(&n, sizeof(n), seed); + ImGuiContext& g = *GImGui; + if (g.DebugHookIdInfo == id) + DebugHookIdInfo(id, ImGuiDataType_S32, (void*)(intptr_t)n, NULL); + return id; +} + +void ImGui::PopID() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + IM_ASSERT(window->IDStack.Size > 1); // Too many PopID(), or could be popping in a wrong/different window? + window->IDStack.pop_back(); +} + +ImGuiID ImGui::GetID(const char* str_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id); +} + +ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id_begin, str_id_end); +} + +ImGuiID ImGui::GetID(const void* ptr_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(ptr_id); +} + +bool ImGui::IsRectVisible(const ImVec2& size) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size)); +} + +bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); +} + + +//----------------------------------------------------------------------------- +// [SECTION] INPUTS +//----------------------------------------------------------------------------- +// - GetKeyData() [Internal] +// - GetKeyIndex() [Internal] +// - GetKeyName() +// - GetKeyChordName() [Internal] +// - CalcTypematicRepeatAmount() [Internal] +// - GetTypematicRepeatRate() [Internal] +// - GetKeyPressedAmount() [Internal] +// - GetKeyMagnitude2d() [Internal] +//----------------------------------------------------------------------------- +// - UpdateKeyRoutingTable() [Internal] +// - GetRoutingIdFromOwnerId() [Internal] +// - GetShortcutRoutingData() [Internal] +// - CalcRoutingScore() [Internal] +// - SetShortcutRouting() [Internal] +// - TestShortcutRouting() [Internal] +//----------------------------------------------------------------------------- +// - IsKeyDown() +// - IsKeyPressed() +// - IsKeyReleased() +//----------------------------------------------------------------------------- +// - IsMouseDown() +// - IsMouseClicked() +// - IsMouseReleased() +// - IsMouseDoubleClicked() +// - GetMouseClickedCount() +// - IsMouseHoveringRect() [Internal] +// - IsMouseDragPastThreshold() [Internal] +// - IsMouseDragging() +// - GetMousePos() +// - GetMousePosOnOpeningCurrentPopup() +// - IsMousePosValid() +// - IsAnyMouseDown() +// - GetMouseDragDelta() +// - ResetMouseDragDelta() +// - GetMouseCursor() +// - SetMouseCursor() +//----------------------------------------------------------------------------- +// - UpdateAliasKey() +// - GetMergedModsFromKeys() +// - UpdateKeyboardInputs() +// - UpdateMouseInputs() +//----------------------------------------------------------------------------- +// - LockWheelingWindow [Internal] +// - FindBestWheelingWindow [Internal] +// - UpdateMouseWheel() [Internal] +//----------------------------------------------------------------------------- +// - SetNextFrameWantCaptureKeyboard() +// - SetNextFrameWantCaptureMouse() +//----------------------------------------------------------------------------- +// - GetInputSourceName() [Internal] +// - DebugPrintInputEvent() [Internal] +// - UpdateInputEvents() [Internal] +//----------------------------------------------------------------------------- +// - GetKeyOwner() [Internal] +// - TestKeyOwner() [Internal] +// - SetKeyOwner() [Internal] +// - SetItemKeyOwner() [Internal] +// - Shortcut() [Internal] +//----------------------------------------------------------------------------- + +ImGuiKeyData* ImGui::GetKeyData(ImGuiContext* ctx, ImGuiKey key) +{ + ImGuiContext& g = *ctx; + + // Special storage location for mods + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(ctx, key); + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT(key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_NamedKey_END); + if (IsLegacyKey(key) && g.IO.KeyMap[key] != -1) + key = (ImGuiKey)g.IO.KeyMap[key]; // Remap native->imgui or imgui->native +#else + IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code."); +#endif + return &g.IO.KeysData[key - ImGuiKey_KeysData_OFFSET]; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +ImGuiKey ImGui::GetKeyIndex(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(IsNamedKey(key)); + const ImGuiKeyData* key_data = GetKeyData(key); + return (ImGuiKey)(key_data - g.IO.KeysData); +} +#endif + +// Those names a provided for debugging purpose and are not meant to be saved persistently not compared. +static const char* const GKeyNames[] = +{ + "Tab", "LeftArrow", "RightArrow", "UpArrow", "DownArrow", "PageUp", "PageDown", + "Home", "End", "Insert", "Delete", "Backspace", "Space", "Enter", "Escape", + "LeftCtrl", "LeftShift", "LeftAlt", "LeftSuper", "RightCtrl", "RightShift", "RightAlt", "RightSuper", "Menu", + "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", + "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", + "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", + "Apostrophe", "Comma", "Minus", "Period", "Slash", "Semicolon", "Equal", "LeftBracket", + "Backslash", "RightBracket", "GraveAccent", "CapsLock", "ScrollLock", "NumLock", "PrintScreen", + "Pause", "Keypad0", "Keypad1", "Keypad2", "Keypad3", "Keypad4", "Keypad5", "Keypad6", + "Keypad7", "Keypad8", "Keypad9", "KeypadDecimal", "KeypadDivide", "KeypadMultiply", + "KeypadSubtract", "KeypadAdd", "KeypadEnter", "KeypadEqual", + "GamepadStart", "GamepadBack", + "GamepadFaceLeft", "GamepadFaceRight", "GamepadFaceUp", "GamepadFaceDown", + "GamepadDpadLeft", "GamepadDpadRight", "GamepadDpadUp", "GamepadDpadDown", + "GamepadL1", "GamepadR1", "GamepadL2", "GamepadR2", "GamepadL3", "GamepadR3", + "GamepadLStickLeft", "GamepadLStickRight", "GamepadLStickUp", "GamepadLStickDown", + "GamepadRStickLeft", "GamepadRStickRight", "GamepadRStickUp", "GamepadRStickDown", + "MouseLeft", "MouseRight", "MouseMiddle", "MouseX1", "MouseX2", "MouseWheelX", "MouseWheelY", + "ModCtrl", "ModShift", "ModAlt", "ModSuper", // ReservedForModXXX are showing the ModXXX names. +}; +IM_STATIC_ASSERT(ImGuiKey_NamedKey_COUNT == IM_ARRAYSIZE(GKeyNames)); + +const char* ImGui::GetKeyName(ImGuiKey key) +{ + ImGuiContext& g = *GImGui; +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + IM_ASSERT((IsNamedKeyOrModKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); +#else + if (IsLegacyKey(key)) + { + if (g.IO.KeyMap[key] == -1) + return "N/A"; + IM_ASSERT(IsNamedKey((ImGuiKey)g.IO.KeyMap[key])); + key = (ImGuiKey)g.IO.KeyMap[key]; + } +#endif + if (key == ImGuiKey_None) + return "None"; + if (key & ImGuiMod_Mask_) + key = ConvertSingleModFlagToKey(&g, key); + if (!IsNamedKey(key)) + return "Unknown"; + + return GKeyNames[key - ImGuiKey_NamedKey_BEGIN]; +} + +// ImGuiMod_Shortcut is translated to either Ctrl or Super. +void ImGui::GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size) +{ + ImGuiContext& g = *GImGui; + if (key_chord & ImGuiMod_Shortcut) + key_chord = ConvertShortcutMod(key_chord); + ImFormatString(out_buf, (size_t)out_buf_size, "%s%s%s%s%s", + (key_chord & ImGuiMod_Ctrl) ? "Ctrl+" : "", + (key_chord & ImGuiMod_Shift) ? "Shift+" : "", + (key_chord & ImGuiMod_Alt) ? "Alt+" : "", + (key_chord & ImGuiMod_Super) ? (g.IO.ConfigMacOSXBehaviors ? "Cmd+" : "Super+") : "", + GetKeyName((ImGuiKey)(key_chord & ~ImGuiMod_Mask_))); +} + +// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) +// t1 = current time (e.g.: g.Time) +// An event is triggered at: +// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N +int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) +{ + if (t1 == 0.0f) + return 1; + if (t0 >= t1) + return 0; + if (repeat_rate <= 0.0f) + return (t0 < repeat_delay) && (t1 >= repeat_delay); + const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); + const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); + const int count = count_t1 - count_t0; + return count; +} + +void ImGui::GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate) +{ + ImGuiContext& g = *GImGui; + switch (flags & ImGuiInputFlags_RepeatRateMask_) + { + case ImGuiInputFlags_RepeatRateNavMove: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.80f; return; + case ImGuiInputFlags_RepeatRateNavTweak: *repeat_delay = g.IO.KeyRepeatDelay * 0.72f; *repeat_rate = g.IO.KeyRepeatRate * 0.30f; return; + case ImGuiInputFlags_RepeatRateDefault: default: *repeat_delay = g.IO.KeyRepeatDelay * 1.00f; *repeat_rate = g.IO.KeyRepeatRate * 1.00f; return; + } +} + +// Return value representing the number of presses in the last time period, for the given repeat rate +// (most often returns 0 or 1. The result is generally only >1 when RepeatRate is smaller than DeltaTime, aka large DeltaTime or fast RepeatRate) +int ImGui::GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float repeat_rate) +{ + ImGuiContext& g = *GImGui; + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return 0; + const float t = key_data->DownDuration; + return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); +} + +// Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values). +ImVec2 ImGui::GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) +{ + return ImVec2( + GetKeyData(key_right)->AnalogValue - GetKeyData(key_left)->AnalogValue, + GetKeyData(key_down)->AnalogValue - GetKeyData(key_up)->AnalogValue); +} + +// Rewrite routing data buffers to strip old entries + sort by key to make queries not touch scattered data. +// Entries D,A,B,B,A,C,B --> A,A,B,B,B,C,D +// Index A:1 B:2 C:5 D:0 --> A:0 B:2 C:5 D:6 +// See 'Metrics->Key Owners & Shortcut Routing' to visualize the result of that operation. +static void ImGui::UpdateKeyRoutingTable(ImGuiKeyRoutingTable* rt) +{ + ImGuiContext& g = *GImGui; + rt->EntriesNext.resize(0); + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + const int new_routing_start_idx = rt->EntriesNext.Size; + ImGuiKeyRoutingData* routing_entry; + for (int old_routing_idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; old_routing_idx != -1; old_routing_idx = routing_entry->NextEntryIndex) + { + routing_entry = &rt->Entries[old_routing_idx]; + routing_entry->RoutingCurr = routing_entry->RoutingNext; // Update entry + routing_entry->RoutingNext = ImGuiKeyOwner_None; + routing_entry->RoutingNextScore = 255; + if (routing_entry->RoutingCurr == ImGuiKeyOwner_None) + continue; + rt->EntriesNext.push_back(*routing_entry); // Write alive ones into new buffer + + // Apply routing to owner if there's no owner already (RoutingCurr == None at this point) + if (routing_entry->Mods == g.IO.KeyMods) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + owner_data->OwnerCurr = routing_entry->RoutingCurr; + } + } + + // Rewrite linked-list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = (ImGuiKeyRoutingIndex)(new_routing_start_idx < rt->EntriesNext.Size ? new_routing_start_idx : -1); + for (int n = new_routing_start_idx; n < rt->EntriesNext.Size; n++) + rt->EntriesNext[n].NextEntryIndex = (ImGuiKeyRoutingIndex)((n + 1 < rt->EntriesNext.Size) ? n + 1 : -1); + } + rt->Entries.swap(rt->EntriesNext); // Swap new and old indexes +} + +// owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope(). +static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId; +} + +ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord) +{ + // Majority of shortcuts will be Key + any number of Mods + // We accept _Single_ mod with ImGuiKey_None. + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiKey_S | ImGuiMod_Ctrl | ImGuiMod_Shift); // Legal + // - Shortcut(ImGuiMod_Ctrl); // Legal + // - Shortcut(ImGuiMod_Ctrl | ImGuiMod_Shift); // Not legal + ImGuiContext& g = *GImGui; + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + ImGuiKeyRoutingData* routing_data; + if (key_chord & ImGuiMod_Shortcut) + key_chord = ConvertShortcutMod(key_chord); + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(&g, mods); + IM_ASSERT(IsNamedKey(key)); + + // Get (in the majority of case, the linked list will have one element so this should be 2 reads. + // Subsequent elements will be contiguous in memory as list is sorted/rebuilt in NewFrame). + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; idx = routing_data->NextEntryIndex) + { + routing_data = &rt->Entries[idx]; + if (routing_data->Mods == mods) + return routing_data; + } + + // Add to linked-list + ImGuiKeyRoutingIndex routing_data_idx = (ImGuiKeyRoutingIndex)rt->Entries.Size; + rt->Entries.push_back(ImGuiKeyRoutingData()); + routing_data = &rt->Entries[routing_data_idx]; + routing_data->Mods = (ImU16)mods; + routing_data->NextEntryIndex = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; // Setup linked list + rt->Index[key - ImGuiKey_NamedKey_BEGIN] = routing_data_idx; + return routing_data; +} + +// Current score encoding (lower is highest priority): +// - 0: ImGuiInputFlags_RouteGlobalHigh +// - 1: ImGuiInputFlags_RouteFocused (if item active) +// - 2: ImGuiInputFlags_RouteGlobal +// - 3+: ImGuiInputFlags_RouteFocused (if window in focus-stack) +// - 254: ImGuiInputFlags_RouteGlobalLow +// - 255: never route +// 'flags' should include an explicit routing policy +static int CalcRoutingScore(ImGuiWindow* location, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (flags & ImGuiInputFlags_RouteFocused) + { + ImGuiContext& g = *GImGui; + ImGuiWindow* focused = g.NavWindow; + + // ActiveID gets top priority + // (we don't check g.ActiveIdUsingAllKeys here. Routing is applied but if input ownership is tested later it may discard it) + if (owner_id != 0 && g.ActiveId == owner_id) + return 1; + + // Score based on distance to focused window (lower is better) + // Assuming both windows are submitting a routing request, + // - When Window....... is focused -> Window scores 3 (best), Window/ChildB scores 255 (no match) + // - When Window/ChildB is focused -> Window scores 4, Window/ChildB scores 3 (best) + // Assuming only WindowA is submitting a routing request, + // - When Window/ChildB is focused -> Window scores 4 (best), Window/ChildB doesn't have a score. + if (focused != NULL && focused->RootWindow == location->RootWindow) + for (int next_score = 3; focused != NULL; next_score++) + { + if (focused == location) + { + IM_ASSERT(next_score < 255); + return next_score; + } + focused = (focused->RootWindow != focused) ? focused->ParentWindow : NULL; // FIXME: This could be later abstracted as a focus path + } + return 255; + } + + // ImGuiInputFlags_RouteGlobalHigh is default, so calls without flags are not conditional + if (flags & ImGuiInputFlags_RouteGlobal) + return 2; + if (flags & ImGuiInputFlags_RouteGlobalLow) + return 254; + return 0; +} + +// Request a desired route for an input chord (key + mods). +// Return true if the route is available this frame. +// - Routes and key ownership are attributed at the beginning of next frame based on best score and mod state. +// (Conceptually this does a "Submit for next frame" + "Test for current frame". +// As such, it could be called TrySetXXX or SubmitXXX, or the Submit and Test operations should be separate.) +// - Using 'owner_id == ImGuiKeyOwner_Any/0': auto-assign an owner based on current focus scope (each window has its focus scope by default) +// - Using 'owner_id == ImGuiKeyOwner_None': allows disabling/locking a shortcut. +bool ImGui::SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteGlobalHigh; // IMPORTANT: This is the default for SetShortcutRouting() but NOT Shortcut() + else + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiInputFlags_RouteMask_)); // Check that only 1 routing flag is used + + if (flags & ImGuiInputFlags_RouteUnlessBgFocused) + if (g.NavWindow == NULL) + return false; + if (flags & ImGuiInputFlags_RouteAlways) + return true; + + const int score = CalcRoutingScore(g.CurrentWindow, owner_id, flags); + if (score == 255) + return false; + + // Submit routing for NEXT frame (assuming score is sufficient) + // FIXME: Could expose a way to use a "serve last" policy for same score resolution (using <= instead of <). + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + //const bool set_route = (flags & ImGuiInputFlags_ServeLast) ? (score <= routing_data->RoutingNextScore) : (score < routing_data->RoutingNextScore); + if (score < routing_data->RoutingNextScore) + { + routing_data->RoutingNext = routing_id; + routing_data->RoutingNextScore = (ImU8)score; + } + + // Return routing state for CURRENT frame + return routing_data->RoutingCurr == routing_id; +} + +// Currently unused by core (but used by tests) +// Note: this cannot be turned into GetShortcutRouting() because we do the owner_id->routing_id translation, name would be more misleading. +bool ImGui::TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id) +{ + const ImGuiID routing_id = GetRoutingIdFromOwnerId(owner_id); + ImGuiKeyRoutingData* routing_data = GetShortcutRoutingData(key_chord); // FIXME: Could avoid creating entry. + return routing_data->RoutingCurr == routing_id; +} + +// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes. +// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87) +bool ImGui::IsKeyDown(ImGuiKey key) +{ + return IsKeyDown(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyDown(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyPressed(ImGuiKey key, bool repeat) +{ + return IsKeyPressed(key, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +// Important: unless legacy IsKeyPressed(ImGuiKey, bool repeat=true) which DEFAULT to repeat, this requires EXPLICIT repeat. +bool ImGui::IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (!key_data->Down) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = key_data->DownDuration; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + bool pressed = (t == 0.0f); + if (!pressed && ((flags & ImGuiInputFlags_Repeat) != 0)) + { + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(flags, &repeat_delay, &repeat_rate); + pressed = (t > repeat_delay) && GetKeyPressedAmount(key, repeat_delay, repeat_rate) > 0; + } + if (!pressed) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsKeyReleased(ImGuiKey key) +{ + return IsKeyReleased(key, ImGuiKeyOwner_Any); +} + +bool ImGui::IsKeyReleased(ImGuiKey key, ImGuiID owner_id) +{ + const ImGuiKeyData* key_data = GetKeyData(key); + if (key_data->DownDurationPrev < 0.0f || key_data->Down) + return false; + if (!TestKeyOwner(key, owner_id)) + return false; + return true; +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // should be same as IsKeyDown(MouseButtonToKey(button), ImGuiKeyOwner_Any), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyDown(MouseButtonToKey(button), owner_id), but this allows legacy code hijacking the io.Mousedown[] array. +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) +{ + return IsMouseClicked(button, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None); +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) // In theory this should already be encoded as (DownDuration < 0.0f), but testing this facilitates eating mechanism (until we finish work on key ownership) + return false; + const float t = g.IO.MouseDownDuration[button]; + if (t < 0.0f) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByIsKeyPressed) == 0); // Passing flags not supported by this function! + + const bool repeat = (flags & ImGuiInputFlags_Repeat) != 0; + const bool pressed = (t == 0.0f) || (repeat && t > g.IO.KeyRepeatDelay && CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0); + if (!pressed) + return false; + + if (!TestKeyOwner(MouseButtonToKey(button), owner_id)) + return false; + + return true; +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); // Should be same as IsKeyReleased(MouseButtonToKey(button), ImGuiKeyOwner_Any) +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button] && TestKeyOwner(MouseButtonToKey(button), owner_id); // Should be same as IsKeyReleased(MouseButtonToKey(button), owner_id) +} + +bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any); +} + +int ImGui::GetMouseClickedCount(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseClickedCount[button]; +} + +// Test if mouse cursor is hovering given rectangle +// NB- Rectangle is clipped by our current clip setting +// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) +bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) +{ + ImGuiContext& g = *GImGui; + + // Clip + ImRect rect_clipped(r_min, r_max); + if (clip) + rect_clipped.ClipWith(g.CurrentWindow->ClipRect); + + // Expand for touch input + const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); + if (!rect_for_touch.Contains(g.IO.MousePos)) + return false; + if (!g.MouseViewport->GetMainRect().Overlaps(rect_clipped)) + return false; + return true; +} + +// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. +// [Internal] This doesn't test if the button is pressed +bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; +} + +bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) + return false; + return IsMouseDragPastThreshold(button, lock_threshold); +} + +ImVec2 ImGui::GetMousePos() +{ + ImGuiContext& g = *GImGui; + return g.IO.MousePos; +} + +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! +ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() +{ + ImGuiContext& g = *GImGui; + if (g.BeginPopupStack.Size > 0) + return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; + return g.IO.MousePos; +} + +// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. +bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) +{ + // The assert is only to silence a false-positive in XCode Static Analysis. + // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). + IM_ASSERT(GImGui != NULL); + const float MOUSE_INVALID = -256000.0f; + ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; + return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; +} + +// [WILL OBSOLETE] This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. +bool ImGui::IsAnyMouseDown() +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) + if (g.IO.MouseDown[n]) + return true; + return false; +} + +// Return the delta from the initial clicking position while the mouse button is clicked or was just released. +// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. +// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. +ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) + if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) + return g.IO.MousePos - g.IO.MouseClickedPos[button]; + return ImVec2(0.0f, 0.0f); +} + +void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr + g.IO.MouseClickedPos[button] = g.IO.MousePos; +} + +// Get desired mouse cursor shape. +// Important: this is meant to be used by a platform backend, it is reset in ImGui::NewFrame(), +// updated during the frame, and locked in EndFrame()/Render(). +// If you use software rendering by setting io.MouseDrawCursor then Dear ImGui will render those for you +ImGuiMouseCursor ImGui::GetMouseCursor() +{ + ImGuiContext& g = *GImGui; + return g.MouseCursor; +} + +void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) +{ + ImGuiContext& g = *GImGui; + g.MouseCursor = cursor_type; +} + +static void UpdateAliasKey(ImGuiKey key, bool v, float analog_value) +{ + IM_ASSERT(ImGui::IsAliasKey(key)); + ImGuiKeyData* key_data = ImGui::GetKeyData(key); + key_data->Down = v; + key_data->AnalogValue = analog_value; +} + +// [Internal] Do not use directly +static ImGuiKeyChord GetMergedModsFromKeys() +{ + ImGuiKeyChord mods = 0; + if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) { mods |= ImGuiMod_Ctrl; } + if (ImGui::IsKeyDown(ImGuiMod_Shift)) { mods |= ImGuiMod_Shift; } + if (ImGui::IsKeyDown(ImGuiMod_Alt)) { mods |= ImGuiMod_Alt; } + if (ImGui::IsKeyDown(ImGuiMod_Super)) { mods |= ImGuiMod_Super; } + return mods; +} + +static void ImGui::UpdateKeyboardInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Import legacy keys or verify they are not used +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + if (io.BackendUsingLegacyKeyArrays == 0) + { + // Backend used new io.AddKeyEvent() API: Good! Verify that old arrays are never written to externally. + for (int n = 0; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT((io.KeysDown[n] == false || IsKeyDown((ImGuiKey)n)) && "Backend needs to either only use io.AddKeyEvent(), either only fill legacy io.KeysDown[] + io.KeyMap[]. Not both!"); + } + else + { + if (g.FrameCount == 0) + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + IM_ASSERT(g.IO.KeyMap[n] == -1 && "Backend is not allowed to write to io.KeyMap[0..511]!"); + + // Build reverse KeyMap (Named -> Legacy) + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_NamedKey_END; n++) + if (io.KeyMap[n] != -1) + { + IM_ASSERT(IsLegacyKey((ImGuiKey)io.KeyMap[n])); + io.KeyMap[io.KeyMap[n]] = n; + } + + // Import legacy keys into new ones + for (int n = ImGuiKey_LegacyNativeKey_BEGIN; n < ImGuiKey_LegacyNativeKey_END; n++) + if (io.KeysDown[n] || io.BackendUsingLegacyKeyArrays == 1) + { + const ImGuiKey key = (ImGuiKey)(io.KeyMap[n] != -1 ? io.KeyMap[n] : n); + IM_ASSERT(io.KeyMap[n] == -1 || IsNamedKey(key)); + io.KeysData[key].Down = io.KeysDown[n]; + if (key != n) + io.KeysDown[key] = io.KeysDown[n]; // Allow legacy code using io.KeysDown[GetKeyIndex()] with old backends + io.BackendUsingLegacyKeyArrays = 1; + } + if (io.BackendUsingLegacyKeyArrays == 1) + { + GetKeyData(ImGuiMod_Ctrl)->Down = io.KeyCtrl; + GetKeyData(ImGuiMod_Shift)->Down = io.KeyShift; + GetKeyData(ImGuiMod_Alt)->Down = io.KeyAlt; + GetKeyData(ImGuiMod_Super)->Down = io.KeySuper; + } + } + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + if (io.BackendUsingLegacyNavInputArray && nav_gamepad_active) + { + #define MAP_LEGACY_NAV_INPUT_TO_KEY1(_KEY, _NAV1) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f); io.KeysData[_KEY].AnalogValue = io.NavInputs[_NAV1]; } while (0) + #define MAP_LEGACY_NAV_INPUT_TO_KEY2(_KEY, _NAV1, _NAV2) do { io.KeysData[_KEY].Down = (io.NavInputs[_NAV1] > 0.0f) || (io.NavInputs[_NAV2] > 0.0f); io.KeysData[_KEY].AnalogValue = ImMax(io.NavInputs[_NAV1], io.NavInputs[_NAV2]); } while (0) + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceDown, ImGuiNavInput_Activate); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceRight, ImGuiNavInput_Cancel); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceLeft, ImGuiNavInput_Menu); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadFaceUp, ImGuiNavInput_Input); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadLeft, ImGuiNavInput_DpadLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadRight, ImGuiNavInput_DpadRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadUp, ImGuiNavInput_DpadUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadDpadDown, ImGuiNavInput_DpadDown); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadL1, ImGuiNavInput_FocusPrev, ImGuiNavInput_TweakSlow); + MAP_LEGACY_NAV_INPUT_TO_KEY2(ImGuiKey_GamepadR1, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakFast); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickLeft, ImGuiNavInput_LStickLeft); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickRight, ImGuiNavInput_LStickRight); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickUp, ImGuiNavInput_LStickUp); + MAP_LEGACY_NAV_INPUT_TO_KEY1(ImGuiKey_GamepadLStickDown, ImGuiNavInput_LStickDown); + #undef NAV_MAP_KEY + } +#endif +#endif + + // Update aliases + for (int n = 0; n < ImGuiMouseButton_COUNT; n++) + UpdateAliasKey(MouseButtonToKey(n), io.MouseDown[n], io.MouseDown[n] ? 1.0f : 0.0f); + UpdateAliasKey(ImGuiKey_MouseWheelX, io.MouseWheelH != 0.0f, io.MouseWheelH); + UpdateAliasKey(ImGuiKey_MouseWheelY, io.MouseWheel != 0.0f, io.MouseWheel); + + // Synchronize io.KeyMods and io.KeyXXX values. + // - New backends (1.87+): send io.AddKeyEvent(ImGuiMod_XXX) -> -> (here) deriving io.KeyMods + io.KeyXXX from key array. + // - Legacy backends: set io.KeyXXX bools -> (above) set key array from io.KeyXXX -> (here) deriving io.KeyMods + io.KeyXXX from key array. + // So with legacy backends the 4 values will do a unnecessary back-and-forth but it makes the code simpler and future facing. + io.KeyMods = GetMergedModsFromKeys(); + io.KeyCtrl = (io.KeyMods & ImGuiMod_Ctrl) != 0; + io.KeyShift = (io.KeyMods & ImGuiMod_Shift) != 0; + io.KeyAlt = (io.KeyMods & ImGuiMod_Alt) != 0; + io.KeySuper = (io.KeyMods & ImGuiMod_Super) != 0; + + // Clear gamepad data if disabled + if ((io.BackendFlags & ImGuiBackendFlags_HasGamepad) == 0) + for (int i = ImGuiKey_Gamepad_BEGIN; i < ImGuiKey_Gamepad_END; i++) + { + io.KeysData[i - ImGuiKey_KeysData_OFFSET].Down = false; + io.KeysData[i - ImGuiKey_KeysData_OFFSET].AnalogValue = 0.0f; + } + + // Update keys + for (int i = 0; i < ImGuiKey_KeysData_SIZE; i++) + { + ImGuiKeyData* key_data = &io.KeysData[i]; + key_data->DownDurationPrev = key_data->DownDuration; + key_data->DownDuration = key_data->Down ? (key_data->DownDuration < 0.0f ? 0.0f : key_data->DownDuration + io.DeltaTime) : -1.0f; + } + + // Update keys/input owner (named keys only): one entry per key + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyData* key_data = &io.KeysData[key - ImGuiKey_KeysData_OFFSET]; + ImGuiKeyOwnerData* owner_data = &g.KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; + owner_data->OwnerCurr = owner_data->OwnerNext; + if (!key_data->Down) // Important: ownership is released on the frame after a release. Ensure a 'MouseDown -> CloseWindow -> MouseUp' chain doesn't lead to someone else seeing the MouseUp. + owner_data->OwnerNext = ImGuiKeyOwner_None; + owner_data->LockThisFrame = owner_data->LockUntilRelease = owner_data->LockUntilRelease && key_data->Down; // Clear LockUntilRelease when key is not Down anymore + } + + UpdateKeyRoutingTable(&g.KeysRoutingTable); +} + +static void ImGui::UpdateMouseInputs() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Mouse Wheel swapping flag + // As a standard behavior holding SHIFT while using Vertical Mouse Wheel triggers Horizontal scroll instead + // - We avoid doing it on OSX as it the OS input layer handles this already. + // - FIXME: However this means when running on OSX over Emscripten, Shift+WheelY will incur two swapping (1 in OS, 1 here), canceling the feature. + // - FIXME: When we can distinguish e.g. touchpad scroll events from mouse ones, we'll set this accordingly based on input source. + io.MouseWheelRequestAxisSwap = io.KeyShift && !io.ConfigMacOSXBehaviors; + + // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) + if (IsMousePosValid(&io.MousePos)) + io.MousePos = g.MouseLastValidPos = ImFloorSigned(io.MousePos); + + // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta + if (IsMousePosValid(&io.MousePos) && IsMousePosValid(&io.MousePosPrev)) + io.MouseDelta = io.MousePos - io.MousePosPrev; + else + io.MouseDelta = ImVec2(0.0f, 0.0f); + + // Update stationary timer. + // FIXME: May need to rework again to have some tolerance for occasional small movement, while being functional on high-framerates. + const float mouse_stationary_threshold = (io.MouseSource == ImGuiMouseSource_Mouse) ? 2.0f : 3.0f; // Slightly higher threshold for ImGuiMouseSource_TouchScreen/ImGuiMouseSource_Pen, may need rework. + const bool mouse_stationary = (ImLengthSqr(io.MouseDelta) <= mouse_stationary_threshold * mouse_stationary_threshold); + g.MouseStationaryTimer = mouse_stationary ? (g.MouseStationaryTimer + io.DeltaTime) : 0.0f; + //IMGUI_DEBUG_LOG("%.4f\n", g.MouseStationaryTimer); + + // If mouse moved we re-enable mouse hovering in case it was disabled by gamepad/keyboard. In theory should use a >0.0f threshold but would need to reset in everywhere we set this to true. + if (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f) + g.NavDisableMouseHover = false; + + io.MousePosPrev = io.MousePos; + for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) + { + io.MouseClicked[i] = io.MouseDown[i] && io.MouseDownDuration[i] < 0.0f; + io.MouseClickedCount[i] = 0; // Will be filled below + io.MouseReleased[i] = !io.MouseDown[i] && io.MouseDownDuration[i] >= 0.0f; + io.MouseDownDurationPrev[i] = io.MouseDownDuration[i]; + io.MouseDownDuration[i] = io.MouseDown[i] ? (io.MouseDownDuration[i] < 0.0f ? 0.0f : io.MouseDownDuration[i] + io.DeltaTime) : -1.0f; + if (io.MouseClicked[i]) + { + bool is_repeated_click = false; + if ((float)(g.Time - io.MouseClickedTime[i]) < io.MouseDoubleClickTime) + { + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + if (ImLengthSqr(delta_from_click_pos) < io.MouseDoubleClickMaxDist * io.MouseDoubleClickMaxDist) + is_repeated_click = true; + } + if (is_repeated_click) + io.MouseClickedLastCount[i]++; + else + io.MouseClickedLastCount[i] = 1; + io.MouseClickedTime[i] = g.Time; + io.MouseClickedPos[i] = io.MousePos; + io.MouseClickedCount[i] = io.MouseClickedLastCount[i]; + io.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = 0.0f; + } + else if (io.MouseDown[i]) + { + // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold + ImVec2 delta_from_click_pos = IsMousePosValid(&io.MousePos) ? (io.MousePos - io.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + io.MouseDragMaxDistanceSqr[i] = ImMax(io.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); + io.MouseDragMaxDistanceAbs[i].x = ImMax(io.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); + io.MouseDragMaxDistanceAbs[i].y = ImMax(io.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); + } + + // We provide io.MouseDoubleClicked[] as a legacy service + io.MouseDoubleClicked[i] = (io.MouseClickedCount[i] == 2); + + // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation + if (io.MouseClicked[i]) + g.NavDisableMouseHover = false; + } +} + +static void LockWheelingWindow(ImGuiWindow* window, float wheel_amount) +{ + ImGuiContext& g = *GImGui; + if (window) + g.WheelingWindowReleaseTimer = ImMin(g.WheelingWindowReleaseTimer + ImAbs(wheel_amount) * WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER, WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER); + else + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindow == window) + return; + IMGUI_DEBUG_LOG_IO("[io] LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); + g.WheelingWindow = window; + g.WheelingWindowRefMousePos = g.IO.MousePos; + if (window == NULL) + { + g.WheelingWindowStartFrame = -1; + g.WheelingAxisAvg = ImVec2(0.0f, 0.0f); + } +} + +static ImGuiWindow* FindBestWheelingWindow(const ImVec2& wheel) +{ + // For each axis, find window in the hierarchy that may want to use scrolling + ImGuiContext& g = *GImGui; + ImGuiWindow* windows[2] = { NULL, NULL }; + for (int axis = 0; axis < 2; axis++) + if (wheel[axis] != 0.0f) + for (ImGuiWindow* window = windows[axis] = g.HoveredWindow; window->Flags & ImGuiWindowFlags_ChildWindow; window = windows[axis] = window->ParentWindow) + { + // Bubble up into parent window if: + // - a child window doesn't allow any scrolling. + // - a child window has the ImGuiWindowFlags_NoScrollWithMouse flag. + //// - a child window doesn't need scrolling because it is already at the edge for the direction we are going in (FIXME-WIP) + const bool has_scrolling = (window->ScrollMax[axis] != 0.0f); + const bool inputs_disabled = (window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs); + //const bool scrolling_past_limits = (wheel_v < 0.0f) ? (window->Scroll[axis] <= 0.0f) : (window->Scroll[axis] >= window->ScrollMax[axis]); + if (has_scrolling && !inputs_disabled) // && !scrolling_past_limits) + break; // select this window + } + if (windows[0] == NULL && windows[1] == NULL) + return NULL; + + // If there's only one window or only one axis then there's no ambiguity + if (windows[0] == windows[1] || windows[0] == NULL || windows[1] == NULL) + return windows[1] ? windows[1] : windows[0]; + + // If candidate are different windows we need to decide which one to prioritize + // - First frame: only find a winner if one axis is zero. + // - Subsequent frames: only find a winner when one is more than the other. + if (g.WheelingWindowStartFrame == -1) + g.WheelingWindowStartFrame = g.FrameCount; + if ((g.WheelingWindowStartFrame == g.FrameCount && wheel.x != 0.0f && wheel.y != 0.0f) || (g.WheelingAxisAvg.x == g.WheelingAxisAvg.y)) + { + g.WheelingWindowWheelRemainder = wheel; + return NULL; + } + return (g.WheelingAxisAvg.x > g.WheelingAxisAvg.y) ? windows[0] : windows[1]; +} + +// Called by NewFrame() +void ImGui::UpdateMouseWheel() +{ + // Reset the locked window if we move the mouse or after the timer elapses. + // FIXME: Ideally we could refactor to have one timer for "changing window w/ same axis" and a shorter timer for "changing window or axis w/ other axis" (#3795) + ImGuiContext& g = *GImGui; + if (g.WheelingWindow != NULL) + { + g.WheelingWindowReleaseTimer -= g.IO.DeltaTime; + if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) + g.WheelingWindowReleaseTimer = 0.0f; + if (g.WheelingWindowReleaseTimer <= 0.0f) + LockWheelingWindow(NULL, 0.0f); + } + + ImVec2 wheel; + wheel.x = TestKeyOwner(ImGuiKey_MouseWheelX, ImGuiKeyOwner_None) ? g.IO.MouseWheelH : 0.0f; + wheel.y = TestKeyOwner(ImGuiKey_MouseWheelY, ImGuiKeyOwner_None) ? g.IO.MouseWheel : 0.0f; + + //IMGUI_DEBUG_LOG("MouseWheel X:%.3f Y:%.3f\n", wheel_x, wheel_y); + ImGuiWindow* mouse_window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; + if (!mouse_window || mouse_window->Collapsed) + return; + + // Zoom / Scale window + // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. + if (wheel.y != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) + { + LockWheelingWindow(mouse_window, wheel.y); + ImGuiWindow* window = mouse_window; + const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); + const float scale = new_font_scale / window->FontWindowScale; + window->FontWindowScale = new_font_scale; + if (window == window->RootWindow) + { + const ImVec2 offset = window->Size * (1.0f - scale) * (g.IO.MousePos - window->Pos) / window->Size; + SetWindowPos(window, window->Pos + offset, 0); + window->Size = ImFloor(window->Size * scale); + window->SizeFull = ImFloor(window->SizeFull * scale); + } + return; + } + if (g.IO.KeyCtrl) + return; + + // Mouse wheel scrolling + // Read about io.MouseWheelRequestAxisSwap and its issue on Mac+Emscripten in UpdateMouseInputs() + if (g.IO.MouseWheelRequestAxisSwap) + wheel = ImVec2(wheel.y, 0.0f); + + // Maintain a rough average of moving magnitude on both axises + // FIXME: should by based on wall clock time rather than frame-counter + g.WheelingAxisAvg.x = ImExponentialMovingAverage(g.WheelingAxisAvg.x, ImAbs(wheel.x), 30); + g.WheelingAxisAvg.y = ImExponentialMovingAverage(g.WheelingAxisAvg.y, ImAbs(wheel.y), 30); + + // In the rare situation where FindBestWheelingWindow() had to defer first frame of wheeling due to ambiguous main axis, reinject it now. + wheel += g.WheelingWindowWheelRemainder; + g.WheelingWindowWheelRemainder = ImVec2(0.0f, 0.0f); + if (wheel.x == 0.0f && wheel.y == 0.0f) + return; + + // Mouse wheel scrolling: find target and apply + // - don't renew lock if axis doesn't apply on the window. + // - select a main axis when both axises are being moved. + if (ImGuiWindow* window = (g.WheelingWindow ? g.WheelingWindow : FindBestWheelingWindow(wheel))) + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + bool do_scroll[2] = { wheel.x != 0.0f && window->ScrollMax.x != 0.0f, wheel.y != 0.0f && window->ScrollMax.y != 0.0f }; + if (do_scroll[ImGuiAxis_X] && do_scroll[ImGuiAxis_Y]) + do_scroll[(g.WheelingAxisAvg.x > g.WheelingAxisAvg.y) ? ImGuiAxis_Y : ImGuiAxis_X] = false; + if (do_scroll[ImGuiAxis_X]) + { + LockWheelingWindow(window, wheel.x); + float max_step = window->InnerRect.GetWidth() * 0.67f; + float scroll_step = ImFloor(ImMin(2 * window->CalcFontSize(), max_step)); + SetScrollX(window, window->Scroll.x - wheel.x * scroll_step); + } + if (do_scroll[ImGuiAxis_Y]) + { + LockWheelingWindow(window, wheel.y); + float max_step = window->InnerRect.GetHeight() * 0.67f; + float scroll_step = ImFloor(ImMin(5 * window->CalcFontSize(), max_step)); + SetScrollY(window, window->Scroll.y - wheel.y * scroll_step); + } + } +} + +void ImGui::SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureKeyboardNextFrame = want_capture_keyboard ? 1 : 0; +} + +void ImGui::SetNextFrameWantCaptureMouse(bool want_capture_mouse) +{ + ImGuiContext& g = *GImGui; + g.WantCaptureMouseNextFrame = want_capture_mouse ? 1 : 0; +} + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +static const char* GetInputSourceName(ImGuiInputSource source) +{ + const char* input_source_names[] = { "None", "Mouse", "Keyboard", "Gamepad", "Clipboard" }; + IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT && source >= 0 && source < ImGuiInputSource_COUNT); + return input_source_names[source]; +} +static const char* GetMouseSourceName(ImGuiMouseSource source) +{ + const char* mouse_source_names[] = { "Mouse", "TouchScreen", "Pen" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_source_names) == ImGuiMouseSource_COUNT && source >= 0 && source < ImGuiMouseSource_COUNT); + return mouse_source_names[source]; +} +static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e) +{ + ImGuiContext& g = *GImGui; + if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("[io] %s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("[io] %s: MousePos (%.1f, %.1f) (%s)\n", prefix, e->MousePos.PosX, e->MousePos.PosY, GetMouseSourceName(e->MousePos.MouseSource)); return; } + if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("[io] %s: MouseButton %d %s (%s)\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up", GetMouseSourceName(e->MouseButton.MouseSource)); return; } + if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("[io] %s: MouseWheel (%.3f, %.3f) (%s)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY, GetMouseSourceName(e->MouseWheel.MouseSource)); return; } + if (e->Type == ImGuiInputEventType_MouseViewport){IMGUI_DEBUG_LOG_IO("[io] %s: MouseViewport (0x%08X)\n", prefix, e->MouseViewport.HoveredViewportID); return; } + if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("[io] %s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } + if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("[io] %s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } + if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("[io] %s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } +} +#endif + +// Process input queue +// We always call this with the value of 'bool g.IO.ConfigInputTrickleEventQueue'. +// - trickle_fast_inputs = false : process all events, turn into flattened input state (e.g. successive down/up/down/up will be lost) +// - trickle_fast_inputs = true : process as many events as possible (successive down/up/down/up will be trickled over several frames so nothing is lost) (new feature in 1.87) +void ImGui::UpdateInputEvents(bool trickle_fast_inputs) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + // Only trickle chars<>key when working with InputText() + // FIXME: InputText() could parse event trail? + // FIXME: Could specialize chars<>keys trickling rules for control keys (those not typically associated to characters) + const bool trickle_interleaved_keys_and_text = (trickle_fast_inputs && g.WantTextInputNextFrame == 1); + + bool mouse_moved = false, mouse_wheeled = false, key_changed = false, text_inputted = false; + int mouse_button_changed = 0x00; + ImBitArray key_changed_mask; + + int event_n = 0; + for (; event_n < g.InputEventsQueue.Size; event_n++) + { + ImGuiInputEvent* e = &g.InputEventsQueue[event_n]; + if (e->Type == ImGuiInputEventType_MousePos) + { + // Trickling Rule: Stop processing queued events if we already handled a mouse button change + ImVec2 event_pos(e->MousePos.PosX, e->MousePos.PosY); + if (trickle_fast_inputs && (mouse_button_changed != 0 || mouse_wheeled || key_changed || text_inputted)) + break; + io.MousePos = event_pos; + io.MouseSource = e->MousePos.MouseSource; + mouse_moved = true; + } + else if (e->Type == ImGuiInputEventType_MouseButton) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + const ImGuiMouseButton button = e->MouseButton.Button; + IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); + if (trickle_fast_inputs && ((mouse_button_changed & (1 << button)) || mouse_wheeled)) + break; + if (trickle_fast_inputs && e->MouseButton.MouseSource == ImGuiMouseSource_TouchScreen && mouse_moved) // #2702: TouchScreen have no initial hover. + break; + io.MouseDown[button] = e->MouseButton.Down; + io.MouseSource = e->MouseButton.MouseSource; + mouse_button_changed |= (1 << button); + } + else if (e->Type == ImGuiInputEventType_MouseWheel) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the event + if (trickle_fast_inputs && (mouse_moved || mouse_button_changed != 0)) + break; + io.MouseWheelH += e->MouseWheel.WheelX; + io.MouseWheel += e->MouseWheel.WheelY; + io.MouseSource = e->MouseWheel.MouseSource; + mouse_wheeled = true; + } + else if (e->Type == ImGuiInputEventType_MouseViewport) + { + io.MouseHoveredViewport = e->MouseViewport.HoveredViewportID; + } + else if (e->Type == ImGuiInputEventType_Key) + { + // Trickling Rule: Stop processing queued events if we got multiple action on the same button + ImGuiKey key = e->Key.Key; + IM_ASSERT(key != ImGuiKey_None); + ImGuiKeyData* key_data = GetKeyData(key); + const int key_data_index = (int)(key_data - g.IO.KeysData); + if (trickle_fast_inputs && key_data->Down != e->Key.Down && (key_changed_mask.TestBit(key_data_index) || text_inputted || mouse_button_changed != 0)) + break; + key_data->Down = e->Key.Down; + key_data->AnalogValue = e->Key.AnalogValue; + key_changed = true; + key_changed_mask.SetBit(key_data_index); + + // Allow legacy code using io.KeysDown[GetKeyIndex()] with new backends +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + io.KeysDown[key_data_index] = key_data->Down; + if (io.KeyMap[key_data_index] != -1) + io.KeysDown[io.KeyMap[key_data_index]] = key_data->Down; +#endif + } + else if (e->Type == ImGuiInputEventType_Text) + { + // Trickling Rule: Stop processing queued events if keys/mouse have been interacted with + if (trickle_fast_inputs && ((key_changed && trickle_interleaved_keys_and_text) || mouse_button_changed != 0 || mouse_moved || mouse_wheeled)) + break; + unsigned int c = e->Text.Char; + io.InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); + if (trickle_interleaved_keys_and_text) + text_inputted = true; + } + else if (e->Type == ImGuiInputEventType_Focus) + { + // We intentionally overwrite this and process in NewFrame(), in order to give a chance + // to multi-viewports backends to queue AddFocusEvent(false) + AddFocusEvent(true) in same frame. + const bool focus_lost = !e->AppFocused.Focused; + io.AppFocusLost = focus_lost; + } + else + { + IM_ASSERT(0 && "Unknown event!"); + } + } + + // Record trail (for domain-specific applications wanting to access a precise trail) + //if (event_n != 0) IMGUI_DEBUG_LOG_IO("Processed: %d / Remaining: %d\n", event_n, g.InputEventsQueue.Size - event_n); + for (int n = 0; n < event_n; n++) + g.InputEventsTrail.push_back(g.InputEventsQueue[n]); + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (event_n != 0 && (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO)) + for (int n = 0; n < g.InputEventsQueue.Size; n++) + DebugPrintInputEvent(n < event_n ? "Processed" : "Remaining", &g.InputEventsQueue[n]); +#endif + + // Remaining events will be processed on the next frame + if (event_n == g.InputEventsQueue.Size) + g.InputEventsQueue.resize(0); + else + g.InputEventsQueue.erase(g.InputEventsQueue.Data, g.InputEventsQueue.Data + event_n); + + // Clear buttons state when focus is lost + // - this is useful so e.g. releasing Alt after focus loss on Alt-Tab doesn't trigger the Alt menu toggle. + // - we clear in EndFrame() and not now in order allow application/user code polling this flag + // (e.g. custom backend may want to clear additional data, custom widgets may want to react with a "canceling" event). + if (g.IO.AppFocusLost) + g.IO.ClearInputKeys(); +} + +ImGuiID ImGui::GetKeyOwner(ImGuiKey key) +{ + if (!IsNamedKeyOrModKey(key)) + return ImGuiKeyOwner_None; + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + ImGuiID owner_id = owner_data->OwnerCurr; + + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return ImGuiKeyOwner_None; + + return owner_id; +} + +// TestKeyOwner(..., ID) : (owner == None || owner == ID) +// TestKeyOwner(..., None) : (owner == None) +// TestKeyOwner(..., Any) : no owner test +// All paths are also testing for key not being locked, for the rare cases that key have been locked with using ImGuiInputFlags_LockXXX flags. +bool ImGui::TestKeyOwner(ImGuiKey key, ImGuiID owner_id) +{ + if (!IsNamedKeyOrModKey(key)) + return true; + + ImGuiContext& g = *GImGui; + if (g.ActiveIdUsingAllKeyboardKeys && owner_id != g.ActiveId && owner_id != ImGuiKeyOwner_Any) + if (key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END) + return false; + + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + if (owner_id == ImGuiKeyOwner_Any) + return (owner_data->LockThisFrame == false); + + // Note: SetKeyOwner() sets OwnerCurr. It is not strictly required for most mouse routing overlap (because of ActiveId/HoveredId + // are acting as filter before this has a chance to filter), but sane as soon as user tries to look into things. + // Setting OwnerCurr in SetKeyOwner() is more consistent than testing OwnerNext here: would be inconsistent with getter and other functions. + if (owner_data->OwnerCurr != owner_id) + { + if (owner_data->LockThisFrame) + return false; + if (owner_data->OwnerCurr != ImGuiKeyOwner_None) + return false; + } + + return true; +} + +// _LockXXX flags are useful to lock keys away from code which is not input-owner aware. +// When using _LockXXX flags, you can use ImGuiKeyOwner_Any to lock keys from everyone. +// - SetKeyOwner(..., None) : clears owner +// - SetKeyOwner(..., Any, !Lock) : illegal (assert) +// - SetKeyOwner(..., Any or None, Lock) : set lock +void ImGui::SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags) +{ + IM_ASSERT(IsNamedKeyOrModKey(key) && (owner_id != ImGuiKeyOwner_Any || (flags & (ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease)))); // Can only use _Any with _LockXXX flags (to eat a key away without an ID to retrieve it) + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetKeyOwner) == 0); // Passing flags not supported by this function! + + ImGuiContext& g = *GImGui; + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + owner_data->OwnerCurr = owner_data->OwnerNext = owner_id; + + // We cannot lock by default as it would likely break lots of legacy code. + // In the case of using LockUntilRelease while key is not down we still lock during the frame (no key_data->Down test) + owner_data->LockUntilRelease = (flags & ImGuiInputFlags_LockUntilRelease) != 0; + owner_data->LockThisFrame = (flags & ImGuiInputFlags_LockThisFrame) != 0 || (owner_data->LockUntilRelease); +} + +// Rarely used helper +void ImGui::SetKeyOwnersForKeyChord(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + if (key_chord & ImGuiMod_Ctrl) { SetKeyOwner(ImGuiMod_Ctrl, owner_id, flags); } + if (key_chord & ImGuiMod_Shift) { SetKeyOwner(ImGuiMod_Shift, owner_id, flags); } + if (key_chord & ImGuiMod_Alt) { SetKeyOwner(ImGuiMod_Alt, owner_id, flags); } + if (key_chord & ImGuiMod_Super) { SetKeyOwner(ImGuiMod_Super, owner_id, flags); } + if (key_chord & ImGuiMod_Shortcut) { SetKeyOwner(ImGuiMod_Shortcut, owner_id, flags); } + if (key_chord & ~ImGuiMod_Mask_) { SetKeyOwner((ImGuiKey)(key_chord & ~ImGuiMod_Mask_), owner_id, flags); } +} + +// This is more or less equivalent to: +// if (IsItemHovered() || IsItemActive()) +// SetKeyOwner(key, GetItemID()); +// Extensive uses of that (e.g. many calls for a single item) may want to manually perform the tests once and then call SetKeyOwner() multiple times. +// More advanced usage scenarios may want to call SetKeyOwner() manually based on different condition. +// Worth noting is that only one item can be hovered and only one item can be active, therefore this usage pattern doesn't need to bother with routing and priority. +void ImGui::SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.LastItemData.ID; + if (id == 0 || (g.HoveredId != id && g.ActiveId != id)) + return; + if ((flags & ImGuiInputFlags_CondMask_) == 0) + flags |= ImGuiInputFlags_CondDefault_; + if ((g.HoveredId == id && (flags & ImGuiInputFlags_CondHovered)) || (g.ActiveId == id && (flags & ImGuiInputFlags_CondActive))) + { + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedBySetItemKeyOwner) == 0); // Passing flags not supported by this function! + SetKeyOwner(key, id, flags & ~ImGuiInputFlags_CondMask_); + } +} + +bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiInputFlags flags) +{ + ImGuiContext& g = *GImGui; + + // When using (owner_id == 0/Any): SetShortcutRouting() will use CurrentFocusScopeId and filter with this, so IsKeyPressed() is fine with he 0/Any. + if ((flags & ImGuiInputFlags_RouteMask_) == 0) + flags |= ImGuiInputFlags_RouteFocused; + if (!SetShortcutRouting(key_chord, owner_id, flags)) + return false; + + if (key_chord & ImGuiMod_Shortcut) + key_chord = ConvertShortcutMod(key_chord); + ImGuiKey mods = (ImGuiKey)(key_chord & ImGuiMod_Mask_); + if (g.IO.KeyMods != mods) + return false; + + // Special storage location for mods + ImGuiKey key = (ImGuiKey)(key_chord & ~ImGuiMod_Mask_); + if (key == ImGuiKey_None) + key = ConvertSingleModFlagToKey(&g, mods); + + if (!IsKeyPressed(key, owner_id, (flags & (ImGuiInputFlags_Repeat | (ImGuiInputFlags)ImGuiInputFlags_RepeatRateMask_)))) + return false; + IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function! + + return true; +} + + +//----------------------------------------------------------------------------- +// [SECTION] ERROR CHECKING +//----------------------------------------------------------------------------- + +// Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. +// Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit +// If this triggers you have an issue: +// - Most commonly: mismatched headers and compiled code version. +// - Or: mismatched configuration #define, compilation settings, packing pragma etc. +// The configuration settings mentioned in imconfig.h must be set for all compilation units involved with Dear ImGui, +// which is way it is required you put them in your imconfig file (and not just before including imgui.h). +// Otherwise it is possible that different compilation units would see different structure layout +bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) +{ + bool error = false; + if (strcmp(version, IMGUI_VERSION) != 0) { error = true; IM_ASSERT(strcmp(version, IMGUI_VERSION) == 0 && "Mismatched version string!"); } + if (sz_io != sizeof(ImGuiIO)) { error = true; IM_ASSERT(sz_io == sizeof(ImGuiIO) && "Mismatched struct layout!"); } + if (sz_style != sizeof(ImGuiStyle)) { error = true; IM_ASSERT(sz_style == sizeof(ImGuiStyle) && "Mismatched struct layout!"); } + if (sz_vec2 != sizeof(ImVec2)) { error = true; IM_ASSERT(sz_vec2 == sizeof(ImVec2) && "Mismatched struct layout!"); } + if (sz_vec4 != sizeof(ImVec4)) { error = true; IM_ASSERT(sz_vec4 == sizeof(ImVec4) && "Mismatched struct layout!"); } + if (sz_vert != sizeof(ImDrawVert)) { error = true; IM_ASSERT(sz_vert == sizeof(ImDrawVert) && "Mismatched struct layout!"); } + if (sz_idx != sizeof(ImDrawIdx)) { error = true; IM_ASSERT(sz_idx == sizeof(ImDrawIdx) && "Mismatched struct layout!"); } + return !error; +} + +// Until 1.89 (IMGUI_VERSION_NUM < 18814) it was legal to use SetCursorPos() to extend the boundary of a parent (e.g. window or table cell) +// This is causing issues and ambiguity and we need to retire that. +// See https://github.com/ocornut/imgui/issues/5548 for more details. +// [Scenario 1] +// Previously this would make the window content size ~200x200: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + End(); // NOT OK +// Instead, please submit an item: +// Begin(...) + SetCursorScreenPos(GetCursorScreenPos() + ImVec2(200,200)) + Dummy(ImVec2(0,0)) + End(); // OK +// Alternative: +// Begin(...) + Dummy(ImVec2(200,200)) + End(); // OK +// [Scenario 2] +// For reference this is one of the issue what we aim to fix with this change: +// BeginGroup() + SomeItem("foobar") + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() +// The previous logic made SetCursorScreenPos(GetCursorScreenPos()) have a side-effect! It would erroneously incorporate ItemSpacing.y after the item into content size, making the group taller! +// While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect. Using vertical alignment patterns could trigger this issue. +void ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->DC.IsSetPos); + window->DC.IsSetPos = false; +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (window->DC.CursorPos.x <= window->DC.CursorMaxPos.x && window->DC.CursorPos.y <= window->DC.CursorMaxPos.y) + return; + if (window->SkipItems) + return; + IM_ASSERT(0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent."); +#else + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +#endif +} + +static void ImGui::ErrorCheckNewFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Check user IM_ASSERT macro + // (IF YOU GET A WARNING OR COMPILE ERROR HERE: it means your assert macro is incorrectly defined! + // If your macro uses multiple statements, it NEEDS to be surrounded by a 'do { ... } while (0)' block. + // This is a common C/C++ idiom to allow multiple statements macros to be used in control flow blocks.) + // #define IM_ASSERT(EXPR) if (SomeCode(EXPR)) SomeMoreCode(); // Wrong! + // #define IM_ASSERT(EXPR) do { if (SomeCode(EXPR)) SomeMoreCode(); } while (0) // Correct! + if (true) IM_ASSERT(1); else IM_ASSERT(0); + + // Emscripten backends are often imprecise in their submission of DeltaTime. (#6114, #3644) + // Ideally the Emscripten app/backend should aim to fix or smooth this value and avoid feeding zero, but we tolerate it. +#ifdef __EMSCRIPTEN__ + if (g.IO.DeltaTime <= 0.0f && g.FrameCount > 0) + g.IO.DeltaTime = 0.00001f; +#endif + + // Check user data + // (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument) + IM_ASSERT(g.Initialized); + IM_ASSERT((g.IO.DeltaTime > 0.0f || g.FrameCount == 0) && "Need a positive DeltaTime!"); + IM_ASSERT((g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"); + IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); + IM_ASSERT(g.IO.Fonts->IsBuilt() && "Font Atlas not built! Make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()"); + IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting!"); // Allows us to avoid a few clamps in color computations + IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); + IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); + IM_ASSERT(g.Style.ColorButtonPosition == ImGuiDir_Left || g.Style.ColorButtonPosition == ImGuiDir_Right); +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + for (int n = ImGuiKey_NamedKey_BEGIN; n < ImGuiKey_COUNT; n++) + IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < ImGuiKey_LegacyNativeKey_END && "io.KeyMap[] contains an out of bound value (need to be 0..511, or -1 for unmapped key)"); + + // Check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only added in 1.60 WIP) + if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && g.IO.BackendUsingLegacyKeyArrays == 1) + IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); +#endif + + // Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. + if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) + g.IO.ConfigWindowsResizeFromEdges = false; + + // Perform simple check: error if Docking or Viewport are enabled _exactly_ on frame 1 (instead of frame 0 or later), which is a common error leading to loss of .ini data. + if (g.FrameCount == 1 && (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable) && (g.ConfigFlagsLastFrame & ImGuiConfigFlags_DockingEnable) == 0) + IM_ASSERT(0 && "Please set DockingEnable before the first call to NewFrame()! Otherwise you will lose your .ini settings!"); + if (g.FrameCount == 1 && (g.IO.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) && (g.ConfigFlagsLastFrame & ImGuiConfigFlags_ViewportsEnable) == 0) + IM_ASSERT(0 && "Please set ViewportsEnable before the first call to NewFrame()! Otherwise you will lose your .ini settings!"); + + // Perform simple checks: multi-viewport and platform windows support + if (g.IO.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) + { + if ((g.IO.BackendFlags & ImGuiBackendFlags_PlatformHasViewports) && (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasViewports)) + { + IM_ASSERT((g.FrameCount == 0 || g.FrameCount == g.FrameCountPlatformEnded) && "Forgot to call UpdatePlatformWindows() in main loop after EndFrame()? Check examples/ applications for reference."); + IM_ASSERT(g.PlatformIO.Platform_CreateWindow != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_DestroyWindow != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_GetWindowPos != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_SetWindowPos != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_GetWindowSize != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Platform_SetWindowSize != NULL && "Platform init didn't install handlers?"); + IM_ASSERT(g.PlatformIO.Monitors.Size > 0 && "Platform init didn't setup Monitors list?"); + IM_ASSERT((g.Viewports[0]->PlatformUserData != NULL || g.Viewports[0]->PlatformHandle != NULL) && "Platform init didn't setup main viewport."); + if (g.IO.ConfigDockingTransparentPayload && (g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + IM_ASSERT(g.PlatformIO.Platform_SetWindowAlpha != NULL && "Platform_SetWindowAlpha handler is required to use io.ConfigDockingTransparent!"); + } + else + { + // Disable feature, our backends do not support it + g.IO.ConfigFlags &= ~ImGuiConfigFlags_ViewportsEnable; + } + + // Perform simple checks on platform monitor data + compute a total bounding box for quick early outs + for (ImGuiPlatformMonitor& mon : g.PlatformIO.Monitors) + { + IM_UNUSED(mon); + IM_ASSERT(mon.MainSize.x > 0.0f && mon.MainSize.y > 0.0f && "Monitor main bounds not setup properly."); + IM_ASSERT(ImRect(mon.MainPos, mon.MainPos + mon.MainSize).Contains(ImRect(mon.WorkPos, mon.WorkPos + mon.WorkSize)) && "Monitor work bounds not setup properly. If you don't have work area information, just copy MainPos/MainSize into them."); + IM_ASSERT(mon.DpiScale != 0.0f); + } + } +} + +static void ImGui::ErrorCheckEndFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Verify that io.KeyXXX fields haven't been tampered with. Key mods should not be modified between NewFrame() and EndFrame() + // One possible reason leading to this assert is that your backends update inputs _AFTER_ NewFrame(). + // It is known that when some modal native windows called mid-frame takes focus away, some backends such as GLFW will + // send key release events mid-frame. This would normally trigger this assertion and lead to sheared inputs. + // We silently accommodate for this case by ignoring the case where all io.KeyXXX modifiers were released (aka key_mod_flags == 0), + // while still correctly asserting on mid-frame key press events. + const ImGuiKeyChord key_mods = GetMergedModsFromKeys(); + IM_ASSERT((key_mods == 0 || g.IO.KeyMods == key_mods) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); + IM_UNUSED(key_mods); + + // [EXPERIMENTAL] Recover from errors: You may call this yourself before EndFrame(). + //ErrorCheckEndFrameRecover(); + + // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you + // to always call End/EndChild even if Begin/BeginChild returns false! (this is unfortunately inconsistent with most other Begin* API). + if (g.CurrentWindowStack.Size != 1) + { + if (g.CurrentWindowStack.Size > 1) + { + ImGuiWindow* window = g.CurrentWindowStack.back().Window; // <-- This window was not Ended! + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"); + IM_UNUSED(window); + while (g.CurrentWindowStack.Size > 1) + End(); + } + else + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you call End/EndChild too much?"); + } + } + + IM_ASSERT_USER_ERROR(g.GroupStack.Size == 0, "Missing EndGroup call!"); +} + +// Experimental recovery from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls. +// Must be called during or before EndFrame(). +// This is generally flawed as we are not necessarily End/Popping things in the right order. +// FIXME: Can't recover from inside BeginTabItem/EndTabItem yet. +// FIXME: Can't recover from interleaved BeginTabBar/Begin +void ImGui::ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + // PVS-Studio V1044 is "Loop break conditions do not depend on the number of iterations" + ImGuiContext& g = *GImGui; + while (g.CurrentWindowStack.Size > 0) //-V1044 + { + ErrorCheckEndWindowRecover(log_callback, user_data); + ImGuiWindow* window = g.CurrentWindow; + if (g.CurrentWindowStack.Size == 1) + { + IM_ASSERT(window->IsFallbackWindow); + break; + } + if (window->Flags & ImGuiWindowFlags_ChildWindow) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndChild() for '%s'", window->Name); + EndChild(); + } + else + { + if (log_callback) log_callback(user_data, "Recovered from missing End() for '%s'", window->Name); + End(); + } + } +} + +// Must be called before End()/EndChild() +void ImGui::ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data) +{ + ImGuiContext& g = *GImGui; + while (g.CurrentTable && (g.CurrentTable->OuterWindow == g.CurrentWindow || g.CurrentTable->InnerWindow == g.CurrentWindow)) + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTable() in '%s'", g.CurrentTable->OuterWindow->Name); + EndTable(); + } + + ImGuiWindow* window = g.CurrentWindow; + ImGuiStackSizes* stack_sizes = &g.CurrentWindowStack.back().StackSizesOnBegin; + IM_ASSERT(window != NULL); + while (g.CurrentTabBar != NULL) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndTabBar() in '%s'", window->Name); + EndTabBar(); + } + while (window->DC.TreeDepth > 0) + { + if (log_callback) log_callback(user_data, "Recovered from missing TreePop() in '%s'", window->Name); + TreePop(); + } + while (g.GroupStack.Size > stack_sizes->SizeOfGroupStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndGroup() in '%s'", window->Name); + EndGroup(); + } + while (window->IDStack.Size > 1) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopID() in '%s'", window->Name); + PopID(); + } + while (g.DisabledStackSize > stack_sizes->SizeOfDisabledStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing EndDisabled() in '%s'", window->Name); + EndDisabled(); + } + while (g.ColorStack.Size > stack_sizes->SizeOfColorStack) + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleColor() in '%s' for ImGuiCol_%s", window->Name, GetStyleColorName(g.ColorStack.back().Col)); + PopStyleColor(); + } + while (g.ItemFlagsStack.Size > stack_sizes->SizeOfItemFlagsStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopItemFlag() in '%s'", window->Name); + PopItemFlag(); + } + while (g.StyleVarStack.Size > stack_sizes->SizeOfStyleVarStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopStyleVar() in '%s'", window->Name); + PopStyleVar(); + } + while (g.FontStack.Size > stack_sizes->SizeOfFontStack) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopFont() in '%s'", window->Name); + PopFont(); + } + while (g.FocusScopeStack.Size > stack_sizes->SizeOfFocusScopeStack + 1) //-V1044 + { + if (log_callback) log_callback(user_data, "Recovered from missing PopFocusScope() in '%s'", window->Name); + PopFocusScope(); + } +} + +// Save current stack sizes for later compare +void ImGuiStackSizes::SetToContextState(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiWindow* window = g.CurrentWindow; + SizeOfIDStack = (short)window->IDStack.Size; + SizeOfColorStack = (short)g.ColorStack.Size; + SizeOfStyleVarStack = (short)g.StyleVarStack.Size; + SizeOfFontStack = (short)g.FontStack.Size; + SizeOfFocusScopeStack = (short)g.FocusScopeStack.Size; + SizeOfGroupStack = (short)g.GroupStack.Size; + SizeOfItemFlagsStack = (short)g.ItemFlagsStack.Size; + SizeOfBeginPopupStack = (short)g.BeginPopupStack.Size; + SizeOfDisabledStack = (short)g.DisabledStackSize; +} + +// Compare to detect usage errors +void ImGuiStackSizes::CompareWithContextState(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiWindow* window = g.CurrentWindow; + IM_UNUSED(window); + + // Window stacks + // NOT checking: DC.ItemWidth, DC.TextWrapPos (per window) to allow user to conveniently push once and not pop (they are cleared on Begin) + IM_ASSERT(SizeOfIDStack == window->IDStack.Size && "PushID/PopID or TreeNode/TreePop Mismatch!"); + + // Global stacks + // For color, style and font stacks there is an incentive to use Push/Begin/Pop/.../End patterns, so we relax our checks a little to allow them. + IM_ASSERT(SizeOfGroupStack == g.GroupStack.Size && "BeginGroup/EndGroup Mismatch!"); + IM_ASSERT(SizeOfBeginPopupStack == g.BeginPopupStack.Size && "BeginPopup/EndPopup or BeginMenu/EndMenu Mismatch!"); + IM_ASSERT(SizeOfDisabledStack == g.DisabledStackSize && "BeginDisabled/EndDisabled Mismatch!"); + IM_ASSERT(SizeOfItemFlagsStack >= g.ItemFlagsStack.Size && "PushItemFlag/PopItemFlag Mismatch!"); + IM_ASSERT(SizeOfColorStack >= g.ColorStack.Size && "PushStyleColor/PopStyleColor Mismatch!"); + IM_ASSERT(SizeOfStyleVarStack >= g.StyleVarStack.Size && "PushStyleVar/PopStyleVar Mismatch!"); + IM_ASSERT(SizeOfFontStack >= g.FontStack.Size && "PushFont/PopFont Mismatch!"); + IM_ASSERT(SizeOfFocusScopeStack == g.FocusScopeStack.Size && "PushFocusScope/PopFocusScope Mismatch!"); +} + + +//----------------------------------------------------------------------------- +// [SECTION] LAYOUT +//----------------------------------------------------------------------------- +// - ItemSize() +// - ItemAdd() +// - SameLine() +// - GetCursorScreenPos() +// - SetCursorScreenPos() +// - GetCursorPos(), GetCursorPosX(), GetCursorPosY() +// - SetCursorPos(), SetCursorPosX(), SetCursorPosY() +// - GetCursorStartPos() +// - Indent() +// - Unindent() +// - SetNextItemWidth() +// - PushItemWidth() +// - PushMultiItemsWidths() +// - PopItemWidth() +// - CalcItemWidth() +// - CalcItemSize() +// - GetTextLineHeight() +// - GetTextLineHeightWithSpacing() +// - GetFrameHeight() +// - GetFrameHeightWithSpacing() +// - GetContentRegionMax() +// - GetContentRegionMaxAbs() [Internal] +// - GetContentRegionAvail(), +// - GetWindowContentRegionMin(), GetWindowContentRegionMax() +// - BeginGroup() +// - EndGroup() +// Also see in imgui_widgets: tab bars, and in imgui_tables: tables, columns. +//----------------------------------------------------------------------------- + +// Advance cursor given item size for layout. +// Register minimum needed size so it can extend the bounding box used for auto-fit calculation. +// See comments in ItemAdd() about how/why the size provided to ItemSize() vs ItemAdd() may often different. +void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // We increase the height in this function to accommodate for baseline offset. + // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, + // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. + const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; + + const float line_y1 = window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y; + const float line_height = ImMax(window->DC.CurrLineSize.y, /*ImMax(*/window->DC.CursorPos.y - line_y1/*, 0.0f)*/ + size.y + offset_to_match_baseline_y); + + // Always align ourselves on pixel boundaries + //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] + window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + size.x; + window->DC.CursorPosPrevLine.y = line_y1; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line + window->DC.CursorPos.y = IM_FLOOR(line_y1 + line_height + g.Style.ItemSpacing.y); // Next line + window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); + //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] + + window->DC.PrevLineSize.y = line_height; + window->DC.CurrLineSize.y = 0.0f; + window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); + window->DC.CurrLineTextBaseOffset = 0.0f; + window->DC.IsSameLine = window->DC.IsSetPos = false; + + // Horizontal layout mode + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + SameLine(); +} + +// Declare item bounding box for clipping and interaction. +// Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface +// declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. +bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGuiItemFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Set item data + // (DisplayRect is left untouched, made valid when ImGuiItemStatusFlags_HasDisplayRect is set) + g.LastItemData.ID = id; + g.LastItemData.Rect = bb; + g.LastItemData.NavRect = nav_bb_arg ? *nav_bb_arg : bb; + g.LastItemData.InFlags = g.CurrentItemFlags | g.NextItemData.ItemFlags | extra_flags; + g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None; + // Note: we don't copy 'g.NextItemData.SelectionUserData' to an hypothetical g.LastItemData.SelectionUserData: since the former is not cleared. + + // Directional navigation processing + if (id != 0) + { + KeepAliveID(id); + + // Runs prior to clipping early-out + // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget + // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests + // unfortunately, but it is still limited to one window. It may not scale very well for windows with ten of + // thousands of item, but at least NavMoveRequest is only set on user interaction, aka maximum once a frame. + // We could early out with "if (is_clipped && !g.NavInitRequest) return false;" but when we wouldn't be able + // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). + // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. + // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. + if (!(g.LastItemData.InFlags & ImGuiItemFlags_NoNav)) + { + window->DC.NavLayersActiveMaskNext |= (1 << window->DC.NavLayerCurrent); + if (g.NavId == id || g.NavAnyRequest) + if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) + if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) + NavProcessItem(); + } + + // [DEBUG] People keep stumbling on this problem and using "" as identifier in the root of a window instead of "##something". + // Empty identifier are valid and useful in a small amount of cases, but 99.9% of the time you want to use "##something". + // READ THE FAQ: https://dearimgui.com/faq + IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!"); + } + g.NextItemData.Flags = ImGuiNextItemDataFlags_None; + g.NextItemData.ItemFlags = ImGuiItemFlags_None; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0) + IMGUI_TEST_ENGINE_ITEM_ADD(id, g.LastItemData.NavRect, &g.LastItemData); +#endif + + // Clipping test + // (FIXME: This is a modified copy of IsClippedEx() so we can reuse the is_rect_visible value) + //const bool is_clipped = IsClippedEx(bb, id); + //if (is_clipped) + // return false; + const bool is_rect_visible = bb.Overlaps(window->ClipRect); + if (!is_rect_visible) + if (id == 0 || (id != g.ActiveId && id != g.ActiveIdPreviousFrame && id != g.NavId)) + if (!g.LogEnabled) + return false; + + // [DEBUG] +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + if (id != 0 && id == g.DebugLocateId) + DebugLocateItemResolveWithLastItem(); +#endif + //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] + //if ((g.LastItemData.InFlags & ImGuiItemFlags_NoNav) == 0) + // window->DrawList->AddRect(g.LastItemData.NavRect.Min, g.LastItemData.NavRect.Max, IM_COL32(255,255,0,255)); // [DEBUG] + + // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) + if (is_rect_visible) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Visible; + if (IsMouseHoveringRect(bb.Min, bb.Max)) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; + return true; +} + +// Gets back to previous line and continue with horizontal layout +// offset_from_start_x == 0 : follow right after previous item +// offset_from_start_x != 0 : align to specified x position (relative to window/group left) +// spacing_w < 0 : use default spacing if offset_from_start_x == 0, no spacing if offset_from_start_x != 0 +// spacing_w >= 0 : enforce spacing amount +void ImGui::SameLine(float offset_from_start_x, float spacing_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + if (offset_from_start_x != 0.0f) + { + if (spacing_w < 0.0f) + spacing_w = 0.0f; + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + else + { + if (spacing_w < 0.0f) + spacing_w = g.Style.ItemSpacing.x; + window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + window->DC.CurrLineSize = window->DC.PrevLineSize; + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + window->DC.IsSameLine = true; +} + +ImVec2 ImGui::GetCursorScreenPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos; +} + +void ImGui::SetCursorScreenPos(const ImVec2& pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +// User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. +// Conversion happens as we pass the value to user, but it makes our naming convention confusing because GetCursorPos() == (DC.CursorPos - window.Pos). May want to rename 'DC.CursorPos'. +ImVec2 ImGui::GetCursorPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos - window->Pos + window->Scroll; +} + +float ImGui::GetCursorPosX() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.x - window->Pos.x + window->Scroll.x; +} + +float ImGui::GetCursorPosY() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.y - window->Pos.y + window->Scroll.y; +} + +void ImGui::SetCursorPos(const ImVec2& local_pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = window->Pos - window->Scroll + local_pos; + //window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosX(float x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; + //window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); + window->DC.IsSetPos = true; +} + +void ImGui::SetCursorPosY(float y) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; + //window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); + window->DC.IsSetPos = true; +} + +ImVec2 ImGui::GetCursorStartPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorStartPos - window->Pos; +} + +void ImGui::Indent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x += (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +void ImGui::Unindent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x -= (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +// Affect large frame+labels widgets only. +void ImGui::SetNextItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasWidth; + g.NextItemData.Width = item_width; +} + +// FIXME: Remove the == 0.0f behavior? +void ImGui::PushItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidth = (item_width == 0.0f ? window->ItemWidthDefault : item_width); + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PushMultiItemsWidths(int components, float w_full) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiStyle& style = g.Style; + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width + window->DC.ItemWidthStack.push_back(w_item_last); + for (int i = 0; i < components - 2; i++) + window->DC.ItemWidthStack.push_back(w_item_one); + window->DC.ItemWidth = (components == 1) ? w_item_last : w_item_one; + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PopItemWidth() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.ItemWidth = window->DC.ItemWidthStack.back(); + window->DC.ItemWidthStack.pop_back(); +} + +// Calculate default item width given value passed to PushItemWidth() or SetNextItemWidth(). +// The SetNextItemWidth() data is generally cleared/consumed by ItemAdd() or NextItemData.ClearFlags() +float ImGui::CalcItemWidth() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float w; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + w = g.NextItemData.Width; + else + w = window->DC.ItemWidth; + if (w < 0.0f) + { + float region_max_x = GetContentRegionMaxAbs().x; + w = ImMax(1.0f, region_max_x - window->DC.CursorPos.x + w); + } + w = IM_FLOOR(w); + return w; +} + +// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth(). +// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical. +// Note that only CalcItemWidth() is publicly exposed. +// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) +ImVec2 ImGui::CalcItemSize(ImVec2 size, float default_w, float default_h) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 region_max; + if (size.x < 0.0f || size.y < 0.0f) + region_max = GetContentRegionMaxAbs(); + + if (size.x == 0.0f) + size.x = default_w; + else if (size.x < 0.0f) + size.x = ImMax(4.0f, region_max.x - window->DC.CursorPos.x + size.x); + + if (size.y == 0.0f) + size.y = default_h; + else if (size.y < 0.0f) + size.y = ImMax(4.0f, region_max.y - window->DC.CursorPos.y + size.y); + + return size; +} + +float ImGui::GetTextLineHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize; +} + +float ImGui::GetTextLineHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.ItemSpacing.y; +} + +float ImGui::GetFrameHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f; +} + +float ImGui::GetFrameHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f + g.Style.ItemSpacing.y; +} + +// FIXME: All the Contents Region function are messy or misleading. WE WILL AIM TO OBSOLETE ALL OF THEM WITH A NEW "WORK RECT" API. Thanks for your patience! + +// FIXME: This is in window space (not screen space!). +ImVec2 ImGui::GetContentRegionMax() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = (window->DC.CurrentColumns || g.CurrentTable) ? window->WorkRect.Max : window->ContentRegionRect.Max; + return mx - window->Pos; +} + +// [Internal] Absolute coordinate. Saner. This is not exposed until we finishing refactoring work rect features. +ImVec2 ImGui::GetContentRegionMaxAbs() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = (window->DC.CurrentColumns || g.CurrentTable) ? window->WorkRect.Max : window->ContentRegionRect.Max; + return mx; +} + +ImVec2 ImGui::GetContentRegionAvail() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return GetContentRegionMaxAbs() - window->DC.CursorPos; +} + +// In window space (not screen space!) +ImVec2 ImGui::GetWindowContentRegionMin() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Min - window->Pos; +} + +ImVec2 ImGui::GetWindowContentRegionMax() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Max - window->Pos; +} + +// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) +// Groups are currently a mishmash of functionalities which should perhaps be clarified and separated. +// FIXME-OPT: Could we safely early out on ->SkipItems? +void ImGui::BeginGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + g.GroupStack.resize(g.GroupStack.Size + 1); + ImGuiGroupData& group_data = g.GroupStack.back(); + group_data.WindowID = window->ID; + group_data.BackupCursorPos = window->DC.CursorPos; + group_data.BackupCursorMaxPos = window->DC.CursorMaxPos; + group_data.BackupIndent = window->DC.Indent; + group_data.BackupGroupOffset = window->DC.GroupOffset; + group_data.BackupCurrLineSize = window->DC.CurrLineSize; + group_data.BackupCurrLineTextBaseOffset = window->DC.CurrLineTextBaseOffset; + group_data.BackupActiveIdIsAlive = g.ActiveIdIsAlive; + group_data.BackupHoveredIdIsAlive = g.HoveredId != 0; + group_data.BackupActiveIdPreviousFrameIsAlive = g.ActiveIdPreviousFrameIsAlive; + group_data.EmitItem = true; + + window->DC.GroupOffset.x = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffset.x; + window->DC.Indent = window->DC.GroupOffset; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return +} + +void ImGui::EndGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.GroupStack.Size > 0); // Mismatched BeginGroup()/EndGroup() calls + + ImGuiGroupData& group_data = g.GroupStack.back(); + IM_ASSERT(group_data.WindowID == window->ID); // EndGroup() in wrong window? + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); + + window->DC.CursorPos = group_data.BackupCursorPos; + window->DC.CursorMaxPos = ImMax(group_data.BackupCursorMaxPos, window->DC.CursorMaxPos); + window->DC.Indent = group_data.BackupIndent; + window->DC.GroupOffset = group_data.BackupGroupOffset; + window->DC.CurrLineSize = group_data.BackupCurrLineSize; + window->DC.CurrLineTextBaseOffset = group_data.BackupCurrLineTextBaseOffset; + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce a carriage return + + if (!group_data.EmitItem) + { + g.GroupStack.pop_back(); + return; + } + + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.PrevLineTextBaseOffset, group_data.BackupCurrLineTextBaseOffset); // FIXME: Incorrect, we should grab the base offset from the *first line* of the group but it is hard to obtain now. + ItemSize(group_bb.GetSize()); + ItemAdd(group_bb, 0, NULL, ImGuiItemFlags_NoTabStop); + + // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. + // It would be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. + // Also if you grep for LastItemId you'll notice it is only used in that context. + // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) + const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; + const bool group_contains_prev_active_id = (group_data.BackupActiveIdPreviousFrameIsAlive == false) && (g.ActiveIdPreviousFrameIsAlive == true); + if (group_contains_curr_active_id) + g.LastItemData.ID = g.ActiveId; + else if (group_contains_prev_active_id) + g.LastItemData.ID = g.ActiveIdPreviousFrame; + g.LastItemData.Rect = group_bb; + + // Forward Hovered flag + const bool group_contains_curr_hovered_id = (group_data.BackupHoveredIdIsAlive == false) && g.HoveredId != 0; + if (group_contains_curr_hovered_id) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + // Forward Edited flag + if (group_contains_curr_active_id && g.ActiveIdHasBeenEditedThisFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Edited; + + // Forward Deactivated flag + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDeactivated; + if (group_contains_prev_active_id && g.ActiveId != g.ActiveIdPreviousFrame) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_Deactivated; + + g.GroupStack.pop_back(); + //window->DrawList->AddRect(group_bb.Min, group_bb.Max, IM_COL32(255,0,255,255)); // [Debug] +} + + +//----------------------------------------------------------------------------- +// [SECTION] SCROLLING +//----------------------------------------------------------------------------- + +// Helper to snap on edges when aiming at an item very close to the edge, +// So the difference between WindowPadding and ItemSpacing will be in the visible area after scrolling. +// When we refactor the scrolling API this may be configurable with a flag? +// Note that the effect for this won't be visible on X axis with default Style settings as WindowPadding.x == ItemSpacing.x by default. +static float CalcScrollEdgeSnap(float target, float snap_min, float snap_max, float snap_threshold, float center_ratio) +{ + if (target <= snap_min + snap_threshold) + return ImLerp(snap_min, target, center_ratio); + if (target >= snap_max - snap_threshold) + return ImLerp(target, snap_max, center_ratio); + return target; +} + +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window) +{ + ImVec2 scroll = window->Scroll; + ImVec2 decoration_size(window->DecoOuterSizeX1 + window->DecoInnerSizeX1 + window->DecoOuterSizeX2, window->DecoOuterSizeY1 + window->DecoInnerSizeY1 + window->DecoOuterSizeY2); + for (int axis = 0; axis < 2; axis++) + { + if (window->ScrollTarget[axis] < FLT_MAX) + { + float center_ratio = window->ScrollTargetCenterRatio[axis]; + float scroll_target = window->ScrollTarget[axis]; + if (window->ScrollTargetEdgeSnapDist[axis] > 0.0f) + { + float snap_min = 0.0f; + float snap_max = window->ScrollMax[axis] + window->SizeFull[axis] - decoration_size[axis]; + scroll_target = CalcScrollEdgeSnap(scroll_target, snap_min, snap_max, window->ScrollTargetEdgeSnapDist[axis], center_ratio); + } + scroll[axis] = scroll_target - center_ratio * (window->SizeFull[axis] - decoration_size[axis]); + } + scroll[axis] = IM_FLOOR(ImMax(scroll[axis], 0.0f)); + if (!window->Collapsed && !window->SkipItems) + scroll[axis] = ImMin(scroll[axis], window->ScrollMax[axis]); + } + return scroll; +} + +void ImGui::ScrollToItem(ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ScrollToRectEx(window, g.LastItemData.NavRect, flags); +} + +void ImGui::ScrollToRect(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ScrollToRectEx(window, item_rect, flags); +} + +// Scroll to keep newly navigated item fully into view +ImVec2 ImGui::ScrollToRectEx(ImGuiWindow* window, const ImRect& item_rect, ImGuiScrollFlags flags) +{ + ImGuiContext& g = *GImGui; + ImRect scroll_rect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1)); + scroll_rect.Min.x = ImMin(scroll_rect.Min.x + window->DecoInnerSizeX1, scroll_rect.Max.x); + scroll_rect.Min.y = ImMin(scroll_rect.Min.y + window->DecoInnerSizeY1, scroll_rect.Max.y); + //GetForegroundDrawList(window)->AddRect(item_rect.Min, item_rect.Max, IM_COL32(255,0,0,255), 0.0f, 0, 5.0f); // [DEBUG] + //GetForegroundDrawList(window)->AddRect(scroll_rect.Min, scroll_rect.Max, IM_COL32_WHITE); // [DEBUG] + + // Check that only one behavior is selected per axis + IM_ASSERT((flags & ImGuiScrollFlags_MaskX_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskX_)); + IM_ASSERT((flags & ImGuiScrollFlags_MaskY_) == 0 || ImIsPowerOfTwo(flags & ImGuiScrollFlags_MaskY_)); + + // Defaults + ImGuiScrollFlags in_flags = flags; + if ((flags & ImGuiScrollFlags_MaskX_) == 0 && window->ScrollbarX) + flags |= ImGuiScrollFlags_KeepVisibleEdgeX; + if ((flags & ImGuiScrollFlags_MaskY_) == 0) + flags |= window->Appearing ? ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeY; + + const bool fully_visible_x = item_rect.Min.x >= scroll_rect.Min.x && item_rect.Max.x <= scroll_rect.Max.x; + const bool fully_visible_y = item_rect.Min.y >= scroll_rect.Min.y && item_rect.Max.y <= scroll_rect.Max.y; + const bool can_be_fully_visible_x = (item_rect.GetWidth() + g.Style.ItemSpacing.x * 2.0f) <= scroll_rect.GetWidth() || (window->AutoFitFramesX > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + const bool can_be_fully_visible_y = (item_rect.GetHeight() + g.Style.ItemSpacing.y * 2.0f) <= scroll_rect.GetHeight() || (window->AutoFitFramesY > 0) || (window->Flags & ImGuiWindowFlags_AlwaysAutoResize) != 0; + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeX) && !fully_visible_x) + { + if (item_rect.Min.x < scroll_rect.Min.x || !can_be_fully_visible_x) + SetScrollFromPosX(window, item_rect.Min.x - g.Style.ItemSpacing.x - window->Pos.x, 0.0f); + else if (item_rect.Max.x >= scroll_rect.Max.x) + SetScrollFromPosX(window, item_rect.Max.x + g.Style.ItemSpacing.x - window->Pos.x, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterX) && !fully_visible_x) || (flags & ImGuiScrollFlags_AlwaysCenterX)) + { + if (can_be_fully_visible_x) + SetScrollFromPosX(window, ImFloor((item_rect.Min.x + item_rect.Max.x) * 0.5f) - window->Pos.x, 0.5f); + else + SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x, 0.0f); + } + + if ((flags & ImGuiScrollFlags_KeepVisibleEdgeY) && !fully_visible_y) + { + if (item_rect.Min.y < scroll_rect.Min.y || !can_be_fully_visible_y) + SetScrollFromPosY(window, item_rect.Min.y - g.Style.ItemSpacing.y - window->Pos.y, 0.0f); + else if (item_rect.Max.y >= scroll_rect.Max.y) + SetScrollFromPosY(window, item_rect.Max.y + g.Style.ItemSpacing.y - window->Pos.y, 1.0f); + } + else if (((flags & ImGuiScrollFlags_KeepVisibleCenterY) && !fully_visible_y) || (flags & ImGuiScrollFlags_AlwaysCenterY)) + { + if (can_be_fully_visible_y) + SetScrollFromPosY(window, ImFloor((item_rect.Min.y + item_rect.Max.y) * 0.5f) - window->Pos.y, 0.5f); + else + SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y, 0.0f); + } + + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + ImVec2 delta_scroll = next_scroll - window->Scroll; + + // Also scroll parent window to keep us into view if necessary + if (!(flags & ImGuiScrollFlags_NoScrollParent) && (window->Flags & ImGuiWindowFlags_ChildWindow)) + { + // FIXME-SCROLL: May be an option? + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterX | ImGuiScrollFlags_KeepVisibleCenterX)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskX_) | ImGuiScrollFlags_KeepVisibleEdgeX; + if ((in_flags & (ImGuiScrollFlags_AlwaysCenterY | ImGuiScrollFlags_KeepVisibleCenterY)) != 0) + in_flags = (in_flags & ~ImGuiScrollFlags_MaskY_) | ImGuiScrollFlags_KeepVisibleEdgeY; + delta_scroll += ScrollToRectEx(window->ParentWindow, ImRect(item_rect.Min - delta_scroll, item_rect.Max - delta_scroll), in_flags); + } + + return delta_scroll; +} + +float ImGui::GetScrollX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.x; +} + +float ImGui::GetScrollY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.y; +} + +float ImGui::GetScrollMaxX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.x; +} + +float ImGui::GetScrollMaxY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.y; +} + +void ImGui::SetScrollX(ImGuiWindow* window, float scroll_x) +{ + window->ScrollTarget.x = scroll_x; + window->ScrollTargetCenterRatio.x = 0.0f; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollY(ImGuiWindow* window, float scroll_y) +{ + window->ScrollTarget.y = scroll_y; + window->ScrollTargetCenterRatio.y = 0.0f; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollX(float scroll_x) +{ + ImGuiContext& g = *GImGui; + SetScrollX(g.CurrentWindow, scroll_x); +} + +void ImGui::SetScrollY(float scroll_y) +{ + ImGuiContext& g = *GImGui; + SetScrollY(g.CurrentWindow, scroll_y); +} + +// Note that a local position will vary depending on initial scroll value, +// This is a little bit confusing so bear with us: +// - local_pos = (absolution_pos - window->Pos) +// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, +// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. +// - They mostly exist because of legacy API. +// Following the rules above, when trying to work with scrolling code, consider that: +// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! +// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense +// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size +void ImGui::SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio) +{ + IM_ASSERT(center_x_ratio >= 0.0f && center_x_ratio <= 1.0f); + window->ScrollTarget.x = IM_FLOOR(local_x - window->DecoOuterSizeX1 - window->DecoInnerSizeX1 + window->Scroll.x); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.x = center_x_ratio; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) +{ + IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); + window->ScrollTarget.y = IM_FLOOR(local_y - window->DecoOuterSizeY1 - window->DecoInnerSizeY1 + window->Scroll.y); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.y = center_y_ratio; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollFromPosX(float local_x, float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosX(g.CurrentWindow, local_x, center_x_ratio); +} + +void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosY(g.CurrentWindow, local_y, center_y_ratio); +} + +// center_x_ratio: 0.0f left of last item, 0.5f horizontal center of last item, 1.0f right of last item. +void ImGui::SetScrollHereX(float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_x = ImMax(window->WindowPadding.x, g.Style.ItemSpacing.x); + float target_pos_x = ImLerp(g.LastItemData.Rect.Min.x - spacing_x, g.LastItemData.Rect.Max.x + spacing_x, center_x_ratio); + SetScrollFromPosX(window, target_pos_x - window->Pos.x, center_x_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.x = ImMax(0.0f, window->WindowPadding.x - spacing_x); +} + +// center_y_ratio: 0.0f top of last item, 0.5f vertical center of last item, 1.0f bottom of last item. +void ImGui::SetScrollHereY(float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_y = ImMax(window->WindowPadding.y, g.Style.ItemSpacing.y); + float target_pos_y = ImLerp(window->DC.CursorPosPrevLine.y - spacing_y, window->DC.CursorPosPrevLine.y + window->DC.PrevLineSize.y + spacing_y, center_y_ratio); + SetScrollFromPosY(window, target_pos_y - window->Pos.y, center_y_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.y = ImMax(0.0f, window->WindowPadding.y - spacing_y); +} + +//----------------------------------------------------------------------------- +// [SECTION] TOOLTIPS +//----------------------------------------------------------------------------- + +bool ImGui::BeginTooltip() +{ + return BeginTooltipEx(ImGuiTooltipFlags_None, ImGuiWindowFlags_None); +} + +bool ImGui::BeginItemTooltip() +{ + if (!IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + return false; + return BeginTooltipEx(ImGuiTooltipFlags_None, ImGuiWindowFlags_None); +} + +bool ImGui::BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags) +{ + ImGuiContext& g = *GImGui; + + if (g.DragDropWithinSource || g.DragDropWithinTarget) + { + // Drag and Drop tooltips are positioning differently than other tooltips: + // - offset visibility to increase visibility around mouse. + // - never clamp within outer viewport boundary. + // We call SetNextWindowPos() to enforce position and disable clamping. + // See FindBestWindowPosForPopup() for positionning logic of other tooltips (not drag and drop ones). + //ImVec2 tooltip_pos = g.IO.MousePos - g.ActiveIdClickOffset - g.Style.WindowPadding; + ImVec2 tooltip_pos = g.IO.MousePos + TOOLTIP_DEFAULT_OFFSET * g.Style.MouseCursorScale; + SetNextWindowPos(tooltip_pos); + SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f); + //PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :( + tooltip_flags |= ImGuiTooltipFlags_OverridePrevious; + } + + char window_name[16]; + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount); + if (tooltip_flags & ImGuiTooltipFlags_OverridePrevious) + if (ImGuiWindow* window = FindWindowByName(window_name)) + if (window->Active) + { + // Hide previous tooltip from being displayed. We can't easily "reset" the content of a window so we create a new one. + SetWindowHiddendAndSkipItemsForCurrentFrame(window); + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", ++g.TooltipOverrideCount); + } + ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoDocking; + Begin(window_name, NULL, flags | extra_window_flags); + // 2023-03-09: Added bool return value to the API, but currently always returning true. + // If this ever returns false we need to update BeginDragDropSource() accordingly. + //if (!ret) + // End(); + //return ret; + return true; +} + +void ImGui::EndTooltip() +{ + IM_ASSERT(GetCurrentWindowRead()->Flags & ImGuiWindowFlags_Tooltip); // Mismatched BeginTooltip()/EndTooltip() calls + End(); +} + +void ImGui::SetTooltip(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + SetTooltipV(fmt, args); + va_end(args); +} + +void ImGui::SetTooltipV(const char* fmt, va_list args) +{ + if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePrevious, ImGuiWindowFlags_None)) + return; + TextV(fmt, args); + EndTooltip(); +} + +// Shortcut to use 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav'. +// Defaults to == ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort when using the mouse. +void ImGui::SetItemTooltip(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + if (IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + SetTooltipV(fmt, args); + va_end(args); +} + +void ImGui::SetItemTooltipV(const char* fmt, va_list args) +{ + if (IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + SetTooltipV(fmt, args); +} + + +//----------------------------------------------------------------------------- +// [SECTION] POPUPS +//----------------------------------------------------------------------------- + +// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel +bool ImGui::IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + if (popup_flags & ImGuiPopupFlags_AnyPopupId) + { + // Return true if any popup is open at the current BeginPopup() level of the popup stack + // This may be used to e.g. test for another popups already opened to handle popups priorities at the same level. + IM_ASSERT(id == 0); + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + return g.OpenPopupStack.Size > 0; + else + return g.OpenPopupStack.Size > g.BeginPopupStack.Size; + } + else + { + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + { + // Return true if the popup is open anywhere in the popup stack + for (ImGuiPopupData& popup_data : g.OpenPopupStack) + if (popup_data.PopupId == id) + return true; + return false; + } + else + { + // Return true if the popup is open at the current BeginPopup() level of the popup stack (this is the most-common query) + return g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].PopupId == id; + } + } +} + +bool ImGui::IsPopupOpen(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = (popup_flags & ImGuiPopupFlags_AnyPopupId) ? 0 : g.CurrentWindow->GetID(str_id); + if ((popup_flags & ImGuiPopupFlags_AnyPopupLevel) && id != 0) + IM_ASSERT(0 && "Cannot use IsPopupOpen() with a string id and ImGuiPopupFlags_AnyPopupLevel."); // But non-string version is legal and used internally + return IsPopupOpen(id, popup_flags); +} + +// Also see FindBlockingModal(NULL) +ImGuiWindow* ImGui::GetTopMostPopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if (popup->Flags & ImGuiWindowFlags_Modal) + return popup; + return NULL; +} + +// See Demo->Stacked Modal to confirm what this is for. +ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) + if ((popup->Flags & ImGuiWindowFlags_Modal) && IsWindowActiveAndVisible(popup)) + return popup; + return NULL; +} + +void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = g.CurrentWindow->GetID(str_id); + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopup(\"%s\" -> 0x%08X)\n", str_id, id); + OpenPopupEx(id, popup_flags); +} + +void ImGui::OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + OpenPopupEx(id, popup_flags); +} + +// Mark popup as open (toggle toward open state). +// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. +// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). +// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL) +void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + const int current_stack_size = g.BeginPopupStack.Size; + + if (popup_flags & ImGuiPopupFlags_NoOpenOverExistingPopup) + if (IsPopupOpen((ImGuiID)0, ImGuiPopupFlags_AnyPopupId)) + return; + + ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. + popup_ref.PopupId = id; + popup_ref.Window = NULL; + popup_ref.BackupNavWindow = g.NavWindow; // When popup closes focus may be restored to NavWindow (depend on window type). + popup_ref.OpenFrameCount = g.FrameCount; + popup_ref.OpenParentId = parent_window->IDStack.back(); + popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); + popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; + + IMGUI_DEBUG_LOG_POPUP("[popup] OpenPopupEx(0x%08X)\n", id); + if (g.OpenPopupStack.Size < current_stack_size + 1) + { + g.OpenPopupStack.push_back(popup_ref); + } + else + { + // Gently handle the user mistakenly calling OpenPopup() every frame. It is a programming mistake! However, if we were to run the regular code path, the ui + // would become completely unusable because the popup will always be in hidden-while-calculating-size state _while_ claiming focus. Which would be a very confusing + // situation for the programmer. Instead, we silently allow the popup to proceed, it will keep reappearing and the programming error will be more obvious to understand. + if (g.OpenPopupStack[current_stack_size].PopupId == id && g.OpenPopupStack[current_stack_size].OpenFrameCount == g.FrameCount - 1) + { + g.OpenPopupStack[current_stack_size].OpenFrameCount = popup_ref.OpenFrameCount; + } + else + { + // Close child popups if any, then flag popup for open/reopen + ClosePopupToLevel(current_stack_size, false); + g.OpenPopupStack.push_back(popup_ref); + } + + // When reopening a popup we first refocus its parent, otherwise if its parent is itself a popup it would get closed by ClosePopupsOverWindow(). + // This is equivalent to what ClosePopupToLevel() does. + //if (g.OpenPopupStack[current_stack_size].PopupId == id) + // FocusWindow(parent_window); + } +} + +// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it. +// This function closes any popups that are over 'ref_window'. +void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size == 0) + return; + + // Don't close our own child popup windows. + int popup_count_to_keep = 0; + if (ref_window) + { + // Find the highest popup which is a descendant of the reference window (generally reference window = NavWindow) + for (; popup_count_to_keep < g.OpenPopupStack.Size; popup_count_to_keep++) + { + ImGuiPopupData& popup = g.OpenPopupStack[popup_count_to_keep]; + if (!popup.Window) + continue; + IM_ASSERT((popup.Window->Flags & ImGuiWindowFlags_Popup) != 0); + if (popup.Window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + + // Trim the stack unless the popup is a direct parent of the reference window (the reference window is often the NavWindow) + // - With this stack of window, clicking/focusing Popup1 will close Popup2 and Popup3: + // Window -> Popup1 -> Popup2 -> Popup3 + // - Each popups may contain child windows, which is why we compare ->RootWindowDockTree! + // Window -> Popup1 -> Popup1_Child -> Popup2 -> Popup2_Child + bool ref_window_is_descendent_of_popup = false; + for (int n = popup_count_to_keep; n < g.OpenPopupStack.Size; n++) + if (ImGuiWindow* popup_window = g.OpenPopupStack[n].Window) + //if (popup_window->RootWindowDockTree == ref_window->RootWindowDockTree) // FIXME-MERGE + if (IsWindowWithinBeginStackOf(ref_window, popup_window)) + { + ref_window_is_descendent_of_popup = true; + break; + } + if (!ref_window_is_descendent_of_popup) + break; + } + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + { + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupsOverWindow(\"%s\")\n", ref_window ? ref_window->Name : ""); + ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); + } +} + +void ImGui::ClosePopupsExceptModals() +{ + ImGuiContext& g = *GImGui; + + int popup_count_to_keep; + for (popup_count_to_keep = g.OpenPopupStack.Size; popup_count_to_keep > 0; popup_count_to_keep--) + { + ImGuiWindow* window = g.OpenPopupStack[popup_count_to_keep - 1].Window; + if (!window || (window->Flags & ImGuiWindowFlags_Modal)) + break; + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + ClosePopupToLevel(popup_count_to_keep, true); +} + +void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); + IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); + + // Trim open popup stack + ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; + ImGuiWindow* popup_backup_nav_window = g.OpenPopupStack[remaining].BackupNavWindow; + g.OpenPopupStack.resize(remaining); + + if (restore_focus_to_window_under_popup) + { + ImGuiWindow* focus_window = (popup_window && popup_window->Flags & ImGuiWindowFlags_ChildMenu) ? popup_window->ParentWindow : popup_backup_nav_window; + if (focus_window && !focus_window->WasActive && popup_window) + FocusTopMostWindowUnderOne(popup_window, NULL, NULL, ImGuiFocusRequestFlags_RestoreFocusedChild); // Fallback + else + FocusWindow(focus_window, (g.NavLayer == ImGuiNavLayer_Main) ? ImGuiFocusRequestFlags_RestoreFocusedChild : ImGuiFocusRequestFlags_None); + } +} + +// Close the popup we have begin-ed into. +void ImGui::CloseCurrentPopup() +{ + ImGuiContext& g = *GImGui; + int popup_idx = g.BeginPopupStack.Size - 1; + if (popup_idx < 0 || popup_idx >= g.OpenPopupStack.Size || g.BeginPopupStack[popup_idx].PopupId != g.OpenPopupStack[popup_idx].PopupId) + return; + + // Closing a menu closes its top-most parent popup (unless a modal) + while (popup_idx > 0) + { + ImGuiWindow* popup_window = g.OpenPopupStack[popup_idx].Window; + ImGuiWindow* parent_popup_window = g.OpenPopupStack[popup_idx - 1].Window; + bool close_parent = false; + if (popup_window && (popup_window->Flags & ImGuiWindowFlags_ChildMenu)) + if (parent_popup_window && !(parent_popup_window->Flags & ImGuiWindowFlags_MenuBar)) + close_parent = true; + if (!close_parent) + break; + popup_idx--; + } + IMGUI_DEBUG_LOG_POPUP("[popup] CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); + ClosePopupToLevel(popup_idx, true); + + // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. + // To improve this usage pattern, we avoid nav highlight for a single frame in the parent window. + // Similarly, we could avoid mouse hover highlight in this window but it is less visually problematic. + if (ImGuiWindow* window = g.NavWindow) + window->DC.NavHideHighlightOneFrame = true; +} + +// Attention! BeginPopup() adds default flags which BeginPopupEx()! +bool ImGui::BeginPopupEx(ImGuiID id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + char name[20]; + if (flags & ImGuiWindowFlags_ChildMenu) + ImFormatString(name, IM_ARRAYSIZE(name), "##Menu_%02d", g.BeginMenuCount); // Recycle windows based on depth + else + ImFormatString(name, IM_ARRAYSIZE(name), "##Popup_%08x", id); // Not recycling, so we can close/open during the same frame + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoDocking; + bool is_open = Begin(name, NULL, flags); + if (!is_open) // NB: Begin can return false when the popup is completely clipped (e.g. zero size display) + EndPopup(); + + return is_open; +} + +bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= g.BeginPopupStack.Size) // Early out for performance + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; + ImGuiID id = g.CurrentWindow->GetID(str_id); + return BeginPopupEx(id, flags); +} + +// If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. +// Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup) so the actual value of *p_open is meaningless here. +bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = window->GetID(name); + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + // Center modal windows by default for increased visibility + // (this won't really last as settings will kick in, and is mostly for backward compatibility. user may do the same themselves) + // FIXME: Should test for (PosCond & window->SetWindowPosAllowFlags) with the upcoming window. + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) == 0) + { + const ImGuiViewport* viewport = window->WasActive ? window->Viewport : GetMainViewport(); // FIXME-VIEWPORT: What may be our reference viewport? + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); + } + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_Modal | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoDocking; + const bool is_open = Begin(name, p_open, flags); + if (!is_open || (p_open && !*p_open)) // NB: is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + { + EndPopup(); + if (is_open) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + return false; + } + return is_open; +} + +void ImGui::EndPopup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginPopup()/EndPopup() calls + IM_ASSERT(g.BeginPopupStack.Size > 0); + + // Make all menus and popups wrap around for now, may need to expose that policy (e.g. focus scope could include wrap/loop policy flags used by new move requests) + if (g.NavWindow == window) + NavMoveRequestTryWrapping(window, ImGuiNavMoveFlags_LoopY); + + // Child-popups don't need to be laid out + IM_ASSERT(g.WithinEndChild == false); + if (window->Flags & ImGuiWindowFlags_ChildWindow) + g.WithinEndChild = true; + End(); + g.WithinEndChild = false; +} + +// Helper to open a popup if mouse button is released over the item +// - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() +void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + { + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + OpenPopupEx(id, popup_flags); + } +} + +// This is a helper to handle the simplest case of associating one named popup to one given widget. +// - To create a popup associated to the last item, you generally want to pass a NULL value to str_id. +// - To create a popup with a specific identifier, pass it in str_id. +// - This is useful when using using BeginPopupContextItem() on an item which doesn't have an identifier, e.g. a Text() call. +// - This is useful when multiple code locations may want to manipulate/open the same popup, given an explicit id. +// - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). +// This is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// OpenPopupOnItemClick(str_id, ImGuiPopupFlags_MouseButtonRight); +// return BeginPopup(id); +// Which is essentially the same as: +// id = str_id ? GetID(str_id) : GetItemID(); +// if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) +// OpenPopup(id); +// return BeginPopup(id); +// The main difference being that this is tweaked to avoid computing the ID twice. +bool ImGui::BeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + ImGuiID id = str_id ? window->GetID(str_id) : g.LastItemData.ID; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "window_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + if (!(popup_flags & ImGuiPopupFlags_NoOpenOverItems) || !IsAnyItemHovered()) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!str_id) + str_id = "void_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && !IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) + if (GetTopMostPopupModal() == NULL) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.) +// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it. +// (r_outer is usually equivalent to the viewport rectangle minus padding, but when multi-viewports are enabled and monitor +// information are available, it may represent the entire platform monitor from the frame of reference of the current viewport. +// this allows us to have tooltips/popups displayed out of the parent viewport.) +ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy) +{ + ImVec2 base_pos_clamped = ImClamp(ref_pos, r_outer.Min, r_outer.Max - size); + //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255,0,0,255)); + //GetForegroundDrawList()->AddRect(r_outer.Min, r_outer.Max, IM_COL32(0,255,0,255)); + + // Combo Box policy (we want a connecting edge) + if (policy == ImGuiPopupPositionPolicy_ComboBox) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Down, ImGuiDir_Right, ImGuiDir_Left, ImGuiDir_Up }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + ImVec2 pos; + if (dir == ImGuiDir_Down) pos = ImVec2(r_avoid.Min.x, r_avoid.Max.y); // Below, Toward Right (default) + if (dir == ImGuiDir_Right) pos = ImVec2(r_avoid.Min.x, r_avoid.Min.y - size.y); // Above, Toward Right + if (dir == ImGuiDir_Left) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Max.y); // Below, Toward Left + if (dir == ImGuiDir_Up) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Min.y - size.y); // Above, Toward Left + if (!r_outer.Contains(ImRect(pos, pos + size))) + continue; + *last_dir = dir; + return pos; + } + } + + // Tooltip and Default popup policy + // (Always first try the direction we used on the last frame, if any) + if (policy == ImGuiPopupPositionPolicy_Tooltip || policy == ImGuiPopupPositionPolicy_Default) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Right, ImGuiDir_Down, ImGuiDir_Up, ImGuiDir_Left }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + + const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); + const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); + + // If there's not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) + if (avail_w < size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) + continue; + if (avail_h < size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) + continue; + + ImVec2 pos; + pos.x = (dir == ImGuiDir_Left) ? r_avoid.Min.x - size.x : (dir == ImGuiDir_Right) ? r_avoid.Max.x : base_pos_clamped.x; + pos.y = (dir == ImGuiDir_Up) ? r_avoid.Min.y - size.y : (dir == ImGuiDir_Down) ? r_avoid.Max.y : base_pos_clamped.y; + + // Clamp top-left corner of popup + pos.x = ImMax(pos.x, r_outer.Min.x); + pos.y = ImMax(pos.y, r_outer.Min.y); + + *last_dir = dir; + return pos; + } + } + + // Fallback when not enough room: + *last_dir = ImGuiDir_None; + + // For tooltip we prefer avoiding the cursor at all cost even if it means that part of the tooltip won't be visible. + if (policy == ImGuiPopupPositionPolicy_Tooltip) + return ref_pos + ImVec2(2, 2); + + // Otherwise try to keep within display + ImVec2 pos = ref_pos; + pos.x = ImMax(ImMin(pos.x + size.x, r_outer.Max.x) - size.x, r_outer.Min.x); + pos.y = ImMax(ImMin(pos.y + size.y, r_outer.Max.y) - size.y, r_outer.Min.y); + return pos; +} + +// Note that this is used for popups, which can overlap the non work-area of individual viewports. +ImRect ImGui::GetPopupAllowedExtentRect(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImRect r_screen; + if (window->ViewportAllowPlatformMonitorExtend >= 0) + { + // Extent with be in the frame of reference of the given viewport (so Min is likely to be negative here) + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[window->ViewportAllowPlatformMonitorExtend]; + r_screen.Min = monitor.WorkPos; + r_screen.Max = monitor.WorkPos + monitor.WorkSize; + } + else + { + // Use the full viewport area (not work area) for popups + r_screen = window->Viewport->GetMainRect(); + } + ImVec2 padding = g.Style.DisplaySafeAreaPadding; + r_screen.Expand(ImVec2((r_screen.GetWidth() > padding.x * 2) ? -padding.x : 0.0f, (r_screen.GetHeight() > padding.y * 2) ? -padding.y : 0.0f)); + return r_screen; +} + +ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + ImRect r_outer = GetPopupAllowedExtentRect(window); + if (window->Flags & ImGuiWindowFlags_ChildMenu) + { + // Child menus typically request _any_ position within the parent menu item, and then we move the new menu outside the parent bounds. + // This is how we end up with child menus appearing (most-commonly) on the right of the parent menu. + ImGuiWindow* parent_window = window->ParentWindow; + float horizontal_overlap = g.Style.ItemInnerSpacing.x; // We want some overlap to convey the relative depth of each menu (currently the amount of overlap is hard-coded to style.ItemSpacing.x). + ImRect r_avoid; + if (parent_window->DC.MenuBarAppending) + r_avoid = ImRect(-FLT_MAX, parent_window->ClipRect.Min.y, FLT_MAX, parent_window->ClipRect.Max.y); // Avoid parent menu-bar. If we wanted multi-line menu-bar, we may instead want to have the calling window setup e.g. a NextWindowData.PosConstraintAvoidRect field + else + r_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + } + if (window->Flags & ImGuiWindowFlags_Popup) + { + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, ImRect(window->Pos, window->Pos), ImGuiPopupPositionPolicy_Default); // Ideally we'd disable r_avoid here + } + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Position tooltip (always follows mouse + clamp within outer boundaries) + // Note that drag and drop tooltips are NOT using this path: BeginTooltipEx() manually sets their position. + // In theory we could handle both cases in same location, but requires a bit of shuffling as drag and drop tooltips are calling SetWindowPos() leading to 'window_pos_set_by_api' being set in Begin() + IM_ASSERT(g.CurrentWindow == window); + const float scale = g.Style.MouseCursorScale; + const ImVec2 ref_pos = NavCalcPreferredRefPos(); + const ImVec2 tooltip_pos = ref_pos + TOOLTIP_DEFAULT_OFFSET * scale; + ImRect r_avoid; + if (!g.NavDisableHighlight && g.NavDisableMouseHover && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos)) + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 16, ref_pos.y + 8); + else + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 24 * scale, ref_pos.y + 24 * scale); // FIXME: Hard-coded based on mouse cursor shape expectation. Exact dimension not very important. + //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255, 0, 255, 255)); + return FindBestWindowPosForPopupEx(tooltip_pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Tooltip); + } + IM_ASSERT(0); + return window->Pos; +} + +//----------------------------------------------------------------------------- +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +//----------------------------------------------------------------------------- + +// FIXME-NAV: The existence of SetNavID vs SetFocusID vs FocusWindow() needs to be clarified/reworked. +// In our terminology those should be interchangeable, yet right now this is super confusing. +// Those two functions are merely a legacy artifact, so at minimum naming should be clarified. + +void ImGui::SetNavWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.NavWindow != window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] SetNavWindow(\"%s\")\n", window ? window->Name : ""); + g.NavWindow = window; + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + } + g.NavInitRequest = g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavClearPreferredPosForAxis(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + g.NavWindow->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer][axis] = FLT_MAX; +} + +void ImGui::SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + IM_ASSERT(nav_layer == ImGuiNavLayer_Main || nav_layer == ImGuiNavLayer_Menu); + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = focus_scope_id; + g.NavWindow->NavLastIds[nav_layer] = id; + g.NavWindow->NavRectRel[nav_layer] = rect_rel; + + // Clear preferred scoring position (NavMoveRequestApplyResult() will tend to restore it) + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavClearPreferredPosForAxis(ImGuiAxis_Y); +} + +void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + if (g.NavWindow != window) + SetNavWindow(window); + + // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and g.CurrentFocusScopeId are valid. + // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) + const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = g.CurrentFocusScopeId; + window->NavLastIds[nav_layer] = id; + if (g.LastItemData.ID == id) + window->NavRectRel[nav_layer] = WindowRectAbsToRel(window, g.LastItemData.NavRect); + + if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + g.NavDisableMouseHover = true; + else + g.NavDisableHighlight = true; + + // Clear preferred scoring position (NavMoveRequestApplyResult() will tend to restore it) + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavClearPreferredPosForAxis(ImGuiAxis_Y); +} + +static ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) +{ + if (ImFabs(dx) > ImFabs(dy)) + return (dx > 0.0f) ? ImGuiDir_Right : ImGuiDir_Left; + return (dy > 0.0f) ? ImGuiDir_Down : ImGuiDir_Up; +} + +static float inline NavScoreItemDistInterval(float cand_min, float cand_max, float curr_min, float curr_max) +{ + if (cand_max < curr_min) + return cand_max - curr_min; + if (curr_max < cand_min) + return cand_min - curr_max; + return 0.0f; +} + +// Scoring function for gamepad/keyboard directional navigation. Based on https://gist.github.com/rygorous/6981057 +static bool ImGui::NavScoreItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavLayer != window->DC.NavLayerCurrent) + return false; + + // FIXME: Those are not good variables names + ImRect cand = g.LastItemData.NavRect; // Current item nav rectangle + const ImRect curr = g.NavScoringRect; // Current modified source rect (NB: we've applied Max.x = Min.x in NavUpdate() to inhibit the effect of having varied item width) + g.NavScoringDebugCount++; + + // When entering through a NavFlattened border, we consider child window items as fully clipped for scoring + if (window->ParentWindow == g.NavWindow) + { + IM_ASSERT((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened); + if (!window->ClipRect.Overlaps(cand)) + return false; + cand.ClipWithFull(window->ClipRect); // This allows the scored item to not overlap other candidates in the parent window + } + + // Compute distance between boxes + // FIXME-NAV: Introducing biases for vertical navigation, needs to be removed. + float dbx = NavScoreItemDistInterval(cand.Min.x, cand.Max.x, curr.Min.x, curr.Max.x); + float dby = NavScoreItemDistInterval(ImLerp(cand.Min.y, cand.Max.y, 0.2f), ImLerp(cand.Min.y, cand.Max.y, 0.8f), ImLerp(curr.Min.y, curr.Max.y, 0.2f), ImLerp(curr.Min.y, curr.Max.y, 0.8f)); // Scale down on Y to keep using box-distance for vertically touching items + if (dby != 0.0f && dbx != 0.0f) + dbx = (dbx / 1000.0f) + ((dbx > 0.0f) ? +1.0f : -1.0f); + float dist_box = ImFabs(dbx) + ImFabs(dby); + + // Compute distance between centers (this is off by a factor of 2, but we only compare center distances with each other so it doesn't matter) + float dcx = (cand.Min.x + cand.Max.x) - (curr.Min.x + curr.Max.x); + float dcy = (cand.Min.y + cand.Max.y) - (curr.Min.y + curr.Max.y); + float dist_center = ImFabs(dcx) + ImFabs(dcy); // L1 metric (need this for our connectedness guarantee) + + // Determine which quadrant of 'curr' our candidate item 'cand' lies in based on distance + ImGuiDir quadrant; + float dax = 0.0f, day = 0.0f, dist_axial = 0.0f; + if (dbx != 0.0f || dby != 0.0f) + { + // For non-overlapping boxes, use distance between boxes + dax = dbx; + day = dby; + dist_axial = dist_box; + quadrant = ImGetDirQuadrantFromDelta(dbx, dby); + } + else if (dcx != 0.0f || dcy != 0.0f) + { + // For overlapping boxes with different centers, use distance between centers + dax = dcx; + day = dcy; + dist_axial = dist_center; + quadrant = ImGetDirQuadrantFromDelta(dcx, dcy); + } + else + { + // Degenerate case: two overlapping buttons with same center, break ties arbitrarily (note that LastItemId here is really the _previous_ item order, but it doesn't matter) + quadrant = (g.LastItemData.ID < g.NavId) ? ImGuiDir_Left : ImGuiDir_Right; + } + + const ImGuiDir move_dir = g.NavMoveDir; +#if IMGUI_DEBUG_NAV_SCORING + char buf[200]; + if (g.IO.KeyCtrl) // Hold CTRL to preview score in matching quadrant. CTRL+Arrow to rotate. + { + if (quadrant == move_dir) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "%.0f/%.0f", dist_box, dist_center); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRectFilled(cand.Min, cand.Max, IM_COL32(255, 0, 0, 80)); + draw_list->AddRectFilled(cand.Min, cand.Min + CalcTextSize(buf), IM_COL32(255, 0, 0, 200)); + draw_list->AddText(cand.Min, IM_COL32(255, 255, 255, 255), buf); + } + } + const bool debug_hovering = IsMouseHoveringRect(cand.Min, cand.Max); + const bool debug_tty = (g.IO.KeyCtrl && IsKeyPressed(ImGuiKey_Space)); + if (debug_hovering || debug_tty) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), + "d-box (%7.3f,%7.3f) -> %7.3f\nd-center (%7.3f,%7.3f) -> %7.3f\nd-axial (%7.3f,%7.3f) -> %7.3f\nnav %c, quadrant %c", + dbx, dby, dist_box, dcx, dcy, dist_center, dax, day, dist_axial, "-WENS"[move_dir+1], "-WENS"[quadrant+1]); + if (debug_hovering) + { + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRect(curr.Min, curr.Max, IM_COL32(255, 200, 0, 100)); + draw_list->AddRect(cand.Min, cand.Max, IM_COL32(255, 255, 0, 200)); + draw_list->AddRectFilled(cand.Max - ImVec2(4, 4), cand.Max + CalcTextSize(buf) + ImVec2(4, 4), IM_COL32(40, 0, 0, 200)); + draw_list->AddText(cand.Max, ~0U, buf); + } + if (debug_tty) { IMGUI_DEBUG_LOG_NAV("id 0x%08X\n%s\n", g.LastItemData.ID, buf); } + } +#endif + + // Is it in the quadrant we're interested in moving to? + bool new_best = false; + if (quadrant == move_dir) + { + // Does it beat the current best candidate? + if (dist_box < result->DistBox) + { + result->DistBox = dist_box; + result->DistCenter = dist_center; + return true; + } + if (dist_box == result->DistBox) + { + // Try using distance between center points to break ties + if (dist_center < result->DistCenter) + { + result->DistCenter = dist_center; + new_best = true; + } + else if (dist_center == result->DistCenter) + { + // Still tied! we need to be extra-careful to make sure everything gets linked properly. We consistently break ties by symbolically moving "later" items + // (with higher index) to the right/downwards by an infinitesimal amount since we the current "best" button already (so it must have a lower index), + // this is fairly easy. This rule ensures that all buttons with dx==dy==0 will end up being linked in order of appearance along the x axis. + if (((move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) ? dby : dbx) < 0.0f) // moving bj to the right/down decreases distance + new_best = true; + } + } + } + + // Axial check: if 'curr' has no link at all in some direction and 'cand' lies roughly in that direction, add a tentative link. This will only be kept if no "real" matches + // are found, so it only augments the graph produced by the above method using extra links. (important, since it doesn't guarantee strong connectedness) + // This is just to avoid buttons having no links in a particular direction when there's a suitable neighbor. you get good graphs without this too. + // 2017/09/29: FIXME: This now currently only enabled inside menu bars, ideally we'd disable it everywhere. Menus in particular need to catch failure. For general navigation it feels awkward. + // Disabling it may lead to disconnected graphs when nodes are very spaced out on different axis. Perhaps consider offering this as an option? + if (result->DistBox == FLT_MAX && dist_axial < result->DistAxial) // Check axial match + if (g.NavLayer == ImGuiNavLayer_Menu && !(g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + if ((move_dir == ImGuiDir_Left && dax < 0.0f) || (move_dir == ImGuiDir_Right && dax > 0.0f) || (move_dir == ImGuiDir_Up && day < 0.0f) || (move_dir == ImGuiDir_Down && day > 0.0f)) + { + result->DistAxial = dist_axial; + new_best = true; + } + + return new_best; +} + +static void ImGui::NavApplyItemToResult(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + result->Window = window; + result->ID = g.LastItemData.ID; + result->FocusScopeId = g.CurrentFocusScopeId; + result->InFlags = g.LastItemData.InFlags; + result->RectRel = WindowRectAbsToRel(window, g.LastItemData.NavRect); + if (result->InFlags & ImGuiItemFlags_HasSelectionUserData) + { + IM_ASSERT(g.NextItemData.SelectionUserData != ImGuiSelectionUserData_Invalid); + result->SelectionUserData = g.NextItemData.SelectionUserData; // INTENTIONAL: At this point this field is not cleared in NextItemData. Avoid unnecessary copy to LastItemData. + } +} + +// True when current work location may be scrolled horizontally when moving left / right. +// This is generally always true UNLESS within a column. We don't have a vertical equivalent. +void ImGui::NavUpdateCurrentWindowIsScrollPushableX() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.NavIsScrollPushableX = (g.CurrentTable == NULL && window->DC.CurrentColumns == NULL); +} + +// We get there when either NavId == id, or when g.NavAnyRequest is set (which is updated by NavUpdateAnyRequestFlag above) +// This is called after LastItemData is set, but NextItemData is also still valid. +static void ImGui::NavProcessItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = g.LastItemData.ID; + const ImGuiItemFlags item_flags = g.LastItemData.InFlags; + + // When inside a container that isn't scrollable with Left<>Right, clip NavRect accordingly (#2221) + if (window->DC.NavIsScrollPushableX == false) + { + g.LastItemData.NavRect.Min.x = ImClamp(g.LastItemData.NavRect.Min.x, window->ClipRect.Min.x, window->ClipRect.Max.x); + g.LastItemData.NavRect.Max.x = ImClamp(g.LastItemData.NavRect.Max.x, window->ClipRect.Min.x, window->ClipRect.Max.x); + } + const ImRect nav_bb = g.LastItemData.NavRect; + + // Process Init Request + if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent && (item_flags & ImGuiItemFlags_Disabled) == 0) + { + // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback + const bool candidate_for_nav_default_focus = (item_flags & ImGuiItemFlags_NoNavDefaultFocus) == 0; + if (candidate_for_nav_default_focus || g.NavInitResult.ID == 0) + { + NavApplyItemToResult(&g.NavInitResult); + } + if (candidate_for_nav_default_focus) + { + g.NavInitRequest = false; // Found a match, clear request + NavUpdateAnyRequestFlag(); + } + } + + // Process Move Request (scoring for navigation) + // FIXME-NAV: Consider policy for double scoring (scoring from NavScoringRect + scoring from a rect wrapped according to current wrapping policy) + if (g.NavMoveScoringItems && (item_flags & ImGuiItemFlags_Disabled) == 0) + { + const bool is_tabbing = (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) != 0; + if (is_tabbing) + { + NavProcessItemForTabbingRequest(id, item_flags, g.NavMoveFlags); + } + else if (g.NavId != id || (g.NavMoveFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) + { + ImGuiNavItemData* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; + if (NavScoreItem(result)) + NavApplyItemToResult(result); + + // Features like PageUp/PageDown need to maintain a separate score for the visible set of items. + const float VISIBLE_RATIO = 0.70f; + if ((g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) && window->ClipRect.Overlaps(nav_bb)) + if (ImClamp(nav_bb.Max.y, window->ClipRect.Min.y, window->ClipRect.Max.y) - ImClamp(nav_bb.Min.y, window->ClipRect.Min.y, window->ClipRect.Max.y) >= (nav_bb.Max.y - nav_bb.Min.y) * VISIBLE_RATIO) + if (NavScoreItem(&g.NavMoveResultLocalVisible)) + NavApplyItemToResult(&g.NavMoveResultLocalVisible); + } + } + + // Update information for currently focused/navigated item + if (g.NavId == id) + { + if (g.NavWindow != window) + SetNavWindow(window); // Always refresh g.NavWindow, because some operations such as FocusItem() may not have a window. + g.NavLayer = window->DC.NavLayerCurrent; + g.NavFocusScopeId = g.CurrentFocusScopeId; + g.NavIdIsAlive = true; + if (g.LastItemData.InFlags & ImGuiItemFlags_HasSelectionUserData) + { + IM_ASSERT(g.NextItemData.SelectionUserData != ImGuiSelectionUserData_Invalid); + g.NavLastValidSelectionUserData = g.NextItemData.SelectionUserData; // INTENTIONAL: At this point this field is not cleared in NextItemData. Avoid unnecessary copy to LastItemData. + } + window->NavRectRel[window->DC.NavLayerCurrent] = WindowRectAbsToRel(window, nav_bb); // Store item bounding box (relative to window position) + } +} + +// Handle "scoring" of an item for a tabbing/focusing request initiated by NavUpdateCreateTabbingRequest(). +// Note that SetKeyboardFocusHere() API calls are considered tabbing requests! +// - Case 1: no nav/active id: set result to first eligible item, stop storing. +// - Case 2: tab forward: on ref id set counter, on counter elapse store result +// - Case 3: tab forward wrap: set result to first eligible item (preemptively), on ref id set counter, on next frame if counter hasn't elapsed store result. // FIXME-TABBING: Could be done as a next-frame forwarded request +// - Case 4: tab backward: store all results, on ref id pick prev, stop storing +// - Case 5: tab backward wrap: store all results, on ref id if no result keep storing until last // FIXME-TABBING: Could be done as next-frame forwarded requested +void ImGui::NavProcessItemForTabbingRequest(ImGuiID id, ImGuiItemFlags item_flags, ImGuiNavMoveFlags move_flags) +{ + ImGuiContext& g = *GImGui; + + if ((move_flags & ImGuiNavMoveFlags_FocusApi) == 0) + if (g.NavLayer != g.CurrentWindow->DC.NavLayerCurrent) + return; + + // - Can always land on an item when using API call. + // - Tabbing with _NavEnableKeyboard (space/enter/arrows): goes through every item. + // - Tabbing without _NavEnableKeyboard: goes through inputable items only. + bool can_stop; + if (move_flags & ImGuiNavMoveFlags_FocusApi) + can_stop = true; + else + can_stop = (item_flags & ImGuiItemFlags_NoTabStop) == 0 && ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) || (item_flags & ImGuiItemFlags_Inputable)); + + // Always store in NavMoveResultLocal (unlike directional request which uses NavMoveResultOther on sibling/flattened windows) + ImGuiNavItemData* result = &g.NavMoveResultLocal; + if (g.NavTabbingDir == +1) + { + // Tab Forward or SetKeyboardFocusHere() with >= 0 + if (can_stop && g.NavTabbingResultFirst.ID == 0) + NavApplyItemToResult(&g.NavTabbingResultFirst); + if (can_stop && g.NavTabbingCounter > 0 && --g.NavTabbingCounter == 0) + NavMoveRequestResolveWithLastItem(result); + else if (g.NavId == id) + g.NavTabbingCounter = 1; + } + else if (g.NavTabbingDir == -1) + { + // Tab Backward + if (g.NavId == id) + { + if (result->ID) + { + g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); + } + } + else if (can_stop) + { + // Keep applying until reaching NavId + NavApplyItemToResult(result); + } + } + else if (g.NavTabbingDir == 0) + { + if (can_stop && g.NavId == id) + NavMoveRequestResolveWithLastItem(result); + if (can_stop && g.NavTabbingResultFirst.ID == 0) // Tab init + NavApplyItemToResult(&g.NavTabbingResultFirst); + } +} + +bool ImGui::NavMoveRequestButNoResultYet() +{ + ImGuiContext& g = *GImGui; + return g.NavMoveScoringItems && g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0; +} + +// FIXME: ScoringRect is not set +void ImGui::NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow != NULL); + + if (move_flags & ImGuiNavMoveFlags_IsTabbing) + move_flags |= ImGuiNavMoveFlags_AllowCurrentNavId; + + g.NavMoveSubmitted = g.NavMoveScoringItems = true; + g.NavMoveDir = move_dir; + g.NavMoveDirForDebug = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags; + g.NavMoveScrollFlags = scroll_flags; + g.NavMoveForwardToNextFrame = false; + g.NavMoveKeyMods = g.IO.KeyMods; + g.NavMoveResultLocal.Clear(); + g.NavMoveResultLocalVisible.Clear(); + g.NavMoveResultOther.Clear(); + g.NavTabbingCounter = 0; + g.NavTabbingResultFirst.Clear(); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result) +{ + ImGuiContext& g = *GImGui; + g.NavMoveScoringItems = false; // Ensure request doesn't need more processing + NavApplyItemToResult(result); + NavUpdateAnyRequestFlag(); +} + +// Called by TreePop() to implement ImGuiTreeNodeFlags_NavLeftJumpsBackHere +void ImGui::NavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData* result, ImGuiNavTreeNodeData* tree_node_data) +{ + ImGuiContext& g = *GImGui; + g.NavMoveScoringItems = false; + g.LastItemData.ID = tree_node_data->ID; + g.LastItemData.InFlags = tree_node_data->InFlags & ~ImGuiItemFlags_HasSelectionUserData; // Losing SelectionUserData, recovered next-frame (cheaper). + g.LastItemData.NavRect = tree_node_data->NavRect; + NavApplyItemToResult(result); // Result this instead of implementing a NavApplyPastTreeNodeToResult() + NavClearPreferredPosForAxis(ImGuiAxis_Y); + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestCancel() +{ + ImGuiContext& g = *GImGui; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + NavUpdateAnyRequestFlag(); +} + +// Forward will reuse the move request again on the next frame (generally with modifications done to it) +void ImGui::NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavMoveForwardToNextFrame == false); + NavMoveRequestCancel(); + g.NavMoveForwardToNextFrame = true; + g.NavMoveDir = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveFlags = move_flags | ImGuiNavMoveFlags_Forwarded; + g.NavMoveScrollFlags = scroll_flags; +} + +// Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire +// popup is assembled and in case of appended popups it is not clear which EndPopup() call is final. +void ImGui::NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags wrap_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT((wrap_flags & ImGuiNavMoveFlags_WrapMask_ ) != 0 && (wrap_flags & ~ImGuiNavMoveFlags_WrapMask_) == 0); // Call with _WrapX, _WrapY, _LoopX, _LoopY + + // In theory we should test for NavMoveRequestButNoResultYet() but there's no point doing it: + // as NavEndFrame() will do the same test. It will end up calling NavUpdateCreateWrappingRequest(). + if (g.NavWindow == window && g.NavMoveScoringItems && g.NavLayer == ImGuiNavLayer_Main) + g.NavMoveFlags = (g.NavMoveFlags & ~ImGuiNavMoveFlags_WrapMask_) | wrap_flags; +} + +// FIXME: This could be replaced by updating a frame number in each window when (window == NavWindow) and (NavLayer == 0). +// This way we could find the last focused window among our children. It would be much less confusing this way? +static void ImGui::NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window) +{ + ImGuiWindow* parent = nav_window; + while (parent && parent->RootWindow != parent && (parent->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + parent = parent->ParentWindow; + if (parent && parent != nav_window) + parent->NavLastChildNavWindow = nav_window; +} + +// Restore the last focused child. +// Call when we are expected to land on the Main Layer (0) after FocusWindow() +static ImGuiWindow* ImGui::NavRestoreLastChildNavWindow(ImGuiWindow* window) +{ + if (window->NavLastChildNavWindow && window->NavLastChildNavWindow->WasActive) + return window->NavLastChildNavWindow; + if (window->DockNodeAsHost && window->DockNodeAsHost->TabBar) + if (ImGuiTabItem* tab = TabBarFindMostRecentlySelectedTabForActiveWindow(window->DockNodeAsHost->TabBar)) + return tab->Window; + return window; +} + +void ImGui::NavRestoreLayer(ImGuiNavLayer layer) +{ + ImGuiContext& g = *GImGui; + if (layer == ImGuiNavLayer_Main) + { + ImGuiWindow* prev_nav_window = g.NavWindow; + g.NavWindow = NavRestoreLastChildNavWindow(g.NavWindow); // FIXME-NAV: Should clear ongoing nav requests? + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + if (prev_nav_window) + IMGUI_DEBUG_LOG_FOCUS("[focus] NavRestoreLayer: from \"%s\" to SetNavWindow(\"%s\")\n", prev_nav_window->Name, g.NavWindow->Name); + } + ImGuiWindow* window = g.NavWindow; + if (window->NavLastIds[layer] != 0) + { + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + } + else + { + g.NavLayer = layer; + NavInitWindow(window, true); + } +} + +void ImGui::NavRestoreHighlightAfterMove() +{ + ImGuiContext& g = *GImGui; + g.NavDisableHighlight = false; + g.NavDisableMouseHover = g.NavMousePosDirty = true; +} + +static inline void ImGui::NavUpdateAnyRequestFlag() +{ + ImGuiContext& g = *GImGui; + g.NavAnyRequest = g.NavMoveScoringItems || g.NavInitRequest || (IMGUI_DEBUG_NAV_SCORING && g.NavWindow != NULL); + if (g.NavAnyRequest) + IM_ASSERT(g.NavWindow != NULL); +} + +// This needs to be called before we submit any widget (aka in or before Begin) +void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) +{ + // FIXME: ChildWindow test here is wrong for docking + ImGuiContext& g = *GImGui; + IM_ASSERT(window == g.NavWindow); + + if (window->Flags & ImGuiWindowFlags_NoNavInputs) + { + g.NavId = 0; + g.NavFocusScopeId = window->NavRootFocusScopeId; + return; + } + + bool init_for_nav = false; + if (window == window->RootWindow || (window->Flags & ImGuiWindowFlags_Popup) || (window->NavLastIds[0] == 0) || force_reinit) + init_for_nav = true; + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); + if (init_for_nav) + { + SetNavID(0, g.NavLayer, window->NavRootFocusScopeId, ImRect()); + g.NavInitRequest = true; + g.NavInitRequestFromMove = false; + g.NavInitResult.ID = 0; + NavUpdateAnyRequestFlag(); + } + else + { + g.NavId = window->NavLastIds[0]; + g.NavFocusScopeId = window->NavRootFocusScopeId; + } +} + +static ImVec2 ImGui::NavCalcPreferredRefPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if (g.NavDisableHighlight || !g.NavDisableMouseHover || !window) + { + // Mouse (we need a fallback in case the mouse becomes invalid after being used) + // The +1.0f offset when stored by OpenPopupEx() allows reopening this or another popup (same or another mouse button) while not moving the mouse, it is pretty standard. + // In theory we could move that +1.0f offset in OpenPopupEx() + ImVec2 p = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : g.MouseLastValidPos; + return ImVec2(p.x + 1.0f, p.y); + } + else + { + // When navigation is active and mouse is disabled, pick a position around the bottom left of the currently navigated item + // Take account of upcoming scrolling (maybe set mouse pos should be done in EndFrame?) + ImRect rect_rel = WindowRectRelToAbs(window, window->NavRectRel[g.NavLayer]); + if (window->LastFrameActive != g.FrameCount && (window->ScrollTarget.x != FLT_MAX || window->ScrollTarget.y != FLT_MAX)) + { + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + rect_rel.Translate(window->Scroll - next_scroll); + } + ImVec2 pos = ImVec2(rect_rel.Min.x + ImMin(g.Style.FramePadding.x * 4, rect_rel.GetWidth()), rect_rel.Max.y - ImMin(g.Style.FramePadding.y, rect_rel.GetHeight())); + ImGuiViewport* viewport = window->Viewport; + return ImFloor(ImClamp(pos, viewport->Pos, viewport->Pos + viewport->Size)); // ImFloor() is important because non-integer mouse position application in backend might be lossy and result in undesirable non-zero delta. + } +} + +float ImGui::GetNavTweakPressedAmount(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + float repeat_delay, repeat_rate; + GetTypematicRepeatRate(ImGuiInputFlags_RepeatRateNavTweak, &repeat_delay, &repeat_rate); + + ImGuiKey key_less, key_more; + if (g.NavInputSource == ImGuiInputSource_Gamepad) + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadLeft : ImGuiKey_GamepadDpadUp; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_GamepadDpadRight : ImGuiKey_GamepadDpadDown; + } + else + { + key_less = (axis == ImGuiAxis_X) ? ImGuiKey_LeftArrow : ImGuiKey_UpArrow; + key_more = (axis == ImGuiAxis_X) ? ImGuiKey_RightArrow : ImGuiKey_DownArrow; + } + float amount = (float)GetKeyPressedAmount(key_more, repeat_delay, repeat_rate) - (float)GetKeyPressedAmount(key_less, repeat_delay, repeat_rate); + if (amount != 0.0f && IsKeyDown(key_less) && IsKeyDown(key_more)) // Cancel when opposite directions are held, regardless of repeat phase + amount = 0.0f; + return amount; +} + +static void ImGui::NavUpdate() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + io.WantSetMousePos = false; + //if (g.NavScoringDebugCount > 0) IMGUI_DEBUG_LOG_NAV("[nav] NavScoringDebugCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.NavScoringDebugCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); + + // Set input source based on which keys are last pressed (as some features differs when used with Gamepad vs Keyboard) + // FIXME-NAV: Now that keys are separated maybe we can get rid of NavInputSource? + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const ImGuiKey nav_gamepad_keys_to_change_source[] = { ImGuiKey_GamepadFaceRight, ImGuiKey_GamepadFaceLeft, ImGuiKey_GamepadFaceUp, ImGuiKey_GamepadFaceDown, ImGuiKey_GamepadDpadRight, ImGuiKey_GamepadDpadLeft, ImGuiKey_GamepadDpadUp, ImGuiKey_GamepadDpadDown }; + if (nav_gamepad_active) + for (ImGuiKey key : nav_gamepad_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Gamepad; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const ImGuiKey nav_keyboard_keys_to_change_source[] = { ImGuiKey_Space, ImGuiKey_Enter, ImGuiKey_Escape, ImGuiKey_RightArrow, ImGuiKey_LeftArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow }; + if (nav_keyboard_active) + for (ImGuiKey key : nav_keyboard_keys_to_change_source) + if (IsKeyDown(key)) + g.NavInputSource = ImGuiInputSource_Keyboard; + + // Process navigation init request (select first/default focus) + g.NavJustMovedToId = 0; + if (g.NavInitResult.ID != 0) + NavInitRequestApplyResult(); + g.NavInitRequest = false; + g.NavInitRequestFromMove = false; + g.NavInitResult.ID = 0; + + // Process navigation move request + if (g.NavMoveSubmitted) + NavMoveRequestApplyResult(); + g.NavTabbingCounter = 0; + g.NavMoveSubmitted = g.NavMoveScoringItems = false; + + // Schedule mouse position update (will be done at the bottom of this function, after 1) processing all move requests and 2) updating scrolling) + bool set_mouse_pos = false; + if (g.NavMousePosDirty && g.NavIdIsAlive) + if (!g.NavDisableHighlight && g.NavDisableMouseHover && g.NavWindow) + set_mouse_pos = true; + g.NavMousePosDirty = false; + IM_ASSERT(g.NavLayer == ImGuiNavLayer_Main || g.NavLayer == ImGuiNavLayer_Menu); + + // Store our return window (for returning from Menu Layer to Main Layer) and clear it as soon as we step back in our own Layer 0 + if (g.NavWindow) + NavSaveLastChildNavWindowIntoParent(g.NavWindow); + if (g.NavWindow && g.NavWindow->NavLastChildNavWindow != NULL && g.NavLayer == ImGuiNavLayer_Main) + g.NavWindow->NavLastChildNavWindow = NULL; + + // Update CTRL+TAB and Windowing features (hold Square to move/resize/etc.) + NavUpdateWindowing(); + + // Set output flags for user application + io.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs); + io.NavVisible = (io.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL); + + // Process NavCancel input (to close a popup, get back to parent, clear focus) + NavUpdateCancelRequest(); + + // Process manual activation request + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = 0; + g.NavActivateFlags = ImGuiActivateFlags_None; + if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const bool activate_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Space)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadActivate)); + const bool activate_pressed = activate_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Space, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadActivate, false))); + const bool input_down = (nav_keyboard_active && IsKeyDown(ImGuiKey_Enter)) || (nav_gamepad_active && IsKeyDown(ImGuiKey_NavGamepadInput)); + const bool input_pressed = input_down && ((nav_keyboard_active && IsKeyPressed(ImGuiKey_Enter, false)) || (nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadInput, false))); + if (g.ActiveId == 0 && activate_pressed) + { + g.NavActivateId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferTweak; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && input_pressed) + { + g.NavActivateId = g.NavId; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + } + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && (activate_down || input_down)) + g.NavActivateDownId = g.NavId; + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && (activate_pressed || input_pressed)) + g.NavActivatePressedId = g.NavId; + } + if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + g.NavDisableHighlight = true; + if (g.NavActivateId != 0) + IM_ASSERT(g.NavActivateDownId == g.NavActivateId); + + // Process programmatic activation request + // FIXME-NAV: Those should eventually be queued (unlike focus they don't cancel each others) + if (g.NavNextActivateId != 0) + { + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavNextActivateId; + g.NavActivateFlags = g.NavNextActivateFlags; + } + g.NavNextActivateId = 0; + + // Process move requests + NavUpdateCreateMoveRequest(); + if (g.NavMoveDir == ImGuiDir_None) + NavUpdateCreateTabbingRequest(); + NavUpdateAnyRequestFlag(); + g.NavIdIsAlive = false; + + // Scrolling + if (g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.NavWindowingTarget) + { + // *Fallback* manual-scroll with Nav directional keys when window has no navigable item + ImGuiWindow* window = g.NavWindow; + const float scroll_speed = IM_ROUND(window->CalcFontSize() * 100 * io.DeltaTime); // We need round the scrolling speed because sub-pixel scroll isn't reliably supported. + const ImGuiDir move_dir = g.NavMoveDir; + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavWindowHasScrollY && move_dir != ImGuiDir_None) + { + if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) + SetScrollX(window, ImFloor(window->Scroll.x + ((move_dir == ImGuiDir_Left) ? -1.0f : +1.0f) * scroll_speed)); + if (move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) + SetScrollY(window, ImFloor(window->Scroll.y + ((move_dir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); + } + + // *Normal* Manual scroll with LStick + // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. + if (nav_gamepad_active) + { + const ImVec2 scroll_dir = GetKeyMagnitude2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + const float tweak_factor = IsKeyDown(ImGuiKey_NavGamepadTweakSlow) ? 1.0f / 10.0f : IsKeyDown(ImGuiKey_NavGamepadTweakFast) ? 10.0f : 1.0f; + if (scroll_dir.x != 0.0f && window->ScrollbarX) + SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed * tweak_factor)); + if (scroll_dir.y != 0.0f) + SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed * tweak_factor)); + } + } + + // Always prioritize mouse highlight if navigation is disabled + if (!nav_keyboard_active && !nav_gamepad_active) + { + g.NavDisableHighlight = true; + g.NavDisableMouseHover = set_mouse_pos = false; + } + + // Update mouse position if requested + // (This will take into account the possibility that a Scroll was queued in the window to offset our absolute mouse position before scroll has been applied) + if (set_mouse_pos && (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos)) + { + io.MousePos = io.MousePosPrev = NavCalcPreferredRefPos(); + io.WantSetMousePos = true; + //IMGUI_DEBUG_LOG_IO("SetMousePos: (%.1f,%.1f)\n", io.MousePos.x, io.MousePos.y); + } + + // [DEBUG] + g.NavScoringDebugCount = 0; +#if IMGUI_DEBUG_NAV_RECTS + if (ImGuiWindow* debug_window = g.NavWindow) + { + ImDrawList* draw_list = GetForegroundDrawList(debug_window); + int layer = g.NavLayer; /* for (int layer = 0; layer < 2; layer++)*/ { ImRect r = WindowRectRelToAbs(debug_window, debug_window->NavRectRel[layer]); draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 200, 0, 255)); } + //if (1) { ImU32 col = (!debug_window->Hidden) ? IM_COL32(255,0,255,255) : IM_COL32(255,0,0,255); ImVec2 p = NavCalcPreferredRefPos(); char buf[32]; ImFormatString(buf, 32, "%d", g.NavLayer); draw_list->AddCircleFilled(p, 3.0f, col); draw_list->AddText(NULL, 13.0f, p + ImVec2(8,-4), col, buf); } + } +#endif +} + +void ImGui::NavInitRequestApplyResult() +{ + // In very rare cases g.NavWindow may be null (e.g. clearing focus after requesting an init request, which does happen when releasing Alt while clicking on void) + ImGuiContext& g = *GImGui; + if (!g.NavWindow) + return; + + ImGuiNavItemData* result = &g.NavInitResult; + if (g.NavId != result->ID) + { + g.NavJustMovedToId = result->ID; + g.NavJustMovedToFocusScopeId = result->FocusScopeId; + g.NavJustMovedToKeyMods = 0; + } + + // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) + // FIXME-NAV: On _NavFlattened windows, g.NavWindow will only be updated during subsequent frame. Not a problem currently. + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: ApplyResult: NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); + SetNavID(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); + g.NavIdIsAlive = true; // Mark as alive from previous frame as we got a result + if (result->SelectionUserData != ImGuiSelectionUserData_Invalid) + g.NavLastValidSelectionUserData = result->SelectionUserData; + if (g.NavInitRequestFromMove) + NavRestoreHighlightAfterMove(); +} + +// Bias scoring rect ahead of scoring + update preferred pos (if missing) using source position +static void NavBiasScoringRect(ImRect& r, ImVec2& preferred_pos_rel, ImGuiDir move_dir, ImGuiNavMoveFlags move_flags) +{ + // Bias initial rect + ImGuiContext& g = *GImGui; + const ImVec2 rel_to_abs_offset = g.NavWindow->DC.CursorStartPos; + + // Initialize bias on departure if we don't have any. So mouse-click + arrow will record bias. + // - We default to L/U bias, so moving down from a large source item into several columns will land on left-most column. + // - But each successful move sets new bias on one axis, only cleared when using mouse. + if ((move_flags & ImGuiNavMoveFlags_Forwarded) == 0) + { + if (preferred_pos_rel.x == FLT_MAX) + preferred_pos_rel.x = ImMin(r.Min.x + 1.0f, r.Max.x) - rel_to_abs_offset.x; + if (preferred_pos_rel.y == FLT_MAX) + preferred_pos_rel.y = r.GetCenter().y - rel_to_abs_offset.y; + } + + // Apply general bias on the other axis + if ((move_dir == ImGuiDir_Up || move_dir == ImGuiDir_Down) && preferred_pos_rel.x != FLT_MAX) + r.Min.x = r.Max.x = preferred_pos_rel.x + rel_to_abs_offset.x; + else if ((move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) && preferred_pos_rel.y != FLT_MAX) + r.Min.y = r.Max.y = preferred_pos_rel.y + rel_to_abs_offset.y; +} + +void ImGui::NavUpdateCreateMoveRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiWindow* window = g.NavWindow; + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + + if (g.NavMoveForwardToNextFrame && window != NULL) + { + // Forwarding previous request (which has been modified, e.g. wrap around menus rewrite the requests with a starting rectangle at the other side of the window) + // (preserve most state, which were already set by the NavMoveRequestForward() function) + IM_ASSERT(g.NavMoveDir != ImGuiDir_None && g.NavMoveClipDir != ImGuiDir_None); + IM_ASSERT(g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded); + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequestForward %d\n", g.NavMoveDir); + } + else + { + // Initiate directional inputs request + g.NavMoveDir = ImGuiDir_None; + g.NavMoveFlags = ImGuiNavMoveFlags_None; + g.NavMoveScrollFlags = ImGuiScrollFlags_None; + if (window && !g.NavWindowingTarget && !(window->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const ImGuiInputFlags repeat_mode = ImGuiInputFlags_Repeat | (ImGuiInputFlags)ImGuiInputFlags_RepeatRateNavMove; + if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadLeft, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_LeftArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Left; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadRight, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_RightArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Right; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadUp, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_UpArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Up; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && ((nav_gamepad_active && IsKeyPressed(ImGuiKey_GamepadDpadDown, ImGuiKeyOwner_None, repeat_mode)) || (nav_keyboard_active && IsKeyPressed(ImGuiKey_DownArrow, ImGuiKeyOwner_None, repeat_mode)))) { g.NavMoveDir = ImGuiDir_Down; } + } + g.NavMoveClipDir = g.NavMoveDir; + g.NavScoringNoClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + } + + // Update PageUp/PageDown/Home/End scroll + // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? + float scoring_rect_offset_y = 0.0f; + if (window && g.NavMoveDir == ImGuiDir_None && nav_keyboard_active) + scoring_rect_offset_y = NavUpdatePageUpPageDown(); + if (scoring_rect_offset_y != 0.0f) + { + g.NavScoringNoClipRect = window->InnerRect; + g.NavScoringNoClipRect.TranslateY(scoring_rect_offset_y); + } + + // [DEBUG] Always send a request when holding CTRL. Hold CTRL + Arrow change the direction. +#if IMGUI_DEBUG_NAV_SCORING + //if (io.KeyCtrl && IsKeyPressed(ImGuiKey_C)) + // g.NavMoveDirForDebug = (ImGuiDir)((g.NavMoveDirForDebug + 1) & 3); + if (io.KeyCtrl) + { + if (g.NavMoveDir == ImGuiDir_None) + g.NavMoveDir = g.NavMoveDirForDebug; + g.NavMoveClipDir = g.NavMoveDir; + g.NavMoveFlags |= ImGuiNavMoveFlags_DebugNoResult; + } +#endif + + // Submit + g.NavMoveForwardToNextFrame = false; + if (g.NavMoveDir != ImGuiDir_None) + NavMoveRequestSubmit(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); + + // Moving with no reference triggers an init request (will be used as a fallback if the direction fails to find a match) + if (g.NavMoveSubmitted && g.NavId == 0) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", window ? window->Name : "", g.NavLayer); + g.NavInitRequest = g.NavInitRequestFromMove = true; + g.NavInitResult.ID = 0; + g.NavDisableHighlight = false; + } + + // When using gamepad, we project the reference nav bounding box into window visible area. + // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, + // since with gamepad all movements are relative (can't focus a visible object like we can with the mouse). + if (g.NavMoveSubmitted && g.NavInputSource == ImGuiInputSource_Gamepad && g.NavLayer == ImGuiNavLayer_Main && window != NULL)// && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded)) + { + bool clamp_x = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_WrapX)) == 0; + bool clamp_y = (g.NavMoveFlags & (ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapY)) == 0; + ImRect inner_rect_rel = WindowRectAbsToRel(window, ImRect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1))); + + // Take account of changing scroll to handle triggering a new move request on a scrolling frame. (#6171) + // Otherwise 'inner_rect_rel' would be off on the move result frame. + inner_rect_rel.Translate(CalcNextScrollFromScrollTargetAndClamp(window) - window->Scroll); + + if ((clamp_x || clamp_y) && !inner_rect_rel.Contains(window->NavRectRel[g.NavLayer])) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel for gamepad move\n"); + float pad_x = ImMin(inner_rect_rel.GetWidth(), window->CalcFontSize() * 0.5f); + float pad_y = ImMin(inner_rect_rel.GetHeight(), window->CalcFontSize() * 0.5f); // Terrible approximation for the intent of starting navigation from first fully visible item + inner_rect_rel.Min.x = clamp_x ? (inner_rect_rel.Min.x + pad_x) : -FLT_MAX; + inner_rect_rel.Max.x = clamp_x ? (inner_rect_rel.Max.x - pad_x) : +FLT_MAX; + inner_rect_rel.Min.y = clamp_y ? (inner_rect_rel.Min.y + pad_y) : -FLT_MAX; + inner_rect_rel.Max.y = clamp_y ? (inner_rect_rel.Max.y - pad_y) : +FLT_MAX; + window->NavRectRel[g.NavLayer].ClipWithFull(inner_rect_rel); + g.NavId = 0; + } + } + + // For scoring we use a single segment on the left side our current item bounding box (not touching the edge to avoid box overlap with zero-spaced items) + ImRect scoring_rect; + if (window != NULL) + { + ImRect nav_rect_rel = !window->NavRectRel[g.NavLayer].IsInverted() ? window->NavRectRel[g.NavLayer] : ImRect(0, 0, 0, 0); + scoring_rect = WindowRectRelToAbs(window, nav_rect_rel); + scoring_rect.TranslateY(scoring_rect_offset_y); + if (g.NavMoveSubmitted) + NavBiasScoringRect(scoring_rect, window->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer], g.NavMoveDir, g.NavMoveFlags); + IM_ASSERT(!scoring_rect.IsInverted()); // Ensure we have a non-inverted bounding box here will allow us to remove extraneous ImFabs() calls in NavScoreItem(). + //GetForegroundDrawList()->AddRect(scoring_rect.Min, scoring_rect.Max, IM_COL32(255,200,0,255)); // [DEBUG] + //if (!g.NavScoringNoClipRect.IsInverted()) { GetForegroundDrawList()->AddRect(g.NavScoringNoClipRect.Min, g.NavScoringNoClipRect.Max, IM_COL32(255, 200, 0, 255)); } // [DEBUG] + } + g.NavScoringRect = scoring_rect; + g.NavScoringNoClipRect.Add(scoring_rect); +} + +void ImGui::NavUpdateCreateTabbingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + IM_ASSERT(g.NavMoveDir == ImGuiDir_None); + if (window == NULL || g.NavWindowingTarget != NULL || (window->Flags & ImGuiWindowFlags_NoNavInputs)) + return; + + const bool tab_pressed = IsKeyPressed(ImGuiKey_Tab, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat) && !g.IO.KeyCtrl && !g.IO.KeyAlt; + if (!tab_pressed) + return; + + // Initiate tabbing request + // (this is ALWAYS ENABLED, regardless of ImGuiConfigFlags_NavEnableKeyboard flag!) + // See NavProcessItemForTabbingRequest() for a description of the various forward/backward tabbing cases with and without wrapping. + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (nav_keyboard_active) + g.NavTabbingDir = g.IO.KeyShift ? -1 : (g.NavDisableHighlight == true && g.ActiveId == 0) ? 0 : +1; + else + g.NavTabbingDir = g.IO.KeyShift ? -1 : (g.ActiveId == 0) ? 0 : +1; + ImGuiNavMoveFlags move_flags = ImGuiNavMoveFlags_IsTabbing | ImGuiNavMoveFlags_Activate; + ImGuiScrollFlags scroll_flags = window->Appearing ? ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_AlwaysCenterY : ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleEdgeY; + ImGuiDir clip_dir = (g.NavTabbingDir < 0) ? ImGuiDir_Up : ImGuiDir_Down; + NavMoveRequestSubmit(ImGuiDir_None, clip_dir, move_flags, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable. + g.NavTabbingCounter = -1; +} + +// Apply result from previous frame navigation directional move request. Always called from NavUpdate() +void ImGui::NavMoveRequestApplyResult() +{ + ImGuiContext& g = *GImGui; +#if IMGUI_DEBUG_NAV_SCORING + if (g.NavMoveFlags & ImGuiNavMoveFlags_DebugNoResult) // [DEBUG] Scoring all items in NavWindow at all times + return; +#endif + + // Select which result to use + ImGuiNavItemData* result = (g.NavMoveResultLocal.ID != 0) ? &g.NavMoveResultLocal : (g.NavMoveResultOther.ID != 0) ? &g.NavMoveResultOther : NULL; + + // Tabbing forward wrap + if ((g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) && result == NULL) + if ((g.NavTabbingCounter == 1 || g.NavTabbingDir == 0) && g.NavTabbingResultFirst.ID) + result = &g.NavTabbingResultFirst; + + // In a situation when there are no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) + const ImGuiAxis axis = (g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + if (result == NULL) + { + if (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) + g.NavMoveFlags |= ImGuiNavMoveFlags_NoSetNavHighlight; + if (g.NavId != 0 && (g.NavMoveFlags & ImGuiNavMoveFlags_NoSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); + NavClearPreferredPosForAxis(axis); // On a failed move, clear preferred pos for this axis. + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveSubmitted but not led to a result!\n"); + return; + } + + // PageUp/PageDown behavior first jumps to the bottom/top mostly visible item, _otherwise_ use the result from the previous/next page. + if (g.NavMoveFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) + if (g.NavMoveResultLocalVisible.ID != 0 && g.NavMoveResultLocalVisible.ID != g.NavId) + result = &g.NavMoveResultLocalVisible; + + // Maybe entering a flattened child from the outside? In this case solve the tie using the regular scoring rules. + if (result != &g.NavMoveResultOther && g.NavMoveResultOther.ID != 0 && g.NavMoveResultOther.Window->ParentWindow == g.NavWindow) + if ((g.NavMoveResultOther.DistBox < result->DistBox) || (g.NavMoveResultOther.DistBox == result->DistBox && g.NavMoveResultOther.DistCenter < result->DistCenter)) + result = &g.NavMoveResultOther; + IM_ASSERT(g.NavWindow && result->Window); + + // Scroll to keep newly navigated item fully into view. + if (g.NavLayer == ImGuiNavLayer_Main) + { + ImRect rect_abs = WindowRectRelToAbs(result->Window, result->RectRel); + ScrollToRectEx(result->Window, rect_abs, g.NavMoveScrollFlags); + + if (g.NavMoveFlags & ImGuiNavMoveFlags_ScrollToEdgeY) + { + // FIXME: Should remove this? Or make more precise: use ScrollToRectEx() with edge? + float scroll_target = (g.NavMoveDir == ImGuiDir_Up) ? result->Window->ScrollMax.y : 0.0f; + SetScrollY(result->Window, scroll_target); + } + } + + if (g.NavWindow != result->Window) + { + IMGUI_DEBUG_LOG_FOCUS("[focus] NavMoveRequest: SetNavWindow(\"%s\")\n", result->Window->Name); + g.NavWindow = result->Window; + g.NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + } + if (g.ActiveId != result->ID) + ClearActiveID(); + + // Don't set NavJustMovedToId if just landed on the same spot (which may happen with ImGuiNavMoveFlags_AllowCurrentNavId) + // PageUp/PageDown however sets always set NavJustMovedTo (vs Home/End which doesn't) mimicking Windows behavior. + if ((g.NavId != result->ID || (g.NavMoveFlags & ImGuiNavMoveFlags_IsPageMove)) && (g.NavMoveFlags & ImGuiNavMoveFlags_NoSelect) == 0) + { + g.NavJustMovedToId = result->ID; + g.NavJustMovedToFocusScopeId = result->FocusScopeId; + g.NavJustMovedToKeyMods = g.NavMoveKeyMods; + } + + // Apply new NavID/Focus + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); + ImVec2 preferred_scoring_pos_rel = g.NavWindow->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer]; + SetNavID(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); + if (result->SelectionUserData != ImGuiSelectionUserData_Invalid) + g.NavLastValidSelectionUserData = result->SelectionUserData; + + // Restore last preferred position for current axis + // (storing in RootWindowForNav-> as the info is desirable at the beginning of a Move Request. In theory all storage should use RootWindowForNav..) + if ((g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) == 0) + { + preferred_scoring_pos_rel[axis] = result->RectRel.GetCenter()[axis]; + g.NavWindow->RootWindowForNav->NavPreferredScoringPosRel[g.NavLayer] = preferred_scoring_pos_rel; + } + + // Tabbing: Activates Inputable, otherwise only Focus + if ((g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) && (result->InFlags & ImGuiItemFlags_Inputable) == 0) + g.NavMoveFlags &= ~ImGuiNavMoveFlags_Activate; + + // Activate + if (g.NavMoveFlags & ImGuiNavMoveFlags_Activate) + { + g.NavNextActivateId = result->ID; + g.NavNextActivateFlags = ImGuiActivateFlags_None; + if (g.NavMoveFlags & ImGuiNavMoveFlags_IsTabbing) + g.NavNextActivateFlags |= ImGuiActivateFlags_PreferInput | ImGuiActivateFlags_TryToPreserveState; + } + + // Enable nav highlight + if ((g.NavMoveFlags & ImGuiNavMoveFlags_NoSetNavHighlight) == 0) + NavRestoreHighlightAfterMove(); +} + +// Process NavCancel input (to close a popup, get back to parent, clear focus) +// FIXME: In order to support e.g. Escape to clear a selection we'll need: +// - either to store the equivalent of ActiveIdUsingKeyInputMask for a FocusScope and test for it. +// - either to move most/all of those tests to the epilogue/end functions of the scope they are dealing with (e.g. exit child window in EndChild()) or in EndFrame(), to allow an earlier intercept +static void ImGui::NavUpdateCancelRequest() +{ + ImGuiContext& g = *GImGui; + const bool nav_gamepad_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (g.IO.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + if (!(nav_keyboard_active && IsKeyPressed(ImGuiKey_Escape, ImGuiKeyOwner_None)) && !(nav_gamepad_active && IsKeyPressed(ImGuiKey_NavGamepadCancel, ImGuiKeyOwner_None))) + return; + + IMGUI_DEBUG_LOG_NAV("[nav] NavUpdateCancelRequest()\n"); + if (g.ActiveId != 0) + { + ClearActiveID(); + } + else if (g.NavLayer != ImGuiNavLayer_Main) + { + // Leave the "menu" layer + NavRestoreLayer(ImGuiNavLayer_Main); + NavRestoreHighlightAfterMove(); + } + else if (g.NavWindow && g.NavWindow != g.NavWindow->RootWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->ParentWindow) + { + // Exit child window + ImGuiWindow* child_window = g.NavWindow; + ImGuiWindow* parent_window = g.NavWindow->ParentWindow; + IM_ASSERT(child_window->ChildId != 0); + ImRect child_rect = child_window->Rect(); + FocusWindow(parent_window); + SetNavID(child_window->ChildId, ImGuiNavLayer_Main, 0, WindowRectAbsToRel(parent_window, child_rect)); + NavRestoreHighlightAfterMove(); + } + else if (g.OpenPopupStack.Size > 0 && g.OpenPopupStack.back().Window != NULL && !(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) + { + // Close open popup/menu + ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); + } + else + { + // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were + if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) + g.NavWindow->NavLastIds[0] = 0; + g.NavId = 0; + } +} + +// Handle PageUp/PageDown/Home/End keys +// Called from NavUpdateCreateMoveRequest() which will use our output to create a move request +// FIXME-NAV: This doesn't work properly with NavFlattened siblings as we use NavWindow rectangle for reference +// FIXME-NAV: how to get Home/End to aim at the beginning/end of a 2D grid? +static float ImGui::NavUpdatePageUpPageDown() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + if ((window->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL) + return 0.0f; + + const bool page_up_held = IsKeyDown(ImGuiKey_PageUp, ImGuiKeyOwner_None); + const bool page_down_held = IsKeyDown(ImGuiKey_PageDown, ImGuiKeyOwner_None); + const bool home_pressed = IsKeyPressed(ImGuiKey_Home, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + const bool end_pressed = IsKeyPressed(ImGuiKey_End, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat); + if (page_up_held == page_down_held && home_pressed == end_pressed) // Proceed if either (not both) are pressed, otherwise early out + return 0.0f; + + if (g.NavLayer != ImGuiNavLayer_Main) + NavRestoreLayer(ImGuiNavLayer_Main); + + if (window->DC.NavLayersActiveMask == 0x00 && window->DC.NavWindowHasScrollY) + { + // Fallback manual-scroll when window has no navigable item + if (IsKeyPressed(ImGuiKey_PageUp, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); + else if (IsKeyPressed(ImGuiKey_PageDown, ImGuiKeyOwner_None, ImGuiInputFlags_Repeat)) + SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); + else if (home_pressed) + SetScrollY(window, 0.0f); + else if (end_pressed) + SetScrollY(window, window->ScrollMax.y); + } + else + { + ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; + const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); + float nav_scoring_rect_offset_y = 0.0f; + if (IsKeyPressed(ImGuiKey_PageUp, true)) + { + nav_scoring_rect_offset_y = -page_offset_y; + g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet | ImGuiNavMoveFlags_IsPageMove; + } + else if (IsKeyPressed(ImGuiKey_PageDown, true)) + { + nav_scoring_rect_offset_y = +page_offset_y; + g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet | ImGuiNavMoveFlags_IsPageMove; + } + else if (home_pressed) + { + // FIXME-NAV: handling of Home/End is assuming that the top/bottom most item will be visible with Scroll.y == 0/ScrollMax.y + // Scrolling will be handled via the ImGuiNavMoveFlags_ScrollToEdgeY flag, we don't scroll immediately to avoid scrolling happening before nav result. + // Preserve current horizontal position if we have any. + nav_rect_rel.Min.y = nav_rect_rel.Max.y = 0.0f; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Down; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + else if (end_pressed) + { + nav_rect_rel.Min.y = nav_rect_rel.Max.y = window->ContentSize.y; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Up; + g.NavMoveFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdgeY; + // FIXME-NAV: MoveClipDir left to _None, intentional? + } + return nav_scoring_rect_offset_y; + } + return 0.0f; +} + +static void ImGui::NavEndFrame() +{ + ImGuiContext& g = *GImGui; + + // Show CTRL+TAB list window + if (g.NavWindowingTarget != NULL) + NavUpdateWindowingOverlay(); + + // Perform wrap-around in menus + // FIXME-NAV: Wrap may need to apply a weight bias on the other axis. e.g. 4x4 grid with 2 last items missing on last item won't handle LoopY/WrapY correctly. + // FIXME-NAV: Wrap (not Loop) support could be handled by the scoring function and then WrapX would function without an extra frame. + if (g.NavWindow && NavMoveRequestButNoResultYet() && (g.NavMoveFlags & ImGuiNavMoveFlags_WrapMask_) && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + NavUpdateCreateWrappingRequest(); +} + +static void ImGui::NavUpdateCreateWrappingRequest() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.NavWindow; + + bool do_forward = false; + ImRect bb_rel = window->NavRectRel[g.NavLayer]; + ImGuiDir clip_dir = g.NavMoveDir; + + const ImGuiNavMoveFlags move_flags = g.NavMoveFlags; + //const ImGuiAxis move_axis = (g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + if (g.NavMoveDir == ImGuiDir_Left && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = window->ContentSize.x + window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(-bb_rel.GetHeight()); // Previous row + clip_dir = ImGuiDir_Up; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Right && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = -window->WindowPadding.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(+bb_rel.GetHeight()); // Next row + clip_dir = ImGuiDir_Down; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Up && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = window->ContentSize.y + window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(-bb_rel.GetWidth()); // Previous column + clip_dir = ImGuiDir_Left; + } + do_forward = true; + } + if (g.NavMoveDir == ImGuiDir_Down && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = -window->WindowPadding.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(+bb_rel.GetWidth()); // Next column + clip_dir = ImGuiDir_Right; + } + do_forward = true; + } + if (!do_forward) + return; + window->NavRectRel[g.NavLayer] = bb_rel; + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavClearPreferredPosForAxis(ImGuiAxis_Y); + NavMoveRequestForward(g.NavMoveDir, clip_dir, move_flags, g.NavMoveScrollFlags); +} + +static int ImGui::FindWindowFocusIndex(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_UNUSED(g); + int order = window->FocusOrder; + IM_ASSERT(window->RootWindow == window); // No child window (not testing _ChildWindow because of docking) + IM_ASSERT(g.WindowsFocusOrder[order] == window); + return order; +} + +static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N) +{ + ImGuiContext& g = *GImGui; + for (int i = i_start; i >= 0 && i < g.WindowsFocusOrder.Size && i != i_stop; i += dir) + if (ImGui::IsWindowNavFocusable(g.WindowsFocusOrder[i])) + return g.WindowsFocusOrder[i]; + return NULL; +} + +static void NavUpdateWindowingHighlightWindow(int focus_change_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget); + if (g.NavWindowingTarget->Flags & ImGuiWindowFlags_Modal) + return; + + const int i_current = ImGui::FindWindowFocusIndex(g.NavWindowingTarget); + ImGuiWindow* window_target = FindWindowNavFocusable(i_current + focus_change_dir, -INT_MAX, focus_change_dir); + if (!window_target) + window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); + if (window_target) // Don't reset windowing target if there's a single window in the list + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + } + g.NavWindowingToggleLayer = false; +} + +// Windowing management mode +// Keyboard: CTRL+Tab (change focus/move/resize), Alt (toggle menu layer) +// Gamepad: Hold Menu/Square (change focus/move/resize), Tap Menu/Square (toggle menu layer) +static void ImGui::NavUpdateWindowing() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + ImGuiWindow* apply_focus_window = NULL; + bool apply_toggle_layer = false; + + ImGuiWindow* modal_window = GetTopMostPopupModal(); + bool allow_windowing = (modal_window == NULL); // FIXME: This prevent CTRL+TAB from being usable with windows that are inside the Begin-stack of that modal. + if (!allow_windowing) + g.NavWindowingTarget = NULL; + + // Fade out + if (g.NavWindowingTargetAnim && g.NavWindowingTarget == NULL) + { + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha - io.DeltaTime * 10.0f, 0.0f); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + g.NavWindowingTargetAnim = NULL; + } + + // Start CTRL+Tab or Square+L/R window selection + const ImGuiID owner_id = ImHashStr("###NavUpdateWindowing"); + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + const bool keyboard_next_window = allow_windowing && g.ConfigNavWindowingKeyNext && Shortcut(g.ConfigNavWindowingKeyNext, owner_id, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool keyboard_prev_window = allow_windowing && g.ConfigNavWindowingKeyPrev && Shortcut(g.ConfigNavWindowingKeyPrev, owner_id, ImGuiInputFlags_Repeat | ImGuiInputFlags_RouteAlways); + const bool start_windowing_with_gamepad = allow_windowing && nav_gamepad_active && !g.NavWindowingTarget && IsKeyPressed(ImGuiKey_NavGamepadMenu, 0, ImGuiInputFlags_None); + const bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && (keyboard_next_window || keyboard_prev_window); // Note: enabled even without NavEnableKeyboard! + if (start_windowing_with_gamepad || start_windowing_with_keyboard) + if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; + g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; + g.NavWindowingAccumDeltaPos = g.NavWindowingAccumDeltaSize = ImVec2(0.0f, 0.0f); + g.NavWindowingToggleLayer = start_windowing_with_gamepad ? true : false; // Gamepad starts toggling layer + g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_Keyboard : ImGuiInputSource_Gamepad; + + // Register ownership of our mods. Using ImGuiInputFlags_RouteGlobalHigh in the Shortcut() calls instead would probably be correct but may have more side-effects. + if (keyboard_next_window || keyboard_prev_window) + SetKeyOwnersForKeyChord((g.ConfigNavWindowingKeyNext | g.ConfigNavWindowingKeyPrev) & ImGuiMod_Mask_, owner_id); + } + + // Gamepad update + g.NavWindowingTimer += io.DeltaTime; + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Gamepad) + { + // Highlight only appears after a brief time holding the button, so that a fast tap on PadMenu (to toggle NavLayer) doesn't add visual noise + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); + + // Select window to focus + const int focus_change_dir = (int)IsKeyPressed(ImGuiKey_GamepadL1) - (int)IsKeyPressed(ImGuiKey_GamepadR1); + if (focus_change_dir != 0) + { + NavUpdateWindowingHighlightWindow(focus_change_dir); + g.NavWindowingHighlightAlpha = 1.0f; + } + + // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) + if (!IsKeyDown(ImGuiKey_NavGamepadMenu)) + { + g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. + if (g.NavWindowingToggleLayer && g.NavWindow) + apply_toggle_layer = true; + else if (!g.NavWindowingToggleLayer) + apply_focus_window = g.NavWindowingTarget; + g.NavWindowingTarget = NULL; + } + } + + // Keyboard: Focus + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise + ImGuiKeyChord shared_mods = ((g.ConfigNavWindowingKeyNext ? g.ConfigNavWindowingKeyNext : ImGuiMod_Mask_) & (g.ConfigNavWindowingKeyPrev ? g.ConfigNavWindowingKeyPrev : ImGuiMod_Mask_)) & ImGuiMod_Mask_; + IM_ASSERT(shared_mods != 0); // Next/Prev shortcut currently needs a shared modifier to "hold", otherwise Prev actions would keep cycling between two windows. + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f + if (keyboard_next_window || keyboard_prev_window) + NavUpdateWindowingHighlightWindow(keyboard_next_window ? -1 : +1); + else if ((io.KeyMods & shared_mods) != shared_mods) + apply_focus_window = g.NavWindowingTarget; + } + + // Keyboard: Press and Release ALT to toggle menu layer + // - Testing that only Alt is tested prevents Alt+Shift or AltGR from toggling menu layer. + // - AltGR is normally Alt+Ctrl but we can't reliably detect it (not all backends/systems/layout emit it as Alt+Ctrl). But even on keyboards without AltGR we don't want Alt+Ctrl to open menu anyway. + if (nav_keyboard_active && IsKeyPressed(ImGuiMod_Alt, ImGuiKeyOwner_None)) + { + g.NavWindowingToggleLayer = true; + g.NavInputSource = ImGuiInputSource_Keyboard; + } + if (g.NavWindowingToggleLayer && g.NavInputSource == ImGuiInputSource_Keyboard) + { + // We cancel toggling nav layer when any text has been typed (generally while holding Alt). (See #370) + // We cancel toggling nav layer when other modifiers are pressed. (See #4439) + // We cancel toggling nav layer if an owner has claimed the key. + if (io.InputQueueCharacters.Size > 0 || io.KeyCtrl || io.KeyShift || io.KeySuper || TestKeyOwner(ImGuiMod_Alt, ImGuiKeyOwner_None) == false) + g.NavWindowingToggleLayer = false; + + // Apply layer toggle on release + // Important: as before version <18314 we lacked an explicit IO event for focus gain/loss, we also compare mouse validity to detect old backends clearing mouse pos on focus loss. + if (IsKeyReleased(ImGuiMod_Alt) && g.NavWindowingToggleLayer) + if (g.ActiveId == 0 || g.ActiveIdAllowOverlap) + if (IsMousePosValid(&io.MousePos) == IsMousePosValid(&io.MousePosPrev)) + apply_toggle_layer = true; + if (!IsKeyDown(ImGuiMod_Alt)) + g.NavWindowingToggleLayer = false; + } + + // Move window + if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) + { + ImVec2 nav_move_dir; + if (g.NavInputSource == ImGuiInputSource_Keyboard && !io.KeyShift) + nav_move_dir = GetKeyMagnitude2d(ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, ImGuiKey_DownArrow); + if (g.NavInputSource == ImGuiInputSource_Gamepad) + nav_move_dir = GetKeyMagnitude2d(ImGuiKey_GamepadLStickLeft, ImGuiKey_GamepadLStickRight, ImGuiKey_GamepadLStickUp, ImGuiKey_GamepadLStickDown); + if (nav_move_dir.x != 0.0f || nav_move_dir.y != 0.0f) + { + const float NAV_MOVE_SPEED = 800.0f; + const float move_step = NAV_MOVE_SPEED * io.DeltaTime * ImMin(io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + g.NavWindowingAccumDeltaPos += nav_move_dir * move_step; + g.NavDisableMouseHover = true; + ImVec2 accum_floored = ImFloor(g.NavWindowingAccumDeltaPos); + if (accum_floored.x != 0.0f || accum_floored.y != 0.0f) + { + ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindowDockTree; + SetWindowPos(moving_window, moving_window->Pos + accum_floored, ImGuiCond_Always); + g.NavWindowingAccumDeltaPos -= accum_floored; + } + } + } + + // Apply final focus + if (apply_focus_window && (g.NavWindow == NULL || apply_focus_window != g.NavWindow->RootWindow)) + { + // FIXME: Many actions here could be part of a higher-level/reused function. Why aren't they in FocusWindow() + // Investigate for each of them: ClearActiveID(), NavRestoreHighlightAfterMove(), NavRestoreLastChildNavWindow(), ClosePopupsOverWindow(), NavInitWindow() + ImGuiViewport* previous_viewport = g.NavWindow ? g.NavWindow->Viewport : NULL; + ClearActiveID(); + NavRestoreHighlightAfterMove(); + ClosePopupsOverWindow(apply_focus_window, false); + FocusWindow(apply_focus_window, ImGuiFocusRequestFlags_RestoreFocusedChild); + apply_focus_window = g.NavWindow; + if (apply_focus_window->NavLastIds[0] == 0) + NavInitWindow(apply_focus_window, false); + + // If the window has ONLY a menu layer (no main layer), select it directly + // Use NavLayersActiveMaskNext since windows didn't have a chance to be Begin()-ed on this frame, + // so CTRL+Tab where the keys are only held for 1 frame will be able to use correct layers mask since + // the target window as already been previewed once. + // FIXME-NAV: This should be done in NavInit.. or in FocusWindow... However in both of those cases, + // we won't have a guarantee that windows has been visible before and therefore NavLayersActiveMask* + // won't be valid. + if (apply_focus_window->DC.NavLayersActiveMaskNext == (1 << ImGuiNavLayer_Menu)) + g.NavLayer = ImGuiNavLayer_Menu; + + // Request OS level focus + if (apply_focus_window->Viewport != previous_viewport && g.PlatformIO.Platform_SetWindowFocus) + g.PlatformIO.Platform_SetWindowFocus(apply_focus_window->Viewport); + } + if (apply_focus_window) + g.NavWindowingTarget = NULL; + + // Apply menu/layer toggle + if (apply_toggle_layer && g.NavWindow) + { + ClearActiveID(); + + // Move to parent menu if necessary + ImGuiWindow* new_nav_window = g.NavWindow; + while (new_nav_window->ParentWindow + && (new_nav_window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0 + && (new_nav_window->Flags & ImGuiWindowFlags_ChildWindow) != 0 + && (new_nav_window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + new_nav_window = new_nav_window->ParentWindow; + if (new_nav_window != g.NavWindow) + { + ImGuiWindow* old_nav_window = g.NavWindow; + FocusWindow(new_nav_window); + new_nav_window->NavLastChildNavWindow = old_nav_window; + } + + // Toggle layer + const ImGuiNavLayer new_nav_layer = (g.NavWindow->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) ? (ImGuiNavLayer)((int)g.NavLayer ^ 1) : ImGuiNavLayer_Main; + if (new_nav_layer != g.NavLayer) + { + // Reinitialize navigation when entering menu bar with the Alt key (FIXME: could be a properly of the layer?) + const bool preserve_layer_1_nav_id = (new_nav_window->DockNodeAsHost != NULL); + if (new_nav_layer == ImGuiNavLayer_Menu && !preserve_layer_1_nav_id) + g.NavWindow->NavLastIds[new_nav_layer] = 0; + NavRestoreLayer(new_nav_layer); + NavRestoreHighlightAfterMove(); + } + } +} + +// Window has already passed the IsWindowNavFocusable() +static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) +{ + if (window->Flags & ImGuiWindowFlags_Popup) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingPopup); + if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingMainMenuBar); + if (window->DockNodeAsHost) + return "(Dock node)"; // Not normally shown to user. + return ImGui::LocalizeGetMsg(ImGuiLocKey_WindowingUntitled); +} + +// Overlay displayed when using CTRL+TAB. Called by EndFrame(). +void ImGui::NavUpdateWindowingOverlay() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget != NULL); + + if (g.NavWindowingTimer < NAV_WINDOWING_LIST_APPEAR_DELAY) + return; + + if (g.NavWindowingListWindow == NULL) + g.NavWindowingListWindow = FindWindowByName("###NavWindowingList"); + const ImGuiViewport* viewport = /*g.NavWindow ? g.NavWindow->Viewport :*/ GetMainViewport(); + SetNextWindowSizeConstraints(ImVec2(viewport->Size.x * 0.20f, viewport->Size.y * 0.20f), ImVec2(FLT_MAX, FLT_MAX)); + SetNextWindowPos(viewport->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + PushStyleVar(ImGuiStyleVar_WindowPadding, g.Style.WindowPadding * 2.0f); + Begin("###NavWindowingList", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings); + for (int n = g.WindowsFocusOrder.Size - 1; n >= 0; n--) + { + ImGuiWindow* window = g.WindowsFocusOrder[n]; + IM_ASSERT(window != NULL); // Fix static analyzers + if (!IsWindowNavFocusable(window)) + continue; + const char* label = window->Name; + if (label == FindRenderedTextEnd(label)) + label = GetFallbackWindowNameForWindowingList(window); + Selectable(label, g.NavWindowingTarget == window); + } + End(); + PopStyleVar(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DRAG AND DROP +//----------------------------------------------------------------------------- + +bool ImGui::IsDragDropActive() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive; +} + +void ImGui::ClearDragDrop() +{ + ImGuiContext& g = *GImGui; + g.DragDropActive = false; + g.DragDropPayload.Clear(); + g.DragDropAcceptFlags = ImGuiDragDropFlags_None; + g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropAcceptFrameCount = -1; + + g.DragDropPayloadBufHeap.clear(); + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); +} + +// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() +// If the item has an identifier: +// - This assume/require the item to be activated (typically via ButtonBehavior). +// - Therefore if you want to use this with a mouse button other than left mouse button, it is up to the item itself to activate with another button. +// - We then pull and use the mouse button that was used to activate the item and use it to carry on the drag. +// If the item has no identifier: +// - Currently always assume left mouse button. +bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // FIXME-DRAGDROP: While in the common-most "drag from non-zero active id" case we can tell the mouse button, + // in both SourceExtern and id==0 cases we may requires something else (explicit flags or some heuristic). + ImGuiMouseButton mouse_button = ImGuiMouseButton_Left; + + bool source_drag_active = false; + ImGuiID source_id = 0; + ImGuiID source_parent_id = 0; + if (!(flags & ImGuiDragDropFlags_SourceExtern)) + { + source_id = g.LastItemData.ID; + if (source_id != 0) + { + // Common path: items with ID + if (g.ActiveId != source_id) + return false; + if (g.ActiveIdMouseButton != -1) + mouse_button = g.ActiveIdMouseButton; + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + g.ActiveIdAllowOverlap = false; + } + else + { + // Uncommon path: items without ID + if (g.IO.MouseDown[mouse_button] == false || window->SkipItems) + return false; + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) == 0 && (g.ActiveId == 0 || g.ActiveIdWindow != window)) + return false; + + // If you want to use BeginDragDropSource() on an item with no unique identifier for interaction, such as Text() or Image(), you need to: + // A) Read the explanation below, B) Use the ImGuiDragDropFlags_SourceAllowNullID flag. + if (!(flags & ImGuiDragDropFlags_SourceAllowNullID)) + { + IM_ASSERT(0); + return false; + } + + // Magic fallback to handle items with no assigned ID, e.g. Text(), Image() + // We build a throwaway ID based on current ID stack + relative AABB of items in window. + // THE IDENTIFIER WON'T SURVIVE ANY REPOSITIONING/RESIZINGG OF THE WIDGET, so if your widget moves your dragging operation will be canceled. + // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. + // Rely on keeping other window->LastItemXXX fields intact. + source_id = g.LastItemData.ID = window->GetIDFromRectangle(g.LastItemData.Rect); + KeepAliveID(source_id); + bool is_hovered = ItemHoverable(g.LastItemData.Rect, source_id, g.LastItemData.InFlags); + if (is_hovered && g.IO.MouseClicked[mouse_button]) + { + SetActiveID(source_id, window); + FocusWindow(window); + } + if (g.ActiveId == source_id) // Allow the underlying widget to display/return hovered during the mouse release frame, else we would get a flicker. + g.ActiveIdAllowOverlap = is_hovered; + } + if (g.ActiveId != source_id) + return false; + source_parent_id = window->IDStack.back(); + source_drag_active = IsMouseDragging(mouse_button); + + // Disable navigation and key inputs while dragging + cancel existing request if any + SetActiveIdUsingAllKeyboardKeys(); + } + else + { + window = NULL; + source_id = ImHashStr("#SourceExtern"); + source_drag_active = true; + } + + if (source_drag_active) + { + if (!g.DragDropActive) + { + IM_ASSERT(source_id != 0); + ClearDragDrop(); + ImGuiPayload& payload = g.DragDropPayload; + payload.SourceId = source_id; + payload.SourceParentId = source_parent_id; + g.DragDropActive = true; + g.DragDropSourceFlags = flags; + g.DragDropMouseButton = mouse_button; + if (payload.SourceId == g.ActiveId) + g.ActiveIdNoClearOnFocusLoss = true; + } + g.DragDropSourceFrameCount = g.FrameCount; + g.DragDropWithinSource = true; + + if (!(flags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + // Target can request the Source to not display its tooltip (we use a dedicated flag to make this request explicit) + // We unfortunately can't just modify the source flags and skip the call to BeginTooltip, as caller may be emitting contents. + bool ret = BeginTooltip(); + IM_ASSERT(ret); // FIXME-NEWBEGIN: If this ever becomes false, we need to Begin("##Hidden", NULL, ImGuiWindowFlags_NoSavedSettings) + SetWindowHiddendAndSkipItemsForCurrentFrame(). + IM_UNUSED(ret); + + if (g.DragDropAcceptIdPrev && (g.DragDropAcceptFlags & ImGuiDragDropFlags_AcceptNoPreviewTooltip)) + SetWindowHiddendAndSkipItemsForCurrentFrame(g.CurrentWindow); + } + + if (!(flags & ImGuiDragDropFlags_SourceNoDisableHover) && !(flags & ImGuiDragDropFlags_SourceExtern)) + g.LastItemData.StatusFlags &= ~ImGuiItemStatusFlags_HoveredRect; + + return true; + } + return false; +} + +void ImGui::EndDragDropSource() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinSource && "Not after a BeginDragDropSource()?"); + + if (!(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + EndTooltip(); + + // Discard the drag if have not called SetDragDropPayload() + if (g.DragDropPayload.DataFrameCount == -1) + ClearDragDrop(); + g.DragDropWithinSource = false; +} + +// Use 'cond' to choose to submit payload on drag start or every frame +bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + ImGuiPayload& payload = g.DragDropPayload; + if (cond == 0) + cond = ImGuiCond_Always; + + IM_ASSERT(type != NULL); + IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType) && "Payload type can be at most 32 characters long"); + IM_ASSERT((data != NULL && data_size > 0) || (data == NULL && data_size == 0)); + IM_ASSERT(cond == ImGuiCond_Always || cond == ImGuiCond_Once); + IM_ASSERT(payload.SourceId != 0); // Not called between BeginDragDropSource() and EndDragDropSource() + + if (cond == ImGuiCond_Always || payload.DataFrameCount == -1) + { + // Copy payload + ImStrncpy(payload.DataType, type, IM_ARRAYSIZE(payload.DataType)); + g.DragDropPayloadBufHeap.resize(0); + if (data_size > sizeof(g.DragDropPayloadBufLocal)) + { + // Store in heap + g.DragDropPayloadBufHeap.resize((int)data_size); + payload.Data = g.DragDropPayloadBufHeap.Data; + memcpy(payload.Data, data, data_size); + } + else if (data_size > 0) + { + // Store locally + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); + payload.Data = g.DragDropPayloadBufLocal; + memcpy(payload.Data, data, data_size); + } + else + { + payload.Data = NULL; + } + payload.DataSize = (int)data_size; + } + payload.DataFrameCount = g.FrameCount; + + // Return whether the payload has been accepted + return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); +} + +bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindowDockTree != hovered_window->RootWindowDockTree) + return false; + IM_ASSERT(id != 0); + if (!IsMouseHoveringRect(bb.Min, bb.Max) || (id == g.DragDropPayload.SourceId)) + return false; + if (window->SkipItems) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = bb; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +// We don't use BeginDragDropTargetCustom() and duplicate its code because: +// 1) we use LastItemRectHoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. +// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. +// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) +bool ImGui::BeginDragDropTarget() +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (!(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect)) + return false; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindowDockTree != hovered_window->RootWindowDockTree || window->SkipItems) + return false; + + const ImRect& display_rect = (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? g.LastItemData.DisplayRect : g.LastItemData.Rect; + ImGuiID id = g.LastItemData.ID; + if (id == 0) + { + id = window->GetIDFromRectangle(display_rect); + KeepAliveID(id); + } + if (g.DragDropPayload.SourceId == id) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = display_rect; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +bool ImGui::IsDragDropPayloadBeingAccepted() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive && g.DragDropAcceptIdPrev != 0; +} + +const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiPayload& payload = g.DragDropPayload; + IM_ASSERT(g.DragDropActive); // Not called between BeginDragDropTarget() and EndDragDropTarget() ? + IM_ASSERT(payload.DataFrameCount != -1); // Forgot to call EndDragDropTarget() ? + if (type != NULL && !payload.IsDataType(type)) + return NULL; + + // Accept smallest drag target bounding box, this allows us to nest drag targets conveniently without ordering constraints. + // NB: We currently accept NULL id as target. However, overlapping targets requires a unique ID to function! + const bool was_accepted_previously = (g.DragDropAcceptIdPrev == g.DragDropTargetId); + ImRect r = g.DragDropTargetRect; + float r_surface = r.GetWidth() * r.GetHeight(); + if (r_surface > g.DragDropAcceptIdCurrRectSurface) + return NULL; + + g.DragDropAcceptFlags = flags; + g.DragDropAcceptIdCurr = g.DragDropTargetId; + g.DragDropAcceptIdCurrRectSurface = r_surface; + //IMGUI_DEBUG_LOG("AcceptDragDropPayload(): %08X: accept\n", g.DragDropTargetId); + + // Render default drop visuals + payload.Preview = was_accepted_previously; + flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that live for 1 frame) + if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) + window->DrawList->AddRect(r.Min - ImVec2(3.5f,3.5f), r.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); + + g.DragDropAcceptFrameCount = g.FrameCount; + payload.Delivery = was_accepted_previously && !IsMouseDown(g.DragDropMouseButton); // For extern drag sources affecting OS window focus, it's easier to just test !IsMouseDown() instead of IsMouseReleased() + if (!payload.Delivery && !(flags & ImGuiDragDropFlags_AcceptBeforeDelivery)) + return NULL; + + //IMGUI_DEBUG_LOG("AcceptDragDropPayload(): %08X: return payload\n", g.DragDropTargetId); + return &payload; +} + +// FIXME-DRAGDROP: Settle on a proper default visuals for drop target. +void ImGui::RenderDragDropTargetRect(const ImRect& bb) +{ + GetWindowDrawList()->AddRect(bb.Min - ImVec2(3.5f, 3.5f), bb.Max + ImVec2(3.5f, 3.5f), GetColorU32(ImGuiCol_DragDropTarget), 0.0f, 0, 2.0f); +} + +const ImGuiPayload* ImGui::GetDragDropPayload() +{ + ImGuiContext& g = *GImGui; + return (g.DragDropActive && g.DragDropPayload.DataFrameCount != -1) ? &g.DragDropPayload : NULL; +} + +void ImGui::EndDragDropTarget() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinTarget); + g.DragDropWithinTarget = false; + + // Clear drag and drop state payload right after delivery + if (g.DragDropPayload.Delivery) + ClearDragDrop(); +} + +//----------------------------------------------------------------------------- +// [SECTION] LOGGING/CAPTURING +//----------------------------------------------------------------------------- +// All text output from the interface can be captured into tty/file/clipboard. +// By default, tree nodes are automatically opened during logging. +//----------------------------------------------------------------------------- + +// Pass text data straight to log (without being displayed) +static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) +{ + if (g.LogFile) + { + g.LogBuffer.Buf.resize(0); + g.LogBuffer.appendfv(fmt, args); + ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); + } + else + { + g.LogBuffer.appendfv(fmt, args); + } +} + +void ImGui::LogText(const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + va_list args; + va_start(args, fmt); + LogTextV(g, fmt, args); + va_end(args); +} + +void ImGui::LogTextV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogTextV(g, fmt, args); +} + +// Internal version that takes a position to decide on newline placement and pad items according to their depth. +// We split text into individual lines to add current tree level padding +// FIXME: This code is a little complicated perhaps, considering simplifying the whole system. +void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const char* prefix = g.LogNextPrefix; + const char* suffix = g.LogNextSuffix; + g.LogNextPrefix = g.LogNextSuffix = NULL; + + if (!text_end) + text_end = FindRenderedTextEnd(text, text_end); + + const bool log_new_line = ref_pos && (ref_pos->y > g.LogLinePosY + g.Style.FramePadding.y + 1); + if (ref_pos) + g.LogLinePosY = ref_pos->y; + if (log_new_line) + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + + if (prefix) + LogRenderedText(ref_pos, prefix, prefix + strlen(prefix)); // Calculate end ourself to ensure "##" are included here. + + // Re-adjust padding if we have popped out of our starting depth + if (g.LogDepthRef > window->DC.TreeDepth) + g.LogDepthRef = window->DC.TreeDepth; + const int tree_depth = (window->DC.TreeDepth - g.LogDepthRef); + + const char* text_remaining = text; + for (;;) + { + // Split the string. Each new line (after a '\n') is followed by indentation corresponding to the current depth of our log entry. + // We don't add a trailing \n yet to allow a subsequent item on the same line to be captured. + const char* line_start = text_remaining; + const char* line_end = ImStreolRange(line_start, text_end); + const bool is_last_line = (line_end == text_end); + if (line_start != line_end || !is_last_line) + { + const int line_length = (int)(line_end - line_start); + const int indentation = g.LogLineFirstItem ? tree_depth * 4 : 1; + LogText("%*s%.*s", indentation, "", line_length, line_start); + g.LogLineFirstItem = false; + if (*line_end == '\n') + { + LogText(IM_NEWLINE); + g.LogLineFirstItem = true; + } + } + if (is_last_line) + break; + text_remaining = line_end + 1; + } + + if (suffix) + LogRenderedText(ref_pos, suffix, suffix + strlen(suffix)); +} + +// Start logging/capturing text output +void ImGui::LogBegin(ImGuiLogType type, int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.LogEnabled == false); + IM_ASSERT(g.LogFile == NULL); + IM_ASSERT(g.LogBuffer.empty()); + g.LogEnabled = true; + g.LogType = type; + g.LogNextPrefix = g.LogNextSuffix = NULL; + g.LogDepthRef = window->DC.TreeDepth; + g.LogDepthToExpand = ((auto_open_depth >= 0) ? auto_open_depth : g.LogDepthToExpandDefault); + g.LogLinePosY = FLT_MAX; + g.LogLineFirstItem = true; +} + +// Important: doesn't copy underlying data, use carefully (prefix/suffix must be in scope at the time of the next LogRenderedText) +void ImGui::LogSetNextTextDecoration(const char* prefix, const char* suffix) +{ + ImGuiContext& g = *GImGui; + g.LogNextPrefix = prefix; + g.LogNextSuffix = suffix; +} + +void ImGui::LogToTTY(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + IM_UNUSED(auto_open_depth); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + LogBegin(ImGuiLogType_TTY, auto_open_depth); + g.LogFile = stdout; +#endif +} + +// Start logging/capturing text output to given file +void ImGui::LogToFile(int auto_open_depth, const char* filename) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + + // FIXME: We could probably open the file in text mode "at", however note that clipboard/buffer logging will still + // be subject to outputting OS-incompatible carriage return if within strings the user doesn't use IM_NEWLINE. + // By opening the file in binary mode "ab" we have consistent output everywhere. + if (!filename) + filename = g.IO.LogFilename; + if (!filename || !filename[0]) + return; + ImFileHandle f = ImFileOpen(filename, "ab"); + if (!f) + { + IM_ASSERT(0); + return; + } + + LogBegin(ImGuiLogType_File, auto_open_depth); + g.LogFile = f; +} + +// Start logging/capturing text output to clipboard +void ImGui::LogToClipboard(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Clipboard, auto_open_depth); +} + +void ImGui::LogToBuffer(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Buffer, auto_open_depth); +} + +void ImGui::LogFinish() +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogText(IM_NEWLINE); + switch (g.LogType) + { + case ImGuiLogType_TTY: +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + fflush(g.LogFile); +#endif + break; + case ImGuiLogType_File: + ImFileClose(g.LogFile); + break; + case ImGuiLogType_Buffer: + break; + case ImGuiLogType_Clipboard: + if (!g.LogBuffer.empty()) + SetClipboardText(g.LogBuffer.begin()); + break; + case ImGuiLogType_None: + IM_ASSERT(0); + break; + } + + g.LogEnabled = false; + g.LogType = ImGuiLogType_None; + g.LogFile = NULL; + g.LogBuffer.clear(); +} + +// Helper to display logging buttons +// FIXME-OBSOLETE: We should probably obsolete this and let the user have their own helper (this is one of the oldest function alive!) +void ImGui::LogButtons() +{ + ImGuiContext& g = *GImGui; + + PushID("LogButtons"); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + const bool log_to_tty = Button("Log To TTY"); SameLine(); +#else + const bool log_to_tty = false; +#endif + const bool log_to_file = Button("Log To File"); SameLine(); + const bool log_to_clipboard = Button("Log To Clipboard"); SameLine(); + PushTabStop(false); + SetNextItemWidth(80.0f); + SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL); + PopTabStop(); + PopID(); + + // Start logging at the end of the function so that the buttons don't appear in the log + if (log_to_tty) + LogToTTY(); + if (log_to_file) + LogToFile(); + if (log_to_clipboard) + LogToClipboard(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] SETTINGS +//----------------------------------------------------------------------------- +// - UpdateSettings() [Internal] +// - MarkIniSettingsDirty() [Internal] +// - FindSettingsHandler() [Internal] +// - ClearIniSettings() [Internal] +// - LoadIniSettingsFromDisk() +// - LoadIniSettingsFromMemory() +// - SaveIniSettingsToDisk() +// - SaveIniSettingsToMemory() +//----------------------------------------------------------------------------- +// - CreateNewWindowSettings() [Internal] +// - FindWindowSettingsByID() [Internal] +// - FindWindowSettingsByWindow() [Internal] +// - ClearWindowSettings() [Internal] +// - WindowSettingsHandler_***() [Internal] +//----------------------------------------------------------------------------- + +// Called by NewFrame() +void ImGui::UpdateSettings() +{ + // Load settings on first frame (if not explicitly loaded manually before) + ImGuiContext& g = *GImGui; + if (!g.SettingsLoaded) + { + IM_ASSERT(g.SettingsWindows.empty()); + if (g.IO.IniFilename) + LoadIniSettingsFromDisk(g.IO.IniFilename); + g.SettingsLoaded = true; + } + + // Save settings (with a delay after the last modification, so we don't spam disk too much) + if (g.SettingsDirtyTimer > 0.0f) + { + g.SettingsDirtyTimer -= g.IO.DeltaTime; + if (g.SettingsDirtyTimer <= 0.0f) + { + if (g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + else + g.IO.WantSaveIniSettings = true; // Let user know they can call SaveIniSettingsToMemory(). user will need to clear io.WantSaveIniSettings themselves. + g.SettingsDirtyTimer = 0.0f; + } + } +} + +void ImGui::MarkIniSettingsDirty() +{ + ImGuiContext& g = *GImGui; + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +void ImGui::MarkIniSettingsDirty(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings)) + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +void ImGui::AddSettingsHandler(const ImGuiSettingsHandler* handler) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(FindSettingsHandler(handler->TypeName) == NULL); + g.SettingsHandlers.push_back(*handler); +} + +void ImGui::RemoveSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + if (ImGuiSettingsHandler* handler = FindSettingsHandler(type_name)) + g.SettingsHandlers.erase(handler); +} + +ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + const ImGuiID type_hash = ImHashStr(type_name); + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.TypeHash == type_hash) + return &handler; + return NULL; +} + +// Clear all settings (windows, tables, docking etc.) +void ImGui::ClearIniSettings() +{ + ImGuiContext& g = *GImGui; + g.SettingsIniData.clear(); + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.ClearAllFn != NULL) + handler.ClearAllFn(&g, &handler); +} + +void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) +{ + size_t file_data_size = 0; + char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); + if (!file_data) + return; + if (file_data_size > 0) + LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); + IM_FREE(file_data); +} + +// Zero-tolerance, no error reporting, cheap .ini parsing +// Set ini_size==0 to let us use strlen(ini_data). Do not call this function with a 0 if your buffer is actually empty! +void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + //IM_ASSERT(!g.WithinFrameScope && "Cannot be called between NewFrame() and EndFrame()"); + //IM_ASSERT(g.SettingsLoaded == false && g.FrameCount == 0); + + // For user convenience, we allow passing a non zero-terminated string (hence the ini_size parameter). + // For our convenience and to make the code simpler, we'll also write zero-terminators within the buffer. So let's create a writable copy.. + if (ini_size == 0) + ini_size = strlen(ini_data); + g.SettingsIniData.Buf.resize((int)ini_size + 1); + char* const buf = g.SettingsIniData.Buf.Data; + char* const buf_end = buf + ini_size; + memcpy(buf, ini_data, ini_size); + buf_end[0] = 0; + + // Call pre-read handlers + // Some types will clear their data (e.g. dock information) some types will allow merge/override (window) + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.ReadInitFn != NULL) + handler.ReadInitFn(&g, &handler); + + void* entry_data = NULL; + ImGuiSettingsHandler* entry_handler = NULL; + + char* line_end = NULL; + for (char* line = buf; line < buf_end; line = line_end + 1) + { + // Skip new lines markers, then find end of the line + while (*line == '\n' || *line == '\r') + line++; + line_end = line; + while (line_end < buf_end && *line_end != '\n' && *line_end != '\r') + line_end++; + line_end[0] = 0; + if (line[0] == ';') + continue; + if (line[0] == '[' && line_end > line && line_end[-1] == ']') + { + // Parse "[Type][Name]". Note that 'Name' can itself contains [] characters, which is acceptable with the current format and parsing code. + line_end[-1] = 0; + const char* name_end = line_end - 1; + const char* type_start = line + 1; + char* type_end = (char*)(void*)ImStrchrRange(type_start, name_end, ']'); + const char* name_start = type_end ? ImStrchrRange(type_end + 1, name_end, '[') : NULL; + if (!type_end || !name_start) + continue; + *type_end = 0; // Overwrite first ']' + name_start++; // Skip second '[' + entry_handler = FindSettingsHandler(type_start); + entry_data = entry_handler ? entry_handler->ReadOpenFn(&g, entry_handler, name_start) : NULL; + } + else if (entry_handler != NULL && entry_data != NULL) + { + // Let type handler parse the line + entry_handler->ReadLineFn(&g, entry_handler, entry_data, line); + } + } + g.SettingsLoaded = true; + + // [DEBUG] Restore untouched copy so it can be browsed in Metrics (not strictly necessary) + memcpy(buf, ini_data, ini_size); + + // Call post-read handlers + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + if (handler.ApplyAllFn != NULL) + handler.ApplyAllFn(&g, &handler); +} + +void ImGui::SaveIniSettingsToDisk(const char* ini_filename) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + if (!ini_filename) + return; + + size_t ini_data_size = 0; + const char* ini_data = SaveIniSettingsToMemory(&ini_data_size); + ImFileHandle f = ImFileOpen(ini_filename, "wt"); + if (!f) + return; + ImFileWrite(ini_data, sizeof(char), ini_data_size, f); + ImFileClose(f); +} + +// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer +const char* ImGui::SaveIniSettingsToMemory(size_t* out_size) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + g.SettingsIniData.Buf.resize(0); + g.SettingsIniData.Buf.push_back(0); + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + handler.WriteAllFn(&g, &handler, &g.SettingsIniData); + if (out_size) + *out_size = (size_t)g.SettingsIniData.size(); + return g.SettingsIniData.c_str(); +} + +ImGuiWindowSettings* ImGui::CreateNewWindowSettings(const char* name) +{ + ImGuiContext& g = *GImGui; + + if (g.IO.ConfigDebugIniSettings == false) + { + // Skip to the "###" marker if any. We don't skip past to match the behavior of GetID() + // Preserve the full string when ConfigDebugVerboseIniSettings is set to make .ini inspection easier. + if (const char* p = strstr(name, "###")) + name = p; + } + const size_t name_len = strlen(name); + + // Allocate chunk + const size_t chunk_size = sizeof(ImGuiWindowSettings) + name_len + 1; + ImGuiWindowSettings* settings = g.SettingsWindows.alloc_chunk(chunk_size); + IM_PLACEMENT_NEW(settings) ImGuiWindowSettings(); + settings->ID = ImHashStr(name, name_len); + memcpy(settings->GetName(), name, name_len + 1); // Store with zero terminator + + return settings; +} + +// We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names. +// This is called once per window .ini entry + once per newly instantiated window. +ImGuiWindowSettings* ImGui::FindWindowSettingsByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->ID == id && !settings->WantDelete) + return settings; + return NULL; +} + +// This is faster if you are holding on a Window already as we don't need to perform a search. +ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (window->SettingsOffset != -1) + return g.SettingsWindows.ptr_from_offset(window->SettingsOffset); + return FindWindowSettingsByID(window->ID); +} + +// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. +void ImGui::ClearWindowSettings(const char* name) +{ + //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = FindWindowByName(name); + if (window != NULL) + { + window->Flags |= ImGuiWindowFlags_NoSavedSettings; + InitOrLoadWindowSettings(window, NULL); + if (window->DockId != 0) + DockContextProcessUndockWindow(&g, window, true); + } + if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name))) + settings->WantDelete = true; +} + +static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (ImGuiWindow* window : g.Windows) + window->SettingsOffset = -1; + g.SettingsWindows.clear(); +} + +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiID id = ImHashStr(name); + ImGuiWindowSettings* settings = ImGui::FindWindowSettingsByID(id); + if (settings) + *settings = ImGuiWindowSettings(); // Clear existing if recycling previous entry + else + settings = ImGui::CreateNewWindowSettings(name); + settings->ID = id; + settings->WantApply = true; + return (void*)settings; +} + +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry; + int x, y; + int i; + ImU32 u1; + if (sscanf(line, "Pos=%i,%i", &x, &y) == 2) { settings->Pos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Size=%i,%i", &x, &y) == 2) { settings->Size = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "ViewportId=0x%08X", &u1) == 1) { settings->ViewportId = u1; } + else if (sscanf(line, "ViewportPos=%i,%i", &x, &y) == 2){ settings->ViewportPos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Collapsed=%d", &i) == 1) { settings->Collapsed = (i != 0); } + else if (sscanf(line, "DockId=0x%X,%d", &u1, &i) == 2) { settings->DockId = u1; settings->DockOrder = (short)i; } + else if (sscanf(line, "DockId=0x%X", &u1) == 1) { settings->DockId = u1; settings->DockOrder = -1; } + else if (sscanf(line, "ClassId=0x%X", &u1) == 1) { settings->ClassId = u1; } +} + +// Apply to existing windows (if any) +static void WindowSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->WantApply) + { + if (ImGuiWindow* window = ImGui::FindWindowByID(settings->ID)) + ApplyWindowSettings(window, settings); + settings->WantApply = false; + } +} + +static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + // Gather data from windows that were active during this session + // (if a window wasn't opened in this session we preserve its settings) + ImGuiContext& g = *ctx; + for (ImGuiWindow* window : g.Windows) + { + if (window->Flags & ImGuiWindowFlags_NoSavedSettings) + continue; + + ImGuiWindowSettings* settings = ImGui::FindWindowSettingsByWindow(window); + if (!settings) + { + settings = ImGui::CreateNewWindowSettings(window->Name); + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + } + IM_ASSERT(settings->ID == window->ID); + settings->Pos = ImVec2ih(window->Pos - window->ViewportPos); + settings->Size = ImVec2ih(window->SizeFull); + settings->ViewportId = window->ViewportId; + settings->ViewportPos = ImVec2ih(window->ViewportPos); + IM_ASSERT(window->DockNode == NULL || window->DockNode->ID == window->DockId); + settings->DockId = window->DockId; + settings->ClassId = window->WindowClass.ClassId; + settings->DockOrder = window->DockOrder; + settings->Collapsed = window->Collapsed; + settings->WantDelete = false; + } + + // Write to text buffer + buf->reserve(buf->size() + g.SettingsWindows.size() * 6); // ballpark reserve + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + if (settings->WantDelete) + continue; + const char* settings_name = settings->GetName(); + buf->appendf("[%s][%s]\n", handler->TypeName, settings_name); + if (settings->ViewportId != 0 && settings->ViewportId != ImGui::IMGUI_VIEWPORT_DEFAULT_ID) + { + buf->appendf("ViewportPos=%d,%d\n", settings->ViewportPos.x, settings->ViewportPos.y); + buf->appendf("ViewportId=0x%08X\n", settings->ViewportId); + } + if (settings->Pos.x != 0 || settings->Pos.y != 0 || settings->ViewportId == ImGui::IMGUI_VIEWPORT_DEFAULT_ID) + buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y); + if (settings->Size.x != 0 || settings->Size.y != 0) + buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y); + buf->appendf("Collapsed=%d\n", settings->Collapsed); + if (settings->DockId != 0) + { + //buf->appendf("TabId=0x%08X\n", ImHashStr("#TAB", 4, settings->ID)); // window->TabId: this is not read back but writing it makes "debugging" the .ini data easier. + if (settings->DockOrder == -1) + buf->appendf("DockId=0x%08X\n", settings->DockId); + else + buf->appendf("DockId=0x%08X,%d\n", settings->DockId, settings->DockOrder); + if (settings->ClassId != 0) + buf->appendf("ClassId=0x%08X\n", settings->ClassId); + } + buf->append("\n"); + } +} + + +//----------------------------------------------------------------------------- +// [SECTION] LOCALIZATION +//----------------------------------------------------------------------------- + +void ImGui::LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count) +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < count; n++) + g.LocalizationTable[entries[n].Key] = entries[n].Text; +} + + +//----------------------------------------------------------------------------- +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +//----------------------------------------------------------------------------- +// - GetMainViewport() +// - FindViewportByID() +// - FindViewportByPlatformHandle() +// - SetCurrentViewport() [Internal] +// - SetWindowViewport() [Internal] +// - GetWindowAlwaysWantOwnViewport() [Internal] +// - UpdateTryMergeWindowIntoHostViewport() [Internal] +// - UpdateTryMergeWindowIntoHostViewports() [Internal] +// - TranslateWindowsInViewport() [Internal] +// - ScaleWindowsInViewport() [Internal] +// - FindHoveredViewportFromPlatformWindowStack() [Internal] +// - UpdateViewportsNewFrame() [Internal] +// - UpdateViewportsEndFrame() [Internal] +// - AddUpdateViewport() [Internal] +// - WindowSelectViewport() [Internal] +// - WindowSyncOwnedViewport() [Internal] +// - UpdatePlatformWindows() +// - RenderPlatformWindowsDefault() +// - FindPlatformMonitorForPos() [Internal] +// - FindPlatformMonitorForRect() [Internal] +// - UpdateViewportPlatformMonitor() [Internal] +// - DestroyPlatformWindow() [Internal] +// - DestroyPlatformWindows() +//----------------------------------------------------------------------------- + +ImGuiViewport* ImGui::GetMainViewport() +{ + ImGuiContext& g = *GImGui; + return g.Viewports[0]; +} + +// FIXME: This leaks access to viewports not listed in PlatformIO.Viewports[]. Problematic? (#4236) +ImGuiViewport* ImGui::FindViewportByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (ImGuiViewportP* viewport : g.Viewports) + if (viewport->ID == id) + return viewport; + return NULL; +} + +ImGuiViewport* ImGui::FindViewportByPlatformHandle(void* platform_handle) +{ + ImGuiContext& g = *GImGui; + for (ImGuiViewportP* viewport : g.Viewports) + if (viewport->PlatformHandle == platform_handle) + return viewport; + return NULL; +} + +void ImGui::SetCurrentViewport(ImGuiWindow* current_window, ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + (void)current_window; + + if (viewport) + viewport->LastFrameActive = g.FrameCount; + if (g.CurrentViewport == viewport) + return; + g.CurrentDpiScale = viewport ? viewport->DpiScale : 1.0f; + g.CurrentViewport = viewport; + //IMGUI_DEBUG_LOG_VIEWPORT("[viewport] SetCurrentViewport changed '%s' 0x%08X\n", current_window ? current_window->Name : NULL, viewport ? viewport->ID : 0); + + // Notify platform layer of viewport changes + // FIXME-DPI: This is only currently used for experimenting with handling of multiple DPI + if (g.CurrentViewport && g.PlatformIO.Platform_OnChangedViewport) + g.PlatformIO.Platform_OnChangedViewport(g.CurrentViewport); +} + +void ImGui::SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + // Abandon viewport + if (window->ViewportOwned && window->Viewport->Window == window) + window->Viewport->Size = ImVec2(0.0f, 0.0f); + + window->Viewport = viewport; + window->ViewportId = viewport->ID; + window->ViewportOwned = (viewport->Window == window); +} + +static bool ImGui::GetWindowAlwaysWantOwnViewport(ImGuiWindow* window) +{ + // Tooltips and menus are not automatically forced into their own viewport when the NoMerge flag is set, however the multiplication of viewports makes them more likely to protrude and create their own. + ImGuiContext& g = *GImGui; + if (g.IO.ConfigViewportsNoAutoMerge || (window->WindowClass.ViewportFlagsOverrideSet & ImGuiViewportFlags_NoAutoMerge)) + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + if (!window->DockIsActive) + if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip)) == 0) + if ((window->Flags & ImGuiWindowFlags_Popup) == 0 || (window->Flags & ImGuiWindowFlags_Modal) != 0) + return true; + return false; +} + +static bool ImGui::UpdateTryMergeWindowIntoHostViewport(ImGuiWindow* window, ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + if (window->Viewport == viewport) + return false; + if ((viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows) == 0) + return false; + if ((viewport->Flags & ImGuiViewportFlags_IsMinimized) != 0) + return false; + if (!viewport->GetMainRect().Contains(window->Rect())) + return false; + if (GetWindowAlwaysWantOwnViewport(window)) + return false; + + // FIXME: Can't use g.WindowsFocusOrder[] for root windows only as we care about Z order. If we maintained a DisplayOrder along with FocusOrder we could.. + for (ImGuiWindow* window_behind : g.Windows) + { + if (window_behind == window) + break; + if (window_behind->WasActive && window_behind->ViewportOwned && !(window_behind->Flags & ImGuiWindowFlags_ChildWindow)) + if (window_behind->Viewport->GetMainRect().Overlaps(window->Rect())) + return false; + } + + // Move to the existing viewport, Move child/hosted windows as well (FIXME-OPT: iterate child) + ImGuiViewportP* old_viewport = window->Viewport; + if (window->ViewportOwned) + for (int n = 0; n < g.Windows.Size; n++) + if (g.Windows[n]->Viewport == old_viewport) + SetWindowViewport(g.Windows[n], viewport); + SetWindowViewport(window, viewport); + BringWindowToDisplayFront(window); + + return true; +} + +// FIXME: handle 0 to N host viewports +static bool ImGui::UpdateTryMergeWindowIntoHostViewports(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + return UpdateTryMergeWindowIntoHostViewport(window, g.Viewports[0]); +} + +// Translate Dear ImGui windows when a Host Viewport has been moved +// (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!) +void ImGui::TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(viewport->Window == NULL && (viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows)); + + // 1) We test if ImGuiConfigFlags_ViewportsEnable was just toggled, which allows us to conveniently + // translate imgui windows from OS-window-local to absolute coordinates or vice-versa. + // 2) If it's not going to fit into the new size, keep it at same absolute position. + // One problem with this is that most Win32 applications doesn't update their render while dragging, + // and so the window will appear to teleport when releasing the mouse. + const bool translate_all_windows = (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) != (g.ConfigFlagsLastFrame & ImGuiConfigFlags_ViewportsEnable); + ImRect test_still_fit_rect(old_pos, old_pos + viewport->Size); + ImVec2 delta_pos = new_pos - old_pos; + for (ImGuiWindow* window : g.Windows) // FIXME-OPT + if (translate_all_windows || (window->Viewport == viewport && test_still_fit_rect.Contains(window->Rect()))) + TranslateWindow(window, delta_pos); +} + +// Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!) +void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale) +{ + ImGuiContext& g = *GImGui; + if (viewport->Window) + { + ScaleWindow(viewport->Window, scale); + } + else + { + for (ImGuiWindow* window : g.Windows) + if (window->Viewport == viewport) + ScaleWindow(window, scale); + } +} + +// If the backend doesn't set MouseLastHoveredViewport or doesn't honor ImGuiViewportFlags_NoInputs, we do a search ourselves. +// A) It won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. +// B) It requires Platform_GetWindowFocus to be implemented by backend. +ImGuiViewportP* ImGui::FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* best_candidate = NULL; + for (ImGuiViewportP* viewport : g.Viewports) + if (!(viewport->Flags & (ImGuiViewportFlags_NoInputs | ImGuiViewportFlags_IsMinimized)) && viewport->GetMainRect().Contains(mouse_platform_pos)) + if (best_candidate == NULL || best_candidate->LastFocusedStampCount < viewport->LastFocusedStampCount) + best_candidate = viewport; + return best_candidate; +} + +// Update viewports and monitor infos +// Note that this is running even if 'ImGuiConfigFlags_ViewportsEnable' is not set, in order to clear unused viewports (if any) and update monitor info. +static void ImGui::UpdateViewportsNewFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.PlatformIO.Viewports.Size <= g.Viewports.Size); + + // Update Minimized status (we need it first in order to decide if we'll apply Pos/Size of the main viewport) + // Update Focused status + const bool viewports_enabled = (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) != 0; + if (viewports_enabled) + { + ImGuiViewportP* focused_viewport = NULL; + for (ImGuiViewportP* viewport : g.Viewports) + { + const bool platform_funcs_available = viewport->PlatformWindowCreated; + if (g.PlatformIO.Platform_GetWindowMinimized && platform_funcs_available) + { + bool is_minimized = g.PlatformIO.Platform_GetWindowMinimized(viewport); + if (is_minimized) + viewport->Flags |= ImGuiViewportFlags_IsMinimized; + else + viewport->Flags &= ~ImGuiViewportFlags_IsMinimized; + } + + // Update our implicit z-order knowledge of platform windows, which is used when the backend cannot provide io.MouseHoveredViewport. + // When setting Platform_GetWindowFocus, it is expected that the platform backend can handle calls without crashing if it doesn't have data stored. + if (g.PlatformIO.Platform_GetWindowFocus && platform_funcs_available) + { + bool is_focused = g.PlatformIO.Platform_GetWindowFocus(viewport); + if (is_focused) + viewport->Flags |= ImGuiViewportFlags_IsFocused; + else + viewport->Flags &= ~ImGuiViewportFlags_IsFocused; + if (is_focused) + focused_viewport = viewport; + } + } + + // Focused viewport has changed? + if (focused_viewport && g.PlatformLastFocusedViewportId != focused_viewport->ID) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Focused viewport changed %08X -> %08X, attempting to apply our focus.\n", g.PlatformLastFocusedViewportId, focused_viewport->ID); + const ImGuiViewport* prev_focused_viewport = FindViewportByID(g.PlatformLastFocusedViewportId); + const bool prev_focused_has_been_destroyed = (prev_focused_viewport == NULL) || (prev_focused_viewport->PlatformWindowCreated == false); + + // Store a tag so we can infer z-order easily from all our windows + // We compare PlatformLastFocusedViewportId so newly created viewports with _NoFocusOnAppearing flag + // will keep the front most stamp instead of losing it back to their parent viewport. + if (focused_viewport->LastFocusedStampCount != g.ViewportFocusedStampCount) + focused_viewport->LastFocusedStampCount = ++g.ViewportFocusedStampCount; + g.PlatformLastFocusedViewportId = focused_viewport->ID; + + // Focus associated dear imgui window + // - if focus didn't happen with a click within imgui boundaries, e.g. Clicking platform title bar. (#6299) + // - if focus didn't happen because we destroyed another window (#6462) + // FIXME: perhaps 'FocusTopMostWindowUnderOne()' can handle the 'focused_window->Window != NULL' case as well. + const bool apply_imgui_focus_on_focused_viewport = !IsAnyMouseDown() && !prev_focused_has_been_destroyed; + if (apply_imgui_focus_on_focused_viewport) + { + focused_viewport->LastFocusedHadNavWindow |= (g.NavWindow != NULL) && (g.NavWindow->Viewport == focused_viewport); // Update so a window changing viewport won't lose focus. + ImGuiFocusRequestFlags focus_request_flags = ImGuiFocusRequestFlags_UnlessBelowModal | ImGuiFocusRequestFlags_RestoreFocusedChild; + if (focused_viewport->Window != NULL) + FocusWindow(focused_viewport->Window, focus_request_flags); + else if (focused_viewport->LastFocusedHadNavWindow) + FocusTopMostWindowUnderOne(NULL, NULL, focused_viewport, focus_request_flags); // Focus top most in viewport + else + FocusWindow(NULL, focus_request_flags); // No window had focus last time viewport was focused + } + } + if (focused_viewport) + focused_viewport->LastFocusedHadNavWindow = (g.NavWindow != NULL) && (g.NavWindow->Viewport == focused_viewport); + } + + // Create/update main viewport with current platform position. + // FIXME-VIEWPORT: Size is driven by backend/user code for backward-compatibility but we should aim to make this more consistent. + ImGuiViewportP* main_viewport = g.Viewports[0]; + IM_ASSERT(main_viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID); + IM_ASSERT(main_viewport->Window == NULL); + ImVec2 main_viewport_pos = viewports_enabled ? g.PlatformIO.Platform_GetWindowPos(main_viewport) : ImVec2(0.0f, 0.0f); + ImVec2 main_viewport_size = g.IO.DisplaySize; + if (viewports_enabled && (main_viewport->Flags & ImGuiViewportFlags_IsMinimized)) + { + main_viewport_pos = main_viewport->Pos; // Preserve last pos/size when minimized (FIXME: We don't do the same for Size outside of the viewport path) + main_viewport_size = main_viewport->Size; + } + AddUpdateViewport(NULL, IMGUI_VIEWPORT_DEFAULT_ID, main_viewport_pos, main_viewport_size, ImGuiViewportFlags_OwnedByApp | ImGuiViewportFlags_CanHostOtherWindows); + + g.CurrentDpiScale = 0.0f; + g.CurrentViewport = NULL; + g.MouseViewport = NULL; + for (int n = 0; n < g.Viewports.Size; n++) + { + ImGuiViewportP* viewport = g.Viewports[n]; + viewport->Idx = n; + + // Erase unused viewports + if (n > 0 && viewport->LastFrameActive < g.FrameCount - 2) + { + DestroyViewport(viewport); + n--; + continue; + } + + const bool platform_funcs_available = viewport->PlatformWindowCreated; + if (viewports_enabled) + { + // Update Position and Size (from Platform Window to ImGui) if requested. + // We do it early in the frame instead of waiting for UpdatePlatformWindows() to avoid a frame of lag when moving/resizing using OS facilities. + if (!(viewport->Flags & ImGuiViewportFlags_IsMinimized) && platform_funcs_available) + { + // Viewport->WorkPos and WorkSize will be updated below + if (viewport->PlatformRequestMove) + viewport->Pos = viewport->LastPlatformPos = g.PlatformIO.Platform_GetWindowPos(viewport); + if (viewport->PlatformRequestResize) + viewport->Size = viewport->LastPlatformSize = g.PlatformIO.Platform_GetWindowSize(viewport); + } + } + + // Update/copy monitor info + UpdateViewportPlatformMonitor(viewport); + + // Lock down space taken by menu bars and status bars, reset the offset for functions like BeginMainMenuBar() to alter them again. + viewport->WorkOffsetMin = viewport->BuildWorkOffsetMin; + viewport->WorkOffsetMax = viewport->BuildWorkOffsetMax; + viewport->BuildWorkOffsetMin = viewport->BuildWorkOffsetMax = ImVec2(0.0f, 0.0f); + viewport->UpdateWorkRect(); + + // Reset alpha every frame. Users of transparency (docking) needs to request a lower alpha back. + viewport->Alpha = 1.0f; + + // Translate Dear ImGui windows when a Host Viewport has been moved + // (This additionally keeps windows at the same place when ImGuiConfigFlags_ViewportsEnable is toggled!) + const ImVec2 viewport_delta_pos = viewport->Pos - viewport->LastPos; + if ((viewport->Flags & ImGuiViewportFlags_CanHostOtherWindows) && (viewport_delta_pos.x != 0.0f || viewport_delta_pos.y != 0.0f)) + TranslateWindowsInViewport(viewport, viewport->LastPos, viewport->Pos); + + // Update DPI scale + float new_dpi_scale; + if (g.PlatformIO.Platform_GetWindowDpiScale && platform_funcs_available) + new_dpi_scale = g.PlatformIO.Platform_GetWindowDpiScale(viewport); + else if (viewport->PlatformMonitor != -1) + new_dpi_scale = g.PlatformIO.Monitors[viewport->PlatformMonitor].DpiScale; + else + new_dpi_scale = (viewport->DpiScale != 0.0f) ? viewport->DpiScale : 1.0f; + if (viewport->DpiScale != 0.0f && new_dpi_scale != viewport->DpiScale) + { + float scale_factor = new_dpi_scale / viewport->DpiScale; + if (g.IO.ConfigFlags & ImGuiConfigFlags_DpiEnableScaleViewports) + ScaleWindowsInViewport(viewport, scale_factor); + //if (viewport == GetMainViewport()) + // g.PlatformInterface.SetWindowSize(viewport, viewport->Size * scale_factor); + + // Scale our window moving pivot so that the window will rescale roughly around the mouse position. + // FIXME-VIEWPORT: This currently creates a resizing feedback loop when a window is straddling a DPI transition border. + // (Minor: since our sizes do not perfectly linearly scale, deferring the click offset scale until we know the actual window scale ratio may get us slightly more precise mouse positioning.) + //if (g.MovingWindow != NULL && g.MovingWindow->Viewport == viewport) + // g.ActiveIdClickOffset = ImFloor(g.ActiveIdClickOffset * scale_factor); + } + viewport->DpiScale = new_dpi_scale; + } + + // Update fallback monitor + if (g.PlatformIO.Monitors.Size == 0) + { + ImGuiPlatformMonitor* monitor = &g.FallbackMonitor; + monitor->MainPos = main_viewport->Pos; + monitor->MainSize = main_viewport->Size; + monitor->WorkPos = main_viewport->WorkPos; + monitor->WorkSize = main_viewport->WorkSize; + monitor->DpiScale = main_viewport->DpiScale; + } + + if (!viewports_enabled) + { + g.MouseViewport = main_viewport; + return; + } + + // Mouse handling: decide on the actual mouse viewport for this frame between the active/focused viewport and the hovered viewport. + // Note that 'viewport_hovered' should skip over any viewport that has the ImGuiViewportFlags_NoInputs flags set. + ImGuiViewportP* viewport_hovered = NULL; + if (g.IO.BackendFlags & ImGuiBackendFlags_HasMouseHoveredViewport) + { + viewport_hovered = g.IO.MouseHoveredViewport ? (ImGuiViewportP*)FindViewportByID(g.IO.MouseHoveredViewport) : NULL; + if (viewport_hovered && (viewport_hovered->Flags & ImGuiViewportFlags_NoInputs)) + viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); // Backend failed to handle _NoInputs viewport: revert to our fallback. + } + else + { + // If the backend doesn't know how to honor ImGuiViewportFlags_NoInputs, we do a search ourselves. Note that this search: + // A) won't take account of the possibility that non-imgui windows may be in-between our dragged window and our target window. + // B) won't take account of how the backend apply parent<>child relationship to secondary viewports, which affects their Z order. + // C) uses LastFrameAsRefViewport as a flawed replacement for the last time a window was focused (we could/should fix that by introducing Focus functions in PlatformIO) + viewport_hovered = FindHoveredViewportFromPlatformWindowStack(g.IO.MousePos); + } + if (viewport_hovered != NULL) + g.MouseLastHoveredViewport = viewport_hovered; + else if (g.MouseLastHoveredViewport == NULL) + g.MouseLastHoveredViewport = g.Viewports[0]; + + // Update mouse reference viewport + // (when moving a window we aim at its viewport, but this will be overwritten below if we go in drag and drop mode) + // (MovingViewport->Viewport will be NULL in the rare situation where the window disappared while moving, set UpdateMouseMovingWindowNewFrame() for details) + if (g.MovingWindow && g.MovingWindow->Viewport) + g.MouseViewport = g.MovingWindow->Viewport; + else + g.MouseViewport = g.MouseLastHoveredViewport; + + // When dragging something, always refer to the last hovered viewport. + // - when releasing a moving window we will revert to aiming behind (at viewport_hovered) + // - when we are between viewports, our dragged preview will tend to show in the last viewport _even_ if we don't have tooltips in their viewports (when lacking monitor info) + // - consider the case of holding on a menu item to browse child menus: even thou a mouse button is held, there's no active id because menu items only react on mouse release. + // FIXME-VIEWPORT: This is essentially broken, when ImGuiBackendFlags_HasMouseHoveredViewport is set we want to trust when viewport_hovered==NULL and use that. + const bool is_mouse_dragging_with_an_expected_destination = g.DragDropActive; + if (is_mouse_dragging_with_an_expected_destination && viewport_hovered == NULL) + viewport_hovered = g.MouseLastHoveredViewport; + if (is_mouse_dragging_with_an_expected_destination || g.ActiveId == 0 || !IsAnyMouseDown()) + if (viewport_hovered != NULL && viewport_hovered != g.MouseViewport && !(viewport_hovered->Flags & ImGuiViewportFlags_NoInputs)) + g.MouseViewport = viewport_hovered; + + IM_ASSERT(g.MouseViewport != NULL); +} + +// Update user-facing viewport list (g.Viewports -> g.PlatformIO.Viewports after filtering out some) +static void ImGui::UpdateViewportsEndFrame() +{ + ImGuiContext& g = *GImGui; + g.PlatformIO.Viewports.resize(0); + for (int i = 0; i < g.Viewports.Size; i++) + { + ImGuiViewportP* viewport = g.Viewports[i]; + viewport->LastPos = viewport->Pos; + if (viewport->LastFrameActive < g.FrameCount || viewport->Size.x <= 0.0f || viewport->Size.y <= 0.0f) + if (i > 0) // Always include main viewport in the list + continue; + if (viewport->Window && !IsWindowActiveAndVisible(viewport->Window)) + continue; + if (i > 0) + IM_ASSERT(viewport->Window != NULL); + g.PlatformIO.Viewports.push_back(viewport); + } + g.Viewports[0]->ClearRequestFlags(); // Clear main viewport flags because UpdatePlatformWindows() won't do it and may not even be called +} + +// FIXME: We should ideally refactor the system to call this every frame (we currently don't) +ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const ImVec2& pos, const ImVec2& size, ImGuiViewportFlags flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + flags |= ImGuiViewportFlags_IsPlatformWindow; + if (window != NULL) + { + if (g.MovingWindow && g.MovingWindow->RootWindowDockTree == window) + flags |= ImGuiViewportFlags_NoInputs | ImGuiViewportFlags_NoFocusOnAppearing; + if ((window->Flags & ImGuiWindowFlags_NoMouseInputs) && (window->Flags & ImGuiWindowFlags_NoNavInputs)) + flags |= ImGuiViewportFlags_NoInputs; + if (window->Flags & ImGuiWindowFlags_NoFocusOnAppearing) + flags |= ImGuiViewportFlags_NoFocusOnAppearing; + } + + ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id); + if (viewport) + { + // Always update for main viewport as we are already pulling correct platform pos/size (see #4900) + if (!viewport->PlatformRequestMove || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) + viewport->Pos = pos; + if (!viewport->PlatformRequestResize || viewport->ID == IMGUI_VIEWPORT_DEFAULT_ID) + viewport->Size = size; + viewport->Flags = flags | (viewport->Flags & (ImGuiViewportFlags_IsMinimized | ImGuiViewportFlags_IsFocused)); // Preserve existing flags + } + else + { + // New viewport + viewport = IM_NEW(ImGuiViewportP)(); + viewport->ID = id; + viewport->Idx = g.Viewports.Size; + viewport->Pos = viewport->LastPos = pos; + viewport->Size = size; + viewport->Flags = flags; + UpdateViewportPlatformMonitor(viewport); + g.Viewports.push_back(viewport); + g.ViewportCreatedCount++; + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Add Viewport %08X '%s'\n", id, window ? window->Name : ""); + + // We normally setup for all viewports in NewFrame() but here need to handle the mid-frame creation of a new viewport. + // We need to extend the fullscreen clip rect so the OverlayDrawList clip is correct for that the first frame + g.DrawListSharedData.ClipRectFullscreen.x = ImMin(g.DrawListSharedData.ClipRectFullscreen.x, viewport->Pos.x); + g.DrawListSharedData.ClipRectFullscreen.y = ImMin(g.DrawListSharedData.ClipRectFullscreen.y, viewport->Pos.y); + g.DrawListSharedData.ClipRectFullscreen.z = ImMax(g.DrawListSharedData.ClipRectFullscreen.z, viewport->Pos.x + viewport->Size.x); + g.DrawListSharedData.ClipRectFullscreen.w = ImMax(g.DrawListSharedData.ClipRectFullscreen.w, viewport->Pos.y + viewport->Size.y); + + // Store initial DpiScale before the OS platform window creation, based on expected monitor data. + // This is so we can select an appropriate font size on the first frame of our window lifetime + if (viewport->PlatformMonitor != -1) + viewport->DpiScale = g.PlatformIO.Monitors[viewport->PlatformMonitor].DpiScale; + } + + viewport->Window = window; + viewport->LastFrameActive = g.FrameCount; + viewport->UpdateWorkRect(); + IM_ASSERT(window == NULL || viewport->ID == window->ID); + + if (window != NULL) + window->ViewportOwned = true; + + return viewport; +} + +static void ImGui::DestroyViewport(ImGuiViewportP* viewport) +{ + // Clear references to this viewport in windows (window->ViewportId becomes the master data) + ImGuiContext& g = *GImGui; + for (ImGuiWindow* window : g.Windows) + { + if (window->Viewport != viewport) + continue; + window->Viewport = NULL; + window->ViewportOwned = false; + } + if (viewport == g.MouseLastHoveredViewport) + g.MouseLastHoveredViewport = NULL; + + // Destroy + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Delete Viewport %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + DestroyPlatformWindow(viewport); // In most circumstances the platform window will already be destroyed here. + IM_ASSERT(g.PlatformIO.Viewports.contains(viewport) == false); + IM_ASSERT(g.Viewports[viewport->Idx] == viewport); + g.Viewports.erase(g.Viewports.Data + viewport->Idx); + IM_DELETE(viewport); +} + +// FIXME-VIEWPORT: This is all super messy and ought to be clarified or rewritten. +static void ImGui::WindowSelectViewport(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + window->ViewportAllowPlatformMonitorExtend = -1; + + // Restore main viewport if multi-viewport is not supported by the backend + ImGuiViewportP* main_viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + if (!(g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable)) + { + SetWindowViewport(window, main_viewport); + return; + } + window->ViewportOwned = false; + + // Appearing popups reset their viewport so they can inherit again + if ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && window->Appearing) + { + window->Viewport = NULL; + window->ViewportId = 0; + } + + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasViewport) == 0) + { + // By default inherit from parent window + if (window->Viewport == NULL && window->ParentWindow && (!window->ParentWindow->IsFallbackWindow || window->ParentWindow->WasActive)) + window->Viewport = window->ParentWindow->Viewport; + + // Attempt to restore saved viewport id (= window that hasn't been activated yet), try to restore the viewport based on saved 'window->ViewportPos' restored from .ini file + if (window->Viewport == NULL && window->ViewportId != 0) + { + window->Viewport = (ImGuiViewportP*)FindViewportByID(window->ViewportId); + if (window->Viewport == NULL && window->ViewportPos.x != FLT_MAX && window->ViewportPos.y != FLT_MAX) + window->Viewport = AddUpdateViewport(window, window->ID, window->ViewportPos, window->Size, ImGuiViewportFlags_None); + } + } + + bool lock_viewport = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasViewport) + { + // Code explicitly request a viewport + window->Viewport = (ImGuiViewportP*)FindViewportByID(g.NextWindowData.ViewportId); + window->ViewportId = g.NextWindowData.ViewportId; // Store ID even if Viewport isn't resolved yet. + if (window->Viewport && (window->Flags & ImGuiWindowFlags_DockNodeHost) != 0 && window->Viewport->Window != NULL) + { + window->Viewport->Window = window; + window->Viewport->ID = window->ViewportId = window->ID; // Overwrite ID (always owned by node) + } + lock_viewport = true; + } + else if ((flags & ImGuiWindowFlags_ChildWindow) || (flags & ImGuiWindowFlags_ChildMenu)) + { + // Always inherit viewport from parent window + if (window->DockNode && window->DockNode->HostWindow) + IM_ASSERT(window->DockNode->HostWindow->Viewport == window->ParentWindow->Viewport); + window->Viewport = window->ParentWindow->Viewport; + } + else if (window->DockNode && window->DockNode->HostWindow) + { + // This covers the "always inherit viewport from parent window" case for when a window reattach to a node that was just created mid-frame + window->Viewport = window->DockNode->HostWindow->Viewport; + } + else if (flags & ImGuiWindowFlags_Tooltip) + { + window->Viewport = g.MouseViewport; + } + else if (GetWindowAlwaysWantOwnViewport(window)) + { + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + } + else if (g.MovingWindow && g.MovingWindow->RootWindowDockTree == window && IsMousePosValid()) + { + if (window->Viewport != NULL && window->Viewport->Window == window) + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + } + else + { + // Merge into host viewport? + // We cannot test window->ViewportOwned as it set lower in the function. + // Testing (g.ActiveId == 0 || g.ActiveIdAllowOverlap) to avoid merging during a short-term widget interaction. Main intent was to avoid during resize (see #4212) + bool try_to_merge_into_host_viewport = (window->Viewport && window == window->Viewport->Window && (g.ActiveId == 0 || g.ActiveIdAllowOverlap)); + if (try_to_merge_into_host_viewport) + UpdateTryMergeWindowIntoHostViewports(window); + } + + // Fallback: merge in default viewport if z-order matches, otherwise create a new viewport + if (window->Viewport == NULL) + if (!UpdateTryMergeWindowIntoHostViewport(window, main_viewport)) + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_None); + + // Mark window as allowed to protrude outside of its viewport and into the current monitor + if (!lock_viewport) + { + if (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + { + // We need to take account of the possibility that mouse may become invalid. + // Popups/Tooltip always set ViewportAllowPlatformMonitorExtend so GetWindowAllowedExtentRect() will return full monitor bounds. + ImVec2 mouse_ref = (flags & ImGuiWindowFlags_Tooltip) ? g.IO.MousePos : g.BeginPopupStack.back().OpenMousePos; + bool use_mouse_ref = (g.NavDisableHighlight || !g.NavDisableMouseHover || !g.NavWindow); + bool mouse_valid = IsMousePosValid(&mouse_ref); + if ((window->Appearing || (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_ChildMenu))) && (!use_mouse_ref || mouse_valid)) + window->ViewportAllowPlatformMonitorExtend = FindPlatformMonitorForPos((use_mouse_ref && mouse_valid) ? mouse_ref : NavCalcPreferredRefPos()); + else + window->ViewportAllowPlatformMonitorExtend = window->Viewport->PlatformMonitor; + } + else if (window->Viewport && window != window->Viewport->Window && window->Viewport->Window && !(flags & ImGuiWindowFlags_ChildWindow) && window->DockNode == NULL) + { + // When called from Begin() we don't have access to a proper version of the Hidden flag yet, so we replicate this code. + const bool will_be_visible = (window->DockIsActive && !window->DockTabIsVisible) ? false : true; + if ((window->Flags & ImGuiWindowFlags_DockNodeHost) && window->Viewport->LastFrameActive < g.FrameCount && will_be_visible) + { + // Steal/transfer ownership + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Window '%s' steal Viewport %08X from Window '%s'\n", window->Name, window->Viewport->ID, window->Viewport->Window->Name); + window->Viewport->Window = window; + window->Viewport->ID = window->ID; + window->Viewport->LastNameHash = 0; + } + else if (!UpdateTryMergeWindowIntoHostViewports(window)) // Merge? + { + // New viewport + window->Viewport = AddUpdateViewport(window, window->ID, window->Pos, window->Size, ImGuiViewportFlags_NoFocusOnAppearing); + } + } + else if (window->ViewportAllowPlatformMonitorExtend < 0 && (flags & ImGuiWindowFlags_ChildWindow) == 0) + { + // Regular (non-child, non-popup) windows by default are also allowed to protrude + // Child windows are kept contained within their parent. + window->ViewportAllowPlatformMonitorExtend = window->Viewport->PlatformMonitor; + } + } + + // Update flags + window->ViewportOwned = (window == window->Viewport->Window); + window->ViewportId = window->Viewport->ID; + + // If the OS window has a title bar, hide our imgui title bar + //if (window->ViewportOwned && !(window->Viewport->Flags & ImGuiViewportFlags_NoDecoration)) + // window->Flags |= ImGuiWindowFlags_NoTitleBar; +} + +void ImGui::WindowSyncOwnedViewport(ImGuiWindow* window, ImGuiWindow* parent_window_in_stack) +{ + ImGuiContext& g = *GImGui; + + bool viewport_rect_changed = false; + + // Synchronize window --> viewport in most situations + // Synchronize viewport -> window in case the platform window has been moved or resized from the OS/WM + if (window->Viewport->PlatformRequestMove) + { + window->Pos = window->Viewport->Pos; + MarkIniSettingsDirty(window); + } + else if (memcmp(&window->Viewport->Pos, &window->Pos, sizeof(window->Pos)) != 0) + { + viewport_rect_changed = true; + window->Viewport->Pos = window->Pos; + } + + if (window->Viewport->PlatformRequestResize) + { + window->Size = window->SizeFull = window->Viewport->Size; + MarkIniSettingsDirty(window); + } + else if (memcmp(&window->Viewport->Size, &window->Size, sizeof(window->Size)) != 0) + { + viewport_rect_changed = true; + window->Viewport->Size = window->Size; + } + window->Viewport->UpdateWorkRect(); + + // The viewport may have changed monitor since the global update in UpdateViewportsNewFrame() + // Either a SetNextWindowPos() call in the current frame or a SetWindowPos() call in the previous frame may have this effect. + if (viewport_rect_changed) + UpdateViewportPlatformMonitor(window->Viewport); + + // Update common viewport flags + const ImGuiViewportFlags viewport_flags_to_clear = ImGuiViewportFlags_TopMost | ImGuiViewportFlags_NoTaskBarIcon | ImGuiViewportFlags_NoDecoration | ImGuiViewportFlags_NoRendererClear; + ImGuiViewportFlags viewport_flags = window->Viewport->Flags & ~viewport_flags_to_clear; + ImGuiWindowFlags window_flags = window->Flags; + const bool is_modal = (window_flags & ImGuiWindowFlags_Modal) != 0; + const bool is_short_lived_floating_window = (window_flags & (ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) != 0; + if (window_flags & ImGuiWindowFlags_Tooltip) + viewport_flags |= ImGuiViewportFlags_TopMost; + if ((g.IO.ConfigViewportsNoTaskBarIcon || is_short_lived_floating_window) && !is_modal) + viewport_flags |= ImGuiViewportFlags_NoTaskBarIcon; + if (g.IO.ConfigViewportsNoDecoration || is_short_lived_floating_window) + viewport_flags |= ImGuiViewportFlags_NoDecoration; + + // Not correct to set modal as topmost because: + // - Because other popups can be stacked above a modal (e.g. combo box in a modal) + // - ImGuiViewportFlags_TopMost is currently handled different in backends: in Win32 it is "appear top most" whereas in GLFW and SDL it is "stay topmost" + //if (flags & ImGuiWindowFlags_Modal) + // viewport_flags |= ImGuiViewportFlags_TopMost; + + // For popups and menus that may be protruding out of their parent viewport, we enable _NoFocusOnClick so that clicking on them + // won't steal the OS focus away from their parent window (which may be reflected in OS the title bar decoration). + // Setting _NoFocusOnClick would technically prevent us from bringing back to front in case they are being covered by an OS window from a different app, + // but it shouldn't be much of a problem considering those are already popups that are closed when clicking elsewhere. + if (is_short_lived_floating_window && !is_modal) + viewport_flags |= ImGuiViewportFlags_NoFocusOnAppearing | ImGuiViewportFlags_NoFocusOnClick; + + // We can overwrite viewport flags using ImGuiWindowClass (advanced users) + if (window->WindowClass.ViewportFlagsOverrideSet) + viewport_flags |= window->WindowClass.ViewportFlagsOverrideSet; + if (window->WindowClass.ViewportFlagsOverrideClear) + viewport_flags &= ~window->WindowClass.ViewportFlagsOverrideClear; + + // We can also tell the backend that clearing the platform window won't be necessary, + // as our window background is filling the viewport and we have disabled BgAlpha. + // FIXME: Work on support for per-viewport transparency (#2766) + if (!(window_flags & ImGuiWindowFlags_NoBackground)) + viewport_flags |= ImGuiViewportFlags_NoRendererClear; + + window->Viewport->Flags = viewport_flags; + + // Update parent viewport ID + // (the !IsFallbackWindow test mimic the one done in WindowSelectViewport()) + if (window->WindowClass.ParentViewportId != (ImGuiID)-1) + window->Viewport->ParentViewportId = window->WindowClass.ParentViewportId; + else if ((window_flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && parent_window_in_stack && (!parent_window_in_stack->IsFallbackWindow || parent_window_in_stack->WasActive)) + window->Viewport->ParentViewportId = parent_window_in_stack->Viewport->ID; + else + window->Viewport->ParentViewportId = g.IO.ConfigViewportsNoDefaultParent ? 0 : IMGUI_VIEWPORT_DEFAULT_ID; +} + +// Called by user at the end of the main loop, after EndFrame() +// This will handle the creation/update of all OS windows via function defined in the ImGuiPlatformIO api. +void ImGui::UpdatePlatformWindows() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.FrameCountEnded == g.FrameCount && "Forgot to call Render() or EndFrame() before UpdatePlatformWindows()?"); + IM_ASSERT(g.FrameCountPlatformEnded < g.FrameCount); + g.FrameCountPlatformEnded = g.FrameCount; + if (!(g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable)) + return; + + // Create/resize/destroy platform windows to match each active viewport. + // Skip the main viewport (index 0), which is always fully handled by the application! + for (int i = 1; i < g.Viewports.Size; i++) + { + ImGuiViewportP* viewport = g.Viewports[i]; + + // Destroy platform window if the viewport hasn't been submitted or if it is hosting a hidden window + // (the implicit/fallback Debug##Default window will be registering its viewport then be disabled, causing a dummy DestroyPlatformWindow to be made each frame) + bool destroy_platform_window = false; + destroy_platform_window |= (viewport->LastFrameActive < g.FrameCount - 1); + destroy_platform_window |= (viewport->Window && !IsWindowActiveAndVisible(viewport->Window)); + if (destroy_platform_window) + { + DestroyPlatformWindow(viewport); + continue; + } + + // New windows that appears directly in a new viewport won't always have a size on their first frame + if (viewport->LastFrameActive < g.FrameCount || viewport->Size.x <= 0 || viewport->Size.y <= 0) + continue; + + // Create window + const bool is_new_platform_window = (viewport->PlatformWindowCreated == false); + if (is_new_platform_window) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Create Platform Window %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + g.PlatformIO.Platform_CreateWindow(viewport); + if (g.PlatformIO.Renderer_CreateWindow != NULL) + g.PlatformIO.Renderer_CreateWindow(viewport); + g.PlatformWindowsCreatedCount++; + viewport->LastNameHash = 0; + viewport->LastPlatformPos = viewport->LastPlatformSize = ImVec2(FLT_MAX, FLT_MAX); // By clearing those we'll enforce a call to Platform_SetWindowPos/Size below, before Platform_ShowWindow (FIXME: Is that necessary?) + viewport->LastRendererSize = viewport->Size; // We don't need to call Renderer_SetWindowSize() as it is expected Renderer_CreateWindow() already did it. + viewport->PlatformWindowCreated = true; + } + + // Apply Position and Size (from ImGui to Platform/Renderer backends) + if ((viewport->LastPlatformPos.x != viewport->Pos.x || viewport->LastPlatformPos.y != viewport->Pos.y) && !viewport->PlatformRequestMove) + g.PlatformIO.Platform_SetWindowPos(viewport, viewport->Pos); + if ((viewport->LastPlatformSize.x != viewport->Size.x || viewport->LastPlatformSize.y != viewport->Size.y) && !viewport->PlatformRequestResize) + g.PlatformIO.Platform_SetWindowSize(viewport, viewport->Size); + if ((viewport->LastRendererSize.x != viewport->Size.x || viewport->LastRendererSize.y != viewport->Size.y) && g.PlatformIO.Renderer_SetWindowSize) + g.PlatformIO.Renderer_SetWindowSize(viewport, viewport->Size); + viewport->LastPlatformPos = viewport->Pos; + viewport->LastPlatformSize = viewport->LastRendererSize = viewport->Size; + + // Update title bar (if it changed) + if (ImGuiWindow* window_for_title = GetWindowForTitleDisplay(viewport->Window)) + { + const char* title_begin = window_for_title->Name; + char* title_end = (char*)(intptr_t)FindRenderedTextEnd(title_begin); + const ImGuiID title_hash = ImHashStr(title_begin, title_end - title_begin); + if (viewport->LastNameHash != title_hash) + { + char title_end_backup_c = *title_end; + *title_end = 0; // Cut existing buffer short instead of doing an alloc/free, no small gain. + g.PlatformIO.Platform_SetWindowTitle(viewport, title_begin); + *title_end = title_end_backup_c; + viewport->LastNameHash = title_hash; + } + } + + // Update alpha (if it changed) + if (viewport->LastAlpha != viewport->Alpha && g.PlatformIO.Platform_SetWindowAlpha) + g.PlatformIO.Platform_SetWindowAlpha(viewport, viewport->Alpha); + viewport->LastAlpha = viewport->Alpha; + + // Optional, general purpose call to allow the backend to perform general book-keeping even if things haven't changed. + if (g.PlatformIO.Platform_UpdateWindow) + g.PlatformIO.Platform_UpdateWindow(viewport); + + if (is_new_platform_window) + { + // On startup ensure new platform window don't steal focus (give it a few frames, as nested contents may lead to viewport being created a few frames late) + if (g.FrameCount < 3) + viewport->Flags |= ImGuiViewportFlags_NoFocusOnAppearing; + + // Show window + g.PlatformIO.Platform_ShowWindow(viewport); + + // Even without focus, we assume the window becomes front-most. + // This is useful for our platform z-order heuristic when io.MouseHoveredViewport is not available. + if (viewport->LastFocusedStampCount != g.ViewportFocusedStampCount) + viewport->LastFocusedStampCount = ++g.ViewportFocusedStampCount; + } + + // Clear request flags + viewport->ClearRequestFlags(); + } +} + +// This is a default/basic function for performing the rendering/swap of multiple Platform Windows. +// Custom renderers may prefer to not call this function at all, and instead iterate the publicly exposed platform data and handle rendering/sync themselves. +// The Render/Swap functions stored in ImGuiPlatformIO are merely here to allow for this helper to exist, but you can do it yourself: +// +// ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); +// for (int i = 1; i < platform_io.Viewports.Size; i++) +// if ((platform_io.Viewports[i]->Flags & ImGuiViewportFlags_Minimized) == 0) +// MyRenderFunction(platform_io.Viewports[i], my_args); +// for (int i = 1; i < platform_io.Viewports.Size; i++) +// if ((platform_io.Viewports[i]->Flags & ImGuiViewportFlags_Minimized) == 0) +// MySwapBufferFunction(platform_io.Viewports[i], my_args); +// +void ImGui::RenderPlatformWindowsDefault(void* platform_render_arg, void* renderer_render_arg) +{ + // Skip the main viewport (index 0), which is always fully handled by the application! + ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(); + for (int i = 1; i < platform_io.Viewports.Size; i++) + { + ImGuiViewport* viewport = platform_io.Viewports[i]; + if (viewport->Flags & ImGuiViewportFlags_IsMinimized) + continue; + if (platform_io.Platform_RenderWindow) platform_io.Platform_RenderWindow(viewport, platform_render_arg); + if (platform_io.Renderer_RenderWindow) platform_io.Renderer_RenderWindow(viewport, renderer_render_arg); + } + for (int i = 1; i < platform_io.Viewports.Size; i++) + { + ImGuiViewport* viewport = platform_io.Viewports[i]; + if (viewport->Flags & ImGuiViewportFlags_IsMinimized) + continue; + if (platform_io.Platform_SwapBuffers) platform_io.Platform_SwapBuffers(viewport, platform_render_arg); + if (platform_io.Renderer_SwapBuffers) platform_io.Renderer_SwapBuffers(viewport, renderer_render_arg); + } +} + +static int ImGui::FindPlatformMonitorForPos(const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + for (int monitor_n = 0; monitor_n < g.PlatformIO.Monitors.Size; monitor_n++) + { + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[monitor_n]; + if (ImRect(monitor.MainPos, monitor.MainPos + monitor.MainSize).Contains(pos)) + return monitor_n; + } + return -1; +} + +// Search for the monitor with the largest intersection area with the given rectangle +// We generally try to avoid searching loops but the monitor count should be very small here +// FIXME-OPT: We could test the last monitor used for that viewport first, and early +static int ImGui::FindPlatformMonitorForRect(const ImRect& rect) +{ + ImGuiContext& g = *GImGui; + + const int monitor_count = g.PlatformIO.Monitors.Size; + if (monitor_count <= 1) + return monitor_count - 1; + + // Use a minimum threshold of 1.0f so a zero-sized rect won't false positive, and will still find the correct monitor given its position. + // This is necessary for tooltips which always resize down to zero at first. + const float surface_threshold = ImMax(rect.GetWidth() * rect.GetHeight() * 0.5f, 1.0f); + int best_monitor_n = -1; + float best_monitor_surface = 0.001f; + + for (int monitor_n = 0; monitor_n < g.PlatformIO.Monitors.Size && best_monitor_surface < surface_threshold; monitor_n++) + { + const ImGuiPlatformMonitor& monitor = g.PlatformIO.Monitors[monitor_n]; + const ImRect monitor_rect = ImRect(monitor.MainPos, monitor.MainPos + monitor.MainSize); + if (monitor_rect.Contains(rect)) + return monitor_n; + ImRect overlapping_rect = rect; + overlapping_rect.ClipWithFull(monitor_rect); + float overlapping_surface = overlapping_rect.GetWidth() * overlapping_rect.GetHeight(); + if (overlapping_surface < best_monitor_surface) + continue; + best_monitor_surface = overlapping_surface; + best_monitor_n = monitor_n; + } + return best_monitor_n; +} + +// Update monitor from viewport rectangle (we'll use this info to clamp windows and save windows lost in a removed monitor) +static void ImGui::UpdateViewportPlatformMonitor(ImGuiViewportP* viewport) +{ + viewport->PlatformMonitor = (short)FindPlatformMonitorForRect(viewport->GetMainRect()); +} + +// Return value is always != NULL, but don't hold on it across frames. +const ImGuiPlatformMonitor* ImGui::GetViewportPlatformMonitor(ImGuiViewport* viewport_p) +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)viewport_p; + int monitor_idx = viewport->PlatformMonitor; + if (monitor_idx >= 0 && monitor_idx < g.PlatformIO.Monitors.Size) + return &g.PlatformIO.Monitors[monitor_idx]; + return &g.FallbackMonitor; +} + +void ImGui::DestroyPlatformWindow(ImGuiViewportP* viewport) +{ + ImGuiContext& g = *GImGui; + if (viewport->PlatformWindowCreated) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Destroy Platform Window %08X '%s'\n", viewport->ID, viewport->Window ? viewport->Window->Name : "n/a"); + if (g.PlatformIO.Renderer_DestroyWindow) + g.PlatformIO.Renderer_DestroyWindow(viewport); + if (g.PlatformIO.Platform_DestroyWindow) + g.PlatformIO.Platform_DestroyWindow(viewport); + IM_ASSERT(viewport->RendererUserData == NULL && viewport->PlatformUserData == NULL); + + // Don't clear PlatformWindowCreated for the main viewport, as we initially set that up to true in Initialize() + // The righter way may be to leave it to the backend to set this flag all-together, and made the flag public. + if (viewport->ID != IMGUI_VIEWPORT_DEFAULT_ID) + viewport->PlatformWindowCreated = false; + } + else + { + IM_ASSERT(viewport->RendererUserData == NULL && viewport->PlatformUserData == NULL && viewport->PlatformHandle == NULL); + } + viewport->RendererUserData = viewport->PlatformUserData = viewport->PlatformHandle = NULL; + viewport->ClearRequestFlags(); +} + +void ImGui::DestroyPlatformWindows() +{ + // We call the destroy window on every viewport (including the main viewport, index 0) to give a chance to the backend + // to clear any data they may have stored in e.g. PlatformUserData, RendererUserData. + // It is convenient for the platform backend code to store something in the main viewport, in order for e.g. the mouse handling + // code to operator a consistent manner. + // It is expected that the backend can handle calls to Renderer_DestroyWindow/Platform_DestroyWindow without + // crashing if it doesn't have data stored. + ImGuiContext& g = *GImGui; + for (ImGuiViewportP* viewport : g.Viewports) + DestroyPlatformWindow(viewport); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DOCKING +//----------------------------------------------------------------------------- +// Docking: Internal Types +// Docking: Forward Declarations +// Docking: ImGuiDockContext +// Docking: ImGuiDockContext Docking/Undocking functions +// Docking: ImGuiDockNode +// Docking: ImGuiDockNode Tree manipulation functions +// Docking: Public Functions (SetWindowDock, DockSpace, DockSpaceOverViewport) +// Docking: Builder Functions +// Docking: Begin/End Support Functions (called from Begin/End) +// Docking: Settings +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Typical Docking call flow: (root level is generally public API): +//----------------------------------------------------------------------------- +// - NewFrame() new dear imgui frame +// | DockContextNewFrameUpdateUndocking() - process queued undocking requests +// | - DockContextProcessUndockWindow() - process one window undocking request +// | - DockContextProcessUndockNode() - process one whole node undocking request +// | DockContextNewFrameUpdateUndocking() - process queue docking requests, create floating dock nodes +// | - update g.HoveredDockNode - [debug] update node hovered by mouse +// | - DockContextProcessDock() - process one docking request +// | - DockNodeUpdate() +// | - DockNodeUpdateForRootNode() +// | - DockNodeUpdateFlagsAndCollapse() +// | - DockNodeFindInfo() +// | - destroy unused node or tab bar +// | - create dock node host window +// | - Begin() etc. +// | - DockNodeStartMouseMovingWindow() +// | - DockNodeTreeUpdatePosSize() +// | - DockNodeTreeUpdateSplitter() +// | - draw node background +// | - DockNodeUpdateTabBar() - create/update tab bar for a docking node +// | - DockNodeAddTabBar() +// | - DockNodeUpdateWindowMenu() +// | - DockNodeCalcTabBarLayout() +// | - BeginTabBarEx() +// | - TabItemEx() calls +// | - EndTabBar() +// | - BeginDockableDragDropTarget() +// | - DockNodeUpdate() - recurse into child nodes... +//----------------------------------------------------------------------------- +// - DockSpace() user submit a dockspace into a window +// | Begin(Child) - create a child window +// | DockNodeUpdate() - call main dock node update function +// | End(Child) +// | ItemSize() +//----------------------------------------------------------------------------- +// - Begin() +// | BeginDocked() +// | BeginDockableDragDropSource() +// | BeginDockableDragDropTarget() +// | - DockNodePreviewDockRender() +//----------------------------------------------------------------------------- +// - EndFrame() +// | DockContextEndFrame() +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Docking: Internal Types +//----------------------------------------------------------------------------- +// - ImGuiDockRequestType +// - ImGuiDockRequest +// - ImGuiDockPreviewData +// - ImGuiDockNodeSettings +// - ImGuiDockContext +//----------------------------------------------------------------------------- + +enum ImGuiDockRequestType +{ + ImGuiDockRequestType_None = 0, + ImGuiDockRequestType_Dock, + ImGuiDockRequestType_Undock, + ImGuiDockRequestType_Split // Split is the same as Dock but without a DockPayload +}; + +struct ImGuiDockRequest +{ + ImGuiDockRequestType Type; + ImGuiWindow* DockTargetWindow; // Destination/Target Window to dock into (may be a loose window or a DockNode, might be NULL in which case DockTargetNode cannot be NULL) + ImGuiDockNode* DockTargetNode; // Destination/Target Node to dock into + ImGuiWindow* DockPayload; // Source/Payload window to dock (may be a loose window or a DockNode), [Optional] + ImGuiDir DockSplitDir; + float DockSplitRatio; + bool DockSplitOuter; + ImGuiWindow* UndockTargetWindow; + ImGuiDockNode* UndockTargetNode; + + ImGuiDockRequest() + { + Type = ImGuiDockRequestType_None; + DockTargetWindow = DockPayload = UndockTargetWindow = NULL; + DockTargetNode = UndockTargetNode = NULL; + DockSplitDir = ImGuiDir_None; + DockSplitRatio = 0.5f; + DockSplitOuter = false; + } +}; + +struct ImGuiDockPreviewData +{ + ImGuiDockNode FutureNode; + bool IsDropAllowed; + bool IsCenterAvailable; + bool IsSidesAvailable; // Hold your breath, grammar freaks.. + bool IsSplitDirExplicit; // Set when hovered the drop rect (vs. implicit SplitDir==None when hovered the window) + ImGuiDockNode* SplitNode; + ImGuiDir SplitDir; + float SplitRatio; + ImRect DropRectsDraw[ImGuiDir_COUNT + 1]; // May be slightly different from hit-testing drop rects used in DockNodeCalcDropRects() + + ImGuiDockPreviewData() : FutureNode(0) { IsDropAllowed = IsCenterAvailable = IsSidesAvailable = IsSplitDirExplicit = false; SplitNode = NULL; SplitDir = ImGuiDir_None; SplitRatio = 0.f; for (int n = 0; n < IM_ARRAYSIZE(DropRectsDraw); n++) DropRectsDraw[n] = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); } +}; + +// Persistent Settings data, stored contiguously in SettingsNodes (sizeof() ~32 bytes) +struct ImGuiDockNodeSettings +{ + ImGuiID ID; + ImGuiID ParentNodeId; + ImGuiID ParentWindowId; + ImGuiID SelectedTabId; + signed char SplitAxis; + char Depth; + ImGuiDockNodeFlags Flags; // NB: We save individual flags one by one in ascii format (ImGuiDockNodeFlags_SavedFlagsMask_) + ImVec2ih Pos; + ImVec2ih Size; + ImVec2ih SizeRef; + ImGuiDockNodeSettings() { memset(this, 0, sizeof(*this)); SplitAxis = ImGuiAxis_None; } +}; + +//----------------------------------------------------------------------------- +// Docking: Forward Declarations +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // ImGuiDockContext + static ImGuiDockNode* DockContextAddNode(ImGuiContext* ctx, ImGuiID id); + static void DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node); + static void DockContextQueueNotifyRemovedNode(ImGuiContext* ctx, ImGuiDockNode* node); + static void DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req); + static void DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx); + static ImGuiDockNode* DockContextBindNodeToWindow(ImGuiContext* ctx, ImGuiWindow* window); + static void DockContextBuildNodesFromSettings(ImGuiContext* ctx, ImGuiDockNodeSettings* node_settings_array, int node_settings_count); + static void DockContextBuildAddWindowsToNodes(ImGuiContext* ctx, ImGuiID root_id); // Use root_id==0 to add all + + // ImGuiDockNode + static void DockNodeAddWindow(ImGuiDockNode* node, ImGuiWindow* window, bool add_to_tab_bar); + static void DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* src_node); + static void DockNodeMoveChildNodes(ImGuiDockNode* dst_node, ImGuiDockNode* src_node); + static ImGuiWindow* DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id); + static void DockNodeApplyPosSizeToWindows(ImGuiDockNode* node); + static void DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window, ImGuiID save_dock_id); + static void DockNodeHideHostWindow(ImGuiDockNode* node); + static void DockNodeUpdate(ImGuiDockNode* node); + static void DockNodeUpdateForRootNode(ImGuiDockNode* node); + static void DockNodeUpdateFlagsAndCollapse(ImGuiDockNode* node); + static void DockNodeUpdateHasCentralNodeChild(ImGuiDockNode* node); + static void DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_window); + static void DockNodeAddTabBar(ImGuiDockNode* node); + static void DockNodeRemoveTabBar(ImGuiDockNode* node); + static void DockNodeWindowMenuUpdate(ImGuiDockNode* node, ImGuiTabBar* tab_bar); + static void DockNodeUpdateVisibleFlag(ImGuiDockNode* node); + static void DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window); + static bool DockNodeIsDropAllowed(ImGuiWindow* host_window, ImGuiWindow* payload_window); + static void DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* preview_data, bool is_explicit_target, bool is_outer_docking); + static void DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, const ImGuiDockPreviewData* preview_data); + static void DockNodeCalcTabBarLayout(const ImGuiDockNode* node, ImRect* out_title_rect, ImRect* out_tab_bar_rect, ImVec2* out_window_menu_button_pos, ImVec2* out_close_button_pos); + static void DockNodeCalcSplitRects(ImVec2& pos_old, ImVec2& size_old, ImVec2& pos_new, ImVec2& size_new, ImGuiDir dir, ImVec2 size_new_desired); + static bool DockNodeCalcDropRectsAndTestMousePos(const ImRect& parent, ImGuiDir dir, ImRect& out_draw, bool outer_docking, ImVec2* test_mouse_pos); + static const char* DockNodeGetHostWindowTitle(ImGuiDockNode* node, char* buf, int buf_size) { ImFormatString(buf, buf_size, "##DockNode_%02X", node->ID); return buf; } + static int DockNodeGetTabOrder(ImGuiWindow* window); + + // ImGuiDockNode tree manipulations + static void DockNodeTreeSplit(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiAxis split_axis, int split_first_child, float split_ratio, ImGuiDockNode* new_node); + static void DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiDockNode* merge_lead_child); + static void DockNodeTreeUpdatePosSize(ImGuiDockNode* node, ImVec2 pos, ImVec2 size, ImGuiDockNode* only_write_to_single_node = NULL); + static void DockNodeTreeUpdateSplitter(ImGuiDockNode* node); + static ImGuiDockNode* DockNodeTreeFindVisibleNodeByPos(ImGuiDockNode* node, ImVec2 pos); + static ImGuiDockNode* DockNodeTreeFindFallbackLeafNode(ImGuiDockNode* node); + + // Settings + static void DockSettingsRenameNodeReferences(ImGuiID old_node_id, ImGuiID new_node_id); + static void DockSettingsRemoveNodeReferences(ImGuiID* node_ids, int node_ids_count); + static ImGuiDockNodeSettings* DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID node_id); + static void DockSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); + static void DockSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); + static void* DockSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); + static void DockSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); + static void DockSettingsHandler_WriteAll(ImGuiContext* imgui_ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf); +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockContext +//----------------------------------------------------------------------------- +// The lifetime model is different from the one of regular windows: we always create a ImGuiDockNode for each ImGuiDockNodeSettings, +// or we always hold the entire docking node tree. Nodes are frequently hidden, e.g. if the window(s) or child nodes they host are not active. +// At boot time only, we run a simple GC to remove nodes that have no references. +// Because dock node settings (which are small, contiguous structures) are always mirrored by their corresponding dock nodes (more complete structures), +// we can also very easily recreate the nodes from scratch given the settings data (this is what DockContextRebuild() does). +// This is convenient as docking reconfiguration can be implemented by mostly poking at the simpler settings data. +//----------------------------------------------------------------------------- +// - DockContextInitialize() +// - DockContextShutdown() +// - DockContextClearNodes() +// - DockContextRebuildNodes() +// - DockContextNewFrameUpdateUndocking() +// - DockContextNewFrameUpdateDocking() +// - DockContextEndFrame() +// - DockContextFindNodeByID() +// - DockContextBindNodeToWindow() +// - DockContextGenNodeID() +// - DockContextAddNode() +// - DockContextRemoveNode() +// - ImGuiDockContextPruneNodeData +// - DockContextPruneUnusedSettingsNodes() +// - DockContextBuildNodesFromSettings() +// - DockContextBuildAddWindowsToNodes() +//----------------------------------------------------------------------------- + +void ImGui::DockContextInitialize(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + + // Add .ini handle for persistent docking data + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Docking"; + ini_handler.TypeHash = ImHashStr("Docking"); + ini_handler.ClearAllFn = DockSettingsHandler_ClearAll; + ini_handler.ReadInitFn = DockSettingsHandler_ClearAll; // Also clear on read + ini_handler.ReadOpenFn = DockSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = DockSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = DockSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = DockSettingsHandler_WriteAll; + g.SettingsHandlers.push_back(ini_handler); + + g.DockNodeWindowMenuHandler = &DockNodeWindowMenuHandler_Default; +} + +void ImGui::DockContextShutdown(ImGuiContext* ctx) +{ + ImGuiDockContext* dc = &ctx->DockContext; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + IM_DELETE(node); +} + +void ImGui::DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs) +{ + IM_UNUSED(ctx); + IM_ASSERT(ctx == GImGui); + DockBuilderRemoveNodeDockedWindows(root_id, clear_settings_refs); + DockBuilderRemoveNodeChildNodes(root_id); +} + +// [DEBUG] This function also acts as a defacto test to make sure we can rebuild from scratch without a glitch +// (Different from DockSettingsHandler_ClearAll() + DockSettingsHandler_ApplyAll() because this reuses current settings!) +void ImGui::DockContextRebuildNodes(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRebuildNodes\n"); + SaveIniSettingsToMemory(); + ImGuiID root_id = 0; // Rebuild all + DockContextClearNodes(ctx, root_id, false); + DockContextBuildNodesFromSettings(ctx, dc->NodesSettings.Data, dc->NodesSettings.Size); + DockContextBuildAddWindowsToNodes(ctx, root_id); +} + +// Docking context update function, called by NewFrame() +void ImGui::DockContextNewFrameUpdateUndocking(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + { + if (dc->Nodes.Data.Size > 0 || dc->Requests.Size > 0) + DockContextClearNodes(ctx, 0, true); + return; + } + + // Setting NoSplit at runtime merges all nodes + if (g.IO.ConfigDockingNoSplit) + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsRootNode() && node->IsSplitNode()) + { + DockBuilderRemoveNodeChildNodes(node->ID); + //dc->WantFullRebuild = true; + } + + // Process full rebuild +#if 0 + if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_C))) + dc->WantFullRebuild = true; +#endif + if (dc->WantFullRebuild) + { + DockContextRebuildNodes(ctx); + dc->WantFullRebuild = false; + } + + // Process Undocking requests (we need to process them _before_ the UpdateMouseMovingWindowNewFrame call in NewFrame) + for (ImGuiDockRequest& req : dc->Requests) + { + if (req.Type == ImGuiDockRequestType_Undock && req.UndockTargetWindow) + DockContextProcessUndockWindow(ctx, req.UndockTargetWindow); + else if (req.Type == ImGuiDockRequestType_Undock && req.UndockTargetNode) + DockContextProcessUndockNode(ctx, req.UndockTargetNode); + } +} + +// Docking context update function, called by NewFrame() +void ImGui::DockContextNewFrameUpdateDocking(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return; + + // [DEBUG] Store hovered dock node. + // We could in theory use DockNodeTreeFindVisibleNodeByPos() on the root host dock node, but using ->DockNode is a good shortcut. + // Note this is mostly a debug thing and isn't actually used for docking target, because docking involve more detailed filtering. + g.DebugHoveredDockNode = NULL; + if (ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow) + { + if (hovered_window->DockNodeAsHost) + g.DebugHoveredDockNode = DockNodeTreeFindVisibleNodeByPos(hovered_window->DockNodeAsHost, g.IO.MousePos); + else if (hovered_window->RootWindow->DockNode) + g.DebugHoveredDockNode = hovered_window->RootWindow->DockNode; + } + + // Process Docking requests + for (ImGuiDockRequest& req : dc->Requests) + if (req.Type == ImGuiDockRequestType_Dock) + DockContextProcessDock(ctx, &req); + dc->Requests.resize(0); + + // Create windows for each automatic docking nodes + // We can have NULL pointers when we delete nodes, but because ID are recycled this should amortize nicely (and our node count will never be very high) + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsFloatingNode()) + DockNodeUpdate(node); +} + +void ImGui::DockContextEndFrame(ImGuiContext* ctx) +{ + // Draw backgrounds of node missing their window + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &g.DockContext; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->LastFrameActive == g.FrameCount && node->IsVisible && node->HostWindow && node->IsLeafNode() && !node->IsBgDrawnThisFrame) + { + ImRect bg_rect(node->Pos + ImVec2(0.0f, GetFrameHeight()), node->Pos + node->Size); + ImDrawFlags bg_rounding_flags = CalcRoundingFlagsForRectInRect(bg_rect, node->HostWindow->Rect(), g.Style.DockingSeparatorSize); + node->HostWindow->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + node->HostWindow->DrawList->AddRectFilled(bg_rect.Min, bg_rect.Max, node->LastBgColor, node->HostWindow->WindowRounding, bg_rounding_flags); + } +} + +ImGuiDockNode* ImGui::DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id) +{ + return (ImGuiDockNode*)ctx->DockContext.Nodes.GetVoidPtr(id); +} + +ImGuiID ImGui::DockContextGenNodeID(ImGuiContext* ctx) +{ + // Generate an ID for new node (the exact ID value doesn't matter as long as it is not already used) + // FIXME-OPT FIXME-DOCK: This is suboptimal, even if the node count is small enough not to be a worry.0 + // We should poke in ctx->Nodes to find a suitable ID faster. Even more so trivial that ctx->Nodes lookup is already sorted. + ImGuiID id = 0x0001; + while (DockContextFindNodeByID(ctx, id) != NULL) + id++; + return id; +} + +static ImGuiDockNode* ImGui::DockContextAddNode(ImGuiContext* ctx, ImGuiID id) +{ + // Generate an ID for the new node (the exact ID value doesn't matter as long as it is not already used) and add the first window. + ImGuiContext& g = *ctx; + if (id == 0) + id = DockContextGenNodeID(ctx); + else + IM_ASSERT(DockContextFindNodeByID(ctx, id) == NULL); + + // We don't set node->LastFrameAlive on construction. Nodes are always created at all time to reflect .ini settings! + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextAddNode 0x%08X\n", id); + ImGuiDockNode* node = IM_NEW(ImGuiDockNode)(id); + ctx->DockContext.Nodes.SetVoidPtr(node->ID, node); + return node; +} + +static void ImGui::DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextRemoveNode 0x%08X\n", node->ID); + IM_ASSERT(DockContextFindNodeByID(ctx, node->ID) == node); + IM_ASSERT(node->ChildNodes[0] == NULL && node->ChildNodes[1] == NULL); + IM_ASSERT(node->Windows.Size == 0); + + if (node->HostWindow) + node->HostWindow->DockNodeAsHost = NULL; + + ImGuiDockNode* parent_node = node->ParentNode; + const bool merge = (merge_sibling_into_parent_node && parent_node != NULL); + if (merge) + { + IM_ASSERT(parent_node->ChildNodes[0] == node || parent_node->ChildNodes[1] == node); + ImGuiDockNode* sibling_node = (parent_node->ChildNodes[0] == node ? parent_node->ChildNodes[1] : parent_node->ChildNodes[0]); + DockNodeTreeMerge(&g, parent_node, sibling_node); + } + else + { + for (int n = 0; parent_node && n < IM_ARRAYSIZE(parent_node->ChildNodes); n++) + if (parent_node->ChildNodes[n] == node) + node->ParentNode->ChildNodes[n] = NULL; + dc->Nodes.SetVoidPtr(node->ID, NULL); + IM_DELETE(node); + } +} + +static int IMGUI_CDECL DockNodeComparerDepthMostFirst(const void* lhs, const void* rhs) +{ + const ImGuiDockNode* a = *(const ImGuiDockNode* const*)lhs; + const ImGuiDockNode* b = *(const ImGuiDockNode* const*)rhs; + return ImGui::DockNodeGetDepth(b) - ImGui::DockNodeGetDepth(a); +} + +// Pre C++0x doesn't allow us to use a function-local type (without linkage) as template parameter, so we moved this here. +struct ImGuiDockContextPruneNodeData +{ + int CountWindows, CountChildWindows, CountChildNodes; + ImGuiID RootId; + ImGuiDockContextPruneNodeData() { CountWindows = CountChildWindows = CountChildNodes = 0; RootId = 0; } +}; + +// Garbage collect unused nodes (run once at init time) +static void ImGui::DockContextPruneUnusedSettingsNodes(ImGuiContext* ctx) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + IM_ASSERT(g.Windows.Size == 0); + + ImPool pool; + pool.Reserve(dc->NodesSettings.Size); + + // Count child nodes and compute RootID + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + ImGuiDockContextPruneNodeData* parent_data = settings->ParentNodeId ? pool.GetByKey(settings->ParentNodeId) : 0; + pool.GetOrAddByKey(settings->ID)->RootId = parent_data ? parent_data->RootId : settings->ID; + if (settings->ParentNodeId) + pool.GetOrAddByKey(settings->ParentNodeId)->CountChildNodes++; + } + + // Count reference to dock ids from dockspaces + // We track the 'auto-DockNode <- manual-Window <- manual-DockSpace' in order to avoid 'auto-DockNode' being ditched by DockContextPruneUnusedSettingsNodes() + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + if (settings->ParentWindowId != 0) + if (ImGuiWindowSettings* window_settings = FindWindowSettingsByID(settings->ParentWindowId)) + if (window_settings->DockId) + if (ImGuiDockContextPruneNodeData* data = pool.GetByKey(window_settings->DockId)) + data->CountChildNodes++; + } + + // Count reference to dock ids from window settings + // We guard against the possibility of an invalid .ini file (RootID may point to a missing node) + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (ImGuiID dock_id = settings->DockId) + if (ImGuiDockContextPruneNodeData* data = pool.GetByKey(dock_id)) + { + data->CountWindows++; + if (ImGuiDockContextPruneNodeData* data_root = (data->RootId == dock_id) ? data : pool.GetByKey(data->RootId)) + data_root->CountChildWindows++; + } + + // Prune + for (int settings_n = 0; settings_n < dc->NodesSettings.Size; settings_n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[settings_n]; + ImGuiDockContextPruneNodeData* data = pool.GetByKey(settings->ID); + if (data->CountWindows > 1) + continue; + ImGuiDockContextPruneNodeData* data_root = (data->RootId == settings->ID) ? data : pool.GetByKey(data->RootId); + + bool remove = false; + remove |= (data->CountWindows == 1 && settings->ParentNodeId == 0 && data->CountChildNodes == 0 && !(settings->Flags & ImGuiDockNodeFlags_CentralNode)); // Floating root node with only 1 window + remove |= (data->CountWindows == 0 && settings->ParentNodeId == 0 && data->CountChildNodes == 0); // Leaf nodes with 0 window + remove |= (data_root->CountChildWindows == 0); + if (remove) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextPruneUnusedSettingsNodes: Prune 0x%08X\n", settings->ID); + DockSettingsRemoveNodeReferences(&settings->ID, 1); + settings->ID = 0; + } + } +} + +static void ImGui::DockContextBuildNodesFromSettings(ImGuiContext* ctx, ImGuiDockNodeSettings* node_settings_array, int node_settings_count) +{ + // Build nodes + for (int node_n = 0; node_n < node_settings_count; node_n++) + { + ImGuiDockNodeSettings* settings = &node_settings_array[node_n]; + if (settings->ID == 0) + continue; + ImGuiDockNode* node = DockContextAddNode(ctx, settings->ID); + node->ParentNode = settings->ParentNodeId ? DockContextFindNodeByID(ctx, settings->ParentNodeId) : NULL; + node->Pos = ImVec2(settings->Pos.x, settings->Pos.y); + node->Size = ImVec2(settings->Size.x, settings->Size.y); + node->SizeRef = ImVec2(settings->SizeRef.x, settings->SizeRef.y); + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_DockNode; + if (node->ParentNode && node->ParentNode->ChildNodes[0] == NULL) + node->ParentNode->ChildNodes[0] = node; + else if (node->ParentNode && node->ParentNode->ChildNodes[1] == NULL) + node->ParentNode->ChildNodes[1] = node; + node->SelectedTabId = settings->SelectedTabId; + node->SplitAxis = (ImGuiAxis)settings->SplitAxis; + node->SetLocalFlags(settings->Flags & ImGuiDockNodeFlags_SavedFlagsMask_); + + // Bind host window immediately if it already exist (in case of a rebuild) + // This is useful as the RootWindowForTitleBarHighlight links necessary to highlight the currently focused node requires node->HostWindow to be set. + char host_window_title[20]; + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + node->HostWindow = FindWindowByName(DockNodeGetHostWindowTitle(root_node, host_window_title, IM_ARRAYSIZE(host_window_title))); + } +} + +void ImGui::DockContextBuildAddWindowsToNodes(ImGuiContext* ctx, ImGuiID root_id) +{ + // Rebind all windows to nodes (they can also lazily rebind but we'll have a visible glitch during the first frame) + ImGuiContext& g = *ctx; + for (ImGuiWindow* window : g.Windows) + { + if (window->DockId == 0 || window->LastFrameActive < g.FrameCount - 1) + continue; + if (window->DockNode != NULL) + continue; + + ImGuiDockNode* node = DockContextFindNodeByID(ctx, window->DockId); + IM_ASSERT(node != NULL); // This should have been called after DockContextBuildNodesFromSettings() + if (root_id == 0 || DockNodeGetRootNode(node)->ID == root_id) + DockNodeAddWindow(node, window, true); + } +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockContext Docking/Undocking functions +//----------------------------------------------------------------------------- +// - DockContextQueueDock() +// - DockContextQueueUndockWindow() +// - DockContextQueueUndockNode() +// - DockContextQueueNotifyRemovedNode() +// - DockContextProcessDock() +// - DockContextProcessUndockWindow() +// - DockContextProcessUndockNode() +// - DockContextCalcDropPosForDocking() +//----------------------------------------------------------------------------- + +void ImGui::DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer) +{ + IM_ASSERT(target != payload); + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Dock; + req.DockTargetWindow = target; + req.DockTargetNode = target_node; + req.DockPayload = payload; + req.DockSplitDir = split_dir; + req.DockSplitRatio = split_ratio; + req.DockSplitOuter = split_outer; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window) +{ + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Undock; + req.UndockTargetWindow = window; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Undock; + req.UndockTargetNode = node; + ctx->DockContext.Requests.push_back(req); +} + +void ImGui::DockContextQueueNotifyRemovedNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiDockContext* dc = &ctx->DockContext; + for (ImGuiDockRequest& req : dc->Requests) + if (req.DockTargetNode == node) + req.Type = ImGuiDockRequestType_None; +} + +void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req) +{ + IM_ASSERT((req->Type == ImGuiDockRequestType_Dock && req->DockPayload != NULL) || (req->Type == ImGuiDockRequestType_Split && req->DockPayload == NULL)); + IM_ASSERT(req->DockTargetWindow != NULL || req->DockTargetNode != NULL); + + ImGuiContext& g = *ctx; + IM_UNUSED(g); + + ImGuiWindow* payload_window = req->DockPayload; // Optional + ImGuiWindow* target_window = req->DockTargetWindow; + ImGuiDockNode* node = req->DockTargetNode; + if (payload_window) + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X target '%s' dock window '%s', split_dir %d\n", node ? node->ID : 0, target_window ? target_window->Name : "NULL", payload_window->Name, req->DockSplitDir); + else + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessDock node 0x%08X, split_dir %d\n", node ? node->ID : 0, req->DockSplitDir); + + // Decide which Tab will be selected at the end of the operation + ImGuiID next_selected_id = 0; + ImGuiDockNode* payload_node = NULL; + if (payload_window) + { + payload_node = payload_window->DockNodeAsHost; + payload_window->DockNodeAsHost = NULL; // Important to clear this as the node will have its life as a child which might be merged/deleted later. + if (payload_node && payload_node->IsLeafNode()) + next_selected_id = payload_node->TabBar->NextSelectedTabId ? payload_node->TabBar->NextSelectedTabId : payload_node->TabBar->SelectedTabId; + if (payload_node == NULL) + next_selected_id = payload_window->TabId; + } + + // FIXME-DOCK: When we are trying to dock an existing single-window node into a loose window, transfer Node ID as well + // When processing an interactive split, usually LastFrameAlive will be < g.FrameCount. But DockBuilder operations can make it ==. + if (node) + IM_ASSERT(node->LastFrameAlive <= g.FrameCount); + if (node && target_window && node == target_window->DockNodeAsHost) + IM_ASSERT(node->Windows.Size > 0 || node->IsSplitNode() || node->IsCentralNode()); + + // Create new node and add existing window to it + if (node == NULL) + { + node = DockContextAddNode(ctx, 0); + node->Pos = target_window->Pos; + node->Size = target_window->Size; + if (target_window->DockNodeAsHost == NULL) + { + DockNodeAddWindow(node, target_window, true); + node->TabBar->Tabs[0].Flags &= ~ImGuiTabItemFlags_Unsorted; + target_window->DockIsActive = true; + } + } + + ImGuiDir split_dir = req->DockSplitDir; + if (split_dir != ImGuiDir_None) + { + // Split into two, one side will be our payload node unless we are dropping a loose window + const ImGuiAxis split_axis = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + const int split_inheritor_child_idx = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 1 : 0; // Current contents will be moved to the opposite side + const float split_ratio = req->DockSplitRatio; + DockNodeTreeSplit(ctx, node, split_axis, split_inheritor_child_idx, split_ratio, payload_node); // payload_node may be NULL here! + ImGuiDockNode* new_node = node->ChildNodes[split_inheritor_child_idx ^ 1]; + new_node->HostWindow = node->HostWindow; + node = new_node; + } + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_HiddenTabBar); + + if (node != payload_node) + { + // Create tab bar before we call DockNodeMoveWindows (which would attempt to move the old tab-bar, which would lead us to payload tabs wrongly appearing before target tabs!) + if (node->Windows.Size > 0 && node->TabBar == NULL) + { + DockNodeAddTabBar(node); + for (int n = 0; n < node->Windows.Size; n++) + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_None, node->Windows[n]); + } + + if (payload_node != NULL) + { + // Transfer full payload node (with 1+ child windows or child nodes) + if (payload_node->IsSplitNode()) + { + if (node->Windows.Size > 0) + { + // We can dock a split payload into a node that already has windows _only_ if our payload is a node tree with a single visible node. + // In this situation, we move the windows of the target node into the currently visible node of the payload. + // This allows us to preserve some of the underlying dock tree settings nicely. + IM_ASSERT(payload_node->OnlyNodeWithWindows != NULL); // The docking should have been blocked by DockNodePreviewDockSetup() early on and never submitted. + ImGuiDockNode* visible_node = payload_node->OnlyNodeWithWindows; + if (visible_node->TabBar) + IM_ASSERT(visible_node->TabBar->Tabs.Size > 0); + DockNodeMoveWindows(node, visible_node); + DockNodeMoveWindows(visible_node, node); + DockSettingsRenameNodeReferences(node->ID, visible_node->ID); + } + if (node->IsCentralNode()) + { + // Central node property needs to be moved to a leaf node, pick the last focused one. + // FIXME-DOCK: If we had to transfer other flags here, what would the policy be? + ImGuiDockNode* last_focused_node = DockContextFindNodeByID(ctx, payload_node->LastFocusedNodeId); + IM_ASSERT(last_focused_node != NULL); + ImGuiDockNode* last_focused_root_node = DockNodeGetRootNode(last_focused_node); + IM_ASSERT(last_focused_root_node == DockNodeGetRootNode(payload_node)); + last_focused_node->SetLocalFlags(last_focused_node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_CentralNode); + last_focused_root_node->CentralNode = last_focused_node; + } + + IM_ASSERT(node->Windows.Size == 0); + DockNodeMoveChildNodes(node, payload_node); + } + else + { + const ImGuiID payload_dock_id = payload_node->ID; + DockNodeMoveWindows(node, payload_node); + DockSettingsRenameNodeReferences(payload_dock_id, node->ID); + } + DockContextRemoveNode(ctx, payload_node, true); + } + else if (payload_window) + { + // Transfer single window + const ImGuiID payload_dock_id = payload_window->DockId; + node->VisibleWindow = payload_window; + DockNodeAddWindow(node, payload_window, true); + if (payload_dock_id != 0) + DockSettingsRenameNodeReferences(payload_dock_id, node->ID); + } + } + else + { + // When docking a floating single window node we want to reevaluate auto-hiding of the tab bar + node->WantHiddenTabBarUpdate = true; + } + + // Update selection immediately + if (ImGuiTabBar* tab_bar = node->TabBar) + tab_bar->NextSelectedTabId = next_selected_id; + MarkIniSettingsDirty(); +} + +// Problem: +// Undocking a large (~full screen) window would leave it so large that the bottom right sizing corner would more +// than likely be off the screen and the window would be hard to resize to fit on screen. This can be particularly problematic +// with 'ConfigWindowsMoveFromTitleBarOnly=true' and/or with 'ConfigWindowsResizeFromEdges=false' as well (the later can be +// due to missing ImGuiBackendFlags_HasMouseCursors backend flag). +// Solution: +// When undocking a window we currently force its maximum size to 90% of the host viewport or monitor. +// Reevaluate this when we implement preserving docked/undocked size ("docking_wip/undocked_size" branch). +static ImVec2 FixLargeWindowsWhenUndocking(const ImVec2& size, ImGuiViewport* ref_viewport) +{ + if (ref_viewport == NULL) + return size; + + ImGuiContext& g = *GImGui; + ImVec2 max_size = ImFloor(ref_viewport->WorkSize * 0.90f); + if (g.ConfigFlagsCurrFrame & ImGuiConfigFlags_ViewportsEnable) + { + const ImGuiPlatformMonitor* monitor = ImGui::GetViewportPlatformMonitor(ref_viewport); + max_size = ImFloor(monitor->WorkSize * 0.90f); + } + return ImMin(size, max_size); +} + +void ImGui::DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref) +{ + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockWindow window '%s', clear_persistent_docking_ref = %d\n", window->Name, clear_persistent_docking_ref); + if (window->DockNode) + DockNodeRemoveWindow(window->DockNode, window, clear_persistent_docking_ref ? 0 : window->DockId); + else + window->DockId = 0; + window->Collapsed = false; + window->DockIsActive = false; + window->DockNodeIsVisible = window->DockTabIsVisible = false; + window->Size = window->SizeFull = FixLargeWindowsWhenUndocking(window->SizeFull, window->Viewport); + + MarkIniSettingsDirty(); +} + +void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node) +{ + ImGuiContext& g = *ctx; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextProcessUndockNode node %08X\n", node->ID); + IM_ASSERT(node->IsLeafNode()); + IM_ASSERT(node->Windows.Size >= 1); + + if (node->IsRootNode() || node->IsCentralNode()) + { + // In the case of a root node or central node, the node will have to stay in place. Create a new node to receive the payload. + ImGuiDockNode* new_node = DockContextAddNode(ctx, 0); + new_node->Pos = node->Pos; + new_node->Size = node->Size; + new_node->SizeRef = node->SizeRef; + DockNodeMoveWindows(new_node, node); + DockSettingsRenameNodeReferences(node->ID, new_node->ID); + node = new_node; + } + else + { + // Otherwise extract our node and merge our sibling back into the parent node. + IM_ASSERT(node->ParentNode->ChildNodes[0] == node || node->ParentNode->ChildNodes[1] == node); + int index_in_parent = (node->ParentNode->ChildNodes[0] == node) ? 0 : 1; + node->ParentNode->ChildNodes[index_in_parent] = NULL; + DockNodeTreeMerge(ctx, node->ParentNode, node->ParentNode->ChildNodes[index_in_parent ^ 1]); + node->ParentNode->AuthorityForViewport = ImGuiDataAuthority_Window; // The node that stays in place keeps the viewport, so our newly dragged out node will create a new viewport + node->ParentNode = NULL; + } + for (ImGuiWindow* window : node->Windows) + { + window->Flags &= ~ImGuiWindowFlags_ChildWindow; + if (window->ParentWindow) + window->ParentWindow->DC.ChildWindows.find_erase(window); + UpdateWindowParentAndRootLinks(window, window->Flags, NULL); + } + node->AuthorityForPos = node->AuthorityForSize = ImGuiDataAuthority_DockNode; + node->Size = FixLargeWindowsWhenUndocking(node->Size, node->Windows[0]->Viewport); + node->WantMouseMove = true; + MarkIniSettingsDirty(); +} + +// This is mostly used for automation. +bool ImGui::DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos) +{ + // In DockNodePreviewDockSetup() for a root central node instead of showing both "inner" and "outer" drop rects + // (which would be functionally identical) we only show the outer one. Reflect this here. + if (target_node && target_node->ParentNode == NULL && target_node->IsCentralNode() && split_dir != ImGuiDir_None) + split_outer = true; + ImGuiDockPreviewData split_data; + DockNodePreviewDockSetup(target, target_node, payload_window, payload_node, &split_data, false, split_outer); + if (split_data.DropRectsDraw[split_dir+1].IsInverted()) + return false; + *out_pos = split_data.DropRectsDraw[split_dir+1].GetCenter(); + return true; +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockNode +//----------------------------------------------------------------------------- +// - DockNodeGetTabOrder() +// - DockNodeAddWindow() +// - DockNodeRemoveWindow() +// - DockNodeMoveChildNodes() +// - DockNodeMoveWindows() +// - DockNodeApplyPosSizeToWindows() +// - DockNodeHideHostWindow() +// - ImGuiDockNodeFindInfoResults +// - DockNodeFindInfo() +// - DockNodeFindWindowByID() +// - DockNodeUpdateFlagsAndCollapse() +// - DockNodeUpdateHasCentralNodeFlag() +// - DockNodeUpdateVisibleFlag() +// - DockNodeStartMouseMovingWindow() +// - DockNodeUpdate() +// - DockNodeUpdateWindowMenu() +// - DockNodeBeginAmendTabBar() +// - DockNodeEndAmendTabBar() +// - DockNodeUpdateTabBar() +// - DockNodeAddTabBar() +// - DockNodeRemoveTabBar() +// - DockNodeIsDropAllowedOne() +// - DockNodeIsDropAllowed() +// - DockNodeCalcTabBarLayout() +// - DockNodeCalcSplitRects() +// - DockNodeCalcDropRectsAndTestMousePos() +// - DockNodePreviewDockSetup() +// - DockNodePreviewDockRender() +//----------------------------------------------------------------------------- + +ImGuiDockNode::ImGuiDockNode(ImGuiID id) +{ + ID = id; + SharedFlags = LocalFlags = LocalFlagsInWindows = MergedFlags = ImGuiDockNodeFlags_None; + ParentNode = ChildNodes[0] = ChildNodes[1] = NULL; + TabBar = NULL; + SplitAxis = ImGuiAxis_None; + + State = ImGuiDockNodeState_Unknown; + LastBgColor = IM_COL32_WHITE; + HostWindow = VisibleWindow = NULL; + CentralNode = OnlyNodeWithWindows = NULL; + CountNodeWithWindows = 0; + LastFrameAlive = LastFrameActive = LastFrameFocused = -1; + LastFocusedNodeId = 0; + SelectedTabId = 0; + WantCloseTabId = 0; + RefViewportId = 0; + AuthorityForPos = AuthorityForSize = ImGuiDataAuthority_DockNode; + AuthorityForViewport = ImGuiDataAuthority_Auto; + IsVisible = true; + IsFocused = HasCloseButton = HasWindowMenuButton = HasCentralNodeChild = false; + IsBgDrawnThisFrame = false; + WantCloseAll = WantLockSizeOnce = WantMouseMove = WantHiddenTabBarUpdate = WantHiddenTabBarToggle = false; +} + +ImGuiDockNode::~ImGuiDockNode() +{ + IM_DELETE(TabBar); + TabBar = NULL; + ChildNodes[0] = ChildNodes[1] = NULL; +} + +int ImGui::DockNodeGetTabOrder(ImGuiWindow* window) +{ + ImGuiTabBar* tab_bar = window->DockNode->TabBar; + if (tab_bar == NULL) + return -1; + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, window->TabId); + return tab ? TabBarGetTabOrder(tab_bar, tab) : -1; +} + +static void DockNodeHideWindowDuringHostWindowCreation(ImGuiWindow* window) +{ + window->Hidden = true; + window->HiddenFramesCanSkipItems = window->Active ? 1 : 2; +} + +static void ImGui::DockNodeAddWindow(ImGuiDockNode* node, ImGuiWindow* window, bool add_to_tab_bar) +{ + ImGuiContext& g = *GImGui; (void)g; + if (window->DockNode) + { + // Can overwrite an existing window->DockNode (e.g. pointing to a disabled DockSpace node) + IM_ASSERT(window->DockNode->ID != node->ID); + DockNodeRemoveWindow(window->DockNode, window, 0); + } + IM_ASSERT(window->DockNode == NULL || window->DockNodeAsHost == NULL); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeAddWindow node 0x%08X window '%s'\n", node->ID, window->Name); + + // If more than 2 windows appeared on the same frame leading to the creation of a new hosting window, + // we'll hide windows until the host window is ready. Hide the 1st window after its been output (so it is not visible for one frame). + // We will call DockNodeHideWindowDuringHostWindowCreation() on ourselves in Begin() + if (node->HostWindow == NULL && node->Windows.Size == 1 && node->Windows[0]->WasActive == false) + DockNodeHideWindowDuringHostWindowCreation(node->Windows[0]); + + node->Windows.push_back(window); + node->WantHiddenTabBarUpdate = true; + window->DockNode = node; + window->DockId = node->ID; + window->DockIsActive = (node->Windows.Size > 1); + window->DockTabWantClose = false; + + // When reactivating a node with one or two loose window, the window pos/size/viewport are authoritative over the node storage. + // In particular it is important we init the viewport from the first window so we don't create two viewports and drop one. + if (node->HostWindow == NULL && node->IsFloatingNode()) + { + if (node->AuthorityForPos == ImGuiDataAuthority_Auto) + node->AuthorityForPos = ImGuiDataAuthority_Window; + if (node->AuthorityForSize == ImGuiDataAuthority_Auto) + node->AuthorityForSize = ImGuiDataAuthority_Window; + if (node->AuthorityForViewport == ImGuiDataAuthority_Auto) + node->AuthorityForViewport = ImGuiDataAuthority_Window; + } + + // Add to tab bar if requested + if (add_to_tab_bar) + { + if (node->TabBar == NULL) + { + DockNodeAddTabBar(node); + node->TabBar->SelectedTabId = node->TabBar->NextSelectedTabId = node->SelectedTabId; + + // Add existing windows + for (int n = 0; n < node->Windows.Size - 1; n++) + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_None, node->Windows[n]); + } + TabBarAddTab(node->TabBar, ImGuiTabItemFlags_Unsorted, window); + } + + DockNodeUpdateVisibleFlag(node); + + // Update this without waiting for the next time we Begin() in the window, so our host window will have the proper title bar color on its first frame. + if (node->HostWindow) + UpdateWindowParentAndRootLinks(window, window->Flags | ImGuiWindowFlags_ChildWindow, node->HostWindow); +} + +static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window, ImGuiID save_dock_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window->DockNode == node); + //IM_ASSERT(window->RootWindowDockTree == node->HostWindow); + //IM_ASSERT(window->LastFrameActive < g.FrameCount); // We may call this from Begin() + IM_ASSERT(save_dock_id == 0 || save_dock_id == node->ID); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeRemoveWindow node 0x%08X window '%s'\n", node->ID, window->Name); + + window->DockNode = NULL; + window->DockIsActive = window->DockTabWantClose = false; + window->DockId = save_dock_id; + window->Flags &= ~ImGuiWindowFlags_ChildWindow; + if (window->ParentWindow) + window->ParentWindow->DC.ChildWindows.find_erase(window); + UpdateWindowParentAndRootLinks(window, window->Flags, NULL); // Update immediately + + if (node->HostWindow && node->HostWindow->ViewportOwned) + { + // When undocking from a user interaction this will always run in NewFrame() and have not much effect. + // But mid-frame, if we clear viewport we need to mark window as hidden as well. + window->Viewport = NULL; + window->ViewportId = 0; + window->ViewportOwned = false; + window->Hidden = true; + } + + // Remove window + bool erased = false; + for (int n = 0; n < node->Windows.Size; n++) + if (node->Windows[n] == window) + { + node->Windows.erase(node->Windows.Data + n); + erased = true; + break; + } + if (!erased) + IM_ASSERT(erased); + if (node->VisibleWindow == window) + node->VisibleWindow = NULL; + + // Remove tab and possibly tab bar + node->WantHiddenTabBarUpdate = true; + if (node->TabBar) + { + TabBarRemoveTab(node->TabBar, window->TabId); + const int tab_count_threshold_for_tab_bar = node->IsCentralNode() ? 1 : 2; + if (node->Windows.Size < tab_count_threshold_for_tab_bar) + DockNodeRemoveTabBar(node); + } + + if (node->Windows.Size == 0 && !node->IsCentralNode() && !node->IsDockSpace() && window->DockId != node->ID) + { + // Automatic dock node delete themselves if they are not holding at least one tab + DockContextRemoveNode(&g, node, true); + return; + } + + if (node->Windows.Size == 1 && !node->IsCentralNode() && node->HostWindow) + { + ImGuiWindow* remaining_window = node->Windows[0]; + // Note: we used to transport viewport ownership here. + remaining_window->Collapsed = node->HostWindow->Collapsed; + } + + // Update visibility immediately is required so the DockNodeUpdateRemoveInactiveChilds() processing can reflect changes up the tree + DockNodeUpdateVisibleFlag(node); +} + +static void ImGui::DockNodeMoveChildNodes(ImGuiDockNode* dst_node, ImGuiDockNode* src_node) +{ + IM_ASSERT(dst_node->Windows.Size == 0); + dst_node->ChildNodes[0] = src_node->ChildNodes[0]; + dst_node->ChildNodes[1] = src_node->ChildNodes[1]; + if (dst_node->ChildNodes[0]) + dst_node->ChildNodes[0]->ParentNode = dst_node; + if (dst_node->ChildNodes[1]) + dst_node->ChildNodes[1]->ParentNode = dst_node; + dst_node->SplitAxis = src_node->SplitAxis; + dst_node->SizeRef = src_node->SizeRef; + src_node->ChildNodes[0] = src_node->ChildNodes[1] = NULL; +} + +static void ImGui::DockNodeMoveWindows(ImGuiDockNode* dst_node, ImGuiDockNode* src_node) +{ + // Insert tabs in the same orders as currently ordered (node->Windows isn't ordered) + IM_ASSERT(src_node && dst_node && dst_node != src_node); + ImGuiTabBar* src_tab_bar = src_node->TabBar; + if (src_tab_bar != NULL) + IM_ASSERT(src_node->Windows.Size <= src_node->TabBar->Tabs.Size); + + // If the dst_node is empty we can just move the entire tab bar (to preserve selection, scrolling, etc.) + bool move_tab_bar = (src_tab_bar != NULL) && (dst_node->TabBar == NULL); + if (move_tab_bar) + { + dst_node->TabBar = src_node->TabBar; + src_node->TabBar = NULL; + } + + // Tab order is not important here, it is preserved by sorting in DockNodeUpdateTabBar(). + for (ImGuiWindow* window : src_node->Windows) + { + window->DockNode = NULL; + window->DockIsActive = false; + DockNodeAddWindow(dst_node, window, !move_tab_bar); + } + src_node->Windows.clear(); + + if (!move_tab_bar && src_node->TabBar) + { + if (dst_node->TabBar) + dst_node->TabBar->SelectedTabId = src_node->TabBar->SelectedTabId; + DockNodeRemoveTabBar(src_node); + } +} + +static void ImGui::DockNodeApplyPosSizeToWindows(ImGuiDockNode* node) +{ + for (ImGuiWindow* window : node->Windows) + { + SetWindowPos(window, node->Pos, ImGuiCond_Always); // We don't assign directly to Pos because it can break the calculation of SizeContents on next frame + SetWindowSize(window, node->Size, ImGuiCond_Always); + } +} + +static void ImGui::DockNodeHideHostWindow(ImGuiDockNode* node) +{ + if (node->HostWindow) + { + if (node->HostWindow->DockNodeAsHost == node) + node->HostWindow->DockNodeAsHost = NULL; + node->HostWindow = NULL; + } + + if (node->Windows.Size == 1) + { + node->VisibleWindow = node->Windows[0]; + node->Windows[0]->DockIsActive = false; + } + + if (node->TabBar) + DockNodeRemoveTabBar(node); +} + +// Search function called once by root node in DockNodeUpdate() +struct ImGuiDockNodeTreeInfo +{ + ImGuiDockNode* CentralNode; + ImGuiDockNode* FirstNodeWithWindows; + int CountNodesWithWindows; + //ImGuiWindowClass WindowClassForMerges; + + ImGuiDockNodeTreeInfo() { memset(this, 0, sizeof(*this)); } +}; + +static void DockNodeFindInfo(ImGuiDockNode* node, ImGuiDockNodeTreeInfo* info) +{ + if (node->Windows.Size > 0) + { + if (info->FirstNodeWithWindows == NULL) + info->FirstNodeWithWindows = node; + info->CountNodesWithWindows++; + } + if (node->IsCentralNode()) + { + IM_ASSERT(info->CentralNode == NULL); // Should be only one + IM_ASSERT(node->IsLeafNode() && "If you get this assert: please submit .ini file + repro of actions leading to this."); + info->CentralNode = node; + } + if (info->CountNodesWithWindows > 1 && info->CentralNode != NULL) + return; + if (node->ChildNodes[0]) + DockNodeFindInfo(node->ChildNodes[0], info); + if (node->ChildNodes[1]) + DockNodeFindInfo(node->ChildNodes[1], info); +} + +static ImGuiWindow* ImGui::DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id) +{ + IM_ASSERT(id != 0); + for (ImGuiWindow* window : node->Windows) + if (window->ID == id) + return window; + return NULL; +} + +// - Remove inactive windows/nodes. +// - Update visibility flag. +static void ImGui::DockNodeUpdateFlagsAndCollapse(ImGuiDockNode* node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->ParentNode == NULL || node->ParentNode->ChildNodes[0] == node || node->ParentNode->ChildNodes[1] == node); + + // Inherit most flags + if (node->ParentNode) + node->SharedFlags = node->ParentNode->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + + // Recurse into children + // There is the possibility that one of our child becoming empty will delete itself and moving its sibling contents into 'node'. + // If 'node->ChildNode[0]' delete itself, then 'node->ChildNode[1]->Windows' will be moved into 'node' + // If 'node->ChildNode[1]' delete itself, then 'node->ChildNode[0]->Windows' will be moved into 'node' and the "remove inactive windows" loop will have run twice on those windows (harmless) + node->HasCentralNodeChild = false; + if (node->ChildNodes[0]) + DockNodeUpdateFlagsAndCollapse(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdateFlagsAndCollapse(node->ChildNodes[1]); + + // Remove inactive windows, collapse nodes + // Merge node flags overrides stored in windows + node->LocalFlagsInWindows = ImGuiDockNodeFlags_None; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + IM_ASSERT(window->DockNode == node); + + bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount); + bool remove = false; + remove |= node_was_active && (window->LastFrameActive + 1 < g.FrameCount); + remove |= node_was_active && (node->WantCloseAll || node->WantCloseTabId == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument); // Submit all _expected_ closure from last frame + remove |= (window->DockTabWantClose); + if (remove) + { + window->DockTabWantClose = false; + if (node->Windows.Size == 1 && !node->IsCentralNode()) + { + DockNodeHideHostWindow(node); + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow; + DockNodeRemoveWindow(node, window, node->ID); // Will delete the node so it'll be invalid on return + return; + } + DockNodeRemoveWindow(node, window, node->ID); + window_n--; + continue; + } + + // FIXME-DOCKING: Missing policies for conflict resolution, hence the "Experimental" tag on this. + //node->LocalFlagsInWindow &= ~window->WindowClass.DockNodeFlagsOverrideClear; + node->LocalFlagsInWindows |= window->WindowClass.DockNodeFlagsOverrideSet; + } + node->UpdateMergedFlags(); + + // Auto-hide tab bar option + ImGuiDockNodeFlags node_flags = node->MergedFlags; + if (node->WantHiddenTabBarUpdate && node->Windows.Size == 1 && (node_flags & ImGuiDockNodeFlags_AutoHideTabBar) && !node->IsHiddenTabBar()) + node->WantHiddenTabBarToggle = true; + node->WantHiddenTabBarUpdate = false; + + // Cancel toggling if we know our tab bar is enforced to be hidden at all times + if (node->WantHiddenTabBarToggle && node->VisibleWindow && (node->VisibleWindow->WindowClass.DockNodeFlagsOverrideSet & ImGuiDockNodeFlags_HiddenTabBar)) + node->WantHiddenTabBarToggle = false; + + // Apply toggles at a single point of the frame (here!) + if (node->Windows.Size > 1) + node->SetLocalFlags(node->LocalFlags & ~ImGuiDockNodeFlags_HiddenTabBar); + else if (node->WantHiddenTabBarToggle) + node->SetLocalFlags(node->LocalFlags ^ ImGuiDockNodeFlags_HiddenTabBar); + node->WantHiddenTabBarToggle = false; + + DockNodeUpdateVisibleFlag(node); +} + +// This is rarely called as DockNodeUpdateForRootNode() generally does it most frames. +static void ImGui::DockNodeUpdateHasCentralNodeChild(ImGuiDockNode* node) +{ + node->HasCentralNodeChild = false; + if (node->ChildNodes[0]) + DockNodeUpdateHasCentralNodeChild(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdateHasCentralNodeChild(node->ChildNodes[1]); + if (node->IsRootNode()) + { + ImGuiDockNode* mark_node = node->CentralNode; + while (mark_node) + { + mark_node->HasCentralNodeChild = true; + mark_node = mark_node->ParentNode; + } + } +} + +static void ImGui::DockNodeUpdateVisibleFlag(ImGuiDockNode* node) +{ + // Update visibility flag + bool is_visible = (node->ParentNode == NULL) ? node->IsDockSpace() : node->IsCentralNode(); + is_visible |= (node->Windows.Size > 0); + is_visible |= (node->ChildNodes[0] && node->ChildNodes[0]->IsVisible); + is_visible |= (node->ChildNodes[1] && node->ChildNodes[1]->IsVisible); + node->IsVisible = is_visible; +} + +static void ImGui::DockNodeStartMouseMovingWindow(ImGuiDockNode* node, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->WantMouseMove == true); + StartMouseMovingWindow(window); + g.ActiveIdClickOffset = g.IO.MouseClickedPos[0] - node->Pos; + g.MovingWindow = window; // If we are docked into a non moveable root window, StartMouseMovingWindow() won't set g.MovingWindow. Override that decision. + node->WantMouseMove = false; +} + +// Update CentralNode, OnlyNodeWithWindows, LastFocusedNodeID. Copy window class. +static void ImGui::DockNodeUpdateForRootNode(ImGuiDockNode* node) +{ + DockNodeUpdateFlagsAndCollapse(node); + + // - Setup central node pointers + // - Find if there's only a single visible window in the hierarchy (in which case we need to display a regular title bar -> FIXME-DOCK: that last part is not done yet!) + // Cannot merge this with DockNodeUpdateFlagsAndCollapse() because FirstNodeWithWindows is found after window removal and child collapsing + ImGuiDockNodeTreeInfo info; + DockNodeFindInfo(node, &info); + node->CentralNode = info.CentralNode; + node->OnlyNodeWithWindows = (info.CountNodesWithWindows == 1) ? info.FirstNodeWithWindows : NULL; + node->CountNodeWithWindows = info.CountNodesWithWindows; + if (node->LastFocusedNodeId == 0 && info.FirstNodeWithWindows != NULL) + node->LastFocusedNodeId = info.FirstNodeWithWindows->ID; + + // Copy the window class from of our first window so it can be used for proper dock filtering. + // When node has mixed windows, prioritize the class with the most constraint (DockingAllowUnclassed = false) as the reference to copy. + // FIXME-DOCK: We don't recurse properly, this code could be reworked to work from DockNodeUpdateScanRec. + if (ImGuiDockNode* first_node_with_windows = info.FirstNodeWithWindows) + { + node->WindowClass = first_node_with_windows->Windows[0]->WindowClass; + for (int n = 1; n < first_node_with_windows->Windows.Size; n++) + if (first_node_with_windows->Windows[n]->WindowClass.DockingAllowUnclassed == false) + { + node->WindowClass = first_node_with_windows->Windows[n]->WindowClass; + break; + } + } + + ImGuiDockNode* mark_node = node->CentralNode; + while (mark_node) + { + mark_node->HasCentralNodeChild = true; + mark_node = mark_node->ParentNode; + } +} + +static void DockNodeSetupHostWindow(ImGuiDockNode* node, ImGuiWindow* host_window) +{ + // Remove ourselves from any previous different host window + // This can happen if a user mistakenly does (see #4295 for details): + // - N+0: DockBuilderAddNode(id, 0) // missing ImGuiDockNodeFlags_DockSpace + // - N+1: NewFrame() // will create floating host window for that node + // - N+1: DockSpace(id) // requalify node as dockspace, moving host window + if (node->HostWindow && node->HostWindow != host_window && node->HostWindow->DockNodeAsHost == node) + node->HostWindow->DockNodeAsHost = NULL; + + host_window->DockNodeAsHost = node; + node->HostWindow = host_window; +} + +static void ImGui::DockNodeUpdate(ImGuiDockNode* node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(node->LastFrameActive != g.FrameCount); + node->LastFrameAlive = g.FrameCount; + node->IsBgDrawnThisFrame = false; + + node->CentralNode = node->OnlyNodeWithWindows = NULL; + if (node->IsRootNode()) + DockNodeUpdateForRootNode(node); + + // Remove tab bar if not needed + if (node->TabBar && node->IsNoTabBar()) + DockNodeRemoveTabBar(node); + + // Early out for hidden root dock nodes (when all DockId references are in inactive windows, or there is only 1 floating window holding on the DockId) + bool want_to_hide_host_window = false; + if (node->IsFloatingNode()) + { + if (node->Windows.Size <= 1 && node->IsLeafNode()) + if (!g.IO.ConfigDockingAlwaysTabBar && (node->Windows.Size == 0 || !node->Windows[0]->WindowClass.DockingAlwaysTabBar)) + want_to_hide_host_window = true; + if (node->CountNodeWithWindows == 0) + want_to_hide_host_window = true; + } + if (want_to_hide_host_window) + { + if (node->Windows.Size == 1) + { + // Floating window pos/size is authoritative + ImGuiWindow* single_window = node->Windows[0]; + node->Pos = single_window->Pos; + node->Size = single_window->SizeFull; + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Window; + + // Transfer focus immediately so when we revert to a regular window it is immediately selected + if (node->HostWindow && g.NavWindow == node->HostWindow) + FocusWindow(single_window); + if (node->HostWindow) + { + IMGUI_DEBUG_LOG_VIEWPORT("[viewport] Node %08X transfer Viewport %08X->%08X to Window '%s'\n", node->ID, node->HostWindow->Viewport->ID, single_window->ID, single_window->Name); + single_window->Viewport = node->HostWindow->Viewport; + single_window->ViewportId = node->HostWindow->ViewportId; + if (node->HostWindow->ViewportOwned) + { + single_window->Viewport->ID = single_window->ID; + single_window->Viewport->Window = single_window; + single_window->ViewportOwned = true; + } + } + node->RefViewportId = single_window->ViewportId; + } + + DockNodeHideHostWindow(node); + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow; + node->WantCloseAll = false; + node->WantCloseTabId = 0; + node->HasCloseButton = node->HasWindowMenuButton = false; + node->LastFrameActive = g.FrameCount; + + if (node->WantMouseMove && node->Windows.Size == 1) + DockNodeStartMouseMovingWindow(node, node->Windows[0]); + return; + } + + // In some circumstance we will defer creating the host window (so everything will be kept hidden), + // while the expected visible window is resizing itself. + // This is important for first-time (no ini settings restored) single window when io.ConfigDockingAlwaysTabBar is enabled, + // otherwise the node ends up using the minimum window size. Effectively those windows will take an extra frame to show up: + // N+0: Begin(): window created (with no known size), node is created + // N+1: DockNodeUpdate(): node skip creating host window / Begin(): window size applied, not visible + // N+2: DockNodeUpdate(): node can create host window / Begin(): window becomes visible + // We could remove this frame if we could reliably calculate the expected window size during node update, before the Begin() code. + // It would require a generalization of CalcWindowExpectedSize(), probably extracting code away from Begin(). + // In reality it isn't very important as user quickly ends up with size data in .ini file. + if (node->IsVisible && node->HostWindow == NULL && node->IsFloatingNode() && node->IsLeafNode()) + { + IM_ASSERT(node->Windows.Size > 0); + ImGuiWindow* ref_window = NULL; + if (node->SelectedTabId != 0) // Note that we prune single-window-node settings on .ini loading, so this is generally 0 for them! + ref_window = DockNodeFindWindowByID(node, node->SelectedTabId); + if (ref_window == NULL) + ref_window = node->Windows[0]; + if (ref_window->AutoFitFramesX > 0 || ref_window->AutoFitFramesY > 0) + { + node->State = ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing; + return; + } + } + + const ImGuiDockNodeFlags node_flags = node->MergedFlags; + + // Decide if the node will have a close button and a window menu button + node->HasWindowMenuButton = (node->Windows.Size > 0) && (node_flags & ImGuiDockNodeFlags_NoWindowMenuButton) == 0; + node->HasCloseButton = false; + for (ImGuiWindow* window : node->Windows) + { + // FIXME-DOCK: Setting DockIsActive here means that for single active window in a leaf node, DockIsActive will be cleared until the next Begin() call. + node->HasCloseButton |= window->HasCloseButton; + window->DockIsActive = (node->Windows.Size > 1); + } + if (node_flags & ImGuiDockNodeFlags_NoCloseButton) + node->HasCloseButton = false; + + // Bind or create host window + ImGuiWindow* host_window = NULL; + bool beginned_into_host_window = false; + if (node->IsDockSpace()) + { + // [Explicit root dockspace node] + IM_ASSERT(node->HostWindow); + host_window = node->HostWindow; + } + else + { + // [Automatic root or child nodes] + if (node->IsRootNode() && node->IsVisible) + { + ImGuiWindow* ref_window = (node->Windows.Size > 0) ? node->Windows[0] : NULL; + + // Sync Pos + if (node->AuthorityForPos == ImGuiDataAuthority_Window && ref_window) + SetNextWindowPos(ref_window->Pos); + else if (node->AuthorityForPos == ImGuiDataAuthority_DockNode) + SetNextWindowPos(node->Pos); + + // Sync Size + if (node->AuthorityForSize == ImGuiDataAuthority_Window && ref_window) + SetNextWindowSize(ref_window->SizeFull); + else if (node->AuthorityForSize == ImGuiDataAuthority_DockNode) + SetNextWindowSize(node->Size); + + // Sync Collapsed + if (node->AuthorityForSize == ImGuiDataAuthority_Window && ref_window) + SetNextWindowCollapsed(ref_window->Collapsed); + + // Sync Viewport + if (node->AuthorityForViewport == ImGuiDataAuthority_Window && ref_window) + SetNextWindowViewport(ref_window->ViewportId); + else if (node->AuthorityForViewport == ImGuiDataAuthority_Window && node->RefViewportId != 0) + SetNextWindowViewport(node->RefViewportId); + + SetNextWindowClass(&node->WindowClass); + + // Begin into the host window + char window_label[20]; + DockNodeGetHostWindowTitle(node, window_label, IM_ARRAYSIZE(window_label)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse | ImGuiWindowFlags_DockNodeHost; + window_flags |= ImGuiWindowFlags_NoFocusOnAppearing; + window_flags |= ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus | ImGuiWindowFlags_NoCollapse; + window_flags |= ImGuiWindowFlags_NoTitleBar; + + SetNextWindowBgAlpha(0.0f); // Don't set ImGuiWindowFlags_NoBackground because it disables borders + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); + Begin(window_label, NULL, window_flags); + PopStyleVar(); + beginned_into_host_window = true; + + host_window = g.CurrentWindow; + DockNodeSetupHostWindow(node, host_window); + host_window->DC.CursorPos = host_window->Pos; + node->Pos = host_window->Pos; + node->Size = host_window->Size; + + // We set ImGuiWindowFlags_NoFocusOnAppearing because we don't want the host window to take full focus (e.g. steal NavWindow) + // But we still it bring it to the front of display. There's no way to choose this precise behavior via window flags. + // One simple case to ponder if: window A has a toggle to create windows B/C/D. Dock B/C/D together, clear the toggle and enable it again. + // When reappearing B/C/D will request focus and be moved to the top of the display pile, but they are not linked to the dock host window + // during the frame they appear. The dock host window would keep its old display order, and the sorting in EndFrame would move B/C/D back + // after the dock host window, losing their top-most status. + if (node->HostWindow->Appearing) + BringWindowToDisplayFront(node->HostWindow); + + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Auto; + } + else if (node->ParentNode) + { + node->HostWindow = host_window = node->ParentNode->HostWindow; + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Auto; + } + if (node->WantMouseMove && node->HostWindow) + DockNodeStartMouseMovingWindow(node, node->HostWindow); + } + node->RefViewportId = 0; // Clear when we have a host window + + // Update focused node (the one whose title bar is highlight) within a node tree + if (node->IsSplitNode()) + IM_ASSERT(node->TabBar == NULL); + if (node->IsRootNode()) + if (ImGuiWindow* p_window = g.NavWindow ? g.NavWindow->RootWindow : NULL) + while (p_window != NULL && p_window->DockNode != NULL) + { + ImGuiDockNode* p_node = DockNodeGetRootNode(p_window->DockNode); + if (p_node == node) + { + node->LastFocusedNodeId = p_window->DockNode->ID; // Note: not using root node ID! + break; + } + p_window = p_node->HostWindow ? p_node->HostWindow->RootWindow : NULL; + } + + // Register a hit-test hole in the window unless we are currently dragging a window that is compatible with our dockspace + ImGuiDockNode* central_node = node->CentralNode; + const bool central_node_hole = node->IsRootNode() && host_window && (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0 && central_node != NULL && central_node->IsEmpty(); + bool central_node_hole_register_hit_test_hole = central_node_hole; + if (central_node_hole) + if (const ImGuiPayload* payload = ImGui::GetDragDropPayload()) + if (payload->IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) && DockNodeIsDropAllowed(host_window, *(ImGuiWindow**)payload->Data)) + central_node_hole_register_hit_test_hole = false; + if (central_node_hole_register_hit_test_hole) + { + // We add a little padding to match the "resize from edges" behavior and allow grabbing the splitter easily. + // (But we only add it if there's something else on the other side of the hole, otherwise for e.g. fullscreen + // covering passthru node we'd have a gap on the edge not covered by the hole) + IM_ASSERT(node->IsDockSpace()); // We cannot pass this flag without the DockSpace() api. Testing this because we also setup the hole in host_window->ParentNode + ImGuiDockNode* root_node = DockNodeGetRootNode(central_node); + ImRect root_rect(root_node->Pos, root_node->Pos + root_node->Size); + ImRect hole_rect(central_node->Pos, central_node->Pos + central_node->Size); + if (hole_rect.Min.x > root_rect.Min.x) { hole_rect.Min.x += WINDOWS_HOVER_PADDING; } + if (hole_rect.Max.x < root_rect.Max.x) { hole_rect.Max.x -= WINDOWS_HOVER_PADDING; } + if (hole_rect.Min.y > root_rect.Min.y) { hole_rect.Min.y += WINDOWS_HOVER_PADDING; } + if (hole_rect.Max.y < root_rect.Max.y) { hole_rect.Max.y -= WINDOWS_HOVER_PADDING; } + //GetForegroundDrawList()->AddRect(hole_rect.Min, hole_rect.Max, IM_COL32(255, 0, 0, 255)); + if (central_node_hole && !hole_rect.IsInverted()) + { + SetWindowHitTestHole(host_window, hole_rect.Min, hole_rect.Max - hole_rect.Min); + if (host_window->ParentWindow) + SetWindowHitTestHole(host_window->ParentWindow, hole_rect.Min, hole_rect.Max - hole_rect.Min); + } + } + + // Update position/size, process and draw resizing splitters + if (node->IsRootNode() && host_window) + { + DockNodeTreeUpdatePosSize(node, host_window->Pos, host_window->Size); + PushStyleColor(ImGuiCol_Separator, g.Style.Colors[ImGuiCol_Border]); + PushStyleColor(ImGuiCol_SeparatorActive, g.Style.Colors[ImGuiCol_ResizeGripActive]); + PushStyleColor(ImGuiCol_SeparatorHovered, g.Style.Colors[ImGuiCol_ResizeGripHovered]); + DockNodeTreeUpdateSplitter(node); + PopStyleColor(3); + } + + // Draw empty node background (currently can only be the Central Node) + if (host_window && node->IsEmpty() && node->IsVisible) + { + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + node->LastBgColor = (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) ? 0 : GetColorU32(ImGuiCol_DockingEmptyBg); + if (node->LastBgColor != 0) + host_window->DrawList->AddRectFilled(node->Pos, node->Pos + node->Size, node->LastBgColor); + node->IsBgDrawnThisFrame = true; + } + + // Draw whole dockspace background if ImGuiDockNodeFlags_PassthruCentralNode if set. + // We need to draw a background at the root level if requested by ImGuiDockNodeFlags_PassthruCentralNode, but we will only know the correct pos/size + // _after_ processing the resizing splitters. So we are using the DrawList channel splitting facility to submit drawing primitives out of order! + const bool render_dockspace_bg = node->IsRootNode() && host_window && (node_flags & ImGuiDockNodeFlags_PassthruCentralNode) != 0; + if (render_dockspace_bg && node->IsVisible) + { + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_BG); + if (central_node_hole) + RenderRectFilledWithHole(host_window->DrawList, node->Rect(), central_node->Rect(), GetColorU32(ImGuiCol_WindowBg), 0.0f); + else + host_window->DrawList->AddRectFilled(node->Pos, node->Pos + node->Size, GetColorU32(ImGuiCol_WindowBg), 0.0f); + } + + // Draw and populate Tab Bar + if (host_window) + host_window->DrawList->ChannelsSetCurrent(DOCKING_HOST_DRAW_CHANNEL_FG); + if (host_window && node->Windows.Size > 0) + { + DockNodeUpdateTabBar(node, host_window); + } + else + { + node->WantCloseAll = false; + node->WantCloseTabId = 0; + node->IsFocused = false; + } + if (node->TabBar && node->TabBar->SelectedTabId) + node->SelectedTabId = node->TabBar->SelectedTabId; + else if (node->Windows.Size > 0) + node->SelectedTabId = node->Windows[0]->TabId; + + // Draw payload drop target + if (host_window && node->IsVisible) + if (node->IsRootNode() && (g.MovingWindow == NULL || g.MovingWindow->RootWindowDockTree != host_window)) + BeginDockableDragDropTarget(host_window); + + // We update this after DockNodeUpdateTabBar() + node->LastFrameActive = g.FrameCount; + + // Recurse into children + // FIXME-DOCK FIXME-OPT: Should not need to recurse into children + if (host_window) + { + if (node->ChildNodes[0]) + DockNodeUpdate(node->ChildNodes[0]); + if (node->ChildNodes[1]) + DockNodeUpdate(node->ChildNodes[1]); + + // Render outer borders last (after the tab bar) + if (node->IsRootNode()) + RenderWindowOuterBorders(host_window); + } + + // End host window + if (beginned_into_host_window) //-V1020 + End(); +} + +// Compare TabItem nodes given the last known DockOrder (will persist in .ini file as hint), used to sort tabs when multiple tabs are added on the same frame. +static int IMGUI_CDECL TabItemComparerByDockOrder(const void* lhs, const void* rhs) +{ + ImGuiWindow* a = ((const ImGuiTabItem*)lhs)->Window; + ImGuiWindow* b = ((const ImGuiTabItem*)rhs)->Window; + if (int d = ((a->DockOrder == -1) ? INT_MAX : a->DockOrder) - ((b->DockOrder == -1) ? INT_MAX : b->DockOrder)) + return d; + return (a->BeginOrderWithinContext - b->BeginOrderWithinContext); +} + +// Default handler for g.DockNodeWindowMenuHandler(): display the list of windows for a given dock-node. +// This is exceptionally stored in a function pointer to also user applications to tweak this menu (undocumented) +// Custom overrides may want to decorate, group, sort entries. +// Please note those are internal structures: if you copy this expect occasional breakage. +void ImGui::DockNodeWindowMenuHandler_Default(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar) +{ + IM_UNUSED(ctx); + if (tab_bar->Tabs.Size == 1) + { + // "Hide tab bar" option. Being one of our rare user-facing string we pull it from a table. + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_DockingHideTabBar), NULL, node->IsHiddenTabBar())) + node->WantHiddenTabBarToggle = true; + } + else + { + // Display a selectable list of windows in this docking node + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + if (Selectable(TabBarGetTabName(tab_bar, tab), tab->ID == tab_bar->SelectedTabId)) + TabBarQueueFocus(tab_bar, tab); + SameLine(); + Text(" "); + } + } +} + +static void ImGui::DockNodeWindowMenuUpdate(ImGuiDockNode* node, ImGuiTabBar* tab_bar) +{ + // Try to position the menu so it is more likely to stays within the same viewport + ImGuiContext& g = *GImGui; + if (g.Style.WindowMenuButtonPosition == ImGuiDir_Left) + SetNextWindowPos(ImVec2(node->Pos.x, node->Pos.y + GetFrameHeight()), ImGuiCond_Always, ImVec2(0.0f, 0.0f)); + else + SetNextWindowPos(ImVec2(node->Pos.x + node->Size.x, node->Pos.y + GetFrameHeight()), ImGuiCond_Always, ImVec2(1.0f, 0.0f)); + if (BeginPopup("#WindowMenu")) + { + node->IsFocused = true; + g.DockNodeWindowMenuHandler(&g, node, tab_bar); + EndPopup(); + } +} + +// User helper to append/amend into a dock node tab bar. Most commonly used to add e.g. a "+" button. +bool ImGui::DockNodeBeginAmendTabBar(ImGuiDockNode* node) +{ + if (node->TabBar == NULL || node->HostWindow == NULL) + return false; + if (node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) + return false; + Begin(node->HostWindow->Name); + PushOverrideID(node->ID); + bool ret = BeginTabBarEx(node->TabBar, node->TabBar->BarRect, node->TabBar->Flags); + IM_UNUSED(ret); + IM_ASSERT(ret); + return true; +} + +void ImGui::DockNodeEndAmendTabBar() +{ + EndTabBar(); + PopID(); + End(); +} + +static bool IsDockNodeTitleBarHighlighted(ImGuiDockNode* node, ImGuiDockNode* root_node) +{ + // CTRL+Tab highlight (only highlighting leaf node, not whole hierarchy) + ImGuiContext& g = *GImGui; + if (g.NavWindowingTarget) + return (g.NavWindowingTarget->DockNode == node); + + // FIXME-DOCKING: May want alternative to treat central node void differently? e.g. if (g.NavWindow == host_window) + if (g.NavWindow && root_node->LastFocusedNodeId == node->ID) + { + // FIXME: This could all be backed in RootWindowForTitleBarHighlight? Probably need to reorganize for both dock nodes + other RootWindowForTitleBarHighlight users (not-node) + ImGuiWindow* parent_window = g.NavWindow->RootWindow; + while (parent_window->Flags & ImGuiWindowFlags_ChildMenu) + parent_window = parent_window->ParentWindow->RootWindow; + ImGuiDockNode* start_parent_node = parent_window->DockNodeAsHost ? parent_window->DockNodeAsHost : parent_window->DockNode; + for (ImGuiDockNode* parent_node = start_parent_node; parent_node != NULL; parent_node = parent_node->HostWindow ? parent_node->HostWindow->RootWindow->DockNode : NULL) + if ((parent_node = ImGui::DockNodeGetRootNode(parent_node)) == root_node) + return true; + } + return false; +} + +// Submit the tab bar corresponding to a dock node and various housekeeping details. +static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_window) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + const bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount); + const bool closed_all = node->WantCloseAll && node_was_active; + const ImGuiID closed_one = node->WantCloseTabId && node_was_active; + node->WantCloseAll = false; + node->WantCloseTabId = 0; + + // Decide if we should use a focused title bar color + bool is_focused = false; + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (IsDockNodeTitleBarHighlighted(node, root_node)) + is_focused = true; + + // Hidden tab bar will show a triangle on the upper-left (in Begin) + if (node->IsHiddenTabBar() || node->IsNoTabBar()) + { + node->VisibleWindow = (node->Windows.Size > 0) ? node->Windows[0] : NULL; + node->IsFocused = is_focused; + if (is_focused) + node->LastFrameFocused = g.FrameCount; + if (node->VisibleWindow) + { + // Notify root of visible window (used to display title in OS task bar) + if (is_focused || root_node->VisibleWindow == NULL) + root_node->VisibleWindow = node->VisibleWindow; + if (node->TabBar) + node->TabBar->VisibleTabId = node->VisibleWindow->TabId; + } + return; + } + + // Move ourselves to the Menu layer (so we can be accessed by tapping Alt) + undo SkipItems flag in order to draw over the title bar even if the window is collapsed + bool backup_skip_item = host_window->SkipItems; + if (!node->IsDockSpace()) + { + host_window->SkipItems = false; + host_window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + } + + // Use PushOverrideID() instead of PushID() to use the node id _without_ the host window ID. + // This is to facilitate computing those ID from the outside, and will affect more or less only the ID of the collapse button, popup and tabs, + // as docked windows themselves will override the stack with their own root ID. + PushOverrideID(node->ID); + ImGuiTabBar* tab_bar = node->TabBar; + bool tab_bar_is_recreated = (tab_bar == NULL); // Tab bar are automatically destroyed when a node gets hidden + if (tab_bar == NULL) + { + DockNodeAddTabBar(node); + tab_bar = node->TabBar; + } + + ImGuiID focus_tab_id = 0; + node->IsFocused = is_focused; + + const ImGuiDockNodeFlags node_flags = node->MergedFlags; + const bool has_window_menu_button = (node_flags & ImGuiDockNodeFlags_NoWindowMenuButton) == 0 && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // In a dock node, the Collapse Button turns into the Window Menu button. + // FIXME-DOCK FIXME-OPT: Could we recycle popups id across multiple dock nodes? + if (has_window_menu_button && IsPopupOpen("#WindowMenu")) + { + ImGuiID next_selected_tab_id = tab_bar->NextSelectedTabId; + DockNodeWindowMenuUpdate(node, tab_bar); + if (tab_bar->NextSelectedTabId != 0 && tab_bar->NextSelectedTabId != next_selected_tab_id) + focus_tab_id = tab_bar->NextSelectedTabId; + is_focused |= node->IsFocused; + } + + // Layout + ImRect title_bar_rect, tab_bar_rect; + ImVec2 window_menu_button_pos; + ImVec2 close_button_pos; + DockNodeCalcTabBarLayout(node, &title_bar_rect, &tab_bar_rect, &window_menu_button_pos, &close_button_pos); + + // Submit new tabs, they will be added as Unsorted and sorted below based on relative DockOrder value. + const int tabs_count_old = tab_bar->Tabs.Size; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if (TabBarFindTabByID(tab_bar, window->TabId) == NULL) + TabBarAddTab(tab_bar, ImGuiTabItemFlags_Unsorted, window); + } + + // Title bar + if (is_focused) + node->LastFrameFocused = g.FrameCount; + ImU32 title_bar_col = GetColorU32(host_window->Collapsed ? ImGuiCol_TitleBgCollapsed : is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + ImDrawFlags rounding_flags = CalcRoundingFlagsForRectInRect(title_bar_rect, host_window->Rect(), g.Style.DockingSeparatorSize); + host_window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, host_window->WindowRounding, rounding_flags); + + // Docking/Collapse button + if (has_window_menu_button) + { + if (CollapseButton(host_window->GetID("#COLLAPSE"), window_menu_button_pos, node)) // == DockNodeGetWindowMenuButtonId(node) + OpenPopup("#WindowMenu"); + if (IsItemActive()) + focus_tab_id = tab_bar->SelectedTabId; + } + + // If multiple tabs are appearing on the same frame, sort them based on their persistent DockOrder value + int tabs_unsorted_start = tab_bar->Tabs.Size; + for (int tab_n = tab_bar->Tabs.Size - 1; tab_n >= 0 && (tab_bar->Tabs[tab_n].Flags & ImGuiTabItemFlags_Unsorted); tab_n--) + { + // FIXME-DOCK: Consider only clearing the flag after the tab has been alive for a few consecutive frames, allowing late comers to not break sorting? + tab_bar->Tabs[tab_n].Flags &= ~ImGuiTabItemFlags_Unsorted; + tabs_unsorted_start = tab_n; + } + if (tab_bar->Tabs.Size > tabs_unsorted_start) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] In node 0x%08X: %d new appearing tabs:%s\n", node->ID, tab_bar->Tabs.Size - tabs_unsorted_start, (tab_bar->Tabs.Size > tabs_unsorted_start + 1) ? " (will sort)" : ""); + for (int tab_n = tabs_unsorted_start; tab_n < tab_bar->Tabs.Size; tab_n++) + IMGUI_DEBUG_LOG_DOCKING("[docking] - Tab '%s' Order %d\n", tab_bar->Tabs[tab_n].Window->Name, tab_bar->Tabs[tab_n].Window->DockOrder); + if (tab_bar->Tabs.Size > tabs_unsorted_start + 1) + ImQsort(tab_bar->Tabs.Data + tabs_unsorted_start, tab_bar->Tabs.Size - tabs_unsorted_start, sizeof(ImGuiTabItem), TabItemComparerByDockOrder); + } + + // Apply NavWindow focus back to the tab bar + if (g.NavWindow && g.NavWindow->RootWindow->DockNode == node) + tab_bar->SelectedTabId = g.NavWindow->RootWindow->TabId; + + // Selected newly added tabs, or persistent tab ID if the tab bar was just recreated + if (tab_bar_is_recreated && TabBarFindTabByID(tab_bar, node->SelectedTabId) != NULL) + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = node->SelectedTabId; + else if (tab_bar->Tabs.Size > tabs_count_old) + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = tab_bar->Tabs.back().Window->TabId; + + // Begin tab bar + ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_AutoSelectNewTabs; // | ImGuiTabBarFlags_NoTabListScrollingButtons); + tab_bar_flags |= ImGuiTabBarFlags_SaveSettings | ImGuiTabBarFlags_DockNode;// | ImGuiTabBarFlags_FittingPolicyScroll; + if (!host_window->Collapsed && is_focused) + tab_bar_flags |= ImGuiTabBarFlags_IsFocused; + tab_bar->ID = GetID("#TabBar"); + tab_bar->SeparatorMinX = node->Pos.x + host_window->WindowBorderSize; // Separator cover the whole node width + tab_bar->SeparatorMaxX = node->Pos.x + node->Size.x - host_window->WindowBorderSize; + BeginTabBarEx(tab_bar, tab_bar_rect, tab_bar_flags); + //host_window->DrawList->AddRect(tab_bar_rect.Min, tab_bar_rect.Max, IM_COL32(255,0,255,255)); + + // Backup style colors + ImVec4 backup_style_cols[ImGuiWindowDockStyleCol_COUNT]; + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + backup_style_cols[color_n] = g.Style.Colors[GWindowDockStyleColors[color_n]]; + + // Submit actual tabs + node->VisibleWindow = NULL; + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if ((closed_all || closed_one == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument)) + continue; + if (window->LastFrameActive + 1 >= g.FrameCount || !node_was_active) + { + ImGuiTabItemFlags tab_item_flags = 0; + tab_item_flags |= window->WindowClass.TabItemFlagsOverrideSet; + if (window->Flags & ImGuiWindowFlags_UnsavedDocument) + tab_item_flags |= ImGuiTabItemFlags_UnsavedDocument; + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + tab_item_flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Apply stored style overrides for the window + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + g.Style.Colors[GWindowDockStyleColors[color_n]] = ColorConvertU32ToFloat4(window->DockStyle.Colors[color_n]); + + // Note that TabItemEx() calls TabBarCalcTabID() so our tab item ID will ignore the current ID stack (rightly so) + bool tab_open = true; + TabItemEx(tab_bar, window->Name, window->HasCloseButton ? &tab_open : NULL, tab_item_flags, window); + if (!tab_open) + node->WantCloseTabId = window->TabId; + if (tab_bar->VisibleTabId == window->TabId) + node->VisibleWindow = window; + + // Store last item data so it can be queried with IsItemXXX functions after the user Begin() call + window->DockTabItemStatusFlags = g.LastItemData.StatusFlags; + window->DockTabItemRect = g.LastItemData.Rect; + + // Update navigation ID on menu layer + if (g.NavWindow && g.NavWindow->RootWindow == window && (window->DC.NavLayersActiveMask & (1 << ImGuiNavLayer_Menu)) == 0) + host_window->NavLastIds[1] = window->TabId; + } + } + + // Restore style colors + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + g.Style.Colors[GWindowDockStyleColors[color_n]] = backup_style_cols[color_n]; + + // Notify root of visible window (used to display title in OS task bar) + if (node->VisibleWindow) + if (is_focused || root_node->VisibleWindow == NULL) + root_node->VisibleWindow = node->VisibleWindow; + + // Close button (after VisibleWindow was updated) + // Note that VisibleWindow may have been overrided by CTRL+Tabbing, so VisibleWindow->TabId may be != from tab_bar->SelectedTabId + const bool close_button_is_enabled = node->HasCloseButton && node->VisibleWindow && node->VisibleWindow->HasCloseButton; + const bool close_button_is_visible = node->HasCloseButton; + //const bool close_button_is_visible = close_button_is_enabled; // Most people would expect this behavior of not even showing the button (leaving a hole since we can't claim that space as other windows in the tba bar have one) + if (close_button_is_visible) + { + if (!close_button_is_enabled) + { + PushItemFlag(ImGuiItemFlags_Disabled, true); + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_Text] * ImVec4(1.0f,1.0f,1.0f,0.4f)); + } + if (CloseButton(host_window->GetID("#CLOSE"), close_button_pos)) + { + node->WantCloseAll = true; + for (int n = 0; n < tab_bar->Tabs.Size; n++) + TabBarCloseTab(tab_bar, &tab_bar->Tabs[n]); + } + //if (IsItemActive()) + // focus_tab_id = tab_bar->SelectedTabId; + if (!close_button_is_enabled) + { + PopStyleColor(); + PopItemFlag(); + } + } + + // When clicking on the title bar outside of tabs, we still focus the selected tab for that node + // FIXME: TabItems submitted earlier use AllowItemOverlap so we manually perform a more specific test for now (hovered || held) in order to not cover them. + ImGuiID title_bar_id = host_window->GetID("#TITLEBAR"); + if (g.HoveredId == 0 || g.HoveredId == title_bar_id || g.ActiveId == title_bar_id) + { + // AllowItem mode required for appending into dock node tab bar, + // otherwise dragging window will steal HoveredId and amended tabs cannot get them. + bool held; + KeepAliveID(title_bar_id); + ButtonBehavior(title_bar_rect, title_bar_id, NULL, &held, ImGuiButtonFlags_AllowOverlap); + if (g.HoveredId == title_bar_id) + { + g.LastItemData.ID = title_bar_id; + } + if (held) + { + if (IsMouseClicked(0)) + focus_tab_id = tab_bar->SelectedTabId; + + // Forward moving request to selected window + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + StartMouseMovingWindowOrNode(tab->Window ? tab->Window : node->HostWindow, node, false); + } + } + + // Forward focus from host node to selected window + //if (is_focused && g.NavWindow == host_window && !g.NavWindowingTarget) + // focus_tab_id = tab_bar->SelectedTabId; + + // When clicked on a tab we requested focus to the docked child + // This overrides the value set by "forward focus from host node to selected window". + if (tab_bar->NextSelectedTabId) + focus_tab_id = tab_bar->NextSelectedTabId; + + // Apply navigation focus + if (focus_tab_id != 0) + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, focus_tab_id)) + if (tab->Window) + { + FocusWindow(tab->Window); + NavInitWindow(tab->Window, false); + } + + EndTabBar(); + PopID(); + + // Restore SkipItems flag + if (!node->IsDockSpace()) + { + host_window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + host_window->SkipItems = backup_skip_item; + } +} + +static void ImGui::DockNodeAddTabBar(ImGuiDockNode* node) +{ + IM_ASSERT(node->TabBar == NULL); + node->TabBar = IM_NEW(ImGuiTabBar); +} + +static void ImGui::DockNodeRemoveTabBar(ImGuiDockNode* node) +{ + if (node->TabBar == NULL) + return; + IM_DELETE(node->TabBar); + node->TabBar = NULL; +} + +static bool DockNodeIsDropAllowedOne(ImGuiWindow* payload, ImGuiWindow* host_window) +{ + if (host_window->DockNodeAsHost && host_window->DockNodeAsHost->IsDockSpace() && payload->BeginOrderWithinContext < host_window->BeginOrderWithinContext) + return false; + + ImGuiWindowClass* host_class = host_window->DockNodeAsHost ? &host_window->DockNodeAsHost->WindowClass : &host_window->WindowClass; + ImGuiWindowClass* payload_class = &payload->WindowClass; + if (host_class->ClassId != payload_class->ClassId) + { + if (host_class->ClassId != 0 && host_class->DockingAllowUnclassed && payload_class->ClassId == 0) + return true; + if (payload_class->ClassId != 0 && payload_class->DockingAllowUnclassed && host_class->ClassId == 0) + return true; + return false; + } + + // Prevent docking any window created above a popup + // Technically we should support it (e.g. in the case of a long-lived modal window that had fancy docking features), + // by e.g. adding a 'if (!ImGui::IsWindowWithinBeginStackOf(host_window, popup_window))' test. + // But it would requires more work on our end because the dock host windows is technically created in NewFrame() + // and our ->ParentXXX and ->RootXXX pointers inside windows are currently mislading or lacking. + ImGuiContext& g = *GImGui; + for (int i = g.OpenPopupStack.Size - 1; i >= 0; i--) + if (ImGuiWindow* popup_window = g.OpenPopupStack[i].Window) + if (ImGui::IsWindowWithinBeginStackOf(payload, popup_window)) // Payload is created from within a popup begin stack. + return false; + + return true; +} + +static bool ImGui::DockNodeIsDropAllowed(ImGuiWindow* host_window, ImGuiWindow* root_payload) +{ + if (root_payload->DockNodeAsHost && root_payload->DockNodeAsHost->IsSplitNode()) // FIXME-DOCK: Missing filtering + return true; + + const int payload_count = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->Windows.Size : 1; + for (int payload_n = 0; payload_n < payload_count; payload_n++) + { + ImGuiWindow* payload = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->Windows[payload_n] : root_payload; + if (DockNodeIsDropAllowedOne(payload, host_window)) + return true; + } + return false; +} + +// window menu button == collapse button when not in a dock node. +// FIXME: This is similar to RenderWindowTitleBarContents(), may want to share code. +static void ImGui::DockNodeCalcTabBarLayout(const ImGuiDockNode* node, ImRect* out_title_rect, ImRect* out_tab_bar_rect, ImVec2* out_window_menu_button_pos, ImVec2* out_close_button_pos) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + ImRect r = ImRect(node->Pos.x, node->Pos.y, node->Pos.x + node->Size.x, node->Pos.y + g.FontSize + g.Style.FramePadding.y * 2.0f); + if (out_title_rect) { *out_title_rect = r; } + + r.Min.x += style.WindowBorderSize; + r.Max.x -= style.WindowBorderSize; + + float button_sz = g.FontSize; + r.Min.x += style.FramePadding.x; + r.Max.x -= style.FramePadding.x; + ImVec2 window_menu_button_pos = ImVec2(r.Min.x, r.Min.y + style.FramePadding.y); + if (node->HasCloseButton) + { + if (out_close_button_pos) *out_close_button_pos = ImVec2(r.Max.x - button_sz, r.Min.y + style.FramePadding.y); + r.Max.x -= button_sz + style.ItemInnerSpacing.x; + } + if (node->HasWindowMenuButton && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + r.Min.x += button_sz + style.ItemInnerSpacing.x; + } + else if (node->HasWindowMenuButton && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + window_menu_button_pos = ImVec2(r.Max.x - button_sz, r.Min.y + style.FramePadding.y); + r.Max.x -= button_sz + style.ItemInnerSpacing.x; + } + if (out_tab_bar_rect) { *out_tab_bar_rect = r; } + if (out_window_menu_button_pos) { *out_window_menu_button_pos = window_menu_button_pos; } +} + +void ImGui::DockNodeCalcSplitRects(ImVec2& pos_old, ImVec2& size_old, ImVec2& pos_new, ImVec2& size_new, ImGuiDir dir, ImVec2 size_new_desired) +{ + ImGuiContext& g = *GImGui; + const float dock_spacing = g.Style.ItemInnerSpacing.x; + const ImGuiAxis axis = (dir == ImGuiDir_Left || dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + pos_new[axis ^ 1] = pos_old[axis ^ 1]; + size_new[axis ^ 1] = size_old[axis ^ 1]; + + // Distribute size on given axis (with a desired size or equally) + const float w_avail = size_old[axis] - dock_spacing; + if (size_new_desired[axis] > 0.0f && size_new_desired[axis] <= w_avail * 0.5f) + { + size_new[axis] = size_new_desired[axis]; + size_old[axis] = IM_FLOOR(w_avail - size_new[axis]); + } + else + { + size_new[axis] = IM_FLOOR(w_avail * 0.5f); + size_old[axis] = IM_FLOOR(w_avail - size_new[axis]); + } + + // Position each node + if (dir == ImGuiDir_Right || dir == ImGuiDir_Down) + { + pos_new[axis] = pos_old[axis] + size_old[axis] + dock_spacing; + } + else if (dir == ImGuiDir_Left || dir == ImGuiDir_Up) + { + pos_new[axis] = pos_old[axis]; + pos_old[axis] = pos_new[axis] + size_new[axis] + dock_spacing; + } +} + +// Retrieve the drop rectangles for a given direction or for the center + perform hit testing. +bool ImGui::DockNodeCalcDropRectsAndTestMousePos(const ImRect& parent, ImGuiDir dir, ImRect& out_r, bool outer_docking, ImVec2* test_mouse_pos) +{ + ImGuiContext& g = *GImGui; + + const float parent_smaller_axis = ImMin(parent.GetWidth(), parent.GetHeight()); + const float hs_for_central_nodes = ImMin(g.FontSize * 1.5f, ImMax(g.FontSize * 0.5f, parent_smaller_axis / 8.0f)); + float hs_w; // Half-size, longer axis + float hs_h; // Half-size, smaller axis + ImVec2 off; // Distance from edge or center + if (outer_docking) + { + //hs_w = ImFloor(ImClamp(parent_smaller_axis - hs_for_central_nodes * 4.0f, g.FontSize * 0.5f, g.FontSize * 8.0f)); + //hs_h = ImFloor(hs_w * 0.15f); + //off = ImVec2(ImFloor(parent.GetWidth() * 0.5f - GetFrameHeightWithSpacing() * 1.4f - hs_h), ImFloor(parent.GetHeight() * 0.5f - GetFrameHeightWithSpacing() * 1.4f - hs_h)); + hs_w = ImFloor(hs_for_central_nodes * 1.50f); + hs_h = ImFloor(hs_for_central_nodes * 0.80f); + off = ImVec2(ImFloor(parent.GetWidth() * 0.5f - hs_h), ImFloor(parent.GetHeight() * 0.5f - hs_h)); + } + else + { + hs_w = ImFloor(hs_for_central_nodes); + hs_h = ImFloor(hs_for_central_nodes * 0.90f); + off = ImVec2(ImFloor(hs_w * 2.40f), ImFloor(hs_w * 2.40f)); + } + + ImVec2 c = ImFloor(parent.GetCenter()); + if (dir == ImGuiDir_None) { out_r = ImRect(c.x - hs_w, c.y - hs_w, c.x + hs_w, c.y + hs_w); } + else if (dir == ImGuiDir_Up) { out_r = ImRect(c.x - hs_w, c.y - off.y - hs_h, c.x + hs_w, c.y - off.y + hs_h); } + else if (dir == ImGuiDir_Down) { out_r = ImRect(c.x - hs_w, c.y + off.y - hs_h, c.x + hs_w, c.y + off.y + hs_h); } + else if (dir == ImGuiDir_Left) { out_r = ImRect(c.x - off.x - hs_h, c.y - hs_w, c.x - off.x + hs_h, c.y + hs_w); } + else if (dir == ImGuiDir_Right) { out_r = ImRect(c.x + off.x - hs_h, c.y - hs_w, c.x + off.x + hs_h, c.y + hs_w); } + + if (test_mouse_pos == NULL) + return false; + + ImRect hit_r = out_r; + if (!outer_docking) + { + // Custom hit testing for the 5-way selection, designed to reduce flickering when moving diagonally between sides + hit_r.Expand(ImFloor(hs_w * 0.30f)); + ImVec2 mouse_delta = (*test_mouse_pos - c); + float mouse_delta_len2 = ImLengthSqr(mouse_delta); + float r_threshold_center = hs_w * 1.4f; + float r_threshold_sides = hs_w * (1.4f + 1.2f); + if (mouse_delta_len2 < r_threshold_center * r_threshold_center) + return (dir == ImGuiDir_None); + if (mouse_delta_len2 < r_threshold_sides * r_threshold_sides) + return (dir == ImGetDirQuadrantFromDelta(mouse_delta.x, mouse_delta.y)); + } + return hit_r.Contains(*test_mouse_pos); +} + +// host_node may be NULL if the window doesn't have a DockNode already. +// FIXME-DOCK: This is misnamed since it's also doing the filtering. +static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDockPreviewData* data, bool is_explicit_target, bool is_outer_docking) +{ + ImGuiContext& g = *GImGui; + + // There is an edge case when docking into a dockspace which only has inactive nodes. + // In this case DockNodeTreeFindNodeByPos() will have selected a leaf node which is inactive. + // Because the inactive leaf node doesn't have proper pos/size yet, we'll use the root node as reference. + if (payload_node == NULL) + payload_node = payload_window->DockNodeAsHost; + ImGuiDockNode* ref_node_for_rect = (host_node && !host_node->IsVisible) ? DockNodeGetRootNode(host_node) : host_node; + if (ref_node_for_rect) + IM_ASSERT(ref_node_for_rect->IsVisible == true); + + // Filter, figure out where we are allowed to dock + ImGuiDockNodeFlags src_node_flags = payload_node ? payload_node->MergedFlags : payload_window->WindowClass.DockNodeFlagsOverrideSet; + ImGuiDockNodeFlags dst_node_flags = host_node ? host_node->MergedFlags : host_window->WindowClass.DockNodeFlagsOverrideSet; + data->IsCenterAvailable = true; + if (is_outer_docking) + data->IsCenterAvailable = false; + else if (dst_node_flags & ImGuiDockNodeFlags_NoDockingOverMe) + data->IsCenterAvailable = false; + else if (host_node && (dst_node_flags & ImGuiDockNodeFlags_NoDockingOverCentralNode) && host_node->IsCentralNode()) + data->IsCenterAvailable = false; + else if ((!host_node || !host_node->IsEmpty()) && payload_node && payload_node->IsSplitNode() && (payload_node->OnlyNodeWithWindows == NULL)) // Is _visibly_ split? + data->IsCenterAvailable = false; + else if ((src_node_flags & ImGuiDockNodeFlags_NoDockingOverOther) && (!host_node || !host_node->IsEmpty())) + data->IsCenterAvailable = false; + else if ((src_node_flags & ImGuiDockNodeFlags_NoDockingOverEmpty) && host_node && host_node->IsEmpty()) + data->IsCenterAvailable = false; + + data->IsSidesAvailable = true; + if ((dst_node_flags & ImGuiDockNodeFlags_NoDockingSplit) || g.IO.ConfigDockingNoSplit) + data->IsSidesAvailable = false; + else if (!is_outer_docking && host_node && host_node->ParentNode == NULL && host_node->IsCentralNode()) + data->IsSidesAvailable = false; + else if (src_node_flags & ImGuiDockNodeFlags_NoDockingSplitOther) + data->IsSidesAvailable = false; + + // Build a tentative future node (reuse same structure because it is practical. Shape will be readjusted when previewing a split) + data->FutureNode.HasCloseButton = (host_node ? host_node->HasCloseButton : host_window->HasCloseButton) || (payload_window->HasCloseButton); + data->FutureNode.HasWindowMenuButton = host_node ? true : ((host_window->Flags & ImGuiWindowFlags_NoCollapse) == 0); + data->FutureNode.Pos = ref_node_for_rect ? ref_node_for_rect->Pos : host_window->Pos; + data->FutureNode.Size = ref_node_for_rect ? ref_node_for_rect->Size : host_window->Size; + + // Calculate drop shapes geometry for allowed splitting directions + IM_ASSERT(ImGuiDir_None == -1); + data->SplitNode = host_node; + data->SplitDir = ImGuiDir_None; + data->IsSplitDirExplicit = false; + if (!host_window->Collapsed) + for (int dir = ImGuiDir_None; dir < ImGuiDir_COUNT; dir++) + { + if (dir == ImGuiDir_None && !data->IsCenterAvailable) + continue; + if (dir != ImGuiDir_None && !data->IsSidesAvailable) + continue; + if (DockNodeCalcDropRectsAndTestMousePos(data->FutureNode.Rect(), (ImGuiDir)dir, data->DropRectsDraw[dir+1], is_outer_docking, &g.IO.MousePos)) + { + data->SplitDir = (ImGuiDir)dir; + data->IsSplitDirExplicit = true; + } + } + + // When docking without holding Shift, we only allow and preview docking when hovering over a drop rect or over the title bar + data->IsDropAllowed = (data->SplitDir != ImGuiDir_None) || (data->IsCenterAvailable); + if (!is_explicit_target && !data->IsSplitDirExplicit && !g.IO.ConfigDockingWithShift) + data->IsDropAllowed = false; + + // Calculate split area + data->SplitRatio = 0.0f; + if (data->SplitDir != ImGuiDir_None) + { + ImGuiDir split_dir = data->SplitDir; + ImGuiAxis split_axis = (split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Right) ? ImGuiAxis_X : ImGuiAxis_Y; + ImVec2 pos_new, pos_old = data->FutureNode.Pos; + ImVec2 size_new, size_old = data->FutureNode.Size; + DockNodeCalcSplitRects(pos_old, size_old, pos_new, size_new, split_dir, payload_window->Size); + + // Calculate split ratio so we can pass it down the docking request + float split_ratio = ImSaturate(size_new[split_axis] / data->FutureNode.Size[split_axis]); + data->FutureNode.Pos = pos_new; + data->FutureNode.Size = size_new; + data->SplitRatio = (split_dir == ImGuiDir_Right || split_dir == ImGuiDir_Down) ? (1.0f - split_ratio) : (split_ratio); + } +} + +static void ImGui::DockNodePreviewDockRender(ImGuiWindow* host_window, ImGuiDockNode* host_node, ImGuiWindow* root_payload, const ImGuiDockPreviewData* data) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.CurrentWindow == host_window); // Because we rely on font size to calculate tab sizes + + // With this option, we only display the preview on the target viewport, and the payload viewport is made transparent. + // To compensate for the single layer obstructed by the payload, we'll increase the alpha of the preview nodes. + const bool is_transparent_payload = g.IO.ConfigDockingTransparentPayload; + + // In case the two windows involved are on different viewports, we will draw the overlay on each of them. + int overlay_draw_lists_count = 0; + ImDrawList* overlay_draw_lists[2]; + overlay_draw_lists[overlay_draw_lists_count++] = GetForegroundDrawList(host_window->Viewport); + if (host_window->Viewport != root_payload->Viewport && !is_transparent_payload) + overlay_draw_lists[overlay_draw_lists_count++] = GetForegroundDrawList(root_payload->Viewport); + + // Draw main preview rectangle + const ImU32 overlay_col_main = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 0.60f : 0.40f); + const ImU32 overlay_col_drop = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 0.90f : 0.70f); + const ImU32 overlay_col_drop_hovered = GetColorU32(ImGuiCol_DockingPreview, is_transparent_payload ? 1.20f : 1.00f); + const ImU32 overlay_col_lines = GetColorU32(ImGuiCol_NavWindowingHighlight, is_transparent_payload ? 0.80f : 0.60f); + + // Display area preview + const bool can_preview_tabs = (root_payload->DockNodeAsHost == NULL || root_payload->DockNodeAsHost->Windows.Size > 0); + if (data->IsDropAllowed) + { + ImRect overlay_rect = data->FutureNode.Rect(); + if (data->SplitDir == ImGuiDir_None && can_preview_tabs) + overlay_rect.Min.y += GetFrameHeight(); + if (data->SplitDir != ImGuiDir_None || data->IsCenterAvailable) + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + overlay_draw_lists[overlay_n]->AddRectFilled(overlay_rect.Min, overlay_rect.Max, overlay_col_main, host_window->WindowRounding, CalcRoundingFlagsForRectInRect(overlay_rect, host_window->Rect(), g.Style.DockingSeparatorSize)); + } + + // Display tab shape/label preview unless we are splitting node (it generally makes the situation harder to read) + if (data->IsDropAllowed && can_preview_tabs && data->SplitDir == ImGuiDir_None && data->IsCenterAvailable) + { + // Compute target tab bar geometry so we can locate our preview tabs + ImRect tab_bar_rect; + DockNodeCalcTabBarLayout(&data->FutureNode, NULL, &tab_bar_rect, NULL, NULL); + ImVec2 tab_pos = tab_bar_rect.Min; + if (host_node && host_node->TabBar) + { + if (!host_node->IsHiddenTabBar() && !host_node->IsNoTabBar()) + tab_pos.x += host_node->TabBar->WidthAllTabs + g.Style.ItemInnerSpacing.x; // We don't use OffsetNewTab because when using non-persistent-order tab bar it is incremented with each Tab submission. + else + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_node->Windows[0]).x; + } + else if (!(host_window->Flags & ImGuiWindowFlags_DockNodeHost)) + { + tab_pos.x += g.Style.ItemInnerSpacing.x + TabItemCalcSize(host_window).x; // Account for slight offset which will be added when changing from title bar to tab bar + } + + // Draw tab shape/label preview (payload may be a loose window or a host window carrying multiple tabbed windows) + if (root_payload->DockNodeAsHost) + IM_ASSERT(root_payload->DockNodeAsHost->Windows.Size <= root_payload->DockNodeAsHost->TabBar->Tabs.Size); + ImGuiTabBar* tab_bar_with_payload = root_payload->DockNodeAsHost ? root_payload->DockNodeAsHost->TabBar : NULL; + const int payload_count = tab_bar_with_payload ? tab_bar_with_payload->Tabs.Size : 1; + for (int payload_n = 0; payload_n < payload_count; payload_n++) + { + // DockNode's TabBar may have non-window Tabs manually appended by user + ImGuiWindow* payload_window = tab_bar_with_payload ? tab_bar_with_payload->Tabs[payload_n].Window : root_payload; + if (tab_bar_with_payload && payload_window == NULL) + continue; + if (!DockNodeIsDropAllowedOne(payload_window, host_window)) + continue; + + // Calculate the tab bounding box for each payload window + ImVec2 tab_size = TabItemCalcSize(payload_window); + ImRect tab_bb(tab_pos.x, tab_pos.y, tab_pos.x + tab_size.x, tab_pos.y + tab_size.y); + tab_pos.x += tab_size.x + g.Style.ItemInnerSpacing.x; + const ImU32 overlay_col_text = GetColorU32(payload_window->DockStyle.Colors[ImGuiWindowDockStyleCol_Text]); + const ImU32 overlay_col_tabs = GetColorU32(payload_window->DockStyle.Colors[ImGuiWindowDockStyleCol_TabActive]); + PushStyleColor(ImGuiCol_Text, overlay_col_text); + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + { + ImGuiTabItemFlags tab_flags = (payload_window->Flags & ImGuiWindowFlags_UnsavedDocument) ? ImGuiTabItemFlags_UnsavedDocument : 0; + if (!tab_bar_rect.Contains(tab_bb)) + overlay_draw_lists[overlay_n]->PushClipRect(tab_bar_rect.Min, tab_bar_rect.Max); + TabItemBackground(overlay_draw_lists[overlay_n], tab_bb, tab_flags, overlay_col_tabs); + TabItemLabelAndCloseButton(overlay_draw_lists[overlay_n], tab_bb, tab_flags, g.Style.FramePadding, payload_window->Name, 0, 0, false, NULL, NULL); + if (!tab_bar_rect.Contains(tab_bb)) + overlay_draw_lists[overlay_n]->PopClipRect(); + } + PopStyleColor(); + } + } + + // Display drop boxes + const float overlay_rounding = ImMax(3.0f, g.Style.FrameRounding); + for (int dir = ImGuiDir_None; dir < ImGuiDir_COUNT; dir++) + { + if (!data->DropRectsDraw[dir + 1].IsInverted()) + { + ImRect draw_r = data->DropRectsDraw[dir + 1]; + ImRect draw_r_in = draw_r; + draw_r_in.Expand(-2.0f); + ImU32 overlay_col = (data->SplitDir == (ImGuiDir)dir && data->IsSplitDirExplicit) ? overlay_col_drop_hovered : overlay_col_drop; + for (int overlay_n = 0; overlay_n < overlay_draw_lists_count; overlay_n++) + { + ImVec2 center = ImFloor(draw_r_in.GetCenter()); + overlay_draw_lists[overlay_n]->AddRectFilled(draw_r.Min, draw_r.Max, overlay_col, overlay_rounding); + overlay_draw_lists[overlay_n]->AddRect(draw_r_in.Min, draw_r_in.Max, overlay_col_lines, overlay_rounding); + if (dir == ImGuiDir_Left || dir == ImGuiDir_Right) + overlay_draw_lists[overlay_n]->AddLine(ImVec2(center.x, draw_r_in.Min.y), ImVec2(center.x, draw_r_in.Max.y), overlay_col_lines); + if (dir == ImGuiDir_Up || dir == ImGuiDir_Down) + overlay_draw_lists[overlay_n]->AddLine(ImVec2(draw_r_in.Min.x, center.y), ImVec2(draw_r_in.Max.x, center.y), overlay_col_lines); + } + } + + // Stop after ImGuiDir_None + if ((host_node && (host_node->MergedFlags & ImGuiDockNodeFlags_NoDockingSplit)) || g.IO.ConfigDockingNoSplit) + return; + } +} + +//----------------------------------------------------------------------------- +// Docking: ImGuiDockNode Tree manipulation functions +//----------------------------------------------------------------------------- +// - DockNodeTreeSplit() +// - DockNodeTreeMerge() +// - DockNodeTreeUpdatePosSize() +// - DockNodeTreeUpdateSplitterFindTouchingNode() +// - DockNodeTreeUpdateSplitter() +// - DockNodeTreeFindFallbackLeafNode() +// - DockNodeTreeFindNodeByPos() +//----------------------------------------------------------------------------- + +void ImGui::DockNodeTreeSplit(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiAxis split_axis, int split_inheritor_child_idx, float split_ratio, ImGuiDockNode* new_node) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(split_axis != ImGuiAxis_None); + + ImGuiDockNode* child_0 = (new_node && split_inheritor_child_idx != 0) ? new_node : DockContextAddNode(ctx, 0); + child_0->ParentNode = parent_node; + + ImGuiDockNode* child_1 = (new_node && split_inheritor_child_idx != 1) ? new_node : DockContextAddNode(ctx, 0); + child_1->ParentNode = parent_node; + + ImGuiDockNode* child_inheritor = (split_inheritor_child_idx == 0) ? child_0 : child_1; + DockNodeMoveChildNodes(child_inheritor, parent_node); + parent_node->ChildNodes[0] = child_0; + parent_node->ChildNodes[1] = child_1; + parent_node->ChildNodes[split_inheritor_child_idx]->VisibleWindow = parent_node->VisibleWindow; + parent_node->SplitAxis = split_axis; + parent_node->VisibleWindow = NULL; + parent_node->AuthorityForPos = parent_node->AuthorityForSize = ImGuiDataAuthority_DockNode; + + float size_avail = (parent_node->Size[split_axis] - g.Style.DockingSeparatorSize); + size_avail = ImMax(size_avail, g.Style.WindowMinSize[split_axis] * 2.0f); + IM_ASSERT(size_avail > 0.0f); // If you created a node manually with DockBuilderAddNode(), you need to also call DockBuilderSetNodeSize() before splitting. + child_0->SizeRef = child_1->SizeRef = parent_node->Size; + child_0->SizeRef[split_axis] = ImFloor(size_avail * split_ratio); + child_1->SizeRef[split_axis] = ImFloor(size_avail - child_0->SizeRef[split_axis]); + + DockNodeMoveWindows(parent_node->ChildNodes[split_inheritor_child_idx], parent_node); + DockSettingsRenameNodeReferences(parent_node->ID, parent_node->ChildNodes[split_inheritor_child_idx]->ID); + DockNodeUpdateHasCentralNodeChild(DockNodeGetRootNode(parent_node)); + DockNodeTreeUpdatePosSize(parent_node, parent_node->Pos, parent_node->Size); + + // Flags transfer (e.g. this is where we transfer the ImGuiDockNodeFlags_CentralNode property) + child_0->SharedFlags = parent_node->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + child_1->SharedFlags = parent_node->SharedFlags & ImGuiDockNodeFlags_SharedFlagsInheritMask_; + child_inheritor->LocalFlags = parent_node->LocalFlags & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlags &= ~ImGuiDockNodeFlags_LocalFlagsTransferMask_; + child_0->UpdateMergedFlags(); + child_1->UpdateMergedFlags(); + parent_node->UpdateMergedFlags(); + if (child_inheritor->IsCentralNode()) + DockNodeGetRootNode(parent_node)->CentralNode = child_inheritor; +} + +void ImGui::DockNodeTreeMerge(ImGuiContext* ctx, ImGuiDockNode* parent_node, ImGuiDockNode* merge_lead_child) +{ + // When called from DockContextProcessUndockNode() it is possible that one of the child is NULL. + ImGuiContext& g = *GImGui; + ImGuiDockNode* child_0 = parent_node->ChildNodes[0]; + ImGuiDockNode* child_1 = parent_node->ChildNodes[1]; + IM_ASSERT(child_0 || child_1); + IM_ASSERT(merge_lead_child == child_0 || merge_lead_child == child_1); + if ((child_0 && child_0->Windows.Size > 0) || (child_1 && child_1->Windows.Size > 0)) + { + IM_ASSERT(parent_node->TabBar == NULL); + IM_ASSERT(parent_node->Windows.Size == 0); + } + IMGUI_DEBUG_LOG_DOCKING("[docking] DockNodeTreeMerge: 0x%08X + 0x%08X back into parent 0x%08X\n", child_0 ? child_0->ID : 0, child_1 ? child_1->ID : 0, parent_node->ID); + + ImVec2 backup_last_explicit_size = parent_node->SizeRef; + DockNodeMoveChildNodes(parent_node, merge_lead_child); + if (child_0) + { + DockNodeMoveWindows(parent_node, child_0); // Generally only 1 of the 2 child node will have windows + DockSettingsRenameNodeReferences(child_0->ID, parent_node->ID); + } + if (child_1) + { + DockNodeMoveWindows(parent_node, child_1); + DockSettingsRenameNodeReferences(child_1->ID, parent_node->ID); + } + DockNodeApplyPosSizeToWindows(parent_node); + parent_node->AuthorityForPos = parent_node->AuthorityForSize = parent_node->AuthorityForViewport = ImGuiDataAuthority_Auto; + parent_node->VisibleWindow = merge_lead_child->VisibleWindow; + parent_node->SizeRef = backup_last_explicit_size; + + // Flags transfer + parent_node->LocalFlags &= ~ImGuiDockNodeFlags_LocalFlagsTransferMask_; // Preserve Dockspace flag + parent_node->LocalFlags |= (child_0 ? child_0->LocalFlags : 0) & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlags |= (child_1 ? child_1->LocalFlags : 0) & ImGuiDockNodeFlags_LocalFlagsTransferMask_; + parent_node->LocalFlagsInWindows = (child_0 ? child_0->LocalFlagsInWindows : 0) | (child_1 ? child_1->LocalFlagsInWindows : 0); // FIXME: Would be more consistent to update from actual windows + parent_node->UpdateMergedFlags(); + + if (child_0) + { + ctx->DockContext.Nodes.SetVoidPtr(child_0->ID, NULL); + IM_DELETE(child_0); + } + if (child_1) + { + ctx->DockContext.Nodes.SetVoidPtr(child_1->ID, NULL); + IM_DELETE(child_1); + } +} + +// Update Pos/Size for a node hierarchy (don't affect child Windows yet) +// (Depth-first, Pre-Order) +void ImGui::DockNodeTreeUpdatePosSize(ImGuiDockNode* node, ImVec2 pos, ImVec2 size, ImGuiDockNode* only_write_to_single_node) +{ + // During the regular dock node update we write to all nodes. + // 'only_write_to_single_node' is only set when turning a node visible mid-frame and we need its size right-away. + ImGuiContext& g = *GImGui; + const bool write_to_node = only_write_to_single_node == NULL || only_write_to_single_node == node; + if (write_to_node) + { + node->Pos = pos; + node->Size = size; + } + + if (node->IsLeafNode()) + return; + + ImGuiDockNode* child_0 = node->ChildNodes[0]; + ImGuiDockNode* child_1 = node->ChildNodes[1]; + ImVec2 child_0_pos = pos, child_1_pos = pos; + ImVec2 child_0_size = size, child_1_size = size; + + const bool child_0_is_toward_single_node = (only_write_to_single_node != NULL && DockNodeIsInHierarchyOf(only_write_to_single_node, child_0)); + const bool child_1_is_toward_single_node = (only_write_to_single_node != NULL && DockNodeIsInHierarchyOf(only_write_to_single_node, child_1)); + const bool child_0_is_or_will_be_visible = child_0->IsVisible || child_0_is_toward_single_node; + const bool child_1_is_or_will_be_visible = child_1->IsVisible || child_1_is_toward_single_node; + + if (child_0_is_or_will_be_visible && child_1_is_or_will_be_visible) + { + const float spacing = g.Style.DockingSeparatorSize; + const ImGuiAxis axis = (ImGuiAxis)node->SplitAxis; + const float size_avail = ImMax(size[axis] - spacing, 0.0f); + + // Size allocation policy + // 1) The first 0..WindowMinSize[axis]*2 are allocated evenly to both windows. + const float size_min_each = ImFloor(ImMin(size_avail, g.Style.WindowMinSize[axis] * 2.0f) * 0.5f); + + // FIXME: Blocks 2) and 3) are essentially doing nearly the same thing. + // Difference are: write-back to SizeRef; application of a minimum size; rounding before ImFloor() + // Clarify and rework differences between Size & SizeRef and purpose of WantLockSizeOnce + + // 2) Process locked absolute size (during a splitter resize we preserve the child of nodes not touching the splitter edge) + if (child_0->WantLockSizeOnce && !child_1->WantLockSizeOnce) + { + child_0_size[axis] = child_0->SizeRef[axis] = ImMin(size_avail - 1.0f, child_0->Size[axis]); + child_1_size[axis] = child_1->SizeRef[axis] = (size_avail - child_0_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + else if (child_1->WantLockSizeOnce && !child_0->WantLockSizeOnce) + { + child_1_size[axis] = child_1->SizeRef[axis] = ImMin(size_avail - 1.0f, child_1->Size[axis]); + child_0_size[axis] = child_0->SizeRef[axis] = (size_avail - child_1_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + else if (child_0->WantLockSizeOnce && child_1->WantLockSizeOnce) + { + // FIXME-DOCK: We cannot honor the requested size, so apply ratio. + // Currently this path will only be taken if code programmatically sets WantLockSizeOnce + float split_ratio = child_0_size[axis] / (child_0_size[axis] + child_1_size[axis]); + child_0_size[axis] = child_0->SizeRef[axis] = ImFloor(size_avail * split_ratio); + child_1_size[axis] = child_1->SizeRef[axis] = (size_avail - child_0_size[axis]); + IM_ASSERT(child_0->SizeRef[axis] > 0.0f && child_1->SizeRef[axis] > 0.0f); + } + + // 3) If one window is the central node (~ use remaining space, should be made explicit!), use explicit size from the other, and remainder for the central node + else if (child_0->SizeRef[axis] != 0.0f && child_1->HasCentralNodeChild) + { + child_0_size[axis] = ImMin(size_avail - size_min_each, child_0->SizeRef[axis]); + child_1_size[axis] = (size_avail - child_0_size[axis]); + } + else if (child_1->SizeRef[axis] != 0.0f && child_0->HasCentralNodeChild) + { + child_1_size[axis] = ImMin(size_avail - size_min_each, child_1->SizeRef[axis]); + child_0_size[axis] = (size_avail - child_1_size[axis]); + } + else + { + // 4) Otherwise distribute according to the relative ratio of each SizeRef value + float split_ratio = child_0->SizeRef[axis] / (child_0->SizeRef[axis] + child_1->SizeRef[axis]); + child_0_size[axis] = ImMax(size_min_each, ImFloor(size_avail * split_ratio + 0.5f)); + child_1_size[axis] = (size_avail - child_0_size[axis]); + } + + child_1_pos[axis] += spacing + child_0_size[axis]; + } + + if (only_write_to_single_node == NULL) + child_0->WantLockSizeOnce = child_1->WantLockSizeOnce = false; + + const bool child_0_recurse = only_write_to_single_node ? child_0_is_toward_single_node : child_0->IsVisible; + const bool child_1_recurse = only_write_to_single_node ? child_1_is_toward_single_node : child_1->IsVisible; + if (child_0_recurse) + DockNodeTreeUpdatePosSize(child_0, child_0_pos, child_0_size); + if (child_1_recurse) + DockNodeTreeUpdatePosSize(child_1, child_1_pos, child_1_size); +} + +static void DockNodeTreeUpdateSplitterFindTouchingNode(ImGuiDockNode* node, ImGuiAxis axis, int side, ImVector* touching_nodes) +{ + if (node->IsLeafNode()) + { + touching_nodes->push_back(node); + return; + } + if (node->ChildNodes[0]->IsVisible) + if (node->SplitAxis != axis || side == 0 || !node->ChildNodes[1]->IsVisible) + DockNodeTreeUpdateSplitterFindTouchingNode(node->ChildNodes[0], axis, side, touching_nodes); + if (node->ChildNodes[1]->IsVisible) + if (node->SplitAxis != axis || side == 1 || !node->ChildNodes[0]->IsVisible) + DockNodeTreeUpdateSplitterFindTouchingNode(node->ChildNodes[1], axis, side, touching_nodes); +} + +// (Depth-First, Pre-Order) +void ImGui::DockNodeTreeUpdateSplitter(ImGuiDockNode* node) +{ + if (node->IsLeafNode()) + return; + + ImGuiContext& g = *GImGui; + + ImGuiDockNode* child_0 = node->ChildNodes[0]; + ImGuiDockNode* child_1 = node->ChildNodes[1]; + if (child_0->IsVisible && child_1->IsVisible) + { + // Bounding box of the splitter cover the space between both nodes (w = Spacing, h = Size[xy^1] for when splitting horizontally) + const ImGuiAxis axis = (ImGuiAxis)node->SplitAxis; + IM_ASSERT(axis != ImGuiAxis_None); + ImRect bb; + bb.Min = child_0->Pos; + bb.Max = child_1->Pos; + bb.Min[axis] += child_0->Size[axis]; + bb.Max[axis ^ 1] += child_1->Size[axis ^ 1]; + //if (g.IO.KeyCtrl) GetForegroundDrawList(g.CurrentWindow->Viewport)->AddRect(bb.Min, bb.Max, IM_COL32(255,0,255,255)); + + const ImGuiDockNodeFlags merged_flags = child_0->MergedFlags | child_1->MergedFlags; // Merged flags for BOTH childs + const ImGuiDockNodeFlags no_resize_axis_flag = (axis == ImGuiAxis_X) ? ImGuiDockNodeFlags_NoResizeX : ImGuiDockNodeFlags_NoResizeY; + if ((merged_flags & ImGuiDockNodeFlags_NoResize) || (merged_flags & no_resize_axis_flag)) + { + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Separator), g.Style.FrameRounding); + } + else + { + //bb.Min[axis] += 1; // Display a little inward so highlight doesn't connect with nearby tabs on the neighbor node. + //bb.Max[axis] -= 1; + PushID(node->ID); + + // Find resizing limits by gathering list of nodes that are touching the splitter line. + ImVector touching_nodes[2]; + float min_size = g.Style.WindowMinSize[axis]; + float resize_limits[2]; + resize_limits[0] = node->ChildNodes[0]->Pos[axis] + min_size; + resize_limits[1] = node->ChildNodes[1]->Pos[axis] + node->ChildNodes[1]->Size[axis] - min_size; + + ImGuiID splitter_id = GetID("##Splitter"); + if (g.ActiveId == splitter_id) // Only process when splitter is active + { + DockNodeTreeUpdateSplitterFindTouchingNode(child_0, axis, 1, &touching_nodes[0]); + DockNodeTreeUpdateSplitterFindTouchingNode(child_1, axis, 0, &touching_nodes[1]); + for (int touching_node_n = 0; touching_node_n < touching_nodes[0].Size; touching_node_n++) + resize_limits[0] = ImMax(resize_limits[0], touching_nodes[0][touching_node_n]->Rect().Min[axis] + min_size); + for (int touching_node_n = 0; touching_node_n < touching_nodes[1].Size; touching_node_n++) + resize_limits[1] = ImMin(resize_limits[1], touching_nodes[1][touching_node_n]->Rect().Max[axis] - min_size); + + // [DEBUG] Render touching nodes & limits + /* + ImDrawList* draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + for (int n = 0; n < 2; n++) + { + for (int touching_node_n = 0; touching_node_n < touching_nodes[n].Size; touching_node_n++) + draw_list->AddRect(touching_nodes[n][touching_node_n]->Pos, touching_nodes[n][touching_node_n]->Pos + touching_nodes[n][touching_node_n]->Size, IM_COL32(0, 255, 0, 255)); + if (axis == ImGuiAxis_X) + draw_list->AddLine(ImVec2(resize_limits[n], node->ChildNodes[n]->Pos.y), ImVec2(resize_limits[n], node->ChildNodes[n]->Pos.y + node->ChildNodes[n]->Size.y), IM_COL32(255, 0, 255, 255), 3.0f); + else + draw_list->AddLine(ImVec2(node->ChildNodes[n]->Pos.x, resize_limits[n]), ImVec2(node->ChildNodes[n]->Pos.x + node->ChildNodes[n]->Size.x, resize_limits[n]), IM_COL32(255, 0, 255, 255), 3.0f); + } + */ + } + + // Use a short delay before highlighting the splitter (and changing the mouse cursor) in order for regular mouse movement to not highlight many splitters + float cur_size_0 = child_0->Size[axis]; + float cur_size_1 = child_1->Size[axis]; + float min_size_0 = resize_limits[0] - child_0->Pos[axis]; + float min_size_1 = child_1->Pos[axis] + child_1->Size[axis] - resize_limits[1]; + ImU32 bg_col = GetColorU32(ImGuiCol_WindowBg); + if (SplitterBehavior(bb, GetID("##Splitter"), axis, &cur_size_0, &cur_size_1, min_size_0, min_size_1, WINDOWS_HOVER_PADDING, WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER, bg_col)) + { + if (touching_nodes[0].Size > 0 && touching_nodes[1].Size > 0) + { + child_0->Size[axis] = child_0->SizeRef[axis] = cur_size_0; + child_1->Pos[axis] -= cur_size_1 - child_1->Size[axis]; + child_1->Size[axis] = child_1->SizeRef[axis] = cur_size_1; + + // Lock the size of every node that is a sibling of the node we are touching + // This might be less desirable if we can merge sibling of a same axis into the same parental level. + for (int side_n = 0; side_n < 2; side_n++) + for (int touching_node_n = 0; touching_node_n < touching_nodes[side_n].Size; touching_node_n++) + { + ImGuiDockNode* touching_node = touching_nodes[side_n][touching_node_n]; + //ImDrawList* draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + //draw_list->AddRect(touching_node->Pos, touching_node->Pos + touching_node->Size, IM_COL32(255, 128, 0, 255)); + while (touching_node->ParentNode != node) + { + if (touching_node->ParentNode->SplitAxis == axis) + { + // Mark other node so its size will be preserved during the upcoming call to DockNodeTreeUpdatePosSize(). + ImGuiDockNode* node_to_preserve = touching_node->ParentNode->ChildNodes[side_n]; + node_to_preserve->WantLockSizeOnce = true; + //draw_list->AddRect(touching_node->Pos, touching_node->Rect().Max, IM_COL32(255, 0, 0, 255)); + //draw_list->AddRectFilled(node_to_preserve->Pos, node_to_preserve->Rect().Max, IM_COL32(0, 255, 0, 100)); + } + touching_node = touching_node->ParentNode; + } + } + + DockNodeTreeUpdatePosSize(child_0, child_0->Pos, child_0->Size); + DockNodeTreeUpdatePosSize(child_1, child_1->Pos, child_1->Size); + MarkIniSettingsDirty(); + } + } + PopID(); + } + } + + if (child_0->IsVisible) + DockNodeTreeUpdateSplitter(child_0); + if (child_1->IsVisible) + DockNodeTreeUpdateSplitter(child_1); +} + +ImGuiDockNode* ImGui::DockNodeTreeFindFallbackLeafNode(ImGuiDockNode* node) +{ + if (node->IsLeafNode()) + return node; + if (ImGuiDockNode* leaf_node = DockNodeTreeFindFallbackLeafNode(node->ChildNodes[0])) + return leaf_node; + if (ImGuiDockNode* leaf_node = DockNodeTreeFindFallbackLeafNode(node->ChildNodes[1])) + return leaf_node; + return NULL; +} + +ImGuiDockNode* ImGui::DockNodeTreeFindVisibleNodeByPos(ImGuiDockNode* node, ImVec2 pos) +{ + if (!node->IsVisible) + return NULL; + + const float dock_spacing = 0.0f;// g.Style.ItemInnerSpacing.x; // FIXME: Relation to DOCKING_SPLITTER_SIZE? + ImRect r(node->Pos, node->Pos + node->Size); + r.Expand(dock_spacing * 0.5f); + bool inside = r.Contains(pos); + if (!inside) + return NULL; + + if (node->IsLeafNode()) + return node; + if (ImGuiDockNode* hovered_node = DockNodeTreeFindVisibleNodeByPos(node->ChildNodes[0], pos)) + return hovered_node; + if (ImGuiDockNode* hovered_node = DockNodeTreeFindVisibleNodeByPos(node->ChildNodes[1], pos)) + return hovered_node; + + // This means we are hovering over the splitter/spacing of a parent node + return node; +} + +//----------------------------------------------------------------------------- +// Docking: Public Functions (SetWindowDock, DockSpace, DockSpaceOverViewport) +//----------------------------------------------------------------------------- +// - SetWindowDock() [Internal] +// - DockSpace() +// - DockSpaceOverViewport() +//----------------------------------------------------------------------------- + +// [Internal] Called via SetNextWindowDockID() +void ImGui::SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowDockAllowFlags & cond) == 0) + return; + window->SetWindowDockAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + if (window->DockId == dock_id) + return; + + // If the user attempt to set a dock id that is a split node, we'll dig within to find a suitable docking spot + ImGuiContext* ctx = GImGui; + if (ImGuiDockNode* new_node = DockContextFindNodeByID(ctx, dock_id)) + if (new_node->IsSplitNode()) + { + // Policy: Find central node or latest focused node. We first move back to our root node. + new_node = DockNodeGetRootNode(new_node); + if (new_node->CentralNode) + { + IM_ASSERT(new_node->CentralNode->IsCentralNode()); + dock_id = new_node->CentralNode->ID; + } + else + { + dock_id = new_node->LastFocusedNodeId; + } + } + + if (window->DockId == dock_id) + return; + + if (window->DockNode) + DockNodeRemoveWindow(window->DockNode, window, 0); + window->DockId = dock_id; +} + +// Create an explicit dockspace node within an existing window. Also expose dock node flags and creates a CentralNode by default. +// The Central Node is always displayed even when empty and shrink/extend according to the requested size of its neighbors. +// DockSpace() needs to be submitted _before_ any window they can host. If you use a dockspace, submit it early in your app. +// When ImGuiDockNodeFlags_KeepAliveOnly is set, nothing is submitted in the current window (function may be called from any location). +ImGuiID ImGui::DockSpace(ImGuiID id, const ImVec2& size_arg, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + ImGuiWindow* window = GetCurrentWindowRead(); + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return 0; + + // Early out if parent window is hidden/collapsed + // This is faster but also DockNodeUpdateTabBar() relies on TabBarLayout() running (which won't if SkipItems=true) to set NextSelectedTabId = 0). See #2960. + // If for whichever reason this is causing problem we would need to ensure that DockNodeUpdateTabBar() ends up clearing NextSelectedTabId even if SkipItems=true. + if (window->SkipItems) + flags |= ImGuiDockNodeFlags_KeepAliveOnly; + if ((flags & ImGuiDockNodeFlags_KeepAliveOnly) == 0) + window = GetCurrentWindow(); // call to set window->WriteAccessed = true; + + IM_ASSERT((flags & ImGuiDockNodeFlags_DockSpace) == 0); + IM_ASSERT(id != 0); + ImGuiDockNode* node = DockContextFindNodeByID(ctx, id); + if (!node) + { + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X created\n", id); + node = DockContextAddNode(ctx, id); + node->SetLocalFlags(ImGuiDockNodeFlags_CentralNode); + } + if (window_class && window_class->ClassId != node->WindowClass.ClassId) + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSpace: dockspace node 0x%08X: setup WindowClass 0x%08X -> 0x%08X\n", id, node->WindowClass.ClassId, window_class->ClassId); + node->SharedFlags = flags; + node->WindowClass = window_class ? *window_class : ImGuiWindowClass(); + + // When a DockSpace transitioned form implicit to explicit this may be called a second time + // It is possible that the node has already been claimed by a docked window which appeared before the DockSpace() node, so we overwrite IsDockSpace again. + if (node->LastFrameActive == g.FrameCount && !(flags & ImGuiDockNodeFlags_KeepAliveOnly)) + { + IM_ASSERT(node->IsDockSpace() == false && "Cannot call DockSpace() twice a frame with the same ID"); + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_DockSpace); + return id; + } + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_DockSpace); + + // Keep alive mode, this is allow windows docked into this node so stay docked even if they are not visible + if (flags & ImGuiDockNodeFlags_KeepAliveOnly) + { + node->LastFrameAlive = g.FrameCount; + return id; + } + + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 size = ImFloor(size_arg); + if (size.x <= 0.0f) + size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too much issues) + if (size.y <= 0.0f) + size.y = ImMax(content_avail.y + size.y, 4.0f); + IM_ASSERT(size.x > 0.0f && size.y > 0.0f); + + node->Pos = window->DC.CursorPos; + node->Size = node->SizeRef = size; + SetNextWindowPos(node->Pos); + SetNextWindowSize(node->Size); + g.NextWindowData.PosUndock = false; + + // FIXME-DOCK: Why do we need a child window to host a dockspace, could we host it in the existing window? + // FIXME-DOCK: What is the reason for not simply calling BeginChild()? (OK to have a reason but should be commented) + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_DockNodeHost; + window_flags |= ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar; + window_flags |= ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse; + window_flags |= ImGuiWindowFlags_NoBackground; + + char title[256]; + ImFormatString(title, IM_ARRAYSIZE(title), "%s/DockSpace_%08X", window->Name, id); + + PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0.0f); + Begin(title, NULL, window_flags); + PopStyleVar(); + + ImGuiWindow* host_window = g.CurrentWindow; + DockNodeSetupHostWindow(node, host_window); + host_window->ChildId = window->GetID(title); + node->OnlyNodeWithWindows = NULL; + + IM_ASSERT(node->IsRootNode()); + + // We need to handle the rare case were a central node is missing. + // This can happen if the node was first created manually with DockBuilderAddNode() but _without_ the ImGuiDockNodeFlags_Dockspace. + // Doing it correctly would set the _CentralNode flags, which would then propagate according to subsequent split. + // It would also be ambiguous to attempt to assign a central node while there are split nodes, so we wait until there's a single node remaining. + // The specific sub-property of _CentralNode we are interested in recovering here is the "Don't delete when empty" property, + // as it doesn't make sense for an empty dockspace to not have this property. + if (node->IsLeafNode() && !node->IsCentralNode()) + node->SetLocalFlags(node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + + // Update the node + DockNodeUpdate(node); + + End(); + + ImRect bb(node->Pos, node->Pos + size); + ItemSize(size); + ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav); // Not a nav point (could be, would need to draw the nav rect and replicate/refactor activation from BeginChild(), but seems like CTRL+Tab works better here?) + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) && IsWindowChildOf(g.HoveredWindow, host_window, false, true)) // To fullfill IsItemHovered(), similar to EndChild() + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + return id; +} + +// Tips: Use with ImGuiDockNodeFlags_PassthruCentralNode! +// The limitation with this call is that your window won't have a menu bar. +// Even though we could pass window flags, it would also require the user to be able to call BeginMenuBar() somehow meaning we can't Begin/End in a single function. +// But you can also use BeginMainMenuBar(). If you really want a menu bar inside the same window as the one hosting the dockspace, you will need to copy this code somewhere and tweak it. +ImGuiID ImGui::DockSpaceOverViewport(const ImGuiViewport* viewport, ImGuiDockNodeFlags dockspace_flags, const ImGuiWindowClass* window_class) +{ + if (viewport == NULL) + viewport = GetMainViewport(); + + SetNextWindowPos(viewport->WorkPos); + SetNextWindowSize(viewport->WorkSize); + SetNextWindowViewport(viewport->ID); + + ImGuiWindowFlags host_window_flags = 0; + host_window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDocking; + host_window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus; + if (dockspace_flags & ImGuiDockNodeFlags_PassthruCentralNode) + host_window_flags |= ImGuiWindowFlags_NoBackground; + + char label[32]; + ImFormatString(label, IM_ARRAYSIZE(label), "DockSpaceViewport_%08X", viewport->ID); + + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); + Begin(label, NULL, host_window_flags); + PopStyleVar(3); + + ImGuiID dockspace_id = GetID("DockSpace"); + DockSpace(dockspace_id, ImVec2(0.0f, 0.0f), dockspace_flags, window_class); + End(); + + return dockspace_id; +} + +//----------------------------------------------------------------------------- +// Docking: Builder Functions +//----------------------------------------------------------------------------- +// Very early end-user API to manipulate dock nodes. +// Only available in imgui_internal.h. Expect this API to change/break! +// It is expected that those functions are all called _before_ the dockspace node submission. +//----------------------------------------------------------------------------- +// - DockBuilderDockWindow() +// - DockBuilderGetNode() +// - DockBuilderSetNodePos() +// - DockBuilderSetNodeSize() +// - DockBuilderAddNode() +// - DockBuilderRemoveNode() +// - DockBuilderRemoveNodeChildNodes() +// - DockBuilderRemoveNodeDockedWindows() +// - DockBuilderSplitNode() +// - DockBuilderCopyNodeRec() +// - DockBuilderCopyNode() +// - DockBuilderCopyWindowSettings() +// - DockBuilderCopyDockSpace() +// - DockBuilderFinish() +//----------------------------------------------------------------------------- + +void ImGui::DockBuilderDockWindow(const char* window_name, ImGuiID node_id) +{ + // We don't preserve relative order of multiple docked windows (by clearing DockOrder back to -1) + ImGuiContext& g = *GImGui; IM_UNUSED(g); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderDockWindow '%s' to node 0x%08X\n", window_name, node_id); + ImGuiID window_id = ImHashStr(window_name); + if (ImGuiWindow* window = FindWindowByID(window_id)) + { + // Apply to created window + ImGuiID prev_node_id = window->DockId; + SetWindowDock(window, node_id, ImGuiCond_Always); + if (window->DockId != prev_node_id) + window->DockOrder = -1; + } + else + { + // Apply to settings + ImGuiWindowSettings* settings = FindWindowSettingsByID(window_id); + if (settings == NULL) + settings = CreateNewWindowSettings(window_name); + if (settings->DockId != node_id) + settings->DockOrder = -1; + settings->DockId = node_id; + } +} + +ImGuiDockNode* ImGui::DockBuilderGetNode(ImGuiID node_id) +{ + ImGuiContext* ctx = GImGui; + return DockContextFindNodeByID(ctx, node_id); +} + +void ImGui::DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + node->Pos = pos; + node->AuthorityForPos = ImGuiDataAuthority_DockNode; +} + +void ImGui::DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + IM_ASSERT(size.x > 0.0f && size.y > 0.0f); + node->Size = node->SizeRef = size; + node->AuthorityForSize = ImGuiDataAuthority_DockNode; +} + +// Make sure to use the ImGuiDockNodeFlags_DockSpace flag to create a dockspace node! Otherwise this will create a floating node! +// - Floating node: you can then call DockBuilderSetNodePos()/DockBuilderSetNodeSize() to position and size the floating node. +// - Dockspace node: calling DockBuilderSetNodePos() is unnecessary. +// - If you intend to split a node immediately after creation using DockBuilderSplitNode(), make sure to call DockBuilderSetNodeSize() beforehand! +// For various reason, the splitting code currently needs a base size otherwise space may not be allocated as precisely as you would expect. +// - Use (id == 0) to let the system allocate a node identifier. +// - Existing node with a same id will be removed. +ImGuiID ImGui::DockBuilderAddNode(ImGuiID node_id, ImGuiDockNodeFlags flags) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; IM_UNUSED(g); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderAddNode 0x%08X flags=%08X\n", node_id, flags); + + if (node_id != 0) + DockBuilderRemoveNode(node_id); + + ImGuiDockNode* node = NULL; + if (flags & ImGuiDockNodeFlags_DockSpace) + { + DockSpace(node_id, ImVec2(0, 0), (flags & ~ImGuiDockNodeFlags_DockSpace) | ImGuiDockNodeFlags_KeepAliveOnly); + node = DockContextFindNodeByID(ctx, node_id); + } + else + { + node = DockContextAddNode(ctx, node_id); + node->SetLocalFlags(flags); + } + node->LastFrameAlive = ctx->FrameCount; // Set this otherwise BeginDocked will undock during the same frame. + return node->ID; +} + +void ImGui::DockBuilderRemoveNode(ImGuiID node_id) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; IM_UNUSED(g); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderRemoveNode 0x%08X\n", node_id); + + ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + DockBuilderRemoveNodeDockedWindows(node_id, true); + DockBuilderRemoveNodeChildNodes(node_id); + // Node may have moved or deleted if e.g. any merge happened + node = DockContextFindNodeByID(ctx, node_id); + if (node == NULL) + return; + if (node->IsCentralNode() && node->ParentNode) + node->ParentNode->SetLocalFlags(node->ParentNode->LocalFlags | ImGuiDockNodeFlags_CentralNode); + DockContextRemoveNode(ctx, node, true); +} + +// root_id = 0 to remove all, root_id != 0 to remove child of given node. +void ImGui::DockBuilderRemoveNodeChildNodes(ImGuiID root_id) +{ + ImGuiContext* ctx = GImGui; + ImGuiDockContext* dc = &ctx->DockContext; + + ImGuiDockNode* root_node = root_id ? DockContextFindNodeByID(ctx, root_id) : NULL; + if (root_id && root_node == NULL) + return; + bool has_central_node = false; + + ImGuiDataAuthority backup_root_node_authority_for_pos = root_node ? root_node->AuthorityForPos : ImGuiDataAuthority_Auto; + ImGuiDataAuthority backup_root_node_authority_for_size = root_node ? root_node->AuthorityForSize : ImGuiDataAuthority_Auto; + + // Process active windows + ImVector nodes_to_remove; + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + { + bool want_removal = (root_id == 0) || (node->ID != root_id && DockNodeGetRootNode(node)->ID == root_id); + if (want_removal) + { + if (node->IsCentralNode()) + has_central_node = true; + if (root_id != 0) + DockContextQueueNotifyRemovedNode(ctx, node); + if (root_node) + { + DockNodeMoveWindows(root_node, node); + DockSettingsRenameNodeReferences(node->ID, root_node->ID); + } + nodes_to_remove.push_back(node); + } + } + + // DockNodeMoveWindows->DockNodeAddWindow will normally set those when reaching two windows (which is only adequate during interactive merge) + // Make sure we don't lose our current pos/size. (FIXME-DOCK: Consider tidying up that code in DockNodeAddWindow instead) + if (root_node) + { + root_node->AuthorityForPos = backup_root_node_authority_for_pos; + root_node->AuthorityForSize = backup_root_node_authority_for_size; + } + + // Apply to settings + for (ImGuiWindowSettings* settings = ctx->SettingsWindows.begin(); settings != NULL; settings = ctx->SettingsWindows.next_chunk(settings)) + if (ImGuiID window_settings_dock_id = settings->DockId) + for (int n = 0; n < nodes_to_remove.Size; n++) + if (nodes_to_remove[n]->ID == window_settings_dock_id) + { + settings->DockId = root_id; + break; + } + + // Not really efficient, but easier to destroy a whole hierarchy considering DockContextRemoveNode is attempting to merge nodes + if (nodes_to_remove.Size > 1) + ImQsort(nodes_to_remove.Data, nodes_to_remove.Size, sizeof(ImGuiDockNode*), DockNodeComparerDepthMostFirst); + for (int n = 0; n < nodes_to_remove.Size; n++) + DockContextRemoveNode(ctx, nodes_to_remove[n], false); + + if (root_id == 0) + { + dc->Nodes.Clear(); + dc->Requests.clear(); + } + else if (has_central_node) + { + root_node->CentralNode = root_node; + root_node->SetLocalFlags(root_node->LocalFlags | ImGuiDockNodeFlags_CentralNode); + } +} + +void ImGui::DockBuilderRemoveNodeDockedWindows(ImGuiID root_id, bool clear_settings_refs) +{ + // Clear references in settings + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + if (clear_settings_refs) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + bool want_removal = (root_id == 0) || (settings->DockId == root_id); + if (!want_removal && settings->DockId != 0) + if (ImGuiDockNode* node = DockContextFindNodeByID(ctx, settings->DockId)) + if (DockNodeGetRootNode(node)->ID == root_id) + want_removal = true; + if (want_removal) + settings->DockId = 0; + } + } + + // Clear references in windows + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + bool want_removal = (root_id == 0) || (window->DockNode && DockNodeGetRootNode(window->DockNode)->ID == root_id) || (window->DockNodeAsHost && window->DockNodeAsHost->ID == root_id); + if (want_removal) + { + const ImGuiID backup_dock_id = window->DockId; + IM_UNUSED(backup_dock_id); + DockContextProcessUndockWindow(ctx, window, clear_settings_refs); + if (!clear_settings_refs) + IM_ASSERT(window->DockId == backup_dock_id); + } + } +} + +// If 'out_id_at_dir' or 'out_id_at_opposite_dir' are non NULL, the function will write out the ID of the two new nodes created. +// Return value is ID of the node at the specified direction, so same as (*out_id_at_dir) if that pointer is set. +// FIXME-DOCK: We are not exposing nor using split_outer. +ImGuiID ImGui::DockBuilderSplitNode(ImGuiID id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(split_dir != ImGuiDir_None); + IMGUI_DEBUG_LOG_DOCKING("[docking] DockBuilderSplitNode: node 0x%08X, split_dir %d\n", id, split_dir); + + ImGuiDockNode* node = DockContextFindNodeByID(&g, id); + if (node == NULL) + { + IM_ASSERT(node != NULL); + return 0; + } + + IM_ASSERT(!node->IsSplitNode()); // Assert if already Split + + ImGuiDockRequest req; + req.Type = ImGuiDockRequestType_Split; + req.DockTargetWindow = NULL; + req.DockTargetNode = node; + req.DockPayload = NULL; + req.DockSplitDir = split_dir; + req.DockSplitRatio = ImSaturate((split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? size_ratio_for_node_at_dir : 1.0f - size_ratio_for_node_at_dir); + req.DockSplitOuter = false; + DockContextProcessDock(&g, &req); + + ImGuiID id_at_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 0 : 1]->ID; + ImGuiID id_at_opposite_dir = node->ChildNodes[(split_dir == ImGuiDir_Left || split_dir == ImGuiDir_Up) ? 1 : 0]->ID; + if (out_id_at_dir) + *out_id_at_dir = id_at_dir; + if (out_id_at_opposite_dir) + *out_id_at_opposite_dir = id_at_opposite_dir; + return id_at_dir; +} + +static ImGuiDockNode* DockBuilderCopyNodeRec(ImGuiDockNode* src_node, ImGuiID dst_node_id_if_known, ImVector* out_node_remap_pairs) +{ + ImGuiContext& g = *GImGui; + ImGuiDockNode* dst_node = ImGui::DockContextAddNode(&g, dst_node_id_if_known); + dst_node->SharedFlags = src_node->SharedFlags; + dst_node->LocalFlags = src_node->LocalFlags; + dst_node->LocalFlagsInWindows = ImGuiDockNodeFlags_None; + dst_node->Pos = src_node->Pos; + dst_node->Size = src_node->Size; + dst_node->SizeRef = src_node->SizeRef; + dst_node->SplitAxis = src_node->SplitAxis; + dst_node->UpdateMergedFlags(); + + out_node_remap_pairs->push_back(src_node->ID); + out_node_remap_pairs->push_back(dst_node->ID); + + for (int child_n = 0; child_n < IM_ARRAYSIZE(src_node->ChildNodes); child_n++) + if (src_node->ChildNodes[child_n]) + { + dst_node->ChildNodes[child_n] = DockBuilderCopyNodeRec(src_node->ChildNodes[child_n], 0, out_node_remap_pairs); + dst_node->ChildNodes[child_n]->ParentNode = dst_node; + } + + IMGUI_DEBUG_LOG_DOCKING("[docking] Fork node %08X -> %08X (%d childs)\n", src_node->ID, dst_node->ID, dst_node->IsSplitNode() ? 2 : 0); + return dst_node; +} + +void ImGui::DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector* out_node_remap_pairs) +{ + ImGuiContext* ctx = GImGui; + IM_ASSERT(src_node_id != 0); + IM_ASSERT(dst_node_id != 0); + IM_ASSERT(out_node_remap_pairs != NULL); + + DockBuilderRemoveNode(dst_node_id); + + ImGuiDockNode* src_node = DockContextFindNodeByID(ctx, src_node_id); + IM_ASSERT(src_node != NULL); + + out_node_remap_pairs->clear(); + DockBuilderCopyNodeRec(src_node, dst_node_id, out_node_remap_pairs); + + IM_ASSERT((out_node_remap_pairs->Size % 2) == 0); +} + +void ImGui::DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name) +{ + ImGuiWindow* src_window = FindWindowByName(src_name); + if (src_window == NULL) + return; + if (ImGuiWindow* dst_window = FindWindowByName(dst_name)) + { + dst_window->Pos = src_window->Pos; + dst_window->Size = src_window->Size; + dst_window->SizeFull = src_window->SizeFull; + dst_window->Collapsed = src_window->Collapsed; + } + else + { + ImGuiWindowSettings* dst_settings = FindWindowSettingsByID(ImHashStr(dst_name)); + if (!dst_settings) + dst_settings = CreateNewWindowSettings(dst_name); + ImVec2ih window_pos_2ih = ImVec2ih(src_window->Pos); + if (src_window->ViewportId != 0 && src_window->ViewportId != IMGUI_VIEWPORT_DEFAULT_ID) + { + dst_settings->ViewportPos = window_pos_2ih; + dst_settings->ViewportId = src_window->ViewportId; + dst_settings->Pos = ImVec2ih(0, 0); + } + else + { + dst_settings->Pos = window_pos_2ih; + } + dst_settings->Size = ImVec2ih(src_window->SizeFull); + dst_settings->Collapsed = src_window->Collapsed; + } +} + +// FIXME: Will probably want to change this signature, in particular how the window remapping pairs are passed. +void ImGui::DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector* in_window_remap_pairs) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(src_dockspace_id != 0); + IM_ASSERT(dst_dockspace_id != 0); + IM_ASSERT(in_window_remap_pairs != NULL); + IM_ASSERT((in_window_remap_pairs->Size % 2) == 0); + + // Duplicate entire dock + // FIXME: When overwriting dst_dockspace_id, windows that aren't part of our dockspace window class but that are docked in a same node will be split apart, + // whereas we could attempt to at least keep them together in a new, same floating node. + ImVector node_remap_pairs; + DockBuilderCopyNode(src_dockspace_id, dst_dockspace_id, &node_remap_pairs); + + // Attempt to transition all the upcoming windows associated to dst_dockspace_id into the newly created hierarchy of dock nodes + // (The windows associated to src_dockspace_id are staying in place) + ImVector src_windows; + for (int remap_window_n = 0; remap_window_n < in_window_remap_pairs->Size; remap_window_n += 2) + { + const char* src_window_name = (*in_window_remap_pairs)[remap_window_n]; + const char* dst_window_name = (*in_window_remap_pairs)[remap_window_n + 1]; + ImGuiID src_window_id = ImHashStr(src_window_name); + src_windows.push_back(src_window_id); + + // Search in the remapping tables + ImGuiID src_dock_id = 0; + if (ImGuiWindow* src_window = FindWindowByID(src_window_id)) + src_dock_id = src_window->DockId; + else if (ImGuiWindowSettings* src_window_settings = FindWindowSettingsByID(src_window_id)) + src_dock_id = src_window_settings->DockId; + ImGuiID dst_dock_id = 0; + for (int dock_remap_n = 0; dock_remap_n < node_remap_pairs.Size; dock_remap_n += 2) + if (node_remap_pairs[dock_remap_n] == src_dock_id) + { + dst_dock_id = node_remap_pairs[dock_remap_n + 1]; + //node_remap_pairs[dock_remap_n] = node_remap_pairs[dock_remap_n + 1] = 0; // Clear + break; + } + + if (dst_dock_id != 0) + { + // Docked windows gets redocked into the new node hierarchy. + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap live window '%s' 0x%08X -> '%s' 0x%08X\n", src_window_name, src_dock_id, dst_window_name, dst_dock_id); + DockBuilderDockWindow(dst_window_name, dst_dock_id); + } + else + { + // Floating windows gets their settings transferred (regardless of whether the new window already exist or not) + // When this is leading to a Copy and not a Move, we would get two overlapping floating windows. Could we possibly dock them together? + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window settings '%s' -> '%s'\n", src_window_name, dst_window_name); + DockBuilderCopyWindowSettings(src_window_name, dst_window_name); + } + } + + // Anything else in the source nodes of 'node_remap_pairs' are windows that are not included in the remapping list. + // Find those windows and move to them to the cloned dock node. This may be optional? + // Dock those are a second step as undocking would invalidate source dock nodes. + struct DockRemainingWindowTask { ImGuiWindow* Window; ImGuiID DockId; DockRemainingWindowTask(ImGuiWindow* window, ImGuiID dock_id) { Window = window; DockId = dock_id; } }; + ImVector dock_remaining_windows; + for (int dock_remap_n = 0; dock_remap_n < node_remap_pairs.Size; dock_remap_n += 2) + if (ImGuiID src_dock_id = node_remap_pairs[dock_remap_n]) + { + ImGuiID dst_dock_id = node_remap_pairs[dock_remap_n + 1]; + ImGuiDockNode* node = DockBuilderGetNode(src_dock_id); + for (int window_n = 0; window_n < node->Windows.Size; window_n++) + { + ImGuiWindow* window = node->Windows[window_n]; + if (src_windows.contains(window->ID)) + continue; + + // Docked windows gets redocked into the new node hierarchy. + IMGUI_DEBUG_LOG_DOCKING("[docking] Remap window '%s' %08X -> %08X\n", window->Name, src_dock_id, dst_dock_id); + dock_remaining_windows.push_back(DockRemainingWindowTask(window, dst_dock_id)); + } + } + for (const DockRemainingWindowTask& task : dock_remaining_windows) + DockBuilderDockWindow(task.Window->Name, task.DockId); +} + +// FIXME-DOCK: This is awkward because in series of split user is likely to loose access to its root node. +void ImGui::DockBuilderFinish(ImGuiID root_id) +{ + ImGuiContext* ctx = GImGui; + //DockContextRebuild(ctx); + DockContextBuildAddWindowsToNodes(ctx, root_id); +} + +//----------------------------------------------------------------------------- +// Docking: Begin/End Support Functions (called from Begin/End) +//----------------------------------------------------------------------------- +// - GetWindowAlwaysWantOwnTabBar() +// - DockContextBindNodeToWindow() +// - BeginDocked() +// - BeginDockableDragDropSource() +// - BeginDockableDragDropTarget() +//----------------------------------------------------------------------------- + +bool ImGui::GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.IO.ConfigDockingAlwaysTabBar || window->WindowClass.DockingAlwaysTabBar) + if ((window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoDocking)) == 0) + if (!window->IsFallbackWindow) // We don't support AlwaysTabBar on the fallback/implicit window to avoid unused dock-node overhead/noise + return true; + return false; +} + +static ImGuiDockNode* ImGui::DockContextBindNodeToWindow(ImGuiContext* ctx, ImGuiWindow* window) +{ + ImGuiContext& g = *ctx; + ImGuiDockNode* node = DockContextFindNodeByID(ctx, window->DockId); + IM_ASSERT(window->DockNode == NULL); + + // We should not be docking into a split node (SetWindowDock should avoid this) + if (node && node->IsSplitNode()) + { + DockContextProcessUndockWindow(ctx, window); + return NULL; + } + + // Create node + if (node == NULL) + { + node = DockContextAddNode(ctx, window->DockId); + node->AuthorityForPos = node->AuthorityForSize = node->AuthorityForViewport = ImGuiDataAuthority_Window; + node->LastFrameAlive = g.FrameCount; + } + + // If the node just turned visible and is part of a hierarchy, it doesn't have a Size assigned by DockNodeTreeUpdatePosSize() yet, + // so we're forcing a Pos/Size update from the first ancestor that is already visible (often it will be the root node). + // If we don't do this, the window will be assigned a zero-size on its first frame, which won't ideally warm up the layout. + // This is a little wonky because we don't normally update the Pos/Size of visible node mid-frame. + if (!node->IsVisible) + { + ImGuiDockNode* ancestor_node = node; + while (!ancestor_node->IsVisible && ancestor_node->ParentNode) + ancestor_node = ancestor_node->ParentNode; + IM_ASSERT(ancestor_node->Size.x > 0.0f && ancestor_node->Size.y > 0.0f); + DockNodeUpdateHasCentralNodeChild(DockNodeGetRootNode(ancestor_node)); + DockNodeTreeUpdatePosSize(ancestor_node, ancestor_node->Pos, ancestor_node->Size, node); + } + + // Add window to node + bool node_was_visible = node->IsVisible; + DockNodeAddWindow(node, window, true); + node->IsVisible = node_was_visible; // Don't mark visible right away (so DockContextEndFrame() doesn't render it, maybe other side effects? will see) + IM_ASSERT(node == window->DockNode); + return node; +} + +void ImGui::BeginDocked(ImGuiWindow* window, bool* p_open) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + + // Clear fields ahead so most early-out paths don't have to do it + window->DockIsActive = window->DockNodeIsVisible = window->DockTabIsVisible = false; + + const bool auto_dock_node = GetWindowAlwaysWantOwnTabBar(window); + if (auto_dock_node) + { + if (window->DockId == 0) + { + IM_ASSERT(window->DockNode == NULL); + window->DockId = DockContextGenNodeID(ctx); + } + } + else + { + // Calling SetNextWindowPos() undock windows by default (by setting PosUndock) + bool want_undock = false; + want_undock |= (window->Flags & ImGuiWindowFlags_NoDocking) != 0; + want_undock |= (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) && (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) && g.NextWindowData.PosUndock; + if (want_undock) + { + DockContextProcessUndockWindow(ctx, window); + return; + } + } + + // Bind to our dock node + ImGuiDockNode* node = window->DockNode; + if (node != NULL) + IM_ASSERT(window->DockId == node->ID); + if (window->DockId != 0 && node == NULL) + { + node = DockContextBindNodeToWindow(ctx, window); + if (node == NULL) + return; + } + +#if 0 + // Undock if the ImGuiDockNodeFlags_NoDockingInCentralNode got set + if (node->IsCentralNode && (node->Flags & ImGuiDockNodeFlags_NoDockingInCentralNode)) + { + DockContextProcessUndockWindow(ctx, window); + return; + } +#endif + + // Undock if our dockspace node disappeared + // Note how we are testing for LastFrameAlive and NOT LastFrameActive. A DockSpace node can be maintained alive while being inactive with ImGuiDockNodeFlags_KeepAliveOnly. + if (node->LastFrameAlive < g.FrameCount) + { + // If the window has been orphaned, transition the docknode to an implicit node processed in DockContextNewFrameUpdateDocking() + ImGuiDockNode* root_node = DockNodeGetRootNode(node); + if (root_node->LastFrameAlive < g.FrameCount) + DockContextProcessUndockWindow(ctx, window); + else + window->DockIsActive = true; + return; + } + + // Store style overrides + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + window->DockStyle.Colors[color_n] = ColorConvertFloat4ToU32(g.Style.Colors[GWindowDockStyleColors[color_n]]); + + // Fast path return. It is common for windows to hold on a persistent DockId but be the only visible window, + // and never create neither a host window neither a tab bar. + // FIXME-DOCK: replace ->HostWindow NULL compare with something more explicit (~was initially intended as a first frame test) + if (node->HostWindow == NULL) + { + if (node->State == ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing) + window->DockIsActive = true; + if (node->Windows.Size > 1 && window->Appearing) // Only hide appearing window + DockNodeHideWindowDuringHostWindowCreation(window); + return; + } + + // We can have zero-sized nodes (e.g. children of a small-size dockspace) + IM_ASSERT(node->HostWindow); + IM_ASSERT(node->IsLeafNode()); + IM_ASSERT(node->Size.x >= 0.0f && node->Size.y >= 0.0f); + node->State = ImGuiDockNodeState_HostWindowVisible; + + // Undock if we are submitted earlier than the host window + if (!(node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) && window->BeginOrderWithinContext < node->HostWindow->BeginOrderWithinContext) + { + DockContextProcessUndockWindow(ctx, window); + return; + } + + // Position/Size window + SetNextWindowPos(node->Pos); + SetNextWindowSize(node->Size); + g.NextWindowData.PosUndock = false; // Cancel implicit undocking of SetNextWindowPos() + window->DockIsActive = true; + window->DockNodeIsVisible = true; + window->DockTabIsVisible = false; + if (node->MergedFlags & ImGuiDockNodeFlags_KeepAliveOnly) + return; + + // When the window is selected we mark it as visible. + if (node->VisibleWindow == window) + window->DockTabIsVisible = true; + + // Update window flag + IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) == 0); + window->Flags |= ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_NoResize; + if (node->IsHiddenTabBar() || node->IsNoTabBar()) + window->Flags |= ImGuiWindowFlags_NoTitleBar; + else + window->Flags &= ~ImGuiWindowFlags_NoTitleBar; // Clear the NoTitleBar flag in case the user set it: confusingly enough we need a title bar height so we are correctly offset, but it won't be displayed! + + // Save new dock order only if the window has been visible once already + // This allows multiple windows to be created in the same frame and have their respective dock orders preserved. + if (node->TabBar && window->WasActive) + window->DockOrder = (short)DockNodeGetTabOrder(window); + + if ((node->WantCloseAll || node->WantCloseTabId == window->TabId) && p_open != NULL) + *p_open = false; + + // Update ChildId to allow returning from Child to Parent with Escape + ImGuiWindow* parent_window = window->DockNode->HostWindow; + window->ChildId = parent_window->GetID(window->Name); +} + +void ImGui::BeginDockableDragDropSource(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId == window->MoveId); + IM_ASSERT(g.MovingWindow == window); + IM_ASSERT(g.CurrentWindow == window); + + // 0: Hold SHIFT to disable docking, 1: Hold SHIFT to enable docking. + if (g.IO.ConfigDockingWithShift != g.IO.KeyShift) + { + // When ConfigDockingWithShift is set, display a tooltip to increase UI affordance. + // We cannot set for HoveredWindowUnderMovingWindow != NULL here, as it is only valid/useful when drag and drop is already active + // (because of the 'is_mouse_dragging_with_an_expected_destination' logic in UpdateViewportsNewFrame() function) + if (g.IO.ConfigDockingWithShift && g.MouseStationaryTimer >= 1.0f && g.ActiveId >= 1.0f) + SetTooltip("%s", LocalizeGetMsg(ImGuiLocKey_DockingHoldShiftToDock)); + return; + } + + g.LastItemData.ID = window->MoveId; + window = window->RootWindowDockTree; + IM_ASSERT((window->Flags & ImGuiWindowFlags_NoDocking) == 0); + bool is_drag_docking = (g.IO.ConfigDockingWithShift) || ImRect(0, 0, window->SizeFull.x, GetFrameHeight()).Contains(g.ActiveIdClickOffset); // FIXME-DOCKING: Need to make this stateful and explicit + if (is_drag_docking && BeginDragDropSource(ImGuiDragDropFlags_SourceNoPreviewTooltip | ImGuiDragDropFlags_SourceNoHoldToOpenOthers | ImGuiDragDropFlags_SourceAutoExpirePayload)) + { + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_WINDOW, &window, sizeof(window)); + EndDragDropSource(); + + // Store style overrides + for (int color_n = 0; color_n < ImGuiWindowDockStyleCol_COUNT; color_n++) + window->DockStyle.Colors[color_n] = ColorConvertFloat4ToU32(g.Style.Colors[GWindowDockStyleColors[color_n]]); + } +} + +void ImGui::BeginDockableDragDropTarget(ImGuiWindow* window) +{ + ImGuiContext* ctx = GImGui; + ImGuiContext& g = *ctx; + + //IM_ASSERT(window->RootWindowDockTree == window); // May also be a DockSpace + IM_ASSERT((window->Flags & ImGuiWindowFlags_NoDocking) == 0); + if (!g.DragDropActive) + return; + //GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!BeginDragDropTargetCustom(window->Rect(), window->ID)) + return; + + // Peek into the payload before calling AcceptDragDropPayload() so we can handle overlapping dock nodes with filtering + // (this is a little unusual pattern, normally most code would call AcceptDragDropPayload directly) + const ImGuiPayload* payload = &g.DragDropPayload; + if (!payload->IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) || !DockNodeIsDropAllowed(window, *(ImGuiWindow**)payload->Data)) + { + EndDragDropTarget(); + return; + } + + ImGuiWindow* payload_window = *(ImGuiWindow**)payload->Data; + if (AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_WINDOW, ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect)) + { + // Select target node + // (Important: we cannot use g.HoveredDockNode here! Because each of our target node have filters based on payload, each candidate drop target will do its own evaluation) + bool dock_into_floating_window = false; + ImGuiDockNode* node = NULL; + if (window->DockNodeAsHost) + { + // Cannot assume that node will != NULL even though we passed the rectangle test: it depends on padding/spacing handled by DockNodeTreeFindVisibleNodeByPos(). + node = DockNodeTreeFindVisibleNodeByPos(window->DockNodeAsHost, g.IO.MousePos); + + // There is an edge case when docking into a dockspace which only has _inactive_ nodes (because none of the windows are active) + // In this case we need to fallback into any leaf mode, possibly the central node. + // FIXME-20181220: We should not have to test for IsLeafNode() here but we have another bug to fix first. + if (node && node->IsDockSpace() && node->IsRootNode()) + node = (node->CentralNode && node->IsLeafNode()) ? node->CentralNode : DockNodeTreeFindFallbackLeafNode(node); + } + else + { + if (window->DockNode) + node = window->DockNode; + else + dock_into_floating_window = true; // Dock into a regular window + } + + const ImRect explicit_target_rect = (node && node->TabBar && !node->IsHiddenTabBar() && !node->IsNoTabBar()) ? node->TabBar->BarRect : ImRect(window->Pos, window->Pos + ImVec2(window->Size.x, GetFrameHeight())); + const bool is_explicit_target = g.IO.ConfigDockingWithShift || IsMouseHoveringRect(explicit_target_rect.Min, explicit_target_rect.Max); + + // Preview docking request and find out split direction/ratio + //const bool do_preview = true; // Ignore testing for payload->IsPreview() which removes one frame of delay, but breaks overlapping drop targets within the same window. + const bool do_preview = payload->IsPreview() || payload->IsDelivery(); + if (do_preview && (node != NULL || dock_into_floating_window)) + { + // If we have a non-leaf node it means we are hovering the border of a parent node, in which case only outer markers will appear. + ImGuiDockPreviewData split_inner; + ImGuiDockPreviewData split_outer; + ImGuiDockPreviewData* split_data = &split_inner; + if (node && (node->ParentNode || node->IsCentralNode() || !node->IsLeafNode())) + if (ImGuiDockNode* root_node = DockNodeGetRootNode(node)) + { + DockNodePreviewDockSetup(window, root_node, payload_window, NULL, &split_outer, is_explicit_target, true); + if (split_outer.IsSplitDirExplicit) + split_data = &split_outer; + } + if (!node || node->IsLeafNode()) + DockNodePreviewDockSetup(window, node, payload_window, NULL, &split_inner, is_explicit_target, false); + if (split_data == &split_outer) + split_inner.IsDropAllowed = false; + + // Draw inner then outer, so that previewed tab (in inner data) will be behind the outer drop boxes + DockNodePreviewDockRender(window, node, payload_window, &split_inner); + DockNodePreviewDockRender(window, node, payload_window, &split_outer); + + // Queue docking request + if (split_data->IsDropAllowed && payload->IsDelivery()) + DockContextQueueDock(ctx, window, split_data->SplitNode, payload_window, split_data->SplitDir, split_data->SplitRatio, split_data == &split_outer); + } + } + EndDragDropTarget(); +} + +//----------------------------------------------------------------------------- +// Docking: Settings +//----------------------------------------------------------------------------- +// - DockSettingsRenameNodeReferences() +// - DockSettingsRemoveNodeReferences() +// - DockSettingsFindNodeSettings() +// - DockSettingsHandler_ApplyAll() +// - DockSettingsHandler_ReadOpen() +// - DockSettingsHandler_ReadLine() +// - DockSettingsHandler_DockNodeToSettings() +// - DockSettingsHandler_WriteAll() +//----------------------------------------------------------------------------- + +static void ImGui::DockSettingsRenameNodeReferences(ImGuiID old_node_id, ImGuiID new_node_id) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_DOCKING("[docking] DockSettingsRenameNodeReferences: from 0x%08X -> to 0x%08X\n", old_node_id, new_node_id); + for (int window_n = 0; window_n < g.Windows.Size; window_n++) + { + ImGuiWindow* window = g.Windows[window_n]; + if (window->DockId == old_node_id && window->DockNode == NULL) + window->DockId = new_node_id; + } + //// FIXME-OPT: We could remove this loop by storing the index in the map + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId == old_node_id) + settings->DockId = new_node_id; +} + +// Remove references stored in ImGuiWindowSettings to the given ImGuiDockNodeSettings +static void ImGui::DockSettingsRemoveNodeReferences(ImGuiID* node_ids, int node_ids_count) +{ + ImGuiContext& g = *GImGui; + int found = 0; + //// FIXME-OPT: We could remove this loop by storing the index in the map + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + for (int node_n = 0; node_n < node_ids_count; node_n++) + if (settings->DockId == node_ids[node_n]) + { + settings->DockId = 0; + settings->DockOrder = -1; + if (++found < node_ids_count) + break; + return; + } +} + +static ImGuiDockNodeSettings* ImGui::DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID id) +{ + // FIXME-OPT + ImGuiDockContext* dc = &ctx->DockContext; + for (int n = 0; n < dc->NodesSettings.Size; n++) + if (dc->NodesSettings[n].ID == id) + return &dc->NodesSettings[n]; + return NULL; +} + +// Clear settings data +static void ImGui::DockSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiDockContext* dc = &ctx->DockContext; + dc->NodesSettings.clear(); + DockContextClearNodes(ctx, 0, true); +} + +// Recreate nodes based on settings data +static void ImGui::DockSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + // Prune settings at boot time only + ImGuiDockContext* dc = &ctx->DockContext; + if (ctx->Windows.Size == 0) + DockContextPruneUnusedSettingsNodes(ctx); + DockContextBuildNodesFromSettings(ctx, dc->NodesSettings.Data, dc->NodesSettings.Size); + DockContextBuildAddWindowsToNodes(ctx, 0); +} + +static void* ImGui::DockSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + if (strcmp(name, "Data") != 0) + return NULL; + return (void*)1; +} + +static void ImGui::DockSettingsHandler_ReadLine(ImGuiContext* ctx, ImGuiSettingsHandler*, void*, const char* line) +{ + char c = 0; + int x = 0, y = 0; + int r = 0; + + // Parsing, e.g. + // " DockNode ID=0x00000001 Pos=383,193 Size=201,322 Split=Y,0.506 " + // " DockNode ID=0x00000002 Parent=0x00000001 " + // Important: this code expect currently fields in a fixed order. + ImGuiDockNodeSettings node; + line = ImStrSkipBlank(line); + if (strncmp(line, "DockNode", 8) == 0) { line = ImStrSkipBlank(line + strlen("DockNode")); } + else if (strncmp(line, "DockSpace", 9) == 0) { line = ImStrSkipBlank(line + strlen("DockSpace")); node.Flags |= ImGuiDockNodeFlags_DockSpace; } + else return; + if (sscanf(line, "ID=0x%08X%n", &node.ID, &r) == 1) { line += r; } else return; + if (sscanf(line, " Parent=0x%08X%n", &node.ParentNodeId, &r) == 1) { line += r; if (node.ParentNodeId == 0) return; } + if (sscanf(line, " Window=0x%08X%n", &node.ParentWindowId, &r) ==1) { line += r; if (node.ParentWindowId == 0) return; } + if (node.ParentNodeId == 0) + { + if (sscanf(line, " Pos=%i,%i%n", &x, &y, &r) == 2) { line += r; node.Pos = ImVec2ih((short)x, (short)y); } else return; + if (sscanf(line, " Size=%i,%i%n", &x, &y, &r) == 2) { line += r; node.Size = ImVec2ih((short)x, (short)y); } else return; + } + else + { + if (sscanf(line, " SizeRef=%i,%i%n", &x, &y, &r) == 2) { line += r; node.SizeRef = ImVec2ih((short)x, (short)y); } + } + if (sscanf(line, " Split=%c%n", &c, &r) == 1) { line += r; if (c == 'X') node.SplitAxis = ImGuiAxis_X; else if (c == 'Y') node.SplitAxis = ImGuiAxis_Y; } + if (sscanf(line, " NoResize=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoResize; } + if (sscanf(line, " CentralNode=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_CentralNode; } + if (sscanf(line, " NoTabBar=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoTabBar; } + if (sscanf(line, " HiddenTabBar=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_HiddenTabBar; } + if (sscanf(line, " NoWindowMenuButton=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoWindowMenuButton; } + if (sscanf(line, " NoCloseButton=%d%n", &x, &r) == 1) { line += r; if (x != 0) node.Flags |= ImGuiDockNodeFlags_NoCloseButton; } + if (sscanf(line, " Selected=0x%08X%n", &node.SelectedTabId,&r) == 1) { line += r; } + if (node.ParentNodeId != 0) + if (ImGuiDockNodeSettings* parent_settings = DockSettingsFindNodeSettings(ctx, node.ParentNodeId)) + node.Depth = parent_settings->Depth + 1; + ctx->DockContext.NodesSettings.push_back(node); +} + +static void DockSettingsHandler_DockNodeToSettings(ImGuiDockContext* dc, ImGuiDockNode* node, int depth) +{ + ImGuiDockNodeSettings node_settings; + IM_ASSERT(depth < (1 << (sizeof(node_settings.Depth) << 3))); + node_settings.ID = node->ID; + node_settings.ParentNodeId = node->ParentNode ? node->ParentNode->ID : 0; + node_settings.ParentWindowId = (node->IsDockSpace() && node->HostWindow && node->HostWindow->ParentWindow) ? node->HostWindow->ParentWindow->ID : 0; + node_settings.SelectedTabId = node->SelectedTabId; + node_settings.SplitAxis = (signed char)(node->IsSplitNode() ? node->SplitAxis : ImGuiAxis_None); + node_settings.Depth = (char)depth; + node_settings.Flags = (node->LocalFlags & ImGuiDockNodeFlags_SavedFlagsMask_); + node_settings.Pos = ImVec2ih(node->Pos); + node_settings.Size = ImVec2ih(node->Size); + node_settings.SizeRef = ImVec2ih(node->SizeRef); + dc->NodesSettings.push_back(node_settings); + if (node->ChildNodes[0]) + DockSettingsHandler_DockNodeToSettings(dc, node->ChildNodes[0], depth + 1); + if (node->ChildNodes[1]) + DockSettingsHandler_DockNodeToSettings(dc, node->ChildNodes[1], depth + 1); +} + +static void ImGui::DockSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + ImGuiContext& g = *ctx; + ImGuiDockContext* dc = &ctx->DockContext; + if (!(g.IO.ConfigFlags & ImGuiConfigFlags_DockingEnable)) + return; + + // Gather settings data + // (unlike our windows settings, because nodes are always built we can do a full rewrite of the SettingsNode buffer) + dc->NodesSettings.resize(0); + dc->NodesSettings.reserve(dc->Nodes.Data.Size); + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (node->IsRootNode()) + DockSettingsHandler_DockNodeToSettings(dc, node, 0); + + int max_depth = 0; + for (int node_n = 0; node_n < dc->NodesSettings.Size; node_n++) + max_depth = ImMax((int)dc->NodesSettings[node_n].Depth, max_depth); + + // Write to text buffer + buf->appendf("[%s][Data]\n", handler->TypeName); + for (int node_n = 0; node_n < dc->NodesSettings.Size; node_n++) + { + const int line_start_pos = buf->size(); (void)line_start_pos; + const ImGuiDockNodeSettings* node_settings = &dc->NodesSettings[node_n]; + buf->appendf("%*s%s%*s", node_settings->Depth * 2, "", (node_settings->Flags & ImGuiDockNodeFlags_DockSpace) ? "DockSpace" : "DockNode ", (max_depth - node_settings->Depth) * 2, ""); // Text align nodes to facilitate looking at .ini file + buf->appendf(" ID=0x%08X", node_settings->ID); + if (node_settings->ParentNodeId) + { + buf->appendf(" Parent=0x%08X SizeRef=%d,%d", node_settings->ParentNodeId, node_settings->SizeRef.x, node_settings->SizeRef.y); + } + else + { + if (node_settings->ParentWindowId) + buf->appendf(" Window=0x%08X", node_settings->ParentWindowId); + buf->appendf(" Pos=%d,%d Size=%d,%d", node_settings->Pos.x, node_settings->Pos.y, node_settings->Size.x, node_settings->Size.y); + } + if (node_settings->SplitAxis != ImGuiAxis_None) + buf->appendf(" Split=%c", (node_settings->SplitAxis == ImGuiAxis_X) ? 'X' : 'Y'); + if (node_settings->Flags & ImGuiDockNodeFlags_NoResize) + buf->appendf(" NoResize=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_CentralNode) + buf->appendf(" CentralNode=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoTabBar) + buf->appendf(" NoTabBar=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_HiddenTabBar) + buf->appendf(" HiddenTabBar=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoWindowMenuButton) + buf->appendf(" NoWindowMenuButton=1"); + if (node_settings->Flags & ImGuiDockNodeFlags_NoCloseButton) + buf->appendf(" NoCloseButton=1"); + if (node_settings->SelectedTabId) + buf->appendf(" Selected=0x%08X", node_settings->SelectedTabId); + + // [DEBUG] Include comments in the .ini file to ease debugging (this makes saving slower!) + if (g.IO.ConfigDebugIniSettings) + if (ImGuiDockNode* node = DockContextFindNodeByID(ctx, node_settings->ID)) + { + buf->appendf("%*s", ImMax(2, (line_start_pos + 92) - buf->size()), ""); // Align everything + if (node->IsDockSpace() && node->HostWindow && node->HostWindow->ParentWindow) + buf->appendf(" ; in '%s'", node->HostWindow->ParentWindow->Name); + // Iterate settings so we can give info about windows that didn't exist during the session. + int contains_window = 0; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId == node_settings->ID) + { + if (contains_window++ == 0) + buf->appendf(" ; contains "); + buf->appendf("'%s' ", settings->GetName()); + } + } + + buf->appendf("\n"); + } + buf->appendf("\n"); +} + + +//----------------------------------------------------------------------------- +// [SECTION] PLATFORM DEPENDENT HELPERS +//----------------------------------------------------------------------------- + +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) + +#ifdef _MSC_VER +#pragma comment(lib, "user32") +#pragma comment(lib, "kernel32") +#endif + +// Win32 clipboard implementation +// We use g.ClipboardHandlerData for temporary storage to ensure it is freed on Shutdown() +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + g.ClipboardHandlerData.clear(); + if (!::OpenClipboard(NULL)) + return NULL; + HANDLE wbuf_handle = ::GetClipboardData(CF_UNICODETEXT); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return NULL; + } + if (const WCHAR* wbuf_global = (const WCHAR*)::GlobalLock(wbuf_handle)) + { + int buf_len = ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, NULL, 0, NULL, NULL); + g.ClipboardHandlerData.resize(buf_len); + ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, g.ClipboardHandlerData.Data, buf_len, NULL, NULL); + } + ::GlobalUnlock(wbuf_handle); + ::CloseClipboard(); + return g.ClipboardHandlerData.Data; +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!::OpenClipboard(NULL)) + return; + const int wbuf_length = ::MultiByteToWideChar(CP_UTF8, 0, text, -1, NULL, 0); + HGLOBAL wbuf_handle = ::GlobalAlloc(GMEM_MOVEABLE, (SIZE_T)wbuf_length * sizeof(WCHAR)); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return; + } + WCHAR* wbuf_global = (WCHAR*)::GlobalLock(wbuf_handle); + ::MultiByteToWideChar(CP_UTF8, 0, text, -1, wbuf_global, wbuf_length); + ::GlobalUnlock(wbuf_handle); + ::EmptyClipboard(); + if (::SetClipboardData(CF_UNICODETEXT, wbuf_handle) == NULL) + ::GlobalFree(wbuf_handle); + ::CloseClipboard(); +} + +#elif defined(__APPLE__) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS) + +#include // Use old API to avoid need for separate .mm file +static PasteboardRef main_clipboard = 0; + +// OSX clipboard implementation +// If you enable this you will need to add '-framework ApplicationServices' to your linker command-line! +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardClear(main_clipboard); + CFDataRef cf_data = CFDataCreate(kCFAllocatorDefault, (const UInt8*)text, strlen(text)); + if (cf_data) + { + PasteboardPutItemFlavor(main_clipboard, (PasteboardItemID)1, CFSTR("public.utf8-plain-text"), cf_data, 0); + CFRelease(cf_data); + } +} + +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardSynchronize(main_clipboard); + + ItemCount item_count = 0; + PasteboardGetItemCount(main_clipboard, &item_count); + for (ItemCount i = 0; i < item_count; i++) + { + PasteboardItemID item_id = 0; + PasteboardGetItemIdentifier(main_clipboard, i + 1, &item_id); + CFArrayRef flavor_type_array = 0; + PasteboardCopyItemFlavors(main_clipboard, item_id, &flavor_type_array); + for (CFIndex j = 0, nj = CFArrayGetCount(flavor_type_array); j < nj; j++) + { + CFDataRef cf_data; + if (PasteboardCopyItemFlavorData(main_clipboard, item_id, CFSTR("public.utf8-plain-text"), &cf_data) == noErr) + { + g.ClipboardHandlerData.clear(); + int length = (int)CFDataGetLength(cf_data); + g.ClipboardHandlerData.resize(length + 1); + CFDataGetBytes(cf_data, CFRangeMake(0, length), (UInt8*)g.ClipboardHandlerData.Data); + g.ClipboardHandlerData[length] = 0; + CFRelease(cf_data); + return g.ClipboardHandlerData.Data; + } + } + } + return NULL; +} + +#else + +// Local Dear ImGui-only clipboard implementation, if user hasn't defined better clipboard handlers. +static const char* GetClipboardTextFn_DefaultImpl(void* user_data_ctx) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + return g.ClipboardHandlerData.empty() ? NULL : g.ClipboardHandlerData.begin(); +} + +static void SetClipboardTextFn_DefaultImpl(void* user_data_ctx, const char* text) +{ + ImGuiContext& g = *(ImGuiContext*)user_data_ctx; + g.ClipboardHandlerData.clear(); + const char* text_end = text + strlen(text); + g.ClipboardHandlerData.resize((int)(text_end - text) + 1); + memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text)); + g.ClipboardHandlerData[(int)(text_end - text)] = 0; +} + +#endif + +// Win32 API IME support (for Asian languages, etc.) +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) + +#include +#ifdef _MSC_VER +#pragma comment(lib, "imm32") +#endif + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport* viewport, ImGuiPlatformImeData* data) +{ + // Notify OS Input Method Editor of text input position + HWND hwnd = (HWND)viewport->PlatformHandleRaw; + if (hwnd == 0) + return; + + //::ImmAssociateContextEx(hwnd, NULL, data->WantVisible ? IACE_DEFAULT : 0); + if (HIMC himc = ::ImmGetContext(hwnd)) + { + COMPOSITIONFORM composition_form = {}; + composition_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + composition_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + composition_form.dwStyle = CFS_FORCE_POSITION; + ::ImmSetCompositionWindow(himc, &composition_form); + CANDIDATEFORM candidate_form = {}; + candidate_form.dwStyle = CFS_CANDIDATEPOS; + candidate_form.ptCurrentPos.x = (LONG)(data->InputPos.x - viewport->Pos.x); + candidate_form.ptCurrentPos.y = (LONG)(data->InputPos.y - viewport->Pos.y); + ::ImmSetCandidateWindow(himc, &candidate_form); + ::ImmReleaseContext(hwnd, himc); + } +} + +#else + +static void SetPlatformImeDataFn_DefaultImpl(ImGuiViewport*, ImGuiPlatformImeData*) {} + +#endif + +//----------------------------------------------------------------------------- +// [SECTION] METRICS/DEBUGGER WINDOW +//----------------------------------------------------------------------------- +// - RenderViewportThumbnail() [Internal] +// - RenderViewportsThumbnails() [Internal] +// - DebugTextEncoding() +// - MetricsHelpMarker() [Internal] +// - ShowFontAtlas() [Internal] +// - ShowMetricsWindow() +// - DebugNodeColumns() [Internal] +// - DebugNodeDockNode() [Internal] +// - DebugNodeDrawList() [Internal] +// - DebugNodeDrawCmdShowMeshAndBoundingBox() [Internal] +// - DebugNodeFont() [Internal] +// - DebugNodeFontGlyph() [Internal] +// - DebugNodeStorage() [Internal] +// - DebugNodeTabBar() [Internal] +// - DebugNodeViewport() [Internal] +// - DebugNodeWindow() [Internal] +// - DebugNodeWindowSettings() [Internal] +// - DebugNodeWindowsList() [Internal] +// - DebugNodeWindowsListByBeginStackParent() [Internal] +//----------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImVec2 scale = bb.GetSize() / viewport->Size; + ImVec2 off = bb.Min - viewport->Pos * scale; + float alpha_mul = (viewport->Flags & ImGuiViewportFlags_IsMinimized) ? 0.30f : 1.00f; + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul * 0.40f)); + for (ImGuiWindow* thumb_window : g.Windows) + { + if (!thumb_window->WasActive || (thumb_window->Flags & ImGuiWindowFlags_ChildWindow)) + continue; + if (thumb_window->Viewport != viewport) + continue; + + ImRect thumb_r = thumb_window->Rect(); + ImRect title_r = thumb_window->TitleBarRect(); + thumb_r = ImRect(ImFloor(off + thumb_r.Min * scale), ImFloor(off + thumb_r.Max * scale)); + title_r = ImRect(ImFloor(off + title_r.Min * scale), ImFloor(off + ImVec2(title_r.Max.x, title_r.Min.y) * scale) + ImVec2(0,5)); // Exaggerate title bar height + thumb_r.ClipWithFull(bb); + title_r.ClipWithFull(bb); + const bool window_is_focused = (g.NavWindow && thumb_window->RootWindowForTitleBarHighlight == g.NavWindow->RootWindowForTitleBarHighlight); + window->DrawList->AddRectFilled(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_WindowBg, alpha_mul)); + window->DrawList->AddRectFilled(title_r.Min, title_r.Max, GetColorU32(window_is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg, alpha_mul)); + window->DrawList->AddRect(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); + window->DrawList->AddText(g.Font, g.FontSize * 1.0f, title_r.Min, GetColorU32(ImGuiCol_Text, alpha_mul), thumb_window->Name, FindRenderedTextEnd(thumb_window->Name)); + } + draw_list->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); +} + +static void RenderViewportsThumbnails() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We don't display full monitor bounds (we could, but it often looks awkward), instead we display just enough to cover all of our viewports. + float SCALE = 1.0f / 8.0f; + ImRect bb_full(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + for (ImGuiViewportP* viewport : g.Viewports) + bb_full.Add(viewport->GetMainRect()); + ImVec2 p = window->DC.CursorPos; + ImVec2 off = p - bb_full.Min * SCALE; + for (ImGuiViewportP* viewport : g.Viewports) + { + ImRect viewport_draw_bb(off + (viewport->Pos) * SCALE, off + (viewport->Pos + viewport->Size) * SCALE); + ImGui::DebugRenderViewportThumbnail(window->DrawList, viewport, viewport_draw_bb); + } + ImGui::Dummy(bb_full.GetSize() * SCALE); +} + +static int IMGUI_CDECL ViewportComparerByLastFocusedStampCount(const void* lhs, const void* rhs) +{ + const ImGuiViewportP* a = *(const ImGuiViewportP* const*)lhs; + const ImGuiViewportP* b = *(const ImGuiViewportP* const*)rhs; + return b->LastFocusedStampCount - a->LastFocusedStampCount; +} + +// Draw an arbitrary US keyboard layout to visualize translated keys +void ImGui::DebugRenderKeyboardPreview(ImDrawList* draw_list) +{ + const ImVec2 key_size = ImVec2(35.0f, 35.0f); + const float key_rounding = 3.0f; + const ImVec2 key_face_size = ImVec2(25.0f, 25.0f); + const ImVec2 key_face_pos = ImVec2(5.0f, 3.0f); + const float key_face_rounding = 2.0f; + const ImVec2 key_label_pos = ImVec2(7.0f, 4.0f); + const ImVec2 key_step = ImVec2(key_size.x - 1.0f, key_size.y - 1.0f); + const float key_row_offset = 9.0f; + + ImVec2 board_min = GetCursorScreenPos(); + ImVec2 board_max = ImVec2(board_min.x + 3 * key_step.x + 2 * key_row_offset + 10.0f, board_min.y + 3 * key_step.y + 10.0f); + ImVec2 start_pos = ImVec2(board_min.x + 5.0f - key_step.x, board_min.y); + + struct KeyLayoutData { int Row, Col; const char* Label; ImGuiKey Key; }; + const KeyLayoutData keys_to_display[] = + { + { 0, 0, "", ImGuiKey_Tab }, { 0, 1, "Q", ImGuiKey_Q }, { 0, 2, "W", ImGuiKey_W }, { 0, 3, "E", ImGuiKey_E }, { 0, 4, "R", ImGuiKey_R }, + { 1, 0, "", ImGuiKey_CapsLock }, { 1, 1, "A", ImGuiKey_A }, { 1, 2, "S", ImGuiKey_S }, { 1, 3, "D", ImGuiKey_D }, { 1, 4, "F", ImGuiKey_F }, + { 2, 0, "", ImGuiKey_LeftShift },{ 2, 1, "Z", ImGuiKey_Z }, { 2, 2, "X", ImGuiKey_X }, { 2, 3, "C", ImGuiKey_C }, { 2, 4, "V", ImGuiKey_V } + }; + + // Elements rendered manually via ImDrawList API are not clipped automatically. + // While not strictly necessary, here IsItemVisible() is used to avoid rendering these shapes when they are out of view. + Dummy(board_max - board_min); + if (!IsItemVisible()) + return; + draw_list->PushClipRect(board_min, board_max, true); + for (int n = 0; n < IM_ARRAYSIZE(keys_to_display); n++) + { + const KeyLayoutData* key_data = &keys_to_display[n]; + ImVec2 key_min = ImVec2(start_pos.x + key_data->Col * key_step.x + key_data->Row * key_row_offset, start_pos.y + key_data->Row * key_step.y); + ImVec2 key_max = key_min + key_size; + draw_list->AddRectFilled(key_min, key_max, IM_COL32(204, 204, 204, 255), key_rounding); + draw_list->AddRect(key_min, key_max, IM_COL32(24, 24, 24, 255), key_rounding); + ImVec2 face_min = ImVec2(key_min.x + key_face_pos.x, key_min.y + key_face_pos.y); + ImVec2 face_max = ImVec2(face_min.x + key_face_size.x, face_min.y + key_face_size.y); + draw_list->AddRect(face_min, face_max, IM_COL32(193, 193, 193, 255), key_face_rounding, ImDrawFlags_None, 2.0f); + draw_list->AddRectFilled(face_min, face_max, IM_COL32(252, 252, 252, 255), key_face_rounding); + ImVec2 label_min = ImVec2(key_min.x + key_label_pos.x, key_min.y + key_label_pos.y); + draw_list->AddText(label_min, IM_COL32(64, 64, 64, 255), key_data->Label); + if (IsKeyDown(key_data->Key)) + draw_list->AddRectFilled(key_min, key_max, IM_COL32(255, 0, 0, 128), key_rounding); + } + draw_list->PopClipRect(); +} + +// Helper tool to diagnose between text encoding issues and font loading issues. Pass your UTF-8 string and verify that there are correct. +void ImGui::DebugTextEncoding(const char* str) +{ + Text("Text: \"%s\"", str); + if (!BeginTable("##DebugTextEncoding", 4, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Resizable)) + return; + TableSetupColumn("Offset"); + TableSetupColumn("UTF-8"); + TableSetupColumn("Glyph"); + TableSetupColumn("Codepoint"); + TableHeadersRow(); + for (const char* p = str; *p != 0; ) + { + unsigned int c; + const int c_utf8_len = ImTextCharFromUtf8(&c, p, NULL); + TableNextColumn(); + Text("%d", (int)(p - str)); + TableNextColumn(); + for (int byte_index = 0; byte_index < c_utf8_len; byte_index++) + { + if (byte_index > 0) + SameLine(); + Text("0x%02X", (int)(unsigned char)p[byte_index]); + } + TableNextColumn(); + if (GetFont()->FindGlyphNoFallback((ImWchar)c)) + TextUnformatted(p, p + c_utf8_len); + else + TextUnformatted((c == IM_UNICODE_CODEPOINT_INVALID) ? "[invalid]" : "[missing]"); + TableNextColumn(); + Text("U+%04X", (int)c); + p += c_utf8_len; + } + EndTable(); +} + +// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. +static void MetricsHelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::BeginItemTooltip()) + { + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +// [DEBUG] List fonts in a font atlas and display its texture +void ImGui::ShowFontAtlas(ImFontAtlas* atlas) +{ + for (ImFont* font : atlas->Fonts) + { + PushID(font); + DebugNodeFont(font); + PopID(); + } + if (TreeNode("Font Atlas", "Font Atlas (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) + { + ImGuiContext& g = *GImGui; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + Checkbox("Tint with Text Color", &cfg->ShowAtlasTintedWithTextColor); // Using text color ensure visibility of core atlas data, but will alter custom colored icons + ImVec4 tint_col = cfg->ShowAtlasTintedWithTextColor ? GetStyleColorVec4(ImGuiCol_Text) : ImVec4(1.0f, 1.0f, 1.0f, 1.0f); + ImVec4 border_col = GetStyleColorVec4(ImGuiCol_Border); + Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), tint_col, border_col); + TreePop(); + } +} + +void ImGui::ShowMetricsWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + if (cfg->ShowDebugLog) + ShowDebugLogWindow(&cfg->ShowDebugLog); + if (cfg->ShowStackTool) + ShowStackToolWindow(&cfg->ShowStackTool); + + if (!Begin("Dear ImGui Metrics/Debugger", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Basic info + Text("Dear ImGui %s", GetVersion()); + Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + Text("%d vertices, %d indices (%d triangles)", io.MetricsRenderVertices, io.MetricsRenderIndices, io.MetricsRenderIndices / 3); + Text("%d visible windows, %d active allocations", io.MetricsRenderWindows, io.MetricsActiveAllocations); + //SameLine(); if (SmallButton("GC")) { g.GcCompactAll = true; } + + Separator(); + + // Debugging enums + enum { WRT_OuterRect, WRT_OuterRectClipped, WRT_InnerRect, WRT_InnerClipRect, WRT_WorkRect, WRT_Content, WRT_ContentIdeal, WRT_ContentRegionRect, WRT_Count }; // Windows Rect Type + const char* wrt_rects_names[WRT_Count] = { "OuterRect", "OuterRectClipped", "InnerRect", "InnerClipRect", "WorkRect", "Content", "ContentIdeal", "ContentRegionRect" }; + enum { TRT_OuterRect, TRT_InnerRect, TRT_WorkRect, TRT_HostClipRect, TRT_InnerClipRect, TRT_BackgroundClipRect, TRT_ColumnsRect, TRT_ColumnsWorkRect, TRT_ColumnsClipRect, TRT_ColumnsContentHeadersUsed, TRT_ColumnsContentHeadersIdeal, TRT_ColumnsContentFrozen, TRT_ColumnsContentUnfrozen, TRT_Count }; // Tables Rect Type + const char* trt_rects_names[TRT_Count] = { "OuterRect", "InnerRect", "WorkRect", "HostClipRect", "InnerClipRect", "BackgroundClipRect", "ColumnsRect", "ColumnsWorkRect", "ColumnsClipRect", "ColumnsContentHeadersUsed", "ColumnsContentHeadersIdeal", "ColumnsContentFrozen", "ColumnsContentUnfrozen" }; + if (cfg->ShowWindowsRectsType < 0) + cfg->ShowWindowsRectsType = WRT_WorkRect; + if (cfg->ShowTablesRectsType < 0) + cfg->ShowTablesRectsType = TRT_WorkRect; + + struct Funcs + { + static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) + { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); // Always using last submitted instance + if (rect_type == TRT_OuterRect) { return table->OuterRect; } + else if (rect_type == TRT_InnerRect) { return table->InnerRect; } + else if (rect_type == TRT_WorkRect) { return table->WorkRect; } + else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } + else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } + else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } + else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table_instance->LastOuterHeight); } + else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } + else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } + else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } // Note: y1/y2 not always accurate + else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table_instance->LastFirstRowHeight); } + else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table_instance->LastFrozenHeight); } + else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table_instance->LastFrozenHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } + IM_ASSERT(0); + return ImRect(); + } + + static ImRect GetWindowRect(ImGuiWindow* window, int rect_type) + { + if (rect_type == WRT_OuterRect) { return window->Rect(); } + else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; } + else if (rect_type == WRT_InnerRect) { return window->InnerRect; } + else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; } + else if (rect_type == WRT_WorkRect) { return window->WorkRect; } + else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); } + else if (rect_type == WRT_ContentIdeal) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSizeIdeal); } + else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; } + IM_ASSERT(0); + return ImRect(); + } + }; + + // Tools + if (TreeNode("Tools")) + { + bool show_encoding_viewer = TreeNode("UTF-8 Encoding viewer"); + SameLine(); + MetricsHelpMarker("You can also call ImGui::DebugTextEncoding() from your code with a given string to test that your UTF-8 encoding settings are correct."); + if (show_encoding_viewer) + { + static char buf[100] = ""; + SetNextItemWidth(-FLT_MIN); + InputText("##Text", buf, IM_ARRAYSIZE(buf)); + if (buf[0] != 0) + DebugTextEncoding(buf); + TreePop(); + } + + // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. + if (Checkbox("Show Item Picker", &g.DebugItemPickerActive) && g.DebugItemPickerActive) + DebugStartItemPicker(); + SameLine(); + MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); + + // Stack Tool is your best friend! + Checkbox("Show Debug Log", &cfg->ShowDebugLog); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowDebugLogWindow() from your code."); + + // Stack Tool is your best friend! + Checkbox("Show Stack Tool", &cfg->ShowStackTool); + SameLine(); + MetricsHelpMarker("You can also call ImGui::ShowStackToolWindow() from your code."); + + Checkbox("Show windows begin order", &cfg->ShowWindowsBeginOrder); + Checkbox("Show windows rectangles", &cfg->ShowWindowsRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowWindowsRects |= Combo("##show_windows_rect_type", &cfg->ShowWindowsRectsType, wrt_rects_names, WRT_Count, WRT_Count); + if (cfg->ShowWindowsRects && g.NavWindow != NULL) + { + BulletText("'%s':", g.NavWindow->Name); + Indent(); + for (int rect_n = 0; rect_n < WRT_Count; rect_n++) + { + ImRect r = Funcs::GetWindowRect(g.NavWindow, rect_n); + Text("(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), wrt_rects_names[rect_n]); + } + Unindent(); + } + + Checkbox("Show tables rectangles", &cfg->ShowTablesRects); + SameLine(); + SetNextItemWidth(GetFontSize() * 12); + cfg->ShowTablesRects |= Combo("##show_table_rects_type", &cfg->ShowTablesRectsType, trt_rects_names, TRT_Count, TRT_Count); + if (cfg->ShowTablesRects && g.NavWindow != NULL) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1 || (table->OuterWindow != g.NavWindow && table->InnerWindow != g.NavWindow)) + continue; + + BulletText("Table 0x%08X (%d columns, in '%s')", table->ID, table->ColumnsCount, table->OuterWindow->Name); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min - ImVec2(1, 1), table->OuterRect.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + Indent(); + char buf[128]; + for (int rect_n = 0; rect_n < TRT_Count; rect_n++) + { + if (rect_n >= TRT_ColumnsRect) + { + if (rect_n != TRT_ColumnsRect && rect_n != TRT_ColumnsClipRect) + continue; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, rect_n, column_n); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) Col %d %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), column_n, trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, rect_n, -1); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), trt_rects_names[rect_n]); + Selectable(buf); + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, 0, 2.0f); + } + } + Unindent(); + } + } + + Checkbox("Debug Begin/BeginChild return value", &io.ConfigDebugBeginReturnValueLoop); + SameLine(); + MetricsHelpMarker("Some calls to Begin()/BeginChild() will return false.\n\nWill cycle through window depths then repeat. Windows should be flickering while running."); + + TreePop(); + } + + // Windows + if (TreeNode("Windows", "Windows (%d)", g.Windows.Size)) + { + //SetNextItemOpen(true, ImGuiCond_Once); + DebugNodeWindowsList(&g.Windows, "By display order"); + DebugNodeWindowsList(&g.WindowsFocusOrder, "By focus order (root windows)"); + if (TreeNode("By submission order (begin stack)")) + { + // Here we display windows in their submitted order/hierarchy, however note that the Begin stack doesn't constitute a Parent<>Child relationship! + ImVector& temp_buffer = g.WindowsTempSortBuffer; + temp_buffer.resize(0); + for (ImGuiWindow* window : g.Windows) + if (window->LastFrameActive + 1 >= g.FrameCount) + temp_buffer.push_back(window); + struct Func { static int IMGUI_CDECL WindowComparerByBeginOrder(const void* lhs, const void* rhs) { return ((int)(*(const ImGuiWindow* const *)lhs)->BeginOrderWithinContext - (*(const ImGuiWindow* const*)rhs)->BeginOrderWithinContext); } }; + ImQsort(temp_buffer.Data, (size_t)temp_buffer.Size, sizeof(ImGuiWindow*), Func::WindowComparerByBeginOrder); + DebugNodeWindowsListByBeginStackParent(temp_buffer.Data, temp_buffer.Size, NULL); + TreePop(); + } + + TreePop(); + } + + // DrawLists + int drawlist_count = 0; + for (ImGuiViewportP* viewport : g.Viewports) + drawlist_count += viewport->DrawDataP.CmdLists.Size; + if (TreeNode("DrawLists", "DrawLists (%d)", drawlist_count)) + { + Checkbox("Show ImDrawCmd mesh when hovering", &cfg->ShowDrawCmdMesh); + Checkbox("Show ImDrawCmd bounding boxes when hovering", &cfg->ShowDrawCmdBoundingBoxes); + for (ImGuiViewportP* viewport : g.Viewports) + { + bool viewport_has_drawlist = false; + for (ImDrawList* draw_list : viewport->DrawDataP.CmdLists) + { + if (!viewport_has_drawlist) + Text("Active DrawLists in Viewport #%d, ID: 0x%08X", viewport->Idx, viewport->ID); + viewport_has_drawlist = true; + DebugNodeDrawList(NULL, viewport, draw_list, "DrawList"); + } + } + TreePop(); + } + + // Viewports + if (TreeNode("Viewports", "Viewports (%d)", g.Viewports.Size)) + { + Indent(GetTreeNodeToLabelSpacing()); + RenderViewportsThumbnails(); + Unindent(GetTreeNodeToLabelSpacing()); + + bool open = TreeNode("Monitors", "Monitors (%d)", g.PlatformIO.Monitors.Size); + SameLine(); + MetricsHelpMarker("Dear ImGui uses monitor data:\n- to query DPI settings on a per monitor basis\n- to position popup/tooltips so they don't straddle monitors."); + if (open) + { + for (int i = 0; i < g.PlatformIO.Monitors.Size; i++) + { + const ImGuiPlatformMonitor& mon = g.PlatformIO.Monitors[i]; + BulletText("Monitor #%d: DPI %.0f%%\n MainMin (%.0f,%.0f), MainMax (%.0f,%.0f), MainSize (%.0f,%.0f)\n WorkMin (%.0f,%.0f), WorkMax (%.0f,%.0f), WorkSize (%.0f,%.0f)", + i, mon.DpiScale * 100.0f, + mon.MainPos.x, mon.MainPos.y, mon.MainPos.x + mon.MainSize.x, mon.MainPos.y + mon.MainSize.y, mon.MainSize.x, mon.MainSize.y, + mon.WorkPos.x, mon.WorkPos.y, mon.WorkPos.x + mon.WorkSize.x, mon.WorkPos.y + mon.WorkSize.y, mon.WorkSize.x, mon.WorkSize.y); + } + TreePop(); + } + + BulletText("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport ? g.MouseViewport->ID : 0, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); + if (TreeNode("Inferred Z order (front-to-back)")) + { + static ImVector viewports; + viewports.resize(g.Viewports.Size); + memcpy(viewports.Data, g.Viewports.Data, g.Viewports.size_in_bytes()); + if (viewports.Size > 1) + ImQsort(viewports.Data, viewports.Size, sizeof(ImGuiViewport*), ViewportComparerByLastFocusedStampCount); + for (ImGuiViewportP* viewport : viewports) + BulletText("Viewport #%d, ID: 0x%08X, LastFocused = %08d, PlatformFocused = %s, Window: \"%s\"", + viewport->Idx, viewport->ID, viewport->LastFocusedStampCount, + (g.PlatformIO.Platform_GetWindowFocus && viewport->PlatformWindowCreated) ? (g.PlatformIO.Platform_GetWindowFocus(viewport) ? "1" : "0") : "N/A", + viewport->Window ? viewport->Window->Name : "N/A"); + TreePop(); + } + for (ImGuiViewportP* viewport : g.Viewports) + DebugNodeViewport(viewport); + TreePop(); + } + + // Details for Popups + if (TreeNode("Popups", "Popups (%d)", g.OpenPopupStack.Size)) + { + for (const ImGuiPopupData& popup_data : g.OpenPopupStack) + { + // As it's difficult to interact with tree nodes while popups are open, we display everything inline. + ImGuiWindow* window = popup_data.Window; + BulletText("PopupID: %08x, Window: '%s' (%s%s), BackupNavWindow '%s', ParentWindow '%s'", + popup_data.PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? "Child;" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? "Menu;" : "", + popup_data.BackupNavWindow ? popup_data.BackupNavWindow->Name : "NULL", window && window->ParentWindow ? window->ParentWindow->Name : "NULL"); + } + TreePop(); + } + + // Details for TabBars + if (TreeNode("TabBars", "Tab Bars (%d)", g.TabBars.GetAliveCount())) + { + for (int n = 0; n < g.TabBars.GetMapSize(); n++) + if (ImGuiTabBar* tab_bar = g.TabBars.TryGetMapData(n)) + { + PushID(tab_bar); + DebugNodeTabBar(tab_bar, "TabBar"); + PopID(); + } + TreePop(); + } + + // Details for Tables + if (TreeNode("Tables", "Tables (%d)", g.Tables.GetAliveCount())) + { + for (int n = 0; n < g.Tables.GetMapSize(); n++) + if (ImGuiTable* table = g.Tables.TryGetMapData(n)) + DebugNodeTable(table); + TreePop(); + } + + // Details for Fonts + ImFontAtlas* atlas = g.IO.Fonts; + if (TreeNode("Fonts", "Fonts (%d)", atlas->Fonts.Size)) + { + ShowFontAtlas(atlas); + TreePop(); + } + + // Details for InputText + if (TreeNode("InputText")) + { + DebugNodeInputTextState(&g.InputTextState); + TreePop(); + } + + // Details for TypingSelect + if (TreeNode("TypingSelect", "TypingSelect (%d)", g.TypingSelectState.SearchBuffer[0] != 0 ? 1 : 0)) + { + DebugNodeTypingSelectState(&g.TypingSelectState); + TreePop(); + } + + // Details for Docking +#ifdef IMGUI_HAS_DOCK + if (TreeNode("Docking")) + { + static bool root_nodes_only = true; + ImGuiDockContext* dc = &g.DockContext; + Checkbox("List root nodes", &root_nodes_only); + Checkbox("Ctrl shows window dock info", &cfg->ShowDockingNodes); + if (SmallButton("Clear nodes")) { DockContextClearNodes(&g, 0, true); } + SameLine(); + if (SmallButton("Rebuild all")) { dc->WantFullRebuild = true; } + for (int n = 0; n < dc->Nodes.Data.Size; n++) + if (ImGuiDockNode* node = (ImGuiDockNode*)dc->Nodes.Data[n].val_p) + if (!root_nodes_only || node->IsRootNode()) + DebugNodeDockNode(node, "Node"); + TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + // Settings + if (TreeNode("Settings")) + { + if (SmallButton("Clear")) + ClearIniSettings(); + SameLine(); + if (SmallButton("Save to memory")) + SaveIniSettingsToMemory(); + SameLine(); + if (SmallButton("Save to disk")) + SaveIniSettingsToDisk(g.IO.IniFilename); + SameLine(); + if (g.IO.IniFilename) + Text("\"%s\"", g.IO.IniFilename); + else + TextUnformatted(""); + Checkbox("io.ConfigDebugIniSettings", &io.ConfigDebugIniSettings); + Text("SettingsDirtyTimer %.2f", g.SettingsDirtyTimer); + if (TreeNode("SettingsHandlers", "Settings handlers: (%d)", g.SettingsHandlers.Size)) + { + for (ImGuiSettingsHandler& handler : g.SettingsHandlers) + BulletText("\"%s\"", handler.TypeName); + TreePop(); + } + if (TreeNode("SettingsWindows", "Settings packed data: Windows: %d bytes", g.SettingsWindows.size())) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + DebugNodeWindowSettings(settings); + TreePop(); + } + + if (TreeNode("SettingsTables", "Settings packed data: Tables: %d bytes", g.SettingsTables.size())) + { + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + DebugNodeTableSettings(settings); + TreePop(); + } + +#ifdef IMGUI_HAS_DOCK + if (TreeNode("SettingsDocking", "Settings packed data: Docking")) + { + ImGuiDockContext* dc = &g.DockContext; + Text("In SettingsWindows:"); + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->DockId != 0) + BulletText("Window '%s' -> DockId %08X DockOrder=%d", settings->GetName(), settings->DockId, settings->DockOrder); + Text("In SettingsNodes:"); + for (int n = 0; n < dc->NodesSettings.Size; n++) + { + ImGuiDockNodeSettings* settings = &dc->NodesSettings[n]; + const char* selected_tab_name = NULL; + if (settings->SelectedTabId) + { + if (ImGuiWindow* window = FindWindowByID(settings->SelectedTabId)) + selected_tab_name = window->Name; + else if (ImGuiWindowSettings* window_settings = FindWindowSettingsByID(settings->SelectedTabId)) + selected_tab_name = window_settings->GetName(); + } + BulletText("Node %08X, Parent %08X, SelectedTab %08X ('%s')", settings->ID, settings->ParentNodeId, settings->SelectedTabId, selected_tab_name ? selected_tab_name : settings->SelectedTabId ? "N/A" : ""); + } + TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + if (TreeNode("SettingsIniData", "Settings unpacked data (.ini): %d bytes", g.SettingsIniData.size())) + { + InputTextMultiline("##Ini", (char*)(void*)g.SettingsIniData.c_str(), g.SettingsIniData.Buf.Size, ImVec2(-FLT_MIN, GetTextLineHeight() * 20), ImGuiInputTextFlags_ReadOnly); + TreePop(); + } + TreePop(); + } + + if (TreeNode("Inputs")) + { + Text("KEYBOARD/GAMEPAD/MOUSE KEYS"); + { + // We iterate both legacy native range and named ImGuiKey ranges, which is a little odd but this allows displaying the data for old/new backends. + // User code should never have to go through such hoops! You can generally iterate between ImGuiKey_NamedKey_BEGIN and ImGuiKey_NamedKey_END. + Indent(); +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey) { return false; } }; +#else + struct funcs { static bool IsLegacyNativeDupe(ImGuiKey key) { return key < 512 && GetIO().KeyMap[key] != -1; } }; // Hide Native<>ImGuiKey duplicates when both exists in the array + //Text("Legacy raw:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key++) { if (io.KeysDown[key]) { SameLine(); Text("\"%s\" %d", GetKeyName(key), key); } } +#endif + Text("Keys down:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key) || !IsKeyDown(key)) continue; SameLine(); Text(IsNamedKey(key) ? "\"%s\"" : "\"%s\" %d", GetKeyName(key), key); SameLine(); Text("(%.02f)", GetKeyData(key)->DownDuration); } + Text("Keys pressed:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key) || !IsKeyPressed(key)) continue; SameLine(); Text(IsNamedKey(key) ? "\"%s\"" : "\"%s\" %d", GetKeyName(key), key); } + Text("Keys released:"); for (ImGuiKey key = ImGuiKey_KeysData_OFFSET; key < ImGuiKey_COUNT; key = (ImGuiKey)(key + 1)) { if (funcs::IsLegacyNativeDupe(key) || !IsKeyReleased(key)) continue; SameLine(); Text(IsNamedKey(key) ? "\"%s\"" : "\"%s\" %d", GetKeyName(key), key); } + Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); + Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; SameLine(); Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. + DebugRenderKeyboardPreview(GetWindowDrawList()); + Unindent(); + } + + Text("MOUSE STATE"); + { + Indent(); + if (IsMousePosValid()) + Text("Mouse pos: (%g, %g)", io.MousePos.x, io.MousePos.y); + else + Text("Mouse pos: "); + Text("Mouse delta: (%g, %g)", io.MouseDelta.x, io.MouseDelta.y); + int count = IM_ARRAYSIZE(io.MouseDown); + Text("Mouse down:"); for (int i = 0; i < count; i++) if (IsMouseDown(i)) { SameLine(); Text("b%d (%.02f secs)", i, io.MouseDownDuration[i]); } + Text("Mouse clicked:"); for (int i = 0; i < count; i++) if (IsMouseClicked(i)) { SameLine(); Text("b%d (%d)", i, io.MouseClickedCount[i]); } + Text("Mouse released:"); for (int i = 0; i < count; i++) if (IsMouseReleased(i)) { SameLine(); Text("b%d", i); } + Text("Mouse wheel: %.1f", io.MouseWheel); + Text("MouseStationaryTimer: %.2f", g.MouseStationaryTimer); + Text("Mouse source: %s", GetMouseSourceName(io.MouseSource)); + Text("Pen Pressure: %.1f", io.PenPressure); // Note: currently unused + Unindent(); + } + + Text("MOUSE WHEELING"); + { + Indent(); + Text("WheelingWindow: '%s'", g.WheelingWindow ? g.WheelingWindow->Name : "NULL"); + Text("WheelingWindowReleaseTimer: %.2f", g.WheelingWindowReleaseTimer); + Text("WheelingAxisAvg[] = { %.3f, %.3f }, Main Axis: %s", g.WheelingAxisAvg.x, g.WheelingAxisAvg.y, (g.WheelingAxisAvg.x > g.WheelingAxisAvg.y) ? "X" : (g.WheelingAxisAvg.x < g.WheelingAxisAvg.y) ? "Y" : ""); + Unindent(); + } + + Text("KEY OWNERS"); + { + Indent(); + if (BeginListBox("##owners", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 6))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyOwnerData* owner_data = GetKeyOwnerData(&g, key); + if (owner_data->OwnerCurr == ImGuiKeyOwner_None) + continue; + Text("%s: 0x%08X%s", GetKeyName(key), owner_data->OwnerCurr, + owner_data->LockUntilRelease ? " LockUntilRelease" : owner_data->LockThisFrame ? " LockThisFrame" : ""); + DebugLocateItemOnHover(owner_data->OwnerCurr); + } + EndListBox(); + } + Unindent(); + } + Text("SHORTCUT ROUTING"); + { + Indent(); + if (BeginListBox("##routes", ImVec2(-FLT_MIN, GetTextLineHeightWithSpacing() * 6))) + { + for (ImGuiKey key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key = (ImGuiKey)(key + 1)) + { + ImGuiKeyRoutingTable* rt = &g.KeysRoutingTable; + for (ImGuiKeyRoutingIndex idx = rt->Index[key - ImGuiKey_NamedKey_BEGIN]; idx != -1; ) + { + char key_chord_name[64]; + ImGuiKeyRoutingData* routing_data = &rt->Entries[idx]; + GetKeyChordName(key | routing_data->Mods, key_chord_name, IM_ARRAYSIZE(key_chord_name)); + Text("%s: 0x%08X", key_chord_name, routing_data->RoutingCurr); + DebugLocateItemOnHover(routing_data->RoutingCurr); + idx = routing_data->NextEntryIndex; + } + } + EndListBox(); + } + Text("(ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: 0x%X)", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + Unindent(); + } + TreePop(); + } + + if (TreeNode("Internal state")) + { + Text("WINDOWING"); + Indent(); + Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); + Text("HoveredWindow->Root: '%s'", g.HoveredWindow ? g.HoveredWindow->RootWindowDockTree->Name : "NULL"); + Text("HoveredWindowUnderMovingWindow: '%s'", g.HoveredWindowUnderMovingWindow ? g.HoveredWindowUnderMovingWindow->Name : "NULL"); + Text("HoveredDockNode: 0x%08X", g.DebugHoveredDockNode ? g.DebugHoveredDockNode->ID : 0); + Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL"); + Text("MouseViewport: 0x%08X (UserHovered 0x%08X, LastHovered 0x%08X)", g.MouseViewport->ID, g.IO.MouseHoveredViewport, g.MouseLastHoveredViewport ? g.MouseLastHoveredViewport->ID : 0); + Unindent(); + + Text("ITEMS"); + Indent(); + Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, GetInputSourceName(g.ActiveIdSource)); + DebugLocateItemOnHover(g.ActiveId); + Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); + Text("ActiveIdUsing: AllKeyboardKeys: %d, NavDirMask: %X", g.ActiveIdUsingAllKeyboardKeys, g.ActiveIdUsingNavDirMask); + Text("HoveredId: 0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Not displaying g.HoveredId as it is update mid-frame + Text("HoverItemDelayId: 0x%08X, Timer: %.2f, ClearTimer: %.2f", g.HoverItemDelayId, g.HoverItemDelayTimer, g.HoverItemDelayClearTimer); + Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); + DebugLocateItemOnHover(g.DragDropPayload.SourceId); + Unindent(); + + Text("NAV,FOCUS"); + Indent(); + Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); + Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); + DebugLocateItemOnHover(g.NavId); + Text("NavInputSource: %s", GetInputSourceName(g.NavInputSource)); + Text("NavLastValidSelectionUserData = %" IM_PRId64 " (0x%" IM_PRIX64 ")", g.NavLastValidSelectionUserData, g.NavLastValidSelectionUserData); + Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); + Text("NavActivateId/DownId/PressedId: %08X/%08X/%08X", g.NavActivateId, g.NavActivateDownId, g.NavActivatePressedId); + Text("NavActivateFlags: %04X", g.NavActivateFlags); + Text("NavDisableHighlight: %d, NavDisableMouseHover: %d", g.NavDisableHighlight, g.NavDisableMouseHover); + Text("NavFocusScopeId = 0x%08X", g.NavFocusScopeId); + Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL"); + Unindent(); + + TreePop(); + } + + // Overlay: Display windows Rectangles and Begin Order + if (cfg->ShowWindowsRects || cfg->ShowWindowsBeginOrder) + { + for (ImGuiWindow* window : g.Windows) + { + if (!window->WasActive) + continue; + ImDrawList* draw_list = GetForegroundDrawList(window); + if (cfg->ShowWindowsRects) + { + ImRect r = Funcs::GetWindowRect(window, cfg->ShowWindowsRectsType); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + if (cfg->ShowWindowsBeginOrder && !(window->Flags & ImGuiWindowFlags_ChildWindow)) + { + char buf[32]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "%d", window->BeginOrderWithinContext); + float font_size = GetFontSize(); + draw_list->AddRectFilled(window->Pos, window->Pos + ImVec2(font_size, font_size), IM_COL32(200, 100, 100, 255)); + draw_list->AddText(window->Pos, IM_COL32(255, 255, 255, 255), buf); + } + } + } + + // Overlay: Display Tables Rectangles + if (cfg->ShowTablesRects) + { + for (int table_n = 0; table_n < g.Tables.GetMapSize(); table_n++) + { + ImGuiTable* table = g.Tables.TryGetMapData(table_n); + if (table == NULL || table->LastFrameActive < g.FrameCount - 1) + continue; + ImDrawList* draw_list = GetForegroundDrawList(table->OuterWindow); + if (cfg->ShowTablesRectsType >= TRT_ColumnsRect) + { + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, column_n); + ImU32 col = (table->HoveredColumnBody == column_n) ? IM_COL32(255, 255, 128, 255) : IM_COL32(255, 0, 128, 255); + float thickness = (table->HoveredColumnBody == column_n) ? 3.0f : 1.0f; + draw_list->AddRect(r.Min, r.Max, col, 0.0f, 0, thickness); + } + } + else + { + ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, -1); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + } + } + +#ifdef IMGUI_HAS_DOCK + // Overlay: Display Docking info + if (cfg->ShowDockingNodes && g.IO.KeyCtrl && g.DebugHoveredDockNode) + { + char buf[64] = ""; + char* p = buf; + ImGuiDockNode* node = g.DebugHoveredDockNode; + ImDrawList* overlay_draw_list = node->HostWindow ? GetForegroundDrawList(node->HostWindow) : GetForegroundDrawList(GetMainViewport()); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "DockId: %X%s\n", node->ID, node->IsCentralNode() ? " *CentralNode*" : ""); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "WindowClass: %08X\n", node->WindowClass.ClassId); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "Size: (%.0f, %.0f)\n", node->Size.x, node->Size.y); + p += ImFormatString(p, buf + IM_ARRAYSIZE(buf) - p, "SizeRef: (%.0f, %.0f)\n", node->SizeRef.x, node->SizeRef.y); + int depth = DockNodeGetDepth(node); + overlay_draw_list->AddRect(node->Pos + ImVec2(3, 3) * (float)depth, node->Pos + node->Size - ImVec2(3, 3) * (float)depth, IM_COL32(200, 100, 100, 255)); + ImVec2 pos = node->Pos + ImVec2(3, 3) * (float)depth; + overlay_draw_list->AddRectFilled(pos - ImVec2(1, 1), pos + CalcTextSize(buf) + ImVec2(1, 1), IM_COL32(200, 100, 100, 255)); + overlay_draw_list->AddText(NULL, 0.0f, pos, IM_COL32(255, 255, 255, 255), buf); + } +#endif // #ifdef IMGUI_HAS_DOCK + + End(); +} + +// [DEBUG] Display contents of Columns +void ImGui::DebugNodeColumns(ImGuiOldColumns* columns) +{ + if (!TreeNode((void*)(uintptr_t)columns->ID, "Columns Id: 0x%08X, Count: %d, Flags: 0x%04X", columns->ID, columns->Count, columns->Flags)) + return; + BulletText("Width: %.1f (MinX: %.1f, MaxX: %.1f)", columns->OffMaxX - columns->OffMinX, columns->OffMinX, columns->OffMaxX); + for (ImGuiOldColumnData& column : columns->Columns) + BulletText("Column %02d: OffsetNorm %.3f (= %.1f px)", (int)columns->Columns.index_from_ptr(&column), column.OffsetNorm, GetColumnOffsetFromNorm(columns, column.OffsetNorm)); + TreePop(); +} + +static void DebugNodeDockNodeFlags(ImGuiDockNodeFlags* p_flags, const char* label, bool enabled) +{ + using namespace ImGui; + PushID(label); + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0.0f, 0.0f)); + Text("%s:", label); + if (!enabled) + BeginDisabled(); + CheckboxFlags("NoResize", p_flags, ImGuiDockNodeFlags_NoResize); + CheckboxFlags("NoResizeX", p_flags, ImGuiDockNodeFlags_NoResizeX); + CheckboxFlags("NoResizeY",p_flags, ImGuiDockNodeFlags_NoResizeY); + CheckboxFlags("NoTabBar", p_flags, ImGuiDockNodeFlags_NoTabBar); + CheckboxFlags("HiddenTabBar", p_flags, ImGuiDockNodeFlags_HiddenTabBar); + CheckboxFlags("NoWindowMenuButton", p_flags, ImGuiDockNodeFlags_NoWindowMenuButton); + CheckboxFlags("NoCloseButton", p_flags, ImGuiDockNodeFlags_NoCloseButton); + CheckboxFlags("NoDocking", p_flags, ImGuiDockNodeFlags_NoDocking); // Multiple flags + CheckboxFlags("NoDockingSplit", p_flags, ImGuiDockNodeFlags_NoDockingSplit); + CheckboxFlags("NoDockingSplitOther", p_flags, ImGuiDockNodeFlags_NoDockingSplitOther); + CheckboxFlags("NoDockingOver", p_flags, ImGuiDockNodeFlags_NoDockingOverMe); + CheckboxFlags("NoDockingOverOther", p_flags, ImGuiDockNodeFlags_NoDockingOverOther); + CheckboxFlags("NoDockingOverEmpty", p_flags, ImGuiDockNodeFlags_NoDockingOverEmpty); + CheckboxFlags("NoUndocking", p_flags, ImGuiDockNodeFlags_NoUndocking); + if (!enabled) + EndDisabled(); + PopStyleVar(); + PopID(); +} + +// [DEBUG] Display contents of ImDockNode +void ImGui::DebugNodeDockNode(ImGuiDockNode* node, const char* label) +{ + ImGuiContext& g = *GImGui; + const bool is_alive = (g.FrameCount - node->LastFrameAlive < 2); // Submitted with ImGuiDockNodeFlags_KeepAliveOnly + const bool is_active = (g.FrameCount - node->LastFrameActive < 2); // Submitted + if (!is_alive) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open; + ImGuiTreeNodeFlags tree_node_flags = node->IsFocused ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (node->Windows.Size > 0) + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %d windows (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", node->Windows.Size, node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + else + open = TreeNodeEx((void*)(intptr_t)node->ID, tree_node_flags, "%s 0x%04X%s: %s (vis: '%s')", label, node->ID, node->IsVisible ? "" : " (hidden)", (node->SplitAxis == ImGuiAxis_X) ? "horizontal split" : (node->SplitAxis == ImGuiAxis_Y) ? "vertical split" : "empty", node->VisibleWindow ? node->VisibleWindow->Name : "NULL"); + if (!is_alive) { PopStyleColor(); } + if (is_active && IsItemHovered()) + if (ImGuiWindow* window = node->HostWindow ? node->HostWindow : node->VisibleWindow) + GetForegroundDrawList(window)->AddRect(node->Pos, node->Pos + node->Size, IM_COL32(255, 255, 0, 255)); + if (open) + { + IM_ASSERT(node->ChildNodes[0] == NULL || node->ChildNodes[0]->ParentNode == node); + IM_ASSERT(node->ChildNodes[1] == NULL || node->ChildNodes[1]->ParentNode == node); + BulletText("Pos (%.0f,%.0f), Size (%.0f, %.0f) Ref (%.0f, %.0f)", + node->Pos.x, node->Pos.y, node->Size.x, node->Size.y, node->SizeRef.x, node->SizeRef.y); + DebugNodeWindow(node->HostWindow, "HostWindow"); + DebugNodeWindow(node->VisibleWindow, "VisibleWindow"); + BulletText("SelectedTabID: 0x%08X, LastFocusedNodeID: 0x%08X", node->SelectedTabId, node->LastFocusedNodeId); + BulletText("Misc:%s%s%s%s%s%s%s", + node->IsDockSpace() ? " IsDockSpace" : "", + node->IsCentralNode() ? " IsCentralNode" : "", + is_alive ? " IsAlive" : "", is_active ? " IsActive" : "", node->IsFocused ? " IsFocused" : "", + node->WantLockSizeOnce ? " WantLockSizeOnce" : "", + node->HasCentralNodeChild ? " HasCentralNodeChild" : ""); + if (TreeNode("flags", "Flags Merged: 0x%04X, Local: 0x%04X, InWindows: 0x%04X, Shared: 0x%04X", node->MergedFlags, node->LocalFlags, node->LocalFlagsInWindows, node->SharedFlags)) + { + if (BeginTable("flags", 4)) + { + TableNextColumn(); DebugNodeDockNodeFlags(&node->MergedFlags, "MergedFlags", false); + TableNextColumn(); DebugNodeDockNodeFlags(&node->LocalFlags, "LocalFlags", true); + TableNextColumn(); DebugNodeDockNodeFlags(&node->LocalFlagsInWindows, "LocalFlagsInWindows", false); + TableNextColumn(); DebugNodeDockNodeFlags(&node->SharedFlags, "SharedFlags", true); + EndTable(); + } + TreePop(); + } + if (node->ParentNode) + DebugNodeDockNode(node->ParentNode, "ParentNode"); + if (node->ChildNodes[0]) + DebugNodeDockNode(node->ChildNodes[0], "Child[0]"); + if (node->ChildNodes[1]) + DebugNodeDockNode(node->ChildNodes[1], "Child[1]"); + if (node->TabBar) + DebugNodeTabBar(node->TabBar, "TabBar"); + DebugNodeWindowsList(&node->Windows, "Windows"); + + TreePop(); + } +} + +// [DEBUG] Display contents of ImDrawList +// Note that both 'window' and 'viewport' may be NULL here. Viewport is generally null of destroyed popups which previously owned a viewport. +void ImGui::DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; + int cmd_count = draw_list->CmdBuffer.Size; + if (cmd_count > 0 && draw_list->CmdBuffer.back().ElemCount == 0 && draw_list->CmdBuffer.back().UserCallback == NULL) + cmd_count--; + bool node_open = TreeNode(draw_list, "%s: '%s' %d vtx, %d indices, %d cmds", label, draw_list->_OwnerName ? draw_list->_OwnerName : "", draw_list->VtxBuffer.Size, draw_list->IdxBuffer.Size, cmd_count); + if (draw_list == GetWindowDrawList()) + { + SameLine(); + TextColored(ImVec4(1.0f, 0.4f, 0.4f, 1.0f), "CURRENTLY APPENDING"); // Can't display stats for active draw list! (we don't have the data double-buffered) + if (node_open) + TreePop(); + return; + } + + ImDrawList* fg_draw_list = viewport ? GetForegroundDrawList(viewport) : NULL; // Render additional visuals into the top-most draw list + if (window && IsItemHovered() && fg_draw_list) + fg_draw_list->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!node_open) + return; + + if (window && !window->WasActive) + TextDisabled("Warning: owning Window is inactive. This DrawList is not being rendered!"); + + for (const ImDrawCmd* pcmd = draw_list->CmdBuffer.Data; pcmd < draw_list->CmdBuffer.Data + cmd_count; pcmd++) + { + if (pcmd->UserCallback) + { + BulletText("Callback %p, user_data %p", pcmd->UserCallback, pcmd->UserCallbackData); + continue; + } + + char buf[300]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "DrawCmd:%5d tris, Tex 0x%p, ClipRect (%4.0f,%4.0f)-(%4.0f,%4.0f)", + pcmd->ElemCount / 3, (void*)(intptr_t)pcmd->TextureId, + pcmd->ClipRect.x, pcmd->ClipRect.y, pcmd->ClipRect.z, pcmd->ClipRect.w); + bool pcmd_node_open = TreeNode((void*)(pcmd - draw_list->CmdBuffer.begin()), "%s", buf); + if (IsItemHovered() && (cfg->ShowDrawCmdMesh || cfg->ShowDrawCmdBoundingBoxes) && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, cfg->ShowDrawCmdMesh, cfg->ShowDrawCmdBoundingBoxes); + if (!pcmd_node_open) + continue; + + // Calculate approximate coverage area (touched pixel count) + // This will be in pixels squared as long there's no post-scaling happening to the renderer output. + const ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; + const ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + pcmd->VtxOffset; + float total_area = 0.0f; + for (unsigned int idx_n = pcmd->IdxOffset; idx_n < pcmd->IdxOffset + pcmd->ElemCount; ) + { + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos; + total_area += ImTriangleArea(triangle[0], triangle[1], triangle[2]); + } + + // Display vertex information summary. Hover to get all triangles drawn in wire-frame + ImFormatString(buf, IM_ARRAYSIZE(buf), "Mesh: ElemCount: %d, VtxOffset: +%d, IdxOffset: +%d, Area: ~%0.f px", pcmd->ElemCount, pcmd->VtxOffset, pcmd->IdxOffset, total_area); + Selectable(buf); + if (IsItemHovered() && fg_draw_list) + DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, true, false); + + // Display individual triangles/vertices. Hover on to get the corresponding triangle highlighted. + ImGuiListClipper clipper; + clipper.Begin(pcmd->ElemCount / 3); // Manually coarse clip our print out of individual vertices to save CPU, only items that may be visible. + while (clipper.Step()) + for (int prim = clipper.DisplayStart, idx_i = pcmd->IdxOffset + clipper.DisplayStart * 3; prim < clipper.DisplayEnd; prim++) + { + char* buf_p = buf, * buf_end = buf + IM_ARRAYSIZE(buf); + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_i++) + { + const ImDrawVert& v = vtx_buffer[idx_buffer ? idx_buffer[idx_i] : idx_i]; + triangle[n] = v.pos; + buf_p += ImFormatString(buf_p, buf_end - buf_p, "%s %04d: pos (%8.2f,%8.2f), uv (%.6f,%.6f), col %08X\n", + (n == 0) ? "Vert:" : " ", idx_i, v.pos.x, v.pos.y, v.uv.x, v.uv.y, v.col); + } + + Selectable(buf, false); + if (fg_draw_list && IsItemHovered()) + { + ImDrawListFlags backup_flags = fg_draw_list->Flags; + fg_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + fg_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); + fg_draw_list->Flags = backup_flags; + } + } + TreePop(); + } + TreePop(); +} + +// [DEBUG] Display mesh/aabb of a ImDrawCmd +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb) +{ + IM_ASSERT(show_mesh || show_aabb); + + // Draw wire-frame version of all triangles + ImRect clip_rect = draw_cmd->ClipRect; + ImRect vtxs_rect(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + ImDrawListFlags backup_flags = out_draw_list->Flags; + out_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + for (unsigned int idx_n = draw_cmd->IdxOffset, idx_end = draw_cmd->IdxOffset + draw_cmd->ElemCount; idx_n < idx_end; ) + { + ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; // We don't hold on those pointers past iterations as ->AddPolyline() may invalidate them if out_draw_list==draw_list + ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + draw_cmd->VtxOffset; + + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_n++) + vtxs_rect.Add((triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos)); + if (show_mesh) + out_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), ImDrawFlags_Closed, 1.0f); // In yellow: mesh triangles + } + // Draw bounding boxes + if (show_aabb) + { + out_draw_list->AddRect(ImFloor(clip_rect.Min), ImFloor(clip_rect.Max), IM_COL32(255, 0, 255, 255)); // In pink: clipping rectangle submitted to GPU + out_draw_list->AddRect(ImFloor(vtxs_rect.Min), ImFloor(vtxs_rect.Max), IM_COL32(0, 255, 255, 255)); // In cyan: bounding box of triangles + } + out_draw_list->Flags = backup_flags; +} + +// [DEBUG] Display details for a single font, called by ShowStyleEditor(). +void ImGui::DebugNodeFont(ImFont* font) +{ + bool opened = TreeNode(font, "Font: \"%s\"\n%.2f px, %d glyphs, %d file(s)", + font->ConfigData ? font->ConfigData[0].Name : "", font->FontSize, font->Glyphs.Size, font->ConfigDataCount); + SameLine(); + if (SmallButton("Set as default")) + GetIO().FontDefault = font; + if (!opened) + return; + + // Display preview text + PushFont(font); + Text("The quick brown fox jumps over the lazy dog"); + PopFont(); + + // Display details + SetNextItemWidth(GetFontSize() * 8); + DragFloat("Font scale", &font->Scale, 0.005f, 0.3f, 2.0f, "%.1f"); + SameLine(); MetricsHelpMarker( + "Note than the default embedded font is NOT meant to be scaled.\n\n" + "Font are currently rendered into bitmaps at a given size at the time of building the atlas. " + "You may oversample them to get some flexibility with scaling. " + "You can also render at multiple sizes and select which one to use at runtime.\n\n" + "(Glimmer of hope: the atlas system will be rewritten in the future to make scaling more flexible.)"); + Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent); + char c_str[5]; + Text("Fallback character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->FallbackChar), font->FallbackChar); + Text("Ellipsis character: '%s' (U+%04X)", ImTextCharToUtf8(c_str, font->EllipsisChar), font->EllipsisChar); + const int surface_sqrt = (int)ImSqrt((float)font->MetricsTotalSurface); + Text("Texture Area: about %d px ~%dx%d px", font->MetricsTotalSurface, surface_sqrt, surface_sqrt); + for (int config_i = 0; config_i < font->ConfigDataCount; config_i++) + if (font->ConfigData) + if (const ImFontConfig* cfg = &font->ConfigData[config_i]) + BulletText("Input %d: \'%s\', Oversample: (%d,%d), PixelSnapH: %d, Offset: (%.1f,%.1f)", + config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH, cfg->GlyphOffset.x, cfg->GlyphOffset.y); + + // Display all glyphs of the fonts in separate pages of 256 characters + if (TreeNode("Glyphs", "Glyphs (%d)", font->Glyphs.Size)) + { + ImDrawList* draw_list = GetWindowDrawList(); + const ImU32 glyph_col = GetColorU32(ImGuiCol_Text); + const float cell_size = font->FontSize * 1; + const float cell_spacing = GetStyle().ItemSpacing.y; + for (unsigned int base = 0; base <= IM_UNICODE_CODEPOINT_MAX; base += 256) + { + // Skip ahead if a large bunch of glyphs are not present in the font (test in chunks of 4k) + // This is only a small optimization to reduce the number of iterations when IM_UNICODE_MAX_CODEPOINT + // is large // (if ImWchar==ImWchar32 we will do at least about 272 queries here) + if (!(base & 4095) && font->IsGlyphRangeUnused(base, base + 4095)) + { + base += 4096 - 256; + continue; + } + + int count = 0; + for (unsigned int n = 0; n < 256; n++) + if (font->FindGlyphNoFallback((ImWchar)(base + n))) + count++; + if (count <= 0) + continue; + if (!TreeNode((void*)(intptr_t)base, "U+%04X..U+%04X (%d %s)", base, base + 255, count, count > 1 ? "glyphs" : "glyph")) + continue; + + // Draw a 16x16 grid of glyphs + ImVec2 base_pos = GetCursorScreenPos(); + for (unsigned int n = 0; n < 256; n++) + { + // We use ImFont::RenderChar as a shortcut because we don't have UTF-8 conversion functions + // available here and thus cannot easily generate a zero-terminated UTF-8 encoded string. + ImVec2 cell_p1(base_pos.x + (n % 16) * (cell_size + cell_spacing), base_pos.y + (n / 16) * (cell_size + cell_spacing)); + ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); + const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); + draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); + if (!glyph) + continue; + font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); + if (IsMouseHoveringRect(cell_p1, cell_p2) && BeginTooltip()) + { + DebugNodeFontGlyph(font, glyph); + EndTooltip(); + } + } + Dummy(ImVec2((cell_size + cell_spacing) * 16, (cell_size + cell_spacing) * 16)); + TreePop(); + } + TreePop(); + } + TreePop(); +} + +void ImGui::DebugNodeFontGlyph(ImFont*, const ImFontGlyph* glyph) +{ + Text("Codepoint: U+%04X", glyph->Codepoint); + Separator(); + Text("Visible: %d", glyph->Visible); + Text("AdvanceX: %.1f", glyph->AdvanceX); + Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); + Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); +} + +// [DEBUG] Display contents of ImGuiStorage +void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label) +{ + if (!TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes())) + return; + for (const ImGuiStorage::ImGuiStoragePair& p : storage->Data) + BulletText("Key 0x%08X Value { i: %d }", p.key, p.val_i); // Important: we currently don't store a type, real value may not be integer. + TreePop(); +} + +// [DEBUG] Display contents of ImGuiTabBar +void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) +{ + // Standalone tab bars (not associated to docking/windows functionality) currently hold no discernible strings. + char buf[256]; + char* p = buf; + const char* buf_end = buf + IM_ARRAYSIZE(buf); + const bool is_active = (tab_bar->PrevFrameVisible >= GetFrameCount() - 2); + p += ImFormatString(p, buf_end - p, "%s 0x%08X (%d tabs)%s {", label, tab_bar->ID, tab_bar->Tabs.Size, is_active ? "" : " *Inactive*"); + for (int tab_n = 0; tab_n < ImMin(tab_bar->Tabs.Size, 3); tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + p += ImFormatString(p, buf_end - p, "%s'%s'", tab_n > 0 ? ", " : "", TabBarGetTabName(tab_bar, tab)); + } + p += ImFormatString(p, buf_end - p, (tab_bar->Tabs.Size > 3) ? " ... }" : " } "); + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(label, "%s", buf); + if (!is_active) { PopStyleColor(); } + if (is_active && IsItemHovered()) + { + ImDrawList* draw_list = GetForegroundDrawList(); + draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + } + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + PushID(tab); + if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2); + if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine(); + Text("%02d%c Tab 0x%08X '%s' Offset: %.2f, Width: %.2f/%.2f", + tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, TabBarGetTabName(tab_bar, tab), tab->Offset, tab->Width, tab->ContentWidth); + PopID(); + } + TreePop(); + } +} + +void ImGui::DebugNodeViewport(ImGuiViewportP* viewport) +{ + SetNextItemOpen(true, ImGuiCond_Once); + if (TreeNode((void*)(intptr_t)viewport->ID, "Viewport #%d, ID: 0x%08X, Parent: 0x%08X, Window: \"%s\"", viewport->Idx, viewport->ID, viewport->ParentViewportId, viewport->Window ? viewport->Window->Name : "N/A")) + { + ImGuiWindowFlags flags = viewport->Flags; + BulletText("Main Pos: (%.0f,%.0f), Size: (%.0f,%.0f)\nWorkArea Offset Left: %.0f Top: %.0f, Right: %.0f, Bottom: %.0f\nMonitor: %d, DpiScale: %.0f%%", + viewport->Pos.x, viewport->Pos.y, viewport->Size.x, viewport->Size.y, + viewport->WorkOffsetMin.x, viewport->WorkOffsetMin.y, viewport->WorkOffsetMax.x, viewport->WorkOffsetMax.y, + viewport->PlatformMonitor, viewport->DpiScale * 100.0f); + if (viewport->Idx > 0) { SameLine(); if (SmallButton("Reset Pos")) { viewport->Pos = ImVec2(200, 200); viewport->UpdateWorkRect(); if (viewport->Window) viewport->Window->Pos = viewport->Pos; } } + BulletText("Flags: 0x%04X =%s%s%s%s%s%s%s%s%s%s%s%s%s", viewport->Flags, + //(flags & ImGuiViewportFlags_IsPlatformWindow) ? " IsPlatformWindow" : "", // Omitting because it is the standard + (flags & ImGuiViewportFlags_IsPlatformMonitor) ? " IsPlatformMonitor" : "", + (flags & ImGuiViewportFlags_IsMinimized) ? " IsMinimized" : "", + (flags & ImGuiViewportFlags_IsFocused) ? " IsFocused" : "", + (flags & ImGuiViewportFlags_OwnedByApp) ? " OwnedByApp" : "", + (flags & ImGuiViewportFlags_NoDecoration) ? " NoDecoration" : "", + (flags & ImGuiViewportFlags_NoTaskBarIcon) ? " NoTaskBarIcon" : "", + (flags & ImGuiViewportFlags_NoFocusOnAppearing) ? " NoFocusOnAppearing" : "", + (flags & ImGuiViewportFlags_NoFocusOnClick) ? " NoFocusOnClick" : "", + (flags & ImGuiViewportFlags_NoInputs) ? " NoInputs" : "", + (flags & ImGuiViewportFlags_NoRendererClear) ? " NoRendererClear" : "", + (flags & ImGuiViewportFlags_NoAutoMerge) ? " NoAutoMerge" : "", + (flags & ImGuiViewportFlags_TopMost) ? " TopMost" : "", + (flags & ImGuiViewportFlags_CanHostOtherWindows) ? " CanHostOtherWindows" : ""); + for (ImDrawList* draw_list : viewport->DrawDataP.CmdLists) + DebugNodeDrawList(NULL, viewport, draw_list, "DrawList"); + TreePop(); + } +} + +void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label) +{ + if (window == NULL) + { + BulletText("%s: NULL", label); + return; + } + + ImGuiContext& g = *GImGui; + const bool is_active = window->WasActive; + ImGuiTreeNodeFlags tree_node_flags = (window == g.NavWindow) ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + const bool open = TreeNodeEx(label, tree_node_flags, "%s '%s'%s", label, window->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered() && is_active) + GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!open) + return; + + if (window->MemoryCompacted) + TextDisabled("Note: some memory buffers have been compacted/freed."); + + ImGuiWindowFlags flags = window->Flags; + DebugNodeDrawList(window, window->Viewport, window->DrawList, "DrawList"); + BulletText("Pos: (%.1f,%.1f), Size: (%.1f,%.1f), ContentSize (%.1f,%.1f) Ideal (%.1f,%.1f)", window->Pos.x, window->Pos.y, window->Size.x, window->Size.y, window->ContentSize.x, window->ContentSize.y, window->ContentSizeIdeal.x, window->ContentSizeIdeal.y); + BulletText("Flags: 0x%08X (%s%s%s%s%s%s%s%s%s..)", flags, + (flags & ImGuiWindowFlags_ChildWindow) ? "Child " : "", (flags & ImGuiWindowFlags_Tooltip) ? "Tooltip " : "", (flags & ImGuiWindowFlags_Popup) ? "Popup " : "", + (flags & ImGuiWindowFlags_Modal) ? "Modal " : "", (flags & ImGuiWindowFlags_ChildMenu) ? "ChildMenu " : "", (flags & ImGuiWindowFlags_NoSavedSettings) ? "NoSavedSettings " : "", + (flags & ImGuiWindowFlags_NoMouseInputs)? "NoMouseInputs":"", (flags & ImGuiWindowFlags_NoNavInputs) ? "NoNavInputs" : "", (flags & ImGuiWindowFlags_AlwaysAutoResize) ? "AlwaysAutoResize" : ""); + BulletText("WindowClassId: 0x%08X", window->WindowClass.ClassId); + BulletText("Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s", window->Scroll.x, window->ScrollMax.x, window->Scroll.y, window->ScrollMax.y, window->ScrollbarX ? "X" : "", window->ScrollbarY ? "Y" : ""); + BulletText("Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d", window->Active, window->WasActive, window->WriteAccessed, (window->Active || window->WasActive) ? window->BeginOrderWithinContext : -1); + BulletText("Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d", window->Appearing, window->Hidden, window->HiddenFramesCanSkipItems, window->HiddenFramesCannotSkipItems, window->SkipItems); + for (int layer = 0; layer < ImGuiNavLayer_COUNT; layer++) + { + ImRect r = window->NavRectRel[layer]; + if (r.Min.x >= r.Max.y && r.Min.y >= r.Max.y) + BulletText("NavLastIds[%d]: 0x%08X", layer, window->NavLastIds[layer]); + else + BulletText("NavLastIds[%d]: 0x%08X at +(%.1f,%.1f)(%.1f,%.1f)", layer, window->NavLastIds[layer], r.Min.x, r.Min.y, r.Max.x, r.Max.y); + DebugLocateItemOnHover(window->NavLastIds[layer]); + } + const ImVec2* pr = window->NavPreferredScoringPosRel; + for (int layer = 0; layer < ImGuiNavLayer_COUNT; layer++) + BulletText("NavPreferredScoringPosRel[%d] = {%.1f,%.1f)", layer, (pr[layer].x == FLT_MAX ? -99999.0f : pr[layer].x), (pr[layer].y == FLT_MAX ? -99999.0f : pr[layer].y)); // Display as 99999.0f so it looks neater. + BulletText("NavLayersActiveMask: %X, NavLastChildNavWindow: %s", window->DC.NavLayersActiveMask, window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); + + BulletText("Viewport: %d%s, ViewportId: 0x%08X, ViewportPos: (%.1f,%.1f)", window->Viewport ? window->Viewport->Idx : -1, window->ViewportOwned ? " (Owned)" : "", window->ViewportId, window->ViewportPos.x, window->ViewportPos.y); + BulletText("ViewportMonitor: %d", window->Viewport ? window->Viewport->PlatformMonitor : -1); + BulletText("DockId: 0x%04X, DockOrder: %d, Act: %d, Vis: %d", window->DockId, window->DockOrder, window->DockIsActive, window->DockTabIsVisible); + if (window->DockNode || window->DockNodeAsHost) + DebugNodeDockNode(window->DockNodeAsHost ? window->DockNodeAsHost : window->DockNode, window->DockNodeAsHost ? "DockNodeAsHost" : "DockNode"); + + if (window->RootWindow != window) { DebugNodeWindow(window->RootWindow, "RootWindow"); } + if (window->RootWindowDockTree != window->RootWindow) { DebugNodeWindow(window->RootWindowDockTree, "RootWindowDockTree"); } + if (window->ParentWindow != NULL) { DebugNodeWindow(window->ParentWindow, "ParentWindow"); } + if (window->DC.ChildWindows.Size > 0) { DebugNodeWindowsList(&window->DC.ChildWindows, "ChildWindows"); } + if (window->ColumnsStorage.Size > 0 && TreeNode("Columns", "Columns sets (%d)", window->ColumnsStorage.Size)) + { + for (ImGuiOldColumns& columns : window->ColumnsStorage) + DebugNodeColumns(&columns); + TreePop(); + } + DebugNodeStorage(&window->StateStorage, "Storage"); + TreePop(); +} + +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings* settings) +{ + if (settings->WantDelete) + BeginDisabled(); + Text("0x%08X \"%s\" Pos (%d,%d) Size (%d,%d) Collapsed=%d", + settings->ID, settings->GetName(), settings->Pos.x, settings->Pos.y, settings->Size.x, settings->Size.y, settings->Collapsed); + if (settings->WantDelete) + EndDisabled(); +} + +void ImGui::DebugNodeWindowsList(ImVector* windows, const char* label) +{ + if (!TreeNode(label, "%s (%d)", label, windows->Size)) + return; + for (int i = windows->Size - 1; i >= 0; i--) // Iterate front to back + { + PushID((*windows)[i]); + DebugNodeWindow((*windows)[i], "Window"); + PopID(); + } + TreePop(); +} + +// FIXME-OPT: This is technically suboptimal, but it is simpler this way. +void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack) +{ + for (int i = 0; i < windows_size; i++) + { + ImGuiWindow* window = windows[i]; + if (window->ParentWindowInBeginStack != parent_in_begin_stack) + continue; + char buf[20]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext); + //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name); + DebugNodeWindow(window, buf); + Indent(); + DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window); + Unindent(); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] DEBUG LOG WINDOW +//----------------------------------------------------------------------------- + +void ImGui::DebugLog(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + DebugLogV(fmt, args); + va_end(args); +} + +void ImGui::DebugLogV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const int old_size = g.DebugLogBuf.size(); + g.DebugLogBuf.appendf("[%05d] ", g.FrameCount); + g.DebugLogBuf.appendfv(fmt, args); + g.DebugLogIndex.append(g.DebugLogBuf.c_str(), old_size, g.DebugLogBuf.size()); + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTTY) + IMGUI_DEBUG_PRINTF("%s", g.DebugLogBuf.begin() + old_size); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (g.DebugLogFlags & ImGuiDebugLogFlags_OutputToTestEngine) + IMGUI_TEST_ENGINE_LOG("%s", g.DebugLogBuf.begin() + old_size); +#endif +} + +void ImGui::ShowDebugLogWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 12.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Debug Log", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + CheckboxFlags("All", &g.DebugLogFlags, ImGuiDebugLogFlags_EventMask_); + SameLine(); CheckboxFlags("ActiveId", &g.DebugLogFlags, ImGuiDebugLogFlags_EventActiveId); + SameLine(); CheckboxFlags("Focus", &g.DebugLogFlags, ImGuiDebugLogFlags_EventFocus); + SameLine(); CheckboxFlags("Popup", &g.DebugLogFlags, ImGuiDebugLogFlags_EventPopup); + SameLine(); CheckboxFlags("Nav", &g.DebugLogFlags, ImGuiDebugLogFlags_EventNav); + SameLine(); if (CheckboxFlags("Clipper", &g.DebugLogFlags, ImGuiDebugLogFlags_EventClipper)) { g.DebugLogClipperAutoDisableFrames = 2; } if (IsItemHovered()) SetTooltip("Clipper log auto-disabled after 2 frames"); + //SameLine(); CheckboxFlags("Selection", &g.DebugLogFlags, ImGuiDebugLogFlags_EventSelection); + SameLine(); CheckboxFlags("IO", &g.DebugLogFlags, ImGuiDebugLogFlags_EventIO); + SameLine(); CheckboxFlags("Docking", &g.DebugLogFlags, ImGuiDebugLogFlags_EventDocking); + SameLine(); CheckboxFlags("Viewport", &g.DebugLogFlags, ImGuiDebugLogFlags_EventViewport); + + if (SmallButton("Clear")) + { + g.DebugLogBuf.clear(); + g.DebugLogIndex.clear(); + } + SameLine(); + if (SmallButton("Copy")) + SetClipboardText(g.DebugLogBuf.c_str()); + BeginChild("##log", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar); + + ImGuiListClipper clipper; + clipper.Begin(g.DebugLogIndex.size()); + while (clipper.Step()) + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_begin = g.DebugLogIndex.get_line_begin(g.DebugLogBuf.c_str(), line_no); + const char* line_end = g.DebugLogIndex.get_line_end(g.DebugLogBuf.c_str(), line_no); + TextUnformatted(line_begin, line_end); + ImRect text_rect = g.LastItemData.Rect; + if (IsItemHovered()) + for (const char* p = line_begin; p <= line_end - 10; p++) + { + ImGuiID id = 0; + if (p[0] != '0' || (p[1] != 'x' && p[1] != 'X') || sscanf(p + 2, "%X", &id) != 1) + continue; + ImVec2 p0 = CalcTextSize(line_begin, p); + ImVec2 p1 = CalcTextSize(p, p + 10); + g.LastItemData.Rect = ImRect(text_rect.Min + ImVec2(p0.x, 0.0f), text_rect.Min + ImVec2(p0.x + p1.x, p1.y)); + if (IsMouseHoveringRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, true)) + DebugLocateItemOnHover(id); + p += 10; + } + } + if (GetScrollY() >= GetScrollMaxY()) + SetScrollHereY(1.0f); + EndChild(); + + End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL) +//----------------------------------------------------------------------------- + +// Draw a small cross at current CursorPos in current window's DrawList +void ImGui::DebugDrawCursorPos(ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 pos = window->DC.CursorPos; + window->DrawList->AddLine(ImVec2(pos.x, pos.y - 3.0f), ImVec2(pos.x, pos.y + 4.0f), col, 1.0f); + window->DrawList->AddLine(ImVec2(pos.x - 3.0f, pos.y), ImVec2(pos.x + 4.0f, pos.y), col, 1.0f); +} + +// Draw a 10px wide rectangle around CurposPos.x using Line Y1/Y2 in current window's DrawList +void ImGui::DebugDrawLineExtents(ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float curr_x = window->DC.CursorPos.x; + float line_y1 = (window->DC.IsSameLine ? window->DC.CursorPosPrevLine.y : window->DC.CursorPos.y); + float line_y2 = line_y1 + (window->DC.IsSameLine ? window->DC.PrevLineSize.y : window->DC.CurrLineSize.y); + window->DrawList->AddLine(ImVec2(curr_x - 5.0f, line_y1), ImVec2(curr_x + 5.0f, line_y1), col, 1.0f); + window->DrawList->AddLine(ImVec2(curr_x - 0.5f, line_y1), ImVec2(curr_x - 0.5f, line_y2), col, 1.0f); + window->DrawList->AddLine(ImVec2(curr_x - 5.0f, line_y2), ImVec2(curr_x + 5.0f, line_y2), col, 1.0f); +} + +// Draw last item rect in ForegroundDrawList (so it is always visible) +void ImGui::DebugDrawItemRect(ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + GetForegroundDrawList(window)->AddRect(g.LastItemData.Rect.Min, g.LastItemData.Rect.Max, col); +} + +// [DEBUG] Locate item position/rectangle given an ID. +static const ImU32 DEBUG_LOCATE_ITEM_COLOR = IM_COL32(0, 255, 0, 255); // Green + +void ImGui::DebugLocateItem(ImGuiID target_id) +{ + ImGuiContext& g = *GImGui; + g.DebugLocateId = target_id; + g.DebugLocateFrames = 2; +} + +void ImGui::DebugLocateItemOnHover(ImGuiID target_id) +{ + if (target_id == 0 || !IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + return; + ImGuiContext& g = *GImGui; + DebugLocateItem(target_id); + GetForegroundDrawList(g.CurrentWindow)->AddRect(g.LastItemData.Rect.Min - ImVec2(3.0f, 3.0f), g.LastItemData.Rect.Max + ImVec2(3.0f, 3.0f), DEBUG_LOCATE_ITEM_COLOR); +} + +void ImGui::DebugLocateItemResolveWithLastItem() +{ + ImGuiContext& g = *GImGui; + ImGuiLastItemData item_data = g.LastItemData; + g.DebugLocateId = 0; + ImDrawList* draw_list = GetForegroundDrawList(g.CurrentWindow); + ImRect r = item_data.Rect; + r.Expand(3.0f); + ImVec2 p1 = g.IO.MousePos; + ImVec2 p2 = ImVec2((p1.x < r.Min.x) ? r.Min.x : (p1.x > r.Max.x) ? r.Max.x : p1.x, (p1.y < r.Min.y) ? r.Min.y : (p1.y > r.Max.y) ? r.Max.y : p1.y); + draw_list->AddRect(r.Min, r.Max, DEBUG_LOCATE_ITEM_COLOR); + draw_list->AddLine(p1, p2, DEBUG_LOCATE_ITEM_COLOR); +} + +// [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. +void ImGui::UpdateDebugToolItemPicker() +{ + ImGuiContext& g = *GImGui; + g.DebugItemPickerBreakId = 0; + if (!g.DebugItemPickerActive) + return; + + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + SetMouseCursor(ImGuiMouseCursor_Hand); + if (IsKeyPressed(ImGuiKey_Escape)) + g.DebugItemPickerActive = false; + const bool change_mapping = g.IO.KeyMods == (ImGuiMod_Ctrl | ImGuiMod_Shift); + if (!change_mapping && IsMouseClicked(g.DebugItemPickerMouseButton) && hovered_id) + { + g.DebugItemPickerBreakId = hovered_id; + g.DebugItemPickerActive = false; + } + for (int mouse_button = 0; mouse_button < 3; mouse_button++) + if (change_mapping && IsMouseClicked(mouse_button)) + g.DebugItemPickerMouseButton = (ImU8)mouse_button; + SetNextWindowBgAlpha(0.70f); + if (!BeginTooltip()) + return; + Text("HoveredId: 0x%08X", hovered_id); + Text("Press ESC to abort picking."); + const char* mouse_button_names[] = { "Left", "Right", "Middle" }; + if (change_mapping) + Text("Remap w/ Ctrl+Shift: click anywhere to select new mouse button."); + else + TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click %s Button to break in debugger! (remap w/ Ctrl+Shift)", mouse_button_names[g.DebugItemPickerMouseButton]); + EndTooltip(); +} + +// [DEBUG] Stack Tool: update queries. Called by NewFrame() +void ImGui::UpdateDebugToolStackQueries() +{ + ImGuiContext& g = *GImGui; + ImGuiStackTool* tool = &g.DebugStackTool; + + // Clear hook when stack tool is not visible + g.DebugHookIdInfo = 0; + if (g.FrameCount != tool->LastActiveFrame + 1) + return; + + // Update queries. The steps are: -1: query Stack, >= 0: query each stack item + // We can only perform 1 ID Info query every frame. This is designed so the GetID() tests are cheap and constant-time + const ImGuiID query_id = g.HoveredIdPreviousFrame ? g.HoveredIdPreviousFrame : g.ActiveId; + if (tool->QueryId != query_id) + { + tool->QueryId = query_id; + tool->StackLevel = -1; + tool->Results.resize(0); + } + if (query_id == 0) + return; + + // Advance to next stack level when we got our result, or after 2 frames (in case we never get a result) + int stack_level = tool->StackLevel; + if (stack_level >= 0 && stack_level < tool->Results.Size) + if (tool->Results[stack_level].QuerySuccess || tool->Results[stack_level].QueryFrameCount > 2) + tool->StackLevel++; + + // Update hook + stack_level = tool->StackLevel; + if (stack_level == -1) + g.DebugHookIdInfo = query_id; + if (stack_level >= 0 && stack_level < tool->Results.Size) + { + g.DebugHookIdInfo = tool->Results[stack_level].ID; + tool->Results[stack_level].QueryFrameCount++; + } +} + +// [DEBUG] Stack tool: hooks called by GetID() family functions +void ImGui::DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStackTool* tool = &g.DebugStackTool; + + // Step 0: stack query + // This assumes that the ID was computed with the current ID stack, which tends to be the case for our widget. + if (tool->StackLevel == -1) + { + tool->StackLevel++; + tool->Results.resize(window->IDStack.Size + 1, ImGuiStackLevelInfo()); + for (int n = 0; n < window->IDStack.Size + 1; n++) + tool->Results[n].ID = (n < window->IDStack.Size) ? window->IDStack[n] : id; + return; + } + + // Step 1+: query for individual level + IM_ASSERT(tool->StackLevel >= 0); + if (tool->StackLevel != window->IDStack.Size) + return; + ImGuiStackLevelInfo* info = &tool->Results[tool->StackLevel]; + IM_ASSERT(info->ID == id && info->QueryFrameCount > 0); + + switch (data_type) + { + case ImGuiDataType_S32: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%d", (int)(intptr_t)data_id); + break; + case ImGuiDataType_String: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "%.*s", data_id_end ? (int)((const char*)data_id_end - (const char*)data_id) : (int)strlen((const char*)data_id), (const char*)data_id); + break; + case ImGuiDataType_Pointer: + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "(void*)0x%p", data_id); + break; + case ImGuiDataType_ID: + if (info->Desc[0] != 0) // PushOverrideID() is often used to avoid hashing twice, which would lead to 2 calls to DebugHookIdInfo(). We prioritize the first one. + return; + ImFormatString(info->Desc, IM_ARRAYSIZE(info->Desc), "0x%08X [override]", id); + break; + default: + IM_ASSERT(0); + } + info->QuerySuccess = true; + info->DataType = data_type; +} + +static int StackToolFormatLevelInfo(ImGuiStackTool* tool, int n, bool format_for_ui, char* buf, size_t buf_size) +{ + ImGuiStackLevelInfo* info = &tool->Results[n]; + ImGuiWindow* window = (info->Desc[0] == 0 && n == 0) ? ImGui::FindWindowByID(info->ID) : NULL; + if (window) // Source: window name (because the root ID don't call GetID() and so doesn't get hooked) + return ImFormatString(buf, buf_size, format_for_ui ? "\"%s\" [window]" : "%s", window->Name); + if (info->QuerySuccess) // Source: GetID() hooks (prioritize over ItemInfo() because we frequently use patterns like: PushID(str), Button("") where they both have same id) + return ImFormatString(buf, buf_size, (format_for_ui && info->DataType == ImGuiDataType_String) ? "\"%s\"" : "%s", info->Desc); + if (tool->StackLevel < tool->Results.Size) // Only start using fallback below when all queries are done, so during queries we don't flickering ??? markers. + return (*buf = 0); +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (const char* label = ImGuiTestEngine_FindItemDebugLabel(GImGui, info->ID)) // Source: ImGuiTestEngine's ItemInfo() + return ImFormatString(buf, buf_size, format_for_ui ? "??? \"%s\"" : "%s", label); +#endif + return ImFormatString(buf, buf_size, "???"); +} + +// Stack Tool: Display UI +void ImGui::ShowStackToolWindow(bool* p_open) +{ + ImGuiContext& g = *GImGui; + if (!(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize)) + SetNextWindowSize(ImVec2(0.0f, GetFontSize() * 8.0f), ImGuiCond_FirstUseEver); + if (!Begin("Dear ImGui Stack Tool", p_open) || GetCurrentWindow()->BeginCount > 1) + { + End(); + return; + } + + // Display hovered/active status + ImGuiStackTool* tool = &g.DebugStackTool; + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + const ImGuiID active_id = g.ActiveId; +#ifdef IMGUI_ENABLE_TEST_ENGINE + Text("HoveredId: 0x%08X (\"%s\"), ActiveId: 0x%08X (\"%s\")", hovered_id, hovered_id ? ImGuiTestEngine_FindItemDebugLabel(&g, hovered_id) : "", active_id, active_id ? ImGuiTestEngine_FindItemDebugLabel(&g, active_id) : ""); +#else + Text("HoveredId: 0x%08X, ActiveId: 0x%08X", hovered_id, active_id); +#endif + SameLine(); + MetricsHelpMarker("Hover an item with the mouse to display elements of the ID Stack leading to the item's final ID.\nEach level of the stack correspond to a PushID() call.\nAll levels of the stack are hashed together to make the final ID of a widget (ID displayed at the bottom level of the stack).\nRead FAQ entry about the ID stack for details."); + + // CTRL+C to copy path + const float time_since_copy = (float)g.Time - tool->CopyToClipboardLastTime; + Checkbox("Ctrl+C: copy path to clipboard", &tool->CopyToClipboardOnCtrlC); + SameLine(); + TextColored((time_since_copy >= 0.0f && time_since_copy < 0.75f && ImFmod(time_since_copy, 0.25f) < 0.25f * 0.5f) ? ImVec4(1.f, 1.f, 0.3f, 1.f) : ImVec4(), "*COPIED*"); + if (tool->CopyToClipboardOnCtrlC && IsKeyDown(ImGuiMod_Ctrl) && IsKeyPressed(ImGuiKey_C)) + { + tool->CopyToClipboardLastTime = (float)g.Time; + char* p = g.TempBuffer.Data; + char* p_end = p + g.TempBuffer.Size; + for (int stack_n = 0; stack_n < tool->Results.Size && p + 3 < p_end; stack_n++) + { + *p++ = '/'; + char level_desc[256]; + StackToolFormatLevelInfo(tool, stack_n, false, level_desc, IM_ARRAYSIZE(level_desc)); + for (int n = 0; level_desc[n] && p + 2 < p_end; n++) + { + if (level_desc[n] == '/') + *p++ = '\\'; + *p++ = level_desc[n]; + } + } + *p = '\0'; + SetClipboardText(g.TempBuffer.Data); + } + + // Display decorated stack + tool->LastActiveFrame = g.FrameCount; + if (tool->Results.Size > 0 && BeginTable("##table", 3, ImGuiTableFlags_Borders)) + { + const float id_width = CalcTextSize("0xDDDDDDDD").x; + TableSetupColumn("Seed", ImGuiTableColumnFlags_WidthFixed, id_width); + TableSetupColumn("PushID", ImGuiTableColumnFlags_WidthStretch); + TableSetupColumn("Result", ImGuiTableColumnFlags_WidthFixed, id_width); + TableHeadersRow(); + for (int n = 0; n < tool->Results.Size; n++) + { + ImGuiStackLevelInfo* info = &tool->Results[n]; + TableNextColumn(); + Text("0x%08X", (n > 0) ? tool->Results[n - 1].ID : 0); + TableNextColumn(); + StackToolFormatLevelInfo(tool, n, true, g.TempBuffer.Data, g.TempBuffer.Size); + TextUnformatted(g.TempBuffer.Data); + TableNextColumn(); + Text("0x%08X", info->ID); + if (n == tool->Results.Size - 1) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_Header)); + } + EndTable(); + } + End(); +} + +#else + +void ImGui::ShowMetricsWindow(bool*) {} +void ImGui::ShowFontAtlas(ImFontAtlas*) {} +void ImGui::DebugNodeColumns(ImGuiOldColumns*) {} +void ImGui::DebugNodeDrawList(ImGuiWindow*, ImGuiViewportP*, const ImDrawList*, const char*) {} +void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList*, const ImDrawList*, const ImDrawCmd*, bool, bool) {} +void ImGui::DebugNodeFont(ImFont*) {} +void ImGui::DebugNodeStorage(ImGuiStorage*, const char*) {} +void ImGui::DebugNodeTabBar(ImGuiTabBar*, const char*) {} +void ImGui::DebugNodeWindow(ImGuiWindow*, const char*) {} +void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings*) {} +void ImGui::DebugNodeWindowsList(ImVector*, const char*) {} +void ImGui::DebugNodeViewport(ImGuiViewportP*) {} + +void ImGui::DebugLog(const char*, ...) {} +void ImGui::DebugLogV(const char*, va_list) {} +void ImGui::ShowDebugLogWindow(bool*) {} +void ImGui::ShowStackToolWindow(bool*) {} +void ImGui::DebugHookIdInfo(ImGuiID, ImGuiDataType, const void*, const void*) {} +void ImGui::UpdateDebugToolItemPicker() {} +void ImGui::UpdateDebugToolStackQueries() {} + +#endif // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +//----------------------------------------------------------------------------- + +// Include imgui_user.inl at the end of imgui.cpp to access private data/functions that aren't exposed. +// Prefer just including imgui_internal.h from your code rather than using this define. If a declaration is missing from imgui_internal.h add it or request it on the github. +#ifdef IMGUI_INCLUDE_IMGUI_USER_INL +#include "imgui_user.inl" +#endif + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/imgui_draw.cpp b/thirdparty/imgui_suite/imgui/cpp/imgui_draw.cpp new file mode 100644 index 00000000000..e6bb0b56fbb --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/imgui_draw.cpp @@ -0,0 +1,4319 @@ +// dear imgui, v1.90 WIP +// (drawing and font code) + +/* + +Index of this file: + +// [SECTION] STB libraries implementation +// [SECTION] Style functions +// [SECTION] ImDrawList +// [SECTION] ImDrawListSplitter +// [SECTION] ImDrawData +// [SECTION] Helpers ShadeVertsXXX functions +// [SECTION] ImFontConfig +// [SECTION] ImFontAtlas +// [SECTION] ImFontAtlas glyph ranges helpers +// [SECTION] ImFontGlyphRangesBuilder +// [SECTION] ImFont +// [SECTION] ImGui Internal Render Helpers +// [SECTION] Decompression code +// [SECTION] Default font data (ProggyClean.ttf) + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" +#ifdef IMGUI_ENABLE_FREETYPE +#include "misc/freetype/imgui_freetype.h" +#endif + +#include // vsnprintf, sscanf, printf + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wcomma" // warning: possible misuse of comma operator here +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#pragma clang diagnostic ignored "-Wreserved-identifier" // warning: identifier '_Xxx' is reserved because it starts with '_' followed by a capital letter +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wstack-protector" // warning: stack protector not protecting local variables: variable length buffer +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries implementation (for stb_truetype and stb_rect_pack) +//------------------------------------------------------------------------- + +// Compile time options: +//#define IMGUI_STB_NAMESPACE ImStb +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +#ifdef IMGUI_STB_NAMESPACE +namespace IMGUI_STB_NAMESPACE +{ +#endif + +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration +#pragma warning (disable: 6011) // (stb_rectpack) Dereferencing NULL pointer 'cur->next'. +#pragma warning (disable: 6385) // (stb_truetype) Reading invalid data from 'buffer': the readable size is '_Old_3`kernel_width' bytes, but '3' bytes may be read. +#pragma warning (disable: 28182) // (stb_rectpack) Dereferencing NULL pointer. 'cur' contains the same NULL value as 'cur->next' did. +#endif + +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +#pragma clang diagnostic ignored "-Wmissing-prototypes" +#pragma clang diagnostic ignored "-Wimplicit-fallthrough" +#pragma clang diagnostic ignored "-Wcast-qual" // warning: cast from 'const xxxx *' to 'xxx *' drops const qualifier +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits] +#pragma GCC diagnostic ignored "-Wcast-qual" // warning: cast from type 'const xxxx *' to type 'xxxx *' casts away qualifiers +#endif + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBRP_STATIC +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_SORT ImQsort +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +#ifndef STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in another compilation unit +#define STBTT_malloc(x,u) ((void)(u), IM_ALLOC(x)) +#define STBTT_free(x,u) ((void)(u), IM_FREE(x)) +#define STBTT_assert(x) do { IM_ASSERT(x); } while(0) +#define STBTT_fmod(x,y) ImFmod(x,y) +#define STBTT_sqrt(x) ImSqrt(x) +#define STBTT_pow(x,y) ImPow(x,y) +#define STBTT_fabs(x) ImFabs(x) +#define STBTT_ifloor(x) ((int)ImFloorSigned(x)) +#define STBTT_iceil(x) ((int)ImCeil(x)) +#define STBTT_STATIC +#define STB_TRUETYPE_IMPLEMENTATION +#else +#define STBTT_DEF extern +#endif +#ifdef IMGUI_STB_TRUETYPE_FILENAME +#include IMGUI_STB_TRUETYPE_FILENAME +#else +#include "imstb_truetype.h" +#endif +#endif +#endif // IMGUI_ENABLE_STB_TRUETYPE + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#if defined(_MSC_VER) +#pragma warning (pop) +#endif + +#ifdef IMGUI_STB_NAMESPACE +} // namespace ImStb +using namespace IMGUI_STB_NAMESPACE; +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Style functions +//----------------------------------------------------------------------------- + +void ImGui::StyleColorsDark(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); + colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.04f, 0.04f, 0.04f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.29f, 0.48f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.52f, 0.88f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = colors[ImGuiCol_Border]; + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.10f, 0.40f, 0.75f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.10f, 0.40f, 0.75f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.20f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_HeaderActive] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.19f, 0.19f, 0.20f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.35f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.23f, 0.23f, 0.25f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.06f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); +} + +void ImGui::StyleColorsClassic(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.85f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f); + colors[ImGuiCol_Border] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.47f, 0.47f, 0.69f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.42f, 0.41f, 0.64f, 0.69f); + colors[ImGuiCol_TitleBg] = ImVec4(0.27f, 0.27f, 0.54f, 0.83f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.32f, 0.32f, 0.63f, 0.87f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.40f, 0.40f, 0.80f, 0.20f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.40f, 0.40f, 0.55f, 0.80f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.25f, 0.30f, 0.60f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.40f, 0.40f, 0.80f, 0.30f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.40f, 0.40f, 0.80f, 0.40f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_CheckMark] = ImVec4(0.90f, 0.90f, 0.90f, 0.50f); + colors[ImGuiCol_SliderGrab] = ImVec4(1.00f, 1.00f, 1.00f, 0.30f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.35f, 0.40f, 0.61f, 0.62f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.40f, 0.48f, 0.71f, 0.79f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.46f, 0.54f, 0.80f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.40f, 0.40f, 0.90f, 0.45f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.45f, 0.45f, 0.90f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.53f, 0.53f, 0.87f, 0.80f); + colors[ImGuiCol_Separator] = ImVec4(0.50f, 0.50f, 0.50f, 0.60f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.60f, 0.60f, 0.70f, 1.00f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.70f, 0.70f, 0.90f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 0.10f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.78f, 0.82f, 1.00f, 0.60f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.78f, 0.82f, 1.00f, 0.90f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_Header] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.27f, 0.27f, 0.38f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.45f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.26f, 0.26f, 0.28f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.07f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +// Those light colors are better suited with a thicker font than the default one + FrameBorder +void ImGui::StyleColorsLight(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.94f, 0.94f, 0.94f, 1.00f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.98f); + colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.30f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.96f, 0.96f, 0.96f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.82f, 0.82f, 0.82f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 1.00f, 1.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.98f, 0.98f, 0.98f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.69f, 0.69f, 0.69f, 0.80f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.49f, 0.49f, 0.49f, 0.80f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.49f, 0.49f, 0.49f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.26f, 0.59f, 0.98f, 0.78f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.46f, 0.54f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = ImVec4(0.39f, 0.39f, 0.39f, 0.62f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.14f, 0.44f, 0.80f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.14f, 0.44f, 0.80f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.35f, 0.35f, 0.35f, 0.17f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.90f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_DockingPreview] = colors[ImGuiCol_Header] * ImVec4(1.0f, 1.0f, 1.0f, 0.7f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(0.20f, 0.20f, 0.20f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.45f, 0.00f, 1.00f); + colors[ImGuiCol_TableHeaderBg] = ImVec4(0.78f, 0.87f, 0.98f, 1.00f); + colors[ImGuiCol_TableBorderStrong] = ImVec4(0.57f, 0.57f, 0.64f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableBorderLight] = ImVec4(0.68f, 0.68f, 0.74f, 1.00f); // Prefer using Alpha=1.0 here + colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_TableRowBgAlt] = ImVec4(0.30f, 0.30f, 0.30f, 0.09f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(0.70f, 0.70f, 0.70f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList +//----------------------------------------------------------------------------- + +ImDrawListSharedData::ImDrawListSharedData() +{ + memset(this, 0, sizeof(*this)); + for (int i = 0; i < IM_ARRAYSIZE(ArcFastVtx); i++) + { + const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(ArcFastVtx); + ArcFastVtx[i] = ImVec2(ImCos(a), ImSin(a)); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) +{ + if (CircleSegmentMaxError == max_error) + return; + + IM_ASSERT(max_error > 0.0f); + CircleSegmentMaxError = max_error; + for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) + { + const float radius = (float)i; + CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : IM_DRAWLIST_ARCFAST_SAMPLE_MAX); + } + ArcFastRadiusCutoff = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(IM_DRAWLIST_ARCFAST_SAMPLE_MAX, CircleSegmentMaxError); +} + +// Initialize before use in a new frame. We always have a command ready in the buffer. +void ImDrawList::_ResetForNewFrame() +{ + // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); + IM_STATIC_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); + if (_Splitter._Count > 1) + _Splitter.Merge(this); + + CmdBuffer.resize(0); + IdxBuffer.resize(0); + VtxBuffer.resize(0); + Flags = _Data->InitialFlags; + memset(&_CmdHeader, 0, sizeof(_CmdHeader)); + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.resize(0); + _TextureIdStack.resize(0); + _Path.resize(0); + _Splitter.Clear(); + CmdBuffer.push_back(ImDrawCmd()); + _FringeScale = 1.0f; +} + +void ImDrawList::_ClearFreeMemory() +{ + CmdBuffer.clear(); + IdxBuffer.clear(); + VtxBuffer.clear(); + Flags = ImDrawListFlags_None; + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.clear(); + _TextureIdStack.clear(); + _Path.clear(); + _Splitter.ClearFreeMemory(); +} + +ImDrawList* ImDrawList::CloneOutput() const +{ + ImDrawList* dst = IM_NEW(ImDrawList(_Data)); + dst->CmdBuffer = CmdBuffer; + dst->IdxBuffer = IdxBuffer; + dst->VtxBuffer = VtxBuffer; + dst->Flags = Flags; + return dst; +} + +void ImDrawList::AddDrawCmd() +{ + ImDrawCmd draw_cmd; + draw_cmd.ClipRect = _CmdHeader.ClipRect; // Same as calling ImDrawCmd_HeaderCopy() + draw_cmd.TextureId = _CmdHeader.TextureId; + draw_cmd.VtxOffset = _CmdHeader.VtxOffset; + draw_cmd.IdxOffset = IdxBuffer.Size; + + IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); + CmdBuffer.push_back(draw_cmd); +} + +// Pop trailing draw command (used before merging or presenting to user) +// Note that this leaves the ImDrawList in a state unfit for further commands, as most code assume that CmdBuffer.Size > 0 && CmdBuffer.back().UserCallback == NULL +void ImDrawList::_PopUnusedDrawCmd() +{ + while (CmdBuffer.Size > 0) + { + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 || curr_cmd->UserCallback != NULL) + return;// break; + CmdBuffer.pop_back(); + } +} + +void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + IM_ASSERT(curr_cmd->UserCallback == NULL); + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + } + curr_cmd->UserCallback = callback; + curr_cmd->UserCallbackData = callback_data; + + AddDrawCmd(); // Force a new command after us (see comment below) +} + +// Compare ClipRect, TextureId and VtxOffset with a single memcmp() +#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) +#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset +#define ImDrawCmd_AreSequentialIdxOffset(CMD_0, CMD_1) (CMD_0->IdxOffset + CMD_0->ElemCount == CMD_1->IdxOffset) + +// Try to merge two last draw commands +void ImDrawList::_TryMergeDrawCmds() +{ + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (ImDrawCmd_HeaderCompare(curr_cmd, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && curr_cmd->UserCallback == NULL && prev_cmd->UserCallback == NULL) + { + prev_cmd->ElemCount += curr_cmd->ElemCount; + CmdBuffer.pop_back(); + } +} + +// Our scheme may appears a bit unusual, basically we want the most-common calls AddLine AddRect etc. to not have to perform any check so we always have a command ready in the stack. +// The cost of figuring out if a new command has to be added or if we can merge is paid in those Update** functions only. +void ImDrawList::_OnChangedClipRect() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && memcmp(&curr_cmd->ClipRect, &_CmdHeader.ClipRect, sizeof(ImVec4)) != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->ClipRect = _CmdHeader.ClipRect; +} + +void ImDrawList::_OnChangedTextureID() +{ + // If current command is used with different settings we need to add a new command + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && curr_cmd->TextureId != _CmdHeader.TextureId) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && ImDrawCmd_AreSequentialIdxOffset(prev_cmd, curr_cmd) && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->TextureId = _CmdHeader.TextureId; +} + +void ImDrawList::_OnChangedVtxOffset() +{ + // We don't need to compare curr_cmd->VtxOffset != _CmdHeader.VtxOffset because we know it'll be different at the time we call this. + _VtxCurrentIdx = 0; + IM_ASSERT_PARANOID(CmdBuffer.Size > 0); + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + //IM_ASSERT(curr_cmd->VtxOffset != _CmdHeader.VtxOffset); // See #3349 + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + curr_cmd->VtxOffset = _CmdHeader.VtxOffset; +} + +int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const +{ + // Automatic segment count + const int radius_idx = (int)(radius + 0.999999f); // ceil to never reduce accuracy + if (radius_idx >= 0 && radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) + return _Data->CircleSegmentCounts[radius_idx]; // Use cached value + else + return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); +} + +// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) +void ImDrawList::PushClipRect(const ImVec2& cr_min, const ImVec2& cr_max, bool intersect_with_current_clip_rect) +{ + ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); + if (intersect_with_current_clip_rect) + { + ImVec4 current = _CmdHeader.ClipRect; + if (cr.x < current.x) cr.x = current.x; + if (cr.y < current.y) cr.y = current.y; + if (cr.z > current.z) cr.z = current.z; + if (cr.w > current.w) cr.w = current.w; + } + cr.z = ImMax(cr.x, cr.z); + cr.w = ImMax(cr.y, cr.w); + + _ClipRectStack.push_back(cr); + _CmdHeader.ClipRect = cr; + _OnChangedClipRect(); +} + +void ImDrawList::PushClipRectFullScreen() +{ + PushClipRect(ImVec2(_Data->ClipRectFullscreen.x, _Data->ClipRectFullscreen.y), ImVec2(_Data->ClipRectFullscreen.z, _Data->ClipRectFullscreen.w)); +} + +void ImDrawList::PopClipRect() +{ + _ClipRectStack.pop_back(); + _CmdHeader.ClipRect = (_ClipRectStack.Size == 0) ? _Data->ClipRectFullscreen : _ClipRectStack.Data[_ClipRectStack.Size - 1]; + _OnChangedClipRect(); +} + +void ImDrawList::PushTextureID(ImTextureID texture_id) +{ + _TextureIdStack.push_back(texture_id); + _CmdHeader.TextureId = texture_id; + _OnChangedTextureID(); +} + +void ImDrawList::PopTextureID() +{ + _TextureIdStack.pop_back(); + _CmdHeader.TextureId = (_TextureIdStack.Size == 0) ? (ImTextureID)NULL : _TextureIdStack.Data[_TextureIdStack.Size - 1]; + _OnChangedTextureID(); +} + +// Reserve space for a number of vertices and indices. +// You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or +// submit the intermediate results. PrimUnreserve() can be used to release unused allocations. +void ImDrawList::PrimReserve(int idx_count, int vtx_count) +{ + // Large mesh support (when enabled) + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + if (sizeof(ImDrawIdx) == 2 && (_VtxCurrentIdx + vtx_count >= (1 << 16)) && (Flags & ImDrawListFlags_AllowVtxOffset)) + { + // FIXME: In theory we should be testing that vtx_count <64k here. + // In practice, RenderText() relies on reserving ahead for a worst case scenario so it is currently useful for us + // to not make that check until we rework the text functions to handle clipping and large horizontal lines better. + _CmdHeader.VtxOffset = VtxBuffer.Size; + _OnChangedVtxOffset(); + } + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount += idx_count; + + int vtx_buffer_old_size = VtxBuffer.Size; + VtxBuffer.resize(vtx_buffer_old_size + vtx_count); + _VtxWritePtr = VtxBuffer.Data + vtx_buffer_old_size; + + int idx_buffer_old_size = IdxBuffer.Size; + IdxBuffer.resize(idx_buffer_old_size + idx_count); + _IdxWritePtr = IdxBuffer.Data + idx_buffer_old_size; +} + +// Release the a number of reserved vertices/indices from the end of the last reservation made with PrimReserve(). +void ImDrawList::PrimUnreserve(int idx_count, int vtx_count) +{ + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount -= idx_count; + VtxBuffer.shrink(VtxBuffer.Size - vtx_count); + IdxBuffer.shrink(IdxBuffer.Size - idx_count); +} + +// Fully unrolled with inline call to keep our debug builds decently fast. +void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv(_Data->TexUvWhitePixel); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv_b(uv_c.x, uv_a.y), uv_d(uv_a.x, uv_c.y); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col) +{ + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +// On AddPolyline() and AddConvexPolyFilled() we intentionally avoid using ImVec2 and superfluous function calls to optimize debug/non-inlined builds. +// - Those macros expects l-values and need to be used as their own statement. +// - Those macros are intentionally not surrounded by the 'do {} while (0)' idiom because even that translates to runtime with debug compilers. +#define IM_NORMALIZE2F_OVER_ZERO(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = ImRsqrt(d2); VX *= inv_len; VY *= inv_len; } } (void)0 +#define IM_FIXNORMAL2F_MAX_INVLEN2 100.0f // 500.0f (see #4053, #3366) +#define IM_FIXNORMAL2F(VX,VY) { float d2 = VX*VX + VY*VY; if (d2 > 0.000001f) { float inv_len2 = 1.0f / d2; if (inv_len2 > IM_FIXNORMAL2F_MAX_INVLEN2) inv_len2 = IM_FIXNORMAL2F_MAX_INVLEN2; VX *= inv_len2; VY *= inv_len2; } } (void)0 + +// TODO: Thickness anti-aliased lines cap are missing their AA fringe. +// We avoid using the ImVec2 math operators here to reduce cost to a minimum for debug/non-inlined builds. +void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, ImDrawFlags flags, float thickness) +{ + if (points_count < 2 || (col & IM_COL32_A_MASK) == 0) + return; + + const bool closed = (flags & ImDrawFlags_Closed) != 0; + const ImVec2 opaque_uv = _Data->TexUvWhitePixel; + const int count = closed ? points_count : points_count - 1; // The number of line segments we need to draw + const bool thick_line = (thickness > _FringeScale); + + if (Flags & ImDrawListFlags_AntiAliasedLines) + { + // Anti-aliased stroke + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + + // Thicknesses <1.0 should behave like thickness 1.0 + thickness = ImMax(thickness, 1.0f); + const int integer_thickness = (int)thickness; + const float fractional_thickness = thickness - integer_thickness; + + // Do we want to draw this line using a texture? + // - For now, only draw integer-width lines using textures to avoid issues with the way scaling occurs, could be improved. + // - If AA_SIZE is not 1.0f we cannot use the texture path. + const bool use_texture = (Flags & ImDrawListFlags_AntiAliasedLinesUseTex) && (integer_thickness < IM_DRAWLIST_TEX_LINES_WIDTH_MAX) && (fractional_thickness <= 0.00001f) && (AA_SIZE == 1.0f); + + // We should never hit this, because NewFrame() doesn't set ImDrawListFlags_AntiAliasedLinesUseTex unless ImFontAtlasFlags_NoBakedLines is off + IM_ASSERT_PARANOID(!use_texture || !(_Data->Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)); + + const int idx_count = use_texture ? (count * 6) : (thick_line ? count * 18 : count * 12); + const int vtx_count = use_texture ? (points_count * 2) : (thick_line ? points_count * 4 : points_count * 3); + PrimReserve(idx_count, vtx_count); + + // Temporary buffer + // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point + _Data->TempBuffer.reserve_discard(points_count * ((use_texture || !thick_line) ? 3 : 5)); + ImVec2* temp_normals = _Data->TempBuffer.Data; + ImVec2* temp_points = temp_normals + points_count; + + // Calculate normals (tangents) for each line segment + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + float dx = points[i2].x - points[i1].x; + float dy = points[i2].y - points[i1].y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i1].x = dy; + temp_normals[i1].y = -dx; + } + if (!closed) + temp_normals[points_count - 1] = temp_normals[points_count - 2]; + + // If we are drawing a one-pixel-wide line without a texture, or a textured line of any width, we only need 2 or 3 vertices per point + if (use_texture || !thick_line) + { + // [PATH 1] Texture-based lines (thick or non-thick) + // [PATH 2] Non texture-based lines (non-thick) + + // The width of the geometry we need to draw - this is essentially pixels for the line itself, plus "one pixel" for AA. + // - In the texture-based path, we don't use AA_SIZE here because the +1 is tied to the generated texture + // (see ImFontAtlasBuildRenderLinesTexData() function), and so alternate values won't work without changes to that code. + // - In the non texture-based paths, we would allow AA_SIZE to potentially be != 1.0f with a patch (e.g. fringe_scale patch to + // allow scaling geometry while preserving one-screen-pixel AA fringe). + const float half_draw_size = use_texture ? ((thickness * 0.5f) + 1) : AA_SIZE; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + temp_points[0] = points[0] + temp_normals[0] * half_draw_size; + temp_points[1] = points[0] - temp_normals[0] * half_draw_size; + temp_points[(points_count-1)*2+0] = points[points_count-1] + temp_normals[points_count-1] * half_draw_size; + temp_points[(points_count-1)*2+1] = points[points_count-1] - temp_normals[points_count-1] * half_draw_size; + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; // i2 is the second point of the line segment + const unsigned int idx2 = ((i1 + 1) == points_count) ? _VtxCurrentIdx : (idx1 + (use_texture ? 2 : 3)); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= half_draw_size; // dm_x, dm_y are offset to the outer edge of the AA area + dm_y *= half_draw_size; + + // Add temporary vertexes for the outer edges + ImVec2* out_vtx = &temp_points[i2 * 2]; + out_vtx[0].x = points[i2].x + dm_x; + out_vtx[0].y = points[i2].y + dm_y; + out_vtx[1].x = points[i2].x - dm_x; + out_vtx[1].y = points[i2].y - dm_y; + + if (use_texture) + { + // Add indices for two triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 1); // Right tri + _IdxWritePtr[3] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[4] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Left tri + _IdxWritePtr += 6; + } + else + { + // Add indexes for four triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); // Right tri 1 + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Right tri 2 + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); // Left tri 1 + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); // Left tri 2 + _IdxWritePtr += 12; + } + + idx1 = idx2; + } + + // Add vertexes for each point on the line + if (use_texture) + { + // If we're using textures we only need to emit the left/right edge vertices + ImVec4 tex_uvs = _Data->TexUvLines[integer_thickness]; + /*if (fractional_thickness != 0.0f) // Currently always zero when use_texture==false! + { + const ImVec4 tex_uvs_1 = _Data->TexUvLines[integer_thickness + 1]; + tex_uvs.x = tex_uvs.x + (tex_uvs_1.x - tex_uvs.x) * fractional_thickness; // inlined ImLerp() + tex_uvs.y = tex_uvs.y + (tex_uvs_1.y - tex_uvs.y) * fractional_thickness; + tex_uvs.z = tex_uvs.z + (tex_uvs_1.z - tex_uvs.z) * fractional_thickness; + tex_uvs.w = tex_uvs.w + (tex_uvs_1.w - tex_uvs.w) * fractional_thickness; + }*/ + ImVec2 tex_uv0(tex_uvs.x, tex_uvs.y); + ImVec2 tex_uv1(tex_uvs.z, tex_uvs.w); + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 2 + 0]; _VtxWritePtr[0].uv = tex_uv0; _VtxWritePtr[0].col = col; // Left-side outer edge + _VtxWritePtr[1].pos = temp_points[i * 2 + 1]; _VtxWritePtr[1].uv = tex_uv1; _VtxWritePtr[1].col = col; // Right-side outer edge + _VtxWritePtr += 2; + } + } + else + { + // If we're not using a texture, we need the center vertex as well + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; // Center of line + _VtxWritePtr[1].pos = temp_points[i * 2 + 0]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col_trans; // Left-side outer edge + _VtxWritePtr[2].pos = temp_points[i * 2 + 1]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col_trans; // Right-side outer edge + _VtxWritePtr += 3; + } + } + } + else + { + // [PATH 2] Non texture-based lines (thick): we need to draw the solid line core and thus require four vertices per point + const float half_inner_thickness = (thickness - AA_SIZE) * 0.5f; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + const int points_last = points_count - 1; + temp_points[0] = points[0] + temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[1] = points[0] + temp_normals[0] * (half_inner_thickness); + temp_points[2] = points[0] - temp_normals[0] * (half_inner_thickness); + temp_points[3] = points[0] - temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 0] = points[points_last] + temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 1] = points[points_last] + temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 2] = points[points_last] - temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 3] = points[points_last] - temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : (i1 + 1); // i2 is the second point of the line segment + const unsigned int idx2 = (i1 + 1) == points_count ? _VtxCurrentIdx : (idx1 + 4); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + float dm_out_x = dm_x * (half_inner_thickness + AA_SIZE); + float dm_out_y = dm_y * (half_inner_thickness + AA_SIZE); + float dm_in_x = dm_x * half_inner_thickness; + float dm_in_y = dm_y * half_inner_thickness; + + // Add temporary vertices + ImVec2* out_vtx = &temp_points[i2 * 4]; + out_vtx[0].x = points[i2].x + dm_out_x; + out_vtx[0].y = points[i2].y + dm_out_y; + out_vtx[1].x = points[i2].x + dm_in_x; + out_vtx[1].y = points[i2].y + dm_in_y; + out_vtx[2].x = points[i2].x - dm_in_x; + out_vtx[2].y = points[i2].y - dm_in_y; + out_vtx[3].x = points[i2].x - dm_out_x; + out_vtx[3].y = points[i2].y - dm_out_y; + + // Add indexes + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[12] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[13] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[14] = (ImDrawIdx)(idx1 + 3); + _IdxWritePtr[15] = (ImDrawIdx)(idx1 + 3); _IdxWritePtr[16] = (ImDrawIdx)(idx2 + 3); _IdxWritePtr[17] = (ImDrawIdx)(idx2 + 2); + _IdxWritePtr += 18; + + idx1 = idx2; + } + + // Add vertices + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 4 + 0]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col_trans; + _VtxWritePtr[1].pos = temp_points[i * 4 + 1]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = temp_points[i * 4 + 2]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = temp_points[i * 4 + 3]; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col_trans; + _VtxWritePtr += 4; + } + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // [PATH 4] Non texture-based, Non anti-aliased lines + const int idx_count = count * 6; + const int vtx_count = count * 4; // FIXME-OPT: Not sharing edges + PrimReserve(idx_count, vtx_count); + + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + const ImVec2& p1 = points[i1]; + const ImVec2& p2 = points[i2]; + + float dx = p2.x - p1.x; + float dy = p2.y - p1.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + dx *= (thickness * 0.5f); + dy *= (thickness * 0.5f); + + _VtxWritePtr[0].pos.x = p1.x + dy; _VtxWritePtr[0].pos.y = p1.y - dx; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos.x = p2.x + dy; _VtxWritePtr[1].pos.y = p2.y - dx; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos.x = p2.x - dy; _VtxWritePtr[2].pos.y = p2.y + dx; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos.x = p1.x - dy; _VtxWritePtr[3].pos.y = p1.y + dx; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + 2); + _IdxWritePtr[3] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[4] = (ImDrawIdx)(_VtxCurrentIdx + 2); _IdxWritePtr[5] = (ImDrawIdx)(_VtxCurrentIdx + 3); + _IdxWritePtr += 6; + _VtxCurrentIdx += 4; + } + } +} + +// - We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +// - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. +void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) +{ + if (points_count < 3 || (col & IM_COL32_A_MASK) == 0) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + + if (Flags & ImDrawListFlags_AntiAliasedFill) + { + // Anti-aliased Fill + const float AA_SIZE = _FringeScale; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + const int idx_count = (points_count - 2)*3 + points_count * 6; + const int vtx_count = (points_count * 2); + PrimReserve(idx_count, vtx_count); + + // Add indexes for fill + unsigned int vtx_inner_idx = _VtxCurrentIdx; + unsigned int vtx_outer_idx = _VtxCurrentIdx + 1; + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + ((i - 1) << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_inner_idx + (i << 1)); + _IdxWritePtr += 3; + } + + // Compute normals + _Data->TempBuffer.reserve_discard(points_count); + ImVec2* temp_normals = _Data->TempBuffer.Data; + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + const ImVec2& p0 = points[i0]; + const ImVec2& p1 = points[i1]; + float dx = p1.x - p0.x; + float dy = p1.y - p0.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i0].x = dy; + temp_normals[i0].y = -dx; + } + + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + // Average normals + const ImVec2& n0 = temp_normals[i0]; + const ImVec2& n1 = temp_normals[i1]; + float dm_x = (n0.x + n1.x) * 0.5f; + float dm_y = (n0.y + n1.y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= AA_SIZE * 0.5f; + dm_y *= AA_SIZE * 0.5f; + + // Add vertices + _VtxWritePtr[0].pos.x = (points[i1].x - dm_x); _VtxWritePtr[0].pos.y = (points[i1].y - dm_y); _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; // Inner + _VtxWritePtr[1].pos.x = (points[i1].x + dm_x); _VtxWritePtr[1].pos.y = (points[i1].y + dm_y); _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col_trans; // Outer + _VtxWritePtr += 2; + + // Add indexes for fringes + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + (i0 << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); + _IdxWritePtr[3] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); _IdxWritePtr[4] = (ImDrawIdx)(vtx_outer_idx + (i1 << 1)); _IdxWritePtr[5] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); + _IdxWritePtr += 6; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // Non Anti-aliased Fill + const int idx_count = (points_count - 2)*3; + const int vtx_count = points_count; + PrimReserve(idx_count, vtx_count); + for (int i = 0; i < vtx_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr++; + } + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + i - 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + i); + _IdxWritePtr += 3; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } +} + +void ImDrawList::_PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Calculate arc auto segment step size + if (a_step <= 0) + a_step = IM_DRAWLIST_ARCFAST_SAMPLE_MAX / _CalcCircleAutoSegmentCount(radius); + + // Make sure we never do steps larger than one quarter of the circle + a_step = ImClamp(a_step, 1, IM_DRAWLIST_ARCFAST_TABLE_SIZE / 4); + + const int sample_range = ImAbs(a_max_sample - a_min_sample); + const int a_next_step = a_step; + + int samples = sample_range + 1; + bool extra_max_sample = false; + if (a_step > 1) + { + samples = sample_range / a_step + 1; + const int overstep = sample_range % a_step; + + if (overstep > 0) + { + extra_max_sample = true; + samples++; + + // When we have overstep to avoid awkwardly looking one long line and one tiny one at the end, + // distribute first step range evenly between them by reducing first step size. + if (sample_range > 0) + a_step -= (a_step - overstep) / 2; + } + } + + _Path.resize(_Path.Size + samples); + ImVec2* out_ptr = _Path.Data + (_Path.Size - samples); + + int sample_index = a_min_sample; + if (sample_index < 0 || sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + { + sample_index = sample_index % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + } + + if (a_max_sample >= a_min_sample) + { + for (int a = a_min_sample; a <= a_max_sample; a += a_step, sample_index += a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index >= IM_DRAWLIST_ARCFAST_SAMPLE_MAX) + sample_index -= IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + else + { + for (int a = a_min_sample; a >= a_max_sample; a -= a_step, sample_index -= a_step, a_step = a_next_step) + { + // a_step is clamped to IM_DRAWLIST_ARCFAST_SAMPLE_MAX, so we have guaranteed that it will not wrap over range twice or more + if (sample_index < 0) + sample_index += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[sample_index]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + } + + if (extra_max_sample) + { + int normalized_max_sample = a_max_sample % IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + if (normalized_max_sample < 0) + normalized_max_sample += IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + + const ImVec2 s = _Data->ArcFastVtx[normalized_max_sample]; + out_ptr->x = center.x + s.x * radius; + out_ptr->y = center.y + s.y * radius; + out_ptr++; + } + + IM_ASSERT_PARANOID(_Path.Data + _Path.Size == out_ptr); +} + +void ImDrawList::_PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + // Note that we are adding a point at both a_min and a_max. + // If you are trying to draw a full closed circle you don't want the overlapping points! + _Path.reserve(_Path.Size + (num_segments + 1)); + for (int i = 0; i <= num_segments; i++) + { + const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); + _Path.push_back(ImVec2(center.x + ImCos(a) * radius, center.y + ImSin(a) * radius)); + } +} + +// 0: East, 3: South, 6: West, 9: North, 12: East +void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + _PathArcToFastEx(center, radius, a_min_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, a_max_of_12 * IM_DRAWLIST_ARCFAST_SAMPLE_MAX / 12, 0); +} + +void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius < 0.5f) + { + _Path.push_back(center); + return; + } + + if (num_segments > 0) + { + _PathArcToN(center, radius, a_min, a_max, num_segments); + return; + } + + // Automatic segment count + if (radius <= _Data->ArcFastRadiusCutoff) + { + const bool a_is_reverse = a_max < a_min; + + // We are going to use precomputed values for mid samples. + // Determine first and last sample in lookup table that belong to the arc. + const float a_min_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_min / (IM_PI * 2.0f); + const float a_max_sample_f = IM_DRAWLIST_ARCFAST_SAMPLE_MAX * a_max / (IM_PI * 2.0f); + + const int a_min_sample = a_is_reverse ? (int)ImFloorSigned(a_min_sample_f) : (int)ImCeil(a_min_sample_f); + const int a_max_sample = a_is_reverse ? (int)ImCeil(a_max_sample_f) : (int)ImFloorSigned(a_max_sample_f); + const int a_mid_samples = a_is_reverse ? ImMax(a_min_sample - a_max_sample, 0) : ImMax(a_max_sample - a_min_sample, 0); + + const float a_min_segment_angle = a_min_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const float a_max_segment_angle = a_max_sample * IM_PI * 2.0f / IM_DRAWLIST_ARCFAST_SAMPLE_MAX; + const bool a_emit_start = ImAbs(a_min_segment_angle - a_min) >= 1e-5f; + const bool a_emit_end = ImAbs(a_max - a_max_segment_angle) >= 1e-5f; + + _Path.reserve(_Path.Size + (a_mid_samples + 1 + (a_emit_start ? 1 : 0) + (a_emit_end ? 1 : 0))); + if (a_emit_start) + _Path.push_back(ImVec2(center.x + ImCos(a_min) * radius, center.y + ImSin(a_min) * radius)); + if (a_mid_samples > 0) + _PathArcToFastEx(center, radius, a_min_sample, a_max_sample, 0); + if (a_emit_end) + _Path.push_back(ImVec2(center.x + ImCos(a_max) * radius, center.y + ImSin(a_max) * radius)); + } + else + { + const float arc_length = ImAbs(a_max - a_min); + const int circle_segment_count = _CalcCircleAutoSegmentCount(radius); + const int arc_segment_count = ImMax((int)ImCeil(circle_segment_count * arc_length / (IM_PI * 2.0f)), (int)(2.0f * IM_PI / arc_length)); + _PathArcToN(center, radius, a_min, a_max, arc_segment_count); + } +} + +void ImDrawList::PathEllipticalArcTo(const ImVec2& center, float radius_x, float radius_y, float rot, float a_min, float a_max, int num_segments) +{ + if (num_segments <= 0) + num_segments = _CalcCircleAutoSegmentCount(ImMax(radius_x, radius_y)); // A bit pessimistic, maybe there's a better computation to do here. + + _Path.reserve(_Path.Size + (num_segments + 1)); + + const float cos_rot = ImCos(rot); + const float sin_rot = ImSin(rot); + for (int i = 0; i <= num_segments; i++) + { + const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); + ImVec2 point(ImCos(a) * radius_x, ImSin(a) * radius_y); + const float rel_x = (point.x * cos_rot) - (point.y * sin_rot); + const float rel_y = (point.x * sin_rot) + (point.y * cos_rot); + point.x = rel_x + center.x; + point.y = rel_y + center.y; + _Path.push_back(point); + } +} + +ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t) +{ + float u = 1.0f - t; + float w1 = u * u * u; + float w2 = 3 * u * u * t; + float w3 = 3 * u * t * t; + float w4 = t * t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x + w4 * p4.x, w1 * p1.y + w2 * p2.y + w3 * p3.y + w4 * p4.y); +} + +ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t) +{ + float u = 1.0f - t; + float w1 = u * u; + float w2 = 2 * u * t; + float w3 = t * t; + return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x, w1 * p1.y + w2 * p2.y + w3 * p3.y); +} + +// Closely mimics ImBezierCubicClosestPointCasteljau() in imgui.cpp +static void PathBezierCubicCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = (x2 - x4) * dy - (y2 - y4) * dx; + float d3 = (x3 - x4) * dy - (y3 - y4) * dx; + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x4, y4)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x34 = (x3 + x4) * 0.5f, y34 = (y3 + y4) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + float x234 = (x23 + x34) * 0.5f, y234 = (y23 + y34) * 0.5f; + float x1234 = (x123 + x234) * 0.5f, y1234 = (y123 + y234) * 0.5f; + PathBezierCubicCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + PathBezierCubicCurveToCasteljau(path, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +static void PathBezierQuadraticCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float tess_tol, int level) +{ + float dx = x3 - x1, dy = y3 - y1; + float det = (x2 - x3) * dy - (y2 - y3) * dx; + if (det * det * 4.0f < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x3, y3)); + } + else if (level < 10) + { + float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; + float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; + float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; + PathBezierQuadraticCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, tess_tol, level + 1); + PathBezierQuadraticCurveToCasteljau(path, x123, y123, x23, y23, x3, y3, tess_tol, level + 1); + } +} + +void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierCubicCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step)); + } +} + +void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + IM_ASSERT(_Data->CurveTessellationTol > 0.0f); + PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierQuadraticCalc(p1, p2, p3, t_step * i_step)); + } +} + +static inline ImDrawFlags FixRectCornerFlags(ImDrawFlags flags) +{ + /* + IM_STATIC_ASSERT(ImDrawFlags_RoundCornersTopLeft == (1 << 4)); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Obsoleted in 1.82 (from February 2021). This code was stripped/simplified and mostly commented in 1.90 (from September 2023) + // - Legacy Support for hard coded ~0 (used to be a suggested equivalent to ImDrawCornerFlags_All) + if (flags == ~0) { return ImDrawFlags_RoundCornersAll; } + // - Legacy Support for hard coded 0x01 to 0x0F (matching 15 out of 16 old flags combinations). Read details in older version of this code. + if (flags >= 0x01 && flags <= 0x0F) { return (flags << 4); } + // We cannot support hard coded 0x00 with 'float rounding > 0.0f' --> replace with ImDrawFlags_RoundCornersNone or use 'float rounding = 0.0f' +#endif + */ + // If this assert triggers, please update your code replacing hardcoded values with new ImDrawFlags_RoundCorners* values. + // Note that ImDrawFlags_Closed (== 0x01) is an invalid flag for AddRect(), AddRectFilled(), PathRect() etc. anyway. + // See details in 1.82 Changelog as well as 2021/03/12 and 2023/09/08 entries in "API BREAKING CHANGES" section. + IM_ASSERT((flags & 0x0F) == 0 && "Misuse of legacy hardcoded ImDrawCornerFlags values!"); + + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags |= ImDrawFlags_RoundCornersAll; + + return flags; +} + +void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawFlags flags) +{ + if (rounding >= 0.5f) + { + flags = FixRectCornerFlags(flags); + rounding = ImMin(rounding, ImFabs(b.x - a.x) * (((flags & ImDrawFlags_RoundCornersTop) == ImDrawFlags_RoundCornersTop) || ((flags & ImDrawFlags_RoundCornersBottom) == ImDrawFlags_RoundCornersBottom) ? 0.5f : 1.0f) - 1.0f); + rounding = ImMin(rounding, ImFabs(b.y - a.y) * (((flags & ImDrawFlags_RoundCornersLeft) == ImDrawFlags_RoundCornersLeft) || ((flags & ImDrawFlags_RoundCornersRight) == ImDrawFlags_RoundCornersRight) ? 0.5f : 1.0f) - 1.0f); + } + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PathLineTo(a); + PathLineTo(ImVec2(b.x, a.y)); + PathLineTo(b); + PathLineTo(ImVec2(a.x, b.y)); + } + else + { + const float rounding_tl = (flags & ImDrawFlags_RoundCornersTopLeft) ? rounding : 0.0f; + const float rounding_tr = (flags & ImDrawFlags_RoundCornersTopRight) ? rounding : 0.0f; + const float rounding_br = (flags & ImDrawFlags_RoundCornersBottomRight) ? rounding : 0.0f; + const float rounding_bl = (flags & ImDrawFlags_RoundCornersBottomLeft) ? rounding : 0.0f; + PathArcToFast(ImVec2(a.x + rounding_tl, a.y + rounding_tl), rounding_tl, 6, 9); + PathArcToFast(ImVec2(b.x - rounding_tr, a.y + rounding_tr), rounding_tr, 9, 12); + PathArcToFast(ImVec2(b.x - rounding_br, b.y - rounding_br), rounding_br, 0, 3); + PathArcToFast(ImVec2(a.x + rounding_bl, b.y - rounding_bl), rounding_bl, 3, 6); + } +} + +void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + PathLineTo(p1 + ImVec2(0.5f, 0.5f)); + PathLineTo(p2 + ImVec2(0.5f, 0.5f)); + PathStroke(col, 0, thickness); +} + +// p_min = upper-left, p_max = lower-right +// Note we don't render 1 pixels sized rectangles properly. +void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (Flags & ImDrawListFlags_AntiAliasedLines) + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.50f, 0.50f), rounding, flags); + else + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.49f, 0.49f), rounding, flags); // Better looking lower-right corner and rounded non-AA shapes. + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + PrimReserve(6, 4); + PrimRect(p_min, p_max, col); + } + else + { + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + } +} + +// p_min = upper-left, p_max = lower-right +void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) +{ + if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + PrimReserve(6, 4); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 1)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 3)); + PrimWriteVtx(p_min, uv, col_upr_left); + PrimWriteVtx(ImVec2(p_max.x, p_min.y), uv, col_upr_right); + PrimWriteVtx(p_max, uv, col_bot_right); + PrimWriteVtx(ImVec2(p_min.x, p_max.y), uv, col_bot_left); +} + +void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathFillConvex(col); +} + +void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathFillConvex(col); +} + +void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius - 0.5f, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + } + + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius < 0.5f) + return; + + if (num_segments <= 0) + { + // Use arc with automatic segment count + _PathArcToFastEx(center, radius, 0, IM_DRAWLIST_ARCFAST_SAMPLE_MAX, 0); + _Path.Size--; + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + } + + PathFillConvex(col); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + PathStroke(col, ImDrawFlags_Closed, thickness); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Ellipse +void ImDrawList::AddEllipse(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (num_segments <= 0) + num_segments = _CalcCircleAutoSegmentCount(ImMax(radius_x, radius_y)); // A bit pessimistic, maybe there's a better computation to do here. + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = IM_PI * 2.0f * ((float)num_segments - 1.0f) / (float)num_segments; + PathEllipticalArcTo(center, radius_x, radius_y, rot, 0.0f, a_max, num_segments - 1); + PathStroke(col, true, thickness); +} + +void ImDrawList::AddEllipseFilled(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (num_segments <= 0) + num_segments = _CalcCircleAutoSegmentCount(ImMax(radius_x, radius_y)); // A bit pessimistic, maybe there's a better computation to do here. + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = IM_PI * 2.0f * ((float)num_segments - 1.0f) / (float)num_segments; + PathEllipticalArcTo(center, radius_x, radius_y, rot, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Cubic Bezier takes 4 controls points +void ImDrawList::AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierCubicCurveTo(p2, p3, p4, num_segments); + PathStroke(col, 0, thickness); +} + +// Quadratic Bezier takes 3 controls points +void ImDrawList::AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierQuadraticCurveTo(p2, p3, num_segments); + PathStroke(col, 0, thickness); +} + +void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (text_end == NULL) + text_end = text_begin + strlen(text_begin); + if (text_begin == text_end) + return; + + // Pull default font/size from the shared ImDrawListSharedData instance + if (font == NULL) + font = _Data->Font; + if (font_size == 0.0f) + font_size = _Data->FontSize; + + IM_ASSERT(font->ContainerAtlas->TexID == _CmdHeader.TextureId); // Use high-level ImGui::PushFont() or low-level ImDrawList::PushTextureId() to change font. + + ImVec4 clip_rect = _CmdHeader.ClipRect; + if (cpu_fine_clip_rect) + { + clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); + clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); + clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); + clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); + } + font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); +} + +void ImDrawList::AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end) +{ + AddText(NULL, 0.0f, pos, col, text_begin, text_end); +} + +void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimRectUV(p_min, p_max, uv_min, uv_max, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + flags = FixRectCornerFlags(flags); + if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone) + { + AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); + return; + } + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + int vert_start_idx = VtxBuffer.Size; + PathRect(p_min, p_max, rounding, flags); + PathFillConvex(col); + int vert_end_idx = VtxBuffer.Size; + ImGui::ShadeVertsLinearUV(this, vert_start_idx, vert_end_idx, p_min, p_max, uv_min, uv_max, true); + + if (push_texture_id) + PopTextureID(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawListSplitter +//----------------------------------------------------------------------------- +// FIXME: This may be a little confusing, trying to be a little too low-level/optimal instead of just doing vector swap.. +//----------------------------------------------------------------------------- + +void ImDrawListSplitter::ClearFreeMemory() +{ + for (int i = 0; i < _Channels.Size; i++) + { + if (i == _Current) + memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again + _Channels[i]._CmdBuffer.clear(); + _Channels[i]._IdxBuffer.clear(); + } + _Current = 0; + _Count = 1; + _Channels.clear(); +} + +void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) +{ + IM_UNUSED(draw_list); + IM_ASSERT(_Current == 0 && _Count <= 1 && "Nested channel splitting is not supported. Please use separate instances of ImDrawListSplitter."); + int old_channels_count = _Channels.Size; + if (old_channels_count < channels_count) + { + _Channels.reserve(channels_count); // Avoid over reserving since this is likely to stay stable + _Channels.resize(channels_count); + } + _Count = channels_count; + + // Channels[] (24/32 bytes each) hold storage that we'll swap with draw_list->_CmdBuffer/_IdxBuffer + // The content of Channels[0] at this point doesn't matter. We clear it to make state tidy in a debugger but we don't strictly need to. + // When we switch to the next channel, we'll copy draw_list->_CmdBuffer/_IdxBuffer into Channels[0] and then Channels[1] into draw_list->CmdBuffer/_IdxBuffer + memset(&_Channels[0], 0, sizeof(ImDrawChannel)); + for (int i = 1; i < channels_count; i++) + { + if (i >= old_channels_count) + { + IM_PLACEMENT_NEW(&_Channels[i]) ImDrawChannel(); + } + else + { + _Channels[i]._CmdBuffer.resize(0); + _Channels[i]._IdxBuffer.resize(0); + } + } +} + +void ImDrawListSplitter::Merge(ImDrawList* draw_list) +{ + // Note that we never use or rely on _Channels.Size because it is merely a buffer that we never shrink back to 0 to keep all sub-buffers ready for use. + if (_Count <= 1) + return; + + SetCurrentChannel(draw_list, 0); + draw_list->_PopUnusedDrawCmd(); + + // Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command. + int new_cmd_buffer_count = 0; + int new_idx_buffer_count = 0; + ImDrawCmd* last_cmd = (_Count > 0 && draw_list->CmdBuffer.Size > 0) ? &draw_list->CmdBuffer.back() : NULL; + int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0 && ch._CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + ch._CmdBuffer.pop_back(); + + if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) + { + // Do not include ImDrawCmd_AreSequentialIdxOffset() in the compare as we rebuild IdxOffset values ourselves. + // Manipulating IdxOffset (e.g. by reordering draw commands like done by RenderDimmedBackgroundBehindWindow()) is not supported within a splitter. + ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; + if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) + { + // Merge previous channel last draw command with current channel first draw command if matching. + last_cmd->ElemCount += next_cmd->ElemCount; + idx_offset += next_cmd->ElemCount; + ch._CmdBuffer.erase(ch._CmdBuffer.Data); // FIXME-OPT: Improve for multiple merges. + } + } + if (ch._CmdBuffer.Size > 0) + last_cmd = &ch._CmdBuffer.back(); + new_cmd_buffer_count += ch._CmdBuffer.Size; + new_idx_buffer_count += ch._IdxBuffer.Size; + for (int cmd_n = 0; cmd_n < ch._CmdBuffer.Size; cmd_n++) + { + ch._CmdBuffer.Data[cmd_n].IdxOffset = idx_offset; + idx_offset += ch._CmdBuffer.Data[cmd_n].ElemCount; + } + } + draw_list->CmdBuffer.resize(draw_list->CmdBuffer.Size + new_cmd_buffer_count); + draw_list->IdxBuffer.resize(draw_list->IdxBuffer.Size + new_idx_buffer_count); + + // Write commands and indices in order (they are fairly small structures, we don't copy vertices only indices) + ImDrawCmd* cmd_write = draw_list->CmdBuffer.Data + draw_list->CmdBuffer.Size - new_cmd_buffer_count; + ImDrawIdx* idx_write = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size - new_idx_buffer_count; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (int sz = ch._CmdBuffer.Size) { memcpy(cmd_write, ch._CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cmd_write += sz; } + if (int sz = ch._IdxBuffer.Size) { memcpy(idx_write, ch._IdxBuffer.Data, sz * sizeof(ImDrawIdx)); idx_write += sz; } + } + draw_list->_IdxWritePtr = idx_write; + + // Ensure there's always a non-callback draw command trailing the command-buffer + if (draw_list->CmdBuffer.Size == 0 || draw_list->CmdBuffer.back().UserCallback != NULL) + draw_list->AddDrawCmd(); + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); + + _Count = 1; +} + +void ImDrawListSplitter::SetCurrentChannel(ImDrawList* draw_list, int idx) +{ + IM_ASSERT(idx >= 0 && idx < _Count); + if (_Current == idx) + return; + + // Overwrite ImVector (12/16 bytes), four times. This is merely a silly optimization instead of doing .swap() + memcpy(&_Channels.Data[_Current]._CmdBuffer, &draw_list->CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&_Channels.Data[_Current]._IdxBuffer, &draw_list->IdxBuffer, sizeof(draw_list->IdxBuffer)); + _Current = idx; + memcpy(&draw_list->CmdBuffer, &_Channels.Data[idx]._CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&draw_list->IdxBuffer, &_Channels.Data[idx]._IdxBuffer, sizeof(draw_list->IdxBuffer)); + draw_list->_IdxWritePtr = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size; + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = (draw_list->CmdBuffer.Size == 0) ? NULL : &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd == NULL) + draw_list->AddDrawCmd(); + else if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawData +//----------------------------------------------------------------------------- + +void ImDrawData::Clear() +{ + Valid = false; + CmdListsCount = TotalIdxCount = TotalVtxCount = 0; + CmdLists.resize(0); // The ImDrawList are NOT owned by ImDrawData but e.g. by ImGuiContext, so we don't clear them. + DisplayPos = DisplaySize = FramebufferScale = ImVec2(0.0f, 0.0f); + OwnerViewport = NULL; +} + +// Important: 'out_list' is generally going to be draw_data->CmdLists, but may be another temporary list +// as long at it is expected that the result will be later merged into draw_data->CmdLists[]. +void ImGui::AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector* out_list, ImDrawList* draw_list) +{ + if (draw_list->CmdBuffer.Size == 0) + return; + if (draw_list->CmdBuffer.Size == 1 && draw_list->CmdBuffer[0].ElemCount == 0 && draw_list->CmdBuffer[0].UserCallback == NULL) + return; + + // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. + // May trigger for you if you are using PrimXXX functions incorrectly. + IM_ASSERT(draw_list->VtxBuffer.Size == 0 || draw_list->_VtxWritePtr == draw_list->VtxBuffer.Data + draw_list->VtxBuffer.Size); + IM_ASSERT(draw_list->IdxBuffer.Size == 0 || draw_list->_IdxWritePtr == draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size); + if (!(draw_list->Flags & ImDrawListFlags_AllowVtxOffset)) + IM_ASSERT((int)draw_list->_VtxCurrentIdx == draw_list->VtxBuffer.Size); + + // Check that draw_list doesn't use more vertices than indexable (default ImDrawIdx = unsigned short = 2 bytes = 64K vertices per ImDrawList = per window) + // If this assert triggers because you are drawing lots of stuff manually: + // - First, make sure you are coarse clipping yourself and not trying to draw many things outside visible bounds. + // Be mindful that the lower-level ImDrawList API doesn't filter vertices. Use the Metrics/Debugger window to inspect draw list contents. + // - If you want large meshes with more than 64K vertices, you can either: + // (A) Handle the ImDrawCmd::VtxOffset value in your renderer backend, and set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset'. + // Most example backends already support this from 1.71. Pre-1.71 backends won't. + // Some graphics API such as GL ES 1/2 don't have a way to offset the starting vertex so it is not supported for them. + // (B) Or handle 32-bit indices in your renderer backend, and uncomment '#define ImDrawIdx unsigned int' line in imconfig.h. + // Most example backends already support this. For example, the OpenGL example code detect index size at compile-time: + // glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset); + // Your own engine or render API may use different parameters or function calls to specify index sizes. + // 2 and 4 bytes indices are generally supported by most graphics API. + // - If for some reason neither of those solutions works for you, a workaround is to call BeginChild()/EndChild() before reaching + // the 64K limit to split your draw commands in multiple draw lists. + if (sizeof(ImDrawIdx) == 2) + IM_ASSERT(draw_list->_VtxCurrentIdx < (1 << 16) && "Too many vertices in ImDrawList using 16-bit indices. Read comment above"); + + // Add to output list + records state in ImDrawData + out_list->push_back(draw_list); + draw_data->CmdListsCount++; + draw_data->TotalVtxCount += draw_list->VtxBuffer.Size; + draw_data->TotalIdxCount += draw_list->IdxBuffer.Size; +} + +void ImDrawData::AddDrawList(ImDrawList* draw_list) +{ + IM_ASSERT(CmdLists.Size == CmdListsCount); + draw_list->_PopUnusedDrawCmd(); + ImGui::AddDrawListToDrawDataEx(this, &CmdLists, draw_list); +} + +// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! +void ImDrawData::DeIndexAllBuffers() +{ + ImVector new_vtx_buffer; + TotalVtxCount = TotalIdxCount = 0; + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + if (cmd_list->IdxBuffer.empty()) + continue; + new_vtx_buffer.resize(cmd_list->IdxBuffer.Size); + for (int j = 0; j < cmd_list->IdxBuffer.Size; j++) + new_vtx_buffer[j] = cmd_list->VtxBuffer[cmd_list->IdxBuffer[j]]; + cmd_list->VtxBuffer.swap(new_vtx_buffer); + cmd_list->IdxBuffer.resize(0); + TotalVtxCount += cmd_list->VtxBuffer.Size; + } +} + +// Helper to scale the ClipRect field of each ImDrawCmd. +// Use if your final output buffer is at a different scale than draw_data->DisplaySize, +// or if there is a difference between your window resolution and framebuffer resolution. +void ImDrawData::ScaleClipRects(const ImVec2& fb_scale) +{ + for (ImDrawList* draw_list : CmdLists) + for (ImDrawCmd& cmd : draw_list->CmdBuffer) + cmd.ClipRect = ImVec4(cmd.ClipRect.x * fb_scale.x, cmd.ClipRect.y * fb_scale.y, cmd.ClipRect.z * fb_scale.x, cmd.ClipRect.w * fb_scale.y); +} + +//----------------------------------------------------------------------------- +// [SECTION] Helpers ShadeVertsXXX functions +//----------------------------------------------------------------------------- + +// Generic linear color gradient, write to RGB fields, leave A untouched. +void ImGui::ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1) +{ + ImVec2 gradient_extent = gradient_p1 - gradient_p0; + float gradient_inv_length2 = 1.0f / ImLengthSqr(gradient_extent); + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + const int col0_r = (int)(col0 >> IM_COL32_R_SHIFT) & 0xFF; + const int col0_g = (int)(col0 >> IM_COL32_G_SHIFT) & 0xFF; + const int col0_b = (int)(col0 >> IM_COL32_B_SHIFT) & 0xFF; + const int col_delta_r = ((int)(col1 >> IM_COL32_R_SHIFT) & 0xFF) - col0_r; + const int col_delta_g = ((int)(col1 >> IM_COL32_G_SHIFT) & 0xFF) - col0_g; + const int col_delta_b = ((int)(col1 >> IM_COL32_B_SHIFT) & 0xFF) - col0_b; + for (ImDrawVert* vert = vert_start; vert < vert_end; vert++) + { + float d = ImDot(vert->pos - gradient_p0, gradient_extent); + float t = ImClamp(d * gradient_inv_length2, 0.0f, 1.0f); + int r = (int)(col0_r + col_delta_r * t); + int g = (int)(col0_g + col_delta_g * t); + int b = (int)(col0_b + col_delta_b * t); + vert->col = (r << IM_COL32_R_SHIFT) | (g << IM_COL32_G_SHIFT) | (b << IM_COL32_B_SHIFT) | (vert->col & IM_COL32_A_MASK); + } +} + +// Distribute UV over (a, b) rectangle +void ImGui::ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) +{ + const ImVec2 size = b - a; + const ImVec2 uv_size = uv_b - uv_a; + const ImVec2 scale = ImVec2( + size.x != 0.0f ? (uv_size.x / size.x) : 0.0f, + size.y != 0.0f ? (uv_size.y / size.y) : 0.0f); + + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + if (clamp) + { + const ImVec2 min = ImMin(uv_a, uv_b); + const ImVec2 max = ImMax(uv_a, uv_b); + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); + } + else + { + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontConfig +//----------------------------------------------------------------------------- + +ImFontConfig::ImFontConfig() +{ + memset(this, 0, sizeof(*this)); + FontDataOwnedByAtlas = true; + OversampleH = 2; + OversampleV = 1; + GlyphMaxAdvanceX = FLT_MAX; + RasterizerMultiply = 1.0f; + EllipsisChar = (ImWchar)-1; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas +//----------------------------------------------------------------------------- + +// A work of art lies ahead! (. = white layer, X = black layer, others are blank) +// The 2x2 white texels on the top left are the ones we'll use everywhere in Dear ImGui to render filled shapes. +// (This is used when io.MouseDrawCursor = true) +const int FONT_ATLAS_DEFAULT_TEX_DATA_W = 122; // Actual texture will be 2 times that + 1 spacing. +const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27; +static const char FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS[FONT_ATLAS_DEFAULT_TEX_DATA_W * FONT_ATLAS_DEFAULT_TEX_DATA_H + 1] = +{ + "..- -XXXXXXX- X - X -XXXXXXX - XXXXXXX- XX - XX XX " + "..- -X.....X- X.X - X.X -X.....X - X.....X- X..X -X..X X..X" + "--- -XXX.XXX- X...X - X...X -X....X - X....X- X..X -X...X X...X" + "X - X.X - X.....X - X.....X -X...X - X...X- X..X - X...X X...X " + "XX - X.X -X.......X- X.......X -X..X.X - X.X..X- X..X - X...X...X " + "X.X - X.X -XXXX.XXXX- XXXX.XXXX -X.X X.X - X.X X.X- X..XXX - X.....X " + "X..X - X.X - X.X - X.X -XX X.X - X.X XX- X..X..XXX - X...X " + "X...X - X.X - X.X - XX X.X XX - X.X - X.X - X..X..X..XX - X.X " + "X....X - X.X - X.X - X.X X.X X.X - X.X - X.X - X..X..X..X.X - X...X " + "X.....X - X.X - X.X - X..X X.X X..X - X.X - X.X -XXX X..X..X..X..X- X.....X " + "X......X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X XX-XX X.X -X..XX........X..X- X...X...X " + "X.......X - X.X - X.X -X.....................X- X.X X.X-X.X X.X -X...X...........X- X...X X...X " + "X........X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X..X-X..X.X - X..............X-X...X X...X" + "X.........X -XXX.XXX- X.X - X..X X.X X..X - X...X-X...X - X.............X-X..X X..X" + "X..........X-X.....X- X.X - X.X X.X X.X - X....X-X....X - X.............X- XX XX " + "X......XXXXX-XXXXXXX- X.X - XX X.X XX - X.....X-X.....X - X............X--------------" + "X...X..X --------- X.X - X.X - XXXXXXX-XXXXXXX - X...........X - " + "X..X X..X - -XXXX.XXXX- XXXX.XXXX ------------------------------------- X..........X - " + "X.X X..X - -X.......X- X.......X - XX XX - - X..........X - " + "XX X..X - - X.....X - X.....X - X.X X.X - - X........X - " + " X..X - - X...X - X...X - X..X X..X - - X........X - " + " XX - - X.X - X.X - X...XXXXXXXXXXXXX...X - - XXXXXXXXXX - " + "------------- - X - X -X.....................X- ------------------- " + " ----------------------------------- X...XXXXXXXXXXXXX...X - " + " - X..X X..X - " + " - X.X X.X - " + " - XX XX - " +}; + +static const ImVec2 FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[ImGuiMouseCursor_COUNT][3] = +{ + // Pos ........ Size ......... Offset ...... + { ImVec2( 0,3), ImVec2(12,19), ImVec2( 0, 0) }, // ImGuiMouseCursor_Arrow + { ImVec2(13,0), ImVec2( 7,16), ImVec2( 1, 8) }, // ImGuiMouseCursor_TextInput + { ImVec2(31,0), ImVec2(23,23), ImVec2(11,11) }, // ImGuiMouseCursor_ResizeAll + { ImVec2(21,0), ImVec2( 9,23), ImVec2( 4,11) }, // ImGuiMouseCursor_ResizeNS + { ImVec2(55,18),ImVec2(23, 9), ImVec2(11, 4) }, // ImGuiMouseCursor_ResizeEW + { ImVec2(73,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNESW + { ImVec2(55,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNWSE + { ImVec2(91,0), ImVec2(17,22), ImVec2( 5, 0) }, // ImGuiMouseCursor_Hand + { ImVec2(109,0),ImVec2(13,15), ImVec2( 6, 7) }, // ImGuiMouseCursor_NotAllowed +}; + +ImFontAtlas::ImFontAtlas() +{ + memset(this, 0, sizeof(*this)); + TexGlyphPadding = 1; + PackIdMouseCursors = PackIdLines = -1; +} + +ImFontAtlas::~ImFontAtlas() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Clear(); +} + +void ImFontAtlas::ClearInputData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + for (ImFontConfig& font_cfg : ConfigData) + if (font_cfg.FontData && font_cfg.FontDataOwnedByAtlas) + { + IM_FREE(font_cfg.FontData); + font_cfg.FontData = NULL; + } + + // When clearing this we lose access to the font name and other information used to build the font. + for (ImFont* font : Fonts) + if (font->ConfigData >= ConfigData.Data && font->ConfigData < ConfigData.Data + ConfigData.Size) + { + font->ConfigData = NULL; + font->ConfigDataCount = 0; + } + ConfigData.clear(); + CustomRects.clear(); + PackIdMouseCursors = PackIdLines = -1; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearTexData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + if (TexPixelsAlpha8) + IM_FREE(TexPixelsAlpha8); + if (TexPixelsRGBA32) + IM_FREE(TexPixelsRGBA32); + TexPixelsAlpha8 = NULL; + TexPixelsRGBA32 = NULL; + TexPixelsUseColors = false; + // Important: we leave TexReady untouched +} + +void ImFontAtlas::ClearFonts() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Fonts.clear_delete(); + TexReady = false; +} + +void ImFontAtlas::Clear() +{ + ClearInputData(); + ClearTexData(); + ClearFonts(); +} + +void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Build atlas on demand + if (TexPixelsAlpha8 == NULL) + Build(); + + *out_pixels = TexPixelsAlpha8; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 1; +} + +void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Convert to RGBA32 format on demand + // Although it is likely to be the most commonly used format, our font rendering is 1 channel / 8 bpp + if (!TexPixelsRGBA32) + { + unsigned char* pixels = NULL; + GetTexDataAsAlpha8(&pixels, NULL, NULL); + if (pixels) + { + TexPixelsRGBA32 = (unsigned int*)IM_ALLOC((size_t)TexWidth * (size_t)TexHeight * 4); + const unsigned char* src = pixels; + unsigned int* dst = TexPixelsRGBA32; + for (int n = TexWidth * TexHeight; n > 0; n--) + *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); + } + } + + *out_pixels = (unsigned char*)TexPixelsRGBA32; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 4; +} + +ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); + IM_ASSERT(font_cfg->SizePixels > 0.0f); + + // Create new font + if (!font_cfg->MergeMode) + Fonts.push_back(IM_NEW(ImFont)); + else + IM_ASSERT(!Fonts.empty() && "Cannot use MergeMode for the first font"); // When using MergeMode make sure that a font has already been added before. You can use ImGui::GetIO().Fonts->AddFontDefault() to add the default imgui font. + + ConfigData.push_back(*font_cfg); + ImFontConfig& new_font_cfg = ConfigData.back(); + if (new_font_cfg.DstFont == NULL) + new_font_cfg.DstFont = Fonts.back(); + if (!new_font_cfg.FontDataOwnedByAtlas) + { + new_font_cfg.FontData = IM_ALLOC(new_font_cfg.FontDataSize); + new_font_cfg.FontDataOwnedByAtlas = true; + memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize); + } + + if (new_font_cfg.DstFont->EllipsisChar == (ImWchar)-1) + new_font_cfg.DstFont->EllipsisChar = font_cfg->EllipsisChar; + + ImFontAtlasUpdateConfigDataPointers(this); + + // Invalidate texture + TexReady = false; + ClearTexData(); + return new_font_cfg.DstFont; +} + +// Default font TTF is compressed with stb_compress then base85 encoded (see misc/fonts/binary_to_compressed_c.cpp for encoder) +static unsigned int stb_decompress_length(const unsigned char* input); +static unsigned int stb_decompress(unsigned char* output, const unsigned char* input, unsigned int length); +static const char* GetDefaultCompressedFontDataTTFBase85(); +static unsigned int Decode85Byte(char c) { return c >= '\\' ? c-36 : c-35; } +static void Decode85(const unsigned char* src, unsigned char* dst) +{ + while (*src) + { + unsigned int tmp = Decode85Byte(src[0]) + 85 * (Decode85Byte(src[1]) + 85 * (Decode85Byte(src[2]) + 85 * (Decode85Byte(src[3]) + 85 * Decode85Byte(src[4])))); + dst[0] = ((tmp >> 0) & 0xFF); dst[1] = ((tmp >> 8) & 0xFF); dst[2] = ((tmp >> 16) & 0xFF); dst[3] = ((tmp >> 24) & 0xFF); // We can't assume little-endianness. + src += 5; + dst += 4; + } +} + +// Load embedded ProggyClean.ttf at size 13, disable oversampling +ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template) +{ + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (!font_cfg_template) + { + font_cfg.OversampleH = font_cfg.OversampleV = 1; + font_cfg.PixelSnapH = true; + } + if (font_cfg.SizePixels <= 0.0f) + font_cfg.SizePixels = 13.0f * 1.0f; + if (font_cfg.Name[0] == '\0') + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.SizePixels); + font_cfg.EllipsisChar = (ImWchar)0x0085; + font_cfg.GlyphOffset.y = 1.0f * IM_FLOOR(font_cfg.SizePixels / 13.0f); // Add +1 offset per 13 units + + const char* ttf_compressed_base85 = GetDefaultCompressedFontDataTTFBase85(); + const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRangesDefault(); + ImFont* font = AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_cfg.SizePixels, &font_cfg, glyph_ranges); + return font; +} + +ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + size_t data_size = 0; + void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0); + if (!data) + { + IM_ASSERT_USER_ERROR(0, "Could not load font file!"); + return NULL; + } + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (font_cfg.Name[0] == '\0') + { + // Store a short copy of filename into into the font name for convenience + const char* p; + for (p = filename + strlen(filename); p > filename && p[-1] != '/' && p[-1] != '\\'; p--) {} + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); + } + return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges); +} + +// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build(). +ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + IM_ASSERT(font_data_size > 100 && "Incorrect value for font_data_size!"); // Heuristic to prevent accidentally passing a wrong value to font_data_size. + font_cfg.FontData = font_data; + font_cfg.FontDataSize = font_data_size; + font_cfg.SizePixels = size_pixels > 0.0f ? size_pixels : font_cfg.SizePixels; + if (glyph_ranges) + font_cfg.GlyphRanges = glyph_ranges; + return AddFont(&font_cfg); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data); + unsigned char* buf_decompressed_data = (unsigned char*)IM_ALLOC(buf_decompressed_size); + stb_decompress(buf_decompressed_data, (const unsigned char*)compressed_ttf_data, (unsigned int)compressed_ttf_size); + + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontDataOwnedByAtlas = true; + return AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +{ + int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4; + void* compressed_ttf = IM_ALLOC((size_t)compressed_ttf_size); + Decode85((const unsigned char*)compressed_ttf_data_base85, (unsigned char*)compressed_ttf); + ImFont* font = AddFontFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges); + IM_FREE(compressed_ttf); + return font; +} + +int ImFontAtlas::AddCustomRectRegular(int width, int height) +{ + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) +{ +#ifdef IMGUI_USE_WCHAR32 + IM_ASSERT(id <= IM_UNICODE_CODEPOINT_MAX); +#endif + IM_ASSERT(font != NULL); + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + r.GlyphID = id; + r.GlyphAdvanceX = advance_x; + r.GlyphOffset = offset; + r.Font = font; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +void ImFontAtlas::CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const +{ + IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates + IM_ASSERT(rect->IsPacked()); // Make sure the rectangle has been packed + *out_uv_min = ImVec2((float)rect->X * TexUvScale.x, (float)rect->Y * TexUvScale.y); + *out_uv_max = ImVec2((float)(rect->X + rect->Width) * TexUvScale.x, (float)(rect->Y + rect->Height) * TexUvScale.y); +} + +bool ImFontAtlas::GetMouseCursorTexData(ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]) +{ + if (cursor_type <= ImGuiMouseCursor_None || cursor_type >= ImGuiMouseCursor_COUNT) + return false; + if (Flags & ImFontAtlasFlags_NoMouseCursors) + return false; + + IM_ASSERT(PackIdMouseCursors != -1); + ImFontAtlasCustomRect* r = GetCustomRectByIndex(PackIdMouseCursors); + ImVec2 pos = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][0] + ImVec2((float)r->X, (float)r->Y); + ImVec2 size = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][1]; + *out_size = size; + *out_offset = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][2]; + out_uv_border[0] = (pos) * TexUvScale; + out_uv_border[1] = (pos + size) * TexUvScale; + pos.x += FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + out_uv_fill[0] = (pos) * TexUvScale; + out_uv_fill[1] = (pos + size) * TexUvScale; + return true; +} + +bool ImFontAtlas::Build() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + + // Default font is none are specified + if (ConfigData.Size == 0) + AddFontDefault(); + + // Select builder + // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which + // may mess with some hot-reloading schemes. If you need to assign to this (for dynamic selection) AND are + // using a hot-reloading scheme that messes up static data, store your own instance of ImFontBuilderIO somewhere + // and point to it instead of pointing directly to return value of the GetBuilderXXX functions. + const ImFontBuilderIO* builder_io = FontBuilderIO; + if (builder_io == NULL) + { +#ifdef IMGUI_ENABLE_FREETYPE + builder_io = ImGuiFreeType::GetBuilderForFreeType(); +#elif defined(IMGUI_ENABLE_STB_TRUETYPE) + builder_io = ImFontAtlasGetBuilderForStbTruetype(); +#else + IM_ASSERT(0); // Invalid Build function +#endif + } + + // Build + return builder_io->FontBuilder_Build(this); +} + +void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor) +{ + for (unsigned int i = 0; i < 256; i++) + { + unsigned int value = (unsigned int)(i * in_brighten_factor); + out_table[i] = value > 255 ? 255 : (value & 0xFF); + } +} + +void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) +{ + IM_ASSERT_PARANOID(w <= stride); + unsigned char* data = pixels + x + y * stride; + for (int j = h; j > 0; j--, data += stride - w) + for (int i = w; i > 0; i--, data++) + *data = table[*data]; +} + +#ifdef IMGUI_ENABLE_STB_TRUETYPE +// Temporary data for one source font (multiple source fonts can be merged into one destination ImFont) +// (C++03 doesn't allow instancing ImVector<> with function-local types so we declare the type here.) +struct ImFontBuildSrcData +{ + stbtt_fontinfo FontInfo; + stbtt_pack_range PackRange; // Hold the list of codepoints to pack (essentially points to Codepoints.Data) + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + stbtt_packedchar* PackedChars; // Output glyphs + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsSet) +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstData +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector* out) +{ + IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int)); + const ImU32* it_begin = in->Storage.begin(); + const ImU32* it_end = in->Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + out->push_back((int)(((it - it_begin) << 5) + bit_n)); +} + +static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)NULL; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset(dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + if (src_tmp.DstIndex == -1) + { + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + return false; + } + // Initialize helper structure for font loading and verify that the TTF/OTF data is correct + const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo); + IM_ASSERT(font_offset >= 0 && "FontData is incorrect, or FontNo cannot be found."); + if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) + { + IM_ASSERT(0 && "stbtt_InitFont(): failed to parse FontData. It is correct and complete? Check FontDataSize."); + return false; + } + + // Measure highest codepoints + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + { + // Check for valid range. This may also help detect *some* dangling pointers, because a common + // user error is to setup ImFontConfig::GlyphRanges with a pointer to data that isn't persistent. + IM_ASSERT(src_range[0] <= src_range[1]); + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + } + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (unsigned int codepoint = src_range[0]; codepoint <= src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option for MergeMode (e.g. MergeOverwrite==true) + continue; + if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint)) // It is actually in the font? + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + UnpackBitVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList); + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + ImVector buf_packedchars; + buf_rects.resize(total_glyphs_count); + buf_packedchars.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + memset(buf_packedchars.Data, 0, (size_t)buf_packedchars.size_in_bytes()); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + int total_surface = 0; + int buf_rects_out_n = 0; + int buf_packedchars_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + buf_packedchars_out_n += src_tmp.GlyphsCount; + + // Convert our ranges in the format stb_truetype wants + ImFontConfig& cfg = atlas->ConfigData[src_i]; + src_tmp.PackRange.font_size = cfg.SizePixels; + src_tmp.PackRange.first_unicode_codepoint_in_range = 0; + src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data; + src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size; + src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars; + src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH; + src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV; + + // Gather the sizes of all rectangles we will need to pack (this loop is based on stbtt_PackFontRangesGatherRects) + const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels); + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + int x0, y0, x1, y1; + const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]); + IM_ASSERT(glyph_index_in_font != 0); + stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1); + src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + stbtt_pack_context spc = {}; + stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MAX, 0, atlas->TexGlyphPadding, NULL); + ImFontAtlasBuildPackCustomRects(atlas, spc.pack_info); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight); + memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight); + spc.pixels = atlas->TexPixelsAlpha8; + spc.height = atlas->TexHeight; + + // 8. Render/rasterize font characters into the texture + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects); + + // Apply multiply operator + if (cfg.RasterizerMultiply != 1.0f) + { + unsigned char multiply_table[256]; + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + stbrp_rect* r = &src_tmp.Rects[0]; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++) + if (r->was_packed) + ImFontAtlasBuildMultiplyRectAlpha8(multiply_table, atlas->TexPixelsAlpha8, r->x, r->y, r->w, r->h, atlas->TexWidth * 1); + } + src_tmp.Rects = NULL; + } + + // End packing + stbtt_PackEnd(&spc); + buf_rects.clear(); + + // 9. Setup ImFont and glyphs for runtime + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); + int unscaled_ascent, unscaled_descent, unscaled_line_gap; + stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap); + + const float ascent = ImFloor(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1)); + const float descent = ImFloor(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1)); + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + // Register glyph + const int codepoint = src_tmp.GlyphsList[glyph_i]; + const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; + stbtt_aligned_quad q; + float unused_x = 0.0f, unused_y = 0.0f; + stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); + dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); + } + } + + // Cleanup + src_tmp_array.clear_destruct(); + + ImFontAtlasBuildFinish(atlas); + return true; +} + +const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() +{ + static ImFontBuilderIO io; + io.FontBuilder_Build = ImFontAtlasBuildWithStbTruetype; + return &io; +} + +#endif // IMGUI_ENABLE_STB_TRUETYPE + +void ImFontAtlasUpdateConfigDataPointers(ImFontAtlas* atlas) +{ + for (ImFontConfig& font_cfg : atlas->ConfigData) + { + ImFont* font = font_cfg.DstFont; + if (!font_cfg.MergeMode) + { + font->ConfigData = &font_cfg; + font->ConfigDataCount = 0; + } + font->ConfigDataCount++; + } +} + +void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) +{ + if (!font_config->MergeMode) + { + font->ClearOutputData(); + font->FontSize = font_config->SizePixels; + IM_ASSERT(font->ConfigData == font_config); + font->ContainerAtlas = atlas; + font->Ascent = ascent; + font->Descent = descent; + } +} + +void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) +{ + stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque; + IM_ASSERT(pack_context != NULL); + + ImVector& user_rects = atlas->CustomRects; + IM_ASSERT(user_rects.Size >= 1); // We expect at least the default custom rects to be registered, else something went wrong. +#ifdef __GNUC__ + if (user_rects.Size < 1) { __builtin_unreachable(); } // Workaround for GCC bug if IM_ASSERT() is defined to conditionally throw (see #5343) +#endif + + ImVector pack_rects; + pack_rects.resize(user_rects.Size); + memset(pack_rects.Data, 0, (size_t)pack_rects.size_in_bytes()); + for (int i = 0; i < user_rects.Size; i++) + { + pack_rects[i].w = user_rects[i].Width; + pack_rects[i].h = user_rects[i].Height; + } + stbrp_pack_rects(pack_context, &pack_rects[0], pack_rects.Size); + for (int i = 0; i < pack_rects.Size; i++) + if (pack_rects[i].was_packed) + { + user_rects[i].X = (unsigned short)pack_rects[i].x; + user_rects[i].Y = (unsigned short)pack_rects[i].y; + IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); + atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); + } +} + +void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned char* out_pixel = atlas->TexPixelsAlpha8 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : 0x00; +} + +void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned int* out_pixel = atlas->TexPixelsRGBA32 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : IM_COL32_BLACK_TRANS; +} + +static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) +{ + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdMouseCursors); + IM_ASSERT(r->IsPacked()); + + const int w = atlas->TexWidth; + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + { + // Render/copy pixels + IM_ASSERT(r->Width == FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1 && r->Height == FONT_ATLAS_DEFAULT_TEX_DATA_H); + const int x_for_white = r->X; + const int x_for_black = r->X + FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + if (atlas->TexPixelsAlpha8 != NULL) + { + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', 0xFF); + ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', 0xFF); + } + else + { + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', IM_COL32_WHITE); + ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', IM_COL32_WHITE); + } + } + else + { + // Render 4 white pixels + IM_ASSERT(r->Width == 2 && r->Height == 2); + const int offset = (int)r->X + (int)r->Y * w; + if (atlas->TexPixelsAlpha8 != NULL) + { + atlas->TexPixelsAlpha8[offset] = atlas->TexPixelsAlpha8[offset + 1] = atlas->TexPixelsAlpha8[offset + w] = atlas->TexPixelsAlpha8[offset + w + 1] = 0xFF; + } + else + { + atlas->TexPixelsRGBA32[offset] = atlas->TexPixelsRGBA32[offset + 1] = atlas->TexPixelsRGBA32[offset + w] = atlas->TexPixelsRGBA32[offset + w + 1] = IM_COL32_WHITE; + } + } + atlas->TexUvWhitePixel = ImVec2((r->X + 0.5f) * atlas->TexUvScale.x, (r->Y + 0.5f) * atlas->TexUvScale.y); +} + +static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) +{ + if (atlas->Flags & ImFontAtlasFlags_NoBakedLines) + return; + + // This generates a triangular shape in the texture, with the various line widths stacked on top of each other to allow interpolation between them + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdLines); + IM_ASSERT(r->IsPacked()); + for (unsigned int n = 0; n < IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1; n++) // +1 because of the zero-width row + { + // Each line consists of at least two empty pixels at the ends, with a line of solid pixels in the middle + unsigned int y = n; + unsigned int line_width = n; + unsigned int pad_left = (r->Width - line_width) / 2; + unsigned int pad_right = r->Width - (pad_left + line_width); + + // Write each slice + IM_ASSERT(pad_left + line_width + pad_right == r->Width && y < r->Height); // Make sure we're inside the texture bounds before we start writing pixels + if (atlas->TexPixelsAlpha8 != NULL) + { + unsigned char* write_ptr = &atlas->TexPixelsAlpha8[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = 0x00; + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = 0xFF; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = 0x00; + } + else + { + unsigned int* write_ptr = &atlas->TexPixelsRGBA32[r->X + ((r->Y + y) * atlas->TexWidth)]; + for (unsigned int i = 0; i < pad_left; i++) + *(write_ptr + i) = IM_COL32(255, 255, 255, 0); + + for (unsigned int i = 0; i < line_width; i++) + *(write_ptr + pad_left + i) = IM_COL32_WHITE; + + for (unsigned int i = 0; i < pad_right; i++) + *(write_ptr + pad_left + line_width + i) = IM_COL32(255, 255, 255, 0); + } + + // Calculate UVs for this line + ImVec2 uv0 = ImVec2((float)(r->X + pad_left - 1), (float)(r->Y + y)) * atlas->TexUvScale; + ImVec2 uv1 = ImVec2((float)(r->X + pad_left + line_width + 1), (float)(r->Y + y + 1)) * atlas->TexUvScale; + float half_v = (uv0.y + uv1.y) * 0.5f; // Calculate a constant V in the middle of the row to avoid sampling artifacts + atlas->TexUvLines[n] = ImVec4(uv0.x, half_v, uv1.x, half_v); + } +} + +// Note: this is called / shared by both the stb_truetype and the FreeType builder +void ImFontAtlasBuildInit(ImFontAtlas* atlas) +{ + // Round font size + // - We started rounding in 1.90 WIP (18991) as our layout system currently doesn't support non-rounded font size well yet. + // - Note that using io.FontGlobalScale or SetWindowFontScale(), with are legacy-ish, partially supported features, can still lead to unrounded sizes. + // - We may support it better later and remove this rounding. + for (ImFontConfig& cfg : atlas->ConfigData) + cfg.SizePixels = ImFloor(cfg.SizePixels); + + // Register texture region for mouse cursors or standard white pixels + if (atlas->PackIdMouseCursors < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1, FONT_ATLAS_DEFAULT_TEX_DATA_H); + else + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(2, 2); + } + + // Register texture region for thick lines + // The +2 here is to give space for the end caps, whilst height +1 is to accommodate the fact we have a zero-width row + if (atlas->PackIdLines < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoBakedLines)) + atlas->PackIdLines = atlas->AddCustomRectRegular(IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 2, IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1); + } +} + +// This is called/shared by both the stb_truetype and the FreeType builder. +void ImFontAtlasBuildFinish(ImFontAtlas* atlas) +{ + // Render into our custom data blocks + IM_ASSERT(atlas->TexPixelsAlpha8 != NULL || atlas->TexPixelsRGBA32 != NULL); + ImFontAtlasBuildRenderDefaultTexData(atlas); + ImFontAtlasBuildRenderLinesTexData(atlas); + + // Register custom rectangle glyphs + for (int i = 0; i < atlas->CustomRects.Size; i++) + { + const ImFontAtlasCustomRect* r = &atlas->CustomRects[i]; + if (r->Font == NULL || r->GlyphID == 0) + continue; + + // Will ignore ImFontConfig settings: GlyphMinAdvanceX, GlyphMinAdvanceY, GlyphExtraSpacing, PixelSnapH + IM_ASSERT(r->Font->ContainerAtlas == atlas); + ImVec2 uv0, uv1; + atlas->CalcCustomRectUV(r, &uv0, &uv1); + r->Font->AddGlyph(NULL, (ImWchar)r->GlyphID, r->GlyphOffset.x, r->GlyphOffset.y, r->GlyphOffset.x + r->Width, r->GlyphOffset.y + r->Height, uv0.x, uv0.y, uv1.x, uv1.y, r->GlyphAdvanceX); + } + + // Build all fonts lookup tables + for (ImFont* font : atlas->Fonts) + if (font->DirtyLookupTables) + font->BuildLookupTable(); + + atlas->TexReady = true; +} + +// Retrieve list of range (2 int per range, values are inclusive) +const ImWchar* ImFontAtlas::GetGlyphRangesDefault() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesGreek() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0370, 0x03FF, // Greek and Coptic + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesKorean() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3131, 0x3163, // Korean alphabets + 0xAC00, 0xD7A3, // Korean characters + 0xFFFD, 0xFFFD, // Invalid + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD, // Invalid + 0x4e00, 0x9FAF, // CJK Ideograms + 0, + }; + return &ranges[0]; +} + +static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges) +{ + for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2) + { + out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]); + base_codepoint += accumulative_offsets[n]; + } + out_ranges[0] = 0; +} + +//------------------------------------------------------------------------- +// [SECTION] ImFontAtlas glyph ranges helpers +//------------------------------------------------------------------------- + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon() +{ + // Store 2500 regularly used characters for Simplified Chinese. + // Sourced from https://zh.wiktionary.org/wiki/%E9%99%84%E5%BD%95:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8 + // This table covers 97.97% of all characters used during the month in July, 1987. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,2,1,2,2,1,1,1,1,1,5,2,1,2,3,3,3,2,2,4,1,1,1,2,1,5,2,3,1,2,1,2,1,1,2,1,1,2,2,1,4,1,1,1,1,5,10,1,2,19,2,1,2,1,2,1,2,1,2, + 1,5,1,6,3,2,1,2,2,1,1,1,4,8,5,1,1,4,1,1,3,1,2,1,5,1,2,1,1,1,10,1,1,5,2,4,6,1,4,2,2,2,12,2,1,1,6,1,1,1,4,1,1,4,6,5,1,4,2,2,4,10,7,1,1,4,2,4, + 2,1,4,3,6,10,12,5,7,2,14,2,9,1,1,6,7,10,4,7,13,1,5,4,8,4,1,1,2,28,5,6,1,1,5,2,5,20,2,2,9,8,11,2,9,17,1,8,6,8,27,4,6,9,20,11,27,6,68,2,2,1,1, + 1,2,1,2,2,7,6,11,3,3,1,1,3,1,2,1,1,1,1,1,3,1,1,8,3,4,1,5,7,2,1,4,4,8,4,2,1,2,1,1,4,5,6,3,6,2,12,3,1,3,9,2,4,3,4,1,5,3,3,1,3,7,1,5,1,1,1,1,2, + 3,4,5,2,3,2,6,1,1,2,1,7,1,7,3,4,5,15,2,2,1,5,3,22,19,2,1,1,1,1,2,5,1,1,1,6,1,1,12,8,2,9,18,22,4,1,1,5,1,16,1,2,7,10,15,1,1,6,2,4,1,2,4,1,6, + 1,1,3,2,4,1,6,4,5,1,2,1,1,2,1,10,3,1,3,2,1,9,3,2,5,7,2,19,4,3,6,1,1,1,1,1,4,3,2,1,1,1,2,5,3,1,1,1,2,2,1,1,2,1,1,2,1,3,1,1,1,3,7,1,4,1,1,2,1, + 1,2,1,2,4,4,3,8,1,1,1,2,1,3,5,1,3,1,3,4,6,2,2,14,4,6,6,11,9,1,15,3,1,28,5,2,5,5,3,1,3,4,5,4,6,14,3,2,3,5,21,2,7,20,10,1,2,19,2,4,28,28,2,3, + 2,1,14,4,1,26,28,42,12,40,3,52,79,5,14,17,3,2,2,11,3,4,6,3,1,8,2,23,4,5,8,10,4,2,7,3,5,1,1,6,3,1,2,2,2,5,28,1,1,7,7,20,5,3,29,3,17,26,1,8,4, + 27,3,6,11,23,5,3,4,6,13,24,16,6,5,10,25,35,7,3,2,3,3,14,3,6,2,6,1,4,2,3,8,2,1,1,3,3,3,4,1,1,13,2,2,4,5,2,1,14,14,1,2,2,1,4,5,2,3,1,14,3,12, + 3,17,2,16,5,1,2,1,8,9,3,19,4,2,2,4,17,25,21,20,28,75,1,10,29,103,4,1,2,1,1,4,2,4,1,2,3,24,2,2,2,1,1,2,1,3,8,1,1,1,2,1,1,3,1,1,1,6,1,5,3,1,1, + 1,3,4,1,1,5,2,1,5,6,13,9,16,1,1,1,1,3,2,3,2,4,5,2,5,2,2,3,7,13,7,2,2,1,1,1,1,2,3,3,2,1,6,4,9,2,1,14,2,14,2,1,18,3,4,14,4,11,41,15,23,15,23, + 176,1,3,4,1,1,1,1,5,3,1,2,3,7,3,1,1,2,1,2,4,4,6,2,4,1,9,7,1,10,5,8,16,29,1,1,2,2,3,1,3,5,2,4,5,4,1,1,2,2,3,3,7,1,6,10,1,17,1,44,4,6,2,1,1,6, + 5,4,2,10,1,6,9,2,8,1,24,1,2,13,7,8,8,2,1,4,1,3,1,3,3,5,2,5,10,9,4,9,12,2,1,6,1,10,1,1,7,7,4,10,8,3,1,13,4,3,1,6,1,3,5,2,1,2,17,16,5,2,16,6, + 1,4,2,1,3,3,6,8,5,11,11,1,3,3,2,4,6,10,9,5,7,4,7,4,7,1,1,4,2,1,3,6,8,7,1,6,11,5,5,3,24,9,4,2,7,13,5,1,8,82,16,61,1,1,1,4,2,2,16,10,3,8,1,1, + 6,4,2,1,3,1,1,1,4,3,8,4,2,2,1,1,1,1,1,6,3,5,1,1,4,6,9,2,1,1,1,2,1,7,2,1,6,1,5,4,4,3,1,8,1,3,3,1,3,2,2,2,2,3,1,6,1,2,1,2,1,3,7,1,8,2,1,2,1,5, + 2,5,3,5,10,1,2,1,1,3,2,5,11,3,9,3,5,1,1,5,9,1,2,1,5,7,9,9,8,1,3,3,3,6,8,2,3,2,1,1,32,6,1,2,15,9,3,7,13,1,3,10,13,2,14,1,13,10,2,1,3,10,4,15, + 2,15,15,10,1,3,9,6,9,32,25,26,47,7,3,2,3,1,6,3,4,3,2,8,5,4,1,9,4,2,2,19,10,6,2,3,8,1,2,2,4,2,1,9,4,4,4,6,4,8,9,2,3,1,1,1,1,3,5,5,1,3,8,4,6, + 2,1,4,12,1,5,3,7,13,2,5,8,1,6,1,2,5,14,6,1,5,2,4,8,15,5,1,23,6,62,2,10,1,1,8,1,2,2,10,4,2,2,9,2,1,1,3,2,3,1,5,3,3,2,1,3,8,1,1,1,11,3,1,1,4, + 3,7,1,14,1,2,3,12,5,2,5,1,6,7,5,7,14,11,1,3,1,8,9,12,2,1,11,8,4,4,2,6,10,9,13,1,1,3,1,5,1,3,2,4,4,1,18,2,3,14,11,4,29,4,2,7,1,3,13,9,2,2,5, + 3,5,20,7,16,8,5,72,34,6,4,22,12,12,28,45,36,9,7,39,9,191,1,1,1,4,11,8,4,9,2,3,22,1,1,1,1,4,17,1,7,7,1,11,31,10,2,4,8,2,3,2,1,4,2,16,4,32,2, + 3,19,13,4,9,1,5,2,14,8,1,1,3,6,19,6,5,1,16,6,2,10,8,5,1,2,3,1,5,5,1,11,6,6,1,3,3,2,6,3,8,1,1,4,10,7,5,7,7,5,8,9,2,1,3,4,1,1,3,1,3,3,2,6,16, + 1,4,6,3,1,10,6,1,3,15,2,9,2,10,25,13,9,16,6,2,2,10,11,4,3,9,1,2,6,6,5,4,30,40,1,10,7,12,14,33,6,3,6,7,3,1,3,1,11,14,4,9,5,12,11,49,18,51,31, + 140,31,2,2,1,5,1,8,1,10,1,4,4,3,24,1,10,1,3,6,6,16,3,4,5,2,1,4,2,57,10,6,22,2,22,3,7,22,6,10,11,36,18,16,33,36,2,5,5,1,1,1,4,10,1,4,13,2,7, + 5,2,9,3,4,1,7,43,3,7,3,9,14,7,9,1,11,1,1,3,7,4,18,13,1,14,1,3,6,10,73,2,2,30,6,1,11,18,19,13,22,3,46,42,37,89,7,3,16,34,2,2,3,9,1,7,1,1,1,2, + 2,4,10,7,3,10,3,9,5,28,9,2,6,13,7,3,1,3,10,2,7,2,11,3,6,21,54,85,2,1,4,2,2,1,39,3,21,2,2,5,1,1,1,4,1,1,3,4,15,1,3,2,4,4,2,3,8,2,20,1,8,7,13, + 4,1,26,6,2,9,34,4,21,52,10,4,4,1,5,12,2,11,1,7,2,30,12,44,2,30,1,1,3,6,16,9,17,39,82,2,2,24,7,1,7,3,16,9,14,44,2,1,2,1,2,3,5,2,4,1,6,7,5,3, + 2,6,1,11,5,11,2,1,18,19,8,1,3,24,29,2,1,3,5,2,2,1,13,6,5,1,46,11,3,5,1,1,5,8,2,10,6,12,6,3,7,11,2,4,16,13,2,5,1,1,2,2,5,2,28,5,2,23,10,8,4, + 4,22,39,95,38,8,14,9,5,1,13,5,4,3,13,12,11,1,9,1,27,37,2,5,4,4,63,211,95,2,2,2,1,3,5,2,1,1,2,2,1,1,1,3,2,4,1,2,1,1,5,2,2,1,1,2,3,1,3,1,1,1, + 3,1,4,2,1,3,6,1,1,3,7,15,5,3,2,5,3,9,11,4,2,22,1,6,3,8,7,1,4,28,4,16,3,3,25,4,4,27,27,1,4,1,2,2,7,1,3,5,2,28,8,2,14,1,8,6,16,25,3,3,3,14,3, + 3,1,1,2,1,4,6,3,8,4,1,1,1,2,3,6,10,6,2,3,18,3,2,5,5,4,3,1,5,2,5,4,23,7,6,12,6,4,17,11,9,5,1,1,10,5,12,1,1,11,26,33,7,3,6,1,17,7,1,5,12,1,11, + 2,4,1,8,14,17,23,1,2,1,7,8,16,11,9,6,5,2,6,4,16,2,8,14,1,11,8,9,1,1,1,9,25,4,11,19,7,2,15,2,12,8,52,7,5,19,2,16,4,36,8,1,16,8,24,26,4,6,2,9, + 5,4,36,3,28,12,25,15,37,27,17,12,59,38,5,32,127,1,2,9,17,14,4,1,2,1,1,8,11,50,4,14,2,19,16,4,17,5,4,5,26,12,45,2,23,45,104,30,12,8,3,10,2,2, + 3,3,1,4,20,7,2,9,6,15,2,20,1,3,16,4,11,15,6,134,2,5,59,1,2,2,2,1,9,17,3,26,137,10,211,59,1,2,4,1,4,1,1,1,2,6,2,3,1,1,2,3,2,3,1,3,4,4,2,3,3, + 1,4,3,1,7,2,2,3,1,2,1,3,3,3,2,2,3,2,1,3,14,6,1,3,2,9,6,15,27,9,34,145,1,1,2,1,1,1,1,2,1,1,1,1,2,2,2,3,1,2,1,1,1,2,3,5,8,3,5,2,4,1,3,2,2,2,12, + 4,1,1,1,10,4,5,1,20,4,16,1,15,9,5,12,2,9,2,5,4,2,26,19,7,1,26,4,30,12,15,42,1,6,8,172,1,1,4,2,1,1,11,2,2,4,2,1,2,1,10,8,1,2,1,4,5,1,2,5,1,8, + 4,1,3,4,2,1,6,2,1,3,4,1,2,1,1,1,1,12,5,7,2,4,3,1,1,1,3,3,6,1,2,2,3,3,3,2,1,2,12,14,11,6,6,4,12,2,8,1,7,10,1,35,7,4,13,15,4,3,23,21,28,52,5, + 26,5,6,1,7,10,2,7,53,3,2,1,1,1,2,163,532,1,10,11,1,3,3,4,8,2,8,6,2,2,23,22,4,2,2,4,2,1,3,1,3,3,5,9,8,2,1,2,8,1,10,2,12,21,20,15,105,2,3,1,1, + 3,2,3,1,1,2,5,1,4,15,11,19,1,1,1,1,5,4,5,1,1,2,5,3,5,12,1,2,5,1,11,1,1,15,9,1,4,5,3,26,8,2,1,3,1,1,15,19,2,12,1,2,5,2,7,2,19,2,20,6,26,7,5, + 2,2,7,34,21,13,70,2,128,1,1,2,1,1,2,1,1,3,2,2,2,15,1,4,1,3,4,42,10,6,1,49,85,8,1,2,1,1,4,4,2,3,6,1,5,7,4,3,211,4,1,2,1,2,5,1,2,4,2,2,6,5,6, + 10,3,4,48,100,6,2,16,296,5,27,387,2,2,3,7,16,8,5,38,15,39,21,9,10,3,7,59,13,27,21,47,5,21,6 + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00) * 2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesJapanese() +{ + // 2999 ideograms code points for Japanese + // - 2136 Joyo (meaning "for regular use" or "for common use") Kanji code points + // - 863 Jinmeiyo (meaning "for personal name") Kanji code points + // - Sourced from official information provided by the government agencies of Japan: + // - List of Joyo Kanji by the Agency for Cultural Affairs + // - https://www.bunka.go.jp/kokugo_nihongo/sisaku/joho/joho/kijun/naikaku/kanji/ + // - List of Jinmeiyo Kanji by the Ministry of Justice + // - http://www.moj.go.jp/MINJI/minji86.html + // - Available under the terms of the Creative Commons Attribution 4.0 International (CC BY 4.0). + // - https://creativecommons.org/licenses/by/4.0/legalcode + // - You can generate this code by the script at: + // - https://github.com/vaiorabbit/everyday_use_kanji + // - References: + // - List of Joyo Kanji + // - (Wikipedia) https://en.wikipedia.org/wiki/List_of_j%C5%8Dy%C5%8D_kanji + // - List of Jinmeiyo Kanji + // - (Wikipedia) https://en.wikipedia.org/wiki/Jinmeiy%C5%8D_kanji + // - Missing 1 Joyo Kanji: U+20B9F (Kun'yomi: Shikaru, On'yomi: Shitsu,shichi), see https://github.com/ocornut/imgui/pull/3627 for details. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,3,2,2,1,5,3,5,7,5,6,1,2,1,7,2,6,3,1,8,1,1,4,1,1,18,2,11,2,6,2,1,2,1,5,1,2,1,3,1,2,1,2,3,3,1,1,2,3,1,1,1,12,7,9,1,4,5,1, + 1,2,1,10,1,1,9,2,2,4,5,6,9,3,1,1,1,1,9,3,18,5,2,2,2,2,1,6,3,7,1,1,1,1,2,2,4,2,1,23,2,10,4,3,5,2,4,10,2,4,13,1,6,1,9,3,1,1,6,6,7,6,3,1,2,11,3, + 2,2,3,2,15,2,2,5,4,3,6,4,1,2,5,2,12,16,6,13,9,13,2,1,1,7,16,4,7,1,19,1,5,1,2,2,7,7,8,2,6,5,4,9,18,7,4,5,9,13,11,8,15,2,1,1,1,2,1,2,2,1,2,2,8, + 2,9,3,3,1,1,4,4,1,1,1,4,9,1,4,3,5,5,2,7,5,3,4,8,2,1,13,2,3,3,1,14,1,1,4,5,1,3,6,1,5,2,1,1,3,3,3,3,1,1,2,7,6,6,7,1,4,7,6,1,1,1,1,1,12,3,3,9,5, + 2,6,1,5,6,1,2,3,18,2,4,14,4,1,3,6,1,1,6,3,5,5,3,2,2,2,2,12,3,1,4,2,3,2,3,11,1,7,4,1,2,1,3,17,1,9,1,24,1,1,4,2,2,4,1,2,7,1,1,1,3,1,2,2,4,15,1, + 1,2,1,1,2,1,5,2,5,20,2,5,9,1,10,8,7,6,1,1,1,1,1,1,6,2,1,2,8,1,1,1,1,5,1,1,3,1,1,1,1,3,1,1,12,4,1,3,1,1,1,1,1,10,3,1,7,5,13,1,2,3,4,6,1,1,30, + 2,9,9,1,15,38,11,3,1,8,24,7,1,9,8,10,2,1,9,31,2,13,6,2,9,4,49,5,2,15,2,1,10,2,1,1,1,2,2,6,15,30,35,3,14,18,8,1,16,10,28,12,19,45,38,1,3,2,3, + 13,2,1,7,3,6,5,3,4,3,1,5,7,8,1,5,3,18,5,3,6,1,21,4,24,9,24,40,3,14,3,21,3,2,1,2,4,2,3,1,15,15,6,5,1,1,3,1,5,6,1,9,7,3,3,2,1,4,3,8,21,5,16,4, + 5,2,10,11,11,3,6,3,2,9,3,6,13,1,2,1,1,1,1,11,12,6,6,1,4,2,6,5,2,1,1,3,3,6,13,3,1,1,5,1,2,3,3,14,2,1,2,2,2,5,1,9,5,1,1,6,12,3,12,3,4,13,2,14, + 2,8,1,17,5,1,16,4,2,2,21,8,9,6,23,20,12,25,19,9,38,8,3,21,40,25,33,13,4,3,1,4,1,2,4,1,2,5,26,2,1,1,2,1,3,6,2,1,1,1,1,1,1,2,3,1,1,1,9,2,3,1,1, + 1,3,6,3,2,1,1,6,6,1,8,2,2,2,1,4,1,2,3,2,7,3,2,4,1,2,1,2,2,1,1,1,1,1,3,1,2,5,4,10,9,4,9,1,1,1,1,1,1,5,3,2,1,6,4,9,6,1,10,2,31,17,8,3,7,5,40,1, + 7,7,1,6,5,2,10,7,8,4,15,39,25,6,28,47,18,10,7,1,3,1,1,2,1,1,1,3,3,3,1,1,1,3,4,2,1,4,1,3,6,10,7,8,6,2,2,1,3,3,2,5,8,7,9,12,2,15,1,1,4,1,2,1,1, + 1,3,2,1,3,3,5,6,2,3,2,10,1,4,2,8,1,1,1,11,6,1,21,4,16,3,1,3,1,4,2,3,6,5,1,3,1,1,3,3,4,6,1,1,10,4,2,7,10,4,7,4,2,9,4,3,1,1,1,4,1,8,3,4,1,3,1, + 6,1,4,2,1,4,7,2,1,8,1,4,5,1,1,2,2,4,6,2,7,1,10,1,1,3,4,11,10,8,21,4,6,1,3,5,2,1,2,28,5,5,2,3,13,1,2,3,1,4,2,1,5,20,3,8,11,1,3,3,3,1,8,10,9,2, + 10,9,2,3,1,1,2,4,1,8,3,6,1,7,8,6,11,1,4,29,8,4,3,1,2,7,13,1,4,1,6,2,6,12,12,2,20,3,2,3,6,4,8,9,2,7,34,5,1,18,6,1,1,4,4,5,7,9,1,2,2,4,3,4,1,7, + 2,2,2,6,2,3,25,5,3,6,1,4,6,7,4,2,1,4,2,13,6,4,4,3,1,5,3,4,4,3,2,1,1,4,1,2,1,1,3,1,11,1,6,3,1,7,3,6,2,8,8,6,9,3,4,11,3,2,10,12,2,5,11,1,6,4,5, + 3,1,8,5,4,6,6,3,5,1,1,3,2,1,2,2,6,17,12,1,10,1,6,12,1,6,6,19,9,6,16,1,13,4,4,15,7,17,6,11,9,15,12,6,7,2,1,2,2,15,9,3,21,4,6,49,18,7,3,2,3,1, + 6,8,2,2,6,2,9,1,3,6,4,4,1,2,16,2,5,2,1,6,2,3,5,3,1,2,5,1,2,1,9,3,1,8,6,4,8,11,3,1,1,1,1,3,1,13,8,4,1,3,2,2,1,4,1,11,1,5,2,1,5,2,5,8,6,1,1,7, + 4,3,8,3,2,7,2,1,5,1,5,2,4,7,6,2,8,5,1,11,4,5,3,6,18,1,2,13,3,3,1,21,1,1,4,1,4,1,1,1,8,1,2,2,7,1,2,4,2,2,9,2,1,1,1,4,3,6,3,12,5,1,1,1,5,6,3,2, + 4,8,2,2,4,2,7,1,8,9,5,2,3,2,1,3,2,13,7,14,6,5,1,1,2,1,4,2,23,2,1,1,6,3,1,4,1,15,3,1,7,3,9,14,1,3,1,4,1,1,5,8,1,3,8,3,8,15,11,4,14,4,4,2,5,5, + 1,7,1,6,14,7,7,8,5,15,4,8,6,5,6,2,1,13,1,20,15,11,9,2,5,6,2,11,2,6,2,5,1,5,8,4,13,19,25,4,1,1,11,1,34,2,5,9,14,6,2,2,6,1,1,14,1,3,14,13,1,6, + 12,21,14,14,6,32,17,8,32,9,28,1,2,4,11,8,3,1,14,2,5,15,1,1,1,1,3,6,4,1,3,4,11,3,1,1,11,30,1,5,1,4,1,5,8,1,1,3,2,4,3,17,35,2,6,12,17,3,1,6,2, + 1,1,12,2,7,3,3,2,1,16,2,8,3,6,5,4,7,3,3,8,1,9,8,5,1,2,1,3,2,8,1,2,9,12,1,1,2,3,8,3,24,12,4,3,7,5,8,3,3,3,3,3,3,1,23,10,3,1,2,2,6,3,1,16,1,16, + 22,3,10,4,11,6,9,7,7,3,6,2,2,2,4,10,2,1,1,2,8,7,1,6,4,1,3,3,3,5,10,12,12,2,3,12,8,15,1,1,16,6,6,1,5,9,11,4,11,4,2,6,12,1,17,5,13,1,4,9,5,1,11, + 2,1,8,1,5,7,28,8,3,5,10,2,17,3,38,22,1,2,18,12,10,4,38,18,1,4,44,19,4,1,8,4,1,12,1,4,31,12,1,14,7,75,7,5,10,6,6,13,3,2,11,11,3,2,5,28,15,6,18, + 18,5,6,4,3,16,1,7,18,7,36,3,5,3,1,7,1,9,1,10,7,2,4,2,6,2,9,7,4,3,32,12,3,7,10,2,23,16,3,1,12,3,31,4,11,1,3,8,9,5,1,30,15,6,12,3,2,2,11,19,9, + 14,2,6,2,3,19,13,17,5,3,3,25,3,14,1,1,1,36,1,3,2,19,3,13,36,9,13,31,6,4,16,34,2,5,4,2,3,3,5,1,1,1,4,3,1,17,3,2,3,5,3,1,3,2,3,5,6,3,12,11,1,3, + 1,2,26,7,12,7,2,14,3,3,7,7,11,25,25,28,16,4,36,1,2,1,6,2,1,9,3,27,17,4,3,4,13,4,1,3,2,2,1,10,4,2,4,6,3,8,2,1,18,1,1,24,2,2,4,33,2,3,63,7,1,6, + 40,7,3,4,4,2,4,15,18,1,16,1,1,11,2,41,14,1,3,18,13,3,2,4,16,2,17,7,15,24,7,18,13,44,2,2,3,6,1,1,7,5,1,7,1,4,3,3,5,10,8,2,3,1,8,1,1,27,4,2,1, + 12,1,2,1,10,6,1,6,7,5,2,3,7,11,5,11,3,6,6,2,3,15,4,9,1,1,2,1,2,11,2,8,12,8,5,4,2,3,1,5,2,2,1,14,1,12,11,4,1,11,17,17,4,3,2,5,5,7,3,1,5,9,9,8, + 2,5,6,6,13,13,2,1,2,6,1,2,2,49,4,9,1,2,10,16,7,8,4,3,2,23,4,58,3,29,1,14,19,19,11,11,2,7,5,1,3,4,6,2,18,5,12,12,17,17,3,3,2,4,1,6,2,3,4,3,1, + 1,1,1,5,1,1,9,1,3,1,3,6,1,8,1,1,2,6,4,14,3,1,4,11,4,1,3,32,1,2,4,13,4,1,2,4,2,1,3,1,11,1,4,2,1,4,4,6,3,5,1,6,5,7,6,3,23,3,5,3,5,3,3,13,3,9,10, + 1,12,10,2,3,18,13,7,160,52,4,2,2,3,2,14,5,4,12,4,6,4,1,20,4,11,6,2,12,27,1,4,1,2,2,7,4,5,2,28,3,7,25,8,3,19,3,6,10,2,2,1,10,2,5,4,1,3,4,1,5, + 3,2,6,9,3,6,2,16,3,3,16,4,5,5,3,2,1,2,16,15,8,2,6,21,2,4,1,22,5,8,1,1,21,11,2,1,11,11,19,13,12,4,2,3,2,3,6,1,8,11,1,4,2,9,5,2,1,11,2,9,1,1,2, + 14,31,9,3,4,21,14,4,8,1,7,2,2,2,5,1,4,20,3,3,4,10,1,11,9,8,2,1,4,5,14,12,14,2,17,9,6,31,4,14,1,20,13,26,5,2,7,3,6,13,2,4,2,19,6,2,2,18,9,3,5, + 12,12,14,4,6,2,3,6,9,5,22,4,5,25,6,4,8,5,2,6,27,2,35,2,16,3,7,8,8,6,6,5,9,17,2,20,6,19,2,13,3,1,1,1,4,17,12,2,14,7,1,4,18,12,38,33,2,10,1,1, + 2,13,14,17,11,50,6,33,20,26,74,16,23,45,50,13,38,33,6,6,7,4,4,2,1,3,2,5,8,7,8,9,3,11,21,9,13,1,3,10,6,7,1,2,2,18,5,5,1,9,9,2,68,9,19,13,2,5, + 1,4,4,7,4,13,3,9,10,21,17,3,26,2,1,5,2,4,5,4,1,7,4,7,3,4,2,1,6,1,1,20,4,1,9,2,2,1,3,3,2,3,2,1,1,1,20,2,3,1,6,2,3,6,2,4,8,1,3,2,10,3,5,3,4,4, + 3,4,16,1,6,1,10,2,4,2,1,1,2,10,11,2,2,3,1,24,31,4,10,10,2,5,12,16,164,15,4,16,7,9,15,19,17,1,2,1,1,5,1,1,1,1,1,3,1,4,3,1,3,1,3,1,2,1,1,3,3,7, + 2,8,1,2,2,2,1,3,4,3,7,8,12,92,2,10,3,1,3,14,5,25,16,42,4,7,7,4,2,21,5,27,26,27,21,25,30,31,2,1,5,13,3,22,5,6,6,11,9,12,1,5,9,7,5,5,22,60,3,5, + 13,1,1,8,1,1,3,3,2,1,9,3,3,18,4,1,2,3,7,6,3,1,2,3,9,1,3,1,3,2,1,3,1,1,1,2,1,11,3,1,6,9,1,3,2,3,1,2,1,5,1,1,4,3,4,1,2,2,4,4,1,7,2,1,2,2,3,5,13, + 18,3,4,14,9,9,4,16,3,7,5,8,2,6,48,28,3,1,1,4,2,14,8,2,9,2,1,15,2,4,3,2,10,16,12,8,7,1,1,3,1,1,1,2,7,4,1,6,4,38,39,16,23,7,15,15,3,2,12,7,21, + 37,27,6,5,4,8,2,10,8,8,6,5,1,2,1,3,24,1,16,17,9,23,10,17,6,1,51,55,44,13,294,9,3,6,2,4,2,2,15,1,1,1,13,21,17,68,14,8,9,4,1,4,9,3,11,7,1,1,1, + 5,6,3,2,1,1,1,2,3,8,1,2,2,4,1,5,5,2,1,4,3,7,13,4,1,4,1,3,1,1,1,5,5,10,1,6,1,5,2,1,5,2,4,1,4,5,7,3,18,2,9,11,32,4,3,3,2,4,7,11,16,9,11,8,13,38, + 32,8,4,2,1,1,2,1,2,4,4,1,1,1,4,1,21,3,11,1,16,1,1,6,1,3,2,4,9,8,57,7,44,1,3,3,13,3,10,1,1,7,5,2,7,21,47,63,3,15,4,7,1,16,1,1,2,8,2,3,42,15,4, + 1,29,7,22,10,3,78,16,12,20,18,4,67,11,5,1,3,15,6,21,31,32,27,18,13,71,35,5,142,4,10,1,2,50,19,33,16,35,37,16,19,27,7,1,133,19,1,4,8,7,20,1,4, + 4,1,10,3,1,6,1,2,51,5,40,15,24,43,22928,11,1,13,154,70,3,1,1,7,4,10,1,2,1,1,2,1,2,1,2,2,1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1, + 3,2,1,1,1,1,2,1,1, + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0xFFFD, 0xFFFD // Invalid + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00)*2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0400, 0x052F, // Cyrillic + Cyrillic Supplement + 0x2DE0, 0x2DFF, // Cyrillic Extended-A + 0xA640, 0xA69F, // Cyrillic Extended-B + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesThai() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x2010, 0x205E, // Punctuations + 0x0E00, 0x0E7F, // Thai + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesVietnamese() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x0102, 0x0103, + 0x0110, 0x0111, + 0x0128, 0x0129, + 0x0168, 0x0169, + 0x01A0, 0x01A1, + 0x01AF, 0x01B0, + 0x1EA0, 0x1EF9, + 0, + }; + return &ranges[0]; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontGlyphRangesBuilder +//----------------------------------------------------------------------------- + +void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end) +{ + while (text_end ? (text < text_end) : *text) + { + unsigned int c = 0; + int c_len = ImTextCharFromUtf8(&c, text, text_end); + text += c_len; + if (c_len == 0) + break; + AddChar((ImWchar)c); + } +} + +void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges) +{ + for (; ranges[0]; ranges += 2) + for (unsigned int c = ranges[0]; c <= ranges[1] && c <= IM_UNICODE_CODEPOINT_MAX; c++) //-V560 + AddChar((ImWchar)c); +} + +void ImFontGlyphRangesBuilder::BuildRanges(ImVector* out_ranges) +{ + const int max_codepoint = IM_UNICODE_CODEPOINT_MAX; + for (int n = 0; n <= max_codepoint; n++) + if (GetBit(n)) + { + out_ranges->push_back((ImWchar)n); + while (n < max_codepoint && GetBit(n + 1)) + n++; + out_ranges->push_back((ImWchar)n); + } + out_ranges->push_back(0); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFont +//----------------------------------------------------------------------------- + +ImFont::ImFont() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + FallbackChar = (ImWchar)-1; + EllipsisChar = (ImWchar)-1; + EllipsisWidth = EllipsisCharStep = 0.0f; + EllipsisCharCount = 0; + FallbackGlyph = NULL; + ContainerAtlas = NULL; + ConfigData = NULL; + ConfigDataCount = 0; + DirtyLookupTables = false; + Scale = 1.0f; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); +} + +ImFont::~ImFont() +{ + ClearOutputData(); +} + +void ImFont::ClearOutputData() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + Glyphs.clear(); + IndexAdvanceX.clear(); + IndexLookup.clear(); + FallbackGlyph = NULL; + ContainerAtlas = NULL; + DirtyLookupTables = true; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; +} + +static ImWchar FindFirstExistingGlyph(ImFont* font, const ImWchar* candidate_chars, int candidate_chars_count) +{ + for (int n = 0; n < candidate_chars_count; n++) + if (font->FindGlyphNoFallback(candidate_chars[n]) != NULL) + return candidate_chars[n]; + return (ImWchar)-1; +} + +void ImFont::BuildLookupTable() +{ + int max_codepoint = 0; + for (int i = 0; i != Glyphs.Size; i++) + max_codepoint = ImMax(max_codepoint, (int)Glyphs[i].Codepoint); + + // Build lookup table + IM_ASSERT(Glyphs.Size > 0 && "Font has not loaded glyph!"); + IM_ASSERT(Glyphs.Size < 0xFFFF); // -1 is reserved + IndexAdvanceX.clear(); + IndexLookup.clear(); + DirtyLookupTables = false; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); + GrowIndex(max_codepoint + 1); + for (int i = 0; i < Glyphs.Size; i++) + { + int codepoint = (int)Glyphs[i].Codepoint; + IndexAdvanceX[codepoint] = Glyphs[i].AdvanceX; + IndexLookup[codepoint] = (ImWchar)i; + + // Mark 4K page as used + const int page_n = codepoint / 4096; + Used4kPagesMap[page_n >> 3] |= 1 << (page_n & 7); + } + + // Create a glyph to handle TAB + // FIXME: Needs proper TAB handling but it needs to be contextualized (or we could arbitrary say that each string starts at "column 0" ?) + if (FindGlyph((ImWchar)' ')) + { + if (Glyphs.back().Codepoint != '\t') // So we can call this function multiple times (FIXME: Flaky) + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& tab_glyph = Glyphs.back(); + tab_glyph = *FindGlyph((ImWchar)' '); + tab_glyph.Codepoint = '\t'; + tab_glyph.AdvanceX *= IM_TABSIZE; + IndexAdvanceX[(int)tab_glyph.Codepoint] = (float)tab_glyph.AdvanceX; + IndexLookup[(int)tab_glyph.Codepoint] = (ImWchar)(Glyphs.Size - 1); + } + + // Mark special glyphs as not visible (note that AddGlyph already mark as non-visible glyphs with zero-size polygons) + SetGlyphVisible((ImWchar)' ', false); + SetGlyphVisible((ImWchar)'\t', false); + + // Setup Fallback character + const ImWchar fallback_chars[] = { (ImWchar)IM_UNICODE_CODEPOINT_INVALID, (ImWchar)'?', (ImWchar)' ' }; + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackChar = FindFirstExistingGlyph(this, fallback_chars, IM_ARRAYSIZE(fallback_chars)); + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + if (FallbackGlyph == NULL) + { + FallbackGlyph = &Glyphs.back(); + FallbackChar = (ImWchar)FallbackGlyph->Codepoint; + } + } + FallbackAdvanceX = FallbackGlyph->AdvanceX; + for (int i = 0; i < max_codepoint + 1; i++) + if (IndexAdvanceX[i] < 0.0f) + IndexAdvanceX[i] = FallbackAdvanceX; + + // Setup Ellipsis character. It is required for rendering elided text. We prefer using U+2026 (horizontal ellipsis). + // However some old fonts may contain ellipsis at U+0085. Here we auto-detect most suitable ellipsis character. + // FIXME: Note that 0x2026 is rarely included in our font ranges. Because of this we are more likely to use three individual dots. + const ImWchar ellipsis_chars[] = { (ImWchar)0x2026, (ImWchar)0x0085 }; + const ImWchar dots_chars[] = { (ImWchar)'.', (ImWchar)0xFF0E }; + if (EllipsisChar == (ImWchar)-1) + EllipsisChar = FindFirstExistingGlyph(this, ellipsis_chars, IM_ARRAYSIZE(ellipsis_chars)); + const ImWchar dot_char = FindFirstExistingGlyph(this, dots_chars, IM_ARRAYSIZE(dots_chars)); + if (EllipsisChar != (ImWchar)-1) + { + EllipsisCharCount = 1; + EllipsisWidth = EllipsisCharStep = FindGlyph(EllipsisChar)->X1; + } + else if (dot_char != (ImWchar)-1) + { + const ImFontGlyph* glyph = FindGlyph(dot_char); + EllipsisChar = dot_char; + EllipsisCharCount = 3; + EllipsisCharStep = (glyph->X1 - glyph->X0) + 1.0f; + EllipsisWidth = EllipsisCharStep * 3.0f - 1.0f; + } +} + +// API is designed this way to avoid exposing the 4K page size +// e.g. use with IsGlyphRangeUnused(0, 255) +bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last) +{ + unsigned int page_begin = (c_begin / 4096); + unsigned int page_last = (c_last / 4096); + for (unsigned int page_n = page_begin; page_n <= page_last; page_n++) + if ((page_n >> 3) < sizeof(Used4kPagesMap)) + if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7))) + return false; + return true; +} + +void ImFont::SetGlyphVisible(ImWchar c, bool visible) +{ + if (ImFontGlyph* glyph = (ImFontGlyph*)(void*)FindGlyph((ImWchar)c)) + glyph->Visible = visible ? 1 : 0; +} + +void ImFont::GrowIndex(int new_size) +{ + IM_ASSERT(IndexAdvanceX.Size == IndexLookup.Size); + if (new_size <= IndexLookup.Size) + return; + IndexAdvanceX.resize(new_size, -1.0f); + IndexLookup.resize(new_size, (ImWchar)-1); +} + +// x0/y0/x1/y1 are offset from the character upper-left layout position, in pixels. Therefore x0/y0 are often fairly close to zero. +// Not to be mistaken with texture coordinates, which are held by u0/v0/u1/v1 in normalized format (0.0..1.0 on each texture axis). +// 'cfg' is not necessarily == 'this->ConfigData' because multiple source fonts+configs can be used to build one target font. +void ImFont::AddGlyph(const ImFontConfig* cfg, ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) +{ + if (cfg != NULL) + { + // Clamp & recenter if needed + const float advance_x_original = advance_x; + advance_x = ImClamp(advance_x, cfg->GlyphMinAdvanceX, cfg->GlyphMaxAdvanceX); + if (advance_x != advance_x_original) + { + float char_off_x = cfg->PixelSnapH ? ImFloor((advance_x - advance_x_original) * 0.5f) : (advance_x - advance_x_original) * 0.5f; + x0 += char_off_x; + x1 += char_off_x; + } + + // Snap to pixel + if (cfg->PixelSnapH) + advance_x = IM_ROUND(advance_x); + + // Bake spacing + advance_x += cfg->GlyphExtraSpacing.x; + } + + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& glyph = Glyphs.back(); + glyph.Codepoint = (unsigned int)codepoint; + glyph.Visible = (x0 != x1) && (y0 != y1); + glyph.Colored = false; + glyph.X0 = x0; + glyph.Y0 = y0; + glyph.X1 = x1; + glyph.Y1 = y1; + glyph.U0 = u0; + glyph.V0 = v0; + glyph.U1 = u1; + glyph.V1 = v1; + glyph.AdvanceX = advance_x; + + // Compute rough surface usage metrics (+1 to account for average padding, +0.99 to round) + // We use (U1-U0)*TexWidth instead of X1-X0 to account for oversampling. + float pad = ContainerAtlas->TexGlyphPadding + 0.99f; + DirtyLookupTables = true; + MetricsTotalSurface += (int)((glyph.U1 - glyph.U0) * ContainerAtlas->TexWidth + pad) * (int)((glyph.V1 - glyph.V0) * ContainerAtlas->TexHeight + pad); +} + +void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst) +{ + IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function. + unsigned int index_size = (unsigned int)IndexLookup.Size; + + if (dst < index_size && IndexLookup.Data[dst] == (ImWchar)-1 && !overwrite_dst) // 'dst' already exists + return; + if (src >= index_size && dst >= index_size) // both 'dst' and 'src' don't exist -> no-op + return; + + GrowIndex(dst + 1); + IndexLookup[dst] = (src < index_size) ? IndexLookup.Data[src] : (ImWchar)-1; + IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f; +} + +const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return FallbackGlyph; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return FallbackGlyph; + return &Glyphs.Data[i]; +} + +const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return NULL; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return NULL; + return &Glyphs.Data[i]; +} + +// Wrapping skips upcoming blanks +static inline const char* CalcWordWrapNextLineStartA(const char* text, const char* text_end) +{ + while (text < text_end && ImCharIsBlankA(*text)) + text++; + if (*text == '\n') + text++; + return text; +} + +// Simple word-wrapping for English, not full-featured. Please submit failing cases! +// This will return the next location to wrap from. If no wrapping if necessary, this will fast-forward to e.g. text_end. +// FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) +const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +{ + // For references, possible wrap point marked with ^ + // "aaa bbb, ccc,ddd. eee fff. ggg!" + // ^ ^ ^ ^ ^__ ^ ^ + + // List of hardcoded separators: .,;!?'" + + // Skip extra blanks after a line returns (that includes not counting them in width computation) + // e.g. "Hello world" --> "Hello" "World" + + // Cut words that cannot possibly fit within one line. + // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" + float line_width = 0.0f; + float word_width = 0.0f; + float blank_width = 0.0f; + wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters + + const char* word_end = text; + const char* prev_word_end = NULL; + bool inside_word = true; + + const char* s = text; + IM_ASSERT(text_end != NULL); + while (s < text_end) + { + unsigned int c = (unsigned int)*s; + const char* next_s; + if (c < 0x80) + next_s = s + 1; + else + next_s = s + ImTextCharFromUtf8(&c, s, text_end); + + if (c < 32) + { + if (c == '\n') + { + line_width = word_width = blank_width = 0.0f; + inside_word = true; + s = next_s; + continue; + } + if (c == '\r') + { + s = next_s; + continue; + } + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX); + if (ImCharIsBlankW(c)) + { + if (inside_word) + { + line_width += blank_width; + blank_width = 0.0f; + word_end = s; + } + blank_width += char_width; + inside_word = false; + } + else + { + word_width += char_width; + if (inside_word) + { + word_end = next_s; + } + else + { + prev_word_end = word_end; + line_width += word_width + blank_width; + word_width = blank_width = 0.0f; + } + + // Allow wrapping after punctuation. + inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"'); + } + + // We ignore blank width at the end of the line (they can be skipped) + if (line_width + word_width > wrap_width) + { + // Words that cannot possibly fit within an entire line will be cut anywhere. + if (word_width < wrap_width) + s = prev_word_end ? prev_word_end : word_end; + break; + } + + s = next_s; + } + + // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + // +1 may not be a character start point in UTF-8 but it's ok because caller loops use (text >= word_wrap_eol). + if (s == text && text < text_end) + return s + 1; + return s; +} + +ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this. + + const float line_height = size; + const float scale = size / FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const bool word_wrap_enabled = (wrap_width > 0.0f); + const char* word_wrap_eol = NULL; + + const char* s = text_begin; + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); + + if (s >= word_wrap_eol) + { + if (text_size.x < line_width) + text_size.x = line_width; + text_size.y += line_height; + line_width = 0.0f; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + const char* prev_s = s; + unsigned int c = (unsigned int)*s; + if (c < 0x80) + s += 1; + else + s += ImTextCharFromUtf8(&c, s, text_end); + + if (c < 32) + { + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + continue; + } + if (c == '\r') + continue; + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale; + if (line_width + char_width >= max_width) + { + s = prev_s; + break; + } + + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (line_width > 0 || text_size.y == 0.0f) + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const +{ + const ImFontGlyph* glyph = FindGlyph(c); + if (!glyph || !glyph->Visible) + return; + if (glyph->Colored) + col |= ~IM_COL32_A_MASK; + float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); + draw_list->PrimReserve(6, 4); + draw_list->PrimRectUV(ImVec2(x + glyph->X0 * scale, y + glyph->Y0 * scale), ImVec2(x + glyph->X1 * scale, y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); +} + +// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound. +void ImFont::RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. + + // Align to be pixel perfect + float x = IM_FLOOR(pos.x); + float y = IM_FLOOR(pos.y); + if (y > clip_rect.w) + return; + + const float start_x = x; + const float scale = size / FontSize; + const float line_height = FontSize * scale; + const bool word_wrap_enabled = (wrap_width > 0.0f); + + // Fast-forward to first visible line + const char* s = text_begin; + if (y + line_height < clip_rect.y) + while (y + line_height < clip_rect.y && s < text_end) + { + const char* line_end = (const char*)memchr(s, '\n', text_end - s); + if (word_wrap_enabled) + { + // FIXME-OPT: This is not optimal as do first do a search for \n before calling CalcWordWrapPositionA(). + // If the specs for CalcWordWrapPositionA() were reworked to optionally return on \n we could combine both. + // However it is still better than nothing performing the fast-forward! + s = CalcWordWrapPositionA(scale, s, line_end ? line_end : text_end, wrap_width); + s = CalcWordWrapNextLineStartA(s, text_end); + } + else + { + s = line_end ? line_end + 1 : text_end; + } + y += line_height; + } + + // For large text, scan for the last visible line in order to avoid over-reserving in the call to PrimReserve() + // Note that very large horizontal line will still be affected by the issue (e.g. a one megabyte string buffer without a newline will likely crash atm) + if (text_end - s > 10000 && !word_wrap_enabled) + { + const char* s_end = s; + float y_end = y; + while (y_end < clip_rect.w && s_end < text_end) + { + s_end = (const char*)memchr(s_end, '\n', text_end - s_end); + s_end = s_end ? s_end + 1 : text_end; + y_end += line_height; + } + text_end = s_end; + } + if (s == text_end) + return; + + // Reserve vertices for remaining worse case (over-reserving is useful and easily amortized) + const int vtx_count_max = (int)(text_end - s) * 4; + const int idx_count_max = (int)(text_end - s) * 6; + const int idx_expected_size = draw_list->IdxBuffer.Size + idx_count_max; + draw_list->PrimReserve(idx_count_max, vtx_count_max); + ImDrawVert* vtx_write = draw_list->_VtxWritePtr; + ImDrawIdx* idx_write = draw_list->_IdxWritePtr; + unsigned int vtx_index = draw_list->_VtxCurrentIdx; + + const ImU32 col_untinted = col | ~IM_COL32_A_MASK; + const char* word_wrap_eol = NULL; + + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - start_x)); + + if (s >= word_wrap_eol) + { + x = start_x; + y += line_height; + word_wrap_eol = NULL; + s = CalcWordWrapNextLineStartA(s, text_end); // Wrapping skips upcoming blanks + continue; + } + } + + // Decode and advance source + unsigned int c = (unsigned int)*s; + if (c < 0x80) + s += 1; + else + s += ImTextCharFromUtf8(&c, s, text_end); + + if (c < 32) + { + if (c == '\n') + { + x = start_x; + y += line_height; + if (y > clip_rect.w) + break; // break out of main loop + continue; + } + if (c == '\r') + continue; + } + + const ImFontGlyph* glyph = FindGlyph((ImWchar)c); + if (glyph == NULL) + continue; + + float char_width = glyph->AdvanceX * scale; + if (glyph->Visible) + { + // We don't do a second finer clipping test on the Y axis as we've already skipped anything before clip_rect.y and exit once we pass clip_rect.w + float x1 = x + glyph->X0 * scale; + float x2 = x + glyph->X1 * scale; + float y1 = y + glyph->Y0 * scale; + float y2 = y + glyph->Y1 * scale; + if (x1 <= clip_rect.z && x2 >= clip_rect.x) + { + // Render a character + float u1 = glyph->U0; + float v1 = glyph->V0; + float u2 = glyph->U1; + float v2 = glyph->V1; + + // CPU side clipping used to fit text in their frame when the frame is too small. Only does clipping for axis aligned quads. + if (cpu_fine_clip) + { + if (x1 < clip_rect.x) + { + u1 = u1 + (1.0f - (x2 - clip_rect.x) / (x2 - x1)) * (u2 - u1); + x1 = clip_rect.x; + } + if (y1 < clip_rect.y) + { + v1 = v1 + (1.0f - (y2 - clip_rect.y) / (y2 - y1)) * (v2 - v1); + y1 = clip_rect.y; + } + if (x2 > clip_rect.z) + { + u2 = u1 + ((clip_rect.z - x1) / (x2 - x1)) * (u2 - u1); + x2 = clip_rect.z; + } + if (y2 > clip_rect.w) + { + v2 = v1 + ((clip_rect.w - y1) / (y2 - y1)) * (v2 - v1); + y2 = clip_rect.w; + } + if (y1 >= y2) + { + x += char_width; + continue; + } + } + + // Support for untinted glyphs + ImU32 glyph_col = glyph->Colored ? col_untinted : col; + + // We are NOT calling PrimRectUV() here because non-inlined causes too much overhead in a debug builds. Inlined here: + { + vtx_write[0].pos.x = x1; vtx_write[0].pos.y = y1; vtx_write[0].col = glyph_col; vtx_write[0].uv.x = u1; vtx_write[0].uv.y = v1; + vtx_write[1].pos.x = x2; vtx_write[1].pos.y = y1; vtx_write[1].col = glyph_col; vtx_write[1].uv.x = u2; vtx_write[1].uv.y = v1; + vtx_write[2].pos.x = x2; vtx_write[2].pos.y = y2; vtx_write[2].col = glyph_col; vtx_write[2].uv.x = u2; vtx_write[2].uv.y = v2; + vtx_write[3].pos.x = x1; vtx_write[3].pos.y = y2; vtx_write[3].col = glyph_col; vtx_write[3].uv.x = u1; vtx_write[3].uv.y = v2; + idx_write[0] = (ImDrawIdx)(vtx_index); idx_write[1] = (ImDrawIdx)(vtx_index + 1); idx_write[2] = (ImDrawIdx)(vtx_index + 2); + idx_write[3] = (ImDrawIdx)(vtx_index); idx_write[4] = (ImDrawIdx)(vtx_index + 2); idx_write[5] = (ImDrawIdx)(vtx_index + 3); + vtx_write += 4; + vtx_index += 4; + idx_write += 6; + } + } + } + x += char_width; + } + + // Give back unused vertices (clipped ones, blanks) ~ this is essentially a PrimUnreserve() action. + draw_list->VtxBuffer.Size = (int)(vtx_write - draw_list->VtxBuffer.Data); // Same as calling shrink() + draw_list->IdxBuffer.Size = (int)(idx_write - draw_list->IdxBuffer.Data); + draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount -= (idx_expected_size - draw_list->IdxBuffer.Size); + draw_list->_VtxWritePtr = vtx_write; + draw_list->_IdxWritePtr = idx_write; + draw_list->_VtxCurrentIdx = vtx_index; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGui Internal Render Helpers +//----------------------------------------------------------------------------- +// Vaguely redesigned to stop accessing ImGui global state: +// - RenderArrow() +// - RenderBullet() +// - RenderCheckMark() +// - RenderArrowDockMenu() +// - RenderArrowPointingAt() +// - RenderRectFilledRangeH() +// - RenderRectFilledWithHole() +//----------------------------------------------------------------------------- +// Function in need of a redesign (legacy mess) +// - RenderColorRectWithAlphaCheckerboard() +//----------------------------------------------------------------------------- + +// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be positioned). To e.g. denote expanded/collapsed state +void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) +{ + const float h = draw_list->_Data->FontSize * 1.00f; + float r = h * 0.40f * scale; + ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale); + + ImVec2 a, b, c; + switch (dir) + { + case ImGuiDir_Up: + case ImGuiDir_Down: + if (dir == ImGuiDir_Up) r = -r; + a = ImVec2(+0.000f, +0.750f) * r; + b = ImVec2(-0.866f, -0.750f) * r; + c = ImVec2(+0.866f, -0.750f) * r; + break; + case ImGuiDir_Left: + case ImGuiDir_Right: + if (dir == ImGuiDir_Left) r = -r; + a = ImVec2(+0.750f, +0.000f) * r; + b = ImVec2(-0.750f, +0.866f) * r; + c = ImVec2(-0.750f, -0.866f) * r; + break; + case ImGuiDir_None: + case ImGuiDir_COUNT: + IM_ASSERT(0); + break; + } + draw_list->AddTriangleFilled(center + a, center + b, center + c, col); +} + +void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col) +{ + // FIXME-OPT: This should be baked in font. + draw_list->AddCircleFilled(pos, draw_list->_Data->FontSize * 0.20f, col, 8); +} + +void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) +{ + float thickness = ImMax(sz / 5.0f, 1.0f); + sz -= thickness * 0.5f; + pos += ImVec2(thickness * 0.25f, thickness * 0.25f); + + float third = sz / 3.0f; + float bx = pos.x + third; + float by = pos.y + sz - third * 0.5f; + draw_list->PathLineTo(ImVec2(bx - third, by - third)); + draw_list->PathLineTo(ImVec2(bx, by)); + draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f)); + draw_list->PathStroke(col, 0, thickness); +} + +// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. +void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) +{ + switch (direction) + { + case ImGuiDir_Left: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Right: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_Up: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Down: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_None: case ImGuiDir_COUNT: break; // Fix warnings + } +} + +// This is less wide than RenderArrow() and we use in dock nodes instead of the regular RenderArrow() to denote a change of functionality, +// and because the saved space means that the left-most tab label can stay at exactly the same position as the label of a loose window. +void ImGui::RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col) +{ + draw_list->AddRectFilled(p_min + ImVec2(sz * 0.20f, sz * 0.15f), p_min + ImVec2(sz * 0.80f, sz * 0.30f), col); + RenderArrowPointingAt(draw_list, p_min + ImVec2(sz * 0.50f, sz * 0.85f), ImVec2(sz * 0.30f, sz * 0.40f), ImGuiDir_Down, col); +} + +static inline float ImAcos01(float x) +{ + if (x <= 0.0f) return IM_PI * 0.5f; + if (x >= 1.0f) return 0.0f; + return ImAcos(x); + //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do. +} + +// FIXME: Cleanup and move code to ImDrawList. +void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) +{ + if (x_end_norm == x_start_norm) + return; + if (x_start_norm > x_end_norm) + ImSwap(x_start_norm, x_end_norm); + + ImVec2 p0 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_start_norm), rect.Min.y); + ImVec2 p1 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_end_norm), rect.Max.y); + if (rounding == 0.0f) + { + draw_list->AddRectFilled(p0, p1, col, 0.0f); + return; + } + + rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0f, 0.0f, rounding); + const float inv_rounding = 1.0f / rounding; + const float arc0_b = ImAcos01(1.0f - (p0.x - rect.Min.x) * inv_rounding); + const float arc0_e = ImAcos01(1.0f - (p1.x - rect.Min.x) * inv_rounding); + const float half_pi = IM_PI * 0.5f; // We will == compare to this because we know this is the exact value ImAcos01 can return. + const float x0 = ImMax(p0.x, rect.Min.x + rounding); + if (arc0_b == arc0_e) + { + draw_list->PathLineTo(ImVec2(x0, p1.y)); + draw_list->PathLineTo(ImVec2(x0, p0.y)); + } + else if (arc0_b == 0.0f && arc0_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x0, p1.y - rounding), rounding, 3, 6); // BL + draw_list->PathArcToFast(ImVec2(x0, p0.y + rounding), rounding, 6, 9); // TR + } + else + { + draw_list->PathArcTo(ImVec2(x0, p1.y - rounding), rounding, IM_PI - arc0_e, IM_PI - arc0_b, 3); // BL + draw_list->PathArcTo(ImVec2(x0, p0.y + rounding), rounding, IM_PI + arc0_b, IM_PI + arc0_e, 3); // TR + } + if (p1.x > rect.Min.x + rounding) + { + const float arc1_b = ImAcos01(1.0f - (rect.Max.x - p1.x) * inv_rounding); + const float arc1_e = ImAcos01(1.0f - (rect.Max.x - p0.x) * inv_rounding); + const float x1 = ImMin(p1.x, rect.Max.x - rounding); + if (arc1_b == arc1_e) + { + draw_list->PathLineTo(ImVec2(x1, p0.y)); + draw_list->PathLineTo(ImVec2(x1, p1.y)); + } + else if (arc1_b == 0.0f && arc1_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x1, p0.y + rounding), rounding, 9, 12); // TR + draw_list->PathArcToFast(ImVec2(x1, p1.y - rounding), rounding, 0, 3); // BR + } + else + { + draw_list->PathArcTo(ImVec2(x1, p0.y + rounding), rounding, -arc1_e, -arc1_b, 3); // TR + draw_list->PathArcTo(ImVec2(x1, p1.y - rounding), rounding, +arc1_b, +arc1_e, 3); // BR + } + } + draw_list->PathFillConvex(col); +} + +void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding) +{ + const bool fill_L = (inner.Min.x > outer.Min.x); + const bool fill_R = (inner.Max.x < outer.Max.x); + const bool fill_U = (inner.Min.y > outer.Min.y); + const bool fill_D = (inner.Max.y < outer.Max.y); + if (fill_L) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Min.y), ImVec2(inner.Min.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomLeft)); + if (fill_R) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Min.y), ImVec2(outer.Max.x, inner.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_U ? 0 : ImDrawFlags_RoundCornersTopRight) | (fill_D ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_U) draw_list->AddRectFilled(ImVec2(inner.Min.x, outer.Min.y), ImVec2(inner.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersTopLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersTopRight)); + if (fill_D) draw_list->AddRectFilled(ImVec2(inner.Min.x, inner.Max.y), ImVec2(inner.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersNone | (fill_L ? 0 : ImDrawFlags_RoundCornersBottomLeft) | (fill_R ? 0 : ImDrawFlags_RoundCornersBottomRight)); + if (fill_L && fill_U) draw_list->AddRectFilled(ImVec2(outer.Min.x, outer.Min.y), ImVec2(inner.Min.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopLeft); + if (fill_R && fill_U) draw_list->AddRectFilled(ImVec2(inner.Max.x, outer.Min.y), ImVec2(outer.Max.x, inner.Min.y), col, rounding, ImDrawFlags_RoundCornersTopRight); + if (fill_L && fill_D) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Max.y), ImVec2(inner.Min.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomLeft); + if (fill_R && fill_D) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Max.y), ImVec2(outer.Max.x, outer.Max.y), col, rounding, ImDrawFlags_RoundCornersBottomRight); +} + +ImDrawFlags ImGui::CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold) +{ + bool round_l = r_in.Min.x <= r_outer.Min.x + threshold; + bool round_r = r_in.Max.x >= r_outer.Max.x - threshold; + bool round_t = r_in.Min.y <= r_outer.Min.y + threshold; + bool round_b = r_in.Max.y >= r_outer.Max.y - threshold; + return ImDrawFlags_RoundCornersNone + | ((round_t && round_l) ? ImDrawFlags_RoundCornersTopLeft : 0) | ((round_t && round_r) ? ImDrawFlags_RoundCornersTopRight : 0) + | ((round_b && round_l) ? ImDrawFlags_RoundCornersBottomLeft : 0) | ((round_b && round_r) ? ImDrawFlags_RoundCornersBottomRight : 0); +} + +// Helper for ColorPicker4() +// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. +// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether. +// FIXME: uses ImGui::GetColorU32 +void ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 col, float grid_step, ImVec2 grid_off, float rounding, ImDrawFlags flags) +{ + if ((flags & ImDrawFlags_RoundCornersMask_) == 0) + flags = ImDrawFlags_RoundCornersDefault_; + if (((col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT) < 0xFF) + { + ImU32 col_bg1 = GetColorU32(ImAlphaBlendColors(IM_COL32(204, 204, 204, 255), col)); + ImU32 col_bg2 = GetColorU32(ImAlphaBlendColors(IM_COL32(128, 128, 128, 255), col)); + draw_list->AddRectFilled(p_min, p_max, col_bg1, rounding, flags); + + int yi = 0; + for (float y = p_min.y + grid_off.y; y < p_max.y; y += grid_step, yi++) + { + float y1 = ImClamp(y, p_min.y, p_max.y), y2 = ImMin(y + grid_step, p_max.y); + if (y2 <= y1) + continue; + for (float x = p_min.x + grid_off.x + (yi & 1) * grid_step; x < p_max.x; x += grid_step * 2.0f) + { + float x1 = ImClamp(x, p_min.x, p_max.x), x2 = ImMin(x + grid_step, p_max.x); + if (x2 <= x1) + continue; + ImDrawFlags cell_flags = ImDrawFlags_RoundCornersNone; + if (y1 <= p_min.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersTopLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersTopRight; } + if (y2 >= p_max.y) { if (x1 <= p_min.x) cell_flags |= ImDrawFlags_RoundCornersBottomLeft; if (x2 >= p_max.x) cell_flags |= ImDrawFlags_RoundCornersBottomRight; } + + // Combine flags + cell_flags = (flags == ImDrawFlags_RoundCornersNone || cell_flags == ImDrawFlags_RoundCornersNone) ? ImDrawFlags_RoundCornersNone : (cell_flags & flags); + draw_list->AddRectFilled(ImVec2(x1, y1), ImVec2(x2, y2), col_bg2, rounding, cell_flags); + } + } + } + else + { + draw_list->AddRectFilled(p_min, p_max, col, rounding, flags); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Decompression code +//----------------------------------------------------------------------------- +// Compressed with stb_compress() then converted to a C array and encoded as base85. +// Use the program in misc/fonts/binary_to_compressed_c.cpp to create the array from a TTF file. +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +// Decompression from stb.h (public domain) by Sean Barrett https://github.com/nothings/stb/blob/master/stb.h +//----------------------------------------------------------------------------- + +static unsigned int stb_decompress_length(const unsigned char *input) +{ + return (input[8] << 24) + (input[9] << 16) + (input[10] << 8) + input[11]; +} + +static unsigned char *stb__barrier_out_e, *stb__barrier_out_b; +static const unsigned char *stb__barrier_in_b; +static unsigned char *stb__dout; +static void stb__match(const unsigned char *data, unsigned int length) +{ + // INVERSE of memmove... write each byte before copying the next... + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; } + while (length--) *stb__dout++ = *data++; +} + +static void stb__lit(const unsigned char *data, unsigned int length) +{ + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; } + memcpy(stb__dout, data, length); + stb__dout += length; +} + +#define stb__in2(x) ((i[x] << 8) + i[(x)+1]) +#define stb__in3(x) ((i[x] << 16) + stb__in2((x)+1)) +#define stb__in4(x) ((i[x] << 24) + stb__in3((x)+1)) + +static const unsigned char *stb_decompress_token(const unsigned char *i) +{ + if (*i >= 0x20) { // use fewer if's for cases that expand small + if (*i >= 0x80) stb__match(stb__dout-i[1]-1, i[0] - 0x80 + 1), i += 2; + else if (*i >= 0x40) stb__match(stb__dout-(stb__in2(0) - 0x4000 + 1), i[2]+1), i += 3; + else /* *i >= 0x20 */ stb__lit(i+1, i[0] - 0x20 + 1), i += 1 + (i[0] - 0x20 + 1); + } else { // more ifs for cases that expand large, since overhead is amortized + if (*i >= 0x18) stb__match(stb__dout-(stb__in3(0) - 0x180000 + 1), i[3]+1), i += 4; + else if (*i >= 0x10) stb__match(stb__dout-(stb__in3(0) - 0x100000 + 1), stb__in2(3)+1), i += 5; + else if (*i >= 0x08) stb__lit(i+2, stb__in2(0) - 0x0800 + 1), i += 2 + (stb__in2(0) - 0x0800 + 1); + else if (*i == 0x07) stb__lit(i+3, stb__in2(1) + 1), i += 3 + (stb__in2(1) + 1); + else if (*i == 0x06) stb__match(stb__dout-(stb__in3(1)+1), i[4]+1), i += 5; + else if (*i == 0x04) stb__match(stb__dout-(stb__in3(1)+1), stb__in2(4)+1), i += 6; + } + return i; +} + +static unsigned int stb_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) +{ + const unsigned long ADLER_MOD = 65521; + unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; + unsigned long blocklen = buflen % 5552; + + unsigned long i; + while (buflen) { + for (i=0; i + 7 < blocklen; i += 8) { + s1 += buffer[0], s2 += s1; + s1 += buffer[1], s2 += s1; + s1 += buffer[2], s2 += s1; + s1 += buffer[3], s2 += s1; + s1 += buffer[4], s2 += s1; + s1 += buffer[5], s2 += s1; + s1 += buffer[6], s2 += s1; + s1 += buffer[7], s2 += s1; + + buffer += 8; + } + + for (; i < blocklen; ++i) + s1 += *buffer++, s2 += s1; + + s1 %= ADLER_MOD, s2 %= ADLER_MOD; + buflen -= blocklen; + blocklen = 5552; + } + return (unsigned int)(s2 << 16) + (unsigned int)s1; +} + +static unsigned int stb_decompress(unsigned char *output, const unsigned char *i, unsigned int /*length*/) +{ + if (stb__in4(0) != 0x57bC0000) return 0; + if (stb__in4(4) != 0) return 0; // error! stream is > 4GB + const unsigned int olen = stb_decompress_length(i); + stb__barrier_in_b = i; + stb__barrier_out_e = output + olen; + stb__barrier_out_b = output; + i += 16; + + stb__dout = output; + for (;;) { + const unsigned char *old_i = i; + i = stb_decompress_token(i); + if (i == old_i) { + if (*i == 0x05 && i[1] == 0xfa) { + IM_ASSERT(stb__dout == output + olen); + if (stb__dout != output + olen) return 0; + if (stb_adler32(1, output, olen) != (unsigned int) stb__in4(2)) + return 0; + return olen; + } else { + IM_ASSERT(0); /* NOTREACHED */ + return 0; + } + } + IM_ASSERT(stb__dout <= output + olen); + if (stb__dout > output + olen) + return 0; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Default font data (ProggyClean.ttf) +//----------------------------------------------------------------------------- +// ProggyClean.ttf +// Copyright (c) 2004, 2005 Tristan Grimmer +// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip) +// Download and more information at http://upperbounds.net +//----------------------------------------------------------------------------- +// File: 'ProggyClean.ttf' (41208 bytes) +// Exported using misc/fonts/binary_to_compressed_c.cpp (with compression + base85 string encoding). +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +//----------------------------------------------------------------------------- +static const char proggy_clean_ttf_compressed_data_base85[11980 + 1] = + "7])#######hV0qs'/###[),##/l:$#Q6>##5[n42>c-TH`->>#/e>11NNV=Bv(*:.F?uu#(gRU.o0XGH`$vhLG1hxt9?W`#,5LsCp#-i>.r$<$6pD>Lb';9Crc6tgXmKVeU2cD4Eo3R/" + "2*>]b(MC;$jPfY.;h^`IWM9Qo#t'X#(v#Y9w0#1D$CIf;W'#pWUPXOuxXuU(H9M(1=Ke$$'5F%)]0^#0X@U.a$FBjVQTSDgEKnIS7EM9>ZY9w0#L;>>#Mx&4Mvt//L[MkA#W@lK.N'[0#7RL_&#w+F%HtG9M#XL`N&.,GM4Pg;--VsM.M0rJfLH2eTM`*oJMHRC`N" + "kfimM2J,W-jXS:)r0wK#@Fge$U>`w'N7G#$#fB#$E^$#:9:hk+eOe--6x)F7*E%?76%^GMHePW-Z5l'&GiF#$956:rS?dA#fiK:)Yr+`�j@'DbG&#^$PG.Ll+DNa&VZ>1i%h1S9u5o@YaaW$e+bROPOpxTO7Stwi1::iB1q)C_=dV26J;2,]7op$]uQr@_V7$q^%lQwtuHY]=DX,n3L#0PHDO4f9>dC@O>HBuKPpP*E,N+b3L#lpR/MrTEH.IAQk.a>D[.e;mc." + "x]Ip.PH^'/aqUO/$1WxLoW0[iLAw=4h(9.`G" + "CRUxHPeR`5Mjol(dUWxZa(>STrPkrJiWx`5U7F#.g*jrohGg`cg:lSTvEY/EV_7H4Q9[Z%cnv;JQYZ5q.l7Zeas:HOIZOB?Ggv:[7MI2k).'2($5FNP&EQ(,)" + "U]W]+fh18.vsai00);D3@4ku5P?DP8aJt+;qUM]=+b'8@;mViBKx0DE[-auGl8:PJ&Dj+M6OC]O^((##]`0i)drT;-7X`=-H3[igUnPG-NZlo.#k@h#=Ork$m>a>$-?Tm$UV(?#P6YY#" + "'/###xe7q.73rI3*pP/$1>s9)W,JrM7SN]'/4C#v$U`0#V.[0>xQsH$fEmPMgY2u7Kh(G%siIfLSoS+MK2eTM$=5,M8p`A.;_R%#u[K#$x4AG8.kK/HSB==-'Ie/QTtG?-.*^N-4B/ZM" + "_3YlQC7(p7q)&](`6_c)$/*JL(L-^(]$wIM`dPtOdGA,U3:w2M-0+WomX2u7lqM2iEumMTcsF?-aT=Z-97UEnXglEn1K-bnEO`gu" + "Ft(c%=;Am_Qs@jLooI&NX;]0#j4#F14;gl8-GQpgwhrq8'=l_f-b49'UOqkLu7-##oDY2L(te+Mch&gLYtJ,MEtJfLh'x'M=$CS-ZZ%P]8bZ>#S?YY#%Q&q'3^Fw&?D)UDNrocM3A76/" + "/oL?#h7gl85[qW/NDOk%16ij;+:1a'iNIdb-ou8.P*w,v5#EI$TWS>Pot-R*H'-SEpA:g)f+O$%%`kA#G=8RMmG1&O`>to8bC]T&$,n.LoO>29sp3dt-52U%VM#q7'DHpg+#Z9%H[Ket`e;)f#Km8&+DC$I46>#Kr]]u-[=99tts1.qb#q72g1WJO81q+eN'03'eM>&1XxY-caEnO" + "j%2n8)),?ILR5^.Ibn<-X-Mq7[a82Lq:F&#ce+S9wsCK*x`569E8ew'He]h:sI[2LM$[guka3ZRd6:t%IG:;$%YiJ:Nq=?eAw;/:nnDq0(CYcMpG)qLN4$##&J-XTt,%OVU4)S1+R-#dg0/Nn?Ku1^0f$B*P:Rowwm-`0PKjYDDM'3]d39VZHEl4,.j']Pk-M.h^&:0FACm$maq-&sgw0t7/6(^xtk%" + "LuH88Fj-ekm>GA#_>568x6(OFRl-IZp`&b,_P'$MhLbxfc$mj`,O;&%W2m`Zh:/)Uetw:aJ%]K9h:TcF]u_-Sj9,VK3M.*'&0D[Ca]J9gp8,kAW]" + "%(?A%R$f<->Zts'^kn=-^@c4%-pY6qI%J%1IGxfLU9CP8cbPlXv);C=b),<2mOvP8up,UVf3839acAWAW-W?#ao/^#%KYo8fRULNd2.>%m]UK:n%r$'sw]J;5pAoO_#2mO3n,'=H5(et" + "Hg*`+RLgv>=4U8guD$I%D:W>-r5V*%j*W:Kvej.Lp$'?;++O'>()jLR-^u68PHm8ZFWe+ej8h:9r6L*0//c&iH&R8pRbA#Kjm%upV1g:" + "a_#Ur7FuA#(tRh#.Y5K+@?3<-8m0$PEn;J:rh6?I6uG<-`wMU'ircp0LaE_OtlMb&1#6T.#FDKu#1Lw%u%+GM+X'e?YLfjM[VO0MbuFp7;>Q&#WIo)0@F%q7c#4XAXN-U&VBpqB>0ie&jhZ[?iLR@@_AvA-iQC(=ksRZRVp7`.=+NpBC%rh&3]R:8XDmE5^V8O(x<-+k?'(^](H.aREZSi,#1:[IXaZFOm<-ui#qUq2$##Ri;u75OK#(RtaW-K-F`S+cF]uN`-KMQ%rP/Xri.LRcB##=YL3BgM/3M" + "D?@f&1'BW-)Ju#bmmWCMkk&#TR`C,5d>g)F;t,4:@_l8G/5h4vUd%&%950:VXD'QdWoY-F$BtUwmfe$YqL'8(PWX(" + "P?^@Po3$##`MSs?DWBZ/S>+4%>fX,VWv/w'KD`LP5IbH;rTV>n3cEK8U#bX]l-/V+^lj3;vlMb&[5YQ8#pekX9JP3XUC72L,,?+Ni&co7ApnO*5NK,((W-i:$,kp'UDAO(G0Sq7MVjJs" + "bIu)'Z,*[>br5fX^:FPAWr-m2KgLQ_nN6'8uTGT5g)uLv:873UpTLgH+#FgpH'_o1780Ph8KmxQJ8#H72L4@768@Tm&Q" + "h4CB/5OvmA&,Q&QbUoi$a_%3M01H)4x7I^&KQVgtFnV+;[Pc>[m4k//,]1?#`VY[Jr*3&&slRfLiVZJ:]?=K3Sw=[$=uRB?3xk48@aege0jT6'N#(q%.O=?2S]u*(m<-" + "V8J'(1)G][68hW$5'q[GC&5j`TE?m'esFGNRM)j,ffZ?-qx8;->g4t*:CIP/[Qap7/9'#(1sao7w-.qNUdkJ)tCF&#B^;xGvn2r9FEPFFFcL@.iFNkTve$m%#QvQS8U@)2Z+3K:AKM5i" + "sZ88+dKQ)W6>J%CL`.d*(B`-n8D9oK-XV1q['-5k'cAZ69e;D_?$ZPP&s^+7])$*$#@QYi9,5P r+$%CE=68>K8r0=dSC%%(@p7" + ".m7jilQ02'0-VWAgTlGW'b)Tq7VT9q^*^$$.:&N@@" + "$&)WHtPm*5_rO0&e%K&#-30j(E4#'Zb.o/(Tpm$>K'f@[PvFl,hfINTNU6u'0pao7%XUp9]5.>%h`8_=VYbxuel.NTSsJfLacFu3B'lQSu/m6-Oqem8T+oE--$0a/k]uj9EwsG>%veR*" + "hv^BFpQj:K'#SJ,sB-'#](j.Lg92rTw-*n%@/;39rrJF,l#qV%OrtBeC6/,;qB3ebNW[?,Hqj2L.1NP&GjUR=1D8QaS3Up&@*9wP?+lo7b?@%'k4`p0Z$22%K3+iCZj?XJN4Nm&+YF]u" + "@-W$U%VEQ/,,>>#)D#%8cY#YZ?=,`Wdxu/ae&#" + "w6)R89tI#6@s'(6Bf7a&?S=^ZI_kS&ai`&=tE72L_D,;^R)7[$so8lKN%5/$(vdfq7+ebA#" + "u1p]ovUKW&Y%q]'>$1@-[xfn$7ZTp7mM,G,Ko7a&Gu%G[RMxJs[0MM%wci.LFDK)(%:_i2B5CsR8&9Z&#=mPEnm0f`<&c)QL5uJ#%u%lJj+D-r;BoFDoS97h5g)E#o:&S4weDF,9^Hoe`h*L+_a*NrLW-1pG_&2UdB8" + "6e%B/:=>)N4xeW.*wft-;$'58-ESqr#U`'6AQ]m&6/`Z>#S?YY#Vc;r7U2&326d=w&H####?TZ`*4?&.MK?LP8Vxg>$[QXc%QJv92.(Db*B)gb*BM9dM*hJMAo*c&#" + "b0v=Pjer]$gG&JXDf->'StvU7505l9$AFvgYRI^&<^b68?j#q9QX4SM'RO#&sL1IM.rJfLUAj221]d##DW=m83u5;'bYx,*Sl0hL(W;;$doB&O/TQ:(Z^xBdLjLV#*8U_72Lh+2Q8Cj0i:6hp&$C/:p(HK>T8Y[gHQ4`4)'$Ab(Nof%V'8hL&#SfD07&6D@M.*J:;$-rv29'M]8qMv-tLp,'886iaC=Hb*YJoKJ,(j%K=H`K.v9HggqBIiZu'QvBT.#=)0ukruV&.)3=(^1`o*Pj4<-#MJ+gLq9-##@HuZPN0]u:h7.T..G:;$/Usj(T7`Q8tT72LnYl<-qx8;-HV7Q-&Xdx%1a,hC=0u+HlsV>nuIQL-5" + "_>@kXQtMacfD.m-VAb8;IReM3$wf0''hra*so568'Ip&vRs849'MRYSp%:t:h5qSgwpEr$B>Q,;s(C#$)`svQuF$##-D,##,g68@2[T;.XSdN9Qe)rpt._K-#5wF)sP'##p#C0c%-Gb%" + "hd+<-j'Ai*x&&HMkT]C'OSl##5RG[JXaHN;d'uA#x._U;.`PU@(Z3dt4r152@:v,'R.Sj'w#0<-;kPI)FfJ&#AYJ&#//)>-k=m=*XnK$>=)72L]0I%>.G690a:$##<,);?;72#?x9+d;" + "^V'9;jY@;)br#q^YQpx:X#Te$Z^'=-=bGhLf:D6&bNwZ9-ZD#n^9HhLMr5G;']d&6'wYmTFmLq9wI>P(9mI[>kC-ekLC/R&CH+s'B;K-M6$EB%is00:" + "+A4[7xks.LrNk0&E)wILYF@2L'0Nb$+pv<(2.768/FrY&h$^3i&@+G%JT'<-,v`3;_)I9M^AE]CN?Cl2AZg+%4iTpT3$U4O]GKx'm9)b@p7YsvK3w^YR-" + "CdQ*:Ir<($u&)#(&?L9Rg3H)4fiEp^iI9O8KnTj,]H?D*r7'M;PwZ9K0E^k&-cpI;.p/6_vwoFMV<->#%Xi.LxVnrU(4&8/P+:hLSKj$#U%]49t'I:rgMi'FL@a:0Y-uA[39',(vbma*" + "hU%<-SRF`Tt:542R_VV$p@[p8DV[A,?1839FWdFTi1O*H&#(AL8[_P%.M>v^-))qOT*F5Cq0`Ye%+$B6i:7@0IXSsDiWP,##P`%/L-" + "S(qw%sf/@%#B6;/U7K]uZbi^Oc^2n%t<)'mEVE''n`WnJra$^TKvX5B>;_aSEK',(hwa0:i4G?.Bci.(X[?b*($,=-n<.Q%`(X=?+@Am*Js0&=3bh8K]mL69=Lb,OcZV/);TTm8VI;?%OtJ<(b4mq7M6:u?KRdFl*:xP?Yb.5)%w_I?7uk5JC+FS(m#i'k.'a0i)9<7b'fs'59hq$*5Uhv##pi^8+hIEBF`nvo`;'l0.^S1<-wUK2/Coh58KKhLj" + "M=SO*rfO`+qC`W-On.=AJ56>>i2@2LH6A:&5q`?9I3@@'04&p2/LVa*T-4<-i3;M9UvZd+N7>b*eIwg:CC)c<>nO&#$(>.Z-I&J(Q0Hd5Q%7Co-b`-cP)hI;*_F]u`Rb[.j8_Q/<&>uu+VsH$sM9TA%?)(vmJ80),P7E>)tjD%2L=-t#fK[%`v=Q8WlA2);Sa" + ">gXm8YB`1d@K#n]76-a$U,mF%Ul:#/'xoFM9QX-$.QN'>" + "[%$Z$uF6pA6Ki2O5:8w*vP1<-1`[G,)-m#>0`P&#eb#.3i)rtB61(o'$?X3B2Qft^ae_5tKL9MUe9b*sLEQ95C&`=G?@Mj=wh*'3E>=-<)Gt*Iw)'QG:`@I" + "wOf7&]1i'S01B+Ev/Nac#9S;=;YQpg_6U`*kVY39xK,[/6Aj7:'1Bm-_1EYfa1+o&o4hp7KN_Q(OlIo@S%;jVdn0'1h19w,WQhLI)3S#f$2(eb,jr*b;3Vw]*7NH%$c4Vs,eD9>XW8?N]o+(*pgC%/72LV-uW%iewS8W6m2rtCpo'RS1R84=@paTKt)>=%&1[)*vp'u+x,VrwN;&]kuO9JDbg=pO$J*.jVe;u'm0dr9l,<*wMK*Oe=g8lV_KEBFkO'oU]^=[-792#ok,)" + "i]lR8qQ2oA8wcRCZ^7w/Njh;?.stX?Q1>S1q4Bn$)K1<-rGdO'$Wr.Lc.CG)$/*JL4tNR/,SVO3,aUw'DJN:)Ss;wGn9A32ijw%FL+Z0Fn.U9;reSq)bmI32U==5ALuG&#Vf1398/pVo" + "1*c-(aY168o<`JsSbk-,1N;$>0:OUas(3:8Z972LSfF8eb=c-;>SPw7.6hn3m`9^Xkn(r.qS[0;T%&Qc=+STRxX'q1BNk3&*eu2;&8q$&x>Q#Q7^Tf+6<(d%ZVmj2bDi%.3L2n+4W'$P" + "iDDG)g,r%+?,$@?uou5tSe2aN_AQU*'IAO" + "URQ##V^Fv-XFbGM7Fl(N<3DhLGF%q.1rC$#:T__&Pi68%0xi_&[qFJ(77j_&JWoF.V735&T,[R*:xFR*K5>>#`bW-?4Ne_&6Ne_&6Ne_&n`kr-#GJcM6X;uM6X;uM(.a..^2TkL%oR(#" + ";u.T%fAr%4tJ8&><1=GHZ_+m9/#H1F^R#SC#*N=BA9(D?v[UiFY>>^8p,KKF.W]L29uLkLlu/+4T" + "w$)F./^n3+rlo+DB;5sIYGNk+i1t-69Jg--0pao7Sm#K)pdHW&;LuDNH@H>#/X-TI(;P>#,Gc>#0Su>#4`1?#8lC?#xL$#B.`$#F:r$#JF.%#NR@%#R_R%#Vke%#Zww%#_-4^Rh%Sflr-k'MS.o?.5/sWel/wpEM0%3'/1)K^f1-d>G21&v(35>V`39V7A4=onx4" + "A1OY5EI0;6Ibgr6M$HS7Q<)58C5w,;WoA*#[%T*#`1g*#d=#+#hI5+#lUG+#pbY+#tnl+#x$),#&1;,#*=M,#.I`,#2Ur,#6b.-#;w[H#iQtA#m^0B#qjBB#uvTB##-hB#'9$C#+E6C#" + "/QHC#3^ZC#7jmC#;v)D#?,)4kMYD4lVu`4m`:&5niUA5@(A5BA1]PBB:xlBCC=2CDLXMCEUtiCf&0g2'tN?PGT4CPGT4CPGT4CPGT4CPGT4CPGT4CPGT4CP" + "GT4CPGT4CPGT4CPGT4CPGT4CPGT4CP-qekC`.9kEg^+F$kwViFJTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5o,^<-28ZI'O?;xp" + "O?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xp;7q-#lLYI:xvD=#"; + +static const char* GetDefaultCompressedFontDataTTFBase85() +{ + return proggy_clean_ttf_compressed_data_base85; +} + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/imgui_tables.cpp b/thirdparty/imgui_suite/imgui/cpp/imgui_tables.cpp new file mode 100644 index 00000000000..7fbf6181bab --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/imgui_tables.cpp @@ -0,0 +1,4162 @@ +// dear imgui, v1.90 WIP +// (tables and columns code) + +/* + +Index of this file: + +// [SECTION] Commentary +// [SECTION] Header mess +// [SECTION] Tables: Main code +// [SECTION] Tables: Simple accessors +// [SECTION] Tables: Row changes +// [SECTION] Tables: Columns changes +// [SECTION] Tables: Columns width management +// [SECTION] Tables: Drawing +// [SECTION] Tables: Sorting +// [SECTION] Tables: Headers +// [SECTION] Tables: Context Menu +// [SECTION] Tables: Settings (.ini data) +// [SECTION] Tables: Garbage Collection +// [SECTION] Tables: Debugging +// [SECTION] Columns, BeginColumns, EndColumns, etc. + +*/ + +// Navigating this file: +// - In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. + +//----------------------------------------------------------------------------- +// [SECTION] Commentary +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// Typical tables call flow: (root level is generally public API): +//----------------------------------------------------------------------------- +// - BeginTable() user begin into a table +// | BeginChild() - (if ScrollX/ScrollY is set) +// | TableBeginInitMemory() - first time table is used +// | TableResetSettings() - on settings reset +// | TableLoadSettings() - on settings load +// | TableBeginApplyRequests() - apply queued resizing/reordering/hiding requests +// | - TableSetColumnWidth() - apply resizing width (for mouse resize, often requested by previous frame) +// | - TableUpdateColumnsWeightFromWidth()- recompute columns weights (of stretch columns) from their respective width +// - TableSetupColumn() user submit columns details (optional) +// - TableSetupScrollFreeze() user submit scroll freeze information (optional) +//----------------------------------------------------------------------------- +// - TableUpdateLayout() [Internal] followup to BeginTable(): setup everything: widths, columns positions, clipping rectangles. Automatically called by the FIRST call to TableNextRow() or TableHeadersRow(). +// | TableSetupDrawChannels() - setup ImDrawList channels +// | TableUpdateBorders() - detect hovering columns for resize, ahead of contents submission +// | TableDrawContextMenu() - draw right-click context menu +//----------------------------------------------------------------------------- +// - TableHeadersRow() or TableHeader() user submit a headers row (optional) +// | TableSortSpecsClickColumn() - when left-clicked: alter sort order and sort direction +// | TableOpenContextMenu() - when right-clicked: trigger opening of the default context menu +// - TableGetSortSpecs() user queries updated sort specs (optional, generally after submitting headers) +// - TableNextRow() user begin into a new row (also automatically called by TableHeadersRow()) +// | TableEndRow() - finish existing row +// | TableBeginRow() - add a new row +// - TableSetColumnIndex() / TableNextColumn() user begin into a cell +// | TableEndCell() - close existing column/cell +// | TableBeginCell() - enter into current column/cell +// - [...] user emit contents +//----------------------------------------------------------------------------- +// - EndTable() user ends the table +// | TableDrawBorders() - draw outer borders, inner vertical borders +// | TableMergeDrawChannels() - merge draw channels if clipping isn't required +// | EndChild() - (if ScrollX/ScrollY is set) +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// TABLE SIZING +//----------------------------------------------------------------------------- +// (Read carefully because this is subtle but it does make sense!) +//----------------------------------------------------------------------------- +// About 'outer_size': +// Its meaning needs to differ slightly depending on if we are using ScrollX/ScrollY flags. +// Default value is ImVec2(0.0f, 0.0f). +// X +// - outer_size.x <= 0.0f -> Right-align from window/work-rect right-most edge. With -FLT_MIN or 0.0f will align exactly on right-most edge. +// - outer_size.x > 0.0f -> Set Fixed width. +// Y with ScrollX/ScrollY disabled: we output table directly in current window +// - outer_size.y < 0.0f -> Bottom-align (but will auto extend, unless _NoHostExtendY is set). Not meaningful if parent window can vertically scroll. +// - outer_size.y = 0.0f -> No minimum height (but will auto extend, unless _NoHostExtendY is set) +// - outer_size.y > 0.0f -> Set Minimum height (but will auto extend, unless _NoHostExtendY is set) +// Y with ScrollX/ScrollY enabled: using a child window for scrolling +// - outer_size.y < 0.0f -> Bottom-align. Not meaningful if parent window can vertically scroll. +// - outer_size.y = 0.0f -> Bottom-align, consistent with BeginChild(). Not recommended unless table is last item in parent window. +// - outer_size.y > 0.0f -> Set Exact height. Recommended when using Scrolling on any axis. +//----------------------------------------------------------------------------- +// Outer size is also affected by the NoHostExtendX/NoHostExtendY flags. +// Important to note how the two flags have slightly different behaviors! +// - ImGuiTableFlags_NoHostExtendX -> Make outer width auto-fit to columns (overriding outer_size.x value). Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. +// - ImGuiTableFlags_NoHostExtendY -> Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY is disabled. Data below the limit will be clipped and not visible. +// In theory ImGuiTableFlags_NoHostExtendY could be the default and any non-scrolling tables with outer_size.y != 0.0f would use exact height. +// This would be consistent but perhaps less useful and more confusing (as vertically clipped items are not useful and not easily noticeable). +//----------------------------------------------------------------------------- +// About 'inner_width': +// With ScrollX disabled: +// - inner_width -> *ignored* +// With ScrollX enabled: +// - inner_width < 0.0f -> *illegal* fit in known width (right align from outer_size.x) <-- weird +// - inner_width = 0.0f -> fit in outer_width: Fixed size columns will take space they need (if avail, otherwise shrink down), Stretch columns becomes Fixed columns. +// - inner_width > 0.0f -> override scrolling width, generally to be larger than outer_size.x. Fixed column take space they need (if avail, otherwise shrink down), Stretch columns share remaining space! +//----------------------------------------------------------------------------- +// Details: +// - If you want to use Stretch columns with ScrollX, you generally need to specify 'inner_width' otherwise the concept +// of "available space" doesn't make sense. +// - Even if not really useful, we allow 'inner_width < outer_size.x' for consistency and to facilitate understanding +// of what the value does. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// COLUMNS SIZING POLICIES +// (Reference: ImGuiTableFlags_SizingXXX flags and ImGuiTableColumnFlags_WidthXXX flags) +//----------------------------------------------------------------------------- +// About overriding column sizing policy and width/weight with TableSetupColumn(): +// We use a default parameter of -1 for 'init_width'/'init_weight'. +// - with ImGuiTableColumnFlags_WidthFixed, init_width <= 0 (default) --> width is automatic +// - with ImGuiTableColumnFlags_WidthFixed, init_width > 0 (explicit) --> width is custom +// - with ImGuiTableColumnFlags_WidthStretch, init_weight <= 0 (default) --> weight is 1.0f +// - with ImGuiTableColumnFlags_WidthStretch, init_weight > 0 (explicit) --> weight is custom +// Widths are specified _without_ CellPadding. If you specify a width of 100.0f, the column will be cover (100.0f + Padding * 2.0f) +// and you can fit a 100.0f wide item in it without clipping and with padding honored. +//----------------------------------------------------------------------------- +// About default sizing policy (if you don't specify a ImGuiTableColumnFlags_WidthXXXX flag) +// - with Table policy ImGuiTableFlags_SizingFixedFit --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is equal to contents width +// - with Table policy ImGuiTableFlags_SizingFixedSame --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is max of all contents width +// - with Table policy ImGuiTableFlags_SizingStretchSame --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is 1.0f +// - with Table policy ImGuiTableFlags_SizingStretchWeight --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is proportional to contents +// Default Width and default Weight can be overridden when calling TableSetupColumn(). +//----------------------------------------------------------------------------- +// About mixing Fixed/Auto and Stretch columns together: +// - the typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// - using mixed policies with ScrollX does not make much sense, as using Stretch columns with ScrollX does not make much sense in the first place! +// that is, unless 'inner_width' is passed to BeginTable() to explicitly provide a total width to layout columns in. +// - when using ImGuiTableFlags_SizingFixedSame with mixed columns, only the Fixed/Auto columns will match their widths to the width of the maximum contents. +// - when using ImGuiTableFlags_SizingStretchSame with mixed columns, only the Stretch columns will match their weights/widths. +//----------------------------------------------------------------------------- +// About using column width: +// If a column is manually resizable or has a width specified with TableSetupColumn(): +// - you may use GetContentRegionAvail().x to query the width available in a given column. +// - right-side alignment features such as SetNextItemWidth(-x) or PushItemWidth(-x) will rely on this width. +// If the column is not resizable and has no width specified with TableSetupColumn(): +// - its width will be automatic and be set to the max of items submitted. +// - therefore you generally cannot have ALL items of the columns use e.g. SetNextItemWidth(-FLT_MIN). +// - but if the column has one or more items of known/fixed size, this will become the reference width used by SetNextItemWidth(-FLT_MIN). +//----------------------------------------------------------------------------- + + +//----------------------------------------------------------------------------- +// TABLES CLIPPING/CULLING +//----------------------------------------------------------------------------- +// About clipping/culling of Rows in Tables: +// - For large numbers of rows, it is recommended you use ImGuiListClipper to submit only visible rows. +// ImGuiListClipper is reliant on the fact that rows are of equal height. +// See 'Demo->Tables->Vertical Scrolling' or 'Demo->Tables->Advanced' for a demo of using the clipper. +// - Note that auto-resizing columns don't play well with using the clipper. +// By default a table with _ScrollX but without _Resizable will have column auto-resize. +// So, if you want to use the clipper, make sure to either enable _Resizable, either setup columns width explicitly with _WidthFixed. +//----------------------------------------------------------------------------- +// About clipping/culling of Columns in Tables: +// - Both TableSetColumnIndex() and TableNextColumn() return true when the column is visible or performing +// width measurements. Otherwise, you may skip submitting the contents of a cell/column, BUT ONLY if you know +// it is not going to contribute to row height. +// In many situations, you may skip submitting contents for every column but one (e.g. the first one). +// - Case A: column is not hidden by user, and at least partially in sight (most common case). +// - Case B: column is clipped / out of sight (because of scrolling or parent ClipRect): TableNextColumn() return false as a hint but we still allow layout output. +// - Case C: column is hidden explicitly by the user (e.g. via the context menu, or _DefaultHide column flag, etc.). +// +// [A] [B] [C] +// TableNextColumn(): true false false -> [userland] when TableNextColumn() / TableSetColumnIndex() returns false, user can skip submitting items but only if the column doesn't contribute to row height. +// SkipItems: false false true -> [internal] when SkipItems is true, most widgets will early out if submitted, resulting is no layout output. +// ClipRect: normal zero-width zero-width -> [internal] when ClipRect is zero, ItemAdd() will return false and most widgets will early out mid-way. +// ImDrawList output: normal dummy dummy -> [internal] when using the dummy channel, ImDrawList submissions (if any) will be wasted (because cliprect is zero-width anyway). +// +// - We need to distinguish those cases because non-hidden columns that are clipped outside of scrolling bounds should still contribute their height to the row. +// However, in the majority of cases, the contribution to row height is the same for all columns, or the tallest cells are known by the programmer. +//----------------------------------------------------------------------------- +// About clipping/culling of whole Tables: +// - Scrolling tables with a known outer size can be clipped earlier as BeginTable() will return false. +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" + +// System includes +#include // intptr_t + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Main code +//----------------------------------------------------------------------------- +// - TableFixFlags() [Internal] +// - TableFindByID() [Internal] +// - BeginTable() +// - BeginTableEx() [Internal] +// - TableBeginInitMemory() [Internal] +// - TableBeginApplyRequests() [Internal] +// - TableSetupColumnFlags() [Internal] +// - TableUpdateLayout() [Internal] +// - TableUpdateBorders() [Internal] +// - EndTable() +// - TableSetupColumn() +// - TableSetupScrollFreeze() +//----------------------------------------------------------------------------- + +// Configuration +static const int TABLE_DRAW_CHANNEL_BG0 = 0; +static const int TABLE_DRAW_CHANNEL_BG2_FROZEN = 1; +static const int TABLE_DRAW_CHANNEL_NOCLIP = 2; // When using ImGuiTableFlags_NoClip (this becomes the last visible channel) +static const float TABLE_BORDER_SIZE = 1.0f; // FIXME-TABLE: Currently hard-coded because of clipping assumptions with outer borders rendering. +static const float TABLE_RESIZE_SEPARATOR_HALF_THICKNESS = 4.0f; // Extend outside inner borders. +static const float TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER = 0.06f; // Delay/timer before making the hover feedback (color+cursor) visible because tables/columns tends to be more cramped. + +// Helper +inline ImGuiTableFlags TableFixFlags(ImGuiTableFlags flags, ImGuiWindow* outer_window) +{ + // Adjust flags: set default sizing policy + if ((flags & ImGuiTableFlags_SizingMask_) == 0) + flags |= ((flags & ImGuiTableFlags_ScrollX) || (outer_window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) ? ImGuiTableFlags_SizingFixedFit : ImGuiTableFlags_SizingStretchSame; + + // Adjust flags: enable NoKeepColumnsVisible when using ImGuiTableFlags_SizingFixedSame + if ((flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableFlags_NoKeepColumnsVisible; + + // Adjust flags: enforce borders when resizable + if (flags & ImGuiTableFlags_Resizable) + flags |= ImGuiTableFlags_BordersInnerV; + + // Adjust flags: disable NoHostExtendX/NoHostExtendY if we have any scrolling going on + if (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) + flags &= ~(ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_NoHostExtendY); + + // Adjust flags: NoBordersInBodyUntilResize takes priority over NoBordersInBody + if (flags & ImGuiTableFlags_NoBordersInBodyUntilResize) + flags &= ~ImGuiTableFlags_NoBordersInBody; + + // Adjust flags: disable saved settings if there's nothing to save + if ((flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Sortable)) == 0) + flags |= ImGuiTableFlags_NoSavedSettings; + + // Inherit _NoSavedSettings from top-level window (child windows always have _NoSavedSettings set) + if (outer_window->RootWindow->Flags & ImGuiWindowFlags_NoSavedSettings) + flags |= ImGuiTableFlags_NoSavedSettings; + + return flags; +} + +ImGuiTable* ImGui::TableFindByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return g.Tables.GetByKey(id); +} + +// Read about "TABLE SIZING" at the top of this file. +bool ImGui::BeginTable(const char* str_id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiID id = GetID(str_id); + return BeginTableEx(str_id, id, columns_count, flags, outer_size, inner_width); +} + +bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* outer_window = GetCurrentWindow(); + if (outer_window->SkipItems) // Consistent with other tables + beneficial side effect that assert on miscalling EndTable() will be more visible. + return false; + + // Sanity checks + IM_ASSERT(columns_count > 0 && columns_count < IMGUI_TABLE_MAX_COLUMNS); + if (flags & ImGuiTableFlags_ScrollX) + IM_ASSERT(inner_width >= 0.0f); + + // If an outer size is specified ahead we will be able to early out when not visible. Exact clipping criteria may evolve. + const bool use_child_window = (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) != 0; + const ImVec2 avail_size = GetContentRegionAvail(); + const ImVec2 actual_outer_size = CalcItemSize(outer_size, ImMax(avail_size.x, 1.0f), use_child_window ? ImMax(avail_size.y, 1.0f) : 0.0f); + const ImRect outer_rect(outer_window->DC.CursorPos, outer_window->DC.CursorPos + actual_outer_size); + const bool outer_window_is_measuring_size = (outer_window->AutoFitFramesX > 0) || (outer_window->AutoFitFramesY > 0); // Doesn't apply to auto-fitting windows! + if (use_child_window && IsClippedEx(outer_rect, 0) && !outer_window_is_measuring_size) + { + ItemSize(outer_rect); + return false; + } + + // Acquire storage for the table + ImGuiTable* table = g.Tables.GetOrAddByKey(id); + const ImGuiTableFlags table_last_flags = table->Flags; + + // Acquire temporary buffers + const int table_idx = g.Tables.GetIndex(table); + if (++g.TablesTempDataStacked > g.TablesTempData.Size) + g.TablesTempData.resize(g.TablesTempDataStacked, ImGuiTableTempData()); + ImGuiTableTempData* temp_data = table->TempData = &g.TablesTempData[g.TablesTempDataStacked - 1]; + temp_data->TableIndex = table_idx; + table->DrawSplitter = &table->TempData->DrawSplitter; + table->DrawSplitter->Clear(); + + // Fix flags + table->IsDefaultSizingPolicy = (flags & ImGuiTableFlags_SizingMask_) == 0; + flags = TableFixFlags(flags, outer_window); + + // Initialize + const int instance_no = (table->LastFrameActive != g.FrameCount) ? 0 : table->InstanceCurrent + 1; + table->ID = id; + table->Flags = flags; + table->LastFrameActive = g.FrameCount; + table->OuterWindow = table->InnerWindow = outer_window; + table->ColumnsCount = columns_count; + table->IsLayoutLocked = false; + table->InnerWidth = inner_width; + temp_data->UserOuterSize = outer_size; + + // Instance data (for instance 0, TableID == TableInstanceID) + ImGuiID instance_id; + table->InstanceCurrent = (ImS16)instance_no; + if (instance_no > 0) + { + IM_ASSERT(table->ColumnsCount == columns_count && "BeginTable(): Cannot change columns count mid-frame while preserving same ID"); + if (table->InstanceDataExtra.Size < instance_no) + table->InstanceDataExtra.push_back(ImGuiTableInstanceData()); + instance_id = GetIDWithSeed(instance_no, GetIDWithSeed("##Instances", NULL, id)); // Push "##Instances" followed by (int)instance_no in ID stack. + } + else + { + instance_id = id; + } + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + table_instance->TableInstanceID = instance_id; + + // When not using a child window, WorkRect.Max will grow as we append contents. + if (use_child_window) + { + // Ensure no vertical scrollbar appears if we only want horizontal one, to make flag consistent + // (we have no other way to disable vertical scrollbar of a window while keeping the horizontal one showing) + ImVec2 override_content_size(FLT_MAX, FLT_MAX); + if ((flags & ImGuiTableFlags_ScrollX) && !(flags & ImGuiTableFlags_ScrollY)) + override_content_size.y = FLT_MIN; + + // Ensure specified width (when not specified, Stretched columns will act as if the width == OuterWidth and + // never lead to any scrolling). We don't handle inner_width < 0.0f, we could potentially use it to right-align + // based on the right side of the child window work rect, which would require knowing ahead if we are going to + // have decoration taking horizontal spaces (typically a vertical scrollbar). + if ((flags & ImGuiTableFlags_ScrollX) && inner_width > 0.0f) + override_content_size.x = inner_width; + + if (override_content_size.x != FLT_MAX || override_content_size.y != FLT_MAX) + SetNextWindowContentSize(ImVec2(override_content_size.x != FLT_MAX ? override_content_size.x : 0.0f, override_content_size.y != FLT_MAX ? override_content_size.y : 0.0f)); + + // Reset scroll if we are reactivating it + if ((table_last_flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) == 0) + SetNextWindowScroll(ImVec2(0.0f, 0.0f)); + + // Create scrolling region (without border and zero window padding) + ImGuiWindowFlags child_flags = (flags & ImGuiTableFlags_ScrollX) ? ImGuiWindowFlags_HorizontalScrollbar : ImGuiWindowFlags_None; + BeginChildEx(name, instance_id, outer_rect.GetSize(), false, child_flags); + table->InnerWindow = g.CurrentWindow; + table->WorkRect = table->InnerWindow->WorkRect; + table->OuterRect = table->InnerWindow->Rect(); + table->InnerRect = table->InnerWindow->InnerRect; + IM_ASSERT(table->InnerWindow->WindowPadding.x == 0.0f && table->InnerWindow->WindowPadding.y == 0.0f && table->InnerWindow->WindowBorderSize == 0.0f); + + // Allow submitting when host is measuring + if (table->InnerWindow->SkipItems && outer_window_is_measuring_size) + table->InnerWindow->SkipItems = false; + + // When using multiple instances, ensure they have the same amount of horizontal decorations (aka vertical scrollbar) so stretched columns can be aligned) + if (instance_no == 0) + { + table->HasScrollbarYPrev = table->HasScrollbarYCurr; + table->HasScrollbarYCurr = false; + } + table->HasScrollbarYCurr |= table->InnerWindow->ScrollbarY; + } + else + { + // For non-scrolling tables, WorkRect == OuterRect == InnerRect. + // But at this point we do NOT have a correct value for .Max.y (unless a height has been explicitly passed in). It will only be updated in EndTable(). + table->WorkRect = table->OuterRect = table->InnerRect = outer_rect; + } + + // Push a standardized ID for both child-using and not-child-using tables + PushOverrideID(id); + if (instance_no > 0) + PushOverrideID(instance_id); // FIXME: Somehow this is not resolved by stack-tool, even tho GetIDWithSeed() submitted the symbol. + + // Backup a copy of host window members we will modify + ImGuiWindow* inner_window = table->InnerWindow; + table->HostIndentX = inner_window->DC.Indent.x; + table->HostClipRect = inner_window->ClipRect; + table->HostSkipItems = inner_window->SkipItems; + temp_data->HostBackupWorkRect = inner_window->WorkRect; + temp_data->HostBackupParentWorkRect = inner_window->ParentWorkRect; + temp_data->HostBackupColumnsOffset = outer_window->DC.ColumnsOffset; + temp_data->HostBackupPrevLineSize = inner_window->DC.PrevLineSize; + temp_data->HostBackupCurrLineSize = inner_window->DC.CurrLineSize; + temp_data->HostBackupCursorMaxPos = inner_window->DC.CursorMaxPos; + temp_data->HostBackupItemWidth = outer_window->DC.ItemWidth; + temp_data->HostBackupItemWidthStackSize = outer_window->DC.ItemWidthStack.Size; + inner_window->DC.PrevLineSize = inner_window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + + // Padding and Spacing + // - None ........Content..... Pad .....Content........ + // - PadOuter | Pad ..Content..... Pad .....Content.. Pad | + // - PadInner ........Content.. Pad | Pad ..Content........ + // - PadOuter+PadInner | Pad ..Content.. Pad | Pad ..Content.. Pad | + const bool pad_outer_x = (flags & ImGuiTableFlags_NoPadOuterX) ? false : (flags & ImGuiTableFlags_PadOuterX) ? true : (flags & ImGuiTableFlags_BordersOuterV) != 0; + const bool pad_inner_x = (flags & ImGuiTableFlags_NoPadInnerX) ? false : true; + const float inner_spacing_for_border = (flags & ImGuiTableFlags_BordersInnerV) ? TABLE_BORDER_SIZE : 0.0f; + const float inner_spacing_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) == 0) ? g.Style.CellPadding.x : 0.0f; + const float inner_padding_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) != 0) ? g.Style.CellPadding.x : 0.0f; + table->CellSpacingX1 = inner_spacing_explicit + inner_spacing_for_border; + table->CellSpacingX2 = inner_spacing_explicit; + table->CellPaddingX = inner_padding_explicit; + + const float outer_padding_for_border = (flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + const float outer_padding_explicit = pad_outer_x ? g.Style.CellPadding.x : 0.0f; + table->OuterPaddingX = (outer_padding_for_border + outer_padding_explicit) - table->CellPaddingX; + + table->CurrentColumn = -1; + table->CurrentRow = -1; + table->RowBgColorCounter = 0; + table->LastRowFlags = ImGuiTableRowFlags_None; + table->InnerClipRect = (inner_window == outer_window) ? table->WorkRect : inner_window->ClipRect; + table->InnerClipRect.ClipWith(table->WorkRect); // We need this to honor inner_width + table->InnerClipRect.ClipWithFull(table->HostClipRect); + table->InnerClipRect.Max.y = (flags & ImGuiTableFlags_NoHostExtendY) ? ImMin(table->InnerClipRect.Max.y, inner_window->WorkRect.Max.y) : inner_window->ClipRect.Max.y; + + table->RowPosY1 = table->RowPosY2 = table->WorkRect.Min.y; // This is needed somehow + table->RowTextBaseline = 0.0f; // This will be cleared again by TableBeginRow() + table->RowCellPaddingY = 0.0f; + table->FreezeRowsRequest = table->FreezeRowsCount = 0; // This will be setup by TableSetupScrollFreeze(), if any + table->FreezeColumnsRequest = table->FreezeColumnsCount = 0; + table->IsUnfrozenRows = true; + table->DeclColumnsCount = 0; + + // Using opaque colors facilitate overlapping lines of the grid, otherwise we'd need to improve TableDrawBorders() + table->BorderColorStrong = GetColorU32(ImGuiCol_TableBorderStrong); + table->BorderColorLight = GetColorU32(ImGuiCol_TableBorderLight); + + // Make table current + g.CurrentTable = table; + outer_window->DC.NavIsScrollPushableX = false; // Shortcut for NavUpdateCurrentWindowIsScrollPushableX(); + outer_window->DC.CurrentTableIdx = table_idx; + if (inner_window != outer_window) // So EndChild() within the inner window can restore the table properly. + inner_window->DC.CurrentTableIdx = table_idx; + + if ((table_last_flags & ImGuiTableFlags_Reorderable) && (flags & ImGuiTableFlags_Reorderable) == 0) + table->IsResetDisplayOrderRequest = true; + + // Mark as used to avoid GC + if (table_idx >= g.TablesLastTimeActive.Size) + g.TablesLastTimeActive.resize(table_idx + 1, -1.0f); + g.TablesLastTimeActive[table_idx] = (float)g.Time; + temp_data->LastTimeActive = (float)g.Time; + table->MemoryCompacted = false; + + // Setup memory buffer (clear data if columns count changed) + ImGuiTableColumn* old_columns_to_preserve = NULL; + void* old_columns_raw_data = NULL; + const int old_columns_count = table->Columns.size(); + if (old_columns_count != 0 && old_columns_count != columns_count) + { + // Attempt to preserve width on column count change (#4046) + old_columns_to_preserve = table->Columns.Data; + old_columns_raw_data = table->RawData; + table->RawData = NULL; + } + if (table->RawData == NULL) + { + TableBeginInitMemory(table, columns_count); + table->IsInitializing = table->IsSettingsRequestLoad = true; + } + if (table->IsResetAllRequest) + TableResetSettings(table); + if (table->IsInitializing) + { + // Initialize + table->SettingsOffset = -1; + table->IsSortSpecsDirty = true; + table->InstanceInteracted = -1; + table->ContextPopupColumn = -1; + table->ReorderColumn = table->ResizedColumn = table->LastResizedColumn = -1; + table->AutoFitSingleColumn = -1; + table->HoveredColumnBody = table->HoveredColumnBorder = -1; + for (int n = 0; n < columns_count; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + if (old_columns_to_preserve && n < old_columns_count) + { + // FIXME: We don't attempt to preserve column order in this path. + *column = old_columns_to_preserve[n]; + } + else + { + float width_auto = column->WidthAuto; + *column = ImGuiTableColumn(); + column->WidthAuto = width_auto; + column->IsPreserveWidthAuto = true; // Preserve WidthAuto when reinitializing a live table: not technically necessary but remove a visible flicker + column->IsEnabled = column->IsUserEnabled = column->IsUserEnabledNextFrame = true; + } + column->DisplayOrder = table->DisplayOrderToIndex[n] = (ImGuiTableColumnIdx)n; + } + } + if (old_columns_raw_data) + IM_FREE(old_columns_raw_data); + + // Load settings + if (table->IsSettingsRequestLoad) + TableLoadSettings(table); + + // Handle DPI/font resize + // This is designed to facilitate DPI changes with the assumption that e.g. style.CellPadding has been scaled as well. + // It will also react to changing fonts with mixed results. It doesn't need to be perfect but merely provide a decent transition. + // FIXME-DPI: Provide consistent standards for reference size. Perhaps using g.CurrentDpiScale would be more self explanatory. + // This is will lead us to non-rounded WidthRequest in columns, which should work but is a poorly tested path. + const float new_ref_scale_unit = g.FontSize; // g.Font->GetCharAdvance('A') ? + if (table->RefScale != 0.0f && table->RefScale != new_ref_scale_unit) + { + const float scale_factor = new_ref_scale_unit / table->RefScale; + //IMGUI_DEBUG_PRINT("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); + for (int n = 0; n < columns_count; n++) + table->Columns[n].WidthRequest = table->Columns[n].WidthRequest * scale_factor; + } + table->RefScale = new_ref_scale_unit; + + // Disable output until user calls TableNextRow() or TableNextColumn() leading to the TableUpdateLayout() call.. + // This is not strictly necessary but will reduce cases were "out of table" output will be misleading to the user. + // Because we cannot safely assert in EndTable() when no rows have been created, this seems like our best option. + inner_window->SkipItems = true; + + // Clear names + // At this point the ->NameOffset field of each column will be invalid until TableUpdateLayout() or the first call to TableSetupColumn() + if (table->ColumnsNames.Buf.Size > 0) + table->ColumnsNames.Buf.resize(0); + + // Apply queued resizing/reordering/hiding requests + TableBeginApplyRequests(table); + + return true; +} + +// For reference, the average total _allocation count_ for a table is: +// + 0 (for ImGuiTable instance, we are pooling allocations in g.Tables[]) +// + 1 (for table->RawData allocated below) +// + 1 (for table->ColumnsNames, if names are used) +// Shared allocations for the maximum number of simultaneously nested tables (generally a very small number) +// + 1 (for table->Splitter._Channels) +// + 2 * active_channels_count (for ImDrawCmd and ImDrawIdx buffers inside channels) +// Where active_channels_count is variable but often == columns_count or == columns_count + 1, see TableSetupDrawChannels() for details. +// Unused channels don't perform their +2 allocations. +void ImGui::TableBeginInitMemory(ImGuiTable* table, int columns_count) +{ + // Allocate single buffer for our arrays + const int columns_bit_array_size = (int)ImBitArrayGetStorageSizeInBytes(columns_count); + ImSpanAllocator<6> span_allocator; + span_allocator.Reserve(0, columns_count * sizeof(ImGuiTableColumn)); + span_allocator.Reserve(1, columns_count * sizeof(ImGuiTableColumnIdx)); + span_allocator.Reserve(2, columns_count * sizeof(ImGuiTableCellData), 4); + for (int n = 3; n < 6; n++) + span_allocator.Reserve(n, columns_bit_array_size); + table->RawData = IM_ALLOC(span_allocator.GetArenaSizeInBytes()); + memset(table->RawData, 0, span_allocator.GetArenaSizeInBytes()); + span_allocator.SetArenaBasePtr(table->RawData); + span_allocator.GetSpan(0, &table->Columns); + span_allocator.GetSpan(1, &table->DisplayOrderToIndex); + span_allocator.GetSpan(2, &table->RowCellData); + table->EnabledMaskByDisplayOrder = (ImU32*)span_allocator.GetSpanPtrBegin(3); + table->EnabledMaskByIndex = (ImU32*)span_allocator.GetSpanPtrBegin(4); + table->VisibleMaskByIndex = (ImU32*)span_allocator.GetSpanPtrBegin(5); +} + +// Apply queued resizing/reordering/hiding requests +void ImGui::TableBeginApplyRequests(ImGuiTable* table) +{ + // Handle resizing request + // (We process this in the TableBegin() of the first instance of each table) + // FIXME-TABLE: Contains columns if our work area doesn't allow for scrolling? + if (table->InstanceCurrent == 0) + { + if (table->ResizedColumn != -1 && table->ResizedColumnNextWidth != FLT_MAX) + TableSetColumnWidth(table->ResizedColumn, table->ResizedColumnNextWidth); + table->LastResizedColumn = table->ResizedColumn; + table->ResizedColumnNextWidth = FLT_MAX; + table->ResizedColumn = -1; + + // Process auto-fit for single column, which is a special case for stretch columns and fixed columns with FixedSame policy. + // FIXME-TABLE: Would be nice to redistribute available stretch space accordingly to other weights, instead of giving it all to siblings. + if (table->AutoFitSingleColumn != -1) + { + TableSetColumnWidth(table->AutoFitSingleColumn, table->Columns[table->AutoFitSingleColumn].WidthAuto); + table->AutoFitSingleColumn = -1; + } + } + + // Handle reordering request + // Note: we don't clear ReorderColumn after handling the request. + if (table->InstanceCurrent == 0) + { + if (table->HeldHeaderColumn == -1 && table->ReorderColumn != -1) + table->ReorderColumn = -1; + table->HeldHeaderColumn = -1; + if (table->ReorderColumn != -1 && table->ReorderColumnDir != 0) + { + // We need to handle reordering across hidden columns. + // In the configuration below, moving C to the right of E will lead to: + // ... C [D] E ---> ... [D] E C (Column name/index) + // ... 2 3 4 ... 2 3 4 (Display order) + const int reorder_dir = table->ReorderColumnDir; + IM_ASSERT(reorder_dir == -1 || reorder_dir == +1); + IM_ASSERT(table->Flags & ImGuiTableFlags_Reorderable); + ImGuiTableColumn* src_column = &table->Columns[table->ReorderColumn]; + ImGuiTableColumn* dst_column = &table->Columns[(reorder_dir == -1) ? src_column->PrevEnabledColumn : src_column->NextEnabledColumn]; + IM_UNUSED(dst_column); + const int src_order = src_column->DisplayOrder; + const int dst_order = dst_column->DisplayOrder; + src_column->DisplayOrder = (ImGuiTableColumnIdx)dst_order; + for (int order_n = src_order + reorder_dir; order_n != dst_order + reorder_dir; order_n += reorder_dir) + table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder -= (ImGuiTableColumnIdx)reorder_dir; + IM_ASSERT(dst_column->DisplayOrder == dst_order - reorder_dir); + + // Display order is stored in both columns->IndexDisplayOrder and table->DisplayOrder[]. Rebuild later from the former. + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; + table->ReorderColumnDir = 0; + table->IsSettingsDirty = true; + } + } + + // Handle display order reset request + if (table->IsResetDisplayOrderRequest) + { + for (int n = 0; n < table->ColumnsCount; n++) + table->DisplayOrderToIndex[n] = table->Columns[n].DisplayOrder = (ImGuiTableColumnIdx)n; + table->IsResetDisplayOrderRequest = false; + table->IsSettingsDirty = true; + } +} + +// Adjust flags: default width mode + stretch columns are not allowed when auto extending +static void TableSetupColumnFlags(ImGuiTable* table, ImGuiTableColumn* column, ImGuiTableColumnFlags flags_in) +{ + ImGuiTableColumnFlags flags = flags_in; + + // Sizing Policy + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0) + { + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + if (table_sizing_policy == ImGuiTableFlags_SizingFixedFit || table_sizing_policy == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + else + flags |= ImGuiTableColumnFlags_WidthStretch; + } + else + { + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_WidthMask_)); // Check that only 1 of each set is used. + } + + // Resize + if ((table->Flags & ImGuiTableFlags_Resizable) == 0) + flags |= ImGuiTableColumnFlags_NoResize; + + // Sorting + if ((flags & ImGuiTableColumnFlags_NoSortAscending) && (flags & ImGuiTableColumnFlags_NoSortDescending)) + flags |= ImGuiTableColumnFlags_NoSort; + + // Indentation + if ((flags & ImGuiTableColumnFlags_IndentMask_) == 0) + flags |= (table->Columns.index_from_ptr(column) == 0) ? ImGuiTableColumnFlags_IndentEnable : ImGuiTableColumnFlags_IndentDisable; + + // Alignment + //if ((flags & ImGuiTableColumnFlags_AlignMask_) == 0) + // flags |= ImGuiTableColumnFlags_AlignCenter; + //IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_AlignMask_)); // Check that only 1 of each set is used. + + // Preserve status flags + column->Flags = flags | (column->Flags & ImGuiTableColumnFlags_StatusMask_); + + // Build an ordered list of available sort directions + column->SortDirectionsAvailCount = column->SortDirectionsAvailMask = column->SortDirectionsAvailList = 0; + if (table->Flags & ImGuiTableFlags_Sortable) + { + int count = 0, mask = 0, list = 0; + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) != 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) != 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortAscending) == 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } + if ((flags & ImGuiTableColumnFlags_PreferSortDescending) == 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } + if ((table->Flags & ImGuiTableFlags_SortTristate) || count == 0) { mask |= 1 << ImGuiSortDirection_None; count++; } + column->SortDirectionsAvailList = (ImU8)list; + column->SortDirectionsAvailMask = (ImU8)mask; + column->SortDirectionsAvailCount = (ImU8)count; + ImGui::TableFixColumnSortDirection(table, column); + } +} + +// Layout columns for the frame. This is in essence the followup to BeginTable() and this is our largest function. +// Runs on the first call to TableNextRow(), to give a chance for TableSetupColumn() and other TableSetupXXXXX() functions to be called first. +// FIXME-TABLE: Our width (and therefore our WorkRect) will be minimal in the first frame for _WidthAuto columns. +// Increase feedback side-effect with widgets relying on WorkRect.Max.x... Maybe provide a default distribution for _WidthAuto columns? +void ImGui::TableUpdateLayout(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->IsLayoutLocked == false); + + const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); + table->IsDefaultDisplayOrder = true; + table->ColumnsEnabledCount = 0; + ImBitArrayClearAllBits(table->EnabledMaskByIndex, table->ColumnsCount); + ImBitArrayClearAllBits(table->EnabledMaskByDisplayOrder, table->ColumnsCount); + table->LeftMostEnabledColumn = -1; + table->MinColumnWidth = ImMax(1.0f, g.Style.FramePadding.x * 1.0f); // g.Style.ColumnsMinSpacing; // FIXME-TABLE + + // [Part 1] Apply/lock Enabled and Order states. Calculate auto/ideal width for columns. Count fixed/stretch columns. + // Process columns in their visible orders as we are building the Prev/Next indices. + int count_fixed = 0; // Number of columns that have fixed sizing policies + int count_stretch = 0; // Number of columns that have stretch sizing policies + int prev_visible_column_idx = -1; + bool has_auto_fit_request = false; + bool has_resizable = false; + float stretch_sum_width_auto = 0.0f; + float fixed_max_width_auto = 0.0f; + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + if (column_n != order_n) + table->IsDefaultDisplayOrder = false; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Clear column setup if not submitted by user. Currently we make it mandatory to call TableSetupColumn() every frame. + // It would easily work without but we're not ready to guarantee it since e.g. names need resubmission anyway. + // We take a slight shortcut but in theory we could be calling TableSetupColumn() here with dummy values, it should yield the same effect. + if (table->DeclColumnsCount <= column_n) + { + TableSetupColumnFlags(table, column, ImGuiTableColumnFlags_None); + column->NameOffset = -1; + column->UserID = 0; + column->InitStretchWeightOrWidth = -1.0f; + } + + // Update Enabled state, mark settings and sort specs dirty + if (!(table->Flags & ImGuiTableFlags_Hideable) || (column->Flags & ImGuiTableColumnFlags_NoHide)) + column->IsUserEnabledNextFrame = true; + if (column->IsUserEnabled != column->IsUserEnabledNextFrame) + { + column->IsUserEnabled = column->IsUserEnabledNextFrame; + table->IsSettingsDirty = true; + } + column->IsEnabled = column->IsUserEnabled && (column->Flags & ImGuiTableColumnFlags_Disabled) == 0; + + if (column->SortOrder != -1 && !column->IsEnabled) + table->IsSortSpecsDirty = true; + if (column->SortOrder > 0 && !(table->Flags & ImGuiTableFlags_SortMulti)) + table->IsSortSpecsDirty = true; + + // Auto-fit unsized columns + const bool start_auto_fit = (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? (column->WidthRequest < 0.0f) : (column->StretchWeight < 0.0f); + if (start_auto_fit) + column->AutoFitQueue = column->CannotSkipItemsQueue = (1 << 3) - 1; // Fit for three frames + + if (!column->IsEnabled) + { + column->IndexWithinEnabledSet = -1; + continue; + } + + // Mark as enabled and link to previous/next enabled column + column->PrevEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + column->NextEnabledColumn = -1; + if (prev_visible_column_idx != -1) + table->Columns[prev_visible_column_idx].NextEnabledColumn = (ImGuiTableColumnIdx)column_n; + else + table->LeftMostEnabledColumn = (ImGuiTableColumnIdx)column_n; + column->IndexWithinEnabledSet = table->ColumnsEnabledCount++; + ImBitArraySetBit(table->EnabledMaskByIndex, column_n); + ImBitArraySetBit(table->EnabledMaskByDisplayOrder, column->DisplayOrder); + prev_visible_column_idx = column_n; + IM_ASSERT(column->IndexWithinEnabledSet <= column->DisplayOrder); + + // Calculate ideal/auto column width (that's the width required for all contents to be visible without clipping) + // Combine width from regular rows + width from headers unless requested not to. + if (!column->IsPreserveWidthAuto) + column->WidthAuto = TableGetColumnWidthAuto(table, column); + + // Non-resizable columns keep their requested width (apply user value regardless of IsPreserveWidthAuto) + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column_is_resizable) + has_resizable = true; + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f && !column_is_resizable) + column->WidthAuto = column->InitStretchWeightOrWidth; + + if (column->AutoFitQueue != 0x00) + has_auto_fit_request = true; + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + stretch_sum_width_auto += column->WidthAuto; + count_stretch++; + } + else + { + fixed_max_width_auto = ImMax(fixed_max_width_auto, column->WidthAuto); + count_fixed++; + } + } + if ((table->Flags & ImGuiTableFlags_Sortable) && table->SortSpecsCount == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + table->IsSortSpecsDirty = true; + table->RightMostEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; + IM_ASSERT(table->LeftMostEnabledColumn >= 0 && table->RightMostEnabledColumn >= 0); + + // [Part 2] Disable child window clipping while fitting columns. This is not strictly necessary but makes it possible to avoid + // the column fitting having to wait until the first visible frame of the child container (may or not be a good thing). Also see #6510. + // FIXME-TABLE: for always auto-resizing columns may not want to do that all the time. + if (has_auto_fit_request && table->OuterWindow != table->InnerWindow) + table->InnerWindow->SkipItems = false; + if (has_auto_fit_request) + table->IsSettingsDirty = true; + + // [Part 3] Fix column flags and record a few extra information. + float sum_width_requests = 0.0f; // Sum of all width for fixed and auto-resize columns, excluding width contributed by Stretch columns but including spacing/padding. + float stretch_sum_weights = 0.0f; // Sum of all weights for stretch columns. + table->LeftMostStretchedColumn = table->RightMostStretchedColumn = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + { + // Apply same widths policy + float width_auto = column->WidthAuto; + if (table_sizing_policy == ImGuiTableFlags_SizingFixedSame && (column->AutoFitQueue != 0x00 || !column_is_resizable)) + width_auto = fixed_max_width_auto; + + // Apply automatic width + // Latch initial size for fixed columns and update it constantly for auto-resizing column (unless clipped!) + if (column->AutoFitQueue != 0x00) + column->WidthRequest = width_auto; + else if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !column_is_resizable && column->IsRequestOutput) + column->WidthRequest = width_auto; + + // FIXME-TABLE: Increase minimum size during init frame to avoid biasing auto-fitting widgets + // (e.g. TextWrapped) too much. Otherwise what tends to happen is that TextWrapped would output a very + // large height (= first frame scrollbar display very off + clipper would skip lots of items). + // This is merely making the side-effect less extreme, but doesn't properly fixes it. + // FIXME: Move this to ->WidthGiven to avoid temporary lossyless? + // FIXME: This break IsPreserveWidthAuto from not flickering if the stored WidthAuto was smaller. + if (column->AutoFitQueue > 0x01 && table->IsInitializing && !column->IsPreserveWidthAuto) + column->WidthRequest = ImMax(column->WidthRequest, table->MinColumnWidth * 4.0f); // FIXME-TABLE: Another constant/scale? + sum_width_requests += column->WidthRequest; + } + else + { + // Initialize stretch weight + if (column->AutoFitQueue != 0x00 || column->StretchWeight < 0.0f || !column_is_resizable) + { + if (column->InitStretchWeightOrWidth > 0.0f) + column->StretchWeight = column->InitStretchWeightOrWidth; + else if (table_sizing_policy == ImGuiTableFlags_SizingStretchProp) + column->StretchWeight = (column->WidthAuto / stretch_sum_width_auto) * count_stretch; + else + column->StretchWeight = 1.0f; + } + + stretch_sum_weights += column->StretchWeight; + if (table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder > column->DisplayOrder) + table->LeftMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + if (table->RightMostStretchedColumn == -1 || table->Columns[table->RightMostStretchedColumn].DisplayOrder < column->DisplayOrder) + table->RightMostStretchedColumn = (ImGuiTableColumnIdx)column_n; + } + column->IsPreserveWidthAuto = false; + sum_width_requests += table->CellPaddingX * 2.0f; + } + table->ColumnsEnabledFixedCount = (ImGuiTableColumnIdx)count_fixed; + table->ColumnsStretchSumWeights = stretch_sum_weights; + + // [Part 4] Apply final widths based on requested widths + const ImRect work_rect = table->WorkRect; + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + const float width_removed = (table->HasScrollbarYPrev && !table->InnerWindow->ScrollbarY) ? g.Style.ScrollbarSize : 0.0f; // To synchronize decoration width of synched tables with mismatching scrollbar state (#5920) + const float width_avail = ImMax(1.0f, (((table->Flags & ImGuiTableFlags_ScrollX) && table->InnerWidth == 0.0f) ? table->InnerClipRect.GetWidth() : work_rect.GetWidth()) - width_removed); + const float width_avail_for_stretched_columns = width_avail - width_spacings - sum_width_requests; + float width_remaining_for_stretched_columns = width_avail_for_stretched_columns; + table->ColumnsGivenWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Allocate width for stretched/weighted columns (StretchWeight gets converted into WidthRequest) + if (column->Flags & ImGuiTableColumnFlags_WidthStretch) + { + float weight_ratio = column->StretchWeight / stretch_sum_weights; + column->WidthRequest = IM_FLOOR(ImMax(width_avail_for_stretched_columns * weight_ratio, table->MinColumnWidth) + 0.01f); + width_remaining_for_stretched_columns -= column->WidthRequest; + } + + // [Resize Rule 1] The right-most Visible column is not resizable if there is at least one Stretch column + // See additional comments in TableSetColumnWidth(). + if (column->NextEnabledColumn == -1 && table->LeftMostStretchedColumn != -1) + column->Flags |= ImGuiTableColumnFlags_NoDirectResize_; + + // Assign final width, record width in case we will need to shrink + column->WidthGiven = ImFloor(ImMax(column->WidthRequest, table->MinColumnWidth)); + table->ColumnsGivenWidth += column->WidthGiven; + } + + // [Part 5] Redistribute stretch remainder width due to rounding (remainder width is < 1.0f * number of Stretch column). + // Using right-to-left distribution (more likely to match resizing cursor). + if (width_remaining_for_stretched_columns >= 1.0f && !(table->Flags & ImGuiTableFlags_PreciseWidths)) + for (int order_n = table->ColumnsCount - 1; stretch_sum_weights > 0.0f && width_remaining_for_stretched_columns >= 1.0f && order_n >= 0; order_n--) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + continue; + ImGuiTableColumn* column = &table->Columns[table->DisplayOrderToIndex[order_n]]; + if (!(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->WidthRequest += 1.0f; + column->WidthGiven += 1.0f; + width_remaining_for_stretched_columns -= 1.0f; + } + + // Determine if table is hovered which will be used to flag columns as hovered. + // - In principle we'd like to use the equivalent of IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + // but because our item is partially submitted at this point we use ItemHoverable() and a workaround (temporarily + // clear ActiveId, which is equivalent to the change provided by _AllowWhenBLockedByActiveItem). + // - This allows columns to be marked as hovered when e.g. clicking a button inside the column, or using drag and drop. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + table_instance->HoveredRowLast = table_instance->HoveredRowNext; + table_instance->HoveredRowNext = -1; + table->HoveredColumnBody = -1; + table->HoveredColumnBorder = -1; + const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table_instance->LastOuterHeight)); + const ImGuiID backup_active_id = g.ActiveId; + g.ActiveId = 0; + const bool is_hovering_table = ItemHoverable(mouse_hit_rect, 0, ImGuiItemFlags_None); + g.ActiveId = backup_active_id; + + // [Part 6] Setup final position, offset, skip/clip states and clipping rectangles, detect hovered column + // Process columns in their visible orders as we are comparing the visible order and adjusting host_clip_rect while looping. + int visible_n = 0; + bool has_at_least_one_column_requesting_output = false; + bool offset_x_frozen = (table->FreezeColumnsCount > 0); + float offset_x = ((table->FreezeColumnsCount > 0) ? table->OuterRect.Min.x : work_rect.Min.x) + table->OuterPaddingX - table->CellSpacingX1; + ImRect host_clip_rect = table->InnerClipRect; + //host_clip_rect.Max.x += table->CellPaddingX + table->CellSpacingX2; + ImBitArrayClearAllBits(table->VisibleMaskByIndex, table->ColumnsCount); + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + + column->NavLayerCurrent = (ImS8)(table->FreezeRowsCount > 0 ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); // Use Count NOT request so Header line changes layer when frozen + + if (offset_x_frozen && table->FreezeColumnsCount == visible_n) + { + offset_x += work_rect.Min.x - table->OuterRect.Min.x; + offset_x_frozen = false; + } + + // Clear status flags + column->Flags &= ~ImGuiTableColumnFlags_StatusMask_; + + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + { + // Hidden column: clear a few fields and we are done with it for the remainder of the function. + // We set a zero-width clip rect but set Min.y/Max.y properly to not interfere with the clipper. + column->MinX = column->MaxX = column->WorkMinX = column->ClipRect.Min.x = column->ClipRect.Max.x = offset_x; + column->WidthGiven = 0.0f; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + column->IsVisibleX = column->IsVisibleY = column->IsRequestOutput = false; + column->IsSkipItems = true; + column->ItemWidth = 1.0f; + continue; + } + + // Detect hovered column + if (is_hovering_table && g.IO.MousePos.x >= column->ClipRect.Min.x && g.IO.MousePos.x < column->ClipRect.Max.x) + table->HoveredColumnBody = (ImGuiTableColumnIdx)column_n; + + // Lock start position + column->MinX = offset_x; + + // Lock width based on start position and minimum/maximum width for this position + float max_width = TableGetMaxColumnWidth(table, column_n); + column->WidthGiven = ImMin(column->WidthGiven, max_width); + column->WidthGiven = ImMax(column->WidthGiven, ImMin(column->WidthRequest, table->MinColumnWidth)); + column->MaxX = offset_x + column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + + // Lock other positions + // - ClipRect.Min.x: Because merging draw commands doesn't compare min boundaries, we make ClipRect.Min.x match left bounds to be consistent regardless of merging. + // - ClipRect.Max.x: using WorkMaxX instead of MaxX (aka including padding) makes things more consistent when resizing down, tho slightly detrimental to visibility in very-small column. + // - ClipRect.Max.x: using MaxX makes it easier for header to receive hover highlight with no discontinuity and display sorting arrow. + // - FIXME-TABLE: We want equal width columns to have equal (ClipRect.Max.x - WorkMinX) width, which means ClipRect.max.x cannot stray off host_clip_rect.Max.x else right-most column may appear shorter. + column->WorkMinX = column->MinX + table->CellPaddingX + table->CellSpacingX1; + column->WorkMaxX = column->MaxX - table->CellPaddingX - table->CellSpacingX2; // Expected max + column->ItemWidth = ImFloor(column->WidthGiven * 0.65f); + column->ClipRect.Min.x = column->MinX; + column->ClipRect.Min.y = work_rect.Min.y; + column->ClipRect.Max.x = column->MaxX; //column->WorkMaxX; + column->ClipRect.Max.y = FLT_MAX; + column->ClipRect.ClipWithFull(host_clip_rect); + + // Mark column as Clipped (not in sight) + // Note that scrolling tables (where inner_window != outer_window) handle Y clipped earlier in BeginTable() so IsVisibleY really only applies to non-scrolling tables. + // FIXME-TABLE: Because InnerClipRect.Max.y is conservatively ==outer_window->ClipRect.Max.y, we never can mark columns _Above_ the scroll line as not IsVisibleY. + // Taking advantage of LastOuterHeight would yield good results there... + // FIXME-TABLE: Y clipping is disabled because it effectively means not submitting will reduce contents width which is fed to outer_window->DC.CursorMaxPos.x, + // and this may be used (e.g. typically by outer_window using AlwaysAutoResize or outer_window's horizontal scrollbar, but could be something else). + // Possible solution to preserve last known content width for clipped column. Test 'table_reported_size' fails when enabling Y clipping and window is resized small. + column->IsVisibleX = (column->ClipRect.Max.x > column->ClipRect.Min.x); + column->IsVisibleY = true; // (column->ClipRect.Max.y > column->ClipRect.Min.y); + const bool is_visible = column->IsVisibleX; //&& column->IsVisibleY; + if (is_visible) + ImBitArraySetBit(table->VisibleMaskByIndex, column_n); + + // Mark column as requesting output from user. Note that fixed + non-resizable sets are auto-fitting at all times and therefore always request output. + column->IsRequestOutput = is_visible || column->AutoFitQueue != 0 || column->CannotSkipItemsQueue != 0; + + // Mark column as SkipItems (ignoring all items/layout) + // (table->HostSkipItems is a copy of inner_window->SkipItems before we cleared it above in Part 2) + column->IsSkipItems = !column->IsEnabled || table->HostSkipItems; + if (column->IsSkipItems) + IM_ASSERT(!is_visible); + if (column->IsRequestOutput && !column->IsSkipItems) + has_at_least_one_column_requesting_output = true; + + // Update status flags + column->Flags |= ImGuiTableColumnFlags_IsEnabled; + if (is_visible) + column->Flags |= ImGuiTableColumnFlags_IsVisible; + if (column->SortOrder != -1) + column->Flags |= ImGuiTableColumnFlags_IsSorted; + if (table->HoveredColumnBody == column_n) + column->Flags |= ImGuiTableColumnFlags_IsHovered; + + // Alignment + // FIXME-TABLE: This align based on the whole column width, not per-cell, and therefore isn't useful in + // many cases (to be able to honor this we might be able to store a log of cells width, per row, for + // visible rows, but nav/programmatic scroll would have visible artifacts.) + //if (column->Flags & ImGuiTableColumnFlags_AlignRight) + // column->WorkMinX = ImMax(column->WorkMinX, column->MaxX - column->ContentWidthRowsUnfrozen); + //else if (column->Flags & ImGuiTableColumnFlags_AlignCenter) + // column->WorkMinX = ImLerp(column->WorkMinX, ImMax(column->StartX, column->MaxX - column->ContentWidthRowsUnfrozen), 0.5f); + + // Reset content width variables + column->ContentMaxXFrozen = column->ContentMaxXUnfrozen = column->WorkMinX; + column->ContentMaxXHeadersUsed = column->ContentMaxXHeadersIdeal = column->WorkMinX; + + // Don't decrement auto-fit counters until container window got a chance to submit its items + if (table->HostSkipItems == false) + { + column->AutoFitQueue >>= 1; + column->CannotSkipItemsQueue >>= 1; + } + + if (visible_n < table->FreezeColumnsCount) + host_clip_rect.Min.x = ImClamp(column->MaxX + TABLE_BORDER_SIZE, host_clip_rect.Min.x, host_clip_rect.Max.x); + + offset_x += column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; + visible_n++; + } + + // In case the table is visible (e.g. decorations) but all columns clipped, we keep a column visible. + // Else if give no chance to a clipper-savy user to submit rows and therefore total contents height used by scrollbar. + if (has_at_least_one_column_requesting_output == false) + { + table->Columns[table->LeftMostEnabledColumn].IsRequestOutput = true; + table->Columns[table->LeftMostEnabledColumn].IsSkipItems = false; + } + + // [Part 7] Detect/store when we are hovering the unused space after the right-most column (so e.g. context menus can react on it) + // Clear Resizable flag if none of our column are actually resizable (either via an explicit _NoResize flag, either + // because of using _WidthAuto/_WidthStretch). This will hide the resizing option from the context menu. + const float unused_x1 = ImMax(table->WorkRect.Min.x, table->Columns[table->RightMostEnabledColumn].ClipRect.Max.x); + if (is_hovering_table && table->HoveredColumnBody == -1) + { + if (g.IO.MousePos.x >= unused_x1) + table->HoveredColumnBody = (ImGuiTableColumnIdx)table->ColumnsCount; + } + if (has_resizable == false && (table->Flags & ImGuiTableFlags_Resizable)) + table->Flags &= ~ImGuiTableFlags_Resizable; + + // [Part 8] Lock actual OuterRect/WorkRect right-most position. + // This is done late to handle the case of fixed-columns tables not claiming more widths that they need. + // Because of this we are careful with uses of WorkRect and InnerClipRect before this point. + if (table->RightMostStretchedColumn != -1) + table->Flags &= ~ImGuiTableFlags_NoHostExtendX; + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + table->OuterRect.Max.x = table->WorkRect.Max.x = unused_x1; + table->InnerClipRect.Max.x = ImMin(table->InnerClipRect.Max.x, unused_x1); + } + table->InnerWindow->ParentWorkRect = table->WorkRect; + table->BorderX1 = table->InnerClipRect.Min.x + ((table->Flags & ImGuiTableFlags_BordersOuterV) ? 1.0f : 0.0f); + table->BorderX2 = table->InnerClipRect.Max.x; + + // Setup window's WorkRect.Max.y for GetContentRegionAvail(). Other values will be updated in each TableBeginCell() call. + float window_content_max_y; + if (table->Flags & ImGuiTableFlags_NoHostExtendY) + window_content_max_y = table->OuterRect.Max.y; + else + window_content_max_y = ImMax(table->InnerWindow->ContentRegionRect.Max.y, (table->Flags & ImGuiTableFlags_ScrollY) ? 0.0f : table->OuterRect.Max.y); + table->InnerWindow->WorkRect.Max.y = ImClamp(window_content_max_y - g.Style.CellPadding.y, table->InnerWindow->WorkRect.Min.y, table->InnerWindow->WorkRect.Max.y); + + // [Part 9] Allocate draw channels and setup background cliprect + TableSetupDrawChannels(table); + + // [Part 10] Hit testing on borders + if (table->Flags & ImGuiTableFlags_Resizable) + TableUpdateBorders(table); + table_instance->LastFirstRowHeight = 0.0f; + table->IsLayoutLocked = true; + table->IsUsingHeaders = false; + + // [Part 11] Context menu + if (TableBeginContextMenuPopup(table)) + { + TableDrawContextMenu(table); + EndPopup(); + } + + // [Part 12] Sanitize and build sort specs before we have a chance to use them for display. + // This path will only be exercised when sort specs are modified before header rows (e.g. init or visibility change) + if (table->IsSortSpecsDirty && (table->Flags & ImGuiTableFlags_Sortable)) + TableSortSpecsBuild(table); + + // [Part 13] Setup inner window decoration size (for scrolling / nav tracking to properly take account of frozen rows/columns) + if (table->FreezeColumnsRequest > 0) + table->InnerWindow->DecoInnerSizeX1 = table->Columns[table->DisplayOrderToIndex[table->FreezeColumnsRequest - 1]].MaxX - table->OuterRect.Min.x; + if (table->FreezeRowsRequest > 0) + table->InnerWindow->DecoInnerSizeY1 = table_instance->LastFrozenHeight; + table_instance->LastFrozenHeight = 0.0f; + + // Initial state + ImGuiWindow* inner_window = table->InnerWindow; + if (table->Flags & ImGuiTableFlags_NoClip) + table->DrawSplitter->SetCurrentChannel(inner_window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + else + inner_window->DrawList->PushClipRect(inner_window->ClipRect.Min, inner_window->ClipRect.Max, false); +} + +// Process hit-testing on resizing borders. Actual size change will be applied in EndTable() +// - Set table->HoveredColumnBorder with a short delay/timer to reduce visual feedback noise. +void ImGui::TableUpdateBorders(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(table->Flags & ImGuiTableFlags_Resizable); + + // At this point OuterRect height may be zero or under actual final height, so we rely on temporal coherency and + // use the final height from last frame. Because this is only affecting _interaction_ with columns, it is not + // really problematic (whereas the actual visual will be displayed in EndTable() and using the current frame height). + // Actual columns highlight/render will be performed in EndTable() and not be affected. + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float hit_half_width = TABLE_RESIZE_SEPARATOR_HALF_THICKNESS; + const float hit_y1 = table->OuterRect.Min.y; + const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table_instance->LastOuterHeight); + const float hit_y2_head = hit_y1 + table_instance->LastFirstRowHeight; + + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) + continue; + + // ImGuiTableFlags_NoBordersInBodyUntilResize will be honored in TableDrawBorders() + const float border_y2_hit = (table->Flags & ImGuiTableFlags_NoBordersInBody) ? hit_y2_head : hit_y2_body; + if ((table->Flags & ImGuiTableFlags_NoBordersInBody) && table->IsUsingHeaders == false) + continue; + + if (!column->IsVisibleX && table->LastResizedColumn != column_n) + continue; + + ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent); + ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit); + ItemAdd(hit_rect, column_id, NULL, ImGuiItemFlags_NoNav); + //GetForegroundDrawList()->AddRect(hit_rect.Min, hit_rect.Max, IM_COL32(255, 0, 0, 100)); + + bool hovered = false, held = false; + bool pressed = ButtonBehavior(hit_rect, column_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_NoNavFocus); + if (pressed && IsMouseDoubleClicked(0)) + { + TableSetColumnWidthAutoSingle(table, column_n); + ClearActiveID(); + held = hovered = false; + } + if (held) + { + if (table->LastResizedColumn == -1) + table->ResizeLockMinContentsX2 = table->RightMostEnabledColumn != -1 ? table->Columns[table->RightMostEnabledColumn].MaxX : -FLT_MAX; + table->ResizedColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + } + if ((hovered && g.HoveredIdTimer > TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER) || held) + { + table->HoveredColumnBorder = (ImGuiTableColumnIdx)column_n; + SetMouseCursor(ImGuiMouseCursor_ResizeEW); + } + } +} + +void ImGui::EndTable() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Only call EndTable() if BeginTable() returns true!"); + + // This assert would be very useful to catch a common error... unfortunately it would probably trigger in some + // cases, and for consistency user may sometimes output empty tables (and still benefit from e.g. outer border) + //IM_ASSERT(table->IsLayoutLocked && "Table unused: never called TableNextRow(), is that the intent?"); + + // If the user never got to call TableNextRow() or TableNextColumn(), we call layout ourselves to ensure all our + // code paths are consistent (instead of just hoping that TableBegin/TableEnd will work), get borders drawn, etc. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + const ImGuiTableFlags flags = table->Flags; + ImGuiWindow* inner_window = table->InnerWindow; + ImGuiWindow* outer_window = table->OuterWindow; + ImGuiTableTempData* temp_data = table->TempData; + IM_ASSERT(inner_window == g.CurrentWindow); + IM_ASSERT(outer_window == inner_window || outer_window == inner_window->ParentWindow); + + if (table->IsInsideRow) + TableEndRow(table); + + // Context menu in columns body + if (flags & ImGuiTableFlags_ContextMenuInBody) + if (table->HoveredColumnBody != -1 && !IsAnyItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + TableOpenContextMenu((int)table->HoveredColumnBody); + + // Finalize table height + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + inner_window->DC.PrevLineSize = temp_data->HostBackupPrevLineSize; + inner_window->DC.CurrLineSize = temp_data->HostBackupCurrLineSize; + inner_window->DC.CursorMaxPos = temp_data->HostBackupCursorMaxPos; + const float inner_content_max_y = table->RowPosY2; + IM_ASSERT(table->RowPosY2 == inner_window->DC.CursorPos.y); + if (inner_window != outer_window) + inner_window->DC.CursorMaxPos.y = inner_content_max_y; + else if (!(flags & ImGuiTableFlags_NoHostExtendY)) + table->OuterRect.Max.y = table->InnerRect.Max.y = ImMax(table->OuterRect.Max.y, inner_content_max_y); // Patch OuterRect/InnerRect height + table->WorkRect.Max.y = ImMax(table->WorkRect.Max.y, table->OuterRect.Max.y); + table_instance->LastOuterHeight = table->OuterRect.GetHeight(); + + // Setup inner scrolling range + // FIXME: This ideally should be done earlier, in BeginTable() SetNextWindowContentSize call, just like writing to inner_window->DC.CursorMaxPos.y, + // but since the later is likely to be impossible to do we'd rather update both axises together. + if (table->Flags & ImGuiTableFlags_ScrollX) + { + const float outer_padding_for_border = (table->Flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; + float max_pos_x = table->InnerWindow->DC.CursorMaxPos.x; + if (table->RightMostEnabledColumn != -1) + max_pos_x = ImMax(max_pos_x, table->Columns[table->RightMostEnabledColumn].WorkMaxX + table->CellPaddingX + table->OuterPaddingX - outer_padding_for_border); + if (table->ResizedColumn != -1) + max_pos_x = ImMax(max_pos_x, table->ResizeLockMinContentsX2); + table->InnerWindow->DC.CursorMaxPos.x = max_pos_x; + } + + // Pop clipping rect + if (!(flags & ImGuiTableFlags_NoClip)) + inner_window->DrawList->PopClipRect(); + inner_window->ClipRect = inner_window->DrawList->_ClipRectStack.back(); + + // Draw borders + if ((flags & ImGuiTableFlags_Borders) != 0) + TableDrawBorders(table); + +#if 0 + // Strip out dummy channel draw calls + // We have no way to prevent user submitting direct ImDrawList calls into a hidden column (but ImGui:: calls will be clipped out) + // Pros: remove draw calls which will have no effect. since they'll have zero-size cliprect they may be early out anyway. + // Cons: making it harder for users watching metrics/debugger to spot the wasted vertices. + if (table->DummyDrawChannel != (ImGuiTableColumnIdx)-1) + { + ImDrawChannel* dummy_channel = &table->DrawSplitter._Channels[table->DummyDrawChannel]; + dummy_channel->_CmdBuffer.resize(0); + dummy_channel->_IdxBuffer.resize(0); + } +#endif + + // Flatten channels and merge draw calls + ImDrawListSplitter* splitter = table->DrawSplitter; + splitter->SetCurrentChannel(inner_window->DrawList, 0); + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + TableMergeDrawChannels(table); + splitter->Merge(inner_window->DrawList); + + // Update ColumnsAutoFitWidth to get us ahead for host using our size to auto-resize without waiting for next BeginTable() + float auto_fit_width_for_fixed = 0.0f; + float auto_fit_width_for_stretched = 0.0f; + float auto_fit_width_for_stretched_min = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n)) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + float column_width_request = ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) ? column->WidthRequest : TableGetColumnWidthAuto(table, column); + if (column->Flags & ImGuiTableColumnFlags_WidthFixed) + auto_fit_width_for_fixed += column_width_request; + else + auto_fit_width_for_stretched += column_width_request; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) && (column->Flags & ImGuiTableColumnFlags_NoResize) != 0) + auto_fit_width_for_stretched_min = ImMax(auto_fit_width_for_stretched_min, column_width_request / (column->StretchWeight / table->ColumnsStretchSumWeights)); + } + const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); + table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount + auto_fit_width_for_fixed + ImMax(auto_fit_width_for_stretched, auto_fit_width_for_stretched_min); + + // Update scroll + if ((table->Flags & ImGuiTableFlags_ScrollX) == 0 && inner_window != outer_window) + { + inner_window->Scroll.x = 0.0f; + } + else if (table->LastResizedColumn != -1 && table->ResizedColumn == -1 && inner_window->ScrollbarX && table->InstanceInteracted == table->InstanceCurrent) + { + // When releasing a column being resized, scroll to keep the resulting column in sight + const float neighbor_width_to_keep_visible = table->MinColumnWidth + table->CellPaddingX * 2.0f; + ImGuiTableColumn* column = &table->Columns[table->LastResizedColumn]; + if (column->MaxX < table->InnerClipRect.Min.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x - neighbor_width_to_keep_visible, 1.0f); + else if (column->MaxX > table->InnerClipRect.Max.x) + SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x + neighbor_width_to_keep_visible, 1.0f); + } + + // Apply resizing/dragging at the end of the frame + if (table->ResizedColumn != -1 && table->InstanceCurrent == table->InstanceInteracted) + { + ImGuiTableColumn* column = &table->Columns[table->ResizedColumn]; + const float new_x2 = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + TABLE_RESIZE_SEPARATOR_HALF_THICKNESS); + const float new_width = ImFloor(new_x2 - column->MinX - table->CellSpacingX1 - table->CellPaddingX * 2.0f); + table->ResizedColumnNextWidth = new_width; + } + + // Pop from id stack + IM_ASSERT_USER_ERROR(inner_window->IDStack.back() == table_instance->TableInstanceID, "Mismatching PushID/PopID!"); + IM_ASSERT_USER_ERROR(outer_window->DC.ItemWidthStack.Size >= temp_data->HostBackupItemWidthStackSize, "Too many PopItemWidth!"); + if (table->InstanceCurrent > 0) + PopID(); + PopID(); + + // Restore window data that we modified + const ImVec2 backup_outer_max_pos = outer_window->DC.CursorMaxPos; + inner_window->WorkRect = temp_data->HostBackupWorkRect; + inner_window->ParentWorkRect = temp_data->HostBackupParentWorkRect; + inner_window->SkipItems = table->HostSkipItems; + outer_window->DC.CursorPos = table->OuterRect.Min; + outer_window->DC.ItemWidth = temp_data->HostBackupItemWidth; + outer_window->DC.ItemWidthStack.Size = temp_data->HostBackupItemWidthStackSize; + outer_window->DC.ColumnsOffset = temp_data->HostBackupColumnsOffset; + + // Layout in outer window + // (FIXME: To allow auto-fit and allow desirable effect of SameLine() we dissociate 'used' vs 'ideal' size by overriding + // CursorPosPrevLine and CursorMaxPos manually. That should be a more general layout feature, see same problem e.g. #3414) + if (inner_window != outer_window) + { + EndChild(); + } + else + { + ItemSize(table->OuterRect.GetSize()); + ItemAdd(table->OuterRect, 0); + } + + // Override declared contents width/height to enable auto-resize while not needlessly adding a scrollbar + if (table->Flags & ImGuiTableFlags_NoHostExtendX) + { + // FIXME-TABLE: Could we remove this section? + // ColumnsAutoFitWidth may be one frame ahead here since for Fixed+NoResize is calculated from latest contents + IM_ASSERT((table->Flags & ImGuiTableFlags_ScrollX) == 0); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth); + } + else if (temp_data->UserOuterSize.x <= 0.0f) + { + const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollX) ? inner_window->ScrollbarSizes.x : 0.0f; + outer_window->DC.IdealMaxPos.x = ImMax(outer_window->DC.IdealMaxPos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth + decoration_size - temp_data->UserOuterSize.x); + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, ImMin(table->OuterRect.Max.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth)); + } + else + { + outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Max.x); + } + if (temp_data->UserOuterSize.y <= 0.0f) + { + const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollY) ? inner_window->ScrollbarSizes.y : 0.0f; + outer_window->DC.IdealMaxPos.y = ImMax(outer_window->DC.IdealMaxPos.y, inner_content_max_y + decoration_size - temp_data->UserOuterSize.y); + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, ImMin(table->OuterRect.Max.y, inner_content_max_y)); + } + else + { + // OuterRect.Max.y may already have been pushed downward from the initial value (unless ImGuiTableFlags_NoHostExtendY is set) + outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, table->OuterRect.Max.y); + } + + // Save settings + if (table->IsSettingsDirty) + TableSaveSettings(table); + table->IsInitializing = false; + + // Clear or restore current table, if any + IM_ASSERT(g.CurrentWindow == outer_window && g.CurrentTable == table); + IM_ASSERT(g.TablesTempDataStacked > 0); + temp_data = (--g.TablesTempDataStacked > 0) ? &g.TablesTempData[g.TablesTempDataStacked - 1] : NULL; + g.CurrentTable = temp_data ? g.Tables.GetByIndex(temp_data->TableIndex) : NULL; + if (g.CurrentTable) + { + g.CurrentTable->TempData = temp_data; + g.CurrentTable->DrawSplitter = &temp_data->DrawSplitter; + } + outer_window->DC.CurrentTableIdx = g.CurrentTable ? g.Tables.GetIndex(g.CurrentTable) : -1; + NavUpdateCurrentWindowIsScrollPushableX(); +} + +// See "COLUMN SIZING POLICIES" comments at the top of this file +// If (init_width_or_weight <= 0.0f) it is ignored +void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_id) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call call TableSetupColumn() before first row!"); + IM_ASSERT((flags & ImGuiTableColumnFlags_StatusMask_) == 0 && "Illegal to pass StatusMask values to TableSetupColumn()"); + if (table->DeclColumnsCount >= table->ColumnsCount) + { + IM_ASSERT_USER_ERROR(table->DeclColumnsCount < table->ColumnsCount, "Called TableSetupColumn() too many times!"); + return; + } + + ImGuiTableColumn* column = &table->Columns[table->DeclColumnsCount]; + table->DeclColumnsCount++; + + // Assert when passing a width or weight if policy is entirely left to default, to avoid storing width into weight and vice-versa. + // Give a grace to users of ImGuiTableFlags_ScrollX. + if (table->IsDefaultSizingPolicy && (flags & ImGuiTableColumnFlags_WidthMask_) == 0 && (flags & ImGuiTableFlags_ScrollX) == 0) + IM_ASSERT(init_width_or_weight <= 0.0f && "Can only specify width/weight if sizing policy is set explicitly in either Table or Column."); + + // When passing a width automatically enforce WidthFixed policy + // (whereas TableSetupColumnFlags would default to WidthAuto if table is not Resizable) + if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0 && init_width_or_weight > 0.0f) + if ((table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedFit || (table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) + flags |= ImGuiTableColumnFlags_WidthFixed; + + TableSetupColumnFlags(table, column, flags); + column->UserID = user_id; + flags = column->Flags; + + // Initialize defaults + column->InitStretchWeightOrWidth = init_width_or_weight; + if (table->IsInitializing) + { + // Init width or weight + if (column->WidthRequest < 0.0f && column->StretchWeight < 0.0f) + { + if ((flags & ImGuiTableColumnFlags_WidthFixed) && init_width_or_weight > 0.0f) + column->WidthRequest = init_width_or_weight; + if (flags & ImGuiTableColumnFlags_WidthStretch) + column->StretchWeight = (init_width_or_weight > 0.0f) ? init_width_or_weight : -1.0f; + + // Disable auto-fit if an explicit width/weight has been specified + if (init_width_or_weight > 0.0f) + column->AutoFitQueue = 0x00; + } + + // Init default visibility/sort state + if ((flags & ImGuiTableColumnFlags_DefaultHide) && (table->SettingsLoadedFlags & ImGuiTableFlags_Hideable) == 0) + column->IsUserEnabled = column->IsUserEnabledNextFrame = false; + if (flags & ImGuiTableColumnFlags_DefaultSort && (table->SettingsLoadedFlags & ImGuiTableFlags_Sortable) == 0) + { + column->SortOrder = 0; // Multiple columns using _DefaultSort will be reassigned unique SortOrder values when building the sort specs. + column->SortDirection = (column->Flags & ImGuiTableColumnFlags_PreferSortDescending) ? (ImS8)ImGuiSortDirection_Descending : (ImU8)(ImGuiSortDirection_Ascending); + } + } + + // Store name (append with zero-terminator in contiguous buffer) + column->NameOffset = -1; + if (label != NULL && label[0] != 0) + { + column->NameOffset = (ImS16)table->ColumnsNames.size(); + table->ColumnsNames.append(label, label + strlen(label) + 1); + } +} + +// [Public] +void ImGui::TableSetupScrollFreeze(int columns, int rows) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); + IM_ASSERT(table->IsLayoutLocked == false && "Need to call TableSetupColumn() before first row!"); + IM_ASSERT(columns >= 0 && columns < IMGUI_TABLE_MAX_COLUMNS); + IM_ASSERT(rows >= 0 && rows < 128); // Arbitrary limit + + table->FreezeColumnsRequest = (table->Flags & ImGuiTableFlags_ScrollX) ? (ImGuiTableColumnIdx)ImMin(columns, table->ColumnsCount) : 0; + table->FreezeColumnsCount = (table->InnerWindow->Scroll.x != 0.0f) ? table->FreezeColumnsRequest : 0; + table->FreezeRowsRequest = (table->Flags & ImGuiTableFlags_ScrollY) ? (ImGuiTableColumnIdx)rows : 0; + table->FreezeRowsCount = (table->InnerWindow->Scroll.y != 0.0f) ? table->FreezeRowsRequest : 0; + table->IsUnfrozenRows = (table->FreezeRowsCount == 0); // Make sure this is set before TableUpdateLayout() so ImGuiListClipper can benefit from it.b + + // Ensure frozen columns are ordered in their section. We still allow multiple frozen columns to be reordered. + // FIXME-TABLE: This work for preserving 2143 into 21|43. How about 4321 turning into 21|43? (preserve relative order in each section) + for (int column_n = 0; column_n < table->FreezeColumnsRequest; column_n++) + { + int order_n = table->DisplayOrderToIndex[column_n]; + if (order_n != column_n && order_n >= table->FreezeColumnsRequest) + { + ImSwap(table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder, table->Columns[table->DisplayOrderToIndex[column_n]].DisplayOrder); + ImSwap(table->DisplayOrderToIndex[order_n], table->DisplayOrderToIndex[column_n]); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Tables: Simple accessors +//----------------------------------------------------------------------------- +// - TableGetColumnCount() +// - TableGetColumnName() +// - TableGetColumnName() [Internal] +// - TableSetColumnEnabled() +// - TableGetColumnFlags() +// - TableGetCellBgRect() [Internal] +// - TableGetColumnResizeID() [Internal] +// - TableGetHoveredColumn() [Internal] +// - TableGetHoveredRow() [Internal] +// - TableSetBgColor() +//----------------------------------------------------------------------------- + +int ImGui::TableGetColumnCount() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + return table ? table->ColumnsCount : 0; +} + +const char* ImGui::TableGetColumnName(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return NULL; + if (column_n < 0) + column_n = table->CurrentColumn; + return TableGetColumnName(table, column_n); +} + +const char* ImGui::TableGetColumnName(const ImGuiTable* table, int column_n) +{ + if (table->IsLayoutLocked == false && column_n >= table->DeclColumnsCount) + return ""; // NameOffset is invalid at this point + const ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->NameOffset == -1) + return ""; + return &table->ColumnsNames.Buf[column->NameOffset]; +} + +// Change user accessible enabled/disabled state of a column (often perceived as "showing/hiding" from users point of view) +// Note that end-user can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) +// - Require table to have the ImGuiTableFlags_Hideable flag because we are manipulating user accessible state. +// - Request will be applied during next layout, which happens on the first call to TableNextRow() after BeginTable(). +// - For the getter you can test (TableGetColumnFlags() & ImGuiTableColumnFlags_IsEnabled) != 0. +// - Alternative: the ImGuiTableColumnFlags_Disabled is an overriding/master disable flag which will also hide the column from context menu. +void ImGui::TableSetColumnEnabled(int column_n, bool enabled) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + if (!table) + return; + IM_ASSERT(table->Flags & ImGuiTableFlags_Hideable); // See comments above + if (column_n < 0) + column_n = table->CurrentColumn; + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column = &table->Columns[column_n]; + column->IsUserEnabledNextFrame = enabled; +} + +// We allow querying for an extra column in order to poll the IsHovered state of the right-most section +ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return ImGuiTableColumnFlags_None; + if (column_n < 0) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) + return (table->HoveredColumnBody == column_n) ? ImGuiTableColumnFlags_IsHovered : ImGuiTableColumnFlags_None; + return table->Columns[column_n].Flags; +} + +// Return the cell rectangle based on currently known height. +// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. +// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it, or in TableEndRow() when we locked that height. +// - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right +// columns report a small offset so their CellBgRect can extend up to the outer border. +// FIXME: But the rendering code in TableEndRow() nullifies that with clamping required for scrolling. +ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float x1 = column->MinX; + float x2 = column->MaxX; + //if (column->PrevEnabledColumn == -1) + // x1 -= table->OuterPaddingX; + //if (column->NextEnabledColumn == -1) + // x2 += table->OuterPaddingX; + x1 = ImMax(x1, table->WorkRect.Min.x); + x2 = ImMin(x2, table->WorkRect.Max.x); + return ImRect(x1, table->RowPosY1, x2, table->RowPosY2); +} + +// Return the resizing ID for the right-side of the given column. +ImGuiID ImGui::TableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no) +{ + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiID instance_id = TableGetInstanceID(table, instance_no); + return instance_id + 1 + column_n; // FIXME: #6140: still not ideal +} + +// Return -1 when table is not hovered. return columns_count if hovering the unused space at the right of the right-most visible column. +int ImGui::TableGetHoveredColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return -1; + return (int)table->HoveredColumnBody; +} + +// Return -1 when table is not hovered. Return maxrow+1 if in table but below last submitted row. +// *IMPORTANT* Unlike TableGetHoveredColumn(), this has a one frame latency in updating the value. +// This difference with is the reason why this is not public yet. +int ImGui::TableGetHoveredRow() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return -1; + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + return (int)table_instance->HoveredRowLast; +} + +void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(target != ImGuiTableBgTarget_None); + + if (color == IM_COL32_DISABLE) + color = 0; + + // We cannot draw neither the cell or row background immediately as we don't know the row height at this point in time. + switch (target) + { + case ImGuiTableBgTarget_CellBg: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + if (column_n == -1) + column_n = table->CurrentColumn; + if (!IM_BITARRAY_TESTBIT(table->VisibleMaskByIndex, column_n)) + return; + if (table->RowCellDataCurrent < 0 || table->RowCellData[table->RowCellDataCurrent].Column != column_n) + table->RowCellDataCurrent++; + ImGuiTableCellData* cell_data = &table->RowCellData[table->RowCellDataCurrent]; + cell_data->BgColor = color; + cell_data->Column = (ImGuiTableColumnIdx)column_n; + break; + } + case ImGuiTableBgTarget_RowBg0: + case ImGuiTableBgTarget_RowBg1: + { + if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard + return; + IM_ASSERT(column_n == -1); + int bg_idx = (target == ImGuiTableBgTarget_RowBg1) ? 1 : 0; + table->RowBgColor[bg_idx] = color; + break; + } + default: + IM_ASSERT(0); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Row changes +//------------------------------------------------------------------------- +// - TableGetRowIndex() +// - TableNextRow() +// - TableBeginRow() [Internal] +// - TableEndRow() [Internal] +//------------------------------------------------------------------------- + +// [Public] Note: for row coloring we use ->RowBgColorCounter which is the same value without counting header rows +int ImGui::TableGetRowIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentRow; +} + +// [Public] Starts into the first cell of a new row +void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + if (table->IsInsideRow) + TableEndRow(table); + + table->LastRowFlags = table->RowFlags; + table->RowFlags = row_flags; + table->RowCellPaddingY = g.Style.CellPadding.y; + table->RowMinHeight = row_min_height; + TableBeginRow(table); + + // We honor min_row_height requested by user, but cannot guarantee per-row maximum height, + // because that would essentially require a unique clipping rectangle per-cell. + table->RowPosY2 += table->RowCellPaddingY * 2.0f; + table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height); + + // Disable output until user calls TableNextColumn() + table->InnerWindow->SkipItems = true; +} + +// [Internal] Only called by TableNextRow() +void ImGui::TableBeginRow(ImGuiTable* table) +{ + ImGuiWindow* window = table->InnerWindow; + IM_ASSERT(!table->IsInsideRow); + + // New row + table->CurrentRow++; + table->CurrentColumn = -1; + table->RowBgColor[0] = table->RowBgColor[1] = IM_COL32_DISABLE; + table->RowCellDataCurrent = -1; + table->IsInsideRow = true; + + // Begin frozen rows + float next_y1 = table->RowPosY2; + if (table->CurrentRow == 0 && table->FreezeRowsCount > 0) + next_y1 = window->DC.CursorPos.y = table->OuterRect.Min.y; + + table->RowPosY1 = table->RowPosY2 = next_y1; + table->RowTextBaseline = 0.0f; + table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent + + window->DC.PrevLineTextBaseOffset = 0.0f; + window->DC.CursorPosPrevLine = ImVec2(window->DC.CursorPos.x, window->DC.CursorPos.y + table->RowCellPaddingY); // This allows users to call SameLine() to share LineSize between columns. + window->DC.PrevLineSize = window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); // This allows users to call SameLine() to share LineSize between columns, and to call it from first column too. + window->DC.IsSameLine = window->DC.IsSetPos = false; + window->DC.CursorMaxPos.y = next_y1; + + // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging. + if (table->RowFlags & ImGuiTableRowFlags_Headers) + { + TableSetBgColor(ImGuiTableBgTarget_RowBg0, GetColorU32(ImGuiCol_TableHeaderBg)); + if (table->CurrentRow == 0) + table->IsUsingHeaders = true; + } +} + +// [Internal] Called by TableNextRow() +void ImGui::TableEndRow(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window == table->InnerWindow); + IM_ASSERT(table->IsInsideRow); + + if (table->CurrentColumn != -1) + TableEndCell(table); + + // Logging + if (g.LogEnabled) + LogRenderedText(NULL, "|"); + + // Position cursor at the bottom of our row so it can be used for e.g. clipping calculation. However it is + // likely that the next call to TableBeginCell() will reposition the cursor to take account of vertical padding. + window->DC.CursorPos.y = table->RowPosY2; + + // Row background fill + const float bg_y1 = table->RowPosY1; + const float bg_y2 = table->RowPosY2; + const bool unfreeze_rows_actual = (table->CurrentRow + 1 == table->FreezeRowsCount); + const bool unfreeze_rows_request = (table->CurrentRow + 1 == table->FreezeRowsRequest); + if (table->CurrentRow == 0) + TableGetInstanceData(table, table->InstanceCurrent)->LastFirstRowHeight = bg_y2 - bg_y1; + + const bool is_visible = (bg_y2 >= table->InnerClipRect.Min.y && bg_y1 <= table->InnerClipRect.Max.y); + if (is_visible) + { + // Update data for TableGetHoveredRow() + if (table->HoveredColumnBody != -1 && g.IO.MousePos.y >= bg_y1 && g.IO.MousePos.y < bg_y2) + TableGetInstanceData(table, table->InstanceCurrent)->HoveredRowNext = table->CurrentRow; + + // Decide of background color for the row + ImU32 bg_col0 = 0; + ImU32 bg_col1 = 0; + if (table->RowBgColor[0] != IM_COL32_DISABLE) + bg_col0 = table->RowBgColor[0]; + else if (table->Flags & ImGuiTableFlags_RowBg) + bg_col0 = GetColorU32((table->RowBgColorCounter & 1) ? ImGuiCol_TableRowBgAlt : ImGuiCol_TableRowBg); + if (table->RowBgColor[1] != IM_COL32_DISABLE) + bg_col1 = table->RowBgColor[1]; + + // Decide of top border color + ImU32 top_border_col = 0; + const float border_size = TABLE_BORDER_SIZE; + if (table->CurrentRow > 0 && (table->Flags & ImGuiTableFlags_BordersInnerH)) + top_border_col = (table->LastRowFlags & ImGuiTableRowFlags_Headers) ? table->BorderColorStrong : table->BorderColorLight; + + const bool draw_cell_bg_color = table->RowCellDataCurrent >= 0; + const bool draw_strong_bottom_border = unfreeze_rows_actual; + if ((bg_col0 | bg_col1 | top_border_col) != 0 || draw_strong_bottom_border || draw_cell_bg_color) + { + // In theory we could call SetWindowClipRectBeforeSetChannel() but since we know TableEndRow() is + // always followed by a change of clipping rectangle we perform the smallest overwrite possible here. + if ((table->Flags & ImGuiTableFlags_NoClip) == 0) + window->DrawList->_CmdHeader.ClipRect = table->Bg0ClipRectForDrawCmd.ToVec4(); + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_BG0); + } + + // Draw row background + // We soft/cpu clip this so all backgrounds and borders can share the same clipping rectangle + if (bg_col0 || bg_col1) + { + ImRect row_rect(table->WorkRect.Min.x, bg_y1, table->WorkRect.Max.x, bg_y2); + row_rect.ClipWith(table->BgClipRect); + if (bg_col0 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col0); + if (bg_col1 != 0 && row_rect.Min.y < row_rect.Max.y) + window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col1); + } + + // Draw cell background color + if (draw_cell_bg_color) + { + ImGuiTableCellData* cell_data_end = &table->RowCellData[table->RowCellDataCurrent]; + for (ImGuiTableCellData* cell_data = &table->RowCellData[0]; cell_data <= cell_data_end; cell_data++) + { + // As we render the BG here we need to clip things (for layout we would not) + // FIXME: This cancels the OuterPadding addition done by TableGetCellBgRect(), need to keep it while rendering correctly while scrolling. + const ImGuiTableColumn* column = &table->Columns[cell_data->Column]; + ImRect cell_bg_rect = TableGetCellBgRect(table, cell_data->Column); + cell_bg_rect.ClipWith(table->BgClipRect); + cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped when scrolling + cell_bg_rect.Max.x = ImMin(cell_bg_rect.Max.x, column->MaxX); + window->DrawList->AddRectFilled(cell_bg_rect.Min, cell_bg_rect.Max, cell_data->BgColor); + } + } + + // Draw top border + if (top_border_col && bg_y1 >= table->BgClipRect.Min.y && bg_y1 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y1), ImVec2(table->BorderX2, bg_y1), top_border_col, border_size); + + // Draw bottom border at the row unfreezing mark (always strong) + if (draw_strong_bottom_border && bg_y2 >= table->BgClipRect.Min.y && bg_y2 < table->BgClipRect.Max.y) + window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y2), ImVec2(table->BorderX2, bg_y2), table->BorderColorStrong, border_size); + } + + // End frozen rows (when we are past the last frozen row line, teleport cursor and alter clipping rectangle) + // We need to do that in TableEndRow() instead of TableBeginRow() so the list clipper can mark end of row and + // get the new cursor position. + if (unfreeze_rows_request) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->Columns[column_n].NavLayerCurrent = ImGuiNavLayer_Main; + if (unfreeze_rows_actual) + { + IM_ASSERT(table->IsUnfrozenRows == false); + const float y0 = ImMax(table->RowPosY2 + 1, window->InnerClipRect.Min.y); + table->IsUnfrozenRows = true; + TableGetInstanceData(table, table->InstanceCurrent)->LastFrozenHeight = y0 - table->OuterRect.Min.y; + + // BgClipRect starts as table->InnerClipRect, reduce it now and make BgClipRectForDrawCmd == BgClipRect + table->BgClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y = ImMin(y0, window->InnerClipRect.Max.y); + table->BgClipRect.Max.y = table->Bg2ClipRectForDrawCmd.Max.y = window->InnerClipRect.Max.y; + table->Bg2DrawChannelCurrent = table->Bg2DrawChannelUnfrozen; + IM_ASSERT(table->Bg2ClipRectForDrawCmd.Min.y <= table->Bg2ClipRectForDrawCmd.Max.y); + + float row_height = table->RowPosY2 - table->RowPosY1; + table->RowPosY2 = window->DC.CursorPos.y = table->WorkRect.Min.y + table->RowPosY2 - table->OuterRect.Min.y; + table->RowPosY1 = table->RowPosY2 - row_height; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + column->DrawChannelCurrent = column->DrawChannelUnfrozen; + column->ClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y; + } + + // Update cliprect ahead of TableBeginCell() so clipper can access to new ClipRect->Min.y + SetWindowClipRectBeforeSetChannel(window, table->Columns[0].ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Columns[0].DrawChannelCurrent); + } + + if (!(table->RowFlags & ImGuiTableRowFlags_Headers)) + table->RowBgColorCounter++; + table->IsInsideRow = false; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns changes +//------------------------------------------------------------------------- +// - TableGetColumnIndex() +// - TableSetColumnIndex() +// - TableNextColumn() +// - TableBeginCell() [Internal] +// - TableEndCell() [Internal] +//------------------------------------------------------------------------- + +int ImGui::TableGetColumnIndex() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return 0; + return table->CurrentColumn; +} + +// [Public] Append into a specific column +bool ImGui::TableSetColumnIndex(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->CurrentColumn != column_n) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + IM_ASSERT(column_n >= 0 && table->ColumnsCount); + TableBeginCell(table, column_n); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + return table->Columns[column_n].IsRequestOutput; +} + +// [Public] Append into the next column, wrap and create a new row when already on last column +bool ImGui::TableNextColumn() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (!table) + return false; + + if (table->IsInsideRow && table->CurrentColumn + 1 < table->ColumnsCount) + { + if (table->CurrentColumn != -1) + TableEndCell(table); + TableBeginCell(table, table->CurrentColumn + 1); + } + else + { + TableNextRow(); + TableBeginCell(table, 0); + } + + // Return whether the column is visible. User may choose to skip submitting items based on this return value, + // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. + return table->Columns[table->CurrentColumn].IsRequestOutput; +} + + +// [Internal] Called by TableSetColumnIndex()/TableNextColumn() +// This is called very frequently, so we need to be mindful of unnecessary overhead. +// FIXME-TABLE FIXME-OPT: Could probably shortcut some things for non-active or clipped columns. +void ImGui::TableBeginCell(ImGuiTable* table, int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTableColumn* column = &table->Columns[column_n]; + ImGuiWindow* window = table->InnerWindow; + table->CurrentColumn = column_n; + + // Start position is roughly ~~ CellRect.Min + CellPadding + Indent + float start_x = column->WorkMinX; + if (column->Flags & ImGuiTableColumnFlags_IndentEnable) + start_x += table->RowIndentOffsetX; // ~~ += window.DC.Indent.x - table->HostIndentX, except we locked it for the row. + + window->DC.CursorPos.x = start_x; + window->DC.CursorPos.y = table->RowPosY1 + table->RowCellPaddingY; + window->DC.CursorMaxPos.x = window->DC.CursorPos.x; + window->DC.ColumnsOffset.x = start_x - window->Pos.x - window->DC.Indent.x; // FIXME-WORKRECT + window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x; // PrevLine.y is preserved. This allows users to call SameLine() to share LineSize between columns. + window->DC.CurrLineTextBaseOffset = table->RowTextBaseline; + window->DC.NavLayerCurrent = (ImGuiNavLayer)column->NavLayerCurrent; + + // Note how WorkRect.Max.y is only set once during layout + window->WorkRect.Min.y = window->DC.CursorPos.y; + window->WorkRect.Min.x = column->WorkMinX; + window->WorkRect.Max.x = column->WorkMaxX; + window->DC.ItemWidth = column->ItemWidth; + + window->SkipItems = column->IsSkipItems; + if (column->IsSkipItems) + { + g.LastItemData.ID = 0; + g.LastItemData.StatusFlags = 0; + } + + if (table->Flags & ImGuiTableFlags_NoClip) + { + // FIXME: if we end up drawing all borders/bg in EndTable, could remove this and just assert that channel hasn't changed. + table->DrawSplitter->SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); + //IM_ASSERT(table->DrawSplitter._Current == TABLE_DRAW_CHANNEL_NOCLIP); + } + else + { + // FIXME-TABLE: Could avoid this if draw channel is dummy channel? + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); + } + + // Logging + if (g.LogEnabled && !column->IsSkipItems) + { + LogRenderedText(&window->DC.CursorPos, "|"); + g.LogLinePosY = FLT_MAX; + } +} + +// [Internal] Called by TableNextRow()/TableSetColumnIndex()/TableNextColumn() +void ImGui::TableEndCell(ImGuiTable* table) +{ + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + ImGuiWindow* window = table->InnerWindow; + + if (window->DC.IsSetPos) + ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + + // Report maximum position so we can infer content size per column. + float* p_max_pos_x; + if (table->RowFlags & ImGuiTableRowFlags_Headers) + p_max_pos_x = &column->ContentMaxXHeadersUsed; // Useful in case user submit contents in header row that is not a TableHeader() call + else + p_max_pos_x = table->IsUnfrozenRows ? &column->ContentMaxXUnfrozen : &column->ContentMaxXFrozen; + *p_max_pos_x = ImMax(*p_max_pos_x, window->DC.CursorMaxPos.x); + if (column->IsEnabled) + table->RowPosY2 = ImMax(table->RowPosY2, window->DC.CursorMaxPos.y + table->RowCellPaddingY); + column->ItemWidth = window->DC.ItemWidth; + + // Propagate text baseline for the entire row + // FIXME-TABLE: Here we propagate text baseline from the last line of the cell.. instead of the first one. + table->RowTextBaseline = ImMax(table->RowTextBaseline, window->DC.PrevLineTextBaseOffset); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Columns width management +//------------------------------------------------------------------------- +// - TableGetMaxColumnWidth() [Internal] +// - TableGetColumnWidthAuto() [Internal] +// - TableSetColumnWidth() +// - TableSetColumnWidthAutoSingle() [Internal] +// - TableSetColumnWidthAutoAll() [Internal] +// - TableUpdateColumnsWeightFromWidth() [Internal] +//------------------------------------------------------------------------- + +// Maximum column content width given current layout. Use column->MinX so this value on a per-column basis. +float ImGui::TableGetMaxColumnWidth(const ImGuiTable* table, int column_n) +{ + const ImGuiTableColumn* column = &table->Columns[column_n]; + float max_width = FLT_MAX; + const float min_column_distance = table->MinColumnWidth + table->CellPaddingX * 2.0f + table->CellSpacingX1 + table->CellSpacingX2; + if (table->Flags & ImGuiTableFlags_ScrollX) + { + // Frozen columns can't reach beyond visible width else scrolling will naturally break. + // (we use DisplayOrder as within a set of multiple frozen column reordering is possible) + if (column->DisplayOrder < table->FreezeColumnsRequest) + { + max_width = (table->InnerClipRect.Max.x - (table->FreezeColumnsRequest - column->DisplayOrder) * min_column_distance) - column->MinX; + max_width = max_width - table->OuterPaddingX - table->CellPaddingX - table->CellSpacingX2; + } + } + else if ((table->Flags & ImGuiTableFlags_NoKeepColumnsVisible) == 0) + { + // If horizontal scrolling if disabled, we apply a final lossless shrinking of columns in order to make + // sure they are all visible. Because of this we also know that all of the columns will always fit in + // table->WorkRect and therefore in table->InnerRect (because ScrollX is off) + // FIXME-TABLE: This is solved incorrectly but also quite a difficult problem to fix as we also want ClipRect width to match. + // See "table_width_distrib" and "table_width_keep_visible" tests + max_width = table->WorkRect.Max.x - (table->ColumnsEnabledCount - column->IndexWithinEnabledSet - 1) * min_column_distance - column->MinX; + //max_width -= table->CellSpacingX1; + max_width -= table->CellSpacingX2; + max_width -= table->CellPaddingX * 2.0f; + max_width -= table->OuterPaddingX; + } + return max_width; +} + +// Note this is meant to be stored in column->WidthAuto, please generally use the WidthAuto field +float ImGui::TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) +{ + const float content_width_body = ImMax(column->ContentMaxXFrozen, column->ContentMaxXUnfrozen) - column->WorkMinX; + const float content_width_headers = column->ContentMaxXHeadersIdeal - column->WorkMinX; + float width_auto = content_width_body; + if (!(column->Flags & ImGuiTableColumnFlags_NoHeaderWidth)) + width_auto = ImMax(width_auto, content_width_headers); + + // Non-resizable fixed columns preserve their requested width + if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f) + if (!(table->Flags & ImGuiTableFlags_Resizable) || (column->Flags & ImGuiTableColumnFlags_NoResize)) + width_auto = column->InitStretchWeightOrWidth; + + return ImMax(width_auto, table->MinColumnWidth); +} + +// 'width' = inner column width, without padding +void ImGui::TableSetColumnWidth(int column_n, float width) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && table->IsLayoutLocked == false); + IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); + ImGuiTableColumn* column_0 = &table->Columns[column_n]; + float column_0_width = width; + + // Apply constraints early + // Compare both requested and actual given width to avoid overwriting requested width when column is stuck (minimum size, bounded) + IM_ASSERT(table->MinColumnWidth > 0.0f); + const float min_width = table->MinColumnWidth; + const float max_width = ImMax(min_width, TableGetMaxColumnWidth(table, column_n)); + column_0_width = ImClamp(column_0_width, min_width, max_width); + if (column_0->WidthGiven == column_0_width || column_0->WidthRequest == column_0_width) + return; + + //IMGUI_DEBUG_PRINT("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); + ImGuiTableColumn* column_1 = (column_0->NextEnabledColumn != -1) ? &table->Columns[column_0->NextEnabledColumn] : NULL; + + // In this surprisingly not simple because of how we support mixing Fixed and multiple Stretch columns. + // - All fixed: easy. + // - All stretch: easy. + // - One or more fixed + one stretch: easy. + // - One or more fixed + more than one stretch: tricky. + // Qt when manual resize is enabled only supports a single _trailing_ stretch column, we support more cases here. + + // When forwarding resize from Wn| to Fn+1| we need to be considerate of the _NoResize flag on Fn+1. + // FIXME-TABLE: Find a way to rewrite all of this so interactions feel more consistent for the user. + // Scenarios: + // - F1 F2 F3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. Subsequent columns will be offset. + // - F1 F2 F3 resize from F3| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered. + // - F1 F2 W3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered, but it doesn't make much sense as the Stretch column will always be minimal size. + // - F1 F2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 W3 resize from W1| or W2| --> ok + // - W1 W2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 F3 resize from F3| --> ok: no-op (disabled by Resize Rule 1) + // - W1 F2 resize from F2| --> ok: no-op (disabled by Resize Rule 1) + // - W1 W2 F3 resize from W1| or W2| --> ok + // - W1 F2 W3 resize from W1| or F2| --> ok + // - F1 W2 F3 resize from W2| --> ok + // - F1 W3 F2 resize from W3| --> ok + // - W1 F2 F3 resize from W1| --> ok: equivalent to resizing |F2. F3 will not move. + // - W1 F2 F3 resize from F2| --> ok + // All resizes from a Wx columns are locking other columns. + + // Possible improvements: + // - W1 W2 W3 resize W1| --> to not be stuck, both W2 and W3 would stretch down. Seems possible to fix. Would be most beneficial to simplify resize of all-weighted columns. + // - W3 F1 F2 resize W3| --> to not be stuck past F1|, both F1 and F2 would need to stretch down, which would be lossy or ambiguous. Seems hard to fix. + + // [Resize Rule 1] Can't resize from right of right-most visible column if there is any Stretch column. Implemented in TableUpdateLayout(). + + // If we have all Fixed columns OR resizing a Fixed column that doesn't come after a Stretch one, we can do an offsetting resize. + // This is the preferred resize path + if (column_0->Flags & ImGuiTableColumnFlags_WidthFixed) + if (!column_1 || table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder >= column_0->DisplayOrder) + { + column_0->WidthRequest = column_0_width; + table->IsSettingsDirty = true; + return; + } + + // We can also use previous column if there's no next one (this is used when doing an auto-fit on the right-most stretch column) + if (column_1 == NULL) + column_1 = (column_0->PrevEnabledColumn != -1) ? &table->Columns[column_0->PrevEnabledColumn] : NULL; + if (column_1 == NULL) + return; + + // Resizing from right-side of a Stretch column before a Fixed column forward sizing to left-side of fixed column. + // (old_a + old_b == new_a + new_b) --> (new_a == old_a + old_b - new_b) + float column_1_width = ImMax(column_1->WidthRequest - (column_0_width - column_0->WidthRequest), min_width); + column_0_width = column_0->WidthRequest + column_1->WidthRequest - column_1_width; + IM_ASSERT(column_0_width > 0.0f && column_1_width > 0.0f); + column_0->WidthRequest = column_0_width; + column_1->WidthRequest = column_1_width; + if ((column_0->Flags | column_1->Flags) & ImGuiTableColumnFlags_WidthStretch) + TableUpdateColumnsWeightFromWidth(table); + table->IsSettingsDirty = true; +} + +// Disable clipping then auto-fit, will take 2 frames +// (we don't take a shortcut for unclipped columns to reduce inconsistencies when e.g. resizing multiple columns) +void ImGui::TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n) +{ + // Single auto width uses auto-fit + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled) + return; + column->CannotSkipItemsQueue = (1 << 0); + table->AutoFitSingleColumn = (ImGuiTableColumnIdx)column_n; +} + +void ImGui::TableSetColumnWidthAutoAll(ImGuiTable* table) +{ + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) // Cannot reset weight of hidden stretch column + continue; + column->CannotSkipItemsQueue = (1 << 0); + column->AutoFitQueue = (1 << 1); + } +} + +void ImGui::TableUpdateColumnsWeightFromWidth(ImGuiTable* table) +{ + IM_ASSERT(table->LeftMostStretchedColumn != -1 && table->RightMostStretchedColumn != -1); + + // Measure existing quantities + float visible_weight = 0.0f; + float visible_width = 0.0f; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + IM_ASSERT(column->StretchWeight > 0.0f); + visible_weight += column->StretchWeight; + visible_width += column->WidthRequest; + } + IM_ASSERT(visible_weight > 0.0f && visible_width > 0.0f); + + // Apply new weights + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) + continue; + column->StretchWeight = (column->WidthRequest / visible_width) * visible_weight; + IM_ASSERT(column->StretchWeight > 0.0f); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Drawing +//------------------------------------------------------------------------- +// - TablePushBackgroundChannel() [Internal] +// - TablePopBackgroundChannel() [Internal] +// - TableSetupDrawChannels() [Internal] +// - TableMergeDrawChannels() [Internal] +// - TableDrawBorders() [Internal] +//------------------------------------------------------------------------- + +// Bg2 is used by Selectable (and possibly other widgets) to render to the background. +// Unlike our Bg0/1 channel which we uses for RowBg/CellBg/Borders and where we guarantee all shapes to be CPU-clipped, the Bg2 channel being widgets-facing will rely on regular ClipRect. +void ImGui::TablePushBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + table->HostBackupInnerClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, table->Bg2ClipRectForDrawCmd); + table->DrawSplitter->SetCurrentChannel(window->DrawList, table->Bg2DrawChannelCurrent); +} + +void ImGui::TablePopBackgroundChannel() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiTable* table = g.CurrentTable; + ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, table->HostBackupInnerClipRect); + table->DrawSplitter->SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); +} + +// Allocate draw channels. Called by TableUpdateLayout() +// - We allocate them following storage order instead of display order so reordering columns won't needlessly +// increase overall dormant memory cost. +// - We isolate headers draw commands in their own channels instead of just altering clip rects. +// This is in order to facilitate merging of draw commands. +// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels. +// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other +// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged. +// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for +// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4). +// Draw channel allocation (before merging): +// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call) +// - Clip --> 2+D+N channels +// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero) +// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero) +// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0. +void ImGui::TableSetupDrawChannels(ImGuiTable* table) +{ + const int freeze_row_multiplier = (table->FreezeRowsCount > 0) ? 2 : 1; + const int channels_for_row = (table->Flags & ImGuiTableFlags_NoClip) ? 1 : table->ColumnsEnabledCount; + const int channels_for_bg = 1 + 1 * freeze_row_multiplier; + const int channels_for_dummy = (table->ColumnsEnabledCount < table->ColumnsCount || (memcmp(table->VisibleMaskByIndex, table->EnabledMaskByIndex, ImBitArrayGetStorageSizeInBytes(table->ColumnsCount)) != 0)) ? +1 : 0; + const int channels_total = channels_for_bg + (channels_for_row * freeze_row_multiplier) + channels_for_dummy; + table->DrawSplitter->Split(table->InnerWindow->DrawList, channels_total); + table->DummyDrawChannel = (ImGuiTableDrawChannelIdx)((channels_for_dummy > 0) ? channels_total - 1 : -1); + table->Bg2DrawChannelCurrent = TABLE_DRAW_CHANNEL_BG2_FROZEN; + table->Bg2DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)((table->FreezeRowsCount > 0) ? 2 + channels_for_row : TABLE_DRAW_CHANNEL_BG2_FROZEN); + + int draw_channel_current = 2; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsVisibleX && column->IsVisibleY) + { + column->DrawChannelFrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current); + column->DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current + (table->FreezeRowsCount > 0 ? channels_for_row + 1 : 0)); + if (!(table->Flags & ImGuiTableFlags_NoClip)) + draw_channel_current++; + } + else + { + column->DrawChannelFrozen = column->DrawChannelUnfrozen = table->DummyDrawChannel; + } + column->DrawChannelCurrent = column->DrawChannelFrozen; + } + + // Initial draw cmd starts with a BgClipRect that matches the one of its host, to facilitate merge draw commands by default. + // All our cell highlight are manually clipped with BgClipRect. When unfreezing it will be made smaller to fit scrolling rect. + // (This technically isn't part of setting up draw channels, but is reasonably related to be done here) + table->BgClipRect = table->InnerClipRect; + table->Bg0ClipRectForDrawCmd = table->OuterWindow->ClipRect; + table->Bg2ClipRectForDrawCmd = table->HostClipRect; + IM_ASSERT(table->BgClipRect.Min.y <= table->BgClipRect.Max.y); +} + +// This function reorder draw channels based on matching clip rectangle, to facilitate merging them. Called by EndTable(). +// For simplicity we call it TableMergeDrawChannels() but in fact it only reorder channels + overwrite ClipRect, +// actual merging is done by table->DrawSplitter.Merge() which is called right after TableMergeDrawChannels(). +// +// Columns where the contents didn't stray off their local clip rectangle can be merged. To achieve +// this we merge their clip rect and make them contiguous in the channel list, so they can be merged +// by the call to DrawSplitter.Merge() following to the call to this function. +// We reorder draw commands by arranging them into a maximum of 4 distinct groups: +// +// 1 group: 2 groups: 2 groups: 4 groups: +// [ 0. ] no freeze [ 0. ] row freeze [ 01 ] col freeze [ 01 ] row+col freeze +// [ .. ] or no scroll [ 2. ] and v-scroll [ .. ] and h-scroll [ 23 ] and v+h-scroll +// +// Each column itself can use 1 channel (row freeze disabled) or 2 channels (row freeze enabled). +// When the contents of a column didn't stray off its limit, we move its channels into the corresponding group +// based on its position (within frozen rows/columns groups or not). +// At the end of the operation our 1-4 groups will each have a ImDrawCmd using the same ClipRect. +// This function assume that each column are pointing to a distinct draw channel, +// otherwise merge_group->ChannelsCount will not match set bit count of merge_group->ChannelsMask. +// +// Column channels will not be merged into one of the 1-4 groups in the following cases: +// - The contents stray off its clipping rectangle (we only compare the MaxX value, not the MinX value). +// Direct ImDrawList calls won't be taken into account by default, if you use them make sure the ImGui:: bounds +// matches, by e.g. calling SetCursorScreenPos(). +// - The channel uses more than one draw command itself. We drop all our attempt at merging stuff here.. +// we could do better but it's going to be rare and probably not worth the hassle. +// Columns for which the draw channel(s) haven't been merged with other will use their own ImDrawCmd. +// +// This function is particularly tricky to understand.. take a breath. +void ImGui::TableMergeDrawChannels(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImDrawListSplitter* splitter = table->DrawSplitter; + const bool has_freeze_v = (table->FreezeRowsCount > 0); + const bool has_freeze_h = (table->FreezeColumnsCount > 0); + IM_ASSERT(splitter->_Current == 0); + + // Track which groups we are going to attempt to merge, and which channels goes into each group. + struct MergeGroup + { + ImRect ClipRect; + int ChannelsCount = 0; + ImBitArrayPtr ChannelsMask = NULL; + }; + int merge_group_mask = 0x00; + MergeGroup merge_groups[4]; + + // Use a reusable temp buffer for the merge masks as they are dynamically sized. + const int max_draw_channels = (4 + table->ColumnsCount * 2); + const int size_for_masks_bitarrays_one = (int)ImBitArrayGetStorageSizeInBytes(max_draw_channels); + g.TempBuffer.reserve(size_for_masks_bitarrays_one * 5); + memset(g.TempBuffer.Data, 0, size_for_masks_bitarrays_one * 5); + for (int n = 0; n < IM_ARRAYSIZE(merge_groups); n++) + merge_groups[n].ChannelsMask = (ImBitArrayPtr)(void*)(g.TempBuffer.Data + (size_for_masks_bitarrays_one * n)); + ImBitArrayPtr remaining_mask = (ImBitArrayPtr)(void*)(g.TempBuffer.Data + (size_for_masks_bitarrays_one * 4)); + + // 1. Scan channels and take note of those which can be merged + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + if (!IM_BITARRAY_TESTBIT(table->VisibleMaskByIndex, column_n)) + continue; + ImGuiTableColumn* column = &table->Columns[column_n]; + + const int merge_group_sub_count = has_freeze_v ? 2 : 1; + for (int merge_group_sub_n = 0; merge_group_sub_n < merge_group_sub_count; merge_group_sub_n++) + { + const int channel_no = (merge_group_sub_n == 0) ? column->DrawChannelFrozen : column->DrawChannelUnfrozen; + + // Don't attempt to merge if there are multiple draw calls within the column + ImDrawChannel* src_channel = &splitter->_Channels[channel_no]; + if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0 && src_channel->_CmdBuffer.back().UserCallback == NULL) // Equivalent of PopUnusedDrawCmd() + src_channel->_CmdBuffer.pop_back(); + if (src_channel->_CmdBuffer.Size != 1) + continue; + + // Find out the width of this merge group and check if it will fit in our column + // (note that we assume that rendering didn't stray on the left direction. we should need a CursorMinPos to detect it) + if (!(column->Flags & ImGuiTableColumnFlags_NoClip)) + { + float content_max_x; + if (!has_freeze_v) + content_max_x = ImMax(column->ContentMaxXUnfrozen, column->ContentMaxXHeadersUsed); // No row freeze + else if (merge_group_sub_n == 0) + content_max_x = ImMax(column->ContentMaxXFrozen, column->ContentMaxXHeadersUsed); // Row freeze: use width before freeze + else + content_max_x = column->ContentMaxXUnfrozen; // Row freeze: use width after freeze + if (content_max_x > column->ClipRect.Max.x) + continue; + } + + const int merge_group_n = (has_freeze_h && column_n < table->FreezeColumnsCount ? 0 : 1) + (has_freeze_v && merge_group_sub_n == 0 ? 0 : 2); + IM_ASSERT(channel_no < max_draw_channels); + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + merge_group->ClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); + ImBitArraySetBit(merge_group->ChannelsMask, channel_no); + merge_group->ChannelsCount++; + merge_group->ClipRect.Add(src_channel->_CmdBuffer[0].ClipRect); + merge_group_mask |= (1 << merge_group_n); + } + + // Invalidate current draw channel + // (we don't clear DrawChannelFrozen/DrawChannelUnfrozen solely to facilitate debugging/later inspection of data) + column->DrawChannelCurrent = (ImGuiTableDrawChannelIdx)-1; + } + + // [DEBUG] Display merge groups +#if 0 + if (g.IO.KeyShift) + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + if (merge_group->ChannelsCount == 0) + continue; + char buf[32]; + ImFormatString(buf, 32, "MG%d:%d", merge_group_n, merge_group->ChannelsCount); + ImVec2 text_pos = merge_group->ClipRect.Min + ImVec2(4, 4); + ImVec2 text_size = CalcTextSize(buf, NULL); + GetForegroundDrawList()->AddRectFilled(text_pos, text_pos + text_size, IM_COL32(0, 0, 0, 255)); + GetForegroundDrawList()->AddText(text_pos, IM_COL32(255, 255, 0, 255), buf, NULL); + GetForegroundDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 255, 0, 255)); + } +#endif + + // 2. Rewrite channel list in our preferred order + if (merge_group_mask != 0) + { + // We skip channel 0 (Bg0/Bg1) and 1 (Bg2 frozen) from the shuffling since they won't move - see channels allocation in TableSetupDrawChannels(). + const int LEADING_DRAW_CHANNELS = 2; + g.DrawChannelsTempMergeBuffer.resize(splitter->_Count - LEADING_DRAW_CHANNELS); // Use shared temporary storage so the allocation gets amortized + ImDrawChannel* dst_tmp = g.DrawChannelsTempMergeBuffer.Data; + ImBitArraySetBitRange(remaining_mask, LEADING_DRAW_CHANNELS, splitter->_Count); + ImBitArrayClearBit(remaining_mask, table->Bg2DrawChannelUnfrozen); + IM_ASSERT(has_freeze_v == false || table->Bg2DrawChannelUnfrozen != TABLE_DRAW_CHANNEL_BG2_FROZEN); + int remaining_count = splitter->_Count - (has_freeze_v ? LEADING_DRAW_CHANNELS + 1 : LEADING_DRAW_CHANNELS); + //ImRect host_rect = (table->InnerWindow == table->OuterWindow) ? table->InnerClipRect : table->HostClipRect; + ImRect host_rect = table->HostClipRect; + for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) + { + if (int merge_channels_count = merge_groups[merge_group_n].ChannelsCount) + { + MergeGroup* merge_group = &merge_groups[merge_group_n]; + ImRect merge_clip_rect = merge_group->ClipRect; + + // Extend outer-most clip limits to match those of host, so draw calls can be merged even if + // outer-most columns have some outer padding offsetting them from their parent ClipRect. + // The principal cases this is dealing with are: + // - On a same-window table (not scrolling = single group), all fitting columns ClipRect -> will extend and match host ClipRect -> will merge + // - Columns can use padding and have left-most ClipRect.Min.x and right-most ClipRect.Max.x != from host ClipRect -> will extend and match host ClipRect -> will merge + // FIXME-TABLE FIXME-WORKRECT: We are wasting a merge opportunity on tables without scrolling if column doesn't fit + // within host clip rect, solely because of the half-padding difference between window->WorkRect and window->InnerClipRect. + if ((merge_group_n & 1) == 0 || !has_freeze_h) + merge_clip_rect.Min.x = ImMin(merge_clip_rect.Min.x, host_rect.Min.x); + if ((merge_group_n & 2) == 0 || !has_freeze_v) + merge_clip_rect.Min.y = ImMin(merge_clip_rect.Min.y, host_rect.Min.y); + if ((merge_group_n & 1) != 0) + merge_clip_rect.Max.x = ImMax(merge_clip_rect.Max.x, host_rect.Max.x); + if ((merge_group_n & 2) != 0 && (table->Flags & ImGuiTableFlags_NoHostExtendY) == 0) + merge_clip_rect.Max.y = ImMax(merge_clip_rect.Max.y, host_rect.Max.y); + //GetForegroundDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 0, 0, 200), 0.0f, 0, 1.0f); // [DEBUG] + //GetForegroundDrawList()->AddLine(merge_group->ClipRect.Min, merge_clip_rect.Min, IM_COL32(255, 100, 0, 200)); + //GetForegroundDrawList()->AddLine(merge_group->ClipRect.Max, merge_clip_rect.Max, IM_COL32(255, 100, 0, 200)); + remaining_count -= merge_group->ChannelsCount; + for (int n = 0; n < (size_for_masks_bitarrays_one >> 2); n++) + remaining_mask[n] &= ~merge_group->ChannelsMask[n]; + for (int n = 0; n < splitter->_Count && merge_channels_count != 0; n++) + { + // Copy + overwrite new clip rect + if (!IM_BITARRAY_TESTBIT(merge_group->ChannelsMask, n)) + continue; + IM_BITARRAY_CLEARBIT(merge_group->ChannelsMask, n); + merge_channels_count--; + + ImDrawChannel* channel = &splitter->_Channels[n]; + IM_ASSERT(channel->_CmdBuffer.Size == 1 && merge_clip_rect.Contains(ImRect(channel->_CmdBuffer[0].ClipRect))); + channel->_CmdBuffer[0].ClipRect = merge_clip_rect.ToVec4(); + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + } + } + + // Make sure Bg2DrawChannelUnfrozen appears in the middle of our groups (whereas Bg0/Bg1 and Bg2 frozen are fixed to 0 and 1) + if (merge_group_n == 1 && has_freeze_v) + memcpy(dst_tmp++, &splitter->_Channels[table->Bg2DrawChannelUnfrozen], sizeof(ImDrawChannel)); + } + + // Append unmergeable channels that we didn't reorder at the end of the list + for (int n = 0; n < splitter->_Count && remaining_count != 0; n++) + { + if (!IM_BITARRAY_TESTBIT(remaining_mask, n)) + continue; + ImDrawChannel* channel = &splitter->_Channels[n]; + memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); + remaining_count--; + } + IM_ASSERT(dst_tmp == g.DrawChannelsTempMergeBuffer.Data + g.DrawChannelsTempMergeBuffer.Size); + memcpy(splitter->_Channels.Data + LEADING_DRAW_CHANNELS, g.DrawChannelsTempMergeBuffer.Data, (splitter->_Count - LEADING_DRAW_CHANNELS) * sizeof(ImDrawChannel)); + } +} + +// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in TableEndRow) +void ImGui::TableDrawBorders(ImGuiTable* table) +{ + ImGuiWindow* inner_window = table->InnerWindow; + if (!table->OuterWindow->ClipRect.Overlaps(table->OuterRect)) + return; + + ImDrawList* inner_drawlist = inner_window->DrawList; + table->DrawSplitter->SetCurrentChannel(inner_drawlist, TABLE_DRAW_CHANNEL_BG0); + inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); + + // Draw inner border and resizing feedback + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); + const float border_size = TABLE_BORDER_SIZE; + const float draw_y1 = table->InnerRect.Min.y + ((table->Flags & ImGuiTableFlags_BordersOuterH) ? 1.0f : 0.0f); + const float draw_y2_body = table->InnerRect.Max.y; + const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table_instance->LastFirstRowHeight) : draw_y1; + if (table->Flags & ImGuiTableFlags_BordersInnerV) + { + for (int order_n = 0; order_n < table->ColumnsCount; order_n++) + { + if (!IM_BITARRAY_TESTBIT(table->EnabledMaskByDisplayOrder, order_n)) + continue; + + const int column_n = table->DisplayOrderToIndex[order_n]; + ImGuiTableColumn* column = &table->Columns[column_n]; + const bool is_hovered = (table->HoveredColumnBorder == column_n); + const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); + const bool is_resizable = (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) == 0; + const bool is_frozen_separator = (table->FreezeColumnsCount == order_n + 1); + if (column->MaxX > table->InnerClipRect.Max.x && !is_resized) + continue; + + // Decide whether right-most column is visible + if (column->NextEnabledColumn == -1 && !is_resizable) + if ((table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame || (table->Flags & ImGuiTableFlags_NoHostExtendX)) + continue; + if (column->MaxX <= column->ClipRect.Min.x) // FIXME-TABLE FIXME-STYLE: Assume BorderSize==1, this is problematic if we want to increase the border size.. + continue; + + // Draw in outer window so right-most column won't be clipped + // Always draw full height border when being resized/hovered, or on the delimitation of frozen column scrolling. + ImU32 col; + float draw_y2; + if (is_hovered || is_resized || is_frozen_separator) + { + draw_y2 = draw_y2_body; + col = is_resized ? GetColorU32(ImGuiCol_SeparatorActive) : is_hovered ? GetColorU32(ImGuiCol_SeparatorHovered) : table->BorderColorStrong; + } + else + { + draw_y2 = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? draw_y2_head : draw_y2_body; + col = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? table->BorderColorStrong : table->BorderColorLight; + } + + if (draw_y2 > draw_y1) + inner_drawlist->AddLine(ImVec2(column->MaxX, draw_y1), ImVec2(column->MaxX, draw_y2), col, border_size); + } + } + + // Draw outer border + // FIXME: could use AddRect or explicit VLine/HLine helper? + if (table->Flags & ImGuiTableFlags_BordersOuter) + { + // Display outer border offset by 1 which is a simple way to display it without adding an extra draw call + // (Without the offset, in outer_window it would be rendered behind cells, because child windows are above their + // parent. In inner_window, it won't reach out over scrollbars. Another weird solution would be to display part + // of it in inner window, and the part that's over scrollbars in the outer window..) + // Either solution currently won't allow us to use a larger border size: the border would clipped. + const ImRect outer_border = table->OuterRect; + const ImU32 outer_col = table->BorderColorStrong; + if ((table->Flags & ImGuiTableFlags_BordersOuter) == ImGuiTableFlags_BordersOuter) + { + inner_drawlist->AddRect(outer_border.Min, outer_border.Max + ImVec2(1, 1), outer_col, 0.0f, 0, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterV) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Min.x, outer_border.Max.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Max.x, outer_border.Min.y), outer_border.Max, outer_col, border_size); + } + else if (table->Flags & ImGuiTableFlags_BordersOuterH) + { + inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Max.x, outer_border.Min.y), outer_col, border_size); + inner_drawlist->AddLine(ImVec2(outer_border.Min.x, outer_border.Max.y), outer_border.Max, outer_col, border_size); + } + } + if ((table->Flags & ImGuiTableFlags_BordersInnerH) && table->RowPosY2 < table->OuterRect.Max.y) + { + // Draw bottom-most row border between it is above outer border. + const float border_y = table->RowPosY2; + if (border_y >= table->BgClipRect.Min.y && border_y < table->BgClipRect.Max.y) + inner_drawlist->AddLine(ImVec2(table->BorderX1, border_y), ImVec2(table->BorderX2, border_y), table->BorderColorLight, border_size); + } + + inner_drawlist->PopClipRect(); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Sorting +//------------------------------------------------------------------------- +// - TableGetSortSpecs() +// - TableFixColumnSortDirection() [Internal] +// - TableGetColumnNextSortDirection() [Internal] +// - TableSetColumnSortDirection() [Internal] +// - TableSortSpecsSanitize() [Internal] +// - TableSortSpecsBuild() [Internal] +//------------------------------------------------------------------------- + +// Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set) +// When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have +// changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, +// else you may wastefully sort your data every frame! +// Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable()! +ImGuiTableSortSpecs* ImGui::TableGetSortSpecs() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL); + + if (!(table->Flags & ImGuiTableFlags_Sortable)) + return NULL; + + // Require layout (in case TableHeadersRow() hasn't been called) as it may alter IsSortSpecsDirty in some paths. + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + TableSortSpecsBuild(table); + return &table->SortSpecs; +} + +static inline ImGuiSortDirection TableGetColumnAvailSortDirection(ImGuiTableColumn* column, int n) +{ + IM_ASSERT(n < column->SortDirectionsAvailCount); + return (column->SortDirectionsAvailList >> (n << 1)) & 0x03; +} + +// Fix sort direction if currently set on a value which is unavailable (e.g. activating NoSortAscending/NoSortDescending) +void ImGui::TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) +{ + if (column->SortOrder == -1 || (column->SortDirectionsAvailMask & (1 << column->SortDirection)) != 0) + return; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + table->IsSortSpecsDirty = true; +} + +// Calculate next sort direction that would be set after clicking the column +// - If the PreferSortDescending flag is set, we will default to a Descending direction on the first click. +// - Note that the PreferSortAscending flag is never checked, it is essentially the default and therefore a no-op. +IM_STATIC_ASSERT(ImGuiSortDirection_None == 0 && ImGuiSortDirection_Ascending == 1 && ImGuiSortDirection_Descending == 2); +ImGuiSortDirection ImGui::TableGetColumnNextSortDirection(ImGuiTableColumn* column) +{ + IM_ASSERT(column->SortDirectionsAvailCount > 0); + if (column->SortOrder == -1) + return TableGetColumnAvailSortDirection(column, 0); + for (int n = 0; n < 3; n++) + if (column->SortDirection == TableGetColumnAvailSortDirection(column, n)) + return TableGetColumnAvailSortDirection(column, (n + 1) % column->SortDirectionsAvailCount); + IM_ASSERT(0); + return ImGuiSortDirection_None; +} + +// Note that the NoSortAscending/NoSortDescending flags are processed in TableSortSpecsSanitize(), and they may change/revert +// the value of SortDirection. We could technically also do it here but it would be unnecessary and duplicate code. +void ImGui::TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + + if (!(table->Flags & ImGuiTableFlags_SortMulti)) + append_to_sort_specs = false; + if (!(table->Flags & ImGuiTableFlags_SortTristate)) + IM_ASSERT(sort_direction != ImGuiSortDirection_None); + + ImGuiTableColumnIdx sort_order_max = 0; + if (append_to_sort_specs) + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + sort_order_max = ImMax(sort_order_max, table->Columns[other_column_n].SortOrder); + + ImGuiTableColumn* column = &table->Columns[column_n]; + column->SortDirection = (ImU8)sort_direction; + if (column->SortDirection == ImGuiSortDirection_None) + column->SortOrder = -1; + else if (column->SortOrder == -1 || !append_to_sort_specs) + column->SortOrder = append_to_sort_specs ? sort_order_max + 1 : 0; + + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column != column && !append_to_sort_specs) + other_column->SortOrder = -1; + TableFixColumnSortDirection(table, other_column); + } + table->IsSettingsDirty = true; + table->IsSortSpecsDirty = true; +} + +void ImGui::TableSortSpecsSanitize(ImGuiTable* table) +{ + IM_ASSERT(table->Flags & ImGuiTableFlags_Sortable); + + // Clear SortOrder from hidden column and verify that there's no gap or duplicate. + int sort_order_count = 0; + ImU64 sort_order_mask = 0x00; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder != -1 && !column->IsEnabled) + column->SortOrder = -1; + if (column->SortOrder == -1) + continue; + sort_order_count++; + sort_order_mask |= ((ImU64)1 << column->SortOrder); + IM_ASSERT(sort_order_count < (int)sizeof(sort_order_mask) * 8); + } + + const bool need_fix_linearize = ((ImU64)1 << sort_order_count) != (sort_order_mask + 1); + const bool need_fix_single_sort_order = (sort_order_count > 1) && !(table->Flags & ImGuiTableFlags_SortMulti); + if (need_fix_linearize || need_fix_single_sort_order) + { + ImU64 fixed_mask = 0x00; + for (int sort_n = 0; sort_n < sort_order_count; sort_n++) + { + // Fix: Rewrite sort order fields if needed so they have no gap or duplicate. + // (e.g. SortOrder 0 disappeared, SortOrder 1..2 exists --> rewrite then as SortOrder 0..1) + int column_with_smallest_sort_order = -1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if ((fixed_mask & ((ImU64)1 << (ImU64)column_n)) == 0 && table->Columns[column_n].SortOrder != -1) + if (column_with_smallest_sort_order == -1 || table->Columns[column_n].SortOrder < table->Columns[column_with_smallest_sort_order].SortOrder) + column_with_smallest_sort_order = column_n; + IM_ASSERT(column_with_smallest_sort_order != -1); + fixed_mask |= ((ImU64)1 << column_with_smallest_sort_order); + table->Columns[column_with_smallest_sort_order].SortOrder = (ImGuiTableColumnIdx)sort_n; + + // Fix: Make sure only one column has a SortOrder if ImGuiTableFlags_MultiSortable is not set. + if (need_fix_single_sort_order) + { + sort_order_count = 1; + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + if (column_n != column_with_smallest_sort_order) + table->Columns[column_n].SortOrder = -1; + break; + } + } + } + + // Fallback default sort order (if no column with the ImGuiTableColumnFlags_DefaultSort flag) + if (sort_order_count == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + sort_order_count = 1; + column->SortOrder = 0; + column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); + break; + } + } + + table->SortSpecsCount = (ImGuiTableColumnIdx)sort_order_count; +} + +void ImGui::TableSortSpecsBuild(ImGuiTable* table) +{ + bool dirty = table->IsSortSpecsDirty; + if (dirty) + { + TableSortSpecsSanitize(table); + table->SortSpecsMulti.resize(table->SortSpecsCount <= 1 ? 0 : table->SortSpecsCount); + table->SortSpecs.SpecsDirty = true; // Mark as dirty for user + table->IsSortSpecsDirty = false; // Mark as not dirty for us + } + + // Write output + ImGuiTableColumnSortSpecs* sort_specs = (table->SortSpecsCount == 0) ? NULL : (table->SortSpecsCount == 1) ? &table->SortSpecsSingle : table->SortSpecsMulti.Data; + if (dirty && sort_specs != NULL) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + { + ImGuiTableColumn* column = &table->Columns[column_n]; + if (column->SortOrder == -1) + continue; + IM_ASSERT(column->SortOrder < table->SortSpecsCount); + ImGuiTableColumnSortSpecs* sort_spec = &sort_specs[column->SortOrder]; + sort_spec->ColumnUserID = column->UserID; + sort_spec->ColumnIndex = (ImGuiTableColumnIdx)column_n; + sort_spec->SortOrder = (ImGuiTableColumnIdx)column->SortOrder; + sort_spec->SortDirection = column->SortDirection; + } + + table->SortSpecs.Specs = sort_specs; + table->SortSpecs.SpecsCount = table->SortSpecsCount; +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Headers +//------------------------------------------------------------------------- +// - TableGetHeaderRowHeight() [Internal] +// - TableHeadersRow() +// - TableHeader() +//------------------------------------------------------------------------- + +float ImGui::TableGetHeaderRowHeight() +{ + // Caring for a minor edge case: + // Calculate row height, for the unlikely case that some labels may be taller than others. + // If we didn't do that, uneven header height would highlight but smaller one before the tallest wouldn't catch input for all height. + // In your custom header row you may omit this all together and just call TableNextRow() without a height... + float row_height = GetTextLineHeight(); + int columns_count = TableGetColumnCount(); + for (int column_n = 0; column_n < columns_count; column_n++) + { + ImGuiTableColumnFlags flags = TableGetColumnFlags(column_n); + if ((flags & ImGuiTableColumnFlags_IsEnabled) && !(flags & ImGuiTableColumnFlags_NoHeaderLabel)) + row_height = ImMax(row_height, CalcTextSize(TableGetColumnName(column_n)).y); + } + row_height += GetStyle().CellPadding.y * 2.0f; + return row_height; +} + +// [Public] This is a helper to output TableHeader() calls based on the column names declared in TableSetupColumn(). +// The intent is that advanced users willing to create customized headers would not need to use this helper +// and can create their own! For example: TableHeader() may be preceeded by Checkbox() or other custom widgets. +// See 'Demo->Tables->Custom headers' for a demonstration of implementing a custom version of this. +// This code is constructed to not make much use of internal functions, as it is intended to be a template to copy. +// FIXME-TABLE: TableOpenContextMenu() and TableGetHeaderRowHeight() are not public. +void ImGui::TableHeadersRow() +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeadersRow() after BeginTable()!"); + + // Layout if not already done (this is automatically done by TableNextRow, we do it here solely to facilitate stepping in debugger as it is frequent to step in TableUpdateLayout) + if (!table->IsLayoutLocked) + TableUpdateLayout(table); + + // Open row + const float row_y1 = GetCursorScreenPos().y; + const float row_height = TableGetHeaderRowHeight(); + TableNextRow(ImGuiTableRowFlags_Headers, row_height); + if (table->HostSkipItems) // Merely an optimization, you may skip in your own code. + return; + + const int columns_count = TableGetColumnCount(); + for (int column_n = 0; column_n < columns_count; column_n++) + { + if (!TableSetColumnIndex(column_n)) + continue; + + // Push an id to allow unnamed labels (generally accidental, but let's behave nicely with them) + // In your own code you may omit the PushID/PopID all-together, provided you know they won't collide. + const char* name = (TableGetColumnFlags(column_n) & ImGuiTableColumnFlags_NoHeaderLabel) ? "" : TableGetColumnName(column_n); + PushID(column_n); + TableHeader(name); + PopID(); + } + + // Allow opening popup from the right-most section after the last column. + ImVec2 mouse_pos = ImGui::GetMousePos(); + if (IsMouseReleased(1) && TableGetHoveredColumn() == columns_count) + if (mouse_pos.y >= row_y1 && mouse_pos.y < row_y1 + row_height) + TableOpenContextMenu(-1); // Will open a non-column-specific popup. +} + +// Emit a column header (text + optional sort order) +// We cpu-clip text here so that all columns headers can be merged into a same draw call. +// Note that because of how we cpu-clip and display sorting indicators, you _cannot_ use SameLine() after a TableHeader() +void ImGui::TableHeader(const char* label) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTable* table = g.CurrentTable; + IM_ASSERT(table != NULL && "Need to call TableHeader() after BeginTable()!"); + IM_ASSERT(table->CurrentColumn != -1); + const int column_n = table->CurrentColumn; + ImGuiTableColumn* column = &table->Columns[column_n]; + + // Label + if (label == NULL) + label = ""; + const char* label_end = FindRenderedTextEnd(label); + ImVec2 label_size = CalcTextSize(label, label_end, true); + ImVec2 label_pos = window->DC.CursorPos; + + // If we already got a row height, there's use that. + // FIXME-TABLE: Padding problem if the correct outer-padding CellBgRect strays off our ClipRect? + ImRect cell_r = TableGetCellBgRect(table, column_n); + float label_height = ImMax(label_size.y, table->RowMinHeight - table->RowCellPaddingY * 2.0f); + + // Calculate ideal size for sort order arrow + float w_arrow = 0.0f; + float w_sort_text = 0.0f; + char sort_order_suf[4] = ""; + const float ARROW_SCALE = 0.65f; + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + w_arrow = ImFloor(g.FontSize * ARROW_SCALE + g.Style.FramePadding.x); + if (column->SortOrder > 0) + { + ImFormatString(sort_order_suf, IM_ARRAYSIZE(sort_order_suf), "%d", column->SortOrder + 1); + w_sort_text = g.Style.ItemInnerSpacing.x + CalcTextSize(sort_order_suf).x; + } + } + + // We feed our unclipped width to the column without writing on CursorMaxPos, so that column is still considering for merging. + float max_pos_x = label_pos.x + label_size.x + w_sort_text + w_arrow; + column->ContentMaxXHeadersUsed = ImMax(column->ContentMaxXHeadersUsed, column->WorkMaxX); + column->ContentMaxXHeadersIdeal = ImMax(column->ContentMaxXHeadersIdeal, max_pos_x); + + // Keep header highlighted when context menu is open. + const bool selected = (table->IsContextPopupOpen && table->ContextPopupColumn == column_n && table->InstanceInteracted == table->InstanceCurrent); + ImGuiID id = window->GetID(label); + ImRect bb(cell_r.Min.x, cell_r.Min.y, cell_r.Max.x, ImMax(cell_r.Max.y, cell_r.Min.y + label_height + g.Style.CellPadding.y * 2.0f)); + ItemSize(ImVec2(0.0f, label_height)); // Don't declare unclipped width, it'll be fed ContentMaxPosHeadersIdeal + if (!ItemAdd(bb, id)) + return; + + //GetForegroundDrawList()->AddRect(cell_r.Min, cell_r.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + //GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] + + // Using AllowOverlap mode because we cover the whole cell, and we want user to be able to submit subsequent items. + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_AllowOverlap); + if (held || hovered || selected) + { + const ImU32 col = GetColorU32(held ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + //RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + TableSetBgColor(ImGuiTableBgTarget_CellBg, col, table->CurrentColumn); + } + else + { + // Submit single cell bg color in the case we didn't submit a full header row + if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0) + TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn); + } + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + if (held) + table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n; + window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f; + + // Drag and drop to re-order columns. + // FIXME-TABLE: Scroll request while reordering a column and it lands out of the scrolling zone. + if (held && (table->Flags & ImGuiTableFlags_Reorderable) && IsMouseDragging(0) && !g.DragDropActive) + { + // While moving a column it will jump on the other side of the mouse, so we also test for MouseDelta.x + table->ReorderColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + + // We don't reorder: through the frozen<>unfrozen line, or through a column that is marked with ImGuiTableColumnFlags_NoReorder. + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < cell_r.Min.x) + if (ImGuiTableColumn* prev_column = (column->PrevEnabledColumn != -1) ? &table->Columns[column->PrevEnabledColumn] : NULL) + if (!((column->Flags | prev_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (prev_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = -1; + if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > cell_r.Max.x) + if (ImGuiTableColumn* next_column = (column->NextEnabledColumn != -1) ? &table->Columns[column->NextEnabledColumn] : NULL) + if (!((column->Flags | next_column->Flags) & ImGuiTableColumnFlags_NoReorder)) + if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (next_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) + table->ReorderColumnDir = +1; + } + + // Sort order arrow + const float ellipsis_max = ImMax(cell_r.Max.x - w_arrow - w_sort_text, label_pos.x); + if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) + { + if (column->SortOrder != -1) + { + float x = ImMax(cell_r.Min.x, cell_r.Max.x - w_arrow - w_sort_text); + float y = label_pos.y; + if (column->SortOrder > 0) + { + PushStyleColor(ImGuiCol_Text, GetColorU32(ImGuiCol_Text, 0.70f)); + RenderText(ImVec2(x + g.Style.ItemInnerSpacing.x, y), sort_order_suf); + PopStyleColor(); + x += w_sort_text; + } + RenderArrow(window->DrawList, ImVec2(x, y), GetColorU32(ImGuiCol_Text), column->SortDirection == ImGuiSortDirection_Ascending ? ImGuiDir_Up : ImGuiDir_Down, ARROW_SCALE); + } + + // Handle clicking on column header to adjust Sort Order + if (pressed && table->ReorderColumn != column_n) + { + ImGuiSortDirection sort_direction = TableGetColumnNextSortDirection(column); + TableSetColumnSortDirection(column_n, sort_direction, g.IO.KeyShift); + } + } + + // Render clipped label. Clipping here ensure that in the majority of situations, all our header cells will + // be merged into a single draw call. + //window->DrawList->AddCircleFilled(ImVec2(ellipsis_max, label_pos.y), 40, IM_COL32_WHITE); + RenderTextEllipsis(window->DrawList, label_pos, ImVec2(ellipsis_max, label_pos.y + label_height + g.Style.FramePadding.y), ellipsis_max, ellipsis_max, label, label_end, &label_size); + + const bool text_clipped = label_size.x > (ellipsis_max - label_pos.x); + if (text_clipped && hovered && g.ActiveId == 0) + SetItemTooltip("%.*s", (int)(label_end - label), label); + + // We don't use BeginPopupContextItem() because we want the popup to stay up even after the column is hidden + if (IsMouseReleased(1) && IsItemHovered()) + TableOpenContextMenu(column_n); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Context Menu +//------------------------------------------------------------------------- +// - TableOpenContextMenu() [Internal] +// - TableDrawContextMenu() [Internal] +//------------------------------------------------------------------------- + +// Use -1 to open menu not specific to a given column. +void ImGui::TableOpenContextMenu(int column_n) +{ + ImGuiContext& g = *GImGui; + ImGuiTable* table = g.CurrentTable; + if (column_n == -1 && table->CurrentColumn != -1) // When called within a column automatically use this one (for consistency) + column_n = table->CurrentColumn; + if (column_n == table->ColumnsCount) // To facilitate using with TableGetHoveredColumn() + column_n = -1; + IM_ASSERT(column_n >= -1 && column_n < table->ColumnsCount); + if (table->Flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) + { + table->IsContextPopupOpen = true; + table->ContextPopupColumn = (ImGuiTableColumnIdx)column_n; + table->InstanceInteracted = table->InstanceCurrent; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + OpenPopupEx(context_menu_id, ImGuiPopupFlags_None); + } +} + +bool ImGui::TableBeginContextMenuPopup(ImGuiTable* table) +{ + if (!table->IsContextPopupOpen || table->InstanceCurrent != table->InstanceInteracted) + return false; + const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); + if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) + return true; + table->IsContextPopupOpen = false; + return false; +} + +// Output context menu into current window (generally a popup) +// FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data? +void ImGui::TableDrawContextMenu(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + bool want_separator = false; + const int column_n = (table->ContextPopupColumn >= 0 && table->ContextPopupColumn < table->ColumnsCount) ? table->ContextPopupColumn : -1; + ImGuiTableColumn* column = (column_n != -1) ? &table->Columns[column_n] : NULL; + + // Sizing + if (table->Flags & ImGuiTableFlags_Resizable) + { + if (column != NULL) + { + const bool can_resize = !(column->Flags & ImGuiTableColumnFlags_NoResize) && column->IsEnabled; + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableSizeOne), NULL, false, can_resize)) // "###SizeOne" + TableSetColumnWidthAutoSingle(table, column_n); + } + + const char* size_all_desc; + if (table->ColumnsEnabledFixedCount == table->ColumnsEnabledCount && (table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame) + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllFit); // "###SizeAll" All fixed + else + size_all_desc = LocalizeGetMsg(ImGuiLocKey_TableSizeAllDefault); // "###SizeAll" All stretch or mixed + if (MenuItem(size_all_desc, NULL)) + TableSetColumnWidthAutoAll(table); + want_separator = true; + } + + // Ordering + if (table->Flags & ImGuiTableFlags_Reorderable) + { + if (MenuItem(LocalizeGetMsg(ImGuiLocKey_TableResetOrder), NULL, false, !table->IsDefaultDisplayOrder)) + table->IsResetDisplayOrderRequest = true; + want_separator = true; + } + + // Reset all (should work but seems unnecessary/noisy to expose?) + //if (MenuItem("Reset all")) + // table->IsResetAllRequest = true; + + // Sorting + // (modify TableOpenContextMenu() to add _Sortable flag if enabling this) +#if 0 + if ((table->Flags & ImGuiTableFlags_Sortable) && column != NULL && (column->Flags & ImGuiTableColumnFlags_NoSort) == 0) + { + if (want_separator) + Separator(); + want_separator = true; + + bool append_to_sort_specs = g.IO.KeyShift; + if (MenuItem("Sort in Ascending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Ascending, (column->Flags & ImGuiTableColumnFlags_NoSortAscending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Ascending, append_to_sort_specs); + if (MenuItem("Sort in Descending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Descending, (column->Flags & ImGuiTableColumnFlags_NoSortDescending) == 0)) + TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Descending, append_to_sort_specs); + } +#endif + + // Hiding / Visibility + if (table->Flags & ImGuiTableFlags_Hideable) + { + if (want_separator) + Separator(); + want_separator = true; + + PushItemFlag(ImGuiItemFlags_SelectableDontClosePopup, true); + for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) + { + ImGuiTableColumn* other_column = &table->Columns[other_column_n]; + if (other_column->Flags & ImGuiTableColumnFlags_Disabled) + continue; + + const char* name = TableGetColumnName(table, other_column_n); + if (name == NULL || name[0] == 0) + name = ""; + + // Make sure we can't hide the last active column + bool menu_item_active = (other_column->Flags & ImGuiTableColumnFlags_NoHide) ? false : true; + if (other_column->IsUserEnabled && table->ColumnsEnabledCount <= 1) + menu_item_active = false; + if (MenuItem(name, NULL, other_column->IsUserEnabled, menu_item_active)) + other_column->IsUserEnabledNextFrame = !other_column->IsUserEnabled; + } + PopItemFlag(); + } +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Settings (.ini data) +//------------------------------------------------------------------------- +// FIXME: The binding/finding/creating flow are too confusing. +//------------------------------------------------------------------------- +// - TableSettingsInit() [Internal] +// - TableSettingsCalcChunkSize() [Internal] +// - TableSettingsCreate() [Internal] +// - TableSettingsFindByID() [Internal] +// - TableGetBoundSettings() [Internal] +// - TableResetSettings() +// - TableSaveSettings() [Internal] +// - TableLoadSettings() [Internal] +// - TableSettingsHandler_ClearAll() [Internal] +// - TableSettingsHandler_ApplyAll() [Internal] +// - TableSettingsHandler_ReadOpen() [Internal] +// - TableSettingsHandler_ReadLine() [Internal] +// - TableSettingsHandler_WriteAll() [Internal] +// - TableSettingsInstallHandler() [Internal] +//------------------------------------------------------------------------- +// [Init] 1: TableSettingsHandler_ReadXXXX() Load and parse .ini file into TableSettings. +// [Main] 2: TableLoadSettings() When table is created, bind Table to TableSettings, serialize TableSettings data into Table. +// [Main] 3: TableSaveSettings() When table properties are modified, serialize Table data into bound or new TableSettings, mark .ini as dirty. +// [Main] 4: TableSettingsHandler_WriteAll() When .ini file is dirty (which can come from other source), save TableSettings into .ini file. +//------------------------------------------------------------------------- + +// Clear and initialize empty settings instance +static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) +{ + IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); + ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); + for (int n = 0; n < columns_count_max; n++, settings_column++) + IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); + settings->ID = id; + settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; + settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; + settings->WantApply = true; +} + +static size_t TableSettingsCalcChunkSize(int columns_count) +{ + return sizeof(ImGuiTableSettings) + (size_t)columns_count * sizeof(ImGuiTableColumnSettings); +} + +ImGuiTableSettings* ImGui::TableSettingsCreate(ImGuiID id, int columns_count) +{ + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.alloc_chunk(TableSettingsCalcChunkSize(columns_count)); + TableSettingsInit(settings, id, columns_count, columns_count); + return settings; +} + +// Find existing settings +ImGuiTableSettings* ImGui::TableSettingsFindByID(ImGuiID id) +{ + // FIXME-OPT: Might want to store a lookup map for this? + ImGuiContext& g = *GImGui; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID == id) + return settings; + return NULL; +} + +// Get settings for a given table, NULL if none +ImGuiTableSettings* ImGui::TableGetBoundSettings(ImGuiTable* table) +{ + if (table->SettingsOffset != -1) + { + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = g.SettingsTables.ptr_from_offset(table->SettingsOffset); + IM_ASSERT(settings->ID == table->ID); + if (settings->ColumnsCountMax >= table->ColumnsCount) + return settings; // OK + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return NULL; +} + +// Restore initial state of table (with or without saved settings) +void ImGui::TableResetSettings(ImGuiTable* table) +{ + table->IsInitializing = table->IsSettingsDirty = true; + table->IsResetAllRequest = false; + table->IsSettingsRequestLoad = false; // Don't reload from ini + table->SettingsLoadedFlags = ImGuiTableFlags_None; // Mark as nothing loaded so our initialized data becomes authoritative +} + +void ImGui::TableSaveSettings(ImGuiTable* table) +{ + table->IsSettingsDirty = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind or create settings data + ImGuiContext& g = *GImGui; + ImGuiTableSettings* settings = TableGetBoundSettings(table); + if (settings == NULL) + { + settings = TableSettingsCreate(table->ID, table->ColumnsCount); + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + settings->ColumnsCount = (ImGuiTableColumnIdx)table->ColumnsCount; + + // Serialize ImGuiTable/ImGuiTableColumn into ImGuiTableSettings/ImGuiTableColumnSettings + IM_ASSERT(settings->ID == table->ID); + IM_ASSERT(settings->ColumnsCount == table->ColumnsCount && settings->ColumnsCountMax >= settings->ColumnsCount); + ImGuiTableColumn* column = table->Columns.Data; + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + + bool save_ref_scale = false; + settings->SaveFlags = ImGuiTableFlags_None; + for (int n = 0; n < table->ColumnsCount; n++, column++, column_settings++) + { + const float width_or_weight = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? column->StretchWeight : column->WidthRequest; + column_settings->WidthOrWeight = width_or_weight; + column_settings->Index = (ImGuiTableColumnIdx)n; + column_settings->DisplayOrder = column->DisplayOrder; + column_settings->SortOrder = column->SortOrder; + column_settings->SortDirection = column->SortDirection; + column_settings->IsEnabled = column->IsUserEnabled; + column_settings->IsStretch = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? 1 : 0; + if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) == 0) + save_ref_scale = true; + + // We skip saving some data in the .ini file when they are unnecessary to restore our state. + // Note that fixed width where initial width was derived from auto-fit will always be saved as InitStretchWeightOrWidth will be 0.0f. + // FIXME-TABLE: We don't have logic to easily compare SortOrder to DefaultSortOrder yet so it's always saved when present. + if (width_or_weight != column->InitStretchWeightOrWidth) + settings->SaveFlags |= ImGuiTableFlags_Resizable; + if (column->DisplayOrder != n) + settings->SaveFlags |= ImGuiTableFlags_Reorderable; + if (column->SortOrder != -1) + settings->SaveFlags |= ImGuiTableFlags_Sortable; + if (column->IsUserEnabled != ((column->Flags & ImGuiTableColumnFlags_DefaultHide) == 0)) + settings->SaveFlags |= ImGuiTableFlags_Hideable; + } + settings->SaveFlags &= table->Flags; + settings->RefScale = save_ref_scale ? table->RefScale : 0.0f; + + MarkIniSettingsDirty(); +} + +void ImGui::TableLoadSettings(ImGuiTable* table) +{ + ImGuiContext& g = *GImGui; + table->IsSettingsRequestLoad = false; + if (table->Flags & ImGuiTableFlags_NoSavedSettings) + return; + + // Bind settings + ImGuiTableSettings* settings; + if (table->SettingsOffset == -1) + { + settings = TableSettingsFindByID(table->ID); + if (settings == NULL) + return; + if (settings->ColumnsCount != table->ColumnsCount) // Allow settings if columns count changed. We could otherwise decide to return... + table->IsSettingsDirty = true; + table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); + } + else + { + settings = TableGetBoundSettings(table); + } + + table->SettingsLoadedFlags = settings->SaveFlags; + table->RefScale = settings->RefScale; + + // Serialize ImGuiTableSettings/ImGuiTableColumnSettings into ImGuiTable/ImGuiTableColumn + ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); + ImU64 display_order_mask = 0; + for (int data_n = 0; data_n < settings->ColumnsCount; data_n++, column_settings++) + { + int column_n = column_settings->Index; + if (column_n < 0 || column_n >= table->ColumnsCount) + continue; + + ImGuiTableColumn* column = &table->Columns[column_n]; + if (settings->SaveFlags & ImGuiTableFlags_Resizable) + { + if (column_settings->IsStretch) + column->StretchWeight = column_settings->WidthOrWeight; + else + column->WidthRequest = column_settings->WidthOrWeight; + column->AutoFitQueue = 0x00; + } + if (settings->SaveFlags & ImGuiTableFlags_Reorderable) + column->DisplayOrder = column_settings->DisplayOrder; + else + column->DisplayOrder = (ImGuiTableColumnIdx)column_n; + display_order_mask |= (ImU64)1 << column->DisplayOrder; + column->IsUserEnabled = column->IsUserEnabledNextFrame = column_settings->IsEnabled; + column->SortOrder = column_settings->SortOrder; + column->SortDirection = column_settings->SortDirection; + } + + // Validate and fix invalid display order data + const ImU64 expected_display_order_mask = (settings->ColumnsCount == 64) ? ~0 : ((ImU64)1 << settings->ColumnsCount) - 1; + if (display_order_mask != expected_display_order_mask) + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->Columns[column_n].DisplayOrder = (ImGuiTableColumnIdx)column_n; + + // Rebuild index + for (int column_n = 0; column_n < table->ColumnsCount; column_n++) + table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; +} + +static void TableSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + table->SettingsOffset = -1; + g.SettingsTables.clear(); +} + +// Apply to existing windows (if any) +static void TableSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Tables.GetMapSize(); i++) + if (ImGuiTable* table = g.Tables.TryGetMapData(i)) + { + table->IsSettingsRequestLoad = true; + table->SettingsOffset = -1; + } +} + +static void* TableSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiID id = 0; + int columns_count = 0; + if (sscanf(name, "0x%08X,%d", &id, &columns_count) < 2) + return NULL; + + if (ImGuiTableSettings* settings = ImGui::TableSettingsFindByID(id)) + { + if (settings->ColumnsCountMax >= columns_count) + { + TableSettingsInit(settings, id, columns_count, settings->ColumnsCountMax); // Recycle + return settings; + } + settings->ID = 0; // Invalidate storage, we won't fit because of a count change + } + return ImGui::TableSettingsCreate(id, columns_count); +} + +static void TableSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + ImGuiTableSettings* settings = (ImGuiTableSettings*)entry; + float f = 0.0f; + int column_n = 0, r = 0, n = 0; + + if (sscanf(line, "RefScale=%f", &f) == 1) { settings->RefScale = f; return; } + + if (sscanf(line, "Column %d%n", &column_n, &r) == 1) + { + if (column_n < 0 || column_n >= settings->ColumnsCount) + return; + line = ImStrSkipBlank(line + r); + char c = 0; + ImGuiTableColumnSettings* column = settings->GetColumnSettings() + column_n; + column->Index = (ImGuiTableColumnIdx)column_n; + if (sscanf(line, "UserID=0x%08X%n", (ImU32*)&n, &r)==1) { line = ImStrSkipBlank(line + r); column->UserID = (ImGuiID)n; } + if (sscanf(line, "Width=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = (float)n; column->IsStretch = 0; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Weight=%f%n", &f, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = f; column->IsStretch = 1; settings->SaveFlags |= ImGuiTableFlags_Resizable; } + if (sscanf(line, "Visible=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->IsEnabled = (ImU8)n; settings->SaveFlags |= ImGuiTableFlags_Hideable; } + if (sscanf(line, "Order=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->DisplayOrder = (ImGuiTableColumnIdx)n; settings->SaveFlags |= ImGuiTableFlags_Reorderable; } + if (sscanf(line, "Sort=%d%c%n", &n, &c, &r) == 2) { line = ImStrSkipBlank(line + r); column->SortOrder = (ImGuiTableColumnIdx)n; column->SortDirection = (c == '^') ? ImGuiSortDirection_Descending : ImGuiSortDirection_Ascending; settings->SaveFlags |= ImGuiTableFlags_Sortable; } + } +} + +static void TableSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + ImGuiContext& g = *ctx; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + { + if (settings->ID == 0) // Skip ditched settings + continue; + + // TableSaveSettings() may clear some of those flags when we establish that the data can be stripped + // (e.g. Order was unchanged) + const bool save_size = (settings->SaveFlags & ImGuiTableFlags_Resizable) != 0; + const bool save_visible = (settings->SaveFlags & ImGuiTableFlags_Hideable) != 0; + const bool save_order = (settings->SaveFlags & ImGuiTableFlags_Reorderable) != 0; + const bool save_sort = (settings->SaveFlags & ImGuiTableFlags_Sortable) != 0; + if (!save_size && !save_visible && !save_order && !save_sort) + continue; + + buf->reserve(buf->size() + 30 + settings->ColumnsCount * 50); // ballpark reserve + buf->appendf("[%s][0x%08X,%d]\n", handler->TypeName, settings->ID, settings->ColumnsCount); + if (settings->RefScale != 0.0f) + buf->appendf("RefScale=%g\n", settings->RefScale); + ImGuiTableColumnSettings* column = settings->GetColumnSettings(); + for (int column_n = 0; column_n < settings->ColumnsCount; column_n++, column++) + { + // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" + bool save_column = column->UserID != 0 || save_size || save_visible || save_order || (save_sort && column->SortOrder != -1); + if (!save_column) + continue; + buf->appendf("Column %-2d", column_n); + if (column->UserID != 0) { buf->appendf(" UserID=%08X", column->UserID); } + if (save_size && column->IsStretch) { buf->appendf(" Weight=%.4f", column->WidthOrWeight); } + if (save_size && !column->IsStretch) { buf->appendf(" Width=%d", (int)column->WidthOrWeight); } + if (save_visible) { buf->appendf(" Visible=%d", column->IsEnabled); } + if (save_order) { buf->appendf(" Order=%d", column->DisplayOrder); } + if (save_sort && column->SortOrder != -1) { buf->appendf(" Sort=%d%c", column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? 'v' : '^'); } + buf->append("\n"); + } + buf->append("\n"); + } +} + +void ImGui::TableSettingsAddSettingsHandler() +{ + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Table"; + ini_handler.TypeHash = ImHashStr("Table"); + ini_handler.ClearAllFn = TableSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = TableSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; + AddSettingsHandler(&ini_handler); +} + +//------------------------------------------------------------------------- +// [SECTION] Tables: Garbage Collection +//------------------------------------------------------------------------- +// - TableRemove() [Internal] +// - TableGcCompactTransientBuffers() [Internal] +// - TableGcCompactSettings() [Internal] +//------------------------------------------------------------------------- + +// Remove Table (currently only used by TestEngine) +void ImGui::TableRemove(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableRemove() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + int table_idx = g.Tables.GetIndex(table); + //memset(table->RawData.Data, 0, table->RawData.size_in_bytes()); + //memset(table, 0, sizeof(ImGuiTable)); + g.Tables.Remove(table->ID, table); + g.TablesLastTimeActive[table_idx] = -1.0f; +} + +// Free up/compact internal Table buffers for when it gets unused +void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table) +{ + //IMGUI_DEBUG_PRINT("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); + ImGuiContext& g = *GImGui; + IM_ASSERT(table->MemoryCompacted == false); + table->SortSpecs.Specs = NULL; + table->SortSpecsMulti.clear(); + table->IsSortSpecsDirty = true; // FIXME: In theory shouldn't have to leak into user performing a sort on resume. + table->ColumnsNames.clear(); + table->MemoryCompacted = true; + for (int n = 0; n < table->ColumnsCount; n++) + table->Columns[n].NameOffset = -1; + g.TablesLastTimeActive[g.Tables.GetIndex(table)] = -1.0f; +} + +void ImGui::TableGcCompactTransientBuffers(ImGuiTableTempData* temp_data) +{ + temp_data->DrawSplitter.ClearFreeMemory(); + temp_data->LastTimeActive = -1.0f; +} + +// Compact and remove unused settings data (currently only used by TestEngine) +void ImGui::TableGcCompactSettings() +{ + ImGuiContext& g = *GImGui; + int required_memory = 0; + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + required_memory += (int)TableSettingsCalcChunkSize(settings->ColumnsCount); + if (required_memory == g.SettingsTables.Buf.Size) + return; + ImChunkStream new_chunk_stream; + new_chunk_stream.Buf.reserve(required_memory); + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + if (settings->ID != 0) + memcpy(new_chunk_stream.alloc_chunk(TableSettingsCalcChunkSize(settings->ColumnsCount)), settings, TableSettingsCalcChunkSize(settings->ColumnsCount)); + g.SettingsTables.swap(new_chunk_stream); +} + + +//------------------------------------------------------------------------- +// [SECTION] Tables: Debugging +//------------------------------------------------------------------------- +// - DebugNodeTable() [Internal] +//------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + +static const char* DebugNodeTableGetSizingPolicyDesc(ImGuiTableFlags sizing_policy) +{ + sizing_policy &= ImGuiTableFlags_SizingMask_; + if (sizing_policy == ImGuiTableFlags_SizingFixedFit) { return "FixedFit"; } + if (sizing_policy == ImGuiTableFlags_SizingFixedSame) { return "FixedSame"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchProp) { return "StretchProp"; } + if (sizing_policy == ImGuiTableFlags_SizingStretchSame) { return "StretchSame"; } + return "N/A"; +} + +void ImGui::DebugNodeTable(ImGuiTable* table) +{ + const bool is_active = (table->LastFrameActive >= GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here. + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = TreeNode(table, "Table 0x%08X (%d columns, in '%s')%s", table->ID, table->ColumnsCount, table->OuterWindow->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PopStyleColor(); } + if (IsItemHovered()) + GetForegroundDrawList()->AddRect(table->OuterRect.Min, table->OuterRect.Max, IM_COL32(255, 255, 0, 255)); + if (IsItemVisible() && table->HoveredColumnBody != -1) + GetForegroundDrawList()->AddRect(GetItemRectMin(), GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + if (!open) + return; + if (table->InstanceCurrent > 0) + Text("** %d instances of same table! Some data below will refer to last instance.", table->InstanceCurrent + 1); + bool clear_settings = SmallButton("Clear settings"); + BulletText("OuterRect: Pos: (%.1f,%.1f) Size: (%.1f,%.1f) Sizing: '%s'", table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.GetWidth(), table->OuterRect.GetHeight(), DebugNodeTableGetSizingPolicyDesc(table->Flags)); + BulletText("ColumnsGivenWidth: %.1f, ColumnsAutoFitWidth: %.1f, InnerWidth: %.1f%s", table->ColumnsGivenWidth, table->ColumnsAutoFitWidth, table->InnerWidth, table->InnerWidth == 0.0f ? " (auto)" : ""); + BulletText("CellPaddingX: %.1f, CellSpacingX: %.1f/%.1f, OuterPaddingX: %.1f", table->CellPaddingX, table->CellSpacingX1, table->CellSpacingX2, table->OuterPaddingX); + BulletText("HoveredColumnBody: %d, HoveredColumnBorder: %d", table->HoveredColumnBody, table->HoveredColumnBorder); + BulletText("ResizedColumn: %d, ReorderColumn: %d, HeldHeaderColumn: %d", table->ResizedColumn, table->ReorderColumn, table->HeldHeaderColumn); + for (int n = 0; n < table->InstanceCurrent + 1; n++) + { + ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, n); + BulletText("Instance %d: HoveredRow: %d, LastOuterHeight: %.2f", n, table_instance->HoveredRowLast, table_instance->LastOuterHeight); + } + //BulletText("BgDrawChannels: %d/%d", 0, table->BgDrawChannelUnfrozen); + float sum_weights = 0.0f; + for (int n = 0; n < table->ColumnsCount; n++) + if (table->Columns[n].Flags & ImGuiTableColumnFlags_WidthStretch) + sum_weights += table->Columns[n].StretchWeight; + for (int n = 0; n < table->ColumnsCount; n++) + { + ImGuiTableColumn* column = &table->Columns[n]; + const char* name = TableGetColumnName(table, n); + char buf[512]; + ImFormatString(buf, IM_ARRAYSIZE(buf), + "Column %d order %d '%s': offset %+.2f to %+.2f%s\n" + "Enabled: %d, VisibleX/Y: %d/%d, RequestOutput: %d, SkipItems: %d, DrawChannels: %d,%d\n" + "WidthGiven: %.1f, Request/Auto: %.1f/%.1f, StretchWeight: %.3f (%.1f%%)\n" + "MinX: %.1f, MaxX: %.1f (%+.1f), ClipRect: %.1f to %.1f (+%.1f)\n" + "ContentWidth: %.1f,%.1f, HeadersUsed/Ideal %.1f/%.1f\n" + "Sort: %d%s, UserID: 0x%08X, Flags: 0x%04X: %s%s%s..", + n, column->DisplayOrder, name, column->MinX - table->WorkRect.Min.x, column->MaxX - table->WorkRect.Min.x, (n < table->FreezeColumnsRequest) ? " (Frozen)" : "", + column->IsEnabled, column->IsVisibleX, column->IsVisibleY, column->IsRequestOutput, column->IsSkipItems, column->DrawChannelFrozen, column->DrawChannelUnfrozen, + column->WidthGiven, column->WidthRequest, column->WidthAuto, column->StretchWeight, column->StretchWeight > 0.0f ? (column->StretchWeight / sum_weights) * 100.0f : 0.0f, + column->MinX, column->MaxX, column->MaxX - column->MinX, column->ClipRect.Min.x, column->ClipRect.Max.x, column->ClipRect.Max.x - column->ClipRect.Min.x, + column->ContentMaxXFrozen - column->WorkMinX, column->ContentMaxXUnfrozen - column->WorkMinX, column->ContentMaxXHeadersUsed - column->WorkMinX, column->ContentMaxXHeadersIdeal - column->WorkMinX, + column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? " (Asc)" : (column->SortDirection == ImGuiSortDirection_Descending) ? " (Des)" : "", column->UserID, column->Flags, + (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? "WidthStretch " : "", + (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? "WidthFixed " : "", + (column->Flags & ImGuiTableColumnFlags_NoResize) ? "NoResize " : ""); + Bullet(); + Selectable(buf); + if (IsItemHovered()) + { + ImRect r(column->MinX, table->OuterRect.Min.y, column->MaxX, table->OuterRect.Max.y); + GetForegroundDrawList()->AddRect(r.Min, r.Max, IM_COL32(255, 255, 0, 255)); + } + } + if (ImGuiTableSettings* settings = TableGetBoundSettings(table)) + DebugNodeTableSettings(settings); + if (clear_settings) + table->IsResetAllRequest = true; + TreePop(); +} + +void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings) +{ + if (!TreeNode((void*)(intptr_t)settings->ID, "Settings 0x%08X (%d columns)", settings->ID, settings->ColumnsCount)) + return; + BulletText("SaveFlags: 0x%08X", settings->SaveFlags); + BulletText("ColumnsCount: %d (max %d)", settings->ColumnsCount, settings->ColumnsCountMax); + for (int n = 0; n < settings->ColumnsCount; n++) + { + ImGuiTableColumnSettings* column_settings = &settings->GetColumnSettings()[n]; + ImGuiSortDirection sort_dir = (column_settings->SortOrder != -1) ? (ImGuiSortDirection)column_settings->SortDirection : ImGuiSortDirection_None; + BulletText("Column %d Order %d SortOrder %d %s Vis %d %s %7.3f UserID 0x%08X", + n, column_settings->DisplayOrder, column_settings->SortOrder, + (sort_dir == ImGuiSortDirection_Ascending) ? "Asc" : (sort_dir == ImGuiSortDirection_Descending) ? "Des" : "---", + column_settings->IsEnabled, column_settings->IsStretch ? "Weight" : "Width ", column_settings->WidthOrWeight, column_settings->UserID); + } + TreePop(); +} + +#else // #ifndef IMGUI_DISABLE_DEBUG_TOOLS + +void ImGui::DebugNodeTable(ImGuiTable*) {} +void ImGui::DebugNodeTableSettings(ImGuiTableSettings*) {} + +#endif + + +//------------------------------------------------------------------------- +// [SECTION] Columns, BeginColumns, EndColumns, etc. +// (This is a legacy API, prefer using BeginTable/EndTable!) +//------------------------------------------------------------------------- +// FIXME: sizing is lossy when columns width is very small (default width may turn negative etc.) +//------------------------------------------------------------------------- +// - SetWindowClipRectBeforeSetChannel() [Internal] +// - GetColumnIndex() +// - GetColumnsCount() +// - GetColumnOffset() +// - GetColumnWidth() +// - SetColumnOffset() +// - SetColumnWidth() +// - PushColumnClipRect() [Internal] +// - PushColumnsBackground() [Internal] +// - PopColumnsBackground() [Internal] +// - FindOrCreateColumns() [Internal] +// - GetColumnsID() [Internal] +// - BeginColumns() +// - NextColumn() +// - EndColumns() +// - Columns() +//------------------------------------------------------------------------- + +// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences, +// they would meddle many times with the underlying ImDrawCmd. +// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let +// the subsequent single call to SetCurrentChannel() does it things once. +void ImGui::SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect) +{ + ImVec4 clip_rect_vec4 = clip_rect.ToVec4(); + window->ClipRect = clip_rect; + window->DrawList->_CmdHeader.ClipRect = clip_rect_vec4; + window->DrawList->_ClipRectStack.Data[window->DrawList->_ClipRectStack.Size - 1] = clip_rect_vec4; +} + +int ImGui::GetColumnIndex() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Current : 0; +} + +int ImGui::GetColumnsCount() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Count : 1; +} + +float ImGui::GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm) +{ + return offset_norm * (columns->OffMaxX - columns->OffMinX); +} + +float ImGui::GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset) +{ + return offset / (columns->OffMaxX - columns->OffMinX); +} + +static const float COLUMNS_HIT_RECT_HALF_WIDTH = 4.0f; + +static float GetDraggedColumnOffset(ImGuiOldColumns* columns, int column_index) +{ + // Active (dragged) column always follow mouse. The reason we need this is that dragging a column to the right edge of an auto-resizing + // window creates a feedback loop because we store normalized positions. So while dragging we enforce absolute positioning. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(column_index > 0); // We are not supposed to drag column 0. + IM_ASSERT(g.ActiveId == columns->ID + ImGuiID(column_index)); + + float x = g.IO.MousePos.x - g.ActiveIdClickOffset.x + COLUMNS_HIT_RECT_HALF_WIDTH - window->Pos.x; + x = ImMax(x, ImGui::GetColumnOffset(column_index - 1) + g.Style.ColumnsMinSpacing); + if ((columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths)) + x = ImMin(x, ImGui::GetColumnOffset(column_index + 1) - g.Style.ColumnsMinSpacing); + + return x; +} + +float ImGui::GetColumnOffset(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return 0.0f; + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const float t = columns->Columns[column_index].OffsetNorm; + const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); + return x_offset; +} + +static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false) +{ + if (column_index < 0) + column_index = columns->Current; + + float offset_norm; + if (before_resize) + offset_norm = columns->Columns[column_index + 1].OffsetNormBeforeResize - columns->Columns[column_index].OffsetNormBeforeResize; + else + offset_norm = columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm; + return ImGui::GetColumnOffsetFromNorm(columns, offset_norm); +} + +float ImGui::GetColumnWidth(int column_index) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return GetContentRegionAvail().x; + + if (column_index < 0) + column_index = columns->Current; + return GetColumnOffsetFromNorm(columns, columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm); +} + +void ImGui::SetColumnOffset(int column_index, float offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const bool preserve_width = !(columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths) && (column_index < columns->Count - 1); + const float width = preserve_width ? GetColumnWidthEx(columns, column_index, columns->IsBeingResized) : 0.0f; + + if (!(columns->Flags & ImGuiOldColumnFlags_NoForceWithinWindow)) + offset = ImMin(offset, columns->OffMaxX - g.Style.ColumnsMinSpacing * (columns->Count - column_index)); + columns->Columns[column_index].OffsetNorm = GetColumnNormFromOffset(columns, offset - columns->OffMinX); + + if (preserve_width) + SetColumnOffset(column_index + 1, offset + ImMax(g.Style.ColumnsMinSpacing, width)); +} + +void ImGui::SetColumnWidth(int column_index, float width) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + SetColumnOffset(column_index + 1, GetColumnOffset(column_index) + width); +} + +void ImGui::PushColumnClipRect(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (column_index < 0) + column_index = columns->Current; + + ImGuiOldColumnData* column = &columns->Columns[column_index]; + PushClipRect(column->ClipRect.Min, column->ClipRect.Max, false); +} + +// Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns) +void ImGui::PushColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + columns->HostBackupClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, columns->HostInitialClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, 0); +} + +void ImGui::PopColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, columns->HostBackupClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); +} + +ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id) +{ + // We have few columns per window so for now we don't need bother much with turning this into a faster lookup. + for (int n = 0; n < window->ColumnsStorage.Size; n++) + if (window->ColumnsStorage[n].ID == id) + return &window->ColumnsStorage[n]; + + window->ColumnsStorage.push_back(ImGuiOldColumns()); + ImGuiOldColumns* columns = &window->ColumnsStorage.back(); + columns->ID = id; + return columns; +} + +ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) +{ + ImGuiWindow* window = GetCurrentWindow(); + + // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget. + // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer. + PushID(0x11223347 + (str_id ? 0 : columns_count)); + ImGuiID id = window->GetID(str_id ? str_id : "columns"); + PopID(); + + return id; +} + +void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiOldColumnFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + IM_ASSERT(columns_count >= 1); + IM_ASSERT(window->DC.CurrentColumns == NULL); // Nested columns are currently not supported + + // Acquire storage for the columns set + ImGuiID id = GetColumnsID(str_id, columns_count); + ImGuiOldColumns* columns = FindOrCreateColumns(window, id); + IM_ASSERT(columns->ID == id); + columns->Current = 0; + columns->Count = columns_count; + columns->Flags = flags; + window->DC.CurrentColumns = columns; + window->DC.NavIsScrollPushableX = false; // Shortcut for NavUpdateCurrentWindowIsScrollPushableX(); + + columns->HostCursorPosY = window->DC.CursorPos.y; + columns->HostCursorMaxPosX = window->DC.CursorMaxPos.x; + columns->HostInitialClipRect = window->ClipRect; + columns->HostBackupParentWorkRect = window->ParentWorkRect; + window->ParentWorkRect = window->WorkRect; + + // Set state for first column + // We aim so that the right-most column will have the same clipping width as other after being clipped by parent ClipRect + const float column_padding = g.Style.ItemSpacing.x; + const float half_clip_extend_x = ImFloor(ImMax(window->WindowPadding.x * 0.5f, window->WindowBorderSize)); + const float max_1 = window->WorkRect.Max.x + column_padding - ImMax(column_padding - window->WindowPadding.x, 0.0f); + const float max_2 = window->WorkRect.Max.x + half_clip_extend_x; + columns->OffMinX = window->DC.Indent.x - column_padding + ImMax(column_padding - window->WindowPadding.x, 0.0f); + columns->OffMaxX = ImMax(ImMin(max_1, max_2) - window->Pos.x, columns->OffMinX + 1.0f); + columns->LineMinY = columns->LineMaxY = window->DC.CursorPos.y; + + // Clear data if columns count changed + if (columns->Columns.Size != 0 && columns->Columns.Size != columns_count + 1) + columns->Columns.resize(0); + + // Initialize default widths + columns->IsFirstFrame = (columns->Columns.Size == 0); + if (columns->Columns.Size == 0) + { + columns->Columns.reserve(columns_count + 1); + for (int n = 0; n < columns_count + 1; n++) + { + ImGuiOldColumnData column; + column.OffsetNorm = n / (float)columns_count; + columns->Columns.push_back(column); + } + } + + for (int n = 0; n < columns_count; n++) + { + // Compute clipping rectangle + ImGuiOldColumnData* column = &columns->Columns[n]; + float clip_x1 = IM_ROUND(window->Pos.x + GetColumnOffset(n)); + float clip_x2 = IM_ROUND(window->Pos.x + GetColumnOffset(n + 1) - 1.0f); + column->ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX); + column->ClipRect.ClipWithFull(window->ClipRect); + } + + if (columns->Count > 1) + { + columns->Splitter.Split(window->DrawList, 1 + columns->Count); + columns->Splitter.SetCurrentChannel(window->DrawList, 1); + PushColumnClipRect(0); + } + + // We don't generally store Indent.x inside ColumnsOffset because it may be manipulated by the user. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; + window->WorkRect.Max.y = window->ContentRegionRect.Max.y; +} + +void ImGui::NextColumn() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems || window->DC.CurrentColumns == NULL) + return; + + ImGuiContext& g = *GImGui; + ImGuiOldColumns* columns = window->DC.CurrentColumns; + + if (columns->Count == 1) + { + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + IM_ASSERT(columns->Current == 0); + return; + } + + // Next column + if (++columns->Current == columns->Count) + columns->Current = 0; + + PopItemWidth(); + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + PushClipRect() + // (which would needlessly attempt to update commands in the wrong channel, then pop or overwrite them), + ImGuiOldColumnData* column = &columns->Columns[columns->Current]; + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); + + const float column_padding = g.Style.ItemSpacing.x; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + if (columns->Current > 0) + { + // Columns 1+ ignore IndentX (by canceling it out) + // FIXME-COLUMNS: Unnecessary, could be locked? + window->DC.ColumnsOffset.x = GetColumnOffset(columns->Current) - window->DC.Indent.x + column_padding; + } + else + { + // New row/line: column 0 honor IndentX. + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.IsSameLine = false; + columns->LineMinY = columns->LineMaxY; + } + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->DC.CursorPos.y = columns->LineMinY; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = 0.0f; + + // FIXME-COLUMNS: Share code with BeginColumns() - move code on columns setup. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::EndColumns() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + ImGuiOldColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + PopItemWidth(); + if (columns->Count > 1) + { + PopClipRect(); + columns->Splitter.Merge(window->DrawList); + } + + const ImGuiOldColumnFlags flags = columns->Flags; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + window->DC.CursorPos.y = columns->LineMaxY; + if (!(flags & ImGuiOldColumnFlags_GrowParentContentsSize)) + window->DC.CursorMaxPos.x = columns->HostCursorMaxPosX; // Restore cursor max pos, as columns don't grow parent + + // Draw columns borders and handle resize + // The IsBeingResized flag ensure we preserve pre-resize columns width so back-and-forth are not lossy + bool is_being_resized = false; + if (!(flags & ImGuiOldColumnFlags_NoBorder) && !window->SkipItems) + { + // We clip Y boundaries CPU side because very long triangles are mishandled by some GPU drivers. + const float y1 = ImMax(columns->HostCursorPosY, window->ClipRect.Min.y); + const float y2 = ImMin(window->DC.CursorPos.y, window->ClipRect.Max.y); + int dragging_column = -1; + for (int n = 1; n < columns->Count; n++) + { + ImGuiOldColumnData* column = &columns->Columns[n]; + float x = window->Pos.x + GetColumnOffset(n); + const ImGuiID column_id = columns->ID + ImGuiID(n); + const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; + const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); + if (!ItemAdd(column_hit_rect, column_id, NULL, ImGuiItemFlags_NoNav)) + continue; + + bool hovered = false, held = false; + if (!(flags & ImGuiOldColumnFlags_NoResize)) + { + ButtonBehavior(column_hit_rect, column_id, &hovered, &held); + if (hovered || held) + g.MouseCursor = ImGuiMouseCursor_ResizeEW; + if (held && !(column->Flags & ImGuiOldColumnFlags_NoResize)) + dragging_column = n; + } + + // Draw column + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : hovered ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + const float xi = IM_FLOOR(x); + window->DrawList->AddLine(ImVec2(xi, y1 + 1.0f), ImVec2(xi, y2), col); + } + + // Apply dragging after drawing the column lines, so our rendered lines are in sync with how items were displayed during the frame. + if (dragging_column != -1) + { + if (!columns->IsBeingResized) + for (int n = 0; n < columns->Count + 1; n++) + columns->Columns[n].OffsetNormBeforeResize = columns->Columns[n].OffsetNorm; + columns->IsBeingResized = is_being_resized = true; + float x = GetDraggedColumnOffset(columns, dragging_column); + SetColumnOffset(dragging_column, x); + } + } + columns->IsBeingResized = is_being_resized; + + window->WorkRect = window->ParentWorkRect; + window->ParentWorkRect = columns->HostBackupParentWorkRect; + window->DC.CurrentColumns = NULL; + window->DC.ColumnsOffset.x = 0.0f; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + NavUpdateCurrentWindowIsScrollPushableX(); +} + +void ImGui::Columns(int columns_count, const char* id, bool border) +{ + ImGuiWindow* window = GetCurrentWindow(); + IM_ASSERT(columns_count >= 1); + + ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder); + //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior + ImGuiOldColumns* columns = window->DC.CurrentColumns; + if (columns != NULL && columns->Count == columns_count && columns->Flags == flags) + return; + + if (columns != NULL) + EndColumns(); + + if (columns_count != 1) + BeginColumns(id, columns_count, flags); +} + +//------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/imgui_widgets.cpp b/thirdparty/imgui_suite/imgui/cpp/imgui_widgets.cpp new file mode 100644 index 00000000000..5d1dd459d2c --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/imgui_widgets.cpp @@ -0,0 +1,9022 @@ +// dear imgui, v1.90 WIP +// (widgets code) + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Widgets: Text, etc. +// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.) +// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.) +// [SECTION] Widgets: ComboBox +// [SECTION] Data Type and Data Formatting Helpers +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +// [SECTION] Widgets: InputText, InputTextMultiline +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +// [SECTION] Widgets: Selectable +// [SECTION] Widgets: Typing-Select support +// [SECTION] Widgets: Multi-Select support +// [SECTION] Widgets: ListBox +// [SECTION] Widgets: PlotLines, PlotHistogram +// [SECTION] Widgets: Value helpers +// [SECTION] Widgets: MenuItem, BeginMenu, EndMenu, etc. +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +// [SECTION] Widgets: Columns, BeginColumns, EndColumns, etc. + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE +#include "imgui_internal.h" + +// System includes +#include // intptr_t + +//------------------------------------------------------------------------- +// Warnings +//------------------------------------------------------------------------- + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#pragma warning (disable: 26451) // [Static Analyzer] Arithmetic overflow : Using operator 'xxx' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator 'xxx' to avoid overflow(io.2). +#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Widgets +static const float DRAGDROP_HOLD_TO_OPEN_TIMER = 0.70f; // Time for drag-hold to activate items accepting the ImGuiButtonFlags_PressedOnDragDropHold button behavior. +static const float DRAG_MOUSE_THRESHOLD_FACTOR = 0.50f; // Multiplier for the default value of io.MouseDragThreshold to make DragFloat/DragInt react faster to mouse drags. + +// Those MIN/MAX values are not define because we need to point to them +static const signed char IM_S8_MIN = -128; +static const signed char IM_S8_MAX = 127; +static const unsigned char IM_U8_MIN = 0; +static const unsigned char IM_U8_MAX = 0xFF; +static const signed short IM_S16_MIN = -32768; +static const signed short IM_S16_MAX = 32767; +static const unsigned short IM_U16_MIN = 0; +static const unsigned short IM_U16_MAX = 0xFFFF; +static const ImS32 IM_S32_MIN = INT_MIN; // (-2147483647 - 1), (0x80000000); +static const ImS32 IM_S32_MAX = INT_MAX; // (2147483647), (0x7FFFFFFF) +static const ImU32 IM_U32_MIN = 0; +static const ImU32 IM_U32_MAX = UINT_MAX; // (0xFFFFFFFF) +#ifdef LLONG_MIN +static const ImS64 IM_S64_MIN = LLONG_MIN; // (-9223372036854775807ll - 1ll); +static const ImS64 IM_S64_MAX = LLONG_MAX; // (9223372036854775807ll); +#else +static const ImS64 IM_S64_MIN = -9223372036854775807LL - 1; +static const ImS64 IM_S64_MAX = 9223372036854775807LL; +#endif +static const ImU64 IM_U64_MIN = 0; +#ifdef ULLONG_MAX +static const ImU64 IM_U64_MAX = ULLONG_MAX; // (0xFFFFFFFFFFFFFFFFull); +#else +static const ImU64 IM_U64_MAX = (2ULL * 9223372036854775807LL + 1); +#endif + +//------------------------------------------------------------------------- +// [SECTION] Forward Declarations +//------------------------------------------------------------------------- + +// For InputTextEx() +static bool InputTextFilterCharacter(ImGuiContext* ctx, unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source); +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end); +static ImVec2 InputTextCalcTextSizeW(ImGuiContext* ctx, const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false); + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Text, etc. +//------------------------------------------------------------------------- +// - TextEx() [Internal] +// - TextUnformatted() +// - Text() +// - TextV() +// - TextColored() +// - TextColoredV() +// - TextDisabled() +// - TextDisabledV() +// - TextWrapped() +// - TextWrappedV() +// - LabelText() +// - LabelTextV() +// - BulletText() +// - BulletTextV() +//------------------------------------------------------------------------- + +void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Accept null ranges + if (text == text_end) + text = text_end = ""; + + // Calculate length + const char* text_begin = text; + if (text_end == NULL) + text_end = text + strlen(text); // FIXME-OPT + + const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + const float wrap_pos_x = window->DC.TextWrapPos; + const bool wrap_enabled = (wrap_pos_x >= 0.0f); + if (text_end - text <= 2000 || wrap_enabled) + { + // Common case + const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; + const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + if (!ItemAdd(bb, 0)) + return; + + // Render (we don't hide text after ## in this end-user function) + RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); + } + else + { + // Long text! + // Perform manual coarse clipping to optimize for long multi-line text + // - From this point we will only compute the width of lines that are visible. Optimization only available when word-wrapping is disabled. + // - We also don't vertically center the text within the line full height, which is unlikely to matter because we are likely the biggest and only item on the line. + // - We use memchr(), pay attention that well optimized versions of those str/mem functions are much faster than a casually written loop. + const char* line = text; + const float line_height = GetTextLineHeight(); + ImVec2 text_size(0, 0); + + // Lines to skip (can't skip when logging text) + ImVec2 pos = text_pos; + if (!g.LogEnabled) + { + int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); + if (lines_skippable > 0) + { + int lines_skipped = 0; + while (line < text_end && lines_skipped < lines_skippable) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + } + + // Lines to render + if (line < text_end) + { + ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); + while (line < text_end) + { + if (IsClippedEx(line_rect, 0)) + break; + + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + RenderText(pos, line, line_end, false); + line = line_end + 1; + line_rect.Min.y += line_height; + line_rect.Max.y += line_height; + pos.y += line_height; + } + + // Count remaining lines + int lines_skipped = 0; + while (line < text_end) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + text_size.y = (pos - text_pos).y; + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + ItemAdd(bb, 0); + } +} + +void ImGui::TextUnformatted(const char* text, const char* text_end) +{ + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::Text(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextV(fmt, args); + va_end(args); +} + +void ImGui::TextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + const char* text, *text_end; + ImFormatStringToTempBufferV(&text, &text_end, fmt, args); + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextColoredV(col, fmt, args); + va_end(args); +} + +void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args) +{ + PushStyleColor(ImGuiCol_Text, col); + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextDisabled(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextDisabledV(fmt, args); + va_end(args); +} + +void ImGui::TextDisabledV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextWrapped(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextWrappedV(fmt, args); + va_end(args); +} + +void ImGui::TextWrappedV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + const bool need_backup = (g.CurrentWindow->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set + if (need_backup) + PushTextWrapPos(0.0f); + TextV(fmt, args); + if (need_backup) + PopTextWrapPos(); +} + +void ImGui::LabelText(const char* label, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + LabelTextV(label, fmt, args); + va_end(args); +} + +// Add a label+text combo aligned to other label+value widgets +void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float w = CalcItemWidth(); + + const char* value_text_begin, *value_text_end; + ImFormatStringToTempBufferV(&value_text_begin, &value_text_end, fmt, args); + const ImVec2 value_size = CalcTextSize(value_text_begin, value_text_end, false); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const ImVec2 pos = window->DC.CursorPos; + const ImRect value_bb(pos, pos + ImVec2(w, value_size.y + style.FramePadding.y * 2)); + const ImRect total_bb(pos, pos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), ImMax(value_size.y, label_size.y) + style.FramePadding.y * 2)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0)) + return; + + // Render + RenderTextClipped(value_bb.Min + style.FramePadding, value_bb.Max, value_text_begin, value_text_end, &value_size, ImVec2(0.0f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label); +} + +void ImGui::BulletText(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + BulletTextV(fmt, args); + va_end(args); +} + +// Text with a little bullet aligned to the typical tree node. +void ImGui::BulletTextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const char* text_begin, *text_end; + ImFormatStringToTempBufferV(&text_begin, &text_end, fmt, args); + const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); + const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(total_size, 0.0f); + const ImRect bb(pos, pos + total_size); + if (!ItemAdd(bb, 0)) + return; + + // Render + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, g.FontSize * 0.5f), text_col); + RenderText(bb.Min + ImVec2(g.FontSize + style.FramePadding.x * 2, 0.0f), text_begin, text_end, false); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Main +//------------------------------------------------------------------------- +// - ButtonBehavior() [Internal] +// - Button() +// - SmallButton() +// - InvisibleButton() +// - ArrowButton() +// - CloseButton() [Internal] +// - CollapseButton() [Internal] +// - GetWindowScrollbarID() [Internal] +// - GetWindowScrollbarRect() [Internal] +// - Scrollbar() [Internal] +// - ScrollbarEx() [Internal] +// - Image() +// - ImageButton() +// - Checkbox() +// - CheckboxFlagsT() [Internal] +// - CheckboxFlags() +// - RadioButton() +// - ProgressBar() +// - Bullet() +//------------------------------------------------------------------------- + +// The ButtonBehavior() function is key to many interactions and used by many/most widgets. +// Because we handle so many cases (keyboard/gamepad navigation, drag and drop) and many specific behavior (via ImGuiButtonFlags_), +// this code is a little complex. +// By far the most common path is interacting with the Mouse using the default ImGuiButtonFlags_PressedOnClickRelease button behavior. +// See the series of events below and the corresponding state reported by dear imgui: +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClickRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse is outside bb) - - - - - - +// Frame N+1 (mouse moves inside bb) - true - - - - +// Frame N+2 (mouse button is down) - true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+4 (mouse moves outside bb) - - true - - - +// Frame N+5 (mouse moves inside bb) - true true - - - +// Frame N+6 (mouse button is released) true true - - true - +// Frame N+7 (mouse button is released) - true - - - - +// Frame N+8 (mouse moves outside bb) - - - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) true true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) - true - - - true +// Frame N+3 (mouse button is down) - true - - - - +// Frame N+6 (mouse button is released) true true - - - - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnDoubleClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse button is down) - true - - - true +// Frame N+1 (mouse button is down) - true - - - - +// Frame N+2 (mouse button is released) - true - - - - +// Frame N+3 (mouse button is released) - true - - - - +// Frame N+4 (mouse button is down) true true true true - true +// Frame N+5 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// Note that some combinations are supported, +// - PressedOnDragDropHold can generally be associated with any flag. +// - PressedOnDoubleClick can be associated by PressedOnClickRelease/PressedOnRelease, in which case the second release event won't be reported. +//------------------------------------------------------------------------------------------------------------------------------------------------ +// The behavior of the return-value changes when ImGuiButtonFlags_Repeat is set: +// Repeat+ Repeat+ Repeat+ Repeat+ +// PressedOnClickRelease PressedOnClick PressedOnRelease PressedOnDoubleClick +//------------------------------------------------------------------------------------------------------------------------------------------------- +// Frame N+0 (mouse button is down) - true - true +// ... - - - - +// Frame N + RepeatDelay true true - true +// ... - - - - +// Frame N + RepeatDelay + RepeatRate*N true true - true +//------------------------------------------------------------------------------------------------------------------------------------------------- + +bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + // Default only reacts to left mouse button + if ((flags & ImGuiButtonFlags_MouseButtonMask_) == 0) + flags |= ImGuiButtonFlags_MouseButtonDefault_; + + // Default behavior requires click + release inside bounding box + if ((flags & ImGuiButtonFlags_PressedOnMask_) == 0) + flags |= ImGuiButtonFlags_PressedOnDefault_; + + // Default behavior inherited from item flags + // Note that _both_ ButtonFlags and ItemFlags are valid sources, so copy one into the item_flags and only check that. + ImGuiItemFlags item_flags = (g.LastItemData.ID == id ? g.LastItemData.InFlags : g.CurrentItemFlags); + if (flags & ImGuiButtonFlags_AllowOverlap) + item_flags |= ImGuiItemFlags_AllowOverlap; + if (flags & ImGuiButtonFlags_Repeat) + item_flags |= ImGuiItemFlags_ButtonRepeat; + + ImGuiWindow* backup_hovered_window = g.HoveredWindow; + const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredWindow && g.HoveredWindow->RootWindowDockTree == window->RootWindowDockTree; + if (flatten_hovered_children) + g.HoveredWindow = window; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + // Alternate registration spot, for when caller didn't use ItemAdd() + if (id != 0 && g.LastItemData.ID != id) + IMGUI_TEST_ENGINE_ITEM_ADD(id, bb, NULL); +#endif + + bool pressed = false; + bool hovered = ItemHoverable(bb, id, item_flags); + + // Special mode for Drag and Drop where holding button pressed for a long time while dragging another item triggers the button + if (g.DragDropActive && (flags & ImGuiButtonFlags_PressedOnDragDropHold) && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoHoldToOpenOthers)) + if (IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + { + hovered = true; + SetHoveredID(id); + if (g.HoveredIdTimer - g.IO.DeltaTime <= DRAGDROP_HOLD_TO_OPEN_TIMER && g.HoveredIdTimer >= DRAGDROP_HOLD_TO_OPEN_TIMER) + { + pressed = true; + g.DragDropHoldJustPressedId = id; + FocusWindow(window); + } + } + + if (flatten_hovered_children) + g.HoveredWindow = backup_hovered_window; + + // Mouse handling + const ImGuiID test_owner_id = (flags & ImGuiButtonFlags_NoTestKeyOwner) ? ImGuiKeyOwner_Any : id; + if (hovered) + { + // Poll mouse buttons + // - 'mouse_button_clicked' is generally carried into ActiveIdMouseButton when setting ActiveId. + // - Technically we only need some values in one code path, but since this is gated by hovered test this is fine. + int mouse_button_clicked = -1; + int mouse_button_released = -1; + for (int button = 0; button < 3; button++) + if (flags & (ImGuiButtonFlags_MouseButtonLeft << button)) // Handle ImGuiButtonFlags_MouseButtonRight and ImGuiButtonFlags_MouseButtonMiddle here. + { + if (IsMouseClicked(button, test_owner_id) && mouse_button_clicked == -1) { mouse_button_clicked = button; } + if (IsMouseReleased(button, test_owner_id) && mouse_button_released == -1) { mouse_button_released = button; } + } + + // Process initial action + if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) + { + if (mouse_button_clicked != -1 && g.ActiveId != id) + { + if (!(flags & ImGuiButtonFlags_NoSetKeyOwner)) + SetKeyOwner(MouseButtonToKey(mouse_button_clicked), id); + if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) + { + SetActiveID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + FocusWindow(window); + } + if ((flags & ImGuiButtonFlags_PressedOnClick) || ((flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseClickedCount[mouse_button_clicked] == 2)) + { + pressed = true; + if (flags & ImGuiButtonFlags_NoHoldingActiveId) + ClearActiveID(); + else + SetActiveID(id, window); // Hold on ID + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + FocusWindow(window); + } + } + if (flags & ImGuiButtonFlags_PressedOnRelease) + { + if (mouse_button_released != -1) + { + const bool has_repeated_at_least_once = (item_flags & ImGuiItemFlags_ButtonRepeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; // Repeat mode trumps on release behavior + if (!has_repeated_at_least_once) + pressed = true; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + ClearActiveID(); + } + } + + // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). + // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. + if (g.ActiveId == id && (item_flags & ImGuiItemFlags_ButtonRepeat)) + if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, test_owner_id, ImGuiInputFlags_Repeat)) + pressed = true; + } + + if (pressed) + g.NavDisableHighlight = true; + } + + // Gamepad/Keyboard navigation + // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse. + if (g.NavId == id && !g.NavDisableHighlight && g.NavDisableMouseHover && (g.ActiveId == 0 || g.ActiveId == id || g.ActiveId == window->MoveId)) + if (!(flags & ImGuiButtonFlags_NoHoveredOnFocus)) + hovered = true; + if (g.NavActivateDownId == id) + { + bool nav_activated_by_code = (g.NavActivateId == id); + bool nav_activated_by_inputs = (g.NavActivatePressedId == id); + if (!nav_activated_by_inputs && (item_flags & ImGuiItemFlags_ButtonRepeat)) + { + // Avoid pressing multiple keys from triggering excessive amount of repeat events + const ImGuiKeyData* key1 = GetKeyData(ImGuiKey_Space); + const ImGuiKeyData* key2 = GetKeyData(ImGuiKey_Enter); + const ImGuiKeyData* key3 = GetKeyData(ImGuiKey_NavGamepadActivate); + const float t1 = ImMax(ImMax(key1->DownDuration, key2->DownDuration), key3->DownDuration); + nav_activated_by_inputs = CalcTypematicRepeatAmount(t1 - g.IO.DeltaTime, t1, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; + } + if (nav_activated_by_code || nav_activated_by_inputs) + { + // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. + pressed = true; + SetActiveID(id, window); + g.ActiveIdSource = g.NavInputSource; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + } + } + + // Process while held + bool held = false; + if (g.ActiveId == id) + { + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (g.ActiveIdIsJustActivated) + g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; + + const int mouse_button = g.ActiveIdMouseButton; + if (mouse_button == -1) + { + // Fallback for the rare situation were g.ActiveId was set programmatically or from another widget (e.g. #6304). + ClearActiveID(); + } + else if (IsMouseDown(mouse_button, test_owner_id)) + { + held = true; + } + else + { + bool release_in = hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease) != 0; + bool release_anywhere = (flags & ImGuiButtonFlags_PressedOnClickReleaseAnywhere) != 0; + if ((release_in || release_anywhere) && !g.DragDropActive) + { + // Report as pressed when releasing the mouse (this is the most common path) + bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseReleased[mouse_button] && g.IO.MouseClickedLastCount[mouse_button] == 2; + bool is_repeating_already = (item_flags & ImGuiItemFlags_ButtonRepeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps + bool is_button_avail_or_owned = TestKeyOwner(MouseButtonToKey(mouse_button), test_owner_id); + if (!is_double_click_release && !is_repeating_already && is_button_avail_or_owned) + pressed = true; + } + ClearActiveID(); + } + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + g.NavDisableHighlight = true; + } + else if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + { + // When activated using Nav, we hold on the ActiveID until activation button is released + if (g.NavActivateDownId != id) + ClearActiveID(); + } + if (pressed) + g.ActiveIdHasBeenPressedBefore = true; + } + + if (out_hovered) *out_hovered = hovered; + if (out_held) *out_held = held; + + return pressed; +} + +bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + ImVec2 pos = window->DC.CursorPos; + if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag) + pos.y += window->DC.CurrLineTextBaseOffset - style.FramePadding.y; + ImVec2 size = CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f); + + const ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding); + + if (g.LogEnabled) + LogSetNextTextDecoration("[", "]"); + RenderTextClipped(bb.Min + style.FramePadding, bb.Max - style.FramePadding, label, NULL, &label_size, style.ButtonTextAlign, &bb); + + // Automatically close popups + //if (pressed && !(flags & ImGuiButtonFlags_DontClosePopups) && (window->Flags & ImGuiWindowFlags_Popup)) + // CloseCurrentPopup(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::Button(const char* label, const ImVec2& size_arg) +{ + return ButtonEx(label, size_arg, ImGuiButtonFlags_None); +} + +// Small buttons fits within text without additional vertical spacing. +bool ImGui::SmallButton(const char* label) +{ + ImGuiContext& g = *GImGui; + float backup_padding_y = g.Style.FramePadding.y; + g.Style.FramePadding.y = 0.0f; + bool pressed = ButtonEx(label, ImVec2(0, 0), ImGuiButtonFlags_AlignTextBaseLine); + g.Style.FramePadding.y = backup_padding_y; + return pressed; +} + +// Tip: use ImGui::PushID()/PopID() to push indices or pointers in the ID stack. +// Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) +bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size. + IM_ASSERT(size_arg.x != 0.0f && size_arg.y != 0.0f); + + const ImGuiID id = window->GetID(str_id); + ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiID id = window->GetID(str_id); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + const float default_size = GetFrameHeight(); + ItemSize(size, (size.y >= default_size) ? g.Style.FramePadding.y : -1.0f); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); + RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags); + return pressed; +} + +bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir) +{ + float sz = GetFrameHeight(); + return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), ImGuiButtonFlags_None); +} + +// Button to close a window +bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Tweak 1: Shrink hit-testing area if button covers an abnormally large proportion of the visible region. That's in order to facilitate moving the window away. (#3825) + // This may better be applied as a general hit-rect reduction mechanism for all widgets to ensure the area to move window is always accessible? + const ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize)); + ImRect bb_interact = bb; + const float area_to_visible_ratio = window->OuterRectClipped.GetArea() / bb.GetArea(); + if (area_to_visible_ratio < 1.5f) + bb_interact.Expand(ImFloor(bb_interact.GetSize() * -0.25f)); + + // Tweak 2: We intentionally allow interaction when clipped so that a mechanical Alt,Right,Activate sequence can always close a window. + // (this isn't the common behavior of buttons, but it doesn't affect the user because navigation tends to keep items visible in scrolling layer). + bool is_clipped = !ItemAdd(bb_interact, id); + + bool hovered, held; + bool pressed = ButtonBehavior(bb_interact, id, &hovered, &held); + if (is_clipped) + return pressed; + + // Render + // FIXME: Clarify this mess + ImU32 col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered); + ImVec2 center = bb.GetCenter(); + if (hovered) + window->DrawList->AddCircleFilled(center, ImMax(2.0f, g.FontSize * 0.5f + 1.0f), col); + + float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f; + ImU32 cross_col = GetColorU32(ImGuiCol_Text); + center -= ImVec2(0.5f, 0.5f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, +cross_extent), center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, -cross_extent), center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f); + + return pressed; +} + +// The Collapse button also functions as a Dock Menu button. +bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize)); + bool is_clipped = !ItemAdd(bb, id); + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None); + if (is_clipped) + return pressed; + + // Render + //bool is_dock_menu = (window->DockNodeAsHost && !window->Collapsed); + ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + if (hovered || held) + window->DrawList->AddCircleFilled(bb.GetCenter() + ImVec2(0.0f, -0.5f), g.FontSize * 0.5f + 1.0f, bg_col); + + if (dock_node) + RenderArrowDockMenu(window->DrawList, bb.Min, g.FontSize, text_col); + else + RenderArrow(window->DrawList, bb.Min, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f); + + // Switch to moving the window after mouse is moved beyond the initial drag threshold + if (IsItemActive() && IsMouseDragging(0)) + StartMouseMovingWindowOrNode(window, dock_node, true); + + return pressed; +} + +ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) +{ + return window->GetID(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); +} + +// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. +ImRect ImGui::GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis) +{ + const ImRect outer_rect = window->Rect(); + const ImRect inner_rect = window->InnerRect; + const float border_size = window->WindowBorderSize; + const float scrollbar_size = window->ScrollbarSizes[axis ^ 1]; // (ScrollbarSizes.x = width of Y scrollbar; ScrollbarSizes.y = height of X scrollbar) + IM_ASSERT(scrollbar_size > 0.0f); + if (axis == ImGuiAxis_X) + return ImRect(inner_rect.Min.x, ImMax(outer_rect.Min.y, outer_rect.Max.y - border_size - scrollbar_size), inner_rect.Max.x - border_size, outer_rect.Max.y - border_size); + else + return ImRect(ImMax(outer_rect.Min.x, outer_rect.Max.x - border_size - scrollbar_size), inner_rect.Min.y, outer_rect.Max.x - border_size, inner_rect.Max.y - border_size); +} + +void ImGui::Scrollbar(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = GetWindowScrollbarID(window, axis); + + // Calculate scrollbar bounding box + ImRect bb = GetWindowScrollbarRect(window, axis); + ImDrawFlags rounding_corners = ImDrawFlags_RoundCornersNone; + if (axis == ImGuiAxis_X) + { + rounding_corners |= ImDrawFlags_RoundCornersBottomLeft; + if (!window->ScrollbarY) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + else + { + if ((window->Flags & ImGuiWindowFlags_NoTitleBar) && !(window->Flags & ImGuiWindowFlags_MenuBar)) + rounding_corners |= ImDrawFlags_RoundCornersTopRight; + if (!window->ScrollbarX) + rounding_corners |= ImDrawFlags_RoundCornersBottomRight; + } + float size_avail = window->InnerRect.Max[axis] - window->InnerRect.Min[axis]; + float size_contents = window->ContentSize[axis] + window->WindowPadding[axis] * 2.0f; + ImS64 scroll = (ImS64)window->Scroll[axis]; + ScrollbarEx(bb, id, axis, &scroll, (ImS64)size_avail, (ImS64)size_contents, rounding_corners); + window->Scroll[axis] = (float)scroll; +} + +// Vertical/Horizontal scrollbar +// The entire piece of code below is rather confusing because: +// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab) +// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar +// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal. +// Still, the code should probably be made simpler.. +bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 size_avail_v, ImS64 size_contents_v, ImDrawFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const float bb_frame_width = bb_frame.GetWidth(); + const float bb_frame_height = bb_frame.GetHeight(); + if (bb_frame_width <= 0.0f || bb_frame_height <= 0.0f) + return false; + + // When we are too small, start hiding and disabling the grab (this reduce visual noise on very small window and facilitate using the window resize grab) + float alpha = 1.0f; + if ((axis == ImGuiAxis_Y) && bb_frame_height < g.FontSize + g.Style.FramePadding.y * 2.0f) + alpha = ImSaturate((bb_frame_height - g.FontSize) / (g.Style.FramePadding.y * 2.0f)); + if (alpha <= 0.0f) + return false; + + const ImGuiStyle& style = g.Style; + const bool allow_interaction = (alpha >= 1.0f); + + ImRect bb = bb_frame; + bb.Expand(ImVec2(-ImClamp(IM_FLOOR((bb_frame_width - 2.0f) * 0.5f), 0.0f, 3.0f), -ImClamp(IM_FLOOR((bb_frame_height - 2.0f) * 0.5f), 0.0f, 3.0f))); + + // V denote the main, longer axis of the scrollbar (= height for a vertical scrollbar) + const float scrollbar_size_v = (axis == ImGuiAxis_X) ? bb.GetWidth() : bb.GetHeight(); + + // Calculate the height of our grabbable box. It generally represent the amount visible (vs the total scrollable amount) + // But we maintain a minimum size in pixel to allow for the user to still aim inside. + IM_ASSERT(ImMax(size_contents_v, size_avail_v) > 0.0f); // Adding this assert to check if the ImMax(XXX,1.0f) is still needed. PLEASE CONTACT ME if this triggers. + const ImS64 win_size_v = ImMax(ImMax(size_contents_v, size_avail_v), (ImS64)1); + const float grab_h_pixels = ImClamp(scrollbar_size_v * ((float)size_avail_v / (float)win_size_v), style.GrabMinSize, scrollbar_size_v); + const float grab_h_norm = grab_h_pixels / scrollbar_size_v; + + // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). + bool held = false; + bool hovered = false; + ItemAdd(bb_frame, id, NULL, ImGuiItemFlags_NoNav); + ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); + + const ImS64 scroll_max = ImMax((ImS64)1, size_contents_v - size_avail_v); + float scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + float grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; // Grab position in normalized space + if (held && allow_interaction && grab_h_norm < 1.0f) + { + const float scrollbar_pos_v = bb.Min[axis]; + const float mouse_pos_v = g.IO.MousePos[axis]; + + // Click position in scrollbar normalized space (0.0f->1.0f) + const float clicked_v_norm = ImSaturate((mouse_pos_v - scrollbar_pos_v) / scrollbar_size_v); + SetHoveredID(id); + + bool seek_absolute = false; + if (g.ActiveIdIsJustActivated) + { + // On initial click calculate the distance between mouse and the center of the grab + seek_absolute = (clicked_v_norm < grab_v_norm || clicked_v_norm > grab_v_norm + grab_h_norm); + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = 0.0f; + else + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Apply scroll (p_scroll_v will generally point on one member of window->Scroll) + // It is ok to modify Scroll here because we are being called in Begin() after the calculation of ContentSize and before setting up our starting position + const float scroll_v_norm = ImSaturate((clicked_v_norm - g.ScrollbarClickDeltaToGrabCenter - grab_h_norm * 0.5f) / (1.0f - grab_h_norm)); + *p_scroll_v = (ImS64)(scroll_v_norm * scroll_max); + + // Update values for rendering + scroll_ratio = ImSaturate((float)*p_scroll_v / (float)scroll_max); + grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; + + // Update distance to grab now that we have seeked and saturated + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Render + const ImU32 bg_col = GetColorU32(ImGuiCol_ScrollbarBg); + const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha); + window->DrawList->AddRectFilled(bb_frame.Min, bb_frame.Max, bg_col, window->WindowRounding, flags); + ImRect grab_rect; + if (axis == ImGuiAxis_X) + grab_rect = ImRect(ImLerp(bb.Min.x, bb.Max.x, grab_v_norm), bb.Min.y, ImLerp(bb.Min.x, bb.Max.x, grab_v_norm) + grab_h_pixels, bb.Max.y); + else + grab_rect = ImRect(bb.Min.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm), bb.Max.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm) + grab_h_pixels); + window->DrawList->AddRectFilled(grab_rect.Min, grab_rect.Max, grab_col, style.ScrollbarRounding); + + return held; +} + +void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + if (border_col.w > 0.0f) + bb.Max += ImVec2(2, 2); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + return; + + if (border_col.w > 0.0f) + { + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(border_col), 0.0f); + window->DrawList->AddImage(user_texture_id, bb.Min + ImVec2(1, 1), bb.Max - ImVec2(1, 1), uv0, uv1, GetColorU32(tint_col)); + } + else + { + window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, GetColorU32(tint_col)); + } +} + +// ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) +// We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. +bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImVec2 padding = g.Style.FramePadding; + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2.0f); + ItemSize(bb); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, g.Style.FrameRounding)); + if (bg_col.w > 0.0f) + window->DrawList->AddRectFilled(bb.Min + padding, bb.Max - padding, GetColorU32(bg_col)); + window->DrawList->AddImage(texture_id, bb.Min + padding, bb.Max - padding, uv0, uv1, GetColorU32(tint_col)); + + return pressed; +} + +bool ImGui::ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + return ImageButtonEx(window->GetID(str_id), user_texture_id, size, uv0, uv1, bg_col, tint_col); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy API obsoleted in 1.89. Two differences with new ImageButton() +// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID) +// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument. +// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions. +bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + // Default to using texture ID as ID. User can still push string/integer prefixes. + PushID((void*)(intptr_t)user_texture_id); + const ImGuiID id = window->GetID("#image"); + PopID(); + + if (frame_padding >= 0) + PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2((float)frame_padding, (float)frame_padding)); + bool ret = ImageButtonEx(id, user_texture_id, size, uv0, uv1, bg_col, tint_col); + if (frame_padding >= 0) + PopStyleVar(); + return ret; +} +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +bool ImGui::Checkbox(const char* label, bool* v) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + { + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return false; + } + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + { + *v = !(*v); + MarkItemEdited(id); + } + + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + RenderNavHighlight(total_bb, id); + RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding); + ImU32 check_col = GetColorU32(ImGuiCol_CheckMark); + bool mixed_value = (g.LastItemData.InFlags & ImGuiItemFlags_MixedValue) != 0; + if (mixed_value) + { + // Undocumented tristate/mixed/indeterminate checkbox (#2644) + // This may seem awkwardly designed because the aim is to make ImGuiItemFlags_MixedValue supported by all widgets (not just checkbox) + ImVec2 pad(ImMax(1.0f, IM_FLOOR(square_sz / 3.6f)), ImMax(1.0f, IM_FLOOR(square_sz / 3.6f))); + window->DrawList->AddRectFilled(check_bb.Min + pad, check_bb.Max - pad, check_col, style.FrameRounding); + } + else if (*v) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + RenderCheckMark(window->DrawList, check_bb.Min + ImVec2(pad, pad), check_col, square_sz - pad * 2.0f); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, mixed_value ? "[~]" : *v ? "[x]" : "[ ]"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return pressed; +} + +template +bool ImGui::CheckboxFlagsT(const char* label, T* flags, T flags_value) +{ + bool all_on = (*flags & flags_value) == flags_value; + bool any_on = (*flags & flags_value) != 0; + bool pressed; + if (!all_on && any_on) + { + ImGuiContext& g = *GImGui; + g.NextItemData.ItemFlags |= ImGuiItemFlags_MixedValue; + pressed = Checkbox(label, &all_on); + } + else + { + pressed = Checkbox(label, &all_on); + + } + if (pressed) + { + if (all_on) + *flags |= flags_value; + else + *flags &= ~flags_value; + } + return pressed; +} + +bool ImGui::CheckboxFlags(const char* label, int* flags, int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value) +{ + return CheckboxFlagsT(label, flags, flags_value); +} + +bool ImGui::RadioButton(const char* label, bool active) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + return false; + + ImVec2 center = check_bb.GetCenter(); + center.x = IM_ROUND(center.x); + center.y = IM_ROUND(center.y); + const float radius = (square_sz - 1.0f) * 0.5f; + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + MarkItemEdited(id); + + RenderNavHighlight(total_bb, id); + const int num_segment = window->DrawList->_CalcCircleAutoSegmentCount(radius); + window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), num_segment); + if (active) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + window->DrawList->AddCircleFilled(center, radius - pad, GetColorU32(ImGuiCol_CheckMark)); + } + + if (style.FrameBorderSize > 0.0f) + { + window->DrawList->AddCircle(center + ImVec2(1, 1), radius, GetColorU32(ImGuiCol_BorderShadow), num_segment, style.FrameBorderSize); + window->DrawList->AddCircle(center, radius, GetColorU32(ImGuiCol_Border), num_segment, style.FrameBorderSize); + } + + ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); + if (g.LogEnabled) + LogRenderedText(&label_pos, active ? "(x)" : "( )"); + if (label_size.x > 0.0f) + RenderText(label_pos, label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; +} + +// FIXME: This would work nicely if it was a public template, e.g. 'template RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it.. +bool ImGui::RadioButton(const char* label, int* v, int v_button) +{ + const bool pressed = RadioButton(label, *v == v_button); + if (pressed) + *v = v_button; + return pressed; +} + +// size_arg (for each axis) < 0.0f: align to end, 0.0f: auto, > 0.0f: specified size +void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + ImVec2 pos = window->DC.CursorPos; + ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), g.FontSize + style.FramePadding.y * 2.0f); + ImRect bb(pos, pos + size); + ItemSize(size, style.FramePadding.y); + if (!ItemAdd(bb, 0)) + return; + + // Render + fraction = ImSaturate(fraction); + RenderFrame(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + bb.Expand(ImVec2(-style.FrameBorderSize, -style.FrameBorderSize)); + const ImVec2 fill_br = ImVec2(ImLerp(bb.Min.x, bb.Max.x, fraction), bb.Max.y); + RenderRectFilledRangeH(window->DrawList, bb, GetColorU32(ImGuiCol_PlotHistogram), 0.0f, fraction, style.FrameRounding); + + // Default displaying the fraction as percentage string, but user can override it + char overlay_buf[32]; + if (!overlay) + { + ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction * 100 + 0.01f); + overlay = overlay_buf; + } + + ImVec2 overlay_size = CalcTextSize(overlay, NULL); + if (overlay_size.x > 0.0f) + RenderTextClipped(ImVec2(ImClamp(fill_br.x + style.ItemSpacing.x, bb.Min.x, bb.Max.x - overlay_size.x - style.ItemInnerSpacing.x), bb.Min.y), bb.Max, overlay, NULL, &overlay_size, ImVec2(0.0f, 0.5f), &bb); +} + +void ImGui::Bullet() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), g.FontSize); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + { + SameLine(0, style.FramePadding.x * 2); + return; + } + + // Render and stay on same line + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, line_height * 0.5f), text_col); + SameLine(0, style.FramePadding.x * 2.0f); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Low-level Layout helpers +//------------------------------------------------------------------------- +// - Spacing() +// - Dummy() +// - NewLine() +// - AlignTextToFramePadding() +// - SeparatorEx() [Internal] +// - Separator() +// - SplitterBehavior() [Internal] +// - ShrinkWidths() [Internal] +//------------------------------------------------------------------------- + +void ImGui::Spacing() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ItemSize(ImVec2(0, 0)); +} + +void ImGui::Dummy(const ImVec2& size) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(size); + ItemAdd(bb, 0); +} + +void ImGui::NewLine() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. + ItemSize(ImVec2(0, 0)); + else + ItemSize(ImVec2(0.0f, g.FontSize)); + window->DC.LayoutType = backup_layout_type; +} + +void ImGui::AlignTextToFramePadding() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2); + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y); +} + +// Horizontal/vertical separating line +// FIXME: Surprisingly, this seemingly trivial widget is a victim of many different legacy/tricky layout issues. +// Note how thickness == 1.0f is handled specifically as not moving CursorPos by 'thickness', but other values are. +void ImGui::SeparatorEx(ImGuiSeparatorFlags flags, float thickness) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + IM_ASSERT(ImIsPowerOfTwo(flags & (ImGuiSeparatorFlags_Horizontal | ImGuiSeparatorFlags_Vertical))); // Check that only 1 option is selected + IM_ASSERT(thickness > 0.0f); + + if (flags & ImGuiSeparatorFlags_Vertical) + { + // Vertical separator, for menu bars (use current line height). + float y1 = window->DC.CursorPos.y; + float y2 = window->DC.CursorPos.y + window->DC.CurrLineSize.y; + const ImRect bb(ImVec2(window->DC.CursorPos.x, y1), ImVec2(window->DC.CursorPos.x + thickness, y2)); + ItemSize(ImVec2(thickness, 0.0f)); + if (!ItemAdd(bb, 0)) + return; + + // Draw + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogText(" |"); + } + else if (flags & ImGuiSeparatorFlags_Horizontal) + { + // Horizontal Separator + float x1 = window->Pos.x; + float x2 = window->Pos.x + window->Size.x; + + // FIXME-WORKRECT: old hack (#205) until we decide of consistent behavior with WorkRect/Indent and Separator + if (g.GroupStack.Size > 0 && g.GroupStack.back().WindowID == window->ID) + x1 += window->DC.Indent.x; + + // FIXME-WORKRECT: In theory we should simply be using WorkRect.Min.x/Max.x everywhere but it isn't aesthetically what we want, + // need to introduce a variant of WorkRect for that purpose. (#4787) + if (ImGuiTable* table = g.CurrentTable) + { + x1 = table->Columns[table->CurrentColumn].MinX; + x2 = table->Columns[table->CurrentColumn].MaxX; + } + + // Before Tables API happened, we relied on Separator() to span all columns of a Columns() set. + // We currently don't need to provide the same feature for tables because tables naturally have border features. + ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL; + if (columns) + PushColumnsBackground(); + + // We don't provide our width to the layout so that it doesn't get feed back into AutoFit + // FIXME: This prevents ->CursorMaxPos based bounding box evaluation from working (e.g. TableEndCell) + const float thickness_for_layout = (thickness == 1.0f) ? 0.0f : thickness; // FIXME: See 1.70/1.71 Separator() change: makes legacy 1-px separator not affect layout yet. Should change. + const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness)); + ItemSize(ImVec2(0.0f, thickness_for_layout)); + + if (ItemAdd(bb, 0)) + { + // Draw + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogRenderedText(&bb.Min, "--------------------------------\n"); + + } + if (columns) + { + PopColumnsBackground(); + columns->LineMinY = window->DC.CursorPos.y; + } + } +} + +void ImGui::Separator() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // Those flags should eventually be configurable by the user + // FIXME: We cannot g.Style.SeparatorTextBorderSize for thickness as it relates to SeparatorText() which is a decorated separator, not defaulting to 1.0f. + ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal; + flags |= ImGuiSeparatorFlags_SpanAllColumns; // NB: this only applies to legacy Columns() api as they relied on Separator() a lot. + SeparatorEx(flags, 1.0f); +} + +void ImGui::SeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStyle& style = g.Style; + + const ImVec2 label_size = CalcTextSize(label, label_end, false); + const ImVec2 pos = window->DC.CursorPos; + const ImVec2 padding = style.SeparatorTextPadding; + + const float separator_thickness = style.SeparatorTextBorderSize; + const ImVec2 min_size(label_size.x + extra_w + padding.x * 2.0f, ImMax(label_size.y + padding.y * 2.0f, separator_thickness)); + const ImRect bb(pos, ImVec2(window->WorkRect.Max.x, pos.y + min_size.y)); + const float text_baseline_y = ImFloor((bb.GetHeight() - label_size.y) * style.SeparatorTextAlign.y + 0.99999f); //ImMax(padding.y, ImFloor((style.SeparatorTextSize - label_size.y) * 0.5f)); + ItemSize(min_size, text_baseline_y); + if (!ItemAdd(bb, id)) + return; + + const float sep1_x1 = pos.x; + const float sep2_x2 = bb.Max.x; + const float seps_y = ImFloor((bb.Min.y + bb.Max.y) * 0.5f + 0.99999f); + + const float label_avail_w = ImMax(0.0f, sep2_x2 - sep1_x1 - padding.x * 2.0f); + const ImVec2 label_pos(pos.x + padding.x + ImMax(0.0f, (label_avail_w - label_size.x - extra_w) * style.SeparatorTextAlign.x), pos.y + text_baseline_y); // FIXME-ALIGN + + // This allows using SameLine() to position something in the 'extra_w' + window->DC.CursorPosPrevLine.x = label_pos.x + label_size.x; + + const ImU32 separator_col = GetColorU32(ImGuiCol_Separator); + if (label_size.x > 0.0f) + { + const float sep1_x2 = label_pos.x - style.ItemSpacing.x; + const float sep2_x1 = label_pos.x + label_size.x + extra_w + style.ItemSpacing.x; + if (sep1_x2 > sep1_x1 && separator_thickness > 0.0f) + window->DrawList->AddLine(ImVec2(sep1_x1, seps_y), ImVec2(sep1_x2, seps_y), separator_col, separator_thickness); + if (sep2_x2 > sep2_x1 && separator_thickness > 0.0f) + window->DrawList->AddLine(ImVec2(sep2_x1, seps_y), ImVec2(sep2_x2, seps_y), separator_col, separator_thickness); + if (g.LogEnabled) + LogSetNextTextDecoration("---", NULL); + RenderTextEllipsis(window->DrawList, label_pos, ImVec2(bb.Max.x, bb.Max.y + style.ItemSpacing.y), bb.Max.x, bb.Max.x, label, label_end, &label_size); + } + else + { + if (g.LogEnabled) + LogText("---"); + if (separator_thickness > 0.0f) + window->DrawList->AddLine(ImVec2(sep1_x1, seps_y), ImVec2(sep2_x2, seps_y), separator_col, separator_thickness); + } +} + +void ImGui::SeparatorText(const char* label) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + // The SeparatorText() vs SeparatorTextEx() distinction is designed to be considerate that we may want: + // - allow separator-text to be draggable items (would require a stable ID + a noticeable highlight) + // - this high-level entry point to allow formatting? (which in turns may require ID separate from formatted string) + // - because of this we probably can't turn 'const char* label' into 'const char* fmt, ...' + // Otherwise, we can decide that users wanting to drag this would layout a dedicated drag-item, + // and then we can turn this into a format function. + SeparatorTextEx(0, label, FindRenderedTextEnd(label), 0.0f); +} + +// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time, which can be convenient to reduce visual noise. +bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay, ImU32 bg_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!ItemAdd(bb, id, NULL, ImGuiItemFlags_NoNav)) + return false; + + // FIXME: AFAIK the only leftover reason for passing ImGuiButtonFlags_AllowOverlap here is + // to allow caller of SplitterBehavior() to call SetItemAllowOverlap() after the item. + // Nowadays we would instead want to use SetNextItemAllowOverlap() before the item. + ImGuiButtonFlags button_flags = ImGuiButtonFlags_FlattenChildren; +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + button_flags |= ImGuiButtonFlags_AllowOverlap; +#endif + + bool hovered, held; + ImRect bb_interact = bb; + bb_interact.Expand(axis == ImGuiAxis_Y ? ImVec2(0.0f, hover_extend) : ImVec2(hover_extend, 0.0f)); + ButtonBehavior(bb_interact, id, &hovered, &held, button_flags); + if (hovered) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredRect; // for IsItemHovered(), because bb_interact is larger than bb + + if (held || (hovered && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay)) + SetMouseCursor(axis == ImGuiAxis_Y ? ImGuiMouseCursor_ResizeNS : ImGuiMouseCursor_ResizeEW); + + ImRect bb_render = bb; + if (held) + { + ImVec2 mouse_delta_2d = g.IO.MousePos - g.ActiveIdClickOffset - bb_interact.Min; + float mouse_delta = (axis == ImGuiAxis_Y) ? mouse_delta_2d.y : mouse_delta_2d.x; + + // Minimum pane size + float size_1_maximum_delta = ImMax(0.0f, *size1 - min_size1); + float size_2_maximum_delta = ImMax(0.0f, *size2 - min_size2); + if (mouse_delta < -size_1_maximum_delta) + mouse_delta = -size_1_maximum_delta; + if (mouse_delta > size_2_maximum_delta) + mouse_delta = size_2_maximum_delta; + + // Apply resize + if (mouse_delta != 0.0f) + { + if (mouse_delta < 0.0f) + IM_ASSERT(*size1 + mouse_delta >= min_size1); + if (mouse_delta > 0.0f) + IM_ASSERT(*size2 - mouse_delta >= min_size2); + *size1 += mouse_delta; + *size2 -= mouse_delta; + bb_render.Translate((axis == ImGuiAxis_X) ? ImVec2(mouse_delta, 0.0f) : ImVec2(0.0f, mouse_delta)); + MarkItemEdited(id); + } + } + + // Render at new position + if (bg_col & IM_COL32_A_MASK) + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, bg_col, 0.0f); + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, 0.0f); + + return held; +} + +static int IMGUI_CDECL ShrinkWidthItemComparer(const void* lhs, const void* rhs) +{ + const ImGuiShrinkWidthItem* a = (const ImGuiShrinkWidthItem*)lhs; + const ImGuiShrinkWidthItem* b = (const ImGuiShrinkWidthItem*)rhs; + if (int d = (int)(b->Width - a->Width)) + return d; + return (b->Index - a->Index); +} + +// Shrink excess width from a set of item, by removing width from the larger items first. +// Set items Width to -1.0f to disable shrinking this item. +void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess) +{ + if (count == 1) + { + if (items[0].Width >= 0.0f) + items[0].Width = ImMax(items[0].Width - width_excess, 1.0f); + return; + } + ImQsort(items, (size_t)count, sizeof(ImGuiShrinkWidthItem), ShrinkWidthItemComparer); + int count_same_width = 1; + while (width_excess > 0.0f && count_same_width < count) + { + while (count_same_width < count && items[0].Width <= items[count_same_width].Width) + count_same_width++; + float max_width_to_remove_per_item = (count_same_width < count && items[count_same_width].Width >= 0.0f) ? (items[0].Width - items[count_same_width].Width) : (items[0].Width - 1.0f); + if (max_width_to_remove_per_item <= 0.0f) + break; + float width_to_remove_per_item = ImMin(width_excess / count_same_width, max_width_to_remove_per_item); + for (int item_n = 0; item_n < count_same_width; item_n++) + items[item_n].Width -= width_to_remove_per_item; + width_excess -= width_to_remove_per_item * count_same_width; + } + + // Round width and redistribute remainder + // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. + width_excess = 0.0f; + for (int n = 0; n < count; n++) + { + float width_rounded = ImFloor(items[n].Width); + width_excess += items[n].Width - width_rounded; + items[n].Width = width_rounded; + } + while (width_excess > 0.0f) + for (int n = 0; n < count && width_excess > 0.0f; n++) + { + float width_to_add = ImMin(items[n].InitialWidth - items[n].Width, 1.0f); + items[n].Width += width_to_add; + width_excess -= width_to_add; + } +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ComboBox +//------------------------------------------------------------------------- +// - CalcMaxPopupHeightFromItemCount() [Internal] +// - BeginCombo() +// - BeginComboPopup() [Internal] +// - EndCombo() +// - BeginComboPreview() [Internal] +// - EndComboPreview() [Internal] +// - Combo() +//------------------------------------------------------------------------- + +static float CalcMaxPopupHeightFromItemCount(int items_count) +{ + ImGuiContext& g = *GImGui; + if (items_count <= 0) + return FLT_MAX; + return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); +} + +bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + ImGuiNextWindowDataFlags backup_next_window_data_flags = g.NextWindowData.Flags; + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + IM_ASSERT((flags & (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)) != (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)); // Can't use both flags together + + const float arrow_size = (flags & ImGuiComboFlags_NoArrowButton) ? 0.0f : GetFrameHeight(); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const float w = (flags & ImGuiComboFlags_NoPreview) ? arrow_size : CalcItemWidth(); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(bb.Min, bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &bb)) + return false; + + // Open on click + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + const ImGuiID popup_id = ImHashStr("##ComboPopup", 0, id); + bool popup_open = IsPopupOpen(popup_id, ImGuiPopupFlags_None); + if (pressed && !popup_open) + { + OpenPopupEx(popup_id, ImGuiPopupFlags_None); + popup_open = true; + } + + // Render shape + const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + const float value_x2 = ImMax(bb.Min.x, bb.Max.x - arrow_size); + RenderNavHighlight(bb, id); + if (!(flags & ImGuiComboFlags_NoPreview)) + window->DrawList->AddRectFilled(bb.Min, ImVec2(value_x2, bb.Max.y), frame_col, style.FrameRounding, (flags & ImGuiComboFlags_NoArrowButton) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersLeft); + if (!(flags & ImGuiComboFlags_NoArrowButton)) + { + ImU32 bg_col = GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + window->DrawList->AddRectFilled(ImVec2(value_x2, bb.Min.y), bb.Max, bg_col, style.FrameRounding, (w <= arrow_size) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersRight); + if (value_x2 + arrow_size - style.FramePadding.x <= bb.Max.x) + RenderArrow(window->DrawList, ImVec2(value_x2 + style.FramePadding.y, bb.Min.y + style.FramePadding.y), text_col, ImGuiDir_Down, 1.0f); + } + RenderFrameBorder(bb.Min, bb.Max, style.FrameRounding); + + // Custom preview + if (flags & ImGuiComboFlags_CustomPreview) + { + g.ComboPreviewData.PreviewRect = ImRect(bb.Min.x, bb.Min.y, value_x2, bb.Max.y); + IM_ASSERT(preview_value == NULL || preview_value[0] == 0); + preview_value = NULL; + } + + // Render preview and label + if (preview_value != NULL && !(flags & ImGuiComboFlags_NoPreview)) + { + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(bb.Min + style.FramePadding, ImVec2(value_x2, bb.Max.y), preview_value, NULL, NULL); + } + if (label_size.x > 0) + RenderText(ImVec2(bb.Max.x + style.ItemInnerSpacing.x, bb.Min.y + style.FramePadding.y), label); + + if (!popup_open) + return false; + + g.NextWindowData.Flags = backup_next_window_data_flags; + return BeginComboPopup(popup_id, bb, flags); +} + +bool ImGui::BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(popup_id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); + return false; + } + + // Set popup size + float w = bb.GetWidth(); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + g.NextWindowData.SizeConstraintRect.Min.x = ImMax(g.NextWindowData.SizeConstraintRect.Min.x, w); + } + else + { + if ((flags & ImGuiComboFlags_HeightMask_) == 0) + flags |= ImGuiComboFlags_HeightRegular; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiComboFlags_HeightMask_)); // Only one + int popup_max_height_in_items = -1; + if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8; + else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4; + else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20; + ImVec2 constraint_min(0.0f, 0.0f), constraint_max(FLT_MAX, FLT_MAX); + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) == 0 || g.NextWindowData.SizeVal.x <= 0.0f) // Don't apply constraints if user specified a size + constraint_min.x = w; + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) == 0 || g.NextWindowData.SizeVal.y <= 0.0f) + constraint_max.y = CalcMaxPopupHeightFromItemCount(popup_max_height_in_items); + SetNextWindowSizeConstraints(constraint_min, constraint_max); + } + + // This is essentially a specialized version of BeginPopupEx() + char name[16]; + ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth + + // Set position given a custom constraint (peak into expected window size so we can position it) + // FIXME: This might be easier to express with an hypothetical SetNextWindowPosConstraints() function? + // FIXME: This might be moved to Begin() or at least around the same spot where Tooltips and other Popups are calling FindBestWindowPosForPopupEx()? + if (ImGuiWindow* popup_window = FindWindowByName(name)) + if (popup_window->WasActive) + { + // Always override 'AutoPosLastDirection' to not leave a chance for a past value to affect us. + ImVec2 size_expected = CalcWindowNextAutoFitSize(popup_window); + popup_window->AutoPosLastDirection = (flags & ImGuiComboFlags_PopupAlignLeft) ? ImGuiDir_Left : ImGuiDir_Down; // Left = "Below, Toward Left", Down = "Below, Toward Right (default)" + ImRect r_outer = GetPopupAllowedExtentRect(popup_window); + ImVec2 pos = FindBestWindowPosForPopupEx(bb.GetBL(), size_expected, &popup_window->AutoPosLastDirection, r_outer, bb, ImGuiPopupPositionPolicy_ComboBox); + SetNextWindowPos(pos); + } + + // We don't use BeginPopupEx() solely because we have a custom name string, which we could make an argument to BeginPopupEx() + ImGuiWindowFlags window_flags = ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoMove; + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(g.Style.FramePadding.x, g.Style.WindowPadding.y)); // Horizontally align ourselves with the framed text + bool ret = Begin(name, NULL, window_flags); + PopStyleVar(); + if (!ret) + { + EndPopup(); + IM_ASSERT(0); // This should never happen as we tested for IsPopupOpen() above + return false; + } + return true; +} + +void ImGui::EndCombo() +{ + EndPopup(); +} + +// Call directly after the BeginCombo/EndCombo block. The preview is designed to only host non-interactive elements +// (Experimental, see GitHub issues: #1658, #4168) +bool ImGui::BeginComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + if (window->SkipItems || !(g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible)) + return false; + IM_ASSERT(g.LastItemData.Rect.Min.x == preview_data->PreviewRect.Min.x && g.LastItemData.Rect.Min.y == preview_data->PreviewRect.Min.y); // Didn't call after BeginCombo/EndCombo block or forgot to pass ImGuiComboFlags_CustomPreview flag? + if (!window->ClipRect.Overlaps(preview_data->PreviewRect)) // Narrower test (optional) + return false; + + // FIXME: This could be contained in a PushWorkRect() api + preview_data->BackupCursorPos = window->DC.CursorPos; + preview_data->BackupCursorMaxPos = window->DC.CursorMaxPos; + preview_data->BackupCursorPosPrevLine = window->DC.CursorPosPrevLine; + preview_data->BackupPrevLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; + preview_data->BackupLayout = window->DC.LayoutType; + window->DC.CursorPos = preview_data->PreviewRect.Min + g.Style.FramePadding; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + PushClipRect(preview_data->PreviewRect.Min, preview_data->PreviewRect.Max, true); + + return true; +} + +void ImGui::EndComboPreview() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiComboPreviewData* preview_data = &g.ComboPreviewData; + + // FIXME: Using CursorMaxPos approximation instead of correct AABB which we will store in ImDrawCmd in the future + ImDrawList* draw_list = window->DrawList; + if (window->DC.CursorMaxPos.x < preview_data->PreviewRect.Max.x && window->DC.CursorMaxPos.y < preview_data->PreviewRect.Max.y) + if (draw_list->CmdBuffer.Size > 1) // Unlikely case that the PushClipRect() didn't create a command + { + draw_list->_CmdHeader.ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ClipRect = draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 2].ClipRect; + draw_list->_TryMergeDrawCmds(); + } + PopClipRect(); + window->DC.CursorPos = preview_data->BackupCursorPos; + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, preview_data->BackupCursorMaxPos); + window->DC.CursorPosPrevLine = preview_data->BackupCursorPosPrevLine; + window->DC.PrevLineTextBaseOffset = preview_data->BackupPrevLineTextBaseOffset; + window->DC.LayoutType = preview_data->BackupLayout; + window->DC.IsSameLine = false; + preview_data->PreviewRect = ImRect(); +} + +// Getter for the old Combo() API: const char*[] +static const char* Items_ArrayGetter(void* data, int idx) +{ + const char* const* items = (const char* const*)data; + return items[idx]; +} + +// Getter for the old Combo() API: "item1\0item2\0item3\0" +static const char* Items_SingleStringGetter(void* data, int idx) +{ + const char* items_separated_by_zeros = (const char*)data; + int items_count = 0; + const char* p = items_separated_by_zeros; + while (*p) + { + if (idx == items_count) + break; + p += strlen(p) + 1; + items_count++; + } + return *p ? p : NULL; +} + +// Old API, prefer using BeginCombo() nowadays if you can. +bool ImGui::Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Call the getter to obtain the preview string which is a parameter to BeginCombo() + const char* preview_value = NULL; + if (*current_item >= 0 && *current_item < items_count) + preview_value = getter(user_data, *current_item); + + // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here. + if (popup_max_height_in_items != -1 && !(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint)) + SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + + if (!BeginCombo(label, preview_value, ImGuiComboFlags_None)) + return false; + + // Display items + // FIXME-OPT: Use clipper (but we need to disable it on the appearing frame to make sure our call to SetItemDefaultFocus() is processed) + bool value_changed = false; + for (int i = 0; i < items_count; i++) + { + const char* item_text = getter(user_data, i); + if (item_text == NULL) + item_text = "*Unknown item*"; + + PushID(i); + const bool item_selected = (i == *current_item); + if (Selectable(item_text, item_selected) && *current_item != i) + { + value_changed = true; + *current_item = i; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + + EndCombo(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +// Combo box helper allowing to pass an array of strings. +bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items) +{ + const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items); + return value_changed; +} + +// Combo box helper allowing to pass all items in a single string literal holding multiple zero-terminated items "item1\0item2\0" +bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items) +{ + int items_count = 0; + const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open + while (*p) + { + p += strlen(p) + 1; + items_count++; + } + bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items); + return value_changed; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +struct ImGuiGetNameFromIndexOldToNewCallbackData { void* UserData; bool (*OldCallback)(void*, int, const char**); }; +static const char* ImGuiGetNameFromIndexOldToNewCallback(void* user_data, int idx) +{ + ImGuiGetNameFromIndexOldToNewCallbackData* data = (ImGuiGetNameFromIndexOldToNewCallbackData*)user_data; + const char* s = NULL; + data->OldCallback(data->UserData, idx, &s); + return s; +} + +bool ImGui::ListBox(const char* label, int* current_item, bool (*old_getter)(void*, int, const char**), void* user_data, int items_count, int height_in_items) +{ + ImGuiGetNameFromIndexOldToNewCallbackData old_to_new_data = { user_data, old_getter }; + return ListBox(label, current_item, ImGuiGetNameFromIndexOldToNewCallback, &old_to_new_data, items_count, height_in_items); +} +bool ImGui::Combo(const char* label, int* current_item, bool (*old_getter)(void*, int, const char**), void* user_data, int items_count, int popup_max_height_in_items) +{ + ImGuiGetNameFromIndexOldToNewCallbackData old_to_new_data = { user_data, old_getter }; + return Combo(label, current_item, ImGuiGetNameFromIndexOldToNewCallback, &old_to_new_data, items_count, popup_max_height_in_items); +} + +#endif + +//------------------------------------------------------------------------- +// [SECTION] Data Type and Data Formatting Helpers [Internal] +//------------------------------------------------------------------------- +// - DataTypeGetInfo() +// - DataTypeFormatString() +// - DataTypeApplyOp() +// - DataTypeApplyOpFromText() +// - DataTypeCompare() +// - DataTypeClamp() +// - GetMinimumStepAtDecimalPrecision +// - RoundScalarWithFormat<>() +//------------------------------------------------------------------------- + +static const ImGuiDataTypeInfo GDataTypeInfo[] = +{ + { sizeof(char), "S8", "%d", "%d" }, // ImGuiDataType_S8 + { sizeof(unsigned char), "U8", "%u", "%u" }, + { sizeof(short), "S16", "%d", "%d" }, // ImGuiDataType_S16 + { sizeof(unsigned short), "U16", "%u", "%u" }, + { sizeof(int), "S32", "%d", "%d" }, // ImGuiDataType_S32 + { sizeof(unsigned int), "U32", "%u", "%u" }, +#ifdef _MSC_VER + { sizeof(ImS64), "S64", "%I64d","%I64d" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%I64u","%I64u" }, +#else + { sizeof(ImS64), "S64", "%lld", "%lld" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%llu", "%llu" }, +#endif + { sizeof(float), "float", "%.3f","%f" }, // ImGuiDataType_Float (float are promoted to double in va_arg) + { sizeof(double), "double","%f", "%lf" }, // ImGuiDataType_Double +}; +IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); + +const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) +{ + IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); + return &GDataTypeInfo[data_type]; +} + +int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) +{ + // Signedness doesn't matter when pushing integer arguments + if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) + return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); + if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) + return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); + if (data_type == ImGuiDataType_Float) + return ImFormatString(buf, buf_size, format, *(const float*)p_data); + if (data_type == ImGuiDataType_Double) + return ImFormatString(buf, buf_size, format, *(const double*)p_data); + if (data_type == ImGuiDataType_S8) + return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); + if (data_type == ImGuiDataType_U8) + return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); + if (data_type == ImGuiDataType_S16) + return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); + if (data_type == ImGuiDataType_U16) + return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); + IM_ASSERT(0); + return 0; +} + +void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) +{ + IM_ASSERT(op == '+' || op == '-'); + switch (data_type) + { + case ImGuiDataType_S8: + if (op == '+') { *(ImS8*)output = ImAddClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + if (op == '-') { *(ImS8*)output = ImSubClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + return; + case ImGuiDataType_U8: + if (op == '+') { *(ImU8*)output = ImAddClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + if (op == '-') { *(ImU8*)output = ImSubClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + return; + case ImGuiDataType_S16: + if (op == '+') { *(ImS16*)output = ImAddClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + if (op == '-') { *(ImS16*)output = ImSubClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + return; + case ImGuiDataType_U16: + if (op == '+') { *(ImU16*)output = ImAddClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + if (op == '-') { *(ImU16*)output = ImSubClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + return; + case ImGuiDataType_S32: + if (op == '+') { *(ImS32*)output = ImAddClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + if (op == '-') { *(ImS32*)output = ImSubClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + return; + case ImGuiDataType_U32: + if (op == '+') { *(ImU32*)output = ImAddClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + if (op == '-') { *(ImU32*)output = ImSubClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + return; + case ImGuiDataType_S64: + if (op == '+') { *(ImS64*)output = ImAddClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + if (op == '-') { *(ImS64*)output = ImSubClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + return; + case ImGuiDataType_U64: + if (op == '+') { *(ImU64*)output = ImAddClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + if (op == '-') { *(ImU64*)output = ImSubClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + return; + case ImGuiDataType_Float: + if (op == '+') { *(float*)output = *(const float*)arg1 + *(const float*)arg2; } + if (op == '-') { *(float*)output = *(const float*)arg1 - *(const float*)arg2; } + return; + case ImGuiDataType_Double: + if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; } + if (op == '-') { *(double*)output = *(const double*)arg1 - *(const double*)arg2; } + return; + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); +} + +// User can input math operators (e.g. +100) to edit a numerical values. +// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. +bool ImGui::DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format) +{ + while (ImCharIsBlankA(*buf)) + buf++; + if (!buf[0]) + return false; + + // Copy the value in an opaque buffer so we can compare at the end of the function if it changed at all. + const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, type_info->Size); + + // Sanitize format + // - For float/double we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in, so force them into %f and %lf + // - In theory could treat empty format as using default, but this would only cover rare/bizarre case of using InputScalar() + integer + format string without %. + char format_sanitized[32]; + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + format = type_info->ScanFmt; + else + format = ImParseFormatSanitizeForScanning(format, format_sanitized, IM_ARRAYSIZE(format_sanitized)); + + // Small types need a 32-bit buffer to receive the result from scanf() + int v32 = 0; + if (sscanf(buf, format, type_info->Size >= 4 ? p_data : &v32) < 1) + return false; + if (type_info->Size < 4) + { + if (data_type == ImGuiDataType_S8) + *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); + else if (data_type == ImGuiDataType_U8) + *(ImU8*)p_data = (ImU8)ImClamp(v32, (int)IM_U8_MIN, (int)IM_U8_MAX); + else if (data_type == ImGuiDataType_S16) + *(ImS16*)p_data = (ImS16)ImClamp(v32, (int)IM_S16_MIN, (int)IM_S16_MAX); + else if (data_type == ImGuiDataType_U16) + *(ImU16*)p_data = (ImU16)ImClamp(v32, (int)IM_U16_MIN, (int)IM_U16_MAX); + else + IM_ASSERT(0); + } + + return memcmp(&data_backup, p_data, type_info->Size) != 0; +} + +template +static int DataTypeCompareT(const T* lhs, const T* rhs) +{ + if (*lhs < *rhs) return -1; + if (*lhs > *rhs) return +1; + return 0; +} + +int ImGui::DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeCompareT((const ImS8* )arg_1, (const ImS8* )arg_2); + case ImGuiDataType_U8: return DataTypeCompareT((const ImU8* )arg_1, (const ImU8* )arg_2); + case ImGuiDataType_S16: return DataTypeCompareT((const ImS16* )arg_1, (const ImS16* )arg_2); + case ImGuiDataType_U16: return DataTypeCompareT((const ImU16* )arg_1, (const ImU16* )arg_2); + case ImGuiDataType_S32: return DataTypeCompareT((const ImS32* )arg_1, (const ImS32* )arg_2); + case ImGuiDataType_U32: return DataTypeCompareT((const ImU32* )arg_1, (const ImU32* )arg_2); + case ImGuiDataType_S64: return DataTypeCompareT((const ImS64* )arg_1, (const ImS64* )arg_2); + case ImGuiDataType_U64: return DataTypeCompareT((const ImU64* )arg_1, (const ImU64* )arg_2); + case ImGuiDataType_Float: return DataTypeCompareT((const float* )arg_1, (const float* )arg_2); + case ImGuiDataType_Double: return DataTypeCompareT((const double*)arg_1, (const double*)arg_2); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return 0; +} + +template +static bool DataTypeClampT(T* v, const T* v_min, const T* v_max) +{ + // Clamp, both sides are optional, return true if modified + if (v_min && *v < *v_min) { *v = *v_min; return true; } + if (v_max && *v > *v_max) { *v = *v_max; return true; } + return false; +} + +bool ImGui::DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeClampT((ImS8* )p_data, (const ImS8* )p_min, (const ImS8* )p_max); + case ImGuiDataType_U8: return DataTypeClampT((ImU8* )p_data, (const ImU8* )p_min, (const ImU8* )p_max); + case ImGuiDataType_S16: return DataTypeClampT((ImS16* )p_data, (const ImS16* )p_min, (const ImS16* )p_max); + case ImGuiDataType_U16: return DataTypeClampT((ImU16* )p_data, (const ImU16* )p_min, (const ImU16* )p_max); + case ImGuiDataType_S32: return DataTypeClampT((ImS32* )p_data, (const ImS32* )p_min, (const ImS32* )p_max); + case ImGuiDataType_U32: return DataTypeClampT((ImU32* )p_data, (const ImU32* )p_min, (const ImU32* )p_max); + case ImGuiDataType_S64: return DataTypeClampT((ImS64* )p_data, (const ImS64* )p_min, (const ImS64* )p_max); + case ImGuiDataType_U64: return DataTypeClampT((ImU64* )p_data, (const ImU64* )p_min, (const ImU64* )p_max); + case ImGuiDataType_Float: return DataTypeClampT((float* )p_data, (const float* )p_min, (const float* )p_max); + case ImGuiDataType_Double: return DataTypeClampT((double*)p_data, (const double*)p_min, (const double*)p_max); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +static float GetMinimumStepAtDecimalPrecision(int decimal_precision) +{ + static const float min_steps[10] = { 1.0f, 0.1f, 0.01f, 0.001f, 0.0001f, 0.00001f, 0.000001f, 0.0000001f, 0.00000001f, 0.000000001f }; + if (decimal_precision < 0) + return FLT_MIN; + return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f, (float)-decimal_precision); +} + +template +TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) +{ + IM_UNUSED(data_type); + IM_ASSERT(data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double); + const char* fmt_start = ImParseFormatFindStart(format); + if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string + return v; + + // Sanitize format + char fmt_sanitized[32]; + ImParseFormatSanitizeForPrinting(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); + fmt_start = fmt_sanitized; + + // Format value with our rounding, and read back + char v_str[64]; + ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); + const char* p = v_str; + while (*p == ' ') + p++; + v = (TYPE)ImAtof(p); + + return v; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +//------------------------------------------------------------------------- +// - DragBehaviorT<>() [Internal] +// - DragBehavior() [Internal] +// - DragScalar() +// - DragScalarN() +// - DragFloat() +// - DragFloat2() +// - DragFloat3() +// - DragFloat4() +// - DragFloatRange2() +// - DragInt() +// - DragInt2() +// - DragInt3() +// - DragInt4() +// - DragIntRange2() +//------------------------------------------------------------------------- + +// This is called by DragBehavior() when the widget is active (held by mouse or being manipulated with Nav controls) +template +bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_clamped = (v_min < v_max); + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + + // Default tweak speed + if (v_speed == 0.0f && is_clamped && (v_max - v_min < FLT_MAX)) + v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); + + // Inputs accumulates into g.DragCurrentAccum, which is flushed into the current value as soon as it makes a difference with our precision settings + float adjust_delta = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse && IsMousePosValid() && IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + adjust_delta = g.IO.MouseDelta[axis]; + if (g.IO.KeyAlt) + adjust_delta *= 1.0f / 100.0f; + if (g.IO.KeyShift) + adjust_delta *= 10.0f; + } + else if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + { + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const float tweak_factor = tweak_slow ? 1.0f / 1.0f : tweak_fast ? 10.0f : 1.0f; + adjust_delta = GetNavTweakPressedAmount(axis) * tweak_factor; + v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); + } + adjust_delta *= v_speed; + + // For vertical drag we currently assume that Up=higher value (like we do with vertical sliders). This may become a parameter. + if (axis == ImGuiAxis_Y) + adjust_delta = -adjust_delta; + + // For logarithmic use our range is effectively 0..1 so scale the delta into that range + if (is_logarithmic && (v_max - v_min < FLT_MAX) && ((v_max - v_min) > 0.000001f)) // Epsilon to avoid /0 + adjust_delta /= (float)(v_max - v_min); + + // Clear current value on activation + // Avoid altering values and clamping when we are _already_ past the limits and heading in the same direction, so e.g. if range is 0..255, current value is 300 and we are pushing to the right side, keep the 300. + bool is_just_activated = g.ActiveIdIsJustActivated; + bool is_already_past_limits_and_pushing_outward = is_clamped && ((*v >= v_max && adjust_delta > 0.0f) || (*v <= v_min && adjust_delta < 0.0f)); + if (is_just_activated || is_already_past_limits_and_pushing_outward) + { + g.DragCurrentAccum = 0.0f; + g.DragCurrentAccumDirty = false; + } + else if (adjust_delta != 0.0f) + { + g.DragCurrentAccum += adjust_delta; + g.DragCurrentAccumDirty = true; + } + + if (!g.DragCurrentAccumDirty) + return false; + + TYPE v_cur = *v; + FLOATTYPE v_old_ref_for_accum_remainder = (FLOATTYPE)0.0f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + const float zero_deadzone_halfsize = 0.0f; // Drag widgets have no deadzone (as it doesn't make sense) + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + + // Convert to parametric space, apply delta, convert back + float v_old_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + float v_new_parametric = v_old_parametric + g.DragCurrentAccum; + v_cur = ScaleValueFromRatioT(data_type, v_new_parametric, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + v_old_ref_for_accum_remainder = v_old_parametric; + } + else + { + v_cur += (SIGNEDTYPE)g.DragCurrentAccum; + } + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_cur = RoundScalarWithFormatT(format, data_type, v_cur); + + // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. + g.DragCurrentAccumDirty = false; + if (is_logarithmic) + { + // Convert to parametric space, apply delta, convert back + float v_new_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + g.DragCurrentAccum -= (float)(v_new_parametric - v_old_ref_for_accum_remainder); + } + else + { + g.DragCurrentAccum -= (float)((SIGNEDTYPE)v_cur - (SIGNEDTYPE)*v); + } + + // Lose zero sign for float/double + if (v_cur == (TYPE)-0) + v_cur = (TYPE)0; + + // Clamp values (+ handle overflow/wrap-around for integer types) + if (*v != v_cur && is_clamped) + { + if (v_cur < v_min || (v_cur > *v && adjust_delta < 0.0f && !is_floating_point)) + v_cur = v_min; + if (v_cur > v_max || (v_cur < *v && adjust_delta > 0.0f && !is_floating_point)) + v_cur = v_max; + } + + // Apply result + if (*v == v_cur) + return false; + *v = v_cur; + return true; +} + +bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flags! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + { + // Those are the things we can do easily outside the DragBehaviorT<> template, saves code generation. + if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) + ClearActiveID(); + else if ((g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + ClearActiveID(); + } + if (g.ActiveId != id) + return false; + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS8*) p_min : IM_S8_MIN, p_max ? *(const ImS8*)p_max : IM_S8_MAX, format, flags); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU8*) p_min : IM_U8_MIN, p_max ? *(const ImU8*)p_max : IM_U8_MAX, format, flags); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS16*)p_min : IM_S16_MIN, p_max ? *(const ImS16*)p_max : IM_S16_MAX, format, flags); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU16*)p_min : IM_U16_MIN, p_max ? *(const ImU16*)p_max : IM_U16_MAX, format, flags); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: return DragBehaviorT(data_type, (ImS32*)p_v, v_speed, p_min ? *(const ImS32* )p_min : IM_S32_MIN, p_max ? *(const ImS32* )p_max : IM_S32_MAX, format, flags); + case ImGuiDataType_U32: return DragBehaviorT(data_type, (ImU32*)p_v, v_speed, p_min ? *(const ImU32* )p_min : IM_U32_MIN, p_max ? *(const ImU32* )p_max : IM_U32_MAX, format, flags); + case ImGuiDataType_S64: return DragBehaviorT(data_type, (ImS64*)p_v, v_speed, p_min ? *(const ImS64* )p_min : IM_S64_MIN, p_max ? *(const ImS64* )p_max : IM_S64_MAX, format, flags); + case ImGuiDataType_U64: return DragBehaviorT(data_type, (ImU64*)p_v, v_speed, p_min ? *(const ImU64* )p_min : IM_U64_MIN, p_max ? *(const ImU64* )p_max : IM_U64_MAX, format, flags); + case ImGuiDataType_Float: return DragBehaviorT(data_type, (float*)p_v, v_speed, p_min ? *(const float* )p_min : -FLT_MAX, p_max ? *(const float* )p_max : FLT_MAX, format, flags); + case ImGuiDataType_Double: return DragBehaviorT(data_type, (double*)p_v, v_speed, p_min ? *(const double*)p_min : -DBL_MAX, p_max ? *(const double*)p_max : DBL_MAX, format, flags); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a Drag widget, p_min and p_max are optional. +// Read code of e.g. DragFloat(), DragInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Drag turns it into an InputText + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool double_clicked = (hovered && g.IO.MouseClickedCount[0] == 2 && TestKeyOwner(ImGuiKey_MouseLeft, id)); + const bool make_active = (input_requested_by_tabbing || clicked || double_clicked || g.NavActivateId == id); + if (make_active && (clicked || double_clicked)) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || double_clicked || (g.NavActivateId == id && (g.NavActivateFlags & ImGuiActivateFlags_PreferInput))) + temp_input_is_active = true; + + // (Optional) simple click (without moving) turns Drag into an InputText + if (g.IO.ConfigDragClickToInputText && temp_input_allowed && !temp_input_is_active) + if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) + { + g.NavActivateId = id; + g.NavActivateFlags = ImGuiActivateFlags_PreferInput; + temp_input_is_active = true; + } + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0 && (p_min == NULL || p_max == NULL || DataTypeCompare(data_type, p_min, p_max) < 0); + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, style.FrameRounding); + + // Drag behavior + const bool value_changed = DragBehavior(id, data_type, p_data, v_speed, p_min, p_max, format, flags); + if (value_changed) + MarkItemEdited(id); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (temp_input_allowed ? ImGuiItemStatusFlags_Inputable : 0)); + return value_changed; +} + +bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= DragScalar("", data_type, p_data, v_speed, p_min, p_max, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + float min_min = (v_min >= v_max) ? -FLT_MAX : v_min; + float min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragScalar("##min", ImGuiDataType_Float, v_current_min, v_speed, &min_min, &min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + float max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + float max_max = (v_min >= v_max) ? FLT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragScalar("##max", ImGuiDataType_Float, v_current_max, v_speed, &max_min, &max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +// NB: v_speed is float to allow adjusting the drag speed with more precision +bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_S32, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + int min_min = (v_min >= v_max) ? INT_MIN : v_min; + int min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragInt("##min", v_current_min, v_speed, min_min, min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + int max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + int max_max = (v_min >= v_max) ? INT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragInt("##max", v_current_max, v_speed, max_min, max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +//------------------------------------------------------------------------- +// - ScaleRatioFromValueT<> [Internal] +// - ScaleValueFromRatioT<> [Internal] +// - SliderBehaviorT<>() [Internal] +// - SliderBehavior() [Internal] +// - SliderScalar() +// - SliderScalarN() +// - SliderFloat() +// - SliderFloat2() +// - SliderFloat3() +// - SliderFloat4() +// - SliderAngle() +// - SliderInt() +// - SliderInt2() +// - SliderInt3() +// - SliderInt4() +// - VSliderScalar() +// - VSliderFloat() +// - VSliderInt() +//------------------------------------------------------------------------- + +// Convert a value v in the output space of a slider into a parametric position on the slider itself (the logical opposite of ScaleValueFromRatioT) +template +float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + if (v_min == v_max) + return 0.0f; + IM_UNUSED(data_type); + + const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); + if (is_logarithmic) + { + bool flipped = v_max < v_min; + + if (flipped) // Handle the case where the range is backwards + ImSwap(v_min, v_max); + + // Fudge min/max to avoid getting close to log(0) + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + // Awkward special cases - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_min == 0.0f) && (v_max < 0.0f)) + v_min_fudged = -logarithmic_zero_epsilon; + else if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float result; + if (v_clamped <= v_min_fudged) + result = 0.0f; // Workaround for values that are in-range but below our fudge + else if (v_clamped >= v_max_fudged) + result = 1.0f; // Workaround for values that are in-range but above our fudge + else if ((v_min * v_max) < 0.0f) // Range crosses zero, so split into two portions + { + float zero_point_center = (-(float)v_min) / ((float)v_max - (float)v_min); // The zero point in parametric space. There's an argument we should take the logarithmic nature into account when calculating this, but for now this should do (and the most common case of a symmetrical range works fine) + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (v == 0.0f) + result = zero_point_center; // Special case for exactly zero + else if (v < 0.0f) + result = (1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(-v_min_fudged / logarithmic_zero_epsilon))) * zero_point_snap_L; + else + result = zero_point_snap_R + ((float)(ImLog((FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(v_max_fudged / logarithmic_zero_epsilon)) * (1.0f - zero_point_snap_R)); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = 1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / -v_max_fudged) / ImLog(-v_min_fudged / -v_max_fudged)); + else + result = (float)(ImLog((FLOATTYPE)v_clamped / v_min_fudged) / ImLog(v_max_fudged / v_min_fudged)); + + return flipped ? (1.0f - result) : result; + } + else + { + // Linear slider + return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); + } +} + +// Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) +template +TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + // We special-case the extents because otherwise our logarithmic fudging can lead to "mathematically correct" + // but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value. Also generally simpler. + if (t <= 0.0f || v_min == v_max) + return v_min; + if (t >= 1.0f) + return v_max; + + TYPE result = (TYPE)0; + if (is_logarithmic) + { + // Fudge min/max to avoid getting silly results close to zero + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + const bool flipped = v_max < v_min; // Check if range is "backwards" + if (flipped) + ImSwap(v_min_fudged, v_max_fudged); + + // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range + + if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts + { + float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) + result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) + else if (t_with_flip < zero_point_center) + result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); + else + result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + else + result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); + } + else + { + // Linear slider + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + if (is_floating_point) + { + result = ImLerp(v_min, v_max, t); + } + else if (t < 1.0) + { + // - For integer values we want the clicking position to match the grab box so we round above + // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. + // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 + // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. + FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; + result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); + } + } + + return result; +} + +// FIXME: Try to move more of the code into shared SliderBehavior() +template +bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) != 0; + const bool is_floating_point = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const float v_range_f = (float)(v_min < v_max ? v_max - v_min : v_min - v_max); // We don't need high precision for what we do with it. + + // Calculate bounds + const float grab_padding = 2.0f; // FIXME: Should be part of style. + const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; + float grab_sz = style.GrabMinSize; + if (!is_floating_point && v_range_f >= 0.0f) // v_range_f < 0 may happen on integer overflows + grab_sz = ImMax(slider_sz / (v_range_f + 1), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit + grab_sz = ImMin(grab_sz, slider_sz); + const float slider_usable_sz = slider_sz - grab_sz; + const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; + const float slider_usable_pos_max = bb.Max[axis] - grab_padding - grab_sz * 0.5f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + float zero_deadzone_halfsize = 0.0f; // Only valid when is_logarithmic is true + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + zero_deadzone_halfsize = (style.LogSliderDeadzone * 0.5f) / ImMax(slider_usable_sz, 1.0f); + } + + // Process interacting with the slider + bool value_changed = false; + if (g.ActiveId == id) + { + bool set_new_value = false; + float clicked_t = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (!g.IO.MouseDown[0]) + { + ClearActiveID(); + } + else + { + const float mouse_abs_pos = g.IO.MousePos[axis]; + if (g.ActiveIdIsJustActivated) + { + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + const bool clicked_around_grab = (mouse_abs_pos >= grab_pos - grab_sz * 0.5f - 1.0f) && (mouse_abs_pos <= grab_pos + grab_sz * 0.5f + 1.0f); // No harm being extra generous here. + g.SliderGrabClickOffset = (clicked_around_grab && is_floating_point) ? mouse_abs_pos - grab_pos : 0.0f; + } + if (slider_usable_sz > 0.0f) + clicked_t = ImSaturate((mouse_abs_pos - g.SliderGrabClickOffset - slider_usable_pos_min) / slider_usable_sz); + if (axis == ImGuiAxis_Y) + clicked_t = 1.0f - clicked_t; + set_new_value = true; + } + } + else if (g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) + { + if (g.ActiveIdIsJustActivated) + { + g.SliderCurrentAccum = 0.0f; // Reset any stored nav delta upon activation + g.SliderCurrentAccumDirty = false; + } + + float input_delta = (axis == ImGuiAxis_X) ? GetNavTweakPressedAmount(axis) : -GetNavTweakPressedAmount(axis); + if (input_delta != 0.0f) + { + const bool tweak_slow = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakSlow : ImGuiKey_NavKeyboardTweakSlow); + const bool tweak_fast = IsKeyDown((g.NavInputSource == ImGuiInputSource_Gamepad) ? ImGuiKey_NavGamepadTweakFast : ImGuiKey_NavKeyboardTweakFast); + const int decimal_precision = is_floating_point ? ImParseFormatPrecision(format, 3) : 0; + if (decimal_precision > 0) + { + input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds + if (tweak_slow) + input_delta /= 10.0f; + } + else + { + if ((v_range_f >= -100.0f && v_range_f <= 100.0f && v_range_f != 0.0f) || tweak_slow) + input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / v_range_f; // Gamepad/keyboard tweak speeds in integer steps + else + input_delta /= 100.0f; + } + if (tweak_fast) + input_delta *= 10.0f; + + g.SliderCurrentAccum += input_delta; + g.SliderCurrentAccumDirty = true; + } + + float delta = g.SliderCurrentAccum; + if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + { + ClearActiveID(); + } + else if (g.SliderCurrentAccumDirty) + { + clicked_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if ((clicked_t >= 1.0f && delta > 0.0f) || (clicked_t <= 0.0f && delta < 0.0f)) // This is to avoid applying the saturation when already past the limits + { + set_new_value = false; + g.SliderCurrentAccum = 0.0f; // If pushing up against the limits, don't continue to accumulate + } + else + { + set_new_value = true; + float old_clicked_t = clicked_t; + clicked_t = ImSaturate(clicked_t + delta); + + // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if (delta > 0) + g.SliderCurrentAccum -= ImMin(new_clicked_t - old_clicked_t, delta); + else + g.SliderCurrentAccum -= ImMax(new_clicked_t - old_clicked_t, delta); + } + + g.SliderCurrentAccumDirty = false; + } + } + + if (set_new_value) + if ((g.LastItemData.InFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + set_new_value = false; + + if (set_new_value) + { + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + // Round to user desired precision based on format string + if (is_floating_point && !(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + + // Apply result + if (*v != v_new) + { + *v = v_new; + value_changed = true; + } + } + } + + if (slider_sz < 1.0f) + { + *out_grab_bb = ImRect(bb.Min, bb.Min); + } + else + { + // Output grab position so it can be displayed by the caller + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + if (axis == ImGuiAxis_X) + *out_grab_bb = ImRect(grab_pos - grab_sz * 0.5f, bb.Min.y + grab_padding, grab_pos + grab_sz * 0.5f, bb.Max.y - grab_padding); + else + *out_grab_bb = ImRect(bb.Min.x + grab_padding, grab_pos - grab_sz * 0.5f, bb.Max.x - grab_padding, grab_pos + grab_sz * 0.5f); + } + + return value_changed; +} + +// For 32-bit and larger types, slider bounds are limited to half the natural type range. +// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok. +// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders. +bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS8*)p_min, *(const ImS8*)p_max, format, flags, out_grab_bb); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU8*)p_min, *(const ImU8*)p_max, format, flags, out_grab_bb); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS16*)p_min, *(const ImS16*)p_max, format, flags, out_grab_bb); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU16*)p_min, *(const ImU16*)p_max, format, flags, out_grab_bb); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: + IM_ASSERT(*(const ImS32*)p_min >= IM_S32_MIN / 2 && *(const ImS32*)p_max <= IM_S32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS32*)p_v, *(const ImS32*)p_min, *(const ImS32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U32: + IM_ASSERT(*(const ImU32*)p_max <= IM_U32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU32*)p_v, *(const ImU32*)p_min, *(const ImU32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_S64: + IM_ASSERT(*(const ImS64*)p_min >= IM_S64_MIN / 2 && *(const ImS64*)p_max <= IM_S64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS64*)p_v, *(const ImS64*)p_min, *(const ImS64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U64: + IM_ASSERT(*(const ImU64*)p_max <= IM_U64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU64*)p_v, *(const ImU64*)p_min, *(const ImU64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Float: + IM_ASSERT(*(const float*)p_min >= -FLT_MAX / 2.0f && *(const float*)p_max <= FLT_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (float*)p_v, *(const float*)p_min, *(const float*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Double: + IM_ASSERT(*(const double*)p_min >= -DBL_MAX / 2.0f && *(const double*)p_max <= DBL_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (double*)p_v, *(const double*)p_min, *(const double*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a slider, they are all required. +// Read code of e.g. SliderFloat(), SliderInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, temp_input_allowed ? ImGuiItemFlags_Inputable : 0)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + // Tabbing or CTRL-clicking on Slider turns it into an input box + const bool input_requested_by_tabbing = temp_input_allowed && (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool clicked = hovered && IsMouseClicked(0, id); + const bool make_active = (input_requested_by_tabbing || clicked || g.NavActivateId == id); + if (make_active && clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + if (make_active && temp_input_allowed) + if (input_requested_by_tabbing || (clicked && g.IO.KeyCtrl) || (g.NavActivateId == id && (g.NavActivateFlags & ImGuiActivateFlags_PreferInput))) + temp_input_is_active = true; + + if (make_active && !temp_input_is_active) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0; + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.x > grab_bb.Min.x) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + if (g.LogEnabled) + LogSetNextTextDecoration("{", "}"); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (temp_input_allowed ? ImGuiItemStatusFlags_Inputable : 0)); + return value_changed; +} + +// Add multiple sliders on 1 line for compact edition of multiple components +bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, flags); + PopID(); + PopItemWidth(); + v = (void*)((char*)v + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags) +{ + if (format == NULL) + format = "%.0f deg"; + float v_deg = (*v_rad) * 360.0f / (2 * IM_PI); + bool value_changed = SliderFloat(label, &v_deg, v_degrees_min, v_degrees_max, format, flags); + *v_rad = v_deg * (2 * IM_PI) / 360.0f; + return value_changed; +} + +bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size); + const ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + ItemSize(bb, style.FramePadding.y); + if (!ItemAdd(frame_bb, id)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + const bool clicked = hovered && IsMouseClicked(0, id); + if (clicked || g.NavActivateId == id) + { + if (clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags | ImGuiSliderFlags_Vertical, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.y > grab_bb.Min.y) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + // For the vertical slider we allow centered text to overlap the frame padding + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + return value_changed; +} + +bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +//------------------------------------------------------------------------- +// - ImParseFormatFindStart() [Internal] +// - ImParseFormatFindEnd() [Internal] +// - ImParseFormatTrimDecorations() [Internal] +// - ImParseFormatSanitizeForPrinting() [Internal] +// - ImParseFormatSanitizeForScanning() [Internal] +// - ImParseFormatPrecision() [Internal] +// - TempInputTextScalar() [Internal] +// - InputScalar() +// - InputScalarN() +// - InputFloat() +// - InputFloat2() +// - InputFloat3() +// - InputFloat4() +// - InputInt() +// - InputInt2() +// - InputInt3() +// - InputInt4() +// - InputDouble() +//------------------------------------------------------------------------- + +// We don't use strchr() because our strings are usually very short and often start with '%' +const char* ImParseFormatFindStart(const char* fmt) +{ + while (char c = fmt[0]) + { + if (c == '%' && fmt[1] != '%') + return fmt; + else if (c == '%') + fmt++; + fmt++; + } + return fmt; +} + +const char* ImParseFormatFindEnd(const char* fmt) +{ + // Printf/scanf types modifiers: I/L/h/j/l/t/w/z. Other uppercase letters qualify as types aka end of the format. + if (fmt[0] != '%') + return fmt; + const unsigned int ignored_uppercase_mask = (1 << ('I'-'A')) | (1 << ('L'-'A')); + const unsigned int ignored_lowercase_mask = (1 << ('h'-'a')) | (1 << ('j'-'a')) | (1 << ('l'-'a')) | (1 << ('t'-'a')) | (1 << ('w'-'a')) | (1 << ('z'-'a')); + for (char c; (c = *fmt) != 0; fmt++) + { + if (c >= 'A' && c <= 'Z' && ((1 << (c - 'A')) & ignored_uppercase_mask) == 0) + return fmt + 1; + if (c >= 'a' && c <= 'z' && ((1 << (c - 'a')) & ignored_lowercase_mask) == 0) + return fmt + 1; + } + return fmt; +} + +// Extract the format out of a format string with leading or trailing decorations +// fmt = "blah blah" -> return "" +// fmt = "%.3f" -> return fmt +// fmt = "hello %.3f" -> return fmt + 6 +// fmt = "%.3f hello" -> return buf written with "%.3f" +const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size) +{ + const char* fmt_start = ImParseFormatFindStart(fmt); + if (fmt_start[0] != '%') + return ""; + const char* fmt_end = ImParseFormatFindEnd(fmt_start); + if (fmt_end[0] == 0) // If we only have leading decoration, we don't need to copy the data. + return fmt_start; + ImStrncpy(buf, fmt_start, ImMin((size_t)(fmt_end - fmt_start) + 1, buf_size)); + return buf; +} + +// Sanitize format +// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi +// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. +void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate +} + +// - For scanning we need to remove all width and precision fields and flags "%+3.7f" -> "%f". BUT don't strip types like "%I64d" which includes digits. ! "%07I64d" -> "%I64d" +const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size) +{ + const char* fmt_end = ImParseFormatFindEnd(fmt_in); + const char* fmt_out_begin = fmt_out; + IM_UNUSED(fmt_out_size); + IM_ASSERT((size_t)(fmt_end - fmt_in + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! + bool has_type = false; + while (fmt_in < fmt_end) + { + char c = *fmt_in++; + if (!has_type && ((c >= '0' && c <= '9') || c == '.' || c == '+' || c == '#')) + continue; + has_type |= ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); // Stop skipping digits + if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. + *(fmt_out++) = c; + } + *fmt_out = 0; // Zero-terminate + return fmt_out_begin; +} + +template +static const char* ImAtoi(const char* src, TYPE* output) +{ + int negative = 0; + if (*src == '-') { negative = 1; src++; } + if (*src == '+') { src++; } + TYPE v = 0; + while (*src >= '0' && *src <= '9') + v = (v * 10) + (*src++ - '0'); + *output = negative ? -v : v; + return src; +} + +// Parse display precision back from the display format string +// FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. +int ImParseFormatPrecision(const char* fmt, int default_precision) +{ + fmt = ImParseFormatFindStart(fmt); + if (fmt[0] != '%') + return default_precision; + fmt++; + while (*fmt >= '0' && *fmt <= '9') + fmt++; + int precision = INT_MAX; + if (*fmt == '.') + { + fmt = ImAtoi(fmt + 1, &precision); + if (precision < 0 || precision > 99) + precision = default_precision; + } + if (*fmt == 'e' || *fmt == 'E') // Maximum precision with scientific notation + precision = -1; + if ((*fmt == 'g' || *fmt == 'G') && precision == INT_MAX) + precision = -1; + return (precision == INT_MAX) ? default_precision : precision; +} + +// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets) +// FIXME: Facilitate using this in variety of other situations. +bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags) +{ + // On the first frame, g.TempInputTextId == 0, then on subsequent frames it becomes == id. + // We clear ActiveID on the first frame to allow the InputText() taking it back. + ImGuiContext& g = *GImGui; + const bool init = (g.TempInputId != id); + if (init) + ClearActiveID(); + + g.CurrentWindow->DC.CursorPos = bb.Min; + bool value_changed = InputTextEx(label, NULL, buf, buf_size, bb.GetSize(), flags | ImGuiInputTextFlags_MergedItem); + if (init) + { + // First frame we started displaying the InputText widget, we expect it to take the active id. + IM_ASSERT(g.ActiveId == id); + g.TempInputId = g.ActiveId; + } + return value_changed; +} + +static inline ImGuiInputTextFlags InputScalar_DefaultCharsFilter(ImGuiDataType data_type, const char* format) +{ + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + return ImGuiInputTextFlags_CharsScientific; + const char format_last_char = format[0] ? format[strlen(format) - 1] : 0; + return (format_last_char == 'x' || format_last_char == 'X') ? ImGuiInputTextFlags_CharsHexadecimal : ImGuiInputTextFlags_CharsDecimal; +} + +// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! +// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. +// However this may not be ideal for all uses, as some user code may break on out of bound values. +bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) +{ + // FIXME: May need to clarify display behavior if format doesn't contain %. + // "%d" -> "%d" / "There are %d items" -> "%d" / "items" -> "%d" (fallback). Also see #6405 + const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); + char fmt_buf[32]; + char data_buf[32]; + format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); + if (format[0] == 0) + format = type_info->PrintFmt; + DataTypeFormatString(data_buf, IM_ARRAYSIZE(data_buf), data_type, p_data, format); + ImStrTrimBlanks(data_buf); + + ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; + flags |= InputScalar_DefaultCharsFilter(data_type, format); + + bool value_changed = false; + if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) + { + // Backup old value + size_t data_type_size = type_info->Size; + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, data_type_size); + + // Apply new value (or operations) then clamp + DataTypeApplyFromText(data_buf, data_type, p_data, format); + if (p_clamp_min || p_clamp_max) + { + if (p_clamp_min && p_clamp_max && DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) + ImSwap(p_clamp_min, p_clamp_max); + DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max); + } + + // Only mark as edited if new value is different + value_changed = memcmp(&data_backup, p_data, data_type_size) != 0; + if (value_changed) + MarkItemEdited(id); + } + return value_changed; +} + +// Note: p_data, p_step, p_step_fast are _pointers_ to a memory address holding the data. For an Input widget, p_step and p_step_fast are optional. +// Read code of e.g. InputFloat(), InputInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + char buf[64]; + DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); + + // Testing ActiveId as a minor optimization as filtering is not needed until active + if (g.ActiveId == 0 && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) + flags |= InputScalar_DefaultCharsFilter(data_type, format); + flags |= ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + + bool value_changed = false; + if (p_step == NULL) + { + if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + } + else + { + const float button_size = GetFrameHeight(); + + BeginGroup(); // The only purpose of the group here is to allow the caller to query item data e.g. IsItemActive() + PushID(label); + SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); + if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view + value_changed = DataTypeApplyFromText(buf, data_type, p_data, format); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Inputable); + + // Step buttons + const ImVec2 backup_frame_padding = style.FramePadding; + style.FramePadding.x = style.FramePadding.y; + ImGuiButtonFlags button_flags = ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups; + if (flags & ImGuiInputTextFlags_ReadOnly) + BeginDisabled(); + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("-", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '-', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("+", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '+', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + if (flags & ImGuiInputTextFlags_ReadOnly) + EndDisabled(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + style.FramePadding = backup_frame_padding; + + PopID(); + EndGroup(); + } + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= InputScalar("", data_type, p_data, p_step, p_step_fast, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0.0f, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Float, (void*)v, (void*)(step > 0.0f ? &step : NULL), (void*)(step_fast > 0.0f ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 2, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 3, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 4, NULL, NULL, format, flags); +} + +bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags) +{ + // Hexadecimal input provided as a convenience but the flag name is awkward. Typically you'd use InputText() to parse your own data, if you want to handle prefixes. + const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d"; + return InputScalar(label, ImGuiDataType_S32, (void*)v, (void*)(step > 0 ? &step : NULL), (void*)(step_fast > 0 ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 2, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 3, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 4, NULL, NULL, "%d", flags); +} + +bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Double, (void*)v, (void*)(step > 0.0 ? &step : NULL), (void*)(step_fast > 0.0 ? &step_fast : NULL), format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputText, InputTextMultiline, InputTextWithHint +//------------------------------------------------------------------------- +// - InputText() +// - InputTextWithHint() +// - InputTextMultiline() +// - InputTextGetCharInfo() [Internal] +// - InputTextReindexLines() [Internal] +// - InputTextReindexLinesRange() [Internal] +// - InputTextEx() [Internal] +// - DebugNodeInputTextState() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + return InputTextEx(label, NULL, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + return InputTextEx(label, NULL, buf, (int)buf_size, size, flags | ImGuiInputTextFlags_Multiline, callback, user_data); +} + +bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() or InputTextEx() manually if you need multi-line + hint. + return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end) +{ + int line_count = 0; + const char* s = text_begin; + while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding + if (c == '\n') + line_count++; + s--; + if (s[0] != '\n' && s[0] != '\r') + line_count++; + *out_text_end = s; + return line_count; +} + +static ImVec2 InputTextCalcTextSizeW(ImGuiContext* ctx, const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line) +{ + ImGuiContext& g = *ctx; + ImFont* font = g.Font; + const float line_height = g.FontSize; + const float scale = line_height / font->FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const ImWchar* s = text_begin; + while (s < text_end) + { + unsigned int c = (unsigned int)(*s++); + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + if (stop_on_new_line) + break; + continue; + } + if (c == '\r') + continue; + + const float char_width = font->GetCharAdvance((ImWchar)c) * scale; + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (out_offset) + *out_offset = ImVec2(line_width, text_size.y + line_height); // offset allow for the possibility of sitting after a trailing \n + + if (line_width > 0 || text_size.y == 0.0f) // whereas size.y will ignore the trailing \n + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, wchar characters. InputText converts between UTF-8 and wchar) +namespace ImStb +{ + +static int STB_TEXTEDIT_STRINGLEN(const ImGuiInputTextState* obj) { return obj->CurLenW; } +static ImWchar STB_TEXTEDIT_GETCHAR(const ImGuiInputTextState* obj, int idx) { IM_ASSERT(idx <= obj->CurLenW); return obj->TextW[idx]; } +static float STB_TEXTEDIT_GETWIDTH(ImGuiInputTextState* obj, int line_start_idx, int char_idx) { ImWchar c = obj->TextW[line_start_idx + char_idx]; if (c == '\n') return STB_TEXTEDIT_GETWIDTH_NEWLINE; ImGuiContext& g = *obj->Ctx; return g.Font->GetCharAdvance(c) * (g.FontSize / g.Font->FontSize); } +static int STB_TEXTEDIT_KEYTOTEXT(int key) { return key >= 0x200000 ? 0 : key; } +static ImWchar STB_TEXTEDIT_NEWLINE = '\n'; +static void STB_TEXTEDIT_LAYOUTROW(StbTexteditRow* r, ImGuiInputTextState* obj, int line_start_idx) +{ + const ImWchar* text = obj->TextW.Data; + const ImWchar* text_remaining = NULL; + const ImVec2 size = InputTextCalcTextSizeW(obj->Ctx, text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true); + r->x0 = 0.0f; + r->x1 = size.x; + r->baseline_y_delta = size.y; + r->ymin = 0.0f; + r->ymax = size.y; + r->num_chars = (int)(text_remaining - (text + line_start_idx)); +} + +static bool is_separator(unsigned int c) +{ + return c==',' || c==';' || c=='(' || c==')' || c=='{' || c=='}' || c=='[' || c==']' || c=='|' || c=='\n' || c=='\r' || c=='.' || c=='!'; +} + +static int is_word_boundary_from_right(ImGuiInputTextState* obj, int idx) +{ + // When ImGuiInputTextFlags_Password is set, we don't want actions such as CTRL+Arrow to leak the fact that underlying data are blanks or separators. + if ((obj->Flags & ImGuiInputTextFlags_Password) || idx <= 0) + return 0; + + bool prev_white = ImCharIsBlankW(obj->TextW[idx - 1]); + bool prev_separ = is_separator(obj->TextW[idx - 1]); + bool curr_white = ImCharIsBlankW(obj->TextW[idx]); + bool curr_separ = is_separator(obj->TextW[idx]); + return ((prev_white || prev_separ) && !(curr_separ || curr_white)) || (curr_separ && !prev_separ); +} +static int is_word_boundary_from_left(ImGuiInputTextState* obj, int idx) +{ + if ((obj->Flags & ImGuiInputTextFlags_Password) || idx <= 0) + return 0; + + bool prev_white = ImCharIsBlankW(obj->TextW[idx]); + bool prev_separ = is_separator(obj->TextW[idx]); + bool curr_white = ImCharIsBlankW(obj->TextW[idx - 1]); + bool curr_separ = is_separator(obj->TextW[idx - 1]); + return ((prev_white) && !(curr_separ || curr_white)) || (curr_separ && !prev_separ); +} +static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(ImGuiInputTextState* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_MAC(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_WIN(ImGuiInputTextState* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(ImGuiInputTextState* obj, int idx) { ImGuiContext& g = *obj->Ctx; if (g.IO.ConfigMacOSXBehaviors) return STB_TEXTEDIT_MOVEWORDRIGHT_MAC(obj, idx); else return STB_TEXTEDIT_MOVEWORDRIGHT_WIN(obj, idx); } +#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h +#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL + +static void STB_TEXTEDIT_DELETECHARS(ImGuiInputTextState* obj, int pos, int n) +{ + ImWchar* dst = obj->TextW.Data + pos; + + // We maintain our buffer length in both UTF-8 and wchar formats + obj->Edited = true; + obj->CurLenA -= ImTextCountUtf8BytesFromStr(dst, dst + n); + obj->CurLenW -= n; + + // Offset remaining text (FIXME-OPT: Use memmove) + const ImWchar* src = obj->TextW.Data + pos + n; + while (ImWchar c = *src++) + *dst++ = c; + *dst = '\0'; +} + +static bool STB_TEXTEDIT_INSERTCHARS(ImGuiInputTextState* obj, int pos, const ImWchar* new_text, int new_text_len) +{ + const bool is_resizable = (obj->Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int text_len = obj->CurLenW; + IM_ASSERT(pos <= text_len); + + const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); + if (!is_resizable && (new_text_len_utf8 + obj->CurLenA + 1 > obj->BufCapacityA)) + return false; + + // Grow internal buffer if needed + if (new_text_len + text_len + 1 > obj->TextW.Size) + { + if (!is_resizable) + return false; + IM_ASSERT(text_len < obj->TextW.Size); + obj->TextW.resize(text_len + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1); + } + + ImWchar* text = obj->TextW.Data; + if (pos != text_len) + memmove(text + pos + new_text_len, text + pos, (size_t)(text_len - pos) * sizeof(ImWchar)); + memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); + + obj->Edited = true; + obj->CurLenW += new_text_len; + obj->CurLenA += new_text_len_utf8; + obj->TextW[obj->CurLenW] = '\0'; + + return true; +} + +// We don't use an enum so we can build even with conflicting symbols (if another user of stb_textedit.h leak their STB_TEXTEDIT_K_* symbols) +#define STB_TEXTEDIT_K_LEFT 0x200000 // keyboard input to move cursor left +#define STB_TEXTEDIT_K_RIGHT 0x200001 // keyboard input to move cursor right +#define STB_TEXTEDIT_K_UP 0x200002 // keyboard input to move cursor up +#define STB_TEXTEDIT_K_DOWN 0x200003 // keyboard input to move cursor down +#define STB_TEXTEDIT_K_LINESTART 0x200004 // keyboard input to move cursor to start of line +#define STB_TEXTEDIT_K_LINEEND 0x200005 // keyboard input to move cursor to end of line +#define STB_TEXTEDIT_K_TEXTSTART 0x200006 // keyboard input to move cursor to start of text +#define STB_TEXTEDIT_K_TEXTEND 0x200007 // keyboard input to move cursor to end of text +#define STB_TEXTEDIT_K_DELETE 0x200008 // keyboard input to delete selection or character under cursor +#define STB_TEXTEDIT_K_BACKSPACE 0x200009 // keyboard input to delete selection or character left of cursor +#define STB_TEXTEDIT_K_UNDO 0x20000A // keyboard input to perform undo +#define STB_TEXTEDIT_K_REDO 0x20000B // keyboard input to perform redo +#define STB_TEXTEDIT_K_WORDLEFT 0x20000C // keyboard input to move cursor left one word +#define STB_TEXTEDIT_K_WORDRIGHT 0x20000D // keyboard input to move cursor right one word +#define STB_TEXTEDIT_K_PGUP 0x20000E // keyboard input to move cursor up a page +#define STB_TEXTEDIT_K_PGDOWN 0x20000F // keyboard input to move cursor down a page +#define STB_TEXTEDIT_K_SHIFT 0x400000 + +#define STB_TEXTEDIT_IMPLEMENTATION +#define STB_TEXTEDIT_memmove memmove +#include "imstb_textedit.h" + +// stb_textedit internally allows for a single undo record to do addition and deletion, but somehow, calling +// the stb_textedit_paste() function creates two separate records, so we perform it manually. (FIXME: Report to nothings/stb?) +static void stb_textedit_replace(ImGuiInputTextState* str, STB_TexteditState* state, const STB_TEXTEDIT_CHARTYPE* text, int text_len) +{ + stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); + ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); + state->cursor = state->select_start = state->select_end = 0; + if (text_len <= 0) + return; + if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) + { + state->cursor = state->select_start = state->select_end = text_len; + state->has_preferred_x = 0; + return; + } + IM_ASSERT(0); // Failed to insert character, normally shouldn't happen because of how we currently use stb_textedit_replace() +} + +} // namespace ImStb + +void ImGuiInputTextState::OnKeyPressed(int key) +{ + stb_textedit_key(this, &Stb, key); + CursorFollow = true; + CursorAnimReset(); +} + +ImGuiInputTextCallbackData::ImGuiInputTextCallbackData() +{ + memset(this, 0, sizeof(*this)); +} + +// Public API to manipulate UTF-8 text +// We expose UTF-8 to the user (unlike the STB_TEXTEDIT_* functions which are manipulating wchar) +// FIXME: The existence of this rarely exercised code path is a bit of a nuisance. +void ImGuiInputTextCallbackData::DeleteChars(int pos, int bytes_count) +{ + IM_ASSERT(pos + bytes_count <= BufTextLen); + char* dst = Buf + pos; + const char* src = Buf + pos + bytes_count; + while (char c = *src++) + *dst++ = c; + *dst = '\0'; + + if (CursorPos >= pos + bytes_count) + CursorPos -= bytes_count; + else if (CursorPos >= pos) + CursorPos = pos; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen -= bytes_count; +} + +void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end) +{ + // Accept null ranges + if (new_text == new_text_end) + return; + + const bool is_resizable = (Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); + if (new_text_len + BufTextLen >= BufSize) + { + if (!is_resizable) + return; + + // Contrary to STB_TEXTEDIT_INSERTCHARS() this is working in the UTF8 buffer, hence the mildly similar code (until we remove the U16 buffer altogether!) + ImGuiContext& g = *Ctx; + ImGuiInputTextState* edit_state = &g.InputTextState; + IM_ASSERT(edit_state->ID != 0 && g.ActiveId == edit_state->ID); + IM_ASSERT(Buf == edit_state->TextA.Data); + int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; + edit_state->TextA.reserve(new_buf_size + 1); + Buf = edit_state->TextA.Data; + BufSize = edit_state->BufCapacityA = new_buf_size; + } + + if (BufTextLen != pos) + memmove(Buf + pos + new_text_len, Buf + pos, (size_t)(BufTextLen - pos)); + memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); + Buf[BufTextLen + new_text_len] = '\0'; + + if (CursorPos >= pos) + CursorPos += new_text_len; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen += new_text_len; +} + +// Return false to discard a character. +static bool InputTextFilterCharacter(ImGuiContext* ctx, unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data, ImGuiInputSource input_source) +{ + IM_ASSERT(input_source == ImGuiInputSource_Keyboard || input_source == ImGuiInputSource_Clipboard); + unsigned int c = *p_char; + + // Filter non-printable (NB: isprint is unreliable! see #2467) + bool apply_named_filters = true; + if (c < 0x20) + { + bool pass = false; + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); // Note that an Enter KEY will emit \r and be ignored (we poll for KEY in InputText() code) + pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); + if (!pass) + return false; + apply_named_filters = false; // Override named filters below so newline and tabs can still be inserted. + } + + if (input_source != ImGuiInputSource_Clipboard) + { + // We ignore Ascii representation of delete (emitted from Backspace on OSX, see #2578, #2817) + if (c == 127) + return false; + + // Filter private Unicode range. GLFW on OSX seems to send private characters for special keys like arrow keys (FIXME) + if (c >= 0xE000 && c <= 0xF8FF) + return false; + } + + // Filter Unicode ranges we are not handling in this build + if (c > IM_UNICODE_CODEPOINT_MAX) + return false; + + // Generic named filters + if (apply_named_filters && (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase | ImGuiInputTextFlags_CharsNoBlank | ImGuiInputTextFlags_CharsScientific))) + { + // The libc allows overriding locale, with e.g. 'setlocale(LC_NUMERIC, "de_DE.UTF-8");' which affect the output/input of printf/scanf to use e.g. ',' instead of '.'. + // The standard mandate that programs starts in the "C" locale where the decimal point is '.'. + // We don't really intend to provide widespread support for it, but out of empathy for people stuck with using odd API, we support the bare minimum aka overriding the decimal point. + // Change the default decimal_point with: + // ImGui::GetIO()->PlatformLocaleDecimalPoint = *localeconv()->decimal_point; + // Users of non-default decimal point (in particular ',') may be affected by word-selection logic (is_word_boundary_from_right/is_word_boundary_from_left) functions. + ImGuiContext& g = *ctx; + const unsigned c_decimal_point = (unsigned int)g.IO.PlatformLocaleDecimalPoint; + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific)) + if (c == '.' || c == ',') + c = c_decimal_point; + + // Full-width -> half-width conversion for numeric fields (https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block) + // While this is mostly convenient, this has the side-effect for uninformed users accidentally inputting full-width characters that they may + // scratch their head as to why it works in numerical fields vs in generic text fields it would require support in the font. + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsScientific | ImGuiInputTextFlags_CharsHexadecimal)) + if (c >= 0xFF01 && c <= 0xFF5E) + c = c - 0xFF01 + 0x21; + + // Allow 0-9 . - + * / + if (flags & ImGuiInputTextFlags_CharsDecimal) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) + return false; + + // Allow 0-9 . - + * / e E + if (flags & ImGuiInputTextFlags_CharsScientific) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/') && (c != 'e') && (c != 'E')) + return false; + + // Allow 0-9 a-F A-F + if (flags & ImGuiInputTextFlags_CharsHexadecimal) + if (!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f') && !(c >= 'A' && c <= 'F')) + return false; + + // Turn a-z into A-Z + if (flags & ImGuiInputTextFlags_CharsUppercase) + if (c >= 'a' && c <= 'z') + c += (unsigned int)('A' - 'a'); + + if (flags & ImGuiInputTextFlags_CharsNoBlank) + if (ImCharIsBlankW(c)) + return false; + + *p_char = c; + } + + // Custom callback filter + if (flags & ImGuiInputTextFlags_CallbackCharFilter) + { + ImGuiContext& g = *GImGui; + ImGuiInputTextCallbackData callback_data; + callback_data.Ctx = &g; + callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter; + callback_data.EventChar = (ImWchar)c; + callback_data.Flags = flags; + callback_data.UserData = user_data; + if (callback(&callback_data) != 0) + return false; + *p_char = callback_data.EventChar; + if (!callback_data.EventChar) + return false; + } + + return true; +} + +// Find the shortest single replacement we can make to get the new text from the old text. +// Important: needs to be run before TextW is rewritten with the new characters because calling STB_TEXTEDIT_GETCHAR() at the end. +// FIXME: Ideally we should transition toward (1) making InsertChars()/DeleteChars() update undo-stack (2) discourage (and keep reconcile) or obsolete (and remove reconcile) accessing buffer directly. +static void InputTextReconcileUndoStateAfterUserCallback(ImGuiInputTextState* state, const char* new_buf_a, int new_length_a) +{ + ImGuiContext& g = *GImGui; + const ImWchar* old_buf = state->TextW.Data; + const int old_length = state->CurLenW; + const int new_length = ImTextCountCharsFromUtf8(new_buf_a, new_buf_a + new_length_a); + g.TempBuffer.reserve_discard((new_length + 1) * sizeof(ImWchar)); + ImWchar* new_buf = (ImWchar*)(void*)g.TempBuffer.Data; + ImTextStrFromUtf8(new_buf, new_length + 1, new_buf_a, new_buf_a + new_length_a); + + const int shorter_length = ImMin(old_length, new_length); + int first_diff; + for (first_diff = 0; first_diff < shorter_length; first_diff++) + if (old_buf[first_diff] != new_buf[first_diff]) + break; + if (first_diff == old_length && first_diff == new_length) + return; + + int old_last_diff = old_length - 1; + int new_last_diff = new_length - 1; + for (; old_last_diff >= first_diff && new_last_diff >= first_diff; old_last_diff--, new_last_diff--) + if (old_buf[old_last_diff] != new_buf[new_last_diff]) + break; + + const int insert_len = new_last_diff - first_diff + 1; + const int delete_len = old_last_diff - first_diff + 1; + if (insert_len > 0 || delete_len > 0) + if (STB_TEXTEDIT_CHARTYPE* p = stb_text_createundo(&state->Stb.undostate, first_diff, delete_len, insert_len)) + for (int i = 0; i < delete_len; i++) + p[i] = ImStb::STB_TEXTEDIT_GETCHAR(state, first_diff + i); +} + +// As InputText() retain textual data and we currently provide a path for user to not retain it (via local variables) +// we need some form of hook to reapply data back to user buffer on deactivation frame. (#4714) +// It would be more desirable that we discourage users from taking advantage of the "user not retaining data" trick, +// but that more likely be attractive when we do have _NoLiveEdit flag available. +void ImGui::InputTextDeactivateHook(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiInputTextState* state = &g.InputTextState; + if (id == 0 || state->ID != id) + return; + g.InputTextDeactivatedState.ID = state->ID; + if (state->Flags & ImGuiInputTextFlags_ReadOnly) + { + g.InputTextDeactivatedState.TextA.resize(0); // In theory this data won't be used, but clear to be neat. + } + else + { + IM_ASSERT(state->TextA.Data != 0); + g.InputTextDeactivatedState.TextA.resize(state->CurLenA + 1); + memcpy(g.InputTextDeactivatedState.TextA.Data, state->TextA.Data, state->CurLenA + 1); + } +} + +// Edit a string of text +// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". +// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match +// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. +// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. +// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h +// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are +// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) +bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + IM_ASSERT(buf != NULL && buf_size >= 0); + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys) + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key) + + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + const ImGuiStyle& style = g.Style; + + const bool RENDER_SELECTION_WHEN_INACTIVE = false; + const bool is_multiline = (flags & ImGuiInputTextFlags_Multiline) != 0; + const bool is_readonly = (flags & ImGuiInputTextFlags_ReadOnly) != 0; + const bool is_password = (flags & ImGuiInputTextFlags_Password) != 0; + const bool is_undoable = (flags & ImGuiInputTextFlags_NoUndoRedo) == 0; + const bool is_resizable = (flags & ImGuiInputTextFlags_CallbackResize) != 0; + if (is_resizable) + IM_ASSERT(callback != NULL); // Must provide a callback if you set the ImGuiInputTextFlags_CallbackResize flag! + + if (is_multiline) // Open group before calling GetID() because groups tracks id created within their scope (including the scrollbar) + BeginGroup(); + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? g.FontSize * 8.0f : label_size.y) + style.FramePadding.y * 2.0f); // Arbitrary default of 8 lines high for multi-line + const ImVec2 total_size = ImVec2(frame_size.x + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), frame_size.y); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect total_bb(frame_bb.Min, frame_bb.Min + total_size); + + ImGuiWindow* draw_window = window; + ImVec2 inner_size = frame_size; + ImGuiItemStatusFlags item_status_flags = 0; + ImGuiLastItemData item_data_backup; + if (is_multiline) + { + ImVec2 backup_pos = window->DC.CursorPos; + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + { + EndGroup(); + return false; + } + item_status_flags = g.LastItemData.StatusFlags; + item_data_backup = g.LastItemData; + window->DC.CursorPos = backup_pos; + + // Prevent NavActivate reactivating in BeginChild(). + const ImGuiID backup_activate_id = g.NavActivateId; + if (g.ActiveId == id) // Prevent reactivation + g.NavActivateId = 0; + + // We reproduce the contents of BeginChildFrame() in order to provide 'label' so our window internal data are easier to read/debug. + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Ensure no clip rect so mouse hover can reach FramePadding edges + bool child_visible = BeginChildEx(label, id, frame_bb.GetSize(), true, ImGuiWindowFlags_NoMove); + g.NavActivateId = backup_activate_id; + PopStyleVar(3); + PopStyleColor(); + if (!child_visible) + { + EndChild(); + EndGroup(); + return false; + } + draw_window = g.CurrentWindow; // Child window + draw_window->DC.NavLayersActiveMaskNext |= (1 << draw_window->DC.NavLayerCurrent); // This is to ensure that EndChild() will display a navigation highlight so we can "enter" into it. + draw_window->DC.CursorPos += style.FramePadding; + inner_size.x -= draw_window->ScrollbarSizes.x; + } + else + { + // Support for internal ImGuiInputTextFlags_MergedItem flag, which could be redesigned as an ItemFlags if needed (with test performed in ItemAdd) + ItemSize(total_bb, style.FramePadding.y); + if (!(flags & ImGuiInputTextFlags_MergedItem)) + if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) + return false; + item_status_flags = g.LastItemData.StatusFlags; + } + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + if (hovered) + g.MouseCursor = ImGuiMouseCursor_TextInput; + + // We are only allowed to access the state if we are already the active widget. + ImGuiInputTextState* state = GetInputTextState(id); + + const bool input_requested_by_tabbing = (item_status_flags & ImGuiItemStatusFlags_FocusedByTabbing) != 0; + const bool input_requested_by_nav = (g.ActiveId != id) && ((g.NavActivateId == id) && ((g.NavActivateFlags & ImGuiActivateFlags_PreferInput) || (g.NavInputSource == ImGuiInputSource_Keyboard))); + + const bool user_clicked = hovered && io.MouseClicked[0]; + const bool user_scroll_finish = is_multiline && state != NULL && g.ActiveId == 0 && g.ActiveIdPreviousFrame == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + const bool user_scroll_active = is_multiline && state != NULL && g.ActiveId == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + bool clear_active_id = false; + bool select_all = false; + + float scroll_y = is_multiline ? draw_window->Scroll.y : FLT_MAX; + + const bool init_changed_specs = (state != NULL && state->Stb.single_line != !is_multiline); // state != NULL means its our state. + const bool init_make_active = (user_clicked || user_scroll_finish || input_requested_by_nav || input_requested_by_tabbing); + const bool init_state = (init_make_active || user_scroll_active); + if ((init_state && g.ActiveId != id) || init_changed_specs) + { + // Access state even if we don't own it yet. + state = &g.InputTextState; + state->CursorAnimReset(); + + // Backup state of deactivating item so they'll have a chance to do a write to output buffer on the same frame they report IsItemDeactivatedAfterEdit (#4714) + InputTextDeactivateHook(state->ID); + + // Take a copy of the initial buffer value (both in original UTF-8 format and converted to wchar) + // From the moment we focused we are ignoring the content of 'buf' (unless we are in read-only mode) + const int buf_len = (int)strlen(buf); + state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. + memcpy(state->InitialTextA.Data, buf, buf_len + 1); + + // Preserve cursor position and undo/redo stack if we come back to same widget + // FIXME: Since we reworked this on 2022/06, may want to differenciate recycle_cursor vs recycle_undostate? + bool recycle_state = (state->ID == id && !init_changed_specs); + if (recycle_state && (state->CurLenA != buf_len || (state->TextAIsValid && strncmp(state->TextA.Data, buf, buf_len) != 0))) + recycle_state = false; + + // Start edition + const char* buf_end = NULL; + state->ID = id; + state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. + state->TextA.resize(0); + state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. + + if (recycle_state) + { + // Recycle existing cursor/selection/undo stack but clamp position + // Note a single mouse click will override the cursor/position immediately by calling stb_textedit_click handler. + state->CursorClamp(); + } + else + { + state->ScrollX = 0.0f; + stb_textedit_initialize_state(&state->Stb, !is_multiline); + } + + if (!is_multiline) + { + if (flags & ImGuiInputTextFlags_AutoSelectAll) + select_all = true; + if (input_requested_by_nav && (!recycle_state || !(g.NavActivateFlags & ImGuiActivateFlags_TryToPreserveState))) + select_all = true; + if (input_requested_by_tabbing || (user_clicked && io.KeyCtrl)) + select_all = true; + } + + if (flags & ImGuiInputTextFlags_AlwaysOverwrite) + state->Stb.insert_mode = 1; // stb field name is indeed incorrect (see #2863) + } + + const bool is_osx = io.ConfigMacOSXBehaviors; + if (g.ActiveId != id && init_make_active) + { + IM_ASSERT(state && state->ID == id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + } + if (g.ActiveId == id) + { + // Declare some inputs, the other are registered and polled via Shortcut() routing system. + if (user_clicked) + SetKeyOwner(ImGuiKey_MouseLeft, id); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + SetKeyOwner(ImGuiKey_Home, id); + SetKeyOwner(ImGuiKey_End, id); + if (is_multiline) + { + SetKeyOwner(ImGuiKey_PageUp, id); + SetKeyOwner(ImGuiKey_PageDown, id); + } + if (is_osx) + SetKeyOwner(ImGuiMod_Alt, id); + if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. + SetShortcutRouting(ImGuiKey_Tab, id); + } + + // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) + if (g.ActiveId == id && state == NULL) + ClearActiveID(); + + // Release focus when we click outside + if (g.ActiveId == id && io.MouseClicked[0] && !init_state && !init_make_active) //-V560 + clear_active_id = true; + + // Lock the decision of whether we are going to take the path displaying the cursor or selection + bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); + bool render_selection = state && (state->HasSelection() || select_all) && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + bool value_changed = false; + bool validated = false; + + // When read-only we always use the live data passed to the function + // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( + if (is_readonly && state != NULL && (render_cursor || render_selection)) + { + const char* buf_end = NULL; + state->TextW.resize(buf_size + 1); + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); + state->CursorClamp(); + render_selection &= state->HasSelection(); + } + + // Select the buffer to render. + const bool buf_display_from_state = (render_cursor || render_selection || g.ActiveId == id) && !is_readonly && state && state->TextAIsValid; + const bool is_displaying_hint = (hint != NULL && (buf_display_from_state ? state->TextA.Data : buf)[0] == 0); + + // Password pushes a temporary font with only a fallback glyph + if (is_password && !is_displaying_hint) + { + const ImFontGlyph* glyph = g.Font->FindGlyph('*'); + ImFont* password_font = &g.InputTextPasswordFont; + password_font->FontSize = g.Font->FontSize; + password_font->Scale = g.Font->Scale; + password_font->Ascent = g.Font->Ascent; + password_font->Descent = g.Font->Descent; + password_font->ContainerAtlas = g.Font->ContainerAtlas; + password_font->FallbackGlyph = glyph; + password_font->FallbackAdvanceX = glyph->AdvanceX; + IM_ASSERT(password_font->Glyphs.empty() && password_font->IndexAdvanceX.empty() && password_font->IndexLookup.empty()); + PushFont(password_font); + } + + // Process mouse inputs and character inputs + int backup_current_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + backup_current_text_length = state->CurLenA; + state->Edited = false; + state->BufCapacityA = buf_size; + state->Flags = flags; + + // Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget. + // Down the line we should have a cleaner library-wide concept of Selected vs Active. + g.ActiveIdAllowOverlap = !io.MouseDown[0]; + + // Edit in progress + const float mouse_x = (io.MousePos.x - frame_bb.Min.x - style.FramePadding.x) + state->ScrollX; + const float mouse_y = (is_multiline ? (io.MousePos.y - draw_window->DC.CursorPos.y) : (g.FontSize * 0.5f)); + + if (select_all) + { + state->SelectAll(); + state->SelectedAllMouseLock = true; + } + else if (hovered && io.MouseClickedCount[0] >= 2 && !io.KeyShift) + { + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + const int multiclick_count = (io.MouseClickedCount[0] - 2); + if ((multiclick_count % 2) == 0) + { + // Double-click: Select word + // We always use the "Mac" word advance for double-click select vs CTRL+Right which use the platform dependent variant: + // FIXME: There are likely many ways to improve this behavior, but there's no "right" behavior (depends on use-case, software, OS) + const bool is_bol = (state->Stb.cursor == 0) || ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor - 1) == '\n'; + if (STB_TEXT_HAS_SELECTION(&state->Stb) || !is_bol) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT); + //state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); + if (!STB_TEXT_HAS_SELECTION(&state->Stb)) + ImStb::stb_textedit_prep_selection_at_cursor(&state->Stb); + state->Stb.cursor = ImStb::STB_TEXTEDIT_MOVEWORDRIGHT_MAC(state, state->Stb.cursor); + state->Stb.select_end = state->Stb.cursor; + ImStb::stb_textedit_clamp(state, &state->Stb); + } + else + { + // Triple-click: Select line + const bool is_eol = ImStb::STB_TEXTEDIT_GETCHAR(state, state->Stb.cursor) == '\n'; + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART); + state->OnKeyPressed(STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT); + state->OnKeyPressed(STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT); + if (!is_eol && is_multiline) + { + ImSwap(state->Stb.select_start, state->Stb.select_end); + state->Stb.cursor = state->Stb.select_end; + } + state->CursorFollow = false; + } + state->CursorAnimReset(); + } + else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) + { + if (hovered) + { + if (io.KeyShift) + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + else + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + } + } + else if (io.MouseDown[0] && !state->SelectedAllMouseLock && (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f)) + { + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + state->CursorFollow = true; + } + if (state->SelectedAllMouseLock && !io.MouseDown[0]) + state->SelectedAllMouseLock = false; + + // We expect backends to emit a Tab key but some also emit a Tab character which we ignore (#2467, #1336) + // (For Tab and Enter: Win32/SFML/Allegro are sending both keys and chars, GLFW and SDL are only sending keys. For Space they all send all threes) + if ((flags & ImGuiInputTextFlags_AllowTabInput) && Shortcut(ImGuiKey_Tab, id) && !is_readonly) + { + unsigned int c = '\t'; // Insert TAB + if (InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Process regular text input (before we check for Return because using some IME will effectively send a Return?) + // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. + const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); + if (io.InputQueueCharacters.Size > 0) + { + if (!ignore_char_inputs && !is_readonly && !input_requested_by_nav) + for (int n = 0; n < io.InputQueueCharacters.Size; n++) + { + // Insert character if they pass filtering + unsigned int c = (unsigned int)io.InputQueueCharacters[n]; + if (c == '\t') // Skip Tab, see above. + continue; + if (InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + + // Consume characters + io.InputQueueCharacters.resize(0); + } + } + + // Process other shortcuts/key-presses + bool revert_edit = false; + if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) + { + IM_ASSERT(state != NULL); + + const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); + state->Stb.row_count_per_page = row_count_per_page; + + const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); + const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl + const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End + + // Using Shortcut() with ImGuiInputFlags_RouteFocused (default policy) to allow routing operations for other code (e.g. calling window trying to use CTRL+A and CTRL+B: formet would be handled by InputText) + // Otherwise we could simply assume that we own the keys as we are active. + const ImGuiInputFlags f_repeat = ImGuiInputFlags_Repeat; + const bool is_cut = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_X, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Delete, id, f_repeat)) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); + const bool is_copy = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_C, id) || Shortcut(ImGuiMod_Ctrl | ImGuiKey_Insert, id)) && !is_password && (!is_multiline || state->HasSelection()); + const bool is_paste = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_V, id, f_repeat) || Shortcut(ImGuiMod_Shift | ImGuiKey_Insert, id, f_repeat)) && !is_readonly; + const bool is_undo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Z, id, f_repeat)) && !is_readonly && is_undoable; + const bool is_redo = (Shortcut(ImGuiMod_Shortcut | ImGuiKey_Y, id, f_repeat) || (is_osx && Shortcut(ImGuiMod_Shortcut | ImGuiMod_Shift | ImGuiKey_Z, id, f_repeat))) && !is_readonly && is_undoable; + const bool is_select_all = Shortcut(ImGuiMod_Shortcut | ImGuiKey_A, id); + + // We allow validate/cancel with Nav source (gamepad) to makes it easier to undo an accidental NavInput press with no keyboard wired, but otherwise it isn't very useful. + const bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + const bool is_enter_pressed = IsKeyPressed(ImGuiKey_Enter, true) || IsKeyPressed(ImGuiKey_KeypadEnter, true); + const bool is_gamepad_validate = nav_gamepad_active && (IsKeyPressed(ImGuiKey_NavGamepadActivate, false) || IsKeyPressed(ImGuiKey_NavGamepadInput, false)); + const bool is_cancel = Shortcut(ImGuiKey_Escape, id, f_repeat) || (nav_gamepad_active && Shortcut(ImGuiKey_NavGamepadCancel, id, f_repeat)); + + // FIXME: Should use more Shortcut() and reduce IsKeyPressed()+SetKeyOwner(), but requires modifiers combination to be taken account of. + if (IsKeyPressed(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } + else if (IsKeyPressed(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } + else if (IsKeyPressed(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } + else if (IsKeyPressed(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } + else if (IsKeyPressed(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } + else if (IsKeyPressed(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } + else if (IsKeyPressed(ImGuiKey_Delete) && !is_readonly && !is_cut) + { + if (!state->HasSelection()) + { + // OSX doesn't seem to have Super+Delete to delete until end-of-line, so we don't emulate that (as opposed to Super+Backspace) + if (is_wordmove_key_down) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); + } + state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); + } + else if (IsKeyPressed(ImGuiKey_Backspace) && !is_readonly) + { + if (!state->HasSelection()) + { + if (is_wordmove_key_down) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT); + else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl) + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT); + } + state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); + } + else if (is_enter_pressed || is_gamepad_validate) + { + // Determine if we turn Enter into a \n character + bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; + if (!is_multiline || is_gamepad_validate || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) + { + validated = true; + if (io.ConfigInputTextEnterKeepActive && !is_multiline) + state->SelectAll(); // No need to scroll + else + clear_active_id = true; + } + else if (!is_readonly) + { + unsigned int c = '\n'; // Insert new line + if (InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Keyboard)) + state->OnKeyPressed((int)c); + } + } + else if (is_cancel) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + if (buf[0] != 0) + { + revert_edit = true; + } + else + { + render_cursor = render_selection = false; + clear_active_id = true; + } + } + else + { + clear_active_id = revert_edit = true; + render_cursor = render_selection = false; + } + } + else if (is_undo || is_redo) + { + state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); + state->ClearSelection(); + } + else if (is_select_all) + { + state->SelectAll(); + state->CursorFollow = true; + } + else if (is_cut || is_copy) + { + // Cut, Copy + if (io.SetClipboardTextFn) + { + const int ib = state->HasSelection() ? ImMin(state->Stb.select_start, state->Stb.select_end) : 0; + const int ie = state->HasSelection() ? ImMax(state->Stb.select_start, state->Stb.select_end) : state->CurLenW; + const int clipboard_data_len = ImTextCountUtf8BytesFromStr(state->TextW.Data + ib, state->TextW.Data + ie) + 1; + char* clipboard_data = (char*)IM_ALLOC(clipboard_data_len * sizeof(char)); + ImTextStrToUtf8(clipboard_data, clipboard_data_len, state->TextW.Data + ib, state->TextW.Data + ie); + SetClipboardText(clipboard_data); + MemFree(clipboard_data); + } + if (is_cut) + { + if (!state->HasSelection()) + state->SelectAll(); + state->CursorFollow = true; + stb_textedit_cut(state, &state->Stb); + } + } + else if (is_paste) + { + if (const char* clipboard = GetClipboardText()) + { + // Filter pasted buffer + const int clipboard_len = (int)strlen(clipboard); + ImWchar* clipboard_filtered = (ImWchar*)IM_ALLOC((clipboard_len + 1) * sizeof(ImWchar)); + int clipboard_filtered_len = 0; + for (const char* s = clipboard; *s != 0; ) + { + unsigned int c; + s += ImTextCharFromUtf8(&c, s, NULL); + if (!InputTextFilterCharacter(&g, &c, flags, callback, callback_user_data, ImGuiInputSource_Clipboard)) + continue; + clipboard_filtered[clipboard_filtered_len++] = (ImWchar)c; + } + clipboard_filtered[clipboard_filtered_len] = 0; + if (clipboard_filtered_len > 0) // If everything was filtered, ignore the pasting operation + { + stb_textedit_paste(state, &state->Stb, clipboard_filtered, clipboard_filtered_len); + state->CursorFollow = true; + } + MemFree(clipboard_filtered); + } + } + + // Update render selection flag after events have been handled, so selection highlight can be displayed during the same frame. + render_selection |= state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + } + + // Process callbacks and apply result back to user's buffer. + const char* apply_new_text = NULL; + int apply_new_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + if (revert_edit && !is_readonly) + { + if (flags & ImGuiInputTextFlags_EscapeClearsAll) + { + // Clear input + IM_ASSERT(buf[0] != 0); + apply_new_text = ""; + apply_new_text_length = 0; + value_changed = true; + STB_TEXTEDIT_CHARTYPE empty_string; + stb_textedit_replace(state, &state->Stb, &empty_string, 0); + } + else if (strcmp(buf, state->InitialTextA.Data) != 0) + { + // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. + // Push records into the undo stack so we can CTRL+Z the revert operation itself + apply_new_text = state->InitialTextA.Data; + apply_new_text_length = state->InitialTextA.Size - 1; + value_changed = true; + ImVector w_text; + if (apply_new_text_length > 0) + { + w_text.resize(ImTextCountCharsFromUtf8(apply_new_text, apply_new_text + apply_new_text_length) + 1); + ImTextStrFromUtf8(w_text.Data, w_text.Size, apply_new_text, apply_new_text + apply_new_text_length); + } + stb_textedit_replace(state, &state->Stb, w_text.Data, (apply_new_text_length > 0) ? (w_text.Size - 1) : 0); + } + } + + // Apply ASCII value + if (!is_readonly) + { + state->TextAIsValid = true; + state->TextA.resize(state->TextW.Size * 4 + 1); + ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); + } + + // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer + // before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. + // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. + // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage + // (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object + // unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). + const bool apply_edit_back_to_user_buffer = !revert_edit || (validated && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); + if (apply_edit_back_to_user_buffer) + { + // Apply new value immediately - copy modified buffer back + // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer + // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. + // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. + + // User callback + if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) + { + IM_ASSERT(callback != NULL); + + // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. + ImGuiInputTextFlags event_flag = 0; + ImGuiKey event_key = ImGuiKey_None; + if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && Shortcut(ImGuiKey_Tab, id)) + { + event_flag = ImGuiInputTextFlags_CallbackCompletion; + event_key = ImGuiKey_Tab; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_UpArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_UpArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressed(ImGuiKey_DownArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_DownArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackEdit) && state->Edited) + { + event_flag = ImGuiInputTextFlags_CallbackEdit; + } + else if (flags & ImGuiInputTextFlags_CallbackAlways) + { + event_flag = ImGuiInputTextFlags_CallbackAlways; + } + + if (event_flag) + { + ImGuiInputTextCallbackData callback_data; + callback_data.Ctx = &g; + callback_data.EventFlag = event_flag; + callback_data.Flags = flags; + callback_data.UserData = callback_user_data; + + char* callback_buf = is_readonly ? buf : state->TextA.Data; + callback_data.EventKey = event_key; + callback_data.Buf = callback_buf; + callback_data.BufTextLen = state->CurLenA; + callback_data.BufSize = state->BufCapacityA; + callback_data.BufDirty = false; + + // We have to convert from wchar-positions to UTF-8-positions, which can be pretty slow (an incentive to ditch the ImWchar buffer, see https://github.com/nothings/stb/issues/188) + ImWchar* text = state->TextW.Data; + const int utf8_cursor_pos = callback_data.CursorPos = ImTextCountUtf8BytesFromStr(text, text + state->Stb.cursor); + const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_start); + const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_end); + + // Call user code + callback(&callback_data); + + // Read back what user may have modified + callback_buf = is_readonly ? buf : state->TextA.Data; // Pointer may have been invalidated by a resize callback + IM_ASSERT(callback_data.Buf == callback_buf); // Invalid to modify those fields + IM_ASSERT(callback_data.BufSize == state->BufCapacityA); + IM_ASSERT(callback_data.Flags == flags); + const bool buf_dirty = callback_data.BufDirty; + if (callback_data.CursorPos != utf8_cursor_pos || buf_dirty) { state->Stb.cursor = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.CursorPos); state->CursorFollow = true; } + if (callback_data.SelectionStart != utf8_selection_start || buf_dirty) { state->Stb.select_start = (callback_data.SelectionStart == callback_data.CursorPos) ? state->Stb.cursor : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); } + if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } + if (buf_dirty) + { + IM_ASSERT((flags & ImGuiInputTextFlags_ReadOnly) == 0); + IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! + InputTextReconcileUndoStateAfterUserCallback(state, callback_data.Buf, callback_data.BufTextLen); // FIXME: Move the rest of this block inside function and rename to InputTextReconcileStateAfterUserCallback() ? + if (callback_data.BufTextLen > backup_current_text_length && is_resizable) + state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); // Worse case scenario resize + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); + state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() + state->CursorAnimReset(); + } + } + } + + // Will copy result string if modified + if (!is_readonly && strcmp(state->TextA.Data, buf) != 0) + { + apply_new_text = state->TextA.Data; + apply_new_text_length = state->CurLenA; + value_changed = true; + } + } + } + + // Handle reapplying final data on deactivation (see InputTextDeactivateHook() for details) + if (g.InputTextDeactivatedState.ID == id) + { + if (g.ActiveId != id && IsItemDeactivatedAfterEdit() && !is_readonly && strcmp(g.InputTextDeactivatedState.TextA.Data, buf) != 0) + { + apply_new_text = g.InputTextDeactivatedState.TextA.Data; + apply_new_text_length = g.InputTextDeactivatedState.TextA.Size - 1; + value_changed = true; + //IMGUI_DEBUG_LOG("InputText(): apply Deactivated data for 0x%08X: \"%.*s\".\n", id, apply_new_text_length, apply_new_text); + } + g.InputTextDeactivatedState.ID = 0; + } + + // Copy result to user buffer. This can currently only happen when (g.ActiveId == id) + if (apply_new_text != NULL) + { + // We cannot test for 'backup_current_text_length != apply_new_text_length' here because we have no guarantee that the size + // of our owned buffer matches the size of the string object held by the user, and by design we allow InputText() to be used + // without any storage on user's side. + IM_ASSERT(apply_new_text_length >= 0); + if (is_resizable) + { + ImGuiInputTextCallbackData callback_data; + callback_data.Ctx = &g; + callback_data.EventFlag = ImGuiInputTextFlags_CallbackResize; + callback_data.Flags = flags; + callback_data.Buf = buf; + callback_data.BufTextLen = apply_new_text_length; + callback_data.BufSize = ImMax(buf_size, apply_new_text_length + 1); + callback_data.UserData = callback_user_data; + callback(&callback_data); + buf = callback_data.Buf; + buf_size = callback_data.BufSize; + apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); + IM_ASSERT(apply_new_text_length <= buf_size); + } + //IMGUI_DEBUG_PRINT("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); + + // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. + ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); + } + + // Release active ID at the end of the function (so e.g. pressing Return still does a final application of the value) + // Otherwise request text input ahead for next frame. + if (g.ActiveId == id && clear_active_id) + ClearActiveID(); + else if (g.ActiveId == id) + g.WantTextInputNextFrame = 1; + + // Render frame + if (!is_multiline) + { + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + } + + const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + inner_size.x, frame_bb.Min.y + inner_size.y); // Not using frame_bb.Max because we have adjusted size + ImVec2 draw_pos = is_multiline ? draw_window->DC.CursorPos : frame_bb.Min + style.FramePadding; + ImVec2 text_size(0.0f, 0.0f); + + // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line + // without any carriage return, which would makes ImFont::RenderText() reserve too many vertices and probably crash. Avoid it altogether. + // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash. + const int buf_display_max_length = 2 * 1024 * 1024; + const char* buf_display = buf_display_from_state ? state->TextA.Data : buf; //-V595 + const char* buf_display_end = NULL; // We have specialized paths below for setting the length + if (is_displaying_hint) + { + buf_display = hint; + buf_display_end = hint + strlen(hint); + } + + // Render text. We currently only render selection when the widget is active or while scrolling. + // FIXME: We could remove the '&& render_cursor' to keep rendering selection when inactive. + if (render_cursor || render_selection) + { + IM_ASSERT(state != NULL); + if (!is_displaying_hint) + buf_display_end = buf_display + state->CurLenA; + + // Render text (with cursor and selection) + // This is going to be messy. We need to: + // - Display the text (this alone can be more easily clipped) + // - Handle scrolling, highlight selection, display cursor (those all requires some form of 1d->2d cursor position calculation) + // - Measure text height (for scrollbar) + // We are attempting to do most of that in **one main pass** to minimize the computation cost (non-negligible for large amount of text) + 2nd pass for selection rendering (we could merge them by an extra refactoring effort) + // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8. + const ImWchar* text_begin = state->TextW.Data; + ImVec2 cursor_offset, select_start_offset; + + { + // Find lines numbers straddling 'cursor' (slot 0) and 'select_start' (slot 1) positions. + const ImWchar* searches_input_ptr[2] = { NULL, NULL }; + int searches_result_line_no[2] = { -1000, -1000 }; + int searches_remaining = 0; + if (render_cursor) + { + searches_input_ptr[0] = text_begin + state->Stb.cursor; + searches_result_line_no[0] = -1; + searches_remaining++; + } + if (render_selection) + { + searches_input_ptr[1] = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + searches_result_line_no[1] = -1; + searches_remaining++; + } + + // Iterate all lines to find our line numbers + // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter. + searches_remaining += is_multiline ? 1 : 0; + int line_count = 0; + //for (const ImWchar* s = text_begin; (s = (const ImWchar*)wcschr((const wchar_t*)s, (wchar_t)'\n')) != NULL; s++) // FIXME-OPT: Could use this when wchar_t are 16-bit + for (const ImWchar* s = text_begin; *s != 0; s++) + if (*s == '\n') + { + line_count++; + if (searches_result_line_no[0] == -1 && s >= searches_input_ptr[0]) { searches_result_line_no[0] = line_count; if (--searches_remaining <= 0) break; } + if (searches_result_line_no[1] == -1 && s >= searches_input_ptr[1]) { searches_result_line_no[1] = line_count; if (--searches_remaining <= 0) break; } + } + line_count++; + if (searches_result_line_no[0] == -1) + searches_result_line_no[0] = line_count; + if (searches_result_line_no[1] == -1) + searches_result_line_no[1] = line_count; + + // Calculate 2d position by finding the beginning of the line and measuring distance + cursor_offset.x = InputTextCalcTextSizeW(&g, ImStrbolW(searches_input_ptr[0], text_begin), searches_input_ptr[0]).x; + cursor_offset.y = searches_result_line_no[0] * g.FontSize; + if (searches_result_line_no[1] >= 0) + { + select_start_offset.x = InputTextCalcTextSizeW(&g, ImStrbolW(searches_input_ptr[1], text_begin), searches_input_ptr[1]).x; + select_start_offset.y = searches_result_line_no[1] * g.FontSize; + } + + // Store text height (note that we haven't calculated text width at all, see GitHub issues #383, #1224) + if (is_multiline) + text_size = ImVec2(inner_size.x, line_count * g.FontSize); + } + + // Scroll + if (render_cursor && state->CursorFollow) + { + // Horizontal scroll in chunks of quarter width + if (!(flags & ImGuiInputTextFlags_NoHorizontalScroll)) + { + const float scroll_increment_x = inner_size.x * 0.25f; + const float visible_width = inner_size.x - style.FramePadding.x; + if (cursor_offset.x < state->ScrollX) + state->ScrollX = IM_FLOOR(ImMax(0.0f, cursor_offset.x - scroll_increment_x)); + else if (cursor_offset.x - visible_width >= state->ScrollX) + state->ScrollX = IM_FLOOR(cursor_offset.x - visible_width + scroll_increment_x); + } + else + { + state->ScrollX = 0.0f; + } + + // Vertical scroll + if (is_multiline) + { + // Test if cursor is vertically visible + if (cursor_offset.y - g.FontSize < scroll_y) + scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize); + else if (cursor_offset.y - (inner_size.y - style.FramePadding.y * 2.0f) >= scroll_y) + scroll_y = cursor_offset.y - inner_size.y + style.FramePadding.y * 2.0f; + const float scroll_max_y = ImMax((text_size.y + style.FramePadding.y * 2.0f) - inner_size.y, 0.0f); + scroll_y = ImClamp(scroll_y, 0.0f, scroll_max_y); + draw_pos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag + draw_window->Scroll.y = scroll_y; + } + + state->CursorFollow = false; + } + + // Draw selection + const ImVec2 draw_scroll = ImVec2(state->ScrollX, 0.0f); + if (render_selection) + { + const ImWchar* text_selected_begin = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + const ImWchar* text_selected_end = text_begin + ImMax(state->Stb.select_start, state->Stb.select_end); + + ImU32 bg_color = GetColorU32(ImGuiCol_TextSelectedBg, render_cursor ? 1.0f : 0.6f); // FIXME: current code flow mandate that render_cursor is always true here, we are leaving the transparent one for tests. + float bg_offy_up = is_multiline ? 0.0f : -1.0f; // FIXME: those offsets should be part of the style? they don't play so well with multi-line selection. + float bg_offy_dn = is_multiline ? 0.0f : 2.0f; + ImVec2 rect_pos = draw_pos + select_start_offset - draw_scroll; + for (const ImWchar* p = text_selected_begin; p < text_selected_end; ) + { + if (rect_pos.y > clip_rect.w + g.FontSize) + break; + if (rect_pos.y < clip_rect.y) + { + //p = (const ImWchar*)wmemchr((const wchar_t*)p, '\n', text_selected_end - p); // FIXME-OPT: Could use this when wchar_t are 16-bit + //p = p ? p + 1 : text_selected_end; + while (p < text_selected_end) + if (*p++ == '\n') + break; + } + else + { + ImVec2 rect_size = InputTextCalcTextSizeW(&g, p, text_selected_end, &p, NULL, true); + if (rect_size.x <= 0.0f) rect_size.x = IM_FLOOR(g.Font->GetCharAdvance((ImWchar)' ') * 0.50f); // So we can see selected empty lines + ImRect rect(rect_pos + ImVec2(0.0f, bg_offy_up - g.FontSize), rect_pos + ImVec2(rect_size.x, bg_offy_dn)); + rect.ClipWith(clip_rect); + if (rect.Overlaps(clip_rect)) + draw_window->DrawList->AddRectFilled(rect.Min, rect.Max, bg_color); + } + rect_pos.x = draw_pos.x - draw_scroll.x; + rect_pos.y += g.FontSize; + } + } + + // We test for 'buf_display_max_length' as a way to avoid some pathological cases (e.g. single-line 1 MB string) which would make ImDrawList crash. + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos - draw_scroll, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + + // Draw blinking cursor + if (render_cursor) + { + state->CursorAnim += io.DeltaTime; + bool cursor_is_visible = (!g.IO.ConfigInputTextCursorBlink) || (state->CursorAnim <= 0.0f) || ImFmod(state->CursorAnim, 1.20f) <= 0.80f; + ImVec2 cursor_screen_pos = ImFloor(draw_pos + cursor_offset - draw_scroll); + ImRect cursor_screen_rect(cursor_screen_pos.x, cursor_screen_pos.y - g.FontSize + 0.5f, cursor_screen_pos.x + 1.0f, cursor_screen_pos.y - 1.5f); + if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect)) + draw_window->DrawList->AddLine(cursor_screen_rect.Min, cursor_screen_rect.GetBL(), GetColorU32(ImGuiCol_Text)); + + // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) + if (!is_readonly) + { + g.PlatformImeData.WantVisible = true; + g.PlatformImeData.InputPos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + g.PlatformImeData.InputLineHeight = g.FontSize; + g.PlatformImeViewport = window->Viewport->ID; + } + } + } + else + { + // Render text only (no selection, no cursor) + if (is_multiline) + text_size = ImVec2(inner_size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_display_end) * g.FontSize); // We don't need width + else if (!is_displaying_hint && g.ActiveId == id) + buf_display_end = buf_display + state->CurLenA; + else if (!is_displaying_hint) + buf_display_end = buf_display + strlen(buf_display); + + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + } + + if (is_password && !is_displaying_hint) + PopFont(); + + if (is_multiline) + { + // For focus requests to work on our multiline we need to ensure our child ItemAdd() call specifies the ImGuiItemFlags_Inputable (ref issue #4761)... + Dummy(ImVec2(text_size.x, text_size.y + style.FramePadding.y)); + g.NextItemData.ItemFlags |= ImGuiItemFlags_Inputable | ImGuiItemFlags_NoTabStop; + EndChild(); + item_data_backup.StatusFlags |= (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredWindow); + + // ...and then we need to undo the group overriding last item data, which gets a bit messy as EndGroup() tries to forward scrollbar being active... + // FIXME: This quite messy/tricky, should attempt to get rid of the child window. + EndGroup(); + if (g.LastItemData.ID == 0) + { + g.LastItemData.ID = id; + g.LastItemData.InFlags = item_data_backup.InFlags; + g.LastItemData.StatusFlags = item_data_backup.StatusFlags; + } + } + + // Log as text + if (g.LogEnabled && (!is_password || is_displaying_hint)) + { + LogSetNextTextDecoration("{", "}"); + LogRenderedText(&draw_pos, buf_display, buf_display_end); + } + + if (label_size.x > 0) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + if (value_changed && !(flags & ImGuiInputTextFlags_NoMarkEdited)) + MarkItemEdited(id); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Inputable); + if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) + return validated; + else + return value_changed; +} + +void ImGui::DebugNodeInputTextState(ImGuiInputTextState* state) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + ImGuiContext& g = *GImGui; + ImStb::STB_TexteditState* stb_state = &state->Stb; + ImStb::StbUndoState* undo_state = &stb_state->undostate; + Text("ID: 0x%08X, ActiveID: 0x%08X", state->ID, g.ActiveId); + DebugLocateItemOnHover(state->ID); + Text("CurLenW: %d, CurLenA: %d, Cursor: %d, Selection: %d..%d", state->CurLenW, state->CurLenA, stb_state->cursor, stb_state->select_start, stb_state->select_end); + Text("has_preferred_x: %d (%.2f)", stb_state->has_preferred_x, stb_state->preferred_x); + Text("undo_point: %d, redo_point: %d, undo_char_point: %d, redo_char_point: %d", undo_state->undo_point, undo_state->redo_point, undo_state->undo_char_point, undo_state->redo_char_point); + if (BeginChild("undopoints", ImVec2(0.0f, GetTextLineHeight() * 15), true)) // Visualize undo state + { + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int n = 0; n < STB_TEXTEDIT_UNDOSTATECOUNT; n++) + { + ImStb::StbUndoRecord* undo_rec = &undo_state->undo_rec[n]; + const char undo_rec_type = (n < undo_state->undo_point) ? 'u' : (n >= undo_state->redo_point) ? 'r' : ' '; + if (undo_rec_type == ' ') + BeginDisabled(); + char buf[64] = ""; + if (undo_rec_type != ' ' && undo_rec->char_storage != -1) + ImTextStrToUtf8(buf, IM_ARRAYSIZE(buf), undo_state->undo_char + undo_rec->char_storage, undo_state->undo_char + undo_rec->char_storage + undo_rec->insert_length); + Text("%c [%02d] where %03d, insert %03d, delete %03d, char_storage %03d \"%s\"", + undo_rec_type, n, undo_rec->where, undo_rec->insert_length, undo_rec->delete_length, undo_rec->char_storage, buf); + if (undo_rec_type == ' ') + EndDisabled(); + } + PopStyleVar(); + } + EndChild(); +#else + IM_UNUSED(state); +#endif +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +//------------------------------------------------------------------------- +// - ColorEdit3() +// - ColorEdit4() +// - ColorPicker3() +// - RenderColorRectWithAlphaCheckerboard() [Internal] +// - ColorPicker4() +// - ColorButton() +// - SetColorEditOptions() +// - ColorTooltip() [Internal] +// - ColorEditOptionsPopup() [Internal] +// - ColorPickerOptionsPopup() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + return ColorEdit4(label, col, flags | ImGuiColorEditFlags_NoAlpha); +} + +static void ColorEditRestoreH(const float* col, float* H) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ColorEditCurrentID != 0); + if (g.ColorEditSavedID != g.ColorEditCurrentID || g.ColorEditSavedColor != ImGui::ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + return; + *H = g.ColorEditSavedHue; +} + +// ColorEdit supports RGB and HSV inputs. In case of RGB input resulting color may have undefined hue and/or saturation. +// Since widget displays both RGB and HSV values we must preserve hue and saturation to prevent these values resetting. +static void ColorEditRestoreHS(const float* col, float* H, float* S, float* V) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ColorEditCurrentID != 0); + if (g.ColorEditSavedID != g.ColorEditCurrentID || g.ColorEditSavedColor != ImGui::ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0))) + return; + + // When S == 0, H is undefined. + // When H == 1 it wraps around to 0. + if (*S == 0.0f || (*H == 0.0f && g.ColorEditSavedHue == 1)) + *H = g.ColorEditSavedHue; + + // When V == 0, S is undefined. + if (*V == 0.0f) + *S = g.ColorEditSavedSat; +} + +// Edit colors components (each component in 0.0f..1.0f range). +// See enum ImGuiColorEditFlags_ for available options. e.g. Only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// With typical options: Left-click on color square to open color picker. Right-click to open option menu. CTRL-Click over input fields to edit them and TAB to go to next item. +bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float square_sz = GetFrameHeight(); + const float w_full = CalcItemWidth(); + const float w_button = (flags & ImGuiColorEditFlags_NoSmallPreview) ? 0.0f : (square_sz + style.ItemInnerSpacing.x); + const float w_inputs = w_full - w_button; + const char* label_display_end = FindRenderedTextEnd(label); + g.NextItemData.ClearFlags(); + + BeginGroup(); + PushID(label); + const bool set_current_color_edit_id = (g.ColorEditCurrentID == 0); + if (set_current_color_edit_id) + g.ColorEditCurrentID = window->IDStack.back(); + + // If we're not showing any slider there's no point in doing any HSV conversions + const ImGuiColorEditFlags flags_untouched = flags; + if (flags & ImGuiColorEditFlags_NoInputs) + flags = (flags & (~ImGuiColorEditFlags_DisplayMask_)) | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_NoOptions; + + // Context menu: display and modify options (before defaults are applied) + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorEditOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_DisplayMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DisplayMask_); + if (!(flags & ImGuiColorEditFlags_DataTypeMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_DataTypeMask_); + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_); + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_InputMask_); + flags |= (g.ColorEditOptions & ~(ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_)); + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + + const bool alpha = (flags & ImGuiColorEditFlags_NoAlpha) == 0; + const bool hdr = (flags & ImGuiColorEditFlags_HDR) != 0; + const int components = alpha ? 4 : 3; + + // Convert to the formats we need + float f[4] = { col[0], col[1], col[2], alpha ? col[3] : 1.0f }; + if ((flags & ImGuiColorEditFlags_InputHSV) && (flags & ImGuiColorEditFlags_DisplayRGB)) + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + else if ((flags & ImGuiColorEditFlags_InputRGB) && (flags & ImGuiColorEditFlags_DisplayHSV)) + { + // Hue is lost when converting from grayscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + ColorEditRestoreHS(col, &f[0], &f[1], &f[2]); + } + int i[4] = { IM_F32_TO_INT8_UNBOUND(f[0]), IM_F32_TO_INT8_UNBOUND(f[1]), IM_F32_TO_INT8_UNBOUND(f[2]), IM_F32_TO_INT8_UNBOUND(f[3]) }; + + bool value_changed = false; + bool value_changed_as_float = false; + + const ImVec2 pos = window->DC.CursorPos; + const float inputs_offset_x = (style.ColorButtonPosition == ImGuiDir_Left) ? w_button : 0.0f; + window->DC.CursorPos.x = pos.x + inputs_offset_x; + + if ((flags & (ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV)) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB/HSV 0..255 Sliders + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_inputs - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_inputs - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + + const bool hide_prefix = (w_item_one <= CalcTextSize((flags & ImGuiColorEditFlags_Float) ? "M:0.000" : "M:000").x); + static const char* ids[4] = { "##X", "##Y", "##Z", "##W" }; + static const char* fmt_table_int[3][4] = + { + { "%3d", "%3d", "%3d", "%3d" }, // Short display + { "R:%3d", "G:%3d", "B:%3d", "A:%3d" }, // Long display for RGBA + { "H:%3d", "S:%3d", "V:%3d", "A:%3d" } // Long display for HSVA + }; + static const char* fmt_table_float[3][4] = + { + { "%0.3f", "%0.3f", "%0.3f", "%0.3f" }, // Short display + { "R:%0.3f", "G:%0.3f", "B:%0.3f", "A:%0.3f" }, // Long display for RGBA + { "H:%0.3f", "S:%0.3f", "V:%0.3f", "A:%0.3f" } // Long display for HSVA + }; + const int fmt_idx = hide_prefix ? 0 : (flags & ImGuiColorEditFlags_DisplayHSV) ? 2 : 1; + + for (int n = 0; n < components; n++) + { + if (n > 0) + SameLine(0, style.ItemInnerSpacing.x); + SetNextItemWidth((n + 1 < components) ? w_item_one : w_item_last); + + // FIXME: When ImGuiColorEditFlags_HDR flag is passed HS values snap in weird ways when SV values go below 0. + if (flags & ImGuiColorEditFlags_Float) + { + value_changed |= DragFloat(ids[n], &f[n], 1.0f / 255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]); + value_changed_as_float |= value_changed; + } + else + { + value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + } + else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB Hexadecimal Input + char buf[64]; + if (alpha) + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255), ImClamp(i[3], 0, 255)); + else + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255)); + SetNextItemWidth(w_inputs); + if (InputText("##Text", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase)) + { + value_changed = true; + char* p = buf; + while (*p == '#' || ImCharIsBlankA(*p)) + p++; + i[0] = i[1] = i[2] = 0; + i[3] = 0xFF; // alpha default to 255 is not parsed by scanf (e.g. inputting #FFFFFF omitting alpha) + int r; + if (alpha) + r = sscanf(p, "%02X%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2], (unsigned int*)&i[3]); // Treat at unsigned (%X is unsigned) + else + r = sscanf(p, "%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2]); + IM_UNUSED(r); // Fixes C6031: Return value ignored: 'sscanf'. + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + + ImGuiWindow* picker_active_window = NULL; + if (!(flags & ImGuiColorEditFlags_NoSmallPreview)) + { + const float button_offset_x = ((flags & ImGuiColorEditFlags_NoInputs) || (style.ColorButtonPosition == ImGuiDir_Left)) ? 0.0f : w_inputs + style.ItemInnerSpacing.x; + window->DC.CursorPos = ImVec2(pos.x + button_offset_x, pos.y); + + const ImVec4 col_v4(col[0], col[1], col[2], alpha ? col[3] : 1.0f); + if (ColorButton("##ColorButton", col_v4, flags)) + { + if (!(flags & ImGuiColorEditFlags_NoPicker)) + { + // Store current color and open a picker + g.ColorPickerRef = col_v4; + OpenPopup("picker"); + SetNextWindowPos(g.LastItemData.Rect.GetBL() + ImVec2(0.0f, style.ItemSpacing.y)); + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + if (BeginPopup("picker")) + { + if (g.CurrentWindow->BeginCount == 1) + { + picker_active_window = g.CurrentWindow; + if (label != label_display_end) + { + TextEx(label, label_display_end); + Spacing(); + } + ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_PickerMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; + ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags_DisplayMask_ | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; + SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? + value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); + } + EndPopup(); + } + } + + if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) + { + // Position not necessarily next to last submitted button (e.g. if style.ColorButtonPosition == ImGuiDir_Left), + // but we need to use SameLine() to setup baseline correctly. Might want to refactor SameLine() to simplify this. + SameLine(0.0f, style.ItemInnerSpacing.x); + window->DC.CursorPos.x = pos.x + ((flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + + // Convert back + if (value_changed && picker_active_window == NULL) + { + if (!value_changed_as_float) + for (int n = 0; n < 4; n++) + f[n] = i[n] / 255.0f; + if ((flags & ImGuiColorEditFlags_DisplayHSV) && (flags & ImGuiColorEditFlags_InputRGB)) + { + g.ColorEditSavedHue = f[0]; + g.ColorEditSavedSat = f[1]; + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + g.ColorEditSavedID = g.ColorEditCurrentID; + g.ColorEditSavedColor = ColorConvertFloat4ToU32(ImVec4(f[0], f[1], f[2], 0)); + } + if ((flags & ImGuiColorEditFlags_DisplayRGB) && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + + col[0] = f[0]; + col[1] = f[1]; + col[2] = f[2]; + if (alpha) + col[3] = f[3]; + } + + if (set_current_color_edit_id) + g.ColorEditCurrentID = 0; + PopID(); + EndGroup(); + + // Drag and Drop Target + // NB: The flag test is merely an optional micro-optimization, BeginDragDropTarget() does the same test. + if ((g.LastItemData.StatusFlags & ImGuiItemStatusFlags_HoveredRect) && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropTarget()) + { + bool accepted_drag_drop = false; + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 //-V1086 + value_changed = accepted_drag_drop = true; + } + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * components); + value_changed = accepted_drag_drop = true; + } + + // Drag-drop payloads are always RGB + if (accepted_drag_drop && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(col[0], col[1], col[2], col[0], col[1], col[2]); + EndDragDropTarget(); + } + + // When picker is being actively used, use its active id so IsItemActive() will function on ColorEdit4(). + if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) + g.LastItemData.ID = g.ActiveId; + + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + float col4[4] = { col[0], col[1], col[2], 1.0f }; + if (!ColorPicker4(label, col4, flags | ImGuiColorEditFlags_NoAlpha)) + return false; + col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2]; + return true; +} + +// Helper for ColorPicker4() +static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w, float alpha) +{ + ImU32 alpha8 = IM_F32_TO_INT8_SAT(alpha); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x + 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Right, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x, pos.y), half_sz, ImGuiDir_Right, IM_COL32(255,255,255,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x - 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Left, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x, pos.y), half_sz, ImGuiDir_Left, IM_COL32(255,255,255,alpha8)); +} + +// Note: ColorPicker4() only accesses 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// (In C++ the 'float col[4]' notation for a function argument is equivalent to 'float* col', we only specify a size to facilitate understanding of the code.) +// FIXME: we adjust the big color square height based on item width, which may cause a flickering feedback loop (if automatic height makes a vertical scrollbar appears, affecting automatic width..) +// FIXME: this is trying to be aware of style.Alpha but not fully correct. Also, the color wheel will have overlapping glitches with (style.Alpha < 1.0) +bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImDrawList* draw_list = window->DrawList; + ImGuiStyle& style = g.Style; + ImGuiIO& io = g.IO; + + const float width = CalcItemWidth(); + g.NextItemData.ClearFlags(); + + PushID(label); + const bool set_current_color_edit_id = (g.ColorEditCurrentID == 0); + if (set_current_color_edit_id) + g.ColorEditCurrentID = window->IDStack.back(); + BeginGroup(); + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + flags |= ImGuiColorEditFlags_NoSmallPreview; + + // Context menu: display and store options. + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorPickerOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags_PickerMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_PickerMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_PickerMask_; + if (!(flags & ImGuiColorEditFlags_InputMask_)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags_InputMask_) ? g.ColorEditOptions : ImGuiColorEditFlags_DefaultOptions_) & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check that only 1 is selected + if (!(flags & ImGuiColorEditFlags_NoOptions)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_AlphaBar); + + // Setup + int components = (flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4; + bool alpha_bar = (flags & ImGuiColorEditFlags_AlphaBar) && !(flags & ImGuiColorEditFlags_NoAlpha); + ImVec2 picker_pos = window->DC.CursorPos; + float square_sz = GetFrameHeight(); + float bars_width = square_sz; // Arbitrary smallish width of Hue/Alpha picking bars + float sv_picker_size = ImMax(bars_width * 1, width - (alpha_bar ? 2 : 1) * (bars_width + style.ItemInnerSpacing.x)); // Saturation/Value picking box + float bar0_pos_x = picker_pos.x + sv_picker_size + style.ItemInnerSpacing.x; + float bar1_pos_x = bar0_pos_x + bars_width + style.ItemInnerSpacing.x; + float bars_triangles_half_sz = IM_FLOOR(bars_width * 0.20f); + + float backup_initial_col[4]; + memcpy(backup_initial_col, col, components * sizeof(float)); + + float wheel_thickness = sv_picker_size * 0.08f; + float wheel_r_outer = sv_picker_size * 0.50f; + float wheel_r_inner = wheel_r_outer - wheel_thickness; + ImVec2 wheel_center(picker_pos.x + (sv_picker_size + bars_width)*0.5f, picker_pos.y + sv_picker_size * 0.5f); + + // Note: the triangle is displayed rotated with triangle_pa pointing to Hue, but most coordinates stays unrotated for logic. + float triangle_r = wheel_r_inner - (int)(sv_picker_size * 0.027f); + ImVec2 triangle_pa = ImVec2(triangle_r, 0.0f); // Hue point. + ImVec2 triangle_pb = ImVec2(triangle_r * -0.5f, triangle_r * -0.866025f); // Black point. + ImVec2 triangle_pc = ImVec2(triangle_r * -0.5f, triangle_r * +0.866025f); // White point. + + float H = col[0], S = col[1], V = col[2]; + float R = col[0], G = col[1], B = col[2]; + if (flags & ImGuiColorEditFlags_InputRGB) + { + // Hue is lost when converting from grayscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + + bool value_changed = false, value_changed_h = false, value_changed_sv = false; + + PushItemFlag(ImGuiItemFlags_NoNav, true); + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Hue wheel + SV triangle logic + InvisibleButton("hsv", ImVec2(sv_picker_size + style.ItemInnerSpacing.x + bars_width, sv_picker_size)); + if (IsItemActive()) + { + ImVec2 initial_off = g.IO.MouseClickedPos[0] - wheel_center; + ImVec2 current_off = g.IO.MousePos - wheel_center; + float initial_dist2 = ImLengthSqr(initial_off); + if (initial_dist2 >= (wheel_r_inner - 1) * (wheel_r_inner - 1) && initial_dist2 <= (wheel_r_outer + 1) * (wheel_r_outer + 1)) + { + // Interactive with Hue wheel + H = ImAtan2(current_off.y, current_off.x) / IM_PI * 0.5f; + if (H < 0.0f) + H += 1.0f; + value_changed = value_changed_h = true; + } + float cos_hue_angle = ImCos(-H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(-H * 2.0f * IM_PI); + if (ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, ImRotate(initial_off, cos_hue_angle, sin_hue_angle))) + { + // Interacting with SV triangle + ImVec2 current_off_unrotated = ImRotate(current_off, cos_hue_angle, sin_hue_angle); + if (!ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated)) + current_off_unrotated = ImTriangleClosestPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated); + float uu, vv, ww; + ImTriangleBarycentricCoords(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated, uu, vv, ww); + V = ImClamp(1.0f - vv, 0.0001f, 1.0f); + S = ImClamp(uu / V, 0.0001f, 1.0f); + value_changed = value_changed_sv = true; + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // SV rectangle logic + InvisibleButton("sv", ImVec2(sv_picker_size, sv_picker_size)); + if (IsItemActive()) + { + S = ImSaturate((io.MousePos.x - picker_pos.x) / (sv_picker_size - 1)); + V = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + ColorEditRestoreH(col, &H); // Greatly reduces hue jitter and reset to 0 when hue == 255 and color is rapidly modified using SV square. + value_changed = value_changed_sv = true; + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context", ImGuiPopupFlags_MouseButtonRight); + + // Hue bar logic + SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); + InvisibleButton("hue", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + H = ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = value_changed_h = true; + } + } + + // Alpha bar logic + if (alpha_bar) + { + SetCursorScreenPos(ImVec2(bar1_pos_x, picker_pos.y)); + InvisibleButton("alpha", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + col[3] = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = true; + } + } + PopItemFlag(); // ImGuiItemFlags_NoNav + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + SameLine(0, style.ItemInnerSpacing.x); + BeginGroup(); + } + + if (!(flags & ImGuiColorEditFlags_NoLabel)) + { + const char* label_display_end = FindRenderedTextEnd(label); + if (label != label_display_end) + { + if ((flags & ImGuiColorEditFlags_NoSidePreview)) + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + } + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + PushItemFlag(ImGuiItemFlags_NoNavDefaultFocus, true); + ImVec4 col_v4(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if ((flags & ImGuiColorEditFlags_NoLabel)) + Text("Current"); + + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_NoTooltip; + ColorButton("##current", col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2)); + if (ref_col != NULL) + { + Text("Original"); + ImVec4 ref_col_v4(ref_col[0], ref_col[1], ref_col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : ref_col[3]); + if (ColorButton("##original", ref_col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2))) + { + memcpy(col, ref_col, components * sizeof(float)); + value_changed = true; + } + } + PopItemFlag(); + EndGroup(); + } + + // Convert back color to RGB + if (value_changed_h || value_changed_sv) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + ColorConvertHSVtoRGB(H, S, V, col[0], col[1], col[2]); + g.ColorEditSavedHue = H; + g.ColorEditSavedSat = S; + g.ColorEditSavedID = g.ColorEditCurrentID; + g.ColorEditSavedColor = ColorConvertFloat4ToU32(ImVec4(col[0], col[1], col[2], 0)); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + col[0] = H; + col[1] = S; + col[2] = V; + } + } + + // R,G,B and H,S,V slider color editor + bool value_changed_fix_hue_wrap = false; + if ((flags & ImGuiColorEditFlags_NoInputs) == 0) + { + PushItemWidth((alpha_bar ? bar1_pos_x : bar0_pos_x) + bars_width - picker_pos.x); + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags_DataTypeMask_ | ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoSmallPreview | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf; + ImGuiColorEditFlags sub_flags = (flags & sub_flags_to_forward) | ImGuiColorEditFlags_NoPicker; + if (flags & ImGuiColorEditFlags_DisplayRGB || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + if (ColorEdit4("##rgb", col, sub_flags | ImGuiColorEditFlags_DisplayRGB)) + { + // FIXME: Hackily differentiating using the DragInt (ActiveId != 0 && !ActiveIdAllowOverlap) vs. using the InputText or DropTarget. + // For the later we don't want to run the hue-wrap canceling code. If you are well versed in HSV picker please provide your input! (See #2050) + value_changed_fix_hue_wrap = (g.ActiveId != 0 && !g.ActiveIdAllowOverlap); + value_changed = true; + } + if (flags & ImGuiColorEditFlags_DisplayHSV || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hsv", col, sub_flags | ImGuiColorEditFlags_DisplayHSV); + if (flags & ImGuiColorEditFlags_DisplayHex || (flags & ImGuiColorEditFlags_DisplayMask_) == 0) + value_changed |= ColorEdit4("##hex", col, sub_flags | ImGuiColorEditFlags_DisplayHex); + PopItemWidth(); + } + + // Try to cancel hue wrap (after ColorEdit4 call), if any + if (value_changed_fix_hue_wrap && (flags & ImGuiColorEditFlags_InputRGB)) + { + float new_H, new_S, new_V; + ColorConvertRGBtoHSV(col[0], col[1], col[2], new_H, new_S, new_V); + if (new_H <= 0 && H > 0) + { + if (new_V <= 0 && V != new_V) + ColorConvertHSVtoRGB(H, S, new_V <= 0 ? V * 0.5f : new_V, col[0], col[1], col[2]); + else if (new_S <= 0) + ColorConvertHSVtoRGB(H, new_S <= 0 ? S * 0.5f : new_S, new_V, col[0], col[1], col[2]); + } + } + + if (value_changed) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + R = col[0]; + G = col[1]; + B = col[2]; + ColorConvertRGBtoHSV(R, G, B, H, S, V); + ColorEditRestoreHS(col, &H, &S, &V); // Fix local Hue as display below will use it immediately. + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + H = col[0]; + S = col[1]; + V = col[2]; + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + } + + const int style_alpha8 = IM_F32_TO_INT8_SAT(style.Alpha); + const ImU32 col_black = IM_COL32(0,0,0,style_alpha8); + const ImU32 col_white = IM_COL32(255,255,255,style_alpha8); + const ImU32 col_midgrey = IM_COL32(128,128,128,style_alpha8); + const ImU32 col_hues[6 + 1] = { IM_COL32(255,0,0,style_alpha8), IM_COL32(255,255,0,style_alpha8), IM_COL32(0,255,0,style_alpha8), IM_COL32(0,255,255,style_alpha8), IM_COL32(0,0,255,style_alpha8), IM_COL32(255,0,255,style_alpha8), IM_COL32(255,0,0,style_alpha8) }; + + ImVec4 hue_color_f(1, 1, 1, style.Alpha); ColorConvertHSVtoRGB(H, 1, 1, hue_color_f.x, hue_color_f.y, hue_color_f.z); + ImU32 hue_color32 = ColorConvertFloat4ToU32(hue_color_f); + ImU32 user_col32_striped_of_alpha = ColorConvertFloat4ToU32(ImVec4(R, G, B, style.Alpha)); // Important: this is still including the main rendering/style alpha!! + + ImVec2 sv_cursor_pos; + + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Render Hue Wheel + const float aeps = 0.5f / wheel_r_outer; // Half a pixel arc length in radians (2pi cancels out). + const int segment_per_arc = ImMax(4, (int)wheel_r_outer / 12); + for (int n = 0; n < 6; n++) + { + const float a0 = (n) /6.0f * 2.0f * IM_PI - aeps; + const float a1 = (n+1.0f)/6.0f * 2.0f * IM_PI + aeps; + const int vert_start_idx = draw_list->VtxBuffer.Size; + draw_list->PathArcTo(wheel_center, (wheel_r_inner + wheel_r_outer)*0.5f, a0, a1, segment_per_arc); + draw_list->PathStroke(col_white, 0, wheel_thickness); + const int vert_end_idx = draw_list->VtxBuffer.Size; + + // Paint colors over existing vertices + ImVec2 gradient_p0(wheel_center.x + ImCos(a0) * wheel_r_inner, wheel_center.y + ImSin(a0) * wheel_r_inner); + ImVec2 gradient_p1(wheel_center.x + ImCos(a1) * wheel_r_inner, wheel_center.y + ImSin(a1) * wheel_r_inner); + ShadeVertsLinearColorGradientKeepAlpha(draw_list, vert_start_idx, vert_end_idx, gradient_p0, gradient_p1, col_hues[n], col_hues[n + 1]); + } + + // Render Cursor + preview on Hue Wheel + float cos_hue_angle = ImCos(H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(H * 2.0f * IM_PI); + ImVec2 hue_cursor_pos(wheel_center.x + cos_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f, wheel_center.y + sin_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f); + float hue_cursor_rad = value_changed_h ? wheel_thickness * 0.65f : wheel_thickness * 0.55f; + int hue_cursor_segments = draw_list->_CalcCircleAutoSegmentCount(hue_cursor_rad); // Lock segment count so the +1 one matches others. + draw_list->AddCircleFilled(hue_cursor_pos, hue_cursor_rad, hue_color32, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad + 1, col_midgrey, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad, col_white, hue_cursor_segments); + + // Render SV triangle (rotated according to hue) + ImVec2 tra = wheel_center + ImRotate(triangle_pa, cos_hue_angle, sin_hue_angle); + ImVec2 trb = wheel_center + ImRotate(triangle_pb, cos_hue_angle, sin_hue_angle); + ImVec2 trc = wheel_center + ImRotate(triangle_pc, cos_hue_angle, sin_hue_angle); + ImVec2 uv_white = GetFontTexUvWhitePixel(); + draw_list->PrimReserve(3, 3); + draw_list->PrimVtx(tra, uv_white, hue_color32); + draw_list->PrimVtx(trb, uv_white, col_black); + draw_list->PrimVtx(trc, uv_white, col_white); + draw_list->AddTriangle(tra, trb, trc, col_midgrey, 1.5f); + sv_cursor_pos = ImLerp(ImLerp(trc, tra, ImSaturate(S)), trb, ImSaturate(1 - V)); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // Render SV Square + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), col_white, hue_color32, hue_color32, col_white); + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0, 0, col_black, col_black); + RenderFrameBorder(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0.0f); + sv_cursor_pos.x = ImClamp(IM_ROUND(picker_pos.x + ImSaturate(S) * sv_picker_size), picker_pos.x + 2, picker_pos.x + sv_picker_size - 2); // Sneakily prevent the circle to stick out too much + sv_cursor_pos.y = ImClamp(IM_ROUND(picker_pos.y + ImSaturate(1 - V) * sv_picker_size), picker_pos.y + 2, picker_pos.y + sv_picker_size - 2); + + // Render Hue Bar + for (int i = 0; i < 6; ++i) + draw_list->AddRectFilledMultiColor(ImVec2(bar0_pos_x, picker_pos.y + i * (sv_picker_size / 6)), ImVec2(bar0_pos_x + bars_width, picker_pos.y + (i + 1) * (sv_picker_size / 6)), col_hues[i], col_hues[i], col_hues[i + 1], col_hues[i + 1]); + float bar0_line_y = IM_ROUND(picker_pos.y + H * sv_picker_size); + RenderFrameBorder(ImVec2(bar0_pos_x, picker_pos.y), ImVec2(bar0_pos_x + bars_width, picker_pos.y + sv_picker_size), 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar0_pos_x - 1, bar0_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + // Render cursor/preview circle (clamp S/V within 0..1 range because floating points colors may lead HSV values to be out of range) + float sv_cursor_rad = value_changed_sv ? 10.0f : 6.0f; + int sv_cursor_segments = draw_list->_CalcCircleAutoSegmentCount(sv_cursor_rad); // Lock segment count so the +1 one matches others. + draw_list->AddCircleFilled(sv_cursor_pos, sv_cursor_rad, user_col32_striped_of_alpha, sv_cursor_segments); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad + 1, col_midgrey, sv_cursor_segments); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad, col_white, sv_cursor_segments); + + // Render alpha bar + if (alpha_bar) + { + float alpha = ImSaturate(col[3]); + ImRect bar1_bb(bar1_pos_x, picker_pos.y, bar1_pos_x + bars_width, picker_pos.y + sv_picker_size); + RenderColorRectWithAlphaCheckerboard(draw_list, bar1_bb.Min, bar1_bb.Max, 0, bar1_bb.GetWidth() / 2.0f, ImVec2(0.0f, 0.0f)); + draw_list->AddRectFilledMultiColor(bar1_bb.Min, bar1_bb.Max, user_col32_striped_of_alpha, user_col32_striped_of_alpha, user_col32_striped_of_alpha & ~IM_COL32_A_MASK, user_col32_striped_of_alpha & ~IM_COL32_A_MASK); + float bar1_line_y = IM_ROUND(picker_pos.y + (1.0f - alpha) * sv_picker_size); + RenderFrameBorder(bar1_bb.Min, bar1_bb.Max, 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar1_pos_x - 1, bar1_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + EndGroup(); + + if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) + value_changed = false; + if (value_changed && g.LastItemData.ID != 0) // In case of ID collision, the second EndGroup() won't catch g.ActiveId + MarkItemEdited(g.LastItemData.ID); + + if (set_current_color_edit_id) + g.ColorEditCurrentID = 0; + PopID(); + + return value_changed; +} + +// A little color square. Return true when clicked. +// FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. +// 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. +// Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. +bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiID id = window->GetID(desc_id); + const float default_size = GetFrameHeight(); + const ImVec2 size(size_arg.x == 0.0f ? default_size : size_arg.x, size_arg.y == 0.0f ? default_size : size_arg.y); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); + ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + if (flags & ImGuiColorEditFlags_NoAlpha) + flags &= ~(ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf); + + ImVec4 col_rgb = col; + if (flags & ImGuiColorEditFlags_InputHSV) + ColorConvertHSVtoRGB(col_rgb.x, col_rgb.y, col_rgb.z, col_rgb.x, col_rgb.y, col_rgb.z); + + ImVec4 col_rgb_without_alpha(col_rgb.x, col_rgb.y, col_rgb.z, 1.0f); + float grid_step = ImMin(size.x, size.y) / 2.99f; + float rounding = ImMin(g.Style.FrameRounding, grid_step * 0.5f); + ImRect bb_inner = bb; + float off = 0.0f; + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + off = -0.75f; // The border (using Col_FrameBg) tends to look off when color is near-opaque and rounding is enabled. This offset seemed like a good middle ground to reduce those artifacts. + bb_inner.Expand(off); + } + if ((flags & ImGuiColorEditFlags_AlphaPreviewHalf) && col_rgb.w < 1.0f) + { + float mid_x = IM_ROUND((bb_inner.Min.x + bb_inner.Max.x) * 0.5f); + RenderColorRectWithAlphaCheckerboard(window->DrawList, ImVec2(bb_inner.Min.x + grid_step, bb_inner.Min.y), bb_inner.Max, GetColorU32(col_rgb), grid_step, ImVec2(-grid_step + off, off), rounding, ImDrawFlags_RoundCornersRight); + window->DrawList->AddRectFilled(bb_inner.Min, ImVec2(mid_x, bb_inner.Max.y), GetColorU32(col_rgb_without_alpha), rounding, ImDrawFlags_RoundCornersLeft); + } + else + { + // Because GetColorU32() multiplies by the global style Alpha and we don't want to display a checkerboard if the source code had no alpha + ImVec4 col_source = (flags & ImGuiColorEditFlags_AlphaPreview) ? col_rgb : col_rgb_without_alpha; + if (col_source.w < 1.0f) + RenderColorRectWithAlphaCheckerboard(window->DrawList, bb_inner.Min, bb_inner.Max, GetColorU32(col_source), grid_step, ImVec2(off, off), rounding); + else + window->DrawList->AddRectFilled(bb_inner.Min, bb_inner.Max, GetColorU32(col_source), rounding); + } + RenderNavHighlight(bb, id); + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + if (g.Style.FrameBorderSize > 0.0f) + RenderFrameBorder(bb.Min, bb.Max, rounding); + else + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color button are often in need of some sort of border + } + + // Drag and Drop Source + // NB: The ActiveId test is merely an optional micro-optimization, BeginDragDropSource() does the same test. + if (g.ActiveId == id && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropSource()) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F, &col_rgb, sizeof(float) * 3, ImGuiCond_Once); + else + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, &col_rgb, sizeof(float) * 4, ImGuiCond_Once); + ColorButton(desc_id, col, flags); + SameLine(); + TextEx("Color"); + EndDragDropSource(); + } + + // Tooltip + if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered && IsItemHovered(ImGuiHoveredFlags_ForTooltip)) + ColorTooltip(desc_id, &col.x, flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)); + + return pressed; +} + +// Initialize/override default color options +void ImGui::SetColorEditOptions(ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiColorEditFlags_DisplayMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DisplayMask_; + if ((flags & ImGuiColorEditFlags_DataTypeMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_DataTypeMask_; + if ((flags & ImGuiColorEditFlags_PickerMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_PickerMask_; + if ((flags & ImGuiColorEditFlags_InputMask_) == 0) + flags |= ImGuiColorEditFlags_DefaultOptions_ & ImGuiColorEditFlags_InputMask_; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DisplayMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_DataTypeMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_PickerMask_)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags_InputMask_)); // Check only 1 option is selected + g.ColorEditOptions = flags; +} + +// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + + if (!BeginTooltipEx(ImGuiTooltipFlags_OverridePrevious, ImGuiWindowFlags_None)) + return; + const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text; + if (text_end > text) + { + TextEx(text, text_end); + Separator(); + } + + ImVec2 sz(g.FontSize * 3 + g.Style.FramePadding.y * 2, g.FontSize * 3 + g.Style.FramePadding.y * 2); + ImVec4 cf(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + ColorButton("##preview", cf, (flags & (ImGuiColorEditFlags_InputMask_ | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)) | ImGuiColorEditFlags_NoTooltip, sz); + SameLine(); + if ((flags & ImGuiColorEditFlags_InputRGB) || !(flags & ImGuiColorEditFlags_InputMask_)) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("#%02X%02X%02X\nR: %d, G: %d, B: %d\n(%.3f, %.3f, %.3f)", cr, cg, cb, cr, cg, cb, col[0], col[1], col[2]); + else + Text("#%02X%02X%02X%02X\nR:%d, G:%d, B:%d, A:%d\n(%.3f, %.3f, %.3f, %.3f)", cr, cg, cb, ca, cr, cg, cb, ca, col[0], col[1], col[2], col[3]); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("H: %.3f, S: %.3f, V: %.3f", col[0], col[1], col[2]); + else + Text("H: %.3f, S: %.3f, V: %.3f, A: %.3f", col[0], col[1], col[2], col[3]); + } + EndTooltip(); +} + +void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) +{ + bool allow_opt_inputs = !(flags & ImGuiColorEditFlags_DisplayMask_); + bool allow_opt_datatype = !(flags & ImGuiColorEditFlags_DataTypeMask_); + if ((!allow_opt_inputs && !allow_opt_datatype) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + g.LockMarkEdited++; + ImGuiColorEditFlags opts = g.ColorEditOptions; + if (allow_opt_inputs) + { + if (RadioButton("RGB", (opts & ImGuiColorEditFlags_DisplayRGB) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayRGB; + if (RadioButton("HSV", (opts & ImGuiColorEditFlags_DisplayHSV) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHSV; + if (RadioButton("Hex", (opts & ImGuiColorEditFlags_DisplayHex) != 0)) opts = (opts & ~ImGuiColorEditFlags_DisplayMask_) | ImGuiColorEditFlags_DisplayHex; + } + if (allow_opt_datatype) + { + if (allow_opt_inputs) Separator(); + if (RadioButton("0..255", (opts & ImGuiColorEditFlags_Uint8) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Uint8; + if (RadioButton("0.00..1.00", (opts & ImGuiColorEditFlags_Float) != 0)) opts = (opts & ~ImGuiColorEditFlags_DataTypeMask_) | ImGuiColorEditFlags_Float; + } + + if (allow_opt_inputs || allow_opt_datatype) + Separator(); + if (Button("Copy as..", ImVec2(-1, 0))) + OpenPopup("Copy"); + if (BeginPopup("Copy")) + { + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + char buf[64]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%.3ff, %.3ff, %.3ff, %.3ff)", col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", cr, cg, cb); + if (Selectable(buf)) + SetClipboardText(buf); + if (!(flags & ImGuiColorEditFlags_NoAlpha)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + } + EndPopup(); + } + + g.ColorEditOptions = opts; + EndPopup(); + g.LockMarkEdited--; +} + +void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags) +{ + bool allow_opt_picker = !(flags & ImGuiColorEditFlags_PickerMask_); + bool allow_opt_alpha_bar = !(flags & ImGuiColorEditFlags_NoAlpha) && !(flags & ImGuiColorEditFlags_AlphaBar); + if ((!allow_opt_picker && !allow_opt_alpha_bar) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + g.LockMarkEdited++; + if (allow_opt_picker) + { + ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function + PushItemWidth(picker_size.x); + for (int picker_type = 0; picker_type < 2; picker_type++) + { + // Draw small/thumbnail version of each picker type (over an invisible button for selection) + if (picker_type > 0) Separator(); + PushID(picker_type); + ImGuiColorEditFlags picker_flags = ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoSidePreview | (flags & ImGuiColorEditFlags_NoAlpha); + if (picker_type == 0) picker_flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_type == 1) picker_flags |= ImGuiColorEditFlags_PickerHueWheel; + ImVec2 backup_pos = GetCursorScreenPos(); + if (Selectable("##selectable", false, 0, picker_size)) // By default, Selectable() is closing popup + g.ColorEditOptions = (g.ColorEditOptions & ~ImGuiColorEditFlags_PickerMask_) | (picker_flags & ImGuiColorEditFlags_PickerMask_); + SetCursorScreenPos(backup_pos); + ImVec4 previewing_ref_col; + memcpy(&previewing_ref_col, ref_col, sizeof(float) * ((picker_flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4)); + ColorPicker4("##previewing_picker", &previewing_ref_col.x, picker_flags); + PopID(); + } + PopItemWidth(); + } + if (allow_opt_alpha_bar) + { + if (allow_opt_picker) Separator(); + CheckboxFlags("Alpha Bar", &g.ColorEditOptions, ImGuiColorEditFlags_AlphaBar); + } + EndPopup(); + g.LockMarkEdited--; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +//------------------------------------------------------------------------- +// - TreeNode() +// - TreeNodeV() +// - TreeNodeEx() +// - TreeNodeExV() +// - TreeNodeBehavior() [Internal] +// - TreePush() +// - TreePop() +// - GetTreeNodeToLabelSpacing() +// - SetNextItemOpen() +// - CollapsingHeader() +//------------------------------------------------------------------------- + +bool ImGui::TreeNode(const char* str_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const char* label) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + return TreeNodeBehavior(window->GetID(label), 0, label, NULL); +} + +bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args) +{ + return TreeNodeExV(str_id, 0, fmt, args); +} + +bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args) +{ + return TreeNodeExV(ptr_id, 0, fmt, args); +} + +bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags, label, NULL); +} + +bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(str_id), flags, label, label_end); +} + +bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const char* label, *label_end; + ImFormatStringToTempBufferV(&label, &label_end, fmt, args); + return TreeNodeBehavior(window->GetID(ptr_id), flags, label, label_end); +} + +void ImGui::TreeNodeSetOpen(ImGuiID id, bool open) +{ + ImGuiContext& g = *GImGui; + ImGuiStorage* storage = g.CurrentWindow->DC.StateStorage; + storage->SetInt(id, open ? 1 : 0); +} + +bool ImGui::TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags) +{ + if (flags & ImGuiTreeNodeFlags_Leaf) + return true; + + // We only write to the tree storage if the user clicks (or explicitly use the SetNextItemOpen function) + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStorage* storage = window->DC.StateStorage; + + bool is_open; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasOpen) + { + if (g.NextItemData.OpenCond & ImGuiCond_Always) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + // We treat ImGuiCond_Once and ImGuiCond_FirstUseEver the same because tree node state are not saved persistently. + const int stored_value = storage->GetInt(id, -1); + if (stored_value == -1) + { + is_open = g.NextItemData.OpenVal; + TreeNodeSetOpen(id, is_open); + } + else + { + is_open = stored_value != 0; + } + } + } + else + { + is_open = storage->GetInt(id, (flags & ImGuiTreeNodeFlags_DefaultOpen) ? 1 : 0) != 0; + } + + // When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like sensible behavior). + // NB- If we are above max depth we still allow manually opened nodes to be logged. + if (g.LogEnabled && !(flags & ImGuiTreeNodeFlags_NoAutoOpenOnLog) && (window->DC.TreeDepth - g.LogDepthRef) < g.LogDepthToExpand) + is_open = true; + + return is_open; +} + +bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const bool display_frame = (flags & ImGuiTreeNodeFlags_Framed) != 0; + const ImVec2 padding = (display_frame || (flags & ImGuiTreeNodeFlags_FramePadding)) ? style.FramePadding : ImVec2(style.FramePadding.x, ImMin(window->DC.CurrLineTextBaseOffset, style.FramePadding.y)); + + if (!label_end) + label_end = FindRenderedTextEnd(label); + const ImVec2 label_size = CalcTextSize(label, label_end, false); + + // We vertically grow up to current line height up the typical widget height. + const float frame_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), label_size.y + padding.y * 2); + ImRect frame_bb; + frame_bb.Min.x = (flags & ImGuiTreeNodeFlags_SpanFullWidth) ? window->WorkRect.Min.x : window->DC.CursorPos.x; + frame_bb.Min.y = window->DC.CursorPos.y; + frame_bb.Max.x = window->WorkRect.Max.x; + frame_bb.Max.y = window->DC.CursorPos.y + frame_height; + if (display_frame) + { + // Framed header expand a little outside the default padding, to the edge of InnerClipRect + // (FIXME: May remove this at some point and make InnerClipRect align with WindowPadding.x instead of WindowPadding.x*0.5f) + frame_bb.Min.x -= IM_FLOOR(window->WindowPadding.x * 0.5f - 1.0f); + frame_bb.Max.x += IM_FLOOR(window->WindowPadding.x * 0.5f); + } + + const float text_offset_x = g.FontSize + (display_frame ? padding.x * 3 : padding.x * 2); // Collapser arrow width + Spacing + const float text_offset_y = ImMax(padding.y, window->DC.CurrLineTextBaseOffset); // Latch before ItemSize changes it + const float text_width = g.FontSize + (label_size.x > 0.0f ? label_size.x + padding.x * 2 : 0.0f); // Include collapser + ImVec2 text_pos(window->DC.CursorPos.x + text_offset_x, window->DC.CursorPos.y + text_offset_y); + ItemSize(ImVec2(text_width, frame_height), padding.y); + + // For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing + ImRect interact_bb = frame_bb; + if (!display_frame && (flags & (ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth)) == 0) + interact_bb.Max.x = frame_bb.Min.x + text_width + style.ItemSpacing.x * 2.0f; + + // Compute open and multi-select states before ItemAdd() as it clear NextItem data. + bool is_open = TreeNodeUpdateNextOpen(id, flags); + bool item_add = ItemAdd(interact_bb, id); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HasDisplayRect; + g.LastItemData.DisplayRect = frame_bb; + + // If a NavLeft request is happening and ImGuiTreeNodeFlags_NavLeftJumpsBackHere enabled: + // Store data for the current depth to allow returning to this node from any child item. + // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). + // It will become tempting to enable ImGuiTreeNodeFlags_NavLeftJumpsBackHere by default or move it to ImGuiStyle. + // Currently only supports 32 level deep and we are fine with (1 << Depth) overflowing into a zero, easy to increase. + if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + if (g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) + { + g.NavTreeNodeStack.resize(g.NavTreeNodeStack.Size + 1); + ImGuiNavTreeNodeData* nav_tree_node_data = &g.NavTreeNodeStack.back(); + nav_tree_node_data->ID = id; + nav_tree_node_data->InFlags = g.LastItemData.InFlags; + nav_tree_node_data->NavRect = g.LastItemData.NavRect; + window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); + } + + const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; + if (!item_add) + { + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; + } + + ImGuiButtonFlags button_flags = ImGuiTreeNodeFlags_None; + if ((flags & ImGuiTreeNodeFlags_AllowOverlap) || (g.LastItemData.InFlags & ImGuiItemFlags_AllowOverlap)) + button_flags |= ImGuiButtonFlags_AllowOverlap; + if (!is_leaf) + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + + // We allow clicking on the arrow section with keyboard modifiers held, in order to easily + // allow browsing a tree while preserving selection with code implementing multi-selection patterns. + // When clicking on the rest of the tree node we always disallow keyboard modifiers. + const float arrow_hit_x1 = (text_pos.x - text_offset_x) - style.TouchExtraPadding.x; + const float arrow_hit_x2 = (text_pos.x - text_offset_x) + (g.FontSize + padding.x * 2.0f) + style.TouchExtraPadding.x; + const bool is_mouse_x_over_arrow = (g.IO.MousePos.x >= arrow_hit_x1 && g.IO.MousePos.x < arrow_hit_x2); + if (window != g.HoveredWindow || !is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_NoKeyModifiers; + + // Open behaviors can be altered with the _OpenOnArrow and _OnOnDoubleClick flags. + // Some alteration have subtle effects (e.g. toggle on MouseUp vs MouseDown events) due to requirements for multi-selection and drag and drop support. + // - Single-click on label = Toggle on MouseUp (default, when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=1) + // - Double-click on label = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1) + // - Double-click on arrow = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1 and _OpenOnArrow=0) + // It is rather standard that arrow click react on Down rather than Up. + // We set ImGuiButtonFlags_PressedOnClickRelease on OpenOnDoubleClick because we want the item to be active on the initial MouseDown in order for drag and drop to work. + if (is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_PressedOnClick; + else if (flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) + button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; + else + button_flags |= ImGuiButtonFlags_PressedOnClickRelease; + + bool selected = (flags & ImGuiTreeNodeFlags_Selected) != 0; + const bool was_selected = selected; + + bool hovered, held; + bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags); + bool toggled = false; + if (!is_leaf) + { + if (pressed && g.DragDropHoldJustPressedId != id) + { + if ((flags & (ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) == 0 || (g.NavActivateId == id)) + toggled = true; + if (flags & ImGuiTreeNodeFlags_OpenOnArrow) + toggled |= is_mouse_x_over_arrow && !g.NavDisableMouseHover; // Lightweight equivalent of IsMouseHoveringRect() since ButtonBehavior() already did the job + if ((flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) && g.IO.MouseClickedCount[0] == 2) + toggled = true; + } + else if (pressed && g.DragDropHoldJustPressedId == id) + { + IM_ASSERT(button_flags & ImGuiButtonFlags_PressedOnDragDropHold); + if (!is_open) // When using Drag and Drop "hold to open" we keep the node highlighted after opening, but never close it again. + toggled = true; + } + + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Left && is_open) + { + toggled = true; + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavMoveRequestCancel(); + } + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority? + { + toggled = true; + NavClearPreferredPosForAxis(ImGuiAxis_X); + NavMoveRequestCancel(); + } + + if (toggled) + { + is_open = !is_open; + window->DC.StateStorage->SetInt(id, is_open); + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledOpen; + } + } + + // In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_TypeThin; + if (display_frame) + { + // Framed type + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding); + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y), text_col, is_open ? ((flags & ImGuiTreeNodeFlags_UpsideDownArrow) ? ImGuiDir_Up : ImGuiDir_Down) : ImGuiDir_Right, 1.0f); + else // Leaf without bullet, left-adjusted text + text_pos.x -= text_offset_x -padding.x; + if (flags & ImGuiTreeNodeFlags_ClipLabelForTrailingButton) + frame_bb.Max.x -= g.FontSize + style.FramePadding.x; + + if (g.LogEnabled) + LogSetNextTextDecoration("###", "###"); + RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size); + } + else + { + // Unframed typed for tree nodes + if (hovered || selected) + { + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false); + } + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.15f), text_col, is_open ? ((flags & ImGuiTreeNodeFlags_UpsideDownArrow) ? ImGuiDir_Up : ImGuiDir_Down) : ImGuiDir_Right, 0.70f); + if (g.LogEnabled) + LogSetNextTextDecoration(">", NULL); + RenderText(text_pos, label, label_end, false); + } + + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; +} + +void ImGui::TreePush(const char* str_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(str_id); +} + +void ImGui::TreePush(const void* ptr_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(ptr_id); +} + +void ImGui::TreePushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Indent(); + window->DC.TreeDepth++; + PushOverrideID(id); +} + +void ImGui::TreePop() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Unindent(); + + window->DC.TreeDepth--; + ImU32 tree_depth_mask = (1 << window->DC.TreeDepth); + + // Handle Left arrow to move to parent tree node (when ImGuiTreeNodeFlags_NavLeftJumpsBackHere is enabled) + if (window->DC.TreeJumpToParentOnPopMask & tree_depth_mask) // Only set during request + { + ImGuiNavTreeNodeData* nav_tree_node_data = &g.NavTreeNodeStack.back(); + IM_ASSERT(nav_tree_node_data->ID == window->IDStack.back()); + if (g.NavIdIsAlive && g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) + NavMoveRequestResolveWithPastTreeNode(&g.NavMoveResultLocal, nav_tree_node_data); + g.NavTreeNodeStack.pop_back(); + } + window->DC.TreeJumpToParentOnPopMask &= tree_depth_mask - 1; + + IM_ASSERT(window->IDStack.Size > 1); // There should always be 1 element in the IDStack (pushed during window creation). If this triggers you called TreePop/PopID too much. + PopID(); +} + +// Horizontal distance preceding label when using TreeNode() or Bullet() +float ImGui::GetTreeNodeToLabelSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + (g.Style.FramePadding.x * 2.0f); +} + +// Set next TreeNode/CollapsingHeader open state. +void ImGui::SetNextItemOpen(bool is_open, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + if (g.CurrentWindow->SkipItems) + return; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasOpen; + g.NextItemData.OpenVal = is_open; + g.NextItemData.OpenCond = cond ? cond : ImGuiCond_Always; +} + +// CollapsingHeader returns true when opened but do not indent nor push into the ID stack (because of the ImGuiTreeNodeFlags_NoTreePushOnOpen flag). +// This is basically the same as calling TreeNodeEx(label, ImGuiTreeNodeFlags_CollapsingHeader). You can remove the _NoTreePushOnOpen flag if you want behavior closer to normal TreeNode(). +bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags | ImGuiTreeNodeFlags_CollapsingHeader, label); +} + +// p_visible == NULL : regular collapsing header +// p_visible != NULL && *p_visible == true : show a small close button on the corner of the header, clicking the button will set *p_visible = false +// p_visible != NULL && *p_visible == false : do not show the header at all +// Do not mistake this with the Open state of the header itself, which you can adjust with SetNextItemOpen() or ImGuiTreeNodeFlags_DefaultOpen. +bool ImGui::CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + if (p_visible && !*p_visible) + return false; + + ImGuiID id = window->GetID(label); + flags |= ImGuiTreeNodeFlags_CollapsingHeader; + if (p_visible) + flags |= ImGuiTreeNodeFlags_AllowOverlap | ImGuiTreeNodeFlags_ClipLabelForTrailingButton; + bool is_open = TreeNodeBehavior(id, flags, label); + if (p_visible != NULL) + { + // Create a small overlapping close button + // FIXME: We can evolve this into user accessible helpers to add extra buttons on title bars, headers, etc. + // FIXME: CloseButton can overlap into text, need find a way to clip the text somehow. + ImGuiContext& g = *GImGui; + ImGuiLastItemData last_item_backup = g.LastItemData; + float button_size = g.FontSize; + float button_x = ImMax(g.LastItemData.Rect.Min.x, g.LastItemData.Rect.Max.x - g.Style.FramePadding.x - button_size); + float button_y = g.LastItemData.Rect.Min.y + g.Style.FramePadding.y; + ImGuiID close_button_id = GetIDWithSeed("#CLOSE", NULL, id); + if (CloseButton(close_button_id, ImVec2(button_x, button_y))) + *p_visible = false; + g.LastItemData = last_item_backup; + } + + return is_open; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Selectable +//------------------------------------------------------------------------- +// - Selectable() +//------------------------------------------------------------------------- + +// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image. +// But you need to make sure the ID is unique, e.g. enclose calls in PushID/PopID or use ##unique_id. +// With this scheme, ImGuiSelectableFlags_SpanAllColumns and ImGuiSelectableFlags_AllowOverlap are also frequently used flags. +// FIXME: Selectable() with (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. +bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + // Submit label or explicit size to ItemSize(), whereas ItemAdd() will submit a larger/spanning rectangle. + ImGuiID id = window->GetID(label); + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size(size_arg.x != 0.0f ? size_arg.x : label_size.x, size_arg.y != 0.0f ? size_arg.y : label_size.y); + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(size, 0.0f); + + // Fill horizontal space + // We don't support (size < 0.0f) in Selectable() because the ItemSpacing extension would make explicitly right-aligned sizes not visibly match other widgets. + const bool span_all_columns = (flags & ImGuiSelectableFlags_SpanAllColumns) != 0; + const float min_x = span_all_columns ? window->ParentWorkRect.Min.x : pos.x; + const float max_x = span_all_columns ? window->ParentWorkRect.Max.x : window->WorkRect.Max.x; + if (size_arg.x == 0.0f || (flags & ImGuiSelectableFlags_SpanAvailWidth)) + size.x = ImMax(label_size.x, max_x - min_x); + + // Text stays at the submission position, but bounding box may be extended on both sides + const ImVec2 text_min = pos; + const ImVec2 text_max(min_x + size.x, pos.y + size.y); + + // Selectables are meant to be tightly packed together with no click-gap, so we extend their box to cover spacing between selectable. + ImRect bb(min_x, pos.y, text_max.x, text_max.y); + if ((flags & ImGuiSelectableFlags_NoPadWithHalfSpacing) == 0) + { + const float spacing_x = span_all_columns ? 0.0f : style.ItemSpacing.x; + const float spacing_y = style.ItemSpacing.y; + const float spacing_L = IM_FLOOR(spacing_x * 0.50f); + const float spacing_U = IM_FLOOR(spacing_y * 0.50f); + bb.Min.x -= spacing_L; + bb.Min.y -= spacing_U; + bb.Max.x += (spacing_x - spacing_L); + bb.Max.y += (spacing_y - spacing_U); + } + //if (g.IO.KeyCtrl) { GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(0, 255, 0, 255)); } + + // Modify ClipRect for the ItemAdd(), faster than doing a PushColumnsBackground/PushTableBackground for every Selectable.. + const float backup_clip_rect_min_x = window->ClipRect.Min.x; + const float backup_clip_rect_max_x = window->ClipRect.Max.x; + if (span_all_columns) + { + window->ClipRect.Min.x = window->ParentWorkRect.Min.x; + window->ClipRect.Max.x = window->ParentWorkRect.Max.x; + } + + const bool disabled_item = (flags & ImGuiSelectableFlags_Disabled) != 0; + const bool item_add = ItemAdd(bb, id, NULL, disabled_item ? ImGuiItemFlags_Disabled : ImGuiItemFlags_None); + if (span_all_columns) + { + window->ClipRect.Min.x = backup_clip_rect_min_x; + window->ClipRect.Max.x = backup_clip_rect_max_x; + } + + if (!item_add) + return false; + + const bool disabled_global = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; + if (disabled_item && !disabled_global) // Only testing this as an optimization + BeginDisabled(); + + // FIXME: We can standardize the behavior of those two, we could also keep the fast path of override ClipRect + full push on render only, + // which would be advantageous since most selectable are not selected. + if (span_all_columns && window->DC.CurrentColumns) + PushColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePushBackgroundChannel(); + + // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries + ImGuiButtonFlags button_flags = 0; + if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } + if (flags & ImGuiSelectableFlags_NoSetKeyOwner) { button_flags |= ImGuiButtonFlags_NoSetKeyOwner; } + if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } + if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } + if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } + if ((flags & ImGuiSelectableFlags_AllowOverlap) || (g.LastItemData.InFlags & ImGuiItemFlags_AllowOverlap)) { button_flags |= ImGuiButtonFlags_AllowOverlap; } + + const bool was_selected = selected; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + + // Auto-select when moved into + // - This will be more fully fleshed in the range-select branch + // - This is not exposed as it won't nicely work with some user side handling of shift/control + // - We cannot do 'if (g.NavJustMovedToId != id) { selected = false; pressed = was_selected; }' for two reasons + // - (1) it would require focus scope to be set, need exposing PushFocusScope() or equivalent (e.g. BeginSelection() calling PushFocusScope()) + // - (2) usage will fail with clipped items + // The multi-select API aim to fix those issues, e.g. may be replaced with a BeginSelection() API. + if ((flags & ImGuiSelectableFlags_SelectOnNav) && g.NavJustMovedToId != 0 && g.NavJustMovedToFocusScopeId == g.CurrentFocusScopeId) + if (g.NavJustMovedToId == id) + selected = pressed = true; + + // Update NavId when clicking or when Hovering (this doesn't happen on most widgets), so navigation can be resumed with gamepad/keyboard + if (pressed || (hovered && (flags & ImGuiSelectableFlags_SetNavIdOnHover))) + { + if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) + { + SetNavID(id, window->DC.NavLayerCurrent, g.CurrentFocusScopeId, WindowRectAbsToRel(window, bb)); // (bb == NavRect) + g.NavDisableHighlight = true; + } + } + if (pressed) + MarkItemEdited(id); + + // In this branch, Selectable() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + if (hovered || selected) + { + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + } + if (g.NavId == id) + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + + if (span_all_columns && window->DC.CurrentColumns) + PopColumnsBackground(); + else if (span_all_columns && g.CurrentTable) + TablePopBackgroundChannel(); + + RenderTextClipped(text_min, text_max, label, NULL, &label_size, style.SelectableTextAlign, &bb); + + // Automatically close popups + if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(g.LastItemData.InFlags & ImGuiItemFlags_SelectableDontClosePopup)) + CloseCurrentPopup(); + + if (disabled_item && !disabled_global) + EndDisabled(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + return pressed; //-V1020 +} + +bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + if (Selectable(label, *p_selected, flags, size_arg)) + { + *p_selected = !*p_selected; + return true; + } + return false; +} + + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Typing-Select support +//------------------------------------------------------------------------- + +// [Experimental] Currently not exposed in public API. +// Consume character inputs and return search request, if any. +// This would typically only be called on the focused window or location you want to grab inputs for, e.g. +// if (ImGui::IsWindowFocused(...)) +// if (ImGuiTypingSelectRequest* req = ImGui::GetTypingSelectRequest()) +// focus_idx = ImGui::TypingSelectFindMatch(req, my_items.size(), [](void*, int n) { return my_items[n]->Name; }, &my_items, -1); +// However the code is written in a way where calling it from multiple locations is safe (e.g. to obtain buffer). +ImGuiTypingSelectRequest* ImGui::GetTypingSelectRequest(ImGuiTypingSelectFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiTypingSelectState* data = &g.TypingSelectState; + ImGuiTypingSelectRequest* out_request = &data->Request; + + // Clear buffer + const float TYPING_SELECT_RESET_TIMER = 1.80f; // FIXME: Potentially move to IO config. + const int TYPING_SELECT_SINGLE_CHAR_COUNT_FOR_LOCK = 4; // Lock single char matching when repeating same char 4 times + if (data->SearchBuffer[0] != 0) + { + bool clear_buffer = false; + clear_buffer |= (g.NavFocusScopeId != data->FocusScope); + clear_buffer |= (data->LastRequestTime + TYPING_SELECT_RESET_TIMER < g.Time); + clear_buffer |= g.NavAnyRequest; + clear_buffer |= g.ActiveId != 0 && g.NavActivateId == 0; // Allow temporary SPACE activation to not interfere + clear_buffer |= IsKeyPressed(ImGuiKey_Escape) || IsKeyPressed(ImGuiKey_Enter); + clear_buffer |= IsKeyPressed(ImGuiKey_Backspace) && (flags & ImGuiTypingSelectFlags_AllowBackspace) == 0; + //if (clear_buffer) { IMGUI_DEBUG_LOG("GetTypingSelectRequest(): Clear SearchBuffer.\n"); } + if (clear_buffer) + data->Clear(); + } + + // Append to buffer + const int buffer_max_len = IM_ARRAYSIZE(data->SearchBuffer) - 1; + int buffer_len = (int)strlen(data->SearchBuffer); + bool select_request = false; + for (ImWchar w : g.IO.InputQueueCharacters) + { + const int w_len = ImTextCountUtf8BytesFromStr(&w, &w + 1); + if (w < 32 || (buffer_len == 0 && ImCharIsBlankW(w)) || (buffer_len + w_len > buffer_max_len)) // Ignore leading blanks + continue; + char w_buf[5]; + ImTextCharToUtf8(w_buf, (unsigned int)w); + if (data->SingleCharModeLock && w_len == out_request->SingleCharSize && memcmp(w_buf, data->SearchBuffer, w_len) == 0) + { + select_request = true; // Same character: don't need to append to buffer. + continue; + } + if (data->SingleCharModeLock) + { + data->Clear(); // Different character: clear + buffer_len = 0; + } + memcpy(data->SearchBuffer + buffer_len, w_buf, w_len + 1); // Append + buffer_len += w_len; + select_request = true; + } + g.IO.InputQueueCharacters.resize(0); + + // Handle backspace + if ((flags & ImGuiTypingSelectFlags_AllowBackspace) && IsKeyPressed(ImGuiKey_Backspace, 0, ImGuiInputFlags_Repeat)) + { + char* p = (char*)(void*)ImTextFindPreviousUtf8Codepoint(data->SearchBuffer, data->SearchBuffer + buffer_len); + *p = 0; + buffer_len = (int)(p - data->SearchBuffer); + } + + // Return request if any + if (buffer_len == 0) + return NULL; + if (select_request) + { + data->FocusScope = g.NavFocusScopeId; + data->LastRequestFrame = g.FrameCount; + data->LastRequestTime = (float)g.Time; + } + out_request->Flags = flags; + out_request->SearchBufferLen = buffer_len; + out_request->SearchBuffer = data->SearchBuffer; + out_request->SelectRequest = (data->LastRequestFrame == g.FrameCount); + out_request->SingleCharMode = false; + out_request->SingleCharSize = 0; + + // Calculate if buffer contains the same character repeated. + // - This can be used to implement a special search mode on first character. + // - Performed on UTF-8 codepoint for correctness. + // - SingleCharMode is always set for first input character, because it usually leads to a "next". + if (flags & ImGuiTypingSelectFlags_AllowSingleCharMode) + { + const char* buf_begin = out_request->SearchBuffer; + const char* buf_end = out_request->SearchBuffer + out_request->SearchBufferLen; + const int c0_len = ImTextCountUtf8BytesFromChar(buf_begin, buf_end); + const char* p = buf_begin + c0_len; + for (; p < buf_end; p += c0_len) + if (memcmp(buf_begin, p, (size_t)c0_len) != 0) + break; + const int single_char_count = (p == buf_end) ? (out_request->SearchBufferLen / c0_len) : 0; + out_request->SingleCharMode = (single_char_count > 0 || data->SingleCharModeLock); + out_request->SingleCharSize = (ImS8)c0_len; + data->SingleCharModeLock |= (single_char_count >= TYPING_SELECT_SINGLE_CHAR_COUNT_FOR_LOCK); // From now on we stop search matching to lock to single char mode. + } + + return out_request; +} + +static int ImStrimatchlen(const char* s1, const char* s1_end, const char* s2) +{ + int match_len = 0; + while (s1 < s1_end && ImToUpper(*s1++) == ImToUpper(*s2++)) + match_len++; + return match_len; +} + +// Default handler for finding a result for typing-select. You may implement your own. +// You might want to display a tooltip to visualize the current request SearchBuffer +// When SingleCharMode is set: +// - it is better to NOT display a tooltip of other on-screen display indicator. +// - the index of the currently focused item is required. +// if your SetNextItemSelectionData() values are indices, you can obtain it from ImGuiMultiSelectIO::NavIdItem, otherwise from g.NavLastValidSelectionUserData. +int ImGui::TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx) +{ + if (req == NULL || req->SelectRequest == false) // Support NULL parameter so both calls can be done from same spot. + return -1; + int idx = -1; + if (req->SingleCharMode && (req->Flags & ImGuiTypingSelectFlags_AllowSingleCharMode)) + idx = TypingSelectFindNextSingleCharMatch(req, items_count, get_item_name_func, user_data, nav_item_idx); + else + idx = TypingSelectFindBestLeadingMatch(req, items_count, get_item_name_func, user_data); + if (idx != -1) + NavRestoreHighlightAfterMove(); + return idx; +} + +// Special handling when a single character is repeated: perform search on a single letter and goes to next. +int ImGui::TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx) +{ + // FIXME: Assume selection user data is index. Would be extremely practical. + //if (nav_item_idx == -1) + // nav_item_idx = (int)g.NavLastValidSelectionUserData; + + int first_match_idx = -1; + bool return_next_match = false; + for (int idx = 0; idx < items_count; idx++) + { + const char* item_name = get_item_name_func(user_data, idx); + if (ImStrimatchlen(req->SearchBuffer, req->SearchBuffer + req->SingleCharSize, item_name) < req->SingleCharSize) + continue; + if (return_next_match) // Return next matching item after current item. + return idx; + if (first_match_idx == -1 && nav_item_idx == -1) // Return first match immediately if we don't have a nav_item_idx value. + return idx; + if (first_match_idx == -1) // Record first match for wrapping. + first_match_idx = idx; + if (nav_item_idx == idx) // Record that we encountering nav_item so we can return next match. + return_next_match = true; + } + return first_match_idx; // First result +} + +int ImGui::TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data) +{ + int longest_match_idx = -1; + int longest_match_len = 0; + for (int idx = 0; idx < items_count; idx++) + { + const char* item_name = get_item_name_func(user_data, idx); + const int match_len = ImStrimatchlen(req->SearchBuffer, req->SearchBuffer + req->SearchBufferLen, item_name); + if (match_len <= longest_match_len) + continue; + longest_match_idx = idx; + longest_match_len = match_len; + if (match_len == req->SearchBufferLen) + break; + } + return longest_match_idx; +} + +void ImGui::DebugNodeTypingSelectState(ImGuiTypingSelectState* data) +{ +#ifndef IMGUI_DISABLE_DEBUG_TOOLS + Text("SearchBuffer = \"%s\"", data->SearchBuffer); + Text("SingleCharMode = %d, Size = %d, Lock = %d", data->Request.SingleCharMode, data->Request.SingleCharSize, data->SingleCharModeLock); + Text("LastRequest = time: %.2f, frame: %d", data->LastRequestTime, data->LastRequestFrame); +#else + IM_UNUSED(data); +#endif +} + + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Multi-Select support +//------------------------------------------------------------------------- + +void ImGui::SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data) +{ + // Note that flags will be cleared by ItemAdd(), so it's only useful for Navigation code! + // This designed so widgets can also cheaply set this before calling ItemAdd(), so we are not tied to MultiSelect api. + ImGuiContext& g = *GImGui; + g.NextItemData.ItemFlags |= ImGuiItemFlags_HasSelectionUserData; + g.NextItemData.SelectionUserData = selection_user_data; +} + + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ListBox +//------------------------------------------------------------------------- +// - BeginListBox() +// - EndListBox() +// - ListBox() +//------------------------------------------------------------------------- + +// Tip: To have a list filling the entire window width, use size.x = -FLT_MIN and pass an non-visible label e.g. "##empty" +// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.25 * item_height). +bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Size default to hold ~7.25 items. + // Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar. + ImVec2 size = ImFloor(CalcItemSize(size_arg, CalcItemWidth(), GetTextLineHeightWithSpacing() * 7.25f + style.FramePadding.y * 2.0f)); + ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y)); + ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + g.NextItemData.ClearFlags(); + + if (!IsRectVisible(bb.Min, bb.Max)) + { + ItemSize(bb.GetSize(), style.FramePadding.y); + ItemAdd(bb, 0, &frame_bb); + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + // FIXME-OPT: We could omit the BeginGroup() if label_size.x but would need to omit the EndGroup() as well. + BeginGroup(); + if (label_size.x > 0.0f) + { + ImVec2 label_pos = ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y); + RenderText(label_pos, label); + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, label_pos + label_size); + } + + BeginChildFrame(id, frame_bb.GetSize()); + return true; +} + +void ImGui::EndListBox() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?"); + IM_UNUSED(window); + + EndChildFrame(); + EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label +} + +bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items) +{ + const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items); + return value_changed; +} + +// This is merely a helper around BeginListBox(), EndListBox(). +// Considering using those directly to submit custom data or store selection differently. +bool ImGui::ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Calculate size from "height_in_items" + if (height_in_items < 0) + height_in_items = ImMin(items_count, 7); + float height_in_items_f = height_in_items + 0.25f; + ImVec2 size(0.0f, ImFloor(GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f)); + + if (!BeginListBox(label, size)) + return false; + + // Assume all items have even height (= 1 line of text). If you need items of different height, + // you can create a custom version of ListBox() in your code without using the clipper. + bool value_changed = false; + ImGuiListClipper clipper; + clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + { + const char* item_text = getter(user_data, i); + if (item_text == NULL) + item_text = "*Unknown item*"; + + PushID(i); + const bool item_selected = (i == *current_item); + if (Selectable(item_text, item_selected)) + { + *current_item = i; + value_changed = true; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + EndListBox(); + + if (value_changed) + MarkItemEdited(g.LastItemData.ID); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: PlotLines, PlotHistogram +//------------------------------------------------------------------------- +// - PlotEx() [Internal] +// - PlotLines() +// - PlotHistogram() +//------------------------------------------------------------------------- +// Plot/Graph widgets are not very good. +// Consider writing your own, or using a third-party one, see: +// - ImPlot https://github.com/epezent/implot +// - others https://github.com/ocornut/imgui/wiki/Useful-Extensions +//------------------------------------------------------------------------- + +int ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2& size_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return -1; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), label_size.y + style.FramePadding.y * 2.0f); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0, &frame_bb)) + return -1; + const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); + + // Determine scale from values if not specified + if (scale_min == FLT_MAX || scale_max == FLT_MAX) + { + float v_min = FLT_MAX; + float v_max = -FLT_MAX; + for (int i = 0; i < values_count; i++) + { + const float v = values_getter(data, i); + if (v != v) // Ignore NaN values + continue; + v_min = ImMin(v_min, v); + v_max = ImMax(v_max, v); + } + if (scale_min == FLT_MAX) + scale_min = v_min; + if (scale_max == FLT_MAX) + scale_max = v_max; + } + + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + + const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1; + int idx_hovered = -1; + if (values_count >= values_count_min) + { + int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + + // Tooltip on hover + if (hovered && inner_bb.Contains(g.IO.MousePos)) + { + const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f); + const int v_idx = (int)(t * item_count); + IM_ASSERT(v_idx >= 0 && v_idx < values_count); + + const float v0 = values_getter(data, (v_idx + values_offset) % values_count); + const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count); + if (plot_type == ImGuiPlotType_Lines) + SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1); + else if (plot_type == ImGuiPlotType_Histogram) + SetTooltip("%d: %8.4g", v_idx, v0); + idx_hovered = v_idx; + } + + const float t_step = 1.0f / (float)res_w; + const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); + + float v0 = values_getter(data, (0 + values_offset) % values_count); + float t0 = 0.0f; + ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); // Point in the normalized space of our target rectangle + float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (1 + scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands + + const ImU32 col_base = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram); + const ImU32 col_hovered = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered); + + for (int n = 0; n < res_w; n++) + { + const float t1 = t0 + t_step; + const int v1_idx = (int)(t0 * item_count + 0.5f); + IM_ASSERT(v1_idx >= 0 && v1_idx < values_count); + const float v1 = values_getter(data, (v1_idx + values_offset + 1) % values_count); + const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); + + // NB: Draw calls are merged together by the DrawList system. Still, we should render our batch are lower level to save a bit of CPU. + ImVec2 pos0 = ImLerp(inner_bb.Min, inner_bb.Max, tp0); + ImVec2 pos1 = ImLerp(inner_bb.Min, inner_bb.Max, (plot_type == ImGuiPlotType_Lines) ? tp1 : ImVec2(tp1.x, histogram_zero_line_t)); + if (plot_type == ImGuiPlotType_Lines) + { + window->DrawList->AddLine(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + else if (plot_type == ImGuiPlotType_Histogram) + { + if (pos1.x >= pos0.x + 2.0f) + pos1.x -= 1.0f; + window->DrawList->AddRectFilled(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + + t0 = t1; + tp0 = tp1; + } + } + + // Text overlay + if (overlay_text) + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImVec2(0.5f, 0.0f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label); + + // Return hovered index or -1 if none are hovered. + // This is currently not exposed in the public API because we need a larger redesign of the whole thing, but in the short-term we are making it available in PlotEx(). + return idx_hovered; +} + +struct ImGuiPlotArrayGetterData +{ + const float* Values; + int Stride; + + ImGuiPlotArrayGetterData(const float* values, int stride) { Values = values; Stride = stride; } +}; + +static float Plot_ArrayGetter(void* data, int idx) +{ + ImGuiPlotArrayGetterData* plot_data = (ImGuiPlotArrayGetterData*)data; + const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride); + return v; +} + +void ImGui::PlotLines(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Lines, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotLines(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) +{ + PlotEx(ImGuiPlotType_Lines, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Histogram, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) +{ + PlotEx(ImGuiPlotType_Histogram, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Value helpers +// Those is not very useful, legacy API. +//------------------------------------------------------------------------- +// - Value() +//------------------------------------------------------------------------- + +void ImGui::Value(const char* prefix, bool b) +{ + Text("%s: %s", prefix, (b ? "true" : "false")); +} + +void ImGui::Value(const char* prefix, int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, unsigned int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, float v, const char* float_format) +{ + if (float_format) + { + char fmt[64]; + ImFormatString(fmt, IM_ARRAYSIZE(fmt), "%%s: %s", float_format); + Text(fmt, prefix, v); + } + else + { + Text("%s: %.3f", prefix, v); + } +} + +//------------------------------------------------------------------------- +// [SECTION] MenuItem, BeginMenu, EndMenu, etc. +//------------------------------------------------------------------------- +// - ImGuiMenuColumns [Internal] +// - BeginMenuBar() +// - EndMenuBar() +// - BeginMainMenuBar() +// - EndMainMenuBar() +// - BeginMenu() +// - EndMenu() +// - MenuItemEx() [Internal] +// - MenuItem() +//------------------------------------------------------------------------- + +// Helpers for internal use +void ImGuiMenuColumns::Update(float spacing, bool window_reappearing) +{ + if (window_reappearing) + memset(Widths, 0, sizeof(Widths)); + Spacing = (ImU16)spacing; + CalcNextTotalWidth(true); + memset(Widths, 0, sizeof(Widths)); + TotalWidth = NextTotalWidth; + NextTotalWidth = 0; +} + +void ImGuiMenuColumns::CalcNextTotalWidth(bool update_offsets) +{ + ImU16 offset = 0; + bool want_spacing = false; + for (int i = 0; i < IM_ARRAYSIZE(Widths); i++) + { + ImU16 width = Widths[i]; + if (want_spacing && width > 0) + offset += Spacing; + want_spacing |= (width > 0); + if (update_offsets) + { + if (i == 1) { OffsetLabel = offset; } + if (i == 2) { OffsetShortcut = offset; } + if (i == 3) { OffsetMark = offset; } + } + offset += width; + } + NextTotalWidth = offset; +} + +float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark) +{ + Widths[0] = ImMax(Widths[0], (ImU16)w_icon); + Widths[1] = ImMax(Widths[1], (ImU16)w_label); + Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut); + Widths[3] = ImMax(Widths[3], (ImU16)w_mark); + CalcNextTotalWidth(false); + return (float)ImMax(TotalWidth, NextTotalWidth); +} + +// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. +// Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. +// Ideally we also want this to be responsible for claiming space out of the main window scrolling rectangle, in which case ImGuiWindowFlags_MenuBar will become unnecessary. +// Then later the same system could be used for multiple menu-bars, scrollbars, side-bars. +bool ImGui::BeginMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + if (!(window->Flags & ImGuiWindowFlags_MenuBar)) + return false; + + IM_ASSERT(!window->DC.MenuBarAppending); + BeginGroup(); // Backup position on layer 0 // FIXME: Misleading to use a group for that backup/restore + PushID("##menubar"); + + // We don't clip with current window clipping rectangle as it is already set to the area below. However we clip with window full rect. + // We remove 1 worth of rounding to Max.x to that text in long menus and small windows don't tend to display over the lower-right rounded area, which looks particularly glitchy. + ImRect bar_rect = window->MenuBarRect(); + ImRect clip_rect(IM_ROUND(bar_rect.Min.x + window->WindowBorderSize), IM_ROUND(bar_rect.Min.y + window->WindowBorderSize), IM_ROUND(ImMax(bar_rect.Min.x, bar_rect.Max.x - ImMax(window->WindowRounding, window->WindowBorderSize))), IM_ROUND(bar_rect.Max.y)); + clip_rect.ClipWith(window->OuterRectClipped); + PushClipRect(clip_rect.Min, clip_rect.Max, false); + + // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analogous here, maybe a BeginGroupEx() with flags). + window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + window->DC.MenuBarAppending = true; + AlignTextToFramePadding(); + return true; +} + +void ImGui::EndMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Nav: When a move request within one of our child menu failed, capture the request to navigate among our siblings. + if (NavMoveRequestButNoResultYet() && (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) && (g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + { + // Try to find out if the request is for one of our child menu + ImGuiWindow* nav_earliest_child = g.NavWindow; + while (nav_earliest_child->ParentWindow && (nav_earliest_child->ParentWindow->Flags & ImGuiWindowFlags_ChildMenu)) + nav_earliest_child = nav_earliest_child->ParentWindow; + if (nav_earliest_child->ParentWindow == window && nav_earliest_child->DC.ParentLayoutType == ImGuiLayoutType_Horizontal && (g.NavMoveFlags & ImGuiNavMoveFlags_Forwarded) == 0) + { + // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. + // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth bothering) + const ImGuiNavLayer layer = ImGuiNavLayer_Menu; + IM_ASSERT(window->DC.NavLayersActiveMaskNext & (1 << layer)); // Sanity check (FIXME: Seems unnecessary) + FocusWindow(window); + SetNavID(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. + g.NavDisableMouseHover = g.NavMousePosDirty = true; + NavMoveRequestForward(g.NavMoveDir, g.NavMoveClipDir, g.NavMoveFlags, g.NavMoveScrollFlags); // Repeat + } + } + + IM_MSVC_WARNING_SUPPRESS(6011); // Static Analysis false positive "warning C6011: Dereferencing NULL pointer 'window'" + IM_ASSERT(window->Flags & ImGuiWindowFlags_MenuBar); + IM_ASSERT(window->DC.MenuBarAppending); + PopClipRect(); + PopID(); + window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->Pos.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos. + + // FIXME: Extremely confusing, cleanup by (a) working on WorkRect stack system (b) not using a Group confusingly here. + ImGuiGroupData& group_data = g.GroupStack.back(); + group_data.EmitItem = false; + ImVec2 restore_cursor_max_pos = group_data.BackupCursorMaxPos; + window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, window->DC.CursorMaxPos.x - window->Scroll.x); // Convert ideal extents for scrolling layer equivalent. + EndGroup(); // Restore position on layer 0 // FIXME: Misleading to use a group for that backup/restore + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.IsSameLine = false; + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.MenuBarAppending = false; + window->DC.CursorMaxPos = restore_cursor_max_pos; +} + +// Important: calling order matters! +// FIXME: Somehow overlapping with docking tech. +// FIXME: The "rect-cut" aspect of this could be formalized into a lower-level helper (rect-cut: https://halt.software/dead-simple-layouts) +bool ImGui::BeginViewportSideBar(const char* name, ImGuiViewport* viewport_p, ImGuiDir dir, float axis_size, ImGuiWindowFlags window_flags) +{ + IM_ASSERT(dir != ImGuiDir_None); + + ImGuiWindow* bar_window = FindWindowByName(name); + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)(viewport_p ? viewport_p : GetMainViewport()); + if (bar_window == NULL || bar_window->BeginCount == 0) + { + // Calculate and set window size/position + ImRect avail_rect = viewport->GetBuildWorkRect(); + ImGuiAxis axis = (dir == ImGuiDir_Up || dir == ImGuiDir_Down) ? ImGuiAxis_Y : ImGuiAxis_X; + ImVec2 pos = avail_rect.Min; + if (dir == ImGuiDir_Right || dir == ImGuiDir_Down) + pos[axis] = avail_rect.Max[axis] - axis_size; + ImVec2 size = avail_rect.GetSize(); + size[axis] = axis_size; + SetNextWindowPos(pos); + SetNextWindowSize(size); + + // Report our size into work area (for next frame) using actual window size + if (dir == ImGuiDir_Up || dir == ImGuiDir_Left) + viewport->BuildWorkOffsetMin[axis] += axis_size; + else if (dir == ImGuiDir_Down || dir == ImGuiDir_Right) + viewport->BuildWorkOffsetMax[axis] -= axis_size; + } + + window_flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoDocking; + SetNextWindowViewport(viewport->ID); // Enforce viewport so we don't create our own viewport when ImGuiConfigFlags_ViewportsNoMerge is set. + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(0, 0)); // Lift normal size constraint + bool is_open = Begin(name, NULL, window_flags); + PopStyleVar(2); + + return is_open; +} + +bool ImGui::BeginMainMenuBar() +{ + ImGuiContext& g = *GImGui; + ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); + + // Notify of viewport change so GetFrameHeight() can be accurate in case of DPI change + SetCurrentViewport(NULL, viewport); + + // For the main menu bar, which cannot be moved, we honor g.Style.DisplaySafeAreaPadding to ensure text can be visible on a TV set. + // FIXME: This could be generalized as an opt-in way to clamp window->DC.CursorStartPos to avoid SafeArea? + // FIXME: Consider removing support for safe area down the line... it's messy. Nowadays consoles have support for TV calibration in OS settings. + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_MenuBar; + float height = GetFrameHeight(); + bool is_open = BeginViewportSideBar("##MainMenuBar", viewport, ImGuiDir_Up, height, window_flags); + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(0.0f, 0.0f); + + if (is_open) + BeginMenuBar(); + else + End(); + return is_open; +} + +void ImGui::EndMainMenuBar() +{ + EndMenuBar(); + + // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window + // FIXME: With this strategy we won't be able to restore a NULL focus. + ImGuiContext& g = *GImGui; + if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest) + FocusTopMostWindowUnderOne(g.NavWindow, NULL, NULL, ImGuiFocusRequestFlags_UnlessBelowModal | ImGuiFocusRequestFlags_RestoreFocusedChild); + + End(); +} + +static bool IsRootOfOpenMenuSet() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if ((g.OpenPopupStack.Size <= g.BeginPopupStack.Size) || (window->Flags & ImGuiWindowFlags_ChildMenu)) + return false; + + // Initially we used 'upper_popup->OpenParentId == window->IDStack.back()' to differentiate multiple menu sets from each others + // (e.g. inside menu bar vs loose menu items) based on parent ID. + // This would however prevent the use of e.g. PushID() user code submitting menus. + // Previously this worked between popup and a first child menu because the first child menu always had the _ChildWindow flag, + // making hovering on parent popup possible while first child menu was focused - but this was generally a bug with other side effects. + // Instead we don't treat Popup specifically (in order to consistently support menu features in them), maybe the first child menu of a Popup + // doesn't have the _ChildWindow flag, and we rely on this IsRootOfOpenMenuSet() check to allow hovering between root window/popup and first child menu. + // In the end, lack of ID check made it so we could no longer differentiate between separate menu sets. To compensate for that, we at least check parent window nav layer. + // This fixes the most common case of menu opening on hover when moving between window content and menu bar. Multiple different menu sets in same nav layer would still + // open on hover, but that should be a lesser problem, because if such menus are close in proximity in window content then it won't feel weird and if they are far apart + // it likely won't be a problem anyone runs into. + const ImGuiPopupData* upper_popup = &g.OpenPopupStack[g.BeginPopupStack.Size]; + if (window->DC.NavLayerCurrent != upper_popup->ParentNavLayer) + return false; + return upper_popup->Window && (upper_popup->Window->Flags & ImGuiWindowFlags_ChildMenu) && ImGui::IsWindowChildOf(upper_popup->Window, window, true, false); +} + +bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); + + // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) + // The first menu in a hierarchy isn't so hovering doesn't get across (otherwise e.g. resizing borders with ImGuiButtonFlags_FlattenChildren would react), but top-most BeginMenu() will bypass that limitation. + ImGuiWindowFlags window_flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; + if (window->Flags & ImGuiWindowFlags_ChildMenu) + window_flags |= ImGuiWindowFlags_ChildWindow; + + // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). + // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. + // If somehow this is ever becoming a problem we can switch to use e.g. ImGuiStorage mapping key to last frame used. + if (g.MenusIdSubmittedThisFrame.contains(id)) + { + if (menu_is_open) + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + else + g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values + return menu_is_open; + } + + // Tag menu as used. Next time BeginMenu() with same ID is called it will append to existing menu + g.MenusIdSubmittedThisFrame.push_back(id); + + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent without always being a Child window) + // This is only done for items for the menu set and not the full parent window. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, + // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). + // e.g. Menus tend to overlap each other horizontally to amplify relative Z-ordering. + ImVec2 popup_pos, pos = window->DC.CursorPos; + PushID(label); + if (!enabled) + BeginDisabled(); + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + bool pressed; + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Menu inside an horizontal menu bar + // Selectable extend their highlight by half ItemSpacing in each direction. + // For ChildMenu, the popup position will be overwritten by the call to FindBestWindowPosForPopup() in Begin() + popup_pos = ImVec2(pos.x - 1.0f - IM_FLOOR(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight()); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + float w = label_size.x; + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags, ImVec2(w, label_size.y)); + RenderText(text_pos, label); + PopStyleVar(); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu inside a regular/vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + popup_pos = ImVec2(pos.x, pos.y - style.WindowPadding.y); + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float checkmark_w = IM_FLOOR(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, 0.0f, checkmark_w); // Feedback to next frame + float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + pressed = Selectable("", menu_is_open, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, label_size.y)); + RenderText(text_pos, label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + RenderArrow(window->DrawList, pos + ImVec2(offsets->OffsetMark + extra_w + g.FontSize * 0.30f, 0.0f), GetColorU32(ImGuiCol_Text), ImGuiDir_Right); + } + if (!enabled) + EndDisabled(); + + const bool hovered = (g.HoveredId == id) && enabled && !g.NavDisableMouseHover; + if (menuset_is_open) + PopItemFlag(); + + bool want_open = false; + bool want_close = false; + if (window->DC.LayoutType == ImGuiLayoutType_Vertical) // (window->Flags & (ImGuiWindowFlags_Popup|ImGuiWindowFlags_ChildMenu)) + { + // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu + // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. + bool moving_toward_child_menu = false; + ImGuiPopupData* child_popup = (g.BeginPopupStack.Size < g.OpenPopupStack.Size) ? &g.OpenPopupStack[g.BeginPopupStack.Size] : NULL; // Popup candidate (testing below) + ImGuiWindow* child_menu_window = (child_popup && child_popup->Window && child_popup->Window->ParentWindow == window) ? child_popup->Window : NULL; + if (g.HoveredWindow == window && child_menu_window != NULL) + { + float ref_unit = g.FontSize; // FIXME-DPI + float child_dir = (window->Pos.x < child_menu_window->Pos.x) ? 1.0f : -1.0f; + ImRect next_window_rect = child_menu_window->Rect(); + ImVec2 ta = (g.IO.MousePos - g.IO.MouseDelta); + ImVec2 tb = (child_dir > 0.0f) ? next_window_rect.GetTL() : next_window_rect.GetTR(); + ImVec2 tc = (child_dir > 0.0f) ? next_window_rect.GetBL() : next_window_rect.GetBR(); + float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, ref_unit * 0.5f, ref_unit * 2.5f); // add a bit of extra slack. + ta.x += child_dir * -0.5f; + tb.x += child_dir * ref_unit; + tc.x += child_dir * ref_unit; + tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -ref_unit * 8.0f); // triangle has maximum height to limit the slope and the bias toward large sub-menus + tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +ref_unit * 8.0f); + moving_toward_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); + //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_toward_child_menu ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] + } + + // The 'HovereWindow == window' check creates an inconsistency (e.g. moving away from menu slowly tends to hit same window, whereas moving away fast does not) + // But we also need to not close the top-menu menu when moving over void. Perhaps we should extend the triangle check to a larger polygon. + // (Remember to test this on BeginPopup("A")->BeginMenu("B") sequence which behaves slightly differently as B isn't a Child of A and hovering isn't shared.) + if (menu_is_open && !hovered && g.HoveredWindow == window && !moving_toward_child_menu && !g.NavDisableMouseHover) + want_close = true; + + // Open + if (!menu_is_open && pressed) // Click/activate to open + want_open = true; + else if (!menu_is_open && hovered && !moving_toward_child_menu) // Hover to open + want_open = true; + if (g.NavId == id && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + else + { + // Menu bar + if (menu_is_open && pressed && menuset_is_open) // Click an open menu again to close it + { + want_close = true; + want_open = menu_is_open = false; + } + else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others + { + want_open = true; + } + else if (g.NavId == id && g.NavMoveDir == ImGuiDir_Down) // Nav-Down to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + + if (!enabled) // explicitly close if an open menu becomes disabled, facilitate users code a lot in pattern such as 'if (BeginMenu("options", has_object)) { ..use object.. }' + want_close = true; + if (want_close && IsPopupOpen(id, ImGuiPopupFlags_None)) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); + PopID(); + + if (want_open && !menu_is_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) + { + // Don't reopen/recycle same menu level in the same frame, first close the other menu and yield for a frame. + OpenPopup(label); + } + else if (want_open) + { + menu_is_open = true; + OpenPopup(label); + } + + if (menu_is_open) + { + ImGuiLastItemData last_item_in_parent = g.LastItemData; + SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: misleading: the value will serve as reference for FindBestWindowPosForPopup(), not actual pos. + PushStyleVar(ImGuiStyleVar_ChildRounding, style.PopupRounding); // First level will use _PopupRounding, subsequent will use _ChildRounding + menu_is_open = BeginPopupEx(id, window_flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + PopStyleVar(); + if (menu_is_open) + { + // Restore LastItemData so IsItemXXXX functions can work after BeginMenu()/EndMenu() + // (This fixes using IsItemClicked() and IsItemHovered(), but IsItemHovered() also relies on its support for ImGuiItemFlags_NoWindowHoverableCheck) + g.LastItemData = last_item_in_parent; + if (g.HoveredWindow == window) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + } + } + else + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + } + + return menu_is_open; +} + +bool ImGui::BeginMenu(const char* label, bool enabled) +{ + return BeginMenuEx(label, NULL, enabled); +} + +void ImGui::EndMenu() +{ + // Nav: When a left move request our menu failed, close ourselves. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginMenu()/EndMenu() calls + ImGuiWindow* parent_window = window->ParentWindow; // Should always be != NULL is we passed assert. + if (window->BeginCount == window->BeginCountPreviousFrame) + if (g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet()) + if (g.NavWindow && (g.NavWindow->RootWindowForNav == window) && parent_window->DC.LayoutType == ImGuiLayoutType_Vertical) + { + ClosePopupToLevel(g.BeginPopupStack.Size - 1, true); + NavMoveRequestCancel(); + } + + EndPopup(); +} + +bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut, bool selected, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImVec2 pos = window->DC.CursorPos; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // See BeginMenuEx() for comments about this. + const bool menuset_is_open = IsRootOfOpenMenuSet(); + if (menuset_is_open) + PushItemFlag(ImGuiItemFlags_NoWindowHoverableCheck, true); + + // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), + // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. + bool pressed; + PushID(label); + if (!enabled) + BeginDisabled(); + + // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another. + const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SetNavIdOnHover; + const ImGuiMenuColumns* offsets = &window->DC.MenuColumns; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Mimic the exact layout spacing of BeginMenu() to allow MenuItem() inside a menu bar, which is a little misleading but may be useful + // Note that in this situation: we don't render the shortcut, we render a highlight instead of the selected tick mark. + float w = label_size.x; + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + ImVec2 text_pos(window->DC.CursorPos.x + offsets->OffsetLabel, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + pressed = Selectable("", selected, selectable_flags, ImVec2(w, 0.0f)); + PopStyleVar(); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + RenderText(text_pos, label); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu item inside a vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + float icon_w = (icon && icon[0]) ? CalcTextSize(icon, NULL).x : 0.0f; + float shortcut_w = (shortcut && shortcut[0]) ? CalcTextSize(shortcut, NULL).x : 0.0f; + float checkmark_w = IM_FLOOR(g.FontSize * 1.20f); + float min_w = window->DC.MenuColumns.DeclColumns(icon_w, label_size.x, shortcut_w, checkmark_w); // Feedback for next frame + float stretch_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + pressed = Selectable("", false, selectable_flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, label_size.y)); + if (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Visible) + { + RenderText(pos + ImVec2(offsets->OffsetLabel, 0.0f), label); + if (icon_w > 0.0f) + RenderText(pos + ImVec2(offsets->OffsetIcon, 0.0f), icon); + if (shortcut_w > 0.0f) + { + PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); + RenderText(pos + ImVec2(offsets->OffsetShortcut + stretch_w, 0.0f), shortcut, NULL, false); + PopStyleColor(); + } + if (selected) + RenderCheckMark(window->DrawList, pos + ImVec2(offsets->OffsetMark + stretch_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(ImGuiCol_Text), g.FontSize * 0.866f); + } + } + IMGUI_TEST_ENGINE_ITEM_INFO(g.LastItemData.ID, label, g.LastItemData.StatusFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); + if (!enabled) + EndDisabled(); + PopID(); + if (menuset_is_open) + PopItemFlag(); + + return pressed; +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled) +{ + return MenuItemEx(label, NULL, shortcut, selected, enabled); +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled) +{ + if (MenuItemEx(label, NULL, shortcut, p_selected ? *p_selected : false, enabled)) + { + if (p_selected) + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +//------------------------------------------------------------------------- +// - BeginTabBar() +// - BeginTabBarEx() [Internal] +// - EndTabBar() +// - TabBarLayout() [Internal] +// - TabBarCalcTabID() [Internal] +// - TabBarCalcMaxTabWidth() [Internal] +// - TabBarFindTabById() [Internal] +// - TabBarFindTabByOrder() [Internal] +// - TabBarFindMostRecentlySelectedTabForActiveWindow() [Internal] +// - TabBarGetCurrentTab() [Internal] +// - TabBarGetTabName() [Internal] +// - TabBarAddTab() [Internal] +// - TabBarRemoveTab() [Internal] +// - TabBarCloseTab() [Internal] +// - TabBarScrollClamp() [Internal] +// - TabBarScrollToTab() [Internal] +// - TabBarQueueFocus() [Internal] +// - TabBarQueueReorder() [Internal] +// - TabBarProcessReorderFromMousePos() [Internal] +// - TabBarProcessReorder() [Internal] +// - TabBarScrollingButtons() [Internal] +// - TabBarTabListPopupButton() [Internal] +//------------------------------------------------------------------------- + +struct ImGuiTabBarSection +{ + int TabCount; // Number of tabs in this section. + float Width; // Sum of width of tabs in this section (after shrinking down) + float Spacing; // Horizontal spacing at the end of the section. + + ImGuiTabBarSection() { memset(this, 0, sizeof(*this)); } +}; + +namespace ImGui +{ + static void TabBarLayout(ImGuiTabBar* tab_bar); + static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label, ImGuiWindow* docked_window); + static float TabBarCalcMaxTabWidth(); + static float TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling); + static void TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections); + static ImGuiTabItem* TabBarScrollingButtons(ImGuiTabBar* tab_bar); + static ImGuiTabItem* TabBarTabListPopupButton(ImGuiTabBar* tab_bar); +} + +ImGuiTabBar::ImGuiTabBar() +{ + memset(this, 0, sizeof(*this)); + CurrFrameVisible = PrevFrameVisible = -1; + LastTabItemIdx = -1; +} + +static inline int TabItemGetSectionIdx(const ImGuiTabItem* tab) +{ + return (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; +} + +static int IMGUI_CDECL TabItemComparerBySection(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + const int a_section = TabItemGetSectionIdx(a); + const int b_section = TabItemGetSectionIdx(b); + if (a_section != b_section) + return a_section - b_section; + return (int)(a->IndexDuringLayout - b->IndexDuringLayout); +} + +static int IMGUI_CDECL TabItemComparerByBeginOrder(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + return (int)(a->BeginOrder - b->BeginOrder); +} + +static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) +{ + ImGuiContext& g = *GImGui; + return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); +} + +static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + if (g.TabBars.Contains(tab_bar)) + return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar)); + return ImGuiPtrOrIndex(tab_bar); +} + +bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiID id = window->GetID(str_id); + ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id); + ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->WorkRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2); + tab_bar->ID = id; + tab_bar->SeparatorMinX = tab_bar->BarRect.Min.x - IM_FLOOR(window->WindowPadding.x * 0.5f); + tab_bar->SeparatorMaxX = tab_bar->BarRect.Max.x + IM_FLOOR(window->WindowPadding.x * 0.5f); + return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused); +} + +bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + IM_ASSERT(tab_bar->ID != 0); + if ((flags & ImGuiTabBarFlags_DockNode) == 0) + PushOverrideID(tab_bar->ID); + + // Add to stack + g.CurrentTabBarStack.push_back(GetTabBarRefFromTabBar(tab_bar)); + g.CurrentTabBar = tab_bar; + + // Append with multiple BeginTabBar()/EndTabBar() pairs. + tab_bar->BackupCursorPos = window->DC.CursorPos; + if (tab_bar->CurrFrameVisible == g.FrameCount) + { + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + tab_bar->BeginCount++; + return true; + } + + // Ensure correct ordering when toggling ImGuiTabBarFlags_Reorderable flag, or when a new tab was added while being not reorderable + if ((flags & ImGuiTabBarFlags_Reorderable) != (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (tab_bar->TabsAddedNew && !(flags & ImGuiTabBarFlags_Reorderable))) + if ((flags & ImGuiTabBarFlags_DockNode) == 0) // FIXME: TabBar with DockNode can now be hybrid + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerByBeginOrder); + tab_bar->TabsAddedNew = false; + + // Flags + if ((flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + + tab_bar->Flags = flags; + tab_bar->BarRect = tab_bar_bb; + tab_bar->WantLayout = true; // Layout will be done on the first call to ItemTab() + tab_bar->PrevFrameVisible = tab_bar->CurrFrameVisible; + tab_bar->CurrFrameVisible = g.FrameCount; + tab_bar->PrevTabsContentsHeight = tab_bar->CurrTabsContentsHeight; + tab_bar->CurrTabsContentsHeight = 0.0f; + tab_bar->ItemSpacingY = g.Style.ItemSpacing.y; + tab_bar->FramePadding = g.Style.FramePadding; + tab_bar->TabsActiveCount = 0; + tab_bar->LastTabItemIdx = -1; + tab_bar->BeginCount = 1; + + // Set cursor pos in a way which only be used in the off-chance the user erroneously submits item before BeginTabItem(): items will overlap + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); + + // Draw separator + // (it would be misleading to draw this in EndTabBar() suggesting that it may be drawn over tabs, as tab bar are appendable) + const ImU32 col = GetColorU32((flags & ImGuiTabBarFlags_IsFocused) ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive); + if (g.Style.TabBarBorderSize > 0.0f) + { + const float y = tab_bar->BarRect.Max.y; + window->DrawList->AddRectFilled(ImVec2(tab_bar->SeparatorMinX, y - g.Style.TabBarBorderSize), ImVec2(tab_bar->SeparatorMaxX, y), col); + } + return true; +} + +void ImGui::EndTabBar() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Mismatched BeginTabBar()/EndTabBar()!"); + return; + } + + // Fallback in case no TabItem have been submitted + if (tab_bar->WantLayout) + TabBarLayout(tab_bar); + + // Restore the last visible height if no tab is visible, this reduce vertical flicker/movement when a tabs gets removed without calling SetTabItemClosed(). + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + if (tab_bar->VisibleTabWasSubmitted || tab_bar->VisibleTabId == 0 || tab_bar_appearing) + { + tab_bar->CurrTabsContentsHeight = ImMax(window->DC.CursorPos.y - tab_bar->BarRect.Max.y, tab_bar->CurrTabsContentsHeight); + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->CurrTabsContentsHeight; + } + else + { + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->PrevTabsContentsHeight; + } + if (tab_bar->BeginCount > 1) + window->DC.CursorPos = tab_bar->BackupCursorPos; + + tab_bar->LastTabItemIdx = -1; + if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) + PopID(); + + g.CurrentTabBarStack.pop_back(); + g.CurrentTabBar = g.CurrentTabBarStack.empty() ? NULL : GetTabBarFromTabBarRef(g.CurrentTabBarStack.back()); +} + +// Scrolling happens only in the central section (leading/trailing sections are not scrolling) +static float TabBarCalcScrollableWidth(ImGuiTabBar* tab_bar, ImGuiTabBarSection* sections) +{ + return tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; +} + +// This is called only once a frame before by the first call to ItemTab() +// The reason we're not calling it in BeginTabBar() is to leave a chance to the user to call the SetTabItemClosed() functions. +static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + tab_bar->WantLayout = false; + + // Garbage collect by compacting list + // Detect if we need to sort out tab list (e.g. in rare case where a tab changed section) + int tab_dst_n = 0; + bool need_sort_by_section = false; + ImGuiTabBarSection sections[3]; // Layout sections: Leading, Central, Trailing + for (int tab_src_n = 0; tab_src_n < tab_bar->Tabs.Size; tab_src_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_src_n]; + if (tab->LastFrameVisible < tab_bar->PrevFrameVisible || tab->WantClose) + { + // Remove tab + if (tab_bar->VisibleTabId == tab->ID) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab->ID) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab->ID) { tab_bar->NextSelectedTabId = 0; } + continue; + } + if (tab_dst_n != tab_src_n) + tab_bar->Tabs[tab_dst_n] = tab_bar->Tabs[tab_src_n]; + + tab = &tab_bar->Tabs[tab_dst_n]; + tab->IndexDuringLayout = (ImS16)tab_dst_n; + + // We will need sorting if tabs have changed section (e.g. moved from one of Leading/Central/Trailing to another) + int curr_tab_section_n = TabItemGetSectionIdx(tab); + if (tab_dst_n > 0) + { + ImGuiTabItem* prev_tab = &tab_bar->Tabs[tab_dst_n - 1]; + int prev_tab_section_n = TabItemGetSectionIdx(prev_tab); + if (curr_tab_section_n == 0 && prev_tab_section_n != 0) + need_sort_by_section = true; + if (prev_tab_section_n == 2 && curr_tab_section_n != 2) + need_sort_by_section = true; + } + + sections[curr_tab_section_n].TabCount++; + tab_dst_n++; + } + if (tab_bar->Tabs.Size != tab_dst_n) + tab_bar->Tabs.resize(tab_dst_n); + + if (need_sort_by_section) + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerBySection); + + // Calculate spacing between sections + sections[0].Spacing = sections[0].TabCount > 0 && (sections[1].TabCount + sections[2].TabCount) > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + sections[1].Spacing = sections[1].TabCount > 0 && sections[2].TabCount > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + + // Setup next selected tab + ImGuiID scroll_to_tab_id = 0; + if (tab_bar->NextSelectedTabId) + { + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId; + tab_bar->NextSelectedTabId = 0; + scroll_to_tab_id = tab_bar->SelectedTabId; + } + + // Process order change request (we could probably process it when requested but it's just saner to do it in a single spot). + if (tab_bar->ReorderRequestTabId != 0) + { + if (TabBarProcessReorder(tab_bar)) + if (tab_bar->ReorderRequestTabId == tab_bar->SelectedTabId) + scroll_to_tab_id = tab_bar->ReorderRequestTabId; + tab_bar->ReorderRequestTabId = 0; + } + + // Tab List Popup (will alter tab_bar->BarRect and therefore the available width!) + const bool tab_list_popup_button = (tab_bar->Flags & ImGuiTabBarFlags_TabListPopupButton) != 0; + if (tab_list_popup_button) + if (ImGuiTabItem* tab_to_select = TabBarTabListPopupButton(tab_bar)) // NB: Will alter BarRect.Min.x! + scroll_to_tab_id = tab_bar->SelectedTabId = tab_to_select->ID; + + // Leading/Trailing tabs will be shrink only if central one aren't visible anymore, so layout the shrink data as: leading, trailing, central + // (whereas our tabs are stored as: leading, central, trailing) + int shrink_buffer_indexes[3] = { 0, sections[0].TabCount + sections[2].TabCount, sections[0].TabCount }; + g.ShrinkWidthBuffer.resize(tab_bar->Tabs.Size); + + // Compute ideal tabs widths + store them into shrink buffer + ImGuiTabItem* most_recently_selected_tab = NULL; + int curr_section_n = -1; + bool found_selected_tab_id = false; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + IM_ASSERT(tab->LastFrameVisible >= tab_bar->PrevFrameVisible); + + if ((most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) && !(tab->Flags & ImGuiTabItemFlags_Button)) + most_recently_selected_tab = tab; + if (tab->ID == tab_bar->SelectedTabId) + found_selected_tab_id = true; + if (scroll_to_tab_id == 0 && g.NavJustMovedToId == tab->ID) + scroll_to_tab_id = tab->ID; + + // Refresh tab width immediately, otherwise changes of style e.g. style.FramePadding.x would noticeably lag in the tab bar. + // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, + // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. + const char* tab_name = TabBarGetTabName(tab_bar, tab); + const bool has_close_button_or_unsaved_marker = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) == 0 || (tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + tab->ContentWidth = (tab->RequestedWidth >= 0.0f) ? tab->RequestedWidth : TabItemCalcSize(tab_name, has_close_button_or_unsaved_marker).x; + + int section_n = TabItemGetSectionIdx(tab); + ImGuiTabBarSection* section = §ions[section_n]; + section->Width += tab->ContentWidth + (section_n == curr_section_n ? g.Style.ItemInnerSpacing.x : 0.0f); + curr_section_n = section_n; + + // Store data so we can build an array sorted by width if we need to shrink tabs down + IM_MSVC_WARNING_SUPPRESS(6385); + ImGuiShrinkWidthItem* shrink_width_item = &g.ShrinkWidthBuffer[shrink_buffer_indexes[section_n]++]; + shrink_width_item->Index = tab_n; + shrink_width_item->Width = shrink_width_item->InitialWidth = tab->ContentWidth; + tab->Width = ImMax(tab->ContentWidth, 1.0f); + } + + // Compute total ideal width (used for e.g. auto-resizing a window) + tab_bar->WidthAllTabsIdeal = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + tab_bar->WidthAllTabsIdeal += sections[section_n].Width + sections[section_n].Spacing; + + // Horizontal scrolling buttons + // (note that TabBarScrollButtons() will alter BarRect.Max.x) + if ((tab_bar->WidthAllTabsIdeal > tab_bar->BarRect.GetWidth() && tab_bar->Tabs.Size > 1) && !(tab_bar->Flags & ImGuiTabBarFlags_NoTabListScrollingButtons) && (tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll)) + if (ImGuiTabItem* scroll_and_select_tab = TabBarScrollingButtons(tab_bar)) + { + scroll_to_tab_id = scroll_and_select_tab->ID; + if ((scroll_and_select_tab->Flags & ImGuiTabItemFlags_Button) == 0) + tab_bar->SelectedTabId = scroll_to_tab_id; + } + + // Shrink widths if full tabs don't fit in their allocated space + float section_0_w = sections[0].Width + sections[0].Spacing; + float section_1_w = sections[1].Width + sections[1].Spacing; + float section_2_w = sections[2].Width + sections[2].Spacing; + bool central_section_is_visible = (section_0_w + section_2_w) < tab_bar->BarRect.GetWidth(); + float width_excess; + if (central_section_is_visible) + width_excess = ImMax(section_1_w - (tab_bar->BarRect.GetWidth() - section_0_w - section_2_w), 0.0f); // Excess used to shrink central section + else + width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section + + // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore + if (width_excess >= 1.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) + { + int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); + int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); + ShrinkWidths(g.ShrinkWidthBuffer.Data + shrink_data_offset, shrink_data_count, width_excess); + + // Apply shrunk values into tabs and sections + for (int tab_n = shrink_data_offset; tab_n < shrink_data_offset + shrink_data_count; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[g.ShrinkWidthBuffer[tab_n].Index]; + float shrinked_width = IM_FLOOR(g.ShrinkWidthBuffer[tab_n].Width); + if (shrinked_width < 0.0f) + continue; + + shrinked_width = ImMax(1.0f, shrinked_width); + int section_n = TabItemGetSectionIdx(tab); + sections[section_n].Width -= (tab->Width - shrinked_width); + tab->Width = shrinked_width; + } + } + + // Layout all active tabs + int section_tab_index = 0; + float tab_offset = 0.0f; + tab_bar->WidthAllTabs = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + { + ImGuiTabBarSection* section = §ions[section_n]; + if (section_n == 2) + tab_offset = ImMin(ImMax(0.0f, tab_bar->BarRect.GetWidth() - section->Width), tab_offset); + + for (int tab_n = 0; tab_n < section->TabCount; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[section_tab_index + tab_n]; + tab->Offset = tab_offset; + tab->NameOffset = -1; + tab_offset += tab->Width + (tab_n < section->TabCount - 1 ? g.Style.ItemInnerSpacing.x : 0.0f); + } + tab_bar->WidthAllTabs += ImMax(section->Width + section->Spacing, 0.0f); + tab_offset += section->Spacing; + section_tab_index += section->TabCount; + } + + // Clear name buffers + tab_bar->TabsNames.Buf.resize(0); + + // If we have lost the selected tab, select the next most recently active one + if (found_selected_tab_id == false) + tab_bar->SelectedTabId = 0; + if (tab_bar->SelectedTabId == 0 && tab_bar->NextSelectedTabId == 0 && most_recently_selected_tab != NULL) + scroll_to_tab_id = tab_bar->SelectedTabId = most_recently_selected_tab->ID; + + // Lock in visible tab + tab_bar->VisibleTabId = tab_bar->SelectedTabId; + tab_bar->VisibleTabWasSubmitted = false; + + // CTRL+TAB can override visible tab temporarily + if (g.NavWindowingTarget != NULL && g.NavWindowingTarget->DockNode && g.NavWindowingTarget->DockNode->TabBar == tab_bar) + tab_bar->VisibleTabId = scroll_to_tab_id = g.NavWindowingTarget->TabId; + + // Apply request requests + if (scroll_to_tab_id != 0) + TabBarScrollToTab(tab_bar, scroll_to_tab_id, sections); + else if ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll) && IsMouseHoveringRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, true) && IsWindowContentHoverable(g.CurrentWindow)) + { + const float wheel = g.IO.MouseWheelRequestAxisSwap ? g.IO.MouseWheel : g.IO.MouseWheelH; + const ImGuiKey wheel_key = g.IO.MouseWheelRequestAxisSwap ? ImGuiKey_MouseWheelY : ImGuiKey_MouseWheelX; + if (TestKeyOwner(wheel_key, tab_bar->ID) && wheel != 0.0f) + { + const float scroll_step = wheel * TabBarCalcScrollableWidth(tab_bar, sections) / 3.0f; + tab_bar->ScrollingTargetDistToVisibility = 0.0f; + tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget - scroll_step); + } + SetKeyOwner(wheel_key, tab_bar->ID); + } + + // Update scrolling + tab_bar->ScrollingAnim = TabBarScrollClamp(tab_bar, tab_bar->ScrollingAnim); + tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget); + if (tab_bar->ScrollingAnim != tab_bar->ScrollingTarget) + { + // Scrolling speed adjust itself so we can always reach our target in 1/3 seconds. + // Teleport if we are aiming far off the visible line + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, 70.0f * g.FontSize); + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, ImFabs(tab_bar->ScrollingTarget - tab_bar->ScrollingAnim) / 0.3f); + const bool teleport = (tab_bar->PrevFrameVisible + 1 < g.FrameCount) || (tab_bar->ScrollingTargetDistToVisibility > 10.0f * g.FontSize); + tab_bar->ScrollingAnim = teleport ? tab_bar->ScrollingTarget : ImLinearSweep(tab_bar->ScrollingAnim, tab_bar->ScrollingTarget, g.IO.DeltaTime * tab_bar->ScrollingSpeed); + } + else + { + tab_bar->ScrollingSpeed = 0.0f; + } + tab_bar->ScrollingRectMinX = tab_bar->BarRect.Min.x + sections[0].Width + sections[0].Spacing; + tab_bar->ScrollingRectMaxX = tab_bar->BarRect.Max.x - sections[2].Width - sections[1].Spacing; + + // Actual layout in host window (we don't do it in BeginTabBar() so as not to waste an extra frame) + ImGuiWindow* window = g.CurrentWindow; + window->DC.CursorPos = tab_bar->BarRect.Min; + ItemSize(ImVec2(tab_bar->WidthAllTabs, tab_bar->BarRect.GetHeight()), tab_bar->FramePadding.y); + window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, tab_bar->BarRect.Min.x + tab_bar->WidthAllTabsIdeal); +} + +// Dockable windows uses Name/ID in the global namespace. Non-dockable items use the ID stack. +static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label, ImGuiWindow* docked_window) +{ + if (docked_window != NULL) + { + IM_UNUSED(tab_bar); + IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_DockNode); + ImGuiID id = docked_window->TabId; + KeepAliveID(id); + return id; + } + else + { + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(label); + } +} + +static float ImGui::TabBarCalcMaxTabWidth() +{ + ImGuiContext& g = *GImGui; + return g.FontSize * 20.0f; +} + +ImGuiTabItem* ImGui::TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (tab_id != 0) + for (int n = 0; n < tab_bar->Tabs.Size; n++) + if (tab_bar->Tabs[n].ID == tab_id) + return &tab_bar->Tabs[n]; + return NULL; +} + +// Order = visible order, not submission order! (which is tab->BeginOrder) +ImGuiTabItem* ImGui::TabBarFindTabByOrder(ImGuiTabBar* tab_bar, int order) +{ + if (order < 0 || order >= tab_bar->Tabs.Size) + return NULL; + return &tab_bar->Tabs[order]; +} + +// FIXME: See references to #2304 in TODO.txt +ImGuiTabItem* ImGui::TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* most_recently_selected_tab = NULL; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) + if (tab->Window && tab->Window->WasActive) + most_recently_selected_tab = tab; + } + return most_recently_selected_tab; +} + +ImGuiTabItem* ImGui::TabBarGetCurrentTab(ImGuiTabBar* tab_bar) +{ + if (tab_bar->LastTabItemIdx <= 0 || tab_bar->LastTabItemIdx >= tab_bar->Tabs.Size) + return NULL; + return &tab_bar->Tabs[tab_bar->LastTabItemIdx]; +} + +const char* ImGui::TabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + if (tab->Window) + return tab->Window->Name; + if (tab->NameOffset == -1) + return "N/A"; + IM_ASSERT(tab->NameOffset < tab_bar->TabsNames.Buf.Size); + return tab_bar->TabsNames.Buf.Data + tab->NameOffset; +} + +// The purpose of this call is to register tab in advance so we can control their order at the time they appear. +// Otherwise calling this is unnecessary as tabs are appending as needed by the BeginTabItem() function. +void ImGui::TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(TabBarFindTabByID(tab_bar, window->TabId) == NULL); + IM_ASSERT(g.CurrentTabBar != tab_bar); // Can't work while the tab bar is active as our tab doesn't have an X offset yet, in theory we could/should test something like (tab_bar->CurrFrameVisible < g.FrameCount) but we'd need to solve why triggers the commented early-out assert in BeginTabBarEx() (probably dock node going from implicit to explicit in same frame) + + if (!window->HasCloseButton) + tab_flags |= ImGuiTabItemFlags_NoCloseButton; // Set _NoCloseButton immediately because it will be used for first-frame width calculation. + + ImGuiTabItem new_tab; + new_tab.ID = window->TabId; + new_tab.Flags = tab_flags; + new_tab.LastFrameVisible = tab_bar->CurrFrameVisible; // Required so BeginTabBar() doesn't ditch the tab + if (new_tab.LastFrameVisible == -1) + new_tab.LastFrameVisible = g.FrameCount - 1; + new_tab.Window = window; // Required so tab bar layout can compute the tab width before tab submission + tab_bar->Tabs.push_back(new_tab); +} + +// The *TabId fields are already set by the docking system _before_ the actual TabItem was created, so we clear them regardless. +void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab_bar->Tabs.erase(tab); + if (tab_bar->VisibleTabId == tab_id) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab_id) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab_id) { tab_bar->NextSelectedTabId = 0; } +} + +// Called on manual closure attempt +void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + if (tab->Flags & ImGuiTabItemFlags_Button) + return; // A button appended with TabItemButton(). + + if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) + { + // This will remove a frame of lag for selecting another tab on closure. + // However we don't run it in the case where the 'Unsaved' flag is set, so user gets a chance to fully undo the closure + tab->WantClose = true; + if (tab_bar->VisibleTabId == tab->ID) + { + tab->LastFrameVisible = -1; + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = 0; + } + } + else + { + // Actually select before expecting closure attempt (on an UnsavedDocument tab user is expect to e.g. show a popup) + if (tab_bar->VisibleTabId != tab->ID) + TabBarQueueFocus(tab_bar, tab); + } +} + +static float ImGui::TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling) +{ + scrolling = ImMin(scrolling, tab_bar->WidthAllTabs - tab_bar->BarRect.GetWidth()); + return ImMax(scrolling, 0.0f); +} + +// Note: we may scroll to tab that are not selected! e.g. using keyboard arrow keys +static void ImGui::TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections) +{ + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id); + if (tab == NULL) + return; + if (tab->Flags & ImGuiTabItemFlags_SectionMask_) + return; + + ImGuiContext& g = *GImGui; + float margin = g.FontSize * 1.0f; // When to scroll to make Tab N+1 visible always make a bit of N visible to suggest more scrolling area (since we don't have a scrollbar) + int order = TabBarGetTabOrder(tab_bar, tab); + + // Scrolling happens only in the central section (leading/trailing sections are not scrolling) + float scrollable_width = TabBarCalcScrollableWidth(tab_bar, sections); + + // We make all tabs positions all relative Sections[0].Width to make code simpler + float tab_x1 = tab->Offset - sections[0].Width + (order > sections[0].TabCount - 1 ? -margin : 0.0f); + float tab_x2 = tab->Offset - sections[0].Width + tab->Width + (order + 1 < tab_bar->Tabs.Size - sections[2].TabCount ? margin : 1.0f); + tab_bar->ScrollingTargetDistToVisibility = 0.0f; + if (tab_bar->ScrollingTarget > tab_x1 || (tab_x2 - tab_x1 >= scrollable_width)) + { + // Scroll to the left + tab_bar->ScrollingTargetDistToVisibility = ImMax(tab_bar->ScrollingAnim - tab_x2, 0.0f); + tab_bar->ScrollingTarget = tab_x1; + } + else if (tab_bar->ScrollingTarget < tab_x2 - scrollable_width) + { + // Scroll to the right + tab_bar->ScrollingTargetDistToVisibility = ImMax((tab_x1 - scrollable_width) - tab_bar->ScrollingAnim, 0.0f); + tab_bar->ScrollingTarget = tab_x2 - scrollable_width; + } +} + +void ImGui::TabBarQueueFocus(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + tab_bar->NextSelectedTabId = tab->ID; +} + +void ImGui::TabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset) +{ + IM_ASSERT(offset != 0); + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + tab_bar->ReorderRequestTabId = tab->ID; + tab_bar->ReorderRequestOffset = (ImS16)offset; +} + +void ImGui::TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* src_tab, ImVec2 mouse_pos) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + if ((tab_bar->Flags & ImGuiTabBarFlags_Reorderable) == 0) + return; + + const bool is_central_section = (src_tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + const float bar_offset = tab_bar->BarRect.Min.x - (is_central_section ? tab_bar->ScrollingTarget : 0); + + // Count number of contiguous tabs we are crossing over + const int dir = (bar_offset + src_tab->Offset) > mouse_pos.x ? -1 : +1; + const int src_idx = tab_bar->Tabs.index_from_ptr(src_tab); + int dst_idx = src_idx; + for (int i = src_idx; i >= 0 && i < tab_bar->Tabs.Size; i += dir) + { + // Reordered tabs must share the same section + const ImGuiTabItem* dst_tab = &tab_bar->Tabs[i]; + if (dst_tab->Flags & ImGuiTabItemFlags_NoReorder) + break; + if ((dst_tab->Flags & ImGuiTabItemFlags_SectionMask_) != (src_tab->Flags & ImGuiTabItemFlags_SectionMask_)) + break; + dst_idx = i; + + // Include spacing after tab, so when mouse cursor is between tabs we would not continue checking further tabs that are not hovered. + const float x1 = bar_offset + dst_tab->Offset - g.Style.ItemInnerSpacing.x; + const float x2 = bar_offset + dst_tab->Offset + dst_tab->Width + g.Style.ItemInnerSpacing.x; + //GetForegroundDrawList()->AddRect(ImVec2(x1, tab_bar->BarRect.Min.y), ImVec2(x2, tab_bar->BarRect.Max.y), IM_COL32(255, 0, 0, 255)); + if ((dir < 0 && mouse_pos.x > x1) || (dir > 0 && mouse_pos.x < x2)) + break; + } + + if (dst_idx != src_idx) + TabBarQueueReorder(tab_bar, src_tab, dst_idx - src_idx); +} + +bool ImGui::TabBarProcessReorder(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* tab1 = TabBarFindTabByID(tab_bar, tab_bar->ReorderRequestTabId); + if (tab1 == NULL || (tab1->Flags & ImGuiTabItemFlags_NoReorder)) + return false; + + //IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_Reorderable); // <- this may happen when using debug tools + int tab2_order = TabBarGetTabOrder(tab_bar, tab1) + tab_bar->ReorderRequestOffset; + if (tab2_order < 0 || tab2_order >= tab_bar->Tabs.Size) + return false; + + // Reordered tabs must share the same section + // (Note: TabBarQueueReorderFromMousePos() also has a similar test but since we allow direct calls to TabBarQueueReorder() we do it here too) + ImGuiTabItem* tab2 = &tab_bar->Tabs[tab2_order]; + if (tab2->Flags & ImGuiTabItemFlags_NoReorder) + return false; + if ((tab1->Flags & ImGuiTabItemFlags_SectionMask_) != (tab2->Flags & ImGuiTabItemFlags_SectionMask_)) + return false; + + ImGuiTabItem item_tmp = *tab1; + ImGuiTabItem* src_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 + 1 : tab2; + ImGuiTabItem* dst_tab = (tab_bar->ReorderRequestOffset > 0) ? tab1 : tab2 + 1; + const int move_count = (tab_bar->ReorderRequestOffset > 0) ? tab_bar->ReorderRequestOffset : -tab_bar->ReorderRequestOffset; + memmove(dst_tab, src_tab, move_count * sizeof(ImGuiTabItem)); + *tab2 = item_tmp; + + if (tab_bar->Flags & ImGuiTabBarFlags_SaveSettings) + MarkIniSettingsDirty(); + return true; +} + +static ImGuiTabItem* ImGui::TabBarScrollingButtons(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const ImVec2 arrow_button_size(g.FontSize - 2.0f, g.FontSize + g.Style.FramePadding.y * 2.0f); + const float scrolling_buttons_width = arrow_button_size.x * 2.0f; + + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + //window->DrawList->AddRect(ImVec2(tab_bar->BarRect.Max.x - scrolling_buttons_width, tab_bar->BarRect.Min.y), ImVec2(tab_bar->BarRect.Max.x, tab_bar->BarRect.Max.y), IM_COL32(255,0,0,255)); + + int select_dir = 0; + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + const float backup_repeat_delay = g.IO.KeyRepeatDelay; + const float backup_repeat_rate = g.IO.KeyRepeatRate; + g.IO.KeyRepeatDelay = 0.250f; + g.IO.KeyRepeatRate = 0.200f; + float x = ImMax(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.x - scrolling_buttons_width); + window->DC.CursorPos = ImVec2(x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##<", ImGuiDir_Left, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = -1; + window->DC.CursorPos = ImVec2(x + arrow_button_size.x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##>", ImGuiDir_Right, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = +1; + PopStyleColor(2); + g.IO.KeyRepeatRate = backup_repeat_rate; + g.IO.KeyRepeatDelay = backup_repeat_delay; + + ImGuiTabItem* tab_to_scroll_to = NULL; + if (select_dir != 0) + if (ImGuiTabItem* tab_item = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + { + int selected_order = TabBarGetTabOrder(tab_bar, tab_item); + int target_order = selected_order + select_dir; + + // Skip tab item buttons until another tab item is found or end is reached + while (tab_to_scroll_to == NULL) + { + // If we are at the end of the list, still scroll to make our tab visible + tab_to_scroll_to = &tab_bar->Tabs[(target_order >= 0 && target_order < tab_bar->Tabs.Size) ? target_order : selected_order]; + + // Cross through buttons + // (even if first/last item is a button, return it so we can update the scroll) + if (tab_to_scroll_to->Flags & ImGuiTabItemFlags_Button) + { + target_order += select_dir; + selected_order += select_dir; + tab_to_scroll_to = (target_order < 0 || target_order >= tab_bar->Tabs.Size) ? tab_to_scroll_to : NULL; + } + } + } + window->DC.CursorPos = backup_cursor_pos; + tab_bar->BarRect.Max.x -= scrolling_buttons_width + 1.0f; + + return tab_to_scroll_to; +} + +static ImGuiTabItem* ImGui::TabBarTabListPopupButton(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We use g.Style.FramePadding.y to match the square ArrowButton size + const float tab_list_popup_button_width = g.FontSize + g.Style.FramePadding.y; + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x - g.Style.FramePadding.y, tab_bar->BarRect.Min.y); + tab_bar->BarRect.Min.x += tab_list_popup_button_width; + + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + bool open = BeginCombo("##v", NULL, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLargest); + PopStyleColor(2); + + ImGuiTabItem* tab_to_select = NULL; + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + + const char* tab_name = TabBarGetTabName(tab_bar, tab); + if (Selectable(tab_name, tab_bar->SelectedTabId == tab->ID)) + tab_to_select = tab; + } + EndCombo(); + } + + window->DC.CursorPos = backup_cursor_pos; + return tab_to_select; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +//------------------------------------------------------------------------- +// - BeginTabItem() +// - EndTabItem() +// - TabItemButton() +// - TabItemEx() [Internal] +// - SetTabItemClosed() +// - TabItemCalcSize() [Internal] +// - TabItemBackground() [Internal] +// - TabItemLabelAndCloseButton() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + IM_ASSERT((flags & ImGuiTabItemFlags_Button) == 0); // BeginTabItem() Can't be used with button flags, use TabItemButton() instead! + + bool ret = TabItemEx(tab_bar, label, p_open, flags, NULL); + if (ret && !(flags & ImGuiTabItemFlags_NoPushId)) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + PushOverrideID(tab->ID); // We already hashed 'label' so push into the ID stack directly instead of doing another hash through PushID(label) + } + return ret; +} + +void ImGui::EndTabItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return; + } + IM_ASSERT(tab_bar->LastTabItemIdx >= 0); + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + if (!(tab->Flags & ImGuiTabItemFlags_NoPushId)) + PopID(); +} + +bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + return TabItemEx(tab_bar, label, NULL, flags | ImGuiTabItemFlags_Button | ImGuiTabItemFlags_NoReorder, NULL); +} + +bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window) +{ + // Layout whole tab bar if not already done + ImGuiContext& g = *GImGui; + if (tab_bar->WantLayout) + { + ImGuiNextItemData backup_next_item_data = g.NextItemData; + TabBarLayout(tab_bar); + g.NextItemData = backup_next_item_data; + } + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = TabBarCalcTabID(tab_bar, label, docked_window); + + // If the user called us with *p_open == false, we early out and don't render. + // We make a call to ItemAdd() so that attempts to use a contextual popup menu with an implicit ID won't use an older ID. + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, g.LastItemData.StatusFlags); + if (p_open && !*p_open) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + return false; + } + + IM_ASSERT(!p_open || !(flags & ImGuiTabItemFlags_Button)); + IM_ASSERT((flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)); // Can't use both Leading and Trailing + + // Store into ImGuiTabItemFlags_NoCloseButton, also honor ImGuiTabItemFlags_NoCloseButton passed by user (although not documented) + if (flags & ImGuiTabItemFlags_NoCloseButton) + p_open = NULL; + else if (p_open == NULL) + flags |= ImGuiTabItemFlags_NoCloseButton; + + // Acquire tab data + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); + bool tab_is_new = false; + if (tab == NULL) + { + tab_bar->Tabs.push_back(ImGuiTabItem()); + tab = &tab_bar->Tabs.back(); + tab->ID = id; + tab_bar->TabsAddedNew = tab_is_new = true; + } + tab_bar->LastTabItemIdx = (ImS16)tab_bar->Tabs.index_from_ptr(tab); + + // Calculate tab contents size + ImVec2 size = TabItemCalcSize(label, (p_open != NULL) || (flags & ImGuiTabItemFlags_UnsavedDocument)); + tab->RequestedWidth = -1.0f; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + size.x = tab->RequestedWidth = g.NextItemData.Width; + if (tab_is_new) + tab->Width = ImMax(1.0f, size.x); + tab->ContentWidth = size.x; + tab->BeginOrder = tab_bar->TabsActiveCount++; + + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; + const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); + const bool tab_just_unsaved = (flags & ImGuiTabItemFlags_UnsavedDocument) && !(tab->Flags & ImGuiTabItemFlags_UnsavedDocument); + const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; + tab->LastFrameVisible = g.FrameCount; + tab->Flags = flags; + tab->Window = docked_window; + + // Append name _WITH_ the zero-terminator + // (regular tabs are permitted in a DockNode tab bar, but window tabs not permitted in a non-DockNode tab bar) + if (docked_window != NULL) + { + IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_DockNode); + tab->NameOffset = -1; + } + else + { + tab->NameOffset = (ImS32)tab_bar->TabsNames.size(); + tab_bar->TabsNames.append(label, label + strlen(label) + 1); + } + + // Update selected tab + if (!is_tab_button) + { + if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) + if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) + TabBarQueueFocus(tab_bar, tab); // New tabs gets activated + if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // _SetSelected can only be passed on explicit tab bar + TabBarQueueFocus(tab_bar, tab); + } + + // Lock visibility + // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) + bool tab_contents_visible = (tab_bar->VisibleTabId == id); + if (tab_contents_visible) + tab_bar->VisibleTabWasSubmitted = true; + + // On the very first frame of a tab bar we let first tab contents be visible to minimize appearing glitches + if (!tab_contents_visible && tab_bar->SelectedTabId == 0 && tab_bar_appearing && docked_window == NULL) + if (tab_bar->Tabs.Size == 1 && !(tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs)) + tab_contents_visible = true; + + // Note that tab_is_new is not necessarily the same as tab_appearing! When a tab bar stops being submitted + // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. + if (tab_appearing && (!tab_bar_appearing || tab_is_new)) + { + ItemAdd(ImRect(), id, NULL, ImGuiItemFlags_NoNav); + if (is_tab_button) + return false; + return tab_contents_visible; + } + + if (tab_bar->SelectedTabId == id) + tab->LastFrameSelected = g.FrameCount; + + // Backup current layout position + const ImVec2 backup_main_cursor_pos = window->DC.CursorPos; + + // Layout + const bool is_central_section = (tab->Flags & ImGuiTabItemFlags_SectionMask_) == 0; + size.x = tab->Width; + if (is_central_section) + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(IM_FLOOR(tab->Offset - tab_bar->ScrollingAnim), 0.0f); + else + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(tab->Offset, 0.0f); + ImVec2 pos = window->DC.CursorPos; + ImRect bb(pos, pos + size); + + // We don't have CPU clipping primitives to clip the CloseButton (until it becomes a texture), so need to add an extra draw call (temporary in the case of vertical animation) + const bool want_clip_rect = is_central_section && (bb.Min.x < tab_bar->ScrollingRectMinX || bb.Max.x > tab_bar->ScrollingRectMaxX); + if (want_clip_rect) + PushClipRect(ImVec2(ImMax(bb.Min.x, tab_bar->ScrollingRectMinX), bb.Min.y - 1), ImVec2(tab_bar->ScrollingRectMaxX, bb.Max.y), true); + + ImVec2 backup_cursor_max_pos = window->DC.CursorMaxPos; + ItemSize(bb.GetSize(), style.FramePadding.y); + window->DC.CursorMaxPos = backup_cursor_max_pos; + + if (!ItemAdd(bb, id)) + { + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + return tab_contents_visible; + } + + // Click to Select a tab + ImGuiButtonFlags button_flags = ((is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowOverlap); + if (g.DragDropActive && !g.DragDropPayload.IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW)) // FIXME: May be an opt-in property of the payload to disable this + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + if (pressed && !is_tab_button) + TabBarQueueFocus(tab_bar, tab); + + // Transfer active id window so the active id is not owned by the dock host (as StartMouseMovingWindow() + // will only do it on the drag). This allows FocusWindow() to be more conservative in how it clears active id. + if (held && docked_window && g.ActiveId == id && g.ActiveIdIsJustActivated) + g.ActiveIdWindow = docked_window; + + // Drag and drop a single floating window node moves it + ImGuiDockNode* node = docked_window ? docked_window->DockNode : NULL; + const bool single_floating_window_node = node && node->IsFloatingNode() && (node->Windows.Size == 1); + if (held && single_floating_window_node && IsMouseDragging(0, 0.0f)) + { + // Move + StartMouseMovingWindow(docked_window); + } + else if (held && !tab_appearing && IsMouseDragging(0)) + { + // Drag and drop: re-order tabs + int drag_dir = 0; + float drag_distance_from_edge_x = 0.0f; + if (!g.DragDropActive && ((tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (docked_window != NULL))) + { + // While moving a tab it will jump on the other side of the mouse, so we also test for MouseDelta.x + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < bb.Min.x) + { + drag_dir = -1; + drag_distance_from_edge_x = bb.Min.x - g.IO.MousePos.x; + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + else if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > bb.Max.x) + { + drag_dir = +1; + drag_distance_from_edge_x = g.IO.MousePos.x - bb.Max.x; + TabBarQueueReorderFromMousePos(tab_bar, tab, g.IO.MousePos); + } + } + + // Extract a Dockable window out of it's tab bar + const bool can_undock = docked_window != NULL && !(docked_window->Flags & ImGuiWindowFlags_NoMove) && !(node->MergedFlags & ImGuiDockNodeFlags_NoUndocking); + if (can_undock) + { + // We use a variable threshold to distinguish dragging tabs within a tab bar and extracting them out of the tab bar + bool undocking_tab = (g.DragDropActive && g.DragDropPayload.SourceId == id); + if (!undocking_tab) //&& (!g.IO.ConfigDockingWithShift || g.IO.KeyShift) + { + float threshold_base = g.FontSize; + float threshold_x = (threshold_base * 2.2f); + float threshold_y = (threshold_base * 1.5f) + ImClamp((ImFabs(g.IO.MouseDragMaxDistanceAbs[0].x) - threshold_base * 2.0f) * 0.20f, 0.0f, threshold_base * 4.0f); + //GetForegroundDrawList()->AddRect(ImVec2(bb.Min.x - threshold_x, bb.Min.y - threshold_y), ImVec2(bb.Max.x + threshold_x, bb.Max.y + threshold_y), IM_COL32_WHITE); // [DEBUG] + + float distance_from_edge_y = ImMax(bb.Min.y - g.IO.MousePos.y, g.IO.MousePos.y - bb.Max.y); + if (distance_from_edge_y >= threshold_y) + undocking_tab = true; + if (drag_distance_from_edge_x > threshold_x) + if ((drag_dir < 0 && TabBarGetTabOrder(tab_bar, tab) == 0) || (drag_dir > 0 && TabBarGetTabOrder(tab_bar, tab) == tab_bar->Tabs.Size - 1)) + undocking_tab = true; + } + + if (undocking_tab) + { + // Undock + // FIXME: refactor to share more code with e.g. StartMouseMovingWindow + DockContextQueueUndockWindow(&g, docked_window); + g.MovingWindow = docked_window; + SetActiveID(g.MovingWindow->MoveId, g.MovingWindow); + g.ActiveIdClickOffset -= g.MovingWindow->Pos - bb.Min; + g.ActiveIdNoClearOnFocusLoss = true; + SetActiveIdUsingAllKeyboardKeys(); + } + } + } + +#if 0 + if (hovered && g.HoveredIdNotActiveTimer > TOOLTIP_DELAY && bb.GetWidth() < tab->ContentWidth) + { + // Enlarge tab display when hovering + bb.Max.x = bb.Min.x + IM_FLOOR(ImLerp(bb.GetWidth(), tab->ContentWidth, ImSaturate((g.HoveredIdNotActiveTimer - 0.40f) * 6.0f))); + display_draw_list = GetForegroundDrawList(window); + TabItemBackground(display_draw_list, bb, flags, GetColorU32(ImGuiCol_TitleBgActive)); + } +#endif + + // Render tab shape + ImDrawList* display_draw_list = window->DrawList; + const ImU32 tab_col = GetColorU32((held || hovered) ? ImGuiCol_TabHovered : tab_contents_visible ? (tab_bar_focused ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive) : (tab_bar_focused ? ImGuiCol_Tab : ImGuiCol_TabUnfocused)); + TabItemBackground(display_draw_list, bb, flags, tab_col); + RenderNavHighlight(bb, id); + + // Select with right mouse button. This is so the common idiom for context menu automatically highlight the current widget. + const bool hovered_unblocked = IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup); + if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1)) && !is_tab_button) + TabBarQueueFocus(tab_bar, tab); + + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Render tab label, process close button + const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, docked_window ? docked_window->ID : id) : 0; + bool just_closed; + bool text_clipped; + TabItemLabelAndCloseButton(display_draw_list, bb, tab_just_unsaved ? (flags & ~ImGuiTabItemFlags_UnsavedDocument) : flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); + if (just_closed && p_open != NULL) + { + *p_open = false; + TabBarCloseTab(tab_bar, tab); + } + + // Forward Hovered state so IsItemHovered() after Begin() can work (even though we are technically hovering our parent) + // That state is copied to window->DockTabItemStatusFlags by our caller. + if (docked_window && (hovered || g.HoveredId == close_button_id)) + g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_HoveredWindow; + + // Restore main window position so user can draw there + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + + // Tooltip + // (Won't work over the close button because ItemOverlap systems messes up with HoveredIdTimer-> seems ok) + // (We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar, which g.HoveredId ignores) + // FIXME: This is a mess. + // FIXME: We may want disabled tab to still display the tooltip? + if (text_clipped && g.HoveredId == id && !held) + if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) + SetItemTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); + + IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected + if (is_tab_button) + return pressed; + return tab_contents_visible; +} + +// [Public] This is call is 100% optional but it allows to remove some one-frame glitches when a tab has been unexpectedly removed. +// To use it to need to call the function SetTabItemClosed() between BeginTabBar() and EndTabBar(). +// Tabs closed by the close button will automatically be flagged to avoid this issue. +void ImGui::SetTabItemClosed(const char* label) +{ + ImGuiContext& g = *GImGui; + bool is_within_manual_tab_bar = g.CurrentTabBar && !(g.CurrentTabBar->Flags & ImGuiTabBarFlags_DockNode); + if (is_within_manual_tab_bar) + { + ImGuiTabBar* tab_bar = g.CurrentTabBar; + ImGuiID tab_id = TabBarCalcTabID(tab_bar, label, NULL); + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab->WantClose = true; // Will be processed by next call to TabBarLayout() + } + else if (ImGuiWindow* window = FindWindowByName(label)) + { + if (window->DockIsActive) + if (ImGuiDockNode* node = window->DockNode) + { + ImGuiID tab_id = TabBarCalcTabID(node->TabBar, label, window); + TabBarRemoveTab(node->TabBar, tab_id); + window->DockTabWantClose = true; + } + } +} + +ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); + if (has_close_button_or_unsaved_marker) + size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. + else + size.x += g.Style.FramePadding.x + 1.0f; + return ImVec2(ImMin(size.x, TabBarCalcMaxTabWidth()), size.y); +} + +ImVec2 ImGui::TabItemCalcSize(ImGuiWindow* window) +{ + return TabItemCalcSize(window->Name, window->HasCloseButton || (window->Flags & ImGuiWindowFlags_UnsavedDocument)); +} + +void ImGui::TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) +{ + // While rendering tabs, we trim 1 pixel off the top of our bounding box so they can fit within a regular frame height while looking "detached" from it. + ImGuiContext& g = *GImGui; + const float width = bb.GetWidth(); + IM_UNUSED(flags); + IM_ASSERT(width > 0.0f); + const float rounding = ImMax(0.0f, ImMin((flags & ImGuiTabItemFlags_Button) ? g.Style.FrameRounding : g.Style.TabRounding, width * 0.5f - 1.0f)); + const float y1 = bb.Min.y + 1.0f; + const float y2 = bb.Max.y - g.Style.TabBarBorderSize; + draw_list->PathLineTo(ImVec2(bb.Min.x, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding, y1 + rounding), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding, y1 + rounding), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x, y2)); + draw_list->PathFillConvex(col); + if (g.Style.TabBorderSize > 0.0f) + { + draw_list->PathLineTo(ImVec2(bb.Min.x + 0.5f, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding + 0.5f, y1 + rounding + 0.5f), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding - 0.5f, y1 + rounding + 0.5f), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x - 0.5f, y2)); + draw_list->PathStroke(GetColorU32(ImGuiCol_Border), 0, g.Style.TabBorderSize); + } +} + +// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic +// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter. +void ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + if (out_just_closed) + *out_just_closed = false; + if (out_text_clipped) + *out_text_clipped = false; + + if (bb.GetWidth() <= 1.0f) + return; + + // In Style V2 we'll have full override of all colors per state (e.g. focused, selected) + // But right now if you want to alter text color of tabs this is what you need to do. +#if 0 + const float backup_alpha = g.Style.Alpha; + if (!is_contents_visible) + g.Style.Alpha *= 0.7f; +#endif + + // Render text label (with clipping + alpha gradient) + unsaved marker + ImRect text_pixel_clip_bb(bb.Min.x + frame_padding.x, bb.Min.y + frame_padding.y, bb.Max.x - frame_padding.x, bb.Max.y); + ImRect text_ellipsis_clip_bb = text_pixel_clip_bb; + + // Return clipped state ignoring the close button + if (out_text_clipped) + { + *out_text_clipped = (text_ellipsis_clip_bb.Min.x + label_size.x) > text_pixel_clip_bb.Max.x; + //draw_list->AddCircle(text_ellipsis_clip_bb.Min, 3.0f, *out_text_clipped ? IM_COL32(255, 0, 0, 255) : IM_COL32(0, 255, 0, 255)); + } + + const float button_sz = g.FontSize; + const ImVec2 button_pos(ImMax(bb.Min.x, bb.Max.x - frame_padding.x - button_sz), bb.Min.y + frame_padding.y); + + // Close Button & Unsaved Marker + // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap() + // 'hovered' will be true when hovering the Tab but NOT when hovering the close button + // 'g.HoveredId==id' will be true when hovering the Tab including when hovering the close button + // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false + bool close_button_pressed = false; + bool close_button_visible = false; + if (close_button_id != 0) + if (is_contents_visible || bb.GetWidth() >= ImMax(button_sz, g.Style.TabMinWidthForCloseButton)) + if (g.HoveredId == tab_id || g.HoveredId == close_button_id || g.ActiveId == tab_id || g.ActiveId == close_button_id) + close_button_visible = true; + bool unsaved_marker_visible = (flags & ImGuiTabItemFlags_UnsavedDocument) != 0 && (button_pos.x + button_sz <= bb.Max.x); + + if (close_button_visible) + { + ImGuiLastItemData last_item_backup = g.LastItemData; + if (CloseButton(close_button_id, button_pos)) + close_button_pressed = true; + g.LastItemData = last_item_backup; + + // Close with middle mouse button + if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2)) + close_button_pressed = true; + } + else if (unsaved_marker_visible) + { + const ImRect bullet_bb(button_pos, button_pos + ImVec2(button_sz, button_sz) + g.Style.FramePadding * 2.0f); + RenderBullet(draw_list, bullet_bb.GetCenter(), GetColorU32(ImGuiCol_Text)); + } + + // This is all rather complicated + // (the main idea is that because the close button only appears on hover, we don't want it to alter the ellipsis position) + // FIXME: if FramePadding is noticeably large, ellipsis_max_x will be wrong here (e.g. #3497), maybe for consistency that parameter of RenderTextEllipsis() shouldn't exist.. + float ellipsis_max_x = close_button_visible ? text_pixel_clip_bb.Max.x : bb.Max.x - 1.0f; + if (close_button_visible || unsaved_marker_visible) + { + text_pixel_clip_bb.Max.x -= close_button_visible ? (button_sz) : (button_sz * 0.80f); + text_ellipsis_clip_bb.Max.x -= unsaved_marker_visible ? (button_sz * 0.80f) : 0.0f; + ellipsis_max_x = text_pixel_clip_bb.Max.x; + } + RenderTextEllipsis(draw_list, text_ellipsis_clip_bb.Min, text_ellipsis_clip_bb.Max, text_pixel_clip_bb.Max.x, ellipsis_max_x, label, NULL, &label_size); + +#if 0 + if (!is_contents_visible) + g.Style.Alpha = backup_alpha; +#endif + + if (out_just_closed) + *out_just_closed = close_button_pressed; +} + + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/cpp/misc/cpp/imgui_stdlib.cpp b/thirdparty/imgui_suite/imgui/cpp/misc/cpp/imgui_stdlib.cpp new file mode 100644 index 00000000000..cf69aa89a63 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/cpp/misc/cpp/imgui_stdlib.cpp @@ -0,0 +1,85 @@ +// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) +// This is also an example of how you may wrap your own similar types. + +// Changelog: +// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string + +// See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: +// https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness + +#include "imgui.h" +#include "imgui_stdlib.h" + +// Clang warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#endif + +struct InputTextCallback_UserData +{ + std::string* Str; + ImGuiInputTextCallback ChainCallback; + void* ChainCallbackUserData; +}; + +static int InputTextCallback(ImGuiInputTextCallbackData* data) +{ + InputTextCallback_UserData* user_data = (InputTextCallback_UserData*)data->UserData; + if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) + { + // Resize string callback + // If for some reason we refuse the new length (BufTextLen) and/or capacity (BufSize) we need to set them back to what we want. + std::string* str = user_data->Str; + IM_ASSERT(data->Buf == str->c_str()); + str->resize(data->BufTextLen); + data->Buf = (char*)str->c_str(); + } + else if (user_data->ChainCallback) + { + // Forward to user callback, if any + data->UserData = user_data->ChainCallbackUserData; + return user_data->ChainCallback(data); + } + return 0; +} + +bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + flags |= ImGuiInputTextFlags_CallbackResize; + + InputTextCallback_UserData cb_user_data; + cb_user_data.Str = str; + cb_user_data.ChainCallback = callback; + cb_user_data.ChainCallbackUserData = user_data; + return InputText(label, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); +} + +bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + flags |= ImGuiInputTextFlags_CallbackResize; + + InputTextCallback_UserData cb_user_data; + cb_user_data.Str = str; + cb_user_data.ChainCallback = callback; + cb_user_data.ChainCallbackUserData = user_data; + return InputTextMultiline(label, (char*)str->c_str(), str->capacity() + 1, size, flags, InputTextCallback, &cb_user_data); +} + +bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + flags |= ImGuiInputTextFlags_CallbackResize; + + InputTextCallback_UserData cb_user_data; + cb_user_data.Str = str; + cb_user_data.ChainCallback = callback; + cb_user_data.ChainCallbackUserData = user_data; + return InputTextWithHint(label, hint, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); +} + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif diff --git a/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_dx11.h b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_dx11.h new file mode 100644 index 00000000000..1713fbdd966 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_dx11.h @@ -0,0 +1,33 @@ +// dear imgui: Renderer Backend for DirectX11 +// This needs to be used along with a Platform Backend (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct ID3D11Device; +struct ID3D11DeviceContext; + +IMGUI_IMPL_API bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context); +IMGUI_IMPL_API void ImGui_ImplDX11_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplDX11_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API void ImGui_ImplDX11_InvalidateDeviceObjects(); +IMGUI_IMPL_API bool ImGui_ImplDX11_CreateDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_glfw.h b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_glfw.h new file mode 100644 index 00000000000..d2fcbbb8bfd --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_glfw.h @@ -0,0 +1,58 @@ +// dear imgui: Platform Backend for GLFW +// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..) +// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) +// (Requires: GLFW 3.1+. Prefer GLFW 3.3+ for full feature support.) + +// Implemented features: +// [X] Platform: Clipboard support. +// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen (Windows only). +// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy GLFW_KEY_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] +// [X] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. +// [x] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange' (note: the resizing cursors requires GLFW 3.4+). +// [X] Platform: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// Issues: +// [ ] Platform: Multi-viewport support: ParentViewportID not honored, and so io.ConfigViewportsNoDefaultParent has no effect (minor). + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +struct GLFWwindow; +struct GLFWmonitor; + +IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window, bool install_callbacks); +IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks); +IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window, bool install_callbacks); +IMGUI_IMPL_API void ImGui_ImplGlfw_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplGlfw_NewFrame(); + +// GLFW callbacks install +// - When calling Init with 'install_callbacks=true': ImGui_ImplGlfw_InstallCallbacks() is called. GLFW callbacks will be installed for you. They will chain-call user's previously installed callbacks, if any. +// - When calling Init with 'install_callbacks=false': GLFW callbacks won't be installed. You will need to call individual function yourself from your own GLFW callbacks. +IMGUI_IMPL_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); +IMGUI_IMPL_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); + +// GFLW callbacks options: +// - Set 'chain_for_all_windows=true' to enable chaining callbacks for all windows (including secondary viewports created by backends or by user) +IMGUI_IMPL_API void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows); + +// GLFW callbacks (individual callbacks to call yourself if you didn't install callbacks) +IMGUI_IMPL_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window, int focused); // Since 1.84 +IMGUI_IMPL_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window, int entered); // Since 1.84 +IMGUI_IMPL_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window, double x, double y); // Since 1.87 +IMGUI_IMPL_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods); +IMGUI_IMPL_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset); +IMGUI_IMPL_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods); +IMGUI_IMPL_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, unsigned int c); +IMGUI_IMPL_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor, int event); + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_metal.h b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_metal.h new file mode 100644 index 00000000000..d9540fbaa24 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_metal.h @@ -0,0 +1,73 @@ +// dear imgui: Renderer Backend for Metal +// This needs to be used along with a Platform Backend (e.g. OSX) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// ObjC API +//----------------------------------------------------------------------------- + +#ifdef __OBJC__ + +@class MTLRenderPassDescriptor; +@protocol MTLDevice, MTLCommandBuffer, MTLRenderCommandEncoder; + +IMGUI_IMPL_API bool ImGui_ImplMetal_Init(id device); +IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor* renderPassDescriptor); +IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* drawData, + id commandBuffer, + id commandEncoder); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateFontsTexture(id device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(id device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects(); + +#endif + +//----------------------------------------------------------------------------- +// C++ API +//----------------------------------------------------------------------------- + +// Enable Metal C++ binding support with '#define IMGUI_IMPL_METAL_CPP' in your imconfig.h file +// More info about using Metal from C++: https://developer.apple.com/metal/cpp/ + +#ifdef IMGUI_IMPL_METAL_CPP +#include +#ifndef __OBJC__ + +IMGUI_IMPL_API bool ImGui_ImplMetal_Init(MTL::Device* device); +IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTL::RenderPassDescriptor* renderPassDescriptor); +IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data, + MTL::CommandBuffer* commandBuffer, + MTL::RenderCommandEncoder* commandEncoder); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateFontsTexture(MTL::Device* device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(MTL::Device* device); +IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects(); + +#endif +#endif + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl2.h b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl2.h new file mode 100644 index 00000000000..be8fb6cc506 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl2.h @@ -0,0 +1,39 @@ +// dear imgui: Renderer Backend for OpenGL2 (legacy OpenGL, fixed pipeline) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** +// **Prefer using the code in imgui_impl_opengl3.cpp** +// This code is mostly provided as a reference to learn how ImGui integration works, because it is shorter to read. +// If your code is using GL3+ context or any semi modern OpenGL calls, using this is likely to make everything more +// complicated, will require your code to reset every single OpenGL attributes to their initial state, and might +// confuse your GPU driver. +// The GL2 code is unable to reset attributes or even call e.g. "glUseProgram(0)" because they don't exist in that API. + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +IMGUI_IMPL_API bool ImGui_ImplOpenGL2_Init(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); + +// Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplOpenGL2_CreateFontsTexture(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(); + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl3.h b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl3.h new file mode 100644 index 00000000000..ab779e0761d --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl3.h @@ -0,0 +1,67 @@ +// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline +// - Desktop GL: 2.x 3.x 4.x +// - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) +// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices (Desktop OpenGL only). +// [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. + +// About WebGL/ES: +// - You need to '#define IMGUI_IMPL_OPENGL_ES2' or '#define IMGUI_IMPL_OPENGL_ES3' to use WebGL or OpenGL ES. +// - This is done automatically on iOS, Android and Emscripten targets. +// - For other targets, the define needs to be visible from the imgui_impl_opengl3.cpp compilation unit. If unsure, define globally or in imconfig.h. + +// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. +// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. +// Learn about Dear ImGui: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). +// - Introduction, links and more at the top of imgui.cpp + +// About GLSL version: +// The 'glsl_version' initialization parameter should be nullptr (default) or a "#version XXX" string. +// On computer platform the GLSL version default to "#version 130". On OpenGL ES 3 platform it defaults to "#version 300 es" +// Only override if your GL version doesn't handle this GLSL version. See GLSL version table at the top of imgui_impl_opengl3.cpp. + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API +#ifndef IMGUI_DISABLE + +// Backend API +IMGUI_IMPL_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version = nullptr); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); + +// (Optional) Called by Init/NewFrame/Shutdown +IMGUI_IMPL_API bool ImGui_ImplOpenGL3_CreateFontsTexture(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_DestroyFontsTexture(); +IMGUI_IMPL_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(); + +// Specific OpenGL ES versions +//#define IMGUI_IMPL_OPENGL_ES2 // Auto-detected on Emscripten +//#define IMGUI_IMPL_OPENGL_ES3 // Auto-detected on iOS/Android + +// You can explicitly select GLES2 or GLES3 API by using one of the '#define IMGUI_IMPL_OPENGL_LOADER_XXX' in imconfig.h or compiler command-line. +#if !defined(IMGUI_IMPL_OPENGL_ES2) \ + && !defined(IMGUI_IMPL_OPENGL_ES3) + +// Try to detect GLES on matching platforms +#if defined(__APPLE__) +#include +#endif +#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) || (defined(__ANDROID__)) +#define IMGUI_IMPL_OPENGL_ES3 // iOS, Android -> GL ES 3, "#version 300 es" +#elif defined(__EMSCRIPTEN__) || defined(__amigaos4__) +#define IMGUI_IMPL_OPENGL_ES2 // Emscripten -> GL ES 2, "#version 100" +#else +// Otherwise imgui_impl_opengl3_loader.h will be used. +#endif + +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl3_loader.h b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl3_loader.h new file mode 100644 index 00000000000..7ca72e378e1 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/backends/imgui_impl_opengl3_loader.h @@ -0,0 +1,809 @@ +//----------------------------------------------------------------------------- +// About imgui_impl_opengl3_loader.h: +// +// We embed our own OpenGL loader to not require user to provide their own or to have to use ours, +// which proved to be endless problems for users. +// Our loader is custom-generated, based on gl3w but automatically filtered to only include +// enums/functions that we use in our imgui_impl_opengl3.cpp source file in order to be small. +// +// YOU SHOULD NOT NEED TO INCLUDE/USE THIS DIRECTLY. THIS IS USED BY imgui_impl_opengl3.cpp ONLY. +// THE REST OF YOUR APP SHOULD USE A DIFFERENT GL LOADER: ANY GL LOADER OF YOUR CHOICE. +// +// IF YOU GET BUILD ERRORS IN THIS FILE (commonly macro redefinitions or function redefinitions): +// IT LIKELY MEANS THAT YOU ARE BUILDING 'imgui_impl_opengl3.cpp' OR INCUDING 'imgui_impl_opengl3_loader.h' +// IN THE SAME COMPILATION UNIT AS ONE OF YOUR FILE WHICH IS USING A THIRD-PARTY OPENGL LOADER. +// (e.g. COULD HAPPEN IF YOU ARE DOING A UNITY/JUMBO BUILD, OR INCLUDING .CPP FILES FROM OTHERS) +// YOU SHOULD NOT BUILD BOTH IN THE SAME COMPILATION UNIT. +// BUT IF YOU REALLY WANT TO, you can '#define IMGUI_IMPL_OPENGL_LOADER_CUSTOM' and imgui_impl_opengl3.cpp +// WILL NOT BE USING OUR LOADER, AND INSTEAD EXPECT ANOTHER/YOUR LOADER TO BE AVAILABLE IN THE COMPILATION UNIT. +// +// Regenerate with: +// python gl3w_gen.py --output ../imgui/backends/imgui_impl_opengl3_loader.h --ref ../imgui/backends/imgui_impl_opengl3.cpp ./extra_symbols.txt +// +// More info: +// https://github.com/dearimgui/gl3w_stripped +// https://github.com/ocornut/imgui/issues/4445 +//----------------------------------------------------------------------------- + +/* + * This file was generated with gl3w_gen.py, part of imgl3w + * (hosted at https://github.com/dearimgui/gl3w_stripped) + * + * This is free and unencumbered software released into the public domain. + * + * Anyone is free to copy, modify, publish, use, compile, sell, or + * distribute this software, either in source code form or as a compiled + * binary, for any purpose, commercial or non-commercial, and by any + * means. + * + * In jurisdictions that recognize copyright laws, the author or authors + * of this software dedicate any and all copyright interest in the + * software to the public domain. We make this dedication for the benefit + * of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * software under copyright law. + * + * 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 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. + */ + +#ifndef __gl3w_h_ +#define __gl3w_h_ + +// Adapted from KHR/khrplatform.h to avoid including entire file. +#ifndef __khrplatform_h_ +typedef float khronos_float_t; +typedef signed char khronos_int8_t; +typedef unsigned char khronos_uint8_t; +typedef signed short int khronos_int16_t; +typedef unsigned short int khronos_uint16_t; +#ifdef _WIN64 +typedef signed long long int khronos_intptr_t; +typedef signed long long int khronos_ssize_t; +#else +typedef signed long int khronos_intptr_t; +typedef signed long int khronos_ssize_t; +#endif + +#if defined(_MSC_VER) && !defined(__clang__) +typedef signed __int64 khronos_int64_t; +typedef unsigned __int64 khronos_uint64_t; +#elif (defined(__clang__) || defined(__GNUC__)) && (__cplusplus < 201100) +#include +typedef int64_t khronos_int64_t; +typedef uint64_t khronos_uint64_t; +#else +typedef signed long long khronos_int64_t; +typedef unsigned long long khronos_uint64_t; +#endif +#endif // __khrplatform_h_ + +#ifndef __gl_glcorearb_h_ +#define __gl_glcorearb_h_ 1 +#ifdef __cplusplus +extern "C" { +#endif +/* +** Copyright 2013-2020 The Khronos Group Inc. +** SPDX-License-Identifier: MIT +** +** This header is generated from the Khronos OpenGL / OpenGL ES XML +** API Registry. The current version of the Registry, generator scripts +** used to make the header, and the header can be found at +** https://github.com/KhronosGroup/OpenGL-Registry +*/ +#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include +#endif +#ifndef APIENTRY +#define APIENTRY +#endif +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif +#ifndef GLAPI +#define GLAPI extern +#endif +/* glcorearb.h is for use with OpenGL core profile implementations. +** It should should be placed in the same directory as gl.h and +** included as . +** +** glcorearb.h includes only APIs in the latest OpenGL core profile +** implementation together with APIs in newer ARB extensions which +** can be supported by the core profile. It does not, and never will +** include functionality removed from the core profile, such as +** fixed-function vertex and fragment processing. +** +** Do not #include both and either of or +** in the same source file. +*/ +/* Generated C header for: + * API: gl + * Profile: core + * Versions considered: .* + * Versions emitted: .* + * Default extensions included: glcore + * Additional extensions included: _nomatch_^ + * Extensions removed: _nomatch_^ + */ +#ifndef GL_VERSION_1_0 +typedef void GLvoid; +typedef unsigned int GLenum; + +typedef khronos_float_t GLfloat; +typedef int GLint; +typedef int GLsizei; +typedef unsigned int GLbitfield; +typedef double GLdouble; +typedef unsigned int GLuint; +typedef unsigned char GLboolean; +typedef khronos_uint8_t GLubyte; +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_FALSE 0 +#define GL_TRUE 1 +#define GL_TRIANGLES 0x0004 +#define GL_ONE 1 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_POLYGON_MODE 0x0B40 +#define GL_CULL_FACE 0x0B44 +#define GL_DEPTH_TEST 0x0B71 +#define GL_STENCIL_TEST 0x0B90 +#define GL_VIEWPORT 0x0BA2 +#define GL_BLEND 0x0BE2 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_RGBA 0x1908 +#define GL_FILL 0x1B02 +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 +#define GL_EXTENSIONS 0x1F03 +#define GL_LINEAR 0x2601 +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode); +typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask); +typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLFLUSHPROC) (void); +typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param); +typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void); +typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGPROC) (GLenum name); +typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap); +typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode); +GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); +GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); +GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); +GLAPI void APIENTRY glClear (GLbitfield mask); +GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +GLAPI void APIENTRY glDisable (GLenum cap); +GLAPI void APIENTRY glEnable (GLenum cap); +GLAPI void APIENTRY glFlush (void); +GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); +GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +GLAPI GLenum APIENTRY glGetError (void); +GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *data); +GLAPI const GLubyte *APIENTRY glGetString (GLenum name); +GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap); +GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); +#endif +#endif /* GL_VERSION_1_0 */ +#ifndef GL_VERSION_1_1 +typedef khronos_float_t GLclampf; +typedef double GLclampd; +#define GL_TEXTURE_BINDING_2D 0x8069 +typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices); +typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture); +typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures); +typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices); +GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); +GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); +GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); +#endif +#endif /* GL_VERSION_1_1 */ +#ifndef GL_VERSION_1_3 +#define GL_TEXTURE0 0x84C0 +#define GL_ACTIVE_TEXTURE 0x84E0 +typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glActiveTexture (GLenum texture); +#endif +#endif /* GL_VERSION_1_3 */ +#ifndef GL_VERSION_1_4 +#define GL_BLEND_DST_RGB 0x80C8 +#define GL_BLEND_SRC_RGB 0x80C9 +#define GL_BLEND_DST_ALPHA 0x80CA +#define GL_BLEND_SRC_ALPHA 0x80CB +#define GL_FUNC_ADD 0x8006 +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); +GLAPI void APIENTRY glBlendEquation (GLenum mode); +#endif +#endif /* GL_VERSION_1_4 */ +#ifndef GL_VERSION_1_5 +typedef khronos_ssize_t GLsizeiptr; +typedef khronos_intptr_t GLintptr; +#define GL_ARRAY_BUFFER 0x8892 +#define GL_ELEMENT_ARRAY_BUFFER 0x8893 +#define GL_ARRAY_BUFFER_BINDING 0x8894 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 +#define GL_STREAM_DRAW 0x88E0 +typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); +typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers); +typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers); +typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer); +GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); +GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); +GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage); +GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); +#endif +#endif /* GL_VERSION_1_5 */ +#ifndef GL_VERSION_2_0 +typedef char GLchar; +typedef khronos_int16_t GLshort; +typedef khronos_int8_t GLbyte; +typedef khronos_uint16_t GLushort; +#define GL_BLEND_EQUATION_RGB 0x8009 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 +#define GL_BLEND_EQUATION_ALPHA 0x883D +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A +#define GL_FRAGMENT_SHADER 0x8B30 +#define GL_VERTEX_SHADER 0x8B31 +#define GL_COMPILE_STATUS 0x8B81 +#define GL_LINK_STATUS 0x8B82 +#define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_CURRENT_PROGRAM 0x8B8D +#define GL_UPPER_LEFT 0x8CA2 +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha); +typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader); +typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void); +typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type); +typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader); +typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index); +typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params); +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer); +typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program); +typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0); +typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha); +GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glCompileShader (GLuint shader); +GLAPI GLuint APIENTRY glCreateProgram (void); +GLAPI GLuint APIENTRY glCreateShader (GLenum type); +GLAPI void APIENTRY glDeleteProgram (GLuint program); +GLAPI void APIENTRY glDeleteShader (GLuint shader); +GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader); +GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index); +GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index); +GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name); +GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params); +GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer); +GLAPI GLboolean APIENTRY glIsProgram (GLuint program); +GLAPI void APIENTRY glLinkProgram (GLuint program); +GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); +GLAPI void APIENTRY glUseProgram (GLuint program); +GLAPI void APIENTRY glUniform1i (GLint location, GLint v0); +GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); +GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); +#endif +#endif /* GL_VERSION_2_0 */ +#ifndef GL_VERSION_3_0 +typedef khronos_uint16_t GLhalf; +#define GL_MAJOR_VERSION 0x821B +#define GL_MINOR_VERSION 0x821C +#define GL_NUM_EXTENSIONS 0x821D +#define GL_FRAMEBUFFER_SRGB 0x8DB9 +#define GL_VERTEX_ARRAY_BINDING 0x85B5 +typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); +typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); +typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); +typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); +typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); +typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index); +GLAPI void APIENTRY glBindVertexArray (GLuint array); +GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays); +GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays); +#endif +#endif /* GL_VERSION_3_0 */ +#ifndef GL_VERSION_3_1 +#define GL_VERSION_3_1 1 +#define GL_PRIMITIVE_RESTART 0x8F9D +#endif /* GL_VERSION_3_1 */ +#ifndef GL_VERSION_3_2 +#define GL_VERSION_3_2 1 +typedef struct __GLsync *GLsync; +typedef khronos_uint64_t GLuint64; +typedef khronos_int64_t GLint64; +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); +#endif +#endif /* GL_VERSION_3_2 */ +#ifndef GL_VERSION_3_3 +#define GL_VERSION_3_3 1 +#define GL_SAMPLER_BINDING 0x8919 +typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); +#ifdef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler); +#endif +#endif /* GL_VERSION_3_3 */ +#ifndef GL_VERSION_4_1 +typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data); +#endif /* GL_VERSION_4_1 */ +#ifndef GL_VERSION_4_3 +typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#endif /* GL_VERSION_4_3 */ +#ifndef GL_VERSION_4_5 +#define GL_CLIP_ORIGIN 0x935C +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param); +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param); +#endif /* GL_VERSION_4_5 */ +#ifndef GL_ARB_bindless_texture +typedef khronos_uint64_t GLuint64EXT; +#endif /* GL_ARB_bindless_texture */ +#ifndef GL_ARB_cl_event +struct _cl_context; +struct _cl_event; +#endif /* GL_ARB_cl_event */ +#ifndef GL_ARB_clip_control +#define GL_ARB_clip_control 1 +#endif /* GL_ARB_clip_control */ +#ifndef GL_ARB_debug_output +typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); +#endif /* GL_ARB_debug_output */ +#ifndef GL_EXT_EGL_image_storage +typedef void *GLeglImageOES; +#endif /* GL_EXT_EGL_image_storage */ +#ifndef GL_EXT_direct_state_access +typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat *params); +typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble *params); +typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, void **params); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param); +typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, void **param); +#endif /* GL_EXT_direct_state_access */ +#ifndef GL_NV_draw_vulkan_image +typedef void (APIENTRY *GLVULKANPROCNV)(void); +#endif /* GL_NV_draw_vulkan_image */ +#ifndef GL_NV_gpu_shader5 +typedef khronos_int64_t GLint64EXT; +#endif /* GL_NV_gpu_shader5 */ +#ifndef GL_NV_vertex_buffer_unified_memory +typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT *result); +#endif /* GL_NV_vertex_buffer_unified_memory */ +#ifdef __cplusplus +} +#endif +#endif + +#ifndef GL3W_API +#define GL3W_API +#endif + +#ifndef __gl_h_ +#define __gl_h_ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define GL3W_OK 0 +#define GL3W_ERROR_INIT -1 +#define GL3W_ERROR_LIBRARY_OPEN -2 +#define GL3W_ERROR_OPENGL_VERSION -3 + +typedef void (*GL3WglProc)(void); +typedef GL3WglProc (*GL3WGetProcAddressProc)(const char *proc); + +/* gl3w api */ +GL3W_API int imgl3wInit(void); +GL3W_API int imgl3wInit2(GL3WGetProcAddressProc proc); +GL3W_API int imgl3wIsSupported(int major, int minor); +GL3W_API GL3WglProc imgl3wGetProcAddress(const char *proc); + +/* gl3w internal state */ +union GL3WProcs { + GL3WglProc ptr[59]; + struct { + PFNGLACTIVETEXTUREPROC ActiveTexture; + PFNGLATTACHSHADERPROC AttachShader; + PFNGLBINDBUFFERPROC BindBuffer; + PFNGLBINDSAMPLERPROC BindSampler; + PFNGLBINDTEXTUREPROC BindTexture; + PFNGLBINDVERTEXARRAYPROC BindVertexArray; + PFNGLBLENDEQUATIONPROC BlendEquation; + PFNGLBLENDEQUATIONSEPARATEPROC BlendEquationSeparate; + PFNGLBLENDFUNCSEPARATEPROC BlendFuncSeparate; + PFNGLBUFFERDATAPROC BufferData; + PFNGLBUFFERSUBDATAPROC BufferSubData; + PFNGLCLEARPROC Clear; + PFNGLCLEARCOLORPROC ClearColor; + PFNGLCOMPILESHADERPROC CompileShader; + PFNGLCREATEPROGRAMPROC CreateProgram; + PFNGLCREATESHADERPROC CreateShader; + PFNGLDELETEBUFFERSPROC DeleteBuffers; + PFNGLDELETEPROGRAMPROC DeleteProgram; + PFNGLDELETESHADERPROC DeleteShader; + PFNGLDELETETEXTURESPROC DeleteTextures; + PFNGLDELETEVERTEXARRAYSPROC DeleteVertexArrays; + PFNGLDETACHSHADERPROC DetachShader; + PFNGLDISABLEPROC Disable; + PFNGLDISABLEVERTEXATTRIBARRAYPROC DisableVertexAttribArray; + PFNGLDRAWELEMENTSPROC DrawElements; + PFNGLDRAWELEMENTSBASEVERTEXPROC DrawElementsBaseVertex; + PFNGLENABLEPROC Enable; + PFNGLENABLEVERTEXATTRIBARRAYPROC EnableVertexAttribArray; + PFNGLFLUSHPROC Flush; + PFNGLGENBUFFERSPROC GenBuffers; + PFNGLGENTEXTURESPROC GenTextures; + PFNGLGENVERTEXARRAYSPROC GenVertexArrays; + PFNGLGETATTRIBLOCATIONPROC GetAttribLocation; + PFNGLGETERRORPROC GetError; + PFNGLGETINTEGERVPROC GetIntegerv; + PFNGLGETPROGRAMINFOLOGPROC GetProgramInfoLog; + PFNGLGETPROGRAMIVPROC GetProgramiv; + PFNGLGETSHADERINFOLOGPROC GetShaderInfoLog; + PFNGLGETSHADERIVPROC GetShaderiv; + PFNGLGETSTRINGPROC GetString; + PFNGLGETSTRINGIPROC GetStringi; + PFNGLGETUNIFORMLOCATIONPROC GetUniformLocation; + PFNGLGETVERTEXATTRIBPOINTERVPROC GetVertexAttribPointerv; + PFNGLGETVERTEXATTRIBIVPROC GetVertexAttribiv; + PFNGLISENABLEDPROC IsEnabled; + PFNGLISPROGRAMPROC IsProgram; + PFNGLLINKPROGRAMPROC LinkProgram; + PFNGLPIXELSTOREIPROC PixelStorei; + PFNGLPOLYGONMODEPROC PolygonMode; + PFNGLREADPIXELSPROC ReadPixels; + PFNGLSCISSORPROC Scissor; + PFNGLSHADERSOURCEPROC ShaderSource; + PFNGLTEXIMAGE2DPROC TexImage2D; + PFNGLTEXPARAMETERIPROC TexParameteri; + PFNGLUNIFORM1IPROC Uniform1i; + PFNGLUNIFORMMATRIX4FVPROC UniformMatrix4fv; + PFNGLUSEPROGRAMPROC UseProgram; + PFNGLVERTEXATTRIBPOINTERPROC VertexAttribPointer; + PFNGLVIEWPORTPROC Viewport; + } gl; +}; + +GL3W_API extern union GL3WProcs imgl3wProcs; + +/* OpenGL functions */ +#define glActiveTexture imgl3wProcs.gl.ActiveTexture +#define glAttachShader imgl3wProcs.gl.AttachShader +#define glBindBuffer imgl3wProcs.gl.BindBuffer +#define glBindSampler imgl3wProcs.gl.BindSampler +#define glBindTexture imgl3wProcs.gl.BindTexture +#define glBindVertexArray imgl3wProcs.gl.BindVertexArray +#define glBlendEquation imgl3wProcs.gl.BlendEquation +#define glBlendEquationSeparate imgl3wProcs.gl.BlendEquationSeparate +#define glBlendFuncSeparate imgl3wProcs.gl.BlendFuncSeparate +#define glBufferData imgl3wProcs.gl.BufferData +#define glBufferSubData imgl3wProcs.gl.BufferSubData +#define glClear imgl3wProcs.gl.Clear +#define glClearColor imgl3wProcs.gl.ClearColor +#define glCompileShader imgl3wProcs.gl.CompileShader +#define glCreateProgram imgl3wProcs.gl.CreateProgram +#define glCreateShader imgl3wProcs.gl.CreateShader +#define glDeleteBuffers imgl3wProcs.gl.DeleteBuffers +#define glDeleteProgram imgl3wProcs.gl.DeleteProgram +#define glDeleteShader imgl3wProcs.gl.DeleteShader +#define glDeleteTextures imgl3wProcs.gl.DeleteTextures +#define glDeleteVertexArrays imgl3wProcs.gl.DeleteVertexArrays +#define glDetachShader imgl3wProcs.gl.DetachShader +#define glDisable imgl3wProcs.gl.Disable +#define glDisableVertexAttribArray imgl3wProcs.gl.DisableVertexAttribArray +#define glDrawElements imgl3wProcs.gl.DrawElements +#define glDrawElementsBaseVertex imgl3wProcs.gl.DrawElementsBaseVertex +#define glEnable imgl3wProcs.gl.Enable +#define glEnableVertexAttribArray imgl3wProcs.gl.EnableVertexAttribArray +#define glFlush imgl3wProcs.gl.Flush +#define glGenBuffers imgl3wProcs.gl.GenBuffers +#define glGenTextures imgl3wProcs.gl.GenTextures +#define glGenVertexArrays imgl3wProcs.gl.GenVertexArrays +#define glGetAttribLocation imgl3wProcs.gl.GetAttribLocation +#define glGetError imgl3wProcs.gl.GetError +#define glGetIntegerv imgl3wProcs.gl.GetIntegerv +#define glGetProgramInfoLog imgl3wProcs.gl.GetProgramInfoLog +#define glGetProgramiv imgl3wProcs.gl.GetProgramiv +#define glGetShaderInfoLog imgl3wProcs.gl.GetShaderInfoLog +#define glGetShaderiv imgl3wProcs.gl.GetShaderiv +#define glGetString imgl3wProcs.gl.GetString +#define glGetStringi imgl3wProcs.gl.GetStringi +#define glGetUniformLocation imgl3wProcs.gl.GetUniformLocation +#define glGetVertexAttribPointerv imgl3wProcs.gl.GetVertexAttribPointerv +#define glGetVertexAttribiv imgl3wProcs.gl.GetVertexAttribiv +#define glIsEnabled imgl3wProcs.gl.IsEnabled +#define glIsProgram imgl3wProcs.gl.IsProgram +#define glLinkProgram imgl3wProcs.gl.LinkProgram +#define glPixelStorei imgl3wProcs.gl.PixelStorei +#define glPolygonMode imgl3wProcs.gl.PolygonMode +#define glReadPixels imgl3wProcs.gl.ReadPixels +#define glScissor imgl3wProcs.gl.Scissor +#define glShaderSource imgl3wProcs.gl.ShaderSource +#define glTexImage2D imgl3wProcs.gl.TexImage2D +#define glTexParameteri imgl3wProcs.gl.TexParameteri +#define glUniform1i imgl3wProcs.gl.Uniform1i +#define glUniformMatrix4fv imgl3wProcs.gl.UniformMatrix4fv +#define glUseProgram imgl3wProcs.gl.UseProgram +#define glVertexAttribPointer imgl3wProcs.gl.VertexAttribPointer +#define glViewport imgl3wProcs.gl.Viewport + +#ifdef __cplusplus +} +#endif + +#endif + +#ifdef IMGL3W_IMPL +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +#if defined(_WIN32) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN 1 +#endif +#include + +static HMODULE libgl; +typedef PROC(__stdcall* GL3WglGetProcAddr)(LPCSTR); +static GL3WglGetProcAddr wgl_get_proc_address; + +static int open_libgl(void) +{ + libgl = LoadLibraryA("opengl32.dll"); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + wgl_get_proc_address = (GL3WglGetProcAddr)GetProcAddress(libgl, "wglGetProcAddress"); + return GL3W_OK; +} + +static void close_libgl(void) { FreeLibrary(libgl); } +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + res = (GL3WglProc)wgl_get_proc_address(proc); + if (!res) + res = (GL3WglProc)GetProcAddress(libgl, proc); + return res; +} +#elif defined(__APPLE__) +#include + +static void *libgl; +static int open_libgl(void) +{ + libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + return GL3W_OK; +} + +static void close_libgl(void) { dlclose(libgl); } + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + *(void **)(&res) = dlsym(libgl, proc); + return res; +} +#else +#include + +static void *libgl; +static GL3WglProc (*glx_get_proc_address)(const GLubyte *); + +static int open_libgl(void) +{ + libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL); + if (!libgl) + return GL3W_ERROR_LIBRARY_OPEN; + *(void **)(&glx_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB"); + return GL3W_OK; +} + +static void close_libgl(void) { dlclose(libgl); } + +static GL3WglProc get_proc(const char *proc) +{ + GL3WglProc res; + res = glx_get_proc_address((const GLubyte *)proc); + if (!res) + *(void **)(&res) = dlsym(libgl, proc); + return res; +} +#endif + +static struct { int major, minor; } version; + +static int parse_version(void) +{ + if (!glGetIntegerv) + return GL3W_ERROR_INIT; + glGetIntegerv(GL_MAJOR_VERSION, &version.major); + glGetIntegerv(GL_MINOR_VERSION, &version.minor); + if (version.major == 0 && version.minor == 0) + { + // Query GL_VERSION in desktop GL 2.x, the string will start with "." + if (const char* gl_version = (const char*)glGetString(GL_VERSION)) + sscanf(gl_version, "%d.%d", &version.major, &version.minor); + } + if (version.major < 2) + return GL3W_ERROR_OPENGL_VERSION; + return GL3W_OK; +} + +static void load_procs(GL3WGetProcAddressProc proc); + +int imgl3wInit(void) +{ + int res = open_libgl(); + if (res) + return res; + atexit(close_libgl); + return imgl3wInit2(get_proc); +} + +int imgl3wInit2(GL3WGetProcAddressProc proc) +{ + load_procs(proc); + return parse_version(); +} + +int imgl3wIsSupported(int major, int minor) +{ + if (major < 2) + return 0; + if (version.major == major) + return version.minor >= minor; + return version.major >= major; +} + +GL3WglProc imgl3wGetProcAddress(const char *proc) { return get_proc(proc); } + +static const char *proc_names[] = { + "glActiveTexture", + "glAttachShader", + "glBindBuffer", + "glBindSampler", + "glBindTexture", + "glBindVertexArray", + "glBlendEquation", + "glBlendEquationSeparate", + "glBlendFuncSeparate", + "glBufferData", + "glBufferSubData", + "glClear", + "glClearColor", + "glCompileShader", + "glCreateProgram", + "glCreateShader", + "glDeleteBuffers", + "glDeleteProgram", + "glDeleteShader", + "glDeleteTextures", + "glDeleteVertexArrays", + "glDetachShader", + "glDisable", + "glDisableVertexAttribArray", + "glDrawElements", + "glDrawElementsBaseVertex", + "glEnable", + "glEnableVertexAttribArray", + "glFlush", + "glGenBuffers", + "glGenTextures", + "glGenVertexArrays", + "glGetAttribLocation", + "glGetError", + "glGetIntegerv", + "glGetProgramInfoLog", + "glGetProgramiv", + "glGetShaderInfoLog", + "glGetShaderiv", + "glGetString", + "glGetStringi", + "glGetUniformLocation", + "glGetVertexAttribPointerv", + "glGetVertexAttribiv", + "glIsEnabled", + "glIsProgram", + "glLinkProgram", + "glPixelStorei", + "glPolygonMode", + "glReadPixels", + "glScissor", + "glShaderSource", + "glTexImage2D", + "glTexParameteri", + "glUniform1i", + "glUniformMatrix4fv", + "glUseProgram", + "glVertexAttribPointer", + "glViewport", +}; + +GL3W_API union GL3WProcs imgl3wProcs; + +static void load_procs(GL3WGetProcAddressProc proc) +{ + size_t i; + for (i = 0; i < ARRAY_SIZE(proc_names); i++) + imgl3wProcs.ptr[i] = proc(proc_names[i]); +} + +#ifdef __cplusplus +} +#endif +#endif diff --git a/thirdparty/imgui_suite/imgui/include/imconfig.h b/thirdparty/imgui_suite/imgui/include/imconfig.h new file mode 100644 index 00000000000..b56ba49467e --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/imconfig.h @@ -0,0 +1,129 @@ +//----------------------------------------------------------------------------- +// DEAR IMGUI COMPILE-TIME OPTIONS +// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. +// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. +//----------------------------------------------------------------------------- +// A) You may edit imconfig.h (and not overwrite it when updating Dear ImGui, or maintain a patch/rebased branch with your modifications to it) +// B) or '#define IMGUI_USER_CONFIG "my_imgui_config.h"' in your project and then add directives in your own file without touching this template. +//----------------------------------------------------------------------------- +// You need to make sure that configuration settings are defined consistently _everywhere_ Dear ImGui is used, which include the imgui*.cpp +// files but also _any_ of your code that uses Dear ImGui. This is because some compile-time options have an affect on data structures. +// Defining those options in imconfig.h will ensure every compilation unit gets to see the same data structure layouts. +// Call IMGUI_CHECKVERSION() from your .cpp file to verify that the data structures your files are using are matching the ones imgui.cpp is using. +//----------------------------------------------------------------------------- + +#pragma once + +//---- Define assertion handler. Defaults to calling assert(). +// If your macro uses multiple statements, make sure is enclosed in a 'do { .. } while (0)' block so it can be used as a single statement. +//#define IM_ASSERT(_EXPR) MyAssert(_EXPR) +//#define IM_ASSERT(_EXPR) ((void)(_EXPR)) // Disable asserts + +//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows +// Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +// DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() +// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. +//#define IMGUI_API __declspec( dllexport ) +//#define IMGUI_API __declspec( dllimport ) + +//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to clean your code of obsolete function/names. +//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS +//#define IMGUI_DISABLE_OBSOLETE_KEYIO // 1.87: disable legacy io.KeyMap[]+io.KeysDown[] in favor io.AddKeyEvent(). This will be folded into IMGUI_DISABLE_OBSOLETE_FUNCTIONS in a few versions. + +//---- Disable all of Dear ImGui or don't implement standard windows/tools. +// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp. +//#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. +//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. +//#define IMGUI_DISABLE_DEBUG_TOOLS // Disable metrics/debugger and other debug tools: ShowMetricsWindow(), ShowDebugLogWindow() and ShowStackToolWindow() will be empty (this was called IMGUI_DISABLE_METRICS_WINDOW before 1.88). + +//---- Don't implement some functions to reduce linkage requirements. +//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a) +//#define IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with Visual Studio] Implement default IME handler (require imm32.lib/.a, auto-link for Visual Studio, -limm32 on command-line for MinGW) +//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with non-Visual Studio compilers] Don't implement default IME handler (won't require imm32.lib/.a) +//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, IME). +//#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices', this is why this is not the default). +//#define IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf) +//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself. +//#define IMGUI_DISABLE_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle at all (replace them with dummies) +//#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle so you can implement them yourself if you don't want to link with fopen/fclose/fread/fwrite. This will also disable the LogToTTY() function. +//#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions(). +//#define IMGUI_DISABLE_SSE // Disable use of SSE intrinsics even if available + +//---- Include imgui_user.h at the end of imgui.h as a convenience +//#define IMGUI_INCLUDE_IMGUI_USER_H + +//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another) +//#define IMGUI_USE_BGRA_PACKED_COLOR + +//---- Use 32-bit for ImWchar (default is 16-bit) to support unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...) +//#define IMGUI_USE_WCHAR32 + +//---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version +// By default the embedded implementations are declared static and not available outside of Dear ImGui sources files. +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_STB_SPRINTF_FILENAME "my_folder/stb_sprintf.h" // only used if IMGUI_USE_STB_SPRINTF is defined. +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION // only disabled if IMGUI_USE_STB_SPRINTF is defined. + +//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) +// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h. +//#define IMGUI_USE_STB_SPRINTF + +//---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui) +// Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided). +// On Windows you may use vcpkg with 'vcpkg install freetype --triplet=x64-windows' + 'vcpkg integrate install'. +//#define IMGUI_ENABLE_FREETYPE + +//---- Use FreeType+lunasvg library to render OpenType SVG fonts (SVGinOT) +// Requires lunasvg headers to be available in the include path + program to be linked with the lunasvg library (not provided). +// Only works in combination with IMGUI_ENABLE_FREETYPE. +// (implementation is based on Freetype's rsvg-port.c which is licensed under CeCILL-C Free Software License Agreement) +//#define IMGUI_ENABLE_FREETYPE_LUNASVG + +//---- Use stb_truetype to build and rasterize the font atlas (default) +// The only purpose of this define is if you want force compilation of the stb_truetype backend ALONG with the FreeType backend. +//#define IMGUI_ENABLE_STB_TRUETYPE + +//---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. +// This will be inlined as part of ImVec2 and ImVec4 class declarations. +/* +#define IM_VEC2_CLASS_EXTRA \ + constexpr ImVec2(const MyVec2& f) : x(f.x), y(f.y) {} \ + operator MyVec2() const { return MyVec2(x,y); } + +#define IM_VEC4_CLASS_EXTRA \ + constexpr ImVec4(const MyVec4& f) : x(f.x), y(f.y), z(f.z), w(f.w) {} \ + operator MyVec4() const { return MyVec4(x,y,z,w); } +*/ +//---- ...Or use Dear ImGui's own very basic math operators. +//#define IMGUI_DEFINE_MATH_OPERATORS + +//---- Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices. +// Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices). +// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer. +// Read about ImGuiBackendFlags_RendererHasVtxOffset for details. +//#define ImDrawIdx unsigned int + +//---- Override ImDrawCallback signature (will need to modify renderer backends accordingly) +//struct ImDrawList; +//struct ImDrawCmd; +//typedef void (*MyImDrawCallback)(const ImDrawList* draw_list, const ImDrawCmd* cmd, void* my_renderer_user_data); +//#define ImDrawCallback MyImDrawCallback + +//---- Debug Tools: Macro to break in Debugger (we provide a default implementation of this in the codebase) +// (use 'Metrics->Tools->Item Picker' to pick widgets with the mouse and break into them for easy debugging.) +//#define IM_DEBUG_BREAK IM_ASSERT(0) +//#define IM_DEBUG_BREAK __debugbreak() + +//---- Debug Tools: Enable slower asserts +//#define IMGUI_DEBUG_PARANOID + +//---- Tip: You can add extra functions within the ImGui:: namespace from anywhere (e.g. your own sources/header files) +/* +namespace ImGui +{ + void MyFunction(const char* name, MyMatrix44* mtx); +} +*/ diff --git a/thirdparty/imgui_suite/imgui/include/imgui.h b/thirdparty/imgui_suite/imgui/include/imgui.h new file mode 100644 index 00000000000..d39ab359157 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/imgui.h @@ -0,0 +1,3487 @@ +// dear imgui, v1.90 WIP +// (headers) + +// Help: +// - See links below. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// - Read top of imgui.cpp for more details, links and comments. + +// Resources: +// - FAQ https://dearimgui.com/faq +// - Getting Started https://dearimgui.com/getting-started +// - Homepage https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/6478 (please post your screenshots/video there!) +// - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Issues & support https://github.com/ocornut/imgui/issues +// - Tests & Automation https://github.com/ocornut/imgui_test_engine + +// For first-time users having issues compiling/linking/running/loading fonts: +// please post in https://github.com/ocornut/imgui/discussions if you cannot find a solution in resources above. +// Everything else should be asked in 'Issues'! We are building a database of cross-linked knowledge there. + +// Library Version +// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345') +#define IMGUI_VERSION "1.90 WIP" +#define IMGUI_VERSION_NUM 18992 +#define IMGUI_HAS_TABLE +#define IMGUI_HAS_VIEWPORT // Viewport WIP branch +#define IMGUI_HAS_DOCK // Docking WIP branch + +/* + +Index of this file: +// [SECTION] Header mess +// [SECTION] Forward declarations and basic types +// [SECTION] Dear ImGui end-user API functions +// [SECTION] Flags & Enumerations +// [SECTION] Helpers: Memory allocations macros, ImVector<> +// [SECTION] ImGuiStyle +// [SECTION] ImGuiIO +// [SECTION] Misc data structures (ImGuiInputTextCallbackData, ImGuiSizeCallbackData, ImGuiWindowClass, ImGuiPayload, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, Math Operators, ImColor) +// [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) +// [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) +// [SECTION] Platform Dependent Interfaces (ImGuiPlatformIO, ImGuiPlatformMonitor, ImGuiPlatformImeData) +// [SECTION] Obsolete functions and types + +*/ + +#pragma once + +// Configuration file with compile-time options +// (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system) +#ifdef IMGUI_USER_CONFIG +#include IMGUI_USER_CONFIG +#endif +#include "imconfig.h" + +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +// Includes +#include // FLT_MIN, FLT_MAX +#include // va_list, va_start, va_end +#include // ptrdiff_t, NULL +#include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp + +// Define attributes of all API symbols declarations (e.g. for DLL under Windows) +// IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default backends files (imgui_impl_xxx.h) +// Using dear imgui via a shared library is not recommended: we don't guarantee backward nor forward ABI compatibility + this is a call-heavy library and function call overhead adds up. +#ifndef IMGUI_API +#define IMGUI_API +#endif +#ifndef IMGUI_IMPL_API +#define IMGUI_IMPL_API IMGUI_API +#endif + +// Helper Macros +#ifndef IM_ASSERT +#include +#define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h +#endif +#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! +#define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. +#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 +#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) + +// Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions. +#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) +#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0))) +#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__)) +#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) +#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0))) +#else +#define IM_FMTARGS(FMT) +#define IM_FMTLIST(FMT) +#endif + +// Disable some of MSVC most aggressive Debug runtime checks in function header/footer (used in some simple/low-level functions) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) +#define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) +#define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) +#else +#define IM_MSVC_RUNTIME_CHECKS_OFF +#define IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#endif +#if defined(__clang__) +#pragma clang diagnostic push +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wreserved-identifier" // warning: identifier '_Xxx' is reserved because it starts with '_' followed by a capital letter +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations and basic types +//----------------------------------------------------------------------------- + +// Forward declarations +struct ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() +struct ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) +struct ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. +struct ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) +struct ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) +struct ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. +struct ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) +struct ImFont; // Runtime data for a single font within a parent ImFontAtlas +struct ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader +struct ImFontBuilderIO; // Opaque interface to a font builder (stb_truetype or FreeType). +struct ImFontConfig; // Configuration data when adding a font or merging fonts +struct ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) +struct ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data +struct ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) +struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) +struct ImGuiIO; // Main configuration and I/O between your application and ImGui +struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) +struct ImGuiKeyData; // Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions. +struct ImGuiListClipper; // Helper to manually clip large list of items +struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame +struct ImGuiPayload; // User data payload for drag and drop operations +struct ImGuiPlatformIO; // Multi-viewport support: interface for Platform/Renderer backends + viewports to render +struct ImGuiPlatformMonitor; // Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning popups and tooltips to avoid them straddling monitors +struct ImGuiPlatformImeData; // Platform IME data for io.SetPlatformImeDataFn() function. +struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) +struct ImGuiStorage; // Helper for key->value storage +struct ImGuiStyle; // Runtime data for styling/colors +struct ImGuiTableSortSpecs; // Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +struct ImGuiTableColumnSortSpecs; // Sorting specification for one column of a table +struct ImGuiTextBuffer; // Helper to hold and append into a text buffer (~string builder) +struct ImGuiTextFilter; // Helper to parse and apply text filters (e.g. "aaaaa[,bbbbb][,ccccc]") +struct ImGuiViewport; // A Platform Window (always 1 unless multi-viewport are enabled. One per platform window to output to). In the future may represent Platform Monitor +struct ImGuiWindowClass; // Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and parent/child info) + +// Enumerations +// - We don't use strongly typed enums much because they add constraints (can't extend in private code, can't store typed in bit fields, extra casting on iteration) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +enum ImGuiKey : int; // -> enum ImGuiKey // Enum: A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value) +enum ImGuiMouseSource : int; // -> enum ImGuiMouseSource // Enum; A mouse input source identifier (Mouse, TouchScreen, Pen) +typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling +typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions +typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type +typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction +typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) +typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor shape +typedef int ImGuiSortDirection; // -> enum ImGuiSortDirection_ // Enum: A sorting direction (ascending or descending) +typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling +typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A color target for TableSetBgColor() + +// Flags (declared as int for compatibility with old C++, to allow using as flags without overhead, and to not pollute the top of this file) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +typedef int ImDrawFlags; // -> enum ImDrawFlags_ // Flags: for ImDrawList functions +typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList instance +typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build +typedef int ImGuiBackendFlags; // -> enum ImGuiBackendFlags_ // Flags: for io.BackendFlags +typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for InvisibleButton() +typedef int ImGuiColorEditFlags; // -> enum ImGuiColorEditFlags_ // Flags: for ColorEdit4(), ColorPicker4() etc. +typedef int ImGuiConfigFlags; // -> enum ImGuiConfigFlags_ // Flags: for io.ConfigFlags +typedef int ImGuiComboFlags; // -> enum ImGuiComboFlags_ // Flags: for BeginCombo() +typedef int ImGuiDockNodeFlags; // -> enum ImGuiDockNodeFlags_ // Flags: for DockSpace() +typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: for BeginDragDropSource(), AcceptDragDropPayload() +typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() +typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. +typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() +typedef int ImGuiKeyChord; // -> ImGuiKey | ImGuiMod_XXX // Flags: for storage only for now: an ImGuiKey optionally OR-ed with one or more ImGuiMod_XXX values. +typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() +typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() +typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +typedef int ImGuiTabBarFlags; // -> enum ImGuiTabBarFlags_ // Flags: for BeginTabBar() +typedef int ImGuiTabItemFlags; // -> enum ImGuiTabItemFlags_ // Flags: for BeginTabItem() +typedef int ImGuiTableFlags; // -> enum ImGuiTableFlags_ // Flags: For BeginTable() +typedef int ImGuiTableColumnFlags; // -> enum ImGuiTableColumnFlags_// Flags: For TableSetupColumn() +typedef int ImGuiTableRowFlags; // -> enum ImGuiTableRowFlags_ // Flags: For TableNextRow() +typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: for TreeNode(), TreeNodeEx(), CollapsingHeader() +typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport +typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() + +// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type] +// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file. +// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details. +#ifndef ImTextureID +typedef void* ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) +#endif + +// ImDrawIdx: vertex index. [Compile-time configurable type] +// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). +// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. +#ifndef ImDrawIdx +typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) +#endif + +// Scalar data types +typedef unsigned int ImGuiID;// A unique ID used by widgets (typically the result of hashing a stack of string) +typedef signed char ImS8; // 8-bit signed integer +typedef unsigned char ImU8; // 8-bit unsigned integer +typedef signed short ImS16; // 16-bit signed integer +typedef unsigned short ImU16; // 16-bit unsigned integer +typedef signed int ImS32; // 32-bit signed integer == int +typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) +typedef signed long long ImS64; // 64-bit signed integer +typedef unsigned long long ImU64; // 64-bit unsigned integer + +// Character types +// (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) +typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. +typedef unsigned short ImWchar16; // A single decoded U16 character/code point. We encode them as multi bytes UTF-8 when used in strings. +#ifdef IMGUI_USE_WCHAR32 // ImWchar [configurable type: override in imconfig.h with '#define IMGUI_USE_WCHAR32' to support Unicode planes 1-16] +typedef ImWchar32 ImWchar; +#else +typedef ImWchar16 ImWchar; +#endif + +// Callback and functions types +typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); // Callback function for ImGui::InputText() +typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); // Callback function for ImGui::SetNextWindowSizeConstraints() +typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() +typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() + +// ImVec2: 2D vector used to store positions, sizes etc. [Compile-time configurable type] +// This is a frequently used type in the API. Consider using IM_VEC2_CLASS_EXTRA to create implicit cast from/to our preferred type. +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec2 +{ + float x, y; + constexpr ImVec2() : x(0.0f), y(0.0f) { } + constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } + float& operator[] (size_t idx) { IM_ASSERT(idx == 0 || idx == 1); return ((float*)(void*)(char*)this)[idx]; } // We very rarely use this [] operator, so the assert overhead is fine. + float operator[] (size_t idx) const { IM_ASSERT(idx == 0 || idx == 1); return ((const float*)(const void*)(const char*)this)[idx]; } +#ifdef IM_VEC2_CLASS_EXTRA + IM_VEC2_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec2. +#endif +}; + +// ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type] +struct ImVec4 +{ + float x, y, z, w; + constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { } + constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { } +#ifdef IM_VEC4_CLASS_EXTRA + IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. +#endif +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] Dear ImGui end-user API functions +// (Note that ImGui:: being a namespace, you can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!) +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Context creation and access + // - Each context create its own ImFontAtlas by default. You may instance one yourself and pass it to CreateContext() to share a font atlas between contexts. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for details. + IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL); + IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); // NULL = destroy current context + IMGUI_API ImGuiContext* GetCurrentContext(); + IMGUI_API void SetCurrentContext(ImGuiContext* ctx); + + // Main + IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) + IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame! + IMGUI_API void NewFrame(); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). + IMGUI_API void EndFrame(); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! + IMGUI_API void Render(); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). + IMGUI_API ImDrawData* GetDrawData(); // valid after Render() and until the next call to NewFrame(). this is what you have to render. + + // Demo, Debug, Information + IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! + IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. + IMGUI_API void ShowDebugLogWindow(bool* p_open = NULL); // create Debug Log window. display a simplified log of important dear imgui events. + IMGUI_API void ShowStackToolWindow(bool* p_open = NULL); // create Stack Tool window. hover items with mouse to query information about the source of their unique ID. + IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. + IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) + IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. + IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. + IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls). + IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) + + // Styles + IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (default) + IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); // best used with borders and a custom, thicker font + IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); // classic imgui style + + // Windows + // - Begin() = push window to the stack and start appending to it. End() = pop window from the stack. + // - Passing 'bool* p_open != NULL' shows a window-closing widget in the upper-right corner of the window, + // which clicking will set the boolean to false when clicked. + // - You may append multiple times to the same window during the same frame by calling Begin()/End() pairs multiple times. + // Some information such as 'flags' or 'p_open' will only be considered by the first call to Begin(). + // - Begin() return false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting + // anything to the window. Always call a matching End() for each Begin() call, regardless of its return value! + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + // - Note that the bottom of window stack always contains a window called "Debug". + IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); + IMGUI_API void End(); + + // Child Windows + // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child. + // - For each independent axis of 'size': ==0.0f: use remaining host window size / >0.0f: fixed size / <0.0f: use remaining window size minus abs(size) / Each axis can use a different mode, e.g. ImVec2(0,400). + // - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting anything to the window. + // Always call a matching EndChild() for each BeginChild() call, regardless of its return value. + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API void EndChild(); + + // Windows Utilities + // - 'current window' = the window we are appending into while inside a Begin()/End() block. 'next window' = next window we will Begin() into. + IMGUI_API bool IsWindowAppearing(); + IMGUI_API bool IsWindowCollapsed(); + IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); // is current window focused? or its root/child, depending on flags. see flags for options. + IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); // is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! + IMGUI_API ImDrawList* GetWindowDrawList(); // get draw list associated to the current window, to append your own drawing primitives + IMGUI_API float GetWindowDpiScale(); // get DPI scale currently associated to the current window's viewport. + IMGUI_API ImVec2 GetWindowPos(); // get current window position in screen space (note: it is unlikely you need to use this. Consider using current layout pos instead, GetScreenCursorPos()) + IMGUI_API ImVec2 GetWindowSize(); // get current window size (note: it is unlikely you need to use this. Consider using GetScreenCursorPos() and e.g. GetContentRegionAvail() instead) + IMGUI_API float GetWindowWidth(); // get current window width (shortcut for GetWindowSize().x) + IMGUI_API float GetWindowHeight(); // get current window height (shortcut for GetWindowSize().y) + IMGUI_API ImGuiViewport*GetWindowViewport(); // get viewport currently associated to the current window. + + // Window manipulation + // - Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin). + IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2(0, 0)); // set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. + IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCond cond = 0); // set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() + IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL); // set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. + IMGUI_API void SetNextWindowContentSize(const ImVec2& size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() + IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() + IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() + IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // set next window scrolling value (use < 0.0f to not affect a given axis). + IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. + IMGUI_API void SetNextWindowViewport(ImGuiID viewport_id); // set next window viewport + IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. + IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. + IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). + IMGUI_API void SetWindowFocus(); // (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). + IMGUI_API void SetWindowFontScale(float scale); // [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). + IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); // set named window position. + IMGUI_API void SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0); // set named window size. set axis to 0.0f to force an auto-fit on this axis. + IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); // set named window collapsed state + IMGUI_API void SetWindowFocus(const char* name); // set named window to be focused / top-most. use NULL to remove focus. + + // Content region + // - Retrieve available space from a given point. GetContentRegionAvail() is frequently useful. + // - Those functions are bound to be redesigned (they are confusing, incomplete and the Min/Max return values are in local window coordinates which increases confusion) + IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() + IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates + IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min for the full window (roughly (0,0)-Scroll), in window coordinates + IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max for the full window (roughly (0,0)+Size-Scroll) where Size can be overridden with SetNextWindowContentSize(), in window coordinates + + // Windows Scrolling + // - Any change of Scroll will be applied at the beginning of next frame in the first call to Begin(). + // - You may instead use SetNextWindowScroll() prior to calling Begin() to avoid this delay, as an alternative to using SetScrollX()/SetScrollY(). + IMGUI_API float GetScrollX(); // get scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API float GetScrollY(); // get scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0 .. GetScrollMaxX()] + IMGUI_API void SetScrollY(float scroll_y); // set scrolling amount [0 .. GetScrollMaxY()] + IMGUI_API float GetScrollMaxX(); // get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x + IMGUI_API float GetScrollMaxY(); // get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y + IMGUI_API void SetScrollHereX(float center_x_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + + // Parameters stacks (shared) + IMGUI_API void PushFont(ImFont* font); // use NULL as a shortcut to push default font + IMGUI_API void PopFont(); + IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col); // modify a style color. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col); + IMGUI_API void PopStyleColor(int count = 1); + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val); // modify a style float variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val); // modify a style ImVec2 variable. always use this if you modify the style after NewFrame(). + IMGUI_API void PopStyleVar(int count = 1); + IMGUI_API void PushTabStop(bool tab_stop); // == tab stop enable. Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets + IMGUI_API void PopTabStop(); + IMGUI_API void PushButtonRepeat(bool repeat); // in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. + IMGUI_API void PopButtonRepeat(); + + // Parameters stacks (current window) + IMGUI_API void PushItemWidth(float item_width); // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). + IMGUI_API void PopItemWidth(); + IMGUI_API void SetNextItemWidth(float item_width); // set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side) + IMGUI_API float CalcItemWidth(); // width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. + IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); // push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space + IMGUI_API void PopTextWrapPos(); + + // Style read access + // - Use the ShowStyleEditor() function to interactively see/edit the colors. + IMGUI_API ImFont* GetFont(); // get current font + IMGUI_API float GetFontSize(); // get current font size (= height in pixels) of current font with current scale applied + IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API + IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API ImU32 GetColorU32(ImU32 col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList + IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); // retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in. + + // Cursor / Layout + // - By "cursor" we mean the current output position. + // - The typical widget behavior is to output themselves at the current cursor position, then move the cursor one line down. + // - You can call SameLine() between widgets to undo the last carriage return and output at the right of the preceding widget. + // - Attention! We currently have inconsistencies between window-local and absolute positions we will aim to fix with future API: + // Window-local coordinates: SameLine(), GetCursorPos(), SetCursorPos(), GetCursorStartPos(), GetContentRegionMax(), GetWindowContentRegion*(), PushTextWrapPos() + // Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. + IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. + IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. + IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in a horizontal-layout context. + IMGUI_API void Spacing(); // add vertical spacing. + IMGUI_API void Dummy(const ImVec2& size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. + IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void Unindent(float indent_w = 0.0f); // move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 + IMGUI_API void BeginGroup(); // lock horizontal starting position + IMGUI_API void EndGroup(); // unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) + IMGUI_API ImVec2 GetCursorPos(); // cursor position in window coordinates (relative to window position) + IMGUI_API float GetCursorPosX(); // (some functions are using window-relative coordinates, such as: GetCursorPos, GetCursorStartPos, GetContentRegionMax, GetWindowContentRegion* etc. + IMGUI_API float GetCursorPosY(); // other functions such as GetCursorScreenPos or everything in ImDrawList:: + IMGUI_API void SetCursorPos(const ImVec2& local_pos); // are using the main, absolute coordinate system. + IMGUI_API void SetCursorPosX(float local_x); // GetWindowPos() + GetCursorPos() == GetCursorScreenPos() etc.) + IMGUI_API void SetCursorPosY(float local_y); // + IMGUI_API ImVec2 GetCursorStartPos(); // initial cursor position in window coordinates + IMGUI_API ImVec2 GetCursorScreenPos(); // cursor position in absolute coordinates (useful to work with ImDrawList API). generally top-left == GetMainViewport()->Pos == (0,0) in single viewport mode, and bottom-right == GetMainViewport()->Pos+Size == io.DisplaySize in single-viewport mode. + IMGUI_API void SetCursorScreenPos(const ImVec2& pos); // cursor position in absolute coordinates + IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) + IMGUI_API float GetTextLineHeight(); // ~ FontSize + IMGUI_API float GetTextLineHeightWithSpacing(); // ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) + IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2 + IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) + + // ID stack/scopes + // Read the FAQ (docs/FAQ.md or http://dearimgui.com/faq) for more details about how ID are handled in dear imgui. + // - Those questions are answered and impacted by understanding of the ID stack system: + // - "Q: Why is my widget not reacting when I click on it?" + // - "Q: How can I have widgets with an empty label?" + // - "Q: How can I have multiple widgets with the same label?" + // - Short version: ID are hashes of the entire ID stack. If you are creating widgets in a loop you most likely + // want to push a unique identifier (e.g. object pointer, loop index) to uniquely differentiate them. + // - You can also use the "Label##foobar" syntax within widget label to distinguish them from each others. + // - In this header file we use the "label"/"name" terminology to denote a string that will be displayed + used as an ID, + // whereas "str_id" denote a string that is only used as an ID and not normally displayed. + IMGUI_API void PushID(const char* str_id); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const void* ptr_id); // push pointer into the ID stack (will hash pointer). + IMGUI_API void PushID(int int_id); // push integer into the ID stack (will hash integer). + IMGUI_API void PopID(); // pop from the ID stack. + IMGUI_API ImGuiID GetID(const char* str_id); // calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself + IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end); + IMGUI_API ImGuiID GetID(const void* ptr_id); + + // Widgets: Text + IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); // raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. + IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS(1); // formatted text + IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS(2); // shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). + IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS(2); // display text+label aligned the same way as value+label widgets + IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS(1); // shortcut for Bullet()+Text() + IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void SeparatorText(const char* label); // currently: formatted text with an horizontal line + + // Widgets: Main + // - Most widgets return true when the value has been changed or when pressed/selected + // - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state. + IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0)); // button + IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text + IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) + IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape + IMGUI_API bool Checkbox(const char* label, bool* v); + IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); + IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); + IMGUI_API bool RadioButton(const char* label, bool active); // use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } + IMGUI_API bool RadioButton(const char* label, int* v, int v_button); // shortcut to handle the above pattern when value is an integer + IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); + IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses + + // Widgets: Images + // - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& tint_col = ImVec4(1, 1, 1, 1), const ImVec4& border_col = ImVec4(0, 0, 0, 0)); + IMGUI_API bool ImageButton(const char* str_id, ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); + + // Widgets: Combo Box (Dropdown) + // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. + // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created. + IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); + IMGUI_API void EndCombo(); // only call EndCombo() if BeginCombo() returns true! + IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1); + IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1); // Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" + IMGUI_API bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items = -1); + + // Widgets: Drag Sliders + // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every function, note that a 'float v[X]' function argument is the same as 'float* v', + // the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). + // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. + // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. + // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. + // - Legacy: Pre-1.78 there are DragXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt4(const char* label, int v[4], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed = 1.0f, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Regular Sliders + // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped by default and can go off-bounds. Use ImGuiSliderFlags_AlwaysClamp to always clamp. + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Legacy: Pre-1.78 there are SliderXXX() function signatures that take a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. + IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderAngle(const char* label, float* v_rad, float v_degrees_min = -360.0f, float v_degrees_max = +360.0f, const char* format = "%.0f deg", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Input with Keyboard + // - If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp. + // - Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc. + IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputFloat(const char* label, float* v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputDouble(const char* label, double* v, double step = 0.0, double step_fast = 0.0, const char* format = "%.6f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + + // Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu.) + // - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. + // - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x + IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); + IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. + IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. + + // Widgets: Trees + // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. + IMGUI_API bool TreeNode(const char* label); + IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); // helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). + IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); // " + IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0); + IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. + IMGUI_API void TreePush(const void* ptr_id); // " + IMGUI_API void TreePop(); // ~ Unindent()+PopId() + IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode + IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). + IMGUI_API bool CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags = 0); // when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. + IMGUI_API void SetNextItemOpen(bool is_open, ImGuiCond cond = 0); // set next TreeNode/CollapsingHeader open state. + + // Widgets: Selectables + // - A selectable highlights when hovered, and can display another color when selected. + // - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous. + IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height + IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool* p_selected" point to the selection state (read-write), as a convenient helper. + + // Widgets: List Boxes + // - This is essentially a thin wrapper to using BeginChild/EndChild with some stylistic changes. + // - The BeginListBox()/EndListBox() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() or any items. + // - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analoguous to how Combos are created. + // - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth + // - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items + IMGUI_API bool BeginListBox(const char* label, const ImVec2& size = ImVec2(0, 0)); // open a framed scrolling region + IMGUI_API void EndListBox(); // only call EndListBox() if BeginListBox() returned true! + IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1); + IMGUI_API bool ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items = -1); + + // Widgets: Data Plotting + // - Consider using ImPlot (https://github.com/epezent/implot) which is much better! + IMGUI_API void PlotLines(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotLines(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + IMGUI_API void PlotHistogram(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotHistogram(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + + // Widgets: Value() Helpers. + // - Those are merely shortcut to calling Text() with a format string. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) + IMGUI_API void Value(const char* prefix, bool b); + IMGUI_API void Value(const char* prefix, int v); + IMGUI_API void Value(const char* prefix, unsigned int v); + IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL); + + // Widgets: Menus + // - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar. + // - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it. + // - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it. + // - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment. + IMGUI_API bool BeginMenuBar(); // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). + IMGUI_API void EndMenuBar(); // only call EndMenuBar() if BeginMenuBar() returns true! + IMGUI_API bool BeginMainMenuBar(); // create and append to a full screen menu-bar. + IMGUI_API void EndMainMenuBar(); // only call EndMainMenuBar() if BeginMainMenuBar() returns true! + IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // create a sub-menu entry. only call EndMenu() if this returns true! + IMGUI_API void EndMenu(); // only call EndMenu() if BeginMenu() returns true! + IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true); // return true when activated. + IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true); // return true when activated + toggle (*p_selected) if p_selected != NULL + + // Tooltips + // - Tooltips are windows following the mouse. They do not take focus away. + // - A tooltip window can contain items of any types. SetTooltip() is a shortcut for the 'if (BeginTooltip()) { Text(...); EndTooltip(); }' idiom. + IMGUI_API bool BeginTooltip(); // begin/append a tooltip window. + IMGUI_API void EndTooltip(); // only call EndTooltip() if BeginTooltip()/BeginItemTooltip() returns true! + IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip(). + IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Tooltips: helpers for showing a tooltip when hovering an item + // - BeginItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags_Tooltip) && BeginTooltip())' idiom. + // - SetItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags_Tooltip)) { SetTooltip(...); }' idiom. + // - Where 'ImGuiHoveredFlags_Tooltip' itself is a shortcut to use 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav' depending on active input type. For mouse it defaults to 'ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort'. + IMGUI_API bool BeginItemTooltip(); // begin/append a tooltip window if preceding item was hovered. + IMGUI_API void SetItemTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip if preceeding item was hovered. override any previous call to SetTooltip(). + IMGUI_API void SetItemTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Popups, Modals + // - They block normal mouse hovering detection (and therefore most mouse interactions) behind them. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls. + // - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time. + // - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered(). + // - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack. + // This is sometimes leading to confusing mistakes. May rework this in the future. + + // Popups: begin/end functions + // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. + // - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar. + IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. + IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. + IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! + + // Popups: open/close functions + // - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for opening options. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close manually. + // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). + // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). + // - Use IsWindowAppearing() after BeginPopup() to tell if a window just opened. + // - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter + IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). + IMGUI_API void OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags = 0); // id overload to facilitate calling from nested stacks + IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) + IMGUI_API void CloseCurrentPopup(); // manually close the popup we have begin-ed into. + + // Popups: open+begin combined functions helpers + // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. + // - They are convenient to easily create context menus, hence the name. + // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. + // - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. + IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! + IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. + IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). + + // Popups: query functions + // - IsPopupOpen(): return true if the popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId: return true if any popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId + ImGuiPopupFlags_AnyPopupLevel: return true if any popup is open. + IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. + + // Tables + // - Full-featured replacement for old Columns API. + // - See Demo->Tables for demo code. See top of imgui_tables.cpp for general commentary. + // - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags. + // The typical call flow is: + // - 1. Call BeginTable(), early out if returning false. + // - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults. + // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows. + // - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data. + // - 5. Populate contents: + // - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column. + // - If you are using tables as a sort of grid, where every column is holding the same type of contents, + // you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex(). + // TableNextColumn() will automatically wrap-around into the next row if needed. + // - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column! + // - Summary of possible call flow: + // -------------------------------------------------------------------------------------------------------- + // TableNextRow() -> TableSetColumnIndex(0) -> Text("Hello 0") -> TableSetColumnIndex(1) -> Text("Hello 1") // OK + // TableNextRow() -> TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK + // TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK: TableNextColumn() automatically gets to next row! + // TableNextRow() -> Text("Hello 0") // Not OK! Missing TableSetColumnIndex() or TableNextColumn()! Text will not appear! + // -------------------------------------------------------------------------------------------------------- + // - 5. Call EndTable() + IMGUI_API bool BeginTable(const char* str_id, int column, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0.0f, 0.0f), float inner_width = 0.0f); + IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! + IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row. + IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. + IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. + + // Tables: Headers & Columns declaration + // - Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc. + // - Use TableHeadersRow() to create a header row and automatically submit a TableHeader() for each column. + // Headers are required to perform: reordering, sorting, and opening the context menu. + // The context menu can also be made available in columns body using ImGuiTableFlags_ContextMenuInBody. + // - You may manually submit headers using TableNextRow() + TableHeader() calls, but this is only useful in + // some advanced use cases (e.g. adding custom widgets in header row). + // - Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_id = 0); + IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. + IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu + IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) + + // Tables: Sorting & Miscellaneous functions + // - Sorting: call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. + // When 'sort_specs->SpecsDirty == true' you should sort your data. It will be true when sorting specs have + // changed since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, + // else you may wastefully sort your data every frame! + // - Functions args 'int column_n' treat the default value of -1 as the same as passing the current column index. + IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). + IMGUI_API int TableGetColumnCount(); // return number of columns (value passed to BeginTable) + IMGUI_API int TableGetColumnIndex(); // return current column index. + IMGUI_API int TableGetRowIndex(); // return current row index. + IMGUI_API const char* TableGetColumnName(int column_n = -1); // return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. + IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(int column_n = -1); // return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column. + IMGUI_API void TableSetColumnEnabled(int column_n, bool v);// change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) + IMGUI_API void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n = -1); // change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. + + // Legacy Columns API (prefer using Tables!) + // - You can also use SameLine(pos_x) to mimic simplified columns. + IMGUI_API void Columns(int count = 1, const char* id = NULL, bool border = true); + IMGUI_API void NextColumn(); // next column, defaults to current row or next row if the current row is finished + IMGUI_API int GetColumnIndex(); // get current column index + IMGUI_API float GetColumnWidth(int column_index = -1); // get column width (in pixels). pass -1 to use current column + IMGUI_API void SetColumnWidth(int column_index, float width); // set column width (in pixels). pass -1 to use current column + IMGUI_API float GetColumnOffset(int column_index = -1); // get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f + IMGUI_API void SetColumnOffset(int column_index, float offset_x); // set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column + IMGUI_API int GetColumnsCount(); + + // Tab Bars, Tabs + // - Note: Tabs are automatically created by the docking system (when in 'docking' branch). Use this to create tab bars/tabs yourself. + IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); // create and append into a TabBar + IMGUI_API void EndTabBar(); // only call EndTabBar() if BeginTabBar() returns true! + IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags flags = 0); // create a Tab. Returns true if the Tab is selected. + IMGUI_API void EndTabItem(); // only call EndTabItem() if BeginTabItem() returns true! + IMGUI_API bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0); // create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. + IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); // notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. + + // Docking + // [BETA API] Enable with io.ConfigFlags |= ImGuiConfigFlags_DockingEnable. + // Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! + // - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking. + // - Drag from window menu button (upper-left button) to undock an entire node (all windows). + // - When io.ConfigDockingWithShift == true, you instead need to hold SHIFT to enable docking. + // About dockspaces: + // - Use DockSpaceOverViewport() to create an explicit dock node covering the screen or a specific viewport. + // This is often used with ImGuiDockNodeFlags_PassthruCentralNode to make it transparent. + // - Use DockSpace() to create an explicit dock node _within_ an existing window. See Docking demo for details. + // - Important: Dockspaces need to be submitted _before_ any window they can host. Submit it early in your frame! + // - Important: Dockspaces need to be kept alive if hidden, otherwise windows docked into it will be undocked. + // e.g. if you have multiple tabs with a dockspace inside each tab: submit the non-visible dockspaces with ImGuiDockNodeFlags_KeepAliveOnly. + IMGUI_API ImGuiID DockSpace(ImGuiID id, const ImVec2& size = ImVec2(0, 0), ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); + IMGUI_API ImGuiID DockSpaceOverViewport(const ImGuiViewport* viewport = NULL, ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); + IMGUI_API void SetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond = 0); // set next window dock id + IMGUI_API void SetNextWindowClass(const ImGuiWindowClass* window_class); // set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parent/child relationship) + IMGUI_API ImGuiID GetWindowDockID(); + IMGUI_API bool IsWindowDocked(); // is current window docked into another window? + + // Logging/Capture + // - All text output from the interface can be captured into tty/file/clipboard. By default, tree nodes are automatically opened during logging. + IMGUI_API void LogToTTY(int auto_open_depth = -1); // start logging to tty (stdout) + IMGUI_API void LogToFile(int auto_open_depth = -1, const char* filename = NULL); // start logging to file + IMGUI_API void LogToClipboard(int auto_open_depth = -1); // start logging to OS clipboard + IMGUI_API void LogFinish(); // stop logging (close file, etc.) + IMGUI_API void LogButtons(); // helper to display buttons for logging to tty/file/clipboard + IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); // pass text data straight to log (without being displayed) + IMGUI_API void LogTextV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Drag and Drop + // - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource(). + // - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget(). + // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725) + // - An item can be both drag source and drop target. + IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource() + IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted. + IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! + IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() + IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. + IMGUI_API void EndDragDropTarget(); // only call EndDragDropTarget() if BeginDragDropTarget() returns true! + IMGUI_API const ImGuiPayload* GetDragDropPayload(); // peek directly into the current payload from anywhere. may return NULL. use ImGuiPayload::IsDataType() to test for the payload type. + + // Disabling [BETA API] + // - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors) + // - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) + // - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. + IMGUI_API void BeginDisabled(bool disabled = true); + IMGUI_API void EndDisabled(); + + // Clipping + // - Mouse hovering is affected by ImGui::PushClipRect() calls, unlike direct calls to ImDrawList::PushClipRect() which are render only. + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect); + IMGUI_API void PopClipRect(); + + // Focus, Activation + // - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item" + IMGUI_API void SetItemDefaultFocus(); // make last item the default focused item of a window. + IMGUI_API void SetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. + + // Overlapping mode + IMGUI_API void SetNextItemAllowOverlap(); // allow next item to be overlapped by a subsequent item. Useful with invisible buttons, selectable, treenode covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this. + + // Item/Widgets Utilities and Query Functions + // - Most of the functions are referring to the previous Item that has been submitted. + // - See Demo Window under "Widgets->Querying Status" for an interactive visualization of most of those functions. + IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. + IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) + IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? + IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. + IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) + IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. + IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). + IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing. + IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). + IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). + IMGUI_API bool IsAnyItemHovered(); // is any item hovered? + IMGUI_API bool IsAnyItemActive(); // is any item active? + IMGUI_API bool IsAnyItemFocused(); // is any item focused? + IMGUI_API ImGuiID GetItemID(); // get ID of last item (~~ often same ImGui::GetID(label) beforehand) + IMGUI_API ImVec2 GetItemRectMin(); // get upper-left bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectMax(); // get lower-right bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectSize(); // get size of last item + + // Viewports + // - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. + // - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports. + // - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. + IMGUI_API ImGuiViewport* GetMainViewport(); // return primary/default viewport. This can never be NULL. + + // Background/Foreground Draw Lists + IMGUI_API ImDrawList* GetBackgroundDrawList(); // get background draw list for the viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(); // get foreground draw list for the viewport associated to the current window. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + + // Miscellaneous Utilities + IMGUI_API bool IsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. + IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. + IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. + IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. + IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. + IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). + IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) + IMGUI_API ImGuiStorage* GetStateStorage(); + IMGUI_API bool BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags flags = 0); // helper to create a child window / scrolling region that looks like a normal widget frame + IMGUI_API void EndChildFrame(); // always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) + + // Text Utilities + IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); + + // Color Utilities + IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in); + IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in); + IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); + IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); + + // Inputs Utilities: Keyboard/Mouse/Gamepad + // - the ImGuiKey enum contains all possible keyboard, mouse and gamepad inputs (e.g. ImGuiKey_A, ImGuiKey_MouseLeft, ImGuiKey_GamepadDpadUp...). + // - before v1.87, we used ImGuiKey to carry native/user indices as defined by each backends. About use of those legacy ImGuiKey values: + // - without IMGUI_DISABLE_OBSOLETE_KEYIO (legacy support): you can still use your legacy native/user indices (< 512) according to how your backend/engine stored them in io.KeysDown[], but need to cast them to ImGuiKey. + // - with IMGUI_DISABLE_OBSOLETE_KEYIO (this is the way forward): any use of ImGuiKey will assert with key < 512. GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined). + IMGUI_API bool IsKeyDown(ImGuiKey key); // is key being held. + IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate + IMGUI_API bool IsKeyReleased(ImGuiKey key); // was key released (went from Down to !Down)? + IMGUI_API int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate + IMGUI_API const char* GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. + IMGUI_API void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); // Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. + + // Inputs Utilities: Mouse specific + // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. + // - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle. + // - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold') + IMGUI_API bool IsMouseDown(ImGuiMouseButton button); // is mouse button held? + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); // did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button); // did mouse button released? (went from Down to !Down) + IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true) + IMGUI_API int GetMouseClickedCount(ImGuiMouseButton button); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0). + IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. + IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available + IMGUI_API bool IsAnyMouseDown(); // [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid. + IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls + IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) + IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // + IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you + IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired mouse cursor shape + IMGUI_API void SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. + + // Clipboard Utilities + // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. + IMGUI_API const char* GetClipboardText(); + IMGUI_API void SetClipboardText(const char* text); + + // Settings/.Ini Utilities + // - The disk functions are automatically called if io.IniFilename != NULL (default is "imgui.ini"). + // - Set io.IniFilename to NULL to load/save manually. Read io.WantSaveIniSettings description about handling .ini saving manually. + // - Important: default value "imgui.ini" is relative to current working dir! Most apps will want to lock this to an absolute path (e.g. same path as executables). + IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); // call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). + IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); // call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. + IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename); // this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). + IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. + + // Debug Utilities + IMGUI_API void DebugTextEncoding(const char* text); + IMGUI_API bool DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx); // This is called by IMGUI_CHECKVERSION() macro. + + // Memory Allocators + // - Those functions are not reliant on the current context. + // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() + // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. + IMGUI_API void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data = NULL); + IMGUI_API void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); + IMGUI_API void* MemAlloc(size_t size); + IMGUI_API void MemFree(void* ptr); + + // (Optional) Platform/OS interface for multi-viewport support + // Read comments around the ImGuiPlatformIO structure for more details. + // Note: You may use GetWindowViewport() to get the current viewport of the current window. + IMGUI_API ImGuiPlatformIO& GetPlatformIO(); // platform/renderer functions, for backend to setup + viewports list. + IMGUI_API void UpdatePlatformWindows(); // call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport. + IMGUI_API void RenderPlatformWindowsDefault(void* platform_render_arg = NULL, void* renderer_render_arg = NULL); // call in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. + IMGUI_API void DestroyPlatformWindows(); // call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext(). + IMGUI_API ImGuiViewport* FindViewportByID(ImGuiID id); // this is a helper for backends. + IMGUI_API ImGuiViewport* FindViewportByPlatformHandle(void* platform_handle); // this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.) + +} // namespace ImGui + +//----------------------------------------------------------------------------- +// [SECTION] Flags & Enumerations +//----------------------------------------------------------------------------- + +// Flags for ImGui::Begin() +// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly) +enum ImGuiWindowFlags_ +{ + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, // Disable title-bar + ImGuiWindowFlags_NoResize = 1 << 1, // Disable user resizing with the lower-right grip + ImGuiWindowFlags_NoMove = 1 << 2, // Disable user moving the window + ImGuiWindowFlags_NoScrollbar = 1 << 3, // Disable scrollbars (window can still scroll with mouse or programmatically) + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set. + ImGuiWindowFlags_NoCollapse = 1 << 5, // Disable user collapsing window by double-clicking on it. Also referred to as Window Menu Button (e.g. within a docking node). + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, // Resize every window to its content every frame + ImGuiWindowFlags_NoBackground = 1 << 7, // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f). + ImGuiWindowFlags_NoSavedSettings = 1 << 8, // Never load/save settings in .ini file + ImGuiWindowFlags_NoMouseInputs = 1 << 9, // Disable catching mouse, hovering test with pass through. + ImGuiWindowFlags_MenuBar = 1 << 10, // Has a menu-bar + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section. + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, // Disable taking focus when transitioning from hidden to visible state + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, // Always show vertical scrollbar (even if ContentSize.y < Size.y) + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, // Always show horizontal scrollbar (even if ContentSize.x < Size.x) + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient) + ImGuiWindowFlags_NoNavInputs = 1 << 18, // No gamepad/keyboard navigation within the window + ImGuiWindowFlags_NoNavFocus = 1 << 19, // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) + ImGuiWindowFlags_UnsavedDocument = 1 << 20, // Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiWindowFlags_NoDocking = 1 << 21, // Disable docking of this window + + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + + // [Internal] + ImGuiWindowFlags_NavFlattened = 1 << 23, // [BETA] On child window: allow gamepad/keyboard navigation to cross over parent border to this child or between sibling child windows. + ImGuiWindowFlags_ChildWindow = 1 << 24, // Don't use! For internal use by BeginChild() + ImGuiWindowFlags_Tooltip = 1 << 25, // Don't use! For internal use by BeginTooltip() + ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() + ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() + ImGuiWindowFlags_ChildMenu = 1 << 28, // Don't use! For internal use by BeginMenu() + ImGuiWindowFlags_DockNodeHost = 1 << 29, // Don't use! For internal use by Begin()/NewFrame() +}; + +// Flags for ImGui::InputText() +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive) +enum ImGuiInputTextFlags_ +{ + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, // Allow 0123456789.+-*/ + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, // Allow 0123456789ABCDEFabcdef + ImGuiInputTextFlags_CharsUppercase = 1 << 2, // Turn a..z into A..Z + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, // Filter out spaces, tabs + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, // Select entire text when first taking mouse focus + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function. + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, // Callback on pressing TAB (for completion handling) + ImGuiInputTextFlags_CallbackHistory = 1 << 7, // Callback on pressing Up/Down arrows (for history handling) + ImGuiInputTextFlags_CallbackAlways = 1 << 8, // Callback on each iteration. User code may query cursor position, modify text buffer. + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. + ImGuiInputTextFlags_AllowTabInput = 1 << 10, // Pressing TAB input a '\t' character into the text field + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter). + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, // Disable following the cursor horizontally + ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13, // Overwrite mode + ImGuiInputTextFlags_ReadOnly = 1 << 14, // Read-only mode + ImGuiInputTextFlags_Password = 1 << 15, // Password mode, display all characters as '*' + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). + ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) + ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) + ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_EscapeClearsAll = 1 << 20, // Escape key clears content if not empty, and deactivate otherwise (contrast to default behavior of Escape to revert) + + // Obsolete names + //ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior +}; + +// Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*() +enum ImGuiTreeNodeFlags_ +{ + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, // Draw as selected + ImGuiTreeNodeFlags_Framed = 1 << 1, // Draw frame with background (e.g. for CollapsingHeader) + ImGuiTreeNodeFlags_AllowOverlap = 1 << 2, // Hit testing to allow subsequent widgets to overlap this one + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, // Default node to be open + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, // Need double-click to open node + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, // Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open. + ImGuiTreeNodeFlags_Leaf = 1 << 8, // No collapsing, no arrow (use as a convenience for leaf nodes). + ImGuiTreeNodeFlags_Bullet = 1 << 9, // Display a bullet instead of arrow. IMPORTANT: node can still be marked open/close if you don't set the _Leaf flag! + ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding(). + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default. + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) + //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiTreeNodeFlags_AllowItemOverlap = ImGuiTreeNodeFlags_AllowOverlap, // Renamed in 1.89.7 +#endif +}; + +// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. +// - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat +// small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags. +// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. +// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. +// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter +// and want to use another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag explicitly. +// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). +enum ImGuiPopupFlags_ +{ + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, // For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left) + ImGuiPopupFlags_MouseButtonRight = 1, // For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right) + ImGuiPopupFlags_MouseButtonMiddle = 2, // For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle) + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, // For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space + ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, +}; + +// Flags for ImGui::Selectable() +enum ImGuiSelectableFlags_ +{ + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this doesn't close parent popup window + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Selectable frame can span all columns (text will still fit in current column) + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too + ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text + ImGuiSelectableFlags_AllowOverlap = 1 << 4, // (WIP) Hit testing to allow subsequent widgets to overlap this one + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiSelectableFlags_AllowItemOverlap = ImGuiSelectableFlags_AllowOverlap, // Renamed in 1.89.7 +#endif +}; + +// Flags for ImGui::BeginCombo() +enum ImGuiComboFlags_ +{ + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, // Align the popup toward the left by default + ImGuiComboFlags_HeightSmall = 1 << 1, // Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo() + ImGuiComboFlags_HeightRegular = 1 << 2, // Max ~8 items visible (default) + ImGuiComboFlags_HeightLarge = 1 << 3, // Max ~20 items visible + ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible + ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button + ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, +}; + +// Flags for ImGui::BeginTabBar() +enum ImGuiTabBarFlags_ +{ + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, // Automatically select new tabs when they appear + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, // Disable buttons to open the tab list popup + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) + ImGuiTabBarFlags_NoTooltip = 1 << 5, // Disable tooltips when hovering a tab + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, +}; + +// Flags for ImGui::BeginTabItem() +enum ImGuiTabItemFlags_ +{ + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, // Display a dot next to the title + tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. + ImGuiTabItemFlags_SetSelected = 1 << 1, // Trigger flag to programmatically make the tab selected when calling BeginTabItem() + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabItemFlags_NoPushId = 1 << 3, // Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem() + ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab + ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab + ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) + ImGuiTabItemFlags_Trailing = 1 << 7, // Enforce the tab position to the right of the tab bar (before the scrolling buttons) +}; + +// Flags for ImGui::BeginTable() +// - Important! Sizing policies have complex and subtle side effects, much more so than you would expect. +// Read comments/demos carefully + experiment with live demos to get acquainted with them. +// - The DEFAULT sizing policies are: +// - Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize. +// - Default to ImGuiTableFlags_SizingStretchSame if ScrollX is off. +// - When ScrollX is off: +// - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight. +// - Columns sizing policy allowed: Stretch (default), Fixed/Auto. +// - Fixed Columns (if any) will generally obtain their requested width (unless the table cannot fit them all). +// - Stretch Columns will share the remaining width according to their respective weight. +// - Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. +// The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. +// (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing). +// - When ScrollX is on: +// - Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed +// - Columns sizing policy allowed: Fixed/Auto mostly. +// - Fixed Columns can be enlarged as needed. Table will show a horizontal scrollbar if needed. +// - When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop. +// - Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). +// If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again. +// - Read on documentation at the top of imgui_tables.cpp for details. +enum ImGuiTableFlags_ +{ + // Features + ImGuiTableFlags_None = 0, + ImGuiTableFlags_Resizable = 1 << 0, // Enable resizing columns. + ImGuiTableFlags_Reorderable = 1 << 1, // Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers) + ImGuiTableFlags_Hideable = 1 << 2, // Enable hiding/disabling columns in context menu. + ImGuiTableFlags_Sortable = 1 << 3, // Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate. + ImGuiTableFlags_NoSavedSettings = 1 << 4, // Disable persisting columns order, width and sort settings in the .ini file. + ImGuiTableFlags_ContextMenuInBody = 1 << 5, // Right-click on columns body/contents will display table context menu. By default it is available in TableHeadersRow(). + // Decorations + ImGuiTableFlags_RowBg = 1 << 6, // Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually) + ImGuiTableFlags_BordersInnerH = 1 << 7, // Draw horizontal borders between rows. + ImGuiTableFlags_BordersOuterH = 1 << 8, // Draw horizontal borders at the top and bottom. + ImGuiTableFlags_BordersInnerV = 1 << 9, // Draw vertical borders between columns. + ImGuiTableFlags_BordersOuterV = 1 << 10, // Draw vertical borders on the left and right sides. + ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, // Draw horizontal borders. + ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, // Draw vertical borders. + ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, // Draw inner borders. + ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, // Draw outer borders. + ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, // Draw all borders. + ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appear in Headers). -> May move to style + ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appear in Headers). -> May move to style + // Sizing Policy (read above for defaults) + ImGuiTableFlags_SizingFixedFit = 1 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width. + ImGuiTableFlags_SizingFixedSame = 2 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible. + ImGuiTableFlags_SizingStretchProp = 3 << 13, // Columns default to _WidthStretch with default weights proportional to each columns contents widths. + ImGuiTableFlags_SizingStretchSame = 4 << 13, // Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn(). + // Sizing Extra Options + ImGuiTableFlags_NoHostExtendX = 1 << 16, // Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. + ImGuiTableFlags_NoHostExtendY = 1 << 17, // Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible. + ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, // Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable. + ImGuiTableFlags_PreciseWidths = 1 << 19, // Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth. + // Clipping + ImGuiTableFlags_NoClip = 1 << 20, // Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze(). + // Padding + ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outermost padding. Generally desirable if you have headers. + ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outermost padding. + ImGuiTableFlags_NoPadInnerX = 1 << 23, // Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off). + // Scrolling + ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this creates a child window, ScrollY is currently generally recommended when using ScrollX. + ImGuiTableFlags_ScrollY = 1 << 25, // Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. + // Sorting + ImGuiTableFlags_SortMulti = 1 << 26, // Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1). + ImGuiTableFlags_SortTristate = 1 << 27, // Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0). + + // [Internal] Combinations and masks + ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, +}; + +// Flags for ImGui::TableSetupColumn() +enum ImGuiTableColumnFlags_ +{ + // Input configuration flags + ImGuiTableColumnFlags_None = 0, + ImGuiTableColumnFlags_Disabled = 1 << 0, // Overriding/master disable flag: hide column, won't show in context menu (unlike calling TableSetColumnEnabled() which manipulates the user accessible state) + ImGuiTableColumnFlags_DefaultHide = 1 << 1, // Default as a hidden/disabled column. + ImGuiTableColumnFlags_DefaultSort = 1 << 2, // Default as a sorting column. + ImGuiTableColumnFlags_WidthStretch = 1 << 3, // Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp). + ImGuiTableColumnFlags_WidthFixed = 1 << 4, // Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable). + ImGuiTableColumnFlags_NoResize = 1 << 5, // Disable manual resizing. + ImGuiTableColumnFlags_NoReorder = 1 << 6, // Disable manual reordering this column, this will also prevent other columns from crossing over this column. + ImGuiTableColumnFlags_NoHide = 1 << 7, // Disable ability to hide/disable this column. + ImGuiTableColumnFlags_NoClip = 1 << 8, // Disable clipping for this column (all NoClip columns will render in a same draw command). + ImGuiTableColumnFlags_NoSort = 1 << 9, // Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table). + ImGuiTableColumnFlags_NoSortAscending = 1 << 10, // Disable ability to sort in the ascending direction. + ImGuiTableColumnFlags_NoSortDescending = 1 << 11, // Disable ability to sort in the descending direction. + ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, // TableHeadersRow() will not submit label for this column. Convenient for some small columns. Name will still appear in context menu. + ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, // Disable header text width contribution to automatic column width. + ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, // Make the initial sort direction Ascending when first sorting on this column (default). + ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, // Make the initial sort direction Descending when first sorting on this column. + ImGuiTableColumnFlags_IndentEnable = 1 << 16, // Use current Indent value when entering cell (default for column 0). + ImGuiTableColumnFlags_IndentDisable = 1 << 17, // Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored. + + // Output status flags, read-only via TableGetColumnFlags() + ImGuiTableColumnFlags_IsEnabled = 1 << 24, // Status: is enabled == not hidden by user/api (referred to as "Hide" in _DefaultHide and _NoHide) flags. + ImGuiTableColumnFlags_IsVisible = 1 << 25, // Status: is visible == is enabled AND not clipped by scrolling. + ImGuiTableColumnFlags_IsSorted = 1 << 26, // Status: is currently part of the sort specs + ImGuiTableColumnFlags_IsHovered = 1 << 27, // Status: is hovered by mouse + + // [Internal] Combinations and masks + ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, + ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, + ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, + ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) +}; + +// Flags for ImGui::TableNextRow() +enum ImGuiTableRowFlags_ +{ + ImGuiTableRowFlags_None = 0, + ImGuiTableRowFlags_Headers = 1 << 0, // Identify header row (set default background color + width of its contents accounted differently for auto column width) +}; + +// Enum for ImGui::TableSetBgColor() +// Background colors are rendering in 3 layers: +// - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set. +// - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set. +// - Layer 2: draw with CellBg color if set. +// The purpose of the two row/columns layers is to let you decide if a background color change should override or blend with the existing color. +// When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. +// If you set the color of RowBg0 target, your color will override the existing RowBg0 color. +// If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. +enum ImGuiTableBgTarget_ +{ + ImGuiTableBgTarget_None = 0, + ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) + ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) + ImGuiTableBgTarget_CellBg = 3, // Set cell background color (top-most color) +}; + +// Flags for ImGui::IsWindowFocused() +enum ImGuiFocusedFlags_ +{ + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, // Return true if any children of the window is focused + ImGuiFocusedFlags_RootWindow = 1 << 1, // Test from root window (top most parent of the current hierarchy) + ImGuiFocusedFlags_AnyWindow = 1 << 2, // Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! + ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, // Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + ImGuiFocusedFlags_DockHierarchy = 1 << 4, // Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, +}; + +// Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() +// Note: if you are trying to check whether your mouse should be dispatched to Dear ImGui or to your app, you should use 'io.WantCaptureMouse' instead! Please read the FAQ! +// Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls. +enum ImGuiHoveredFlags_ +{ + ImGuiHoveredFlags_None = 0, // Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them. + ImGuiHoveredFlags_ChildWindows = 1 << 0, // IsWindowHovered() only: Return true if any children of the window is hovered + ImGuiHoveredFlags_RootWindow = 1 << 1, // IsWindowHovered() only: Test from root window (top most parent of the current hierarchy) + ImGuiHoveredFlags_AnyWindow = 1 << 2, // IsWindowHovered() only: Return true if any window is hovered + ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, // IsWindowHovered() only: Do not consider popup hierarchy (do not treat popup emitter as parent of popup) (when used with _ChildWindows or _RootWindow) + ImGuiHoveredFlags_DockHierarchy = 1 << 4, // IsWindowHovered() only: Consider docking hierarchy (treat dockspace host as parent of docked window) (when used with _ChildWindows or _RootWindow) + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, // Return true even if a popup window is normally blocking access to this item/window + //ImGuiHoveredFlags_AllowWhenBlockedByModal = 1 << 6, // Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet. + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. + ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1 << 8, // IsItemHovered() only: Return true even if the item uses AllowOverlap mode and is overlapped by another hoverable item. + ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1 << 9, // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window. + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 10, // IsItemHovered() only: Return true even if the item is disabled + ImGuiHoveredFlags_NoNavOverride = 1 << 11, // IsItemHovered() only: Disable using gamepad/keyboard navigation state when active, always query mouse + ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow, + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, + + // Tooltips mode + // - typically used in IsItemHovered() + SetTooltip() sequence. + // - this is a shortcut to pull flags from 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav' where you can reconfigure desired behavior. + // e.g. 'TooltipHoveredFlagsForMouse' defaults to 'ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort'. + // - for frequently actioned or hovered items providing a tooltip, you want may to use ImGuiHoveredFlags_ForTooltip (stationary + delay) so the tooltip doesn't show too often. + // - for items which main purpose is to be hovered, or items with low affordance, or in less consistent apps, prefer no delay or shorter delay. + ImGuiHoveredFlags_ForTooltip = 1 << 12, // Shortcut for standard flags when using IsItemHovered() + SetTooltip() sequence. + + // (Advanced) Mouse Hovering delays. + // - generally you can use ImGuiHoveredFlags_ForTooltip to use application-standardized flags. + // - use those if you need specific overrides. + ImGuiHoveredFlags_Stationary = 1 << 13, // Require mouse to be stationary for style.HoverStationaryDelay (~0.15 sec) _at least one time_. After this, can move on same item/window. Using the stationary test tends to reduces the need for a long delay. + ImGuiHoveredFlags_DelayNone = 1 << 14, // IsItemHovered() only: Return true immediately (default). As this is the default you generally ignore this. + ImGuiHoveredFlags_DelayShort = 1 << 15, // IsItemHovered() only: Return true after style.HoverDelayShort elapsed (~0.15 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item). + ImGuiHoveredFlags_DelayNormal = 1 << 16, // IsItemHovered() only: Return true after style.HoverDelayNormal elapsed (~0.40 sec) (shared between items) + requires mouse to be stationary for style.HoverStationaryDelay (once per item). + ImGuiHoveredFlags_NoSharedDelay = 1 << 17, // IsItemHovered() only: Disable shared delay system where moving from one item to the next keeps the previous timer for a short time (standard for tooltips with long delays) +}; + +// Flags for ImGui::DockSpace(), shared/inherited by child nodes. +// (Some flags can be applied to individual nodes directly) +// FIXME-DOCK: Also see ImGuiDockNodeFlagsPrivate_ which may involve using the WIP and internal DockBuilder api. +enum ImGuiDockNodeFlags_ +{ + ImGuiDockNodeFlags_None = 0, + ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0, // // Don't display the dockspace node but keep it alive. Windows docked into this dockspace node won't be undocked. + //ImGuiDockNodeFlags_NoCentralNode = 1 << 1, // // Disable Central Node (the node which can stay empty) + ImGuiDockNodeFlags_NoDockingOverCentralNode = 1 << 2, // // Disable docking over the Central Node, which will be always kept empty. + ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, // // Enable passthru dockspace: 1) DockSpace() will render a ImGuiCol_WindowBg background covering everything excepted the Central Node when empty. Meaning the host window should probably use SetNextWindowBgAlpha(0.0f) prior to Begin() when using this. 2) When Central Node is empty: let inputs pass-through + won't display a DockingEmptyBg background. See demo for details. + ImGuiDockNodeFlags_NoDockingSplit = 1 << 4, // // Disable other windows/nodes from splitting this node. + ImGuiDockNodeFlags_NoResize = 1 << 5, // Saved // Disable resizing node using the splitter/separators. Useful with programmatically setup dockspaces. + ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, // // Tab bar will automatically hide when there is a single window in the dock node. + ImGuiDockNodeFlags_NoUndocking = 1 << 7, // // Disable undocking this node. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiDockNodeFlags_NoSplit = ImGuiDockNodeFlags_NoDockingSplit, // Renamed in 1.90 + ImGuiDockNodeFlags_NoDockingInCentralNode = ImGuiDockNodeFlags_NoDockingOverCentralNode, // Renamed in 1.90 +#endif +}; + +// Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() +enum ImGuiDragDropFlags_ +{ + ImGuiDragDropFlags_None = 0, + // BeginDragDropSource() flags + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // Disable preview tooltip. By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior. + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item. + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. + ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, // Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged) + // AcceptDragDropPayload() flags + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, // For peeking ahead and inspecting the payload before delivery. +}; + +// Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" // float[3]: Standard type for colors, without alpha. User code may use this type. +#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" // float[4]: Standard type for colors. User code may use this type. + +// A primary data type +enum ImGuiDataType_ +{ + ImGuiDataType_S8, // signed char / char (with sensible compilers) + ImGuiDataType_U8, // unsigned char + ImGuiDataType_S16, // short + ImGuiDataType_U16, // unsigned short + ImGuiDataType_S32, // int + ImGuiDataType_U32, // unsigned int + ImGuiDataType_S64, // long long / __int64 + ImGuiDataType_U64, // unsigned long long / unsigned __int64 + ImGuiDataType_Float, // float + ImGuiDataType_Double, // double + ImGuiDataType_COUNT +}; + +// A cardinal direction +enum ImGuiDir_ +{ + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT +}; + +// A sorting direction +enum ImGuiSortDirection_ +{ + ImGuiSortDirection_None = 0, + ImGuiSortDirection_Ascending = 1, // Ascending = 0->9, A->Z etc. + ImGuiSortDirection_Descending = 2 // Descending = 9->0, Z->A etc. +}; + +// A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value): can represent Keyboard, Mouse and Gamepad values. +// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87). +// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. +// Read details about the 1.87 and 1.89 transition : https://github.com/ocornut/imgui/issues/4921 +// Note that "Keys" related to physical keys and are not the same concept as input "Characters", the later are submitted via io.AddInputCharacter(). +enum ImGuiKey : int +{ + // Keyboard + ImGuiKey_None = 0, + ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN + ImGuiKey_LeftArrow, + ImGuiKey_RightArrow, + ImGuiKey_UpArrow, + ImGuiKey_DownArrow, + ImGuiKey_PageUp, + ImGuiKey_PageDown, + ImGuiKey_Home, + ImGuiKey_End, + ImGuiKey_Insert, + ImGuiKey_Delete, + ImGuiKey_Backspace, + ImGuiKey_Space, + ImGuiKey_Enter, + ImGuiKey_Escape, + ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper, + ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper, + ImGuiKey_Menu, + ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9, + ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J, + ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T, + ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z, + ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6, + ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12, + ImGuiKey_Apostrophe, // ' + ImGuiKey_Comma, // , + ImGuiKey_Minus, // - + ImGuiKey_Period, // . + ImGuiKey_Slash, // / + ImGuiKey_Semicolon, // ; + ImGuiKey_Equal, // = + ImGuiKey_LeftBracket, // [ + ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) + ImGuiKey_RightBracket, // ] + ImGuiKey_GraveAccent, // ` + ImGuiKey_CapsLock, + ImGuiKey_ScrollLock, + ImGuiKey_NumLock, + ImGuiKey_PrintScreen, + ImGuiKey_Pause, + ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4, + ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9, + ImGuiKey_KeypadDecimal, + ImGuiKey_KeypadDivide, + ImGuiKey_KeypadMultiply, + ImGuiKey_KeypadSubtract, + ImGuiKey_KeypadAdd, + ImGuiKey_KeypadEnter, + ImGuiKey_KeypadEqual, + + // Gamepad (some of those are analog values, 0.0f to 1.0f) // NAVIGATION ACTION + // (download controller mapping PNG/PSD at http://dearimgui.com/controls_sheets) + ImGuiKey_GamepadStart, // Menu (Xbox) + (Switch) Start/Options (PS) + ImGuiKey_GamepadBack, // View (Xbox) - (Switch) Share (PS) + ImGuiKey_GamepadFaceLeft, // X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) + ImGuiKey_GamepadFaceRight, // B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit + ImGuiKey_GamepadFaceUp, // Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard + ImGuiKey_GamepadFaceDown, // A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak + ImGuiKey_GamepadDpadLeft, // D-pad Left // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadRight, // D-pad Right // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadUp, // D-pad Up // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadDown, // D-pad Down // Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadL1, // L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode) + ImGuiKey_GamepadR1, // R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode) + ImGuiKey_GamepadL2, // L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog] + ImGuiKey_GamepadR2, // R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog] + ImGuiKey_GamepadL3, // L Stick (Xbox) L3 (Switch) L3 (PS) + ImGuiKey_GamepadR3, // R Stick (Xbox) R3 (Switch) R3 (PS) + ImGuiKey_GamepadLStickLeft, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickRight, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickUp, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadLStickDown, // [Analog] // Move Window (in Windowing mode) + ImGuiKey_GamepadRStickLeft, // [Analog] + ImGuiKey_GamepadRStickRight, // [Analog] + ImGuiKey_GamepadRStickUp, // [Analog] + ImGuiKey_GamepadRStickDown, // [Analog] + + // Aliases: Mouse Buttons (auto-submitted from AddMouseButtonEvent() calls) + // - This is mirroring the data also written to io.MouseDown[], io.MouseWheel, in a format allowing them to be accessed via standard key API. + ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY, + + // [Internal] Reserved for mod storage + ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, + ImGuiKey_COUNT, + + // Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls) + // - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing + // them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc. + // - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those + // and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl). + // - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys. + // In practice: it's complicated; mods are often provided from different sources. Keyboard layout, IME, sticky keys and + // backends tend to interfere and break that equivalence. The safer decision is to relay that ambiguity down to the end-user... + ImGuiMod_None = 0, + ImGuiMod_Ctrl = 1 << 12, // Ctrl + ImGuiMod_Shift = 1 << 13, // Shift + ImGuiMod_Alt = 1 << 14, // Option/Menu + ImGuiMod_Super = 1 << 15, // Cmd/Super/Windows + ImGuiMod_Shortcut = 1 << 11, // Alias for Ctrl (non-macOS) _or_ Super (macOS). + ImGuiMod_Mask_ = 0xF800, // 5-bits + + // [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array. + // We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE) + // If you need to iterate all keys (for e.g. an input mapper) you may use ImGuiKey_NamedKey_BEGIN..ImGuiKey_NamedKey_END. + ImGuiKey_NamedKey_BEGIN = 512, + ImGuiKey_NamedKey_END = ImGuiKey_COUNT, + ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, +#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO + ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT, // Size of KeysData[]: only hold named keys + ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN, // Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index. +#else + ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, // Size of KeysData[]: hold legacy 0..512 keycodes + named keys + ImGuiKey_KeysData_OFFSET = 0, // Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index. +#endif + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 + ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 +#endif +}; + +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO +// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[]. +// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set. +// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +enum ImGuiNavInput +{ + ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown, + ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast, + ImGuiNavInput_COUNT, +}; +#endif + +// Configuration flags stored in io.ConfigFlags. Set by user/application. +enum ImGuiConfigFlags_ +{ + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. Enable full Tabbing + directional arrows + space/enter to activate. + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad. + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. + ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend. + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, // Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. + + // [BETA] Docking + ImGuiConfigFlags_DockingEnable = 1 << 6, // Docking enable flags. + + // [BETA] Viewports + // When using viewports it is recommended that your default value for ImGuiCol_WindowBg is opaque (Alpha=1.0) so transition to a viewport won't be noticeable. + ImGuiConfigFlags_ViewportsEnable = 1 << 10, // Viewport enable flags (require both ImGuiBackendFlags_PlatformHasViewports + ImGuiBackendFlags_RendererHasViewports set by the respective backends) + ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14, // [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application. + ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15, // [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas and/or fonts in the Platform_OnChangedViewport callback, but this is all early work in progress. + + // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are NOT used by core Dear ImGui) + ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. + ImGuiConfigFlags_IsTouchScreen = 1 << 21, // Application is using a touch screen instead of a mouse. +}; + +// Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. +enum ImGuiBackendFlags_ +{ + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, // Backend Platform supports gamepad and currently has one connected. + ImGuiBackendFlags_HasMouseCursors = 1 << 1, // Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape. + ImGuiBackendFlags_HasSetMousePos = 1 << 2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. + + // [BETA] Viewports + ImGuiBackendFlags_PlatformHasViewports = 1 << 10, // Backend Platform supports multiple viewports. + ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11, // Backend Platform supports calling io.AddMouseViewportEvent() with the viewport under the mouse. IF POSSIBLE, ignore viewports with the ImGuiViewportFlags_NoInputs flag (Win32 backend, GLFW 3.30+ backend can do this, SDL backend cannot). If this cannot be done, Dear ImGui needs to use a flawed heuristic to find the viewport under. + ImGuiBackendFlags_RendererHasViewports = 1 << 12, // Backend Renderer supports multiple viewports. +}; + +// Enumeration for PushStyleColor() / PopStyleColor() +enum ImGuiCol_ +{ + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, // Background of normal windows + ImGuiCol_ChildBg, // Background of child windows + ImGuiCol_PopupBg, // Background of popups, menus, tooltips windows + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, // Background of checkbox, radio button, plot, slider, text input + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, // Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, // Resize grip in lower-right and lower-left corners of windows. + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, // TabItem in a TabBar + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_DockingPreview, // Preview overlay color when about to docking something + ImGuiCol_DockingEmptyBg, // Background color for empty node (e.g. CentralNode with no window docked into it) + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TableHeaderBg, // Table header background + ImGuiCol_TableBorderStrong, // Table outer and header borders (prefer using Alpha=1.0 here) + ImGuiCol_TableBorderLight, // Table inner borders (prefer using Alpha=1.0 here) + ImGuiCol_TableRowBg, // Table row background (even rows) + ImGuiCol_TableRowBgAlt, // Table row background (odd rows) + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target + ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item + ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB + ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active + ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active + ImGuiCol_COUNT +}; + +// Enumeration for PushStyleVar() / PopStyleVar() to temporarily modify the ImGuiStyle structure. +// - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. +// During initialization or between frames, feel free to just poke into ImGuiStyle directly. +// - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. +// In Visual Studio IDE: CTRL+comma ("Edit.GoToAll") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +// - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. +enum ImGuiStyleVar_ +{ + // Enum name --------------------- // Member in ImGuiStyle structure (see ImGuiStyle for descriptions) + ImGuiStyleVar_Alpha, // float Alpha + ImGuiStyleVar_DisabledAlpha, // float DisabledAlpha + ImGuiStyleVar_WindowPadding, // ImVec2 WindowPadding + ImGuiStyleVar_WindowRounding, // float WindowRounding + ImGuiStyleVar_WindowBorderSize, // float WindowBorderSize + ImGuiStyleVar_WindowMinSize, // ImVec2 WindowMinSize + ImGuiStyleVar_WindowTitleAlign, // ImVec2 WindowTitleAlign + ImGuiStyleVar_ChildRounding, // float ChildRounding + ImGuiStyleVar_ChildBorderSize, // float ChildBorderSize + ImGuiStyleVar_PopupRounding, // float PopupRounding + ImGuiStyleVar_PopupBorderSize, // float PopupBorderSize + ImGuiStyleVar_FramePadding, // ImVec2 FramePadding + ImGuiStyleVar_FrameRounding, // float FrameRounding + ImGuiStyleVar_FrameBorderSize, // float FrameBorderSize + ImGuiStyleVar_ItemSpacing, // ImVec2 ItemSpacing + ImGuiStyleVar_ItemInnerSpacing, // ImVec2 ItemInnerSpacing + ImGuiStyleVar_IndentSpacing, // float IndentSpacing + ImGuiStyleVar_CellPadding, // ImVec2 CellPadding + ImGuiStyleVar_ScrollbarSize, // float ScrollbarSize + ImGuiStyleVar_ScrollbarRounding, // float ScrollbarRounding + ImGuiStyleVar_GrabMinSize, // float GrabMinSize + ImGuiStyleVar_GrabRounding, // float GrabRounding + ImGuiStyleVar_TabRounding, // float TabRounding + ImGuiStyleVar_TabBarBorderSize, // float TabBarBorderSize + ImGuiStyleVar_ButtonTextAlign, // ImVec2 ButtonTextAlign + ImGuiStyleVar_SelectableTextAlign, // ImVec2 SelectableTextAlign + ImGuiStyleVar_SeparatorTextBorderSize,// float SeparatorTextBorderSize + ImGuiStyleVar_SeparatorTextAlign, // ImVec2 SeparatorTextAlign + ImGuiStyleVar_SeparatorTextPadding,// ImVec2 SeparatorTextPadding + ImGuiStyleVar_DockingSeparatorSize,// float DockingSeparatorSize + ImGuiStyleVar_COUNT +}; + +// Flags for InvisibleButton() [extended in imgui_internal.h] +enum ImGuiButtonFlags_ +{ + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, // React on left mouse button (default) + ImGuiButtonFlags_MouseButtonRight = 1 << 1, // React on right mouse button + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, // React on center mouse button + + // [Internal] + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, +}; + +// Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() +enum ImGuiColorEditFlags_ +{ + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, // // ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer). + ImGuiColorEditFlags_NoPicker = 1 << 2, // // ColorEdit: disable picker when clicking on color square. + ImGuiColorEditFlags_NoOptions = 1 << 3, // // ColorEdit: disable toggling options menu when right-clicking on inputs/small preview. + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, // // ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs) + ImGuiColorEditFlags_NoInputs = 1 << 5, // // ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square). + ImGuiColorEditFlags_NoTooltip = 1 << 6, // // ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview. + ImGuiColorEditFlags_NoLabel = 1 << 7, // // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker). + ImGuiColorEditFlags_NoSidePreview = 1 << 8, // // ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead. + ImGuiColorEditFlags_NoDragDrop = 1 << 9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source. + ImGuiColorEditFlags_NoBorder = 1 << 10, // // ColorButton: disable border (which is enforced by default) + + // User Options (right-click on widget to change some of them). + ImGuiColorEditFlags_AlphaBar = 1 << 16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker. + ImGuiColorEditFlags_AlphaPreview = 1 << 17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque. + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque. + ImGuiColorEditFlags_HDR = 1 << 19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well). + ImGuiColorEditFlags_DisplayRGB = 1 << 20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex. + ImGuiColorEditFlags_DisplayHSV = 1 << 21, // [Display] // " + ImGuiColorEditFlags_DisplayHex = 1 << 22, // [Display] // " + ImGuiColorEditFlags_Uint8 = 1 << 23, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255. + ImGuiColorEditFlags_Float = 1 << 24, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers. + ImGuiColorEditFlags_PickerHueBar = 1 << 25, // [Picker] // ColorPicker: bar for Hue, rectangle for Sat/Value. + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, // [Picker] // ColorPicker: wheel for Hue, triangle for Sat/Value. + ImGuiColorEditFlags_InputRGB = 1 << 27, // [Input] // ColorEdit, ColorPicker: input and output data in RGB format. + ImGuiColorEditFlags_InputHSV = 1 << 28, // [Input] // ColorEdit, ColorPicker: input and output data in HSV format. + + // Defaults Options. You can set application defaults using SetColorEditOptions(). The intent is that you probably don't want to + // override them in most of your calls. Let the user choose via the option menu and/or call SetColorEditOptions() once during startup. + ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + + // [Internal] Masks + ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, + + // Obsolete names + //ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] +}; + +// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. +// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) +enum ImGuiSliderFlags_ +{ + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. + ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) + ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget + ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. + + // Obsolete names + //ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] +}; + +// Identify a mouse button. +// Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience. +enum ImGuiMouseButton_ +{ + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 +}; + +// Enumeration for GetMouseCursor() +// User code may request backend to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here +enum ImGuiMouseCursor_ +{ + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. + ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) + ImGuiMouseCursor_ResizeNS, // When hovering over a horizontal border + ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column + ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window + ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window + ImGuiMouseCursor_Hand, // (Unused by Dear ImGui functions. Use for e.g. hyperlinks) + ImGuiMouseCursor_NotAllowed, // When hovering something with disallowed interaction. Usually a crossed circle. + ImGuiMouseCursor_COUNT +}; + +// Enumeration for AddMouseSourceEvent() actual source of Mouse Input data. +// Historically we use "Mouse" terminology everywhere to indicate pointer data, e.g. MousePos, IsMousePressed(), io.AddMousePosEvent() +// But that "Mouse" data can come from different source which occasionally may be useful for application to know about. +// You can submit a change of pointer type using io.AddMouseSourceEvent(). +enum ImGuiMouseSource : int +{ + ImGuiMouseSource_Mouse = 0, // Input is coming from an actual mouse. + ImGuiMouseSource_TouchScreen, // Input is coming from a touch screen (no hovering prior to initial press, less precise initial press aiming, dual-axis wheeling possible). + ImGuiMouseSource_Pen, // Input is coming from a pressure/magnetic pen (often used in conjunction with high-sampling rates). + ImGuiMouseSource_COUNT +}; + +// Enumeration for ImGui::SetWindow***(), SetNextWindow***(), SetNextItem***() functions +// Represent a condition. +// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always. +enum ImGuiCond_ +{ + ImGuiCond_None = 0, // No condition (always set the variable), same as _Always + ImGuiCond_Always = 1 << 0, // No condition (always set the variable), same as _None + ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) + ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) + ImGuiCond_Appearing = 1 << 3, // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers: Memory allocations macros, ImVector<> +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// IM_MALLOC(), IM_FREE(), IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() +// We call C++ constructor on own allocated memory via the placement "new(ptr) Type()" syntax. +// Defining a custom placement new() with a custom parameter allows us to bypass including which on some platforms complains when user has disabled exceptions. +//----------------------------------------------------------------------------- + +struct ImNewWrapper {}; +inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; } +inline void operator delete(void*, ImNewWrapper, void*) {} // This is only required so we can use the symmetrical new() +#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) +#define IM_FREE(_PTR) ImGui::MemFree(_PTR) +#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) +#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE +template void IM_DELETE(T* p) { if (p) { p->~T(); ImGui::MemFree(p); } } + +//----------------------------------------------------------------------------- +// ImVector<> +// Lightweight std::vector<>-like class to avoid dragging dependencies (also, some implementations of STL with debug enabled are absurdly slow, we bypass it so our code runs fast in debug). +//----------------------------------------------------------------------------- +// - You generally do NOT need to care or use this ever. But we need to make it available in imgui.h because some of our public structures are relying on it. +// - We use std-like naming convention here, which is a little unusual for this codebase. +// - Important: clear() frees memory, resize(0) keep the allocated buffer. We use resize(0) a lot to intentionally recycle allocated buffers across frames and amortize our costs. +// - Important: our implementation does NOT call C++ constructors/destructors, we treat everything as raw data! This is intentional but be extra mindful of that, +// Do NOT use this class as a std::vector replacement in your own code! Many of the structures used by dear imgui can be safely initialized by a zero-memset. +//----------------------------------------------------------------------------- + +IM_MSVC_RUNTIME_CHECKS_OFF +template +struct ImVector +{ + int Size; + int Capacity; + T* Data; + + // Provide standard typedefs but we don't use them ourselves. + typedef T value_type; + typedef value_type* iterator; + typedef const value_type* const_iterator; + + // Constructors, destructor + inline ImVector() { Size = Capacity = 0; Data = NULL; } + inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } + inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); if (src.Data) memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } + inline ~ImVector() { if (Data) IM_FREE(Data); } // Important: does not destruct anything + + inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } // Important: does not destruct anything + inline void clear_delete() { for (int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); } // Important: never called automatically! always explicit. + inline void clear_destruct() { for (int n = 0; n < Size; n++) Data[n].~T(); clear(); } // Important: never called automatically! always explicit. + + inline bool empty() const { return Size == 0; } + inline int size() const { return Size; } + inline int size_in_bytes() const { return Size * (int)sizeof(T); } + inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); } + inline int capacity() const { return Capacity; } + inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return Data + Size; } + inline const T* end() const { return Data + Size; } + inline T& front() { IM_ASSERT(Size > 0); return Data[0]; } + inline const T& front() const { IM_ASSERT(Size > 0); return Data[0]; } + inline T& back() { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline const T& back() const { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline void swap(ImVector& rhs) { int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size; int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data; } + + inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8; return new_capacity > sz ? new_capacity : sz; } + inline void resize(int new_size) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; } + inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } + inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation + inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } + inline void reserve_discard(int new_capacity) { if (new_capacity <= Capacity) return; if (Data) IM_FREE(Data); Data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); Capacity = new_capacity; } + + // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. + inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } + inline void pop_back() { IM_ASSERT(Size > 0); Size--; } + inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } + inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } + inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last >= it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - (size_t)count) * sizeof(T)); Size -= (int)count; return Data + off; } + inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } + inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } + inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } + inline T* find(const T& v) { T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline const T* find(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline int find_index(const T& v) const { const T* data_end = Data + Size; const T* it = find(v); if (it == data_end) return -1; const ptrdiff_t off = it - Data; return (int)off; } + inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; } + inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; } + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; return (int)off; } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStyle +//----------------------------------------------------------------------------- +// You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame(). +// During the frame, use ImGui::PushStyleVar(ImGuiStyleVar_XXXX)/PopStyleVar() to alter the main style values, +// and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. +//----------------------------------------------------------------------------- + +struct ImGuiStyle +{ + float Alpha; // Global alpha applies to everything in Dear ImGui. + float DisabledAlpha; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + ImVec2 WindowPadding; // Padding within a window. + float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. + ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. + float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. + float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) + float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). + float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). + float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. + ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). + ImVec2 CellPadding; // Padding within a table cell. CellPadding.y may be altered between different rows. + ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. + float ScrollbarRounding; // Radius of grab corners for scrollbar. + float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. + float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + float TabBorderSize; // Thickness of border around tabs. + float TabMinWidthForCloseButton; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + float TabBarBorderSize; // Thickness of tab-bar separator, which takes on the tab active color to denote focus. + ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). + ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + float SeparatorTextBorderSize; // Thickkness of border in SeparatorText() + ImVec2 SeparatorTextAlign; // Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center). + ImVec2 SeparatorTextPadding; // Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y. + ImVec2 DisplayWindowPadding; // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! + float DockingSeparatorSize; // Thickness of resizing border between docked windows + float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later. + bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + ImVec4 Colors[ImGuiCol_COUNT]; + + // Behaviors + // (It is possible to modify those fields mid-frame if specific behavior need it, unlike e.g. configuration fields in ImGuiIO) + float HoverStationaryDelay; // Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary. + float HoverDelayShort; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay. + float HoverDelayNormal; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). " + ImGuiHoveredFlags HoverFlagsForTooltipMouse;// Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse. + ImGuiHoveredFlags HoverFlagsForTooltipNav; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad. + + IMGUI_API ImGuiStyle(); + IMGUI_API void ScaleAllSizes(float scale_factor); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiIO +//----------------------------------------------------------------------------- +// Communicate most settings and inputs/outputs to Dear ImGui using this structure. +// Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. +//----------------------------------------------------------------------------- + +// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions. +// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration. +struct ImGuiKeyData +{ + bool Down; // True for if key is down + float DownDuration; // Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held) + float DownDurationPrev; // Last frame duration the key has been down + float AnalogValue; // 0.0f..1.0f for gamepad values +}; + +struct ImGuiIO +{ + //------------------------------------------------------------------ + // Configuration // Default value + //------------------------------------------------------------------ + + ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. + ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. + ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. + float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. + const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. + const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). + void* UserData; // = NULL // Store your own data. + + ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. + float FontGlobalScale; // = 1.0f // Global scale all fonts + bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel. + ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. + ImVec2 DisplayFramebufferScale; // = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. + + // Docking options (when ImGuiConfigFlags_DockingEnable is set) + bool ConfigDockingNoSplit; // = false // Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars. + bool ConfigDockingWithShift; // = false // Enable docking with holding Shift key (reduce visual noise, allows dropping in wider space) + bool ConfigDockingAlwaysTabBar; // = false // [BETA] [FIXME: This currently creates regression with auto-sizing and general overhead] Make every single floating window display within a docking node. + bool ConfigDockingTransparentPayload;// = false // [BETA] Make window or viewport transparent when docking and only display docking boxes on the target viewport. Useful if rendering of multiple viewport cannot be synced. Best used with ConfigViewportsNoAutoMerge. + + // Viewport options (when ImGuiConfigFlags_ViewportsEnable is set) + bool ConfigViewportsNoAutoMerge; // = false; // Set to make all floating imgui windows always create their own viewport. Otherwise, they are merged into the main host viewports when overlapping it. May also set ImGuiViewportFlags_NoAutoMerge on individual viewport. + bool ConfigViewportsNoTaskBarIcon; // = false // Disable default OS task bar icon flag for secondary viewports. When a viewport doesn't want a task bar icon, ImGuiViewportFlags_NoTaskBarIcon will be set on it. + bool ConfigViewportsNoDecoration; // = true // Disable default OS window decoration flag for secondary viewports. When a viewport doesn't want window decorations, ImGuiViewportFlags_NoDecoration will be set on it. Enabling decoration can create subsequent issues at OS levels (e.g. minimum window size). + bool ConfigViewportsNoDefaultParent; // = false // Disable default OS parenting to main viewport for secondary viewports. By default, viewports are marked with ParentViewportId = , expecting the platform backend to setup a parent/child relationship between the OS windows (some backend may ignore this). Set to true if you want the default to be 0, then all viewports will be top-level OS windows. + + // Miscellaneous options + bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. + bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. + bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. + bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). + bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). + bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. + bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) + bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. + float ConfigMemoryCompactTimer; // = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable. + + // Inputs Behaviors + // (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle) + float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. + float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. + float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + + //------------------------------------------------------------------ + // Debug options + //------------------------------------------------------------------ + + // Tools to test correct Begin/End and BeginChild/EndChild behaviors. + // Presently Begin()/End() and BeginChild()/EndChild() needs to ALWAYS be called in tandem, regardless of return value of BeginXXX() + // This is inconsistent with other BeginXXX functions and create confusion for many users. + // We expect to update the API eventually. In the meanwhile we provide tools to facilitate checking user-code behavior. + bool ConfigDebugBeginReturnValueOnce;// = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT APPLICATION BOOT TIME if you don't want to miss windows. + bool ConfigDebugBeginReturnValueLoop;// = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop then occasionally press SHIFT. Windows should be flickering while running. + + // Option to deactivate io.AddFocusEvent(false) handling. May facilitate interactions with a debugger when focus loss leads to clearing inputs data. + // Backends may have other side-effects on focus loss, so this will reduce side-effects but not necessary remove all of them. + // Consider using e.g. Win32's IsDebuggerPresent() as an additional filter (or see ImOsIsDebuggerPresent() in imgui_test_engine/imgui_te_utils.cpp for a Unix compatible version). + bool ConfigDebugIgnoreFocusLoss; // = false // Ignore io.AddFocusEvent(false), consequently not calling io.ClearInputKeys() in input processing. + + // Option to audit .ini data + bool ConfigDebugIniSettings; // = false // Save .ini data with extra comments (particularly helpful for Docking, but makes saving slower) + + //------------------------------------------------------------------ + // Platform Functions + // (the imgui_impl_xxxx backend files are setting those up for you) + //------------------------------------------------------------------ + + // Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff. + const char* BackendPlatformName; // = NULL + const char* BackendRendererName; // = NULL + void* BackendPlatformUserData; // = NULL // User data for platform backend + void* BackendRendererUserData; // = NULL // User data for renderer backend + void* BackendLanguageUserData; // = NULL // User data for non C++ programming language backend + + // Optional: Access OS clipboard + // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + + // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) + // (default to use native imm32 api on Windows) + void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + void* ImeWindowHandle; // = NULL // [Obsoleted in 1.87] Set ImGuiViewport::PlatformHandleRaw instead. Set this to your HWND to get automatic IME cursor positioning. +#else + void* _UnusedPadding; // Unused field to keep data structure the same size. +#endif + + // Optional: Platform locale + ImWchar PlatformLocaleDecimalPoint; // '.' // [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point + + //------------------------------------------------------------------ + // Input - Call before calling NewFrame() + //------------------------------------------------------------------ + + // Input Functions + IMGUI_API void AddKeyEvent(ImGuiKey key, bool down); // Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) + IMGUI_API void AddKeyAnalogEvent(ImGuiKey key, bool down, float v); // Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. + IMGUI_API void AddMousePosEvent(float x, float y); // Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered) + IMGUI_API void AddMouseButtonEvent(int button, bool down); // Queue a mouse button change + IMGUI_API void AddMouseWheelEvent(float wheel_x, float wheel_y); // Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left. + IMGUI_API void AddMouseSourceEvent(ImGuiMouseSource source); // Queue a mouse source change (Mouse/TouchScreen/Pen) + IMGUI_API void AddMouseViewportEvent(ImGuiID id); // Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support). + IMGUI_API void AddFocusEvent(bool focused); // Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window) + IMGUI_API void AddInputCharacter(unsigned int c); // Queue a new character input + IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue a new character input from a UTF-16 character, it can be a surrogate + IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue a new characters input from a UTF-8 string + + IMGUI_API void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1); // [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode. + IMGUI_API void SetAppAcceptingEvents(bool accepting_events); // Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. + IMGUI_API void ClearEventsQueue(); // Clear all incoming events. + IMGUI_API void ClearInputKeys(); // Clear current keyboard/mouse/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons. +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + IMGUI_API void ClearInputCharacters(); // [Obsolete] Clear the current frame text input buffer. Now included within ClearInputKeys(). +#endif + + //------------------------------------------------------------------ + // Output - Updated by NewFrame() or EndFrame()/Render() + // (when reading from the io.WantCaptureMouse, io.WantCaptureKeyboard flags to dispatch your inputs, it is + // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) + //------------------------------------------------------------------ + + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + + // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.KeysDown[] (native indices) every frame. + // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call io.AddKeyEvent(). + // Old (<1.87): ImGui::IsKeyPressed(ImGui::GetIO().KeyMap[ImGuiKey_Space]) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. + bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. + float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. +#endif + + //------------------------------------------------------------------ + // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! + //------------------------------------------------------------------ + + ImGuiContext* Ctx; // Parent UI context (needs to be set explicitly by parent). + + // Main Input State + // (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead) + // (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere) + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold SHIFT to turn vertical scroll into horizontal scroll. + float MouseWheelH; // Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. + ImGuiMouseSource MouseSource; // Mouse actual input peripheral (Mouse/TouchScreen/Pen). + ImGuiID MouseHoveredViewport; // (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows). + bool KeyCtrl; // Keyboard modifier down: Control + bool KeyShift; // Keyboard modifier down: Shift + bool KeyAlt; // Keyboard modifier down: Alt + bool KeySuper; // Keyboard modifier down: Cmd/Super/Windows + + // Other state maintained from data above + IO function calls + ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags. DOES NOT CONTAINS ImGuiMod_Shortcut which is pretranslated). Read-only, updated by NewFrame() + ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; // Key state for all known keys. Use IsKeyXXX() functions to access this. + bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) + ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down + ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. + bool MouseReleased[5]; // Mouse button went from Down to !Down + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. + bool MouseWheelRequestAxisSwap; // On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system. + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + bool AppFocusLost; // Only modify via AddFocusEvent() + bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() + ImS8 BackendUsingLegacyKeyArrays; // -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[] + bool BackendUsingLegacyNavInputArray; // 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() + ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. + + IMGUI_API ImGuiIO(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Misc data structures +//----------------------------------------------------------------------------- + +// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. +// The callback function should return 0 by default. +// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details) +// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) +// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration +// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB +// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows +// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. +// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. +struct ImGuiInputTextCallbackData +{ + ImGuiContext* Ctx; // Parent UI context + ImGuiInputTextFlags EventFlag; // One ImGuiInputTextFlags_Callback* // Read-only + ImGuiInputTextFlags Flags; // What user passed to InputText() // Read-only + void* UserData; // What user passed to InputText() // Read-only + + // Arguments for the different callback events + // - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary. + // - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state. + ImWchar EventChar; // Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0; + ImGuiKey EventKey; // Key pressed (Up/Down/TAB) // Read-only // [Completion,History] + char* Buf; // Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer! + int BufTextLen; // Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length() + int BufSize; // Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1 + bool BufDirty; // Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always] + int CursorPos; // // Read-write // [Completion,History,Always] + int SelectionStart; // // Read-write // [Completion,History,Always] == to SelectionEnd when no selection) + int SelectionEnd; // // Read-write // [Completion,History,Always] + + // Helper functions for text manipulation. + // Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection. + IMGUI_API ImGuiInputTextCallbackData(); + IMGUI_API void DeleteChars(int pos, int bytes_count); + IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); + void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } + void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } + bool HasSelection() const { return SelectionStart != SelectionEnd; } +}; + +// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). +// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. +struct ImGuiSizeCallbackData +{ + void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in here (need reinterpret_cast<>). + ImVec2 Pos; // Read-only. Window position, for reference. + ImVec2 CurrentSize; // Read-only. Current window size. + ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. +}; + +// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions. +// Important: the content of this class is still highly WIP and likely to change and be refactored +// before we stabilize Docking features. Please be mindful if using this. +// Provide hints: +// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.) +// - To the platform backend for OS level parent/child relationships of viewport. +// - To the docking system for various options and filtering. +struct ImGuiWindowClass +{ + ImGuiID ClassId; // User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each others. + ImGuiID ParentViewportId; // Hint for the platform backend. -1: use default. 0: request platform backend to not parent the platform. != 0: request platform backend to create a parent<>child relationship between the platform windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not. + ImGuiViewportFlags ViewportFlagsOverrideSet; // Viewport flags to set when a window of this class owns a viewport. This allows you to enforce OS decoration or task bar icon, override the defaults on a per-window basis. + ImGuiViewportFlags ViewportFlagsOverrideClear; // Viewport flags to clear when a window of this class owns a viewport. This allows you to enforce OS decoration or task bar icon, override the defaults on a per-window basis. + ImGuiTabItemFlags TabItemFlagsOverrideSet; // [EXPERIMENTAL] TabItem flags to set when a window of this class gets submitted into a dock node tab bar. May use with ImGuiTabItemFlags_Leading or ImGuiTabItemFlags_Trailing. + ImGuiDockNodeFlags DockNodeFlagsOverrideSet; // [EXPERIMENTAL] Dock node flags to set when a window of this class is hosted by a dock node (it doesn't have to be selected!) + bool DockingAlwaysTabBar; // Set to true to enforce single floating windows of this class always having their own docking node (equivalent of setting the global io.ConfigDockingAlwaysTabBar) + bool DockingAllowUnclassed; // Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK: Move to DockNodeFlags override? + + ImGuiWindowClass() { memset(this, 0, sizeof(*this)); ParentViewportId = (ImGuiID)-1; DockingAllowUnclassed = true; } +}; + +// Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload() +struct ImGuiPayload +{ + // Members + void* Data; // Data (copied and owned by dear imgui) + int DataSize; // Data size + + // [Internal] + ImGuiID SourceId; // Source item id + ImGuiID SourceParentId; // Source parent id (if available) + int DataFrameCount; // Data timestamp + char DataType[32 + 1]; // Data type tag (short user-supplied string, 32 characters max) + bool Preview; // Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle overlapping drag targets) + bool Delivery; // Set when AcceptDragDropPayload() was called and mouse button is released over the target item. + + ImGuiPayload() { Clear(); } + void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0, sizeof(DataType)); DataFrameCount = -1; Preview = Delivery = false; } + bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } + bool IsPreview() const { return Preview; } + bool IsDelivery() const { return Delivery; } +}; + +// Sorting specification for one column of a table (sizeof == 12 bytes) +struct ImGuiTableColumnSortSpecs +{ + ImGuiID ColumnUserID; // User id of the column (if specified by a TableSetupColumn() call) + ImS16 ColumnIndex; // Index of the column + ImS16 SortOrder; // Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here) + ImGuiSortDirection SortDirection : 8; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending + + ImGuiTableColumnSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +// Sorting specifications for a table (often handling sort specs for a single column, occasionally more) +// Obtained by calling TableGetSortSpecs(). +// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time. +// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame! +struct ImGuiTableSortSpecs +{ + const ImGuiTableColumnSortSpecs* Specs; // Pointer to sort spec array. + int SpecsCount; // Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when ImGuiTableFlags_SortTristate is enabled. + bool SpecsDirty; // Set to true when specs have changed since last time! Use this to sort again, then clear the flag. + + ImGuiTableSortSpecs() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, Math Operators, ImColor) +//----------------------------------------------------------------------------- + +// Helper: Unicode defines +#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD // Invalid Unicode code point (standard value). +#ifdef IMGUI_USE_WCHAR32 +#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF // Maximum Unicode code point supported by this build. +#else +#define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. +#endif + +// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create a UI within deep-nested code that runs multiple times every frame. +// Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); +struct ImGuiOnceUponAFrame +{ + ImGuiOnceUponAFrame() { RefFrame = -1; } + mutable int RefFrame; + operator bool() const { int current_frame = ImGui::GetFrameCount(); if (RefFrame == current_frame) return false; RefFrame = current_frame; return true; } +}; + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +struct ImGuiTextFilter +{ + IMGUI_API ImGuiTextFilter(const char* default_filter = ""); + IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build + IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const; + IMGUI_API void Build(); + void Clear() { InputBuf[0] = 0; Build(); } + bool IsActive() const { return !Filters.empty(); } + + // [Internal] + struct ImGuiTextRange + { + const char* b; + const char* e; + + ImGuiTextRange() { b = e = NULL; } + ImGuiTextRange(const char* _b, const char* _e) { b = _b; e = _e; } + bool empty() const { return b == e; } + IMGUI_API void split(char separator, ImVector* out) const; + }; + char InputBuf[256]; + ImVectorFilters; + int CountGrep; +}; + +// Helper: Growable text buffer for logging/accumulating text +// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder') +struct ImGuiTextBuffer +{ + ImVector Buf; + IMGUI_API static char EmptyString[1]; + + ImGuiTextBuffer() { } + inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; } + const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; } + const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } // Buf is zero-terminated, so end() will point on the zero-terminator + int size() const { return Buf.Size ? Buf.Size - 1 : 0; } + bool empty() const { return Buf.Size <= 1; } + void clear() { Buf.clear(); } + void reserve(int capacity) { Buf.reserve(capacity); } + const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; } + IMGUI_API void append(const char* str, const char* str_end = NULL); + IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2); + IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2); +}; + +// Helper: Key->Value storage +// Typically you don't have to worry about this since a storage is held within each Window. +// We use it to e.g. store collapse state for a tree (Int 0/1) +// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame) +// You can use it as custom user storage for temporary values. Declare your own storage if, for example: +// - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state). +// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient) +// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types. +struct ImGuiStorage +{ + // [Internal] + struct ImGuiStoragePair + { + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; + ImGuiStoragePair(ImGuiID _key, int _val_i) { key = _key; val_i = _val_i; } + ImGuiStoragePair(ImGuiID _key, float _val_f) { key = _key; val_f = _val_f; } + ImGuiStoragePair(ImGuiID _key, void* _val_p) { key = _key; val_p = _val_p; } + }; + + ImVector Data; + + // - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) + // - Set***() functions find pair, insertion on demand if missing. + // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. + void Clear() { Data.clear(); } + IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const; + IMGUI_API void SetInt(ImGuiID key, int val); + IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const; + IMGUI_API void SetBool(ImGuiID key, bool val); + IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const; + IMGUI_API void SetFloat(ImGuiID key, float val); + IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL + IMGUI_API void SetVoidPtr(ImGuiID key, void* val); + + // - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set. + // - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. + // - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct) + // float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar; + IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0); + IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false); + IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f); + IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL); + + // Use on your own storage if you know only integer are being stored (open/close all tree nodes) + IMGUI_API void SetAllInt(int val); + + // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. + IMGUI_API void BuildSortByKey(); +}; + +// Helper: Manually clip large list of items. +// If you have lots evenly spaced items and you have random access to the list, you can perform coarse +// clipping based on visibility to only submit items that are in view. +// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. +// (Dear ImGui already clip items based on their bounds but: it needs to first layout the item to do so, and generally +// fetching/submitting your own data incurs additional cost. Coarse clipping using ImGuiListClipper allows you to easily +// scale using lists with tens of thousands of items without a problem) +// Usage: +// ImGuiListClipper clipper; +// clipper.Begin(1000); // We have 1000 elements, evenly spaced. +// while (clipper.Step()) +// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) +// ImGui::Text("line number %d", i); +// Generally what happens is: +// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not. +// - User code submit that one element. +// - Clipper can measure the height of the first element +// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element. +// - User code submit visible elements. +// - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc. +struct ImGuiListClipper +{ + ImGuiContext* Ctx; // Parent UI context + int DisplayStart; // First item to display, updated by each call to Step() + int DisplayEnd; // End of items to display (exclusive) + int ItemsCount; // [Internal] Number of items + float ItemsHeight; // [Internal] Height of item after a first step and item submission can calculate it + float StartPosY; // [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed + void* TempData; // [Internal] Internal data + + // items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step) + // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing(). + IMGUI_API ImGuiListClipper(); + IMGUI_API ~ImGuiListClipper(); + IMGUI_API void Begin(int items_count, float items_height = -1.0f); + IMGUI_API void End(); // Automatically called on the last call of Step() that returns false. + IMGUI_API bool Step(); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items. + + // Call IncludeItemByIndex() or IncludeItemsByIndex() *BEFORE* first call to Step() if you need a range of items to not be clipped, regardless of their visibility. + // (Due to alignment / padding of certain items it is possible that an extra item may be included on either end of the display range). + inline void IncludeItemByIndex(int item_index) { IncludeItemsByIndex(item_index, item_index + 1); } + IMGUI_API void IncludeItemsByIndex(int item_begin, int item_end); // item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void IncludeRangeByIndices(int item_begin, int item_end) { IncludeItemsByIndex(item_begin, item_end); } // [renamed in 1.89.9] + inline void ForceDisplayRangeByIndices(int item_begin, int item_end) { IncludeItemsByIndex(item_begin, item_end); } // [renamed in 1.89.6] + //inline ImGuiListClipper(int items_count, float items_height = -1.0f) { memset(this, 0, sizeof(*this)); ItemsCount = -1; Begin(items_count, items_height); } // [removed in 1.79] +#endif +}; + +// Helpers: ImVec2/ImVec4 operators +// - It is important that we are keeping those disabled by default so they don't leak in user space. +// - This is in order to allow user enabling implicit cast operators between ImVec2/ImVec4 and their own types (using IM_VEC2_CLASS_EXTRA in imconfig.h) +// - You can use '#define IMGUI_DEFINE_MATH_OPERATORS' to import our operators, provided as a courtesy. +#ifdef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED +IM_MSVC_RUNTIME_CHECKS_OFF +static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } +static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } +static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } +static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } +static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); } +static inline ImVec2 operator-(const ImVec2& lhs) { return ImVec2(-lhs.x, -lhs.y); } +static inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } +static inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } +static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } +static inline ImVec2& operator*=(ImVec2& lhs, const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } +static inline ImVec4 operator+(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } +static inline ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } +static inline ImVec4 operator*(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } +IM_MSVC_RUNTIME_CHECKS_RESTORE +#endif + +// Helpers macros to generate 32-bit encoded colors +// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +#ifndef IM_COL32_R_SHIFT +#ifdef IMGUI_USE_BGRA_PACKED_COLOR +#define IM_COL32_R_SHIFT 16 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 0 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#else +#define IM_COL32_R_SHIFT 0 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 16 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#endif +#endif +#define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * (1.0f / 255.0f), (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * (1.0f / 255.0f), (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * (1.0f / 255.0f), (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * (1.0f / 255.0f)) {} + inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } + inline operator ImVec4() const { return Value; } + + // FIXME-OBSOLETE: May need to obsolete/cleanup those helpers. + inline void SetHSV(float h, float s, float v, float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Value.y, Value.z); Value.w = a; } + static ImColor HSV(float h, float s, float v, float a = 1.0f) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b); return ImColor(r, g, b, a); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) +// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList. +//----------------------------------------------------------------------------- + +// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking. +#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX +#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) +#endif + +// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] +// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, +// you can poke into the draw list for that! Draw callback may be useful for example to: +// A) Change your GPU render state, +// B) render a complex 3D scene inside a UI element without an intermediate texture/render target, etc. +// The expected behavior from your rendering function is 'if (cmd.UserCallback != NULL) { cmd.UserCallback(parent_list, cmd); } else { RenderTriangles() }' +// If you want to override the signature of ImDrawCallback, you can simply use e.g. '#define ImDrawCallback MyDrawCallback' (in imconfig.h) + update rendering backend accordingly. +#ifndef ImDrawCallback +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); +#endif + +// Special Draw callback value to request renderer backend to reset the graphics/render state. +// The renderer backend needs to handle this special value, otherwise it will crash trying to call a function at this address. +// This is useful for example if you submitted callbacks which you know have altered the render state and you want it to be restored. +// It is not done by default because they are many perfectly useful way of altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). +#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) + +// Typically, 1 command = 1 GPU draw call (unless command is a callback) +// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, +// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. +// Backends made for <1.71. will typically ignore the VtxOffset fields. +// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). +struct ImDrawCmd +{ + ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates + ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. + unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. + unsigned int IdxOffset; // 4 // Start offset in index buffer. + unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. + ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. + void* UserCallbackData; // 4-8 // The draw callback code can access this. + + ImDrawCmd() { memset(this, 0, sizeof(*this)); } // Also ensure our padding fields are zeroed + + // Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature) + inline ImTextureID GetTexID() const { return TextureId; } +}; + +// Vertex layout +#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT +struct ImDrawVert +{ + ImVec2 pos; + ImVec2 uv; + ImU32 col; +}; +#else +// You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h +// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. +// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared at the time you'd want to set your type up. +// NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. +IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; +#endif + +// [Internal] For use by ImDrawList +struct ImDrawCmdHeader +{ + ImVec4 ClipRect; + ImTextureID TextureId; + unsigned int VtxOffset; +}; + +// [Internal] For use by ImDrawListSplitter +struct ImDrawChannel +{ + ImVector _CmdBuffer; + ImVector _IdxBuffer; +}; + + +// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. +// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call. +struct ImDrawListSplitter +{ + int _Current; // Current channel number (0) + int _Count; // Number of active channels (1+) + ImVector _Channels; // Draw channels (not resized down so _Count might be < Channels.Size) + + inline ImDrawListSplitter() { memset(this, 0, sizeof(*this)); } + inline ~ImDrawListSplitter() { ClearFreeMemory(); } + inline void Clear() { _Current = 0; _Count = 1; } // Do not clear Channels[] so our allocations are reused next frame + IMGUI_API void ClearFreeMemory(); + IMGUI_API void Split(ImDrawList* draw_list, int count); + IMGUI_API void Merge(ImDrawList* draw_list); + IMGUI_API void SetCurrentChannel(ImDrawList* draw_list, int channel_idx); +}; + +// Flags for ImDrawList functions +// (Legacy: bit 0 must always correspond to ImDrawFlags_Closed to be backward compatible with old API using a bool. Bits 1..3 must be unused) +enum ImDrawFlags_ +{ + ImDrawFlags_None = 0, + ImDrawFlags_Closed = 1 << 0, // PathStroke(), AddPolyline(): specify that shape should be closed (Important: this is always == 1 for legacy reason) + ImDrawFlags_RoundCornersTopLeft = 1 << 4, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-left corner only (when rounding > 0.0f, we default to all corners). Was 0x01. + ImDrawFlags_RoundCornersTopRight = 1 << 5, // AddRect(), AddRectFilled(), PathRect(): enable rounding top-right corner only (when rounding > 0.0f, we default to all corners). Was 0x02. + ImDrawFlags_RoundCornersBottomLeft = 1 << 6, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-left corner only (when rounding > 0.0f, we default to all corners). Was 0x04. + ImDrawFlags_RoundCornersBottomRight = 1 << 7, // AddRect(), AddRectFilled(), PathRect(): enable rounding bottom-right corner only (when rounding > 0.0f, we default to all corners). Wax 0x08. + ImDrawFlags_RoundCornersNone = 1 << 8, // AddRect(), AddRectFilled(), PathRect(): disable rounding on all corners (when rounding > 0.0f). This is NOT zero, NOT an implicit flag! + ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, + ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, + ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, + ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, // Default to ALL corners if none of the _RoundCornersXX flags are specified. + ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, +}; + +// Flags for ImDrawList instance. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. +// It is however possible to temporarily alter flags between calls to ImDrawList:: functions. +enum ImDrawListFlags_ +{ + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). + ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). + ImDrawListFlags_AllowVtxOffset = 1 << 3, // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. +}; + +// Draw command list +// This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame, +// all command lists are passed to your ImGuiIO::RenderDrawListFn function for rendering. +// Each dear imgui window contains its own ImDrawList. You can use ImGui::GetWindowDrawList() to +// access the current window draw list and draw custom primitives. +// You can interleave normal ImGui:: calls and adding primitives to the current draw list. +// In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize). +// You are totally free to apply whatever transformation matrix to want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!) +// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects. +struct ImDrawList +{ + // This is what you have to render + ImVector CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. + ImVector IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those + ImVector VtxBuffer; // Vertex buffer. + ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. + + // [Internal, used while building lists] + unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. + ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + const char* _OwnerName; // Pointer to owner window's name for debugging + ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImVector _ClipRectStack; // [Internal] + ImVector _TextureIdStack; // [Internal] + ImVector _Path; // [Internal] current path building + ImDrawCmdHeader _CmdHeader; // [Internal] template of active commands. Fields should match those of CmdBuffer.back(). + ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) + float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content + + // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) + ImDrawList(ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } + + ~ImDrawList() { _ClearFreeMemory(); } + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) + IMGUI_API void PushClipRectFullScreen(); + IMGUI_API void PopClipRect(); + IMGUI_API void PushTextureID(ImTextureID texture_id); + IMGUI_API void PopTextureID(); + inline ImVec2 GetClipRectMin() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.x, cr.y); } + inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } + + // Primitives + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. + // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). + // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. + // In future versions we will use textures to provide cheaper and higher-quality circles. + // Use AddNgon() and AddNgonFilled() functions if you need to guarantee a specific number of sides. + IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); + IMGUI_API void AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col); + IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col); + IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f); + IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0); + IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f); + IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments); + IMGUI_API void AddEllipse(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0, float thickness = 1.0f); + IMGUI_API void AddEllipseFilled(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0); + IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); + IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); + IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); + IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); + IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); // Quadratic Bezier (3 control points) + + // Image primitives + // - Read FAQ to understand what ImTextureID is. + // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. + // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. + IMGUI_API void AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min = ImVec2(0, 0), const ImVec2& uv_max = ImVec2(1, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1 = ImVec2(0, 0), const ImVec2& uv2 = ImVec2(1, 0), const ImVec2& uv3 = ImVec2(1, 1), const ImVec2& uv4 = ImVec2(0, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags = 0); + + // Stateful path API, add points then finish with PathFillConvex() or PathStroke() + // - Filled shapes must always use clockwise winding order. The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. + inline void PathClear() { _Path.Size = 0; } + inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } + inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } + inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } + inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; } + IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0); + IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle + IMGUI_API void PathEllipticalArcTo(const ImVec2& center, float radius_x, float radius_y, float rot, float a_min, float a_max, int num_segments = 0); // Ellipse + IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); // Cubic Bezier (4 control points) + IMGUI_API void PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments = 0); // Quadratic Bezier (3 control points) + IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawFlags flags = 0); + + // Advanced + IMGUI_API void AddCallback(ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. + IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible + IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. + + // Advanced: Channels + // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) + // - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) + // - This API shouldn't have been in ImDrawList in the first place! + // Prefer using your own persistent instance of ImDrawListSplitter as you can stack them. + // Using the ImDrawList::ChannelsXXXX you cannot stack a split over another. + inline void ChannelsSplit(int count) { _Splitter.Split(this, count); } + inline void ChannelsMerge() { _Splitter.Merge(this); } + inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); } + + // Advanced: Primitives allocations + // - We render triangles (three vertices) + // - All primitives needs to be reserved via PrimReserve() beforehand. + IMGUI_API void PrimReserve(int idx_count, int vtx_count); + IMGUI_API void PrimUnreserve(int idx_count, int vtx_count); + IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); // Axis aligned rectangle (composed of two triangles) + IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col); + IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col); + inline void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; } + inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; } + inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index + + // Obsolete names + //inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + //inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + + // [Internal helpers] + IMGUI_API void _ResetForNewFrame(); + IMGUI_API void _ClearFreeMemory(); + IMGUI_API void _PopUnusedDrawCmd(); + IMGUI_API void _TryMergeDrawCmds(); + IMGUI_API void _OnChangedClipRect(); + IMGUI_API void _OnChangedTextureID(); + IMGUI_API void _OnChangedVtxOffset(); + IMGUI_API int _CalcCircleAutoSegmentCount(float radius) const; + IMGUI_API void _PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step); + IMGUI_API void _PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments); +}; + +// All draw data to render a Dear ImGui frame +// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, +// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList) +struct ImDrawData +{ + bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. + int CmdListsCount; // Number of ImDrawList* to render + int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size + int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size + ImVector CmdLists; // Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here. + ImVec2 DisplayPos; // Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications) + ImVec2 DisplaySize; // Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications) + ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display. + ImGuiViewport* OwnerViewport; // Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not). + + // Functions + ImDrawData() { Clear(); } + IMGUI_API void Clear(); + IMGUI_API void AddDrawList(ImDrawList* draw_list); // Helper to add an external draw list into an existing ImDrawData. + IMGUI_API void DeIndexAllBuffers(); // Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! + IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); // Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. +}; + +//----------------------------------------------------------------------------- +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont) +//----------------------------------------------------------------------------- + +struct ImFontConfig +{ + void* FontData; // // TTF/OTF data + int FontDataSize; // // TTF/OTF data size + bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). + int FontNo; // 0 // Index of font within TTF/OTF file + float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). + int OversampleH; // 2 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. + int OversampleV; // 1 // Rasterize at higher quality for sub-pixel positioning. This is not really useful as we don't use sub-pixel positions on the Y axis. + bool PixelSnapH; // false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. + ImVec2 GlyphExtraSpacing; // 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now. + ImVec2 GlyphOffset; // 0, 0 // Offset all glyphs from this font input. + const ImWchar* GlyphRanges; // NULL // THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). + float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font + float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs + bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. + unsigned int FontBuilderFlags; // 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. + float RasterizerMultiply; // 1.0f // Brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. + ImWchar EllipsisChar; // -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. + + // [Internal] + char Name[40]; // Name (strictly to ease debugging) + ImFont* DstFont; + + IMGUI_API ImFontConfig(); +}; + +// Hold rendering data for one glyph. +// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this) +struct ImFontGlyph +{ + unsigned int Colored : 1; // Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops) + unsigned int Visible : 1; // Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering. + unsigned int Codepoint : 30; // 0x0000..0x10FFFF + float AdvanceX; // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in) + float X0, Y0, X1, Y1; // Glyph corners + float U0, V0, U1, V1; // Texture coordinates +}; + +// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). +// This is essentially a tightly packed of vector of 64k booleans = 8KB storage. +struct ImFontGlyphRangesBuilder +{ + ImVector UsedChars; // Store 1-bit per Unicode code point (0=unused, 1=used) + + ImFontGlyphRangesBuilder() { Clear(); } + inline void Clear() { int size_in_bytes = (IM_UNICODE_CODEPOINT_MAX + 1) / 8; UsedChars.resize(size_in_bytes / (int)sizeof(ImU32)); memset(UsedChars.Data, 0, (size_t)size_in_bytes); } + inline bool GetBit(size_t n) const { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); return (UsedChars[off] & mask) != 0; } // Get bit n in the array + inline void SetBit(size_t n) { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; } // Set bit n in the array + inline void AddChar(ImWchar c) { SetBit(c); } // Add character + IMGUI_API void AddText(const char* text, const char* text_end = NULL); // Add string (each character of the UTF-8 string are added) + IMGUI_API void AddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext + IMGUI_API void BuildRanges(ImVector* out_ranges); // Output new ranges +}; + +// See ImFontAtlas::AddCustomRectXXX functions. +struct ImFontAtlasCustomRect +{ + unsigned short Width, Height; // Input // Desired rectangle dimension + unsigned short X, Y; // Output // Packed position in Atlas + unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) + float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance + ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset + ImFont* Font; // Input // For custom font glyphs only: target font + ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } + bool IsPacked() const { return X != 0xFFFF; } +}; + +// Flags for ImFontAtlas build +enum ImFontAtlasFlags_ +{ + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two + ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) + ImFontAtlasFlags_NoBakedLines = 1 << 2, // Don't build thick line textures into the atlas (save a little texture memory, allow support for point/nearest filtering). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). +}; + +// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: +// - One or more fonts. +// - Custom graphics data needed to render the shapes needed by Dear ImGui. +// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas). +// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api. +// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you. +// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. +// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples) +// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API. +// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details. +// Common pitfalls: +// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the +// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data. +// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. +// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, +// - Even though many functions are suffixed with "TTF", OTF data is supported just as well. +// - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future! +struct ImFontAtlas +{ + IMGUI_API ImFontAtlas(); + IMGUI_API ~ImFontAtlas(); + IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg); + IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL); + IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); + IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. + IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_data_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. + IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. + IMGUI_API void ClearInputData(); // Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. + IMGUI_API void ClearTexData(); // Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. + IMGUI_API void ClearFonts(); // Clear output font data (glyphs storage, UV coordinates). + IMGUI_API void Clear(); // Clear all input and output. + + // Build atlas, retrieve pixel data. + // User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). + // The pitch is always = Width * BytesPerPixels (1 or 4) + // Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into + // the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. + IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. + IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel + IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel + bool IsBuilt() const { return Fonts.Size > 0 && TexReady; } // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... + void SetTexID(ImTextureID id) { TexID = id; } + + //------------------------------------------- + // Glyph Ranges + //------------------------------------------- + + // Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list) + // NB: Make sure that your string are UTF-8 and NOT in your local code page. + // Read https://github.com/ocornut/imgui/blob/master/docs/FONTS.md/#about-utf-8-encoding for details. + // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. + IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin + IMGUI_API const ImWchar* GetGlyphRangesGreek(); // Default + Greek and Coptic + IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters + IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon();// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese + IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters + IMGUI_API const ImWchar* GetGlyphRangesThai(); // Default + Thai characters + IMGUI_API const ImWchar* GetGlyphRangesVietnamese(); // Default + Vietnamese characters + + //------------------------------------------- + // [BETA] Custom Rectangles/Glyphs API + //------------------------------------------- + + // You can request arbitrary rectangles to be packed into the atlas, for your own purposes. + // - After calling Build(), you can query the rectangle position and render your pixels. + // - If you render colored output, set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of prefered texture format. + // - You can also request your rectangles to be mapped as font glyph (given a font + Unicode point), + // so you can render e.g. custom colorful icons and use them as regular glyphs. + // - Read docs/FONTS.md for more details about using colorful icons. + // - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings. + IMGUI_API int AddCustomRectRegular(int width, int height); + IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0)); + ImFontAtlasCustomRect* GetCustomRectByIndex(int index) { IM_ASSERT(index >= 0); return &CustomRects[index]; } + + // [Internal] + IMGUI_API void CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const; + IMGUI_API bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); + + //------------------------------------------- + // Members + //------------------------------------------- + + ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) + ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. + int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. + int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). + bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. + void* UserData; // Store your own atlas related user-data (if e.g. you have multiple font atlas). + + // [Internal] + // NB: Access texture data via GetTexData*() calls! Which will setup a default font for you. + bool TexReady; // Set when texture was built matching current font input + bool TexPixelsUseColors; // Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format. + unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight + unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 + int TexWidth; // Texture width calculated during Build(). + int TexHeight; // Texture height calculated during Build(). + ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight) + ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel + ImVector Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. + ImVector CustomRects; // Rectangles for packing custom texture data into the atlas. + ImVector ConfigData; // Configuration data + ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; // UVs for baked anti-aliased lines + + // [Internal] Font builder + const ImFontBuilderIO* FontBuilderIO; // Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE). + unsigned int FontBuilderFlags; // Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig. + + // [Internal] Packing data + int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors + int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines + + // [Obsolete] + //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ +}; + +// Font runtime data and rendering +// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32(). +struct ImFont +{ + // Members: Hot ~20/24 bytes (for CalcTextSize) + ImVector IndexAdvanceX; // 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI). + float FallbackAdvanceX; // 4 // out // = FallbackGlyph->AdvanceX + float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading) + + // Members: Hot ~28/40 bytes (for CalcTextSize + render loop) + ImVector IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point. + ImVector Glyphs; // 12-16 // out // // All glyphs. + const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar) + + // Members: Cold ~32/40 bytes + ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into + const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData + short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont. + ImWchar FallbackChar; // 2 // out // = FFFD/'?' // Character used if a glyph isn't found. + ImWchar EllipsisChar; // 2 // out // = '...'/'.'// Character used for ellipsis rendering. + short EllipsisCharCount; // 1 // out // 1 or 3 + float EllipsisWidth; // 4 // out // Width + float EllipsisCharStep; // 4 // out // Step between characters when EllipsisCount > 0 + bool DirtyLookupTables; // 1 // out // + float Scale; // 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale() + float Ascent, Descent; // 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] + int MetricsTotalSurface;// 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) + ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]; // 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. + + // Methods + IMGUI_API ImFont(); + IMGUI_API ~ImFont(); + IMGUI_API const ImFontGlyph*FindGlyph(ImWchar c) const; + IMGUI_API const ImFontGlyph*FindGlyphNoFallback(ImWchar c) const; + float GetCharAdvance(ImWchar c) const { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } + bool IsLoaded() const { return ContainerAtlas != NULL; } + const char* GetDebugName() const { return ConfigData ? ConfigData->Name : ""; } + + // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. + // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. + IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 + IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; + IMGUI_API void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c) const; + IMGUI_API void RenderText(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; + + // [Internal] Don't use! + IMGUI_API void BuildLookupTable(); + IMGUI_API void ClearOutputData(); + IMGUI_API void GrowIndex(int new_size); + IMGUI_API void AddGlyph(const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); + IMGUI_API void AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. + IMGUI_API void SetGlyphVisible(ImWchar c, bool visible); + IMGUI_API bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Viewports +//----------------------------------------------------------------------------- + +// Flags stored in ImGuiViewport::Flags, giving indications to the platform backends. +enum ImGuiViewportFlags_ +{ + ImGuiViewportFlags_None = 0, + ImGuiViewportFlags_IsPlatformWindow = 1 << 0, // Represent a Platform Window + ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, // Represent a Platform Monitor (unused yet) + ImGuiViewportFlags_OwnedByApp = 1 << 2, // Platform Window: Was created/managed by the user application? (rather than our backend) + ImGuiViewportFlags_NoDecoration = 1 << 3, // Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popups/tooltips) + ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, // Platform Window: Disable platform task bar icon (generally set on popups/tooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set) + ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, // Platform Window: Don't take focus when created. + ImGuiViewportFlags_NoFocusOnClick = 1 << 6, // Platform Window: Don't take focus when clicked on. + ImGuiViewportFlags_NoInputs = 1 << 7, // Platform Window: Make mouse pass through so we can drag this window while peaking behind it. + ImGuiViewportFlags_NoRendererClear = 1 << 8, // Platform Window: Renderer doesn't need to clear the framebuffer ahead (because we will fill it entirely). + ImGuiViewportFlags_NoAutoMerge = 1 << 9, // Platform Window: Avoid merging this window into another host window. This can only be set via ImGuiWindowClass viewport flags override (because we need to now ahead if we are going to create a viewport in the first place!). + ImGuiViewportFlags_TopMost = 1 << 10, // Platform Window: Display on top (for tooltips only). + ImGuiViewportFlags_CanHostOtherWindows = 1 << 11, // Viewport can host multiple imgui windows (secondary viewports are associated to a single window). // FIXME: In practice there's still probably code making the assumption that this is always and only on the MainViewport. Will fix once we add support for "no main viewport". + + // Output status flags (from Platform) + ImGuiViewportFlags_IsMinimized = 1 << 12, // Platform Window: Window is minimized, can skip render. When minimized we tend to avoid using the viewport pos/size for clipping window or testing if they are contained in the viewport. + ImGuiViewportFlags_IsFocused = 1 << 13, // Platform Window: Window is focused (last call to Platform_GetWindowFocus() returned true) +}; + +// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. +// - With multi-viewport enabled, we extend this concept to have multiple active viewports. +// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. +// - About Main Area vs Work Area: +// - Main Area = entire viewport. +// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor). +// - Windows are generally trying to stay within the Work Area of their host viewport. +struct ImGuiViewport +{ + ImGuiID ID; // Unique identifier for the viewport + ImGuiViewportFlags Flags; // See ImGuiViewportFlags_ + ImVec2 Pos; // Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates) + ImVec2 Size; // Main Area: Size of the viewport. + ImVec2 WorkPos; // Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos) + ImVec2 WorkSize; // Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size) + float DpiScale; // 1.0f = 96 DPI = No extra scale. + ImGuiID ParentViewportId; // (Advanced) 0: no parent. Instruct the platform backend to setup a parent/child relationship between platform windows. + ImDrawData* DrawData; // The ImDrawData corresponding to this viewport. Valid after Render() and until the next call to NewFrame(). + + // Platform/Backend Dependent Data + // Our design separate the Renderer and Platform backends to facilitate combining default backends with each others. + // When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled + // by the same system and you may not need to use all the UserData/Handle fields. + // The library never uses those fields, they are merely storage to facilitate backend implementation. + void* RendererUserData; // void* to hold custom data structure for the renderer (e.g. swap chain, framebuffers etc.). generally set by your Renderer_CreateWindow function. + void* PlatformUserData; // void* to hold custom data structure for the OS / platform (e.g. windowing info, render context). generally set by your Platform_CreateWindow function. + void* PlatformHandle; // void* for FindViewportByPlatformHandle(). (e.g. suggested to use natural platform handle such as HWND, GLFWWindow*, SDL_Window*) + void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms), when using an abstraction layer like GLFW or SDL (where PlatformHandle would be a SDL_Window*) + bool PlatformWindowCreated; // Platform window has been created (Platform_CreateWindow() has been called). This is false during the first frame where a viewport is being created. + bool PlatformRequestMove; // Platform window requested move (e.g. window was moved by the OS / host window manager, authoritative position will be OS window position) + bool PlatformRequestResize; // Platform window requested resize (e.g. window was resized by the OS / host window manager, authoritative size will be OS window size) + bool PlatformRequestClose; // Platform window requested closure (e.g. window was moved by the OS / host window manager, e.g. pressing ALT-F4) + + ImGuiViewport() { memset(this, 0, sizeof(*this)); } + ~ImGuiViewport() { IM_ASSERT(PlatformUserData == NULL && RendererUserData == NULL); } + + // Helpers + ImVec2 GetCenter() const { return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); } + ImVec2 GetWorkCenter() const { return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Platform Dependent Interfaces (for e.g. multi-viewport support) +//----------------------------------------------------------------------------- +// [BETA] (Optional) This is completely optional, for advanced users! +// If you are new to Dear ImGui and trying to integrate it into your engine, you can probably ignore this for now. +// +// This feature allows you to seamlessly drag Dear ImGui windows outside of your application viewport. +// This is achieved by creating new Platform/OS windows on the fly, and rendering into them. +// Dear ImGui manages the viewport structures, and the backend create and maintain one Platform/OS window for each of those viewports. +// +// See Glossary https://github.com/ocornut/imgui/wiki/Glossary for details about some of the terminology. +// See Thread https://github.com/ocornut/imgui/issues/1542 for gifs, news and questions about this evolving feature. +// +// About the coordinates system: +// - When multi-viewports are enabled, all Dear ImGui coordinates become absolute coordinates (same as OS coordinates!) +// - So e.g. ImGui::SetNextWindowPos(ImVec2(0,0)) will position a window relative to your primary monitor! +// - If you want to position windows relative to your main application viewport, use ImGui::GetMainViewport()->Pos as a base position. +// +// Steps to use multi-viewports in your application, when using a default backend from the examples/ folder: +// - Application: Enable feature with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// - Backend: The backend initialization will setup all necessary ImGuiPlatformIO's functions and update monitors info every frame. +// - Application: In your main loop, call ImGui::UpdatePlatformWindows(), ImGui::RenderPlatformWindowsDefault() after EndFrame() or Render(). +// - Application: Fix absolute coordinates used in ImGui::SetWindowPos() or ImGui::SetNextWindowPos() calls. +// +// Steps to use multi-viewports in your application, when using a custom backend: +// - Important: THIS IS NOT EASY TO DO and comes with many subtleties not described here! +// It's also an experimental feature, so some of the requirements may evolve. +// Consider using default backends if you can. Either way, carefully follow and refer to examples/ backends for details. +// - Application: Enable feature with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'. +// - Backend: Hook ImGuiPlatformIO's Platform_* and Renderer_* callbacks (see below). +// Set 'io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports' and 'io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports'. +// Update ImGuiPlatformIO's Monitors list every frame. +// Update MousePos every frame, in absolute coordinates. +// - Application: In your main loop, call ImGui::UpdatePlatformWindows(), ImGui::RenderPlatformWindowsDefault() after EndFrame() or Render(). +// You may skip calling RenderPlatformWindowsDefault() if its API is not convenient for your needs. Read comments below. +// - Application: Fix absolute coordinates used in ImGui::SetWindowPos() or ImGui::SetNextWindowPos() calls. +// +// About ImGui::RenderPlatformWindowsDefault(): +// - This function is a mostly a _helper_ for the common-most cases, and to facilitate using default backends. +// - You can check its simple source code to understand what it does. +// It basically iterates secondary viewports and call 4 functions that are setup in ImGuiPlatformIO, if available: +// Platform_RenderWindow(), Renderer_RenderWindow(), Platform_SwapBuffers(), Renderer_SwapBuffers() +// Those functions pointers exists only for the benefit of RenderPlatformWindowsDefault(). +// - If you have very specific rendering needs (e.g. flipping multiple swap-chain simultaneously, unusual sync/threading issues, etc.), +// you may be tempted to ignore RenderPlatformWindowsDefault() and write customized code to perform your renderingg. +// You may decide to setup the platform_io's *RenderWindow and *SwapBuffers pointers and call your functions through those pointers, +// or you may decide to never setup those pointers and call your code directly. They are a convenience, not an obligatory interface. +//----------------------------------------------------------------------------- + +// (Optional) Access via ImGui::GetPlatformIO() +struct ImGuiPlatformIO +{ + //------------------------------------------------------------------ + // Input - Backend interface/functions + Monitor List + //------------------------------------------------------------------ + + // (Optional) Platform functions (e.g. Win32, GLFW, SDL2) + // For reference, the second column shows which function are generally calling the Platform Functions: + // N = ImGui::NewFrame() ~ beginning of the dear imgui frame: read info from platform/OS windows (latest size/position) + // F = ImGui::Begin(), ImGui::EndFrame() ~ during the dear imgui frame + // U = ImGui::UpdatePlatformWindows() ~ after the dear imgui frame: create and update all platform/OS windows + // R = ImGui::RenderPlatformWindowsDefault() ~ render + // D = ImGui::DestroyPlatformWindows() ~ shutdown + // The general idea is that NewFrame() we will read the current Platform/OS state, and UpdatePlatformWindows() will write to it. + // + // The functions are designed so we can mix and match 2 imgui_impl_xxxx files, one for the Platform (~window/input handling), one for Renderer. + // Custom engine backends will often provide both Platform and Renderer interfaces and so may not need to use all functions. + // Platform functions are typically called before their Renderer counterpart, apart from Destroy which are called the other way. + + // Platform function --------------------------------------------------- Called by ----- + void (*Platform_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create a new platform window for the given viewport + void (*Platform_DestroyWindow)(ImGuiViewport* vp); // N . U . D // + void (*Platform_ShowWindow)(ImGuiViewport* vp); // . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on them before showing the window + void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); // . . U . . // Set platform window position (given the upper-left corner of client area) + ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); // N . . . . // + void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.) + ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); // N . . . . // Get platform window client area size + void (*Platform_SetWindowFocus)(ImGuiViewport* vp); // N . . . . // Move window to front and set input focus + bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); // . . U . . // + bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); // N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set size and contents will be culled more easily + void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); // . . U . . // Set platform window title (given an UTF-8 string) + void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); // . . U . . // (Optional) Setup global transparency (not per-pixel transparency) + void (*Platform_UpdateWindow)(ImGuiViewport* vp); // . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend from doing general book-keeping every frame. + void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Main rendering (platform side! This is often unused, or just setting a "current" context for OpenGL bindings). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); // N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96 DPI. + void (*Platform_OnChangedViewport)(ImGuiViewport* vp); // . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport we are outputting into changes, so backend has a chance to swap fonts to adjust style. + int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); // (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie them both). + + // (Optional) Renderer functions (e.g. DirectX, OpenGL, Vulkan) + void (*Renderer_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow) + void (*Renderer_DestroyWindow)(ImGuiViewport* vp); // N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow) + void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize) + void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + + // (Optional) Monitor list + // - Updated by: app/backend. Update every frame to dynamically support changing monitor or DPI configuration. + // - Used by: dear imgui to query DPI info, clamp popups/tooltips within same monitor and not have them straddle monitors. + ImVector Monitors; + + //------------------------------------------------------------------ + // Output - List of viewports to render into platform windows + //------------------------------------------------------------------ + + // Viewports list (the list is updated by calling ImGui::EndFrame or ImGui::Render) + // (in the future we will attempt to organize this feature to remove the need for a "main viewport") + ImVector Viewports; // Main viewports, followed by all secondary viewports. + ImGuiPlatformIO() { memset(this, 0, sizeof(*this)); } // Zero clear +}; + +// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI. +// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors. +struct ImGuiPlatformMonitor +{ + ImVec2 MainPos, MainSize; // Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right) + ImVec2 WorkPos, WorkSize; // Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside this region. If you don't have this info, please copy the value for MainPos/MainSize. + float DpiScale; // 1.0f = 96 DPI + void* PlatformHandle; // Backend dependant data (e.g. HMONITOR, GLFWmonitor*, SDL Display Index, NSScreen*) + ImGuiPlatformMonitor() { MainPos = MainSize = WorkPos = WorkSize = ImVec2(0, 0); DpiScale = 1.0f; PlatformHandle = NULL; } +}; + +// (Optional) Support for IME (Input Method Editor) via the io.SetPlatformImeDataFn() function. +struct ImGuiPlatformImeData +{ + bool WantVisible; // A widget wants the IME to be visible + ImVec2 InputPos; // Position of the input cursor + float InputLineHeight; // Line height + + ImGuiPlatformImeData() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Obsolete functions and types +// (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) +// Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. +//----------------------------------------------------------------------------- + +namespace ImGui +{ +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); // map ImGuiKey_* values into legacy native key index. == io.KeyMap[key] +#else + static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END && "ImGuiKey and native_index was merged together and native_index is disabled by IMGUI_DISABLE_OBSOLETE_KEYIO. Please switch to ImGuiKey."); return key; } +#endif +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +namespace ImGui +{ + // OBSOLETED in 1.90.0 (from September 2023) + IMGUI_API bool ListBox(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int height_in_items = -1); + IMGUI_API bool Combo(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int popup_max_height_in_items = -1); + // OBSOLETED in 1.89.7 (from June 2023) + IMGUI_API void SetItemAllowOverlap(); // Use SetNextItemAllowOverlap() before item. + // OBSOLETED in 1.89.4 (from March 2023) + static inline void PushAllowKeyboardFocus(bool tab_stop) { PushTabStop(tab_stop); } + static inline void PopAllowKeyboardFocus() { PopTabStop(); } + // OBSOLETED in 1.89 (from August 2022) + IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); // Use new ImageButton() signature (explicit item id, regular FramePadding) + // OBSOLETED in 1.88 (from May 2022) + static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. + static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. + // OBSOLETED in 1.86 (from November 2021) + IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // Calculate coarse clipping for large list of evenly sized items. Prefer using ImGuiListClipper. + + // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE) + //-- OBSOLETED in 1.85 (from August 2021) + //static inline float GetWindowContentRegionWidth() { return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; } + //-- OBSOLETED in 1.81 (from February 2021) + //static inline bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0, 0)) { return BeginListBox(label, size); } + //static inline bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1) { float height = GetTextLineHeightWithSpacing() * ((height_in_items < 0 ? ImMin(items_count, 7) : height_in_items) + 0.25f) + GetStyle().FramePadding.y * 2.0f; return BeginListBox(label, ImVec2(0.0f, height)); } // Helper to calculate size from items_count and height_in_items + //static inline void ListBoxFooter() { EndListBox(); } + //-- OBSOLETED in 1.79 (from August 2020) + //static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! + //-- OBSOLETED in 1.78 (from June 2020): Old drag/sliders functions that took a 'float power > 1.0f' argument instead of ImGuiSliderFlags_Logarithmic. See github.com/ocornut/imgui/issues/3361 for details. + //IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f) // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power = 1.0f); // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power = 1.0f) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power = 1.0f) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } // OBSOLETED in 1.78 (from June 2020) + //-- OBSOLETED in 1.77 and before + //static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } // OBSOLETED in 1.77 (from June 2020) + //static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } // OBSOLETED in 1.72 (from July 2019) + //static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } // OBSOLETED in 1.71 (from June 2019) + //static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } // OBSOLETED in 1.70 (from May 2019) + //static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } // OBSOLETED in 1.69 (from Mar 2019) + //static inline void SetScrollHere(float ratio = 0.5f) { SetScrollHereY(ratio); } // OBSOLETED in 1.66 (from Nov 2018) + //static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } // OBSOLETED in 1.63 (from Aug 2018) + //-- OBSOLETED in 1.60 and before + //static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } // OBSOLETED in 1.60 (from Apr 2018) + //static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) + //static inline void ShowTestWindow() { return ShowDemoWindow(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootWindow); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline bool IsRootWindowOrAnyChildFocused() { return IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline void SetNextWindowContentWidth(float w) { SetNextWindowContentSize(ImVec2(w, 0.0f)); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //static inline float GetItemsLineHeightWithSpacing() { return GetFrameHeightWithSpacing(); } // OBSOLETED in 1.53 (between Oct 2017 and Dec 2017) + //IMGUI_API bool Begin(char* name, bool* p_open, ImVec2 size_first_use, float bg_alpha = -1.0f, ImGuiWindowFlags flags=0); // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017): Equivalent of using SetNextWindowSize(size, ImGuiCond_FirstUseEver) and SetNextWindowBgAlpha(). + //static inline bool IsRootWindowOrAnyChildHovered() { return IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void AlignFirstTextHeightToWidgets() { AlignTextToFramePadding(); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline void SetNextWindowPosCenter(ImGuiCond c=0) { SetNextWindowPos(GetMainViewport()->GetCenter(), c, ImVec2(0.5f,0.5f)); } // OBSOLETED in 1.52 (between Aug 2017 and Oct 2017) + //static inline bool IsItemHoveredRect() { return IsItemHovered(ImGuiHoveredFlags_RectOnly); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsPosHoveringAnyWindow(const ImVec2&) { IM_ASSERT(0); return false; } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017): This was misleading and partly broken. You probably want to use the io.WantCaptureMouse flag instead. + //static inline bool IsMouseHoveringAnyWindow() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //static inline bool IsMouseHoveringWindow() { return IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); } // OBSOLETED in 1.51 (between Jun 2017 and Aug 2017) + //-- OBSOLETED in 1.50 and before + //static inline bool CollapsingHeader(char* label, const char* str_id, bool framed = true, bool default_open = false) { return CollapsingHeader(label, (default_open ? (1 << 5) : 0)); } // OBSOLETED in 1.49 + //static inline ImFont*GetWindowFont() { return GetFont(); } // OBSOLETED in 1.48 + //static inline float GetWindowFontSize() { return GetFontSize(); } // OBSOLETED in 1.48 + //static inline void SetScrollPosHere() { SetScrollHere(); } // OBSOLETED in 1.42 +} + +//-- OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() +//typedef ImDrawFlags ImDrawCornerFlags; +//enum ImDrawCornerFlags_ +//{ +// ImDrawCornerFlags_None = ImDrawFlags_RoundCornersNone, // Was == 0 prior to 1.82, this is now == ImDrawFlags_RoundCornersNone which is != 0 and not implicit +// ImDrawCornerFlags_TopLeft = ImDrawFlags_RoundCornersTopLeft, // Was == 0x01 (1 << 0) prior to 1.82. Order matches ImDrawFlags_NoRoundCorner* flag (we exploit this internally). +// ImDrawCornerFlags_TopRight = ImDrawFlags_RoundCornersTopRight, // Was == 0x02 (1 << 1) prior to 1.82. +// ImDrawCornerFlags_BotLeft = ImDrawFlags_RoundCornersBottomLeft, // Was == 0x04 (1 << 2) prior to 1.82. +// ImDrawCornerFlags_BotRight = ImDrawFlags_RoundCornersBottomRight, // Was == 0x08 (1 << 3) prior to 1.82. +// ImDrawCornerFlags_All = ImDrawFlags_RoundCornersAll, // Was == 0x0F prior to 1.82 +// ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, +// ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, +// ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, +// ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, +//}; + +// RENAMED and MERGED both ImGuiKey_ModXXX and ImGuiModFlags_XXX into ImGuiMod_XXX (from September 2022) +// RENAMED ImGuiKeyModFlags -> ImGuiModFlags in 1.88 (from April 2022). Exceptionally commented out ahead of obscolescence schedule to reduce confusion and because they were not meant to be used in the first place. +typedef ImGuiKeyChord ImGuiModFlags; // == int. We generally use ImGuiKeyChord to mean "a ImGuiKey or-ed with any number of ImGuiMod_XXX value", but you may store only mods in there. +enum ImGuiModFlags_ { ImGuiModFlags_None = 0, ImGuiModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiModFlags_Shift = ImGuiMod_Shift, ImGuiModFlags_Alt = ImGuiMod_Alt, ImGuiModFlags_Super = ImGuiMod_Super }; +//typedef ImGuiKeyChord ImGuiKeyModFlags; // == int +//enum ImGuiKeyModFlags_ { ImGuiKeyModFlags_None = 0, ImGuiKeyModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiKeyModFlags_Shift = ImGuiMod_Shift, ImGuiKeyModFlags_Alt = ImGuiMod_Alt, ImGuiKeyModFlags_Super = ImGuiMod_Super }; + +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +// RENAMED IMGUI_DISABLE_METRICS_WINDOW > IMGUI_DISABLE_DEBUG_TOOLS in 1.88 (from June 2022) +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS) +#define IMGUI_DISABLE_DEBUG_TOOLS +#endif +#if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +// Include imgui_user.h at the end of imgui.h (convenient for user to only explicitly include vanilla imgui.h) +#ifdef IMGUI_INCLUDE_IMGUI_USER_H +#include "imgui_user.h" +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/include/imgui_internal.h b/thirdparty/imgui_suite/imgui/include/imgui_internal.h new file mode 100644 index 00000000000..9d0ec710a93 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/imgui_internal.h @@ -0,0 +1,3738 @@ +// dear imgui, v1.90 WIP +// (internal structures/api) + +// You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility. +// To implement maths operators for ImVec2 (disabled by default to not conflict with using IM_VEC2_CLASS_EXTRA with your own math types+operators), use: +/* +#define IMGUI_DEFINE_MATH_OPERATORS +#include "imgui_internal.h" +*/ + +/* + +Index of this file: + +// [SECTION] Header mess +// [SECTION] Forward declarations +// [SECTION] Context pointer +// [SECTION] STB libraries includes +// [SECTION] Macros +// [SECTION] Generic helpers +// [SECTION] ImDrawList support +// [SECTION] Widgets support: flags, enums, data structures +// [SECTION] Inputs support +// [SECTION] Clipper support +// [SECTION] Navigation support +// [SECTION] Typing-select support +// [SECTION] Columns support +// [SECTION] Multi-select support +// [SECTION] Docking support +// [SECTION] Viewport support +// [SECTION] Settings support +// [SECTION] Localization support +// [SECTION] Metrics, Debug tools +// [SECTION] Generic context hooks +// [SECTION] ImGuiContext (main imgui context) +// [SECTION] ImGuiWindowTempData, ImGuiWindow +// [SECTION] Tab bar, Tab item support +// [SECTION] Table support +// [SECTION] ImGui internal API +// [SECTION] ImFontAtlas internal API +// [SECTION] Test Engine specific hooks (imgui_test_engine) + +*/ + +#pragma once +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#ifndef IMGUI_VERSION +#include "imgui.h" +#endif + +#include // FILE*, sscanf +#include // NULL, malloc, free, qsort, atoi, atof +#include // sqrtf, fabsf, fmodf, powf, floorf, ceilf, cosf, sinf +#include // INT_MIN, INT_MAX + +// Enable SSE intrinsics if available +#if (defined __SSE__ || defined __x86_64__ || defined _M_X64 || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))) && !defined(IMGUI_DISABLE_SSE) +#define IMGUI_ENABLE_SSE +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport) +#pragma warning (disable: 26812) // The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). [MSVC Static Analyzer) +#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok, for ImFloorSigned() +#pragma clang diagnostic ignored "-Wunused-function" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wmissing-prototypes" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wdouble-promotion" +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#pragma clang diagnostic ignored "-Wmissing-noreturn" // warning: function 'xxx' could be declared with attribute 'noreturn' +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// In 1.89.4, we moved the implementation of "courtesy maths operators" from imgui_internal.h in imgui.h +// As they are frequently requested, we do not want to encourage to many people using imgui_internal.h +#if defined(IMGUI_DEFINE_MATH_OPERATORS) && !defined(IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED) +#error Please '#define IMGUI_DEFINE_MATH_OPERATORS' _BEFORE_ including imgui.h! +#endif + +// Legacy defines +#ifdef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#endif +#ifdef IMGUI_DISABLE_MATH_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#endif + +// Enable stb_truetype by default unless FreeType is enabled. +// You can compile with both by defining both IMGUI_ENABLE_FREETYPE and IMGUI_ENABLE_STB_TRUETYPE together. +#ifndef IMGUI_ENABLE_FREETYPE +#define IMGUI_ENABLE_STB_TRUETYPE +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations +//----------------------------------------------------------------------------- + +struct ImBitVector; // Store 1-bit per value +struct ImRect; // An axis-aligned rectangle (2 points) +struct ImDrawDataBuilder; // Helper to build a ImDrawData instance +struct ImDrawListSharedData; // Data shared between all ImDrawList instances +struct ImGuiColorMod; // Stacked color modifier, backup of modified data so we can restore it +struct ImGuiContext; // Main Dear ImGui context +struct ImGuiContextHook; // Hook for extensions like ImGuiTestEngine +struct ImGuiDataVarInfo; // Variable information (e.g. to avoid style variables from an enum) +struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDataType enum +struct ImGuiDockContext; // Docking system context +struct ImGuiDockRequest; // Docking system dock/undock queued request +struct ImGuiDockNode; // Docking system node (hold a list of Windows OR two child dock nodes) +struct ImGuiDockNodeSettings; // Storage for a dock node in .ini file (we preserve those even if the associated dock node isn't active during the session) +struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() +struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box +struct ImGuiInputTextDeactivateData;// Short term storage to backup text of a deactivating InputText() while another is stealing active id +struct ImGuiLastItemData; // Status storage for last submitted items +struct ImGuiLocEntry; // A localization entry. +struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only +struct ImGuiNavItemData; // Result of a gamepad/keyboard directional navigation move query result +struct ImGuiNavTreeNodeData; // Temporary storage for last TreeNode() being a Left arrow landing candidate. +struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions +struct ImGuiNextWindowData; // Storage for SetNextWindow** functions +struct ImGuiNextItemData; // Storage for SetNextItem** functions +struct ImGuiOldColumnData; // Storage data for a single column for legacy Columns() api +struct ImGuiOldColumns; // Storage data for a columns set for legacy Columns() api +struct ImGuiPopupData; // Storage for current popup stack +struct ImGuiSettingsHandler; // Storage for one type registered in the .ini file +struct ImGuiStackSizes; // Storage of stack sizes for debugging/asserting +struct ImGuiStyleMod; // Stacked style modifier, backup of modified data so we can restore it +struct ImGuiTabBar; // Storage for a tab bar +struct ImGuiTabItem; // Storage for a tab item (within a tab bar) +struct ImGuiTable; // Storage for a table +struct ImGuiTableColumn; // Storage for one column of a table +struct ImGuiTableInstanceData; // Storage for one instance of a same table +struct ImGuiTableTempData; // Temporary storage for one table (one per table in the stack), shared between tables. +struct ImGuiTableSettings; // Storage for a table .ini settings +struct ImGuiTableColumnsSettings; // Storage for a column .ini settings +struct ImGuiTypingSelectState; // Storage for GetTypingSelectRequest() +struct ImGuiTypingSelectRequest; // Storage for GetTypingSelectRequest() (aimed to be public) +struct ImGuiWindow; // Storage for one window +struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame, in practice we currently keep it for each window) +struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) + +// Enumerations +// Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. +enum ImGuiLocKey : int; // -> enum ImGuiLocKey // Enum: a localization entry for translation. +typedef int ImGuiDataAuthority; // -> enum ImGuiDataAuthority_ // Enum: for storing the source authority (dock node vs window) of a field +typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical + +// Flags +typedef int ImGuiActivateFlags; // -> enum ImGuiActivateFlags_ // Flags: for navigation/focus function (will be for ActivateItem() later) +typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // Flags: for ShowDebugLogWindow(), g.DebugLogFlags +typedef int ImGuiFocusRequestFlags; // -> enum ImGuiFocusRequestFlags_ // Flags: for FocusWindow(); +typedef int ImGuiInputFlags; // -> enum ImGuiInputFlags_ // Flags: for IsKeyPressed(), IsMouseClicked(), SetKeyOwner(), SetItemKeyOwner() etc. +typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag(), g.LastItemData.InFlags +typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags +typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns() +typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() +typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests +typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions +typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions +typedef int ImGuiScrollFlags; // -> enum ImGuiScrollFlags_ // Flags: for ScrollToItem() and navigation requests +typedef int ImGuiSeparatorFlags; // -> enum ImGuiSeparatorFlags_ // Flags: for SeparatorEx() +typedef int ImGuiTextFlags; // -> enum ImGuiTextFlags_ // Flags: for TextEx() +typedef int ImGuiTooltipFlags; // -> enum ImGuiTooltipFlags_ // Flags: for BeginTooltipEx() +typedef int ImGuiTypingSelectFlags; // -> enum ImGuiTypingSelectFlags_ // Flags: for GetTypingSelectRequest() + +typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); + +//----------------------------------------------------------------------------- +// [SECTION] Context pointer +// See implementation of this variable in imgui.cpp for comments and details. +//----------------------------------------------------------------------------- + +#ifndef GImGui +extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries includes +//------------------------------------------------------------------------- + +namespace ImStb +{ + +#undef STB_TEXTEDIT_STRING +#undef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_STRING ImGuiInputTextState +#define STB_TEXTEDIT_CHARTYPE ImWchar +#define STB_TEXTEDIT_GETWIDTH_NEWLINE (-1.0f) +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#include "imstb_textedit.h" + +} // namespace ImStb + +//----------------------------------------------------------------------------- +// [SECTION] Macros +//----------------------------------------------------------------------------- + +// Internal Drag and Drop payload types. String starting with '_' are reserved for Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_WINDOW "_IMWINDOW" // Payload == ImGuiWindow* + +// Debug Printing Into TTY +// (since IMGUI_VERSION_NUM >= 18729: IMGUI_DEBUG_LOG was reworked into IMGUI_DEBUG_PRINTF (and removed framecount from it). If you were using a #define IMGUI_DEBUG_LOG please rename) +#ifndef IMGUI_DEBUG_PRINTF +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#define IMGUI_DEBUG_PRINTF(_FMT,...) printf(_FMT, __VA_ARGS__) +#else +#define IMGUI_DEBUG_PRINTF(_FMT,...) ((void)0) +#endif +#endif + +// Debug Logging for ShowDebugLogWindow(). This is designed for relatively rare events so please don't spam. +#ifndef IMGUI_DISABLE_DEBUG_TOOLS +#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) +#else +#define IMGUI_DEBUG_LOG(...) ((void)0) +#endif +#define IMGUI_DEBUG_LOG_ACTIVEID(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventActiveId) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_FOCUS(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventFocus) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_POPUP(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_NAV(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventNav) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_SELECTION(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventSelection)IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_CLIPPER(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventClipper) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_IO(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_DOCKING(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventDocking) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) +#define IMGUI_DEBUG_LOG_VIEWPORT(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventViewport) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) + +// Static Asserts +#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") + +// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. +// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. +//#define IMGUI_DEBUG_PARANOID +#ifdef IMGUI_DEBUG_PARANOID +#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR) +#else +#define IM_ASSERT_PARANOID(_EXPR) +#endif + +// Error handling +// Down the line in some frameworks/languages we would like to have a way to redirect those to the programmer and recover from more faults. +#ifndef IM_ASSERT_USER_ERROR +#define IM_ASSERT_USER_ERROR(_EXP,_MSG) IM_ASSERT((_EXP) && _MSG) // Recoverable User Error +#endif + +// Misc Macros +#define IM_PI 3.14159265358979323846f +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" // Play it nice with Windows users (Update: since 2018-05, Notepad finally appears to support Unix-style carriage returns!) +#else +#define IM_NEWLINE "\n" +#endif +#ifndef IM_TABSIZE // Until we move this to runtime and/or add proper tab support, at least allow users to compile-time override +#define IM_TABSIZE (4) +#endif +#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 +#define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose +#define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 +#define IM_FLOOR(_VAL) ((float)(int)(_VAL)) // ImFloor() is not inlined in MSVC debug builds +#define IM_ROUND(_VAL) ((float)(int)((_VAL) + 0.5f)) // +#define IM_STRINGIFY_HELPER(_X) #_X +#define IM_STRINGIFY(_X) IM_STRINGIFY_HELPER(_X) // Preprocessor idiom to stringify e.g. an integer. + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif + +// Warnings +#if defined(_MSC_VER) && !defined(__clang__) +#define IM_MSVC_WARNING_SUPPRESS(XXXX) __pragma(warning(suppress: XXXX)) +#else +#define IM_MSVC_WARNING_SUPPRESS(XXXX) +#endif + +// Debug Tools +// Use 'Metrics/Debugger->Tools->Item Picker' to break into the call-stack of a specific item. +// This will call IM_DEBUG_BREAK() which you may redefine yourself. See https://github.com/scottt/debugbreak for more reference. +#ifndef IM_DEBUG_BREAK +#if defined (_MSC_VER) +#define IM_DEBUG_BREAK() __debugbreak() +#elif defined(__clang__) +#define IM_DEBUG_BREAK() __builtin_debugtrap() +#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) +#define IM_DEBUG_BREAK() __asm__ volatile("int $0x03") +#elif defined(__GNUC__) && defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01") +#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__) +#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0"); +#else +#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger! +#endif +#endif // #ifndef IM_DEBUG_BREAK + +// Format specifiers, printing 64-bit hasn't been decently standardized... +// In a real application you should be using PRId64 and PRIu64 from (non-windows) and on Windows define them yourself. +#if defined(_MSC_VER) && !defined(__clang__) +#define IM_PRId64 "I64d" +#define IM_PRIu64 "I64u" +#define IM_PRIX64 "I64X" +#else +#define IM_PRId64 "lld" +#define IM_PRIu64 "llu" +#define IM_PRIX64 "llX" +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Generic helpers +// Note that the ImXXX helpers functions are lower-level than ImGui functions. +// ImGui functions or the ImGui context are never called/used from other ImXXX functions. +//----------------------------------------------------------------------------- +// - Helpers: Hashing +// - Helpers: Sorting +// - Helpers: Bit manipulation +// - Helpers: String +// - Helpers: Formatting +// - Helpers: UTF-8 <> wchar conversions +// - Helpers: ImVec2/ImVec4 operators +// - Helpers: Maths +// - Helpers: Geometry +// - Helper: ImVec1 +// - Helper: ImVec2ih +// - Helper: ImRect +// - Helper: ImBitArray +// - Helper: ImBitVector +// - Helper: ImSpan<>, ImSpanAllocator<> +// - Helper: ImPool<> +// - Helper: ImChunkStream<> +// - Helper: ImGuiTextIndex +//----------------------------------------------------------------------------- + +// Helpers: Hashing +IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImGuiID seed = 0); +IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImGuiID seed = 0); + +// Helpers: Sorting +#ifndef ImQsort +static inline void ImQsort(void* base, size_t count, size_t size_of_element, int(IMGUI_CDECL *compare_func)(void const*, void const*)) { if (count > 1) qsort(base, count, size_of_element, compare_func); } +#endif + +// Helpers: Color Blending +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b); + +// Helpers: Bit manipulation +static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & (v - 1)) == 0; } +static inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; } +static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } + +// Helpers: String +IMGUI_API int ImStricmp(const char* str1, const char* str2); // Case insensitive compare. +IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); // Case insensitive compare to a certain count. +IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); // Copy to a certain count and always zero terminate (strncpy doesn't). +IMGUI_API char* ImStrdup(const char* str); // Duplicate a string. +IMGUI_API char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); // Copy in provided buffer, recreate buffer if needed. +IMGUI_API const char* ImStrchrRange(const char* str_begin, const char* str_end, char c); // Find first occurrence of 'c' in string range. +IMGUI_API const char* ImStreolRange(const char* str, const char* str_end); // End end-of-line +IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); // Find a substring in a string range. +IMGUI_API void ImStrTrimBlanks(char* str); // Remove leading and trailing blanks from a buffer. +IMGUI_API const char* ImStrSkipBlank(const char* str); // Find first non-blank character. +IMGUI_API int ImStrlenW(const ImWchar* str); // Computer string length (ImWchar string) +IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); // Find beginning-of-line (ImWchar string) +IM_MSVC_RUNTIME_CHECKS_OFF +static inline char ImToUpper(char c) { return (c >= 'a' && c <= 'z') ? c &= ~32 : c; } +static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } +static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Formatting +IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API const char* ImParseFormatFindStart(const char* format); +IMGUI_API const char* ImParseFormatFindEnd(const char* format); +IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); +IMGUI_API void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size); +IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); + +// Helpers: UTF-8 <> wchar conversions +IMGUI_API const char* ImTextCharToUtf8(char out_buf[5], unsigned int c); // return out_buf +IMGUI_API int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count +IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // read one character. return input UTF-8 bytes count +IMGUI_API int ImTextStrFromUtf8(ImWchar* out_buf, int out_buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL); // return input UTF-8 bytes count +IMGUI_API int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count) +IMGUI_API int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); // return number of bytes to express one char in UTF-8 +IMGUI_API int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string in UTF-8 +IMGUI_API const char* ImTextFindPreviousUtf8Codepoint(const char* in_text_start, const char* in_text_curr); // return previous UTF-8 code-point. + +// Helpers: File System +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS +#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef void* ImFileHandle; +static inline ImFileHandle ImFileOpen(const char*, const char*) { return NULL; } +static inline bool ImFileClose(ImFileHandle) { return false; } +static inline ImU64 ImFileGetSize(ImFileHandle) { return (ImU64)-1; } +static inline ImU64 ImFileRead(void*, ImU64, ImU64, ImFileHandle) { return 0; } +static inline ImU64 ImFileWrite(const void*, ImU64, ImU64, ImFileHandle) { return 0; } +#endif +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef FILE* ImFileHandle; +IMGUI_API ImFileHandle ImFileOpen(const char* filename, const char* mode); +IMGUI_API bool ImFileClose(ImFileHandle file); +IMGUI_API ImU64 ImFileGetSize(ImFileHandle file); +IMGUI_API ImU64 ImFileRead(void* data, ImU64 size, ImU64 count, ImFileHandle file); +IMGUI_API ImU64 ImFileWrite(const void* data, ImU64 size, ImU64 count, ImFileHandle file); +#else +#define IMGUI_DISABLE_TTY_FUNCTIONS // Can't use stdout, fflush if we are not using default file functions +#endif +IMGUI_API void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size = NULL, int padding_bytes = 0); + +// Helpers: Maths +IM_MSVC_RUNTIME_CHECKS_OFF +// - Wrapper for standard libs functions. (Note that imgui_demo.cpp does _not_ use them to keep the code easy to copy) +#ifndef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#define ImFabs(X) fabsf(X) +#define ImSqrt(X) sqrtf(X) +#define ImFmod(X, Y) fmodf((X), (Y)) +#define ImCos(X) cosf(X) +#define ImSin(X) sinf(X) +#define ImAcos(X) acosf(X) +#define ImAtan2(Y, X) atan2f((Y), (X)) +#define ImAtof(STR) atof(STR) +//#define ImFloorStd(X) floorf(X) // We use our own, see ImFloor() and ImFloorSigned() +#define ImCeil(X) ceilf(X) +static inline float ImPow(float x, float y) { return powf(x, y); } // DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision +static inline double ImPow(double x, double y) { return pow(x, y); } +static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision +static inline double ImLog(double x) { return log(x); } +static inline int ImAbs(int x) { return x < 0 ? -x : x; } +static inline float ImAbs(float x) { return fabsf(x); } +static inline double ImAbs(double x) { return fabs(x); } +static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : (x > 0.0f) ? 1.0f : 0.0f; } // Sign operator - returns -1, 0 or 1 based on sign of argument +static inline double ImSign(double x) { return (x < 0.0) ? -1.0 : (x > 0.0) ? 1.0 : 0.0; } +#ifdef IMGUI_ENABLE_SSE +static inline float ImRsqrt(float x) { return _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(x))); } +#else +static inline float ImRsqrt(float x) { return 1.0f / sqrtf(x); } +#endif +static inline double ImRsqrt(double x) { return 1.0 / sqrt(x); } +#endif +// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double +// (Exceptionally using templates here but we could also redefine them for those types) +template static inline T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; } +template static inline T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; } +template static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; } +template static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); } +template static inline void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; } +template static inline T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; } +template static inline T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; } +// - Misc maths helpers +static inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x < rhs.x ? lhs.x : rhs.x, lhs.y < rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x >= rhs.x ? lhs.x : rhs.x, lhs.y >= rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImClamp(const ImVec2& v, const ImVec2& mn, ImVec2 mx) { return ImVec2((v.x < mn.x) ? mn.x : (v.x > mx.x) ? mx.x : v.x, (v.y < mn.y) ? mn.y : (v.y > mx.y) ? mx.y : v.y); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, float t) { return ImVec2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, const ImVec2& t) { return ImVec2(a.x + (b.x - a.x) * t.x, a.y + (b.y - a.y) * t.y); } +static inline ImVec4 ImLerp(const ImVec4& a, const ImVec4& b, float t) { return ImVec4(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t, a.z + (b.z - a.z) * t, a.w + (b.w - a.w) * t); } +static inline float ImSaturate(float f) { return (f < 0.0f) ? 0.0f : (f > 1.0f) ? 1.0f : f; } +static inline float ImLengthSqr(const ImVec2& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y); } +static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } +static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return ImRsqrt(d); return fail_value; } +static inline float ImFloor(float f) { return (float)(int)(f); } +static inline float ImFloorSigned(float f) { return (float)((f >= 0 || (float)(int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf() +static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } +static inline ImVec2 ImFloorSigned(const ImVec2& v) { return ImVec2(ImFloorSigned(v.x), ImFloorSigned(v.y)); } +static inline int ImModPositive(int a, int b) { return (a + b) % b; } +static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } +static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } +static inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; } +static inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) { return f <= -16777216 || f >= 16777216; } +static inline float ImExponentialMovingAverage(float avg, float sample, int n) { avg -= avg / n; avg += sample / n; return avg; } +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helpers: Geometry +IMGUI_API ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t); +IMGUI_API ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments); // For curves with explicit number of segments +IMGUI_API ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol);// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol +IMGUI_API ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t); +IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p); +IMGUI_API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w); +inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; } + +// Helper: ImVec1 (1D vector) +// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches) +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImVec1 +{ + float x; + constexpr ImVec1() : x(0.0f) { } + constexpr ImVec1(float _x) : x(_x) { } +}; + +// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) +struct ImVec2ih +{ + short x, y; + constexpr ImVec2ih() : x(0), y(0) {} + constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {} + constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {} +}; + +// Helper: ImRect (2D axis aligned bounding-box) +// NB: we can't rely on ImVec2 math operators being available here! +struct IMGUI_API ImRect +{ + ImVec2 Min; // Upper-left + ImVec2 Max; // Lower-right + + constexpr ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} + constexpr ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} + constexpr ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} + constexpr ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} + + ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } + ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } + float GetWidth() const { return Max.x - Min.x; } + float GetHeight() const { return Max.y - Min.y; } + float GetArea() const { return (Max.x - Min.x) * (Max.y - Min.y); } + ImVec2 GetTL() const { return Min; } // Top-left + ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right + ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left + ImVec2 GetBR() const { return Max; } // Bottom-right + bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p.x < Max.x && p.y < Max.y; } + bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r.Max.x <= Max.x && r.Max.y <= Max.y; } + bool Overlaps(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && r.Max.x > Min.x; } + void Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) Min.y = p.y; if (Max.x < p.x) Max.x = p.x; if (Max.y < p.y) Max.y = p.y; } + void Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) Min.y = r.Min.y; if (Max.x < r.Max.x) Max.x = r.Max.x; if (Max.y < r.Max.y) Max.y = r.Max.y; } + void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += amount; Max.y += amount; } + void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += amount.x; Max.y += amount.y; } + void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y += d.y; } + void TranslateX(float dx) { Min.x += dx; Max.x += dx; } + void TranslateY(float dy) { Min.y += dy; Max.y += dy; } + void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max); } // Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display. + void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped. + void Floor() { Min.x = IM_FLOOR(Min.x); Min.y = IM_FLOOR(Min.y); Max.x = IM_FLOOR(Max.x); Max.y = IM_FLOOR(Max.y); } + bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; } + ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); } +}; + +// Helper: ImBitArray +#define IM_BITARRAY_TESTBIT(_ARRAY, _N) ((_ARRAY[(_N) >> 5] & ((ImU32)1 << ((_N) & 31))) != 0) // Macro version of ImBitArrayTestBit(): ensure args have side-effect or are costly! +#define IM_BITARRAY_CLEARBIT(_ARRAY, _N) ((_ARRAY[(_N) >> 5] &= ~((ImU32)1 << ((_N) & 31)))) // Macro version of ImBitArrayClearBit(): ensure args have side-effect or are costly! +inline size_t ImBitArrayGetStorageSizeInBytes(int bitcount) { return (size_t)((bitcount + 31) >> 5) << 2; } +inline void ImBitArrayClearAllBits(ImU32* arr, int bitcount){ memset(arr, 0, ImBitArrayGetStorageSizeInBytes(bitcount)); } +inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; } +inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; } +inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; } +inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2) +{ + n2--; + while (n <= n2) + { + int a_mod = (n & 31); + int b_mod = (n2 > (n | 31) ? 31 : (n2 & 31)) + 1; + ImU32 mask = (ImU32)(((ImU64)1 << b_mod) - 1) & ~(ImU32)(((ImU64)1 << a_mod) - 1); + arr[n >> 5] |= mask; + n = (n + 32) & ~31; + } +} + +typedef ImU32* ImBitArrayPtr; // Name for use in structs + +// Helper: ImBitArray class (wrapper over ImBitArray functions) +// Store 1-bit per value. +template +struct ImBitArray +{ + ImU32 Storage[(BITCOUNT + 31) >> 5]; + ImBitArray() { ClearAllBits(); } + void ClearAllBits() { memset(Storage, 0, sizeof(Storage)); } + void SetAllBits() { memset(Storage, 255, sizeof(Storage)); } + bool TestBit(int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return IM_BITARRAY_TESTBIT(Storage, n); } + void SetBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArraySetBit(Storage, n); } + void ClearBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArrayClearBit(Storage, n); } + void SetBitRange(int n, int n2) { n += OFFSET; n2 += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT && n2 > n && n2 <= BITCOUNT); ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) + bool operator[](int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return IM_BITARRAY_TESTBIT(Storage, n); } +}; + +// Helper: ImBitVector +// Store 1-bit per value. +struct IMGUI_API ImBitVector +{ + ImVector Storage; + void Create(int sz) { Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); } + void Clear() { Storage.clear(); } + bool TestBit(int n) const { IM_ASSERT(n < (Storage.Size << 5)); return IM_BITARRAY_TESTBIT(Storage.Data, n); } + void SetBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArraySetBit(Storage.Data, n); } + void ClearBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArrayClearBit(Storage.Data, n); } +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +// Helper: ImSpan<> +// Pointing to a span of data we don't own. +template +struct ImSpan +{ + T* Data; + T* DataEnd; + + // Constructors, destructor + inline ImSpan() { Data = DataEnd = NULL; } + inline ImSpan(T* data, int size) { Data = data; DataEnd = data + size; } + inline ImSpan(T* data, T* data_end) { Data = data; DataEnd = data_end; } + + inline void set(T* data, int size) { Data = data; DataEnd = data + size; } + inline void set(T* data, T* data_end) { Data = data; DataEnd = data_end; } + inline int size() const { return (int)(ptrdiff_t)(DataEnd - Data); } + inline int size_in_bytes() const { return (int)(ptrdiff_t)(DataEnd - Data) * (int)sizeof(T); } + inline T& operator[](int i) { T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + inline const T& operator[](int i) const { const T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } + + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return DataEnd; } + inline const T* end() const { return DataEnd; } + + // Utilities + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < DataEnd); const ptrdiff_t off = it - Data; return (int)off; } +}; + +// Helper: ImSpanAllocator<> +// Facilitate storing multiple chunks into a single large block (the "arena") +// - Usage: call Reserve() N times, allocate GetArenaSizeInBytes() worth, pass it to SetArenaBasePtr(), call GetSpan() N times to retrieve the aligned ranges. +template +struct ImSpanAllocator +{ + char* BasePtr; + int CurrOff; + int CurrIdx; + int Offsets[CHUNKS]; + int Sizes[CHUNKS]; + + ImSpanAllocator() { memset(this, 0, sizeof(*this)); } + inline void Reserve(int n, size_t sz, int a=4) { IM_ASSERT(n == CurrIdx && n < CHUNKS); CurrOff = IM_MEMALIGN(CurrOff, a); Offsets[n] = CurrOff; Sizes[n] = (int)sz; CurrIdx++; CurrOff += (int)sz; } + inline int GetArenaSizeInBytes() { return CurrOff; } + inline void SetArenaBasePtr(void* base_ptr) { BasePtr = (char*)base_ptr; } + inline void* GetSpanPtrBegin(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n]); } + inline void* GetSpanPtrEnd(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n] + Sizes[n]); } + template + inline void GetSpan(int n, ImSpan* span) { span->set((T*)GetSpanPtrBegin(n), (T*)GetSpanPtrEnd(n)); } +}; + +// Helper: ImPool<> +// Basic keyed storage for contiguous instances, slow/amortized insertion, O(1) indexable, O(Log N) queries by ID over a dense/hot buffer, +// Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. +typedef int ImPoolIdx; +template +struct ImPool +{ + ImVector Buf; // Contiguous data + ImGuiStorage Map; // ID->Index + ImPoolIdx FreeIdx; // Next free idx to use + ImPoolIdx AliveCount; // Number of active/alive items (for display purpose) + + ImPool() { FreeIdx = AliveCount = 0; } + ~ImPool() { Clear(); } + T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; } + T* GetByIndex(ImPoolIdx n) { return &Buf[n]; } + ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); } + T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Buf[*p_idx]; *p_idx = FreeIdx; return Add(); } + bool Contains(const T* p) const { return (p >= Buf.Data && p < Buf.Data + Buf.Size); } + void Clear() { for (int n = 0; n < Map.Data.Size; n++) { int idx = Map.Data[n].val_i; if (idx != -1) Buf[idx].~T(); } Map.Clear(); Buf.clear(); FreeIdx = AliveCount = 0; } + T* Add() { int idx = FreeIdx; if (idx == Buf.Size) { Buf.resize(Buf.Size + 1); FreeIdx++; } else { FreeIdx = *(int*)&Buf[idx]; } IM_PLACEMENT_NEW(&Buf[idx]) T(); AliveCount++; return &Buf[idx]; } + void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); } + void Remove(ImGuiID key, ImPoolIdx idx) { Buf[idx].~T(); *(int*)&Buf[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); AliveCount--; } + void Reserve(int capacity) { Buf.reserve(capacity); Map.Data.reserve(capacity); } + + // To iterate a ImPool: for (int n = 0; n < pool.GetMapSize(); n++) if (T* t = pool.TryGetMapData(n)) { ... } + // Can be avoided if you know .Remove() has never been called on the pool, or AliveCount == GetMapSize() + int GetAliveCount() const { return AliveCount; } // Number of active/alive items in the pool (for display purpose) + int GetBufSize() const { return Buf.Size; } + int GetMapSize() const { return Map.Data.Size; } // It is the map we need iterate to find valid items, since we don't have "alive" storage anywhere + T* TryGetMapData(ImPoolIdx n) { int idx = Map.Data[n].val_i; if (idx == -1) return NULL; return GetByIndex(idx); } +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + int GetSize() { return GetMapSize(); } // For ImPlot: should use GetMapSize() from (IMGUI_VERSION_NUM >= 18304) +#endif +}; + +// Helper: ImChunkStream<> +// Build and iterate a contiguous stream of variable-sized structures. +// This is used by Settings to store persistent data while reducing allocation count. +// We store the chunk size first, and align the final size on 4 bytes boundaries. +// The tedious/zealous amount of casting is to avoid -Wcast-align warnings. +template +struct ImChunkStream +{ + ImVector Buf; + + void clear() { Buf.clear(); } + bool empty() const { return Buf.Size == 0; } + int size() const { return Buf.Size; } + T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); } + T* begin() { size_t HDR_SZ = 4; if (!Buf.Data) return NULL; return (T*)(void*)(Buf.Data + HDR_SZ); } + T* next_chunk(T* p) { size_t HDR_SZ = 4; IM_ASSERT(p >= begin() && p < end()); p = (T*)(void*)((char*)(void*)p + chunk_size(p)); if (p == (T*)(void*)((char*)end() + HDR_SZ)) return (T*)0; IM_ASSERT(p < end()); return p; } + int chunk_size(const T* p) { return ((const int*)p)[-1]; } + T* end() { return (T*)(void*)(Buf.Data + Buf.Size); } + int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; } + T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); } + void swap(ImChunkStream& rhs) { rhs.Buf.swap(Buf); } + +}; + +// Helper: ImGuiTextIndex<> +// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API. +struct ImGuiTextIndex +{ + ImVector LineOffsets; + int EndOffset = 0; // Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?) + + void clear() { LineOffsets.clear(); EndOffset = 0; } + int size() { return LineOffsets.Size; } + const char* get_line_begin(const char* base, int n) { return base + LineOffsets[n]; } + const char* get_line_end(const char* base, int n) { return base + (n + 1 < LineOffsets.Size ? (LineOffsets[n + 1] - 1) : EndOffset); } + void append(const char* base, int old_size, int new_size); +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList support +//----------------------------------------------------------------------------- + +// ImDrawList: Helper function to calculate a circle's segment count given its radius and a "maximum error" value. +// Estimation of number of circle segment based on error is derived using method described in https://stackoverflow.com/a/2244088/15194693 +// Number of segments (N) is calculated using equation: +// N = ceil ( pi / acos(1 - error / r) ) where r > 0, error <= r +// Our equation is significantly simpler that one in the post thanks for choosing segment that is +// perpendicular to X axis. Follow steps in the article from this starting condition and you will +// will get this result. +// +// Rendering circles with an odd number of segments, while mathematically correct will produce +// asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.) +#define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(_RAD,_MAXERROR) ImClamp(IM_ROUNDUP_TO_EVEN((int)ImCeil(IM_PI / ImAcos(1 - ImMin((_MAXERROR), (_RAD)) / (_RAD)))), IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX) + +// Raw equation from IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC rewritten for 'r' and 'error'. +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(_N,_MAXERROR) ((_MAXERROR) / (1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI)))) +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_ERROR(_N,_RAD) ((1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI))) / (_RAD)) + +// ImDrawList: Lookup table size for adaptive arc drawing, cover full circle. +#ifndef IM_DRAWLIST_ARCFAST_TABLE_SIZE +#define IM_DRAWLIST_ARCFAST_TABLE_SIZE 48 // Number of samples in lookup table. +#endif +#define IM_DRAWLIST_ARCFAST_SAMPLE_MAX IM_DRAWLIST_ARCFAST_TABLE_SIZE // Sample index _PathArcToFastEx() for 360 angle. + +// Data shared between all ImDrawList instances +// You may want to create your own instance of this if you want to use ImDrawList completely without ImGui. In that case, watch out for future changes to this structure. +struct IMGUI_API ImDrawListSharedData +{ + ImVec2 TexUvWhitePixel; // UV of white pixel in the atlas + ImFont* Font; // Current/default font (optional, for simplified AddText overload) + float FontSize; // Current/default font size (optional, for simplified AddText overload) + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() + float CircleSegmentMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc + ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() + ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) + + // [Internal] Temp write buffer + ImVector TempBuffer; + + // [Internal] Lookup tables + ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]; // Sample points on the quarter of the circle. + float ArcFastRadiusCutoff; // Cutoff radius after which arc drawing will fallback to slower PathArcTo() + ImU8 CircleSegmentCounts[64]; // Precomputed segment count for given radius before we calculate it dynamically (to avoid calculation overhead) + const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas + + ImDrawListSharedData(); + void SetCircleTessellationMaxError(float max_error); +}; + +struct ImDrawDataBuilder +{ + ImVector* Layers[2]; // Pointers to global layers for: regular, tooltip. LayersP[0] is owned by DrawData. + ImVector LayerData1; + + ImDrawDataBuilder() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Widgets support: flags, enums, data structures +//----------------------------------------------------------------------------- + +// Flags used by upcoming items +// - input: PushItemFlag() manipulates g.CurrentItemFlags, ItemAdd() calls may add extra flags. +// - output: stored in g.LastItemData.InFlags +// Current window shared by all windows. +// This is going to be exposed in imgui.h when stabilized enough. +enum ImGuiItemFlags_ +{ + // Controlled by user + ImGuiItemFlags_None = 0, + ImGuiItemFlags_NoTabStop = 1 << 0, // false // Disable keyboard tabbing. This is a "lighter" version of ImGuiItemFlags_NoNav. + ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. + ImGuiItemFlags_Disabled = 1 << 2, // false // Disable interactions but doesn't affect visuals. See BeginDisabled()/EndDisabled(). See github.com/ocornut/imgui/issues/211 + ImGuiItemFlags_NoNav = 1 << 3, // false // Disable any form of focusing (keyboard/gamepad directional navigation and SetKeyboardFocusHere() calls) + ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, // false // Disable item being a candidate for default focus (e.g. used by title bar items) + ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // Disable MenuItem/Selectable() automatically closing their popup window + ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) + ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. + ImGuiItemFlags_NoWindowHoverableCheck = 1 << 8, // false // Disable hoverable check in ItemHoverable() + ImGuiItemFlags_AllowOverlap = 1 << 9, // false // Allow being overlapped by another widget. Not-hovered to Hovered transition deferred by a frame. + + // Controlled by widget code + ImGuiItemFlags_Inputable = 1 << 10, // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature. + ImGuiItemFlags_HasSelectionUserData = 1 << 11, // false // Set by SetNextItemSelectionUserData() +}; + +// Status flags for an already submitted item +// - output: stored in g.LastItemData.StatusFlags +enum ImGuiItemStatusFlags_ +{ + ImGuiItemStatusFlags_None = 0, + ImGuiItemStatusFlags_HoveredRect = 1 << 0, // Mouse position is within item rectangle (does NOT mean that the window is in correct z-order and can be hovered!, this is only one part of the most-common IsItemHovered test) + ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, // g.LastItemData.DisplayRect is valid + ImGuiItemStatusFlags_Edited = 1 << 2, // Value exposed by item was edited in the current frame (should match the bool return value of most widgets) + ImGuiItemStatusFlags_ToggledSelection = 1 << 3, // Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected", only state changes, in order to easily handle clipping with less issues. + ImGuiItemStatusFlags_ToggledOpen = 1 << 4, // Set when TreeNode() reports toggling their open state. + ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. + ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. + ImGuiItemStatusFlags_HoveredWindow = 1 << 7, // Override the HoveredWindow test to allow cross-window hover testing. + ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, // Set when the Focusable item just got focused by Tabbing (FIXME: to be removed soon) + ImGuiItemStatusFlags_Visible = 1 << 9, // [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()). + + // Additional status + semantic for ImGuiTestEngine +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiItemStatusFlags_Openable = 1 << 20, // Item is an openable (e.g. TreeNode) + ImGuiItemStatusFlags_Opened = 1 << 21, // Opened status + ImGuiItemStatusFlags_Checkable = 1 << 22, // Item is a checkable (e.g. CheckBox, MenuItem) + ImGuiItemStatusFlags_Checked = 1 << 23, // Checked status + ImGuiItemStatusFlags_Inputable = 1 << 24, // Item is a text-inputable (e.g. InputText, SliderXXX, DragXXX) +#endif +}; + +// Extend ImGuiHoveredFlags_ +enum ImGuiHoveredFlagsPrivate_ +{ + ImGuiHoveredFlags_DelayMask_ = ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay, + ImGuiHoveredFlags_AllowedMaskForIsWindowHovered = ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_AnyWindow | ImGuiHoveredFlags_NoPopupHierarchy | ImGuiHoveredFlags_DockHierarchy | ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary, + ImGuiHoveredFlags_AllowedMaskForIsItemHovered = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped | ImGuiHoveredFlags_AllowWhenDisabled | ImGuiHoveredFlags_NoNavOverride | ImGuiHoveredFlags_ForTooltip | ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayMask_, +}; + +// Extend ImGuiInputTextFlags_ +enum ImGuiInputTextFlagsPrivate_ +{ + // [Internal] + ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline() + ImGuiInputTextFlags_NoMarkEdited = 1 << 27, // For internal use by functions using InputText() before reformatting data + ImGuiInputTextFlags_MergedItem = 1 << 28, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match. +}; + +// Extend ImGuiButtonFlags_ +enum ImGuiButtonFlagsPrivate_ +{ + ImGuiButtonFlags_PressedOnClick = 1 << 4, // return true on click (mouse down event) + ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, // [Default] return true on click + release on same item <-- this is what the majority of Button are using + ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, // return true on click + release even if the release event is not done while hovering the item + ImGuiButtonFlags_PressedOnRelease = 1 << 7, // return true on release (default requires click+release) + ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, // return true on double-click (default requires click+release) + ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, // return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers) + ImGuiButtonFlags_Repeat = 1 << 10, // hold to repeat + ImGuiButtonFlags_FlattenChildren = 1 << 11, // allow interactions even if a child window is overlapping + ImGuiButtonFlags_AllowOverlap = 1 << 12, // require previous frame HoveredId to either match id or be null before being usable. + ImGuiButtonFlags_DontClosePopups = 1 << 13, // disable automatically closing parent popup on press // [UNUSED] + //ImGuiButtonFlags_Disabled = 1 << 14, // disable interactions -> use BeginDisabled() or ImGuiItemFlags_Disabled + ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine + ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held + ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) + ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated (FIXME: this is essentially used everytime an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.InFlags) + ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item + ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, // don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, // don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) + ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease, +}; + +// Extend ImGuiComboFlags_ +enum ImGuiComboFlagsPrivate_ +{ + ImGuiComboFlags_CustomPreview = 1 << 20, // enable BeginComboPreview() +}; + +// Extend ImGuiSliderFlags_ +enum ImGuiSliderFlagsPrivate_ +{ + ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? + ImGuiSliderFlags_ReadOnly = 1 << 21, // Consider using g.NextItemData.ItemFlags |= ImGuiItemFlags_ReadOnly instead. +}; + +// Extend ImGuiSelectableFlags_ +enum ImGuiSelectableFlagsPrivate_ +{ + // NB: need to be in sync with last value of ImGuiSelectableFlags_ + ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, + ImGuiSelectableFlags_SelectOnNav = 1 << 21, // (WIP) Auto-select when moved into. This is not exposed in public API as to handle multi-select and modifiers we will need user to explicitly control focus scope. May be replaced with a BeginSelection() API. + ImGuiSelectableFlags_SelectOnClick = 1 << 22, // Override button behavior to react on Click (default is Click+Release) + ImGuiSelectableFlags_SelectOnRelease = 1 << 23, // Override button behavior to react on Release (default is Click+Release) + ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) + ImGuiSelectableFlags_SetNavIdOnHover = 1 << 25, // Set Nav/Focus ID on mouse hover (used by MenuItem) + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 26, // Disable padding each side with ItemSpacing * 0.5f + ImGuiSelectableFlags_NoSetKeyOwner = 1 << 27, // Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!) +}; + +// Extend ImGuiTreeNodeFlags_ +enum ImGuiTreeNodeFlagsPrivate_ +{ + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20, + ImGuiTreeNodeFlags_UpsideDownArrow = 1 << 21,// (FIXME-WIP) Turn Down arrow into an Up arrow, but reversed trees (#6517) +}; + +enum ImGuiSeparatorFlags_ +{ + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, // Make separator cover all columns of a legacy Columns() set. +}; + +// Flags for FocusWindow(). This is not called ImGuiFocusFlags to avoid confusion with public-facing ImGuiFocusedFlags. +// FIXME: Once we finishing replacing more uses of GetTopMostPopupModal()+IsWindowWithinBeginStackOf() +// and FindBlockingModal() with this, we may want to change the flag to be opt-out instead of opt-in. +enum ImGuiFocusRequestFlags_ +{ + ImGuiFocusRequestFlags_None = 0, + ImGuiFocusRequestFlags_RestoreFocusedChild = 1 << 0, // Find last focused child (if any) and focus it instead. + ImGuiFocusRequestFlags_UnlessBelowModal = 1 << 1, // Do not set focus if the window is below a modal. +}; + +enum ImGuiTextFlags_ +{ + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0, +}; + +enum ImGuiTooltipFlags_ +{ + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePrevious = 1 << 1, // Clear/ignore previously submitted tooltip (defaults to append) +}; + +// FIXME: this is in development, not exposed/functional as a generic feature yet. +// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiLayoutType_ +{ + ImGuiLayoutType_Horizontal = 0, + ImGuiLayoutType_Vertical = 1 +}; + +enum ImGuiLogType +{ + ImGuiLogType_None = 0, + ImGuiLogType_TTY, + ImGuiLogType_File, + ImGuiLogType_Buffer, + ImGuiLogType_Clipboard, +}; + +// X/Y enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiAxis +{ + ImGuiAxis_None = -1, + ImGuiAxis_X = 0, + ImGuiAxis_Y = 1 +}; + +enum ImGuiPlotType +{ + ImGuiPlotType_Lines, + ImGuiPlotType_Histogram, +}; + +enum ImGuiPopupPositionPolicy +{ + ImGuiPopupPositionPolicy_Default, + ImGuiPopupPositionPolicy_ComboBox, + ImGuiPopupPositionPolicy_Tooltip, +}; + +struct ImGuiDataVarInfo +{ + ImGuiDataType Type; + ImU32 Count; // 1+ + ImU32 Offset; // Offset in parent structure + void* GetVarPtr(void* parent) const { return (void*)((unsigned char*)parent + Offset); } +}; + +struct ImGuiDataTypeTempStorage +{ + ImU8 Data[8]; // Can fit any data up to ImGuiDataType_COUNT +}; + +// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo(). +struct ImGuiDataTypeInfo +{ + size_t Size; // Size in bytes + const char* Name; // Short descriptive name for the type, for debugging + const char* PrintFmt; // Default printf format for the type + const char* ScanFmt; // Default scanf format for the type +}; + +// Extend ImGuiDataType_ +enum ImGuiDataTypePrivate_ +{ + ImGuiDataType_String = ImGuiDataType_COUNT + 1, + ImGuiDataType_Pointer, + ImGuiDataType_ID, +}; + +// Stacked color modifier, backup of modified data so we can restore it +struct ImGuiColorMod +{ + ImGuiCol Col; + ImVec4 BackupValue; +}; + +// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. +struct ImGuiStyleMod +{ + ImGuiStyleVar VarIdx; + union { int BackupInt[2]; float BackupFloat[2]; }; + ImGuiStyleMod(ImGuiStyleVar idx, int v) { VarIdx = idx; BackupInt[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, float v) { VarIdx = idx; BackupFloat[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, ImVec2 v) { VarIdx = idx; BackupFloat[0] = v.x; BackupFloat[1] = v.y; } +}; + +// Storage data for BeginComboPreview()/EndComboPreview() +struct IMGUI_API ImGuiComboPreviewData +{ + ImRect PreviewRect; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec2 BackupCursorPosPrevLine; + float BackupPrevLineTextBaseOffset; + ImGuiLayoutType BackupLayout; + + ImGuiComboPreviewData() { memset(this, 0, sizeof(*this)); } +}; + +// Stacked storage data for BeginGroup()/EndGroup() +struct IMGUI_API ImGuiGroupData +{ + ImGuiID WindowID; + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec1 BackupIndent; + ImVec1 BackupGroupOffset; + ImVec2 BackupCurrLineSize; + float BackupCurrLineTextBaseOffset; + ImGuiID BackupActiveIdIsAlive; + bool BackupActiveIdPreviousFrameIsAlive; + bool BackupHoveredIdIsAlive; + bool EmitItem; +}; + +// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper. +struct IMGUI_API ImGuiMenuColumns +{ + ImU32 TotalWidth; + ImU32 NextTotalWidth; + ImU16 Spacing; + ImU16 OffsetIcon; // Always zero for now + ImU16 OffsetLabel; // Offsets are locked in Update() + ImU16 OffsetShortcut; + ImU16 OffsetMark; + ImU16 Widths[4]; // Width of: Icon, Label, Shortcut, Mark (accumulators for current frame) + + ImGuiMenuColumns() { memset(this, 0, sizeof(*this)); } + void Update(float spacing, bool window_reappearing); + float DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark); + void CalcNextTotalWidth(bool update_offsets); +}; + +// Internal temporary state for deactivating InputText() instances. +struct IMGUI_API ImGuiInputTextDeactivatedState +{ + ImGuiID ID; // widget id owning the text state (which just got deactivated) + ImVector TextA; // text buffer + + ImGuiInputTextDeactivatedState() { memset(this, 0, sizeof(*this)); } + void ClearFreeMemory() { ID = 0; TextA.clear(); } +}; +// Internal state of the currently focused/edited text input box +// For a given item ID, access with ImGui::GetInputTextState() +struct IMGUI_API ImGuiInputTextState +{ + ImGuiContext* Ctx; // parent UI context (needs to be set explicitly by parent). + ImGuiID ID; // widget id owning the text state + int CurLenW, CurLenA; // we need to maintain our buffer length in both UTF-8 and wchar format. UTF-8 length is valid even if TextA is not. + ImVector TextW; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer. + ImVector TextA; // temporary UTF8 buffer for callbacks and other operations. this is not updated in every code-path! size=capacity. + ImVector InitialTextA; // backup of end-user buffer at the time of focus (in UTF-8, unaltered) + bool TextAIsValid; // temporary UTF8 buffer is not initially valid before we make the widget active (until then we pull the data from user argument) + int BufCapacityA; // end-user buffer capacity + float ScrollX; // horizontal scrolling/offset + ImStb::STB_TexteditState Stb; // state for stb_textedit.h + float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately + bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) + bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection + bool Edited; // edited this frame + ImGuiInputTextFlags Flags; // copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set. + + ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } + void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } + void ClearFreeMemory() { TextW.clear(); TextA.clear(); InitialTextA.clear(); } + int GetUndoAvailCount() const { return Stb.undostate.undo_point; } + int GetRedoAvailCount() const { return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; } + void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation + + // Cursor & Selection + void CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking + void CursorClamp() { Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); } + bool HasSelection() const { return Stb.select_start != Stb.select_end; } + void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; } + int GetCursorPos() const { return Stb.cursor; } + int GetSelectionStart() const { return Stb.select_start; } + int GetSelectionEnd() const { return Stb.select_end; } + void SelectAll() { Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; } +}; + +// Storage for current popup stack +struct ImGuiPopupData +{ + ImGuiID PopupId; // Set on OpenPopup() + ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() + ImGuiWindow* BackupNavWindow;// Set on OpenPopup(), a NavWindow that will be restored on popup close + int ParentNavLayer; // Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which is not part of an enum, but serves well-enough as "not any of layers" value + int OpenFrameCount; // Set on OpenPopup() + ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) + ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) + ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup + + ImGuiPopupData() { memset(this, 0, sizeof(*this)); ParentNavLayer = OpenFrameCount = -1; } +}; + +enum ImGuiNextWindowDataFlags_ +{ + ImGuiNextWindowDataFlags_None = 0, + ImGuiNextWindowDataFlags_HasPos = 1 << 0, + ImGuiNextWindowDataFlags_HasSize = 1 << 1, + ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, + ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, + ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, + ImGuiNextWindowDataFlags_HasFocus = 1 << 5, + ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, + ImGuiNextWindowDataFlags_HasScroll = 1 << 7, + ImGuiNextWindowDataFlags_HasViewport = 1 << 8, + ImGuiNextWindowDataFlags_HasDock = 1 << 9, + ImGuiNextWindowDataFlags_HasWindowClass = 1 << 10, +}; + +// Storage for SetNexWindow** functions +struct ImGuiNextWindowData +{ + ImGuiNextWindowDataFlags Flags; + ImGuiCond PosCond; + ImGuiCond SizeCond; + ImGuiCond CollapsedCond; + ImGuiCond DockCond; + ImVec2 PosVal; + ImVec2 PosPivotVal; + ImVec2 SizeVal; + ImVec2 ContentSizeVal; + ImVec2 ScrollVal; + bool PosUndock; + bool CollapsedVal; + ImRect SizeConstraintRect; + ImGuiSizeCallback SizeCallback; + void* SizeCallbackUserData; + float BgAlphaVal; // Override background alpha + ImGuiID ViewportId; + ImGuiID DockId; + ImGuiWindowClass WindowClass; + ImVec2 MenuBarOffsetMinVal; // (Always on) This is not exposed publicly, so we don't clear it and it doesn't have a corresponding flag (could we? for consistency?) + + ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; } +}; + +// Multi-Selection item index or identifier when using SetNextItemSelectionUserData()/BeginMultiSelect() +// (Most users are likely to use this store an item INDEX but this may be used to store a POINTER as well.) +typedef ImS64 ImGuiSelectionUserData; + +enum ImGuiNextItemDataFlags_ +{ + ImGuiNextItemDataFlags_None = 0, + ImGuiNextItemDataFlags_HasWidth = 1 << 0, + ImGuiNextItemDataFlags_HasOpen = 1 << 1, +}; + +struct ImGuiNextItemData +{ + ImGuiNextItemDataFlags Flags; + ImGuiItemFlags ItemFlags; // Currently only tested/used for ImGuiItemFlags_AllowOverlap. + // Non-flags members are NOT cleared by ItemAdd() meaning they are still valid during NavProcessItem() + float Width; // Set by SetNextItemWidth() + ImGuiSelectionUserData SelectionUserData; // Set by SetNextItemSelectionUserData() (note that NULL/0 is a valid value, we use -1 == ImGuiSelectionUserData_Invalid to mark invalid values) + ImGuiCond OpenCond; + bool OpenVal; // Set by SetNextItemOpen() + + ImGuiNextItemData() { memset(this, 0, sizeof(*this)); SelectionUserData = -1; } + inline void ClearFlags() { Flags = ImGuiNextItemDataFlags_None; ItemFlags = ImGuiItemFlags_None; } // Also cleared manually by ItemAdd()! +}; + +// Status storage for the last submitted item +struct ImGuiLastItemData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; // See ImGuiItemFlags_ + ImGuiItemStatusFlags StatusFlags; // See ImGuiItemStatusFlags_ + ImRect Rect; // Full rectangle + ImRect NavRect; // Navigation scoring rectangle (not displayed) + ImRect DisplayRect; // Display rectangle (only if ImGuiItemStatusFlags_HasDisplayRect is set) + + ImGuiLastItemData() { memset(this, 0, sizeof(*this)); } +}; + +// Store data emitted by TreeNode() for usage by TreePop() to implement ImGuiTreeNodeFlags_NavLeftJumpsBackHere. +// This is the minimum amount of data that we need to perform the equivalent of NavApplyItemToResult() and which we can't infer in TreePop() +// Only stored when the node is a potential candidate for landing on a Left arrow jump. +struct ImGuiNavTreeNodeData +{ + ImGuiID ID; + ImGuiItemFlags InFlags; + ImRect NavRect; +}; + +struct IMGUI_API ImGuiStackSizes +{ + short SizeOfIDStack; + short SizeOfColorStack; + short SizeOfStyleVarStack; + short SizeOfFontStack; + short SizeOfFocusScopeStack; + short SizeOfGroupStack; + short SizeOfItemFlagsStack; + short SizeOfBeginPopupStack; + short SizeOfDisabledStack; + + ImGuiStackSizes() { memset(this, 0, sizeof(*this)); } + void SetToContextState(ImGuiContext* ctx); + void CompareWithContextState(ImGuiContext* ctx); +}; + +// Data saved for each window pushed into the stack +struct ImGuiWindowStackData +{ + ImGuiWindow* Window; + ImGuiLastItemData ParentLastItemDataBackup; + ImGuiStackSizes StackSizesOnBegin; // Store size of various stacks for asserting +}; + +struct ImGuiShrinkWidthItem +{ + int Index; + float Width; + float InitialWidth; +}; + +struct ImGuiPtrOrIndex +{ + void* Ptr; // Either field can be set, not both. e.g. Dock node tab bars are loose while BeginTabBar() ones are in a pool. + int Index; // Usually index in a main pool. + + ImGuiPtrOrIndex(void* ptr) { Ptr = ptr; Index = -1; } + ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Inputs support +//----------------------------------------------------------------------------- + +// Bit array for named keys +typedef ImBitArray ImBitArrayForNamedKeys; + +// [Internal] Key ranges +#define ImGuiKey_LegacyNativeKey_BEGIN 0 +#define ImGuiKey_LegacyNativeKey_END 512 +#define ImGuiKey_Keyboard_BEGIN (ImGuiKey_NamedKey_BEGIN) +#define ImGuiKey_Keyboard_END (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_BEGIN (ImGuiKey_GamepadStart) +#define ImGuiKey_Gamepad_END (ImGuiKey_GamepadRStickDown + 1) +#define ImGuiKey_Mouse_BEGIN (ImGuiKey_MouseLeft) +#define ImGuiKey_Mouse_END (ImGuiKey_MouseWheelY + 1) +#define ImGuiKey_Aliases_BEGIN (ImGuiKey_Mouse_BEGIN) +#define ImGuiKey_Aliases_END (ImGuiKey_Mouse_END) + +// [Internal] Named shortcuts for Navigation +#define ImGuiKey_NavKeyboardTweakSlow ImGuiMod_Ctrl +#define ImGuiKey_NavKeyboardTweakFast ImGuiMod_Shift +#define ImGuiKey_NavGamepadTweakSlow ImGuiKey_GamepadL1 +#define ImGuiKey_NavGamepadTweakFast ImGuiKey_GamepadR1 +#define ImGuiKey_NavGamepadActivate ImGuiKey_GamepadFaceDown +#define ImGuiKey_NavGamepadCancel ImGuiKey_GamepadFaceRight +#define ImGuiKey_NavGamepadMenu ImGuiKey_GamepadFaceLeft +#define ImGuiKey_NavGamepadInput ImGuiKey_GamepadFaceUp + +enum ImGuiInputEventType +{ + ImGuiInputEventType_None = 0, + ImGuiInputEventType_MousePos, + ImGuiInputEventType_MouseWheel, + ImGuiInputEventType_MouseButton, + ImGuiInputEventType_MouseViewport, + ImGuiInputEventType_Key, + ImGuiInputEventType_Text, + ImGuiInputEventType_Focus, + ImGuiInputEventType_COUNT +}; + +enum ImGuiInputSource +{ + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, // Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them. + ImGuiInputSource_Keyboard, + ImGuiInputSource_Gamepad, + ImGuiInputSource_Clipboard, // Currently only used by InputText() + ImGuiInputSource_COUNT +}; + +// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension? +// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor' +struct ImGuiInputEventMousePos { float PosX, PosY; ImGuiMouseSource MouseSource; }; +struct ImGuiInputEventMouseWheel { float WheelX, WheelY; ImGuiMouseSource MouseSource; }; +struct ImGuiInputEventMouseButton { int Button; bool Down; ImGuiMouseSource MouseSource; }; +struct ImGuiInputEventMouseViewport { ImGuiID HoveredViewportID; }; +struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }; +struct ImGuiInputEventText { unsigned int Char; }; +struct ImGuiInputEventAppFocused { bool Focused; }; + +struct ImGuiInputEvent +{ + ImGuiInputEventType Type; + ImGuiInputSource Source; + ImU32 EventId; // Unique, sequential increasing integer to identify an event (if you need to correlate them to other data). + union + { + ImGuiInputEventMousePos MousePos; // if Type == ImGuiInputEventType_MousePos + ImGuiInputEventMouseWheel MouseWheel; // if Type == ImGuiInputEventType_MouseWheel + ImGuiInputEventMouseButton MouseButton; // if Type == ImGuiInputEventType_MouseButton + ImGuiInputEventMouseViewport MouseViewport; // if Type == ImGuiInputEventType_MouseViewport + ImGuiInputEventKey Key; // if Type == ImGuiInputEventType_Key + ImGuiInputEventText Text; // if Type == ImGuiInputEventType_Text + ImGuiInputEventAppFocused AppFocused; // if Type == ImGuiInputEventType_Focus + }; + bool AddedByTestEngine; + + ImGuiInputEvent() { memset(this, 0, sizeof(*this)); } +}; + +// Input function taking an 'ImGuiID owner_id' argument defaults to (ImGuiKeyOwner_Any == 0) aka don't test ownership, which matches legacy behavior. +#define ImGuiKeyOwner_Any ((ImGuiID)0) // Accept key that have an owner, UNLESS a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. +#define ImGuiKeyOwner_None ((ImGuiID)-1) // Require key to have no owner. + +typedef ImS16 ImGuiKeyRoutingIndex; + +// Routing table entry (sizeof() == 16 bytes) +struct ImGuiKeyRoutingData +{ + ImGuiKeyRoutingIndex NextEntryIndex; + ImU16 Mods; // Technically we'd only need 4-bits but for simplify we store ImGuiMod_ values which need 16-bits. ImGuiMod_Shortcut is already translated to Ctrl/Super. + ImU8 RoutingNextScore; // Lower is better (0: perfect score) + ImGuiID RoutingCurr; + ImGuiID RoutingNext; + + ImGuiKeyRoutingData() { NextEntryIndex = -1; Mods = 0; RoutingNextScore = 255; RoutingCurr = RoutingNext = ImGuiKeyOwner_None; } +}; + +// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching. +// Stored in main context (1 instance) +struct ImGuiKeyRoutingTable +{ + ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; // Index of first entry in Entries[] + ImVector Entries; + ImVector EntriesNext; // Double-buffer to avoid reallocation (could use a shared buffer) + + ImGuiKeyRoutingTable() { Clear(); } + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Index); n++) Index[n] = -1; Entries.clear(); EntriesNext.clear(); } +}; + +// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features) +// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData. +struct ImGuiKeyOwnerData +{ + ImGuiID OwnerCurr; + ImGuiID OwnerNext; + bool LockThisFrame; // Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame. + bool LockUntilRelease; // Reading this key requires explicit owner id (until key is released). Set by ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well. + + ImGuiKeyOwnerData() { OwnerCurr = OwnerNext = ImGuiKeyOwner_None; LockThisFrame = LockUntilRelease = false; } +}; + +// Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner() +// Don't mistake with ImGuiInputTextFlags! (for ImGui::InputText() function) +enum ImGuiInputFlags_ +{ + // Flags for IsKeyPressed(), IsMouseClicked(), Shortcut() + ImGuiInputFlags_None = 0, + ImGuiInputFlags_Repeat = 1 << 0, // Return true on successive repeats. Default for legacy IsKeyPressed(). NOT Default for legacy IsMouseClicked(). MUST BE == 1. + ImGuiInputFlags_RepeatRateDefault = 1 << 1, // Repeat rate: Regular (default) + ImGuiInputFlags_RepeatRateNavMove = 1 << 2, // Repeat rate: Fast + ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, // Repeat rate: Faster + ImGuiInputFlags_RepeatRateMask_ = ImGuiInputFlags_RepeatRateDefault | ImGuiInputFlags_RepeatRateNavMove | ImGuiInputFlags_RepeatRateNavTweak, + + // Flags for SetItemKeyOwner() + ImGuiInputFlags_CondHovered = 1 << 4, // Only set if item is hovered (default to both) + ImGuiInputFlags_CondActive = 1 << 5, // Only set if item is active (default to both) + ImGuiInputFlags_CondDefault_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + ImGuiInputFlags_CondMask_ = ImGuiInputFlags_CondHovered | ImGuiInputFlags_CondActive, + + // Flags for SetKeyOwner(), SetItemKeyOwner() + ImGuiInputFlags_LockThisFrame = 1 << 6, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + ImGuiInputFlags_LockUntilRelease = 1 << 7, // Access to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released. This is useful to make input-owner-aware code steal keys from non-input-owner-aware code. + + // Routing policies for Shortcut() + low-level SetShortcutRouting() + // - The general idea is that several callers register interest in a shortcut, and only one owner gets it. + // - When a policy (other than _RouteAlways) is set, Shortcut() will register itself with SetShortcutRouting(), + // allowing the system to decide where to route the input among other route-aware calls. + // - Shortcut() uses ImGuiInputFlags_RouteFocused by default: meaning that a simple Shortcut() poll + // will register a route and only succeed when parent window is in the focus stack and if no-one + // with a higher priority is claiming the shortcut. + // - Using ImGuiInputFlags_RouteAlways is roughly equivalent to doing e.g. IsKeyPressed(key) + testing mods. + // - Priorities: GlobalHigh > Focused (when owner is active item) > Global > Focused (when focused window) > GlobalLow. + // - Can select only 1 policy among all available. + ImGuiInputFlags_RouteFocused = 1 << 8, // (Default) Register focused route: Accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window. + ImGuiInputFlags_RouteGlobalLow = 1 << 9, // Register route globally (lowest priority: unless a focused window or active item registered the route) -> recommended Global priority. + ImGuiInputFlags_RouteGlobal = 1 << 10, // Register route globally (medium priority: unless an active item registered the route, e.g. CTRL+A registered by InputText). + ImGuiInputFlags_RouteGlobalHigh = 1 << 11, // Register route globally (highest priority: unlikely you need to use that: will interfere with every active items) + ImGuiInputFlags_RouteMask_ = ImGuiInputFlags_RouteFocused | ImGuiInputFlags_RouteGlobal | ImGuiInputFlags_RouteGlobalLow | ImGuiInputFlags_RouteGlobalHigh, // _Always not part of this! + ImGuiInputFlags_RouteAlways = 1 << 12, // Do not register route, poll keys directly. + ImGuiInputFlags_RouteUnlessBgFocused= 1 << 13, // Global routes will not be applied if underlying background/void is focused (== no Dear ImGui windows are focused). Useful for overlay applications. + ImGuiInputFlags_RouteExtraMask_ = ImGuiInputFlags_RouteAlways | ImGuiInputFlags_RouteUnlessBgFocused, + + // [Internal] Mask of which function support which flags + ImGuiInputFlags_SupportedByIsKeyPressed = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_, + ImGuiInputFlags_SupportedByShortcut = ImGuiInputFlags_Repeat | ImGuiInputFlags_RepeatRateMask_ | ImGuiInputFlags_RouteMask_ | ImGuiInputFlags_RouteExtraMask_, + ImGuiInputFlags_SupportedBySetKeyOwner = ImGuiInputFlags_LockThisFrame | ImGuiInputFlags_LockUntilRelease, + ImGuiInputFlags_SupportedBySetItemKeyOwner = ImGuiInputFlags_SupportedBySetKeyOwner | ImGuiInputFlags_CondMask_, +}; + +//----------------------------------------------------------------------------- +// [SECTION] Clipper support +//----------------------------------------------------------------------------- + +// Note that Max is exclusive, so perhaps should be using a Begin/End convention. +struct ImGuiListClipperRange +{ + int Min; + int Max; + bool PosToIndexConvert; // Begin/End are absolute position (will be converted to indices later) + ImS8 PosToIndexOffsetMin; // Add to Min after converting to indices + ImS8 PosToIndexOffsetMax; // Add to Min after converting to indices + + static ImGuiListClipperRange FromIndices(int min, int max) { ImGuiListClipperRange r = { min, max, false, 0, 0 }; return r; } + static ImGuiListClipperRange FromPositions(float y1, float y2, int off_min, int off_max) { ImGuiListClipperRange r = { (int)y1, (int)y2, true, (ImS8)off_min, (ImS8)off_max }; return r; } +}; + +// Temporary clipper data, buffers shared/reused between instances +struct ImGuiListClipperData +{ + ImGuiListClipper* ListClipper; + float LossynessOffset; + int StepNo; + int ItemsFrozen; + ImVector Ranges; + + ImGuiListClipperData() { memset(this, 0, sizeof(*this)); } + void Reset(ImGuiListClipper* clipper) { ListClipper = clipper; StepNo = ItemsFrozen = 0; Ranges.resize(0); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Navigation support +//----------------------------------------------------------------------------- + +enum ImGuiActivateFlags_ +{ + ImGuiActivateFlags_None = 0, + ImGuiActivateFlags_PreferInput = 1 << 0, // Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default for Enter key. + ImGuiActivateFlags_PreferTweak = 1 << 1, // Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default for Space key and if keyboard is not used. + ImGuiActivateFlags_TryToPreserveState = 1 << 2, // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection) +}; + +// Early work-in-progress API for ScrollToItem() +enum ImGuiScrollFlags_ +{ + ImGuiScrollFlags_None = 0, + ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, // If item is not visible: scroll as little as possible on X axis to bring item back into view [default for X axis] + ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, // If item is not visible: scroll as little as possible on Y axis to bring item back into view [default for Y axis for windows that are already visible] + ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, // If item is not visible: scroll to make the item centered on X axis [rarely used] + ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, // If item is not visible: scroll to make the item centered on Y axis + ImGuiScrollFlags_AlwaysCenterX = 1 << 4, // Always center the result item on X axis [rarely used] + ImGuiScrollFlags_AlwaysCenterY = 1 << 5, // Always center the result item on Y axis [default for Y axis for appearing window) + ImGuiScrollFlags_NoScrollParent = 1 << 6, // Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to). + ImGuiScrollFlags_MaskX_ = ImGuiScrollFlags_KeepVisibleEdgeX | ImGuiScrollFlags_KeepVisibleCenterX | ImGuiScrollFlags_AlwaysCenterX, + ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY, +}; + +enum ImGuiNavHighlightFlags_ +{ + ImGuiNavHighlightFlags_None = 0, + ImGuiNavHighlightFlags_TypeDefault = 1 << 0, + ImGuiNavHighlightFlags_TypeThin = 1 << 1, + ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. + ImGuiNavHighlightFlags_NoRounding = 1 << 3, +}; + +enum ImGuiNavMoveFlags_ +{ + ImGuiNavMoveFlags_None = 0, + ImGuiNavMoveFlags_LoopX = 1 << 0, // On failed request, restart from opposite side + ImGuiNavMoveFlags_LoopY = 1 << 1, + ImGuiNavMoveFlags_WrapX = 1 << 2, // On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left) + ImGuiNavMoveFlags_WrapY = 1 << 3, // This is not super useful but provided for completeness + ImGuiNavMoveFlags_WrapMask_ = ImGuiNavMoveFlags_LoopX | ImGuiNavMoveFlags_LoopY | ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_WrapY, + ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, // Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place) + ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, // Store alternate result in NavMoveResultLocalVisible that only comprise elements that are already fully visible (used by PageUp/PageDown) + ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, // Force scrolling to min/max (used by Home/End) // FIXME-NAV: Aim to remove or reword, probably unnecessary + ImGuiNavMoveFlags_Forwarded = 1 << 7, + ImGuiNavMoveFlags_DebugNoResult = 1 << 8, // Dummy scoring for debug purpose, don't apply result + ImGuiNavMoveFlags_FocusApi = 1 << 9, // Requests from focus API can land/focus/activate items even if they are marked with _NoTabStop (see NavProcessItemForTabbingRequest() for details) + ImGuiNavMoveFlags_IsTabbing = 1 << 10, // == Focus + Activate if item is Inputable + DontChangeNavHighlight + ImGuiNavMoveFlags_IsPageMove = 1 << 11, // Identify a PageDown/PageUp request. + ImGuiNavMoveFlags_Activate = 1 << 12, // Activate/select target item. + ImGuiNavMoveFlags_NoSelect = 1 << 13, // Don't trigger selection by not setting g.NavJustMovedTo + ImGuiNavMoveFlags_NoSetNavHighlight = 1 << 14, // Do not alter the visible state of keyboard vs mouse nav highlight +}; + +enum ImGuiNavLayer +{ + ImGuiNavLayer_Main = 0, // Main scrolling layer + ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt) + ImGuiNavLayer_COUNT +}; + +struct ImGuiNavItemData +{ + ImGuiWindow* Window; // Init,Move // Best candidate window (result->ItemWindow->RootWindowForNav == request->Window) + ImGuiID ID; // Init,Move // Best candidate item ID + ImGuiID FocusScopeId; // Init,Move // Best candidate focus scope ID + ImRect RectRel; // Init,Move // Best candidate bounding box in window relative space + ImGuiItemFlags InFlags; // ????,Move // Best candidate item flags + ImGuiSelectionUserData SelectionUserData;//I+Mov // Best candidate SetNextItemSelectionData() value. + float DistBox; // Move // Best candidate box distance to current NavId + float DistCenter; // Move // Best candidate center distance to current NavId + float DistAxial; // Move // Best candidate axial distance to current NavId + + ImGuiNavItemData() { Clear(); } + void Clear() { Window = NULL; ID = FocusScopeId = 0; InFlags = 0; SelectionUserData = -1; DistBox = DistCenter = DistAxial = FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Typing-select support +//----------------------------------------------------------------------------- + +// Flags for GetTypingSelectRequest() +enum ImGuiTypingSelectFlags_ +{ + ImGuiTypingSelectFlags_None = 0, + ImGuiTypingSelectFlags_AllowBackspace = 1 << 0, // Backspace to delete character inputs. If using: ensure GetTypingSelectRequest() is not called more than once per frame (filter by e.g. focus state) + ImGuiTypingSelectFlags_AllowSingleCharMode = 1 << 1, // Allow "single char" search mode which is activated when pressing the same character multiple times. +}; + +// Returned by GetTypingSelectRequest(), designed to eventually be public. +struct IMGUI_API ImGuiTypingSelectRequest +{ + ImGuiTypingSelectFlags Flags; // Flags passed to GetTypingSelectRequest() + int SearchBufferLen; + const char* SearchBuffer; // Search buffer contents (use full string. unless SingleCharMode is set, in which case use SingleCharSize). + bool SelectRequest; // Set when buffer was modified this frame, requesting a selection. + bool SingleCharMode; // Notify when buffer contains same character repeated, to implement special mode. In this situation it preferred to not display any on-screen search indication. + ImS8 SingleCharSize; // Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If (SearchBufferLen==RepeatCharSize) only 1 letter has been input. +}; + +// Storage for GetTypingSelectRequest() +struct IMGUI_API ImGuiTypingSelectState +{ + ImGuiTypingSelectRequest Request; // User-facing data + char SearchBuffer[64]; // Search buffer: no need to make dynamic as this search is very transient. + ImGuiID FocusScope; + int LastRequestFrame = 0; + float LastRequestTime = 0.0f; + bool SingleCharModeLock = false; // After a certain single char repeat count we lock into SingleCharMode. Two benefits: 1) buffer never fill, 2) we can provide an immediate SingleChar mode without timer elapsing. + + ImGuiTypingSelectState() { memset(this, 0, sizeof(*this)); } + void Clear() { SearchBuffer[0] = 0; SingleCharModeLock = false; } // We preserve remaining data for easier debugging +}; + +//----------------------------------------------------------------------------- +// [SECTION] Columns support +//----------------------------------------------------------------------------- + +// Flags for internal's BeginColumns(). Prefix using BeginTable() nowadays! +enum ImGuiOldColumnFlags_ +{ + ImGuiOldColumnFlags_None = 0, + ImGuiOldColumnFlags_NoBorder = 1 << 0, // Disable column dividers + ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers + ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns + ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window + ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, + ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder, + ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize, + ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths, + ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow, + ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize, +#endif +}; + +struct ImGuiOldColumnData +{ + float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) + float OffsetNormBeforeResize; + ImGuiOldColumnFlags Flags; // Not exposed + ImRect ClipRect; + + ImGuiOldColumnData() { memset(this, 0, sizeof(*this)); } +}; + +struct ImGuiOldColumns +{ + ImGuiID ID; + ImGuiOldColumnFlags Flags; + bool IsFirstFrame; + bool IsBeingResized; + int Current; + int Count; + float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x + float LineMinY, LineMaxY; + float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns() + float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns() + ImRect HostInitialClipRect; // Backup of ClipRect at the time of BeginColumns() + ImRect HostBackupClipRect; // Backup of ClipRect during PushColumnsBackground()/PopColumnsBackground() + ImRect HostBackupParentWorkRect;//Backup of WorkRect at the time of BeginColumns() + ImVector Columns; + ImDrawListSplitter Splitter; + + ImGuiOldColumns() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Multi-select support +//----------------------------------------------------------------------------- + +// We always assume that -1 is an invalid value (which works for indices and pointers) +#define ImGuiSelectionUserData_Invalid ((ImGuiSelectionUserData)-1) + +#ifdef IMGUI_HAS_MULTI_SELECT +// +#endif // #ifdef IMGUI_HAS_MULTI_SELECT + +//----------------------------------------------------------------------------- +// [SECTION] Docking support +//----------------------------------------------------------------------------- + +#define DOCKING_HOST_DRAW_CHANNEL_BG 0 // Dock host: background fill +#define DOCKING_HOST_DRAW_CHANNEL_FG 1 // Dock host: decorations and contents + +#ifdef IMGUI_HAS_DOCK + +// Extend ImGuiDockNodeFlags_ +enum ImGuiDockNodeFlagsPrivate_ +{ + // [Internal] + ImGuiDockNodeFlags_DockSpace = 1 << 10, // Saved // A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window. + ImGuiDockNodeFlags_CentralNode = 1 << 11, // Saved // The central node has 2 main properties: stay visible when empty, only use "remaining" spaces from its neighbor. + ImGuiDockNodeFlags_NoTabBar = 1 << 12, // Saved // Tab bar is completely unavailable. No triangle in the corner to enable it back. + ImGuiDockNodeFlags_HiddenTabBar = 1 << 13, // Saved // Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar) + ImGuiDockNodeFlags_NoWindowMenuButton = 1 << 14, // Saved // Disable window/docking menu (that one that appears instead of the collapse button) + ImGuiDockNodeFlags_NoCloseButton = 1 << 15, // Saved // Disable close button + ImGuiDockNodeFlags_NoResizeX = 1 << 16, // // + ImGuiDockNodeFlags_NoResizeY = 1 << 17, // // + // Disable docking/undocking actions in this dockspace or individual node (existing docked nodes will be preserved) + // Those are not exposed in public because the desirable sharing/inheriting/copy-flag-on-split behaviors are quite difficult to design and understand. + // The two public flags ImGuiDockNodeFlags_NoDockingOverCentralNode/ImGuiDockNodeFlags_NoDockingSplit don't have those issues. + ImGuiDockNodeFlags_NoDockingSplitOther = 1 << 19, // // Disable this node from splitting other windows/nodes. + ImGuiDockNodeFlags_NoDockingOverMe = 1 << 20, // // Disable other windows/nodes from being docked over this node. + ImGuiDockNodeFlags_NoDockingOverOther = 1 << 21, // // Disable this node from being docked over another window or non-empty node. + ImGuiDockNodeFlags_NoDockingOverEmpty = 1 << 22, // // Disable this node from being docked over an empty node (e.g. DockSpace with no other windows) + ImGuiDockNodeFlags_NoDocking = ImGuiDockNodeFlags_NoDockingOverMe | ImGuiDockNodeFlags_NoDockingOverOther | ImGuiDockNodeFlags_NoDockingOverEmpty | ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoDockingSplitOther, + // Masks + ImGuiDockNodeFlags_SharedFlagsInheritMask_ = ~0, + ImGuiDockNodeFlags_NoResizeFlagsMask_ = ImGuiDockNodeFlags_NoResize | ImGuiDockNodeFlags_NoResizeX | ImGuiDockNodeFlags_NoResizeY, + // When splitting, those local flags are moved to the inheriting child, never duplicated + ImGuiDockNodeFlags_LocalFlagsTransferMask_ = ImGuiDockNodeFlags_NoDockingSplit | ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_AutoHideTabBar | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton, + ImGuiDockNodeFlags_SavedFlagsMask_ = ImGuiDockNodeFlags_NoResizeFlagsMask_ | ImGuiDockNodeFlags_DockSpace | ImGuiDockNodeFlags_CentralNode | ImGuiDockNodeFlags_NoTabBar | ImGuiDockNodeFlags_HiddenTabBar | ImGuiDockNodeFlags_NoWindowMenuButton | ImGuiDockNodeFlags_NoCloseButton, +}; + +// Store the source authority (dock node vs window) of a field +enum ImGuiDataAuthority_ +{ + ImGuiDataAuthority_Auto, + ImGuiDataAuthority_DockNode, + ImGuiDataAuthority_Window, +}; + +enum ImGuiDockNodeState +{ + ImGuiDockNodeState_Unknown, + ImGuiDockNodeState_HostWindowHiddenBecauseSingleWindow, + ImGuiDockNodeState_HostWindowHiddenBecauseWindowsAreResizing, + ImGuiDockNodeState_HostWindowVisible, +}; + +// sizeof() 156~192 +struct IMGUI_API ImGuiDockNode +{ + ImGuiID ID; + ImGuiDockNodeFlags SharedFlags; // (Write) Flags shared by all nodes of a same dockspace hierarchy (inherited from the root node) + ImGuiDockNodeFlags LocalFlags; // (Write) Flags specific to this node + ImGuiDockNodeFlags LocalFlagsInWindows; // (Write) Flags specific to this node, applied from windows + ImGuiDockNodeFlags MergedFlags; // (Read) Effective flags (== SharedFlags | LocalFlagsInNode | LocalFlagsInWindows) + ImGuiDockNodeState State; + ImGuiDockNode* ParentNode; + ImGuiDockNode* ChildNodes[2]; // [Split node only] Child nodes (left/right or top/bottom). Consider switching to an array. + ImVector Windows; // Note: unordered list! Iterate TabBar->Tabs for user-order. + ImGuiTabBar* TabBar; + ImVec2 Pos; // Current position + ImVec2 Size; // Current size + ImVec2 SizeRef; // [Split node only] Last explicitly written-to size (overridden when using a splitter affecting the node), used to calculate Size. + ImGuiAxis SplitAxis; // [Split node only] Split axis (X or Y) + ImGuiWindowClass WindowClass; // [Root node only] + ImU32 LastBgColor; + + ImGuiWindow* HostWindow; + ImGuiWindow* VisibleWindow; // Generally point to window which is ID is == SelectedTabID, but when CTRL+Tabbing this can be a different window. + ImGuiDockNode* CentralNode; // [Root node only] Pointer to central node. + ImGuiDockNode* OnlyNodeWithWindows; // [Root node only] Set when there is a single visible node within the hierarchy. + int CountNodeWithWindows; // [Root node only] + int LastFrameAlive; // Last frame number the node was updated or kept alive explicitly with DockSpace() + ImGuiDockNodeFlags_KeepAliveOnly + int LastFrameActive; // Last frame number the node was updated. + int LastFrameFocused; // Last frame number the node was focused. + ImGuiID LastFocusedNodeId; // [Root node only] Which of our child docking node (any ancestor in the hierarchy) was last focused. + ImGuiID SelectedTabId; // [Leaf node only] Which of our tab/window is selected. + ImGuiID WantCloseTabId; // [Leaf node only] Set when closing a specific tab/window. + ImGuiID RefViewportId; // Reference viewport ID from visible window when HostWindow == NULL. + ImGuiDataAuthority AuthorityForPos :3; + ImGuiDataAuthority AuthorityForSize :3; + ImGuiDataAuthority AuthorityForViewport :3; + bool IsVisible :1; // Set to false when the node is hidden (usually disabled as it has no active window) + bool IsFocused :1; + bool IsBgDrawnThisFrame :1; + bool HasCloseButton :1; // Provide space for a close button (if any of the docked window has one). Note that button may be hidden on window without one. + bool HasWindowMenuButton :1; + bool HasCentralNodeChild :1; + bool WantCloseAll :1; // Set when closing all tabs at once. + bool WantLockSizeOnce :1; + bool WantMouseMove :1; // After a node extraction we need to transition toward moving the newly created host window + bool WantHiddenTabBarUpdate :1; + bool WantHiddenTabBarToggle :1; + + ImGuiDockNode(ImGuiID id); + ~ImGuiDockNode(); + bool IsRootNode() const { return ParentNode == NULL; } + bool IsDockSpace() const { return (MergedFlags & ImGuiDockNodeFlags_DockSpace) != 0; } + bool IsFloatingNode() const { return ParentNode == NULL && (MergedFlags & ImGuiDockNodeFlags_DockSpace) == 0; } + bool IsCentralNode() const { return (MergedFlags & ImGuiDockNodeFlags_CentralNode) != 0; } + bool IsHiddenTabBar() const { return (MergedFlags & ImGuiDockNodeFlags_HiddenTabBar) != 0; } // Hidden tab bar can be shown back by clicking the small triangle + bool IsNoTabBar() const { return (MergedFlags & ImGuiDockNodeFlags_NoTabBar) != 0; } // Never show a tab bar + bool IsSplitNode() const { return ChildNodes[0] != NULL; } + bool IsLeafNode() const { return ChildNodes[0] == NULL; } + bool IsEmpty() const { return ChildNodes[0] == NULL && Windows.Size == 0; } + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + + void SetLocalFlags(ImGuiDockNodeFlags flags) { LocalFlags = flags; UpdateMergedFlags(); } + void UpdateMergedFlags() { MergedFlags = SharedFlags | LocalFlags | LocalFlagsInWindows; } +}; + +// List of colors that are stored at the time of Begin() into Docked Windows. +// We currently store the packed colors in a simple array window->DockStyle.Colors[]. +// A better solution may involve appending into a log of colors in ImGuiContext + store offsets into those arrays in ImGuiWindow, +// but it would be more complex as we'd need to double-buffer both as e.g. drop target may refer to window from last frame. +enum ImGuiWindowDockStyleCol +{ + ImGuiWindowDockStyleCol_Text, + ImGuiWindowDockStyleCol_Tab, + ImGuiWindowDockStyleCol_TabHovered, + ImGuiWindowDockStyleCol_TabActive, + ImGuiWindowDockStyleCol_TabUnfocused, + ImGuiWindowDockStyleCol_TabUnfocusedActive, + ImGuiWindowDockStyleCol_COUNT +}; + +struct ImGuiWindowDockStyle +{ + ImU32 Colors[ImGuiWindowDockStyleCol_COUNT]; +}; + +struct ImGuiDockContext +{ + ImGuiStorage Nodes; // Map ID -> ImGuiDockNode*: Active nodes + ImVector Requests; + ImVector NodesSettings; + bool WantFullRebuild; + ImGuiDockContext() { memset(this, 0, sizeof(*this)); } +}; + +#endif // #ifdef IMGUI_HAS_DOCK + +//----------------------------------------------------------------------------- +// [SECTION] Viewport support +//----------------------------------------------------------------------------- + +// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!) +// Every instance of ImGuiViewport is in fact a ImGuiViewportP. +struct ImGuiViewportP : public ImGuiViewport +{ + ImGuiWindow* Window; // Set when the viewport is owned by a window (and ImGuiViewportFlags_CanHostOtherWindows is NOT set) + int Idx; + int LastFrameActive; // Last frame number this viewport was activated by a window + int LastFocusedStampCount; // Last stamp number from when a window hosted by this viewport was focused (by comparing this value between two viewport we have an implicit viewport z-order we use as fallback) + ImGuiID LastNameHash; + ImVec2 LastPos; + float Alpha; // Window opacity (when dragging dockable windows/viewports we make them transparent) + float LastAlpha; + bool LastFocusedHadNavWindow;// Instead of maintaining a LastFocusedWindow (which may harder to correctly maintain), we merely store weither NavWindow != NULL last time the viewport was focused. + short PlatformMonitor; + int BgFgDrawListsLastFrame[2]; // Last frame number the background (0) and foreground (1) draw lists were used + ImDrawList* BgFgDrawLists[2]; // Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays. + ImDrawData DrawDataP; + ImDrawDataBuilder DrawDataBuilder; // Temporary data while building final ImDrawData + ImVec2 LastPlatformPos; + ImVec2 LastPlatformSize; + ImVec2 LastRendererSize; + ImVec2 WorkOffsetMin; // Work Area: Offset from Pos to top-left corner of Work Area. Generally (0,0) or (0,+main_menu_bar_height). Work Area is Full Area but without menu-bars/status-bars (so WorkArea always fit inside Pos/Size!) + ImVec2 WorkOffsetMax; // Work Area: Offset from Pos+Size to bottom-right corner of Work Area. Generally (0,0) or (0,-status_bar_height). + ImVec2 BuildWorkOffsetMin; // Work Area: Offset being built during current frame. Generally >= 0.0f. + ImVec2 BuildWorkOffsetMax; // Work Area: Offset being built during current frame. Generally <= 0.0f. + + ImGuiViewportP() { Window = NULL; Idx = -1; LastFrameActive = BgFgDrawListsLastFrame[0] = BgFgDrawListsLastFrame[1] = LastFocusedStampCount = -1; LastNameHash = 0; Alpha = LastAlpha = 1.0f; LastFocusedHadNavWindow = false; PlatformMonitor = -1; BgFgDrawLists[0] = BgFgDrawLists[1] = NULL; LastPlatformPos = LastPlatformSize = LastRendererSize = ImVec2(FLT_MAX, FLT_MAX); } + ~ImGuiViewportP() { if (BgFgDrawLists[0]) IM_DELETE(BgFgDrawLists[0]); if (BgFgDrawLists[1]) IM_DELETE(BgFgDrawLists[1]); } + void ClearRequestFlags() { PlatformRequestClose = PlatformRequestMove = PlatformRequestResize = false; } + + // Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last frame data, and 1 pair for currently building rect) + ImVec2 CalcWorkRectPos(const ImVec2& off_min) const { return ImVec2(Pos.x + off_min.x, Pos.y + off_min.y); } + ImVec2 CalcWorkRectSize(const ImVec2& off_min, const ImVec2& off_max) const { return ImVec2(ImMax(0.0f, Size.x - off_min.x + off_max.x), ImMax(0.0f, Size.y - off_min.y + off_max.y)); } + void UpdateWorkRect() { WorkPos = CalcWorkRectPos(WorkOffsetMin); WorkSize = CalcWorkRectSize(WorkOffsetMin, WorkOffsetMax); } // Update public fields + + // Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it, hence the code asymmetry) + ImRect GetMainRect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + ImRect GetWorkRect() const { return ImRect(WorkPos.x, WorkPos.y, WorkPos.x + WorkSize.x, WorkPos.y + WorkSize.y); } + ImRect GetBuildWorkRect() const { ImVec2 pos = CalcWorkRectPos(BuildWorkOffsetMin); ImVec2 size = CalcWorkRectSize(BuildWorkOffsetMin, BuildWorkOffsetMax); return ImRect(pos.x, pos.y, pos.x + size.x, pos.y + size.y); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Settings support +//----------------------------------------------------------------------------- + +// Windows data saved in imgui.ini file +// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily. +// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure) +struct ImGuiWindowSettings +{ + ImGuiID ID; + ImVec2ih Pos; // NB: Settings position are stored RELATIVE to the viewport! Whereas runtime ones are absolute positions. + ImVec2ih Size; + ImVec2ih ViewportPos; + ImGuiID ViewportId; + ImGuiID DockId; // ID of last known DockNode (even if the DockNode is invisible because it has only 1 active window), or 0 if none. + ImGuiID ClassId; // ID of window class if specified + short DockOrder; // Order of the last time the window was visible within its DockNode. This is used to reorder windows that are reappearing on the same frame. Same value between windows that were active and windows that were none are possible. + bool Collapsed; + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + bool WantDelete; // Set to invalidate/delete the settings entry + + ImGuiWindowSettings() { memset(this, 0, sizeof(*this)); DockOrder = -1; } + char* GetName() { return (char*)(this + 1); } +}; + +struct ImGuiSettingsHandler +{ + const char* TypeName; // Short description stored in .ini file. Disallowed characters: '[' ']' + ImGuiID TypeHash; // == ImHashStr(TypeName) + void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Clear all settings data + void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called before reading (in registration order) + void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); // Read: Called when entering into a new ini entry e.g. "[Window][Name]" + void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); // Read: Called for every line of text within an ini entry + void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called after reading (in registration order) + void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); // Write: Output every entries into 'out_buf' + void* UserData; + + ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Localization support +//----------------------------------------------------------------------------- + +// This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack. +enum ImGuiLocKey : int +{ + ImGuiLocKey_VersionStr, + ImGuiLocKey_TableSizeOne, + ImGuiLocKey_TableSizeAllFit, + ImGuiLocKey_TableSizeAllDefault, + ImGuiLocKey_TableResetOrder, + ImGuiLocKey_WindowingMainMenuBar, + ImGuiLocKey_WindowingPopup, + ImGuiLocKey_WindowingUntitled, + ImGuiLocKey_DockingHideTabBar, + ImGuiLocKey_DockingHoldShiftToDock, + ImGuiLocKey_COUNT +}; + +struct ImGuiLocEntry +{ + ImGuiLocKey Key; + const char* Text; +}; + + +//----------------------------------------------------------------------------- +// [SECTION] Metrics, Debug Tools +//----------------------------------------------------------------------------- + +enum ImGuiDebugLogFlags_ +{ + // Event types + ImGuiDebugLogFlags_None = 0, + ImGuiDebugLogFlags_EventActiveId = 1 << 0, + ImGuiDebugLogFlags_EventFocus = 1 << 1, + ImGuiDebugLogFlags_EventPopup = 1 << 2, + ImGuiDebugLogFlags_EventNav = 1 << 3, + ImGuiDebugLogFlags_EventClipper = 1 << 4, + ImGuiDebugLogFlags_EventSelection = 1 << 5, + ImGuiDebugLogFlags_EventIO = 1 << 6, + ImGuiDebugLogFlags_EventDocking = 1 << 7, + ImGuiDebugLogFlags_EventViewport = 1 << 8, + ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventSelection | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport, + ImGuiDebugLogFlags_OutputToTTY = 1 << 10, // Also send output to TTY + ImGuiDebugLogFlags_OutputToTestEngine = 1 << 11,// Also send output to Test Engine +}; + +struct ImGuiMetricsConfig +{ + bool ShowDebugLog = false; + bool ShowStackTool = false; + bool ShowWindowsRects = false; + bool ShowWindowsBeginOrder = false; + bool ShowTablesRects = false; + bool ShowDrawCmdMesh = true; + bool ShowDrawCmdBoundingBoxes = true; + bool ShowAtlasTintedWithTextColor = false; + bool ShowDockingNodes = false; + int ShowWindowsRectsType = -1; + int ShowTablesRectsType = -1; +}; + +struct ImGuiStackLevelInfo +{ + ImGuiID ID; + ImS8 QueryFrameCount; // >= 1: Query in progress + bool QuerySuccess; // Obtained result from DebugHookIdInfo() + ImGuiDataType DataType : 8; + char Desc[57]; // Arbitrarily sized buffer to hold a result (FIXME: could replace Results[] with a chunk stream?) FIXME: Now that we added CTRL+C this should be fixed. + + ImGuiStackLevelInfo() { memset(this, 0, sizeof(*this)); } +}; + +// State for Stack tool queries +struct ImGuiStackTool +{ + int LastActiveFrame; + int StackLevel; // -1: query stack and resize Results, >= 0: individual stack level + ImGuiID QueryId; // ID to query details for + ImVector Results; + bool CopyToClipboardOnCtrlC; + float CopyToClipboardLastTime; + + ImGuiStackTool() { memset(this, 0, sizeof(*this)); CopyToClipboardLastTime = -FLT_MAX; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Generic context hooks +//----------------------------------------------------------------------------- + +typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); +enum ImGuiContextHookType { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }; + +struct ImGuiContextHook +{ + ImGuiID HookId; // A unique ID assigned by AddContextHook() + ImGuiContextHookType Type; + ImGuiID Owner; + ImGuiContextHookCallback Callback; + void* UserData; + + ImGuiContextHook() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiContext (main Dear ImGui context) +//----------------------------------------------------------------------------- + +struct ImGuiContext +{ + bool Initialized; + bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. + ImGuiIO IO; + ImGuiPlatformIO PlatformIO; + ImGuiStyle Style; + ImGuiConfigFlags ConfigFlagsCurrFrame; // = g.IO.ConfigFlags at the time of NewFrame() + ImGuiConfigFlags ConfigFlagsLastFrame; + ImFont* Font; // (Shortcut) == FontStack.empty() ? IO.Font : FontStack.back() + float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window. + float FontBaseSize; // (Shortcut) == IO.FontGlobalScale * Font->Scale * Font->FontSize. Base text height. + ImDrawListSharedData DrawListSharedData; + double Time; + int FrameCount; + int FrameCountEnded; + int FrameCountPlatformEnded; + int FrameCountRendered; + bool WithinFrameScope; // Set by NewFrame(), cleared by EndFrame() + bool WithinFrameScopeWithImplicitWindow; // Set by NewFrame(), cleared by EndFrame() when the implicit debug window has been pushed + bool WithinEndChild; // Set within EndChild() + bool GcCompactAll; // Request full GC + bool TestEngineHookItems; // Will call test engine hooks: ImGuiTestEngineHook_ItemAdd(), ImGuiTestEngineHook_ItemInfo(), ImGuiTestEngineHook_Log() + void* TestEngine; // Test engine user data + + // Inputs + ImVector InputEventsQueue; // Input events which will be trickled/written into IO structure. + ImVector InputEventsTrail; // Past input events processed in NewFrame(). This is to allow domain-specific application to access e.g mouse/pen trail. + ImGuiMouseSource InputEventsNextMouseSource; + ImU32 InputEventsNextEventId; + + // Windows state + ImVector Windows; // Windows, sorted in display order, back to front + ImVector WindowsFocusOrder; // Root windows, sorted in focus order, back to front. + ImVector WindowsTempSortBuffer; // Temporary buffer used in EndFrame() to reorder windows so parents are kept before their child + ImVector CurrentWindowStack; + ImGuiStorage WindowsById; // Map window's ImGuiID to ImGuiWindow* + int WindowsActiveCount; // Number of unique windows submitted by frame + ImVec2 WindowsHoverPadding; // Padding around resizable windows for which hovering on counts as hovering the window == ImMax(style.TouchExtraPadding, WINDOWS_HOVER_PADDING) + ImGuiWindow* CurrentWindow; // Window being drawn into + ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs. + ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. + ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindowDockTree. + ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. + ImVec2 WheelingWindowRefMousePos; + int WheelingWindowStartFrame; // This may be set one frame before WheelingWindow is != NULL + float WheelingWindowReleaseTimer; + ImVec2 WheelingWindowWheelRemainder; + ImVec2 WheelingAxisAvg; + + // Item/widgets state and tracking information + ImGuiID DebugHookIdInfo; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line] + ImGuiID HoveredId; // Hovered widget, filled during the frame + ImGuiID HoveredIdPreviousFrame; + bool HoveredIdAllowOverlap; + bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. + float HoveredIdTimer; // Measure contiguous hovering time + float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active + ImGuiID ActiveId; // Active widget + ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame) + float ActiveIdTimer; + bool ActiveIdIsJustActivated; // Set at the time of activation for one frame + bool ActiveIdAllowOverlap; // Active widget allows another widget to steal active id (generally for overlapping widgets, but not always) + bool ActiveIdNoClearOnFocusLoss; // Disable losing active id if the active id window gets unfocused. + bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. + bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. + bool ActiveIdHasBeenEditedThisFrame; + ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) + ImGuiWindow* ActiveIdWindow; + ImGuiInputSource ActiveIdSource; // Activating source: ImGuiInputSource_Mouse OR ImGuiInputSource_Keyboard OR ImGuiInputSource_Gamepad + int ActiveIdMouseButton; + ImGuiID ActiveIdPreviousFrame; + bool ActiveIdPreviousFrameIsAlive; + bool ActiveIdPreviousFrameHasBeenEditedBefore; + ImGuiWindow* ActiveIdPreviousFrameWindow; + ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. + float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. + + // [EXPERIMENTAL] Key/Input Ownership + Shortcut Routing system + // - The idea is that instead of "eating" a given key, we can link to an owner. + // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame(). + ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]; + ImGuiKeyRoutingTable KeysRoutingTable; + ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) + bool ActiveIdUsingAllKeyboardKeys; // Active widget will want to read all keyboard keys inputs. (FIXME: This is a shortcut for not taking ownership of 100+ keys but perhaps best to not have the inconsistency) +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ImU32 ActiveIdUsingNavInputMask; // If you used this. Since (IMGUI_VERSION_NUM >= 18804) : 'g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel);' becomes 'SetKeyOwner(ImGuiKey_Escape, g.ActiveId) and/or SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId);' +#endif + + // Next window/item data + ImGuiID CurrentFocusScopeId; // == g.FocusScopeStack.back() + ImGuiItemFlags CurrentItemFlags; // == g.ItemFlagsStack.back() + ImGuiID DebugLocateId; // Storage for DebugLocateItemOnHover() feature: this is read by ItemAdd() so we keep it in a hot/cached location + ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions + ImGuiLastItemData LastItemData; // Storage for last submitted item (setup by ItemAdd) + ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions + + // Shared stacks + ImVector ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin() + ImVector StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin() + ImVector FontStack; // Stack for PushFont()/PopFont() - inherited by Begin() + ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - inherited by BeginChild(), pushed into by Begin() + ImVector ItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin() + ImVector GroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin() + ImVector OpenPopupStack; // Which popups are open (persistent) + ImVector BeginPopupStack; // Which level of BeginPopup() we are in (reset every frame) + ImVector NavTreeNodeStack; // Stack for TreeNode() when a NavLeft requested is emitted. + + int BeginMenuCount; + + // Viewports + ImVector Viewports; // Active viewports (always 1+, and generally 1 unless multi-viewports are enabled). Each viewports hold their copy of ImDrawData. + float CurrentDpiScale; // == CurrentViewport->DpiScale + ImGuiViewportP* CurrentViewport; // We track changes of viewport (happening in Begin) so we can call Platform_OnChangedViewport() + ImGuiViewportP* MouseViewport; + ImGuiViewportP* MouseLastHoveredViewport; // Last known viewport that was hovered by mouse (even if we are not hovering any viewport any more) + honoring the _NoInputs flag. + ImGuiID PlatformLastFocusedViewportId; + ImGuiPlatformMonitor FallbackMonitor; // Virtual monitor used as fallback if backend doesn't provide monitor information. + int ViewportCreatedCount; // Unique sequential creation counter (mostly for testing/debugging) + int PlatformWindowsCreatedCount; // Unique sequential creation counter (mostly for testing/debugging) + int ViewportFocusedStampCount; // Every time the front-most window changes, we stamp its viewport with an incrementing counter + + // Gamepad/keyboard Navigation + ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusedWindow' + ImGuiID NavId; // Focused item for navigation + ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) + ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && (IsKeyPressed(ImGuiKey_Space) || IsKeyDown(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadActivate)) ? NavId : 0, also set when calling ActivateItem() + ImGuiID NavActivateDownId; // ~~ IsKeyDown(ImGuiKey_Space) || IsKeyDown(ImGuiKey_Enter) || IsKeyDown(ImGuiKey_NavGamepadActivate) ? NavId : 0 + ImGuiID NavActivatePressedId; // ~~ IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadActivate) ? NavId : 0 (no repeat) + ImGuiActivateFlags NavActivateFlags; + ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). + ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). + ImGuiKeyChord NavJustMovedToKeyMods; + ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. + ImGuiActivateFlags NavNextActivateFlags; + ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS CAN ONLY BE ImGuiInputSource_Keyboard or ImGuiInputSource_Mouse + ImGuiNavLayer NavLayer; // Layer we are navigating on. For now the system is hard-coded for 0=main contents and 1=menu/title bar, may expose layers later. + ImGuiSelectionUserData NavLastValidSelectionUserData; // Last valid data passed to SetNextItemSelectionUser(), or -1. For current window. Not reset when focusing an item that doesn't have selection data. + bool NavIdIsAlive; // Nav widget has been seen this frame ~~ NavRectRel is valid + bool NavMousePosDirty; // When set we will update mouse position if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) if set (NB: this not enabled by default) + bool NavDisableHighlight; // When user starts using mouse, we hide gamepad/keyboard highlight (NB: but they are still available, which is why NavDisableHighlight isn't always != NavDisableMouseHover) + bool NavDisableMouseHover; // When user starts using gamepad/keyboard, we hide mouse hovering highlight until mouse is touched again. + + // Navigation: Init & Move Requests + bool NavAnyRequest; // ~~ NavMoveRequest || NavInitRequest this is to perform early out in ItemAdd() + bool NavInitRequest; // Init request for appearing window to select first item + bool NavInitRequestFromMove; + ImGuiNavItemData NavInitResult; // Init request result (first item of the window, or one for which SetItemDefaultFocus() was called) + bool NavMoveSubmitted; // Move request submitted, will process result on next NewFrame() + bool NavMoveScoringItems; // Move request submitted, still scoring incoming items + bool NavMoveForwardToNextFrame; + ImGuiNavMoveFlags NavMoveFlags; + ImGuiScrollFlags NavMoveScrollFlags; + ImGuiKeyChord NavMoveKeyMods; + ImGuiDir NavMoveDir; // Direction of the move request (left/right/up/down) + ImGuiDir NavMoveDirForDebug; + ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? + ImRect NavScoringRect; // Rectangle used for scoring, in screen space. Based of window->NavRectRel[], modified for directional navigation scoring. + ImRect NavScoringNoClipRect; // Some nav operations (such as PageUp/PageDown) enforce a region which clipper will attempt to always keep submitted + int NavScoringDebugCount; // Metrics for debugging + int NavTabbingDir; // Generally -1 or +1, 0 when tabbing without a nav id + int NavTabbingCounter; // >0 when counting items for tabbing + ImGuiNavItemData NavMoveResultLocal; // Best move request candidate within NavWindow + ImGuiNavItemData NavMoveResultLocalVisible; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag) + ImGuiNavItemData NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag) + ImGuiNavItemData NavTabbingResultFirst; // First tabbing request candidate within NavWindow and flattened hierarchy + + // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) + ImGuiKeyChord ConfigNavWindowingKeyNext; // = ImGuiMod_Ctrl | ImGuiKey_Tab, for reconfiguration (see #4828) + ImGuiKeyChord ConfigNavWindowingKeyPrev; // = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab + ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! + ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. + ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents + float NavWindowingTimer; + float NavWindowingHighlightAlpha; + bool NavWindowingToggleLayer; + ImVec2 NavWindowingAccumDeltaPos; + ImVec2 NavWindowingAccumDeltaSize; + + // Render + float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) + + // Drag and Drop + bool DragDropActive; + bool DragDropWithinSource; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag source. + bool DragDropWithinTarget; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag target. + ImGuiDragDropFlags DragDropSourceFlags; + int DragDropSourceFrameCount; + int DragDropMouseButton; + ImGuiPayload DragDropPayload; + ImRect DragDropTargetRect; // Store rectangle of current target candidate (we favor small targets when overlapping) + ImGuiID DragDropTargetId; + ImGuiDragDropFlags DragDropAcceptFlags; + float DragDropAcceptIdCurrRectSurface; // Target item surface (we resolve overlapping targets by prioritizing the smaller surface) + ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload) + ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets) + int DragDropAcceptFrameCount; // Last time a target expressed a desire to accept the source + ImGuiID DragDropHoldJustPressedId; // Set when holding a payload just made ButtonBehavior() return a press. + ImVector DragDropPayloadBufHeap; // We don't expose the ImVector<> directly, ImGuiPayload only holds pointer+size + unsigned char DragDropPayloadBufLocal[16]; // Local buffer for small payloads + + // Clipper + int ClipperTempDataStacked; + ImVector ClipperTempData; + + // Tables + ImGuiTable* CurrentTable; + int TablesTempDataStacked; // Temporary table data size (because we leave previous instances undestructed, we generally don't use TablesTempData.Size) + ImVector TablesTempData; // Temporary table data (buffers reused/shared across instances, support nesting) + ImPool Tables; // Persistent table data + ImVector TablesLastTimeActive; // Last used timestamp of each tables (SOA, for efficient GC) + ImVector DrawChannelsTempMergeBuffer; + + // Tab bars + ImGuiTabBar* CurrentTabBar; + ImPool TabBars; + ImVector CurrentTabBarStack; + ImVector ShrinkWidthBuffer; + + // Hover Delay system + ImGuiID HoverItemDelayId; + ImGuiID HoverItemDelayIdPreviousFrame; + float HoverItemDelayTimer; // Currently used by IsItemHovered() + float HoverItemDelayClearTimer; // Currently used by IsItemHovered(): grace time before g.TooltipHoverTimer gets cleared. + ImGuiID HoverItemUnlockedStationaryId; // Mouse has once been stationary on this item. Only reset after departing the item. + ImGuiID HoverWindowUnlockedStationaryId; // Mouse has once been stationary on this window. Only reset after departing the window. + + // Mouse state + ImGuiMouseCursor MouseCursor; + float MouseStationaryTimer; // Time the mouse has been stationary (with some loose heuristic) + ImVec2 MouseLastValidPos; + + // Widget state + ImGuiInputTextState InputTextState; + ImGuiInputTextDeactivatedState InputTextDeactivatedState; + ImFont InputTextPasswordFont; + ImGuiID TempInputId; // Temporary text input when CTRL+clicking on a slider, etc. + ImGuiColorEditFlags ColorEditOptions; // Store user options for color edit widgets + ImGuiID ColorEditCurrentID; // Set temporarily while inside of the parent-most ColorEdit4/ColorPicker4 (because they call each others). + ImGuiID ColorEditSavedID; // ID we are saving/restoring HS for + float ColorEditSavedHue; // Backup of last Hue associated to LastColor, so we can restore Hue in lossy RGB<>HSV round trips + float ColorEditSavedSat; // Backup of last Saturation associated to LastColor, so we can restore Saturation in lossy RGB<>HSV round trips + ImU32 ColorEditSavedColor; // RGB value with alpha set to 0. + ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. + ImGuiComboPreviewData ComboPreviewData; + float SliderGrabClickOffset; + float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. + bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? + bool DragCurrentAccumDirty; + float DragCurrentAccum; // Accumulator for dragging modification. Always high-precision, not rounded by end-user precision settings + float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio + float ScrollbarClickDeltaToGrabCenter; // Distance between mouse and center of grab box, normalized in parent space. Use storage? + float DisabledAlphaBackup; // Backup for style.Alpha for BeginDisabled() + short DisabledStackSize; + short LockMarkEdited; + short TooltipOverrideCount; + ImVector ClipboardHandlerData; // If no custom clipboard handler is defined + ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once + ImGuiTypingSelectState TypingSelectState; // State for GetTypingSelectRequest() + + // Platform support + ImGuiPlatformImeData PlatformImeData; // Data updated by current frame + ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data (when changing we will call io.SetPlatformImeDataFn + ImGuiID PlatformImeViewport; + + // Extensions + // FIXME: We could provide an API to register one slot in an array held in ImGuiContext? + ImGuiDockContext DockContext; + void (*DockNodeWindowMenuHandler)(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar); + + // Settings + bool SettingsLoaded; + float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero + ImGuiTextBuffer SettingsIniData; // In memory .ini settings + ImVector SettingsHandlers; // List of .ini settings handlers + ImChunkStream SettingsWindows; // ImGuiWindow .ini settings entries + ImChunkStream SettingsTables; // ImGuiTable .ini settings entries + ImVector Hooks; // Hooks for extensions (e.g. test engine) + ImGuiID HookIdNext; // Next available HookId + + // Localization + const char* LocalizationTable[ImGuiLocKey_COUNT]; + + // Capture/Logging + bool LogEnabled; // Currently capturing + ImGuiLogType LogType; // Capture target + ImFileHandle LogFile; // If != NULL log to stdout/ file + ImGuiTextBuffer LogBuffer; // Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators. + const char* LogNextPrefix; + const char* LogNextSuffix; + float LogLinePosY; + bool LogLineFirstItem; + int LogDepthRef; + int LogDepthToExpand; + int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. + + // Debug Tools + ImGuiDebugLogFlags DebugLogFlags; + ImGuiTextBuffer DebugLogBuf; + ImGuiTextIndex DebugLogIndex; + ImU8 DebugLogClipperAutoDisableFrames; + ImU8 DebugLocateFrames; // For DebugLocateItemOnHover(). This is used together with DebugLocateId which is in a hot/cached spot above. + ImS8 DebugBeginReturnValueCullDepth; // Cycle between 0..9 then wrap around. + bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) + ImU8 DebugItemPickerMouseButton; + ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID + ImGuiMetricsConfig DebugMetricsConfig; + ImGuiStackTool DebugStackTool; + ImGuiDockNode* DebugHoveredDockNode; // Hovered dock node. + + // Misc + float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames.. + int FramerateSecPerFrameIdx; + int FramerateSecPerFrameCount; + float FramerateSecPerFrameAccum; + int WantCaptureMouseNextFrame; // Explicit capture override via SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). Default to -1. + int WantCaptureKeyboardNextFrame; // " + int WantTextInputNextFrame; + ImVector TempBuffer; // Temporary text buffer + + ImGuiContext(ImFontAtlas* shared_font_atlas) + { + IO.Ctx = this; + InputTextState.Ctx = this; + + Initialized = false; + ConfigFlagsCurrFrame = ConfigFlagsLastFrame = ImGuiConfigFlags_None; + FontAtlasOwnedByContext = shared_font_atlas ? false : true; + Font = NULL; + FontSize = FontBaseSize = 0.0f; + IO.Fonts = shared_font_atlas ? shared_font_atlas : IM_NEW(ImFontAtlas)(); + Time = 0.0f; + FrameCount = 0; + FrameCountEnded = FrameCountPlatformEnded = FrameCountRendered = -1; + WithinFrameScope = WithinFrameScopeWithImplicitWindow = WithinEndChild = false; + GcCompactAll = false; + TestEngineHookItems = false; + TestEngine = NULL; + + InputEventsNextMouseSource = ImGuiMouseSource_Mouse; + InputEventsNextEventId = 1; + + WindowsActiveCount = 0; + CurrentWindow = NULL; + HoveredWindow = NULL; + HoveredWindowUnderMovingWindow = NULL; + MovingWindow = NULL; + WheelingWindow = NULL; + WheelingWindowStartFrame = -1; + WheelingWindowReleaseTimer = 0.0f; + + DebugHookIdInfo = 0; + HoveredId = HoveredIdPreviousFrame = 0; + HoveredIdAllowOverlap = false; + HoveredIdDisabled = false; + HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; + ActiveId = 0; + ActiveIdIsAlive = 0; + ActiveIdTimer = 0.0f; + ActiveIdIsJustActivated = false; + ActiveIdAllowOverlap = false; + ActiveIdNoClearOnFocusLoss = false; + ActiveIdHasBeenPressedBefore = false; + ActiveIdHasBeenEditedBefore = false; + ActiveIdHasBeenEditedThisFrame = false; + ActiveIdClickOffset = ImVec2(-1, -1); + ActiveIdWindow = NULL; + ActiveIdSource = ImGuiInputSource_None; + ActiveIdMouseButton = -1; + ActiveIdPreviousFrame = 0; + ActiveIdPreviousFrameIsAlive = false; + ActiveIdPreviousFrameHasBeenEditedBefore = false; + ActiveIdPreviousFrameWindow = NULL; + LastActiveId = 0; + LastActiveIdTimer = 0.0f; + + ActiveIdUsingNavDirMask = 0x00; + ActiveIdUsingAllKeyboardKeys = false; +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + ActiveIdUsingNavInputMask = 0x00; +#endif + + CurrentFocusScopeId = 0; + CurrentItemFlags = ImGuiItemFlags_None; + BeginMenuCount = 0; + + CurrentDpiScale = 0.0f; + CurrentViewport = NULL; + MouseViewport = MouseLastHoveredViewport = NULL; + PlatformLastFocusedViewportId = 0; + ViewportCreatedCount = PlatformWindowsCreatedCount = 0; + ViewportFocusedStampCount = 0; + + NavWindow = NULL; + NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = 0; + NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; + NavActivateFlags = NavNextActivateFlags = ImGuiActivateFlags_None; + NavJustMovedToKeyMods = ImGuiMod_None; + NavInputSource = ImGuiInputSource_Keyboard; + NavLayer = ImGuiNavLayer_Main; + NavLastValidSelectionUserData = ImGuiSelectionUserData_Invalid; + NavIdIsAlive = false; + NavMousePosDirty = false; + NavDisableHighlight = true; + NavDisableMouseHover = false; + NavAnyRequest = false; + NavInitRequest = false; + NavInitRequestFromMove = false; + NavMoveSubmitted = false; + NavMoveScoringItems = false; + NavMoveForwardToNextFrame = false; + NavMoveFlags = ImGuiNavMoveFlags_None; + NavMoveScrollFlags = ImGuiScrollFlags_None; + NavMoveKeyMods = ImGuiMod_None; + NavMoveDir = NavMoveDirForDebug = NavMoveClipDir = ImGuiDir_None; + NavScoringDebugCount = 0; + NavTabbingDir = 0; + NavTabbingCounter = 0; + + ConfigNavWindowingKeyNext = ImGuiMod_Ctrl | ImGuiKey_Tab; + ConfigNavWindowingKeyPrev = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab; + NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; + NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; + NavWindowingToggleLayer = false; + + DimBgRatio = 0.0f; + + DragDropActive = DragDropWithinSource = DragDropWithinTarget = false; + DragDropSourceFlags = ImGuiDragDropFlags_None; + DragDropSourceFrameCount = -1; + DragDropMouseButton = -1; + DragDropTargetId = 0; + DragDropAcceptFlags = ImGuiDragDropFlags_None; + DragDropAcceptIdCurrRectSurface = 0.0f; + DragDropAcceptIdPrev = DragDropAcceptIdCurr = 0; + DragDropAcceptFrameCount = -1; + DragDropHoldJustPressedId = 0; + memset(DragDropPayloadBufLocal, 0, sizeof(DragDropPayloadBufLocal)); + + ClipperTempDataStacked = 0; + + CurrentTable = NULL; + TablesTempDataStacked = 0; + CurrentTabBar = NULL; + + HoverItemDelayId = HoverItemDelayIdPreviousFrame = HoverItemUnlockedStationaryId = HoverWindowUnlockedStationaryId = 0; + HoverItemDelayTimer = HoverItemDelayClearTimer = 0.0f; + + MouseCursor = ImGuiMouseCursor_Arrow; + MouseStationaryTimer = 0.0f; + + TempInputId = 0; + ColorEditOptions = ImGuiColorEditFlags_DefaultOptions_; + ColorEditCurrentID = ColorEditSavedID = 0; + ColorEditSavedHue = ColorEditSavedSat = 0.0f; + ColorEditSavedColor = 0; + SliderGrabClickOffset = 0.0f; + SliderCurrentAccum = 0.0f; + SliderCurrentAccumDirty = false; + DragCurrentAccumDirty = false; + DragCurrentAccum = 0.0f; + DragSpeedDefaultRatio = 1.0f / 100.0f; + ScrollbarClickDeltaToGrabCenter = 0.0f; + DisabledAlphaBackup = 0.0f; + DisabledStackSize = 0; + LockMarkEdited = 0; + TooltipOverrideCount = 0; + + PlatformImeData.InputPos = ImVec2(0.0f, 0.0f); + PlatformImeDataPrev.InputPos = ImVec2(-1.0f, -1.0f); // Different to ensure initial submission + PlatformImeViewport = 0; + + DockNodeWindowMenuHandler = NULL; + + SettingsLoaded = false; + SettingsDirtyTimer = 0.0f; + HookIdNext = 0; + + memset(LocalizationTable, 0, sizeof(LocalizationTable)); + + LogEnabled = false; + LogType = ImGuiLogType_None; + LogNextPrefix = LogNextSuffix = NULL; + LogFile = NULL; + LogLinePosY = FLT_MAX; + LogLineFirstItem = false; + LogDepthRef = 0; + LogDepthToExpand = LogDepthToExpandDefault = 2; + + DebugLogFlags = ImGuiDebugLogFlags_OutputToTTY; + DebugLocateId = 0; + DebugLogClipperAutoDisableFrames = 0; + DebugLocateFrames = 0; + DebugBeginReturnValueCullDepth = -1; + DebugItemPickerActive = false; + DebugItemPickerMouseButton = ImGuiMouseButton_Left; + DebugItemPickerBreakId = 0; + DebugHoveredDockNode = NULL; + + memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); + FramerateSecPerFrameIdx = FramerateSecPerFrameCount = 0; + FramerateSecPerFrameAccum = 0.0f; + WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiWindowTempData, ImGuiWindow +//----------------------------------------------------------------------------- + +// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow. +// (That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered..) +// (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin) +struct IMGUI_API ImGuiWindowTempData +{ + // Layout + ImVec2 CursorPos; // Current emitting position, in absolute coordinates. + ImVec2 CursorPosPrevLine; + ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding. + ImVec2 CursorMaxPos; // Used to implicitly calculate ContentSize at the beginning of next frame, for scrolling range and auto-resize. Always growing during the frame. + ImVec2 IdealMaxPos; // Used to implicitly calculate ContentSizeIdeal at the beginning of next frame, for auto-resize only. Always growing during the frame. + ImVec2 CurrLineSize; + ImVec2 PrevLineSize; + float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). + float PrevLineTextBaseOffset; + bool IsSameLine; + bool IsSetPos; + ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) + ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. + ImVec1 GroupOffset; + ImVec2 CursorStartPosLossyness;// Record the loss of precision of CursorStartPos due to really large scrolling amount. This is used by clipper to compensate and fix the most common use case of large scroll area. + + // Keyboard/Gamepad navigation + ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) + short NavLayersActiveMask; // Which layers have been written to (result from previous frame) + short NavLayersActiveMaskNext;// Which layers have been written to (accumulator for current frame) + bool NavIsScrollPushableX; // Set when current work location may be scrolled horizontally when moving left / right. This is generally always true UNLESS within a column. + bool NavHideHighlightOneFrame; + bool NavWindowHasScrollY; // Set per window when scrolling can be used (== ScrollMax.y > 0.0f) + + // Miscellaneous + bool MenuBarAppending; // FIXME: Remove this + ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs. + ImGuiMenuColumns MenuColumns; // Simplified columns storage for menu items measurement + int TreeDepth; // Current tree depth. + ImU32 TreeJumpToParentOnPopMask; // Store a copy of !g.NavIdIsAlive for TreeDepth 0..31.. Could be turned into a ImU64 if necessary. + ImVector ChildWindows; + ImGuiStorage* StateStorage; // Current persistent per-window storage (store e.g. tree node open/close state) + ImGuiOldColumns* CurrentColumns; // Current columns set + int CurrentTableIdx; // Current table index (into g.Tables) + ImGuiLayoutType LayoutType; + ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin() + + // Local parameters stacks + // We store the current settings outside of the vectors to increase memory locality (reduce cache misses). The vectors are rarely modified. Also it allows us to not heap allocate for short-lived windows which are not using those settings. + float ItemWidth; // Current item width (>0.0: width in pixels, <0.0: align xx pixels to the right of window). + float TextWrapPos; // Current text wrap pos. + ImVector ItemWidthStack; // Store item widths to restore (attention: .back() is not == ItemWidth) + ImVector TextWrapPosStack; // Store text wrap pos to restore (attention: .back() is not == TextWrapPos) +}; + +// Storage for one window +struct IMGUI_API ImGuiWindow +{ + ImGuiContext* Ctx; // Parent UI context (needs to be set explicitly by parent). + char* Name; // Window name, owned by the window. + ImGuiID ID; // == ImHashStr(Name) + ImGuiWindowFlags Flags, FlagsPreviousFrame; // See enum ImGuiWindowFlags_ + ImGuiWindowClass WindowClass; // Advanced users only. Set with SetNextWindowClass() + ImGuiViewportP* Viewport; // Always set in Begin(). Inactive windows may have a NULL value here if their viewport was discarded. + ImGuiID ViewportId; // We backup the viewport id (since the viewport may disappear or never be created if the window is inactive) + ImVec2 ViewportPos; // We backup the viewport position (since the viewport may disappear or never be created if the window is inactive) + int ViewportAllowPlatformMonitorExtend; // Reset to -1 every frame (index is guaranteed to be valid between NewFrame..EndFrame), only used in the Appearing frame of a tooltip/popup to enforce clamping to a given monitor + ImVec2 Pos; // Position (always rounded-up to nearest pixel) + ImVec2 Size; // Current size (==SizeFull or collapsed title bar size) + ImVec2 SizeFull; // Size when non collapsed + ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding. + ImVec2 ContentSizeIdeal; + ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize(). + ImVec2 WindowPadding; // Window padding at the time of Begin(). + float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc. + float WindowBorderSize; // Window border size at the time of Begin(). + float DecoOuterSizeX1, DecoOuterSizeY1; // Left/Up offsets. Sum of non-scrolling outer decorations (X1 generally == 0.0f. Y1 generally = TitleBarHeight + MenuBarHeight). Locked during Begin(). + float DecoOuterSizeX2, DecoOuterSizeY2; // Right/Down offsets (X2 generally == ScrollbarSize.x, Y2 == ScrollbarSizes.y). + float DecoInnerSizeX1, DecoInnerSizeY1; // Applied AFTER/OVER InnerRect. Specialized for Tables as they use specialized form of clipping and frozen rows/columns are inside InnerRect (and not part of regular decoration sizes). + int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)! + ImGuiID MoveId; // == window->GetID("#MOVE") + ImGuiID TabId; // == window->GetID("#TAB") + ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window) + ImVec2 Scroll; + ImVec2 ScrollMax; + ImVec2 ScrollTarget; // target scroll position. stored as cursor position with scrolling canceled out, so the highest point is always 0.0f. (FLT_MAX for no change) + ImVec2 ScrollTargetCenterRatio; // 0.0f = scroll so that target position is at top, 0.5f = scroll so that target position is centered + ImVec2 ScrollTargetEdgeSnapDist; // 0.0f = no snapping, >0.0f snapping threshold + ImVec2 ScrollbarSizes; // Size taken by each scrollbars on their smaller axis. Pay attention! ScrollbarSizes.x == width of the vertical scrollbar, ScrollbarSizes.y = height of the horizontal scrollbar. + bool ScrollbarX, ScrollbarY; // Are scrollbars visible? + bool ViewportOwned; + bool Active; // Set to true on Begin(), unless Collapsed + bool WasActive; + bool WriteAccessed; // Set to true when any widget access the current window + bool Collapsed; // Set when collapsing window to become only title-bar + bool WantCollapseToggle; + bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed) + bool Appearing; // Set during the frame where the window is appearing (or re-appearing) + bool Hidden; // Do not display (== HiddenFrames*** > 0) + bool IsFallbackWindow; // Set on the "Debug##Default" window. + bool IsExplicitChild; // Set when passed _ChildWindow, left to false by BeginDocked() + bool HasCloseButton; // Set when the window has a close button (p_open != NULL) + signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) + short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) + short BeginCountPreviousFrame; // Number of Begin() during the previous frame + short BeginOrderWithinParent; // Begin() order within immediate parent window, if we are a child window. Otherwise 0. + short BeginOrderWithinContext; // Begin() order within entire imgui context. This is mostly used for debugging submission order related issues. + short FocusOrder; // Order within WindowsFocusOrder[], altered when windows are focused. + ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling) + ImS8 AutoFitFramesX, AutoFitFramesY; + ImS8 AutoFitChildAxises; + bool AutoFitOnlyGrows; + ImGuiDir AutoPosLastDirection; + ImS8 HiddenFramesCanSkipItems; // Hide the window for N frames + ImS8 HiddenFramesCannotSkipItems; // Hide the window for N frames while allowing items to be submitted so we can measure their size + ImS8 HiddenFramesForRenderOnly; // Hide the window until frame N at Render() time only + ImS8 DisableInputsFrames; // Disable window interactions for N frames + ImGuiCond SetWindowPosAllowFlags : 8; // store acceptable condition flags for SetNextWindowPos() use. + ImGuiCond SetWindowSizeAllowFlags : 8; // store acceptable condition flags for SetNextWindowSize() use. + ImGuiCond SetWindowCollapsedAllowFlags : 8; // store acceptable condition flags for SetNextWindowCollapsed() use. + ImGuiCond SetWindowDockAllowFlags : 8; // store acceptable condition flags for SetNextWindowDock() use. + ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size) + ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0, 0) when positioning from top-left corner; ImVec2(0.5f, 0.5f) for centering; ImVec2(1, 1) for bottom right. + + ImVector IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack. (In theory this should be in the TempData structure) + ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name. + + // The best way to understand what those rectangles are is to use the 'Metrics->Tools->Show Windows Rectangles' viewer. + // The main 'OuterRect', omitted as a field, is window->Rect(). + ImRect OuterRectClipped; // == Window->Rect() just after setup in Begin(). == window->Rect() for root window. + ImRect InnerRect; // Inner rectangle (omit title bar, menu bar, scroll bar) + ImRect InnerClipRect; // == InnerRect shrunk by WindowPadding*0.5f on each side, clipped within viewport or parent clip rect. + ImRect WorkRect; // Initially covers the whole scrolling region. Reduced by containers e.g columns/tables when active. Shrunk by WindowPadding*1.0f on each side. This is meant to replace ContentRegionRect over time (from 1.71+ onward). + ImRect ParentWorkRect; // Backup of WorkRect before entering a container such as columns/tables. Used by e.g. SpanAllColumns functions to easily access. Stacked containers are responsible for maintaining this. // FIXME-WORKRECT: Could be a stack? + ImRect ClipRect; // Current clipping/scissoring rectangle, evolve as we are using PushClipRect(), etc. == DrawList->clip_rect_stack.back(). + ImRect ContentRegionRect; // FIXME: This is currently confusing/misleading. It is essentially WorkRect but not handling of scrolling. We currently rely on it as right/bottom aligned sizing operation need some size to rely on. + ImVec2ih HitTestHoleSize; // Define an optional rectangular hole where mouse will pass-through the window. + ImVec2ih HitTestHoleOffset; + + int LastFrameActive; // Last frame number the window was Active. + int LastFrameJustFocused; // Last frame number the window was made Focused. + float LastTimeActive; // Last timestamp the window was Active (using float as we don't need high precision there) + float ItemWidthDefault; + ImGuiStorage StateStorage; + ImVector ColumnsStorage; + float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale() + float FontDpiScale; + int SettingsOffset; // Offset into SettingsWindows[] (offsets are always valid as we only grow the array from the back) + + ImDrawList* DrawList; // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer) + ImDrawList DrawListInst; + ImGuiWindow* ParentWindow; // If we are a child _or_ popup _or_ docked window, this is pointing to our parent. Otherwise NULL. + ImGuiWindow* ParentWindowInBeginStack; + ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window. Doesn't cross through popups/dock nodes. + ImGuiWindow* RootWindowPopupTree; // Point to ourself or first ancestor that is not a child window. Cross through popups parent<>child. + ImGuiWindow* RootWindowDockTree; // Point to ourself or first ancestor that is not a child window. Cross through dock nodes. + ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active. + ImGuiWindow* RootWindowForNav; // Point to ourself or first ancestor which doesn't have the NavFlattened flag. + + ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) + ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) + ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space + ImVec2 NavPreferredScoringPosRel[ImGuiNavLayer_COUNT]; // Preferred X/Y position updated when moving on a given axis, reset to FLT_MAX. + ImGuiID NavRootFocusScopeId; // Focus Scope ID at the time of Begin() + + int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy + int MemoryDrawListVtxCapacity; + bool MemoryCompacted; // Set when window extraneous data have been garbage collected + + // Docking + bool DockIsActive :1; // When docking artifacts are actually visible. When this is set, DockNode is guaranteed to be != NULL. ~~ (DockNode != NULL) && (DockNode->Windows.Size > 1). + bool DockNodeIsVisible :1; + bool DockTabIsVisible :1; // Is our window visible this frame? ~~ is the corresponding tab selected? + bool DockTabWantClose :1; + short DockOrder; // Order of the last time the window was visible within its DockNode. This is used to reorder windows that are reappearing on the same frame. Same value between windows that were active and windows that were none are possible. + ImGuiWindowDockStyle DockStyle; + ImGuiDockNode* DockNode; // Which node are we docked into. Important: Prefer testing DockIsActive in many cases as this will still be set when the dock node is hidden. + ImGuiDockNode* DockNodeAsHost; // Which node are we owning (for parent windows) + ImGuiID DockId; // Backup of last valid DockNode->ID, so single window remember their dock node id even when they are not bound any more + ImGuiItemStatusFlags DockTabItemStatusFlags; + ImRect DockTabItemRect; + +public: + ImGuiWindow(ImGuiContext* context, const char* name); + ~ImGuiWindow(); + + ImGuiID GetID(const char* str, const char* str_end = NULL); + ImGuiID GetID(const void* ptr); + ImGuiID GetID(int n); + ImGuiID GetIDFromRectangle(const ImRect& r_abs); + + // We don't use g.FontSize because the window may be != g.CurrentWindow. + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + float CalcFontSize() const { ImGuiContext& g = *Ctx; float scale = g.FontBaseSize * FontWindowScale * FontDpiScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } + float TitleBarHeight() const { ImGuiContext& g = *Ctx; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } + ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); } + float MenuBarHeight() const { ImGuiContext& g = *Ctx; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; } + ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Tab bar, Tab item support +//----------------------------------------------------------------------------- + +// Extend ImGuiTabBarFlags_ +enum ImGuiTabBarFlagsPrivate_ +{ + ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] + ImGuiTabBarFlags_IsFocused = 1 << 21, + ImGuiTabBarFlags_SaveSettings = 1 << 22, // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs +}; + +// Extend ImGuiTabItemFlags_ +enum ImGuiTabItemFlagsPrivate_ +{ + ImGuiTabItemFlags_SectionMask_ = ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing, + ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) + ImGuiTabItemFlags_Button = 1 << 21, // Used by TabItemButton, change the tab item behavior to mimic a button + ImGuiTabItemFlags_Unsorted = 1 << 22, // [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window. +}; + +// Storage for one active tab item (sizeof() 48 bytes) +struct ImGuiTabItem +{ + ImGuiID ID; + ImGuiTabItemFlags Flags; + ImGuiWindow* Window; // When TabItem is part of a DockNode's TabBar, we hold on to a window. + int LastFrameVisible; + int LastFrameSelected; // This allows us to infer an ordered list of the last activated tabs with little maintenance + float Offset; // Position relative to beginning of tab + float Width; // Width currently displayed + float ContentWidth; // Width of label, stored during BeginTabItem() call + float RequestedWidth; // Width optionally requested by caller, -1.0f is unused + ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames + ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable + ImS16 IndexDuringLayout; // Index only used during TabBarLayout(). Tabs gets reordered so 'Tabs[n].IndexDuringLayout == n' but may mismatch during additions. + bool WantClose; // Marked as closed by SetTabItemClosed() + + ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; } +}; + +// Storage for a tab bar (sizeof() 152 bytes) +struct IMGUI_API ImGuiTabBar +{ + ImVector Tabs; + ImGuiTabBarFlags Flags; + ImGuiID ID; // Zero for tab-bars used by docking + ImGuiID SelectedTabId; // Selected tab/window + ImGuiID NextSelectedTabId; // Next selected tab/window. Will also trigger a scrolling animation + ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview) + int CurrFrameVisible; + int PrevFrameVisible; + ImRect BarRect; + float CurrTabsContentsHeight; + float PrevTabsContentsHeight; // Record the height of contents submitted below the tab bar + float WidthAllTabs; // Actual width of all tabs (locked during layout) + float WidthAllTabsIdeal; // Ideal width if all tabs were visible and not clipped + float ScrollingAnim; + float ScrollingTarget; + float ScrollingTargetDistToVisibility; + float ScrollingSpeed; + float ScrollingRectMinX; + float ScrollingRectMaxX; + float SeparatorMinX; + float SeparatorMaxX; + ImGuiID ReorderRequestTabId; + ImS16 ReorderRequestOffset; + ImS8 BeginCount; + bool WantLayout; + bool VisibleTabWasSubmitted; + bool TabsAddedNew; // Set to true when a new tab item or button has been added to the tab bar during last frame + ImS16 TabsActiveCount; // Number of tabs submitted this frame. + ImS16 LastTabItemIdx; // Index of last BeginTabItem() tab for use by EndTabItem() + float ItemSpacingY; + ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() + ImVec2 BackupCursorPos; + ImGuiTextBuffer TabsNames; // For non-docking tab bar we re-append names in a contiguous buffer. + + ImGuiTabBar(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Table support +//----------------------------------------------------------------------------- + +#define IM_COL32_DISABLE IM_COL32(0,0,0,1) // Special sentinel code which cannot be used as a regular color. +#define IMGUI_TABLE_MAX_COLUMNS 512 // May be further lifted + +// Our current column maximum is 64 but we may raise that in the future. +typedef ImS16 ImGuiTableColumnIdx; +typedef ImU16 ImGuiTableDrawChannelIdx; + +// [Internal] sizeof() ~ 112 +// We use the terminology "Enabled" to refer to a column that is not Hidden by user/api. +// We use the terminology "Clipped" to refer to a column that is out of sight because of scrolling/clipping. +// This is in contrast with some user-facing api such as IsItemVisible() / IsRectVisible() which use "Visible" to mean "not clipped". +struct ImGuiTableColumn +{ + ImGuiTableColumnFlags Flags; // Flags after some patching (not directly same as provided by user). See ImGuiTableColumnFlags_ + float WidthGiven; // Final/actual width visible == (MaxX - MinX), locked in TableUpdateLayout(). May be > WidthRequest to honor minimum width, may be < WidthRequest to honor shrinking columns down in tight space. + float MinX; // Absolute positions + float MaxX; + float WidthRequest; // Master width absolute value when !(Flags & _WidthStretch). When Stretch this is derived every frame from StretchWeight in TableUpdateLayout() + float WidthAuto; // Automatic width + float StretchWeight; // Master width weight when (Flags & _WidthStretch). Often around ~1.0f initially. + float InitStretchWeightOrWidth; // Value passed to TableSetupColumn(). For Width it is a content width (_without padding_). + ImRect ClipRect; // Clipping rectangle for the column + ImGuiID UserID; // Optional, value passed to TableSetupColumn() + float WorkMinX; // Contents region min ~(MinX + CellPaddingX + CellSpacingX1) == cursor start position when entering column + float WorkMaxX; // Contents region max ~(MaxX - CellPaddingX - CellSpacingX2) + float ItemWidth; // Current item width for the column, preserved across rows + float ContentMaxXFrozen; // Contents maximum position for frozen rows (apart from headers), from which we can infer content width. + float ContentMaxXUnfrozen; + float ContentMaxXHeadersUsed; // Contents maximum position for headers rows (regardless of freezing). TableHeader() automatically softclip itself + report ideal desired size, to avoid creating extraneous draw calls + float ContentMaxXHeadersIdeal; + ImS16 NameOffset; // Offset into parent ColumnsNames[] + ImGuiTableColumnIdx DisplayOrder; // Index within Table's IndexToDisplayOrder[] (column may be reordered by users) + ImGuiTableColumnIdx IndexWithinEnabledSet; // Index within enabled/visible set (<= IndexToDisplayOrder) + ImGuiTableColumnIdx PrevEnabledColumn; // Index of prev enabled/visible column within Columns[], -1 if first enabled/visible column + ImGuiTableColumnIdx NextEnabledColumn; // Index of next enabled/visible column within Columns[], -1 if last enabled/visible column + ImGuiTableColumnIdx SortOrder; // Index of this column within sort specs, -1 if not sorting on this column, 0 for single-sort, may be >0 on multi-sort + ImGuiTableDrawChannelIdx DrawChannelCurrent; // Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx DrawChannelFrozen; // Draw channels for frozen rows (often headers) + ImGuiTableDrawChannelIdx DrawChannelUnfrozen; // Draw channels for unfrozen rows + bool IsEnabled; // IsUserEnabled && (Flags & ImGuiTableColumnFlags_Disabled) == 0 + bool IsUserEnabled; // Is the column not marked Hidden by the user? (unrelated to being off view, e.g. clipped by scrolling). + bool IsUserEnabledNextFrame; + bool IsVisibleX; // Is actually in view (e.g. overlapping the host window clipping rectangle, not scrolled). + bool IsVisibleY; + bool IsRequestOutput; // Return value for TableSetColumnIndex() / TableNextColumn(): whether we request user to output contents or not. + bool IsSkipItems; // Do we want item submissions to this column to be completely ignored (no layout will happen). + bool IsPreserveWidthAuto; + ImS8 NavLayerCurrent; // ImGuiNavLayer in 1 byte + ImU8 AutoFitQueue; // Queue of 8 values for the next 8 frames to request auto-fit + ImU8 CannotSkipItemsQueue; // Queue of 8 values for the next 8 frames to disable Clipped/SkipItem + ImU8 SortDirection : 2; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending + ImU8 SortDirectionsAvailCount : 2; // Number of available sort directions (0 to 3) + ImU8 SortDirectionsAvailMask : 4; // Mask of available sort directions (1-bit each) + ImU8 SortDirectionsAvailList; // Ordered list of available sort directions (2-bits each, total 8-bits) + + ImGuiTableColumn() + { + memset(this, 0, sizeof(*this)); + StretchWeight = WidthRequest = -1.0f; + NameOffset = -1; + DisplayOrder = IndexWithinEnabledSet = -1; + PrevEnabledColumn = NextEnabledColumn = -1; + SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + DrawChannelCurrent = DrawChannelFrozen = DrawChannelUnfrozen = (ImU8)-1; + } +}; + +// Transient cell data stored per row. +// sizeof() ~ 6 +struct ImGuiTableCellData +{ + ImU32 BgColor; // Actual color + ImGuiTableColumnIdx Column; // Column number +}; + +// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs. Does that means they could be moved to ImGuiTableTempData?) +struct ImGuiTableInstanceData +{ + ImGuiID TableInstanceID; + float LastOuterHeight; // Outer height from last frame + float LastFirstRowHeight; // Height of first row from last frame (FIXME: this is used as "header height" and may be reworked) + float LastFrozenHeight; // Height of frozen section from last frame + int HoveredRowLast; // Index of row which was hovered last frame. + int HoveredRowNext; // Index of row hovered this frame, set after encountering it. + + ImGuiTableInstanceData() { TableInstanceID = 0; LastOuterHeight = LastFirstRowHeight = LastFrozenHeight = 0.0f; HoveredRowLast = HoveredRowNext = -1; } +}; + +// FIXME-TABLE: more transient data could be stored in a stacked ImGuiTableTempData: e.g. SortSpecs, incoming RowData +// sizeof() ~ 580 bytes + heap allocs described in TableBeginInitMemory() +struct IMGUI_API ImGuiTable +{ + ImGuiID ID; + ImGuiTableFlags Flags; + void* RawData; // Single allocation to hold Columns[], DisplayOrderToIndex[] and RowCellData[] + ImGuiTableTempData* TempData; // Transient data while table is active. Point within g.CurrentTableStack[] + ImSpan Columns; // Point within RawData[] + ImSpan DisplayOrderToIndex; // Point within RawData[]. Store display order of columns (when not reordered, the values are 0...Count-1) + ImSpan RowCellData; // Point within RawData[]. Store cells background requests for current row. + ImBitArrayPtr EnabledMaskByDisplayOrder; // Column DisplayOrder -> IsEnabled map + ImBitArrayPtr EnabledMaskByIndex; // Column Index -> IsEnabled map (== not hidden by user/api) in a format adequate for iterating column without touching cold data + ImBitArrayPtr VisibleMaskByIndex; // Column Index -> IsVisibleX|IsVisibleY map (== not hidden by user/api && not hidden by scrolling/cliprect) + ImGuiTableFlags SettingsLoadedFlags; // Which data were loaded from the .ini file (e.g. when order is not altered we won't save order) + int SettingsOffset; // Offset in g.SettingsTables + int LastFrameActive; + int ColumnsCount; // Number of columns declared in BeginTable() + int CurrentRow; + int CurrentColumn; + ImS16 InstanceCurrent; // Count of BeginTable() calls with same ID in the same frame (generally 0). This is a little bit similar to BeginCount for a window, but multiple table with same ID look are multiple tables, they are just synched. + ImS16 InstanceInteracted; // Mark which instance (generally 0) of the same ID is being interacted with + float RowPosY1; + float RowPosY2; + float RowMinHeight; // Height submitted to TableNextRow() + float RowCellPaddingY; // Top and bottom padding. Reloaded during row change. + float RowTextBaseline; + float RowIndentOffsetX; + ImGuiTableRowFlags RowFlags : 16; // Current row flags, see ImGuiTableRowFlags_ + ImGuiTableRowFlags LastRowFlags : 16; + int RowBgColorCounter; // Counter for alternating background colors (can be fast-forwarded by e.g clipper), not same as CurrentRow because header rows typically don't increase this. + ImU32 RowBgColor[2]; // Background color override for current row. + ImU32 BorderColorStrong; + ImU32 BorderColorLight; + float BorderX1; + float BorderX2; + float HostIndentX; + float MinColumnWidth; + float OuterPaddingX; + float CellPaddingX; // Padding from each borders. Locked in BeginTable()/Layout. + float CellSpacingX1; // Spacing between non-bordered cells. Locked in BeginTable()/Layout. + float CellSpacingX2; + float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details. + float ColumnsGivenWidth; // Sum of current column width + float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window + float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns + float ResizedColumnNextWidth; + float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table. + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + ImRect OuterRect; // Note: for non-scrolling table, OuterRect.Max.y is often FLT_MAX until EndTable(), unless a height has been specified in BeginTable(). + ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is + ImRect WorkRect; + ImRect InnerClipRect; + ImRect BgClipRect; // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries + ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped + ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect. + ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window. + ImRect HostBackupInnerClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground() + ImGuiWindow* OuterWindow; // Parent window for the table + ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window) + ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names + ImDrawListSplitter* DrawSplitter; // Shortcut to TempData->DrawSplitter while in table. Isolate draw commands per columns to avoid switching clip rect constantly + ImGuiTableInstanceData InstanceDataFirst; + ImVector InstanceDataExtra; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableColumnSortSpecs SortSpecsSingle; + ImVector SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would be good. + ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs() + ImGuiTableColumnIdx SortSpecsCount; + ImGuiTableColumnIdx ColumnsEnabledCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx ColumnsEnabledFixedCount; // Number of enabled columns (<= ColumnsCount) + ImGuiTableColumnIdx DeclColumnsCount; // Count calls to TableSetupColumn() + ImGuiTableColumnIdx HoveredColumnBody; // Index of column whose visible region is being hovered. Important: == ColumnsCount when hovering empty region after the right-most column! + ImGuiTableColumnIdx HoveredColumnBorder; // Index of column whose right-border is being hovered (for resizing). + ImGuiTableColumnIdx AutoFitSingleColumn; // Index of single column requesting auto-fit. + ImGuiTableColumnIdx ResizedColumn; // Index of column being resized. Reset when InstanceCurrent==0. + ImGuiTableColumnIdx LastResizedColumn; // Index of column being resized from previous frame. + ImGuiTableColumnIdx HeldHeaderColumn; // Index of column header being held. + ImGuiTableColumnIdx ReorderColumn; // Index of column being reordered. (not cleared) + ImGuiTableColumnIdx ReorderColumnDir; // -1 or +1 + ImGuiTableColumnIdx LeftMostEnabledColumn; // Index of left-most non-hidden column. + ImGuiTableColumnIdx RightMostEnabledColumn; // Index of right-most non-hidden column. + ImGuiTableColumnIdx LeftMostStretchedColumn; // Index of left-most stretched column. + ImGuiTableColumnIdx RightMostStretchedColumn; // Index of right-most stretched column. + ImGuiTableColumnIdx ContextPopupColumn; // Column right-clicked on, of -1 if opening context menu from a neutral/empty spot + ImGuiTableColumnIdx FreezeRowsRequest; // Requested frozen rows count + ImGuiTableColumnIdx FreezeRowsCount; // Actual frozen row count (== FreezeRowsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx FreezeColumnsRequest; // Requested frozen columns count + ImGuiTableColumnIdx FreezeColumnsCount; // Actual frozen columns count (== FreezeColumnsRequest, or == 0 when no scrolling offset) + ImGuiTableColumnIdx RowCellDataCurrent; // Index of current RowCellData[] entry in current row + ImGuiTableDrawChannelIdx DummyDrawChannel; // Redirect non-visible columns here. + ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; // For Selectable() and other widgets drawing across columns after the freezing line. Index within DrawSplitter.Channels[] + ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; + bool IsLayoutLocked; // Set by TableUpdateLayout() which is called when beginning the first row. + bool IsInsideRow; // Set when inside TableBeginRow()/TableEndRow(). + bool IsInitializing; + bool IsSortSpecsDirty; + bool IsUsingHeaders; // Set when the first row had the ImGuiTableRowFlags_Headers flag. + bool IsContextPopupOpen; // Set when default context menu is open (also see: ContextPopupColumn, InstanceInteracted). + bool IsSettingsRequestLoad; + bool IsSettingsDirty; // Set when table settings have changed and needs to be reported into ImGuiTableSetttings data. + bool IsDefaultDisplayOrder; // Set when display order is unchanged from default (DisplayOrder contains 0...Count-1) + bool IsResetAllRequest; + bool IsResetDisplayOrderRequest; + bool IsUnfrozenRows; // Set when we got past the frozen row. + bool IsDefaultSizingPolicy; // Set if user didn't explicitly set a sizing policy in BeginTable() + bool HasScrollbarYCurr; // Whether ANY instance of this table had a vertical scrollbar during the current frame. + bool HasScrollbarYPrev; // Whether ANY instance of this table had a vertical scrollbar during the previous. + bool MemoryCompacted; + bool HostSkipItems; // Backup of InnerWindow->SkipItem at the end of BeginTable(), because we will overwrite InnerWindow->SkipItem on a per-column basis + + ImGuiTable() { memset(this, 0, sizeof(*this)); LastFrameActive = -1; } + ~ImGuiTable() { IM_FREE(RawData); } +}; + +// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table). +// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure. +// - We also leave out of this structure data that tend to be particularly useful for debugging/metrics. +// sizeof() ~ 112 bytes. +struct IMGUI_API ImGuiTableTempData +{ + int TableIndex; // Index in g.Tables.Buf[] pool + float LastTimeActive; // Last timestamp this structure was used + + ImVec2 UserOuterSize; // outer_size.x passed to BeginTable() + ImDrawListSplitter DrawSplitter; + + ImRect HostBackupWorkRect; // Backup of InnerWindow->WorkRect at the end of BeginTable() + ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable() + ImVec2 HostBackupPrevLineSize; // Backup of InnerWindow->DC.PrevLineSize at the end of BeginTable() + ImVec2 HostBackupCurrLineSize; // Backup of InnerWindow->DC.CurrLineSize at the end of BeginTable() + ImVec2 HostBackupCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable() + ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->DC.ColumnsOffset at the end of BeginTable() + float HostBackupItemWidth; // Backup of OuterWindow->DC.ItemWidth at the end of BeginTable() + int HostBackupItemWidthStackSize;//Backup of OuterWindow->DC.ItemWidthStack.Size at the end of BeginTable() + + ImGuiTableTempData() { memset(this, 0, sizeof(*this)); LastTimeActive = -1.0f; } +}; + +// sizeof() ~ 12 +struct ImGuiTableColumnSettings +{ + float WidthOrWeight; + ImGuiID UserID; + ImGuiTableColumnIdx Index; + ImGuiTableColumnIdx DisplayOrder; + ImGuiTableColumnIdx SortOrder; + ImU8 SortDirection : 2; + ImU8 IsEnabled : 1; // "Visible" in ini file + ImU8 IsStretch : 1; + + ImGuiTableColumnSettings() + { + WidthOrWeight = 0.0f; + UserID = 0; + Index = -1; + DisplayOrder = SortOrder = -1; + SortDirection = ImGuiSortDirection_None; + IsEnabled = 1; + IsStretch = 0; + } +}; + +// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.) +struct ImGuiTableSettings +{ + ImGuiID ID; // Set to 0 to invalidate/delete the setting + ImGuiTableFlags SaveFlags; // Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using its own flags..) + float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. + ImGuiTableColumnIdx ColumnsCount; + ImGuiTableColumnIdx ColumnsCountMax; // Maximum number of columns this settings instance can store, we can recycle a settings instance with lower number of columns but not higher + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + + ImGuiTableSettings() { memset(this, 0, sizeof(*this)); } + ImGuiTableColumnSettings* GetColumnSettings() { return (ImGuiTableColumnSettings*)(this + 1); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGui internal API +// No guarantee of forward compatibility here! +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Windows + // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) + // If this ever crash because g.CurrentWindow is NULL it means that either + // - ImGui::NewFrame() has never been called, which is illegal. + // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. + inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; } + inline ImGuiWindow* GetCurrentWindow() { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } + IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id); + IMGUI_API ImGuiWindow* FindWindowByName(const char* name); + IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); + IMGUI_API ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow* window); + IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy, bool dock_hierarchy); + IMGUI_API bool IsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent); + IMGUI_API bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below); + IMGUI_API bool IsWindowNavFocusable(ImGuiWindow* window); + IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0); + IMGUI_API void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond = 0); + IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0); + IMGUI_API void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size); + IMGUI_API void SetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* window); + inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x - off.x, r.Min.y - off.y, r.Max.x - off.x, r.Max.y - off.y); } + inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x + off.x, r.Min.y + off.y, r.Max.x + off.x, r.Max.y + off.y); } + inline ImVec2 WindowPosRelToAbs(ImGuiWindow* window, const ImVec2& p) { ImVec2 off = window->DC.CursorStartPos; return ImVec2(p.x + off.x, p.y + off.y); } + + // Windows: Display Order and Focus Order + IMGUI_API void FocusWindow(ImGuiWindow* window, ImGuiFocusRequestFlags flags = 0); + IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags); + IMGUI_API void BringWindowToFocusFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBack(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window); + IMGUI_API int FindWindowDisplayIndex(ImGuiWindow* window); + IMGUI_API ImGuiWindow* FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); + + // Fonts, drawing + IMGUI_API void SetCurrentFont(ImFont* font); + inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; } + inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { return GetForegroundDrawList(window->Viewport); } + IMGUI_API void AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector* out_list, ImDrawList* draw_list); + + // Init + IMGUI_API void Initialize(); + IMGUI_API void Shutdown(); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). + + // NewFrame + IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs); + IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); + IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); + IMGUI_API void StartMouseMovingWindowOrNode(ImGuiWindow* window, ImGuiDockNode* node, bool undock_floating_node); + IMGUI_API void UpdateMouseMovingWindowNewFrame(); + IMGUI_API void UpdateMouseMovingWindowEndFrame(); + + // Generic context hooks + IMGUI_API ImGuiID AddContextHook(ImGuiContext* context, const ImGuiContextHook* hook); + IMGUI_API void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); + IMGUI_API void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type); + + // Viewports + IMGUI_API void TranslateWindowsInViewport(ImGuiViewportP* viewport, const ImVec2& old_pos, const ImVec2& new_pos); + IMGUI_API void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale); + IMGUI_API void DestroyPlatformWindow(ImGuiViewportP* viewport); + IMGUI_API void SetWindowViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + IMGUI_API void SetCurrentViewport(ImGuiWindow* window, ImGuiViewportP* viewport); + IMGUI_API const ImGuiPlatformMonitor* GetViewportPlatformMonitor(ImGuiViewport* viewport); + IMGUI_API ImGuiViewportP* FindHoveredViewportFromPlatformWindowStack(const ImVec2& mouse_platform_pos); + + // Settings + IMGUI_API void MarkIniSettingsDirty(); + IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window); + IMGUI_API void ClearIniSettings(); + IMGUI_API void AddSettingsHandler(const ImGuiSettingsHandler* handler); + IMGUI_API void RemoveSettingsHandler(const char* type_name); + IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); + + // Settings - Windows + IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); + IMGUI_API ImGuiWindowSettings* FindWindowSettingsByID(ImGuiID id); + IMGUI_API ImGuiWindowSettings* FindWindowSettingsByWindow(ImGuiWindow* window); + IMGUI_API void ClearWindowSettings(const char* name); + + // Localization + IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count); + inline const char* LocalizeGetMsg(ImGuiLocKey key) { ImGuiContext& g = *GImGui; const char* msg = g.LocalizationTable[key]; return msg ? msg : "*Missing Text*"; } + + // Scrolling + IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); + IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); + IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); + IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio); + + // Early work-in-progress API (ScrollToItem() will become public) + IMGUI_API void ScrollToItem(ImGuiScrollFlags flags = 0); + IMGUI_API void ScrollToRect(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); + IMGUI_API ImVec2 ScrollToRectEx(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0); +//#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& rect) { ScrollToRect(window, rect, ImGuiScrollFlags_KeepVisibleEdgeY); } +//#endif + + // Basic Accessors + inline ImGuiItemStatusFlags GetItemStatusFlags(){ ImGuiContext& g = *GImGui; return g.LastItemData.StatusFlags; } + inline ImGuiItemFlags GetItemFlags() { ImGuiContext& g = *GImGui; return g.LastItemData.InFlags; } + inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; } + inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; } + IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void ClearActiveID(); + IMGUI_API ImGuiID GetHoveredID(); + IMGUI_API void SetHoveredID(ImGuiID id); + IMGUI_API void KeepAliveID(ImGuiID id); + IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. + IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) + IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed); + IMGUI_API ImGuiID GetIDWithSeed(int n, ImGuiID seed); + + // Basic Helpers for widget code + IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f); + inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) { ItemSize(bb.GetSize(), text_baseline_y); } // FIXME: This is a misleading API since we expect CursorPos to be bb.Min. + IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0); + IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id, ImGuiItemFlags item_flags); + IMGUI_API bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags = 0); + IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id); + IMGUI_API void SetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags status_flags, const ImRect& item_rect); + IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h); + IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x); + IMGUI_API void PushMultiItemsWidths(int components, float width_full); + IMGUI_API bool IsItemToggledSelection(); // Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly) + IMGUI_API ImVec2 GetContentRegionMaxAbs(); + IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); + + // Parameter stacks (shared) + IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); + IMGUI_API void PopItemFlag(); + IMGUI_API const ImGuiDataVarInfo* GetStyleVarInfo(ImGuiStyleVar idx); + + // Logging/Capture + IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. + IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer + IMGUI_API void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL); + IMGUI_API void LogSetNextTextDecoration(const char* prefix, const char* suffix); + + // Popups, Modals, Tooltips + IMGUI_API bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags); + IMGUI_API void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None); + IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsExceptModals(); + IMGUI_API bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags); + IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); + IMGUI_API bool BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags); + IMGUI_API ImRect GetPopupAllowedExtentRect(ImGuiWindow* window); + IMGUI_API ImGuiWindow* GetTopMostPopupModal(); + IMGUI_API ImGuiWindow* GetTopMostAndVisiblePopupModal(); + IMGUI_API ImGuiWindow* FindBlockingModal(ImGuiWindow* window); + IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window); + IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy); + + // Menus + IMGUI_API bool BeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags); + IMGUI_API bool BeginMenuEx(const char* label, const char* icon, bool enabled = true); + IMGUI_API bool MenuItemEx(const char* label, const char* icon, const char* shortcut = NULL, bool selected = false, bool enabled = true); + + // Combos + IMGUI_API bool BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags); + IMGUI_API bool BeginComboPreview(); + IMGUI_API void EndComboPreview(); + + // Gamepad/Keyboard Navigation + IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit); + IMGUI_API void NavInitRequestApplyResult(); + IMGUI_API bool NavMoveRequestButNoResultYet(); + IMGUI_API void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); + IMGUI_API void NavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); + IMGUI_API void NavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData* result, ImGuiNavTreeNodeData* tree_node_data); + IMGUI_API void NavMoveRequestCancel(); + IMGUI_API void NavMoveRequestApplyResult(); + IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); + IMGUI_API void NavClearPreferredPosForAxis(ImGuiAxis axis); + IMGUI_API void NavRestoreHighlightAfterMove(); + IMGUI_API void NavUpdateCurrentWindowIsScrollPushableX(); + IMGUI_API void SetNavWindow(ImGuiWindow* window); + IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); + + // Focus/Activation + // This should be part of a larger set of API: FocusItem(offset = -1), FocusItemByID(id), ActivateItem(offset = -1), ActivateItemByID(id) etc. which are + // much harder to design and implement than expected. I have a couple of private branches on this matter but it's not simple. For now implementing the easy ones. + IMGUI_API void FocusItem(); // Focus last item (no selection/activation). + IMGUI_API void ActivateItemByID(ImGuiID id); // Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the next frame when the item is encountered again. + + // Inputs + // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. + inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; } + inline bool IsNamedKeyOrModKey(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super || key == ImGuiMod_Shortcut; } + inline bool IsLegacyKey(ImGuiKey key) { return key >= ImGuiKey_LegacyNativeKey_BEGIN && key < ImGuiKey_LegacyNativeKey_END; } + inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; } + inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; } + inline bool IsMouseKey(ImGuiKey key) { return key >= ImGuiKey_Mouse_BEGIN && key < ImGuiKey_Mouse_END; } + inline bool IsAliasKey(ImGuiKey key) { return key >= ImGuiKey_Aliases_BEGIN && key < ImGuiKey_Aliases_END; } + inline ImGuiKeyChord ConvertShortcutMod(ImGuiKeyChord key_chord) { ImGuiContext& g = *GImGui; IM_ASSERT_PARANOID(key_chord & ImGuiMod_Shortcut); return (key_chord & ~ImGuiMod_Shortcut) | (g.IO.ConfigMacOSXBehaviors ? ImGuiMod_Super : ImGuiMod_Ctrl); } + inline ImGuiKey ConvertSingleModFlagToKey(ImGuiContext* ctx, ImGuiKey key) + { + ImGuiContext& g = *ctx; + if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl; + if (key == ImGuiMod_Shift) return ImGuiKey_ReservedForModShift; + if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt; + if (key == ImGuiMod_Super) return ImGuiKey_ReservedForModSuper; + if (key == ImGuiMod_Shortcut) return (g.IO.ConfigMacOSXBehaviors ? ImGuiKey_ReservedForModSuper : ImGuiKey_ReservedForModCtrl); + return key; + } + + IMGUI_API ImGuiKeyData* GetKeyData(ImGuiContext* ctx, ImGuiKey key); + inline ImGuiKeyData* GetKeyData(ImGuiKey key) { ImGuiContext& g = *GImGui; return GetKeyData(&g, key); } + IMGUI_API void GetKeyChordName(ImGuiKeyChord key_chord, char* out_buf, int out_buf_size); + inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); } + IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); + IMGUI_API ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down); + IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis); + IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); + IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate); + IMGUI_API void SetActiveIdUsingAllKeyboardKeys(); + inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } + + // [EXPERIMENTAL] Low-Level: Key/Input Ownership + // - The idea is that instead of "eating" a given input, we can link to an owner id. + // - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead). + // - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_None (== -1) or a custom ID. + // - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0). + // - Input ownership is automatically released on the frame after a key is released. Therefore: + // - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case). + // - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover). + // - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state. + // - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step. + // Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved. + IMGUI_API ImGuiID GetKeyOwner(ImGuiKey key); + IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetKeyOwnersForKeyChord(ImGuiKeyChord key, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags = 0); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'. + IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id' + inline ImGuiKeyOwnerData* GetKeyOwnerData(ImGuiContext* ctx, ImGuiKey key) { if (key & ImGuiMod_Mask_) key = ConvertSingleModFlagToKey(ctx, key); IM_ASSERT(IsNamedKey(key)); return &ctx->KeysOwnerData[key - ImGuiKey_NamedKey_BEGIN]; } + + // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership + // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag. + // - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0) + // - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'. + // Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease. + // - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API. + IMGUI_API bool IsKeyDown(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsKeyPressed(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0); // Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requiress explicit ImGuiInputFlags_Repeat. + IMGUI_API bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id); + IMGUI_API bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id); + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0); + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id); + + // [EXPERIMENTAL] Shortcut Routing + // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super. + // ImGuiKey_C (accepted by functions taking ImGuiKey or ImGuiKeyChord) + // ImGuiKey_C | ImGuiMod_Ctrl (accepted by functions taking ImGuiKeyChord) + // ONLY ImGuiMod_XXX values are legal to 'OR' with an ImGuiKey. You CANNOT 'OR' two ImGuiKey values. + // - When using one of the routing flags (e.g. ImGuiInputFlags_RouteFocused): routes requested ahead of time given a chord (key + modifiers) and a routing policy. + // - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame. + // - Route is granted to a single owner. When multiple requests are made we have policies to select the winning route. + // - Multiple read sites may use the same owner id and will all get the granted route. + // - For routing: when owner_id is 0 we use the current Focus Scope ID as a default owner in order to identify our location. + IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id = 0, ImGuiInputFlags flags = 0); + IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id); + IMGUI_API ImGuiKeyRoutingData* GetShortcutRoutingData(ImGuiKeyChord key_chord); + + // Docking + // (some functions are only declared in imgui.cpp, see Docking section) + IMGUI_API void DockContextInitialize(ImGuiContext* ctx); + IMGUI_API void DockContextShutdown(ImGuiContext* ctx); + IMGUI_API void DockContextClearNodes(ImGuiContext* ctx, ImGuiID root_id, bool clear_settings_refs); // Use root_id==0 to clear all + IMGUI_API void DockContextRebuildNodes(ImGuiContext* ctx); + IMGUI_API void DockContextNewFrameUpdateUndocking(ImGuiContext* ctx); + IMGUI_API void DockContextNewFrameUpdateDocking(ImGuiContext* ctx); + IMGUI_API void DockContextEndFrame(ImGuiContext* ctx); + IMGUI_API ImGuiID DockContextGenNodeID(ImGuiContext* ctx); + IMGUI_API void DockContextQueueDock(ImGuiContext* ctx, ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload, ImGuiDir split_dir, float split_ratio, bool split_outer); + IMGUI_API void DockContextQueueUndockWindow(ImGuiContext* ctx, ImGuiWindow* window); + IMGUI_API void DockContextQueueUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); + IMGUI_API void DockContextProcessUndockWindow(ImGuiContext* ctx, ImGuiWindow* window, bool clear_persistent_docking_ref = true); + IMGUI_API void DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node); + IMGUI_API bool DockContextCalcDropPosForDocking(ImGuiWindow* target, ImGuiDockNode* target_node, ImGuiWindow* payload_window, ImGuiDockNode* payload_node, ImGuiDir split_dir, bool split_outer, ImVec2* out_pos); + IMGUI_API ImGuiDockNode*DockContextFindNodeByID(ImGuiContext* ctx, ImGuiID id); + IMGUI_API void DockNodeWindowMenuHandler_Default(ImGuiContext* ctx, ImGuiDockNode* node, ImGuiTabBar* tab_bar); + IMGUI_API bool DockNodeBeginAmendTabBar(ImGuiDockNode* node); + IMGUI_API void DockNodeEndAmendTabBar(); + inline ImGuiDockNode* DockNodeGetRootNode(ImGuiDockNode* node) { while (node->ParentNode) node = node->ParentNode; return node; } + inline bool DockNodeIsInHierarchyOf(ImGuiDockNode* node, ImGuiDockNode* parent) { while (node) { if (node == parent) return true; node = node->ParentNode; } return false; } + inline int DockNodeGetDepth(const ImGuiDockNode* node) { int depth = 0; while (node->ParentNode) { node = node->ParentNode; depth++; } return depth; } + inline ImGuiID DockNodeGetWindowMenuButtonId(const ImGuiDockNode* node) { return ImHashStr("#COLLAPSE", 0, node->ID); } + inline ImGuiDockNode* GetWindowDockNode() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DockNode; } + IMGUI_API bool GetWindowAlwaysWantOwnTabBar(ImGuiWindow* window); + IMGUI_API void BeginDocked(ImGuiWindow* window, bool* p_open); + IMGUI_API void BeginDockableDragDropSource(ImGuiWindow* window); + IMGUI_API void BeginDockableDragDropTarget(ImGuiWindow* window); + IMGUI_API void SetWindowDock(ImGuiWindow* window, ImGuiID dock_id, ImGuiCond cond); + + // Docking - Builder function needs to be generally called before the node is used/submitted. + // - The DockBuilderXXX functions are designed to _eventually_ become a public API, but it is too early to expose it and guarantee stability. + // - Do not hold on ImGuiDockNode* pointers! They may be invalidated by any split/merge/remove operation and every frame. + // - To create a DockSpace() node, make sure to set the ImGuiDockNodeFlags_DockSpace flag when calling DockBuilderAddNode(). + // You can create dockspace nodes (attached to a window) _or_ floating nodes (carry its own window) with this API. + // - DockBuilderSplitNode() create 2 child nodes within 1 node. The initial node becomes a parent node. + // - If you intend to split the node immediately after creation using DockBuilderSplitNode(), make sure + // to call DockBuilderSetNodeSize() beforehand. If you don't, the resulting split sizes may not be reliable. + // - Call DockBuilderFinish() after you are done. + IMGUI_API void DockBuilderDockWindow(const char* window_name, ImGuiID node_id); + IMGUI_API ImGuiDockNode*DockBuilderGetNode(ImGuiID node_id); + inline ImGuiDockNode* DockBuilderGetCentralNode(ImGuiID node_id) { ImGuiDockNode* node = DockBuilderGetNode(node_id); if (!node) return NULL; return DockNodeGetRootNode(node)->CentralNode; } + IMGUI_API ImGuiID DockBuilderAddNode(ImGuiID node_id = 0, ImGuiDockNodeFlags flags = 0); + IMGUI_API void DockBuilderRemoveNode(ImGuiID node_id); // Remove node and all its child, undock all windows + IMGUI_API void DockBuilderRemoveNodeDockedWindows(ImGuiID node_id, bool clear_settings_refs = true); + IMGUI_API void DockBuilderRemoveNodeChildNodes(ImGuiID node_id); // Remove all split/hierarchy. All remaining docked windows will be re-docked to the remaining root node (node_id). + IMGUI_API void DockBuilderSetNodePos(ImGuiID node_id, ImVec2 pos); + IMGUI_API void DockBuilderSetNodeSize(ImGuiID node_id, ImVec2 size); + IMGUI_API ImGuiID DockBuilderSplitNode(ImGuiID node_id, ImGuiDir split_dir, float size_ratio_for_node_at_dir, ImGuiID* out_id_at_dir, ImGuiID* out_id_at_opposite_dir); // Create 2 child nodes in this parent node. + IMGUI_API void DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector* in_window_remap_pairs); + IMGUI_API void DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector* out_node_remap_pairs); + IMGUI_API void DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name); + IMGUI_API void DockBuilderFinish(ImGuiID node_id); + + // [EXPERIMENTAL] Focus Scope + // This is generally used to identify a unique input location (for e.g. a selection set) + // There is one per window (automatically set in Begin), but: + // - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set. + // So in order to identify a set multiple lists in same window may each need a focus scope. + // If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope() + // - Shortcut routing also use focus scope as a default location identifier if an owner is not provided. + // We don't use the ID Stack for this as it is common to want them separate. + IMGUI_API void PushFocusScope(ImGuiID id); + IMGUI_API void PopFocusScope(); + inline ImGuiID GetCurrentFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentFocusScopeId; } // Focus scope we are outputting into, set by PushFocusScope() + + // Drag and Drop + IMGUI_API bool IsDragDropActive(); + IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); + IMGUI_API void ClearDragDrop(); + IMGUI_API bool IsDragDropPayloadBeingAccepted(); + IMGUI_API void RenderDragDropTargetRect(const ImRect& bb); + + // Typing-Select API + IMGUI_API ImGuiTypingSelectRequest* GetTypingSelectRequest(ImGuiTypingSelectFlags flags = ImGuiTypingSelectFlags_None); + IMGUI_API int TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx); + IMGUI_API int TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx); + IMGUI_API int TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data); + + // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) + IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); + IMGUI_API void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0); // setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). + IMGUI_API void EndColumns(); // close columns + IMGUI_API void PushColumnClipRect(int column_index); + IMGUI_API void PushColumnsBackground(); + IMGUI_API void PopColumnsBackground(); + IMGUI_API ImGuiID GetColumnsID(const char* str_id, int count); + IMGUI_API ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id); + IMGUI_API float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm); + IMGUI_API float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset); + + // Tables: Candidates for public API + IMGUI_API void TableOpenContextMenu(int column_n = -1); + IMGUI_API void TableSetColumnWidth(int column_n, float width); + IMGUI_API void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs); + IMGUI_API int TableGetHoveredColumn(); // May use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead. Return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. + IMGUI_API int TableGetHoveredRow(); // Retrieve *PREVIOUS FRAME* hovered row. This difference with TableGetHoveredColumn() is the reason why this is not public yet. + IMGUI_API float TableGetHeaderRowHeight(); + IMGUI_API void TablePushBackgroundChannel(); + IMGUI_API void TablePopBackgroundChannel(); + + // Tables: Internals + inline ImGuiTable* GetCurrentTable() { ImGuiContext& g = *GImGui; return g.CurrentTable; } + IMGUI_API ImGuiTable* TableFindByID(ImGuiID id); + IMGUI_API bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f); + IMGUI_API void TableBeginInitMemory(ImGuiTable* table, int columns_count); + IMGUI_API void TableBeginApplyRequests(ImGuiTable* table); + IMGUI_API void TableSetupDrawChannels(ImGuiTable* table); + IMGUI_API void TableUpdateLayout(ImGuiTable* table); + IMGUI_API void TableUpdateBorders(ImGuiTable* table); + IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable* table); + IMGUI_API void TableDrawBorders(ImGuiTable* table); + IMGUI_API void TableDrawContextMenu(ImGuiTable* table); + IMGUI_API bool TableBeginContextMenuPopup(ImGuiTable* table); + IMGUI_API void TableMergeDrawChannels(ImGuiTable* table); + inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) { if (instance_no == 0) return &table->InstanceDataFirst; return &table->InstanceDataExtra[instance_no - 1]; } + inline ImGuiID TableGetInstanceID(ImGuiTable* table, int instance_no) { return TableGetInstanceData(table, instance_no)->TableInstanceID; } + IMGUI_API void TableSortSpecsSanitize(ImGuiTable* table); + IMGUI_API void TableSortSpecsBuild(ImGuiTable* table); + IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column); + IMGUI_API void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column); + IMGUI_API void TableBeginRow(ImGuiTable* table); + IMGUI_API void TableEndRow(ImGuiTable* table); + IMGUI_API void TableBeginCell(ImGuiTable* table, int column_n); + IMGUI_API void TableEndCell(ImGuiTable* table); + IMGUI_API ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n); + IMGUI_API const char* TableGetColumnName(const ImGuiTable* table, int column_n); + IMGUI_API ImGuiID TableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no = 0); + IMGUI_API float TableGetMaxColumnWidth(const ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n); + IMGUI_API void TableSetColumnWidthAutoAll(ImGuiTable* table); + IMGUI_API void TableRemove(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTable* table); + IMGUI_API void TableGcCompactTransientBuffers(ImGuiTableTempData* table); + IMGUI_API void TableGcCompactSettings(); + + // Tables: Settings + IMGUI_API void TableLoadSettings(ImGuiTable* table); + IMGUI_API void TableSaveSettings(ImGuiTable* table); + IMGUI_API void TableResetSettings(ImGuiTable* table); + IMGUI_API ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table); + IMGUI_API void TableSettingsAddSettingsHandler(); + IMGUI_API ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count); + IMGUI_API ImGuiTableSettings* TableSettingsFindByID(ImGuiID id); + + // Tab Bars + inline ImGuiTabBar* GetCurrentTabBar() { ImGuiContext& g = *GImGui; return g.CurrentTabBar; } + IMGUI_API bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags); + IMGUI_API ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API ImGuiTabItem* TabBarFindTabByOrder(ImGuiTabBar* tab_bar, int order); + IMGUI_API ImGuiTabItem* TabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar); + IMGUI_API ImGuiTabItem* TabBarGetCurrentTab(ImGuiTabBar* tab_bar); + inline int TabBarGetTabOrder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) { return tab_bar->Tabs.index_from_ptr(tab); } + IMGUI_API const char* TabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarAddTab(ImGuiTabBar* tab_bar, ImGuiTabItemFlags tab_flags, ImGuiWindow* window); + IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarQueueFocus(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset); + IMGUI_API void TabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, ImVec2 mouse_pos); + IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); + IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window); + IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker); + IMGUI_API ImVec2 TabItemCalcSize(ImGuiWindow* window); + IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); + IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); + + // Render helpers + // AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. + // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) + IMGUI_API void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true); + IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); + IMGUI_API void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); + IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border = true, float rounding = 0.0f); + IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f); + IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0); + IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight + IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. + IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); + + // Render helpers (those functions don't access any ImGui state!) + IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); + IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); + IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); + IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); + IMGUI_API void RenderArrowDockMenu(ImDrawList* draw_list, ImVec2 p_min, float sz, ImU32 col); + IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); + IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding); + IMGUI_API ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold); + + // Widgets + IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); + IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0); + IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); + IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col, ImGuiButtonFlags flags = 0); + IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags, float thickness = 1.0f); + IMGUI_API void SeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_width); + IMGUI_API bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value); + IMGUI_API bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value); + + // Widgets: Window Decorations + IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos); + IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos, ImGuiDockNode* dock_node); + IMGUI_API void Scrollbar(ImGuiAxis axis); + IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags flags); + IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowResizeCornerID(ImGuiWindow* window, int n); // 0..3: corners + IMGUI_API ImGuiID GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir); + + // Widgets low-level behaviors + IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0); + IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); + IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f, ImU32 bg_col = 0); + IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); + IMGUI_API void TreePushOverrideID(ImGuiID id); + IMGUI_API void TreeNodeSetOpen(ImGuiID id, bool open); + IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID id, ImGuiTreeNodeFlags flags); // Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging. + IMGUI_API void SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data); + + // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. + // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). + // e.g. " extern template IMGUI_API float RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, float v); " + template IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); + template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); + template IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value); + + // Data type helpers + IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); + IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); + IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format); + IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); + + // InputText + IMGUI_API bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API void InputTextDeactivateHook(ImGuiID id); + IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); + IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); + inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } + inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active + + // Color + IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); + + // Plot + IMGUI_API int PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2& size_arg); + + // Shade functions (write over already created vertices) + IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); + IMGUI_API void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp); + + // Garbage collection + IMGUI_API void GcCompactTransientMiscBuffers(); + IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); + IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); + + // Debug Log + IMGUI_API void DebugLog(const char* fmt, ...) IM_FMTARGS(1); + IMGUI_API void DebugLogV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Debug Tools + IMGUI_API void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); + IMGUI_API void ErrorCheckUsingSetCursorPosToExtendParentBoundaries(); + IMGUI_API void DebugDrawCursorPos(ImU32 col = IM_COL32(255, 0, 0, 255)); + IMGUI_API void DebugDrawLineExtents(ImU32 col = IM_COL32(255, 0, 0, 255)); + IMGUI_API void DebugDrawItemRect(ImU32 col = IM_COL32(255, 0, 0, 255)); + IMGUI_API void DebugLocateItem(ImGuiID target_id); // Call sparingly: only 1 at the same time! + IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id); // Only call on reaction to a mouse Hover: because only 1 at the same time! + IMGUI_API void DebugLocateItemResolveWithLastItem(); + inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } + IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); + IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end); + IMGUI_API void DebugNodeColumns(ImGuiOldColumns* columns); + IMGUI_API void DebugNodeDockNode(ImGuiDockNode* node, const char* label); + IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label); + IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); + IMGUI_API void DebugNodeFont(ImFont* font); + IMGUI_API void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph); + IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label); + IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); + IMGUI_API void DebugNodeTable(ImGuiTable* table); + IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings* settings); + IMGUI_API void DebugNodeInputTextState(ImGuiInputTextState* state); + IMGUI_API void DebugNodeTypingSelectState(ImGuiTypingSelectState* state); + IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label); + IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings* settings); + IMGUI_API void DebugNodeWindowsList(ImVector* windows, const char* label); + IMGUI_API void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack); + IMGUI_API void DebugNodeViewport(ImGuiViewportP* viewport); + IMGUI_API void DebugRenderKeyboardPreview(ImDrawList* draw_list); + IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb); + + // Obsolete functions +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline void SetItemUsingMouseWheel() { SetItemKeyOwner(ImGuiKey_MouseWheelY); } // Changed in 1.89 + inline bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0) { return TreeNodeUpdateNextOpen(id, flags); } // Renamed in 1.89 + + // Refactored focus/nav/tabbing system in 1.82 and 1.84. If you have old/custom copy-and-pasted widgets that used FocusableItemRegister(): + // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)' + // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_Focused) != 0' + // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (GetItemStatusFlags() & ImGuiItemStatusFlags_FocusedTabbing) != 0 || (g.NavActivateId == id && (g.NavActivateFlags & ImGuiActivateFlags_PreferInput))' (WIP) + // Widget code are simplified as there's no need to call FocusableItemUnregister() while managing the transition from regular widget to TempInputText() + inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) { IM_ASSERT(0); IM_UNUSED(window); IM_UNUSED(id); return false; } // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd() + inline void FocusableItemUnregister(ImGuiWindow* window) { IM_ASSERT(0); IM_UNUSED(window); } // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem +#endif +#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO + inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { IM_ASSERT(IsNamedKey(key)); return IsKeyPressed(key, repeat); } // Removed in 1.87: Mapping from named key is always identity! +#endif + +} // namespace ImGui + + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas internal API +//----------------------------------------------------------------------------- + +// This structure is likely to evolve as we add support for incremental atlas updates +struct ImFontBuilderIO +{ + bool (*FontBuilder_Build)(ImFontAtlas* atlas); +}; + +// Helper for font builder +#ifdef IMGUI_ENABLE_STB_TRUETYPE +IMGUI_API const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype(); +#endif +IMGUI_API void ImFontAtlasUpdateConfigDataPointers(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); +IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); +IMGUI_API void ImFontAtlasBuildFinish(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor); +IMGUI_API void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride); + +//----------------------------------------------------------------------------- +// [SECTION] Test Engine specific hooks (imgui_test_engine) +//----------------------------------------------------------------------------- + +#ifdef IMGUI_ENABLE_TEST_ENGINE +extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, ImGuiID id, const ImRect& bb, const ImGuiLastItemData* item_data); // item_data may be NULL +extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags); +extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt, ...); +extern const char* ImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ctx, ImGuiID id); + +// In IMGUI_VERSION_NUM >= 18934: changed IMGUI_TEST_ENGINE_ITEM_ADD(bb,id) to IMGUI_TEST_ENGINE_ITEM_ADD(id,bb,item_data); +#define IMGUI_TEST_ENGINE_ITEM_ADD(_ID,_BB,_ITEM_DATA) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemAdd(&g, _ID, _BB, _ITEM_DATA) // Register item bounding box +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) +#define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log +#else +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) ((void)0) +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)g) +#endif + +//----------------------------------------------------------------------------- + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/thirdparty/imgui_suite/imgui/include/imstb_rectpack.h b/thirdparty/imgui_suite/imgui/include/imstb_rectpack.h new file mode 100644 index 00000000000..f6917e7a6e5 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/imstb_rectpack.h @@ -0,0 +1,627 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_rect_pack.h 1.01. +// Grep for [DEAR IMGUI] to find the changes. +// +// stb_rect_pack.h - v1.01 - public domain - rectangle packing +// Sean Barrett 2014 +// +// Useful for e.g. packing rectangular textures into an atlas. +// Does not do rotation. +// +// Before #including, +// +// #define STB_RECT_PACK_IMPLEMENTATION +// +// in the file that you want to have the implementation. +// +// Not necessarily the awesomest packing method, but better than +// the totally naive one in stb_truetype (which is primarily what +// this is meant to replace). +// +// Has only had a few tests run, may have issues. +// +// More docs to come. +// +// No memory allocations; uses qsort() and assert() from stdlib. +// Can override those by defining STBRP_SORT and STBRP_ASSERT. +// +// This library currently uses the Skyline Bottom-Left algorithm. +// +// Please note: better rectangle packers are welcome! Please +// implement them to the same API, but with a different init +// function. +// +// Credits +// +// Library +// Sean Barrett +// Minor features +// Martins Mozeiko +// github:IntellectualKitty +// +// Bugfixes / warning fixes +// Jeremy Jaussaud +// Fabian Giesen +// +// Version history: +// +// 1.01 (2021-07-11) always use large rect mode, expose STBRP__MAXVAL in public section +// 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles +// 0.99 (2019-02-07) warning fixes +// 0.11 (2017-03-03) return packing success/fail result +// 0.10 (2016-10-25) remove cast-away-const to avoid warnings +// 0.09 (2016-08-27) fix compiler warnings +// 0.08 (2015-09-13) really fix bug with empty rects (w=0 or h=0) +// 0.07 (2015-09-13) fix bug with empty rects (w=0 or h=0) +// 0.06 (2015-04-15) added STBRP_SORT to allow replacing qsort +// 0.05: added STBRP_ASSERT to allow replacing assert +// 0.04: fixed minor bug in STBRP_LARGE_RECTS support +// 0.01: initial release +// +// LICENSE +// +// See end of file for license information. + +////////////////////////////////////////////////////////////////////////////// +// +// INCLUDE SECTION +// + +#ifndef STB_INCLUDE_STB_RECT_PACK_H +#define STB_INCLUDE_STB_RECT_PACK_H + +#define STB_RECT_PACK_VERSION 1 + +#ifdef STBRP_STATIC +#define STBRP_DEF static +#else +#define STBRP_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct stbrp_context stbrp_context; +typedef struct stbrp_node stbrp_node; +typedef struct stbrp_rect stbrp_rect; + +typedef int stbrp_coord; + +#define STBRP__MAXVAL 0x7fffffff +// Mostly for internal use, but this is the maximum supported coordinate value. + +STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); +// Assign packed locations to rectangles. The rectangles are of type +// 'stbrp_rect' defined below, stored in the array 'rects', and there +// are 'num_rects' many of them. +// +// Rectangles which are successfully packed have the 'was_packed' flag +// set to a non-zero value and 'x' and 'y' store the minimum location +// on each axis (i.e. bottom-left in cartesian coordinates, top-left +// if you imagine y increasing downwards). Rectangles which do not fit +// have the 'was_packed' flag set to 0. +// +// You should not try to access the 'rects' array from another thread +// while this function is running, as the function temporarily reorders +// the array while it executes. +// +// To pack into another rectangle, you need to call stbrp_init_target +// again. To continue packing into the same rectangle, you can call +// this function again. Calling this multiple times with multiple rect +// arrays will probably produce worse packing results than calling it +// a single time with the full rectangle array, but the option is +// available. +// +// The function returns 1 if all of the rectangles were successfully +// packed and 0 otherwise. + +struct stbrp_rect +{ + // reserved for your use: + int id; + + // input: + stbrp_coord w, h; + + // output: + stbrp_coord x, y; + int was_packed; // non-zero if valid packing + +}; // 16 bytes, nominally + + +STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes); +// Initialize a rectangle packer to: +// pack a rectangle that is 'width' by 'height' in dimensions +// using temporary storage provided by the array 'nodes', which is 'num_nodes' long +// +// You must call this function every time you start packing into a new target. +// +// There is no "shutdown" function. The 'nodes' memory must stay valid for +// the following stbrp_pack_rects() call (or calls), but can be freed after +// the call (or calls) finish. +// +// Note: to guarantee best results, either: +// 1. make sure 'num_nodes' >= 'width' +// or 2. call stbrp_allow_out_of_mem() defined below with 'allow_out_of_mem = 1' +// +// If you don't do either of the above things, widths will be quantized to multiples +// of small integers to guarantee the algorithm doesn't run out of temporary storage. +// +// If you do #2, then the non-quantized algorithm will be used, but the algorithm +// may run out of temporary storage and be unable to pack some rectangles. + +STBRP_DEF void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem); +// Optionally call this function after init but before doing any packing to +// change the handling of the out-of-temp-memory scenario, described above. +// If you call init again, this will be reset to the default (false). + + +STBRP_DEF void stbrp_setup_heuristic (stbrp_context *context, int heuristic); +// Optionally select which packing heuristic the library should use. Different +// heuristics will produce better/worse results for different data sets. +// If you call init again, this will be reset to the default. + +enum +{ + STBRP_HEURISTIC_Skyline_default=0, + STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default, + STBRP_HEURISTIC_Skyline_BF_sortHeight +}; + + +////////////////////////////////////////////////////////////////////////////// +// +// the details of the following structures don't matter to you, but they must +// be visible so you can handle the memory allocations for them + +struct stbrp_node +{ + stbrp_coord x,y; + stbrp_node *next; +}; + +struct stbrp_context +{ + int width; + int height; + int align; + int init_mode; + int heuristic; + int num_nodes; + stbrp_node *active_head; + stbrp_node *free_head; + stbrp_node extra[2]; // we allocate two extra nodes so optimal user-node-count is 'width' not 'width+2' +}; + +#ifdef __cplusplus +} +#endif + +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// IMPLEMENTATION SECTION +// + +#ifdef STB_RECT_PACK_IMPLEMENTATION +#ifndef STBRP_SORT +#include +#define STBRP_SORT qsort +#endif + +#ifndef STBRP_ASSERT +#include +#define STBRP_ASSERT assert +#endif + +#ifdef _MSC_VER +#define STBRP__NOTUSED(v) (void)(v) +#define STBRP__CDECL __cdecl +#else +#define STBRP__NOTUSED(v) (void)sizeof(v) +#define STBRP__CDECL +#endif + +enum +{ + STBRP__INIT_skyline = 1 +}; + +STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic) +{ + switch (context->init_mode) { + case STBRP__INIT_skyline: + STBRP_ASSERT(heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight || heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight); + context->heuristic = heuristic; + break; + default: + STBRP_ASSERT(0); + } +} + +STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem) +{ + if (allow_out_of_mem) + // if it's ok to run out of memory, then don't bother aligning them; + // this gives better packing, but may fail due to OOM (even though + // the rectangles easily fit). @TODO a smarter approach would be to only + // quantize once we've hit OOM, then we could get rid of this parameter. + context->align = 1; + else { + // if it's not ok to run out of memory, then quantize the widths + // so that num_nodes is always enough nodes. + // + // I.e. num_nodes * align >= width + // align >= width / num_nodes + // align = ceil(width/num_nodes) + + context->align = (context->width + context->num_nodes-1) / context->num_nodes; + } +} + +STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) +{ + int i; + + for (i=0; i < num_nodes-1; ++i) + nodes[i].next = &nodes[i+1]; + nodes[i].next = NULL; + context->init_mode = STBRP__INIT_skyline; + context->heuristic = STBRP_HEURISTIC_Skyline_default; + context->free_head = &nodes[0]; + context->active_head = &context->extra[0]; + context->width = width; + context->height = height; + context->num_nodes = num_nodes; + stbrp_setup_allow_out_of_mem(context, 0); + + // node 0 is the full width, node 1 is the sentinel (lets us not store width explicitly) + context->extra[0].x = 0; + context->extra[0].y = 0; + context->extra[0].next = &context->extra[1]; + context->extra[1].x = (stbrp_coord) width; + context->extra[1].y = (1<<30); + context->extra[1].next = NULL; +} + +// find minimum y position if it starts at x1 +static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste) +{ + stbrp_node *node = first; + int x1 = x0 + width; + int min_y, visited_width, waste_area; + + STBRP__NOTUSED(c); + + STBRP_ASSERT(first->x <= x0); + + #if 0 + // skip in case we're past the node + while (node->next->x <= x0) + ++node; + #else + STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency + #endif + + STBRP_ASSERT(node->x <= x0); + + min_y = 0; + waste_area = 0; + visited_width = 0; + while (node->x < x1) { + if (node->y > min_y) { + // raise min_y higher. + // we've accounted for all waste up to min_y, + // but we'll now add more waste for everything we've visted + waste_area += visited_width * (node->y - min_y); + min_y = node->y; + // the first time through, visited_width might be reduced + if (node->x < x0) + visited_width += node->next->x - x0; + else + visited_width += node->next->x - node->x; + } else { + // add waste area + int under_width = node->next->x - node->x; + if (under_width + visited_width > width) + under_width = width - visited_width; + waste_area += under_width * (min_y - node->y); + visited_width += under_width; + } + node = node->next; + } + + *pwaste = waste_area; + return min_y; +} + +typedef struct +{ + int x,y; + stbrp_node **prev_link; +} stbrp__findresult; + +static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height) +{ + int best_waste = (1<<30), best_x, best_y = (1 << 30); + stbrp__findresult fr; + stbrp_node **prev, *node, *tail, **best = NULL; + + // align to multiple of c->align + width = (width + c->align - 1); + width -= width % c->align; + STBRP_ASSERT(width % c->align == 0); + + // if it can't possibly fit, bail immediately + if (width > c->width || height > c->height) { + fr.prev_link = NULL; + fr.x = fr.y = 0; + return fr; + } + + node = c->active_head; + prev = &c->active_head; + while (node->x + width <= c->width) { + int y,waste; + y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); + if (c->heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight) { // actually just want to test BL + // bottom left + if (y < best_y) { + best_y = y; + best = prev; + } + } else { + // best-fit + if (y + height <= c->height) { + // can only use it if it first vertically + if (y < best_y || (y == best_y && waste < best_waste)) { + best_y = y; + best_waste = waste; + best = prev; + } + } + } + prev = &node->next; + node = node->next; + } + + best_x = (best == NULL) ? 0 : (*best)->x; + + // if doing best-fit (BF), we also have to try aligning right edge to each node position + // + // e.g, if fitting + // + // ____________________ + // |____________________| + // + // into + // + // | | + // | ____________| + // |____________| + // + // then right-aligned reduces waste, but bottom-left BL is always chooses left-aligned + // + // This makes BF take about 2x the time + + if (c->heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight) { + tail = c->active_head; + node = c->active_head; + prev = &c->active_head; + // find first node that's admissible + while (tail->x < width) + tail = tail->next; + while (tail) { + int xpos = tail->x - width; + int y,waste; + STBRP_ASSERT(xpos >= 0); + // find the left position that matches this + while (node->next->x <= xpos) { + prev = &node->next; + node = node->next; + } + STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); + y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); + if (y + height <= c->height) { + if (y <= best_y) { + if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { + best_x = xpos; + //STBRP_ASSERT(y <= best_y); [DEAR IMGUI] + best_y = y; + best_waste = waste; + best = prev; + } + } + } + tail = tail->next; + } + } + + fr.prev_link = best; + fr.x = best_x; + fr.y = best_y; + return fr; +} + +static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height) +{ + // find best position according to heuristic + stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); + stbrp_node *node, *cur; + + // bail if: + // 1. it failed + // 2. the best node doesn't fit (we don't always check this) + // 3. we're out of memory + if (res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { + res.prev_link = NULL; + return res; + } + + // on success, create new node + node = context->free_head; + node->x = (stbrp_coord) res.x; + node->y = (stbrp_coord) (res.y + height); + + context->free_head = node->next; + + // insert the new node into the right starting point, and + // let 'cur' point to the remaining nodes needing to be + // stiched back in + + cur = *res.prev_link; + if (cur->x < res.x) { + // preserve the existing one, so start testing with the next one + stbrp_node *next = cur->next; + cur->next = node; + cur = next; + } else { + *res.prev_link = node; + } + + // from here, traverse cur and free the nodes, until we get to one + // that shouldn't be freed + while (cur->next && cur->next->x <= res.x + width) { + stbrp_node *next = cur->next; + // move the current node to the free list + cur->next = context->free_head; + context->free_head = cur; + cur = next; + } + + // stitch the list back in + node->next = cur; + + if (cur->x < res.x + width) + cur->x = (stbrp_coord) (res.x + width); + +#ifdef _DEBUG + cur = context->active_head; + while (cur->x < context->width) { + STBRP_ASSERT(cur->x < cur->next->x); + cur = cur->next; + } + STBRP_ASSERT(cur->next == NULL); + + { + int count=0; + cur = context->active_head; + while (cur) { + cur = cur->next; + ++count; + } + cur = context->free_head; + while (cur) { + cur = cur->next; + ++count; + } + STBRP_ASSERT(count == context->num_nodes+2); + } +#endif + + return res; +} + +static int STBRP__CDECL rect_height_compare(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + if (p->h > q->h) + return -1; + if (p->h < q->h) + return 1; + return (p->w > q->w) ? -1 : (p->w < q->w); +} + +static int STBRP__CDECL rect_original_order(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); +} + +STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) +{ + int i, all_rects_packed = 1; + + // we use the 'was_packed' field internally to allow sorting/unsorting + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = i; + } + + // sort according to heuristic + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); + + for (i=0; i < num_rects; ++i) { + if (rects[i].w == 0 || rects[i].h == 0) { + rects[i].x = rects[i].y = 0; // empty rect needs no space + } else { + stbrp__findresult fr = stbrp__skyline_pack_rectangle(context, rects[i].w, rects[i].h); + if (fr.prev_link) { + rects[i].x = (stbrp_coord) fr.x; + rects[i].y = (stbrp_coord) fr.y; + } else { + rects[i].x = rects[i].y = STBRP__MAXVAL; + } + } + } + + // unsort + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); + + // set was_packed flags and all_rects_packed status + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); + if (!rects[i].was_packed) + all_rects_packed = 0; + } + + // return the all_rects_packed status + return all_rects_packed; +} +#endif + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +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. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. +------------------------------------------------------------------------------ +*/ diff --git a/thirdparty/imgui_suite/imgui/include/imstb_textedit.h b/thirdparty/imgui_suite/imgui/include/imstb_textedit.h new file mode 100644 index 00000000000..062d13d6941 --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/imstb_textedit.h @@ -0,0 +1,1440 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_textedit.h 1.14. +// Those changes would need to be pushed into nothings/stb: +// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) +// - Fix in stb_textedit_find_charpos to handle last line (see https://github.com/ocornut/imgui/issues/6000 + #6783) +// Grep for [DEAR IMGUI] to find the changes. + +// stb_textedit.h - v1.14 - public domain - Sean Barrett +// Development of this library was sponsored by RAD Game Tools +// +// This C header file implements the guts of a multi-line text-editing +// widget; you implement display, word-wrapping, and low-level string +// insertion/deletion, and stb_textedit will map user inputs into +// insertions & deletions, plus updates to the cursor position, +// selection state, and undo state. +// +// It is intended for use in games and other systems that need to build +// their own custom widgets and which do not have heavy text-editing +// requirements (this library is not recommended for use for editing large +// texts, as its performance does not scale and it has limited undo). +// +// Non-trivial behaviors are modelled after Windows text controls. +// +// +// LICENSE +// +// See end of file for license information. +// +// +// DEPENDENCIES +// +// Uses the C runtime function 'memmove', which you can override +// by defining STB_TEXTEDIT_memmove before the implementation. +// Uses no other functions. Performs no runtime allocations. +// +// +// VERSION HISTORY +// +// 1.14 (2021-07-11) page up/down, various fixes +// 1.13 (2019-02-07) fix bug in undo size management +// 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash +// 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield +// 1.10 (2016-10-25) supress warnings about casting away const with -Wcast-qual +// 1.9 (2016-08-27) customizable move-by-word +// 1.8 (2016-04-02) better keyboard handling when mouse button is down +// 1.7 (2015-09-13) change y range handling in case baseline is non-0 +// 1.6 (2015-04-15) allow STB_TEXTEDIT_memmove +// 1.5 (2014-09-10) add support for secondary keys for OS X +// 1.4 (2014-08-17) fix signed/unsigned warnings +// 1.3 (2014-06-19) fix mouse clicking to round to nearest char boundary +// 1.2 (2014-05-27) fix some RAD types that had crept into the new code +// 1.1 (2013-12-15) move-by-word (requires STB_TEXTEDIT_IS_SPACE ) +// 1.0 (2012-07-26) improve documentation, initial public release +// 0.3 (2012-02-24) bugfixes, single-line mode; insert mode +// 0.2 (2011-11-28) fixes to undo/redo +// 0.1 (2010-07-08) initial version +// +// ADDITIONAL CONTRIBUTORS +// +// Ulf Winklemann: move-by-word in 1.1 +// Fabian Giesen: secondary key inputs in 1.5 +// Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 +// Louis Schnellbach: page up/down in 1.14 +// +// Bugfixes: +// Scott Graham +// Daniel Keller +// Omar Cornut +// Dan Thompson +// +// USAGE +// +// This file behaves differently depending on what symbols you define +// before including it. +// +// +// Header-file mode: +// +// If you do not define STB_TEXTEDIT_IMPLEMENTATION before including this, +// it will operate in "header file" mode. In this mode, it declares a +// single public symbol, STB_TexteditState, which encapsulates the current +// state of a text widget (except for the string, which you will store +// separately). +// +// To compile in this mode, you must define STB_TEXTEDIT_CHARTYPE to a +// primitive type that defines a single character (e.g. char, wchar_t, etc). +// +// To save space or increase undo-ability, you can optionally define the +// following things that are used by the undo system: +// +// STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// If you don't define these, they are set to permissive types and +// moderate sizes. The undo system does no memory allocations, so +// it grows STB_TexteditState by the worst-case storage which is (in bytes): +// +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATECOUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHARCOUNT +// +// +// Implementation mode: +// +// If you define STB_TEXTEDIT_IMPLEMENTATION before including this, it +// will compile the implementation of the text edit widget, depending +// on a large number of symbols which must be defined before the include. +// +// The implementation is defined only as static functions. You will then +// need to provide your own APIs in the same file which will access the +// static functions. +// +// The basic concept is that you provide a "string" object which +// behaves like an array of characters. stb_textedit uses indices to +// refer to positions in the string, implicitly representing positions +// in the displayed textedit. This is true for both plain text and +// rich text; even with rich text stb_truetype interacts with your +// code as if there was an array of all the displayed characters. +// +// Symbols that must be the same in header-file and implementation mode: +// +// STB_TEXTEDIT_CHARTYPE the character type +// STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// Symbols you must define for implementation mode: +// +// STB_TEXTEDIT_STRING the type of object representing a string being edited, +// typically this is a wrapper object with other data you need +// +// STB_TEXTEDIT_STRINGLEN(obj) the length of the string (ideally O(1)) +// STB_TEXTEDIT_LAYOUTROW(&r,obj,n) returns the results of laying out a line of characters +// starting from character #n (see discussion below) +// STB_TEXTEDIT_GETWIDTH(obj,n,i) returns the pixel delta from the xpos of the i'th character +// to the xpos of the i+1'th char for a line of characters +// starting at character #n (i.e. accounts for kerning +// with previous char) +// STB_TEXTEDIT_KEYTOTEXT(k) maps a keyboard input to an insertable character +// (return type is int, -1 means not valid to insert) +// STB_TEXTEDIT_GETCHAR(obj,i) returns the i'th character of obj, 0-based +// STB_TEXTEDIT_NEWLINE the character returned by _GETCHAR() we recognize +// as manually wordwrapping for end-of-line positioning +// +// STB_TEXTEDIT_DELETECHARS(obj,i,n) delete n characters starting at i +// STB_TEXTEDIT_INSERTCHARS(obj,i,c*,n) insert n characters at i (pointed to by STB_TEXTEDIT_CHARTYPE*) +// +// STB_TEXTEDIT_K_SHIFT a power of two that is or'd in to a keyboard input to represent the shift key +// +// STB_TEXTEDIT_K_LEFT keyboard input to move cursor left +// STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right +// STB_TEXTEDIT_K_UP keyboard input to move cursor up +// STB_TEXTEDIT_K_DOWN keyboard input to move cursor down +// STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a page +// STB_TEXTEDIT_K_PGDOWN keyboard input to move cursor down a page +// STB_TEXTEDIT_K_LINESTART keyboard input to move cursor to start of line // e.g. HOME +// STB_TEXTEDIT_K_LINEEND keyboard input to move cursor to end of line // e.g. END +// STB_TEXTEDIT_K_TEXTSTART keyboard input to move cursor to start of text // e.g. ctrl-HOME +// STB_TEXTEDIT_K_TEXTEND keyboard input to move cursor to end of text // e.g. ctrl-END +// STB_TEXTEDIT_K_DELETE keyboard input to delete selection or character under cursor +// STB_TEXTEDIT_K_BACKSPACE keyboard input to delete selection or character left of cursor +// STB_TEXTEDIT_K_UNDO keyboard input to perform undo +// STB_TEXTEDIT_K_REDO keyboard input to perform redo +// +// Optional: +// STB_TEXTEDIT_K_INSERT keyboard input to toggle insert mode +// STB_TEXTEDIT_IS_SPACE(ch) true if character is whitespace (e.g. 'isspace'), +// required for default WORDLEFT/WORDRIGHT handlers +// STB_TEXTEDIT_MOVEWORDLEFT(obj,i) custom handler for WORDLEFT, returns index to move cursor to +// STB_TEXTEDIT_MOVEWORDRIGHT(obj,i) custom handler for WORDRIGHT, returns index to move cursor to +// STB_TEXTEDIT_K_WORDLEFT keyboard input to move cursor left one word // e.g. ctrl-LEFT +// STB_TEXTEDIT_K_WORDRIGHT keyboard input to move cursor right one word // e.g. ctrl-RIGHT +// STB_TEXTEDIT_K_LINESTART2 secondary keyboard input to move cursor to start of line +// STB_TEXTEDIT_K_LINEEND2 secondary keyboard input to move cursor to end of line +// STB_TEXTEDIT_K_TEXTSTART2 secondary keyboard input to move cursor to start of text +// STB_TEXTEDIT_K_TEXTEND2 secondary keyboard input to move cursor to end of text +// +// Keyboard input must be encoded as a single integer value; e.g. a character code +// and some bitflags that represent shift states. to simplify the interface, SHIFT must +// be a bitflag, so we can test the shifted state of cursor movements to allow selection, +// i.e. (STB_TEXTEDIT_K_RIGHT|STB_TEXTEDIT_K_SHIFT) should be shifted right-arrow. +// +// You can encode other things, such as CONTROL or ALT, in additional bits, and +// then test for their presence in e.g. STB_TEXTEDIT_K_WORDLEFT. For example, +// my Windows implementations add an additional CONTROL bit, and an additional KEYDOWN +// bit. Then all of the STB_TEXTEDIT_K_ values bitwise-or in the KEYDOWN bit, +// and I pass both WM_KEYDOWN and WM_CHAR events to the "key" function in the +// API below. The control keys will only match WM_KEYDOWN events because of the +// keydown bit I add, and STB_TEXTEDIT_KEYTOTEXT only tests for the KEYDOWN +// bit so it only decodes WM_CHAR events. +// +// STB_TEXTEDIT_LAYOUTROW returns information about the shape of one displayed +// row of characters assuming they start on the i'th character--the width and +// the height and the number of characters consumed. This allows this library +// to traverse the entire layout incrementally. You need to compute word-wrapping +// here. +// +// Each textfield keeps its own insert mode state, which is not how normal +// applications work. To keep an app-wide insert mode, update/copy the +// "insert_mode" field of STB_TexteditState before/after calling API functions. +// +// API +// +// void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +// +// void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +// int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +// void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXEDIT_KEYTYPE key) +// +// Each of these functions potentially updates the string and updates the +// state. +// +// initialize_state: +// set the textedit state to a known good default state when initially +// constructing the textedit. +// +// click: +// call this with the mouse x,y on a mouse down; it will update the cursor +// and reset the selection start/end to the cursor point. the x,y must +// be relative to the text widget, with (0,0) being the top left. +// +// drag: +// call this with the mouse x,y on a mouse drag/up; it will update the +// cursor and the selection end point +// +// cut: +// call this to delete the current selection; returns true if there was +// one. you should FIRST copy the current selection to the system paste buffer. +// (To copy, just copy the current selection out of the string yourself.) +// +// paste: +// call this to paste text at the current cursor point or over the current +// selection if there is one. +// +// key: +// call this for keyboard inputs sent to the textfield. you can use it +// for "key down" events or for "translated" key events. if you need to +// do both (as in Win32), or distinguish Unicode characters from control +// inputs, set a high bit to distinguish the two; then you can define the +// various definitions like STB_TEXTEDIT_K_LEFT have the is-key-event bit +// set, and make STB_TEXTEDIT_KEYTOCHAR check that the is-key-event bit is +// clear. STB_TEXTEDIT_KEYTYPE defaults to int, but you can #define it to +// anything other type you wante before including. +// +// +// When rendering, you can read the cursor position and selection state from +// the STB_TexteditState. +// +// +// Notes: +// +// This is designed to be usable in IMGUI, so it allows for the possibility of +// running in an IMGUI that has NOT cached the multi-line layout. For this +// reason, it provides an interface that is compatible with computing the +// layout incrementally--we try to make sure we make as few passes through +// as possible. (For example, to locate the mouse pointer in the text, we +// could define functions that return the X and Y positions of characters +// and binary search Y and then X, but if we're doing dynamic layout this +// will run the layout algorithm many times, so instead we manually search +// forward in one pass. Similar logic applies to e.g. up-arrow and +// down-arrow movement.) +// +// If it's run in a widget that *has* cached the layout, then this is less +// efficient, but it's not horrible on modern computers. But you wouldn't +// want to edit million-line files with it. + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Header-file mode +//// +//// + +#ifndef INCLUDE_STB_TEXTEDIT_H +#define INCLUDE_STB_TEXTEDIT_H + +//////////////////////////////////////////////////////////////////////// +// +// STB_TexteditState +// +// Definition of STB_TexteditState which you should store +// per-textfield; it includes cursor position, selection state, +// and undo state. +// + +#ifndef STB_TEXTEDIT_UNDOSTATECOUNT +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#endif +#ifndef STB_TEXTEDIT_UNDOCHARCOUNT +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#endif +#ifndef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_CHARTYPE int +#endif +#ifndef STB_TEXTEDIT_POSITIONTYPE +#define STB_TEXTEDIT_POSITIONTYPE int +#endif + +typedef struct +{ + // private data + STB_TEXTEDIT_POSITIONTYPE where; + STB_TEXTEDIT_POSITIONTYPE insert_length; + STB_TEXTEDIT_POSITIONTYPE delete_length; + int char_storage; +} StbUndoRecord; + +typedef struct +{ + // private data + StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT]; + STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT]; + short undo_point, redo_point; + int undo_char_point, redo_char_point; +} StbUndoState; + +typedef struct +{ + ///////////////////// + // + // public data + // + + int cursor; + // position of the text cursor within the string + + int select_start; // selection start point + int select_end; + // selection start and end point in characters; if equal, no selection. + // note that start may be less than or greater than end (e.g. when + // dragging the mouse, start is where the initial click was, and you + // can drag in either direction) + + unsigned char insert_mode; + // each textfield keeps its own insert mode state. to keep an app-wide + // insert mode, copy this value in/out of the app state + + int row_count_per_page; + // page size in number of row. + // this value MUST be set to >0 for pageup or pagedown in multilines documents. + + ///////////////////// + // + // private data + // + unsigned char cursor_at_end_of_line; // not implemented yet + unsigned char initialized; + unsigned char has_preferred_x; + unsigned char single_line; + unsigned char padding1, padding2, padding3; + float preferred_x; // this determines where the cursor up/down tries to seek to along x + StbUndoState undostate; +} STB_TexteditState; + + +//////////////////////////////////////////////////////////////////////// +// +// StbTexteditRow +// +// Result of layout query, used by stb_textedit to determine where +// the text in each row is. + +// result of layout query +typedef struct +{ + float x0,x1; // starting x location, end x location (allows for align=right, etc) + float baseline_y_delta; // position of baseline relative to previous row's baseline + float ymin,ymax; // height of row above and below baseline + int num_chars; +} StbTexteditRow; +#endif //INCLUDE_STB_TEXTEDIT_H + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Implementation mode +//// +//// + + +// implementation isn't include-guarded, since it might have indirectly +// included just the "header" portion +#ifdef STB_TEXTEDIT_IMPLEMENTATION + +#ifndef STB_TEXTEDIT_memmove +#include +#define STB_TEXTEDIT_memmove memmove +#endif + + +///////////////////////////////////////////////////////////////////////////// +// +// Mouse input handling +// + +// traverse the layout to locate the nearest character to a display position +static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y) +{ + StbTexteditRow r; + int n = STB_TEXTEDIT_STRINGLEN(str); + float base_y = 0, prev_x; + int i=0, k; + + r.x0 = r.x1 = 0; + r.ymin = r.ymax = 0; + r.num_chars = 0; + + // search rows to find one that straddles 'y' + while (i < n) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (r.num_chars <= 0) + return n; + + if (i==0 && y < base_y + r.ymin) + return 0; + + if (y < base_y + r.ymax) + break; + + i += r.num_chars; + base_y += r.baseline_y_delta; + } + + // below all text, return 'after' last character + if (i >= n) + return n; + + // check if it's before the beginning of the line + if (x < r.x0) + return i; + + // check if it's before the end of the line + if (x < r.x1) { + // search characters in row for one that straddles 'x' + prev_x = r.x0; + for (k=0; k < r.num_chars; ++k) { + float w = STB_TEXTEDIT_GETWIDTH(str, i, k); + if (x < prev_x+w) { + if (x < prev_x+w/2) + return k+i; + else + return k+i+1; + } + prev_x += w; + } + // shouldn't happen, but if it does, fall through to end-of-line case + } + + // if the last character is a newline, return that. otherwise return 'after' the last character + if (STB_TEXTEDIT_GETCHAR(str, i+r.num_chars-1) == STB_TEXTEDIT_NEWLINE) + return i+r.num_chars-1; + else + return i+r.num_chars; +} + +// API click: on mouse down, move the cursor to the clicked location, and reset the selection +static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + state->cursor = stb_text_locate_coord(str, x, y); + state->select_start = state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; +} + +// API drag: on mouse drag, move the cursor and selection endpoint to the clicked location +static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + int p = 0; + + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + if (state->select_start == state->select_end) + state->select_start = state->cursor; + + p = stb_text_locate_coord(str, x, y); + state->cursor = state->select_end = p; +} + +///////////////////////////////////////////////////////////////////////////// +// +// Keyboard input handling +// + +// forward declarations +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length); + +typedef struct +{ + float x,y; // position of n'th character + float height; // height of line + int first_char, length; // first char of row, and length + int prev_first; // first char of previous row +} StbFindState; + +// find the x/y location of a character, and remember info about the previous row in +// case we get a move-up event (for page up, we'll have to rescan) +static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line) +{ + StbTexteditRow r; + int prev_start = 0; + int z = STB_TEXTEDIT_STRINGLEN(str); + int i=0, first; + + if (n == z && single_line) { + // special case if it's at the end (may not be needed?) + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + find->y = 0; + find->first_char = 0; + find->length = z; + find->height = r.ymax - r.ymin; + find->x = r.x1; + return; + } + + // search rows to find the one that straddles character n + find->y = 0; + + for(;;) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (n < i + r.num_chars) + break; + if (i + r.num_chars == z && z > 0 && STB_TEXTEDIT_GETCHAR(str, z - 1) != STB_TEXTEDIT_NEWLINE) // [DEAR IMGUI] special handling for last line + break; // [DEAR IMGUI] + prev_start = i; + i += r.num_chars; + find->y += r.baseline_y_delta; + if (i == z) // [DEAR IMGUI] + { + r.num_chars = 0; // [DEAR IMGUI] + break; // [DEAR IMGUI] + } + } + + find->first_char = first = i; + find->length = r.num_chars; + find->height = r.ymax - r.ymin; + find->prev_first = prev_start; + + // now scan to find xpos + find->x = r.x0; + for (i=0; first+i < n; ++i) + find->x += STB_TEXTEDIT_GETWIDTH(str, first, i); +} + +#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) + +// make the selection/cursor state valid if client altered the string +static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + int n = STB_TEXTEDIT_STRINGLEN(str); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start > n) state->select_start = n; + if (state->select_end > n) state->select_end = n; + // if clamping forced them to be equal, move the cursor to match + if (state->select_start == state->select_end) + state->cursor = state->select_start; + } + if (state->cursor > n) state->cursor = n; +} + +// delete characters while updating undo +static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len) +{ + stb_text_makeundo_delete(str, state, where, len); + STB_TEXTEDIT_DELETECHARS(str, where, len); + state->has_preferred_x = 0; +} + +// delete the section +static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + stb_textedit_clamp(str, state); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start < state->select_end) { + stb_textedit_delete(str, state, state->select_start, state->select_end - state->select_start); + state->select_end = state->cursor = state->select_start; + } else { + stb_textedit_delete(str, state, state->select_end, state->select_start - state->select_end); + state->select_start = state->cursor = state->select_end; + } + state->has_preferred_x = 0; + } +} + +// canoncialize the selection so start <= end +static void stb_textedit_sortselection(STB_TexteditState *state) +{ + if (state->select_end < state->select_start) { + int temp = state->select_end; + state->select_end = state->select_start; + state->select_start = temp; + } +} + +// move cursor to first character of selection +static void stb_textedit_move_to_first(STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + state->cursor = state->select_start; + state->select_end = state->select_start; + state->has_preferred_x = 0; + } +} + +// move cursor to last character of selection +static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->select_start = state->select_end; + state->has_preferred_x = 0; + } +} + +#ifdef STB_TEXTEDIT_IS_SPACE +static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx ) +{ + return idx > 0 ? (STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str,idx-1) ) && !STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str, idx) ) ) : 1; +} + +#ifndef STB_TEXTEDIT_MOVEWORDLEFT +static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c ) +{ + --c; // always move at least one character + while( c >= 0 && !is_word_boundary( str, c ) ) + --c; + + if( c < 0 ) + c = 0; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous +#endif + +#ifndef STB_TEXTEDIT_MOVEWORDRIGHT +static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c ) +{ + const int len = STB_TEXTEDIT_STRINGLEN(str); + ++c; // always move at least one character + while( c < len && !is_word_boundary( str, c ) ) + ++c; + + if( c > len ) + c = len; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next +#endif + +#endif + +// update selection and cursor to match each other +static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state) +{ + if (!STB_TEXT_HAS_SELECTION(state)) + state->select_start = state->select_end = state->cursor; + else + state->cursor = state->select_end; +} + +// API cut: delete selection +static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_delete_selection(str,state); // implicitly clamps + state->has_preferred_x = 0; + return 1; + } + return 0; +} + +// API paste: replace existing selection with passed-in text +static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +{ + // if there's a selection, the paste should delete it + stb_textedit_clamp(str, state); + stb_textedit_delete_selection(str,state); + // try to insert the characters + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, text, len)) { + stb_text_makeundo_insert(state, state->cursor, len); + state->cursor += len; + state->has_preferred_x = 0; + return 1; + } + // note: paste failure will leave deleted selection, may be restored with an undo (see https://github.com/nothings/stb/issues/734 for details) + return 0; +} + +#ifndef STB_TEXTEDIT_KEYTYPE +#define STB_TEXTEDIT_KEYTYPE int +#endif + +// API key: process a keyboard input +static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key) +{ +retry: + switch (key) { + default: { + int c = STB_TEXTEDIT_KEYTOTEXT(key); + if (c > 0) { + STB_TEXTEDIT_CHARTYPE ch = (STB_TEXTEDIT_CHARTYPE) c; + + // can't add newline in single-line mode + if (c == '\n' && state->single_line) + break; + + if (state->insert_mode && !STB_TEXT_HAS_SELECTION(state) && state->cursor < STB_TEXTEDIT_STRINGLEN(str)) { + stb_text_makeundo_replace(str, state, state->cursor, 1, 1); + STB_TEXTEDIT_DELETECHARS(str, state->cursor, 1); + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + ++state->cursor; + state->has_preferred_x = 0; + } + } else { + stb_textedit_delete_selection(str,state); // implicitly clamps + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + stb_text_makeundo_insert(state, state->cursor, 1); + ++state->cursor; + state->has_preferred_x = 0; + } + } + } + break; + } + +#ifdef STB_TEXTEDIT_K_INSERT + case STB_TEXTEDIT_K_INSERT: + state->insert_mode = !state->insert_mode; + break; +#endif + + case STB_TEXTEDIT_K_UNDO: + stb_text_undo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_REDO: + stb_text_redo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT: + // if currently there's a selection, move cursor to start of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else + if (state->cursor > 0) + --state->cursor; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_RIGHT: + // if currently there's a selection, move cursor to end of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else + ++state->cursor; + stb_textedit_clamp(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + // move selection left + if (state->select_end > 0) + --state->select_end; + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_MOVEWORDLEFT + case STB_TEXTEDIT_K_WORDLEFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + +#ifdef STB_TEXTEDIT_MOVEWORDRIGHT + case STB_TEXTEDIT_K_WORDRIGHT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + + case STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + // move selection right + ++state->select_end; + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_DOWN: + case STB_TEXTEDIT_K_DOWN | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGDOWN: + case STB_TEXTEDIT_K_PGDOWN | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGDOWN; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down in single-line behave like left&right + key = STB_TEXTEDIT_K_RIGHT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + int start = find.first_char + find.length; + + if (find.length == 0) + break; + + // [DEAR IMGUI] + // going down while being on the last line shouldn't bring us to that line end + if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE) + break; + + // now find character position down a row + state->cursor = start; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, start, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to next line + find.first_char = find.first_char + find.length; + find.length = row.num_chars; + } + break; + } + + case STB_TEXTEDIT_K_UP: + case STB_TEXTEDIT_K_UP | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGUP: + case STB_TEXTEDIT_K_PGUP | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, prev_scan, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGUP; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down become left&right + key = STB_TEXTEDIT_K_LEFT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + + // can only go up if there's a previous row + if (find.prev_first == find.first_char) + break; + + // now find character position up a row + state->cursor = find.prev_first; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, find.prev_first, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to previous line + // (we need to scan previous line the hard way. maybe we could expose this as a new API function?) + prev_scan = find.prev_first > 0 ? find.prev_first - 1 : 0; + while (prev_scan > 0 && STB_TEXTEDIT_GETCHAR(str, prev_scan - 1) != STB_TEXTEDIT_NEWLINE) + --prev_scan; + find.first_char = find.prev_first; + find.prev_first = prev_scan; + } + break; + } + + case STB_TEXTEDIT_K_DELETE: + case STB_TEXTEDIT_K_DELETE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + int n = STB_TEXTEDIT_STRINGLEN(str); + if (state->cursor < n) + stb_textedit_delete(str, state, state->cursor, 1); + } + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_BACKSPACE: + case STB_TEXTEDIT_K_BACKSPACE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + stb_textedit_clamp(str, state); + if (state->cursor > 0) { + stb_textedit_delete(str, state, state->cursor-1, 1); + --state->cursor; + } + } + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2: +#endif + case STB_TEXTEDIT_K_TEXTSTART: + state->cursor = state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2: +#endif + case STB_TEXTEDIT_K_TEXTEND: + state->cursor = STB_TEXTEDIT_STRINGLEN(str); + state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTSTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTEND | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = STB_TEXTEDIT_STRINGLEN(str); + state->has_preferred_x = 0; + break; + + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2: +#endif + case STB_TEXTEDIT_K_LINESTART: + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2: +#endif + case STB_TEXTEDIT_K_LINEEND: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->has_preferred_x = 0; + break; + } + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + } + } +} + +///////////////////////////////////////////////////////////////////////////// +// +// Undo processing +// +// @OPTIMIZE: the undo/redo buffer should be circular + +static void stb_textedit_flush_redo(StbUndoState *state) +{ + state->redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; +} + +// discard the oldest entry in the undo list +static void stb_textedit_discard_undo(StbUndoState *state) +{ + if (state->undo_point > 0) { + // if the 0th undo state has characters, clean those up + if (state->undo_rec[0].char_storage >= 0) { + int n = state->undo_rec[0].insert_length, i; + // delete n characters from all other records + state->undo_char_point -= n; + STB_TEXTEDIT_memmove(state->undo_char, state->undo_char + n, (size_t) (state->undo_char_point*sizeof(STB_TEXTEDIT_CHARTYPE))); + for (i=0; i < state->undo_point; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage -= n; // @OPTIMIZE: get rid of char_storage and infer it + } + --state->undo_point; + STB_TEXTEDIT_memmove(state->undo_rec, state->undo_rec+1, (size_t) (state->undo_point*sizeof(state->undo_rec[0]))); + } +} + +// discard the oldest entry in the redo list--it's bad if this +// ever happens, but because undo & redo have to store the actual +// characters in different cases, the redo character buffer can +// fill up even though the undo buffer didn't +static void stb_textedit_discard_redo(StbUndoState *state) +{ + int k = STB_TEXTEDIT_UNDOSTATECOUNT-1; + + if (state->redo_point <= k) { + // if the k'th undo state has characters, clean those up + if (state->undo_rec[k].char_storage >= 0) { + int n = state->undo_rec[k].insert_length, i; + // move the remaining redo character data to the end of the buffer + state->redo_char_point += n; + STB_TEXTEDIT_memmove(state->undo_char + state->redo_char_point, state->undo_char + state->redo_char_point-n, (size_t) ((STB_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point)*sizeof(STB_TEXTEDIT_CHARTYPE))); + // adjust the position of all the other records to account for above memmove + for (i=state->redo_point; i < k; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage += n; + } + // now move all the redo records towards the end of the buffer; the first one is at 'redo_point' + // [DEAR IMGUI] + size_t move_size = (size_t)((STB_TEXTEDIT_UNDOSTATECOUNT - state->redo_point - 1) * sizeof(state->undo_rec[0])); + const char* buf_begin = (char*)state->undo_rec; (void)buf_begin; + const char* buf_end = (char*)state->undo_rec + sizeof(state->undo_rec); (void)buf_end; + IM_ASSERT(((char*)(state->undo_rec + state->redo_point)) >= buf_begin); + IM_ASSERT(((char*)(state->undo_rec + state->redo_point + 1) + move_size) <= buf_end); + STB_TEXTEDIT_memmove(state->undo_rec + state->redo_point+1, state->undo_rec + state->redo_point, move_size); + + // now move redo_point to point to the new one + ++state->redo_point; + } +} + +static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) +{ + // any time we create a new undo record, we discard redo + stb_textedit_flush_redo(state); + + // if we have no free records, we have to make room, by sliding the + // existing records down + if (state->undo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + stb_textedit_discard_undo(state); + + // if the characters to store won't possibly fit in the buffer, we can't undo + if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { + state->undo_point = 0; + state->undo_char_point = 0; + return NULL; + } + + // if we don't have enough free characters in the buffer, we have to make room + while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) + stb_textedit_discard_undo(state); + + return &state->undo_rec[state->undo_point++]; +} + +static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len) +{ + StbUndoRecord *r = stb_text_create_undo_record(state, insert_len); + if (r == NULL) + return NULL; + + r->where = pos; + r->insert_length = (STB_TEXTEDIT_POSITIONTYPE) insert_len; + r->delete_length = (STB_TEXTEDIT_POSITIONTYPE) delete_len; + + if (insert_len == 0) { + r->char_storage = -1; + return NULL; + } else { + r->char_storage = state->undo_char_point; + state->undo_char_point += insert_len; + return &state->undo_char[r->char_storage]; + } +} + +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord u, *r; + if (s->undo_point == 0) + return; + + // we need to do two things: apply the undo record, and create a redo record + u = s->undo_rec[s->undo_point-1]; + r = &s->undo_rec[s->redo_point-1]; + r->char_storage = -1; + + r->insert_length = u.delete_length; + r->delete_length = u.insert_length; + r->where = u.where; + + if (u.delete_length) { + // if the undo record says to delete characters, then the redo record will + // need to re-insert the characters that get deleted, so we need to store + // them. + + // there are three cases: + // there's enough room to store the characters + // characters stored for *redoing* don't leave room for redo + // characters stored for *undoing* don't leave room for redo + // if the last is true, we have to bail + + if (s->undo_char_point + u.delete_length >= STB_TEXTEDIT_UNDOCHARCOUNT) { + // the undo records take up too much character space; there's no space to store the redo characters + r->insert_length = 0; + } else { + int i; + + // there's definitely room to store the characters eventually + while (s->undo_char_point + u.delete_length > s->redo_char_point) { + // should never happen: + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + // there's currently not enough room, so discard a redo record + stb_textedit_discard_redo(s); + } + r = &s->undo_rec[s->redo_point-1]; + + r->char_storage = s->redo_char_point - u.delete_length; + s->redo_char_point = s->redo_char_point - u.delete_length; + + // now save the characters + for (i=0; i < u.delete_length; ++i) + s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i); + } + + // now we can carry out the deletion + STB_TEXTEDIT_DELETECHARS(str, u.where, u.delete_length); + } + + // check type of recorded action: + if (u.insert_length) { + // easy case: was a deletion, so we need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length); + s->undo_char_point -= u.insert_length; + } + + state->cursor = u.where + u.insert_length; + + s->undo_point--; + s->redo_point--; +} + +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord *u, r; + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + + // we need to do two things: apply the redo record, and create an undo record + u = &s->undo_rec[s->undo_point]; + r = s->undo_rec[s->redo_point]; + + // we KNOW there must be room for the undo record, because the redo record + // was derived from an undo record + + u->delete_length = r.insert_length; + u->insert_length = r.delete_length; + u->where = r.where; + u->char_storage = -1; + + if (r.delete_length) { + // the redo record requires us to delete characters, so the undo record + // needs to store the characters + + if (s->undo_char_point + u->insert_length > s->redo_char_point) { + u->insert_length = 0; + u->delete_length = 0; + } else { + int i; + u->char_storage = s->undo_char_point; + s->undo_char_point = s->undo_char_point + u->insert_length; + + // now save the characters + for (i=0; i < u->insert_length; ++i) + s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i); + } + + STB_TEXTEDIT_DELETECHARS(str, r.where, r.delete_length); + } + + if (r.insert_length) { + // easy case: need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length); + s->redo_char_point += r.insert_length; + } + + state->cursor = r.where + r.insert_length; + + s->undo_point++; + s->redo_point++; +} + +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length) +{ + stb_text_createundo(&state->undostate, where, 0, length); +} + +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, length, 0); + if (p) { + for (i=0; i < length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, old_length, new_length); + if (p) { + for (i=0; i < old_length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +// reset the state to default +static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line) +{ + state->undostate.undo_point = 0; + state->undostate.undo_char_point = 0; + state->undostate.redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->undostate.redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; + state->select_end = state->select_start = 0; + state->cursor = 0; + state->has_preferred_x = 0; + state->preferred_x = 0; + state->cursor_at_end_of_line = 0; + state->initialized = 1; + state->single_line = (unsigned char) is_single_line; + state->insert_mode = 0; + state->row_count_per_page = 0; +} + +// API initialize +static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +{ + stb_textedit_clear_state(state, is_single_line); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len) +{ + return stb_textedit_paste_internal(str, state, (STB_TEXTEDIT_CHARTYPE *) ctext, len); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif//STB_TEXTEDIT_IMPLEMENTATION + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +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. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. +------------------------------------------------------------------------------ +*/ diff --git a/thirdparty/imgui_suite/imgui/include/imstb_truetype.h b/thirdparty/imgui_suite/imgui/include/imstb_truetype.h new file mode 100644 index 00000000000..35c827e6b9e --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/imstb_truetype.h @@ -0,0 +1,5085 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_truetype.h 1.26. +// Mostly fixing for compiler and static analyzer warnings. +// Grep for [DEAR IMGUI] to find the changes. + +// stb_truetype.h - v1.26 - public domain +// authored from 2009-2021 by Sean Barrett / RAD Game Tools +// +// ======================================================================= +// +// NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES +// +// This library does no range checking of the offsets found in the file, +// meaning an attacker can use it to read arbitrary memory. +// +// ======================================================================= +// +// This library processes TrueType files: +// parse files +// extract glyph metrics +// extract glyph shapes +// render glyphs to one-channel bitmaps with antialiasing (box filter) +// render glyphs to one-channel SDF bitmaps (signed-distance field/function) +// +// Todo: +// non-MS cmaps +// crashproof on bad data +// hinting? (no longer patented) +// cleartype-style AA? +// optimize: use simple memory allocator for intermediates +// optimize: build edge-list directly from curves +// optimize: rasterize directly from curves? +// +// ADDITIONAL CONTRIBUTORS +// +// Mikko Mononen: compound shape support, more cmap formats +// Tor Andersson: kerning, subpixel rendering +// Dougall Johnson: OpenType / Type 2 font handling +// Daniel Ribeiro Maciel: basic GPOS-based kerning +// +// Misc other: +// Ryan Gordon +// Simon Glass +// github:IntellectualKitty +// Imanol Celaya +// Daniel Ribeiro Maciel +// +// Bug/warning reports/fixes: +// "Zer" on mollyrocket Fabian "ryg" Giesen github:NiLuJe +// Cass Everitt Martins Mozeiko github:aloucks +// stoiko (Haemimont Games) Cap Petschulat github:oyvindjam +// Brian Hook Omar Cornut github:vassvik +// Walter van Niftrik Ryan Griege +// David Gow Peter LaValle +// David Given Sergey Popov +// Ivan-Assen Ivanov Giumo X. Clanjor +// Anthony Pesch Higor Euripedes +// Johan Duparc Thomas Fields +// Hou Qiming Derek Vinyard +// Rob Loach Cort Stratton +// Kenney Phillis Jr. Brian Costabile +// Ken Voskuil (kaesve) +// +// VERSION HISTORY +// +// 1.26 (2021-08-28) fix broken rasterizer +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) GPOS kerning, STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) user-defined fabs(); rare memory leak; remove duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use allocation userdata properly +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// variant PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// +// Full history can be found at the end of this file. +// +// LICENSE +// +// See end of file for license information. +// +// USAGE +// +// Include this file in whatever places need to refer to it. In ONE C/C++ +// file, write: +// #define STB_TRUETYPE_IMPLEMENTATION +// before the #include of this file. This expands out the actual +// implementation into that C/C++ file. +// +// To make the implementation private to the file that generates the implementation, +// #define STBTT_STATIC +// +// Simple 3D API (don't ship this, but it's fine for tools and quick start) +// stbtt_BakeFontBitmap() -- bake a font to a bitmap for use as texture +// stbtt_GetBakedQuad() -- compute quad to draw for a given char +// +// Improved 3D API (more shippable): +// #include "stb_rect_pack.h" -- optional, but you really want it +// stbtt_PackBegin() +// stbtt_PackSetOversampling() -- for improved quality on small fonts +// stbtt_PackFontRanges() -- pack and renders +// stbtt_PackEnd() +// stbtt_GetPackedQuad() +// +// "Load" a font file from a memory buffer (you have to keep the buffer loaded) +// stbtt_InitFont() +// stbtt_GetFontOffsetForIndex() -- indexing for TTC font collections +// stbtt_GetNumberOfFonts() -- number of fonts for TTC font collections +// +// Render a unicode codepoint to a bitmap +// stbtt_GetCodepointBitmap() -- allocates and returns a bitmap +// stbtt_MakeCodepointBitmap() -- renders into bitmap you provide +// stbtt_GetCodepointBitmapBox() -- how big the bitmap must be +// +// Character advance/positioning +// stbtt_GetCodepointHMetrics() +// stbtt_GetFontVMetrics() +// stbtt_GetFontVMetricsOS2() +// stbtt_GetCodepointKernAdvance() +// +// Starting with version 1.06, the rasterizer was replaced with a new, +// faster and generally-more-precise rasterizer. The new rasterizer more +// accurately measures pixel coverage for anti-aliasing, except in the case +// where multiple shapes overlap, in which case it overestimates the AA pixel +// coverage. Thus, anti-aliasing of intersecting shapes may look wrong. If +// this turns out to be a problem, you can re-enable the old rasterizer with +// #define STBTT_RASTERIZER_VERSION 1 +// which will incur about a 15% speed hit. +// +// ADDITIONAL DOCUMENTATION +// +// Immediately after this block comment are a series of sample programs. +// +// After the sample programs is the "header file" section. This section +// includes documentation for each API function. +// +// Some important concepts to understand to use this library: +// +// Codepoint +// Characters are defined by unicode codepoints, e.g. 65 is +// uppercase A, 231 is lowercase c with a cedilla, 0x7e30 is +// the hiragana for "ma". +// +// Glyph +// A visual character shape (every codepoint is rendered as +// some glyph) +// +// Glyph index +// A font-specific integer ID representing a glyph +// +// Baseline +// Glyph shapes are defined relative to a baseline, which is the +// bottom of uppercase characters. Characters extend both above +// and below the baseline. +// +// Current Point +// As you draw text to the screen, you keep track of a "current point" +// which is the origin of each character. The current point's vertical +// position is the baseline. Even "baked fonts" use this model. +// +// Vertical Font Metrics +// The vertical qualities of the font, used to vertically position +// and space the characters. See docs for stbtt_GetFontVMetrics. +// +// Font Size in Pixels or Points +// The preferred interface for specifying font sizes in stb_truetype +// is to specify how tall the font's vertical extent should be in pixels. +// If that sounds good enough, skip the next paragraph. +// +// Most font APIs instead use "points", which are a common typographic +// measurement for describing font size, defined as 72 points per inch. +// stb_truetype provides a point API for compatibility. However, true +// "per inch" conventions don't make much sense on computer displays +// since different monitors have different number of pixels per +// inch. For example, Windows traditionally uses a convention that +// there are 96 pixels per inch, thus making 'inch' measurements have +// nothing to do with inches, and thus effectively defining a point to +// be 1.333 pixels. Additionally, the TrueType font data provides +// an explicit scale factor to scale a given font's glyphs to points, +// but the author has observed that this scale factor is often wrong +// for non-commercial fonts, thus making fonts scaled in points +// according to the TrueType spec incoherently sized in practice. +// +// DETAILED USAGE: +// +// Scale: +// Select how high you want the font to be, in points or pixels. +// Call ScaleForPixelHeight or ScaleForMappingEmToPixels to compute +// a scale factor SF that will be used by all other functions. +// +// Baseline: +// You need to select a y-coordinate that is the baseline of where +// your text will appear. Call GetFontBoundingBox to get the baseline-relative +// bounding box for all characters. SF*-y0 will be the distance in pixels +// that the worst-case character could extend above the baseline, so if +// you want the top edge of characters to appear at the top of the +// screen where y=0, then you would set the baseline to SF*-y0. +// +// Current point: +// Set the current point where the first character will appear. The +// first character could extend left of the current point; this is font +// dependent. You can either choose a current point that is the leftmost +// point and hope, or add some padding, or check the bounding box or +// left-side-bearing of the first character to be displayed and set +// the current point based on that. +// +// Displaying a character: +// Compute the bounding box of the character. It will contain signed values +// relative to . I.e. if it returns x0,y0,x1,y1, +// then the character should be displayed in the rectangle from +// to = 32 && *text < 128) { + stbtt_aligned_quad q; + stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 + glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y0); + glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y0); + glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y1); + glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y1); + } + ++text; + } + glEnd(); +} +#endif +// +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program (this compiles): get a single bitmap, print as ASCII art +// +#if 0 +#include +#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation +#include "stb_truetype.h" + +char ttf_buffer[1<<25]; + +int main(int argc, char **argv) +{ + stbtt_fontinfo font; + unsigned char *bitmap; + int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20); + + fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/arialbd.ttf", "rb")); + + stbtt_InitFont(&font, ttf_buffer, stbtt_GetFontOffsetForIndex(ttf_buffer,0)); + bitmap = stbtt_GetCodepointBitmap(&font, 0,stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0,0); + + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) + putchar(" .:ioVM@"[bitmap[j*w+i]>>5]); + putchar('\n'); + } + return 0; +} +#endif +// +// Output: +// +// .ii. +// @@@@@@. +// V@Mio@@o +// :i. V@V +// :oM@@M +// :@@@MM@M +// @@o o@M +// :@@. M@M +// @@@o@@@@ +// :M@@V:@@. +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program: print "Hello World!" banner, with bugs +// +#if 0 +char buffer[24<<20]; +unsigned char screen[20][79]; + +int main(int arg, char **argv) +{ + stbtt_fontinfo font; + int i,j,ascent,baseline,ch=0; + float scale, xpos=2; // leave a little padding in case the character extends left + char *text = "Heljo World!"; // intentionally misspelled to show 'lj' brokenness + + fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb")); + stbtt_InitFont(&font, buffer, 0); + + scale = stbtt_ScaleForPixelHeight(&font, 15); + stbtt_GetFontVMetrics(&font, &ascent,0,0); + baseline = (int) (ascent*scale); + + while (text[ch]) { + int advance,lsb,x0,y0,x1,y1; + float x_shift = xpos - (float) floor(xpos); + stbtt_GetCodepointHMetrics(&font, text[ch], &advance, &lsb); + stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale,scale,x_shift,0, &x0,&y0,&x1,&y1); + stbtt_MakeCodepointBitmapSubpixel(&font, &screen[baseline + y0][(int) xpos + x0], x1-x0,y1-y0, 79, scale,scale,x_shift,0, text[ch]); + // note that this stomps the old data, so where character boxes overlap (e.g. 'lj') it's wrong + // because this API is really for baking character bitmaps into textures. if you want to render + // a sequence of characters, you really need to render each bitmap to a temp buffer, then + // "alpha blend" that into the working buffer + xpos += (advance * scale); + if (text[ch+1]) + xpos += scale*stbtt_GetCodepointKernAdvance(&font, text[ch],text[ch+1]); + ++ch; + } + + for (j=0; j < 20; ++j) { + for (i=0; i < 78; ++i) + putchar(" .:ioVM@"[screen[j][i]>>5]); + putchar('\n'); + } + + return 0; +} +#endif + + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// +//// +//// INTEGRATION WITH YOUR CODEBASE +//// +//// The following sections allow you to supply alternate definitions +//// of C library functions used by stb_truetype, e.g. if you don't +//// link with the C runtime library. + +#ifdef STB_TRUETYPE_IMPLEMENTATION + // #define your own (u)stbtt_int8/16/32 before including to override this + #ifndef stbtt_uint8 + typedef unsigned char stbtt_uint8; + typedef signed char stbtt_int8; + typedef unsigned short stbtt_uint16; + typedef signed short stbtt_int16; + typedef unsigned int stbtt_uint32; + typedef signed int stbtt_int32; + #endif + + typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1]; + typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1]; + + // e.g. #define your own STBTT_ifloor/STBTT_iceil() to avoid math.h + #ifndef STBTT_ifloor + #include + #define STBTT_ifloor(x) ((int) floor(x)) + #define STBTT_iceil(x) ((int) ceil(x)) + #endif + + #ifndef STBTT_sqrt + #include + #define STBTT_sqrt(x) sqrt(x) + #define STBTT_pow(x,y) pow(x,y) + #endif + + #ifndef STBTT_fmod + #include + #define STBTT_fmod(x,y) fmod(x,y) + #endif + + #ifndef STBTT_cos + #include + #define STBTT_cos(x) cos(x) + #define STBTT_acos(x) acos(x) + #endif + + #ifndef STBTT_fabs + #include + #define STBTT_fabs(x) fabs(x) + #endif + + // #define your own functions "STBTT_malloc" / "STBTT_free" to avoid malloc.h + #ifndef STBTT_malloc + #include + #define STBTT_malloc(x,u) ((void)(u),malloc(x)) + #define STBTT_free(x,u) ((void)(u),free(x)) + #endif + + #ifndef STBTT_assert + #include + #define STBTT_assert(x) assert(x) + #endif + + #ifndef STBTT_strlen + #include + #define STBTT_strlen(x) strlen(x) + #endif + + #ifndef STBTT_memcpy + #include + #define STBTT_memcpy memcpy + #define STBTT_memset memset + #endif +#endif + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// INTERFACE +//// +//// + +#ifndef __STB_INCLUDE_STB_TRUETYPE_H__ +#define __STB_INCLUDE_STB_TRUETYPE_H__ + +#ifdef STBTT_STATIC +#define STBTT_DEF static +#else +#define STBTT_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// private structure +typedef struct +{ + unsigned char *data; + int cursor; + int size; +} stbtt__buf; + +////////////////////////////////////////////////////////////////////////////// +// +// TEXTURE BAKING API +// +// If you use this API, you only have to call two functions ever. +// + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; +} stbtt_bakedchar; + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata); // you allocate this, it's num_chars long +// if return is positive, the first unused row of the bitmap +// if return is negative, returns the negative of the number of characters that fit +// if return is 0, no characters fit and no rows were used +// This uses a very crappy packing. + +typedef struct +{ + float x0,y0,s0,t0; // top-left + float x1,y1,s1,t1; // bottom-right +} stbtt_aligned_quad; + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int opengl_fillrule); // true if opengl fill rule; false if DX9 or earlier +// Call GetBakedQuad with char_index = 'character - first_char', and it +// creates the quad you need to draw and advances the current position. +// +// The coordinate system used assumes y increases downwards. +// +// Characters will extend both above and below the current position; +// see discussion of "BASELINE" above. +// +// It's inefficient; you might want to c&p it and optimize it. + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap); +// Query the font vertical metrics without having to create a font first. + + +////////////////////////////////////////////////////////////////////////////// +// +// NEW TEXTURE BAKING API +// +// This provides options for packing multiple fonts into one atlas, not +// perfectly but better than nothing. + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; + float xoff2,yoff2; +} stbtt_packedchar; + +typedef struct stbtt_pack_context stbtt_pack_context; +typedef struct stbtt_fontinfo stbtt_fontinfo; +#ifndef STB_RECT_PACK_VERSION +typedef struct stbrp_rect stbrp_rect; +#endif + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context); +// Initializes a packing context stored in the passed-in stbtt_pack_context. +// Future calls using this context will pack characters into the bitmap passed +// in here: a 1-channel bitmap that is width * height. stride_in_bytes is +// the distance from one row to the next (or 0 to mean they are packed tightly +// together). "padding" is the amount of padding to leave between each +// character (normally you want '1' for bitmaps you'll use as textures with +// bilinear filtering). +// +// Returns 0 on failure, 1 on success. + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc); +// Cleans up the packing context and frees all memory. + +#define STBTT_POINT_SIZE(x) (-(x)) + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_char_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range); +// Creates character bitmaps from the font_index'th font found in fontdata (use +// font_index=0 if you don't know what that is). It creates num_chars_in_range +// bitmaps for characters with unicode values starting at first_unicode_char_in_range +// and increasing. Data for how to render them is stored in chardata_for_range; +// pass these to stbtt_GetPackedQuad to get back renderable quads. +// +// font_size is the full height of the character from ascender to descender, +// as computed by stbtt_ScaleForPixelHeight. To use a point size as computed +// by stbtt_ScaleForMappingEmToPixels, wrap the point size in STBTT_POINT_SIZE() +// and pass that result as 'font_size': +// ..., 20 , ... // font max minus min y is 20 pixels tall +// ..., STBTT_POINT_SIZE(20), ... // 'M' is 20 pixels tall + +typedef struct +{ + float font_size; + int first_unicode_codepoint_in_range; // if non-zero, then the chars are continuous, and this is the first codepoint + int *array_of_unicode_codepoints; // if non-zero, then this is an array of unicode codepoints + int num_chars; + stbtt_packedchar *chardata_for_range; // output + unsigned char h_oversample, v_oversample; // don't set these, they're used internally +} stbtt_pack_range; + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); +// Creates character bitmaps from multiple ranges of characters stored in +// ranges. This will usually create a better-packed bitmap than multiple +// calls to stbtt_PackFontRange. Note that you can call this multiple +// times within a single PackBegin/PackEnd. + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample); +// Oversampling a font increases the quality by allowing higher-quality subpixel +// positioning, and is especially valuable at smaller text sizes. +// +// This function sets the amount of oversampling for all following calls to +// stbtt_PackFontRange(s) or stbtt_PackFontRangesGatherRects for a given +// pack context. The default (no oversampling) is achieved by h_oversample=1 +// and v_oversample=1. The total number of pixels required is +// h_oversample*v_oversample larger than the default; for example, 2x2 +// oversampling requires 4x the storage of 1x1. For best results, render +// oversampled textures with bilinear filtering. Look at the readme in +// stb/tests/oversample for information about oversampled fonts +// +// To use with PackFontRangesGather etc., you must set it before calls +// call to PackFontRangesGatherRects. + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip); +// If skip != 0, this tells stb_truetype to skip any codepoints for which +// there is no corresponding glyph. If skip=0, which is the default, then +// codepoints without a glyph recived the font's "missing character" glyph, +// typically an empty box by convention. + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int align_to_integer); + +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects); +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +// Calling these functions in sequence is roughly equivalent to calling +// stbtt_PackFontRanges(). If you more control over the packing of multiple +// fonts, or if you want to pack custom data into a font texture, take a look +// at the source to of stbtt_PackFontRanges() and create a custom version +// using these functions, e.g. call GatherRects multiple times, +// building up a single array of rects, then call PackRects once, +// then call RenderIntoRects repeatedly. This may result in a +// better packing than calling PackFontRanges multiple times +// (or it may not). + +// this is an opaque structure that you shouldn't mess with which holds +// all the context needed from PackBegin to PackEnd. +struct stbtt_pack_context { + void *user_allocator_context; + void *pack_info; + int width; + int height; + int stride_in_bytes; + int padding; + int skip_missing; + unsigned int h_oversample, v_oversample; + unsigned char *pixels; + void *nodes; +}; + +////////////////////////////////////////////////////////////////////////////// +// +// FONT LOADING +// +// + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data); +// This function will determine the number of fonts in a font file. TrueType +// collection (.ttc) files may contain multiple fonts, while TrueType font +// (.ttf) files only contain one font. The number of fonts can be used for +// indexing with the previous function where the index is between zero and one +// less than the total fonts. If an error occurs, -1 is returned. + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index); +// Each .ttf/.ttc file may have more than one font. Each font has a sequential +// index number starting from 0. Call this function to get the font offset for +// a given index; it returns -1 if the index is out of range. A regular .ttf +// file will only define one font and it always be at offset 0, so it will +// return '0' for index 0, and -1 for all other indices. + +// The following structure is defined publicly so you can declare one on +// the stack or as a global or etc, but you should treat it as opaque. +struct stbtt_fontinfo +{ + void * userdata; + unsigned char * data; // pointer to .ttf file + int fontstart; // offset of start of font + + int numGlyphs; // number of glyphs, needed for range checking + + int loca,head,glyf,hhea,hmtx,kern,gpos,svg; // table locations as offset from start of .ttf + int index_map; // a cmap mapping for our chosen character encoding + int indexToLocFormat; // format needed to map from glyph index to glyph + + stbtt__buf cff; // cff font data + stbtt__buf charstrings; // the charstring index + stbtt__buf gsubrs; // global charstring subroutines index + stbtt__buf subrs; // private charstring subroutines index + stbtt__buf fontdicts; // array of font dicts + stbtt__buf fdselect; // map from glyph to fontdict +}; + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset); +// Given an offset into the file that defines a font, this function builds +// the necessary cached info for the rest of the system. You must allocate +// the stbtt_fontinfo yourself, and stbtt_InitFont will fill it out. You don't +// need to do anything special to free it, because the contents are pure +// value data with no additional data structures. Returns 0 on failure. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER TO GLYPH-INDEX CONVERSIOn + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint); +// If you're going to perform multiple operations on the same character +// and you want a speed-up, call this function with the character you're +// going to process, then use glyph-based functions instead of the +// codepoint-based functions. +// Returns 0 if the character codepoint is not defined in the font. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER PROPERTIES +// + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose "height" is 'pixels' tall. +// Height is measured as the distance from the highest ascender to the lowest +// descender; in other words, it's equivalent to calling stbtt_GetFontVMetrics +// and computing: +// scale = pixels / (ascent - descent) +// so if you prefer to measure height by the ascent only, use a similar calculation. + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose EM size is mapped to +// 'pixels' tall. This is probably what traditional APIs compute, but +// I'm not positive. + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap); +// ascent is the coordinate above the baseline the font extends; descent +// is the coordinate below the baseline the font extends (i.e. it is typically negative) +// lineGap is the spacing between one row's descent and the next row's ascent... +// so you should advance the vertical position by "*ascent - *descent + *lineGap" +// these are expressed in unscaled coordinates, so you must multiply by +// the scale factor for a given size + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap); +// analogous to GetFontVMetrics, but returns the "typographic" values from the OS/2 +// table (specific to MS/Windows TTF files). +// +// Returns 1 on success (table present), 0 on failure. + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1); +// the bounding box around all possible characters + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing); +// leftSideBearing is the offset from the current horizontal position to the left edge of the character +// advanceWidth is the offset from the current horizontal position to the next horizontal position +// these are expressed in unscaled coordinates + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2); +// an additional amount to add to the 'advance' value between ch1 and ch2 + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1); +// Gets the bounding box of the visible part of the glyph, in unscaled coordinates + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing); +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2); +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); +// as above, but takes one or more glyph indices for greater efficiency + +typedef struct stbtt_kerningentry +{ + int glyph1; // use stbtt_FindGlyphIndex + int glyph2; + int advance; +} stbtt_kerningentry; + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info); +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length); +// Retrieves a complete list of all of the kerning pairs provided by the font +// stbtt_GetKerningTable never writes more than table_length entries and returns how many entries it did write. +// The table will be sorted by (a.glyph1 == b.glyph1)?(a.glyph2 < b.glyph2):(a.glyph1 < b.glyph1) + +////////////////////////////////////////////////////////////////////////////// +// +// GLYPH SHAPES (you probably don't need these, but they have to go before +// the bitmaps for C declaration-order reasons) +// + +#ifndef STBTT_vmove // you can predefine these to use different values (but why?) + enum { + STBTT_vmove=1, + STBTT_vline, + STBTT_vcurve, + STBTT_vcubic + }; +#endif + +#ifndef stbtt_vertex // you can predefine this to use different values + // (we share this with other code at RAD) + #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file + typedef struct + { + stbtt_vertex_type x,y,cx,cy,cx1,cy1; + unsigned char type,padding; + } stbtt_vertex; +#endif + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index); +// returns non-zero if nothing is drawn for this glyph + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices); +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices); +// returns # of vertices and fills *vertices with the pointer to them +// these are expressed in "unscaled" coordinates +// +// The shape is a series of contours. Each one starts with +// a STBTT_moveto, then consists of a series of mixed +// STBTT_lineto and STBTT_curveto segments. A lineto +// draws a line from previous endpoint to its x,y; a curveto +// draws a quadratic bezier from previous endpoint to +// its x,y, using cx,cy as the bezier control point. + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); +// frees the data allocated above + +STBTT_DEF unsigned char *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl); +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg); +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg); +// fills svg with the character's SVG data. +// returns data size or 0 if SVG not found. + +////////////////////////////////////////////////////////////////////////////// +// +// BITMAP RENDERING +// + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata); +// frees the bitmap allocated below + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// allocates a large-enough single-channel 8bpp bitmap and renders the +// specified character/glyph at the specified scale into it, with +// antialiasing. 0 is no coverage (transparent), 255 is fully covered (opaque). +// *width & *height are filled out with the width & height of the bitmap, +// which is stored left-to-right, top-to-bottom. +// +// xoff/yoff are the offset it pixel space from the glyph origin to the top-left of the bitmap + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// the same as stbtt_GetCodepoitnBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint); +// the same as stbtt_GetCodepointBitmap, but you pass in storage for the bitmap +// in the form of 'output', with row spacing of 'out_stride' bytes. the bitmap +// is clipped to out_w/out_h bytes. Call stbtt_GetCodepointBitmapBox to get the +// width and height and positioning info for it first. + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint); +// same as stbtt_MakeCodepointBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint); +// same as stbtt_MakeCodepointBitmapSubpixel, but prefiltering +// is performed (see stbtt_PackSetOversampling) + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +// get the bbox of the bitmap centered around the glyph origin; so the +// bitmap width is ix1-ix0, height is iy1-iy0, and location to place +// the bitmap top left is (leftSideBearing*scale,iy0). +// (Note that the bitmap uses y-increases-down, but the shape uses +// y-increases-up, so CodepointBitmapBox and CodepointBox are inverted.) + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); +// same as stbtt_GetCodepointBitmapBox, but you can specify a subpixel +// shift for the character + +// the following functions are equivalent to the above functions, but operate +// on glyph indices instead of Unicode codepoints (for efficiency) +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph); +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); + + +// @TODO: don't expose this structure +typedef struct +{ + int w,h,stride; + unsigned char *pixels; +} stbtt__bitmap; + +// rasterize a shape with quadratic beziers into a bitmap +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, // 1-channel bitmap to draw into + float flatness_in_pixels, // allowable error of curve in pixels + stbtt_vertex *vertices, // array of vertices defining shape + int num_verts, // number of vertices in above array + float scale_x, float scale_y, // scale applied to input vertices + float shift_x, float shift_y, // translation applied to input vertices + int x_off, int y_off, // another translation applied to input + int invert, // if non-zero, vertically flip shape + void *userdata); // context for to STBTT_MALLOC + +////////////////////////////////////////////////////////////////////////////// +// +// Signed Distance Function (or Field) rendering + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata); +// frees the SDF bitmap allocated below + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +// These functions compute a discretized SDF field for a single character, suitable for storing +// in a single-channel texture, sampling with bilinear filtering, and testing against +// larger than some threshold to produce scalable fonts. +// info -- the font +// scale -- controls the size of the resulting SDF bitmap, same as it would be creating a regular bitmap +// glyph/codepoint -- the character to generate the SDF for +// padding -- extra "pixels" around the character which are filled with the distance to the character (not 0), +// which allows effects like bit outlines +// onedge_value -- value 0-255 to test the SDF against to reconstruct the character (i.e. the isocontour of the character) +// pixel_dist_scale -- what value the SDF should increase by when moving one SDF "pixel" away from the edge (on the 0..255 scale) +// if positive, > onedge_value is inside; if negative, < onedge_value is inside +// width,height -- output height & width of the SDF bitmap (including padding) +// xoff,yoff -- output origin of the character +// return value -- a 2D array of bytes 0..255, width*height in size +// +// pixel_dist_scale & onedge_value are a scale & bias that allows you to make +// optimal use of the limited 0..255 for your application, trading off precision +// and special effects. SDF values outside the range 0..255 are clamped to 0..255. +// +// Example: +// scale = stbtt_ScaleForPixelHeight(22) +// padding = 5 +// onedge_value = 180 +// pixel_dist_scale = 180/5.0 = 36.0 +// +// This will create an SDF bitmap in which the character is about 22 pixels +// high but the whole bitmap is about 22+5+5=32 pixels high. To produce a filled +// shape, sample the SDF at each pixel and fill the pixel if the SDF value +// is greater than or equal to 180/255. (You'll actually want to antialias, +// which is beyond the scope of this example.) Additionally, you can compute +// offset outlines (e.g. to stroke the character border inside & outside, +// or only outside). For example, to fill outside the character up to 3 SDF +// pixels, you would compare against (180-36.0*3)/255 = 72/255. The above +// choice of variables maps a range from 5 pixels outside the shape to +// 2 pixels inside the shape to 0..255; this is intended primarily for apply +// outside effects only (the interior range is needed to allow proper +// antialiasing of the font at *smaller* sizes) +// +// The function computes the SDF analytically at each SDF pixel, not by e.g. +// building a higher-res bitmap and approximating it. In theory the quality +// should be as high as possible for an SDF of this size & representation, but +// unclear if this is true in practice (perhaps building a higher-res bitmap +// and computing from that can allow drop-out prevention). +// +// The algorithm has not been optimized at all, so expect it to be slow +// if computing lots of characters or very large sizes. + + + +////////////////////////////////////////////////////////////////////////////// +// +// Finding the right font... +// +// You should really just solve this offline, keep your own tables +// of what font is what, and don't try to get it out of the .ttf file. +// That's because getting it out of the .ttf file is really hard, because +// the names in the file can appear in many possible encodings, in many +// possible languages, and e.g. if you need a case-insensitive comparison, +// the details of that depend on the encoding & language in a complex way +// (actually underspecified in truetype, but also gigantic). +// +// But you can use the provided functions in two possible ways: +// stbtt_FindMatchingFont() will use *case-sensitive* comparisons on +// unicode-encoded names to try to find the font you want; +// you can run this before calling stbtt_InitFont() +// +// stbtt_GetFontNameString() lets you get any of the various strings +// from the file yourself and do your own comparisons on them. +// You have to have called stbtt_InitFont() first. + + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags); +// returns the offset (not index) of the font that matches, or -1 if none +// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold". +// if you use any other flag, use a font name like "Arial"; this checks +// the 'macStyle' header field; i don't know if fonts set this consistently +#define STBTT_MACSTYLE_DONTCARE 0 +#define STBTT_MACSTYLE_BOLD 1 +#define STBTT_MACSTYLE_ITALIC 2 +#define STBTT_MACSTYLE_UNDERSCORE 4 +#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0 + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2); +// returns 1/0 whether the first string interpreted as utf8 is identical to +// the second string interpreted as big-endian utf16... useful for strings from next func + +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID); +// returns the string (which may be big-endian double byte, e.g. for unicode) +// and puts the length in bytes in *length. +// +// some of the values for the IDs are below; for more see the truetype spec: +// http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html +// http://www.microsoft.com/typography/otspec/name.htm + +enum { // platformID + STBTT_PLATFORM_ID_UNICODE =0, + STBTT_PLATFORM_ID_MAC =1, + STBTT_PLATFORM_ID_ISO =2, + STBTT_PLATFORM_ID_MICROSOFT =3 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_UNICODE + STBTT_UNICODE_EID_UNICODE_1_0 =0, + STBTT_UNICODE_EID_UNICODE_1_1 =1, + STBTT_UNICODE_EID_ISO_10646 =2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP=3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL=4 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MICROSOFT + STBTT_MS_EID_SYMBOL =0, + STBTT_MS_EID_UNICODE_BMP =1, + STBTT_MS_EID_SHIFTJIS =2, + STBTT_MS_EID_UNICODE_FULL =10 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MAC; same as Script Manager codes + STBTT_MAC_EID_ROMAN =0, STBTT_MAC_EID_ARABIC =4, + STBTT_MAC_EID_JAPANESE =1, STBTT_MAC_EID_HEBREW =5, + STBTT_MAC_EID_CHINESE_TRAD =2, STBTT_MAC_EID_GREEK =6, + STBTT_MAC_EID_KOREAN =3, STBTT_MAC_EID_RUSSIAN =7 +}; + +enum { // languageID for STBTT_PLATFORM_ID_MICROSOFT; same as LCID... + // problematic because there are e.g. 16 english LCIDs and 16 arabic LCIDs + STBTT_MS_LANG_ENGLISH =0x0409, STBTT_MS_LANG_ITALIAN =0x0410, + STBTT_MS_LANG_CHINESE =0x0804, STBTT_MS_LANG_JAPANESE =0x0411, + STBTT_MS_LANG_DUTCH =0x0413, STBTT_MS_LANG_KOREAN =0x0412, + STBTT_MS_LANG_FRENCH =0x040c, STBTT_MS_LANG_RUSSIAN =0x0419, + STBTT_MS_LANG_GERMAN =0x0407, STBTT_MS_LANG_SPANISH =0x0409, + STBTT_MS_LANG_HEBREW =0x040d, STBTT_MS_LANG_SWEDISH =0x041D +}; + +enum { // languageID for STBTT_PLATFORM_ID_MAC + STBTT_MAC_LANG_ENGLISH =0 , STBTT_MAC_LANG_JAPANESE =11, + STBTT_MAC_LANG_ARABIC =12, STBTT_MAC_LANG_KOREAN =23, + STBTT_MAC_LANG_DUTCH =4 , STBTT_MAC_LANG_RUSSIAN =32, + STBTT_MAC_LANG_FRENCH =1 , STBTT_MAC_LANG_SPANISH =6 , + STBTT_MAC_LANG_GERMAN =2 , STBTT_MAC_LANG_SWEDISH =5 , + STBTT_MAC_LANG_HEBREW =10, STBTT_MAC_LANG_CHINESE_SIMPLIFIED =33, + STBTT_MAC_LANG_ITALIAN =3 , STBTT_MAC_LANG_CHINESE_TRAD =19 +}; + +#ifdef __cplusplus +} +#endif + +#endif // __STB_INCLUDE_STB_TRUETYPE_H__ + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// IMPLEMENTATION +//// +//// + +#ifdef STB_TRUETYPE_IMPLEMENTATION + +#ifndef STBTT_MAX_OVERSAMPLE +#define STBTT_MAX_OVERSAMPLE 8 +#endif + +#if STBTT_MAX_OVERSAMPLE > 255 +#error "STBTT_MAX_OVERSAMPLE cannot be > 255" +#endif + +typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1]; + +#ifndef STBTT_RASTERIZER_VERSION +#define STBTT_RASTERIZER_VERSION 2 +#endif + +#ifdef _MSC_VER +#define STBTT__NOTUSED(v) (void)(v) +#else +#define STBTT__NOTUSED(v) (void)sizeof(v) +#endif + +////////////////////////////////////////////////////////////////////////// +// +// stbtt__buf helpers to parse data from file +// + +static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor++]; +} + +static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b) +{ + if (b->cursor >= b->size) + return 0; + return b->data[b->cursor]; +} + +static void stbtt__buf_seek(stbtt__buf *b, int o) +{ + STBTT_assert(!(o > b->size || o < 0)); + b->cursor = (o > b->size || o < 0) ? b->size : o; +} + +static void stbtt__buf_skip(stbtt__buf *b, int o) +{ + stbtt__buf_seek(b, b->cursor + o); +} + +static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n) +{ + stbtt_uint32 v = 0; + int i; + STBTT_assert(n >= 1 && n <= 4); + for (i = 0; i < n; i++) + v = (v << 8) | stbtt__buf_get8(b); + return v; +} + +static stbtt__buf stbtt__new_buf(const void *p, size_t size) +{ + stbtt__buf r; + STBTT_assert(size < 0x40000000); + r.data = (stbtt_uint8*) p; + r.size = (int) size; + r.cursor = 0; + return r; +} + +#define stbtt__buf_get16(b) stbtt__buf_get((b), 2) +#define stbtt__buf_get32(b) stbtt__buf_get((b), 4) + +static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s) +{ + stbtt__buf r = stbtt__new_buf(NULL, 0); + if (o < 0 || s < 0 || o > b->size || s > b->size - o) return r; + r.data = b->data + o; + r.size = s; + return r; +} + +static stbtt__buf stbtt__cff_get_index(stbtt__buf *b) +{ + int count, start, offsize; + start = b->cursor; + count = stbtt__buf_get16(b); + if (count) { + offsize = stbtt__buf_get8(b); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(b, offsize * count); + stbtt__buf_skip(b, stbtt__buf_get(b, offsize) - 1); + } + return stbtt__buf_range(b, start, b->cursor - start); +} + +static stbtt_uint32 stbtt__cff_int(stbtt__buf *b) +{ + int b0 = stbtt__buf_get8(b); + if (b0 >= 32 && b0 <= 246) return b0 - 139; + else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108; + else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108; + else if (b0 == 28) return stbtt__buf_get16(b); + else if (b0 == 29) return stbtt__buf_get32(b); + STBTT_assert(0); + return 0; +} + +static void stbtt__cff_skip_operand(stbtt__buf *b) { + int v, b0 = stbtt__buf_peek8(b); + STBTT_assert(b0 >= 28); + if (b0 == 30) { + stbtt__buf_skip(b, 1); + while (b->cursor < b->size) { + v = stbtt__buf_get8(b); + if ((v & 0xF) == 0xF || (v >> 4) == 0xF) + break; + } + } else { + stbtt__cff_int(b); + } +} + +static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key) +{ + stbtt__buf_seek(b, 0); + while (b->cursor < b->size) { + int start = b->cursor, end, op; + while (stbtt__buf_peek8(b) >= 28) + stbtt__cff_skip_operand(b); + end = b->cursor; + op = stbtt__buf_get8(b); + if (op == 12) op = stbtt__buf_get8(b) | 0x100; + if (op == key) return stbtt__buf_range(b, start, end-start); + } + return stbtt__buf_range(b, 0, 0); +} + +static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out) +{ + int i; + stbtt__buf operands = stbtt__dict_get(b, key); + for (i = 0; i < outcount && operands.cursor < operands.size; i++) + out[i] = stbtt__cff_int(&operands); +} + +static int stbtt__cff_index_count(stbtt__buf *b) +{ + stbtt__buf_seek(b, 0); + return stbtt__buf_get16(b); +} + +static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) +{ + int count, offsize, start, end; + stbtt__buf_seek(&b, 0); + count = stbtt__buf_get16(&b); + offsize = stbtt__buf_get8(&b); + STBTT_assert(i >= 0 && i < count); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(&b, i*offsize); + start = stbtt__buf_get(&b, offsize); + end = stbtt__buf_get(&b, offsize); + return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); +} + +////////////////////////////////////////////////////////////////////////// +// +// accessors to parse data from file +// + +// on platforms that don't allow misaligned reads, if we want to allow +// truetype fonts that aren't padded to alignment, define ALLOW_UNALIGNED_TRUETYPE + +#define ttBYTE(p) (* (stbtt_uint8 *) (p)) +#define ttCHAR(p) (* (stbtt_int8 *) (p)) +#define ttFixed(p) ttLONG(p) + +static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } +static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } + +#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3)) +#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3]) + +static int stbtt__isfont(stbtt_uint8 *font) +{ + // check the version number + if (stbtt_tag4(font, '1',0,0,0)) return 1; // TrueType 1 + if (stbtt_tag(font, "typ1")) return 1; // TrueType with type 1 font -- we don't support this! + if (stbtt_tag(font, "OTTO")) return 1; // OpenType with CFF + if (stbtt_tag4(font, 0,1,0,0)) return 1; // OpenType 1.0 + if (stbtt_tag(font, "true")) return 1; // Apple specification for TrueType fonts + return 0; +} + +// @OPTIMIZE: binary search +static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag) +{ + stbtt_int32 num_tables = ttUSHORT(data+fontstart+4); + stbtt_uint32 tabledir = fontstart + 12; + stbtt_int32 i; + for (i=0; i < num_tables; ++i) { + stbtt_uint32 loc = tabledir + 16*i; + if (stbtt_tag(data+loc+0, tag)) + return ttULONG(data+loc+8); + } + return 0; +} + +static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index) +{ + // if it's just a font, there's only one valid index + if (stbtt__isfont(font_collection)) + return index == 0 ? 0 : -1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + stbtt_int32 n = ttLONG(font_collection+8); + if (index >= n) + return -1; + return ttULONG(font_collection+12+index*4); + } + } + return -1; +} + +static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection) +{ + // if it's just a font, there's only one valid font + if (stbtt__isfont(font_collection)) + return 1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + return ttLONG(font_collection+8); + } + } + return 0; +} + +static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) +{ + stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 }; + stbtt__buf pdict; + stbtt__dict_get_ints(&fontdict, 18, 2, private_loc); + if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0); + pdict = stbtt__buf_range(&cff, private_loc[1], private_loc[0]); + stbtt__dict_get_ints(&pdict, 19, 1, &subrsoff); + if (!subrsoff) return stbtt__new_buf(NULL, 0); + stbtt__buf_seek(&cff, private_loc[1]+subrsoff); + return stbtt__cff_get_index(&cff); +} + +// since most people won't use this, find this table the first time it's needed +static int stbtt__get_svg(stbtt_fontinfo *info) +{ + stbtt_uint32 t; + if (info->svg < 0) { + t = stbtt__find_table(info->data, info->fontstart, "SVG "); + if (t) { + stbtt_uint32 offset = ttULONG(info->data + t + 2); + info->svg = t + offset; + } else { + info->svg = 0; + } + } + return info->svg; +} + +static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) +{ + stbtt_uint32 cmap, t; + stbtt_int32 i,numTables; + + info->data = data; + info->fontstart = fontstart; + info->cff = stbtt__new_buf(NULL, 0); + + cmap = stbtt__find_table(data, fontstart, "cmap"); // required + info->loca = stbtt__find_table(data, fontstart, "loca"); // required + info->head = stbtt__find_table(data, fontstart, "head"); // required + info->glyf = stbtt__find_table(data, fontstart, "glyf"); // required + info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required + info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required + info->kern = stbtt__find_table(data, fontstart, "kern"); // not required + info->gpos = stbtt__find_table(data, fontstart, "GPOS"); // not required + + if (!cmap || !info->head || !info->hhea || !info->hmtx) + return 0; + if (info->glyf) { + // required for truetype + if (!info->loca) return 0; + } else { + // initialization for CFF / Type2 fonts (OTF) + stbtt__buf b, topdict, topdictidx; + stbtt_uint32 cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + stbtt_uint32 cff; + + cff = stbtt__find_table(data, fontstart, "CFF "); + if (!cff) return 0; + + info->fontdicts = stbtt__new_buf(NULL, 0); + info->fdselect = stbtt__new_buf(NULL, 0); + + // @TODO this should use size from table (not 512MB) + info->cff = stbtt__new_buf(data+cff, 512*1024*1024); + b = info->cff; + + // read the header + stbtt__buf_skip(&b, 2); + stbtt__buf_seek(&b, stbtt__buf_get8(&b)); // hdrsize + + // @TODO the name INDEX could list multiple fonts, + // but we just use the first one. + stbtt__cff_get_index(&b); // name INDEX + topdictidx = stbtt__cff_get_index(&b); + topdict = stbtt__cff_index_get(topdictidx, 0); + stbtt__cff_get_index(&b); // string INDEX + info->gsubrs = stbtt__cff_get_index(&b); + + stbtt__dict_get_ints(&topdict, 17, 1, &charstrings); + stbtt__dict_get_ints(&topdict, 0x100 | 6, 1, &cstype); + stbtt__dict_get_ints(&topdict, 0x100 | 36, 1, &fdarrayoff); + stbtt__dict_get_ints(&topdict, 0x100 | 37, 1, &fdselectoff); + info->subrs = stbtt__get_subrs(b, topdict); + + // we only support Type 2 charstrings + if (cstype != 2) return 0; + if (charstrings == 0) return 0; + + if (fdarrayoff) { + // looks like a CID font + if (!fdselectoff) return 0; + stbtt__buf_seek(&b, fdarrayoff); + info->fontdicts = stbtt__cff_get_index(&b); + info->fdselect = stbtt__buf_range(&b, fdselectoff, b.size-fdselectoff); + } + + stbtt__buf_seek(&b, charstrings); + info->charstrings = stbtt__cff_get_index(&b); + } + + t = stbtt__find_table(data, fontstart, "maxp"); + if (t) + info->numGlyphs = ttUSHORT(data+t+4); + else + info->numGlyphs = 0xffff; + + info->svg = -1; + + // find a cmap encoding table we understand *now* to avoid searching + // later. (todo: could make this installable) + // the same regardless of glyph. + numTables = ttUSHORT(data + cmap + 2); + info->index_map = 0; + for (i=0; i < numTables; ++i) { + stbtt_uint32 encoding_record = cmap + 4 + 8 * i; + // find an encoding we understand: + switch(ttUSHORT(data+encoding_record)) { + case STBTT_PLATFORM_ID_MICROSOFT: + switch (ttUSHORT(data+encoding_record+2)) { + case STBTT_MS_EID_UNICODE_BMP: + case STBTT_MS_EID_UNICODE_FULL: + // MS/Unicode + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + break; + case STBTT_PLATFORM_ID_UNICODE: + // Mac/iOS has these + // all the encodingIDs are unicode, so we don't bother to check it + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + } + if (info->index_map == 0) + return 0; + + info->indexToLocFormat = ttUSHORT(data+info->head + 50); + return 1; +} + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint) +{ + stbtt_uint8 *data = info->data; + stbtt_uint32 index_map = info->index_map; + + stbtt_uint16 format = ttUSHORT(data + index_map + 0); + if (format == 0) { // apple byte encoding + stbtt_int32 bytes = ttUSHORT(data + index_map + 2); + if (unicode_codepoint < bytes-6) + return ttBYTE(data + index_map + 6 + unicode_codepoint); + return 0; + } else if (format == 6) { + stbtt_uint32 first = ttUSHORT(data + index_map + 6); + stbtt_uint32 count = ttUSHORT(data + index_map + 8); + if ((stbtt_uint32) unicode_codepoint >= first && (stbtt_uint32) unicode_codepoint < first+count) + return ttUSHORT(data + index_map + 10 + (unicode_codepoint - first)*2); + return 0; + } else if (format == 2) { + STBTT_assert(0); // @TODO: high-byte mapping for japanese/chinese/korean + return 0; + } else if (format == 4) { // standard mapping for windows fonts: binary search collection of ranges + stbtt_uint16 segcount = ttUSHORT(data+index_map+6) >> 1; + stbtt_uint16 searchRange = ttUSHORT(data+index_map+8) >> 1; + stbtt_uint16 entrySelector = ttUSHORT(data+index_map+10); + stbtt_uint16 rangeShift = ttUSHORT(data+index_map+12) >> 1; + + // do a binary search of the segments + stbtt_uint32 endCount = index_map + 14; + stbtt_uint32 search = endCount; + + if (unicode_codepoint > 0xffff) + return 0; + + // they lie from endCount .. endCount + segCount + // but searchRange is the nearest power of two, so... + if (unicode_codepoint >= ttUSHORT(data + search + rangeShift*2)) + search += rangeShift*2; + + // now decrement to bias correctly to find smallest + search -= 2; + while (entrySelector) { + stbtt_uint16 end; + searchRange >>= 1; + end = ttUSHORT(data + search + searchRange*2); + if (unicode_codepoint > end) + search += searchRange*2; + --entrySelector; + } + search += 2; + + { + stbtt_uint16 offset, start, last; + stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); + + start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); + last = ttUSHORT(data + endCount + 2*item); + if (unicode_codepoint < start || unicode_codepoint > last) + return 0; + + offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); + if (offset == 0) + return (stbtt_uint16) (unicode_codepoint + ttSHORT(data + index_map + 14 + segcount*4 + 2 + 2*item)); + + return ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item); + } + } else if (format == 12 || format == 13) { + stbtt_uint32 ngroups = ttULONG(data+index_map+12); + stbtt_int32 low,high; + low = 0; high = (stbtt_int32)ngroups; + // Binary search the right group. + while (low < high) { + stbtt_int32 mid = low + ((high-low) >> 1); // rounds down, so low <= mid < high + stbtt_uint32 start_char = ttULONG(data+index_map+16+mid*12); + stbtt_uint32 end_char = ttULONG(data+index_map+16+mid*12+4); + if ((stbtt_uint32) unicode_codepoint < start_char) + high = mid; + else if ((stbtt_uint32) unicode_codepoint > end_char) + low = mid+1; + else { + stbtt_uint32 start_glyph = ttULONG(data+index_map+16+mid*12+8); + if (format == 12) + return start_glyph + unicode_codepoint-start_char; + else // format == 13 + return start_glyph; + } + } + return 0; // not found + } + // @TODO + STBTT_assert(0); + return 0; +} + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices) +{ + return stbtt_GetGlyphShape(info, stbtt_FindGlyphIndex(info, unicode_codepoint), vertices); +} + +static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy) +{ + v->type = type; + v->x = (stbtt_int16) x; + v->y = (stbtt_int16) y; + v->cx = (stbtt_int16) cx; + v->cy = (stbtt_int16) cy; +} + +static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index) +{ + int g1,g2; + + STBTT_assert(!info->cff.size); + + if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range + if (info->indexToLocFormat >= 2) return -1; // unknown index->glyph map format + + if (info->indexToLocFormat == 0) { + g1 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2) * 2; + g2 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2; + } else { + g1 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4); + g2 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4 + 4); + } + + return g1==g2 ? -1 : g1; // if length is 0, return -1 +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); + +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + if (info->cff.size) { + stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1); + } else { + int g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 0; + + if (x0) *x0 = ttSHORT(info->data + g + 2); + if (y0) *y0 = ttSHORT(info->data + g + 4); + if (x1) *x1 = ttSHORT(info->data + g + 6); + if (y1) *y1 = ttSHORT(info->data + g + 8); + } + return 1; +} + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1) +{ + return stbtt_GetGlyphBox(info, stbtt_FindGlyphIndex(info,codepoint), x0,y0,x1,y1); +} + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt_int16 numberOfContours; + int g; + if (info->cff.size) + return stbtt__GetGlyphInfoT2(info, glyph_index, NULL, NULL, NULL, NULL) == 0; + g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 1; + numberOfContours = ttSHORT(info->data + g); + return numberOfContours == 0; +} + +static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, + stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) +{ + if (start_off) { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy); + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy); + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0); + } + return num_vertices; +} + +static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + stbtt_int16 numberOfContours; + stbtt_uint8 *endPtsOfContours; + stbtt_uint8 *data = info->data; + stbtt_vertex *vertices=0; + int num_vertices=0; + int g = stbtt__GetGlyfOffset(info, glyph_index); + + *pvertices = NULL; + + if (g < 0) return 0; + + numberOfContours = ttSHORT(data + g); + + if (numberOfContours > 0) { + stbtt_uint8 flags=0,flagcount; + stbtt_int32 ins, i,j=0,m,n, next_move, was_off=0, off, start_off=0; + stbtt_int32 x,y,cx,cy,sx,sy, scx,scy; + stbtt_uint8 *points; + endPtsOfContours = (data + g + 10); + ins = ttUSHORT(data + g + 10 + numberOfContours * 2); + points = data + g + 10 + numberOfContours * 2 + 2 + ins; + + n = 1+ttUSHORT(endPtsOfContours + numberOfContours*2-2); + + m = n + 2*numberOfContours; // a loose bound on how many vertices we might need + vertices = (stbtt_vertex *) STBTT_malloc(m * sizeof(vertices[0]), info->userdata); + if (vertices == 0) + return 0; + + next_move = 0; + flagcount=0; + + // in first pass, we load uninterpreted data into the allocated array + // above, shifted to the end of the array so we won't overwrite it when + // we create our final data starting from the front + + off = m - n; // starting offset for uninterpreted data, regardless of how m ends up being calculated + + // first load flags + + for (i=0; i < n; ++i) { + if (flagcount == 0) { + flags = *points++; + if (flags & 8) + flagcount = *points++; + } else + --flagcount; + vertices[off+i].type = flags; + } + + // now load x coordinates + x=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 2) { + stbtt_int16 dx = *points++; + x += (flags & 16) ? dx : -dx; // ??? + } else { + if (!(flags & 16)) { + x = x + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].x = (stbtt_int16) x; + } + + // now load y coordinates + y=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 4) { + stbtt_int16 dy = *points++; + y += (flags & 32) ? dy : -dy; // ??? + } else { + if (!(flags & 32)) { + y = y + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].y = (stbtt_int16) y; + } + + // now convert them to our format + num_vertices=0; + sx = sy = cx = cy = scx = scy = 0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + x = (stbtt_int16) vertices[off+i].x; + y = (stbtt_int16) vertices[off+i].y; + + if (next_move == i) { + if (i != 0) + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + + // now start the new one + start_off = !(flags & 1); + if (start_off) { + // if we start off with an off-curve point, then when we need to find a point on the curve + // where we can start, and we need to save some state for when we wraparound. + scx = x; + scy = y; + if (!(vertices[off+i+1].type & 1)) { + // next point is also a curve point, so interpolate an on-point curve + sx = (x + (stbtt_int32) vertices[off+i+1].x) >> 1; + sy = (y + (stbtt_int32) vertices[off+i+1].y) >> 1; + } else { + // otherwise just use the next point as our start point + sx = (stbtt_int32) vertices[off+i+1].x; + sy = (stbtt_int32) vertices[off+i+1].y; + ++i; // we're using point i+1 as the starting point, so skip it + } + } else { + sx = x; + sy = y; + } + stbtt_setvertex(&vertices[num_vertices++], STBTT_vmove,sx,sy,0,0); + was_off = 0; + next_move = 1 + ttUSHORT(endPtsOfContours+j*2); + ++j; + } else { + if (!(flags & 1)) { // if it's a curve + if (was_off) // two off-curve control points in a row means interpolate an on-curve midpoint + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+x)>>1, (cy+y)>>1, cx, cy); + cx = x; + cy = y; + was_off = 1; + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, x,y, cx, cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline, x,y,0,0); + was_off = 0; + } + } + } + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + } else if (numberOfContours < 0) { + // Compound shapes. + int more = 1; + stbtt_uint8 *comp = data + g + 10; + num_vertices = 0; + vertices = 0; + while (more) { + stbtt_uint16 flags, gidx; + int comp_num_verts = 0, i; + stbtt_vertex *comp_verts = 0, *tmp = 0; + float mtx[6] = {1,0,0,1,0,0}, m, n; + + flags = ttSHORT(comp); comp+=2; + gidx = ttSHORT(comp); comp+=2; + + if (flags & 2) { // XY values + if (flags & 1) { // shorts + mtx[4] = ttSHORT(comp); comp+=2; + mtx[5] = ttSHORT(comp); comp+=2; + } else { + mtx[4] = ttCHAR(comp); comp+=1; + mtx[5] = ttCHAR(comp); comp+=1; + } + } + else { + // @TODO handle matching point + STBTT_assert(0); + } + if (flags & (1<<3)) { // WE_HAVE_A_SCALE + mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + } else if (flags & (1<<6)) { // WE_HAVE_AN_X_AND_YSCALE + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } else if (flags & (1<<7)) { // WE_HAVE_A_TWO_BY_TWO + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[2] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } + + // Find transformation scales. + m = (float) STBTT_sqrt(mtx[0]*mtx[0] + mtx[1]*mtx[1]); + n = (float) STBTT_sqrt(mtx[2]*mtx[2] + mtx[3]*mtx[3]); + + // Get indexed glyph. + comp_num_verts = stbtt_GetGlyphShape(info, gidx, &comp_verts); + if (comp_num_verts > 0) { + // Transform vertices. + for (i = 0; i < comp_num_verts; ++i) { + stbtt_vertex* v = &comp_verts[i]; + stbtt_vertex_type x,y; + x=v->x; y=v->y; + v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + x=v->cx; y=v->cy; + v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + } + // Append vertices. + tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata); + if (!tmp) { + if (vertices) STBTT_free(vertices, info->userdata); + if (comp_verts) STBTT_free(comp_verts, info->userdata); + return 0; + } + if (num_vertices > 0 && vertices) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); + STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); + if (vertices) STBTT_free(vertices, info->userdata); + vertices = tmp; + STBTT_free(comp_verts, info->userdata); + num_vertices += comp_num_verts; + } + // More components ? + more = flags & (1<<5); + } + } else { + // numberOfCounters == 0, do nothing + } + + *pvertices = vertices; + return num_vertices; +} + +typedef struct +{ + int bounds; + int started; + float first_x, first_y; + float x, y; + stbtt_int32 min_x, max_x, min_y, max_y; + + stbtt_vertex *pvertices; + int num_vertices; +} stbtt__csctx; + +#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0} + +static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y) +{ + if (x > c->max_x || !c->started) c->max_x = x; + if (y > c->max_y || !c->started) c->max_y = y; + if (x < c->min_x || !c->started) c->min_x = x; + if (y < c->min_y || !c->started) c->min_y = y; + c->started = 1; +} + +static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) +{ + if (c->bounds) { + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + } else { + stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy); + c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1; + c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1; + } + c->num_vertices++; +} + +static void stbtt__csctx_close_shape(stbtt__csctx *ctx) +{ + if (ctx->first_x != ctx->x || ctx->first_y != ctx->y) + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->first_x, (int)ctx->first_y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy) +{ + stbtt__csctx_close_shape(ctx); + ctx->first_x = ctx->x = ctx->x + dx; + ctx->first_y = ctx->y = ctx->y + dy; + stbtt__csctx_v(ctx, STBTT_vmove, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy) +{ + ctx->x += dx; + ctx->y += dy; + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3) +{ + float cx1 = ctx->x + dx1; + float cy1 = ctx->y + dy1; + float cx2 = cx1 + dx2; + float cy2 = cy1 + dy2; + ctx->x = cx2 + dx3; + ctx->y = cy2 + dy3; + stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2); +} + +static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n) +{ + int count = stbtt__cff_index_count(&idx); + int bias = 107; + if (count >= 33900) + bias = 32768; + else if (count >= 1240) + bias = 1131; + n += bias; + if (n < 0 || n >= count) + return stbtt__new_buf(NULL, 0); + return stbtt__cff_index_get(idx, n); +} + +static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt__buf fdselect = info->fdselect; + int nranges, start, end, v, fmt, fdselector = -1, i; + + stbtt__buf_seek(&fdselect, 0); + fmt = stbtt__buf_get8(&fdselect); + if (fmt == 0) { + // untested + stbtt__buf_skip(&fdselect, glyph_index); + fdselector = stbtt__buf_get8(&fdselect); + } else if (fmt == 3) { + nranges = stbtt__buf_get16(&fdselect); + start = stbtt__buf_get16(&fdselect); + for (i = 0; i < nranges; i++) { + v = stbtt__buf_get8(&fdselect); + end = stbtt__buf_get16(&fdselect); + if (glyph_index >= start && glyph_index < end) { + fdselector = v; + break; + } + start = end; + } + } + if (fdselector == -1) return stbtt__new_buf(NULL, 0); // [DEAR IMGUI] fixed, see #6007 and nothings/stb#1422 + return stbtt__get_subrs(info->cff, stbtt__cff_index_get(info->fontdicts, fdselector)); +} + +static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c) +{ + int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0; + int has_subrs = 0, clear_stack; + float s[48]; + stbtt__buf subr_stack[10], subrs = info->subrs, b; + float f; + +#define STBTT__CSERR(s) (0) + + // this currently ignores the initial width value, which isn't needed if we have hmtx + b = stbtt__cff_index_get(info->charstrings, glyph_index); + while (b.cursor < b.size) { + i = 0; + clear_stack = 1; + b0 = stbtt__buf_get8(&b); + switch (b0) { + // @TODO implement hinting + case 0x13: // hintmask + case 0x14: // cntrmask + if (in_header) + maskbits += (sp / 2); // implicit "vstem" + in_header = 0; + stbtt__buf_skip(&b, (maskbits + 7) / 8); + break; + + case 0x01: // hstem + case 0x03: // vstem + case 0x12: // hstemhm + case 0x17: // vstemhm + maskbits += (sp / 2); + break; + + case 0x15: // rmoveto + in_header = 0; + if (sp < 2) return STBTT__CSERR("rmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-2], s[sp-1]); + break; + case 0x04: // vmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("vmoveto stack"); + stbtt__csctx_rmove_to(c, 0, s[sp-1]); + break; + case 0x16: // hmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("hmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-1], 0); + break; + + case 0x05: // rlineto + if (sp < 2) return STBTT__CSERR("rlineto stack"); + for (; i + 1 < sp; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + // hlineto/vlineto and vhcurveto/hvcurveto alternate horizontal and vertical + // starting from a different place. + + case 0x07: // vlineto + if (sp < 1) return STBTT__CSERR("vlineto stack"); + goto vlineto; + case 0x06: // hlineto + if (sp < 1) return STBTT__CSERR("hlineto stack"); + for (;;) { + if (i >= sp) break; + stbtt__csctx_rline_to(c, s[i], 0); + i++; + vlineto: + if (i >= sp) break; + stbtt__csctx_rline_to(c, 0, s[i]); + i++; + } + break; + + case 0x1F: // hvcurveto + if (sp < 4) return STBTT__CSERR("hvcurveto stack"); + goto hvcurveto; + case 0x1E: // vhcurveto + if (sp < 4) return STBTT__CSERR("vhcurveto stack"); + for (;;) { + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, 0, s[i], s[i+1], s[i+2], s[i+3], (sp - i == 5) ? s[i + 4] : 0.0f); + i += 4; + hvcurveto: + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, s[i], 0, s[i+1], s[i+2], (sp - i == 5) ? s[i+4] : 0.0f, s[i+3]); + i += 4; + } + break; + + case 0x08: // rrcurveto + if (sp < 6) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x18: // rcurveline + if (sp < 8) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp - 2; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + if (i + 1 >= sp) return STBTT__CSERR("rcurveline stack"); + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + case 0x19: // rlinecurve + if (sp < 8) return STBTT__CSERR("rlinecurve stack"); + for (; i + 1 < sp - 6; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + if (i + 5 >= sp) return STBTT__CSERR("rlinecurve stack"); + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x1A: // vvcurveto + case 0x1B: // hhcurveto + if (sp < 4) return STBTT__CSERR("(vv|hh)curveto stack"); + f = 0.0; + if (sp & 1) { f = s[i]; i++; } + for (; i + 3 < sp; i += 4) { + if (b0 == 0x1B) + stbtt__csctx_rccurve_to(c, s[i], f, s[i+1], s[i+2], s[i+3], 0.0); + else + stbtt__csctx_rccurve_to(c, f, s[i], s[i+1], s[i+2], 0.0, s[i+3]); + f = 0.0; + } + break; + + case 0x0A: // callsubr + if (!has_subrs) { + if (info->fdselect.size) + subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); + has_subrs = 1; + } + // FALLTHROUGH + case 0x1D: // callgsubr + if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); + v = (int) s[--sp]; + if (subr_stack_height >= 10) return STBTT__CSERR("recursion limit"); + subr_stack[subr_stack_height++] = b; + b = stbtt__get_subr(b0 == 0x0A ? subrs : info->gsubrs, v); + if (b.size == 0) return STBTT__CSERR("subr not found"); + b.cursor = 0; + clear_stack = 0; + break; + + case 0x0B: // return + if (subr_stack_height <= 0) return STBTT__CSERR("return outside subr"); + b = subr_stack[--subr_stack_height]; + clear_stack = 0; + break; + + case 0x0E: // endchar + stbtt__csctx_close_shape(c); + return 1; + + case 0x0C: { // two-byte escape + float dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6; + float dx, dy; + int b1 = stbtt__buf_get8(&b); + switch (b1) { + // @TODO These "flex" implementations ignore the flex-depth and resolution, + // and always draw beziers. + case 0x22: // hflex + if (sp < 7) return STBTT__CSERR("hflex stack"); + dx1 = s[0]; + dx2 = s[1]; + dy2 = s[2]; + dx3 = s[3]; + dx4 = s[4]; + dx5 = s[5]; + dx6 = s[6]; + stbtt__csctx_rccurve_to(c, dx1, 0, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, -dy2, dx6, 0); + break; + + case 0x23: // flex + if (sp < 13) return STBTT__CSERR("flex stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = s[10]; + dy6 = s[11]; + //fd is s[12] + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + case 0x24: // hflex1 + if (sp < 9) return STBTT__CSERR("hflex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dx4 = s[5]; + dx5 = s[6]; + dy5 = s[7]; + dx6 = s[8]; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, dy5, dx6, -(dy1+dy2+dy5)); + break; + + case 0x25: // flex1 + if (sp < 11) return STBTT__CSERR("flex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = dy6 = s[10]; + dx = dx1+dx2+dx3+dx4+dx5; + dy = dy1+dy2+dy3+dy4+dy5; + if (STBTT_fabs(dx) > STBTT_fabs(dy)) + dy6 = -dy; + else + dx6 = -dx; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + default: + return STBTT__CSERR("unimplemented"); + } + } break; + + default: + if (b0 != 255 && b0 != 28 && b0 < 32) + return STBTT__CSERR("reserved operator"); + + // push immediate + if (b0 == 255) { + f = (float)(stbtt_int32)stbtt__buf_get32(&b) / 0x10000; + } else { + stbtt__buf_skip(&b, -1); + f = (float)(stbtt_int16)stbtt__cff_int(&b); + } + if (sp >= 48) return STBTT__CSERR("push stack overflow"); + s[sp++] = f; + clear_stack = 0; + break; + } + if (clear_stack) sp = 0; + } + return STBTT__CSERR("no endchar"); + +#undef STBTT__CSERR +} + +static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + // runs the charstring twice, once to count and once to output (to avoid realloc) + stbtt__csctx count_ctx = STBTT__CSCTX_INIT(1); + stbtt__csctx output_ctx = STBTT__CSCTX_INIT(0); + if (stbtt__run_charstring(info, glyph_index, &count_ctx)) { + *pvertices = (stbtt_vertex*)STBTT_malloc(count_ctx.num_vertices*sizeof(stbtt_vertex), info->userdata); + output_ctx.pvertices = *pvertices; + if (stbtt__run_charstring(info, glyph_index, &output_ctx)) { + STBTT_assert(output_ctx.num_vertices == count_ctx.num_vertices); + return output_ctx.num_vertices; + } + } + *pvertices = NULL; + return 0; +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + stbtt__csctx c = STBTT__CSCTX_INIT(1); + int r = stbtt__run_charstring(info, glyph_index, &c); + if (x0) *x0 = r ? c.min_x : 0; + if (y0) *y0 = r ? c.min_y : 0; + if (x1) *x1 = r ? c.max_x : 0; + if (y1) *y1 = r ? c.max_y : 0; + return r ? c.num_vertices : 0; +} + +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + if (!info->cff.size) + return stbtt__GetGlyphShapeTT(info, glyph_index, pvertices); + else + return stbtt__GetGlyphShapeT2(info, glyph_index, pvertices); +} + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) +{ + stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); + if (glyph_index < numOfLongHorMetrics) { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); + } else { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-1)); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics)); + } +} + +STBTT_DEF int stbtt_GetKerningTableLength(const stbtt_fontinfo *info) +{ + stbtt_uint8 *data = info->data + info->kern; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + return ttUSHORT(data+10); +} + +STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length) +{ + stbtt_uint8 *data = info->data + info->kern; + int k, length; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + length = ttUSHORT(data+10); + if (table_length < length) + length = table_length; + + for (k = 0; k < length; k++) + { + table[k].glyph1 = ttUSHORT(data+18+(k*6)); + table[k].glyph2 = ttUSHORT(data+20+(k*6)); + table[k].advance = ttSHORT(data+22+(k*6)); + } + + return length; +} + +static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint8 *data = info->data + info->kern; + stbtt_uint32 needle, straw; + int l, r, m; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + l = 0; + r = ttUSHORT(data+10) - 1; + needle = glyph1 << 16 | glyph2; + while (l <= r) { + m = (l + r) >> 1; + straw = ttULONG(data+18+(m*6)); // note: unaligned read + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else + return ttSHORT(data+22+(m*6)); + } + return 0; +} + +static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) +{ + stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); + switch (coverageFormat) { + case 1: { + stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); + + // Binary search. + stbtt_int32 l=0, r=glyphCount-1, m; + int straw, needle=glyph; + while (l <= r) { + stbtt_uint8 *glyphArray = coverageTable + 4; + stbtt_uint16 glyphID; + m = (l + r) >> 1; + glyphID = ttUSHORT(glyphArray + 2 * m); + straw = glyphID; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + return m; + } + } + break; + } + + case 2: { + stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); + stbtt_uint8 *rangeArray = coverageTable + 4; + + // Binary search. + stbtt_int32 l=0, r=rangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *rangeRecord; + m = (l + r) >> 1; + rangeRecord = rangeArray + 6 * m; + strawStart = ttUSHORT(rangeRecord); + strawEnd = ttUSHORT(rangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else { + stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); + return startCoverageIndex + glyph - strawStart; + } + } + break; + } + + default: return -1; // unsupported + } + + return -1; +} + +static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) +{ + stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); + switch (classDefFormat) + { + case 1: { + stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); + stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); + stbtt_uint8 *classDef1ValueArray = classDefTable + 6; + + if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) + return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); + break; + } + + case 2: { + stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); + stbtt_uint8 *classRangeRecords = classDefTable + 4; + + // Binary search. + stbtt_int32 l=0, r=classRangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *classRangeRecord; + m = (l + r) >> 1; + classRangeRecord = classRangeRecords + 6 * m; + strawStart = ttUSHORT(classRangeRecord); + strawEnd = ttUSHORT(classRangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else + return (stbtt_int32)ttUSHORT(classRangeRecord + 4); + } + break; + } + + default: + return -1; // Unsupported definition type, return an error. + } + + // "All glyphs not assigned to a class fall into class 0". (OpenType spec) + return 0; +} + +// Define to STBTT_assert(x) if you want to break on unimplemented formats. +#define STBTT_GPOS_TODO_assert(x) + +static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint16 lookupListOffset; + stbtt_uint8 *lookupList; + stbtt_uint16 lookupCount; + stbtt_uint8 *data; + stbtt_int32 i, sti; + + if (!info->gpos) return 0; + + data = info->data + info->gpos; + + if (ttUSHORT(data+0) != 1) return 0; // Major version 1 + if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 + + lookupListOffset = ttUSHORT(data+8); + lookupList = data + lookupListOffset; + lookupCount = ttUSHORT(lookupList); + + for (i=0; i= pairSetCount) return 0; + + needle=glyph2; + r=pairValueCount-1; + l=0; + + // Binary search. + while (l <= r) { + stbtt_uint16 secondGlyph; + stbtt_uint8 *pairValue; + m = (l + r) >> 1; + pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; + secondGlyph = ttUSHORT(pairValue); + straw = secondGlyph; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + stbtt_int16 xAdvance = ttSHORT(pairValue + 2); + return xAdvance; + } + } + } else + return 0; + break; + } + + case 2: { + stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); + stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); + if (valueFormat1 == 4 && valueFormat2 == 0) { // Support more formats? + stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); + stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); + int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); + int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); + + stbtt_uint16 class1Count = ttUSHORT(table + 12); + stbtt_uint16 class2Count = ttUSHORT(table + 14); + stbtt_uint8 *class1Records, *class2Records; + stbtt_int16 xAdvance; + + if (glyph1class < 0 || glyph1class >= class1Count) return 0; // malformed + if (glyph2class < 0 || glyph2class >= class2Count) return 0; // malformed + + class1Records = table + 16; + class2Records = class1Records + 2 * (glyph1class * class2Count); + xAdvance = ttSHORT(class2Records + 2 * glyph2class); + return xAdvance; + } else + return 0; + break; + } + + default: + return 0; // Unsupported position format + } + } + } + + return 0; +} + +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) +{ + int xAdvance = 0; + + if (info->gpos) + xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); + else if (info->kern) + xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); + + return xAdvance; +} + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2) +{ + if (!info->kern && !info->gpos) // if no kerning table, don't waste time looking up both codepoint->glyphs + return 0; + return stbtt_GetGlyphKernAdvance(info, stbtt_FindGlyphIndex(info,ch1), stbtt_FindGlyphIndex(info,ch2)); +} + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing) +{ + stbtt_GetGlyphHMetrics(info, stbtt_FindGlyphIndex(info,codepoint), advanceWidth, leftSideBearing); +} + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap) +{ + if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4); + if (descent) *descent = ttSHORT(info->data+info->hhea + 6); + if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8); +} + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap) +{ + int tab = stbtt__find_table(info->data, info->fontstart, "OS/2"); + if (!tab) + return 0; + if (typoAscent ) *typoAscent = ttSHORT(info->data+tab + 68); + if (typoDescent) *typoDescent = ttSHORT(info->data+tab + 70); + if (typoLineGap) *typoLineGap = ttSHORT(info->data+tab + 72); + return 1; +} + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1) +{ + *x0 = ttSHORT(info->data + info->head + 36); + *y0 = ttSHORT(info->data + info->head + 38); + *x1 = ttSHORT(info->data + info->head + 40); + *y1 = ttSHORT(info->data + info->head + 42); +} + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height) +{ + int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea + 6); + return (float) height / fheight; +} + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels) +{ + int unitsPerEm = ttUSHORT(info->data + info->head + 18); + return pixels / unitsPerEm; +} + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) +{ + STBTT_free(v, info->userdata); +} + +STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl) +{ + int i; + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc_list = data + stbtt__get_svg((stbtt_fontinfo *) info); + + int numEntries = ttUSHORT(svg_doc_list); + stbtt_uint8 *svg_docs = svg_doc_list + 2; + + for(i=0; i= ttUSHORT(svg_doc)) && (gl <= ttUSHORT(svg_doc + 2))) + return svg_doc; + } + return 0; +} + +STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg) +{ + stbtt_uint8 *data = info->data; + stbtt_uint8 *svg_doc; + + if (info->svg == 0) + return 0; + + svg_doc = stbtt_FindSVGDoc(info, gl); + if (svg_doc != NULL) { + *svg = (char *) data + info->svg + ttULONG(svg_doc + 4); + return ttULONG(svg_doc + 8); + } else { + return 0; + } +} + +STBTT_DEF int stbtt_GetCodepointSVG(const stbtt_fontinfo *info, int unicode_codepoint, const char **svg) +{ + return stbtt_GetGlyphSVG(info, stbtt_FindGlyphIndex(info, unicode_codepoint), svg); +} + +////////////////////////////////////////////////////////////////////////////// +// +// antialiasing software rasterizer +// + +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning + if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) { + // e.g. space character + if (ix0) *ix0 = 0; + if (iy0) *iy0 = 0; + if (ix1) *ix1 = 0; + if (iy1) *iy1 = 0; + } else { + // move to integral bboxes (treating pixels as little squares, what pixels get touched)? + if (ix0) *ix0 = STBTT_ifloor( x0 * scale_x + shift_x); + if (iy0) *iy0 = STBTT_ifloor(-y1 * scale_y + shift_y); + if (ix1) *ix1 = STBTT_iceil ( x1 * scale_x + shift_x); + if (iy1) *iy1 = STBTT_iceil (-y0 * scale_y + shift_y); + } +} + +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y,0.0f,0.0f, ix0, iy0, ix1, iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font,codepoint), scale_x, scale_y,shift_x,shift_y, ix0,iy0,ix1,iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y,0.0f,0.0f, ix0,iy0,ix1,iy1); +} + +////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer + +typedef struct stbtt__hheap_chunk +{ + struct stbtt__hheap_chunk *next; +} stbtt__hheap_chunk; + +typedef struct stbtt__hheap +{ + struct stbtt__hheap_chunk *head; + void *first_free; + int num_remaining_in_head_chunk; +} stbtt__hheap; + +static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata) +{ + if (hh->first_free) { + void *p = hh->first_free; + hh->first_free = * (void **) p; + return p; + } else { + if (hh->num_remaining_in_head_chunk == 0) { + int count = (size < 32 ? 2000 : size < 128 ? 800 : 100); + stbtt__hheap_chunk *c = (stbtt__hheap_chunk *) STBTT_malloc(sizeof(stbtt__hheap_chunk) + size * count, userdata); + if (c == NULL) + return NULL; + c->next = hh->head; + hh->head = c; + hh->num_remaining_in_head_chunk = count; + } + --hh->num_remaining_in_head_chunk; + return (char *) (hh->head) + sizeof(stbtt__hheap_chunk) + size * hh->num_remaining_in_head_chunk; + } +} + +static void stbtt__hheap_free(stbtt__hheap *hh, void *p) +{ + *(void **) p = hh->first_free; + hh->first_free = p; +} + +static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata) +{ + stbtt__hheap_chunk *c = hh->head; + while (c) { + stbtt__hheap_chunk *n = c->next; + STBTT_free(c, userdata); + c = n; + } +} + +typedef struct stbtt__edge { + float x0,y0, x1,y1; + int invert; +} stbtt__edge; + + +typedef struct stbtt__active_edge +{ + struct stbtt__active_edge *next; + #if STBTT_RASTERIZER_VERSION==1 + int x,dx; + float ey; + int direction; + #elif STBTT_RASTERIZER_VERSION==2 + float fx,fdx,fdy; + float direction; + float sy; + float ey; + #else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" + #endif +} stbtt__active_edge; + +#if STBTT_RASTERIZER_VERSION == 1 +#define STBTT_FIXSHIFT 10 +#define STBTT_FIX (1 << STBTT_FIXSHIFT) +#define STBTT_FIXMASK (STBTT_FIX-1) + +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + if (!z) return z; + + // round dx down to avoid overshooting + if (dxdy < 0) + z->dx = -STBTT_ifloor(STBTT_FIX * -dxdy); + else + z->dx = STBTT_ifloor(STBTT_FIX * dxdy); + + z->x = STBTT_ifloor(STBTT_FIX * e->x0 + z->dx * (start_point - e->y0)); // use z->dx so when we offset later it's by the same amount + z->x -= off_x * STBTT_FIX; + + z->ey = e->y1; + z->next = 0; + z->direction = e->invert ? 1 : -1; + return z; +} +#elif STBTT_RASTERIZER_VERSION == 2 +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + //STBTT_assert(e->y0 <= start_point); + if (!z) return z; + z->fdx = dxdy; + z->fdy = dxdy != 0.0f ? (1.0f/dxdy) : 0.0f; + z->fx = e->x0 + dxdy * (start_point - e->y0); + z->fx -= off_x; + z->direction = e->invert ? 1.0f : -1.0f; + z->sy = e->y0; + z->ey = e->y1; + z->next = 0; + return z; +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#if STBTT_RASTERIZER_VERSION == 1 +// note: this routine clips fills that extend off the edges... ideally this +// wouldn't happen, but it could happen if the truetype glyph bounding boxes +// are wrong, or if the user supplies a too-small bitmap +static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight) +{ + // non-zero winding fill + int x0=0, w=0; + + while (e) { + if (w == 0) { + // if we're currently at zero, we need to record the edge start point + x0 = e->x; w += e->direction; + } else { + int x1 = e->x; w += e->direction; + // if we went to zero, we need to draw + if (w == 0) { + int i = x0 >> STBTT_FIXSHIFT; + int j = x1 >> STBTT_FIXSHIFT; + + if (i < len && j >= 0) { + if (i == j) { + // x0,x1 are the same pixel, so compute combined coverage + scanline[i] = scanline[i] + (stbtt_uint8) ((x1 - x0) * max_weight >> STBTT_FIXSHIFT); + } else { + if (i >= 0) // add antialiasing for x0 + scanline[i] = scanline[i] + (stbtt_uint8) (((STBTT_FIX - (x0 & STBTT_FIXMASK)) * max_weight) >> STBTT_FIXSHIFT); + else + i = -1; // clip + + if (j < len) // add antialiasing for x1 + scanline[j] = scanline[j] + (stbtt_uint8) (((x1 & STBTT_FIXMASK) * max_weight) >> STBTT_FIXSHIFT); + else + j = len; // clip + + for (++i; i < j; ++i) // fill pixels between x0 and x1 + scanline[i] = scanline[i] + (stbtt_uint8) max_weight; + } + } + } + } + + e = e->next; + } +} + +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0; + int max_weight = (255 / vsubsample); // weight per vertical scanline + int s; // vertical subsample index + unsigned char scanline_data[512], *scanline; + + if (result->w > 512) + scanline = (unsigned char *) STBTT_malloc(result->w, userdata); + else + scanline = scanline_data; + + y = off_y * vsubsample; + e[n].y0 = (off_y + result->h) * (float) vsubsample + 1; + + while (j < result->h) { + STBTT_memset(scanline, 0, result->w); + for (s=0; s < vsubsample; ++s) { + // find center of pixel for this scanline + float scan_y = y + 0.5f; + stbtt__active_edge **step = &active; + + // update all active edges; + // remove all active edges that terminate before the center of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + z->x += z->dx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + } + + // resort the list if needed + for(;;) { + int changed=0; + step = &active; + while (*step && (*step)->next) { + if ((*step)->x > (*step)->next->x) { + stbtt__active_edge *t = *step; + stbtt__active_edge *q = t->next; + + t->next = q->next; + q->next = t; + *step = q; + changed = 1; + } + step = &(*step)->next; + } + if (!changed) break; + } + + // insert all edges that start before the center of this scanline -- omit ones that also end on this scanline + while (e->y0 <= scan_y) { + if (e->y1 > scan_y) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y, userdata); + if (z != NULL) { + // find insertion point + if (active == NULL) + active = z; + else if (z->x < active->x) { + // insert at front + z->next = active; + active = z; + } else { + // find thing to insert AFTER + stbtt__active_edge *p = active; + while (p->next && p->next->x < z->x) + p = p->next; + // at this point, p->next->x is NOT < z->x + z->next = p->next; + p->next = z; + } + } + } + ++e; + } + + // now process all active edges in XOR fashion + if (active) + stbtt__fill_active_edges(scanline, result->w, active, max_weight); + + ++y; + } + STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} + +#elif STBTT_RASTERIZER_VERSION == 2 + +// the edge passed in here does not cross the vertical line at x or the vertical line at x+1 +// (i.e. it has already been clipped to those) +static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1) +{ + if (y0 == y1) return; + STBTT_assert(y0 < y1); + STBTT_assert(e->sy <= e->ey); + if (y0 > e->ey) return; + if (y1 < e->sy) return; + if (y0 < e->sy) { + x0 += (x1-x0) * (e->sy - y0) / (y1-y0); + y0 = e->sy; + } + if (y1 > e->ey) { + x1 += (x1-x0) * (e->ey - y1) / (y1-y0); + y1 = e->ey; + } + + if (x0 == x) + STBTT_assert(x1 <= x+1); + else if (x0 == x+1) + STBTT_assert(x1 >= x); + else if (x0 <= x) + STBTT_assert(x1 <= x); + else if (x0 >= x+1) + STBTT_assert(x1 >= x+1); + else + STBTT_assert(x1 >= x && x1 <= x+1); + + if (x0 <= x && x1 <= x) + scanline[x] += e->direction * (y1-y0); + else if (x0 >= x+1 && x1 >= x+1) + ; + else { + STBTT_assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1); + scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position + } +} + +static float stbtt__sized_trapezoid_area(float height, float top_width, float bottom_width) +{ + STBTT_assert(top_width >= 0); + STBTT_assert(bottom_width >= 0); + return (top_width + bottom_width) / 2.0f * height; +} + +static float stbtt__position_trapezoid_area(float height, float tx0, float tx1, float bx0, float bx1) +{ + return stbtt__sized_trapezoid_area(height, tx1 - tx0, bx1 - bx0); +} + +static float stbtt__sized_triangle_area(float height, float width) +{ + return height * width / 2; +} + +static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) +{ + float y_bottom = y_top+1; + + while (e) { + // brute force every pixel + + // compute intersection points with top & bottom + STBTT_assert(e->ey >= y_top); + + if (e->fdx == 0) { + float x0 = e->fx; + if (x0 < len) { + if (x0 >= 0) { + stbtt__handle_clipped_edge(scanline,(int) x0,e, x0,y_top, x0,y_bottom); + stbtt__handle_clipped_edge(scanline_fill-1,(int) x0+1,e, x0,y_top, x0,y_bottom); + } else { + stbtt__handle_clipped_edge(scanline_fill-1,0,e, x0,y_top, x0,y_bottom); + } + } + } else { + float x0 = e->fx; + float dx = e->fdx; + float xb = x0 + dx; + float x_top, x_bottom; + float sy0,sy1; + float dy = e->fdy; + STBTT_assert(e->sy <= y_bottom && e->ey >= y_top); + + // compute endpoints of line segment clipped to this scanline (if the + // line segment starts on this scanline. x0 is the intersection of the + // line with y_top, but that may be off the line segment. + if (e->sy > y_top) { + x_top = x0 + dx * (e->sy - y_top); + sy0 = e->sy; + } else { + x_top = x0; + sy0 = y_top; + } + if (e->ey < y_bottom) { + x_bottom = x0 + dx * (e->ey - y_top); + sy1 = e->ey; + } else { + x_bottom = xb; + sy1 = y_bottom; + } + + if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { + // from here on, we don't have to range check x values + + if ((int) x_top == (int) x_bottom) { + float height; + // simple case, only spans one pixel + int x = (int) x_top; + height = (sy1 - sy0) * e->direction; + STBTT_assert(x >= 0 && x < len); + scanline[x] += stbtt__position_trapezoid_area(height, x_top, x+1.0f, x_bottom, x+1.0f); + scanline_fill[x] += height; // everything right of this pixel is filled + } else { + int x,x1,x2; + float y_crossing, y_final, step, sign, area; + // covers 2+ pixels + if (x_top > x_bottom) { + // flip scanline vertically; signed area is the same + float t; + sy0 = y_bottom - (sy0 - y_top); + sy1 = y_bottom - (sy1 - y_top); + t = sy0, sy0 = sy1, sy1 = t; + t = x_bottom, x_bottom = x_top, x_top = t; + dx = -dx; + dy = -dy; + t = x0, x0 = xb, xb = t; + } + STBTT_assert(dy >= 0); + STBTT_assert(dx >= 0); + + x1 = (int) x_top; + x2 = (int) x_bottom; + // compute intersection with y axis at x1+1 + y_crossing = y_top + dy * (x1+1 - x0); + + // compute intersection with y axis at x2 + y_final = y_top + dy * (x2 - x0); + + // x1 x_top x2 x_bottom + // y_top +------|-----+------------+------------+--------|---+------------+ + // | | | | | | + // | | | | | | + // sy0 | Txxxxx|............|............|............|............| + // y_crossing | *xxxxx.......|............|............|............| + // | | xxxxx..|............|............|............| + // | | /- xx*xxxx........|............|............| + // | | dy < | xxxxxx..|............|............| + // y_final | | \- | xx*xxx.........|............| + // sy1 | | | | xxxxxB...|............| + // | | | | | | + // | | | | | | + // y_bottom +------------+------------+------------+------------+------------+ + // + // goal is to measure the area covered by '.' in each pixel + + // if x2 is right at the right edge of x1, y_crossing can blow up, github #1057 + // @TODO: maybe test against sy1 rather than y_bottom? + if (y_crossing > y_bottom) + y_crossing = y_bottom; + + sign = e->direction; + + // area of the rectangle covered from sy0..y_crossing + area = sign * (y_crossing-sy0); + + // area of the triangle (x_top,sy0), (x1+1,sy0), (x1+1,y_crossing) + scanline[x1] += stbtt__sized_triangle_area(area, x1+1 - x_top); + + // check if final y_crossing is blown up; no test case for this + if (y_final > y_bottom) { + int denom = (x2 - (x1+1)); + y_final = y_bottom; + if (denom != 0) { // [DEAR IMGUI] Avoid div by zero (https://github.com/nothings/stb/issues/1316) + dy = (y_final - y_crossing ) / denom; // if denom=0, y_final = y_crossing, so y_final <= y_bottom + } + } + + // in second pixel, area covered by line segment found in first pixel + // is always a rectangle 1 wide * the height of that line segment; this + // is exactly what the variable 'area' stores. it also gets a contribution + // from the line segment within it. the THIRD pixel will get the first + // pixel's rectangle contribution, the second pixel's rectangle contribution, + // and its own contribution. the 'own contribution' is the same in every pixel except + // the leftmost and rightmost, a trapezoid that slides down in each pixel. + // the second pixel's contribution to the third pixel will be the + // rectangle 1 wide times the height change in the second pixel, which is dy. + + step = sign * dy * 1; // dy is dy/dx, change in y for every 1 change in x, + // which multiplied by 1-pixel-width is how much pixel area changes for each step in x + // so the area advances by 'step' every time + + for (x = x1+1; x < x2; ++x) { + scanline[x] += area + step/2; // area of trapezoid is 1*step/2 + area += step; + } + STBTT_assert(STBTT_fabs(area) <= 1.01f); // accumulated error from area += step unless we round step down + STBTT_assert(sy1 > y_final-0.01f); + + // area covered in the last pixel is the rectangle from all the pixels to the left, + // plus the trapezoid filled by the line segment in this pixel all the way to the right edge + scanline[x2] += area + sign * stbtt__position_trapezoid_area(sy1-y_final, (float) x2, x2+1.0f, x_bottom, x2+1.0f); + + // the rest of the line is filled based on the total height of the line segment in this pixel + scanline_fill[x2] += sign * (sy1-sy0); + } + } else { + // if edge goes outside of box we're drawing, we require + // clipping logic. since this does not match the intended use + // of this library, we use a different, very slow brute + // force implementation + // note though that this does happen some of the time because + // x_top and x_bottom can be extrapolated at the top & bottom of + // the shape and actually lie outside the bounding box + int x; + for (x=0; x < len; ++x) { + // cases: + // + // there can be up to two intersections with the pixel. any intersection + // with left or right edges can be handled by splitting into two (or three) + // regions. intersections with top & bottom do not necessitate case-wise logic. + // + // the old way of doing this found the intersections with the left & right edges, + // then used some simple logic to produce up to three segments in sorted order + // from top-to-bottom. however, this had a problem: if an x edge was epsilon + // across the x border, then the corresponding y position might not be distinct + // from the other y segment, and it might ignored as an empty segment. to avoid + // that, we need to explicitly produce segments based on x positions. + + // rename variables to clearly-defined pairs + float y0 = y_top; + float x1 = (float) (x); + float x2 = (float) (x+1); + float x3 = xb; + float y3 = y_bottom; + + // x = e->x + e->dx * (y-y_top) + // (y-y_top) = (x - e->x) / e->dx + // y = (x - e->x) / e->dx + y_top + float y1 = (x - x0) / dx + y_top; + float y2 = (x+1 - x0) / dx + y_top; + + if (x0 < x1 && x3 > x2) { // three segments descending down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x1 && x0 > x2) { // three segments descending down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x1 && x3 > x1) { // two segments across x, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x3 < x1 && x0 > x1) { // two segments across x, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x2 && x3 > x2) { // two segments across x+1, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x2 && x0 > x2) { // two segments across x+1, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else { // one segment + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x3,y3); + } + } + } + } + e = e->next; + } +} + +// directly AA rasterize edges w/o supersampling +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0, i; + float scanline_data[129], *scanline, *scanline2; + + STBTT__NOTUSED(vsubsample); + + if (result->w > 64) + scanline = (float *) STBTT_malloc((result->w*2+1) * sizeof(float), userdata); + else + scanline = scanline_data; + + scanline2 = scanline + result->w; + + y = off_y; + e[n].y0 = (float) (off_y + result->h) + 1; + + while (j < result->h) { + // find center of pixel for this scanline + float scan_y_top = y + 0.0f; + float scan_y_bottom = y + 1.0f; + stbtt__active_edge **step = &active; + + STBTT_memset(scanline , 0, result->w*sizeof(scanline[0])); + STBTT_memset(scanline2, 0, (result->w+1)*sizeof(scanline[0])); + + // update all active edges; + // remove all active edges that terminate before the top of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y_top) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + step = &((*step)->next); // advance through list + } + } + + // insert all edges that start before the bottom of this scanline + while (e->y0 <= scan_y_bottom) { + if (e->y0 != e->y1) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y_top, userdata); + if (z != NULL) { + if (j == 0 && off_y != 0) { + if (z->ey < scan_y_top) { + // this can happen due to subpixel positioning and some kind of fp rounding error i think + z->ey = scan_y_top; + } + } + STBTT_assert(z->ey >= scan_y_top); // if we get really unlucky a tiny bit of an edge can be out of bounds + // insert at front + z->next = active; + active = z; + } + } + ++e; + } + + // now process all active edges + if (active) + stbtt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top); + + { + float sum = 0; + for (i=0; i < result->w; ++i) { + float k; + int m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = (float) STBTT_fabs(k)*255 + 0.5f; + m = (int) k; + if (m > 255) m = 255; + result->pixels[j*result->stride + i] = (unsigned char) m; + } + } + // advance all the edges + step = &active; + while (*step) { + stbtt__active_edge *z = *step; + z->fx += z->fdx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + + ++y; + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0) + +static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n) +{ + int i,j; + for (i=1; i < n; ++i) { + stbtt__edge t = p[i], *a = &t; + j = i; + while (j > 0) { + stbtt__edge *b = &p[j-1]; + int c = STBTT__COMPARE(a,b); + if (!c) break; + p[j] = p[j-1]; + --j; + } + if (i != j) + p[j] = t; + } +} + +static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n) +{ + /* threshold for transitioning to insertion sort */ + while (n > 12) { + stbtt__edge t; + int c01,c12,c,m,i,j; + + /* compute median of three */ + m = n >> 1; + c01 = STBTT__COMPARE(&p[0],&p[m]); + c12 = STBTT__COMPARE(&p[m],&p[n-1]); + /* if 0 >= mid >= end, or 0 < mid < end, then use mid */ + if (c01 != c12) { + /* otherwise, we'll need to swap something else to middle */ + int z; + c = STBTT__COMPARE(&p[0],&p[n-1]); + /* 0>mid && midn => n; 0 0 */ + /* 0n: 0>n => 0; 0 n */ + z = (c == c12) ? 0 : n-1; + t = p[z]; + p[z] = p[m]; + p[m] = t; + } + /* now p[m] is the median-of-three */ + /* swap it to the beginning so it won't move around */ + t = p[0]; + p[0] = p[m]; + p[m] = t; + + /* partition loop */ + i=1; + j=n-1; + for(;;) { + /* handling of equality is crucial here */ + /* for sentinels & efficiency with duplicates */ + for (;;++i) { + if (!STBTT__COMPARE(&p[i], &p[0])) break; + } + for (;;--j) { + if (!STBTT__COMPARE(&p[0], &p[j])) break; + } + /* make sure we haven't crossed */ + if (i >= j) break; + t = p[i]; + p[i] = p[j]; + p[j] = t; + + ++i; + --j; + } + /* recurse on smaller side, iterate on larger */ + if (j < (n-i)) { + stbtt__sort_edges_quicksort(p,j); + p = p+i; + n = n-i; + } else { + stbtt__sort_edges_quicksort(p+i, n-i); + n = j; + } + } +} + +static void stbtt__sort_edges(stbtt__edge *p, int n) +{ + stbtt__sort_edges_quicksort(p, n); + stbtt__sort_edges_ins_sort(p, n); +} + +typedef struct +{ + float x,y; +} stbtt__point; + +static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata) +{ + float y_scale_inv = invert ? -scale_y : scale_y; + stbtt__edge *e; + int n,i,j,k,m; +#if STBTT_RASTERIZER_VERSION == 1 + int vsubsample = result->h < 8 ? 15 : 5; +#elif STBTT_RASTERIZER_VERSION == 2 + int vsubsample = 1; +#else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + // vsubsample should divide 255 evenly; otherwise we won't reach full opacity + + // now we have to blow out the windings into explicit edge lists + n = 0; + for (i=0; i < windings; ++i) + n += wcount[i]; + + e = (stbtt__edge *) STBTT_malloc(sizeof(*e) * (n+1), userdata); // add an extra one as a sentinel + if (e == 0) return; + n = 0; + + m=0; + for (i=0; i < windings; ++i) { + stbtt__point *p = pts + m; + m += wcount[i]; + j = wcount[i]-1; + for (k=0; k < wcount[i]; j=k++) { + int a=k,b=j; + // skip the edge if horizontal + if (p[j].y == p[k].y) + continue; + // add edge from j to k to the list + e[n].invert = 0; + if (invert ? p[j].y > p[k].y : p[j].y < p[k].y) { + e[n].invert = 1; + a=j,b=k; + } + e[n].x0 = p[a].x * scale_x + shift_x; + e[n].y0 = (p[a].y * y_scale_inv + shift_y) * vsubsample; + e[n].x1 = p[b].x * scale_x + shift_x; + e[n].y1 = (p[b].y * y_scale_inv + shift_y) * vsubsample; + ++n; + } + } + + // now sort the edges by their highest point (should snap to integer, and then by x) + //STBTT_sort(e, n, sizeof(e[0]), stbtt__edge_compare); + stbtt__sort_edges(e, n); + + // now, traverse the scanlines and find the intersections on each scanline, use xor winding rule + stbtt__rasterize_sorted_edges(result, e, n, vsubsample, off_x, off_y, userdata); + + STBTT_free(e, userdata); +} + +static void stbtt__add_point(stbtt__point *points, int n, float x, float y) +{ + if (!points) return; // during first pass, it's unallocated + points[n].x = x; + points[n].y = y; +} + +// tessellate until threshold p is happy... @TODO warped to compensate for non-linear stretching +static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n) +{ + // midpoint + float mx = (x0 + 2*x1 + x2)/4; + float my = (y0 + 2*y1 + y2)/4; + // versus directly drawn line + float dx = (x0+x2)/2 - mx; + float dy = (y0+y2)/2 - my; + if (n > 16) // 65536 segments on one curve better be enough! + return 1; + if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA + stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x2,y2); + *num_points = *num_points+1; + } + return 1; +} + +static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n) +{ + // @TODO this "flatness" calculation is just made-up nonsense that seems to work well enough + float dx0 = x1-x0; + float dy0 = y1-y0; + float dx1 = x2-x1; + float dy1 = y2-y1; + float dx2 = x3-x2; + float dy2 = y3-y2; + float dx = x3-x0; + float dy = y3-y0; + float longlen = (float) (STBTT_sqrt(dx0*dx0+dy0*dy0)+STBTT_sqrt(dx1*dx1+dy1*dy1)+STBTT_sqrt(dx2*dx2+dy2*dy2)); + float shortlen = (float) STBTT_sqrt(dx*dx+dy*dy); + float flatness_squared = longlen*longlen-shortlen*shortlen; + + if (n > 16) // 65536 segments on one curve better be enough! + return; + + if (flatness_squared > objspace_flatness_squared) { + float x01 = (x0+x1)/2; + float y01 = (y0+y1)/2; + float x12 = (x1+x2)/2; + float y12 = (y1+y2)/2; + float x23 = (x2+x3)/2; + float y23 = (y2+y3)/2; + + float xa = (x01+x12)/2; + float ya = (y01+y12)/2; + float xb = (x12+x23)/2; + float yb = (y12+y23)/2; + + float mx = (xa+xb)/2; + float my = (ya+yb)/2; + + stbtt__tesselate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x3,y3); + *num_points = *num_points+1; + } +} + +// returns number of contours +static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) +{ + stbtt__point *points=0; + int num_points=0; + + float objspace_flatness_squared = objspace_flatness * objspace_flatness; + int i,n=0,start=0, pass; + + // count how many "moves" there are to get the contour count + for (i=0; i < num_verts; ++i) + if (vertices[i].type == STBTT_vmove) + ++n; + + *num_contours = n; + if (n == 0) return 0; + + *contour_lengths = (int *) STBTT_malloc(sizeof(**contour_lengths) * n, userdata); + + if (*contour_lengths == 0) { + *num_contours = 0; + return 0; + } + + // make two passes through the points so we don't need to realloc + for (pass=0; pass < 2; ++pass) { + float x=0,y=0; + if (pass == 1) { + points = (stbtt__point *) STBTT_malloc(num_points * sizeof(points[0]), userdata); + if (points == NULL) goto error; + } + num_points = 0; + n= -1; + for (i=0; i < num_verts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + // start the next contour + if (n >= 0) + (*contour_lengths)[n] = num_points - start; + ++n; + start = num_points; + + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x,y); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x, y); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + (*contour_lengths)[n] = num_points - start; + } + + return points; +error: + STBTT_free(points, userdata); + STBTT_free(*contour_lengths, userdata); + *contour_lengths = 0; + *num_contours = 0; + return NULL; +} + +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata) +{ + float scale = scale_x > scale_y ? scale_y : scale_x; + int winding_count = 0; + int *winding_lengths = NULL; + stbtt__point *windings = stbtt_FlattenCurves(vertices, num_verts, flatness_in_pixels / scale, &winding_lengths, &winding_count, userdata); + if (windings) { + stbtt__rasterize(result, windings, winding_lengths, winding_count, scale_x, scale_y, shift_x, shift_y, x_off, y_off, invert, userdata); + STBTT_free(winding_lengths, userdata); + STBTT_free(windings, userdata); + } +} + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + int ix0,iy0,ix1,iy1; + stbtt__bitmap gbm; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + + if (scale_x == 0) scale_x = scale_y; + if (scale_y == 0) { + if (scale_x == 0) { + STBTT_free(vertices, info->userdata); + return NULL; + } + scale_y = scale_x; + } + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,&ix1,&iy1); + + // now we get the size + gbm.w = (ix1 - ix0); + gbm.h = (iy1 - iy0); + gbm.pixels = NULL; // in case we error + + if (width ) *width = gbm.w; + if (height) *height = gbm.h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + if (gbm.w && gbm.h) { + gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata); + if (gbm.pixels) { + gbm.stride = gbm.w; + + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0, iy0, 1, info->userdata); + } + } + STBTT_free(vertices, info->userdata); + return gbm.pixels; +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y, 0.0f, 0.0f, glyph, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph) +{ + int ix0,iy0; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + stbtt__bitmap gbm; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,0,0); + gbm.pixels = output; + gbm.w = out_w; + gbm.h = out_h; + gbm.stride = out_stride; + + if (gbm.w && gbm.h) + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0,iy0, 1, info->userdata); + + STBTT_free(vertices, info->userdata); +} + +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, glyph); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y,shift_x,shift_y, stbtt_FindGlyphIndex(info,codepoint), width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixelPrefilter(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, oversample_x, oversample_y, sub_x, sub_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetCodepointBitmapSubpixel(info, scale_x, scale_y, 0.0f,0.0f, codepoint, width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint) +{ + stbtt_MakeCodepointBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, codepoint); +} + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-CRAPPY packing to keep source code small + +static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata) +{ + float scale; + int x,y,bottom_y, i; + stbtt_fontinfo f; + f.userdata = NULL; + if (!stbtt_InitFont(&f, data, offset)) + return -1; + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + x=y=1; + bottom_y = 1; + + scale = stbtt_ScaleForPixelHeight(&f, pixel_height); + + for (i=0; i < num_chars; ++i) { + int advance, lsb, x0,y0,x1,y1,gw,gh; + int g = stbtt_FindGlyphIndex(&f, first_char + i); + stbtt_GetGlyphHMetrics(&f, g, &advance, &lsb); + stbtt_GetGlyphBitmapBox(&f, g, scale,scale, &x0,&y0,&x1,&y1); + gw = x1-x0; + gh = y1-y0; + if (x + gw + 1 >= pw) + y = bottom_y, x = 1; // advance to next row + if (y + gh + 1 >= ph) // check if it fits vertically AFTER potentially moving to next row + return -i; + STBTT_assert(x+gw < pw); + STBTT_assert(y+gh < ph); + stbtt_MakeGlyphBitmap(&f, pixels+x+y*pw, gw,gh,pw, scale,scale, g); + chardata[i].x0 = (stbtt_int16) x; + chardata[i].y0 = (stbtt_int16) y; + chardata[i].x1 = (stbtt_int16) (x + gw); + chardata[i].y1 = (stbtt_int16) (y + gh); + chardata[i].xadvance = scale * advance; + chardata[i].xoff = (float) x0; + chardata[i].yoff = (float) y0; + x = x + gw + 1; + if (y+gh+1 > bottom_y) + bottom_y = y+gh+1; + } + return bottom_y; +} + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule) +{ + float d3d_bias = opengl_fillrule ? 0 : -0.5f; + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_bakedchar *b = chardata + char_index; + int round_x = STBTT_ifloor((*xpos + b->xoff) + 0.5f); + int round_y = STBTT_ifloor((*ypos + b->yoff) + 0.5f); + + q->x0 = round_x + d3d_bias; + q->y0 = round_y + d3d_bias; + q->x1 = round_x + b->x1 - b->x0 + d3d_bias; + q->y1 = round_y + b->y1 - b->y0 + d3d_bias; + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// rectangle packing replacement routines if you don't have stb_rect_pack.h +// + +#ifndef STB_RECT_PACK_VERSION + +typedef int stbrp_coord; + +//////////////////////////////////////////////////////////////////////////////////// +// // +// // +// COMPILER WARNING ?!?!? // +// // +// // +// if you get a compile warning due to these symbols being defined more than // +// once, move #include "stb_rect_pack.h" before #include "stb_truetype.h" // +// // +//////////////////////////////////////////////////////////////////////////////////// + +typedef struct +{ + int width,height; + int x,y,bottom_y; +} stbrp_context; + +typedef struct +{ + unsigned char x; +} stbrp_node; + +struct stbrp_rect +{ + stbrp_coord x,y; + int id,w,h,was_packed; +}; + +static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes) +{ + con->width = pw; + con->height = ph; + con->x = 0; + con->y = 0; + con->bottom_y = 0; + STBTT__NOTUSED(nodes); + STBTT__NOTUSED(num_nodes); +} + +static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects) +{ + int i; + for (i=0; i < num_rects; ++i) { + if (con->x + rects[i].w > con->width) { + con->x = 0; + con->y = con->bottom_y; + } + if (con->y + rects[i].h > con->height) + break; + rects[i].x = con->x; + rects[i].y = con->y; + rects[i].was_packed = 1; + con->x += rects[i].w; + if (con->y + rects[i].h > con->bottom_y) + con->bottom_y = con->y + rects[i].h; + } + for ( ; i < num_rects; ++i) + rects[i].was_packed = 0; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-AWESOME (tm Ryan Gordon) packing using stb_rect_pack.h. If +// stb_rect_pack.h isn't available, it uses the BakeFontBitmap strategy. + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context) +{ + stbrp_context *context = (stbrp_context *) STBTT_malloc(sizeof(*context) ,alloc_context); + int num_nodes = pw - padding; + stbrp_node *nodes = (stbrp_node *) STBTT_malloc(sizeof(*nodes ) * num_nodes,alloc_context); + + if (context == NULL || nodes == NULL) { + if (context != NULL) STBTT_free(context, alloc_context); + if (nodes != NULL) STBTT_free(nodes , alloc_context); + return 0; + } + + spc->user_allocator_context = alloc_context; + spc->width = pw; + spc->height = ph; + spc->pixels = pixels; + spc->pack_info = context; + spc->nodes = nodes; + spc->padding = padding; + spc->stride_in_bytes = stride_in_bytes != 0 ? stride_in_bytes : pw; + spc->h_oversample = 1; + spc->v_oversample = 1; + spc->skip_missing = 0; + + stbrp_init_target(context, pw-padding, ph-padding, nodes, num_nodes); + + if (pixels) + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + + return 1; +} + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc) +{ + STBTT_free(spc->nodes , spc->user_allocator_context); + STBTT_free(spc->pack_info, spc->user_allocator_context); +} + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) +{ + STBTT_assert(h_oversample <= STBTT_MAX_OVERSAMPLE); + STBTT_assert(v_oversample <= STBTT_MAX_OVERSAMPLE); + if (h_oversample <= STBTT_MAX_OVERSAMPLE) + spc->h_oversample = h_oversample; + if (v_oversample <= STBTT_MAX_OVERSAMPLE) + spc->v_oversample = v_oversample; +} + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip) +{ + spc->skip_missing = skip; +} + +#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1) + +static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_w = w - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < h; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < w; ++i) { + STBTT_assert(pixels[i] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i] = (unsigned char) (total / kernel_width); + } + + pixels += stride_in_bytes; + } +} + +static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_h = h - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < w; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < h; ++i) { + STBTT_assert(pixels[i*stride_in_bytes] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + + pixels += 1; + } +} + +static float stbtt__oversample_shift(int oversample) +{ + if (!oversample) + return 0.0f; + + // The prefilter is a box filter of width "oversample", + // which shifts phase by (oversample - 1)/2 pixels in + // oversampled space. We want to shift in the opposite + // direction to counter this. + return (float)-(oversample - 1) / (2.0f * (float)oversample); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k; + int missing_glyph_added = 0; + + k=0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + ranges[i].h_oversample = (unsigned char) spc->h_oversample; + ranges[i].v_oversample = (unsigned char) spc->v_oversample; + for (j=0; j < ranges[i].num_chars; ++j) { + int x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + if (glyph == 0 && (spc->skip_missing || missing_glyph_added)) { + rects[k].w = rects[k].h = 0; + } else { + stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + &x0,&y0,&x1,&y1); + rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); + rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); + if (glyph == 0) + missing_glyph_added = 1; + } + ++k; + } + } + + return k; +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, + output, + out_w - (prefilter_x - 1), + out_h - (prefilter_y - 1), + out_stride, + scale_x, + scale_y, + shift_x, + shift_y, + glyph); + + if (prefilter_x > 1) + stbtt__h_prefilter(output, out_w, out_h, out_stride, prefilter_x); + + if (prefilter_y > 1) + stbtt__v_prefilter(output, out_w, out_h, out_stride, prefilter_y); + + *sub_x = stbtt__oversample_shift(prefilter_x); + *sub_y = stbtt__oversample_shift(prefilter_y); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k, missing_glyph = -1, return_value = 1; + + // save current values + int old_h_over = spc->h_oversample; + int old_v_over = spc->v_oversample; + + k = 0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + float recip_h,recip_v,sub_x,sub_y; + spc->h_oversample = ranges[i].h_oversample; + spc->v_oversample = ranges[i].v_oversample; + recip_h = 1.0f / spc->h_oversample; + recip_v = 1.0f / spc->v_oversample; + sub_x = stbtt__oversample_shift(spc->h_oversample); + sub_y = stbtt__oversample_shift(spc->v_oversample); + for (j=0; j < ranges[i].num_chars; ++j) { + stbrp_rect *r = &rects[k]; + if (r->was_packed && r->w != 0 && r->h != 0) { + stbtt_packedchar *bc = &ranges[i].chardata_for_range[j]; + int advance, lsb, x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + stbrp_coord pad = (stbrp_coord) spc->padding; + + // pad on left and top + r->x += pad; + r->y += pad; + r->w -= pad; + r->h -= pad; + stbtt_GetGlyphHMetrics(info, glyph, &advance, &lsb); + stbtt_GetGlyphBitmapBox(info, glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + &x0,&y0,&x1,&y1); + stbtt_MakeGlyphBitmapSubpixel(info, + spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w - spc->h_oversample+1, + r->h - spc->v_oversample+1, + spc->stride_in_bytes, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + glyph); + + if (spc->h_oversample > 1) + stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->h_oversample); + + if (spc->v_oversample > 1) + stbtt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->v_oversample); + + bc->x0 = (stbtt_int16) r->x; + bc->y0 = (stbtt_int16) r->y; + bc->x1 = (stbtt_int16) (r->x + r->w); + bc->y1 = (stbtt_int16) (r->y + r->h); + bc->xadvance = scale * advance; + bc->xoff = (float) x0 * recip_h + sub_x; + bc->yoff = (float) y0 * recip_v + sub_y; + bc->xoff2 = (x0 + r->w) * recip_h + sub_x; + bc->yoff2 = (y0 + r->h) * recip_v + sub_y; + + if (glyph == 0) + missing_glyph = j; + } else if (spc->skip_missing) { + return_value = 0; + } else if (r->was_packed && r->w == 0 && r->h == 0 && missing_glyph >= 0) { + ranges[i].chardata_for_range[j] = ranges[i].chardata_for_range[missing_glyph]; + } else { + return_value = 0; // if any fail, report failure + } + + ++k; + } + } + + // restore original values + spc->h_oversample = old_h_over; + spc->v_oversample = old_v_over; + + return return_value; +} + +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects) +{ + stbrp_pack_rects((stbrp_context *) spc->pack_info, rects, num_rects); +} + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) +{ + stbtt_fontinfo info; + int i, j, n, return_value; // [DEAR IMGUI] removed = 1; + //stbrp_context *context = (stbrp_context *) spc->pack_info; + stbrp_rect *rects; + + // flag all characters as NOT packed + for (i=0; i < num_ranges; ++i) + for (j=0; j < ranges[i].num_chars; ++j) + ranges[i].chardata_for_range[j].x0 = + ranges[i].chardata_for_range[j].y0 = + ranges[i].chardata_for_range[j].x1 = + ranges[i].chardata_for_range[j].y1 = 0; + + n = 0; + for (i=0; i < num_ranges; ++i) + n += ranges[i].num_chars; + + rects = (stbrp_rect *) STBTT_malloc(sizeof(*rects) * n, spc->user_allocator_context); + if (rects == NULL) + return 0; + + info.userdata = spc->user_allocator_context; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata,font_index)); + + n = stbtt_PackFontRangesGatherRects(spc, &info, ranges, num_ranges, rects); + + stbtt_PackFontRangesPackRects(spc, rects, n); + + return_value = stbtt_PackFontRangesRenderIntoRects(spc, &info, ranges, num_ranges, rects); + + STBTT_free(rects, spc->user_allocator_context); + return return_value; +} + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) +{ + stbtt_pack_range range; + range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; + range.array_of_unicode_codepoints = NULL; + range.num_chars = num_chars_in_range; + range.chardata_for_range = chardata_for_range; + range.font_size = font_size; + return stbtt_PackFontRanges(spc, fontdata, font_index, &range, 1); +} + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap) +{ + int i_ascent, i_descent, i_lineGap; + float scale; + stbtt_fontinfo info; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata, index)); + scale = size > 0 ? stbtt_ScaleForPixelHeight(&info, size) : stbtt_ScaleForMappingEmToPixels(&info, -size); + stbtt_GetFontVMetrics(&info, &i_ascent, &i_descent, &i_lineGap); + *ascent = (float) i_ascent * scale; + *descent = (float) i_descent * scale; + *lineGap = (float) i_lineGap * scale; +} + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) +{ + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_packedchar *b = chardata + char_index; + + if (align_to_integer) { + float x = (float) STBTT_ifloor((*xpos + b->xoff) + 0.5f); + float y = (float) STBTT_ifloor((*ypos + b->yoff) + 0.5f); + q->x0 = x; + q->y0 = y; + q->x1 = x + b->xoff2 - b->xoff; + q->y1 = y + b->yoff2 - b->yoff; + } else { + q->x0 = *xpos + b->xoff; + q->y0 = *ypos + b->yoff; + q->x1 = *xpos + b->xoff2; + q->y1 = *ypos + b->yoff2; + } + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// sdf computation +// + +#define STBTT_min(a,b) ((a) < (b) ? (a) : (b)) +#define STBTT_max(a,b) ((a) < (b) ? (b) : (a)) + +static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) +{ + float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; + float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; + float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; + float roperp = orig[1]*ray[0] - orig[0]*ray[1]; + + float a = q0perp - 2*q1perp + q2perp; + float b = q1perp - q0perp; + float c = q0perp - roperp; + + float s0 = 0., s1 = 0.; + int num_s = 0; + + if (a != 0.0) { + float discr = b*b - a*c; + if (discr > 0.0) { + float rcpna = -1 / a; + float d = (float) STBTT_sqrt(discr); + s0 = (b+d) * rcpna; + s1 = (b-d) * rcpna; + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + if (d > 0.0 && s1 >= 0.0 && s1 <= 1.0) { + if (num_s == 0) s0 = s1; + ++num_s; + } + } + } else { + // 2*b*s + c = 0 + // s = -c / (2*b) + s0 = c / (-2 * b); + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + } + + if (num_s == 0) + return 0; + else { + float rcp_len2 = 1 / (ray[0]*ray[0] + ray[1]*ray[1]); + float rayn_x = ray[0] * rcp_len2, rayn_y = ray[1] * rcp_len2; + + float q0d = q0[0]*rayn_x + q0[1]*rayn_y; + float q1d = q1[0]*rayn_x + q1[1]*rayn_y; + float q2d = q2[0]*rayn_x + q2[1]*rayn_y; + float rod = orig[0]*rayn_x + orig[1]*rayn_y; + + float q10d = q1d - q0d; + float q20d = q2d - q0d; + float q0rd = q0d - rod; + + hits[0][0] = q0rd + s0*(2.0f - 2.0f*s0)*q10d + s0*s0*q20d; + hits[0][1] = a*s0+b; + + if (num_s > 1) { + hits[1][0] = q0rd + s1*(2.0f - 2.0f*s1)*q10d + s1*s1*q20d; + hits[1][1] = a*s1+b; + return 2; + } else { + return 1; + } + } +} + +static int equal(float *a, float *b) +{ + return (a[0] == b[0] && a[1] == b[1]); +} + +static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts) +{ + int i; + float orig[2], ray[2] = { 1, 0 }; + float y_frac; + int winding = 0; + + // make sure y never passes through a vertex of the shape + y_frac = (float) STBTT_fmod(y, 1.0f); + if (y_frac < 0.01f) + y += 0.01f; + else if (y_frac > 0.99f) + y -= 0.01f; + + orig[0] = x; + orig[1] = y; + + // test a ray from (-infinity,y) to (x,y) + for (i=0; i < nverts; ++i) { + if (verts[i].type == STBTT_vline) { + int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y; + int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } + if (verts[i].type == STBTT_vcurve) { + int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ; + int x1 = (int) verts[i ].cx, y1 = (int) verts[i ].cy; + int x2 = (int) verts[i ].x , y2 = (int) verts[i ].y ; + int ax = STBTT_min(x0,STBTT_min(x1,x2)), ay = STBTT_min(y0,STBTT_min(y1,y2)); + int by = STBTT_max(y0,STBTT_max(y1,y2)); + if (y > ay && y < by && x > ax) { + float q0[2],q1[2],q2[2]; + float hits[2][2]; + q0[0] = (float)x0; + q0[1] = (float)y0; + q1[0] = (float)x1; + q1[1] = (float)y1; + q2[0] = (float)x2; + q2[1] = (float)y2; + if (equal(q0,q1) || equal(q1,q2)) { + x0 = (int)verts[i-1].x; + y0 = (int)verts[i-1].y; + x1 = (int)verts[i ].x; + y1 = (int)verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } else { + int num_hits = stbtt__ray_intersect_bezier(orig, ray, q0, q1, q2, hits); + if (num_hits >= 1) + if (hits[0][0] < 0) + winding += (hits[0][1] < 0 ? -1 : 1); + if (num_hits >= 2) + if (hits[1][0] < 0) + winding += (hits[1][1] < 0 ? -1 : 1); + } + } + } + } + return winding; +} + +static float stbtt__cuberoot( float x ) +{ + if (x<0) + return -(float) STBTT_pow(-x,1.0f/3.0f); + else + return (float) STBTT_pow( x,1.0f/3.0f); +} + +// x^3 + a*x^2 + b*x + c = 0 +static int stbtt__solve_cubic(float a, float b, float c, float* r) +{ + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; + float p3 = p*p*p; + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); + float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); + + //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? + //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); + //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); + return 3; + } +} + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + float scale_x = scale, scale_y = scale; + int ix0,iy0,ix1,iy1; + int w,h; + unsigned char *data; + + if (scale == 0) return NULL; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); + + // if empty, return NULL + if (ix0 == ix1 || iy0 == iy1) + return NULL; + + ix0 -= padding; + iy0 -= padding; + ix1 += padding; + iy1 += padding; + + w = (ix1 - ix0); + h = (iy1 - iy0); + + if (width ) *width = w; + if (height) *height = h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + // invert for y-downwards bitmaps + scale_y = -scale_y; + + { + int x,y,i,j; + float *precompute; + stbtt_vertex *verts; + int num_verts = stbtt_GetGlyphShape(info, glyph, &verts); + data = (unsigned char *) STBTT_malloc(w * h, info->userdata); + precompute = (float *) STBTT_malloc(num_verts * sizeof(float), info->userdata); + + for (i=0,j=num_verts-1; i < num_verts; j=i++) { + if (verts[i].type == STBTT_vline) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + float x1 = verts[j].x*scale_x, y1 = verts[j].y*scale_y; + float dist = (float) STBTT_sqrt((x1-x0)*(x1-x0) + (y1-y0)*(y1-y0)); + precompute[i] = (dist == 0) ? 0.0f : 1.0f / dist; + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[j].x *scale_x, y2 = verts[j].y *scale_y; + float x1 = verts[i].cx*scale_x, y1 = verts[i].cy*scale_y; + float x0 = verts[i].x *scale_x, y0 = verts[i].y *scale_y; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float len2 = bx*bx + by*by; + if (len2 != 0.0f) + precompute[i] = 1.0f / (bx*bx + by*by); + else + precompute[i] = 0.0f; + } else + precompute[i] = 0.0f; + } + + for (y=iy0; y < iy1; ++y) { + for (x=ix0; x < ix1; ++x) { + float val; + float min_dist = 999999.0f; + float sx = (float) x + 0.5f; + float sy = (float) y + 0.5f; + float x_gspace = (sx / scale_x); + float y_gspace = (sy / scale_y); + + int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tesselated curves so a new path + + for (i=0; i < num_verts; ++i) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + + if (verts[i].type == STBTT_vline && precompute[i] != 0.0f) { + float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; + + float dist,dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + // coarse culling against bbox + //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && + // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) + dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; + STBTT_assert(i != 0); + if (dist < min_dist) { + // check position along line + // x' = x0 + t*(x1-x0), y' = y0 + t*(y1-y0) + // minimize (x'-sx)*(x'-sx)+(y'-sy)*(y'-sy) + float dx = x1-x0, dy = y1-y0; + float px = x0-sx, py = y0-sy; + // minimize (px+t*dx)^2 + (py+t*dy)^2 = px*px + 2*px*dx*t + t^2*dx*dx + py*py + 2*py*dy*t + t^2*dy*dy + // derivative: 2*px*dx + 2*py*dy + (2*dx*dx+2*dy*dy)*t, set to 0 and solve + float t = -(px*dx + py*dy) / (dx*dx + dy*dy); + if (t >= 0.0f && t <= 1.0f) + min_dist = dist; + } + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[i-1].x *scale_x, y2 = verts[i-1].y *scale_y; + float x1 = verts[i ].cx*scale_x, y1 = verts[i ].cy*scale_y; + float box_x0 = STBTT_min(STBTT_min(x0,x1),x2); + float box_y0 = STBTT_min(STBTT_min(y0,y1),y2); + float box_x1 = STBTT_max(STBTT_max(x0,x1),x2); + float box_y1 = STBTT_max(STBTT_max(y0,y1),y2); + // coarse culling against bbox to avoid computing cubic unnecessarily + if (sx > box_x0-min_dist && sx < box_x1+min_dist && sy > box_y0-min_dist && sy < box_y1+min_dist) { + int num=0; + float ax = x1-x0, ay = y1-y0; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float mx = x0 - sx, my = y0 - sy; + float res[3] = {0.f,0.f,0.f}; + float px,py,t,it,dist2; + float a_inv = precompute[i]; + if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula + float a = 3*(ax*bx + ay*by); + float b = 2*(ax*ax + ay*ay) + (mx*bx+my*by); + float c = mx*ax+my*ay; + if (a == 0.0) { // if a is 0, it's linear + if (b != 0.0) { + res[num++] = -c/b; + } + } else { + float discriminant = b*b - 4*a*c; + if (discriminant < 0) + num = 0; + else { + float root = (float) STBTT_sqrt(discriminant); + res[0] = (-b - root)/(2*a); + res[1] = (-b + root)/(2*a); + num = 2; // don't bother distinguishing 1-solution case, as code below will still work + } + } + } else { + float b = 3*(ax*bx + ay*by) * a_inv; // could precompute this as it doesn't depend on sample point + float c = (2*(ax*ax + ay*ay) + (mx*bx+my*by)) * a_inv; + float d = (mx*ax+my*ay) * a_inv; + num = stbtt__solve_cubic(b, c, d, res); + } + dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { + t = res[0], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 2 && res[1] >= 0.0f && res[1] <= 1.0f) { + t = res[1], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 3 && res[2] >= 0.0f && res[2] <= 1.0f) { + t = res[2], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + } + } + } + if (winding == 0) + min_dist = -min_dist; // if outside the shape, value is negative + val = onedge_value + pixel_dist_scale * min_dist; + if (val < 0) + val = 0; + else if (val > 255) + val = 255; + data[(y-iy0)*w+(x-ix0)] = (unsigned char) val; + } + } + STBTT_free(precompute, info->userdata); + STBTT_free(verts, info->userdata); + } + return data; +} + +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphSDF(info, scale, stbtt_FindGlyphIndex(info, codepoint), padding, onedge_value, pixel_dist_scale, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +////////////////////////////////////////////////////////////////////////////// +// +// font name matching -- recommended not to use this +// + +// check if a utf8 string contains a prefix which is the utf16 string; if so return length of matching utf8 string +static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2) +{ + stbtt_int32 i=0; + + // convert utf16 to utf8 and compare the results while converting + while (len2) { + stbtt_uint16 ch = s2[0]*256 + s2[1]; + if (ch < 0x80) { + if (i >= len1) return -1; + if (s1[i++] != ch) return -1; + } else if (ch < 0x800) { + if (i+1 >= len1) return -1; + if (s1[i++] != 0xc0 + (ch >> 6)) return -1; + if (s1[i++] != 0x80 + (ch & 0x3f)) return -1; + } else if (ch >= 0xd800 && ch < 0xdc00) { + stbtt_uint32 c; + stbtt_uint16 ch2 = s2[2]*256 + s2[3]; + if (i+3 >= len1) return -1; + c = ((ch - 0xd800) << 10) + (ch2 - 0xdc00) + 0x10000; + if (s1[i++] != 0xf0 + (c >> 18)) return -1; + if (s1[i++] != 0x80 + ((c >> 12) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c ) & 0x3f)) return -1; + s2 += 2; // plus another 2 below + len2 -= 2; + } else if (ch >= 0xdc00 && ch < 0xe000) { + return -1; + } else { + if (i+2 >= len1) return -1; + if (s1[i++] != 0xe0 + (ch >> 12)) return -1; + if (s1[i++] != 0x80 + ((ch >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((ch ) & 0x3f)) return -1; + } + s2 += 2; + len2 -= 2; + } + return i; +} + +static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2) +{ + return len1 == stbtt__CompareUTF8toUTF16_bigendian_prefix((stbtt_uint8*) s1, len1, (stbtt_uint8*) s2, len2); +} + +// returns results in whatever encoding you request... but note that 2-byte encodings +// will be BIG-ENDIAN... use stbtt_CompareUTF8toUTF16_bigendian() to compare +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID) +{ + stbtt_int32 i,count,stringOffset; + stbtt_uint8 *fc = font->data; + stbtt_uint32 offset = font->fontstart; + stbtt_uint32 nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return NULL; + + count = ttUSHORT(fc+nm+2); + stringOffset = nm + ttUSHORT(fc+nm+4); + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + if (platformID == ttUSHORT(fc+loc+0) && encodingID == ttUSHORT(fc+loc+2) + && languageID == ttUSHORT(fc+loc+4) && nameID == ttUSHORT(fc+loc+6)) { + *length = ttUSHORT(fc+loc+8); + return (const char *) (fc+stringOffset+ttUSHORT(fc+loc+10)); + } + } + return NULL; +} + +static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id) +{ + stbtt_int32 i; + stbtt_int32 count = ttUSHORT(fc+nm+2); + stbtt_int32 stringOffset = nm + ttUSHORT(fc+nm+4); + + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + stbtt_int32 id = ttUSHORT(fc+loc+6); + if (id == target_id) { + // find the encoding + stbtt_int32 platform = ttUSHORT(fc+loc+0), encoding = ttUSHORT(fc+loc+2), language = ttUSHORT(fc+loc+4); + + // is this a Unicode encoding? + if (platform == 0 || (platform == 3 && encoding == 1) || (platform == 3 && encoding == 10)) { + stbtt_int32 slen = ttUSHORT(fc+loc+8); + stbtt_int32 off = ttUSHORT(fc+loc+10); + + // check if there's a prefix match + stbtt_int32 matchlen = stbtt__CompareUTF8toUTF16_bigendian_prefix(name, nlen, fc+stringOffset+off,slen); + if (matchlen >= 0) { + // check for target_id+1 immediately following, with same encoding & language + if (i+1 < count && ttUSHORT(fc+loc+12+6) == next_id && ttUSHORT(fc+loc+12) == platform && ttUSHORT(fc+loc+12+2) == encoding && ttUSHORT(fc+loc+12+4) == language) { + slen = ttUSHORT(fc+loc+12+8); + off = ttUSHORT(fc+loc+12+10); + if (slen == 0) { + if (matchlen == nlen) + return 1; + } else if (matchlen < nlen && name[matchlen] == ' ') { + ++matchlen; + if (stbtt_CompareUTF8toUTF16_bigendian_internal((char*) (name+matchlen), nlen-matchlen, (char*)(fc+stringOffset+off),slen)) + return 1; + } + } else { + // if nothing immediately following + if (matchlen == nlen) + return 1; + } + } + } + + // @TODO handle other encodings + } + } + return 0; +} + +static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags) +{ + stbtt_int32 nlen = (stbtt_int32) STBTT_strlen((char *) name); + stbtt_uint32 nm,hd; + if (!stbtt__isfont(fc+offset)) return 0; + + // check italics/bold/underline flags in macStyle... + if (flags) { + hd = stbtt__find_table(fc, offset, "head"); + if ((ttUSHORT(fc+hd+44) & 7) != (flags & 7)) return 0; + } + + nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return 0; + + if (flags) { + // if we checked the macStyle flags, then just check the family and ignore the subfamily + if (stbtt__matchpair(fc, nm, name, nlen, 16, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } else { + if (stbtt__matchpair(fc, nm, name, nlen, 16, 17)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, 2)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } + + return 0; +} + +static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags) +{ + stbtt_int32 i; + for (i=0;;++i) { + stbtt_int32 off = stbtt_GetFontOffsetForIndex(font_collection, i); + if (off < 0) return off; + if (stbtt__matches((stbtt_uint8 *) font_collection, off, (stbtt_uint8*) name_utf8, flags)) + return off; + } +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, + float pixel_height, unsigned char *pixels, int pw, int ph, + int first_char, int num_chars, stbtt_bakedchar *chardata) +{ + return stbtt_BakeFontBitmap_internal((unsigned char *) data, offset, pixel_height, pixels, pw, ph, first_char, num_chars, chardata); +} + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index) +{ + return stbtt_GetFontOffsetForIndex_internal((unsigned char *) data, index); +} + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data) +{ + return stbtt_GetNumberOfFonts_internal((unsigned char *) data); +} + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset) +{ + return stbtt_InitFont_internal(info, (unsigned char *) data, offset); +} + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags) +{ + return stbtt_FindMatchingFont_internal((unsigned char *) fontdata, (char *) name, flags); +} + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2) +{ + return stbtt_CompareUTF8toUTF16_bigendian_internal((char *) s1, len1, (char *) s2, len2); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif // STB_TRUETYPE_IMPLEMENTATION + + +// FULL VERSION HISTORY +// +// 1.25 (2021-07-11) many fixes +// 1.24 (2020-02-05) fix warning +// 1.23 (2020-02-02) query SVG data for glyphs; query whole kerning table (but only kern not GPOS) +// 1.22 (2019-08-11) minimize missing-glyph duplication; fix kerning if both 'GPOS' and 'kern' are defined +// 1.21 (2019-02-25) fix warning +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) allow user-defined fabs() replacement +// fix memory leak if fontsize=0.0 +// fix warning from duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use alloc userdata for PackFontRanges +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// allow PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// 1.06 (2015-07-14) performance improvements (~35% faster on x86 and x64 on test machine) +// also more precise AA rasterizer, except if shapes overlap +// remove need for STBTT_sort +// 1.05 (2015-04-15) fix misplaced definitions for STBTT_STATIC +// 1.04 (2015-04-15) typo in example +// 1.03 (2015-04-12) STBTT_STATIC, fix memory leak in new packing, various fixes +// 1.02 (2014-12-10) fix various warnings & compile issues w/ stb_rect_pack, C++ +// 1.01 (2014-12-08) fix subpixel position when oversampling to exactly match +// non-oversampled; STBTT_POINT_SIZE for packed case only +// 1.00 (2014-12-06) add new PackBegin etc. API, w/ support for oversampling +// 0.99 (2014-09-18) fix multiple bugs with subpixel rendering (ryg) +// 0.9 (2014-08-07) support certain mac/iOS fonts without an MS platformID +// 0.8b (2014-07-07) fix a warning +// 0.8 (2014-05-25) fix a few more warnings +// 0.7 (2013-09-25) bugfix: subpixel glyph bug fixed in 0.5 had come back +// 0.6c (2012-07-24) improve documentation +// 0.6b (2012-07-20) fix a few more warnings +// 0.6 (2012-07-17) fix warnings; added stbtt_ScaleForMappingEmToPixels, +// stbtt_GetFontBoundingBox, stbtt_IsGlyphEmpty +// 0.5 (2011-12-09) bugfixes: +// subpixel glyph renderer computed wrong bounding box +// first vertex of shape can be off-curve (FreeSans) +// 0.4b (2011-12-03) fixed an error in the font baking example +// 0.4 (2011-12-01) kerning, subpixel rendering (tor) +// bugfixes for: +// codepoint-to-glyph conversion using table fmt=12 +// codepoint-to-glyph conversion using table fmt=4 +// stbtt_GetBakedQuad with non-square texture (Zer) +// updated Hello World! sample to use kerning and subpixel +// fixed some warnings +// 0.3 (2009-06-24) cmap fmt=12, compound shapes (MM) +// userdata, malloc-from-userdata, non-zero fill (stb) +// 0.2 (2009-03-11) Fix unsigned/signed char warnings +// 0.1 (2009-03-09) First public release +// + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +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. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +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 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. +------------------------------------------------------------------------------ +*/ diff --git a/thirdparty/imgui_suite/imgui/include/misc/cpp/imgui_stdlib.h b/thirdparty/imgui_suite/imgui/include/misc/cpp/imgui_stdlib.h new file mode 100644 index 00000000000..835a808f2fa --- /dev/null +++ b/thirdparty/imgui_suite/imgui/include/misc/cpp/imgui_stdlib.h @@ -0,0 +1,21 @@ +// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) +// This is also an example of how you may wrap your own similar types. + +// Changelog: +// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string + +// See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: +// https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness + +#pragma once + +#include + +namespace ImGui +{ + // ImGui::InputText() with std::string + // Because text input needs dynamic resizing, we need to setup a callback to grow the capacity + IMGUI_API bool InputText(const char* label, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); + IMGUI_API bool InputTextMultiline(const char* label, std::string* str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); + IMGUI_API bool InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); +} diff --git a/thirdparty/imgui_suite/implot/cpp/implot.cpp b/thirdparty/imgui_suite/implot/cpp/implot.cpp new file mode 100644 index 00000000000..91f34050622 --- /dev/null +++ b/thirdparty/imgui_suite/implot/cpp/implot.cpp @@ -0,0 +1,5761 @@ +// MIT License + +// Copyright (c) 2023 Evan Pezent + +// 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. + +// ImPlot v0.16 + +/* + +API BREAKING CHANGES +==================== +Occasionally introducing changes that are breaking the API. We try to make the breakage minor and easy to fix. +Below is a change-log of API breaking changes only. If you are using one of the functions listed, expect to have to fix some code. +When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all implot files. +You can read releases logs https://github.com/epezent/implot/releases for more details. + +- 2023/06/26 (0.15) - Various build fixes related to updates in Dear ImGui internals. +- 2022/11/25 (0.15) - Make PlotText honor ImPlotItemFlags_NoFit. +- 2022/06/19 (0.14) - The signature of ColormapScale has changed to accommodate a new ImPlotColormapScaleFlags parameter +- 2022/06/17 (0.14) - **IMPORTANT** All PlotX functions now take an ImPlotX_Flags `flags` parameter. Where applicable, it is located before the existing `offset` and `stride` parameters. + If you were providing offset and stride values, you will need to update your function call to include a `flags` value. If you fail to do this, you will likely see + unexpected results or crashes without a compiler warning since these three are all default args. We apologize for the inconvenience, but this was a necessary evil. + - PlotBarsH has been removed; use PlotBars + ImPlotBarsFlags_Horizontal instead + - PlotErrorBarsH has been removed; use PlotErrorBars + ImPlotErrorBarsFlags_Horizontal + - PlotHistogram/PlotHistogram2D signatures changed; `cumulative`, `density`, and `outliers` options now specified via ImPlotHistogramFlags + - PlotPieChart signature changed; `normalize` option now specified via ImPlotPieChartFlags + - PlotText signature changes; `vertical` option now specified via `ImPlotTextFlags_Vertical` + - `PlotVLines` and `PlotHLines` replaced with `PlotInfLines` (+ ImPlotInfLinesFlags_Horizontal ) + - arguments of ImPlotGetter have been reversed to be consistent with other API callbacks + - SetupAxisScale + ImPlotScale have replaced ImPlotAxisFlags_LogScale and ImPlotAxisFlags_Time flags + - ImPlotFormatters should now return an int indicating the size written + - the signature of ImPlotGetter has been reversed so that void* user_data is the last argument and consistent with other callbacks +- 2021/10/19 (0.13) - MAJOR API OVERHAUL! See #168 and #272 + - TRIVIAL RENAME: + - ImPlotLimits -> ImPlotRect + - ImPlotYAxis_ -> ImAxis_ + - SetPlotYAxis -> SetAxis + - BeginDragDropTarget -> BeginDragDropTargetPlot + - BeginDragDropSource -> BeginDragDropSourcePlot + - ImPlotFlags_NoMousePos -> ImPlotFlags_NoMouseText + - SetNextPlotLimits -> SetNextAxesLimits + - SetMouseTextLocation -> SetupMouseText + - SIGNATURE MODIFIED: + - PixelsToPlot/PlotToPixels -> added optional X-Axis arg + - GetPlotMousePos -> added optional X-Axis arg + - GetPlotLimits -> added optional X-Axis arg + - GetPlotSelection -> added optional X-Axis arg + - DragLineX/Y/DragPoint -> now takes int id; removed labels (render with Annotation/Tag instead) + - REPLACED: + - IsPlotXAxisHovered/IsPlotXYAxisHovered -> IsAxisHovered(ImAxis) + - BeginDragDropTargetX/BeginDragDropTargetY -> BeginDragDropTargetAxis(ImAxis) + - BeginDragDropSourceX/BeginDragDropSourceY -> BeginDragDropSourceAxis(ImAxis) + - ImPlotCol_XAxis, ImPlotCol_YAxis1, etc. -> ImPlotCol_AxisText (push/pop this around SetupAxis to style individual axes) + - ImPlotCol_XAxisGrid, ImPlotCol_Y1AxisGrid -> ImPlotCol_AxisGrid (push/pop this around SetupAxis to style individual axes) + - SetNextPlotLimitsX/Y -> SetNextAxisLimits(ImAxis) + - LinkNextPlotLimits -> SetNextAxisLinks(ImAxis) + - FitNextPlotAxes -> SetNextAxisToFit(ImAxis)/SetNextAxesToFit + - SetLegendLocation -> SetupLegend + - ImPlotFlags_NoHighlight -> ImPlotLegendFlags_NoHighlight + - ImPlotOrientation -> ImPlotLegendFlags_Horizontal + - Annotate -> Annotation + - REMOVED: + - GetPlotQuery, SetPlotQuery, IsPlotQueried -> use DragRect + - SetNextPlotTicksX, SetNextPlotTicksY -> use SetupAxisTicks + - SetNextPlotFormatX, SetNextPlotFormatY -> use SetupAxisFormat + - AnnotateClamped -> use Annotation(bool clamp = true) + - OBSOLETED: + - BeginPlot (original signature) -> use simplified signature + Setup API +- 2021/07/30 (0.12) - The offset argument of `PlotXG` functions was been removed. Implement offsetting in your getter callback instead. +- 2021/03/08 (0.9) - SetColormap and PushColormap(ImVec4*) were removed. Use AddColormap for custom colormap support. LerpColormap was changed to SampleColormap. + ShowColormapScale was changed to ColormapScale and requires additional arguments. +- 2021/03/07 (0.9) - The signature of ShowColormapScale was modified to accept a ImVec2 size. +- 2021/02/28 (0.9) - BeginLegendDragDropSource was changed to BeginDragDropSourceItem with a number of other drag and drop improvements. +- 2021/01/18 (0.9) - The default behavior for opening context menus was change from double right-click to single right-click. ImPlotInputMap and related functions were moved + to implot_internal.h due to its immaturity. +- 2020/10/16 (0.8) - ImPlotStyleVar_InfoPadding was changed to ImPlotStyleVar_MousePosPadding +- 2020/09/10 (0.8) - The single array versions of PlotLine, PlotScatter, PlotStems, and PlotShaded were given additional arguments for x-scale and x0. +- 2020/09/07 (0.8) - Plotting functions which accept a custom getter function pointer have been post-fixed with a G (e.g. PlotLineG) +- 2020/09/06 (0.7) - Several flags under ImPlotFlags and ImPlotAxisFlags were inverted (e.g. ImPlotFlags_Legend -> ImPlotFlags_NoLegend) so that the default flagset + is simply 0. This more closely matches ImGui's style and makes it easier to enable non-default but commonly used flags (e.g. ImPlotAxisFlags_Time). +- 2020/08/28 (0.5) - ImPlotMarker_ can no longer be combined with bitwise OR, |. This features caused unecessary slow-down, and almost no one used it. +- 2020/08/25 (0.5) - ImPlotAxisFlags_Scientific was removed. Logarithmic axes automatically uses scientific notation. +- 2020/08/17 (0.5) - PlotText was changed so that text is centered horizontally and vertically about the desired point. +- 2020/08/16 (0.5) - An ImPlotContext must be explicitly created and destroyed now with `CreateContext` and `DestroyContext`. Previously, the context was statically initialized in this source file. +- 2020/06/13 (0.4) - The flags `ImPlotAxisFlag_Adaptive` and `ImPlotFlags_Cull` were removed. Both are now done internally by default. +- 2020/06/03 (0.3) - The signature and behavior of PlotPieChart was changed so that data with sum less than 1 can optionally be normalized. The label format can now be specified as well. +- 2020/06/01 (0.3) - SetPalette was changed to `SetColormap` for consistency with other plotting libraries. `RestorePalette` was removed. Use `SetColormap(ImPlotColormap_Default)`. +- 2020/05/31 (0.3) - Plot functions taking custom ImVec2* getters were removed. Use the ImPlotPoint* getter versions instead. +- 2020/05/29 (0.3) - The signature of ImPlotLimits::Contains was changed to take two doubles instead of ImVec2 +- 2020/05/16 (0.2) - All plotting functions were reverted to being prefixed with "Plot" to maintain a consistent VerbNoun style. `Plot` was split into `PlotLine` + and `PlotScatter` (however, `PlotLine` can still be used to plot scatter points as `Plot` did before.). `Bar` is not `PlotBars`, to indicate + that multiple bars will be plotted. +- 2020/05/13 (0.2) - `ImMarker` was change to `ImPlotMarker` and `ImAxisFlags` was changed to `ImPlotAxisFlags`. +- 2020/05/11 (0.2) - `ImPlotFlags_Selection` was changed to `ImPlotFlags_BoxSelect` +- 2020/05/11 (0.2) - The namespace ImGui:: was replaced with ImPlot::. As a result, the following additional changes were made: + - Functions that were prefixed or decorated with the word "Plot" have been truncated. E.g., `ImGui::PlotBars` is now just `ImPlot::Bar`. + It should be fairly obvious what was what. + - Some functions have been given names that would have otherwise collided with the ImGui namespace. This has been done to maintain a consistent + style with ImGui. E.g., 'ImGui::PushPlotStyleVar` is now 'ImPlot::PushStyleVar'. +- 2020/05/10 (0.2) - The following function/struct names were changes: + - ImPlotRange -> ImPlotLimits + - GetPlotRange() -> GetPlotLimits() + - SetNextPlotRange -> SetNextPlotLimits + - SetNextPlotRangeX -> SetNextPlotLimitsX + - SetNextPlotRangeY -> SetNextPlotLimitsY +- 2020/05/10 (0.2) - Plot queries are pixel based by default. Query rects that maintain relative plot position have been removed. This was done to support multi-y-axis. + +*/ + +#define IMGUI_DEFINE_MATH_OPERATORS +#include "implot.h" +#include "implot_internal.h" + +#include + +// Support for pre-1.82 versions. Users on 1.82+ can use 0 (default) flags to mean "all corners" but in order to support older versions we are more explicit. +#if (IMGUI_VERSION_NUM < 18102) && !defined(ImDrawFlags_RoundCornersAll) +#define ImDrawFlags_RoundCornersAll ImDrawCornerFlags_All +#endif + +// Support for pre-1.89.7 versions. +#if (IMGUI_VERSION_NUM < 18966) +#define ImGuiButtonFlags_AllowOverlap ImGuiButtonFlags_AllowItemOverlap +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#endif + +// Global plot context +#ifndef GImPlot +ImPlotContext* GImPlot = nullptr; +#endif + +//----------------------------------------------------------------------------- +// Struct Implementations +//----------------------------------------------------------------------------- + +ImPlotInputMap::ImPlotInputMap() { + ImPlot::MapInputDefault(this); +} + +ImPlotStyle::ImPlotStyle() { + + LineWeight = 1; + Marker = ImPlotMarker_None; + MarkerSize = 4; + MarkerWeight = 1; + FillAlpha = 1; + ErrorBarSize = 5; + ErrorBarWeight = 1.5f; + DigitalBitHeight = 8; + DigitalBitGap = 4; + + PlotBorderSize = 1; + MinorAlpha = 0.25f; + MajorTickLen = ImVec2(10,10); + MinorTickLen = ImVec2(5,5); + MajorTickSize = ImVec2(1,1); + MinorTickSize = ImVec2(1,1); + MajorGridSize = ImVec2(1,1); + MinorGridSize = ImVec2(1,1); + PlotPadding = ImVec2(10,10); + LabelPadding = ImVec2(5,5); + LegendPadding = ImVec2(10,10); + LegendInnerPadding = ImVec2(5,5); + LegendSpacing = ImVec2(5,0); + MousePosPadding = ImVec2(10,10); + AnnotationPadding = ImVec2(2,2); + FitPadding = ImVec2(0,0); + PlotDefaultSize = ImVec2(400,300); + PlotMinSize = ImVec2(200,150); + + ImPlot::StyleColorsAuto(this); + + Colormap = ImPlotColormap_Deep; + + UseLocalTime = false; + Use24HourClock = false; + UseISO8601 = false; +} + +//----------------------------------------------------------------------------- +// Style +//----------------------------------------------------------------------------- + +namespace ImPlot { + +const char* GetStyleColorName(ImPlotCol col) { + static const char* col_names[ImPlotCol_COUNT] = { + "Line", + "Fill", + "MarkerOutline", + "MarkerFill", + "ErrorBar", + "FrameBg", + "PlotBg", + "PlotBorder", + "LegendBg", + "LegendBorder", + "LegendText", + "TitleText", + "InlayText", + "AxisText", + "AxisGrid", + "AxisTick", + "AxisBg", + "AxisBgHovered", + "AxisBgActive", + "Selection", + "Crosshairs" + }; + return col_names[col]; +} + +const char* GetMarkerName(ImPlotMarker marker) { + switch (marker) { + case ImPlotMarker_None: return "None"; + case ImPlotMarker_Circle: return "Circle"; + case ImPlotMarker_Square: return "Square"; + case ImPlotMarker_Diamond: return "Diamond"; + case ImPlotMarker_Up: return "Up"; + case ImPlotMarker_Down: return "Down"; + case ImPlotMarker_Left: return "Left"; + case ImPlotMarker_Right: return "Right"; + case ImPlotMarker_Cross: return "Cross"; + case ImPlotMarker_Plus: return "Plus"; + case ImPlotMarker_Asterisk: return "Asterisk"; + default: return ""; + } +} + +ImVec4 GetAutoColor(ImPlotCol idx) { + ImVec4 col(0,0,0,1); + switch(idx) { + case ImPlotCol_Line: return col; // these are plot dependent! + case ImPlotCol_Fill: return col; // these are plot dependent! + case ImPlotCol_MarkerOutline: return col; // these are plot dependent! + case ImPlotCol_MarkerFill: return col; // these are plot dependent! + case ImPlotCol_ErrorBar: return ImGui::GetStyleColorVec4(ImGuiCol_Text); + case ImPlotCol_FrameBg: return ImGui::GetStyleColorVec4(ImGuiCol_FrameBg); + case ImPlotCol_PlotBg: return ImGui::GetStyleColorVec4(ImGuiCol_WindowBg); + case ImPlotCol_PlotBorder: return ImGui::GetStyleColorVec4(ImGuiCol_Border); + case ImPlotCol_LegendBg: return ImGui::GetStyleColorVec4(ImGuiCol_PopupBg); + case ImPlotCol_LegendBorder: return GetStyleColorVec4(ImPlotCol_PlotBorder); + case ImPlotCol_LegendText: return GetStyleColorVec4(ImPlotCol_InlayText); + case ImPlotCol_TitleText: return ImGui::GetStyleColorVec4(ImGuiCol_Text); + case ImPlotCol_InlayText: return ImGui::GetStyleColorVec4(ImGuiCol_Text); + case ImPlotCol_AxisText: return ImGui::GetStyleColorVec4(ImGuiCol_Text); + case ImPlotCol_AxisGrid: return GetStyleColorVec4(ImPlotCol_AxisText) * ImVec4(1,1,1,0.25f); + case ImPlotCol_AxisTick: return GetStyleColorVec4(ImPlotCol_AxisGrid); + case ImPlotCol_AxisBg: return ImVec4(0,0,0,0); + case ImPlotCol_AxisBgHovered: return ImGui::GetStyleColorVec4(ImGuiCol_ButtonHovered); + case ImPlotCol_AxisBgActive: return ImGui::GetStyleColorVec4(ImGuiCol_ButtonActive); + case ImPlotCol_Selection: return ImVec4(1,1,0,1); + case ImPlotCol_Crosshairs: return GetStyleColorVec4(ImPlotCol_PlotBorder); + default: return col; + } +} + +struct ImPlotStyleVarInfo { + ImGuiDataType Type; + ImU32 Count; + ImU32 Offset; + void* GetVarPtr(ImPlotStyle* style) const { return (void*)((unsigned char*)style + Offset); } +}; + +static const ImPlotStyleVarInfo GPlotStyleVarInfo[] = +{ + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, LineWeight) }, // ImPlotStyleVar_LineWeight + { ImGuiDataType_S32, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, Marker) }, // ImPlotStyleVar_Marker + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, MarkerSize) }, // ImPlotStyleVar_MarkerSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, MarkerWeight) }, // ImPlotStyleVar_MarkerWeight + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, FillAlpha) }, // ImPlotStyleVar_FillAlpha + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, ErrorBarSize) }, // ImPlotStyleVar_ErrorBarSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, ErrorBarWeight) }, // ImPlotStyleVar_ErrorBarWeight + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, DigitalBitHeight) }, // ImPlotStyleVar_DigitalBitHeight + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, DigitalBitGap) }, // ImPlotStyleVar_DigitalBitGap + + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, PlotBorderSize) }, // ImPlotStyleVar_PlotBorderSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImPlotStyle, MinorAlpha) }, // ImPlotStyleVar_MinorAlpha + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, MajorTickLen) }, // ImPlotStyleVar_MajorTickLen + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, MinorTickLen) }, // ImPlotStyleVar_MinorTickLen + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, MajorTickSize) }, // ImPlotStyleVar_MajorTickSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, MinorTickSize) }, // ImPlotStyleVar_MinorTickSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, MajorGridSize) }, // ImPlotStyleVar_MajorGridSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, MinorGridSize) }, // ImPlotStyleVar_MinorGridSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, PlotPadding) }, // ImPlotStyleVar_PlotPadding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, LabelPadding) }, // ImPlotStyleVar_LabelPaddine + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, LegendPadding) }, // ImPlotStyleVar_LegendPadding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, LegendInnerPadding) }, // ImPlotStyleVar_LegendInnerPadding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, LegendSpacing) }, // ImPlotStyleVar_LegendSpacing + + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, MousePosPadding) }, // ImPlotStyleVar_MousePosPadding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, AnnotationPadding) }, // ImPlotStyleVar_AnnotationPadding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, FitPadding) }, // ImPlotStyleVar_FitPadding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, PlotDefaultSize) }, // ImPlotStyleVar_PlotDefaultSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImPlotStyle, PlotMinSize) } // ImPlotStyleVar_PlotMinSize +}; + +static const ImPlotStyleVarInfo* GetPlotStyleVarInfo(ImPlotStyleVar idx) { + IM_ASSERT(idx >= 0 && idx < ImPlotStyleVar_COUNT); + IM_ASSERT(IM_ARRAYSIZE(GPlotStyleVarInfo) == ImPlotStyleVar_COUNT); + return &GPlotStyleVarInfo[idx]; +} + +//----------------------------------------------------------------------------- +// Generic Helpers +//----------------------------------------------------------------------------- + +void AddTextVertical(ImDrawList *DrawList, ImVec2 pos, ImU32 col, const char *text_begin, const char* text_end) { + // the code below is based loosely on ImFont::RenderText + if (!text_end) + text_end = text_begin + strlen(text_begin); + ImGuiContext& g = *GImGui; + ImFont* font = g.Font; + // Align to be pixel perfect + pos.x = IM_FLOOR(pos.x); + pos.y = IM_FLOOR(pos.y); + const float scale = g.FontSize / font->FontSize; + const char* s = text_begin; + int chars_exp = (int)(text_end - s); + int chars_rnd = 0; + const int vtx_count_max = chars_exp * 4; + const int idx_count_max = chars_exp * 6; + DrawList->PrimReserve(idx_count_max, vtx_count_max); + while (s < text_end) { + unsigned int c = (unsigned int)*s; + if (c < 0x80) { + s += 1; + } + else { + s += ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) // Malformed UTF-8? + break; + } + const ImFontGlyph * glyph = font->FindGlyph((ImWchar)c); + if (glyph == nullptr) { + continue; + } + DrawList->PrimQuadUV(pos + ImVec2(glyph->Y0, -glyph->X0) * scale, pos + ImVec2(glyph->Y0, -glyph->X1) * scale, + pos + ImVec2(glyph->Y1, -glyph->X1) * scale, pos + ImVec2(glyph->Y1, -glyph->X0) * scale, + ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V0), + ImVec2(glyph->U1, glyph->V1), ImVec2(glyph->U0, glyph->V1), + col); + pos.y -= glyph->AdvanceX * scale; + chars_rnd++; + } + // Give back unused vertices + int chars_skp = chars_exp-chars_rnd; + DrawList->PrimUnreserve(chars_skp*6, chars_skp*4); +} + +void AddTextCentered(ImDrawList* DrawList, ImVec2 top_center, ImU32 col, const char* text_begin, const char* text_end) { + float txt_ht = ImGui::GetTextLineHeight(); + const char* title_end = ImGui::FindRenderedTextEnd(text_begin, text_end); + ImVec2 text_size; + float y = 0; + while (const char* tmp = (const char*)memchr(text_begin, '\n', title_end-text_begin)) { + text_size = ImGui::CalcTextSize(text_begin,tmp,true); + DrawList->AddText(ImVec2(top_center.x - text_size.x * 0.5f, top_center.y+y),col,text_begin,tmp); + text_begin = tmp + 1; + y += txt_ht; + } + text_size = ImGui::CalcTextSize(text_begin,title_end,true); + DrawList->AddText(ImVec2(top_center.x - text_size.x * 0.5f, top_center.y+y),col,text_begin,title_end); +} + +double NiceNum(double x, bool round) { + double f; + double nf; + int expv = (int)floor(ImLog10(x)); + f = x / ImPow(10.0, (double)expv); + if (round) + if (f < 1.5) + nf = 1; + else if (f < 3) + nf = 2; + else if (f < 7) + nf = 5; + else + nf = 10; + else if (f <= 1) + nf = 1; + else if (f <= 2) + nf = 2; + else if (f <= 5) + nf = 5; + else + nf = 10; + return nf * ImPow(10.0, expv); +} + +//----------------------------------------------------------------------------- +// Context Utils +//----------------------------------------------------------------------------- + +void SetImGuiContext(ImGuiContext* ctx) { + ImGui::SetCurrentContext(ctx); +} + +ImPlotContext* CreateContext() { + ImPlotContext* ctx = IM_NEW(ImPlotContext)(); + Initialize(ctx); + if (GImPlot == nullptr) + SetCurrentContext(ctx); + return ctx; +} + +void DestroyContext(ImPlotContext* ctx) { + if (ctx == nullptr) + ctx = GImPlot; + if (GImPlot == ctx) + SetCurrentContext(nullptr); + IM_DELETE(ctx); +} + +ImPlotContext* GetCurrentContext() { + return GImPlot; +} + +void SetCurrentContext(ImPlotContext* ctx) { + GImPlot = ctx; +} + +#define IMPLOT_APPEND_CMAP(name, qual) ctx->ColormapData.Append(#name, name, sizeof(name)/sizeof(ImU32), qual) +#define IM_RGB(r,g,b) IM_COL32(r,g,b,255) + +void Initialize(ImPlotContext* ctx) { + ResetCtxForNextPlot(ctx); + ResetCtxForNextAlignedPlots(ctx); + ResetCtxForNextSubplot(ctx); + + const ImU32 Deep[] = {4289753676, 4283598045, 4285048917, 4283584196, 4289950337, 4284512403, 4291005402, 4287401100, 4285839820, 4291671396 }; + const ImU32 Dark[] = {4280031972, 4290281015, 4283084621, 4288892568, 4278222847, 4281597951, 4280833702, 4290740727, 4288256409 }; + const ImU32 Pastel[] = {4289639675, 4293119411, 4291161036, 4293184478, 4289124862, 4291624959, 4290631909, 4293712637, 4294111986 }; + const ImU32 Paired[] = {4293119554, 4290017311, 4287291314, 4281114675, 4288256763, 4280031971, 4285513725, 4278222847, 4292260554, 4288298346, 4288282623, 4280834481}; + const ImU32 Viridis[] = {4283695428, 4285867080, 4287054913, 4287455029, 4287526954, 4287402273, 4286883874, 4285579076, 4283552122, 4280737725, 4280674301 }; + const ImU32 Plasma[] = {4287039501, 4288480321, 4289200234, 4288941455, 4287638193, 4286072780, 4284638433, 4283139314, 4281771772, 4280667900, 4280416752 }; + const ImU32 Hot[] = {4278190144, 4278190208, 4278190271, 4278190335, 4278206719, 4278223103, 4278239231, 4278255615, 4283826175, 4289396735, 4294967295 }; + const ImU32 Cool[] = {4294967040, 4294960666, 4294954035, 4294947661, 4294941030, 4294934656, 4294928025, 4294921651, 4294915020, 4294908646, 4294902015 }; + const ImU32 Pink[] = {4278190154, 4282532475, 4284308894, 4285690554, 4286879686, 4287870160, 4288794330, 4289651940, 4291685869, 4293392118, 4294967295 }; + const ImU32 Jet[] = {4289331200, 4294901760, 4294923520, 4294945280, 4294967040, 4289396565, 4283826090, 4278255615, 4278233855, 4278212095, 4278190335 }; + const ImU32 Twilight[] = {IM_RGB(226,217,226),IM_RGB(166,191,202),IM_RGB(109,144,192),IM_RGB(95,88,176),IM_RGB(83,30,124),IM_RGB(47,20,54),IM_RGB(100,25,75),IM_RGB(159,60,80),IM_RGB(192,117,94),IM_RGB(208,179,158),IM_RGB(226,217,226)}; + const ImU32 RdBu[] = {IM_RGB(103,0,31),IM_RGB(178,24,43),IM_RGB(214,96,77),IM_RGB(244,165,130),IM_RGB(253,219,199),IM_RGB(247,247,247),IM_RGB(209,229,240),IM_RGB(146,197,222),IM_RGB(67,147,195),IM_RGB(33,102,172),IM_RGB(5,48,97)}; + const ImU32 BrBG[] = {IM_RGB(84,48,5),IM_RGB(140,81,10),IM_RGB(191,129,45),IM_RGB(223,194,125),IM_RGB(246,232,195),IM_RGB(245,245,245),IM_RGB(199,234,229),IM_RGB(128,205,193),IM_RGB(53,151,143),IM_RGB(1,102,94),IM_RGB(0,60,48)}; + const ImU32 PiYG[] = {IM_RGB(142,1,82),IM_RGB(197,27,125),IM_RGB(222,119,174),IM_RGB(241,182,218),IM_RGB(253,224,239),IM_RGB(247,247,247),IM_RGB(230,245,208),IM_RGB(184,225,134),IM_RGB(127,188,65),IM_RGB(77,146,33),IM_RGB(39,100,25)}; + const ImU32 Spectral[] = {IM_RGB(158,1,66),IM_RGB(213,62,79),IM_RGB(244,109,67),IM_RGB(253,174,97),IM_RGB(254,224,139),IM_RGB(255,255,191),IM_RGB(230,245,152),IM_RGB(171,221,164),IM_RGB(102,194,165),IM_RGB(50,136,189),IM_RGB(94,79,162)}; + const ImU32 Greys[] = {IM_COL32_WHITE, IM_COL32_BLACK }; + + IMPLOT_APPEND_CMAP(Deep, true); + IMPLOT_APPEND_CMAP(Dark, true); + IMPLOT_APPEND_CMAP(Pastel, true); + IMPLOT_APPEND_CMAP(Paired, true); + IMPLOT_APPEND_CMAP(Viridis, false); + IMPLOT_APPEND_CMAP(Plasma, false); + IMPLOT_APPEND_CMAP(Hot, false); + IMPLOT_APPEND_CMAP(Cool, false); + IMPLOT_APPEND_CMAP(Pink, false); + IMPLOT_APPEND_CMAP(Jet, false); + IMPLOT_APPEND_CMAP(Twilight, false); + IMPLOT_APPEND_CMAP(RdBu, false); + IMPLOT_APPEND_CMAP(BrBG, false); + IMPLOT_APPEND_CMAP(PiYG, false); + IMPLOT_APPEND_CMAP(Spectral, false); + IMPLOT_APPEND_CMAP(Greys, false); +} + +void ResetCtxForNextPlot(ImPlotContext* ctx) { + // end child window if it was made + if (ctx->ChildWindowMade) + ImGui::EndChild(); + ctx->ChildWindowMade = false; + // reset the next plot/item data + ctx->NextPlotData.Reset(); + ctx->NextItemData.Reset(); + // reset labels + ctx->Annotations.Reset(); + ctx->Tags.Reset(); + // reset extents/fit + ctx->OpenContextThisFrame = false; + // reset digital plot items count + ctx->DigitalPlotItemCnt = 0; + ctx->DigitalPlotOffset = 0; + // nullify plot + ctx->CurrentPlot = nullptr; + ctx->CurrentItem = nullptr; + ctx->PreviousItem = nullptr; +} + +void ResetCtxForNextAlignedPlots(ImPlotContext* ctx) { + ctx->CurrentAlignmentH = nullptr; + ctx->CurrentAlignmentV = nullptr; +} + +void ResetCtxForNextSubplot(ImPlotContext* ctx) { + ctx->CurrentSubplot = nullptr; + ctx->CurrentAlignmentH = nullptr; + ctx->CurrentAlignmentV = nullptr; +} + +//----------------------------------------------------------------------------- +// Plot Utils +//----------------------------------------------------------------------------- + +ImPlotPlot* GetPlot(const char* title) { + ImGuiWindow* Window = GImGui->CurrentWindow; + const ImGuiID ID = Window->GetID(title); + return GImPlot->Plots.GetByKey(ID); +} + +ImPlotPlot* GetCurrentPlot() { + return GImPlot->CurrentPlot; +} + +void BustPlotCache() { + ImPlotContext& gp = *GImPlot; + gp.Plots.Clear(); + gp.Subplots.Clear(); +} + +//----------------------------------------------------------------------------- +// Legend Utils +//----------------------------------------------------------------------------- + +ImVec2 GetLocationPos(const ImRect& outer_rect, const ImVec2& inner_size, ImPlotLocation loc, const ImVec2& pad) { + ImVec2 pos; + if (ImHasFlag(loc, ImPlotLocation_West) && !ImHasFlag(loc, ImPlotLocation_East)) + pos.x = outer_rect.Min.x + pad.x; + else if (!ImHasFlag(loc, ImPlotLocation_West) && ImHasFlag(loc, ImPlotLocation_East)) + pos.x = outer_rect.Max.x - pad.x - inner_size.x; + else + pos.x = outer_rect.GetCenter().x - inner_size.x * 0.5f; + // legend reference point y + if (ImHasFlag(loc, ImPlotLocation_North) && !ImHasFlag(loc, ImPlotLocation_South)) + pos.y = outer_rect.Min.y + pad.y; + else if (!ImHasFlag(loc, ImPlotLocation_North) && ImHasFlag(loc, ImPlotLocation_South)) + pos.y = outer_rect.Max.y - pad.y - inner_size.y; + else + pos.y = outer_rect.GetCenter().y - inner_size.y * 0.5f; + pos.x = IM_ROUND(pos.x); + pos.y = IM_ROUND(pos.y); + return pos; +} + +ImVec2 CalcLegendSize(ImPlotItemGroup& items, const ImVec2& pad, const ImVec2& spacing, bool vertical) { + // vars + const int nItems = items.GetLegendCount(); + const float txt_ht = ImGui::GetTextLineHeight(); + const float icon_size = txt_ht; + // get label max width + float max_label_width = 0; + float sum_label_width = 0; + for (int i = 0; i < nItems; ++i) { + const char* label = items.GetLegendLabel(i); + const float label_width = ImGui::CalcTextSize(label, nullptr, true).x; + max_label_width = label_width > max_label_width ? label_width : max_label_width; + sum_label_width += label_width; + } + // calc legend size + const ImVec2 legend_size = vertical ? + ImVec2(pad.x * 2 + icon_size + max_label_width, pad.y * 2 + nItems * txt_ht + (nItems - 1) * spacing.y) : + ImVec2(pad.x * 2 + icon_size * nItems + sum_label_width + (nItems - 1) * spacing.x, pad.y * 2 + txt_ht); + return legend_size; +} + +int LegendSortingComp(const void* _a, const void* _b) { + ImPlotItemGroup* items = GImPlot->SortItems; + const int a = *(const int*)_a; + const int b = *(const int*)_b; + const char* label_a = items->GetLegendLabel(a); + const char* label_b = items->GetLegendLabel(b); + return strcmp(label_a,label_b); +} + +bool ShowLegendEntries(ImPlotItemGroup& items, const ImRect& legend_bb, bool hovered, const ImVec2& pad, const ImVec2& spacing, bool vertical, ImDrawList& DrawList) { + // vars + const float txt_ht = ImGui::GetTextLineHeight(); + const float icon_size = txt_ht; + const float icon_shrink = 2; + ImU32 col_txt = GetStyleColorU32(ImPlotCol_LegendText); + ImU32 col_txt_dis = ImAlphaU32(col_txt, 0.25f); + // render each legend item + float sum_label_width = 0; + bool any_item_hovered = false; + + const int num_items = items.GetLegendCount(); + if (num_items < 1) + return hovered; + // build render order + ImPlotContext& gp = *GImPlot; + ImVector& indices = gp.TempInt1; + indices.resize(num_items); + for (int i = 0; i < num_items; ++i) + indices[i] = i; + if (ImHasFlag(items.Legend.Flags, ImPlotLegendFlags_Sort) && num_items > 1) { + gp.SortItems = &items; + qsort(indices.Data, num_items, sizeof(int), LegendSortingComp); + } + // render + for (int i = 0; i < num_items; ++i) { + const int idx = indices[i]; + ImPlotItem* item = items.GetLegendItem(idx); + const char* label = items.GetLegendLabel(idx); + const float label_width = ImGui::CalcTextSize(label, nullptr, true).x; + const ImVec2 top_left = vertical ? + legend_bb.Min + pad + ImVec2(0, i * (txt_ht + spacing.y)) : + legend_bb.Min + pad + ImVec2(i * (icon_size + spacing.x) + sum_label_width, 0); + sum_label_width += label_width; + ImRect icon_bb; + icon_bb.Min = top_left + ImVec2(icon_shrink,icon_shrink); + icon_bb.Max = top_left + ImVec2(icon_size - icon_shrink, icon_size - icon_shrink); + ImRect label_bb; + label_bb.Min = top_left; + label_bb.Max = top_left + ImVec2(label_width + icon_size, icon_size); + ImU32 col_txt_hl; + ImU32 col_item = ImAlphaU32(item->Color,1); + + ImRect button_bb(icon_bb.Min, label_bb.Max); + + ImGui::KeepAliveID(item->ID); + + bool item_hov = false; + bool item_hld = false; + bool item_clk = ImHasFlag(items.Legend.Flags, ImPlotLegendFlags_NoButtons) + ? false + : ImGui::ButtonBehavior(button_bb, item->ID, &item_hov, &item_hld); + + if (item_clk) + item->Show = !item->Show; + + + const bool can_hover = (item_hov) + && (!ImHasFlag(items.Legend.Flags, ImPlotLegendFlags_NoHighlightItem) + || !ImHasFlag(items.Legend.Flags, ImPlotLegendFlags_NoHighlightAxis)); + + if (can_hover) { + item->LegendHoverRect.Min = icon_bb.Min; + item->LegendHoverRect.Max = label_bb.Max; + item->LegendHovered = true; + col_txt_hl = ImMixU32(col_txt, col_item, 64); + any_item_hovered = true; + } + else { + col_txt_hl = ImGui::GetColorU32(col_txt); + } + ImU32 col_icon; + if (item_hld) + col_icon = item->Show ? ImAlphaU32(col_item,0.5f) : ImGui::GetColorU32(ImGuiCol_TextDisabled, 0.5f); + else if (item_hov) + col_icon = item->Show ? ImAlphaU32(col_item,0.75f) : ImGui::GetColorU32(ImGuiCol_TextDisabled, 0.75f); + else + col_icon = item->Show ? col_item : col_txt_dis; + + DrawList.AddRectFilled(icon_bb.Min, icon_bb.Max, col_icon); + const char* text_display_end = ImGui::FindRenderedTextEnd(label, nullptr); + if (label != text_display_end) + DrawList.AddText(top_left + ImVec2(icon_size, 0), item->Show ? col_txt_hl : col_txt_dis, label, text_display_end); + } + return hovered && !any_item_hovered; +} + +//----------------------------------------------------------------------------- +// Locators +//----------------------------------------------------------------------------- + +static const float TICK_FILL_X = 0.8f; +static const float TICK_FILL_Y = 1.0f; + +void Locator_Default(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) { + if (range.Min == range.Max) + return; + const int nMinor = 10; + const int nMajor = ImMax(2, (int)IM_ROUND(pixels / (vertical ? 300.0f : 400.0f))); + const double nice_range = NiceNum(range.Size() * 0.99, false); + const double interval = NiceNum(nice_range / (nMajor - 1), true); + const double graphmin = floor(range.Min / interval) * interval; + const double graphmax = ceil(range.Max / interval) * interval; + bool first_major_set = false; + int first_major_idx = 0; + const int idx0 = ticker.TickCount(); // ticker may have user custom ticks + ImVec2 total_size(0,0); + for (double major = graphmin; major < graphmax + 0.5 * interval; major += interval) { + // is this zero? combat zero formatting issues + if (major-interval < 0 && major+interval > 0) + major = 0; + if (range.Contains(major)) { + if (!first_major_set) { + first_major_idx = ticker.TickCount(); + first_major_set = true; + } + total_size += ticker.AddTick(major, true, 0, true, formatter, formatter_data).LabelSize; + } + for (int i = 1; i < nMinor; ++i) { + double minor = major + i * interval / nMinor; + if (range.Contains(minor)) { + total_size += ticker.AddTick(minor, false, 0, true, formatter, formatter_data).LabelSize; + } + } + } + // prune if necessary + if ((!vertical && total_size.x > pixels*TICK_FILL_X) || (vertical && total_size.y > pixels*TICK_FILL_Y)) { + for (int i = first_major_idx-1; i >= idx0; i -= 2) + ticker.Ticks[i].ShowLabel = false; + for (int i = first_major_idx+1; i < ticker.TickCount(); i += 2) + ticker.Ticks[i].ShowLabel = false; + } +} + +bool CalcLogarithmicExponents(const ImPlotRange& range, float pix, bool vertical, int& exp_min, int& exp_max, int& exp_step) { + if (range.Min * range.Max > 0) { + const int nMajor = vertical ? ImMax(2, (int)IM_ROUND(pix * 0.02f)) : ImMax(2, (int)IM_ROUND(pix * 0.01f)); // TODO: magic numbers + double log_min = ImLog10(ImAbs(range.Min)); + double log_max = ImLog10(ImAbs(range.Max)); + double log_a = ImMin(log_min,log_max); + double log_b = ImMax(log_min,log_max); + exp_step = ImMax(1,(int)(log_b - log_a) / nMajor); + exp_min = (int)log_a; + exp_max = (int)log_b; + if (exp_step != 1) { + while(exp_step % 3 != 0) exp_step++; // make step size multiple of three + while(exp_min % exp_step != 0) exp_min--; // decrease exp_min until exp_min + N * exp_step will be 0 + } + return true; + } + return false; +} + +void AddTicksLogarithmic(const ImPlotRange& range, int exp_min, int exp_max, int exp_step, ImPlotTicker& ticker, ImPlotFormatter formatter, void* data) { + const double sign = ImSign(range.Max); + for (int e = exp_min - exp_step; e < (exp_max + exp_step); e += exp_step) { + double major1 = sign*ImPow(10, (double)(e)); + double major2 = sign*ImPow(10, (double)(e + 1)); + double interval = (major2 - major1) / 9; + if (major1 >= (range.Min - DBL_EPSILON) && major1 <= (range.Max + DBL_EPSILON)) + ticker.AddTick(major1, true, 0, true, formatter, data); + for (int j = 0; j < exp_step; ++j) { + major1 = sign*ImPow(10, (double)(e+j)); + major2 = sign*ImPow(10, (double)(e+j+1)); + interval = (major2 - major1) / 9; + for (int i = 1; i < (9 + (int)(j < (exp_step - 1))); ++i) { + double minor = major1 + i * interval; + if (minor >= (range.Min - DBL_EPSILON) && minor <= (range.Max + DBL_EPSILON)) + ticker.AddTick(minor, false, 0, false, formatter, data); + } + } + } +} + +void Locator_Log10(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) { + int exp_min, exp_max, exp_step; + if (CalcLogarithmicExponents(range, pixels, vertical, exp_min, exp_max, exp_step)) + AddTicksLogarithmic(range, exp_min, exp_max, exp_step, ticker, formatter, formatter_data); +} + +float CalcSymLogPixel(double plt, const ImPlotRange& range, float pixels) { + double scaleToPixels = pixels / range.Size(); + double scaleMin = TransformForward_SymLog(range.Min,nullptr); + double scaleMax = TransformForward_SymLog(range.Max,nullptr); + double s = TransformForward_SymLog(plt, nullptr); + double t = (s - scaleMin) / (scaleMax - scaleMin); + plt = range.Min + range.Size() * t; + + return (float)(0 + scaleToPixels * (plt - range.Min)); +} + +void Locator_SymLog(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) { + if (range.Min >= -1 && range.Max <= 1) { + Locator_Default(ticker, range, pixels, vertical, formatter, formatter_data); + } + else if (range.Min * range.Max < 0) { // cross zero + const float pix_min = 0; + const float pix_max = pixels; + const float pix_p1 = CalcSymLogPixel(1, range, pixels); + const float pix_n1 = CalcSymLogPixel(-1, range, pixels); + int exp_min_p, exp_max_p, exp_step_p; + int exp_min_n, exp_max_n, exp_step_n; + CalcLogarithmicExponents(ImPlotRange(1,range.Max), ImAbs(pix_max-pix_p1),vertical,exp_min_p,exp_max_p,exp_step_p); + CalcLogarithmicExponents(ImPlotRange(range.Min,-1),ImAbs(pix_n1-pix_min),vertical,exp_min_n,exp_max_n,exp_step_n); + int exp_step = ImMax(exp_step_n, exp_step_p); + ticker.AddTick(0,true,0,true,formatter,formatter_data); + AddTicksLogarithmic(ImPlotRange(1,range.Max), exp_min_p,exp_max_p,exp_step,ticker,formatter,formatter_data); + AddTicksLogarithmic(ImPlotRange(range.Min,-1),exp_min_n,exp_max_n,exp_step,ticker,formatter,formatter_data); + } + else { + Locator_Log10(ticker, range, pixels, vertical, formatter, formatter_data); + } +} + +void AddTicksCustom(const double* values, const char* const labels[], int n, ImPlotTicker& ticker, ImPlotFormatter formatter, void* data) { + for (int i = 0; i < n; ++i) { + if (labels != nullptr) + ticker.AddTick(values[i], false, 0, true, labels[i]); + else + ticker.AddTick(values[i], false, 0, true, formatter, data); + } +} + +//----------------------------------------------------------------------------- +// Time Ticks and Utils +//----------------------------------------------------------------------------- + +// this may not be thread safe? +static const double TimeUnitSpans[ImPlotTimeUnit_COUNT] = { + 0.000001, + 0.001, + 1, + 60, + 3600, + 86400, + 2629800, + 31557600 +}; + +inline ImPlotTimeUnit GetUnitForRange(double range) { + static double cutoffs[ImPlotTimeUnit_COUNT] = {0.001, 1, 60, 3600, 86400, 2629800, 31557600, IMPLOT_MAX_TIME}; + for (int i = 0; i < ImPlotTimeUnit_COUNT; ++i) { + if (range <= cutoffs[i]) + return (ImPlotTimeUnit)i; + } + return ImPlotTimeUnit_Yr; +} + +inline int LowerBoundStep(int max_divs, const int* divs, const int* step, int size) { + if (max_divs < divs[0]) + return 0; + for (int i = 1; i < size; ++i) { + if (max_divs < divs[i]) + return step[i-1]; + } + return step[size-1]; +} + +inline int GetTimeStep(int max_divs, ImPlotTimeUnit unit) { + if (unit == ImPlotTimeUnit_Ms || unit == ImPlotTimeUnit_Us) { + static const int step[] = {500,250,200,100,50,25,20,10,5,2,1}; + static const int divs[] = {2,4,5,10,20,40,50,100,200,500,1000}; + return LowerBoundStep(max_divs, divs, step, 11); + } + if (unit == ImPlotTimeUnit_S || unit == ImPlotTimeUnit_Min) { + static const int step[] = {30,15,10,5,1}; + static const int divs[] = {2,4,6,12,60}; + return LowerBoundStep(max_divs, divs, step, 5); + } + else if (unit == ImPlotTimeUnit_Hr) { + static const int step[] = {12,6,3,2,1}; + static const int divs[] = {2,4,8,12,24}; + return LowerBoundStep(max_divs, divs, step, 5); + } + else if (unit == ImPlotTimeUnit_Day) { + static const int step[] = {14,7,2,1}; + static const int divs[] = {2,4,14,28}; + return LowerBoundStep(max_divs, divs, step, 4); + } + else if (unit == ImPlotTimeUnit_Mo) { + static const int step[] = {6,3,2,1}; + static const int divs[] = {2,4,6,12}; + return LowerBoundStep(max_divs, divs, step, 4); + } + return 0; +} + +ImPlotTime MkGmtTime(struct tm *ptm) { + ImPlotTime t; +#ifdef _WIN32 + t.S = _mkgmtime(ptm); +#else + t.S = timegm(ptm); +#endif + if (t.S < 0) + t.S = 0; + return t; +} + +tm* GetGmtTime(const ImPlotTime& t, tm* ptm) +{ +#ifdef _WIN32 + if (gmtime_s(ptm, &t.S) == 0) + return ptm; + else + return nullptr; +#else + return gmtime_r(&t.S, ptm); +#endif +} + +ImPlotTime MkLocTime(struct tm *ptm) { + ImPlotTime t; + t.S = mktime(ptm); + if (t.S < 0) + t.S = 0; + return t; +} + +tm* GetLocTime(const ImPlotTime& t, tm* ptm) { +#ifdef _WIN32 + if (localtime_s(ptm, &t.S) == 0) + return ptm; + else + return nullptr; +#else + return localtime_r(&t.S, ptm); +#endif +} + +inline ImPlotTime MkTime(struct tm *ptm) { + if (GetStyle().UseLocalTime) + return MkLocTime(ptm); + else + return MkGmtTime(ptm); +} + +inline tm* GetTime(const ImPlotTime& t, tm* ptm) { + if (GetStyle().UseLocalTime) + return GetLocTime(t,ptm); + else + return GetGmtTime(t,ptm); +} + +ImPlotTime MakeTime(int year, int month, int day, int hour, int min, int sec, int us) { + tm& Tm = GImPlot->Tm; + + int yr = year - 1900; + if (yr < 0) + yr = 0; + + sec = sec + us / 1000000; + us = us % 1000000; + + Tm.tm_sec = sec; + Tm.tm_min = min; + Tm.tm_hour = hour; + Tm.tm_mday = day; + Tm.tm_mon = month; + Tm.tm_year = yr; + + ImPlotTime t = MkTime(&Tm); + + t.Us = us; + return t; +} + +int GetYear(const ImPlotTime& t) { + tm& Tm = GImPlot->Tm; + GetTime(t, &Tm); + return Tm.tm_year + 1900; +} + +ImPlotTime AddTime(const ImPlotTime& t, ImPlotTimeUnit unit, int count) { + tm& Tm = GImPlot->Tm; + ImPlotTime t_out = t; + switch(unit) { + case ImPlotTimeUnit_Us: t_out.Us += count; break; + case ImPlotTimeUnit_Ms: t_out.Us += count * 1000; break; + case ImPlotTimeUnit_S: t_out.S += count; break; + case ImPlotTimeUnit_Min: t_out.S += count * 60; break; + case ImPlotTimeUnit_Hr: t_out.S += count * 3600; break; + case ImPlotTimeUnit_Day: t_out.S += count * 86400; break; + case ImPlotTimeUnit_Mo: for (int i = 0; i < abs(count); ++i) { + GetTime(t_out, &Tm); + if (count > 0) + t_out.S += 86400 * GetDaysInMonth(Tm.tm_year + 1900, Tm.tm_mon); + else if (count < 0) + t_out.S -= 86400 * GetDaysInMonth(Tm.tm_year + 1900 - (Tm.tm_mon == 0 ? 1 : 0), Tm.tm_mon == 0 ? 11 : Tm.tm_mon - 1); // NOT WORKING + } + break; + case ImPlotTimeUnit_Yr: for (int i = 0; i < abs(count); ++i) { + if (count > 0) + t_out.S += 86400 * (365 + (int)IsLeapYear(GetYear(t_out))); + else if (count < 0) + t_out.S -= 86400 * (365 + (int)IsLeapYear(GetYear(t_out) - 1)); + // this is incorrect if leap year and we are past Feb 28 + } + break; + default: break; + } + t_out.RollOver(); + return t_out; +} + +ImPlotTime FloorTime(const ImPlotTime& t, ImPlotTimeUnit unit) { + ImPlotContext& gp = *GImPlot; + GetTime(t, &gp.Tm); + switch (unit) { + case ImPlotTimeUnit_S: return ImPlotTime(t.S, 0); + case ImPlotTimeUnit_Ms: return ImPlotTime(t.S, (t.Us / 1000) * 1000); + case ImPlotTimeUnit_Us: return t; + case ImPlotTimeUnit_Yr: gp.Tm.tm_mon = 0; // fall-through + case ImPlotTimeUnit_Mo: gp.Tm.tm_mday = 1; // fall-through + case ImPlotTimeUnit_Day: gp.Tm.tm_hour = 0; // fall-through + case ImPlotTimeUnit_Hr: gp.Tm.tm_min = 0; // fall-through + case ImPlotTimeUnit_Min: gp.Tm.tm_sec = 0; break; + default: return t; + } + return MkTime(&gp.Tm); +} + +ImPlotTime CeilTime(const ImPlotTime& t, ImPlotTimeUnit unit) { + return AddTime(FloorTime(t, unit), unit, 1); +} + +ImPlotTime RoundTime(const ImPlotTime& t, ImPlotTimeUnit unit) { + ImPlotTime t1 = FloorTime(t, unit); + ImPlotTime t2 = AddTime(t1,unit,1); + if (t1.S == t2.S) + return t.Us - t1.Us < t2.Us - t.Us ? t1 : t2; + return t.S - t1.S < t2.S - t.S ? t1 : t2; +} + +ImPlotTime CombineDateTime(const ImPlotTime& date_part, const ImPlotTime& tod_part) { + ImPlotContext& gp = *GImPlot; + tm& Tm = gp.Tm; + GetTime(date_part, &gp.Tm); + int y = Tm.tm_year; + int m = Tm.tm_mon; + int d = Tm.tm_mday; + GetTime(tod_part, &gp.Tm); + Tm.tm_year = y; + Tm.tm_mon = m; + Tm.tm_mday = d; + ImPlotTime t = MkTime(&Tm); + t.Us = tod_part.Us; + return t; +} + +// TODO: allow users to define these +static const char* MONTH_NAMES[] = {"January","February","March","April","May","June","July","August","September","October","November","December"}; +static const char* WD_ABRVS[] = {"Su","Mo","Tu","We","Th","Fr","Sa"}; +static const char* MONTH_ABRVS[] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; + +int FormatTime(const ImPlotTime& t, char* buffer, int size, ImPlotTimeFmt fmt, bool use_24_hr_clk) { + tm& Tm = GImPlot->Tm; + GetTime(t, &Tm); + const int us = t.Us % 1000; + const int ms = t.Us / 1000; + const int sec = Tm.tm_sec; + const int min = Tm.tm_min; + if (use_24_hr_clk) { + const int hr = Tm.tm_hour; + switch(fmt) { + case ImPlotTimeFmt_Us: return ImFormatString(buffer, size, ".%03d %03d", ms, us); + case ImPlotTimeFmt_SUs: return ImFormatString(buffer, size, ":%02d.%03d %03d", sec, ms, us); + case ImPlotTimeFmt_SMs: return ImFormatString(buffer, size, ":%02d.%03d", sec, ms); + case ImPlotTimeFmt_S: return ImFormatString(buffer, size, ":%02d", sec); + case ImPlotTimeFmt_MinSMs: return ImFormatString(buffer, size, ":%02d:%02d.%03d", min, sec, ms); + case ImPlotTimeFmt_HrMinSMs: return ImFormatString(buffer, size, "%02d:%02d:%02d.%03d", hr, min, sec, ms); + case ImPlotTimeFmt_HrMinS: return ImFormatString(buffer, size, "%02d:%02d:%02d", hr, min, sec); + case ImPlotTimeFmt_HrMin: return ImFormatString(buffer, size, "%02d:%02d", hr, min); + case ImPlotTimeFmt_Hr: return ImFormatString(buffer, size, "%02d:00", hr); + default: return 0; + } + } + else { + const char* ap = Tm.tm_hour < 12 ? "am" : "pm"; + const int hr = (Tm.tm_hour == 0 || Tm.tm_hour == 12) ? 12 : Tm.tm_hour % 12; + switch(fmt) { + case ImPlotTimeFmt_Us: return ImFormatString(buffer, size, ".%03d %03d", ms, us); + case ImPlotTimeFmt_SUs: return ImFormatString(buffer, size, ":%02d.%03d %03d", sec, ms, us); + case ImPlotTimeFmt_SMs: return ImFormatString(buffer, size, ":%02d.%03d", sec, ms); + case ImPlotTimeFmt_S: return ImFormatString(buffer, size, ":%02d", sec); + case ImPlotTimeFmt_MinSMs: return ImFormatString(buffer, size, ":%02d:%02d.%03d", min, sec, ms); + case ImPlotTimeFmt_HrMinSMs: return ImFormatString(buffer, size, "%d:%02d:%02d.%03d%s", hr, min, sec, ms, ap); + case ImPlotTimeFmt_HrMinS: return ImFormatString(buffer, size, "%d:%02d:%02d%s", hr, min, sec, ap); + case ImPlotTimeFmt_HrMin: return ImFormatString(buffer, size, "%d:%02d%s", hr, min, ap); + case ImPlotTimeFmt_Hr: return ImFormatString(buffer, size, "%d%s", hr, ap); + default: return 0; + } + } +} + +int FormatDate(const ImPlotTime& t, char* buffer, int size, ImPlotDateFmt fmt, bool use_iso_8601) { + tm& Tm = GImPlot->Tm; + GetTime(t, &Tm); + const int day = Tm.tm_mday; + const int mon = Tm.tm_mon + 1; + const int year = Tm.tm_year + 1900; + const int yr = year % 100; + if (use_iso_8601) { + switch (fmt) { + case ImPlotDateFmt_DayMo: return ImFormatString(buffer, size, "--%02d-%02d", mon, day); + case ImPlotDateFmt_DayMoYr: return ImFormatString(buffer, size, "%d-%02d-%02d", year, mon, day); + case ImPlotDateFmt_MoYr: return ImFormatString(buffer, size, "%d-%02d", year, mon); + case ImPlotDateFmt_Mo: return ImFormatString(buffer, size, "--%02d", mon); + case ImPlotDateFmt_Yr: return ImFormatString(buffer, size, "%d", year); + default: return 0; + } + } + else { + switch (fmt) { + case ImPlotDateFmt_DayMo: return ImFormatString(buffer, size, "%d/%d", mon, day); + case ImPlotDateFmt_DayMoYr: return ImFormatString(buffer, size, "%d/%d/%02d", mon, day, yr); + case ImPlotDateFmt_MoYr: return ImFormatString(buffer, size, "%s %d", MONTH_ABRVS[Tm.tm_mon], year); + case ImPlotDateFmt_Mo: return ImFormatString(buffer, size, "%s", MONTH_ABRVS[Tm.tm_mon]); + case ImPlotDateFmt_Yr: return ImFormatString(buffer, size, "%d", year); + default: return 0; + } + } + } + +int FormatDateTime(const ImPlotTime& t, char* buffer, int size, ImPlotDateTimeSpec fmt) { + int written = 0; + if (fmt.Date != ImPlotDateFmt_None) + written += FormatDate(t, buffer, size, fmt.Date, fmt.UseISO8601); + if (fmt.Time != ImPlotTimeFmt_None) { + if (fmt.Date != ImPlotDateFmt_None) + buffer[written++] = ' '; + written += FormatTime(t, &buffer[written], size - written, fmt.Time, fmt.Use24HourClock); + } + return written; +} + +inline float GetDateTimeWidth(ImPlotDateTimeSpec fmt) { + static const ImPlotTime t_max_width = MakeTime(2888, 12, 22, 12, 58, 58, 888888); // best guess at time that maximizes pixel width + char buffer[32]; + FormatDateTime(t_max_width, buffer, 32, fmt); + return ImGui::CalcTextSize(buffer).x; +} + +inline bool TimeLabelSame(const char* l1, const char* l2) { + size_t len1 = strlen(l1); + size_t len2 = strlen(l2); + size_t n = len1 < len2 ? len1 : len2; + return strcmp(l1 + len1 - n, l2 + len2 - n) == 0; +} + +static const ImPlotDateTimeSpec TimeFormatLevel0[ImPlotTimeUnit_COUNT] = { + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_Us), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_SMs), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_S), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_HrMin), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_Hr), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMo, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_Mo, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_Yr, ImPlotTimeFmt_None) +}; + +static const ImPlotDateTimeSpec TimeFormatLevel1[ImPlotTimeUnit_COUNT] = { + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_HrMin), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_HrMinS), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_HrMin), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_HrMin), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_Yr, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_Yr, ImPlotTimeFmt_None) +}; + +static const ImPlotDateTimeSpec TimeFormatLevel1First[ImPlotTimeUnit_COUNT] = { + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_HrMinS), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_HrMinS), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_HrMin), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_HrMin), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_Yr, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_Yr, ImPlotTimeFmt_None) +}; + +static const ImPlotDateTimeSpec TimeFormatMouseCursor[ImPlotTimeUnit_COUNT] = { + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_Us), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_SUs), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_SMs), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_HrMinS), + ImPlotDateTimeSpec(ImPlotDateFmt_None, ImPlotTimeFmt_HrMin), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMo, ImPlotTimeFmt_Hr), + ImPlotDateTimeSpec(ImPlotDateFmt_DayMoYr, ImPlotTimeFmt_None), + ImPlotDateTimeSpec(ImPlotDateFmt_MoYr, ImPlotTimeFmt_None) +}; + +inline ImPlotDateTimeSpec GetDateTimeFmt(const ImPlotDateTimeSpec* ctx, ImPlotTimeUnit idx) { + ImPlotStyle& style = GetStyle(); + ImPlotDateTimeSpec fmt = ctx[idx]; + fmt.UseISO8601 = style.UseISO8601; + fmt.Use24HourClock = style.Use24HourClock; + return fmt; +} + +void Locator_Time(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data) { + IM_ASSERT_USER_ERROR(vertical == false, "Cannot locate Time ticks on vertical axis!"); + (void)vertical; + // get units for level 0 and level 1 labels + const ImPlotTimeUnit unit0 = GetUnitForRange(range.Size() / (pixels / 100)); // level = 0 (top) + const ImPlotTimeUnit unit1 = ImClamp(unit0 + 1, 0, ImPlotTimeUnit_COUNT-1); // level = 1 (bottom) + // get time format specs + const ImPlotDateTimeSpec fmt0 = GetDateTimeFmt(TimeFormatLevel0, unit0); + const ImPlotDateTimeSpec fmt1 = GetDateTimeFmt(TimeFormatLevel1, unit1); + const ImPlotDateTimeSpec fmtf = GetDateTimeFmt(TimeFormatLevel1First, unit1); + // min max times + const ImPlotTime t_min = ImPlotTime::FromDouble(range.Min); + const ImPlotTime t_max = ImPlotTime::FromDouble(range.Max); + // maximum allowable density of labels + const float max_density = 0.5f; + // book keeping + int last_major_offset = -1; + // formatter data + Formatter_Time_Data ftd; + ftd.UserFormatter = formatter; + ftd.UserFormatterData = formatter_data; + if (unit0 != ImPlotTimeUnit_Yr) { + // pixels per major (level 1) division + const float pix_per_major_div = pixels / (float)(range.Size() / TimeUnitSpans[unit1]); + // nominal pixels taken up by labels + const float fmt0_width = GetDateTimeWidth(fmt0); + const float fmt1_width = GetDateTimeWidth(fmt1); + const float fmtf_width = GetDateTimeWidth(fmtf); + // the maximum number of minor (level 0) labels that can fit between major (level 1) divisions + const int minor_per_major = (int)(max_density * pix_per_major_div / fmt0_width); + // the minor step size (level 0) + const int step = GetTimeStep(minor_per_major, unit0); + // generate ticks + ImPlotTime t1 = FloorTime(ImPlotTime::FromDouble(range.Min), unit1); + while (t1 < t_max) { + // get next major + const ImPlotTime t2 = AddTime(t1, unit1, 1); + // add major tick + if (t1 >= t_min && t1 <= t_max) { + // minor level 0 tick + ftd.Time = t1; ftd.Spec = fmt0; + ticker.AddTick(t1.ToDouble(), true, 0, true, Formatter_Time, &ftd); + // major level 1 tick + ftd.Time = t1; ftd.Spec = last_major_offset < 0 ? fmtf : fmt1; + ImPlotTick& tick_maj = ticker.AddTick(t1.ToDouble(), true, 1, true, Formatter_Time, &ftd); + const char* this_major = ticker.GetText(tick_maj); + if (last_major_offset >= 0 && TimeLabelSame(ticker.TextBuffer.Buf.Data + last_major_offset, this_major)) + tick_maj.ShowLabel = false; + last_major_offset = tick_maj.TextOffset; + } + // add minor ticks up until next major + if (minor_per_major > 1 && (t_min <= t2 && t1 <= t_max)) { + ImPlotTime t12 = AddTime(t1, unit0, step); + while (t12 < t2) { + float px_to_t2 = (float)((t2 - t12).ToDouble()/range.Size()) * pixels; + if (t12 >= t_min && t12 <= t_max) { + ftd.Time = t12; ftd.Spec = fmt0; + ticker.AddTick(t12.ToDouble(), false, 0, px_to_t2 >= fmt0_width, Formatter_Time, &ftd); + if (last_major_offset < 0 && px_to_t2 >= fmt0_width && px_to_t2 >= (fmt1_width + fmtf_width) / 2) { + ftd.Time = t12; ftd.Spec = fmtf; + ImPlotTick& tick_maj = ticker.AddTick(t12.ToDouble(), true, 1, true, Formatter_Time, &ftd); + last_major_offset = tick_maj.TextOffset; + } + } + t12 = AddTime(t12, unit0, step); + } + } + t1 = t2; + } + } + else { + const ImPlotDateTimeSpec fmty = GetDateTimeFmt(TimeFormatLevel0, ImPlotTimeUnit_Yr); + const float label_width = GetDateTimeWidth(fmty); + const int max_labels = (int)(max_density * pixels / label_width); + const int year_min = GetYear(t_min); + const int year_max = GetYear(CeilTime(t_max, ImPlotTimeUnit_Yr)); + const double nice_range = NiceNum((year_max - year_min)*0.99,false); + const double interval = NiceNum(nice_range / (max_labels - 1), true); + const int graphmin = (int)(floor(year_min / interval) * interval); + const int graphmax = (int)(ceil(year_max / interval) * interval); + const int step = (int)interval <= 0 ? 1 : (int)interval; + + for (int y = graphmin; y < graphmax; y += step) { + ImPlotTime t = MakeTime(y); + if (t >= t_min && t <= t_max) { + ftd.Time = t; ftd.Spec = fmty; + ticker.AddTick(t.ToDouble(), true, 0, true, Formatter_Time, &ftd); + } + } + } +} + +//----------------------------------------------------------------------------- +// Context Menu +//----------------------------------------------------------------------------- + +template +bool DragFloat(const char*, F*, float, F, F) { + return false; +} + +template <> +bool DragFloat(const char* label, double* v, float v_speed, double v_min, double v_max) { + return ImGui::DragScalar(label, ImGuiDataType_Double, v, v_speed, &v_min, &v_max, "%.3g", 1); +} + +template <> +bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max) { + return ImGui::DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, "%.3g", 1); +} + +inline void BeginDisabledControls(bool cond) { + if (cond) { + ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true); + ImGui::PushStyleVar(ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * 0.25f); + } +} + +inline void EndDisabledControls(bool cond) { + if (cond) { + ImGui::PopItemFlag(); + ImGui::PopStyleVar(); + } +} + +void ShowAxisContextMenu(ImPlotAxis& axis, ImPlotAxis* equal_axis, bool /*time_allowed*/) { + + ImGui::PushItemWidth(75); + bool always_locked = axis.IsRangeLocked() || axis.IsAutoFitting(); + bool label = axis.HasLabel(); + bool grid = axis.HasGridLines(); + bool ticks = axis.HasTickMarks(); + bool labels = axis.HasTickLabels(); + double drag_speed = (axis.Range.Size() <= DBL_EPSILON) ? DBL_EPSILON * 1.0e+13 : 0.01 * axis.Range.Size(); // recover from almost equal axis limits. + + if (axis.Scale == ImPlotScale_Time) { + ImPlotTime tmin = ImPlotTime::FromDouble(axis.Range.Min); + ImPlotTime tmax = ImPlotTime::FromDouble(axis.Range.Max); + + BeginDisabledControls(always_locked); + ImGui::CheckboxFlags("##LockMin", (unsigned int*)&axis.Flags, ImPlotAxisFlags_LockMin); + EndDisabledControls(always_locked); + ImGui::SameLine(); + BeginDisabledControls(axis.IsLockedMin() || always_locked); + if (ImGui::BeginMenu("Min Time")) { + if (ShowTimePicker("mintime", &tmin)) { + if (tmin >= tmax) + tmax = AddTime(tmin, ImPlotTimeUnit_S, 1); + axis.SetRange(tmin.ToDouble(),tmax.ToDouble()); + } + ImGui::Separator(); + if (ShowDatePicker("mindate",&axis.PickerLevel,&axis.PickerTimeMin,&tmin,&tmax)) { + tmin = CombineDateTime(axis.PickerTimeMin, tmin); + if (tmin >= tmax) + tmax = AddTime(tmin, ImPlotTimeUnit_S, 1); + axis.SetRange(tmin.ToDouble(), tmax.ToDouble()); + } + ImGui::EndMenu(); + } + EndDisabledControls(axis.IsLockedMin() || always_locked); + + BeginDisabledControls(always_locked); + ImGui::CheckboxFlags("##LockMax", (unsigned int*)&axis.Flags, ImPlotAxisFlags_LockMax); + EndDisabledControls(always_locked); + ImGui::SameLine(); + BeginDisabledControls(axis.IsLockedMax() || always_locked); + if (ImGui::BeginMenu("Max Time")) { + if (ShowTimePicker("maxtime", &tmax)) { + if (tmax <= tmin) + tmin = AddTime(tmax, ImPlotTimeUnit_S, -1); + axis.SetRange(tmin.ToDouble(),tmax.ToDouble()); + } + ImGui::Separator(); + if (ShowDatePicker("maxdate",&axis.PickerLevel,&axis.PickerTimeMax,&tmin,&tmax)) { + tmax = CombineDateTime(axis.PickerTimeMax, tmax); + if (tmax <= tmin) + tmin = AddTime(tmax, ImPlotTimeUnit_S, -1); + axis.SetRange(tmin.ToDouble(), tmax.ToDouble()); + } + ImGui::EndMenu(); + } + EndDisabledControls(axis.IsLockedMax() || always_locked); + } + else { + BeginDisabledControls(always_locked); + ImGui::CheckboxFlags("##LockMin", (unsigned int*)&axis.Flags, ImPlotAxisFlags_LockMin); + EndDisabledControls(always_locked); + ImGui::SameLine(); + BeginDisabledControls(axis.IsLockedMin() || always_locked); + double temp_min = axis.Range.Min; + if (DragFloat("Min", &temp_min, (float)drag_speed, -HUGE_VAL, axis.Range.Max - DBL_EPSILON)) { + axis.SetMin(temp_min,true); + if (equal_axis != nullptr) + equal_axis->SetAspect(axis.GetAspect()); + } + EndDisabledControls(axis.IsLockedMin() || always_locked); + + BeginDisabledControls(always_locked); + ImGui::CheckboxFlags("##LockMax", (unsigned int*)&axis.Flags, ImPlotAxisFlags_LockMax); + EndDisabledControls(always_locked); + ImGui::SameLine(); + BeginDisabledControls(axis.IsLockedMax() || always_locked); + double temp_max = axis.Range.Max; + if (DragFloat("Max", &temp_max, (float)drag_speed, axis.Range.Min + DBL_EPSILON, HUGE_VAL)) { + axis.SetMax(temp_max,true); + if (equal_axis != nullptr) + equal_axis->SetAspect(axis.GetAspect()); + } + EndDisabledControls(axis.IsLockedMax() || always_locked); + } + + ImGui::Separator(); + + ImGui::CheckboxFlags("Auto-Fit",(unsigned int*)&axis.Flags, ImPlotAxisFlags_AutoFit); + // TODO + // BeginDisabledControls(axis.IsTime() && time_allowed); + // ImGui::CheckboxFlags("Log Scale",(unsigned int*)&axis.Flags, ImPlotAxisFlags_LogScale); + // EndDisabledControls(axis.IsTime() && time_allowed); + // if (time_allowed) { + // BeginDisabledControls(axis.IsLog() || axis.IsSymLog()); + // ImGui::CheckboxFlags("Time",(unsigned int*)&axis.Flags, ImPlotAxisFlags_Time); + // EndDisabledControls(axis.IsLog() || axis.IsSymLog()); + // } + ImGui::Separator(); + ImGui::CheckboxFlags("Invert",(unsigned int*)&axis.Flags, ImPlotAxisFlags_Invert); + ImGui::CheckboxFlags("Opposite",(unsigned int*)&axis.Flags, ImPlotAxisFlags_Opposite); + ImGui::Separator(); + BeginDisabledControls(axis.LabelOffset == -1); + if (ImGui::Checkbox("Label", &label)) + ImFlipFlag(axis.Flags, ImPlotAxisFlags_NoLabel); + EndDisabledControls(axis.LabelOffset == -1); + if (ImGui::Checkbox("Grid Lines", &grid)) + ImFlipFlag(axis.Flags, ImPlotAxisFlags_NoGridLines); + if (ImGui::Checkbox("Tick Marks", &ticks)) + ImFlipFlag(axis.Flags, ImPlotAxisFlags_NoTickMarks); + if (ImGui::Checkbox("Tick Labels", &labels)) + ImFlipFlag(axis.Flags, ImPlotAxisFlags_NoTickLabels); + +} + +bool ShowLegendContextMenu(ImPlotLegend& legend, bool visible) { + const float s = ImGui::GetFrameHeight(); + bool ret = false; + if (ImGui::Checkbox("Show",&visible)) + ret = true; + if (legend.CanGoInside) + ImGui::CheckboxFlags("Outside",(unsigned int*)&legend.Flags, ImPlotLegendFlags_Outside); + if (ImGui::RadioButton("H", ImHasFlag(legend.Flags, ImPlotLegendFlags_Horizontal))) + legend.Flags |= ImPlotLegendFlags_Horizontal; + ImGui::SameLine(); + if (ImGui::RadioButton("V", !ImHasFlag(legend.Flags, ImPlotLegendFlags_Horizontal))) + legend.Flags &= ~ImPlotLegendFlags_Horizontal; + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2,2)); + if (ImGui::Button("NW",ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_NorthWest; } ImGui::SameLine(); + if (ImGui::Button("N", ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_North; } ImGui::SameLine(); + if (ImGui::Button("NE",ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_NorthEast; } + if (ImGui::Button("W", ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_West; } ImGui::SameLine(); + if (ImGui::InvisibleButton("C", ImVec2(1.5f*s,s))) { } ImGui::SameLine(); + if (ImGui::Button("E", ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_East; } + if (ImGui::Button("SW",ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_SouthWest; } ImGui::SameLine(); + if (ImGui::Button("S", ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_South; } ImGui::SameLine(); + if (ImGui::Button("SE",ImVec2(1.5f*s,s))) { legend.Location = ImPlotLocation_SouthEast; } + ImGui::PopStyleVar(); + return ret; +} + +void ShowSubplotsContextMenu(ImPlotSubplot& subplot) { + if ((ImGui::BeginMenu("Linking"))) { + if (ImGui::MenuItem("Link Rows",nullptr,ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkRows))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_LinkRows); + if (ImGui::MenuItem("Link Cols",nullptr,ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkCols))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_LinkCols); + if (ImGui::MenuItem("Link All X",nullptr,ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkAllX))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_LinkAllX); + if (ImGui::MenuItem("Link All Y",nullptr,ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkAllY))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_LinkAllY); + ImGui::EndMenu(); + } + if ((ImGui::BeginMenu("Settings"))) { + BeginDisabledControls(!subplot.HasTitle); + if (ImGui::MenuItem("Title",nullptr,subplot.HasTitle && !ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoTitle))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_NoTitle); + EndDisabledControls(!subplot.HasTitle); + if (ImGui::MenuItem("Resizable",nullptr,!ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoResize))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_NoResize); + if (ImGui::MenuItem("Align",nullptr,!ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoAlign))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_NoAlign); + if (ImGui::MenuItem("Share Items",nullptr,ImHasFlag(subplot.Flags, ImPlotSubplotFlags_ShareItems))) + ImFlipFlag(subplot.Flags, ImPlotSubplotFlags_ShareItems); + ImGui::EndMenu(); + } +} + +void ShowPlotContextMenu(ImPlotPlot& plot) { + ImPlotContext& gp = *GImPlot; + const bool owns_legend = gp.CurrentItems == &plot.Items; + const bool equal = ImHasFlag(plot.Flags, ImPlotFlags_Equal); + + char buf[16] = {}; + + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (!x_axis.Enabled || !x_axis.HasMenus()) + continue; + ImGui::PushID(i); + ImFormatString(buf, sizeof(buf) - 1, i == 0 ? "X-Axis" : "X-Axis %d", i + 1); + if (ImGui::BeginMenu(x_axis.HasLabel() ? plot.GetAxisLabel(x_axis) : buf)) { + ShowAxisContextMenu(x_axis, equal ? x_axis.OrthoAxis : nullptr, false); + ImGui::EndMenu(); + } + ImGui::PopID(); + } + + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (!y_axis.Enabled || !y_axis.HasMenus()) + continue; + ImGui::PushID(i); + ImFormatString(buf, sizeof(buf) - 1, i == 0 ? "Y-Axis" : "Y-Axis %d", i + 1); + if (ImGui::BeginMenu(y_axis.HasLabel() ? plot.GetAxisLabel(y_axis) : buf)) { + ShowAxisContextMenu(y_axis, equal ? y_axis.OrthoAxis : nullptr, false); + ImGui::EndMenu(); + } + ImGui::PopID(); + } + + ImGui::Separator(); + if (!ImHasFlag(gp.CurrentItems->Legend.Flags, ImPlotLegendFlags_NoMenus)) { + if ((ImGui::BeginMenu("Legend"))) { + if (owns_legend) { + if (ShowLegendContextMenu(plot.Items.Legend, !ImHasFlag(plot.Flags, ImPlotFlags_NoLegend))) + ImFlipFlag(plot.Flags, ImPlotFlags_NoLegend); + } + else if (gp.CurrentSubplot != nullptr) { + if (ShowLegendContextMenu(gp.CurrentSubplot->Items.Legend, !ImHasFlag(gp.CurrentSubplot->Flags, ImPlotSubplotFlags_NoLegend))) + ImFlipFlag(gp.CurrentSubplot->Flags, ImPlotSubplotFlags_NoLegend); + } + ImGui::EndMenu(); + } + } + if ((ImGui::BeginMenu("Settings"))) { + if (ImGui::MenuItem("Equal", nullptr, ImHasFlag(plot.Flags, ImPlotFlags_Equal))) + ImFlipFlag(plot.Flags, ImPlotFlags_Equal); + if (ImGui::MenuItem("Box Select",nullptr,!ImHasFlag(plot.Flags, ImPlotFlags_NoBoxSelect))) + ImFlipFlag(plot.Flags, ImPlotFlags_NoBoxSelect); + BeginDisabledControls(plot.TitleOffset == -1); + if (ImGui::MenuItem("Title",nullptr,plot.HasTitle())) + ImFlipFlag(plot.Flags, ImPlotFlags_NoTitle); + EndDisabledControls(plot.TitleOffset == -1); + if (ImGui::MenuItem("Mouse Position",nullptr,!ImHasFlag(plot.Flags, ImPlotFlags_NoMouseText))) + ImFlipFlag(plot.Flags, ImPlotFlags_NoMouseText); + if (ImGui::MenuItem("Crosshairs",nullptr,ImHasFlag(plot.Flags, ImPlotFlags_Crosshairs))) + ImFlipFlag(plot.Flags, ImPlotFlags_Crosshairs); + ImGui::EndMenu(); + } + if (gp.CurrentSubplot != nullptr && !ImHasFlag(gp.CurrentSubplot->Flags, ImPlotSubplotFlags_NoMenus)) { + ImGui::Separator(); + if ((ImGui::BeginMenu("Subplots"))) { + ShowSubplotsContextMenu(*gp.CurrentSubplot); + ImGui::EndMenu(); + } + } +} + +//----------------------------------------------------------------------------- +// Axis Utils +//----------------------------------------------------------------------------- + +static inline int AxisPrecision(const ImPlotAxis& axis) { + const double range = axis.Ticker.TickCount() > 1 ? (axis.Ticker.Ticks[1].PlotPos - axis.Ticker.Ticks[0].PlotPos) : axis.Range.Size(); + return Precision(range); +} + +static inline double RoundAxisValue(const ImPlotAxis& axis, double value) { + return RoundTo(value, AxisPrecision(axis)); +} + +void LabelAxisValue(const ImPlotAxis& axis, double value, char* buff, int size, bool round) { + ImPlotContext& gp = *GImPlot; + // TODO: We shouldn't explicitly check that the axis is Time here. Ideally, + // Formatter_Time would handle the formatting for us, but the code below + // needs additional arguments which are not currently available in ImPlotFormatter + if (axis.Locator == Locator_Time) { + ImPlotTimeUnit unit = axis.Vertical + ? GetUnitForRange(axis.Range.Size() / (gp.CurrentPlot->PlotRect.GetHeight() / 100)) // TODO: magic value! + : GetUnitForRange(axis.Range.Size() / (gp.CurrentPlot->PlotRect.GetWidth() / 100)); // TODO: magic value! + FormatDateTime(ImPlotTime::FromDouble(value), buff, size, GetDateTimeFmt(TimeFormatMouseCursor, unit)); + } + else { + if (round) + value = RoundAxisValue(axis, value); + axis.Formatter(value, buff, size, axis.FormatterData); + } +} + +void UpdateAxisColors(ImPlotAxis& axis) { + const ImVec4 col_grid = GetStyleColorVec4(ImPlotCol_AxisGrid); + axis.ColorMaj = ImGui::GetColorU32(col_grid); + axis.ColorMin = ImGui::GetColorU32(col_grid*ImVec4(1,1,1,GImPlot->Style.MinorAlpha)); + axis.ColorTick = GetStyleColorU32(ImPlotCol_AxisTick); + axis.ColorTxt = GetStyleColorU32(ImPlotCol_AxisText); + axis.ColorBg = GetStyleColorU32(ImPlotCol_AxisBg); + axis.ColorHov = GetStyleColorU32(ImPlotCol_AxisBgHovered); + axis.ColorAct = GetStyleColorU32(ImPlotCol_AxisBgActive); + // axis.ColorHiLi = IM_COL32_BLACK_TRANS; +} + +void PadAndDatumAxesX(ImPlotPlot& plot, float& pad_T, float& pad_B, ImPlotAlignmentData* align) { + + ImPlotContext& gp = *GImPlot; + + const float T = ImGui::GetTextLineHeight(); + const float P = gp.Style.LabelPadding.y; + const float K = gp.Style.MinorTickLen.x; + + int count_T = 0; + int count_B = 0; + float last_T = plot.AxesRect.Min.y; + float last_B = plot.AxesRect.Max.y; + + for (int i = IMPLOT_NUM_X_AXES; i-- > 0;) { // FYI: can iterate forward + ImPlotAxis& axis = plot.XAxis(i); + if (!axis.Enabled) + continue; + const bool label = axis.HasLabel(); + const bool ticks = axis.HasTickLabels(); + const bool opp = axis.IsOpposite(); + const bool time = axis.Scale == ImPlotScale_Time; + if (opp) { + if (count_T++ > 0) + pad_T += K + P; + if (label) + pad_T += T + P; + if (ticks) + pad_T += ImMax(T, axis.Ticker.MaxSize.y) + P + (time ? T + P : 0); + axis.Datum1 = plot.CanvasRect.Min.y + pad_T; + axis.Datum2 = last_T; + last_T = axis.Datum1; + } + else { + if (count_B++ > 0) + pad_B += K + P; + if (label) + pad_B += T + P; + if (ticks) + pad_B += ImMax(T, axis.Ticker.MaxSize.y) + P + (time ? T + P : 0); + axis.Datum1 = plot.CanvasRect.Max.y - pad_B; + axis.Datum2 = last_B; + last_B = axis.Datum1; + } + } + + if (align) { + count_T = count_B = 0; + float delta_T, delta_B; + align->Update(pad_T,pad_B,delta_T,delta_B); + for (int i = IMPLOT_NUM_X_AXES; i-- > 0;) { + ImPlotAxis& axis = plot.XAxis(i); + if (!axis.Enabled) + continue; + if (axis.IsOpposite()) { + axis.Datum1 += delta_T; + axis.Datum2 += count_T++ > 1 ? delta_T : 0; + } + else { + axis.Datum1 -= delta_B; + axis.Datum2 -= count_B++ > 1 ? delta_B : 0; + } + } + } +} + +void PadAndDatumAxesY(ImPlotPlot& plot, float& pad_L, float& pad_R, ImPlotAlignmentData* align) { + + // [ pad_L ] [ pad_R ] + // .................CanvasRect................ + // :TPWPK.PTPWP _____PlotRect____ PWPTP.KPWPT: + // :A # |- A # |- -| # A -| # A: + // :X | X | | X | x: + // :I # |- I # |- -| # I -| # I: + // :S | S | | S | S: + // :3 # |- 0 # |-_______________-| # 1 -| # 2: + // :.........................................: + // + // T = text height + // P = label padding + // K = minor tick length + // W = label width + + ImPlotContext& gp = *GImPlot; + + const float T = ImGui::GetTextLineHeight(); + const float P = gp.Style.LabelPadding.x; + const float K = gp.Style.MinorTickLen.y; + + int count_L = 0; + int count_R = 0; + float last_L = plot.AxesRect.Min.x; + float last_R = plot.AxesRect.Max.x; + + for (int i = IMPLOT_NUM_Y_AXES; i-- > 0;) { // FYI: can iterate forward + ImPlotAxis& axis = plot.YAxis(i); + if (!axis.Enabled) + continue; + const bool label = axis.HasLabel(); + const bool ticks = axis.HasTickLabels(); + const bool opp = axis.IsOpposite(); + if (opp) { + if (count_R++ > 0) + pad_R += K + P; + if (label) + pad_R += T + P; + if (ticks) + pad_R += axis.Ticker.MaxSize.x + P; + axis.Datum1 = plot.CanvasRect.Max.x - pad_R; + axis.Datum2 = last_R; + last_R = axis.Datum1; + } + else { + if (count_L++ > 0) + pad_L += K + P; + if (label) + pad_L += T + P; + if (ticks) + pad_L += axis.Ticker.MaxSize.x + P; + axis.Datum1 = plot.CanvasRect.Min.x + pad_L; + axis.Datum2 = last_L; + last_L = axis.Datum1; + } + } + + plot.PlotRect.Min.x = plot.CanvasRect.Min.x + pad_L; + plot.PlotRect.Max.x = plot.CanvasRect.Max.x - pad_R; + + if (align) { + count_L = count_R = 0; + float delta_L, delta_R; + align->Update(pad_L,pad_R,delta_L,delta_R); + for (int i = IMPLOT_NUM_Y_AXES; i-- > 0;) { + ImPlotAxis& axis = plot.YAxis(i); + if (!axis.Enabled) + continue; + if (axis.IsOpposite()) { + axis.Datum1 -= delta_R; + axis.Datum2 -= count_R++ > 1 ? delta_R : 0; + } + else { + axis.Datum1 += delta_L; + axis.Datum2 += count_L++ > 1 ? delta_L : 0; + } + } + } +} + +//----------------------------------------------------------------------------- +// RENDERING +//----------------------------------------------------------------------------- + +static inline void RenderGridLinesX(ImDrawList& DrawList, const ImPlotTicker& ticker, const ImRect& rect, ImU32 col_maj, ImU32 col_min, float size_maj, float size_min) { + const float density = ticker.TickCount() / rect.GetWidth(); + ImVec4 col_min4 = ImGui::ColorConvertU32ToFloat4(col_min); + col_min4.w *= ImClamp(ImRemap(density, 0.1f, 0.2f, 1.0f, 0.0f), 0.0f, 1.0f); + col_min = ImGui::ColorConvertFloat4ToU32(col_min4); + for (int t = 0; t < ticker.TickCount(); t++) { + const ImPlotTick& xt = ticker.Ticks[t]; + if (xt.PixelPos < rect.Min.x || xt.PixelPos > rect.Max.x) + continue; + if (xt.Level == 0) { + if (xt.Major) + DrawList.AddLine(ImVec2(xt.PixelPos, rect.Min.y), ImVec2(xt.PixelPos, rect.Max.y), col_maj, size_maj); + else if (density < 0.2f) + DrawList.AddLine(ImVec2(xt.PixelPos, rect.Min.y), ImVec2(xt.PixelPos, rect.Max.y), col_min, size_min); + } + } +} + +static inline void RenderGridLinesY(ImDrawList& DrawList, const ImPlotTicker& ticker, const ImRect& rect, ImU32 col_maj, ImU32 col_min, float size_maj, float size_min) { + const float density = ticker.TickCount() / rect.GetHeight(); + ImVec4 col_min4 = ImGui::ColorConvertU32ToFloat4(col_min); + col_min4.w *= ImClamp(ImRemap(density, 0.1f, 0.2f, 1.0f, 0.0f), 0.0f, 1.0f); + col_min = ImGui::ColorConvertFloat4ToU32(col_min4); + for (int t = 0; t < ticker.TickCount(); t++) { + const ImPlotTick& yt = ticker.Ticks[t]; + if (yt.PixelPos < rect.Min.y || yt.PixelPos > rect.Max.y) + continue; + if (yt.Major) + DrawList.AddLine(ImVec2(rect.Min.x, yt.PixelPos), ImVec2(rect.Max.x, yt.PixelPos), col_maj, size_maj); + else if (density < 0.2f) + DrawList.AddLine(ImVec2(rect.Min.x, yt.PixelPos), ImVec2(rect.Max.x, yt.PixelPos), col_min, size_min); + } +} + +static inline void RenderSelectionRect(ImDrawList& DrawList, const ImVec2& p_min, const ImVec2& p_max, const ImVec4& col) { + const ImU32 col_bg = ImGui::GetColorU32(col * ImVec4(1,1,1,0.25f)); + const ImU32 col_bd = ImGui::GetColorU32(col); + DrawList.AddRectFilled(p_min, p_max, col_bg); + DrawList.AddRect(p_min, p_max, col_bd); +} + +//----------------------------------------------------------------------------- +// Input Handling +//----------------------------------------------------------------------------- + +static const float MOUSE_CURSOR_DRAG_THRESHOLD = 5.0f; +static const float BOX_SELECT_DRAG_THRESHOLD = 4.0f; + +bool UpdateInput(ImPlotPlot& plot) { + + bool changed = false; + + ImPlotContext& gp = *GImPlot; + ImGuiIO& IO = ImGui::GetIO(); + + // BUTTON STATE ----------------------------------------------------------- + + const ImGuiButtonFlags plot_button_flags = ImGuiButtonFlags_AllowOverlap + | ImGuiButtonFlags_PressedOnClick + | ImGuiButtonFlags_PressedOnDoubleClick + | ImGuiButtonFlags_MouseButtonLeft + | ImGuiButtonFlags_MouseButtonRight + | ImGuiButtonFlags_MouseButtonMiddle; + const ImGuiButtonFlags axis_button_flags = ImGuiButtonFlags_FlattenChildren + | plot_button_flags; + + const bool plot_clicked = ImGui::ButtonBehavior(plot.PlotRect,plot.ID,&plot.Hovered,&plot.Held,plot_button_flags); +#if (IMGUI_VERSION_NUM < 18966) + ImGui::SetItemAllowOverlap(); // Handled by ButtonBehavior() +#endif + + if (plot_clicked) { + if (!ImHasFlag(plot.Flags, ImPlotFlags_NoBoxSelect) && IO.MouseClicked[gp.InputMap.Select] && ImHasFlag(IO.KeyMods, gp.InputMap.SelectMod)) { + plot.Selecting = true; + plot.SelectStart = IO.MousePos; + plot.SelectRect = ImRect(0,0,0,0); + } + if (IO.MouseDoubleClicked[gp.InputMap.Fit]) { + plot.FitThisFrame = true; + for (int i = 0; i < ImAxis_COUNT; ++i) + plot.Axes[i].FitThisFrame = true; + } + } + + const bool can_pan = IO.MouseDown[gp.InputMap.Pan] && ImHasFlag(IO.KeyMods, gp.InputMap.PanMod); + + plot.Held = plot.Held && can_pan; + + bool x_click[IMPLOT_NUM_X_AXES] = {false}; + bool x_held[IMPLOT_NUM_X_AXES] = {false}; + bool x_hov[IMPLOT_NUM_X_AXES] = {false}; + + bool y_click[IMPLOT_NUM_Y_AXES] = {false}; + bool y_held[IMPLOT_NUM_Y_AXES] = {false}; + bool y_hov[IMPLOT_NUM_Y_AXES] = {false}; + + for (int i = 0; i < IMPLOT_NUM_X_AXES; ++i) { + ImPlotAxis& xax = plot.XAxis(i); + if (xax.Enabled) { + ImGui::KeepAliveID(xax.ID); + x_click[i] = ImGui::ButtonBehavior(xax.HoverRect,xax.ID,&xax.Hovered,&xax.Held,axis_button_flags); + if (x_click[i] && IO.MouseDoubleClicked[gp.InputMap.Fit]) + plot.FitThisFrame = xax.FitThisFrame = true; + xax.Held = xax.Held && can_pan; + x_hov[i] = xax.Hovered || plot.Hovered; + x_held[i] = xax.Held || plot.Held; + } + } + + for (int i = 0; i < IMPLOT_NUM_Y_AXES; ++i) { + ImPlotAxis& yax = plot.YAxis(i); + if (yax.Enabled) { + ImGui::KeepAliveID(yax.ID); + y_click[i] = ImGui::ButtonBehavior(yax.HoverRect,yax.ID,&yax.Hovered,&yax.Held,axis_button_flags); + if (y_click[i] && IO.MouseDoubleClicked[gp.InputMap.Fit]) + plot.FitThisFrame = yax.FitThisFrame = true; + yax.Held = yax.Held && can_pan; + y_hov[i] = yax.Hovered || plot.Hovered; + y_held[i] = yax.Held || plot.Held; + } + } + + // cancel due to DND activity + if (GImGui->DragDropActive || (IO.KeyMods == gp.InputMap.OverrideMod && gp.InputMap.OverrideMod != 0)) + return false; + + // STATE ------------------------------------------------------------------- + + const bool axis_equal = ImHasFlag(plot.Flags, ImPlotFlags_Equal); + + const bool any_x_hov = plot.Hovered || AnyAxesHovered(&plot.Axes[ImAxis_X1], IMPLOT_NUM_X_AXES); + const bool any_x_held = plot.Held || AnyAxesHeld(&plot.Axes[ImAxis_X1], IMPLOT_NUM_X_AXES); + const bool any_y_hov = plot.Hovered || AnyAxesHovered(&plot.Axes[ImAxis_Y1], IMPLOT_NUM_Y_AXES); + const bool any_y_held = plot.Held || AnyAxesHeld(&plot.Axes[ImAxis_Y1], IMPLOT_NUM_Y_AXES); + const bool any_hov = any_x_hov || any_y_hov; + const bool any_held = any_x_held || any_y_held; + + const ImVec2 select_drag = ImGui::GetMouseDragDelta(gp.InputMap.Select); + const ImVec2 pan_drag = ImGui::GetMouseDragDelta(gp.InputMap.Pan); + const float select_drag_sq = ImLengthSqr(select_drag); + const float pan_drag_sq = ImLengthSqr(pan_drag); + const bool selecting = plot.Selecting && select_drag_sq > MOUSE_CURSOR_DRAG_THRESHOLD; + const bool panning = any_held && pan_drag_sq > MOUSE_CURSOR_DRAG_THRESHOLD; + + // CONTEXT MENU ----------------------------------------------------------- + + if (IO.MouseReleased[gp.InputMap.Menu] && !plot.ContextLocked) + gp.OpenContextThisFrame = true; + + if (selecting || panning) + plot.ContextLocked = true; + else if (!(IO.MouseDown[gp.InputMap.Menu] || IO.MouseReleased[gp.InputMap.Menu])) + plot.ContextLocked = false; + + // DRAG INPUT ------------------------------------------------------------- + + if (any_held && !plot.Selecting) { + int drag_direction = 0; + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (x_held[i] && !x_axis.IsInputLocked()) { + drag_direction |= (1 << 1); + bool increasing = x_axis.IsInverted() ? IO.MouseDelta.x > 0 : IO.MouseDelta.x < 0; + if (IO.MouseDelta.x != 0 && !x_axis.IsPanLocked(increasing)) { + const double plot_l = x_axis.PixelsToPlot(plot.PlotRect.Min.x - IO.MouseDelta.x); + const double plot_r = x_axis.PixelsToPlot(plot.PlotRect.Max.x - IO.MouseDelta.x); + x_axis.SetMin(x_axis.IsInverted() ? plot_r : plot_l); + x_axis.SetMax(x_axis.IsInverted() ? plot_l : plot_r); + if (axis_equal && x_axis.OrthoAxis != nullptr) + x_axis.OrthoAxis->SetAspect(x_axis.GetAspect()); + changed = true; + } + } + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (y_held[i] && !y_axis.IsInputLocked()) { + drag_direction |= (1 << 2); + bool increasing = y_axis.IsInverted() ? IO.MouseDelta.y < 0 : IO.MouseDelta.y > 0; + if (IO.MouseDelta.y != 0 && !y_axis.IsPanLocked(increasing)) { + const double plot_t = y_axis.PixelsToPlot(plot.PlotRect.Min.y - IO.MouseDelta.y); + const double plot_b = y_axis.PixelsToPlot(plot.PlotRect.Max.y - IO.MouseDelta.y); + y_axis.SetMin(y_axis.IsInverted() ? plot_t : plot_b); + y_axis.SetMax(y_axis.IsInverted() ? plot_b : plot_t); + if (axis_equal && y_axis.OrthoAxis != nullptr) + y_axis.OrthoAxis->SetAspect(y_axis.GetAspect()); + changed = true; + } + } + } + if (IO.MouseDragMaxDistanceSqr[gp.InputMap.Pan] > MOUSE_CURSOR_DRAG_THRESHOLD) { + switch (drag_direction) { + case 0 : ImGui::SetMouseCursor(ImGuiMouseCursor_NotAllowed); break; + case (1 << 1) : ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeEW); break; + case (1 << 2) : ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeNS); break; + default : ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeAll); break; + } + } + } + + // SCROLL INPUT ----------------------------------------------------------- + + if (any_hov && IO.MouseWheel != 0 && ImHasFlag(IO.KeyMods, gp.InputMap.ZoomMod)) { + + float zoom_rate = gp.InputMap.ZoomRate; + if (IO.MouseWheel > 0) + zoom_rate = (-zoom_rate) / (1.0f + (2.0f * zoom_rate)); + ImVec2 rect_size = plot.PlotRect.GetSize(); + float tx = ImRemap(IO.MousePos.x, plot.PlotRect.Min.x, plot.PlotRect.Max.x, 0.0f, 1.0f); + float ty = ImRemap(IO.MousePos.y, plot.PlotRect.Min.y, plot.PlotRect.Max.y, 0.0f, 1.0f); + + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& x_axis = plot.XAxis(i); + const bool equal_zoom = axis_equal && x_axis.OrthoAxis != nullptr; + const bool equal_locked = (equal_zoom != false) && x_axis.OrthoAxis->IsInputLocked(); + if (x_hov[i] && !x_axis.IsInputLocked() && !equal_locked) { + float correction = (plot.Hovered && equal_zoom) ? 0.5f : 1.0f; + const double plot_l = x_axis.PixelsToPlot(plot.PlotRect.Min.x - rect_size.x * tx * zoom_rate * correction); + const double plot_r = x_axis.PixelsToPlot(plot.PlotRect.Max.x + rect_size.x * (1 - tx) * zoom_rate * correction); + x_axis.SetMin(x_axis.IsInverted() ? plot_r : plot_l); + x_axis.SetMax(x_axis.IsInverted() ? plot_l : plot_r); + if (axis_equal && x_axis.OrthoAxis != nullptr) + x_axis.OrthoAxis->SetAspect(x_axis.GetAspect()); + changed = true; + } + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& y_axis = plot.YAxis(i); + const bool equal_zoom = axis_equal && y_axis.OrthoAxis != nullptr; + const bool equal_locked = equal_zoom && y_axis.OrthoAxis->IsInputLocked(); + if (y_hov[i] && !y_axis.IsInputLocked() && !equal_locked) { + float correction = (plot.Hovered && equal_zoom) ? 0.5f : 1.0f; + const double plot_t = y_axis.PixelsToPlot(plot.PlotRect.Min.y - rect_size.y * ty * zoom_rate * correction); + const double plot_b = y_axis.PixelsToPlot(plot.PlotRect.Max.y + rect_size.y * (1 - ty) * zoom_rate * correction); + y_axis.SetMin(y_axis.IsInverted() ? plot_t : plot_b); + y_axis.SetMax(y_axis.IsInverted() ? plot_b : plot_t); + if (axis_equal && y_axis.OrthoAxis != nullptr) + y_axis.OrthoAxis->SetAspect(y_axis.GetAspect()); + changed = true; + } + } + } + + // BOX-SELECTION ---------------------------------------------------------- + + if (plot.Selecting) { + const ImVec2 d = plot.SelectStart - IO.MousePos; + const bool x_can_change = !ImHasFlag(IO.KeyMods,gp.InputMap.SelectHorzMod) && ImFabs(d.x) > 2; + const bool y_can_change = !ImHasFlag(IO.KeyMods,gp.InputMap.SelectVertMod) && ImFabs(d.y) > 2; + // confirm + if (IO.MouseReleased[gp.InputMap.Select]) { + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (!x_axis.IsInputLocked() && x_can_change) { + const double p1 = x_axis.PixelsToPlot(plot.SelectStart.x); + const double p2 = x_axis.PixelsToPlot(IO.MousePos.x); + x_axis.SetMin(ImMin(p1, p2)); + x_axis.SetMax(ImMax(p1, p2)); + changed = true; + } + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (!y_axis.IsInputLocked() && y_can_change) { + const double p1 = y_axis.PixelsToPlot(plot.SelectStart.y); + const double p2 = y_axis.PixelsToPlot(IO.MousePos.y); + y_axis.SetMin(ImMin(p1, p2)); + y_axis.SetMax(ImMax(p1, p2)); + changed = true; + } + } + if (x_can_change || y_can_change || (ImHasFlag(IO.KeyMods,gp.InputMap.SelectHorzMod) && ImHasFlag(IO.KeyMods,gp.InputMap.SelectVertMod))) + gp.OpenContextThisFrame = false; + plot.Selected = plot.Selecting = false; + } + // cancel + else if (IO.MouseReleased[gp.InputMap.SelectCancel]) { + plot.Selected = plot.Selecting = false; + gp.OpenContextThisFrame = false; + } + else if (ImLengthSqr(d) > BOX_SELECT_DRAG_THRESHOLD) { + // bad selection + if (plot.IsInputLocked()) { + ImGui::SetMouseCursor(ImGuiMouseCursor_NotAllowed); + gp.OpenContextThisFrame = false; + plot.Selected = false; + } + else { + // TODO: Handle only min or max locked cases + const bool full_width = ImHasFlag(IO.KeyMods, gp.InputMap.SelectHorzMod) || AllAxesInputLocked(&plot.Axes[ImAxis_X1], IMPLOT_NUM_X_AXES); + const bool full_height = ImHasFlag(IO.KeyMods, gp.InputMap.SelectVertMod) || AllAxesInputLocked(&plot.Axes[ImAxis_Y1], IMPLOT_NUM_Y_AXES); + plot.SelectRect.Min.x = full_width ? plot.PlotRect.Min.x : ImMin(plot.SelectStart.x, IO.MousePos.x); + plot.SelectRect.Max.x = full_width ? plot.PlotRect.Max.x : ImMax(plot.SelectStart.x, IO.MousePos.x); + plot.SelectRect.Min.y = full_height ? plot.PlotRect.Min.y : ImMin(plot.SelectStart.y, IO.MousePos.y); + plot.SelectRect.Max.y = full_height ? plot.PlotRect.Max.y : ImMax(plot.SelectStart.y, IO.MousePos.y); + plot.SelectRect.Min -= plot.PlotRect.Min; + plot.SelectRect.Max -= plot.PlotRect.Min; + plot.Selected = true; + } + } + else { + plot.Selected = false; + } + } + return changed; +} + +//----------------------------------------------------------------------------- +// Next Plot Data (Legacy) +//----------------------------------------------------------------------------- + +void ApplyNextPlotData(ImAxis idx) { + ImPlotContext& gp = *GImPlot; + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + if (!axis.Enabled) + return; + double* npd_lmin = gp.NextPlotData.LinkedMin[idx]; + double* npd_lmax = gp.NextPlotData.LinkedMax[idx]; + bool npd_rngh = gp.NextPlotData.HasRange[idx]; + ImPlotCond npd_rngc = gp.NextPlotData.RangeCond[idx]; + ImPlotRange npd_rngv = gp.NextPlotData.Range[idx]; + axis.LinkedMin = npd_lmin; + axis.LinkedMax = npd_lmax; + axis.PullLinks(); + if (npd_rngh) { + if (!plot.Initialized || npd_rngc == ImPlotCond_Always) + axis.SetRange(npd_rngv); + } + axis.HasRange = npd_rngh; + axis.RangeCond = npd_rngc; +} + +//----------------------------------------------------------------------------- +// Setup +//----------------------------------------------------------------------------- + +void SetupAxis(ImAxis idx, const char* label, ImPlotAxisFlags flags) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + // get plot and axis + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + // set ID + axis.ID = plot.ID + idx + 1; + // check and set flags + if (plot.JustCreated || flags != axis.PreviousFlags) + axis.Flags = flags; + axis.PreviousFlags = flags; + // enable axis + axis.Enabled = true; + // set label + plot.SetAxisLabel(axis,label); + // cache colors + UpdateAxisColors(axis); +} + +void SetupAxisLimits(ImAxis idx, double min_lim, double max_lim, ImPlotCond cond) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); // get plot and axis + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + if (!plot.Initialized || cond == ImPlotCond_Always) + axis.SetRange(min_lim, max_lim); + axis.HasRange = true; + axis.RangeCond = cond; +} + +void SetupAxisFormat(ImAxis idx, const char* fmt) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.HasFormatSpec = fmt != nullptr; + if (fmt != nullptr) + ImStrncpy(axis.FormatSpec,fmt,sizeof(axis.FormatSpec)); +} + +void SetupAxisLinks(ImAxis idx, double* min_lnk, double* max_lnk) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.LinkedMin = min_lnk; + axis.LinkedMax = max_lnk; + axis.PullLinks(); +} + +void SetupAxisFormat(ImAxis idx, ImPlotFormatter formatter, void* data) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.Formatter = formatter; + axis.FormatterData = data; +} + +void SetupAxisTicks(ImAxis idx, const double* values, int n_ticks, const char* const labels[], bool show_default) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.ShowDefaultTicks = show_default; + AddTicksCustom(values, + labels, + n_ticks, + axis.Ticker, + axis.Formatter ? axis.Formatter : Formatter_Default, + (axis.Formatter && axis.FormatterData) ? axis.FormatterData : axis.HasFormatSpec ? axis.FormatSpec : (void*)IMPLOT_LABEL_FORMAT); +} + +void SetupAxisTicks(ImAxis idx, double v_min, double v_max, int n_ticks, const char* const labels[], bool show_default) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + n_ticks = n_ticks < 2 ? 2 : n_ticks; + FillRange(gp.TempDouble1, n_ticks, v_min, v_max); + SetupAxisTicks(idx, gp.TempDouble1.Data, n_ticks, labels, show_default); +} + +void SetupAxisScale(ImAxis idx, ImPlotScale scale) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.Scale = scale; + switch (scale) + { + case ImPlotScale_Time: + axis.TransformForward = nullptr; + axis.TransformInverse = nullptr; + axis.TransformData = nullptr; + axis.Locator = Locator_Time; + axis.ConstraintRange = ImPlotRange(IMPLOT_MIN_TIME, IMPLOT_MAX_TIME); + axis.Ticker.Levels = 2; + break; + case ImPlotScale_Log10: + axis.TransformForward = TransformForward_Log10; + axis.TransformInverse = TransformInverse_Log10; + axis.TransformData = nullptr; + axis.Locator = Locator_Log10; + axis.ConstraintRange = ImPlotRange(DBL_MIN, INFINITY); + break; + case ImPlotScale_SymLog: + axis.TransformForward = TransformForward_SymLog; + axis.TransformInverse = TransformInverse_SymLog; + axis.TransformData = nullptr; + axis.Locator = Locator_SymLog; + axis.ConstraintRange = ImPlotRange(-INFINITY, INFINITY); + break; + default: + axis.TransformForward = nullptr; + axis.TransformInverse = nullptr; + axis.TransformData = nullptr; + axis.Locator = nullptr; + axis.ConstraintRange = ImPlotRange(-INFINITY, INFINITY); + break; + } +} + +void SetupAxisScale(ImAxis idx, ImPlotTransform fwd, ImPlotTransform inv, void* data) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.Scale = IMPLOT_AUTO; + axis.TransformForward = fwd; + axis.TransformInverse = inv; + axis.TransformData = data; +} + +void SetupAxisLimitsConstraints(ImAxis idx, double v_min, double v_max) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.ConstraintRange.Min = v_min; + axis.ConstraintRange.Max = v_max; +} + +void SetupAxisZoomConstraints(ImAxis idx, double z_min, double z_max) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& axis = plot.Axes[idx]; + IM_ASSERT_USER_ERROR(axis.Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + axis.ConstraintZoom.Min = z_min; + axis.ConstraintZoom.Max = z_max; +} + +void SetupAxes(const char* x_label, const char* y_label, ImPlotAxisFlags x_flags, ImPlotAxisFlags y_flags) { + SetupAxis(ImAxis_X1, x_label, x_flags); + SetupAxis(ImAxis_Y1, y_label, y_flags); +} + +void SetupAxesLimits(double x_min, double x_max, double y_min, double y_max, ImPlotCond cond) { + SetupAxisLimits(ImAxis_X1, x_min, x_max, cond); + SetupAxisLimits(ImAxis_Y1, y_min, y_max, cond); +} + +void SetupLegend(ImPlotLocation location, ImPlotLegendFlags flags) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + IM_ASSERT_USER_ERROR(gp.CurrentItems != nullptr, + "SetupLegend() needs to be called within an itemized context!"); + ImPlotLegend& legend = gp.CurrentItems->Legend; + // check and set location + if (location != legend.PreviousLocation) + legend.Location = location; + legend.PreviousLocation = location; + // check and set flags + if (flags != legend.PreviousFlags) + legend.Flags = flags; + legend.PreviousFlags = flags; +} + +void SetupMouseText(ImPlotLocation location, ImPlotMouseTextFlags flags) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr && !gp.CurrentPlot->SetupLocked, + "Setup needs to be called after BeginPlot and before any setup locking functions (e.g. PlotX)!"); + gp.CurrentPlot->MouseTextLocation = location; + gp.CurrentPlot->MouseTextFlags = flags; +} + +//----------------------------------------------------------------------------- +// SetNext +//----------------------------------------------------------------------------- + +void SetNextAxisLimits(ImAxis axis, double v_min, double v_max, ImPlotCond cond) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot == nullptr, "SetNextAxisLimits() needs to be called before BeginPlot()!"); + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + gp.NextPlotData.HasRange[axis] = true; + gp.NextPlotData.RangeCond[axis] = cond; + gp.NextPlotData.Range[axis].Min = v_min; + gp.NextPlotData.Range[axis].Max = v_max; +} + +void SetNextAxisLinks(ImAxis axis, double* link_min, double* link_max) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot == nullptr, "SetNextAxisLinks() needs to be called before BeginPlot()!"); + gp.NextPlotData.LinkedMin[axis] = link_min; + gp.NextPlotData.LinkedMax[axis] = link_max; +} + +void SetNextAxisToFit(ImAxis axis) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot == nullptr, "SetNextAxisToFit() needs to be called before BeginPlot()!"); + gp.NextPlotData.Fit[axis] = true; +} + +void SetNextAxesLimits(double x_min, double x_max, double y_min, double y_max, ImPlotCond cond) { + SetNextAxisLimits(ImAxis_X1, x_min, x_max, cond); + SetNextAxisLimits(ImAxis_Y1, y_min, y_max, cond); +} + +void SetNextAxesToFit() { + for (int i = 0; i < ImAxis_COUNT; ++i) + SetNextAxisToFit(i); +} + +//----------------------------------------------------------------------------- +// BeginPlot +//----------------------------------------------------------------------------- + +bool BeginPlot(const char* title_id, const ImVec2& size, ImPlotFlags flags) { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot == nullptr, "Mismatched BeginPlot()/EndPlot()!"); + + // FRONT MATTER ----------------------------------------------------------- + + if (gp.CurrentSubplot != nullptr) + ImGui::PushID(gp.CurrentSubplot->CurrentIdx); + + // get globals + ImGuiContext &G = *GImGui; + ImGuiWindow* Window = G.CurrentWindow; + + // skip if needed + if (Window->SkipItems && !gp.CurrentSubplot) { + ResetCtxForNextPlot(GImPlot); + return false; + } + + // ID and age (TODO: keep track of plot age in frames) + const ImGuiID ID = Window->GetID(title_id); + const bool just_created = gp.Plots.GetByKey(ID) == nullptr; + gp.CurrentPlot = gp.Plots.GetOrAddByKey(ID); + + ImPlotPlot &plot = *gp.CurrentPlot; + plot.ID = ID; + plot.Items.ID = ID - 1; + plot.JustCreated = just_created; + plot.SetupLocked = false; + + // check flags + if (plot.JustCreated) + plot.Flags = flags; + else if (flags != plot.PreviousFlags) + plot.Flags = flags; + plot.PreviousFlags = flags; + + // setup default axes + if (plot.JustCreated) { + SetupAxis(ImAxis_X1); + SetupAxis(ImAxis_Y1); + } + + // reset axes + for (int i = 0; i < ImAxis_COUNT; ++i) { + plot.Axes[i].Reset(); + UpdateAxisColors(plot.Axes[i]); + } + // ensure first axes enabled + plot.Axes[ImAxis_X1].Enabled = true; + plot.Axes[ImAxis_Y1].Enabled = true; + // set initial axes + plot.CurrentX = ImAxis_X1; + plot.CurrentY = ImAxis_Y1; + + // process next plot data (legacy) + for (int i = 0; i < ImAxis_COUNT; ++i) + ApplyNextPlotData(i); + + // capture scroll with a child region + if (!ImHasFlag(plot.Flags, ImPlotFlags_NoChild)) { + ImVec2 child_size; + if (gp.CurrentSubplot != nullptr) + child_size = gp.CurrentSubplot->CellSize; + else + child_size = ImVec2(size.x == 0 ? gp.Style.PlotDefaultSize.x : size.x, size.y == 0 ? gp.Style.PlotDefaultSize.y : size.y); + ImGui::BeginChild(title_id, child_size, false, ImGuiWindowFlags_NoScrollbar); + Window = ImGui::GetCurrentWindow(); + Window->ScrollMax.y = 1.0f; + gp.ChildWindowMade = true; + } + else { + gp.ChildWindowMade = false; + } + + // clear text buffers + plot.ClearTextBuffer(); + plot.SetTitle(title_id); + + // set frame size + ImVec2 frame_size; + if (gp.CurrentSubplot != nullptr) + frame_size = gp.CurrentSubplot->CellSize; + else + frame_size = ImGui::CalcItemSize(size, gp.Style.PlotDefaultSize.x, gp.Style.PlotDefaultSize.y); + + if (frame_size.x < gp.Style.PlotMinSize.x && (size.x < 0.0f || gp.CurrentSubplot != nullptr)) + frame_size.x = gp.Style.PlotMinSize.x; + if (frame_size.y < gp.Style.PlotMinSize.y && (size.y < 0.0f || gp.CurrentSubplot != nullptr)) + frame_size.y = gp.Style.PlotMinSize.y; + + plot.FrameRect = ImRect(Window->DC.CursorPos, Window->DC.CursorPos + frame_size); + ImGui::ItemSize(plot.FrameRect); + if (!ImGui::ItemAdd(plot.FrameRect, plot.ID, &plot.FrameRect) && !gp.CurrentSubplot) { + ResetCtxForNextPlot(GImPlot); + return false; + } + + // setup items (or dont) + if (gp.CurrentItems == nullptr) + gp.CurrentItems = &plot.Items; + + return true; +} + +//----------------------------------------------------------------------------- +// SetupFinish +//----------------------------------------------------------------------------- + +void SetupFinish() { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "SetupFinish needs to be called after BeginPlot!"); + + ImGuiContext& G = *GImGui; + ImDrawList& DrawList = *G.CurrentWindow->DrawList; + const ImGuiStyle& Style = G.Style; + + ImPlotPlot &plot = *gp.CurrentPlot; + + // lock setup + plot.SetupLocked = true; + + // finalize axes and set default formatter/locator + for (int i = 0; i < ImAxis_COUNT; ++i) { + ImPlotAxis& axis = plot.Axes[i]; + if (axis.Enabled) { + axis.Constrain(); + if (!plot.Initialized && axis.CanInitFit()) + plot.FitThisFrame = axis.FitThisFrame = true; + } + if (axis.Formatter == nullptr) { + axis.Formatter = Formatter_Default; + if (axis.HasFormatSpec) + axis.FormatterData = axis.FormatSpec; + else + axis.FormatterData = (void*)IMPLOT_LABEL_FORMAT; + } + if (axis.Locator == nullptr) { + axis.Locator = Locator_Default; + } + } + + // setup nullptr orthogonal axes + const bool axis_equal = ImHasFlag(plot.Flags, ImPlotFlags_Equal); + for (int ix = ImAxis_X1, iy = ImAxis_Y1; ix < ImAxis_Y1 || iy < ImAxis_COUNT; ++ix, ++iy) { + ImPlotAxis& x_axis = plot.Axes[ix]; + ImPlotAxis& y_axis = plot.Axes[iy]; + if (x_axis.Enabled && y_axis.Enabled) { + if (x_axis.OrthoAxis == nullptr) + x_axis.OrthoAxis = &y_axis; + if (y_axis.OrthoAxis == nullptr) + y_axis.OrthoAxis = &x_axis; + } + else if (x_axis.Enabled) + { + if (x_axis.OrthoAxis == nullptr && !axis_equal) + x_axis.OrthoAxis = &plot.Axes[ImAxis_Y1]; + } + else if (y_axis.Enabled) { + if (y_axis.OrthoAxis == nullptr && !axis_equal) + y_axis.OrthoAxis = &plot.Axes[ImAxis_X1]; + } + } + + // canvas/axes bb + plot.CanvasRect = ImRect(plot.FrameRect.Min + gp.Style.PlotPadding, plot.FrameRect.Max - gp.Style.PlotPadding); + plot.AxesRect = plot.FrameRect; + + // outside legend adjustments + if (!ImHasFlag(plot.Flags, ImPlotFlags_NoLegend) && plot.Items.GetLegendCount() > 0 && ImHasFlag(plot.Items.Legend.Flags, ImPlotLegendFlags_Outside)) { + ImPlotLegend& legend = plot.Items.Legend; + const bool horz = ImHasFlag(legend.Flags, ImPlotLegendFlags_Horizontal); + const ImVec2 legend_size = CalcLegendSize(plot.Items, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !horz); + const bool west = ImHasFlag(legend.Location, ImPlotLocation_West) && !ImHasFlag(legend.Location, ImPlotLocation_East); + const bool east = ImHasFlag(legend.Location, ImPlotLocation_East) && !ImHasFlag(legend.Location, ImPlotLocation_West); + const bool north = ImHasFlag(legend.Location, ImPlotLocation_North) && !ImHasFlag(legend.Location, ImPlotLocation_South); + const bool south = ImHasFlag(legend.Location, ImPlotLocation_South) && !ImHasFlag(legend.Location, ImPlotLocation_North); + if ((west && !horz) || (west && horz && !north && !south)) { + plot.CanvasRect.Min.x += (legend_size.x + gp.Style.LegendPadding.x); + plot.AxesRect.Min.x += (legend_size.x + gp.Style.PlotPadding.x); + } + if ((east && !horz) || (east && horz && !north && !south)) { + plot.CanvasRect.Max.x -= (legend_size.x + gp.Style.LegendPadding.x); + plot.AxesRect.Max.x -= (legend_size.x + gp.Style.PlotPadding.x); + } + if ((north && horz) || (north && !horz && !west && !east)) { + plot.CanvasRect.Min.y += (legend_size.y + gp.Style.LegendPadding.y); + plot.AxesRect.Min.y += (legend_size.y + gp.Style.PlotPadding.y); + } + if ((south && horz) || (south && !horz && !west && !east)) { + plot.CanvasRect.Max.y -= (legend_size.y + gp.Style.LegendPadding.y); + plot.AxesRect.Max.y -= (legend_size.y + gp.Style.PlotPadding.y); + } + } + + // plot bb + float pad_top = 0, pad_bot = 0, pad_left = 0, pad_right = 0; + + // (0) calc top padding form title + ImVec2 title_size(0.0f, 0.0f); + if (plot.HasTitle()) + title_size = ImGui::CalcTextSize(plot.GetTitle(), nullptr, true); + if (title_size.x > 0) { + pad_top += title_size.y + gp.Style.LabelPadding.y; + plot.AxesRect.Min.y += gp.Style.PlotPadding.y + pad_top; + } + + // (1) calc addition top padding and bot padding + PadAndDatumAxesX(plot,pad_top,pad_bot,gp.CurrentAlignmentH); + + const float plot_height = plot.CanvasRect.GetHeight() - pad_top - pad_bot; + + // (2) get y tick labels (needed for left/right pad) + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& axis = plot.YAxis(i); + if (axis.WillRender() && axis.ShowDefaultTicks && plot_height > 0) { + axis.Locator(axis.Ticker, axis.Range, plot_height, true, axis.Formatter, axis.FormatterData); + } + } + + // (3) calc left/right pad + PadAndDatumAxesY(plot,pad_left,pad_right,gp.CurrentAlignmentV); + + const float plot_width = plot.CanvasRect.GetWidth() - pad_left - pad_right; + + // (4) get x ticks + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& axis = plot.XAxis(i); + if (axis.WillRender() && axis.ShowDefaultTicks && plot_width > 0) { + axis.Locator(axis.Ticker, axis.Range, plot_width, false, axis.Formatter, axis.FormatterData); + } + } + + // (5) calc plot bb + plot.PlotRect = ImRect(plot.CanvasRect.Min + ImVec2(pad_left, pad_top), plot.CanvasRect.Max - ImVec2(pad_right, pad_bot)); + + // HOVER------------------------------------------------------------ + + // axes hover rect, pixel ranges + for (int i = 0; i < IMPLOT_NUM_X_AXES; ++i) { + ImPlotAxis& xax = plot.XAxis(i); + xax.HoverRect = ImRect(ImVec2(plot.PlotRect.Min.x, ImMin(xax.Datum1,xax.Datum2)), + ImVec2(plot.PlotRect.Max.x, ImMax(xax.Datum1,xax.Datum2))); + xax.PixelMin = xax.IsInverted() ? plot.PlotRect.Max.x : plot.PlotRect.Min.x; + xax.PixelMax = xax.IsInverted() ? plot.PlotRect.Min.x : plot.PlotRect.Max.x; + xax.UpdateTransformCache(); + } + + for (int i = 0; i < IMPLOT_NUM_Y_AXES; ++i) { + ImPlotAxis& yax = plot.YAxis(i); + yax.HoverRect = ImRect(ImVec2(ImMin(yax.Datum1,yax.Datum2),plot.PlotRect.Min.y), + ImVec2(ImMax(yax.Datum1,yax.Datum2),plot.PlotRect.Max.y)); + yax.PixelMin = yax.IsInverted() ? plot.PlotRect.Min.y : plot.PlotRect.Max.y; + yax.PixelMax = yax.IsInverted() ? plot.PlotRect.Max.y : plot.PlotRect.Min.y; + yax.UpdateTransformCache(); + } + // Equal axis constraint. Must happen after we set Pixels + // constrain equal axes for primary x and y if not approximately equal + // constrains x to y since x pixel size depends on y labels width, and causes feedback loops in opposite case + if (axis_equal) { + for (int i = 0; i < IMPLOT_NUM_X_AXES; ++i) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (x_axis.OrthoAxis == nullptr) + continue; + double xar = x_axis.GetAspect(); + double yar = x_axis.OrthoAxis->GetAspect(); + // edge case: user has set x range this frame, so fit y to x so that we honor their request for x range + // NB: because of feedback across several frames, the user's x request may not be perfectly honored + if (x_axis.HasRange) + x_axis.OrthoAxis->SetAspect(xar); + else if (!ImAlmostEqual(xar,yar) && !x_axis.OrthoAxis->IsInputLocked()) + x_axis.SetAspect(yar); + } + } + + // INPUT ------------------------------------------------------------------ + if (!ImHasFlag(plot.Flags, ImPlotFlags_NoInputs)) + UpdateInput(plot); + + // fit from FitNextPlotAxes or auto fit + for (int i = 0; i < ImAxis_COUNT; ++i) { + if (gp.NextPlotData.Fit[i] || plot.Axes[i].IsAutoFitting()) { + plot.FitThisFrame = true; + plot.Axes[i].FitThisFrame = true; + } + } + + // RENDER ----------------------------------------------------------------- + + const float txt_height = ImGui::GetTextLineHeight(); + + // render frame + if (!ImHasFlag(plot.Flags, ImPlotFlags_NoFrame)) + ImGui::RenderFrame(plot.FrameRect.Min, plot.FrameRect.Max, GetStyleColorU32(ImPlotCol_FrameBg), true, Style.FrameRounding); + + // grid bg + DrawList.AddRectFilled(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBg)); + + // transform ticks + for (int i = 0; i < ImAxis_COUNT; i++) { + ImPlotAxis& axis = plot.Axes[i]; + if (axis.WillRender()) { + for (int t = 0; t < axis.Ticker.TickCount(); t++) { + ImPlotTick& tk = axis.Ticker.Ticks[t]; + tk.PixelPos = IM_ROUND(axis.PlotToPixels(tk.PlotPos)); + } + } + } + + // render grid (background) + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (x_axis.Enabled && x_axis.HasGridLines() && !x_axis.IsForeground()) + RenderGridLinesX(DrawList, x_axis.Ticker, plot.PlotRect, x_axis.ColorMaj, x_axis.ColorMin, gp.Style.MajorGridSize.x, gp.Style.MinorGridSize.x); + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (y_axis.Enabled && y_axis.HasGridLines() && !y_axis.IsForeground()) + RenderGridLinesY(DrawList, y_axis.Ticker, plot.PlotRect, y_axis.ColorMaj, y_axis.ColorMin, gp.Style.MajorGridSize.y, gp.Style.MinorGridSize.y); + } + + // render x axis button, label, tick labels + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& ax = plot.XAxis(i); + if (!ax.Enabled) + continue; + if ((ax.Hovered || ax.Held) && !plot.Held && !ImHasFlag(ax.Flags, ImPlotAxisFlags_NoHighlight)) + DrawList.AddRectFilled(ax.HoverRect.Min, ax.HoverRect.Max, ax.Held ? ax.ColorAct : ax.ColorHov); + else if (ax.ColorHiLi != IM_COL32_BLACK_TRANS) { + DrawList.AddRectFilled(ax.HoverRect.Min, ax.HoverRect.Max, ax.ColorHiLi); + ax.ColorHiLi = IM_COL32_BLACK_TRANS; + } + else if (ax.ColorBg != IM_COL32_BLACK_TRANS) { + DrawList.AddRectFilled(ax.HoverRect.Min, ax.HoverRect.Max, ax.ColorBg); + } + const ImPlotTicker& tkr = ax.Ticker; + const bool opp = ax.IsOpposite(); + if (ax.HasLabel()) { + const char* label = plot.GetAxisLabel(ax); + const ImVec2 label_size = ImGui::CalcTextSize(label); + const float label_offset = (ax.HasTickLabels() ? tkr.MaxSize.y + gp.Style.LabelPadding.y : 0.0f) + + (tkr.Levels - 1) * (txt_height + gp.Style.LabelPadding.y) + + gp.Style.LabelPadding.y; + const ImVec2 label_pos(plot.PlotRect.GetCenter().x - label_size.x * 0.5f, + opp ? ax.Datum1 - label_offset - label_size.y : ax.Datum1 + label_offset); + DrawList.AddText(label_pos, ax.ColorTxt, label); + } + if (ax.HasTickLabels()) { + for (int j = 0; j < tkr.TickCount(); ++j) { + const ImPlotTick& tk = tkr.Ticks[j]; + const float datum = ax.Datum1 + (opp ? (-gp.Style.LabelPadding.y -txt_height -tk.Level * (txt_height + gp.Style.LabelPadding.y)) + : gp.Style.LabelPadding.y + tk.Level * (txt_height + gp.Style.LabelPadding.y)); + if (tk.ShowLabel && tk.PixelPos >= plot.PlotRect.Min.x - 1 && tk.PixelPos <= plot.PlotRect.Max.x + 1) { + ImVec2 start(tk.PixelPos - 0.5f * tk.LabelSize.x, datum); + DrawList.AddText(start, ax.ColorTxt, tkr.GetText(j)); + } + } + } + } + + // render y axis button, label, tick labels + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& ax = plot.YAxis(i); + if (!ax.Enabled) + continue; + if ((ax.Hovered || ax.Held) && !plot.Held && !ImHasFlag(ax.Flags, ImPlotAxisFlags_NoHighlight)) + DrawList.AddRectFilled(ax.HoverRect.Min, ax.HoverRect.Max, ax.Held ? ax.ColorAct : ax.ColorHov); + else if (ax.ColorHiLi != IM_COL32_BLACK_TRANS) { + DrawList.AddRectFilled(ax.HoverRect.Min, ax.HoverRect.Max, ax.ColorHiLi); + ax.ColorHiLi = IM_COL32_BLACK_TRANS; + } + else if (ax.ColorBg != IM_COL32_BLACK_TRANS) { + DrawList.AddRectFilled(ax.HoverRect.Min, ax.HoverRect.Max, ax.ColorBg); + } + const ImPlotTicker& tkr = ax.Ticker; + const bool opp = ax.IsOpposite(); + if (ax.HasLabel()) { + const char* label = plot.GetAxisLabel(ax); + const ImVec2 label_size = CalcTextSizeVertical(label); + const float label_offset = (ax.HasTickLabels() ? tkr.MaxSize.x + gp.Style.LabelPadding.x : 0.0f) + + gp.Style.LabelPadding.x; + const ImVec2 label_pos(opp ? ax.Datum1 + label_offset : ax.Datum1 - label_offset - label_size.x, + plot.PlotRect.GetCenter().y + label_size.y * 0.5f); + AddTextVertical(&DrawList, label_pos, ax.ColorTxt, label); + } + if (ax.HasTickLabels()) { + for (int j = 0; j < tkr.TickCount(); ++j) { + const ImPlotTick& tk = tkr.Ticks[j]; + const float datum = ax.Datum1 + (opp ? gp.Style.LabelPadding.x : (-gp.Style.LabelPadding.x - tk.LabelSize.x)); + if (tk.ShowLabel && tk.PixelPos >= plot.PlotRect.Min.y - 1 && tk.PixelPos <= plot.PlotRect.Max.y + 1) { + ImVec2 start(datum, tk.PixelPos - 0.5f * tk.LabelSize.y); + DrawList.AddText(start, ax.ColorTxt, tkr.GetText(j)); + } + } + } + } + + + // clear legend (TODO: put elsewhere) + plot.Items.Legend.Reset(); + // push ID to set item hashes (NB: !!!THIS PROBABLY NEEDS TO BE IN BEGIN PLOT!!!!) + ImGui::PushOverrideID(gp.CurrentItems->ID); +} + +//----------------------------------------------------------------------------- +// EndPlot() +//----------------------------------------------------------------------------- + +void EndPlot() { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "Mismatched BeginPlot()/EndPlot()!"); + + SetupLock(); + + ImGuiContext &G = *GImGui; + ImPlotPlot &plot = *gp.CurrentPlot; + ImGuiWindow * Window = G.CurrentWindow; + ImDrawList & DrawList = *Window->DrawList; + const ImGuiIO & IO = ImGui::GetIO(); + + // FINAL RENDER ----------------------------------------------------------- + + const bool render_border = gp.Style.PlotBorderSize > 0 && gp.Style.Colors[ImPlotCol_PlotBorder].w > 0; + const bool any_x_held = plot.Held || AnyAxesHeld(&plot.Axes[ImAxis_X1], IMPLOT_NUM_X_AXES); + const bool any_y_held = plot.Held || AnyAxesHeld(&plot.Axes[ImAxis_Y1], IMPLOT_NUM_Y_AXES); + + ImGui::PushClipRect(plot.FrameRect.Min, plot.FrameRect.Max, true); + + // render grid (foreground) + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (x_axis.Enabled && x_axis.HasGridLines() && x_axis.IsForeground()) + RenderGridLinesX(DrawList, x_axis.Ticker, plot.PlotRect, x_axis.ColorMaj, x_axis.ColorMin, gp.Style.MajorGridSize.x, gp.Style.MinorGridSize.x); + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (y_axis.Enabled && y_axis.HasGridLines() && y_axis.IsForeground()) + RenderGridLinesY(DrawList, y_axis.Ticker, plot.PlotRect, y_axis.ColorMaj, y_axis.ColorMin, gp.Style.MajorGridSize.y, gp.Style.MinorGridSize.y); + } + + + // render title + if (plot.HasTitle()) { + ImU32 col = GetStyleColorU32(ImPlotCol_TitleText); + AddTextCentered(&DrawList,ImVec2(plot.PlotRect.GetCenter().x, plot.CanvasRect.Min.y),col,plot.GetTitle()); + } + + // render x ticks + int count_B = 0, count_T = 0; + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + const ImPlotAxis& ax = plot.XAxis(i); + if (!ax.Enabled) + continue; + const ImPlotTicker& tkr = ax.Ticker; + const bool opp = ax.IsOpposite(); + const bool aux = ((opp && count_T > 0)||(!opp && count_B > 0)); + if (ax.HasTickMarks()) { + const float direction = opp ? 1.0f : -1.0f; + for (int j = 0; j < tkr.TickCount(); ++j) { + const ImPlotTick& tk = tkr.Ticks[j]; + if (tk.Level != 0 || tk.PixelPos < plot.PlotRect.Min.x || tk.PixelPos > plot.PlotRect.Max.x) + continue; + const ImVec2 start(tk.PixelPos, ax.Datum1); + const float len = (!aux && tk.Major) ? gp.Style.MajorTickLen.x : gp.Style.MinorTickLen.x; + const float thk = (!aux && tk.Major) ? gp.Style.MajorTickSize.x : gp.Style.MinorTickSize.x; + DrawList.AddLine(start, start + ImVec2(0,direction*len), ax.ColorTick, thk); + } + if (aux || !render_border) + DrawList.AddLine(ImVec2(plot.PlotRect.Min.x,ax.Datum1), ImVec2(plot.PlotRect.Max.x,ax.Datum1), ax.ColorTick, gp.Style.MinorTickSize.x); + } + count_B += !opp; + count_T += opp; + } + + // render y ticks + int count_L = 0, count_R = 0; + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + const ImPlotAxis& ax = plot.YAxis(i); + if (!ax.Enabled) + continue; + const ImPlotTicker& tkr = ax.Ticker; + const bool opp = ax.IsOpposite(); + const bool aux = ((opp && count_R > 0)||(!opp && count_L > 0)); + if (ax.HasTickMarks()) { + const float direction = opp ? -1.0f : 1.0f; + for (int j = 0; j < tkr.TickCount(); ++j) { + const ImPlotTick& tk = tkr.Ticks[j]; + if (tk.Level != 0 || tk.PixelPos < plot.PlotRect.Min.y || tk.PixelPos > plot.PlotRect.Max.y) + continue; + const ImVec2 start(ax.Datum1, tk.PixelPos); + const float len = (!aux && tk.Major) ? gp.Style.MajorTickLen.y : gp.Style.MinorTickLen.y; + const float thk = (!aux && tk.Major) ? gp.Style.MajorTickSize.y : gp.Style.MinorTickSize.y; + DrawList.AddLine(start, start + ImVec2(direction*len,0), ax.ColorTick, thk); + } + if (aux || !render_border) + DrawList.AddLine(ImVec2(ax.Datum1, plot.PlotRect.Min.y), ImVec2(ax.Datum1, plot.PlotRect.Max.y), ax.ColorTick, gp.Style.MinorTickSize.y); + } + count_L += !opp; + count_R += opp; + } + ImGui::PopClipRect(); + + // render annotations + PushPlotClipRect(); + for (int i = 0; i < gp.Annotations.Size; ++i) { + const char* txt = gp.Annotations.GetText(i); + ImPlotAnnotation& an = gp.Annotations.Annotations[i]; + const ImVec2 txt_size = ImGui::CalcTextSize(txt); + const ImVec2 size = txt_size + gp.Style.AnnotationPadding * 2; + ImVec2 pos = an.Pos; + if (an.Offset.x == 0) + pos.x -= size.x / 2; + else if (an.Offset.x > 0) + pos.x += an.Offset.x; + else + pos.x -= size.x - an.Offset.x; + if (an.Offset.y == 0) + pos.y -= size.y / 2; + else if (an.Offset.y > 0) + pos.y += an.Offset.y; + else + pos.y -= size.y - an.Offset.y; + if (an.Clamp) + pos = ClampLabelPos(pos, size, plot.PlotRect.Min, plot.PlotRect.Max); + ImRect rect(pos,pos+size); + if (an.Offset.x != 0 || an.Offset.y != 0) { + ImVec2 corners[4] = {rect.GetTL(), rect.GetTR(), rect.GetBR(), rect.GetBL()}; + int min_corner = 0; + float min_len = FLT_MAX; + for (int c = 0; c < 4; ++c) { + float len = ImLengthSqr(an.Pos - corners[c]); + if (len < min_len) { + min_corner = c; + min_len = len; + } + } + DrawList.AddLine(an.Pos, corners[min_corner], an.ColorBg); + } + DrawList.AddRectFilled(rect.Min, rect.Max, an.ColorBg); + DrawList.AddText(pos + gp.Style.AnnotationPadding, an.ColorFg, txt); + } + + // render selection + if (plot.Selected) + RenderSelectionRect(DrawList, plot.SelectRect.Min + plot.PlotRect.Min, plot.SelectRect.Max + plot.PlotRect.Min, GetStyleColorVec4(ImPlotCol_Selection)); + + // render crosshairs + if (ImHasFlag(plot.Flags, ImPlotFlags_Crosshairs) && plot.Hovered && !(any_x_held || any_y_held) && !plot.Selecting && !plot.Items.Legend.Hovered) { + ImGui::SetMouseCursor(ImGuiMouseCursor_None); + ImVec2 xy = IO.MousePos; + ImVec2 h1(plot.PlotRect.Min.x, xy.y); + ImVec2 h2(xy.x - 5, xy.y); + ImVec2 h3(xy.x + 5, xy.y); + ImVec2 h4(plot.PlotRect.Max.x, xy.y); + ImVec2 v1(xy.x, plot.PlotRect.Min.y); + ImVec2 v2(xy.x, xy.y - 5); + ImVec2 v3(xy.x, xy.y + 5); + ImVec2 v4(xy.x, plot.PlotRect.Max.y); + ImU32 col = GetStyleColorU32(ImPlotCol_Crosshairs); + DrawList.AddLine(h1, h2, col); + DrawList.AddLine(h3, h4, col); + DrawList.AddLine(v1, v2, col); + DrawList.AddLine(v3, v4, col); + } + + // render mouse pos + if (!ImHasFlag(plot.Flags, ImPlotFlags_NoMouseText) && (plot.Hovered || ImHasFlag(plot.MouseTextFlags, ImPlotMouseTextFlags_ShowAlways))) { + + const bool no_aux = ImHasFlag(plot.MouseTextFlags, ImPlotMouseTextFlags_NoAuxAxes); + const bool no_fmt = ImHasFlag(plot.MouseTextFlags, ImPlotMouseTextFlags_NoFormat); + + ImGuiTextBuffer& builder = gp.MousePosStringBuilder; + builder.Buf.shrink(0); + char buff[IMPLOT_LABEL_MAX_SIZE]; + + const int num_x = no_aux ? 1 : IMPLOT_NUM_X_AXES; + for (int i = 0; i < num_x; ++i) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (!x_axis.Enabled) + continue; + if (i > 0) + builder.append(", ("); + double v = x_axis.PixelsToPlot(IO.MousePos.x); + if (no_fmt) + Formatter_Default(v,buff,IMPLOT_LABEL_MAX_SIZE,(void*)IMPLOT_LABEL_FORMAT); + else + LabelAxisValue(x_axis,v,buff,IMPLOT_LABEL_MAX_SIZE,true); + builder.append(buff); + if (i > 0) + builder.append(")"); + } + builder.append(", "); + const int num_y = no_aux ? 1 : IMPLOT_NUM_Y_AXES; + for (int i = 0; i < num_y; ++i) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (!y_axis.Enabled) + continue; + if (i > 0) + builder.append(", ("); + double v = y_axis.PixelsToPlot(IO.MousePos.y); + if (no_fmt) + Formatter_Default(v,buff,IMPLOT_LABEL_MAX_SIZE,(void*)IMPLOT_LABEL_FORMAT); + else + LabelAxisValue(y_axis,v,buff,IMPLOT_LABEL_MAX_SIZE,true); + builder.append(buff); + if (i > 0) + builder.append(")"); + } + + if (!builder.empty()) { + const ImVec2 size = ImGui::CalcTextSize(builder.c_str()); + const ImVec2 pos = GetLocationPos(plot.PlotRect, size, plot.MouseTextLocation, gp.Style.MousePosPadding); + DrawList.AddText(pos, GetStyleColorU32(ImPlotCol_InlayText), builder.c_str()); + } + } + PopPlotClipRect(); + + // axis side switch + if (!plot.Held) { + ImVec2 mouse_pos = ImGui::GetIO().MousePos; + ImRect trigger_rect = plot.PlotRect; + trigger_rect.Expand(-10); + for (int i = 0; i < IMPLOT_NUM_X_AXES; ++i) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (ImHasFlag(x_axis.Flags, ImPlotAxisFlags_NoSideSwitch)) + continue; + if (x_axis.Held && plot.PlotRect.Contains(mouse_pos)) { + const bool opp = ImHasFlag(x_axis.Flags, ImPlotAxisFlags_Opposite); + if (!opp) { + ImRect rect(plot.PlotRect.Min.x - 5, plot.PlotRect.Min.y - 5, + plot.PlotRect.Max.x + 5, plot.PlotRect.Min.y + 5); + if (mouse_pos.y < plot.PlotRect.Max.y - 10) + DrawList.AddRectFilled(rect.Min, rect.Max, x_axis.ColorHov); + if (rect.Contains(mouse_pos)) + x_axis.Flags |= ImPlotAxisFlags_Opposite; + } + else { + ImRect rect(plot.PlotRect.Min.x - 5, plot.PlotRect.Max.y - 5, + plot.PlotRect.Max.x + 5, plot.PlotRect.Max.y + 5); + if (mouse_pos.y > plot.PlotRect.Min.y + 10) + DrawList.AddRectFilled(rect.Min, rect.Max, x_axis.ColorHov); + if (rect.Contains(mouse_pos)) + x_axis.Flags &= ~ImPlotAxisFlags_Opposite; + } + } + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; ++i) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (ImHasFlag(y_axis.Flags, ImPlotAxisFlags_NoSideSwitch)) + continue; + if (y_axis.Held && plot.PlotRect.Contains(mouse_pos)) { + const bool opp = ImHasFlag(y_axis.Flags, ImPlotAxisFlags_Opposite); + if (!opp) { + ImRect rect(plot.PlotRect.Max.x - 5, plot.PlotRect.Min.y - 5, + plot.PlotRect.Max.x + 5, plot.PlotRect.Max.y + 5); + if (mouse_pos.x > plot.PlotRect.Min.x + 10) + DrawList.AddRectFilled(rect.Min, rect.Max, y_axis.ColorHov); + if (rect.Contains(mouse_pos)) + y_axis.Flags |= ImPlotAxisFlags_Opposite; + } + else { + ImRect rect(plot.PlotRect.Min.x - 5, plot.PlotRect.Min.y - 5, + plot.PlotRect.Min.x + 5, plot.PlotRect.Max.y + 5); + if (mouse_pos.x < plot.PlotRect.Max.x - 10) + DrawList.AddRectFilled(rect.Min, rect.Max, y_axis.ColorHov); + if (rect.Contains(mouse_pos)) + y_axis.Flags &= ~ImPlotAxisFlags_Opposite; + } + } + } + } + + // reset legend hovers + plot.Items.Legend.Hovered = false; + for (int i = 0; i < plot.Items.GetItemCount(); ++i) + plot.Items.GetItemByIndex(i)->LegendHovered = false; + // render legend + if (!ImHasFlag(plot.Flags, ImPlotFlags_NoLegend) && plot.Items.GetLegendCount() > 0) { + ImPlotLegend& legend = plot.Items.Legend; + const bool legend_out = ImHasFlag(legend.Flags, ImPlotLegendFlags_Outside); + const bool legend_horz = ImHasFlag(legend.Flags, ImPlotLegendFlags_Horizontal); + const ImVec2 legend_size = CalcLegendSize(plot.Items, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !legend_horz); + const ImVec2 legend_pos = GetLocationPos(legend_out ? plot.FrameRect : plot.PlotRect, + legend_size, + legend.Location, + legend_out ? gp.Style.PlotPadding : gp.Style.LegendPadding); + legend.Rect = ImRect(legend_pos, legend_pos + legend_size); + // test hover + legend.Hovered = ImGui::IsWindowHovered() && legend.Rect.Contains(IO.MousePos); + + if (legend_out) + ImGui::PushClipRect(plot.FrameRect.Min, plot.FrameRect.Max, true); + else + PushPlotClipRect(); + ImU32 col_bg = GetStyleColorU32(ImPlotCol_LegendBg); + ImU32 col_bd = GetStyleColorU32(ImPlotCol_LegendBorder); + DrawList.AddRectFilled(legend.Rect.Min, legend.Rect.Max, col_bg); + DrawList.AddRect(legend.Rect.Min, legend.Rect.Max, col_bd); + bool legend_contextable = ShowLegendEntries(plot.Items, legend.Rect, legend.Hovered, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !legend_horz, DrawList) + && !ImHasFlag(legend.Flags, ImPlotLegendFlags_NoMenus); + + // main ctx menu + if (gp.OpenContextThisFrame && legend_contextable && !ImHasFlag(plot.Flags, ImPlotFlags_NoMenus)) + ImGui::OpenPopup("##LegendContext"); + ImGui::PopClipRect(); + if (ImGui::BeginPopup("##LegendContext")) { + ImGui::Text("Legend"); ImGui::Separator(); + if (ShowLegendContextMenu(legend, !ImHasFlag(plot.Flags, ImPlotFlags_NoLegend))) + ImFlipFlag(plot.Flags, ImPlotFlags_NoLegend); + ImGui::EndPopup(); + } + } + else { + plot.Items.Legend.Rect = ImRect(); + } + + // render border + if (render_border) + DrawList.AddRect(plot.PlotRect.Min, plot.PlotRect.Max, GetStyleColorU32(ImPlotCol_PlotBorder), 0, ImDrawFlags_RoundCornersAll, gp.Style.PlotBorderSize); + + // render tags + for (int i = 0; i < gp.Tags.Size; ++i) { + ImPlotTag& tag = gp.Tags.Tags[i]; + ImPlotAxis& axis = plot.Axes[tag.Axis]; + if (!axis.Enabled || !axis.Range.Contains(tag.Value)) + continue; + const char* txt = gp.Tags.GetText(i); + ImVec2 text_size = ImGui::CalcTextSize(txt); + ImVec2 size = text_size + gp.Style.AnnotationPadding * 2; + ImVec2 pos; + axis.Ticker.OverrideSizeLate(size); + float pix = IM_ROUND(axis.PlotToPixels(tag.Value)); + if (axis.Vertical) { + if (axis.IsOpposite()) { + pos = ImVec2(axis.Datum1 + gp.Style.LabelPadding.x, pix - size.y * 0.5f); + DrawList.AddTriangleFilled(ImVec2(axis.Datum1,pix), pos, pos + ImVec2(0,size.y), tag.ColorBg); + } + else { + pos = ImVec2(axis.Datum1 - size.x - gp.Style.LabelPadding.x, pix - size.y * 0.5f); + DrawList.AddTriangleFilled(pos + ImVec2(size.x,0), ImVec2(axis.Datum1,pix), pos+size, tag.ColorBg); + } + } + else { + if (axis.IsOpposite()) { + pos = ImVec2(pix - size.x * 0.5f, axis.Datum1 - size.y - gp.Style.LabelPadding.y ); + DrawList.AddTriangleFilled(pos + ImVec2(0,size.y), pos + size, ImVec2(pix,axis.Datum1), tag.ColorBg); + } + else { + pos = ImVec2(pix - size.x * 0.5f, axis.Datum1 + gp.Style.LabelPadding.y); + DrawList.AddTriangleFilled(pos, ImVec2(pix,axis.Datum1), pos + ImVec2(size.x, 0), tag.ColorBg); + } + } + DrawList.AddRectFilled(pos,pos+size,tag.ColorBg); + DrawList.AddText(pos+gp.Style.AnnotationPadding,tag.ColorFg,txt); + } + + // FIT DATA -------------------------------------------------------------- + const bool axis_equal = ImHasFlag(plot.Flags, ImPlotFlags_Equal); + if (plot.FitThisFrame) { + for (int i = 0; i < IMPLOT_NUM_X_AXES; i++) { + ImPlotAxis& x_axis = plot.XAxis(i); + if (x_axis.FitThisFrame) { + x_axis.ApplyFit(gp.Style.FitPadding.x); + if (axis_equal && x_axis.OrthoAxis != nullptr) { + double aspect = x_axis.GetAspect(); + ImPlotAxis& y_axis = *x_axis.OrthoAxis; + if (y_axis.FitThisFrame) { + y_axis.ApplyFit(gp.Style.FitPadding.y); + y_axis.FitThisFrame = false; + aspect = ImMax(aspect, y_axis.GetAspect()); + } + x_axis.SetAspect(aspect); + y_axis.SetAspect(aspect); + } + } + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; i++) { + ImPlotAxis& y_axis = plot.YAxis(i); + if (y_axis.FitThisFrame) { + y_axis.ApplyFit(gp.Style.FitPadding.y); + if (axis_equal && y_axis.OrthoAxis != nullptr) { + double aspect = y_axis.GetAspect(); + ImPlotAxis& x_axis = *y_axis.OrthoAxis; + if (x_axis.FitThisFrame) { + x_axis.ApplyFit(gp.Style.FitPadding.x); + x_axis.FitThisFrame = false; + aspect = ImMax(x_axis.GetAspect(), aspect); + } + x_axis.SetAspect(aspect); + y_axis.SetAspect(aspect); + } + } + } + plot.FitThisFrame = false; + } + + // CONTEXT MENUS ----------------------------------------------------------- + + ImGui::PushOverrideID(plot.ID); + + const bool can_ctx = gp.OpenContextThisFrame && + !ImHasFlag(plot.Flags, ImPlotFlags_NoMenus) && + !plot.Items.Legend.Hovered; + + + + // main ctx menu + if (can_ctx && plot.Hovered) + ImGui::OpenPopup("##PlotContext"); + if (ImGui::BeginPopup("##PlotContext")) { + ShowPlotContextMenu(plot); + ImGui::EndPopup(); + } + + // axes ctx menus + for (int i = 0; i < IMPLOT_NUM_X_AXES; ++i) { + ImGui::PushID(i); + ImPlotAxis& x_axis = plot.XAxis(i); + if (can_ctx && x_axis.Hovered && x_axis.HasMenus()) + ImGui::OpenPopup("##XContext"); + if (ImGui::BeginPopup("##XContext")) { + ImGui::Text(x_axis.HasLabel() ? plot.GetAxisLabel(x_axis) : i == 0 ? "X-Axis" : "X-Axis %d", i + 1); + ImGui::Separator(); + ShowAxisContextMenu(x_axis, axis_equal ? x_axis.OrthoAxis : nullptr, true); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; ++i) { + ImGui::PushID(i); + ImPlotAxis& y_axis = plot.YAxis(i); + if (can_ctx && y_axis.Hovered && y_axis.HasMenus()) + ImGui::OpenPopup("##YContext"); + if (ImGui::BeginPopup("##YContext")) { + ImGui::Text(y_axis.HasLabel() ? plot.GetAxisLabel(y_axis) : i == 0 ? "Y-Axis" : "Y-Axis %d", i + 1); + ImGui::Separator(); + ShowAxisContextMenu(y_axis, axis_equal ? y_axis.OrthoAxis : nullptr, false); + ImGui::EndPopup(); + } + ImGui::PopID(); + } + ImGui::PopID(); + + // LINKED AXES ------------------------------------------------------------ + + for (int i = 0; i < ImAxis_COUNT; ++i) + plot.Axes[i].PushLinks(); + + + // CLEANUP ---------------------------------------------------------------- + + // remove items + if (gp.CurrentItems == &plot.Items) + gp.CurrentItems = nullptr; + // reset the plot items for the next frame + for (int i = 0; i < plot.Items.GetItemCount(); ++i) { + plot.Items.GetItemByIndex(i)->SeenThisFrame = false; + } + + // mark the plot as initialized, i.e. having made it through one frame completely + plot.Initialized = true; + // Pop ImGui::PushID at the end of BeginPlot + ImGui::PopID(); + // Reset context for next plot + ResetCtxForNextPlot(GImPlot); + + // setup next subplot + if (gp.CurrentSubplot != nullptr) { + ImGui::PopID(); + SubplotNextCell(); + } +} + +//----------------------------------------------------------------------------- +// BEGIN/END SUBPLOT +//----------------------------------------------------------------------------- + +static const float SUBPLOT_BORDER_SIZE = 1.0f; +static const float SUBPLOT_SPLITTER_HALF_THICKNESS = 4.0f; +static const float SUBPLOT_SPLITTER_FEEDBACK_TIMER = 0.06f; + +void SubplotSetCell(int row, int col) { + ImPlotContext& gp = *GImPlot; + ImPlotSubplot& subplot = *gp.CurrentSubplot; + if (row >= subplot.Rows || col >= subplot.Cols) + return; + float xoff = 0; + float yoff = 0; + for (int c = 0; c < col; ++c) + xoff += subplot.ColRatios[c]; + for (int r = 0; r < row; ++r) + yoff += subplot.RowRatios[r]; + const ImVec2 grid_size = subplot.GridRect.GetSize(); + ImVec2 cpos = subplot.GridRect.Min + ImVec2(xoff*grid_size.x,yoff*grid_size.y); + cpos.x = IM_ROUND(cpos.x); + cpos.y = IM_ROUND(cpos.y); + ImGui::GetCurrentWindow()->DC.CursorPos = cpos; + // set cell size + subplot.CellSize.x = IM_ROUND(subplot.GridRect.GetWidth() * subplot.ColRatios[col]); + subplot.CellSize.y = IM_ROUND(subplot.GridRect.GetHeight() * subplot.RowRatios[row]); + // setup links + const bool lx = ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkAllX); + const bool ly = ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkAllY); + const bool lr = ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkRows); + const bool lc = ImHasFlag(subplot.Flags, ImPlotSubplotFlags_LinkCols); + + SetNextAxisLinks(ImAxis_X1, lx ? &subplot.ColLinkData[0].Min : lc ? &subplot.ColLinkData[col].Min : nullptr, + lx ? &subplot.ColLinkData[0].Max : lc ? &subplot.ColLinkData[col].Max : nullptr); + SetNextAxisLinks(ImAxis_Y1, ly ? &subplot.RowLinkData[0].Min : lr ? &subplot.RowLinkData[row].Min : nullptr, + ly ? &subplot.RowLinkData[0].Max : lr ? &subplot.RowLinkData[row].Max : nullptr); + // setup alignment + if (!ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoAlign)) { + gp.CurrentAlignmentH = &subplot.RowAlignmentData[row]; + gp.CurrentAlignmentV = &subplot.ColAlignmentData[col]; + } + // set idx + if (ImHasFlag(subplot.Flags, ImPlotSubplotFlags_ColMajor)) + subplot.CurrentIdx = col * subplot.Rows + row; + else + subplot.CurrentIdx = row * subplot.Cols + col; +} + +void SubplotSetCell(int idx) { + ImPlotContext& gp = *GImPlot; + ImPlotSubplot& subplot = *gp.CurrentSubplot; + if (idx >= subplot.Rows * subplot.Cols) + return; + int row = 0, col = 0; + if (ImHasFlag(subplot.Flags, ImPlotSubplotFlags_ColMajor)) { + row = idx % subplot.Rows; + col = idx / subplot.Rows; + } + else { + row = idx / subplot.Cols; + col = idx % subplot.Cols; + } + return SubplotSetCell(row, col); +} + +void SubplotNextCell() { + ImPlotContext& gp = *GImPlot; + ImPlotSubplot& subplot = *gp.CurrentSubplot; + SubplotSetCell(++subplot.CurrentIdx); +} + +bool BeginSubplots(const char* title, int rows, int cols, const ImVec2& size, ImPlotSubplotFlags flags, float* row_sizes, float* col_sizes) { + IM_ASSERT_USER_ERROR(rows > 0 && cols > 0, "Invalid sizing arguments!"); + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentSubplot == nullptr, "Mismatched BeginSubplots()/EndSubplots()!"); + ImGuiContext &G = *GImGui; + ImGuiWindow * Window = G.CurrentWindow; + if (Window->SkipItems) + return false; + const ImGuiID ID = Window->GetID(title); + bool just_created = gp.Subplots.GetByKey(ID) == nullptr; + gp.CurrentSubplot = gp.Subplots.GetOrAddByKey(ID); + ImPlotSubplot& subplot = *gp.CurrentSubplot; + subplot.ID = ID; + subplot.Items.ID = ID - 1; + subplot.HasTitle = ImGui::FindRenderedTextEnd(title, nullptr) != title; + // push ID + ImGui::PushID(ID); + + if (just_created) + subplot.Flags = flags; + else if (flags != subplot.PreviousFlags) + subplot.Flags = flags; + subplot.PreviousFlags = flags; + + // check for change in rows and cols + if (subplot.Rows != rows || subplot.Cols != cols) { + subplot.RowAlignmentData.resize(rows); + subplot.RowLinkData.resize(rows); + subplot.RowRatios.resize(rows); + for (int r = 0; r < rows; ++r) { + subplot.RowAlignmentData[r].Reset(); + subplot.RowLinkData[r] = ImPlotRange(0,1); + subplot.RowRatios[r] = 1.0f / rows; + } + subplot.ColAlignmentData.resize(cols); + subplot.ColLinkData.resize(cols); + subplot.ColRatios.resize(cols); + for (int c = 0; c < cols; ++c) { + subplot.ColAlignmentData[c].Reset(); + subplot.ColLinkData[c] = ImPlotRange(0,1); + subplot.ColRatios[c] = 1.0f / cols; + } + } + // check incoming size requests + float row_sum = 0, col_sum = 0; + if (row_sizes != nullptr) { + row_sum = ImSum(row_sizes, rows); + for (int r = 0; r < rows; ++r) + subplot.RowRatios[r] = row_sizes[r] / row_sum; + } + if (col_sizes != nullptr) { + col_sum = ImSum(col_sizes, cols); + for (int c = 0; c < cols; ++c) + subplot.ColRatios[c] = col_sizes[c] / col_sum; + } + subplot.Rows = rows; + subplot.Cols = cols; + + // calc plot frame sizes + ImVec2 title_size(0.0f, 0.0f); + if (!ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoTitle)) + title_size = ImGui::CalcTextSize(title, nullptr, true); + const float pad_top = title_size.x > 0.0f ? title_size.y + gp.Style.LabelPadding.y : 0; + const ImVec2 half_pad = gp.Style.PlotPadding/2; + const ImVec2 frame_size = ImGui::CalcItemSize(size, gp.Style.PlotDefaultSize.x, gp.Style.PlotDefaultSize.y); + subplot.FrameRect = ImRect(Window->DC.CursorPos, Window->DC.CursorPos + frame_size); + subplot.GridRect.Min = subplot.FrameRect.Min + half_pad + ImVec2(0,pad_top); + subplot.GridRect.Max = subplot.FrameRect.Max - half_pad; + subplot.FrameHovered = subplot.FrameRect.Contains(ImGui::GetMousePos()) && ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows|ImGuiHoveredFlags_AllowWhenBlockedByActiveItem); + + // outside legend adjustments (TODO: make function) + const bool share_items = ImHasFlag(subplot.Flags, ImPlotSubplotFlags_ShareItems); + if (share_items) + gp.CurrentItems = &subplot.Items; + if (share_items && !ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoLegend) && subplot.Items.GetLegendCount() > 0) { + ImPlotLegend& legend = subplot.Items.Legend; + const bool horz = ImHasFlag(legend.Flags, ImPlotLegendFlags_Horizontal); + const ImVec2 legend_size = CalcLegendSize(subplot.Items, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !horz); + const bool west = ImHasFlag(legend.Location, ImPlotLocation_West) && !ImHasFlag(legend.Location, ImPlotLocation_East); + const bool east = ImHasFlag(legend.Location, ImPlotLocation_East) && !ImHasFlag(legend.Location, ImPlotLocation_West); + const bool north = ImHasFlag(legend.Location, ImPlotLocation_North) && !ImHasFlag(legend.Location, ImPlotLocation_South); + const bool south = ImHasFlag(legend.Location, ImPlotLocation_South) && !ImHasFlag(legend.Location, ImPlotLocation_North); + if ((west && !horz) || (west && horz && !north && !south)) + subplot.GridRect.Min.x += (legend_size.x + gp.Style.LegendPadding.x); + if ((east && !horz) || (east && horz && !north && !south)) + subplot.GridRect.Max.x -= (legend_size.x + gp.Style.LegendPadding.x); + if ((north && horz) || (north && !horz && !west && !east)) + subplot.GridRect.Min.y += (legend_size.y + gp.Style.LegendPadding.y); + if ((south && horz) || (south && !horz && !west && !east)) + subplot.GridRect.Max.y -= (legend_size.y + gp.Style.LegendPadding.y); + } + + // render single background frame + ImGui::RenderFrame(subplot.FrameRect.Min, subplot.FrameRect.Max, GetStyleColorU32(ImPlotCol_FrameBg), true, ImGui::GetStyle().FrameRounding); + // render title + if (title_size.x > 0.0f && !ImHasFlag(subplot.Flags, ImPlotFlags_NoTitle)) { + const ImU32 col = GetStyleColorU32(ImPlotCol_TitleText); + AddTextCentered(ImGui::GetWindowDrawList(),ImVec2(subplot.GridRect.GetCenter().x, subplot.GridRect.Min.y - pad_top + half_pad.y),col,title); + } + + // render splitters + if (!ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoResize)) { + ImDrawList& DrawList = *ImGui::GetWindowDrawList(); + const ImU32 hov_col = ImGui::ColorConvertFloat4ToU32(GImGui->Style.Colors[ImGuiCol_SeparatorHovered]); + const ImU32 act_col = ImGui::ColorConvertFloat4ToU32(GImGui->Style.Colors[ImGuiCol_SeparatorActive]); + float xpos = subplot.GridRect.Min.x; + float ypos = subplot.GridRect.Min.y; + int separator = 1; + // bool pass = false; + for (int r = 0; r < subplot.Rows-1; ++r) { + ypos += subplot.RowRatios[r] * subplot.GridRect.GetHeight(); + const ImGuiID sep_id = subplot.ID + separator; + ImGui::KeepAliveID(sep_id); + const ImRect sep_bb = ImRect(subplot.GridRect.Min.x, ypos-SUBPLOT_SPLITTER_HALF_THICKNESS, subplot.GridRect.Max.x, ypos+SUBPLOT_SPLITTER_HALF_THICKNESS); + bool sep_hov = false, sep_hld = false; + const bool sep_clk = ImGui::ButtonBehavior(sep_bb, sep_id, &sep_hov, &sep_hld, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick); + if ((sep_hov && G.HoveredIdTimer > SUBPLOT_SPLITTER_FEEDBACK_TIMER) || sep_hld) { + if (sep_clk && ImGui::IsMouseDoubleClicked(0)) { + float p = (subplot.RowRatios[r] + subplot.RowRatios[r+1])/2; + subplot.RowRatios[r] = subplot.RowRatios[r+1] = p; + } + if (sep_clk) { + subplot.TempSizes[0] = subplot.RowRatios[r]; + subplot.TempSizes[1] = subplot.RowRatios[r+1]; + } + if (sep_hld) { + float dp = ImGui::GetMouseDragDelta(0).y / subplot.GridRect.GetHeight(); + if (subplot.TempSizes[0] + dp > 0.1f && subplot.TempSizes[1] - dp > 0.1f) { + subplot.RowRatios[r] = subplot.TempSizes[0] + dp; + subplot.RowRatios[r+1] = subplot.TempSizes[1] - dp; + } + } + DrawList.AddLine(ImVec2(IM_ROUND(subplot.GridRect.Min.x),IM_ROUND(ypos)), + ImVec2(IM_ROUND(subplot.GridRect.Max.x),IM_ROUND(ypos)), + sep_hld ? act_col : hov_col, SUBPLOT_BORDER_SIZE); + ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeNS); + } + separator++; + } + for (int c = 0; c < subplot.Cols-1; ++c) { + xpos += subplot.ColRatios[c] * subplot.GridRect.GetWidth(); + const ImGuiID sep_id = subplot.ID + separator; + ImGui::KeepAliveID(sep_id); + const ImRect sep_bb = ImRect(xpos-SUBPLOT_SPLITTER_HALF_THICKNESS, subplot.GridRect.Min.y, xpos+SUBPLOT_SPLITTER_HALF_THICKNESS, subplot.GridRect.Max.y); + bool sep_hov = false, sep_hld = false; + const bool sep_clk = ImGui::ButtonBehavior(sep_bb, sep_id, &sep_hov, &sep_hld, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick); + if ((sep_hov && G.HoveredIdTimer > SUBPLOT_SPLITTER_FEEDBACK_TIMER) || sep_hld) { + if (sep_clk && ImGui::IsMouseDoubleClicked(0)) { + float p = (subplot.ColRatios[c] + subplot.ColRatios[c+1])/2; + subplot.ColRatios[c] = subplot.ColRatios[c+1] = p; + } + if (sep_clk) { + subplot.TempSizes[0] = subplot.ColRatios[c]; + subplot.TempSizes[1] = subplot.ColRatios[c+1]; + } + if (sep_hld) { + float dp = ImGui::GetMouseDragDelta(0).x / subplot.GridRect.GetWidth(); + if (subplot.TempSizes[0] + dp > 0.1f && subplot.TempSizes[1] - dp > 0.1f) { + subplot.ColRatios[c] = subplot.TempSizes[0] + dp; + subplot.ColRatios[c+1] = subplot.TempSizes[1] - dp; + } + } + DrawList.AddLine(ImVec2(IM_ROUND(xpos),IM_ROUND(subplot.GridRect.Min.y)), + ImVec2(IM_ROUND(xpos),IM_ROUND(subplot.GridRect.Max.y)), + sep_hld ? act_col : hov_col, SUBPLOT_BORDER_SIZE); + ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeEW); + } + separator++; + } + } + + // set outgoing sizes + if (row_sizes != nullptr) { + for (int r = 0; r < rows; ++r) + row_sizes[r] = subplot.RowRatios[r] * row_sum; + } + if (col_sizes != nullptr) { + for (int c = 0; c < cols; ++c) + col_sizes[c] = subplot.ColRatios[c] * col_sum; + } + + // push styling + PushStyleColor(ImPlotCol_FrameBg, IM_COL32_BLACK_TRANS); + PushStyleVar(ImPlotStyleVar_PlotPadding, half_pad); + PushStyleVar(ImPlotStyleVar_PlotMinSize, ImVec2(0,0)); + ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize,0); + + // set initial cursor pos + Window->DC.CursorPos = subplot.GridRect.Min; + // begin alignments + for (int r = 0; r < subplot.Rows; ++r) + subplot.RowAlignmentData[r].Begin(); + for (int c = 0; c < subplot.Cols; ++c) + subplot.ColAlignmentData[c].Begin(); + // clear legend data + subplot.Items.Legend.Reset(); + // Setup first subplot + SubplotSetCell(0,0); + return true; +} + +void EndSubplots() { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentSubplot != nullptr, "Mismatched BeginSubplots()/EndSubplots()!"); + ImPlotSubplot& subplot = *gp.CurrentSubplot; + // set alignments + for (int r = 0; r < subplot.Rows; ++r) + subplot.RowAlignmentData[r].End(); + for (int c = 0; c < subplot.Cols; ++c) + subplot.ColAlignmentData[c].End(); + // pop styling + PopStyleColor(); + PopStyleVar(); + PopStyleVar(); + ImGui::PopStyleVar(); + // legend + subplot.Items.Legend.Hovered = false; + for (int i = 0; i < subplot.Items.GetItemCount(); ++i) + subplot.Items.GetItemByIndex(i)->LegendHovered = false; + // render legend + const bool share_items = ImHasFlag(subplot.Flags, ImPlotSubplotFlags_ShareItems); + ImDrawList& DrawList = *ImGui::GetWindowDrawList(); + if (share_items && !ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoLegend) && subplot.Items.GetLegendCount() > 0) { + const bool legend_horz = ImHasFlag(subplot.Items.Legend.Flags, ImPlotLegendFlags_Horizontal); + const ImVec2 legend_size = CalcLegendSize(subplot.Items, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !legend_horz); + const ImVec2 legend_pos = GetLocationPos(subplot.FrameRect, legend_size, subplot.Items.Legend.Location, gp.Style.PlotPadding); + subplot.Items.Legend.Rect = ImRect(legend_pos, legend_pos + legend_size); + subplot.Items.Legend.Hovered = subplot.FrameHovered && subplot.Items.Legend.Rect.Contains(ImGui::GetIO().MousePos); + ImGui::PushClipRect(subplot.FrameRect.Min, subplot.FrameRect.Max, true); + ImU32 col_bg = GetStyleColorU32(ImPlotCol_LegendBg); + ImU32 col_bd = GetStyleColorU32(ImPlotCol_LegendBorder); + DrawList.AddRectFilled(subplot.Items.Legend.Rect.Min, subplot.Items.Legend.Rect.Max, col_bg); + DrawList.AddRect(subplot.Items.Legend.Rect.Min, subplot.Items.Legend.Rect.Max, col_bd); + bool legend_contextable = ShowLegendEntries(subplot.Items, subplot.Items.Legend.Rect, subplot.Items.Legend.Hovered, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, !legend_horz, DrawList) + && !ImHasFlag(subplot.Items.Legend.Flags, ImPlotLegendFlags_NoMenus); + if (legend_contextable && !ImHasFlag(subplot.Flags, ImPlotSubplotFlags_NoMenus) && ImGui::GetIO().MouseReleased[gp.InputMap.Menu]) + ImGui::OpenPopup("##LegendContext"); + ImGui::PopClipRect(); + if (ImGui::BeginPopup("##LegendContext")) { + ImGui::Text("Legend"); ImGui::Separator(); + if (ShowLegendContextMenu(subplot.Items.Legend, !ImHasFlag(subplot.Flags, ImPlotFlags_NoLegend))) + ImFlipFlag(subplot.Flags, ImPlotFlags_NoLegend); + ImGui::EndPopup(); + } + } + else { + subplot.Items.Legend.Rect = ImRect(); + } + // remove items + if (gp.CurrentItems == &subplot.Items) + gp.CurrentItems = nullptr; + // reset the plot items for the next frame (TODO: put this elswhere) + for (int i = 0; i < subplot.Items.GetItemCount(); ++i) { + subplot.Items.GetItemByIndex(i)->SeenThisFrame = false; + } + // pop id + ImGui::PopID(); + // set DC back correctly + GImGui->CurrentWindow->DC.CursorPos = subplot.FrameRect.Min; + ImGui::Dummy(subplot.FrameRect.GetSize()); + ResetCtxForNextSubplot(GImPlot); + +} + +//----------------------------------------------------------------------------- +// [SECTION] Plot Utils +//----------------------------------------------------------------------------- + +void SetAxis(ImAxis axis) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "SetAxis() needs to be called between BeginPlot() and EndPlot()!"); + IM_ASSERT_USER_ERROR(axis >= ImAxis_X1 && axis < ImAxis_COUNT, "Axis index out of bounds!"); + IM_ASSERT_USER_ERROR(gp.CurrentPlot->Axes[axis].Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + SetupLock(); + if (axis < ImAxis_Y1) + gp.CurrentPlot->CurrentX = axis; + else + gp.CurrentPlot->CurrentY = axis; +} + +void SetAxes(ImAxis x_idx, ImAxis y_idx) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "SetAxes() needs to be called between BeginPlot() and EndPlot()!"); + IM_ASSERT_USER_ERROR(x_idx >= ImAxis_X1 && x_idx < ImAxis_Y1, "X-Axis index out of bounds!"); + IM_ASSERT_USER_ERROR(y_idx >= ImAxis_Y1 && y_idx < ImAxis_COUNT, "Y-Axis index out of bounds!"); + IM_ASSERT_USER_ERROR(gp.CurrentPlot->Axes[x_idx].Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + IM_ASSERT_USER_ERROR(gp.CurrentPlot->Axes[y_idx].Enabled, "Axis is not enabled! Did you forget to call SetupAxis()?"); + SetupLock(); + gp.CurrentPlot->CurrentX = x_idx; + gp.CurrentPlot->CurrentY = y_idx; +} + +ImPlotPoint PixelsToPlot(float x, float y, ImAxis x_idx, ImAxis y_idx) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PixelsToPlot() needs to be called between BeginPlot() and EndPlot()!"); + IM_ASSERT_USER_ERROR(x_idx == IMPLOT_AUTO || (x_idx >= ImAxis_X1 && x_idx < ImAxis_Y1), "X-Axis index out of bounds!"); + IM_ASSERT_USER_ERROR(y_idx == IMPLOT_AUTO || (y_idx >= ImAxis_Y1 && y_idx < ImAxis_COUNT), "Y-Axis index out of bounds!"); + SetupLock(); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& x_axis = x_idx == IMPLOT_AUTO ? plot.Axes[plot.CurrentX] : plot.Axes[x_idx]; + ImPlotAxis& y_axis = y_idx == IMPLOT_AUTO ? plot.Axes[plot.CurrentY] : plot.Axes[y_idx]; + return ImPlotPoint( x_axis.PixelsToPlot(x), y_axis.PixelsToPlot(y) ); +} + +ImPlotPoint PixelsToPlot(const ImVec2& pix, ImAxis x_idx, ImAxis y_idx) { + return PixelsToPlot(pix.x, pix.y, x_idx, y_idx); +} + +ImVec2 PlotToPixels(double x, double y, ImAxis x_idx, ImAxis y_idx) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PlotToPixels() needs to be called between BeginPlot() and EndPlot()!"); + IM_ASSERT_USER_ERROR(x_idx == IMPLOT_AUTO || (x_idx >= ImAxis_X1 && x_idx < ImAxis_Y1), "X-Axis index out of bounds!"); + IM_ASSERT_USER_ERROR(y_idx == IMPLOT_AUTO || (y_idx >= ImAxis_Y1 && y_idx < ImAxis_COUNT), "Y-Axis index out of bounds!"); + SetupLock(); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& x_axis = x_idx == IMPLOT_AUTO ? plot.Axes[plot.CurrentX] : plot.Axes[x_idx]; + ImPlotAxis& y_axis = y_idx == IMPLOT_AUTO ? plot.Axes[plot.CurrentY] : plot.Axes[y_idx]; + return ImVec2( x_axis.PlotToPixels(x), y_axis.PlotToPixels(y) ); +} + +ImVec2 PlotToPixels(const ImPlotPoint& plt, ImAxis x_idx, ImAxis y_idx) { + return PlotToPixels(plt.x, plt.y, x_idx, y_idx); +} + +ImVec2 GetPlotPos() { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "GetPlotPos() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + return gp.CurrentPlot->PlotRect.Min; +} + +ImVec2 GetPlotSize() { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "GetPlotSize() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + return gp.CurrentPlot->PlotRect.GetSize(); +} + +ImPlotPoint GetPlotMousePos(ImAxis x_idx, ImAxis y_idx) { + IM_ASSERT_USER_ERROR(GImPlot->CurrentPlot != nullptr, "GetPlotMousePos() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + return PixelsToPlot(ImGui::GetMousePos(), x_idx, y_idx); +} + +ImPlotRect GetPlotLimits(ImAxis x_idx, ImAxis y_idx) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "GetPlotLimits() needs to be called between BeginPlot() and EndPlot()!"); + IM_ASSERT_USER_ERROR(x_idx == IMPLOT_AUTO || (x_idx >= ImAxis_X1 && x_idx < ImAxis_Y1), "X-Axis index out of bounds!"); + IM_ASSERT_USER_ERROR(y_idx == IMPLOT_AUTO || (y_idx >= ImAxis_Y1 && y_idx < ImAxis_COUNT), "Y-Axis index out of bounds!"); + SetupLock(); + ImPlotPlot& plot = *gp.CurrentPlot; + ImPlotAxis& x_axis = x_idx == IMPLOT_AUTO ? plot.Axes[plot.CurrentX] : plot.Axes[x_idx]; + ImPlotAxis& y_axis = y_idx == IMPLOT_AUTO ? plot.Axes[plot.CurrentY] : plot.Axes[y_idx]; + ImPlotRect limits; + limits.X = x_axis.Range; + limits.Y = y_axis.Range; + return limits; +} + +bool IsPlotHovered() { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "IsPlotHovered() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + return gp.CurrentPlot->Hovered; +} + +bool IsAxisHovered(ImAxis axis) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "IsPlotXAxisHovered() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + return gp.CurrentPlot->Axes[axis].Hovered; +} + +bool IsSubplotsHovered() { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentSubplot != nullptr, "IsSubplotsHovered() needs to be called between BeginSubplots() and EndSubplots()!"); + return gp.CurrentSubplot->FrameHovered; +} + +bool IsPlotSelected() { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "IsPlotSelected() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + return gp.CurrentPlot->Selected; +} + +ImPlotRect GetPlotSelection(ImAxis x_idx, ImAxis y_idx) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "GetPlotSelection() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + ImPlotPlot& plot = *gp.CurrentPlot; + if (!plot.Selected) + return ImPlotRect(0,0,0,0); + ImPlotPoint p1 = PixelsToPlot(plot.SelectRect.Min + plot.PlotRect.Min, x_idx, y_idx); + ImPlotPoint p2 = PixelsToPlot(plot.SelectRect.Max + plot.PlotRect.Min, x_idx, y_idx); + ImPlotRect result; + result.X.Min = ImMin(p1.x, p2.x); + result.X.Max = ImMax(p1.x, p2.x); + result.Y.Min = ImMin(p1.y, p2.y); + result.Y.Max = ImMax(p1.y, p2.y); + return result; +} + +void CancelPlotSelection() { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "CancelPlotSelection() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + ImPlotPlot& plot = *gp.CurrentPlot; + if (plot.Selected) + plot.Selected = plot.Selecting = false; +} + +void HideNextItem(bool hidden, ImPlotCond cond) { + ImPlotContext& gp = *GImPlot; + gp.NextItemData.HasHidden = true; + gp.NextItemData.Hidden = hidden; + gp.NextItemData.HiddenCond = cond; +} + +//----------------------------------------------------------------------------- +// [SECTION] Plot Tools +//----------------------------------------------------------------------------- + +void Annotation(double x, double y, const ImVec4& col, const ImVec2& offset, bool clamp, bool round) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "Annotation() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + char x_buff[IMPLOT_LABEL_MAX_SIZE]; + char y_buff[IMPLOT_LABEL_MAX_SIZE]; + ImPlotAxis& x_axis = gp.CurrentPlot->Axes[gp.CurrentPlot->CurrentX]; + ImPlotAxis& y_axis = gp.CurrentPlot->Axes[gp.CurrentPlot->CurrentY]; + LabelAxisValue(x_axis, x, x_buff, sizeof(x_buff), round); + LabelAxisValue(y_axis, y, y_buff, sizeof(y_buff), round); + Annotation(x,y,col,offset,clamp,"%s, %s",x_buff,y_buff); +} + +void AnnotationV(double x, double y, const ImVec4& col, const ImVec2& offset, bool clamp, const char* fmt, va_list args) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "Annotation() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + ImVec2 pos = PlotToPixels(x,y,IMPLOT_AUTO,IMPLOT_AUTO); + ImU32 bg = ImGui::GetColorU32(col); + ImU32 fg = col.w == 0 ? GetStyleColorU32(ImPlotCol_InlayText) : CalcTextColor(col); + gp.Annotations.AppendV(pos, offset, bg, fg, clamp, fmt, args); +} + +void Annotation(double x, double y, const ImVec4& col, const ImVec2& offset, bool clamp, const char* fmt, ...) { + va_list args; + va_start(args, fmt); + AnnotationV(x,y,col,offset,clamp,fmt,args); + va_end(args); +} + +void TagV(ImAxis axis, double v, const ImVec4& col, const char* fmt, va_list args) { + ImPlotContext& gp = *GImPlot; + SetupLock(); + ImU32 bg = ImGui::GetColorU32(col); + ImU32 fg = col.w == 0 ? GetStyleColorU32(ImPlotCol_AxisText) : CalcTextColor(col); + gp.Tags.AppendV(axis,v,bg,fg,fmt,args); +} + +void Tag(ImAxis axis, double v, const ImVec4& col, const char* fmt, ...) { + va_list args; + va_start(args, fmt); + TagV(axis,v,col,fmt,args); + va_end(args); +} + +void Tag(ImAxis axis, double v, const ImVec4& color, bool round) { + ImPlotContext& gp = *GImPlot; + SetupLock(); + char buff[IMPLOT_LABEL_MAX_SIZE]; + ImPlotAxis& ax = gp.CurrentPlot->Axes[axis]; + LabelAxisValue(ax, v, buff, sizeof(buff), round); + Tag(axis,v,color,"%s",buff); +} + +IMPLOT_API void TagX(double x, const ImVec4& color, bool round) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "TagX() needs to be called between BeginPlot() and EndPlot()!"); + Tag(gp.CurrentPlot->CurrentX, x, color, round); +} + +IMPLOT_API void TagX(double x, const ImVec4& color, const char* fmt, ...) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "TagX() needs to be called between BeginPlot() and EndPlot()!"); + va_list args; + va_start(args, fmt); + TagV(gp.CurrentPlot->CurrentX,x,color,fmt,args); + va_end(args); +} + +IMPLOT_API void TagXV(double x, const ImVec4& color, const char* fmt, va_list args) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "TagX() needs to be called between BeginPlot() and EndPlot()!"); + TagV(gp.CurrentPlot->CurrentX, x, color, fmt, args); +} + +IMPLOT_API void TagY(double y, const ImVec4& color, bool round) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "TagY() needs to be called between BeginPlot() and EndPlot()!"); + Tag(gp.CurrentPlot->CurrentY, y, color, round); +} + +IMPLOT_API void TagY(double y, const ImVec4& color, const char* fmt, ...) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "TagY() needs to be called between BeginPlot() and EndPlot()!"); + va_list args; + va_start(args, fmt); + TagV(gp.CurrentPlot->CurrentY,y,color,fmt,args); + va_end(args); +} + +IMPLOT_API void TagYV(double y, const ImVec4& color, const char* fmt, va_list args) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "TagY() needs to be called between BeginPlot() and EndPlot()!"); + TagV(gp.CurrentPlot->CurrentY, y, color, fmt, args); +} + +static const float DRAG_GRAB_HALF_SIZE = 4.0f; + +bool DragPoint(int n_id, double* x, double* y, const ImVec4& col, float radius, ImPlotDragToolFlags flags) { + ImGui::PushID("#IMPLOT_DRAG_POINT"); + IM_ASSERT_USER_ERROR(GImPlot->CurrentPlot != nullptr, "DragPoint() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + + if (!ImHasFlag(flags,ImPlotDragToolFlags_NoFit) && FitThisFrame()) { + FitPoint(ImPlotPoint(*x,*y)); + } + + const bool input = !ImHasFlag(flags, ImPlotDragToolFlags_NoInputs); + const bool show_curs = !ImHasFlag(flags, ImPlotDragToolFlags_NoCursors); + const bool no_delay = !ImHasFlag(flags, ImPlotDragToolFlags_Delayed); + const float grab_half_size = ImMax(DRAG_GRAB_HALF_SIZE, radius); + const ImVec4 color = IsColorAuto(col) ? ImGui::GetStyleColorVec4(ImGuiCol_Text) : col; + const ImU32 col32 = ImGui::ColorConvertFloat4ToU32(color); + + ImVec2 pos = PlotToPixels(*x,*y,IMPLOT_AUTO,IMPLOT_AUTO); + const ImGuiID id = ImGui::GetCurrentWindow()->GetID(n_id); + ImRect rect(pos.x-grab_half_size,pos.y-grab_half_size,pos.x+grab_half_size,pos.y+grab_half_size); + bool hovered = false, held = false; + + ImGui::KeepAliveID(id); + if (input) + ImGui::ButtonBehavior(rect,id,&hovered,&held); + + bool dragging = false; + if (held && ImGui::IsMouseDragging(0)) { + *x = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).x; + *y = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).y; + dragging = true; + } + + PushPlotClipRect(); + ImDrawList& DrawList = *GetPlotDrawList(); + if ((hovered || held) && show_curs) + ImGui::SetMouseCursor(ImGuiMouseCursor_Hand); + if (dragging && no_delay) + pos = PlotToPixels(*x,*y,IMPLOT_AUTO,IMPLOT_AUTO); + DrawList.AddCircleFilled(pos, radius, col32); + PopPlotClipRect(); + + ImGui::PopID(); + return dragging; +} + +bool DragLineX(int n_id, double* value, const ImVec4& col, float thickness, ImPlotDragToolFlags flags) { + // ImGui::PushID("#IMPLOT_DRAG_LINE_X"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "DragLineX() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + + if (!ImHasFlag(flags,ImPlotDragToolFlags_NoFit) && FitThisFrame()) { + FitPointX(*value); + } + + const bool input = !ImHasFlag(flags, ImPlotDragToolFlags_NoInputs); + const bool show_curs = !ImHasFlag(flags, ImPlotDragToolFlags_NoCursors); + const bool no_delay = !ImHasFlag(flags, ImPlotDragToolFlags_Delayed); + const float grab_half_size = ImMax(DRAG_GRAB_HALF_SIZE, thickness/2); + float yt = gp.CurrentPlot->PlotRect.Min.y; + float yb = gp.CurrentPlot->PlotRect.Max.y; + float x = IM_ROUND(PlotToPixels(*value,0,IMPLOT_AUTO,IMPLOT_AUTO).x); + const ImGuiID id = ImGui::GetCurrentWindow()->GetID(n_id); + ImRect rect(x-grab_half_size,yt,x+grab_half_size,yb); + bool hovered = false, held = false; + + ImGui::KeepAliveID(id); + if (input) + ImGui::ButtonBehavior(rect,id,&hovered,&held); + + if ((hovered || held) && show_curs) + ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeEW); + + float len = gp.Style.MajorTickLen.x; + ImVec4 color = IsColorAuto(col) ? ImGui::GetStyleColorVec4(ImGuiCol_Text) : col; + ImU32 col32 = ImGui::ColorConvertFloat4ToU32(color); + + bool dragging = false; + if (held && ImGui::IsMouseDragging(0)) { + *value = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).x; + dragging = true; + } + + PushPlotClipRect(); + ImDrawList& DrawList = *GetPlotDrawList(); + if (dragging && no_delay) + x = IM_ROUND(PlotToPixels(*value,0,IMPLOT_AUTO,IMPLOT_AUTO).x); + DrawList.AddLine(ImVec2(x,yt), ImVec2(x,yb), col32, thickness); + DrawList.AddLine(ImVec2(x,yt), ImVec2(x,yt+len), col32, 3*thickness); + DrawList.AddLine(ImVec2(x,yb), ImVec2(x,yb-len), col32, 3*thickness); + PopPlotClipRect(); + + // ImGui::PopID(); + return dragging; +} + +bool DragLineY(int n_id, double* value, const ImVec4& col, float thickness, ImPlotDragToolFlags flags) { + ImGui::PushID("#IMPLOT_DRAG_LINE_Y"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "DragLineY() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + + if (!ImHasFlag(flags,ImPlotDragToolFlags_NoFit) && FitThisFrame()) { + FitPointY(*value); + } + + const bool input = !ImHasFlag(flags, ImPlotDragToolFlags_NoInputs); + const bool show_curs = !ImHasFlag(flags, ImPlotDragToolFlags_NoCursors); + const bool no_delay = !ImHasFlag(flags, ImPlotDragToolFlags_Delayed); + const float grab_half_size = ImMax(DRAG_GRAB_HALF_SIZE, thickness/2); + float xl = gp.CurrentPlot->PlotRect.Min.x; + float xr = gp.CurrentPlot->PlotRect.Max.x; + float y = IM_ROUND(PlotToPixels(0, *value,IMPLOT_AUTO,IMPLOT_AUTO).y); + + const ImGuiID id = ImGui::GetCurrentWindow()->GetID(n_id); + ImRect rect(xl,y-grab_half_size,xr,y+grab_half_size); + bool hovered = false, held = false; + + ImGui::KeepAliveID(id); + if (input) + ImGui::ButtonBehavior(rect,id,&hovered,&held); + + if ((hovered || held) && show_curs) + ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeNS); + + float len = gp.Style.MajorTickLen.y; + ImVec4 color = IsColorAuto(col) ? ImGui::GetStyleColorVec4(ImGuiCol_Text) : col; + ImU32 col32 = ImGui::ColorConvertFloat4ToU32(color); + + bool dragging = false; + if (held && ImGui::IsMouseDragging(0)) { + *value = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).y; + dragging = true; + } + + PushPlotClipRect(); + ImDrawList& DrawList = *GetPlotDrawList(); + if (dragging && no_delay) + y = IM_ROUND(PlotToPixels(0, *value,IMPLOT_AUTO,IMPLOT_AUTO).y); + DrawList.AddLine(ImVec2(xl,y), ImVec2(xr,y), col32, thickness); + DrawList.AddLine(ImVec2(xl,y), ImVec2(xl+len,y), col32, 3*thickness); + DrawList.AddLine(ImVec2(xr,y), ImVec2(xr-len,y), col32, 3*thickness); + PopPlotClipRect(); + + ImGui::PopID(); + return dragging; +} + +bool DragRect(int n_id, double* x_min, double* y_min, double* x_max, double* y_max, const ImVec4& col, ImPlotDragToolFlags flags) { + ImGui::PushID("#IMPLOT_DRAG_RECT"); + IM_ASSERT_USER_ERROR(GImPlot->CurrentPlot != nullptr, "DragRect() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + + if (!ImHasFlag(flags,ImPlotDragToolFlags_NoFit) && FitThisFrame()) { + FitPoint(ImPlotPoint(*x_min,*y_min)); + FitPoint(ImPlotPoint(*x_max,*y_max)); + } + + const bool input = !ImHasFlag(flags, ImPlotDragToolFlags_NoInputs); + const bool show_curs = !ImHasFlag(flags, ImPlotDragToolFlags_NoCursors); + const bool no_delay = !ImHasFlag(flags, ImPlotDragToolFlags_Delayed); + bool h[] = {true,false,true,false}; + double* x[] = {x_min,x_max,x_max,x_min}; + double* y[] = {y_min,y_min,y_max,y_max}; + ImVec2 p[4]; + for (int i = 0; i < 4; ++i) + p[i] = PlotToPixels(*x[i],*y[i],IMPLOT_AUTO,IMPLOT_AUTO); + ImVec2 pc = PlotToPixels((*x_min+*x_max)/2,(*y_min+*y_max)/2,IMPLOT_AUTO,IMPLOT_AUTO); + ImRect rect(ImMin(p[0],p[2]),ImMax(p[0],p[2])); + ImRect rect_grab = rect; rect_grab.Expand(DRAG_GRAB_HALF_SIZE); + + ImGuiMouseCursor cur[4]; + if (show_curs) { + cur[0] = (rect.Min.x == p[0].x && rect.Min.y == p[0].y) || (rect.Max.x == p[0].x && rect.Max.y == p[0].y) ? ImGuiMouseCursor_ResizeNWSE : ImGuiMouseCursor_ResizeNESW; + cur[1] = cur[0] == ImGuiMouseCursor_ResizeNWSE ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + cur[2] = cur[1] == ImGuiMouseCursor_ResizeNWSE ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + cur[3] = cur[2] == ImGuiMouseCursor_ResizeNWSE ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + } + + ImVec4 color = IsColorAuto(col) ? ImGui::GetStyleColorVec4(ImGuiCol_Text) : col; + ImU32 col32 = ImGui::ColorConvertFloat4ToU32(color); + color.w *= 0.25f; + ImU32 col32_a = ImGui::ColorConvertFloat4ToU32(color); + const ImGuiID id = ImGui::GetCurrentWindow()->GetID(n_id); + + bool dragging = false; + bool hovered = false, held = false; + ImRect b_rect(pc.x-DRAG_GRAB_HALF_SIZE,pc.y-DRAG_GRAB_HALF_SIZE,pc.x+DRAG_GRAB_HALF_SIZE,pc.y+DRAG_GRAB_HALF_SIZE); + + ImGui::KeepAliveID(id); + if (input) + ImGui::ButtonBehavior(b_rect,id,&hovered,&held); + + if ((hovered || held) && show_curs) + ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeAll); + if (held && ImGui::IsMouseDragging(0)) { + for (int i = 0; i < 4; ++i) { + ImPlotPoint pp = PixelsToPlot(p[i] + ImGui::GetIO().MouseDelta,IMPLOT_AUTO,IMPLOT_AUTO); + *y[i] = pp.y; + *x[i] = pp.x; + } + dragging = true; + } + + for (int i = 0; i < 4; ++i) { + // points + b_rect = ImRect(p[i].x-DRAG_GRAB_HALF_SIZE,p[i].y-DRAG_GRAB_HALF_SIZE,p[i].x+DRAG_GRAB_HALF_SIZE,p[i].y+DRAG_GRAB_HALF_SIZE); + ImGuiID p_id = id + i + 1; + ImGui::KeepAliveID(p_id); + if (input) + ImGui::ButtonBehavior(b_rect,p_id,&hovered,&held); + if ((hovered || held) && show_curs) + ImGui::SetMouseCursor(cur[i]); + + if (held && ImGui::IsMouseDragging(0)) { + *x[i] = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).x; + *y[i] = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).y; + dragging = true; + } + + // edges + ImVec2 e_min = ImMin(p[i],p[(i+1)%4]); + ImVec2 e_max = ImMax(p[i],p[(i+1)%4]); + b_rect = h[i] ? ImRect(e_min.x + DRAG_GRAB_HALF_SIZE, e_min.y - DRAG_GRAB_HALF_SIZE, e_max.x - DRAG_GRAB_HALF_SIZE, e_max.y + DRAG_GRAB_HALF_SIZE) + : ImRect(e_min.x - DRAG_GRAB_HALF_SIZE, e_min.y + DRAG_GRAB_HALF_SIZE, e_max.x + DRAG_GRAB_HALF_SIZE, e_max.y - DRAG_GRAB_HALF_SIZE); + ImGuiID e_id = id + i + 5; + ImGui::KeepAliveID(e_id); + if (input) + ImGui::ButtonBehavior(b_rect,e_id,&hovered,&held); + if ((hovered || held) && show_curs) + h[i] ? ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeNS) : ImGui::SetMouseCursor(ImGuiMouseCursor_ResizeEW); + if (held && ImGui::IsMouseDragging(0)) { + if (h[i]) + *y[i] = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).y; + else + *x[i] = ImPlot::GetPlotMousePos(IMPLOT_AUTO,IMPLOT_AUTO).x; + dragging = true; + } + if (hovered && ImGui::IsMouseDoubleClicked(0)) + { + ImPlotRect b = GetPlotLimits(IMPLOT_AUTO,IMPLOT_AUTO); + if (h[i]) + *y[i] = ((y[i] == y_min && *y_min < *y_max) || (y[i] == y_max && *y_max < *y_min)) ? b.Y.Min : b.Y.Max; + else + *x[i] = ((x[i] == x_min && *x_min < *x_max) || (x[i] == x_max && *x_max < *x_min)) ? b.X.Min : b.X.Max; + dragging = true; + } + } + + + PushPlotClipRect(); + ImDrawList& DrawList = *GetPlotDrawList(); + if (dragging && no_delay) { + for (int i = 0; i < 4; ++i) + p[i] = PlotToPixels(*x[i],*y[i],IMPLOT_AUTO,IMPLOT_AUTO); + pc = PlotToPixels((*x_min+*x_max)/2,(*y_min+*y_max)/2,IMPLOT_AUTO,IMPLOT_AUTO); + rect = ImRect(ImMin(p[0],p[2]),ImMax(p[0],p[2])); + } + DrawList.AddRectFilled(rect.Min, rect.Max, col32_a); + DrawList.AddRect(rect.Min, rect.Max, col32); + if (input && (dragging || rect_grab.Contains(ImGui::GetMousePos()))) { + DrawList.AddCircleFilled(pc,DRAG_GRAB_HALF_SIZE,col32); + for (int i = 0; i < 4; ++i) + DrawList.AddCircleFilled(p[i],DRAG_GRAB_HALF_SIZE,col32); + } + PopPlotClipRect(); + ImGui::PopID(); + return dragging; +} + +bool DragRect(int id, ImPlotRect* bounds, const ImVec4& col, ImPlotDragToolFlags flags) { + return DragRect(id, &bounds->X.Min, &bounds->Y.Min,&bounds->X.Max, &bounds->Y.Max, col, flags); +} + +//----------------------------------------------------------------------------- +// [SECTION] Legend Utils and Tools +//----------------------------------------------------------------------------- + +bool IsLegendEntryHovered(const char* label_id) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentItems != nullptr, "IsPlotItemHighlight() needs to be called within an itemized context!"); + SetupLock(); + ImGuiID id = ImGui::GetIDWithSeed(label_id, nullptr, gp.CurrentItems->ID); + ImPlotItem* item = gp.CurrentItems->GetItem(id); + return item && item->LegendHovered; +} + +bool BeginLegendPopup(const char* label_id, ImGuiMouseButton mouse_button) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentItems != nullptr, "BeginLegendPopup() needs to be called within an itemized context!"); + SetupLock(); + ImGuiWindow* window = GImGui->CurrentWindow; + if (window->SkipItems) + return false; + ImGuiID id = ImGui::GetIDWithSeed(label_id, nullptr, gp.CurrentItems->ID); + if (ImGui::IsMouseReleased(mouse_button)) { + ImPlotItem* item = gp.CurrentItems->GetItem(id); + if (item && item->LegendHovered) + ImGui::OpenPopupEx(id); + } + return ImGui::BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +void EndLegendPopup() { + SetupLock(); + ImGui::EndPopup(); +} + +void ShowAltLegend(const char* title_id, bool vertical, const ImVec2 size, bool interactable) { + ImPlotContext& gp = *GImPlot; + ImGuiContext &G = *GImGui; + ImGuiWindow * Window = G.CurrentWindow; + if (Window->SkipItems) + return; + ImDrawList &DrawList = *Window->DrawList; + ImPlotPlot* plot = GetPlot(title_id); + ImVec2 legend_size; + ImVec2 default_size = gp.Style.LegendPadding * 2; + if (plot != nullptr) { + legend_size = CalcLegendSize(plot->Items, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, vertical); + default_size = legend_size + gp.Style.LegendPadding * 2; + } + ImVec2 frame_size = ImGui::CalcItemSize(size, default_size.x, default_size.y); + ImRect bb_frame = ImRect(Window->DC.CursorPos, Window->DC.CursorPos + frame_size); + ImGui::ItemSize(bb_frame); + if (!ImGui::ItemAdd(bb_frame, 0, &bb_frame)) + return; + ImGui::RenderFrame(bb_frame.Min, bb_frame.Max, GetStyleColorU32(ImPlotCol_FrameBg), true, G.Style.FrameRounding); + DrawList.PushClipRect(bb_frame.Min, bb_frame.Max, true); + if (plot != nullptr) { + const ImVec2 legend_pos = GetLocationPos(bb_frame, legend_size, 0, gp.Style.LegendPadding); + const ImRect legend_bb(legend_pos, legend_pos + legend_size); + interactable = interactable && bb_frame.Contains(ImGui::GetIO().MousePos); + // render legend box + ImU32 col_bg = GetStyleColorU32(ImPlotCol_LegendBg); + ImU32 col_bd = GetStyleColorU32(ImPlotCol_LegendBorder); + DrawList.AddRectFilled(legend_bb.Min, legend_bb.Max, col_bg); + DrawList.AddRect(legend_bb.Min, legend_bb.Max, col_bd); + // render entries + ShowLegendEntries(plot->Items, legend_bb, interactable, gp.Style.LegendInnerPadding, gp.Style.LegendSpacing, vertical, DrawList); + } + DrawList.PopClipRect(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Drag and Drop Utils +//----------------------------------------------------------------------------- + +bool BeginDragDropTargetPlot() { + SetupLock(); + ImPlotContext& gp = *GImPlot; + ImRect rect = gp.CurrentPlot->PlotRect; + return ImGui::BeginDragDropTargetCustom(rect, gp.CurrentPlot->ID); +} + +bool BeginDragDropTargetAxis(ImAxis axis) { + SetupLock(); + ImPlotPlot& plot = *GImPlot->CurrentPlot; + ImPlotAxis& ax = plot.Axes[axis]; + ImRect rect = ax.HoverRect; + rect.Expand(-3.5f); + return ImGui::BeginDragDropTargetCustom(rect, ax.ID); +} + +bool BeginDragDropTargetLegend() { + SetupLock(); + ImPlotItemGroup& items = *GImPlot->CurrentItems; + ImRect rect = items.Legend.Rect; + return ImGui::BeginDragDropTargetCustom(rect, items.ID); +} + +void EndDragDropTarget() { + SetupLock(); + ImGui::EndDragDropTarget(); +} + +bool BeginDragDropSourcePlot(ImGuiDragDropFlags flags) { + SetupLock(); + ImPlotContext& gp = *GImPlot; + ImPlotPlot* plot = gp.CurrentPlot; + if (GImGui->IO.KeyMods == gp.InputMap.OverrideMod || GImGui->DragDropPayload.SourceId == plot->ID) + return ImGui::ItemAdd(plot->PlotRect, plot->ID) && ImGui::BeginDragDropSource(flags); + return false; +} + +bool BeginDragDropSourceAxis(ImAxis idx, ImGuiDragDropFlags flags) { + SetupLock(); + ImPlotContext& gp = *GImPlot; + ImPlotAxis& axis = gp.CurrentPlot->Axes[idx]; + if (GImGui->IO.KeyMods == gp.InputMap.OverrideMod || GImGui->DragDropPayload.SourceId == axis.ID) + return ImGui::ItemAdd(axis.HoverRect, axis.ID) && ImGui::BeginDragDropSource(flags); + return false; +} + +bool BeginDragDropSourceItem(const char* label_id, ImGuiDragDropFlags flags) { + SetupLock(); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentItems != nullptr, "BeginDragDropSourceItem() needs to be called within an itemized context!"); + ImGuiID item_id = ImGui::GetIDWithSeed(label_id, nullptr, gp.CurrentItems->ID); + ImPlotItem* item = gp.CurrentItems->GetItem(item_id); + if (item != nullptr) { + return ImGui::ItemAdd(item->LegendHoverRect, item->ID) && ImGui::BeginDragDropSource(flags); + } + return false; +} + +void EndDragDropSource() { + SetupLock(); + ImGui::EndDragDropSource(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Aligned Plots +//----------------------------------------------------------------------------- + +bool BeginAlignedPlots(const char* group_id, bool vertical) { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentAlignmentH == nullptr && gp.CurrentAlignmentV == nullptr, "Mismatched BeginAlignedPlots()/EndAlignedPlots()!"); + ImGuiContext &G = *GImGui; + ImGuiWindow * Window = G.CurrentWindow; + if (Window->SkipItems) + return false; + const ImGuiID ID = Window->GetID(group_id); + ImPlotAlignmentData* alignment = gp.AlignmentData.GetOrAddByKey(ID); + if (vertical) + gp.CurrentAlignmentV = alignment; + else + gp.CurrentAlignmentH = alignment; + if (alignment->Vertical != vertical) + alignment->Reset(); + alignment->Vertical = vertical; + alignment->Begin(); + return true; +} + +void EndAlignedPlots() { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentAlignmentH != nullptr || gp.CurrentAlignmentV != nullptr, "Mismatched BeginAlignedPlots()/EndAlignedPlots()!"); + ImPlotAlignmentData* alignment = gp.CurrentAlignmentH != nullptr ? gp.CurrentAlignmentH : (gp.CurrentAlignmentV != nullptr ? gp.CurrentAlignmentV : nullptr); + if (alignment) + alignment->End(); + ResetCtxForNextAlignedPlots(GImPlot); +} + +//----------------------------------------------------------------------------- +// [SECTION] Plot and Item Styling +//----------------------------------------------------------------------------- + +ImPlotStyle& GetStyle() { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + return gp.Style; +} + +void PushStyleColor(ImPlotCol idx, ImU32 col) { + ImPlotContext& gp = *GImPlot; + ImGuiColorMod backup; + backup.Col = (ImGuiCol)idx; + backup.BackupValue = gp.Style.Colors[idx]; + gp.ColorModifiers.push_back(backup); + gp.Style.Colors[idx] = ImGui::ColorConvertU32ToFloat4(col); +} + +void PushStyleColor(ImPlotCol idx, const ImVec4& col) { + ImPlotContext& gp = *GImPlot; + ImGuiColorMod backup; + backup.Col = (ImGuiCol)idx; + backup.BackupValue = gp.Style.Colors[idx]; + gp.ColorModifiers.push_back(backup); + gp.Style.Colors[idx] = col; +} + +void PopStyleColor(int count) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(count <= gp.ColorModifiers.Size, "You can't pop more modifiers than have been pushed!"); + while (count > 0) + { + ImGuiColorMod& backup = gp.ColorModifiers.back(); + gp.Style.Colors[backup.Col] = backup.BackupValue; + gp.ColorModifiers.pop_back(); + count--; + } +} + +void PushStyleVar(ImPlotStyleVar idx, float val) { + ImPlotContext& gp = *GImPlot; + const ImPlotStyleVarInfo* var_info = GetPlotStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) { + float* pvar = (float*)var_info->GetVarPtr(&gp.Style); + gp.StyleModifiers.push_back(ImGuiStyleMod((ImGuiStyleVar)idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() float variant but variable is not a float!"); +} + +void PushStyleVar(ImPlotStyleVar idx, int val) { + ImPlotContext& gp = *GImPlot; + const ImPlotStyleVarInfo* var_info = GetPlotStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_S32 && var_info->Count == 1) { + int* pvar = (int*)var_info->GetVarPtr(&gp.Style); + gp.StyleModifiers.push_back(ImGuiStyleMod((ImGuiStyleVar)idx, *pvar)); + *pvar = val; + return; + } + else if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) { + float* pvar = (float*)var_info->GetVarPtr(&gp.Style); + gp.StyleModifiers.push_back(ImGuiStyleMod((ImGuiStyleVar)idx, *pvar)); + *pvar = (float)val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() int variant but variable is not a int!"); +} + +void PushStyleVar(ImPlotStyleVar idx, const ImVec2& val) +{ + ImPlotContext& gp = *GImPlot; + const ImPlotStyleVarInfo* var_info = GetPlotStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2) + { + ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&gp.Style); + gp.StyleModifiers.push_back(ImGuiStyleMod((ImGuiStyleVar)idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() ImVec2 variant but variable is not a ImVec2!"); +} + +void PopStyleVar(int count) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(count <= gp.StyleModifiers.Size, "You can't pop more modifiers than have been pushed!"); + while (count > 0) { + ImGuiStyleMod& backup = gp.StyleModifiers.back(); + const ImPlotStyleVarInfo* info = GetPlotStyleVarInfo(backup.VarIdx); + void* data = info->GetVarPtr(&gp.Style); + if (info->Type == ImGuiDataType_Float && info->Count == 1) { + ((float*)data)[0] = backup.BackupFloat[0]; + } + else if (info->Type == ImGuiDataType_Float && info->Count == 2) { + ((float*)data)[0] = backup.BackupFloat[0]; + ((float*)data)[1] = backup.BackupFloat[1]; + } + else if (info->Type == ImGuiDataType_S32 && info->Count == 1) { + ((int*)data)[0] = backup.BackupInt[0]; + } + gp.StyleModifiers.pop_back(); + count--; + } +} + +//------------------------------------------------------------------------------ +// [Section] Colormaps +//------------------------------------------------------------------------------ + +ImPlotColormap AddColormap(const char* name, const ImVec4* colormap, int size, bool qual) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(size > 1, "The colormap size must be greater than 1!"); + IM_ASSERT_USER_ERROR(gp.ColormapData.GetIndex(name) == -1, "The colormap name has already been used!"); + ImVector buffer; + buffer.resize(size); + for (int i = 0; i < size; ++i) + buffer[i] = ImGui::ColorConvertFloat4ToU32(colormap[i]); + return gp.ColormapData.Append(name, buffer.Data, size, qual); +} + +ImPlotColormap AddColormap(const char* name, const ImU32* colormap, int size, bool qual) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(size > 1, "The colormap size must be greater than 1!"); + IM_ASSERT_USER_ERROR(gp.ColormapData.GetIndex(name) == -1, "The colormap name has already be used!"); + return gp.ColormapData.Append(name, colormap, size, qual); +} + +int GetColormapCount() { + ImPlotContext& gp = *GImPlot; + return gp.ColormapData.Count; +} + +const char* GetColormapName(ImPlotColormap colormap) { + ImPlotContext& gp = *GImPlot; + return gp.ColormapData.GetName(colormap); +} + +ImPlotColormap GetColormapIndex(const char* name) { + ImPlotContext& gp = *GImPlot; + return gp.ColormapData.GetIndex(name); +} + +void PushColormap(ImPlotColormap colormap) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(colormap >= 0 && colormap < gp.ColormapData.Count, "The colormap index is invalid!"); + gp.ColormapModifiers.push_back(gp.Style.Colormap); + gp.Style.Colormap = colormap; +} + +void PushColormap(const char* name) { + ImPlotContext& gp = *GImPlot; + ImPlotColormap idx = gp.ColormapData.GetIndex(name); + IM_ASSERT_USER_ERROR(idx != -1, "The colormap name is invalid!"); + PushColormap(idx); +} + +void PopColormap(int count) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(count <= gp.ColormapModifiers.Size, "You can't pop more modifiers than have been pushed!"); + while (count > 0) { + const ImPlotColormap& backup = gp.ColormapModifiers.back(); + gp.Style.Colormap = backup; + gp.ColormapModifiers.pop_back(); + count--; + } +} + +ImU32 NextColormapColorU32() { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentItems != nullptr, "NextColormapColor() needs to be called between BeginPlot() and EndPlot()!"); + int idx = gp.CurrentItems->ColormapIdx % gp.ColormapData.GetKeyCount(gp.Style.Colormap); + ImU32 col = gp.ColormapData.GetKeyColor(gp.Style.Colormap, idx); + gp.CurrentItems->ColormapIdx++; + return col; +} + +ImVec4 NextColormapColor() { + return ImGui::ColorConvertU32ToFloat4(NextColormapColorU32()); +} + +int GetColormapSize(ImPlotColormap cmap) { + ImPlotContext& gp = *GImPlot; + cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap; + IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); + return gp.ColormapData.GetKeyCount(cmap); +} + +ImU32 GetColormapColorU32(int idx, ImPlotColormap cmap) { + ImPlotContext& gp = *GImPlot; + cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap; + IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); + idx = idx % gp.ColormapData.GetKeyCount(cmap); + return gp.ColormapData.GetKeyColor(cmap, idx); +} + +ImVec4 GetColormapColor(int idx, ImPlotColormap cmap) { + return ImGui::ColorConvertU32ToFloat4(GetColormapColorU32(idx,cmap)); +} + +ImU32 SampleColormapU32(float t, ImPlotColormap cmap) { + ImPlotContext& gp = *GImPlot; + cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap; + IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); + return gp.ColormapData.LerpTable(cmap, t); +} + +ImVec4 SampleColormap(float t, ImPlotColormap cmap) { + return ImGui::ColorConvertU32ToFloat4(SampleColormapU32(t,cmap)); +} + +void RenderColorBar(const ImU32* colors, int size, ImDrawList& DrawList, const ImRect& bounds, bool vert, bool reversed, bool continuous) { + const int n = continuous ? size - 1 : size; + ImU32 col1, col2; + if (vert) { + const float step = bounds.GetHeight() / n; + ImRect rect(bounds.Min.x, bounds.Min.y, bounds.Max.x, bounds.Min.y + step); + for (int i = 0; i < n; ++i) { + if (reversed) { + col1 = colors[size-i-1]; + col2 = continuous ? colors[size-i-2] : col1; + } + else { + col1 = colors[i]; + col2 = continuous ? colors[i+1] : col1; + } + DrawList.AddRectFilledMultiColor(rect.Min, rect.Max, col1, col1, col2, col2); + rect.TranslateY(step); + } + } + else { + const float step = bounds.GetWidth() / n; + ImRect rect(bounds.Min.x, bounds.Min.y, bounds.Min.x + step, bounds.Max.y); + for (int i = 0; i < n; ++i) { + if (reversed) { + col1 = colors[size-i-1]; + col2 = continuous ? colors[size-i-2] : col1; + } + else { + col1 = colors[i]; + col2 = continuous ? colors[i+1] : col1; + } + DrawList.AddRectFilledMultiColor(rect.Min, rect.Max, col1, col2, col2, col1); + rect.TranslateX(step); + } + } +} + +void ColormapScale(const char* label, double scale_min, double scale_max, const ImVec2& size, const char* format, ImPlotColormapScaleFlags flags, ImPlotColormap cmap) { + ImGuiContext &G = *GImGui; + ImGuiWindow * Window = G.CurrentWindow; + if (Window->SkipItems) + return; + + const ImGuiID ID = Window->GetID(label); + ImVec2 label_size(0,0); + if (!ImHasFlag(flags, ImPlotColormapScaleFlags_NoLabel)) { + label_size = ImGui::CalcTextSize(label,nullptr,true); + } + + ImPlotContext& gp = *GImPlot; + cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap; + IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); + + ImVec2 frame_size = ImGui::CalcItemSize(size, 0, gp.Style.PlotDefaultSize.y); + if (frame_size.y < gp.Style.PlotMinSize.y && size.y < 0.0f) + frame_size.y = gp.Style.PlotMinSize.y; + + ImPlotRange range(ImMin(scale_min,scale_max), ImMax(scale_min,scale_max)); + gp.CTicker.Reset(); + Locator_Default(gp.CTicker, range, frame_size.y, true, Formatter_Default, (void*)format); + + const bool rend_label = label_size.x > 0; + const float txt_off = gp.Style.LabelPadding.x; + const float pad = txt_off + gp.CTicker.MaxSize.x + (rend_label ? txt_off + label_size.y : 0); + float bar_w = 20; + if (frame_size.x == 0) + frame_size.x = bar_w + pad + 2 * gp.Style.PlotPadding.x; + else { + bar_w = frame_size.x - (pad + 2 * gp.Style.PlotPadding.x); + if (bar_w < gp.Style.MajorTickLen.y) + bar_w = gp.Style.MajorTickLen.y; + } + + ImDrawList &DrawList = *Window->DrawList; + ImRect bb_frame = ImRect(Window->DC.CursorPos, Window->DC.CursorPos + frame_size); + ImGui::ItemSize(bb_frame); + if (!ImGui::ItemAdd(bb_frame, ID, &bb_frame)) + return; + + ImGui::RenderFrame(bb_frame.Min, bb_frame.Max, GetStyleColorU32(ImPlotCol_FrameBg), true, G.Style.FrameRounding); + + const bool opposite = ImHasFlag(flags, ImPlotColormapScaleFlags_Opposite); + const bool inverted = ImHasFlag(flags, ImPlotColormapScaleFlags_Invert); + const bool reversed = scale_min > scale_max; + + float bb_grad_shift = opposite ? pad : 0; + ImRect bb_grad(bb_frame.Min + gp.Style.PlotPadding + ImVec2(bb_grad_shift, 0), + bb_frame.Min + ImVec2(bar_w + gp.Style.PlotPadding.x + bb_grad_shift, + frame_size.y - gp.Style.PlotPadding.y)); + + ImGui::PushClipRect(bb_frame.Min, bb_frame.Max, true); + const ImU32 col_text = ImGui::GetColorU32(ImGuiCol_Text); + + const bool invert_scale = inverted ? (reversed ? false : true) : (reversed ? true : false); + const float y_min = invert_scale ? bb_grad.Max.y : bb_grad.Min.y; + const float y_max = invert_scale ? bb_grad.Min.y : bb_grad.Max.y; + + RenderColorBar(gp.ColormapData.GetKeys(cmap), gp.ColormapData.GetKeyCount(cmap), DrawList, bb_grad, true, !inverted, !gp.ColormapData.IsQual(cmap)); + for (int i = 0; i < gp.CTicker.TickCount(); ++i) { + const double y_pos_plt = gp.CTicker.Ticks[i].PlotPos; + const float y_pos = ImRemap((float)y_pos_plt, (float)range.Max, (float)range.Min, y_min, y_max); + const float tick_width = gp.CTicker.Ticks[i].Major ? gp.Style.MajorTickLen.y : gp.Style.MinorTickLen.y; + const float tick_thick = gp.CTicker.Ticks[i].Major ? gp.Style.MajorTickSize.y : gp.Style.MinorTickSize.y; + const float tick_t = (float)((y_pos_plt - scale_min) / (scale_max - scale_min)); + const ImU32 tick_col = CalcTextColor(gp.ColormapData.LerpTable(cmap,tick_t)); + if (y_pos < bb_grad.Max.y - 2 && y_pos > bb_grad.Min.y + 2) { + DrawList.AddLine(opposite ? ImVec2(bb_grad.Min.x+1, y_pos) : ImVec2(bb_grad.Max.x-1, y_pos), + opposite ? ImVec2(bb_grad.Min.x + tick_width, y_pos) : ImVec2(bb_grad.Max.x - tick_width, y_pos), + tick_col, + tick_thick); + } + const float txt_x = opposite ? bb_grad.Min.x - txt_off - gp.CTicker.Ticks[i].LabelSize.x : bb_grad.Max.x + txt_off; + const float txt_y = y_pos - gp.CTicker.Ticks[i].LabelSize.y * 0.5f; + DrawList.AddText(ImVec2(txt_x, txt_y), col_text, gp.CTicker.GetText(i)); + } + + if (rend_label) { + const float pos_x = opposite ? bb_frame.Min.x + gp.Style.PlotPadding.x : bb_grad.Max.x + 2 * txt_off + gp.CTicker.MaxSize.x; + const float pos_y = bb_grad.GetCenter().y + label_size.x * 0.5f; + const char* label_end = ImGui::FindRenderedTextEnd(label); + AddTextVertical(&DrawList,ImVec2(pos_x,pos_y),col_text,label,label_end); + } + DrawList.AddRect(bb_grad.Min, bb_grad.Max, GetStyleColorU32(ImPlotCol_PlotBorder)); + ImGui::PopClipRect(); +} + +bool ColormapSlider(const char* label, float* t, ImVec4* out, const char* format, ImPlotColormap cmap) { + *t = ImClamp(*t,0.0f,1.0f); + ImGuiContext &G = *GImGui; + ImGuiWindow * Window = G.CurrentWindow; + if (Window->SkipItems) + return false; + ImPlotContext& gp = *GImPlot; + cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap; + IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); + const ImU32* keys = gp.ColormapData.GetKeys(cmap); + const int count = gp.ColormapData.GetKeyCount(cmap); + const bool qual = gp.ColormapData.IsQual(cmap); + const ImVec2 pos = ImGui::GetCurrentWindow()->DC.CursorPos; + const float w = ImGui::CalcItemWidth(); + const float h = ImGui::GetFrameHeight(); + const ImRect rect = ImRect(pos.x,pos.y,pos.x+w,pos.y+h); + RenderColorBar(keys,count,*ImGui::GetWindowDrawList(),rect,false,false,!qual); + const ImU32 grab = CalcTextColor(gp.ColormapData.LerpTable(cmap,*t)); + // const ImU32 text = CalcTextColor(gp.ColormapData.LerpTable(cmap,0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBg,IM_COL32_BLACK_TRANS); + ImGui::PushStyleColor(ImGuiCol_FrameBgActive,IM_COL32_BLACK_TRANS); + ImGui::PushStyleColor(ImGuiCol_FrameBgHovered,ImVec4(1,1,1,0.1f)); + ImGui::PushStyleColor(ImGuiCol_SliderGrab,grab); + ImGui::PushStyleColor(ImGuiCol_SliderGrabActive, grab); + ImGui::PushStyleVar(ImGuiStyleVar_GrabMinSize,2); + ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding,0); + const bool changed = ImGui::SliderFloat(label,t,0,1,format); + ImGui::PopStyleColor(5); + ImGui::PopStyleVar(2); + if (out != nullptr) + *out = ImGui::ColorConvertU32ToFloat4(gp.ColormapData.LerpTable(cmap,*t)); + return changed; +} + +bool ColormapButton(const char* label, const ImVec2& size_arg, ImPlotColormap cmap) { + ImGuiContext &G = *GImGui; + const ImGuiStyle& style = G.Style; + ImGuiWindow * Window = G.CurrentWindow; + if (Window->SkipItems) + return false; + ImPlotContext& gp = *GImPlot; + cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap; + IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); + const ImU32* keys = gp.ColormapData.GetKeys(cmap); + const int count = gp.ColormapData.GetKeyCount(cmap); + const bool qual = gp.ColormapData.IsQual(cmap); + const ImVec2 pos = ImGui::GetCurrentWindow()->DC.CursorPos; + const ImVec2 label_size = ImGui::CalcTextSize(label, nullptr, true); + ImVec2 size = ImGui::CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f); + const ImRect rect = ImRect(pos.x,pos.y,pos.x+size.x,pos.y+size.y); + RenderColorBar(keys,count,*ImGui::GetWindowDrawList(),rect,false,false,!qual); + const ImU32 text = CalcTextColor(gp.ColormapData.LerpTable(cmap,G.Style.ButtonTextAlign.x)); + ImGui::PushStyleColor(ImGuiCol_Button,IM_COL32_BLACK_TRANS); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered,ImVec4(1,1,1,0.1f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive,ImVec4(1,1,1,0.2f)); + ImGui::PushStyleColor(ImGuiCol_Text,text); + ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding,0); + const bool pressed = ImGui::Button(label,size); + ImGui::PopStyleColor(4); + ImGui::PopStyleVar(1); + return pressed; +} + +//----------------------------------------------------------------------------- +// [Section] Miscellaneous +//----------------------------------------------------------------------------- + +ImPlotInputMap& GetInputMap() { + IM_ASSERT_USER_ERROR(GImPlot != nullptr, "No current context. Did you call ImPlot::CreateContext() or ImPlot::SetCurrentContext()?"); + ImPlotContext& gp = *GImPlot; + return gp.InputMap; +} + +void MapInputDefault(ImPlotInputMap* dst) { + ImPlotInputMap& map = dst ? *dst : GetInputMap(); + map.Pan = ImGuiMouseButton_Left; + map.PanMod = ImGuiMod_None; + map.Fit = ImGuiMouseButton_Left; + map.Menu = ImGuiMouseButton_Right; + map.Select = ImGuiMouseButton_Right; + map.SelectMod = ImGuiMod_None; + map.SelectCancel = ImGuiMouseButton_Left; + map.SelectHorzMod = ImGuiMod_Alt; + map.SelectVertMod = ImGuiMod_Shift; + map.OverrideMod = ImGuiMod_Ctrl; + map.ZoomMod = ImGuiMod_None; + map.ZoomRate = 0.1f; +} + +void MapInputReverse(ImPlotInputMap* dst) { + ImPlotInputMap& map = dst ? *dst : GetInputMap(); + map.Pan = ImGuiMouseButton_Right; + map.PanMod = ImGuiMod_None; + map.Fit = ImGuiMouseButton_Left; + map.Menu = ImGuiMouseButton_Right; + map.Select = ImGuiMouseButton_Left; + map.SelectMod = ImGuiMod_None; + map.SelectCancel = ImGuiMouseButton_Right; + map.SelectHorzMod = ImGuiMod_Alt; + map.SelectVertMod = ImGuiMod_Shift; + map.OverrideMod = ImGuiMod_Ctrl; + map.ZoomMod = ImGuiMod_None; + map.ZoomRate = 0.1f; +} + +//----------------------------------------------------------------------------- +// [Section] Miscellaneous +//----------------------------------------------------------------------------- + +void ItemIcon(const ImVec4& col) { + ItemIcon(ImGui::ColorConvertFloat4ToU32(col)); +} + +void ItemIcon(ImU32 col) { + const float txt_size = ImGui::GetTextLineHeight(); + ImVec2 size(txt_size-4,txt_size); + ImGuiWindow* window = ImGui::GetCurrentWindow(); + ImVec2 pos = window->DC.CursorPos; + ImGui::GetWindowDrawList()->AddRectFilled(pos + ImVec2(0,2), pos + size - ImVec2(0,2), col); + ImGui::Dummy(size); +} + +void ColormapIcon(ImPlotColormap cmap) { + ImPlotContext& gp = *GImPlot; + const float txt_size = ImGui::GetTextLineHeight(); + ImVec2 size(txt_size-4,txt_size); + ImGuiWindow* window = ImGui::GetCurrentWindow(); + ImVec2 pos = window->DC.CursorPos; + ImRect rect(pos+ImVec2(0,2),pos+size-ImVec2(0,2)); + ImDrawList& DrawList = *ImGui::GetWindowDrawList(); + RenderColorBar(gp.ColormapData.GetKeys(cmap),gp.ColormapData.GetKeyCount(cmap),DrawList,rect,false,false,!gp.ColormapData.IsQual(cmap)); + ImGui::Dummy(size); +} + +ImDrawList* GetPlotDrawList() { + return ImGui::GetWindowDrawList(); +} + +void PushPlotClipRect(float expand) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PushPlotClipRect() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + ImRect rect = gp.CurrentPlot->PlotRect; + rect.Expand(expand); + ImGui::PushClipRect(rect.Min, rect.Max, true); +} + +void PopPlotClipRect() { + SetupLock(); + ImGui::PopClipRect(); +} + +static void HelpMarker(const char* desc) { + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered()) { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +bool ShowStyleSelector(const char* label) +{ + static int style_idx = -1; + if (ImGui::Combo(label, &style_idx, "Auto\0Classic\0Dark\0Light\0")) + { + switch (style_idx) + { + case 0: StyleColorsAuto(); break; + case 1: StyleColorsClassic(); break; + case 2: StyleColorsDark(); break; + case 3: StyleColorsLight(); break; + } + return true; + } + return false; +} + +bool ShowColormapSelector(const char* label) { + ImPlotContext& gp = *GImPlot; + bool set = false; + if (ImGui::BeginCombo(label, gp.ColormapData.GetName(gp.Style.Colormap))) { + for (int i = 0; i < gp.ColormapData.Count; ++i) { + const char* name = gp.ColormapData.GetName(i); + if (ImGui::Selectable(name, gp.Style.Colormap == i)) { + gp.Style.Colormap = i; + ImPlot::BustItemCache(); + set = true; + } + } + ImGui::EndCombo(); + } + return set; +} + +bool ShowInputMapSelector(const char* label) { + static int map_idx = -1; + if (ImGui::Combo(label, &map_idx, "Default\0Reversed\0")) + { + switch (map_idx) + { + case 0: MapInputDefault(); break; + case 1: MapInputReverse(); break; + } + return true; + } + return false; +} + + +void ShowStyleEditor(ImPlotStyle* ref) { + ImPlotContext& gp = *GImPlot; + ImPlotStyle& style = GetStyle(); + static ImPlotStyle ref_saved_style; + // Default to using internal storage as reference + static bool init = true; + if (init && ref == nullptr) + ref_saved_style = style; + init = false; + if (ref == nullptr) + ref = &ref_saved_style; + + if (ImPlot::ShowStyleSelector("Colors##Selector")) + ref_saved_style = style; + + // Save/Revert button + if (ImGui::Button("Save Ref")) + *ref = ref_saved_style = style; + ImGui::SameLine(); + if (ImGui::Button("Revert Ref")) + style = *ref; + ImGui::SameLine(); + HelpMarker("Save/Revert in local non-persistent storage. Default Colors definition are not affected. " + "Use \"Export\" below to save them somewhere."); + if (ImGui::BeginTabBar("##StyleEditor")) { + if (ImGui::BeginTabItem("Variables")) { + ImGui::Text("Item Styling"); + ImGui::SliderFloat("LineWeight", &style.LineWeight, 0.0f, 5.0f, "%.1f"); + ImGui::SliderFloat("MarkerSize", &style.MarkerSize, 2.0f, 10.0f, "%.1f"); + ImGui::SliderFloat("MarkerWeight", &style.MarkerWeight, 0.0f, 5.0f, "%.1f"); + ImGui::SliderFloat("FillAlpha", &style.FillAlpha, 0.0f, 1.0f, "%.2f"); + ImGui::SliderFloat("ErrorBarSize", &style.ErrorBarSize, 0.0f, 10.0f, "%.1f"); + ImGui::SliderFloat("ErrorBarWeight", &style.ErrorBarWeight, 0.0f, 5.0f, "%.1f"); + ImGui::SliderFloat("DigitalBitHeight", &style.DigitalBitHeight, 0.0f, 20.0f, "%.1f"); + ImGui::SliderFloat("DigitalBitGap", &style.DigitalBitGap, 0.0f, 20.0f, "%.1f"); + ImGui::Text("Plot Styling"); + ImGui::SliderFloat("PlotBorderSize", &style.PlotBorderSize, 0.0f, 2.0f, "%.0f"); + ImGui::SliderFloat("MinorAlpha", &style.MinorAlpha, 0.0f, 1.0f, "%.2f"); + ImGui::SliderFloat2("MajorTickLen", (float*)&style.MajorTickLen, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("MinorTickLen", (float*)&style.MinorTickLen, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("MajorTickSize", (float*)&style.MajorTickSize, 0.0f, 2.0f, "%.1f"); + ImGui::SliderFloat2("MinorTickSize", (float*)&style.MinorTickSize, 0.0f, 2.0f, "%.1f"); + ImGui::SliderFloat2("MajorGridSize", (float*)&style.MajorGridSize, 0.0f, 2.0f, "%.1f"); + ImGui::SliderFloat2("MinorGridSize", (float*)&style.MinorGridSize, 0.0f, 2.0f, "%.1f"); + ImGui::SliderFloat2("PlotDefaultSize", (float*)&style.PlotDefaultSize, 0.0f, 1000, "%.0f"); + ImGui::SliderFloat2("PlotMinSize", (float*)&style.PlotMinSize, 0.0f, 300, "%.0f"); + ImGui::Text("Plot Padding"); + ImGui::SliderFloat2("PlotPadding", (float*)&style.PlotPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("LabelPadding", (float*)&style.LabelPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("LegendPadding", (float*)&style.LegendPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("LegendInnerPadding", (float*)&style.LegendInnerPadding, 0.0f, 10.0f, "%.0f"); + ImGui::SliderFloat2("LegendSpacing", (float*)&style.LegendSpacing, 0.0f, 5.0f, "%.0f"); + ImGui::SliderFloat2("MousePosPadding", (float*)&style.MousePosPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("AnnotationPadding", (float*)&style.AnnotationPadding, 0.0f, 5.0f, "%.0f"); + ImGui::SliderFloat2("FitPadding", (float*)&style.FitPadding, 0, 0.2f, "%.2f"); + + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Colors")) { + static int output_dest = 0; + static bool output_only_modified = false; + + if (ImGui::Button("Export", ImVec2(75,0))) { + if (output_dest == 0) + ImGui::LogToClipboard(); + else + ImGui::LogToTTY(); + ImGui::LogText("ImVec4* colors = ImPlot::GetStyle().Colors;\n"); + for (int i = 0; i < ImPlotCol_COUNT; i++) { + const ImVec4& col = style.Colors[i]; + const char* name = ImPlot::GetStyleColorName(i); + if (!output_only_modified || memcmp(&col, &ref->Colors[i], sizeof(ImVec4)) != 0) { + if (IsColorAuto(i)) + ImGui::LogText("colors[ImPlotCol_%s]%*s= IMPLOT_AUTO_COL;\n",name,14 - (int)strlen(name), ""); + else + ImGui::LogText("colors[ImPlotCol_%s]%*s= ImVec4(%.2ff, %.2ff, %.2ff, %.2ff);\n", + name, 14 - (int)strlen(name), "", col.x, col.y, col.z, col.w); + } + } + ImGui::LogFinish(); + } + ImGui::SameLine(); ImGui::SetNextItemWidth(120); ImGui::Combo("##output_type", &output_dest, "To Clipboard\0To TTY\0"); + ImGui::SameLine(); ImGui::Checkbox("Only Modified Colors", &output_only_modified); + + static ImGuiTextFilter filter; + filter.Draw("Filter colors", ImGui::GetFontSize() * 16); + + static ImGuiColorEditFlags alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; + if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); + if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_AlphaPreview)) { alpha_flags = ImGuiColorEditFlags_AlphaPreview; } ImGui::SameLine(); + if (ImGui::RadioButton("Both", alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf)) { alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; } ImGui::SameLine(); + HelpMarker( + "In the color list:\n" + "Left-click on colored square to open color picker,\n" + "Right-click to open edit options menu."); + ImGui::Separator(); + ImGui::PushItemWidth(-160); + for (int i = 0; i < ImPlotCol_COUNT; i++) { + const char* name = ImPlot::GetStyleColorName(i); + if (!filter.PassFilter(name)) + continue; + ImGui::PushID(i); + ImVec4 temp = GetStyleColorVec4(i); + const bool is_auto = IsColorAuto(i); + if (!is_auto) + ImGui::PushStyleVar(ImGuiStyleVar_Alpha, 0.25f); + if (ImGui::Button("Auto")) { + if (is_auto) + style.Colors[i] = temp; + else + style.Colors[i] = IMPLOT_AUTO_COL; + BustItemCache(); + } + if (!is_auto) + ImGui::PopStyleVar(); + ImGui::SameLine(); + if (ImGui::ColorEdit4(name, &temp.x, ImGuiColorEditFlags_NoInputs | alpha_flags)) { + style.Colors[i] = temp; + BustItemCache(); + } + if (memcmp(&style.Colors[i], &ref->Colors[i], sizeof(ImVec4)) != 0) { + ImGui::SameLine(175); if (ImGui::Button("Save")) { ref->Colors[i] = style.Colors[i]; } + ImGui::SameLine(); if (ImGui::Button("Revert")) { + style.Colors[i] = ref->Colors[i]; + BustItemCache(); + } + } + ImGui::PopID(); + } + ImGui::PopItemWidth(); + ImGui::Separator(); + ImGui::Text("Colors that are set to Auto (i.e. IMPLOT_AUTO_COL) will\n" + "be automatically deduced from your ImGui style or the\n" + "current ImPlot Colormap. If you want to style individual\n" + "plot items, use Push/PopStyleColor around its function."); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Colormaps")) { + static int output_dest = 0; + if (ImGui::Button("Export", ImVec2(75,0))) { + if (output_dest == 0) + ImGui::LogToClipboard(); + else + ImGui::LogToTTY(); + int size = GetColormapSize(); + const char* name = GetColormapName(gp.Style.Colormap); + ImGui::LogText("static const ImU32 %s_Data[%d] = {\n", name, size); + for (int i = 0; i < size; ++i) { + ImU32 col = GetColormapColorU32(i,gp.Style.Colormap); + ImGui::LogText(" %u%s\n", col, i == size - 1 ? "" : ","); + } + ImGui::LogText("};\nImPlotColormap %s = ImPlot::AddColormap(\"%s\", %s_Data, %d);", name, name, name, size); + ImGui::LogFinish(); + } + ImGui::SameLine(); ImGui::SetNextItemWidth(120); ImGui::Combo("##output_type", &output_dest, "To Clipboard\0To TTY\0"); + ImGui::SameLine(); + static bool edit = false; + ImGui::Checkbox("Edit Mode",&edit); + + // built-in/added + ImGui::Separator(); + for (int i = 0; i < gp.ColormapData.Count; ++i) { + ImGui::PushID(i); + int size = gp.ColormapData.GetKeyCount(i); + bool selected = i == gp.Style.Colormap; + + const char* name = GetColormapName(i); + if (!selected) + ImGui::PushStyleVar(ImGuiStyleVar_Alpha, 0.25f); + if (ImGui::Button(name, ImVec2(100,0))) { + gp.Style.Colormap = i; + BustItemCache(); + } + if (!selected) + ImGui::PopStyleVar(); + ImGui::SameLine(); + ImGui::BeginGroup(); + if (edit) { + for (int c = 0; c < size; ++c) { + ImGui::PushID(c); + ImVec4 col4 = ImGui::ColorConvertU32ToFloat4(gp.ColormapData.GetKeyColor(i,c)); + if (ImGui::ColorEdit4("",&col4.x,ImGuiColorEditFlags_NoInputs)) { + ImU32 col32 = ImGui::ColorConvertFloat4ToU32(col4); + gp.ColormapData.SetKeyColor(i,c,col32); + BustItemCache(); + } + if ((c + 1) % 12 != 0 && c != size -1) + ImGui::SameLine(); + ImGui::PopID(); + } + } + else { + if (ImPlot::ColormapButton("##",ImVec2(-1,0),i)) + edit = true; + } + ImGui::EndGroup(); + ImGui::PopID(); + } + + + static ImVector custom; + if (custom.Size == 0) { + custom.push_back(ImVec4(1,0,0,1)); + custom.push_back(ImVec4(0,1,0,1)); + custom.push_back(ImVec4(0,0,1,1)); + } + ImGui::Separator(); + ImGui::BeginGroup(); + static char name[16] = "MyColormap"; + + + if (ImGui::Button("+", ImVec2((100 - ImGui::GetStyle().ItemSpacing.x)/2,0))) + custom.push_back(ImVec4(0,0,0,1)); + ImGui::SameLine(); + if (ImGui::Button("-", ImVec2((100 - ImGui::GetStyle().ItemSpacing.x)/2,0)) && custom.Size > 2) + custom.pop_back(); + ImGui::SetNextItemWidth(100); + ImGui::InputText("##Name",name,16,ImGuiInputTextFlags_CharsNoBlank); + static bool qual = true; + ImGui::Checkbox("Qualitative",&qual); + if (ImGui::Button("Add", ImVec2(100, 0)) && gp.ColormapData.GetIndex(name)==-1) + AddColormap(name,custom.Data,custom.Size,qual); + + ImGui::EndGroup(); + ImGui::SameLine(); + ImGui::BeginGroup(); + for (int c = 0; c < custom.Size; ++c) { + ImGui::PushID(c); + if (ImGui::ColorEdit4("##Col1", &custom[c].x, ImGuiColorEditFlags_NoInputs)) { + + } + if ((c + 1) % 12 != 0) + ImGui::SameLine(); + ImGui::PopID(); + } + ImGui::EndGroup(); + + + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } +} + +void ShowUserGuide() { + ImGui::BulletText("Left-click drag within the plot area to pan X and Y axes."); + ImGui::Indent(); + ImGui::BulletText("Left-click drag on axis labels to pan an individual axis."); + ImGui::Unindent(); + ImGui::BulletText("Scroll in the plot area to zoom both X any Y axes."); + ImGui::Indent(); + ImGui::BulletText("Scroll on axis labels to zoom an individual axis."); + ImGui::Unindent(); + ImGui::BulletText("Right-click drag to box select data."); + ImGui::Indent(); + ImGui::BulletText("Hold Alt to expand box selection horizontally."); + ImGui::BulletText("Hold Shift to expand box selection vertically."); + ImGui::BulletText("Left-click while box selecting to cancel the selection."); + ImGui::Unindent(); + ImGui::BulletText("Double left-click to fit all visible data."); + ImGui::Indent(); + ImGui::BulletText("Double left-click axis labels to fit the individual axis."); + ImGui::Unindent(); + ImGui::BulletText("Right-click open the full plot context menu."); + ImGui::Indent(); + ImGui::BulletText("Right-click axis labels to open an individual axis context menu."); + ImGui::Unindent(); + ImGui::BulletText("Click legend label icons to show/hide plot items."); +} + +void ShowTicksMetrics(const ImPlotTicker& ticker) { + ImGui::BulletText("Size: %d", ticker.TickCount()); + ImGui::BulletText("MaxSize: [%f,%f]", ticker.MaxSize.x, ticker.MaxSize.y); +} + +void ShowAxisMetrics(const ImPlotPlot& plot, const ImPlotAxis& axis) { + ImGui::BulletText("Label: %s", axis.LabelOffset == -1 ? "[none]" : plot.GetAxisLabel(axis)); + ImGui::BulletText("Flags: 0x%08X", axis.Flags); + ImGui::BulletText("Range: [%f,%f]",axis.Range.Min, axis.Range.Max); + ImGui::BulletText("Pixels: %f", axis.PixelSize()); + ImGui::BulletText("Aspect: %f", axis.GetAspect()); + ImGui::BulletText(axis.OrthoAxis == nullptr ? "OrtherAxis: NULL" : "OrthoAxis: 0x%08X", axis.OrthoAxis->ID); + ImGui::BulletText("LinkedMin: %p", (void*)axis.LinkedMin); + ImGui::BulletText("LinkedMax: %p", (void*)axis.LinkedMax); + ImGui::BulletText("HasRange: %s", axis.HasRange ? "true" : "false"); + ImGui::BulletText("Hovered: %s", axis.Hovered ? "true" : "false"); + ImGui::BulletText("Held: %s", axis.Held ? "true" : "false"); + + if (ImGui::TreeNode("Transform")) { + ImGui::BulletText("PixelMin: %f", axis.PixelMin); + ImGui::BulletText("PixelMax: %f", axis.PixelMax); + ImGui::BulletText("ScaleToPixel: %f", axis.ScaleToPixel); + ImGui::BulletText("ScaleMax: %f", axis.ScaleMax); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Ticks")) { + ShowTicksMetrics(axis.Ticker); + ImGui::TreePop(); + } +} + +void ShowMetricsWindow(bool* p_popen) { + + static bool show_plot_rects = false; + static bool show_axes_rects = false; + static bool show_axis_rects = false; + static bool show_canvas_rects = false; + static bool show_frame_rects = false; + static bool show_subplot_frame_rects = false; + static bool show_subplot_grid_rects = false; + + ImDrawList& fg = *ImGui::GetForegroundDrawList(); + + ImPlotContext& gp = *GImPlot; + // ImGuiContext& g = *GImGui; + ImGuiIO& io = ImGui::GetIO(); + ImGui::Begin("ImPlot Metrics", p_popen); + ImGui::Text("ImPlot " IMPLOT_VERSION); + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::Text("Mouse Position: [%.0f,%.0f]", io.MousePos.x, io.MousePos.y); + ImGui::Separator(); + if (ImGui::TreeNode("Tools")) { + if (ImGui::Button("Bust Plot Cache")) + BustPlotCache(); + ImGui::SameLine(); + if (ImGui::Button("Bust Item Cache")) + BustItemCache(); + ImGui::Checkbox("Show Frame Rects", &show_frame_rects); + ImGui::Checkbox("Show Canvas Rects",&show_canvas_rects); + ImGui::Checkbox("Show Plot Rects", &show_plot_rects); + ImGui::Checkbox("Show Axes Rects", &show_axes_rects); + ImGui::Checkbox("Show Axis Rects", &show_axis_rects); + ImGui::Checkbox("Show Subplot Frame Rects", &show_subplot_frame_rects); + ImGui::Checkbox("Show Subplot Grid Rects", &show_subplot_grid_rects); + ImGui::TreePop(); + } + const int n_plots = gp.Plots.GetBufSize(); + const int n_subplots = gp.Subplots.GetBufSize(); + // render rects + for (int p = 0; p < n_plots; ++p) { + ImPlotPlot* plot = gp.Plots.GetByIndex(p); + if (show_frame_rects) + fg.AddRect(plot->FrameRect.Min, plot->FrameRect.Max, IM_COL32(255,0,255,255)); + if (show_canvas_rects) + fg.AddRect(plot->CanvasRect.Min, plot->CanvasRect.Max, IM_COL32(0,255,255,255)); + if (show_plot_rects) + fg.AddRect(plot->PlotRect.Min, plot->PlotRect.Max, IM_COL32(255,255,0,255)); + if (show_axes_rects) + fg.AddRect(plot->AxesRect.Min, plot->AxesRect.Max, IM_COL32(0,255,128,255)); + if (show_axis_rects) { + for (int i = 0; i < ImAxis_COUNT; ++i) { + if (plot->Axes[i].Enabled) + fg.AddRect(plot->Axes[i].HoverRect.Min, plot->Axes[i].HoverRect.Max, IM_COL32(0,255,0,255)); + } + } + } + for (int p = 0; p < n_subplots; ++p) { + ImPlotSubplot* subplot = gp.Subplots.GetByIndex(p); + if (show_subplot_frame_rects) + fg.AddRect(subplot->FrameRect.Min, subplot->FrameRect.Max, IM_COL32(255,0,0,255)); + if (show_subplot_grid_rects) + fg.AddRect(subplot->GridRect.Min, subplot->GridRect.Max, IM_COL32(0,0,255,255)); + } + if (ImGui::TreeNode("Plots","Plots (%d)", n_plots)) { + for (int p = 0; p < n_plots; ++p) { + // plot + ImPlotPlot& plot = *gp.Plots.GetByIndex(p); + ImGui::PushID(p); + if (ImGui::TreeNode("Plot", "Plot [0x%08X]", plot.ID)) { + int n_items = plot.Items.GetItemCount(); + if (ImGui::TreeNode("Items", "Items (%d)", n_items)) { + for (int i = 0; i < n_items; ++i) { + ImPlotItem* item = plot.Items.GetItemByIndex(i); + ImGui::PushID(i); + if (ImGui::TreeNode("Item", "Item [0x%08X]", item->ID)) { + ImGui::Bullet(); ImGui::Checkbox("Show", &item->Show); + ImGui::Bullet(); + ImVec4 temp = ImGui::ColorConvertU32ToFloat4(item->Color); + if (ImGui::ColorEdit4("Color",&temp.x, ImGuiColorEditFlags_NoInputs)) + item->Color = ImGui::ColorConvertFloat4ToU32(temp); + + ImGui::BulletText("NameOffset: %d",item->NameOffset); + ImGui::BulletText("Name: %s", item->NameOffset != -1 ? plot.Items.Legend.Labels.Buf.Data + item->NameOffset : "N/A"); + ImGui::BulletText("Hovered: %s",item->LegendHovered ? "true" : "false"); + ImGui::TreePop(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + char buff[16]; + for (int i = 0; i < IMPLOT_NUM_X_AXES; ++i) { + ImFormatString(buff,16,"X-Axis %d", i+1); + if (plot.XAxis(i).Enabled && ImGui::TreeNode(buff, "X-Axis %d [0x%08X]", i+1, plot.XAxis(i).ID)) { + ShowAxisMetrics(plot, plot.XAxis(i)); + ImGui::TreePop(); + } + } + for (int i = 0; i < IMPLOT_NUM_Y_AXES; ++i) { + ImFormatString(buff,16,"Y-Axis %d", i+1); + if (plot.YAxis(i).Enabled && ImGui::TreeNode(buff, "Y-Axis %d [0x%08X]", i+1, plot.YAxis(i).ID)) { + ShowAxisMetrics(plot, plot.YAxis(i)); + ImGui::TreePop(); + } + } + ImGui::BulletText("Title: %s", plot.HasTitle() ? plot.GetTitle() : "none"); + ImGui::BulletText("Flags: 0x%08X", plot.Flags); + ImGui::BulletText("Initialized: %s", plot.Initialized ? "true" : "false"); + ImGui::BulletText("Selecting: %s", plot.Selecting ? "true" : "false"); + ImGui::BulletText("Selected: %s", plot.Selected ? "true" : "false"); + ImGui::BulletText("Hovered: %s", plot.Hovered ? "true" : "false"); + ImGui::BulletText("Held: %s", plot.Held ? "true" : "false"); + ImGui::BulletText("LegendHovered: %s", plot.Items.Legend.Hovered ? "true" : "false"); + ImGui::BulletText("ContextLocked: %s", plot.ContextLocked ? "true" : "false"); + ImGui::TreePop(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Subplots","Subplots (%d)", n_subplots)) { + for (int p = 0; p < n_subplots; ++p) { + // plot + ImPlotSubplot& plot = *gp.Subplots.GetByIndex(p); + ImGui::PushID(p); + if (ImGui::TreeNode("Subplot", "Subplot [0x%08X]", plot.ID)) { + int n_items = plot.Items.GetItemCount(); + if (ImGui::TreeNode("Items", "Items (%d)", n_items)) { + for (int i = 0; i < n_items; ++i) { + ImPlotItem* item = plot.Items.GetItemByIndex(i); + ImGui::PushID(i); + if (ImGui::TreeNode("Item", "Item [0x%08X]", item->ID)) { + ImGui::Bullet(); ImGui::Checkbox("Show", &item->Show); + ImGui::Bullet(); + ImVec4 temp = ImGui::ColorConvertU32ToFloat4(item->Color); + if (ImGui::ColorEdit4("Color",&temp.x, ImGuiColorEditFlags_NoInputs)) + item->Color = ImGui::ColorConvertFloat4ToU32(temp); + + ImGui::BulletText("NameOffset: %d",item->NameOffset); + ImGui::BulletText("Name: %s", item->NameOffset != -1 ? plot.Items.Legend.Labels.Buf.Data + item->NameOffset : "N/A"); + ImGui::BulletText("Hovered: %s",item->LegendHovered ? "true" : "false"); + ImGui::TreePop(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + ImGui::BulletText("Flags: 0x%08X", plot.Flags); + ImGui::BulletText("FrameHovered: %s", plot.FrameHovered ? "true" : "false"); + ImGui::BulletText("LegendHovered: %s", plot.Items.Legend.Hovered ? "true" : "false"); + ImGui::TreePop(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + if (ImGui::TreeNode("Colormaps")) { + ImGui::BulletText("Colormaps: %d", gp.ColormapData.Count); + ImGui::BulletText("Memory: %d bytes", gp.ColormapData.Tables.Size * 4); + if (ImGui::TreeNode("Data")) { + for (int m = 0; m < gp.ColormapData.Count; ++m) { + if (ImGui::TreeNode(gp.ColormapData.GetName(m))) { + int count = gp.ColormapData.GetKeyCount(m); + int size = gp.ColormapData.GetTableSize(m); + bool qual = gp.ColormapData.IsQual(m); + ImGui::BulletText("Qualitative: %s", qual ? "true" : "false"); + ImGui::BulletText("Key Count: %d", count); + ImGui::BulletText("Table Size: %d", size); + ImGui::Indent(); + + static float t = 0.5; + ImVec4 samp; + float wid = 32 * 10 - ImGui::GetFrameHeight() - ImGui::GetStyle().ItemSpacing.x; + ImGui::SetNextItemWidth(wid); + ImPlot::ColormapSlider("##Sample",&t,&samp,"%.3f",m); + ImGui::SameLine(); + ImGui::ColorButton("Sampler",samp); + ImGui::PushStyleColor(ImGuiCol_FrameBg, ImVec4(0,0,0,0)); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0,0)); + for (int c = 0; c < size; ++c) { + ImVec4 col = ImGui::ColorConvertU32ToFloat4(gp.ColormapData.GetTableColor(m,c)); + ImGui::PushID(m*1000+c); + ImGui::ColorButton("",col,0,ImVec2(10,10)); + ImGui::PopID(); + if ((c + 1) % 32 != 0 && c != size - 1) + ImGui::SameLine(); + } + ImGui::PopStyleVar(); + ImGui::PopStyleColor(); + ImGui::Unindent(); + ImGui::TreePop(); + } + } + ImGui::TreePop(); + } + ImGui::TreePop(); + } + ImGui::End(); +} + +bool ShowDatePicker(const char* id, int* level, ImPlotTime* t, const ImPlotTime* t1, const ImPlotTime* t2) { + + ImGui::PushID(id); + ImGui::BeginGroup(); + + ImGuiStyle& style = ImGui::GetStyle(); + ImVec4 col_txt = style.Colors[ImGuiCol_Text]; + ImVec4 col_dis = style.Colors[ImGuiCol_TextDisabled]; + ImVec4 col_btn = style.Colors[ImGuiCol_Button]; + ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0,0,0,0)); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0,0)); + + const float ht = ImGui::GetFrameHeight(); + ImVec2 cell_size(ht*1.25f,ht); + char buff[32]; + bool clk = false; + tm& Tm = GImPlot->Tm; + + const int min_yr = 1970; + const int max_yr = 2999; + + // t1 parts + int t1_mo = 0; int t1_md = 0; int t1_yr = 0; + if (t1 != nullptr) { + GetTime(*t1,&Tm); + t1_mo = Tm.tm_mon; + t1_md = Tm.tm_mday; + t1_yr = Tm.tm_year + 1900; + } + + // t2 parts + int t2_mo = 0; int t2_md = 0; int t2_yr = 0; + if (t2 != nullptr) { + GetTime(*t2,&Tm); + t2_mo = Tm.tm_mon; + t2_md = Tm.tm_mday; + t2_yr = Tm.tm_year + 1900; + } + + // day widget + if (*level == 0) { + *t = FloorTime(*t, ImPlotTimeUnit_Day); + GetTime(*t, &Tm); + const int this_year = Tm.tm_year + 1900; + const int last_year = this_year - 1; + const int next_year = this_year + 1; + const int this_mon = Tm.tm_mon; + const int last_mon = this_mon == 0 ? 11 : this_mon - 1; + const int next_mon = this_mon == 11 ? 0 : this_mon + 1; + const int days_this_mo = GetDaysInMonth(this_year, this_mon); + const int days_last_mo = GetDaysInMonth(this_mon == 0 ? last_year : this_year, last_mon); + ImPlotTime t_first_mo = FloorTime(*t,ImPlotTimeUnit_Mo); + GetTime(t_first_mo,&Tm); + const int first_wd = Tm.tm_wday; + // month year + ImFormatString(buff, 32, "%s %d", MONTH_NAMES[this_mon], this_year); + if (ImGui::Button(buff)) + *level = 1; + ImGui::SameLine(5*cell_size.x); + BeginDisabledControls(this_year <= min_yr && this_mon == 0); + if (ImGui::ArrowButtonEx("##Up",ImGuiDir_Up,cell_size)) + *t = AddTime(*t, ImPlotTimeUnit_Mo, -1); + EndDisabledControls(this_year <= min_yr && this_mon == 0); + ImGui::SameLine(); + BeginDisabledControls(this_year >= max_yr && this_mon == 11); + if (ImGui::ArrowButtonEx("##Down",ImGuiDir_Down,cell_size)) + *t = AddTime(*t, ImPlotTimeUnit_Mo, 1); + EndDisabledControls(this_year >= max_yr && this_mon == 11); + // render weekday abbreviations + ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true); + for (int i = 0; i < 7; ++i) { + ImGui::Button(WD_ABRVS[i],cell_size); + if (i != 6) { ImGui::SameLine(); } + } + ImGui::PopItemFlag(); + // 0 = last mo, 1 = this mo, 2 = next mo + int mo = first_wd > 0 ? 0 : 1; + int day = mo == 1 ? 1 : days_last_mo - first_wd + 1; + for (int i = 0; i < 6; ++i) { + for (int j = 0; j < 7; ++j) { + if (mo == 0 && day > days_last_mo) { + mo = 1; + day = 1; + } + else if (mo == 1 && day > days_this_mo) { + mo = 2; + day = 1; + } + const int now_yr = (mo == 0 && this_mon == 0) ? last_year : ((mo == 2 && this_mon == 11) ? next_year : this_year); + const int now_mo = mo == 0 ? last_mon : (mo == 1 ? this_mon : next_mon); + const int now_md = day; + + const bool off_mo = mo == 0 || mo == 2; + const bool t1_or_t2 = (t1 != nullptr && t1_mo == now_mo && t1_yr == now_yr && t1_md == now_md) || + (t2 != nullptr && t2_mo == now_mo && t2_yr == now_yr && t2_md == now_md); + + if (off_mo) + ImGui::PushStyleColor(ImGuiCol_Text, col_dis); + if (t1_or_t2) { + ImGui::PushStyleColor(ImGuiCol_Button, col_btn); + ImGui::PushStyleColor(ImGuiCol_Text, col_txt); + } + ImGui::PushID(i*7+j); + ImFormatString(buff,32,"%d",day); + if (now_yr == min_yr-1 || now_yr == max_yr+1) { + ImGui::Dummy(cell_size); + } + else if (ImGui::Button(buff,cell_size) && !clk) { + *t = MakeTime(now_yr, now_mo, now_md); + clk = true; + } + ImGui::PopID(); + if (t1_or_t2) + ImGui::PopStyleColor(2); + if (off_mo) + ImGui::PopStyleColor(); + if (j != 6) + ImGui::SameLine(); + day++; + } + } + } + // month widget + else if (*level == 1) { + *t = FloorTime(*t, ImPlotTimeUnit_Mo); + GetTime(*t, &Tm); + int this_yr = Tm.tm_year + 1900; + ImFormatString(buff, 32, "%d", this_yr); + if (ImGui::Button(buff)) + *level = 2; + BeginDisabledControls(this_yr <= min_yr); + ImGui::SameLine(5*cell_size.x); + if (ImGui::ArrowButtonEx("##Up",ImGuiDir_Up,cell_size)) + *t = AddTime(*t, ImPlotTimeUnit_Yr, -1); + EndDisabledControls(this_yr <= min_yr); + ImGui::SameLine(); + BeginDisabledControls(this_yr >= max_yr); + if (ImGui::ArrowButtonEx("##Down",ImGuiDir_Down,cell_size)) + *t = AddTime(*t, ImPlotTimeUnit_Yr, 1); + EndDisabledControls(this_yr >= max_yr); + // ImGui::Dummy(cell_size); + cell_size.x *= 7.0f/4.0f; + cell_size.y *= 7.0f/3.0f; + int mo = 0; + for (int i = 0; i < 3; ++i) { + for (int j = 0; j < 4; ++j) { + const bool t1_or_t2 = (t1 != nullptr && t1_yr == this_yr && t1_mo == mo) || + (t2 != nullptr && t2_yr == this_yr && t2_mo == mo); + if (t1_or_t2) + ImGui::PushStyleColor(ImGuiCol_Button, col_btn); + if (ImGui::Button(MONTH_ABRVS[mo],cell_size) && !clk) { + *t = MakeTime(this_yr, mo); + *level = 0; + } + if (t1_or_t2) + ImGui::PopStyleColor(); + if (j != 3) + ImGui::SameLine(); + mo++; + } + } + } + else if (*level == 2) { + *t = FloorTime(*t, ImPlotTimeUnit_Yr); + int this_yr = GetYear(*t); + int yr = this_yr - this_yr % 20; + ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true); + ImFormatString(buff,32,"%d-%d",yr,yr+19); + ImGui::Button(buff); + ImGui::PopItemFlag(); + ImGui::SameLine(5*cell_size.x); + BeginDisabledControls(yr <= min_yr); + if (ImGui::ArrowButtonEx("##Up",ImGuiDir_Up,cell_size)) + *t = MakeTime(yr-20); + EndDisabledControls(yr <= min_yr); + ImGui::SameLine(); + BeginDisabledControls(yr + 20 >= max_yr); + if (ImGui::ArrowButtonEx("##Down",ImGuiDir_Down,cell_size)) + *t = MakeTime(yr+20); + EndDisabledControls(yr+ 20 >= max_yr); + // ImGui::Dummy(cell_size); + cell_size.x *= 7.0f/4.0f; + cell_size.y *= 7.0f/5.0f; + for (int i = 0; i < 5; ++i) { + for (int j = 0; j < 4; ++j) { + const bool t1_or_t2 = (t1 != nullptr && t1_yr == yr) || (t2 != nullptr && t2_yr == yr); + if (t1_or_t2) + ImGui::PushStyleColor(ImGuiCol_Button, col_btn); + ImFormatString(buff,32,"%d",yr); + if (yr<1970||yr>3000) { + ImGui::Dummy(cell_size); + } + else if (ImGui::Button(buff,cell_size)) { + *t = MakeTime(yr); + *level = 1; + } + if (t1_or_t2) + ImGui::PopStyleColor(); + if (j != 3) + ImGui::SameLine(); + yr++; + } + } + } + ImGui::PopStyleVar(); + ImGui::PopStyleColor(); + ImGui::EndGroup(); + ImGui::PopID(); + return clk; +} + +bool ShowTimePicker(const char* id, ImPlotTime* t) { + ImPlotContext& gp = *GImPlot; + ImGui::PushID(id); + tm& Tm = gp.Tm; + GetTime(*t,&Tm); + + static const char* nums[] = { "00","01","02","03","04","05","06","07","08","09", + "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"}; + + static const char* am_pm[] = {"am","pm"}; + + bool hour24 = gp.Style.Use24HourClock; + + int hr = hour24 ? Tm.tm_hour : ((Tm.tm_hour == 0 || Tm.tm_hour == 12) ? 12 : Tm.tm_hour % 12); + int min = Tm.tm_min; + int sec = Tm.tm_sec; + int ap = Tm.tm_hour < 12 ? 0 : 1; + + bool changed = false; + + ImVec2 spacing = ImGui::GetStyle().ItemSpacing; + spacing.x = 0; + float width = ImGui::CalcTextSize("888").x; + float height = ImGui::GetFrameHeight(); + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, spacing); + ImGui::PushStyleVar(ImGuiStyleVar_ScrollbarSize,2.0f); + ImGui::PushStyleColor(ImGuiCol_FrameBg, ImVec4(0,0,0,0)); + ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0,0,0,0)); + ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, ImGui::GetStyleColorVec4(ImGuiCol_ButtonHovered)); + + ImGui::SetNextItemWidth(width); + if (ImGui::BeginCombo("##hr",nums[hr],ImGuiComboFlags_NoArrowButton)) { + const int ia = hour24 ? 0 : 1; + const int ib = hour24 ? 24 : 13; + for (int i = ia; i < ib; ++i) { + if (ImGui::Selectable(nums[i],i==hr)) { + hr = i; + changed = true; + } + } + ImGui::EndCombo(); + } + ImGui::SameLine(); + ImGui::Text(":"); + ImGui::SameLine(); + ImGui::SetNextItemWidth(width); + if (ImGui::BeginCombo("##min",nums[min],ImGuiComboFlags_NoArrowButton)) { + for (int i = 0; i < 60; ++i) { + if (ImGui::Selectable(nums[i],i==min)) { + min = i; + changed = true; + } + } + ImGui::EndCombo(); + } + ImGui::SameLine(); + ImGui::Text(":"); + ImGui::SameLine(); + ImGui::SetNextItemWidth(width); + if (ImGui::BeginCombo("##sec",nums[sec],ImGuiComboFlags_NoArrowButton)) { + for (int i = 0; i < 60; ++i) { + if (ImGui::Selectable(nums[i],i==sec)) { + sec = i; + changed = true; + } + } + ImGui::EndCombo(); + } + if (!hour24) { + ImGui::SameLine(); + if (ImGui::Button(am_pm[ap],ImVec2(0,height))) { + ap = 1 - ap; + changed = true; + } + } + + ImGui::PopStyleColor(3); + ImGui::PopStyleVar(2); + ImGui::PopID(); + + if (changed) { + if (!hour24) + hr = hr % 12 + ap * 12; + Tm.tm_hour = hr; + Tm.tm_min = min; + Tm.tm_sec = sec; + *t = MkTime(&Tm); + } + + return changed; +} + +void StyleColorsAuto(ImPlotStyle* dst) { + ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); + ImVec4* colors = style->Colors; + + style->MinorAlpha = 0.25f; + + colors[ImPlotCol_Line] = IMPLOT_AUTO_COL; + colors[ImPlotCol_Fill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerOutline] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerFill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_ErrorBar] = IMPLOT_AUTO_COL; + colors[ImPlotCol_FrameBg] = IMPLOT_AUTO_COL; + colors[ImPlotCol_PlotBg] = IMPLOT_AUTO_COL; + colors[ImPlotCol_PlotBorder] = IMPLOT_AUTO_COL; + colors[ImPlotCol_LegendBg] = IMPLOT_AUTO_COL; + colors[ImPlotCol_LegendBorder] = IMPLOT_AUTO_COL; + colors[ImPlotCol_LegendText] = IMPLOT_AUTO_COL; + colors[ImPlotCol_TitleText] = IMPLOT_AUTO_COL; + colors[ImPlotCol_InlayText] = IMPLOT_AUTO_COL; + colors[ImPlotCol_PlotBorder] = IMPLOT_AUTO_COL; + colors[ImPlotCol_AxisText] = IMPLOT_AUTO_COL; + colors[ImPlotCol_AxisGrid] = IMPLOT_AUTO_COL; + colors[ImPlotCol_AxisTick] = IMPLOT_AUTO_COL; + colors[ImPlotCol_AxisBg] = IMPLOT_AUTO_COL; + colors[ImPlotCol_AxisBgHovered] = IMPLOT_AUTO_COL; + colors[ImPlotCol_AxisBgActive] = IMPLOT_AUTO_COL; + colors[ImPlotCol_Selection] = IMPLOT_AUTO_COL; + colors[ImPlotCol_Crosshairs] = IMPLOT_AUTO_COL; +} + +void StyleColorsClassic(ImPlotStyle* dst) { + ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); + ImVec4* colors = style->Colors; + + style->MinorAlpha = 0.5f; + + colors[ImPlotCol_Line] = IMPLOT_AUTO_COL; + colors[ImPlotCol_Fill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerOutline] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerFill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_ErrorBar] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImPlotCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f); + colors[ImPlotCol_PlotBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.35f); + colors[ImPlotCol_PlotBorder] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); + colors[ImPlotCol_LegendBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f); + colors[ImPlotCol_LegendBorder] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); + colors[ImPlotCol_LegendText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImPlotCol_TitleText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImPlotCol_InlayText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImPlotCol_AxisText] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImPlotCol_AxisGrid] = ImVec4(0.90f, 0.90f, 0.90f, 0.25f); + colors[ImPlotCol_AxisTick] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBg] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBgHovered] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBgActive] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_Selection] = ImVec4(0.97f, 0.97f, 0.39f, 1.00f); + colors[ImPlotCol_Crosshairs] = ImVec4(0.50f, 0.50f, 0.50f, 0.75f); +} + +void StyleColorsDark(ImPlotStyle* dst) { + ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); + ImVec4* colors = style->Colors; + + style->MinorAlpha = 0.25f; + + colors[ImPlotCol_Line] = IMPLOT_AUTO_COL; + colors[ImPlotCol_Fill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerOutline] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerFill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_ErrorBar] = IMPLOT_AUTO_COL; + colors[ImPlotCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.07f); + colors[ImPlotCol_PlotBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.50f); + colors[ImPlotCol_PlotBorder] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImPlotCol_LegendBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); + colors[ImPlotCol_LegendBorder] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImPlotCol_LegendText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImPlotCol_TitleText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImPlotCol_InlayText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImPlotCol_AxisText] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImPlotCol_AxisGrid] = ImVec4(1.00f, 1.00f, 1.00f, 0.25f); + colors[ImPlotCol_AxisTick] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBg] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBgHovered] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBgActive] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_Selection] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImPlotCol_Crosshairs] = ImVec4(1.00f, 1.00f, 1.00f, 0.50f); +} + +void StyleColorsLight(ImPlotStyle* dst) { + ImPlotStyle* style = dst ? dst : &ImPlot::GetStyle(); + ImVec4* colors = style->Colors; + + style->MinorAlpha = 1.0f; + + colors[ImPlotCol_Line] = IMPLOT_AUTO_COL; + colors[ImPlotCol_Fill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerOutline] = IMPLOT_AUTO_COL; + colors[ImPlotCol_MarkerFill] = IMPLOT_AUTO_COL; + colors[ImPlotCol_ErrorBar] = IMPLOT_AUTO_COL; + colors[ImPlotCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImPlotCol_PlotBg] = ImVec4(0.42f, 0.57f, 1.00f, 0.13f); + colors[ImPlotCol_PlotBorder] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImPlotCol_LegendBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.98f); + colors[ImPlotCol_LegendBorder] = ImVec4(0.82f, 0.82f, 0.82f, 0.80f); + colors[ImPlotCol_LegendText] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImPlotCol_TitleText] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImPlotCol_InlayText] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImPlotCol_AxisText] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImPlotCol_AxisGrid] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImPlotCol_AxisTick] = ImVec4(0.00f, 0.00f, 0.00f, 0.25f); + colors[ImPlotCol_AxisBg] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBgHovered] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_AxisBgActive] = IMPLOT_AUTO_COL; // TODO + colors[ImPlotCol_Selection] = ImVec4(0.82f, 0.64f, 0.03f, 1.00f); + colors[ImPlotCol_Crosshairs] = ImVec4(0.00f, 0.00f, 0.00f, 0.50f); +} + +//----------------------------------------------------------------------------- +// [SECTION] Obsolete Functions/Types +//----------------------------------------------------------------------------- + +#ifndef IMPLOT_DISABLE_OBSOLETE_FUNCTIONS + +bool BeginPlot(const char* title, const char* x_label, const char* y1_label, const ImVec2& size, + ImPlotFlags flags, ImPlotAxisFlags x_flags, ImPlotAxisFlags y1_flags, ImPlotAxisFlags y2_flags, ImPlotAxisFlags y3_flags, + const char* y2_label, const char* y3_label) +{ + if (!BeginPlot(title, size, flags)) + return false; + SetupAxis(ImAxis_X1, x_label, x_flags); + SetupAxis(ImAxis_Y1, y1_label, y1_flags); + if (ImHasFlag(flags, ImPlotFlags_YAxis2)) + SetupAxis(ImAxis_Y2, y2_label, y2_flags); + if (ImHasFlag(flags, ImPlotFlags_YAxis3)) + SetupAxis(ImAxis_Y3, y3_label, y3_flags); + return true; +} + +#endif + +} // namespace ImPlot diff --git a/thirdparty/imgui_suite/implot/cpp/implot_items.cpp b/thirdparty/imgui_suite/implot/cpp/implot_items.cpp new file mode 100644 index 00000000000..a56f5b89912 --- /dev/null +++ b/thirdparty/imgui_suite/implot/cpp/implot_items.cpp @@ -0,0 +1,2696 @@ +// MIT License + +// Copyright (c) 2023 Evan Pezent + +// 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. + +// ImPlot v0.16 + +#define IMGUI_DEFINE_MATH_OPERATORS +#include "implot.h" +#include "implot_internal.h" + +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wformat-nonliteral" +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Macros and Defines +//----------------------------------------------------------------------------- + +#define SQRT_1_2 0.70710678118f +#define SQRT_3_2 0.86602540378f + +#ifndef IMPLOT_NO_FORCE_INLINE + #ifdef _MSC_VER + #define IMPLOT_INLINE __forceinline + #elif defined(__GNUC__) + #define IMPLOT_INLINE inline __attribute__((__always_inline__)) + #elif defined(__CLANG__) + #if __has_attribute(__always_inline__) + #define IMPLOT_INLINE inline __attribute__((__always_inline__)) + #else + #define IMPLOT_INLINE inline + #endif + #else + #define IMPLOT_INLINE inline + #endif +#else + #define IMPLOT_INLINE inline +#endif + +#if defined __SSE__ || defined __x86_64__ || defined _M_X64 +#ifndef IMGUI_ENABLE_SSE +#include +#endif +static IMPLOT_INLINE float ImInvSqrt(float x) { return _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(x))); } +#else +static IMPLOT_INLINE float ImInvSqrt(float x) { return 1.0f / sqrtf(x); } +#endif + +#define IMPLOT_NORMALIZE2F_OVER_ZERO(VX,VY) do { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = ImInvSqrt(d2); VX *= inv_len; VY *= inv_len; } } while (0) + +// Support for pre-1.82 versions. Users on 1.82+ can use 0 (default) flags to mean "all corners" but in order to support older versions we are more explicit. +#if (IMGUI_VERSION_NUM < 18102) && !defined(ImDrawFlags_RoundCornersAll) +#define ImDrawFlags_RoundCornersAll ImDrawCornerFlags_All +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Template instantiation utility +//----------------------------------------------------------------------------- + +// By default, templates are instantiated for `float`, `double`, and for the following integer types, which are defined in imgui.h: +// signed char ImS8; // 8-bit signed integer +// unsigned char ImU8; // 8-bit unsigned integer +// signed short ImS16; // 16-bit signed integer +// unsigned short ImU16; // 16-bit unsigned integer +// signed int ImS32; // 32-bit signed integer == int +// unsigned int ImU32; // 32-bit unsigned integer +// signed long long ImS64; // 64-bit signed integer +// unsigned long long ImU64; // 64-bit unsigned integer +// (note: this list does *not* include `long`, `unsigned long` and `long double`) +// +// You can customize the supported types by defining IMPLOT_CUSTOM_NUMERIC_TYPES at compile time to define your own type list. +// As an example, you could use the compile time define given by the line below in order to support only float and double. +// -DIMPLOT_CUSTOM_NUMERIC_TYPES="(float)(double)" +// In order to support all known C++ types, use: +// -DIMPLOT_CUSTOM_NUMERIC_TYPES="(signed char)(unsigned char)(signed short)(unsigned short)(signed int)(unsigned int)(signed long)(unsigned long)(signed long long)(unsigned long long)(float)(double)(long double)" + +#ifdef IMPLOT_CUSTOM_NUMERIC_TYPES + #define IMPLOT_NUMERIC_TYPES IMPLOT_CUSTOM_NUMERIC_TYPES +#else + #define IMPLOT_NUMERIC_TYPES (ImS8)(ImU8)(ImS16)(ImU16)(ImS32)(ImU32)(ImS64)(ImU64)(float)(double) +#endif + +// CALL_INSTANTIATE_FOR_NUMERIC_TYPES will duplicate the template instantion code `INSTANTIATE_MACRO(T)` on supported types. +#define _CAT(x, y) _CAT_(x, y) +#define _CAT_(x,y) x ## y +#define _INSTANTIATE_FOR_NUMERIC_TYPES(chain) _CAT(_INSTANTIATE_FOR_NUMERIC_TYPES_1 chain, _END) +#define _INSTANTIATE_FOR_NUMERIC_TYPES_1(T) INSTANTIATE_MACRO(T) _INSTANTIATE_FOR_NUMERIC_TYPES_2 +#define _INSTANTIATE_FOR_NUMERIC_TYPES_2(T) INSTANTIATE_MACRO(T) _INSTANTIATE_FOR_NUMERIC_TYPES_1 +#define _INSTANTIATE_FOR_NUMERIC_TYPES_1_END +#define _INSTANTIATE_FOR_NUMERIC_TYPES_2_END +#define CALL_INSTANTIATE_FOR_NUMERIC_TYPES() _INSTANTIATE_FOR_NUMERIC_TYPES(IMPLOT_NUMERIC_TYPES) + +namespace ImPlot { + +//----------------------------------------------------------------------------- +// [SECTION] Utils +//----------------------------------------------------------------------------- + +// Calc maximum index size of ImDrawIdx +template +struct MaxIdx { static const unsigned int Value; }; +template <> const unsigned int MaxIdx::Value = 65535; +template <> const unsigned int MaxIdx::Value = 4294967295; + +IMPLOT_INLINE void GetLineRenderProps(const ImDrawList& draw_list, float& half_weight, ImVec2& tex_uv0, ImVec2& tex_uv1) { + const bool aa = ImHasFlag(draw_list.Flags, ImDrawListFlags_AntiAliasedLines) && + ImHasFlag(draw_list.Flags, ImDrawListFlags_AntiAliasedLinesUseTex); + if (aa) { + ImVec4 tex_uvs = draw_list._Data->TexUvLines[(int)(half_weight*2)]; + tex_uv0 = ImVec2(tex_uvs.x, tex_uvs.y); + tex_uv1 = ImVec2(tex_uvs.z, tex_uvs.w); + half_weight += 1; + } + else { + tex_uv0 = tex_uv1 = draw_list._Data->TexUvWhitePixel; + } +} + +IMPLOT_INLINE void PrimLine(ImDrawList& draw_list, const ImVec2& P1, const ImVec2& P2, float half_weight, ImU32 col, const ImVec2& tex_uv0, const ImVec2 tex_uv1) { + float dx = P2.x - P1.x; + float dy = P2.y - P1.y; + IMPLOT_NORMALIZE2F_OVER_ZERO(dx, dy); + dx *= half_weight; + dy *= half_weight; + draw_list._VtxWritePtr[0].pos.x = P1.x + dy; + draw_list._VtxWritePtr[0].pos.y = P1.y - dx; + draw_list._VtxWritePtr[0].uv = tex_uv0; + draw_list._VtxWritePtr[0].col = col; + draw_list._VtxWritePtr[1].pos.x = P2.x + dy; + draw_list._VtxWritePtr[1].pos.y = P2.y - dx; + draw_list._VtxWritePtr[1].uv = tex_uv0; + draw_list._VtxWritePtr[1].col = col; + draw_list._VtxWritePtr[2].pos.x = P2.x - dy; + draw_list._VtxWritePtr[2].pos.y = P2.y + dx; + draw_list._VtxWritePtr[2].uv = tex_uv1; + draw_list._VtxWritePtr[2].col = col; + draw_list._VtxWritePtr[3].pos.x = P1.x - dy; + draw_list._VtxWritePtr[3].pos.y = P1.y + dx; + draw_list._VtxWritePtr[3].uv = tex_uv1; + draw_list._VtxWritePtr[3].col = col; + draw_list._VtxWritePtr += 4; + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 2); + draw_list._IdxWritePtr[3] = (ImDrawIdx)(draw_list._VtxCurrentIdx); + draw_list._IdxWritePtr[4] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 2); + draw_list._IdxWritePtr[5] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 3); + draw_list._IdxWritePtr += 6; + draw_list._VtxCurrentIdx += 4; +} + +IMPLOT_INLINE void PrimRectFill(ImDrawList& draw_list, const ImVec2& Pmin, const ImVec2& Pmax, ImU32 col, const ImVec2& uv) { + draw_list._VtxWritePtr[0].pos = Pmin; + draw_list._VtxWritePtr[0].uv = uv; + draw_list._VtxWritePtr[0].col = col; + draw_list._VtxWritePtr[1].pos = Pmax; + draw_list._VtxWritePtr[1].uv = uv; + draw_list._VtxWritePtr[1].col = col; + draw_list._VtxWritePtr[2].pos.x = Pmin.x; + draw_list._VtxWritePtr[2].pos.y = Pmax.y; + draw_list._VtxWritePtr[2].uv = uv; + draw_list._VtxWritePtr[2].col = col; + draw_list._VtxWritePtr[3].pos.x = Pmax.x; + draw_list._VtxWritePtr[3].pos.y = Pmin.y; + draw_list._VtxWritePtr[3].uv = uv; + draw_list._VtxWritePtr[3].col = col; + draw_list._VtxWritePtr += 4; + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 2); + draw_list._IdxWritePtr[3] = (ImDrawIdx)(draw_list._VtxCurrentIdx); + draw_list._IdxWritePtr[4] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1); + draw_list._IdxWritePtr[5] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 3); + draw_list._IdxWritePtr += 6; + draw_list._VtxCurrentIdx += 4; +} + +IMPLOT_INLINE void PrimRectLine(ImDrawList& draw_list, const ImVec2& Pmin, const ImVec2& Pmax, float weight, ImU32 col, const ImVec2& uv) { + + draw_list._VtxWritePtr[0].pos.x = Pmin.x; + draw_list._VtxWritePtr[0].pos.y = Pmin.y; + draw_list._VtxWritePtr[0].uv = uv; + draw_list._VtxWritePtr[0].col = col; + + draw_list._VtxWritePtr[1].pos.x = Pmin.x; + draw_list._VtxWritePtr[1].pos.y = Pmax.y; + draw_list._VtxWritePtr[1].uv = uv; + draw_list._VtxWritePtr[1].col = col; + + draw_list._VtxWritePtr[2].pos.x = Pmax.x; + draw_list._VtxWritePtr[2].pos.y = Pmax.y; + draw_list._VtxWritePtr[2].uv = uv; + draw_list._VtxWritePtr[2].col = col; + + draw_list._VtxWritePtr[3].pos.x = Pmax.x; + draw_list._VtxWritePtr[3].pos.y = Pmin.y; + draw_list._VtxWritePtr[3].uv = uv; + draw_list._VtxWritePtr[3].col = col; + + draw_list._VtxWritePtr[4].pos.x = Pmin.x + weight; + draw_list._VtxWritePtr[4].pos.y = Pmin.y + weight; + draw_list._VtxWritePtr[4].uv = uv; + draw_list._VtxWritePtr[4].col = col; + + draw_list._VtxWritePtr[5].pos.x = Pmin.x + weight; + draw_list._VtxWritePtr[5].pos.y = Pmax.y - weight; + draw_list._VtxWritePtr[5].uv = uv; + draw_list._VtxWritePtr[5].col = col; + + draw_list._VtxWritePtr[6].pos.x = Pmax.x - weight; + draw_list._VtxWritePtr[6].pos.y = Pmax.y - weight; + draw_list._VtxWritePtr[6].uv = uv; + draw_list._VtxWritePtr[6].col = col; + + draw_list._VtxWritePtr[7].pos.x = Pmax.x - weight; + draw_list._VtxWritePtr[7].pos.y = Pmin.y + weight; + draw_list._VtxWritePtr[7].uv = uv; + draw_list._VtxWritePtr[7].col = col; + + draw_list._VtxWritePtr += 8; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 0); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 5); + draw_list._IdxWritePtr += 3; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 0); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 5); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 4); + draw_list._IdxWritePtr += 3; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 2); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 6); + draw_list._IdxWritePtr += 3; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 6); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 5); + draw_list._IdxWritePtr += 3; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 2); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 3); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 7); + draw_list._IdxWritePtr += 3; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 2); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 7); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 6); + draw_list._IdxWritePtr += 3; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 3); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 0); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 4); + draw_list._IdxWritePtr += 3; + + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 3); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 4); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 7); + draw_list._IdxWritePtr += 3; + + draw_list._VtxCurrentIdx += 8; +} + + +//----------------------------------------------------------------------------- +// [SECTION] Item Utils +//----------------------------------------------------------------------------- + +ImPlotItem* RegisterOrGetItem(const char* label_id, ImPlotItemFlags flags, bool* just_created) { + ImPlotContext& gp = *GImPlot; + ImPlotItemGroup& Items = *gp.CurrentItems; + ImGuiID id = Items.GetItemID(label_id); + if (just_created != nullptr) + *just_created = Items.GetItem(id) == nullptr; + ImPlotItem* item = Items.GetOrAddItem(id); + if (item->SeenThisFrame) + return item; + item->SeenThisFrame = true; + int idx = Items.GetItemIndex(item); + item->ID = id; + if (!ImHasFlag(flags, ImPlotItemFlags_NoLegend) && ImGui::FindRenderedTextEnd(label_id, nullptr) != label_id) { + Items.Legend.Indices.push_back(idx); + item->NameOffset = Items.Legend.Labels.size(); + Items.Legend.Labels.append(label_id, label_id + strlen(label_id) + 1); + } + else { + item->Show = true; + } + return item; +} + +ImPlotItem* GetItem(const char* label_id) { + ImPlotContext& gp = *GImPlot; + return gp.CurrentItems->GetItem(label_id); +} + +bool IsItemHidden(const char* label_id) { + ImPlotItem* item = GetItem(label_id); + return item != nullptr && !item->Show; +} + +ImPlotItem* GetCurrentItem() { + ImPlotContext& gp = *GImPlot; + return gp.CurrentItem; +} + +void SetNextLineStyle(const ImVec4& col, float weight) { + ImPlotContext& gp = *GImPlot; + gp.NextItemData.Colors[ImPlotCol_Line] = col; + gp.NextItemData.LineWeight = weight; +} + +void SetNextFillStyle(const ImVec4& col, float alpha) { + ImPlotContext& gp = *GImPlot; + gp.NextItemData.Colors[ImPlotCol_Fill] = col; + gp.NextItemData.FillAlpha = alpha; +} + +void SetNextMarkerStyle(ImPlotMarker marker, float size, const ImVec4& fill, float weight, const ImVec4& outline) { + ImPlotContext& gp = *GImPlot; + gp.NextItemData.Marker = marker; + gp.NextItemData.Colors[ImPlotCol_MarkerFill] = fill; + gp.NextItemData.MarkerSize = size; + gp.NextItemData.Colors[ImPlotCol_MarkerOutline] = outline; + gp.NextItemData.MarkerWeight = weight; +} + +void SetNextErrorBarStyle(const ImVec4& col, float size, float weight) { + ImPlotContext& gp = *GImPlot; + gp.NextItemData.Colors[ImPlotCol_ErrorBar] = col; + gp.NextItemData.ErrorBarSize = size; + gp.NextItemData.ErrorBarWeight = weight; +} + +ImVec4 GetLastItemColor() { + ImPlotContext& gp = *GImPlot; + if (gp.PreviousItem) + return ImGui::ColorConvertU32ToFloat4(gp.PreviousItem->Color); + return ImVec4(); +} + +void BustItemCache() { + ImPlotContext& gp = *GImPlot; + for (int p = 0; p < gp.Plots.GetBufSize(); ++p) { + ImPlotPlot& plot = *gp.Plots.GetByIndex(p); + plot.Items.Reset(); + } + for (int p = 0; p < gp.Subplots.GetBufSize(); ++p) { + ImPlotSubplot& subplot = *gp.Subplots.GetByIndex(p); + subplot.Items.Reset(); + } +} + +void BustColorCache(const char* plot_title_id) { + ImPlotContext& gp = *GImPlot; + if (plot_title_id == nullptr) { + BustItemCache(); + } + else { + ImGuiID id = ImGui::GetCurrentWindow()->GetID(plot_title_id); + ImPlotPlot* plot = gp.Plots.GetByKey(id); + if (plot != nullptr) + plot->Items.Reset(); + else { + ImPlotSubplot* subplot = gp.Subplots.GetByKey(id); + if (subplot != nullptr) + subplot->Items.Reset(); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] BeginItem / EndItem +//----------------------------------------------------------------------------- + +static const float ITEM_HIGHLIGHT_LINE_SCALE = 2.0f; +static const float ITEM_HIGHLIGHT_MARK_SCALE = 1.25f; + +// Begins a new item. Returns false if the item should not be plotted. +bool BeginItem(const char* label_id, ImPlotItemFlags flags, ImPlotCol recolor_from) { + ImPlotContext& gp = *GImPlot; + IM_ASSERT_USER_ERROR(gp.CurrentPlot != nullptr, "PlotX() needs to be called between BeginPlot() and EndPlot()!"); + SetupLock(); + bool just_created; + ImPlotItem* item = RegisterOrGetItem(label_id, flags, &just_created); + // set current item + gp.CurrentItem = item; + ImPlotNextItemData& s = gp.NextItemData; + // set/override item color + if (recolor_from != -1) { + if (!IsColorAuto(s.Colors[recolor_from])) + item->Color = ImGui::ColorConvertFloat4ToU32(s.Colors[recolor_from]); + else if (!IsColorAuto(gp.Style.Colors[recolor_from])) + item->Color = ImGui::ColorConvertFloat4ToU32(gp.Style.Colors[recolor_from]); + else if (just_created) + item->Color = NextColormapColorU32(); + } + else if (just_created) { + item->Color = NextColormapColorU32(); + } + // hide/show item + if (gp.NextItemData.HasHidden) { + if (just_created || gp.NextItemData.HiddenCond == ImGuiCond_Always) + item->Show = !gp.NextItemData.Hidden; + } + if (!item->Show) { + // reset next item data + gp.NextItemData.Reset(); + gp.PreviousItem = item; + gp.CurrentItem = nullptr; + return false; + } + else { + ImVec4 item_color = ImGui::ColorConvertU32ToFloat4(item->Color); + // stage next item colors + s.Colors[ImPlotCol_Line] = IsColorAuto(s.Colors[ImPlotCol_Line]) ? ( IsColorAuto(ImPlotCol_Line) ? item_color : gp.Style.Colors[ImPlotCol_Line] ) : s.Colors[ImPlotCol_Line]; + s.Colors[ImPlotCol_Fill] = IsColorAuto(s.Colors[ImPlotCol_Fill]) ? ( IsColorAuto(ImPlotCol_Fill) ? item_color : gp.Style.Colors[ImPlotCol_Fill] ) : s.Colors[ImPlotCol_Fill]; + s.Colors[ImPlotCol_MarkerOutline] = IsColorAuto(s.Colors[ImPlotCol_MarkerOutline]) ? ( IsColorAuto(ImPlotCol_MarkerOutline) ? s.Colors[ImPlotCol_Line] : gp.Style.Colors[ImPlotCol_MarkerOutline] ) : s.Colors[ImPlotCol_MarkerOutline]; + s.Colors[ImPlotCol_MarkerFill] = IsColorAuto(s.Colors[ImPlotCol_MarkerFill]) ? ( IsColorAuto(ImPlotCol_MarkerFill) ? s.Colors[ImPlotCol_Line] : gp.Style.Colors[ImPlotCol_MarkerFill] ) : s.Colors[ImPlotCol_MarkerFill]; + s.Colors[ImPlotCol_ErrorBar] = IsColorAuto(s.Colors[ImPlotCol_ErrorBar]) ? ( GetStyleColorVec4(ImPlotCol_ErrorBar) ) : s.Colors[ImPlotCol_ErrorBar]; + // stage next item style vars + s.LineWeight = s.LineWeight < 0 ? gp.Style.LineWeight : s.LineWeight; + s.Marker = s.Marker < 0 ? gp.Style.Marker : s.Marker; + s.MarkerSize = s.MarkerSize < 0 ? gp.Style.MarkerSize : s.MarkerSize; + s.MarkerWeight = s.MarkerWeight < 0 ? gp.Style.MarkerWeight : s.MarkerWeight; + s.FillAlpha = s.FillAlpha < 0 ? gp.Style.FillAlpha : s.FillAlpha; + s.ErrorBarSize = s.ErrorBarSize < 0 ? gp.Style.ErrorBarSize : s.ErrorBarSize; + s.ErrorBarWeight = s.ErrorBarWeight < 0 ? gp.Style.ErrorBarWeight : s.ErrorBarWeight; + s.DigitalBitHeight = s.DigitalBitHeight < 0 ? gp.Style.DigitalBitHeight : s.DigitalBitHeight; + s.DigitalBitGap = s.DigitalBitGap < 0 ? gp.Style.DigitalBitGap : s.DigitalBitGap; + // apply alpha modifier(s) + s.Colors[ImPlotCol_Fill].w *= s.FillAlpha; + s.Colors[ImPlotCol_MarkerFill].w *= s.FillAlpha; // TODO: this should be separate, if it at all + // apply highlight mods + if (item->LegendHovered) { + if (!ImHasFlag(gp.CurrentItems->Legend.Flags, ImPlotLegendFlags_NoHighlightItem)) { + s.LineWeight *= ITEM_HIGHLIGHT_LINE_SCALE; + s.MarkerSize *= ITEM_HIGHLIGHT_MARK_SCALE; + s.MarkerWeight *= ITEM_HIGHLIGHT_LINE_SCALE; + // TODO: how to highlight fills? + } + if (!ImHasFlag(gp.CurrentItems->Legend.Flags, ImPlotLegendFlags_NoHighlightAxis)) { + if (gp.CurrentPlot->EnabledAxesX() > 1) + gp.CurrentPlot->Axes[gp.CurrentPlot->CurrentX].ColorHiLi = item->Color; + if (gp.CurrentPlot->EnabledAxesY() > 1) + gp.CurrentPlot->Axes[gp.CurrentPlot->CurrentY].ColorHiLi = item->Color; + } + } + // set render flags + s.RenderLine = s.Colors[ImPlotCol_Line].w > 0 && s.LineWeight > 0; + s.RenderFill = s.Colors[ImPlotCol_Fill].w > 0; + s.RenderMarkerFill = s.Colors[ImPlotCol_MarkerFill].w > 0; + s.RenderMarkerLine = s.Colors[ImPlotCol_MarkerOutline].w > 0 && s.MarkerWeight > 0; + // push rendering clip rect + PushPlotClipRect(); + return true; + } +} + +// Ends an item (call only if BeginItem returns true) +void EndItem() { + ImPlotContext& gp = *GImPlot; + // pop rendering clip rect + PopPlotClipRect(); + // reset next item data + gp.NextItemData.Reset(); + // set current item + gp.PreviousItem = gp.CurrentItem; + gp.CurrentItem = nullptr; +} + +//----------------------------------------------------------------------------- +// [SECTION] Indexers +//----------------------------------------------------------------------------- + +template +IMPLOT_INLINE T IndexData(const T* data, int idx, int count, int offset, int stride) { + const int s = ((offset == 0) << 0) | ((stride == sizeof(T)) << 1); + switch (s) { + case 3 : return data[idx]; + case 2 : return data[(offset + idx) % count]; + case 1 : return *(const T*)(const void*)((const unsigned char*)data + (size_t)((idx) ) * stride); + case 0 : return *(const T*)(const void*)((const unsigned char*)data + (size_t)((offset + idx) % count) * stride); + default: return T(0); + } +} + +template +struct IndexerIdx { + IndexerIdx(const T* data, int count, int offset = 0, int stride = sizeof(T)) : + Data(data), + Count(count), + Offset(count ? ImPosMod(offset, count) : 0), + Stride(stride) + { } + template IMPLOT_INLINE double operator()(I idx) const { + return (double)IndexData(Data, idx, Count, Offset, Stride); + } + const T* Data; + int Count; + int Offset; + int Stride; +}; + +template +struct IndexerAdd { + IndexerAdd(const _Indexer1& indexer1, const _Indexer2& indexer2, double scale1 = 1, double scale2 = 1) + : Indexer1(indexer1), + Indexer2(indexer2), + Scale1(scale1), + Scale2(scale2), + Count(ImMin(Indexer1.Count, Indexer2.Count)) + { } + template IMPLOT_INLINE double operator()(I idx) const { + return Scale1 * Indexer1(idx) + Scale2 * Indexer2(idx); + } + const _Indexer1& Indexer1; + const _Indexer2& Indexer2; + double Scale1; + double Scale2; + int Count; +}; + +struct IndexerLin { + IndexerLin(double m, double b) : M(m), B(b) { } + template IMPLOT_INLINE double operator()(I idx) const { + return M * idx + B; + } + const double M; + const double B; +}; + +struct IndexerConst { + IndexerConst(double ref) : Ref(ref) { } + template IMPLOT_INLINE double operator()(I) const { return Ref; } + const double Ref; +}; + +//----------------------------------------------------------------------------- +// [SECTION] Getters +//----------------------------------------------------------------------------- + +template +struct GetterXY { + GetterXY(_IndexerX x, _IndexerY y, int count) : IndxerX(x), IndxerY(y), Count(count) { } + template IMPLOT_INLINE ImPlotPoint operator()(I idx) const { + return ImPlotPoint(IndxerX(idx),IndxerY(idx)); + } + const _IndexerX IndxerX; + const _IndexerY IndxerY; + const int Count; +}; + +/// Interprets a user's function pointer as ImPlotPoints +struct GetterFuncPtr { + GetterFuncPtr(ImPlotGetter getter, void* data, int count) : + Getter(getter), + Data(data), + Count(count) + { } + template IMPLOT_INLINE ImPlotPoint operator()(I idx) const { + return Getter(idx, Data); + } + ImPlotGetter Getter; + void* const Data; + const int Count; +}; + +template +struct GetterOverrideX { + GetterOverrideX(_Getter getter, double x) : Getter(getter), X(x), Count(getter.Count) { } + template IMPLOT_INLINE ImPlotPoint operator()(I idx) const { + ImPlotPoint p = Getter(idx); + p.x = X; + return p; + } + const _Getter Getter; + const double X; + const int Count; +}; + +template +struct GetterOverrideY { + GetterOverrideY(_Getter getter, double y) : Getter(getter), Y(y), Count(getter.Count) { } + template IMPLOT_INLINE ImPlotPoint operator()(I idx) const { + ImPlotPoint p = Getter(idx); + p.y = Y; + return p; + } + const _Getter Getter; + const double Y; + const int Count; +}; + +template +struct GetterLoop { + GetterLoop(_Getter getter) : Getter(getter), Count(getter.Count + 1) { } + template IMPLOT_INLINE ImPlotPoint operator()(I idx) const { + idx = idx % (Count - 1); + return Getter(idx); + } + const _Getter Getter; + const int Count; +}; + +template +struct GetterError { + GetterError(const T* xs, const T* ys, const T* neg, const T* pos, int count, int offset, int stride) : + Xs(xs), + Ys(ys), + Neg(neg), + Pos(pos), + Count(count), + Offset(count ? ImPosMod(offset, count) : 0), + Stride(stride) + { } + template IMPLOT_INLINE ImPlotPointError operator()(I idx) const { + return ImPlotPointError((double)IndexData(Xs, idx, Count, Offset, Stride), + (double)IndexData(Ys, idx, Count, Offset, Stride), + (double)IndexData(Neg, idx, Count, Offset, Stride), + (double)IndexData(Pos, idx, Count, Offset, Stride)); + } + const T* const Xs; + const T* const Ys; + const T* const Neg; + const T* const Pos; + const int Count; + const int Offset; + const int Stride; +}; + +//----------------------------------------------------------------------------- +// [SECTION] Fitters +//----------------------------------------------------------------------------- + +template +struct Fitter1 { + Fitter1(const _Getter1& getter) : Getter(getter) { } + void Fit(ImPlotAxis& x_axis, ImPlotAxis& y_axis) const { + for (int i = 0; i < Getter.Count; ++i) { + ImPlotPoint p = Getter(i); + x_axis.ExtendFitWith(y_axis, p.x, p.y); + y_axis.ExtendFitWith(x_axis, p.y, p.x); + } + } + const _Getter1& Getter; +}; + +template +struct FitterX { + FitterX(const _Getter1& getter) : Getter(getter) { } + void Fit(ImPlotAxis& x_axis, ImPlotAxis&) const { + for (int i = 0; i < Getter.Count; ++i) { + ImPlotPoint p = Getter(i); + x_axis.ExtendFit(p.x); + } + } + const _Getter1& Getter; +}; + +template +struct FitterY { + FitterY(const _Getter1& getter) : Getter(getter) { } + void Fit(ImPlotAxis&, ImPlotAxis& y_axis) const { + for (int i = 0; i < Getter.Count; ++i) { + ImPlotPoint p = Getter(i); + y_axis.ExtendFit(p.y); + } + } + const _Getter1& Getter; +}; + +template +struct Fitter2 { + Fitter2(const _Getter1& getter1, const _Getter2& getter2) : Getter1(getter1), Getter2(getter2) { } + void Fit(ImPlotAxis& x_axis, ImPlotAxis& y_axis) const { + for (int i = 0; i < Getter1.Count; ++i) { + ImPlotPoint p = Getter1(i); + x_axis.ExtendFitWith(y_axis, p.x, p.y); + y_axis.ExtendFitWith(x_axis, p.y, p.x); + } + for (int i = 0; i < Getter2.Count; ++i) { + ImPlotPoint p = Getter2(i); + x_axis.ExtendFitWith(y_axis, p.x, p.y); + y_axis.ExtendFitWith(x_axis, p.y, p.x); + } + } + const _Getter1& Getter1; + const _Getter2& Getter2; +}; + +template +struct FitterBarV { + FitterBarV(const _Getter1& getter1, const _Getter2& getter2, double width) : + Getter1(getter1), + Getter2(getter2), + HalfWidth(width*0.5) + { } + void Fit(ImPlotAxis& x_axis, ImPlotAxis& y_axis) const { + int count = ImMin(Getter1.Count, Getter2.Count); + for (int i = 0; i < count; ++i) { + ImPlotPoint p1 = Getter1(i); p1.x -= HalfWidth; + ImPlotPoint p2 = Getter2(i); p2.x += HalfWidth; + x_axis.ExtendFitWith(y_axis, p1.x, p1.y); + y_axis.ExtendFitWith(x_axis, p1.y, p1.x); + x_axis.ExtendFitWith(y_axis, p2.x, p2.y); + y_axis.ExtendFitWith(x_axis, p2.y, p2.x); + } + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const double HalfWidth; +}; + +template +struct FitterBarH { + FitterBarH(const _Getter1& getter1, const _Getter2& getter2, double height) : + Getter1(getter1), + Getter2(getter2), + HalfHeight(height*0.5) + { } + void Fit(ImPlotAxis& x_axis, ImPlotAxis& y_axis) const { + int count = ImMin(Getter1.Count, Getter2.Count); + for (int i = 0; i < count; ++i) { + ImPlotPoint p1 = Getter1(i); p1.y -= HalfHeight; + ImPlotPoint p2 = Getter2(i); p2.y += HalfHeight; + x_axis.ExtendFitWith(y_axis, p1.x, p1.y); + y_axis.ExtendFitWith(x_axis, p1.y, p1.x); + x_axis.ExtendFitWith(y_axis, p2.x, p2.y); + y_axis.ExtendFitWith(x_axis, p2.y, p2.x); + } + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const double HalfHeight; +}; + +struct FitterRect { + FitterRect(const ImPlotPoint& pmin, const ImPlotPoint& pmax) : + Pmin(pmin), + Pmax(pmax) + { } + FitterRect(const ImPlotRect& rect) : + FitterRect(rect.Min(), rect.Max()) + { } + void Fit(ImPlotAxis& x_axis, ImPlotAxis& y_axis) const { + x_axis.ExtendFitWith(y_axis, Pmin.x, Pmin.y); + y_axis.ExtendFitWith(x_axis, Pmin.y, Pmin.x); + x_axis.ExtendFitWith(y_axis, Pmax.x, Pmax.y); + y_axis.ExtendFitWith(x_axis, Pmax.y, Pmax.x); + } + const ImPlotPoint Pmin; + const ImPlotPoint Pmax; +}; + +//----------------------------------------------------------------------------- +// [SECTION] Transformers +//----------------------------------------------------------------------------- + +struct Transformer1 { + Transformer1(double pixMin, double pltMin, double pltMax, double m, double scaMin, double scaMax, ImPlotTransform fwd, void* data) : + ScaMin(scaMin), + ScaMax(scaMax), + PltMin(pltMin), + PltMax(pltMax), + PixMin(pixMin), + M(m), + TransformFwd(fwd), + TransformData(data) + { } + + template IMPLOT_INLINE float operator()(T p) const { + if (TransformFwd != nullptr) { + double s = TransformFwd(p, TransformData); + double t = (s - ScaMin) / (ScaMax - ScaMin); + p = PltMin + (PltMax - PltMin) * t; + } + return (float)(PixMin + M * (p - PltMin)); + } + + double ScaMin, ScaMax, PltMin, PltMax, PixMin, M; + ImPlotTransform TransformFwd; + void* TransformData; +}; + +struct Transformer2 { + Transformer2(const ImPlotAxis& x_axis, const ImPlotAxis& y_axis) : + Tx(x_axis.PixelMin, + x_axis.Range.Min, + x_axis.Range.Max, + x_axis.ScaleToPixel, + x_axis.ScaleMin, + x_axis.ScaleMax, + x_axis.TransformForward, + x_axis.TransformData), + Ty(y_axis.PixelMin, + y_axis.Range.Min, + y_axis.Range.Max, + y_axis.ScaleToPixel, + y_axis.ScaleMin, + y_axis.ScaleMax, + y_axis.TransformForward, + y_axis.TransformData) + { } + + Transformer2(const ImPlotPlot& plot) : + Transformer2(plot.Axes[plot.CurrentX], plot.Axes[plot.CurrentY]) + { } + + Transformer2() : + Transformer2(*GImPlot->CurrentPlot) + { } + + template IMPLOT_INLINE ImVec2 operator()(const P& plt) const { + ImVec2 out; + out.x = Tx(plt.x); + out.y = Ty(plt.y); + return out; + } + + template IMPLOT_INLINE ImVec2 operator()(T x, T y) const { + ImVec2 out; + out.x = Tx(x); + out.y = Ty(y); + return out; + } + + Transformer1 Tx; + Transformer1 Ty; +}; + +//----------------------------------------------------------------------------- +// [SECTION] Renderers +//----------------------------------------------------------------------------- + +struct RendererBase { + RendererBase(int prims, int idx_consumed, int vtx_consumed) : + Prims(prims), + IdxConsumed(idx_consumed), + VtxConsumed(vtx_consumed) + { } + const int Prims; + Transformer2 Transformer; + const int IdxConsumed; + const int VtxConsumed; +}; + +template +struct RendererLineStrip : RendererBase { + RendererLineStrip(const _Getter& getter, ImU32 col, float weight) : + RendererBase(getter.Count - 1, 6, 4), + Getter(getter), + Col(col), + HalfWeight(ImMax(1.0f,weight)*0.5f) + { + P1 = this->Transformer(Getter(0)); + } + void Init(ImDrawList& draw_list) const { + GetLineRenderProps(draw_list, HalfWeight, UV0, UV1); + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P2 = this->Transformer(Getter(prim + 1)); + if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { + P1 = P2; + return false; + } + PrimLine(draw_list,P1,P2,HalfWeight,Col,UV0,UV1); + P1 = P2; + return true; + } + const _Getter& Getter; + const ImU32 Col; + mutable float HalfWeight; + mutable ImVec2 P1; + mutable ImVec2 UV0; + mutable ImVec2 UV1; +}; + +template +struct RendererLineStripSkip : RendererBase { + RendererLineStripSkip(const _Getter& getter, ImU32 col, float weight) : + RendererBase(getter.Count - 1, 6, 4), + Getter(getter), + Col(col), + HalfWeight(ImMax(1.0f,weight)*0.5f) + { + P1 = this->Transformer(Getter(0)); + } + void Init(ImDrawList& draw_list) const { + GetLineRenderProps(draw_list, HalfWeight, UV0, UV1); + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P2 = this->Transformer(Getter(prim + 1)); + if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { + if (!ImNan(P2.x) && !ImNan(P2.y)) + P1 = P2; + return false; + } + PrimLine(draw_list,P1,P2,HalfWeight,Col,UV0,UV1); + if (!ImNan(P2.x) && !ImNan(P2.y)) + P1 = P2; + return true; + } + const _Getter& Getter; + const ImU32 Col; + mutable float HalfWeight; + mutable ImVec2 P1; + mutable ImVec2 UV0; + mutable ImVec2 UV1; +}; + +template +struct RendererLineSegments1 : RendererBase { + RendererLineSegments1(const _Getter& getter, ImU32 col, float weight) : + RendererBase(getter.Count / 2, 6, 4), + Getter(getter), + Col(col), + HalfWeight(ImMax(1.0f,weight)*0.5f) + { } + void Init(ImDrawList& draw_list) const { + GetLineRenderProps(draw_list, HalfWeight, UV0, UV1); + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P1 = this->Transformer(Getter(prim*2+0)); + ImVec2 P2 = this->Transformer(Getter(prim*2+1)); + if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) + return false; + PrimLine(draw_list,P1,P2,HalfWeight,Col,UV0,UV1); + return true; + } + const _Getter& Getter; + const ImU32 Col; + mutable float HalfWeight; + mutable ImVec2 UV0; + mutable ImVec2 UV1; +}; + +template +struct RendererLineSegments2 : RendererBase { + RendererLineSegments2(const _Getter1& getter1, const _Getter2& getter2, ImU32 col, float weight) : + RendererBase(ImMin(getter1.Count, getter1.Count), 6, 4), + Getter1(getter1), + Getter2(getter2), + Col(col), + HalfWeight(ImMax(1.0f,weight)*0.5f) + {} + void Init(ImDrawList& draw_list) const { + GetLineRenderProps(draw_list, HalfWeight, UV0, UV1); + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P1 = this->Transformer(Getter1(prim)); + ImVec2 P2 = this->Transformer(Getter2(prim)); + if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) + return false; + PrimLine(draw_list,P1,P2,HalfWeight,Col,UV0,UV1); + return true; + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const ImU32 Col; + mutable float HalfWeight; + mutable ImVec2 UV0; + mutable ImVec2 UV1; +}; + +template +struct RendererBarsFillV : RendererBase { + RendererBarsFillV(const _Getter1& getter1, const _Getter2& getter2, ImU32 col, double width) : + RendererBase(ImMin(getter1.Count, getter1.Count), 6, 4), + Getter1(getter1), + Getter2(getter2), + Col(col), + HalfWidth(width/2) + {} + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImPlotPoint p1 = Getter1(prim); + ImPlotPoint p2 = Getter2(prim); + p1.x += HalfWidth; + p2.x -= HalfWidth; + ImVec2 P1 = this->Transformer(p1); + ImVec2 P2 = this->Transformer(p2); + float width_px = ImAbs(P1.x-P2.x); + if (width_px < 1.0f) { + P1.x += P1.x > P2.x ? (1-width_px) / 2 : (width_px-1) / 2; + P2.x += P2.x > P1.x ? (1-width_px) / 2 : (width_px-1) / 2; + } + ImVec2 PMin = ImMin(P1, P2); + ImVec2 PMax = ImMax(P1, P2); + if (!cull_rect.Overlaps(ImRect(PMin, PMax))) + return false; + PrimRectFill(draw_list,PMin,PMax,Col,UV); + return true; + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const ImU32 Col; + const double HalfWidth; + mutable ImVec2 UV; +}; + +template +struct RendererBarsFillH : RendererBase { + RendererBarsFillH(const _Getter1& getter1, const _Getter2& getter2, ImU32 col, double height) : + RendererBase(ImMin(getter1.Count, getter1.Count), 6, 4), + Getter1(getter1), + Getter2(getter2), + Col(col), + HalfHeight(height/2) + {} + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImPlotPoint p1 = Getter1(prim); + ImPlotPoint p2 = Getter2(prim); + p1.y += HalfHeight; + p2.y -= HalfHeight; + ImVec2 P1 = this->Transformer(p1); + ImVec2 P2 = this->Transformer(p2); + float height_px = ImAbs(P1.y-P2.y); + if (height_px < 1.0f) { + P1.y += P1.y > P2.y ? (1-height_px) / 2 : (height_px-1) / 2; + P2.y += P2.y > P1.y ? (1-height_px) / 2 : (height_px-1) / 2; + } + ImVec2 PMin = ImMin(P1, P2); + ImVec2 PMax = ImMax(P1, P2); + if (!cull_rect.Overlaps(ImRect(PMin, PMax))) + return false; + PrimRectFill(draw_list,PMin,PMax,Col,UV); + return true; + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const ImU32 Col; + const double HalfHeight; + mutable ImVec2 UV; +}; + +template +struct RendererBarsLineV : RendererBase { + RendererBarsLineV(const _Getter1& getter1, const _Getter2& getter2, ImU32 col, double width, float weight) : + RendererBase(ImMin(getter1.Count, getter1.Count), 24, 8), + Getter1(getter1), + Getter2(getter2), + Col(col), + HalfWidth(width/2), + Weight(weight) + {} + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImPlotPoint p1 = Getter1(prim); + ImPlotPoint p2 = Getter2(prim); + p1.x += HalfWidth; + p2.x -= HalfWidth; + ImVec2 P1 = this->Transformer(p1); + ImVec2 P2 = this->Transformer(p2); + float width_px = ImAbs(P1.x-P2.x); + if (width_px < 1.0f) { + P1.x += P1.x > P2.x ? (1-width_px) / 2 : (width_px-1) / 2; + P2.x += P2.x > P1.x ? (1-width_px) / 2 : (width_px-1) / 2; + } + ImVec2 PMin = ImMin(P1, P2); + ImVec2 PMax = ImMax(P1, P2); + if (!cull_rect.Overlaps(ImRect(PMin, PMax))) + return false; + PrimRectLine(draw_list,PMin,PMax,Weight,Col,UV); + return true; + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const ImU32 Col; + const double HalfWidth; + const float Weight; + mutable ImVec2 UV; +}; + +template +struct RendererBarsLineH : RendererBase { + RendererBarsLineH(const _Getter1& getter1, const _Getter2& getter2, ImU32 col, double height, float weight) : + RendererBase(ImMin(getter1.Count, getter1.Count), 24, 8), + Getter1(getter1), + Getter2(getter2), + Col(col), + HalfHeight(height/2), + Weight(weight) + {} + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImPlotPoint p1 = Getter1(prim); + ImPlotPoint p2 = Getter2(prim); + p1.y += HalfHeight; + p2.y -= HalfHeight; + ImVec2 P1 = this->Transformer(p1); + ImVec2 P2 = this->Transformer(p2); + float height_px = ImAbs(P1.y-P2.y); + if (height_px < 1.0f) { + P1.y += P1.y > P2.y ? (1-height_px) / 2 : (height_px-1) / 2; + P2.y += P2.y > P1.y ? (1-height_px) / 2 : (height_px-1) / 2; + } + ImVec2 PMin = ImMin(P1, P2); + ImVec2 PMax = ImMax(P1, P2); + if (!cull_rect.Overlaps(ImRect(PMin, PMax))) + return false; + PrimRectLine(draw_list,PMin,PMax,Weight,Col,UV); + return true; + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const ImU32 Col; + const double HalfHeight; + const float Weight; + mutable ImVec2 UV; +}; + + +template +struct RendererStairsPre : RendererBase { + RendererStairsPre(const _Getter& getter, ImU32 col, float weight) : + RendererBase(getter.Count - 1, 12, 8), + Getter(getter), + Col(col), + HalfWeight(ImMax(1.0f,weight)*0.5f) + { + P1 = this->Transformer(Getter(0)); + } + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P2 = this->Transformer(Getter(prim + 1)); + if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { + P1 = P2; + return false; + } + PrimRectFill(draw_list, ImVec2(P1.x - HalfWeight, P1.y), ImVec2(P1.x + HalfWeight, P2.y), Col, UV); + PrimRectFill(draw_list, ImVec2(P1.x, P2.y + HalfWeight), ImVec2(P2.x, P2.y - HalfWeight), Col, UV); + P1 = P2; + return true; + } + const _Getter& Getter; + const ImU32 Col; + mutable float HalfWeight; + mutable ImVec2 P1; + mutable ImVec2 UV; +}; + +template +struct RendererStairsPost : RendererBase { + RendererStairsPost(const _Getter& getter, ImU32 col, float weight) : + RendererBase(getter.Count - 1, 12, 8), + Getter(getter), + Col(col), + HalfWeight(ImMax(1.0f,weight) * 0.5f) + { + P1 = this->Transformer(Getter(0)); + } + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P2 = this->Transformer(Getter(prim + 1)); + if (!cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) { + P1 = P2; + return false; + } + PrimRectFill(draw_list, ImVec2(P1.x, P1.y + HalfWeight), ImVec2(P2.x, P1.y - HalfWeight), Col, UV); + PrimRectFill(draw_list, ImVec2(P2.x - HalfWeight, P2.y), ImVec2(P2.x + HalfWeight, P1.y), Col, UV); + P1 = P2; + return true; + } + const _Getter& Getter; + const ImU32 Col; + mutable float HalfWeight; + mutable ImVec2 P1; + mutable ImVec2 UV; +}; + +template +struct RendererStairsPreShaded : RendererBase { + RendererStairsPreShaded(const _Getter& getter, ImU32 col) : + RendererBase(getter.Count - 1, 6, 4), + Getter(getter), + Col(col) + { + P1 = this->Transformer(Getter(0)); + Y0 = this->Transformer(ImPlotPoint(0,0)).y; + } + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P2 = this->Transformer(Getter(prim + 1)); + ImVec2 PMin(ImMin(P1.x, P2.x), ImMin(Y0, P2.y)); + ImVec2 PMax(ImMax(P1.x, P2.x), ImMax(Y0, P2.y)); + if (!cull_rect.Overlaps(ImRect(PMin, PMax))) { + P1 = P2; + return false; + } + PrimRectFill(draw_list, PMin, PMax, Col, UV); + P1 = P2; + return true; + } + const _Getter& Getter; + const ImU32 Col; + float Y0; + mutable ImVec2 P1; + mutable ImVec2 UV; +}; + +template +struct RendererStairsPostShaded : RendererBase { + RendererStairsPostShaded(const _Getter& getter, ImU32 col) : + RendererBase(getter.Count - 1, 6, 4), + Getter(getter), + Col(col) + { + P1 = this->Transformer(Getter(0)); + Y0 = this->Transformer(ImPlotPoint(0,0)).y; + } + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P2 = this->Transformer(Getter(prim + 1)); + ImVec2 PMin(ImMin(P1.x, P2.x), ImMin(P1.y, Y0)); + ImVec2 PMax(ImMax(P1.x, P2.x), ImMax(P1.y, Y0)); + if (!cull_rect.Overlaps(ImRect(PMin, PMax))) { + P1 = P2; + return false; + } + PrimRectFill(draw_list, PMin, PMax, Col, UV); + P1 = P2; + return true; + } + const _Getter& Getter; + const ImU32 Col; + float Y0; + mutable ImVec2 P1; + mutable ImVec2 UV; +}; + + + +template +struct RendererShaded : RendererBase { + RendererShaded(const _Getter1& getter1, const _Getter2& getter2, ImU32 col) : + RendererBase(ImMin(getter1.Count, getter2.Count) - 1, 6, 5), + Getter1(getter1), + Getter2(getter2), + Col(col) + { + P11 = this->Transformer(Getter1(0)); + P12 = this->Transformer(Getter2(0)); + } + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + ImVec2 P21 = this->Transformer(Getter1(prim+1)); + ImVec2 P22 = this->Transformer(Getter2(prim+1)); + ImRect rect(ImMin(ImMin(ImMin(P11,P12),P21),P22), ImMax(ImMax(ImMax(P11,P12),P21),P22)); + if (!cull_rect.Overlaps(rect)) { + P11 = P21; + P12 = P22; + return false; + } + const int intersect = (P11.y > P12.y && P22.y > P21.y) || (P12.y > P11.y && P21.y > P22.y); + ImVec2 intersection = Intersection(P11,P21,P12,P22); + draw_list._VtxWritePtr[0].pos = P11; + draw_list._VtxWritePtr[0].uv = UV; + draw_list._VtxWritePtr[0].col = Col; + draw_list._VtxWritePtr[1].pos = P21; + draw_list._VtxWritePtr[1].uv = UV; + draw_list._VtxWritePtr[1].col = Col; + draw_list._VtxWritePtr[2].pos = intersection; + draw_list._VtxWritePtr[2].uv = UV; + draw_list._VtxWritePtr[2].col = Col; + draw_list._VtxWritePtr[3].pos = P12; + draw_list._VtxWritePtr[3].uv = UV; + draw_list._VtxWritePtr[3].col = Col; + draw_list._VtxWritePtr[4].pos = P22; + draw_list._VtxWritePtr[4].uv = UV; + draw_list._VtxWritePtr[4].col = Col; + draw_list._VtxWritePtr += 5; + draw_list._IdxWritePtr[0] = (ImDrawIdx)(draw_list._VtxCurrentIdx); + draw_list._IdxWritePtr[1] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1 + intersect); + draw_list._IdxWritePtr[2] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 3); + draw_list._IdxWritePtr[3] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 1); + draw_list._IdxWritePtr[4] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 4); + draw_list._IdxWritePtr[5] = (ImDrawIdx)(draw_list._VtxCurrentIdx + 3 - intersect); + draw_list._IdxWritePtr += 6; + draw_list._VtxCurrentIdx += 5; + P11 = P21; + P12 = P22; + return true; + } + const _Getter1& Getter1; + const _Getter2& Getter2; + const ImU32 Col; + mutable ImVec2 P11; + mutable ImVec2 P12; + mutable ImVec2 UV; +}; + +struct RectC { + ImPlotPoint Pos; + ImPlotPoint HalfSize; + ImU32 Color; +}; + +template +struct RendererRectC : RendererBase { + RendererRectC(const _Getter& getter) : + RendererBase(getter.Count, 6, 4), + Getter(getter) + {} + void Init(ImDrawList& draw_list) const { + UV = draw_list._Data->TexUvWhitePixel; + } + IMPLOT_INLINE bool Render(ImDrawList& draw_list, const ImRect& cull_rect, int prim) const { + RectC rect = Getter(prim); + ImVec2 P1 = this->Transformer(rect.Pos.x - rect.HalfSize.x , rect.Pos.y - rect.HalfSize.y); + ImVec2 P2 = this->Transformer(rect.Pos.x + rect.HalfSize.x , rect.Pos.y + rect.HalfSize.y); + if ((rect.Color & IM_COL32_A_MASK) == 0 || !cull_rect.Overlaps(ImRect(ImMin(P1, P2), ImMax(P1, P2)))) + return false; + PrimRectFill(draw_list,P1,P2,rect.Color,UV); + return true; + } + const _Getter& Getter; + mutable ImVec2 UV; +}; + +//----------------------------------------------------------------------------- +// [SECTION] RenderPrimitives +//----------------------------------------------------------------------------- + +/// Renders primitive shapes in bulk as efficiently as possible. +template +void RenderPrimitivesEx(const _Renderer& renderer, ImDrawList& draw_list, const ImRect& cull_rect) { + unsigned int prims = renderer.Prims; + unsigned int prims_culled = 0; + unsigned int idx = 0; + renderer.Init(draw_list); + while (prims) { + // find how many can be reserved up to end of current draw command's limit + unsigned int cnt = ImMin(prims, (MaxIdx::Value - draw_list._VtxCurrentIdx) / renderer.VtxConsumed); + // make sure at least this many elements can be rendered to avoid situations where at the end of buffer this slow path is not taken all the time + if (cnt >= ImMin(64u, prims)) { + if (prims_culled >= cnt) + prims_culled -= cnt; // reuse previous reservation + else { + // add more elements to previous reservation + draw_list.PrimReserve((cnt - prims_culled) * renderer.IdxConsumed, (cnt - prims_culled) * renderer.VtxConsumed); + prims_culled = 0; + } + } + else + { + if (prims_culled > 0) { + draw_list.PrimUnreserve(prims_culled * renderer.IdxConsumed, prims_culled * renderer.VtxConsumed); + prims_culled = 0; + } + cnt = ImMin(prims, (MaxIdx::Value - 0/*draw_list._VtxCurrentIdx*/) / renderer.VtxConsumed); + // reserve new draw command + draw_list.PrimReserve(cnt * renderer.IdxConsumed, cnt * renderer.VtxConsumed); + } + prims -= cnt; + for (unsigned int ie = idx + cnt; idx != ie; ++idx) { + if (!renderer.Render(draw_list, cull_rect, idx)) + prims_culled++; + } + } + if (prims_culled > 0) + draw_list.PrimUnreserve(prims_culled * renderer.IdxConsumed, prims_culled * renderer.VtxConsumed); +} + +template